diff --git a/dist/apps/admin-gui/124.0687c18e03ce09ed.js b/dist/apps/admin-gui/124.0687c18e03ce09ed.js new file mode 100644 index 000000000..d4f7d814e --- /dev/null +++ b/dist/apps/admin-gui/124.0687c18e03ce09ed.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[124],{89397:function(w,k){!function(s){"use strict";function c(Y,K){return K.forEach(function(rt){rt&&"string"!=typeof rt&&!Array.isArray(rt)&&Object.keys(rt).forEach(function(at){if("default"!==at&&!(at in Y)){var V=Object.getOwnPropertyDescriptor(rt,at);Object.defineProperty(Y,at,V.get?V:{enumerable:!0,get:function(){return rt[at]}})}})}),Object.freeze(Y)}var at,rt,x={exports:{}};at="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,rt=function(V){var Ct,Mt,M=void 0!==(V=V||{})?V:{};M.ready=new Promise(function(T,I){Ct=T,Mt=I});var Ht,Bt={};for(Ht in M)M.hasOwnProperty(Ht)&&(Bt[Ht]=M[Ht]);var Nt,Qt,ie="./this.program",vt="";"undefined"!=typeof document&&document.currentScript&&(vt=document.currentScript.src),at&&(vt=at),vt=0!==vt.indexOf("blob:")?vt.substr(0,vt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(T){var I=new XMLHttpRequest;return I.open("GET",T,!1),I.send(null),I.responseText},Qt=function(T,I,B){var j=new XMLHttpRequest;j.open("GET",T,!0),j.responseType="arraybuffer",j.onload=function(){200==j.status||0==j.status&&j.response?I(j.response):B()},j.onerror=B,j.send(null)};var Fe,ge=M.print||console.log.bind(console),ve=M.printErr||console.warn.bind(console);for(Ht in Bt)Bt.hasOwnProperty(Ht)&&(M[Ht]=Bt[Ht]);Bt=null,M.thisProgram&&(ie=M.thisProgram),M.wasmBinary&&(Fe=M.wasmBinary),"object"!=typeof WebAssembly&&Dn("no native wasm support detected");var qe,De=!1;function fn(T,I){T||Dn("Assertion failed: "+I)}var Ke,En,Pn,Ve,mi,Be="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function Cn(T,I,B){for(var j=I+B,ct=I;T[ct]&&!(ct>=j);)++ct;if(ct-I>16&&T.subarray&&Be)return Be.decode(T.subarray(I,ct));for(var xt="";I>10,56320|1023&Ee)}}else xt+=String.fromCharCode((31&kt)<<6|Ft)}else xt+=String.fromCharCode(kt)}return xt}function ke(T,I){return T?Cn(Pn,T,I):""}function Zn(T,I,B,j){if(!(j>0))return 0;for(var ct=B,xt=B+j-1,kt=0;kt=55296&&Ft<=57343&&(Ft=65536+((1023&Ft)<<10)|1023&T.charCodeAt(++kt)),Ft<=127){if(B>=xt)break;I[B++]=Ft}else if(Ft<=2047){if(B+1>=xt)break;I[B++]=192|Ft>>6,I[B++]=128|63&Ft}else if(Ft<=65535){if(B+2>=xt)break;I[B++]=224|Ft>>12,I[B++]=128|Ft>>6&63,I[B++]=128|63&Ft}else{if(B+3>=xt)break;I[B++]=240|Ft>>18,I[B++]=128|Ft>>12&63,I[B++]=128|Ft>>6&63,I[B++]=128|63&Ft}}return I[B]=0,B-ct}function ai(T){for(var I=0,B=0;B=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&T.charCodeAt(++B)),j<=127?++I:I+=j<=2047?2:j<=65535?3:4}return I}function An(T,I){return T%I>0&&(T+=I-T%I),T}function Hn(T){Ke=T,M.HEAP8=En=new Int8Array(T),M.HEAP16=new Int16Array(T),M.HEAP32=Ve=new Int32Array(T),M.HEAPU8=Pn=new Uint8Array(T),M.HEAPU16=new Uint16Array(T),M.HEAPU32=new Uint32Array(T),M.HEAPF32=new Float32Array(T),M.HEAPF64=mi=new Float64Array(T)}var yn,Xn=[],ei=[],Oe=[];var xe=0,Ue=null;function an(T){xe++,M.monitorRunDependencies&&M.monitorRunDependencies(xe)}function Bn(T){if(xe--,M.monitorRunDependencies&&M.monitorRunDependencies(xe),0==xe&&Ue){var I=Ue;Ue=null,I()}}function Dn(T){M.onAbort&&M.onAbort(T),ve(T="Aborted("+T+")"),De=!0,T+=". Build with -s ASSERTIONS=1 for more info.";var I=new WebAssembly.RuntimeError(T);throw Mt(I),I}M.preloadedImages={},M.preloadedAudios={};var gn;function Ii(T){return T.startsWith("data:application/octet-stream;base64,")}function ni(T){try{if(T==gn&&Fe)return new Uint8Array(Fe);throw"both async and sync fetching of the wasm failed"}catch(I){Dn(I)}}Ii(gn="expatlib.wasm")||(gn=function ft(T){return M.locateFile?M.locateFile(T,vt):vt+T}(gn));var _e,en,ii={11694:function(T){var I=M.getCache(M.CExpatJS)[T];if(!I.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";I.startElement()},11912:function(T){var I=M.getCache(M.CExpatJS)[T];if(!I.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";I.endElement()},12124:function(T){var I=M.getCache(M.CExpatJS)[T];if(!I.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";I.characterData()}};function di(T){for(;T.length>0;){var I=T.shift();if("function"!=typeof I){var B=I.func;"number"==typeof B?void 0===I.arg?Mn(B)():Mn(B)(I.arg):B(void 0===I.arg?null:I.arg)}else I(M)}}function Mn(T){return yn.get(T)}var we={splitPath:function(T){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(T).slice(1)},normalizeArray:function(T,I){for(var B=0,j=T.length-1;j>=0;j--){var ct=T[j];"."===ct?T.splice(j,1):".."===ct?(T.splice(j,1),B++):B&&(T.splice(j,1),B--)}if(I)for(;B;B--)T.unshift("..");return T},normalize:function(T){var I="/"===T.charAt(0),B="/"===T.substr(-1);return!(T=we.normalizeArray(T.split("/").filter(function(j){return!!j}),!I).join("/"))&&!I&&(T="."),T&&B&&(T+="/"),(I?"/":"")+T},dirname:function(T){var I=we.splitPath(T),B=I[0],j=I[1];return B||j?(j&&(j=j.substr(0,j.length-1)),B+j):"."},basename:function(T){if("/"===T)return"/";var I=(T=(T=we.normalize(T)).replace(/\/$/,"")).lastIndexOf("/");return-1===I?T:T.substr(I+1)},extname:function(T){return we.splitPath(T)[3]},join:function(){var T=Array.prototype.slice.call(arguments,0);return we.normalize(T.join("/"))},join2:function(T,I){return we.normalize(T+"/"+I)}};var pn={resolve:function(){for(var T="",I=!1,B=arguments.length-1;B>=-1&&!I;B--){var j=B>=0?arguments[B]:E.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";T=j+"/"+T,I="/"===j.charAt(0)}return(I?"/":"")+(T=we.normalizeArray(T.split("/").filter(function(ct){return!!ct}),!I).join("/"))||"."},relative:function(T,I){function B(Ee){for(var Ge=0;Ge=0&&""===Ee[tn];tn--);return Ge>tn?[]:Ee.slice(Ge,tn-Ge+1)}T=pn.resolve(T).substr(1),I=pn.resolve(I).substr(1);for(var j=B(T.split("/")),ct=B(I.split("/")),xt=Math.min(j.length,ct.length),kt=xt,Ft=0;Ft0&&(ge(Cn(T.output,0)),T.output=[])}},default_tty1_ops:{put_char:function(T,I){null===I||10===I?(ve(Cn(T.output,0)),T.output=[]):0!=I&&T.output.push(I)},flush:function(T){T.output&&T.output.length>0&&(ve(Cn(T.output,0)),T.output=[])}}};var W={ops_table:null,mount:function(T){return W.createNode(null,"/",16895,0)},createNode:function(T,I,B,j){if(E.isBlkdev(B)||E.isFIFO(B))throw new E.ErrnoError(63);W.ops_table||(W.ops_table={dir:{node:{getattr:W.node_ops.getattr,setattr:W.node_ops.setattr,lookup:W.node_ops.lookup,mknod:W.node_ops.mknod,rename:W.node_ops.rename,unlink:W.node_ops.unlink,rmdir:W.node_ops.rmdir,readdir:W.node_ops.readdir,symlink:W.node_ops.symlink},stream:{llseek:W.stream_ops.llseek}},file:{node:{getattr:W.node_ops.getattr,setattr:W.node_ops.setattr},stream:{llseek:W.stream_ops.llseek,read:W.stream_ops.read,write:W.stream_ops.write,allocate:W.stream_ops.allocate,mmap:W.stream_ops.mmap,msync:W.stream_ops.msync}},link:{node:{getattr:W.node_ops.getattr,setattr:W.node_ops.setattr,readlink:W.node_ops.readlink},stream:{}},chrdev:{node:{getattr:W.node_ops.getattr,setattr:W.node_ops.setattr},stream:E.chrdev_stream_ops}});var ct=E.createNode(T,I,B,j);return E.isDir(ct.mode)?(ct.node_ops=W.ops_table.dir.node,ct.stream_ops=W.ops_table.dir.stream,ct.contents={}):E.isFile(ct.mode)?(ct.node_ops=W.ops_table.file.node,ct.stream_ops=W.ops_table.file.stream,ct.usedBytes=0,ct.contents=null):E.isLink(ct.mode)?(ct.node_ops=W.ops_table.link.node,ct.stream_ops=W.ops_table.link.stream):E.isChrdev(ct.mode)&&(ct.node_ops=W.ops_table.chrdev.node,ct.stream_ops=W.ops_table.chrdev.stream),ct.timestamp=Date.now(),T&&(T.contents[I]=ct,T.timestamp=ct.timestamp),ct},getFileDataAsTypedArray:function(T){return T.contents?T.contents.subarray?T.contents.subarray(0,T.usedBytes):new Uint8Array(T.contents):new Uint8Array(0)},expandFileStorage:function(T,I){var B=T.contents?T.contents.length:0;if(!(B>=I)){I=Math.max(I,B*(B<1048576?2:1.125)>>>0),0!=B&&(I=Math.max(I,256));var ct=T.contents;T.contents=new Uint8Array(I),T.usedBytes>0&&T.contents.set(ct.subarray(0,T.usedBytes),0)}},resizeFileStorage:function(T,I){if(T.usedBytes!=I)if(0==I)T.contents=null,T.usedBytes=0;else{var B=T.contents;T.contents=new Uint8Array(I),B&&T.contents.set(B.subarray(0,Math.min(I,T.usedBytes))),T.usedBytes=I}},node_ops:{getattr:function(T){var I={};return I.dev=E.isChrdev(T.mode)?T.id:1,I.ino=T.id,I.mode=T.mode,I.nlink=1,I.uid=0,I.gid=0,I.rdev=T.rdev,I.size=E.isDir(T.mode)?4096:E.isFile(T.mode)?T.usedBytes:E.isLink(T.mode)?T.link.length:0,I.atime=new Date(T.timestamp),I.mtime=new Date(T.timestamp),I.ctime=new Date(T.timestamp),I.blksize=4096,I.blocks=Math.ceil(I.size/I.blksize),I},setattr:function(T,I){void 0!==I.mode&&(T.mode=I.mode),void 0!==I.timestamp&&(T.timestamp=I.timestamp),void 0!==I.size&&W.resizeFileStorage(T,I.size)},lookup:function(T,I){throw E.genericErrors[44]},mknod:function(T,I,B,j){return W.createNode(T,I,B,j)},rename:function(T,I,B){if(E.isDir(T.mode)){var j;try{j=E.lookupNode(I,B)}catch(xt){}if(j)for(var ct in j.contents)throw new E.ErrnoError(55)}delete T.parent.contents[T.name],T.parent.timestamp=Date.now(),T.name=B,I.contents[B]=T,I.timestamp=T.parent.timestamp,T.parent=I},unlink:function(T,I){delete T.contents[I],T.timestamp=Date.now()},rmdir:function(T,I){var B=E.lookupNode(T,I);for(var j in B.contents)throw new E.ErrnoError(55);delete T.contents[I],T.timestamp=Date.now()},readdir:function(T){var I=[".",".."];for(var B in T.contents)!T.contents.hasOwnProperty(B)||I.push(B);return I},symlink:function(T,I,B){var j=W.createNode(T,I,41471,0);return j.link=B,j},readlink:function(T){if(!E.isLink(T.mode))throw new E.ErrnoError(28);return T.link}},stream_ops:{read:function(T,I,B,j,ct){var xt=T.node.contents;if(ct>=T.node.usedBytes)return 0;var kt=Math.min(T.node.usedBytes-ct,j);if(kt>8&&xt.subarray)I.set(xt.subarray(ct,ct+kt),B);else for(var Ft=0;Ft0||j+B8)throw new E.ErrnoError(32);for(var ct=we.normalizeArray(T.split("/").filter(function(Ne){return!!Ne}),!1),xt=E.root,kt="/",Ft=0;Ft40)throw new E.ErrnoError(32)}}return{path:kt,node:xt}},getPath:function(T){for(var I;;){if(E.isRoot(T)){var B=T.mount.mountpoint;return I?"/"!==B[B.length-1]?B+"/"+I:B+I:B}I=I?T.name+"/"+I:T.name,T=T.parent}},hashName:function(T,I){for(var B=0,j=0;j>>0)%E.nameTable.length},hashAddNode:function(T){var I=E.hashName(T.parent.id,T.name);T.name_next=E.nameTable[I],E.nameTable[I]=T},hashRemoveNode:function(T){var I=E.hashName(T.parent.id,T.name);if(E.nameTable[I]===T)E.nameTable[I]=T.name_next;else for(var B=E.nameTable[I];B;){if(B.name_next===T){B.name_next=T.name_next;break}B=B.name_next}},lookupNode:function(T,I){var B=E.mayLookup(T);if(B)throw new E.ErrnoError(B,T);for(var j=E.hashName(T.id,I),ct=E.nameTable[j];ct;ct=ct.name_next)if(ct.parent.id===T.id&&ct.name===I)return ct;return E.lookup(T,I)},createNode:function(T,I,B,j){var ct=new E.FSNode(T,I,B,j);return E.hashAddNode(ct),ct},destroyNode:function(T){E.hashRemoveNode(T)},isRoot:function(T){return T===T.parent},isMountpoint:function(T){return!!T.mounted},isFile:function(T){return 32768==(61440&T)},isDir:function(T){return 16384==(61440&T)},isLink:function(T){return 40960==(61440&T)},isChrdev:function(T){return 8192==(61440&T)},isBlkdev:function(T){return 24576==(61440&T)},isFIFO:function(T){return 4096==(61440&T)},isSocket:function(T){return 49152==(49152&T)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(T){var I=E.flagModes[T];if(void 0===I)throw new Error("Unknown file open mode: "+T);return I},flagsToPermissionString:function(T){var I=["r","w","rw"][3&T];return 512&T&&(I+="w"),I},nodePermissions:function(T,I){return E.ignorePermissions?0:I.includes("r")&&!(292&T.mode)||I.includes("w")&&!(146&T.mode)||I.includes("x")&&!(73&T.mode)?2:0},mayLookup:function(T){return E.nodePermissions(T,"x")||(T.node_ops.lookup?0:2)},mayCreate:function(T,I){try{return E.lookupNode(T,I),20}catch(j){}return E.nodePermissions(T,"wx")},mayDelete:function(T,I,B){var j;try{j=E.lookupNode(T,I)}catch(xt){return xt.errno}var ct=E.nodePermissions(T,"wx");if(ct)return ct;if(B){if(!E.isDir(j.mode))return 54;if(E.isRoot(j)||E.getPath(j)===E.cwd())return 10}else if(E.isDir(j.mode))return 31;return 0},mayOpen:function(T,I){return T?E.isLink(T.mode)?32:E.isDir(T.mode)&&("r"!==E.flagsToPermissionString(I)||512&I)?31:E.nodePermissions(T,E.flagsToPermissionString(I)):44},MAX_OPEN_FDS:4096,nextfd:function(T,I){I=I||E.MAX_OPEN_FDS;for(var B=T=T||0;B<=I;B++)if(!E.streams[B])return B;throw new E.ErrnoError(33)},getStream:function(T){return E.streams[T]},createStream:function(T,I,B){E.FSStream||(E.FSStream=function(){},E.FSStream.prototype={object:{get:function(){return this.node},set:function(kt){this.node=kt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var j=new E.FSStream;for(var ct in T)j[ct]=T[ct];T=j;var xt=E.nextfd(I,B);return T.fd=xt,E.streams[xt]=T,T},closeStream:function(T){E.streams[T]=null},chrdev_stream_ops:{open:function(T){var I=E.getDevice(T.node.rdev);T.stream_ops=I.stream_ops,T.stream_ops.open&&T.stream_ops.open(T)},llseek:function(){throw new E.ErrnoError(70)}},major:function(T){return T>>8},minor:function(T){return 255&T},makedev:function(T,I){return T<<8|I},registerDevice:function(T,I){E.devices[T]={stream_ops:I}},getDevice:function(T){return E.devices[T]},getMounts:function(T){for(var I=[],B=[T];B.length;){var j=B.pop();I.push(j),B.push.apply(B,j.mounts)}return I},syncfs:function(T,I){"function"==typeof T&&(I=T,T=!1),E.syncFSRequests++,E.syncFSRequests>1&&ve("warning: "+E.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var B=E.getMounts(E.root.mount),j=0;function ct(kt){return E.syncFSRequests--,I(kt)}function xt(kt){if(kt)return xt.errored?void 0:(xt.errored=!0,ct(kt));++j>=B.length&&ct(null)}B.forEach(function(kt){if(!kt.type.syncfs)return xt(null);kt.type.syncfs(kt,T,xt)})},mount:function(T,I,B){var xt,j="/"===B,ct=!B;if(j&&E.root)throw new E.ErrnoError(10);if(!j&&!ct){var kt=E.lookupPath(B,{follow_mount:!1});if(B=kt.path,E.isMountpoint(xt=kt.node))throw new E.ErrnoError(10);if(!E.isDir(xt.mode))throw new E.ErrnoError(54)}var Ft={type:T,opts:I,mountpoint:B,mounts:[]},ae=T.mount(Ft);return ae.mount=Ft,Ft.root=ae,j?E.root=ae:xt&&(xt.mounted=Ft,xt.mount&&xt.mount.mounts.push(Ft)),ae},unmount:function(T){var I=E.lookupPath(T,{follow_mount:!1});if(!E.isMountpoint(I.node))throw new E.ErrnoError(28);var B=I.node,j=B.mounted,ct=E.getMounts(j);Object.keys(E.nameTable).forEach(function(kt){for(var Ft=E.nameTable[kt];Ft;){var ae=Ft.name_next;ct.includes(Ft.mount)&&E.destroyNode(Ft),Ft=ae}}),B.mounted=null;var xt=B.mount.mounts.indexOf(j);B.mount.mounts.splice(xt,1)},lookup:function(T,I){return T.node_ops.lookup(T,I)},mknod:function(T,I,B){var ct=E.lookupPath(T,{parent:!0}).node,xt=we.basename(T);if(!xt||"."===xt||".."===xt)throw new E.ErrnoError(28);var kt=E.mayCreate(ct,xt);if(kt)throw new E.ErrnoError(kt);if(!ct.node_ops.mknod)throw new E.ErrnoError(63);return ct.node_ops.mknod(ct,xt,I,B)},create:function(T,I){return I=void 0!==I?I:438,I&=4095,E.mknod(T,I|=32768,0)},mkdir:function(T,I){return I=void 0!==I?I:511,I&=1023,E.mknod(T,I|=16384,0)},mkdirTree:function(T,I){for(var B=T.split("/"),j="",ct=0;ctthis.length-1||Ne<0)){var Je=Ne%this.chunkSize;return this.getter(Ne/this.chunkSize|0)[Je]}},xt.prototype.setDataGetter=function(Ne){this.getter=Ne},xt.prototype.cacheLength=function(){var Ne=new XMLHttpRequest;if(Ne.open("HEAD",B,!1),Ne.send(null),!(Ne.status>=200&&Ne.status<300||304===Ne.status))throw new Error("Couldn't load "+B+". Status: "+Ne.status);var wn,Je=Number(Ne.getResponseHeader("Content-length")),gi=(wn=Ne.getResponseHeader("Accept-Ranges"))&&"bytes"===wn,$i=(wn=Ne.getResponseHeader("Content-Encoding"))&&"gzip"===wn,Ei=1048576;gi||(Ei=Je);var si=this;si.setDataGetter(function(Mi){var ar=Mi*Ei,ci=(Mi+1)*Ei-1;if(ci=Math.min(ci,Je-1),void 0===si.chunks[Mi]&&(si.chunks[Mi]=function(Mi,ar){if(Mi>ar)throw new Error("invalid range ("+Mi+", "+ar+") or no bytes requested!");if(ar>Je-1)throw new Error("only "+Je+" bytes available! programmer error!");var ci=new XMLHttpRequest;if(ci.open("GET",B,!1),Je!==Ei&&ci.setRequestHeader("Range","bytes="+Mi+"-"+ar),"undefined"!=typeof Uint8Array&&(ci.responseType="arraybuffer"),ci.overrideMimeType&&ci.overrideMimeType("text/plain; charset=x-user-defined"),ci.send(null),!(ci.status>=200&&ci.status<300||304===ci.status))throw new Error("Couldn't load "+B+". Status: "+ci.status);return void 0!==ci.response?new Uint8Array(ci.response||[]):be(ci.responseText||"",!0)}(ar,ci)),void 0===si.chunks[Mi])throw new Error("doXHR failed!");return si.chunks[Mi]}),($i||!Je)&&(Ei=Je=1,Je=this.getter(0).length,Ei=Je,ge("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=Je,this._chunkSize=Ei,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Ft,ae=E.createFile(T,I,Ft={isDevice:!1,url:B},j,ct);Ft.contents?ae.contents=Ft.contents:Ft.url&&(ae.contents=null,ae.url=Ft.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var Ee={};return Object.keys(ae.stream_ops).forEach(function(tn){var Ne=ae.stream_ops[tn];Ee[tn]=function(){return E.forceLoadFile(ae),Ne.apply(null,arguments)}}),Ee.read=function(Ne,Je,wn,gi,$i){E.forceLoadFile(ae);var Ei=Ne.node.contents;if($i>=Ei.length)return 0;var vn=Math.min(Ei.length-$i,gi);if(Ei.slice)for(var si=0;si>2]=j.dev,Ve[B+4>>2]=0,Ve[B+8>>2]=j.ino,Ve[B+12>>2]=j.mode,Ve[B+16>>2]=j.nlink,Ve[B+20>>2]=j.uid,Ve[B+24>>2]=j.gid,Ve[B+28>>2]=j.rdev,Ve[B+32>>2]=0,en=[j.size>>>0,(_e=j.size,+Math.abs(_e)>=1?_e>0?(0|Math.min(+Math.floor(_e/4294967296),4294967295))>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],Ve[B+40>>2]=en[0],Ve[B+44>>2]=en[1],Ve[B+48>>2]=4096,Ve[B+52>>2]=j.blocks,Ve[B+56>>2]=j.atime.getTime()/1e3|0,Ve[B+60>>2]=0,Ve[B+64>>2]=j.mtime.getTime()/1e3|0,Ve[B+68>>2]=0,Ve[B+72>>2]=j.ctime.getTime()/1e3|0,Ve[B+76>>2]=0,en=[j.ino>>>0,(_e=j.ino,+Math.abs(_e)>=1?_e>0?(0|Math.min(+Math.floor(_e/4294967296),4294967295))>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],Ve[B+80>>2]=en[0],Ve[B+84>>2]=en[1],0},doMsync:function(T,I,B,j,ct){var xt=Pn.slice(T,T+B);E.msync(I,xt,ct,B,j)},doMkdir:function(T,I){return"/"===(T=we.normalize(T))[T.length-1]&&(T=T.substr(0,T.length-1)),E.mkdir(T,I,0),0},doMknod:function(T,I,B){switch(61440&I){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return E.mknod(T,I,B),0},doReadlink:function(T,I,B){if(B<=0)return-28;var j=E.readlink(T),ct=Math.min(B,ai(j)),xt=En[I+ct];return function Wn(T,I,B){return Zn(T,Pn,I,B)}(j,I,B+1),En[I+ct]=xt,ct},doAccess:function(T,I){if(-8&I)return-28;var j=E.lookupPath(T,{follow:!0}).node;if(!j)return-44;var ct="";return 4&I&&(ct+="r"),2&I&&(ct+="w"),1&I&&(ct+="x"),ct&&E.nodePermissions(j,ct)?-2:0},doDup:function(T,I,B){var j=E.getStream(B);return j&&E.close(j),E.open(T,I,0,B,B).fd},doReadv:function(T,I,B,j){for(var ct=0,xt=0;xt>2],ae=E.read(T,En,Ve[I+8*xt>>2],Ft,j);if(ae<0)return-1;if(ct+=ae,ae>2],Ve[I+(8*xt+4)>>2],j);if(ae<0)return-1;ct+=ae}return ct},varargs:void 0,get:function(){return wt.varargs+=4,Ve[wt.varargs-4>>2]},getStr:function(T){return ke(T)},getStreamFromFD:function(T){var I=E.getStream(T);if(!I)throw new E.ErrnoError(8);return I},get64:function(T,I){return T}};var Yt=[];function pt(T){try{return qe.grow(T-Ke.byteLength+65535>>>16),Hn(qe.buffer),1}catch(I){}}var At={};function te(){if(!te.strings){var I={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ie||"./this.program"};for(var B in At)void 0===At[B]?delete I[B]:I[B]=At[B];var j=[];for(var B in I)j.push(B+"="+I[B]);te.strings=j}return te.strings}var ze=function(T,I,B,j){T||(T=this),this.parent=T,this.mount=T.mount,this.mounted=null,this.id=E.nextInode++,this.name=I,this.mode=B,this.node_ops={},this.stream_ops={},this.rdev=j};function be(T,I,B){var j=B>0?B:ai(T)+1,ct=new Array(j),xt=Zn(T,ct,0,ct.length);return I&&(ct.length=xt),ct}Object.defineProperties(ze.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(T){T?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(T){T?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return E.isDir(this.mode)}},isDevice:{get:function(){return E.isChrdev(this.mode)}}}),E.FSNode=ze,E.staticInit();var We={h:function Ot(T,I,B){wt.varargs=B;try{var j=wt.getStr(T),ct=B?wt.get():0;return E.open(j,I,ct).fd}catch(kt){if(void 0===E||!(kt instanceof E.ErrnoError))throw kt;return-kt.errno}},b:function Rt(){Dn("")},a:function qt(T,I,B){var j=function re(T,I){var B;for(Yt.length=0,I>>=2;B=Pn[T++];){var j=B<105;j&&1&I&&I++,Yt.push(j?mi[I++>>1]:Ve[I]),++I}return Yt}(I,B);return ii[T].apply(null,j)},k:function q(T,I,B){Pn.copyWithin(T,I,I+B)},e:function Tt(T){var I=Pn.length,B=2147483648;if((T>>>=0)>B)return!1;for(var j=1;j<=4;j*=2){var ct=I*(1+.2/j);if(ct=Math.min(ct,T+100663296),pt(Math.min(B,An(Math.max(T,ct),65536))))return!0}return!1},f:function Dt(T,I){var B=0;return te().forEach(function(j,ct){var xt=I+B;Ve[T+4*ct>>2]=xt,function Yn(T,I,B){for(var j=0;j>0]=T.charCodeAt(j);B||(En[I>>0]=0)}(j,xt),B+=j.length+1}),0},g:function he(T,I){var B=te();Ve[T>>2]=B.length;var j=0;return B.forEach(function(ct){j+=ct.length+1}),Ve[I>>2]=j,0},d:function N(T){try{var I=wt.getStreamFromFD(T);return E.close(I),0}catch(B){if(void 0===E||!(B instanceof E.ErrnoError))throw B;return B.errno}},i:function oe(T,I,B,j){try{var ct=wt.getStreamFromFD(T),xt=wt.doReadv(ct,I,B);return Ve[j>>2]=xt,0}catch(kt){if(void 0===E||!(kt instanceof E.ErrnoError))throw kt;return kt.errno}},j:function Ie(T,I,B,j,ct){try{var xt=wt.getStreamFromFD(T),Ft=4294967296*B+(I>>>0),ae=9007199254740992;return Ft<=-ae||Ft>=ae?-61:(E.llseek(xt,Ft,j),en=[xt.position>>>0,(_e=xt.position,+Math.abs(_e)>=1?_e>0?(0|Math.min(+Math.floor(_e/4294967296),4294967295))>>>0:~~+Math.ceil((_e-+(~~_e>>>0))/4294967296)>>>0:0)],Ve[ct>>2]=en[0],Ve[ct+4>>2]=en[1],xt.getdents&&0===Ft&&0===j&&(xt.getdents=null),0)}catch(Ee){if(void 0===E||!(Ee instanceof E.ErrnoError))throw Ee;return Ee.errno}},c:function Me(T,I,B,j){try{var ct=wt.getStreamFromFD(T),xt=wt.doWritev(ct,I,B);return Ve[j>>2]=xt,0}catch(kt){if(void 0===E||!(kt instanceof E.ErrnoError))throw kt;return kt.errno}},l:function sn(T){var I=Date.now();return Ve[T>>2]=I/1e3|0,Ve[T+4>>2]=I%1e3*1e3|0,0}};(function In(){var T={a:We};function I(kt,Ft){M.asm=kt.exports,Hn((qe=M.asm.m).buffer),yn=M.asm.G,function se(T){ei.unshift(T)}(M.asm.n),Bn()}function B(kt){I(kt.instance)}function j(kt){return function Ai(){return Fe||"function"!=typeof fetch?Promise.resolve().then(function(){return ni(gn)}):fetch(gn,{credentials:"same-origin"}).then(function(T){if(!T.ok)throw"failed to load wasm binary file at '"+gn+"'";return T.arrayBuffer()}).catch(function(){return ni(gn)})}().then(function(Ft){return WebAssembly.instantiate(Ft,T)}).then(function(Ft){return Ft}).then(kt,function(Ft){ve("failed to asynchronously prepare wasm: "+Ft),Dn(Ft)})}if(an(),M.instantiateWasm)try{return M.instantiateWasm(T,I)}catch(kt){return ve("Module.instantiateWasm callback failed with error: "+kt),!1}return function ct(){return Fe||"function"!=typeof WebAssembly.instantiateStreaming||Ii(gn)||"function"!=typeof fetch?j(B):fetch(gn,{credentials:"same-origin"}).then(function(kt){return WebAssembly.instantiateStreaming(kt,T).then(B,function(ae){return ve("wasm streaming compile failed: "+ae),ve("falling back to ArrayBuffer instantiation"),j(B)})})}().catch(Mt),{}})(),M.___wasm_call_ctors=function(){return(M.___wasm_call_ctors=M.asm.n).apply(null,arguments)};var Nn,et=M._emscripten_bind_CExpat_CExpat_0=function(){return(et=M._emscripten_bind_CExpat_CExpat_0=M.asm.o).apply(null,arguments)},gt=M._emscripten_bind_CExpat_version_0=function(){return(gt=M._emscripten_bind_CExpat_version_0=M.asm.p).apply(null,arguments)},mt=M._emscripten_bind_CExpat_create_0=function(){return(mt=M._emscripten_bind_CExpat_create_0=M.asm.q).apply(null,arguments)},Et=M._emscripten_bind_CExpat_destroy_0=function(){return(Et=M._emscripten_bind_CExpat_destroy_0=M.asm.r).apply(null,arguments)},zt=M._emscripten_bind_CExpat_parse_1=function(){return(zt=M._emscripten_bind_CExpat_parse_1=M.asm.s).apply(null,arguments)},ee=M._emscripten_bind_CExpat_tag_0=function(){return(ee=M._emscripten_bind_CExpat_tag_0=M.asm.t).apply(null,arguments)},Jt=M._emscripten_bind_CExpat_attrs_0=function(){return(Jt=M._emscripten_bind_CExpat_attrs_0=M.asm.u).apply(null,arguments)},pe=M._emscripten_bind_CExpat_content_0=function(){return(pe=M._emscripten_bind_CExpat_content_0=M.asm.v).apply(null,arguments)},ye=M._emscripten_bind_CExpat_startElement_0=function(){return(ye=M._emscripten_bind_CExpat_startElement_0=M.asm.w).apply(null,arguments)},Xt=M._emscripten_bind_CExpat_endElement_0=function(){return(Xt=M._emscripten_bind_CExpat_endElement_0=M.asm.x).apply(null,arguments)},le=M._emscripten_bind_CExpat_characterData_0=function(){return(le=M._emscripten_bind_CExpat_characterData_0=M.asm.y).apply(null,arguments)},Pe=M._emscripten_bind_CExpat___destroy___0=function(){return(Pe=M._emscripten_bind_CExpat___destroy___0=M.asm.z).apply(null,arguments)},Le=M._emscripten_bind_VoidPtr___destroy___0=function(){return(Le=M._emscripten_bind_VoidPtr___destroy___0=M.asm.A).apply(null,arguments)},He=M._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(He=M._emscripten_bind_CExpatJS_CExpatJS_0=M.asm.B).apply(null,arguments)},Qn=M._emscripten_bind_CExpatJS_startElement_0=function(){return(Qn=M._emscripten_bind_CExpatJS_startElement_0=M.asm.C).apply(null,arguments)},On=M._emscripten_bind_CExpatJS_endElement_0=function(){return(On=M._emscripten_bind_CExpatJS_endElement_0=M.asm.D).apply(null,arguments)},Ln=M._emscripten_bind_CExpatJS_characterData_0=function(){return(Ln=M._emscripten_bind_CExpatJS_characterData_0=M.asm.E).apply(null,arguments)},Xe=M._emscripten_bind_CExpatJS___destroy___0=function(){return(Xe=M._emscripten_bind_CExpatJS___destroy___0=M.asm.F).apply(null,arguments)};function qn(T){function I(){Nn||(Nn=!0,M.calledRun=!0,!De&&(function Jn(){!M.noFSInit&&!E.init.initialized&&E.init(),E.ignorePermissions=!1,di(ei)}(),Ct(M),M.onRuntimeInitialized&&M.onRuntimeInitialized(),function yt(){if(M.postRun)for("function"==typeof M.postRun&&(M.postRun=[M.postRun]);M.postRun.length;)T=M.postRun.shift(),Oe.unshift(T);var T;di(Oe)}()))}xe>0||(function $n(){if(M.preRun)for("function"==typeof M.preRun&&(M.preRun=[M.preRun]);M.preRun.length;)T=M.preRun.shift(),Xn.unshift(T);var T;di(Xn)}(),xe>0)||(M.setStatus?(M.setStatus("Running..."),setTimeout(function(){setTimeout(function(){M.setStatus("")},1),I()},1)):I())}if(M._malloc=function(){return(M._malloc=M.asm.H).apply(null,arguments)},Ue=function T(){Nn||qn(),Nn||(Ue=T)},M.run=qn,M.preInit)for("function"==typeof M.preInit&&(M.preInit=[M.preInit]);M.preInit.length>0;)M.preInit.pop()();function un(){}function on(T){return(T||un).__cache__}function Un(T,I){var B=on(I),j=B[T];return j||((j=Object.create((I||un).prototype)).ptr=T,B[T]=j)}qn(),(un.prototype=Object.create(un.prototype)).constructor=un,un.prototype.__class__=un,un.__cache__={},M.WrapperObject=un,M.getCache=on,M.wrapPointer=Un,M.castObject=function Vi(T,I){return Un(T.ptr,I)},M.NULL=Un(0),M.destroy=function fi(T){if(!T.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";T.__destroy__(),delete on(T.__class__)[T.ptr]},M.compare=function zi(T,I){return T.ptr===I.ptr},M.getPointer=function Kn(T){return T.ptr},M.getClass=function Si(T){return T.__class__};var _n={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(_n.needed){for(var T=0;T<_n.temps.length;T++)M._free(_n.temps[T]);_n.temps.length=0,M._free(_n.buffer),_n.buffer=0,_n.size+=_n.needed,_n.needed=0}_n.buffer||(_n.size+=128,_n.buffer=M._malloc(_n.size),fn(_n.buffer)),_n.pos=0},alloc:function(T,I){fn(_n.buffer);var ct,j=T.length*I.BYTES_PER_ELEMENT;return _n.pos+(j=j+7&-8)>=_n.size?(fn(j>0),_n.needed+=j,ct=M._malloc(j),_n.temps.push(ct)):(ct=_n.buffer+_n.pos,_n.pos+=j),ct},copy:function(T,I,B){switch(B>>>=0,I.BYTES_PER_ELEMENT){case 2:B>>>=1;break;case 4:B>>>=2;break;case 8:B>>>=3}for(var ct=0;ct=Q);)++dt;if(dt-D>16&&b.subarray&&ai)return ai.decode(b.subarray(D,dt));for(var St="";D>10,56320|1023&Ye)}}else St+=String.fromCharCode((31&Lt)<<6|Vt)}else St+=String.fromCharCode(Lt)}return St}function An(b,D){return b?Yn(Xn,b,D):""}function Ke(b,D,Z,Q){if(!(Q>0))return 0;for(var dt=Z,St=Z+Q-1,Lt=0;Lt=55296&&Vt<=57343&&(Vt=65536+((1023&Vt)<<10)|1023&b.charCodeAt(++Lt)),Vt<=127){if(Z>=St)break;D[Z++]=Vt}else if(Vt<=2047){if(Z+1>=St)break;D[Z++]=192|Vt>>6,D[Z++]=128|63&Vt}else if(Vt<=65535){if(Z+2>=St)break;D[Z++]=224|Vt>>12,D[Z++]=128|Vt>>6&63,D[Z++]=128|63&Vt}else{if(Z+3>=St)break;D[Z++]=240|Vt>>18,D[Z++]=128|Vt>>12&63,D[Z++]=128|Vt>>6&63,D[Z++]=128|63&Vt}}return D[Z]=0,Z-dt}function Pn(b){for(var D=0,Z=0;Z=55296&&Q<=57343&&(Q=65536+((1023&Q)<<10)|1023&b.charCodeAt(++Z)),Q<=127?++D:D+=Q<=2047?2:Q<=65535?3:4}return D}function mi(b,D){return b%D>0&&(b+=D-b%D),b}function Jn(b){Hn=b,M.HEAP8=yn=new Int8Array(b),M.HEAP16=ei=new Int16Array(b),M.HEAP32=Oe=new Int32Array(b),M.HEAPU8=Xn=new Uint8Array(b),M.HEAPU16=new Uint16Array(b),M.HEAPU32=new Uint32Array(b),M.HEAPF32=new Float32Array(b),M.HEAPF64=$n=new Float64Array(b)}var yt,Gt=[],se=[],de=[];var gn=0,ni=null;function In(b){gn++,M.monitorRunDependencies&&M.monitorRunDependencies(gn)}function _e(b){if(gn--,M.monitorRunDependencies&&M.monitorRunDependencies(gn),0==gn&&ni){var D=ni;ni=null,D()}}function en(b){M.onAbort&&M.onAbort(b),Fe(b="Aborted("+b+")"),Zn=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var D=new WebAssembly.RuntimeError(b);throw Mt(D),D}M.preloadedImages={},M.preloadedAudios={};var Mn;function di(b){return b.startsWith("data:application/octet-stream;base64,")}function we(b){try{if(b==Mn&&Be)return new Uint8Array(Be);throw"both async and sync fetching of the wasm failed"}catch(D){en(D)}}di(Mn="graphvizlib.wasm")||(Mn=function Nt(b){return M.locateFile?M.locateFile(b,ft):ft+b}(Mn));var ln,G,wt,W={161580:function(b,D){var Z=An(b),Q=An(D);N.createPath("/",qt.dirname(Z)),N.writeFile(qt.join("/",Z),Q)}};function ht(b){for(;b.length>0;){var D=b.shift();if("function"!=typeof D){var Z=D.func;"number"==typeof Z?void 0===D.arg?E(Z)():E(Z)(D.arg):Z(void 0===D.arg?null:D.arg)}else D(M)}}function E(b){return yt.get(b)}wt=function(){return performance.now()};function Rt(b){return Oe[kt()>>2]=b,b}var qt={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,D){for(var Z=0,Q=b.length-1;Q>=0;Q--){var dt=b[Q];"."===dt?b.splice(Q,1):".."===dt?(b.splice(Q,1),Z++):Z&&(b.splice(Q,1),Z--)}if(D)for(;Z;Z--)b.unshift("..");return b},normalize:function(b){var D="/"===b.charAt(0),Z="/"===b.substr(-1);return!(b=qt.normalizeArray(b.split("/").filter(function(Q){return!!Q}),!D).join("/"))&&!D&&(b="."),b&&Z&&(b+="/"),(D?"/":"")+b},dirname:function(b){var D=qt.splitPath(b),Z=D[0],Q=D[1];return Z||Q?(Q&&(Q=Q.substr(0,Q.length-1)),Z+Q):"."},basename:function(b){if("/"===b)return"/";var D=(b=(b=qt.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===D?b:b.substr(D+1)},extname:function(b){return qt.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return qt.normalize(b.join("/"))},join2:function(b,D){return qt.normalize(b+"/"+D)}};var pt={resolve:function(){for(var b="",D=!1,Z=arguments.length-1;Z>=-1&&!D;Z--){var Q=Z>=0?arguments[Z]:N.cwd();if("string"!=typeof Q)throw new TypeError("Arguments to path.resolve must be strings");if(!Q)return"";b=Q+"/"+b,D="/"===Q.charAt(0)}return(D?"/":"")+(b=qt.normalizeArray(b.split("/").filter(function(dt){return!!dt}),!D).join("/"))||"."},relative:function(b,D){function Z(Ye){for(var hn=0;hn=0&&""===Ye[bn];bn--);return hn>bn?[]:Ye.slice(hn,bn-hn+1)}b=pt.resolve(b).substr(1),D=pt.resolve(D).substr(1);for(var Q=Z(b.split("/")),dt=Z(D.split("/")),St=Math.min(Q.length,dt.length),Lt=St,Vt=0;Vt0&&(ve(Yn(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,D){null===D||10===D?(Fe(Yn(b.output,0)),b.output=[]):0!=D&&b.output.push(D)},flush:function(b){b.output&&b.output.length>0&&(Fe(Yn(b.output,0)),b.output=[])}}};function te(b){b=function Wt(b,D){return Math.ceil(b/D)*D}(b,65536);var D=Ge(65536,b);return D?(function At(b,D){Xn.fill(0,b,b+D)}(D,b),D):0}var Dt={ops_table:null,mount:function(b){return Dt.createNode(null,"/",16895,0)},createNode:function(b,D,Z,Q){if(N.isBlkdev(Z)||N.isFIFO(Z))throw new N.ErrnoError(63);Dt.ops_table||(Dt.ops_table={dir:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,lookup:Dt.node_ops.lookup,mknod:Dt.node_ops.mknod,rename:Dt.node_ops.rename,unlink:Dt.node_ops.unlink,rmdir:Dt.node_ops.rmdir,readdir:Dt.node_ops.readdir,symlink:Dt.node_ops.symlink},stream:{llseek:Dt.stream_ops.llseek}},file:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:{llseek:Dt.stream_ops.llseek,read:Dt.stream_ops.read,write:Dt.stream_ops.write,allocate:Dt.stream_ops.allocate,mmap:Dt.stream_ops.mmap,msync:Dt.stream_ops.msync}},link:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,readlink:Dt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:N.chrdev_stream_ops}});var dt=N.createNode(b,D,Z,Q);return N.isDir(dt.mode)?(dt.node_ops=Dt.ops_table.dir.node,dt.stream_ops=Dt.ops_table.dir.stream,dt.contents={}):N.isFile(dt.mode)?(dt.node_ops=Dt.ops_table.file.node,dt.stream_ops=Dt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):N.isLink(dt.mode)?(dt.node_ops=Dt.ops_table.link.node,dt.stream_ops=Dt.ops_table.link.stream):N.isChrdev(dt.mode)&&(dt.node_ops=Dt.ops_table.chrdev.node,dt.stream_ops=Dt.ops_table.chrdev.stream),dt.timestamp=Date.now(),b&&(b.contents[D]=dt,b.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,D){var Z=b.contents?b.contents.length:0;if(!(Z>=D)){D=Math.max(D,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(D=Math.max(D,256));var dt=b.contents;b.contents=new Uint8Array(D),b.usedBytes>0&&b.contents.set(dt.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,D){if(b.usedBytes!=D)if(0==D)b.contents=null,b.usedBytes=0;else{var Z=b.contents;b.contents=new Uint8Array(D),Z&&b.contents.set(Z.subarray(0,Math.min(D,b.usedBytes))),b.usedBytes=D}},node_ops:{getattr:function(b){var D={};return D.dev=N.isChrdev(b.mode)?b.id:1,D.ino=b.id,D.mode=b.mode,D.nlink=1,D.uid=0,D.gid=0,D.rdev=b.rdev,D.size=N.isDir(b.mode)?4096:N.isFile(b.mode)?b.usedBytes:N.isLink(b.mode)?b.link.length:0,D.atime=new Date(b.timestamp),D.mtime=new Date(b.timestamp),D.ctime=new Date(b.timestamp),D.blksize=4096,D.blocks=Math.ceil(D.size/D.blksize),D},setattr:function(b,D){void 0!==D.mode&&(b.mode=D.mode),void 0!==D.timestamp&&(b.timestamp=D.timestamp),void 0!==D.size&&Dt.resizeFileStorage(b,D.size)},lookup:function(b,D){throw N.genericErrors[44]},mknod:function(b,D,Z,Q){return Dt.createNode(b,D,Z,Q)},rename:function(b,D,Z){if(N.isDir(b.mode)){var Q;try{Q=N.lookupNode(D,Z)}catch(St){}if(Q)for(var dt in Q.contents)throw new N.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=Z,D.contents[Z]=b,D.timestamp=b.parent.timestamp,b.parent=D},unlink:function(b,D){delete b.contents[D],b.timestamp=Date.now()},rmdir:function(b,D){var Z=N.lookupNode(b,D);for(var Q in Z.contents)throw new N.ErrnoError(55);delete b.contents[D],b.timestamp=Date.now()},readdir:function(b){var D=[".",".."];for(var Z in b.contents)!b.contents.hasOwnProperty(Z)||D.push(Z);return D},symlink:function(b,D,Z){var Q=Dt.createNode(b,D,41471,0);return Q.link=Z,Q},readlink:function(b){if(!N.isLink(b.mode))throw new N.ErrnoError(28);return b.link}},stream_ops:{read:function(b,D,Z,Q,dt){var St=b.node.contents;if(dt>=b.node.usedBytes)return 0;var Lt=Math.min(b.node.usedBytes-dt,Q);if(Lt>8&&St.subarray)D.set(St.subarray(dt,dt+Lt),Z);else for(var Vt=0;Vt0||Q+Z8)throw new N.ErrnoError(32);for(var dt=qt.normalizeArray(b.split("/").filter(function($e){return!!$e}),!1),St=N.root,Lt="/",Vt=0;Vt40)throw new N.ErrnoError(32)}}return{path:Lt,node:St}},getPath:function(b){for(var D;;){if(N.isRoot(b)){var Z=b.mount.mountpoint;return D?"/"!==Z[Z.length-1]?Z+"/"+D:Z+D:Z}D=D?b.name+"/"+D:b.name,b=b.parent}},hashName:function(b,D){for(var Z=0,Q=0;Q>>0)%N.nameTable.length},hashAddNode:function(b){var D=N.hashName(b.parent.id,b.name);b.name_next=N.nameTable[D],N.nameTable[D]=b},hashRemoveNode:function(b){var D=N.hashName(b.parent.id,b.name);if(N.nameTable[D]===b)N.nameTable[D]=b.name_next;else for(var Z=N.nameTable[D];Z;){if(Z.name_next===b){Z.name_next=b.name_next;break}Z=Z.name_next}},lookupNode:function(b,D){var Z=N.mayLookup(b);if(Z)throw new N.ErrnoError(Z,b);for(var Q=N.hashName(b.id,D),dt=N.nameTable[Q];dt;dt=dt.name_next)if(dt.parent.id===b.id&&dt.name===D)return dt;return N.lookup(b,D)},createNode:function(b,D,Z,Q){var dt=new N.FSNode(b,D,Z,Q);return N.hashAddNode(dt),dt},destroyNode:function(b){N.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var D=N.flagModes[b];if(void 0===D)throw new Error("Unknown file open mode: "+b);return D},flagsToPermissionString:function(b){var D=["r","w","rw"][3&b];return 512&b&&(D+="w"),D},nodePermissions:function(b,D){return N.ignorePermissions?0:D.includes("r")&&!(292&b.mode)||D.includes("w")&&!(146&b.mode)||D.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return N.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,D){try{return N.lookupNode(b,D),20}catch(Q){}return N.nodePermissions(b,"wx")},mayDelete:function(b,D,Z){var Q;try{Q=N.lookupNode(b,D)}catch(St){return St.errno}var dt=N.nodePermissions(b,"wx");if(dt)return dt;if(Z){if(!N.isDir(Q.mode))return 54;if(N.isRoot(Q)||N.getPath(Q)===N.cwd())return 10}else if(N.isDir(Q.mode))return 31;return 0},mayOpen:function(b,D){return b?N.isLink(b.mode)?32:N.isDir(b.mode)&&("r"!==N.flagsToPermissionString(D)||512&D)?31:N.nodePermissions(b,N.flagsToPermissionString(D)):44},MAX_OPEN_FDS:4096,nextfd:function(b,D){D=D||N.MAX_OPEN_FDS;for(var Z=b=b||0;Z<=D;Z++)if(!N.streams[Z])return Z;throw new N.ErrnoError(33)},getStream:function(b){return N.streams[b]},createStream:function(b,D,Z){N.FSStream||(N.FSStream=function(){},N.FSStream.prototype={object:{get:function(){return this.node},set:function(Lt){this.node=Lt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var Q=new N.FSStream;for(var dt in b)Q[dt]=b[dt];b=Q;var St=N.nextfd(D,Z);return b.fd=St,N.streams[St]=b,b},closeStream:function(b){N.streams[b]=null},chrdev_stream_ops:{open:function(b){var D=N.getDevice(b.node.rdev);b.stream_ops=D.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new N.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,D){return b<<8|D},registerDevice:function(b,D){N.devices[b]={stream_ops:D}},getDevice:function(b){return N.devices[b]},getMounts:function(b){for(var D=[],Z=[b];Z.length;){var Q=Z.pop();D.push(Q),Z.push.apply(Z,Q.mounts)}return D},syncfs:function(b,D){"function"==typeof b&&(D=b,b=!1),N.syncFSRequests++,N.syncFSRequests>1&&Fe("warning: "+N.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=N.getMounts(N.root.mount),Q=0;function dt(Lt){return N.syncFSRequests--,D(Lt)}function St(Lt){if(Lt)return St.errored?void 0:(St.errored=!0,dt(Lt));++Q>=Z.length&&dt(null)}Z.forEach(function(Lt){if(!Lt.type.syncfs)return St(null);Lt.type.syncfs(Lt,b,St)})},mount:function(b,D,Z){var St,Q="/"===Z,dt=!Z;if(Q&&N.root)throw new N.ErrnoError(10);if(!Q&&!dt){var Lt=N.lookupPath(Z,{follow_mount:!1});if(Z=Lt.path,N.isMountpoint(St=Lt.node))throw new N.ErrnoError(10);if(!N.isDir(St.mode))throw new N.ErrnoError(54)}var Vt={type:b,opts:D,mountpoint:Z,mounts:[]},ce=b.mount(Vt);return ce.mount=Vt,Vt.root=ce,Q?N.root=ce:St&&(St.mounted=Vt,St.mount&&St.mount.mounts.push(Vt)),ce},unmount:function(b){var D=N.lookupPath(b,{follow_mount:!1});if(!N.isMountpoint(D.node))throw new N.ErrnoError(28);var Z=D.node,Q=Z.mounted,dt=N.getMounts(Q);Object.keys(N.nameTable).forEach(function(Lt){for(var Vt=N.nameTable[Lt];Vt;){var ce=Vt.name_next;dt.includes(Vt.mount)&&N.destroyNode(Vt),Vt=ce}}),Z.mounted=null;var St=Z.mount.mounts.indexOf(Q);Z.mount.mounts.splice(St,1)},lookup:function(b,D){return b.node_ops.lookup(b,D)},mknod:function(b,D,Z){var dt=N.lookupPath(b,{parent:!0}).node,St=qt.basename(b);if(!St||"."===St||".."===St)throw new N.ErrnoError(28);var Lt=N.mayCreate(dt,St);if(Lt)throw new N.ErrnoError(Lt);if(!dt.node_ops.mknod)throw new N.ErrnoError(63);return dt.node_ops.mknod(dt,St,D,Z)},create:function(b,D){return D=void 0!==D?D:438,D&=4095,N.mknod(b,D|=32768,0)},mkdir:function(b,D){return D=void 0!==D?D:511,D&=1023,N.mknod(b,D|=16384,0)},mkdirTree:function(b,D){for(var Z=b.split("/"),Q="",dt=0;dtthis.length-1||$e<0)){var nn=$e%this.chunkSize;return this.getter($e/this.chunkSize|0)[nn]}},St.prototype.setDataGetter=function($e){this.getter=$e},St.prototype.cacheLength=function(){var $e=new XMLHttpRequest;if($e.open("HEAD",Z,!1),$e.send(null),!($e.status>=200&&$e.status<300||304===$e.status))throw new Error("Couldn't load "+Z+". Status: "+$e.status);var kn,nn=Number($e.getResponseHeader("Content-length")),Ri=(kn=$e.getResponseHeader("Accept-Ranges"))&&"bytes"===kn,Tr=(kn=$e.getResponseHeader("Content-Encoding"))&&"gzip"===kn,Oi=1048576;Ri||(Oi=nn);var Di=this;Di.setDataGetter(function(Qi){var wr=Qi*Oi,_i=(Qi+1)*Oi-1;if(_i=Math.min(_i,nn-1),void 0===Di.chunks[Qi]&&(Di.chunks[Qi]=function(Qi,wr){if(Qi>wr)throw new Error("invalid range ("+Qi+", "+wr+") or no bytes requested!");if(wr>nn-1)throw new Error("only "+nn+" bytes available! programmer error!");var _i=new XMLHttpRequest;if(_i.open("GET",Z,!1),nn!==Oi&&_i.setRequestHeader("Range","bytes="+Qi+"-"+wr),"undefined"!=typeof Uint8Array&&(_i.responseType="arraybuffer"),_i.overrideMimeType&&_i.overrideMimeType("text/plain; charset=x-user-defined"),_i.send(null),!(_i.status>=200&&_i.status<300||304===_i.status))throw new Error("Couldn't load "+Z+". Status: "+_i.status);return void 0!==_i.response?new Uint8Array(_i.response||[]):Yi(_i.responseText||"",!0)}(wr,_i)),void 0===Di.chunks[Qi])throw new Error("doXHR failed!");return Di.chunks[Qi]}),(Tr||!nn)&&(Oi=nn=1,nn=this.getter(0).length,Oi=nn,ve("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=nn,this._chunkSize=Oi,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Vt,ce=N.createFile(b,D,Vt={isDevice:!1,url:Z},Q,dt);Vt.contents?ce.contents=Vt.contents:Vt.url&&(ce.contents=null,ce.url=Vt.url),Object.defineProperties(ce,{usedBytes:{get:function(){return this.contents.length}}});var Ye={};return Object.keys(ce.stream_ops).forEach(function(bn){var $e=ce.stream_ops[bn];Ye[bn]=function(){return N.forceLoadFile(ce),$e.apply(null,arguments)}}),Ye.read=function($e,nn,kn,Ri,Tr){N.forceLoadFile(ce);var Oi=$e.node.contents;if(Tr>=Oi.length)return 0;var Cr=Math.min(Oi.length-Tr,Ri);if(Oi.slice)for(var Di=0;Di>2]=Q.dev,Oe[Z+4>>2]=0,Oe[Z+8>>2]=Q.ino,Oe[Z+12>>2]=Q.mode,Oe[Z+16>>2]=Q.nlink,Oe[Z+20>>2]=Q.uid,Oe[Z+24>>2]=Q.gid,Oe[Z+28>>2]=Q.rdev,Oe[Z+32>>2]=0,G=[Q.size>>>0,(ln=Q.size,+Math.abs(ln)>=1?ln>0?(0|Math.min(+Math.floor(ln/4294967296),4294967295))>>>0:~~+Math.ceil((ln-+(~~ln>>>0))/4294967296)>>>0:0)],Oe[Z+40>>2]=G[0],Oe[Z+44>>2]=G[1],Oe[Z+48>>2]=4096,Oe[Z+52>>2]=Q.blocks,Oe[Z+56>>2]=Q.atime.getTime()/1e3|0,Oe[Z+60>>2]=0,Oe[Z+64>>2]=Q.mtime.getTime()/1e3|0,Oe[Z+68>>2]=0,Oe[Z+72>>2]=Q.ctime.getTime()/1e3|0,Oe[Z+76>>2]=0,G=[Q.ino>>>0,(ln=Q.ino,+Math.abs(ln)>=1?ln>0?(0|Math.min(+Math.floor(ln/4294967296),4294967295))>>>0:~~+Math.ceil((ln-+(~~ln>>>0))/4294967296)>>>0:0)],Oe[Z+80>>2]=G[0],Oe[Z+84>>2]=G[1],0},doMsync:function(b,D,Z,Q,dt){var St=Xn.slice(b,b+Z);N.msync(D,St,dt,Z,Q)},doMkdir:function(b,D){return"/"===(b=qt.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),N.mkdir(b,D,0),0},doMknod:function(b,D,Z){switch(61440&D){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return N.mknod(b,D,Z),0},doReadlink:function(b,D,Z){if(Z<=0)return-28;var Q=N.readlink(b),dt=Math.min(Z,Pn(Q)),St=yn[D+dt];return function En(b,D,Z){return Ke(b,Xn,D,Z)}(Q,D,Z+1),yn[D+dt]=St,dt},doAccess:function(b,D){if(-8&D)return-28;var Q=N.lookupPath(b,{follow:!0}).node;if(!Q)return-44;var dt="";return 4&D&&(dt+="r"),2&D&&(dt+="w"),1&D&&(dt+="x"),dt&&N.nodePermissions(Q,dt)?-2:0},doDup:function(b,D,Z){var Q=N.getStream(Z);return Q&&N.close(Q),N.open(b,D,0,Z,Z).fd},doReadv:function(b,D,Z,Q){for(var dt=0,St=0;St>2],ce=N.read(b,yn,Oe[D+8*St>>2],Vt,Q);if(ce<0)return-1;if(dt+=ce,ce>2],Oe[D+(8*St+4)>>2],Q);if(ce<0)return-1;dt+=ce}return dt},varargs:void 0,get:function(){return oe.varargs+=4,Oe[oe.varargs-4>>2]},getStr:function(b){return An(b)},getStreamFromFD:function(b){var D=N.getStream(b);if(!D)throw new N.ErrnoError(8);return D},get64:function(b,D){return b}};var Jt=[];function le(b){try{return ke.grow(b-Hn.byteLength+65535>>>16),Jn(ke.buffer),1}catch(D){}}var Le={};function Qn(){if(!Qn.strings){var D={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ie||"./this.program"};for(var Z in Le)void 0===Le[Z]?delete D[Z]:D[Z]=Le[Z];var Q=[];for(var Z in D)Q.push(Z+"="+D[Z]);Qn.strings=Q}return Qn.strings}var Kn=function(b,D,Z,Q){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=N.nextInode++,this.name=D,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=Q};function Yi(b,D,Z){var Q=Z>0?Z:Pn(b)+1,dt=new Array(Q),St=Ke(b,dt,0,dt.length);return D&&(dt.length=St),dt}Object.defineProperties(Kn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return N.isDir(this.mode)}},isDevice:{get:function(){return N.isChrdev(this.mode)}}}),N.FSNode=Kn,N.staticInit();var Pt={A:function re(b,D){return function Yt(b,D){var Z;if(0===b)Z=Date.now();else{if(1!==b&&4!==b)return Rt(28),-1;Z=wt()}return Oe[D>>2]=Z/1e3|0,Oe[D+4>>2]=Z%1e3*1e3*1e3|0,0}(b,D)},B:function Ie(b,D){try{return b=oe.getStr(b),oe.doAccess(b,D)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},h:function Me(b,D,Z){oe.varargs=Z;try{var Q=oe.getStreamFromFD(b);switch(D){case 0:return(dt=oe.get())<0?-28:N.open(Q.path,Q.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return Q.flags;case 4:var dt=oe.get();return Q.flags|=dt,0;case 5:return dt=oe.get(),ei[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Rt(28),-1}}catch(Vt){if(void 0===N||!(Vt instanceof N.ErrnoError))throw Vt;return-Vt.errno}},x:function sn(b,D){try{var Z=oe.getStreamFromFD(b);return oe.doStat(N.stat,Z.path,D)}catch(Q){if(void 0===N||!(Q instanceof N.ErrnoError))throw Q;return-Q.errno}},u:function ze(b,D,Z,Q){try{D=oe.getStr(D);var dt=256&Q,St=4096&Q;return Q&=-4353,D=oe.calculateAt(b,D,St),oe.doStat(dt?N.lstat:N.stat,D,Z)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},y:function Qe(b,D,Z){oe.varargs=Z;try{var Q=oe.getStreamFromFD(b);switch(D){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return Q.tty?0:-59;case 21519:if(!Q.tty)return-59;var dt=oe.get();return Oe[dt>>2]=0,0;case 21520:return Q.tty?-28:-59;case 21531:return dt=oe.get(),N.ioctl(Q,D,dt);default:en("bad ioctl syscall "+D)}}catch(St){if(void 0===N||!(St instanceof N.ErrnoError))throw St;return-St.errno}},k:function be(b,D,Z,Q,dt,St){try{return function fe(b,D,Z,Q,dt,St){St<<=12;var Lt,Vt=!1;if(0!=(16&Q)&&b%65536!=0)return-28;if(0!=(32&Q)){if(!(Lt=te(D)))return-48;Vt=!0}else{var ce=N.getStream(dt);if(!ce)return-8;var Ye=N.mmap(ce,b,D,St,Z,Q);Lt=Ye.ptr,Vt=Ye.allocated}return oe.mappings[Lt]={malloc:Lt,len:D,allocated:Vt,fd:dt,prot:Z,flags:Q,offset:St},Lt}(b,D,Z,Q,dt,St)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},j:function et(b,D){try{return function We(b,D){var Z=oe.mappings[b];if(0===D||!Z)return-28;if(D===Z.len){var Q=N.getStream(Z.fd);Q&&2&Z.prot&&oe.doMsync(b,Q,D,Z.flags,Z.offset),oe.mappings[b]=null,Z.allocated&&xt(Z.malloc)}return 0}(b,D)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},e:function gt(b,D,Z){oe.varargs=Z;try{var Q=oe.getStr(b),dt=Z?oe.get():0;return N.open(Q,D,dt).fd}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},v:function mt(b,D){try{return b=oe.getStr(b),oe.doStat(N.stat,b,D)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},z:function Et(b){try{return b=oe.getStr(b),N.unlink(b),0}catch(D){if(void 0===N||!(D instanceof N.ErrnoError))throw D;return-D.errno}},r:function zt(){throw"longjmp"},q:function ee(){en("")},C:function ye(b,D,Z){var Q=function pe(b,D){var Z;for(Jt.length=0,D>>=2;Z=Xn[b++];){var Q=Z<105;Q&&1&D&&D++,Jt.push(Q?$n[D++>>1]:Oe[D]),++D}return Jt}(D,Z);return W[b].apply(null,Q)},o:function Xt(b,D,Z){Xn.copyWithin(b,D,D+Z)},p:function Pe(b){var D=Xn.length,Z=2147483648;if((b>>>=0)>Z)return!1;for(var Q=1;Q<=4;Q*=2){var dt=D*(1+.2/Q);if(dt=Math.min(dt,b+100663296),le(Math.min(Z,mi(Math.max(b,dt),65536))))return!0}return!1},s:function On(b,D){var Z=0;return Qn().forEach(function(Q,dt){var St=D+Z;Oe[b+4*dt>>2]=St,function Ve(b,D,Z){for(var Q=0;Q>0]=b.charCodeAt(Q);Z||(yn[D>>0]=0)}(Q,St),Z+=Q.length+1}),0},t:function Ln(b,D){var Z=Qn();Oe[b>>2]=Z.length;var Q=0;return Z.forEach(function(dt){Q+=dt.length+1}),Oe[D>>2]=Q,0},a:function Xe(b){!function $i(b,D){!function Ei(b){(function Ue(){return Cn||!1})()||(M.onExit&&M.onExit(b),Zn=!0),Ut(b,new wn(b))}(b)}(b)},d:function Nn(b){try{var D=oe.getStreamFromFD(b);return N.close(D),0}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return Z.errno}},i:function qn(b,D,Z,Q){try{var dt=oe.getStreamFromFD(b),St=oe.doReadv(dt,D,Z);return Oe[Q>>2]=St,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},n:function un(b,D,Z,Q,dt){try{var St=oe.getStreamFromFD(b),Vt=4294967296*Z+(D>>>0),ce=9007199254740992;return Vt<=-ce||Vt>=ce?-61:(N.llseek(St,Vt,Q),G=[St.position>>>0,(ln=St.position,+Math.abs(ln)>=1?ln>0?(0|Math.min(+Math.floor(ln/4294967296),4294967295))>>>0:~~+Math.ceil((ln-+(~~ln>>>0))/4294967296)>>>0:0)],Oe[dt>>2]=G[0],Oe[dt+4>>2]=G[1],St.getdents&&0===Vt&&0===Q&&(St.getdents=null),0)}catch(Ye){if(void 0===N||!(Ye instanceof N.ErrnoError))throw Ye;return Ye.errno}},g:function on(b,D,Z,Q){try{var dt=oe.getStreamFromFD(b),St=oe.doWritev(dt,D,Z);return Oe[Q>>2]=St,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},c:function Un(){return qe},w:function Vi(b){var D=Date.now();return Oe[b>>2]=D/1e3|0,Oe[b+4>>2]=D%1e3*1e3|0,0},l:function Ne(b,D,Z,Q,dt,St,Lt){var Vt=Ft();try{return E(b)(D,Z,Q,dt,St,Lt)}catch(ce){if(ae(Vt),ce!==ce+0&&"longjmp"!==ce)throw ce;Ee(1,0)}},m:function tn(b,D){var Z=Ft();try{E(b)(D)}catch(Q){if(ae(Z),Q!==Q+0&&"longjmp"!==Q)throw Q;Ee(1,0)}},b:function fi(b){!function(b){qe=b}(b)},f:function zi(b){var D=Date.now()/1e3|0;return b&&(Oe[b>>2]=D),D}};(function pn(){var b={a:Pt};function D(Lt,Vt){M.asm=Lt.exports,Jn((ke=M.asm.D).buffer),yt=M.asm.M,function ti(b){se.unshift(b)}(M.asm.E),_e()}function Z(Lt){D(Lt.instance)}function Q(Lt){return function jn(){return Be||"function"!=typeof fetch?Promise.resolve().then(function(){return we(Mn)}):fetch(Mn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+Mn+"'";return b.arrayBuffer()}).catch(function(){return we(Mn)})}().then(function(Vt){return WebAssembly.instantiate(Vt,b)}).then(function(Vt){return Vt}).then(Lt,function(Vt){Fe("failed to asynchronously prepare wasm: "+Vt),en(Vt)})}if(In(),M.instantiateWasm)try{return M.instantiateWasm(b,D)}catch(Lt){return Fe("Module.instantiateWasm callback failed with error: "+Lt),!1}return function dt(){return Be||"function"!=typeof WebAssembly.instantiateStreaming||di(Mn)||"function"!=typeof fetch?Q(Z):fetch(Mn,{credentials:"same-origin"}).then(function(Lt){return WebAssembly.instantiateStreaming(Lt,b).then(Z,function(ce){return Fe("wasm streaming compile failed: "+ce),Fe("falling back to ArrayBuffer instantiation"),Q(Z)})})}().catch(Mt),{}})(),M.___wasm_call_ctors=function(){return(M.___wasm_call_ctors=M.asm.E).apply(null,arguments)};var Ce=M._emscripten_bind_VoidPtr___destroy___0=function(){return(Ce=M._emscripten_bind_VoidPtr___destroy___0=M.asm.F).apply(null,arguments)},jt=M._emscripten_bind_Graphviz_Graphviz_2=function(){return(jt=M._emscripten_bind_Graphviz_Graphviz_2=M.asm.G).apply(null,arguments)},T=M._emscripten_bind_Graphviz_version_0=function(){return(T=M._emscripten_bind_Graphviz_version_0=M.asm.H).apply(null,arguments)},I=M._emscripten_bind_Graphviz_lastError_0=function(){return(I=M._emscripten_bind_Graphviz_lastError_0=M.asm.I).apply(null,arguments)},B=M._emscripten_bind_Graphviz_layout_3=function(){return(B=M._emscripten_bind_Graphviz_layout_3=M.asm.J).apply(null,arguments)},j=M._emscripten_bind_Graphviz_createFile_2=function(){return(j=M._emscripten_bind_Graphviz_createFile_2=M.asm.K).apply(null,arguments)},ct=M._emscripten_bind_Graphviz___destroy___0=function(){return(ct=M._emscripten_bind_Graphviz___destroy___0=M.asm.L).apply(null,arguments)};M._malloc=function(){return(M._malloc=M.asm.N).apply(null,arguments)};var Je,xt=M._free=function(){return(xt=M._free=M.asm.O).apply(null,arguments)},kt=M.___errno_location=function(){return(kt=M.___errno_location=M.asm.P).apply(null,arguments)},Ft=M.stackSave=function(){return(Ft=M.stackSave=M.asm.Q).apply(null,arguments)},ae=M.stackRestore=function(){return(ae=M.stackRestore=M.asm.R).apply(null,arguments)},Ee=M._setThrew=function(){return(Ee=M._setThrew=M.asm.S).apply(null,arguments)},Ge=M._memalign=function(){return(Ge=M._memalign=M.asm.T).apply(null,arguments)};function wn(b){this.name="ExitStatus",this.message="Program terminated with exit("+b+")",this.status=b}function gi(b){function D(){Je||(Je=!0,M.calledRun=!0,!Zn&&(function an(){!M.noFSInit&&!N.init.initialized&&N.init(),N.ignorePermissions=!1,ht(se)}(),Ct(M),M.onRuntimeInitialized&&M.onRuntimeInitialized(),function Bn(){if(M.postRun)for("function"==typeof M.postRun&&(M.postRun=[M.postRun]);M.postRun.length;)b=M.postRun.shift(),de.unshift(b);var b;ht(de)}()))}gn>0||(function Re(){if(M.preRun)for("function"==typeof M.preRun&&(M.preRun=[M.preRun]);M.preRun.length;)b=M.preRun.shift(),Gt.unshift(b);var b;ht(Gt)}(),gn>0)||(M.setStatus?(M.setStatus("Running..."),setTimeout(function(){setTimeout(function(){M.setStatus("")},1),D()},1)):D())}if(ni=function b(){Je||gi(),Je||(ni=b)},M.run=gi,M.preInit)for("function"==typeof M.preInit&&(M.preInit=[M.preInit]);M.preInit.length>0;)M.preInit.pop()();function vn(){}function si(b){return(b||vn).__cache__}function Mi(b,D){var Z=si(D),Q=Z[b];return Q||((Q=Object.create((D||vn).prototype)).ptr=b,Z[b]=Q)}gi(),(vn.prototype=Object.create(vn.prototype)).constructor=vn,vn.prototype.__class__=vn,vn.__cache__={},M.WrapperObject=vn,M.getCache=si,M.wrapPointer=Mi,M.castObject=function ar(b,D){return Mi(b.ptr,D)},M.NULL=Mi(0),M.destroy=function ci(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete si(b.__class__)[b.ptr]},M.compare=function as(b,D){return b.ptr===D.ptr},M.getPointer=function ss(b){return b.ptr},M.getClass=function os(b){return b.__class__};var Fn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Fn.needed){for(var b=0;b=Fn.size?(Wn(Q>0),Fn.needed+=Q,dt=M._malloc(Q),Fn.temps.push(dt)):(dt=Fn.buffer+Fn.pos,Fn.pos+=Q),dt},copy:function(b,D,Z){switch(Z>>>=0,D.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var dt=0;dt\n\n')}}function ut(Y,K){var rt=z({images:[],files:[]},K);X(X([],rt.files,!0),function nt(Y){return Y.map(it)}(rt.images),!0).forEach(function(at){return Y.createFile(at.path,at.data)})}var tt={layout:function(Y,K,rt,at){return void 0===K&&(K="svg"),void 0===rt&&(rt="dot"),Y?u(U,null==at?void 0:at.wasmFolder,null==at?void 0:at.wasmBinary).then(function(V){var M=new V.Graphviz(void 0!==(null==at?void 0:at.yInvert)&&(null==at?void 0:at.yInvert),void 0!==(null==at?void 0:at.nop)?null==at?void 0:at.nop:0);ut(M,at);var Ct=M.layout(Y,K,rt);if(V.destroy(M),!Ct)throw new Error(V.Graphviz.prototype.lastError());return Ct}):Promise.resolve("")},circo:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"circo",rt)},dot:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"dot",rt)},fdp:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"fdp",rt)},sfdp:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"sfdp",rt)},neato:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"neato",rt)},osage:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"osage",rt)},patchwork:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"patchwork",rt)},twopi:function(Y,K,rt){return void 0===K&&(K="svg"),this.layout(Y,K,"twopi",rt)}},$=function(){function Y(K){this._wasm=K}return Y.prototype.layout=function(K,rt,at,V){if(void 0===rt&&(rt="svg"),void 0===at&&(at="dot"),!K)return"";var M=new this._wasm.Graphviz((null==V?void 0:V.yInvert)?1:0,(null==V?void 0:V.nop)?null==V?void 0:V.nop:0);ut(M,V);var Ct=M.layout(K,rt,at);if(this._wasm.destroy(M),!Ct)throw new Error(this._wasm.Graphviz.prototype.lastError());return Ct},Y.prototype.circo=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"circo",at)},Y.prototype.dot=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"dot",at)},Y.prototype.fdp=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"fdp",at)},Y.prototype.sfdp=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"sfdp",at)},Y.prototype.neato=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"neato",at)},Y.prototype.osage=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"osage",at)},Y.prototype.patchwork=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"patchwork",at)},Y.prototype.twopi=function(K,rt,at){return void 0===rt&&(rt="svg"),this.layout(K,rt,"twopi",at)},Y}();s.GraphvizSync=$,s.StackElement=g,s.StackParser=C,s.expatVersion=function L(Y,K){return u(_,Y,K).then(function(rt){return rt.CExpat.prototype.version()})},s.graphviz=tt,s.graphvizSync=function st(Y,K){return u(U,Y,K).then(function(rt){return new $(rt)})},s.graphvizVersion=function J(Y,K){return u(U,Y,K).then(function(rt){return rt.Graphviz.prototype.version()})},s.parse=P,s.wasmFolder=l,Object.defineProperty(s,"__esModule",{value:!0})}(k)},61124:(w,k,s)=>{"use strict";s.r(k),s.d(k,{AdminModule:()=>dC});var c={};s.r(c),s.d(c,{forceCenter:()=>yp,forceCollide:()=>gl,forceLink:()=>bl,forceManyBody:()=>Cl,forceRadial:()=>Wp,forceSimulation:()=>Tl,forceX:()=>$p,forceY:()=>Qp});var x={};s.r(x),s.d(x,{dispatch:()=>la.Z});var v={};s.r(v),s.d(v,{interval:()=>jp,now:()=>er.zO,timeout:()=>ca.Z,timer:()=>er.HT,timerFlush:()=>er.R8});var _=s(69808),f=s(11735),t=s(5e3),p=s(77968),l=s(4235),h=s(25245),m=s(61283),u=s(51062);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[l.W,h.Hw,_.PC,m.A],pipes:[u.X$],styles:[""]}),n})();var A=s(71135);let L=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},directives:[A.L],styles:[""]}),n})();var P=s(20449),O=s(48966),R=s(32075),U=s(32080),z=s(32105),X=s(20773),it=s(98380),nt=s(47423);function ut(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function J(n,r){1&n&&t._UZ(0,"th",16)}function tt(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function $(n,r){1&n&&t._UZ(0,"tr",18)}function st(n,r){1&n&&t._UZ(0,"tr",19)}function Y(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,J,1,0,"th",11),t.YNc(10,tt,2,1,"td",12),t.BQk(),t.YNc(11,$,1,0,"tr",13),t.YNc(12,st,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let K=(()=>{class n{constructor(e,i,a,o,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=d,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(z.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ut,1,0,"mat-spinner",1),t.YNc(5,Y,16,12,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,X.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,it.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var rt=s(93075),at=s(80013),V=s(87545),M=s(591),Ct=s(33009),Mt=s(66688),Bt=s(43489),Ht=s(826),ie=s(69054),Ut=s(5430);function vt(...n){const r=n[n.length-1];return"function"==typeof r&&n.pop(),(0,Ct.n)(n,void 0).lift(new ft(r))}class ft{constructor(r){this.resultSelector=r}call(r,e){return e.subscribe(new Nt(r,this.resultSelector))}}class Nt extends Bt.L{constructor(r,e,i=Object.create(null)){super(r),this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:null,this.values=i}_next(r){const e=this.iterators;(0,Mt.k)(r)?e.push(new me(r)):e.push("function"==typeof r[Ut.hZ]?new Qt(r[Ut.hZ]()):new ge(this.destination,this,r))}_complete(){const r=this.iterators,e=r.length;if(this.unsubscribe(),0!==e){this.active=e;for(let i=0;ithis.index}hasCompleted(){return this.array.length===this.index}}class ge extends Ht.L{constructor(r,e,i){super(r),this.parent=e,this.observable=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[Ut.hZ](){return this}next(){const r=this.buffer;return 0===r.length&&this.isComplete?{value:null,done:!0}:{value:r.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(r,e,i,a,o){this.buffer.push(e),this.parent.checkIterators()}subscribe(r,e){return(0,ie.D)(this,this.observable,this,e)}}var ve=s(21086),Fe=s(19516),qe=s(67322),De=s(98833),fn=s(74533),Be=s(74107),Cn=s(90508),ke=s(29772),Zn=s(32368),Wn=s(4765);function ai(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.ALo(1,"translate"),t.TgZ(2,"mat-slide-toggle",2),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.unique=a}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA()}if(2&n){const e=r.ngIf,i=t.oxw();t.s9C("matTooltip",t.lcZ(1,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.TOOLTIP")),t.Q6J("matTooltipDisabled",!e.disable),t.xp6(2),t.Q6J("ngModel",i.attDef.unique)("disabled",e.disable),t.xp6(1),t.hij(" ",t.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_UNIQUE_TOGGLE.UNIQUE")," ")}}const Yn=function(n){return{disable:n}};let An=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-unique-toggle"]],inputs:{attDef:"attDef"},decls:2,vars:5,consts:[["class","unique-toggle-container","matTooltipPosition","above",3,"matTooltipDisabled","matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"unique-toggle-container",3,"matTooltipDisabled","matTooltip"],["color","accent","labelPosition","before",3,"ngModel","disabled","ngModelChange"]],template:function(e,i){1&e&&(t.YNc(0,ai,5,9,"div",0),t.ALo(1,"disableUniqueAttribute")),2&e&&t.Q6J("ngIf",t.VKq(3,Yn,t.lcZ(1,1,i.attDef)))},directives:[_.O5,ke.gM,Zn.Rr,rt.JJ,rt.On],pipes:[u.X$,Wn.b],styles:[".unique-toggle-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em 0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;font-size:1.125rem}"]}),n})();var Ke=s(53251),En=s(23123);function Pn(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.ALo(2,"displayedRole"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function Ve(n,r){if(1&n&&(t.TgZ(0,"mat-option",7),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}let mi=(()=>{class n{constructor(e){this.attrRightsService=e,this.policyRemoved=new t.vpe,this.roles=this.attrRightsService.getRoles()}ngOnInit(){this.selectedRole=new M.X(this.policy.role),this.objects=this.selectedRole.pipe((0,V.w)(e=>this.attrRightsService.getObjects(e)))}changeRole(e){this.selectedRole.next(e.value),this.policy.object="None"}remove(){this.policyRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-item"]],inputs:{policy:"policy"},outputs:{policyRemoved:"policyRemoved"},decls:14,vars:14,consts:[[1,"flex-row"],[1,"grow-item"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","placeholder","ngModelChange"],["color","warn","mat-icon-button","",1,"close-button",3,"click"],["inline","true"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"mat-form-field",1),t.TgZ(2,"mat-select",2),t.NdJ("ngModelChange",function(o){return i.policy.role=o})("selectionChange",function(o){return i.changeRole(o)}),t.ALo(3,"translate"),t.YNc(4,Pn,3,4,"mat-option",3),t.ALo(5,"async"),t.qZA(),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"mat-select",4),t.NdJ("ngModelChange",function(o){return i.policy.object=o}),t.ALo(8,"translate"),t.YNc(9,Ve,2,2,"mat-option",3),t.ALo(10,"async"),t.qZA(),t.qZA(),t.TgZ(11,"button",5),t.NdJ("click",function(){return i.remove()}),t.TgZ(12,"mat-icon",6),t._uU(13,"remove_circle"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.s9C("placeholder",t.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ROLE")),t.Q6J("ngModel",i.policy.role),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,8,i.roles)),t.xp6(3),t.s9C("placeholder",t.lcZ(8,10,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.ENTITY")),t.Q6J("ngModel",i.policy.object),t.xp6(2),t.Q6J("ngForOf",t.lcZ(10,12,i.objects)))},directives:[qe.KE,Be.gD,rt.JJ,rt.On,_.sg,Cn.ey,nt.lW,h.Hw],pipes:[u.X$,_.Ov,En.i],styles:[".flex-row[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;background:white;border-radius:1em;padding:1em 1em 0}.grow-item[_ngcontent-%COMP%]{flex-grow:2;margin:0 1em}.close-button[_ngcontent-%COMP%]{position:absolute;font-size:1.3em;top:-15px;right:-15px;z-index:100}"]}),n})();function Hn(n,r){1&n&&(t.TgZ(0,"div",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.AND")," "))}function yn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-attribute-rights-item",7),t.NdJ("policyRemoved",function(){const o=t.CHM(e).index;return t.oxw(2).removePolicy(o)}),t.qZA(),t.YNc(2,Hn,3,3,"div",8),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw(2);t.xp6(1),t.Q6J("policy",e),t.xp6(1),t.Q6J("ngIf",i!==a.collection.policies.length-1)}}function Xn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",1),t.TgZ(1,"div",2),t.YNc(2,yn,3,2,"div",3),t.qZA(),t.TgZ(3,"div",4),t.TgZ(4,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeCollection()}),t.TgZ(5,"mat-icon"),t._uU(6,"delete"),t.qZA(),t.qZA(),t.TgZ(7,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().addPolicy()}),t.TgZ(8,"mat-icon"),t._uU(9,"add_circle"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngForOf",e.collection.policies)}}let ei=(()=>{class n{constructor(){this.collectionRemoved=new t.vpe}addPolicy(){this.collection.policies.push({id:-1,role:null,object:null,policyCollectionId:this.collection.id})}removePolicy(e){this.collection.policies.splice(e,1),0===this.collection.policies.length&&this.removeCollection()}removeCollection(){this.collectionRemoved.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-collection"]],inputs:{collection:"collection"},outputs:{collectionRemoved:"collectionRemoved"},decls:1,vars:1,consts:[["class","collection",4,"ngIf"],[1,"collection"],[1,"column","role-selection"],[4,"ngFor","ngForOf"],[1,"column","controls"],["mat-icon-button","",3,"click"],["color","accent","mat-icon-button","",3,"click"],[3,"policy","policyRemoved"],["class","divider",4,"ngIf"],[1,"divider"]],template:function(e,i){1&e&&t.YNc(0,Xn,10,1,"div",0),2&e&&t.Q6J("ngIf",i.collection)},directives:[_.O5,_.sg,mi,nt.lW,h.Hw],pipes:[u.X$],styles:[".collection[_ngcontent-%COMP%]{background-color:#0000001a;padding:1em;border-radius:1em;margin-top:1em;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:1em}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1em}.role-selection[_ngcontent-%COMP%]{flex-grow:2}.controls[_ngcontent-%COMP%]{align-items:flex-end;justify-content:center}.divider[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:1em}"]}),n})();function Oe(n,r){1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_RIGHTS.OR")," "))}function $n(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-attribute-rights-collection",5),t.NdJ("collectionRemoved",function(){const o=t.CHM(e).index;return t.oxw().removeCollection(o)}),t.qZA(),t.YNc(2,Oe,3,3,"div",6),t.qZA()}if(2&n){const e=r.$implicit,i=r.index,a=t.oxw();t.xp6(1),t.Q6J("collection",e.action===a.action?e:null),t.xp6(1),t.Q6J("ngIf",i!==a.lastIndex&&e.action===a.action)}}let Jn=(()=>{class n{ngOnChanges(){this.lastIndex=this.findLastIndex()}addCollection(){this.collections.push({id:-1,attributeId:this.attributeId,action:this.action,policies:[{id:-1,role:null,object:null,policyCollectionId:-1}]}),this.lastIndex=this.findLastIndex()}removeCollection(e){this.collections.splice(e,1),this.lastIndex=this.findLastIndex()}findLastIndex(){let e=0;for(let i=0;i{class n{constructor(){this.collections=[],this.actionTabs=["READ","WRITE"]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["perun-web-apps-attribute-rights-tab-group"]],inputs:{attDef:"attDef",collections:"collections"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["matTabLabel",""],[3,"attributeId","collections","action"]],template:function(e,i){1&e&&(t.TgZ(0,"mat-tab-group"),t.YNc(1,Gt,3,3,"mat-tab",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",i.actionTabs))},directives:[Ke.SP,_.sg,Ke.uX,Ke.uD,Jn],pipes:[u.X$],styles:[""]}),n})(),de=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function xe(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Ue(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Re(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function an(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Bn(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Dn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function ti(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij("",e," ")}}function Ii(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function gn(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e)," ")}}function ni(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function Ai(n,r){if(1&n&&(t.TgZ(0,"div",8),t.TgZ(1,"form",9),t.TgZ(2,"mat-form-field"),t._UZ(3,"input",10),t.ALo(4,"translate"),t.YNc(5,Ue,3,3,"mat-error",11),t.qZA(),t.TgZ(6,"mat-form-field"),t._UZ(7,"input",12),t.ALo(8,"translate"),t.YNc(9,Re,3,3,"mat-error",11),t.qZA(),t.TgZ(10,"mat-form-field"),t.TgZ(11,"textarea",13),t.ALo(12,"translate"),t._uU(13," "),t.qZA(),t.YNc(14,an,3,3,"mat-error",11),t.qZA(),t.TgZ(15,"mat-form-field"),t.TgZ(16,"mat-select",14),t.ALo(17,"translate"),t.YNc(18,Bn,2,2,"mat-option",15),t.qZA(),t.YNc(19,Dn,3,3,"mat-error",11),t.qZA(),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-select",16),t.ALo(22,"translate"),t.YNc(23,ti,2,2,"mat-option",15),t.qZA(),t.YNc(24,Ii,3,3,"mat-error",11),t.qZA(),t.TgZ(25,"mat-form-field"),t.TgZ(26,"mat-select",17),t.ALo(27,"translate"),t.YNc(28,gn,3,4,"mat-option",15),t.qZA(),t.YNc(29,ni,3,3,"mat-error",11),t.qZA(),t.qZA(),t._UZ(30,"perun-web-apps-attribute-unique-toggle",18),t.ALo(31,"async"),t._UZ(32,"perun-web-apps-attribute-rights-tab-group",19),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,18,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","friendlyName")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,20,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","displayName")),t.xp6(2),t.s9C("placeholder",t.lcZ(12,22,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(2),t.s9C("placeholder",t.lcZ(17,24,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","entity")),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","definitionType")),t.xp6(2),t.s9C("placeholder",t.lcZ(27,28,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",e.attributeControl.hasError("required","valueType")),t.xp6(1),t.Q6J("attDef",t.lcZ(31,30,e.attDef)),t.xp6(2),t.Q6J("collections",e.collections)}}let In=(()=>{class n{constructor(e,i,a,o,d,y,S){this.dialogRef=e,this.formBuilder=i,this.attributeService=a,this.attributeRightsService=o,this.notificator=d,this.translate=y,this.uniqueAttPipe=S,this.loading=!1,this.attributeControl=this.formBuilder.group({friendlyName:["",rt.kI.required],displayName:["",rt.kI.required],description:["",rt.kI.required],entity:["",rt.kI.required],definitionType:["",rt.kI.required],valueType:["",rt.kI.required]}),this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.valueTypes=["java.lang.String","java.lang.Integer","java.lang.Boolean","java.util.Array","java.util.LinkedHashMap"],this.attDef=new M.X({id:0,beanName:"",namespace:"",unique:!1}),this.collections=[],this.attributeControl.valueChanges.pipe((0,at.b)(200)).subscribe(F=>{this.setAttribute(F)})}submit(){this.loading=!0,this.attributeService.createAttributeDefinition({attribute:this.attDef.getValue()}).pipe((0,V.w)(e=>vt((0,ve.of)(e.id),(0,ve.of)(this.collections))),this.attributeRightsService.addAttributeId(),this.attributeRightsService.filterNullInPolicy(),(0,V.w)(e=>this.attributeService.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}setAttribute(e){const i={id:0,beanName:"",friendlyName:e.friendlyName,displayName:e.displayName,description:e.description,type:e.valueType,namespace:this.createNamespace(e.entity,e.definitionType)};i.unique=this.attDef.getValue().unique&&!this.uniqueAttPipe.transform(i),this.attDef.next(i)}createNamespace(e,i){return"urn:perun:"+e+":attribute-def:"+i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(rt.qu),t.Y36(z.H8),t.Y36(U.eE),t.Y36(U.V6),t.Y36(u.sK),t.Y36(Fe.bY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],features:[t._Bn([Fe.bY])],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"dialog-container",3,"formGroup"],["matInput","","formControlName","friendlyName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","displayName","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],["formControlName","entity","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["formControlName","definitionType","required","",3,"placeholder"],["formControlName","valueType","required","",3,"placeholder"],[3,"attDef"],[3,"collections"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xe,1,0,"mat-spinner",2),t.YNc(5,Ai,33,32,"div",3),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.submit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading||i.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,X.$g,O.xY,rt._Y,rt.JL,rt.sg,qe.KE,De.Nt,rt.Fj,rt.JJ,rt.u,rt.Q7,qe.TO,fn.IC,Be.gD,_.sg,Cn.ey,An,se,O.H8,nt.lW],pipes:[u.X$,de,_.Ov],styles:[""]}),n})();var _e=s(9244),en=s(10036);function ii(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function di(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10),t.TgZ(5,"input",11),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().value=a}),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let Mn=(()=>{class n{constructor(e,i,a,o,d){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=o,this.attributesRightsService=d,this.value="",this.loading=!1}create(){this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).pipe((0,V.w)(e=>vt((0,ve.of)(e.id),(0,ve.of)(this.attributeData.attributeRights))),this.attributesRightsService.addAttributeId(),(0,V.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(z.H8),t.Y36(U.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ii,1,0,"mat-spinner",2),t.YNc(5,di,7,7,"div",3),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[O.uh,_.O5,X.$g,O.xY,it.w,qe.KE,De.Nt,rt.Fj,rt.Q7,rt.JJ,rt.On,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var we=s(96214),jn=s(7434),pn=s(84847),ln=s(36769),G=s(1059),W=s(69287),ht=s(81125),E=s(60205),wt=s(387),Ot=s(18750),Rt=s(77446),Yt=s(43532);function re(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw(2);return a?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t.TgZ(1,"mat-checkbox",25),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,y=t.oxw(2);return a?y.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function q(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function pt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"label"),t.TgZ(2,"input",28),t.NdJ("ngModelChange",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onValueChange(o)})("ngModelChange",function(a){return t.CHM(e).$implicit[0]=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function Tt(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function At(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const o=t.CHM(e).$implicit;return t.oxw(2).onValueChange(o)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Wt(n,r){1&n&&t._UZ(0,"tr",30)}function te(n,r){1&n&&t._UZ(0,"tr",31)}function Dt(n,r){if(1&n&&(t.TgZ(0,"div",10),t.TgZ(1,"perun-web-apps-table-wrapper",11),t.TgZ(2,"table",12),t.ynx(3,13),t.YNc(4,re,2,3,"th",14),t.YNc(5,qt,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,q,3,3,"th",17),t.YNc(8,pt,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,Tt,3,3,"th",17),t.YNc(11,At,2,1,"td",18),t.BQk(),t.YNc(12,Wt,1,0,"tr",20),t.YNc(13,te,1,0,"tr",21),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function he(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function N(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let oe=(()=>{class n{constructor(e,i,a,o,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.attributesManager=d,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new P.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=_e.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const o of e)this.records.push([o,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(z.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(pn.YE,7),t.Gf(wt.Mw,5),t.Gf(_e.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.TgZ(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.TgZ(15,"div",6),t.YNc(16,Dt,14,7,"div",7),t.YNc(17,he,1,0,"mat-spinner",8),t.YNc(18,N,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},directives:[O.uh,O.H8,nt.lW,ke.gM,O.xY,_.O5,Ot.l,R.BZ,pn.YE,R.w1,R.fO,R.ge,Rt.oG,R.Dz,R.ev,pn.nU,De.Nt,rt.Fj,rt.JJ,rt.On,Yt.M,R.as,R.XQ,R.nj,R.Gk,X.$g,it.w],pipes:[u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();function Ie(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Me(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}function sn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")," "))}const ze=function(){return["id","name","enabled","script"]};function Qe(n,r){if(1&n&&(t.TgZ(0,"div",11),t.TgZ(1,"form",12),t.TgZ(2,"mat-form-field"),t._UZ(3,"input",13),t.ALo(4,"translate"),t.YNc(5,Me,3,3,"mat-error",1),t.qZA(),t.TgZ(6,"mat-form-field"),t.TgZ(7,"textarea",14),t.ALo(8,"translate"),t._uU(9," "),t.qZA(),t.YNc(10,sn,3,3,"mat-error",1),t.qZA(),t.qZA(),t._UZ(11,"perun-web-apps-attribute-unique-toggle",15),t._UZ(12,"perun-web-apps-attribute-rights-tab-group",16),t.ALo(13,"async"),t.TgZ(14,"mat-accordion"),t.TgZ(15,"mat-expansion-panel",17),t.TgZ(16,"mat-expansion-panel-header"),t.TgZ(17,"mat-panel-title"),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.qZA(),t._UZ(20,"app-services-list",18),t.ALo(21,"async"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("formGroup",e.attributeControl),t.xp6(2),t.s9C("placeholder",t.lcZ(4,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.xp6(2),t.Q6J("ngIf",e.attributeControl.hasError("required","name")),t.xp6(2),t.s9C("placeholder",t.lcZ(8,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",e.attributeControl.hasError("required","description")),t.xp6(1),t.Q6J("attDef",e.attDef),t.xp6(1),t.Q6J("attDef",e.attDef)("collections",t.lcZ(13,16,e.collections$)),t.xp6(6),t.hij(" ",t.lcZ(19,18,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")," "),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(22,ze))("services",t.lcZ(21,20,e.services$))}}function fe(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchShowKeys()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function be(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"h1",2),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ie,1,0,"mat-spinner",3),t.YNc(5,Qe,22,23,"div",4),t.TgZ(6,"div",5),t.YNc(7,fe,3,3,"button",6),t.TgZ(8,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCopy()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===(null==e.attDef?null:e.attDef.entity)),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.attributeControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(16,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function We(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"app-entityless-attribute-keys-list",20),t.NdJ("switchView",function(){return t.CHM(e),t.oxw().switchShowKeys()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let et=(()=>{class n{constructor(e,i,a,o,d,y,S,F,H){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.clipboard=d,this.attributesManager=y,this.serviceService=S,this.formBuilder=F,this.attributeRightsService=H,this.tableId=en.Wv,this.loading=!1,this.showKeys=!1,this.attDef=this.data.attDef,this.attributeControl=this.formBuilder.group({name:[this.attDef.displayName,rt.kI.required],description:[this.attDef.description,rt.kI.required]}),this.collections$=new M.X([]),this.services$=this.serviceService.getServicesByAttributeDefinition(this.attDef.id).pipe((0,G.O)([]))}ngOnInit(){this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attributesManager.getAttributePolicyCollections(this.attDef.id).subscribe(this.collections$)}onSubmit(){this.loading=!0,this.updateAttribute(),this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).pipe((0,V.w)(()=>(0,ve.of)(this.collections$.getValue())),this.attributeRightsService.filterNullInPolicy(),(0,V.w)(e=>this.attributesManager.setAttributePolicyCollections({policyCollections:e}))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.dialogRef.updateSize(this.showKeys?"800px":"700px")}onCopy(){this.updateAttribute();const e={attributeDefinition:this.attDef,attributeRights:this.collections$.getValue()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}updateAttribute(){this.attDef.displayName=this.attributeControl.get("name").value,this.attDef.description=this.attributeControl.get("description").value}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(W.TU),t.Y36(z.H8),t.Y36(z.KK),t.Y36(rt.qu),t.Y36(U.eE))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],decls:3,vars:2,consts:[[1,"admin-theme"],[4,"ngIf"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"fields-container",3,"formGroup"],["matInput","","formControlName","name","required","",3,"placeholder"],["matInput","","formControlName","description","cdkTextareaAutosize","","required","",3,"placeholder"],[3,"attDef"],[3,"attDef","collections"],[1,"mt-4","mb-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,be,17,16,"div",1),t.YNc(2,We,2,2,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},directives:[_.O5,O.uh,X.$g,O.xY,rt._Y,rt.JL,rt.sg,qe.KE,De.Nt,rt.Fj,rt.JJ,rt.u,rt.Q7,qe.TO,fn.IC,An,se,ht.pp,ht.ib,ht.yz,ht.yK,E.Q,O.H8,nt.lW,oe],pipes:[u.X$,_.Ov],styles:[".fields-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"],data:{animation:[ln.SG,ln.GH,ln.Ls]}}),n})();var gt=s(70844);let mt=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})();function Et(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19),t.TgZ(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return a?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function zt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,y=t.oxw();return a?y.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.ALo(2,"consentRelatedAttribute"),t.ALo(3,"translate"),t.ALo(4,"consentRelatedAttribute"),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(2,5,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(3,9,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(4,11,e.namespace,i.serviceEnabled,i.consentRequired))}}function ee(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function Jt(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function pe(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function ye(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function Xt(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function le(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function Pe(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function Le(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function He(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Qn(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function On(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function Ln(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function Xe(n,r){1&n&&t._UZ(0,"tr",26)}function Nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().onRowClick(o)}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function qn(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function un(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let on=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=o,this.selection=new P.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=_e.f7,this.canBeSelected=d=>!this.consentRelatedPipe.transform(d.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){(0,_e.O6)((0,_e.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,_e.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,_e.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,_e.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(et,i).afterClosed().subscribe(o=>{o&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.UA),t.Y36(gt.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(_e.l9,7),t.Gf(pn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.TgZ(2,"div",2),t.TgZ(3,"table",3),t.ynx(4,4),t.YNc(5,Et,2,3,"th",5),t.YNc(6,zt,5,15,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,ee,3,3,"th",8),t.YNc(9,Jt,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,pe,3,3,"th",8),t.YNc(12,ye,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,Xt,3,3,"th",8),t.YNc(15,le,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,Pe,3,3,"th",8),t.YNc(18,Le,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,He,3,3,"th",8),t.YNc(21,Qn,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,On,3,3,"th",8),t.YNc(24,Ln,2,1,"td",11),t.BQk(),t.YNc(25,Xe,1,0,"tr",16),t.YNc(26,Nn,1,2,"tr",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,qn,3,3,"perun-web-apps-alert",18),t.YNc(28,un,3,3,"perun-web-apps-alert",18)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},directives:[Ot.l,R.BZ,pn.YE,R.w1,R.fO,R.ge,Rt.oG,R.Dz,R.ev,ke.gM,pn.nU,R.as,R.XQ,R.nj,R.Gk,_.O5,it.w],pipes:[gt.u,u.X$,mt,de],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Un(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function Vi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onImport()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function fi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function zi(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function Kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Si=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new P.Ov(!0,[]),this.filterValue="",this.tableId=en.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,_e.kZ)();e.width="650px",this.dialog.open(In,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,_e.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(K,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,_e.kZ)();e.width="700px",this.dialog.open(Mn,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(z.H8),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Un,3,3,"button",2),t.YNc(6,Vi,3,3,"button",2),t.YNc(7,fi,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,zi,1,0,"mat-spinner",5),t.YNc(10,Kn,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,on],pipes:[u.X$],styles:[""]}),n})(),_n=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[m.A],styles:[""]}),n})();var Yi=s(9921);let Pt=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,Yi.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),Ce=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},directives:[A.L],styles:[""]}),n})();var jt=s(75778),T=s(22868),I=s(92081),B=s(91079),j=s(79814);function ct(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function xt(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function kt(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t.TgZ(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Ft(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function ae(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function Ee(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Ge=(()=>{class n{constructor(e,i,a,o,d,y){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=o,this.router=d,this.notificator=y,this.searchField=new rt.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,at.b)(400),(0,jt.x)(),(0,T.b)(()=>this.loading=!0),(0,V.w)(e=>this.usersService.findUsers(e)),(0,T.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(o=>{for(const d of o)d.destination===this.destination&&(this.availableServices.includes(d.service.name)||this.availableServices.push(d.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Fv),t.Y36(u.sK),t.Y36(z.IQ),t.Y36(z.KK),t.Y36(f.F0),t.Y36(U.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3),t.TgZ(6,"mat-step",4),t.YNc(7,ct,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6),t.TgZ(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,xt,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,kt,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA(),t.qZA(),t.TgZ(19,"div"),t.TgZ(20,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(23,"mat-step",4),t.YNc(24,Ft,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6),t.TgZ(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)})("ngModelChange",function(d){return i.destination=d}),t.ALo(27,"translate"),t.qZA(),t.qZA(),t.TgZ(28,"div"),t.TgZ(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)}),t._uU(33),t.ALo(34,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"mat-step"),t.YNc(36,ae,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(d){return i.chosenService=d}),t.YNc(38,Ee,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div"),t.TgZ(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[I.Vq,I.C0,I.VY,qe.KE,De.Nt,rt.Fj,B.ZL,rt.JJ,rt.oH,_.O5,X.$g,qe.R9,qe.bx,B.XC,_.sg,Cn.ey,nt.lW,rt.On,I.fd,j.VQ,j.U0],pipes:[u.X$,_.Ov],styles:[""]}),n})();function tn(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Ne(n){this._context=n}function wn(n,r){this._basis=new Ne(n),this._beta=r}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tn(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},wn.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var S,i=n[0],a=r[0],o=n[e]-i,d=r[e]-a,y=-1;++y<=e;)this._basis.point(this._beta*n[y]+(1-this._beta)*(i+(S=y/e)*o),this._beta*r[y]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const gi=function n(r){function e(i){return 1===r?new Ne(i):new wn(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var $i=s(8929),Ei=s(70655),vn=s(41777);function si(){}function Mi(n){return null==n?si:function(){return this.querySelector(n)}}function ci(){return[]}function br(n){return new Array(n.length)}function ri(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function Z(n,r,e,i,a,o){for(var y,d=0,S=r.length,F=o.length;dr?1:n>=r?0:NaN}ri.prototype={constructor:ri,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var Oi="http://www.w3.org/1999/xhtml";const Cr={svg:"http://www.w3.org/2000/svg",xhtml:Oi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Di(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Cr.hasOwnProperty(r)?{space:Cr[r],local:n}:n}function Qi(n){return function(){this.removeAttribute(n)}}function wr(n){return function(){this.removeAttributeNS(n.space,n.local)}}function _i(n,r){return function(){this.setAttribute(n,r)}}function Lu(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function ku(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Iu(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function xo(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Ou(n){return function(){this.style.removeProperty(n)}}function Nu(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Pu(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Ru(n,r){return n.style.getPropertyValue(r)||xo(n).getComputedStyle(n,null).getPropertyValue(r)}function Zu(n){return function(){delete this[n]}}function Bu(n,r){return function(){this[n]=r}}function Uu(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function yo(n){return n.trim().split(/^|\s+/)}function ls(n){return n.classList||new bo(n)}function bo(n){this._node=n,this._names=yo(n.getAttribute("class")||"")}function To(n,r){for(var e=ls(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Ao={},kr=null;function gh(n,r,e){return n=So(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function So(n,r,e){return function(i){var a=kr;kr=i;try{n.call(this,this.__data__,r,e)}finally{kr=a}}}function _h(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function vh(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Kt&&(Kt=ne+1);!(Ze=bt[Kt])&&++Kt=0;)(d=i[a])&&(o&&4^d.compareDocumentPosition(o)&&o.parentNode.insertBefore(d,o),o=d);return this},sort:function Ye(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=hn);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?Ou:"function"==typeof r?Pu:Nu)(n,r,null==e?"":e)):Ru(this.node(),n)},property:function Gu(n,r){return arguments.length>1?this.each((null==r?Zu:"function"==typeof r?Uu:Bu)(n,r)):this.node()[n]},classed:function Hu(n,r){var e=yo(n+"");if(arguments.length<2){for(var i=ls(this.node()),a=-1,o=e.length;++a0)for(var S,i=n[0],a=r[0],o=n[e]-i,d=r[e]-a,y=-1;++y<=e;)this._basis.point(this._beta*n[y]+(1-this._beta)*(i+(S=y/e)*o),this._beta*r[y]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Ah=function n(r){function e(i){return 1===r?new Ea(i):new Io(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var cs=Math.PI,us=2*cs,Ir=1e-6,Sh=us-Ir;function hs(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Mo(){return new hs}hs.prototype=Mo.prototype={constructor:hs,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,o){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(n,r,e,i,a){var o=this._x1,d=this._y1,y=(e=+e)-(n=+n),S=(i=+i)-(r=+r),F=o-n,H=d-r,lt=F*F+H*H;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(lt>Ir)if(Math.abs(H*y-S*F)>Ir&&a){var ot=e-o,_t=i-d,It=y*y+S*S,Zt=ot*ot+_t*_t,bt=Math.sqrt(It),$t=Math.sqrt(lt),ne=a*Math.tan((cs-Math.acos((It+lt-Zt)/(2*bt*$t)))/2),Kt=ne/$t,Se=ne/bt;Math.abs(Kt-1)>Ir&&(this._+="L"+(n+Kt*F)+","+(r+Kt*H)),this._+="A"+a+","+a+",0,0,"+ +(H*ot>F*_t)+","+(this._x1=n+Se*y)+","+(this._y1=r+Se*S)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,o){n=+n,r=+r,o=!!o;var d=(e=+e)*Math.cos(i),y=e*Math.sin(i),S=n+d,F=r+y,H=1^o,lt=o?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+S+","+F:(Math.abs(this._x1-S)>Ir||Math.abs(this._y1-F)>Ir)&&(this._+="L"+S+","+F),e&&(lt<0&&(lt=lt%us+us),lt>Sh?this._+="A"+e+","+e+",0,1,"+H+","+(n-d)+","+(r-y)+"A"+e+","+e+",0,1,"+H+","+(this._x1=S)+","+(this._y1=F):lt>Ir&&(this._+="A"+e+","+e+",0,"+ +(lt>=cs)+","+H+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Eh=Mo;function Da(n){return function(){return n}}function Oo(n){this._context=n}function Dh(n){return new Oo(n)}function Lh(n){return n[0]}function kh(n){return n[1]}Oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var No=Math.PI;function Fo(n){return(1-Math.cos(No*n))/2}function Mh(){}function ds(n){return null==n?Mh:function(){return this.querySelector(n)}}function Nh(){return[]}function Ro(n){return null==n?Nh:function(){return this.querySelectorAll(n)}}function Zo(n){return function(){return this.matches(n)}}function Bo(n){return new Array(n.length)}function La(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function Bh(n,r,e,i,a,o){for(var y,d=0,S=r.length,F=o.length;dr?1:n>=r?0:NaN}La.prototype={constructor:La,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var fs="http://www.w3.org/1999/xhtml";const Go={svg:"http://www.w3.org/2000/svg",xhtml:fs,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ka(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Go.hasOwnProperty(r)?{space:Go[r],local:n}:n}function td(n){return function(){this.removeAttribute(n)}}function ed(n){return function(){this.removeAttributeNS(n.space,n.local)}}function nd(n,r){return function(){this.setAttribute(n,r)}}function id(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function rd(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function ad(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Vo(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function od(n){return function(){this.style.removeProperty(n)}}function ld(n,r,e){return function(){this.style.setProperty(n,r,e)}}function cd(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function Vr(n,r){return n.style.getPropertyValue(r)||Vo(n).getComputedStyle(n,null).getPropertyValue(r)}function hd(n){return function(){delete this[n]}}function dd(n,r){return function(){this[n]=r}}function fd(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function zo(n){return n.trim().split(/^|\s+/)}function ps(n){return n.classList||new Yo(n)}function Yo(n){this._node=n,this._names=zo(n.getAttribute("class")||"")}function Ho(n,r){for(var e=ps(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var $o={},Mr=null;function zd(n,r,e){return n=Qo(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Qo(n,r,e){return function(i){var a=Mr;Mr=i;try{n.call(this,this.__data__,r,e)}finally{Mr=a}}}function Yd(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Hd(n){return function(){var r=this.__on;if(r){for(var o,e=0,i=-1,a=r.length;e=Kt&&(Kt=ne+1);!(Ze=bt[Kt])&&++Kt=0;)(d=i[a])&&(o&&4^d.compareDocumentPosition(o)&&o.parentNode.insertBefore(d,o),o=d);return this},sort:function Xh(n){function r(lt,ot){return lt&&ot?n(lt.__data__,ot.__data__):!lt-!ot}n||(n=Wh);for(var e=this._groups,i=e.length,a=new Array(i),o=0;o1?this.each((null==r?od:"function"==typeof r?cd:ld)(n,r,null==e?"":e)):Vr(this.node(),n)},property:function pd(n,r){return arguments.length>1?this.each((null==r?hd:"function"==typeof r?fd:dd)(n,r)):this.node()[n]},classed:function vd(n,r){var e=zo(n+"");if(arguments.length<2){for(var i=ps(this.node()),a=-1,o=e.length;++a0)throw new Error("too late; already scheduled");return e}function fr(n,r){var e=nr(n,r);if(e.state>3)throw new Error("too late; already running");return e}function nr(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var el=s(75349);function rf(n,r){var e,i;return function(){var a=fr(this,n),o=a.tween;if(o!==e)for(var d=0,y=(i=e=o).length;d=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?_s:fr;return function(){var d=o(this,n),y=d.on;y!==i&&(a=(i=y).copy()).on(r,e),d.on=a}}var Ff=oa.prototype.constructor;function rl(n){return function(){this.style.removeProperty(n)}}function zf(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Yf(n,r,e){var i,a;function o(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&zf(n,d,e)),i}return o._value=r,o}function Qf(n){return function(r){this.textContent=n.call(this,r)}}function Jf(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Qf(a)),r}return i._value=n,i}var tp=0;function pr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function al(){return++tp}var zr=oa.prototype;pr.prototype=function ep(n){return oa().transition(n)}.prototype={constructor:pr,select:function Nf(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=ds(n));for(var i=this._groups,a=i.length,o=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):o=!1;o&&delete n.__transition}}(this,n)})},oa.prototype.transition=function ip(n){var r,e;n instanceof pr?(r=n._id,n=n._name):(r=al(),(e=xs).time=(0,er.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function Ra(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const fl=Symbol("implicit");function ys(){var n=new Map,r=[],e=[],i=fl;function a(o){var d=o+"",y=n.get(d);if(!y){if(i!==fl)return i;n.set(d,y=r.push(o))}return e[(y-1)%e.length]}return a.domain=function(o){if(!arguments.length)return r.slice();r=[],n=new Map;for(const d of o){const y=d+"";n.has(y)||n.set(y,r.push(d))}return a},a.range=function(o){return arguments.length?(e=Array.from(o),a):e.slice()},a.unknown=function(o){return arguments.length?(i=o,a):i},a.copy=function(){return ys(r,e).unknown(i)},Ra.apply(a,arguments),a}var Hr=s(59695);function yp(n,r){var e;function i(){var a,d,o=e.length,y=0,S=0;for(a=0;a=(lt=(y+F)/2))?y=lt:F=lt,(bt=e>=(ot=(S+H)/2))?S=ot:H=ot,a=o,!(o=o[$t=bt<<1|Zt]))return a[$t]=d,n;if(_t=+n._x.call(null,o.data),It=+n._y.call(null,o.data),r===_t&&e===It)return d.next=o,a?a[$t]=d:n._root=d,n;do{a=a?a[$t]=new Array(4):n._root=new Array(4),(Zt=r>=(lt=(y+F)/2))?y=lt:F=lt,(bt=e>=(ot=(S+H)/2))?S=ot:H=ot}while(($t=bt<<1|Zt)==(ne=(It>=ot)<<1|_t>=lt));return a[ne]=o,a[$t]=d,n}function Zi(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function Op(n){return n[0]}function Pp(n){return n[1]}function bs(n,r,e){var i=new Ts(null==r?Op:r,null==e?Pp:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function Ts(n,r,e,i,a,o){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=o,this._root=void 0}function ml(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Bi=bs.prototype=Ts.prototype;function Rp(n){return n.x+n.vx}function Zp(n){return n.y+n.vy}function gl(n){var r,e,i=1,a=1;function o(){for(var S,H,lt,ot,_t,It,Zt,F=r.length,bt=0;btot+Sn||Ze_t+Sn||Te<_t-Sn;if(dn.index>lt.index){var Vn=ot-dn.x-dn.vx,zn=_t-dn.y-dn.vy,pi=Vn*Vn+zn*zn;piS.r&&(S.r=S[F].r)}function y(){if(r){var S,H,F=r.length;for(e=new Array(F),S=0;SH&&(H=a),olt&&(lt=o));if(S>H||F>lt)return this;for(this.cover(S,F).cover(H,lt),e=0;en||n>=a||i>r||r>=o;)switch(F=(rH||(y=It.y0)>lt||(S=It.x1)=$t)<<1|n>=bt)&&(It=ot[ot.length-1],ot[ot.length-1]=ot[ot.length-1-Zt],ot[ot.length-1-Zt]=It)}else{var ne=n-+this._x.call(null,_t.data),Kt=r-+this._y.call(null,_t.data),Se=ne*ne+Kt*Kt;if(Se=(ot=(d+S)/2))?d=ot:S=ot,(Zt=lt>=(_t=(y+F)/2))?y=_t:F=_t,r=e,!(e=e[bt=Zt<<1|It]))return this;if(!e.length)break;(r[bt+1&3]||r[bt+2&3]||r[bt+3&3])&&(i=r,$t=bt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,a?(o?a.next=o:delete a.next,this):r?(o?r[bt]=o:delete r[bt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[$t]=e:this._root=e),this):(this._root=o,this)},Bi.removeAll=function Dp(n){for(var r=0,e=n.length;r1?(null==Zt?y.remove(It):y.set(It,_t(Zt)),r):y.get(It)},find:function(It,Zt,bt){var Kt,Se,Ze,Te,dn,$t=0,ne=n.length;for(null==bt?bt=1/0:bt*=bt,$t=0;$t1?(F.on(It,Zt),r):F.on(It)}}}function Cl(){var n,r,e,a,i=vi(-30),o=1,d=1/0,y=.81;function S(ot){var _t,It=n.length,Zt=bs(n,zp,Yp).visitAfter(H);for(e=ot,_t=0;_t=d)){(ot.data!==r||ot.next)&&(0===bt&&(Kt+=(bt=Ar())*bt),0===$t&&(Kt+=($t=Ar())*$t),Kt{return(n=Xr||(Xr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Xr;var n})(),Wr=(()=>{return(n=Wr||(Wr={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",Wr;var n})();function Cm(n,r,e){e=e||{};let i,a,o,d=null,y=0;function S(){y=!1===e.leading?0:+new Date,d=null,o=n.apply(i,a)}return function(){const F=+new Date;!y&&!1===e.leading&&(y=F);const H=r-(F-y);return i=this,a=arguments,H<=0?(clearTimeout(d),d=null,y=F,o=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,H)),o}}function wm(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Cm(o.value,n,r)}),this[a]}}}}let Al=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Am{constructor(r,e,i){"string"==typeof r&&(r=Al.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=Al.find(i=>i.name===r)),ys().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Em=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var $r=(()=>{return(n=$r||($r={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",$r;var n})();function Qr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function El(n,r){return"number"==typeof r?n[r]:r}const Dl={dagre:class Dm{constructor(){this.defaultSettings={orientation:$r.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Hr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Hr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class Lm{constructor(){this.defaultSettings={orientation:$r.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Hr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}})};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),o=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-o*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+o*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Hr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Im{constructor(){this.defaultSettings={orientation:$r.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Hr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(o=>o.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(It=>It.id===e.source),a=r.nodes.find(It=>It.id===e.target),o="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",d="y"===o?"x":"y",y="y"===o?"height":"width",S=i.position[o]<=a.position[o]?-1:1,F={[d]:i.position[d],[o]:i.position[o]-S*(i.dimension[y]/2)},H={[d]:a.position[d],[o]:a.position[o]+S*(a.dimension[y]/2)},lt=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[F,{[d]:F[d],[o]:F[o]-S*lt},{[d]:H[d],[o]:H[o]+S*lt},H];const _t=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return _t&&(_t.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Hr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class Mm{constructor(){this.defaultSettings={force:Tl().force("charge",Cl().strength(-150)).force("collide",gl(5)),forceLink:bl().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new $i.xQ}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||mr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:Qr(e.source).id,target:Qr(e.target).id,points:[{x:Qr(e.source).x,y:Qr(e.source).y},{x:Qr(e.target).x,y:Qr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class Om{constructor(){this.defaultSettings={force:(0,Jp.d3adaptor)(Object.assign(Object.assign(Object.assign({},x),c),v)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new $i.xQ}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(-1!==i&&-1!==a)return Object.assign(Object.assign({},e),{source:i,target:a})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(o=>e.source===o.id),a=this.inputGraph.nodes.findIndex(o=>e.target===o.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||mr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=El(r.nodes,e.source),a=El(r.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(y=>y.id===e.source),a=r.nodes.find(y=>y.id===e.target),o=i||r.groups.find(y=>y.id===e.source),d=a||r.groups.find(y=>y.id===e.target);return Object.assign(Object.assign({},e),{source:o.id,target:d.id,points:[o.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(o.bounds.cx(),o.bounds.cy())]})})),this.outputGraph.clusters=r.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(o=>o.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let Ll=(()=>{class n{getLayout(e){if(Dl[e])return new Dl[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),Nm=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),o=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):o&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(o){return i.onMouseWheelChrome(o)})("DOMMouseScroll",function(o){return i.onMouseWheelFirefox(o)})("wheel",function(o){return i.onWheel(o)})("onmousewheel",function(o){return i.onMouseWheelIE(o)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),Pm=(()=>{class n{constructor(e,i,a,o){this.el=e,this.zone=i,this.cd=a,this.layoutService=o,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Xr.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=Wr.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new ol.w,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=d=>d.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${mr()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Em(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Ah.beta(1)),this.zone.run(()=>{this.dims=function Sm({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new ol.w;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=mr()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=mr()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof ll.y?e:(0,ve.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,ap.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),e.add(o.id)});const i=new Set;(this.graph.clusters||[]).map(o=>{o.transform=`translate(${o.position.x-o.dimension.width/2||0}, ${o.position.y-o.dimension.height/2||0})`,o.data||(o.data={}),o.data.color=this.colors.getColor(this.groupResultsBy(o)),i.add(o.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const o in this.graph.edgeLabels){const d=this.graph.edgeLabels[o],y=o.replace(/[^\w-]*/g,""),S=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let F=this._oldLinks.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===y:Zt=>`${Zt.source}${Zt.target}`===y);const H=this.graph.edges.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===y:Zt=>`${Zt.source}${Zt.target}`===y);F?F.data&&H&&H.data&&JSON.stringify(F.data)!==JSON.stringify(H.data)&&(F.data=H.data):F=H||d,F.oldLine=F.line;const lt=d.points,ot=this.generateLine(lt),_t=Object.assign({},F);_t.line=ot,_t.points=lt,this.updateMidpointOnEdge(_t,lt);const It=lt[Math.floor(lt.length/2)];It&&(_t.textTransform=`translate(${It.x||0},${It.y||0})`),_t.textAngle=0,_t.oldLine||(_t.oldLine=_t.line),this.calcDominantBaseline(_t),a.push(_t)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(o=>{const d=Object.assign({},o);return d.oldLine=o.line,d})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Wr.UpperLeft:return"";case Wr.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,o=-1/0;for(let d=0;di?y.position.x+y.dimension.width:i,o=y.position.y+y.dimension.height>o?y.position.y+y.dimension.height:o}e-=100,a-=100,i+=100,o+=100,this.graphDims.width=i-e,this.graphDims.height=o-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(d=>d.id===i.id);if(!a)return;let o;try{if(o=i.getBBox(),!o.width||!o.height)return}catch(d){return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:o.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let d;try{for(const y of i.getElementsByTagName("text")){const S=y.getBBox();d?(S.width>d.width&&(d.width=S.width),S.height>d.height&&(d.height=S.height)):d=S}}catch(y){return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:d.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:o.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(o=>o.id===i.nativeElement.id);a&&(Lo(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(Fo).duration(e?500:0).attr("d",a.line),Lo(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(Fo).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),o=this.zoomLevel*a;if(!(o<=this.minZoomLevel||o>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const d=e.clientX,y=e.clientY,S=this.el.nativeElement.querySelector("svg"),F=S.querySelector("g.chart"),H=S.createSVGPoint();H.x=d,H.y=y;const lt=H.matrixTransform(F.getScreenCTM().inverse());this.pan(lt.x,lt.y,!0),this.zoom(a),this.pan(-lt.x,-lt.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const o=a?1:this.zoomLevel;this.transformationMatrix=ua(this.transformationMatrix,dl(e/o,i/o)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=ua(this.transformationMatrix,dl((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=ua(this.transformationMatrix,function pp(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return fp(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const d of this.graph.edges)if((d.target===i.id||d.source===i.id||d.target.id===i.id||d.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const y=this.layout.updateEdge(this.graph,d),S=y instanceof ll.y?y:(0,ve.of)(y);this.graphSubscription.add(S.subscribe(F=>{this.graph=F,this.redrawEdge(d)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function gp(n){return function hl(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function xp(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new Am(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,o=i-this._touchLastX,d=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(o,d)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,o=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,o=-this.minimapScaleCoefficient*o*this.zoomLevel),e){case Xr.Horizontal:this.pan(a,0);break;case Xr.Vertical:this.pan(0,o);break;default:this.pan(a,o)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],o=i[i.length/2-1];e.midPoint={x:(a.x+o.x)/2,y:(a.y+o.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();e=o.width,i=o.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,cl.R)(window,"resize").pipe((0,at.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(Ll))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,qp,5),t.Suo(a,Kp,5),t.Suo(a,tm,5),t.Suo(a,em,5),t.Suo(a,nm,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.linkTemplate=o.first),t.iGM(o=t.CRH())&&(i.nodeTemplate=o.first),t.iGM(o=t.CRH())&&(i.clusterTemplate=o.first),t.iGM(o=t.CRH())&&(i.defsTemplate=o.first),t.iGM(o=t.CRH())&&(i.miniMapNodeTemplate=o.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(im,5),t.Gf(rm,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(o){return i.onMouseMove(o)},!1,t.evT)("mousedown",function(o){return i.onMouseDown(o)},!1,t.evT)("click",function(o){return i.graphClick(o)},!1,t.evT)("touchmove",function(o){return i.onTouchMove(o)},!1,t.evT)("mouseup",function(o){return i.onMouseUp(o)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:Tm,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(o){return i.onZoom(o,"in")})("mouseWheelDown",function(o){return i.onZoom(o,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,gm,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,bm,6,15,"g",3),t.qZA(),t.qZA()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},directives:[Nm,_.O5,_.tP,_.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,vn.X$)("animationState",[(0,vn.eR)(":enter",[(0,vn.oB)({opacity:0}),(0,vn.jt)("500ms 100ms",(0,vn.oB)({opacity:1}))])])]},changeDetection:0}),(0,Ei.gn)([wm(500)],n.prototype,"updateMinimap",null),n})(),Fm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[Ll],imports:[[_.ez]]}),n})(),Rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez],Fm]}),n})();var kl=s(47429);function As(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Il(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function da(){}s(52016);var Ua=1/.7,Jr="\\s*([+-]?\\d+)\\s*",pa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Um=/^#([0-9a-f]{3,8})$/,Gm=new RegExp("^rgb\\("+[Jr,Jr,Jr]+"\\)$"),Vm=new RegExp("^rgb\\("+[sr,sr,sr]+"\\)$"),zm=new RegExp("^rgba\\("+[Jr,Jr,Jr,pa]+"\\)$"),Ym=new RegExp("^rgba\\("+[sr,sr,sr,pa]+"\\)$"),Hm=new RegExp("^hsl\\("+[pa,sr,sr]+"\\)$"),Xm=new RegExp("^hsla\\("+[pa,sr,sr,pa]+"\\)$"),Ml={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ol(){return this.rgb().formatHex()}function Nl(){return this.rgb().formatRgb()}function Nr(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=Um.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?Pl(r):3===e?new Xi(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?Ga(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?Ga(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=Gm.exec(n))?new Xi(r[1],r[2],r[3],1):(r=Vm.exec(n))?new Xi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=zm.exec(n))?Ga(r[1],r[2],r[3],r[4]):(r=Ym.exec(n))?Ga(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=Hm.exec(n))?Zl(r[1],r[2]/100,r[3]/100,1):(r=Xm.exec(n))?Zl(r[1],r[2]/100,r[3]/100,r[4]):Ml.hasOwnProperty(n)?Pl(Ml[n]):"transparent"===n?new Xi(NaN,NaN,NaN,0):null}function Pl(n){return new Xi(n>>16&255,n>>8&255,255&n,1)}function Ga(n,r,e,i){return i<=0&&(n=r=e=NaN),new Xi(n,r,e,i)}function $m(n){return n instanceof da||(n=Nr(n)),n?new Xi((n=n.rgb()).r,n.g,n.b,n.opacity):new Xi}function Va(n,r,e,i){return 1===arguments.length?$m(n):new Xi(n,r,e,null==i?1:i)}function Xi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Fl(){return"#"+Ss(this.r)+Ss(this.g)+Ss(this.b)}function Rl(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function Ss(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Zl(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new or(n,r,e,i)}function Bl(n){if(n instanceof or)return new or(n.h,n.s,n.l,n.opacity);if(n instanceof da||(n=Nr(n)),!n)return new or;if(n instanceof or)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),o=Math.max(r,e,i),d=NaN,y=o-a,S=(o+a)/2;return y?(d=r===o?(e-i)/y+6*(e0&&S<1?0:d,new or(d,y,S,n.opacity)}function or(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Es(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Ul(n,r,e,i,a){var o=n*n,d=o*n;return((1-3*n+3*o-d)*r+(4-6*o+3*d)*e+(1+3*n+3*o-3*d)*i+d*a)/6}As(da,Nr,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:Ol,formatHex:Ol,formatHsl:function Wm(){return Bl(this).formatHsl()},formatRgb:Nl,toString:Nl}),As(Xi,Va,Il(da,{brighter:function(n){return n=null==n?Ua:Math.pow(Ua,n),new Xi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Xi(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fl,formatHex:Fl,formatRgb:Rl,toString:Rl})),As(or,function Qm(n,r,e,i){return 1===arguments.length?Bl(n):new or(n,r,e,null==i?1:i)},Il(da,{brighter:function(n){return n=null==n?Ua:Math.pow(Ua,n),new or(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new or(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Xi(Es(n>=240?n-240:n+120,a,i),Es(n,a,i),Es(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Ds=n=>()=>n;function Vl(n,r){var e=r-n;return e?function Gl(n,r){return function(e){return n+e*r}}(n,e):Ds(isNaN(n)?r:n)}const za=function n(r){var e=function Km(n){return 1==(n=+n)?Vl:function(r,e){return e-r?function qm(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Ds(isNaN(r)?e:r)}}(r);function i(a,o){var d=e((a=Va(a)).r,(o=Va(o)).r),y=e(a.g,o.g),S=e(a.b,o.b),F=Vl(a.opacity,o.opacity);return function(H){return a.r=d(H),a.g=y(H),a.b=S(H),a.opacity=F(H),a+""}}return i.gamma=n,i}(1);function zl(n){return function(r){var d,y,e=r.length,i=new Array(e),a=new Array(e),o=new Array(e);for(d=0;d=1?(e=1,r-1):Math.floor(e*r),a=n[i],o=n[i+1];return Ul((e-i/r)*r,i>0?n[i-1]:2*a-o,a,o,ie&&(o=r.slice(e,o),y[d]?y[d]+=o:y[++d]=o),(i=i[0])===(a=a[0])?y[d]?y[d]+=a:y[++d]=a:(y[++d]=null,S.push({i:d,x:lr(i,a)})),e=ks.lastIndex;return e0)throw new Error("too late; already scheduled");return e}function cr(n,r){var e=rr(n,r);if(e.state>3)throw new Error("too late; already running");return e}function rr(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var Wa,Jl=180/Math.PI,Fs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jl(n,r,e,i,a,o){var d,y,S;return(d=Math.sqrt(n*n+r*r))&&(n/=d,r/=d),(S=n*e+r*i)&&(e-=n*S,i-=r*S),(y=Math.sqrt(e*e+i*i))&&(e/=y,i/=y,S/=y),n*i180?H+=360:H-F>180&&(F+=360),ot.push({i:lt.push(a(lt)+"rotate(",null,i)-2,x:lr(F,H)})):H&<.push(a(lt)+"rotate("+H+i)}(F.rotate,H.rotate,lt,ot),function y(F,H,lt,ot){F!==H?ot.push({i:lt.push(a(lt)+"skewX(",null,i)-2,x:lr(F,H)}):H&<.push(a(lt)+"skewX("+H+i)}(F.skewX,H.skewX,lt,ot),function S(F,H,lt,ot,_t,It){if(F!==lt||H!==ot){var Zt=_t.push(a(_t)+"scale(",null,",",null,")");It.push({i:Zt-4,x:lr(F,lt)},{i:Zt-2,x:lr(H,ot)})}else(1!==lt||1!==ot)&&_t.push(a(_t)+"scale("+lt+","+ot+")")}(F.scaleX,F.scaleY,H.scaleX,H.scaleY,lt,ot),F=H=null,function(_t){for(var bt,It=-1,Zt=ot.length;++It=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Ns:cr;return function(){var d=o(this,n),y=d.on;y!==i&&(a=(i=y).copy()).on(r,e),d.on=a}}var Wg=s(29742),Qg=s(32037),jg=ma.ZP.prototype.constructor,ga=s(24476);function ec(n){return function(){this.style.removeProperty(n)}}function r_(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function a_(n,r,e){var i,a;function o(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&r_(n,d,e)),i}return o._value=r,o}function u_(n){return function(r){this.textContent=n.call(this,r)}}function h_(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&u_(a)),r}return i._value=n,i}var m_=0;function gr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function nc(){return++m_}var Pr=ma.ZP.prototype;gr.prototype=function g_(n){return(0,ma.ZP)().transition(n)}.prototype={constructor:gr,select:function $g(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=(0,Wg.Z)(n));for(var i=this._groups,a=i.length,o=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):o=!1;o&&delete n.__transition}}(this,n)})},ma.ZP.prototype.transition=function x_(n){var r,e;n instanceof gr?(r=n._id,n=n._name):(r=nc(),(e=__).time=(0,er.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,o=0;or?1:n>=r?0:NaN}function Ys(n){let r=n,e=n;function i(d,y,S,F){for(null==S&&(S=0),null==F&&(F=d.length);S>>1;e(d[H],y)<0?S=H+1:F=H}return S}return 1===n.length&&(r=(d,y)=>n(d)-y,e=function I_(n){return(r,e)=>lc(n(r),e)}(n)),{left:i,center:function o(d,y,S,F){null==S&&(S=0),null==F&&(F=d.length);const H=i(d,y,S,F-1);return H>S&&r(d[H-1],y)>-r(d[H],y)?H-1:H},right:function a(d,y,S,F){for(null==S&&(S=0),null==F&&(F=d.length);S>>1;e(d[H],y)>0?F=H:S=H+1}return S}}}["w","e"].map(_a),["n","s"].map(_a),["n","w","e","s","nw","ne","sw","se"].map(_a);var Hs=Math.sqrt(50),Xs=Math.sqrt(10),Ws=Math.sqrt(2);function $s(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/a;return o>=Hs?a*=10:o>=Xs?a*=5:o>=Ws&&(a*=2),r0))return S;do{S.push(F=new Date(+o)),r(o,y),n(o)}while(F=d)for(;n(d),!o(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;r(d,-1),!o(d););else for(;--y>=0;)for(;r(d,1),!o(d););})},e&&(a.count=function(o,d){return js.setTime(+o),qs.setTime(+d),n(js),n(qs),Math.floor(e(js,qs))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(d){return i(d)%o==0}:function(d){return a.count(0,d)%o==0}):a:null}),a}var Ja=Li(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});Ja.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Li(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):Ja:null};const O_=Ja;const va=Li(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*vr)},function(n,r){return(r-n)/vr},function(n){return n.getUTCSeconds()});const fc=Li(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr)},function(n,r){n.setTime(+n+r*ji)},function(n,r){return(r-n)/ji},function(n){return n.getMinutes()});const mc=Li(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr-n.getMinutes()*ji)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getHours()});const _c=Li(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*ji)/Fr,n=>n.getDate()-1);function Rr(n){return Li(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*ji)/Qs})}var Ks=Rr(0);const xc=(Rr(1),Rr(2),Rr(3),Rr(4),Rr(5),Rr(6),Li(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var to=Li(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});to.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Li(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const yc=to;const U_=Li(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*ji)},function(n,r){return(r-n)/ji},function(n){return n.getUTCMinutes()});const G_=Li(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getUTCHours()});const V_=Li(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Fr},function(n){return n.getUTCDate()-1});function Zr(n){return Li(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Qs})}var wc=Zr(0);const Q_=(Zr(1),Zr(2),Zr(3),Zr(4),Zr(5),Zr(6),Li(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var eo=Li(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});eo.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Li(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const J_=eo;function Sc(n,r,e,i,a,o){const d=[[va,1,vr],[va,5,5e3],[va,15,15e3],[va,30,3e4],[o,1,ji],[o,5,5*ji],[o,15,15*ji],[o,30,30*ji],[a,1,xr],[a,3,3*xr],[a,6,6*xr],[a,12,12*xr],[i,1,Fr],[i,2,2*Fr],[e,1,Qs],[r,1,uc],[r,3,3*uc],[n,1,Js]];function S(F,H,lt){const ot=Math.abs(H-F)/lt,_t=Ys(([,,bt])=>bt).right(d,ot);if(_t===d.length)return n.every($s(F/Js,H/Js,lt));if(0===_t)return O_.every(Math.max($s(F,H,lt),1));const[It,Zt]=d[ot/d[_t-1][2]0))return S;do{S.push(F=new Date(+o)),r(o,y),n(o)}while(F=d)for(;n(d),!o(d);)d.setTime(d-1)},function(d,y){if(d>=d)if(y<0)for(;++y<=0;)for(;r(d,-1),!o(d););else for(;--y>=0;)for(;r(d,1),!o(d););})},e&&(a.count=function(o,d){return no.setTime(+o),io.setTime(+d),n(no),n(io),Math.floor(e(no,io))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(i?function(d){return i(d)%o==0}:function(d){return a.count(0,d)%o==0}):a:null}),a}var Lc=6048e5;function Br(n){return yr(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Lc})}var kc=Br(0),ja=Br(1),qa=(Br(2),Br(3),Br(4));const Mc=(Br(5),Br(6),yr(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}));function Ur(n){return yr(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-6e4*(e.getTimezoneOffset()-r.getTimezoneOffset()))/Lc})}var Oc=Ur(0),Ka=Ur(1),ts=(Ur(2),Ur(3),Ur(4));const Pc=(Ur(5),Ur(6),yr(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-6e4*(r.getTimezoneOffset()-n.getTimezoneOffset()))/864e5},function(n){return n.getDate()-1}));var ro=yr(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});ro.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const xa=ro;var ao=yr(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});ao.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const ya=ao;function so(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function oo(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ba(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Fc={"-":"",_:" ",0:"0"},ki=/^\s*\d+/,lv=/^%/,cv=/[\\^$*+?|[\]().{}]/g;function Gn(n,r,e){var i=n<0?"-":"",a=(i?-n:n)+"",o=a.length;return i+(o68?1900:2e3),e+i[0].length):-1}function vv(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function xv(n,r,e){var i=ki.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function yv(n,r,e){var i=ki.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Rc(n,r,e){var i=ki.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function bv(n,r,e){var i=ki.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Zc(n,r,e){var i=ki.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function Tv(n,r,e){var i=ki.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Cv(n,r,e){var i=ki.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function wv(n,r,e){var i=ki.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function Av(n,r,e){var i=ki.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function Sv(n,r,e){var i=lv.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Ev(n,r,e){var i=ki.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function Dv(n,r,e){var i=ki.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Bc(n,r){return Gn(n.getDate(),r,2)}function Lv(n,r){return Gn(n.getHours(),r,2)}function kv(n,r){return Gn(n.getHours()%12||12,r,2)}function Iv(n,r){return Gn(1+Pc.count(xa(n),n),r,3)}function Uc(n,r){return Gn(n.getMilliseconds(),r,3)}function Mv(n,r){return Uc(n,r)+"000"}function Ov(n,r){return Gn(n.getMonth()+1,r,2)}function Nv(n,r){return Gn(n.getMinutes(),r,2)}function Pv(n,r){return Gn(n.getSeconds(),r,2)}function Fv(n){var r=n.getDay();return 0===r?7:r}function Rv(n,r){return Gn(Oc.count(xa(n)-1,n),r,2)}function Zv(n,r){var e=n.getDay();return n=e>=4||0===e?ts(n):ts.ceil(n),Gn(ts.count(xa(n),n)+(4===xa(n).getDay()),r,2)}function Bv(n){return n.getDay()}function Uv(n,r){return Gn(Ka.count(xa(n)-1,n),r,2)}function Gv(n,r){return Gn(n.getFullYear()%100,r,2)}function Vv(n,r){return Gn(n.getFullYear()%1e4,r,4)}function zv(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Gn(r/60|0,"0",2)+Gn(r%60,"0",2)}function Gc(n,r){return Gn(n.getUTCDate(),r,2)}function Yv(n,r){return Gn(n.getUTCHours(),r,2)}function Hv(n,r){return Gn(n.getUTCHours()%12||12,r,2)}function Xv(n,r){return Gn(1+Mc.count(ya(n),n),r,3)}function Vc(n,r){return Gn(n.getUTCMilliseconds(),r,3)}function Wv(n,r){return Vc(n,r)+"000"}function $v(n,r){return Gn(n.getUTCMonth()+1,r,2)}function Qv(n,r){return Gn(n.getUTCMinutes(),r,2)}function Jv(n,r){return Gn(n.getUTCSeconds(),r,2)}function jv(n){var r=n.getUTCDay();return 0===r?7:r}function qv(n,r){return Gn(kc.count(ya(n)-1,n),r,2)}function Kv(n,r){var e=n.getUTCDay();return n=e>=4||0===e?qa(n):qa.ceil(n),Gn(qa.count(ya(n),n)+(4===ya(n).getUTCDay()),r,2)}function t0(n){return n.getUTCDay()}function e0(n,r){return Gn(ja.count(ya(n)-1,n),r,2)}function n0(n,r){return Gn(n.getUTCFullYear()%100,r,2)}function r0(n,r){return Gn(n.getUTCFullYear()%1e4,r,4)}function a0(){return"+0000"}function zc(){return"%"}function Yc(n){return+n}function Hc(n){return Math.floor(+n/1e3)}!function c0(n){(function ov(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,o=n.days,d=n.shortDays,y=n.months,S=n.shortMonths,F=Ta(a),H=Ca(a),lt=Ta(o),ot=Ca(o),_t=Ta(d),It=Ca(d),Zt=Ta(y),bt=Ca(y),$t=Ta(S),ne=Ca(S),Kt={a:function Ti(Ae){return d[Ae.getDay()]},A:function dr(Ae){return o[Ae.getDay()]},b:function Ci(Ae){return S[Ae.getMonth()]},B:function wi(Ae){return y[Ae.getMonth()]},c:null,d:Bc,e:Bc,f:Mv,H:Lv,I:kv,j:Iv,L:Uc,m:Ov,M:Nv,p:function ui(Ae){return a[+(Ae.getHours()>=12)]},q:function hi(Ae){return 1+~~(Ae.getMonth()/3)},Q:Yc,s:Hc,S:Pv,u:Fv,U:Rv,V:Zv,w:Bv,W:Uv,x:null,X:null,y:Gv,Y:Vv,Z:zv,"%":zc},Se={a:function Aa(Ae){return d[Ae.getUTCDay()]},A:function ra(Ae){return o[Ae.getUTCDay()]},b:function aa(Ae){return S[Ae.getUTCMonth()]},B:function sa(Ae){return y[Ae.getUTCMonth()]},c:null,d:Gc,e:Gc,f:Wv,H:Yv,I:Hv,j:Xv,L:Vc,m:$v,M:Qv,p:function Fi(Ae){return a[+(Ae.getUTCHours()>=12)]},q:function rs(Ae){return 1+~~(Ae.getUTCMonth()/3)},Q:Yc,s:Hc,S:Jv,u:jv,U:qv,V:Kv,w:t0,W:e0,x:null,X:null,y:n0,Y:r0,Z:a0,"%":zc},Ze={a:function Vn(Ae,cn,Tn){var ue=_t.exec(cn.slice(Tn));return ue?(Ae.w=It[ue[0].toLowerCase()],Tn+ue[0].length):-1},A:function zn(Ae,cn,Tn){var ue=lt.exec(cn.slice(Tn));return ue?(Ae.w=ot[ue[0].toLowerCase()],Tn+ue[0].length):-1},b:function pi(Ae,cn,Tn){var ue=$t.exec(cn.slice(Tn));return ue?(Ae.m=ne[ue[0].toLowerCase()],Tn+ue[0].length):-1},B:function xi(Ae,cn,Tn){var ue=Zt.exec(cn.slice(Tn));return ue?(Ae.m=bt[ue[0].toLowerCase()],Tn+ue[0].length):-1},c:function yi(Ae,cn,Tn){return xn(Ae,r,cn,Tn)},d:Rc,e:Rc,f:Av,H:Zc,I:Zc,j:bv,L:wv,m:yv,M:Tv,p:function Sn(Ae,cn,Tn){var ue=F.exec(cn.slice(Tn));return ue?(Ae.p=H[ue[0].toLowerCase()],Tn+ue[0].length):-1},q:xv,Q:Ev,s:Dv,S:Cv,u:dv,U:fv,V:pv,w:hv,W:mv,x:function hr(Ae,cn,Tn){return xn(Ae,e,cn,Tn)},X:function bi(Ae,cn,Tn){return xn(Ae,i,cn,Tn)},y:_v,Y:gv,Z:vv,"%":Sv};function Te(Ae,cn){return function(Tn){var Gi,rn,li,ue=[],oi=-1,Rn=0,Ui=Ae.length;for(Tn instanceof Date||(Tn=new Date(+Tn));++oi53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Ui=(Rn=oo(ba(ue.y,0,1))).getUTCDay(),Rn=Ui>4||0===Ui?ja.ceil(Rn):ja(Rn),Rn=Mc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getUTCFullYear(),ue.m=Rn.getUTCMonth(),ue.d=Rn.getUTCDate()+(ue.w+6)%7):(Ui=(Rn=so(ba(ue.y,0,1))).getDay(),Rn=Ui>4||0===Ui?Ka.ceil(Rn):Ka(Rn),Rn=Pc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getFullYear(),ue.m=Rn.getMonth(),ue.d=Rn.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Ui="Z"in ue?oo(ba(ue.y,0,1)).getUTCDay():so(ba(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+7*ue.W-(Ui+5)%7:ue.w+7*ue.U-(Ui+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,oo(ue)):so(ue)}}function xn(Ae,cn,Tn,ue){for(var Gi,rn,oi=0,Rn=cn.length,Ui=Tn.length;oi=Ui)return-1;if(37===(Gi=cn.charCodeAt(oi++))){if(Gi=cn.charAt(oi++),!(rn=Ze[Gi in Fc?cn.charAt(oi++):Gi])||(ue=rn(Ae,Tn,ue))<0)return-1}else if(Gi!=Tn.charCodeAt(ue++))return-1}return ue}return Kt.x=Te(e,Kt),Kt.X=Te(i,Kt),Kt.c=Te(r,Kt),Se.x=Te(e,Se),Se.X=Te(i,Se),Se.c=Te(r,Se),{format:function(Ae){var cn=Te(Ae+="",Kt);return cn.toString=function(){return Ae},cn},parse:function(Ae){var cn=dn(Ae+="",!1);return cn.toString=function(){return Ae},cn},utcFormat:function(Ae){var cn=Te(Ae+="",Se);return cn.toString=function(){return Ae},cn},utcParse:function(Ae){var cn=dn(Ae+="",!0);return cn.toString=function(){return Ae},cn}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ys(lc),Ys(function u0(n){return null===n?NaN:+n}),s(47927),s(32517),s(38914),s(22910),s(65142),s(78986),s(16087);const R0=["caretElm"];function Z0(n,r){}const B0=function(n){return{model:n}};function U0(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Z0,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,B0,e.context))}}function G0(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function Xx(n,r,e){e=e||{};let i,a,o,d=null,y=0;function S(){y=!1===e.leading?0:+new Date,d=null,o=n.apply(i,a)}return function(){const F=+new Date;!y&&!1===e.leading&&(y=F);const H=r-(F-y);return i=this,a=arguments,H<=0?(clearTimeout(d),d=null,y=F,o=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,H)),o}}function Wx(n,r){return function(i,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:Xx(o.value,n,r)}),this[a]}}}}var mn=(()=>{return(n=mn||(mn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",mn;var n})();function ru(n,r,e){return e===mn.Top?n.top-7:e===mn.Bottom?n.top+n.height-r.height+7:e===mn.Center?n.top+n.height/2-r.height/2:void 0}function au(n,r,e){return e===mn.Left?n.left-7:e===mn.Right?n.left+n.width-r.width+7:e===mn.Center?n.left+n.width/2-r.width/2:void 0}class Wi{static calculateVerticalAlignment(r,e,i){let a=ru(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let o;a===mn.Top&&(o=r.height/2-i.height/2+7),a===mn.Bottom&&(o=e.height-r.height/2-i.height/2-7),a===mn.Center&&(o=e.height/2-i.height/2);const d=ru(r,e,a);return d+e.height>window.innerHeight&&(o+=d+e.height-window.innerHeight),o}static calculateHorizontalAlignment(r,e,i){let a=au(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let o;a===mn.Left&&(o=r.width/2-i.width/2+7),a===mn.Right&&(o=e.width-r.width/2-i.width/2-7),a===mn.Center&&(o=e.width/2-i.width/2);const d=au(r,e,a);return d+e.width>window.innerWidth&&(o+=d+e.width-window.innerWidth),o}static shouldFlip(r,e,i,a){let o=!1;return i===mn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(o=!0),i===mn.Left&&r.left-e.width-a<0&&(o=!0),i===mn.Top&&r.top-e.height-a<0&&(o=!0),i===mn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(o=!0),o}static positionCaret(r,e,i,a,o){let d=0,y=0;return r===mn.Right?(y=-7,d=Wi.calculateVerticalCaret(i,e,a,o)):r===mn.Left?(y=e.width,d=Wi.calculateVerticalCaret(i,e,a,o)):r===mn.Top?(d=e.height,y=Wi.calculateHorizontalCaret(i,e,a,o)):r===mn.Bottom&&(d=-7,y=Wi.calculateHorizontalCaret(i,e,a,o)),{top:d,left:y}}static positionContent(r,e,i,a,o){let d=0,y=0;return r===mn.Right?(y=i.left+i.width+a,d=Wi.calculateVerticalAlignment(i,e,o)):r===mn.Left?(y=i.left-e.width-a,d=Wi.calculateVerticalAlignment(i,e,o)):r===mn.Top?(d=i.top-e.height-a,y=Wi.calculateHorizontalAlignment(i,e,o)):r===mn.Bottom&&(d=i.top+i.height+a,y=Wi.calculateHorizontalAlignment(i,e,o)),{top:d,left:y}}static determinePlacement(r,e,i,a){if(Wi.shouldFlip(i,e,r,a)){if(r===mn.Right)return mn.Left;if(r===mn.Left)return mn.Right;if(r===mn.Top)return mn.Bottom;if(r===mn.Bottom)return mn.Top}return r}}let $x=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,_.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:o,left:d}=Wi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${d}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:d,left:y}=Wi.positionCaret(this.placement,i,e,o,this.alignment);this.renderer.setStyle(a,"top",`${d}px`),this.renderer.setStyle(a,"left",`${y}px`)}checkFlip(e,i){this.placement=Wi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(R0,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,U0,2,4,"span",3),t.YNc(5,G0,1,1,"span",4),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},directives:[_.O5,_.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,Ei.gn)([Wx(100)],n.prototype,"onWindowResize",null),n})(),su=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function Jx(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const o of a)e.instance[o]=i.inputs[o]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const o of a)e.instance[o]=i.outputs[o]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),d=new kl.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),y=new kl.C5(e),S=d.attach(y);return this.projectComponentBindings(S,i),S}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),uo=(()=>{class n extends class Qx{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs=Object.assign(Object.assign({},e),r.inputs)),i&&(r.outputs=Object.assign(Object.assign({},i),r.outputs)),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=$x}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(su))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();var ea=(()=>{return(n=ea||(ea={})).popover="popover",n.tooltip="tooltip",ea;var n})(),Dr=(()=>{return(n=Dr||(Dr={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Dr;var n})();let mo,fo=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=mn.Top,this.tooltipAlignment=mn.Center,this.tooltipType=ea.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Dr.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Dr.all||this.tooltipShowEvent===Dr.focus}get listensForHover(){return this.tooltipShowEvent===Dr.all||this.tooltipShowEvent===Dr.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(uo),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(o){return i.onMouseLeave(o.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),fu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[su,uo],imports:[[_.ez]]}),n})();"undefined"!=typeof window?mo=window:"undefined"!=typeof global&&(mo=global);let qi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,du,fu],_.ez,du,fu]}),n})(),ly=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),bu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),cy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),uy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),hy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),Tu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})();Math;let _o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),py=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi,_o,Tu]]}),n})(),gy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),_y=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi]]}),n})(),vy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[qi,_o,bu]]}),n})(),yy=(()=>{class n{constructor(){!function xy(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[qi,ly,bu,cy,uy,hy,Tu,py,gy,_o,_y,vy]}),n})();function by(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function Ty(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Cy(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function wy(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function Ay(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16),t.TgZ(3,"textPath",17),t._uU(4),t.qZA(),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const Sy=function(n,r){return[n,r]};function Ey(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,Ty,5,4,"span",4),t.TgZ(10,"div",5),t.TgZ(11,"ngx-graph",6),t.YNc(12,Cy,2,0,"ng-template",null,7,t.W1O),t.YNc(14,wy,4,9,"ng-template",null,8,t.W1O),t.YNc(16,Ay,5,2,"ng-template",null,9,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,Sy,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function Dy(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Ly(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,Dy,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function ky(n,r){if(1&n&&(t.YNc(0,Ey,18,19,"div",1),t.YNc(1,Ly,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let Iy=(()=>{class n{constructor(e,i,a,o,d,y,S,F,H){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=o,this.serviceService=d,this.resourceManager=y,this.groupService=S,this.voService=F,this.translate=H,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=gi,this.zoomToFit$=new $i.xQ,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const o of e)for(const d of i)o.id===d.id&&a.push(o);return a}static findConnectedResources(e,i){const a=[];for(const o of e)for(const d of i)o.id===d.id&&a.push(o);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(o=>{if(this.membership=o,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){var e,i;const a=""+this.id().toString(),o=null!==(i=null!==(e=this.user.firstName)&&void 0!==e?e:" "+this.user.lastName)&&void 0!==i?i:"",d=this.localUser,y="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:a,label:o,tooltip:d,color:"#FFFFCC",tip:y});const F=""+this.id().toString(),H="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:F,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:H}:{id:F,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:H});for(const lt of this.facilities)this.serviceService.getAllRichDestinationsForFacility(lt.id).subscribe(ot=>{this.connectToService(lt,ot),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const o of this.membership)this.connectToGroups(e,o,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(o=>{0!==o.length&&this.groupService.getMemberGroups(i.id).subscribe(d=>{const y=n.findConnectedGroups(o,d);if(0!==y.length)for(const S of y)this.connectToResource(e,S,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(o=>{const d=n.findConnectedResources(o,a);for(const y of d)this.resourceManager.getAssignedServicesToResource(y.id).subscribe(S=>{this.haveService(S)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,y,e))})})}addNodesToGraph(e,i,a,o){if(-1===this.findEntityInGraph("Facility: "+o.id.toString())){const d=""+this.id().toString(),y=this.localFacility+": "+o.name,S=o.description,F="Facility: "+o.id.toString();this.hierarchialGraph.nodes.push({id:d,label:y,tooltip:S,color:"#FFCCFF",tip:F});const lt={source:d,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(lt)}this.voService.getVoById(e).subscribe(d=>{if(-1===this.findEntityInGraph("Vo: "+d.id.toString())){const S=this.id().toString(),F=this.localVo+": "+d.shortName,H=d.name,lt="Vo: "+d.id.toString();this.hierarchialGraph.nodes.push({id:S,label:F,tooltip:H,color:"#E5FFCC",tip:lt});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const S=this.id().toString(),F=this.localGroup+": "+i.name,H=i.description,lt="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:S,label:F,tooltip:H,color:"#CCE5FF",tip:lt});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+d.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}const y=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==y){const S={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[y].id};this.hierarchialGraph.links.push(S)}else{const S=this.id().toString(),F=this.localResource+": "+a.name,H=a.description,lt="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:S,label:F,tooltip:H,color:"#FFCCCC",tip:lt});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t);const It={source:S,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+o.id.toString())].id};this.hierarchialGraph.links.push(It)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(z.IQ),t.Y36(z.Fv),t.Y36(z.uq),t.Y36(z.KK),t.Y36(z.xk),t.Y36(z.ff),t.Y36(z.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(o){return i.onResize(o)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,by,2,0,"div",1),t.YNc(4,ky,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},directives:[_.O5,X.$g,Pm,fo],pipes:[u.X$],styles:[""]}),n})();var My=s(25828),Cu=s(69024),Oy=s(29862),wa=s(16074),Ny=s(31359);function Py(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Fy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t.TgZ(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editUser()}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).anonymizeUser()}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA(),t.qZA(),t.qZA()}}const Ry=function(){return{color:"black"}},Zy=function(n){return["/admin/users",n]};function By(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6),t.TgZ(4,"div",7),t.TgZ(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Fy,7,0,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,Ry))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,Zy,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let Uy=(()=>{class n{constructor(e,i,a,o,d,y,S,F){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=o,this.dialog=d,this.authResolver=y,this.entityStorageService=S,this.router=F,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const o=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([o]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,_e.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Oy.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(o=>{this.user=o})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,_e.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(wa.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(z.Fv),t.Y36(p.D),t.Y36(Cu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb),t.Y36(f.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Py,1,0,"mat-spinner",1),t.YNc(3,By,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},directives:[l.W,_.O5,X.$g,h.Hw,_.PC,ke.gM,f.yS,nt.lW,m.A],pipes:[u.X$,Ny.d],styles:[""]}),n})();var Gy=s(17755),Vy=s(74837),zy=s(85985),Yy=s(98973),Hy=s(15935);function Xy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().onLoad()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function Wy(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const $y=function(){return["id","name","type"]};function Qy(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,$y))("tableId",e.tableId)}}let Jy=(()=>{class n{constructor(e,i,a,o){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=o,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=en.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(d=>this.loadSuccess=d)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.KG),t.Y36(U.V6),t.Y36(u.sK),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Xy,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,Wy,1,0,"mat-spinner",3),t.YNc(7,Qy,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[_.O5,nt.lW,jn.L,X.$g,Hy.D],pipes:[u.X$],styles:[""]}),n})();var jy=s(6097),qy=s(97453),is=s(24850);function Ky(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function t1(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function e1(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,t1,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let n1=(()=>{class n{constructor(e,i,a,o,d,y){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=o,this.translate=d,this.notificator=y,this.extSources=[],d.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.loading=!0,this.loginControl=new rt.NI("",[rt.kI.required,rt.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new rt.NI("",[rt.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,G.O)(""),(0,is.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,G.O)(""),(0,is.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(z.KG),t.Y36(z.Fv),t.Y36(u.sK),t.Y36(U.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ky,1,0,"mat-spinner",2),t.YNc(5,e1,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[O.uh,O.xY,_.O5,X.$g,qe.KE,De.Nt,rt.Fj,rt.Q7,rt.JJ,rt.oH,qe.TO,B.ZL,B.XC,_.sg,Cn.ey,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var i1=s(80275);function r1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().addIdentity()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function a1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeIdentity()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function s1(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function o1(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let l1=(()=>{class n{constructor(e,i,a,o,d,y){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=o,this.route=d,this.authResolver=y,this.userExtSources=[],this.selection=new P.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=en.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,_e.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(n1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,_e.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(wa.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Fv),t.Y36(U.d6),t.Y36(z.tk),t.Y36(O.uw),t.Y36(f.gz),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,r1,3,3,"button",2),t.YNc(5,a1,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,s1,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,o1,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,i1.j],pipes:[u.X$],styles:[""]}),n})();var c1=s(80774),u1=s(62109);function h1(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const d1=function(){return["id","name","vo","facility","description"]};function f1(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,d1))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let p1=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=en.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.resourceFilter(o)}),t.qZA(),t.YNc(6,h1,1,0,"mat-spinner",3),t.YNc(7,f1,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,jn.L,_.O5,X.$g,u1.C],pipes:[u.X$],styles:[""]}),n})();var m1=s(61365),g1=s(71103),_1=s(53984);const v1=["list"];function x1(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function y1(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let b1=(()=>{class n{constructor(e,i,a,o){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=o,this.loading=!1,this.selection=new P.Ov(!0,[]),this.tableId=en.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,_e.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,_e.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(g1.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,_e.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(wa.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,_e.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(m1.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(z.H8),t.Y36(z.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(v1,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,x1,1,0,"mat-spinner",6),t.YNc(25,y1,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,nt.lW,_.O5,X.$g,_1.p],pipes:[u.X$,_.uU],styles:[""]}),n})();var T1=s(40009),C1=s(90719);function w1(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function A1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editService()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function S1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeService()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function E1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).evaluateConsents()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const D1=function(){return{color:"black"}},L1=function(n){return["/admin/services",n]};function k1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6),t.TgZ(4,"div",7),t.TgZ(5,"div",8),t.TgZ(6,"div",9),t.TgZ(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,A1,3,0,"button",12),t.YNc(12,S1,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"div",15),t.TgZ(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().changeServiceStatus()}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().propagationChange()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,E1,3,3,"button",17),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,14,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(22,D1)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,L1,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,16,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,18,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,20,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let I1=(()=>{class n{constructor(e,i,a,o,d,y,S,F,H,lt,ot){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=o,this.sideMenuService=d,this.sideMenuItemService=y,this.dialog=S,this.authResolver=F,this.translate=H,this.notificator=lt,this.entityStorageService=ot,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,_e.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(T1.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,_e.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(C1.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,_e.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(wa.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(f.F0),t.Y36(z.WY),t.Y36(z.KK),t.Y36(p.D),t.Y36(Cu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(u.sK),t.Y36(U.V6),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,w1,1,0,"mat-spinner",1),t.YNc(3,k1,24,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[l.W,_.O5,X.$g,h.Hw,ke.gM,_.PC,f.yS,nt.lW,Zn.Rr,m.A],pipes:[u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"],data:{animation:[ln.Ji]}}),n})(),M1=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},directives:[A.L],styles:[""]}),n})();var O1=s(5254),N1=s(21406);class F1{constructor(r,e){this.keySelector=r,this.flushes=e}call(r,e){return e.subscribe(new R1(r,this.keySelector,this.flushes))}}class R1 extends Ht.L{constructor(r,e,i){super(r),this.keySelector=e,this.values=new Set,i&&this.add((0,ie.D)(this,i))}notifyNext(r,e,i,a,o){this.values.clear()}notifyError(r,e){this._error(r)}_next(r){this.keySelector?this._useKeySelector(r):this._finalizeNext(r,r)}_useKeySelector(r){let e;const{destination:i}=this;try{e=this.keySelector(r)}catch(a){return void i.error(a)}this._finalizeNext(e,r)}_finalizeNext(r,e){const{values:i}=this;i.has(r)||(i.add(r),this.destination.next(e))}}var Z1=s(61709),wu=s(92014),Au=s(92821),B1=s(47314),Su=s(4843);function G1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function V1(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function z1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,V1,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function Y1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let H1=(()=>{class n{constructor(e,i,a,o,d,y,S,F){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=o,this.facilitiesService=d,this.consentHubService=y,this.notificator=S,this.translate=F,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,N1.b)(O1.D),(0,is.U)(H=>H.id),function P1(n,r){return e=>e.lift(new F1(n,r))}(),(0,Z1.zg)(H=>this.consentHubService.getConsentHubByFacility(H)),function U1(n,r){return arguments.length>=2?function(i){return(0,Su.z)((0,wu.R)(n,r),(0,Au.h)(1),(0,B1.d)(r))(i)}:function(i){return(0,Su.z)((0,wu.R)((a,o,d)=>n(a,o,d+1)),(0,Au.h)(1))(i)}}((H,lt)=>H||lt.enforceConsents,!1),(0,G.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,is.U)(H=>H.enabled),(0,G.O)(!0)),this.attrDefinitions=[],this.selection=new P.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(z.KK),t.Y36(z.H8),t.Y36(z.IQ),t.Y36(z.WY),t.Y36(U.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,G1,1,0,"mat-spinner",1),t.YNc(5,z1,7,14,"div",2),t.YNc(6,Y1,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,X.$g,O.xY,it.w,jn.L,on,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[""]}),n})();function X1(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function W1(n,r){1&n&&t._UZ(0,"th",15)}function $1(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function Q1(n,r){1&n&&t._UZ(0,"tr",17)}function J1(n,r){1&n&&t._UZ(0,"tr",18)}function j1(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,W1,1,0,"th",11),t.YNc(10,$1,2,1,"td",12),t.BQk(),t.YNc(11,Q1,1,0,"tr",13),t.YNc(12,J1,1,0,"tr",14),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let q1=(()=>{class n{constructor(e,i,a,o,d){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=o,this.translate=d,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(z.KK),t.Y36(U.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,X1,1,0,"mat-spinner",1),t.YNc(5,j1,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},directives:[O.uh,_.O5,X.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function K1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function tb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function eb(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function nb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let ib=(()=>{class n{constructor(e,i,a,o){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=o,this.loading=!1,this.filterValue="",this.selection=new P.Ov(!0,[]),this.attrDefinitions=[],this.tableId=en.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,_e.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(H1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,_e.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(q1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.H8),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,K1,3,3,"button",2),t.YNc(6,tb,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,eb,1,0,"mat-spinner",5),t.YNc(9,nb,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,on],pipes:[u.X$],styles:[""]}),n})();var rb=s(46597),ab=s(89466),sb=s(70242);function ob(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function lb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAllow()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function cb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onBlock()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function ub(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const hb=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function db(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,hb))("tableId",e.tableId)}}let fb=(()=>{class n{constructor(e,i,a,o,d,y){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=o,this.authResolver=d,this.entityStorageService=y,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new P.Ov(!0,[]),this.tableId=en.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,_e.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(ab.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.KK),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,ob,3,4,"button",2),t.YNc(6,lb,3,4,"button",3),t.YNc(7,cb,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(9,ub,1,0,"mat-spinner",6),t.YNc(10,db,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,sb.q],pipes:[u.X$],styles:[""]}),n})();function pb(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function mb(n,r){1&n&&t._UZ(0,"th",13)}function gb(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function _b(n,r){1&n&&t._UZ(0,"tr",15)}function vb(n,r){1&n&&t._UZ(0,"tr",16)}function xb(n,r){if(1&n&&(t.TgZ(0,"div",5),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,mb,1,0,"th",9),t.YNc(10,gb,2,1,"td",10),t.BQk(),t.YNc(11,_b,1,0,"tr",11),t.YNc(12,vb,1,0,"tr",12),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function yb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let bb=(()=>{class n{constructor(e,i,a,o,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=o,this.ownersManagerService=d,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(z.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,pb,1,0,"mat-spinner",1),t.YNc(4,xb,13,9,"div",2),t.YNc(5,yb,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,X.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function Tb(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function Cb(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function wb(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Ab(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",5),t.TgZ(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.qZA(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,Cb,3,3,"mat-error",3),t.YNc(12,wb,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-select",7),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().type=a}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"div",10),t.TgZ(22,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let Sb=(()=>{class n{constructor(e,i,a,o){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=o,this.type="1",o.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new rt.NI(null,[rt.kI.required,rt.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new rt.NI(null,[rt.kI.required,rt.kI.pattern(_e.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(z.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tb,1,0,"mat-spinner",2),t.YNc(5,Ab,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,X.$g,O.xY,qe.KE,De.Nt,rt.Fj,rt.Q7,rt.JJ,rt.oH,qe.TO,Be.gD,Cn.ey,O.H8,nt.lW,ke.gM],pipes:[u.X$],styles:[""]}),n})();var Eb=s(23256);function Db(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addOwner()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function Lb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeOwner()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function kb(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function Ib(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let Mb=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new P.Ov(!0,[]),this.filterValue="",this.tableId=en.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,_e.kZ)();e.width="400px",e.data={},this.dialog.open(Sb,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,_e.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(bb,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.aC),t.Y36(O.uw),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Db,3,3,"button",2),t.YNc(6,Lb,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(8,kb,1,0,"mat-spinner",5),t.YNc(9,Ib,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,Eb.Q],pipes:[u.X$],styles:[""]}),n})();var Ob=s(74010);function Nb(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function Pb(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let Fb=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=en.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.IQ),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(6,Nb,1,0,"mat-spinner",3),t.YNc(7,Pb,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,jn.L,_.O5,X.$g,Ob.X],pipes:[u.X$],styles:[""]}),n})();var Eu=s(64080),Rb=s(62707),Zb=s(60526),Bb=s(24179),Ub=s(12651),Gb=s(19191);function Vb(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function zb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().loadMember(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function Yb(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function Hb(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const Xb=function(){return["id","recent","name","description","expiration","groupStatus"]};function Wb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return a.loadMember(a.selectedVo)}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,Xb))}}const $b=function(n,r){return["/organizations",n,"members",r]};function Qb(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"div",10),t.TgZ(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA(),t.qZA(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Wb,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,$b,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function Jb(n,r){if(1&n&&(t.YNc(0,Hb,1,0,"mat-spinner",1),t.YNc(1,Qb,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function jb(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function qb(n,r){1&n&&t._UZ(0,"mat-spinner")}function Kb(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function tT(n,r){if(1&n&&(t.YNc(0,qb,1,0,"mat-spinner",4),t.YNc(1,Kb,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function eT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function nT(n,r){1&n&&t._UZ(0,"mat-spinner")}function iT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function rT(n,r){if(1&n&&(t.YNc(0,nT,1,0,"mat-spinner",4),t.YNc(1,iT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function aT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function sT(n,r){1&n&&t._UZ(0,"mat-spinner")}function oT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function lT(n,r){if(1&n&&(t.YNc(0,sT,1,0,"mat-spinner",4),t.YNc(1,oT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function cT(n,r){1&n&&(t.TgZ(0,"mat-tab-group"),t.TgZ(1,"mat-tab"),t.YNc(2,Yb,2,3,"ng-template",8),t.YNc(3,Jb,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,jb,2,3,"ng-template",8),t.YNc(6,tT,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,eT,2,3,"ng-template",8),t.YNc(9,rT,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,aT,2,3,"ng-template",8),t.YNc(12,lT,2,2,"ng-template",9),t.qZA(),t.qZA())}function uT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let hT=(()=>{class n{constructor(e,i,a,o){this.route=e,this.usersService=i,this.membersService=a,this.groupService=o,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.member=i,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[Eu.r.MEMBER_DEF_GROUP_EXPIRATION,Eu.r.MEMBER_GROUP_STATUS]).subscribe(a=>{this.groups=a,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(z.Fv),t.Y36(z.uq),t.Y36(z.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Vb,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,zb,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,cT,13,0,"mat-tab-group",4),t.YNc(7,uT,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},directives:[_.O5,X.$g,Rb.M,Ke.SP,Ke.uX,Ke.uD,Ke.Vc,f.yS,Zb.b,Bb.W,Ub.t,Gb.Y,it.w],pipes:[u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),Du=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function dT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function fT(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function pT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function mT(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let gT=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(W.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(o){return i.tabChanged(o)}),t.TgZ(11,"mat-tab"),t.YNc(12,dT,2,3,"ng-template",4),t.YNc(13,fT,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,pT,2,3,"ng-template",4),t.YNc(16,mT,2,1,"ng-template",5),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",6),t.TgZ(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},directives:[O.uh,O.xY,Ke.SP,Ke.uX,Ke.uD,Ke.Vc,O.H8,nt.lW,h.Hw],pipes:[u.X$,Du],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var _T=s(86087),vT=s(36787),xT=s(62383);function yT(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function bT(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function TT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function CT(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function wT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function AT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function ST(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function ET(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function DT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function LT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function kT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function IT(n,r){1&n&&t._UZ(0,"th",20)}function MT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19),t.TgZ(1,"button",21),t.NdJ("click",function(){const o=t.CHM(e).$implicit;return t.oxw().viewDetails(o)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function OT(n,r){1&n&&t._UZ(0,"tr",22)}function NT(n,r){1&n&&t._UZ(0,"tr",23)}function PT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let FT=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=_e.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,_.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,vT.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,T.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new U.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}viewDetails(e){const i=(0,_e.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(gT,i)}exportData(e){(0,_e.O6)((0,_e.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.ly),t.Y36(en.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(_e.l9,7),t.Gf(pn.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[t._Bn([{provide:_T.ye,useClass:U.Be}]),t.TTD],decls:28,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.YNc(3,yT,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,bT,3,3,"th",5),t.YNc(8,TT,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,CT,3,3,"th",5),t.YNc(11,wT,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,AT,3,3,"th",9),t.YNc(14,ST,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,ET,3,3,"th",9),t.YNc(17,DT,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,LT,3,3,"th",9),t.YNc(20,kT,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,IT,1,0,"th",9),t.YNc(23,MT,4,3,"td",6),t.BQk(),t.YNc(24,OT,1,0,"tr",13),t.YNc(25,NT,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,PT,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,9,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,11,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,13,i.dataSource.loading$)))},directives:[Ot.l,_.O5,X.$g,R.BZ,pn.YE,R.w1,R.fO,R.ge,pn.nU,R.Dz,R.ev,nt.lW,R.as,R.XQ,R.nj,R.Gk,it.w],pipes:[_.Ov,u.X$,xT.M,Du],styles:[""]}),n})(),RT=(()=>{class n{constructor(){this.tableId=en.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},directives:[we.t,FT],pipes:[u.X$],styles:[""]}),n})();var ZT=s(4834);let BT=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t.TgZ(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},directives:[O.uh,O.xY,ZT.d,it.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function UT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const o=t.oxw();return a?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function GT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,y=t.oxw();return a?y.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function VT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function zT(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function YT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function HT(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function XT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function WT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const d=t.CHM(e).$implicit;return t.oxw().changeEnforceFlag(d,a)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function $T(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function QT(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function JT(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,QT,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function jT(n,r){1&n&&t._UZ(0,"tr",26)}function qT(n,r){1&n&&t._UZ(0,"tr",27)}function KT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function tC(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}let eC=(()=>{class n{constructor(e,i,a,o,d){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=o,this.consentsManager=d,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new P.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=_e.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(o=>a+=o.name+" #"+String(o.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportData(e){(0,_e.O6)((0,_e.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,_e.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,_e.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,_e.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(BT,a).afterClosed().subscribe(d=>{d&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(y=>{i.source.checked=y.enforceConsents,e.enforceConsents=y.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(S=>{this.notificator.showSuccess(S)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.UA),t.Y36(O.uw),t.Y36(U.V6),t.Y36(u.sK),t.Y36(z.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(_e.l9,7),t.Gf(pn.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return i.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,UT,2,3,"th",4),t.YNc(5,GT,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,VT,3,3,"th",7),t.YNc(8,zT,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,YT,3,3,"th",7),t.YNc(11,HT,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,XT,3,3,"th",7),t.YNc(14,WT,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,$T,3,3,"th",7),t.YNc(17,JT,2,1,"td",10),t.BQk(),t.YNc(18,jT,1,0,"tr",13),t.YNc(19,qT,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,KT,3,3,"perun-web-apps-alert",15),t.YNc(21,tC,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},directives:[Ot.l,R.BZ,pn.YE,R.w1,R.fO,R.ge,Rt.oG,R.Dz,R.ev,pn.nU,Zn.Rr,_.sg,R.as,R.XQ,R.nj,R.Gk,_.O5,it.w],pipes:[u.X$],styles:[""]}),n})();function nC(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().evaluateConsents()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function iC(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function rC(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",8),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let aC=(()=>{class n{constructor(e,i,a,o,d){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=o,this.dialog=d,this.loading=!1,this.tableId=en.HE,this.selection=new P.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,_e.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(wa.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(z.WY),t.Y36(U.x4),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,nC,3,4,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(o){return i.applyFilter(o)}),t.qZA(),t.YNc(7,iC,1,0,"mat-spinner",4),t.YNc(8,rC,1,4,"app-perun-web-apps-consent-hubs-list",5),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[we.t,_.O5,nt.lW,jn.L,X.$g,eC],pipes:[u.X$],styles:[""]}),n})();var sC=s(57788),vo=s(71992);const oC=[{path:"",component:C,canActivateChild:[vo.a],children:[{path:"",component:L,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:Si,data:{animation:"AdminAttributesPage"}},{path:"users",component:My.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:Mb,data:{animation:"AdminOwnersPage"}},{path:"services",component:c1.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:RT,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:_n,children:[{path:"",component:Ce,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:Pt,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Ge,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Iy,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:Jy,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:aC,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:sC.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:Uy,canActivateChild:[vo.a],children:[{path:"",component:Gy.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:hT,data:{animation:"UserAccountsPage"}},{path:"attributes",component:Yy.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:Vy.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:zy.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:l1,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:Fb,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:p1,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:b1,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:jy.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:qy.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:rb.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:I1,canActivateChild:[vo.a],children:[{path:"",component:M1,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:ib,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:fb,data:{animation:"ServiceDestinationsPage"}}]}];let lC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(oC)],f.Bz]}),n})();var cC=s(14264),uC=s(63189),hC=s(46142);let dC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[Rm,yy,_.ez,lC,cC.m,uC.r,wt.ez,Fe.d4,hC.UsersModule]]}),n})()},70242:(w,k,s)=>{"use strict";s.d(k,{q:()=>ie});var c=s(84847),x=s(20449),v=s(32075),_=s(9244),f=s(32080),t=s(5e3),p=s(18750),l=s(77446),h=s(69808),m=s(25245),u=s(29772),g=s(98380),C=s(51062);function A(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"th",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(Qt){t.CHM(ft);const me=t.oxw();return Qt?me.masterToggle():null}),t.qZA(),t.qZA()}if(2&Ut){const ft=t.oxw();t.xp6(1),t.Q6J("aria-label",ft.checkboxLabel())("checked",ft.selection.hasValue()&&ft.isAllSelected())("indeterminate",ft.selection.hasValue()&&!ft.isAllSelected())}}function L(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"td",23),t.TgZ(1,"mat-checkbox",24),t.NdJ("change",function(Qt){const ge=t.CHM(ft).$implicit,ve=t.oxw();return Qt?ve.selection.toggle(ge):null})("click",function(Qt){return Qt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("aria-label",Nt.checkboxLabel(ft))("checked",Nt.selection.isSelected(ft))}}function P(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function O(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.hij(" ",ft.id," ")}}function R(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function U(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.service.name)}}function z(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function X(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function it(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,X,3,3,"mat-icon",29),t.qZA()),2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("ngIf",!Nt.services.has(ft.service.id))}}function nt(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function ut(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.facility.name)}}function J(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function tt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.destination)}}function $(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function st(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.type.toUpperCase())}}function Y(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function K(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function rt(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function at(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,K,3,3,"mat-icon",31),t.YNc(2,rt,3,3,"mat-icon",31),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Q6J("ngIf",!ft.blocked),t.xp6(1),t.Q6J("ngIf",ft.blocked)}}function V(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function M(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.propagationType)}}function Ct(Ut,vt){1&Ut&&t._UZ(0,"tr",33)}function Mt(Ut,vt){1&Ut&&t._UZ(0,"tr",34)}function Bt(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ht(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let ie=(()=>{class Ut{constructor(ft,Nt){this.authResolver=ft,this.tableCheckbox=Nt,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=_.f7}set matSort(ft){this.sort=ft,this.setDataSource()}static getDataForColumn(ft,Nt){switch(Nt){case"destinationId":return ft.id.toString();case"service":return ft.service.name;case"facility":return ft.facility.name;case"destination":return ft.destination;case"type":return ft.type;case"status":return ft.blocked?"blocked":"allowed";case"propagationType":return ft.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ft=>"destinationId"!==ft)),this.dataSource=new v.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportData(ft){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Ut.getDataForColumn),ft)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(ft,Nt)=>(0,_.Sd)(ft,Nt,this.displayedColumns,Ut.getDataForColumn),this.dataSource.sortData=(ft,Nt)=>(0,_.pR)(ft,Nt,Ut.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(ft){return ft?`${this.selection.isSelected(ft)?"deselect":"select"} row ${ft.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ut.\u0275fac=function(ft){return new(ft||Ut)(t.Y36(f.x4),t.Y36(f.UA))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(ft,Nt){if(1&ft&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&ft){let Qt;t.iGM(Qt=t.CRH())&&(Nt.child=Qt.first),t.iGM(Qt=t.CRH())&&(Nt.matSort=Qt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ft,Nt){1&ft&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(me){return Nt.exportData(me)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,A,2,3,"th",4),t.YNc(5,L,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,P,3,3,"th",7),t.YNc(8,O,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,U,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,z,1,0,"th",12),t.YNc(14,it,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,nt,3,3,"th",7),t.YNc(17,ut,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,J,3,3,"th",7),t.YNc(20,tt,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,$,3,3,"th",7),t.YNc(23,st,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,Y,1,0,"th",12),t.YNc(26,at,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,V,3,3,"th",7),t.YNc(29,M,2,1,"td",10),t.BQk(),t.YNc(30,Ct,1,0,"tr",18),t.YNc(31,Mt,1,0,"tr",19),t.qZA(),t.qZA(),t.qZA(),t.YNc(32,Bt,3,3,"perun-web-apps-alert",20),t.YNc(33,Ht,3,3,"perun-web-apps-alert",20)),2&ft&&(t.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),t.xp6(1),t.Q6J("dataSource",Nt.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Nt.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Nt.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Nt.destinations.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,h.O5,m.Hw,u.gM,v.as,v.XQ,v.nj,v.Gk,g.w],pipes:[C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ut})()},89466:(w,k,s)=>{"use strict";s.d(k,{u:()=>L});var c=s(32105),x=s(48966),v=s(32075),_=s(32080),f=s(5e3),t=s(51062),p=s(69808),l=s(20773),h=s(98380),m=s(70242),u=s(47423);function g(P,O){1&P&&f._UZ(0,"mat-spinner",6)}function C(P,O){if(1&P&&f._UZ(0,"app-perun-web-apps-destination-list",11),2&P){const R=f.oxw(2);f.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function A(P,O){if(1&P&&(f.TgZ(0,"div",7),f.TgZ(1,"perun-web-apps-alert",8),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"p"),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"div",9),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),f.qZA()),2&P){const R=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),f.xp6(3),f.Oqu(f.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),f.xp6(3),f.hij(" ",f.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),f.xp6(2),f.Q6J("ngIf",!R.loading)}}let L=(()=>{class P{constructor(R,U,z,X,it){this.dialogRef=R,this.data=U,this.notificator=z,this.translate=X,this.serviceManager=it,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new v.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const R=this.destinations.pop();this.serviceManager.removeDestination(R.service.id,R.facility.id,R.destination,R.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return P.\u0275fac=function(R){return new(R||P)(f.Y36(x.so),f.Y36(x.WI),f.Y36(_.V6),f.Y36(t.sK),f.Y36(c.KK))},P.\u0275cmp=f.Xpm({type:P,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,U){1&R&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div"),f.YNc(4,g,1,0,"mat-spinner",1),f.YNc(5,A,11,10,"div",2),f.TgZ(6,"div",3),f.TgZ(7,"button",4),f.NdJ("click",function(){return U.onCancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return U.onConfirm()}),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.qZA(),f.qZA()),2&R&&(f.xp6(1),f.Oqu(f.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),f.xp6(2),f.Tol(U.theme),f.xp6(1),f.Q6J("ngIf",U.loading),f.xp6(1),f.Q6J("ngIf",!U.loading),f.xp6(3),f.hij(" ",f.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),f.xp6(2),f.Q6J("disabled",U.loading),f.xp6(1),f.hij(" ",f.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[x.uh,p.O5,l.$g,x.xY,h.w,m.q,x.H8,u.lW],pipes:[t.X$],styles:[""]}),P})()},23256:(w,k,s)=>{"use strict";s.d(k,{Q:()=>tt});var c=s(84847),x=s(20449),v=s(32075),_=s(9244),f=s(32080),t=s(5e3),p=s(18750),l=s(77446),h=s(69808),m=s(98380),u=s(51062);function g($,st){if(1&$){const Y=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(rt){t.CHM(Y);const at=t.oxw();return rt?at.masterToggle():null}),t.qZA(),t.qZA()}if(2&$){const Y=t.oxw();t.xp6(1),t.Q6J("aria-label",Y.checkboxLabel())("checked",Y.selection.hasValue()&&Y.isAllSelected())("indeterminate",Y.selection.hasValue()&&!Y.isAllSelected())}}function C($,st){if(1&$){const Y=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(rt){const V=t.CHM(Y).$implicit,M=t.oxw();return rt?M.selection.toggle(V):null})("click",function(rt){return rt.stopPropagation()}),t.qZA(),t.qZA()}if(2&$){const Y=st.$implicit,K=t.oxw();t.xp6(1),t.Q6J("aria-label",K.checkboxLabel(Y))("checked",K.selection.isSelected(Y))}}function A($,st){1&$&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function L($,st){if(1&$&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&$){const Y=st.$implicit;t.xp6(1),t.hij(" ",Y.id," ")}}function P($,st){1&$&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function O($,st){if(1&$&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&$){const Y=st.$implicit;t.xp6(1),t.Oqu(Y.name)}}function R($,st){1&$&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function U($,st){if(1&$&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&$){const Y=st.$implicit;t.xp6(1),t.Oqu(Y.contact)}}function z($,st){1&$&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function X($,st){if(1&$&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&$){const Y=st.$implicit;t.xp6(1),t.Oqu(Y.type)}}function it($,st){1&$&&t._UZ(0,"tr",23)}function nt($,st){1&$&&t._UZ(0,"tr",24)}function ut($,st){1&$&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function J($,st){1&$&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let tt=(()=>{class ${constructor(Y,K){this.authResolver=Y,this.tableCheckbox=K,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=_.f7}set matSort(Y){this.sort=Y,this.setDataSource()}static getDataForColumn(Y,K){switch(K){case"id":return Y.id.toString();case"name":return Y.name;case"contact":return Y.contact;case"type":return Y.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(Y){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,$.getDataForColumn),Y)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Y,K)=>(0,_.Sd)(Y,K,this.displayedColumns,$.getDataForColumn),this.dataSource.sortData=(Y,K)=>(0,_.pR)(Y,K,$.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Y=>"id"!==Y)),this.dataSource=new v.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Y){return Y?`${this.selection.isSelected(Y)?"deselect":"select"} row ${Y.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return $.\u0275fac=function(Y){return new(Y||$)(t.Y36(f.x4),t.Y36(f.UA))},$.\u0275cmp=t.Xpm({type:$,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(Y,K){if(1&Y&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&Y){let rt;t.iGM(rt=t.CRH())&&(K.child=rt.first),t.iGM(rt=t.CRH())&&(K.matSort=rt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(Y,K){1&Y&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(at){return K.exportData(at)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,g,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,A,3,3,"th",7),t.YNc(8,L,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,P,3,3,"th",7),t.YNc(11,O,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,R,3,3,"th",7),t.YNc(14,U,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,z,3,3,"th",7),t.YNc(17,X,2,1,"td",10),t.BQk(),t.YNc(18,it,1,0,"tr",13),t.YNc(19,nt,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,ut,3,3,"perun-web-apps-alert",15),t.YNc(21,J,3,3,"perun-web-apps-alert",15)),2&Y&&(t.Q6J("hidden",0===K.owners.length||0===K.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",K.tableId)("dataLength",K.dataSource.filteredData.length)("pageSizeOptions",K.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",K.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",K.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",K.displayedColumns),t.xp6(1),t.Q6J("ngIf",!K.owners.length),t.xp6(1),t.Q6J("ngIf",!K.dataSource.filteredData.length&&K.owners.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,v.as,v.XQ,v.nj,v.Gk,h.O5,m.w],pipes:[u.X$],styles:[""]}),$})()},16087:(w,k,s)=>{"use strict";const c=s(34315),x=s(52872),v=s(40717);w.exports=function _(p,l){switch(x(p)){case"object":return function f(p,l){if("function"==typeof l)return l(p);if(l||v(p)){const h=new p.constructor;for(let m in p)h[m]=_(p[m],l);return h}return p}(p,l);case"array":return function t(p,l){const h=new p.constructor(p.length);for(let m=0;m{"use strict";s.d(k,{Il:()=>x,xV:()=>v,J5:()=>_,ZP:()=>U,SU:()=>it,B8:()=>nt,Ss:()=>ut,Ym:()=>K});var c=s(68884);function x(){}var v=.7,_=1/v,f="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),m=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),u=new RegExp("^rgba\\("+[f,f,f,t]+"\\)$"),g=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,p,p]+"\\)$"),A=new RegExp("^hsla\\("+[t,p,p,t]+"\\)$"),L={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function P(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function U(V){var M,Ct;return V=(V+"").trim().toLowerCase(),(M=l.exec(V))?(Ct=M[1].length,M=parseInt(M[1],16),6===Ct?z(M):3===Ct?new ut(M>>8&15|M>>4&240,M>>4&15|240&M,(15&M)<<4|15&M,1):8===Ct?X(M>>24&255,M>>16&255,M>>8&255,(255&M)/255):4===Ct?X(M>>12&15|M>>8&240,M>>8&15|M>>4&240,M>>4&15|240&M,((15&M)<<4|15&M)/255):null):(M=h.exec(V))?new ut(M[1],M[2],M[3],1):(M=m.exec(V))?new ut(255*M[1]/100,255*M[2]/100,255*M[3]/100,1):(M=u.exec(V))?X(M[1],M[2],M[3],M[4]):(M=g.exec(V))?X(255*M[1]/100,255*M[2]/100,255*M[3]/100,M[4]):(M=C.exec(V))?st(M[1],M[2]/100,M[3]/100,1):(M=A.exec(V))?st(M[1],M[2]/100,M[3]/100,M[4]):L.hasOwnProperty(V)?z(L[V]):"transparent"===V?new ut(NaN,NaN,NaN,0):null}function z(V){return new ut(V>>16&255,V>>8&255,255&V,1)}function X(V,M,Ct,Mt){return Mt<=0&&(V=M=Ct=NaN),new ut(V,M,Ct,Mt)}function it(V){return V instanceof x||(V=U(V)),V?new ut((V=V.rgb()).r,V.g,V.b,V.opacity):new ut}function nt(V,M,Ct,Mt){return 1===arguments.length?it(V):new ut(V,M,Ct,null==Mt?1:Mt)}function ut(V,M,Ct,Mt){this.r=+V,this.g=+M,this.b=+Ct,this.opacity=+Mt}function J(){return"#"+$(this.r)+$(this.g)+$(this.b)}function tt(){var V=this.opacity;return(1===(V=isNaN(V)?1:Math.max(0,Math.min(1,V)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===V?")":", "+V+")")}function $(V){return((V=Math.max(0,Math.min(255,Math.round(V)||0)))<16?"0":"")+V.toString(16)}function st(V,M,Ct,Mt){return Mt<=0?V=M=Ct=NaN:Ct<=0||Ct>=1?V=M=NaN:M<=0&&(V=NaN),new rt(V,M,Ct,Mt)}function Y(V){if(V instanceof rt)return new rt(V.h,V.s,V.l,V.opacity);if(V instanceof x||(V=U(V)),!V)return new rt;if(V instanceof rt)return V;var M=(V=V.rgb()).r/255,Ct=V.g/255,Mt=V.b/255,Bt=Math.min(M,Ct,Mt),Ht=Math.max(M,Ct,Mt),ie=NaN,Ut=Ht-Bt,vt=(Ht+Bt)/2;return Ut?(ie=M===Ht?(Ct-Mt)/Ut+6*(Ct0&&vt<1?0:ie,new rt(ie,Ut,vt,V.opacity)}function K(V,M,Ct,Mt){return 1===arguments.length?Y(V):new rt(V,M,Ct,null==Mt?1:Mt)}function rt(V,M,Ct,Mt){this.h=+V,this.s=+M,this.l=+Ct,this.opacity=+Mt}function at(V,M,Ct){return 255*(V<60?M+(Ct-M)*V/60:V<180?Ct:V<240?M+(Ct-M)*(240-V)/60:M)}(0,c.Z)(x,U,{copy:function(V){return Object.assign(new this.constructor,this,V)},displayable:function(){return this.rgb().displayable()},hex:P,formatHex:P,formatHsl:function O(){return Y(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(ut,nt,(0,c.l)(x,{brighter:function(V){return V=null==V?_:Math.pow(_,V),new ut(this.r*V,this.g*V,this.b*V,this.opacity)},darker:function(V){return V=null==V?v:Math.pow(v,V),new ut(this.r*V,this.g*V,this.b*V,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:J,formatHex:J,formatRgb:tt,toString:tt})),(0,c.Z)(rt,K,(0,c.l)(x,{brighter:function(V){return V=null==V?_:Math.pow(_,V),new rt(this.h,this.s,this.l*V,this.opacity)},darker:function(V){return V=null==V?v:Math.pow(v,V),new rt(this.h,this.s,this.l*V,this.opacity)},rgb:function(){var V=this.h%360+360*(this.h<0),M=isNaN(V)||isNaN(this.s)?0:this.s,Ct=this.l,Mt=Ct+(Ct<.5?Ct:1-Ct)*M,Bt=2*Ct-Mt;return new ut(at(V>=240?V-240:V+120,Bt,Mt),at(V,Bt,Mt),at(V<120?V+240:V-120,Bt,Mt),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var V=this.opacity;return(1===(V=isNaN(V)?1:Math.max(0,Math.min(1,V)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===V?")":", "+V+")")}}))},68884:(w,k,s)=>{"use strict";function c(v,_,f){v.prototype=_.prototype=f,f.constructor=v}function x(v,_){var f=Object.create(v.prototype);for(var t in _)f[t]=_[t];return f}s.d(k,{Z:()=>c,l:()=>x})},25922:(w,k,s)=>{"use strict";s.d(k,{Z:()=>p});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";function v(_){return((_*=2)<=1?_*_*_:(_-=2)*_*_+2)/2}s.d(k,{tw:()=>v})},22910:(w,k,s)=>{"use strict";s.d(k,{WU:()=>v,jH:()=>_,ZP:()=>f});var x,v,_,c=s(4753);function f(t){return x=(0,c.Z)(t),v=x.format,_=x.formatPrefix,x}f({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(5326);function x(v){return(v=(0,c.V)(Math.abs(v)))?v[1]:NaN}},5326:(w,k,s)=>{"use strict";function c(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)}function x(v,_){if((f=(v=_?v.toExponential(_-1):v.toExponential()).indexOf("e"))<0)return null;var f,t=v.slice(0,f);return[t.length>1?t[0]+t.slice(2):t,+v.slice(f+1)]}s.d(k,{Z:()=>c,V:()=>x})},32517:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x,v:()=>v});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(_){if(!(f=c.exec(_)))throw new Error("invalid format: "+_);var f;return new v({fill:f[1],align:f[2],sign:f[3],symbol:f[4],zero:f[5],width:f[6],comma:f[7],precision:f[8]&&f[8].slice(1),trim:f[9],type:f[10]})}function v(_){this.fill=void 0===_.fill?" ":_.fill+"",this.align=void 0===_.align?">":_.align+"",this.sign=void 0===_.sign?"-":_.sign+"",this.symbol=void 0===_.symbol?"":_.symbol+"",this.zero=!!_.zero,this.width=void 0===_.width?void 0:+_.width,this.comma=!!_.comma,this.precision=void 0===_.precision?void 0:+_.precision,this.trim=!!_.trim,this.type=void 0===_.type?"":_.type+""}x.prototype=v.prototype,v.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,k,s)=>{"use strict";s.r(k),s.d(k,{formatDefaultLocale:()=>c.ZP,format:()=>c.WU,formatPrefix:()=>c.jH,formatLocale:()=>x.Z,formatSpecifier:()=>v.Z,FormatSpecifier:()=>v.v,precisionFixed:()=>_.Z,precisionPrefix:()=>f.Z,precisionRound:()=>t.Z});var c=s(22910),x=s(4753),v=s(32517),_=s(78986),f=s(38914),t=s(65142)},4753:(w,k,s)=>{"use strict";s.d(k,{Z:()=>A});var p,c=s(68520),_=s(32517),t=s(5326);function h(L,P){var O=(0,t.V)(L,P);if(!O)return L+"";var R=O[0],U=O[1];return U<0?"0."+new Array(-U).join("0")+R:R.length>U+1?R.slice(0,U+1)+"."+R.slice(U+1):R+new Array(U-R.length+2).join("0")}const m={"%":(L,P)=>(100*L).toFixed(P),b:L=>Math.round(L).toString(2),c:L=>L+"",d:t.Z,e:(L,P)=>L.toExponential(P),f:(L,P)=>L.toFixed(P),g:(L,P)=>L.toPrecision(P),o:L=>Math.round(L).toString(8),p:(L,P)=>h(100*L,P),r:h,s:function l(L,P){var O=(0,t.V)(L,P);if(!O)return L+"";var R=O[0],U=O[1],z=U-(p=3*Math.max(-8,Math.min(8,Math.floor(U/3))))+1,X=R.length;return z===X?R:z>X?R+new Array(z-X+1).join("0"):z>0?R.slice(0,z)+"."+R.slice(z):"0."+new Array(1-z).join("0")+(0,t.V)(L,Math.max(0,P+z-1))[0]},X:L=>Math.round(L).toString(16).toUpperCase(),x:L=>Math.round(L).toString(16)};function u(L){return L}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function A(L){var P=void 0===L.grouping||void 0===L.thousands?u:function x(L,P){return function(O,R){for(var U=O.length,z=[],X=0,it=L[0],nt=0;U>0&&it>0&&(nt+it+1>R&&(it=Math.max(1,R-nt)),z.push(O.substring(U-=it,U+it)),!((nt+=it+1)>R));)it=L[X=(X+1)%L.length];return z.reverse().join(P)}}(g.call(L.grouping,Number),L.thousands+""),O=void 0===L.currency?"":L.currency[0]+"",R=void 0===L.currency?"":L.currency[1]+"",U=void 0===L.decimal?".":L.decimal+"",z=void 0===L.numerals?u:function v(L){return function(P){return P.replace(/[0-9]/g,function(O){return L[+O]})}}(g.call(L.numerals,String)),X=void 0===L.percent?"%":L.percent+"",it=void 0===L.minus?"\u2212":L.minus+"",nt=void 0===L.nan?"NaN":L.nan+"";function ut(tt){var $=(tt=(0,_.Z)(tt)).fill,st=tt.align,Y=tt.sign,K=tt.symbol,rt=tt.zero,at=tt.width,V=tt.comma,M=tt.precision,Ct=tt.trim,Mt=tt.type;"n"===Mt?(V=!0,Mt="g"):m[Mt]||(void 0===M&&(M=12),Ct=!0,Mt="g"),(rt||"0"===$&&"="===st)&&(rt=!0,$="0",st="=");var Bt="$"===K?O:"#"===K&&/[boxX]/.test(Mt)?"0"+Mt.toLowerCase():"",Ht="$"===K?R:/[%p]/.test(Mt)?X:"",ie=m[Mt],Ut=/[defgprs%]/.test(Mt);function vt(ft){var me,ge,ve,Nt=Bt,Qt=Ht;if("c"===Mt)Qt=ie(ft)+Qt,ft="";else{var Fe=(ft=+ft)<0||1/ft<0;if(ft=isNaN(ft)?nt:ie(Math.abs(ft),M),Ct&&(ft=function f(L){t:for(var U,P=L.length,O=1,R=-1;O0&&(R=0)}return R>0?L.slice(0,R)+L.slice(U+1):L}(ft)),Fe&&0==+ft&&"+"!==Y&&(Fe=!1),Nt=(Fe?"("===Y?Y:it:"-"===Y||"("===Y?"":Y)+Nt,Qt=("s"===Mt?C[8+p/3]:"")+Qt+(Fe&&"("===Y?")":""),Ut)for(me=-1,ge=ft.length;++me(ve=ft.charCodeAt(me))||ve>57){Qt=(46===ve?U+ft.slice(me+1):ft.slice(me))+Qt,ft=ft.slice(0,me);break}}V&&!rt&&(ft=P(ft,1/0));var qe=Nt.length+ft.length+Qt.length,De=qe>1)+Nt+ft+Qt+De.slice(qe);break;default:ft=De+Nt+ft+Qt}return z(ft)}return M=void 0===M?6:/[gprs]/.test(Mt)?Math.max(1,Math.min(21,M)):Math.max(0,Math.min(20,M)),vt.toString=function(){return tt+""},vt}return{format:ut,formatPrefix:function J(tt,$){var st=ut(((tt=(0,_.Z)(tt)).type="f",tt)),Y=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)($)/3))),K=Math.pow(10,-Y),rt=C[8+Y/3];return function(at){return st(K*at)+rt}}}}},78986:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(68520);function x(v){return Math.max(0,-(0,c.Z)(Math.abs(v)))}},38914:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(68520);function x(v,_){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(_)/3)))-(0,c.Z)(Math.abs(v)))}},65142:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(68520);function x(v,_){return v=Math.abs(v),_=Math.abs(_)-v,Math.max(0,(0,c.Z)(_)-(0,c.Z)(v))+1}},9921:function(w,k,s){!function(c,x,v,_,f,t,p,l,h,m){"use strict";function u(q){if(q&&q.__esModule)return q;var pt=Object.create(null);return q&&Object.keys(q).forEach(function(Tt){if("default"!==Tt){var At=Object.getOwnPropertyDescriptor(q,Tt);Object.defineProperty(pt,Tt,At.get?At:{enumerable:!0,get:function(){return q[Tt]}})}}),pt.default=q,Object.freeze(pt)}var Ot,g=u(x);function C(q,pt,Tt){return pt in q?Object.defineProperty(q,pt,{value:Tt,enumerable:!0,configurable:!0,writable:!0}):q[pt]=Tt,q}function A(q){return function L(q){if(Array.isArray(q))return R(q)}(q)||function P(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function O(q,pt){if(q){if("string"==typeof q)return R(q,pt);var Tt=Object.prototype.toString.call(q).slice(8,-1);if("Object"===Tt&&q.constructor&&(Tt=q.constructor.name),"Map"===Tt||"Set"===Tt)return Array.from(q);if("Arguments"===Tt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Tt))return R(q,pt)}}(q)||function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(q,pt){(null==pt||pt>q.length)&&(pt=q.length);for(var Tt=0,At=new Array(pt);Tt1&&void 0!==arguments[1]?arguments[1]:0,Tt=g.select(this),At=q.attributes,Wt=Tt.node().attributes;if(Wt)for(var te=0;te0?Le.children[0].text:"")}null==Xt.key&&(Wt&&("ellipse"==Pe||"polygon"==Pe)&&(Pe="path"),Xt.key=Pe+"-"+le)}function ze(Xt,le){Xt.id=(le?le.id+".":"")+Xt.key}function Qe(Xt){N[Xt.id]=Xt}function fe(Xt,le){Wt&&Xt.id in oe&&("polygon"==le.tag||"ellipse"==le.tag||"path"==le.tag)&&(le.tag!=Xt.tag||"polygon"==Xt.tag)&&("path"!=le.tag&&(Xt.alternativeOld=De(le,Xt)),"path"!=Xt.tag&&(Xt.alternativeNew=De(Xt,le)))}function be(Xt,le){if(At&&le&&("path"==le.tag||Xt.alternativeOld&&"path"==Xt.alternativeOld.tag)){var Pe=(Xt.alternativeNew||Xt).attributes.d;if(Xt.alternativeOld)var Le=nt(Xt.alternativeOld);else Le=nt(le);(Xt.alternativeOld||(Xt.alternativeOld={})).points=function vt(q,pt,Tt,At){for(var Wt=q,te=Wt.cloneNode(),Dt=Wt.getTotalLength(),he=(te.setAttribute("d",pt),te).getTotalLength(),N=[0],oe=0,Ie=At?Tt:Tt/Math.max(Dt,he);(oe+=Ie)<1;)N.push(oe);return N.push(1),N.map(function(sn){var ze=Wt.getPointAtLength(sn*Dt),Qe=te.getPointAtLength(sn*he);return[[ze.x,ze.y],[Qe.x,Qe.y]]})}(Le,Pe,te,Dt)}}function We(Xt){var Pe=arguments.length>2?arguments[2]:void 0;sn(Xt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),ze(Xt,Pe);var He=oe[Xt.id];Qe(Xt),fe(Xt,He),be(Xt,He);var Qn={};Xt.children.forEach(function(On){var Ln=On.tag;("ellipse"==Ln||"polygon"==Ln)&&(Ln="path"),null==Qn[Ln]&&(Qn[Ln]=0),We(On,Qn[Ln]++,Xt)})}function mt(Xt){(function et(Xt){if(he&&Xt.parent&&"node"==Xt.parent.attributes.class&&"title"==Xt.tag){if(Xt.children.length>0)var Le=Xt.children[0].text;else Le="";Ie[Le]=Xt.parent}})(Xt),function gt(Xt){var Pe=Xt.tag;if(he&&!oe[Xt.id]&&Xt.parent&&Qt(Xt)&&("path"==Pe||"polygon"==Pe)){if("polygon"==Pe){var He=Xt.parent.children.find(function(Kn){return"path"==Kn.tag});He&&(Xt.totalLength=He.totalLength)}var On=function ge(q){return function me(q){return"edge"==q.parent.attributes.class?q.parent:q.parent.parent.parent}(q).children.find(function(pt){return"title"==pt.tag})}(Xt).children[0],Ln=On.text.split("->");2!=Ln.length&&(Ln=On.text.split("--"));var Xe=Ln[0],Nn=Ie[Xe],qn=Me[Xe];if(qn){if((on=Nn.children.findIndex(function(Kn,Si){return"g"==Kn.tag}))>=0){var un=Nn.children[on].children.findIndex(function(Kn,Si){return"a"==Kn.tag});Nn=Nn.children[on].children[un]}(on=qn.children.findIndex(function(Kn,Si){return"g"==Kn.tag}))>=0&&(un=qn.children[on].children.findIndex(function(Si,_n){return"a"==Si.tag}),qn=qn.children[on].children[un]);for(var Un=Nn.children,on=0;on0&&this._queue.shift().call(this)}function Bn(q,pt,Tt,At){var Wt=[q*Tt-(pt=-pt)*(At=-At),q*At+pt*Tt];return[q=Wt[0],pt=-(pt=Wt[1])]}function Ii(q,pt,Tt,At,Wt,te,Dt){var N=X(en.call(this,te));q.data([N]),st.call(q.node(),N),gn(q,pt,Tt,At,Wt,te,Dt)}function gn(q,pt,Tt,At,Wt,te,Dt){var he=Dt.shortening||0,Me=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],sn=At-pt,ze=Wt-Tt,Qe=Math.sqrt(sn*sn+ze*ze);if(0==Qe)var fe=1,be=0;else fe=sn/Qe,be=ze/Qe;if(At=pt+(Qe-he-10-.1)*fe,Wt=Tt+(Qe-he-10-.1)*be,te.URL||te.tooltip)var We=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),et=We.selectWithoutDataPropagation("path"),gt=We.selectWithoutDataPropagation("polygon");else et=q.selectWithoutDataPropagation("path"),gt=q.selectWithoutDataPropagation("polygon");var mt=m.path();mt.moveTo(pt,Tt),mt.lineTo(At,Wt),et.attr("d",mt),At=pt+(Qe-he-10)*fe,Wt=Tt+(Qe-he-10)*be;for(var Et=0;Et b ["+pt+"]}","svg","dot"),N=(new window.DOMParser).parseFromString(Dt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return N.documentElement}).select(".edge")}function Mn(q,pt,Tt,At,Wt,te){var he=X(W.call(this,At,Wt));return q.data([he]),st.call(q.node(),he),we(q,pt,Tt,Wt),this}function we(q,pt,Tt,At,Wt){if(At.URL||At.tooltip)var te=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else te=q;var Dt=te.selectAll("ellipse,polygon,path,polyline"),he=q.selectWithoutDataPropagation("text");if(0!=Dt.size()){var N=Dt.node().getBBox();N.cx=N.x+N.width/2,N.cy=N.y+N.height/2}else 0!=he.size()&&(N={x:+he.attr("x"),y:+he.attr("y"),width:0,height:0,cx:+he.attr("x"),cy:+he.attr("y")});return Dt.each(function(oe,Ie){var Me=g.select(this);if(Me.attr("cx"))Me.attr("cx",K(pt)).attr("cy",K(Tt));else if(Me.attr("points")){var sn=Me.attr("points").trim();Me.attr("points",function fn(te,pt,Tt){var Wt,At=(Wt=te.split(" ")).map(function(Dt){return Dt.split(",")});return At=Wt.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+Tt+ +Dt.split(",")[1])]}),(Wt=At.map(function(Dt){return Dt.join(",")})).join(" ")}(sn,pt-N.cx,Tt-N.cy))}else{var ze=Me.attr("d");Me.attr("d",function Be(q,pt,Tt){(te=q.split(/[A-Z ]/)).shift();var At=q.split(/[^[A-Z ]+/),te=(te.map(function(Dt){return Dt.split(",")}),te.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+Tt+ +Dt.split(",")[1])]}).map(function(Dt){return Dt.join(",")}));return At.reduce(function(Dt,he,N){return Dt.concat(he,te[N])},[]).join("")}(ze,pt-N.cx,Tt-N.cy))}}),0!=he.size()&&he.attr("x",K(+he.attr("x")+pt-N.cx)).attr("y",K(+he.attr("y")+Tt-N.cy)),this}function pn(){if(!this._drawnNode)return this;var q=this._drawnNode.g;return q.empty()||q.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:g.select(null)}function W(q,pt){for(var Tt="",At=0,Wt=Object.keys(pt);At2")(sn)+" ",be+=ze+" ".repeat(te-ze.length),be+=h.format(" >5")(Qe-Tt)+" ","initEnd"!=ze&&(be+=h.format(" >5")(Qe-At.start[fe])),"dataProcessEnd"==ze&&(be+=" prepare "+h.format(" >5")(Qe-At.layoutEnd[fe])),"renderEnd"==ze&&N._transition&&(be+=" transition start margin "+h.format(" >5")(N._transition.delay()-(Qe-At.renderStart[fe])),oe=N._transition.delay(),Ie=N._transition.duration()),"transitionStart"==ze){var We=Qe-At.renderStart[fe];be+=" transition delay "+h.format(" >5")(Qe-At.renderStart[fe]),be+=" expected "+h.format(" >5")(oe),be+=" diff "+h.format(" >5")(We-oe)}if("transitionEnd"==ze){var et=Qe-At.transitionStart[fe];be+=" transition duration "+h.format(" >5")(et),be+=" expected "+h.format(" >5")(Ie),be+=" diff "+h.format(" >5")(et-Ie)}console.log(be),Tt=Qe}:null)},he=0;he5&&void 0!==arguments[5]?arguments[5]:{};if((Wt=Object.assign({},Wt)).style&&Wt.style.includes("invis"))var Dt=g.select(null);else{var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Me=X(en.call(this,Wt));Dt=oe.append("g").data([Me]),st.call(Dt.node(),Me),Ii.call(this,Dt,q,pt,Tt,At,Wt,te)}return this._drawnEdge={g:Dt,x1:q,y1:pt,x2:Tt,y2:At,attributes:Wt},this},updateDrawnEdge:function ti(q,pt,Tt,At){var Wt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},te=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Dt=this._drawnEdge.g;return Wt=Object.assign(this._drawnEdge.attributes,Wt),this._drawnEdge.x1=q,this._drawnEdge.y1=pt,this._drawnEdge.x2=Tt,this._drawnEdge.y2=At,!Dt.empty()||Wt.style&&Wt.style.includes("invis")||(Dt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Dt),Dt.empty()||Ii.call(this,Dt,q,pt,Tt,At,Wt,te),this},moveDrawnEdgeEndPoint:function ni(q,pt){var Tt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var At=this._drawnEdge.g,Wt=this._drawnEdge.x1,te=this._drawnEdge.y1,Dt=this._drawnEdge.attributes;return this._drawnEdge.x2=q,this._drawnEdge.y2=pt,gn(At,Wt,te,q,pt,Dt,Tt),this},insertDrawnEdge:function In(q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(q);var te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Dt=te.datum(),he=this._extractData(pt,Dt.children.length,te.datum());return Dt.children.push(he),tt(pt,he),this._drawnEdge=null,this},removeDrawnEdge:Ai},"removeDrawnEdge",Ai),C(Ot,"drawnEdgeSelection",_e),C(Ot,"drawnEdgeSelection",_e),C(Ot,"drawNode",function ii(q,pt,Tt){var At=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Wt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((At=Object.assign({},At)).style&&At.style.includes("invis"))var te=g.select(null);else{var N=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ie=X(W.call(this,Tt,At));te=N.append("g").data([Ie]),st.call(te.node(),Ie),Mn.call(this,te,q,pt,Tt,At,Wt)}return this._drawnNode={g:te,nodeId:Tt,x:q,y:pt,attributes:At},this}),C(Ot,"updateDrawnNode",function di(q,pt,Tt){var At=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Wt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var te=this._drawnNode.g;return null==Tt&&(Tt=this._drawnNode.nodeId),At=Object.assign(this._drawnNode.attributes,At),this._drawnNode.nodeId=Tt,this._drawnNode.x=q,this._drawnNode.y=pt,!te.empty()||At.style&&At.style.includes("invis")||(te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=te),te.empty()||Mn.call(this,te,q,pt,Tt,At,Wt),this}),C(Ot,"moveDrawnNode",function jn(q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var Tt=this._drawnNode.g,At=this._drawnNode.attributes;return this._drawnNode.x=q,this._drawnNode.y=pt,Tt.empty()||we(Tt,q,pt,At),this}),C(Ot,"insertDrawnNode",function ln(q){if(!this._drawnNode)throw Error("No node has been drawn");null==q&&(q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var Tt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(q),Tt.URL||Tt.tooltip){var te=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");te.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Dt=te.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Dt=pt.selectWithoutDataPropagation("text");Dt.text(Tt.label||q);var oe=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Ie=oe.datum(),Me=this._extractData(pt,Ie.children.length,oe.datum());return Ie.children.push(Me),tt(pt,Me),this._drawnNode=null,this}),C(Ot,"removeDrawnNode",pn),C(Ot,"removeDrawnNode",pn),C(Ot,"drawnNodeSelection",G),C(Ot,"drawnNodeSelection",G),C(Ot,"graphvizVersion",function qe(){return this._graphvizVersion}),Ot),x.selection.prototype.graphviz=function re(q){var pt=this.node().__graphviz__;return pt?(pt.options(q),f.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Rt(this,q),pt},x.selection.prototype.selectWithoutDataPropagation=function qt(q){return g.select(this.size()>0?this.node().querySelector(q):null)},c.graphviz=Yt,Object.defineProperty(c,"__esModule",{value:!0})}(k,s(68557),s(18140),s(35011),s(31566),s(82683),s(60128),s(89397),s(41129),s(12218))},92940:(w,k,s)=>{"use strict";s.d(k,{Z:()=>p});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";s.r(k),s.d(k,{dispatch:()=>c.Z});var c=s(92940)},97907:(w,k,s)=>{"use strict";function c(v,_,f,t,p){var l=v*v,h=l*v;return((1-3*v+3*l-h)*_+(4-6*l+3*h)*f+(1+3*v+3*l-3*h)*t+h*p)/6}function x(v){var _=v.length-1;return function(f){var t=f<=0?f=0:f>=1?(f=1,_-1):Math.floor(f*_),p=v[t],l=v[t+1];return c((f-t/_)*_,t>0?v[t-1]:2*p-l,p,l,t<_-1?v[t+2]:2*l-p)}}s.d(k,{t:()=>c,Z:()=>x})},77296:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(97907);function x(v){var _=v.length;return function(f){var t=Math.floor(((f%=1)<0?++f:f)*_);return(0,c.t)((f-t/_)*_,v[(t+_-1)%_],v[t%_],v[(t+1)%_],v[(t+2)%_])}}},87237:(w,k,s)=>{"use strict";s.d(k,{wx:()=>_,yi:()=>f,ZP:()=>t});var c=s(89783);function x(p,l){return function(h){return p+h*l}}function _(p,l){var h=l-p;return h?x(p,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(p)?l:p)}function f(p){return 1==(p=+p)?t:function(l,h){return h-l?function v(p,l,h){return p=Math.pow(p,h),l=Math.pow(l,h)-p,h=1/h,function(m){return Math.pow(p+m*l,h)}}(l,h,p):(0,c.Z)(isNaN(l)?h:l)}}function t(p,l){var h=l-p;return h?x(p,h):(0,c.Z)(isNaN(p)?l:p)}},89783:(w,k,s)=>{"use strict";s.d(k,{Z:()=>c});const c=x=>()=>x},82683:(w,k,s)=>{"use strict";s.r(k),s.d(k,{interpolate:()=>g,interpolateArray:()=>f,interpolateBasis:()=>C.Z,interpolateBasisClosed:()=>A.Z,interpolateCubehelix:()=>ei,interpolateCubehelixLong:()=>Oe,interpolateDate:()=>p,interpolateDiscrete:()=>L,interpolateHcl:()=>ke,interpolateHclLong:()=>Zn,interpolateHsl:()=>tt,interpolateHslLong:()=>$,interpolateHue:()=>O,interpolateLab:()=>Be,interpolateNumber:()=>l.Z,interpolateNumberArray:()=>v,interpolateObject:()=>h,interpolateRgb:()=>x.ZP,interpolateRgbBasis:()=>x.hD,interpolateRgbBasisClosed:()=>x.YD,interpolateRound:()=>R,interpolateString:()=>m.Z,interpolateTransformCss:()=>U.Y,interpolateTransformSvg:()=>U.w,interpolateZoom:()=>ut,piecewise:()=>$n,quantize:()=>Jn});var c=s(52786),x=s(8200);function v(yt,Gt){Gt||(Gt=[]);var xe,se=yt?Math.min(Gt.length,yt.length):0,de=Gt.slice();return function(Ue){for(xe=0;xe.008856451679035631?Math.pow(yt,1/3):yt/Bt+Ct}function Qt(yt){return yt>Mt?yt*yt*yt:Bt*(yt-Ct)}function me(yt){return 255*(yt<=.0031308?12.92*yt:1.055*Math.pow(yt,1/2.4)-.055)}function ge(yt){return(yt/=255)<=.04045?yt/12.92:Math.pow((yt+.055)/1.055,2.4)}function ve(yt){if(yt instanceof De)return new De(yt.h,yt.c,yt.l,yt.opacity);if(yt instanceof ft||(yt=ie(yt)),0===yt.a&&0===yt.b)return new De(NaN,0{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}s.d(k,{Z:()=>c})},8200:(w,k,s)=>{"use strict";s.d(k,{ZP:()=>f,hD:()=>p,YD:()=>l});var c=s(52786),x=s(97907),v=s(77296),_=s(87237);const f=function h(m){var u=(0,_.yi)(m);function g(C,A){var L=u((C=(0,c.B8)(C)).r,(A=(0,c.B8)(A)).r),P=u(C.g,A.g),O=u(C.b,A.b),R=(0,_.ZP)(C.opacity,A.opacity);return function(U){return C.r=L(U),C.g=P(U),C.b=O(U),C.opacity=R(U),C+""}}return g.gamma=h,g}(1);function t(h){return function(m){var L,P,u=m.length,g=new Array(u),C=new Array(u),A=new Array(u);for(L=0;L{"use strict";s.d(k,{Z:()=>t});var c=s(37815),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],L=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,L.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";s.d(k,{Y:()=>h,w:()=>m});var f,c=s(37815),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(u,g,C,A,L,P){var O,R,U;return(O=Math.sqrt(u*u+g*g))&&(u/=O,g/=O),(U=u*C+g*A)&&(C-=u*U,A-=g*U),(R=Math.sqrt(C*C+A*A))&&(C/=R,A/=R,U/=R),u*A180?X+=360:X-z>180&&(z+=360),nt.push({i:it.push(L(it)+"rotate(",null,A)-2,x:(0,c.Z)(z,X)})):X&&it.push(L(it)+"rotate("+X+A)}(z.rotate,X.rotate,it,nt),function R(z,X,it,nt){z!==X?nt.push({i:it.push(L(it)+"skewX(",null,A)-2,x:(0,c.Z)(z,X)}):X&&it.push(L(it)+"skewX("+X+A)}(z.skewX,X.skewX,it,nt),function U(z,X,it,nt,ut,J){if(z!==it||X!==nt){var tt=ut.push(L(ut)+"scale(",null,",",null,")");J.push({i:tt-4,x:(0,c.Z)(z,it)},{i:tt-2,x:(0,c.Z)(X,nt)})}else(1!==it||1!==nt)&&ut.push(L(ut)+"scale("+it+","+nt+")")}(z.scaleX,z.scaleY,X.scaleX,X.scaleY,it,nt),z=X=null,function(ut){for(var $,J=-1,tt=nt.length;++J{"use strict";s.r(k),s.d(k,{path:()=>p});const c=Math.PI,x=2*c,v=1e-6,_=x-v;function f(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new f}f.prototype=t.prototype={constructor:f,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,m,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+m)+","+(this._y1=+u)},bezierCurveTo:function(l,h,m,u,g,C){this._+="C"+ +l+","+ +h+","+ +m+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,m,u,g){var C=this._x1,A=this._y1,L=(m=+m)-(l=+l),P=(u=+u)-(h=+h),O=C-l,R=A-h,U=O*O+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(U>v)if(Math.abs(R*L-P*O)>v&&g){var z=m-C,X=u-A,it=L*L+P*P,nt=z*z+X*X,ut=Math.sqrt(it),J=Math.sqrt(U),tt=g*Math.tan((c-Math.acos((it+U-nt)/(2*ut*J)))/2),$=tt/J,st=tt/ut;Math.abs($-1)>v&&(this._+="L"+(l+$*O)+","+(h+$*R)),this._+="A"+g+","+g+",0,0,"+ +(R*z>O*X)+","+(this._x1=l+st*L)+","+(this._y1=h+st*P)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,m,u,g,C){l=+l,h=+h,C=!!C;var A=(m=+m)*Math.cos(u),L=m*Math.sin(u),P=l+A,O=h+L,R=1^C,U=C?u-g:g-u;if(m<0)throw new Error("negative radius: "+m);null===this._x1?this._+="M"+P+","+O:(Math.abs(this._x1-P)>v||Math.abs(this._y1-O)>v)&&(this._+="L"+P+","+O),m&&(U<0&&(U=U%x+x),U>_?this._+="A"+m+","+m+",0,1,"+R+","+(l-A)+","+(h-L)+"A"+m+","+m+",0,1,"+R+","+(this._x1=P)+","+(this._y1=O):U>v&&(this._+="A"+m+","+m+",0,"+ +(U>=c)+","+R+","+(this._x1=l+m*Math.cos(g))+","+(this._y1=h+m*Math.sin(g))))},rect:function(l,h,m,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +m+"v"+ +u+"h"+-m+"Z"},toString:function(){return this._}};const p=t},31566:(w,k,s)=>{"use strict";s.r(k),s.d(k,{interval:()=>v,now:()=>c.zO,timeout:()=>x.Z,timer:()=>c.HT,timerFlush:()=>c.R8});var c=s(78562),x=s(30406);function v(_,f,t){var p=new c.B7,l=f;return null==f?(p.restart(_,f,t),p):(p._restart=p.restart,p.restart=function(h,m,u){m=+m,u=null==u?(0,c.zO)():+u,p._restart(function g(C){C+=l,p._restart(g,l+=m,u),h(C)},m,u)},p.restart(_,f,t),p)}},30406:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(78562);function x(v,_,f){var t=new c.B7;return t.restart(p=>{t.stop(),v(p+_)},_=null==_?0:+_,f),t}},78562:(w,k,s)=>{"use strict";s.d(k,{zO:()=>g,B7:()=>A,HT:()=>L,R8:()=>P});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function L(X,it,nt){var ut=new A;return ut.restart(X,it,nt),ut}function P(){g(),++c;for(var it,X=f;X;)(it=l-X._time)>=0&&X._call.call(null,it),X=X._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{P()}finally{c=0,function U(){for(var X,nt,it=f,ut=1/0;it;)it._call?(ut>it._time&&(ut=it._time),X=it,it=it._next):(nt=it._next,it._next=null,it=X?X._next=nt:f=nt);t=X,z(ut)}(),l=0}}function R(){var X=m.now(),it=X-p;it>1e3&&(h-=it,p=X)}function z(X){c||(x&&(x=clearTimeout(x)),X-l>24?(X<1/0&&(x=setTimeout(O,X-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=L.prototype={constructor:A,restart:function(X,it,nt){if("function"!=typeof X)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==it?0:+it),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=X,this._time=nt,z()},stop:function(){this._call&&(this._call=null,this._time=1/0,z())}}},35011:(w,k,s)=>{"use strict";s.r(k),s.d(k,{active:()=>ln,interrupt:()=>U,transition:()=>_e});var c=s(37853),x=s(92940),v=s(78562),_=s(30406),f=(0,x.Z)("start","end","cancel","interrupt"),t=[];function A(G,W,ht,E,wt,Ot){var Rt=G.__transition;if(Rt){if(ht in Rt)return}else G.__transition={};!function R(G,W,ht){var wt,E=G.__transition;function Rt(qt){var q,pt,Tt,At;if(1!==ht.state)return re();for(q in E)if((At=E[q]).name===ht.name){if(3===At.state)return(0,_.Z)(Rt);4===At.state?(At.state=6,At.timer.stop(),At.on.call("interrupt",G,G.__data__,At.index,At.group),delete E[q]):+q0)throw new Error("too late; already scheduled");return ht}function P(G,W){var ht=O(G,W);if(ht.state>3)throw new Error("too late; already running");return ht}function O(G,W){var ht=G.__transition;if(!ht||!(ht=ht[W]))throw new Error("transition not found");return ht}function U(G,W){var E,wt,Rt,ht=G.__transition,Ot=!0;if(ht){for(Rt in W=null==W?null:W+"",ht)(E=ht[Rt]).name===W?(wt=E.state>2&&E.state<5,E.state=6,E.timer.stop(),E.on.call(wt?"interrupt":"cancel",G,G.__data__,E.index,E.group),delete ht[Rt]):Ot=!1;Ot&&delete G.__transition}}var X=s(43349),it=s(36175);function nt(G,W){var ht,E;return function(){var wt=P(this,G),Ot=wt.tween;if(Ot!==ht)for(var Rt=0,Yt=(E=ht=Ot).length;Rt=0&&(W=W.slice(0,ht)),!W||"start"===W})}(W)?L:P;return function(){var Rt=Ot(this,G),Yt=Rt.on;Yt!==E&&(wt=(E=Yt).copy()).on(W,ht),Rt.on=wt}}var Pn=s(29742),mi=s(32037),yn=c.ZP.prototype.constructor,ei=s(24476);function $n(G){return function(){this.style.removeProperty(G)}}function de(G,W,ht){return function(E){this.style.setProperty(G,W.call(this,E),ht)}}function xe(G,W,ht){var E,wt;function Ot(){var Rt=W.apply(this,arguments);return Rt!==wt&&(E=(wt=Rt)&&de(G,Rt,ht)),E}return Ot._value=W,Ot}function Dn(G){return function(W){this.textContent=G.call(this,W)}}function ti(G){var W,ht;function E(){var wt=G.apply(this,arguments);return wt!==ht&&(W=(ht=wt)&&Dn(wt)),W}return E._value=G,E}var Ai=0;function In(G,W,ht,E){this._groups=G,this._parents=W,this._name=ht,this._id=E}function _e(G){return(0,c.ZP)().transition(G)}function en(){return++Ai}var ii=c.ZP.prototype;In.prototype=_e.prototype={constructor:In,select:function Ve(G){var W=this._name,ht=this._id;"function"!=typeof G&&(G=(0,Pn.Z)(G));for(var E=this._groups,wt=E.length,Ot=new Array(wt),Rt=0;Rt1&&E.name===W)return new In([[G]],pn,W,+wt);return null}},47927:(w,k,s)=>{"use strict";function c(x){return function(){return x}}s.d(k,{Z:()=>c})},6738:(w,k,s)=>{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}s.d(k,{Z:()=>c})},23534:(w,k,s)=>{"use strict";s.d(k,{ZP:()=>u});var c=s(52786);function x(L,P,O,R,U){var z=L*L,X=z*L;return((1-3*L+3*z-X)*P+(4-6*z+3*X)*O+(1+3*L+3*z-3*X)*R+X*U)/6}var f=s(47927);function m(L,P){var O=P-L;return O?function t(L,P){return function(O){return L+O*P}}(L,O):(0,f.Z)(isNaN(L)?P:L)}const u=function L(P){var O=function h(L){return 1==(L=+L)?m:function(P,O){return O-P?function p(L,P,O){return L=Math.pow(L,O),P=Math.pow(P,O)-L,O=1/O,function(R){return Math.pow(L+R*P,O)}}(P,O,L):(0,f.Z)(isNaN(P)?O:P)}}(P);function R(U,z){var X=O((U=(0,c.B8)(U)).r,(z=(0,c.B8)(z)).r),it=O(U.g,z.g),nt=O(U.b,z.b),ut=m(U.opacity,z.opacity);return function(J){return U.r=X(J),U.g=it(J),U.b=nt(J),U.opacity=ut(J),U+""}}return R.gamma=L,R}(1);function g(L){return function(P){var X,it,O=P.length,R=new Array(O),U=new Array(O),z=new Array(O);for(X=0;X=1?(O=1,P-1):Math.floor(O*P),U=L[R],z=L[R+1];return x((O-R/P)*P,R>0?L[R-1]:2*U-z,U,z,R{"use strict";s.d(k,{Z:()=>t});var c=s(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],L=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,L.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";s.d(k,{Y:()=>g,w:()=>C});var f,t,p,l,c=s(6738),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(A,L,P,O,R,U){var z,X,it;return(z=Math.sqrt(A*A+L*L))&&(A/=z,L/=z),(it=A*P+L*O)&&(P-=A*it,O-=L*it),(X=Math.sqrt(P*P+O*O))&&(P/=X,O/=X,it/=X),A*O180?ut+=360:ut-nt>180&&(nt+=360),tt.push({i:J.push(R(J)+"rotate(",null,O)-2,x:(0,c.Z)(nt,ut)})):ut&&J.push(R(J)+"rotate("+ut+O)}(nt.rotate,ut.rotate,J,tt),function X(nt,ut,J,tt){nt!==ut?tt.push({i:J.push(R(J)+"skewX(",null,O)-2,x:(0,c.Z)(nt,ut)}):ut&&J.push(R(J)+"skewX("+ut+O)}(nt.skewX,ut.skewX,J,tt),function it(nt,ut,J,tt,$,st){if(nt!==J||ut!==tt){var Y=$.push(R($)+"scale(",null,",",null,")");st.push({i:Y-4,x:(0,c.Z)(nt,J)},{i:Y-2,x:(0,c.Z)(ut,tt)})}else(1!==J||1!==tt)&&$.push(R($)+"scale("+J+","+tt+")")}(nt.scaleX,nt.scaleY,ut.scaleX,ut.scaleY,J,tt),nt=ut=null,function($){for(var K,st=-1,Y=tt.length;++st{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}s.d(k,{Z:()=>c})},7500:(w,k,s)=>{"use strict";s.d(k,{Z:()=>f});var c=s(36175),x=s(53517);function v(t){return function(){var p=this.ownerDocument,l=this.namespaceURI;return l===x.P&&p.documentElement.namespaceURI===x.P?p.createElement(t):p.createElementNS(l,t)}}function _(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f(t){var p=(0,c.Z)(t);return(p.local?_:v)(p)}},68557:(w,k,s)=>{"use strict";s.r(k),s.d(k,{create:()=>v,creator:()=>c.Z,local:()=>f,matcher:()=>p.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>m.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>L,selection:()=>A.ZP,selector:()=>P.Z,selectorAll:()=>O.Z,style:()=>R.S,window:()=>U.Z});var c=s(7500),x=s(52016);function v(z){return(0,x.Z)((0,c.Z)(z).call(document.documentElement))}var _=0;function f(){return new t}function t(){this._="@"+(++_).toString(36)}t.prototype=f.prototype={constructor:t,get:function(z){for(var X=this._;!(X in z);)if(!(z=z.parentNode))return;return z[X]},set:function(z,X){return z[this._]=X},remove:function(z){return this._ in z&&delete z[this._]},toString:function(){return this._}};var p=s(97905),l=s(36175),h=s(53517),m=s(29132),u=s(75819);function g(z,X){return z.target&&(z=(0,u.Z)(z),void 0===X&&(X=z.currentTarget),z=z.touches||[z]),Array.from(z,it=>(0,m.Z)(it,X))}var C=s(34638),A=s(37853);function L(z){return"string"==typeof z?new A.Y1([document.querySelectorAll(z)],[document.documentElement]):new A.Y1([null==z?[]:(0,C.Z)(z)],A.Jz)}var P=s(29742),O=s(32037),R=s(24476),U=s(2442)},97905:(w,k,s)=>{"use strict";function c(v){return function(){return this.matches(v)}}function x(v){return function(_){return _.matches(v)}}s.d(k,{Z:()=>c,P:()=>x})},36175:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(53517);function x(v){var _=v+="",f=_.indexOf(":");return f>=0&&"xmlns"!==(_=v.slice(0,f))&&(v=v.slice(f+1)),c.Z.hasOwnProperty(_)?{space:c.Z[_],local:v}:v}},53517:(w,k,s)=>{"use strict";s.d(k,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(75819);function x(v,_){if(v=(0,c.Z)(v),void 0===_&&(_=v.currentTarget),_){var f=_.ownerSVGElement||_;if(f.createSVGPoint){var t=f.createSVGPoint();return t.x=v.clientX,t.y=v.clientY,[(t=t.matrixTransform(_.getScreenCTM().inverse())).x,t.y]}if(_.getBoundingClientRect){var p=_.getBoundingClientRect();return[v.clientX-p.left-_.clientLeft,v.clientY-p.top-_.clientTop]}}return[v.pageX,v.pageY]}},52016:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(37853);function x(v){return"string"==typeof v?new c.Y1([[document.querySelector(v)]],[document.documentElement]):new c.Y1([[v]],c.Jz)}},37853:(w,k,s)=>{"use strict";s.d(k,{Y1:()=>we,ZP:()=>ln,Jz:()=>Mn});var c=s(29742),v=s(34638),_=s(32037),p=s(97905),l=Array.prototype.find;function m(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function O(G){return new Array(G.length)}function U(G,W){this.ownerDocument=G.ownerDocument,this.namespaceURI=G.namespaceURI,this._next=null,this._parent=G,this.__data__=W}function z(G){return function(){return G}}function X(G,W,ht,E,wt,Ot){for(var Yt,Rt=0,re=W.length,qt=Ot.length;RtW?1:G>=W?0:NaN}U.prototype={constructor:U,appendChild:function(G){return this._parent.insertBefore(G,this._next)},insertBefore:function(G,W){return this._parent.insertBefore(G,W)},querySelector:function(G){return this._parent.querySelector(G)},querySelectorAll:function(G){return this._parent.querySelectorAll(G)}};var Bt=s(36175);function Ht(G){return function(){this.removeAttribute(G)}}function ie(G){return function(){this.removeAttributeNS(G.space,G.local)}}function Ut(G,W){return function(){this.setAttribute(G,W)}}function vt(G,W){return function(){this.setAttributeNS(G.space,G.local,W)}}function ft(G,W){return function(){var ht=W.apply(this,arguments);null==ht?this.removeAttribute(G):this.setAttribute(G,ht)}}function Nt(G,W){return function(){var ht=W.apply(this,arguments);null==ht?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,ht)}}var me=s(24476);function ge(G){return function(){delete this[G]}}function ve(G,W){return function(){this[G]=W}}function Fe(G,W){return function(){var ht=W.apply(this,arguments);null==ht?delete this[G]:this[G]=ht}}function De(G){return G.trim().split(/^|\s+/)}function fn(G){return G.classList||new Be(G)}function Be(G){this._node=G,this._names=De(G.getAttribute("class")||"")}function Cn(G,W){for(var ht=fn(G),E=-1,wt=W.length;++E=0&&(this._names.splice(W,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(G){return this._names.indexOf(G)>=0}};var Jn=s(7500);function Gt(){return null}function de(){var G=this.parentNode;G&&G.removeChild(this)}function Ue(){var G=this.cloneNode(!1),W=this.parentNode;return W?W.insertBefore(G,this.nextSibling):G}function Re(){var G=this.cloneNode(!0),W=this.parentNode;return W?W.insertBefore(G,this.nextSibling):G}function ti(G){return G.trim().split(/^|\s+/).map(function(W){var ht="",E=W.indexOf(".");return E>=0&&(ht=W.slice(E+1),W=W.slice(0,E)),{type:W,name:ht}})}function Ii(G){return function(){var W=this.__on;if(W){for(var Ot,ht=0,E=-1,wt=W.length;ht=oe&&(oe=N+1);!(Me=Dt[oe])&&++oe=0;)(Rt=E[wt])&&(Ot&&4^Rt.compareDocumentPosition(Ot)&&Ot.parentNode.insertBefore(Rt,Ot),Ot=Rt);return this},sort:function Y(G){function W(pt,Tt){return pt&&Tt?G(pt.__data__,Tt.__data__):!pt-!Tt}G||(G=K);for(var ht=this._groups,E=ht.length,wt=new Array(E),Ot=0;Ot1?this.each((null==W?ge:"function"==typeof W?Fe:ve)(G,W)):this.node()[G]},classed:function Yn(G,W){var ht=De(G+"");if(arguments.length<2){for(var E=fn(this.node()),wt=-1,Ot=ht.length;++wt{"use strict";s.d(k,{Z:()=>f,S:()=>t});var c=s(2442);function x(p){return function(){this.style.removeProperty(p)}}function v(p,l,h){return function(){this.style.setProperty(p,l,h)}}function _(p,l,h){return function(){var m=l.apply(this,arguments);null==m?this.style.removeProperty(p):this.style.setProperty(p,m,h)}}function f(p,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?_:v)(p,l,null==h?"":h)):t(this.node(),p)}function t(p,l){return p.style.getPropertyValue(l)||(0,c.Z)(p).getComputedStyle(p,null).getPropertyValue(l)}},29742:(w,k,s)=>{"use strict";function c(){}function x(v){return null==v?c:function(){return this.querySelector(v)}}s.d(k,{Z:()=>x})},32037:(w,k,s)=>{"use strict";function c(){return[]}function x(v){return null==v?c:function(){return this.querySelectorAll(v)}}s.d(k,{Z:()=>x})},75819:(w,k,s)=>{"use strict";function c(x){let v;for(;v=x.sourceEvent;)x=v;return x}s.d(k,{Z:()=>c})},2442:(w,k,s)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}s.d(k,{Z:()=>c})},73339:(w,k,s)=>{"use strict";s.d(k,{Z:()=>x});var c=s(49194);function x(v,_,f){var t=new c.B7;return t.restart(function(p){t.stop(),v(p+_)},_=null==_?0:+_,f),t}},49194:(w,k,s)=>{"use strict";s.d(k,{zO:()=>g,B7:()=>A,HT:()=>L,R8:()=>P});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(X){setTimeout(X,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function L(X,it,nt){var ut=new A;return ut.restart(X,it,nt),ut}function P(){g(),++c;for(var it,X=f;X;)(it=l-X._time)>=0&&X._call.call(null,it),X=X._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{P()}finally{c=0,function U(){for(var X,nt,it=f,ut=1/0;it;)it._call?(ut>it._time&&(ut=it._time),X=it,it=it._next):(nt=it._next,it._next=null,it=X?X._next=nt:f=nt);t=X,z(ut)}(),l=0}}function R(){var X=m.now(),it=X-p;it>1e3&&(h-=it,p=X)}function z(X){c||(x&&(x=clearTimeout(x)),X-l>24?(X<1/0&&(x=setTimeout(O,X-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=L.prototype={constructor:A,restart:function(X,it,nt){if("function"!=typeof X)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==it?0:+it),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=X,this._time=nt,z()},stop:function(){this._call&&(this._call=null,this._time=1/0,z())}}},60128:(w,k,s)=>{"use strict";s.r(k),s.d(k,{zoom:()=>We,zoomIdentity:()=>he,zoomTransform:()=>N});var c=s(25922),x=s(52016);function _(et){et.preventDefault(),et.stopImmediatePropagation()}function f(et){var gt=et.document.documentElement,mt=(0,x.Z)(et).on("dragstart.drag",_,!0);"onselectstart"in gt?mt.on("selectstart.drag",_,!0):(gt.__noselect=gt.style.MozUserSelect,gt.style.MozUserSelect="none")}function t(et,gt){var mt=et.document.documentElement,Et=(0,x.Z)(et).on("dragstart.drag",null);gt&&(Et.on("click.drag",_,!0),setTimeout(function(){Et.on("click.drag",null)},0)),"onselectstart"in mt?Et.on("selectstart.drag",null):(mt.style.MozUserSelect=mt.__noselect,delete mt.__noselect)}var p=Math.SQRT2;function u(et){return((et=Math.exp(et))+1/et)/2}function A(et,gt){var Pe,Le,mt=et[0],Et=et[1],zt=et[2],pe=gt[2],ye=gt[0]-mt,Xt=gt[1]-Et,le=ye*ye+Xt*Xt;if(le<1e-12)Le=Math.log(pe/zt)/p,Pe=function(Nn){return[mt+Nn*ye,Et+Nn*Xt,zt*Math.exp(p*Nn*Le)]};else{var He=Math.sqrt(le),Qn=(pe*pe-zt*zt+4*le)/(2*zt*2*He),On=(pe*pe-zt*zt-4*le)/(2*pe*2*He),Ln=Math.log(Math.sqrt(Qn*Qn+1)-Qn),Xe=Math.log(Math.sqrt(On*On+1)-On);Le=(Xe-Ln)/p,Pe=function(Nn){var qn=Nn*Le,un=u(Ln),on=zt/(2*He)*(un*function C(et){return((et=Math.exp(2*et))-1)/(et+1)}(p*qn+Ln)-function g(et){return((et=Math.exp(et))-1/et)/2}(Ln));return[mt+on*ye,Et+on*Xt,zt*un/u(p*qn+Ln)]}}return Pe.duration=1e3*Le,Pe}var L=s(29132),P=s(37853),O=s(49194),R=s(73339),U=(0,c.Z)("start","end","cancel","interrupt"),z=[];function st(et,gt,mt,Et,zt,ee){var Jt=et.__transition;if(Jt){if(mt in Jt)return}else et.__transition={};!function at(et,gt,mt){var zt,Et=et.__transition;function Jt(Xt){var le,Pe,Le,He;if(1!==mt.state)return ye();for(le in Et)if((He=Et[le]).name===mt.name){if(3===He.state)return(0,R.Z)(Jt);4===He.state?(He.state=6,He.timer.stop(),He.on.call("interrupt",et,et.__data__,He.index,He.group),delete Et[le]):+le0)throw new Error("too late; already scheduled");return mt}function K(et,gt){var mt=rt(et,gt);if(mt.state>3)throw new Error("too late; already running");return mt}function rt(et,gt){var mt=et.__transition;if(!mt||!(mt=mt[gt]))throw new Error("transition not found");return mt}function V(et,gt){var Et,zt,Jt,mt=et.__transition,ee=!0;if(mt){for(Jt in gt=null==gt?null:gt+"",mt)(Et=mt[Jt]).name===gt?(zt=Et.state>2&&Et.state<5,Et.state=6,Et.timer.stop(),Et.on.call(zt?"interrupt":"cancel",et,et.__data__,Et.index,Et.group),delete mt[Jt]):ee=!1;ee&&delete et.__transition}}var Ct=s(75349),Mt=s(36175);function Bt(et,gt){var mt,Et;return function(){var zt=K(this,et),ee=zt.tween;if(ee!==mt)for(var Jt=0,pe=(Et=mt=ee).length;Jt=0&&(gt=gt.slice(0,mt)),!gt||"start"===gt})}(gt)?Y:K;return function(){var Jt=ee(this,et),pe=Jt.on;pe!==Et&&(zt=(Et=pe).copy()).on(gt,mt),Jt.on=zt}}var xe=s(29742),Re=s(32037),Bn=P.ZP.prototype.constructor,ti=s(24476);function gn(et){return function(){this.style.removeProperty(et)}}function en(et,gt,mt){return function(Et){this.style.setProperty(et,gt.call(this,Et),mt)}}function ii(et,gt,mt){var Et,zt;function ee(){var Jt=gt.apply(this,arguments);return Jt!==zt&&(Et=(zt=Jt)&&en(et,Jt,mt)),Et}return ee._value=gt,ee}function pn(et){return function(gt){this.textContent=et.call(this,gt)}}function ln(et){var gt,mt;function Et(){var zt=et.apply(this,arguments);return zt!==mt&&(gt=(mt=zt)&&pn(zt)),gt}return Et._value=et,Et}var E=0;function wt(et,gt,mt,Et){this._groups=et,this._parents=gt,this._name=mt,this._id=Et}function Rt(){return++E}var Yt=P.ZP.prototype;wt.prototype=function Ot(et){return(0,P.ZP)().transition(et)}.prototype={constructor:wt,select:function Ue(et){var gt=this._name,mt=this._id;"function"!=typeof et&&(et=(0,xe.Z)(et));for(var Et=this._groups,zt=Et.length,ee=new Array(zt),Jt=0;Jt()=>et;function te(et,{sourceEvent:gt,target:mt,transform:Et,dispatch:zt}){Object.defineProperties(this,{type:{value:et,enumerable:!0,configurable:!0},sourceEvent:{value:gt,enumerable:!0,configurable:!0},target:{value:mt,enumerable:!0,configurable:!0},transform:{value:Et,enumerable:!0,configurable:!0},_:{value:zt}})}function Dt(et,gt,mt){this.k=et,this.x=gt,this.y=mt}Dt.prototype={constructor:Dt,scale:function(et){return 1===et?this:new Dt(this.k*et,this.x,this.y)},translate:function(et,gt){return 0===et&0===gt?this:new Dt(this.k,this.x+this.k*et,this.y+this.k*gt)},apply:function(et){return[et[0]*this.k+this.x,et[1]*this.k+this.y]},applyX:function(et){return et*this.k+this.x},applyY:function(et){return et*this.k+this.y},invert:function(et){return[(et[0]-this.x)/this.k,(et[1]-this.y)/this.k]},invertX:function(et){return(et-this.x)/this.k},invertY:function(et){return(et-this.y)/this.k},rescaleX:function(et){return et.copy().domain(et.range().map(this.invertX,this).map(et.invert,et))},rescaleY:function(et){return et.copy().domain(et.range().map(this.invertY,this).map(et.invert,et))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var he=new Dt(1,0,0);function N(et){for(;!et.__zoom;)if(!(et=et.parentNode))return he;return et.__zoom}function oe(et){et.stopImmediatePropagation()}function Ie(et){et.preventDefault(),et.stopImmediatePropagation()}function Me(et){return!(et.ctrlKey&&"wheel"!==et.type||et.button)}function sn(){var et=this;return et instanceof SVGElement?(et=et.ownerSVGElement||et).hasAttribute("viewBox")?[[(et=et.viewBox.baseVal).x,et.y],[et.x+et.width,et.y+et.height]]:[[0,0],[et.width.baseVal.value,et.height.baseVal.value]]:[[0,0],[et.clientWidth,et.clientHeight]]}function ze(){return this.__zoom||he}function Qe(et){return-et.deltaY*(1===et.deltaMode?.05:et.deltaMode?1:.002)*(et.ctrlKey?10:1)}function fe(){return navigator.maxTouchPoints||"ontouchstart"in this}function be(et,gt,mt){var Et=et.invertX(gt[0][0])-mt[0][0],zt=et.invertX(gt[1][0])-mt[1][0],ee=et.invertY(gt[0][1])-mt[0][1],Jt=et.invertY(gt[1][1])-mt[1][1];return et.translate(zt>Et?(Et+zt)/2:Math.min(0,Et)||Math.max(0,zt),Jt>ee?(ee+Jt)/2:Math.min(0,ee)||Math.max(0,Jt))}function We(){var le,Pe,Le,et=Me,gt=sn,mt=be,Et=Qe,zt=fe,ee=[0,1/0],Jt=[[-1/0,-1/0],[1/0,1/0]],pe=250,ye=A,Xt=(0,c.Z)("start","zoom","end"),On=0,Ln=10;function Xe(Pt){Pt.property("__zoom",ze).on("wheel.zoom",fi).on("mousedown.zoom",zi).on("dblclick.zoom",Kn).filter(zt).on("touchstart.zoom",Si).on("touchmove.zoom",_n).on("touchend.zoom touchcancel.zoom",Yi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Nn(Pt,Ce){return(Ce=Math.max(ee[0],Math.min(ee[1],Ce)))===Pt.k?Pt:new Dt(Ce,Pt.x,Pt.y)}function qn(Pt,Ce,jt){var T=Ce[0]-jt[0]*Pt.k,I=Ce[1]-jt[1]*Pt.k;return T===Pt.x&&I===Pt.y?Pt:new Dt(Pt.k,T,I)}function un(Pt){return[(+Pt[0][0]+ +Pt[1][0])/2,(+Pt[0][1]+ +Pt[1][1])/2]}function on(Pt,Ce,jt,T){Pt.on("start.zoom",function(){Un(this,arguments).event(T).start()}).on("interrupt.zoom end.zoom",function(){Un(this,arguments).event(T).end()}).tween("zoom",function(){var I=this,B=arguments,j=Un(I,B).event(T),ct=gt.apply(I,B),xt=null==jt?un(ct):"function"==typeof jt?jt.apply(I,B):jt,kt=Math.max(ct[1][0]-ct[0][0],ct[1][1]-ct[0][1]),Ft=I.__zoom,ae="function"==typeof Ce?Ce.apply(I,B):Ce,Ee=ye(Ft.invert(xt).concat(kt/Ft.k),ae.invert(xt).concat(kt/ae.k));return function(Ge){if(1===Ge)Ge=ae;else{var tn=Ee(Ge),Ne=kt/tn[2];Ge=new Dt(Ne,xt[0]-tn[0]*Ne,xt[1]-tn[1]*Ne)}j.zoom(null,Ge)}})}function Un(Pt,Ce,jt){return!jt&&Pt.__zooming||new Vi(Pt,Ce)}function Vi(Pt,Ce){this.that=Pt,this.args=Ce,this.active=0,this.sourceEvent=null,this.extent=gt.apply(Pt,Ce),this.taps=0}function fi(Pt,...Ce){if(et.apply(this,arguments)){var jt=Un(this,Ce).event(Pt),T=this.__zoom,I=Math.max(ee[0],Math.min(ee[1],T.k*Math.pow(2,Et.apply(this,arguments)))),B=(0,L.Z)(Pt);if(jt.wheel)(jt.mouse[0][0]!==B[0]||jt.mouse[0][1]!==B[1])&&(jt.mouse[1]=T.invert(jt.mouse[0]=B)),clearTimeout(jt.wheel);else{if(T.k===I)return;jt.mouse=[B,T.invert(B)],V(this),jt.start()}Ie(Pt),jt.wheel=setTimeout(j,150),jt.zoom("mouse",mt(qn(Nn(T,I),jt.mouse[0],jt.mouse[1]),jt.extent,Jt))}function j(){jt.wheel=null,jt.end()}}function zi(Pt,...Ce){if(!Le&&et.apply(this,arguments)){var jt=Un(this,Ce,!0).event(Pt),T=(0,x.Z)(Pt.view).on("mousemove.zoom",xt,!0).on("mouseup.zoom",kt,!0),I=(0,L.Z)(Pt,B),B=Pt.currentTarget,j=Pt.clientX,ct=Pt.clientY;f(Pt.view),oe(Pt),jt.mouse=[I,this.__zoom.invert(I)],V(this),jt.start()}function xt(Ft){if(Ie(Ft),!jt.moved){var ae=Ft.clientX-j,Ee=Ft.clientY-ct;jt.moved=ae*ae+Ee*Ee>On}jt.event(Ft).zoom("mouse",mt(qn(jt.that.__zoom,jt.mouse[0]=(0,L.Z)(Ft,B),jt.mouse[1]),jt.extent,Jt))}function kt(Ft){T.on("mousemove.zoom mouseup.zoom",null),t(Ft.view,jt.moved),Ie(Ft),jt.event(Ft).end()}}function Kn(Pt,...Ce){if(et.apply(this,arguments)){var jt=this.__zoom,T=(0,L.Z)(Pt.changedTouches?Pt.changedTouches[0]:Pt,this),I=jt.invert(T),B=jt.k*(Pt.shiftKey?.5:2),j=mt(qn(Nn(jt,B),T,I),gt.apply(this,Ce),Jt);Ie(Pt),pe>0?(0,x.Z)(this).transition().duration(pe).call(on,j,T,Pt):(0,x.Z)(this).call(Xe.transform,j,T,Pt)}}function Si(Pt,...Ce){if(et.apply(this,arguments)){var B,j,ct,xt,jt=Pt.touches,T=jt.length,I=Un(this,Ce,Pt.changedTouches.length===T).event(Pt);for(oe(Pt),j=0;j{w.exports={graphlib:s(36456),layout:s(14850),debug:s(71914),util:{time:s(11510).time,notime:s(11510).notime},version:s(28126)}},12234:(w,k,s)=>{"use strict";var c=s(45760),x=s(67365);w.exports={run:function v(t){var p="greedy"===t.graph().acyclicer?x(t,function l(h){return function(m){return h.edge(m).weight}}(t)):function _(t){var p=[],l={},h={};return c.forEach(t.nodes(),function m(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?p.push(g):m(g.w)}),delete l[u])}),p}(t);c.forEach(p,function(h){var m=t.edge(h);t.removeEdge(h),m.forwardName=h.name,m.reversed=!0,t.setEdge(h.w,h.v,m,c.uniqueId("rev"))})},undo:function f(t){c.forEach(t.edges(),function(p){var l=t.edge(p);if(l.reversed){t.removeEdge(p);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(p.w,p.v,l,h)}})}}},79999:(w,k,s)=>{var c=s(45760),x=s(11510);function _(f,t,p,l,h,m){var g=h[t][m-1],C=x.addDummyNode(f,"border",{width:0,height:0,rank:m,borderType:t},p);h[t][m]=C,f.setParent(C,l),g&&f.setEdge(g,C,{weight:1})}w.exports=function v(f){c.forEach(f.children(),function t(p){var l=f.children(p),h=f.node(p);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var m=h.minRank,u=h.maxRank+1;m{"use strict";var c=s(45760);function _(m){c.forEach(m.nodes(),function(u){f(m.node(u))}),c.forEach(m.edges(),function(u){f(m.edge(u))})}function f(m){var u=m.width;m.width=m.height,m.height=u}function p(m){m.y=-m.y}function h(m){var u=m.x;m.x=m.y,m.y=u}w.exports={adjust:function x(m){var u=m.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&_(m)},undo:function v(m){var u=m.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(m){c.forEach(m.nodes(),function(u){p(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,p),c.has(g,"y")&&p(g)})}(m),("lr"===u||"rl"===u)&&(function l(m){c.forEach(m.nodes(),function(u){h(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(m),_(m))}}},3226:w=>{function k(){var x={};x._next=x._prev=x,this._sentinel=x}function s(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,v){if("_next"!==x&&"_prev"!==x)return v}w.exports=k,k.prototype.dequeue=function(){var x=this._sentinel,v=x._prev;if(v!==x)return s(v),v},k.prototype.enqueue=function(x){var v=this._sentinel;x._prev&&x._next&&s(x),x._next=v._next,v._next._prev=x,v._next=x,x._prev=v},k.prototype.toString=function(){for(var x=[],v=this._sentinel,_=v._prev;_!==v;)x.push(JSON.stringify(_,c)),_=_._prev;return"["+x.join(", ")+"]"}},71914:(w,k,s)=>{var c=s(45760),x=s(11510),v=s(36456).Graph;w.exports={debugOrdering:function _(f){var t=x.buildLayerMatrix(f),p=new v({compound:!0,multigraph:!0}).setGraph({});return c.forEach(f.nodes(),function(l){p.setNode(l,{label:l}),p.setParent(l,"layer"+f.node(l).rank)}),c.forEach(f.edges(),function(l){p.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){p.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return p.setEdge(u,g,{style:"invis"}),g})}),p}}},36456:(w,k,s)=>{var c;try{c=s(85510)}catch(x){}c||(c=window.graphlib),w.exports=c},67365:(w,k,s)=>{var c=s(45760),x=s(36456).Graph,v=s(3226);w.exports=function f(m,u){if(m.nodeCount()<=1)return[];var g=function l(m,u){var g=new x,C=0,A=0;c.forEach(m.nodes(),function(O){g.setNode(O,{v:O,in:0,out:0})}),c.forEach(m.edges(),function(O){var R=g.edge(O.v,O.w)||0,U=u(O);g.setEdge(O.v,O.w,R+U),A=Math.max(A,g.node(O.v).out+=U),C=Math.max(C,g.node(O.w).in+=U)});var L=c.range(A+C+3).map(function(){return new v}),P=C+1;return c.forEach(g.nodes(),function(O){h(L,P,g.node(O))}),{graph:g,buckets:L,zeroIdx:P}}(m,u||_),C=function t(m,u,g){for(var P,C=[],A=u[u.length-1],L=u[0];m.nodeCount();){for(;P=L.dequeue();)p(m,u,g,P);for(;P=A.dequeue();)p(m,u,g,P);if(m.nodeCount())for(var O=u.length-2;O>0;--O)if(P=u[O].dequeue()){C=C.concat(p(m,u,g,P,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(A){return m.outEdges(A.v,A.w)}),!0)};var _=c.constant(1);function p(m,u,g,C,A){var L=A?[]:void 0;return c.forEach(m.inEdges(C.v),function(P){var O=m.edge(P),R=m.node(P.v);A&&L.push({v:P.v,w:P.w}),R.out-=O,h(u,g,R)}),c.forEach(m.outEdges(C.v),function(P){var O=m.edge(P),U=m.node(P.w);U.in-=O,h(u,g,U)}),m.removeNode(C.v),L}function h(m,u,g){g.out?g.in?m[g.out-g.in+u].enqueue(g):m[m.length-1].enqueue(g):m[0].enqueue(g)}},14850:(w,k,s)=>{"use strict";var c=s(45760),x=s(12234),v=s(91496),_=s(94124),f=s(11510).normalizeRanks,t=s(60162),p=s(11510).removeEmptyRanks,l=s(1230),h=s(79999),m=s(83870),u=s(32974),g=s(78226),C=s(11510),A=s(36456).Graph;w.exports=function L(vt,ft){var Nt=ft&&ft.debugTiming?C.time:C.notime;Nt("layout",function(){var Qt=Nt(" buildLayoutGraph",function(){return function tt(vt){var ft=new A({multigraph:!0,compound:!0}),Nt=Ut(vt.graph());return ft.setGraph(c.merge({},U,ie(Nt,R),c.pick(Nt,z))),c.forEach(vt.nodes(),function(Qt){var me=Ut(vt.node(Qt));ft.setNode(Qt,c.defaults(ie(me,X),it)),ft.setParent(Qt,vt.parent(Qt))}),c.forEach(vt.edges(),function(Qt){var me=Ut(vt.edge(Qt));ft.setEdge(Qt,c.merge({},ut,ie(me,nt),c.pick(me,J)))}),ft}(vt)});Nt(" runLayout",function(){!function P(vt,ft){ft(" makeSpaceForEdgeLabels",function(){!function $(vt){var ft=vt.graph();ft.ranksep/=2,c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt);Qt.minlen*=2,"c"!==Qt.labelpos.toLowerCase()&&("TB"===ft.rankdir||"BT"===ft.rankdir?Qt.width+=Qt.labeloffset:Qt.height+=Qt.labeloffset)})}(vt)}),ft(" removeSelfEdges",function(){!function Mt(vt){c.forEach(vt.edges(),function(ft){if(ft.v===ft.w){var Nt=vt.node(ft.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:ft,label:vt.edge(ft)}),vt.removeEdge(ft)}})}(vt)}),ft(" acyclic",function(){x.run(vt)}),ft(" nestingGraph.run",function(){l.run(vt)}),ft(" rank",function(){_(C.asNonCompoundGraph(vt))}),ft(" injectEdgeLabelProxies",function(){!function st(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(Nt.width&&Nt.height){var Qt=vt.node(ft.v),me=vt.node(ft.w);C.addDummyNode(vt,"edge-proxy",{rank:(me.rank-Qt.rank)/2+Qt.rank,e:ft},"_ep")}})}(vt)}),ft(" removeEmptyRanks",function(){p(vt)}),ft(" nestingGraph.cleanup",function(){l.cleanup(vt)}),ft(" normalizeRanks",function(){f(vt)}),ft(" assignRankMinMax",function(){!function Y(vt){var ft=0;c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt);Qt.borderTop&&(Qt.minRank=vt.node(Qt.borderTop).rank,Qt.maxRank=vt.node(Qt.borderBottom).rank,ft=c.max(ft,Qt.maxRank))}),vt.graph().maxRank=ft}(vt)}),ft(" removeEdgeLabelProxies",function(){!function K(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);"edge-proxy"===Nt.dummy&&(vt.edge(Nt.e).labelRank=Nt.rank,vt.removeNode(ft))})}(vt)}),ft(" normalize.run",function(){v.run(vt)}),ft(" parentDummyChains",function(){t(vt)}),ft(" addBorderSegments",function(){h(vt)}),ft(" order",function(){u(vt)}),ft(" insertSelfEdges",function(){!function Bt(vt){var ft=C.buildLayerMatrix(vt);c.forEach(ft,function(Nt){var Qt=0;c.forEach(Nt,function(me,ge){var ve=vt.node(me);ve.order=ge+Qt,c.forEach(ve.selfEdges,function(Fe){C.addDummyNode(vt,"selfedge",{width:Fe.label.width,height:Fe.label.height,rank:ve.rank,order:ge+ ++Qt,e:Fe.e,label:Fe.label},"_se")}),delete ve.selfEdges})})}(vt)}),ft(" adjustCoordinateSystem",function(){m.adjust(vt)}),ft(" position",function(){g(vt)}),ft(" positionSelfEdges",function(){!function Ht(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);if("selfedge"===Nt.dummy){var Qt=vt.node(Nt.e.v),me=Qt.x+Qt.width/2,ge=Qt.y,ve=Nt.x-me,Fe=Qt.height/2;vt.setEdge(Nt.e,Nt.label),vt.removeNode(ft),Nt.label.points=[{x:me+2*ve/3,y:ge-Fe},{x:me+5*ve/6,y:ge-Fe},{x:me+ve,y:ge},{x:me+5*ve/6,y:ge+Fe},{x:me+2*ve/3,y:ge+Fe}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(vt)}),ft(" removeBorderNodes",function(){!function Ct(vt){c.forEach(vt.nodes(),function(ft){if(vt.children(ft).length){var Nt=vt.node(ft),Qt=vt.node(Nt.borderTop),me=vt.node(Nt.borderBottom),ge=vt.node(c.last(Nt.borderLeft)),ve=vt.node(c.last(Nt.borderRight));Nt.width=Math.abs(ve.x-ge.x),Nt.height=Math.abs(me.y-Qt.y),Nt.x=ge.x+Nt.width/2,Nt.y=Qt.y+Nt.height/2}}),c.forEach(vt.nodes(),function(ft){"border"===vt.node(ft).dummy&&vt.removeNode(ft)})}(vt)}),ft(" normalize.undo",function(){v.undo(vt)}),ft(" fixupEdgeLabelCoords",function(){!function V(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(vt)}),ft(" undoCoordinateSystem",function(){m.undo(vt)}),ft(" translateGraph",function(){!function rt(vt){var ft=Number.POSITIVE_INFINITY,Nt=0,Qt=Number.POSITIVE_INFINITY,me=0,ge=vt.graph(),ve=ge.marginx||0,Fe=ge.marginy||0;function qe(De){var fn=De.x,Be=De.y,Cn=De.width,ke=De.height;ft=Math.min(ft,fn-Cn/2),Nt=Math.max(Nt,fn+Cn/2),Qt=Math.min(Qt,Be-ke/2),me=Math.max(me,Be+ke/2)}c.forEach(vt.nodes(),function(De){qe(vt.node(De))}),c.forEach(vt.edges(),function(De){var fn=vt.edge(De);c.has(fn,"x")&&qe(fn)}),ft-=ve,Qt-=Fe,c.forEach(vt.nodes(),function(De){var fn=vt.node(De);fn.x-=ft,fn.y-=Qt}),c.forEach(vt.edges(),function(De){var fn=vt.edge(De);c.forEach(fn.points,function(Be){Be.x-=ft,Be.y-=Qt}),c.has(fn,"x")&&(fn.x-=ft),c.has(fn,"y")&&(fn.y-=Qt)}),ge.width=Nt-ft+ve,ge.height=me-Qt+Fe}(vt)}),ft(" assignNodeIntersects",function(){!function at(vt){c.forEach(vt.edges(),function(ft){var ge,ve,Nt=vt.edge(ft),Qt=vt.node(ft.v),me=vt.node(ft.w);Nt.points?(ge=Nt.points[0],ve=Nt.points[Nt.points.length-1]):(Nt.points=[],ge=me,ve=Qt),Nt.points.unshift(C.intersectRect(Qt,ge)),Nt.points.push(C.intersectRect(me,ve))})}(vt)}),ft(" reversePoints",function(){!function M(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);Nt.reversed&&Nt.points.reverse()})}(vt)}),ft(" acyclic.undo",function(){x.undo(vt)})}(Qt,Nt)}),Nt(" updateInputGraph",function(){!function O(vt,ft){c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt),me=ft.node(Nt);Qt&&(Qt.x=me.x,Qt.y=me.y,ft.children(Nt).length&&(Qt.width=me.width,Qt.height=me.height))}),c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt),me=ft.edge(Nt);Qt.points=me.points,c.has(me,"x")&&(Qt.x=me.x,Qt.y=me.y)}),vt.graph().width=ft.graph().width,vt.graph().height=ft.graph().height}(vt,Qt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],U={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},z=["acyclicer","ranker","rankdir","align"],X=["width","height"],it={width:0,height:0},nt=["minlen","weight","width","height","labeloffset"],ut={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},J=["labelpos"];function ie(vt,ft){return c.mapValues(c.pick(vt,ft),Number)}function Ut(vt){var ft={};return c.forEach(vt,function(Nt,Qt){ft[Qt.toLowerCase()]=Nt}),ft}},45760:(w,k,s)=>{var c;try{c={cloneDeep:s(90733),constant:s(76684),defaults:s(28800),each:s(35474),filter:s(35281),find:s(62516),flatten:s(22274),forEach:s(89851),forIn:s(41176),has:s(54842),isUndefined:s(34235),last:s(25809),map:s(19984),mapValues:s(10203),max:s(18176),merge:s(80567),min:s(29439),minBy:s(29525),now:s(31710),pick:s(16372),range:s(90361),reduce:s(81337),sortBy:s(12906),uniqueId:s(51541),values:s(90377),zipObject:s(21617)}}catch(x){}c||(c=window._),w.exports=c},1230:(w,k,s)=>{var c=s(45760),x=s(11510);function _(l,h,m,u,g,C,A){var L=l.children(A);if(L.length){var P=x.addBorderNode(l,"_bt"),O=x.addBorderNode(l,"_bb"),R=l.node(A);l.setParent(P,A),R.borderTop=P,l.setParent(O,A),R.borderBottom=O,c.forEach(L,function(U){_(l,h,m,u,g,C,U);var z=l.node(U),X=z.borderTop?z.borderTop:U,it=z.borderBottom?z.borderBottom:U,nt=z.borderTop?u:2*u,ut=X!==it?1:g-C[A]+1;l.setEdge(P,X,{weight:nt,minlen:ut,nestingEdge:!0}),l.setEdge(it,O,{weight:nt,minlen:ut,nestingEdge:!0})}),l.parent(A)||l.setEdge(h,P,{weight:0,minlen:g+C[A]})}else A!==h&&l.setEdge(h,A,{weight:0,minlen:m})}w.exports={run:function v(l){var h=x.addDummyNode(l,"root",{},"_root"),m=function f(l){var h={};function m(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(A){m(A,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){m(u,1)}),h}(l),u=c.max(c.values(m))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(A){l.edge(A).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,m){return h+l.edge(m).weight},0)}(l)+1;c.forEach(l.children(),function(A){_(l,h,g,C,u,m,A)}),l.graph().nodeRankFactor=g},cleanup:function p(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(m){l.edge(m).nestingEdge&&l.removeEdge(m)})}}},91496:(w,k,s)=>{"use strict";var c=s(45760),x=s(11510);w.exports={run:function v(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(p){!function _(t,p){var l=p.v,h=t.node(l).rank,m=p.w,u=t.node(m).rank,g=p.name,C=t.edge(p),A=C.labelRank;if(u!==h+1){var L,P,O;for(t.removeEdge(p),O=0,++h;h{var c=s(45760);w.exports=function x(v,_,f){var p,t={};c.forEach(f,function(l){for(var m,u,h=v.parent(l);h;){if((m=v.parent(h))?(u=t[m],t[m]=h):(u=p,p=h),u&&u!==h)return void _.setEdge(u,h);h=m}})}},81323:(w,k,s)=>{var c=s(45760);w.exports=function x(v,_){return c.map(_,function(f){var t=v.inEdges(f);if(t.length){var p=c.reduce(t,function(l,h){var m=v.edge(h),u=v.node(h.v);return{sum:l.sum+m.weight*u.order,weight:l.weight+m.weight}},{sum:0,weight:0});return{v:f,barycenter:p.sum/p.weight,weight:p.weight}}return{v:f}})}},1686:(w,k,s)=>{var c=s(45760),x=s(36456).Graph;w.exports=function v(f,t,p){var l=function _(f){for(var t;f.hasNode(t=c.uniqueId("_root")););return t}(f),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(m){return f.node(m)});return c.forEach(f.nodes(),function(m){var u=f.node(m),g=f.parent(m);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(m),h.setParent(m,g||l),c.forEach(f[p](m),function(C){var A=C.v===m?C.w:C.v,L=h.edge(A,m),P=c.isUndefined(L)?0:L.weight;h.setEdge(A,m,{weight:f.edge(C).weight+P})}),c.has(u,"minRank")&&h.setNode(m,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,k,s)=>{"use strict";var c=s(45760);function v(_,f,t){for(var p=c.zipObject(t,c.map(t,function(C,A){return A})),l=c.flatten(c.map(f,function(C){return c.sortBy(c.map(_.outEdges(C),function(A){return{pos:p[A.w],weight:_.edge(A).weight}}),"pos")}),!0),h=1;h0;)A%2&&(L+=u[A+1]),u[A=A-1>>1]+=C.weight;g+=C.weight*L})),g}w.exports=function x(_,f){for(var t=0,p=1;p{"use strict";var c=s(45760),x=s(49402),v=s(18796),_=s(61057),f=s(1686),t=s(33034),p=s(36456).Graph,l=s(11510);function m(C,A,L){return c.map(A,function(P){return f(C,P,L)})}function u(C,A){var L=new p;c.forEach(C,function(P){var O=P.graph().root,R=_(P,O,L,A);c.forEach(R.vs,function(U,z){P.node(U).order=z}),t(P,L,R.vs)})}function g(C,A){c.forEach(A,function(L){c.forEach(L,function(P,O){C.node(P).order=O})})}w.exports=function h(C){var A=l.maxRank(C),L=m(C,c.range(1,A+1),"inEdges"),P=m(C,c.range(A-1,-1,-1),"outEdges"),O=x(C);g(C,O);for(var U,R=Number.POSITIVE_INFINITY,z=0,X=0;X<4;++z,++X){u(z%2?L:P,z%4>=2),O=l.buildLayerMatrix(C);var it=v(C,O);it{"use strict";var c=s(45760);w.exports=function x(v){var _={},f=c.filter(v.nodes(),function(m){return!v.children(m).length}),t=c.max(c.map(f,function(m){return v.node(m).rank})),p=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(f,function(m){return v.node(m).rank});return c.forEach(h,function l(m){if(!c.has(_,m)){_[m]=!0;var u=v.node(m);p[u.rank].push(m),c.forEach(v.successors(m),l)}}),p}},83826:(w,k,s)=>{"use strict";var c=s(45760);w.exports=function x(f,t){var p={};return c.forEach(f,function(h,m){var u=p[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:m};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var m=p[h.v],u=p[h.w];!c.isUndefined(m)&&!c.isUndefined(u)&&(u.indegree++,m.out.push(p[h.w]))}),function v(f){var t=[];function p(m){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(m.barycenter)||u.barycenter>=m.barycenter)&&function _(f,t){var p=0,l=0;f.weight&&(p+=f.barycenter*f.weight,l+=f.weight),t.weight&&(p+=t.barycenter*t.weight,l+=t.weight),f.vs=t.vs.concat(f.vs),f.barycenter=p/l,f.weight=l,f.i=Math.min(t.i,f.i),t.merged=!0}(m,u)}}function l(m){return function(u){u.in.push(m),0==--u.indegree&&f.push(u)}}for(;f.length;){var h=f.pop();t.push(h),c.forEach(h.in.reverse(),p(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(m){return!m.merged}),function(m){return c.pick(m,["vs","i","barycenter","weight"])})}(c.filter(p,function(h){return!h.indegree}))}},61057:(w,k,s)=>{var c=s(45760),x=s(81323),v=s(83826),_=s(93803);w.exports=function f(l,h,m,u){var g=l.children(h),C=l.node(h),A=C?C.borderLeft:void 0,L=C?C.borderRight:void 0,P={};A&&(g=c.filter(g,function(it){return it!==A&&it!==L}));var O=x(l,g);c.forEach(O,function(it){if(l.children(it.v).length){var nt=f(l,it.v,m,u);P[it.v]=nt,c.has(nt,"barycenter")&&function p(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(it,nt)}});var R=v(O,m);!function t(l,h){c.forEach(l,function(m){m.vs=c.flatten(m.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,P);var U=_(R,u);if(A&&(U.vs=c.flatten([A,U.vs,L],!0),l.predecessors(A).length)){var z=l.node(l.predecessors(A)[0]),X=l.node(l.predecessors(L)[0]);c.has(U,"barycenter")||(U.barycenter=0,U.weight=0),U.barycenter=(U.barycenter*U.weight+z.order+X.order)/(U.weight+2),U.weight+=2}return U}},93803:(w,k,s)=>{var c=s(45760),x=s(11510);function _(t,p,l){for(var h;p.length&&(h=c.last(p)).i<=l;)p.pop(),t.push(h.vs),l++;return l}w.exports=function v(t,p){var l=x.partition(t,function(P){return c.has(P,"barycenter")}),h=l.lhs,m=c.sortBy(l.rhs,function(P){return-P.i}),u=[],g=0,C=0,A=0;h.sort(function f(t){return function(p,l){return p.barycenterl.barycenter?1:t?l.i-p.i:p.i-l.i}}(!!p)),A=_(u,m,A),c.forEach(h,function(P){A+=P.vs.length,u.push(P.vs),g+=P.barycenter*P.weight,C+=P.weight,A=_(u,m,A)});var L={vs:c.flatten(u,!0)};return C&&(L.barycenter=g/C,L.weight=C),L}},60162:(w,k,s)=>{var c=s(45760);w.exports=function x(f){var t=function _(f){var t={},p=0;return c.forEach(f.children(),function l(h){var m=p;c.forEach(f.children(h),l),t[h]={low:m,lim:p++}}),t}(f);c.forEach(f.graph().dummyChains,function(p){for(var l=f.node(p),h=l.edgeObj,m=function v(f,t,p,l){var C,A,h=[],m=[],u=Math.min(t[p].low,t[l].low),g=Math.max(t[p].lim,t[l].lim);C=p;do{C=f.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(A=C,C=l;(C=f.parent(C))!==A;)m.push(C);return{path:h.concat(m.reverse()),lca:A}}(f,t,h.v,h.w),u=m.path,g=m.lca,C=0,A=u[C],L=!0;p!==h.w;){if(l=f.node(p),L){for(;(A=u[C])!==g&&f.node(A).maxRank{"use strict";var c=s(45760),x=s(36456).Graph,v=s(11510);function _(R,U){var z={};return c.reduce(U,function X(it,nt){var ut=0,J=0,tt=it.length,$=c.last(nt);return c.forEach(nt,function(st,Y){var K=function t(R,U){if(R.node(U).dummy)return c.find(R.predecessors(U),function(z){return R.node(z).dummy})}(R,st),rt=K?R.node(K).order:tt;(K||st===$)&&(c.forEach(nt.slice(J,Y+1),function(at){c.forEach(R.predecessors(at),function(V){var M=R.node(V),Ct=M.order;(Ct$)&&p(z,K,st)})})}return c.reduce(U,function it(nt,ut){var tt,J=-1,$=0;return c.forEach(ut,function(st,Y){if("border"===R.node(st).dummy){var K=R.predecessors(st);K.length&&(tt=R.node(K[0]).order,X(ut,$,Y,J,tt),$=Y,J=tt)}X(ut,$,ut.length,tt,nt.length)}),ut}),z}function p(R,U,z){if(U>z){var X=U;U=z,z=X}var it=R[U];it||(R[U]=it={}),it[z]=!0}function l(R,U,z){if(U>z){var X=U;U=z,z=X}return c.has(R[U],z)}function h(R,U,z,X){var it={},nt={},ut={};return c.forEach(U,function(J){c.forEach(J,function(tt,$){it[tt]=tt,nt[tt]=tt,ut[tt]=$})}),c.forEach(U,function(J){var tt=-1;c.forEach(J,function($){var st=X($);if(st.length)for(var Y=((st=c.sortBy(st,function(V){return ut[V]})).length-1)/2,K=Math.floor(Y),rt=Math.ceil(Y);K<=rt;++K){var at=st[K];nt[$]===$&&tt{"use strict";var c=s(45760),x=s(11510),v=s(54058).positionX;w.exports=function _(t){(function f(t){var p=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(p,function(m){var u=c.max(c.map(m,function(g){return t.node(g).height}));c.forEach(m,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(v(t),function(p,l){t.node(l).x=p})}},96632:(w,k,s)=>{"use strict";var c=s(45760),x=s(36456).Graph,v=s(1916).slack;function f(l,h){return c.forEach(l.nodes(),function m(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,A=u===C?g.w:C;!l.hasNode(A)&&!v(h,g)&&(l.setNode(A,{}),l.setEdge(u,A,{}),m(A))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(m){if(l.hasNode(m.v)!==l.hasNode(m.w))return v(h,m)})}function p(l,h,m){c.forEach(l.nodes(),function(u){h.node(u).rank+=m})}w.exports=function _(l){var g,C,h=new x({directed:!1}),m=l.nodes()[0],u=l.nodeCount();for(h.setNode(m,{});f(h,l){"use strict";var x=s(1916).longestPath,v=s(96632),_=s(63804);w.exports=function f(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){_(h)}(h);break;case"tight-tree":!function p(h){x(h),v(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,k,s)=>{"use strict";var c=s(45760),x=s(96632),v=s(1916).slack,_=s(1916).longestPath,f=s(36456).alg.preorder,t=s(36456).alg.postorder,p=s(11510).simplify;function l(z){z=p(z),_(z);var it,X=x(z);for(g(X),h(X,z);it=A(X);)P(X,z,it,L(X,z,it))}function h(z,X){var it=t(z,z.nodes());it=it.slice(0,it.length-1),c.forEach(it,function(nt){!function m(z,X,it){var nt=z.node(it);z.edge(it,nt.parent).cutvalue=u(z,X,it)}(z,X,nt)})}function u(z,X,it){var ut=z.node(it).parent,J=!0,tt=X.edge(it,ut),$=0;return tt||(J=!1,tt=X.edge(ut,it)),$=tt.weight,c.forEach(X.nodeEdges(it),function(st){var Y=st.v===it,K=Y?st.w:st.v;if(K!==ut){var rt=Y===J,at=X.edge(st).weight;if($+=rt?at:-at,function R(z,X,it){return z.hasEdge(X,it)}(z,it,K)){var V=z.edge(it,K).cutvalue;$+=rt?-V:V}}}),$}function g(z,X){arguments.length<2&&(X=z.nodes()[0]),C(z,{},1,X)}function C(z,X,it,nt,ut){var J=it,tt=z.node(nt);return X[nt]=!0,c.forEach(z.neighbors(nt),function($){c.has(X,$)||(it=C(z,X,it,$,nt))}),tt.low=J,tt.lim=it++,ut?tt.parent=ut:delete tt.parent,it}function A(z){return c.find(z.edges(),function(X){return z.edge(X).cutvalue<0})}function L(z,X,it){var nt=it.v,ut=it.w;X.hasEdge(nt,ut)||(nt=it.w,ut=it.v);var J=z.node(nt),tt=z.node(ut),$=J,st=!1;J.lim>tt.lim&&($=tt,st=!0);var Y=c.filter(X.edges(),function(K){return st===U(0,z.node(K.v),$)&&st!==U(0,z.node(K.w),$)});return c.minBy(Y,function(K){return v(X,K)})}function P(z,X,it,nt){z.removeEdge(it.v,it.w),z.setEdge(nt.v,nt.w,{}),g(z),h(z,X),function O(z,X){var it=c.find(z.nodes(),function(ut){return!X.node(ut).parent}),nt=f(z,it);nt=nt.slice(1),c.forEach(nt,function(ut){var J=z.node(ut).parent,tt=X.edge(ut,J),$=!1;tt||(tt=X.edge(J,ut),$=!0),X.node(ut).rank=X.node(J).rank+($?tt.minlen:-tt.minlen)})}(z,X)}function U(z,X,it){return it.low<=X.lim&&X.lim<=it.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=A,l.enterEdge=L,l.exchangeEdges=P},1916:(w,k,s)=>{"use strict";var c=s(45760);w.exports={longestPath:function x(_){var f={};c.forEach(_.sources(),function t(p){var l=_.node(p);if(c.has(f,p))return l.rank;f[p]=!0;var h=c.min(c.map(_.outEdges(p),function(m){return t(m.w)-_.edge(m).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function v(_,f){return _.node(f.w).rank-_.node(f.v).rank-_.edge(f).minlen}}},11510:(w,k,s)=>{"use strict";var c=s(45760),x=s(36456).Graph;function v(O,R,U,z){var X;do{X=c.uniqueId(z)}while(O.hasNode(X));return U.dummy=R,O.setNode(X,U),X}function C(O){return c.max(c.map(O.nodes(),function(R){var U=O.node(R).rank;if(!c.isUndefined(U))return U}))}w.exports={addDummyNode:v,simplify:function _(O){var R=(new x).setGraph(O.graph());return c.forEach(O.nodes(),function(U){R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){var z=R.edge(U.v,U.w)||{weight:0,minlen:1},X=O.edge(U);R.setEdge(U.v,U.w,{weight:z.weight+X.weight,minlen:Math.max(z.minlen,X.minlen)})}),R},asNonCompoundGraph:function f(O){var R=new x({multigraph:O.isMultigraph()}).setGraph(O.graph());return c.forEach(O.nodes(),function(U){O.children(U).length||R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){R.setEdge(U,O.edge(U))}),R},successorWeights:function t(O){var R=c.map(O.nodes(),function(U){var z={};return c.forEach(O.outEdges(U),function(X){z[X.w]=(z[X.w]||0)+O.edge(X).weight}),z});return c.zipObject(O.nodes(),R)},predecessorWeights:function p(O){var R=c.map(O.nodes(),function(U){var z={};return c.forEach(O.inEdges(U),function(X){z[X.v]=(z[X.v]||0)+O.edge(X).weight}),z});return c.zipObject(O.nodes(),R)},intersectRect:function l(O,R){var J,tt,U=O.x,z=O.y,X=R.x-U,it=R.y-z,nt=O.width/2,ut=O.height/2;if(!X&&!it)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(it)*nt>Math.abs(X)*ut?(it<0&&(ut=-ut),J=ut*X/it,tt=ut):(X<0&&(nt=-nt),J=nt,tt=nt*it/X),{x:U+J,y:z+tt}},buildLayerMatrix:function h(O){var R=c.map(c.range(C(O)+1),function(){return[]});return c.forEach(O.nodes(),function(U){var z=O.node(U),X=z.rank;c.isUndefined(X)||(R[X][z.order]=U)}),R},normalizeRanks:function m(O){var R=c.min(c.map(O.nodes(),function(U){return O.node(U).rank}));c.forEach(O.nodes(),function(U){var z=O.node(U);c.has(z,"rank")&&(z.rank-=R)})},removeEmptyRanks:function u(O){var R=c.min(c.map(O.nodes(),function(it){return O.node(it).rank})),U=[];c.forEach(O.nodes(),function(it){var nt=O.node(it).rank-R;U[nt]||(U[nt]=[]),U[nt].push(it)});var z=0,X=O.graph().nodeRankFactor;c.forEach(U,function(it,nt){c.isUndefined(it)&&nt%X!=0?--z:z&&c.forEach(it,function(ut){O.node(ut).rank+=z})})},addBorderNode:function g(O,R,U,z){var X={width:0,height:0};return arguments.length>=4&&(X.rank=U,X.order=z),v(O,"border",X,R)},maxRank:C,partition:function A(O,R){var U={lhs:[],rhs:[]};return c.forEach(O,function(z){R(z)?U.lhs.push(z):U.rhs.push(z)}),U},time:function L(O,R){var U=c.now();try{return R()}finally{console.log(O+" time: "+(c.now()-U)+"ms")}},notime:function P(O,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,k,s)=>{var c=s(51838);w.exports={Graph:c.Graph,json:s(21088),alg:s(83430),version:c.version}},86730:(w,k,s)=>{var c=s(79138);w.exports=function x(v){var t,_={},f=[];function p(l){c.has(_,l)||(_[l]=!0,t.push(l),c.each(v.successors(l),p),c.each(v.predecessors(l),p))}return c.each(v.nodes(),function(l){t=[],p(l),t.length&&f.push(t)}),f}},22163:(w,k,s)=>{var c=s(79138);function v(_,f,t,p,l,h){c.has(p,f)||(p[f]=!0,t||h.push(f),c.each(l(f),function(m){v(_,m,t,p,l,h)}),t&&h.push(f))}w.exports=function x(_,f,t){c.isArray(f)||(f=[f]);var p=(_.isDirected()?_.successors:_.neighbors).bind(_),l=[],h={};return c.each(f,function(m){if(!_.hasNode(m))throw new Error("Graph does not have node: "+m);v(_,m,"post"===t,h,p,l)}),l}},25668:(w,k,s)=>{var c=s(61718),x=s(79138);w.exports=function v(_,f,t){return x.transform(_.nodes(),function(p,l){p[l]=c(_,l,f,t)},{})}},61718:(w,k,s)=>{var c=s(79138),x=s(31919);w.exports=function _(t,p,l,h){return function f(t,p,l,h){var g,C,m={},u=new x,A=function(L){var P=L.v!==g?L.v:L.w,O=m[P],R=l(L),U=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+L+" Weight: "+R);U0&&(g=u.removeMin(),(C=m[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(A);return m}(t,String(p),l||v,h||function(m){return t.outEdges(m)})};var v=c.constant(1)},9611:(w,k,s)=>{var c=s(79138),x=s(73585);w.exports=function v(_){return c.filter(x(_),function(f){return f.length>1||1===f.length&&_.hasEdge(f[0],f[0])})}},22881:(w,k,s)=>{var c=s(79138);w.exports=function v(f,t,p){return function _(f,t,p){var l={},h=f.nodes();return h.forEach(function(m){l[m]={},l[m][m]={distance:0},h.forEach(function(u){m!==u&&(l[m][u]={distance:Number.POSITIVE_INFINITY})}),p(m).forEach(function(u){var g=u.v===m?u.w:u.v,C=t(u);l[m][g]={distance:C,predecessor:m}})}),h.forEach(function(m){var u=l[m];h.forEach(function(g){var C=l[g];h.forEach(function(A){var P=u[A],O=C[A],R=C[m].distance+P.distance;R{w.exports={components:s(86730),dijkstra:s(61718),dijkstraAll:s(25668),findCycles:s(9611),floydWarshall:s(22881),isAcyclic:s(46693),postorder:s(46694),preorder:s(5330),prim:s(46823),tarjan:s(73585),topsort:s(52180)}},46693:(w,k,s)=>{var c=s(52180);w.exports=function x(v){try{c(v)}catch(_){if(_ instanceof c.CycleException)return!1;throw _}return!0}},46694:(w,k,s)=>{var c=s(22163);w.exports=function x(v,_){return c(v,_,"post")}},5330:(w,k,s)=>{var c=s(22163);w.exports=function x(v,_){return c(v,_,"pre")}},46823:(w,k,s)=>{var c=s(79138),x=s(66568),v=s(31919);w.exports=function _(f,t){var m,p=new x,l={},h=new v;function u(C){var A=C.v===m?C.w:C.v,L=h.priority(A);if(void 0!==L){var P=t(C);P0;){if(m=h.removeMin(),c.has(l,m))p.setEdge(m,l[m]);else{if(g)throw new Error("Input graph is not connected: "+f);g=!0}f.nodeEdges(m).forEach(u)}return p}},73585:(w,k,s)=>{var c=s(79138);w.exports=function x(v){var _=0,f=[],t={},p=[];function l(h){var m=t[h]={onStack:!0,lowlink:_,index:_++};if(f.push(h),v.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(m.lowlink=Math.min(m.lowlink,t[C].index)):(l(C),m.lowlink=Math.min(m.lowlink,t[C].lowlink))}),m.lowlink===m.index){var g,u=[];do{g=f.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);p.push(u)}}return v.nodes().forEach(function(h){c.has(t,h)||l(h)}),p}},52180:(w,k,s)=>{var c=s(79138);function x(_){var f={},t={},p=[];if(c.each(_.sinks(),function l(h){if(c.has(t,h))throw new v;c.has(f,h)||(t[h]=!0,f[h]=!0,c.each(_.predecessors(h),l),delete t[h],p.push(h))}),c.size(f)!==_.nodeCount())throw new v;return p}function v(){}w.exports=x,x.CycleException=v,v.prototype=new Error},31919:(w,k,s)=>{var c=s(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(v){return v.key})},x.prototype.has=function(v){return c.has(this._keyIndices,v)},x.prototype.priority=function(v){var _=this._keyIndices[v];if(void 0!==_)return this._arr[_].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(v,_){var f=this._keyIndices;if(v=String(v),!c.has(f,v)){var t=this._arr,p=t.length;return f[v]=p,t.push({key:v,priority:_}),this._decrease(p),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},x.prototype.decrease=function(v,_){var f=this._keyIndices[v];if(_>this._arr[f].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[f].priority+" New: "+_);this._arr[f].priority=_,this._decrease(f)},x.prototype._heapify=function(v){var _=this._arr,f=2*v,t=f+1,p=v;f<_.length&&(p=_[f].priority<_[p].priority?f:p,t<_.length&&(p=_[t].priority<_[p].priority?t:p),p!==v&&(this._swap(v,p),this._heapify(p)))},x.prototype._decrease=function(v){for(var t,_=this._arr,f=_[v].priority;0!==v&&!(_[t=v>>1].priority{"use strict";var c=s(79138);w.exports=f;var v="\0";function f(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[v]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function p(u,g){--u[g]||delete u[g]}function l(u,g,C,A){var L=""+g,P=""+C;if(!u&&L>P){var O=L;L=P,P=O}return L+"\x01"+P+"\x01"+(c.isUndefined(A)?"\0":A)}function h(u,g,C,A){var L=""+g,P=""+C;if(!u&&L>P){var O=L;L=P,P=O}var R={v:L,w:P};return A&&(R.name=A),R}function m(u,g){return l(u,g.v,g.w,g.name)}f.prototype._nodeCount=0,f.prototype._edgeCount=0,f.prototype.isDirected=function(){return this._isDirected},f.prototype.isMultigraph=function(){return this._isMultigraph},f.prototype.isCompound=function(){return this._isCompound},f.prototype.setGraph=function(u){return this._label=u,this},f.prototype.graph=function(){return this._label},f.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},f.prototype.nodeCount=function(){return this._nodeCount},f.prototype.nodes=function(){return c.keys(this._nodes)},f.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},f.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},f.prototype.setNodes=function(u,g){var C=arguments,A=this;return c.each(u,function(L){C.length>1?A.setNode(L,g):A.setNode(L)}),this},f.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=v,this._children[u]={},this._children[v][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},f.prototype.node=function(u){return this._nodes[u]},f.prototype.hasNode=function(u){return c.has(this._nodes,u)},f.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(A){g.removeEdge(g._edgeObjs[A])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(A){g.setParent(A)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},f.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=v;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},f.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},f.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==v)return g}},f.prototype.children=function(u){if(c.isUndefined(u)&&(u=v),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===v)return this.nodes();if(this.hasNode(u))return[]}},f.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},f.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},f.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},f.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},f.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(P,O){u(O)&&g.setNode(O,P)}),c.each(this._edgeObjs,function(P){g.hasNode(P.v)&&g.hasNode(P.w)&&g.setEdge(P,C.edge(P))});var A={};function L(P){var O=C.parent(P);return void 0===O||g.hasNode(O)?(A[P]=O,O):O in A?A[O]:L(O)}return this._isCompound&&c.each(g.nodes(),function(P){g.setParent(P,L(P))}),g},f.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},f.prototype.edgeCount=function(){return this._edgeCount},f.prototype.edges=function(){return c.values(this._edgeObjs)},f.prototype.setPath=function(u,g){var C=this,A=arguments;return c.reduce(u,function(L,P){return A.length>1?C.setEdge(L,P,g):C.setEdge(L,P),P}),this},f.prototype.setEdge=function(){var u,g,C,A,L=!1,P=arguments[0];"object"==typeof P&&null!==P&&"v"in P?(u=P.v,g=P.w,C=P.name,2===arguments.length&&(A=arguments[1],L=!0)):(u=P,g=arguments[1],C=arguments[3],arguments.length>2&&(A=arguments[2],L=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var O=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,O))return L&&(this._edgeLabels[O]=A),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[O]=L?A:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[O]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][O]=R,this._out[u][O]=R,this._edgeCount++,this},f.prototype.edge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[A]},f.prototype.hasEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,A)},f.prototype.removeEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),L=this._edgeObjs[A];return L&&(u=L.v,g=L.w,delete this._edgeLabels[A],delete this._edgeObjs[A],p(this._preds[g],u),p(this._sucs[u],g),delete this._in[g][A],delete this._out[u][A],this._edgeCount--),this},f.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var A=c.values(C);return g?c.filter(A,function(L){return L.v===g}):A}},f.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var A=c.values(C);return g?c.filter(A,function(L){return L.w===g}):A}},f.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,k,s)=>{w.exports={Graph:s(66568),version:s(75089)}},21088:(w,k,s)=>{var c=s(79138),x=s(66568);function _(p){return c.map(p.nodes(),function(l){var h=p.node(l),m=p.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(m)||(u.parent=m),u})}function f(p){return c.map(p.edges(),function(l){var h=p.edge(l),m={v:l.v,w:l.w};return c.isUndefined(l.name)||(m.name=l.name),c.isUndefined(h)||(m.value=h),m})}w.exports={write:function v(p){var l={options:{directed:p.isDirected(),multigraph:p.isMultigraph(),compound:p.isCompound()},nodes:_(p),edges:f(p)};return c.isUndefined(p.graph())||(l.value=c.clone(p.graph())),l},read:function t(p){var l=new x(p.options).setGraph(p.value);return c.each(p.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(p.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,k,s)=>{var c;try{c={clone:s(11094),constant:s(76684),each:s(35474),filter:s(35281),has:s(54842),isArray:s(21503),isEmpty:s(71973),isFunction:s(75946),isUndefined:s(34235),keys:s(118),map:s(19984),reduce:s(81337),size:s(55637),transform:s(89416),union:s(68921),values:s(90377)}}catch(x){}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},40717:(w,k,s)=>{"use strict";var c=s(50623);function x(v){return!0===c(v)&&"[object Object]"===Object.prototype.toString.call(v)}w.exports=function(_){var f,t;return!(!1===x(_)||(f=_.constructor,"function"!=typeof f)||(t=f.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},50623:w=>{"use strict";w.exports=function(s){return null!=s&&"object"==typeof s&&!1===Array.isArray(s)}},52872:w=>{var k=Object.prototype.toString;function s(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(m){if(void 0===m)return"undefined";if(null===m)return"null";var u=typeof m;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function f(h,m){return"GeneratorFunction"===s(h)}(m)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(m))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(m))return"buffer";if(function p(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(m){if(-1!==m.message.indexOf("callee"))return!0}return!1}(m))return"arguments";if(function v(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(m))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(m))return"error";if(function _(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(m))return"regexp";switch(s(m)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(m))return"generator";switch(u=k.call(m)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,k,s)=>{var v=s(53436)(s(12119),"DataView");w.exports=v},54994:(w,k,s)=>{var c=s(64312),x=s(46421),v=s(15764),_=s(18685),f=s(26676);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var c=s(41840),x=s(34378),v=s(54981),_=s(67343),f=s(98895);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=s(53436)(s(12119),"Map");w.exports=v},99850:(w,k,s)=>{var c=s(10638),x=s(11184),v=s(70866),_=s(43771),f=s(51772);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=s(53436)(s(12119),"Promise");w.exports=v},46323:(w,k,s)=>{var v=s(53436)(s(12119),"Set");w.exports=v},58849:(w,k,s)=>{var c=s(99850),x=s(4600),v=s(31387);function _(f){var t=-1,p=null==f?0:f.length;for(this.__data__=new c;++t{var c=s(9215),x=s(13720),v=s(64410),_=s(45576),f=s(22247),t=s(41585);function p(l){var h=this.__data__=new c(l);this.size=h.size}p.prototype.clear=x,p.prototype.delete=v,p.prototype.get=_,p.prototype.has=f,p.prototype.set=t,w.exports=p},60443:(w,k,s)=>{var c=s(12119);w.exports=c.Symbol},73457:(w,k,s)=>{var c=s(12119);w.exports=c.Uint8Array},24243:(w,k,s)=>{var v=s(53436)(s(12119),"WeakMap");w.exports=v},26999:w=>{w.exports=function k(s,c,x){switch(x.length){case 0:return s.call(c);case 1:return s.call(c,x[0]);case 2:return s.call(c,x[0],x[1]);case 3:return s.call(c,x[0],x[1],x[2])}return s.apply(c,x)}},96837:w=>{w.exports=function k(s,c){for(var x=-1,v=null==s?0:s.length;++x{w.exports=function k(s,c){for(var x=-1,v=null==s?0:s.length,_=0,f=[];++x{var c=s(14164);w.exports=function x(v,_){return!(null==v||!v.length)&&c(v,_,0)>-1}},37609:w=>{w.exports=function k(s,c,x){for(var v=-1,_=null==s?0:s.length;++v<_;)if(x(c,s[v]))return!0;return!1}},72271:(w,k,s)=>{var c=s(85334),x=s(77151),v=s(21503),_=s(80891),f=s(58442),t=s(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(m,u){var g=v(m),C=!g&&x(m),A=!g&&!C&&_(m),L=!g&&!C&&!A&&t(m),P=g||C||A||L,O=P?c(m.length,String):[],R=O.length;for(var U in m)(u||l.call(m,U))&&(!P||!("length"==U||A&&("offset"==U||"parent"==U)||L&&("buffer"==U||"byteLength"==U||"byteOffset"==U)||f(U,R)))&&O.push(U);return O}},84633:w=>{w.exports=function k(s,c){for(var x=-1,v=null==s?0:s.length,_=Array(v);++x{w.exports=function k(s,c){for(var x=-1,v=c.length,_=s.length;++x{w.exports=function k(s,c,x,v){var _=-1,f=null==s?0:s.length;for(v&&f&&(x=s[++_]);++_{w.exports=function k(s,c){for(var x=-1,v=null==s?0:s.length;++x{var x=s(11847)("length");w.exports=x},49276:(w,k,s)=>{var c=s(85683),x=s(20217);w.exports=function v(_,f,t){(void 0!==t&&!x(_[f],t)||void 0===t&&!(f in _))&&c(_,f,t)}},89719:(w,k,s)=>{var c=s(85683),x=s(20217),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l){var h=t[p];(!_.call(t,p)||!x(h,l)||void 0===l&&!(p in t))&&c(t,p,l)}},43503:(w,k,s)=>{var c=s(20217);w.exports=function x(v,_){for(var f=v.length;f--;)if(c(v[f][0],_))return f;return-1}},94121:(w,k,s)=>{var c=s(31989),x=s(118);w.exports=function v(_,f){return _&&c(f,x(f),_)}},99287:(w,k,s)=>{var c=s(31989),x=s(16555);w.exports=function v(_,f){return _&&c(f,x(f),_)}},85683:(w,k,s)=>{var c=s(56713);w.exports=function x(v,_,f){"__proto__"==_&&c?c(v,_,{configurable:!0,enumerable:!0,value:f,writable:!0}):v[_]=f}},44462:(w,k,s)=>{var c=s(2858),x=s(96837),v=s(89719),_=s(94121),f=s(99287),t=s(19292),p=s(99454),l=s(84444),h=s(59905),m=s(47597),u=s(6967),g=s(28794),C=s(76782),A=s(37878),L=s(4264),P=s(21503),O=s(80891),R=s(13222),U=s(25940),z=s(90799),X=s(118),it=s(16555),tt="[object Arguments]",rt="[object Function]",Ct="[object Object]",Be={};Be[tt]=Be["[object Array]"]=Be["[object ArrayBuffer]"]=Be["[object DataView]"]=Be["[object Boolean]"]=Be["[object Date]"]=Be["[object Float32Array]"]=Be["[object Float64Array]"]=Be["[object Int8Array]"]=Be["[object Int16Array]"]=Be["[object Int32Array]"]=Be["[object Map]"]=Be["[object Number]"]=Be[Ct]=Be["[object RegExp]"]=Be["[object Set]"]=Be["[object String]"]=Be["[object Symbol]"]=Be["[object Uint8Array]"]=Be["[object Uint8ClampedArray]"]=Be["[object Uint16Array]"]=Be["[object Uint32Array]"]=!0,Be["[object Error]"]=Be[rt]=Be["[object WeakMap]"]=!1,w.exports=function Cn(ke,Zn,Wn,ai,Yn,An){var Ke,En=1&Zn,Pn=2&Zn,Ve=4&Zn;if(Wn&&(Ke=Yn?Wn(ke,ai,Yn,An):Wn(ke)),void 0!==Ke)return Ke;if(!U(ke))return ke;var mi=P(ke);if(mi){if(Ke=C(ke),!En)return p(ke,Ke)}else{var Hn=g(ke),yn=Hn==rt||"[object GeneratorFunction]"==Hn;if(O(ke))return t(ke,En);if(Hn==Ct||Hn==tt||yn&&!Yn){if(Ke=Pn||yn?{}:L(ke),!En)return Pn?h(ke,f(Ke,ke)):l(ke,_(Ke,ke))}else{if(!Be[Hn])return Yn?ke:{};Ke=A(ke,Hn,En)}}An||(An=new c);var Xn=An.get(ke);if(Xn)return Xn;An.set(ke,Ke),z(ke)?ke.forEach(function($n){Ke.add(Cn($n,Zn,Wn,$n,ke,An))}):R(ke)&&ke.forEach(function($n,Jn){Ke.set(Jn,Cn($n,Zn,Wn,Jn,ke,An))});var Oe=mi?void 0:(Ve?Pn?u:m:Pn?it:X)(ke);return x(Oe||ke,function($n,Jn){Oe&&($n=ke[Jn=$n]),v(Ke,Jn,Cn($n,Zn,Wn,Jn,ke,An))}),Ke}},78858:(w,k,s)=>{var c=s(25940),x=Object.create,v=function(){function _(){}return function(f){if(!c(f))return{};if(x)return x(f);_.prototype=f;var t=new _;return _.prototype=void 0,t}}();w.exports=v},43132:(w,k,s)=>{var c=s(45184),v=s(16539)(c);w.exports=v},67308:(w,k,s)=>{var c=s(44129);w.exports=function x(v,_,f){for(var t=-1,p=v.length;++t{var c=s(43132);w.exports=function x(v,_){var f=[];return c(v,function(t,p,l){_(t,p,l)&&f.push(t)}),f}},65317:w=>{w.exports=function k(s,c,x,v){for(var _=s.length,f=x+(v?1:-1);v?f--:++f<_;)if(c(s[f],f,s))return f;return-1}},50686:(w,k,s)=>{var c=s(85059),x=s(75039);w.exports=function v(_,f,t,p,l){var h=-1,m=_.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?f>1?v(u,f-1,t,p,l):c(l,u):p||(l[l.length]=u)}return l}},30755:(w,k,s)=>{var x=s(40456)();w.exports=x},45184:(w,k,s)=>{var c=s(30755),x=s(118);w.exports=function v(_,f){return _&&c(_,f,x)}},15456:(w,k,s)=>{var c=s(65456),x=s(68533);w.exports=function v(_,f){for(var t=0,p=(f=c(f,_)).length;null!=_&&t{var c=s(85059),x=s(21503);w.exports=function v(_,f,t){var p=f(_);return x(_)?p:c(p,t(_))}},93337:(w,k,s)=>{var c=s(60443),x=s(21318),v=s(92902),t=c?c.toStringTag:void 0;w.exports=function p(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):v(l)}},31100:w=>{w.exports=function k(s,c){return s>c}},84781:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x,v){return null!=x&&s.call(x,v)}},69989:w=>{w.exports=function k(s,c){return null!=s&&c in Object(s)}},14164:(w,k,s)=>{var c=s(65317),x=s(70968),v=s(24977);w.exports=function _(f,t,p){return t==t?v(f,t,p):c(f,x,p)}},60186:(w,k,s)=>{var c=s(93337),x=s(72671);w.exports=function _(f){return x(f)&&"[object Arguments]"==c(f)}},85740:(w,k,s)=>{var c=s(58325),x=s(72671);w.exports=function v(_,f,t,p,l){return _===f||(null==_||null==f||!x(_)&&!x(f)?_!=_&&f!=f:c(_,f,t,p,v,l))}},58325:(w,k,s)=>{var c=s(2858),x=s(63914),v=s(78583),_=s(32286),f=s(28794),t=s(21503),p=s(80891),l=s(48159),m="[object Arguments]",u="[object Array]",g="[object Object]",A=Object.prototype.hasOwnProperty;w.exports=function L(P,O,R,U,z,X){var it=t(P),nt=t(O),ut=it?u:f(P),J=nt?u:f(O),tt=(ut=ut==m?g:ut)==g,$=(J=J==m?g:J)==g,st=ut==J;if(st&&p(P)){if(!p(O))return!1;it=!0,tt=!1}if(st&&!tt)return X||(X=new c),it||l(P)?x(P,O,R,U,z,X):v(P,O,ut,R,U,z,X);if(!(1&R)){var Y=tt&&A.call(P,"__wrapped__"),K=$&&A.call(O,"__wrapped__");if(Y||K){var rt=Y?P.value():P,at=K?O.value():O;return X||(X=new c),z(rt,at,R,U,X)}}return!!st&&(X||(X=new c),_(P,O,R,U,z,X))}},97021:(w,k,s)=>{var c=s(28794),x=s(72671);w.exports=function _(f){return x(f)&&"[object Map]"==c(f)}},40431:(w,k,s)=>{var c=s(2858),x=s(85740);w.exports=function f(t,p,l,h){var m=l.length,u=m,g=!h;if(null==t)return!u;for(t=Object(t);m--;){var C=l[m];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++m{w.exports=function k(s){return s!=s}},37304:(w,k,s)=>{var c=s(75946),x=s(91943),v=s(25940),_=s(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!v(C)||x(C))&&(c(C)?u:t).test(_(C))}},771:(w,k,s)=>{var c=s(28794),x=s(72671);w.exports=function _(f){return x(f)&&"[object Set]"==c(f)}},1083:(w,k,s)=>{var c=s(93337),x=s(96231),v=s(72671),st={};st["[object Float32Array]"]=st["[object Float64Array]"]=st["[object Int8Array]"]=st["[object Int16Array]"]=st["[object Int32Array]"]=st["[object Uint8Array]"]=st["[object Uint8ClampedArray]"]=st["[object Uint16Array]"]=st["[object Uint32Array]"]=!0,st["[object Arguments]"]=st["[object Array]"]=st["[object ArrayBuffer]"]=st["[object Boolean]"]=st["[object DataView]"]=st["[object Date]"]=st["[object Error]"]=st["[object Function]"]=st["[object Map]"]=st["[object Number]"]=st["[object Object]"]=st["[object RegExp]"]=st["[object Set]"]=st["[object String]"]=st["[object WeakMap]"]=!1,w.exports=function Y(K){return v(K)&&x(K.length)&&!!st[c(K)]}},96517:(w,k,s)=>{var c=s(98133),x=s(9458),v=s(32608),_=s(21503),f=s(87495);w.exports=function t(p){return"function"==typeof p?p:null==p?v:"object"==typeof p?_(p)?x(p[0],p[1]):c(p):f(p)}},81172:(w,k,s)=>{var c=s(45488),x=s(85491),_=Object.prototype.hasOwnProperty;w.exports=function f(t){if(!c(t))return x(t);var p=[];for(var l in Object(t))_.call(t,l)&&"constructor"!=l&&p.push(l);return p}},92809:(w,k,s)=>{var c=s(25940),x=s(45488),v=s(32158),f=Object.prototype.hasOwnProperty;w.exports=function t(p){if(!c(p))return v(p);var l=x(p),h=[];for(var m in p)"constructor"==m&&(l||!f.call(p,m))||h.push(m);return h}},99069:w=>{w.exports=function k(s,c){return s{var c=s(43132),x=s(56507);w.exports=function v(_,f){var t=-1,p=x(_)?Array(_.length):[];return c(_,function(l,h,m){p[++t]=f(l,h,m)}),p}},98133:(w,k,s)=>{var c=s(40431),x=s(22379),v=s(642);w.exports=function _(f){var t=x(f);return 1==t.length&&t[0][2]?v(t[0][0],t[0][1]):function(p){return p===f||c(p,f,t)}}},9458:(w,k,s)=>{var c=s(85740),x=s(8817),v=s(11172),_=s(45352),f=s(22442),t=s(642),p=s(68533);w.exports=function m(u,g){return _(u)&&f(g)?t(p(u),g):function(C){var A=x(C,u);return void 0===A&&A===g?v(C,u):c(g,A,3)}}},73842:(w,k,s)=>{var c=s(2858),x=s(49276),v=s(30755),_=s(33675),f=s(25940),t=s(16555),p=s(99351);w.exports=function l(h,m,u,g,C){h!==m&&v(m,function(A,L){if(C||(C=new c),f(A))_(h,m,L,u,l,g,C);else{var P=g?g(p(h,L),A,L+"",h,m,C):void 0;void 0===P&&(P=A),x(h,L,P)}},t)}},33675:(w,k,s)=>{var c=s(49276),x=s(19292),v=s(65208),_=s(99454),f=s(4264),t=s(77151),p=s(21503),l=s(92377),h=s(80891),m=s(75946),u=s(25940),g=s(97614),C=s(48159),A=s(99351),L=s(8067);w.exports=function P(O,R,U,z,X,it,nt){var ut=A(O,U),J=A(R,U),tt=nt.get(J);if(tt)c(O,U,tt);else{var $=it?it(ut,J,U+"",O,R,nt):void 0,st=void 0===$;if(st){var Y=p(J),K=!Y&&h(J),rt=!Y&&!K&&C(J);$=J,Y||K||rt?p(ut)?$=ut:l(ut)?$=_(ut):K?(st=!1,$=x(J,!0)):rt?(st=!1,$=v(J,!0)):$=[]:g(J)||t(J)?($=ut,t(ut)?$=L(ut):(!u(ut)||m(ut))&&($=f(J))):st=!1}st&&(nt.set(J,$),X($,J,z,it,nt),nt.delete(J)),c(O,U,$)}}},6119:(w,k,s)=>{var c=s(84633),x=s(15456),v=s(96517),_=s(92046),f=s(42061),t=s(85647),p=s(41215),l=s(32608),h=s(21503);w.exports=function m(u,g,C){g=g.length?c(g,function(P){return h(P)?function(O){return x(O,1===P.length?P[0]:P)}:P}):[l];var A=-1;g=c(g,t(v));var L=_(u,function(P,O,R){return{criteria:c(g,function(z){return z(P)}),index:++A,value:P}});return f(L,function(P,O){return p(P,O,C)})}},83021:(w,k,s)=>{var c=s(95495),x=s(11172);w.exports=function v(_,f){return c(_,f,function(t,p){return x(_,p)})}},95495:(w,k,s)=>{var c=s(15456),x=s(55963),v=s(65456);w.exports=function _(f,t,p){for(var l=-1,h=t.length,m={};++l{w.exports=function k(s){return function(c){return null==c?void 0:c[s]}}},39222:(w,k,s)=>{var c=s(15456);w.exports=function x(v){return function(_){return c(_,v)}}},16307:w=>{var k=Math.ceil,s=Math.max;w.exports=function c(x,v,_,f){for(var t=-1,p=s(k((v-x)/(_||1)),0),l=Array(p);p--;)l[f?p:++t]=x,x+=_;return l}},13570:w=>{w.exports=function k(s,c,x,v,_){return _(s,function(f,t,p){x=v?(v=!1,f):c(x,f,t,p)}),x}},23269:(w,k,s)=>{var c=s(32608),x=s(53983),v=s(72185);w.exports=function _(f,t){return v(x(f,t,c),f+"")}},55963:(w,k,s)=>{var c=s(89719),x=s(65456),v=s(58442),_=s(25940),f=s(68533);w.exports=function t(p,l,h,m){if(!_(p))return p;for(var u=-1,g=(l=x(l,p)).length,C=g-1,A=p;null!=A&&++u{var c=s(76684),x=s(56713),v=s(32608);w.exports=x?function(f,t){return x(f,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:v},42061:w=>{w.exports=function k(s,c){var x=s.length;for(s.sort(c);x--;)s[x]=s[x].value;return s}},85334:w=>{w.exports=function k(s,c){for(var x=-1,v=Array(s);++x{var c=s(60443),x=s(84633),v=s(21503),_=s(44129),t=c?c.prototype:void 0,p=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(v(h))return x(h,l)+"";if(_(h))return p?p.call(h):"";var m=h+"";return"0"==m&&1/h==-1/0?"-0":m}},83348:(w,k,s)=>{var c=s(42760),x=/^\s+/;w.exports=function v(_){return _&&_.slice(0,c(_)+1).replace(x,"")}},85647:w=>{w.exports=function k(s){return function(c){return s(c)}}},80707:(w,k,s)=>{var c=s(58849),x=s(61253),v=s(37609),_=s(25972),f=s(14575),t=s(24174);w.exports=function l(h,m,u){var g=-1,C=x,A=h.length,L=!0,P=[],O=P;if(u)L=!1,C=v;else if(A>=200){var R=m?null:f(h);if(R)return t(R);L=!1,C=_,O=new c}else O=m?[]:P;t:for(;++g{var c=s(84633);w.exports=function x(v,_){return c(_,function(f){return v[f]})}},38645:w=>{w.exports=function k(s,c,x){for(var v=-1,_=s.length,f=c.length,t={};++v<_;)x(t,s[v],v{w.exports=function k(s,c){return s.has(c)}},21481:(w,k,s)=>{var c=s(32608);w.exports=function x(v){return"function"==typeof v?v:c}},65456:(w,k,s)=>{var c=s(21503),x=s(45352),v=s(32855),_=s(73943);w.exports=function f(t,p){return c(t)?t:x(t,p)?[t]:v(_(t))}},43362:(w,k,s)=>{var c=s(73457);w.exports=function x(v){var _=new v.constructor(v.byteLength);return new c(_).set(new c(v)),_}},19292:(w,k,s)=>{w=s.nmd(w);var c=s(12119),x=k&&!k.nodeType&&k,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x?c.Buffer:void 0,t=f?f.allocUnsafe:void 0;w.exports=function p(l,h){if(h)return l.slice();var m=l.length,u=t?t(m):new l.constructor(m);return l.copy(u),u}},17e3:(w,k,s)=>{var c=s(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.byteLength)}},74098:w=>{var k=/\w*$/;w.exports=function s(c){var x=new c.constructor(c.source,k.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,k,s)=>{var c=s(60443),x=c?c.prototype:void 0,v=x?x.valueOf:void 0;w.exports=function _(f){return v?Object(v.call(f)):{}}},65208:(w,k,s)=>{var c=s(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.length)}},13443:(w,k,s)=>{var c=s(44129);w.exports=function x(v,_){if(v!==_){var f=void 0!==v,t=null===v,p=v==v,l=c(v),h=void 0!==_,m=null===_,u=_==_,g=c(_);if(!m&&!g&&!l&&v>_||l&&h&&u&&!m&&!g||t&&h&&u||!f&&u||!p)return 1;if(!t&&!l&&!g&&v<_||g&&f&&p&&!t&&!l||m&&f&&p||!h&&p||!u)return-1}return 0}},41215:(w,k,s)=>{var c=s(13443);w.exports=function x(v,_,f){for(var t=-1,p=v.criteria,l=_.criteria,h=p.length,m=f.length;++t=m?u:u*("desc"==f[t]?-1:1)}return v.index-_.index}},99454:w=>{w.exports=function k(s,c){var x=-1,v=s.length;for(c||(c=Array(v));++x{var c=s(89719),x=s(85683);w.exports=function v(_,f,t,p){var l=!t;t||(t={});for(var h=-1,m=f.length;++h{var c=s(31989),x=s(39383);w.exports=function v(_,f){return c(_,x(_),f)}},59905:(w,k,s)=>{var c=s(31989),x=s(53051);w.exports=function v(_,f){return c(_,x(_),f)}},24610:(w,k,s)=>{var c=s(12119);w.exports=c["__core-js_shared__"]},84944:(w,k,s)=>{var c=s(23269),x=s(93342);w.exports=function v(_){return c(function(f,t){var p=-1,l=t.length,h=l>1?t[l-1]:void 0,m=l>2?t[2]:void 0;for(h=_.length>3&&"function"==typeof h?(l--,h):void 0,m&&x(t[0],t[1],m)&&(h=l<3?void 0:h,l=1),f=Object(f);++p{var c=s(56507);w.exports=function x(v,_){return function(f,t){if(null==f)return f;if(!c(f))return v(f,t);for(var p=f.length,l=_?p:-1,h=Object(f);(_?l--:++l{w.exports=function k(s){return function(c,x,v){for(var _=-1,f=Object(c),t=v(c),p=t.length;p--;){var l=t[s?p:++_];if(!1===x(f[l],l,f))break}return c}}},24653:(w,k,s)=>{var c=s(96517),x=s(56507),v=s(118);w.exports=function _(f){return function(t,p,l){var h=Object(t);if(!x(t)){var m=c(p,3);t=v(t),p=function(g){return m(h[g],g,h)}}var u=f(t,p,l);return u>-1?h[m?t[u]:u]:void 0}}},97509:(w,k,s)=>{var c=s(16307),x=s(93342),v=s(12232);w.exports=function _(f){return function(t,p,l){return l&&"number"!=typeof l&&x(t,p,l)&&(p=l=void 0),t=v(t),void 0===p?(p=t,t=0):p=v(p),l=void 0===l?t{var c=s(46323),x=s(12552),v=s(24174),f=c&&1/v(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=f},56713:(w,k,s)=>{var c=s(53436),x=function(){try{var v=c(Object,"defineProperty");return v({},"",{}),v}catch(_){}}();w.exports=x},63914:(w,k,s)=>{var c=s(58849),x=s(79503),v=s(25972);w.exports=function t(p,l,h,m,u,g){var C=1&h,A=p.length,L=l.length;if(A!=L&&!(C&&L>A))return!1;var P=g.get(p),O=g.get(l);if(P&&O)return P==l&&O==p;var R=-1,U=!0,z=2&h?new c:void 0;for(g.set(p,l),g.set(l,p);++R{var c=s(60443),x=s(73457),v=s(20217),_=s(63914),f=s(83205),t=s(24174),z=c?c.prototype:void 0,X=z?z.valueOf:void 0;w.exports=function it(nt,ut,J,tt,$,st,Y){switch(J){case"[object DataView]":if(nt.byteLength!=ut.byteLength||nt.byteOffset!=ut.byteOffset)return!1;nt=nt.buffer,ut=ut.buffer;case"[object ArrayBuffer]":return!(nt.byteLength!=ut.byteLength||!st(new x(nt),new x(ut)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+nt,+ut);case"[object Error]":return nt.name==ut.name&&nt.message==ut.message;case"[object RegExp]":case"[object String]":return nt==ut+"";case"[object Map]":var K=f;case"[object Set]":if(K||(K=t),nt.size!=ut.size&&!(1&tt))return!1;var at=Y.get(nt);if(at)return at==ut;tt|=2,Y.set(nt,ut);var V=_(K(nt),K(ut),tt,$,st,Y);return Y.delete(nt),V;case"[object Symbol]":if(X)return X.call(nt)==X.call(ut)}return!1}},32286:(w,k,s)=>{var c=s(47597),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l,h,m,u){var g=1&l,C=c(t),A=C.length;if(A!=c(p).length&&!g)return!1;for(var O=A;O--;){var R=C[O];if(!(g?R in p:_.call(p,R)))return!1}var U=u.get(t),z=u.get(p);if(U&&z)return U==p&&z==t;var X=!0;u.set(t,p),u.set(p,t);for(var it=g;++O{var c=s(22274),x=s(53983),v=s(72185);w.exports=function _(f){return v(x(f,void 0,c),f+"")}},79122:w=>{var k="object"==typeof global&&global&&global.Object===Object&&global;w.exports=k},47597:(w,k,s)=>{var c=s(38247),x=s(39383),v=s(118);w.exports=function _(f){return c(f,v,x)}},6967:(w,k,s)=>{var c=s(38247),x=s(53051),v=s(16555);w.exports=function _(f){return c(f,v,x)}},54537:(w,k,s)=>{var c=s(23819);w.exports=function x(v,_){var f=v.__data__;return c(_)?f["string"==typeof _?"string":"hash"]:f.map}},22379:(w,k,s)=>{var c=s(22442),x=s(118);w.exports=function v(_){for(var f=x(_),t=f.length;t--;){var p=f[t],l=_[p];f[t]=[p,l,c(l)]}return f}},53436:(w,k,s)=>{var c=s(37304),x=s(51990);w.exports=function v(_,f){var t=x(_,f);return c(t)?t:void 0}},29519:(w,k,s)=>{var x=s(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,k,s)=>{var c=s(60443),x=Object.prototype,v=x.hasOwnProperty,_=x.toString,f=c?c.toStringTag:void 0;w.exports=function t(p){var l=v.call(p,f),h=p[f];try{p[f]=void 0;var m=!0}catch(g){}var u=_.call(p);return m&&(l?p[f]=h:delete p[f]),u}},39383:(w,k,s)=>{var c=s(69779),x=s(49975),_=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;w.exports=f?function(p){return null==p?[]:(p=Object(p),c(f(p),function(l){return _.call(p,l)}))}:x},53051:(w,k,s)=>{var c=s(85059),x=s(29519),v=s(39383),_=s(49975);w.exports=Object.getOwnPropertySymbols?function(p){for(var l=[];p;)c(l,v(p)),p=x(p);return l}:_},28794:(w,k,s)=>{var c=s(37244),x=s(51501),v=s(44267),_=s(46323),f=s(24243),t=s(93337),p=s(52827),l="[object Map]",m="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",A=p(c),L=p(x),P=p(v),O=p(_),R=p(f),U=t;(c&&U(new c(new ArrayBuffer(1)))!=C||x&&U(new x)!=l||v&&U(v.resolve())!=m||_&&U(new _)!=u||f&&U(new f)!=g)&&(U=function(z){var X=t(z),it="[object Object]"==X?z.constructor:void 0,nt=it?p(it):"";if(nt)switch(nt){case A:return C;case L:return l;case P:return m;case O:return u;case R:return g}return X}),w.exports=U},51990:w=>{w.exports=function k(s,c){return null==s?void 0:s[c]}},47283:(w,k,s)=>{var c=s(65456),x=s(77151),v=s(21503),_=s(58442),f=s(96231),t=s(68533);w.exports=function p(l,h,m){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function p(l){return t.test(l)}},64312:(w,k,s)=>{var c=s(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function k(s){var c=this.has(s)&&delete this.__data__[s];return this.size-=c?1:0,c}},15764:(w,k,s)=>{var c=s(60862),_=Object.prototype.hasOwnProperty;w.exports=function f(t){var p=this.__data__;if(c){var l=p[t];return"__lodash_hash_undefined__"===l?void 0:l}return _.call(p,t)?p[t]:void 0}},18685:(w,k,s)=>{var c=s(60862),v=Object.prototype.hasOwnProperty;w.exports=function _(f){var t=this.__data__;return c?void 0!==t[f]:v.call(t,f)}},26676:(w,k,s)=>{var c=s(60862);w.exports=function v(_,f){var t=this.__data__;return this.size+=this.has(_)?0:1,t[_]=c&&void 0===f?"__lodash_hash_undefined__":f,this}},76782:w=>{var s=Object.prototype.hasOwnProperty;w.exports=function c(x){var v=x.length,_=new x.constructor(v);return v&&"string"==typeof x[0]&&s.call(x,"index")&&(_.index=x.index,_.input=x.input),_}},37878:(w,k,s)=>{var c=s(43362),x=s(17e3),v=s(74098),_=s(62533),f=s(65208);w.exports=function J(tt,$,st){var Y=tt.constructor;switch($){case"[object ArrayBuffer]":return c(tt);case"[object Boolean]":case"[object Date]":return new Y(+tt);case"[object DataView]":return x(tt,st);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return f(tt,st);case"[object Map]":case"[object Set]":return new Y;case"[object Number]":case"[object String]":return new Y(tt);case"[object RegExp]":return v(tt);case"[object Symbol]":return _(tt)}}},4264:(w,k,s)=>{var c=s(78858),x=s(29519),v=s(45488);w.exports=function _(f){return"function"!=typeof f.constructor||v(f)?{}:c(x(f))}},75039:(w,k,s)=>{var c=s(60443),x=s(77151),v=s(21503),_=c?c.isConcatSpreadable:void 0;w.exports=function f(t){return v(t)||x(t)||!!(_&&t&&t[_])}},58442:w=>{var s=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,v){var _=typeof x;return!!(v=null==v?9007199254740991:v)&&("number"==_||"symbol"!=_&&s.test(x))&&x>-1&&x%1==0&&x{var c=s(20217),x=s(56507),v=s(58442),_=s(25940);w.exports=function f(t,p,l){if(!_(l))return!1;var h=typeof p;return!!("number"==h?x(l)&&v(p,l.length):"string"==h&&p in l)&&c(l[p],t)}},45352:(w,k,s)=>{var c=s(21503),x=s(44129),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;w.exports=function f(t,p){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||_.test(t)||!v.test(t)||null!=p&&t in Object(p)}},23819:w=>{w.exports=function k(s){var c=typeof s;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==s:null===s}},91943:(w,k,s)=>{var _,c=s(24610),x=(_=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";w.exports=function v(_){return!!x&&x in _}},45488:w=>{var k=Object.prototype;w.exports=function s(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||k)}},22442:(w,k,s)=>{var c=s(25940);w.exports=function x(v){return v==v&&!c(v)}},41840:w=>{w.exports=function k(){this.__data__=[],this.size=0}},34378:(w,k,s)=>{var c=s(43503),v=Array.prototype.splice;w.exports=function _(f){var t=this.__data__,p=c(t,f);return!(p<0||(p==t.length-1?t.pop():v.call(t,p,1),--this.size,0))}},54981:(w,k,s)=>{var c=s(43503);w.exports=function x(v){var _=this.__data__,f=c(_,v);return f<0?void 0:_[f][1]}},67343:(w,k,s)=>{var c=s(43503);w.exports=function x(v){return c(this.__data__,v)>-1}},98895:(w,k,s)=>{var c=s(43503);w.exports=function x(v,_){var f=this.__data__,t=c(f,v);return t<0?(++this.size,f.push([v,_])):f[t][1]=_,this}},10638:(w,k,s)=>{var c=s(54994),x=s(9215),v=s(51501);w.exports=function _(){this.size=0,this.__data__={hash:new c,map:new(v||x),string:new c}}},11184:(w,k,s)=>{var c=s(54537);w.exports=function x(v){var _=c(this,v).delete(v);return this.size-=_?1:0,_}},70866:(w,k,s)=>{var c=s(54537);w.exports=function x(v){return c(this,v).get(v)}},43771:(w,k,s)=>{var c=s(54537);w.exports=function x(v){return c(this,v).has(v)}},51772:(w,k,s)=>{var c=s(54537);w.exports=function x(v,_){var f=c(this,v),t=f.size;return f.set(v,_),this.size+=f.size==t?0:1,this}},83205:w=>{w.exports=function k(s){var c=-1,x=Array(s.size);return s.forEach(function(v,_){x[++c]=[_,v]}),x}},642:w=>{w.exports=function k(s,c){return function(x){return null!=x&&x[s]===c&&(void 0!==c||s in Object(x))}}},15144:(w,k,s)=>{var c=s(30535);w.exports=function v(_){var f=c(_,function(p){return 500===t.size&&t.clear(),p}),t=f.cache;return f}},60862:(w,k,s)=>{var x=s(53436)(Object,"create");w.exports=x},85491:(w,k,s)=>{var x=s(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function k(s){var c=[];if(null!=s)for(var x in Object(s))c.push(x);return c}},73597:(w,k,s)=>{w=s.nmd(w);var c=s(79122),x=k&&!k.nodeType&&k,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x&&c.process,t=function(){try{return v&&v.require&&v.require("util").types||f&&f.binding&&f.binding("util")}catch(l){}}();w.exports=t},92902:w=>{var s=Object.prototype.toString;w.exports=function c(x){return s.call(x)}},69385:w=>{w.exports=function k(s,c){return function(x){return s(c(x))}}},53983:(w,k,s)=>{var c=s(26999),x=Math.max;w.exports=function v(_,f,t){return f=x(void 0===f?_.length-1:f,0),function(){for(var p=arguments,l=-1,h=x(p.length-f,0),m=Array(h);++l{var c=s(79122),x="object"==typeof self&&self&&self.Object===Object&&self,v=c||x||Function("return this")();w.exports=v},99351:w=>{w.exports=function k(s,c){if(("constructor"!==c||"function"!=typeof s[c])&&"__proto__"!=c)return s[c]}},4600:w=>{w.exports=function s(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function k(s){return this.__data__.has(s)}},24174:w=>{w.exports=function k(s){var c=-1,x=Array(s.size);return s.forEach(function(v){x[++c]=v}),x}},72185:(w,k,s)=>{var c=s(69510),v=s(10029)(c);w.exports=v},10029:w=>{var c=Date.now;w.exports=function x(v){var _=0,f=0;return function(){var t=c(),p=16-(t-f);if(f=t,p>0){if(++_>=800)return arguments[0]}else _=0;return v.apply(void 0,arguments)}}},13720:(w,k,s)=>{var c=s(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function k(s){var c=this.__data__,x=c.delete(s);return this.size=c.size,x}},45576:w=>{w.exports=function k(s){return this.__data__.get(s)}},22247:w=>{w.exports=function k(s){return this.__data__.has(s)}},41585:(w,k,s)=>{var c=s(9215),x=s(51501),v=s(99850);w.exports=function f(t,p){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,p]),this.size=++l.size,this;l=this.__data__=new v(h)}return l.set(t,p),this.size=l.size,this}},24977:w=>{w.exports=function k(s,c,x){for(var v=x-1,_=s.length;++v<_;)if(s[v]===c)return v;return-1}},52315:(w,k,s)=>{var c=s(75481),x=s(77609),v=s(81149);w.exports=function _(f){return x(f)?v(f):c(f)}},32855:(w,k,s)=>{var c=s(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=c(function(f){var t=[];return 46===f.charCodeAt(0)&&t.push(""),f.replace(x,function(p,l,h,m){t.push(h?m.replace(v,"$1"):l||p)}),t});w.exports=_},68533:(w,k,s)=>{var c=s(44129);w.exports=function v(_){if("string"==typeof _||c(_))return _;var f=_+"";return"0"==f&&1/_==-1/0?"-0":f}},52827:w=>{var s=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return s.call(x)}catch(v){}try{return x+""}catch(v){}}return""}},42760:w=>{var k=/\s/;w.exports=function s(c){for(var x=c.length;x--&&k.test(c.charAt(x)););return x}},81149:w=>{var k="\\ud800-\\udfff",f="["+k+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",h="[^"+k+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+p+")?",A="[\\ufe0e\\ufe0f]?",P=A+C+"(?:\\u200d(?:"+[h,m,u].join("|")+")"+A+C+")*",O="(?:"+[h+t+"?",t,m,u,f].join("|")+")",R=RegExp(p+"(?="+p+")|"+O+P,"g");w.exports=function U(z){for(var X=R.lastIndex=0;R.test(z);)++X;return X}},11094:(w,k,s)=>{var c=s(44462);w.exports=function v(_){return c(_,4)}},90733:(w,k,s)=>{var c=s(44462);w.exports=function _(f){return c(f,5)}},76684:w=>{w.exports=function k(s){return function(){return s}}},28800:(w,k,s)=>{var c=s(23269),x=s(20217),v=s(93342),_=s(16555),f=Object.prototype,t=f.hasOwnProperty,p=c(function(l,h){l=Object(l);var m=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&v(h[0],h[1],g)&&(u=1);++m{w.exports=s(89851)},20217:w=>{w.exports=function k(s,c){return s===c||s!=s&&c!=c}},35281:(w,k,s)=>{var c=s(69779),x=s(33609),v=s(96517),_=s(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p,3))}},62516:(w,k,s)=>{var v=s(24653)(s(36397));w.exports=v},36397:(w,k,s)=>{var c=s(65317),x=s(96517),v=s(44401),_=Math.max;w.exports=function f(t,p,l){var h=null==t?0:t.length;if(!h)return-1;var m=null==l?0:v(l);return m<0&&(m=_(h+m,0)),c(t,x(p,3),m)}},22274:(w,k,s)=>{var c=s(50686);w.exports=function x(v){return null!=v&&v.length?c(v,1):[]}},89851:(w,k,s)=>{var c=s(96837),x=s(43132),v=s(21481),_=s(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p))}},41176:(w,k,s)=>{var c=s(30755),x=s(21481),v=s(16555);w.exports=function _(f,t){return null==f?f:c(f,x(t),v)}},8817:(w,k,s)=>{var c=s(15456);w.exports=function x(v,_,f){var t=null==v?void 0:c(v,_);return void 0===t?f:t}},54842:(w,k,s)=>{var c=s(84781),x=s(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},11172:(w,k,s)=>{var c=s(69989),x=s(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},32608:w=>{w.exports=function k(s){return s}},77151:(w,k,s)=>{var c=s(60186),x=s(72671),v=Object.prototype,_=v.hasOwnProperty,f=v.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(p){return x(p)&&_.call(p,"callee")&&!f.call(p,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,k,s)=>{var c=s(75946),x=s(96231);w.exports=function v(_){return null!=_&&x(_.length)&&!c(_)}},92377:(w,k,s)=>{var c=s(56507),x=s(72671);w.exports=function v(_){return x(_)&&c(_)}},80891:(w,k,s)=>{w=s.nmd(w);var c=s(12119),x=s(63580),v=k&&!k.nodeType&&k,_=v&&w&&!w.nodeType&&w,t=_&&_.exports===v?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,k,s)=>{var c=s(81172),x=s(28794),v=s(77151),_=s(21503),f=s(56507),t=s(80891),p=s(45488),l=s(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(A){if(null==A)return!0;if(f(A)&&(_(A)||"string"==typeof A||"function"==typeof A.splice||t(A)||l(A)||v(A)))return!A.length;var L=x(A);if("[object Map]"==L||"[object Set]"==L)return!A.size;if(p(A))return!c(A).length;for(var P in A)if(g.call(A,P))return!1;return!0}},75946:(w,k,s)=>{var c=s(93337),x=s(25940);w.exports=function p(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function s(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,k,s)=>{var c=s(97021),x=s(85647),v=s(73597),_=v&&v.isMap,f=_?x(_):c;w.exports=f},25940:w=>{w.exports=function k(s){var c=typeof s;return null!=s&&("object"==c||"function"==c)}},72671:w=>{w.exports=function k(s){return null!=s&&"object"==typeof s}},97614:(w,k,s)=>{var c=s(93337),x=s(29519),v=s(72671),p=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=p.call(Object);w.exports=function m(u){if(!v(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&p.call(C)==h}},90799:(w,k,s)=>{var c=s(771),x=s(85647),v=s(73597),_=v&&v.isSet,f=_?x(_):c;w.exports=f},30248:(w,k,s)=>{var c=s(93337),x=s(21503),v=s(72671);w.exports=function f(t){return"string"==typeof t||!x(t)&&v(t)&&"[object String]"==c(t)}},44129:(w,k,s)=>{var c=s(93337),x=s(72671);w.exports=function _(f){return"symbol"==typeof f||x(f)&&"[object Symbol]"==c(f)}},48159:(w,k,s)=>{var c=s(1083),x=s(85647),v=s(73597),_=v&&v.isTypedArray,f=_?x(_):c;w.exports=f},34235:w=>{w.exports=function k(s){return void 0===s}},118:(w,k,s)=>{var c=s(72271),x=s(81172),v=s(56507);w.exports=function _(f){return v(f)?c(f):x(f)}},16555:(w,k,s)=>{var c=s(72271),x=s(92809),v=s(56507);w.exports=function _(f){return v(f)?c(f,!0):x(f)}},25809:w=>{w.exports=function k(s){var c=null==s?0:s.length;return c?s[c-1]:void 0}},19984:(w,k,s)=>{var c=s(84633),x=s(96517),v=s(92046),_=s(21503);w.exports=function f(t,p){return(_(t)?c:v)(t,x(p,3))}},10203:(w,k,s)=>{var c=s(85683),x=s(45184),v=s(96517);w.exports=function _(f,t){var p={};return t=v(t,3),x(f,function(l,h,m){c(p,h,t(l,h,m))}),p}},18176:(w,k,s)=>{var c=s(67308),x=s(31100),v=s(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},30535:(w,k,s)=>{var c=s(99850);function v(_,f){if("function"!=typeof _||null!=f&&"function"!=typeof f)throw new TypeError("Expected a function");var t=function(){var p=arguments,l=f?f.apply(this,p):p[0],h=t.cache;if(h.has(l))return h.get(l);var m=_.apply(this,p);return t.cache=h.set(l,m)||h,m};return t.cache=new(v.Cache||c),t}v.Cache=c,w.exports=v},80567:(w,k,s)=>{var c=s(73842),v=s(84944)(function(_,f,t){c(_,f,t)});w.exports=v},29439:(w,k,s)=>{var c=s(67308),x=s(99069),v=s(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},29525:(w,k,s)=>{var c=s(67308),x=s(96517),v=s(99069);w.exports=function _(f,t){return f&&f.length?c(f,x(t,2),v):void 0}},12552:w=>{w.exports=function k(){}},31710:(w,k,s)=>{var c=s(12119);w.exports=function(){return c.Date.now()}},16372:(w,k,s)=>{var c=s(83021),v=s(3975)(function(_,f){return null==_?{}:c(_,f)});w.exports=v},87495:(w,k,s)=>{var c=s(11847),x=s(39222),v=s(45352),_=s(68533);w.exports=function f(t){return v(t)?c(_(t)):x(t)}},90361:(w,k,s)=>{var x=s(97509)();w.exports=x},81337:(w,k,s)=>{var c=s(8745),x=s(43132),v=s(96517),_=s(13570),f=s(21503);w.exports=function t(p,l,h){var m=f(p)?c:_,u=arguments.length<3;return m(p,v(l,4),h,u,x)}},55637:(w,k,s)=>{var c=s(81172),x=s(28794),v=s(56507),_=s(30248),f=s(52315);w.exports=function l(h){if(null==h)return 0;if(v(h))return _(h)?f(h):h.length;var m=x(h);return"[object Map]"==m||"[object Set]"==m?h.size:c(h).length}},12906:(w,k,s)=>{var c=s(50686),x=s(6119),v=s(23269),_=s(93342),f=v(function(t,p){if(null==t)return[];var l=p.length;return l>1&&_(t,p[0],p[1])?p=[]:l>2&&_(p[0],p[1],p[2])&&(p=[p[0]]),x(t,c(p,1),[])});w.exports=f},49975:w=>{w.exports=function k(){return[]}},63580:w=>{w.exports=function k(){return!1}},12232:(w,k,s)=>{var c=s(51467),x=1/0;w.exports=function _(f){return f?(f=c(f))===x||f===-x?17976931348623157e292*(f<0?-1:1):f==f?f:0:0===f?f:0}},44401:(w,k,s)=>{var c=s(12232);w.exports=function x(v){var _=c(v),f=_%1;return _==_?f?_-f:_:0}},51467:(w,k,s)=>{var c=s(83348),x=s(25940),v=s(44129),f=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,p=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(m){if("number"==typeof m)return m;if(v(m))return NaN;if(x(m)){var u="function"==typeof m.valueOf?m.valueOf():m;m=x(u)?u+"":u}if("string"!=typeof m)return 0===m?m:+m;m=c(m);var g=t.test(m);return g||p.test(m)?l(m.slice(2),g?2:8):f.test(m)?NaN:+m}},8067:(w,k,s)=>{var c=s(31989),x=s(16555);w.exports=function v(_){return c(_,x(_))}},73943:(w,k,s)=>{var c=s(93935);w.exports=function x(v){return null==v?"":c(v)}},89416:(w,k,s)=>{var c=s(96837),x=s(78858),v=s(45184),_=s(96517),f=s(29519),t=s(21503),p=s(80891),l=s(75946),h=s(25940),m=s(48159);w.exports=function u(g,C,A){var L=t(g),P=L||p(g)||m(g);if(C=_(C,4),null==A){var O=g&&g.constructor;A=P?L?new O:[]:h(g)&&l(O)?x(f(g)):{}}return(P?c:v)(g,function(R,U,z){return C(A,R,U,z)}),A}},68921:(w,k,s)=>{var c=s(50686),x=s(23269),v=s(80707),_=s(92377),f=x(function(t){return v(c(t,1,_,!0))});w.exports=f},51541:(w,k,s)=>{var c=s(73943),x=0;w.exports=function v(_){var f=++x;return c(_)+f}},90377:(w,k,s)=>{var c=s(19179),x=s(118);w.exports=function v(_){return null==_?[]:c(_,x(_))}},21617:(w,k,s)=>{var c=s(89719),x=s(38645);w.exports=function v(_,f){return x(_||[],f||[],c)}},34315:(w,k,s)=>{"use strict";const c=Symbol.prototype.valueOf,x=s(52872);w.exports=function v(h,m){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function p(h){const m=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(m):Buffer.from(m);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function f(h){const m=new h.constructor(h.byteLength);return new Uint8Array(m).set(new Uint8Array(h)),m}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,m){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function _(h){const m=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,m);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,k,s)=>{"use strict";function c(x){for(var v in x)k.hasOwnProperty(v)||(k[v]=x[v])}Object.defineProperty(k,"__esModule",{value:!0}),c(s(95085)),c(s(26243)),c(s(91786)),c(s(30225)),c(s(76767)),c(s(30345)),c(s(15675)),c(s(86461)),c(s(58802)),c(s(33900)),c(s(88866)),c(s(94655)),c(s(4068)),c(s(33858)),c(s(98237)),c(s(83292))},95085:function(w,k,s){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(k,"__esModule",{value:!0});var x=s(15675),v=function(f){function t(p){var l=f.call(this)||this,m=p;return m.trigger&&(l.trigger=m.trigger),m.kick&&(l.kick=m.kick),m.drag&&(l.drag=m.drag),m.on&&(l.on=m.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,f),t.prototype.trigger=function(p){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(p,l){return this},t}(x.Layout);k.LayoutAdaptor=v,k.adaptor=function _(f){return new v(f)}},83292:(w,k,s)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var c=s(15675),x=s(76767);k.gridify=function v(t,p,l,h){t.cola.start(0,0,0,10,!1);var m=function _(t,p,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),p.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(void 0!==u.groups?u.groups.map(function(g){return t.length+g.id}):[]).concat(void 0!==u.leaves?u.leaves.map(function(g){return g.index}):[])}});var m=t.concat(p).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(m,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return m.routeEdges(t.powerGraph.powerEdges,p,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},k.powerGraphGridLayout=function f(t,p,l){var h;t.nodes.forEach(function(C,A){return C.index=A}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){return A.padding=l})});var m=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,A){return C.index=A}),h.groups.forEach(function(C){var A=C.index=C.id+m;g.push(C),void 0!==C.leaves&&C.leaves.forEach(function(L){return u.push({source:A,target:L.index})}),void 0!==C.groups&&C.groups.forEach(function(L){return u.push({source:A,target:L.id+m})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(p).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(p).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){A.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,k,s)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var c=s(49346),x=s(22487);k.d3adaptor=function v(f){return!f||function _(f){return f.version&&null!==f.version.match(/^3\./)}(f)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(f)}},49346:function(w,k,s){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(k,"__esModule",{value:!0});var x=s(15675),v=function(f){function t(){var p=f.call(this)||this;p.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return m;this.call(m)},p}return c(t,f),t.prototype.trigger=function(p){var l={type:x.EventType[p.type],alpha:p.alpha,stress:p.stress};this.event[l.type](l)},t.prototype.kick=function(){var p=this;d3.timer(function(){return f.prototype.tick.call(p)})},t.prototype.on=function(p,l){return this.event.on("string"==typeof p?p:x.EventType[p],l),this},t}(x.Layout);k.D3StyleLayoutAdaptor=v,k.d3adaptor=function _(){return new v}},22487:function(w,k,s){"use strict";var _,c=this&&this.__extends||(_=function(f,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var h in l)l.hasOwnProperty(h)&&(p[h]=l[h])})(f,t)},function(f,t){function p(){this.constructor=f}_(f,t),f.prototype=null===t?Object.create(t):(p.prototype=t.prototype,new p)});Object.defineProperty(k,"__esModule",{value:!0});var x=s(15675),v=function(_){function f(t){var p=_.call(this)||this;p.d3Context=t,p.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return m;arguments[0].call(m)},p}return c(f,_),f.prototype.trigger=function(t){var p={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(p.type,p)},f.prototype.kick=function(){var t=this,p=this.d3Context.timer(function(){return _.prototype.tick.call(t)&&p.stop()})},f.prototype.on=function(t,p){return this.event.on("string"==typeof t?t:x.EventType[t],p),this},f}(x.Layout);k.D3StyleLayoutAdaptor=v},91786:(w,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var s=function(){function v(){this.locks={}}return v.prototype.add=function(_,f){this.locks[_]=f},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var _ in this.locks)return!1;return!0},v.prototype.apply=function(_){for(var f in this.locks)_(Number(f),this.locks[f])},v}();k.Locks=s;var c=function(){function v(_,f,t){void 0===t&&(t=null),this.D=f,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=_,this.k=_.length;var p=this.n=_[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new s,this.minD=Number.MAX_VALUE;for(var h,l=p;l--;)for(h=p;--h>l;){var m=f[l][h];m>0&&m1e-9)break;var O=this.offsetDir();for(p=0;p1&&R>U||!isFinite(U)){for(p=0;p1&&(z=1);var X=U*U,it=2*z*(R-U)/(X*R),nt=R*R*R,ut=2*-z/(X*nt);for(isFinite(it)||console.log(it),p=0;p0?K-(V+1)*tt:K-(V-1)*tt)&&P<=J&&(this.scaleSnapByMaxH?(this.g[p][g]+=u*st*P,this.H[p][g][g]+=u*st):(this.g[p][g]+=st*P,this.H[p][g][g]+=st))}this.locks.isEmpty()||this.locks.apply(function(Ct,Mt){for(p=0;p0;)for(var l=f;l-- >0;)t(p,l)},v.prototype.matrixApply=function(_){v.mApply(this.k,this.n,_)},v.prototype.computeNextPosition=function(_,f){var t=this;this.computeDerivatives(_);var p=this.computeStepSize(this.g);if(this.stepAndProject(_,f,this.g,p),this.project){this.matrixApply(function(h,m){return t.e[h][m]=_[h][m]-f[h][m]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(_,f,this.e,l)}},v.prototype.run=function(_){for(var f=Number.MAX_VALUE,t=!1;!t&&_-- >0;){var p=this.rungeKutta();t=Math.abs(f/p-1)>16)/this.range},v.prototype.getNextBetween=function(_,f){return _+this.getNext()*(f-_)},v}();k.PseudoRandom=x},30225:function(w,k,s){"use strict";var at,c=this&&this.__extends||(at=function(V,M){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,Mt){Ct.__proto__=Mt}||function(Ct,Mt){for(var Bt in Mt)Mt.hasOwnProperty(Bt)&&(Ct[Bt]=Mt[Bt])})(V,M)},function(V,M){function Ct(){this.constructor=V}at(V,M),V.prototype=null===M?Object.create(M):(Ct.prototype=M.prototype,new Ct)});Object.defineProperty(k,"__esModule",{value:!0});var x=s(4068),v=function at(){};k.Point=v;var _=function at(V,M,Ct,Mt){this.x1=V,this.y1=M,this.x2=Ct,this.y2=Mt};k.LineSegment=_;var f=function(at){function V(){return null!==at&&at.apply(this,arguments)||this}return c(V,at),V}(v);function t(at,V,M){return(V.x-at.x)*(M.y-at.y)-(M.x-at.x)*(V.y-at.y)}function p(at,V,M){return t(at,V,M)>0}function l(at,V,M){return t(at,V,M)<0}function C(at,V){var M=V.slice(0);return M.push(V[0]),{rtan:A(at,M),ltan:L(at,M)}}function A(at,V){var Ct,Mt,Bt,ie,M=V.length-1;if(l(at,V[1],V[0])&&!p(at,V[M-1],V[0]))return 0;for(Ct=0,Mt=M;;){if(Mt-Ct==1)return p(at,V[Ct],V[Mt])?Ct:Mt;if((ie=l(at,V[(Bt=Math.floor((Ct+Mt)/2))+1],V[Bt]))&&!p(at,V[Bt-1],V[Bt]))return Bt;p(at,V[Ct+1],V[Ct])?ie||p(at,V[Ct],V[Bt])?Mt=Bt:Ct=Bt:ie&&l(at,V[Ct],V[Bt])?Mt=Bt:Ct=Bt}}function L(at,V){var Ct,Mt,Bt,ie,M=V.length-1;if(p(at,V[M-1],V[0])&&!l(at,V[1],V[0]))return 0;for(Ct=0,Mt=M;;){if(Mt-Ct==1)return l(at,V[Ct],V[Mt])?Ct:Mt;if(ie=l(at,V[(Bt=Math.floor((Ct+Mt)/2))+1],V[Bt]),p(at,V[Bt-1],V[Bt])&&!ie)return Bt;l(at,V[Ct+1],V[Ct])?ie?l(at,V[Ct],V[Bt])?Mt=Bt:Ct=Bt:Mt=Bt:ie?Ct=Bt:p(at,V[Ct],V[Bt])?Mt=Bt:Ct=Bt}}function P(at,V,M,Ct,Mt,Bt){var Ht,ie;ie=Ct(at[Ht=M(V[0],at)],V);for(var Ut=!1;!Ut;){for(Ut=!0;Ht===at.length-1&&(Ht=0),!Mt(V[ie],at[Ht],at[Ht+1]);)++Ht;for(;0===ie&&(ie=V.length-1),!Bt(at[Ht],V[ie],V[ie-1]);)--ie,Ut=!1}return{t1:Ht,t2:ie}}function R(at,V){return P(at,V,A,L,p,l)}k.PolyPoint=f,k.isLeft=t,k.ConvexHull=function h(at){var Ct,V=at.slice(0).sort(function(Qt,me){return Qt.x!==me.x?me.x-Qt.x:me.y-Qt.y}),M=at.length,Bt=V[0].x;for(Ct=1;Ct=0&&V[Ct].x===ft;Ct--);for(Ut=Ct+1,Ct=Ht;++Ct<=Ut;)if(!(t(V[0],V[Ut],V[Ct])>=0&&Ct1&&!(t(ie[ie.length-2],ie[ie.length-1],V[Ct])>0);)ie.length-=1;0!=Ct&&ie.push(V[Ct])}vt!=Ut&&ie.push(V[vt]);var Nt=ie.length;for(Ct=Ut;--Ct>=Ht;)if(!(t(V[vt],V[Ht],V[Ct])>=0&&Ct>Ht)){for(;ie.length>Nt&&!(t(ie[ie.length-2],ie[ie.length-1],V[Ct])>0);)ie.length-=1;0!=Ct&&ie.push(V[Ct])}}return ie},k.clockwiseRadialSweep=function m(at,V,M){V.slice(0).sort(function(Ct,Mt){return Math.atan2(Ct.y-at.y,Ct.x-at.x)-Math.atan2(Mt.y-at.y,Mt.x-at.x)}).forEach(M)},k.tangent_PolyPolyC=P,k.LRtangent_PolyPolyC=function O(at,V){var M=R(V,at);return{t1:M.t2,t2:M.t1}},k.RLtangent_PolyPolyC=R,k.LLtangent_PolyPolyC=function U(at,V){return P(at,V,L,L,l,l)},k.RRtangent_PolyPolyC=function z(at,V){return P(at,V,A,A,p,p)};var X=function at(V,M){this.t1=V,this.t2=M};k.BiTangent=X;var it=function at(){};k.BiTangents=it;var nt=function(at){function V(){return null!==at&&at.apply(this,arguments)||this}return c(V,at),V}(v);k.TVGPoint=nt;var ut=function at(V,M,Ct,Mt){this.id=V,this.polyid=M,this.polyvertid=Ct,this.p=Mt,Mt.vv=this};k.VisibilityVertex=ut;var J=function(){function at(V,M){this.source=V,this.target=M}return at.prototype.length=function(){var V=this.source.p.x-this.target.p.x,M=this.source.p.y-this.target.p.y;return Math.sqrt(V*V+M*M)},at}();k.VisibilityEdge=J;var tt=function(){function at(V,M){if(this.P=V,this.V=[],this.E=[],M)this.V=M.V.slice(0),this.E=M.E.slice(0);else{for(var Ct=V.length,Mt=0;Mt0&&this.E.push(new J(Bt[Ht-1].vv,Ut))}Bt.length>1&&this.E.push(new J(Bt[0].vv,Bt[Bt.length-1].vv))}for(Mt=0;Mt0)return!0;return!1},at}();function $(at,V){for(var M=[],Ct=1,Mt=V.length;Ct=0&&ge>=0&&ve<0&&Fe>=0&&qe>=0&&De<0?Mt.ll=new X(Bt,Ht):me<=0&&ge<=0&&ve>0&&Fe<=0&&qe<=0&&De>0?Mt.rr=new X(Bt,Ht):me<=0&&ge>0&&ve<=0&&Fe>=0&&qe<0&&De>=0?Mt.rl=new X(Bt,Ht):me>=0&&ge<0&&ve>=0&&Fe<=0&&qe>0&&De<=0&&(Mt.lr=new X(Bt,Ht))}return Mt}function K(at,V){return!at.every(function(M){return!function Y(at,V){for(var M=1,Ct=V.length;M0)return!0}return!1}},76767:(w,k,s)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var c=s(4068),x=s(98237),v=s(33858),_=function l(h,m,u){this.id=h,this.rect=m,this.children=u,this.leaf=void 0===u||0===u.length};k.NodeWrapper=_;var f=function l(h,m,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=m,this.y=u,this.node=g,this.line=C};k.Vert=f;var t=function(){function l(h,m){this.s=h,this.t=m;var u=l.findMatch(h,m),g=m.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=m.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,m){for(var u=h.length,g=m.length,C={length:0,si:-1,ti:-1},A=new Array(u),L=0;LC.length&&(C.length=O,C.si=L-O+1,C.ti=P-O+1)}else A[L][P]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();k.LongestCommonSubsequence=t;var p=function(){function l(h,m,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(nt,ut){return new _(ut,m.getBounds(nt),m.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(ut){return g.nodes[ut].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){void 0===nt.parent&&(nt.parent=g.root,g.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,ut){return g.getDepth(nt)-g.getDepth(ut)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var ut=c.Rectangle.empty();nt.children.forEach(function(J){return ut=ut.union(g.nodes[J].rect)}),nt.rect=ut.inflate(g.groupPadding)});var A=this.midPoints(this.cols.map(function(nt){return nt.pos})),L=this.midPoints(this.rows.map(function(nt){return nt.pos})),P=A[0],O=A[A.length-1],R=L[0],U=L[L.length-1],z=this.rows.map(function(nt){return{x1:P,x2:O,y1:nt.pos,y2:nt.pos}}).concat(L.map(function(nt){return{x1:P,x2:O,y1:nt,y2:nt}})),X=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:R,y2:U}}).concat(A.map(function(nt){return{x1:nt,x2:nt,y1:R,y2:U}})),it=z.concat(X);it.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],z.forEach(function(nt){return X.forEach(function(ut){var J=new f(g.verts.length,ut.x1,nt.y1);nt.verts.push(J),ut.verts.push(J),g.verts.push(J);for(var tt=g.backToFront.length;tt-- >0;){var $=g.backToFront[tt],st=$.rect,Y=Math.abs(J.x-st.cx()),K=Math.abs(J.y-st.cy());if(Y0;){var g=u.filter(function(A){return A.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(A){return A.rect["c"+h]()}))};m.push(C),C.nodes.forEach(function(A){return u.splice(u.indexOf(A),1)})}return m.sort(function(A,L){return A.pos-L.pos}),m},l.prototype.getDepth=function(h){for(var m=0;h.parent!==this.root;)m++,h=h.parent;return m},l.prototype.midPoints=function(h){for(var m=h[1]-h[0],u=[h[0]-m/2],g=1;g.1)&&R.push(U={pos:P[0][m],segments:[]}),U.segments.push(P)}return R},l.nudgeSegs=function(h,m,u,g,C,A){var L=g.length;if(!(L<=1)){for(var P=g.map(function($){return new x.Variable($[0][h])}),O=[],R=0;R=0&&O.push(new x.Constraint(P[ut],P[J],A))}new x.Solver(P,O).solve(),P.forEach(function($,st){var Y=g[st],K=$.position();Y[0][h]=Y[1][h]=K;var rt=u[Y.edgeid];Y.i>0&&(rt[Y.i-1][1][h]=K),Y.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,m,u){return(m.x-h.x)*(u.y-h.y)-(m.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var m={},u=0;u=C.length||L.ti+L.length>=A.length)){m.push({l:u,r:g});continue}L.si+L.length>=C.length||L.ti+L.length>=A.length?(P=C[L.si+1],R=C[L.si-1],O=A[L.ti-1]):(P=C[L.si+L.length-2],O=C[L.si+L.length],R=A[L.ti+L.length]),l.isLeft(P,O,R)?m.push({l:g,r:u}):m.push({l:u,r:g})}}return l.getOrder(m)},l.makeSegments=function(h){function m(O){return{x:O.x,y:O.y}}for(var g=[],C=m(h[0]),A=1;A1&&at>1?1e3:0}).reverse().map(function(J){return u.verts[J]});return ut.push(this.nodes[C.id].ports[0]),ut.filter(function(J,tt){return!(tt0&&J.node===C&&ut[tt-1].node===C)})},l.getRoutePath=function(h,m,u,g){var L,P,O,rt,at,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var A=0;A0?P-=R/Math.abs(R)*m:O-=U/Math.abs(U)*m,C.routepath+="L "+P+" "+O+" ";var z=h[A+1],X=z[0].x,it=z[0].y;R=z[1].x-X,U=z[1].y-it;var tt,$,J=l.angleBetween2Lines(L,z)<0?1:0;Math.abs(R)>0?(tt=X+R/Math.abs(R)*m,$=it):(tt=X,$=it+U/Math.abs(U)*m);var st=Math.abs(tt-P),Y=Math.abs($-O);C.routepath+="A "+st+" "+Y+" 0 0 "+J+" "+tt+" "+$+" "}else{var K=[P,O];Math.abs(R)>0?(rt=[P-=R/Math.abs(R)*g,O+u],at=[P,O-u]):(rt=[P+u,O-=U/Math.abs(U)*g],at=[P-u,O]),C.routepath+="L "+P+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+rt[0]+" "+rt[1]+" L "+at[0]+" "+at[1])}}else R=(P=(L=h[0])[1].x)-L[0].x,U=(O=L[1].y)-L[0].y,K=[P,O],Math.abs(R)>0?(rt=[P-=R/Math.abs(R)*g,O+u],at=[P,O-u]):(rt=[P+u,O-=U/Math.abs(U)*g],at=[P-u,O]),C.routepath+="L "+P+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+rt[0]+" "+rt[1]+" L "+at[0]+" "+at[1]);return C},l}();k.GridRouter=p},30345:(w,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var s_GOLDEN_SECTION=(1+Math.sqrt(5))/2;k.applyPacking=function c(v,_,f,A,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=_,g=f,L=(C=void 0!==C?C:1,A=void 0!==A?A:0,0),P=0,O=0,R=0,U=[];function nt($,st){U=[],L=0,P=0,R=0;for(var Y=0;Y<$.length;Y++)ut($[Y],st);return Math.abs(function tt(){return L/P}()-C)}function ut($,st){for(var Y=void 0,K=0;K=$.height&&U[K].x+U[K].width+$.width+10-st<=1e-4){Y=U[K];break}U.push($),void 0!==Y?($.x=Y.x+Y.width+10,$.y=Y.bottom,$.space_left=$.height,$.bottom=$.y,Y.space_left-=$.height+10,Y.bottom+=$.height+10):($.y=R,R+=$.height+10,$.x=0,$.bottom=$.y,$.space_left=$.height),$.y+$.height-P>-1e-4&&(P=$.y+$.height-0),$.x+$.width-L>-1e-4&&(L=$.x+$.width-0)}0!=v.length&&(function z($){$.forEach(function(Y){!function st(Y){var K=Number.MAX_VALUE,rt=Number.MAX_VALUE,at=0,V=0;Y.array.forEach(function(M){var Ct=void 0!==M.width?M.width:A,Mt=void 0!==M.height?M.height:A;Ct/=2,Mt/=2,at=Math.max(M.x+Ct,at),K=Math.min(M.x-Ct,K),V=Math.max(M.y+Mt,V),rt=Math.min(M.y-Mt,rt)}),Y.width=at-K,Y.height=V-rt}(Y)})}(v),function it($,st){var Y=Number.POSITIVE_INFINITY,K=0;$.sort(function(vt,ft){return ft.height-vt.height});for(var rt=ie=O=$.reduce(function(vt,ft){return vt.widthO||Ht>1e-4;){if(1!=Mt){var ie=at-(at-rt)/s_GOLDEN_SECTION;M=nt($,ie)}if(0!=Mt){var Ut=rt+(at-rt)/s_GOLDEN_SECTION;Ct=nt($,Ut)}if(Bt=Math.abs(ie-Ut),Ht=Math.abs(M-Ct),MCt?(rt=ie,ie=Ut,M=Ct,Mt=1):(at=Ut,Ut=ie,Ct=M,Mt=0),V++>100)break}nt($,K)}(v),l&&function X($){$.forEach(function(st){var Y={x:0,y:0};st.array.forEach(function(at){Y.x+=at.x,Y.y+=at.y}),Y.x/=st.array.length,Y.y/=st.array.length;var rt_x=st.x-(Y.x-st.width/2)+u/2-L/2,rt_y=st.y-(Y.y-st.height/2)+g/2-P/2;st.array.forEach(function(at){at.x+=rt_x,at.y+=rt_y})})}(v))},k.separateGraphs=function x(v,_){for(var f={},t={},p=[],l=0,h=0;h<_.length;h++){var m=_[h],u=m.source,g=m.target;t[u.index]?t[u.index].push(g):t[u.index]=[g],t[g.index]?t[g.index].push(u):t[g.index]=[u]}for(h=0;h{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var l,u,c=s(33900),x=s(58802),v=s(91786),_=s(4068),f=s(33858),t=s(30225),p=s(30345);function h(u){return void 0!==u.leaves||void 0!==u.groups}(u=l=k.EventType||(k.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var m=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&void 0!==this.event[g.type]&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha0){var C=0;this._links.forEach(function(L){C=Math.max(C,L.source,L.target)}),this._nodes=new Array(++C);for(var A=0;A0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(L){return g*L.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(L){return g*L.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.start=function(g,C,A,L,P,O){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===A&&(A=0),void 0===L&&(L=0),void 0===P&&(P=!0),void 0===O&&(O=!0);var K,X=this.nodes().length,it=X+2*this._groups.length,ut=this._canvasSize[0],J=this._canvasSize[1],tt=new Array(it),$=new Array(it),st=null,Y=this._avoidOverlaps;this._nodes.forEach(function(Bt,Ht){Bt.index=Ht,void 0===Bt.x&&(Bt.x=ut/2,Bt.y=J/2),tt[Ht]=Bt.x,$[Ht]=Bt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?K=this._distanceMatrix:(K=new f.Calculator(it,this._links,u.getSourceIndex,u.getTargetIndex,function(Bt){return R.getLinkLength(Bt)}).DistanceMatrix(),st=v.Descent.createSquareMatrix(it,function(){return 2}),this._links.forEach(function(Bt){"number"==typeof Bt.source&&(Bt.source=R._nodes[Bt.source]),"number"==typeof Bt.target&&(Bt.target=R._nodes[Bt.target])}),this._links.forEach(function(Bt){var Ht=u.getSourceIndex(Bt),ie=u.getTargetIndex(Bt);st[Ht][ie]=st[ie][Ht]=Bt.weight||1}));var rt=v.Descent.createSquareMatrix(it,function(Bt,Ht){return K[Bt][Ht]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var U=X;this._groups.forEach(function(Ht){(function(Ht,ie,Ut,vt){st[Ht][ie]=st[ie][Ht]=Ut,rt[Ht][ie]=rt[ie][Ht]=.1})(U,U+1,R._groupCompactness),tt[U]=0,$[U++]=0,tt[U]=0,$[U++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var V=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,V=V.concat(x.generateDirectedEdgeConstraints(X,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([tt,$],rt),this._descent.locks.clear(),U=0;U0&&(this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,V).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(ut,J,O),this.avoidOverlaps(Y),Y&&(this._nodes.forEach(function(Bt,Ht){Bt.x=tt[Ht],Bt.y=$[Ht]}),this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,V,!0).projectFunctions(),this._nodes.forEach(function(Bt,Ht){tt[Ht]=Bt.x,$[Ht]=Bt.y})),this._descent.G=st,this._descent.run(A),L){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=X,this._descent.scaleSnapByMaxH=X!=it;var Mt=v.Descent.createSquareMatrix(it,function(Bt,Ht){return Bt>=X||Ht>=X?st[Bt][Ht]:0});this._descent.G=Mt,this._descent.run(L)}return this.updateNodePositions(),this.separateOverlappingComponents(ut,J,O),P?this.resume():this},u.prototype.initialLayout=function(g,C,A){if(this._groups.length>0&&g>0){var L=this._nodes.length,P=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),O=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,U){O.push({index:R.index=L+U})}),this._groups.forEach(function(R,U){void 0!==R.leaves&&R.leaves.forEach(function(z){return P.push({source:R.index,target:z.index})}),void 0!==R.groups&&R.groups.forEach(function(z){return P.push({source:R.index,target:z.index})})}),(new u).size(this.size()).nodes(O).links(P).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=O[R.index].x,A[R.index]=O[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,A){var L=this;if(void 0===A&&(A=!0),!this._distanceMatrix&&this._handleDisconnected){var P=this._descent.x[0],O=this._descent.x[1];this._nodes.forEach(function(U,z){U.x=P[z],U.y=O[z]});var R=p.separateGraphs(this._nodes,this._links);p.applyPacking(R,g,C,this._defaultNodeSize,1,A),this._nodes.forEach(function(U,z){L._descent.x[0][z]=U.x,L._descent.x[1][z]=U.y,U.bounds&&(U.bounds.setXCentre(U.x),U.bounds.setYCentre(U.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,A){void 0===C&&(C=5);var L=[],P=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),O={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},U=P.addPoint(O,g.source.index),z=P.addPoint(R,g.target.index);P.addEdgeIfVisible(O,R,g.source.index,g.target.index),void 0!==A&&A(P);var J=new f.Calculator(P.V.length,P.E,function(rt){return rt.source.id},function(rt){return rt.target.id},function(rt){return rt.length()}).PathFromNodeToNode(U.id,z.id);if(1===J.length||J.length===P.V.length){var tt=_.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);L=[tt.sourceIntersection,tt.arrowStart]}else{for(var $=J.length-2,st=P.V[J[$]].p,Y=P.V[J[0]].p,K=(L=[g.source.innerBounds.rayIntersection(st.x,st.y)],$);K>=0;--K)L.push(P.V[J[K]].p);L.push(_.makeEdgeTo(Y,g.target.innerBounds,C))}return L},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){void 0!==g.leaves&&g.leaves.forEach(function(A){A.fixed|=2,u.stopNode(A),A._dragGroupOffsetX=A.x-C.x,A._dragGroupOffsetY=A.y-C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.storeOffset(A,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(A){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),A.px=A._dragGroupOffsetX+C.x,A.py=A._dragGroupOffsetY+C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.drag(A,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),void 0!==g.groups&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();k.Layout=m},86461:(w,k,s)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var c=s(33858),x=s(91786),v=s(4068),_=s(58802),f=function(){function h(m,u){this.source=m,this.target=u}return h.prototype.actualLength=function(m){var u=this;return Math.sqrt(m.reduce(function(g,C){var A=C[u.target]-C[u.source];return g+A*A},0))},h}();k.Link3D=f,k.Node3D=function h(m,u,g){void 0===m&&(m=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=m,this.y=u,this.z=g};var p=function(){function h(m,u,g){var C=this;void 0===g&&(g=1),this.nodes=m,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var A=0;A{"use strict";function s(l,h){var m={};for(var u in l)m[u]={};for(var u in h)m[u]={};return Object.keys(m).length}function c(l,h){var m=0;for(var u in l)void 0!==h[u]&&++m;return m}function v(l,h,m,u){var g=function x(l,h){var m={},u=function(g,C){void 0===m[g]&&(m[g]={}),m[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),A=h.getTargetIndex(g);u(C,A),u(A,C)}),m}(l,u);l.forEach(function(C){var A=g[u.getSourceIndex(C)],L=g[u.getTargetIndex(C)];u.setLength(C,1+h*m(A,L))})}function p(l,h,m){var u=[],g=0,C=[],A=[];function L(J){J.index=J.lowlink=g++,C.push(J),J.onStack=!0;for(var tt=0,$=J.out;tt<$.length;tt++){var st=$[tt];void 0===st.index?(L(st),J.lowlink=Math.min(J.lowlink,st.lowlink)):st.onStack&&(J.lowlink=Math.min(J.lowlink,st.index))}if(J.lowlink===J.index){for(var Y=[];C.length&&((st=C.pop()).onStack=!1,Y.push(st),st!==J););A.push(Y.map(function(K){return K.id}))}}for(var P=0;P{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var s=function h(m,u,g){this.source=m,this.target=u,this.type=g};k.PowerEdge=s;var c=function(){function h(m,u,g,C){var A=this;if(this.linkAccessor=g,this.modules=new Array(m),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new f);for(var L=0;L=this.R))return this.merge(g.a,g.b,m),!0}},h.prototype.nEdges=function(m,u){var g=m.incoming.intersection(u.incoming),C=m.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(m){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(L){var P=u.modules[L.source],O=u.modules[L.target];m.push(new s(void 0===P.gid?L.source:g[P.gid],void 0===O.gid?L.target:g[O.gid],L.type))}),g},h.prototype.allEdges=function(){var m=[];return h.getEdges(this.roots[0],m),m},h.getEdges=function(m,u){m.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,m,u){h.forAll(function(g){if(g.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(g.id);else{var C=m;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var A in g.definition)C[A]=g.definition[A];m.groups||(m.groups=[]),m.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}k.Configuration=c;var v=function(){function h(m,u,g,C,A){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new f),this.id=m,this.outgoing=u,this.incoming=g,this.children=C,this.definition=A}return h.prototype.getEdges=function(m){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(A){m.push(new s(u.id,A.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return void 0!==this.definition},h}();k.Module=v;var f=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(m){var u=new h;return u.table=function _(h,m){var u={};for(var g in h)g in m&&(u[g]=h[g]);return u}(this.table,m.table),u},h.prototype.intersectionCount=function(m){return this.intersection(m).count()},h.prototype.contains=function(m){return m in this.table},h.prototype.add=function(m){this.table[m.id]=m},h.prototype.remove=function(m){delete this.table[m.id]},h.prototype.forAll=function(m){for(var u in this.table)m(this.table[u])},h.prototype.modules=function(){var m=[];return this.forAll(function(u){u.isPredefined()||m.push(u)}),m},h}();k.ModuleSet=f;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(m){var u=!1;return this.forAllModules(function(g){!u&&g.id==m&&(u=!0)}),u},h.prototype.add=function(m,u){(m in this.sets?this.sets[m]:this.sets[m]=new f).add(u),++this.n},h.prototype.remove=function(m,u){var g=this.sets[m];g.remove(u),0===g.count()&&delete this.sets[m],--this.n},h.prototype.forAll=function(m){for(var u in this.sets)m(this.sets[u],Number(u))},h.prototype.forAllModules=function(m){this.forAll(function(u,g){return u.forAll(m)})},h.prototype.intersection=function(m){var u=new h;return this.forAll(function(g,C){if(C in m.sets){var A=g.intersection(m.sets[C]),L=A.count();L>0&&(u.sets[C]=A,u.n+=L)}}),u},h}();k.LinkSets=t,k.getGroups=function l(h,m,u,g){for(var A=new c(h.length,m,u,g);A.greedyMerge(););var L=[],P=A.getGroupHierarchy(L);return L.forEach(function(O){var R=function(U){var z=O[U];"number"==typeof z&&(O[U]=h[z])};R("source"),R("target")}),{groups:P,powerEdges:L}}},88866:(w,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var s=function(){function x(v){this.elem=v,this.subheaps=[]}return x.prototype.toString=function(v){for(var _="",f=!1,t=0;t0)}return null}}return f.prototype.clear=function(){this._root=null,this.size=0},f.prototype.find=function(t){for(var p=this._root;null!==p;){var l=this._comparator(t,p.data);if(0===l)return p.data;p=p.get_child(l>0)}return null},f.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},f.prototype.upperBound=function(t){var p=this._comparator;return this._bound(t,function l(h,m){return p(m,h)})},f.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},f.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},f.prototype.iterator=function(){return new x(this)},f.prototype.each=function(t){for(var l,p=this.iterator();null!==(l=p.next());)t(l)},f.prototype.reach=function(t){for(var l,p=this.iterator();null!==(l=p.prev());)t(l)},f.prototype._bound=function(t,p){for(var l=this._root,h=this.iterator();null!==l;){var m=this._comparator(t,l.data);if(0===m)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(m>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(p(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},f}();k.TreeBase=c;var x=function(){function f(t){this._tree=t,this._ancestors=[],this._cursor=null}return f.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},f.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===p)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},f.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===p)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},f.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},f.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},f}();k.Iterator=x;var v=function(){function f(t){this.data=t,this.left=null,this.right=null,this.red=!0}return f.prototype.get_child=function(t){return t?this.right:this.left},f.prototype.set_child=function(t,p){t?this.right=p:this.left=p},f}(),_=function(f){function t(p){var l=f.call(this)||this;return l._root=null,l._comparator=p,l.size=0,l}return s(t,f),t.prototype.insert=function(p){var l=!1;if(null===this._root)this._root=new v(p),l=!0,this.size++;else{var h=new v(void 0),m=!1,u=!1,g=null,C=h,A=null,L=this._root;for(C.right=this._root;;){if(null===L?(L=new v(p),A.set_child(m,L),l=!0,this.size++):t.is_red(L.left)&&t.is_red(L.right)&&(L.red=!0,L.left.red=!1,L.right.red=!1),t.is_red(L)&&t.is_red(A)){var P=C.right===g;L===A.get_child(u)?C.set_child(P,t.single_rotate(g,!u)):C.set_child(P,t.double_rotate(g,!u))}var O=this._comparator(L.data,p);if(0===O)break;u=m,null!==g&&(C=g),g=A,A=L,L=L.get_child(m=O<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(p){if(null===this._root)return!1;var l=new v(void 0),h=l;h.right=this._root;for(var m=null,u=null,g=null,C=!0;null!==h.get_child(C);){var A=C;u=m,m=h,h=h.get_child(C);var L=this._comparator(p,h.data);if(C=L>0,0===L&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var P=t.single_rotate(h,C);m.set_child(A,P),m=P}else if(!t.is_red(h.get_child(!C))){var O=m.get_child(!A);if(null!==O)if(t.is_red(O.get_child(!A))||t.is_red(O.get_child(A))){var R=u.right===m;t.is_red(O.get_child(A))?u.set_child(R,t.double_rotate(m,A)):t.is_red(O.get_child(!A))&&u.set_child(R,t.single_rotate(m,A));var U=u.get_child(R);U.red=!0,h.red=!0,U.left.red=!1,U.right.red=!1}else m.red=!1,O.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,m.set_child(m.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(p){return null!==p&&p.red},t.single_rotate=function(p,l){var h=p.get_child(!l);return p.set_child(!l,h.get_child(l)),h.set_child(l,p),p.red=!0,h.red=!1,h},t.double_rotate=function(p,l){return p.set_child(!l,t.single_rotate(p.get_child(!l),!l)),t.single_rotate(p,l)},t}(c);k.RBTree=_},4068:function(w,k,s){"use strict";var J,c=this&&this.__extends||(J=function(tt,$){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(st,Y){st.__proto__=Y}||function(st,Y){for(var K in Y)Y.hasOwnProperty(K)&&(st[K]=Y[K])})(tt,$)},function(tt,$){function st(){this.constructor=tt}J(tt,$),tt.prototype=null===$?Object.create($):(st.prototype=$.prototype,new st)});Object.defineProperty(k,"__esModule",{value:!0});var x=s(98237),v=s(94655);function _(J){return J.bounds=void 0!==J.leaves?J.leaves.reduce(function(tt,$){return $.bounds.union(tt)},f.empty()):f.empty(),void 0!==J.groups&&(J.bounds=J.groups.reduce(function(tt,$){return _($).union(tt)},J.bounds)),J.bounds=J.bounds.inflate(J.padding),J.bounds}k.computeGroupBounds=_;var f=function(){function J(tt,$,st,Y){this.x=tt,this.X=$,this.y=st,this.Y=Y}return J.empty=function(){return new J(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},J.prototype.cx=function(){return(this.x+this.X)/2},J.prototype.cy=function(){return(this.y+this.Y)/2},J.prototype.overlapX=function(tt){var $=this.cx(),st=tt.cx();return $<=st&&tt.x0?st[0]:null},J.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},J.lineIntersection=function(tt,$,st,Y,K,rt,at,V){var M=st-tt,Ct=at-K,Mt=Y-$,Bt=V-rt,Ht=Bt*M-Ct*Mt;if(0==Ht)return null;var ie=tt-K,Ut=$-rt,ft=(Ct*Ut-Bt*ie)/Ht,Qt=(M*Ut-Mt*ie)/Ht;return ft>=0&&ft<=1&&Qt>=0&&Qt<=1?{x:tt+ft*M,y:$+ft*Mt}:null},J.prototype.inflate=function(tt){return new J(this.x-tt,this.X+tt,this.y-tt,this.Y+tt)},J}();k.Rectangle=f,k.makeEdgeBetween=function t(J,tt,$){var st=J.rayIntersection(tt.cx(),tt.cy())||{x:J.cx(),y:J.cy()},Y=tt.rayIntersection(J.cx(),J.cy())||{x:tt.cx(),y:tt.cy()},K=Y.x-st.x,rt=Y.y-st.y,at=Math.sqrt(K*K+rt*rt),V=at-$;return{sourceIntersection:st,targetIntersection:Y,arrowStart:{x:st.x+V*K/at,y:st.y+V*rt/at}}},k.makeEdgeTo=function p(J,tt,$){var st=tt.rayIntersection(J.x,J.y);st||(st={x:tt.cx(),y:tt.cy()});var Y=st.x-J.x,K=st.y-J.y,rt=Math.sqrt(Y*Y+K*K);return{x:st.x-$*Y/rt,y:st.y-$*K/rt}};var l=function J(tt,$,st){this.v=tt,this.r=$,this.pos=st,this.prev=u(),this.next=u()},h=function J(tt,$,st){this.isOpen=tt,this.v=$,this.pos=st};function m(J,tt){return J.pos>tt.pos?1:J.pos0&&(J[st].insert(K),K[Y].insert(J))};$("next","prev"),$("prev","next")}};function A(J,tt,$,st){void 0===st&&(st=!1);var Y=J.padding,K=void 0!==J.groups?J.groups.length:0,rt=void 0!==J.leaves?J.leaves.length:0,at=K?J.groups.reduce(function(ge,ve){return ge.concat(A(ve,tt,$,!0))},[]):[],V=(st?2:0)+rt+K,M=new Array(V),Ct=new Array(V),Mt=0,Bt=function(ge,ve){Ct[Mt]=ge,M[Mt++]=ve};if(st){var Ht=J.bounds,ie=tt.getCentre(Ht),Ut=tt.getSize(Ht)/2,vt=tt.getOpen(Ht),ft=tt.getClose(Ht),Nt=ie-Ut+Y/2,Qt=ie+Ut-Y/2;J.minVar.desiredPosition=Nt,Bt(tt.makeRect(vt,ft,Nt,Y),J.minVar),J.maxVar.desiredPosition=Qt,Bt(tt.makeRect(vt,ft,Qt,Y),J.maxVar)}rt&&J.leaves.forEach(function(ge){return Bt(ge.bounds,ge.variable)}),K&&J.groups.forEach(function(ge){var ve=ge.bounds;Bt(tt.makeRect(tt.getOpen(ve),tt.getClose(ve),tt.getCentre(ve),tt.getSize(ve)),ge.minVar)});var me=L(Ct,M,tt,$);return K&&(M.forEach(function(ge){ge.cOut=[],ge.cIn=[]}),me.forEach(function(ge){ge.left.cOut.push(ge),ge.right.cIn.push(ge)}),J.groups.forEach(function(ge){var ve=(ge.padding-tt.getSize(ge.bounds))/2;ge.minVar.cIn.forEach(function(Fe){return Fe.gap+=ve}),ge.minVar.cOut.forEach(function(Fe){Fe.left=ge.maxVar,Fe.gap+=ve})})),at.concat(me)}function L(J,tt,$,st){var Y,K=J.length,rt=2*K;console.assert(tt.length>=K);var at=new Array(rt);for(Y=0;Yat[st]&&(at[st]=V)}rt=at})}},J.prototype.createAlignment=function(tt){var $=this,st=this.nodes[tt.offsets[0].node].variable;this.makeFeasible(tt);var Y="x"===tt.axis?this.xConstraints:this.yConstraints;tt.offsets.slice(1).forEach(function(K){Y.push(new x.Constraint(st,$.nodes[K.node].variable,K.offset,!0))})},J.prototype.createConstraints=function(tt){var $=this,st=function(Y){return void 0===Y.type||"separation"===Y.type};this.xConstraints=tt.filter(function(Y){return"x"===Y.axis&&st(Y)}).map(function(Y){return $.createSeparation(Y)}),this.yConstraints=tt.filter(function(Y){return"y"===Y.axis&&st(Y)}).map(function(Y){return $.createSeparation(Y)}),tt.filter(function(Y){return"alignment"===Y.type}).forEach(function(Y){return $.createAlignment(Y)})},J.prototype.setupVariablesAndBounds=function(tt,$,st,Y){this.nodes.forEach(function(K,rt){K.fixed?(K.variable.weight=K.fixedWeight?K.fixedWeight:1e3,st[rt]=Y(K)):K.variable.weight=1;var at=(K.width||0)/2,V=(K.height||0)/2,M=tt[rt],Ct=$[rt];K.bounds=new f(M-at,M+at,Ct-V,Ct+V)})},J.prototype.xProject=function(tt,$,st){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(tt,$,tt,st,function(Y){return Y.px},this.xConstraints,z,function(Y){return Y.bounds.setXCentre(st[Y.variable.index]=Y.variable.position())},function(Y){var K=st[Y.minVar.index]=Y.minVar.position(),rt=st[Y.maxVar.index]=Y.maxVar.position(),at=Y.padding/2;Y.bounds.x=K-at,Y.bounds.X=rt+at})},J.prototype.yProject=function(tt,$,st){!this.rootGroup&&!this.yConstraints||this.project(tt,$,$,st,function(Y){return Y.py},this.yConstraints,X,function(Y){return Y.bounds.setYCentre(st[Y.variable.index]=Y.variable.position())},function(Y){var K=st[Y.minVar.index]=Y.minVar.position(),rt=st[Y.maxVar.index]=Y.maxVar.position(),at=Y.padding/2;Y.bounds.y=K-at,Y.bounds.Y=rt+at})},J.prototype.projectFunctions=function(){var tt=this;return[function($,st,Y){return tt.xProject($,st,Y)},function($,st,Y){return tt.yProject($,st,Y)}]},J.prototype.project=function(tt,$,st,Y,K,rt,at,V,M){this.setupVariablesAndBounds(tt,$,Y,K),this.rootGroup&&this.avoidOverlaps&&(_(this.rootGroup),rt=rt.concat(at(this.rootGroup))),this.solve(this.variables,rt,st,Y),this.nodes.forEach(V),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(M),_(this.rootGroup))},J.prototype.solve=function(tt,$,st,Y){var K=new x.Solver(tt,$);K.setStartingPositions(st),K.setDesiredPositions(Y),K.solve()},J}();k.Projection=ut},33858:(w,k,s)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var c=s(88866),x=function t(p,l){this.id=p,this.distance=l},v=function t(p){this.id=p,this.neighbours=[]},_=function t(p,l,h){this.node=p,this.prev=l,this.d=h},f=function(){function t(p,l,h,m,u){this.n=p,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new v(g);for(g=this.es.length;g--;){var C=this.es[g],A=h(C),L=m(C),P=u(C);this.neighbours[A].neighbours.push(new x(L,P)),this.neighbours[L].neighbours.push(new x(A,P))}}return t.prototype.DistanceMatrix=function(){for(var p=new Array(this.n),l=0;lO&&(L.d=O,L.prev=C,h.reduceKey(L.q,L,function(U,z){return U.q=z}))}}return u},t}();k.Calculator=f},98237:(w,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var s=function(){function p(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return p.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},p.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},p}();k.PositionStats=s;var c=function(){function p(l,h,m,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=m,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=m,this.equality=u}return p.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},p}();k.Constraint=c;var x=function(){function p(l,h,m){void 0===h&&(h=1),void 0===m&&(m=1),this.desiredPosition=l,this.weight=h,this.scale=m,this.offset=0}return p.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},p.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},p.prototype.visitNeighbours=function(l,h){var m=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return m(u,u.right)}),this.cIn.forEach(function(u){return m(u,u.left)})},p}();k.Variable=x;var v=function(){function p(l){this.vars=[],l.offset=0,this.ps=new s(l.scale),this.addVariable(l)}return p.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},p.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},p.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},p.LAGRANGIAN_TOLERANCE=-1e-4,p.ZERO_UPPERBOUND=-1e-10,p}();k.Solver=f,k.removeOverlapInOneDimension=function t(p,l,h){for(var m=p.map(function(nt){return new x(nt.desiredCenter)}),u=[],g=p.length,C=0;C{i.d(P,{l:()=>p});var R=i(48966),m=i(32105),e=i(36908),s=i(10036),t=i(20449),D=i(64080),l=i(93075),n=i(5e3),M=i(51062),N=i(67322),b=i(98833),L=i(47423),y=i(25245),Y=i(69808),A=i(64877),Z=i(98380),I=i(20773);function T(_,g){if(1&_&&n._UZ(0,"app-users-list",14),2&_){const E=n.oxw(2);n.Q6J("displayedColumns",E.displayedColumns)("selection",E.selection)("tableId",E.tableId)("disableRouting",!0)("users",E.identities)}}function O(_,g){if(1&_&&(n.TgZ(0,"div"),n.YNc(1,T,1,5,"app-users-list",13),n.qZA()),2&_){const E=n.oxw();n.xp6(1),n.Q6J("ngIf",void 0!==E.identities&&E.identities.length>0)}}function c(_,g){1&_&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&_&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function u(_,g){1&_&&(n.TgZ(0,"perun-web-apps-alert",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&_&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function r(_,g){1&_&&n._UZ(0,"mat-spinner",17)}let p=(()=>{class _{constructor(E,C,J,Q,G,V){this.dialogRef=E,this.data=C,this.userManager=J,this.storeService=Q,this.notificator=G,this.translate=V,this.loading=!1,this.selection=new t.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.NI("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let E,C;this.loading=!0,this.isService?(E=this.selection.selected[0].id,C=this.userId):(E=this.userId,C=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(E,C).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let E=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];E=E.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,E).subscribe(C=>{this.identities=this.filterIdentities(C),this.loading=!1},()=>{this.loading=!1})}onKeyInput(E){"Enter"===E.key&&this.onSearchByString()}filterIdentities(E){return E.filter(this.isService?C=>!C.serviceUser:C=>C.serviceUser)}}return _.\u0275fac=function(E){return new(E||_)(n.Y36(R.so),n.Y36(R.WI),n.Y36(m.Fv),n.Y36(e.d6),n.Y36(e.V6),n.Y36(M.sK))},_.\u0275cmp=n.Xpm({type:_,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(E,C){1&E&&(n.TgZ(0,"div",0),n.NdJ("keyup",function(Q){return C.onKeyInput(Q)}),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n.TgZ(5,"mat-form-field",3),n._UZ(6,"input",4),n.ALo(7,"translate"),n.TgZ(8,"mat-error"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return C.onSearchByString()}),n.TgZ(12,"mat-icon"),n._uU(13,"search"),n.qZA(),n.qZA(),n.YNc(14,O,2,1,"div",6),n.YNc(15,c,3,3,"perun-web-apps-alert",7),n.YNc(16,u,3,3,"perun-web-apps-alert",8),n.qZA(),n.YNc(17,r,1,0,"mat-spinner",9),n.TgZ(18,"div",10),n.TgZ(19,"button",11),n.NdJ("click",function(){return C.onCancel()}),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"button",12),n.NdJ("click",function(){return C.onAdd()}),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.qZA(),n.qZA()),2&E&&(n.Tol(C.theme),n.xp6(2),n.Oqu(n.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+C.target)),n.xp6(4),n.s9C("placeholder",n.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),n.Q6J("formControl",C.searchCtrl),n.xp6(3),n.hij(" ",n.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),n.xp6(2),n.Q6J("disabled",C.loading),n.xp6(3),n.Q6J("ngIf",!C.loading),n.xp6(1),n.Q6J("ngIf",!C.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!C.loading&&C.firstSearchDone&&0===C.identities.length),n.xp6(1),n.Q6J("ngIf",C.loading),n.xp6(3),n.hij(" ",n.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===C.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[R.uh,R.xY,N.KE,b.Nt,l.Fj,l.JJ,l.oH,N.TO,L.lW,y.Hw,Y.O5,A.C,Z.w,I.$g,R.H8],pipes:[M.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),_})()},94814:(w,P,i)=>{i.d(P,{B:()=>I});var R=i(32105),m=i(48966),e=i(36908),s=i(32075),t=i(5e3),D=i(51062),l=i(69808),n=i(98380),M=i(47423),N=i(31359);function b(T,O){1&T&&t._UZ(0,"th",13)}function L(T,O){if(1&T&&(t.TgZ(0,"td",14),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&T){const c=O.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,c))}}function y(T,O){1&T&&t._UZ(0,"tr",15)}function Y(T,O){1&T&&t._UZ(0,"tr",16)}function A(T,O){1&T&&(t.TgZ(0,"perun-web-apps-alert",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&T&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function Z(T,O){1&T&&(t.TgZ(0,"perun-web-apps-alert",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&T&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let I=(()=>{class T{constructor(c,u,r,p,_,g){this.dialogRef=c,this.data=u,this.userManager=r,this.notificator=p,this.translate=_,this.store=g,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(u=>{this.disconnectingLastOwner=1===u.length})}onConfirm(){let c,u;this.isService?(c=this.dataSource.data[0].id,u=this.userId):(c=this.userId,u=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,u).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return T.\u0275fac=function(c){return new(c||T)(t.Y36(m.so),t.Y36(m.WI),t.Y36(R.Fv),t.Y36(e.V6),t.Y36(D.sK),t.Y36(e.d6))},T.\u0275cmp=t.Xpm({type:T,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,u){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.TgZ(4,"div",1),t.TgZ(5,"p"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",2),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"table",3),t.ynx(12,4),t.YNc(13,b,1,0,"th",5),t.YNc(14,L,3,3,"td",6),t.BQk(),t.YNc(15,y,1,0,"tr",7),t.YNc(16,Y,1,0,"tr",8),t.qZA(),t.YNc(17,A,3,3,"perun-web-apps-alert",9),t.YNc(18,Z,3,3,"perun-web-apps-alert",9),t.qZA(),t.TgZ(19,"div",10),t.TgZ(20,"button",11),t.NdJ("click",function(){return u.onCancel()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"button",12),t.NdJ("click",function(){return u.onConfirm()}),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+u.targetTitle)),t.xp6(2),t.Tol(u.theme),t.xp6(3),t.Oqu(t.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+u.targetDescription)),t.xp6(3),t.hij(" ",t.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),t.xp6(2),t.Q6J("dataSource",u.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",u.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",u.displayedColumns),t.xp6(1),t.Q6J("ngIf",u.disconnectingSelf),t.xp6(1),t.Q6J("ngIf",u.disconnectingLastOwner),t.xp6(3),t.hij(" ",t.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[m.uh,m.xY,s.BZ,s.w1,s.fO,s.ge,s.Dz,s.ev,s.as,s.XQ,s.nj,s.Gk,l.O5,n.w,m.H8,M.lW],pipes:[D.X$,N.d],styles:[""]}),T})()},29862:(w,P,i)=>{i.d(P,{x:()=>Z});var R=i(32105),m=i(48966),e=i(36908),s=i(93075),t=i(5e3),D=i(51062),l=i(67322),n=i(98833),M=i(69808),N=i(47423);function b(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function L(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function y(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function Y(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function A(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let Z=(()=>{class I{constructor(O,c,u,r,p){this.dialogRef=O,this.data=c,this.userService=u,this.notificator=r,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.NI(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.NI(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.NI(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.NI(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.NI(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return I.\u0275fac=function(O){return new(O||I)(t.Y36(m.so),t.Y36(m.WI),t.Y36(R.Fv),t.Y36(e.V6),t.Y36(D.sK))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,c){1&O&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-form-field"),t._UZ(6,"input",2),t.ALo(7,"translate"),t.YNc(8,b,3,3,"mat-error",3),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",2),t.ALo(11,"translate"),t.YNc(12,L,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t._UZ(14,"input",4),t.ALo(15,"translate"),t.YNc(16,y,3,3,"mat-error",3),t.qZA(),t.TgZ(17,"mat-form-field"),t._UZ(18,"input",2),t.ALo(19,"translate"),t.YNc(20,Y,3,3,"mat-error",3),t.qZA(),t.TgZ(21,"mat-form-field"),t._UZ(22,"input",5),t.ALo(23,"translate"),t.YNc(24,A,3,3,"mat-error",3),t.qZA(),t.qZA(),t.TgZ(25,"div",6),t.TgZ(26,"button",7),t.NdJ("click",function(){return c.onCancel()}),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"button",8),t.NdJ("click",function(){return c.onSave()}),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.qZA(),t.qZA()),2&O&&(t.Tol(c.theme),t.xp6(2),t.Oqu(t.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),t.xp6(4),t.s9C("placeholder",t.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),t.Q6J("formControl",c.titleBefore),t.xp6(2),t.Q6J("ngIf",c.titleBefore.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),t.Q6J("formControl",c.titleAfter),t.xp6(2),t.Q6J("ngIf",c.titleAfter.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),t.Q6J("formControl",c.firstName),t.xp6(2),t.Q6J("ngIf",c.firstName.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),t.Q6J("formControl",c.middleName),t.xp6(2),t.Q6J("ngIf",c.middleName.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),t.Q6J("formControl",c.lastName),t.xp6(2),t.Q6J("ngIf",c.lastName.invalid),t.xp6(3),t.hij(" ",t.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),t.xp6(1),t.hij(" ",t.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[m.xY,l.KE,n.Nt,s.Fj,s.JJ,s.oH,M.O5,l.TO,s.Q7,m.H8,N.lW],pipes:[D.X$],styles:[""]}),I})()},98973:(w,P,i)=>{i.d(P,{u:()=>Y});var R=i(36908),m=i(5e3),e=i(11735),s=i(53251),t=i(12651),D=i(69808),l=i(19191),n=i(51062);function M(A,Z){1&A&&(m._uU(0),m.ALo(1,"translate")),2&A&&m.hij(" ",m.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function N(A,Z){if(1&A&&m._UZ(0,"app-one-entity-attribute-page",5),2&A){const I=m.oxw();m.Q6J("entityId",I.userId)("entity","user")}}function b(A,Z){1&A&&(m._uU(0),m.ALo(1,"translate"),m.ALo(2,"translate")),2&A&&m.AsE(" ",m.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",m.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function L(A,Z){if(1&A&&m._UZ(0,"app-two-entity-attribute-page",6),2&A){const I=m.oxw(2);m.Q6J("firstEntity","user")("firstEntityId",I.userId)("secondEntity","facility")}}function y(A,Z){1&A&&(m.TgZ(0,"mat-tab"),m.YNc(1,b,3,6,"ng-template",2),m.YNc(2,L,1,3,"ng-template",3),m.qZA())}let Y=(()=>{class A{constructor(I,T,O){this.route=I,this.store=T,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(I=>{this.userId=Number(I.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return A.\u0275fac=function(I){return new(I||A)(m.Y36(e.gz),m.Y36(R.d6),m.Y36(R.x4))},A.\u0275cmp=m.Xpm({type:A,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(I,T){2&I&&m.ekj("router-component",T.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(I,T){1&I&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"mat-tab-group"),m.TgZ(4,"mat-tab",1),m.YNc(5,M,2,3,"ng-template",2),m.YNc(6,N,1,2,"ng-template",3),m.qZA(),m.YNc(7,y,3,0,"mat-tab",4),m.qZA()),2&I&&(m.xp6(1),m.Oqu(m.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),m.xp6(6),m.Q6J("ngIf",T.userFacilityAttAuth))},directives:[s.SP,s.uX,s.uD,s.Vc,t.t,D.O5,l.Y],pipes:[n.X$],styles:[""]}),A})()},85985:(w,P,i)=>{i.d(P,{u:()=>c});var R=i(36908),m=i(32105),e=i(10036),s=i(5e3),t=i(11735),D=i(69808),l=i(96214),n=i(7434),M=i(20773),N=i(24179),b=i(51062);function L(u,r){1&u&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&u&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function y(u,r){1&u&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&u&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function Y(u,r){1&u&&s._UZ(0,"mat-spinner",7)}const A=function(){return["id","vo","name","description"]};function Z(u,r){if(1&u&&s._UZ(0,"perun-web-apps-groups-list",8),2&u){const p=s.oxw();s.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",s.DdM(5,A))("filter",p.memberFilterValue)("tableId",p.tableId)}}function I(u,r){1&u&&s._UZ(0,"mat-spinner",7)}function T(u,r){if(1&u&&s._UZ(0,"perun-web-apps-groups-list",8),2&u){const p=s.oxw(2);s.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",s.DdM(5,A))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(u,r){if(1&u){const p=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return s.CHM(p),s.oxw().refreshAdminTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(g){return s.CHM(p),s.oxw().adminFilter(g)}),s.qZA(),s.YNc(6,I,1,0,"mat-spinner",3),s.YNc(7,T,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&u){const p=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",p.adminRefresh),s.xp6(1),s.Q6J("ngIf",!p.adminRefresh)}}let c=(()=>{class u{constructor(p,_,g,E,C){this.usersService=p,this.memberService=_,this.groupService=g,this.store=E,this.route=C,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=e.KE,this.adminTableId=e.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const _ of this.vos)this.memberService.getMemberByUser(_.id,this.userId).subscribe(g=>{this.groupService.getMemberGroups(g.id).subscribe(E=>{this.membersGroups=this.membersGroups.concat(E),this.vos.indexOf(_)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return u.\u0275fac=function(p){return new(p||u)(s.Y36(m.Fv),s.Y36(m.uq),s.Y36(m.ff),s.Y36(R.d6),s.Y36(t.gz))},u.\u0275cmp=s.Xpm({type:u,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,_){2&p&&s.ekj("router-component",_.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,_){1&p&&(s.YNc(0,L,3,3,"h1",0),s.YNc(1,y,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return _.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(E){return _.memberFilter(E)}),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",3),s.YNc(5,Z,1,6,"perun-web-apps-groups-list",4),s.YNc(6,O,8,6,"div",5)),2&p&&(s.Q6J("ngIf",_.showPrincipal),s.xp6(1),s.Q6J("ngIf",!_.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",_.memberRefresh),s.xp6(1),s.Q6J("ngIf",!_.memberRefresh),s.xp6(1),s.Q6J("ngIf",!_.showPrincipal))},directives:[D.O5,l.t,n.L,M.$g,N.W],pipes:[b.X$],styles:[""]}),u})()},74837:(w,P,i)=>{i.d(P,{j:()=>O});var R=i(32105),m=i(36908),e=i(10036),s=i(5e3),t=i(11735),D=i(69808),l=i(96214),n=i(7434),M=i(20773),N=i(87831),b=i(51062);function L(c,u){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function y(c,u){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function Y(c,u){1&c&&s._UZ(0,"mat-spinner",7)}function A(c,u){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const r=s.oxw();s.Q6J("displayedColumns",r.displayedColumns)("tableId",r.memberTableId)("filterValue",r.memberFilterValue)("vos",r.vosWhereIsMember)}}function Z(c,u){1&c&&s._UZ(0,"mat-spinner",7)}function I(c,u){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const r=s.oxw(2);s.Q6J("displayedColumns",r.displayedColumns)("tableId",r.adminTableId)("filterValue",r.adminFilterValue)("vos",r.vosWhereIsAdmin)}}function T(c,u){if(1&c){const r=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return s.CHM(r),s.oxw().refreshAdminTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(_){return s.CHM(r),s.oxw().applyAdminFilter(_)}),s.qZA(),s.YNc(6,Z,1,0,"mat-spinner",3),s.YNc(7,I,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const r=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.adminRefresh),s.xp6(1),s.Q6J("ngIf",!r.adminRefresh)}}let O=(()=>{class c{constructor(r,p,_,g){this.usersService=r,this.authResolver=p,this.store=_,this.route=g,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=e.YF,this.memberTableId=e.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(r=>this.userId=Number(r.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(r=>{this.vosWhereIsMember=r,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(r=>{this.vosWhereIsAdmin=r,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(r){this.memberFilterValue=r}applyAdminFilter(r){this.adminFilterValue=r}}return c.\u0275fac=function(r){return new(r||c)(s.Y36(R.Fv),s.Y36(m.x4),s.Y36(m.d6),s.Y36(t.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(r,p){2&r&&s.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(r,p){1&r&&(s.YNc(0,L,3,3,"h1",0),s.YNc(1,y,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return p.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(g){return p.applyMemberFilter(g)}),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",3),s.YNc(5,A,1,4,"perun-web-apps-vos-list",4),s.YNc(6,T,8,6,"div",5)),2&r&&(s.Q6J("ngIf",p.isMyProfile),s.xp6(1),s.Q6J("ngIf",!p.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",p.memberRefresh),s.xp6(1),s.Q6J("ngIf",!p.memberRefresh),s.xp6(1),s.Q6J("ngIf",!p.isMyProfile))},directives:[D.O5,l.t,n.L,M.$g,N.Z],pipes:[b.X$],styles:[""]}),c})()},17755:(w,P,i)=>{i.d(P,{Z:()=>r});var R=i(32105),m=i(32075),e=i(36908),s=i(64080),t=i(9244),D=i(16074),l=i(5e3),n=i(11735),M=i(48966),N=i(69808),b=i(9224),L=i(47423),y=i(25245),Y=i(71135),A=i(51062);function Z(p,_){1&p&&l._UZ(0,"th",12)}function I(p,_){if(1&p&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&p){const g=_.$implicit;l.xp6(1),l.hij(" ",g.displayName,": ")}}function T(p,_){1&p&&l._UZ(0,"th",12)}function O(p,_){if(1&p){const g=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){return l.CHM(g),l.oxw(2).changeEmail()}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA(),l.qZA(),l.qZA()}if(2&p){const g=_.$implicit;l.xp6(1),l.hij(" ",g.value," ")}}function c(p,_){1&p&&l._UZ(0,"tr",16)}function u(p,_){if(1&p&&(l.TgZ(0,"div",2),l.TgZ(1,"mat-card",3),l.TgZ(2,"mat-card-header"),l.TgZ(3,"mat-card-title"),l.TgZ(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(7,"mat-card-content"),l.TgZ(8,"table",5),l.ynx(9,6),l.YNc(10,Z,1,0,"th",7),l.YNc(11,I,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,T,1,0,"th",7),l.YNc(14,O,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&p){const g=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",g.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",g.displayedColumns)}}let r=(()=>{class p{constructor(g,E,C,J,Q){this.userService=g,this.attributeService=E,this.storeService=C,this.route=J,this.dialog=Q,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(g=>{g.userId?this.userService.getUserById(Number(g.userId)).subscribe(E=>{this.user=E,this.isServiceUser=E.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(E=>{this.preferredMail=E,this.handleMailNotDefined(),this.mailDataSource=new m.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const g=(0,t.kZ)();g.width="350px",g.data={userId:this.userID},this.dialog.open(D.gr,g).afterClosed().subscribe(C=>{C&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(J=>{this.preferredMail=J,this.handleMailNotDefined(),this.mailDataSource=new m.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,t.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(g){return new(g||p)(l.Y36(R.Fv),l.Y36(R.H8),l.Y36(e.d6),l.Y36(n.gz),l.Y36(M.uw))},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(g,E){2&g&&l.ekj("router-component",E.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(g,E){1&g&&(l.YNc(0,u,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&g&&(l.Q6J("ngIf",E.inMyProfile),l.xp6(1),l.Q6J("items",E.navItems)("size","small"))},directives:[N.O5,b.a8,b.dk,b.n5,b.dn,m.BZ,m.w1,m.fO,m.ge,m.Dz,m.ev,L.lW,y.Hw,m.nj,m.Gk,Y.L],pipes:[A.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(w,P,i)=>{i.d(P,{t:()=>Ve});var R=i(32105),m=i(36908),e=i(5e3),s=i(11735),t=i(69808),D=i(20773),l=i(81125),n=i(25245),M=i(9224),N=i(87831),b=i(64877),L=i(24179),y=i(62109),Y=i(74010),A=i(38383),Z=i(51062);function I(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function T(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function O(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function c(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_VOS")," "))}function u(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function r(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const p=function(){return["user","id","name"]};function _(a,h){if(1&a&&(e.TgZ(0,"div",11),e.YNc(1,u,3,3,"div",2),e.YNc(2,r,3,3,"div",2),e._UZ(3,"app-users-list",12),e.qZA()),2&a){const o=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!o.showDescription),e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,p))("disableRouting",!0)("users",o.users)}}const g=function(){return["id","name","shortName"]};function E(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,O,3,3,"div",2),e.YNc(2,c,3,3,"div",2),e._UZ(3,"perun-web-apps-vos-list",9),e.YNc(4,_,4,6,"div",10),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!o.showDescription),e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,g))("vos",o.vos),e.xp6(1),e.Q6J("ngIf",o.users.length)}}function C(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getSelfData()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,T,1,0,"mat-spinner",1),e.YNc(8,E,5,6,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SELF")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function J(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Q(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const G=function(){return["id","vo","name","description"]};function V(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Q,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",14),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,G))("groups",o.groups)}}function ee(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminGroupsAndVos()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",13),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,J,1,0,"mat-spinner",1),e.YNc(8,V,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.GROUPADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function te(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function ne(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const se=function(){return["id","recent","vo","name","description"]};function ie(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ne,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",14),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,se))("groups",o.groups)}}function ae(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",13),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,te,1,0,"mat-spinner",1),e.YNc(8,ie,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.GROUPOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function oe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function z(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function H(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,z,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function re(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminVos()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,oe,1,0,"mat-spinner",1),e.YNc(8,H,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.VOADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function _e(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function le(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function pe(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,le,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function ce(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("VOOBSERVER").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,_e,1,0,"mat-spinner",1),e.YNc(8,pe,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.VOOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function me(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function ue(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function de(a,h){if(1&a&&(e.TgZ(0,"div"),e.TgZ(1,"div"),e.YNc(2,ue,3,3,"div",2),e._UZ(3,"perun-web-apps-vos-list",9),e.qZA(),e.qZA()),2&a){const o=e.oxw(3);e.xp6(2),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function ge(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,me,1,0,"mat-spinner",1),e.YNc(8,de,4,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function fe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function he(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function Ee(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,he,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function X(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("TOPGROUPCREATOR").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,fe,1,0,"mat-spinner",1),e.YNc(8,Ee,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Ie(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Te(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const q=function(){return["id","name","vo","facility","description"]};function ve(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Te,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function Ue(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCEADMIN")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Ie,1,0,"mat-spinner",1),e.YNc(8,ve,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCEADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Ae(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Ce(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function Re(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Ce,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function Oe(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCEOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Ae,1,0,"mat-spinner",1),e.YNc(8,Re,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function xe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Se(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function Ze(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Se,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function De(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,xe,1,0,"mat-spinner",1),e.YNc(8,Ze,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Me(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function $(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const k=function(){return["id","name","description"]};function be(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,$,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",19),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,k))("facilities",o.facilities)}}function Ne(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminFacilities()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",18),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Me,1,0,"mat-spinner",1),e.YNc(8,be,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.FACILITYADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Pe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Le(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function ye(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Le,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",19),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,k))("facilities",o.facilities)}}function Ye(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getFacilities("FACILITYOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",18),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Pe,1,0,"mat-spinner",1),e.YNc(8,ye,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.FACILITYOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Be(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Je(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const Fe=function(){return["id","fullName","sponsored"]};function Qe(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Je,3,3,"div",2),e._UZ(2,"perun-web-apps-members-list",20),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,Fe))("members",o.members)}}function f(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getMembers()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Be,1,0,"mat-spinner",1),e.YNc(8,Qe,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SPONSORSHIP")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function x(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function d(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function S(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,d,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function F(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("SPONSOR").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,x,1,0,"mat-spinner",1),e.YNc(8,S,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SPONSOR")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function K(a,h){1&a&&(e.TgZ(0,"mat-expansion-panel"),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Oqu(e.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function We(a,h){1&a&&(e.TgZ(0,"mat-expansion-panel"),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Oqu(e.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function we(a,h){if(1&a&&(e.TgZ(0,"p",22),e._uU(1),e.qZA()),2&a){const o=h.$implicit;e.xp6(1),e.AsE("",o[0]," ids: ",o[1],"")}}function Ke(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){const B=e.CHM(o).$implicit;return e.oxw(2).getInnerKeys(B)}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.qZA(),e.qZA(),e.qZA(),e.YNc(6,we,2,2,"p",21),e.qZA()}if(2&a){const o=h.$implicit,v=e.oxw(2);e.xp6(5),e.Oqu(o),e.xp6(1),e.Q6J("ngForOf",v.currentIds)}}function Ge(a,h){if(1&a&&(e.TgZ(0,"mat-accordion"),e.YNc(1,C,9,5,"mat-expansion-panel",4),e.YNc(2,ee,9,5,"mat-expansion-panel",4),e.YNc(3,ae,9,5,"mat-expansion-panel",4),e.YNc(4,re,9,5,"mat-expansion-panel",4),e.YNc(5,ce,9,5,"mat-expansion-panel",4),e.YNc(6,ge,9,5,"mat-expansion-panel",4),e.YNc(7,X,9,5,"mat-expansion-panel",4),e.YNc(8,Ue,9,5,"mat-expansion-panel",4),e.YNc(9,Oe,9,5,"mat-expansion-panel",4),e.YNc(10,De,9,5,"mat-expansion-panel",4),e.YNc(11,Ne,9,5,"mat-expansion-panel",4),e.YNc(12,Ye,9,5,"mat-expansion-panel",4),e.YNc(13,f,9,5,"mat-expansion-panel",4),e.YNc(14,F,9,5,"mat-expansion-panel",4),e.YNc(15,K,7,3,"mat-expansion-panel",2),e.YNc(16,We,7,3,"mat-expansion-panel",2),e.YNc(17,Ke,7,2,"mat-expansion-panel",5),e.qZA()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.isSelf),e.xp6(1),e.Q6J("ngIf",o.isGroupAdmin),e.xp6(1),e.Q6J("ngIf",o.isGroupObserver),e.xp6(1),e.Q6J("ngIf",o.isVoAdmin),e.xp6(1),e.Q6J("ngIf",o.isVoObserver),e.xp6(1),e.Q6J("ngIf",o.isTrustedFacilityAdmin),e.xp6(1),e.Q6J("ngIf",o.isTopGroupCreator),e.xp6(1),e.Q6J("ngIf",o.isResourceAdmin),e.xp6(1),e.Q6J("ngIf",o.isResourceObserver),e.xp6(1),e.Q6J("ngIf",o.isResourceSelfService),e.xp6(1),e.Q6J("ngIf",o.isFacilityAdmin),e.xp6(1),e.Q6J("ngIf",o.isFacilityObserver),e.xp6(1),e.Q6J("ngIf",o.hasSponsorship),e.xp6(1),e.Q6J("ngIf",o.isSponsor),e.xp6(1),e.Q6J("ngIf",o.isPerunAdmin),e.xp6(1),e.Q6J("ngIf",o.isPerunObserver),e.xp6(1),e.Q6J("ngForOf",o.roleNames)}}let Ve=(()=>{class a{constructor(o,v,U,B,W,j,He,qe,je){this.authzResolverService=o,this.usersManagerService=v,this.vosManagerService=U,this.facilitiesManagerService=B,this.resourcesManagerService=W,this.membersManagerService=j,this.groupsManagerService=He,this.route=qe,this.store=je,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(o=>{o.userId?(this.userId=Number(o.userId),this.authzResolverService.getUserRoleNames(this.userId).subscribe(v=>{this.roleNames=v.map(U=>U.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(U=>{this.prepareRoles(U)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.groups=o;const v=[...new Set(this.groups.map(U=>U.voId))];this.getVos(v)})}getVos(o){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(o).subscribe(v=>{this.vos=v,this.loading=!1})}getInnerKeys(o){if(this.roles.get(o)){const v=this.roles.get(o).entries(),U=[];let B=v.next().value;for(;B;)U.push(B),B=v.next().value;this.currentIds=U}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(o=>{this.vos=o,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(o=>{this.facilities=o.map(v=>({facility:v})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;const v=this.roles.get("SELF").get("User");v?this.usersManagerService.getUsersByIds(v).subscribe(U=>{this.users=U,this.loading=!1}):this.loading=!1})}getResourcesData(o){this.loading=!0;const v=this.roles.get(o).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(v).subscribe(U=>{this.resources=U,this.vos=this.resources.map(B=>B.vo).filter((B,W,j)=>j.indexOf(B)===W),this.facilities=this.resources.map(B=>({facility:B.facility})).filter((B,W,j)=>j.indexOf(B)===W),this.loading=!1})}getMembers(){this.loading=!0;const o=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(o).subscribe(v=>{this.members=v,this.loading=!1})}getGroupsAndVos(o){this.loading=!0;const v=this.roles.get(o).get("Vo"),U=this.roles.get(o).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(U).subscribe(B=>{this.groups=B,this.vosManagerService.getVosByIds(v).subscribe(W=>{this.vos=W,this.loading=!1})})}getFacilities(o){this.loading=!0,this.facilities=[];const v=this.roles.get(o).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(v).subscribe(U=>{this.facilities=U.map(B=>({facility:B})),this.loading=!1})}prepareRoles(o){this.roleNames.forEach(v=>{const U=new Map;switch(Object.keys(o[v]).forEach(W=>{U.set(W,o[v][W])}),v){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(v,U)}),this.roleNames=this.roleNames.filter(v=>!this.roleFilter.includes(v)),this.outerLoading=!1}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(R.Ct),e.Y36(R.Fv),e.Y36(R.YF),e.Y36(R.IQ),e.Y36(R.xk),e.Y36(R.uq),e.Y36(R.ff),e.Y36(s.gz),e.Y36(m.d6))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(o,v){2&o&&e.ekj("router-component",v.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"displayedColumns","disableRouting","users"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"displayedColumns","groups"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(o,v){1&o&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,I,1,0,"mat-spinner",1),e.YNc(4,Ge,18,17,"mat-accordion",2)),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",v.outerLoading),e.xp6(1),e.Q6J("ngIf",!v.outerLoading))},directives:[t.O5,D.$g,l.pp,l.ib,l.yz,l.yK,n.Hw,M.kc,N.Z,b.C,L.W,y.C,Y.X,A.O,t.sg],pipes:[Z.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),a})()},46597:(w,P,i)=>{i.d(P,{d:()=>O});var R=i(10036),m=i(32105),e=i(20449),s=i(9244),t=i(54668),D=i(94814),l=i(36908),n=i(5e3),M=i(48966),N=i(11735),b=i(96214),L=i(47423),y=i(69808),Y=i(64877),A=i(20773),Z=i(51062);function I(c,u){if(1&c&&(n._UZ(0,"app-users-list",6),n.ALo(1,"translate")),2&c){const r=n.oxw();n.Q6J("noUsersFoundLabel",n.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",r.disableRouting)("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("users",r.associatedUsers)}}function T(c,u){1&c&&n._UZ(0,"mat-spinner",7)}let O=(()=>{class c{constructor(r,p,_,g,E){this.dialog=r,this.router=p,this.authResolver=_,this.userManager=g,this.entityStorageService=E,this.loading=!1,this.selection=new e.Ov(!1,[]),this.associatedUsers=[],this.tableId=R.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(r=>{this.associatedUsers=r,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(r=>{this.associatedUsers=r,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(t.l,r).afterClosed().subscribe(_=>{_&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,r).afterClosed().subscribe(_=>{_&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(r){return new(r||c)(n.Y36(M.uw),n.Y36(N.F0),n.Y36(l.x4),n.Y36(m.Fv),n.Y36(l.fb))},c.\u0275cmp=n.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(r,p){1&r&&(n.TgZ(0,"div"),n.TgZ(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshTable()}),n.qZA(),n.TgZ(5,"button",2),n.NdJ("click",function(){return p.onAdd()}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return p.onRemove()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.YNc(11,I,2,8,"app-users-list",4),n.qZA(),n.YNc(12,T,1,0,"mat-spinner",5)),2&r&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),n.xp6(2),n.Q6J("disabled",0===p.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),n.xp6(2),n.Q6J("ngIf",!p.loading),n.xp6(1),n.Q6J("ngIf",p.loading))},directives:[b.t,L.lW,y.O5,Y.C,A.$g],pipes:[Z.X$],styles:[""]}),c})()},97453:(w,P,i)=>{i.d(P,{R:()=>u});var R=i(20449),m=i(32105),e=i(10036),s=i(9244),t=i(54668),D=i(94814),l=i(36908),n=i(5e3),M=i(11735),N=i(48966),b=i(96214),L=i(69808),y=i(47423),Y=i(20773),A=i(64877),Z=i(51062);function I(r,p){if(1&r){const _=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){return n.CHM(_),n.oxw().onAdd()}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&r&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function T(r,p){if(1&r){const _=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(_),n.oxw().onRemove()}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&r){const _=n.oxw();n.Q6J("disabled",0===_.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(r,p){1&r&&n._UZ(0,"mat-spinner",8)}function c(r,p){if(1&r&&(n._UZ(0,"app-users-list",9),n.ALo(1,"translate")),2&r){const _=n.oxw();n.Q6J("noUsersFoundLabel",n.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",_.displayedColumns)("selection",_.selection)("tableId",_.tableId)("routeToAdmin",_.routeToAdminSection)("users",_.identities)}}let u=(()=>{class r{constructor(_,g,E,C,J,Q){this.route=_,this.dialog=g,this.router=E,this.userManager=C,this.authResolver=J,this.store=Q,this.loading=!1,this.selection=new R.Ov(!1,[]),this.identities=[],this.tableId=e.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(_=>{this.userId=Number(_.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(_=>{this.identities=_,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const _=(0,s.kZ)();_.width="1250px",_.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(t.l,_).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onRemove(){const _=(0,s.kZ)();_.width="650px",_.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,_).afterClosed().subscribe(E=>{E&&this.refreshTable()})}}return r.\u0275fac=function(_){return new(_||r)(n.Y36(M.gz),n.Y36(N.uw),n.Y36(M.F0),n.Y36(m.Fv),n.Y36(l.x4),n.Y36(l.d6))},r.\u0275cmp=n.Xpm({type:r,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(_,g){1&_&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return g.refreshTable()}),n.qZA(),n.YNc(4,I,3,3,"button",2),n.YNc(5,T,3,4,"button",3),n.YNc(6,O,1,0,"mat-spinner",4),n.YNc(7,c,2,8,"app-users-list",5)),2&_&&(n.xp6(1),n.Oqu(n.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),n.xp6(3),n.Q6J("ngIf",g.addIdentity),n.xp6(1),n.Q6J("ngIf",g.removeIdentity),n.xp6(1),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading))},directives:[b.t,L.O5,y.lW,Y.$g,A.C],pipes:[Z.X$],styles:[""]}),r})()},46142:(w,P,i)=>{i.r(P),i.d(P,{UsersModule:()=>Qe});var R=i(69808),m=i(11735),e=i(74837),s=i(85985),t=i(5e3),D=i(61283);let l=(()=>{class f{}return f.\u0275fac=function(d){return new(d||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(d,S){2&d&&t.ekj("router-component",S.true)},decls:1,vars:0,template:function(d,S){1&d&&t._UZ(0,"app-animated-router-outlet")},directives:[D.A],styles:[""]}),f})();var n=i(32105),M=i(20773),N=i(71135);function b(f,x){1&f&&t._UZ(0,"mat-spinner",2)}function L(f,x){if(1&f&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&f){const d=t.oxw();t.xp6(1),t.Q6J("items",d.navItems)("size","small")}}let y=(()=>{class f{constructor(d,S){this.route=d,this.userManager=S,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(d=>{const S=Number(d.userId);this.userManager.getUserById(S).subscribe(F=>{this.isServiceUser=F.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(m.gz),t.Y36(n.Fv))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(d,S){2&d&&t.ekj("router-component",S.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(d,S){1&d&&(t.YNc(0,b,1,0,"mat-spinner",0),t.YNc(1,L,2,2,"div",1)),2&d&&(t.Q6J("ngIf",S.loading),t.xp6(1),t.Q6J("ngIf",!S.loading))},directives:[R.O5,M.$g,N.L],styles:[""]}),f})();var Y=i(98973),A=i(387),Z=i(9244),I=i(6335),T=i(67322),O=i(74107),c=i(90508),u=i(51062);function r(f,x){if(1&f&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&f){const d=x.$implicit;t.Q6J("value",d),t.xp6(1),t.hij(" ",d," ")}}let p=(()=>{class f{constructor(d){this.guiConfigService=d,this.tablePageSizeOptions=Z.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(I.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(I.Rc,this.preferredTablePageSize)}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(I.Ng))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(d,S){1&d&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"mat-form-field",2),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",3),t.NdJ("valueChange",function(){return S.updatePreferredTablePageSize()})("valueChange",function(K){return S.preferredTablePageSize=K}),t.YNc(9,r,2,2,"mat-option",4),t.qZA(),t.qZA(),t.qZA()),2&d&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),t.xp6(5),t.Oqu(t.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),t.xp6(2),t.Q6J("value",S.preferredTablePageSize),t.xp6(1),t.Q6J("ngForOf",S.tablePageSizeOptions))},directives:[T.KE,T.hX,O.gD,R.sg,c.ey],pipes:[u.X$],styles:[""]}),f})();var _=i(17755),g=i(36908),E=i(77968),C=i(4235),J=i(25245),Q=i(29772),G=i(31359);const V=function(){return{color:"black"}},ee=function(){return["/myProfile"]};function te(f,x){if(1&f&&(t.TgZ(0,"div",1),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"div",2),t._UZ(3,"mat-icon",3),t.ALo(4,"translate"),t.TgZ(5,"div",4),t.TgZ(6,"div",5),t.TgZ(7,"a",6),t._uU(8),t.ALo(9,"userFullName"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"span",8),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&f){const d=t.oxw();t.xp6(3),t.s9C("matTooltip",t.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),t.Q6J("ngStyle",t.DdM(16,V)),t.xp6(4),t.Q6J("routerLink",t.DdM(17,ee)),t.xp6(1),t.hij(" ",t.lcZ(9,10,d.user)," "),t.xp6(3),t.hij(" \xa0#",d.user.id," "),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",t.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",d.getUserType()," ")}}let ne=(()=>{class f{constructor(d,S,F){this.sideMenuService=d,this.store=S,this.router=F}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(E.D),t.Y36(g.d6),t.Y36(m.F0))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(d,S){1&d&&t.YNc(0,te,17,18,"div",0),2&d&&t.Q6J("ngIf",void 0!==S.user)},directives:[R.O5,C.W,J.Hw,Q.gM,R.PC,m.yS,D.A],pipes:[u.X$,G.d],styles:[""]}),f})();var se=i(6097),ie=i(97453),ae=i(69024),oe=i(29862),z=i(48966),H=i(47423);function re(f,x){1&f&&t._UZ(0,"mat-spinner",11)}function _e(f,x){if(1&f){const d=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(d),t.oxw(2).editUser()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}const le=function(){return{color:"black"}},pe=function(f){return["/myProfile/service-identities",f]};function ce(f,x){if(1&f&&(t.TgZ(0,"div",1),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,re,1,0,"mat-spinner",2),t.TgZ(3,"div",3),t._UZ(4,"mat-icon",4),t.ALo(5,"translate"),t.TgZ(6,"div",5),t.TgZ(7,"div",6),t.TgZ(8,"a",7),t._uU(9),t.ALo(10,"userFullName"),t.qZA(),t.TgZ(11,"span",8),t._uU(12),t.qZA(),t.YNc(13,_e,3,0,"button",9),t.qZA(),t.TgZ(14,"div"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"span",10),t._uU(18),t.ALo(19,"translate"),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(21,"app-animated-router-outlet"),t.qZA()),2&f){const d=t.oxw();t.xp6(2),t.Q6J("ngIf",d.loading),t.xp6(2),t.s9C("matTooltip",t.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,le)),t.xp6(4),t.Q6J("routerLink",t.VKq(23,pe,d.user.id)),t.xp6(1),t.hij(" ",t.lcZ(10,14,d.user)," "),t.xp6(3),t.hij(" \xa0#",d.user.id," "),t.xp6(1),t.Q6J("ngIf",d.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(16,16,"ADMIN_USER.UUID"),": ",d.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",t.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",d.getUserType()," ")}}let me=(()=>{class f{constructor(d,S,F,K,We,we,Ke){this.sideMenuService=d,this.usersService=S,this.sideMenuItemService=F,this.route=K,this.dialog=We,this.authResolver=we,this.entityStorageService=Ke,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(d=>{const S=Number(d.userId);this.entityStorageService.setEntity({id:S,beanName:"User"}),this.usersService.getUserById(S).subscribe(F=>{this.user=F;const K=this.sideMenuItemService.parseServiceIdentity(F);this.sideMenuService.setUserItems([K]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const d=(0,Z.kZ)();d.width="450px",d.data={theme:"admin-theme",user:this.user},this.dialog.open(oe.x,d).afterClosed().subscribe(F=>{F&&this.usersService.getUserById(this.user.id).subscribe(K=>{this.user=K})})}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(E.D),t.Y36(n.Fv),t.Y36(ae.V),t.Y36(m.gz),t.Y36(z.uw),t.Y36(g.x4),t.Y36(g.fb))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(d,S){1&d&&t.YNc(0,ce,22,25,"div",0),2&d&&t.Q6J("ngIf",void 0!==S.user)},directives:[R.O5,C.W,M.$g,J.Hw,Q.gM,R.PC,m.yS,H.lW,D.A],pipes:[u.X$,G.d],styles:[""]}),f})(),ue=(()=>{class f{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}return f.\u0275fac=function(d){return new(d||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(d,S){1&d&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&d&&t.Q6J("items",S.navItems)("size","small")},directives:[N.L],styles:[""]}),f})();var de=i(46597);const ge=[{path:"",component:ne,children:[{path:"",component:_.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:Y.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:e.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:se.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:ie.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:y,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:A.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:me,children:[{path:"",component:ue},{path:"associated-users",component:de.d}]}];let fe=(()=>{class f{}return f.\u0275fac=function(d){return new(d||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[m.Bz.forChild(ge)],m.Bz]}),f})();var he=i(91079),Ee=i(98833),X=i(93075),Ie=i(2638),Te=i(81125),q=i(84847),ve=i(32075),Ue=i(53251),Ae=i(90149),Ce=i(77446),Re=i(57261),Oe=i(85899),xe=i(32368),Se=i(86856),Ze=i(79814),De=i(4834),Me=i(86087),$=i(9224),k=i(92081),be=i(44409),Ne=i(26688),Pe=i(92181),Le=i(53435),ye=i(63189),Ye=i(27544),Be=i(11243),Je=i(19516),Fe=i(14264);let Qe=(()=>{class f{constructor(d){this.translate=d,d.addLangs(["en","cs"])}}return f.\u0275fac=function(d){return new(d||f)(t.LFG(u.sK))},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[R.ez,fe,he.Bb,Ee.c,T.lN,X.UX,X.u5,J.Ps,Ie.SJ,Te.To,u.aw.forChild({}),H.ot,q.JX,ve.p0,Ue.Nh,Ae.dp,H.ot,Ce.p9,z.Is,O.LD,Re.ZX,M.Cq,Oe.Cv,Q.AV,xe.rP,Se.FA,c.XK,Ze.Fk,De.t,c.si,Me.TU,$.QW,k.T5,be._t,$.QW,Ne.Hi,Pe.Tx,Le.Cl,ye.r,Ye.g,A.ez,Be.r,Je.d4,Fe.m]]}),f})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[142],{54668:(w,P,i)=>{i.d(P,{l:()=>p});var R=i(48966),m=i(32105),e=i(32080),s=i(10036),t=i(20449),D=i(64080),l=i(93075),n=i(5e3),M=i(51062),N=i(67322),b=i(98833),L=i(47423),y=i(25245),Y=i(69808),A=i(64877),Z=i(98380),I=i(20773);function T(_,g){if(1&_&&n._UZ(0,"app-users-list",14),2&_){const E=n.oxw(2);n.Q6J("displayedColumns",E.displayedColumns)("selection",E.selection)("tableId",E.tableId)("disableRouting",!0)("users",E.identities)}}function O(_,g){if(1&_&&(n.TgZ(0,"div"),n.YNc(1,T,1,5,"app-users-list",13),n.qZA()),2&_){const E=n.oxw();n.xp6(1),n.Q6J("ngIf",void 0!==E.identities&&E.identities.length>0)}}function c(_,g){1&_&&(n.TgZ(0,"perun-web-apps-alert",15),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&_&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.SEARCH_HINT")," "))}function u(_,g){1&_&&(n.TgZ(0,"perun-web-apps-alert",16),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&_&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"DIALOGS.CONNECT_IDENTITY.NO_IDENTITIES")," "))}function r(_,g){1&_&&n._UZ(0,"mat-spinner",17)}let p=(()=>{class _{constructor(E,C,J,Q,G,V){this.dialogRef=E,this.data=C,this.userManager=J,this.storeService=Q,this.notificator=G,this.translate=V,this.loading=!1,this.selection=new t.Ov(!1,[]),this.firstSearchDone=!1,this.displayedColumns=["select","id","user","name","email","logins","organization"],this.tableId=s.Iz}ngOnInit(){this.target=this.data.target,this.theme=this.data.theme,this.userId=this.data.userId,this.isService=this.data.isService,this.searchCtrl=new l.NI("",[l.kI.required,l.kI.pattern(".*[\\S]+.*")])}onAdd(){let E,C;this.loading=!0,this.isService?(E=this.selection.selected[0].id,C=this.userId):(E=this.userId,C=this.selection.selected[0].id),this.userManager.addSpecificUserOwner(E,C).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.firstSearchDone=!0;let E=[D.r.USER_DEF_ORGANIZATION,D.r.USER_DEF_PREFERRED_MAIL];E=E.concat(this.storeService.getLoginAttributeNames()),this.userManager.findRichUsersWithAttributes(this.searchCtrl.value,E).subscribe(C=>{this.identities=this.filterIdentities(C),this.loading=!1},()=>{this.loading=!1})}onKeyInput(E){"Enter"===E.key&&this.onSearchByString()}filterIdentities(E){return E.filter(this.isService?C=>!C.serviceUser:C=>C.serviceUser)}}return _.\u0275fac=function(E){return new(E||_)(n.Y36(R.so),n.Y36(R.WI),n.Y36(m.Fv),n.Y36(e.d6),n.Y36(e.V6),n.Y36(M.sK))},_.\u0275cmp=n.Xpm({type:_,selectors:[["app-connect-identity-dialog"]],decls:25,vars:25,consts:[[3,"keyup"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mr-2","search-field","no-border-mat-input"],["matInput","","autocomplete","false",3,"placeholder","formControl"],["color","primary","mat-flat-button","",1,"mr-2","search-btn",3,"disabled","click"],[4,"ngIf"],["alert_type","info",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"displayedColumns","selection","tableId","disableRouting","users",4,"ngIf"],[3,"displayedColumns","selection","tableId","disableRouting","users"],["alert_type","info"],["alert_type","warn"],[1,"ml-auto","mr-auto"]],template:function(E,C){1&E&&(n.TgZ(0,"div",0),n.NdJ("keyup",function(Q){return C.onKeyInput(Q)}),n.TgZ(1,"h1",1),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",2),n.TgZ(5,"mat-form-field",3),n._UZ(6,"input",4),n.ALo(7,"translate"),n.TgZ(8,"mat-error"),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.qZA(),n.TgZ(11,"button",5),n.NdJ("click",function(){return C.onSearchByString()}),n.TgZ(12,"mat-icon"),n._uU(13,"search"),n.qZA(),n.qZA(),n.YNc(14,O,2,1,"div",6),n.YNc(15,c,3,3,"perun-web-apps-alert",7),n.YNc(16,u,3,3,"perun-web-apps-alert",8),n.qZA(),n.YNc(17,r,1,0,"mat-spinner",9),n.TgZ(18,"div",10),n.TgZ(19,"button",11),n.NdJ("click",function(){return C.onCancel()}),n._uU(20),n.ALo(21,"translate"),n.qZA(),n.TgZ(22,"button",12),n.NdJ("click",function(){return C.onAdd()}),n._uU(23),n.ALo(24,"translate"),n.qZA(),n.qZA(),n.qZA()),2&E&&(n.Tol(C.theme),n.xp6(2),n.Oqu(n.lcZ(3,15,"DIALOGS.CONNECT_IDENTITY.TITLE_"+C.target)),n.xp6(4),n.s9C("placeholder",n.lcZ(7,17,"DIALOGS.CONNECT_IDENTITY.SEARCH")),n.Q6J("formControl",C.searchCtrl),n.xp6(3),n.hij(" ",n.lcZ(10,19,"DIALOGS.CONNECT_IDENTITY.EMPTY_SEARCH_MESSAGE")," "),n.xp6(2),n.Q6J("disabled",C.loading),n.xp6(3),n.Q6J("ngIf",!C.loading),n.xp6(1),n.Q6J("ngIf",!C.firstSearchDone),n.xp6(1),n.Q6J("ngIf",!C.loading&&C.firstSearchDone&&0===C.identities.length),n.xp6(1),n.Q6J("ngIf",C.loading),n.xp6(3),n.hij(" ",n.lcZ(21,21,"DIALOGS.CONNECT_IDENTITY.CANCEL")," "),n.xp6(2),n.Q6J("disabled",0===C.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(24,23,"DIALOGS.CONNECT_IDENTITY.CONNECT")," "))},directives:[R.uh,R.xY,N.KE,b.Nt,l.Fj,l.JJ,l.oH,N.TO,L.lW,y.Hw,Y.O5,A.C,Z.w,I.$g,R.H8],pipes:[M.X$],styles:[".search-field[_ngcontent-%COMP%]{width:300px}.search-btn[_ngcontent-%COMP%]{width:50px}"]}),_})()},94814:(w,P,i)=>{i.d(P,{B:()=>I});var R=i(32105),m=i(48966),e=i(32080),s=i(32075),t=i(5e3),D=i(51062),l=i(69808),n=i(98380),M=i(47423),N=i(31359);function b(T,O){1&T&&t._UZ(0,"th",13)}function L(T,O){if(1&T&&(t.TgZ(0,"td",14),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&T){const c=O.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,c))}}function y(T,O){1&T&&t._UZ(0,"tr",15)}function Y(T,O){1&T&&t._UZ(0,"tr",16)}function A(T,O){1&T&&(t.TgZ(0,"perun-web-apps-alert",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&T&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_DISCONNECT_YOURSELF")," "))}function Z(T,O){1&T&&(t.TgZ(0,"perun-web-apps-alert",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&T&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DISCONNECT_IDENTITY.WARNING_LAST_USER")," "))}let I=(()=>{class T{constructor(c,u,r,p,_,g){this.dialogRef=c,this.data=u,this.userManager=r,this.notificator=p,this.translate=_,this.store=g,this.displayedColumns=["name"]}ngOnInit(){let c;this.targetTitle=this.data.targetTitle,this.targetDescription=this.data.targetDescription,this.theme=this.data.theme,this.userId=Number(this.data.userId),this.dataSource=new s.by([this.data.specificUser]),this.isService=this.data.isService,this.isService?(c=this.userId,this.disconnectingSelf=this.dataSource.data[0].id===this.store.getPerunPrincipal().userId):(c=this.dataSource.data[0].id,this.disconnectingSelf=this.userId===this.store.getPerunPrincipal().userId),this.userManager.getUsersBySpecificUser(c).subscribe(u=>{this.disconnectingLastOwner=1===u.length})}onConfirm(){let c,u;this.isService?(c=this.dataSource.data[0].id,u=this.userId):(c=this.userId,u=this.dataSource.data[0].id),this.userManager.removeSpecificUserOwner(c,u).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DISCONNECT_IDENTITY.SUCCESS")),this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}}return T.\u0275fac=function(c){return new(c||T)(t.Y36(m.so),t.Y36(m.WI),t.Y36(R.Fv),t.Y36(e.V6),t.Y36(D.sK),t.Y36(e.d6))},T.\u0275cmp=t.Xpm({type:T,selectors:[["app-disconnect-identity-dialog"]],decls:26,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"]],template:function(c,u){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.TgZ(4,"div",1),t.TgZ(5,"p"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",2),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"table",3),t.ynx(12,4),t.YNc(13,b,1,0,"th",5),t.YNc(14,L,3,3,"td",6),t.BQk(),t.YNc(15,y,1,0,"tr",7),t.YNc(16,Y,1,0,"tr",8),t.qZA(),t.YNc(17,A,3,3,"perun-web-apps-alert",9),t.YNc(18,Z,3,3,"perun-web-apps-alert",9),t.qZA(),t.TgZ(19,"div",10),t.TgZ(20,"button",11),t.NdJ("click",function(){return u.onCancel()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.TgZ(23,"button",12),t.NdJ("click",function(){return u.onConfirm()}),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,13,"DIALOGS.DISCONNECT_IDENTITY.TITLE_"+u.targetTitle)),t.xp6(2),t.Tol(u.theme),t.xp6(3),t.Oqu(t.lcZ(7,15,"DIALOGS.DISCONNECT_IDENTITY.DESCRIPTION_"+u.targetDescription)),t.xp6(3),t.hij(" ",t.lcZ(10,17,"DIALOGS.DISCONNECT_IDENTITY.ASK")," "),t.xp6(2),t.Q6J("dataSource",u.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",u.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",u.displayedColumns),t.xp6(1),t.Q6J("ngIf",u.disconnectingSelf),t.xp6(1),t.Q6J("ngIf",u.disconnectingLastOwner),t.xp6(3),t.hij(" ",t.lcZ(22,19,"DIALOGS.DISCONNECT_IDENTITY.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(25,21,"DIALOGS.DISCONNECT_IDENTITY.REMOVE")," "))},directives:[m.uh,m.xY,s.BZ,s.w1,s.fO,s.ge,s.Dz,s.ev,s.as,s.XQ,s.nj,s.Gk,l.O5,n.w,m.H8,M.lW],pipes:[D.X$,N.d],styles:[""]}),T})()},29862:(w,P,i)=>{i.d(P,{x:()=>Z});var R=i(32105),m=i(48966),e=i(32080),s=i(93075),t=i(5e3),D=i(51062),l=i(67322),n=i(98833),M=i(69808),N=i(47423);function b(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function L(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function y(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_FIRST_NAME")))}function Y(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LENGTH")))}function A(I,T){1&I&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&I&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_USER.ERROR_LAST_NAME")))}let Z=(()=>{class I{constructor(O,c,u,r,p){this.dialogRef=O,this.data=c,this.userService=u,this.notificator=r,this.translateService=p,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.titleBefore=new s.NI(this.data.user.titleBefore,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.titleAfter=new s.NI(this.data.user.titleAfter,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.firstName=new s.NI(this.data.user.firstName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.middleName=new s.NI(this.data.user.middleName,[s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)]),this.lastName=new s.NI(this.data.user.lastName,[s.kI.required,s.kI.pattern(".*[\\S]+.*"),s.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSave(){this.loading=!0,this.data.user.titleBefore=this.titleBefore.value,this.data.user.titleAfter=this.titleAfter.value,this.data.user.firstName=this.firstName.value,this.data.user.middleName=this.middleName.value,this.data.user.lastName=this.lastName.value,this.userService.updateUser({user:this.data.user}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_USER.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return I.\u0275fac=function(O){return new(O||I)(t.Y36(m.so),t.Y36(m.WI),t.Y36(R.Fv),t.Y36(e.V6),t.Y36(D.sK))},I.\u0275cmp=t.Xpm({type:I,selectors:[["app-edit-user-dialog"]],decls:32,vars:38,consts:[[1,"mat-dialog-title"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["matInput","","required","",3,"placeholder","formControl"],["matInput","","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(O,c){1&O&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-form-field"),t._UZ(6,"input",2),t.ALo(7,"translate"),t.YNc(8,b,3,3,"mat-error",3),t.qZA(),t.TgZ(9,"mat-form-field"),t._UZ(10,"input",2),t.ALo(11,"translate"),t.YNc(12,L,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t._UZ(14,"input",4),t.ALo(15,"translate"),t.YNc(16,y,3,3,"mat-error",3),t.qZA(),t.TgZ(17,"mat-form-field"),t._UZ(18,"input",2),t.ALo(19,"translate"),t.YNc(20,Y,3,3,"mat-error",3),t.qZA(),t.TgZ(21,"mat-form-field"),t._UZ(22,"input",5),t.ALo(23,"translate"),t.YNc(24,A,3,3,"mat-error",3),t.qZA(),t.qZA(),t.TgZ(25,"div",6),t.TgZ(26,"button",7),t.NdJ("click",function(){return c.onCancel()}),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"button",8),t.NdJ("click",function(){return c.onSave()}),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.qZA(),t.qZA()),2&O&&(t.Tol(c.theme),t.xp6(2),t.Oqu(t.lcZ(3,22,"DIALOGS.EDIT_USER.DIALOG_TITLE")),t.xp6(4),t.s9C("placeholder",t.lcZ(7,24,"DIALOGS.EDIT_USER.TITLE_BEFORE")),t.Q6J("formControl",c.titleBefore),t.xp6(2),t.Q6J("ngIf",c.titleBefore.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(11,26,"DIALOGS.EDIT_USER.TITLE_AFTER")),t.Q6J("formControl",c.titleAfter),t.xp6(2),t.Q6J("ngIf",c.titleAfter.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(15,28,"DIALOGS.EDIT_USER.FIRST_NAME")),t.Q6J("formControl",c.firstName),t.xp6(2),t.Q6J("ngIf",c.firstName.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(19,30,"DIALOGS.EDIT_USER.MIDDLE_NAME")),t.Q6J("formControl",c.middleName),t.xp6(2),t.Q6J("ngIf",c.middleName.invalid),t.xp6(2),t.s9C("placeholder",t.lcZ(23,32,"DIALOGS.EDIT_USER.LAST_NAME")),t.Q6J("formControl",c.lastName),t.xp6(2),t.Q6J("ngIf",c.lastName.invalid),t.xp6(3),t.hij(" ",t.lcZ(28,34,"DIALOGS.EDIT_USER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",c.loading||c.firstName.invalid||c.lastName.invalid||c.titleBefore.invalid||c.titleAfter.invalid||c.middleName.invalid),t.xp6(1),t.hij(" ",t.lcZ(31,36,"DIALOGS.EDIT_USER.SAVE")," "))},directives:[m.xY,l.KE,n.Nt,s.Fj,s.JJ,s.oH,M.O5,l.TO,s.Q7,m.H8,N.lW],pipes:[D.X$],styles:[""]}),I})()},98973:(w,P,i)=>{i.d(P,{u:()=>Y});var R=i(32080),m=i(5e3),e=i(11735),s=i(53251),t=i(12651),D=i(69808),l=i(19191),n=i(51062);function M(A,Z){1&A&&(m._uU(0),m.ALo(1,"translate")),2&A&&m.hij(" ",m.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function N(A,Z){if(1&A&&m._UZ(0,"app-one-entity-attribute-page",5),2&A){const I=m.oxw();m.Q6J("entityId",I.userId)("entity","user")}}function b(A,Z){1&A&&(m._uU(0),m.ALo(1,"translate"),m.ALo(2,"translate")),2&A&&m.AsE(" ",m.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",m.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function L(A,Z){if(1&A&&m._UZ(0,"app-two-entity-attribute-page",6),2&A){const I=m.oxw(2);m.Q6J("firstEntity","user")("firstEntityId",I.userId)("secondEntity","facility")}}function y(A,Z){1&A&&(m.TgZ(0,"mat-tab"),m.YNc(1,b,3,6,"ng-template",2),m.YNc(2,L,1,3,"ng-template",3),m.qZA())}let Y=(()=>{class A{constructor(I,T,O){this.route=I,this.store=T,this.authResolver=O}ngOnInit(){this.route.parent.params.subscribe(I=>{this.userId=Number(I.userId),this.userId||(this.userId=this.store.getPerunPrincipal().userId),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{id:this.userId,beanName:"User"}])})}}return A.\u0275fac=function(I){return new(I||A)(m.Y36(e.gz),m.Y36(R.d6),m.Y36(R.x4))},A.\u0275cmp=m.Xpm({type:A,selectors:[["app-user-settings-attributes"]],hostVars:2,hostBindings:function(I,T){2&I&&m.ekj("router-component",T.true)},decls:8,vars:4,consts:[[1,"page-subtitle"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(I,T){1&I&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.TgZ(3,"mat-tab-group"),m.TgZ(4,"mat-tab",1),m.YNc(5,M,2,3,"ng-template",2),m.YNc(6,N,1,2,"ng-template",3),m.qZA(),m.YNc(7,y,3,0,"mat-tab",4),m.qZA()),2&I&&(m.xp6(1),m.Oqu(m.lcZ(2,2,"USER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),m.xp6(6),m.Q6J("ngIf",T.userFacilityAttAuth))},directives:[s.SP,s.uX,s.uD,s.Vc,t.t,D.O5,l.Y],pipes:[n.X$],styles:[""]}),A})()},85985:(w,P,i)=>{i.d(P,{u:()=>c});var R=i(32080),m=i(32105),e=i(10036),s=i(5e3),t=i(11735),D=i(69808),l=i(96214),n=i(7434),M=i(20773),N=i(24179),b=i(51062);function L(u,r){1&u&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&u&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.YOU_ARE_MEMBER"),"\n"))}function y(u,r){1&u&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&u&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_MEMBER"),"\n"))}function Y(u,r){1&u&&s._UZ(0,"mat-spinner",7)}const A=function(){return["id","vo","name","description"]};function Z(u,r){if(1&u&&s._UZ(0,"perun-web-apps-groups-list",8),2&u){const p=s.oxw();s.Q6J("disableMembers",!1)("groups",p.membersGroups)("displayedColumns",s.DdM(5,A))("filter",p.memberFilterValue)("tableId",p.tableId)}}function I(u,r){1&u&&s._UZ(0,"mat-spinner",7)}function T(u,r){if(1&u&&s._UZ(0,"perun-web-apps-groups-list",8),2&u){const p=s.oxw(2);s.Q6J("disableMembers",!1)("groups",p.adminsGroups)("displayedColumns",s.DdM(5,A))("filter",p.adminFilterValue)("tableId",p.adminTableId)}}function O(u,r){if(1&u){const p=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return s.CHM(p),s.oxw().refreshAdminTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(g){return s.CHM(p),s.oxw().adminFilter(g)}),s.qZA(),s.YNc(6,I,1,0,"mat-spinner",3),s.YNc(7,T,1,6,"perun-web-apps-groups-list",4),s.qZA()}if(2&u){const p=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"SHARED.COMPONENTS.USER_DETAIL.GROUPS.USER_IS_ADMIN")," "),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",p.adminRefresh),s.xp6(1),s.Q6J("ngIf",!p.adminRefresh)}}let c=(()=>{class u{constructor(p,_,g,E,C){this.usersService=p,this.memberService=_,this.groupService=g,this.store=E,this.route=C,this.memberFilterValue="",this.adminFilterValue="",this.vos=[],this.membersGroups=[],this.adminsGroups=[],this.tableId=e.KE,this.adminTableId=e.Sb}ngOnInit(){(this.showPrincipal=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(p=>this.userId=Number(p.userId)),this.refreshAdminTable(),this.refreshMemberTable()}memberFilter(p){this.memberFilterValue=p}adminFilter(p){this.adminFilterValue=p}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(p=>{this.adminsGroups=p,this.adminRefresh=!1})}refreshMemberTable(){this.memberRefresh=!0,this.membersGroups=[],this.usersService.getVosWhereUserIsMember(this.userId).subscribe(p=>{this.vos=p;for(const _ of this.vos)this.memberService.getMemberByUser(_.id,this.userId).subscribe(g=>{this.groupService.getMemberGroups(g.id).subscribe(E=>{this.membersGroups=this.membersGroups.concat(E),this.vos.indexOf(_)===this.vos.length-1&&(this.memberRefresh=!1)})});0===p.length&&(this.memberRefresh=!1)})}}return u.\u0275fac=function(p){return new(p||u)(s.Y36(m.Fv),s.Y36(m.uq),s.Y36(m.ff),s.Y36(R.d6),s.Y36(t.gz))},u.\u0275cmp=s.Xpm({type:u,selectors:[["app-user-groups"]],hostVars:2,hostBindings:function(p,_){2&p&&s.ekj("router-component",_.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableMembers","groups","displayedColumns","filter","tableId",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"ml-auto","mr-auto"],[3,"disableMembers","groups","displayedColumns","filter","tableId"],[1,"mt-5"]],template:function(p,_){1&p&&(s.YNc(0,L,3,3,"h1",0),s.YNc(1,y,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return _.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(E){return _.memberFilter(E)}),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",3),s.YNc(5,Z,1,6,"perun-web-apps-groups-list",4),s.YNc(6,O,8,6,"div",5)),2&p&&(s.Q6J("ngIf",_.showPrincipal),s.xp6(1),s.Q6J("ngIf",!_.showPrincipal),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",_.memberRefresh),s.xp6(1),s.Q6J("ngIf",!_.memberRefresh),s.xp6(1),s.Q6J("ngIf",!_.showPrincipal))},directives:[D.O5,l.t,n.L,M.$g,N.W],pipes:[b.X$],styles:[""]}),u})()},74837:(w,P,i)=>{i.d(P,{j:()=>O});var R=i(32105),m=i(32080),e=i(10036),s=i(5e3),t=i(11735),D=i(69808),l=i(96214),n=i(7434),M=i(20773),N=i(87831),b=i(51062);function L(c,u){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.YOU_ARE_MEMBER"),"\n"))}function y(c,u){1&c&&(s.TgZ(0,"h1",6),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&c&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_MEMBER"),"\n"))}function Y(c,u){1&c&&s._UZ(0,"mat-spinner",7)}function A(c,u){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const r=s.oxw();s.Q6J("displayedColumns",r.displayedColumns)("tableId",r.memberTableId)("filterValue",r.memberFilterValue)("vos",r.vosWhereIsMember)}}function Z(c,u){1&c&&s._UZ(0,"mat-spinner",7)}function I(c,u){if(1&c&&s._UZ(0,"perun-web-apps-vos-list",8),2&c){const r=s.oxw(2);s.Q6J("displayedColumns",r.displayedColumns)("tableId",r.adminTableId)("filterValue",r.adminFilterValue)("vos",r.vosWhereIsAdmin)}}function T(c,u){if(1&c){const r=s.EpF();s.TgZ(0,"div",9),s.TgZ(1,"h1",6),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return s.CHM(r),s.oxw().refreshAdminTable()}),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(_){return s.CHM(r),s.oxw().applyAdminFilter(_)}),s.qZA(),s.YNc(6,Z,1,0,"mat-spinner",3),s.YNc(7,I,1,4,"perun-web-apps-vos-list",4),s.qZA()}if(2&c){const r=s.oxw();s.xp6(2),s.Oqu(s.lcZ(3,4,"SHARED_LIB.PERUN.ORGANIZATIONS.USER_IS_ADMIN")),s.xp6(3),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",r.adminRefresh),s.xp6(1),s.Q6J("ngIf",!r.adminRefresh)}}let O=(()=>{class c{constructor(r,p,_,g){this.usersService=r,this.authResolver=p,this.store=_,this.route=g,this.adminFilterValue="",this.memberFilterValue="",this.displayedColumns=["id","name"],this.adminTableId=e.YF,this.memberTableId=e.gc}ngOnInit(){(this.isMyProfile=this.route.snapshot.data.showPrincipal)?this.userId=this.store.getPerunPrincipal().user.id:this.route.parent.params.subscribe(r=>this.userId=Number(r.userId)),this.refreshAdminTable(),this.refreshMemberTable()}refreshMemberTable(){this.memberRefresh=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(r=>{this.vosWhereIsMember=r,this.memberRefresh=!1},()=>this.memberRefresh=!1)}refreshAdminTable(){this.adminRefresh=!0,this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(r=>{this.vosWhereIsAdmin=r,this.adminRefresh=!1},()=>this.adminRefresh=!1)}applyMemberFilter(r){this.memberFilterValue=r}applyAdminFilter(r){this.adminFilterValue=r}}return c.\u0275fac=function(r){return new(r||c)(s.Y36(R.Fv),s.Y36(m.x4),s.Y36(m.d6),s.Y36(t.gz))},c.\u0275cmp=s.Xpm({type:c,selectors:[["app-user-organizations"]],hostVars:2,hostBindings:function(r,p){2&r&&s.ekj("router-component",p.true)},decls:7,vars:6,consts:[["class","page-subtitle",4,"ngIf"],[3,"refresh"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","tableId","filterValue","vos",4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"page-subtitle"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","tableId","filterValue","vos"],[1,"mt-5"]],template:function(r,p){1&r&&(s.YNc(0,L,3,3,"h1",0),s.YNc(1,y,3,3,"h1",0),s.TgZ(2,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return p.refreshMemberTable()}),s.qZA(),s.TgZ(3,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(g){return p.applyMemberFilter(g)}),s.qZA(),s.YNc(4,Y,1,0,"mat-spinner",3),s.YNc(5,A,1,4,"perun-web-apps-vos-list",4),s.YNc(6,T,8,6,"div",5)),2&r&&(s.Q6J("ngIf",p.isMyProfile),s.xp6(1),s.Q6J("ngIf",!p.isMyProfile),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.ORGANIZATIONS.FILTER"),s.xp6(1),s.Q6J("ngIf",p.memberRefresh),s.xp6(1),s.Q6J("ngIf",!p.memberRefresh),s.xp6(1),s.Q6J("ngIf",!p.isMyProfile))},directives:[D.O5,l.t,n.L,M.$g,N.Z],pipes:[b.X$],styles:[""]}),c})()},17755:(w,P,i)=>{i.d(P,{Z:()=>r});var R=i(32105),m=i(32075),e=i(32080),s=i(64080),t=i(9244),D=i(16074),l=i(5e3),n=i(11735),M=i(48966),N=i(69808),b=i(9224),L=i(47423),y=i(25245),Y=i(71135),A=i(51062);function Z(p,_){1&p&&l._UZ(0,"th",12)}function I(p,_){if(1&p&&(l.TgZ(0,"td",13),l._uU(1),l.qZA()),2&p){const g=_.$implicit;l.xp6(1),l.hij(" ",g.displayName,": ")}}function T(p,_){1&p&&l._UZ(0,"th",12)}function O(p,_){if(1&p){const g=l.EpF();l.TgZ(0,"td",14),l._uU(1),l.TgZ(2,"button",15),l.NdJ("click",function(){return l.CHM(g),l.oxw(2).changeEmail()}),l.TgZ(3,"mat-icon"),l._uU(4,"edit"),l.qZA(),l.qZA(),l.qZA()}if(2&p){const g=_.$implicit;l.xp6(1),l.hij(" ",g.value," ")}}function c(p,_){1&p&&l._UZ(0,"tr",16)}function u(p,_){if(1&p&&(l.TgZ(0,"div",2),l.TgZ(1,"mat-card",3),l.TgZ(2,"mat-card-header"),l.TgZ(3,"mat-card-title"),l.TgZ(4,"h1",4),l._uU(5),l.ALo(6,"translate"),l.qZA(),l.qZA(),l.qZA(),l.TgZ(7,"mat-card-content"),l.TgZ(8,"table",5),l.ynx(9,6),l.YNc(10,Z,1,0,"th",7),l.YNc(11,I,2,1,"td",8),l.BQk(),l.ynx(12,9),l.YNc(13,T,1,0,"th",7),l.YNc(14,O,5,1,"td",10),l.BQk(),l.YNc(15,c,1,0,"tr",11),l.qZA(),l.qZA(),l.qZA(),l.qZA()),2&p){const g=l.oxw();l.xp6(5),l.Oqu(l.lcZ(6,3,"USER_DETAIL.OVERVIEW.GENERAL_SETTINGS")),l.xp6(3),l.Q6J("dataSource",g.mailDataSource),l.xp6(7),l.Q6J("matRowDefColumns",g.displayedColumns)}}let r=(()=>{class p{constructor(g,E,C,J,Q){this.userService=g,this.attributeService=E,this.storeService=C,this.route=J,this.dialog=Q,this.navItems=[],this.isServiceUser=!1,this.displayedColumns=["name","value"],this.inMyProfile=!1}ngOnInit(){this.route.params.subscribe(g=>{g.userId?this.userService.getUserById(Number(g.userId)).subscribe(E=>{this.user=E,this.isServiceUser=E.serviceUser,this.initNavItems()}):(this.inMyProfile=!0,this.userID=this.storeService.getPerunPrincipal().user.id,this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(E=>{this.preferredMail=E,this.handleMailNotDefined(),this.mailDataSource=new m.by([this.preferredMail]),this.initNavItems()}))})}changeEmail(){const g=(0,t.kZ)();g.width="350px",g.data={userId:this.userID},this.dialog.open(D.gr,g).afterClosed().subscribe(C=>{C&&this.attributeService.getUserAttributeByName(this.userID,s.r.USER_DEF_PREFERRED_MAIL).subscribe(J=>{this.preferredMail=J,this.handleMailNotDefined(),this.mailDataSource=new m.by([this.preferredMail])})})}handleMailNotDefined(){null==this.preferredMail&&(this.preferredMail={id:-1,beanName:"Attribute",displayName:(0,t.Cz)(s.r.USER_DEF_PREFERRED_MAIL.split(":").pop()),value:new Object("-")})}initNavItems(){this.navItems=[{cssIcon:"perun-vo",url:"organizations",label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",style:"user-btn"},{cssIcon:"perun-group",url:"groups",label:"MENU_ITEMS.ADMIN.GROUPS",style:"user-btn"}],window.location.pathname.startsWith("/admin")&&this.navItems.push({cssIcon:"perun-user",url:"accounts",label:"MENU_ITEMS.USER.ACCOUNTS",style:"user-btn"},{cssIcon:"perun-identity",url:"identities",label:"MENU_ITEMS.USER.IDENTITIES",style:"user-btn"},{cssIcon:"perun-facility-white",url:"facilities",label:"MENU_ITEMS.USER.FACILITIES",style:"user-btn"},{cssIcon:"perun-resource",url:"resources",label:"MENU_ITEMS.USER.RESOURCES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-attributes",url:"attributes",label:"MENU_ITEMS.USER.ATTRIBUTES",style:"user-btn"}),this.navItems.push({cssIcon:"perun-roles",url:"roles",label:"MENU_ITEMS.USER.ROLES",style:"user-btn"}),this.navItems.push(this.isServiceUser?{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}:{cssIcon:"perun-service-identity",url:"service-identities",label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",style:"user-btn"}),window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"settings",label:"MENU_ITEMS.ADMIN.SETTINGS",style:"user-btn"})}}return p.\u0275fac=function(g){return new(g||p)(l.Y36(R.Fv),l.Y36(R.H8),l.Y36(e.d6),l.Y36(n.gz),l.Y36(M.uw))},p.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-overview"]],hostVars:2,hostBindings:function(g,E){2&g&&l.ekj("router-component",E.true)},decls:2,vars:3,consts:[["class","align-cards",4,"ngIf"],[3,"items","size"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-icon-button","",1,"ml-3",3,"click"],["mat-row",""]],template:function(g,E){1&g&&(l.YNc(0,u,16,5,"div",0),l._UZ(1,"perun-web-apps-menu-buttons-field",1)),2&g&&(l.Q6J("ngIf",E.inMyProfile),l.xp6(1),l.Q6J("items",E.navItems)("size","small"))},directives:[N.O5,b.a8,b.dk,b.n5,b.dn,m.BZ,m.w1,m.fO,m.ge,m.Dz,m.ev,L.lW,y.Hw,m.nj,m.Gk,Y.L],pipes:[A.X$],styles:[".align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}"]}),p})()},6097:(w,P,i)=>{i.d(P,{t:()=>Ve});var R=i(32105),m=i(32080),e=i(5e3),s=i(11735),t=i(69808),D=i(20773),l=i(81125),n=i(25245),M=i(9224),N=i(87831),b=i(64877),L=i(24179),y=i(62109),Y=i(74010),A=i(38383),Z=i(51062);function I(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function T(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function O(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_VOS_ADMIN")," "))}function c(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_VOS")," "))}function u(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_IDENTITIES_ADMIN")," "))}function r(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SELF_IDENTITIES")," "))}const p=function(){return["user","id","name"]};function _(a,h){if(1&a&&(e.TgZ(0,"div",11),e.YNc(1,u,3,3,"div",2),e.YNc(2,r,3,3,"div",2),e._UZ(3,"app-users-list",12),e.qZA()),2&a){const o=e.oxw(4);e.xp6(1),e.Q6J("ngIf",!o.showDescription),e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,p))("disableRouting",!0)("users",o.users)}}const g=function(){return["id","name","shortName"]};function E(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,O,3,3,"div",2),e.YNc(2,c,3,3,"div",2),e._UZ(3,"perun-web-apps-vos-list",9),e.YNc(4,_,4,6,"div",10),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",!o.showDescription),e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(5,g))("vos",o.vos),e.xp6(1),e.Q6J("ngIf",o.users.length)}}function C(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getSelfData()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,T,1,0,"mat-spinner",1),e.YNc(8,E,5,6,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SELF")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function J(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Q(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.GROUPADMIN_GROUPS")," "))}const G=function(){return["id","vo","name","description"]};function V(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Q,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",14),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,G))("groups",o.groups)}}function ee(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminGroupsAndVos()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",13),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,J,1,0,"mat-spinner",1),e.YNc(8,V,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.GROUPADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function te(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function ne(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.GROUPOBSERVER_GROUPS")," "))}const se=function(){return["id","recent","vo","name","description"]};function ie(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,ne,3,3,"div",2),e._UZ(2,"perun-web-apps-groups-list",14),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,se))("groups",o.groups)}}function ae(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getGroupsAndVos("GROUPOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",13),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,te,1,0,"mat-spinner",1),e.YNc(8,ie,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.GROUPOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function oe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function z(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.VOADMIN_VOS")," "))}function H(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,z,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function re(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminVos()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,oe,1,0,"mat-spinner",1),e.YNc(8,H,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.VOADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function _e(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function le(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.VOOBSERVER_VOS")," "))}function pe(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,le,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function ce(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("VOOBSERVER").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,_e,1,0,"mat-spinner",1),e.YNc(8,pe,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.VOOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function me(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function ue(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.TRUSTEDFACILITYADMIN_VOS")," "))}function de(a,h){if(1&a&&(e.TgZ(0,"div"),e.TgZ(1,"div"),e.YNc(2,ue,3,3,"div",2),e._UZ(3,"perun-web-apps-vos-list",9),e.qZA(),e.qZA()),2&a){const o=e.oxw(3);e.xp6(2),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function ge(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("TRUSTEDFACILITYADMIN").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,me,1,0,"mat-spinner",1),e.YNc(8,de,4,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.TRUSTEDFACILITYADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function fe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function he(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.TOPGROUPCREATOR_VOS")," "))}function Ee(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,he,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function X(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("TOPGROUPCREATOR").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",15),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,fe,1,0,"mat-spinner",1),e.YNc(8,Ee,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.TOPGROUPCREATOR")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Ie(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Te(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCEADMIN_RESOURCES")," "))}const q=function(){return["id","name","vo","facility","description"]};function ve(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Te,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function Ue(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCEADMIN")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Ie,1,0,"mat-spinner",1),e.YNc(8,ve,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCEADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Ae(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Ce(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCEOBSERVER_RESOURCES")," "))}function Re(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Ce,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function Oe(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCEOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Ae,1,0,"mat-spinner",1),e.YNc(8,Re,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCEOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function xe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Se(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.RESOURCESELFSERVICE_RESOURCES")," "))}function Ze(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Se,3,3,"div",2),e._UZ(2,"perun-web-apps-resources-list",17),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("resources",o.resources)("displayedColumns",e.DdM(4,q))("routingVo",!0)}}function De(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getResourcesData("RESOURCESELFSERVICE")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",16),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,xe,1,0,"mat-spinner",1),e.YNc(8,Ze,3,5,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.RESOURCESELFSERVICE")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Me(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function $(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.FACILITYADMIN_FACILITIES")," "))}const k=function(){return["id","name","description"]};function be(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,$,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",19),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,k))("facilities",o.facilities)}}function Ne(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getAdminFacilities()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",18),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Me,1,0,"mat-spinner",1),e.YNc(8,be,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.FACILITYADMIN")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Pe(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Le(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.FACILITYOBSERVER_FACILITIES")," "))}function ye(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Le,3,3,"div",2),e._UZ(2,"perun-web-apps-facilities-list",19),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,k))("facilities",o.facilities)}}function Ye(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getFacilities("FACILITYOBSERVER")}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",18),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Pe,1,0,"mat-spinner",1),e.YNc(8,ye,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.FACILITYOBSERVER")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function Be(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function Je(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SPONSORSHIP_MEMBERS")," "))}const Fe=function(){return["id","fullName","sponsored"]};function Qe(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,Je,3,3,"div",2),e._UZ(2,"perun-web-apps-members-list",20),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,Fe))("members",o.members)}}function f(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){return e.CHM(o),e.oxw(2).getMembers()}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,Be,1,0,"mat-spinner",1),e.YNc(8,Qe,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SPONSORSHIP")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function x(a,h){1&a&&e._UZ(0,"mat-spinner",3)}function d(a,h){1&a&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"ROLES.SPONSOR_VOS")," "))}function S(a,h){if(1&a&&(e.TgZ(0,"div"),e.YNc(1,d,3,3,"div",2),e._UZ(2,"perun-web-apps-vos-list",9),e.qZA()),2&a){const o=e.oxw(3);e.xp6(1),e.Q6J("ngIf",o.showDescription),e.xp6(1),e.Q6J("displayedColumns",e.DdM(3,g))("vos",o.vos)}}function F(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){e.CHM(o);const U=e.oxw(2);return U.getVos(U.roles.get("SPONSOR").get("Vo"))}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.YNc(7,x,1,0,"mat-spinner",1),e.YNc(8,S,3,4,"div",2),e.qZA()}if(2&a){const o=e.oxw(2);e.xp6(5),e.Oqu(e.lcZ(6,3,"ROLES.SPONSOR")),e.xp6(2),e.Q6J("ngIf",o.loading),e.xp6(1),e.Q6J("ngIf",!o.loading)}}function K(a,h){1&a&&(e.TgZ(0,"mat-expansion-panel"),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Oqu(e.lcZ(6,1,"ROLES.PERUN_ADMIN")))}function We(a,h){1&a&&(e.TgZ(0,"mat-expansion-panel"),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&a&&(e.xp6(5),e.Oqu(e.lcZ(6,1,"ROLES.PERUN_OBSERVER")))}function we(a,h){if(1&a&&(e.TgZ(0,"p",22),e._uU(1),e.qZA()),2&a){const o=h.$implicit;e.xp6(1),e.AsE("",o[0]," ids: ",o[1],"")}}function Ke(a,h){if(1&a){const o=e.EpF();e.TgZ(0,"mat-expansion-panel",6),e.NdJ("opened",function(){const B=e.CHM(o).$implicit;return e.oxw(2).getInnerKeys(B)}),e.TgZ(1,"mat-expansion-panel-header"),e.TgZ(2,"mat-panel-title"),e._UZ(3,"mat-icon",7),e.TgZ(4,"p",8),e._uU(5),e.qZA(),e.qZA(),e.qZA(),e.YNc(6,we,2,2,"p",21),e.qZA()}if(2&a){const o=h.$implicit,v=e.oxw(2);e.xp6(5),e.Oqu(o),e.xp6(1),e.Q6J("ngForOf",v.currentIds)}}function Ge(a,h){if(1&a&&(e.TgZ(0,"mat-accordion"),e.YNc(1,C,9,5,"mat-expansion-panel",4),e.YNc(2,ee,9,5,"mat-expansion-panel",4),e.YNc(3,ae,9,5,"mat-expansion-panel",4),e.YNc(4,re,9,5,"mat-expansion-panel",4),e.YNc(5,ce,9,5,"mat-expansion-panel",4),e.YNc(6,ge,9,5,"mat-expansion-panel",4),e.YNc(7,X,9,5,"mat-expansion-panel",4),e.YNc(8,Ue,9,5,"mat-expansion-panel",4),e.YNc(9,Oe,9,5,"mat-expansion-panel",4),e.YNc(10,De,9,5,"mat-expansion-panel",4),e.YNc(11,Ne,9,5,"mat-expansion-panel",4),e.YNc(12,Ye,9,5,"mat-expansion-panel",4),e.YNc(13,f,9,5,"mat-expansion-panel",4),e.YNc(14,F,9,5,"mat-expansion-panel",4),e.YNc(15,K,7,3,"mat-expansion-panel",2),e.YNc(16,We,7,3,"mat-expansion-panel",2),e.YNc(17,Ke,7,2,"mat-expansion-panel",5),e.qZA()),2&a){const o=e.oxw();e.xp6(1),e.Q6J("ngIf",o.isSelf),e.xp6(1),e.Q6J("ngIf",o.isGroupAdmin),e.xp6(1),e.Q6J("ngIf",o.isGroupObserver),e.xp6(1),e.Q6J("ngIf",o.isVoAdmin),e.xp6(1),e.Q6J("ngIf",o.isVoObserver),e.xp6(1),e.Q6J("ngIf",o.isTrustedFacilityAdmin),e.xp6(1),e.Q6J("ngIf",o.isTopGroupCreator),e.xp6(1),e.Q6J("ngIf",o.isResourceAdmin),e.xp6(1),e.Q6J("ngIf",o.isResourceObserver),e.xp6(1),e.Q6J("ngIf",o.isResourceSelfService),e.xp6(1),e.Q6J("ngIf",o.isFacilityAdmin),e.xp6(1),e.Q6J("ngIf",o.isFacilityObserver),e.xp6(1),e.Q6J("ngIf",o.hasSponsorship),e.xp6(1),e.Q6J("ngIf",o.isSponsor),e.xp6(1),e.Q6J("ngIf",o.isPerunAdmin),e.xp6(1),e.Q6J("ngIf",o.isPerunObserver),e.xp6(1),e.Q6J("ngForOf",o.roleNames)}}let Ve=(()=>{class a{constructor(o,v,U,B,W,j,He,qe,je){this.authzResolverService=o,this.usersManagerService=v,this.vosManagerService=U,this.facilitiesManagerService=B,this.resourcesManagerService=W,this.membersManagerService=j,this.groupsManagerService=He,this.route=qe,this.store=je,this.currentIds=[],this.roles=new Map,this.roleFilter=["SELF","GROUPADMIN","VOADMIN","RESOURCEADMIN","FACILITYADMIN","TOPGROUPCREATOR","SPONSORSHIP","SPONSOR","RESOURCESELFSERVICE","VOOBSERVER","RESOURCEOBSERVER","GROUPOBSERVER","TRUSTEDFACILITYADMIN","FACILITYOBSERVER","PERUNADMIN","PERUNOBSERVER"],this.roleNames=[],this.groups=[],this.vos=[],this.facilities=[],this.users=[],this.resources=[],this.members=[]}ngOnInit(){this.outerLoading=!0,this.route.parent.params.subscribe(o=>{o.userId?(this.userId=Number(o.userId),this.authzResolverService.getUserRoleNames(this.userId).subscribe(v=>{this.roleNames=v.map(U=>U.toUpperCase()),this.authzResolverService.getUserRoles(this.userId).subscribe(U=>{this.prepareRoles(U)})})):(this.showDescription=!0,this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.userId,this.roleNames=Object.keys(this.principal.roles),this.prepareRoles(this.principal.roles))})}getAdminGroupsAndVos(){this.loading=!0,this.groups=[],this.usersManagerService.getGroupsWhereUserIsAdmin(this.userId).subscribe(o=>{this.groups=o;const v=[...new Set(this.groups.map(U=>U.voId))];this.getVos(v)})}getVos(o){this.loading=!0,this.vos=[],this.vosManagerService.getVosByIds(o).subscribe(v=>{this.vos=v,this.loading=!1})}getInnerKeys(o){if(this.roles.get(o)){const v=this.roles.get(o).entries(),U=[];let B=v.next().value;for(;B;)U.push(B),B=v.next().value;this.currentIds=U}else this.currentIds=[]}getAdminVos(){this.loading=!0,this.vos=[],this.usersManagerService.getVosWhereUserIsAdmin(this.userId).subscribe(o=>{this.vos=o,this.loading=!1})}getAdminFacilities(){this.loading=!0,this.facilities=[],this.facilitiesManagerService.getFacilitiesWhereUserIsAdmin(this.userId).subscribe(o=>{this.facilities=o.map(v=>({facility:v})),this.loading=!1})}getSelfData(){this.loading=!0,this.vos=[],this.users=[],this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(o=>{this.vos=o;const v=this.roles.get("SELF").get("User");v?this.usersManagerService.getUsersByIds(v).subscribe(U=>{this.users=U,this.loading=!1}):this.loading=!1})}getResourcesData(o){this.loading=!0;const v=this.roles.get(o).get("Resource");this.vos=[],this.facilities=[],this.resources=[],this.resourcesManagerService.getRichResourcesByIds(v).subscribe(U=>{this.resources=U,this.vos=this.resources.map(B=>B.vo).filter((B,W,j)=>j.indexOf(B)===W),this.facilities=this.resources.map(B=>({facility:B.facility})).filter((B,W,j)=>j.indexOf(B)===W),this.loading=!1})}getMembers(){this.loading=!0;const o=this.roles.get("SPONSORSHIP").get("Member");this.members=[],this.membersManagerService.getRichMembersByIds(o).subscribe(v=>{this.members=v,this.loading=!1})}getGroupsAndVos(o){this.loading=!0;const v=this.roles.get(o).get("Vo"),U=this.roles.get(o).get("Group");this.vos=[],this.groups=[],this.groupsManagerService.getGroupsByIds(U).subscribe(B=>{this.groups=B,this.vosManagerService.getVosByIds(v).subscribe(W=>{this.vos=W,this.loading=!1})})}getFacilities(o){this.loading=!0,this.facilities=[];const v=this.roles.get(o).get("Facility");this.facilitiesManagerService.getFacilitiesByIds(v).subscribe(U=>{this.facilities=U.map(B=>({facility:B})),this.loading=!1})}prepareRoles(o){this.roleNames.forEach(v=>{const U=new Map;switch(Object.keys(o[v]).forEach(W=>{U.set(W,o[v][W])}),v){case"SELF":this.isSelf=!0;break;case"GROUPADMIN":this.isGroupAdmin=!0;break;case"VOADMIN":this.isVoAdmin=!0;break;case"RESOURCEADMIN":this.isResourceAdmin=!0;break;case"FACILITYADMIN":this.isFacilityAdmin=!0;break;case"TOPGROUPCREATOR":this.isTopGroupCreator=!0;break;case"SPONSORSHIP":this.hasSponsorship=!0;break;case"SPONSOR":this.isSponsor=!0;break;case"RESOURCESELFSERVICE":this.isResourceSelfService=!0;break;case"VOOBSERVER":this.isVoObserver=!0;break;case"RESOURCEOBSERVER":this.isResourceObserver=!0;break;case"GROUPOBSERVER":this.isGroupObserver=!0;break;case"TRUSTEDFACILITYADMIN":this.isTrustedFacilityAdmin=!0;break;case"FACILITYOBSERVER":this.isFacilityObserver=!0;break;case"PERUNADMIN":this.isPerunAdmin=!0;break;case"PERUNOBSERVER":this.isPerunObserver=!0}this.roles.set(v,U)}),this.roleNames=this.roleNames.filter(v=>!this.roleFilter.includes(v)),this.outerLoading=!1}}return a.\u0275fac=function(o){return new(o||a)(e.Y36(R.Ct),e.Y36(R.Fv),e.Y36(R.YF),e.Y36(R.IQ),e.Y36(R.xk),e.Y36(R.uq),e.Y36(R.ff),e.Y36(s.gz),e.Y36(m.d6))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-user-roles"]],hostVars:2,hostBindings:function(o,v){2&o&&e.ekj("router-component",v.true)},decls:5,vars:5,consts:[[1,"page-subtitle","d-flex"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened",4,"ngIf"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["mat-card-avatar","","svgIcon","perun-user-dark",1,"mr-2"],[1,"mt-auto","mb-auto"],[3,"displayedColumns","vos"],["class","mt-5",4,"ngIf"],[1,"mt-5"],[3,"displayedColumns","disableRouting","users"],["mat-card-avatar","","svgIcon","perun-group-black",1,"mr-2"],[3,"displayedColumns","groups"],["mat-card-avatar","","svgIcon","perun-vo-black",1,"mr-2"],["mat-card-avatar","","svgIcon","perun-resource-black",1,"mr-2"],[3,"resources","displayedColumns","routingVo"],["mat-card-avatar","","svgIcon","perun-facility-black",1,"mr-2"],[3,"displayedColumns","facilities"],[3,"displayedColumns","members"],["class","role-content",4,"ngFor","ngForOf"],[1,"role-content"]],template:function(o,v){1&o&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,I,1,0,"mat-spinner",1),e.YNc(4,Ge,18,17,"mat-accordion",2)),2&o&&(e.xp6(1),e.Oqu(e.lcZ(2,3,"ROLES.TITLE")),e.xp6(2),e.Q6J("ngIf",v.outerLoading),e.xp6(1),e.Q6J("ngIf",!v.outerLoading))},directives:[t.O5,D.$g,l.pp,l.ib,l.yz,l.yK,n.Hw,M.kc,N.Z,b.C,L.W,y.C,Y.X,A.O,t.sg],pipes:[Z.X$],styles:[".role-content[_ngcontent-%COMP%]{overflow:auto;overflow-y:hidden}.info-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),a})()},46597:(w,P,i)=>{i.d(P,{d:()=>O});var R=i(10036),m=i(32105),e=i(20449),s=i(9244),t=i(54668),D=i(94814),l=i(32080),n=i(5e3),M=i(48966),N=i(11735),b=i(96214),L=i(47423),y=i(69808),Y=i(64877),A=i(20773),Z=i(51062);function I(c,u){if(1&c&&(n._UZ(0,"app-users-list",6),n.ALo(1,"translate")),2&c){const r=n.oxw();n.Q6J("noUsersFoundLabel",n.lcZ(1,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.NO_ASSOCIATED_USERS"))("disableRouting",r.disableRouting)("displayedColumns",r.displayedColumns)("selection",r.selection)("tableId",r.tableId)("users",r.associatedUsers)}}function T(c,u){1&c&&n._UZ(0,"mat-spinner",7)}let O=(()=>{class c{constructor(r,p,_,g,E){this.dialog=r,this.router=p,this.authResolver=_,this.userManager=g,this.entityStorageService=E,this.loading=!1,this.selection=new e.Ov(!1,[]),this.associatedUsers=[],this.tableId=R.It,this.displayedColumns=["select","id","user","name"]}ngOnInit(){this.loading=!0,this.user=this.entityStorageService.getEntity(),this.userManager.getUsersBySpecificUser(this.user.id).subscribe(r=>{this.associatedUsers=r,this.setAuth(),this.loading=!1})}refreshTable(){this.loading=!0,this.userManager.getUsersBySpecificUser(this.user.id).subscribe(r=>{this.associatedUsers=r,this.selection.clear(),this.loading=!1})}setAuth(){this.addAuth=this.authResolver.isAuthorized("addSpecificUserOwner_User_User_policy",[this.user]),this.removeAuth=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[this.user]),this.disableRouting=!this.authResolver.isPerunAdminOrObserver()}onAdd(){const r=(0,s.kZ)();r.width="1250px",r.data={userId:this.user.id,theme:"user-theme",isService:!0,target:"USER"},this.dialog.open(t.l,r).afterClosed().subscribe(_=>{_&&this.refreshTable()})}onRemove(){const r=(0,s.kZ)();r.width="650px",r.data={identities:this.selection.selected,userId:this.user.id,specificUser:this.selection.selected[0],isService:!0,theme:"user-theme",targetTitle:"USER",targetDescription:"SERVICE"},this.dialog.open(D.B,r).afterClosed().subscribe(_=>{_&&(this.authResolver.isAuthorized("getUsersBySpecificUser_User_policy",[this.user])?this.refreshTable():this.router.navigate(["/myProfile"]))})}}return c.\u0275fac=function(r){return new(r||c)(n.Y36(M.uw),n.Y36(N.F0),n.Y36(l.x4),n.Y36(m.Fv),n.Y36(l.fb))},c.\u0275cmp=n.Xpm({type:c,selectors:[["app-user-settings-associated-users"]],decls:13,vars:12,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","disableRouting","displayedColumns","selection","tableId","users"],[1,"mr-auto","ml-auto"]],template:function(r,p){1&r&&(n.TgZ(0,"div"),n.TgZ(1,"h1",0),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return p.refreshTable()}),n.qZA(),n.TgZ(5,"button",2),n.NdJ("click",function(){return p.onAdd()}),n._uU(6),n.ALo(7,"translate"),n.qZA(),n.TgZ(8,"button",3),n.NdJ("click",function(){return p.onRemove()}),n._uU(9),n.ALo(10,"translate"),n.qZA(),n.YNc(11,I,2,8,"app-users-list",4),n.qZA(),n.YNc(12,T,1,0,"mat-spinner",5)),2&r&&(n.xp6(2),n.Oqu(n.lcZ(3,6,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.TITLE")),n.xp6(4),n.hij(" ",n.lcZ(7,8,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.ADD")," "),n.xp6(2),n.Q6J("disabled",0===p.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(10,10,"USER_DETAIL.SETTINGS.ASSOCIATED_USERS.REMOVE")," "),n.xp6(2),n.Q6J("ngIf",!p.loading),n.xp6(1),n.Q6J("ngIf",p.loading))},directives:[b.t,L.lW,y.O5,Y.C,A.$g],pipes:[Z.X$],styles:[""]}),c})()},97453:(w,P,i)=>{i.d(P,{R:()=>u});var R=i(20449),m=i(32105),e=i(10036),s=i(9244),t=i(54668),D=i(94814),l=i(32080),n=i(5e3),M=i(11735),N=i(48966),b=i(96214),L=i(69808),y=i(47423),Y=i(20773),A=i(64877),Z=i(51062);function I(r,p){if(1&r){const _=n.EpF();n.TgZ(0,"button",6),n.NdJ("click",function(){return n.CHM(_),n.oxw().onAdd()}),n._uU(1),n.ALo(2,"translate"),n.qZA()}2&r&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.CREATE"),"\n"))}function T(r,p){if(1&r){const _=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){return n.CHM(_),n.oxw().onRemove()}),n._uU(1),n.ALo(2,"translate"),n.qZA()}if(2&r){const _=n.oxw();n.Q6J("disabled",0===_.selection.selected.length),n.xp6(1),n.hij(" ",n.lcZ(2,2,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.DELETE"),"\n")}}function O(r,p){1&r&&n._UZ(0,"mat-spinner",8)}function c(r,p){if(1&r&&(n._UZ(0,"app-users-list",9),n.ALo(1,"translate")),2&r){const _=n.oxw();n.Q6J("noUsersFoundLabel",n.lcZ(1,6,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.NO_IDENTITIES"))("displayedColumns",_.displayedColumns)("selection",_.selection)("tableId",_.tableId)("routeToAdmin",_.routeToAdminSection)("users",_.identities)}}let u=(()=>{class r{constructor(_,g,E,C,J,Q){this.route=_,this.dialog=g,this.router=E,this.userManager=C,this.authResolver=J,this.store=Q,this.loading=!1,this.selection=new R.Ov(!1,[]),this.identities=[],this.tableId=e.Iz,this.displayedColumns=["select","id","user","name"],this.routeToAdminSection=!0,this.targetTitle="SERVICE",this.targetDescription="SERVICE"}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(_=>{this.userId=Number(_.userId),this.userId||(this.targetTitle="SERVICE",this.targetDescription="SELF",this.userId=this.store.getPerunPrincipal().userId,this.routeToAdminSection=!1),this.setAuthRights(),this.refreshTable()})}refreshTable(){this.loading=!0,this.userManager.getSpecificUsersByUser(this.userId).subscribe(_=>{this.identities=_,this.selection.clear(),this.loading=!1})}setAuthRights(){this.addIdentity=this.authResolver.isPerunAdmin(),this.removeIdentity=this.authResolver.isAuthorized("removeSpecificUserOwner_User_User_policy",[{id:this.userId,beanName:"User"}])}onAdd(){const _=(0,s.kZ)();_.width="1250px",_.data={userId:this.userId,theme:"user-theme",isService:!1,target:this.targetTitle},this.dialog.open(t.l,_).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onRemove(){const _=(0,s.kZ)();_.width="650px",_.data={identities:this.selection.selected,userId:this.userId,specificUser:this.selection.selected[0],theme:"user-theme",targetTitle:this.targetTitle,targetDescription:this.targetDescription},this.dialog.open(D.B,_).afterClosed().subscribe(E=>{E&&this.refreshTable()})}}return r.\u0275fac=function(_){return new(_||r)(n.Y36(M.gz),n.Y36(N.uw),n.Y36(M.F0),n.Y36(m.Fv),n.Y36(l.x4),n.Y36(l.d6))},r.\u0275cmp=n.Xpm({type:r,selectors:[["app-user-settings-service-identities"]],decls:8,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"noUsersFoundLabel","displayedColumns","selection","tableId","routeToAdmin","users"]],template:function(_,g){1&_&&(n.TgZ(0,"h1",0),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"perun-web-apps-refresh-button",1),n.NdJ("refresh",function(){return g.refreshTable()}),n.qZA(),n.YNc(4,I,3,3,"button",2),n.YNc(5,T,3,4,"button",3),n.YNc(6,O,1,0,"mat-spinner",4),n.YNc(7,c,2,8,"app-users-list",5)),2&_&&(n.xp6(1),n.Oqu(n.lcZ(2,5,"USER_DETAIL.SETTINGS.SERVICE_IDENTITIES.TITLE")),n.xp6(3),n.Q6J("ngIf",g.addIdentity),n.xp6(1),n.Q6J("ngIf",g.removeIdentity),n.xp6(1),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading))},directives:[b.t,L.O5,y.lW,Y.$g,A.C],pipes:[Z.X$],styles:[""]}),r})()},46142:(w,P,i)=>{i.r(P),i.d(P,{UsersModule:()=>Qe});var R=i(69808),m=i(11735),e=i(74837),s=i(85985),t=i(5e3),D=i(61283);let l=(()=>{class f{}return f.\u0275fac=function(d){return new(d||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings"]],hostVars:2,hostBindings:function(d,S){2&d&&t.ekj("router-component",S.true)},decls:1,vars:0,template:function(d,S){1&d&&t._UZ(0,"app-animated-router-outlet")},directives:[D.A],styles:[""]}),f})();var n=i(32105),M=i(20773),N=i(71135);function b(f,x){1&f&&t._UZ(0,"mat-spinner",2)}function L(f,x){if(1&f&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&f){const d=t.oxw();t.xp6(1),t.Q6J("items",d.navItems)("size","small")}}let y=(()=>{class f{constructor(d,S){this.route=d,this.userManager=S,this.navItems=[],this.loading=!1}ngOnInit(){window.location.pathname.startsWith("/admin")?(this.loading=!0,this.route.parent.parent.params.subscribe(d=>{const S=Number(d.userId);this.userManager.getUserById(S).subscribe(F=>{this.isServiceUser=F.serviceUser,this.initNavItems(),this.loading=!1},()=>this.loading=!1)})):this.initNavItems()}initNavItems(){this.navItems=[],window.location.pathname.startsWith("/admin")||this.navItems.push({cssIcon:"perun-settings2",url:"passwordReset",label:"MENU_ITEMS.USER.PASSWORD_RESET",style:"user-btn"},{cssIcon:"perun-settings1",url:"guiConfig",label:"MENU_ITEMS.USER.GUI_CONFIG",style:"user-btn"})}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(m.gz),t.Y36(n.Fv))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings-overview"]],hostVars:2,hostBindings:function(d,S){2&d&&t.ekj("router-component",S.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(d,S){1&d&&(t.YNc(0,b,1,0,"mat-spinner",0),t.YNc(1,L,2,2,"div",1)),2&d&&(t.Q6J("ngIf",S.loading),t.xp6(1),t.Q6J("ngIf",!S.loading))},directives:[R.O5,M.$g,N.L],styles:[""]}),f})();var Y=i(98973),A=i(387),Z=i(9244),I=i(6335),T=i(67322),O=i(74107),c=i(90508),u=i(51062);function r(f,x){if(1&f&&(t.TgZ(0,"mat-option",5),t._uU(1),t.qZA()),2&f){const d=x.$implicit;t.Q6J("value",d),t.xp6(1),t.hij(" ",d," ")}}let p=(()=>{class f{constructor(d){this.guiConfigService=d,this.tablePageSizeOptions=Z.f7}ngOnInit(){this.preferredTablePageSize=this.guiConfigService.getNumber(I.Rc)}updatePreferredTablePageSize(){this.guiConfigService.setNumber(I.Rc,this.preferredTablePageSize)}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(I.Ng))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-settings-app-configuration"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[1,"col-12","col-lg-6","p-0"],[1,"w-100"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(d,S){1&d&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"mat-form-field",2),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",3),t.NdJ("valueChange",function(){return S.updatePreferredTablePageSize()})("valueChange",function(K){return S.preferredTablePageSize=K}),t.YNc(9,r,2,2,"mat-option",4),t.qZA(),t.qZA(),t.qZA()),2&d&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"USER_DETAIL.SETTINGS.GUI_CONFIG.TITLE")),t.xp6(5),t.Oqu(t.lcZ(7,6,"USER_DETAIL.SETTINGS.GUI_CONFIG.PREF_TABLE_PAGE_SIZE")),t.xp6(2),t.Q6J("value",S.preferredTablePageSize),t.xp6(1),t.Q6J("ngForOf",S.tablePageSizeOptions))},directives:[T.KE,T.hX,O.gD,R.sg,c.ey],pipes:[u.X$],styles:[""]}),f})();var _=i(17755),g=i(32080),E=i(77968),C=i(4235),J=i(25245),Q=i(29772),G=i(31359);const V=function(){return{color:"black"}},ee=function(){return["/myProfile"]};function te(f,x){if(1&f&&(t.TgZ(0,"div",1),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"div",2),t._UZ(3,"mat-icon",3),t.ALo(4,"translate"),t.TgZ(5,"div",4),t.TgZ(6,"div",5),t.TgZ(7,"a",6),t._uU(8),t.ALo(9,"userFullName"),t.qZA(),t.TgZ(10,"span",7),t._uU(11),t.qZA(),t.qZA(),t.TgZ(12,"span",8),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&f){const d=t.oxw();t.xp6(3),t.s9C("matTooltip",t.lcZ(4,8,"MENU_ITEMS.USER.ENTITY")),t.Q6J("ngStyle",t.DdM(16,V)),t.xp6(4),t.Q6J("routerLink",t.DdM(17,ee)),t.xp6(1),t.hij(" ",t.lcZ(9,10,d.user)," "),t.xp6(3),t.hij(" \xa0#",d.user.id," "),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"MENU_ITEMS.USER.ENTITY"),", ",t.lcZ(15,14,"MENU_ITEMS.USER.USER_TYPE"),": ",d.getUserType()," ")}}let ne=(()=>{class f{constructor(d,S,F){this.sideMenuService=d,this.store=S,this.router=F}ngOnInit(){this.path=this.router.url,this.router.events.subscribe(()=>{this.path=this.router.url}),this.principal=this.store.getPerunPrincipal(),this.user=this.principal.user,this.sideMenuService.setUserItems([])}getUserType(){return this.user.serviceUser?"Service":"Person"}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(E.D),t.Y36(g.d6),t.Y36(m.F0))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-user-profile"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"]],template:function(d,S){1&d&&t.YNc(0,te,17,18,"div",0),2&d&&t.Q6J("ngIf",void 0!==S.user)},directives:[R.O5,C.W,J.Hw,Q.gM,R.PC,m.yS,D.A],pipes:[u.X$,G.d],styles:[""]}),f})();var se=i(6097),ie=i(97453),ae=i(69024),oe=i(29862),z=i(48966),H=i(47423);function re(f,x){1&f&&t._UZ(0,"mat-spinner",11)}function _e(f,x){if(1&f){const d=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(d),t.oxw(2).editUser()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}const le=function(){return{color:"black"}},pe=function(f){return["/myProfile/service-identities",f]};function ce(f,x){if(1&f&&(t.TgZ(0,"div",1),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,re,1,0,"mat-spinner",2),t.TgZ(3,"div",3),t._UZ(4,"mat-icon",4),t.ALo(5,"translate"),t.TgZ(6,"div",5),t.TgZ(7,"div",6),t.TgZ(8,"a",7),t._uU(9),t.ALo(10,"userFullName"),t.qZA(),t.TgZ(11,"span",8),t._uU(12),t.qZA(),t.YNc(13,_e,3,0,"button",9),t.qZA(),t.TgZ(14,"div"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"span",10),t._uU(18),t.ALo(19,"translate"),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(21,"app-animated-router-outlet"),t.qZA()),2&f){const d=t.oxw();t.xp6(2),t.Q6J("ngIf",d.loading),t.xp6(2),t.s9C("matTooltip",t.lcZ(5,12,"MENU_ITEMS.USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,le)),t.xp6(4),t.Q6J("routerLink",t.VKq(23,pe,d.user.id)),t.xp6(1),t.hij(" ",t.lcZ(10,14,d.user)," "),t.xp6(3),t.hij(" \xa0#",d.user.id," "),t.xp6(1),t.Q6J("ngIf",d.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(16,16,"ADMIN_USER.UUID"),": ",d.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(19,18,"MENU_ITEMS.USER.ENTITY"),", ",t.lcZ(20,20,"MENU_ITEMS.USER.USER_TYPE"),": ",d.getUserType()," ")}}let me=(()=>{class f{constructor(d,S,F,K,We,we,Ke){this.sideMenuService=d,this.usersService=S,this.sideMenuItemService=F,this.route=K,this.dialog=We,this.authResolver=we,this.entityStorageService=Ke,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(d=>{const S=Number(d.userId);this.entityStorageService.setEntity({id:S,beanName:"User"}),this.usersService.getUserById(S).subscribe(F=>{this.user=F;const K=this.sideMenuItemService.parseServiceIdentity(F);this.sideMenuService.setUserItems([K]),this.loading=!1},()=>this.loading=!1)})}getUserType(){return this.user.serviceUser?"Service":"Person"}editUser(){const d=(0,Z.kZ)();d.width="450px",d.data={theme:"admin-theme",user:this.user},this.dialog.open(oe.x,d).afterClosed().subscribe(F=>{F&&this.usersService.getUserById(this.user.id).subscribe(K=>{this.user=K})})}}return f.\u0275fac=function(d){return new(d||f)(t.Y36(E.D),t.Y36(n.Fv),t.Y36(ae.V),t.Y36(m.gz),t.Y36(z.uw),t.Y36(g.x4),t.Y36(g.fb))},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-service-identity-detail-page"]],decls:1,vars:1,consts:[["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-service-identity",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"mr-auto","ml-auto"],["mat-icon-button","",3,"click"]],template:function(d,S){1&d&&t.YNc(0,ce,22,25,"div",0),2&d&&t.Q6J("ngIf",void 0!==S.user)},directives:[R.O5,C.W,M.$g,J.Hw,Q.gM,R.PC,m.yS,H.lW,D.A],pipes:[u.X$,G.d],styles:[""]}),f})(),ue=(()=>{class f{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-manager",url:"associated-users",label:"MENU_ITEMS.USER.ASSOCIATED_USERS",style:"user-btn"}]}}return f.\u0275fac=function(d){return new(d||f)},f.\u0275cmp=t.Xpm({type:f,selectors:[["app-service-identity-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(d,S){1&d&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&d&&t.Q6J("items",S.navItems)("size","small")},directives:[N.L],styles:[""]}),f})();var de=i(46597);const ge=[{path:"",component:ne,children:[{path:"",component:_.Z,data:{animation:"UserOverviewPage"}},{path:"attributes",component:Y.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:e.j,data:{animation:"UserOrganizationsPage",showPrincipal:!0}},{path:"groups",component:s.u,data:{animation:"UserGroupsPage",showPrincipal:!0}},{path:"roles",component:se.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:ie.R,data:{animation:"UserServiceIdentities"}},{path:"settings",component:l,children:[{path:"",component:y,data:{animation:"UserSettingsOverviewPage"}},{path:"passwordReset",component:A.Nj,data:{animation:"PasswordResetPage"}},{path:"guiConfig",component:p,data:{animation:"UserAppConfigurationPage"}}]}]},{path:"service-identities/:userId",component:me,children:[{path:"",component:ue},{path:"associated-users",component:de.d}]}];let fe=(()=>{class f{}return f.\u0275fac=function(d){return new(d||f)},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[m.Bz.forChild(ge)],m.Bz]}),f})();var he=i(91079),Ee=i(98833),X=i(93075),Ie=i(2638),Te=i(81125),q=i(84847),ve=i(32075),Ue=i(53251),Ae=i(90149),Ce=i(77446),Re=i(57261),Oe=i(85899),xe=i(32368),Se=i(86856),Ze=i(79814),De=i(4834),Me=i(86087),$=i(9224),k=i(92081),be=i(44409),Ne=i(26688),Pe=i(92181),Le=i(53435),ye=i(63189),Ye=i(27544),Be=i(11243),Je=i(19516),Fe=i(14264);let Qe=(()=>{class f{constructor(d){this.translate=d,d.addLangs(["en","cs"])}}return f.\u0275fac=function(d){return new(d||f)(t.LFG(u.sK))},f.\u0275mod=t.oAB({type:f}),f.\u0275inj=t.cJS({imports:[[R.ez,fe,he.Bb,Ee.c,T.lN,X.UX,X.u5,J.Ps,Ie.SJ,Te.To,u.aw.forChild({}),H.ot,q.JX,ve.p0,Ue.Nh,Ae.dp,H.ot,Ce.p9,z.Is,O.LD,Re.ZX,M.Cq,Oe.Cv,Q.AV,xe.rP,Se.FA,c.XK,Ze.Fk,De.t,c.si,Me.TU,$.QW,k.T5,be._t,$.QW,Ne.Hi,Pe.Tx,Le.Cl,ye.r,Ye.g,A.ez,Be.r,Je.d4,Fe.m]]}),f})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/243.6d3d1f3024f100ed.js b/dist/apps/admin-gui/243.918a8ea46ff9a066.js similarity index 53% rename from dist/apps/admin-gui/243.6d3d1f3024f100ed.js rename to dist/apps/admin-gui/243.918a8ea46ff9a066.js index 468dac0df..782c109e5 100644 --- a/dist/apps/admin-gui/243.6d3d1f3024f100ed.js +++ b/dist/apps/admin-gui/243.918a8ea46ff9a066.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:(z,J,i)=>{i.d(J,{G:()=>m});var C=i(5e3);let m=(()=>{class o{constructor(){this.entityDetailChange=new C.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return o.\u0275fac=function(b){return new(b||o)},o.\u0275prov=C.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},76023:(z,J,i)=>{i.d(J,{y:()=>V});var C=i(32105),m=i(10036),o=i(36908),d=i(5e3),b=i(11735),s=i(96214),t=i(64901),e=i(69808),G=i(20773),N=i(38383),a=i(51062);function P(U,y){1&U&&d._UZ(0,"mat-spinner",5)}const O=function(){return["id","fullName"]};function I(U,y){if(1&U){const f=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){return d.CHM(f),d.oxw().refreshTable()}),d.qZA()}if(2&U){const f=d.oxw();d.Q6J("displayedColumns",d.DdM(5,O))("disableRouting",!f.routeAuth)("filter",f.filterValue)("members",f.members)("tableId",f.tableId)}}let V=(()=>{class U{constructor(f,L,Y,B){this.route=f,this.resourceService=L,this.authResolver=Y,this.entityStorageService=B,this.loading=!1,this.filterValue="",this.tableId=m.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(f=>{this.members=f,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(f){this.filterValue=f}}return U.\u0275fac=function(f){return new(f||U)(d.Y36(b.gz),d.Y36(C.xk),d.Y36(o.x4),d.Y36(o.fb))},U.\u0275cmp=d.Xpm({type:U,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(f,L){1&f&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return L.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(B){return L.applyFilter(B)}),d.qZA(),d.YNc(5,P,1,0,"mat-spinner",3),d.YNc(6,I,1,6,"perun-web-apps-members-list",4)),2&f&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",L.loading),d.xp6(1),d.Q6J("ngIf",!L.loading))},directives:[s.t,t.P,e.O5,G.$g,N.O],pipes:[a.X$],styles:[""]}),U})()},49546:(z,J,i)=>{i.d(J,{D:()=>S});var C=i(32105),m=i(10036),o=i(20449),d=i(9244),b=i(48966),s=i(36908),t=i(5e3),e=i(51062),G=i(69808),N=i(20773),a=i(53251),P=i(64901),O=i(60205),I=i(90439),V=i(47423);function U(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function f(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,y))("selection",c.selection)("tableId",c.tableId)}}const L=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){return t.CHM(c),t.oxw().tabChanged()}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10),t.TgZ(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){return t.CHM(c),t.oxw().applyFilter(x)}),t.ALo(6,"translate"),t.qZA(),t.qZA(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13),t.TgZ(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){return t.CHM(c),t.oxw().servicePackageSelected(x)}),t.qZA(),t.qZA(),t.YNc(12,f,1,6,"app-services-list",15),t.qZA(),t.qZA(),t.qZA()}if(2&l){const c=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,L))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let B=(()=>{class l{constructor(c,g,x,K,q,ce){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourceManager=q,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=m.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(g=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=g;for(const K of c)for(const q of g)K.id===q.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(q),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(g=>{this.filteredServices=g}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const g of this.selection.selected)c.push(g.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk),t.Y36(C.KK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,U,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===g.selection.selected.length&&-1===g.selectedPackage.id||g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===g.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[b.uh,G.O5,N.$g,b.xY,a.SP,a.uX,P.P,O.Q,I.F,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var W=i(32075);function X(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function M(l,_){1&l&&t._UZ(0,"tr",17)}function j(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,M,1,0,"tr",13),t.YNc(12,j,1,0,"tr",14),t.qZA(),t.qZA()),2&l){const c=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,g,x,K,q){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourcesManager=q,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const g of this.data.services)c.push(g.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(b.so),t.Y36(b.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(C.xk))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,X,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[b.uh,G.O5,N.$g,b.xY,W.BZ,W.w1,W.fO,W.ge,W.Dz,W.ev,W.as,W.XQ,W.nj,W.Gk,b.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var F=i(11735),$=i(96214),oe=i(7434);function ie(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(c),t.oxw().addService()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(c),t.oxw().removeServices()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ae(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function E(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let S=(()=>{class l{constructor(c,g,x,K,q){this.route=c,this.resourcesManager=g,this.dialog=x,this.guiAuthResolver=K,this.entityStorageService=q,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=m.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(B,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(F.gz),t.Y36(C.xk),t.Y36(b.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(c,g){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return g.loadAllServices()}),t.qZA(),t.YNc(4,ie,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(K){return g.applyFilter(K)}),t.qZA(),t.YNc(7,ae,1,0,"mat-spinner",5),t.YNc(8,E,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",g.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",g.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading))},directives:[$.t,G.O5,V.lW,oe.L,N.$g,O.Q],pipes:[e.X$],styles:[""]}),l})()},92090:(z,J,i)=>{i.d(J,{X:()=>y});var C=i(36908),m=i(32105),o=i(5e3),d=i(53251),b=i(12651),s=i(69808),t=i(19191),e=i(51062);function G(f,L){1&f&&(o._uU(0),o.ALo(1,"translate")),2&f&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(f,L){if(1&f&&o._UZ(0,"app-one-entity-attribute-page",4),2&f){const Y=o.oxw();o.Q6J("entityId",Y.resource.id)("entity","resource")}}function a(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function P(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function O(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,a,3,6,"ng-template",1),o.YNc(2,P,1,3,"ng-template",2),o.qZA())}function I(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function V(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function U(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,I,3,6,"ng-template",1),o.YNc(2,V,1,3,"ng-template",2),o.qZA())}let y=(()=>{class f{constructor(Y,B,W){this.authResolver=Y,this.resourceManager=B,this.entityStorageService=W}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return f.\u0275fac=function(Y){return new(Y||f)(o.Y36(C.x4),o.Y36(m.xk),o.Y36(C.fb))},f.\u0275cmp=o.Xpm({type:f,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,B){2&Y&&o.ekj("router-component",B.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,B){1&Y&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,G,2,3,"ng-template",1),o.YNc(7,N,1,2,"ng-template",2),o.qZA(),o.YNc(8,O,3,0,"mat-tab",3),o.YNc(9,U,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&Y&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",B.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",B.resourceGroupAttAuth))},directives:[d.SP,d.uX,d.uD,d.Vc,b.t,s.O5,t.Y],pipes:[e.X$],styles:[""]}),f})()},98918:(z,J,i)=>{i.d(J,{b:()=>E});var C=i(36769),m=i(69024),o=i(32105),d=i(9244),b=i(36908),s=i(19516),t=i(16074),e=i(533),G=i(22158),N=i(7625),a=i(5e3),P=i(11735),O=i(77968),I=i(48966),V=i(15003),U=i(4235),y=i(69808),f=i(20773),L=i(25245),Y=i(29772),B=i(47423),W=i(61283),X=i(51062);function te(S,l){1&S&&a._UZ(0,"mat-spinner",3)}function se(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).editResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA(),a.qZA()}}function M(S,l){if(1&S){const _=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).deleteResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA(),a.qZA()}}const j=function(S){return["/organizations",S]};function h(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,j,_.resource.vo.id)),a.xp6(1),a.Oqu(_.resource.vo.name)}}function T(S,l){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.vo.name," ")}}const F=function(S){return["/facilities",S]};function $(S,l){if(1&S&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,F,_.resource.facilityId)),a.xp6(1),a.Oqu(_.resource.facility.name)}}function oe(S,l){if(1&S&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&S){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.facility.name," ")}}const ie=function(){return{color:"black"}},re=function(S){return[S]};function ae(S,l){if(1&S&&(a.TgZ(0,"div"),a.TgZ(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6),a.TgZ(5,"div",7),a.TgZ(6,"a",8),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,se,3,0,"button",10),a.YNc(11,M,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,h,2,4,"a",13),a.YNc(20,T,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,$,2,4,"a",14),a.YNc(24,oe,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&S){const _=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(32,ie)),a.xp6(4),a.Q6J("routerLink",a.VKq(33,re,_.baseUrl)),a.xp6(1),a.hij(" ",_.resource.name," "),a.xp6(2),a.hij(" \xa0#",_.resource.id," "),a.xp6(1),a.Q6J("ngIf",_.editResourceAuth),a.xp6(1),a.Q6J("ngIf",_.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",_.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.voLinkAuth),a.xp6(1),a.AsE(" #",_.resource.voId,", ",a.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",_.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.facilityLinkAuth),a.xp6(1),a.lnq(" #",_.resource.facilityId,", ",a.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let E=(()=>{class S extends((0,G.T)()){constructor(_,c,g,x,K,q,ce,A,w,u,R){super(),this.route=_,this.facilityManager=c,this.vosManagerService=g,this.resourcesManager=x,this.sideMenuService=K,this.sideMenuItemService=q,this.dialog=ce,this.guiAuthResolver=A,this.router=w,this.entityStorageService=u,this.reloadEntityDetail=R,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,N.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(g=>{this.resource=g,this.entityStorageService.setEntity({id:g.id,voId:g.voId,facilityId:g.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(g,!1),this.facilityManager.getFacilityById(g.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(g,!0),this.vosManagerService.getVoById(g.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,c])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,c]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const g=(0,d.kZ)();g.width="450px",g.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,g).afterClosed().subscribe(K=>{K&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(q=>{this.resource=q,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(g=>{g&&this.router.navigate(["../"],{relativeTo:this.route})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return S.\u0275fac=function(_){return new(_||S)(a.Y36(P.gz),a.Y36(o.IQ),a.Y36(o.YF),a.Y36(o.xk),a.Y36(O.D),a.Y36(m.V),a.Y36(I.uw),a.Y36(b.x4),a.Y36(P.F0),a.Y36(b.fb),a.Y36(V.G))},S.\u0275cmp=a.Xpm({type:S,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,te,1,0,"mat-spinner",1),a.YNc(3,ae,28,35,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",c.loading),a.xp6(1),a.Q6J("ngIf",!c.loading&&void 0!==c.resource))},directives:[U.W,y.O5,f.$g,L.Hw,Y.gM,y.PC,P.yS,B.lW,W.A],pipes:[X.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[C.Ji]}}),S})()},258:(z,J,i)=>{i.d(J,{K:()=>ce});var C=i(32105),m=i(20449),o=i(48966),d=i(32075),b=i(36908),s=i(5e3),t=i(51062),e=i(69808),G=i(20773),N=i(47423);function a(A,w){1&A&&s._UZ(0,"mat-spinner",6)}function P(A,w){1&A&&s._UZ(0,"th",15)}function O(A,w){if(1&A&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&A){const u=w.$implicit;s.xp6(1),s.Oqu(u.name)}}function I(A,w){1&A&&s._UZ(0,"tr",17)}function V(A,w){1&A&&s._UZ(0,"tr",18)}function U(A,w){if(1&A&&(s.TgZ(0,"div",7),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,P,1,0,"th",11),s.YNc(10,O,2,1,"td",12),s.BQk(),s.YNc(11,I,1,0,"tr",13),s.YNc(12,V,1,0,"tr",14),s.qZA(),s.qZA()),2&A){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let y=(()=>{class A{constructor(u,R,Z,k,Q){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const R of this.data.groups)u.push(R.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,U,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return R.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return R.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",R.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,e.O5,G.$g,o.xY,d.BZ,d.w1,d.fO,d.ge,d.Dz,d.ev,d.as,d.XQ,d.nj,d.Gk,o.H8,N.lW],pipes:[t.X$],styles:[""]}),A})();var f=i(10036),L=i(92081),Y=i(64901),B=i(24179),W=i(32368),X=i(93075);const te=["stepper"];function se(A,w){1&A&&s._UZ(0,"mat-spinner",4)}function M(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function j(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-stepper",6,7),s.TgZ(3,"mat-step",8),s.YNc(4,M,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){return s.CHM(u),s.oxw().applyFilter(Z)}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,j,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeSubgroupsMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().autoAssignSubgroups=Z}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeInactiveMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().asActive=Z}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeAsyncMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().async=Z}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&A){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function F(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperPrevious()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function $(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperNext()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&A){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ie(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(u),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,F,3,3,"button",17),s.YNc(5,$,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&A){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class A{constructor(u,R,Z,k,Q,ee,pe,me){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.groupService=ee,this.guiAuthResolver=pe,this.cd=me,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new m.Ov(!0,[]),this.filterValue="",this.tableId=f.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(R=>{for(const Z of R)-1===u.findIndex(k=>k.id===Z.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,Z])&&this.unAssignedGroups.push(Z);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const R of this.selection.selected)u.push(R.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(b.V6),s.Y36(t.sK),s.Y36(C.xk),s.Y36(C.ff),s.Y36(b.x4),s.Y36(s.sBO))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,R){if(1&u&&s.Gf(te,5),2&u){let Z;s.iGM(Z=s.CRH())&&(R.stepper=Z.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ie,7,6,"div",3),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading&&R.stepper))},directives:[o.uh,e.O5,G.$g,o.xY,L.Vq,L.C0,L.VY,Y.P,B.W,W.Rr,X.JJ,X.On,o.H8,N.lW],pipes:[t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),A})();var ae=i(9244),E=i(64080),S=i(11735),l=i(96214),_=i(29772);function c(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(u),s.oxw().addGroup()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function g(A,w){1&A&&s._UZ(0,"mat-spinner",9)}const x=function(A){return[A]},K=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function q(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){return s.CHM(u),s.oxw().loadAllGroups()}),s.qZA()}if(2&A){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,K))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class A{constructor(u,R,Z,k,Q){this.route=u,this.resourcesManager=R,this.dialog=Z,this.guiAuthResolver=k,this.entityStorageService=Q,this.assignedGroups=[],this.selected=new m.Ov(!0,[]),this.filteredValue="",this.tableId=f.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[E.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(Q=>{const ee=Q.enrichedGroup.group;return ee.status=Q.status,ee.failureCause=Q.failureCause,ee.sourceGroupId=Q.sourceGroupId,ee});const R=this.assignedGroups.map(Q=>Q.id),Z=this.assignedGroups.filter((Q,ee)=>R.indexOf(Q.id)===ee),k=this.assignedGroups.filter((Q,ee)=>{const pe=R.indexOf(Q.id);return pe!==ee&&(null===Q.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(Q=>Q.id);Z.forEach(Q=>{k.includes(Q.id)&&(Q.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(Q=>!!Q.sourceGroupId&&!Q.moreTypesOfAssignment).map(Q=>Q.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ae.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(re,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const u=(0,ae.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(S.gz),s.Y36(C.xk),s.Y36(o.uw),s.Y36(b.x4),s.Y36(b.fb))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,R){1&u&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return R.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return R.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return R.applyFilter(k)}),s.qZA(),s.YNc(11,g,1,0,"mat-spinner",6),s.YNc(12,q,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",R.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,R.resource))),s.xp6(1),s.Q6J("disabled",0===R.selected.selected.length||!R.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",R.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading))},directives:[l.t,e.O5,N.lW,_.gM,Y.P,G.$g,B.W],pipes:[t.X$],styles:[""]}),A})()},4675:(z,J,i)=>{i.d(J,{H:()=>N});var C=i(32105),m=i(36908),o=i(5e3),d=i(11735),b=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.navItems)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.resourcesManager=O,this.route=I,this.guiAuthResolver=V,this.entityStorageService=U,this.routePolicyService=y,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(O){const I=O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${I}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`/${I}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${I}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${I}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${I}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${I}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(C.xk),o.Y36(d.gz),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},20057:(z,J,i)=>{i.d(J,{O:()=>d});var C=i(36908),m=i(5e3),o=i(69815);let d=(()=>{class b{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return b.\u0275fac=function(t){return new(t||b)(m.Y36(C.x4),m.Y36(C.fb))},b.\u0275cmp=m.Xpm({type:b,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&m._UZ(0,"app-managers-page",0),2&t&&m.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},directives:[o.s],styles:[""]}),b})()},16500:(z,J,i)=>{i.d(J,{h:()=>N});var C=i(32105),m=i(36908),o=i(5e3),d=i(11735),b=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.items)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.route=O,this.resourceManager=I,this.authResolver=V,this.entityStorageService=U,this.routePolicyService=y,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(O){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(d.gz),o.Y36(C.xk),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[b.O5,s.$g,t.L],styles:[""]}),a})()},60113:(z,J,i)=>{i.d(J,{t:()=>d});var C=i(36769),m=i(5e3),o=i(61283);let d=(()=>{class b{}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=m.Xpm({type:b,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&m.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&m._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[C.Ji]}}),b})()},20872:(z,J,i)=>{i.d(J,{v:()=>se});var C=i(32105),m=i(20449),o=i(10036),d=i(9244),b=i(36908),s=i(16074),t=i(48966),e=i(5e3),G=i(69808),N=i(20773),a=i(17672),P=i(47423),O=i(51062);function I(M,j){1&M&&e._UZ(0,"mat-spinner",8)}function V(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",9),2&M){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let U=(()=>{class M{constructor(h,T,F){this.dialogRef=h,this.data=T,this.resourcesManager=F,this.tableId=o.g,this.selection=new m.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(h=>{this.resourceTags=h.filter(T=>!this.assignedTags.map(F=>F.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const T=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(t.so),e.Y36(t.WI),e.Y36(C.xk))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.YNc(6,I,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,V,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.qZA()),2&h&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[t.uh,t.xY,G.O5,N.$g,a.o,t.H8,P.lW],pipes:[O.X$],styles:[""]}),M})();var y=i(17584),f=i(96214),L=i(7434);function Y(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().create()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function B(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().addTag()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(h),e.oxw().removeTags()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&M){const h=e.oxw();e.Q6J("disabled",0===h.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function X(M,j){1&M&&e._UZ(0,"mat-spinner",9)}function te(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",10),2&M){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let se=(()=>{class M{constructor(h,T,F,$,oe,ie){this.authResolver=h,this.resourcesManager=T,this.dialog=F,this.notificator=$,this.translate=oe,this.entityStorageService=ie,this.loading=!1,this.resourceTags=[],this.selection=new m.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,d.kZ)();h.width="450px",h.data={items:this.selection.selected.map(F=>F.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(F=>{F&&this.removeTag(this.selection.selected)})}removeTag(h){if(0===h.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,d.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(U,h).afterClosed().subscribe(F=>{F&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,d.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(F=>{F&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe($=>{this.notificator.showSuccess($)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(h=>{this.resourceTags=h,this.selection.clear(),this.loading=!1})}setAuthRights(){const h={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[h]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(b.x4),e.Y36(C.xk),e.Y36(t.uw),e.Y36(b.V6),e.Y36(O.sK),e.Y36(b.fb))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,B,3,3,"button",2),e.YNc(6,W,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function($){return T.applyFilter($)}),e.qZA(),e.YNc(8,X,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},directives:[f.t,G.O5,P.lW,L.L,N.$g,a.o],pipes:[O.X$],styles:[""]}),M})()},17584:(z,J,i)=>{i.d(J,{p:()=>O});var C=i(48966),m=i(32105),o=i(5e3),d=i(69808),b=i(20773),s=i(67322),t=i(98833),e=i(93075),G=i(47423),N=i(51062);function a(I,V){1&I&&o._UZ(0,"mat-spinner",6)}function P(I,V){if(1&I){const U=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(f){return o.CHM(U),o.oxw().name=f}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&I){const U=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",U.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let O=(()=>{class I{constructor(U,y,f){this.dialogRef=U,this.data=y,this.resourceManager=f,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return I.\u0275fac=function(U){return new(U||I)(o.Y36(C.so),o.Y36(C.WI),o.Y36(m.xk))},I.\u0275cmp=o.Xpm({type:I,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(U,y){1&U&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,a,1,0,"mat-spinner",1),o.YNc(5,P,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return y.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return y.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&U&&(o.Tol(y.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",y.loading),o.xp6(1),o.Q6J("ngIf",!y.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",y.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[C.uh,d.O5,b.$g,C.xY,s.KE,t.Nt,e.Fj,e.Q7,e.JJ,e.On,s.TO,C.H8,G.lW],pipes:[N.X$],styles:[""]}),I})()},69815:(z,J,i)=>{i.d(J,{s:()=>Ne});var C=i(20449),m=i(48966),o=i(36908),d=i(32105),b=i(10036),s=i(64080),t=i(93075),e=i(5e3),G=i(51062),N=i(11735),a=i(67322),P=i(74107),O=i(69808),I=i(90508),V=i(98833),U=i(50301),y=i(47423),f=i(20773),L=i(98380),Y=i(64877);let B=(()=>{class r{constructor(n){this.translate=n,this.prefix="ROLES."}transform(n){const p=this.prefix.concat(n);return this.translate.instant(p)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(G.sK,16))},r.\u0275pipe=e.Yjl({name:"displayedRole",type:r,pure:!0}),r})();function W(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function X(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function M(r,v){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const n=e.oxw(2);e.Q6J("disableRouting",!0)("selection",n.selection)("displayedColumns",e.DdM(5,se))("tableId",n.tableId)("users",n.users)}}function j(r,v){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,M,1,6,"app-users-list",19),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",0===n.users.length&&n.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==n.users.length)}}let h=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.usersService=H,this.translate=ne,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new C.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=b.H2,ne.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ne.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.NI("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,n).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(G.sK),e.Y36(o.V6),e.Y36(o.d6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,W,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,X,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,j,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12),e.TgZ(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,U.hT,t.JJ,t.oH,a.TO,y.lW,O.O5,f.$g,L.w,Y.C,m.H8],pipes:[G.X$,B],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=i(32075);function F(r,v){1&r&&e._UZ(0,"th",15)}function $(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.xp6(1),e.AsE("",n.firstName," ",n.lastName,"")}}function oe(r,v){1&r&&e._UZ(0,"tr",17)}function ie(r,v){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ae(r,v){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,n.data.role)))," ")}}function E(r,v){if(1&r&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,F,1,0,"th",10),e.YNc(10,$,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ie,1,0,"tr",13),e.qZA(),e.YNc(13,ae,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",n.removeSelf)}}function S(r,v){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(n=>n.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,E,14,10,"div",1),e.YNc(5,S,1,0,"mat-spinner",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[m.uh,O.O5,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,L.w,f.$g,m.H8,y.lW],pipes:[G.X$,B],styles:[""]}),r})();function _(r,v){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,v){1&r&&e._UZ(0,"th",15)}function g(r,v){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.xp6(1),e.Oqu(n.name)}}function x(r,v){1&r&&e._UZ(0,"tr",17)}function K(r,v){1&r&&e._UZ(0,"tr",18)}function q(r,v){if(1&r&&(e.TgZ(0,"div",7),e.TgZ(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,c,1,0,"th",11),e.YNc(10,g,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,K,1,0,"tr",14),e.qZA(),e.qZA()),2&r){const n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns)}}let ce=(()=>{class r{constructor(n,p,D,H,ne){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,q,13,9,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[m.uh,O.O5,f.$g,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,m.H8,y.lW],pipes:[G.X$],styles:[""]}),r})();var A=i(1059),w=i(24850),u=i(91079),R=i(64901),Z=i(24179);function k(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Q(r,v){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.hij(" ",n.name," ")}}function ee(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(D){return e.CHM(n),e.oxw().applyFilter(D)}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,v){1&r&&e._UZ(0,"mat-spinner",19)}const me=function(){return["select","id","name","description"]};function Ae(r,v){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,me))("selection",n.selection)("filter",n.filterValue)("groups",n.groups)("tableId",n.tableId)}}let Re=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.voService=H,this.groupService=ne,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new C.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.NI,this.firstSearchDone=!1,this.tableId=b.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(n){return n?n.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(n=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,A.O)(""),(0,w.U)(p=>this._filter(p))),this.vos=n,this.loading=!1},()=>this.loading=!1)}showVoGroups(n){this.loading=!0,this.groupService.getAllGroups(n.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(n){this.filterValue=n}_filter(n){const p="string"==typeof n?n.toLowerCase():n.name.toLowerCase();return this.vos.filter(D=>D.name.toLowerCase().includes(p))}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(G.sK),e.Y36(o.V6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","filter","groups","tableId"]],template:function(n,p){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,k,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(H){return p.showVoGroups(H)}),e.YNc(20,Q,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA(),e.qZA(),e.qZA(),e.YNc(22,ee,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n){const D=e.MAs(19);e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",p.myControl)("matAutocomplete",D),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,u.ZL,t.JJ,t.oH,u.XC,O.O5,R.P,f.$g,Z.W,m.H8,y.lW],pipes:[G.X$,B,O.Ov],styles:[""]}),r})();var de=i(9244),Te=i(15003),ge=i(53251),Ee=i(96214);function ve(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Oe(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,v){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const n=e.oxw(2);e.Q6J("disableSelf",n.disableSelf)("tableId",n.tableId)("disableRouting",!n.routeAuth||n.disableRouting)("displayedColumns",n.displayedUserColumns)("selection",n.selectionUsers)("users",n.managers)}}function De(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshUsers()}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshUsers()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,be,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.managers)}}function Ze(r,v){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Me(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function xe(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,v){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=v.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function ye(r,v){1&r&&e._UZ(0,"mat-spinner",16)}function Le(r,v){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",23),2&r){const n=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",n.disableRouting)("displayedColumns",n.displayedGroupColumns)("groups",n.groups)("selection",n.selectionGroups)("tableId",n.tableId)}}function Ge(r,v){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshGroups()}),e.qZA(),e.YNc(1,Me,3,3,"button",18),e.YNc(2,xe,3,4,"button",19),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshGroups()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,ye,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",20)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.groups)}}function Pe(r,v){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialog=n,this.authzService=p,this.storeService=D,this.guiAuthResolver=H,this.router=ne,this.reloadEntityDetail=le,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new C.Ov(!0,[]),this.selectionGroups=new C.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=b.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(n=>this.availableRolesPrivileges.get(n).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let n=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){n=!0;break}n||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(n){this.loading=!0,0===n.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,n,!1,!0).subscribe(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(n=>{this.groups=n,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,n).afterClosed().subscribe(D=>{D&&this.refreshUsers()})}removeManager(){const n=(0,de.kZ)();n.width="450px",n.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const n=(0,de.kZ)();n.width="450px",n.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,n).afterClosed().subscribe(D=>{D&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.uw),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4),e.Y36(N.F0),e.Y36(Te.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(n,p){2&n&&e.ekj("router-component",p.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(n,p){1&n&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(H){return p.tabChanged(H)}),e.TgZ(4,"mat-tab"),e.YNc(5,ve,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Ze,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA(),e.qZA(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},directives:[ge.SP,ge.uX,ge.uD,ge.Vc,Ee.t,O.O5,y.lW,a.KE,a.hX,P.gD,O.sg,I.ey,f.$g,Y.C,Z.W,L.w],pipes:[G.X$,B],styles:[""]}),r})()},17672:(z,J,i)=>{i.d(J,{o:()=>ae});var C=i(84847),m=i(32075),o=i(20449),d=i(36908),b=i(32105),s=i(9244),t=i(5e3),e=i(51062),G=i(18750),N=i(77446),a=i(69808),P=i(67322),O=i(98833),I=i(93075),V=i(47423),U=i(29772),y=i(25245),f=i(98380);function L(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const g=t.oxw();return c?g.masterToggle():null}),t.qZA(),t.qZA()}if(2&E){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,K=t.oxw();return c?K.selection.toggle(x):null})("click",function(c){return c.stopPropagation()}),t.qZA(),t.qZA()}if(2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function B(E,S){1&E&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function W(E,S){if(1&E&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&E){const l=S.$implicit;t.xp6(1),t.Oqu(l.id)}}function X(E,S){1&E&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(E,S){if(1&E&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&E){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"mat-form-field"),t.TgZ(2,"input",25),t.NdJ("ngModelChange",function(c){return t.CHM(l),t.oxw().$implicit.tagName=c}),t.qZA(),t.qZA(),t.qZA()}if(2&E){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function M(E,S){if(1&E&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function j(E,S){1&E&&t._UZ(0,"th",22)}function h(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().edit(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(E,S){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().save(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function F(E,S){if(1&E&&(t.TgZ(0,"td",23),t.TgZ(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA(),t.qZA()),2&E){const l=S.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function $(E,S){1&E&&t._UZ(0,"tr",29)}function oe(E,S){1&E&&t._UZ(0,"tr",30)}function ie(E,S){if(1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&E){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(E,S){1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ae=(()=>{class E{constructor(l,_,c,g,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=g,this.tableCheckbox=x,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new m.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,E.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,E.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,E.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return E.\u0275fac=function(l){return new(l||E)(t.Y36(b.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(C.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(l,_){1&l&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(g){return _.exportData(g)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,B,3,3,"th",7),t.YNc(8,W,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,X,3,3,"th",10),t.YNc(11,M,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,j,1,0,"th",10),t.YNc(14,F,4,2,"td",11),t.BQk(),t.YNc(15,$,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,ie,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},directives:[G.l,m.BZ,C.YE,m.w1,m.fO,m.ge,N.oG,m.Dz,m.ev,C.nU,a.O5,P.KE,O.Nt,I.Fj,I.JJ,I.On,V.lW,U.gM,y.Hw,m.as,m.XQ,m.nj,m.Gk,f.w],pipes:[e.X$],styles:[""]}),E})()},22158:(z,J,i)=>{i.d(J,{T:()=>m});var C=i(8929);const m=(o=class{})=>class extends o{constructor(){super(...arguments),this.destroyed$=new C.xQ}ngOnDestroy(){this.destroyed$.next()}}},90439:(z,J,i)=>{i.d(J,{F:()=>d});var C=i(5e3),m=i(42377),o=i(51062);let d=(()=>{class b{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new C.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return b.\u0275fac=function(t){return new(t||b)},b.\u0275cmp=C.Xpm({type:b,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(C.TgZ(0,"perun-web-apps-entity-search-select",0),C.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),C.ALo(1,"translate"),C.ALo(2,"translate"),C.ALo(3,"translate"),C.qZA()),2&t&&C.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",C.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",C.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",C.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},directives:[m.i],pipes:[o.X$],styles:[""]}),b})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[243],{15003:(z,J,i)=>{i.d(J,{G:()=>m});var v=i(5e3);let m=(()=>{class o{constructor(){this.entityDetailChange=new v.vpe}reloadEntityDetail(){this.entityDetailChange.emit()}}return o.\u0275fac=function(S){return new(S||o)},o.\u0275prov=v.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})()},76023:(z,J,i)=>{i.d(J,{y:()=>V});var v=i(32105),m=i(10036),o=i(32080),d=i(5e3),S=i(11735),s=i(96214),t=i(64901),e=i(69808),G=i(20773),N=i(38383),a=i(51062);function P(U,y){1&U&&d._UZ(0,"mat-spinner",5)}const O=function(){return["id","fullName"]};function I(U,y){if(1&U){const f=d.EpF();d.TgZ(0,"perun-web-apps-members-list",6),d.NdJ("updateTable",function(){return d.CHM(f),d.oxw().refreshTable()}),d.qZA()}if(2&U){const f=d.oxw();d.Q6J("displayedColumns",d.DdM(5,O))("disableRouting",!f.routeAuth)("filter",f.filterValue)("members",f.members)("tableId",f.tableId)}}let V=(()=>{class U{constructor(f,L,Y,B){this.route=f,this.resourceService=L,this.authResolver=Y,this.entityStorageService=B,this.loading=!1,this.filterValue="",this.tableId=m.iQ}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.resourceService.getAssignedRichMembers(this.resource.id).subscribe(f=>{this.members=f,this.setAuthRights(),this.loading=!1})}setAuthRights(){0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.members[0]]))}applyFilter(f){this.filterValue=f}}return U.\u0275fac=function(f){return new(f||U)(d.Y36(S.gz),d.Y36(v.xk),d.Y36(o.x4),d.Y36(o.fb))},U.\u0275cmp=d.Xpm({type:U,selectors:[["app-resource-assigned-members"]],decls:7,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","disableRouting","filter","members","tableId","updateTable"]],template:function(f,L){1&f&&(d.TgZ(0,"h1",0),d._uU(1),d.ALo(2,"translate"),d.qZA(),d.TgZ(3,"perun-web-apps-refresh-button",1),d.NdJ("refresh",function(){return L.refreshTable()}),d.qZA(),d.TgZ(4,"perun-web-apps-debounce-filter",2),d.NdJ("filter",function(B){return L.applyFilter(B)}),d.qZA(),d.YNc(5,P,1,0,"mat-spinner",3),d.YNc(6,I,1,6,"perun-web-apps-members-list",4)),2&f&&(d.xp6(1),d.Oqu(d.lcZ(2,4,"RESOURCE_DETAIL.ASSIGNED_MEMBERS.TITLE")),d.xp6(3),d.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_MEMBERS.FILTER"),d.xp6(1),d.Q6J("ngIf",L.loading),d.xp6(1),d.Q6J("ngIf",!L.loading))},directives:[s.t,t.P,e.O5,G.$g,N.O],pipes:[a.X$],styles:[""]}),U})()},49546:(z,J,i)=>{i.d(J,{D:()=>C});var v=i(32105),m=i(10036),o=i(20449),d=i(9244),S=i(48966),s=i(32080),t=i(5e3),e=i(51062),G=i(69808),N=i(20773),a=i(53251),P=i(64901),O=i(60205),I=i(90439),V=i(47423);function U(l,_){1&l&&t._UZ(0,"mat-spinner",6)}const y=function(){return["id","name","enabled","description"]};function f(l,_){if(1&l&&t._UZ(0,"app-services-list",16),2&l){const c=t.oxw(2);t.Q6J("disableRouting",!0)("services",c.filteredServices)("displayedColumns",t.DdM(5,y))("selection",c.selection)("tableId",c.tableId)}}const L=function(){return["select","id","name","enabled","description"]};function Y(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"mat-tab-group",8),t.NdJ("selectedTabChange",function(){return t.CHM(c),t.oxw().tabChanged()}),t.TgZ(2,"mat-tab",9),t.ALo(3,"translate"),t.TgZ(4,"div",10),t.TgZ(5,"perun-web-apps-debounce-filter",11),t.NdJ("filter",function(x){return t.CHM(c),t.oxw().applyFilter(x)}),t.ALo(6,"translate"),t.qZA(),t.qZA(),t._UZ(7,"app-services-list",12),t.qZA(),t.TgZ(8,"mat-tab",9),t.ALo(9,"translate"),t.TgZ(10,"div",13),t.TgZ(11,"perun-web-apps-service-package-search-select",14),t.NdJ("packageSelected",function(x){return t.CHM(c),t.oxw().servicePackageSelected(x)}),t.qZA(),t.qZA(),t.YNc(12,f,1,6,"app-services-list",15),t.qZA(),t.qZA(),t.qZA()}if(2&l){const c=t.oxw();t.xp6(2),t.s9C("label",t.lcZ(3,12,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_SERVICE")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,14,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("services",c.unAssignedServices)("disableRouting",!0)("displayedColumns",t.DdM(18,L))("filterValue",c.filterValue)("selection",c.selection)("tableId",c.tableId),t.xp6(1),t.s9C("label",t.lcZ(9,16,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SELECT_PACKAGE")),t.xp6(3),t.Q6J("selectedPackage",c.selectedPackage)("servicePackages",c.servicePackages),t.xp6(1),t.Q6J("ngIf",-1!==c.selectedPackage.id)}}let B=(()=>{class l{constructor(c,g,x,K,q,ce){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourceManager=q,this.servicesManager=ce,this.loading=!1,this.unAssignedServices=[],this.filteredServices=[],this.servicePackages=[],this.selectedPackage={name:"Not selected",description:"",id:-1,beanName:"ServicePackage"},this.selection=new o.Ov(!0,[]),this.tableId=m.DR,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getAssignedServicesToResource(this.data.resourceId).subscribe(c=>{this.servicesManager.getServices().subscribe(g=>{this.servicesManager.getServicesPackages().subscribe(x=>{this.servicePackages.push(this.selectedPackage),this.servicePackages=this.servicePackages.concat(x),this.unAssignedServices=g;for(const K of c)for(const q of g)K.id===q.id&&this.unAssignedServices.splice(this.unAssignedServices.indexOf(q),1);this.loading=!1})})})}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0,-1!==this.selectedPackage.id?this.addServicePackage():this.addServices()}applyFilter(c){this.filterValue=c}servicePackageSelected(c){this.selectedPackage=c,-1!==c.id?this.servicesManager.getServicesFromServicesPackage(c.id).subscribe(g=>{this.filteredServices=g}):this.filteredServices=[]}tabChanged(){this.selection.clear(),this.filterValue="",this.selectedPackage=this.servicePackages[0]}addServicePackage(){this.resourceManager.assignServicesPackage(this.data.resourceId,this.selectedPackage.id).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.PACKAGE_SUCCESS_MESSAGE").subscribe(c=>{this.notificator.showSuccess(c),0!==this.selection.selected.length?this.addServices():this.dialogRef.close(!0)})},()=>this.loading=!1)}addServices(){const c=[];for(const g of this.selection.selected)c.push(g.id);this.resourceManager.assignServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.SERVICE_SUCCESS_MESSAGE").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(S.so),t.Y36(S.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk),t.Y36(v.KK))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-assign-service-to-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selectedTabChange"],[3,"label"],[1,"mt-2"],[3,"placeholder","filter"],[3,"services","disableRouting","displayedColumns","filterValue","selection","tableId"],[1,"mt-3"],[3,"selectedPackage","servicePackages","packageSelected"],[3,"disableRouting","services","displayedColumns","selection","tableId",4,"ngIf"],[3,"disableRouting","services","displayedColumns","selection","tableId"]],template:function(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,U,1,0,"mat-spinner",1),t.YNc(5,Y,13,19,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===g.selection.selected.length&&-1===g.selectedPackage.id||g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ASSIGN_SERVICE_TO_RESOURCE."+(-1===g.selectedPackage.id?"ADD_SERVICES":"ADD_PACKAGE"))," "))},directives:[S.uh,G.O5,N.$g,S.xY,a.SP,a.uX,P.P,O.Q,I.F,S.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var W=i(32075);function X(l,_){1&l&&t._UZ(0,"mat-spinner",6)}function te(l,_){1&l&&t._UZ(0,"th",15)}function se(l,_){if(1&l&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&l){const c=_.$implicit;t.xp6(1),t.Oqu(c.name)}}function M(l,_){1&l&&t._UZ(0,"tr",17)}function j(l,_){1&l&&t._UZ(0,"tr",18)}function h(l,_){if(1&l&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,te,1,0,"th",11),t.YNc(10,se,2,1,"td",12),t.BQk(),t.YNc(11,M,1,0,"tr",13),t.YNc(12,j,1,0,"tr",14),t.qZA(),t.qZA()),2&l){const c=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.ASK")," "),t.xp6(2),t.Q6J("dataSource",c.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",c.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",c.displayedColumns)}}let T=(()=>{class l{constructor(c,g,x,K,q){this.dialogRef=c,this.data=g,this.notificator=x,this.translate=K,this.resourcesManager=q,this.displayedColumns=["name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new W.by(this.data.services)}onSubmit(){this.loading=!0;const c=[];for(const g of this.data.services)c.push(g.id);this.resourcesManager.removeServices(this.data.resourceId,c).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.SUCCESS").subscribe(g=>{this.notificator.showSuccess(g),this.dialogRef.close(!0)})},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(S.so),t.Y36(S.WI),t.Y36(s.V6),t.Y36(e.sK),t.Y36(v.xk))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-remove-service-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(c,g){1&c&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,X,1,0,"mat-spinner",1),t.YNc(5,h,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return g.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return g.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&c&&(t.Tol(g.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.TITLE")),t.xp6(2),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",g.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_RESOURCE.DELETE")," "))},directives:[S.uh,G.O5,N.$g,S.xY,W.BZ,W.w1,W.fO,W.ge,W.Dz,W.ev,W.as,W.XQ,W.nj,W.Gk,S.H8,V.lW],pipes:[e.X$],styles:[""]}),l})();var F=i(11735),$=i(96214),oe=i(7434);function ie(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(c),t.oxw().addService()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&l&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_SERVICES.ADD_SERVICE"),"\n"))}function re(l,_){if(1&l){const c=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(c),t.oxw().removeServices()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&l){const c=t.oxw();t.Q6J("disabled",0===c.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"RESOURCE_DETAIL.ASSIGNED_SERVICES.REMOVE_SERVICE"),"\n")}}function ae(l,_){1&l&&t._UZ(0,"mat-spinner",9)}function E(l,_){if(1&l&&t._UZ(0,"app-services-list",10),2&l){const c=t.oxw();t.Q6J("disableRouting",!c.serviceRoutingAuth)("selection",c.selected)("displayedColumns",c.displayedColumns)("filterValue",c.filterValue)("services",c.assignedServices)("tableId",c.tableId)}}let C=(()=>{class l{constructor(c,g,x,K,q){this.route=c,this.resourcesManager=g,this.dialog=x,this.guiAuthResolver=K,this.entityStorageService=q,this.assignedServices=[],this.selected=new o.Ov(!0,[]),this.tableId=m.uC,this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.getDataForAuthorization(),this.loadAllServices()}loadAllServices(){this.loading=!0,this.resourcesManager.getAssignedServicesToResource(this.resource.id).subscribe(c=>{this.assignedServices=c,this.selected.clear(),this.loading=!1})}addService(){const c=(0,d.kZ)();c.width="800px",c.data={theme:"resource-theme",resourceId:this.resource.id},this.dialog.open(B,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}removeServices(){const c=(0,d.kZ)();c.width="500px",c.data={theme:"resource-theme",resourceId:this.resource.id,services:this.selected.selected},this.dialog.open(T,c).afterClosed().subscribe(x=>{x&&this.loadAllServices()})}applyFilter(c){this.filterValue=c}getDataForAuthorization(){this.assignServiceAuth=this.guiAuthResolver.isAuthorized("assignServices_Resource_List_policy",[this.resource]),this.removeServiceAuth=this.guiAuthResolver.isAuthorized("removeServices_Resource_List_policy",[this.resource]),this.displayedColumns=this.removeServiceAuth?["select","id","name","enabled","script","description"]:["id","name","enabled","script","description"],this.serviceRoutingAuth=this.guiAuthResolver.isPerunAdminOrObserver()}}return l.\u0275fac=function(c){return new(c||l)(t.Y36(F.gz),t.Y36(v.xk),t.Y36(S.uw),t.Y36(s.x4),t.Y36(s.fb))},l.\u0275cmp=t.Xpm({type:l,selectors:[["app-perun-web-apps-resource-assigned-services"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","displayedColumns","filterValue","services","tableId"]],template:function(c,g){1&c&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return g.loadAllServices()}),t.qZA(),t.YNc(4,ie,3,3,"button",2),t.YNc(5,re,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(K){return g.applyFilter(K)}),t.qZA(),t.YNc(7,ae,1,0,"mat-spinner",5),t.YNc(8,E,1,6,"app-services-list",6)),2&c&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"RESOURCE_DETAIL.ASSIGNED_SERVICES.TITLE")),t.xp6(3),t.Q6J("ngIf",g.assignServiceAuth),t.xp6(1),t.Q6J("ngIf",g.removeServiceAuth),t.xp6(1),t.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_SERVICES.FILTER_SERVICES"),t.xp6(1),t.Q6J("ngIf",g.loading),t.xp6(1),t.Q6J("ngIf",!g.loading))},directives:[$.t,G.O5,V.lW,oe.L,N.$g,O.Q],pipes:[e.X$],styles:[""]}),l})()},92090:(z,J,i)=>{i.d(J,{X:()=>y});var v=i(32080),m=i(32105),o=i(5e3),d=i(53251),S=i(12651),s=i(69808),t=i(19191),e=i(51062);function G(f,L){1&f&&(o._uU(0),o.ALo(1,"translate")),2&f&&o.hij(" ",o.lcZ(1,1,"RESOURCE_DETAIL.ENTITY")," ")}function N(f,L){if(1&f&&o._UZ(0,"app-one-entity-attribute-page",4),2&f){const Y=o.oxw();o.Q6J("entityId",Y.resource.id)("entity","resource")}}function a(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function P(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","member")}}function O(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,a,3,6,"ng-template",1),o.YNc(2,P,1,3,"ng-template",2),o.qZA())}function I(f,L){1&f&&(o._uU(0),o.ALo(1,"translate"),o.ALo(2,"translate")),2&f&&o.AsE(" ",o.lcZ(1,2,"RESOURCE_DETAIL.ENTITY")," - ",o.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function V(f,L){if(1&f&&o._UZ(0,"app-two-entity-attribute-page",5),2&f){const Y=o.oxw(2);o.Q6J("firstEntity","resource")("firstEntityId",Y.resource.id)("secondEntity","group")}}function U(f,L){1&f&&(o.TgZ(0,"mat-tab"),o.YNc(1,I,3,6,"ng-template",1),o.YNc(2,V,1,3,"ng-template",2),o.qZA())}let y=(()=>{class f{constructor(Y,B,W){this.authResolver=Y,this.resourceManager=B,this.entityStorageService=W}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.resourceGroupAttAuth=this.authResolver.isAuthorized("getGroupAssignments_Resource_policy",[this.resource]),this.resourceMemberAttAuth=this.authResolver.isAuthorized("getAssignedMembersWithStatus_Resource_policy",[this.resource])}}return f.\u0275fac=function(Y){return new(Y||f)(o.Y36(v.x4),o.Y36(m.xk),o.Y36(v.fb))},f.\u0275cmp=o.Xpm({type:f,selectors:[["app-resource-attributes"]],hostVars:2,hostBindings:function(Y,B){2&Y&&o.ekj("router-component",B.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(Y,B){1&Y&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-tab-group"),o.TgZ(5,"mat-tab"),o.YNc(6,G,2,3,"ng-template",1),o.YNc(7,N,1,2,"ng-template",2),o.qZA(),o.YNc(8,O,3,0,"mat-tab",3),o.YNc(9,U,3,0,"mat-tab",3),o.qZA(),o.qZA()),2&Y&&(o.xp6(2),o.Oqu(o.lcZ(3,3,"RESOURCE_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),o.xp6(6),o.Q6J("ngIf",B.resourceMemberAttAuth),o.xp6(1),o.Q6J("ngIf",B.resourceGroupAttAuth))},directives:[d.SP,d.uX,d.uD,d.Vc,S.t,s.O5,t.Y],pipes:[e.X$],styles:[""]}),f})()},98918:(z,J,i)=>{i.d(J,{b:()=>E});var v=i(36769),m=i(69024),o=i(32105),d=i(9244),S=i(32080),s=i(19516),t=i(16074),e=i(533),G=i(22158),N=i(7625),a=i(5e3),P=i(11735),O=i(77968),I=i(48966),V=i(15003),U=i(4235),y=i(69808),f=i(20773),L=i(25245),Y=i(29772),B=i(47423),W=i(61283),X=i(51062);function te(C,l){1&C&&a._UZ(0,"mat-spinner",3)}function se(C,l){if(1&C){const _=a.EpF();a.TgZ(0,"button",15),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).editResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"edit"),a.qZA(),a.qZA()}}function M(C,l){if(1&C){const _=a.EpF();a.TgZ(0,"button",16),a.NdJ("click",function(){return a.CHM(_),a.oxw(2).deleteResource()}),a.TgZ(1,"mat-icon"),a._uU(2,"delete_forever"),a.qZA(),a.qZA()}}const j=function(C){return["/organizations",C]};function h(C,l){if(1&C&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&C){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,j,_.resource.vo.id)),a.xp6(1),a.Oqu(_.resource.vo.name)}}function T(C,l){if(1&C&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&C){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.vo.name," ")}}const F=function(C){return["/facilities",C]};function $(C,l){if(1&C&&(a.TgZ(0,"a",8),a._uU(1),a.qZA()),2&C){const _=a.oxw(2);a.Q6J("routerLink",a.VKq(2,F,_.resource.facilityId)),a.xp6(1),a.Oqu(_.resource.facility.name)}}function oe(C,l){if(1&C&&(a.TgZ(0,"span"),a._uU(1),a.qZA()),2&C){const _=a.oxw(2);a.xp6(1),a.hij(" ",_.resource.facility.name," ")}}const ie=function(){return{color:"black"}},re=function(C){return[C]};function ae(C,l){if(1&C&&(a.TgZ(0,"div"),a.TgZ(1,"div",4),a._UZ(2,"mat-icon",5),a.ALo(3,"translate"),a.TgZ(4,"div",6),a.TgZ(5,"div",7),a.TgZ(6,"a",8),a._uU(7),a.qZA(),a.TgZ(8,"span",9),a._uU(9),a.qZA(),a.YNc(10,se,3,0,"button",10),a.YNc(11,M,3,0,"button",11),a.qZA(),a.TgZ(12,"div"),a._uU(13),a.ALo(14,"translate"),a.qZA(),a.TgZ(15,"span",12),a._uU(16),a.ALo(17,"translate"),a.ALo(18,"translate"),a.YNc(19,h,2,4,"a",13),a.YNc(20,T,2,1,"span",2),a._uU(21),a.ALo(22,"translate"),a.YNc(23,$,2,4,"a",14),a.YNc(24,oe,2,1,"span",2),a._uU(25),a.ALo(26,"translate"),a.qZA(),a.qZA(),a.qZA(),a._UZ(27,"app-animated-router-outlet"),a.qZA()),2&C){const _=a.oxw();a.xp6(2),a.s9C("matTooltip",a.lcZ(3,20,"RESOURCE_DETAIL.ENTITY")),a.Q6J("ngStyle",a.DdM(32,ie)),a.xp6(4),a.Q6J("routerLink",a.VKq(33,re,_.baseUrl)),a.xp6(1),a.hij(" ",_.resource.name," "),a.xp6(2),a.hij(" \xa0#",_.resource.id," "),a.xp6(1),a.Q6J("ngIf",_.editResourceAuth),a.xp6(1),a.Q6J("ngIf",_.deleteAuth),a.xp6(2),a.AsE("",a.lcZ(14,22,"RESOURCE_DETAIL.UUID"),": ",_.resource.uuid,""),a.xp6(3),a.AsE(" ",a.lcZ(17,24,"RESOURCE_DETAIL.ENTITY"),", ",a.lcZ(18,26,"RESOURCE_DETAIL.VO"),": "),a.xp6(3),a.Q6J("ngIf",_.voLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.voLinkAuth),a.xp6(1),a.AsE(" #",_.resource.voId,", ",a.lcZ(22,28,"RESOURCE_DETAIL.FACILITY"),": "),a.xp6(2),a.Q6J("ngIf",_.facilityLinkAuth),a.xp6(1),a.Q6J("ngIf",!_.facilityLinkAuth),a.xp6(1),a.lnq(" #",_.resource.facilityId,", ",a.lcZ(26,30,"RESOURCE_DETAIL.DESCRIPTION"),": ",_.resource.description," ")}}let E=(()=>{class C extends((0,G.T)()){constructor(_,c,g,x,K,q,ce,A,w,u,R){super(),this.route=_,this.facilityManager=c,this.vosManagerService=g,this.resourcesManager=x,this.sideMenuService=K,this.sideMenuItemService=q,this.dialog=ce,this.guiAuthResolver=A,this.router=w,this.entityStorageService=u,this.reloadEntityDetail=R,this.underVoUrl=!1,this.deleteAuth=!1,this.baseUrl="",this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,N.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(_=>{const c=Number(_.resourceId);this.resourcesManager.getRichResourceById(c).subscribe(g=>{this.resource=g,this.entityStorageService.setEntity({id:g.id,voId:g.voId,facilityId:g.facilityId,beanName:"Resource"}),this.setAuth(),"facilities"===this.route.parent.snapshot.url[0].path?(this.baseUrl=(new s.r5).transform(g,!1),this.facilityManager.getFacilityById(g.facilityId).subscribe(x=>{this.facility=x,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)):(this.baseUrl=(new s.r5).transform(g,!0),this.vosManagerService.getVoById(g.voId).subscribe(x=>{this.vo=x,this.underVoUrl=!0,this.setMenuItems(),this.loading=!1},()=>this.loading=!1)),(0,d.sF)("resources",this.resource)})})}setMenuItems(){let _;const c=this.sideMenuItemService.parseResource(this.resource,this.underVoUrl);this.underVoUrl?(_=this.sideMenuItemService.parseVo(this.vo),this.sideMenuService.setAccessMenuItems([_,c])):(_=this.sideMenuItemService.parseFacility(this.facility),this.sideMenuService.setFacilityMenuItems([_,c]))}editResource(){let _;this.resourcesManager.getResourceById(this.resource.id).subscribe(c=>{_=c;const g=(0,d.kZ)();g.width="450px",g.data={theme:"resource-theme",resource:_,dialogType:t.Eg.RESOURCE},this.dialog.open(t.rd,g).afterClosed().subscribe(K=>{K&&this.resourcesManager.getRichResourceById(this.resource.id).subscribe(q=>{this.resource=q,this.setMenuItems()})})})}deleteResource(){const _=(0,d.kZ)();_.width="500px",_.data={theme:"resource-theme",resources:[this.resource]},this.dialog.open(e.f,_).afterClosed().subscribe(g=>{g&&this.router.navigate(["../"],{relativeTo:this.route})})}setAuth(){this.facilityLinkAuth=this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.resource]),this.editResourceAuth=this.guiAuthResolver.isAuthorized("updateResource_Resource_policy",[this.resource]),this.voLinkAuth=this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.resource]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteResource_Resource_policy",[this.resource])}}return C.\u0275fac=function(_){return new(_||C)(a.Y36(P.gz),a.Y36(o.IQ),a.Y36(o.YF),a.Y36(o.xk),a.Y36(O.D),a.Y36(m.V),a.Y36(I.uw),a.Y36(S.x4),a.Y36(P.F0),a.Y36(S.fb),a.Y36(V.G))},C.\u0275cmp=a.Xpm({type:C,selectors:[["app-resource-detail-page"]],features:[a.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","resource-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-resource-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"resource-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit resource","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["queryParamsHandling","merge","class","resource-link",3,"routerLink",4,"ngIf"],["class","resource-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"],["aria-label","Edit resource","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"]],template:function(_,c){1&_&&(a.TgZ(0,"div",0),a._UZ(1,"perun-web-apps-back-button"),a.YNc(2,te,1,0,"mat-spinner",1),a.YNc(3,ae,28,35,"div",2),a.qZA()),2&_&&(a.xp6(2),a.Q6J("ngIf",c.loading),a.xp6(1),a.Q6J("ngIf",!c.loading&&void 0!==c.resource))},directives:[U.W,y.O5,f.$g,L.Hw,Y.gM,y.PC,P.yS,B.lW,W.A],pipes:[X.X$],styles:[".break-line[_ngcontent-%COMP%]{display:inline-block}"],data:{animation:[v.Ji]}}),C})()},258:(z,J,i)=>{i.d(J,{K:()=>ce});var v=i(32105),m=i(20449),o=i(48966),d=i(32075),S=i(32080),s=i(5e3),t=i(51062),e=i(69808),G=i(20773),N=i(47423);function a(A,w){1&A&&s._UZ(0,"mat-spinner",6)}function P(A,w){1&A&&s._UZ(0,"th",15)}function O(A,w){if(1&A&&(s.TgZ(0,"td",16),s._uU(1),s.qZA()),2&A){const u=w.$implicit;s.xp6(1),s.Oqu(u.name)}}function I(A,w){1&A&&s._UZ(0,"tr",17)}function V(A,w){1&A&&s._UZ(0,"tr",18)}function U(A,w){if(1&A&&(s.TgZ(0,"div",7),s.TgZ(1,"p"),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.TgZ(4,"div",8),s._uU(5),s.ALo(6,"translate"),s.qZA(),s.TgZ(7,"table",9),s.ynx(8,10),s.YNc(9,P,1,0,"th",11),s.YNc(10,O,2,1,"td",12),s.BQk(),s.YNc(11,I,1,0,"tr",13),s.YNc(12,V,1,0,"tr",14),s.qZA(),s.qZA()),2&A){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,5,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DESCRIPTION")," "),s.xp6(3),s.hij(" ",s.lcZ(6,7,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.ASK")," "),s.xp6(2),s.Q6J("dataSource",u.dataSource),s.xp6(4),s.Q6J("matHeaderRowDef",u.displayedColumns),s.xp6(1),s.Q6J("matRowDefColumns",u.displayedColumns)}}let y=(()=>{class A{constructor(u,R,Z,k,Q){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new d.by(this.data.groups)}onCancel(){this.dialogRef.close()}onSubmit(){const u=[];for(const R of this.data.groups)u.push(R.id);this.loading=!0,this.resourceManager.removeGroupsFromResource(u,this.data.resourceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUP_FROM_RESOURCE.SUCCESS").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(S.V6),s.Y36(t.sK),s.Y36(v.xk))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-remove-group-from-resource-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,a,1,0,"mat-spinner",1),s.YNc(5,U,13,9,"div",2),s.TgZ(6,"div",3),s.TgZ(7,"button",4),s.NdJ("click",function(){return R.onCancel()}),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.TgZ(10,"button",5),s.NdJ("click",function(){return R.onSubmit()}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,9,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(3),s.hij(" ",s.lcZ(9,11,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",R.loading),s.xp6(1),s.hij(" ",s.lcZ(12,13,"DIALOGS.REMOVE_GROUP_FROM_RESOURCE.DELETE")," "))},directives:[o.uh,e.O5,G.$g,o.xY,d.BZ,d.w1,d.fO,d.ge,d.Dz,d.ev,d.as,d.XQ,d.nj,d.Gk,o.H8,N.lW],pipes:[t.X$],styles:[""]}),A})();var f=i(10036),L=i(92081),Y=i(64901),B=i(24179),W=i(32368),X=i(93075);const te=["stepper"];function se(A,w){1&A&&s._UZ(0,"mat-spinner",4)}function M(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.GROUPS"))}function j(A,w){1&A&&(s._uU(0),s.ALo(1,"translate")),2&A&&s.Oqu(s.lcZ(1,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.OPTIONS"))}const h=function(){return["select","id","name","description"]};function T(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",5),s.TgZ(1,"mat-stepper",6,7),s.TgZ(3,"mat-step",8),s.YNc(4,M,2,3,"ng-template",9),s.TgZ(5,"perun-web-apps-debounce-filter",10),s.NdJ("filter",function(Z){return s.CHM(u),s.oxw().applyFilter(Z)}),s.ALo(6,"translate"),s.qZA(),s._UZ(7,"perun-web-apps-groups-list",11),s.qZA(),s.TgZ(8,"mat-step"),s.YNc(9,j,2,3,"ng-template",9),s.TgZ(10,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeSubgroupsMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().autoAssignSubgroups=Z}),s._uU(11),s.ALo(12,"translate"),s.qZA(),s.TgZ(13,"div",13),s._UZ(14,"i",14),s.qZA(),s.TgZ(15,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeInactiveMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().asActive=Z}),s._uU(16),s.ALo(17,"translate"),s.qZA(),s.TgZ(18,"div",13),s._uU(19),s.qZA(),s.TgZ(20,"mat-slide-toggle",12),s.NdJ("toggleChange",function(){return s.CHM(u),s.oxw().changeAsyncMessage()})("ngModelChange",function(Z){return s.CHM(u),s.oxw().async=Z}),s._uU(21),s.ALo(22,"translate"),s.qZA(),s.TgZ(23,"div",13),s._uU(24),s.qZA(),s.qZA(),s.qZA(),s.qZA()}if(2&A){const u=s.oxw();s.xp6(1),s.Q6J("linear",!0),s.xp6(2),s.Q6J("completed",0!==u.selection.selected.length&&u.canAddGroups()),s.xp6(2),s.s9C("placeholder",s.lcZ(6,19,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.FILTER_DESCRIPTION")),s.xp6(2),s.Q6J("disableMembers",!1)("groups",u.unAssignedGroups)("selection",u.selection)("disableRouting",!0)("displayedColumns",s.DdM(27,h))("filter",u.filterValue)("tableId",u.tableId),s.xp6(3),s.Q6J("ngModel",u.autoAssignSubgroups),s.xp6(1),s.hij(" ",s.lcZ(12,21,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS")," "),s.xp6(3),s.Q6J("innerHTML",u.autoAssignHint,s.oJD),s.xp6(1),s.Q6J("ngModel",u.asActive),s.xp6(1),s.hij(" ",s.lcZ(17,23,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AS_ACTIVE")," "),s.xp6(3),s.hij(" ",u.asActiveHint," "),s.xp6(1),s.Q6J("ngModel",u.async),s.xp6(1),s.hij(" ",s.lcZ(22,25,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OPT")," "),s.xp6(3),s.hij(" ",u.asyncHint," ")}}function F(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",20),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperPrevious()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.BACK")," "))}function $(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",21),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).stepperNext()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}if(2&A){const u=s.oxw(2);s.ekj("ml-2",void 0!==u.stepper&&0!==u.stepper.selectedIndex)("ml-auto",!(void 0!==u.stepper&&0!==u.stepper.selectedIndex)),s.Q6J("disabled",0===u.selection.selected.length||!u.canAddGroups()),s.xp6(1),s.hij(" ",s.lcZ(2,6,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.NEXT")," ")}}function oe(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",22),s.NdJ("click",function(){return s.CHM(u),s.oxw(2).onAdd()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ADD_BUTTON")," "))}function ie(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"div",15),s.TgZ(1,"button",16),s.NdJ("click",function(){return s.CHM(u),s.oxw().onCancel()}),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,F,3,3,"button",17),s.YNc(5,$,3,8,"button",18),s.YNc(6,oe,3,3,"button",19),s.qZA()}if(2&A){const u=s.oxw();s.xp6(2),s.hij(" ",s.lcZ(3,4,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.CANCEL_BUTTON")," "),s.xp6(2),s.Q6J("ngIf",void 0!==u.stepper&&0!==u.stepper.selectedIndex),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex!==u.stepper._steps.length-1),s.xp6(1),s.Q6J("ngIf",void 0!==u.stepper&&u.stepper.selectedIndex===u.stepper._steps.length-1)}}let re=(()=>{class A{constructor(u,R,Z,k,Q,ee,pe,me){this.dialogRef=u,this.data=R,this.notificator=Z,this.translate=k,this.resourceManager=Q,this.groupService=ee,this.guiAuthResolver=pe,this.cd=me,this.loading=!1,this.unAssignedGroups=this.data.onlyAutoAssignedGroups,this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.selection=new m.Ov(!0,[]),this.filterValue="",this.tableId=f.cL}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resource=this.data.resource,this.autoAssignHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT"),this.resourceManager.getAssignedGroups(this.resource.id).subscribe(u=>{this.groupService.getAllGroups(this.resource.voId).subscribe(R=>{for(const Z of R)-1===u.findIndex(k=>k.id===Z.id)&&this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,Z])&&this.unAssignedGroups.push(Z);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close()}onAdd(){this.loading=!0;const u=[];for(const R of this.selection.selected)u.push(R.id);this.resourceManager.assignGroupsToResource(u,this.resource.id,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ASSIGN_GROUP_TO_RESOURCE.SUCCESS_MESSAGE").subscribe(R=>{this.notificator.showSuccess(R),this.dialogRef.close(!0)})},()=>this.loading=!1)}applyFilter(u){this.filterValue=u}canAddGroups(){let u=!0;return this.selection.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("assignGroupsToResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_OFF_HINT":"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(o.so),s.Y36(o.WI),s.Y36(S.V6),s.Y36(t.sK),s.Y36(v.xk),s.Y36(v.ff),s.Y36(S.x4),s.Y36(s.sBO))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-assign-group-to-resource-dialog"]],viewQuery:function(u,R){if(1&u&&s.Gf(te,5),2&u){let Z;s.iGM(Z=s.CRH())&&(R.stepper=Z.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"click"]],template:function(u,R){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"h1",0),s._uU(2),s.ALo(3,"translate"),s.qZA(),s.YNc(4,se,1,0,"mat-spinner",1),s.YNc(5,T,25,28,"div",2),s.YNc(6,ie,7,6,"div",3),s.qZA()),2&u&&(s.Tol(R.theme),s.xp6(2),s.Oqu(s.lcZ(3,7,"DIALOGS.ASSIGN_GROUP_TO_RESOURCE.TITLE")),s.xp6(2),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading&&R.stepper))},directives:[o.uh,e.O5,G.$g,o.xY,L.Vq,L.C0,L.VY,Y.P,B.W,W.Rr,X.JJ,X.On,o.H8,N.lW],pipes:[t.X$],styles:[".slide-text[_ngcontent-%COMP%]{font-size:1.1rem}"]}),A})();var ae=i(9244),E=i(64080),C=i(11735),l=i(96214),_=i(29772);function c(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){return s.CHM(u),s.oxw().addGroup()}),s._uU(1),s.ALo(2,"translate"),s.qZA()}2&A&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"RESOURCE_DETAIL.ASSIGNED_GROUPS.ADD_GROUP"),"\n"))}function g(A,w){1&A&&s._UZ(0,"mat-spinner",9)}const x=function(A){return[A]},K=function(){return["select","id","indirectGroupAssigment","name","status","description"]};function q(A,w){if(1&A){const u=s.EpF();s.TgZ(0,"perun-web-apps-groups-list",10),s.NdJ("refreshTable",function(){return s.CHM(u),s.oxw().loadAllGroups()}),s.qZA()}if(2&A){const u=s.oxw();s.Q6J("disableGroups",!0)("groupsToDisableCheckbox",u.groupsToDisable)("disableMembers",!1)("groups",u.assignedGroups)("disableRouting",!!u.assignedGroups[0]&&!u.guiAuthResolver.isAuthorized("getGroupById_int_policy",s.VKq(10,x,u.assignedGroups[0])))("displayedColumns",s.DdM(12,K))("filter",u.filteredValue)("resourceId",u.resource.id)("selection",u.selected)("tableId",u.tableId)}}let ce=(()=>{class A{constructor(u,R,Z,k,Q){this.route=u,this.resourcesManager=R,this.dialog=Z,this.guiAuthResolver=k,this.entityStorageService=Q,this.assignedGroups=[],this.selected=new m.Ov(!0,[]),this.filteredValue="",this.tableId=f.Ad}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.loadAllGroups()}loadAllGroups(){this.loading=!0,this.resourcesManager.getGroupAssignments(this.resource.id,[E.r.GROUP_SYNC_ENABLED]).subscribe(u=>{this.assignedGroups=u.map(Q=>{const ee=Q.enrichedGroup.group;return ee.status=Q.status,ee.failureCause=Q.failureCause,ee.sourceGroupId=Q.sourceGroupId,ee});const R=this.assignedGroups.map(Q=>Q.id),Z=this.assignedGroups.filter((Q,ee)=>R.indexOf(Q.id)===ee),k=this.assignedGroups.filter((Q,ee)=>{const pe=R.indexOf(Q.id);return pe!==ee&&(null===Q.sourceGroupId||null===this.assignedGroups[pe].sourceGroupId)}).map(Q=>Q.id);Z.forEach(Q=>{k.includes(Q.id)&&(Q.moreTypesOfAssignment=!0)}),this.assignedGroups=Z,this.groupsToDisable=new Set(this.assignedGroups.filter(Q=>!!Q.sourceGroupId&&!Q.moreTypesOfAssignment).map(Q=>Q.id)),this.selected.clear(),this.loading=!1})}addGroup(){const u=(0,ae.kZ)();u.width="1000px",u.data={theme:"resource-theme",resource:this.resource,onlyAutoAssignedGroups:this.assignedGroups.filter(Z=>this.groupsToDisable.has(Z.id))},this.dialog.open(re,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}removeGroups(){const u=(0,ae.kZ)();u.width="500px",u.data={resourceId:this.resource.id,groups:this.selected.selected,theme:"resource-theme"},this.dialog.open(y,u).afterClosed().subscribe(Z=>{Z&&this.loadAllGroups()})}canRemoveGroups(){let u=!0;return this.selected.selected.forEach(R=>{this.guiAuthResolver.isAuthorized("removeGroupsFromResource_List_Resource_policy",[this.resource,R])||(u=!1)}),u}applyFilter(u){this.filteredValue=u}}return A.\u0275fac=function(u){return new(u||A)(s.Y36(C.gz),s.Y36(v.xk),s.Y36(o.uw),s.Y36(S.x4),s.Y36(S.fb))},A.\u0275cmp=s.Xpm({type:A,selectors:[["app-perun-web-apps-resource-groups"]],decls:13,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","mat-flat-button","",1,"ml-2","mr-2",3,"disabled","click"],[3,"matTooltipDisabled","matTooltip"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableGroups","groupsToDisableCheckbox","disableMembers","groups","disableRouting","displayedColumns","filter","resourceId","selection","tableId","refreshTable"]],template:function(u,R){1&u&&(s.TgZ(0,"h1",0),s._uU(1),s.ALo(2,"translate"),s.qZA(),s.TgZ(3,"perun-web-apps-refresh-button",1),s.NdJ("refresh",function(){return R.loadAllGroups()}),s.qZA(),s.YNc(4,c,3,3,"button",2),s.TgZ(5,"button",3),s.NdJ("click",function(){return R.removeGroups()}),s.TgZ(6,"span",4),s.ALo(7,"translate"),s._uU(8),s.ALo(9,"translate"),s.qZA(),s.qZA(),s.TgZ(10,"perun-web-apps-debounce-filter",5),s.NdJ("filter",function(k){return R.applyFilter(k)}),s.qZA(),s.YNc(11,g,1,0,"mat-spinner",6),s.YNc(12,q,1,13,"perun-web-apps-groups-list",7)),2&u&&(s.xp6(1),s.Oqu(s.lcZ(2,9,"RESOURCE_DETAIL.ASSIGNED_GROUPS.TITLE")),s.xp6(3),s.Q6J("ngIf",R.guiAuthResolver.isAuthorized("getAllGroups_Vo_policy",s.VKq(15,x,R.resource))),s.xp6(1),s.Q6J("disabled",0===R.selected.selected.length||!R.canRemoveGroups()),s.xp6(1),s.s9C("matTooltip",s.lcZ(7,11,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_TOOLTIP")),s.Q6J("matTooltipDisabled",R.canRemoveGroups()),s.xp6(2),s.hij(" ",s.lcZ(9,13,"RESOURCE_DETAIL.ASSIGNED_GROUPS.REMOVE_GROUP")," "),s.xp6(2),s.Q6J("placeholder","RESOURCE_DETAIL.ASSIGNED_GROUPS.FILTER_GROUPS"),s.xp6(1),s.Q6J("ngIf",R.loading),s.xp6(1),s.Q6J("ngIf",!R.loading))},directives:[l.t,e.O5,N.lW,_.gM,Y.P,G.$g,B.W],pipes:[t.X$],styles:[""]}),A})()},4675:(z,J,i)=>{i.d(J,{H:()=>N});var v=i(32105),m=i(32080),o=i(5e3),d=i(11735),S=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.navItems)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.resourcesManager=O,this.route=I,this.guiAuthResolver=V,this.entityStorageService=U,this.routePolicyService=y,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(O){const I=O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`;this.navItems=[],this.routePolicyService.canNavigate("resources-groups",this.resource)&&this.navItems.push({cssIcon:"perun-group",url:`${I}/resources/${this.resource.id}/groups`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-services",this.resource)&&this.navItems.push({cssIcon:"perun-service",url:`/${I}/resources/${this.resource.id}/services`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-members",this.resource)&&this.navItems.push({cssIcon:"perun-user",url:`${I}/resources/${this.resource.id}/members`,label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-tags",this.resource)&&this.navItems.push({cssIcon:"perun-resource-tags",url:`${I}/resources/${this.resource.id}/tags`,label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-attributes",this.resource)&&this.navItems.push({cssIcon:"perun-attributes",url:`${I}/resources/${this.resource.id}/attributes`,label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",style:"resource-btn"}),this.routePolicyService.canNavigate("resources-settings",this.resource)&&this.navItems.push({cssIcon:"perun-settings2",url:`${I}/resources/${this.resource.id}/settings`,label:"MENU_ITEMS.RESOURCE.SETTINGS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(v.xk),o.Y36(d.gz),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[S.O5,s.$g,t.L],styles:[""]}),a})()},20057:(z,J,i)=>{i.d(J,{O:()=>d});var v=i(32080),m=i(5e3),o=i(28361);let d=(()=>{class S{constructor(t,e){this.guiAuthResolver=t,this.entityStorageService=e,this.availableRoles=[],this.type="Resource",this.theme="resource-theme"}ngOnInit(){this.resource=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Resource")}}return S.\u0275fac=function(t){return new(t||S)(m.Y36(v.x4),m.Y36(v.fb))},S.\u0275cmp=m.Xpm({type:S,selectors:[["app-resource-settings-managers"]],decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(t,e){1&t&&m._UZ(0,"app-managers-page",0),2&t&&m.Q6J("complementaryObject",e.resource)("availableRoles",e.availableRoles)("complementaryObjectType",e.type)("theme",e.theme)},directives:[o.s],styles:[""]}),S})()},16500:(z,J,i)=>{i.d(J,{h:()=>N});var v=i(32105),m=i(32080),o=i(5e3),d=i(11735),S=i(69808),s=i(20773),t=i(71135);function e(a,P){1&a&&o._UZ(0,"mat-spinner",2)}function G(a,P){if(1&a&&(o.TgZ(0,"div"),o._UZ(1,"perun-web-apps-menu-buttons-field",3),o.qZA()),2&a){const O=o.oxw();o.xp6(1),o.Q6J("items",O.items)("size","small")}}let N=(()=>{class a{constructor(O,I,V,U,y){this.route=O,this.resourceManager=I,this.authResolver=V,this.entityStorageService=U,this.routePolicyService=y,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.initItems("facilities"!==this.route.parent.parent.parent.snapshot.url[0].path),this.loading=!1}initItems(O){this.items=[],this.routePolicyService.canNavigate("resources-settings-managers",this.resource)&&this.items.push({cssIcon:"perun-manager",url:`${O?`/organizations/${this.resource.voId}`:`/facilities/${this.resource.facilityId}`}/resources/${this.resource.id}/settings/managers`,label:"MENU_ITEMS.RESOURCE.MANAGERS",style:"resource-btn"})}}return a.\u0275fac=function(O){return new(O||a)(o.Y36(d.gz),o.Y36(v.xk),o.Y36(m.x4),o.Y36(m.fb),o.Y36(m.Ip))},a.\u0275cmp=o.Xpm({type:a,selectors:[["app-resource-settings-overview"]],hostVars:2,hostBindings:function(O,I){2&O&&o.ekj("router-component",I.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(O,I){1&O&&(o.YNc(0,e,1,0,"mat-spinner",0),o.YNc(1,G,2,2,"div",1)),2&O&&(o.Q6J("ngIf",I.loading),o.xp6(1),o.Q6J("ngIf",!I.loading))},directives:[S.O5,s.$g,t.L],styles:[""]}),a})()},60113:(z,J,i)=>{i.d(J,{t:()=>d});var v=i(36769),m=i(5e3),o=i(61283);let d=(()=>{class S{}return S.\u0275fac=function(t){return new(t||S)},S.\u0275cmp=m.Xpm({type:S,selectors:[["app-resource-settings"]],hostVars:2,hostBindings:function(t,e){2&t&&m.ekj("router-component",e.true)},decls:1,vars:0,template:function(t,e){1&t&&m._UZ(0,"app-animated-router-outlet")},directives:[o.A],styles:[""],data:{animation:[v.Ji]}}),S})()},20872:(z,J,i)=>{i.d(J,{v:()=>se});var v=i(32105),m=i(20449),o=i(10036),d=i(9244),S=i(32080),s=i(16074),t=i(48966),e=i(5e3),G=i(69808),N=i(20773),a=i(17672),P=i(47423),O=i(51062);function I(M,j){1&M&&e._UZ(0,"mat-spinner",8)}function V(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",9),2&M){const h=e.oxw();e.Q6J("selection",h.selection)("displayedColumns",h.displayedColumns)("entity","resource")("filterValue",h.filterValue)("resourceTags",h.resourceTags)("tableId",h.tableId)}}let U=(()=>{class M{constructor(h,T,F){this.dialogRef=h,this.data=T,this.resourcesManager=F,this.tableId=o.g,this.selection=new m.Ov(!0,[]),this.resourceTags=[],this.displayedColumns=["select","id","name"]}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.resourceId=this.data.resourceId,this.assignedTags=this.data.assignedTags,this.resourcesManager.getAllResourcesTagsForVo(this.voId).subscribe(h=>{this.resourceTags=h.filter(T=>!this.assignedTags.map(F=>F.id).includes(T.id)),this.loading=!1})}onCancel(){this.dialogRef.close(!1)}onSubmit(h){if(0===h.length)return this.dialogRef.close(!0);const T=h.pop();this.resourcesManager.assignResourceTagToResource({resource:this.resourceId,resourceTag:T}).subscribe(()=>{this.onSubmit(h)})}applyFilter(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(t.so),e.Y36(t.WI),e.Y36(v.xk))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-add-resource-tag-to-resource-dialog"]],decls:15,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"selection","displayedColumns","entity","filterValue","resourceTags","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.YNc(6,I,1,0,"mat-spinner",3),e.qZA(),e.YNc(7,V,1,6,"app-resources-tags-list",4),e.qZA(),e.TgZ(8,"div",5),e.TgZ(9,"button",6),e.NdJ("click",function(){return T.onCancel()}),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"button",7),e.NdJ("click",function(){return T.onSubmit(T.selection.selected)}),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.qZA()),2&h&&(e.Tol(T.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"RESOURCE_DETAIL.TAGS.ADD_TAGS")),e.xp6(4),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading),e.xp6(3),e.hij(" ",e.lcZ(11,11,"RESOURCE_DETAIL.TAGS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",T.loading||0===T.resourceTags.length),e.xp6(1),e.hij(" ",e.lcZ(14,13,"RESOURCE_DETAIL.TAGS.ADD_BUTTON")," "))},directives:[t.uh,t.xY,G.O5,N.$g,a.o,t.H8,P.lW],pipes:[O.X$],styles:[""]}),M})();var y=i(17584),f=i(96214),L=i(7434);function Y(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().create()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function B(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",7),e.NdJ("click",function(){return e.CHM(h),e.oxw().addTag()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&M&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"RESOURCE_DETAIL.TAGS.ADD_BUTTON"),"\n"))}function W(M,j){if(1&M){const h=e.EpF();e.TgZ(0,"button",8),e.NdJ("click",function(){return e.CHM(h),e.oxw().removeTags()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&M){const h=e.oxw();e.Q6J("disabled",0===h.selection.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"RESOURCE_DETAIL.TAGS.REMOVE_BUTTON"),"\n")}}function X(M,j){1&M&&e._UZ(0,"mat-spinner",9)}function te(M,j){if(1&M&&e._UZ(0,"app-resources-tags-list",10),2&M){const h=e.oxw();e.Q6J("displayedColumns",h.displayedColumns)("entity","resource")("resourceTags",h.resourceTags)("filterValue",h.filterValue)("selection",h.selection)("tableId",h.tableId)}}let se=(()=>{class M{constructor(h,T,F,$,oe,ie){this.authResolver=h,this.resourcesManager=T,this.dialog=F,this.notificator=$,this.translate=oe,this.entityStorageService=ie,this.loading=!1,this.resourceTags=[],this.selection=new m.Ov(!0,[]),this.tableId=o.M8,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.resource=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}removeTags(){const h=(0,d.kZ)();h.width="450px",h.data={items:this.selection.selected.map(F=>F.tagName),title:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_TITLE",description:"RESOURCE_DETAIL.TAGS.REMOVE_TAGS_DIALOG_DESCRIPTION",theme:"resource-theme",type:"remove",showAsk:!0},this.dialog.open(s.Ts,h).afterClosed().subscribe(F=>{F&&this.removeTag(this.selection.selected)})}removeTag(h){if(0===h.length)return this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.REMOVED_SUCCESSFULLY")),this.updateData();const T=h.pop();this.resourcesManager.removeResourceTagFromResource({resource:this.resource.id,resourceTag:T}).subscribe(()=>{this.removeTag(h)})}addTag(){const h=(0,d.kZ)();h.width="600px",h.data={voId:this.resource.voId,resourceId:this.resource.id,assignedTags:this.resourceTags,theme:"resource-theme"},this.dialog.open(U,h).afterClosed().subscribe(F=>{F&&(this.notificator.showSuccess(this.translate.instant("RESOURCE_DETAIL.TAGS.ADDED_SUCCESSFULLY")),this.updateData())})}create(){const h=(0,d.kZ)();h.width="450px",h.data={voId:this.resource.voId,theme:"resource-theme"},this.dialog.open(y.p,h).afterClosed().subscribe(F=>{F&&(this.translate.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe($=>{this.notificator.showSuccess($)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourcesManager.getAllResourcesTagsForResource(this.resource.id).subscribe(h=>{this.resourceTags=h,this.selection.clear(),this.loading=!1})}setAuthRights(){const h={id:this.resource.voId,beanName:"Vo"};this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[h]),this.addAuth=this.authResolver.isAuthorized("assignResourceTagToResource_ResourceTag_Resource_policy",[this.resource]),this.removeAuth=this.authResolver.isAuthorized("removeResourceTagFromResource_ResourceTag_Resource_policy",[this.resource]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"]}applyFilter(h){this.filterValue=h}}return M.\u0275fac=function(h){return new(h||M)(e.Y36(S.x4),e.Y36(v.xk),e.Y36(t.uw),e.Y36(S.V6),e.Y36(O.sK),e.Y36(S.fb))},M.\u0275cmp=e.Xpm({type:M,selectors:[["app-perun-web-apps-resource-tags"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(h,T){1&h&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"perun-web-apps-refresh-button",1),e.NdJ("refresh",function(){return T.updateData()}),e.qZA(),e.YNc(4,Y,3,3,"button",2),e.YNc(5,B,3,3,"button",2),e.YNc(6,W,3,4,"button",3),e.TgZ(7,"perun-web-apps-immediate-filter",4),e.NdJ("filter",function($){return T.applyFilter($)}),e.qZA(),e.YNc(8,X,1,0,"mat-spinner",5),e.YNc(9,te,1,6,"app-resources-tags-list",6)),2&h&&(e.xp6(1),e.Oqu(e.lcZ(2,7,"RESOURCE_DETAIL.TAGS.TITLE")),e.xp6(3),e.Q6J("ngIf",T.createAuth),e.xp6(1),e.Q6J("ngIf",T.addAuth),e.xp6(1),e.Q6J("ngIf",T.removeAuth),e.xp6(1),e.Q6J("placeholder","RESOURCE_DETAIL.TAGS.SEARCH"),e.xp6(1),e.Q6J("ngIf",T.loading),e.xp6(1),e.Q6J("ngIf",!T.loading))},directives:[f.t,G.O5,P.lW,L.L,N.$g,a.o],pipes:[O.X$],styles:[""]}),M})()},17584:(z,J,i)=>{i.d(J,{p:()=>O});var v=i(48966),m=i(32105),o=i(5e3),d=i(69808),S=i(20773),s=i(67322),t=i(98833),e=i(93075),G=i(47423),N=i(51062);function a(I,V){1&I&&o._UZ(0,"mat-spinner",6)}function P(I,V){if(1&I){const U=o.EpF();o.TgZ(0,"div",7),o.TgZ(1,"mat-form-field"),o.TgZ(2,"input",8),o.NdJ("ngModelChange",function(f){return o.CHM(U),o.oxw().name=f}),o.ALo(3,"translate"),o.qZA(),o.TgZ(4,"mat-error"),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA(),o.qZA()}if(2&I){const U=o.oxw();o.xp6(2),o.s9C("placeholder",o.lcZ(3,3,"DIALOGS.CREATE_RESOURCE_TAG.NAME")),o.Q6J("ngModel",U.name),o.xp6(3),o.Oqu(o.lcZ(6,5,"DIALOGS.CREATE_RESOURCE_TAG.EMPTY_NAME"))}}let O=(()=>{class I{constructor(U,y,f){this.dialogRef=U,this.data=y,this.resourceManager=f,this.name="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){""!==this.name&&(this.loading=!0,this.resourceManager.createResourceTagWithTagName(this.name,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}}return I.\u0275fac=function(U){return new(U||I)(o.Y36(v.so),o.Y36(v.WI),o.Y36(m.xk))},I.\u0275cmp=o.Xpm({type:I,selectors:[["app-create-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","ngModel","ngModelChange"]],template:function(U,y){1&U&&(o.TgZ(0,"div"),o.TgZ(1,"h1",0),o._uU(2),o.ALo(3,"translate"),o.qZA(),o.YNc(4,a,1,0,"mat-spinner",1),o.YNc(5,P,7,7,"div",2),o.TgZ(6,"div",3),o.TgZ(7,"button",4),o.NdJ("click",function(){return y.onCancel()}),o._uU(8),o.ALo(9,"translate"),o.qZA(),o.TgZ(10,"button",5),o.NdJ("click",function(){return y.onSubmit()}),o._uU(11),o.ALo(12,"translate"),o.qZA(),o.qZA(),o.qZA()),2&U&&(o.Tol(y.theme),o.xp6(2),o.Oqu(o.lcZ(3,9,"DIALOGS.CREATE_RESOURCE_TAG.TITLE")),o.xp6(2),o.Q6J("ngIf",y.loading),o.xp6(1),o.Q6J("ngIf",!y.loading),o.xp6(3),o.hij(" ",o.lcZ(9,11,"DIALOGS.CREATE_RESOURCE_TAG.CANCEL")," "),o.xp6(2),o.Q6J("disabled",y.loading),o.xp6(1),o.hij(" ",o.lcZ(12,13,"DIALOGS.CREATE_RESOURCE_TAG.CREATE")," "))},directives:[v.uh,d.O5,S.$g,v.xY,s.KE,t.Nt,e.Fj,e.Q7,e.JJ,e.On,s.TO,v.H8,G.lW],pipes:[N.X$],styles:[""]}),I})()},28361:(z,J,i)=>{i.d(J,{s:()=>Ne});var v=i(20449),m=i(48966),o=i(32080),d=i(32105),S=i(10036),s=i(64080),t=i(93075),e=i(5e3),G=i(51062),N=i(11735),a=i(67322),P=i(74107),O=i(69808),I=i(90508),V=i(98833),U=i(50301),y=i(47423),f=i(20773),L=i(98380),Y=i(64877),B=i(23123);function W(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=b.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function X(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function te(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",20),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"DIALOGS.ADD_MANAGERS.NO_USERS_FOUND")," "))}const se=function(){return["select","id","name","email","logins","organization"]};function M(r,b){if(1&r&&e._UZ(0,"app-users-list",21),2&r){const n=e.oxw(2);e.Q6J("disableRouting",!0)("selection",n.selection)("displayedColumns",e.DdM(5,se))("tableId",n.tableId)("users",n.users)}}function j(r,b){if(1&r&&(e.TgZ(0,"div",17),e.YNc(1,te,3,3,"perun-web-apps-alert",18),e.YNc(2,M,1,6,"app-users-list",19),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",0===n.users.length&&n.firstSearchDone),e.xp6(1),e.Q6J("ngIf",0!==n.users.length)}}let h=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.usersService=H,this.translate=ne,this.notificator=le,this.storeService=ue,this.route=he,this.router=fe,this.selection=new v.Ov(!0,[]),this.users=[],this.firstSearchDone=!1,this.tableId=S.H2,ne.get("DIALOGS.ADD_MANAGERS.TITLE").subscribe(_e=>this.title=_e),ne.get("DIALOGS.ADD_MANAGERS.SUCCESS").subscribe(_e=>this.successMessage=_e)}ngOnInit(){this.theme=this.data.theme,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.searchCtrl=new t.NI("",[t.kI.required,t.kI.pattern(".*[\\S]+.*")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.setRoleWithUserComplementaryObject({role:this.selectedRole,users:this.selection.selected.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSearchByString(){if(this.searchCtrl.invalid)return void this.searchCtrl.markAllAsTouched();this.loading=!0,this.selection.clear();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.usersService.findRichUsersWithAttributes(this.searchCtrl.value,n).subscribe(p=>{this.users=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.Fv),e.Y36(G.sK),e.Y36(o.V6),e.Y36(o.d6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-manager-dialog"]],decls:31,vars:31,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-100"],["matInput","","autocomplete","false","data-cy","search-manager-input","perunWebAppsAutoFocus","",3,"placeholder","formControl","keyup.enter"],["color","accent","data-cy","search-manager-button","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","add-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[1,"mr-auto","ml-auto"],[1,"mt-3"],["alert_type","warn",4,"ngIf"],[3,"disableRouting","selection","displayedColumns","tableId","users",4,"ngIf"],["alert_type","warn"],[3,"disableRouting","selection","displayedColumns","tableId","users"]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,W,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"input",7),e.NdJ("keyup.enter",function(){return p.onSearchByString()}),e.ALo(14,"translate"),e.qZA(),e.TgZ(15,"mat-error"),e._uU(16),e.ALo(17,"translate"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(18,"button",8),e.NdJ("click",function(){return p.onSearchByString()}),e._uU(19),e.ALo(20,"translate"),e.qZA(),e.TgZ(21,"div",9),e.YNc(22,X,1,0,"mat-spinner",10),e.qZA(),e.YNc(23,j,3,2,"div",11),e.qZA(),e.TgZ(24,"div",12),e.TgZ(25,"button",13),e.NdJ("click",function(){return p.onCancel()}),e._uU(26),e.ALo(27,"translate"),e.qZA(),e.TgZ(28,"button",14),e.NdJ("click",function(){return p.onSubmit()}),e._uU(29),e.ALo(30,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,17,"DIALOGS.ADD_MANAGERS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,19,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(2),e.s9C("placeholder",e.lcZ(14,21,"DIALOGS.ADD_MANAGERS.DESCRIPTION")),e.Q6J("formControl",p.searchCtrl),e.xp6(3),e.hij(" ",e.lcZ(17,23,"DIALOGS.ADD_MANAGERS.EMPTY_SEARCH_MESSAGE")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(20,25,"DIALOGS.ADD_MANAGERS.SEARCH")," "),e.xp6(3),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.users&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(27,27,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||void 0===p.selectedRole||p.loading),e.xp6(1),e.hij(" ",e.lcZ(30,29,"DIALOGS.ADD_MANAGERS.CREATE")," "))},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,U.hT,t.JJ,t.oH,a.TO,y.lW,O.O5,f.$g,L.w,Y.C,m.H8],pipes:[G.X$,B.i],styles:[".inline-dialog-items[_ngcontent-%COMP%]{display:flex;align-items:flex-end}"]}),r})();var T=i(32075);function F(r,b){1&r&&e._UZ(0,"th",15)}function $(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=b.$implicit;e.xp6(1),e.AsE("",n.firstName," ",n.lastName,"")}}function oe(r,b){1&r&&e._UZ(0,"tr",17)}function ie(r,b){1&r&&e._UZ(0,"tr",18)}const re=function(r){return{role:r}};function ae(r,b){if(1&r&&(e.TgZ(0,"perun-web-apps-alert",19),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"displayedRole"),e.qZA()),2&r){const n=e.oxw(2);e.xp6(1),e.hij(" ",e.xi3(2,1,"DIALOGS.REMOVE_MANAGERS.WARNING_REMOVE_YOURSELF",e.VKq(6,re,e.lcZ(3,4,n.data.role)))," ")}}function E(r,b){if(1&r&&(e.TgZ(0,"div",6),e.TgZ(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",7),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",8),e.ynx(8,9),e.YNc(9,F,1,0,"th",10),e.YNc(10,$,2,2,"td",11),e.BQk(),e.YNc(11,oe,1,0,"tr",12),e.YNc(12,ie,1,0,"tr",13),e.qZA(),e.YNc(13,ae,4,8,"perun-web-apps-alert",14),e.qZA()),2&r){const n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,6,"DIALOGS.REMOVE_MANAGERS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,8,"DIALOGS.REMOVE_MANAGERS.ASK")," "),e.xp6(2),e.Q6J("dataSource",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns),e.xp6(1),e.Q6J("ngIf",n.removeSelf)}}function C(r,b){1&r&&e._UZ(0,"mat-spinner",20)}let l=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.store=le,this.authService=ue,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.managers),this.theme=this.data.theme,this.removeSelf=this.data.managers.map(n=>n.id).includes(this.store.getPerunPrincipal().userId)&&!this.authService.isPerunAdmin()}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithUserComplementaryObject({role:this.data.role,users:this.data.managers.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_MANAGERS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-manager-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["alert_type","warn"],[1,"mr-auto","ml-auto"]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,E,14,10,"div",1),e.YNc(5,C,1,0,"mat-spinner",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_MANAGERS.TITLE")),e.xp6(2),e.Q6J("ngIf",!p.loading),e.xp6(1),e.Q6J("ngIf",p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_MANAGERS.DELETE")," "))},directives:[m.uh,O.O5,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,L.w,f.$g,m.H8,y.lW],pipes:[G.X$,B.i],styles:[""]}),r})();function _(r,b){1&r&&e._UZ(0,"mat-spinner",6)}function c(r,b){1&r&&e._UZ(0,"th",15)}function g(r,b){if(1&r&&(e.TgZ(0,"td",16),e._uU(1),e.qZA()),2&r){const n=b.$implicit;e.xp6(1),e.Oqu(n.name)}}function x(r,b){1&r&&e._UZ(0,"tr",17)}function K(r,b){1&r&&e._UZ(0,"tr",18)}function q(r,b){if(1&r&&(e.TgZ(0,"div",7),e.TgZ(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",8),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"table",9),e.ynx(8,10),e.YNc(9,c,1,0,"th",11),e.YNc(10,g,2,1,"td",12),e.BQk(),e.YNc(11,x,1,0,"tr",13),e.YNc(12,K,1,0,"tr",14),e.qZA(),e.qZA()),2&r){const n=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,5,"DIALOGS.REMOVE_GROUPS.DESCRIPTION")," "),e.xp6(3),e.hij(" ",e.lcZ(6,7,"DIALOGS.REMOVE_GROUPS.ASK")," "),e.xp6(2),e.Q6J("dataSource",n.dataSource),e.xp6(4),e.Q6J("matHeaderRowDef",n.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",n.displayedColumns)}}let ce=(()=>{class r{constructor(n,p,D,H,ne){this.dialogRef=n,this.data=p,this.notificator=D,this.translate=H,this.authzService=ne,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new T.by(this.data.groups),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.authzService.unsetRoleWithGroupComplementaryObject({role:this.data.role,authorizedGroups:this.data.groups.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_GROUPS.SUCCESS").subscribe(n=>{this.notificator.showSuccess(n),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(o.V6),e.Y36(G.sK),e.Y36(d.Ct))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-remove-group-manager-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(n,p){1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,_,1,0,"mat-spinner",1),e.YNc(5,q,13,9,"div",2),e.TgZ(6,"div",3),e.TgZ(7,"button",4),e.NdJ("click",function(){return p.onCancel()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",5),e.NdJ("click",function(){return p.onSubmit()}),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n&&(e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,9,"DIALOGS.REMOVE_GROUPS.TITLE")),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",!p.loading),e.xp6(3),e.hij(" ",e.lcZ(9,11,"DIALOGS.REMOVE_GROUPS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",p.loading),e.xp6(1),e.hij(" ",e.lcZ(12,13,"DIALOGS.REMOVE_GROUPS.DELETE")," "))},directives:[m.uh,O.O5,f.$g,m.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,m.H8,y.lW],pipes:[G.X$],styles:[""]}),r})();var A=i(1059),w=i(24850),u=i(91079),R=i(64901),Z=i(24179);function k(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=b.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Q(r,b){if(1&r&&(e.TgZ(0,"mat-option",17),e._uU(1),e.qZA()),2&r){const n=b.$implicit;e.Q6J("value",n),e.xp6(1),e.hij(" ",n.name," ")}}function ee(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-debounce-filter",18),e.NdJ("filter",function(D){return e.CHM(n),e.oxw().applyFilter(D)}),e.ALo(1,"translate"),e.qZA()}2&r&&e.s9C("placeholder",e.lcZ(1,1,"DIALOGS.ADD_GROUPS.FILTER_GROUPS"))}function pe(r,b){1&r&&e._UZ(0,"mat-spinner",19)}const me=function(){return["select","id","name","description"]};function Ae(r,b){if(1&r&&(e.TgZ(0,"div",20),e._UZ(1,"perun-web-apps-groups-list",21),e.qZA()),2&r){const n=e.oxw();e.xp6(1),e.Q6J("disableMembers",!1)("disableRouting",!0)("displayedColumns",e.DdM(7,me))("selection",n.selection)("filter",n.filterValue)("groups",n.groups)("tableId",n.tableId)}}let Re=(()=>{class r{constructor(n,p,D,H,ne,le,ue,he,fe){this.dialogRef=n,this.data=p,this.authzService=D,this.voService=H,this.groupService=ne,this.translate=le,this.notificator=ue,this.route=he,this.router=fe,this.searchString="",this.selection=new v.Ov(!0,[]),this.groups=[],this.vos=[],this.filterValue="",this.myControl=new t.NI,this.firstSearchDone=!1,this.tableId=S.kZ,le.get("DIALOGS.ADD_GROUPS.TITLE").subscribe(_e=>this.title=_e),le.get("DIALOGS.ADD_GROUPS.SUCCESS").subscribe(_e=>this.successMessage=_e)}displayFn(n){return n?n.name:null}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.authzService.setRoleWithGroupComplementaryObject({role:this.selectedRole,authorizedGroups:this.selection.selected.map(n=>n.id),complementaryObject:this.data.complementaryObject}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}ngOnInit(){this.loading=!0,this.availableRoles=this.data.availableRoles,this.selectedRole=this.data.selectedRole,this.theme=this.data.theme,this.voService.getMyVos().subscribe(n=>{this.filteredOptions=this.myControl.valueChanges.pipe((0,A.O)(""),(0,w.U)(p=>this._filter(p))),this.vos=n,this.loading=!1},()=>this.loading=!1)}showVoGroups(n){this.loading=!0,this.groupService.getAllGroups(n.option.value.id).subscribe(p=>{this.groups=p,this.loading=!1,this.firstSearchDone=!0},()=>this.loading=!1)}applyFilter(n){this.filterValue=n}_filter(n){const p="string"==typeof n?n.toLowerCase():n.name.toLowerCase();return this.vos.filter(D=>D.name.toLowerCase().includes(p))}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.so),e.Y36(m.WI),e.Y36(d.Ct),e.Y36(d.YF),e.Y36(d.ff),e.Y36(G.sK),e.Y36(o.V6),e.Y36(N.gz),e.Y36(N.F0))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-add-group-manager-dialog"]],decls:33,vars:33,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"inline-dialog-items"],[1,"mr-2"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"mr-2","w-75"],["aria-label","Assignee","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"placeholder","filter",4,"ngIf"],[1,"overflow-hidden"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"value"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"disableMembers","disableRouting","displayedColumns","selection","filter","groups","tableId"]],template:function(n,p){if(1&n&&(e.TgZ(0,"div"),e.TgZ(1,"h1",0),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"div",1),e.TgZ(5,"div",2),e.TgZ(6,"mat-form-field",3),e.TgZ(7,"mat-label"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"mat-select",4),e.NdJ("valueChange",function(H){return p.selectedRole=H}),e.YNc(11,k,3,4,"mat-option",5),e.qZA(),e.qZA(),e.TgZ(12,"mat-form-field",6),e.TgZ(13,"mat-label"),e._uU(14),e.ALo(15,"translate"),e.qZA(),e._UZ(16,"input",7),e.ALo(17,"translate"),e.TgZ(18,"mat-autocomplete",8,9),e.NdJ("optionSelected",function(H){return p.showVoGroups(H)}),e.YNc(20,Q,2,2,"mat-option",5),e.ALo(21,"async"),e.qZA(),e.qZA(),e.qZA(),e.YNc(22,ee,2,3,"perun-web-apps-debounce-filter",10),e.TgZ(23,"div",11),e.YNc(24,pe,1,0,"mat-spinner",12),e.qZA(),e.YNc(25,Ae,2,8,"div",13),e.qZA(),e.TgZ(26,"div",14),e.TgZ(27,"button",15),e.NdJ("click",function(){return p.onCancel()}),e._uU(28),e.ALo(29,"translate"),e.qZA(),e.TgZ(30,"button",16),e.NdJ("click",function(){return p.onSubmit()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.qZA(),e.qZA()),2&n){const D=e.MAs(19);e.Tol(p.theme),e.xp6(2),e.Oqu(e.lcZ(3,19,"DIALOGS.ADD_GROUPS.TITLE")),e.xp6(6),e.Oqu(e.lcZ(9,21,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",p.selectedRole),e.xp6(1),e.Q6J("ngForOf",p.availableRoles),e.xp6(3),e.Oqu(e.lcZ(15,23,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.xp6(2),e.s9C("placeholder",e.lcZ(17,25,"DIALOGS.ADD_GROUPS.SELECT_VO")),e.Q6J("formControl",p.myControl)("matAutocomplete",D),e.xp6(2),e.Q6J("displayWith",p.displayFn),e.xp6(2),e.Q6J("ngForOf",e.lcZ(21,27,p.filteredOptions)),e.xp6(2),e.Q6J("ngIf",null!==p.groups&&p.groups.length>0&&!p.loading),e.xp6(2),e.Q6J("ngIf",p.loading),e.xp6(1),e.Q6J("ngIf",null!==p.groups&&!p.loading),e.xp6(3),e.hij(" ",e.lcZ(29,29,"DIALOGS.ADD_MANAGERS.CANCEL")," "),e.xp6(2),e.Q6J("disabled",0===p.selection.selected.length||p.loading),e.xp6(1),e.hij(" ",e.lcZ(32,31,"DIALOGS.ADD_MANAGERS.CREATE")," ")}},directives:[m.uh,m.xY,a.KE,a.hX,P.gD,O.sg,I.ey,V.Nt,t.Fj,u.ZL,t.JJ,t.oH,u.XC,O.O5,R.P,f.$g,Z.W,m.H8,y.lW],pipes:[G.X$,B.i,O.Ov],styles:[""]}),r})();var de=i(9244),Te=i(15003),ge=i(53251),Ee=i(96214);function ve(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.USER")," ")}function Ce(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function Se(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeManager()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionUsers.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function be(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=b.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function Oe(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function Ie(r,b){if(1&r&&e._UZ(0,"app-users-list",17),2&r){const n=e.oxw(2);e.Q6J("disableSelf",n.disableSelf)("tableId",n.tableId)("disableRouting",!n.routeAuth||n.disableRouting)("displayedColumns",n.displayedUserColumns)("selection",n.selectionUsers)("users",n.managers)}}function De(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshUsers()}),e.qZA(),e.YNc(1,Ce,3,3,"button",6),e.YNc(2,Se,3,4,"button",7),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshUsers()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,be,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,Oe,1,0,"mat-spinner",11),e.YNc(10,Ie,1,6,"app-users-list",12)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.managers)}}function Ze(r,b){1&r&&(e._uU(0),e.ALo(1,"translate")),2&r&&e.hij(" ",e.lcZ(1,1,"SHARED.COMPONENTS.MANAGERS_PAGE.GROUP")," ")}function Me(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).addGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.ADD")," "))}function xe(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(n),e.oxw(2).removeGroup()}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&r){const n=e.oxw(2);e.Q6J("disabled",0===n.selectionGroups.selected.length),e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.REMOVE")," ")}}function Ue(r,b){if(1&r&&(e.TgZ(0,"mat-option",15),e._uU(1),e.ALo(2,"displayedRole"),e.qZA()),2&r){const n=b.$implicit;e.Q6J("value",n),e.xp6(1),e.Oqu(e.lcZ(2,2,n))}}function ye(r,b){1&r&&e._UZ(0,"mat-spinner",16)}function Le(r,b){if(1&r&&e._UZ(0,"perun-web-apps-groups-list",23),2&r){const n=e.oxw(2);e.Q6J("disableMembers",!1)("disableRouting",n.disableRouting)("displayedColumns",n.displayedGroupColumns)("groups",n.groups)("selection",n.selectionGroups)("tableId",n.tableId)}}function Ge(r,b){if(1&r){const n=e.EpF();e.TgZ(0,"perun-web-apps-refresh-button",5),e.NdJ("refresh",function(){return e.CHM(n),e.oxw().refreshGroups()}),e.qZA(),e.YNc(1,Me,3,3,"button",18),e.YNc(2,xe,3,4,"button",19),e.TgZ(3,"mat-form-field",8),e.TgZ(4,"mat-label"),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"mat-select",9),e.NdJ("selectionChange",function(){return e.CHM(n),e.oxw().refreshGroups()})("valueChange",function(D){return e.CHM(n),e.oxw().selectedRole=D}),e.YNc(8,Ue,3,4,"mat-option",10),e.qZA(),e.qZA(),e.YNc(9,ye,1,0,"mat-spinner",11),e.YNc(10,Le,1,6,"perun-web-apps-groups-list",20)}if(2&r){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(1),e.Q6J("ngIf",n.manageAuth&&!n.configMode),e.xp6(3),e.Oqu(e.lcZ(6,7,"SHARED.COMPONENTS.MANAGERS_PAGE.SELECT_ROLE")),e.xp6(2),e.Q6J("value",n.selectedRole),e.xp6(1),e.Q6J("ngForOf",n.availableRoles),e.xp6(1),e.Q6J("ngIf",n.loading),e.xp6(1),e.Q6J("ngIf",!n.loading&&n.groups)}}function Pe(r,b){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.MANAGERS_PAGE.NO_AVAILABLE_ROLES"),"\n"))}let Ne=(()=>{class r{constructor(n,p,D,H,ne,le,ue){this.dialog=n,this.authzService=p,this.storeService=D,this.guiAuthResolver=H,this.router=ne,this.reloadEntityDetail=le,this.route=ue,this.configMode=!1,this.disableRouting=!1,this.disableSelf=!1,this.displayedUserColumns=["select","id","name","email","logins","organization"],this.displayedGroupColumns=["select","id","vo","name","description"],this.groups=[],this.managers=null,this.selectionUsers=new v.Ov(!0,[]),this.selectionGroups=new v.Ov(!0,[]),this.selectedMode="",this.loading=!1,this.tableId=S.HC,this.availableRolesPrivileges=new Map}ngOnInit(){this.loading=!0,this.routeAuth=this.guiAuthResolver.isPerunAdminOrObserver(),this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(n=>this.availableRolesPrivileges.get(n).readAuth),0!==this.availableRoles.length&&(this.selectedRole=this.availableRoles[0]),this.refreshUsers()}changeRolePrivileges(){this.guiAuthResolver.setRolesAuthorization(this.availableRoles,this.complementaryObject,this.availableRolesPrivileges),this.availableRoles=this.availableRoles.filter(p=>this.availableRolesPrivileges.get(p).readAuth),this.manageAuth=this.availableRolesPrivileges.get(this.selectedRole).manageAuth,this.displayedUserColumns=this.manageAuth?this.displayedUserColumns:this.displayedUserColumns.filter(p=>"select"!==p),this.displayedGroupColumns=this.manageAuth?this.displayedGroupColumns:this.displayedGroupColumns.filter(p=>"select"!==p),this.roleModes=this.availableRolesPrivileges.get(this.selectedRole).modes;let n=!1;for(const p of this.roleModes)if(this.selectedMode===p.toLowerCase()){n=!0;break}n||(this.selectedMode=this.roleModes[0].toLowerCase())}tabChanged(n){this.loading=!0,0===n.index?(this.selectedMode="user",this.refreshUsers()):(this.selectedMode="group",this.refreshGroups())}refreshUsers(){this.loading=!0,this.changeRolePrivileges();let n=[s.r.USER_DEF_ORGANIZATION,s.r.USER_DEF_PREFERRED_MAIL];n=n.concat(this.storeService.getLoginAttributeNames()),this.authzService.getAuthzRichAdmins(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType,n,!1,!0).subscribe(p=>{this.managers=p,this.selectionUsers.clear(),this.loading=!1},()=>{this.loading=!1})}refreshGroups(){this.loading=!0,this.changeRolePrivileges(),this.authzService.getAuthzAdminGroups(this.selectedRole,this.complementaryObject.id,this.complementaryObjectType).subscribe(n=>{this.groups=n,this.selectionGroups.clear(),this.loading=!1},()=>{this.loading=!1})}addManager(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,theme:this.theme,availableRoles:this.availableRoles,selectedRole:this.selectedRole},this.dialog.open(h,n).afterClosed().subscribe(D=>{D&&this.refreshUsers()})}removeManager(){const n=(0,de.kZ)();n.width="450px",n.data={managers:this.selectionUsers.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(l,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?this.reloadEntityDetail.reloadEntityDetail():this.redirectToAuthRoute())})}removeGroup(){const n=(0,de.kZ)();n.width="450px",n.data={groups:this.selectionGroups.selected,complementaryObject:this.complementaryObject,role:this.selectedRole,theme:this.theme},this.dialog.open(ce,n).afterClosed().subscribe(D=>{D&&(this.guiAuthResolver.isManagerPagePrivileged(this.complementaryObject)?(this.reloadEntityDetail.reloadEntityDetail(),this.refreshGroups()):this.redirectToAuthRoute())})}addGroup(){const n=(0,de.kZ)();n.width="1000px",n.data={complementaryObject:this.complementaryObject,availableRoles:this.availableRoles,theme:this.theme,selectedRole:this.selectedRole},this.dialog.open(Re,n).afterClosed().subscribe(D=>{D&&this.refreshGroups()})}redirectToAuthRoute(){if("Group"===this.complementaryObjectType&&(this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])||this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])))this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.complementaryObject])?this.router.navigate(["/organizations",this.complementaryObject.voId,"groups",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"}):this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject])&&this.router.navigate(["/organizations",this.complementaryObject.voId],{queryParamsHandling:"merge"});else if("Facility"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getFacilityById_int_policy",[this.complementaryObject]))this.router.navigate(["/facilities",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else if("Vo"===this.complementaryObjectType&&this.guiAuthResolver.isAuthorized("getVoById_int_policy",[this.complementaryObject]))this.router.navigate(["/organizations",this.complementaryObject.id],{relativeTo:this.route,queryParamsHandling:"merge"});else{if("Resource"!==this.complementaryObjectType||!this.guiAuthResolver.isAuthorized("getRichResourceById_int_policy",[this.complementaryObject]))return void this.router.navigate(["/home"],{queryParamsHandling:"merge"});this.router.navigate(["../../"],{relativeTo:this.route,queryParamsHandling:"merge"})}this.reloadEntityDetail.reloadEntityDetail()}}return r.\u0275fac=function(n){return new(n||r)(e.Y36(m.uw),e.Y36(d.Ct),e.Y36(o.d6),e.Y36(o.x4),e.Y36(N.F0),e.Y36(Te.G),e.Y36(N.gz))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-managers-page"]],hostVars:2,hostBindings:function(n,p){2&n&&e.ekj("router-component",p.true)},inputs:{complementaryObject:"complementaryObject",availableRoles:"availableRoles",complementaryObjectType:"complementaryObjectType",theme:"theme",configMode:"configMode",disableRouting:"disableRouting",disableSelf:"disableSelf",displayedUserColumns:"displayedUserColumns",displayedGroupColumns:"displayedGroupColumns"},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["alert_type","warn",4,"ngIf"],[1,"mt-2",3,"refresh"],["color","accent","class","mr-2 mt-2 action-button","data-cy","add-manager-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-manager-button","class","mr-2 mt-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","mt-2"],[3,"value","selectionChange","valueChange"],[3,"value",4,"ngFor","ngForOf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users",4,"ngIf"],["color","accent","data-cy","add-manager-button","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","data-cy","remove-manager-button","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"disableSelf","tableId","disableRouting","displayedColumns","selection","users"],["color","accent","class","mr-2 mt-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mt-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],[3,"disableMembers","disableRouting","displayedColumns","groups","selection","tableId"],["alert_type","warn"]],template:function(n,p){1&n&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"mat-tab-group",1),e.NdJ("selectedTabChange",function(H){return p.tabChanged(H)}),e.TgZ(4,"mat-tab"),e.YNc(5,ve,2,3,"ng-template",2),e.YNc(6,De,11,9,"ng-template",3),e.qZA(),e.TgZ(7,"mat-tab"),e.YNc(8,Ze,2,3,"ng-template",2),e.YNc(9,Ge,11,9,"ng-template",3),e.qZA(),e.qZA(),e.YNc(10,Pe,3,3,"perun-web-apps-alert",4)),2&n&&(e.xp6(1),e.hij(" ",e.lcZ(2,2,"SHARED.COMPONENTS.MANAGERS_PAGE.TITLE"),"\n"),e.xp6(9),e.Q6J("ngIf",0===p.availableRoles.length))},directives:[ge.SP,ge.uX,ge.uD,ge.Vc,Ee.t,O.O5,y.lW,a.KE,a.hX,P.gD,O.sg,I.ey,f.$g,Y.C,Z.W,L.w],pipes:[G.X$,B.i],styles:[""]}),r})()},17672:(z,J,i)=>{i.d(J,{o:()=>ae});var v=i(84847),m=i(32075),o=i(20449),d=i(32080),S=i(32105),s=i(9244),t=i(5e3),e=i(51062),G=i(18750),N=i(77446),a=i(69808),P=i(67322),O=i(98833),I=i(93075),V=i(47423),U=i(29772),y=i(25245),f=i(98380);function L(E,C){if(1&E){const l=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(c){t.CHM(l);const g=t.oxw();return c?g.masterToggle():null}),t.qZA(),t.qZA()}if(2&E){const l=t.oxw();t.xp6(1),t.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function Y(E,C){if(1&E){const l=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(c){const x=t.CHM(l).$implicit,K=t.oxw();return c?K.selection.toggle(x):null})("click",function(c){return c.stopPropagation()}),t.qZA(),t.qZA()}if(2&E){const l=C.$implicit,_=t.oxw();t.xp6(1),t.Q6J("aria-label",_.checkboxLabel(l))("checked",_.selection.isSelected(l))}}function B(E,C){1&E&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_ID")," "))}function W(E,C){if(1&E&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&E){const l=C.$implicit;t.xp6(1),t.Oqu(l.id)}}function X(E,C){1&E&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.TAG_NAME")," "))}function te(E,C){if(1&E&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&E){const l=t.oxw().$implicit;t.xp6(1),t.hij(" ",l.tagName," ")}}function se(E,C){if(1&E){const l=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"mat-form-field"),t.TgZ(2,"input",25),t.NdJ("ngModelChange",function(c){return t.CHM(l),t.oxw().$implicit.tagName=c}),t.qZA(),t.qZA(),t.qZA()}if(2&E){const l=t.oxw().$implicit;t.xp6(2),t.Q6J("ngModel",l.tagName)}}function M(E,C){if(1&E&&(t.TgZ(0,"td",23),t.YNc(1,te,2,1,"div",24),t.YNc(2,se,3,1,"div",24),t.qZA()),2&E){const l=C.$implicit,_=t.oxw();t.xp6(1),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function j(E,C){1&E&&t._UZ(0,"th",22)}function h(E,C){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().edit(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.EDIT_BUTTON"))}function T(E,C){if(1&E){const l=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){t.CHM(l);const c=t.oxw().$implicit;return t.oxw().save(c)}),t.ALo(1,"translate"),t.TgZ(2,"mat-icon"),t._uU(3,"save"),t.qZA(),t.qZA()}2&E&&t.s9C("matTooltip",t.lcZ(1,1,"VO_DETAIL.RESOURCES.TAGS.SAVE_BUTTON"))}function F(E,C){if(1&E&&(t.TgZ(0,"td",23),t.TgZ(1,"div",26),t.YNc(2,h,4,3,"button",27),t.YNc(3,T,4,3,"button",27),t.qZA(),t.qZA()),2&E){const l=C.$implicit,_=t.oxw();t.xp6(2),t.Q6J("ngIf",!_.isChanging.isSelected(l)),t.xp6(1),t.Q6J("ngIf",_.isChanging.isSelected(l))}}function $(E,C){1&E&&t._UZ(0,"tr",29)}function oe(E,C){1&E&&t._UZ(0,"tr",30)}function ie(E,C){if(1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&E){const l=t.oxw();t.xp6(1),t.hij(" ","vo"===l.entity?t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.NO_TAGS"):t.lcZ(3,3,"RESOURCE_DETAIL.TAGS.NO_TAGS"),"\n")}}function re(E,C){1&E&&(t.TgZ(0,"perun-web-apps-alert",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&E&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let ae=(()=>{class E{constructor(l,_,c,g,x){this.resourceManager=l,this.notificator=_,this.translator=c,this.authResolver=g,this.tableCheckbox=x,this.resourceTags=[],this.selection=new o.Ov(!0,[]),this.displayedColumns=["select","id","name","edit"],this.isChanging=new o.Ov(!0,[]),this.pageSizeOptions=s.f7}set matSort(l){this.sort=l,this.setDataSource()}static getDataForColumn(l,_){switch(_){case"id":return l.id.toString();case"name":return l.tagName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l)),this.dataSource=new m.by(this.resourceTags),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(l){(0,s.O6)((0,s.Xn)(this.dataSource.filteredData,this.displayedColumns,E.getDataForColumn),l)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(l,_)=>(0,s.Sd)(l,_,this.displayedColumns,E.getDataForColumn),this.dataSource.sortData=(l,_)=>(0,s.pR)(l,_,E.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}save(l){this.resourceManager.updateResourceTag({resourceTag:l}).subscribe(()=>{this.translator.get("SHARED.COMPONENTS.RESOURCES_TAGS_LIST.EDIT_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.isChanging.deselect(l)})}edit(l){this.isChanging.select(l)}}return E.\u0275fac=function(l){return new(l||E)(t.Y36(S.xk),t.Y36(d.V6),t.Y36(e.sK),t.Y36(d.x4),t.Y36(d.UA))},E.\u0275cmp=t.Xpm({type:E,selectors:[["app-resources-tags-list"]],viewQuery:function(l,_){if(1&l&&(t.Gf(s.l9,7),t.Gf(v.YE,7)),2&l){let c;t.iGM(c=t.CRH())&&(_.child=c.first),t.iGM(c=t.CRH())&&(_.matSort=c.first)}},inputs:{resourceTags:"resourceTags",filterValue:"filterValue",selection:"selection",tableId:"tableId",displayedColumns:"displayedColumns",entity:"entity"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf"],["matInput","",3,"ngModel","ngModelChange"],[1,"d-flex","justify-content-end"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(l,_){1&l&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(g){return _.exportData(g)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,L,2,3,"th",4),t.YNc(5,Y,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,B,3,3,"th",7),t.YNc(8,W,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,X,3,3,"th",10),t.YNc(11,M,3,2,"td",11),t.BQk(),t.ynx(12,12),t.YNc(13,j,1,0,"th",10),t.YNc(14,F,4,2,"td",11),t.BQk(),t.YNc(15,$,1,0,"tr",13),t.YNc(16,oe,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,ie,4,5,"perun-web-apps-alert",15),t.YNc(18,re,3,3,"perun-web-apps-alert",15)),2&l&&(t.Q6J("hidden",0===_.resourceTags.length||0===_.dataSource.filteredData.length),t.xp6(1),t.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),t.xp6(1),t.Q6J("dataSource",_.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",_.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",_.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===_.resourceTags.length),t.xp6(1),t.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.resourceTags.length))},directives:[G.l,m.BZ,v.YE,m.w1,m.fO,m.ge,N.oG,m.Dz,m.ev,v.nU,a.O5,P.KE,O.Nt,I.Fj,I.JJ,I.On,V.lW,U.gM,y.Hw,m.as,m.XQ,m.nj,m.Gk,f.w],pipes:[e.X$],styles:[""]}),E})()},22158:(z,J,i)=>{i.d(J,{T:()=>m});var v=i(8929);const m=(o=class{})=>class extends o{constructor(){super(...arguments),this.destroyed$=new v.xQ}ngOnDestroy(){this.destroyed$.next()}}},90439:(z,J,i)=>{i.d(J,{F:()=>d});var v=i(5e3),m=i(42377),o=i(51062);let d=(()=>{class S{constructor(){this.servicePackages=[],this.selectedPackage=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.packageSelected=new v.vpe,this.nameFunction=t=>t.name,this.shortNameFunction=t=>t.description,this.searchFunction=t=>t.name+t.description}}return S.\u0275fac=function(t){return new(t||S)},S.\u0275cmp=v.Xpm({type:S,selectors:[["perun-web-apps-service-package-search-select"]],inputs:{servicePackages:"servicePackages",selectedPackage:"selectedPackage",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{packageSelected:"packageSelected"},decls:4,vars:17,consts:[[3,"entities","entity","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(t,e){1&t&&(v.TgZ(0,"perun-web-apps-entity-search-select",0),v.NdJ("entitySelected",function(N){return e.packageSelected.emit(N)}),v.ALo(1,"translate"),v.ALo(2,"translate"),v.ALo(3,"translate"),v.qZA()),2&t&&v.Q6J("entities",e.servicePackages)("entity",e.selectedPackage)("multiple",e.multiple)("disableAutoSelect",e.disableAutoSelect)("searchFunction",e.searchFunction)("mainTextFunction",e.nameFunction)("secondaryTextFunction",e.shortNameFunction)("selectPlaceholder",v.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.SELECT_PACKAGE"))("findPlaceholder",v.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.FIND_PACKAGE"))("noEntriesText",v.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_PACKAGE_SEARCH_SELECT.NO_PACKAGE_FOUND"))("theme",e.theme)},directives:[m.i],pipes:[o.X$],styles:[""]}),S})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/462.885ced9d1174fe3f.js b/dist/apps/admin-gui/323.5833c53045eb42df.js similarity index 58% rename from dist/apps/admin-gui/462.885ced9d1174fe3f.js rename to dist/apps/admin-gui/323.5833c53045eb42df.js index 9a1973342..78d9eeaff 100644 --- a/dist/apps/admin-gui/462.885ced9d1174fe3f.js +++ b/dist/apps/admin-gui/323.5833c53045eb42df.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[462],{15935:(I,b,a)=>{a.d(b,{D:()=>B});var M=a(20449),v=a(84847),l=a(32075),c=a(9244),E=a(36908),e=a(5e3),t=a(18750),T=a(77446),f=a(69808),D=a(98380),p=a(51062),x=a(37677);function s(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"th",15),e.TgZ(1,"mat-checkbox",16),e.NdJ("change",function(g){e.CHM(i);const o=e.oxw();return g?o.masterToggle():null}),e.qZA(),e.qZA()}if(2&r){const i=e.oxw();e.xp6(1),e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function u(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"td",17),e.TgZ(1,"mat-checkbox",18),e.NdJ("change",function(g){const d=e.CHM(i).$implicit,n=e.oxw();return g?n.selection.toggle(d):null})("click",function(g){return g.stopPropagation()}),e.qZA(),e.qZA()}if(2&r){const i=m.$implicit,_=e.oxw();e.xp6(1),e.Q6J("aria-label",_.checkboxLabel(i))("checked",_.selection.isSelected(i))}}function O(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function A(r,m){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.id)}}function S(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function P(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.name)}}function L(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function Z(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.type))}}function y(r,m){1&r&&e._UZ(0,"tr",22)}function U(r,m){1&r&&e._UZ(0,"tr",23)}function w(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let B=(()=>{class r{constructor(i,_){this.authResolver=i,this.tableCheckbox=_,this.selection=new M.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=c.f7}set matSort(i){this.sort=i,this.setDataSource()}static getDataForColumn(i,_){switch(_){case"id":return i.id.toString();case"type":return i.type.substring(40);case"name":return i.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new l.by(this.extSources),this.setDataSource()}exportData(i){(0,c.O6)((0,c.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),i)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(i,_)=>(0,c.Sd)(i,_,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(i,_)=>(0,c.pR)(i,_,r.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(E.x4),e.Y36(E.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(i,_){if(1&i&&(e.Gf(c.l9,7),e.Gf(v.YE,7)),2&i){let g;e.iGM(g=e.CRH())&&(_.child=g.first),e.iGM(g=e.CRH())&&(_.matSort=g.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(i,_){1&i&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(o){return _.exportData(o)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,s,2,3,"th",4),e.YNc(5,u,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,O,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,S,3,3,"th",7),e.YNc(11,P,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,L,3,3,"th",7),e.YNc(14,Z,3,3,"td",10),e.BQk(),e.YNc(15,y,1,0,"tr",12),e.YNc(16,U,1,0,"tr",13),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,w,3,3,"perun-web-apps-alert",14),e.YNc(18,N,3,3,"perun-web-apps-alert",14)),2&i&&(e.Q6J("hidden",0===_.extSources.length||0===_.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),e.xp6(1),e.Q6J("dataSource",_.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",_.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",_.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===_.extSources.length),e.xp6(1),e.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.extSources.length))},directives:[t.l,l.BZ,v.YE,l.w1,l.fO,l.ge,T.oG,l.Dz,l.ev,v.nU,l.as,l.XQ,l.nj,l.Gk,f.O5,D.w],pipes:[p.X$,x.A],styles:[""]}),r})()},60526:(I,b,a)=>{a.d(b,{b:()=>g});var M=a(32105),v=a(9244),l=a(16074),c=a(32075),E=a(36908),e=a(64080),t=a(5e3),T=a(48966),f=a(51062),D=a(9224),p=a(69808),x=a(20773),s=a(47423),u=a(25245),O=a(69773),A=a(21757),S=a(21330),P=a(62383);function L(o,d){1&o&&t._UZ(0,"mat-spinner",4)}function Z(o,d){1&o&&t._UZ(0,"th",12)}function y(o,d){if(1&o&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function U(o,d){1&o&&t._UZ(0,"th",12)}function w(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function N(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,w,3,0,"button",16),t.qZA()),2&o){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member.status),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,n.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,n.member.status)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function B(o,d){if(1&o){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeVoExpiration(!1)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function r(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,B,3,0,"button",16),t.qZA()),2&o){const n=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,n.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function m(o,d){if(1&o&&(t.TgZ(0,"td",14),t.YNc(1,N,9,12,"div",3),t.YNc(2,r,5,4,"div",3),t.qZA()),2&o){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function i(o,d){1&o&&t._UZ(0,"tr",19)}function _(o,d){if(1&o&&(t.TgZ(0,"div"),t.TgZ(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,y,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,U,1,0,"th",7),t.YNc(7,m,3,2,"td",10),t.BQk(),t.YNc(8,i,1,0,"tr",11),t.qZA(),t.qZA()),2&o){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let g=(()=>{class o{constructor(n,h,R,C,W,K){this.dialog=n,this.authResolver=h,this.apiRequest=R,this.attributesManager=C,this.translate=W,this.notificator=K,this.voMembershipDataSource=new c.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new c.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,v.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const h=this.member.status;this.dialog.open(l.pf,n).afterClosed().subscribe(C=>{C&&(this.member=C,("VALID"===h&&("EXPIRED"===C.status||"DISABLED"===C.status)||"VALID"===C.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const h=(0,v.kZ)();h.width="400px",h.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(l.kZ,h).afterClosed().subscribe(C=>{C.success&&(C.member&&(this.member=C.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const h=n.error;"PrivilegeException"!==h.name?this.notificator.showError(h.name):this.voMembershipDataSource=new c.by(["Status"]),this.loading=!1})}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(T.uw),t.Y36(E.x4),t.Y36(E.F5),t.Y36(M.H8),t.Y36(f.sK),t.Y36(E.V6))},o.\u0275cmp=t.Xpm({type:o,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(n,h){1&n&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.YNc(7,L,1,0,"mat-spinner",2),t.YNc(8,_,9,2,"div",3),t.qZA(),t.qZA()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",h.loading),t.xp6(1),t.Q6J("ngIf",!h.loading))},directives:[D.a8,D.dk,D.n5,D.dn,p.O5,x.$g,c.BZ,c.w1,c.fO,c.ge,c.Dz,c.ev,s.lW,u.Hw,c.nj,c.Gk],pipes:[f.X$,O.u,A.f,S.r,P.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),o})()},21330:(I,b,a)=>{a.d(b,{r:()=>v});var M=a(5e3);let v=(()=>{class l{transform(E,e){return"valid"!==E.toLowerCase()||e&&"valid"!==E.toLowerCase()?E:"ACTIVE"}}return l.\u0275fac=function(E){return new(E||l)},l.\u0275pipe=M.Yjl({name:"transformMemberStatus",type:l,pure:!0}),l})()},71992:(I,b,a)=>{a.d(b,{a:()=>T});var M=a(36908),v=a(32105),l=a(24850),c=a(27221),E=a(21086),e=a(5e3),t=a(11735);let T=(()=>{class f{constructor(p,x,s,u,O,A,S,P){this.authResolver=p,this.routePolicyService=x,this.router=s,this.notificator=u,this.apiRequest=O,this.memberManager=A,this.groupManager=S,this.resourceManager=P}static getBeanName(p){switch(p){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(p){const x=p.slice(1).split("/").reverse(),s={key:"",entity:{id:-1,beanName:""}};for(const u of x){if(Number(u)){if(-1===s.entity.id){s.entity.id=Number(u);continue}"services-status-"===s.key&&(s.entity.id=Number(u));break}s.key=u.concat("-",s.key)}return s.key=s.key.slice(0,s.key.length-1),s.entity.beanName=f.getBeanName(s.key.split("-")[0]),s}canActivateChild(p,x){if(this.authResolver.isPerunAdminOrObserver())return!0;const s=f.parseUrl(x.url);return s.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(s.entity.id).pipe((0,l.U)(u=>(s.entity.userId=u.userId,s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):s.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(s.entity.id).pipe((0,l.U)(u=>(s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):s.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(s.entity.id).pipe((0,l.U)(u=>(s.entity.facilityId=u.facilityId,s.entity.voId=u.voId,this.finalizeCanActivateChild(s))),(0,c.K)(u=>this.errorRedirectUrl(u.error)))):this.finalizeCanActivateChild(s)}finalizeCanActivateChild(p){return!!this.routePolicyService.canNavigate(p.key,p.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(p){if("PrivilegeException"===p.name)return this.notificator.showRouteError(),(0,E.of)(this.router.parseUrl("/notAuthorized"))}}return f.\u0275fac=function(p){return new(p||f)(e.LFG(M.x4),e.LFG(M.Ip),e.LFG(t.F0),e.LFG(M.V6),e.LFG(M.F5),e.LFG(v.uq),e.LFG(v.ff),e.LFG(v.xk))},f.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"}),f})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[323],{15935:(I,D,a)=>{a.d(D,{D:()=>B});var v=a(20449),f=a(84847),c=a(32075),l=a(9244),h=a(32080),e=a(5e3),t=a(18750),O=a(77446),g=a(69808),b=a(98380),p=a(51062),x=a(37677);function o(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"th",15),e.TgZ(1,"mat-checkbox",16),e.NdJ("change",function(M){e.CHM(i);const s=e.oxw();return M?s.masterToggle():null}),e.qZA(),e.qZA()}if(2&r){const i=e.oxw();e.xp6(1),e.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function u(r,m){if(1&r){const i=e.EpF();e.TgZ(0,"td",17),e.TgZ(1,"mat-checkbox",18),e.NdJ("change",function(M){const d=e.CHM(i).$implicit,n=e.oxw();return M?n.selection.toggle(d):null})("click",function(M){return M.stopPropagation()}),e.qZA(),e.qZA()}if(2&r){const i=m.$implicit,_=e.oxw();e.xp6(1),e.Q6J("aria-label",_.checkboxLabel(i))("checked",_.selection.isSelected(i))}}function T(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.ID")," "))}function A(r,m){if(1&r&&(e.TgZ(0,"td",20),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.id)}}function S(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NAME")," "))}function P(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(i.name)}}function L(r,m){1&r&&(e.TgZ(0,"th",19),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.TYPE")," "))}function Z(r,m){if(1&r&&(e.TgZ(0,"td",21),e._uU(1),e.ALo(2,"extSourceType"),e.qZA()),2&r){const i=m.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,i.type))}}function y(r,m){1&r&&e._UZ(0,"tr",22)}function U(r,m){1&r&&e._UZ(0,"tr",23)}function w(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_EXT_SOURCES"),"\n"))}function N(r,m){1&r&&(e.TgZ(0,"perun-web-apps-alert",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&r&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.EXT_SOURCES_LIST.NO_FILTER_RESULTS"),"\n"))}let B=(()=>{class r{constructor(i,_){this.authResolver=i,this.tableCheckbox=_,this.selection=new v.Ov,this.filterValue="",this.displayedColumns=["select","id","name","type"],this.exporting=!1,this.pageSizeOptions=l.f7}set matSort(i){this.sort=i,this.setDataSource()}static getDataForColumn(i,_){switch(_){case"id":return i.id.toString();case"type":return i.type.substring(40);case"name":return i.name;default:return""}}ngAfterViewInit(){this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new c.by(this.extSources),this.setDataSource()}exportData(i){(0,l.O6)((0,l.Xn)(this.dataSource.filteredData,this.displayedColumns,r.getDataForColumn),i)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(i,_)=>(0,l.Sd)(i,_,this.displayedColumns,r.getDataForColumn),this.dataSource.sortData=(i,_)=>(0,l.pR)(i,_,r.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return r.\u0275fac=function(i){return new(i||r)(e.Y36(h.x4),e.Y36(h.UA))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ext-sources-list"]],viewQuery:function(i,_){if(1&i&&(e.Gf(l.l9,7),e.Gf(f.YE,7)),2&i){let M;e.iGM(M=e.CRH())&&(_.child=M.first),e.iGM(M=e.CRH())&&(_.matSort=M.first)}},inputs:{extSources:"extSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId"},features:[e.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(i,_){1&i&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(s){return _.exportData(s)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,o,2,3,"th",4),e.YNc(5,u,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,T,3,3,"th",7),e.YNc(8,A,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,S,3,3,"th",7),e.YNc(11,P,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,L,3,3,"th",7),e.YNc(14,Z,3,3,"td",10),e.BQk(),e.YNc(15,y,1,0,"tr",12),e.YNc(16,U,1,0,"tr",13),e.qZA(),e.qZA(),e.qZA(),e.YNc(17,w,3,3,"perun-web-apps-alert",14),e.YNc(18,N,3,3,"perun-web-apps-alert",14)),2&i&&(e.Q6J("hidden",0===_.extSources.length||0===_.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",_.pageSizeOptions)("dataLength",_.dataSource.filteredData.length)("tableId",_.tableId),e.xp6(1),e.Q6J("dataSource",_.dataSource),e.xp6(13),e.Q6J("matHeaderRowDef",_.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",_.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===_.extSources.length),e.xp6(1),e.Q6J("ngIf",0===_.dataSource.filteredData.length&&0!==_.extSources.length))},directives:[t.l,c.BZ,f.YE,c.w1,c.fO,c.ge,O.oG,c.Dz,c.ev,f.nU,c.as,c.XQ,c.nj,c.Gk,g.O5,b.w],pipes:[p.X$,x.A],styles:[""]}),r})()},60526:(I,D,a)=>{a.d(D,{b:()=>M});var v=a(32105),f=a(9244),c=a(16074),l=a(32075),h=a(32080),e=a(64080),t=a(5e3),O=a(48966),g=a(51062),b=a(9224),p=a(69808),x=a(20773),o=a(47423),u=a(25245),T=a(69773),A=a(21757),S=a(21330),P=a(62383);function L(s,d){1&s&&t._UZ(0,"mat-spinner",4)}function Z(s,d){1&s&&t._UZ(0,"th",12)}function y(s,d){if(1&s&&(t.TgZ(0,"td",13),t._uU(1),t.qZA()),2&s){const n=d.$implicit;t.xp6(1),t.hij("",n,":")}}function U(s,d){1&s&&t._UZ(0,"th",12)}function w(s,d){if(1&s){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function N(s,d){if(1&s&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",15),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,w,3,0,"button",16),t.qZA()),2&s){const n=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,n.member.status),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,n.member.status)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,n.member.status)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function B(s,d){if(1&s){const n=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(n),t.oxw(4).changeVoExpiration(!1)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function r(s,d){if(1&s&&(t.TgZ(0,"div"),t.TgZ(1,"i",18),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,B,3,0,"button",16),t.qZA()),2&s){const n=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,n.voExpiration)," "),t.xp6(2),t.Q6J("ngIf",n.authResolver.isThisVoAdmin(n.vo.id))}}function m(s,d){if(1&s&&(t.TgZ(0,"td",14),t.YNc(1,N,9,12,"div",3),t.YNc(2,r,5,4,"div",3),t.qZA()),2&s){const n=d.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===n),t.xp6(1),t.Q6J("ngIf","Expiration"===n)}}function i(s,d){1&s&&t._UZ(0,"tr",19)}function _(s,d){if(1&s&&(t.TgZ(0,"div"),t.TgZ(1,"table",5),t.ynx(2,6),t.YNc(3,Z,1,0,"th",7),t.YNc(4,y,2,1,"td",8),t.BQk(),t.ynx(5,9),t.YNc(6,U,1,0,"th",7),t.YNc(7,m,3,2,"td",10),t.BQk(),t.YNc(8,i,1,0,"tr",11),t.qZA(),t.qZA()),2&s){const n=t.oxw();t.xp6(1),t.Q6J("dataSource",n.voMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",n.displayedColumns)}}let M=(()=>{class s{constructor(n,E,R,C,W,K){this.dialog=n,this.authResolver=E,this.apiRequest=R,this.attributesManager=C,this.translate=W,this.notificator=K,this.voMembershipDataSource=new l.by,this.voExpiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.voMembershipDataSource=new l.by(["Status","Expiration"]),this.refreshVoExpiration()}changeStatus(){const n=(0,f.kZ)();n.width="600px",n.data={member:this.member,voId:this.vo.id};const E=this.member.status;this.dialog.open(c.pf,n).afterClosed().subscribe(C=>{C&&(this.member=C,("VALID"===E&&("EXPIRED"===C.status||"DISABLED"===C.status)||"VALID"===C.status)&&this.changeVoExpiration(!0))})}changeVoExpiration(n){const E=(0,f.kZ)();E.width="400px",E.data={voId:this.vo.id,memberId:this.member.id,expirationAttr:this.voExpirationAtt,status:this.member.status,statusChanged:n},this.dialog.open(c.kZ,E).afterClosed().subscribe(C=>{C.success&&(C.member&&(this.member=C.member),this.refreshVoExpiration())})}refreshVoExpiration(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getMemberAttributeByName(this.member.id,e.r.MEMBER_DEF_EXPIRATION).subscribe(n=>{this.voExpirationAtt=n,this.voExpiration=n.value?n.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES"),this.loading=!1},n=>{const E=n.error;"PrivilegeException"!==E.name?this.notificator.showError(E.name):this.voMembershipDataSource=new l.by(["Status"]),this.loading=!1})}}return s.\u0275fac=function(n){return new(n||s)(t.Y36(O.uw),t.Y36(h.x4),t.Y36(h.F5),t.Y36(v.H8),t.Y36(g.sK),t.Y36(h.V6))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-member-overview-membership"]],inputs:{member:"member",vo:"vo"},features:[t.TTD],decls:9,vars:5,consts:[[1,"mat-elevation-z3","membership-card"],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[1,"column-center"],["mat-row",""]],template:function(n,E){1&n&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.YNc(7,L,1,0,"mat-spinner",2),t.YNc(8,_,9,2,"div",3),t.qZA(),t.qZA()),2&n&&(t.xp6(4),t.hij(" ",t.lcZ(5,3,"MEMBER_DETAIL.OVERVIEW.ORGANIZATION_MEMBERSHIP")," "),t.xp6(3),t.Q6J("ngIf",E.loading),t.xp6(1),t.Q6J("ngIf",!E.loading))},directives:[b.a8,b.dk,b.n5,b.dn,p.O5,x.$g,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,o.lW,u.Hw,l.nj,l.Gk],pipes:[g.X$,T.u,A.f,S.r,P.M],styles:[".membership-card[_ngcontent-%COMP%]{max-width:400px}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),s})()},21330:(I,D,a)=>{a.d(D,{r:()=>f});var v=a(5e3);let f=(()=>{class c{transform(h,e){return"valid"!==h.toLowerCase()||e&&"valid"!==h.toLowerCase()?h:"ACTIVE"}}return c.\u0275fac=function(h){return new(h||c)},c.\u0275pipe=v.Yjl({name:"transformMemberStatus",type:c,pure:!0}),c})()},71992:(I,D,a)=>{a.d(D,{a:()=>O});var v=a(32080),f=a(32105),c=a(24850),l=a(27221),h=a(21086),e=a(5e3),t=a(11735);let O=(()=>{class g{constructor(p,x,o,u,T,A,S,P){this.authResolver=p,this.routePolicyService=x,this.router=o,this.notificator=u,this.apiRequest=T,this.memberManager=A,this.groupManager=S,this.resourceManager=P}static getBeanName(p){switch(p){case"organizations":return"Vo";case"groups":return"Group";case"facilities":case"services":return"Facility";case"resources":return"Resource";case"members":return"Member";default:return""}}static parseUrl(p){const x=p.slice(1).split("/").reverse(),o={key:"",entity:{id:-1,beanName:""}};for(const u of x){if(Number(u)){if(-1===o.entity.id){o.entity.id=Number(u);continue}"services-status-"===o.key&&(o.entity.id=Number(u));break}o.key=u.concat("-",o.key)}return o.key=o.key.slice(0,o.key.length-1),o.entity.beanName=g.getBeanName(o.key.split("-")[0]),o}canActivateChild(p,x){if(this.authResolver.isPerunAdminOrObserver())return!0;const o=g.parseUrl(x.url);return o.key.startsWith("members")?(this.apiRequest.dontHandleErrorForNext(),this.memberManager.getMemberById(o.entity.id).pipe((0,c.U)(u=>(o.entity.userId=u.userId,o.entity.voId=u.voId,this.finalizeCanActivateChild(o))),(0,l.K)(u=>this.errorRedirectUrl(u.error)))):o.key.startsWith("groups")?(this.apiRequest.dontHandleErrorForNext(),this.groupManager.getGroupById(o.entity.id).pipe((0,c.U)(u=>(o.entity.voId=u.voId,this.finalizeCanActivateChild(o))),(0,l.K)(u=>this.errorRedirectUrl(u.error)))):o.key.startsWith("resources")?(this.apiRequest.dontHandleErrorForNext(),this.resourceManager.getResourceById(o.entity.id).pipe((0,c.U)(u=>(o.entity.facilityId=u.facilityId,o.entity.voId=u.voId,this.finalizeCanActivateChild(o))),(0,l.K)(u=>this.errorRedirectUrl(u.error)))):this.finalizeCanActivateChild(o)}finalizeCanActivateChild(p){return!!this.routePolicyService.canNavigate(p.key,p.entity)||(this.notificator.showRouteError(),this.router.parseUrl("/notAuthorized"))}errorRedirectUrl(p){if("PrivilegeException"===p.name)return this.notificator.showRouteError(),(0,h.of)(this.router.parseUrl("/notAuthorized"))}}return g.\u0275fac=function(p){return new(p||g)(e.LFG(v.x4),e.LFG(v.Ip),e.LFG(t.F0),e.LFG(v.V6),e.LFG(v.F5),e.LFG(f.uq),e.LFG(f.ff),e.LFG(f.xk))},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},23123:(I,D,a)=>{a.d(D,{i:()=>c});var v=a(5e3),f=a(51062);let c=(()=>{class l{constructor(e){this.translate=e,this.prefix="ROLES."}transform(e){const t=this.prefix.concat(e);return this.translate.instant(t)}}return l.\u0275fac=function(e){return new(e||l)(v.Y36(f.sK,16))},l.\u0275pipe=v.Yjl({name:"displayedRole",type:l,pure:!0}),l})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/357.b680344f1c9676d6.js b/dist/apps/admin-gui/357.a2d2d7ce0e6f40ec.js similarity index 99% rename from dist/apps/admin-gui/357.b680344f1c9676d6.js rename to dist/apps/admin-gui/357.a2d2d7ce0e6f40ec.js index 9730f318a..a795794be 100644 --- a/dist/apps/admin-gui/357.b680344f1c9676d6.js +++ b/dist/apps/admin-gui/357.a2d2d7ce0e6f40ec.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[357],{61283:(U,D,a)=>{a.d(D,{A:()=>C});var o=a(36769),g=a(5e3),M=a(11735);let C=(()=>{class i{prepareRoute(s){return(null==s?void 0:s.activatedRouteData)&&null!==(null==s?void 0:s.activatedRouteData.animation)}}return i.\u0275fac=function(s){return new(s||i)},i.\u0275cmp=g.Xpm({type:i,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(s,O){1&s&&(g.TgZ(0,"div"),g._UZ(1,"router-outlet",null,0),g.qZA())},directives:[M.lC],styles:[""],data:{animation:[o.Ji]}}),i})()},71103:(U,D,a)=>{a.d(D,{n:()=>_});var o=a(48966),g=a(20449),M=a(36908),C=a(32105),i=a(10036),s=(a(387),a(5e3)),O=a(51062),t=a(7434),R=a(69808),L=a(98380),f=a(20773),S=a(53984),m=a(47423);const P=["list"];function w(d,A){1&d&&(s.TgZ(0,"perun-web-apps-alert",10),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&d&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function h(d,A){1&d&&s._UZ(0,"mat-spinner",11)}function I(d,A){if(1&d&&s._UZ(0,"perun-web-apps-attributes-list",12,13),2&d){const u=s.oxw();s.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",u.attributes)("filterValue",u.filterValue)("inDialog",!0)("selection",u.selected)("tableId",u.tableId)}}let _=(()=>{class d{constructor(u,p,r,b,E){this.dialogRef=u,this.data=p,this.attributesManager=r,this.notificator=b,this.translate=E,this.attributes=[],this.selected=new g.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=i.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(x=>this.saveSuccessMessage=x)}ngOnInit(){const u=new Array;let p,r,b,E,x,Z,B,N;switch(this.data.notEmptyAttributes.forEach(F=>{u.push(F.id)}),this.data.entity){case"member":p=this.data.entityId;break;case"user":r=this.data.entityId;break;case"vo":b=this.data.entityId;break;case"group":E=this.data.entityId;break;case"resource":x=this.data.entityId;break;case"facility":Z=this.data.entityId;break;case"host":B=this.data.entityId;break;case"ues":N=this.data.entityId}switch(this.data.secondEntity){case"member":p=this.data.secondEntityId;break;case"user":r=this.data.secondEntityId;break;case"vo":b=this.data.secondEntityId;break;case"group":E=this.data.secondEntityId;break;case"resource":x=this.data.secondEntityId;break;case"facility":Z=this.data.secondEntityId;break;case"host":B=this.data.secondEntityId;break;case"ues":N=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(p,r,b,E,x,Z,B,N).subscribe(F=>{this.attributes=F,this.attributes=this.attributes.filter(J=>!u.includes(J.id)&&this.twoEntityValid(J)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let u=!1;for(const p of this.selected.selected)"java.util.ArrayList"===p.type&&0===p.value.length&&(u=!0),void 0===p.value&&(u=!0);if(u)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(u){this.filterValue=u}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(u){return!this.data.secondEntity||u.entity===`${this.data.entity}_${this.data.secondEntity}`}}return d.\u0275fac=function(u){return new(u||d)(s.Y36(o.so),s.Y36(o.WI),s.Y36(C.H8),s.Y36(M.V6),s.Y36(O.sK))},d.\u0275cmp=s.Xpm({type:d,selectors:[["app-create-attribute-dialog"]],viewQuery:function(u,p){if(1&u&&s.Gf(P,5),2&u){let r;s.iGM(r=s.CRH())&&(p.list=r.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(u,p){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(b){return p.applyFilter(b)}),s.qZA(),s.YNc(6,w,3,3,"perun-web-apps-alert",3),s.qZA(),s.TgZ(7,"div",4),s.YNc(8,h,1,0,"mat-spinner",5),s.YNc(9,I,2,6,"perun-web-apps-attributes-list",6),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"button",8),s.NdJ("click",function(){return p.onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",9),s.NdJ("click",function(){return p.onSave()}),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(p.data.style),s.xp6(3),s.Oqu(s.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),s.xp6(1),s.Q6J("ngIf",p.showError),s.xp6(2),s.Q6J("ngIf",p.loading),s.xp6(1),s.Q6J("ngIf",!p.loading),s.xp6(3),s.hij(" ",s.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===p.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[o.uh,t.L,R.O5,L.w,o.xY,f.$g,S.p,o.H8,m.lW],pipes:[O.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),d})()},61365:(U,D,a)=>{a.d(D,{k:()=>w});var o=a(48966),g=a(32075),M=a(36908),C=a(32105),i=a(5e3),v=a(51062),s=a(69808),O=a(20773),t=a(47423);function R(h,I){1&h&&i._UZ(0,"mat-spinner",6)}function L(h,I){1&h&&i._UZ(0,"th",15)}function f(h,I){if(1&h&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&h){const _=I.$implicit;i.xp6(1),i.Oqu(_.displayName)}}function S(h,I){1&h&&i._UZ(0,"tr",17)}function m(h,I){1&h&&i._UZ(0,"tr",18)}function P(h,I){if(1&h&&(i.TgZ(0,"div",7),i.TgZ(1,"div"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",8),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",9),i.ynx(8,10),i.YNc(9,L,1,0,"th",11),i.YNc(10,f,2,1,"td",12),i.BQk(),i.YNc(11,S,1,0,"tr",13),i.YNc(12,m,1,0,"tr",14),i.qZA(),i.qZA()),2&h){const _=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),i.xp6(2),i.Q6J("dataSource",_.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",_.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",_.displayedColumns)}}let w=(()=>{class h{constructor(_,d,A,u,p){this.dialogRef=_,this.data=d,this.notificator=A,this.translate=u,this.attributesManager=p,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new g.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const _=[];for(const A of this.data.attributes)_.push(A.id);const d={};switch(d[this.data.entity]=this.data.entityId,d.attributes=_,void 0!==this.data.secondEntity&&(d[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,_).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})}}return h.\u0275fac=function(_){return new(_||h)(i.Y36(o.so),i.Y36(o.WI),i.Y36(M.V6),i.Y36(v.sK),i.Y36(C.H8))},h.\u0275cmp=i.Xpm({type:h,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(_,d){1&_&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,R,1,0,"mat-spinner",1),i.YNc(5,P,13,9,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return d.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return d.onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&_&&(i.Tol(d.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),i.xp6(2),i.Q6J("ngIf",d.loading),i.xp6(1),i.Q6J("ngIf",!d.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),i.xp6(2),i.Q6J("disabled",d.loading),i.xp6(1),i.hij(" ",i.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[o.uh,s.O5,O.$g,o.xY,g.BZ,g.w1,g.fO,g.ge,g.Dz,g.ev,g.as,g.XQ,g.nj,g.Gk,o.H8,t.lW],pipes:[v.X$],styles:[""]}),h})()},12651:(U,D,a)=>{a.d(D,{t:()=>A});var o=a(32105),g=a(20449),M=a(9244),C=a(71103),i=a(16074),v=a(61365),O=(a(387),a(10036)),t=a(5e3),R=a(48966),L=a(96214),f=a(47423),S=a(7434),m=a(69808),P=a(20773),w=a(53984),h=a(51062);const I=["list"];function _(u,p){1&u&&t._UZ(0,"mat-spinner",7)}function d(u,p){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&u){const r=t.oxw();t.Q6J("attributes",r.attributes)("filterValue",r.filterValue)("selection",r.selection)("tableId",r.tableId)}}let A=(()=>{class u{constructor(r,b){this.attributesManagerService=r,this.dialog=b,this.attributes=[],this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=O.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1})}}applyFilter(r){this.filterValue=r}onCreate(){const r=(0,M.kZ)();r.width="1050px",r.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(C.n,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const r=(0,M.kZ)();r.width="450px",r.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(i.wA,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onDelete(){const r=(0,M.kZ)();r.width="450px",r.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(v.k,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(o.H8),t.Y36(R.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(r,b){if(1&r&&t.Gf(I,5),2&r){let E;t.iGM(E=t.CRH())&&(b.list=E.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(r,b){1&r&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return b.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return b.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return b.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return b.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(x){return b.applyFilter(x)}),t.qZA(),t.YNc(11,_,1,0,"mat-spinner",5),t.YNc(12,d,2,4,"perun-web-apps-attributes-list",6)),2&r&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===b.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===b.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",b.loading),t.xp6(1),t.Q6J("ngIf",!b.loading))},directives:[L.t,f.lW,S.L,m.O5,P.$g,w.p],pipes:[h.X$],styles:[""]}),u})()},19191:(U,D,a)=>{a.d(D,{Y:()=>V});var o=a(32105),M=(a(387),a(20449)),C=a(61365),i=a(9244),v=a(16074),s=a(71103),O=a(64080),t=a(5e3),R=a(48966),L=a(69808),f=a(20773),S=a(98380),m=a(82322),P=a(45703),w=a(42377),h=a(51062);let I=(()=>{class c{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=e=>(0,i.bD)(e.user)}ngOnInit(){this.members=this.members.sort(i.fx)}}return c.\u0275fac=function(e){return new(e||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,n){1&e&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return n.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e&&t.Q6J("entities",n.members)("searchFunction",n.memberFullNameFunction)("mainTextFunction",n.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[w.i],pipes:[h.X$],styles:[""]}),c})(),_=(()=>{class c{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=e=>e.name}ngOnInit(){this.facilities=this.facilities.sort(i.aC)}}return c.\u0275fac=function(e){return new(e||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,n){1&e&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return n.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e&&t.Q6J("entities",n.facilities)("searchFunction",n.nameFunction)("mainTextFunction",n.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[w.i],pipes:[h.X$],styles:[""]}),c})();var d=a(74250),A=a(96214),u=a(47423),p=a(7434),r=a(53984);const b=["list"];function E(c,y){1&c&&t._UZ(0,"mat-spinner",4)}function x(c,y){if(1&c&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&c){const e=t.oxw();t.xp6(1),t.Oqu(e.noEntityMessage)}}function Z(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("firstSelectedGroup",e.specificSecondEntity)("displayStatus",!0)("groups",e.entityValues)}}function B(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("resources",e.entityValues)}}function N(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("members",e.entityValues)}}function F(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("facilities",e.entityValues)}}function J(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("users",e.entityValues)}}function W(c,y){1&c&&t._UZ(0,"mat-spinner",4)}function K(c,y){if(1&c&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&c){const e=t.oxw(2);t.Q6J("attributes",e.attributes)("filterValue",e.filterValue)("selection",e.selection)}}function Y(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",6),t.YNc(2,Z,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,B,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,N,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,F,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,J,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(e);const l=t.oxw();return l.getAttributes(l.specificSecondEntity.id)}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onAdd(l.specificSecondEntity.id)}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onSave(l.specificSecondEntity.id)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onDelete(l.specificSecondEntity.id)}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(l){return t.CHM(e),t.oxw().applyFilter(l)}),t.qZA(),t.YNc(18,W,1,0,"mat-spinner",1),t.YNc(19,K,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&c){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===e.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",e.innerLoading),t.xp6(1),t.Q6J("ngIf",!e.innerLoading)}}let V=(()=>{class c{constructor(e,n,l,T,Q,k){this.attributesManagerService=e,this.resourcesManagerService=n,this.facilitiesManagerService=l,this.groupsManagerService=T,this.membersManager=Q,this.dialog=k,this.entityValues=[],this.attributes=[],this.selection=new M.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>n.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>{const l=n.enrichedResource.resource;return l.status=n.status,l}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[O.r.MEMBER_CORE_ID]).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>n.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>{const l=n.enrichedGroup.group;return l.status=n.status,l}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let e=this.entityValues[0];const n=(0,i.vL)(this.entityKey());if(n)for(const l of this.entityValues)if(l.id===n[0]){e=l;break}this.specifySecondEntity(e)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(e){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}}setMessages(e){this.noEntityMessage=`No ${e} assigned`}onSave(e){this.list.updateMapAttributes();const n=(0,i.kZ)();n.width="450px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,attributes:this.selection.selected},this.dialog.open(v.wA,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}onDelete(e){const n=(0,i.kZ)();n.width="450px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(C.k,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}onAdd(e){const n=(0,i.kZ)();n.width="1050px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(s.n,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}specifySecondEntity(e){e&&(this.specificSecondEntity=e,this.getAttributes(this.specificSecondEntity.id))}applyFilter(e){this.filterValue=e}}return c.\u0275fac=function(e){return new(e||c)(t.Y36(o.H8),t.Y36(o.xk),t.Y36(o.IQ),t.Y36(o.ff),t.Y36(o.uq),t.Y36(R.uw))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(e,n){if(1&e&&t.Gf(b,5),2&e){let l;t.iGM(l=t.CRH())&&(n.list=l.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.YNc(1,E,1,0,"mat-spinner",1),t.YNc(2,x,2,1,"perun-web-apps-alert",2),t.YNc(3,Y,20,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(1),t.Q6J("ngIf",0===n.entityValues.length&&!n.loading),t.xp6(1),t.Q6J("ngIf",0!==n.entityValues.length))},directives:[L.O5,f.$g,S.w,m.h,P.L,I,_,d.S,A.t,u.lW,p.L,r.p],pipes:[h.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),c})()},71135:(U,D,a)=>{a.d(D,{L:()=>L});var o=a(5e3),g=a(48966),M=a(11735),C=a(69808),i=a(90508),v=a(25245),s=a(64597),O=a(51062);function t(f,S){if(1&f&&(o.TgZ(0,"div",3),o.TgZ(1,"a",4),o.ALo(2,"multiWordDataCy"),o.ALo(3,"translate"),o._UZ(4,"mat-icon",5),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&f){const m=S.$implicit;o.xp6(1),o.Gre("",m.style," item-itself"),o.Q6J("routerLink",m.url),o.uIk("data-cy",o.lcZ(2,7,o.lcZ(3,9,m.label))),o.xp6(3),o.Q6J("svgIcon",m.cssIcon),o.xp6(1),o.hij(" ",o.lcZ(6,11,m.label)," ")}}function R(f,S){if(1&f&&(o.TgZ(0,"div",1),o.YNc(1,t,7,13,"div",2),o.qZA()),2&f){const m=o.oxw();o.xp6(1),o.Q6J("ngForOf",m.items)}}let L=(()=>{class f{constructor(m,P){this.dialog=m,this.route=P,this.size="large"}ngOnInit(){this.route.params.subscribe(m=>{this.voId=Number(m.voId)})}}return f.\u0275fac=function(m){return new(m||f)(o.Y36(g.uw),o.Y36(M.gz))},f.\u0275cmp=o.Xpm({type:f,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(m,P){1&m&&o.YNc(0,R,2,1,"div",0),2&m&&o.Q6J("ngIf","small"===P.size)},directives:[C.O5,C.sg,i.wG,M.yS,v.Hw],pipes:[s.R,O.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),f})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[357],{61283:(U,D,a)=>{a.d(D,{A:()=>C});var o=a(36769),g=a(5e3),M=a(11735);let C=(()=>{class i{prepareRoute(s){return(null==s?void 0:s.activatedRouteData)&&null!==(null==s?void 0:s.activatedRouteData.animation)}}return i.\u0275fac=function(s){return new(s||i)},i.\u0275cmp=g.Xpm({type:i,selectors:[["app-animated-router-outlet"]],decls:3,vars:0,consts:[["outlet","outlet"]],template:function(s,O){1&s&&(g.TgZ(0,"div"),g._UZ(1,"router-outlet",null,0),g.qZA())},directives:[M.lC],styles:[""],data:{animation:[o.Ji]}}),i})()},71103:(U,D,a)=>{a.d(D,{n:()=>_});var o=a(48966),g=a(20449),M=a(32080),C=a(32105),i=a(10036),s=(a(387),a(5e3)),O=a(51062),t=a(7434),R=a(69808),L=a(98380),f=a(20773),S=a(53984),m=a(47423);const P=["list"];function w(d,A){1&d&&(s.TgZ(0,"perun-web-apps-alert",10),s._uU(1),s.ALo(2,"translate"),s.qZA()),2&d&&(s.xp6(1),s.hij(" ",s.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE.ERROR_EMPTY_VALUE")," "))}function h(d,A){1&d&&s._UZ(0,"mat-spinner",11)}function I(d,A){if(1&d&&s._UZ(0,"perun-web-apps-attributes-list",12,13),2&d){const u=s.oxw();s.Q6J("emptyListText","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_ATTRIBUTES")("attributes",u.attributes)("filterValue",u.filterValue)("inDialog",!0)("selection",u.selected)("tableId",u.tableId)}}let _=(()=>{class d{constructor(u,p,r,b,E){this.dialogRef=u,this.data=p,this.attributesManager=r,this.notificator=b,this.translate=E,this.attributes=[],this.selected=new g.Ov(!0,[]),this.showError=!1,this.filterValue="",this.tableId=i.rF,this.translate.get("DIALOGS.CREATE_ATTRIBUTE.SUCCESS_SAVE").subscribe(x=>this.saveSuccessMessage=x)}ngOnInit(){const u=new Array;let p,r,b,E,x,Z,B,N;switch(this.data.notEmptyAttributes.forEach(F=>{u.push(F.id)}),this.data.entity){case"member":p=this.data.entityId;break;case"user":r=this.data.entityId;break;case"vo":b=this.data.entityId;break;case"group":E=this.data.entityId;break;case"resource":x=this.data.entityId;break;case"facility":Z=this.data.entityId;break;case"host":B=this.data.entityId;break;case"ues":N=this.data.entityId}switch(this.data.secondEntity){case"member":p=this.data.secondEntityId;break;case"user":r=this.data.secondEntityId;break;case"vo":b=this.data.secondEntityId;break;case"group":E=this.data.secondEntityId;break;case"resource":x=this.data.secondEntityId;break;case"facility":Z=this.data.secondEntityId;break;case"host":B=this.data.secondEntityId;break;case"ues":N=this.data.secondEntityId}this.loading=!0,this.attributesManager.getAttributesDefinitionWithRights(p,r,b,E,x,Z,B,N).subscribe(F=>{this.attributes=F,this.attributes=this.attributes.filter(J=>!u.includes(J.id)&&this.twoEntityValid(J)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSave(){this.list.updateMapAttributes();let u=!1;for(const p of this.selected.selected)"java.util.ArrayList"===p.type&&0===p.value.length&&(u=!0),void 0===p.value&&(u=!0);if(u)return this.showError=!0,void setTimeout(()=>{this.showError=!1},5e3);switch(this.data.entity){case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()}):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.selected.selected}).subscribe(()=>{this.handleSuccess()})}}applyFilter(u){this.filterValue=u}handleSuccess(){this.notificator.showSuccess(this.saveSuccessMessage),this.selected.clear(),this.dialogRef.close("saved")}twoEntityValid(u){return!this.data.secondEntity||u.entity===`${this.data.entity}_${this.data.secondEntity}`}}return d.\u0275fac=function(u){return new(u||d)(s.Y36(o.so),s.Y36(o.WI),s.Y36(C.H8),s.Y36(M.V6),s.Y36(O.sK))},d.\u0275cmp=s.Xpm({type:d,selectors:[["app-create-attribute-dialog"]],viewQuery:function(u,p){if(1&u&&s.Gf(P,5),2&u){let r;s.iGM(r=s.CRH())&&(p.list=r.first)}},decls:17,vars:17,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["data-cy","filter-attributes",1,"font-size-1rem",3,"placeholder","filter"],["class","ml-3 font-size-1rem","alert_type","error",4,"ngIf"],["mat-dialog-content",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","save-selected-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","error",1,"ml-3","font-size-1rem"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","filterValue","inDialog","selection","tableId"],["list",""]],template:function(u,p){1&u&&(s.TgZ(0,"div"),s.TgZ(1,"div",0),s.TgZ(2,"h1",1),s._uU(3),s.ALo(4,"translate"),s.qZA(),s.TgZ(5,"perun-web-apps-immediate-filter",2),s.NdJ("filter",function(b){return p.applyFilter(b)}),s.qZA(),s.YNc(6,w,3,3,"perun-web-apps-alert",3),s.qZA(),s.TgZ(7,"div",4),s.YNc(8,h,1,0,"mat-spinner",5),s.YNc(9,I,2,6,"perun-web-apps-attributes-list",6),s.qZA(),s.TgZ(10,"div",7),s.TgZ(11,"button",8),s.NdJ("click",function(){return p.onCancel()}),s._uU(12),s.ALo(13,"translate"),s.qZA(),s.TgZ(14,"button",9),s.NdJ("click",function(){return p.onSave()}),s._uU(15),s.ALo(16,"translate"),s.qZA(),s.qZA(),s.qZA()),2&u&&(s.Tol(p.data.style),s.xp6(3),s.Oqu(s.lcZ(4,11,"DIALOGS.CREATE_ATTRIBUTE.SET_NEW")),s.xp6(2),s.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),s.xp6(1),s.Q6J("ngIf",p.showError),s.xp6(2),s.Q6J("ngIf",p.loading),s.xp6(1),s.Q6J("ngIf",!p.loading),s.xp6(3),s.hij(" ",s.lcZ(13,13,"DIALOGS.CREATE_ATTRIBUTE.CANCEL")," "),s.xp6(2),s.Q6J("disabled",0===p.selected.selected.length),s.xp6(1),s.hij(" ",s.lcZ(16,15,"DIALOGS.CREATE_ATTRIBUTE.SAVE")," "))},directives:[o.uh,t.L,R.O5,L.w,o.xY,f.$g,S.p,o.H8,m.lW],pipes:[O.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),d})()},61365:(U,D,a)=>{a.d(D,{k:()=>w});var o=a(48966),g=a(32075),M=a(32080),C=a(32105),i=a(5e3),v=a(51062),s=a(69808),O=a(20773),t=a(47423);function R(h,I){1&h&&i._UZ(0,"mat-spinner",6)}function L(h,I){1&h&&i._UZ(0,"th",15)}function f(h,I){if(1&h&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&h){const _=I.$implicit;i.xp6(1),i.Oqu(_.displayName)}}function S(h,I){1&h&&i._UZ(0,"tr",17)}function m(h,I){1&h&&i._UZ(0,"tr",18)}function P(h,I){if(1&h&&(i.TgZ(0,"div",7),i.TgZ(1,"div"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",8),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",9),i.ynx(8,10),i.YNc(9,L,1,0,"th",11),i.YNc(10,f,2,1,"td",12),i.BQk(),i.YNc(11,S,1,0,"tr",13),i.YNc(12,m,1,0,"tr",14),i.qZA(),i.qZA()),2&h){const _=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.DELETE_ATTRIBUTES.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.DELETE_ATTRIBUTES.ASK")," "),i.xp6(2),i.Q6J("dataSource",_.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",_.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",_.displayedColumns)}}let w=(()=>{class h{constructor(_,d,A,u,p){this.dialogRef=_,this.data=d,this.notificator=A,this.translate=u,this.attributesManager=p,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.dataSource=new g.by(this.data.attributes),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){const _=[];for(const A of this.data.attributes)_.push(A.id);const d={};switch(d[this.data.entity]=this.data.entityId,d.attributes=_,void 0!==this.data.secondEntity&&(d[this.data.secondEntity]=this.data.secondEntityId),this.loading=!0,this.data.entity){case"vo":this.attributesManager.removeVoAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":"resource"===this.data.secondEntity?this.attributesManager.removeGroupResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeGroupAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"user":"facility"===this.data.secondEntity?this.attributesManager.removeUserFacilityAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1):this.attributesManager.removeUserAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.removeMemberResourceAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"group":this.attributesManager.removeMemberGroupAttributes(this.data.entityId,this.data.secondEntityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;default:this.attributesManager.removeMemberAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1)}break;case"facility":this.attributesManager.removeFacilityAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"host":this.attributesManager.removeHostAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()},()=>this.loading=!1);break;case"ues":this.attributesManager.removeUesAttributes(this.data.entityId,_).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.removeResourceAttributes(this.data.entityId,_).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.DELETE_ATTRIBUTES.SUCCESS").subscribe(_=>{this.notificator.showSuccess(_),this.dialogRef.close(!0)})}}return h.\u0275fac=function(_){return new(_||h)(i.Y36(o.so),i.Y36(o.WI),i.Y36(M.V6),i.Y36(v.sK),i.Y36(C.H8))},h.\u0275cmp=i.Xpm({type:h,selectors:[["app-delete-attribute-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-attributes","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(_,d){1&_&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,R,1,0,"mat-spinner",1),i.YNc(5,P,13,9,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return d.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return d.onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&_&&(i.Tol(d.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTES.TITLE")),i.xp6(2),i.Q6J("ngIf",d.loading),i.xp6(1),i.Q6J("ngIf",!d.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTES.CANCEL")," "),i.xp6(2),i.Q6J("disabled",d.loading),i.xp6(1),i.hij(" ",i.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTES.DELETE")," "))},directives:[o.uh,s.O5,O.$g,o.xY,g.BZ,g.w1,g.fO,g.ge,g.Dz,g.ev,g.as,g.XQ,g.nj,g.Gk,o.H8,t.lW],pipes:[v.X$],styles:[""]}),h})()},12651:(U,D,a)=>{a.d(D,{t:()=>A});var o=a(32105),g=a(20449),M=a(9244),C=a(71103),i=a(16074),v=a(61365),O=(a(387),a(10036)),t=a(5e3),R=a(48966),L=a(96214),f=a(47423),S=a(7434),m=a(69808),P=a(20773),w=a(53984),h=a(51062);const I=["list"];function _(u,p){1&u&&t._UZ(0,"mat-spinner",7)}function d(u,p){if(1&u&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&u){const r=t.oxw();t.Q6J("attributes",r.attributes)("filterValue",r.filterValue)("selection",r.selection)("tableId",r.tableId)}}let A=(()=>{class u{constructor(r,b){this.attributesManagerService=r,this.dialog=b,this.attributes=[],this.selection=new g.Ov(!0,[]),this.filterValue="",this.tableId=O.rF,this.loading=!1}ngOnInit(){this.refreshTable()}refreshTable(){switch(this.loading=!0,this.entity){case"member":this.attributesManagerService.getMemberAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"group":this.attributesManagerService.getGroupAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"user":this.attributesManagerService.getUserAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"resource":this.attributesManagerService.getResourceAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"facility":this.attributesManagerService.getFacilityAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1});break;case"vo":this.attributesManagerService.getVoAttributes(this.entityId).subscribe(r=>{this.attributes=r,this.selection.clear(),this.loading=!1})}}applyFilter(r){this.filterValue=r}onCreate(){const r=(0,M.kZ)();r.width="1050px",r.data={entityId:this.entityId,entity:this.entity,notEmptyAttributes:this.attributes,style:this.entity+"-theme"},this.dialog.open(C.n,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const r=(0,M.kZ)();r.width="450px",r.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(i.wA,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}onDelete(){const r=(0,M.kZ)();r.width="450px",r.data={entityId:this.entityId,entity:this.entity,attributes:this.selection.selected},this.dialog.open(v.k,r).afterClosed().subscribe(E=>{E&&this.refreshTable()})}}return u.\u0275fac=function(r){return new(r||u)(t.Y36(o.H8),t.Y36(R.uw))},u.\u0275cmp=t.Xpm({type:u,selectors:[["app-one-entity-attribute-page"]],viewQuery:function(r,b){if(1&r&&t.Gf(I,5),2&r){let E;t.iGM(E=t.CRH())&&(b.list=E.first)}},inputs:{entity:"entity",entityId:"entityId"},decls:13,vars:14,consts:[[1,"mt-2",3,"refresh"],["color","accent","data-cy","add-attributes","mat-flat-button","",1,"mr-2","mt-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","mt-2",3,"disabled","click"],["color","warn","data-cy","remove-attributes","mat-flat-button","",1,"mt-2","mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"attributes","filterValue","selection","tableId"],["list",""]],template:function(r,b){1&r&&(t.TgZ(0,"perun-web-apps-refresh-button",0),t.NdJ("refresh",function(){return b.refreshTable()}),t.qZA(),t.TgZ(1,"button",1),t.NdJ("click",function(){return b.onCreate()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return b.onSave()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"button",3),t.NdJ("click",function(){return b.onDelete()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(x){return b.applyFilter(x)}),t.qZA(),t.YNc(11,_,1,0,"mat-spinner",5),t.YNc(12,d,2,4,"perun-web-apps-attributes-list",6)),2&r&&(t.xp6(2),t.hij(" ",t.lcZ(3,8,"USER_DETAIL.SETTINGS.ATTRIBUTES.CREATE"),"\n"),t.xp6(2),t.Q6J("disabled",0===b.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,10,"USER_DETAIL.SETTINGS.ATTRIBUTES.SAVE"),"\n"),t.xp6(2),t.Q6J("disabled",0===b.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,12,"USER_DETAIL.SETTINGS.ATTRIBUTES.DELETE"),"\n"),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",b.loading),t.xp6(1),t.Q6J("ngIf",!b.loading))},directives:[L.t,f.lW,S.L,m.O5,P.$g,w.p],pipes:[h.X$],styles:[""]}),u})()},19191:(U,D,a)=>{a.d(D,{Y:()=>V});var o=a(32105),M=(a(387),a(20449)),C=a(61365),i=a(9244),v=a(16074),s=a(71103),O=a(64080),t=a(5e3),R=a(48966),L=a(69808),f=a(20773),S=a(98380),m=a(82322),P=a(45703),w=a(42377),h=a(51062);let I=(()=>{class c{constructor(){this.memberSelected=new t.vpe,this.memberFullNameFunction=e=>(0,i.bD)(e.user)}ngOnInit(){this.members=this.members.sort(i.fx)}}return c.\u0275fac=function(e){return new(e||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["perun-web-apps-member-search-select"]],inputs:{members:"members"},outputs:{memberSelected:"memberSelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,n){1&e&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return n.memberSelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e&&t.Q6J("entities",n.members)("searchFunction",n.memberFullNameFunction)("mainTextFunction",n.memberFullNameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.SELECT_MEMBER"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.FIND_MEMBER"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_SEARCH_SELECT.NO_MEMBER_FOUND"))},directives:[w.i],pipes:[h.X$],styles:[""]}),c})(),_=(()=>{class c{constructor(){this.facilitySelected=new t.vpe,this.nameFunction=e=>e.name}ngOnInit(){this.facilities=this.facilities.sort(i.aC)}}return c.\u0275fac=function(e){return new(e||c)},c.\u0275cmp=t.Xpm({type:c,selectors:[["perun-web-apps-facility-search-select"]],inputs:{facilities:"facilities"},outputs:{facilitySelected:"facilitySelected"},decls:4,vars:12,consts:[[3,"entities","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(e,n){1&e&&(t.TgZ(0,"perun-web-apps-entity-search-select",0),t.NdJ("entitySelected",function(T){return n.facilitySelected.emit(T)}),t.ALo(1,"translate"),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e&&t.Q6J("entities",n.facilities)("searchFunction",n.nameFunction)("mainTextFunction",n.nameFunction)("selectPlaceholder",t.lcZ(1,6,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.SELECT_FACILITY"))("findPlaceholder",t.lcZ(2,8,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.FIND_FACILITY"))("noEntriesText",t.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.FACILITY_SEARCH_SELECT.NO_FACILITY_FOUND"))},directives:[w.i],pipes:[h.X$],styles:[""]}),c})();var d=a(74250),A=a(96214),u=a(47423),p=a(7434),r=a(53984);const b=["list"];function E(c,y){1&c&&t._UZ(0,"mat-spinner",4)}function x(c,y){if(1&c&&(t.TgZ(0,"perun-web-apps-alert",5),t._uU(1),t.qZA()),2&c){const e=t.oxw();t.xp6(1),t.Oqu(e.noEntityMessage)}}function Z(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",18),t.NdJ("groupSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("firstSelectedGroup",e.specificSecondEntity)("displayStatus",!0)("groups",e.entityValues)}}function B(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-resource-search-select",19),t.NdJ("resourceSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("resources",e.entityValues)}}function N(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-member-search-select",20),t.NdJ("memberSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("members",e.entityValues)}}function F(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-facility-search-select",21),t.NdJ("facilitySelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("facilities",e.entityValues)}}function J(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"perun-web-apps-user-search-select",22),t.NdJ("userSelected",function(l){return t.CHM(e),t.oxw(2).specifySecondEntity(l)}),t.qZA()}if(2&c){const e=t.oxw(2);t.Q6J("users",e.entityValues)}}function W(c,y){1&c&&t._UZ(0,"mat-spinner",4)}function K(c,y){if(1&c&&t._UZ(0,"perun-web-apps-attributes-list",23,24),2&c){const e=t.oxw(2);t.Q6J("attributes",e.attributes)("filterValue",e.filterValue)("selection",e.selection)}}function Y(c,y){if(1&c){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",6),t.YNc(2,Z,1,3,"perun-web-apps-group-search-select",7),t.YNc(3,B,1,1,"perun-web-apps-resource-search-select",8),t.YNc(4,N,1,1,"perun-web-apps-member-search-select",9),t.YNc(5,F,1,1,"perun-web-apps-facility-search-select",10),t.YNc(6,J,1,1,"perun-web-apps-user-search-select",11),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",12),t.NdJ("refresh",function(){t.CHM(e);const l=t.oxw();return l.getAttributes(l.specificSecondEntity.id)}),t.qZA(),t.TgZ(8,"button",13),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onAdd(l.specificSecondEntity.id)}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",14),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onSave(l.specificSecondEntity.id)}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",15),t.NdJ("click",function(){t.CHM(e);const l=t.oxw();return l.onDelete(l.specificSecondEntity.id)}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"perun-web-apps-immediate-filter",16),t.NdJ("filter",function(l){return t.CHM(e),t.oxw().applyFilter(l)}),t.qZA(),t.YNc(18,W,1,0,"mat-spinner",1),t.YNc(19,K,2,3,"perun-web-apps-attributes-list",17),t.qZA()}if(2&c){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","group"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","resource"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","member"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","facility"===e.secondEntity),t.xp6(1),t.Q6J("ngIf","user"===e.secondEntity),t.xp6(3),t.hij(" ",t.lcZ(10,13,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.CREATE")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(16,17,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.DELETE")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.FILTER"),t.xp6(1),t.Q6J("ngIf",e.innerLoading),t.xp6(1),t.Q6J("ngIf",!e.innerLoading)}}let V=(()=>{class c{constructor(e,n,l,T,Q,k){this.attributesManagerService=e,this.resourcesManagerService=n,this.facilitiesManagerService=l,this.groupsManagerService=T,this.membersManager=Q,this.dialog=k,this.entityValues=[],this.attributes=[],this.selection=new M.Ov(!0,[]),this.allowedStatuses=["INVALID","VALID"],this.loading=!1,this.innerLoading=!1,this.filterValue=""}ngOnInit(){this.loadEntityValues(),this.setMessages(this.secondEntity.toLowerCase())}loadEntityValues(){switch(this.loading=!0,this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.resourcesManagerService.getAssignedResourcesWithStatus(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>n.enrichedResource.resource),this.preselectEntity(),this.loading=!1});break;case"group":this.groupsManagerService.getMemberGroups(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.resourcesManagerService.getResourceAssignments(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>{const l=n.enrichedResource.resource;return l.status=n.status,l}),this.preselectEntity(),this.loading=!1});break;case"member":this.membersManager.getCompleteRichMembersForGroup(this.firstEntityId,!1,this.allowedStatuses,null,[O.r.MEMBER_CORE_ID]).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}break;case"user":this.facilitiesManagerService.getAssignedFacilitiesByUser(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1});break;case"resource":switch(this.secondEntity){case"member":this.resourcesManagerService.getAssignedMembersWithStatus(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>n.richMember),this.preselectEntity(),this.loading=!1});break;case"group":this.resourcesManagerService.getGroupAssignments(this.firstEntityId).subscribe(e=>{this.entityValues=e.map(n=>{const l=n.enrichedGroup.group;return l.status=n.status,l}),this.preselectEntity(),this.loading=!1})}break;case"facility":this.facilitiesManagerService.getAssignedUsers(this.firstEntityId).subscribe(e=>{this.entityValues=e,this.preselectEntity(),this.loading=!1})}}preselectEntity(){0!==this.entityValues.length&&this.findInitiallySelectedEntity()}findInitiallySelectedEntity(){let e=this.entityValues[0];const n=(0,i.vL)(this.entityKey());if(n)for(const l of this.entityValues)if(l.id===n[0]){e=l;break}this.specifySecondEntity(e)}entityKey(){return"group"===this.secondEntity?"groups":""}getAttributes(e){switch(this.innerLoading=!0,this.selection.clear(),this.firstEntity){case"member":switch(this.secondEntity){case"resource":this.attributesManagerService.getMemberResourceAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"group":this.attributesManagerService.getMemberGroupAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"group":switch(this.secondEntity){case"resource":this.attributesManagerService.getGroupResourceAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"member":this.attributesManagerService.getMemberGroupAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"user":this.attributesManagerService.getUserFacilityAttributes(this.firstEntityId,e).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"resource":switch(this.secondEntity){case"member":this.attributesManagerService.getMemberResourceAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1});break;case"group":this.attributesManagerService.getGroupResourceAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}break;case"facility":this.attributesManagerService.getUserFacilityAttributes(e,this.firstEntityId).subscribe(n=>{this.attributes=n,this.innerLoading=!1})}}setMessages(e){this.noEntityMessage=`No ${e} assigned`}onSave(e){this.list.updateMapAttributes();const n=(0,i.kZ)();n.width="450px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,attributes:this.selection.selected},this.dialog.open(v.wA,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}onDelete(e){const n=(0,i.kZ)();n.width="450px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,attributes:this.selection.selected,theme:`${this.firstEntity}-theme`},this.dialog.open(C.k,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}onAdd(e){const n=(0,i.kZ)();n.width="1050px",n.data={entityId:this.firstEntityId,entity:this.firstEntity,secondEntity:this.secondEntity,secondEntityId:e,notEmptyAttributes:this.attributes,style:`${this.firstEntity}-theme`},this.dialog.open(s.n,n).afterClosed().subscribe(T=>{T&&(this.selection.clear(),this.getAttributes(e))})}specifySecondEntity(e){e&&(this.specificSecondEntity=e,this.getAttributes(this.specificSecondEntity.id))}applyFilter(e){this.filterValue=e}}return c.\u0275fac=function(e){return new(e||c)(t.Y36(o.H8),t.Y36(o.xk),t.Y36(o.IQ),t.Y36(o.ff),t.Y36(o.uq),t.Y36(R.uw))},c.\u0275cmp=t.Xpm({type:c,selectors:[["app-two-entity-attribute-page"]],viewQuery:function(e,n){if(1&e&&t.Gf(b,5),2&e){let l;t.iGM(l=t.CRH())&&(n.list=l.first)}},inputs:{firstEntityId:"firstEntityId",firstEntity:"firstEntity",secondEntity:"secondEntity"},decls:4,vars:3,consts:[[1,"mt-3"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"flex-row"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected",4,"ngIf"],[3,"resources","resourceSelected",4,"ngIf"],[3,"members","memberSelected",4,"ngIf"],[3,"facilities","facilitySelected",4,"ngIf"],[3,"users","userSelected",4,"ngIf"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"attributes","filterValue","selection",4,"ngIf"],[3,"firstSelectedGroup","displayStatus","groups","groupSelected"],[3,"resources","resourceSelected"],[3,"members","memberSelected"],[3,"facilities","facilitySelected"],[3,"users","userSelected"],[3,"attributes","filterValue","selection"],["list",""]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.YNc(1,E,1,0,"mat-spinner",1),t.YNc(2,x,2,1,"perun-web-apps-alert",2),t.YNc(3,Y,20,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",n.loading),t.xp6(1),t.Q6J("ngIf",0===n.entityValues.length&&!n.loading),t.xp6(1),t.Q6J("ngIf",0!==n.entityValues.length))},directives:[L.O5,f.$g,S.w,m.h,P.L,I,_,d.S,A.t,u.lW,p.L,r.p],pipes:[h.X$],styles:[".w-35[_ngcontent-%COMP%]{width:35%}"]}),c})()},71135:(U,D,a)=>{a.d(D,{L:()=>L});var o=a(5e3),g=a(48966),M=a(11735),C=a(69808),i=a(90508),v=a(25245),s=a(64597),O=a(51062);function t(f,S){if(1&f&&(o.TgZ(0,"div",3),o.TgZ(1,"a",4),o.ALo(2,"multiWordDataCy"),o.ALo(3,"translate"),o._UZ(4,"mat-icon",5),o._uU(5),o.ALo(6,"translate"),o.qZA(),o.qZA()),2&f){const m=S.$implicit;o.xp6(1),o.Gre("",m.style," item-itself"),o.Q6J("routerLink",m.url),o.uIk("data-cy",o.lcZ(2,7,o.lcZ(3,9,m.label))),o.xp6(3),o.Q6J("svgIcon",m.cssIcon),o.xp6(1),o.hij(" ",o.lcZ(6,11,m.label)," ")}}function R(f,S){if(1&f&&(o.TgZ(0,"div",1),o.YNc(1,t,7,13,"div",2),o.qZA()),2&f){const m=o.oxw();o.xp6(1),o.Q6J("ngForOf",m.items)}}let L=(()=>{class f{constructor(m,P){this.dialog=m,this.route=P,this.size="large"}ngOnInit(){this.route.params.subscribe(m=>{this.voId=Number(m.voId)})}}return f.\u0275fac=function(m){return new(m||f)(o.Y36(g.uw),o.Y36(M.gz))},f.\u0275cmp=o.Xpm({type:f,selectors:[["perun-web-apps-menu-buttons-field"]],inputs:{items:"items",size:"size"},decls:1,vars:1,consts:[["class","items-container",4,"ngIf"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink"],[1,"item-pic","perun-icon",3,"svgIcon"]],template:function(m,P){1&m&&o.YNc(0,R,2,1,"div",0),2&m&&o.Q6J("ngIf","small"===P.size)},directives:[C.O5,C.sg,i.wG,M.yS,v.Hw],pipes:[s.R,O.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;align-items:center;font-size:1.25rem}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}"]}),f})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/417.e549ef1f1f337e2f.js b/dist/apps/admin-gui/417.e549ef1f1f337e2f.js deleted file mode 100644 index 6a25e5edf..000000000 --- a/dist/apps/admin-gui/417.e549ef1f1f337e2f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[417],{89397:function(w,I){!function(o){"use strict";function c(H,K){return K.forEach(function(lt){lt&&"string"!=typeof lt&&!Array.isArray(lt)&&Object.keys(lt).forEach(function(it){if("default"!==it&&!(it in H)){var z=Object.getOwnPropertyDescriptor(lt,it);Object.defineProperty(H,it,z.get?z:{enumerable:!0,get:function(){return lt[it]}})}})}),Object.freeze(H)}var it,lt,x={exports:{}};it="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,lt=function(z){var Ct,It,E=void 0!==(z=z||{})?z:{};E.ready=new Promise(function(b,M){Ct=b,It=M});var Ht,Rt={};for(Ht in E)E.hasOwnProperty(Ht)&&(Rt[Ht]=E[Ht]);var Nt,Qt,ne="./this.program",vt="";"undefined"!=typeof document&&document.currentScript&&(vt=document.currentScript.src),it&&(vt=it),vt=0!==vt.indexOf("blob:")?vt.substr(0,vt.replace(/[?#].*/,"").lastIndexOf("/")+1):"",Nt=function(b){var M=new XMLHttpRequest;return M.open("GET",b,!1),M.send(null),M.responseText},Qt=function(b,M,B){var j=new XMLHttpRequest;j.open("GET",b,!0),j.responseType="arraybuffer",j.onload=function(){200==j.status||0==j.status&&j.response?M(j.response):B()},j.onerror=B,j.send(null)};var Be,ge=E.print||console.log.bind(console),ye=E.printErr||console.warn.bind(console);for(Ht in Rt)Rt.hasOwnProperty(Ht)&&(E[Ht]=Rt[Ht]);Rt=null,E.thisProgram&&(ne=E.thisProgram),E.wasmBinary&&(Be=E.wasmBinary),"object"!=typeof WebAssembly&&Ln("no native wasm support detected");var vn,Re=!1;function mn(b,M){b||Ln("Assertion failed: "+M)}var je,wn,In,ze,ci,Ve="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function Ce(b,M,B){for(var j=M+B,ct=M;b[ct]&&!(ct>=j);)++ct;if(ct-M>16&&b.subarray&&Ve)return Ve.decode(b.subarray(M,ct));for(var xt="";M>10,56320|1023&De)}}else xt+=String.fromCharCode((31&kt)<<6|Pt)}else xt+=String.fromCharCode(kt)}return xt}function Ae(b,M){return b?Ce(In,b,M):""}function Yn(b,M,B,j){if(!(j>0))return 0;for(var ct=B,xt=B+j-1,kt=0;kt=55296&&Pt<=57343&&(Pt=65536+((1023&Pt)<<10)|1023&b.charCodeAt(++kt)),Pt<=127){if(B>=xt)break;M[B++]=Pt}else if(Pt<=2047){if(B+1>=xt)break;M[B++]=192|Pt>>6,M[B++]=128|63&Pt}else if(Pt<=65535){if(B+2>=xt)break;M[B++]=224|Pt>>12,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}else{if(B+3>=xt)break;M[B++]=240|Pt>>18,M[B++]=128|Pt>>12&63,M[B++]=128|Pt>>6&63,M[B++]=128|63&Pt}}return M[B]=0,B-ct}function ni(b){for(var M=0,B=0;B=55296&&j<=57343&&(j=65536+((1023&j)<<10)|1023&b.charCodeAt(++B)),j<=127?++M:M+=j<=2047?2:j<=65535?3:4}return M}function sn(b,M){return b%M>0&&(b+=M-b%M),b}function Mn(b){je=b,E.HEAP8=wn=new Int8Array(b),E.HEAP16=new Int16Array(b),E.HEAP32=ze=new Int32Array(b),E.HEAPU8=In=new Uint8Array(b),E.HEAPU16=new Uint16Array(b),E.HEAPU32=new Uint32Array(b),E.HEAPF32=new Float32Array(b),E.HEAPF64=ci=new Float64Array(b)}var Tn,Hn=[],Kn=[],Ne=[];var _e=0,Ue=null;function nn(b){_e++,E.monitorRunDependencies&&E.monitorRunDependencies(_e)}function Zn(b){if(_e--,E.monitorRunDependencies&&E.monitorRunDependencies(_e),0==_e&&Ue){var M=Ue;Ue=null,M()}}function Ln(b){E.onAbort&&E.onAbort(b),ye(b="Aborted("+b+")"),Re=!0,b+=". Build with -s ASSERTIONS=1 for more info.";var M=new WebAssembly.RuntimeError(b);throw It(M),M}E.preloadedImages={},E.preloadedAudios={};var gn;function Di(b){return b.startsWith("data:application/octet-stream;base64,")}function ti(b){try{if(b==gn&&Be)return new Uint8Array(Be);throw"both async and sync fetching of the wasm failed"}catch(M){Ln(M)}}Di(gn="expatlib.wasm")||(gn=function ft(b){return E.locateFile?E.locateFile(b,vt):vt+b}(gn));var un,yn,ei={11694:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("startElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.";M.startElement()},11912:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("endElement"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.";M.endElement()},12124:function(b){var M=E.getCache(E.CExpatJS)[b];if(!M.hasOwnProperty("characterData"))throw"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.";M.characterData()}};function ui(b){for(;b.length>0;){var M=b.shift();if("function"!=typeof M){var B=M.func;"number"==typeof B?void 0===M.arg?Nn(B)():Nn(B)(M.arg):B(void 0===M.arg?null:M.arg)}else M(E)}}function Nn(b){return Tn.get(b)}var Le={splitPath:function(b){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(b).slice(1)},normalizeArray:function(b,M){for(var B=0,j=b.length-1;j>=0;j--){var ct=b[j];"."===ct?b.splice(j,1):".."===ct?(b.splice(j,1),B++):B&&(b.splice(j,1),B--)}if(M)for(;B;B--)b.unshift("..");return b},normalize:function(b){var M="/"===b.charAt(0),B="/"===b.substr(-1);return!(b=Le.normalizeArray(b.split("/").filter(function(j){return!!j}),!M).join("/"))&&!M&&(b="."),b&&B&&(b+="/"),(M?"/":"")+b},dirname:function(b){var M=Le.splitPath(b),B=M[0],j=M[1];return B||j?(j&&(j=j.substr(0,j.length-1)),B+j):"."},basename:function(b){if("/"===b)return"/";var M=(b=(b=Le.normalize(b)).replace(/\/$/,"")).lastIndexOf("/");return-1===M?b:b.substr(M+1)},extname:function(b){return Le.splitPath(b)[3]},join:function(){var b=Array.prototype.slice.call(arguments,0);return Le.normalize(b.join("/"))},join2:function(b,M){return Le.normalize(b+"/"+M)}};var Bn={resolve:function(){for(var b="",M=!1,B=arguments.length-1;B>=-1&&!M;B--){var j=B>=0?arguments[B]:D.cwd();if("string"!=typeof j)throw new TypeError("Arguments to path.resolve must be strings");if(!j)return"";b=j+"/"+b,M="/"===j.charAt(0)}return(M?"/":"")+(b=Le.normalizeArray(b.split("/").filter(function(ct){return!!ct}),!M).join("/"))||"."},relative:function(b,M){function B(De){for(var Ge=0;Ge=0&&""===De[Ke];Ke--);return Ge>Ke?[]:De.slice(Ge,Ke-Ge+1)}b=Bn.resolve(b).substr(1),M=Bn.resolve(M).substr(1);for(var j=B(b.split("/")),ct=B(M.split("/")),xt=Math.min(j.length,ct.length),kt=xt,Pt=0;Pt0&&(ge(Ce(b.output,0)),b.output=[])}},default_tty1_ops:{put_char:function(b,M){null===M||10===M?(ye(Ce(b.output,0)),b.output=[]):0!=M&&b.output.push(M)},flush:function(b){b.output&&b.output.length>0&&(ye(Ce(b.output,0)),b.output=[])}}};var X={ops_table:null,mount:function(b){return X.createNode(null,"/",16895,0)},createNode:function(b,M,B,j){if(D.isBlkdev(B)||D.isFIFO(B))throw new D.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:D.chrdev_stream_ops}});var ct=D.createNode(b,M,B,j);return D.isDir(ct.mode)?(ct.node_ops=X.ops_table.dir.node,ct.stream_ops=X.ops_table.dir.stream,ct.contents={}):D.isFile(ct.mode)?(ct.node_ops=X.ops_table.file.node,ct.stream_ops=X.ops_table.file.stream,ct.usedBytes=0,ct.contents=null):D.isLink(ct.mode)?(ct.node_ops=X.ops_table.link.node,ct.stream_ops=X.ops_table.link.stream):D.isChrdev(ct.mode)&&(ct.node_ops=X.ops_table.chrdev.node,ct.stream_ops=X.ops_table.chrdev.stream),ct.timestamp=Date.now(),b&&(b.contents[M]=ct,b.timestamp=ct.timestamp),ct},getFileDataAsTypedArray:function(b){return b.contents?b.contents.subarray?b.contents.subarray(0,b.usedBytes):new Uint8Array(b.contents):new Uint8Array(0)},expandFileStorage:function(b,M){var B=b.contents?b.contents.length:0;if(!(B>=M)){M=Math.max(M,B*(B<1048576?2:1.125)>>>0),0!=B&&(M=Math.max(M,256));var ct=b.contents;b.contents=new Uint8Array(M),b.usedBytes>0&&b.contents.set(ct.subarray(0,b.usedBytes),0)}},resizeFileStorage:function(b,M){if(b.usedBytes!=M)if(0==M)b.contents=null,b.usedBytes=0;else{var B=b.contents;b.contents=new Uint8Array(M),B&&b.contents.set(B.subarray(0,Math.min(M,b.usedBytes))),b.usedBytes=M}},node_ops:{getattr:function(b){var M={};return M.dev=D.isChrdev(b.mode)?b.id:1,M.ino=b.id,M.mode=b.mode,M.nlink=1,M.uid=0,M.gid=0,M.rdev=b.rdev,M.size=D.isDir(b.mode)?4096:D.isFile(b.mode)?b.usedBytes:D.isLink(b.mode)?b.link.length:0,M.atime=new Date(b.timestamp),M.mtime=new Date(b.timestamp),M.ctime=new Date(b.timestamp),M.blksize=4096,M.blocks=Math.ceil(M.size/M.blksize),M},setattr:function(b,M){void 0!==M.mode&&(b.mode=M.mode),void 0!==M.timestamp&&(b.timestamp=M.timestamp),void 0!==M.size&&X.resizeFileStorage(b,M.size)},lookup:function(b,M){throw D.genericErrors[44]},mknod:function(b,M,B,j){return X.createNode(b,M,B,j)},rename:function(b,M,B){if(D.isDir(b.mode)){var j;try{j=D.lookupNode(M,B)}catch(xt){}if(j)for(var ct in j.contents)throw new D.ErrnoError(55)}delete b.parent.contents[b.name],b.parent.timestamp=Date.now(),b.name=B,M.contents[B]=b,M.timestamp=b.parent.timestamp,b.parent=M},unlink:function(b,M){delete b.contents[M],b.timestamp=Date.now()},rmdir:function(b,M){var B=D.lookupNode(b,M);for(var j in B.contents)throw new D.ErrnoError(55);delete b.contents[M],b.timestamp=Date.now()},readdir:function(b){var M=[".",".."];for(var B in b.contents)!b.contents.hasOwnProperty(B)||M.push(B);return M},symlink:function(b,M,B){var j=X.createNode(b,M,41471,0);return j.link=B,j},readlink:function(b){if(!D.isLink(b.mode))throw new D.ErrnoError(28);return b.link}},stream_ops:{read:function(b,M,B,j,ct){var xt=b.node.contents;if(ct>=b.node.usedBytes)return 0;var kt=Math.min(b.node.usedBytes-ct,j);if(kt>8&&xt.subarray)M.set(xt.subarray(ct,ct+kt),B);else for(var Pt=0;Pt0||j+B8)throw new D.ErrnoError(32);for(var ct=Le.normalizeArray(b.split("/").filter(function(Ze){return!!Ze}),!1),xt=D.root,kt="/",Pt=0;Pt40)throw new D.ErrnoError(32)}}return{path:kt,node:xt}},getPath:function(b){for(var M;;){if(D.isRoot(b)){var B=b.mount.mountpoint;return M?"/"!==B[B.length-1]?B+"/"+M:B+M:B}M=M?b.name+"/"+M:b.name,b=b.parent}},hashName:function(b,M){for(var B=0,j=0;j>>0)%D.nameTable.length},hashAddNode:function(b){var M=D.hashName(b.parent.id,b.name);b.name_next=D.nameTable[M],D.nameTable[M]=b},hashRemoveNode:function(b){var M=D.hashName(b.parent.id,b.name);if(D.nameTable[M]===b)D.nameTable[M]=b.name_next;else for(var B=D.nameTable[M];B;){if(B.name_next===b){B.name_next=b.name_next;break}B=B.name_next}},lookupNode:function(b,M){var B=D.mayLookup(b);if(B)throw new D.ErrnoError(B,b);for(var j=D.hashName(b.id,M),ct=D.nameTable[j];ct;ct=ct.name_next)if(ct.parent.id===b.id&&ct.name===M)return ct;return D.lookup(b,M)},createNode:function(b,M,B,j){var ct=new D.FSNode(b,M,B,j);return D.hashAddNode(ct),ct},destroyNode:function(b){D.hashRemoveNode(b)},isRoot:function(b){return b===b.parent},isMountpoint:function(b){return!!b.mounted},isFile:function(b){return 32768==(61440&b)},isDir:function(b){return 16384==(61440&b)},isLink:function(b){return 40960==(61440&b)},isChrdev:function(b){return 8192==(61440&b)},isBlkdev:function(b){return 24576==(61440&b)},isFIFO:function(b){return 4096==(61440&b)},isSocket:function(b){return 49152==(49152&b)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(b){var M=D.flagModes[b];if(void 0===M)throw new Error("Unknown file open mode: "+b);return M},flagsToPermissionString:function(b){var M=["r","w","rw"][3&b];return 512&b&&(M+="w"),M},nodePermissions:function(b,M){return D.ignorePermissions?0:M.includes("r")&&!(292&b.mode)||M.includes("w")&&!(146&b.mode)||M.includes("x")&&!(73&b.mode)?2:0},mayLookup:function(b){return D.nodePermissions(b,"x")||(b.node_ops.lookup?0:2)},mayCreate:function(b,M){try{return D.lookupNode(b,M),20}catch(j){}return D.nodePermissions(b,"wx")},mayDelete:function(b,M,B){var j;try{j=D.lookupNode(b,M)}catch(xt){return xt.errno}var ct=D.nodePermissions(b,"wx");if(ct)return ct;if(B){if(!D.isDir(j.mode))return 54;if(D.isRoot(j)||D.getPath(j)===D.cwd())return 10}else if(D.isDir(j.mode))return 31;return 0},mayOpen:function(b,M){return b?D.isLink(b.mode)?32:D.isDir(b.mode)&&("r"!==D.flagsToPermissionString(M)||512&M)?31:D.nodePermissions(b,D.flagsToPermissionString(M)):44},MAX_OPEN_FDS:4096,nextfd:function(b,M){M=M||D.MAX_OPEN_FDS;for(var B=b=b||0;B<=M;B++)if(!D.streams[B])return B;throw new D.ErrnoError(33)},getStream:function(b){return D.streams[b]},createStream:function(b,M,B){D.FSStream||(D.FSStream=function(){},D.FSStream.prototype={object:{get:function(){return this.node},set:function(kt){this.node=kt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var j=new D.FSStream;for(var ct in b)j[ct]=b[ct];b=j;var xt=D.nextfd(M,B);return b.fd=xt,D.streams[xt]=b,b},closeStream:function(b){D.streams[b]=null},chrdev_stream_ops:{open:function(b){var M=D.getDevice(b.node.rdev);b.stream_ops=M.stream_ops,b.stream_ops.open&&b.stream_ops.open(b)},llseek:function(){throw new D.ErrnoError(70)}},major:function(b){return b>>8},minor:function(b){return 255&b},makedev:function(b,M){return b<<8|M},registerDevice:function(b,M){D.devices[b]={stream_ops:M}},getDevice:function(b){return D.devices[b]},getMounts:function(b){for(var M=[],B=[b];B.length;){var j=B.pop();M.push(j),B.push.apply(B,j.mounts)}return M},syncfs:function(b,M){"function"==typeof b&&(M=b,b=!1),D.syncFSRequests++,D.syncFSRequests>1&&ye("warning: "+D.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var B=D.getMounts(D.root.mount),j=0;function ct(kt){return D.syncFSRequests--,M(kt)}function xt(kt){if(kt)return xt.errored?void 0:(xt.errored=!0,ct(kt));++j>=B.length&&ct(null)}B.forEach(function(kt){if(!kt.type.syncfs)return xt(null);kt.type.syncfs(kt,b,xt)})},mount:function(b,M,B){var xt,j="/"===B,ct=!B;if(j&&D.root)throw new D.ErrnoError(10);if(!j&&!ct){var kt=D.lookupPath(B,{follow_mount:!1});if(B=kt.path,D.isMountpoint(xt=kt.node))throw new D.ErrnoError(10);if(!D.isDir(xt.mode))throw new D.ErrnoError(54)}var Pt={type:b,opts:M,mountpoint:B,mounts:[]},ae=b.mount(Pt);return ae.mount=Pt,Pt.root=ae,j?D.root=ae:xt&&(xt.mounted=Pt,xt.mount&&xt.mount.mounts.push(Pt)),ae},unmount:function(b){var M=D.lookupPath(b,{follow_mount:!1});if(!D.isMountpoint(M.node))throw new D.ErrnoError(28);var B=M.node,j=B.mounted,ct=D.getMounts(j);Object.keys(D.nameTable).forEach(function(kt){for(var Pt=D.nameTable[kt];Pt;){var ae=Pt.name_next;ct.includes(Pt.mount)&&D.destroyNode(Pt),Pt=ae}}),B.mounted=null;var xt=B.mount.mounts.indexOf(j);B.mount.mounts.splice(xt,1)},lookup:function(b,M){return b.node_ops.lookup(b,M)},mknod:function(b,M,B){var ct=D.lookupPath(b,{parent:!0}).node,xt=Le.basename(b);if(!xt||"."===xt||".."===xt)throw new D.ErrnoError(28);var kt=D.mayCreate(ct,xt);if(kt)throw new D.ErrnoError(kt);if(!ct.node_ops.mknod)throw new D.ErrnoError(63);return ct.node_ops.mknod(ct,xt,M,B)},create:function(b,M){return M=void 0!==M?M:438,M&=4095,D.mknod(b,M|=32768,0)},mkdir:function(b,M){return M=void 0!==M?M:511,M&=1023,D.mknod(b,M|=16384,0)},mkdirTree:function(b,M){for(var B=b.split("/"),j="",ct=0;ctthis.length-1||Ze<0)){var We=Ze%this.chunkSize;return this.getter(Ze/this.chunkSize|0)[We]}},xt.prototype.setDataGetter=function(Ze){this.getter=Ze},xt.prototype.cacheLength=function(){var Ze=new XMLHttpRequest;if(Ze.open("HEAD",B,!1),Ze.send(null),!(Ze.status>=200&&Ze.status<300||304===Ze.status))throw new Error("Couldn't load "+B+". Status: "+Ze.status);var An,We=Number(Ze.getResponseHeader("Content-length")),di=(An=Ze.getResponseHeader("Accept-Ranges"))&&"bytes"===An,rr=(An=Ze.getResponseHeader("Content-Encoding"))&&"gzip"===An,Li=1048576;di||(Li=We);var ii=this;ii.setDataGetter(function(Mi){var ar=Mi*Li,si=(Mi+1)*Li-1;if(si=Math.min(si,We-1),void 0===ii.chunks[Mi]&&(ii.chunks[Mi]=function(Mi,ar){if(Mi>ar)throw new Error("invalid range ("+Mi+", "+ar+") or no bytes requested!");if(ar>We-1)throw new Error("only "+We+" bytes available! programmer error!");var si=new XMLHttpRequest;if(si.open("GET",B,!1),We!==Li&&si.setRequestHeader("Range","bytes="+Mi+"-"+ar),"undefined"!=typeof Uint8Array&&(si.responseType="arraybuffer"),si.overrideMimeType&&si.overrideMimeType("text/plain; charset=x-user-defined"),si.send(null),!(si.status>=200&&si.status<300||304===si.status))throw new Error("Couldn't load "+B+". Status: "+si.status);return void 0!==si.response?new Uint8Array(si.response||[]):ve(si.responseText||"",!0)}(ar,si)),void 0===ii.chunks[Mi])throw new Error("doXHR failed!");return ii.chunks[Mi]}),(rr||!We)&&(Li=We=1,We=this.getter(0).length,Li=We,ge("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=We,this._chunkSize=Li,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Pt,ae=D.createFile(b,M,Pt={isDevice:!1,url:B},j,ct);Pt.contents?ae.contents=Pt.contents:Pt.url&&(ae.contents=null,ae.url=Pt.url),Object.defineProperties(ae,{usedBytes:{get:function(){return this.contents.length}}});var De={};return Object.keys(ae.stream_ops).forEach(function(Ke){var Ze=ae.stream_ops[Ke];De[Ke]=function(){return D.forceLoadFile(ae),Ze.apply(null,arguments)}}),De.read=function(Ze,We,An,di,rr){D.forceLoadFile(ae);var Li=Ze.node.contents;if(rr>=Li.length)return 0;var fi=Math.min(Li.length-rr,di);if(Li.slice)for(var ii=0;ii>2]=j.dev,ze[B+4>>2]=0,ze[B+8>>2]=j.ino,ze[B+12>>2]=j.mode,ze[B+16>>2]=j.nlink,ze[B+20>>2]=j.uid,ze[B+24>>2]=j.gid,ze[B+28>>2]=j.rdev,ze[B+32>>2]=0,yn=[j.size>>>0,(un=j.size,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+40>>2]=yn[0],ze[B+44>>2]=yn[1],ze[B+48>>2]=4096,ze[B+52>>2]=j.blocks,ze[B+56>>2]=j.atime.getTime()/1e3|0,ze[B+60>>2]=0,ze[B+64>>2]=j.mtime.getTime()/1e3|0,ze[B+68>>2]=0,ze[B+72>>2]=j.ctime.getTime()/1e3|0,ze[B+76>>2]=0,yn=[j.ino>>>0,(un=j.ino,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[B+80>>2]=yn[0],ze[B+84>>2]=yn[1],0},doMsync:function(b,M,B,j,ct){var xt=In.slice(b,b+B);D.msync(M,xt,ct,B,j)},doMkdir:function(b,M){return"/"===(b=Le.normalize(b))[b.length-1]&&(b=b.substr(0,b.length-1)),D.mkdir(b,M,0),0},doMknod:function(b,M,B){switch(61440&M){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return D.mknod(b,M,B),0},doReadlink:function(b,M,B){if(B<=0)return-28;var j=D.readlink(b),ct=Math.min(B,ni(j)),xt=wn[M+ct];return function Wn(b,M,B){return Yn(b,In,M,B)}(j,M,B+1),wn[M+ct]=xt,ct},doAccess:function(b,M){if(-8&M)return-28;var j=D.lookupPath(b,{follow:!0}).node;if(!j)return-44;var ct="";return 4&M&&(ct+="r"),2&M&&(ct+="w"),1&M&&(ct+="x"),ct&&D.nodePermissions(j,ct)?-2:0},doDup:function(b,M,B){var j=D.getStream(B);return j&&D.close(j),D.open(b,M,0,B,B).fd},doReadv:function(b,M,B,j){for(var ct=0,xt=0;xt>2],ae=D.read(b,wn,ze[M+8*xt>>2],Pt,j);if(ae<0)return-1;if(ct+=ae,ae>2],ze[M+(8*xt+4)>>2],j);if(ae<0)return-1;ct+=ae}return ct},varargs:void 0,get:function(){return At.varargs+=4,ze[At.varargs-4>>2]},getStr:function(b){return Ae(b)},getStreamFromFD:function(b){var M=D.getStream(b);if(!M)throw new D.ErrnoError(8);return M},get64:function(b,M){return b}};var Yt=[];function pt(b){try{return vn.grow(b-je.byteLength+65535>>>16),Mn(vn.buffer),1}catch(M){}}var wt={};function te(){if(!te.strings){var M={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ne||"./this.program"};for(var B in wt)void 0===wt[B]?delete M[B]:M[B]=wt[B];var j=[];for(var B in M)j.push(B+"="+M[B]);te.strings=j}return te.strings}var He=function(b,M,B,j){b||(b=this),this.parent=b,this.mount=b.mount,this.mounted=null,this.id=D.nextInode++,this.name=M,this.mode=B,this.node_ops={},this.stream_ops={},this.rdev=j};function ve(b,M,B){var j=B>0?B:ni(b)+1,ct=new Array(j),xt=Yn(b,ct,0,ct.length);return M&&(ct.length=xt),ct}Object.defineProperties(He.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(b){b?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(b){b?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return D.isDir(this.mode)}},isDevice:{get:function(){return D.isChrdev(this.mode)}}}),D.FSNode=He,D.staticInit();var Qe={h:function Ot(b,M,B){At.varargs=B;try{var j=At.getStr(b),ct=B?At.get():0;return D.open(j,M,ct).fd}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return-kt.errno}},b:function Bt(){Ln("")},a:function qt(b,M,B){var j=function re(b,M){var B;for(Yt.length=0,M>>=2;B=In[b++];){var j=B<105;j&&1&M&&M++,Yt.push(j?ci[M++>>1]:ze[M]),++M}return Yt}(M,B);return ei[b].apply(null,j)},k:function q(b,M,B){In.copyWithin(b,M,M+B)},e:function bt(b){var M=In.length,B=2147483648;if((b>>>=0)>B)return!1;for(var j=1;j<=4;j*=2){var ct=M*(1+.2/j);if(ct=Math.min(ct,b+100663296),pt(Math.min(B,sn(Math.max(b,ct),65536))))return!0}return!1},f:function Dt(b,M){var B=0;return te().forEach(function(j,ct){var xt=M+B;ze[b+4*ct>>2]=xt,function xn(b,M,B){for(var j=0;j>0]=b.charCodeAt(j);B||(wn[M>>0]=0)}(j,xt),B+=j.length+1}),0},g:function he(b,M){var B=te();ze[b>>2]=B.length;var j=0;return B.forEach(function(ct){j+=ct.length+1}),ze[M>>2]=j,0},d:function N(b){try{var M=At.getStreamFromFD(b);return D.close(M),0}catch(B){if(void 0===D||!(B instanceof D.ErrnoError))throw B;return B.errno}},i:function le(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doReadv(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},j:function ke(b,M,B,j,ct){try{var xt=At.getStreamFromFD(b),Pt=4294967296*B+(M>>>0),ae=9007199254740992;return Pt<=-ae||Pt>=ae?-61:(D.llseek(xt,Pt,j),yn=[xt.position>>>0,(un=xt.position,+Math.abs(un)>=1?un>0?(0|Math.min(+Math.floor(un/4294967296),4294967295))>>>0:~~+Math.ceil((un-+(~~un>>>0))/4294967296)>>>0:0)],ze[ct>>2]=yn[0],ze[ct+4>>2]=yn[1],xt.getdents&&0===Pt&&0===j&&(xt.getdents=null),0)}catch(De){if(void 0===D||!(De instanceof D.ErrnoError))throw De;return De.errno}},c:function Oe(b,M,B,j){try{var ct=At.getStreamFromFD(b),xt=At.doWritev(ct,M,B);return ze[j>>2]=xt,0}catch(kt){if(void 0===D||!(kt instanceof D.ErrnoError))throw kt;return kt.errno}},l:function rn(b){var M=Date.now();return ze[b>>2]=M/1e3|0,ze[b+4>>2]=M%1e3*1e3|0,0}};(function On(){var b={a:Qe};function M(kt,Pt){E.asm=kt.exports,Mn((vn=E.asm.m).buffer),Tn=E.asm.G,function se(b){Kn.unshift(b)}(E.asm.n),Zn()}function B(kt){M(kt.instance)}function j(kt){return function wi(){return Be||"function"!=typeof fetch?Promise.resolve().then(function(){return ti(gn)}):fetch(gn,{credentials:"same-origin"}).then(function(b){if(!b.ok)throw"failed to load wasm binary file at '"+gn+"'";return b.arrayBuffer()}).catch(function(){return ti(gn)})}().then(function(Pt){return WebAssembly.instantiate(Pt,b)}).then(function(Pt){return Pt}).then(kt,function(Pt){ye("failed to asynchronously prepare wasm: "+Pt),Ln(Pt)})}if(nn(),E.instantiateWasm)try{return E.instantiateWasm(b,M)}catch(kt){return ye("Module.instantiateWasm callback failed with error: "+kt),!1}return function ct(){return Be||"function"!=typeof WebAssembly.instantiateStreaming||Di(gn)||"function"!=typeof fetch?j(B):fetch(gn,{credentials:"same-origin"}).then(function(kt){return WebAssembly.instantiateStreaming(kt,b).then(B,function(ae){return ye("wasm streaming compile failed: "+ae),ye("falling back to ArrayBuffer instantiation"),j(B)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.n).apply(null,arguments)};var Fn,et=E._emscripten_bind_CExpat_CExpat_0=function(){return(et=E._emscripten_bind_CExpat_CExpat_0=E.asm.o).apply(null,arguments)},gt=E._emscripten_bind_CExpat_version_0=function(){return(gt=E._emscripten_bind_CExpat_version_0=E.asm.p).apply(null,arguments)},mt=E._emscripten_bind_CExpat_create_0=function(){return(mt=E._emscripten_bind_CExpat_create_0=E.asm.q).apply(null,arguments)},St=E._emscripten_bind_CExpat_destroy_0=function(){return(St=E._emscripten_bind_CExpat_destroy_0=E.asm.r).apply(null,arguments)},zt=E._emscripten_bind_CExpat_parse_1=function(){return(zt=E._emscripten_bind_CExpat_parse_1=E.asm.s).apply(null,arguments)},ee=E._emscripten_bind_CExpat_tag_0=function(){return(ee=E._emscripten_bind_CExpat_tag_0=E.asm.t).apply(null,arguments)},Jt=E._emscripten_bind_CExpat_attrs_0=function(){return(Jt=E._emscripten_bind_CExpat_attrs_0=E.asm.u).apply(null,arguments)},pe=E._emscripten_bind_CExpat_content_0=function(){return(pe=E._emscripten_bind_CExpat_content_0=E.asm.v).apply(null,arguments)},xe=E._emscripten_bind_CExpat_startElement_0=function(){return(xe=E._emscripten_bind_CExpat_startElement_0=E.asm.w).apply(null,arguments)},Wt=E._emscripten_bind_CExpat_endElement_0=function(){return(Wt=E._emscripten_bind_CExpat_endElement_0=E.asm.x).apply(null,arguments)},oe=E._emscripten_bind_CExpat_characterData_0=function(){return(oe=E._emscripten_bind_CExpat_characterData_0=E.asm.y).apply(null,arguments)},Ie=E._emscripten_bind_CExpat___destroy___0=function(){return(Ie=E._emscripten_bind_CExpat___destroy___0=E.asm.z).apply(null,arguments)},Me=E._emscripten_bind_VoidPtr___destroy___0=function(){return(Me=E._emscripten_bind_VoidPtr___destroy___0=E.asm.A).apply(null,arguments)},Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Ye=E._emscripten_bind_CExpatJS_CExpatJS_0=E.asm.B).apply(null,arguments)},$n=E._emscripten_bind_CExpatJS_startElement_0=function(){return($n=E._emscripten_bind_CExpatJS_startElement_0=E.asm.C).apply(null,arguments)},En=E._emscripten_bind_CExpatJS_endElement_0=function(){return(En=E._emscripten_bind_CExpatJS_endElement_0=E.asm.D).apply(null,arguments)},Sn=E._emscripten_bind_CExpatJS_characterData_0=function(){return(Sn=E._emscripten_bind_CExpatJS_characterData_0=E.asm.E).apply(null,arguments)},we=E._emscripten_bind_CExpatJS___destroy___0=function(){return(we=E._emscripten_bind_CExpatJS___destroy___0=E.asm.F).apply(null,arguments)};function Qn(b){function M(){Fn||(Fn=!0,E.calledRun=!0,!Re&&(function jn(){!E.noFSInit&&!D.init.initialized&&D.init(),D.ignorePermissions=!1,ui(Kn)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function yt(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)b=E.postRun.shift(),Ne.unshift(b);var b;ui(Ne)}()))}_e>0||(function Xn(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)b=E.preRun.shift(),Hn.unshift(b);var b;ui(Hn)}(),_e>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),M()},1)):M())}if(E._malloc=function(){return(E._malloc=E.asm.H).apply(null,arguments)},Ue=function b(){Fn||Qn(),Fn||(Ue=b)},E.run=Qn,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function on(){}function ln(b){return(b||on).__cache__}function Un(b,M){var B=ln(M),j=B[b];return j||((j=Object.create((M||on).prototype)).ptr=b,B[b]=j)}Qn(),(on.prototype=Object.create(on.prototype)).constructor=on,on.prototype.__class__=on,on.__cache__={},E.WrapperObject=on,E.getCache=ln,E.wrapPointer=Un,E.castObject=function Vi(b,M){return Un(b.ptr,M)},E.NULL=Un(0),E.destroy=function hi(b){if(!b.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";b.__destroy__(),delete ln(b.__class__)[b.ptr]},E.compare=function zi(b,M){return b.ptr===M.ptr},E.getPointer=function Jn(b){return b.ptr},E.getClass=function Ai(b){return b.__class__};var cn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(cn.needed){for(var b=0;b=cn.size?(mn(j>0),cn.needed+=j,ct=E._malloc(j),cn.temps.push(ct)):(ct=cn.buffer+cn.pos,cn.pos+=j),ct},copy:function(b,M,B){switch(B>>>=0,M.BYTES_PER_ELEMENT){case 2:B>>>=1;break;case 4:B>>>=2;break;case 8:B>>>=3}for(var ct=0;ct=$);)++dt;if(dt-L>16&&y.subarray&&ni)return ni.decode(y.subarray(L,dt));for(var Et="";L>10,56320|1023&Xe)}}else Et+=String.fromCharCode((31&Lt)<<6|Vt)}else Et+=String.fromCharCode(Lt)}return Et}function sn(y,L){return y?xn(Hn,y,L):""}function je(y,L,Z,$){if(!($>0))return 0;for(var dt=Z,Et=Z+$-1,Lt=0;Lt=55296&&Vt<=57343&&(Vt=65536+((1023&Vt)<<10)|1023&y.charCodeAt(++Lt)),Vt<=127){if(Z>=Et)break;L[Z++]=Vt}else if(Vt<=2047){if(Z+1>=Et)break;L[Z++]=192|Vt>>6,L[Z++]=128|63&Vt}else if(Vt<=65535){if(Z+2>=Et)break;L[Z++]=224|Vt>>12,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}else{if(Z+3>=Et)break;L[Z++]=240|Vt>>18,L[Z++]=128|Vt>>12&63,L[Z++]=128|Vt>>6&63,L[Z++]=128|63&Vt}}return L[Z]=0,Z-dt}function In(y){for(var L=0,Z=0;Z=55296&&$<=57343&&($=65536+((1023&$)<<10)|1023&y.charCodeAt(++Z)),$<=127?++L:L+=$<=2047?2:$<=65535?3:4}return L}function ci(y,L){return y%L>0&&(y+=L-y%L),y}function jn(y){Mn=y,E.HEAP8=Tn=new Int8Array(y),E.HEAP16=Kn=new Int16Array(y),E.HEAP32=Ne=new Int32Array(y),E.HEAPU8=Hn=new Uint8Array(y),E.HEAPU16=new Uint16Array(y),E.HEAPU32=new Uint32Array(y),E.HEAPF32=new Float32Array(y),E.HEAPF64=Xn=new Float64Array(y)}var yt,Gt=[],se=[],de=[];var gn=0,ti=null;function On(y){gn++,E.monitorRunDependencies&&E.monitorRunDependencies(gn)}function un(y){if(gn--,E.monitorRunDependencies&&E.monitorRunDependencies(gn),0==gn&&ti){var L=ti;ti=null,L()}}function yn(y){E.onAbort&&E.onAbort(y),Be(y="Aborted("+y+")"),Yn=!0,y+=". Build with -s ASSERTIONS=1 for more info.";var L=new WebAssembly.RuntimeError(y);throw It(L),L}E.preloadedImages={},E.preloadedAudios={};var Nn;function ui(y){return y.startsWith("data:application/octet-stream;base64,")}function Le(y){try{if(y==Nn&&Ve)return new Uint8Array(Ve);throw"both async and sync fetching of the wasm failed"}catch(L){yn(L)}}ui(Nn="graphvizlib.wasm")||(Nn=function Nt(y){return E.locateFile?E.locateFile(y,ft):ft+y}(Nn));var fn,G,At,X={161580:function(y,L){var Z=sn(y),$=sn(L);N.createPath("/",qt.dirname(Z)),N.writeFile(qt.join("/",Z),$)}};function ht(y){for(;y.length>0;){var L=y.shift();if("function"!=typeof L){var Z=L.func;"number"==typeof Z?void 0===L.arg?D(Z)():D(Z)(L.arg):Z(void 0===L.arg?null:L.arg)}else L(E)}}function D(y){return yt.get(y)}At=function(){return performance.now()};function Bt(y){return Ne[kt()>>2]=y,y}var qt={splitPath:function(y){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(y).slice(1)},normalizeArray:function(y,L){for(var Z=0,$=y.length-1;$>=0;$--){var dt=y[$];"."===dt?y.splice($,1):".."===dt?(y.splice($,1),Z++):Z&&(y.splice($,1),Z--)}if(L)for(;Z;Z--)y.unshift("..");return y},normalize:function(y){var L="/"===y.charAt(0),Z="/"===y.substr(-1);return!(y=qt.normalizeArray(y.split("/").filter(function($){return!!$}),!L).join("/"))&&!L&&(y="."),y&&Z&&(y+="/"),(L?"/":"")+y},dirname:function(y){var L=qt.splitPath(y),Z=L[0],$=L[1];return Z||$?($&&($=$.substr(0,$.length-1)),Z+$):"."},basename:function(y){if("/"===y)return"/";var L=(y=(y=qt.normalize(y)).replace(/\/$/,"")).lastIndexOf("/");return-1===L?y:y.substr(L+1)},extname:function(y){return qt.splitPath(y)[3]},join:function(){var y=Array.prototype.slice.call(arguments,0);return qt.normalize(y.join("/"))},join2:function(y,L){return qt.normalize(y+"/"+L)}};var pt={resolve:function(){for(var y="",L=!1,Z=arguments.length-1;Z>=-1&&!L;Z--){var $=Z>=0?arguments[Z]:N.cwd();if("string"!=typeof $)throw new TypeError("Arguments to path.resolve must be strings");if(!$)return"";y=$+"/"+y,L="/"===$.charAt(0)}return(L?"/":"")+(y=qt.normalizeArray(y.split("/").filter(function(dt){return!!dt}),!L).join("/"))||"."},relative:function(y,L){function Z(Xe){for(var hn=0;hn=0&&""===Xe[bn];bn--);return hn>bn?[]:Xe.slice(hn,bn-hn+1)}y=pt.resolve(y).substr(1),L=pt.resolve(L).substr(1);for(var $=Z(y.split("/")),dt=Z(L.split("/")),Et=Math.min($.length,dt.length),Lt=Et,Vt=0;Vt0&&(ye(xn(y.output,0)),y.output=[])}},default_tty1_ops:{put_char:function(y,L){null===L||10===L?(Be(xn(y.output,0)),y.output=[]):0!=L&&y.output.push(L)},flush:function(y){y.output&&y.output.length>0&&(Be(xn(y.output,0)),y.output=[])}}};function te(y){y=function Xt(y,L){return Math.ceil(y/L)*L}(y,65536);var L=Ge(65536,y);return L?(function wt(y,L){Hn.fill(0,y,y+L)}(L,y),L):0}var Dt={ops_table:null,mount:function(y){return Dt.createNode(null,"/",16895,0)},createNode:function(y,L,Z,$){if(N.isBlkdev(Z)||N.isFIFO(Z))throw new N.ErrnoError(63);Dt.ops_table||(Dt.ops_table={dir:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,lookup:Dt.node_ops.lookup,mknod:Dt.node_ops.mknod,rename:Dt.node_ops.rename,unlink:Dt.node_ops.unlink,rmdir:Dt.node_ops.rmdir,readdir:Dt.node_ops.readdir,symlink:Dt.node_ops.symlink},stream:{llseek:Dt.stream_ops.llseek}},file:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:{llseek:Dt.stream_ops.llseek,read:Dt.stream_ops.read,write:Dt.stream_ops.write,allocate:Dt.stream_ops.allocate,mmap:Dt.stream_ops.mmap,msync:Dt.stream_ops.msync}},link:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr,readlink:Dt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Dt.node_ops.getattr,setattr:Dt.node_ops.setattr},stream:N.chrdev_stream_ops}});var dt=N.createNode(y,L,Z,$);return N.isDir(dt.mode)?(dt.node_ops=Dt.ops_table.dir.node,dt.stream_ops=Dt.ops_table.dir.stream,dt.contents={}):N.isFile(dt.mode)?(dt.node_ops=Dt.ops_table.file.node,dt.stream_ops=Dt.ops_table.file.stream,dt.usedBytes=0,dt.contents=null):N.isLink(dt.mode)?(dt.node_ops=Dt.ops_table.link.node,dt.stream_ops=Dt.ops_table.link.stream):N.isChrdev(dt.mode)&&(dt.node_ops=Dt.ops_table.chrdev.node,dt.stream_ops=Dt.ops_table.chrdev.stream),dt.timestamp=Date.now(),y&&(y.contents[L]=dt,y.timestamp=dt.timestamp),dt},getFileDataAsTypedArray:function(y){return y.contents?y.contents.subarray?y.contents.subarray(0,y.usedBytes):new Uint8Array(y.contents):new Uint8Array(0)},expandFileStorage:function(y,L){var Z=y.contents?y.contents.length:0;if(!(Z>=L)){L=Math.max(L,Z*(Z<1048576?2:1.125)>>>0),0!=Z&&(L=Math.max(L,256));var dt=y.contents;y.contents=new Uint8Array(L),y.usedBytes>0&&y.contents.set(dt.subarray(0,y.usedBytes),0)}},resizeFileStorage:function(y,L){if(y.usedBytes!=L)if(0==L)y.contents=null,y.usedBytes=0;else{var Z=y.contents;y.contents=new Uint8Array(L),Z&&y.contents.set(Z.subarray(0,Math.min(L,y.usedBytes))),y.usedBytes=L}},node_ops:{getattr:function(y){var L={};return L.dev=N.isChrdev(y.mode)?y.id:1,L.ino=y.id,L.mode=y.mode,L.nlink=1,L.uid=0,L.gid=0,L.rdev=y.rdev,L.size=N.isDir(y.mode)?4096:N.isFile(y.mode)?y.usedBytes:N.isLink(y.mode)?y.link.length:0,L.atime=new Date(y.timestamp),L.mtime=new Date(y.timestamp),L.ctime=new Date(y.timestamp),L.blksize=4096,L.blocks=Math.ceil(L.size/L.blksize),L},setattr:function(y,L){void 0!==L.mode&&(y.mode=L.mode),void 0!==L.timestamp&&(y.timestamp=L.timestamp),void 0!==L.size&&Dt.resizeFileStorage(y,L.size)},lookup:function(y,L){throw N.genericErrors[44]},mknod:function(y,L,Z,$){return Dt.createNode(y,L,Z,$)},rename:function(y,L,Z){if(N.isDir(y.mode)){var $;try{$=N.lookupNode(L,Z)}catch(Et){}if($)for(var dt in $.contents)throw new N.ErrnoError(55)}delete y.parent.contents[y.name],y.parent.timestamp=Date.now(),y.name=Z,L.contents[Z]=y,L.timestamp=y.parent.timestamp,y.parent=L},unlink:function(y,L){delete y.contents[L],y.timestamp=Date.now()},rmdir:function(y,L){var Z=N.lookupNode(y,L);for(var $ in Z.contents)throw new N.ErrnoError(55);delete y.contents[L],y.timestamp=Date.now()},readdir:function(y){var L=[".",".."];for(var Z in y.contents)!y.contents.hasOwnProperty(Z)||L.push(Z);return L},symlink:function(y,L,Z){var $=Dt.createNode(y,L,41471,0);return $.link=Z,$},readlink:function(y){if(!N.isLink(y.mode))throw new N.ErrnoError(28);return y.link}},stream_ops:{read:function(y,L,Z,$,dt){var Et=y.node.contents;if(dt>=y.node.usedBytes)return 0;var Lt=Math.min(y.node.usedBytes-dt,$);if(Lt>8&&Et.subarray)L.set(Et.subarray(dt,dt+Lt),Z);else for(var Vt=0;Vt0||$+Z8)throw new N.ErrnoError(32);for(var dt=qt.normalizeArray(y.split("/").filter(function(Je){return!!Je}),!1),Et=N.root,Lt="/",Vt=0;Vt40)throw new N.ErrnoError(32)}}return{path:Lt,node:Et}},getPath:function(y){for(var L;;){if(N.isRoot(y)){var Z=y.mount.mountpoint;return L?"/"!==Z[Z.length-1]?Z+"/"+L:Z+L:Z}L=L?y.name+"/"+L:y.name,y=y.parent}},hashName:function(y,L){for(var Z=0,$=0;$>>0)%N.nameTable.length},hashAddNode:function(y){var L=N.hashName(y.parent.id,y.name);y.name_next=N.nameTable[L],N.nameTable[L]=y},hashRemoveNode:function(y){var L=N.hashName(y.parent.id,y.name);if(N.nameTable[L]===y)N.nameTable[L]=y.name_next;else for(var Z=N.nameTable[L];Z;){if(Z.name_next===y){Z.name_next=y.name_next;break}Z=Z.name_next}},lookupNode:function(y,L){var Z=N.mayLookup(y);if(Z)throw new N.ErrnoError(Z,y);for(var $=N.hashName(y.id,L),dt=N.nameTable[$];dt;dt=dt.name_next)if(dt.parent.id===y.id&&dt.name===L)return dt;return N.lookup(y,L)},createNode:function(y,L,Z,$){var dt=new N.FSNode(y,L,Z,$);return N.hashAddNode(dt),dt},destroyNode:function(y){N.hashRemoveNode(y)},isRoot:function(y){return y===y.parent},isMountpoint:function(y){return!!y.mounted},isFile:function(y){return 32768==(61440&y)},isDir:function(y){return 16384==(61440&y)},isLink:function(y){return 40960==(61440&y)},isChrdev:function(y){return 8192==(61440&y)},isBlkdev:function(y){return 24576==(61440&y)},isFIFO:function(y){return 4096==(61440&y)},isSocket:function(y){return 49152==(49152&y)},flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:function(y){var L=N.flagModes[y];if(void 0===L)throw new Error("Unknown file open mode: "+y);return L},flagsToPermissionString:function(y){var L=["r","w","rw"][3&y];return 512&y&&(L+="w"),L},nodePermissions:function(y,L){return N.ignorePermissions?0:L.includes("r")&&!(292&y.mode)||L.includes("w")&&!(146&y.mode)||L.includes("x")&&!(73&y.mode)?2:0},mayLookup:function(y){return N.nodePermissions(y,"x")||(y.node_ops.lookup?0:2)},mayCreate:function(y,L){try{return N.lookupNode(y,L),20}catch($){}return N.nodePermissions(y,"wx")},mayDelete:function(y,L,Z){var $;try{$=N.lookupNode(y,L)}catch(Et){return Et.errno}var dt=N.nodePermissions(y,"wx");if(dt)return dt;if(Z){if(!N.isDir($.mode))return 54;if(N.isRoot($)||N.getPath($)===N.cwd())return 10}else if(N.isDir($.mode))return 31;return 0},mayOpen:function(y,L){return y?N.isLink(y.mode)?32:N.isDir(y.mode)&&("r"!==N.flagsToPermissionString(L)||512&L)?31:N.nodePermissions(y,N.flagsToPermissionString(L)):44},MAX_OPEN_FDS:4096,nextfd:function(y,L){L=L||N.MAX_OPEN_FDS;for(var Z=y=y||0;Z<=L;Z++)if(!N.streams[Z])return Z;throw new N.ErrnoError(33)},getStream:function(y){return N.streams[y]},createStream:function(y,L,Z){N.FSStream||(N.FSStream=function(){},N.FSStream.prototype={object:{get:function(){return this.node},set:function(Lt){this.node=Lt}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var $=new N.FSStream;for(var dt in y)$[dt]=y[dt];y=$;var Et=N.nextfd(L,Z);return y.fd=Et,N.streams[Et]=y,y},closeStream:function(y){N.streams[y]=null},chrdev_stream_ops:{open:function(y){var L=N.getDevice(y.node.rdev);y.stream_ops=L.stream_ops,y.stream_ops.open&&y.stream_ops.open(y)},llseek:function(){throw new N.ErrnoError(70)}},major:function(y){return y>>8},minor:function(y){return 255&y},makedev:function(y,L){return y<<8|L},registerDevice:function(y,L){N.devices[y]={stream_ops:L}},getDevice:function(y){return N.devices[y]},getMounts:function(y){for(var L=[],Z=[y];Z.length;){var $=Z.pop();L.push($),Z.push.apply(Z,$.mounts)}return L},syncfs:function(y,L){"function"==typeof y&&(L=y,y=!1),N.syncFSRequests++,N.syncFSRequests>1&&Be("warning: "+N.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var Z=N.getMounts(N.root.mount),$=0;function dt(Lt){return N.syncFSRequests--,L(Lt)}function Et(Lt){if(Lt)return Et.errored?void 0:(Et.errored=!0,dt(Lt));++$>=Z.length&&dt(null)}Z.forEach(function(Lt){if(!Lt.type.syncfs)return Et(null);Lt.type.syncfs(Lt,y,Et)})},mount:function(y,L,Z){var Et,$="/"===Z,dt=!Z;if($&&N.root)throw new N.ErrnoError(10);if(!$&&!dt){var Lt=N.lookupPath(Z,{follow_mount:!1});if(Z=Lt.path,N.isMountpoint(Et=Lt.node))throw new N.ErrnoError(10);if(!N.isDir(Et.mode))throw new N.ErrnoError(54)}var Vt={type:y,opts:L,mountpoint:Z,mounts:[]},ce=y.mount(Vt);return ce.mount=Vt,Vt.root=ce,$?N.root=ce:Et&&(Et.mounted=Vt,Et.mount&&Et.mount.mounts.push(Vt)),ce},unmount:function(y){var L=N.lookupPath(y,{follow_mount:!1});if(!N.isMountpoint(L.node))throw new N.ErrnoError(28);var Z=L.node,$=Z.mounted,dt=N.getMounts($);Object.keys(N.nameTable).forEach(function(Lt){for(var Vt=N.nameTable[Lt];Vt;){var ce=Vt.name_next;dt.includes(Vt.mount)&&N.destroyNode(Vt),Vt=ce}}),Z.mounted=null;var Et=Z.mount.mounts.indexOf($);Z.mount.mounts.splice(Et,1)},lookup:function(y,L){return y.node_ops.lookup(y,L)},mknod:function(y,L,Z){var dt=N.lookupPath(y,{parent:!0}).node,Et=qt.basename(y);if(!Et||"."===Et||".."===Et)throw new N.ErrnoError(28);var Lt=N.mayCreate(dt,Et);if(Lt)throw new N.ErrnoError(Lt);if(!dt.node_ops.mknod)throw new N.ErrnoError(63);return dt.node_ops.mknod(dt,Et,L,Z)},create:function(y,L){return L=void 0!==L?L:438,L&=4095,N.mknod(y,L|=32768,0)},mkdir:function(y,L){return L=void 0!==L?L:511,L&=1023,N.mknod(y,L|=16384,0)},mkdirTree:function(y,L){for(var Z=y.split("/"),$="",dt=0;dtthis.length-1||Je<0)){var tn=Je%this.chunkSize;return this.getter(Je/this.chunkSize|0)[tn]}},Et.prototype.setDataGetter=function(Je){this.getter=Je},Et.prototype.cacheLength=function(){var Je=new XMLHttpRequest;if(Je.open("HEAD",Z,!1),Je.send(null),!(Je.status>=200&&Je.status<300||304===Je.status))throw new Error("Couldn't load "+Z+". Status: "+Je.status);var kn,tn=Number(Je.getResponseHeader("Content-length")),Pi=(kn=Je.getResponseHeader("Accept-Ranges"))&&"bytes"===kn,Tr=(kn=Je.getResponseHeader("Content-Encoding"))&&"gzip"===kn,Ri=1048576;Pi||(Ri=tn);var ki=this;ki.setDataGetter(function($i){var br=$i*Ri,gi=($i+1)*Ri-1;if(gi=Math.min(gi,tn-1),void 0===ki.chunks[$i]&&(ki.chunks[$i]=function($i,br){if($i>br)throw new Error("invalid range ("+$i+", "+br+") or no bytes requested!");if(br>tn-1)throw new Error("only "+tn+" bytes available! programmer error!");var gi=new XMLHttpRequest;if(gi.open("GET",Z,!1),tn!==Ri&&gi.setRequestHeader("Range","bytes="+$i+"-"+br),"undefined"!=typeof Uint8Array&&(gi.responseType="arraybuffer"),gi.overrideMimeType&&gi.overrideMimeType("text/plain; charset=x-user-defined"),gi.send(null),!(gi.status>=200&&gi.status<300||304===gi.status))throw new Error("Couldn't load "+Z+". Status: "+gi.status);return void 0!==gi.response?new Uint8Array(gi.response||[]):Hi(gi.responseText||"",!0)}(br,gi)),void 0===ki.chunks[$i])throw new Error("doXHR failed!");return ki.chunks[$i]}),(Tr||!tn)&&(Ri=tn=1,tn=this.getter(0).length,Ri=tn,ye("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=tn,this._chunkSize=Ri,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var Vt,ce=N.createFile(y,L,Vt={isDevice:!1,url:Z},$,dt);Vt.contents?ce.contents=Vt.contents:Vt.url&&(ce.contents=null,ce.url=Vt.url),Object.defineProperties(ce,{usedBytes:{get:function(){return this.contents.length}}});var Xe={};return Object.keys(ce.stream_ops).forEach(function(bn){var Je=ce.stream_ops[bn];Xe[bn]=function(){return N.forceLoadFile(ce),Je.apply(null,arguments)}}),Xe.read=function(Je,tn,kn,Pi,Tr){N.forceLoadFile(ce);var Ri=Je.node.contents;if(Tr>=Ri.length)return 0;var kr=Math.min(Ri.length-Tr,Pi);if(Ri.slice)for(var ki=0;ki>2]=$.dev,Ne[Z+4>>2]=0,Ne[Z+8>>2]=$.ino,Ne[Z+12>>2]=$.mode,Ne[Z+16>>2]=$.nlink,Ne[Z+20>>2]=$.uid,Ne[Z+24>>2]=$.gid,Ne[Z+28>>2]=$.rdev,Ne[Z+32>>2]=0,G=[$.size>>>0,(fn=$.size,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+40>>2]=G[0],Ne[Z+44>>2]=G[1],Ne[Z+48>>2]=4096,Ne[Z+52>>2]=$.blocks,Ne[Z+56>>2]=$.atime.getTime()/1e3|0,Ne[Z+60>>2]=0,Ne[Z+64>>2]=$.mtime.getTime()/1e3|0,Ne[Z+68>>2]=0,Ne[Z+72>>2]=$.ctime.getTime()/1e3|0,Ne[Z+76>>2]=0,G=[$.ino>>>0,(fn=$.ino,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[Z+80>>2]=G[0],Ne[Z+84>>2]=G[1],0},doMsync:function(y,L,Z,$,dt){var Et=Hn.slice(y,y+Z);N.msync(L,Et,dt,Z,$)},doMkdir:function(y,L){return"/"===(y=qt.normalize(y))[y.length-1]&&(y=y.substr(0,y.length-1)),N.mkdir(y,L,0),0},doMknod:function(y,L,Z){switch(61440&L){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return N.mknod(y,L,Z),0},doReadlink:function(y,L,Z){if(Z<=0)return-28;var $=N.readlink(y),dt=Math.min(Z,In($)),Et=Tn[L+dt];return function wn(y,L,Z){return je(y,Hn,L,Z)}($,L,Z+1),Tn[L+dt]=Et,dt},doAccess:function(y,L){if(-8&L)return-28;var $=N.lookupPath(y,{follow:!0}).node;if(!$)return-44;var dt="";return 4&L&&(dt+="r"),2&L&&(dt+="w"),1&L&&(dt+="x"),dt&&N.nodePermissions($,dt)?-2:0},doDup:function(y,L,Z){var $=N.getStream(Z);return $&&N.close($),N.open(y,L,0,Z,Z).fd},doReadv:function(y,L,Z,$){for(var dt=0,Et=0;Et>2],ce=N.read(y,Tn,Ne[L+8*Et>>2],Vt,$);if(ce<0)return-1;if(dt+=ce,ce>2],Ne[L+(8*Et+4)>>2],$);if(ce<0)return-1;dt+=ce}return dt},varargs:void 0,get:function(){return le.varargs+=4,Ne[le.varargs-4>>2]},getStr:function(y){return sn(y)},getStreamFromFD:function(y){var L=N.getStream(y);if(!L)throw new N.ErrnoError(8);return L},get64:function(y,L){return y}};var Jt=[];function oe(y){try{return Ae.grow(y-Mn.byteLength+65535>>>16),jn(Ae.buffer),1}catch(L){}}var Me={};function $n(){if(!$n.strings){var L={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ne||"./this.program"};for(var Z in Me)void 0===Me[Z]?delete L[Z]:L[Z]=Me[Z];var $=[];for(var Z in L)$.push(Z+"="+L[Z]);$n.strings=$}return $n.strings}var Jn=function(y,L,Z,$){y||(y=this),this.parent=y,this.mount=y.mount,this.mounted=null,this.id=N.nextInode++,this.name=L,this.mode=Z,this.node_ops={},this.stream_ops={},this.rdev=$};function Hi(y,L,Z){var $=Z>0?Z:In(y)+1,dt=new Array($),Et=je(y,dt,0,dt.length);return L&&(dt.length=Et),dt}Object.defineProperties(Jn.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(y){y?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(y){y?this.mode|=146:this.mode&=-147}},isFolder:{get:function(){return N.isDir(this.mode)}},isDevice:{get:function(){return N.isChrdev(this.mode)}}}),N.FSNode=Jn,N.staticInit();var Ft={A:function re(y,L){return function Yt(y,L){var Z;if(0===y)Z=Date.now();else{if(1!==y&&4!==y)return Bt(28),-1;Z=At()}return Ne[L>>2]=Z/1e3|0,Ne[L+4>>2]=Z%1e3*1e3*1e3|0,0}(y,L)},B:function ke(y,L){try{return y=le.getStr(y),le.doAccess(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},h:function Oe(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){case 0:return(dt=le.get())<0?-28:N.open($.path,$.flags,0,dt).fd;case 1:case 2:case 6:case 7:return 0;case 3:return $.flags;case 4:var dt=le.get();return $.flags|=dt,0;case 5:return dt=le.get(),Kn[dt+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return Bt(28),-1}}catch(Vt){if(void 0===N||!(Vt instanceof N.ErrnoError))throw Vt;return-Vt.errno}},x:function rn(y,L){try{var Z=le.getStreamFromFD(y);return le.doStat(N.stat,Z.path,L)}catch($){if(void 0===N||!($ instanceof N.ErrnoError))throw $;return-$.errno}},u:function He(y,L,Z,$){try{L=le.getStr(L);var dt=256&$,Et=4096&$;return $&=-4353,L=le.calculateAt(y,L,Et),le.doStat(dt?N.lstat:N.stat,L,Z)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},y:function $e(y,L,Z){le.varargs=Z;try{var $=le.getStreamFromFD(y);switch(L){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return $.tty?0:-59;case 21519:if(!$.tty)return-59;var dt=le.get();return Ne[dt>>2]=0,0;case 21520:return $.tty?-28:-59;case 21531:return dt=le.get(),N.ioctl($,L,dt);default:yn("bad ioctl syscall "+L)}}catch(Et){if(void 0===N||!(Et instanceof N.ErrnoError))throw Et;return-Et.errno}},k:function ve(y,L,Z,$,dt,Et){try{return function fe(y,L,Z,$,dt,Et){Et<<=12;var Lt,Vt=!1;if(0!=(16&$)&&y%65536!=0)return-28;if(0!=(32&$)){if(!(Lt=te(L)))return-48;Vt=!0}else{var ce=N.getStream(dt);if(!ce)return-8;var Xe=N.mmap(ce,y,L,Et,Z,$);Lt=Xe.ptr,Vt=Xe.allocated}return le.mappings[Lt]={malloc:Lt,len:L,allocated:Vt,fd:dt,prot:Z,flags:$,offset:Et},Lt}(y,L,Z,$,dt,Et)}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},j:function et(y,L){try{return function Qe(y,L){var Z=le.mappings[y];if(0===L||!Z)return-28;if(L===Z.len){var $=N.getStream(Z.fd);$&&2&Z.prot&&le.doMsync(y,$,L,Z.flags,Z.offset),le.mappings[y]=null,Z.allocated&&xt(Z.malloc)}return 0}(y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},e:function gt(y,L,Z){le.varargs=Z;try{var $=le.getStr(y),dt=Z?le.get():0;return N.open($,L,dt).fd}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return-Lt.errno}},v:function mt(y,L){try{return y=le.getStr(y),le.doStat(N.stat,y,L)}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return-Z.errno}},z:function St(y){try{return y=le.getStr(y),N.unlink(y),0}catch(L){if(void 0===N||!(L instanceof N.ErrnoError))throw L;return-L.errno}},r:function zt(){throw"longjmp"},q:function ee(){yn("")},C:function xe(y,L,Z){var $=function pe(y,L){var Z;for(Jt.length=0,L>>=2;Z=Hn[y++];){var $=Z<105;$&&1&L&&L++,Jt.push($?Xn[L++>>1]:Ne[L]),++L}return Jt}(L,Z);return X[y].apply(null,$)},o:function Wt(y,L,Z){Hn.copyWithin(y,L,L+Z)},p:function Ie(y){var L=Hn.length,Z=2147483648;if((y>>>=0)>Z)return!1;for(var $=1;$<=4;$*=2){var dt=L*(1+.2/$);if(dt=Math.min(dt,y+100663296),oe(Math.min(Z,ci(Math.max(y,dt),65536))))return!0}return!1},s:function En(y,L){var Z=0;return $n().forEach(function($,dt){var Et=L+Z;Ne[y+4*dt>>2]=Et,function ze(y,L,Z){for(var $=0;$>0]=y.charCodeAt($);Z||(Tn[L>>0]=0)}($,Et),Z+=$.length+1}),0},t:function Sn(y,L){var Z=$n();Ne[y>>2]=Z.length;var $=0;return Z.forEach(function(dt){$+=dt.length+1}),Ne[L>>2]=$,0},a:function we(y){!function rr(y,L){!function Li(y){(function Ue(){return Ce||!1})()||(E.onExit&&E.onExit(y),Yn=!0),Ut(y,new An(y))}(y)}(y)},d:function Fn(y){try{var L=le.getStreamFromFD(y);return N.close(L),0}catch(Z){if(void 0===N||!(Z instanceof N.ErrnoError))throw Z;return Z.errno}},i:function Qn(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doReadv(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},n:function on(y,L,Z,$,dt){try{var Et=le.getStreamFromFD(y),Vt=4294967296*Z+(L>>>0),ce=9007199254740992;return Vt<=-ce||Vt>=ce?-61:(N.llseek(Et,Vt,$),G=[Et.position>>>0,(fn=Et.position,+Math.abs(fn)>=1?fn>0?(0|Math.min(+Math.floor(fn/4294967296),4294967295))>>>0:~~+Math.ceil((fn-+(~~fn>>>0))/4294967296)>>>0:0)],Ne[dt>>2]=G[0],Ne[dt+4>>2]=G[1],Et.getdents&&0===Vt&&0===$&&(Et.getdents=null),0)}catch(Xe){if(void 0===N||!(Xe instanceof N.ErrnoError))throw Xe;return Xe.errno}},g:function ln(y,L,Z,$){try{var dt=le.getStreamFromFD(y),Et=le.doWritev(dt,L,Z);return Ne[$>>2]=Et,0}catch(Lt){if(void 0===N||!(Lt instanceof N.ErrnoError))throw Lt;return Lt.errno}},c:function Un(){return vn},w:function Vi(y){var L=Date.now();return Ne[y>>2]=L/1e3|0,Ne[y+4>>2]=L%1e3*1e3|0,0},l:function Ze(y,L,Z,$,dt,Et,Lt){var Vt=Pt();try{return D(y)(L,Z,$,dt,Et,Lt)}catch(ce){if(ae(Vt),ce!==ce+0&&"longjmp"!==ce)throw ce;De(1,0)}},m:function Ke(y,L){var Z=Pt();try{D(y)(L)}catch($){if(ae(Z),$!==$+0&&"longjmp"!==$)throw $;De(1,0)}},b:function hi(y){!function(y){vn=y}(y)},f:function zi(y){var L=Date.now()/1e3|0;return y&&(Ne[y>>2]=L),L}};(function Bn(){var y={a:Ft};function L(Lt,Vt){E.asm=Lt.exports,jn((Ae=E.asm.D).buffer),yt=E.asm.M,function qn(y){se.unshift(y)}(E.asm.E),un()}function Z(Lt){L(Lt.instance)}function $(Lt){return function Ii(){return Ve||"function"!=typeof fetch?Promise.resolve().then(function(){return Le(Nn)}):fetch(Nn,{credentials:"same-origin"}).then(function(y){if(!y.ok)throw"failed to load wasm binary file at '"+Nn+"'";return y.arrayBuffer()}).catch(function(){return Le(Nn)})}().then(function(Vt){return WebAssembly.instantiate(Vt,y)}).then(function(Vt){return Vt}).then(Lt,function(Vt){Be("failed to asynchronously prepare wasm: "+Vt),yn(Vt)})}if(On(),E.instantiateWasm)try{return E.instantiateWasm(y,L)}catch(Lt){return Be("Module.instantiateWasm callback failed with error: "+Lt),!1}return function dt(){return Ve||"function"!=typeof WebAssembly.instantiateStreaming||ui(Nn)||"function"!=typeof fetch?$(Z):fetch(Nn,{credentials:"same-origin"}).then(function(Lt){return WebAssembly.instantiateStreaming(Lt,y).then(Z,function(ce){return Be("wasm streaming compile failed: "+ce),Be("falling back to ArrayBuffer instantiation"),$(Z)})})}().catch(It),{}})(),E.___wasm_call_ctors=function(){return(E.___wasm_call_ctors=E.asm.E).apply(null,arguments)};var be=E._emscripten_bind_VoidPtr___destroy___0=function(){return(be=E._emscripten_bind_VoidPtr___destroy___0=E.asm.F).apply(null,arguments)},jt=E._emscripten_bind_Graphviz_Graphviz_2=function(){return(jt=E._emscripten_bind_Graphviz_Graphviz_2=E.asm.G).apply(null,arguments)},b=E._emscripten_bind_Graphviz_version_0=function(){return(b=E._emscripten_bind_Graphviz_version_0=E.asm.H).apply(null,arguments)},M=E._emscripten_bind_Graphviz_lastError_0=function(){return(M=E._emscripten_bind_Graphviz_lastError_0=E.asm.I).apply(null,arguments)},B=E._emscripten_bind_Graphviz_layout_3=function(){return(B=E._emscripten_bind_Graphviz_layout_3=E.asm.J).apply(null,arguments)},j=E._emscripten_bind_Graphviz_createFile_2=function(){return(j=E._emscripten_bind_Graphviz_createFile_2=E.asm.K).apply(null,arguments)},ct=E._emscripten_bind_Graphviz___destroy___0=function(){return(ct=E._emscripten_bind_Graphviz___destroy___0=E.asm.L).apply(null,arguments)};E._malloc=function(){return(E._malloc=E.asm.N).apply(null,arguments)};var We,xt=E._free=function(){return(xt=E._free=E.asm.O).apply(null,arguments)},kt=E.___errno_location=function(){return(kt=E.___errno_location=E.asm.P).apply(null,arguments)},Pt=E.stackSave=function(){return(Pt=E.stackSave=E.asm.Q).apply(null,arguments)},ae=E.stackRestore=function(){return(ae=E.stackRestore=E.asm.R).apply(null,arguments)},De=E._setThrew=function(){return(De=E._setThrew=E.asm.S).apply(null,arguments)},Ge=E._memalign=function(){return(Ge=E._memalign=E.asm.T).apply(null,arguments)};function An(y){this.name="ExitStatus",this.message="Program terminated with exit("+y+")",this.status=y}function di(y){function L(){We||(We=!0,E.calledRun=!0,!Yn&&(function nn(){!E.noFSInit&&!N.init.initialized&&N.init(),N.ignorePermissions=!1,ht(se)}(),Ct(E),E.onRuntimeInitialized&&E.onRuntimeInitialized(),function Zn(){if(E.postRun)for("function"==typeof E.postRun&&(E.postRun=[E.postRun]);E.postRun.length;)y=E.postRun.shift(),de.unshift(y);var y;ht(de)}()))}gn>0||(function Fe(){if(E.preRun)for("function"==typeof E.preRun&&(E.preRun=[E.preRun]);E.preRun.length;)y=E.preRun.shift(),Gt.unshift(y);var y;ht(Gt)}(),gn>0)||(E.setStatus?(E.setStatus("Running..."),setTimeout(function(){setTimeout(function(){E.setStatus("")},1),L()},1)):L())}if(ti=function y(){We||di(),We||(ti=y)},E.run=di,E.preInit)for("function"==typeof E.preInit&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();function fi(){}function ii(y){return(y||fi).__cache__}function Mi(y,L){var Z=ii(L),$=Z[y];return $||(($=Object.create((L||fi).prototype)).ptr=y,Z[y]=$)}di(),(fi.prototype=Object.create(fi.prototype)).constructor=fi,fi.prototype.__class__=fi,fi.__cache__={},E.WrapperObject=fi,E.getCache=ii,E.wrapPointer=Mi,E.castObject=function ar(y,L){return Mi(y.ptr,L)},E.NULL=Mi(0),E.destroy=function si(y){if(!y.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";y.__destroy__(),delete ii(y.__class__)[y.ptr]},E.compare=function Da(y,L){return y.ptr===L.ptr},E.getPointer=function ls(y){return y.ptr},E.getClass=function cs(y){return y.__class__};var Pn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Pn.needed){for(var y=0;y=Pn.size?(Wn($>0),Pn.needed+=$,dt=E._malloc($),Pn.temps.push(dt)):(dt=Pn.buffer+Pn.pos,Pn.pos+=$),dt},copy:function(y,L,Z){switch(Z>>>=0,L.BYTES_PER_ELEMENT){case 2:Z>>>=1;break;case 4:Z>>>=2;break;case 8:Z>>>=3}for(var dt=0;dt\n\n')}}function ut(H,K){var lt=V({images:[],files:[]},K);W(W([],lt.files,!0),function nt(H){return H.map(rt)}(lt.images),!0).forEach(function(it){return H.createFile(it.path,it.data)})}var tt={layout:function(H,K,lt,it){return void 0===K&&(K="svg"),void 0===lt&&(lt="dot"),H?u(U,null==it?void 0:it.wasmFolder,null==it?void 0:it.wasmBinary).then(function(z){var E=new z.Graphviz(void 0!==(null==it?void 0:it.yInvert)&&(null==it?void 0:it.yInvert),void 0!==(null==it?void 0:it.nop)?null==it?void 0:it.nop:0);ut(E,it);var Ct=E.layout(H,K,lt);if(z.destroy(E),!Ct)throw new Error(z.Graphviz.prototype.lastError());return Ct}):Promise.resolve("")},circo:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"circo",lt)},dot:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"dot",lt)},fdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"fdp",lt)},sfdp:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"sfdp",lt)},neato:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"neato",lt)},osage:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"osage",lt)},patchwork:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"patchwork",lt)},twopi:function(H,K,lt){return void 0===K&&(K="svg"),this.layout(H,K,"twopi",lt)}},Q=function(){function H(K){this._wasm=K}return H.prototype.layout=function(K,lt,it,z){if(void 0===lt&&(lt="svg"),void 0===it&&(it="dot"),!K)return"";var E=new this._wasm.Graphviz((null==z?void 0:z.yInvert)?1:0,(null==z?void 0:z.nop)?null==z?void 0:z.nop:0);ut(E,z);var Ct=E.layout(K,lt,it);if(this._wasm.destroy(E),!Ct)throw new Error(this._wasm.Graphviz.prototype.lastError());return Ct},H.prototype.circo=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"circo",it)},H.prototype.dot=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"dot",it)},H.prototype.fdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"fdp",it)},H.prototype.sfdp=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"sfdp",it)},H.prototype.neato=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"neato",it)},H.prototype.osage=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"osage",it)},H.prototype.patchwork=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"patchwork",it)},H.prototype.twopi=function(K,lt,it){return void 0===lt&&(lt="svg"),this.layout(K,lt,"twopi",it)},H}();o.GraphvizSync=Q,o.StackElement=g,o.StackParser=C,o.expatVersion=function k(H,K){return u(_,H,K).then(function(lt){return lt.CExpat.prototype.version()})},o.graphviz=tt,o.graphvizSync=function at(H,K){return u(U,H,K).then(function(lt){return new Q(lt)})},o.graphvizVersion=function J(H,K){return u(U,H,K).then(function(lt){return lt.Graphviz.prototype.version()})},o.parse=F,o.wasmFolder=l,Object.defineProperty(o,"__esModule",{value:!0})}(I)},78417:(w,I,o)=>{"use strict";o.r(I),o.d(I,{AdminModule:()=>Zb});var c={};o.r(c),o.d(c,{forceCenter:()=>Vf,forceCollide:()=>fl,forceLink:()=>vl,forceManyBody:()=>yl,forceRadial:()=>mp,forceSimulation:()=>xl,forceX:()=>gp,forceY:()=>_p});var x={};o.r(x),o.d(x,{dispatch:()=>ca.Z});var v={};o.r(v),o.d(v,{interval:()=>xp,now:()=>tr.zO,timeout:()=>ua.Z,timer:()=>tr.HT,timerFlush:()=>tr.R8});var _=o(69808),f=o(11735),t=o(5e3),p=o(77968),l=o(4235),h=o(25245),m=o(61283),u=o(51062);const g=function(){return{color:"black"}};let C=(()=>{class n{constructor(e){this.sideMenuService=e}ngOnInit(){this.sideMenuService.setAdminItems([])}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(p.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-page"]],decls:7,vars:5,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","admin-theme"],[1,"page-title","d-flex"],["svgIcon","perun-perun-admin",1,"perun-icon","icon-scale",3,"ngStyle"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.TgZ(2,"h1",1),t._UZ(3,"mat-icon",2),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(3),t.Q6J("ngStyle",t.DdM(4,g)),t.xp6(1),t.hij(" ",t.lcZ(5,2,"ADMIN.TITLE")," "))},directives:[l.W,h.Hw,_.PC,m.A],pipes:[u.X$],styles:[""]}),n})();var A=o(71135);let k=(()=>{class n{constructor(){this.navItems=[{cssIcon:"perun-attributes",url:"/admin/attributes",label:"MENU_ITEMS.ADMIN.ATTRIBUTES",style:"admin-btn"},{cssIcon:"perun-user",url:"/admin/users",label:"MENU_ITEMS.ADMIN.USERS",style:"admin-btn"},{cssIcon:"perun-owner-grey",url:"/admin/owners",label:"MENU_ITEMS.ADMIN.OWNERS",style:"admin-btn"},{cssIcon:"perun-service",url:"/admin/services",label:"MENU_ITEMS.ADMIN.SERVICES",style:"admin-btn"},{cssIcon:"perun-preview",url:"/admin/visualizer",label:"MENU_ITEMS.ADMIN.VISUALIZER",style:"admin-btn"},{cssIcon:"perun-external-sources",url:"/admin/ext_sources",label:"MENU_ITEMS.ADMIN.EXT_SOURCES",style:"admin-btn"},{cssIcon:"perun-audit-log",url:"/admin/audit_log",label:"MENU_ITEMS.ADMIN.AUDIT_LOG",style:"admin-btn"},{cssIcon:"perun-consent-hubs",url:"/admin/consent_hubs",label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",style:"admin-btn"},{cssIcon:"perun-searcher",url:"/admin/searcher",label:"MENU_ITEMS.ADMIN.SEARCHER",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.navItems)("size","small"))},directives:[A.L],styles:[""]}),n})();var F=o(20449),O=o(48966),R=o(32075),U=o(36908),V=o(32105),W=o(20773),rt=o(98380),nt=o(47423);function ut(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function J(n,r){1&n&&t._UZ(0,"th",16)}function tt(n,r){if(1&n&&(t.TgZ(0,"td",17),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function Q(n,r){1&n&&t._UZ(0,"tr",18)}function at(n,r){1&n&&t._UZ(0,"tr",19)}function H(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,J,1,0,"th",11),t.YNc(10,tt,2,1,"td",12),t.BQk(),t.YNc(11,Q,1,0,"tr",13),t.YNc(12,at,1,0,"tr",14),t.qZA(),t.TgZ(13,"perun-web-apps-alert",15),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE1")," "),t.xp6(3),t.hij(" ",t.lcZ(6,8,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TEXT_LINE2")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.hij(" ",t.lcZ(15,10,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.WARNING")," ")}}let K=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new R.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const e=[];for(const i of this.data.attributes)e.push(i.id);this.attributesManager.deleteAttributeDefinitions(e).subscribe(()=>{this.translate.get("DIALOGS.DELETE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-attribute-definition-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",1,"mt-3"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ut,1,0,"mat-spinner",1),t.YNc(5,H,16,12,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var lt=o(45323),it=o(67322),z=o(98833),E=o(93075),Ct=o(74533),It=o(74107),Rt=o(90508),Ht=o(32368),ne=o(29772),Ut=o(77446);function vt(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function ft(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Nt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function Qt(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function me(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function ge(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function ye(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Be(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function vn(n,r){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Re(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ERROR_SELECT_SOMETHING")))}function mn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"mat-form-field",9),t.TgZ(2,"label"),t.TgZ(3,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.friendlyName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,ft,3,3,"mat-error",11),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",9),t.TgZ(8,"label"),t.TgZ(9,"input",10),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.displayName=a}),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.YNc(11,Nt,3,3,"mat-error",11),t.qZA(),t._UZ(12,"br"),t.TgZ(13,"mat-form-field",9),t.TgZ(14,"label"),t.TgZ(15,"textarea",12),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.description=a}),t.ALo(16,"translate"),t._uU(17," "),t.qZA(),t.qZA(),t.YNc(18,Qt,3,3,"mat-error",11),t.qZA(),t._UZ(19,"br"),t.TgZ(20,"mat-form-field",9),t.TgZ(21,"mat-placeholder"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.TgZ(24,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().entity=a}),t.YNc(25,me,2,2,"mat-option",14),t.qZA(),t.YNc(26,ge,3,3,"mat-error",11),t.qZA(),t._UZ(27,"br"),t.TgZ(28,"mat-form-field",9),t.TgZ(29,"mat-placeholder"),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().definitionType=a}),t.YNc(33,ye,2,2,"mat-option",14),t.qZA(),t.YNc(34,Be,3,3,"mat-error",11),t.qZA(),t._UZ(35,"br"),t.TgZ(36,"mat-form-field",9),t.TgZ(37,"mat-placeholder"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",13),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().valueType=a}),t.YNc(41,vn,2,2,"mat-option",14),t.qZA(),t.YNc(42,Re,3,3,"mat-error",11),t.qZA(),t._UZ(43,"br"),t.TgZ(44,"div",15),t.TgZ(45,"p"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"p",16),t.NdJ("click",function(){return t.CHM(e),t.oxw().attDef.unique=!1}),t._uU(49,"OFF"),t.qZA(),t.TgZ(50,"mat-slide-toggle",17),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().attDef.unique=a}),t.ALo(51,"translate"),t._uU(52," ON "),t.qZA(),t.qZA(),t.TgZ(53,"div",18),t.TgZ(54,"p",19),t._uU(55),t.ALo(56,"translate"),t.qZA(),t.TgZ(57,"p",20),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t.TgZ(60,"div",21),t.TgZ(61,"p",22),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",23),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelf=a}),t.qZA(),t.TgZ(65,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",21),t.TgZ(67,"p",22),t._uU(68),t.ALo(69,"translate"),t.qZA(),t.TgZ(70,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfPublic=a}),t.qZA(),t.TgZ(71,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(72,"div",21),t.TgZ(73,"p",22),t._uU(74),t.ALo(75,"translate"),t.qZA(),t.TgZ(76,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readSelfVo=a}),t.qZA(),t.TgZ(77,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(78,"div",21),t.TgZ(79,"p",22),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.TgZ(82,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readVo=a}),t.qZA(),t.TgZ(83,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeVo=a}),t.qZA(),t.qZA(),t.TgZ(84,"div",21),t.TgZ(85,"p",22),t._uU(86),t.ALo(87,"translate"),t.qZA(),t.TgZ(88,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readGroup=a}),t.qZA(),t.TgZ(89,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(90,"div",21),t.TgZ(91,"p",22),t._uU(92),t.ALo(93,"translate"),t.qZA(),t.TgZ(94,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().readFacility=a}),t.qZA(),t.TgZ(95,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().writeFacility=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,46,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FRIENDLY_NAME")),t.Q6J("ngModel",e.attDef.friendlyName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.friendlyName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,48,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(16,50,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(23,52,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.ENTITY")),t.xp6(2),t.Q6J("ngModel",e.entity),t.xp6(1),t.Q6J("ngForOf",e.entities),t.xp6(1),t.Q6J("ngIf",""===e.attDef.entity),t.xp6(4),t.Oqu(t.lcZ(31,54,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.DEFINITION")),t.xp6(2),t.Q6J("ngModel",e.definitionType),t.xp6(1),t.Q6J("ngForOf",e.definitionTypes),t.xp6(1),t.Q6J("ngIf",""===e.definitionType),t.xp6(4),t.Oqu(t.lcZ(39,56,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VALUE_TYPE")),t.xp6(2),t.Q6J("ngModel",e.valueType),t.xp6(1),t.Q6J("ngForOf",e.valueTypes),t.xp6(1),t.Q6J("ngIf",""===e.valueType),t.xp6(4),t.Oqu(t.lcZ(47,58,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(51,60,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(56,62,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(59,64,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(63,66,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(69,68,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(75,70,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(81,72,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(87,74,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(93,76,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility)}}let Ve=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.loading=!1,this.entities=["facility","resource","group","group_resource","host","member","member_group","member_resource","user","ues","user_facility","vo","entityless"],this.definitionTypes=["def","opt","virt","core"],this.definitionType="",this.valueTypes=["String","Integer","Boolean","Array","LinkedHashMap"],this.valueType="",this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1}ngOnInit(){this.attDef={beanName:"",description:"",displayName:"",entity:"",friendlyName:"",id:void 0,namespace:"",type:"",unique:!1,writable:!1}}onSubmit(){this.loading=!0,this.attDef.namespace="urn:perun:"+this.entity+":attribute-def:"+this.definitionType,this.readValueType(),this.attributesManager.createAttributeDefinition({attribute:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.readRights()}).subscribe(()=>{this.translate.get("DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}disableConfirmButton(){return""===this.attDef.friendlyName||""===this.attDef.displayName||""===this.attDef.description||""===this.entity||""===this.definitionType||""===this.valueType||this.loading}disableUniqueToggle(){return("virt"===this.definitionType||"entityless"===this.entity)&&(this.attDef.unique=!1,!0)}readRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push(V.Us.READ),this.writeVo&&a.rights.push(V.Us.WRITE),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push(V.Us.WRITE),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push(V.Us.READ),this.writeFacility&&d.rights.push(V.Us.WRITE),e.push(d),e}readValueType(){switch(this.valueType){case"String":this.attDef.type="java.lang.String";break;case"Integer":this.attDef.type="java.lang.Integer";break;case"Boolean":this.attDef.type="java.lang.Boolean";break;case"Array":this.attDef.type="java.util.ArrayList";break;case"LinkedHashMap":this.attDef.type="java.util.LinkedHashMap"}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-create-attribute-definition-dialog"]],decls:14,vars:16,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"form-field-width"],["matInput","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],[4,"ngIf"],["matInput","","cdkTextareaAutosize","","required","",1,"form-field-width",3,"ngModel","placeholder","ngModelChange"],["required","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,vt,1,0,"mat-spinner",2),t.YNc(5,mn,96,78,"div",3),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t.ALo(11,"translate"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,8,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,12,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!i.disableConfirmButton())("disabled",i.disableConfirmButton()),t.xp6(2),t.hij(" ",t.lcZ(13,14,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.CONFIRM")," "))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,it.UY,It.gD,_.sg,Rt.ey,Ht.Rr,ne.gM,Ut.oG,O.H8,nt.lW],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.form-field-width[_ngcontent-%COMP%]{width:450px}.pointer[_ngcontent-%COMP%]{cursor:pointer}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"]}),n})();var Ce=o(9244),Ae=o(10036);function Yn(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Wn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"perun-web-apps-alert",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field",10),t.TgZ(5,"input",11),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().value=a}),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.IMPORT_ATTRIBUTE.INFO")," "),t.xp6(3),t.Q6J("ngModel",e.value)("placeholder",t.lcZ(6,5,"DIALOGS.IMPORT_ATTRIBUTE.HINT"))}}let ni=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.translate=a,this.attributesManager=s,this.value="",this.loading=!1}create(){try{this.loading=!0,this.attributeData=JSON.parse(this.value),this.attributesManager.createAttributeDefinition({attribute:this.attributeData.attributeDefinition}).subscribe(e=>{for(const i of this.attributeData.attributeRights)i.attributeId=e.id;this.attributesManager.setAttributeRights({rights:this.attributeData.attributeRights}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.IMPORT_ATTRIBUTE_DEFINITION.SUCCESS")),this.dialogRef.close(!0)})},()=>this.loading=!1)}catch(e){this.notificator.showError(e),this.loading=!1}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attribute-import-dialog"]],decls:13,vars:12,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","info"],[1,"w-100"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Yn,1,0,"mat-spinner",2),t.YNc(5,Wn,7,7,"div",3),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.dialogRef.close()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.create()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.hij(" ",t.lcZ(3,6,"DIALOGS.IMPORT_ATTRIBUTE.TITLE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.IMPORT_ATTRIBUTE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===i.value.trim().length||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.IMPORT_ATTRIBUTE.CREATE")," "))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();var xn=o(96214),sn=o(7434),je=o(84847),wn=o(36769),In=o(69287),ze=o(60205),ci=o(387),Mn=o(18750),Tn=o(43532);function Hn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw(2);return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Kn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",24),t.TgZ(1,"mat-checkbox",25),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw(2);return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function Ne(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.KEY")," "))}function Xn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"label"),t.TgZ(2,"input",28),t.NdJ("ngModelChange",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)})("ngModelChange",function(a){return t.CHM(e).$implicit[0]=a}),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(2),t.Q6J("ngModel",e[0])}}function jn(n,r){1&n&&(t.TgZ(0,"th",26),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.VALUE")," "))}function yt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",27),t.TgZ(1,"perun-web-apps-attribute-value",29),t.NdJ("sendEventToParent2",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onValueChange(s)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("attribute",e[1])}}function Gt(n,r){1&n&&t._UZ(0,"tr",30)}function se(n,r){1&n&&t._UZ(0,"tr",31)}function de(n,r){if(1&n&&(t.TgZ(0,"div",10),t.TgZ(1,"perun-web-apps-table-wrapper",11),t.TgZ(2,"table",12),t.ynx(3,13),t.YNc(4,Hn,2,3,"th",14),t.YNc(5,Kn,2,2,"td",15),t.BQk(),t.ynx(6,16),t.YNc(7,Ne,3,3,"th",17),t.YNc(8,Xn,3,1,"td",18),t.BQk(),t.ynx(9,19),t.YNc(10,jn,3,3,"th",17),t.YNc(11,yt,2,1,"td",18),t.BQk(),t.YNc(12,Gt,1,0,"tr",20),t.YNc(13,se,1,0,"tr",21),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("pageSizeOptions",e.pageSizeOptions)("dataLength",e.dataSource.filteredData.length)("hideExport",!0)("tableId",e.tableId),t.xp6(1),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function _e(n,r){1&n&&t._UZ(0,"mat-spinner",32)}function Ue(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",33),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.NO_KEYS_WARNING")," "))}let Fe=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.attributesManager=d,this.switchView=new t.vpe,this.records=[],this.displayedColumns=["select","key","value"],this.dataSource=new R.by,this.selection=new F.Ov(!0,[]),this.isAddButtonDisabled=!1,this.pageSizeOptions=Ce.f7}set matSort(e){this.sort=e}ngOnChanges(){this.ngOnInit()}ngOnInit(){this.loading=!0,this.attDef=this.data.attDef,this.attributesManager.getEntitylessKeys(this.attDef.id).subscribe(e=>{this.attributesManager.getEntitylessAttributesByName(`${this.attDef.namespace}:${this.attDef.friendlyName}`).subscribe(i=>{let a=0;this.records=[];for(const s of e)this.records.push([s,i[a]]),a++;this.dataSource=new R.by(this.records),this.setDataSource(),this.loading=!1})})}setDataSource(){!this.child||!this.child.paginator||this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}onSave(){this.updateMapAttributes();for(const e of this.selection.selected)this.attributesManager.setEntitylessAttribute({key:e[0],attribute:e[1]}).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.selection.clear(),this.isAddButtonDisabled=!1}onRemove(){for(const e of this.selection.selected)this.attributesManager.removeEntitylessAttribute(e[0],e[1].id).subscribe(()=>{this.translate.get("SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE_SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.ngOnInit()})});this.ngOnInit(),this.selection.clear(),this.isAddButtonDisabled=!1}onAdd(){const e=["",this.attDef];e[1].value=void 0,this.records.unshift(e),this.dataSource.data=this.records,this.setDataSource(),this.selection.clear(),this.selection.select(e),this.isAddButtonDisabled=!0}onCancel(){this.dialogRef.close(!1)}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(e=>this.selection.select(e))}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[1].id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onValueChange(e){this.selection.select(e)}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}ngAfterViewInit(){this.children.changes.subscribe(e=>{this.child=e.first,this.dataSource.paginator=this.child.paginator})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-entityless-attribute-keys-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(je.YE,7),t.Gf(ci.Mw,5),t.Gf(Ce.l9,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.matSort=a.first),t.iGM(a=t.CRH())&&(i.items=a),t.iGM(a=t.CRH())&&(i.children=a)}},inputs:{attDef:"attDef",tableId:"tableId"},outputs:{switchView:"switchView"},features:[t.TTD],decls:19,vars:19,consts:[["mat-dialog-title",""],["mat-dialog-actions","",1,"mt-3"],["mat-stroked-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","accent","matTooltip","save or remove new attribute first","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"disabled","matTooltipDisabled","click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-dialog-content","",1,"mt-3",3,"hidden"],["class","card mt-3",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn","class","mt-3",4,"ngIf"],[1,"card","mt-3"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortActive","key","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matInput","","placeholder","New key",1,"mt-2",3,"ngModel","ngModelChange"],[3,"attribute","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],[1,"ml-auto","mr-auto"],["alert_type","warn",1,"mt-3"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.qZA(),t.TgZ(2,"div",1),t.TgZ(3,"button",2),t.NdJ("click",function(){return i.switchView.emit()}),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.TgZ(15,"div",6),t.YNc(16,de,14,7,"div",7),t.YNc(17,_e,1,0,"mat-spinner",8),t.YNc(18,Ue,3,3,"perun-web-apps-alert",9),t.qZA()),2&e&&(t.xp6(1),t.Oqu(i.attDef.namespace+":"+i.attDef.friendlyName),t.xp6(3),t.hij(" ",t.lcZ(5,11,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(8,13,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.SAVE")," "),t.xp6(2),t.Q6J("disabled",i.isAddButtonDisabled)("matTooltipDisabled",!i.isAddButtonDisabled),t.xp6(1),t.hij(" ",t.lcZ(11,15,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.ADD")," "),t.xp6(3),t.hij(" ",t.lcZ(14,17,"SHARED.COMPONENTS.ENTITYLESS_ATTRIBUTES_LIST.REMOVE")," "),t.xp6(2),t.Q6J("hidden",i.loading),t.xp6(1),t.Q6J("ngIf",i.records&&i.records.length),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",0===i.records.length))},directives:[O.uh,O.H8,nt.lW,ne.gM,O.xY,_.O5,Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,z.Nt,E.Fj,E.JJ,E.On,Tn.M,R.as,R.XQ,R.nj,R.Gk,W.$g,rt.w],pipes:[u.X$],styles:[".mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}"]}),n})();const nn=["copiedTooltip"];function Zn(n,r){1&n&&t._UZ(0,"mat-spinner",12)}function Ln(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}function qn(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.ERROR_FIELD_EMPTY")))}const Di=function(){return["id","name","enabled","script"]};function gn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",13),t.TgZ(1,"mat-form-field",3),t.TgZ(2,"label"),t.TgZ(3,"input",14),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.displayName=a}),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Ln,3,3,"mat-error",2),t.qZA(),t._UZ(6,"br"),t.TgZ(7,"mat-form-field",3),t.TgZ(8,"label"),t.TgZ(9,"textarea",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.description=a}),t.ALo(10,"translate"),t._uU(11," "),t.qZA(),t.qZA(),t.YNc(12,qn,3,3,"mat-error",2),t.qZA(),t._UZ(13,"br"),t.TgZ(14,"div",16),t.TgZ(15,"p"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"p",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).attDef.unique=!1}),t._uU(19,"OFF"),t.qZA(),t.TgZ(20,"mat-slide-toggle",18),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).attDef.unique=a}),t.ALo(21,"translate"),t._uU(22," ON "),t.qZA(),t.qZA(),t.TgZ(23,"div",19),t.TgZ(24,"p",20),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"p",21),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.TgZ(30,"div",22),t.TgZ(31,"p",23),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-checkbox",24),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelf=a}),t.qZA(),t.TgZ(35,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelf=a}),t.qZA(),t.qZA(),t.TgZ(36,"div",22),t.TgZ(37,"p",23),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-checkbox",26),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfPublic=a}),t.qZA(),t.TgZ(41,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfPublic=a}),t.qZA(),t.qZA(),t.TgZ(42,"div",22),t.TgZ(43,"p",23),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readSelfVo=a}),t.qZA(),t.TgZ(47,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeSelfVo=a}),t.qZA(),t.qZA(),t.TgZ(48,"div",22),t.TgZ(49,"p",23),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.TgZ(52,"mat-checkbox",28),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readVo=a}),t.qZA(),t.TgZ(53,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeVo=a}),t.qZA(),t.qZA(),t.TgZ(54,"div",22),t.TgZ(55,"p",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-checkbox",29),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readGroup=a}),t.qZA(),t.TgZ(59,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeGroup=a}),t.qZA(),t.qZA(),t.TgZ(60,"div",22),t.TgZ(61,"p",23),t._uU(62),t.ALo(63,"translate"),t.qZA(),t.TgZ(64,"mat-checkbox",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).readFacility=a}),t.qZA(),t.TgZ(65,"mat-checkbox",25),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).writeFacility=a}),t.qZA(),t.qZA(),t.TgZ(66,"div",30),t.TgZ(67,"p"),t._uU(68),t.ALo(69,"translate"),t.qZA(),t._UZ(70,"app-services-list",31),t.qZA(),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(3),t.s9C("placeholder",t.lcZ(4,35,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DISPLAY_NAME")),t.Q6J("ngModel",e.attDef.displayName),t.xp6(2),t.Q6J("ngIf",""===e.attDef.displayName),t.xp6(4),t.s9C("placeholder",t.lcZ(10,37,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.DESCRIPTION")),t.Q6J("ngModel",e.attDef.description),t.xp6(3),t.Q6J("ngIf",""===e.attDef.description),t.xp6(4),t.Oqu(t.lcZ(17,39,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.UNIQUE")),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,41,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_UNIQUE")),t.Q6J("ngModel",e.attDef.unique)("disabled",e.disableUniqueToggle())("matTooltipDisabled",!e.disableUniqueToggle()),t.xp6(5),t.Oqu(t.lcZ(26,43,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.READ")),t.xp6(3),t.Oqu(t.lcZ(29,45,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.WRITE")),t.xp6(4),t.Oqu(t.lcZ(33,47,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF")),t.xp6(2),t.Q6J("ngModel",e.readSelf),t.xp6(1),t.Q6J("ngModel",e.writeSelf),t.xp6(3),t.Oqu(t.lcZ(39,49,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_PUBLIC")),t.xp6(2),t.Q6J("ngModel",e.readSelfPublic),t.xp6(1),t.Q6J("ngModel",e.writeSelfPublic),t.xp6(3),t.Oqu(t.lcZ(45,51,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.SELF_VO")),t.xp6(2),t.Q6J("ngModel",e.readSelfVo),t.xp6(1),t.Q6J("ngModel",e.writeSelfVo),t.xp6(3),t.Oqu(t.lcZ(51,53,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.VO")),t.xp6(2),t.Q6J("ngModel",e.readVo),t.xp6(1),t.Q6J("ngModel",e.writeVo),t.xp6(3),t.Oqu(t.lcZ(57,55,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.GROUP")),t.xp6(2),t.Q6J("ngModel",e.readGroup),t.xp6(1),t.Q6J("ngModel",e.writeGroup),t.xp6(3),t.Oqu(t.lcZ(63,57,"DIALOGS.CREATE_ATTRIBUTE_DEFINITION.FACILITY")),t.xp6(2),t.Q6J("ngModel",e.readFacility),t.xp6(1),t.Q6J("ngModel",e.writeFacility),t.xp6(3),t.Oqu(t.lcZ(69,59,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(61,Di))("services",e.services)}}function ti(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchShowKeys()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SHOW_KEYS")," "))}function wi(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"h1",4),t._uU(3),t.qZA(),t.YNc(4,Zn,1,0,"mat-spinner",5),t.YNc(5,gn,71,62,"div",6),t.TgZ(6,"div",7),t.YNc(7,ti,3,3,"button",8),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCopy()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t.ALo(15,"translate"),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.attDef.namespace+":"+e.attDef.friendlyName),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(2),t.Q6J("ngIf","entityless"===e.attDef.entity),t.xp6(2),t.hij(" ",t.lcZ(10,10,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FOR_IMPORT")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(15,14,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.TOOLTIP_CONFIRM")),t.Q6J("matTooltipDisabled",!e.disableConfirmButton())("disabled",e.disableConfirmButton()||e.loading),t.xp6(2),t.hij(" ",t.lcZ(17,16,"DIALOGS.EDIT_ATTRIBUTE_DEFINITION.CONFIRM")," ")}}function On(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"app-entityless-attribute-keys-list",33),t.NdJ("switchView",function(){return t.CHM(e),t.oxw().switchShowKeys()}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("attDef",e.attDef)("tableId",e.tableId)}}let un=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialog=e,this.dialogRef=i,this.data=a,this.notificator=s,this.translate=d,this.clipboard=T,this.attributesManager=S,this.serviceService=P,this.showKeys=!1,this.readSelf=!1,this.readSelfPublic=!1,this.readSelfVo=!1,this.readVo=!1,this.readGroup=!1,this.readFacility=!1,this.writeSelf=!1,this.writeSelfPublic=!1,this.writeSelfVo=!1,this.writeVo=!1,this.writeGroup=!1,this.writeFacility=!1,this.tableId=Ae.Wv,this.loading=!1,this.activatedComponent="Edit"}ngOnInit(){this.loading=!0,this.dialogRef.addPanelClass("mat-dialog-height-transition"),this.attDef=this.data.attDef,this.serviceService.getServicesByAttributeDefinition(this.attDef.id).subscribe(e=>{this.services=e,this.attributesManager.getAttributeRights(this.attDef.id).subscribe(i=>{this.fromRightsToCheckboxes(i),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}disableConfirmButton(){return""===this.attDef.displayName||""===this.attDef.description}disableUniqueToggle(){return this.attDef.namespace.includes("virt")||this.attDef.namespace.includes("core")||"entityless"===this.attDef.entity}onSubmit(){this.loading=!0,this.attributesManager.updateAttributeDefinition({attributeDefinition:this.attDef}).subscribe(e=>{this.attDef=e,this.attributesManager.setAttributeRights({rights:this.fromCheckboxesToRights()}).subscribe(()=>{this.translate.get("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.SUCCESS").subscribe(i=>{this.notificator.showSuccess(i),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}switchShowKeys(){this.showKeys=!this.showKeys,this.showKeys?(this.dialogRef.updateSize("800px"),this.activatedComponent="Entityless"):(this.dialogRef.updateSize("700px"),this.activatedComponent="Edit")}onCopy(){const e={attributeDefinition:this.attDef,attributeRights:this.fromCheckboxesToRights()};this.clipboard.copy(JSON.stringify(e))?this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPIED")):this.notificator.showError(this.translate.instant("DIALOGS.EDIT_ATTRIBUTE_DEFINITION.COPY_FAILED"))}fromCheckboxesToRights(){const e=[],i={};i.attributeId=this.attDef.id,i.role=lt.u.SELF,i.rights=[],this.readSelf&&i.rights.push("READ"),this.readSelfPublic&&i.rights.push("READ_PUBLIC"),this.readSelfVo&&i.rights.push("READ_VO"),this.writeSelf&&i.rights.push("WRITE"),this.writeSelfPublic&&i.rights.push("WRITE_PUBLIC"),this.writeSelfVo&&i.rights.push("WRITE_VO"),e.push(i);const a={};a.attributeId=this.attDef.id,a.role=lt.u.VOADMIN,a.rights=[],this.readVo&&a.rights.push("READ"),this.writeVo&&a.rights.push("WRITE"),e.push(a);const s={};s.attributeId=this.attDef.id,s.role=lt.u.GROUPADMIN,s.rights=[],this.readGroup&&s.rights.push(V.Us.READ),this.writeGroup&&s.rights.push("WRITE"),e.push(s);const d={};return d.attributeId=this.attDef.id,d.role=lt.u.FACILITYADMIN,d.rights=[],this.readFacility&&d.rights.push("READ"),this.writeFacility&&d.rights.push("WRITE"),e.push(d),e}fromRightsToCheckboxes(e){for(const i of e)switch(i.role){case lt.u.SELF:i.rights.includes("READ")&&(this.readSelf=!0),i.rights.includes("READ_PUBLIC")&&(this.readSelfPublic=!0),i.rights.includes("READ_VO")&&(this.readSelfVo=!0),i.rights.includes("WRITE")&&(this.writeSelf=!0),i.rights.includes("WRITE_PUBLIC")&&(this.writeSelfPublic=!0),i.rights.includes("WRITE_VO")&&(this.writeSelfVo=!0);break;case lt.u.GROUPADMIN:i.rights.includes("READ")&&(this.readGroup=!0),i.rights.includes("WRITE")&&(this.writeGroup=!0);break;case lt.u.FACILITYADMIN:i.rights.includes("READ")&&(this.readFacility=!0),i.rights.includes("WRITE")&&(this.writeFacility=!0);break;case lt.u.VOADMIN:i.rights.includes("READ")&&(this.readVo=!0),i.rights.includes("WRITE")&&(this.writeVo=!0)}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(In.TU),t.Y36(V.H8),t.Y36(V.KK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-edit-attribute-definition-dialog"]],viewQuery:function(e,i){if(1&e&&t.Gf(nn,5),2&e){let a;t.iGM(a=t.CRH())&&(i.copiedToolTip=a.first)}},decls:4,vars:2,consts:[[1,"admin-theme"],[1,"parent"],[4,"ngIf"],[1,"width-650"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"mt-3"],["class","ml-0","mat-flat-button","",3,"click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],["color","accent","mat-flat-button","","matTooltipPosition","above",1,"ml-2",3,"matTooltipDisabled","disabled","matTooltip","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["matInput","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],["matInput","","cdkTextareaAutosize","","required","",1,"width-650",3,"ngModel","placeholder","ngModelChange"],[1,"d-flex","flex-row","mt-3"],[1,"pointer","ml-4",3,"click"],["color","accent","matTooltipPosition","above",1,"ml-2",3,"matTooltip","ngModel","disabled","matTooltipDisabled","ngModelChange"],[1,"d-flex","flex-row","mt-2"],[1,"ml-5","pl-4"],[1,"ml-4"],[1,"d-flex","flex-row"],[1,""],[1,"ml-5","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5",3,"ngModel","ngModelChange"],[1,"ml-3",3,"ngModel","ngModelChange"],[1,"ml-4","pl-3",3,"ngModel","ngModelChange"],[1,"ml-5","pl-4",3,"ngModel","ngModelChange"],[1,"ml-4","pl-4",3,"ngModel","ngModelChange"],[1,"mt-4"],[3,"disableRouting","displayedColumns","services"],["mat-flat-button","",1,"ml-0",3,"click"],[3,"attDef","tableId","switchView"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.YNc(2,wi,18,18,"div",2),t.YNc(3,On,2,2,"div",2),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",!i.showKeys),t.xp6(1),t.Q6J("ngIf",i.showKeys))},directives:[_.O5,O.uh,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.On,it.TO,Ct.IC,Ht.Rr,ne.gM,Ut.oG,ze.Q,O.H8,nt.lW,Fe],pipes:[u.X$],styles:[".unique-toggle-label[_ngcontent-%COMP%]{font-size:1.125rem}.width-650[_ngcontent-%COMP%]{width:650px!important}.pointer[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]{overflow:hidden}.parent[_ngcontent-%COMP%]{display:flex}.parent[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{flex:1}textarea[cdktextareaautosize].mat-input-element[_ngcontent-%COMP%]{overflow:hidden}"],data:{animation:[wn.SG,wn.GH,wn.Ls]}}),n})();var yn=o(70844);let ei=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(":")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"nameSpaceToDef",type:n,pure:!0}),n})(),ui=(()=>{class n{transform(e){if(null===e)return null;const i=e;return i.substring(i.lastIndexOf(".")+1,i.length)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"attributeTypeClean",type:n,pure:!0}),n})();function Nn(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",19),t.TgZ(1,"mat-checkbox",20),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Le(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.ALo(2,"consentRelatedAttribute"),t.ALo(3,"translate"),t.ALo(4,"consentRelatedAttribute"),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))("disabled",t.Dn7(2,5,e.namespace,i.serviceEnabled,i.consentRequired))("matTooltip",t.lcZ(3,9,"ADMIN.ATTRIBUTES.CONSENT_RELATED_DISABLED"))("matTooltipDisabled",!t.Dn7(4,11,e.namespace,i.serviceEnabled,i.consentRequired))}}function Ii(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ID")," "))}function Bn(n,r){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function fn(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_FRIENDLY_NAME")," "))}function G(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function X(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_ENTITY")," "))}function ht(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.entity)}}function D(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_DEF")," "))}function At(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"nameSpaceToDef"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.namespace))}}function Ot(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_TYPE")," "))}function Bt(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"attributeTypeClean"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,e.type))}}function Yt(n,r){1&n&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.TABLE_ATTR_UNIQUE")," "))}function re(n,r){if(1&n&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.unique)}}function qt(n,r){1&n&&t._UZ(0,"tr",26)}function q(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"tr",27),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onRowClick(s)}),t.qZA()}if(2&n){const e=t.oxw();t.ekj("cursor-pointer",!e.disableRouting)}}function pt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.NO_ATTRIBUTES"),"\n"))}function bt(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let wt=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.authResolver=i,this.tableCheckbox=a,this.consentRelatedPipe=s,this.selection=new F.Ov(!0,[]),this.displayedColumns=["select","id","friendlyName","entity","namespace","type","unique"],this.disableRouting=!1,this.consentRequired=!1,this.serviceEnabled=!1,this.refreshEvent=new t.vpe,this.pageSizeOptions=Ce.f7,this.canBeSelected=d=>!this.consentRelatedPipe.transform(d.namespace,this.serviceEnabled,this.consentRequired)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"entity":return e.entity;case"namespace":if(e.namespace){const a=e.namespace;return a.substring(a.lastIndexOf(":")+1,a.length)}return"";case"type":if(e.type){const a=e.type;return a.substring(a.lastIndexOf(".")+1,a.length)}return"";case"unique":return e.unique?"true":"false";default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new R.by(this.definitions),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filter=this.filterValue,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.pR)(e,i,n.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}onRowClick(e){if(!this.disableRouting){const i=(0,Ce.kZ)();i.width="700px",i.data={attDef:e},this.dialog.open(un,i).afterClosed().subscribe(s=>{s&&(this.selection.clear(),this.refreshEvent.emit())})}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.UA),t.Y36(yn.u))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-attr-def-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{definitions:"definitions",selection:"selection",displayedColumns:"displayedColumns",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting",consentRequired:"consentRequired",serviceEnabled:"serviceEnabled"},outputs:{refreshEvent:"refreshEvent"},features:[t.TTD],decls:29,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","entity"],["matColumnDef","namespace"],["matColumnDef","type"],["matColumnDef","unique"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","left","color","primary",3,"aria-label","checked","disabled","matTooltip","matTooltipDisabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"div",2),t.TgZ(3,"table",3),t.ynx(4,4),t.YNc(5,Nn,2,3,"th",5),t.YNc(6,Le,5,15,"td",6),t.BQk(),t.ynx(7,7),t.YNc(8,Ii,3,3,"th",8),t.YNc(9,Bn,2,1,"td",9),t.BQk(),t.ynx(10,10),t.YNc(11,fn,3,3,"th",8),t.YNc(12,G,2,1,"td",11),t.BQk(),t.ynx(13,12),t.YNc(14,X,3,3,"th",8),t.YNc(15,ht,2,1,"td",11),t.BQk(),t.ynx(16,13),t.YNc(17,D,3,3,"th",8),t.YNc(18,At,3,3,"td",11),t.BQk(),t.ynx(19,14),t.YNc(20,Ot,3,3,"th",8),t.YNc(21,Bt,3,3,"td",11),t.BQk(),t.ynx(22,15),t.YNc(23,Yt,3,3,"th",8),t.YNc(24,re,2,1,"td",11),t.BQk(),t.YNc(25,qt,1,0,"tr",16),t.YNc(26,q,1,2,"tr",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(27,pt,3,3,"perun-web-apps-alert",18),t.YNc(28,bt,3,3,"perun-web-apps-alert",18)),2&e&&(t.Q6J("hidden",0===i.dataSource.filteredData.length||0===i.definitions.length),t.xp6(1),t.Q6J("pageSizeOptions",i.pageSizeOptions)("dataLength",i.dataSource.filteredData.length)("tableId",i.tableId),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.definitions.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.definitions.length))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,ne.gM,je.nU,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[yn.u,u.X$,ei,ui],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function Xt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.CREATE")," "))}function te(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onImport()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.ATTRIBUTES.IMPORT")," "))}function Dt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.ATTRIBUTES.DELETE")," ")}}function he(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function N(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("disableRouting",!e.authResolver.isPerunAdmin())("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let le=(()=>{class n{constructor(e,i,a){this.dialog=e,this.attributesManager=i,this.authResolver=a,this.attrDefinitions=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.uM}ngOnInit(){this.refreshTable()}onCreate(){const e=(0,Ce.kZ)();e.width="500px",this.dialog.open(Ve,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,Ce.kZ)();e.width="450px",e.data={attributes:this.selected.selected,theme:"admin-theme"},this.dialog.open(K,e).afterClosed().subscribe(a=>{a&&(this.refreshTable(),this.selected.clear())})}refreshTable(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}applyFilter(e){this.filterValue=e}onImport(){const e=(0,Ce.kZ)();e.width="700px",this.dialog.open(ni,e).afterClosed().subscribe(a=>{!0===a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-attributes"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","disableRouting","filterValue","selection","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Xt,3,3,"button",2),t.YNc(6,te,3,3,"button",2),t.YNc(7,Dt,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,he,1,0,"mat-spinner",5),t.YNc(10,N,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"ADMIN.ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.ATTRIBUTES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})(),ke=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-visualizer"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:1,vars:0,template:function(e,i){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[m.A],styles:[""]}),n})();var Oe=o(9921);let rn=(()=>{class n{constructor(e){this.attributesManager=e}ngOnInit(){this.attributesManager.getAttributeModulesDependenciesGraphText("DOT").subscribe(e=>{const i=e.graph.replace("\\t","").replace("\\n","").replace("\\","");(0,Oe.graphviz)("#dependenciesGraph",{zoom:!1}).renderDot(i)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.H8))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-attr-modules"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:4,vars:3,consts:[[1,"page-subtitle"],["id","dependenciesGraph",1,"card"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.VISUALIZER.ATTR_DEPENDENCIES.TITLE"),"\n"))},pipes:[u.X$],styles:["#dependenciesGraph[_ngcontent-%COMP%]{overflow-y:scroll}"]}),n})(),He=(()=>{class n{constructor(){this.items=[{cssIcon:"perun-module-dependencies",url:"attrDependencies",label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",style:"admin-btn"},{cssIcon:"perun-user-destination-relationship",url:"userDestinationRelationship",label:"MENU_ITEMS.VISUALIZER.USER_DESTINATION",style:"admin-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-visualizer-overview"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",i.items)("size","small"))},directives:[A.L],styles:[""]}),n})();var $e=o(80013),fe=o(75778),ve=o(22868),Qe=o(87545),et=o(92081),gt=o(91079),mt=o(79814);function St(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_USER"))}function zt(n,r){1&n&&t._UZ(0,"mat-spinner",17),2&n&&t.Q6J("diameter",20)("strokeWidth",2)}function ee(n,r){if(1&n&&(t.TgZ(0,"mat-option",18),t.TgZ(1,"span",19),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e.firstName+" "+e.lastName),t.xp6(2),t.hij("#",e.id,""),t.xp6(1),t.AsE(" ",e.firstName," ",e.lastName," ")}}function Jt(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_DESTINATION"))}function pe(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.Oqu(t.lcZ(1,1,"ADMIN.VISUALIZER.USER_DESTINATION.SELECT_SERVICE"))}function xe(n,r){if(1&n&&(t.TgZ(0,"mat-radio-button",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}let Wt=(()=>{class n{constructor(e,i,a,s,d,T){this.usersService=e,this.translate=i,this.facilityManager=a,this.serviceService=s,this.router=d,this.notificator=T,this.searchField=new E.NI,this.chosenService="",this.availableServices=[],this.loading=!1,this.destination=""}ngOnInit(){this.searchField.setValue(""),this.users=this.searchField.valueChanges.pipe((0,$e.b)(400),(0,fe.x)(),(0,ve.b)(()=>this.loading=!0),(0,Qe.w)(e=>this.usersService.findUsers(e)),(0,ve.b)(()=>this.loading=!1)),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SELECT_NO_SERVICE").subscribe(e=>{this.noServiceText=e,this.availableServices.push(this.noServiceText)})}validateName(e){""!==this.searchField.value?this.usersService.findUsers(this.searchField.value).subscribe(i=>{for(const a of i){if((a.firstName+" "+a.lastName).toLowerCase()===this.searchField.value.toLowerCase()){this.selectedUser=a,e.selected.completed=!0,e.next();break}this.selectedUser=null}this.selectedUser||this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_NAME").subscribe(a=>{this.notificator.showError(a)})}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_NAME").subscribe(i=>{this.notificator.showError(i)})}validateDestination(e){""!==this.destination?(this.availableServices=[],this.availableServices.push(this.noServiceText),this.chosenService="",this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(i=>{if(0!==i.length){e.selected.completed=!0,e.next();for(const a of i)this.serviceService.getAllRichDestinationsForFacility(a.id).subscribe(s=>{for(const d of s)d.destination===this.destination&&(this.availableServices.includes(d.service.name)||this.availableServices.push(d.service.name))})}else this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_WRONG_DESTINATION").subscribe(a=>{this.notificator.showError(a)})})):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NO_DESTINATION").subscribe(i=>{this.notificator.showError(i)})}getGraph(){""!==this.chosenService?this.router.navigate(["admin/visualizer/userDestinationRelationship/graph"],this.chosenService===this.noServiceText?{queryParams:{user:this.selectedUser.id,destination:this.destination,service:"noService"}}:{queryParams:{user:this.selectedUser.id,destination:this.destination,service:this.chosenService}}):this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.ERROR_NOT_CHOSEN_SERVICE").subscribe(e=>{this.notificator.showError(e)})}notCompleted(e){e.selected.completed=!1}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.Fv),t.Y36(u.sK),t.Y36(V.IQ),t.Y36(V.KK),t.Y36(f.F0),t.Y36(U.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-relationship"]],hostVars:2,hostBindings:function(e,i){2&e&&t.ekj("router-component",i.true)},decls:46,vars:36,consts:[[1,"p-3","card","settings-card","col-12","col-xl-5"],[1,"page-subtitle"],["linear",""],["stepper",""],["completed","false"],["matStepLabel",""],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keydown.enter","ngModelChange"],["matSuffix","",3,"diameter","strokeWidth",4,"ngIf"],["align","start"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mt-2",3,"click"],["matInput","","type","text",3,"placeholder","ngModel","keydown.enter","ngModelChange"],["mat-stroked-button","","matStepperPrevious","",1,"mt-2"],[1,"mb-2",3,"ngModel","ngModelChange"],["class","flex-column d-flex","color","primary",3,"value",4,"ngFor","ngForOf"],["matSuffix","",3,"diameter","strokeWidth"],[3,"value"],[1,"text-muted"],["color","primary",1,"flex-column","d-flex",3,"value"]],template:function(e,i){if(1&e){const a=t.EpF();t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-vertical-stepper",2,3),t.TgZ(6,"mat-step",4),t.YNc(7,St,2,3,"ng-template",5),t.TgZ(8,"mat-form-field",6),t.TgZ(9,"input",7),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)}),t.ALo(10,"translate"),t.qZA(),t.YNc(11,zt,1,2,"mat-spinner",8),t.TgZ(12,"mat-hint",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-autocomplete",null,10),t.YNc(17,ee,4,4,"mat-option",11),t.ALo(18,"async"),t.qZA(),t.qZA(),t.TgZ(19,"div"),t.TgZ(20,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateName(d)}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(23,"mat-step",4),t.YNc(24,Jt,2,3,"ng-template",5),t.TgZ(25,"mat-form-field",6),t.TgZ(26,"input",13),t.NdJ("keydown.enter",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)})("ngModelChange",function(){t.CHM(a);const d=t.MAs(5);return i.notCompleted(d)})("ngModelChange",function(d){return i.destination=d}),t.ALo(27,"translate"),t.qZA(),t.qZA(),t.TgZ(28,"div"),t.TgZ(29,"button",14),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"button",12),t.NdJ("click",function(){t.CHM(a);const d=t.MAs(5);return i.validateDestination(d)}),t._uU(33),t.ALo(34,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(35,"mat-step"),t.YNc(36,pe,2,3,"ng-template",5),t.TgZ(37,"mat-radio-group",15),t.NdJ("ngModelChange",function(d){return i.chosenService=d}),t.YNc(38,xe,2,2,"mat-radio-button",16),t.qZA(),t.TgZ(39,"div"),t.TgZ(40,"button",14),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"button",12),t.NdJ("click",function(){return i.getGraph()}),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(16);t.xp6(2),t.hij(" ",t.lcZ(3,16,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE")," "),t.xp6(7),t.s9C("placeholder",t.lcZ(10,18,"ADMIN.VISUALIZER.USER_DESTINATION.USER_EXAMPLE")),t.Q6J("formControl",i.searchField)("matAutocomplete",a),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(2),t.Oqu(t.lcZ(14,20,"ADMIN.VISUALIZER.USER_DESTINATION.USER_HINT")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(18,22,i.users)),t.xp6(4),t.hij(" ",t.lcZ(22,24,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(5),t.s9C("placeholder",t.lcZ(27,26,"ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION_EXAMPLE")),t.Q6J("ngModel",i.destination),t.xp6(4),t.hij(" ",t.lcZ(31,28,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(34,30,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_NEXT")," "),t.xp6(4),t.Q6J("ngModel",i.chosenService),t.xp6(1),t.Q6J("ngForOf",i.availableServices),t.xp6(3),t.hij(" ",t.lcZ(42,32,"ADMIN.VISUALIZER.USER_DESTINATION.BUTTON_BACK")," "),t.xp6(3),t.hij(" ",t.lcZ(45,34,"ADMIN.VISUALIZER.USER_DESTINATION.SUBMIT_BUTTON")," ")}},directives:[et.Vq,et.C0,et.VY,it.KE,z.Nt,E.Fj,gt.ZL,E.JJ,E.oH,_.O5,W.$g,it.R9,it.bx,gt.XC,_.sg,Rt.ey,nt.lW,E.On,et.fd,mt.VQ,mt.U0],pipes:[u.X$,_.Ov],styles:[""]}),n})();function oe(n,r,e){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+r)/6,(n._y0+4*n._y1+e)/6)}function Ie(n){this._context=n}function Ye(n,r){this._basis=new Ie(n),this._beta=r}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:oe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:oe(this,n,r)}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=r}},Ye.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var n=this._x,r=this._y,e=n.length-1;if(e>0)for(var S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const $n=function n(r){function e(i){return 1===r?new Ie(i):new Ye(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var En=o(8929),Sn=o(70655),we=o(41777);function Fn(){}function Qn(n){return null==n?Fn:function(){return this.querySelector(n)}}function ln(){return[]}function Jn(n){return new Array(n.length)}function cn(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function be(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}cn.prototype={constructor:cn,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var We="http://www.w3.org/1999/xhtml";const An={svg:"http://www.w3.org/2000/svg",xhtml:We,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function di(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),An.hasOwnProperty(r)?{space:An[r],local:n}:n}function rr(n){return function(){this.removeAttribute(n)}}function Li(n){return function(){this.removeAttributeNS(n.space,n.local)}}function fi(n,r){return function(){this.setAttribute(n,r)}}function ii(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Mi(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function ar(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Da(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function ls(n){return function(){this.style.removeProperty(n)}}function cs(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Pn(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function qi(n,r){return n.style.getPropertyValue(r)||Da(n).getComputedStyle(n,null).getPropertyValue(r)}function pi(n){return function(){delete this[n]}}function y(n,r){return function(){this[n]=r}}function L(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function $(n){return n.trim().split(/^|\s+/)}function dt(n){return n.classList||new Et(n)}function Et(n){this._node=n,this._names=$(n.getAttribute("class")||"")}function Lt(n,r){for(var e=dt(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var To={},Ir=null;function Zu(n,r,e){return n=bo(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function bo(n,r,e){return function(i){var a=Ir;Ir=i;try{n.call(this,this.__data__,r,e)}finally{Ir=a}}}function Bu(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function Uu(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function xt(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=kt);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?ls:"function"==typeof r?Pn:cs)(n,r,null==e?"":e)):qi(this.node(),n)},property:function Z(n,r){return arguments.length>1?this.each((null==r?pi:"function"==typeof r?L:y)(n,r)):this.node()[n]},classed:function bn(n,r){var e=$(n+"");if(arguments.length<2){for(var i=dt(this.node()),a=-1,s=e.length;++a0)for(var S,i=n[0],a=r[0],s=n[e]-i,d=r[e]-a,T=-1;++T<=e;)this._basis.point(this._beta*n[T]+(1-this._beta)*(i+(S=T/e)*s),this._beta*r[T]+(1-this._beta)*(a+S*d));this._x=this._y=null,this._basis.lineEnd()},point:function(n,r){this._x.push(+n),this._y.push(+r)}};const Xu=function n(r){function e(i){return 1===r?new La(i):new So(i,r)}return e.beta=function(i){return n(+i)},e}(.85);var us=Math.PI,hs=2*us,Mr=1e-6,$u=hs-Mr;function ds(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Do(){return new ds}ds.prototype=Do.prototype={constructor:ds,moveTo:function(n,r){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(n,r){this._+="L"+(this._x1=+n)+","+(this._y1=+r)},quadraticCurveTo:function(n,r,e,i){this._+="Q"+ +n+","+ +r+","+(this._x1=+e)+","+(this._y1=+i)},bezierCurveTo:function(n,r,e,i,a,s){this._+="C"+ +n+","+ +r+","+ +e+","+ +i+","+(this._x1=+a)+","+(this._y1=+s)},arcTo:function(n,r,e,i,a){var s=this._x1,d=this._y1,T=(e=+e)-(n=+n),S=(i=+i)-(r=+r),P=s-n,Y=d-r,ot=P*P+Y*Y;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=n)+","+(this._y1=r);else if(ot>Mr)if(Math.abs(Y*T-S*P)>Mr&&a){var st=e-s,_t=i-d,Mt=T*T+S*S,Zt=st*st+_t*_t,Tt=Math.sqrt(Mt),$t=Math.sqrt(ot),ie=a*Math.tan((us-Math.acos((Mt+ot-Zt)/(2*Tt*$t)))/2),Kt=ie/$t,Se=ie/Tt;Math.abs(Kt-1)>Mr&&(this._+="L"+(n+Kt*P)+","+(r+Kt*Y)),this._+="A"+a+","+a+",0,0,"+ +(Y*st>P*_t)+","+(this._x1=n+Se*T)+","+(this._y1=r+Se*S)}else this._+="L"+(this._x1=n)+","+(this._y1=r)},arc:function(n,r,e,i,a,s){n=+n,r=+r,s=!!s;var d=(e=+e)*Math.cos(i),T=e*Math.sin(i),S=n+d,P=r+T,Y=1^s,ot=s?i-a:a-i;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+S+","+P:(Math.abs(this._x1-S)>Mr||Math.abs(this._y1-P)>Mr)&&(this._+="L"+S+","+P),e&&(ot<0&&(ot=ot%hs+hs),ot>$u?this._+="A"+e+","+e+",0,1,"+Y+","+(n-d)+","+(r-T)+"A"+e+","+e+",0,1,"+Y+","+(this._x1=S)+","+(this._y1=P):ot>Mr&&(this._+="A"+e+","+e+",0,"+ +(ot>=us)+","+Y+","+(this._x1=n+e*Math.cos(a))+","+(this._y1=r+e*Math.sin(a))))},rect:function(n,r,e,i){this._+="M"+(this._x0=this._x1=+n)+","+(this._y0=this._y1=+r)+"h"+ +e+"v"+ +i+"h"+-e+"Z"},toString:function(){return this._}};const Qu=Do;function ka(n){return function(){return n}}function Lo(n){this._context=n}function Ju(n){return new Lo(n)}function ju(n){return n[0]}function qu(n){return n[1]}Lo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(n,r){switch(n=+n,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 1:this._point=2;default:this._context.lineTo(n,r)}}};var ko=Math.PI;function Mo(n){return(1-Math.cos(ko*n))/2}function th(){}function fs(n){return null==n?th:function(){return this.querySelector(n)}}function nh(){return[]}function Oo(n){return null==n?nh:function(){return this.querySelectorAll(n)}}function No(n){return function(){return this.matches(n)}}function Fo(n){return new Array(n.length)}function Ia(n,r){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=r}function oh(n,r,e,i,a,s){for(var T,d=0,S=r.length,P=s.length;dr?1:n>=r?0:NaN}Ia.prototype={constructor:Ia,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,r){return this._parent.insertBefore(n,r)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};var ps="http://www.w3.org/1999/xhtml";const Ro={svg:"http://www.w3.org/2000/svg",xhtml:ps,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ma(n){var r=n+="",e=r.indexOf(":");return e>=0&&"xmlns"!==(r=n.slice(0,e))&&(n=n.slice(e+1)),Ro.hasOwnProperty(r)?{space:Ro[r],local:n}:n}function bh(n){return function(){this.removeAttribute(n)}}function Ch(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wh(n,r){return function(){this.setAttribute(n,r)}}function Ah(n,r){return function(){this.setAttributeNS(n.space,n.local,r)}}function Eh(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}}function Sh(n,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}}function Zo(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function Lh(n){return function(){this.style.removeProperty(n)}}function kh(n,r,e){return function(){this.style.setProperty(n,r,e)}}function Ih(n,r,e){return function(){var i=r.apply(this,arguments);null==i?this.style.removeProperty(n):this.style.setProperty(n,i,e)}}function zr(n,r){return n.style.getPropertyValue(r)||Zo(n).getComputedStyle(n,null).getPropertyValue(r)}function Oh(n){return function(){delete this[n]}}function Nh(n,r){return function(){this[n]=r}}function Fh(n,r){return function(){var e=r.apply(this,arguments);null==e?delete this[n]:this[n]=e}}function Bo(n){return n.trim().split(/^|\s+/)}function ms(n){return n.classList||new Uo(n)}function Uo(n){this._node=n,this._names=Bo(n.getAttribute("class")||"")}function Go(n,r){for(var e=ms(n),i=-1,a=r.length;++i=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};var Ho={},Or=null;function hd(n,r,e){return n=Yo(n,r,e),function(i){var a=i.relatedTarget;(!a||a!==this&&!(8&a.compareDocumentPosition(this)))&&n.call(this,i)}}function Yo(n,r,e){return function(i){var a=Or;Or=i;try{n.call(this,this.__data__,r,e)}finally{Or=a}}}function dd(n){return n.trim().split(/^|\s+/).map(function(r){var e="",i=r.indexOf(".");return i>=0&&(e=r.slice(i+1),r=r.slice(0,i)),{type:r,name:e}})}function fd(n){return function(){var r=this.__on;if(r){for(var s,e=0,i=-1,a=r.length;e=Kt&&(Kt=ie+1);!(Pe=Tt[Kt])&&++Kt=0;)(d=i[a])&&(s&&4^d.compareDocumentPosition(s)&&s.parentNode.insertBefore(d,s),s=d);return this},sort:function ph(n){function r(ot,st){return ot&&st?n(ot.__data__,st.__data__):!ot-!st}n||(n=mh);for(var e=this._groups,i=e.length,a=new Array(i),s=0;s1?this.each((null==r?Lh:"function"==typeof r?Ih:kh)(n,r,null==e?"":e)):zr(this.node(),n)},property:function Ph(n,r){return arguments.length>1?this.each((null==r?Oh:"function"==typeof r?Fh:Nh)(n,r)):this.node()[n]},classed:function Uh(n,r){var e=Bo(n+"");if(arguments.length<2){for(var i=ms(this.node()),a=-1,s=e.length;++a0)throw new Error("too late; already scheduled");return e}function fr(n,r){var e=er(n,r);if(e.state>3)throw new Error("too late; already running");return e}function er(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var jo=o(75349);function Ad(n,r){var e,i;return function(){var a=fr(this,n),s=a.tween;if(s!==e)for(var d=0,T=(i=e=s).length;d=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?vs:fr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var rf=la.prototype.constructor;function tl(n){return function(){this.style.removeProperty(n)}}function hf(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function df(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&hf(n,d,e)),i}return s._value=r,s}function _f(n){return function(r){this.textContent=n.call(this,r)}}function vf(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&_f(a)),r}return i._value=n,i}var bf=0;function pr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function el(){return++bf}var Hr=la.prototype;pr.prototype=function Cf(n){return la().transition(n)}.prototype={constructor:pr,select:function ef(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=fs(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},la.prototype.transition=function Af(n){var r,e;n instanceof pr?(r=n._id,n=n._name):(r=el(),(e=ys).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;s1&&void 0!==arguments[1]?arguments[1]:0;return{a:1,c:0,e:n,b:0,d:1,f:r}}function Ba(n,r){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(r).domain(n)}return this}"function"==typeof Symbol&&Symbol,Math,Math,Math,Math;const ul=Symbol("implicit");function Ts(){var n=new Map,r=[],e=[],i=ul;function a(s){var d=s+"",T=n.get(d);if(!T){if(i!==ul)return i;n.set(d,T=r.push(s))}return e[(T-1)%e.length]}return a.domain=function(s){if(!arguments.length)return r.slice();r=[],n=new Map;for(const d of s){const T=d+"";n.has(T)||n.set(T,r.push(d))}return a},a.range=function(s){return arguments.length?(e=Array.from(s),a):e.slice()},a.unknown=function(s){return arguments.length?(i=s,a):i},a.copy=function(){return Ts(r,e).unknown(i)},Ba.apply(a,arguments),a}var Wr=o(59695);function Vf(n,r){var e;function i(){var a,d,s=e.length,T=0,S=0;for(a=0;a=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st,a=s,!(s=s[$t=Tt<<1|Zt]))return a[$t]=d,n;if(_t=+n._x.call(null,s.data),Mt=+n._y.call(null,s.data),r===_t&&e===Mt)return d.next=s,a?a[$t]=d:n._root=d,n;do{a=a?a[$t]=new Array(4):n._root=new Array(4),(Zt=r>=(ot=(T+P)/2))?T=ot:P=ot,(Tt=e>=(st=(S+Y)/2))?S=st:Y=st}while(($t=Tt<<1|Zt)==(ie=(Mt>=st)<<1|_t>=ot));return a[ie]=s,a[$t]=d,n}function Zi(n,r,e,i,a){this.node=n,this.x0=r,this.y0=e,this.x1=i,this.y1=a}function ep(n){return n[0]}function ip(n){return n[1]}function bs(n,r,e){var i=new Cs(null==r?ep:r,null==e?ip:e,NaN,NaN,NaN,NaN);return null==n?i:i.addAll(n)}function Cs(n,r,e,i,a,s){this._x=n,this._y=r,this._x0=e,this._y0=i,this._x1=a,this._y1=s,this._root=void 0}function dl(n){for(var r={data:n.data},e=r;n=n.next;)e=e.next={data:n.data};return r}var Bi=bs.prototype=Cs.prototype;function ap(n){return n.x+n.vx}function sp(n){return n.y+n.vy}function fl(n){var r,e,i=1,a=1;function s(){for(var S,Y,ot,st,_t,Mt,Zt,P=r.length,Tt=0;Ttst+Dn||Pe_t+Dn||Te<_t-Dn;if(dn.index>ot.index){var Vn=st-dn.x-dn.vx,zn=_t-dn.y-dn.vy,mi=Vn*Vn+zn*zn;miS.r&&(S.r=S[P].r)}function T(){if(r){var S,Y,P=r.length;for(e=new Array(P),S=0;SY&&(Y=a),sot&&(ot=s));if(S>Y||P>ot)return this;for(this.cover(S,P).cover(Y,ot),e=0;en||n>=a||i>r||r>=s;)switch(P=(rY||(T=Mt.y0)>ot||(S=Mt.x1)=$t)<<1|n>=Tt)&&(Mt=st[st.length-1],st[st.length-1]=st[st.length-1-Zt],st[st.length-1-Zt]=Mt)}else{var ie=n-+this._x.call(null,_t.data),Kt=r-+this._y.call(null,_t.data),Se=ie*ie+Kt*Kt;if(Se=(st=(d+S)/2))?d=st:S=st,(Zt=ot>=(_t=(T+P)/2))?T=_t:P=_t,r=e,!(e=e[Tt=Zt<<1|Mt]))return this;if(!e.length)break;(r[Tt+1&3]||r[Tt+2&3]||r[Tt+3&3])&&(i=r,$t=Tt)}for(;e.data!==n;)if(a=e,!(e=e.next))return this;return(s=e.next)&&delete e.next,a?(s?a.next=s:delete a.next,this):r?(s?r[Tt]=s:delete r[Tt],(e=r[0]||r[1]||r[2]||r[3])&&e===(r[3]||r[2]||r[1]||r[0])&&!e.length&&(i?i[$t]=e:this._root=e),this):(this._root=s,this)},Bi.removeAll=function Jf(n){for(var r=0,e=n.length;r1?(null==Zt?T.remove(Mt):T.set(Mt,_t(Zt)),r):T.get(Mt)},find:function(Mt,Zt,Tt){var Kt,Se,Pe,Te,dn,$t=0,ie=n.length;for(null==Tt?Tt=1/0:Tt*=Tt,$t=0;$t1?(P.on(Mt,Zt),r):P.on(Mt)}}}function yl(){var n,r,e,a,i=_i(-30),s=1,d=1/0,T=.81;function S(st){var _t,Mt=n.length,Zt=bs(n,hp,dp).visitAfter(Y);for(e=st,_t=0;_t=d)){(st.data!==r||st.next)&&(0===Tt&&(Kt+=(Tt=Cr())*Tt),0===$t&&(Kt+=($t=Cr())*$t),Kt{return(n=Xr||(Xr={})).Both="both",n.Horizontal="horizontal",n.Vertical="vertical",Xr;var n})(),$r=(()=>{return(n=$r||($r={})).UpperLeft="UpperLeft",n.UpperRight="UpperRight",$r;var n})();function Yp(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function Wp(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:Yp(s.value,n,r)}),this[a]}}}}let bl=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Xp{constructor(r,e,i){"string"==typeof r&&(r=bl.find(a=>a.name===r)),this.colorDomain=r.domain,this.domain=e,this.customColors=i,this.scale=this.generateColorScheme(r,this.domain)}generateColorScheme(r,e){return"string"==typeof r&&(r=bl.find(i=>i.name===r)),Ts().range(r.domain).domain(e)}getColor(r){if(null==r)throw new Error("Value can not be null");if("function"==typeof this.customColors)return this.customColors(r);const e=r.toString();let i;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(a=>a.name.toLowerCase()===e.toLowerCase())),i?i.value:this.scale(r)}}let Qp=(()=>{class n{constructor(e,i){this.element=e,this.zone=i,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:i,offsetWidth:a}=this.element.nativeElement;i&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b))},n.\u0275dir=t.lG2({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),n})();var Qr=(()=>{return(n=Qr||(Qr={})).LEFT_TO_RIGHT="LR",n.RIGHT_TO_LEFT="RL",n.TOP_TO_BOTTOM="TB",n.BOTTOM_TO_TOM="BT",Qr;var n})();function Jr(n){return"string"==typeof n?{id:n,x:0,y:0}:n}function wl(n,r){return"number"==typeof r?n[r]:r}const Al={dagre:class Jp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(s=>s.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}return r}updateEdge(r,e){const i=r.nodes.find(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreCluster:class jp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;const e=i=>{const a=this.dagreGraph._nodes[i.id];return Object.assign(Object.assign({},i),{position:{x:a.x,y:a.y},dimension:{width:a.width,height:a.height}})};return r.clusters=(r.clusters||[]).map(e),r.nodes=r.nodes.map(e),r}updateEdge(r,e){const i=r.nodes.find(S=>S.id===e.source),a=r.nodes.find(S=>S.id===e.target),s=i.position.y<=a.position.y?-1:1;return e.points=[{x:i.position.x,y:i.position.y-s*(i.dimension.height/2)},{x:a.position.x,y:a.position.y+s*(a.dimension.height/2)}],r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreClusters=r.clusters||[],this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)this.dagreGraph.setNode(i.id,i);for(const i of this.dagreClusters)this.dagreGraph.setNode(i.id,i),i.childNodeIds.forEach(a=>{this.dagreGraph.setParent(a,i.id)});for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},dagreNodesOnly:class Kp{constructor(){this.defaultSettings={orientation:Qr.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0},this.settings={}}run(r){this.createDagreGraph(r),Wr.layout(this.dagreGraph),r.edgeLabels=this.dagreGraph._edgeLabels;for(const e in this.dagreGraph._nodes){const i=this.dagreGraph._nodes[e],a=r.nodes.find(s=>s.id===i.id);a.position={x:i.x,y:i.y},a.dimension={width:i.width,height:i.height}}for(const e of r.edges)this.updateEdge(r,e);return r}updateEdge(r,e){const i=r.nodes.find(Mt=>Mt.id===e.source),a=r.nodes.find(Mt=>Mt.id===e.target),s="BT"===this.settings.orientation||"TB"===this.settings.orientation?"y":"x",d="y"===s?"x":"y",T="y"===s?"height":"width",S=i.position[s]<=a.position[s]?-1:1,P={[d]:i.position[d],[s]:i.position[s]-S*(i.dimension[T]/2)},Y={[d]:a.position[d],[s]:a.position[s]+S*(a.dimension[T]/2)},ot=this.settings.curveDistance||this.defaultSettings.curveDistance;e.points=[P,{[d]:P[d],[s]:P[s]-S*ot},{[d]:Y[d],[s]:Y[s]+S*ot},Y];const _t=r.edgeLabels[`${e.source}\x01${e.target}\x01\0`];return _t&&(_t.points=e.points),r}createDagreGraph(r){const e=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new Wr.graphlib.Graph({compound:e.compound,multigraph:e.multigraph}),this.dagreGraph.setGraph({rankdir:e.orientation,marginx:e.marginX,marginy:e.marginY,edgesep:e.edgePadding,ranksep:e.rankPadding,nodesep:e.nodePadding,align:e.align,acyclicer:e.acyclicer,ranker:e.ranker,multigraph:e.multigraph,compound:e.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=r.nodes.map(i=>{const a=Object.assign({},i);return a.width=i.dimension.width,a.height=i.dimension.height,a.x=i.position.x,a.y=i.position.y,a}),this.dagreEdges=r.edges.map(i=>{const a=Object.assign({},i);return a.id||(a.id=mr()),a});for(const i of this.dagreNodes)i.width||(i.width=20),i.height||(i.height=30),this.dagreGraph.setNode(i.id,i);for(const i of this.dagreEdges)e.multigraph?this.dagreGraph.setEdge(i.source,i.target,i,i.id):this.dagreGraph.setEdge(i.source,i.target);return this.dagreGraph}},d3ForceDirected:class tm{constructor(){this.defaultSettings={force:xl().force("charge",yl().strength(-150)).force("collide",fl(5)),forceLink:vl().id(r=>r.id).distance(()=>100)},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.d3Graph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign({},e))],edges:[...this.inputGraph.edges.map(e=>Object.assign({},e))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.nodes(this.d3Graph.nodes).force("link",i.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(r){return this.outputGraph.nodes=this.d3Graph.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||mr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(e=>Object.assign(Object.assign({},e),{source:Jr(e.source).id,target:Jr(e.target).id,points:[{x:Jr(e.source).x,y:Jr(e.source).y},{x:Jr(e.target).x,y:Jr(e.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){this.settings.force.alphaTarget(.3).restart();const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.draggingStart={x:e.x-i.x,y:e.y-i.y},i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDrag(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(i.fx=e.x-this.draggingStart.x,i.fy=e.y-this.draggingStart.y)}onDragEnd(r,e){if(!r)return;const i=this.d3Graph.nodes.find(a=>a.id===r.id);!i||(this.settings.force.alphaTarget(0),i.fx=void 0,i.fy=void 0)}},colaForceDirected:class em{constructor(){this.defaultSettings={force:(0,vp.d3adaptor)(Object.assign(Object.assign(Object.assign({},x),c),v)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}},this.settings={},this.outputGraph$=new En.xQ}run(r){return this.inputGraph=r,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(e=>Object.assign(Object.assign({},e),{width:e.dimension?e.dimension.width:20,height:e.dimension?e.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(e=>({padding:5,groups:e.childNodeIds.map(i=>this.inputGraph.clusters.findIndex(a=>a.id===i)).filter(i=>i>=0),leaves:e.childNodeIds.map(i=>this.inputGraph.nodes.findIndex(a=>a.id===i)).filter(i=>i>=0)}))],links:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.id);if(-1!==i&&-1!==a)return Object.assign(Object.assign({},e),{source:i,target:a})}).filter(e=>!!e)],groupLinks:[...this.inputGraph.edges.map(e=>{const i=this.inputGraph.nodes.findIndex(s=>e.source===s.id),a=this.inputGraph.nodes.findIndex(s=>e.target===s.id);if(!(i>=0&&a>=0))return e}).filter(e=>!!e)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(r,e){const i=Object.assign({},this.defaultSettings,this.settings);return i.force&&i.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(r){return this.outputGraph.nodes=r.nodes.map(e=>Object.assign(Object.assign({},e),{id:e.id||mr(),position:{x:e.x,y:e.y},dimension:{width:e.dimension&&e.dimension.width||20,height:e.dimension&&e.dimension.height||20},transform:`translate(${e.x-(e.dimension&&e.dimension.width||20)/2||0}, ${e.y-(e.dimension&&e.dimension.height||20)/2||0})`})),this.outputGraph.edges=r.links.map(e=>{const i=wl(r.nodes,e.source),a=wl(r.nodes,e.target);return Object.assign(Object.assign({},e),{source:i.id,target:a.id,points:[i.bounds.rayIntersection(a.bounds.cx(),a.bounds.cy()),a.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy())]})}).concat(r.groupLinks.map(e=>{const i=r.nodes.find(T=>T.id===e.source),a=r.nodes.find(T=>T.id===e.target),s=i||r.groups.find(T=>T.id===e.source),d=a||r.groups.find(T=>T.id===e.target);return Object.assign(Object.assign({},e),{source:s.id,target:d.id,points:[s.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy())]})})),this.outputGraph.clusters=r.groups.map((e,i)=>Object.assign(Object.assign({},this.inputGraph.clusters[i]),{dimension:{width:e.bounds?e.bounds.width():20,height:e.bounds?e.bounds.height():20},position:{x:e.bounds?e.bounds.x+e.bounds.width()/2:0,y:e.bounds?e.bounds.y+e.bounds.height()/2:0}})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(r,e){const i=this.outputGraph.nodes.findIndex(s=>s.id===r.id),a=this.internalGraph.nodes[i];!a||(this.draggingStart={x:a.x-e.x,y:a.y-e.y},a.fixed=1,this.settings.force.start())}onDrag(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(s=>s.id===r.id),a=this.internalGraph.nodes[i];!a||(a.x=this.draggingStart.x+e.x,a.y=this.draggingStart.y+e.y)}onDragEnd(r,e){if(!r)return;const i=this.outputGraph.nodes.findIndex(s=>s.id===r.id),a=this.internalGraph.nodes[i];!a||(a.fixed=0)}}};let El=(()=>{class n{getLayout(e){if(Al[e])return new Al[e];throw new Error(`Unknown layout type '${e}'`)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),nm=(()=>{class n{constructor(){this.mouseWheelUp=new t.vpe,this.mouseWheelDown=new t.vpe}onMouseWheelChrome(e){this.mouseWheelFunc(e)}onMouseWheelFirefox(e){this.mouseWheelFunc(e)}onWheel(e){this.mouseWheelFunc(e)}onMouseWheelIE(e){this.mouseWheelFunc(e)}mouseWheelFunc(e){window.event&&(e=window.event);const i=Math.max(-1,Math.min(1,e.wheelDelta||-e.detail||e.deltaY||e.deltaX)),s=e.wheelDelta?i<0:i>0;(e.wheelDelta?i>0:i<0)?this.mouseWheelUp.emit(e):s&&this.mouseWheelDown.emit(e),e.returnValue=!1,e.preventDefault&&e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=t.lG2({type:n,selectors:[["","mouseWheel",""]],hostBindings:function(e,i){1&e&&t.NdJ("mousewheel",function(s){return i.onMouseWheelChrome(s)})("DOMMouseScroll",function(s){return i.onMouseWheelFirefox(s)})("wheel",function(s){return i.onWheel(s)})("onmousewheel",function(s){return i.onMouseWheelIE(s)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"}}),n})(),im=(()=>{class n{constructor(e,i,a,s){this.el=e,this.zone=i,this.cd=a,this.layoutService=s,this.nodes=[],this.clusters=[],this.links=[],this.activeEntries=[],this.draggingEnabled=!0,this.panningEnabled=!0,this.panningAxis=Xr.Both,this.enableZoom=!0,this.zoomSpeed=.1,this.minZoomLevel=.1,this.maxZoomLevel=4,this.autoZoom=!1,this.panOnZoom=!0,this.animate=!1,this.autoCenter=!1,this.enableTrackpadSupport=!1,this.showMiniMap=!1,this.miniMapMaxWidth=100,this.miniMapPosition=$r.UpperRight,this.scheme="cool",this.animations=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.zoomChange=new t.vpe,this.clickHandler=new t.vpe,this.isMouseMoveCalled=!1,this.graphSubscription=new il.w,this.subscriptions=[],this.isPanning=!1,this.isDragging=!1,this.initialized=!1,this.graphDims={width:0,height:0},this._oldLinks=[],this.oldNodes=new Set,this.oldClusters=new Set,this.transformationMatrix={a:1,c:0,e:0,b:0,d:1,f:0},this._touchLastX=null,this._touchLastY=null,this.minimapScaleCoefficient=3,this.minimapOffsetX=0,this.minimapOffsetY=0,this.isMinimapPanning=!1,this.groupResultsBy=d=>d.label}get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(e){this.zoomTo(Number(e))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(e){this.panTo(Number(e),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(e){this.panTo(null,Number(e))}ngOnInit(){this.update$&&this.subscriptions.push(this.update$.subscribe(()=>{this.update()})),this.center$&&this.subscriptions.push(this.center$.subscribe(()=>{this.center()})),this.zoomToFit$&&this.subscriptions.push(this.zoomToFit$.subscribe(()=>{this.zoomToFit()})),this.panToNode$&&this.subscriptions.push(this.panToNode$.subscribe(e=>{this.panToNodeId(e)})),this.minimapClipPathId=`minimapClip${mr()}`}ngOnChanges(e){this.basicUpdate();const{layoutSettings:a}=e;this.setLayout(this.layout),a&&this.setLayoutSettings(this.layoutSettings),this.update()}setLayout(e){this.initialized=!1,e||(e="dagre"),"string"==typeof e&&(this.layout=this.layoutService.getLayout(e),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(e){this.layout&&"string"!=typeof this.layout&&(this.layout.settings=e)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy());for(const e of this.subscriptions)e.unsubscribe();this.subscriptions=null}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new Qp(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=Xu.beta(1)),this.zone.run(()=>{this.dims=function $p({width:n,height:r}){let e=n,i=r;return e=Math.max(0,e),i=Math.max(0,i),{width:Math.floor(e),height:Math.floor(i)}}({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new il.w;const e=i=>(i.meta||(i.meta={}),i.id||(i.id=mr()),i.dimension?i.meta.forceDimensions=void 0===i.meta.forceDimensions||i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position={x:0,y:0},i.data=i.data?i.data:{},i);this.graph={nodes:this.nodes.length>0?[...this.nodes].map(e):[],clusters:this.clusters&&this.clusters.length>0?[...this.clusters].map(e):[],edges:this.links.length>0?[...this.links].map(i=>(i.id||(i.id=mr()),i)):[]},requestAnimationFrame(()=>this.draw())}draw(){if(!this.layout||"string"==typeof this.layout)return;this.applyNodeDimensions();const e=this.layout.run(this.graph),i=e instanceof rl.y?e:(0,al.of)(e);this.graphSubscription.add(i.subscribe(a=>{this.graph=a,this.tick()})),0!==this.graph.nodes.length&&i.pipe((0,Sf.P)()).subscribe(()=>this.applyNodeDimensions())}tick(){const e=new Set;this.graph.nodes.map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),e.add(s.id)});const i=new Set;(this.graph.clusters||[]).map(s=>{s.transform=`translate(${s.position.x-s.dimension.width/2||0}, ${s.position.y-s.dimension.height/2||0})`,s.data||(s.data={}),s.data.color=this.colors.getColor(this.groupResultsBy(s)),i.add(s.id)}),setTimeout(()=>{this.oldNodes=e,this.oldClusters=i},500);const a=[];for(const s in this.graph.edgeLabels){const d=this.graph.edgeLabels[s],T=s.replace(/[^\w-]*/g,""),S=this.layout&&"string"!=typeof this.layout&&this.layout.settings&&this.layout.settings.multigraph;let P=this._oldLinks.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);const Y=this.graph.edges.find(S?Zt=>`${Zt.source}${Zt.target}${Zt.id}`===T:Zt=>`${Zt.source}${Zt.target}`===T);P?P.data&&Y&&Y.data&&JSON.stringify(P.data)!==JSON.stringify(Y.data)&&(P.data=Y.data):P=Y||d,P.oldLine=P.line;const ot=d.points,st=this.generateLine(ot),_t=Object.assign({},P);_t.line=st,_t.points=ot,this.updateMidpointOnEdge(_t,ot);const Mt=ot[Math.floor(ot.length/2)];Mt&&(_t.textTransform=`translate(${Mt.x||0},${Mt.y||0})`),_t.textAngle=0,_t.oldLine||(_t.oldLine=_t.line),this.calcDominantBaseline(_t),a.push(_t)}this.graph.edges=a,this.graph.edges&&(this._oldLinks=this.graph.edges.map(s=>{const d=Object.assign({},s);return d.oldLine=s.line,d})),this.updateMinimap(),this.autoZoom&&this.zoomToFit(),this.autoCenter&&this.center(),requestAnimationFrame(()=>this.redrawLines()),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case $r.UpperLeft:return"";case $r.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let e=1/0,i=-1/0,a=1/0,s=-1/0;for(let d=0;di?T.position.x+T.dimension.width:i,s=T.position.y+T.dimension.height>s?T.position.y+T.dimension.height:s}e-=100,a-=100,i+=100,s+=100,this.graphDims.width=i-e,this.graphDims.height=s-a,this.minimapOffsetX=e,this.minimapOffsetY=a}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.map(e=>{const i=e.nativeElement,a=this.graph.nodes.find(d=>d.id===i.id);if(!a)return;let s;try{if(s=i.getBBox(),!s.width||!s.height)return}catch(d){return}if(a.dimension.height=this.nodeHeight?a.dimension.height&&a.meta.forceDimensions?a.dimension.height:this.nodeHeight:a.dimension.height&&a.meta.forceDimensions?a.dimension.height:s.height,this.nodeMaxHeight&&(a.dimension.height=Math.max(a.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(a.dimension.height=Math.min(a.dimension.height,this.nodeMinHeight)),this.nodeWidth)a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:this.nodeWidth;else if(i.getElementsByTagName("text").length){let d;try{for(const T of i.getElementsByTagName("text")){const S=T.getBBox();d?(S.width>d.width&&(d.width=S.width),S.height>d.height&&(d.height=S.height)):d=S}}catch(T){return}a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:d.width+20}else a.dimension.width=a.dimension.width&&a.meta.forceDimensions?a.dimension.width:s.width;this.nodeMaxWidth&&(a.dimension.width=Math.max(a.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(a.dimension.width=Math.min(a.dimension.width,this.nodeMinWidth))})}redrawLines(e=this.animate){this.linkElements.map(i=>{const a=this.graph.edges.find(s=>s.id===i.nativeElement.id);a&&(Ao(i.nativeElement).select(".line").attr("d",a.oldLine).transition().ease(Mo).duration(e?500:0).attr("d",a.line),Ao(this.el.nativeElement).select(`#${a.id}`).attr("d",a.oldTextPath).transition().ease(Mo).duration(e?500:0).attr("d",a.textPath),this.updateMidpointOnEdge(a,a.points))})}calcDominantBaseline(e){const i=e.points[0],a=e.points[e.points.length-1];e.oldTextPath=e.textPath,a.xa.x).y(a=>a.y).curve(this.curve)(e)}onZoom(e,i){if(this.enableTrackpadSupport&&!e.ctrlKey)return void this.pan(-1*e.deltaX,-1*e.deltaY);const a=1+("in"===i?this.zoomSpeed:-this.zoomSpeed),s=this.zoomLevel*a;if(!(s<=this.minZoomLevel||s>=this.maxZoomLevel)&&this.enableZoom)if(!0===this.panOnZoom&&e){const d=e.clientX,T=e.clientY,S=this.el.nativeElement.querySelector("svg"),P=S.querySelector("g.chart"),Y=S.createSVGPoint();Y.x=d,Y.y=T;const ot=Y.matrixTransform(P.getScreenCTM().inverse());this.pan(ot.x,ot.y,!0),this.zoom(a),this.pan(-ot.x,-ot.y,!0)}else this.zoom(a)}pan(e,i,a=!1){const s=a?1:this.zoomLevel;this.transformationMatrix=ha(this.transformationMatrix,cl(e/s,i/s)),this.updateTransform()}panTo(e,i){null==e||isNaN(e)||null==i||isNaN(i)||(this.transformationMatrix=ha(this.transformationMatrix,cl((-this.panOffsetX-e*this.zoomLevel+this.dims.width/2)/this.zoomLevel,(-this.panOffsetY-i*this.zoomLevel+this.dims.height/2)/this.zoomLevel)),this.updateTransform())}zoom(e){this.transformationMatrix=ha(this.transformationMatrix,function Pf(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return Ff(r)&&(r=n),{a:n,c:0,e:0,b:0,d:r,f:0}}(e,e)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(e){this.transformationMatrix.a=isNaN(e)?this.transformationMatrix.a:Number(e),this.transformationMatrix.d=isNaN(e)?this.transformationMatrix.d:Number(e),this.zoomChange.emit(this.zoomLevel),this.updateTransform(),this.update()}onDrag(e){if(!this.draggingEnabled)return;const i=this.draggingNode;this.layout&&"string"!=typeof this.layout&&this.layout.onDrag&&this.layout.onDrag(i,e),i.position.x+=e.movementX/this.zoomLevel,i.position.y+=e.movementY/this.zoomLevel,i.transform=`translate(${i.position.x-i.dimension.width/2}, ${i.position.y-i.dimension.height/2})`;for(const d of this.graph.edges)if((d.target===i.id||d.source===i.id||d.target.id===i.id||d.source.id===i.id)&&this.layout&&"string"!=typeof this.layout){const T=this.layout.updateEdge(this.graph,d),S=T instanceof rl.y?T:(0,al.of)(T);this.graphSubscription.add(S.subscribe(P=>{this.graph=P,this.redrawEdge(d)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(e){const i=this.generateLine(e.points);this.calcDominantBaseline(e),e.oldLine=e.line,e.line=i}updateTransform(){this.transform=function Zf(n){return function ll(n){return"matrix("+n.a+","+n.b+","+n.c+","+n.d+","+n.e+","+n.f+")"}(n)}(function Gf(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e10;return{a:Math.round(n.a*r)/r,b:Math.round(n.b*r)/r,c:Math.round(n.c*r)/r,d:Math.round(n.d*r)/r,e:Math.round(n.e*r)/r,f:Math.round(n.f*r)/r}}(this.transformationMatrix,100))}onClick(e){this.select.emit(e)}onActivate(e){this.activeEntries.indexOf(e)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const i=this.activeEntries.indexOf(e);this.activeEntries.splice(i,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(e=>this.groupResultsBy(e)).reduce((e,i)=>-1!==e.indexOf(i)?e:e.concat([i]),[]).sort()}trackLinkBy(e,i){return i.id}trackNodeBy(e,i){return i.id}setColors(){this.colors=new Xp(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(e){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,e):this.isDragging&&this.draggingEnabled&&this.onDrag(e)}onMouseDown(e){this.isMouseMoveCalled=!1}graphClick(e){this.isMouseMoveCalled||this.clickHandler.emit(e)}onTouchStart(e){this._touchLastX=e.changedTouches[0].clientX,this._touchLastY=e.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(e){if(this.isPanning&&this.panningEnabled){const i=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY,s=i-this._touchLastX,d=a-this._touchLastY;this._touchLastX=i,this._touchLastY=a,this.pan(s,d)}}onTouchEnd(e){this.isPanning=!1}onMouseUp(e){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&"string"!=typeof this.layout&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,e)}onNodeMouseDown(e,i){!this.draggingEnabled||(this.isDragging=!0,this.draggingNode=i,this.layout&&"string"!=typeof this.layout&&this.layout.onDragStart&&this.layout.onDragStart(i,e))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(e){this.panTo((e.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient))*this.minimapScaleCoefficient,(e.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient)*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(){let a=Math.min(this.dims.height/this.graphDims.height,this.dims.width/this.graphDims.width,1);athis.maxZoomLevel&&(a=this.maxZoomLevel),a!==this.zoomLevel&&(this.zoomLevel=a,this.updateTransform(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(e){const i=this.graph.nodes.find(a=>a.id===e);!i||this.panTo(i.position.x,i.position.y)}panWithConstraints(e,i){let a=i.movementX,s=i.movementY;switch(this.isMinimapPanning&&(a=-this.minimapScaleCoefficient*a*this.zoomLevel,s=-this.minimapScaleCoefficient*s*this.zoomLevel),e){case Xr.Horizontal:this.pan(a,0);break;case Xr.Vertical:this.pan(0,s);break;default:this.pan(a,s)}}updateMidpointOnEdge(e,i){if(e&&i)if(i.length%2==1)e.midPoint=i[Math.floor(i.length/2)];else{const a=i[i.length/2],s=i[i.length/2-1];e.midPoint={x:(a.x+s.x)/2,y:(a.y+s.y)/2}}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{const e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let e,i;const a=this.el.nativeElement;if(null!==a.parentNode){const s=a.parentNode.getBoundingClientRect();e=s.width,i=s.height}return e&&i?{width:e,height:i}:null}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){const i=(0,sl.R)(window,"resize").pipe((0,$e.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=i}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(El))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-graph"]],contentQueries:function(e,i,a){if(1&e&&(t.Suo(a,yp,5),t.Suo(a,Tp,5),t.Suo(a,bp,5),t.Suo(a,Cp,5),t.Suo(a,wp,5)),2&e){let s;t.iGM(s=t.CRH())&&(i.linkTemplate=s.first),t.iGM(s=t.CRH())&&(i.nodeTemplate=s.first),t.iGM(s=t.CRH())&&(i.clusterTemplate=s.first),t.iGM(s=t.CRH())&&(i.defsTemplate=s.first),t.iGM(s=t.CRH())&&(i.miniMapNodeTemplate=s.first)}},viewQuery:function(e,i){if(1&e&&(t.Gf(Ap,5),t.Gf(Ep,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.nodeElements=a),t.iGM(a=t.CRH())&&(i.linkElements=a)}},hostBindings:function(e,i){1&e&&t.NdJ("mousemove",function(s){return i.onMouseMove(s)},!1,t.evT)("mousedown",function(s){return i.onMouseDown(s)},!1,t.evT)("click",function(s){return i.graphClick(s)},!1,t.evT)("touchmove",function(s){return i.onTouchMove(s)},!1,t.evT)("mouseup",function(s){return i.onMouseUp(s)},!1,t.evT)},inputs:{nodes:"nodes",clusters:"clusters",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",animations:"animations",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler"},features:[t.TTD],ngContentSelectors:Hp,decls:6,vars:11,consts:[["mouseWheel","",1,"ngx-charts-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-charts"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"id","click"],["clusterElement",""],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"link-group",3,"id"],["linkElement",""],["class","edge",4,"ngIf"],[1,"edge"],[1,"node-group",3,"id","click","mousedown"],["nodeElement",""],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(e,i){1&e&&(t.F$t(),t.TgZ(0,"div",0),t.NdJ("mouseWheelUp",function(s){return i.onZoom(s,"in")})("mouseWheelDown",function(s){return i.onZoom(s,"out")}),t.O4$(),t.TgZ(1,"svg",1),t.YNc(2,Zp,12,12,"g",2),t.TgZ(3,"clipPath"),t._UZ(4,"rect"),t.qZA(),t.YNc(5,zp,6,15,"g",3),t.qZA(),t.qZA()),2&e&&(t.Udp("width",i.width,"px"),t.Q6J("@animationState","active")("@.disabled",!i.animations),t.xp6(1),t.uIk("width",i.width)("height",i.height),t.xp6(1),t.Q6J("ngIf",i.initialized&&i.graph),t.xp6(1),t.uIk("id",i.minimapClipPathId),t.xp6(1),t.uIk("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),t.xp6(1),t.Q6J("ngIf",i.showMiniMap))},directives:[nm,_.O5,_.tP,_.sg],styles:[".minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .cluster rect{opacity:.2}\n"],encapsulation:2,data:{animation:[(0,we.X$)("animationState",[(0,we.eR)(":enter",[(0,we.oB)({opacity:0}),(0,we.jt)("500ms 100ms",(0,we.oB)({opacity:1}))])])]},changeDetection:0}),(0,Sn.gn)([Wp(500)],n.prototype,"updateMinimap",null),n})(),rm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[El],imports:[[_.ez]]}),n})(),am=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez],rm]}),n})();var Sl=o(47429);function Es(n,r,e){n.prototype=r.prototype=e,e.constructor=n}function Dl(n,r){var e=Object.create(n.prototype);for(var i in r)e[i]=r[i];return e}function fa(){}o(52016);var Va=1/.7,jr="\\s*([+-]?\\d+)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",sr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lm=/^#([0-9a-f]{3,8})$/,cm=new RegExp("^rgb\\("+[jr,jr,jr]+"\\)$"),um=new RegExp("^rgb\\("+[sr,sr,sr]+"\\)$"),hm=new RegExp("^rgba\\("+[jr,jr,jr,ma]+"\\)$"),dm=new RegExp("^rgba\\("+[sr,sr,sr,ma]+"\\)$"),fm=new RegExp("^hsl\\("+[ma,sr,sr]+"\\)$"),pm=new RegExp("^hsla\\("+[ma,sr,sr,ma]+"\\)$"),Ll={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function kl(){return this.rgb().formatHex()}function Il(){return this.rgb().formatRgb()}function Fr(n){var r,e;return n=(n+"").trim().toLowerCase(),(r=lm.exec(n))?(e=r[1].length,r=parseInt(r[1],16),6===e?Ml(r):3===e?new Wi(r>>8&15|r>>4&240,r>>4&15|240&r,(15&r)<<4|15&r,1):8===e?za(r>>24&255,r>>16&255,r>>8&255,(255&r)/255):4===e?za(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|240&r,((15&r)<<4|15&r)/255):null):(r=cm.exec(n))?new Wi(r[1],r[2],r[3],1):(r=um.exec(n))?new Wi(255*r[1]/100,255*r[2]/100,255*r[3]/100,1):(r=hm.exec(n))?za(r[1],r[2],r[3],r[4]):(r=dm.exec(n))?za(255*r[1]/100,255*r[2]/100,255*r[3]/100,r[4]):(r=fm.exec(n))?Fl(r[1],r[2]/100,r[3]/100,1):(r=pm.exec(n))?Fl(r[1],r[2]/100,r[3]/100,r[4]):Ll.hasOwnProperty(n)?Ml(Ll[n]):"transparent"===n?new Wi(NaN,NaN,NaN,0):null}function Ml(n){return new Wi(n>>16&255,n>>8&255,255&n,1)}function za(n,r,e,i){return i<=0&&(n=r=e=NaN),new Wi(n,r,e,i)}function gm(n){return n instanceof fa||(n=Fr(n)),n?new Wi((n=n.rgb()).r,n.g,n.b,n.opacity):new Wi}function Ha(n,r,e,i){return 1===arguments.length?gm(n):new Wi(n,r,e,null==i?1:i)}function Wi(n,r,e,i){this.r=+n,this.g=+r,this.b=+e,this.opacity=+i}function Ol(){return"#"+Ss(this.r)+Ss(this.g)+Ss(this.b)}function Nl(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===n?")":", "+n+")")}function Ss(n){return((n=Math.max(0,Math.min(255,Math.round(n)||0)))<16?"0":"")+n.toString(16)}function Fl(n,r,e,i){return i<=0?n=r=e=NaN:e<=0||e>=1?n=r=NaN:r<=0&&(n=NaN),new or(n,r,e,i)}function Pl(n){if(n instanceof or)return new or(n.h,n.s,n.l,n.opacity);if(n instanceof fa||(n=Fr(n)),!n)return new or;if(n instanceof or)return n;var r=(n=n.rgb()).r/255,e=n.g/255,i=n.b/255,a=Math.min(r,e,i),s=Math.max(r,e,i),d=NaN,T=s-a,S=(s+a)/2;return T?(d=r===s?(e-i)/T+6*(e0&&S<1?0:d,new or(d,T,S,n.opacity)}function or(n,r,e,i){this.h=+n,this.s=+r,this.l=+e,this.opacity=+i}function Ds(n,r,e){return 255*(n<60?r+(e-r)*n/60:n<180?e:n<240?r+(e-r)*(240-n)/60:r)}function Rl(n,r,e,i,a){var s=n*n,d=s*n;return((1-3*n+3*s-d)*r+(4-6*s+3*d)*e+(1+3*n+3*s-3*d)*i+d*a)/6}Es(fa,Fr,{copy:function(n){return Object.assign(new this.constructor,this,n)},displayable:function(){return this.rgb().displayable()},hex:kl,formatHex:kl,formatHsl:function mm(){return Pl(this).formatHsl()},formatRgb:Il,toString:Il}),Es(Wi,Ha,Dl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new Wi(this.r*n,this.g*n,this.b*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new Wi(this.r*n,this.g*n,this.b*n,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ol,formatHex:Ol,formatRgb:Nl,toString:Nl})),Es(or,function _m(n,r,e,i){return 1===arguments.length?Pl(n):new or(n,r,e,null==i?1:i)},Dl(fa,{brighter:function(n){return n=null==n?Va:Math.pow(Va,n),new or(this.h,this.s,this.l*n,this.opacity)},darker:function(n){return n=null==n?.7:Math.pow(.7,n),new or(this.h,this.s,this.l*n,this.opacity)},rgb:function(){var n=this.h%360+360*(this.h<0),r=isNaN(n)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*r,a=2*e-i;return new Wi(Ds(n>=240?n-240:n+120,a,i),Ds(n,a,i),Ds(n<120?n+240:n-120,a,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var n=this.opacity;return(1===(n=isNaN(n)?1:Math.max(0,Math.min(1,n)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===n?")":", "+n+")")}}));const Ls=n=>()=>n;function Bl(n,r){var e=r-n;return e?function Zl(n,r){return function(e){return n+e*r}}(n,e):Ls(isNaN(n)?r:n)}const Ya=function n(r){var e=function Tm(n){return 1==(n=+n)?Bl:function(r,e){return e-r?function ym(n,r,e){return n=Math.pow(n,e),r=Math.pow(r,e)-n,e=1/e,function(i){return Math.pow(n+i*r,e)}}(r,e,n):Ls(isNaN(r)?e:r)}}(r);function i(a,s){var d=e((a=Ha(a)).r,(s=Ha(s)).r),T=e(a.g,s.g),S=e(a.b,s.b),P=Bl(a.opacity,s.opacity);return function(Y){return a.r=d(Y),a.g=T(Y),a.b=S(Y),a.opacity=P(Y),a+""}}return i.gamma=n,i}(1);function Ul(n){return function(r){var d,T,e=r.length,i=new Array(e),a=new Array(e),s=new Array(e);for(d=0;d=1?(e=1,r-1):Math.floor(e*r),a=n[i],s=n[i+1];return Rl((e-i/r)*r,i>0?n[i-1]:2*a-s,a,s,ie&&(s=r.slice(e,s),T[d]?T[d]+=s:T[++d]=s),(i=i[0])===(a=a[0])?T[d]?T[d]+=a:T[++d]=a:(T[++d]=null,S.push({i:d,x:lr(i,a)})),e=Is.lastIndex;return e0)throw new Error("too late; already scheduled");return e}function cr(n,r){var e=ir(n,r);if(e.state>3)throw new Error("too late; already running");return e}function ir(n,r){var e=n.__transition;if(!e||!(e=e[r]))throw new Error("transition not found");return e}var Qa,Xl=180/Math.PI,Rs={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $l(n,r,e,i,a,s){var d,T,S;return(d=Math.sqrt(n*n+r*r))&&(n/=d,r/=d),(S=n*e+r*i)&&(e-=n*S,i-=r*S),(T=Math.sqrt(e*e+i*i))&&(e/=T,i/=T,S/=T),n*i180?Y+=360:Y-P>180&&(P+=360),st.push({i:ot.push(a(ot)+"rotate(",null,i)-2,x:lr(P,Y)})):Y&&ot.push(a(ot)+"rotate("+Y+i)}(P.rotate,Y.rotate,ot,st),function T(P,Y,ot,st){P!==Y?st.push({i:ot.push(a(ot)+"skewX(",null,i)-2,x:lr(P,Y)}):Y&&ot.push(a(ot)+"skewX("+Y+i)}(P.skewX,Y.skewX,ot,st),function S(P,Y,ot,st,_t,Mt){if(P!==ot||Y!==st){var Zt=_t.push(a(_t)+"scale(",null,",",null,")");Mt.push({i:Zt-4,x:lr(P,ot)},{i:Zt-2,x:lr(Y,st)})}else(1!==ot||1!==st)&&_t.push(a(_t)+"scale("+ot+","+st+")")}(P.scaleX,P.scaleY,Y.scaleX,Y.scaleY,ot,st),P=Y=null,function(_t){for(var Tt,Mt=-1,Zt=st.length;++Mt=0&&(r=r.slice(0,e)),!r||"start"===r})}(r)?Fs:cr;return function(){var d=s(this,n),T=d.on;T!==i&&(a=(i=T).copy()).on(r,e),d.on=a}}var mg=o(29742),_g=o(32037),xg=ga.ZP.prototype.constructor,_a=o(24476);function ql(n){return function(){this.style.removeProperty(n)}}function Eg(n,r,e){return function(i){this.style.setProperty(n,r.call(this,i),e)}}function Sg(n,r,e){var i,a;function s(){var d=r.apply(this,arguments);return d!==a&&(i=(a=d)&&Eg(n,d,e)),i}return s._value=r,s}function Mg(n){return function(r){this.textContent=n.call(this,r)}}function Og(n){var r,e;function i(){var a=n.apply(this,arguments);return a!==e&&(r=(e=a)&&Mg(a)),r}return i._value=n,i}var Rg=0;function gr(n,r,e,i){this._groups=n,this._parents=r,this._name=e,this._id=i}function Kl(){return++Rg}var Pr=ga.ZP.prototype;gr.prototype=function Zg(n){return(0,ga.ZP)().transition(n)}.prototype={constructor:gr,select:function gg(n){var r=this._name,e=this._id;"function"!=typeof n&&(n=(0,mg.Z)(n));for(var i=this._groups,a=i.length,s=new Array(a),d=0;d2&&i.state<5,i.state=6,i.timer.stop(),i.on.call(a?"interrupt":"cancel",n,n.__data__,i.index,i.group),delete e[d]):s=!1;s&&delete n.__transition}}(this,n)})},ga.ZP.prototype.transition=function Gg(n){var r,e;n instanceof gr?(r=n._id,n=n._name):(r=Kl(),(e=Bg).time=(0,tr.zO)(),n=null==n?null:n+"");for(var i=this._groups,a=i.length,s=0;sr?1:n>=r?0:NaN}function Ys(n){let r=n,e=n;function i(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)<0?S=Y+1:P=Y}return S}return 1===n.length&&(r=(d,T)=>n(d)-T,e=function Kg(n){return(r,e)=>ac(n(r),e)}(n)),{left:i,center:function s(d,T,S,P){null==S&&(S=0),null==P&&(P=d.length);const Y=i(d,T,S,P-1);return Y>S&&r(d[Y-1],T)>-r(d[Y],T)?Y-1:Y},right:function a(d,T,S,P){for(null==S&&(S=0),null==P&&(P=d.length);S>>1;e(d[Y],T)>0?P=Y:S=Y+1}return S}}}["w","e"].map(va),["n","s"].map(va),["n","w","e","s","nw","ne","sw","se"].map(va);var Ws=Math.sqrt(50),Xs=Math.sqrt(10),$s=Math.sqrt(2);function Qs(n,r,e){var i=Math.abs(r-n)/Math.max(0,e),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),s=i/a;return s>=Ws?a*=10:s>=Xs?a*=5:s>=$s&&(a*=2),r0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return qs.setTime(+s),Ks.setTime(+d),n(qs),n(Ks),Math.floor(e(qs,Ks))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var qa=Ei(function(){},function(n,r){n.setTime(+n+r)},function(n,r){return r-n});qa.every=function(n){return n=Math.floor(n),isFinite(n)&&n>0?n>1?Ei(function(r){r.setTime(Math.floor(r/n)*n)},function(r,e){r.setTime(+r+e*n)},function(r,e){return(e-r)/n}):qa:null};const e_=qa;const xa=Ei(function(n){n.setTime(n-n.getMilliseconds())},function(n,r){n.setTime(+n+r*vr)},function(n,r){return(r-n)/vr},function(n){return n.getUTCSeconds()});const uc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getMinutes()});const dc=Ei(function(n){n.setTime(n-n.getMilliseconds()-n.getSeconds()*vr-n.getMinutes()*Ji)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getHours()});const pc=Ei(n=>n.setHours(0,0,0,0),(n,r)=>n.setDate(n.getDate()+r),(n,r)=>(r-n-(r.getTimezoneOffset()-n.getTimezoneOffset())*Ji)/Rr,n=>n.getDate()-1);function Zr(n){return Ei(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-(e.getTimezoneOffset()-r.getTimezoneOffset())*Ji)/Js})}var to=Zr(0);const gc=(Zr(1),Zr(2),Zr(3),Zr(4),Zr(5),Zr(6),Ei(function(n){n.setDate(1),n.setHours(0,0,0,0)},function(n,r){n.setMonth(n.getMonth()+r)},function(n,r){return r.getMonth()-n.getMonth()+12*(r.getFullYear()-n.getFullYear())},function(n){return n.getMonth()}));var eo=Ei(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});eo.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const _c=eo;const l_=Ei(function(n){n.setUTCSeconds(0,0)},function(n,r){n.setTime(+n+r*Ji)},function(n,r){return(r-n)/Ji},function(n){return n.getUTCMinutes()});const c_=Ei(function(n){n.setUTCMinutes(0,0,0)},function(n,r){n.setTime(+n+r*xr)},function(n,r){return(r-n)/xr},function(n){return n.getUTCHours()});const u_=Ei(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/Rr},function(n){return n.getUTCDate()-1});function Br(n){return Ei(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Js})}var Tc=Br(0);const __=(Br(1),Br(2),Br(3),Br(4),Br(5),Br(6),Ei(function(n){n.setUTCDate(1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCMonth(n.getUTCMonth()+r)},function(n,r){return r.getUTCMonth()-n.getUTCMonth()+12*(r.getUTCFullYear()-n.getUTCFullYear())},function(n){return n.getUTCMonth()}));var no=Ei(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});no.every=function(n){return isFinite(n=Math.floor(n))&&n>0?Ei(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const v_=no;function Cc(n,r,e,i,a,s){const d=[[xa,1,vr],[xa,5,5e3],[xa,15,15e3],[xa,30,3e4],[s,1,Ji],[s,5,5*Ji],[s,15,15*Ji],[s,30,30*Ji],[a,1,xr],[a,3,3*xr],[a,6,6*xr],[a,12,12*xr],[i,1,Rr],[i,2,2*Rr],[e,1,Js],[r,1,oc],[r,3,3*oc],[n,1,js]];function S(P,Y,ot){const st=Math.abs(Y-P)/ot,_t=Ys(([,,Tt])=>Tt).right(d,st);if(_t===d.length)return n.every(Qs(P/js,Y/js,ot));if(0===_t)return e_.every(Math.max(Qs(P,Y,ot),1));const[Mt,Zt]=d[st/d[_t-1][2]0))return S;do{S.push(P=new Date(+s)),r(s,T),n(s)}while(P=d)for(;n(d),!s(d);)d.setTime(d-1)},function(d,T){if(d>=d)if(T<0)for(;++T<=0;)for(;r(d,-1),!s(d););else for(;--T>=0;)for(;r(d,1),!s(d););})},e&&(a.count=function(s,d){return io.setTime(+s),ro.setTime(+d),n(io),n(ro),Math.floor(e(io,ro))},a.every=function(s){return s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(i?function(d){return i(d)%s==0}:function(d){return a.count(0,d)%s==0}):a:null}),a}var Ec=6048e5;function Ur(n){return yr(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-n)%7),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCDate(r.getUTCDate()+7*e)},function(r,e){return(e-r)/Ec})}var Sc=Ur(0),Ka=Ur(1),ts=(Ur(2),Ur(3),Ur(4));const Lc=(Ur(5),Ur(6),yr(function(n){n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCDate(n.getUTCDate()+r)},function(n,r){return(r-n)/864e5},function(n){return n.getUTCDate()-1}));function Gr(n){return yr(function(r){r.setDate(r.getDate()-(r.getDay()+7-n)%7),r.setHours(0,0,0,0)},function(r,e){r.setDate(r.getDate()+7*e)},function(r,e){return(e-r-6e4*(e.getTimezoneOffset()-r.getTimezoneOffset()))/Ec})}var kc=Gr(0),es=Gr(1),ns=(Gr(2),Gr(3),Gr(4));const Mc=(Gr(5),Gr(6),yr(function(n){n.setHours(0,0,0,0)},function(n,r){n.setDate(n.getDate()+r)},function(n,r){return(r-n-6e4*(r.getTimezoneOffset()-n.getTimezoneOffset()))/864e5},function(n){return n.getDate()-1}));var ao=yr(function(n){n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,r){n.setFullYear(n.getFullYear()+r)},function(n,r){return r.getFullYear()-n.getFullYear()},function(n){return n.getFullYear()});ao.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(function(r){r.setFullYear(Math.floor(r.getFullYear()/n)*n),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,e){r.setFullYear(r.getFullYear()+e*n)}):null};const ya=ao;var so=yr(function(n){n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,r){n.setUTCFullYear(n.getUTCFullYear()+r)},function(n,r){return r.getUTCFullYear()-n.getUTCFullYear()},function(n){return n.getUTCFullYear()});so.every=function(n){return isFinite(n=Math.floor(n))&&n>0?yr(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/n)*n),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,e){r.setUTCFullYear(r.getUTCFullYear()+e*n)}):null};const Ta=so;function oo(n){if(0<=n.y&&n.y<100){var r=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return r.setFullYear(n.y),r}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function lo(n){if(0<=n.y&&n.y<100){var r=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return r.setUTCFullYear(n.y),r}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function ba(n,r,e){return{y:n,m:r,d:e,H:0,M:0,S:0,L:0}}var Oc={"-":"",_:" ",0:"0"},Si=/^\s*\d+/,k_=/^%/,I_=/[\\^$*+?|[\]().{}]/g;function Gn(n,r,e){var i=n<0?"-":"",a=(i?-n:n)+"",s=a.length;return i+(s68?1900:2e3),e+i[0].length):-1}function U_(n,r,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(e,e+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function G_(n,r,e){var i=Si.exec(r.slice(e,e+1));return i?(n.q=3*i[0]-3,e+i[0].length):-1}function V_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.m=i[0]-1,e+i[0].length):-1}function Nc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.d=+i[0],e+i[0].length):-1}function z_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.m=0,n.d=+i[0],e+i[0].length):-1}function Fc(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.H=+i[0],e+i[0].length):-1}function H_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.M=+i[0],e+i[0].length):-1}function Y_(n,r,e){var i=Si.exec(r.slice(e,e+2));return i?(n.S=+i[0],e+i[0].length):-1}function W_(n,r,e){var i=Si.exec(r.slice(e,e+3));return i?(n.L=+i[0],e+i[0].length):-1}function X_(n,r,e){var i=Si.exec(r.slice(e,e+6));return i?(n.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function $_(n,r,e){var i=k_.exec(r.slice(e,e+1));return i?e+i[0].length:-1}function Q_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.Q=+i[0],e+i[0].length):-1}function J_(n,r,e){var i=Si.exec(r.slice(e));return i?(n.s=+i[0],e+i[0].length):-1}function Pc(n,r){return Gn(n.getDate(),r,2)}function j_(n,r){return Gn(n.getHours(),r,2)}function q_(n,r){return Gn(n.getHours()%12||12,r,2)}function K_(n,r){return Gn(1+Mc.count(ya(n),n),r,3)}function Rc(n,r){return Gn(n.getMilliseconds(),r,3)}function tv(n,r){return Rc(n,r)+"000"}function ev(n,r){return Gn(n.getMonth()+1,r,2)}function nv(n,r){return Gn(n.getMinutes(),r,2)}function iv(n,r){return Gn(n.getSeconds(),r,2)}function rv(n){var r=n.getDay();return 0===r?7:r}function av(n,r){return Gn(kc.count(ya(n)-1,n),r,2)}function sv(n,r){var e=n.getDay();return n=e>=4||0===e?ns(n):ns.ceil(n),Gn(ns.count(ya(n),n)+(4===ya(n).getDay()),r,2)}function ov(n){return n.getDay()}function lv(n,r){return Gn(es.count(ya(n)-1,n),r,2)}function cv(n,r){return Gn(n.getFullYear()%100,r,2)}function uv(n,r){return Gn(n.getFullYear()%1e4,r,4)}function hv(n){var r=n.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Gn(r/60|0,"0",2)+Gn(r%60,"0",2)}function Zc(n,r){return Gn(n.getUTCDate(),r,2)}function dv(n,r){return Gn(n.getUTCHours(),r,2)}function fv(n,r){return Gn(n.getUTCHours()%12||12,r,2)}function pv(n,r){return Gn(1+Lc.count(Ta(n),n),r,3)}function Bc(n,r){return Gn(n.getUTCMilliseconds(),r,3)}function mv(n,r){return Bc(n,r)+"000"}function gv(n,r){return Gn(n.getUTCMonth()+1,r,2)}function _v(n,r){return Gn(n.getUTCMinutes(),r,2)}function vv(n,r){return Gn(n.getUTCSeconds(),r,2)}function xv(n){var r=n.getUTCDay();return 0===r?7:r}function yv(n,r){return Gn(Sc.count(Ta(n)-1,n),r,2)}function Tv(n,r){var e=n.getUTCDay();return n=e>=4||0===e?ts(n):ts.ceil(n),Gn(ts.count(Ta(n),n)+(4===Ta(n).getUTCDay()),r,2)}function bv(n){return n.getUTCDay()}function Cv(n,r){return Gn(Ka.count(Ta(n)-1,n),r,2)}function wv(n,r){return Gn(n.getUTCFullYear()%100,r,2)}function Av(n,r){return Gn(n.getUTCFullYear()%1e4,r,4)}function Ev(){return"+0000"}function Uc(){return"%"}function Gc(n){return+n}function Vc(n){return Math.floor(+n/1e3)}!function kv(n){(function L_(n){var r=n.dateTime,e=n.date,i=n.time,a=n.periods,s=n.days,d=n.shortDays,T=n.months,S=n.shortMonths,P=Ca(a),Y=wa(a),ot=Ca(s),st=wa(s),_t=Ca(d),Mt=wa(d),Zt=Ca(T),Tt=wa(T),$t=Ca(S),ie=wa(S),Kt={a:function Ti(Ee){return d[Ee.getDay()]},A:function dr(Ee){return s[Ee.getDay()]},b:function bi(Ee){return S[Ee.getMonth()]},B:function Ci(Ee){return T[Ee.getMonth()]},c:null,d:Pc,e:Pc,f:tv,H:j_,I:q_,j:K_,L:Rc,m:ev,M:nv,p:function oi(Ee){return a[+(Ee.getHours()>=12)]},q:function li(Ee){return 1+~~(Ee.getMonth()/3)},Q:Gc,s:Vc,S:iv,u:rv,U:av,V:sv,w:ov,W:lv,x:null,X:null,y:cv,Y:uv,Z:hv,"%":Uc},Se={a:function Ea(Ee){return d[Ee.getUTCDay()]},A:function aa(Ee){return s[Ee.getUTCDay()]},b:function sa(Ee){return S[Ee.getUTCMonth()]},B:function oa(Ee){return T[Ee.getUTCMonth()]},c:null,d:Zc,e:Zc,f:mv,H:dv,I:fv,j:pv,L:Bc,m:gv,M:_v,p:function Fi(Ee){return a[+(Ee.getUTCHours()>=12)]},q:function os(Ee){return 1+~~(Ee.getUTCMonth()/3)},Q:Gc,s:Vc,S:vv,u:xv,U:yv,V:Tv,w:bv,W:Cv,x:null,X:null,y:wv,Y:Av,Z:Ev,"%":Uc},Pe={a:function Vn(Ee,an,Cn){var ue=_t.exec(an.slice(Cn));return ue?(Ee.w=Mt[ue[0].toLowerCase()],Cn+ue[0].length):-1},A:function zn(Ee,an,Cn){var ue=ot.exec(an.slice(Cn));return ue?(Ee.w=st[ue[0].toLowerCase()],Cn+ue[0].length):-1},b:function mi(Ee,an,Cn){var ue=$t.exec(an.slice(Cn));return ue?(Ee.m=ie[ue[0].toLowerCase()],Cn+ue[0].length):-1},B:function vi(Ee,an,Cn){var ue=Zt.exec(an.slice(Cn));return ue?(Ee.m=Tt[ue[0].toLowerCase()],Cn+ue[0].length):-1},c:function xi(Ee,an,Cn){return _n(Ee,r,an,Cn)},d:Nc,e:Nc,f:X_,H:Fc,I:Fc,j:z_,L:W_,m:V_,M:H_,p:function Dn(Ee,an,Cn){var ue=P.exec(an.slice(Cn));return ue?(Ee.p=Y[ue[0].toLowerCase()],Cn+ue[0].length):-1},q:G_,Q:Q_,s:J_,S:Y_,u:N_,U:F_,V:P_,w:O_,W:R_,x:function hr(Ee,an,Cn){return _n(Ee,e,an,Cn)},X:function yi(Ee,an,Cn){return _n(Ee,i,an,Cn)},y:B_,Y:Z_,Z:U_,"%":$_};function Te(Ee,an){return function(Cn){var Gi,en,ai,ue=[],ri=-1,Rn=0,Ui=Ee.length;for(Cn instanceof Date||(Cn=new Date(+Cn));++ri53)return null;"w"in ue||(ue.w=1),"Z"in ue?(Ui=(Rn=lo(ba(ue.y,0,1))).getUTCDay(),Rn=Ui>4||0===Ui?Ka.ceil(Rn):Ka(Rn),Rn=Lc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getUTCFullYear(),ue.m=Rn.getUTCMonth(),ue.d=Rn.getUTCDate()+(ue.w+6)%7):(Ui=(Rn=oo(ba(ue.y,0,1))).getDay(),Rn=Ui>4||0===Ui?es.ceil(Rn):es(Rn),Rn=Mc.offset(Rn,7*(ue.V-1)),ue.y=Rn.getFullYear(),ue.m=Rn.getMonth(),ue.d=Rn.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Ui="Z"in ue?lo(ba(ue.y,0,1)).getUTCDay():oo(ba(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+7*ue.W-(Ui+5)%7:ue.w+7*ue.U-(Ui+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,lo(ue)):oo(ue)}}function _n(Ee,an,Cn,ue){for(var Gi,en,ri=0,Rn=an.length,Ui=Cn.length;ri=Ui)return-1;if(37===(Gi=an.charCodeAt(ri++))){if(Gi=an.charAt(ri++),!(en=Pe[Gi in Oc?an.charAt(ri++):Gi])||(ue=en(Ee,Cn,ue))<0)return-1}else if(Gi!=Cn.charCodeAt(ue++))return-1}return ue}return Kt.x=Te(e,Kt),Kt.X=Te(i,Kt),Kt.c=Te(r,Kt),Se.x=Te(e,Se),Se.X=Te(i,Se),Se.c=Te(r,Se),{format:function(Ee){var an=Te(Ee+="",Kt);return an.toString=function(){return Ee},an},parse:function(Ee){var an=dn(Ee+="",!1);return an.toString=function(){return Ee},an},utcFormat:function(Ee){var an=Te(Ee+="",Se);return an.toString=function(){return Ee},an},utcParse:function(Ee){var an=dn(Ee+="",!0);return an.toString=function(){return Ee},an}}})(n)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Ys(ac),Ys(function Iv(n){return null===n?NaN:+n}),o(47927),o(32517),o(38914),o(22910),o(65142),o(78986),o(16087);const a0=["caretElm"];function s0(n,r){}const o0=function(n){return{model:n}};function l0(n,r){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,s0,0,0,"ng-template",5),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",e.template)("ngTemplateOutletContext",t.VKq(2,o0,e.context))}}function c0(n,r){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("innerHTML",e.title,t.oJD)}}function px(n,r,e){e=e||{};let i,a,s,d=null,T=0;function S(){T=!1===e.leading?0:+new Date,d=null,s=n.apply(i,a)}return function(){const P=+new Date;!T&&!1===e.leading&&(T=P);const Y=r-(P-T);return i=this,a=arguments,Y<=0?(clearTimeout(d),d=null,T=P,s=n.apply(i,a)):!d&&!1!==e.trailing&&(d=setTimeout(S,Y)),s}}function mx(n,r){return function(i,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:px(s.value,n,r)}),this[a]}}}}var pn=(()=>{return(n=pn||(pn={})).Top="top",n.Bottom="bottom",n.Left="left",n.Right="right",n.Center="center",pn;var n})();function eu(n,r,e){return e===pn.Top?n.top-7:e===pn.Bottom?n.top+n.height-r.height+7:e===pn.Center?n.top+n.height/2-r.height/2:void 0}function nu(n,r,e){return e===pn.Left?n.left-7:e===pn.Right?n.left+n.width-r.width+7:e===pn.Center?n.left+n.width/2-r.width/2:void 0}class Xi{static calculateVerticalAlignment(r,e,i){let a=eu(r,e,i);return a+e.height>window.innerHeight&&(a=window.innerHeight-e.height),a}static calculateVerticalCaret(r,e,i,a){let s;a===pn.Top&&(s=r.height/2-i.height/2+7),a===pn.Bottom&&(s=e.height-r.height/2-i.height/2-7),a===pn.Center&&(s=e.height/2-i.height/2);const d=eu(r,e,a);return d+e.height>window.innerHeight&&(s+=d+e.height-window.innerHeight),s}static calculateHorizontalAlignment(r,e,i){let a=nu(r,e,i);return a+e.width>window.innerWidth&&(a=window.innerWidth-e.width),a}static calculateHorizontalCaret(r,e,i,a){let s;a===pn.Left&&(s=r.width/2-i.width/2+7),a===pn.Right&&(s=e.width-r.width/2-i.width/2-7),a===pn.Center&&(s=e.width/2-i.width/2);const d=nu(r,e,a);return d+e.width>window.innerWidth&&(s+=d+e.width-window.innerWidth),s}static shouldFlip(r,e,i,a){let s=!1;return i===pn.Right&&r.left+r.width+e.width+a>window.innerWidth&&(s=!0),i===pn.Left&&r.left-e.width-a<0&&(s=!0),i===pn.Top&&r.top-e.height-a<0&&(s=!0),i===pn.Bottom&&r.top+r.height+e.height+a>window.innerHeight&&(s=!0),s}static positionCaret(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=-7,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Left?(T=e.width,d=Xi.calculateVerticalCaret(i,e,a,s)):r===pn.Top?(d=e.height,T=Xi.calculateHorizontalCaret(i,e,a,s)):r===pn.Bottom&&(d=-7,T=Xi.calculateHorizontalCaret(i,e,a,s)),{top:d,left:T}}static positionContent(r,e,i,a,s){let d=0,T=0;return r===pn.Right?(T=i.left+i.width+a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Left?(T=i.left-e.width-a,d=Xi.calculateVerticalAlignment(i,e,s)):r===pn.Top?(d=i.top-e.height-a,T=Xi.calculateHorizontalAlignment(i,e,s)):r===pn.Bottom&&(d=i.top+i.height+a,T=Xi.calculateHorizontalAlignment(i,e,s)),{top:d,left:T}}static determinePlacement(r,e,i,a){if(Xi.shouldFlip(i,e,r,a)){if(r===pn.Right)return pn.Left;if(r===pn.Left)return pn.Right;if(r===pn.Top)return pn.Bottom;if(r===pn.Bottom)return pn.Top}return r}}let gx=(()=>{class n{constructor(e,i,a){this.element=e,this.renderer=i,this.platformId=a}get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,_.NF)(this.platformId))return;const e=this.element.nativeElement,i=this.host.nativeElement.getBoundingClientRect();if(!i.height&&!i.width)return;const a=e.getBoundingClientRect();this.checkFlip(i,a),this.positionContent(e,i,a),this.showCaret&&this.positionCaret(i,a),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,i,a){const{top:s,left:d}=Xi.positionContent(this.placement,a,i,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${s}px`),this.renderer.setStyle(e,"left",`${d}px`)}positionCaret(e,i){const a=this.caretElm.nativeElement,s=a.getBoundingClientRect(),{top:d,left:T}=Xi.positionCaret(this.placement,i,e,s,this.alignment);this.renderer.setStyle(a,"top",`${d}px`),this.renderer.setStyle(a,"left",`${T}px`)}checkFlip(e,i){this.placement=Xi.determinePlacement(this.placement,i,e,this.spacing)}onWindowResize(){this.position()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},n.\u0275cmp=t.Xpm({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,i){if(1&e&&t.Gf(a0,5),2&e){let a;t.iGM(a=t.CRH())&&(i.caretElm=a.first)}},hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(){return i.onWindowResize()},!1,t.Jf7),2&e&&t.Tol(i.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,l0,2,4,"span",3),t.YNc(5,c0,1,1,"span",4),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Gre("tooltip-caret position-",i.placement,""),t.Q6J("hidden",!i.showCaret),t.xp6(3),t.Q6J("ngIf",!i.title),t.xp6(1),t.Q6J("ngIf",i.title))},directives:[_.O5,_.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,Sn.gn)([mx(100)],n.prototype,"onWindowResize",null),n})(),iu=(()=>{class n{constructor(e,i,a){this.applicationRef=e,this.componentFactoryResolver=i,this.injector=a}static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(e){this._container=e}getComponentRootNode(e){return function vx(n){return n.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,i){if(i){if(void 0!==i.inputs){const a=Object.getOwnPropertyNames(i.inputs);for(const s of a)e.instance[s]=i.inputs[s]}if(void 0!==i.outputs){const a=Object.getOwnPropertyNames(i.outputs);for(const s of a)e.instance[s]=i.outputs[s]}}return e}appendComponent(e,i={},a){a||(a=this.getRootViewContainer());const s=this.getComponentRootNode(a),d=new Sl.u0(s,this.componentFactoryResolver,this.applicationRef,this.injector),T=new Sl.C5(e),S=d.attach(T);return this.projectComponentBindings(S,i),S}}return n.globalRootViewContainer=null,n.\u0275fac=function(e){return new(e||n)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),ho=(()=>{class n extends class _x{constructor(r){this.injectionService=r,this.defaults={},this.components=new Map}getByType(r=this.type){return this.components.get(r)}create(r){return this.createByType(this.type,r)}createByType(r,e){e=this.assignDefaults(e);const i=this.injectComponent(r,e);return this.register(r,i),i}destroy(r){const e=this.components.get(r.componentType);if(e&&e.length){const i=e.indexOf(r);i>-1&&(e[i].destroy(),e.splice(i,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(r){const e=this.components.get(r);if(e&&e.length){let i=e.length-1;for(;i>=0;)this.destroy(e[i--])}}injectComponent(r,e){return this.injectionService.appendComponent(r,e)}assignDefaults(r){const e=Object.assign({},this.defaults.inputs),i=Object.assign({},this.defaults.outputs);return!r.inputs&&!r.outputs&&(r={inputs:r}),e&&(r.inputs=Object.assign(Object.assign({},e),r.inputs)),i&&(r.outputs=Object.assign(Object.assign({},i),r.outputs)),r}register(r,e){this.components.has(r)||this.components.set(r,[]),this.components.get(r).push(e)}}{constructor(e){super(e),this.type=gx}}return n.\u0275fac=function(e){return new(e||n)(t.LFG(iu))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac}),n})(),cu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez]]}),n})();var na=(()=>{return(n=na||(na={})).popover="popover",n.tooltip="tooltip",na;var n})(),Er=(()=>{return(n=Er||(Er={}))[n.all="all"]="all",n[n.focus="focus"]="focus",n[n.mouseover="mouseover"]="mouseover",Er;var n})();let go,po=(()=>{class n{constructor(e,i,a){this.tooltipService=e,this.viewContainerRef=i,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=pn.Top,this.tooltipAlignment=pn.Center,this.tooltipType=na.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Er.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.focus}get listensForHover(){return this.tooltipShowEvent===Er.all||this.tooltipShowEvent===Er.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const i=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},i)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",i=>{e.contains(i.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const i=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),e?i():this.timeout=setTimeout(i,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(ho),t.Y36(t.s_b),t.Y36(t.Qsj))},n.\u0275dir=t.lG2({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,i){1&e&&t.NdJ("focusin",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(s){return i.onMouseLeave(s.target)})("click",function(){return i.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),n})(),uu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[iu,ho],imports:[[_.ez]]}),n})();"undefined"!=typeof window?go=window:"undefined"!=typeof global&&(go=global);let ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[_.ez,cu,uu],_.ez,cu,uu]}),n})(),kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ix=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ox=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),xu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})();Math;let vo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,xu]]}),n})(),Zx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Bx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji]]}),n})(),Ux=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[ji,vo,vu]]}),n})(),Vx=(()=>{class n{constructor(){!function Gx(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[ji,kx,vu,Ix,Mx,Ox,xu,Px,Zx,vo,Bx,Ux]}),n})();function zx(n,r){1&n&&(t.TgZ(0,"div"),t._UZ(1,"mat-spinner",3),t.qZA())}function Hx(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function Yx(n,r){1&n&&(t.O4$(),t.TgZ(0,"marker",10),t._UZ(1,"path",11),t.qZA())}function Wx(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",12),t._UZ(1,"rect"),t.TgZ(2,"text",13),t._uU(3),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.Q6J("tooltipTitle",e.tooltip)("tooltipPlacement","top")("tooltipType","tooltip"),t.xp6(1),t.uIk("fill",e.color)("height",e.dimension.height)("width",e.dimension.width),t.xp6(1),t.uIk("y",e.dimension.height/2)("x",10),t.xp6(1),t.hij(" ",e.label," ")}}function Xx(n,r){if(1&n&&(t.O4$(),t.TgZ(0,"g",14),t._UZ(1,"path",15),t.TgZ(2,"text",16),t.TgZ(3,"textPath",17),t._uU(4),t.qZA(),t.qZA(),t.qZA()),2&n){const e=r.$implicit;t.xp6(3),t.uIk("href","#"+e.id),t.xp6(1),t.hij(" ",e.label," ")}}const $x=function(n,r){return[n,r]};function Qx(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"strong"),t._uU(8),t.qZA(),t.YNc(9,Hx,5,4,"span",4),t.TgZ(10,"div",5),t.TgZ(11,"ngx-graph",6),t.YNc(12,Yx,2,0,"ng-template",null,7,t.W1O),t.YNc(14,Wx,4,9,"ng-template",null,8,t.W1O),t.YNc(16,Xx,5,2,"ng-template",null,9,t.W1O),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,12,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(6,14,"ADMIN.VISUALIZER.USER_DESTINATION.FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(2),t.Q6J("links",e.hierarchialGraph.links)("nodes",e.hierarchialGraph.nodes)("view",t.WLB(16,$x,e.innerWidth,e.innerHeight))("curve",e.curve)("draggingEnabled",!1)("zoomToFit$",e.zoomToFit$)}}function Jx(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"strong"),t._uU(4),t.qZA(),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_3")," "),t.xp6(3),t.Oqu(e.service)}}function jx(n,r){if(1&n&&(t._uU(0),t.ALo(1,"translate"),t.TgZ(2,"strong"),t._uU(3),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.TgZ(6,"strong"),t._uU(7),t.qZA(),t.YNc(8,Jx,5,4,"span",4),t._uU(9),t.ALo(10,"translate")),2&n){const e=t.oxw(2);t.hij(" ",t.lcZ(1,7,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_1")," "),t.xp6(3),t.AsE("",e.user.firstName," ",e.user.lastName,""),t.xp6(1),t.hij(" ",t.lcZ(5,9,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_2")," "),t.xp6(3),t.Oqu(e.destination),t.xp6(1),t.Q6J("ngIf","noService"!==e.service),t.xp6(1),t.hij(" ",t.lcZ(10,11,"ADMIN.VISUALIZER.USER_DESTINATION.NOT_FOUND_4")," ")}}function qx(n,r){if(1&n&&(t.YNc(0,Qx,18,19,"div",1),t.YNc(1,jx,11,13,"ng-template",null,2,t.W1O)),2&n){const e=t.MAs(2),i=t.oxw();t.Q6J("ngIf",i.isConnected)("ngIfElse",e)}}let Kx=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y){this.route=e,this.facilityManager=i,this.userService=a,this.membersService=s,this.serviceService=d,this.resourceManager=T,this.groupService=S,this.voService=P,this.translate=Y,this.isConnected=!1,this.loading=!0,this.hierarchialGraph={nodes:[],links:[]},this.curve=$n,this.zoomToFit$=new En.xQ,this.idCounter=0}static findConnectedGroups(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);return a}static findConnectedResources(e,i){const a=[];for(const s of e)for(const d of i)s.id===d.id&&a.push(s);return a}onResize(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight}ngOnInit(){this.innerWidth=window.innerWidth<600?window.innerWidth:window.innerWidth-420,this.innerHeight=window.innerHeight,this.getLocalizedNames(),this.route.queryParams.subscribe(e=>{this.destination=String(e.destination),this.service=String(e.service),this.userService.getUserById(Number(e.user)).subscribe(i=>{this.user=i,this.facilityManager.getFacilitiesByDestination(this.destination).subscribe(a=>{this.facilities=a,this.membersService.getMembersByUser(this.user.id).subscribe(s=>{if(this.membership=s,0===this.membership.length||0===this.facilities.length)return this.loading=!1,void(this.isConnected=!1);this.showGraph()})})})})}showGraph(){var e,i;const a=""+this.id().toString(),s=null!==(i=null!==(e=this.user.firstName)&&void 0!==e?e:" "+this.user.lastName)&&void 0!==i?i:"",d=this.localUser,T="user: "+this.user.id.toString();this.hierarchialGraph.nodes.push({id:a,label:s,tooltip:d,color:"#FFFFCC",tip:T});const P=""+this.id().toString(),Y="destination no id";this.hierarchialGraph.nodes.push("noService"===this.service?{id:P,label:this.destination,tooltip:this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y}:{id:P,label:this.service+": "+this.destination,tooltip:this.localService+": "+this.service+", "+this.localDestination+": "+this.destination,color:"#E0E0E0",tip:Y});for(const ot of this.facilities)this.serviceService.getAllRichDestinationsForFacility(ot.id).subscribe(st=>{this.connectToService(ot,st),setTimeout(()=>{this.zoomToFit$.next(!0),this.loading=!1},2e3)})}connectToService(e,i){this.isConnectedToService(i)&&this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(a=>{for(const s of this.membership)this.connectToGroups(e,s,a)})}connectToGroups(e,i,a){this.facilityManager.getAllowedGroups(e.id,i.voId).subscribe(s=>{0!==s.length&&this.groupService.getMemberGroups(i.id).subscribe(d=>{const T=n.findConnectedGroups(s,d);if(0!==T.length)for(const S of T)this.connectToResource(e,S,a)})})}haveService(e){if("noService"===this.service)return!0;for(const i of e)if(this.service===i.name)return!0;return!1}connectToResource(e,i,a){this.resourceManager.getAssignedResourcesWithGroup(i.id).subscribe(s=>{const d=n.findConnectedResources(s,a);for(const T of d)this.resourceManager.getAssignedServicesToResource(T.id).subscribe(S=>{this.haveService(S)&&(this.isConnected=!0,this.addNodesToGraph(i.voId,i,T,e))})})}addNodesToGraph(e,i,a,s){if(-1===this.findEntityInGraph("Facility: "+s.id.toString())){const d=""+this.id().toString(),T=this.localFacility+": "+s.name,S=s.description,P="Facility: "+s.id.toString();this.hierarchialGraph.nodes.push({id:d,label:T,tooltip:S,color:"#FFCCFF",tip:P});const ot={source:d,target:this.hierarchialGraph.nodes[this.findEntityInGraph("destination no id")].id};this.hierarchialGraph.links.push(ot)}this.voService.getVoById(e).subscribe(d=>{if(-1===this.findEntityInGraph("Vo: "+d.id.toString())){const S=this.id().toString(),P=this.localVo+": "+d.shortName,Y=d.name,ot="Vo: "+d.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#E5FFCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("user: "+this.user.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}if(-1===this.findEntityInGraph("Group: "+i.id.toString())){const S=this.id().toString(),P=this.localGroup+": "+i.name,Y=i.description,ot="Group: "+i.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#CCE5FF",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Vo: "+d.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t)}const T=this.findEntityInGraph("Resource: "+a.id.toString());if(-1!==T){const S={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:this.hierarchialGraph.nodes[T].id};this.hierarchialGraph.links.push(S)}else{const S=this.id().toString(),P=this.localResource+": "+a.name,Y=a.description,ot="Resource: "+a.id.toString();this.hierarchialGraph.nodes.push({id:S,label:P,tooltip:Y,color:"#FFCCCC",tip:ot});const _t={source:this.hierarchialGraph.nodes[this.findEntityInGraph("Group: "+i.id.toString())].id,target:S};this.hierarchialGraph.links.push(_t);const Mt={source:S,target:this.hierarchialGraph.nodes[this.findEntityInGraph("Facility: "+s.id.toString())].id};this.hierarchialGraph.links.push(Mt)}})}findEntityInGraph(e){for(let i=0;i{this.localUser=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.VO").subscribe(e=>{this.localVo=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.GROUP").subscribe(e=>{this.localGroup=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.RESOURCE").subscribe(e=>{this.localResource=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.FACILITY").subscribe(e=>{this.localFacility=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.SERVICE").subscribe(e=>{this.localService=e}),this.translate.get("ADMIN.VISUALIZER.USER_DESTINATION.DESTINATION").subscribe(e=>{this.localDestination=e})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.IQ),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.KK),t.Y36(V.xk),t.Y36(V.ff),t.Y36(V.YF),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-destination-graph"]],hostVars:2,hostBindings:function(e,i){1&e&&t.NdJ("resize",function(s){return i.onResize(s)},!1,t.Jf7),2&e&&t.ekj("router-component",i.true)},decls:6,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf","ngIfElse"],["elseBlock",""],[1,"ml-auto","mr-auto"],[4,"ngIf"],[1,"card","w-100","h-100"],[1,"chart-container",3,"links","nodes","view","curve","draggingEnabled","zoomToFit$"],["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],["id","arrow","markerHeight","4","refX","8","refY","0","markerWidth","4","orient","auto","viewBox","0 -5 10 10"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["ngx-tooltip","",1,"node",3,"tooltipTitle","tooltipPlacement","tooltipType"],["alignment-baseline","central"],[1,"edge"],["marker-end","url(#arrow)","stroke-width","2",1,"line"],["text-anchor","end",1,"edge-label"],["startOffset","60%",2,"fill","#000"]],template:function(e,i){if(1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,zx,2,0,"div",1),t.YNc(4,qx,3,2,"ng-template",null,2,t.W1O)),2&e){const a=t.MAs(5);t.xp6(1),t.hij(" ",t.lcZ(2,3,"ADMIN.VISUALIZER.USER_DESTINATION.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",i.loading)("ngIfElse",a)}},directives:[_.O5,W.$g,im,po],pipes:[u.X$],styles:[""]}),n})();var ty=o(25828),yu=o(69024),ey=o(29862),Aa=o(16074),ny=o(31359);function iy(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function ry(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"span"),t.TgZ(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editUser()}),t.TgZ(2,"mat-icon"),t._uU(3,"edit"),t.qZA(),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).anonymizeUser()}),t.TgZ(5,"mat-icon"),t._uU(6,"no_accounts"),t.qZA(),t.qZA(),t.qZA()}}const ay=function(){return{color:"black"}},sy=function(n){return["/admin/users",n]};function oy(n,r){if(1&n&&(t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6),t.TgZ(4,"div",7),t.TgZ(5,"a",8),t._uU(6),t.ALo(7,"userFullName"),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,ry,7,0,"span",10),t.qZA(),t.TgZ(11,"div"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"span",11),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,12,"ADMIN_USER.ENTITY")),t.Q6J("ngStyle",t.DdM(22,ay))("svgIcon",e.svgIcon),t.xp6(4),t.Q6J("routerLink",t.VKq(23,sy,e.user.id)),t.xp6(1),t.hij(" ",t.lcZ(7,14,e.user)," "),t.xp6(3),t.hij(" \xa0#",e.user.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE("",t.lcZ(13,16,"ADMIN_USER.UUID"),": ",e.user.uuid,""),t.xp6(3),t.lnq(" ",t.lcZ(16,18,"ADMIN_USER.ENTITY"),", ",t.lcZ(17,20,"ADMIN_USER.USER_TYPE"),": ",e.getUserType()," ")}}let ly=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.route=e,this.usersService=i,this.sideMenuService=a,this.sideMenuItemService=s,this.dialog=d,this.authResolver=T,this.entityStorageService=S,this.router=P,this.loading=!1,this.svgIcon="perun-user-dark"}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const i=Number(e.userId);this.entityStorageService.setEntity({id:Number(i),beanName:"User"}),this.path=`/admin/users/${i}`,this.regex="/admin/users/\\d+",this.usersService.getUserById(i).subscribe(a=>{this.user=a,this.user.serviceUser&&(this.svgIcon="perun-service-identity");const s=this.sideMenuItemService.parseUser(a,this.path,this.regex);this.sideMenuService.setAdminItems([s]),this.loading=!1},()=>this.loading=!1)})}editUser(){const e=(0,Ce.kZ)();e.width="450px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(ey.x,e).afterClosed().subscribe(a=>{a&&this.usersService.getUserById(this.user.id).subscribe(s=>{this.user=s})})}getUserType(){return this.user.serviceUser?"Service":"Person"}anonymizeUser(){const e=(0,Ce.kZ)();e.width="550px",e.data={theme:"admin-theme",user:this.user},this.dialog.open(Aa.GI,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin","users"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(p.D),t.Y36(yu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb),t.Y36(f.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-user-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],["class","mr-auto ml-auto",4,"ngIf"],["class","d-flex page-title-headtitle",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"ngStyle","svgIcon","matTooltip"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"user-link",3,"routerLink"],[1,"text-muted"],[4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,iy,1,0,"mat-spinner",1),t.YNc(3,oy,18,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading&&void 0!==i.user))},directives:[l.W,_.O5,W.$g,h.Hw,_.PC,ne.gM,f.yS,nt.lW,m.A],pipes:[u.X$,ny.d],styles:[""]}),n})();var cy=o(17755),uy=o(74837),hy=o(85985),dy=o(98973),fy=o(15935);function py(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().onLoad()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.EXT_SOURCES.LOAD")," "))}function my(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const gy=function(){return["id","name","type"]};function _y(n,r){if(1&n&&t._UZ(0,"app-ext-sources-list",7),2&n){const e=t.oxw();t.Q6J("extSources",e.extSources)("filterValue",e.filterValue)("displayedColumns",t.DdM(4,gy))("tableId",e.tableId)}}let vy=(()=>{class n{constructor(e,i,a,s){this.extSourceService=e,this.notificator=i,this.translate=a,this.authResolver=s,this.extSources=[],this.filterValue="",this.loading=!1,this.tableId=Ae.qy,this.translate.get("ADMIN.EXT_SOURCES.LOAD_SUCCESS").subscribe(d=>this.loadSuccess=d)}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}onLoad(){this.extSourceService.loadExtSourcesDefinitions().subscribe(()=>{this.notificator.showSuccess(this.loadSuccess),this.refreshTable()})}refreshTable(){this.loading=!0,this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.KG),t.Y36(U.V6),t.Y36(u.sK),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-ext-sources"]],decls:8,vars:7,consts:[[1,"page-subtitle"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","filterValue","displayedColumns","tableId",4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"extSources","filterValue","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,py,3,3,"button",1),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,my,1,0,"mat-spinner",3),t.YNc(7,_y,1,5,"app-ext-sources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.EXT_SOURCES.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[_.O5,nt.lW,sn.L,W.$g,fy.D],pipes:[u.X$],styles:[""]}),n})();var xy=o(6097),yy=o(97453),as=o(1059),ss=o(24850);function Ty(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function by(n,r){if(1&n&&(t.TgZ(0,"mat-option",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Cy(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"mat-form-field",8),t._UZ(2,"input",9),t.ALo(3,"translate"),t.TgZ(4,"mat-error"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-form-field",8),t._UZ(8,"input",10),t.ALo(9,"translate"),t.TgZ(10,"mat-error"),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.TgZ(13,"mat-autocomplete",11,12),t.YNc(15,by,2,2,"mat-option",13),t.ALo(16,"async"),t.qZA(),t.qZA(),t.qZA()),2&n){const e=t.MAs(14),i=t.oxw();t.xp6(2),t.s9C("placeholder",t.lcZ(3,9,"DIALOGS.ADD_USER_EXT_SOURCE.LOGIN")),t.Q6J("formControl",i.loginControl),t.xp6(3),t.hij(" ",t.lcZ(6,11,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_LOGIN")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(9,13,"DIALOGS.ADD_USER_EXT_SOURCE.EXT_SOURCE")),t.Q6J("formControl",i.extSourcesControl)("matAutocomplete",e),t.xp6(3),t.hij(" ",t.lcZ(12,15,"DIALOGS.ADD_USER_EXT_SOURCE.EMPTY_EXT_SOURCE")," "),t.xp6(2),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(16,17,i.filteredExtSources))}}let wy=(()=>{class n{constructor(e,i,a,s,d,T){this.dialogRef=e,this.data=i,this.extSourcesManagerService=a,this.usersManagerService=s,this.translate=d,this.notificator=T,this.extSources=[],d.get("DIALOGS.ADD_USER_EXT_SOURCE.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.loading=!0,this.loginControl=new E.NI("",[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.extSourcesControl=new E.NI("",[E.kI.required]),this.loginControl.markAllAsTouched(),this.extSourcesControl.markAllAsTouched(),this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.U)(e=>this._filter(e))),this.extSourcesManagerService.getExtSources().subscribe(e=>{this.extSources=e,this.filteredExtSources=this.extSourcesControl.valueChanges.pipe((0,as.O)(""),(0,ss.U)(i=>this._filter(i))),this.loading=!1},()=>this.loading=!1)}displayFn(e){return e?e.name:null}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.usersManagerService.addUserExtSource({user:this.data.userId,userExtSource:{beanName:"",extSource:this.extSourcesControl.value,id:0,login:this.loginControl.value,userId:this.data.userId}}).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}_filter(e){const i="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.extSources.filter(a=>a.name.toLowerCase().includes(i))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(V.KG),t.Y36(V.Fv),t.Y36(u.sK),t.Y36(U.V6))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-user-ext-source-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"center-self","w-100"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","","type","text",3,"formControl","matAutocomplete","placeholder"],[3,"displayWith"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Ty,1,0,"mat-spinner",2),t.YNc(5,Cy,17,19,"div",3),t.qZA(),t.TgZ(6,"div",4),t.TgZ(7,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",6),t.NdJ("click",function(){return i.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_USER_EXT_SOURCE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,8,"DIALOGS.ADD_USER_EXT_SOURCE.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loginControl.invalid||i.extSourcesControl.invalid||i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,10,"DIALOGS.ADD_USER_EXT_SOURCE.ADD")," "))},directives:[O.uh,O.xY,_.O5,W.$g,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,gt.ZL,gt.XC,_.sg,Rt.ey,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.auto-width[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:auto!important}.auto-width[_ngcontent-%COMP%] .mat-select-value[_ngcontent-%COMP%]{max-width:100%;width:auto}.pre-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),n})();var Ay=o(80275);function Ey(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().addIdentity()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"USER_DETAIL.IDENTITIES.ADD"),"\n"))}function Sy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeIdentity()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"USER_DETAIL.IDENTITIES.REMOVE"),"\n")}}function Dy(n,r){1&n&&t._UZ(0,"mat-spinner",10)}function Ly(n,r){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-user-ext-sources-list",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)("userExtSources",e.userExtSources)}}let ky=(()=>{class n{constructor(e,i,a,s,d,T){this.usersManagerService=e,this.storage=i,this.registrarManagerService=a,this.dialog=s,this.route=d,this.authResolver=T,this.userExtSources=[],this.selection=new F.Ov(!1,[]),this.displayedColumns=["select","id","extSourceName","login","lastAccess"],this.tableId=Ae.gG,this.filterValue=""}ngOnInit(){this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{this.userExtSources=e,this.loading=!1},()=>this.loading=!1)}addIdentity(){const e=(0,Ce.kZ)();e.width="1000px",e.data={userId:this.userId},this.dialog.open(wy,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeIdentity(){const e=(0,Ce.kZ)();e.width="450px",e.data={showSuccess:!0,theme:"user-theme",userId:this.userId,extSources:this.selection.selected},this.dialog.open(Aa.Lc,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.Fv),t.Y36(U.d6),t.Y36(V.tk),t.Y36(O.uw),t.Y36(f.gz),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-identities"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],[1,"admin-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","selection","tableId","userExtSources"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(4,Ey,3,3,"button",2),t.YNc(5,Sy,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,Dy,1,0,"mat-spinner",6),t.qZA(),t.YNc(9,Ly,2,5,"div",7)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"USER_DETAIL.IDENTITIES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","USER_DETAIL.IDENTITIES.FILTER_PLACEHOLDER"),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,Ay.j],pipes:[u.X$],styles:[""]}),n})();var Iy=o(80774),My=o(62109);function Oy(n,r){1&n&&t._UZ(0,"mat-spinner",5)}const Ny=function(){return["id","name","vo","facility","description"]};function Fy(n,r){if(1&n&&t._UZ(0,"perun-web-apps-resources-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",t.DdM(4,Ny))("resources",e.resources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Py=(()=>{class n{constructor(e,i){this.userManager=e,this.route=i,this.resources=[],this.tableId=Ae.kO,this.filterValue=""}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.route.parent.params.subscribe(e=>{const i=Number(e.userId);this.userManager.getAssignedRichResourcesForUser(i).subscribe(a=>{this.resources=a,this.loading=!1})})}resourceFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-resources"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","resources","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","resources","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return i.resourceFilter(s)}),t.qZA(),t.YNc(6,Oy,1,0,"mat-spinner",3),t.YNc(7,Fy,1,5,"perun-web-apps-resources-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,sn.L,_.O5,W.$g,My.C],pipes:[u.X$],styles:[""]}),n})();var Ry=o(61365),Zy=o(71103),By=o(53984);const Uy=["list"];function Gy(n,r){1&n&&t._UZ(0,"mat-spinner",8)}function Vy(n,r){if(1&n&&t._UZ(0,"perun-web-apps-attributes-list",9,10),2&n){const e=t.oxw();t.Q6J("selection",e.selection)("attributes",e.attributes)("tableId",e.tableId)}}let zy=(()=>{class n{constructor(e,i,a,s){this.dialog=e,this.attributesManager=i,this.userService=a,this.route=s,this.loading=!1,this.selection=new F.Ov(!0,[]),this.tableId=Ae.rF,this.attributes=[]}ngOnInit(){this.route.params.subscribe(e=>{const i=Number(e.identityId);this.userService.getUserExtSourceById(i).subscribe(a=>{this.userExtSource=a,this.refreshTable()})})}refreshTable(){this.loading=!0,this.attributesManager.getUserExtSourceAttributes(this.userExtSource.id).subscribe(e=>{this.attributes=(0,Ce.MX)(e),this.selection.clear(),this.loading=!1})}onAdd(){const e=(0,Ce.kZ)();e.width="1050px",e.data={entityId:this.userExtSource.id,entity:"ues",notEmptyAttributes:this.attributes,style:"user-theme"},this.dialog.open(Zy.n,e).afterClosed().subscribe(a=>{"saved"===a&&this.refreshTable()})}onSave(){this.list.updateMapAttributes();const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Aa.wA,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="450px",e.data={entityId:this.userExtSource.id,entity:"ues",attributes:this.selection.selected},this.dialog.open(Ry.k,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(V.H8),t.Y36(V.Fv),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-identity-detail"]],viewQuery:function(e,i){if(1&e&&t.Gf(Uy,5),2&e){let a;t.iGM(a=t.CRH())&&(i.list=a.first)}},decls:26,vars:32,consts:[[1,"page-subtitle"],[1,"mb-2"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div"),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",1),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"date"),t.qZA(),t.TgZ(14,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(15,"button",3),t.NdJ("click",function(){return i.onSave()}),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"button",4),t.NdJ("click",function(){return i.onAdd()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",5),t.NdJ("click",function(){return i.onRemove()}),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.YNc(24,Gy,1,0,"mat-spinner",6),t.YNc(25,Vy,2,3,"perun-web-apps-attributes-list",7),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,15,"SHARED.IDENTITY_DETAIL.TITLE")," - ",i.userExtSource?i.userExtSource.extSource.name:""," "),t.xp6(3),t.AsE(" ",t.lcZ(6,17,"SHARED.IDENTITY_DETAIL.TYPE"),": ",i.userExtSource?i.userExtSource.extSource.type:""," "),t.xp6(3),t.AsE(" ",t.lcZ(9,19,"SHARED.IDENTITY_DETAIL.LOGIN"),": ",i.userExtSource?i.userExtSource.login:""," "),t.xp6(3),t.AsE(" ",t.lcZ(12,21,"SHARED.IDENTITY_DETAIL.LAST_ACCESS"),": ",i.userExtSource?t.xi3(13,23,i.userExtSource.lastAccess,"d.M.y H:mm:ss"):""," "),t.xp6(4),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(17,26,"SHARED.IDENTITY_DETAIL.SAVE")," "),t.xp6(3),t.hij(" ",t.lcZ(20,28,"SHARED.IDENTITY_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===i.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(23,30,"SHARED.IDENTITY_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,nt.lW,_.O5,W.$g,By.p],pipes:[u.X$,_.uU],styles:[""]}),n})();var Hy=o(40009),Yy=o(90719);function Wy(n,r){1&n&&t._UZ(0,"mat-spinner",3)}function Xy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editService()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function $y(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeService()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function Qy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",20),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).evaluateConsents()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.EVALUATE_CONSENTS")," "))}const Jy=function(){return{color:"black"}},jy=function(n){return["/admin/services",n]};function qy(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",4),t._UZ(1,"mat-icon",5),t.ALo(2,"translate"),t.TgZ(3,"div",6),t.TgZ(4,"div",7),t.TgZ(5,"div",8),t.TgZ(6,"div",9),t.TgZ(7,"a",10),t._uU(8),t.qZA(),t.TgZ(9,"span",11),t._uU(10),t.qZA(),t.YNc(11,Xy,3,0,"button",12),t.YNc(12,$y,3,0,"button",13),t.qZA(),t.TgZ(13,"span",14),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(16,"div",15),t.TgZ(17,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().changeServiceStatus()}),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-slide-toggle",16),t.NdJ("toggleChange",function(){return t.CHM(e),t.oxw().propagationChange()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Qy,3,3,"button",17),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("matTooltip",t.lcZ(2,14,"SERVICE_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(22,Jy)),t.xp6(6),t.Q6J("routerLink",t.VKq(23,jy,e.service.id)),t.xp6(1),t.hij(" ",e.service.name," "),t.xp6(2),t.hij(" \xa0 #",e.service.id," "),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",e.authResolver.isPerunAdmin()),t.xp6(2),t.AsE(" ",t.lcZ(15,16,"SERVICE_DETAIL.DESCRIPTION"),": ",e.service.description," "),t.xp6(3),t.Q6J("checked",e.service.enabled),t.xp6(1),t.hij(" ",t.lcZ(19,18,"SERVICE_DETAIL.ENABLE")," "),t.xp6(2),t.Q6J("checked",e.service.useExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(22,20,"SERVICE_DETAIL.PROPAGATE")," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isPerunAdmin())}}let Ky=(()=>{class n{constructor(e,i,a,s,d,T,S,P,Y,ot,st){this.route=e,this.router=i,this.consentsManager=a,this.serviceManager=s,this.sideMenuService=d,this.sideMenuItemService=T,this.dialog=S,this.authResolver=P,this.translate=Y,this.notificator=ot,this.entityStorageService=st,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.serviceId=Number(e.serviceId),this.refresh()})}editService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",service:this.service},this.dialog.open(Hy.R,e).afterClosed().subscribe(a=>{a&&this.refresh()})}removeService(){const e=(0,Ce.kZ)();e.width="600px",e.data={theme:"service-theme",services:[this.service]},this.dialog.open(Yy.m,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["/admin/services"])})}changeServiceStatus(){this.service.enabled=!this.service.enabled,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.STATUS_CHANGE_SUCCESS"))},()=>this.service.enabled=!this.service.enabled)}propagationChange(){this.service.useExpiredMembers=!this.service.useExpiredMembers,this.serviceManager.updateService({service:this.service}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.PROPAGATION_CHANGE_SUCCESS"))},()=>this.service.useExpiredMembers=!this.service.useExpiredMembers)}evaluateConsents(){const e=(0,Ce.kZ)();e.width="500px",e.data={title:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_TITLE"),theme:"service-theme",description:this.translate.instant("SERVICE_DETAIL.CONFIRM_DIALOG_DESCRIPTION"),items:[this.service.name],type:"confirmation",showAsk:!1},this.dialog.open(Aa.Ts,e).afterClosed().subscribe(a=>{a&&this.consentsManager.evaluateConsentsForService(this.service.id).subscribe(()=>this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.EVALUATION_FINISH")))})}refresh(){this.serviceManager.getServiceById(this.serviceId).subscribe(e=>{this.service=e,this.entityStorageService.setEntity({id:e.id,beanName:e.beanName});const i=this.sideMenuItemService.parseService(this.service);this.sideMenuService.setAdminItems([i]),this.loading=!1},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(f.F0),t.Y36(V.WY),t.Y36(V.KK),t.Y36(p.D),t.Y36(yu.V),t.Y36(O.uw),t.Y36(U.x4),t.Y36(u.sK),t.Y36(U.V6),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-detail-page"]],decls:5,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","service-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","page-title-headtitle detail-layout",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title-headtitle","detail-layout"],["svgIcon","perun-service",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"wrap-container"],[1,"detail-info"],[1,"flex-column"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"service-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit service","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Remove service","mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[1,"detail-actions"],["labelPosition","before",3,"checked","toggleChange"],["class","action-button evaluate-button","mat-stroked-button","",3,"click",4,"ngIf"],["aria-label","Edit service","mat-icon-button","",3,"click"],["aria-label","Remove service","mat-icon-button","",3,"click"],["mat-stroked-button","",1,"action-button","evaluate-button",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Wy,1,0,"mat-spinner",1),t.YNc(3,qy,24,25,"div",2),t._UZ(4,"app-animated-router-outlet"),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[l.W,_.O5,W.$g,h.Hw,ne.gM,_.PC,f.yS,nt.lW,Ht.Rr,m.A],pipes:[u.X$],styles:[".detail-layout[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1.2em}.detail-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:1.2em}.wrap-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:.3em}.detail-actions[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(0,0,0,.2);padding-left:.5em}.evaluate-button[_ngcontent-%COMP%]{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"],data:{animation:[wn.Ji]}}),n})(),t1=(()=>{class n{constructor(){this.navItems=[]}ngOnInit(){this.initNavItems()}initNavItems(){this.navItems=[{cssIcon:"perun-attributes",url:"required-attributes",label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",style:"service-btn"},{cssIcon:"perun-service_destination",url:"destinations",label:"MENU_ITEMS.SERVICE.DESTINATIONS",style:"service-btn"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-overview"]],decls:1,vars:2,consts:[[3,"items","size"]],template:function(e,i){1&e&&t._UZ(0,"perun-web-apps-menu-buttons-field",0),2&e&&t.Q6J("items",i.navItems)("size","small")},directives:[A.L],styles:[""]}),n})();var e1=o(5254),n1=o(21406),i1=o(826),r1=o(69054);class s1{constructor(r,e){this.keySelector=r,this.flushes=e}call(r,e){return e.subscribe(new o1(r,this.keySelector,this.flushes))}}class o1 extends i1.L{constructor(r,e,i){super(r),this.keySelector=e,this.values=new Set,i&&this.add((0,r1.D)(this,i))}notifyNext(r,e,i,a,s){this.values.clear()}notifyError(r,e){this._error(r)}_next(r){this.keySelector?this._useKeySelector(r):this._finalizeNext(r,r)}_useKeySelector(r){let e;const{destination:i}=this;try{e=this.keySelector(r)}catch(a){return void i.error(a)}this._finalizeNext(e,r)}_finalizeNext(r,e){const{values:i}=this;i.has(r)||(i.add(r),this.destination.next(e))}}var l1=o(61709),Tu=o(92014),bu=o(92821),c1=o(47314),Cu=o(4843);function h1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function d1(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(2,2,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ACTIVE_WARN")))}function f1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",5),t.YNc(1,d1,3,4,"perun-web-apps-alert",6),t.ALo(2,"async"),t.TgZ(3,"perun-web-apps-immediate-filter",7),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t._UZ(4,"app-attr-def-list",8),t.ALo(5,"async"),t.ALo(6,"async"),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,8,e.serviceEnabled$)),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("selection",e.selection)("definitions",e.attrDefinitions)("disableRouting",!0)("filterValue",e.filterValue)("serviceEnabled",t.lcZ(5,10,e.serviceEnabled$))("consentRequired",t.lcZ(6,12,e.consentRequired$))}}function p1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",10),t.TgZ(1,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.ADD")," ")}}let m1=(()=>{class n{constructor(e,i,a,s,d,T,S,P){this.dialogRef=e,this.data=i,this.serviceManager=a,this.attributesManager=s,this.facilitiesService=d,this.consentHubService=T,this.notificator=S,this.translate=P,this.consentRequired$=this.facilitiesService.getAssignedFacilitiesByService(this.data.serviceId).pipe((0,n1.b)(e1.D),(0,ss.U)(Y=>Y.id),function a1(n,r){return e=>e.lift(new s1(n,r))}(),(0,l1.zg)(Y=>this.consentHubService.getConsentHubByFacility(Y)),function u1(n,r){return arguments.length>=2?function(i){return(0,Cu.z)((0,Tu.R)(n,r),(0,bu.h)(1),(0,c1.d)(r))(i)}:function(i){return(0,Cu.z)((0,Tu.R)((a,s,d)=>n(a,s,d+1)),(0,bu.h)(1))(i)}}((Y,ot)=>Y||ot.enforceConsents,!1),(0,as.O)(!0)),this.serviceEnabled$=this.serviceManager.getServiceById(this.data.serviceId).pipe((0,ss.U)(Y=>Y.enabled),(0,as.O)(!0)),this.attrDefinitions=[],this.selection=new F.Ov(!0,[]),this.filterValue="",this.loading=!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.attributesManager.getAllAttributeDefinitions().subscribe(e=>{this.attrDefinitions=e,this.loading=!1})}onAdd(){this.loading=!0;const e=this.selection.selected.map(i=>i.id);this.serviceManager.addRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(V.H8),t.Y36(V.IQ),t.Y36(V.WY),t.Y36(U.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-required-attributes"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"alert_type",4,"ngIf"],[3,"placeholder","filter"],[3,"selection","definitions","disableRouting","filterValue","serviceEnabled","consentRequired"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,h1,1,0,"mat-spinner",1),t.YNc(5,f1,7,14,"div",2),t.YNc(6,p1,7,7,"div",3),t.qZA()),2&e&&(t.Tol(i.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.ADD_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,W.$g,O.xY,rt.w,sn.L,wt,O.H8,nt.lW],pipes:[u.X$,_.Ov],styles:[""]}),n})();function g1(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function _1(n,r){1&n&&t._UZ(0,"th",15)}function v1(n,r){if(1&n&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.friendlyName)}}function x1(n,r){1&n&&t._UZ(0,"tr",17)}function y1(n,r){1&n&&t._UZ(0,"tr",18)}function T1(n,r){if(1&n&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,_1,1,0,"th",11),t.YNc(10,v1,2,1,"td",12),t.BQk(),t.YNc(11,x1,1,0,"tr",13),t.YNc(12,y1,1,0,"tr",14),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let b1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.serviceManager=a,this.notificator=s,this.translate=d,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.serviceId=this.data.serviceId,this.dataSource=new R.by(this.data.attrDefinitions)}onConfirm(){this.loading=!0;const e=this.dataSource.data.map(i=>i.id);this.serviceManager.removeRequiredAttributes(this.serviceId,e).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(V.KK),t.Y36(U.V6),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-remove-required-attributes"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,g1,1,0,"mat-spinner",1),t.YNc(5,T1,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return i.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return i.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.TITLE")),t.xp6(2),t.Tol(i.theme),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",i.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_REQUIRED_ATTRIBUTES.REMOVE")," "))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function C1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.ADD")," "))}function w1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.REMOVE")," ")}}function A1(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function E1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"app-attr-def-list",10),t.NdJ("refreshEvent",function(){return t.CHM(e),t.oxw().refreshTable()}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("definitions",e.attrDefinitions)("filterValue",e.filterValue)("selection",e.selection)("disableRouting",!e.authResolver.isPerunAdmin())("tableId",e.tableId)}}let S1=(()=>{class n{constructor(e,i,a,s){this.attributeManager=e,this.dialog=i,this.authResolver=a,this.entityStorageService=s,this.loading=!1,this.filterValue="",this.selection=new F.Ov(!0,[]),this.attrDefinitions=[],this.tableId=Ae.JO}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.attributeManager.getRequiredAttributesDefinition(this.service.id).subscribe(e=>{this.selection.clear(),this.attrDefinitions=e,this.loading=!1})}onAdd(){const e=(0,Ce.kZ)();e.width="950px",e.data={serviceId:this.service.id,theme:"service-theme"},this.dialog.open(m1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,Ce.kZ)();e.width="650px",e.data={serviceId:this.service.id,attrDefinitions:this.selection.selected,theme:"service-theme"},this.dialog.open(b1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.H8),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-required-attributes"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"definitions","filterValue","selection","disableRouting","tableId","refreshEvent"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,C1,3,3,"button",2),t.YNc(6,w1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,A1,1,0,"mat-spinner",5),t.YNc(9,E1,1,5,"app-attr-def-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"SERVICE_DETAIL.REQUIRED_ATTRIBUTES.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.REQUIRED_ATTRIBUTES.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,wt],pipes:[u.X$],styles:[""]}),n})();var D1=o(46597),L1=o(89466),k1=o(70242);function I1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.REMOVE")," ")}}function M1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAllow()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.ALLOW")," ")}}function O1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onBlock()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"SERVICE_DETAIL.DESTINATIONS.BLOCK")," ")}}function N1(n,r){1&n&&t._UZ(0,"mat-spinner",10)}const F1=function(){return["select","destinationId","facility","destination","type","status","propagationType"]};function P1(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-destination-list",11),2&n){const e=t.oxw();t.Q6J("destinations",e.destinations)("filterValue",e.filterValue)("selection",e.selection)("displayedColumns",t.DdM(5,F1))("tableId",e.tableId)}}let R1=(()=>{class n{constructor(e,i,a,s,d,T){this.serviceManager=e,this.notificator=i,this.translate=a,this.dialog=s,this.authResolver=d,this.entityStorageService=T,this.loading=!1,this.filterValue="",this.destinations=[],this.selection=new F.Ov(!0,[]),this.tableId=Ae.Cf}ngOnInit(){this.loading=!0,this.service=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.serviceManager.getAllRichDestinationsForService(this.service.id).subscribe(e=>{this.selection.clear(),this.filterValue="",this.destinations=e,this.loading=!1})}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selection.selected)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selection.selected)}onRemove(){const e=(0,Ce.kZ)();e.width="500px",e.data={destinations:this.selection.selected,theme:"admin-theme"},this.dialog.open(L1.u,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}applyFilter(e){this.filterValue=e}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.blockServiceOnDestination(this.service.id,i.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("SERVICE_DETAIL.DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const i=e.pop();this.serviceManager.unblockServiceOnDestinationById(this.service.id,i.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.KK),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw),t.Y36(U.x4),t.Y36(U.fb))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-service-destinations"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[3,"refresh"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"destinations","filterValue","selection","displayedColumns","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"destinations","filterValue","selection","displayedColumns","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,I1,3,4,"button",2),t.YNc(6,M1,3,4,"button",3),t.YNc(7,O1,3,4,"button",4),t.TgZ(8,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(9,N1,1,0,"mat-spinner",6),t.YNc(10,P1,1,6,"app-perun-web-apps-destination-list",7),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,7,"SERVICE_DETAIL.DESTINATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","SERVICE_DETAIL.DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,k1.q],pipes:[u.X$],styles:[""]}),n})();function Z1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function B1(n,r){1&n&&t._UZ(0,"th",13)}function U1(n,r){if(1&n&&(t.TgZ(0,"td",14),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function G1(n,r){1&n&&t._UZ(0,"tr",15)}function V1(n,r){1&n&&t._UZ(0,"tr",16)}function z1(n,r){if(1&n&&(t.TgZ(0,"div",5),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",7),t.ynx(8,8),t.YNc(9,B1,1,0,"th",9),t.YNc(10,U1,2,1,"td",10),t.BQk(),t.YNc(11,G1,1,0,"tr",11),t.YNc(12,V1,1,0,"tr",12),t.qZA(),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_OWNER.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_OWNER.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function H1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",17),t.TgZ(1,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",19),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.DELETE_OWNER.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.DELETE_OWNER.DELETE")," ")}}let Y1=(()=>{class n{constructor(e,i,a,s,d){this.dialogRef=e,this.data=i,this.notificator=a,this.translate=s,this.ownersManagerService=d,this.displayedColumns=["name"],this.owners=[]}ngOnInit(){this.dataSource=new R.by(this.data),this.owners=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.owners.length?this.ownersManagerService.deleteOwner(this.owners.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.DELETE_OWNER.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.aC))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-delete-owner-dialog"]],decls:6,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Z1,1,0,"mat-spinner",1),t.YNc(4,z1,13,9,"div",2),t.YNc(5,H1,7,7,"div",3)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,4,"DIALOGS.DELETE_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,W.$g,O.xY,R.BZ,R.w1,R.fO,R.ge,R.Dz,R.ev,R.as,R.XQ,R.nj,R.Gk,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function W1(n,r){1&n&&t._UZ(0,"mat-spinner",4)}function X1(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.FILL_CONTACT")," "))}function $1(n,r){1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_OWNER.CONTACT_FORMAT")," "))}function Q1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",5),t.TgZ(2,"mat-form-field"),t._UZ(3,"input",6),t.ALo(4,"translate"),t.TgZ(5,"mat-error"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.qZA(),t.TgZ(8,"mat-form-field"),t._UZ(9,"input",6),t.ALo(10,"translate"),t.YNc(11,X1,3,3,"mat-error",3),t.YNc(12,$1,3,3,"mat-error",3),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-select",7),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().type=a}),t.TgZ(15,"mat-option",8),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",9),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(21,"div",10),t.TgZ(22,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"div",12),t.ALo(26,"translate"),t.TgZ(27,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(28),t.ALo(29,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,15,"DIALOGS.ADD_OWNER.NAME")),t.Q6J("formControl",e.nameCtrl),t.xp6(3),t.hij(" ",t.lcZ(7,17,"DIALOGS.ADD_OWNER.FILL_NAME")," "),t.xp6(3),t.s9C("placeholder",t.lcZ(10,19,"DIALOGS.ADD_OWNER.CONTACT")),t.Q6J("formControl",e.contactCtrl),t.xp6(2),t.Q6J("ngIf",e.contactCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.contactCtrl.invalid&&!e.contactCtrl.hasError("required")),t.xp6(2),t.Q6J("value",e.type),t.xp6(2),t.Oqu(t.lcZ(17,21,"DIALOGS.ADD_OWNER.TYPE1")),t.xp6(3),t.Oqu(t.lcZ(20,23,"DIALOGS.ADD_OWNER.TYPE2")),t.xp6(4),t.hij(" ",t.lcZ(24,25,"DIALOGS.ADD_OWNER.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(26,27,"DIALOGS.ADD_OWNER.TOOLTIP")),t.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.contactCtrl.valid),t.xp6(2),t.Q6J("disabled",e.nameCtrl.invalid||e.contactCtrl.invalid),t.xp6(1),t.hij(" ",t.lcZ(29,29,"DIALOGS.ADD_OWNER.CREATE")," ")}}let J1=(()=>{class n{constructor(e,i,a,s){this.dialogRef=e,this.notificator=i,this.ownersManagerService=a,this.translate=s,this.type="1",s.get("DIALOGS.ADD_OWNER.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+( [\\w.-]+)*$")]),this.contactCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(Ce.B2)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.ownersManagerService.createOwner({name:this.nameCtrl.value,contact:this.contactCtrl.value,ownerType:Number(this.type)}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(U.V6),t.Y36(V.aC),t.Y36(u.sK))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-add-owner-dialog"]],decls:6,vars:5,consts:[[1,"admin-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","1"],["value","0"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,W1,1,0,"mat-spinner",2),t.YNc(5,Q1,30,31,"div",3),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"DIALOGS.ADD_OWNER.TITLE")),t.xp6(2),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[O.uh,_.O5,W.$g,O.xY,it.KE,z.Nt,E.Fj,E.Q7,E.JJ,E.oH,it.TO,It.gD,Rt.ey,O.H8,nt.lW,ne.gM],pipes:[u.X$],styles:[""]}),n})();var j1=o(23256);function q1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addOwner()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"ADMIN.OWNERS.ADD")," "))}function K1(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeOwner()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",!e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.OWNERS.DELETE")," ")}}function tT(n,r){1&n&&t._UZ(0,"mat-spinner",9)}function eT(n,r){if(1&n&&t._UZ(0,"perun-web-apps-owners-list",10),2&n){const e=t.oxw();t.Q6J("selection",e.selected)("filterValue",e.filterValue)("owners",e.owners)("tableId",e.tableId)}}let nT=(()=>{class n{constructor(e,i,a){this.ownersManagerService=e,this.dialog=i,this.guiAuthResolver=a,this.owners=[],this.selected=new F.Ov(!0,[]),this.filterValue="",this.tableId=Ae.v1}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteOwner_Owner_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createOwner_Owner_policy",[])}refreshTable(){this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e,this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}addOwner(){const e=(0,Ce.kZ)();e.width="400px",e.data={},this.dialog.open(J1,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}removeOwner(){const e=(0,Ce.kZ)();e.width="400px",e.data=this.selected.selected,this.dialog.open(Y1,e).afterClosed().subscribe(a=>{a&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.aC),t.Y36(O.uw),t.Y36(U.x4))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-owners"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","filterValue","owners","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"selection","filterValue","owners","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,q1,3,3,"button",2),t.YNc(6,K1,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(8,tT,1,0,"mat-spinner",5),t.YNc(9,eT,1,4,"perun-web-apps-owners-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"ADMIN.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.addAuth),t.xp6(1),t.Q6J("ngIf",i.removeAuth),t.xp6(1),t.Q6J("placeholder","ADMIN.OWNERS.FILTER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,j1.Q],pipes:[u.X$],styles:[""]}),n})();var iT=o(74010);function rT(n,r){1&n&&t._UZ(0,"mat-spinner",5)}function aT(n,r){if(1&n&&t._UZ(0,"perun-web-apps-facilities-list",6),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("facilities",e.facilities)("tableId",e.tableId)}}let sT=(()=>{class n{constructor(e,i){this.facilityManager=e,this.route=i,this.facilities=[],this.filterValue="",this.tableId=Ae.zW,this.displayedColumns=["id","name","description"]}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.refreshTable()})}refreshTable(){this.loading=!0,this.facilityManager.getAssignedFacilitiesByUser(this.userId).subscribe(e=>{this.facilities=e.map(i=>({facility:i})),this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.IQ),t.Y36(f.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-user-facilities"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","facilities","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","facilities","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(6,rT,1,0,"mat-spinner",3),t.YNc(7,aT,1,4,"perun-web-apps-facilities-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"USER_DETAIL.FACILITIES.TITLE")),t.xp6(3),t.Q6J("placeholder","USER_DETAIL.FACILITIES.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,sn.L,_.O5,W.$g,iT.X],pipes:[u.X$],styles:[""]}),n})();var oT=o(64080),lT=o(62707),Sr=o(53251),cT=o(60526),uT=o(24179),hT=o(12651),dT=o(19191);function fT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}function pT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",7),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().loadMember(a)}),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("vos",e.vos)}}function mT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.STATUS")," ")}function gT(n,r){1&n&&t._UZ(0,"mat-spinner",6)}const _T=function(){return["id","recent","name","description","expiration"]};function vT(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"perun-web-apps-groups-list",16),t.NdJ("refreshTable",function(){t.CHM(e);const a=t.oxw(4);return a.loadMember(a.selectedVo)}),t.qZA()}if(2&n){const e=t.oxw(4);t.Q6J("groups",e.groups)("memberId",e.member.id)("memberGroupStatus",e.member.groupStatus)("displayedColumns",t.DdM(4,_T))}}const xT=function(n,r){return["/organizations",n,"members",r]};function yT(n,r){if(1&n&&(t.TgZ(0,"div"),t.TgZ(1,"div",10),t.TgZ(2,"span",11),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"a",12),t._uU(6),t.qZA(),t.qZA(),t._UZ(7,"app-member-overview-membership",13),t.TgZ(8,"p",14),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,vT,1,5,"perun-web-apps-groups-list",15),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.hij("",t.lcZ(4,7,"USER_DETAIL.ACCOUNTS.MEMBER"),":"),t.xp6(2),t.Q6J("routerLink",t.WLB(11,xT,e.selectedVo.id,e.member.id)),t.xp6(1),t.hij("",e.member.id," "),t.xp6(1),t.Q6J("member",e.member)("vo",e.selectedVo),t.xp6(2),t.Oqu(t.lcZ(10,9,"USER_DETAIL.ACCOUNTS.GROUPS")),t.xp6(2),t.Q6J("ngIf",!e.loading)}}function TT(n,r){if(1&n&&(t.YNc(0,gT,1,0,"mat-spinner",1),t.YNc(1,yT,12,14,"div",4)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function bT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_ATT")," ")}function CT(n,r){1&n&&t._UZ(0,"mat-spinner")}function wT(n,r){if(1&n&&t._UZ(0,"app-one-entity-attribute-page",18),2&n){const e=t.oxw(3);t.Q6J("entity","member")("entityId",e.member.id)}}function AT(n,r){if(1&n&&(t.YNc(0,CT,1,0,"mat-spinner",4),t.YNc(1,wT,1,2,"app-one-entity-attribute-page",17)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function ET(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_GROUP_ATT")," ")}function ST(n,r){1&n&&t._UZ(0,"mat-spinner")}function DT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","group")}}function LT(n,r){if(1&n&&(t.YNc(0,ST,1,0,"mat-spinner",4),t.YNc(1,DT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function kT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"USER_DETAIL.ACCOUNTS.MEMBER_RESOURCE_ATT")," ")}function IT(n,r){1&n&&t._UZ(0,"mat-spinner")}function MT(n,r){if(1&n&&t._UZ(0,"app-two-entity-attribute-page",20),2&n){const e=t.oxw(3);t.Q6J("firstEntity","member")("firstEntityId",e.member.id)("secondEntity","resource")}}function OT(n,r){if(1&n&&(t.YNc(0,IT,1,0,"mat-spinner",4),t.YNc(1,MT,1,3,"app-two-entity-attribute-page",19)),2&n){const e=t.oxw(2);t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function NT(n,r){1&n&&(t.TgZ(0,"mat-tab-group"),t.TgZ(1,"mat-tab"),t.YNc(2,mT,2,3,"ng-template",8),t.YNc(3,TT,2,2,"ng-template",9),t.qZA(),t.TgZ(4,"mat-tab"),t.YNc(5,bT,2,3,"ng-template",8),t.YNc(6,AT,2,2,"ng-template",9),t.qZA(),t.TgZ(7,"mat-tab"),t.YNc(8,ET,2,3,"ng-template",8),t.YNc(9,LT,2,2,"ng-template",9),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,kT,2,3,"ng-template",8),t.YNc(12,OT,2,2,"ng-template",9),t.qZA(),t.qZA())}function FT(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",21),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"USER_DETAIL.ACCOUNTS.NO_VOS")))}let PT=(()=>{class n{constructor(e,i,a,s){this.route=e,this.usersService=i,this.membersService=a,this.groupService=s,this.initLoading=!1,this.loading=!1,this.vos=[],this.selectedVo=null,this.member=null,this.groups=[]}ngOnInit(){this.initLoading=!0,this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId),this.usersService.getVosWhereUserIsMember(this.userId).subscribe(i=>{this.vos=i,this.initLoading=!1},()=>this.initLoading=!1)})}loadMember(e){this.loading=!0,this.selectedVo=e,this.membersService.getMemberByUser(this.selectedVo.id,this.userId).subscribe(i=>{this.member=i,this.groupService.getMemberRichGroupsWithAttributesByNames(this.member.id,[oT.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(a=>{this.groups=a,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(f.gz),t.Y36(V.Fv),t.Y36(V.uq),t.Y36(V.ff))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-user-accounts"]],decls:8,vars:7,consts:[[1,"page-title"],["class","ml-auto mr-auto",4,"ngIf"],[1,"d-flex"],["class","w-50",3,"vos","voSelected",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-50",3,"vos","voSelected"],["matTabLabel",""],["matTabContent",""],[1,"mt-4","mb-4"],[1,"subtitle","mr-2"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[3,"member","vo"],[1,"mt-4","subtitle"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable",4,"ngIf"],[3,"groups","memberId","memberGroupStatus","displayedColumns","refreshTable"],[3,"entity","entityId",4,"ngIf"],[3,"entity","entityId"],[3,"firstEntity","firstEntityId","secondEntity",4,"ngIf"],[3,"firstEntity","firstEntityId","secondEntity"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,fT,1,0,"mat-spinner",1),t.TgZ(4,"div",2),t.YNc(5,pT,1,1,"perun-web-apps-vo-search-select",3),t.qZA(),t.YNc(6,NT,13,0,"mat-tab-group",4),t.YNc(7,FT,3,3,"perun-web-apps-alert",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,5,"USER_DETAIL.ACCOUNTS.TITLE")),t.xp6(2),t.Q6J("ngIf",i.initLoading),t.xp6(2),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!(i.initLoading||0===i.vos.length)),t.xp6(1),t.Q6J("ngIf",!i.initLoading&&0===i.vos.length))},directives:[_.O5,W.$g,lT.M,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,f.yS,cT.b,uT.W,hT.t,dT.Y,rt.w],pipes:[u.X$],styles:[".subtitle[_ngcontent-%COMP%]{font-size:1.2rem}"]}),n})(),wu=(()=>{class n{transform(e){if(e)return e.split(".").pop()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=t.Yjl({name:"parseEventName",type:n,pure:!0}),n})();function RT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.OBJECTS")," ")}function ZT(n,r){if(1&n&&t._UZ(0,"pre",9),2&n){const e=t.oxw();t.Q6J("innerHTML",e.syntaxHighlight(e.eventData),t.oJD)}}function BT(n,r){1&n&&(t._uU(0),t.ALo(1,"translate")),2&n&&t.hij(" ",t.lcZ(1,1,"DIALOGS.AUDIT_MESSAGE_DETAIL.MESSAGE")," ")}function UT(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.message)}}let GT=(()=>{class n{constructor(e,i,a){this.dialogRef=e,this.data=i,this.clipboard=a,this.tabIndex=0,this.eventData={}}ngOnInit(){const e=this.data.message.event;this.actor=this.data.message.actor,this.createdAt=this.data.message.createdAt,e.message&&(this.message=e.message,delete e.message),e.name&&(this.title=e.name,delete e.name),this.eventData=e}tabChanged(e){this.tabIndex=e.index}copyObjects(){this.clipboard.copy(JSON.stringify(this.eventData,null,2))}copyMessage(){this.clipboard.copy(this.message)}syntaxHighlight(e){return"string"!=typeof e&&(e=JSON.stringify(e,void 0,2)),(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(i){let a="number";return i.startsWith('"')?a=i.endsWith(":")?"key":"string":/true|false/.test(i)?a="boolean":i.includes("null")&&(a="null"),''+i+""})}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI),t.Y36(In.TU))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-message-detail-dialog"]],decls:26,vars:19,consts:[[1,"admin-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[3,"selectedTabChange"],["matTabLabel",""],["matTabContent",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-button","",3,"click"],[3,"innerHTML"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"parseEventName"),t.qZA(),t.TgZ(5,"div",2),t.TgZ(6,"div"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"mat-tab-group",3),t.NdJ("selectedTabChange",function(s){return i.tabChanged(s)}),t.TgZ(11,"mat-tab"),t.YNc(12,RT,2,3,"ng-template",4),t.YNc(13,ZT,1,1,"ng-template",5),t.qZA(),t.TgZ(14,"mat-tab"),t.YNc(15,BT,2,3,"ng-template",4),t.YNc(16,UT,2,1,"ng-template",5),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",6),t.TgZ(18,"button",7),t.NdJ("click",function(){return i.onClose()}),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"button",8),t.NdJ("click",function(){return 0===i.tabIndex?i.copyObjects():i.copyMessage()}),t._uU(22),t.ALo(23,"translate"),t.TgZ(24,"mat-icon"),t._uU(25,"content_copy"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){let a;t.xp6(2),t.hij(" ",t.lcZ(3,7,null!==(a=t.lcZ(4,9,i.title))&&void 0!==a?a:"DIALOGS.AUDIT_MESSAGE_DETAIL.TITLE")," "),t.xp6(5),t.HOy(" ",t.lcZ(8,11,"DIALOGS.AUDIT_MESSAGE_DETAIL.ACTOR"),": ",i.actor,", ",t.lcZ(9,13,"DIALOGS.AUDIT_MESSAGE_DETAIL.CREATED_AT"),": ",i.createdAt," "),t.xp6(12),t.hij(" ",t.lcZ(20,15,"DIALOGS.AUDIT_MESSAGE_DETAIL.CLOSE")," "),t.xp6(3),t.hij(" ",t.lcZ(23,17,"DIALOGS.AUDIT_MESSAGE_DETAIL.COPY")," ")}},directives:[O.uh,O.xY,Sr.SP,Sr.uX,Sr.uD,Sr.Vc,O.H8,nt.lW,h.Hw],pipes:[u.X$,wu],styles:[".key{color:brown}.string{color:green}.number{color:#ff8c00}.boolean{color:#00f}.null{color:#f0f}\n"],encapsulation:2}),n})();var VT=o(86087),zT=o(36787),HT=o(62383);function YT(n,r){1&n&&(t.TgZ(0,"div",16),t._UZ(1,"mat-spinner",17),t.qZA())}function WT(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ID")," "))}function XT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function $T(n,r){1&n&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"AUDIT_MESSAGES_LIST.TIMESTAMP")," "))}function QT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseDate"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.createdAt,!0)," ")}}function JT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.EVENT_NAME")))}function jT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.ALo(2,"parseEventName"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.event.name)," ")}}function qT(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.ACTOR")))}function KT(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.actor," ")}}function tb(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"AUDIT_MESSAGES_LIST.MESSAGE")))}function eb(n,r){if(1&n&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.event.message," ")}}function nb(n,r){1&n&&t._UZ(0,"th",20)}function ib(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",19),t.TgZ(1,"button",21),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().viewDetails(s)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&n&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"AUDIT_MESSAGES_LIST.VIEW_DETAIL")," "))}function rb(n,r){1&n&&t._UZ(0,"tr",22)}function ab(n,r){1&n&&t._UZ(0,"tr",23)}function sb(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_AUDIT_MESSAGES"),"\n"))}let ob=(()=>{class n{constructor(e,i,a){this.dialog=e,this.dynamicPaginatingService=i,this.tableConfigService=a,this.displayedColumns=["id","timestamp","name","actor","event.message","detail"],this.pageSizeOptions=Ce.f7}static getExportDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"timestamp":return(0,_.p6)(e.createdAt,"d.M.y H.mm.ss","en");case"name":return e.event.name.split(".").pop();case"actor":return e.actor;case"event.message":return e.event.message;default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,zT.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,ve.b)(()=>this.loadAuditMessagesPage())).subscribe()}ngOnInit(){this.dataSource=new U.Hy(this.dynamicPaginatingService,null),this.dataSource.loadAuditMessages(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING")}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadAuditMessagesPage())}loadAuditMessagesPage(){this.dataSource.loadAuditMessages(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING")}viewDetails(e){const i=(0,Ce.kZ)(),a=JSON.parse(JSON.stringify(e));i.minWidth="700px",i.maxWidth="1000px",i.data={message:a},this.dialog.open(GT,i)}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.getData(),this.displayedColumns.filter(i=>"detail"!==i),n.getExportDataForColumn),e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.uw),t.Y36(U.ly),t.Y36(Ae.dB))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-audit-messages-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.YE,5)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.sort=a.first)}},inputs:{tableId:"tableId",refresh:"refresh",displayedColumns:"displayedColumns",searchString:"searchString"},features:[t._Bn([{provide:VT.ye,useClass:U.Be}]),t.TTD],decls:28,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","id","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","actor"],["matColumnDef","event.message"],["matColumnDef","detail"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["color","accent","mat-flat-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.ALo(1,"async"),t.TgZ(2,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.YNc(3,YT,2,0,"div",2),t.ALo(4,"async"),t.TgZ(5,"table",3),t.ynx(6,4),t.YNc(7,WT,3,3,"th",5),t.YNc(8,XT,2,1,"td",6),t.BQk(),t.ynx(9,7),t.YNc(10,$T,3,3,"th",5),t.YNc(11,QT,3,4,"td",6),t.BQk(),t.ynx(12,8),t.YNc(13,JT,3,3,"th",9),t.YNc(14,jT,3,3,"td",6),t.BQk(),t.ynx(15,10),t.YNc(16,qT,3,3,"th",9),t.YNc(17,KT,2,1,"td",6),t.BQk(),t.ynx(18,11),t.YNc(19,tb,3,3,"th",9),t.YNc(20,eb,2,1,"td",6),t.BQk(),t.ynx(21,12),t.YNc(22,nb,1,0,"th",9),t.YNc(23,ib,4,3,"td",6),t.BQk(),t.YNc(24,rb,1,0,"tr",13),t.YNc(25,ab,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,sb,3,3,"perun-web-apps-alert",15),t.ALo(27,"async")),2&e&&(t.Q6J("hidden",0===i.dataSource.allObjectCount&&!1===t.lcZ(1,9,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataLength",i.dataSource.allObjectCount)("pageSizeOptions",i.pageSizeOptions)("tableId",i.tableId),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,11,i.dataSource.loading$)),t.xp6(2),t.Q6J("dataSource",i.dataSource),t.xp6(19),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.allObjectCount&&!1===t.lcZ(27,13,i.dataSource.loading$)))},directives:[Mn.l,_.O5,W.$g,R.BZ,je.YE,R.w1,R.fO,R.ge,je.nU,R.Dz,R.ev,nt.lW,R.as,R.XQ,R.nj,R.Gk,rt.w],pipes:[_.Ov,u.X$,HT.M,wu],styles:[""]}),n})(),lb=(()=>{class n{constructor(){this.tableId=Ae.yW,this.refresh=!1}refreshTable(){this.refresh=!this.refresh}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-admin-audit-log"]],decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"refresh","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t._UZ(4,"app-audit-messages-list",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"ADMIN.AUDIT_LOG.TITLE")),t.xp6(3),t.Q6J("refresh",i.refresh)("tableId",i.tableId))},directives:[xn.t,ob],pipes:[u.X$],styles:[""]}),n})();var cb=o(4834);let ub=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.so),t.Y36(O.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-edit-enforce-consents-dialog"]],decls:26,vars:27,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mt-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.ALo(9,"translate"),t.qZA(),t._UZ(10,"mat-divider"),t.TgZ(11,"p",2),t._uU(12),t.qZA(),t._UZ(13,"mat-divider"),t.TgZ(14,"perun-web-apps-alert",3),t._uU(15),t.ALo(16,"translate"),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t.TgZ(19,"button",5),t.NdJ("click",function(){return i.onCancel()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"button",6),t.NdJ("click",function(){return i.onSubmit()}),t._uU(23),t.ALo(24,"translate"),t.ALo(25,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(i.data.theme),t.xp6(2),t.hij(" ",i.data.enforceConsents?t.lcZ(3,9,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_TITLE"):t.lcZ(4,11,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_TITLE")," "),t.xp6(5),t.hij(" ",i.data.enforceConsents?t.lcZ(8,13,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_DESCRIPTION"):t.lcZ(9,15,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_DESCRIPTION")," "),t.xp6(5),t.Oqu(i.data.consentHubName),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(16,17,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BOLD_DESCRIPTION"):t.lcZ(17,19,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BOLD_DESCRIPTION")," "),t.xp6(5),t.hij(" ",t.lcZ(21,21,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.CANCEL_BUTTON")," "),t.xp6(3),t.hij(" ",i.data.enforceConsents?t.lcZ(24,23,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.DISABLE_BUTTON"):t.lcZ(25,25,"DIALOGS.EDIT_ENFORCE_CONSENTS_FLAG.ENFORCE_BUTTON")," "))},directives:[O.uh,O.xY,cb.d,rt.w,O.H8,nt.lW],pipes:[u.X$],styles:[""]}),n})();function hb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function db(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const d=t.CHM(e).$implicit,T=t.oxw();return a?T.selection.toggle(d):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit,i=t.oxw();t.xp6(1),t.Q6J("aria-label",i.checkboxLabel(e))("checked",i.selection.isSelected(e))}}function fb(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ID")," "))}function pb(n,r){if(1&n&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.id)}}function mb(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NAME")," "))}function gb(n,r){if(1&n&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Oqu(e.name)}}function _b(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.ENFORCE_CONSENTS")," "))}function vb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-slide-toggle",23),t.NdJ("change",function(a){const d=t.CHM(e).$implicit;return t.oxw().changeEnforceFlag(d,a)}),t.qZA(),t.qZA()}if(2&n){const e=r.$implicit;t.xp6(1),t.Q6J("checked",e.enforceConsents)}}function xb(n,r){1&n&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.FACILITIES")," "))}function yb(n,r){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.TgZ(2,"span",25),t._uU(3),t.qZA(),t._UZ(4,"br"),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.hij(" ",e.name," "),t.xp6(2),t.hij(" #",e.id,"")}}function Tb(n,r){if(1&n&&(t.TgZ(0,"td",22),t.YNc(1,yb,5,2,"span",24),t.qZA()),2&n){const e=r.$implicit;t.xp6(1),t.Q6J("ngForOf",e.facilities)}}function bb(n,r){1&n&&t._UZ(0,"tr",26)}function Cb(n,r){1&n&&t._UZ(0,"tr",27)}function wb(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_CONSENT_HUBS"),"\n"))}function Ab(n,r){1&n&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.CONSENT_HUBS_LIST.NO_FILTER_RESULTS"),"\n"))}let Eb=(()=>{class n{constructor(e,i,a,s,d){this.tableCheckbox=e,this.dialog=i,this.notificator=a,this.translate=s,this.consentsManager=d,this.filterValue="",this.displayedColumns=["select","id","name","enforceConsents","facilities"],this.selection=new F.Ov(!0,[]),this.exporting=!1,this.pageSizeOptions=Ce.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,i){switch(i){case"id":return e.id.toString();case"name":return e.name;case"enforceConsents":return e.enforceConsents?"true":"false";case"facilities":{let a="";return e.facilities.forEach(s=>a+=s.name+" #"+String(s.id)+";"),a.slice(0,-1)}default:return""}}ngOnChanges(){this.dataSource=new R.by(this.consentHubs),this.setDataSource()}exportData(e){(0,Ce.O6)((0,Ce.Xn)(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,i)=>(0,Ce.Sd)(e,i,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,i)=>(0,Ce.pR)(e,i,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}changeEnforceFlag(e,i){i.source.checked=e.enforceConsents;const a=(0,Ce.kZ)();a.width="550px",a.data={theme:"admin-theme",enforceConsents:e.enforceConsents,consentHubName:e.name},this.dialog.open(ub,a).afterClosed().subscribe(d=>{d&&(e.enforceConsents=!e.enforceConsents,this.consentsManager.updateConsentHub({consentHub:e}).subscribe(T=>{i.source.checked=T.enforceConsents,e.enforceConsents=T.enforceConsents,this.translate.get("SHARED.COMPONENTS.CONSENT_HUBS_LIST.CHANGE_ENFORCE_CONSENTS_SUCCESS").subscribe(S=>{this.notificator.showSuccess(S)})},()=>e.enforceConsents=!e.enforceConsents))})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(U.UA),t.Y36(O.uw),t.Y36(U.V6),t.Y36(u.sK),t.Y36(V.WY))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-consent-hubs-list"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ce.l9,7),t.Gf(je.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(i.child=a.first),t.iGM(a=t.CRH())&&(i.matSort=a.first)}},inputs:{consentHubs:"consentHubs",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",selection:"selection"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enforceConsents"],["matColumnDef","facilities"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"checked","change"],[4,"ngFor","ngForOf"],[1,"text-muted"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return i.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,hb,2,3,"th",4),t.YNc(5,db,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,fb,3,3,"th",7),t.YNc(8,pb,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,mb,3,3,"th",7),t.YNc(11,gb,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,_b,3,3,"th",7),t.YNc(14,vb,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,xb,3,3,"th",7),t.YNc(17,Tb,2,1,"td",10),t.BQk(),t.YNc(18,bb,1,0,"tr",13),t.YNc(19,Cb,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,wb,3,3,"perun-web-apps-alert",15),t.YNc(21,Ab,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===i.consentHubs.length||0===i.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",i.tableId)("dataLength",i.dataSource.filteredData.length)("pageSizeOptions",i.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",i.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===i.consentHubs.length),t.xp6(1),t.Q6J("ngIf",0===i.dataSource.filteredData.length&&0!==i.consentHubs.length))},directives:[Mn.l,R.BZ,je.YE,R.w1,R.fO,R.ge,Ut.oG,R.Dz,R.ev,je.nU,Ht.Rr,_.sg,R.as,R.XQ,R.nj,R.Gk,_.O5,rt.w],pipes:[u.X$],styles:[""]}),n})();function Sb(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().evaluateConsents()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"ADMIN.CONSENT_HUBS.EVALUATE_CONSENTS")," ")}}function Db(n,r){1&n&&t._UZ(0,"mat-spinner",7)}function Lb(n,r){if(1&n&&t._UZ(0,"app-perun-web-apps-consent-hubs-list",8),2&n){const e=t.oxw();t.Q6J("consentHubs",e.consentHubs)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)}}let kb=(()=>{class n{constructor(e,i,a,s,d){this.consentsManager=e,this.authResolver=i,this.notificator=a,this.translate=s,this.dialog=d,this.loading=!1,this.tableId=Ae.HE,this.selection=new F.Ov(!0,[]),this.filterValue="",this.consentHubs=[]}ngOnInit(){this.refreshTable()}applyFilter(e){this.filterValue=e}refreshTable(){this.loading=!0,this.consentsManager.getAllConsentHubs().subscribe(e=>{this.consentHubs=e,this.loading=!1})}evaluateConsents(){const e=(0,Ce.kZ)();e.width="500px",e.data={title:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_TITLE"),theme:"admin-theme",description:this.translate.instant("ADMIN.CONSENT_HUBS.CONFIRM_DIALOG_DESCRIPTION"),items:this.selection.selected.map(a=>a.name),type:"confirmation",showAsk:!1},this.dialog.open(Aa.Ts,e).afterClosed().subscribe(a=>{a&&this.evaluateConsentsForConsentHub(0)})}evaluateConsentsForConsentHub(e){if(e===this.selection.selected.length)return this.notificator.showSuccess(this.translate.instant("ADMIN.CONSENT_HUBS.EVALUATION_FINISH")),void this.selection.clear();this.consentsManager.evaluateConsentsForConsentHub(this.selection.selected[e].id).subscribe(()=>{this.evaluateConsentsForConsentHub(++e)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(V.WY),t.Y36(U.x4),t.Y36(U.V6),t.Y36(u.sK),t.Y36(O.uw))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-perun-web-apps-admin-consent-hubs"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"consentHubs","selection","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"consentHubs","selection","filterValue","tableId"]],template:function(e,i){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return i.refreshTable()}),t.qZA(),t.YNc(5,Sb,3,4,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return i.applyFilter(s)}),t.qZA(),t.YNc(7,Db,1,0,"mat-spinner",4),t.YNc(8,Lb,1,4,"app-perun-web-apps-consent-hubs-list",5),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"ADMIN.CONSENT_HUBS.TITLE")),t.xp6(3),t.Q6J("ngIf",i.authResolver.isPerunAdmin()),t.xp6(1),t.Q6J("placeholder","ADMIN.CONSENT_HUBS.SEARCH"),t.xp6(1),t.Q6J("ngIf",i.loading),t.xp6(1),t.Q6J("ngIf",!i.loading))},directives:[xn.t,_.O5,nt.lW,sn.L,W.$g,Eb],pipes:[u.X$],styles:[""]}),n})();var Ib=o(57788),xo=o(71992);const Mb=[{path:"",component:C,canActivateChild:[xo.a],children:[{path:"",component:k,data:{animation:"AdminOverviewPage"}},{path:"attributes",component:le,data:{animation:"AdminAttributesPage"}},{path:"users",component:ty.t,data:{animation:"AdminUsersPage"}},{path:"owners",component:nT,data:{animation:"AdminOwnersPage"}},{path:"services",component:Iy.F,data:{animation:"AdminServicesPage"}},{path:"audit_log",component:lb,data:{animation:"AdminAuditLogPage"}},{path:"visualizer",component:ke,children:[{path:"",component:He,data:{animation:"VisualizerOverviewPage"}},{path:"attrDependencies",component:rn,data:{animation:"VisualizerAttrModulesPage"}},{path:"userDestinationRelationship",component:Wt,data:{animation:"UserDestinationRelationshipPage"}},{path:"userDestinationRelationship/graph",component:Kx,data:{animation:"UserDestinationGraphPage"}}]},{path:"ext_sources",component:vy,data:{animation:"AdminExtSourcesPage"}},{path:"consent_hubs",component:kb,data:{animation:"AdminConsentHubsPage"}},{path:"searcher",component:Ib.g,data:{animation:"AdminSearcherPage"}}]},{path:"users/:userId",component:ly,canActivateChild:[xo.a],children:[{path:"",component:cy.Z,data:{animation:"UserOverviewPage"}},{path:"accounts",component:PT,data:{animation:"UserAccountsPage"}},{path:"attributes",component:dy.u,data:{animation:"UserAttributesPage"}},{path:"organizations",component:uy.j,data:{animation:"UserOrganizationsPage",showPrincipal:!1}},{path:"groups",component:hy.u,data:{animation:"UserGroupsPage",showPrincipal:!1}},{path:"identities",component:ky,data:{animation:"UserIdentitiesPage"}},{path:"facilities",component:sT,data:{animation:"UserFacilitiesPage"}},{path:"resources",component:Py,data:{animation:"UserRoles"}},{path:"identities/:identityId",component:zy,data:{animation:"UserIdentityDetailPage"}},{path:"roles",component:xy.t,data:{animation:"UserRolesPage"}},{path:"service-identities",component:yy.R,data:{animation:"UserServiceIdentities"}},{path:"associated-users",component:D1.d,data:{animation:"AssociatedUsersPage"}}]},{path:"services/:serviceId",component:Ky,canActivateChild:[xo.a],children:[{path:"",component:t1,data:{animation:"ServiceOverviewPage"}},{path:"required-attributes",component:S1,data:{animation:"ServiceRequiredAttributesPage"}},{path:"destinations",component:R1,data:{animation:"ServiceDestinationsPage"}}]}];let Ob=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[f.Bz.forChild(Mb)],f.Bz]}),n})();var Nb=o(14264),Fb=o(63189),Pb=o(19516),Rb=o(46142);let Zb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[am,Vx,_.ez,Ob,Nb.m,Fb.r,ci.ez,Pb.d4,Rb.UsersModule]]}),n})()},70242:(w,I,o)=>{"use strict";o.d(I,{q:()=>ne});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(25245),u=o(29772),g=o(98380),C=o(51062);function A(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"th",21),t.TgZ(1,"mat-checkbox",22),t.NdJ("change",function(Qt){t.CHM(ft);const me=t.oxw();return Qt?me.masterToggle():null}),t.qZA(),t.qZA()}if(2&Ut){const ft=t.oxw();t.xp6(1),t.Q6J("aria-label",ft.checkboxLabel())("checked",ft.selection.hasValue()&&ft.isAllSelected())("indeterminate",ft.selection.hasValue()&&!ft.isAllSelected())}}function k(Ut,vt){if(1&Ut){const ft=t.EpF();t.TgZ(0,"td",23),t.TgZ(1,"mat-checkbox",24),t.NdJ("change",function(Qt){const ge=t.CHM(ft).$implicit,ye=t.oxw();return Qt?ye.selection.toggle(ge):null})("click",function(Qt){return Qt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("aria-label",Nt.checkboxLabel(ft))("checked",Nt.selection.isSelected(ft))}}function F(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION_ID")," "))}function O(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",26),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.hij(" ",ft.id," ")}}function R(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.SERVICE")," "))}function U(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.service.name)}}function V(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function W(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",30),t.ALo(1,"translate"),t._uU(2," warning "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.WARN"))}function rt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,W,3,3,"mat-icon",29),t.qZA()),2&Ut){const ft=vt.$implicit,Nt=t.oxw();t.xp6(1),t.Q6J("ngIf",!Nt.services.has(ft.service.id))}}function nt(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.FACILITY")," "))}function ut(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.facility.name)}}function J(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.DESTINATION")," "))}function tt(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.destination)}}function Q(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.TYPE")," "))}function at(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.type.toUpperCase())}}function H(Ut,vt){1&Ut&&t._UZ(0,"th",28)}function K(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," check_circle_outline "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.ALLOWED"))}function lt(Ut,vt){1&Ut&&(t.TgZ(0,"mat-icon",32),t.ALo(1,"translate"),t._uU(2," block "),t.qZA()),2&Ut&&t.s9C("matTooltip",t.lcZ(1,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.BLOCKED"))}function it(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t.YNc(1,K,3,3,"mat-icon",31),t.YNc(2,lt,3,3,"mat-icon",31),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Q6J("ngIf",!ft.blocked),t.xp6(1),t.Q6J("ngIf",ft.blocked)}}function z(Ut,vt){1&Ut&&(t.TgZ(0,"th",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.PROPAGATION_TYPE")," "))}function E(Ut,vt){if(1&Ut&&(t.TgZ(0,"td",27),t._uU(1),t.qZA()),2&Ut){const ft=vt.$implicit;t.xp6(1),t.Oqu(ft.propagationType)}}function Ct(Ut,vt){1&Ut&&t._UZ(0,"tr",33)}function It(Ut,vt){1&Ut&&t._UZ(0,"tr",34)}function Rt(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ht(Ut,vt){1&Ut&&(t.TgZ(0,"perun-web-apps-alert",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Ut&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.DESTINATIONS_LIST.NO_DESTINATIONS"),"\n"))}let ne=(()=>{class Ut{constructor(ft,Nt){this.authResolver=ft,this.tableCheckbox=Nt,this.destinations=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.pageSizeOptions=_.f7}set matSort(ft){this.sort=ft,this.setDataSource()}static getDataForColumn(ft,Nt){switch(Nt){case"destinationId":return ft.id.toString();case"service":return ft.service.name;case"facility":return ft.facility.name;case"destination":return ft.destination;case"type":return ft.type;case"status":return ft.blocked?"blocked":"allowed";case"propagationType":return ft.propagationType;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ft=>"destinationId"!==ft)),this.dataSource=new v.by(this.destinations),this.setDataSource(),this.dataSource.filter=this.filterValue.toLowerCase()}exportData(ft){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Ut.getDataForColumn),ft)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(ft,Nt)=>(0,_.Sd)(ft,Nt,this.displayedColumns,Ut.getDataForColumn),this.dataSource.sortData=(ft,Nt)=>(0,_.pR)(ft,Nt,Ut.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(ft){return ft?`${this.selection.isSelected(ft)?"deselect":"select"} row ${ft.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return Ut.\u0275fac=function(ft){return new(ft||Ut)(t.Y36(f.x4),t.Y36(f.UA))},Ut.\u0275cmp=t.Xpm({type:Ut,selectors:[["app-perun-web-apps-destination-list"]],viewQuery:function(ft,Nt){if(1&ft&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&ft){let Qt;t.iGM(Qt=t.CRH())&&(Nt.child=Qt.first),t.iGM(Qt=t.CRH())&&(Nt.matSort=Qt.first)}},inputs:{destinations:"destinations",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",services:"services"},features:[t.TTD],decls:34,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","destinationId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","service"],["mat-cell","",4,"matCellDef"],["matColumnDef","warn"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","facility"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","status"],["matColumnDef","propagationType"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","warn","matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",1,"warn",3,"matTooltip"],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(ft,Nt){1&ft&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(me){return Nt.exportData(me)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,A,2,3,"th",4),t.YNc(5,k,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,F,3,3,"th",7),t.YNc(8,O,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,R,3,3,"th",7),t.YNc(11,U,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,V,1,0,"th",12),t.YNc(14,rt,2,1,"td",10),t.BQk(),t.ynx(15,13),t.YNc(16,nt,3,3,"th",7),t.YNc(17,ut,2,1,"td",10),t.BQk(),t.ynx(18,14),t.YNc(19,J,3,3,"th",7),t.YNc(20,tt,2,1,"td",10),t.BQk(),t.ynx(21,15),t.YNc(22,Q,3,3,"th",7),t.YNc(23,at,2,1,"td",10),t.BQk(),t.ynx(24,16),t.YNc(25,H,1,0,"th",12),t.YNc(26,it,3,2,"td",10),t.BQk(),t.ynx(27,17),t.YNc(28,z,3,3,"th",7),t.YNc(29,E,2,1,"td",10),t.BQk(),t.YNc(30,Ct,1,0,"tr",18),t.YNc(31,It,1,0,"tr",19),t.qZA(),t.qZA(),t.qZA(),t.YNc(32,Rt,3,3,"perun-web-apps-alert",20),t.YNc(33,Ht,3,3,"perun-web-apps-alert",20)),2&ft&&(t.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.destinations.length),t.xp6(1),t.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),t.xp6(1),t.Q6J("dataSource",Nt.dataSource),t.xp6(28),t.Q6J("matHeaderRowDef",Nt.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",Nt.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.destinations.length),t.xp6(1),t.Q6J("ngIf",0===Nt.destinations.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,h.O5,m.Hw,u.gM,v.as,v.XQ,v.nj,v.Gk,g.w],pipes:[C.X$],styles:[".warn[_ngcontent-%COMP%]{color:#ebe134}"]}),Ut})()},89466:(w,I,o)=>{"use strict";o.d(I,{u:()=>k});var c=o(32105),x=o(48966),v=o(32075),_=o(36908),f=o(5e3),t=o(51062),p=o(69808),l=o(20773),h=o(98380),m=o(70242),u=o(47423);function g(F,O){1&F&&f._UZ(0,"mat-spinner",6)}function C(F,O){if(1&F&&f._UZ(0,"app-perun-web-apps-destination-list",11),2&F){const R=f.oxw(2);f.Q6J("destinations",R.destinations)("displayedColumns",R.displayedColumns)}}function A(F,O){if(1&F&&(f.TgZ(0,"div",7),f.TgZ(1,"perun-web-apps-alert",8),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"p"),f._uU(5),f.ALo(6,"translate"),f.qZA(),f.TgZ(7,"div",9),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.YNc(10,C,1,2,"app-perun-web-apps-destination-list",10),f.qZA()),2&F){const R=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,4,"DIALOGS.REMOVE_DESTINATIONS.WARNING")),f.xp6(3),f.Oqu(f.lcZ(6,6,"DIALOGS.REMOVE_DESTINATIONS.DESCRIPTION")),f.xp6(3),f.hij(" ",f.lcZ(9,8,"DIALOGS.REMOVE_DESTINATIONS.ASK")," "),f.xp6(2),f.Q6J("ngIf",!R.loading)}}let k=(()=>{class F{constructor(R,U,V,W,rt){this.dialogRef=R,this.data=U,this.notificator=V,this.translate=W,this.serviceManager=rt,this.displayedColumns=[],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.destinations=this.data.destinations,this.displayedColumns="admin-theme"===this.theme?["destinationId","facility","destination","type","propagationType"]:["destinationId","service","destination","type","propagationType"],this.dataSource=new v.by(this.data.destinations)}onCancel(){this.dialogRef.close(!1)}deleteDestinations(){if(0===this.destinations.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_DESTINATIONS.SUCCESS")),void this.dialogRef.close(!0);const R=this.destinations.pop();this.serviceManager.removeDestination(R.service.id,R.facility.id,R.destination,R.type).subscribe(()=>{this.deleteDestinations()},()=>this.loading=!1)}onConfirm(){this.loading=!0,this.deleteDestinations()}}return F.\u0275fac=function(R){return new(R||F)(f.Y36(x.so),f.Y36(x.WI),f.Y36(_.V6),f.Y36(t.sK),f.Y36(c.KK))},F.\u0275cmp=f.Xpm({type:F,selectors:[["app-perun-web-apps-remove-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["alert_type","warn"],[1,"font-weight-bold"],[3,"destinations","displayedColumns",4,"ngIf"],[3,"destinations","displayedColumns"]],template:function(R,U){1&R&&(f.TgZ(0,"h1",0),f._uU(1),f.ALo(2,"translate"),f.qZA(),f.TgZ(3,"div"),f.YNc(4,g,1,0,"mat-spinner",1),f.YNc(5,A,11,10,"div",2),f.TgZ(6,"div",3),f.TgZ(7,"button",4),f.NdJ("click",function(){return U.onCancel()}),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"button",5),f.NdJ("click",function(){return U.onConfirm()}),f._uU(11),f.ALo(12,"translate"),f.qZA(),f.qZA(),f.qZA()),2&R&&(f.xp6(1),f.Oqu(f.lcZ(2,9,"DIALOGS.REMOVE_DESTINATIONS.TITLE")),f.xp6(2),f.Tol(U.theme),f.xp6(1),f.Q6J("ngIf",U.loading),f.xp6(1),f.Q6J("ngIf",!U.loading),f.xp6(3),f.hij(" ",f.lcZ(9,11,"DIALOGS.REMOVE_DESTINATIONS.CANCEL")," "),f.xp6(2),f.Q6J("disabled",U.loading),f.xp6(1),f.hij(" ",f.lcZ(12,13,"DIALOGS.REMOVE_DESTINATIONS.CONFIRM")," "))},directives:[x.uh,p.O5,l.$g,x.xY,h.w,m.q,x.H8,u.lW],pipes:[t.X$],styles:[""]}),F})()},23256:(w,I,o)=>{"use strict";o.d(I,{Q:()=>tt});var c=o(84847),x=o(20449),v=o(32075),_=o(9244),f=o(36908),t=o(5e3),p=o(18750),l=o(77446),h=o(69808),m=o(98380),u=o(51062);function g(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(lt){t.CHM(H);const it=t.oxw();return lt?it.masterToggle():null}),t.qZA(),t.qZA()}if(2&Q){const H=t.oxw();t.xp6(1),t.Q6J("aria-label",H.checkboxLabel())("checked",H.selection.hasValue()&&H.isAllSelected())("indeterminate",H.selection.hasValue()&&!H.isAllSelected())}}function C(Q,at){if(1&Q){const H=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(lt){const z=t.CHM(H).$implicit,E=t.oxw();return lt?E.selection.toggle(z):null})("click",function(lt){return lt.stopPropagation()}),t.qZA(),t.qZA()}if(2&Q){const H=at.$implicit,K=t.oxw();t.xp6(1),t.Q6J("aria-label",K.checkboxLabel(H))("checked",K.selection.isSelected(H))}}function A(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function k(Q,at){if(1&Q&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.hij(" ",H.id," ")}}function F(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function O(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.name)}}function R(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function U(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.contact)}}function V(Q,at){1&Q&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function W(Q,at){if(1&Q&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&Q){const H=at.$implicit;t.xp6(1),t.Oqu(H.type)}}function rt(Q,at){1&Q&&t._UZ(0,"tr",23)}function nt(Q,at){1&Q&&t._UZ(0,"tr",24)}function ut(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function J(Q,at){1&Q&&(t.TgZ(0,"perun-web-apps-alert",25),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&Q&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let tt=(()=>{class Q{constructor(H,K){this.authResolver=H,this.tableCheckbox=K,this.owners=[],this.selection=new x.Ov(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=_.f7}set matSort(H){this.sort=H,this.setDataSource()}static getDataForColumn(H,K){switch(K){case"id":return H.id.toString();case"name":return H.name;case"contact":return H.contact;case"type":return H.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(H){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,Q.getDataForColumn),H)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(H,K)=>(0,_.Sd)(H,K,this.displayedColumns,Q.getDataForColumn),this.dataSource.sortData=(H,K)=>(0,_.pR)(H,K,Q.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H)),this.dataSource=new v.by(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Q.\u0275fac=function(H){return new(H||Q)(t.Y36(f.x4),t.Y36(f.UA))},Q.\u0275cmp=t.Xpm({type:Q,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(H,K){if(1&H&&(t.Gf(_.l9,7),t.Gf(c.YE,7)),2&H){let lt;t.iGM(lt=t.CRH())&&(K.child=lt.first),t.iGM(lt=t.CRH())&&(K.matSort=lt.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[t.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(H,K){1&H&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(it){return K.exportData(it)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,g,2,3,"th",4),t.YNc(5,C,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,A,3,3,"th",7),t.YNc(8,k,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,F,3,3,"th",7),t.YNc(11,O,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,R,3,3,"th",7),t.YNc(14,U,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,V,3,3,"th",7),t.YNc(17,W,2,1,"td",10),t.BQk(),t.YNc(18,rt,1,0,"tr",13),t.YNc(19,nt,1,0,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,ut,3,3,"perun-web-apps-alert",15),t.YNc(21,J,3,3,"perun-web-apps-alert",15)),2&H&&(t.Q6J("hidden",0===K.owners.length||0===K.dataSource.filteredData.length),t.xp6(1),t.Q6J("tableId",K.tableId)("dataLength",K.dataSource.filteredData.length)("pageSizeOptions",K.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",K.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",K.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",K.displayedColumns),t.xp6(1),t.Q6J("ngIf",!K.owners.length),t.xp6(1),t.Q6J("ngIf",!K.dataSource.filteredData.length&&K.owners.length))},directives:[p.l,v.BZ,c.YE,v.w1,v.fO,v.ge,l.oG,v.Dz,v.ev,c.nU,v.as,v.XQ,v.nj,v.Gk,h.O5,m.w],pipes:[u.X$],styles:[""]}),Q})()},16087:(w,I,o)=>{"use strict";const c=o(34315),x=o(52872),v=o(40717);w.exports=function _(p,l){switch(x(p)){case"object":return function f(p,l){if("function"==typeof l)return l(p);if(l||v(p)){const h=new p.constructor;for(let m in p)h[m]=_(p[m],l);return h}return p}(p,l);case"array":return function t(p,l){const h=new p.constructor(p.length);for(let m=0;m{"use strict";o.d(I,{Il:()=>x,xV:()=>v,J5:()=>_,ZP:()=>U,SU:()=>rt,B8:()=>nt,Ss:()=>ut,Ym:()=>K});var c=o(68884);function x(){}var v=.7,_=1/v,f="\\s*([+-]?\\d+)\\s*",t="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[f,f,f]+"\\)$"),m=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),u=new RegExp("^rgba\\("+[f,f,f,t]+"\\)$"),g=new RegExp("^rgba\\("+[p,p,p,t]+"\\)$"),C=new RegExp("^hsl\\("+[t,p,p]+"\\)$"),A=new RegExp("^hsla\\("+[t,p,p,t]+"\\)$"),k={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function F(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function U(z){var E,Ct;return z=(z+"").trim().toLowerCase(),(E=l.exec(z))?(Ct=E[1].length,E=parseInt(E[1],16),6===Ct?V(E):3===Ct?new ut(E>>8&15|E>>4&240,E>>4&15|240&E,(15&E)<<4|15&E,1):8===Ct?W(E>>24&255,E>>16&255,E>>8&255,(255&E)/255):4===Ct?W(E>>12&15|E>>8&240,E>>8&15|E>>4&240,E>>4&15|240&E,((15&E)<<4|15&E)/255):null):(E=h.exec(z))?new ut(E[1],E[2],E[3],1):(E=m.exec(z))?new ut(255*E[1]/100,255*E[2]/100,255*E[3]/100,1):(E=u.exec(z))?W(E[1],E[2],E[3],E[4]):(E=g.exec(z))?W(255*E[1]/100,255*E[2]/100,255*E[3]/100,E[4]):(E=C.exec(z))?at(E[1],E[2]/100,E[3]/100,1):(E=A.exec(z))?at(E[1],E[2]/100,E[3]/100,E[4]):k.hasOwnProperty(z)?V(k[z]):"transparent"===z?new ut(NaN,NaN,NaN,0):null}function V(z){return new ut(z>>16&255,z>>8&255,255&z,1)}function W(z,E,Ct,It){return It<=0&&(z=E=Ct=NaN),new ut(z,E,Ct,It)}function rt(z){return z instanceof x||(z=U(z)),z?new ut((z=z.rgb()).r,z.g,z.b,z.opacity):new ut}function nt(z,E,Ct,It){return 1===arguments.length?rt(z):new ut(z,E,Ct,null==It?1:It)}function ut(z,E,Ct,It){this.r=+z,this.g=+E,this.b=+Ct,this.opacity=+It}function J(){return"#"+Q(this.r)+Q(this.g)+Q(this.b)}function tt(){var z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===z?")":", "+z+")")}function Q(z){return((z=Math.max(0,Math.min(255,Math.round(z)||0)))<16?"0":"")+z.toString(16)}function at(z,E,Ct,It){return It<=0?z=E=Ct=NaN:Ct<=0||Ct>=1?z=E=NaN:E<=0&&(z=NaN),new lt(z,E,Ct,It)}function H(z){if(z instanceof lt)return new lt(z.h,z.s,z.l,z.opacity);if(z instanceof x||(z=U(z)),!z)return new lt;if(z instanceof lt)return z;var E=(z=z.rgb()).r/255,Ct=z.g/255,It=z.b/255,Rt=Math.min(E,Ct,It),Ht=Math.max(E,Ct,It),ne=NaN,Ut=Ht-Rt,vt=(Ht+Rt)/2;return Ut?(ne=E===Ht?(Ct-It)/Ut+6*(Ct0&&vt<1?0:ne,new lt(ne,Ut,vt,z.opacity)}function K(z,E,Ct,It){return 1===arguments.length?H(z):new lt(z,E,Ct,null==It?1:It)}function lt(z,E,Ct,It){this.h=+z,this.s=+E,this.l=+Ct,this.opacity=+It}function it(z,E,Ct){return 255*(z<60?E+(Ct-E)*z/60:z<180?Ct:z<240?E+(Ct-E)*(240-z)/60:E)}(0,c.Z)(x,U,{copy:function(z){return Object.assign(new this.constructor,this,z)},displayable:function(){return this.rgb().displayable()},hex:F,formatHex:F,formatHsl:function O(){return H(this).formatHsl()},formatRgb:R,toString:R}),(0,c.Z)(ut,nt,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new ut(this.r*z,this.g*z,this.b*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new ut(this.r*z,this.g*z,this.b*z,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:J,formatHex:J,formatRgb:tt,toString:tt})),(0,c.Z)(lt,K,(0,c.l)(x,{brighter:function(z){return z=null==z?_:Math.pow(_,z),new lt(this.h,this.s,this.l*z,this.opacity)},darker:function(z){return z=null==z?v:Math.pow(v,z),new lt(this.h,this.s,this.l*z,this.opacity)},rgb:function(){var z=this.h%360+360*(this.h<0),E=isNaN(z)||isNaN(this.s)?0:this.s,Ct=this.l,It=Ct+(Ct<.5?Ct:1-Ct)*E,Rt=2*Ct-It;return new ut(it(z>=240?z-240:z+120,Rt,It),it(z,Rt,It),it(z<120?z+240:z-120,Rt,It),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var z=this.opacity;return(1===(z=isNaN(z)?1:Math.max(0,Math.min(1,z)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===z?")":", "+z+")")}}))},68884:(w,I,o)=>{"use strict";function c(v,_,f){v.prototype=_.prototype=f,f.constructor=v}function x(v,_){var f=Object.create(v.prototype);for(var t in _)f[t]=_[t];return f}o.d(I,{Z:()=>c,l:()=>x})},25922:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:function(){}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";function v(_){return((_*=2)<=1?_*_*_:(_-=2)*_*_+2)/2}o.d(I,{tw:()=>v})},22910:(w,I,o)=>{"use strict";o.d(I,{WU:()=>v,jH:()=>_,ZP:()=>f});var x,v,_,c=o(4753);function f(t){return x=(0,c.Z)(t),v=x.format,_=x.formatPrefix,x}f({thousands:",",grouping:[3],currency:["$",""]})},68520:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(5326);function x(v){return(v=(0,c.V)(Math.abs(v)))?v[1]:NaN}},5326:(w,I,o)=>{"use strict";function c(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)}function x(v,_){if((f=(v=_?v.toExponential(_-1):v.toExponential()).indexOf("e"))<0)return null;var f,t=v.slice(0,f);return[t.length>1?t[0]+t.slice(2):t,+v.slice(f+1)]}o.d(I,{Z:()=>c,V:()=>x})},32517:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x,v:()=>v});var c=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function x(_){if(!(f=c.exec(_)))throw new Error("invalid format: "+_);var f;return new v({fill:f[1],align:f[2],sign:f[3],symbol:f[4],zero:f[5],width:f[6],comma:f[7],precision:f[8]&&f[8].slice(1),trim:f[9],type:f[10]})}function v(_){this.fill=void 0===_.fill?" ":_.fill+"",this.align=void 0===_.align?">":_.align+"",this.sign=void 0===_.sign?"-":_.sign+"",this.symbol=void 0===_.symbol?"":_.symbol+"",this.zero=!!_.zero,this.width=void 0===_.width?void 0:+_.width,this.comma=!!_.comma,this.precision=void 0===_.precision?void 0:+_.precision,this.trim=!!_.trim,this.type=void 0===_.type?"":_.type+""}x.prototype=v.prototype,v.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},41129:(w,I,o)=>{"use strict";o.r(I),o.d(I,{formatDefaultLocale:()=>c.ZP,format:()=>c.WU,formatPrefix:()=>c.jH,formatLocale:()=>x.Z,formatSpecifier:()=>v.Z,FormatSpecifier:()=>v.v,precisionFixed:()=>_.Z,precisionPrefix:()=>f.Z,precisionRound:()=>t.Z});var c=o(22910),x=o(4753),v=o(32517),_=o(78986),f=o(38914),t=o(65142)},4753:(w,I,o)=>{"use strict";o.d(I,{Z:()=>A});var p,c=o(68520),_=o(32517),t=o(5326);function h(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1];return U<0?"0."+new Array(-U).join("0")+R:R.length>U+1?R.slice(0,U+1)+"."+R.slice(U+1):R+new Array(U-R.length+2).join("0")}const m={"%":(k,F)=>(100*k).toFixed(F),b:k=>Math.round(k).toString(2),c:k=>k+"",d:t.Z,e:(k,F)=>k.toExponential(F),f:(k,F)=>k.toFixed(F),g:(k,F)=>k.toPrecision(F),o:k=>Math.round(k).toString(8),p:(k,F)=>h(100*k,F),r:h,s:function l(k,F){var O=(0,t.V)(k,F);if(!O)return k+"";var R=O[0],U=O[1],V=U-(p=3*Math.max(-8,Math.min(8,Math.floor(U/3))))+1,W=R.length;return V===W?R:V>W?R+new Array(V-W+1).join("0"):V>0?R.slice(0,V)+"."+R.slice(V):"0."+new Array(1-V).join("0")+(0,t.V)(k,Math.max(0,F+V-1))[0]},X:k=>Math.round(k).toString(16).toUpperCase(),x:k=>Math.round(k).toString(16)};function u(k){return k}var g=Array.prototype.map,C=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function A(k){var F=void 0===k.grouping||void 0===k.thousands?u:function x(k,F){return function(O,R){for(var U=O.length,V=[],W=0,rt=k[0],nt=0;U>0&&rt>0&&(nt+rt+1>R&&(rt=Math.max(1,R-nt)),V.push(O.substring(U-=rt,U+rt)),!((nt+=rt+1)>R));)rt=k[W=(W+1)%k.length];return V.reverse().join(F)}}(g.call(k.grouping,Number),k.thousands+""),O=void 0===k.currency?"":k.currency[0]+"",R=void 0===k.currency?"":k.currency[1]+"",U=void 0===k.decimal?".":k.decimal+"",V=void 0===k.numerals?u:function v(k){return function(F){return F.replace(/[0-9]/g,function(O){return k[+O]})}}(g.call(k.numerals,String)),W=void 0===k.percent?"%":k.percent+"",rt=void 0===k.minus?"\u2212":k.minus+"",nt=void 0===k.nan?"NaN":k.nan+"";function ut(tt){var Q=(tt=(0,_.Z)(tt)).fill,at=tt.align,H=tt.sign,K=tt.symbol,lt=tt.zero,it=tt.width,z=tt.comma,E=tt.precision,Ct=tt.trim,It=tt.type;"n"===It?(z=!0,It="g"):m[It]||(void 0===E&&(E=12),Ct=!0,It="g"),(lt||"0"===Q&&"="===at)&&(lt=!0,Q="0",at="=");var Rt="$"===K?O:"#"===K&&/[boxX]/.test(It)?"0"+It.toLowerCase():"",Ht="$"===K?R:/[%p]/.test(It)?W:"",ne=m[It],Ut=/[defgprs%]/.test(It);function vt(ft){var me,ge,ye,Nt=Rt,Qt=Ht;if("c"===It)Qt=ne(ft)+Qt,ft="";else{var Be=(ft=+ft)<0||1/ft<0;if(ft=isNaN(ft)?nt:ne(Math.abs(ft),E),Ct&&(ft=function f(k){t:for(var U,F=k.length,O=1,R=-1;O0&&(R=0)}return R>0?k.slice(0,R)+k.slice(U+1):k}(ft)),Be&&0==+ft&&"+"!==H&&(Be=!1),Nt=(Be?"("===H?H:rt:"-"===H||"("===H?"":H)+Nt,Qt=("s"===It?C[8+p/3]:"")+Qt+(Be&&"("===H?")":""),Ut)for(me=-1,ge=ft.length;++me(ye=ft.charCodeAt(me))||ye>57){Qt=(46===ye?U+ft.slice(me+1):ft.slice(me))+Qt,ft=ft.slice(0,me);break}}z&&!lt&&(ft=F(ft,1/0));var vn=Nt.length+ft.length+Qt.length,Re=vn>1)+Nt+ft+Qt+Re.slice(vn);break;default:ft=Re+Nt+ft+Qt}return V(ft)}return E=void 0===E?6:/[gprs]/.test(It)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E)),vt.toString=function(){return tt+""},vt}return{format:ut,formatPrefix:function J(tt,Q){var at=ut(((tt=(0,_.Z)(tt)).type="f",tt)),H=3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(Q)/3))),K=Math.pow(10,-H),lt=C[8+H/3];return function(it){return at(K*it)+lt}}}}},78986:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v){return Math.max(0,-(0,c.Z)(Math.abs(v)))}},38914:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(_)/3)))-(0,c.Z)(Math.abs(v)))}},65142:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(68520);function x(v,_){return v=Math.abs(v),_=Math.abs(_)-v,Math.max(0,(0,c.Z)(_)-(0,c.Z)(v))+1}},9921:function(w,I,o){!function(c,x,v,_,f,t,p,l,h,m){"use strict";function u(q){if(q&&q.__esModule)return q;var pt=Object.create(null);return q&&Object.keys(q).forEach(function(bt){if("default"!==bt){var wt=Object.getOwnPropertyDescriptor(q,bt);Object.defineProperty(pt,bt,wt.get?wt:{enumerable:!0,get:function(){return q[bt]}})}}),pt.default=q,Object.freeze(pt)}var Ot,g=u(x);function C(q,pt,bt){return pt in q?Object.defineProperty(q,pt,{value:bt,enumerable:!0,configurable:!0,writable:!0}):q[pt]=bt,q}function A(q){return function k(q){if(Array.isArray(q))return R(q)}(q)||function F(q){if("undefined"!=typeof Symbol&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||function O(q,pt){if(q){if("string"==typeof q)return R(q,pt);var bt=Object.prototype.toString.call(q).slice(8,-1);if("Object"===bt&&q.constructor&&(bt=q.constructor.name),"Map"===bt||"Set"===bt)return Array.from(q);if("Arguments"===bt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(bt))return R(q,pt)}}(q)||function U(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(q,pt){(null==pt||pt>q.length)&&(pt=q.length);for(var bt=0,wt=new Array(pt);bt1&&void 0!==arguments[1]?arguments[1]:0,bt=g.select(this),wt=q.attributes,Xt=bt.node().attributes;if(Xt)for(var te=0;te0?Me.children[0].text:"")}null==Wt.key&&(Xt&&("ellipse"==Ie||"polygon"==Ie)&&(Ie="path"),Wt.key=Ie+"-"+oe)}function He(Wt,oe){Wt.id=(oe?oe.id+".":"")+Wt.key}function $e(Wt){N[Wt.id]=Wt}function fe(Wt,oe){Xt&&Wt.id in le&&("polygon"==oe.tag||"ellipse"==oe.tag||"path"==oe.tag)&&(oe.tag!=Wt.tag||"polygon"==Wt.tag)&&("path"!=oe.tag&&(Wt.alternativeOld=Re(oe,Wt)),"path"!=Wt.tag&&(Wt.alternativeNew=Re(Wt,oe)))}function ve(Wt,oe){if(wt&&oe&&("path"==oe.tag||Wt.alternativeOld&&"path"==Wt.alternativeOld.tag)){var Ie=(Wt.alternativeNew||Wt).attributes.d;if(Wt.alternativeOld)var Me=nt(Wt.alternativeOld);else Me=nt(oe);(Wt.alternativeOld||(Wt.alternativeOld={})).points=function vt(q,pt,bt,wt){for(var Xt=q,te=Xt.cloneNode(),Dt=Xt.getTotalLength(),he=(te.setAttribute("d",pt),te).getTotalLength(),N=[0],le=0,ke=wt?bt:bt/Math.max(Dt,he);(le+=ke)<1;)N.push(le);return N.push(1),N.map(function(rn){var He=Xt.getPointAtLength(rn*Dt),$e=te.getPointAtLength(rn*he);return[[He.x,He.y],[$e.x,$e.y]]})}(Me,Ie,te,Dt)}}function Qe(Wt){var Ie=arguments.length>2?arguments[2]:void 0;rn(Wt,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),He(Wt,Ie);var Ye=le[Wt.id];$e(Wt),fe(Wt,Ye),ve(Wt,Ye);var $n={};Wt.children.forEach(function(En){var Sn=En.tag;("ellipse"==Sn||"polygon"==Sn)&&(Sn="path"),null==$n[Sn]&&($n[Sn]=0),Qe(En,$n[Sn]++,Wt)})}function mt(Wt){(function et(Wt){if(he&&Wt.parent&&"node"==Wt.parent.attributes.class&&"title"==Wt.tag){if(Wt.children.length>0)var Me=Wt.children[0].text;else Me="";ke[Me]=Wt.parent}})(Wt),function gt(Wt){var Ie=Wt.tag;if(he&&!le[Wt.id]&&Wt.parent&&Qt(Wt)&&("path"==Ie||"polygon"==Ie)){if("polygon"==Ie){var Ye=Wt.parent.children.find(function(Jn){return"path"==Jn.tag});Ye&&(Wt.totalLength=Ye.totalLength)}var En=function ge(q){return function me(q){return"edge"==q.parent.attributes.class?q.parent:q.parent.parent.parent}(q).children.find(function(pt){return"title"==pt.tag})}(Wt).children[0],Sn=En.text.split("->");2!=Sn.length&&(Sn=En.text.split("--"));var we=Sn[0],Fn=ke[we],Qn=Oe[we];if(Qn){if((ln=Fn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0){var on=Fn.children[ln].children.findIndex(function(Jn,Ai){return"a"==Jn.tag});Fn=Fn.children[ln].children[on]}(ln=Qn.children.findIndex(function(Jn,Ai){return"g"==Jn.tag}))>=0&&(on=Qn.children[ln].children.findIndex(function(Ai,cn){return"a"==Ai.tag}),Qn=Qn.children[ln].children[on]);for(var Un=Fn.children,ln=0;ln0&&this._queue.shift().call(this)}function Zn(q,pt,bt,wt){var Xt=[q*bt-(pt=-pt)*(wt=-wt),q*wt+pt*bt];return[q=Xt[0],pt=-(pt=Xt[1])]}function Di(q,pt,bt,wt,Xt,te,Dt){var N=W(yn.call(this,te));q.data([N]),at.call(q.node(),N),gn(q,pt,bt,wt,Xt,te,Dt)}function gn(q,pt,bt,wt,Xt,te,Dt){var he=Dt.shortening||0,Oe=[[0,-3.5],[10,0],[0,3.5],[0,-3.5]],rn=wt-pt,He=Xt-bt,$e=Math.sqrt(rn*rn+He*He);if(0==$e)var fe=1,ve=0;else fe=rn/$e,ve=He/$e;if(wt=pt+($e-he-10-.1)*fe,Xt=bt+($e-he-10-.1)*ve,te.URL||te.tooltip)var Qe=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a"),et=Qe.selectWithoutDataPropagation("path"),gt=Qe.selectWithoutDataPropagation("polygon");else et=q.selectWithoutDataPropagation("path"),gt=q.selectWithoutDataPropagation("polygon");var mt=m.path();mt.moveTo(pt,bt),mt.lineTo(wt,Xt),et.attr("d",mt),wt=pt+($e-he-10)*fe,Xt=bt+($e-he-10)*ve;for(var St=0;St b ["+pt+"]}","svg","dot"),N=(new window.DOMParser).parseFromString(Dt,"image/svg+xml");return g.select(document.createDocumentFragment()).append(function(){return N.documentElement}).select(".edge")}function Nn(q,pt,bt,wt,Xt,te){var he=W(X.call(this,wt,Xt));return q.data([he]),at.call(q.node(),he),Le(q,pt,bt,Xt),this}function Le(q,pt,bt,wt,Xt){if(wt.URL||wt.tooltip)var te=q.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");else te=q;var Dt=te.selectAll("ellipse,polygon,path,polyline"),he=q.selectWithoutDataPropagation("text");if(0!=Dt.size()){var N=Dt.node().getBBox();N.cx=N.x+N.width/2,N.cy=N.y+N.height/2}else 0!=he.size()&&(N={x:+he.attr("x"),y:+he.attr("y"),width:0,height:0,cx:+he.attr("x"),cy:+he.attr("y")});return Dt.each(function(le,ke){var Oe=g.select(this);if(Oe.attr("cx"))Oe.attr("cx",K(pt)).attr("cy",K(bt));else if(Oe.attr("points")){var rn=Oe.attr("points").trim();Oe.attr("points",function mn(te,pt,bt){var Xt,wt=(Xt=te.split(" ")).map(function(Dt){return Dt.split(",")});return wt=Xt.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}),(Xt=wt.map(function(Dt){return Dt.join(",")})).join(" ")}(rn,pt-N.cx,bt-N.cy))}else{var He=Oe.attr("d");Oe.attr("d",function Ve(q,pt,bt){(te=q.split(/[A-Z ]/)).shift();var wt=q.split(/[^[A-Z ]+/),te=(te.map(function(Dt){return Dt.split(",")}),te.map(function(Dt){return[K(+pt+ +Dt.split(",")[0]),K(+bt+ +Dt.split(",")[1])]}).map(function(Dt){return Dt.join(",")}));return wt.reduce(function(Dt,he,N){return Dt.concat(he,te[N])},[]).join("")}(He,pt-N.cx,bt-N.cy))}}),0!=he.size()&&he.attr("x",K(+he.attr("x")+pt-N.cx)).attr("y",K(+he.attr("y")+bt-N.cy)),this}function Bn(){if(!this._drawnNode)return this;var q=this._drawnNode.g;return q.empty()||q.remove(),this._drawnNode=null,this}function G(){return this._drawnNode?this._drawnNode.g:g.select(null)}function X(q,pt){for(var bt="",wt=0,Xt=Object.keys(pt);wt2")(rn)+" ",ve+=He+" ".repeat(te-He.length),ve+=h.format(" >5")($e-bt)+" ","initEnd"!=He&&(ve+=h.format(" >5")($e-wt.start[fe])),"dataProcessEnd"==He&&(ve+=" prepare "+h.format(" >5")($e-wt.layoutEnd[fe])),"renderEnd"==He&&N._transition&&(ve+=" transition start margin "+h.format(" >5")(N._transition.delay()-($e-wt.renderStart[fe])),le=N._transition.delay(),ke=N._transition.duration()),"transitionStart"==He){var Qe=$e-wt.renderStart[fe];ve+=" transition delay "+h.format(" >5")($e-wt.renderStart[fe]),ve+=" expected "+h.format(" >5")(le),ve+=" diff "+h.format(" >5")(Qe-le)}if("transitionEnd"==He){var et=$e-wt.transitionStart[fe];ve+=" transition duration "+h.format(" >5")(et),ve+=" expected "+h.format(" >5")(ke),ve+=" diff "+h.format(" >5")(et-ke)}console.log(ve),bt=$e}:null)},he=0;he5&&void 0!==arguments[5]?arguments[5]:{};if((Xt=Object.assign({},Xt)).style&&Xt.style.includes("invis"))var Dt=g.select(null);else{var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Oe=W(yn.call(this,Xt));Dt=le.append("g").data([Oe]),at.call(Dt.node(),Oe),Di.call(this,Dt,q,pt,bt,wt,Xt,te)}return this._drawnEdge={g:Dt,x1:q,y1:pt,x2:bt,y2:wt,attributes:Xt},this},updateDrawnEdge:function qn(q,pt,bt,wt){var Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},te=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var Dt=this._drawnEdge.g;return Xt=Object.assign(this._drawnEdge.attributes,Xt),this._drawnEdge.x1=q,this._drawnEdge.y1=pt,this._drawnEdge.x2=bt,this._drawnEdge.y2=wt,!Dt.empty()||Xt.style&&Xt.style.includes("invis")||(Dt=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnEdge.g=Dt),Dt.empty()||Di.call(this,Dt,q,pt,bt,wt,Xt,te),this},moveDrawnEdgeEndPoint:function ti(q,pt){var bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._drawnEdge)throw Error("No edge has been drawn");var wt=this._drawnEdge.g,Xt=this._drawnEdge.x1,te=this._drawnEdge.y1,Dt=this._drawnEdge.attributes;return this._drawnEdge.x2=q,this._drawnEdge.y2=pt,gn(wt,Xt,te,q,pt,Dt,bt),this},insertDrawnEdge:function On(q){if(!this._drawnEdge)throw Error("No edge has been drawn");var pt=this._drawnEdge.g;if(pt.empty())return this;pt.selectWithoutDataPropagation("title").text(q);var te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),Dt=te.datum(),he=this._extractData(pt,Dt.children.length,te.datum());return Dt.children.push(he),tt(pt,he),this._drawnEdge=null,this},removeDrawnEdge:wi},"removeDrawnEdge",wi),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawnEdgeSelection",un),C(Ot,"drawNode",function ei(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if((wt=Object.assign({},wt)).style&&wt.style.includes("invis"))var te=g.select(null);else{var N=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=W(X.call(this,bt,wt));te=N.append("g").data([ke]),at.call(te.node(),ke),Nn.call(this,te,q,pt,bt,wt,Xt)}return this._drawnNode={g:te,nodeId:bt,x:q,y:pt,attributes:wt},this}),C(Ot,"updateDrawnNode",function ui(q,pt,bt){var wt=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},Xt=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!this._drawnNode)throw Error("No node has been drawn");var te=this._drawnNode.g;return null==bt&&(bt=this._drawnNode.nodeId),wt=Object.assign(this._drawnNode.attributes,wt),this._drawnNode.nodeId=bt,this._drawnNode.x=q,this._drawnNode.y=pt,!te.empty()||wt.style&&wt.style.includes("invis")||(te=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g").append("g"),this._drawnNode.g=te),te.empty()||Nn.call(this,te,q,pt,bt,wt,Xt),this}),C(Ot,"moveDrawnNode",function Ii(q,pt){if(!this._drawnNode)throw Error("No node has been drawn");var bt=this._drawnNode.g,wt=this._drawnNode.attributes;return this._drawnNode.x=q,this._drawnNode.y=pt,bt.empty()||Le(bt,q,pt,wt),this}),C(Ot,"insertDrawnNode",function fn(q){if(!this._drawnNode)throw Error("No node has been drawn");null==q&&(q=this._drawnNode.nodeId);var pt=this._drawnNode.g;if(pt.empty())return this;var bt=this._drawnNode.attributes;if(pt.selectWithoutDataPropagation("title").text(q),bt.URL||bt.tooltip){var te=pt.selectWithoutDataPropagation("g").selectWithoutDataPropagation("a");te.selectWithoutDataPropagation("ellipse,polygon,path,polyline");var Dt=te.selectWithoutDataPropagation("text")}else pt.selectWithoutDataPropagation("ellipse,polygon,path,polyline"),Dt=pt.selectWithoutDataPropagation("text");Dt.text(bt.label||q);var le=this._selection.selectWithoutDataPropagation("svg").selectWithoutDataPropagation("g"),ke=le.datum(),Oe=this._extractData(pt,ke.children.length,le.datum());return ke.children.push(Oe),tt(pt,Oe),this._drawnNode=null,this}),C(Ot,"removeDrawnNode",Bn),C(Ot,"removeDrawnNode",Bn),C(Ot,"drawnNodeSelection",G),C(Ot,"drawnNodeSelection",G),C(Ot,"graphvizVersion",function vn(){return this._graphvizVersion}),Ot),x.selection.prototype.graphviz=function re(q){var pt=this.node().__graphviz__;return pt?(pt.options(q),f.timeout(function(){pt._dispatch.call("initEnd",this)}.bind(this),0)):pt=new Bt(this,q),pt},x.selection.prototype.selectWithoutDataPropagation=function qt(q){return g.select(this.size()>0?this.node().querySelector(q):null)},c.graphviz=Yt,Object.defineProperty(c,"__esModule",{value:!0})}(I,o(68557),o(18140),o(35011),o(31566),o(82683),o(60128),o(89397),o(41129),o(12218))},92940:(w,I,o)=>{"use strict";o.d(I,{Z:()=>p});var c={value:()=>{}};function x(){for(var u,l=0,h=arguments.length,m={};l=0&&(u=m.slice(g+1),m=m.slice(0,g)),m&&!h.hasOwnProperty(m))throw new Error("unknown type: "+m);return{type:m,name:u}})}function f(l,h){for(var g,m=0,u=l.length;m0)for(var g,C,m=new Array(g),u=0;u{"use strict";o.r(I),o.d(I,{dispatch:()=>c.Z});var c=o(92940)},97907:(w,I,o)=>{"use strict";function c(v,_,f,t,p){var l=v*v,h=l*v;return((1-3*v+3*l-h)*_+(4-6*l+3*h)*f+(1+3*v+3*l-3*h)*t+h*p)/6}function x(v){var _=v.length-1;return function(f){var t=f<=0?f=0:f>=1?(f=1,_-1):Math.floor(f*_),p=v[t],l=v[t+1];return c((f-t/_)*_,t>0?v[t-1]:2*p-l,p,l,t<_-1?v[t+2]:2*l-p)}}o.d(I,{t:()=>c,Z:()=>x})},77296:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(97907);function x(v){var _=v.length;return function(f){var t=Math.floor(((f%=1)<0?++f:f)*_);return(0,c.t)((f-t/_)*_,v[(t+_-1)%_],v[t%_],v[(t+1)%_],v[(t+2)%_])}}},87237:(w,I,o)=>{"use strict";o.d(I,{wx:()=>_,yi:()=>f,ZP:()=>t});var c=o(89783);function x(p,l){return function(h){return p+h*l}}function _(p,l){var h=l-p;return h?x(p,h>180||h<-180?h-360*Math.round(h/360):h):(0,c.Z)(isNaN(p)?l:p)}function f(p){return 1==(p=+p)?t:function(l,h){return h-l?function v(p,l,h){return p=Math.pow(p,h),l=Math.pow(l,h)-p,h=1/h,function(m){return Math.pow(p+m*l,h)}}(l,h,p):(0,c.Z)(isNaN(l)?h:l)}}function t(p,l){var h=l-p;return h?x(p,h):(0,c.Z)(isNaN(p)?l:p)}},89783:(w,I,o)=>{"use strict";o.d(I,{Z:()=>c});const c=x=>()=>x},82683:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interpolate:()=>g,interpolateArray:()=>f,interpolateBasis:()=>C.Z,interpolateBasisClosed:()=>A.Z,interpolateCubehelix:()=>Kn,interpolateCubehelixLong:()=>Ne,interpolateDate:()=>p,interpolateDiscrete:()=>k,interpolateHcl:()=>Ae,interpolateHclLong:()=>Yn,interpolateHsl:()=>tt,interpolateHslLong:()=>Q,interpolateHue:()=>O,interpolateLab:()=>Ve,interpolateNumber:()=>l.Z,interpolateNumberArray:()=>v,interpolateObject:()=>h,interpolateRgb:()=>x.ZP,interpolateRgbBasis:()=>x.hD,interpolateRgbBasisClosed:()=>x.YD,interpolateRound:()=>R,interpolateString:()=>m.Z,interpolateTransformCss:()=>U.Y,interpolateTransformSvg:()=>U.w,interpolateZoom:()=>ut,piecewise:()=>Xn,quantize:()=>jn});var c=o(52786),x=o(8200);function v(yt,Gt){Gt||(Gt=[]);var _e,se=yt?Math.min(Gt.length,yt.length):0,de=Gt.slice();return function(Ue){for(_e=0;_e.008856451679035631?Math.pow(yt,1/3):yt/Rt+Ct}function Qt(yt){return yt>It?yt*yt*yt:Rt*(yt-Ct)}function me(yt){return 255*(yt<=.0031308?12.92*yt:1.055*Math.pow(yt,1/2.4)-.055)}function ge(yt){return(yt/=255)<=.04045?yt/12.92:Math.pow((yt+.055)/1.055,2.4)}function ye(yt){if(yt instanceof Re)return new Re(yt.h,yt.c,yt.l,yt.opacity);if(yt instanceof ft||(yt=ne(yt)),0===yt.a&&0===yt.b)return new Re(NaN,0{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},8200:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>f,hD:()=>p,YD:()=>l});var c=o(52786),x=o(97907),v=o(77296),_=o(87237);const f=function h(m){var u=(0,_.yi)(m);function g(C,A){var k=u((C=(0,c.B8)(C)).r,(A=(0,c.B8)(A)).r),F=u(C.g,A.g),O=u(C.b,A.b),R=(0,_.ZP)(C.opacity,A.opacity);return function(U){return C.r=k(U),C.g=F(U),C.b=O(U),C.opacity=R(U),C+""}}return g.gamma=h,g}(1);function t(h){return function(m){var k,F,u=m.length,g=new Array(u),C=new Array(u),A=new Array(u);for(k=0;k{"use strict";o.d(I,{Z:()=>t});var c=o(37815),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>h,w:()=>m});var f,c=o(37815),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(u,g,C,A,k,F){var O,R,U;return(O=Math.sqrt(u*u+g*g))&&(u/=O,g/=O),(U=u*C+g*A)&&(C-=u*U,A-=g*U),(R=Math.sqrt(C*C+A*A))&&(C/=R,A/=R,U/=R),u*A180?W+=360:W-V>180&&(V+=360),nt.push({i:rt.push(k(rt)+"rotate(",null,A)-2,x:(0,c.Z)(V,W)})):W&&rt.push(k(rt)+"rotate("+W+A)}(V.rotate,W.rotate,rt,nt),function R(V,W,rt,nt){V!==W?nt.push({i:rt.push(k(rt)+"skewX(",null,A)-2,x:(0,c.Z)(V,W)}):W&&rt.push(k(rt)+"skewX("+W+A)}(V.skewX,W.skewX,rt,nt),function U(V,W,rt,nt,ut,J){if(V!==rt||W!==nt){var tt=ut.push(k(ut)+"scale(",null,",",null,")");J.push({i:tt-4,x:(0,c.Z)(V,rt)},{i:tt-2,x:(0,c.Z)(W,nt)})}else(1!==rt||1!==nt)&&ut.push(k(ut)+"scale("+rt+","+nt+")")}(V.scaleX,V.scaleY,W.scaleX,W.scaleY,rt,nt),V=W=null,function(ut){for(var Q,J=-1,tt=nt.length;++J{"use strict";o.r(I),o.d(I,{path:()=>p});const c=Math.PI,x=2*c,v=1e-6,_=x-v;function f(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function t(){return new f}f.prototype=t.prototype={constructor:f,moveTo:function(l,h){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(l,h){this._+="L"+(this._x1=+l)+","+(this._y1=+h)},quadraticCurveTo:function(l,h,m,u){this._+="Q"+ +l+","+ +h+","+(this._x1=+m)+","+(this._y1=+u)},bezierCurveTo:function(l,h,m,u,g,C){this._+="C"+ +l+","+ +h+","+ +m+","+ +u+","+(this._x1=+g)+","+(this._y1=+C)},arcTo:function(l,h,m,u,g){var C=this._x1,A=this._y1,k=(m=+m)-(l=+l),F=(u=+u)-(h=+h),O=C-l,R=A-h,U=O*O+R*R;if((g=+g)<0)throw new Error("negative radius: "+g);if(null===this._x1)this._+="M"+(this._x1=l)+","+(this._y1=h);else if(U>v)if(Math.abs(R*k-F*O)>v&&g){var V=m-C,W=u-A,rt=k*k+F*F,nt=V*V+W*W,ut=Math.sqrt(rt),J=Math.sqrt(U),tt=g*Math.tan((c-Math.acos((rt+U-nt)/(2*ut*J)))/2),Q=tt/J,at=tt/ut;Math.abs(Q-1)>v&&(this._+="L"+(l+Q*O)+","+(h+Q*R)),this._+="A"+g+","+g+",0,0,"+ +(R*V>O*W)+","+(this._x1=l+at*k)+","+(this._y1=h+at*F)}else this._+="L"+(this._x1=l)+","+(this._y1=h)},arc:function(l,h,m,u,g,C){l=+l,h=+h,C=!!C;var A=(m=+m)*Math.cos(u),k=m*Math.sin(u),F=l+A,O=h+k,R=1^C,U=C?u-g:g-u;if(m<0)throw new Error("negative radius: "+m);null===this._x1?this._+="M"+F+","+O:(Math.abs(this._x1-F)>v||Math.abs(this._y1-O)>v)&&(this._+="L"+F+","+O),m&&(U<0&&(U=U%x+x),U>_?this._+="A"+m+","+m+",0,1,"+R+","+(l-A)+","+(h-k)+"A"+m+","+m+",0,1,"+R+","+(this._x1=F)+","+(this._y1=O):U>v&&(this._+="A"+m+","+m+",0,"+ +(U>=c)+","+R+","+(this._x1=l+m*Math.cos(g))+","+(this._y1=h+m*Math.sin(g))))},rect:function(l,h,m,u){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+h)+"h"+ +m+"v"+ +u+"h"+-m+"Z"},toString:function(){return this._}};const p=t},31566:(w,I,o)=>{"use strict";o.r(I),o.d(I,{interval:()=>v,now:()=>c.zO,timeout:()=>x.Z,timer:()=>c.HT,timerFlush:()=>c.R8});var c=o(78562),x=o(30406);function v(_,f,t){var p=new c.B7,l=f;return null==f?(p.restart(_,f,t),p):(p._restart=p.restart,p.restart=function(h,m,u){m=+m,u=null==u?(0,c.zO)():+u,p._restart(function g(C){C+=l,p._restart(g,l+=m,u),h(C)},m,u)},p.restart(_,f,t),p)}},30406:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(78562);function x(v,_,f){var t=new c.B7;return t.restart(p=>{t.stop(),v(p+_)},_=null==_?0:+_,f),t}},78562:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},35011:(w,I,o)=>{"use strict";o.r(I),o.d(I,{active:()=>fn,interrupt:()=>U,transition:()=>un});var c=o(37853),x=o(92940),v=o(78562),_=o(30406),f=(0,x.Z)("start","end","cancel","interrupt"),t=[];function A(G,X,ht,D,At,Ot){var Bt=G.__transition;if(Bt){if(ht in Bt)return}else G.__transition={};!function R(G,X,ht){var At,D=G.__transition;function Bt(qt){var q,pt,bt,wt;if(1!==ht.state)return re();for(q in D)if((wt=D[q]).name===ht.name){if(3===wt.state)return(0,_.Z)(Bt);4===wt.state?(wt.state=6,wt.timer.stop(),wt.on.call("interrupt",G,G.__data__,wt.index,wt.group),delete D[q]):+q0)throw new Error("too late; already scheduled");return ht}function F(G,X){var ht=O(G,X);if(ht.state>3)throw new Error("too late; already running");return ht}function O(G,X){var ht=G.__transition;if(!ht||!(ht=ht[X]))throw new Error("transition not found");return ht}function U(G,X){var D,At,Bt,ht=G.__transition,Ot=!0;if(ht){for(Bt in X=null==X?null:X+"",ht)(D=ht[Bt]).name===X?(At=D.state>2&&D.state<5,D.state=6,D.timer.stop(),D.on.call(At?"interrupt":"cancel",G,G.__data__,D.index,D.group),delete ht[Bt]):Ot=!1;Ot&&delete G.__transition}}var W=o(43349),rt=o(36175);function nt(G,X){var ht,D;return function(){var At=F(this,G),Ot=At.tween;if(Ot!==ht)for(var Bt=0,Yt=(D=ht=Ot).length;Bt=0&&(X=X.slice(0,ht)),!X||"start"===X})}(X)?k:F;return function(){var Bt=Ot(this,G),Yt=Bt.on;Yt!==D&&(At=(D=Yt).copy()).on(X,ht),Bt.on=At}}var In=o(29742),ci=o(32037),Tn=c.ZP.prototype.constructor,Kn=o(24476);function Xn(G){return function(){this.style.removeProperty(G)}}function de(G,X,ht){return function(D){this.style.setProperty(G,X.call(this,D),ht)}}function _e(G,X,ht){var D,At;function Ot(){var Bt=X.apply(this,arguments);return Bt!==At&&(D=(At=Bt)&&de(G,Bt,ht)),D}return Ot._value=X,Ot}function Ln(G){return function(X){this.textContent=G.call(this,X)}}function qn(G){var X,ht;function D(){var At=G.apply(this,arguments);return At!==ht&&(X=(ht=At)&&Ln(At)),X}return D._value=G,D}var wi=0;function On(G,X,ht,D){this._groups=G,this._parents=X,this._name=ht,this._id=D}function un(G){return(0,c.ZP)().transition(G)}function yn(){return++wi}var ei=c.ZP.prototype;On.prototype=un.prototype={constructor:On,select:function ze(G){var X=this._name,ht=this._id;"function"!=typeof G&&(G=(0,In.Z)(G));for(var D=this._groups,At=D.length,Ot=new Array(At),Bt=0;Bt1&&D.name===X)return new On([[G]],Bn,X,+At);return null}},47927:(w,I,o)=>{"use strict";function c(x){return function(){return x}}o.d(I,{Z:()=>c})},6738:(w,I,o)=>{"use strict";function c(x,v){return x=+x,v=+v,function(_){return x*(1-_)+v*_}}o.d(I,{Z:()=>c})},23534:(w,I,o)=>{"use strict";o.d(I,{ZP:()=>u});var c=o(52786);function x(k,F,O,R,U){var V=k*k,W=V*k;return((1-3*k+3*V-W)*F+(4-6*V+3*W)*O+(1+3*k+3*V-3*W)*R+W*U)/6}var f=o(47927);function m(k,F){var O=F-k;return O?function t(k,F){return function(O){return k+O*F}}(k,O):(0,f.Z)(isNaN(k)?F:k)}const u=function k(F){var O=function h(k){return 1==(k=+k)?m:function(F,O){return O-F?function p(k,F,O){return k=Math.pow(k,O),F=Math.pow(F,O)-k,O=1/O,function(R){return Math.pow(k+R*F,O)}}(F,O,k):(0,f.Z)(isNaN(F)?O:F)}}(F);function R(U,V){var W=O((U=(0,c.B8)(U)).r,(V=(0,c.B8)(V)).r),rt=O(U.g,V.g),nt=O(U.b,V.b),ut=m(U.opacity,V.opacity);return function(J){return U.r=W(J),U.g=rt(J),U.b=nt(J),U.opacity=ut(J),U+""}}return R.gamma=k,R}(1);function g(k){return function(F){var W,rt,O=F.length,R=new Array(O),U=new Array(O),V=new Array(O);for(W=0;W=1?(O=1,F-1):Math.floor(O*F),U=k[R],V=k[R+1];return x((O-R/F)*F,R>0?k[R-1]:2*U-V,U,V,R{"use strict";o.d(I,{Z:()=>t});var c=o(6738),x=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,v=new RegExp(x.source,"g");function t(p,l){var m,u,g,h=x.lastIndex=v.lastIndex=0,C=-1,A=[],k=[];for(p+="",l+="";(m=x.exec(p))&&(u=v.exec(l));)(g=u.index)>h&&(g=l.slice(h,g),A[C]?A[C]+=g:A[++C]=g),(m=m[0])===(u=u[0])?A[C]?A[C]+=u:A[++C]=u:(A[++C]=null,k.push({i:C,x:(0,c.Z)(m,u)})),h=v.lastIndex;return h{"use strict";o.d(I,{Y:()=>g,w:()=>C});var f,t,p,l,c=o(6738),x=180/Math.PI,v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _(A,k,F,O,R,U){var V,W,rt;return(V=Math.sqrt(A*A+k*k))&&(A/=V,k/=V),(rt=A*F+k*O)&&(F-=A*rt,O-=k*rt),(W=Math.sqrt(F*F+O*O))&&(F/=W,O/=W,rt/=W),A*O180?ut+=360:ut-nt>180&&(nt+=360),tt.push({i:J.push(R(J)+"rotate(",null,O)-2,x:(0,c.Z)(nt,ut)})):ut&&J.push(R(J)+"rotate("+ut+O)}(nt.rotate,ut.rotate,J,tt),function W(nt,ut,J,tt){nt!==ut?tt.push({i:J.push(R(J)+"skewX(",null,O)-2,x:(0,c.Z)(nt,ut)}):ut&&J.push(R(J)+"skewX("+ut+O)}(nt.skewX,ut.skewX,J,tt),function rt(nt,ut,J,tt,Q,at){if(nt!==J||ut!==tt){var H=Q.push(R(Q)+"scale(",null,",",null,")");at.push({i:H-4,x:(0,c.Z)(nt,J)},{i:H-2,x:(0,c.Z)(ut,tt)})}else(1!==J||1!==tt)&&Q.push(R(Q)+"scale("+J+","+tt+")")}(nt.scaleX,nt.scaleY,ut.scaleX,ut.scaleY,J,tt),nt=ut=null,function(Q){for(var K,at=-1,H=tt.length;++at{"use strict";function c(x){return"object"==typeof x&&"length"in x?x:Array.from(x)}o.d(I,{Z:()=>c})},7500:(w,I,o)=>{"use strict";o.d(I,{Z:()=>f});var c=o(36175),x=o(53517);function v(t){return function(){var p=this.ownerDocument,l=this.namespaceURI;return l===x.P&&p.documentElement.namespaceURI===x.P?p.createElement(t):p.createElementNS(l,t)}}function _(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function f(t){var p=(0,c.Z)(t);return(p.local?_:v)(p)}},68557:(w,I,o)=>{"use strict";o.r(I),o.d(I,{create:()=>v,creator:()=>c.Z,local:()=>f,matcher:()=>p.Z,namespace:()=>l.Z,namespaces:()=>h.Z,pointer:()=>m.Z,pointers:()=>g,select:()=>x.Z,selectAll:()=>k,selection:()=>A.ZP,selector:()=>F.Z,selectorAll:()=>O.Z,style:()=>R.S,window:()=>U.Z});var c=o(7500),x=o(52016);function v(V){return(0,x.Z)((0,c.Z)(V).call(document.documentElement))}var _=0;function f(){return new t}function t(){this._="@"+(++_).toString(36)}t.prototype=f.prototype={constructor:t,get:function(V){for(var W=this._;!(W in V);)if(!(V=V.parentNode))return;return V[W]},set:function(V,W){return V[this._]=W},remove:function(V){return this._ in V&&delete V[this._]},toString:function(){return this._}};var p=o(97905),l=o(36175),h=o(53517),m=o(29132),u=o(75819);function g(V,W){return V.target&&(V=(0,u.Z)(V),void 0===W&&(W=V.currentTarget),V=V.touches||[V]),Array.from(V,rt=>(0,m.Z)(rt,W))}var C=o(34638),A=o(37853);function k(V){return"string"==typeof V?new A.Y1([document.querySelectorAll(V)],[document.documentElement]):new A.Y1([null==V?[]:(0,C.Z)(V)],A.Jz)}var F=o(29742),O=o(32037),R=o(24476),U=o(2442)},97905:(w,I,o)=>{"use strict";function c(v){return function(){return this.matches(v)}}function x(v){return function(_){return _.matches(v)}}o.d(I,{Z:()=>c,P:()=>x})},36175:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(53517);function x(v){var _=v+="",f=_.indexOf(":");return f>=0&&"xmlns"!==(_=v.slice(0,f))&&(v=v.slice(f+1)),c.Z.hasOwnProperty(_)?{space:c.Z[_],local:v}:v}},53517:(w,I,o)=>{"use strict";o.d(I,{P:()=>c,Z:()=>x});var c="http://www.w3.org/1999/xhtml";const x={svg:"http://www.w3.org/2000/svg",xhtml:c,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},29132:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(75819);function x(v,_){if(v=(0,c.Z)(v),void 0===_&&(_=v.currentTarget),_){var f=_.ownerSVGElement||_;if(f.createSVGPoint){var t=f.createSVGPoint();return t.x=v.clientX,t.y=v.clientY,[(t=t.matrixTransform(_.getScreenCTM().inverse())).x,t.y]}if(_.getBoundingClientRect){var p=_.getBoundingClientRect();return[v.clientX-p.left-_.clientLeft,v.clientY-p.top-_.clientTop]}}return[v.pageX,v.pageY]}},52016:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(37853);function x(v){return"string"==typeof v?new c.Y1([[document.querySelector(v)]],[document.documentElement]):new c.Y1([[v]],c.Jz)}},37853:(w,I,o)=>{"use strict";o.d(I,{Y1:()=>Le,ZP:()=>fn,Jz:()=>Nn});var c=o(29742),v=o(34638),_=o(32037),p=o(97905),l=Array.prototype.find;function m(){return this.firstElementChild}var g=Array.prototype.filter;function C(){return this.children}function O(G){return new Array(G.length)}function U(G,X){this.ownerDocument=G.ownerDocument,this.namespaceURI=G.namespaceURI,this._next=null,this._parent=G,this.__data__=X}function V(G){return function(){return G}}function W(G,X,ht,D,At,Ot){for(var Yt,Bt=0,re=X.length,qt=Ot.length;BtX?1:G>=X?0:NaN}U.prototype={constructor:U,appendChild:function(G){return this._parent.insertBefore(G,this._next)},insertBefore:function(G,X){return this._parent.insertBefore(G,X)},querySelector:function(G){return this._parent.querySelector(G)},querySelectorAll:function(G){return this._parent.querySelectorAll(G)}};var Rt=o(36175);function Ht(G){return function(){this.removeAttribute(G)}}function ne(G){return function(){this.removeAttributeNS(G.space,G.local)}}function Ut(G,X){return function(){this.setAttribute(G,X)}}function vt(G,X){return function(){this.setAttributeNS(G.space,G.local,X)}}function ft(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttribute(G):this.setAttribute(G,ht)}}function Nt(G,X){return function(){var ht=X.apply(this,arguments);null==ht?this.removeAttributeNS(G.space,G.local):this.setAttributeNS(G.space,G.local,ht)}}var me=o(24476);function ge(G){return function(){delete this[G]}}function ye(G,X){return function(){this[G]=X}}function Be(G,X){return function(){var ht=X.apply(this,arguments);null==ht?delete this[G]:this[G]=ht}}function Re(G){return G.trim().split(/^|\s+/)}function mn(G){return G.classList||new Ve(G)}function Ve(G){this._node=G,this._names=Re(G.getAttribute("class")||"")}function Ce(G,X){for(var ht=mn(G),D=-1,At=X.length;++D=0&&(this._names.splice(X,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(G){return this._names.indexOf(G)>=0}};var jn=o(7500);function Gt(){return null}function de(){var G=this.parentNode;G&&G.removeChild(this)}function Ue(){var G=this.cloneNode(!1),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function Fe(){var G=this.cloneNode(!0),X=this.parentNode;return X?X.insertBefore(G,this.nextSibling):G}function qn(G){return G.trim().split(/^|\s+/).map(function(X){var ht="",D=X.indexOf(".");return D>=0&&(ht=X.slice(D+1),X=X.slice(0,D)),{type:X,name:ht}})}function Di(G){return function(){var X=this.__on;if(X){for(var Ot,ht=0,D=-1,At=X.length;ht=le&&(le=N+1);!(Oe=Dt[le])&&++le=0;)(Bt=D[At])&&(Ot&&4^Bt.compareDocumentPosition(Ot)&&Ot.parentNode.insertBefore(Bt,Ot),Ot=Bt);return this},sort:function H(G){function X(pt,bt){return pt&&bt?G(pt.__data__,bt.__data__):!pt-!bt}G||(G=K);for(var ht=this._groups,D=ht.length,At=new Array(D),Ot=0;Ot1?this.each((null==X?ge:"function"==typeof X?Be:ye)(G,X)):this.node()[G]},classed:function xn(G,X){var ht=Re(G+"");if(arguments.length<2){for(var D=mn(this.node()),At=-1,Ot=ht.length;++At{"use strict";o.d(I,{Z:()=>f,S:()=>t});var c=o(2442);function x(p){return function(){this.style.removeProperty(p)}}function v(p,l,h){return function(){this.style.setProperty(p,l,h)}}function _(p,l,h){return function(){var m=l.apply(this,arguments);null==m?this.style.removeProperty(p):this.style.setProperty(p,m,h)}}function f(p,l,h){return arguments.length>1?this.each((null==l?x:"function"==typeof l?_:v)(p,l,null==h?"":h)):t(this.node(),p)}function t(p,l){return p.style.getPropertyValue(l)||(0,c.Z)(p).getComputedStyle(p,null).getPropertyValue(l)}},29742:(w,I,o)=>{"use strict";function c(){}function x(v){return null==v?c:function(){return this.querySelector(v)}}o.d(I,{Z:()=>x})},32037:(w,I,o)=>{"use strict";function c(){return[]}function x(v){return null==v?c:function(){return this.querySelectorAll(v)}}o.d(I,{Z:()=>x})},75819:(w,I,o)=>{"use strict";function c(x){let v;for(;v=x.sourceEvent;)x=v;return x}o.d(I,{Z:()=>c})},2442:(w,I,o)=>{"use strict";function c(x){return x.ownerDocument&&x.ownerDocument.defaultView||x.document&&x||x.defaultView}o.d(I,{Z:()=>c})},73339:(w,I,o)=>{"use strict";o.d(I,{Z:()=>x});var c=o(49194);function x(v,_,f){var t=new c.B7;return t.restart(function(p){t.stop(),v(p+_)},_=null==_?0:+_,f),t}},49194:(w,I,o)=>{"use strict";o.d(I,{zO:()=>g,B7:()=>A,HT:()=>k,R8:()=>F});var f,t,c=0,x=0,v=0,p=0,l=0,h=0,m="object"==typeof performance&&performance.now?performance:Date,u="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};function g(){return l||(u(C),l=m.now()+h)}function C(){l=0}function A(){this._call=this._time=this._next=null}function k(W,rt,nt){var ut=new A;return ut.restart(W,rt,nt),ut}function F(){g(),++c;for(var rt,W=f;W;)(rt=l-W._time)>=0&&W._call.call(null,rt),W=W._next;--c}function O(){l=(p=m.now())+h,c=x=0;try{F()}finally{c=0,function U(){for(var W,nt,rt=f,ut=1/0;rt;)rt._call?(ut>rt._time&&(ut=rt._time),W=rt,rt=rt._next):(nt=rt._next,rt._next=null,rt=W?W._next=nt:f=nt);t=W,V(ut)}(),l=0}}function R(){var W=m.now(),rt=W-p;rt>1e3&&(h-=rt,p=W)}function V(W){c||(x&&(x=clearTimeout(x)),W-l>24?(W<1/0&&(x=setTimeout(O,W-m.now()-h)),v&&(v=clearInterval(v))):(v||(p=m.now(),v=setInterval(R,1e3)),c=1,u(O)))}A.prototype=k.prototype={constructor:A,restart:function(W,rt,nt){if("function"!=typeof W)throw new TypeError("callback is not a function");nt=(null==nt?g():+nt)+(null==rt?0:+rt),!this._next&&t!==this&&(t?t._next=this:f=this,t=this),this._call=W,this._time=nt,V()},stop:function(){this._call&&(this._call=null,this._time=1/0,V())}}},60128:(w,I,o)=>{"use strict";o.r(I),o.d(I,{zoom:()=>Qe,zoomIdentity:()=>he,zoomTransform:()=>N});var c=o(25922),x=o(52016);function _(et){et.preventDefault(),et.stopImmediatePropagation()}function f(et){var gt=et.document.documentElement,mt=(0,x.Z)(et).on("dragstart.drag",_,!0);"onselectstart"in gt?mt.on("selectstart.drag",_,!0):(gt.__noselect=gt.style.MozUserSelect,gt.style.MozUserSelect="none")}function t(et,gt){var mt=et.document.documentElement,St=(0,x.Z)(et).on("dragstart.drag",null);gt&&(St.on("click.drag",_,!0),setTimeout(function(){St.on("click.drag",null)},0)),"onselectstart"in mt?St.on("selectstart.drag",null):(mt.style.MozUserSelect=mt.__noselect,delete mt.__noselect)}var p=Math.SQRT2;function u(et){return((et=Math.exp(et))+1/et)/2}function A(et,gt){var Ie,Me,mt=et[0],St=et[1],zt=et[2],pe=gt[2],xe=gt[0]-mt,Wt=gt[1]-St,oe=xe*xe+Wt*Wt;if(oe<1e-12)Me=Math.log(pe/zt)/p,Ie=function(Fn){return[mt+Fn*xe,St+Fn*Wt,zt*Math.exp(p*Fn*Me)]};else{var Ye=Math.sqrt(oe),$n=(pe*pe-zt*zt+4*oe)/(2*zt*2*Ye),En=(pe*pe-zt*zt-4*oe)/(2*pe*2*Ye),Sn=Math.log(Math.sqrt($n*$n+1)-$n),we=Math.log(Math.sqrt(En*En+1)-En);Me=(we-Sn)/p,Ie=function(Fn){var Qn=Fn*Me,on=u(Sn),ln=zt/(2*Ye)*(on*function C(et){return((et=Math.exp(2*et))-1)/(et+1)}(p*Qn+Sn)-function g(et){return((et=Math.exp(et))-1/et)/2}(Sn));return[mt+ln*xe,St+ln*Wt,zt*on/u(p*Qn+Sn)]}}return Ie.duration=1e3*Me,Ie}var k=o(29132),F=o(37853),O=o(49194),R=o(73339),U=(0,c.Z)("start","end","cancel","interrupt"),V=[];function at(et,gt,mt,St,zt,ee){var Jt=et.__transition;if(Jt){if(mt in Jt)return}else et.__transition={};!function it(et,gt,mt){var zt,St=et.__transition;function Jt(Wt){var oe,Ie,Me,Ye;if(1!==mt.state)return xe();for(oe in St)if((Ye=St[oe]).name===mt.name){if(3===Ye.state)return(0,R.Z)(Jt);4===Ye.state?(Ye.state=6,Ye.timer.stop(),Ye.on.call("interrupt",et,et.__data__,Ye.index,Ye.group),delete St[oe]):+oe0)throw new Error("too late; already scheduled");return mt}function K(et,gt){var mt=lt(et,gt);if(mt.state>3)throw new Error("too late; already running");return mt}function lt(et,gt){var mt=et.__transition;if(!mt||!(mt=mt[gt]))throw new Error("transition not found");return mt}function z(et,gt){var St,zt,Jt,mt=et.__transition,ee=!0;if(mt){for(Jt in gt=null==gt?null:gt+"",mt)(St=mt[Jt]).name===gt?(zt=St.state>2&&St.state<5,St.state=6,St.timer.stop(),St.on.call(zt?"interrupt":"cancel",et,et.__data__,St.index,St.group),delete mt[Jt]):ee=!1;ee&&delete et.__transition}}var Ct=o(75349),It=o(36175);function Rt(et,gt){var mt,St;return function(){var zt=K(this,et),ee=zt.tween;if(ee!==mt)for(var Jt=0,pe=(St=mt=ee).length;Jt=0&&(gt=gt.slice(0,mt)),!gt||"start"===gt})}(gt)?H:K;return function(){var Jt=ee(this,et),pe=Jt.on;pe!==St&&(zt=(St=pe).copy()).on(gt,mt),Jt.on=zt}}var _e=o(29742),Fe=o(32037),Zn=F.ZP.prototype.constructor,qn=o(24476);function gn(et){return function(){this.style.removeProperty(et)}}function yn(et,gt,mt){return function(St){this.style.setProperty(et,gt.call(this,St),mt)}}function ei(et,gt,mt){var St,zt;function ee(){var Jt=gt.apply(this,arguments);return Jt!==zt&&(St=(zt=Jt)&&yn(et,Jt,mt)),St}return ee._value=gt,ee}function Bn(et){return function(gt){this.textContent=et.call(this,gt)}}function fn(et){var gt,mt;function St(){var zt=et.apply(this,arguments);return zt!==mt&&(gt=(mt=zt)&&Bn(zt)),gt}return St._value=et,St}var D=0;function At(et,gt,mt,St){this._groups=et,this._parents=gt,this._name=mt,this._id=St}function Bt(){return++D}var Yt=F.ZP.prototype;At.prototype=function Ot(et){return(0,F.ZP)().transition(et)}.prototype={constructor:At,select:function Ue(et){var gt=this._name,mt=this._id;"function"!=typeof et&&(et=(0,_e.Z)(et));for(var St=this._groups,zt=St.length,ee=new Array(zt),Jt=0;Jt()=>et;function te(et,{sourceEvent:gt,target:mt,transform:St,dispatch:zt}){Object.defineProperties(this,{type:{value:et,enumerable:!0,configurable:!0},sourceEvent:{value:gt,enumerable:!0,configurable:!0},target:{value:mt,enumerable:!0,configurable:!0},transform:{value:St,enumerable:!0,configurable:!0},_:{value:zt}})}function Dt(et,gt,mt){this.k=et,this.x=gt,this.y=mt}Dt.prototype={constructor:Dt,scale:function(et){return 1===et?this:new Dt(this.k*et,this.x,this.y)},translate:function(et,gt){return 0===et&0===gt?this:new Dt(this.k,this.x+this.k*et,this.y+this.k*gt)},apply:function(et){return[et[0]*this.k+this.x,et[1]*this.k+this.y]},applyX:function(et){return et*this.k+this.x},applyY:function(et){return et*this.k+this.y},invert:function(et){return[(et[0]-this.x)/this.k,(et[1]-this.y)/this.k]},invertX:function(et){return(et-this.x)/this.k},invertY:function(et){return(et-this.y)/this.k},rescaleX:function(et){return et.copy().domain(et.range().map(this.invertX,this).map(et.invert,et))},rescaleY:function(et){return et.copy().domain(et.range().map(this.invertY,this).map(et.invert,et))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var he=new Dt(1,0,0);function N(et){for(;!et.__zoom;)if(!(et=et.parentNode))return he;return et.__zoom}function le(et){et.stopImmediatePropagation()}function ke(et){et.preventDefault(),et.stopImmediatePropagation()}function Oe(et){return!(et.ctrlKey&&"wheel"!==et.type||et.button)}function rn(){var et=this;return et instanceof SVGElement?(et=et.ownerSVGElement||et).hasAttribute("viewBox")?[[(et=et.viewBox.baseVal).x,et.y],[et.x+et.width,et.y+et.height]]:[[0,0],[et.width.baseVal.value,et.height.baseVal.value]]:[[0,0],[et.clientWidth,et.clientHeight]]}function He(){return this.__zoom||he}function $e(et){return-et.deltaY*(1===et.deltaMode?.05:et.deltaMode?1:.002)*(et.ctrlKey?10:1)}function fe(){return navigator.maxTouchPoints||"ontouchstart"in this}function ve(et,gt,mt){var St=et.invertX(gt[0][0])-mt[0][0],zt=et.invertX(gt[1][0])-mt[1][0],ee=et.invertY(gt[0][1])-mt[0][1],Jt=et.invertY(gt[1][1])-mt[1][1];return et.translate(zt>St?(St+zt)/2:Math.min(0,St)||Math.max(0,zt),Jt>ee?(ee+Jt)/2:Math.min(0,ee)||Math.max(0,Jt))}function Qe(){var oe,Ie,Me,et=Oe,gt=rn,mt=ve,St=$e,zt=fe,ee=[0,1/0],Jt=[[-1/0,-1/0],[1/0,1/0]],pe=250,xe=A,Wt=(0,c.Z)("start","zoom","end"),En=0,Sn=10;function we(Ft){Ft.property("__zoom",He).on("wheel.zoom",hi).on("mousedown.zoom",zi).on("dblclick.zoom",Jn).filter(zt).on("touchstart.zoom",Ai).on("touchmove.zoom",cn).on("touchend.zoom touchcancel.zoom",Hi).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function Fn(Ft,be){return(be=Math.max(ee[0],Math.min(ee[1],be)))===Ft.k?Ft:new Dt(be,Ft.x,Ft.y)}function Qn(Ft,be,jt){var b=be[0]-jt[0]*Ft.k,M=be[1]-jt[1]*Ft.k;return b===Ft.x&&M===Ft.y?Ft:new Dt(Ft.k,b,M)}function on(Ft){return[(+Ft[0][0]+ +Ft[1][0])/2,(+Ft[0][1]+ +Ft[1][1])/2]}function ln(Ft,be,jt,b){Ft.on("start.zoom",function(){Un(this,arguments).event(b).start()}).on("interrupt.zoom end.zoom",function(){Un(this,arguments).event(b).end()}).tween("zoom",function(){var M=this,B=arguments,j=Un(M,B).event(b),ct=gt.apply(M,B),xt=null==jt?on(ct):"function"==typeof jt?jt.apply(M,B):jt,kt=Math.max(ct[1][0]-ct[0][0],ct[1][1]-ct[0][1]),Pt=M.__zoom,ae="function"==typeof be?be.apply(M,B):be,De=xe(Pt.invert(xt).concat(kt/Pt.k),ae.invert(xt).concat(kt/ae.k));return function(Ge){if(1===Ge)Ge=ae;else{var Ke=De(Ge),Ze=kt/Ke[2];Ge=new Dt(Ze,xt[0]-Ke[0]*Ze,xt[1]-Ke[1]*Ze)}j.zoom(null,Ge)}})}function Un(Ft,be,jt){return!jt&&Ft.__zooming||new Vi(Ft,be)}function Vi(Ft,be){this.that=Ft,this.args=be,this.active=0,this.sourceEvent=null,this.extent=gt.apply(Ft,be),this.taps=0}function hi(Ft,...be){if(et.apply(this,arguments)){var jt=Un(this,be).event(Ft),b=this.__zoom,M=Math.max(ee[0],Math.min(ee[1],b.k*Math.pow(2,St.apply(this,arguments)))),B=(0,k.Z)(Ft);if(jt.wheel)(jt.mouse[0][0]!==B[0]||jt.mouse[0][1]!==B[1])&&(jt.mouse[1]=b.invert(jt.mouse[0]=B)),clearTimeout(jt.wheel);else{if(b.k===M)return;jt.mouse=[B,b.invert(B)],z(this),jt.start()}ke(Ft),jt.wheel=setTimeout(j,150),jt.zoom("mouse",mt(Qn(Fn(b,M),jt.mouse[0],jt.mouse[1]),jt.extent,Jt))}function j(){jt.wheel=null,jt.end()}}function zi(Ft,...be){if(!Me&&et.apply(this,arguments)){var jt=Un(this,be,!0).event(Ft),b=(0,x.Z)(Ft.view).on("mousemove.zoom",xt,!0).on("mouseup.zoom",kt,!0),M=(0,k.Z)(Ft,B),B=Ft.currentTarget,j=Ft.clientX,ct=Ft.clientY;f(Ft.view),le(Ft),jt.mouse=[M,this.__zoom.invert(M)],z(this),jt.start()}function xt(Pt){if(ke(Pt),!jt.moved){var ae=Pt.clientX-j,De=Pt.clientY-ct;jt.moved=ae*ae+De*De>En}jt.event(Pt).zoom("mouse",mt(Qn(jt.that.__zoom,jt.mouse[0]=(0,k.Z)(Pt,B),jt.mouse[1]),jt.extent,Jt))}function kt(Pt){b.on("mousemove.zoom mouseup.zoom",null),t(Pt.view,jt.moved),ke(Pt),jt.event(Pt).end()}}function Jn(Ft,...be){if(et.apply(this,arguments)){var jt=this.__zoom,b=(0,k.Z)(Ft.changedTouches?Ft.changedTouches[0]:Ft,this),M=jt.invert(b),B=jt.k*(Ft.shiftKey?.5:2),j=mt(Qn(Fn(jt,B),b,M),gt.apply(this,be),Jt);ke(Ft),pe>0?(0,x.Z)(this).transition().duration(pe).call(ln,j,b,Ft):(0,x.Z)(this).call(we.transform,j,b,Ft)}}function Ai(Ft,...be){if(et.apply(this,arguments)){var B,j,ct,xt,jt=Ft.touches,b=jt.length,M=Un(this,be,Ft.changedTouches.length===b).event(Ft);for(le(Ft),j=0;j{w.exports={graphlib:o(36456),layout:o(14850),debug:o(71914),util:{time:o(11510).time,notime:o(11510).notime},version:o(28126)}},12234:(w,I,o)=>{"use strict";var c=o(45760),x=o(67365);w.exports={run:function v(t){var p="greedy"===t.graph().acyclicer?x(t,function l(h){return function(m){return h.edge(m).weight}}(t)):function _(t){var p=[],l={},h={};return c.forEach(t.nodes(),function m(u){c.has(h,u)||(h[u]=!0,l[u]=!0,c.forEach(t.outEdges(u),function(g){c.has(l,g.w)?p.push(g):m(g.w)}),delete l[u])}),p}(t);c.forEach(p,function(h){var m=t.edge(h);t.removeEdge(h),m.forwardName=h.name,m.reversed=!0,t.setEdge(h.w,h.v,m,c.uniqueId("rev"))})},undo:function f(t){c.forEach(t.edges(),function(p){var l=t.edge(p);if(l.reversed){t.removeEdge(p);var h=l.forwardName;delete l.reversed,delete l.forwardName,t.setEdge(p.w,p.v,l,h)}})}}},79999:(w,I,o)=>{var c=o(45760),x=o(11510);function _(f,t,p,l,h,m){var g=h[t][m-1],C=x.addDummyNode(f,"border",{width:0,height:0,rank:m,borderType:t},p);h[t][m]=C,f.setParent(C,l),g&&f.setEdge(g,C,{weight:1})}w.exports=function v(f){c.forEach(f.children(),function t(p){var l=f.children(p),h=f.node(p);if(l.length&&c.forEach(l,t),c.has(h,"minRank")){h.borderLeft=[],h.borderRight=[];for(var m=h.minRank,u=h.maxRank+1;m{"use strict";var c=o(45760);function _(m){c.forEach(m.nodes(),function(u){f(m.node(u))}),c.forEach(m.edges(),function(u){f(m.edge(u))})}function f(m){var u=m.width;m.width=m.height,m.height=u}function p(m){m.y=-m.y}function h(m){var u=m.x;m.x=m.y,m.y=u}w.exports={adjust:function x(m){var u=m.graph().rankdir.toLowerCase();("lr"===u||"rl"===u)&&_(m)},undo:function v(m){var u=m.graph().rankdir.toLowerCase();("bt"===u||"rl"===u)&&function t(m){c.forEach(m.nodes(),function(u){p(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,p),c.has(g,"y")&&p(g)})}(m),("lr"===u||"rl"===u)&&(function l(m){c.forEach(m.nodes(),function(u){h(m.node(u))}),c.forEach(m.edges(),function(u){var g=m.edge(u);c.forEach(g.points,h),c.has(g,"x")&&h(g)})}(m),_(m))}}},3226:w=>{function I(){var x={};x._next=x._prev=x,this._sentinel=x}function o(x){x._prev._next=x._next,x._next._prev=x._prev,delete x._next,delete x._prev}function c(x,v){if("_next"!==x&&"_prev"!==x)return v}w.exports=I,I.prototype.dequeue=function(){var x=this._sentinel,v=x._prev;if(v!==x)return o(v),v},I.prototype.enqueue=function(x){var v=this._sentinel;x._prev&&x._next&&o(x),x._next=v._next,v._next._prev=x,v._next=x,x._prev=v},I.prototype.toString=function(){for(var x=[],v=this._sentinel,_=v._prev;_!==v;)x.push(JSON.stringify(_,c)),_=_._prev;return"["+x.join(", ")+"]"}},71914:(w,I,o)=>{var c=o(45760),x=o(11510),v=o(36456).Graph;w.exports={debugOrdering:function _(f){var t=x.buildLayerMatrix(f),p=new v({compound:!0,multigraph:!0}).setGraph({});return c.forEach(f.nodes(),function(l){p.setNode(l,{label:l}),p.setParent(l,"layer"+f.node(l).rank)}),c.forEach(f.edges(),function(l){p.setEdge(l.v,l.w,{},l.name)}),c.forEach(t,function(l,h){p.setNode("layer"+h,{rank:"same"}),c.reduce(l,function(u,g){return p.setEdge(u,g,{style:"invis"}),g})}),p}}},36456:(w,I,o)=>{var c;try{c=o(85510)}catch(x){}c||(c=window.graphlib),w.exports=c},67365:(w,I,o)=>{var c=o(45760),x=o(36456).Graph,v=o(3226);w.exports=function f(m,u){if(m.nodeCount()<=1)return[];var g=function l(m,u){var g=new x,C=0,A=0;c.forEach(m.nodes(),function(O){g.setNode(O,{v:O,in:0,out:0})}),c.forEach(m.edges(),function(O){var R=g.edge(O.v,O.w)||0,U=u(O);g.setEdge(O.v,O.w,R+U),A=Math.max(A,g.node(O.v).out+=U),C=Math.max(C,g.node(O.w).in+=U)});var k=c.range(A+C+3).map(function(){return new v}),F=C+1;return c.forEach(g.nodes(),function(O){h(k,F,g.node(O))}),{graph:g,buckets:k,zeroIdx:F}}(m,u||_),C=function t(m,u,g){for(var F,C=[],A=u[u.length-1],k=u[0];m.nodeCount();){for(;F=k.dequeue();)p(m,u,g,F);for(;F=A.dequeue();)p(m,u,g,F);if(m.nodeCount())for(var O=u.length-2;O>0;--O)if(F=u[O].dequeue()){C=C.concat(p(m,u,g,F,!0));break}}return C}(g.graph,g.buckets,g.zeroIdx);return c.flatten(c.map(C,function(A){return m.outEdges(A.v,A.w)}),!0)};var _=c.constant(1);function p(m,u,g,C,A){var k=A?[]:void 0;return c.forEach(m.inEdges(C.v),function(F){var O=m.edge(F),R=m.node(F.v);A&&k.push({v:F.v,w:F.w}),R.out-=O,h(u,g,R)}),c.forEach(m.outEdges(C.v),function(F){var O=m.edge(F),U=m.node(F.w);U.in-=O,h(u,g,U)}),m.removeNode(C.v),k}function h(m,u,g){g.out?g.in?m[g.out-g.in+u].enqueue(g):m[m.length-1].enqueue(g):m[0].enqueue(g)}},14850:(w,I,o)=>{"use strict";var c=o(45760),x=o(12234),v=o(91496),_=o(94124),f=o(11510).normalizeRanks,t=o(60162),p=o(11510).removeEmptyRanks,l=o(1230),h=o(79999),m=o(83870),u=o(32974),g=o(78226),C=o(11510),A=o(36456).Graph;w.exports=function k(vt,ft){var Nt=ft&&ft.debugTiming?C.time:C.notime;Nt("layout",function(){var Qt=Nt(" buildLayoutGraph",function(){return function tt(vt){var ft=new A({multigraph:!0,compound:!0}),Nt=Ut(vt.graph());return ft.setGraph(c.merge({},U,ne(Nt,R),c.pick(Nt,V))),c.forEach(vt.nodes(),function(Qt){var me=Ut(vt.node(Qt));ft.setNode(Qt,c.defaults(ne(me,W),rt)),ft.setParent(Qt,vt.parent(Qt))}),c.forEach(vt.edges(),function(Qt){var me=Ut(vt.edge(Qt));ft.setEdge(Qt,c.merge({},ut,ne(me,nt),c.pick(me,J)))}),ft}(vt)});Nt(" runLayout",function(){!function F(vt,ft){ft(" makeSpaceForEdgeLabels",function(){!function Q(vt){var ft=vt.graph();ft.ranksep/=2,c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt);Qt.minlen*=2,"c"!==Qt.labelpos.toLowerCase()&&("TB"===ft.rankdir||"BT"===ft.rankdir?Qt.width+=Qt.labeloffset:Qt.height+=Qt.labeloffset)})}(vt)}),ft(" removeSelfEdges",function(){!function It(vt){c.forEach(vt.edges(),function(ft){if(ft.v===ft.w){var Nt=vt.node(ft.v);Nt.selfEdges||(Nt.selfEdges=[]),Nt.selfEdges.push({e:ft,label:vt.edge(ft)}),vt.removeEdge(ft)}})}(vt)}),ft(" acyclic",function(){x.run(vt)}),ft(" nestingGraph.run",function(){l.run(vt)}),ft(" rank",function(){_(C.asNonCompoundGraph(vt))}),ft(" injectEdgeLabelProxies",function(){!function at(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(Nt.width&&Nt.height){var Qt=vt.node(ft.v),me=vt.node(ft.w);C.addDummyNode(vt,"edge-proxy",{rank:(me.rank-Qt.rank)/2+Qt.rank,e:ft},"_ep")}})}(vt)}),ft(" removeEmptyRanks",function(){p(vt)}),ft(" nestingGraph.cleanup",function(){l.cleanup(vt)}),ft(" normalizeRanks",function(){f(vt)}),ft(" assignRankMinMax",function(){!function H(vt){var ft=0;c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt);Qt.borderTop&&(Qt.minRank=vt.node(Qt.borderTop).rank,Qt.maxRank=vt.node(Qt.borderBottom).rank,ft=c.max(ft,Qt.maxRank))}),vt.graph().maxRank=ft}(vt)}),ft(" removeEdgeLabelProxies",function(){!function K(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);"edge-proxy"===Nt.dummy&&(vt.edge(Nt.e).labelRank=Nt.rank,vt.removeNode(ft))})}(vt)}),ft(" normalize.run",function(){v.run(vt)}),ft(" parentDummyChains",function(){t(vt)}),ft(" addBorderSegments",function(){h(vt)}),ft(" order",function(){u(vt)}),ft(" insertSelfEdges",function(){!function Rt(vt){var ft=C.buildLayerMatrix(vt);c.forEach(ft,function(Nt){var Qt=0;c.forEach(Nt,function(me,ge){var ye=vt.node(me);ye.order=ge+Qt,c.forEach(ye.selfEdges,function(Be){C.addDummyNode(vt,"selfedge",{width:Be.label.width,height:Be.label.height,rank:ye.rank,order:ge+ ++Qt,e:Be.e,label:Be.label},"_se")}),delete ye.selfEdges})})}(vt)}),ft(" adjustCoordinateSystem",function(){m.adjust(vt)}),ft(" position",function(){g(vt)}),ft(" positionSelfEdges",function(){!function Ht(vt){c.forEach(vt.nodes(),function(ft){var Nt=vt.node(ft);if("selfedge"===Nt.dummy){var Qt=vt.node(Nt.e.v),me=Qt.x+Qt.width/2,ge=Qt.y,ye=Nt.x-me,Be=Qt.height/2;vt.setEdge(Nt.e,Nt.label),vt.removeNode(ft),Nt.label.points=[{x:me+2*ye/3,y:ge-Be},{x:me+5*ye/6,y:ge-Be},{x:me+ye,y:ge},{x:me+5*ye/6,y:ge+Be},{x:me+2*ye/3,y:ge+Be}],Nt.label.x=Nt.x,Nt.label.y=Nt.y}})}(vt)}),ft(" removeBorderNodes",function(){!function Ct(vt){c.forEach(vt.nodes(),function(ft){if(vt.children(ft).length){var Nt=vt.node(ft),Qt=vt.node(Nt.borderTop),me=vt.node(Nt.borderBottom),ge=vt.node(c.last(Nt.borderLeft)),ye=vt.node(c.last(Nt.borderRight));Nt.width=Math.abs(ye.x-ge.x),Nt.height=Math.abs(me.y-Qt.y),Nt.x=ge.x+Nt.width/2,Nt.y=Qt.y+Nt.height/2}}),c.forEach(vt.nodes(),function(ft){"border"===vt.node(ft).dummy&&vt.removeNode(ft)})}(vt)}),ft(" normalize.undo",function(){v.undo(vt)}),ft(" fixupEdgeLabelCoords",function(){!function z(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);if(c.has(Nt,"x"))switch(("l"===Nt.labelpos||"r"===Nt.labelpos)&&(Nt.width-=Nt.labeloffset),Nt.labelpos){case"l":Nt.x-=Nt.width/2+Nt.labeloffset;break;case"r":Nt.x+=Nt.width/2+Nt.labeloffset}})}(vt)}),ft(" undoCoordinateSystem",function(){m.undo(vt)}),ft(" translateGraph",function(){!function lt(vt){var ft=Number.POSITIVE_INFINITY,Nt=0,Qt=Number.POSITIVE_INFINITY,me=0,ge=vt.graph(),ye=ge.marginx||0,Be=ge.marginy||0;function vn(Re){var mn=Re.x,Ve=Re.y,Ce=Re.width,Ae=Re.height;ft=Math.min(ft,mn-Ce/2),Nt=Math.max(Nt,mn+Ce/2),Qt=Math.min(Qt,Ve-Ae/2),me=Math.max(me,Ve+Ae/2)}c.forEach(vt.nodes(),function(Re){vn(vt.node(Re))}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.has(mn,"x")&&vn(mn)}),ft-=ye,Qt-=Be,c.forEach(vt.nodes(),function(Re){var mn=vt.node(Re);mn.x-=ft,mn.y-=Qt}),c.forEach(vt.edges(),function(Re){var mn=vt.edge(Re);c.forEach(mn.points,function(Ve){Ve.x-=ft,Ve.y-=Qt}),c.has(mn,"x")&&(mn.x-=ft),c.has(mn,"y")&&(mn.y-=Qt)}),ge.width=Nt-ft+ye,ge.height=me-Qt+Be}(vt)}),ft(" assignNodeIntersects",function(){!function it(vt){c.forEach(vt.edges(),function(ft){var ge,ye,Nt=vt.edge(ft),Qt=vt.node(ft.v),me=vt.node(ft.w);Nt.points?(ge=Nt.points[0],ye=Nt.points[Nt.points.length-1]):(Nt.points=[],ge=me,ye=Qt),Nt.points.unshift(C.intersectRect(Qt,ge)),Nt.points.push(C.intersectRect(me,ye))})}(vt)}),ft(" reversePoints",function(){!function E(vt){c.forEach(vt.edges(),function(ft){var Nt=vt.edge(ft);Nt.reversed&&Nt.points.reverse()})}(vt)}),ft(" acyclic.undo",function(){x.undo(vt)})}(Qt,Nt)}),Nt(" updateInputGraph",function(){!function O(vt,ft){c.forEach(vt.nodes(),function(Nt){var Qt=vt.node(Nt),me=ft.node(Nt);Qt&&(Qt.x=me.x,Qt.y=me.y,ft.children(Nt).length&&(Qt.width=me.width,Qt.height=me.height))}),c.forEach(vt.edges(),function(Nt){var Qt=vt.edge(Nt),me=ft.edge(Nt);Qt.points=me.points,c.has(me,"x")&&(Qt.x=me.x,Qt.y=me.y)}),vt.graph().width=ft.graph().width,vt.graph().height=ft.graph().height}(vt,Qt)})})};var R=["nodesep","edgesep","ranksep","marginx","marginy"],U={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},V=["acyclicer","ranker","rankdir","align"],W=["width","height"],rt={width:0,height:0},nt=["minlen","weight","width","height","labeloffset"],ut={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},J=["labelpos"];function ne(vt,ft){return c.mapValues(c.pick(vt,ft),Number)}function Ut(vt){var ft={};return c.forEach(vt,function(Nt,Qt){ft[Qt.toLowerCase()]=Nt}),ft}},45760:(w,I,o)=>{var c;try{c={cloneDeep:o(90733),constant:o(76684),defaults:o(28800),each:o(35474),filter:o(35281),find:o(62516),flatten:o(22274),forEach:o(89851),forIn:o(41176),has:o(54842),isUndefined:o(34235),last:o(25809),map:o(19984),mapValues:o(10203),max:o(18176),merge:o(80567),min:o(29439),minBy:o(29525),now:o(31710),pick:o(16372),range:o(90361),reduce:o(81337),sortBy:o(12906),uniqueId:o(51541),values:o(90377),zipObject:o(21617)}}catch(x){}c||(c=window._),w.exports=c},1230:(w,I,o)=>{var c=o(45760),x=o(11510);function _(l,h,m,u,g,C,A){var k=l.children(A);if(k.length){var F=x.addBorderNode(l,"_bt"),O=x.addBorderNode(l,"_bb"),R=l.node(A);l.setParent(F,A),R.borderTop=F,l.setParent(O,A),R.borderBottom=O,c.forEach(k,function(U){_(l,h,m,u,g,C,U);var V=l.node(U),W=V.borderTop?V.borderTop:U,rt=V.borderBottom?V.borderBottom:U,nt=V.borderTop?u:2*u,ut=W!==rt?1:g-C[A]+1;l.setEdge(F,W,{weight:nt,minlen:ut,nestingEdge:!0}),l.setEdge(rt,O,{weight:nt,minlen:ut,nestingEdge:!0})}),l.parent(A)||l.setEdge(h,F,{weight:0,minlen:g+C[A]})}else A!==h&&l.setEdge(h,A,{weight:0,minlen:m})}w.exports={run:function v(l){var h=x.addDummyNode(l,"root",{},"_root"),m=function f(l){var h={};function m(u,g){var C=l.children(u);C&&C.length&&c.forEach(C,function(A){m(A,g+1)}),h[u]=g}return c.forEach(l.children(),function(u){m(u,1)}),h}(l),u=c.max(c.values(m))-1,g=2*u+1;l.graph().nestingRoot=h,c.forEach(l.edges(),function(A){l.edge(A).minlen*=g});var C=function t(l){return c.reduce(l.edges(),function(h,m){return h+l.edge(m).weight},0)}(l)+1;c.forEach(l.children(),function(A){_(l,h,g,C,u,m,A)}),l.graph().nodeRankFactor=g},cleanup:function p(l){var h=l.graph();l.removeNode(h.nestingRoot),delete h.nestingRoot,c.forEach(l.edges(),function(m){l.edge(m).nestingEdge&&l.removeEdge(m)})}}},91496:(w,I,o)=>{"use strict";var c=o(45760),x=o(11510);w.exports={run:function v(t){t.graph().dummyChains=[],c.forEach(t.edges(),function(p){!function _(t,p){var l=p.v,h=t.node(l).rank,m=p.w,u=t.node(m).rank,g=p.name,C=t.edge(p),A=C.labelRank;if(u!==h+1){var k,F,O;for(t.removeEdge(p),O=0,++h;h{var c=o(45760);w.exports=function x(v,_,f){var p,t={};c.forEach(f,function(l){for(var m,u,h=v.parent(l);h;){if((m=v.parent(h))?(u=t[m],t[m]=h):(u=p,p=h),u&&u!==h)return void _.setEdge(u,h);h=m}})}},81323:(w,I,o)=>{var c=o(45760);w.exports=function x(v,_){return c.map(_,function(f){var t=v.inEdges(f);if(t.length){var p=c.reduce(t,function(l,h){var m=v.edge(h),u=v.node(h.v);return{sum:l.sum+m.weight*u.order,weight:l.weight+m.weight}},{sum:0,weight:0});return{v:f,barycenter:p.sum/p.weight,weight:p.weight}}return{v:f}})}},1686:(w,I,o)=>{var c=o(45760),x=o(36456).Graph;w.exports=function v(f,t,p){var l=function _(f){for(var t;f.hasNode(t=c.uniqueId("_root")););return t}(f),h=new x({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(function(m){return f.node(m)});return c.forEach(f.nodes(),function(m){var u=f.node(m),g=f.parent(m);(u.rank===t||u.minRank<=t&&t<=u.maxRank)&&(h.setNode(m),h.setParent(m,g||l),c.forEach(f[p](m),function(C){var A=C.v===m?C.w:C.v,k=h.edge(A,m),F=c.isUndefined(k)?0:k.weight;h.setEdge(A,m,{weight:f.edge(C).weight+F})}),c.has(u,"minRank")&&h.setNode(m,{borderLeft:u.borderLeft[t],borderRight:u.borderRight[t]}))}),h}},18796:(w,I,o)=>{"use strict";var c=o(45760);function v(_,f,t){for(var p=c.zipObject(t,c.map(t,function(C,A){return A})),l=c.flatten(c.map(f,function(C){return c.sortBy(c.map(_.outEdges(C),function(A){return{pos:p[A.w],weight:_.edge(A).weight}}),"pos")}),!0),h=1;h0;)A%2&&(k+=u[A+1]),u[A=A-1>>1]+=C.weight;g+=C.weight*k})),g}w.exports=function x(_,f){for(var t=0,p=1;p{"use strict";var c=o(45760),x=o(49402),v=o(18796),_=o(61057),f=o(1686),t=o(33034),p=o(36456).Graph,l=o(11510);function m(C,A,k){return c.map(A,function(F){return f(C,F,k)})}function u(C,A){var k=new p;c.forEach(C,function(F){var O=F.graph().root,R=_(F,O,k,A);c.forEach(R.vs,function(U,V){F.node(U).order=V}),t(F,k,R.vs)})}function g(C,A){c.forEach(A,function(k){c.forEach(k,function(F,O){C.node(F).order=O})})}w.exports=function h(C){var A=l.maxRank(C),k=m(C,c.range(1,A+1),"inEdges"),F=m(C,c.range(A-1,-1,-1),"outEdges"),O=x(C);g(C,O);for(var U,R=Number.POSITIVE_INFINITY,V=0,W=0;W<4;++V,++W){u(V%2?k:F,V%4>=2),O=l.buildLayerMatrix(C);var rt=v(C,O);rt{"use strict";var c=o(45760);w.exports=function x(v){var _={},f=c.filter(v.nodes(),function(m){return!v.children(m).length}),t=c.max(c.map(f,function(m){return v.node(m).rank})),p=c.map(c.range(t+1),function(){return[]}),h=c.sortBy(f,function(m){return v.node(m).rank});return c.forEach(h,function l(m){if(!c.has(_,m)){_[m]=!0;var u=v.node(m);p[u.rank].push(m),c.forEach(v.successors(m),l)}}),p}},83826:(w,I,o)=>{"use strict";var c=o(45760);w.exports=function x(f,t){var p={};return c.forEach(f,function(h,m){var u=p[h.v]={indegree:0,in:[],out:[],vs:[h.v],i:m};c.isUndefined(h.barycenter)||(u.barycenter=h.barycenter,u.weight=h.weight)}),c.forEach(t.edges(),function(h){var m=p[h.v],u=p[h.w];!c.isUndefined(m)&&!c.isUndefined(u)&&(u.indegree++,m.out.push(p[h.w]))}),function v(f){var t=[];function p(m){return function(u){u.merged||(c.isUndefined(u.barycenter)||c.isUndefined(m.barycenter)||u.barycenter>=m.barycenter)&&function _(f,t){var p=0,l=0;f.weight&&(p+=f.barycenter*f.weight,l+=f.weight),t.weight&&(p+=t.barycenter*t.weight,l+=t.weight),f.vs=t.vs.concat(f.vs),f.barycenter=p/l,f.weight=l,f.i=Math.min(t.i,f.i),t.merged=!0}(m,u)}}function l(m){return function(u){u.in.push(m),0==--u.indegree&&f.push(u)}}for(;f.length;){var h=f.pop();t.push(h),c.forEach(h.in.reverse(),p(h)),c.forEach(h.out,l(h))}return c.map(c.filter(t,function(m){return!m.merged}),function(m){return c.pick(m,["vs","i","barycenter","weight"])})}(c.filter(p,function(h){return!h.indegree}))}},61057:(w,I,o)=>{var c=o(45760),x=o(81323),v=o(83826),_=o(93803);w.exports=function f(l,h,m,u){var g=l.children(h),C=l.node(h),A=C?C.borderLeft:void 0,k=C?C.borderRight:void 0,F={};A&&(g=c.filter(g,function(rt){return rt!==A&&rt!==k}));var O=x(l,g);c.forEach(O,function(rt){if(l.children(rt.v).length){var nt=f(l,rt.v,m,u);F[rt.v]=nt,c.has(nt,"barycenter")&&function p(l,h){c.isUndefined(l.barycenter)?(l.barycenter=h.barycenter,l.weight=h.weight):(l.barycenter=(l.barycenter*l.weight+h.barycenter*h.weight)/(l.weight+h.weight),l.weight+=h.weight)}(rt,nt)}});var R=v(O,m);!function t(l,h){c.forEach(l,function(m){m.vs=c.flatten(m.vs.map(function(u){return h[u]?h[u].vs:u}),!0)})}(R,F);var U=_(R,u);if(A&&(U.vs=c.flatten([A,U.vs,k],!0),l.predecessors(A).length)){var V=l.node(l.predecessors(A)[0]),W=l.node(l.predecessors(k)[0]);c.has(U,"barycenter")||(U.barycenter=0,U.weight=0),U.barycenter=(U.barycenter*U.weight+V.order+W.order)/(U.weight+2),U.weight+=2}return U}},93803:(w,I,o)=>{var c=o(45760),x=o(11510);function _(t,p,l){for(var h;p.length&&(h=c.last(p)).i<=l;)p.pop(),t.push(h.vs),l++;return l}w.exports=function v(t,p){var l=x.partition(t,function(F){return c.has(F,"barycenter")}),h=l.lhs,m=c.sortBy(l.rhs,function(F){return-F.i}),u=[],g=0,C=0,A=0;h.sort(function f(t){return function(p,l){return p.barycenterl.barycenter?1:t?l.i-p.i:p.i-l.i}}(!!p)),A=_(u,m,A),c.forEach(h,function(F){A+=F.vs.length,u.push(F.vs),g+=F.barycenter*F.weight,C+=F.weight,A=_(u,m,A)});var k={vs:c.flatten(u,!0)};return C&&(k.barycenter=g/C,k.weight=C),k}},60162:(w,I,o)=>{var c=o(45760);w.exports=function x(f){var t=function _(f){var t={},p=0;return c.forEach(f.children(),function l(h){var m=p;c.forEach(f.children(h),l),t[h]={low:m,lim:p++}}),t}(f);c.forEach(f.graph().dummyChains,function(p){for(var l=f.node(p),h=l.edgeObj,m=function v(f,t,p,l){var C,A,h=[],m=[],u=Math.min(t[p].low,t[l].low),g=Math.max(t[p].lim,t[l].lim);C=p;do{C=f.parent(C),h.push(C)}while(C&&(t[C].low>u||g>t[C].lim));for(A=C,C=l;(C=f.parent(C))!==A;)m.push(C);return{path:h.concat(m.reverse()),lca:A}}(f,t,h.v,h.w),u=m.path,g=m.lca,C=0,A=u[C],k=!0;p!==h.w;){if(l=f.node(p),k){for(;(A=u[C])!==g&&f.node(A).maxRank{"use strict";var c=o(45760),x=o(36456).Graph,v=o(11510);function _(R,U){var V={};return c.reduce(U,function W(rt,nt){var ut=0,J=0,tt=rt.length,Q=c.last(nt);return c.forEach(nt,function(at,H){var K=function t(R,U){if(R.node(U).dummy)return c.find(R.predecessors(U),function(V){return R.node(V).dummy})}(R,at),lt=K?R.node(K).order:tt;(K||at===Q)&&(c.forEach(nt.slice(J,H+1),function(it){c.forEach(R.predecessors(it),function(z){var E=R.node(z),Ct=E.order;(CtQ)&&p(V,K,at)})})}return c.reduce(U,function rt(nt,ut){var tt,J=-1,Q=0;return c.forEach(ut,function(at,H){if("border"===R.node(at).dummy){var K=R.predecessors(at);K.length&&(tt=R.node(K[0]).order,W(ut,Q,H,J,tt),Q=H,J=tt)}W(ut,Q,ut.length,tt,nt.length)}),ut}),V}function p(R,U,V){if(U>V){var W=U;U=V,V=W}var rt=R[U];rt||(R[U]=rt={}),rt[V]=!0}function l(R,U,V){if(U>V){var W=U;U=V,V=W}return c.has(R[U],V)}function h(R,U,V,W){var rt={},nt={},ut={};return c.forEach(U,function(J){c.forEach(J,function(tt,Q){rt[tt]=tt,nt[tt]=tt,ut[tt]=Q})}),c.forEach(U,function(J){var tt=-1;c.forEach(J,function(Q){var at=W(Q);if(at.length)for(var H=((at=c.sortBy(at,function(z){return ut[z]})).length-1)/2,K=Math.floor(H),lt=Math.ceil(H);K<=lt;++K){var it=at[K];nt[Q]===Q&&tt{"use strict";var c=o(45760),x=o(11510),v=o(54058).positionX;w.exports=function _(t){(function f(t){var p=x.buildLayerMatrix(t),l=t.graph().ranksep,h=0;c.forEach(p,function(m){var u=c.max(c.map(m,function(g){return t.node(g).height}));c.forEach(m,function(g){t.node(g).y=h+u/2}),h+=u+l})})(t=x.asNonCompoundGraph(t)),c.forEach(v(t),function(p,l){t.node(l).x=p})}},96632:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph,v=o(1916).slack;function f(l,h){return c.forEach(l.nodes(),function m(u){c.forEach(h.nodeEdges(u),function(g){var C=g.v,A=u===C?g.w:C;!l.hasNode(A)&&!v(h,g)&&(l.setNode(A,{}),l.setEdge(u,A,{}),m(A))})}),l.nodeCount()}function t(l,h){return c.minBy(h.edges(),function(m){if(l.hasNode(m.v)!==l.hasNode(m.w))return v(h,m)})}function p(l,h,m){c.forEach(l.nodes(),function(u){h.node(u).rank+=m})}w.exports=function _(l){var g,C,h=new x({directed:!1}),m=l.nodes()[0],u=l.nodeCount();for(h.setNode(m,{});f(h,l){"use strict";var x=o(1916).longestPath,v=o(96632),_=o(63804);w.exports=function f(h){switch(h.graph().ranker){case"network-simplex":default:!function l(h){_(h)}(h);break;case"tight-tree":!function p(h){x(h),v(h)}(h);break;case"longest-path":t(h)}};var t=x},63804:(w,I,o)=>{"use strict";var c=o(45760),x=o(96632),v=o(1916).slack,_=o(1916).longestPath,f=o(36456).alg.preorder,t=o(36456).alg.postorder,p=o(11510).simplify;function l(V){V=p(V),_(V);var rt,W=x(V);for(g(W),h(W,V);rt=A(W);)F(W,V,rt,k(W,V,rt))}function h(V,W){var rt=t(V,V.nodes());rt=rt.slice(0,rt.length-1),c.forEach(rt,function(nt){!function m(V,W,rt){var nt=V.node(rt);V.edge(rt,nt.parent).cutvalue=u(V,W,rt)}(V,W,nt)})}function u(V,W,rt){var ut=V.node(rt).parent,J=!0,tt=W.edge(rt,ut),Q=0;return tt||(J=!1,tt=W.edge(ut,rt)),Q=tt.weight,c.forEach(W.nodeEdges(rt),function(at){var H=at.v===rt,K=H?at.w:at.v;if(K!==ut){var lt=H===J,it=W.edge(at).weight;if(Q+=lt?it:-it,function R(V,W,rt){return V.hasEdge(W,rt)}(V,rt,K)){var z=V.edge(rt,K).cutvalue;Q+=lt?-z:z}}}),Q}function g(V,W){arguments.length<2&&(W=V.nodes()[0]),C(V,{},1,W)}function C(V,W,rt,nt,ut){var J=rt,tt=V.node(nt);return W[nt]=!0,c.forEach(V.neighbors(nt),function(Q){c.has(W,Q)||(rt=C(V,W,rt,Q,nt))}),tt.low=J,tt.lim=rt++,ut?tt.parent=ut:delete tt.parent,rt}function A(V){return c.find(V.edges(),function(W){return V.edge(W).cutvalue<0})}function k(V,W,rt){var nt=rt.v,ut=rt.w;W.hasEdge(nt,ut)||(nt=rt.w,ut=rt.v);var J=V.node(nt),tt=V.node(ut),Q=J,at=!1;J.lim>tt.lim&&(Q=tt,at=!0);var H=c.filter(W.edges(),function(K){return at===U(0,V.node(K.v),Q)&&at!==U(0,V.node(K.w),Q)});return c.minBy(H,function(K){return v(W,K)})}function F(V,W,rt,nt){V.removeEdge(rt.v,rt.w),V.setEdge(nt.v,nt.w,{}),g(V),h(V,W),function O(V,W){var rt=c.find(V.nodes(),function(ut){return!W.node(ut).parent}),nt=f(V,rt);nt=nt.slice(1),c.forEach(nt,function(ut){var J=V.node(ut).parent,tt=W.edge(ut,J),Q=!1;tt||(tt=W.edge(J,ut),Q=!0),W.node(ut).rank=W.node(J).rank+(Q?tt.minlen:-tt.minlen)})}(V,W)}function U(V,W,rt){return rt.low<=W.lim&&W.lim<=rt.lim}w.exports=l,l.initLowLimValues=g,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=A,l.enterEdge=k,l.exchangeEdges=F},1916:(w,I,o)=>{"use strict";var c=o(45760);w.exports={longestPath:function x(_){var f={};c.forEach(_.sources(),function t(p){var l=_.node(p);if(c.has(f,p))return l.rank;f[p]=!0;var h=c.min(c.map(_.outEdges(p),function(m){return t(m.w)-_.edge(m).minlen}));return(h===Number.POSITIVE_INFINITY||null==h)&&(h=0),l.rank=h})},slack:function v(_,f){return _.node(f.w).rank-_.node(f.v).rank-_.edge(f).minlen}}},11510:(w,I,o)=>{"use strict";var c=o(45760),x=o(36456).Graph;function v(O,R,U,V){var W;do{W=c.uniqueId(V)}while(O.hasNode(W));return U.dummy=R,O.setNode(W,U),W}function C(O){return c.max(c.map(O.nodes(),function(R){var U=O.node(R).rank;if(!c.isUndefined(U))return U}))}w.exports={addDummyNode:v,simplify:function _(O){var R=(new x).setGraph(O.graph());return c.forEach(O.nodes(),function(U){R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){var V=R.edge(U.v,U.w)||{weight:0,minlen:1},W=O.edge(U);R.setEdge(U.v,U.w,{weight:V.weight+W.weight,minlen:Math.max(V.minlen,W.minlen)})}),R},asNonCompoundGraph:function f(O){var R=new x({multigraph:O.isMultigraph()}).setGraph(O.graph());return c.forEach(O.nodes(),function(U){O.children(U).length||R.setNode(U,O.node(U))}),c.forEach(O.edges(),function(U){R.setEdge(U,O.edge(U))}),R},successorWeights:function t(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.outEdges(U),function(W){V[W.w]=(V[W.w]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},predecessorWeights:function p(O){var R=c.map(O.nodes(),function(U){var V={};return c.forEach(O.inEdges(U),function(W){V[W.v]=(V[W.v]||0)+O.edge(W).weight}),V});return c.zipObject(O.nodes(),R)},intersectRect:function l(O,R){var J,tt,U=O.x,V=O.y,W=R.x-U,rt=R.y-V,nt=O.width/2,ut=O.height/2;if(!W&&!rt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(rt)*nt>Math.abs(W)*ut?(rt<0&&(ut=-ut),J=ut*W/rt,tt=ut):(W<0&&(nt=-nt),J=nt,tt=nt*rt/W),{x:U+J,y:V+tt}},buildLayerMatrix:function h(O){var R=c.map(c.range(C(O)+1),function(){return[]});return c.forEach(O.nodes(),function(U){var V=O.node(U),W=V.rank;c.isUndefined(W)||(R[W][V.order]=U)}),R},normalizeRanks:function m(O){var R=c.min(c.map(O.nodes(),function(U){return O.node(U).rank}));c.forEach(O.nodes(),function(U){var V=O.node(U);c.has(V,"rank")&&(V.rank-=R)})},removeEmptyRanks:function u(O){var R=c.min(c.map(O.nodes(),function(rt){return O.node(rt).rank})),U=[];c.forEach(O.nodes(),function(rt){var nt=O.node(rt).rank-R;U[nt]||(U[nt]=[]),U[nt].push(rt)});var V=0,W=O.graph().nodeRankFactor;c.forEach(U,function(rt,nt){c.isUndefined(rt)&&nt%W!=0?--V:V&&c.forEach(rt,function(ut){O.node(ut).rank+=V})})},addBorderNode:function g(O,R,U,V){var W={width:0,height:0};return arguments.length>=4&&(W.rank=U,W.order=V),v(O,"border",W,R)},maxRank:C,partition:function A(O,R){var U={lhs:[],rhs:[]};return c.forEach(O,function(V){R(V)?U.lhs.push(V):U.rhs.push(V)}),U},time:function k(O,R){var U=c.now();try{return R()}finally{console.log(O+" time: "+(c.now()-U)+"ms")}},notime:function F(O,R){return R()}}},28126:w=>{w.exports="0.8.5"},85510:(w,I,o)=>{var c=o(51838);w.exports={Graph:c.Graph,json:o(21088),alg:o(83430),version:c.version}},86730:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var t,_={},f=[];function p(l){c.has(_,l)||(_[l]=!0,t.push(l),c.each(v.successors(l),p),c.each(v.predecessors(l),p))}return c.each(v.nodes(),function(l){t=[],p(l),t.length&&f.push(t)}),f}},22163:(w,I,o)=>{var c=o(79138);function v(_,f,t,p,l,h){c.has(p,f)||(p[f]=!0,t||h.push(f),c.each(l(f),function(m){v(_,m,t,p,l,h)}),t&&h.push(f))}w.exports=function x(_,f,t){c.isArray(f)||(f=[f]);var p=(_.isDirected()?_.successors:_.neighbors).bind(_),l=[],h={};return c.each(f,function(m){if(!_.hasNode(m))throw new Error("Graph does not have node: "+m);v(_,m,"post"===t,h,p,l)}),l}},25668:(w,I,o)=>{var c=o(61718),x=o(79138);w.exports=function v(_,f,t){return x.transform(_.nodes(),function(p,l){p[l]=c(_,l,f,t)},{})}},61718:(w,I,o)=>{var c=o(79138),x=o(31919);w.exports=function _(t,p,l,h){return function f(t,p,l,h){var g,C,m={},u=new x,A=function(k){var F=k.v!==g?k.v:k.w,O=m[F],R=l(k),U=C.distance+R;if(R<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+k+" Weight: "+R);U0&&(g=u.removeMin(),(C=m[g]).distance!==Number.POSITIVE_INFINITY);)h(g).forEach(A);return m}(t,String(p),l||v,h||function(m){return t.outEdges(m)})};var v=c.constant(1)},9611:(w,I,o)=>{var c=o(79138),x=o(73585);w.exports=function v(_){return c.filter(x(_),function(f){return f.length>1||1===f.length&&_.hasEdge(f[0],f[0])})}},22881:(w,I,o)=>{var c=o(79138);w.exports=function v(f,t,p){return function _(f,t,p){var l={},h=f.nodes();return h.forEach(function(m){l[m]={},l[m][m]={distance:0},h.forEach(function(u){m!==u&&(l[m][u]={distance:Number.POSITIVE_INFINITY})}),p(m).forEach(function(u){var g=u.v===m?u.w:u.v,C=t(u);l[m][g]={distance:C,predecessor:m}})}),h.forEach(function(m){var u=l[m];h.forEach(function(g){var C=l[g];h.forEach(function(A){var F=u[A],O=C[A],R=C[m].distance+F.distance;R{w.exports={components:o(86730),dijkstra:o(61718),dijkstraAll:o(25668),findCycles:o(9611),floydWarshall:o(22881),isAcyclic:o(46693),postorder:o(46694),preorder:o(5330),prim:o(46823),tarjan:o(73585),topsort:o(52180)}},46693:(w,I,o)=>{var c=o(52180);w.exports=function x(v){try{c(v)}catch(_){if(_ instanceof c.CycleException)return!1;throw _}return!0}},46694:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"post")}},5330:(w,I,o)=>{var c=o(22163);w.exports=function x(v,_){return c(v,_,"pre")}},46823:(w,I,o)=>{var c=o(79138),x=o(66568),v=o(31919);w.exports=function _(f,t){var m,p=new x,l={},h=new v;function u(C){var A=C.v===m?C.w:C.v,k=h.priority(A);if(void 0!==k){var F=t(C);F0;){if(m=h.removeMin(),c.has(l,m))p.setEdge(m,l[m]);else{if(g)throw new Error("Input graph is not connected: "+f);g=!0}f.nodeEdges(m).forEach(u)}return p}},73585:(w,I,o)=>{var c=o(79138);w.exports=function x(v){var _=0,f=[],t={},p=[];function l(h){var m=t[h]={onStack:!0,lowlink:_,index:_++};if(f.push(h),v.successors(h).forEach(function(C){c.has(t,C)?t[C].onStack&&(m.lowlink=Math.min(m.lowlink,t[C].index)):(l(C),m.lowlink=Math.min(m.lowlink,t[C].lowlink))}),m.lowlink===m.index){var g,u=[];do{g=f.pop(),t[g].onStack=!1,u.push(g)}while(h!==g);p.push(u)}}return v.nodes().forEach(function(h){c.has(t,h)||l(h)}),p}},52180:(w,I,o)=>{var c=o(79138);function x(_){var f={},t={},p=[];if(c.each(_.sinks(),function l(h){if(c.has(t,h))throw new v;c.has(f,h)||(t[h]=!0,f[h]=!0,c.each(_.predecessors(h),l),delete t[h],p.push(h))}),c.size(f)!==_.nodeCount())throw new v;return p}function v(){}w.exports=x,x.CycleException=v,v.prototype=new Error},31919:(w,I,o)=>{var c=o(79138);function x(){this._arr=[],this._keyIndices={}}w.exports=x,x.prototype.size=function(){return this._arr.length},x.prototype.keys=function(){return this._arr.map(function(v){return v.key})},x.prototype.has=function(v){return c.has(this._keyIndices,v)},x.prototype.priority=function(v){var _=this._keyIndices[v];if(void 0!==_)return this._arr[_].priority},x.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},x.prototype.add=function(v,_){var f=this._keyIndices;if(v=String(v),!c.has(f,v)){var t=this._arr,p=t.length;return f[v]=p,t.push({key:v,priority:_}),this._decrease(p),!0}return!1},x.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var v=this._arr.pop();return delete this._keyIndices[v.key],this._heapify(0),v.key},x.prototype.decrease=function(v,_){var f=this._keyIndices[v];if(_>this._arr[f].priority)throw new Error("New priority is greater than current priority. Key: "+v+" Old: "+this._arr[f].priority+" New: "+_);this._arr[f].priority=_,this._decrease(f)},x.prototype._heapify=function(v){var _=this._arr,f=2*v,t=f+1,p=v;f<_.length&&(p=_[f].priority<_[p].priority?f:p,t<_.length&&(p=_[t].priority<_[p].priority?t:p),p!==v&&(this._swap(v,p),this._heapify(p)))},x.prototype._decrease=function(v){for(var t,_=this._arr,f=_[v].priority;0!==v&&!(_[t=v>>1].priority{"use strict";var c=o(79138);w.exports=f;var v="\0";function f(u){this._isDirected=!c.has(u,"directed")||u.directed,this._isMultigraph=!!c.has(u,"multigraph")&&u.multigraph,this._isCompound=!!c.has(u,"compound")&&u.compound,this._label=void 0,this._defaultNodeLabelFn=c.constant(void 0),this._defaultEdgeLabelFn=c.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[v]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function t(u,g){u[g]?u[g]++:u[g]=1}function p(u,g){--u[g]||delete u[g]}function l(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}return k+"\x01"+F+"\x01"+(c.isUndefined(A)?"\0":A)}function h(u,g,C,A){var k=""+g,F=""+C;if(!u&&k>F){var O=k;k=F,F=O}var R={v:k,w:F};return A&&(R.name=A),R}function m(u,g){return l(u,g.v,g.w,g.name)}f.prototype._nodeCount=0,f.prototype._edgeCount=0,f.prototype.isDirected=function(){return this._isDirected},f.prototype.isMultigraph=function(){return this._isMultigraph},f.prototype.isCompound=function(){return this._isCompound},f.prototype.setGraph=function(u){return this._label=u,this},f.prototype.graph=function(){return this._label},f.prototype.setDefaultNodeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultNodeLabelFn=u,this},f.prototype.nodeCount=function(){return this._nodeCount},f.prototype.nodes=function(){return c.keys(this._nodes)},f.prototype.sources=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._in[g])})},f.prototype.sinks=function(){var u=this;return c.filter(this.nodes(),function(g){return c.isEmpty(u._out[g])})},f.prototype.setNodes=function(u,g){var C=arguments,A=this;return c.each(u,function(k){C.length>1?A.setNode(k,g):A.setNode(k)}),this},f.prototype.setNode=function(u,g){return c.has(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=g),this):(this._nodes[u]=arguments.length>1?g:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=v,this._children[u]={},this._children[v][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)},f.prototype.node=function(u){return this._nodes[u]},f.prototype.hasNode=function(u){return c.has(this._nodes,u)},f.prototype.removeNode=function(u){var g=this;if(c.has(this._nodes,u)){var C=function(A){g.removeEdge(g._edgeObjs[A])};delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],c.each(this.children(u),function(A){g.setParent(A)}),delete this._children[u]),c.each(c.keys(this._in[u]),C),delete this._in[u],delete this._preds[u],c.each(c.keys(this._out[u]),C),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this},f.prototype.setParent=function(u,g){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(c.isUndefined(g))g=v;else{for(var C=g+="";!c.isUndefined(C);C=this.parent(C))if(C===u)throw new Error("Setting "+g+" as parent of "+u+" would create a cycle");this.setNode(g)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=g,this._children[g][u]=!0,this},f.prototype._removeFromParentsChildList=function(u){delete this._children[this._parent[u]][u]},f.prototype.parent=function(u){if(this._isCompound){var g=this._parent[u];if(g!==v)return g}},f.prototype.children=function(u){if(c.isUndefined(u)&&(u=v),this._isCompound){var g=this._children[u];if(g)return c.keys(g)}else{if(u===v)return this.nodes();if(this.hasNode(u))return[]}},f.prototype.predecessors=function(u){var g=this._preds[u];if(g)return c.keys(g)},f.prototype.successors=function(u){var g=this._sucs[u];if(g)return c.keys(g)},f.prototype.neighbors=function(u){var g=this.predecessors(u);if(g)return c.union(g,this.successors(u))},f.prototype.isLeaf=function(u){return 0===(this.isDirected()?this.successors(u):this.neighbors(u)).length},f.prototype.filterNodes=function(u){var g=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});g.setGraph(this.graph());var C=this;c.each(this._nodes,function(F,O){u(O)&&g.setNode(O,F)}),c.each(this._edgeObjs,function(F){g.hasNode(F.v)&&g.hasNode(F.w)&&g.setEdge(F,C.edge(F))});var A={};function k(F){var O=C.parent(F);return void 0===O||g.hasNode(O)?(A[F]=O,O):O in A?A[O]:k(O)}return this._isCompound&&c.each(g.nodes(),function(F){g.setParent(F,k(F))}),g},f.prototype.setDefaultEdgeLabel=function(u){return c.isFunction(u)||(u=c.constant(u)),this._defaultEdgeLabelFn=u,this},f.prototype.edgeCount=function(){return this._edgeCount},f.prototype.edges=function(){return c.values(this._edgeObjs)},f.prototype.setPath=function(u,g){var C=this,A=arguments;return c.reduce(u,function(k,F){return A.length>1?C.setEdge(k,F,g):C.setEdge(k,F),F}),this},f.prototype.setEdge=function(){var u,g,C,A,k=!1,F=arguments[0];"object"==typeof F&&null!==F&&"v"in F?(u=F.v,g=F.w,C=F.name,2===arguments.length&&(A=arguments[1],k=!0)):(u=F,g=arguments[1],C=arguments[3],arguments.length>2&&(A=arguments[2],k=!0)),u=""+u,g=""+g,c.isUndefined(C)||(C=""+C);var O=l(this._isDirected,u,g,C);if(c.has(this._edgeLabels,O))return k&&(this._edgeLabels[O]=A),this;if(!c.isUndefined(C)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(g),this._edgeLabels[O]=k?A:this._defaultEdgeLabelFn(u,g,C);var R=h(this._isDirected,u,g,C);return u=R.v,g=R.w,Object.freeze(R),this._edgeObjs[O]=R,t(this._preds[g],u),t(this._sucs[u],g),this._in[g][O]=R,this._out[u][O]=R,this._edgeCount++,this},f.prototype.edge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return this._edgeLabels[A]},f.prototype.hasEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C);return c.has(this._edgeLabels,A)},f.prototype.removeEdge=function(u,g,C){var A=1===arguments.length?m(this._isDirected,arguments[0]):l(this._isDirected,u,g,C),k=this._edgeObjs[A];return k&&(u=k.v,g=k.w,delete this._edgeLabels[A],delete this._edgeObjs[A],p(this._preds[g],u),p(this._sucs[u],g),delete this._in[g][A],delete this._out[u][A],this._edgeCount--),this},f.prototype.inEdges=function(u,g){var C=this._in[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.v===g}):A}},f.prototype.outEdges=function(u,g){var C=this._out[u];if(C){var A=c.values(C);return g?c.filter(A,function(k){return k.w===g}):A}},f.prototype.nodeEdges=function(u,g){var C=this.inEdges(u,g);if(C)return C.concat(this.outEdges(u,g))}},51838:(w,I,o)=>{w.exports={Graph:o(66568),version:o(75089)}},21088:(w,I,o)=>{var c=o(79138),x=o(66568);function _(p){return c.map(p.nodes(),function(l){var h=p.node(l),m=p.parent(l),u={v:l};return c.isUndefined(h)||(u.value=h),c.isUndefined(m)||(u.parent=m),u})}function f(p){return c.map(p.edges(),function(l){var h=p.edge(l),m={v:l.v,w:l.w};return c.isUndefined(l.name)||(m.name=l.name),c.isUndefined(h)||(m.value=h),m})}w.exports={write:function v(p){var l={options:{directed:p.isDirected(),multigraph:p.isMultigraph(),compound:p.isCompound()},nodes:_(p),edges:f(p)};return c.isUndefined(p.graph())||(l.value=c.clone(p.graph())),l},read:function t(p){var l=new x(p.options).setGraph(p.value);return c.each(p.nodes,function(h){l.setNode(h.v,h.value),h.parent&&l.setParent(h.v,h.parent)}),c.each(p.edges,function(h){l.setEdge({v:h.v,w:h.w,name:h.name},h.value)}),l}}},79138:(w,I,o)=>{var c;try{c={clone:o(11094),constant:o(76684),each:o(35474),filter:o(35281),has:o(54842),isArray:o(21503),isEmpty:o(71973),isFunction:o(75946),isUndefined:o(34235),keys:o(118),map:o(19984),reduce:o(81337),size:o(55637),transform:o(89416),union:o(68921),values:o(90377)}}catch(x){}c||(c=window._),w.exports=c},75089:w=>{w.exports="2.1.8"},40717:(w,I,o)=>{"use strict";var c=o(50623);function x(v){return!0===c(v)&&"[object Object]"===Object.prototype.toString.call(v)}w.exports=function(_){var f,t;return!(!1===x(_)||(f=_.constructor,"function"!=typeof f)||(t=f.prototype,!1===x(t))||!1===t.hasOwnProperty("isPrototypeOf"))}},50623:w=>{"use strict";w.exports=function(o){return null!=o&&"object"==typeof o&&!1===Array.isArray(o)}},52872:w=>{var I=Object.prototype.toString;function o(h){return"function"==typeof h.constructor?h.constructor.name:null}w.exports=function(m){if(void 0===m)return"undefined";if(null===m)return"null";var u=typeof m;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return function f(h,m){return"GeneratorFunction"===o(h)}(m)?"generatorfunction":"function";if(function c(h){return Array.isArray?Array.isArray(h):h instanceof Array}(m))return"array";if(function l(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(m))return"buffer";if(function p(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(m){if(-1!==m.message.indexOf("callee"))return!0}return!1}(m))return"arguments";if(function v(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(m))return"date";if(function x(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(m))return"error";if(function _(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(m))return"regexp";switch(o(m)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function t(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(m))return"generator";switch(u=I.call(m)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},37244:(w,I,o)=>{var v=o(53436)(o(12119),"DataView");w.exports=v},54994:(w,I,o)=>{var c=o(64312),x=o(46421),v=o(15764),_=o(18685),f=o(26676);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var c=o(41840),x=o(34378),v=o(54981),_=o(67343),f=o(98895);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Map");w.exports=v},99850:(w,I,o)=>{var c=o(10638),x=o(11184),v=o(70866),_=o(43771),f=o(51772);function t(p){var l=-1,h=null==p?0:p.length;for(this.clear();++l{var v=o(53436)(o(12119),"Promise");w.exports=v},46323:(w,I,o)=>{var v=o(53436)(o(12119),"Set");w.exports=v},58849:(w,I,o)=>{var c=o(99850),x=o(4600),v=o(31387);function _(f){var t=-1,p=null==f?0:f.length;for(this.__data__=new c;++t{var c=o(9215),x=o(13720),v=o(64410),_=o(45576),f=o(22247),t=o(41585);function p(l){var h=this.__data__=new c(l);this.size=h.size}p.prototype.clear=x,p.prototype.delete=v,p.prototype.get=_,p.prototype.has=f,p.prototype.set=t,w.exports=p},60443:(w,I,o)=>{var c=o(12119);w.exports=c.Symbol},73457:(w,I,o)=>{var c=o(12119);w.exports=c.Uint8Array},24243:(w,I,o)=>{var v=o(53436)(o(12119),"WeakMap");w.exports=v},26999:w=>{w.exports=function I(o,c,x){switch(x.length){case 0:return o.call(c);case 1:return o.call(c,x[0]);case 2:return o.call(c,x[0],x[1]);case 3:return o.call(c,x[0],x[1],x[2])}return o.apply(c,x)}},96837:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=0,f=[];++x{var c=o(14164);w.exports=function x(v,_){return!(null==v||!v.length)&&c(v,_,0)>-1}},37609:w=>{w.exports=function I(o,c,x){for(var v=-1,_=null==o?0:o.length;++v<_;)if(x(c,o[v]))return!0;return!1}},72271:(w,I,o)=>{var c=o(85334),x=o(77151),v=o(21503),_=o(80891),f=o(58442),t=o(48159),l=Object.prototype.hasOwnProperty;w.exports=function h(m,u){var g=v(m),C=!g&&x(m),A=!g&&!C&&_(m),k=!g&&!C&&!A&&t(m),F=g||C||A||k,O=F?c(m.length,String):[],R=O.length;for(var U in m)(u||l.call(m,U))&&(!F||!("length"==U||A&&("offset"==U||"parent"==U)||k&&("buffer"==U||"byteLength"==U||"byteOffset"==U)||f(U,R)))&&O.push(U);return O}},84633:w=>{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length,_=Array(v);++x{w.exports=function I(o,c){for(var x=-1,v=c.length,_=o.length;++x{w.exports=function I(o,c,x,v){var _=-1,f=null==o?0:o.length;for(v&&f&&(x=o[++_]);++_{w.exports=function I(o,c){for(var x=-1,v=null==o?0:o.length;++x{var x=o(11847)("length");w.exports=x},49276:(w,I,o)=>{var c=o(85683),x=o(20217);w.exports=function v(_,f,t){(void 0!==t&&!x(_[f],t)||void 0===t&&!(f in _))&&c(_,f,t)}},89719:(w,I,o)=>{var c=o(85683),x=o(20217),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l){var h=t[p];(!_.call(t,p)||!x(h,l)||void 0===l&&!(p in t))&&c(t,p,l)}},43503:(w,I,o)=>{var c=o(20217);w.exports=function x(v,_){for(var f=v.length;f--;)if(c(v[f][0],_))return f;return-1}},94121:(w,I,o)=>{var c=o(31989),x=o(118);w.exports=function v(_,f){return _&&c(f,x(f),_)}},99287:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_,f){return _&&c(f,x(f),_)}},85683:(w,I,o)=>{var c=o(56713);w.exports=function x(v,_,f){"__proto__"==_&&c?c(v,_,{configurable:!0,enumerable:!0,value:f,writable:!0}):v[_]=f}},44462:(w,I,o)=>{var c=o(2858),x=o(96837),v=o(89719),_=o(94121),f=o(99287),t=o(19292),p=o(99454),l=o(84444),h=o(59905),m=o(47597),u=o(6967),g=o(28794),C=o(76782),A=o(37878),k=o(4264),F=o(21503),O=o(80891),R=o(13222),U=o(25940),V=o(90799),W=o(118),rt=o(16555),tt="[object Arguments]",lt="[object Function]",Ct="[object Object]",Ve={};Ve[tt]=Ve["[object Array]"]=Ve["[object ArrayBuffer]"]=Ve["[object DataView]"]=Ve["[object Boolean]"]=Ve["[object Date]"]=Ve["[object Float32Array]"]=Ve["[object Float64Array]"]=Ve["[object Int8Array]"]=Ve["[object Int16Array]"]=Ve["[object Int32Array]"]=Ve["[object Map]"]=Ve["[object Number]"]=Ve[Ct]=Ve["[object RegExp]"]=Ve["[object Set]"]=Ve["[object String]"]=Ve["[object Symbol]"]=Ve["[object Uint8Array]"]=Ve["[object Uint8ClampedArray]"]=Ve["[object Uint16Array]"]=Ve["[object Uint32Array]"]=!0,Ve["[object Error]"]=Ve[lt]=Ve["[object WeakMap]"]=!1,w.exports=function Ce(Ae,Yn,Wn,ni,xn,sn){var je,wn=1&Yn,In=2&Yn,ze=4&Yn;if(Wn&&(je=xn?Wn(Ae,ni,xn,sn):Wn(Ae)),void 0!==je)return je;if(!U(Ae))return Ae;var ci=F(Ae);if(ci){if(je=C(Ae),!wn)return p(Ae,je)}else{var Mn=g(Ae),Tn=Mn==lt||"[object GeneratorFunction]"==Mn;if(O(Ae))return t(Ae,wn);if(Mn==Ct||Mn==tt||Tn&&!xn){if(je=In||Tn?{}:k(Ae),!wn)return In?h(Ae,f(je,Ae)):l(Ae,_(je,Ae))}else{if(!Ve[Mn])return xn?Ae:{};je=A(Ae,Mn,wn)}}sn||(sn=new c);var Hn=sn.get(Ae);if(Hn)return Hn;sn.set(Ae,je),V(Ae)?Ae.forEach(function(Xn){je.add(Ce(Xn,Yn,Wn,Xn,Ae,sn))}):R(Ae)&&Ae.forEach(function(Xn,jn){je.set(jn,Ce(Xn,Yn,Wn,jn,Ae,sn))});var Ne=ci?void 0:(ze?In?u:m:In?rt:W)(Ae);return x(Ne||Ae,function(Xn,jn){Ne&&(Xn=Ae[jn=Xn]),v(je,jn,Ce(Xn,Yn,Wn,jn,Ae,sn))}),je}},78858:(w,I,o)=>{var c=o(25940),x=Object.create,v=function(){function _(){}return function(f){if(!c(f))return{};if(x)return x(f);_.prototype=f;var t=new _;return _.prototype=void 0,t}}();w.exports=v},43132:(w,I,o)=>{var c=o(45184),v=o(16539)(c);w.exports=v},67308:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_,f){for(var t=-1,p=v.length;++t{var c=o(43132);w.exports=function x(v,_){var f=[];return c(v,function(t,p,l){_(t,p,l)&&f.push(t)}),f}},65317:w=>{w.exports=function I(o,c,x,v){for(var _=o.length,f=x+(v?1:-1);v?f--:++f<_;)if(c(o[f],f,o))return f;return-1}},50686:(w,I,o)=>{var c=o(85059),x=o(75039);w.exports=function v(_,f,t,p,l){var h=-1,m=_.length;for(t||(t=x),l||(l=[]);++h0&&t(u)?f>1?v(u,f-1,t,p,l):c(l,u):p||(l[l.length]=u)}return l}},30755:(w,I,o)=>{var x=o(40456)();w.exports=x},45184:(w,I,o)=>{var c=o(30755),x=o(118);w.exports=function v(_,f){return _&&c(_,f,x)}},15456:(w,I,o)=>{var c=o(65456),x=o(68533);w.exports=function v(_,f){for(var t=0,p=(f=c(f,_)).length;null!=_&&t{var c=o(85059),x=o(21503);w.exports=function v(_,f,t){var p=f(_);return x(_)?p:c(p,t(_))}},93337:(w,I,o)=>{var c=o(60443),x=o(21318),v=o(92902),t=c?c.toStringTag:void 0;w.exports=function p(l){return null==l?void 0===l?"[object Undefined]":"[object Null]":t&&t in Object(l)?x(l):v(l)}},31100:w=>{w.exports=function I(o,c){return o>c}},84781:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x,v){return null!=x&&o.call(x,v)}},69989:w=>{w.exports=function I(o,c){return null!=o&&c in Object(o)}},14164:(w,I,o)=>{var c=o(65317),x=o(70968),v=o(24977);w.exports=function _(f,t,p){return t==t?v(f,t,p):c(f,x,p)}},60186:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return x(f)&&"[object Arguments]"==c(f)}},85740:(w,I,o)=>{var c=o(58325),x=o(72671);w.exports=function v(_,f,t,p,l){return _===f||(null==_||null==f||!x(_)&&!x(f)?_!=_&&f!=f:c(_,f,t,p,v,l))}},58325:(w,I,o)=>{var c=o(2858),x=o(63914),v=o(78583),_=o(32286),f=o(28794),t=o(21503),p=o(80891),l=o(48159),m="[object Arguments]",u="[object Array]",g="[object Object]",A=Object.prototype.hasOwnProperty;w.exports=function k(F,O,R,U,V,W){var rt=t(F),nt=t(O),ut=rt?u:f(F),J=nt?u:f(O),tt=(ut=ut==m?g:ut)==g,Q=(J=J==m?g:J)==g,at=ut==J;if(at&&p(F)){if(!p(O))return!1;rt=!0,tt=!1}if(at&&!tt)return W||(W=new c),rt||l(F)?x(F,O,R,U,V,W):v(F,O,ut,R,U,V,W);if(!(1&R)){var H=tt&&A.call(F,"__wrapped__"),K=Q&&A.call(O,"__wrapped__");if(H||K){var lt=H?F.value():F,it=K?O.value():O;return W||(W=new c),V(lt,it,R,U,W)}}return!!at&&(W||(W=new c),_(F,O,R,U,V,W))}},97021:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Map]"==c(f)}},40431:(w,I,o)=>{var c=o(2858),x=o(85740);w.exports=function f(t,p,l,h){var m=l.length,u=m,g=!h;if(null==t)return!u;for(t=Object(t);m--;){var C=l[m];if(g&&C[2]?C[1]!==t[C[0]]:!(C[0]in t))return!1}for(;++m{w.exports=function I(o){return o!=o}},37304:(w,I,o)=>{var c=o(75946),x=o(91943),v=o(25940),_=o(52827),t=/^\[object .+?Constructor\]$/,u=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");w.exports=function g(C){return!(!v(C)||x(C))&&(c(C)?u:t).test(_(C))}},771:(w,I,o)=>{var c=o(28794),x=o(72671);w.exports=function _(f){return x(f)&&"[object Set]"==c(f)}},1083:(w,I,o)=>{var c=o(93337),x=o(96231),v=o(72671),at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1,w.exports=function H(K){return v(K)&&x(K.length)&&!!at[c(K)]}},96517:(w,I,o)=>{var c=o(98133),x=o(9458),v=o(32608),_=o(21503),f=o(87495);w.exports=function t(p){return"function"==typeof p?p:null==p?v:"object"==typeof p?_(p)?x(p[0],p[1]):c(p):f(p)}},81172:(w,I,o)=>{var c=o(45488),x=o(85491),_=Object.prototype.hasOwnProperty;w.exports=function f(t){if(!c(t))return x(t);var p=[];for(var l in Object(t))_.call(t,l)&&"constructor"!=l&&p.push(l);return p}},92809:(w,I,o)=>{var c=o(25940),x=o(45488),v=o(32158),f=Object.prototype.hasOwnProperty;w.exports=function t(p){if(!c(p))return v(p);var l=x(p),h=[];for(var m in p)"constructor"==m&&(l||!f.call(p,m))||h.push(m);return h}},99069:w=>{w.exports=function I(o,c){return o{var c=o(43132),x=o(56507);w.exports=function v(_,f){var t=-1,p=x(_)?Array(_.length):[];return c(_,function(l,h,m){p[++t]=f(l,h,m)}),p}},98133:(w,I,o)=>{var c=o(40431),x=o(22379),v=o(642);w.exports=function _(f){var t=x(f);return 1==t.length&&t[0][2]?v(t[0][0],t[0][1]):function(p){return p===f||c(p,f,t)}}},9458:(w,I,o)=>{var c=o(85740),x=o(8817),v=o(11172),_=o(45352),f=o(22442),t=o(642),p=o(68533);w.exports=function m(u,g){return _(u)&&f(g)?t(p(u),g):function(C){var A=x(C,u);return void 0===A&&A===g?v(C,u):c(g,A,3)}}},73842:(w,I,o)=>{var c=o(2858),x=o(49276),v=o(30755),_=o(33675),f=o(25940),t=o(16555),p=o(99351);w.exports=function l(h,m,u,g,C){h!==m&&v(m,function(A,k){if(C||(C=new c),f(A))_(h,m,k,u,l,g,C);else{var F=g?g(p(h,k),A,k+"",h,m,C):void 0;void 0===F&&(F=A),x(h,k,F)}},t)}},33675:(w,I,o)=>{var c=o(49276),x=o(19292),v=o(65208),_=o(99454),f=o(4264),t=o(77151),p=o(21503),l=o(92377),h=o(80891),m=o(75946),u=o(25940),g=o(97614),C=o(48159),A=o(99351),k=o(8067);w.exports=function F(O,R,U,V,W,rt,nt){var ut=A(O,U),J=A(R,U),tt=nt.get(J);if(tt)c(O,U,tt);else{var Q=rt?rt(ut,J,U+"",O,R,nt):void 0,at=void 0===Q;if(at){var H=p(J),K=!H&&h(J),lt=!H&&!K&&C(J);Q=J,H||K||lt?p(ut)?Q=ut:l(ut)?Q=_(ut):K?(at=!1,Q=x(J,!0)):lt?(at=!1,Q=v(J,!0)):Q=[]:g(J)||t(J)?(Q=ut,t(ut)?Q=k(ut):(!u(ut)||m(ut))&&(Q=f(J))):at=!1}at&&(nt.set(J,Q),W(Q,J,V,rt,nt),nt.delete(J)),c(O,U,Q)}}},6119:(w,I,o)=>{var c=o(84633),x=o(15456),v=o(96517),_=o(92046),f=o(42061),t=o(85647),p=o(41215),l=o(32608),h=o(21503);w.exports=function m(u,g,C){g=g.length?c(g,function(F){return h(F)?function(O){return x(O,1===F.length?F[0]:F)}:F}):[l];var A=-1;g=c(g,t(v));var k=_(u,function(F,O,R){return{criteria:c(g,function(V){return V(F)}),index:++A,value:F}});return f(k,function(F,O){return p(F,O,C)})}},83021:(w,I,o)=>{var c=o(95495),x=o(11172);w.exports=function v(_,f){return c(_,f,function(t,p){return x(_,p)})}},95495:(w,I,o)=>{var c=o(15456),x=o(55963),v=o(65456);w.exports=function _(f,t,p){for(var l=-1,h=t.length,m={};++l{w.exports=function I(o){return function(c){return null==c?void 0:c[o]}}},39222:(w,I,o)=>{var c=o(15456);w.exports=function x(v){return function(_){return c(_,v)}}},16307:w=>{var I=Math.ceil,o=Math.max;w.exports=function c(x,v,_,f){for(var t=-1,p=o(I((v-x)/(_||1)),0),l=Array(p);p--;)l[f?p:++t]=x,x+=_;return l}},13570:w=>{w.exports=function I(o,c,x,v,_){return _(o,function(f,t,p){x=v?(v=!1,f):c(x,f,t,p)}),x}},23269:(w,I,o)=>{var c=o(32608),x=o(53983),v=o(72185);w.exports=function _(f,t){return v(x(f,t,c),f+"")}},55963:(w,I,o)=>{var c=o(89719),x=o(65456),v=o(58442),_=o(25940),f=o(68533);w.exports=function t(p,l,h,m){if(!_(p))return p;for(var u=-1,g=(l=x(l,p)).length,C=g-1,A=p;null!=A&&++u{var c=o(76684),x=o(56713),v=o(32608);w.exports=x?function(f,t){return x(f,"toString",{configurable:!0,enumerable:!1,value:c(t),writable:!0})}:v},42061:w=>{w.exports=function I(o,c){var x=o.length;for(o.sort(c);x--;)o[x]=o[x].value;return o}},85334:w=>{w.exports=function I(o,c){for(var x=-1,v=Array(o);++x{var c=o(60443),x=o(84633),v=o(21503),_=o(44129),t=c?c.prototype:void 0,p=t?t.toString:void 0;w.exports=function l(h){if("string"==typeof h)return h;if(v(h))return x(h,l)+"";if(_(h))return p?p.call(h):"";var m=h+"";return"0"==m&&1/h==-1/0?"-0":m}},83348:(w,I,o)=>{var c=o(42760),x=/^\s+/;w.exports=function v(_){return _&&_.slice(0,c(_)+1).replace(x,"")}},85647:w=>{w.exports=function I(o){return function(c){return o(c)}}},80707:(w,I,o)=>{var c=o(58849),x=o(61253),v=o(37609),_=o(25972),f=o(14575),t=o(24174);w.exports=function l(h,m,u){var g=-1,C=x,A=h.length,k=!0,F=[],O=F;if(u)k=!1,C=v;else if(A>=200){var R=m?null:f(h);if(R)return t(R);k=!1,C=_,O=new c}else O=m?[]:F;t:for(;++g{var c=o(84633);w.exports=function x(v,_){return c(_,function(f){return v[f]})}},38645:w=>{w.exports=function I(o,c,x){for(var v=-1,_=o.length,f=c.length,t={};++v<_;)x(t,o[v],v{w.exports=function I(o,c){return o.has(c)}},21481:(w,I,o)=>{var c=o(32608);w.exports=function x(v){return"function"==typeof v?v:c}},65456:(w,I,o)=>{var c=o(21503),x=o(45352),v=o(32855),_=o(73943);w.exports=function f(t,p){return c(t)?t:x(t,p)?[t]:v(_(t))}},43362:(w,I,o)=>{var c=o(73457);w.exports=function x(v){var _=new v.constructor(v.byteLength);return new c(_).set(new c(v)),_}},19292:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x?c.Buffer:void 0,t=f?f.allocUnsafe:void 0;w.exports=function p(l,h){if(h)return l.slice();var m=l.length,u=t?t(m):new l.constructor(m);return l.copy(u),u}},17e3:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.byteLength)}},74098:w=>{var I=/\w*$/;w.exports=function o(c){var x=new c.constructor(c.source,I.exec(c));return x.lastIndex=c.lastIndex,x}},62533:(w,I,o)=>{var c=o(60443),x=c?c.prototype:void 0,v=x?x.valueOf:void 0;w.exports=function _(f){return v?Object(v.call(f)):{}}},65208:(w,I,o)=>{var c=o(43362);w.exports=function x(v,_){var f=_?c(v.buffer):v.buffer;return new v.constructor(f,v.byteOffset,v.length)}},13443:(w,I,o)=>{var c=o(44129);w.exports=function x(v,_){if(v!==_){var f=void 0!==v,t=null===v,p=v==v,l=c(v),h=void 0!==_,m=null===_,u=_==_,g=c(_);if(!m&&!g&&!l&&v>_||l&&h&&u&&!m&&!g||t&&h&&u||!f&&u||!p)return 1;if(!t&&!l&&!g&&v<_||g&&f&&p&&!t&&!l||m&&f&&p||!h&&p||!u)return-1}return 0}},41215:(w,I,o)=>{var c=o(13443);w.exports=function x(v,_,f){for(var t=-1,p=v.criteria,l=_.criteria,h=p.length,m=f.length;++t=m?u:u*("desc"==f[t]?-1:1)}return v.index-_.index}},99454:w=>{w.exports=function I(o,c){var x=-1,v=o.length;for(c||(c=Array(v));++x{var c=o(89719),x=o(85683);w.exports=function v(_,f,t,p){var l=!t;t||(t={});for(var h=-1,m=f.length;++h{var c=o(31989),x=o(39383);w.exports=function v(_,f){return c(_,x(_),f)}},59905:(w,I,o)=>{var c=o(31989),x=o(53051);w.exports=function v(_,f){return c(_,x(_),f)}},24610:(w,I,o)=>{var c=o(12119);w.exports=c["__core-js_shared__"]},84944:(w,I,o)=>{var c=o(23269),x=o(93342);w.exports=function v(_){return c(function(f,t){var p=-1,l=t.length,h=l>1?t[l-1]:void 0,m=l>2?t[2]:void 0;for(h=_.length>3&&"function"==typeof h?(l--,h):void 0,m&&x(t[0],t[1],m)&&(h=l<3?void 0:h,l=1),f=Object(f);++p{var c=o(56507);w.exports=function x(v,_){return function(f,t){if(null==f)return f;if(!c(f))return v(f,t);for(var p=f.length,l=_?p:-1,h=Object(f);(_?l--:++l{w.exports=function I(o){return function(c,x,v){for(var _=-1,f=Object(c),t=v(c),p=t.length;p--;){var l=t[o?p:++_];if(!1===x(f[l],l,f))break}return c}}},24653:(w,I,o)=>{var c=o(96517),x=o(56507),v=o(118);w.exports=function _(f){return function(t,p,l){var h=Object(t);if(!x(t)){var m=c(p,3);t=v(t),p=function(g){return m(h[g],g,h)}}var u=f(t,p,l);return u>-1?h[m?t[u]:u]:void 0}}},97509:(w,I,o)=>{var c=o(16307),x=o(93342),v=o(12232);w.exports=function _(f){return function(t,p,l){return l&&"number"!=typeof l&&x(t,p,l)&&(p=l=void 0),t=v(t),void 0===p?(p=t,t=0):p=v(p),l=void 0===l?t{var c=o(46323),x=o(12552),v=o(24174),f=c&&1/v(new c([,-0]))[1]==1/0?function(t){return new c(t)}:x;w.exports=f},56713:(w,I,o)=>{var c=o(53436),x=function(){try{var v=c(Object,"defineProperty");return v({},"",{}),v}catch(_){}}();w.exports=x},63914:(w,I,o)=>{var c=o(58849),x=o(79503),v=o(25972);w.exports=function t(p,l,h,m,u,g){var C=1&h,A=p.length,k=l.length;if(A!=k&&!(C&&k>A))return!1;var F=g.get(p),O=g.get(l);if(F&&O)return F==l&&O==p;var R=-1,U=!0,V=2&h?new c:void 0;for(g.set(p,l),g.set(l,p);++R{var c=o(60443),x=o(73457),v=o(20217),_=o(63914),f=o(83205),t=o(24174),V=c?c.prototype:void 0,W=V?V.valueOf:void 0;w.exports=function rt(nt,ut,J,tt,Q,at,H){switch(J){case"[object DataView]":if(nt.byteLength!=ut.byteLength||nt.byteOffset!=ut.byteOffset)return!1;nt=nt.buffer,ut=ut.buffer;case"[object ArrayBuffer]":return!(nt.byteLength!=ut.byteLength||!at(new x(nt),new x(ut)));case"[object Boolean]":case"[object Date]":case"[object Number]":return v(+nt,+ut);case"[object Error]":return nt.name==ut.name&&nt.message==ut.message;case"[object RegExp]":case"[object String]":return nt==ut+"";case"[object Map]":var K=f;case"[object Set]":if(K||(K=t),nt.size!=ut.size&&!(1&tt))return!1;var it=H.get(nt);if(it)return it==ut;tt|=2,H.set(nt,ut);var z=_(K(nt),K(ut),tt,Q,at,H);return H.delete(nt),z;case"[object Symbol]":if(W)return W.call(nt)==W.call(ut)}return!1}},32286:(w,I,o)=>{var c=o(47597),_=Object.prototype.hasOwnProperty;w.exports=function f(t,p,l,h,m,u){var g=1&l,C=c(t),A=C.length;if(A!=c(p).length&&!g)return!1;for(var O=A;O--;){var R=C[O];if(!(g?R in p:_.call(p,R)))return!1}var U=u.get(t),V=u.get(p);if(U&&V)return U==p&&V==t;var W=!0;u.set(t,p),u.set(p,t);for(var rt=g;++O{var c=o(22274),x=o(53983),v=o(72185);w.exports=function _(f){return v(x(f,void 0,c),f+"")}},79122:w=>{var I="object"==typeof global&&global&&global.Object===Object&&global;w.exports=I},47597:(w,I,o)=>{var c=o(38247),x=o(39383),v=o(118);w.exports=function _(f){return c(f,v,x)}},6967:(w,I,o)=>{var c=o(38247),x=o(53051),v=o(16555);w.exports=function _(f){return c(f,v,x)}},54537:(w,I,o)=>{var c=o(23819);w.exports=function x(v,_){var f=v.__data__;return c(_)?f["string"==typeof _?"string":"hash"]:f.map}},22379:(w,I,o)=>{var c=o(22442),x=o(118);w.exports=function v(_){for(var f=x(_),t=f.length;t--;){var p=f[t],l=_[p];f[t]=[p,l,c(l)]}return f}},53436:(w,I,o)=>{var c=o(37304),x=o(51990);w.exports=function v(_,f){var t=x(_,f);return c(t)?t:void 0}},29519:(w,I,o)=>{var x=o(69385)(Object.getPrototypeOf,Object);w.exports=x},21318:(w,I,o)=>{var c=o(60443),x=Object.prototype,v=x.hasOwnProperty,_=x.toString,f=c?c.toStringTag:void 0;w.exports=function t(p){var l=v.call(p,f),h=p[f];try{p[f]=void 0;var m=!0}catch(g){}var u=_.call(p);return m&&(l?p[f]=h:delete p[f]),u}},39383:(w,I,o)=>{var c=o(69779),x=o(49975),_=Object.prototype.propertyIsEnumerable,f=Object.getOwnPropertySymbols;w.exports=f?function(p){return null==p?[]:(p=Object(p),c(f(p),function(l){return _.call(p,l)}))}:x},53051:(w,I,o)=>{var c=o(85059),x=o(29519),v=o(39383),_=o(49975);w.exports=Object.getOwnPropertySymbols?function(p){for(var l=[];p;)c(l,v(p)),p=x(p);return l}:_},28794:(w,I,o)=>{var c=o(37244),x=o(51501),v=o(44267),_=o(46323),f=o(24243),t=o(93337),p=o(52827),l="[object Map]",m="[object Promise]",u="[object Set]",g="[object WeakMap]",C="[object DataView]",A=p(c),k=p(x),F=p(v),O=p(_),R=p(f),U=t;(c&&U(new c(new ArrayBuffer(1)))!=C||x&&U(new x)!=l||v&&U(v.resolve())!=m||_&&U(new _)!=u||f&&U(new f)!=g)&&(U=function(V){var W=t(V),rt="[object Object]"==W?V.constructor:void 0,nt=rt?p(rt):"";if(nt)switch(nt){case A:return C;case k:return l;case F:return m;case O:return u;case R:return g}return W}),w.exports=U},51990:w=>{w.exports=function I(o,c){return null==o?void 0:o[c]}},47283:(w,I,o)=>{var c=o(65456),x=o(77151),v=o(21503),_=o(58442),f=o(96231),t=o(68533);w.exports=function p(l,h,m){for(var u=-1,g=(h=c(h,l)).length,C=!1;++u{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");w.exports=function p(l){return t.test(l)}},64312:(w,I,o)=>{var c=o(60862);w.exports=function x(){this.__data__=c?c(null):{},this.size=0}},46421:w=>{w.exports=function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}},15764:(w,I,o)=>{var c=o(60862),_=Object.prototype.hasOwnProperty;w.exports=function f(t){var p=this.__data__;if(c){var l=p[t];return"__lodash_hash_undefined__"===l?void 0:l}return _.call(p,t)?p[t]:void 0}},18685:(w,I,o)=>{var c=o(60862),v=Object.prototype.hasOwnProperty;w.exports=function _(f){var t=this.__data__;return c?void 0!==t[f]:v.call(t,f)}},26676:(w,I,o)=>{var c=o(60862);w.exports=function v(_,f){var t=this.__data__;return this.size+=this.has(_)?0:1,t[_]=c&&void 0===f?"__lodash_hash_undefined__":f,this}},76782:w=>{var o=Object.prototype.hasOwnProperty;w.exports=function c(x){var v=x.length,_=new x.constructor(v);return v&&"string"==typeof x[0]&&o.call(x,"index")&&(_.index=x.index,_.input=x.input),_}},37878:(w,I,o)=>{var c=o(43362),x=o(17e3),v=o(74098),_=o(62533),f=o(65208);w.exports=function J(tt,Q,at){var H=tt.constructor;switch(Q){case"[object ArrayBuffer]":return c(tt);case"[object Boolean]":case"[object Date]":return new H(+tt);case"[object DataView]":return x(tt,at);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return f(tt,at);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(tt);case"[object RegExp]":return v(tt);case"[object Symbol]":return _(tt)}}},4264:(w,I,o)=>{var c=o(78858),x=o(29519),v=o(45488);w.exports=function _(f){return"function"!=typeof f.constructor||v(f)?{}:c(x(f))}},75039:(w,I,o)=>{var c=o(60443),x=o(77151),v=o(21503),_=c?c.isConcatSpreadable:void 0;w.exports=function f(t){return v(t)||x(t)||!!(_&&t&&t[_])}},58442:w=>{var o=/^(?:0|[1-9]\d*)$/;w.exports=function c(x,v){var _=typeof x;return!!(v=null==v?9007199254740991:v)&&("number"==_||"symbol"!=_&&o.test(x))&&x>-1&&x%1==0&&x{var c=o(20217),x=o(56507),v=o(58442),_=o(25940);w.exports=function f(t,p,l){if(!_(l))return!1;var h=typeof p;return!!("number"==h?x(l)&&v(p,l.length):"string"==h&&p in l)&&c(l[p],t)}},45352:(w,I,o)=>{var c=o(21503),x=o(44129),v=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_=/^\w*$/;w.exports=function f(t,p){if(c(t))return!1;var l=typeof t;return!("number"!=l&&"symbol"!=l&&"boolean"!=l&&null!=t&&!x(t))||_.test(t)||!v.test(t)||null!=p&&t in Object(p)}},23819:w=>{w.exports=function I(o){var c=typeof o;return"string"==c||"number"==c||"symbol"==c||"boolean"==c?"__proto__"!==o:null===o}},91943:(w,I,o)=>{var _,c=o(24610),x=(_=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"";w.exports=function v(_){return!!x&&x in _}},45488:w=>{var I=Object.prototype;w.exports=function o(c){var x=c&&c.constructor;return c===("function"==typeof x&&x.prototype||I)}},22442:(w,I,o)=>{var c=o(25940);w.exports=function x(v){return v==v&&!c(v)}},41840:w=>{w.exports=function I(){this.__data__=[],this.size=0}},34378:(w,I,o)=>{var c=o(43503),v=Array.prototype.splice;w.exports=function _(f){var t=this.__data__,p=c(t,f);return!(p<0||(p==t.length-1?t.pop():v.call(t,p,1),--this.size,0))}},54981:(w,I,o)=>{var c=o(43503);w.exports=function x(v){var _=this.__data__,f=c(_,v);return f<0?void 0:_[f][1]}},67343:(w,I,o)=>{var c=o(43503);w.exports=function x(v){return c(this.__data__,v)>-1}},98895:(w,I,o)=>{var c=o(43503);w.exports=function x(v,_){var f=this.__data__,t=c(f,v);return t<0?(++this.size,f.push([v,_])):f[t][1]=_,this}},10638:(w,I,o)=>{var c=o(54994),x=o(9215),v=o(51501);w.exports=function _(){this.size=0,this.__data__={hash:new c,map:new(v||x),string:new c}}},11184:(w,I,o)=>{var c=o(54537);w.exports=function x(v){var _=c(this,v).delete(v);return this.size-=_?1:0,_}},70866:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).get(v)}},43771:(w,I,o)=>{var c=o(54537);w.exports=function x(v){return c(this,v).has(v)}},51772:(w,I,o)=>{var c=o(54537);w.exports=function x(v,_){var f=c(this,v),t=f.size;return f.set(v,_),this.size+=f.size==t?0:1,this}},83205:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v,_){x[++c]=[_,v]}),x}},642:w=>{w.exports=function I(o,c){return function(x){return null!=x&&x[o]===c&&(void 0!==c||o in Object(x))}}},15144:(w,I,o)=>{var c=o(30535);w.exports=function v(_){var f=c(_,function(p){return 500===t.size&&t.clear(),p}),t=f.cache;return f}},60862:(w,I,o)=>{var x=o(53436)(Object,"create");w.exports=x},85491:(w,I,o)=>{var x=o(69385)(Object.keys,Object);w.exports=x},32158:w=>{w.exports=function I(o){var c=[];if(null!=o)for(var x in Object(o))c.push(x);return c}},73597:(w,I,o)=>{w=o.nmd(w);var c=o(79122),x=I&&!I.nodeType&&I,v=x&&w&&!w.nodeType&&w,f=v&&v.exports===x&&c.process,t=function(){try{return v&&v.require&&v.require("util").types||f&&f.binding&&f.binding("util")}catch(l){}}();w.exports=t},92902:w=>{var o=Object.prototype.toString;w.exports=function c(x){return o.call(x)}},69385:w=>{w.exports=function I(o,c){return function(x){return o(c(x))}}},53983:(w,I,o)=>{var c=o(26999),x=Math.max;w.exports=function v(_,f,t){return f=x(void 0===f?_.length-1:f,0),function(){for(var p=arguments,l=-1,h=x(p.length-f,0),m=Array(h);++l{var c=o(79122),x="object"==typeof self&&self&&self.Object===Object&&self,v=c||x||Function("return this")();w.exports=v},99351:w=>{w.exports=function I(o,c){if(("constructor"!==c||"function"!=typeof o[c])&&"__proto__"!=c)return o[c]}},4600:w=>{w.exports=function o(c){return this.__data__.set(c,"__lodash_hash_undefined__"),this}},31387:w=>{w.exports=function I(o){return this.__data__.has(o)}},24174:w=>{w.exports=function I(o){var c=-1,x=Array(o.size);return o.forEach(function(v){x[++c]=v}),x}},72185:(w,I,o)=>{var c=o(69510),v=o(10029)(c);w.exports=v},10029:w=>{var c=Date.now;w.exports=function x(v){var _=0,f=0;return function(){var t=c(),p=16-(t-f);if(f=t,p>0){if(++_>=800)return arguments[0]}else _=0;return v.apply(void 0,arguments)}}},13720:(w,I,o)=>{var c=o(9215);w.exports=function x(){this.__data__=new c,this.size=0}},64410:w=>{w.exports=function I(o){var c=this.__data__,x=c.delete(o);return this.size=c.size,x}},45576:w=>{w.exports=function I(o){return this.__data__.get(o)}},22247:w=>{w.exports=function I(o){return this.__data__.has(o)}},41585:(w,I,o)=>{var c=o(9215),x=o(51501),v=o(99850);w.exports=function f(t,p){var l=this.__data__;if(l instanceof c){var h=l.__data__;if(!x||h.length<199)return h.push([t,p]),this.size=++l.size,this;l=this.__data__=new v(h)}return l.set(t,p),this.size=l.size,this}},24977:w=>{w.exports=function I(o,c,x){for(var v=x-1,_=o.length;++v<_;)if(o[v]===c)return v;return-1}},52315:(w,I,o)=>{var c=o(75481),x=o(77609),v=o(81149);w.exports=function _(f){return x(f)?v(f):c(f)}},32855:(w,I,o)=>{var c=o(15144),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g,_=c(function(f){var t=[];return 46===f.charCodeAt(0)&&t.push(""),f.replace(x,function(p,l,h,m){t.push(h?m.replace(v,"$1"):l||p)}),t});w.exports=_},68533:(w,I,o)=>{var c=o(44129);w.exports=function v(_){if("string"==typeof _||c(_))return _;var f=_+"";return"0"==f&&1/_==-1/0?"-0":f}},52827:w=>{var o=Function.prototype.toString;w.exports=function c(x){if(null!=x){try{return o.call(x)}catch(v){}try{return x+""}catch(v){}}return""}},42760:w=>{var I=/\s/;w.exports=function o(c){for(var x=c.length;x--&&I.test(c.charAt(x)););return x}},81149:w=>{var I="\\ud800-\\udfff",f="["+I+"]",t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",p="\\ud83c[\\udffb-\\udfff]",h="[^"+I+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+t+"|"+p+")?",A="[\\ufe0e\\ufe0f]?",F=A+C+"(?:\\u200d(?:"+[h,m,u].join("|")+")"+A+C+")*",O="(?:"+[h+t+"?",t,m,u,f].join("|")+")",R=RegExp(p+"(?="+p+")|"+O+F,"g");w.exports=function U(V){for(var W=R.lastIndex=0;R.test(V);)++W;return W}},11094:(w,I,o)=>{var c=o(44462);w.exports=function v(_){return c(_,4)}},90733:(w,I,o)=>{var c=o(44462);w.exports=function _(f){return c(f,5)}},76684:w=>{w.exports=function I(o){return function(){return o}}},28800:(w,I,o)=>{var c=o(23269),x=o(20217),v=o(93342),_=o(16555),f=Object.prototype,t=f.hasOwnProperty,p=c(function(l,h){l=Object(l);var m=-1,u=h.length,g=u>2?h[2]:void 0;for(g&&v(h[0],h[1],g)&&(u=1);++m{w.exports=o(89851)},20217:w=>{w.exports=function I(o,c){return o===c||o!=o&&c!=c}},35281:(w,I,o)=>{var c=o(69779),x=o(33609),v=o(96517),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p,3))}},62516:(w,I,o)=>{var v=o(24653)(o(36397));w.exports=v},36397:(w,I,o)=>{var c=o(65317),x=o(96517),v=o(44401),_=Math.max;w.exports=function f(t,p,l){var h=null==t?0:t.length;if(!h)return-1;var m=null==l?0:v(l);return m<0&&(m=_(h+m,0)),c(t,x(p,3),m)}},22274:(w,I,o)=>{var c=o(50686);w.exports=function x(v){return null!=v&&v.length?c(v,1):[]}},89851:(w,I,o)=>{var c=o(96837),x=o(43132),v=o(21481),_=o(21503);w.exports=function f(t,p){return(_(t)?c:x)(t,v(p))}},41176:(w,I,o)=>{var c=o(30755),x=o(21481),v=o(16555);w.exports=function _(f,t){return null==f?f:c(f,x(t),v)}},8817:(w,I,o)=>{var c=o(15456);w.exports=function x(v,_,f){var t=null==v?void 0:c(v,_);return void 0===t?f:t}},54842:(w,I,o)=>{var c=o(84781),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},11172:(w,I,o)=>{var c=o(69989),x=o(47283);w.exports=function v(_,f){return null!=_&&x(_,f,c)}},32608:w=>{w.exports=function I(o){return o}},77151:(w,I,o)=>{var c=o(60186),x=o(72671),v=Object.prototype,_=v.hasOwnProperty,f=v.propertyIsEnumerable,t=c(function(){return arguments}())?c:function(p){return x(p)&&_.call(p,"callee")&&!f.call(p,"callee")};w.exports=t},21503:w=>{w.exports=Array.isArray},56507:(w,I,o)=>{var c=o(75946),x=o(96231);w.exports=function v(_){return null!=_&&x(_.length)&&!c(_)}},92377:(w,I,o)=>{var c=o(56507),x=o(72671);w.exports=function v(_){return x(_)&&c(_)}},80891:(w,I,o)=>{w=o.nmd(w);var c=o(12119),x=o(63580),v=I&&!I.nodeType&&I,_=v&&w&&!w.nodeType&&w,t=_&&_.exports===v?c.Buffer:void 0;w.exports=(t?t.isBuffer:void 0)||x},71973:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(77151),_=o(21503),f=o(56507),t=o(80891),p=o(45488),l=o(48159),g=Object.prototype.hasOwnProperty;w.exports=function C(A){if(null==A)return!0;if(f(A)&&(_(A)||"string"==typeof A||"function"==typeof A.splice||t(A)||l(A)||v(A)))return!A.length;var k=x(A);if("[object Map]"==k||"[object Set]"==k)return!A.size;if(p(A))return!c(A).length;for(var F in A)if(g.call(A,F))return!1;return!0}},75946:(w,I,o)=>{var c=o(93337),x=o(25940);w.exports=function p(l){if(!x(l))return!1;var h=c(l);return"[object Function]"==h||"[object GeneratorFunction]"==h||"[object AsyncFunction]"==h||"[object Proxy]"==h}},96231:w=>{w.exports=function o(c){return"number"==typeof c&&c>-1&&c%1==0&&c<=9007199254740991}},13222:(w,I,o)=>{var c=o(97021),x=o(85647),v=o(73597),_=v&&v.isMap,f=_?x(_):c;w.exports=f},25940:w=>{w.exports=function I(o){var c=typeof o;return null!=o&&("object"==c||"function"==c)}},72671:w=>{w.exports=function I(o){return null!=o&&"object"==typeof o}},97614:(w,I,o)=>{var c=o(93337),x=o(29519),v=o(72671),p=Function.prototype.toString,l=Object.prototype.hasOwnProperty,h=p.call(Object);w.exports=function m(u){if(!v(u)||"[object Object]"!=c(u))return!1;var g=x(u);if(null===g)return!0;var C=l.call(g,"constructor")&&g.constructor;return"function"==typeof C&&C instanceof C&&p.call(C)==h}},90799:(w,I,o)=>{var c=o(771),x=o(85647),v=o(73597),_=v&&v.isSet,f=_?x(_):c;w.exports=f},30248:(w,I,o)=>{var c=o(93337),x=o(21503),v=o(72671);w.exports=function f(t){return"string"==typeof t||!x(t)&&v(t)&&"[object String]"==c(t)}},44129:(w,I,o)=>{var c=o(93337),x=o(72671);w.exports=function _(f){return"symbol"==typeof f||x(f)&&"[object Symbol]"==c(f)}},48159:(w,I,o)=>{var c=o(1083),x=o(85647),v=o(73597),_=v&&v.isTypedArray,f=_?x(_):c;w.exports=f},34235:w=>{w.exports=function I(o){return void 0===o}},118:(w,I,o)=>{var c=o(72271),x=o(81172),v=o(56507);w.exports=function _(f){return v(f)?c(f):x(f)}},16555:(w,I,o)=>{var c=o(72271),x=o(92809),v=o(56507);w.exports=function _(f){return v(f)?c(f,!0):x(f)}},25809:w=>{w.exports=function I(o){var c=null==o?0:o.length;return c?o[c-1]:void 0}},19984:(w,I,o)=>{var c=o(84633),x=o(96517),v=o(92046),_=o(21503);w.exports=function f(t,p){return(_(t)?c:v)(t,x(p,3))}},10203:(w,I,o)=>{var c=o(85683),x=o(45184),v=o(96517);w.exports=function _(f,t){var p={};return t=v(t,3),x(f,function(l,h,m){c(p,h,t(l,h,m))}),p}},18176:(w,I,o)=>{var c=o(67308),x=o(31100),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},30535:(w,I,o)=>{var c=o(99850);function v(_,f){if("function"!=typeof _||null!=f&&"function"!=typeof f)throw new TypeError("Expected a function");var t=function(){var p=arguments,l=f?f.apply(this,p):p[0],h=t.cache;if(h.has(l))return h.get(l);var m=_.apply(this,p);return t.cache=h.set(l,m)||h,m};return t.cache=new(v.Cache||c),t}v.Cache=c,w.exports=v},80567:(w,I,o)=>{var c=o(73842),v=o(84944)(function(_,f,t){c(_,f,t)});w.exports=v},29439:(w,I,o)=>{var c=o(67308),x=o(99069),v=o(32608);w.exports=function _(f){return f&&f.length?c(f,v,x):void 0}},29525:(w,I,o)=>{var c=o(67308),x=o(96517),v=o(99069);w.exports=function _(f,t){return f&&f.length?c(f,x(t,2),v):void 0}},12552:w=>{w.exports=function I(){}},31710:(w,I,o)=>{var c=o(12119);w.exports=function(){return c.Date.now()}},16372:(w,I,o)=>{var c=o(83021),v=o(3975)(function(_,f){return null==_?{}:c(_,f)});w.exports=v},87495:(w,I,o)=>{var c=o(11847),x=o(39222),v=o(45352),_=o(68533);w.exports=function f(t){return v(t)?c(_(t)):x(t)}},90361:(w,I,o)=>{var x=o(97509)();w.exports=x},81337:(w,I,o)=>{var c=o(8745),x=o(43132),v=o(96517),_=o(13570),f=o(21503);w.exports=function t(p,l,h){var m=f(p)?c:_,u=arguments.length<3;return m(p,v(l,4),h,u,x)}},55637:(w,I,o)=>{var c=o(81172),x=o(28794),v=o(56507),_=o(30248),f=o(52315);w.exports=function l(h){if(null==h)return 0;if(v(h))return _(h)?f(h):h.length;var m=x(h);return"[object Map]"==m||"[object Set]"==m?h.size:c(h).length}},12906:(w,I,o)=>{var c=o(50686),x=o(6119),v=o(23269),_=o(93342),f=v(function(t,p){if(null==t)return[];var l=p.length;return l>1&&_(t,p[0],p[1])?p=[]:l>2&&_(p[0],p[1],p[2])&&(p=[p[0]]),x(t,c(p,1),[])});w.exports=f},49975:w=>{w.exports=function I(){return[]}},63580:w=>{w.exports=function I(){return!1}},12232:(w,I,o)=>{var c=o(51467),x=1/0;w.exports=function _(f){return f?(f=c(f))===x||f===-x?17976931348623157e292*(f<0?-1:1):f==f?f:0:0===f?f:0}},44401:(w,I,o)=>{var c=o(12232);w.exports=function x(v){var _=c(v),f=_%1;return _==_?f?_-f:_:0}},51467:(w,I,o)=>{var c=o(83348),x=o(25940),v=o(44129),f=/^[-+]0x[0-9a-f]+$/i,t=/^0b[01]+$/i,p=/^0o[0-7]+$/i,l=parseInt;w.exports=function h(m){if("number"==typeof m)return m;if(v(m))return NaN;if(x(m)){var u="function"==typeof m.valueOf?m.valueOf():m;m=x(u)?u+"":u}if("string"!=typeof m)return 0===m?m:+m;m=c(m);var g=t.test(m);return g||p.test(m)?l(m.slice(2),g?2:8):f.test(m)?NaN:+m}},8067:(w,I,o)=>{var c=o(31989),x=o(16555);w.exports=function v(_){return c(_,x(_))}},73943:(w,I,o)=>{var c=o(93935);w.exports=function x(v){return null==v?"":c(v)}},89416:(w,I,o)=>{var c=o(96837),x=o(78858),v=o(45184),_=o(96517),f=o(29519),t=o(21503),p=o(80891),l=o(75946),h=o(25940),m=o(48159);w.exports=function u(g,C,A){var k=t(g),F=k||p(g)||m(g);if(C=_(C,4),null==A){var O=g&&g.constructor;A=F?k?new O:[]:h(g)&&l(O)?x(f(g)):{}}return(F?c:v)(g,function(R,U,V){return C(A,R,U,V)}),A}},68921:(w,I,o)=>{var c=o(50686),x=o(23269),v=o(80707),_=o(92377),f=x(function(t){return v(c(t,1,_,!0))});w.exports=f},51541:(w,I,o)=>{var c=o(73943),x=0;w.exports=function v(_){var f=++x;return c(_)+f}},90377:(w,I,o)=>{var c=o(19179),x=o(118);w.exports=function v(_){return null==_?[]:c(_,x(_))}},21617:(w,I,o)=>{var c=o(89719),x=o(38645);w.exports=function v(_,f){return x(_||[],f||[],c)}},34315:(w,I,o)=>{"use strict";const c=Symbol.prototype.valueOf,x=o(52872);w.exports=function v(h,m){switch(x(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function p(h){const m=h.length,u=Buffer.allocUnsafe?Buffer.allocUnsafe(m):Buffer.from(m);return h.copy(u),u}(h);case"symbol":return function l(h){return c?Object(c.call(h)):{}}(h);case"arraybuffer":return function f(h){const m=new h.constructor(h.byteLength);return new Uint8Array(m).set(new Uint8Array(h)),m}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function t(h,m){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function _(h){const m=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,u=new h.constructor(h.source,m);return u.lastIndex=h.lastIndex,u}(h);case"error":return Object.create(h);default:return h}}},67824:(w,I,o)=>{"use strict";function c(x){for(var v in x)I.hasOwnProperty(v)||(I[v]=x[v])}Object.defineProperty(I,"__esModule",{value:!0}),c(o(95085)),c(o(26243)),c(o(91786)),c(o(30225)),c(o(76767)),c(o(30345)),c(o(15675)),c(o(86461)),c(o(58802)),c(o(33900)),c(o(88866)),c(o(94655)),c(o(4068)),c(o(33858)),c(o(98237)),c(o(83292))},95085:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(p){var l=f.call(this)||this,m=p;return m.trigger&&(l.trigger=m.trigger),m.kick&&(l.kick=m.kick),m.drag&&(l.drag=m.drag),m.on&&(l.on=m.on),l.dragstart=l.dragStart=x.Layout.dragStart,l.dragend=l.dragEnd=x.Layout.dragEnd,l}return c(t,f),t.prototype.trigger=function(p){},t.prototype.kick=function(){},t.prototype.drag=function(){},t.prototype.on=function(p,l){return this},t}(x.Layout);I.LayoutAdaptor=v,I.adaptor=function _(f){return new v(f)}},83292:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(15675),x=o(76767);I.gridify=function v(t,p,l,h){t.cola.start(0,0,0,10,!1);var m=function _(t,p,l,h){t.forEach(function(u){u.routerNode={name:u.name,bounds:u.bounds.inflate(-l)}}),p.forEach(function(u){u.routerNode={bounds:u.bounds.inflate(-h),children:(void 0!==u.groups?u.groups.map(function(g){return t.length+g.id}):[]).concat(void 0!==u.leaves?u.leaves.map(function(g){return g.index}):[])}});var m=t.concat(p).map(function(u,g){return u.routerNode.id=g,u.routerNode});return new x.GridRouter(m,{getChildren:function(u){return u.children},getBounds:function(u){return u.bounds}},l-h)}(t.cola.nodes(),t.cola.groups(),l,h);return m.routeEdges(t.powerGraph.powerEdges,p,function(u){return u.source.routerNode.id},function(u){return u.target.routerNode.id})},I.powerGraphGridLayout=function f(t,p,l){var h;t.nodes.forEach(function(C,A){return C.index=A}),(new c.Layout).avoidOverlaps(!1).nodes(t.nodes).links(t.links).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){return A.padding=l})});var m=t.nodes.length,u=[],g=t.nodes.slice(0);return g.forEach(function(C,A){return C.index=A}),h.groups.forEach(function(C){var A=C.index=C.id+m;g.push(C),void 0!==C.leaves&&C.leaves.forEach(function(k){return u.push({source:A,target:k.index})}),void 0!==C.groups&&C.groups.forEach(function(k){return u.push({source:A,target:k.id+m})})}),h.powerEdges.forEach(function(C){u.push({source:C.source.index,target:C.target.index})}),(new c.Layout).size(p).nodes(g).links(u).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:(new c.Layout).convergenceThreshold(.001).size(p).avoidOverlaps(!0).nodes(t.nodes).links(t.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(C){(h=C).groups.forEach(function(A){A.padding=l})}).start(50,0,100,0,!1),powerGraph:h}}},26243:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(49346),x=o(22487);I.d3adaptor=function v(f){return!f||function _(f){return f.version&&null!==f.version.match(/^3\./)}(f)?new c.D3StyleLayoutAdaptor:new x.D3StyleLayoutAdaptor(f)}},49346:function(w,I,o){"use strict";var f,c=this&&this.__extends||(f=function(t,p){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var m in h)h.hasOwnProperty(m)&&(l[m]=h[m])})(t,p)},function(t,p){function l(){this.constructor=t}f(t,p),t.prototype=null===p?Object.create(p):(l.prototype=p.prototype,new l)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(f){function t(){var p=f.call(this)||this;p.event=d3.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=d3.behavior.drag().origin(x.Layout.dragOrigin).on("dragstart.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,d3.event),l.resume()}).on("dragend.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return m;this.call(m)},p}return c(t,f),t.prototype.trigger=function(p){var l={type:x.EventType[p.type],alpha:p.alpha,stress:p.stress};this.event[l.type](l)},t.prototype.kick=function(){var p=this;d3.timer(function(){return f.prototype.tick.call(p)})},t.prototype.on=function(p,l){return this.event.on("string"==typeof p?p:x.EventType[p],l),this},t}(x.Layout);I.D3StyleLayoutAdaptor=v,I.d3adaptor=function _(){return new v}},22487:function(w,I,o){"use strict";var _,c=this&&this.__extends||(_=function(f,t){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,l){p.__proto__=l}||function(p,l){for(var h in l)l.hasOwnProperty(h)&&(p[h]=l[h])})(f,t)},function(f,t){function p(){this.constructor=f}_(f,t),f.prototype=null===t?Object.create(t):(p.prototype=t.prototype,new p)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(15675),v=function(_){function f(t){var p=_.call(this)||this;p.d3Context=t,p.event=t.dispatch(x.EventType[x.EventType.start],x.EventType[x.EventType.tick],x.EventType[x.EventType.end]);var l=p;return p.drag=function(){if(!m)var m=t.drag().subject(x.Layout.dragOrigin).on("start.d3adaptor",x.Layout.dragStart).on("drag.d3adaptor",function(u){x.Layout.drag(u,t.event),l.resume()}).on("end.d3adaptor",x.Layout.dragEnd);if(!arguments.length)return m;arguments[0].call(m)},p}return c(f,_),f.prototype.trigger=function(t){var p={type:x.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(p.type,p)},f.prototype.kick=function(){var t=this,p=this.d3Context.timer(function(){return _.prototype.tick.call(t)&&p.stop()})},f.prototype.on=function(t,p){return this.event.on("string"==typeof t?t:x.EventType[t],p),this},f}(x.Layout);I.D3StyleLayoutAdaptor=v},91786:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function v(){this.locks={}}return v.prototype.add=function(_,f){this.locks[_]=f},v.prototype.clear=function(){this.locks={}},v.prototype.isEmpty=function(){for(var _ in this.locks)return!1;return!0},v.prototype.apply=function(_){for(var f in this.locks)_(Number(f),this.locks[f])},v}();I.Locks=o;var c=function(){function v(_,f,t){void 0===t&&(t=null),this.D=f,this.G=t,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new x,this.project=null,this.x=_,this.k=_.length;var p=this.n=_[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new o,this.minD=Number.MAX_VALUE;for(var h,l=p;l--;)for(h=p;--h>l;){var m=f[l][h];m>0&&m1e-9)break;var O=this.offsetDir();for(p=0;p1&&R>U||!isFinite(U)){for(p=0;p1&&(V=1);var W=U*U,rt=2*V*(R-U)/(W*R),nt=R*R*R,ut=2*-V/(W*nt);for(isFinite(rt)||console.log(rt),p=0;p0?K-(z+1)*tt:K-(z-1)*tt)&&F<=J&&(this.scaleSnapByMaxH?(this.g[p][g]+=u*at*F,this.H[p][g][g]+=u*at):(this.g[p][g]+=at*F,this.H[p][g][g]+=at))}this.locks.isEmpty()||this.locks.apply(function(Ct,It){for(p=0;p0;)for(var l=f;l-- >0;)t(p,l)},v.prototype.matrixApply=function(_){v.mApply(this.k,this.n,_)},v.prototype.computeNextPosition=function(_,f){var t=this;this.computeDerivatives(_);var p=this.computeStepSize(this.g);if(this.stepAndProject(_,f,this.g,p),this.project){this.matrixApply(function(h,m){return t.e[h][m]=_[h][m]-f[h][m]});var l=this.computeStepSize(this.e);l=Math.max(.2,Math.min(l,1)),this.stepAndProject(_,f,this.e,l)}},v.prototype.run=function(_){for(var f=Number.MAX_VALUE,t=!1;!t&&_-- >0;){var p=this.rungeKutta();t=Math.abs(f/p-1)>16)/this.range},v.prototype.getNextBetween=function(_,f){return _+this.getNext()*(f-_)},v}();I.PseudoRandom=x},30225:function(w,I,o){"use strict";var it,c=this&&this.__extends||(it=function(z,E){return(it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ct,It){Ct.__proto__=It}||function(Ct,It){for(var Rt in It)It.hasOwnProperty(Rt)&&(Ct[Rt]=It[Rt])})(z,E)},function(z,E){function Ct(){this.constructor=z}it(z,E),z.prototype=null===E?Object.create(E):(Ct.prototype=E.prototype,new Ct)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(4068),v=function it(){};I.Point=v;var _=function it(z,E,Ct,It){this.x1=z,this.y1=E,this.x2=Ct,this.y2=It};I.LineSegment=_;var f=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);function t(it,z,E){return(z.x-it.x)*(E.y-it.y)-(E.x-it.x)*(z.y-it.y)}function p(it,z,E){return t(it,z,E)>0}function l(it,z,E){return t(it,z,E)<0}function C(it,z){var E=z.slice(0);return E.push(z[0]),{rtan:A(it,E),ltan:k(it,E)}}function A(it,z){var Ct,It,Rt,ne,E=z.length-1;if(l(it,z[1],z[0])&&!p(it,z[E-1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return p(it,z[Ct],z[It])?Ct:It;if((ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]))&&!p(it,z[Rt-1],z[Rt]))return Rt;p(it,z[Ct+1],z[Ct])?ne||p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:ne&&l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function k(it,z){var Ct,It,Rt,ne,E=z.length-1;if(p(it,z[E-1],z[0])&&!l(it,z[1],z[0]))return 0;for(Ct=0,It=E;;){if(It-Ct==1)return l(it,z[Ct],z[It])?Ct:It;if(ne=l(it,z[(Rt=Math.floor((Ct+It)/2))+1],z[Rt]),p(it,z[Rt-1],z[Rt])&&!ne)return Rt;l(it,z[Ct+1],z[Ct])?ne?l(it,z[Ct],z[Rt])?It=Rt:Ct=Rt:It=Rt:ne?Ct=Rt:p(it,z[Ct],z[Rt])?It=Rt:Ct=Rt}}function F(it,z,E,Ct,It,Rt){var Ht,ne;ne=Ct(it[Ht=E(z[0],it)],z);for(var Ut=!1;!Ut;){for(Ut=!0;Ht===it.length-1&&(Ht=0),!It(z[ne],it[Ht],it[Ht+1]);)++Ht;for(;0===ne&&(ne=z.length-1),!Rt(it[Ht],z[ne],z[ne-1]);)--ne,Ut=!1}return{t1:Ht,t2:ne}}function R(it,z){return F(it,z,A,k,p,l)}I.PolyPoint=f,I.isLeft=t,I.ConvexHull=function h(it){var Ct,z=it.slice(0).sort(function(Qt,me){return Qt.x!==me.x?me.x-Qt.x:me.y-Qt.y}),E=it.length,Rt=z[0].x;for(Ct=1;Ct=0&&z[Ct].x===ft;Ct--);for(Ut=Ct+1,Ct=Ht;++Ct<=Ut;)if(!(t(z[0],z[Ut],z[Ct])>=0&&Ct1&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}vt!=Ut&&ne.push(z[vt]);var Nt=ne.length;for(Ct=Ut;--Ct>=Ht;)if(!(t(z[vt],z[Ht],z[Ct])>=0&&Ct>Ht)){for(;ne.length>Nt&&!(t(ne[ne.length-2],ne[ne.length-1],z[Ct])>0);)ne.length-=1;0!=Ct&&ne.push(z[Ct])}}return ne},I.clockwiseRadialSweep=function m(it,z,E){z.slice(0).sort(function(Ct,It){return Math.atan2(Ct.y-it.y,Ct.x-it.x)-Math.atan2(It.y-it.y,It.x-it.x)}).forEach(E)},I.tangent_PolyPolyC=F,I.LRtangent_PolyPolyC=function O(it,z){var E=R(z,it);return{t1:E.t2,t2:E.t1}},I.RLtangent_PolyPolyC=R,I.LLtangent_PolyPolyC=function U(it,z){return F(it,z,k,k,l,l)},I.RRtangent_PolyPolyC=function V(it,z){return F(it,z,A,A,p,p)};var W=function it(z,E){this.t1=z,this.t2=E};I.BiTangent=W;var rt=function it(){};I.BiTangents=rt;var nt=function(it){function z(){return null!==it&&it.apply(this,arguments)||this}return c(z,it),z}(v);I.TVGPoint=nt;var ut=function it(z,E,Ct,It){this.id=z,this.polyid=E,this.polyvertid=Ct,this.p=It,It.vv=this};I.VisibilityVertex=ut;var J=function(){function it(z,E){this.source=z,this.target=E}return it.prototype.length=function(){var z=this.source.p.x-this.target.p.x,E=this.source.p.y-this.target.p.y;return Math.sqrt(z*z+E*E)},it}();I.VisibilityEdge=J;var tt=function(){function it(z,E){if(this.P=z,this.V=[],this.E=[],E)this.V=E.V.slice(0),this.E=E.E.slice(0);else{for(var Ct=z.length,It=0;It0&&this.E.push(new J(Rt[Ht-1].vv,Ut))}Rt.length>1&&this.E.push(new J(Rt[0].vv,Rt[Rt.length-1].vv))}for(It=0;It0)return!0;return!1},it}();function Q(it,z){for(var E=[],Ct=1,It=z.length;Ct=0&&ge>=0&&ye<0&&Be>=0&&vn>=0&&Re<0?It.ll=new W(Rt,Ht):me<=0&&ge<=0&&ye>0&&Be<=0&&vn<=0&&Re>0?It.rr=new W(Rt,Ht):me<=0&&ge>0&&ye<=0&&Be>=0&&vn<0&&Re>=0?It.rl=new W(Rt,Ht):me>=0&&ge<0&&ye>=0&&Be<=0&&vn>0&&Re<=0&&(It.lr=new W(Rt,Ht))}return It}function K(it,z){return!it.every(function(E){return!function H(it,z){for(var E=1,Ct=z.length;E0)return!0}return!1}},76767:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(4068),x=o(98237),v=o(33858),_=function l(h,m,u){this.id=h,this.rect=m,this.children=u,this.leaf=void 0===u||0===u.length};I.NodeWrapper=_;var f=function l(h,m,u,g,C){void 0===g&&(g=null),void 0===C&&(C=null),this.id=h,this.x=m,this.y=u,this.node=g,this.line=C};I.Vert=f;var t=function(){function l(h,m){this.s=h,this.t=m;var u=l.findMatch(h,m),g=m.slice(0).reverse(),C=l.findMatch(h,g);u.length>=C.length?(this.length=u.length,this.si=u.si,this.ti=u.ti,this.reversed=!1):(this.length=C.length,this.si=C.si,this.ti=m.length-C.ti-C.length,this.reversed=!0)}return l.findMatch=function(h,m){for(var u=h.length,g=m.length,C={length:0,si:-1,ti:-1},A=new Array(u),k=0;kC.length&&(C.length=O,C.si=k-O+1,C.ti=F-O+1)}else A[k][F]=0}return C},l.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},l}();I.LongestCommonSubsequence=t;var p=function(){function l(h,m,u){var g=this;void 0===u&&(u=12),this.originalnodes=h,this.groupPadding=u,this.leaves=null,this.nodes=h.map(function(nt,ut){return new _(ut,m.getBounds(nt),m.getChildren(nt))}),this.leaves=this.nodes.filter(function(nt){return nt.leaf}),this.groups=this.nodes.filter(function(nt){return!nt.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(nt){return nt.children.forEach(function(ut){return g.nodes[ut].parent=nt})}),this.root={children:[]},this.nodes.forEach(function(nt){void 0===nt.parent&&(nt.parent=g.root,g.root.children.push(nt.id)),nt.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(nt,ut){return g.getDepth(nt)-g.getDepth(ut)}),this.backToFront.slice(0).reverse().filter(function(nt){return!nt.leaf}).forEach(function(nt){var ut=c.Rectangle.empty();nt.children.forEach(function(J){return ut=ut.union(g.nodes[J].rect)}),nt.rect=ut.inflate(g.groupPadding)});var A=this.midPoints(this.cols.map(function(nt){return nt.pos})),k=this.midPoints(this.rows.map(function(nt){return nt.pos})),F=A[0],O=A[A.length-1],R=k[0],U=k[k.length-1],V=this.rows.map(function(nt){return{x1:F,x2:O,y1:nt.pos,y2:nt.pos}}).concat(k.map(function(nt){return{x1:F,x2:O,y1:nt,y2:nt}})),W=this.cols.map(function(nt){return{x1:nt.pos,x2:nt.pos,y1:R,y2:U}}).concat(A.map(function(nt){return{x1:nt,x2:nt,y1:R,y2:U}})),rt=V.concat(W);rt.forEach(function(nt){return nt.verts=[]}),this.verts=[],this.edges=[],V.forEach(function(nt){return W.forEach(function(ut){var J=new f(g.verts.length,ut.x1,nt.y1);nt.verts.push(J),ut.verts.push(J),g.verts.push(J);for(var tt=g.backToFront.length;tt-- >0;){var Q=g.backToFront[tt],at=Q.rect,H=Math.abs(J.x-at.cx()),K=Math.abs(J.y-at.cy());if(H0;){var g=u.filter(function(A){return A.rect["overlap"+h.toUpperCase()](u[0].rect)}),C={nodes:g,pos:this.avg(g.map(function(A){return A.rect["c"+h]()}))};m.push(C),C.nodes.forEach(function(A){return u.splice(u.indexOf(A),1)})}return m.sort(function(A,k){return A.pos-k.pos}),m},l.prototype.getDepth=function(h){for(var m=0;h.parent!==this.root;)m++,h=h.parent;return m},l.prototype.midPoints=function(h){for(var m=h[1]-h[0],u=[h[0]-m/2],g=1;g.1)&&R.push(U={pos:F[0][m],segments:[]}),U.segments.push(F)}return R},l.nudgeSegs=function(h,m,u,g,C,A){var k=g.length;if(!(k<=1)){for(var F=g.map(function(Q){return new x.Variable(Q[0][h])}),O=[],R=0;R=0&&O.push(new x.Constraint(F[ut],F[J],A))}new x.Solver(F,O).solve(),F.forEach(function(Q,at){var H=g[at],K=Q.position();H[0][h]=H[1][h]=K;var lt=u[H.edgeid];H.i>0&&(lt[H.i-1][1][h]=K),H.iMath.PI||C<-Math.PI)&&(C=g-u),C},l.isLeft=function(h,m,u){return(m.x-h.x)*(u.y-h.y)-(m.y-h.y)*(u.x-h.x)<=0},l.getOrder=function(h){for(var m={},u=0;u=C.length||k.ti+k.length>=A.length)){m.push({l:u,r:g});continue}k.si+k.length>=C.length||k.ti+k.length>=A.length?(F=C[k.si+1],R=C[k.si-1],O=A[k.ti-1]):(F=C[k.si+k.length-2],O=C[k.si+k.length],R=A[k.ti+k.length]),l.isLeft(F,O,R)?m.push({l:g,r:u}):m.push({l:u,r:g})}}return l.getOrder(m)},l.makeSegments=function(h){function m(O){return{x:O.x,y:O.y}}for(var g=[],C=m(h[0]),A=1;A1&&it>1?1e3:0}).reverse().map(function(J){return u.verts[J]});return ut.push(this.nodes[C.id].ports[0]),ut.filter(function(J,tt){return!(tt0&&J.node===C&&ut[tt-1].node===C)})},l.getRoutePath=function(h,m,u,g){var k,F,O,lt,it,C={routepath:"M "+h[0][0].x+" "+h[0][0].y+" ",arrowpath:""};if(h.length>1)for(var A=0;A0?F-=R/Math.abs(R)*m:O-=U/Math.abs(U)*m,C.routepath+="L "+F+" "+O+" ";var V=h[A+1],W=V[0].x,rt=V[0].y;R=V[1].x-W,U=V[1].y-rt;var tt,Q,J=l.angleBetween2Lines(k,V)<0?1:0;Math.abs(R)>0?(tt=W+R/Math.abs(R)*m,Q=rt):(tt=W,Q=rt+U/Math.abs(U)*m);var at=Math.abs(tt-F),H=Math.abs(Q-O);C.routepath+="A "+at+" "+H+" 0 0 "+J+" "+tt+" "+Q+" "}else{var K=[F,O];Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1])}}else R=(F=(k=h[0])[1].x)-k[0].x,U=(O=k[1].y)-k[0].y,K=[F,O],Math.abs(R)>0?(lt=[F-=R/Math.abs(R)*g,O+u],it=[F,O-u]):(lt=[F+u,O-=U/Math.abs(U)*g],it=[F-u,O]),C.routepath+="L "+F+" "+O+" ",g>0&&(C.arrowpath="M "+K[0]+" "+K[1]+" L "+lt[0]+" "+lt[1]+" L "+it[0]+" "+it[1]);return C},l}();I.GridRouter=p},30345:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o_GOLDEN_SECTION=(1+Math.sqrt(5))/2;I.applyPacking=function c(v,_,f,A,C,l){void 0===C&&(C=1),void 0===l&&(l=!0);var u=_,g=f,k=(C=void 0!==C?C:1,A=void 0!==A?A:0,0),F=0,O=0,R=0,U=[];function nt(Q,at){U=[],k=0,F=0,R=0;for(var H=0;H=Q.height&&U[K].x+U[K].width+Q.width+10-at<=1e-4){H=U[K];break}U.push(Q),void 0!==H?(Q.x=H.x+H.width+10,Q.y=H.bottom,Q.space_left=Q.height,Q.bottom=Q.y,H.space_left-=Q.height+10,H.bottom+=Q.height+10):(Q.y=R,R+=Q.height+10,Q.x=0,Q.bottom=Q.y,Q.space_left=Q.height),Q.y+Q.height-F>-1e-4&&(F=Q.y+Q.height-0),Q.x+Q.width-k>-1e-4&&(k=Q.x+Q.width-0)}0!=v.length&&(function V(Q){Q.forEach(function(H){!function at(H){var K=Number.MAX_VALUE,lt=Number.MAX_VALUE,it=0,z=0;H.array.forEach(function(E){var Ct=void 0!==E.width?E.width:A,It=void 0!==E.height?E.height:A;Ct/=2,It/=2,it=Math.max(E.x+Ct,it),K=Math.min(E.x-Ct,K),z=Math.max(E.y+It,z),lt=Math.min(E.y-It,lt)}),H.width=it-K,H.height=z-lt}(H)})}(v),function rt(Q,at){var H=Number.POSITIVE_INFINITY,K=0;Q.sort(function(vt,ft){return ft.height-vt.height});for(var lt=ne=O=Q.reduce(function(vt,ft){return vt.widthO||Ht>1e-4;){if(1!=It){var ne=it-(it-lt)/o_GOLDEN_SECTION;E=nt(Q,ne)}if(0!=It){var Ut=lt+(it-lt)/o_GOLDEN_SECTION;Ct=nt(Q,Ut)}if(Rt=Math.abs(ne-Ut),Ht=Math.abs(E-Ct),ECt?(lt=ne,ne=Ut,E=Ct,It=1):(it=Ut,Ut=ne,Ct=E,It=0),z++>100)break}nt(Q,K)}(v),l&&function W(Q){Q.forEach(function(at){var H={x:0,y:0};at.array.forEach(function(it){H.x+=it.x,H.y+=it.y}),H.x/=at.array.length,H.y/=at.array.length;var lt_x=at.x-(H.x-at.width/2)+u/2-k/2,lt_y=at.y-(H.y-at.height/2)+g/2-F/2;at.array.forEach(function(it){it.x+=lt_x,it.y+=lt_y})})}(v))},I.separateGraphs=function x(v,_){for(var f={},t={},p=[],l=0,h=0;h<_.length;h++){var m=_[h],u=m.source,g=m.target;t[u.index]?t[u.index].push(g):t[u.index]=[g],t[g.index]?t[g.index].push(u):t[g.index]=[u]}for(h=0;h{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var l,u,c=o(33900),x=o(58802),v=o(91786),_=o(4068),f=o(33858),t=o(30225),p=o(30345);function h(u){return void 0!==u.leaves||void 0!==u.groups}(u=l=I.EventType||(I.EventType={}))[u.start=0]="start",u[u.tick=1]="tick",u[u.end=2]="end";var m=function(){function u(){var g=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:u.getSourceIndex,getTargetIndex:u.getTargetIndex,setLength:u.setLinkLength,getType:function(C){return"function"==typeof g._linkType?g._linkType(C):0}}}return u.prototype.on=function(g,C){return this.event||(this.event={}),"string"==typeof g?this.event[l[g]]=C:this.event[g]=C,this},u.prototype.trigger=function(g){this.event&&void 0!==this.event[g.type]&&this.event[g.type](g)},u.prototype.kick=function(){for(;!this.tick(););},u.prototype.tick=function(){if(this._alpha0){var C=0;this._links.forEach(function(k){C=Math.max(C,k.source,k.target)}),this._nodes=new Array(++C);for(var A=0;A0?g:0:g>0&&(this._running||(this._running=!0,this.trigger({type:l.start,alpha:this._alpha=g}),this.kick())),this):this._alpha},u.prototype.getLinkLength=function(g){return"function"==typeof this._linkDistance?+this._linkDistance(g):this._linkDistance},u.setLinkLength=function(g,C){g.length=C},u.prototype.getLinkType=function(g){return"function"==typeof this._linkType?this._linkType(g):0},u.prototype.symmetricDiffLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.symmetricDiffLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.jaccardLinkLengths=function(g,C){var A=this;return void 0===C&&(C=1),this.linkDistance(function(k){return g*k.length}),this._linkLengthCalculator=function(){return x.jaccardLinkLengths(A._links,A.linkAccessor,C)},this},u.prototype.start=function(g,C,A,k,F,O){var R=this;void 0===g&&(g=0),void 0===C&&(C=0),void 0===A&&(A=0),void 0===k&&(k=0),void 0===F&&(F=!0),void 0===O&&(O=!0);var K,W=this.nodes().length,rt=W+2*this._groups.length,ut=this._canvasSize[0],J=this._canvasSize[1],tt=new Array(rt),Q=new Array(rt),at=null,H=this._avoidOverlaps;this._nodes.forEach(function(Rt,Ht){Rt.index=Ht,void 0===Rt.x&&(Rt.x=ut/2,Rt.y=J/2),tt[Ht]=Rt.x,Q[Ht]=Rt.y}),this._linkLengthCalculator&&this._linkLengthCalculator(),this._distanceMatrix?K=this._distanceMatrix:(K=new f.Calculator(rt,this._links,u.getSourceIndex,u.getTargetIndex,function(Rt){return R.getLinkLength(Rt)}).DistanceMatrix(),at=v.Descent.createSquareMatrix(rt,function(){return 2}),this._links.forEach(function(Rt){"number"==typeof Rt.source&&(Rt.source=R._nodes[Rt.source]),"number"==typeof Rt.target&&(Rt.target=R._nodes[Rt.target])}),this._links.forEach(function(Rt){var Ht=u.getSourceIndex(Rt),ne=u.getTargetIndex(Rt);at[Ht][ne]=at[ne][Ht]=Rt.weight||1}));var lt=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return K[Rt][Ht]});if(this._rootGroup&&void 0!==this._rootGroup.groups){var U=W;this._groups.forEach(function(Ht){(function(Ht,ne,Ut,vt){at[Ht][ne]=at[ne][Ht]=Ut,lt[Ht][ne]=lt[ne][Ht]=.1})(U,U+1,R._groupCompactness),tt[U]=0,Q[U++]=0,tt[U]=0,Q[U++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var z=this._constraints||[];for(this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,z=z.concat(x.generateDirectedEdgeConstraints(W,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new v.Descent([tt,Q],lt),this._descent.locks.clear(),U=0;U0&&(this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z).projectFunctions()),this._descent.run(C),this.separateOverlappingComponents(ut,J,O),this.avoidOverlaps(H),H&&(this._nodes.forEach(function(Rt,Ht){Rt.x=tt[Ht],Rt.y=Q[Ht]}),this._descent.project=new _.Projection(this._nodes,this._groups,this._rootGroup,z,!0).projectFunctions(),this._nodes.forEach(function(Rt,Ht){tt[Ht]=Rt.x,Q[Ht]=Rt.y})),this._descent.G=at,this._descent.run(A),k){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=W,this._descent.scaleSnapByMaxH=W!=rt;var It=v.Descent.createSquareMatrix(rt,function(Rt,Ht){return Rt>=W||Ht>=W?at[Rt][Ht]:0});this._descent.G=It,this._descent.run(k)}return this.updateNodePositions(),this.separateOverlappingComponents(ut,J,O),F?this.resume():this},u.prototype.initialLayout=function(g,C,A){if(this._groups.length>0&&g>0){var k=this._nodes.length,F=this._links.map(function(R){return{source:R.source.index,target:R.target.index}}),O=this._nodes.map(function(R){return{index:R.index}});this._groups.forEach(function(R,U){O.push({index:R.index=k+U})}),this._groups.forEach(function(R,U){void 0!==R.leaves&&R.leaves.forEach(function(V){return F.push({source:R.index,target:V.index})}),void 0!==R.groups&&R.groups.forEach(function(V){return F.push({source:R.index,target:V.index})})}),(new u).size(this.size()).nodes(O).links(F).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(g,0,0,0,!1),this._nodes.forEach(function(R){C[R.index]=O[R.index].x,A[R.index]=O[R.index].y})}else this._descent.run(g)},u.prototype.separateOverlappingComponents=function(g,C,A){var k=this;if(void 0===A&&(A=!0),!this._distanceMatrix&&this._handleDisconnected){var F=this._descent.x[0],O=this._descent.x[1];this._nodes.forEach(function(U,V){U.x=F[V],U.y=O[V]});var R=p.separateGraphs(this._nodes,this._links);p.applyPacking(R,g,C,this._defaultNodeSize,1,A),this._nodes.forEach(function(U,V){k._descent.x[0][V]=U.x,k._descent.x[1][V]=U.y,U.bounds&&(U.bounds.setXCentre(U.x),U.bounds.setYCentre(U.y))})}},u.prototype.resume=function(){return this.alpha(.1)},u.prototype.stop=function(){return this.alpha(0)},u.prototype.prepareEdgeRouting=function(g){void 0===g&&(g=0),this._visibilityGraph=new t.TangentVisibilityGraph(this._nodes.map(function(C){return C.bounds.inflate(-g).vertices()}))},u.prototype.routeEdge=function(g,C,A){void 0===C&&(C=5);var k=[],F=new t.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),O={x:g.source.x,y:g.source.y},R={x:g.target.x,y:g.target.y},U=F.addPoint(O,g.source.index),V=F.addPoint(R,g.target.index);F.addEdgeIfVisible(O,R,g.source.index,g.target.index),void 0!==A&&A(F);var J=new f.Calculator(F.V.length,F.E,function(lt){return lt.source.id},function(lt){return lt.target.id},function(lt){return lt.length()}).PathFromNodeToNode(U.id,V.id);if(1===J.length||J.length===F.V.length){var tt=_.makeEdgeBetween(g.source.innerBounds,g.target.innerBounds,C);k=[tt.sourceIntersection,tt.arrowStart]}else{for(var Q=J.length-2,at=F.V[J[Q]].p,H=F.V[J[0]].p,K=(k=[g.source.innerBounds.rayIntersection(at.x,at.y)],Q);K>=0;--K)k.push(F.V[J[K]].p);k.push(_.makeEdgeTo(H,g.target.innerBounds,C))}return k},u.getSourceIndex=function(g){return"number"==typeof g.source?g.source:g.source.index},u.getTargetIndex=function(g){return"number"==typeof g.target?g.target:g.target.index},u.linkId=function(g){return u.getSourceIndex(g)+"-"+u.getTargetIndex(g)},u.dragStart=function(g){h(g)?u.storeOffset(g,u.dragOrigin(g)):(u.stopNode(g),g.fixed|=2)},u.stopNode=function(g){g.px=g.x,g.py=g.y},u.storeOffset=function(g,C){void 0!==g.leaves&&g.leaves.forEach(function(A){A.fixed|=2,u.stopNode(A),A._dragGroupOffsetX=A.x-C.x,A._dragGroupOffsetY=A.y-C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.storeOffset(A,C)})},u.dragOrigin=function(g){return h(g)?{x:g.bounds.cx(),y:g.bounds.cy()}:g},u.drag=function(g,C){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(A){g.bounds.setXCentre(C.x),g.bounds.setYCentre(C.y),A.px=A._dragGroupOffsetX+C.x,A.py=A._dragGroupOffsetY+C.y}),void 0!==g.groups&&g.groups.forEach(function(A){return u.drag(A,C)})):(g.px=C.x,g.py=C.y)},u.dragEnd=function(g){h(g)?(void 0!==g.leaves&&g.leaves.forEach(function(C){u.dragEnd(C),delete C._dragGroupOffsetX,delete C._dragGroupOffsetY}),void 0!==g.groups&&g.groups.forEach(u.dragEnd)):g.fixed&=-7},u.mouseOver=function(g){g.fixed|=4,g.px=g.x,g.py=g.y},u.mouseOut=function(g){g.fixed&=-5},u}();I.Layout=m},86461:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(33858),x=o(91786),v=o(4068),_=o(58802),f=function(){function h(m,u){this.source=m,this.target=u}return h.prototype.actualLength=function(m){var u=this;return Math.sqrt(m.reduce(function(g,C){var A=C[u.target]-C[u.source];return g+A*A},0))},h}();I.Link3D=f,I.Node3D=function h(m,u,g){void 0===m&&(m=0),void 0===u&&(u=0),void 0===g&&(g=0),this.x=m,this.y=u,this.z=g};var p=function(){function h(m,u,g){var C=this;void 0===g&&(g=1),this.nodes=m,this.links=u,this.idealLinkLength=g,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(h.k);for(var A=0;A{"use strict";function o(l,h){var m={};for(var u in l)m[u]={};for(var u in h)m[u]={};return Object.keys(m).length}function c(l,h){var m=0;for(var u in l)void 0!==h[u]&&++m;return m}function v(l,h,m,u){var g=function x(l,h){var m={},u=function(g,C){void 0===m[g]&&(m[g]={}),m[g][C]={}};return l.forEach(function(g){var C=h.getSourceIndex(g),A=h.getTargetIndex(g);u(C,A),u(A,C)}),m}(l,u);l.forEach(function(C){var A=g[u.getSourceIndex(C)],k=g[u.getTargetIndex(C)];u.setLength(C,1+h*m(A,k))})}function p(l,h,m){var u=[],g=0,C=[],A=[];function k(J){J.index=J.lowlink=g++,C.push(J),J.onStack=!0;for(var tt=0,Q=J.out;tt{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function h(m,u,g){this.source=m,this.target=u,this.type=g};I.PowerEdge=o;var c=function(){function h(m,u,g,C){var A=this;if(this.linkAccessor=g,this.modules=new Array(m),this.roots=[],C)this.initModulesFromGroup(C);else{this.roots.push(new f);for(var k=0;k=this.R))return this.merge(g.a,g.b,m),!0}},h.prototype.nEdges=function(m,u){var g=m.incoming.intersection(u.incoming),C=m.outgoing.intersection(u.outgoing);return this.R-g.count()-C.count()},h.prototype.getGroupHierarchy=function(m){var u=this,g=[];return x(this.roots[0],{},g),this.allEdges().forEach(function(k){var F=u.modules[k.source],O=u.modules[k.target];m.push(new o(void 0===F.gid?k.source:g[F.gid],void 0===O.gid?k.target:g[O.gid],k.type))}),g},h.prototype.allEdges=function(){var m=[];return h.getEdges(this.roots[0],m),m},h.getEdges=function(m,u){m.forAll(function(g){g.getEdges(u),h.getEdges(g.children,u)})},h}();function x(h,m,u){h.forAll(function(g){if(g.isLeaf())m.leaves||(m.leaves=[]),m.leaves.push(g.id);else{var C=m;if(g.gid=u.length,!g.isIsland()||g.isPredefined()){if(C={id:g.gid},g.isPredefined())for(var A in g.definition)C[A]=g.definition[A];m.groups||(m.groups=[]),m.groups.push(g.gid),u.push(C)}x(g.children,C,u)}})}I.Configuration=c;var v=function(){function h(m,u,g,C,A){void 0===u&&(u=new t),void 0===g&&(g=new t),void 0===C&&(C=new f),this.id=m,this.outgoing=u,this.incoming=g,this.children=C,this.definition=A}return h.prototype.getEdges=function(m){var u=this;this.outgoing.forAll(function(g,C){g.forAll(function(A){m.push(new o(u.id,A.id,C))})})},h.prototype.isLeaf=function(){return 0===this.children.count()},h.prototype.isIsland=function(){return 0===this.outgoing.count()&&0===this.incoming.count()},h.prototype.isPredefined=function(){return void 0!==this.definition},h}();I.Module=v;var f=function(){function h(){this.table={}}return h.prototype.count=function(){return Object.keys(this.table).length},h.prototype.intersection=function(m){var u=new h;return u.table=function _(h,m){var u={};for(var g in h)g in m&&(u[g]=h[g]);return u}(this.table,m.table),u},h.prototype.intersectionCount=function(m){return this.intersection(m).count()},h.prototype.contains=function(m){return m in this.table},h.prototype.add=function(m){this.table[m.id]=m},h.prototype.remove=function(m){delete this.table[m.id]},h.prototype.forAll=function(m){for(var u in this.table)m(this.table[u])},h.prototype.modules=function(){var m=[];return this.forAll(function(u){u.isPredefined()||m.push(u)}),m},h}();I.ModuleSet=f;var t=function(){function h(){this.sets={},this.n=0}return h.prototype.count=function(){return this.n},h.prototype.contains=function(m){var u=!1;return this.forAllModules(function(g){!u&&g.id==m&&(u=!0)}),u},h.prototype.add=function(m,u){(m in this.sets?this.sets[m]:this.sets[m]=new f).add(u),++this.n},h.prototype.remove=function(m,u){var g=this.sets[m];g.remove(u),0===g.count()&&delete this.sets[m],--this.n},h.prototype.forAll=function(m){for(var u in this.sets)m(this.sets[u],Number(u))},h.prototype.forAllModules=function(m){this.forAll(function(u,g){return u.forAll(m)})},h.prototype.intersection=function(m){var u=new h;return this.forAll(function(g,C){if(C in m.sets){var A=g.intersection(m.sets[C]),k=A.count();k>0&&(u.sets[C]=A,u.n+=k)}}),u},h}();I.LinkSets=t,I.getGroups=function l(h,m,u,g){for(var A=new c(h.length,m,u,g);A.greedyMerge(););var k=[],F=A.getGroupHierarchy(k);return k.forEach(function(O){var R=function(U){var V=O[U];"number"==typeof V&&(O[U]=h[V])};R("source"),R("target")}),{groups:F,powerEdges:k}}},88866:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function x(v){this.elem=v,this.subheaps=[]}return x.prototype.toString=function(v){for(var _="",f=!1,t=0;t0)}return null}}return f.prototype.clear=function(){this._root=null,this.size=0},f.prototype.find=function(t){for(var p=this._root;null!==p;){var l=this._comparator(t,p.data);if(0===l)return p.data;p=p.get_child(l>0)}return null},f.prototype.lowerBound=function(t){return this._bound(t,this._comparator)},f.prototype.upperBound=function(t){var p=this._comparator;return this._bound(t,function l(h,m){return p(m,h)})},f.prototype.min=function(){var t=this._root;if(null===t)return null;for(;null!==t.left;)t=t.left;return t.data},f.prototype.max=function(){var t=this._root;if(null===t)return null;for(;null!==t.right;)t=t.right;return t.data},f.prototype.iterator=function(){return new x(this)},f.prototype.each=function(t){for(var l,p=this.iterator();null!==(l=p.next());)t(l)},f.prototype.reach=function(t){for(var l,p=this.iterator();null!==(l=p.prev());)t(l)},f.prototype._bound=function(t,p){for(var l=this._root,h=this.iterator();null!==l;){var m=this._comparator(t,l.data);if(0===m)return h._cursor=l,h;h._ancestors.push(l),l=l.get_child(m>0)}for(var u=h._ancestors.length-1;u>=0;--u)if(p(t,(l=h._ancestors[u]).data)>0)return h._cursor=l,h._ancestors.length=u,h;return h._ancestors.length=0,h},f}();I.TreeBase=c;var x=function(){function f(t){this._tree=t,this._ancestors=[],this._cursor=null}return f.prototype.data=function(){return null!==this._cursor?this._cursor.data:null},f.prototype.next=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._minNode(t)}else if(null===this._cursor.right){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.right===p)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return null!==this._cursor?this._cursor.data:null},f.prototype.prev=function(){if(null===this._cursor){var t=this._tree._root;null!==t&&this._maxNode(t)}else if(null===this._cursor.left){var p;do{if(p=this._cursor,!this._ancestors.length){this._cursor=null;break}this._cursor=this._ancestors.pop()}while(this._cursor.left===p)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return null!==this._cursor?this._cursor.data:null},f.prototype._minNode=function(t){for(;null!==t.left;)this._ancestors.push(t),t=t.left;this._cursor=t},f.prototype._maxNode=function(t){for(;null!==t.right;)this._ancestors.push(t),t=t.right;this._cursor=t},f}();I.Iterator=x;var v=function(){function f(t){this.data=t,this.left=null,this.right=null,this.red=!0}return f.prototype.get_child=function(t){return t?this.right:this.left},f.prototype.set_child=function(t,p){t?this.right=p:this.left=p},f}(),_=function(f){function t(p){var l=f.call(this)||this;return l._root=null,l._comparator=p,l.size=0,l}return o(t,f),t.prototype.insert=function(p){var l=!1;if(null===this._root)this._root=new v(p),l=!0,this.size++;else{var h=new v(void 0),m=!1,u=!1,g=null,C=h,A=null,k=this._root;for(C.right=this._root;;){if(null===k?(k=new v(p),A.set_child(m,k),l=!0,this.size++):t.is_red(k.left)&&t.is_red(k.right)&&(k.red=!0,k.left.red=!1,k.right.red=!1),t.is_red(k)&&t.is_red(A)){var F=C.right===g;k===A.get_child(u)?C.set_child(F,t.single_rotate(g,!u)):C.set_child(F,t.double_rotate(g,!u))}var O=this._comparator(k.data,p);if(0===O)break;u=m,null!==g&&(C=g),g=A,A=k,k=k.get_child(m=O<0)}this._root=h.right}return this._root.red=!1,l},t.prototype.remove=function(p){if(null===this._root)return!1;var l=new v(void 0),h=l;h.right=this._root;for(var m=null,u=null,g=null,C=!0;null!==h.get_child(C);){var A=C;u=m,m=h,h=h.get_child(C);var k=this._comparator(p,h.data);if(C=k>0,0===k&&(g=h),!t.is_red(h)&&!t.is_red(h.get_child(C)))if(t.is_red(h.get_child(!C))){var F=t.single_rotate(h,C);m.set_child(A,F),m=F}else if(!t.is_red(h.get_child(!C))){var O=m.get_child(!A);if(null!==O)if(t.is_red(O.get_child(!A))||t.is_red(O.get_child(A))){var R=u.right===m;t.is_red(O.get_child(A))?u.set_child(R,t.double_rotate(m,A)):t.is_red(O.get_child(!A))&&u.set_child(R,t.single_rotate(m,A));var U=u.get_child(R);U.red=!0,h.red=!0,U.left.red=!1,U.right.red=!1}else m.red=!1,O.red=!0,h.red=!0}}return null!==g&&(g.data=h.data,m.set_child(m.right===h,h.get_child(null===h.left)),this.size--),this._root=l.right,null!==this._root&&(this._root.red=!1),null!==g},t.is_red=function(p){return null!==p&&p.red},t.single_rotate=function(p,l){var h=p.get_child(!l);return p.set_child(!l,h.get_child(l)),h.set_child(l,p),p.red=!0,h.red=!1,h},t.double_rotate=function(p,l){return p.set_child(!l,t.single_rotate(p.get_child(!l),!l)),t.single_rotate(p,l)},t}(c);I.RBTree=_},4068:function(w,I,o){"use strict";var J,c=this&&this.__extends||(J=function(tt,Q){return(J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(at,H){at.__proto__=H}||function(at,H){for(var K in H)H.hasOwnProperty(K)&&(at[K]=H[K])})(tt,Q)},function(tt,Q){function at(){this.constructor=tt}J(tt,Q),tt.prototype=null===Q?Object.create(Q):(at.prototype=Q.prototype,new at)});Object.defineProperty(I,"__esModule",{value:!0});var x=o(98237),v=o(94655);function _(J){return J.bounds=void 0!==J.leaves?J.leaves.reduce(function(tt,Q){return Q.bounds.union(tt)},f.empty()):f.empty(),void 0!==J.groups&&(J.bounds=J.groups.reduce(function(tt,Q){return _(Q).union(tt)},J.bounds)),J.bounds=J.bounds.inflate(J.padding),J.bounds}I.computeGroupBounds=_;var f=function(){function J(tt,Q,at,H){this.x=tt,this.X=Q,this.y=at,this.Y=H}return J.empty=function(){return new J(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},J.prototype.cx=function(){return(this.x+this.X)/2},J.prototype.cy=function(){return(this.y+this.Y)/2},J.prototype.overlapX=function(tt){var Q=this.cx(),at=tt.cx();return Q<=at&&tt.x0?at[0]:null},J.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},J.lineIntersection=function(tt,Q,at,H,K,lt,it,z){var E=at-tt,Ct=it-K,It=H-Q,Rt=z-lt,Ht=Rt*E-Ct*It;if(0==Ht)return null;var ne=tt-K,Ut=Q-lt,ft=(Ct*Ut-Rt*ne)/Ht,Qt=(E*Ut-It*ne)/Ht;return ft>=0&&ft<=1&&Qt>=0&&Qt<=1?{x:tt+ft*E,y:Q+ft*It}:null},J.prototype.inflate=function(tt){return new J(this.x-tt,this.X+tt,this.y-tt,this.Y+tt)},J}();I.Rectangle=f,I.makeEdgeBetween=function t(J,tt,Q){var at=J.rayIntersection(tt.cx(),tt.cy())||{x:J.cx(),y:J.cy()},H=tt.rayIntersection(J.cx(),J.cy())||{x:tt.cx(),y:tt.cy()},K=H.x-at.x,lt=H.y-at.y,it=Math.sqrt(K*K+lt*lt),z=it-Q;return{sourceIntersection:at,targetIntersection:H,arrowStart:{x:at.x+z*K/it,y:at.y+z*lt/it}}},I.makeEdgeTo=function p(J,tt,Q){var at=tt.rayIntersection(J.x,J.y);at||(at={x:tt.cx(),y:tt.cy()});var H=at.x-J.x,K=at.y-J.y,lt=Math.sqrt(H*H+K*K);return{x:at.x-Q*H/lt,y:at.y-Q*K/lt}};var l=function J(tt,Q,at){this.v=tt,this.r=Q,this.pos=at,this.prev=u(),this.next=u()},h=function J(tt,Q,at){this.isOpen=tt,this.v=Q,this.pos=at};function m(J,tt){return J.pos>tt.pos?1:J.pos0&&(J[at].insert(K),K[H].insert(J))};Q("next","prev"),Q("prev","next")}};function A(J,tt,Q,at){void 0===at&&(at=!1);var H=J.padding,K=void 0!==J.groups?J.groups.length:0,lt=void 0!==J.leaves?J.leaves.length:0,it=K?J.groups.reduce(function(ge,ye){return ge.concat(A(ye,tt,Q,!0))},[]):[],z=(at?2:0)+lt+K,E=new Array(z),Ct=new Array(z),It=0,Rt=function(ge,ye){Ct[It]=ge,E[It++]=ye};if(at){var Ht=J.bounds,ne=tt.getCentre(Ht),Ut=tt.getSize(Ht)/2,vt=tt.getOpen(Ht),ft=tt.getClose(Ht),Nt=ne-Ut+H/2,Qt=ne+Ut-H/2;J.minVar.desiredPosition=Nt,Rt(tt.makeRect(vt,ft,Nt,H),J.minVar),J.maxVar.desiredPosition=Qt,Rt(tt.makeRect(vt,ft,Qt,H),J.maxVar)}lt&&J.leaves.forEach(function(ge){return Rt(ge.bounds,ge.variable)}),K&&J.groups.forEach(function(ge){var ye=ge.bounds;Rt(tt.makeRect(tt.getOpen(ye),tt.getClose(ye),tt.getCentre(ye),tt.getSize(ye)),ge.minVar)});var me=k(Ct,E,tt,Q);return K&&(E.forEach(function(ge){ge.cOut=[],ge.cIn=[]}),me.forEach(function(ge){ge.left.cOut.push(ge),ge.right.cIn.push(ge)}),J.groups.forEach(function(ge){var ye=(ge.padding-tt.getSize(ge.bounds))/2;ge.minVar.cIn.forEach(function(Be){return Be.gap+=ye}),ge.minVar.cOut.forEach(function(Be){Be.left=ge.maxVar,Be.gap+=ye})})),it.concat(me)}function k(J,tt,Q,at){var H,K=J.length,lt=2*K;console.assert(tt.length>=K);var it=new Array(lt);for(H=0;Hit[at]&&(it[at]=z)}lt=it})}},J.prototype.createAlignment=function(tt){var Q=this,at=this.nodes[tt.offsets[0].node].variable;this.makeFeasible(tt);var H="x"===tt.axis?this.xConstraints:this.yConstraints;tt.offsets.slice(1).forEach(function(K){H.push(new x.Constraint(at,Q.nodes[K.node].variable,K.offset,!0))})},J.prototype.createConstraints=function(tt){var Q=this,at=function(H){return void 0===H.type||"separation"===H.type};this.xConstraints=tt.filter(function(H){return"x"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),this.yConstraints=tt.filter(function(H){return"y"===H.axis&&at(H)}).map(function(H){return Q.createSeparation(H)}),tt.filter(function(H){return"alignment"===H.type}).forEach(function(H){return Q.createAlignment(H)})},J.prototype.setupVariablesAndBounds=function(tt,Q,at,H){this.nodes.forEach(function(K,lt){K.fixed?(K.variable.weight=K.fixedWeight?K.fixedWeight:1e3,at[lt]=H(K)):K.variable.weight=1;var it=(K.width||0)/2,z=(K.height||0)/2,E=tt[lt],Ct=Q[lt];K.bounds=new f(E-it,E+it,Ct-z,Ct+z)})},J.prototype.xProject=function(tt,Q,at){!this.rootGroup&&!this.avoidOverlaps&&!this.xConstraints||this.project(tt,Q,tt,at,function(H){return H.px},this.xConstraints,V,function(H){return H.bounds.setXCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.x=K-it,H.bounds.X=lt+it})},J.prototype.yProject=function(tt,Q,at){!this.rootGroup&&!this.yConstraints||this.project(tt,Q,Q,at,function(H){return H.py},this.yConstraints,W,function(H){return H.bounds.setYCentre(at[H.variable.index]=H.variable.position())},function(H){var K=at[H.minVar.index]=H.minVar.position(),lt=at[H.maxVar.index]=H.maxVar.position(),it=H.padding/2;H.bounds.y=K-it,H.bounds.Y=lt+it})},J.prototype.projectFunctions=function(){var tt=this;return[function(Q,at,H){return tt.xProject(Q,at,H)},function(Q,at,H){return tt.yProject(Q,at,H)}]},J.prototype.project=function(tt,Q,at,H,K,lt,it,z,E){this.setupVariablesAndBounds(tt,Q,H,K),this.rootGroup&&this.avoidOverlaps&&(_(this.rootGroup),lt=lt.concat(it(this.rootGroup))),this.solve(this.variables,lt,at,H),this.nodes.forEach(z),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(E),_(this.rootGroup))},J.prototype.solve=function(tt,Q,at,H){var K=new x.Solver(tt,Q);K.setStartingPositions(at),K.setDesiredPositions(H),K.solve()},J}();I.Projection=ut},33858:(w,I,o)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var c=o(88866),x=function t(p,l){this.id=p,this.distance=l},v=function t(p){this.id=p,this.neighbours=[]},_=function t(p,l,h){this.node=p,this.prev=l,this.d=h},f=function(){function t(p,l,h,m,u){this.n=p,this.es=l,this.neighbours=new Array(this.n);for(var g=this.n;g--;)this.neighbours[g]=new v(g);for(g=this.es.length;g--;){var C=this.es[g],A=h(C),k=m(C),F=u(C);this.neighbours[A].neighbours.push(new x(k,F)),this.neighbours[k].neighbours.push(new x(A,F))}}return t.prototype.DistanceMatrix=function(){for(var p=new Array(this.n),l=0;lO&&(k.d=O,k.prev=C,h.reduceKey(k.q,k,function(U,V){return U.q=V}))}}return u},t}();I.Calculator=f},98237:(w,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var o=function(){function p(l){this.scale=l,this.AB=0,this.AD=0,this.A2=0}return p.prototype.addVariable=function(l){var h=this.scale/l.scale,u=l.weight;this.AB+=u*h*(l.offset/l.scale),this.AD+=u*h*l.desiredPosition,this.A2+=u*h*h},p.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},p}();I.PositionStats=o;var c=function(){function p(l,h,m,u){void 0===u&&(u=!1),this.left=l,this.right=h,this.gap=m,this.equality=u,this.active=!1,this.unsatisfiable=!1,this.left=l,this.right=h,this.gap=m,this.equality=u}return p.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},p}();I.Constraint=c;var x=function(){function p(l,h,m){void 0===h&&(h=1),void 0===m&&(m=1),this.desiredPosition=l,this.weight=h,this.scale=m,this.offset=0}return p.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},p.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},p.prototype.visitNeighbours=function(l,h){var m=function(u,g){return u.active&&l!==g&&h(u,g)};this.cOut.forEach(function(u){return m(u,u.right)}),this.cIn.forEach(function(u){return m(u,u.left)})},p}();I.Variable=x;var v=function(){function p(l){this.vars=[],l.offset=0,this.ps=new o(l.scale),this.addVariable(l)}return p.prototype.addVariable=function(l){l.block=this,this.vars.push(l),this.ps.addVariable(l),this.posn=this.ps.getPosn()},p.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var l=0,h=this.vars.length;l=0?this.inactive.push(l):this.bs.merge(l)}}},p.prototype.solve=function(){this.satisfy();for(var l=Number.MAX_VALUE,h=this.bs.cost();Math.abs(l-h)>1e-4;)this.satisfy(),l=h,h=this.bs.cost();return h},p.LAGRANGIAN_TOLERANCE=-1e-4,p.ZERO_UPPERBOUND=-1e-10,p}();I.Solver=f,I.removeOverlapInOneDimension=function t(p,l,h){for(var m=p.map(function(nt){return new x(nt.desiredCenter)}),u=[],g=p.length,C=0;C{c.r(dt),c.d(dt,{VosModule:()=>jp});var g=c(69808),b=c(11735),Yt=c(25309),z=c(69024),O=c(36769),h=c(32105),m=c(9244),u=c(36908),Z=c(64080),w=c(16074),Jt=c(41656),mt=c(22158),gt=c(7625),t=c(5e3),V=c(77968),p=c(48966),X=c(15003),W=c(4235),f=c(20773),P=c(25245),x=c(29772),I=c(47423),F=c(61283),d=c(51062),Qt=c(45942),kt=c(29218),Bt=c(28764);function Ht(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function $t(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function zt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onSyncDetail()}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function Xt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,zt,6,11,"button",16),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const Wt=function(){return{color:"black"}},Kt=function(i,n){return["/organizations",i,"groups",n]},te=function(i){return["/organizations",i]};function ee(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,jt,3,0,"button",10),t.YNc(11,$t,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,Xt,7,10,"span",2),t.qZA(),t.qZA(),t.qZA(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,Wt)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Kt,e.vo.id,e.group.id)),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,te,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let ie=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R,ut){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=A,this.router=v,this.entityStorageService=R,this.reloadEntityDetail=ut,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[Z.r.GROUP_SYNC_ENABLED,Z.r.GROUP_LAST_SYNC_STATE,Z.r.GROUP_LAST_SYNC_TIMESTAMP,Z.r.GROUP_STRUCTURE_SYNC_ENABLED,Z.r.GROUP_LAST_STRUCTURE_SYNC_STATE,Z.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,gt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,m.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.Bp,e)}editGroup(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,m.bx)(_),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,m.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Jt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(z.V),t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(b.F0),t.Y36(u.fb),t.Y36(X.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ht,1,0,"mat-spinner",1),t.YNc(3,ee,25,32,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,F.A],pipes:[d.X$,Qt.r,kt.J,Bt.F],styles:[""],data:{animation:[O.Ji]}}),i})();function oe(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ne=function(i){return["/admin","users",i]};function ae(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,ne,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function se(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const re=function(){return{color:"black"}},le=function(i,n){return["/organizations",i,"members",n]};function ce(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.qZA(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,ae,2,4,"a",11),t.YNc(15,se,2,1,"span",2),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,re)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,le,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let pe=(()=>{class i{constructor(e,o,a,s,r,_,A){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=A,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([_,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(d.sK),t.Y36(V.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,oe,1,0,"mat-spinner",1),t.YNc(3,ce,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,F.A],pipes:[d.X$],styles:[""],data:{animation:[O.Ji]}}),i})();var Y=c(71135);function ue(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function _e(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let de=(()=>{class i{constructor(e,o,a,s,r,_){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=_,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,ue,1,0,"mat-spinner",0),t.YNc(1,_e,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var me=c(4732),ge=c(81847),he=c(11717),Te=c(50301);function Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Ie(i,n){if(1&i&&(t.TgZ(0,"span"),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,Ae,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,fe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function be(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let ve=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Ie,4,5,"span",0),t.YNc(3,be,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},directives:[g.sg,Te.Kd,g.O5],pipes:[d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function xe(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Ze(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const Ne=function(){return{color:"black"}},Oe=function(i){return["/organizations/",i]};function De(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ce,3,0,"button",10),t.YNc(11,Se,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,xe,1,2,"app-related-vos",13),t.YNc(17,Ze,1,2,"app-related-vos",13),t.qZA(),t.qZA(),t.qZA(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,Ne))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Oe,e.vo.id)),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Me=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=R,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,gt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(a=>{this.vo=a.vo,this.enrichedVo=a,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,m.sF)("vos",this.vo),(0,m.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:w.Eg.VO},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,m.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(he.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(z.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36(X.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ee,1,0,"mat-spinner",1),t.YNc(3,De,19,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,ve,F.A],pipes:[d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[O.Ji]}}),i})();var l=c(32075),Le=c(58964),Re=c(19352),N=c(9224),we=c(60526),ht=c(82322),D=c(98380),Tt=c(69773),At=c(21757),Ue=c(21330),ft=c(62383);function Ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){return t.CHM(e),t.oxw().groupIsSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Pe(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function ye(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function qe(i,n){1&i&&t._UZ(0,"th",17)}function Ve(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function Fe(i,n){1&i&&t._UZ(0,"th",17)}function Ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ye,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeExpiration()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function ke(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,Qe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Be(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,ke,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function He(i,n){1&i&&t._UZ(0,"tr",23)}function je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"table",10),t.ynx(2,11),t.YNc(3,qe,1,0,"th",12),t.YNc(4,Ve,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Fe,1,0,"th",12),t.YNc(7,Be,3,2,"td",15),t.BQk(),t.YNc(8,He,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let $e=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,m.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[Z.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,m.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(w.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,m.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(w.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Ge,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Pe,1,0,"mat-spinner",4),t.YNc(9,ye,3,3,"perun-web-apps-alert",5),t.YNc(10,je,9,2,"div",6),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[N.a8,N.dk,N.n5,N.dn,g.O5,ht.h,f.$g,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,I.lW,P.Hw,l.nj,l.Gk],pipes:[d.X$,Tt.u,At.f,Ue.r,ft.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),ze=(()=>{class i{transform(e){return(0,m.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=c(31359);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function We(i,n){1&i&&t._UZ(0,"th",17)}function Ke(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function ti(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ei(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,ti,3,3,"span",1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function ii(i,n){1&i&&t._UZ(0,"th",17)}function oi(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function ni(i,n){1&i&&t._UZ(0,"tr",20)}function ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",21),t.TgZ(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).requestPwdReset()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function si(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ri(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function li(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function ci(i,n){if(1&i&&(t.TgZ(0,"td",33),t.TgZ(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function pi(i,n){1&i&&t._UZ(0,"tr",35)}function ui(i,n){1&i&&t._UZ(0,"tr",20)}const It=function(){return["sponsors","expiration"]};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content"),t.TgZ(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).changeSponsors()}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,si,3,3,"th",9),t.YNc(10,ri,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,li,3,3,"th",9),t.YNc(13,ci,4,3,"td",30),t.BQk(),t.YNc(14,pi,1,0,"tr",32),t.YNc(15,ui,1,0,"tr",13),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,It)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,It))}}function di(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-card",24),t.TgZ(2,"mat-card-header"),t.TgZ(3,"mat-card-title"),t.TgZ(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,_i,16,8,"mat-card-content",1),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function mi(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t.TgZ(3,"mat-card",5),t.TgZ(4,"mat-card-header"),t.TgZ(5,"mat-card-title"),t.TgZ(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"mat-card-content"),t.TgZ(10,"table",7),t.ynx(11,8),t.YNc(12,We,1,0,"th",9),t.YNc(13,ei,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ii,1,0,"th",9),t.YNc(16,oi,2,1,"td",12),t.BQk(),t.YNc(17,ni,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14),t._UZ(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ai,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA(),t.qZA(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let gi=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(a=>{const s=this.storeService.get("password_namespace_attributes").map(r=>{const _=r.split(":");return _[_.length-1]});this.attributesManager.getLogins(a.userId).subscribe(r=>{this.logins=r.filter(_=>s.includes(_.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:a.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(_=>{this.sponsors=_,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,m.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Le.m,e)}changeSponsors(){const e=(0,m.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Re.H,e).afterClosed().subscribe(a=>{a&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.d6),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"member","vo"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,Xe,1,0,"mat-spinner",0),t.YNc(1,mi,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk,we.b,$e,x.gM,I.lW,N.$j,P.Hw,l.as,l.XQ,Y.L],pipes:[d.X$,ze,B.d,ft.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}"]}),i})();var hi=c(85243);function Ti(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const Ai=function(i,n){return["/organizations",i,"groups",n]};function fi(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,Ai,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ii(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,fi,5,8,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let bi=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"HttpErrorResponse"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,Ti,1,0,"mat-spinner",0),t.YNc(1,Ii,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,b.yS,Y.L],pipes:[d.X$],styles:[""]}),i})();var vi=c(15592);let Ei=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var Ci=c(94856);let Si=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(a=>{a instanceof b.m2&&(this.currentUrl=a.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var K=c(12651);let xi=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},directives:[K.t],pipes:[d.X$],styles:[""]}),i})();function Zi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ni(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Oi=(()=>{class i{constructor(e,o,a,s){this.voService=e,this.router=o,this.entityStorageService=a,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Zi,1,0,"mat-spinner",0),t.YNc(1,Ni,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var tt=c(32368),T=c(93075),j=c(79814),S=c(67322),y=c(98833),J=c(74107),Q=c(90508);const Di=["*"];let Mi=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(tt.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Di,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const a=t.EpF();t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"label",2),t.NdJ("click",function(){return t.CHM(a),t.MAs(5).toggle()||o.valueChanged()}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA(),t.qZA(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},directives:[tt.Rr,T.JJ,T.On],styles:[""],data:{animation:[O.BQ]}}),i})();var H=c(77446);function Li(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ri(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamicUnit=a}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Ui(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Gi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Pi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function yi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Vi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Fi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=a}),t.YNc(9,Vi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29),t.TgZ(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodType=a}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,qi,7,8,"div",13),t.YNc(11,Fi,10,10,"div",14),t.TgZ(12,"div"),t.TgZ(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=a}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1),t.TgZ(1,"div",2),t.TgZ(2,"h1",3),t.NdJ("click",function(){return t.CHM(e),t.MAs(6).toggle()}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.enabled=a}),t.qZA(),t.qZA(),t.TgZ(7,"div"),t.TgZ(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7),t.TgZ(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.periodType=a}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.YNc(21,Li,7,8,"div",13),t.YNc(22,wi,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoasEnabled=a}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field"),t.TgZ(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoas=a}),t.YNc(30,Ui,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoasEnabled=a}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field"),t.TgZ(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoas=a}),t.YNc(38,Gi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodEnabled=a}),t.ALo(40,"translate"),t.TgZ(41,"div",18),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriod=a}),t.ALo(44,"translate"),t.qZA(),t.qZA(),t.TgZ(45,"mat-form-field"),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodUnit=a}),t.YNc(50,Pi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoaPeriodEnabled=a}),t.ALo(52,"translate"),t.TgZ(53,"div",7),t.TgZ(54,"div"),t.TgZ(55,"mat-form-field"),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoa=a}),t.YNc(61,yi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.YNc(62,Yi,16,13,"div",22),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().saveChanges()}),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",a.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let bt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==a&&(A.doNotAllowLoa=a),null!==r&&(A.gracePeriod=r),null!==_&&(A.periodLoa=_),A}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},directives:[g.O5,tt.Rr,T.JJ,T.On,j.VQ,j.U0,S.KE,y.Nt,T.Fj,T.c5,S.bx,S.hX,J.gD,g.sg,Q.ey,Mi,S.UY,H.oG,x.gM,I.lW],pipes:[d.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[O.BQ]}}),i})();function Qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let ki=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,Z.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Qi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""],data:{animation:[O.BQ]}}),i})();var Bi=c(55857),vt=c(69815);let Hi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},directives:[vt.s],styles:[""]}),i})();function ji(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,n){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"textarea",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).reason=a}),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function Xi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"mat-select",9),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().mailType=a}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,$i,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.qZA(),t.qZA(),t.YNc(24,zi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Wi=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",1),t.YNc(5,Xi,25,24,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,J.gD,Q.ey,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function to(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().reason=a}),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let eo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,to,5,4,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function io(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function oo(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function no(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t.TgZ(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,oo,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function ao(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function so(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,ao,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function ro(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,no,4,2,"mat-form-field",8),t.YNc(2,so,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let lo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new T.NI(this.formItemData.value,[T.kI.required,T.kI.email]):this.inputControl=new T.NI(this.formItemData.value,[T.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,io,1,0,"mat-spinner",1),t.YNc(5,ro,3,2,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.Q7,T.JJ,T.oH,S.TO,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var et=c(4834),co=c(43157);function po(i,n){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function uo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).verifyApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).approveApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).rejectApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function To(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resendNotification()}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function Ao(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function fo(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Io(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function vo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Eo(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function So(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function xo(i,n){1&i&&t._UZ(0,"th",31)}function Zo(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function No(i,n){1&i&&t._UZ(0,"th",31)}function Oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).editApplicationData(a)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Do(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Oo,3,0,"button",34),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Mo(i,n){1&i&&t._UZ(0,"tr",36)}function Lo(i,n){1&i&&t._UZ(0,"tr",37)}function Ro(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,xo,1,0,"th",25),t.YNc(3,Zo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Do,3,2,"td",28),t.BQk(),t.YNc(7,Mo,1,0,"tr",29),t.YNc(8,Lo,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function wo(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,_o,3,3,"button",7),t.YNc(2,mo,3,3,"button",7),t.YNc(3,go,3,3,"button",8),t.YNc(4,ho,3,3,"button",8),t.YNc(5,To,5,3,"button",9),t.YNc(6,Ao,5,4,"div",4),t.YNc(7,fo,9,8,"div",4),t.TgZ(8,"div"),t.TgZ(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Io,4,0,"span",4),t.YNc(21,bo,4,0,"span",4),t.YNc(22,vo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,Co,12,11,"div",12),t.TgZ(25,"div",13),t.TgZ(26,"mat-card-title"),t.TgZ(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,So,5,4,"div",4),t.TgZ(33,"div"),t.TgZ(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div"),t.TgZ(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div"),t.TgZ(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Ro,9,3,"table",15),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let it=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=A,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=null==_?void 0:_.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){var e;const o=(0,m.kZ)();o.width="500px",o.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(e=this.application.group)||void 0===e?void 0:e.id},this.dialog.open(Wi,o)}deleteApplication(){const e=(0,m.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,m.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(eo,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(a=>{this.application=a,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,m.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(lo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(b.gz),t.Y36(u.V6),t.Y36(b.F0),t.Y36(u.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,po,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,uo,1,0,"mat-spinner",3),t.YNc(6,wo,50,44,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,et.d,f.$g,I.lW,P.Hw,N.n5,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,co.h,g.uU,B.d],styles:[""]}),i})();var Uo=c(75234),Go=c(37240);let Po=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var M=c(53251),Et=c(19191);function yo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function qo(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Vo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Fo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Yo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Vo,3,6,"ng-template",1),t.YNc(2,Fo,1,3,"ng-template",2),t.qZA())}function Jo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Qo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function ko(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Jo,3,6,"ng-template",1),t.YNc(2,Qo,1,3,"ng-template",2),t.qZA())}let Bo=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,yo,2,3,"ng-template",1),t.YNc(7,qo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,ko,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})();function Ho(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function jo(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let $o=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"HttpErrorResponse"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ho,1,0,"mat-spinner",0),t.YNc(1,jo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var zo=c(10369),Xo=c(21963),Wo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchToInitial()}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function en(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchToExtension()}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function on(i,n){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function an(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function sn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,nn,2,1,"mat-icon",21),t.YNc(8,an,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function ln(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function cn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24),t._UZ(6,"br"),t._UZ(7,"input",19),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,rn,2,1,"mat-icon",21),t.YNc(10,ln,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function pn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function _n(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function dn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,pn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,un,2,1,"mat-icon",21),t.YNc(10,_n,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function mn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function gn(i,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Tn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function An(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",28),t.YNc(6,gn,2,1,"option",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,hn,2,1,"mat-icon",21),t.YNc(9,Tn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function In(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function bn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,fn,2,1,"mat-icon",21),t.YNc(7,In,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function vn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function En(i,n){1&i&&(t.TgZ(0,"div",35),t.TgZ(1,"form"),t._UZ(2,"input",36),t.qZA(),t.qZA())}function Cn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Sn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit;return t.oxw(2).mapForCombobox[s.id]=a}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,vn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA(),t.qZA(),t.TgZ(11,"div",20),t.YNc(12,Cn,2,1,"mat-icon",21),t.YNc(13,Sn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Zn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function On(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Dn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t.YNc(6,Zn,3,2,"div",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Mn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Ln(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Rn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br"),t._UZ(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br"),t._UZ(12,"input",37),t._uU(13," example group3 "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",20),t.YNc(15,Mn,2,1,"mat-icon",21),t.YNc(16,Ln,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function wn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Gn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,wn,2,1,"mat-icon",39),t.YNc(4,Un,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function yn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function qn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Pn,2,1,"mat-icon",39),t.YNc(4,yn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Yn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",41),t.TgZ(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(89,"div",20),t.YNc(90,Vn,2,1,"mat-icon",21),t.YNc(91,Fn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Qn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const kn=function(){return["Example 1","Example 2"]},Ct=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Bn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,Qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Ct,t.DdM(5,kn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const $n=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,Hn,2,1,"mat-icon",21),t.YNc(8,jn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Ct,t.DdM(5,$n))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Xn(i,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,sn,11,5,"div",15),t.YNc(2,cn,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,mn,2,1,"div",2),t.YNc(5,An,12,6,"div",15),t.YNc(6,bn,10,5,"div",15),t.YNc(7,xn,16,11,"div",15),t.YNc(8,Dn,12,5,"div",15),t.YNc(9,Rn,19,7,"div",15),t.YNc(10,Gn,5,4,"div",15),t.YNc(11,qn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,Bn,11,8,"div",2),t.YNc(14,zn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf",("HEADING"===e.type||"HTML_COMMENT"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Wn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Xn,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",4),t.YNc(2,tn,5,3,"button",5),t.YNc(3,en,5,3,"button",5),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().currentLanguage=a}),t.YNc(9,on,4,6,"mat-option",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,Wn,2,1,"div",9),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let St=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,a,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}getLocalizedLabel(e){var o;return(null===(o=e.i18n[this.currentLanguage])||void 0===o?void 0:o.label)?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(d.sK),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ko,1,0,"mat-spinner",1),t.YNc(4,Kn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,I.lW,S.KE,S.hX,J.gD,g.sg,Q.ey,P.Hw,x.gM,T._Y,T.JL,T.F,T.YN,T.Kr,T.EJ,T.JJ,T.On,Xo.H,Wo.$],pipes:[d.X$,g.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ta(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ea(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function ia(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function oa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function na(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ia,3,6,"ng-template",1),t.YNc(2,oa,1,3,"ng-template",2),t.qZA())}function aa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function sa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function ra(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,aa,3,6,"ng-template",1),t.YNc(2,sa,1,3,"ng-template",2),t.qZA())}function la(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function ca(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function pa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function ua(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function _a(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,pa,3,6,"ng-template",1),t.YNc(2,ua,1,3,"ng-template",2),t.qZA())}let da=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(u.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,ta,2,3,"ng-template",1),t.YNc(7,ea,1,2,"ng-template",2),t.qZA(),t.YNc(8,na,3,0,"mat-tab",3),t.YNc(9,ra,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,la,2,3,"ng-template",1),t.YNc(12,ca,1,2,"ng-template",2),t.qZA(),t.YNc(13,_a,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})(),ma=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},directives:[Y.L],styles:[""]}),i})();var ga=c(68056),ha=c(24219),E=c(20449),Ta=c(17584);function Aa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function fa(i,n){1&i&&t._UZ(0,"th",15)}function Ia(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function ba(i,n){1&i&&t._UZ(0,"tr",17)}function va(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,fa,1,0,"th",11),t.YNc(10,Ia,2,1,"td",12),t.BQk(),t.YNc(11,ba,1,0,"tr",13),t.YNc(12,va,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ca=(()=>{class i{constructor(e,o,a){this.dialogRef=e,this.data=o,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Aa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var C=c(10036),G=c(96214),L=c(7434),Sa=c(17672);function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().create()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().deleteTag()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oa(i,n){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Da=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,m.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ca,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,m.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ta.p,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,xa,3,3,"button",2),t.YNc(5,Za,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Na,1,0,"mat-spinner",5),t.YNc(8,Oa,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,Sa.o],pipes:[d.X$],styles:[""]}),i})();function Ma(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let La=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Ma,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""]}),i})(),Ra=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},directives:[vt.s],styles:[""]}),i})();function wa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ua(i,n){1&i&&t._UZ(0,"th",15)}function Ga(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Pa(i,n){1&i&&t._UZ(0,"tr",17)}function ya(i,n){1&i&&t._UZ(0,"tr",18)}function qa(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ua,1,0,"th",11),t.YNc(10,Ga,2,1,"td",12),t.BQk(),t.YNc(11,Pa,1,0,"tr",13),t.YNc(12,ya,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let xt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,qa,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Va=c(74533);function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ya(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().mailFooter=a}),t.qZA(),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij("",t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),t.xp6(3),t.Q6J("ngModel",e.mailFooter)("cdkTextareaAutosize",!0),t.xp6(2),t.hij(" ",t.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Zt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,Z.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,Z.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","cdkTextareaAutosize","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ya,9,8,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.editAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,Va.IC,T.JJ,T.On,p.H8,I.lW,x.gM],pipes:[d.X$],styles:[""]}),i})();var Ja=c(53435);function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",1),t.TgZ(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().addTag("{"+s[0]+"}")}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.qZA(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let ka=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,Qa,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},directives:[g.sg,I.lW,x.gM,et.d],pipes:[d.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Ba=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},directives:[D.w,Ja.PQ,ka],pipes:[d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ha(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ja(i,n){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function $a(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function za(i,n){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Xa(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Wa(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Ka(i,n){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ts(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function es(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function is(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function os(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ns=function(i){return{"disabled-label":i}};function as(i,n){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ns,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ss(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!1}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!1}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ls(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!0}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function cs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!0}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ps(i,n){1&i&&t._UZ(0,"mat-divider",61)}function us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,as,4,8,"ng-template",45),t.TgZ(2,"div",46),t.TgZ(3,"div",47),t.TgZ(4,"div",48),t.TgZ(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return a.showTags=!a.showTags}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18),t.TgZ(13,"div",null,51),t.YNc(15,ss,1,1,"input",52),t.YNc(16,rs,1,1,"input",52),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18),t.TgZ(21,"div",null,54),t.YNc(23,ls,2,1,"textarea",55),t.YNc(24,cs,2,1,"textarea",55),t.qZA(),t.qZA(),t.qZA(),t.YNc(25,ps,1,0,"mat-divider",56),t.TgZ(26,"div"),t.TgZ(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit;return t.oxw(2).addTag(_,A,v,a,r)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function _s(i,n){if(1&i&&(t.YNc(0,is,3,3,"perun-web-apps-alert",40),t.YNc(1,os,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,us,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function ds(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,_s,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+n.$implicit)))}function ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11),t.TgZ(1,"div"),t.TgZ(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.TgZ(5,"mat-tab-group",13),t.TgZ(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15),t.TgZ(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17),t.TgZ(13,"mat-form-field",18),t.TgZ(14,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.mailType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,za,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Xa,3,3,"div",30),t.YNc(40,Wa,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15),t.TgZ(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17),t.TgZ(46,"mat-form-field",18),t.TgZ(47,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.appType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Ka,3,3,"mat-option",33),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ts,3,3,"div",30),t.YNc(55,es,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15),t.TgZ(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17),t.TgZ(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.send=a}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA(),t.qZA(),t.qZA(),t.YNc(67,ds,4,5,"mat-tab",36),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().create()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().save()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let ot=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,a,s,r){let _;_=this.isTextFocused?o.children.item("plain_text"===r?0:1):e.children.item("plain_text"===r?0:1);const A=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,A)+s+this.applicationMail.htmlMessage[a].text.substring(A):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,A)+s+this.applicationMail.message[a].text.substring(A):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,A)+s+this.applicationMail.htmlMessage[a].subject.substring(A):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,A)+s+this.applicationMail.message[a].subject.substring(A),_.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(h.ff),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.YNc(2,Ha,4,3,"div",1),t.YNc(3,ja,3,3,"ng-template",null,2,t.W1O),t.YNc(5,$a,1,0,"mat-spinner",3),t.YNc(6,ms,68,55,"div",4),t.TgZ(7,"div",5),t.TgZ(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,gs,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,hs,3,4,"button",7),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},directives:[g.O5,p.uh,f.$g,p.xY,D.w,M.SP,M.uX,S.KE,J.gD,T.JJ,T.On,Q.ey,H.oG,g.sg,M.Vc,M.uD,g.mk,I.lW,y.Nt,T.Fj,et.d,Ba,p.H8,x.gM],pipes:[d.X$,g.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[O.es,O.BQ]}}),i})();var nt=c(62707);function Ts(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let Nt=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,this.data=A,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(d.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ts,1,0,"mat-spinner",1),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA(),t.qZA(),t.TgZ(15,"div",6),t.TgZ(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,nt.M,ht.h,p.H8,I.lW],pipes:[d.X$],styles:[""],data:{animation:[O.BQ]}}),i})();var k=c(84847),Ot=c(18750);function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.toggle(r):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Is(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function vs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ss(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-icon",25),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function xs(i,n){1&i&&(t.TgZ(0,"mat-icon",26),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Zs(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Ss,5,3,"div",23),t.YNc(2,xs,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ns(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"section"),t.TgZ(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit;return t.oxw().changeSending(s)})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Ds(i,n){1&i&&t._UZ(0,"tr",28)}function Ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().openApplicationMailDetail(s)}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Ls(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Dt=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=m.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,m.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(ot,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new l.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,As,2,3,"th",4),t.YNc(5,fs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Is,3,3,"th",7),t.YNc(8,bs,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,vs,3,3,"th",7),t.YNc(11,Es,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Cs,3,3,"th",7),t.YNc(14,Zs,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ns,3,3,"th",7),t.YNc(17,Os,4,6,"td",10),t.BQk(),t.YNc(18,Ds,1,0,"tr",13),t.YNc(19,Ms,1,2,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,Ls,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,k.nU,g.O5,P.Hw,x.gM,T.JJ,T.On,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().add()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().remove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().copy()}),t.TgZ(1,"i",5),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Gs(i,n){1&i&&t._UZ(0,"mat-spinner",12)}function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().changeSelection(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let ys=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=A,this.store=v,this.entityStorageService=R,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,m.i5)(e);o.formId=this.applicationForm.id;const a=(0,m.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(ot,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Zt,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.YF),t.Y36(u.d6),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Rs,3,3,"button",2),t.YNc(5,ws,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Us,5,3,"button",6),t.qZA(),t.YNc(12,Gs,1,0,"mat-spinner",7),t.YNc(13,Ps,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,I.lW,f.$g,Dt],pipes:[d.X$],styles:[""]}),i})();var qs=c(14336);function Vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).add()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).remove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).copy()}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Js(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw(2).changeSelection(a)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.YNc(2,Vs,3,3,"button",3),t.YNc(3,Fs,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().changeEmailFooter()}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ys,5,3,"button",7),t.qZA(),t.YNc(10,Js,1,0,"mat-spinner",8),t.YNc(11,Qs,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).createEmptyApplicationForm()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Hs(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Bs,3,3,"button",16),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let js=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=A,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,m.i5)();e.formId=this.applicationForm.id;const o=(0,m.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(ot,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Zt,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.H8),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,ks,12,8,"div",1),t.YNc(4,Hs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},directives:[g.O5,I.lW,f.$g,Dt,D.w],pipes:[d.X$],styles:[""]}),i})();var at=c(15935);function $s(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function zs(i,n){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Mt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.qZA(),t.YNc(6,$s,1,0,"mat-spinner",3),t.YNc(7,zs,2,4,"div",4),t.TgZ(8,"div",5),t.TgZ(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[p.uh,L.L,g.O5,f.$g,p.xY,at.D,p.H8,I.lW],pipes:[d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function Xs(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ws(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function tr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function er(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function ir(i,n){1&i&&t._UZ(0,"tr",19)}function or(i,n){1&i&&t._UZ(0,"tr",20)}function nr(i,n){if(1&i&&(t.TgZ(0,"div",8),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,Ws,2,0,"th",12),t.YNc(10,Ks,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,tr,2,0,"th",12),t.YNc(13,er,2,1,"td",13),t.BQk(),t.YNc(14,ir,1,0,"tr",15),t.YNc(15,or,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Lt=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Xs,1,0,"mat-spinner",2),t.YNc(6,nr,16,9,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function sr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function rr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function lr(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let cr=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,m.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,ar,3,3,"button",2),t.YNc(6,sr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,rr,1,0,"mat-spinner",5),t.YNc(9,lr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();var q=c(24179);function pr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw(2).getGroupsToInclude(a.id)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const _r=function(){return["select","id","name","description"]};function dr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,_r))("filter",e.filterValue)("tableId",e.tableId)}}function mr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,ur,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,dr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,mr,1,0,"mat-spinner",1),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let hr=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,this.data=A,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(h.YF),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,pr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,gr,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},directives:[p.uh,g.O5,f.$g,nt.M,L.L,p.xY,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ar(i,n){1&i&&t._UZ(0,"th",15)}function fr(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ir(i,n){1&i&&t._UZ(0,"tr",17)}function br(i,n){1&i&&t._UZ(0,"tr",18)}function vr(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ar,1,0,"th",11),t.YNc(10,fr,2,1,"td",12),t.BQk(),t.YNc(11,Ir,1,0,"tr",13),t.YNc(12,br,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Er=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(h.ff),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tr,1,0,"mat-spinner",1),t.YNc(5,vr,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Cr=c(387);const Sr=["list"];function xr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Zr=function(){return["select","id","vo","name","description"]};function Nr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,Zr))("filter",e.filterValue)("tableId",e.tableId)}}let Or=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,m.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(hr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,m.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Er,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,xr,1,0,"mat-spinner",7),t.YNc(18,Nr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,x.gM,L.L,H.oG,g.O5,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var st=c(64901),Dr=c(9146);function Mr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().showAllDetails=!0}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Lr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().showAllDetails=!1}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Rr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function wr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Ur=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,Mr,3,3,"button",2),t.YNc(6,Lr,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.qZA(),t.YNc(8,Rr,1,0,"mat-spinner",4),t.YNc(9,wr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,st.P,f.$g,Dr.S],pipes:[d.X$],styles:[""]}),i})();var Rt=c(1059),rt=c(24850),U=c(92081),wt=c(91079);function Gr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Pr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function yr(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),r.stepper.selected.completed=!0}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Vr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Fr(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div"),t.TgZ(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,yr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div"),t.TgZ(10,"mat-form-field",14),t.TgZ(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"div"),t.TgZ(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Vr,2,1,"div",23),t.qZA(),t.qZA()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Yr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Jr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const Qr=function(){return["select","id","name","description"]};function kr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,Qr))("selection",e.selectedGroups)}}function Br(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Hr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw().stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function jr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),a.loadGroups()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function $r(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().onFinish()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let zr=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new T.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Rt.O)(""),(0,rt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Rt.O)(""),(0,rt.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(U.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-stepper",2),t.TgZ(6,"mat-step",3),t.YNc(7,Gr,2,3,"ng-template",4),t.YNc(8,Pr,1,0,"mat-spinner",5),t.YNc(9,Fr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Yr,2,3,"ng-template",4),t.YNc(12,Jr,1,0,"mat-spinner",5),t.YNc(13,kr,2,8,"div",6),t.YNc(14,Br,3,3,"perun-web-apps-alert",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",8),t.TgZ(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Hr,3,3,"button",10),t.YNc(20,jr,3,8,"button",11),t.YNc(21,$r,3,4,"button",12),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},directives:[p.uh,p.xY,U.Vq,U.C0,U.VY,g.O5,f.$g,S.KE,y.Nt,T.Fj,wt.ZL,T.JJ,T.oH,wt.XC,g.sg,Q.ey,J.gD,q.W,D.w,p.H8,I.lW],pipes:[d.X$,g.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var Xr=c(62109);function Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().addResource()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function Kr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function tl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let el=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,m.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(zr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Wr,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Kr,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,tl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[G.t,g.O5,I.lW,L.L,Xr.C,f.$g],pipes:[d.X$],styles:[""]}),i})();var il=c(98918),ol=c(4675),nl=c(258),al=c(60113),sl=c(16500),rl=c(92090),ll=c(20057),cl=c(49546),pl=c(76023),ul=c(3246);function _l(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ml(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function gl(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let hl=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,m.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,_l,3,3,"button",2),t.YNc(6,dl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ml,1,0,"mat-spinner",5),t.YNc(9,gl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();function Tl(i,n){1&i&&t._UZ(0,"th",9)}function Al(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function fl(i,n){1&i&&t._UZ(0,"th",9)}function Il(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function bl(i,n){1&i&&t._UZ(0,"tr",12)}let Ut=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.TgZ(7,"table",2),t.ynx(8,3),t.YNc(9,Tl,1,0,"th",4),t.YNc(10,Al,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,fl,1,0,"th",4),t.YNc(13,Il,2,1,"td",7),t.BQk(),t.YNc(14,bl,1,0,"tr",8),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},directives:[N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk],pipes:[d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function vl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function El(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Cl=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,vl,1,0,"mat-spinner",1),t.YNc(4,El,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Sl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function xl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t._UZ(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Zl=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Sl,1,0,"mat-spinner",1),t.YNc(4,xl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Nl(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Ol=function(){return["select","id","name","description"]};function Dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Ol))("filter",e.filterValue)("tableId",e.tableId)}}let Ml=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Nl,1,0,"mat-spinner",1),t.YNc(5,Dl,4,11,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,st.P,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();const Ll=["list"];function Rl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAddGroup()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function wl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Ul=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Ul))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Pl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,m.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(Ml,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,m.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.x4),t.Y36(p.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ll,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Rl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,wl,1,0,"mat-spinner",7),t.YNc(16,Gl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[D.w,G.t,g.O5,I.lW,x.gM,L.L,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var yl=c(20872),ql=c(80013),Vl=c(72986),Fl=c(87545),Gt=c(28499),Yl=c(13469),Pt=c(14623),yt=c(38383);const Jl=["stepper"];function Ql(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function kl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Bl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Hl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function jl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function $l(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Xl(i,n){if(1&i&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Wl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function tc(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function ec(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function ic(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function oc(i,n){if(1&i&&(t.TgZ(0,"span",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,"Not selected"===e.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function nc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function ac(i,n){if(1&i&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function sc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item"),t.TgZ(1,"p",33),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,ac,2,1,"span",34),t.TgZ(5,"span",35),t.ALo(6,"translate"),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).removeUser(s)}),t.TgZ(8,"mat-icon",37),t._uU(9,"close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function rc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}const lc=function(){return["checkbox","id","fullName"]};function cc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",42),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,lc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function pc(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",43),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function uc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,cc,1,6,"perun-web-apps-members-list",40),t.YNc(2,pc,3,3,"perun-web-apps-alert",41),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function _c(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step",8),t.TgZ(4,"form",9),t.YNc(5,Ql,2,3,"ng-template",10),t.TgZ(6,"div",11),t.TgZ(7,"mat-form-field"),t.TgZ(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,kl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,Bl,3,3,"mat-error",13),t.YNc(19,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,jl,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field"),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,$l,3,3,"mat-error",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"mat-step",8),t.TgZ(33,"form",9),t.YNc(34,zl,2,3,"ng-template",10),t.TgZ(35,"div",11),t.TgZ(36,"mat-form-field"),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",17),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().onNamespaceChanged(a)}),t.YNc(41,Xl,2,2,"mat-option",18),t.qZA(),t.qZA(),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"mat-label"),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._UZ(46,"input",20),t.YNc(47,Wl,3,3,"mat-error",13),t.YNc(48,Kl,3,3,"mat-error",13),t.YNc(49,tc,3,3,"mat-error",13),t.YNc(50,ec,3,3,"mat-error",13),t.YNc(51,ic,3,3,"mat-error",13),t.YNc(52,oc,3,3,"span",21),t.qZA(),t.TgZ(53,"mat-radio-group",22),t.NdJ("ngModelChange",function(){return t.CHM(e),t.oxw().passwordOptionChanged()}),t.ALo(54,"translate"),t.TgZ(55,"mat-radio-button",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-radio-button",23),t._uU(59),t.ALo(60,"translate"),t.qZA(),t.qZA(),t.TgZ(61,"div",11),t._UZ(62,"perun-web-apps-password-form",24),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"mat-step"),t.YNc(64,nc,2,3,"ng-template",10),t.TgZ(65,"h6"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.TgZ(68,"mat-list"),t.YNc(69,sc,10,9,"mat-list-item",25),t.qZA(),t.TgZ(70,"h6",26),t._uU(71),t.ALo(72,"translate"),t.qZA(),t.TgZ(73,"mat-form-field",27),t.TgZ(74,"input",28),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return 0!==a.searchCtrl.value.length&&a.onSearchByString()}),t.ALo(75,"translate"),t.qZA(),t.qZA(),t.TgZ(76,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSearchByString()}),t.TgZ(77,"mat-icon"),t._uU(78,"search"),t.qZA(),t.qZA(),t.TgZ(79,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().addUsers()}),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.YNc(82,rc,1,0,"mat-spinner",3),t.YNc(83,uc,3,2,"div",13),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(5),t.Oqu(t.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),t.xp6(3),t.Q6J("ngForOf",e.namespaceOptions),t.xp6(1),t.Q6J("floatLabel",e.secondFormGroup.get("loginCtrl").disabled?"always":null),t.xp6(2),t.Oqu(t.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),t.xp6(2),t.Q6J("hidden",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("loginExists")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("pattern")&&!e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.s9C("matTooltip",t.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),t.Q6J("matTooltipDisabled","Not selected"!==e.secondFormGroup.get("namespaceCtrl").value),t.xp6(2),t.Q6J("checked",e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),t.xp6(1),t.hij(" ",t.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),t.xp6(2),t.Q6J("checked",!e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),t.xp6(1),t.hij(" ",t.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),t.xp6(2),t.ekj("input-disabled",e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup)("namespace",e.selectedNamespace)("passwordRequired",!e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(4),t.Oqu(t.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function dc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}function mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperNext()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function hc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Tc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",44),t.TgZ(1,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,mc,3,3,"button",46),t.YNc(5,gc,3,8,"button",47),t.YNc(6,hc,3,4,"button",48),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let Ac=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R,ut){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=R,this.cd=ut,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new T.NI(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(_t=>this.successMessageMember=_t),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(_t=>this.successMessagePwd=_t)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",T.kI.required],emailCtrl:["",[T.kI.required,T.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)]],passwordCtrl:["",T.kI.required,[(0,Gt.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:m.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(o=>{this.namespaceRules=o,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}existingLoginValidator(){return e=>{let o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,e.valueChanges.pipe((0,ql.b)(500),(0,Vl.q)(1),(0,Fl.w)(()=>this.usersManagerService.isLoginAvailable(o,e.value).pipe((0,rt.U)(a=>a?null:{loginExists:!0}))))}}onCreate(){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const e=this.firstFormGroup.get("subjectCtrl");(null==e?void 0:e.value)&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const e of this.namespaceRules){this.namespaceOptions.push(e.namespaceName);const o={login:"disabled"};this.parseAttributes(o,e.requiredAttributes,"required"),this.parseAttributes(o,e.optionalAttributes,"optional"),this.parsedRules.set(e.namespaceName,o)}}parseAttributes(e,o,a){for(const s of o)"login"===s&&(e.login=a)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(e.userId,a,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}onNamespaceChanged(e){this.selectedNamespace=e.toLowerCase();const o=this.secondFormGroup.get("loginCtrl"),a=this.secondFormGroup.get("passwordCtrl"),s=this.secondFormGroup.get("passwordAgainCtrl"),r=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==e){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const _=[T.kI.required,T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)];(0,m.mH)(o,_,[this.existingLoginValidator()])}(0,m.mH)(r,[]),this.passwordOptionChanged()}else o.disable(),o.setValue(""),a.disable(),a.setValue(""),s.disable(),s.setValue(""),r.disable(),r.dirty||r.setValue(!0)}passwordOptionChanged(){const e=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(e.disable(),e.setValue(""),o.disable(),o.setValue("")):((0,m.mH)(e,[T.kI.required],[(0,Gt.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,m.mH)(o,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(T.qu),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Jl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","namespace","passwordRequired"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[3,"value"],[1,"input-disabled"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,84,76,"div",2),t.YNc(5,dc,1,0,"mat-spinner",3),t.YNc(6,Tc,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},directives:[g.O5,p.xY,U.Vq,U.C0,T._Y,T.JL,T.sg,U.VY,S.KE,S.hX,T.Fj,y.Nt,T.JJ,T.u,T.Q7,S.TO,J.gD,g.sg,Q.ey,j.VQ,x.gM,j.U0,Yl.G,Pt.i$,Pt.Tg,I.lW,P.Hw,T.oH,f.$g,yt.O,D.w,p.H8],pipes:[d.X$,B.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var fc=c(53455);function Ic(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveMembers()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function bc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const vc=function(){return["checkbox","id","type","fullName","status"]};function Ec(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,vc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Cc=(()=>{class i{constructor(e,o,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,m.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(Ac,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,m.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(fc.X,e).afterClosed().subscribe(a=>{a&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ic,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,bc,1,0,"mat-spinner",5),t.YNc(10,Ec,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,g.O5,L.L,f.$g,yt.O],pipes:[d.X$],styles:[""]}),i})();var $=c(71992),qt=c(87831);const Sc=["stepper"];function xc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Zc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function Nc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Oc(i,n){1&i&&t._UZ(0,"th",19)}function Dc(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Mc(i,n){1&i&&t._UZ(0,"tr",21)}function Lc(i,n){1&i&&t._UZ(0,"tr",22)}function Rc(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Oc,1,0,"th",14),t.YNc(6,Dc,2,1,"td",15),t.BQk(),t.YNc(7,Mc,1,0,"tr",16),t.YNc(8,Lc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step"),t.YNc(4,Zc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().voFilter=a}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Nc,2,3,"ng-template",8),t.YNc(9,Rc,12,10,"ng-template",11),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperNext()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).addMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function yc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23),t.TgZ(1,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Uc,3,3,"button",26),t.YNc(6,Gc,3,4,"button",27),t.YNc(7,Pc,3,3,"button",28),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let qc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sc,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xc,1,0,"mat-spinner",1),t.YNc(5,wc,10,7,"div",2),t.YNc(6,yc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[p.uh,g.O5,f.$g,p.xY,U.Vq,U.C0,U.VY,L.L,qt.Z,U.BY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,D.w,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Vc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Fc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Yc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Jc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let Qc=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,this.translator=A,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,m.kZ)();e.width="750px",this.dialog.open(qc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,m.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36(X.G),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,Vc,3,3,"button",2),t.YNc(5,Fc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Yc,1,0,"mat-spinner",5),t.YNc(8,Jc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,qt.Z],pipes:[d.X$],styles:[""]}),i})();const kc=function(){return["select","id","name","description"]};function Bc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,kc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function jc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9),t.TgZ(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().confirm()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const $c=function(i){return{parentVo:i}};let zc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Bc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Hc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,jc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,$c,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[p.uh,p.xY,D.w,L.L,g.O5,q.W,f.$g,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Xc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().voSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Wc=function(){return["select","id","name","description"]};function Kc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Wc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function tp(i,n){1&i&&t._UZ(0,"mat-spinner",11)}const ip=[{path:"",component:Yt.Y},{path:":voId",component:Me,canActivateChild:[$.a],children:[{path:"",component:de,data:{animation:"VoOverviewPage"}},{path:"attributes",component:xi,data:{animation:"VoAttributesPage"}},{path:"groups",component:me.G,data:{animation:"VoGroupsPage"}},{path:"members",component:ge.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:ma,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ga.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ha.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Da,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ci.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:ul.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Cl,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Si,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ki,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Hi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Pl},{path:"notifications",component:ys,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:cr,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Qc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,this.changeDetector=A,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,m.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(zc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,m.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Xc,1,1,"perun-web-apps-vo-search-select",6),t.qZA(),t.qZA(),t.YNc(13,Kc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,tp,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[G.t,I.lW,g.O5,nt.M,q.W,f.$g],pipes:[d.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})(),data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:pe,canActivateChild:[$.a],children:[{path:"",component:gi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:hi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Ur,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:el,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:ie,canActivateChild:[$.a],children:[{path:"",component:bi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Uo.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:vi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Bi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Go.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Bo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Zl,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Po,children:[{path:"",component:$o,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:La,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ra,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St},{path:"notifications",component:js,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Or,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:hl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:it,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:il.b,canActivateChild:[$.a],children:[{path:"",component:ol.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:nl.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:cl.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:rl.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:pl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:yl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:al.t,children:[{path:"",component:sl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ll.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let op=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[b.Bz.forChild(ip)],b.Bz]}),i})();var np=c(14264),ap=c(63189),sp=c(19516),rp=c(51525),lp=c(45256);let lt=(()=>{class i{transform(e){var o,a,s,r;return(null===(o=null==e?void 0:e.member)||void 0===o?void 0:o.sourceGroupId)&&"DIRECT"===(null===(a=null==e?void 0:e.member)||void 0===a?void 0:a.membershipType)?"Member of Group":(null===(s=null==e?void 0:e.member)||void 0===s?void 0:s.sourceGroupId)&&"INDIRECT"===(null===(r=null==e?void 0:e.member)||void 0===r?void 0:r.membershipType)?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var cp=c(86511);let ct=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){var a,s;return e.member?"vo"===this.addMemberService.getType()||(null===(a=e.member)||void 0===a?void 0:a.sourceGroupId)&&"DIRECT"===(null===(s=e.member)||void 0===s?void 0:s.membershipType):o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(cp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})(),pp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();var up=c(9954);function _p(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"div",21),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",22),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.itemSelectionToggle(r):null})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(7,16,t.lcZ(8,18,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))("disabled",t.xi3(6,13,e,o.blockManualAdding))}}function mp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function gp(i,n){if(1&i&&(t.TgZ(0,"i",26),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member.status),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function hp(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,gp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function Tp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function fp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Ip(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function bp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Ep(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Cp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Sp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function xp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Zp(i,n){1&i&&t._UZ(0,"th",23)}function Np(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Op(i,n){1&i&&t._UZ(0,"tr",27)}function Dp(i,n){1&i&&t._UZ(0,"tr",28)}function Mp(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}let Lp=(()=>{class i{constructor(e,o,a){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=m.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){var a,s;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":{const r=e.richUser?e.richUser:e.candidate;return r.lastName?r.lastName:null!==(s=r.firstName)&&void 0!==s?s:""}case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){var a;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":return(0,m.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportData(e){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,m.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,m.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=(null==o?void 0:o.value)?o.value.replace(","," "):""}return(0,m.Jc)(e.candidate)}getOrganization(e){return(0,m.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const a of e.userAttributes)a.friendlyName.startsWith("login-namespace")&&null!=a.value&&(o.length>0&&(o+=", "),o+=a.friendlyName.substring(16)+": "+a.value);return o}getLoginsForCandidate(e){let a="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(a.length>0&&(a+=", "),a+=s.substring(49)+": "+e.attributes[s]);return a}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?this.selection.isSelected(e)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(lt),t.Y36(ct),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([lt,ct]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return o.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,_p,2,3,"th",4),t.YNc(5,dp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,mp,3,3,"th",7),t.YNc(8,hp,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Tp,3,3,"th",7),t.YNc(11,Ap,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,fp,3,3,"th",7),t.YNc(14,Ip,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,bp,3,3,"th",7),t.YNc(17,vp,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ep,3,3,"th",7),t.YNc(20,Cp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sp,3,3,"th",7),t.YNc(23,xp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Zp,1,0,"th",7),t.YNc(26,Np,2,1,"td",8),t.BQk(),t.YNc(27,Op,1,0,"tr",15),t.YNc(28,Dp,1,0,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(29,Mp,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(25),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,x.gM,k.nU,g.O5,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$,pp,ct,g.i8,Tt.u,At.f,B.d,up.Z,lt],styles:[""]}),i})();var pt=c(92181);function Rp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function wp(i,n){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Up(i,n){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).invite.emit(s)}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function Pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.TgZ(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().search.emit(a)}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Rp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,wp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().cancel.emit(!1)}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Up,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Gp,6,11,"button",12),t.qZA(),t.qZA(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().add.emit()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function yp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function qp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function Vp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function Fp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function Yp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Jp(i,n){1&i&&t._UZ(0,"tr",32)}function Qp(i,n){1&i&&t._UZ(0,"tr",33)}const Vt=function(){return["userName","error"]};function kp(i,n){if(1&i&&(t.TgZ(0,"div",2),t.TgZ(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,qp,3,3,"th",24),t.YNc(7,Vp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,Fp,3,3,"th",24),t.YNc(10,Yp,4,2,"td",25),t.BQk(),t.YNc(11,Jp,1,0,"tr",27),t.YNc(12,Qp,1,0,"tr",28),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Vt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Vt))}}function Bp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).cancel.emit(!0)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Hp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,yp,1,0,"mat-spinner",5),t.YNc(2,kp,13,9,"div",19),t.YNc(3,Bp,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Ft=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new T.NI("",[T.kI.required,T.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Pp,23,27,"div",1),t.YNc(5,Hp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},directives:[p.uh,g.O5,p.xY,st.P,f.$g,Lp,p.H8,I.lW,x.gM,pt.p6,pt.VK,g.sg,pt.OP,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,g.gd,B.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),jp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[g.ez,op,np.m,ap.r,Cr.ez,sp.d4,m.Je]]}),i})();t.B6R(rp.H,[Ft],[g.Ov]),t.B6R(lp.k,[Ft],[g.Ov])}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[858],{60858:($p,dt,c)=>{c.r(dt),c.d(dt,{VosModule:()=>jp});var g=c(69808),b=c(11735),Yt=c(25309),z=c(69024),O=c(36769),h=c(32105),m=c(9244),u=c(32080),Z=c(64080),w=c(16074),Jt=c(41656),mt=c(22158),gt=c(7625),t=c(5e3),V=c(77968),p=c(48966),X=c(15003),W=c(4235),f=c(20773),P=c(25245),x=c(29772),I=c(47423),F=c(61283),d=c(51062),Qt=c(45942),kt=c(29218),Bt=c(28764);function Ht(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function jt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function $t(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteGroup()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function zt(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onSyncDetail()}),t.ALo(1,"groupSyncIcon"),t.TgZ(2,"mat-icon"),t.ALo(3,"groupSyncIconColor"),t._uU(4),t.ALo(5,"groupSyncIcon"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.Q6J("disabled","sync_disabled"===t.lcZ(1,5,e.group)),t.xp6(2),t.Tol(t.lcZ(3,7,e.group)),t.xp6(2),t.hij(" ",t.lcZ(5,9,e.group)," ")}}function Xt(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",15),t.ALo(4,"translate"),t.ALo(5,"groupSyncToolTip"),t.YNc(6,zt,6,11,"button",16),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" , ",t.lcZ(2,4,"GROUP_DETAIL.SYNCHRONIZATION"),": "),t.xp6(2),t.Q6J("matTooltipPosition","above")("matTooltip",t.lcZ(4,6,t.lcZ(5,8,e.group))),t.xp6(3),t.Q6J("ngIf",e.syncAuth)}}const Wt=function(){return{color:"black"}},Kt=function(i,n){return["/organizations",i,"groups",n]},te=function(i){return["/organizations",i]};function ee(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,jt,3,0,"button",10),t.YNc(11,$t,3,0,"button",11),t.qZA(),t.TgZ(12,"div"),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"translate"),t.ALo(18,"translate"),t.TgZ(19,"a",8),t._uU(20),t.qZA(),t._uU(21),t.ALo(22,"translate"),t.YNc(23,Xt,7,10,"span",2),t.qZA(),t.qZA(),t.qZA(),t._UZ(24,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,16,"GROUP_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(26,Wt)),t.xp6(4),t.Q6J("routerLink",t.WLB(27,Kt,e.vo.id,e.group.id)),t.xp6(1),t.hij(" ",e.group.shortName," "),t.xp6(2),t.hij(" \xa0#",e.group.id," "),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.editAuth),t.xp6(1),t.Q6J("ngIf","members"!==e.group.name&&e.deleteAuth),t.xp6(2),t.AsE("",t.lcZ(14,18,"GROUP_DETAIL.UUID"),": ",e.group.uuid,""),t.xp6(3),t.AsE(" ",t.lcZ(17,20,"GROUP_DETAIL.ENTITY"),", ",t.lcZ(18,22,"GROUP_DETAIL.VO_NAME"),": "),t.xp6(3),t.Q6J("routerLink",t.VKq(30,te,e.vo.id)),t.xp6(1),t.Oqu(e.vo.name),t.xp6(1),t.AsE(", ",t.lcZ(22,24,"GROUP_DETAIL.DESCRIPTION"),": ",e.group.description," "),t.xp6(2),t.Q6J("ngIf",e.syncEnabled)}}let ie=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R,ut){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.sideMenuItemService=s,this.groupService=r,this.dialog=_,this.guiAuthResolver=A,this.router=v,this.entityStorageService=R,this.reloadEntityDetail=ut,this.editAuth=!1,this.deleteAuth=!1,this.loading=!1,this.syncAuth=!1,this.syncEnabled=!1,this.attrNames=[Z.r.GROUP_SYNC_ENABLED,Z.r.GROUP_LAST_SYNC_STATE,Z.r.GROUP_LAST_SYNC_TIMESTAMP,Z.r.GROUP_STRUCTURE_SYNC_ENABLED,Z.r.GROUP_LAST_STRUCTURE_SYNC_STATE,Z.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]}ngOnInit(){this.reloadEntityDetail.entityDetailChange.pipe((0,gt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()}),this.reloadData()}onSyncDetail(){const e=(0,m.kZ)();e.data={groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.Bp,e)}editGroup(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"group-theme",group:this.group,dialogType:w.Eg.GROUP},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&this.groupService.getGroupById(this.group.id).subscribe(s=>{this.group=s,this.setMenuItems()})})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.groupService.getGroupById(a).subscribe(r=>{this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.XI)(this.group,s.name),this.guiAuthResolver.isAuthorized("getRichGroupByIdWithAttributesByNames_int_List_policy",[this.group])?this.groupService.getRichGroupByIdWithAttributesByNames(a,this.attrNames).subscribe(_=>{this.group=_,this.syncEnabled=(0,m.bx)(_),this.syncAuth=this.guiAuthResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group])},()=>this.loading=!1):this.syncEnabled=!1,this.editAuth=this.guiAuthResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.group]),this.setMenuItems(),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseVo(this.vo),o=this.sideMenuItemService.parseGroup(this.group);this.sideMenuService.setAccessMenuItems([e,o])}deleteGroup(){const e=(0,m.kZ)();e.width="500px",e.data={theme:"group-theme",groups:[this.group]},this.dialog.open(Jt.P,e).afterClosed().subscribe(a=>{a&&this.router.navigate(["../"],{relativeTo:this.route})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(z.V),t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.x4),t.Y36(b.F0),t.Y36(u.fb),t.Y36(X.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","group-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-group-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"],[1,"text-muted"],["aria-label","Edit group","mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["aria-label","Edit group","mat-icon-button","",3,"click"],["mat-icon-button","",3,"click"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click",4,"ngIf"],["mat-icon-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ht,1,0,"mat-spinner",1),t.YNc(3,ee,25,32,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.group))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,F.A],pipes:[d.X$,Qt.r,kt.J,Bt.F],styles:[""],data:{animation:[O.Ji]}}),i})();function oe(i,n){1&i&&t._UZ(0,"mat-spinner",3)}const ne=function(i){return["/admin","users",i]};function ae(i,n){if(1&i&&(t.TgZ(0,"a",8),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("routerLink",t.VKq(2,ne,e.member.userId)),t.xp6(1),t.hij(" ",e.member.userId," ")}}function se(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(e.member.userId)}}const re=function(){return{color:"black"}},le=function(i,n){return["/organizations",i,"members",n]};function ce(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.qZA(),t.TgZ(10,"span",10),t._uU(11),t.ALo(12,"translate"),t.ALo(13,"translate"),t.YNc(14,ae,2,4,"a",11),t.YNc(15,se,2,1,"span",2),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,9,"MEMBER_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(15,re)),t.xp6(4),t.Q6J("routerLink",t.WLB(16,le,e.vo.id,e.member.id)),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij(" \xa0#",e.member.id," "),t.xp6(2),t.AsE(" ",t.lcZ(12,11,"MEMBER_DETAIL.ENTITY"),", ",t.lcZ(13,13,"MEMBER_DETAIL.USER_ID"),": "),t.xp6(3),t.Q6J("ngIf",e.isAuthorized),t.xp6(1),t.Q6J("ngIf",!e.isAuthorized)}}let pe=(()=>{class i{constructor(e,o,a,s,r,_,A){this.sideMenuItemService=e,this.translate=o,this.sideMenuService=a,this.membersService=s,this.voService=r,this.route=_,this.authResolver=A,this.fullName="",this.isAuthorized=!1,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.memberId);this.isAuthorized=this.authResolver.isPerunAdminOrObserver(),this.voService.getVoById(o).subscribe(s=>{this.vo=s,this.membersService.getRichMemberWithAttributes(a).subscribe(r=>{this.member=r;const _=this.sideMenuItemService.parseVo(this.vo),A=this.sideMenuItemService.parseMember(this.member);this.fullName=A.label,this.sideMenuService.setAccessMenuItems([_,A]),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(z.V),t.Y36(d.sK),t.Y36(V.D),t.Y36(h.uq),t.Y36(h.YF),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-detail-page"]],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","member-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-user-dark",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"member-link",3,"routerLink"],[1,"text-muted"],[1,"mt-1","entity-info"],["class","member-link","queryParamsHandling","merge",3,"routerLink",4,"ngIf"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,oe,1,0,"mat-spinner",1),t.YNc(3,ce,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo&&void 0!==o.member))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,F.A],pipes:[d.X$],styles:[""],data:{animation:[O.Ji]}}),i})();var Y=c(71135);function ue(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function _e(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let de=(()=>{class i{constructor(e,o,a,s,r,_){this.sideMenuService=e,this.voService=o,this.router=a,this.authResolver=s,this.entityStorageService=r,this.routePolicyService=_,this.items=[],this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.initNavItems(),this.loading=!1}initNavItems(){this.routePolicyService.canNavigate("organizations-members",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/members`,label:"MENU_ITEMS.VO.MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-groups",this.vo)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/groups`,label:"MENU_ITEMS.VO.GROUPS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources",this.vo)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.vo.id}/resources`,label:"MENU_ITEMS.VO.RESOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-applications",this.vo)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.vo.id}/applications`,label:"MENU_ITEMS.VO.APPLICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",this.vo)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.vo.id}/sponsoredMembers`,label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",this.vo)&&this.navItems.push({cssIcon:"perun-service-identity",url:`/organizations/${this.vo.id}/serviceAccounts`,label:"MENU_ITEMS.VO.SERVICE_MEMBERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-attributes",this.vo)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/attributes`,label:"MENU_ITEMS.VO.ATTRIBUTES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-statistics",this.vo)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.vo.id}/statistics`,label:"MENU_ITEMS.VO.STATISTICS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings",this.vo)&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.vo.id}/settings`,label:"MENU_ITEMS.VO.SETTINGS",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-overview"]],decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,ue,1,0,"mat-spinner",0),t.YNc(1,_e,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var me=c(4732),ge=c(81847),he=c(11717),Te=c(50301);function Ae(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,", "),t.qZA())}const fe=function(i){return["/organizations/",i]};function Ie(i,n){if(1&i&&(t.TgZ(0,"span"),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t.YNc(3,Ae,2,0,"span",1),t.qZA()),2&i){const e=n.$implicit,o=n.index,a=t.oxw();t.xp6(1),t.Q6J("perunWebAppsForceRouterLink",t.VKq(3,fe,e.id)),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Q6J("ngIf",a.vos.length>o+1)}}function be(i,n){1&i&&(t.TgZ(0,"span"),t._uU(1,"\u2026"),t.qZA())}let ve=(()=>{class i{constructor(){this.vos=[]}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-related-vos"]],inputs:{title:"title",vos:"vos"},decls:4,vars:5,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],["queryParamsHandling","merge",1,"vo-link","pointer",3,"perunWebAppsForceRouterLink"]],template:function(e,o){1&e&&(t._uU(0),t.ALo(1,"translate"),t.YNc(2,Ie,4,5,"span",0),t.YNc(3,be,2,0,"span",1)),2&e&&(t.hij("",t.lcZ(1,3,o.title),":\n"),t.xp6(2),t.Q6J("ngForOf",o.vos.slice(0,3)),t.xp6(1),t.Q6J("ngIf",o.vos.length>3))},directives:[g.sg,Te.Kd,g.O5],pipes:[d.X$],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Ee(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function Ce(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Se(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",15),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).removeVo()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}function xe(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.MEMBER_VOS")("vos",e.enrichedVo.memberVos)}}function Ze(i,n){if(1&i&&t._UZ(0,"app-related-vos",16),2&i){const e=t.oxw(2);t.Q6J("title","VO_DETAIL.RELATED_VOS.PARENT_VOS")("vos",e.enrichedVo.parentVos)}}const Ne=function(){return{color:"black"}},Oe=function(i){return["/organizations/",i]};function De(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,Ce,3,0,"button",10),t.YNc(11,Se,3,0,"button",11),t.qZA(),t.TgZ(12,"span",12),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.YNc(16,xe,1,2,"app-related-vos",13),t.YNc(17,Ze,1,2,"app-related-vos",13),t.qZA(),t.qZA(),t.qZA(),t._UZ(18,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,13,"VO_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(19,Ne))("svgIcon",0!==e.enrichedVo.memberVos.length?"perun-hierarchical-vo":"perun-vo-black"),t.xp6(4),t.Q6J("routerLink",t.VKq(20,Oe,e.vo.id)),t.xp6(1),t.hij(" ",e.vo.name," "),t.xp6(2),t.hij(" \xa0#",e.vo.id," "),t.xp6(1),t.Q6J("ngIf",e.editAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,15,"VO_DETAIL.ENTITY"),", ",t.lcZ(15,17,"VO_DETAIL.SHORT_NAME"),": ",e.vo.shortName+(e.enrichedVo.memberVos.length+e.enrichedVo.parentVos.length?",":"")," "),t.xp6(3),t.Q6J("ngIf",0!==e.enrichedVo.memberVos.length),t.xp6(1),t.Q6J("ngIf",0!==e.enrichedVo.parentVos.length)}}let Me=(()=>{class i extends((0,mt.T)()){constructor(e,o,a,s,r,_,A,v,R){super(),this.sideMenuService=e,this.voService=o,this.route=a,this.router=s,this.sideMenuItemService=r,this.dialog=_,this.authResolver=A,this.entityStorageService=v,this.reloadEntityDetail=R,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,gt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId);this.voService.getEnrichedVoById(o).subscribe(a=>{this.vo=a.vo,this.enrichedVo=a,this.entityStorageService.setEntity({id:this.vo.id,beanName:this.vo.beanName}),this.editAuth=this.authResolver.isAuthorized("updateVo_Vo_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("deleteVo_Vo_policy",[this.vo]),this.setMenuItems(),(0,m.sF)("vos",this.vo),(0,m.XI)(this.vo),this.loading=!1},()=>this.loading=!1)})}editVo(){const e=(0,m.kZ)();e.width="450px",e.data={theme:"vo-theme",vo:this.vo,dialogType:w.Eg.VO},this.dialog.open(w.rd,e).afterClosed().subscribe(a=>{a&&this.voService.getVoById(this.vo.id).subscribe(s=>{this.vo=s,this.setMenuItems()})})}setMenuItems(){const a=this.sideMenuItemService.parseVo(this.vo,0!==this.enrichedVo.memberVos.length,0!==this.enrichedVo.parentVos.length);this.sideMenuService.setAccessMenuItems([a])}removeVo(){const e=(0,m.kZ)();e.width="500px",e.data={theme:"vo-theme",vos:[this.vo]},this.dialog.open(he.o,e).afterClosed().subscribe(a=>{a&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(b.gz),t.Y36(b.F0),t.Y36(z.V),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.fb),t.Y36(X.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex","page-title-headtitle"],[1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle","svgIcon"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge","data-cy","vo-name-link",1,"vo-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","","aria-label","Edit Vo",3,"click",4,"ngIf"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],[3,"title","vos",4,"ngIf"],["mat-icon-button","","aria-label","Edit Vo",3,"click"],["mat-icon-button","","aria-label","Remove Vo","data-cy","delete-vo",3,"click"],[3,"title","vos"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,Ee,1,0,"mat-spinner",1),t.YNc(3,De,19,22,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading&&void 0!==o.vo))},directives:[W.W,g.O5,f.$g,P.Hw,x.gM,g.PC,b.yS,I.lW,ve,F.A],pipes:[d.X$],styles:[".shortname[_ngcontent-%COMP%]{font-size:medium}"],data:{animation:[O.Ji]}}),i})();var l=c(32075),Le=c(58964),Re=c(19352),N=c(9224),we=c(60526),ht=c(82322),D=c(98380),Tt=c(69773),At=c(21757),Ue=c(21330),ft=c(62383);function Ge(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-group-search-select",7),t.NdJ("groupSelected",function(a){return t.CHM(e),t.oxw().groupIsSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("firstSelectedGroup",e.selectedGroup)("groups",e.groups)}}function Pe(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function ye(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.NO_GROUPS_FOUND")))}function qe(i,n){1&i&&t._UZ(0,"th",17)}function Ve(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function Fe(i,n){1&i&&t._UZ(0,"th",17)}function Ye(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeStatus()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i"),t.ALo(2,"memberStatusIconColor"),t._uU(3),t.ALo(4,"memberStatusIcon"),t.qZA(),t.TgZ(5,"b",20),t._uU(6),t.ALo(7,"transformMemberStatus"),t.qZA(),t.YNc(8,Ye,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(1),t.Gre("material-icons vert-center mr-1 ",t.lcZ(2,6,e.selectedMember.groupStatus),""),t.xp6(2),t.hij(" ",t.lcZ(4,8,e.selectedMember.groupStatus)," "),t.xp6(3),t.hij(" ",t.lcZ(7,10,e.selectedMember.groupStatus)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Qe(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw(4).changeExpiration()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function ke(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"i",2),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.YNc(4,Qe,3,0,"button",21),t.qZA()),2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,2,e.expiration)," "),t.xp6(2),t.Q6J("ngIf",e.authResolver.isThisVoAdmin(e.vo.id)||e.authResolver.isThisGroupAdmin(e.selectedGroup.id))}}function Be(i,n){if(1&i&&(t.TgZ(0,"td",19),t.YNc(1,Je,9,12,"div",6),t.YNc(2,ke,5,4,"div",6),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf","Status"===e),t.xp6(1),t.Q6J("ngIf","Expiration"===e)}}function He(i,n){1&i&&t._UZ(0,"tr",23)}function je(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"table",10),t.ynx(2,11),t.YNc(3,qe,1,0,"th",12),t.YNc(4,Ve,2,1,"td",13),t.BQk(),t.ynx(5,14),t.YNc(6,Fe,1,0,"th",12),t.YNc(7,Be,3,2,"td",15),t.BQk(),t.YNc(8,He,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("dataSource",e.groupMembershipDataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns)}}let $e=(()=>{class i{constructor(e,o,a,s){this.groupsManager=e,this.authResolver=o,this.translate=a,this.dialog=s,this.noGroups=!1,this.groupMembershipDataSource=new l.by,this.expiration="",this.displayedColumns=["attName","attValue"]}ngOnChanges(){this.loading=!0,this.initLoading=!0,this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.groupsManager.getMemberGroups(this.member.id).subscribe(e=>{if(this.groups=e,0===this.groups.length)return void(this.noGroups=!0);const o=this.findInitiallySelectedGroupId();this.groupIsSelected(o),this.initLoading=!1})}findInitiallySelectedGroupId(){if(this.recentIds=(0,m.vL)("groups"),this.recentIds){const e=this.groups.find(o=>o.id===this.recentIds[0]);if(e)return e}return this.groups[0]}groupIsSelected(e){this.loading=!0,this.selectedGroup=e,this.groupsManager.getGroupRichMembersByIds(this.selectedGroup.id,[this.member.id],[Z.r.MEMBER_DEF_GROUP_EXPIRATION]).subscribe(o=>{this.selectedMember=o[0],this.expirationAtt=this.selectedMember.memberAttributes.find(a=>"groupMembershipExpiration"===a.baseFriendlyName),this.expirationAtt?(this.groupMembershipDataSource=new l.by(["Status","Expiration"]),this.expiration=this.expirationAtt.value?this.expirationAtt.value:this.translate.instant("MEMBER_DETAIL.OVERVIEW.NEVER_EXPIRES")):this.groupMembershipDataSource=new l.by(["Status"]),this.loading=!1})}changeExpiration(e=!1){const o=(0,m.kZ)();o.width="400px",o.data={memberId:this.member.id,groupId:this.selectedGroup.id,expirationAttr:this.expirationAtt,status:this.selectedMember.groupStatus,statusChanged:e},this.dialog.open(w.u3,o).afterClosed().subscribe(s=>{s&&this.groupIsSelected(this.selectedGroup)})}changeStatus(){const e=(0,m.kZ)();e.width="600px",e.data={member:this.selectedMember,voId:this.vo.id,groupId:this.selectedGroup.id},this.dialog.open(w.pf,e).afterClosed().subscribe(a=>{a&&(this.selectedMember=a,this.changeExpiration(!0))})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.x4),t.Y36(d.sK),t.Y36(p.uw))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview-groups"]],inputs:{vo:"vo",member:"member"},features:[t.TTD],decls:11,vars:7,consts:[[1,"mat-elevation-z3","groups-card","mt-4"],[1,"page-subtitle"],[1,"column-center"],[3,"firstSelectedGroup","groups","groupSelected",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[3,"firstSelectedGroup","groups","groupSelected"],[1,"mr-auto","ml-auto"],["alert_type","warn"],["mat-table","",1,"ml-auto","mr-auto",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],[1,"vert-top"],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",2),t.YNc(7,Ge,1,2,"perun-web-apps-group-search-select",3),t.YNc(8,Pe,1,0,"mat-spinner",4),t.YNc(9,ye,3,3,"perun-web-apps-alert",5),t.YNc(10,je,9,2,"div",6),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.GROUP_MEMBERSHIP")),t.xp6(3),t.Q6J("ngIf",!o.initLoading),t.xp6(1),t.Q6J("ngIf",(o.loading||o.initLoading)&&!o.noGroups),t.xp6(1),t.Q6J("ngIf",o.noGroups),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[N.a8,N.dk,N.n5,N.dn,g.O5,ht.h,f.$g,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,I.lW,P.Hw,l.nj,l.Gk],pipes:[d.X$,Tt.u,At.f,Ue.r,ft.M],styles:[".groups-card[_ngcontent-%COMP%]{max-width:400px}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.vert-center[_ngcontent-%COMP%]{vertical-align:middle!important}"]}),i})(),ze=(()=>{class i{transform(e){return(0,m.Cz)(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"attributeFriendlyName",type:i,pure:!0}),i})();var B=c(31359);function Xe(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function We(i,n){1&i&&t._UZ(0,"th",17)}function Ke(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[0],": ")}}function ti(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"attributeFriendlyName"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e),": ")}}function ei(i,n){if(1&i&&(t.TgZ(0,"td",18),t.YNc(1,Ke,2,1,"span",1),t.YNc(2,ti,3,3,"span",1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",null!==o.attributes.get(e)[0]),t.xp6(1),t.Q6J("ngIf",null===o.attributes.get(e)[0])}}function ii(i,n){1&i&&t._UZ(0,"th",17)}function oi(i,n){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.hij(" ",o.attributes.get(e)[1]," ")}}function ni(i,n){1&i&&t._UZ(0,"tr",20)}function ai(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card",5),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",6),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content",21),t.TgZ(7,"div",22),t.ALo(8,"translate"),t.TgZ(9,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).requestPwdReset()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(4),t.Oqu(t.lcZ(5,5,"MEMBER_DETAIL.OVERVIEW.RESET_PASSWORD")),t.xp6(3),t.Q6J("matTooltipDisabled",e.logins.length>0)("matTooltip",t.lcZ(8,7,"MEMBER_DETAIL.OVERVIEW.RESET_DISABLED")),t.xp6(2),t.Q6J("disabled",!e.logins.length),t.xp6(1),t.hij(" ",t.lcZ(11,9,"MEMBER_DETAIL.OVERVIEW.SEND_REQUEST")," ")}}function si(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.SPONSOR_NAME")," "))}function ri(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e.user)," ")}}function li(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.OVERVIEW.EXPIRATION_TABLE")," "))}function ci(i,n){if(1&i&&(t.TgZ(0,"td",33),t.TgZ(1,"span",34),t._uU(2),t.ALo(3,"parseDate"),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.validityTo))}}function pi(i,n){1&i&&t._UZ(0,"tr",35)}function ui(i,n){1&i&&t._UZ(0,"tr",20)}const It=function(){return["sponsors","expiration"]};function _i(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-card-content"),t.TgZ(1,"h6",26),t._uU(2),t.ALo(3,"translate"),t.TgZ(4,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).changeSponsors()}),t.TgZ(5,"mat-icon"),t._uU(6,"edit"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"table",28),t.ynx(8,29),t.YNc(9,si,3,3,"th",9),t.YNc(10,ri,3,3,"td",30),t.BQk(),t.ynx(11,31),t.YNc(12,li,3,3,"th",9),t.YNc(13,ci,4,3,"td",30),t.BQk(),t.YNc(14,pi,1,0,"tr",32),t.YNc(15,ui,1,0,"tr",13),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.hij(" ",t.lcZ(3,4,"MEMBER_DETAIL.OVERVIEW.SPONSORS"),": "),t.xp6(5),t.Q6J("dataSource",e.sponsorsDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(6,It)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(7,It))}}function di(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-card",24),t.TgZ(2,"mat-card-header"),t.TgZ(3,"mat-card-title"),t.TgZ(4,"h1",6),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"mat-card-subtitle",25),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,_i,16,8,"mat-card-content",1),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(5),t.Oqu(t.lcZ(6,3,"MEMBER_DETAIL.OVERVIEW.SPONSORSHIP")),t.xp6(3),t.hij(" ",t.lcZ(9,5,"MEMBER_DETAIL.OVERVIEW.SPONSORED_BY")," "),t.xp6(2),t.Q6J("ngIf",0!==e.sponsors.length)}}function mi(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",3),t.TgZ(2,"div",4),t.TgZ(3,"mat-card",5),t.TgZ(4,"mat-card-header"),t.TgZ(5,"mat-card-title"),t.TgZ(6,"h1",6),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"mat-card-content"),t.TgZ(10,"table",7),t.ynx(11,8),t.YNc(12,We,1,0,"th",9),t.YNc(13,ei,3,2,"td",10),t.BQk(),t.ynx(14,11),t.YNc(15,ii,1,0,"th",9),t.YNc(16,oi,2,1,"td",12),t.BQk(),t.YNc(17,ni,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(18,"div",4),t._UZ(19,"app-member-overview-membership",14),t._UZ(20,"app-member-overview-groups",14),t.qZA(),t.TgZ(21,"div",4),t.YNc(22,ai,12,11,"mat-card",15),t.YNc(23,di,11,7,"div",1),t.qZA(),t.qZA(),t.TgZ(24,"div"),t._UZ(25,"perun-web-apps-menu-buttons-field",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,11,"MEMBER_DETAIL.OVERVIEW.PERSONAL")),t.xp6(3),t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(2),t.Q6J("member",e.member)("vo",e.vo),t.xp6(1),t.Q6J("member",e.member)("vo",e.vo),t.xp6(2),t.Q6J("ngIf",e.pwdResetAuth),t.xp6(1),t.Q6J("ngIf",e.member.sponsored),t.xp6(2),t.Q6J("items",e.navItems)("size","small")}}let gi=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.attributesManager=e,this.membersService=o,this.usersManager=a,this.route=s,this.dialog=r,this.authResolver=_,this.storeService=A,this.routePolicyService=v,this.expiration="",this.logins=[],this.member=null,this.navItems=[],this.attributeNames=[],this.attributes=new Map,this.dataSource=new l.by,this.displayedColumns=["attName","attValue"],this.sponsors=[],this.sponsorsDataSource=new l.by,this.loading=!1}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.attributeNames=this.storeService.getMemberProfileAttributeNames(),this.membersService.getRichMemberWithAttributes(o).subscribe(a=>{const s=this.storeService.get("password_namespace_attributes").map(r=>{const _=r.split(":");return _[_.length-1]});this.attributesManager.getLogins(a.userId).subscribe(r=>{this.logins=r.filter(_=>s.includes(_.friendlyNameParameter)),this.member=a,this.initAttributes(),this.dataSource=new l.by(Array.from(this.attributes.keys())),this.vo={id:a.voId,beanName:"Vo"},this.pwdResetAuth=this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[this.vo,this.member]),this.member.sponsored&&this.authResolver.isAuthorized("getSponsorsForMember_Member_List_policy",[this.member])?this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(_=>{this.sponsors=_,this.sponsorsDataSource=new l.by(this.sponsors),this.initNavItems(),this.refreshData()}):(this.initNavItems(),this.refreshData())},()=>this.loading=!1)})})}requestPwdReset(){const e=(0,m.kZ)();e.width="400px",e.data={userId:this.member.userId,memberId:this.member.id,logins:this.logins},this.dialog.open(Le.m,e)}changeSponsors(){const e=(0,m.kZ)();e.width="650px",e.data={sponsors:this.sponsors,member:this.member,theme:"member-theme"},this.dialog.open(Re.H,e).afterClosed().subscribe(a=>{a&&(this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(s=>{this.member=s,this.member.sponsored&&this.usersManager.getSponsorsForMember(this.member.id,null).subscribe(r=>{this.sponsors=r,this.sponsorsDataSource.data=this.sponsors}),this.loading=!1}))})}initAttributes(){this.attributeNames.forEach(e=>{this.attributes.set(e,[null,"-"])}),this.filterAttributes()}filterAttributes(){null!==this.member.memberAttributes&&this.member.memberAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])}),null!==this.member.userAttributes&&this.member.userAttributes.forEach(e=>{this.attributeNames.includes(e.friendlyName)&&this.attributes.set(e.friendlyName,[e.displayName,e.value])})}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("members-groups",this.member)&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.member.voId}/members/${this.member.id}/groups`,label:"MENU_ITEMS.MEMBER.GROUPS",style:"member-btn"}),this.routePolicyService.canNavigate("members-applications",this.member)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.member.voId}/members/${this.member.id}/applications`,label:"MENU_ITEMS.MEMBER.APPLICATIONS",style:"member-btn"}),this.routePolicyService.canNavigate("members-resources",this.member)&&this.navItems.push({cssIcon:"perun-resource",url:`/organizations/${this.member.voId}/members/${this.member.id}/resources`,label:"MENU_ITEMS.MEMBER.RESOURCES",style:"member-btn"}),this.routePolicyService.canNavigate("members-attributes",this.member)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.vo.id}/members/${this.member.id}/attributes`,label:"MENU_ITEMS.MEMBER.ATTRIBUTES",style:"member-btn"})}refreshData(){this.loading=!0,this.membersService.getRichMemberWithAttributes(this.member.id).subscribe(e=>{this.member=e,this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(b.gz),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.d6),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"member-cards"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"page-subtitle"],["mat-table","",3,"dataSource"],["matColumnDef","attName"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","attValue"],["class","column-center","mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"member","vo"],["class","mat-elevation-z3",4,"ngIf"],[3,"items","size"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"column-center"],["mat-row",""],[1,"column-center"],[3,"matTooltipDisabled","matTooltip"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],[1,"mat-elevation-z3","mt-4"],[1,"mt-n3"],[1,"d-flex"],["mat-icon-button","",1,"ml-auto","mt-n2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","sponsors"],["mat-cell","",4,"matCellDef"],["matColumnDef","expiration"],["mat-header-row","",4,"matHeaderRowDef"],["mat-cell",""],[1,"font-italic"],["mat-header-row",""]],template:function(e,o){1&e&&(t.YNc(0,Xe,1,0,"mat-spinner",0),t.YNc(1,mi,26,13,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk,we.b,$e,x.gM,I.lW,N.$j,P.Hw,l.as,l.XQ,Y.L],pipes:[d.X$,ze,B.d,ft.M],styles:[".vert-center[_ngcontent-%COMP%]{vertical-align:inherit!important}.vert-top[_ngcontent-%COMP%]{vertical-align:top}.column-center[_ngcontent-%COMP%]{text-align:center}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top}.member-cards[_ngcontent-%COMP%]{margin:0 -1rem}"]}),i})();var hi=c(85243);function Ti(i,n){1&i&&t._UZ(0,"mat-spinner",2)}const Ai=function(i,n){return["/organizations",i,"groups",n]};function fi(i,n){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"a",4),t._uU(4),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SUBGROUP_INFO")," "),t.xp6(2),t.Q6J("routerLink",t.WLB(5,Ai,e.parentGroup.voId,e.parentGroup.id)),t.xp6(1),t.hij(" ",e.parentGroup.name," ")}}function Ii(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,fi,5,8,"p",1),t._UZ(2,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.parentGroup),t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let bi=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.route=e,this.groupService=o,this.voService=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,this.navItems=[],this.parentGroup=null,this.loading=!1}ngOnInit(){this.loading=!0,this.loadData()}loadData(){this.loading=!0,this.route.params.subscribe(e=>{const o=Number(e.voId),a=Number(e.groupId);this.voService.getVoById(o).subscribe(s=>{this.groupService.getGroupById(a).subscribe(r=>{if(this.group=r,this.entityStorageService.setEntity({id:r.id,voId:s.id,parentGroupId:r.parentGroupId,beanName:r.beanName}),(0,m.sF)("groups",this.group),(0,m.XI)(this.group,s.name),this.loadParentGroupData(this.group.parentGroupId),null==this.group.parentGroupId)return this.parentGroup=null,this.initNavItems(),void(this.loading=!1);this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)})}loadParentGroupData(e){null!=e&&this.groupService.getGroupById(e).subscribe(o=>{this.parentGroup=o,this.initNavItems(),this.loading=!1},()=>this.loading=!1)}initNavItems(){this.navItems=[],this.routePolicyService.canNavigate("groups-members",this.group)&&this.navItems.push({cssIcon:"perun-user",url:`/organizations/${this.group.voId}/groups/${this.group.id}/members`,label:"MENU_ITEMS.GROUP.MEMBERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-subgroups",this.group)&&"members"!==this.group.name&&this.navItems.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/subgroups`,label:"MENU_ITEMS.GROUP.SUBGROUPS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-resources",this.group)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/organizations/${this.group.voId}/groups/${this.group.id}/resources`,label:"MENU_ITEMS.GROUP.RESOURCES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-applications",this.group)&&this.navItems.push({cssIcon:"perun-applications",url:`/organizations/${this.group.voId}/groups/${this.group.id}/applications`,label:"MENU_ITEMS.GROUP.APPLICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-attributes",this.group)&&this.navItems.push({cssIcon:"perun-attributes",url:`/organizations/${this.group.voId}/groups/${this.group.id}/attributes`,label:"MENU_ITEMS.GROUP.ATTRIBUTES",style:"group-btn"}),this.routePolicyService.canNavigate("groups-statistics",this.group)&&this.navItems.push({cssIcon:"perun-statistics",url:`/organizations/${this.group.voId}/groups/${this.group.id}/statistics`,label:"MENU_ITEMS.GROUP.STATISTICS",style:"group-btn"});let e=!1;this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{e=!0},o=>{"HttpErrorResponse"!==o.name&&this.notificator.showRPCError(o)}),(e||this.routePolicyService.canNavigate("groups-settings",this.group))&&this.navItems.push({cssIcon:"perun-settings2",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings`,label:"MENU_ITEMS.GROUP.SETTINGS",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.ff),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"],["queryParamsHandling","merge",1,"group-link",3,"routerLink"]],template:function(e,o){1&e&&(t.YNc(0,Ti,1,0,"mat-spinner",0),t.YNc(1,Ii,3,3,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,b.yS,Y.L],pipes:[d.X$],styles:[""]}),i})();var vi=c(15592);let Ei=(()=>{class i{constructor(e){this.route=e}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var Ci=c(94856);let Si=(()=>{class i{constructor(e,o){this.route=e,this.router=o,this.backButtonRegex=new RegExp("/organizations/\\d+/settings/\\w+$"),this.backButtonDisplayed=!1,this.currentUrl=o.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl),o.events.subscribe(a=>{a instanceof b.m2&&(this.currentUrl=a.url,this.backButtonDisplayed=this.backButtonRegex.test(this.currentUrl))})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.voId=Number(e.voId)})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(b.F0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var K=c(12651);let xi=(()=>{class i{constructor(e){this.entityStorageService=e}ngOnInit(){this.vo=this.entityStorageService.getEntity()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[3,"entityId","entity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._UZ(4,"app-one-entity-attribute-page",1),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"VO_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(2),t.Q6J("entityId",o.vo.id)("entity","vo"))},directives:[K.t],pipes:[d.X$],styles:[""]}),i})();function Zi(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function Ni(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Oi=(()=>{class i{constructor(e,o,a,s){this.voService=e,this.router=o,this.entityStorageService=a,this.routePolicyService=s,this.items=[],this.loading=!1,this.isMemberOfSomeOrganization=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.isMemberOfSomeOrganization=0!==e.parentVos.length,this.initItems(),this.loading=!1})}initItems(){this.items=[],this.routePolicyService.canNavigate("organizations-settings-expiration",this.vo)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.vo.id}/settings/expiration`,label:"MENU_ITEMS.VO.EXPIRATION",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-managers",this.vo)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.vo.id}/settings/managers`,label:"MENU_ITEMS.VO.MANAGERS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",this.vo)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.vo.id}/settings/applicationForm`,label:"MENU_ITEMS.VO.APPLICATION_FORM",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-notifications",this.vo)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.vo.id}/settings/notifications`,label:"MENU_ITEMS.VO.NOTIFICATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-extsources",this.vo)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.vo.id}/settings/extsources`,label:"MENU_ITEMS.VO.EXTSOURCES",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",this.vo)&&this.items.push({cssIcon:"perun-hierarchical-vo",url:`/organizations/${this.vo.id}/settings/memberOrganizations`,label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",this.vo)&&this.isMemberOfSomeOrganization&&this.items.push({cssIcon:"perun-hierarchical-inclusion",url:`/organizations/${this.vo.id}/settings/hierarchicalInclusion`,label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(b.F0),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Zi,1,0,"mat-spinner",0),t.YNc(1,Ni,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var tt=c(32368),T=c(93075),j=c(79814),S=c(67322),y=c(98833),J=c(74107),Q=c(90508);const Di=["*"];let Mi=(()=>{class i{constructor(){this.modelChange=new t.vpe}ngAfterViewInit(){this.toggle.change.subscribe(()=>this.valueChanged())}valueChanged(){this.modelChange.emit(this.toggle.checked)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-settings-toggle-item"]],viewQuery:function(e,o){if(1&e&&t.Gf(tt.Rr,7),2&e){let a;t.iGM(a=t.CRH())&&(o.toggle=a.first)}},inputs:{title:"title",modelValue:"modelValue"},outputs:{modelChange:"modelChange"},ngContentSelectors:Di,decls:8,vars:5,consts:[[1,"mt-3"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"setting-item","clickable",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["toggle",""],[1,"ml-1"]],template:function(e,o){if(1&e){const a=t.EpF();t.F$t(),t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"label",2),t.NdJ("click",function(){return t.CHM(a),t.MAs(5).toggle()||o.valueChanged()}),t._uU(3),t.qZA(),t.TgZ(4,"mat-slide-toggle",3,4),t.NdJ("ngModelChange",function(r){return o.modelValue=r}),t.qZA(),t.qZA(),t.TgZ(6,"div",5),t.Hsn(7),t.qZA(),t.qZA()}if(2&e){const a=t.MAs(5);t.xp6(2),t.ekj("unselected-setting",!a.checked),t.xp6(1),t.hij(" ",o.title," "),t.xp6(1),t.Q6J("ngModel",o.modelValue),t.xp6(2),t.Q6J("@openClose",a.checked?"open":"closed")}},directives:[tt.Rr,T.JJ,T.On],styles:[""],data:{animation:[O.BQ]}}),i})();var H=c(77446);function Li(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.periodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Ri(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function wi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",27),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.periodDynamicUnit=a}),t.YNc(9,Ri,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.periodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.periodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Ui(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Gi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function Pi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function yi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",25),t.TgZ(1,"mat-form-field",26),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodStatic=a}),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-hint"),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.datePattern),t.s9C("placeholder",t.lcZ(3,4,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_INPUT_STATIC")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodStatic),t.xp6(3),t.Oqu(t.lcZ(6,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DP_HINT"))}}function Vi(i,n){if(1&i&&(t.TgZ(0,"mat-option",28),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e.value),t.xp6(1),t.Oqu(e.text)}}function Fi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",18),t.TgZ(1,"mat-form-field",19),t.TgZ(2,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamic=a}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(3).currentConfiguration.specialLoaPeriodDynamicUnit=a}),t.YNc(9,Vi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(3);t.xp6(2),t.s9C("pattern",e.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(3,6,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_VALUE")),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamic),t.xp6(4),t.Oqu(t.lcZ(7,8,"VO_MANAGEMENT.SETTINGS.EXPIRATION.AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",e.currentConfiguration.specialLoaPeriodDynamicUnit),t.xp6(1),t.Q6J("ngForOf",e.amountOptions)}}function Yi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",29),t.TgZ(1,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodType=a}),t.TgZ(2,"mat-radio-button",9,30),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"mat-radio-button",11,31),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA(),t.YNc(10,qi,7,8,"div",13),t.YNc(11,Fi,10,10,"div",14),t.TgZ(12,"div"),t.TgZ(13,"mat-checkbox",32),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).currentConfiguration.specialLoaPeriodExtendExpiredMembers=a}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(3),o=t.MAs(7),a=t.oxw(2);t.xp6(1),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodType),t.xp6(3),t.hij(" ",t.lcZ(5,7,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(9,9,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",e.checked),t.xp6(1),t.Q6J("ngIf",o.checked),t.xp6(2),t.Q6J("ngModel",a.currentConfiguration.specialLoaPeriodExtendExpiredMembers),t.xp6(1),t.hij(" ",t.lcZ(15,11,"VO_MANAGEMENT.SETTINGS.EXPIRATION.EXTEND_EXPIRED_MEMBERS_CHECKBOX")," ")}}function Ji(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",1),t.TgZ(1,"div",2),t.TgZ(2,"h1",3),t.NdJ("click",function(){return t.CHM(e),t.MAs(6).toggle()}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"mat-slide-toggle",4,5),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.enabled=a}),t.qZA(),t.qZA(),t.TgZ(7,"div"),t.TgZ(8,"label",6),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",7),t.TgZ(12,"mat-radio-group",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.periodType=a}),t.TgZ(13,"mat-radio-button",9,10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"mat-radio-button",11,12),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.qZA(),t.YNc(21,Li,7,8,"div",13),t.YNc(22,wi,10,10,"div",14),t.qZA(),t.TgZ(23,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoasEnabled=a}),t.ALo(24,"translate"),t.TgZ(25,"mat-form-field"),t.TgZ(26,"mat-placeholder"),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotAllowLoas=a}),t.YNc(30,Ui,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(31,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoasEnabled=a}),t.ALo(32,"translate"),t.TgZ(33,"mat-form-field"),t.TgZ(34,"mat-placeholder"),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.TgZ(37,"mat-select",16),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.doNotExtendLoas=a}),t.YNc(38,Gi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.TgZ(39,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodEnabled=a}),t.ALo(40,"translate"),t.TgZ(41,"div",18),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"input",20),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriod=a}),t.ALo(44,"translate"),t.qZA(),t.qZA(),t.TgZ(45,"mat-form-field"),t.TgZ(46,"mat-label"),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.TgZ(49,"mat-select",8),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.gracePeriodUnit=a}),t.YNc(50,Pi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(51,"app-settings-toggle-item",15),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoaPeriodEnabled=a}),t.ALo(52,"translate"),t.TgZ(53,"div",7),t.TgZ(54,"div"),t.TgZ(55,"mat-form-field"),t.TgZ(56,"mat-label"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"mat-select",8,21),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().currentConfiguration.specialLoa=a}),t.YNc(61,yi,2,2,"mat-option",17),t.qZA(),t.qZA(),t.YNc(62,Yi,16,13,"div",22),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"div",23),t.ALo(64,"translate"),t.TgZ(65,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().saveChanges()}),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(6),o=t.MAs(14),a=t.MAs(18),s=t.oxw();t.xp6(2),t.ekj("unselected-setting",!e.checked),t.xp6(1),t.hij(" ",t.lcZ(4,44,"VO_MANAGEMENT.SETTINGS.EXPIRATION.TITLE")," "),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.enabled),t.xp6(2),t.Q6J("@openClose",e.checked?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(10,46,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_LABEL")),t.xp6(3),t.Q6J("ngModel",s.currentConfiguration.periodType),t.xp6(3),t.hij(" ",t.lcZ(16,48,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_STATIC")," "),t.xp6(4),t.hij(" ",t.lcZ(20,50,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERIOD_TYPE_DYNAMIC")," "),t.xp6(2),t.Q6J("ngIf",o.checked),t.xp6(1),t.Q6J("ngIf",a.checked),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoasEnabled)("modelValue",s.currentConfiguration.doNotAllowLoasEnabled)("title",t.lcZ(24,52,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(28,54,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_ALLOW_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotAllowLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoasEnabled)("modelValue",s.currentConfiguration.doNotExtendLoasEnabled)("title",t.lcZ(32,56,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_LABEL")),t.xp6(4),t.Oqu(t.lcZ(36,58,"VO_MANAGEMENT.SETTINGS.EXPIRATION.DONT_EXTEND_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.doNotExtendLoas),t.xp6(1),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.gracePeriodEnabled)("modelValue",s.currentConfiguration.gracePeriodEnabled)("title",t.lcZ(40,60,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_PERIOD_LABEL")),t.xp6(4),t.s9C("pattern",s.dynamicAmountPattern),t.s9C("placeholder",t.lcZ(44,62,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_VALUE")),t.Q6J("ngModel",s.currentConfiguration.gracePeriod),t.xp6(4),t.Oqu(t.lcZ(48,64,"VO_MANAGEMENT.SETTINGS.EXPIRATION.GRACE_AMOUNT_TYPE")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.gracePeriodUnit),t.xp6(1),t.Q6J("ngForOf",s.amountOptions),t.xp6(1),t.Q6J("ngModel",s.currentConfiguration.specialLoaPeriodEnabled)("modelValue",s.currentConfiguration.specialLoaPeriodEnabled)("title",t.lcZ(52,66,"VO_MANAGEMENT.SETTINGS.EXPIRATION.LOA_PERIOD_LABEL")),t.xp6(6),t.Oqu(t.lcZ(58,68,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SPECIAL_LOA_SELECT")),t.xp6(2),t.Q6J("ngModel",s.currentConfiguration.specialLoa),t.xp6(2),t.Q6J("ngForOf",s.loas),t.xp6(1),t.Q6J("ngIf",null!==s.currentConfiguration.specialLoa),t.xp6(1),t.s9C("matTooltip",t.lcZ(64,70,"VO_MANAGEMENT.SETTINGS.EXPIRATION.PERMISSION_DENIED_HINT")),t.Q6J("matTooltipDisabled",s.expirationAttribute.writable)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",!s.areChangesMade()||!s.expirationAttribute.writable),t.xp6(1),t.hij(" ",t.lcZ(67,72,"VO_MANAGEMENT.SETTINGS.EXPIRATION.SAVE")," ")}}let bt=(()=>{class i{constructor(){this.saveAttribute=new t.vpe,this.loas=[0,1,2],this.datePattern="^(3[01]|[12][0-9]|0?[1-9])\\.(1[012]|0?[1-9])\\.$",this.dynamicAmountPattern="^[1-9]+$",this.amountOptions=[{value:"d",text:"Days"},{value:"m",text:"Months"},{value:"y",text:"Years"}]}ngOnInit(){const e=new Map;this.loas.forEach(o=>e.set(o,"")),this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value),this.currentConfiguration=this.unParseAttrValue(this.expirationAttribute.value)}ngOnChanges(e){e.expirationAttribute&&(this.initialConfiguration=this.unParseAttrValue(this.expirationAttribute.value))}saveChanges(){this.saveAttribute.emit(this.parseExpirationRulesAttribute())}areChangesMade(){const e=this.parseAttributeValueFromConfig(this.currentConfiguration),o=this.parseAttributeValueFromConfig(this.initialConfiguration);return null===o?null!==e:null===e||e.period!==o.period||e.gracePeriod!==o.gracePeriod||e.doNotExtendLoa!==o.doNotExtendLoa||e.doNotAllowLoa!==o.doNotAllowLoa||e.periodLoa!==o.periodLoa}parseExpirationRulesAttribute(){return this.expirationAttribute.value=this.parseAttributeValueFromConfig(this.currentConfiguration),this.expirationAttribute}parsePeriod(e){switch(e.periodType){case"dynamic":return this.parseDynamicPeriod(e);case"static":return this.parseStaticPeriod(e)}}createInitConfiguration(){const e=new Map;return this.loas.forEach(o=>e.set(o,"")),{enabled:!1,periodType:null,periodStatic:"",periodDynamic:"",periodDynamicUnit:"m",doNotAllowLoas:[],doNotAllowLoasEnabled:!1,doNotExtendLoas:[],doNotExtendLoasEnabled:!1,gracePeriodEnabled:!1,gracePeriod:null,gracePeriodUnit:null,specialLoaPeriodEnabled:!1,specialLoaPeriod:"",specialLoa:null,specialLoaPeriodType:null,specialLoaPeriodDynamic:"",specialLoaPeriodDynamicUnit:"m",specialLoaPeriodStatic:"",specialLoaPeriodExtendExpiredMembers:!1}}unParseAttrValue(e){let o=this.createInitConfiguration();return null==e||(void 0!==e.period&&e.period.length>0&&(o=this.setPeriodValues(e,o)),void 0!==e.doNotAllowLoa&&e.doNotAllowLoa.length>0&&(o=this.setDoNotAllowLoasValues(e,o)),void 0!==e.doNotExtendLoa&&e.doNotExtendLoa.length>0&&(o=this.setDoNotExtendLoasValues(e,o)),void 0!==e.gracePeriod&&e.gracePeriod.length>0&&(o=this.setGracePeriodValues(e,o)),void 0!==e.periodLoa&&e.periodLoa.length>0&&(o=this.setSpecialLoaPeriodValues(e,o))),o}setPeriodValues(e,o){if(o.enabled=!0,e.period.startsWith("+")){o.periodType="dynamic";const a=e.period.charAt(e.period.length-1);o.periodDynamic=e.period.substring(1,e.period.length-1),o.periodDynamicUnit=a}else o.periodType="static",o.periodStatic=e.period;return o}setDoNotAllowLoasValues(e,o){const a=[];return e.doNotAllowLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotAllowLoas=a,a.length>0&&(o.doNotAllowLoasEnabled=!0),o}setDoNotExtendLoasValues(e,o){const a=[];return e.doNotExtendLoa.split(",").forEach(s=>a.push(parseInt(s.trim(),10))),o.doNotExtendLoas=a,a.length>0&&(o.doNotExtendLoasEnabled=!0),o}setGracePeriodValues(e,o){o.gracePeriodEnabled=!0;const a=e.gracePeriod.charAt(e.gracePeriod.length-1);return o.gracePeriod=e.gracePeriod.substring(0,e.gracePeriod.length-1),o.gracePeriodUnit=a,o}setSpecialLoaPeriodValues(e,o){o.specialLoa=parseInt(e.periodLoa.substring(0,e.periodLoa.indexOf("|")),10),o.specialLoaPeriodEnabled=!0;let a=e.periodLoa.substring(e.periodLoa.indexOf("|")+1,e.periodLoa.length);if(a.startsWith("+")){a.endsWith(".")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="dynamic";const s=a.charAt(a.length-1);o.specialLoaPeriodDynamic=a.substring(1,a.length-1),o.specialLoaPeriodDynamicUnit=s}else a.endsWith("..")&&(o.specialLoaPeriodExtendExpiredMembers=!0,a=a.substring(0,a.length-1)),o.specialLoaPeriodType="static",o.specialLoaPeriodStatic=a;return o}parseDynamicPeriod(e){return"+"+e.periodDynamic+e.periodDynamicUnit}parseStaticPeriod(e){return e.periodStatic}parseDontAllowLoas(e){if(!e.doNotAllowLoasEnabled)return null;let o="";return e.doNotAllowLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseDontExtendLoas(e){if(!e.doNotExtendLoasEnabled)return null;let o="";return e.doNotExtendLoas.forEach(a=>o+=a.toString()+","),o.length>0&&(o=o.substring(0,o.length-1)),o.length>0?o:null}parseGracePeriod(e){return e.gracePeriodEnabled?e.gracePeriod+e.gracePeriodUnit:null}parseSpecialLoaPeriod(e){if(!e.specialLoaPeriodEnabled||!e.specialLoa)return null;let o=e.specialLoa.toString()+"|";switch(e.specialLoaPeriodType){case"static":o+=this.parseSpecialLoaPeriodStatic(e);break;case"dynamic":o+=this.parseSpecialLoaPeriodDynamic(e)}return null!=o&&e.specialLoaPeriodExtendExpiredMembers&&(o+="."),o}parseSpecialLoaPeriodStatic(e){return e.specialLoaPeriodStatic}parseSpecialLoaPeriodDynamic(e){return"+"+e.specialLoaPeriodDynamic+e.specialLoaPeriodDynamicUnit}parseAttributeValueFromConfig(e){if(!e.enabled)return null;const o=this.parsePeriod(e),a=this.parseDontAllowLoas(e),s=this.parseDontExtendLoas(e),r=this.parseGracePeriod(e),_=this.parseSpecialLoaPeriod(e),A={period:o};return null!==s&&(A.doNotExtendLoa=s),null!==a&&(A.doNotAllowLoa=a),null!==r&&(A.gracePeriod=r),null!==_&&(A.periodLoa=_),A}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-expiration-settings"]],inputs:{expirationAttribute:"expirationAttribute"},outputs:{saveAttribute:"saveAttribute"},features:[t.TTD],decls:1,vars:1,consts:[["class","card settings-card col-12 col-md-12 col-xl-6",4,"ngIf"],[1,"card","settings-card","col-12","col-md-12","col-xl-6"],[1,"d-flex","flex-row","align-items-baseline","justify-content-between"],[1,"settings-header",3,"click"],["color","primary",1,"ml-4",3,"ngModel","ngModelChange"],["mainToggle",""],[1,"setting-item","pt-2"],[1,"ml-1"],[3,"ngModel","ngModelChange"],["color","primary","value","static",1,"mr-3"],["staticPeriod",""],["color","primary","value","dynamic"],["dynamicPeriod",""],["class","form-container",4,"ngIf"],["class","d-flex flex-row",4,"ngIf"],["ngDefaultControl","",3,"ngModel","modelValue","title","ngModelChange"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],[1,"mr-2","amount-field"],["matInput","",3,"pattern","ngModel","placeholder","ngModelChange"],["specialLoaSelect",""],["class","mt-2",4,"ngIf"],[1,"ml-auto",3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","primary","mat-flat-button","",1,"ml-auto",3,"disabled","click"],[1,"form-container"],[1,"date-field"],["matInput","",3,"ngModel","pattern","placeholder","ngModelChange"],[3,"value"],[1,"mt-2"],["loaStaticRadioButton",""],["loaDynamicRadioButton",""],["color","primary",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&t.YNc(0,Ji,68,74,"div",0),2&e&&t.Q6J("ngIf",o.currentConfiguration)},directives:[g.O5,tt.Rr,T.JJ,T.On,j.VQ,j.U0,S.KE,y.Nt,T.Fj,T.c5,S.bx,S.hX,J.gD,g.sg,Q.ey,Mi,S.UY,H.oG,x.gM,I.lW],pipes:[d.X$],styles:[".period-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:1.5rem}.amount-field[_ngcontent-%COMP%]{width:80px}.date-field[_ngcontent-%COMP%]{width:100%}.settings-header[_ngcontent-%COMP%]{margin-top:.75rem;margin-bottom:.75rem;font-size:1.25rem;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.settings-card[_ngcontent-%COMP%]{padding:.5rem 1.5rem}"],data:{animation:[O.BQ]}}),i})();function Qi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let ki=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("VO_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setVoAttribute({vo:this.vo.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>{this.notificator.showRPCError(o.error,this.errorMessage)})}loadSettings(){this.attributesManager.getVoAttributeByName(this.vo.id,Z.r.VO_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Qi,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""],data:{animation:[O.BQ]}}),i})();var Bi=c(55857),vt=c(28361);let Hi=(()=>{class i{constructor(e,o,a,s){this.dialog=e,this.voService=o,this.guiAuthResolver=a,this.entityStorageService=s,this.availableRoles=[],this.type="Vo",this.theme="vo-theme"}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Vo")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.vo)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},directives:[vt.s],styles:[""]}),i})();function ji(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function $i(i,n){1&i&&(t.TgZ(0,"mat-option",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APPROVABLE_GROUP_APP_USER")))}function zi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"textarea",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw(2).reason=a}),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.RE_SEND_NOTIFICATION.REASON"),": "),t.xp6(3),t.Q6J("ngModel",e.reason)}}function Xi(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"mat-select",9),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().mailType=a}),t.TgZ(5,"mat-option",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.YNc(8,$i,3,3,"mat-option",11),t.TgZ(9,"mat-option",12),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-option",13),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"mat-option",14),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"mat-option",15),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.TgZ(21,"mat-option",16),t._uU(22),t.ALo(23,"translate"),t.qZA(),t.qZA(),t.qZA(),t.YNc(24,zi,5,4,"div",17),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,10,"DIALOGS.RE_SEND_NOTIFICATION.SELECT"),": "),t.xp6(3),t.Q6J("value",e.mailType),t.xp6(2),t.Oqu(t.lcZ(7,12,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_USER")),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.Oqu(t.lcZ(11,14,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_CREATED_VO_ADMIN")),t.xp6(3),t.Oqu(t.lcZ(14,16,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.MAIL_VALIDATION")),t.xp6(3),t.Oqu(t.lcZ(17,18,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_APPROVED_USER")),t.xp6(3),t.Oqu(t.lcZ(20,20,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_REJECTED_USER")),t.xp6(3),t.Oqu(t.lcZ(23,22,"DIALOGS.RE_SEND_NOTIFICATION.NOTIFICATION_TYPE.APP_ERROR_VO_ADMIN")),t.xp6(2),t.Q6J("ngIf","APP_REJECTED_USER"===e.mailType)}}let Wi=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.mailType="APP_CREATED_USER",this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"APP_REJECTED_USER"===this.mailType?this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType,reason:this.reason}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1):this.registrarManager.sendMessage({appId:this.data.applicationId,mailType:this.mailType}).subscribe(()=>{this.translate.get("DIALOGS.RE_SEND_NOTIFICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-re-send-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["disableOptionCentering","",3,"value","valueChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],[4,"ngIf"],["value","APPROVABLE_GROUP_APP_USER"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ji,1,0,"mat-spinner",1),t.YNc(5,Xi,25,24,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Gre("",o.theme,"}"),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.RE_SEND_NOTIFICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.RE_SEND_NOTIFICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.RE_SEND_NOTIFICATION.SEND")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,J.gD,Q.ey,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Ki(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function to(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"mat-form-field",8),t.TgZ(4,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().reason=a}),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.REJECT_APPLICATION.TEXT")," "),t.xp6(3),t.Q6J("ngModel",e.reason)}}let eo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.translate=a,this.notificator=s,this.registrarManager=r,this.reason="",this.loading=!1}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,this.registrarManager.rejectApplication(this.data.applicationId,this.reason).subscribe(()=>{this.translate.get("DIALOGS.REJECT_APPLICATION.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(d.sK),t.Y36(u.V6),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-reject-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ki,1,0,"mat-spinner",1),t.YNc(5,to,5,4,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REJECT_APPLICATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REJECT_APPLICATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REJECT_APPLICATION.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.JJ,T.On,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function io(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function oo(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.INVALID_EMAIL")))}function no(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t.TgZ(1,"label"),t._UZ(2,"input",9),t.qZA(),t.YNc(3,oo,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Q6J("formControl",e.emailControl),t.xp6(1),t.Q6J("ngIf",e.emailControl.invalid)}}function ao(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.EMPTY_INPUT")))}function so(i,n){if(1&i&&(t.TgZ(0,"mat-form-field"),t._UZ(1,"input",10),t.YNc(2,ao,3,3,"mat-error",8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("formControl",e.inputControl),t.xp6(1),t.Q6J("ngIf",e.inputControl.invalid)}}function ro(i,n){if(1&i&&(t.TgZ(0,"div",7),t.YNc(1,no,4,2,"mat-form-field",8),t.YNc(2,so,3,2,"mat-form-field",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",null!==e.emailControl),t.xp6(1),t.Q6J("ngIf",null!==e.inputControl)}}let lo=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translateService=s,this.registrarService=r,this.loading=!1,this.inputControl=null,this.emailControl=null}static getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}ngOnInit(){this.theme=this.data.theme,this.formItemData=this.data.formItemData,this.itemName=i.getLabel(this.formItemData.formItem),this.itemName.toLowerCase().includes("mail")?this.emailControl=new T.NI(this.formItemData.value,[T.kI.required,T.kI.email]):this.inputControl=new T.NI(this.formItemData.value,[T.kI.required])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.formItemData.value=null!==this.inputControl?this.inputControl.value:this.emailControl.value,this.registrarService.updateFormItemData({appId:this.data.applicationId,data:{id:this.formItemData.id,formItem:this.formItemData.formItem,shortname:this.formItemData.shortname,value:this.formItemData.value,assuranceLevel:this.formItemData.assuranceLevel,prefilledValue:this.formItemData.prefilledValue}}).subscribe(()=>{this.notificator.showSuccess(this.translateService.instant("DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-application-form-item-data-dialog"]],decls:13,vars:16,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl"],["matInput","","required","","type","text",3,"formControl"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,io,1,0,"mat-spinner",1),t.YNc(5,ro,3,2,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.AsE(" ",t.lcZ(3,10,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.TITLE")," ",o.itemName," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,12,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading||null!==o.inputControl&&o.inputControl.invalid||null!==o.emailControl&&o.emailControl.invalid),t.xp6(1),t.hij(" ",t.lcZ(12,14,"DIALOGS.EDIT_APPLICATION_FORM_ITEM_DATA.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,T.Q7,T.JJ,T.oH,S.TO,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var et=c(4834),co=c(43157);function po(i,n){if(1&i&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.hij(" #",e.application.id," ")}}function uo(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function _o(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).verifyApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY")," "))}function mo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",16),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).approveApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE")," "))}function go(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).rejectApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECT")," "))}function ho(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteApplication()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE")," "))}function To(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).resendNotification()}),t.TgZ(1,"i",14),t._uU(2," mail_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SEND_NOTIFICATION")," "))}function Ao(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function fo(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.TgZ(5,"span",10),t._uU(6),t.ALo(7,"translate"),t.qZA(),t._uU(8),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_FOR_GROUP")),t.xp6(2),t.hij(": ",e.application.group.name," "),t.xp6(2),t.Oqu(t.lcZ(7,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPLICATION_IN_VO")),t.xp6(2),t.hij(": ",e.application.vo.name," ")}}function Io(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3," Initial "),t.qZA())}function bo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"restore"),t.qZA(),t._uU(3," Extension "),t.qZA())}function vo(i,n){1&i&&(t.TgZ(0,"span"),t.TgZ(1,"mat-icon",19),t._uU(2,"nat"),t.qZA(),t._uU(3," Embedded "),t.qZA())}function Eo(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",21),t._uU(3,"clear"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.REJECTED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function Co(i,n){if(1&i&&(t.TgZ(0,"div",20),t.TgZ(1,"mat-card-title"),t.TgZ(2,"i",22),t._uU(3,"done"),t.qZA(),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div"),t.TgZ(7,"span",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t._uU(10),t.ALo(11,"date"),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(4),t.AsE(" ",t.lcZ(5,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVED_BY"),": ",e.getModifiedAtName(e.application.modifiedBy),""),t.xp6(4),t.Oqu(t.lcZ(9,6,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(11,8,e.application.modifiedAt,"d.M.y H:mm:ss")," ")}}function So(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"span",10),t._uU(2),t.ALo(3,"translate"),t.qZA(),t._uU(4),t.qZA()),2&i){const e=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,2,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.MAIL")),t.xp6(2),t.hij(": ",e.userMail," ")}}function xo(i,n){1&i&&t._UZ(0,"th",31)}function Zo(i,n){if(1&i&&(t.TgZ(0,"td",32),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",o.getLabel(e.formItem)," ")}}function No(i,n){1&i&&t._UZ(0,"th",31)}function Oo(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",35),t.NdJ("click",function(){t.CHM(e);const a=t.oxw().$implicit;return t.oxw(3).editApplicationData(a)}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function Do(i,n){if(1&i&&(t.TgZ(0,"td",33),t._uU(1),t.YNc(2,Oo,3,0,"button",34),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3);t.xp6(1),t.hij(" ",e.value," "),t.xp6(1),t.Q6J("ngIf",("NEW"===o.application.state||"VERIFIED"===o.application.state)&&"EMBEDDED_GROUP_APPLICATION"!==e.formItem.type)}}function Mo(i,n){1&i&&t._UZ(0,"tr",36)}function Lo(i,n){1&i&&t._UZ(0,"tr",37)}function Ro(i,n){if(1&i&&(t.TgZ(0,"table",23),t.ynx(1,24),t.YNc(2,xo,1,0,"th",25),t.YNc(3,Zo,2,1,"td",26),t.BQk(),t.ynx(4,27),t.YNc(5,No,1,0,"th",25),t.YNc(6,Do,3,2,"td",28),t.BQk(),t.YNc(7,Mo,1,0,"tr",29),t.YNc(8,Lo,1,0,"tr",30),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("dataSource",e.dataSource),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function wo(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,_o,3,3,"button",7),t.YNc(2,mo,3,3,"button",7),t.YNc(3,go,3,3,"button",8),t.YNc(4,ho,3,3,"button",8),t.YNc(5,To,5,3,"button",9),t.YNc(6,Ao,5,4,"div",4),t.YNc(7,fo,9,8,"div",4),t.TgZ(8,"div"),t.TgZ(9,"span",10),t._uU(10),t.ALo(11,"translate"),t.qZA(),t._uU(12,": "),t._UZ(13,"span",11),t.ALo(14,"applicationState"),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",10),t._uU(17),t.ALo(18,"translate"),t.qZA(),t._uU(19,": "),t.YNc(20,Io,4,0,"span",4),t.YNc(21,bo,4,0,"span",4),t.YNc(22,vo,4,0,"span",4),t.qZA(),t.YNc(23,Eo,12,11,"div",12),t.YNc(24,Co,12,11,"div",12),t.TgZ(25,"div",13),t.TgZ(26,"mat-card-title"),t.TgZ(27,"i",14),t._uU(28,"redo"),t.qZA(),t._uU(29),t.ALo(30,"translate"),t.ALo(31,"userFullName"),t.qZA(),t.YNc(32,So,5,4,"div",4),t.TgZ(33,"div"),t.TgZ(34,"span",10),t._uU(35),t.ALo(36,"translate"),t.qZA(),t._uU(37),t.qZA(),t.TgZ(38,"div"),t.TgZ(39,"span",10),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._uU(42),t.qZA(),t.TgZ(43,"div"),t.TgZ(44,"span",10),t._uU(45),t.ALo(46,"translate"),t.qZA(),t._uU(47),t.ALo(48,"date"),t.qZA(),t.YNc(49,Ro,9,3,"table",15),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf","NEW"===e.application.state&&e.verifyAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.approveAuth),t.xp6(1),t.Q6J("ngIf",("VERIFIED"===e.application.state||"NEW"===e.application.state)&&e.rejectAuth),t.xp6(1),t.Q6J("ngIf",("REJECTED"===e.application.state||"NEW"===e.application.state)&&e.deleteAuth),t.xp6(1),t.Q6J("ngIf",e.resendAuth),t.xp6(1),t.Q6J("ngIf",!e.application.group),t.xp6(1),t.Q6J("ngIf",e.application.group),t.xp6(3),t.Oqu(t.lcZ(11,25,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.STATE")),t.xp6(3),t.Q6J("outerHTML",t.lcZ(14,27,e.application.state),t.oJD),t.xp6(4),t.Oqu(t.lcZ(18,29,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TYPE")),t.xp6(3),t.Q6J("ngIf","INITIAL"===e.application.type),t.xp6(1),t.Q6J("ngIf","EXTENSION"===e.application.type),t.xp6(1),t.Q6J("ngIf","EMBEDDED"===e.application.type),t.xp6(1),t.Q6J("ngIf","REJECTED"===e.application.state),t.xp6(1),t.Q6J("ngIf","APPROVED"===e.application.state),t.xp6(5),t.AsE(" ",t.lcZ(30,31,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.SUBMITTED_BY"),": ",null===e.application.user?e.submittedBy():t.lcZ(31,33,e.application.user),""),t.xp6(3),t.Q6J("ngIf",e.userMail),t.xp6(3),t.Oqu(t.lcZ(36,35,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.EXT_SRC")),t.xp6(2),t.hij(": ",e.application.extSourceName," "),t.xp6(3),t.Oqu(t.lcZ(41,37,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.LOA")),t.xp6(2),t.hij(": ",e.application.extSourceLoa," "),t.xp6(3),t.Oqu(t.lcZ(46,39,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DATE")),t.xp6(2),t.hij(": ",t.xi3(48,41,e.application.createdAt,"d.M.y H:mm:ss")," "),t.xp6(2),t.Q6J("ngIf",0!==e.userData.length)}}let it=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarManager=e,this.dialog=o,this.translate=a,this.route=s,this.notificator=r,this.router=_,this.authResolver=A,this.usersService=v,this.userData=[],this.displayedColumns=["label","value"],this.loading=!0}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{this.route.parent.params.subscribe(o=>{this.dialogTheme=o.groupId?"group-theme":o.memberId?"member-theme":"vo-theme";const a=Number(e.applicationId);this.registrarManager.getApplicationById(a).subscribe(s=>{this.application=s,"EMBEDDED"===this.application.type&&this.application.user?this.usersService.getRichUserWithAttributes(this.application.user.id).subscribe(r=>{const _=r.userAttributes.find(A=>"preferredMail"===A.friendlyName);this.userMail=null==_?void 0:_.value,this.setAuthRights(),this.loading=!1}):this.registrarManager.getApplicationDataById(this.application.id).subscribe(r=>{this.userData=r,this.dataSource=new l.by(this.userData),this.setAuthRights(),this.loading=!1})})})})}setAuthRights(){"group-theme"===this.dialogTheme?(this.verifyAuth=this.authResolver.isAuthorized("group-verifyApplication_int_policy",[this.application.group]),this.approveAuth=this.authResolver.isAuthorized("group-approveApplicationInternal_int_policy",[this.application.group]),this.rejectAuth=this.authResolver.isAuthorized("group-rejectApplication_int_String_policy",[this.application.group]),this.deleteAuth=this.authResolver.isAuthorized("group-deleteApplication_Application_policy",[this.application.group]),this.resendAuth=this.authResolver.isAuthorized("group-sendMessage_Application_MailType_String_policy",[this.application.group])):(this.verifyAuth=this.authResolver.isAuthorized("vo-verifyApplication_int_policy",[this.application.vo]),this.approveAuth=this.authResolver.isAuthorized("vo-approveApplicationInternal_int_policy",[this.application.vo]),this.rejectAuth=this.authResolver.isAuthorized("vo-rejectApplication_int_String_policy",[this.application.vo]),this.deleteAuth=this.authResolver.isAuthorized("vo-deleteApplication_Application_policy",[this.application.vo]),this.resendAuth=this.authResolver.isAuthorized("vo-sendMessage_Application_MailType_String_policy",[this.application.vo]))}getLabel(e){return null!==e.i18n.en.label&&0!==e.i18n.en.label.length?e.i18n.en.label:e.shortname}submittedBy(){return this.application.createdBy.slice(this.application.createdBy.lastIndexOf("=")+1,this.application.createdBy.length)}getModifiedAtName(e){const o=e.lastIndexOf("/CN=");if(-1!==o){const a=e.slice(o+4,e.length).replace("/unstructuredName="," ");return-1!==a.lastIndexOf("\\")?e.slice(e.lastIndexOf("=")+1,e.length):a}return e}resendNotification(){var e;const o=(0,m.kZ)();o.width="500px",o.data={applicationId:this.application.id,theme:this.dialogTheme,groupId:null===(e=this.application.group)||void 0===e?void 0:e.id},this.dialog.open(Wi,o)}deleteApplication(){const e=(0,m.kZ)();e.width="450px",e.data={items:[this.application.id],title:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_TITLE",description:"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_APPLICATION_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarManager.deleteApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.DELETE_MESSAGE").subscribe(s=>{this.notificator.showSuccess(s),this.router.navigateByUrl(this.router.url.substring(0,this.router.url.lastIndexOf("/")))})})})}rejectApplication(){const e=(0,m.kZ)();e.width="500px",e.data={applicationId:this.application.id,theme:this.dialogTheme},this.dialog.open(eo,e).afterClosed().subscribe(()=>{this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(a=>{this.application=a,this.loading=!1},()=>this.loading=!1)})}approveApplication(){this.loading=!0,this.registrarManager.approveApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.APPROVE_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}verifyApplication(){this.registrarManager.verifyApplication(this.application.id).subscribe(()=>{this.translate.get("VO_DETAIL.APPLICATION.APPLICATION_DETAIL.VERIFY_MESSAGE").subscribe(e=>{this.notificator.showSuccess(e)}),this.loading=!0,this.registrarManager.getApplicationById(this.application.id).subscribe(e=>{this.application=e,this.loading=!1})})}editApplicationData(e){const o=(0,m.kZ)();o.width="600px",o.data={theme:this.dialogTheme,applicationId:this.application.id,formItemData:e},this.dialog.open(lo,o)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(p.uw),t.Y36(d.sK),t.Y36(b.gz),t.Y36(u.V6),t.Y36(b.F0),t.Y36(u.x4),t.Y36(h.Fv))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-detail"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:7,vars:6,consts:[[1,"page-subtitle"],["class","text-muted",4,"ngIf"],[1,"mb-4"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"text-muted"],[1,"ml-auto","mr-auto"],["color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2 mb-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"font-weight-bold"],[3,"outerHTML"],["class","card p-3 mt-2",4,"ngIf"],[1,"card","p-4","mt-2"],[1,"material-icons"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"click"],["mat-stroked-button","",1,"mr-2","mb-2",3,"click"],[1,"align-text-top"],[1,"card","p-3","mt-2"],[1,"material-icons","red"],[1,"material-icons","green"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","label"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","word-break-all","mat-cell","",4,"matCellDef"],["class","h-50","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell","",1,"word-break-all"],["aria-label","Edit Application data","mat-icon-button","",3,"click",4,"ngIf"],["aria-label","Edit Application data","mat-icon-button","",3,"click"],["mat-header-row","",1,"h-50"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"h2",0),t._uU(1),t.ALo(2,"translate"),t.YNc(3,po,2,1,"span",1),t.qZA(),t._UZ(4,"mat-divider",2),t.YNc(5,uo,1,0,"mat-spinner",3),t.YNc(6,wo,50,44,"div",4)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,4,"VO_DETAIL.APPLICATION.APPLICATION_DETAIL.TITLE")," "),t.xp6(2),t.Q6J("ngIf",!!o.application),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,et.d,f.$g,I.lW,P.Hw,N.n5,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,co.h,g.uU,B.d],styles:[""]}),i})();var Uo=c(75234),Go=c(37240);let Po=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:0,template:function(e,o){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[F.A],styles:[""],data:{animation:[O.Ji]}}),i})();var M=c(53251),Et=c(19191);function yo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"GROUP_DETAIL.ENTITY")," ")}function qo(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.group.id)("entity","group")}}function Vo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"MEMBER_DETAIL.ENTITY")," ")}function Fo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","member")}}function Yo(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Vo,3,6,"ng-template",1),t.YNc(2,Fo,1,3,"ng-template",2),t.qZA())}function Jo(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"GROUP_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function Qo(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","group")("firstEntityId",e.group.id)("secondEntity","resource")}}function ko(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Jo,3,6,"ng-template",1),t.YNc(2,Qo,1,3,"ng-template",2),t.qZA())}let Bo=(()=>{class i{constructor(e,o){this.authResolver=e,this.entityStorageService=o}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.groupResourceAttAuth=this.authResolver.isAuthorized("getResourceAssignments_Group_policy",[this.group]),this.groupMemberAttAuth=this.authResolver.isAuthorized("getCompleteRichMembers_Group_List_List_List_boolean_policy",[this.group])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:10,vars:5,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,yo,2,3,"ng-template",1),t.YNc(7,qo,1,2,"ng-template",2),t.qZA(),t.YNc(8,Yo,3,0,"mat-tab",3),t.YNc(9,ko,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"GROUP_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.groupMemberAttAuth),t.xp6(1),t.Q6J("ngIf",o.groupResourceAttAuth))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})();function Ho(i,n){1&i&&t._UZ(0,"mat-spinner",2)}function jo(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let $o=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.sideMenuService=e,this.groupService=o,this.router=a,this.guiAuthResolver=s,this.apiRequest=r,this.attributesManager=_,this.notificator=A,this.entityStorageService=v,this.routePolicyService=R,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/expiration`,label:"MENU_ITEMS.GROUP.EXPIRATION",style:"group-btn"})},e=>{"HttpErrorResponse"!==e.name&&this.notificator.showRPCError(e)}),this.routePolicyService.canNavigate("groups-settings-managers",this.group)&&this.items.push({cssIcon:"perun-manager",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/managers`,label:"MENU_ITEMS.GROUP.MANAGERS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",this.group)&&this.items.push({cssIcon:"perun-application-form",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/applicationForm`,label:"MENU_ITEMS.GROUP.APPLICATION_FORM",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-notifications",this.group)&&this.items.push({cssIcon:"perun-notification",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/notifications`,label:"MENU_ITEMS.GROUP.NOTIFICATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-relations",this.group)&&this.items.push({cssIcon:"perun-group",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/relations`,label:"MENU_ITEMS.GROUP.RELATIONS",style:"group-btn"}),this.routePolicyService.canNavigate("groups-settings-extsources",this.group)&&this.items.push({cssIcon:"perun-external-sources",url:`/organizations/${this.group.voId}/groups/${this.group.id}/settings/extsources`,label:"MENU_ITEMS.GROUP.EXTSOURCES",style:"group-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.ff),t.Y36(b.F0),t.Y36(u.x4),t.Y36(u.F5),t.Y36(h.H8),t.Y36(u.V6),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,o){1&e&&(t.YNc(0,Ho,1,0,"mat-spinner",0),t.YNc(1,jo,2,2,"div",1)),2&e&&(t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Y.L],styles:[""]}),i})();var zo=c(10369),Xo=c(21963),Wo=c(28820);function Ko(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function tn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchToInitial()}),t.TgZ(1,"i",11),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_INITIAL")," "))}function en(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).switchToExtension()}),t.TgZ(1,"i",11),t._uU(2,"cached"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.SWITCH_EXTENSION")," "))}function on(i,n){if(1&i&&(t.TgZ(0,"mat-option",12),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function an(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function sn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",19),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,nn,2,1,"mat-icon",21),t.YNc(8,an,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function rn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function ln(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function cn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"input",24),t._UZ(6,"br"),t._UZ(7,"input",19),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,rn,2,1,"mat-icon",21),t.YNc(10,ln,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function pn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",26),t._uU(2),t._UZ(3,"br"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e,"")}}function un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function _n(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function dn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"form",18),t.YNc(5,pn,4,2,"div",9),t._UZ(6,"input",25),t.ALo(7,"translate"),t.qZA(),t.qZA(),t.TgZ(8,"div",20),t.YNc(9,un,2,1,"mat-icon",21),t.YNc(10,_n,2,1,"mat-icon",21),t.TgZ(11,"span",22),t._uU(12),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.s9C("value",t.lcZ(7,7,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION")),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function mn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"span",27),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("innerHTML",o.getLocalizedLabel(e),t.oJD)}}function gn(i,n){if(1&i&&(t.TgZ(0,"option"),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Tn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function An(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",28),t.YNc(6,gn,2,1,"option",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,hn,2,1,"mat-icon",21),t.YNc(9,Tn,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function In(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function bn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t._UZ(4,"textarea",29),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,fn,2,1,"mat-icon",21),t.YNc(7,In,2,1,"mat-icon",21),t.TgZ(8,"span",22),t._uU(9),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function vn(i,n){if(1&i&&(t.TgZ(0,"option",34),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e," ")}}function En(i,n){1&i&&(t.TgZ(0,"div",35),t.TgZ(1,"form"),t._UZ(2,"input",36),t.qZA(),t.qZA())}function Cn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Sn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function xn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",30),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(2).$implicit;return t.oxw(2).mapForCombobox[s.id]=a}),t.TgZ(6,"option",31),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,vn,2,1,"option",32),t.qZA(),t.YNc(10,En,3,0,"div",33),t.qZA(),t.qZA(),t.TgZ(11,"div",20),t.YNc(12,Cn,2,1,"mat-icon",21),t.YNc(13,Sn,2,1,"mat-icon",21),t.TgZ(14,"span",22),t._uU(15),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("ngModel",o.mapForCombobox[e.id])("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,9,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),t.xp6(2),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(1),t.Q6J("ngIf","true"===o.mapForCombobox[e.id]),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Zn(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"input",37),t._uU(2),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(3).$implicit;t.xp6(1),t.Q6J("disabled","ALWAYS"===o.disabled),t.xp6(1),t.hij(" ",e," ")}}function Nn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function On(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Dn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t.YNc(6,Zn,3,2,"div",9),t.qZA(),t.qZA(),t.qZA(),t.TgZ(7,"div",20),t.YNc(8,Nn,2,1,"mat-icon",21),t.YNc(9,On,2,1,"mat-icon",21),t.TgZ(10,"span",22),t._uU(11),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("ngForOf",o.getLocalizedOptions(e)),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Mn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Ln(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Rn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"form",35),t._UZ(6,"input",37),t._uU(7," example group1 "),t._UZ(8,"br"),t._UZ(9,"input",37),t._uU(10," example group2 "),t._UZ(11,"br"),t._UZ(12,"input",37),t._uU(13," example group3 "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(14,"div",20),t.YNc(15,Mn,2,1,"mat-icon",21),t.YNc(16,Ln,2,1,"mat-icon",21),t.TgZ(17,"span",22),t._uU(18),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(3),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function wn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Un(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Gn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,wn,2,1,"mat-icon",39),t.YNc(4,Un,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Pn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function yn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",40),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function qn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"button",38),t._uU(2),t.qZA(),t.YNc(3,Pn,2,1,"mat-icon",39),t.YNc(4,yn,2,1,"mat-icon",39),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(1),t.hij(" ",o.getLocalizedLabel(e)," "),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden)}}function Vn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Fn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}function Yn(i,n){if(1&i&&(t.TgZ(0,"div",16),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t.TgZ(5,"select",41),t.TgZ(6,"option",42),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"option",43),t._uU(10,"(GMT -12:00) Eniwetok, Kwajalein"),t.qZA(),t.TgZ(11,"option",44),t._uU(12,"(GMT -11:00) Midway Island, Samoa"),t.qZA(),t.TgZ(13,"option",45),t._uU(14,"(GMT -10:00) Hawaii"),t.qZA(),t.TgZ(15,"option",46),t._uU(16,"(GMT -9:30) Taiohae"),t.qZA(),t.TgZ(17,"option",47),t._uU(18,"(GMT -9:00) Alaska"),t.qZA(),t.TgZ(19,"option",48),t._uU(20,"(GMT -8:00) Pacific Time (US & Canada)"),t.qZA(),t.TgZ(21,"option",49),t._uU(22,"(GMT -7:00) Mountain Time (US & Canada)"),t.qZA(),t.TgZ(23,"option",50),t._uU(24," (GMT -6:00) Central Time (US & Canada), Mexico City "),t.qZA(),t.TgZ(25,"option",51),t._uU(26," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),t.qZA(),t.TgZ(27,"option",52),t._uU(28,"(GMT -4:30) Caracas"),t.qZA(),t.TgZ(29,"option",53),t._uU(30,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),t.qZA(),t.TgZ(31,"option",54),t._uU(32,"(GMT -3:30) Newfoundland"),t.qZA(),t.TgZ(33,"option",55),t._uU(34,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),t.qZA(),t.TgZ(35,"option",56),t._uU(36,"(GMT -2:00) Mid-Atlantic"),t.qZA(),t.TgZ(37,"option",57),t._uU(38,"(GMT -1:00) Azores, Cape Verde Islands"),t.qZA(),t.TgZ(39,"option",58),t._uU(40," (GMT) Western Europe Time, London, Lisbon, Casablanca "),t.qZA(),t.TgZ(41,"option",59),t._uU(42,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),t.qZA(),t.TgZ(43,"option",60),t._uU(44,"(GMT +2:00) Kaliningrad, South Africa"),t.qZA(),t.TgZ(45,"option",61),t._uU(46,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),t.qZA(),t.TgZ(47,"option",62),t._uU(48,"(GMT +3:30) Tehran"),t.qZA(),t.TgZ(49,"option",63),t._uU(50,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),t.qZA(),t.TgZ(51,"option",64),t._uU(52,"(GMT +4:30) Kabul"),t.qZA(),t.TgZ(53,"option",65),t._uU(54," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),t.qZA(),t.TgZ(55,"option",66),t._uU(56,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),t.qZA(),t.TgZ(57,"option",67),t._uU(58,"(GMT +5:45) Kathmandu, Pokhara"),t.qZA(),t.TgZ(59,"option",68),t._uU(60,"(GMT +6:00) Almaty, Dhaka, Colombo"),t.qZA(),t.TgZ(61,"option",69),t._uU(62,"(GMT +6:30) Yangon, Mandalay"),t.qZA(),t.TgZ(63,"option",70),t._uU(64,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),t.qZA(),t.TgZ(65,"option",71),t._uU(66,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),t.qZA(),t.TgZ(67,"option",72),t._uU(68,"(GMT +8:45) Eucla"),t.qZA(),t.TgZ(69,"option",73),t._uU(70,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),t.qZA(),t.TgZ(71,"option",74),t._uU(72,"(GMT +9:30) Adelaide, Darwin"),t.qZA(),t.TgZ(73,"option",75),t._uU(74,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),t.qZA(),t.TgZ(75,"option",76),t._uU(76,"(GMT +10:30) Lord Howe Island"),t.qZA(),t.TgZ(77,"option",77),t._uU(78,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),t.qZA(),t.TgZ(79,"option",78),t._uU(80,"(GMT +11:30) Norfolk Island"),t.qZA(),t.TgZ(81,"option",79),t._uU(82,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),t.qZA(),t.TgZ(83,"option",80),t._uU(84,"(GMT +12:45) Chatham Islands"),t.qZA(),t.TgZ(85,"option",81),t._uU(86,"(GMT +13:00) Apia, Nukualofa"),t.qZA(),t.TgZ(87,"option",82),t._uU(88,"(GMT +14:00) Line Islands, Tokelau"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(89,"div",20),t.YNc(90,Vn,2,1,"mat-icon",21),t.YNc(91,Fn,2,1,"mat-icon",21),t.TgZ(92,"span",22),t._uU(93),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("disabled","ALWAYS"===e.disabled),t.xp6(2),t.hij(" ",t.lcZ(8,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "),t.xp6(83),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function Qn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const kn=function(){return["Example 1","Example 2"]},Ct=function(i){return{id:0,beanName:"Attribute",namespace:"",value:i}};function Bn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-list",83),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,Jn,2,1,"mat-icon",21),t.YNc(8,Qn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Ct,t.DdM(5,kn))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Hn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"lock"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.disabledTooltip(e))}}function jn(i,n){if(1&i&&(t.TgZ(0,"mat-icon",23),t._uU(1,"visibility_off"),t.qZA()),2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("matTooltip",o.hiddenTooltip(e))}}const $n=function(){return{key1:"value 1",key2:"value 2"}};function zn(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",17),t.TgZ(2,"span",18),t._uU(3),t.qZA(),t.TgZ(4,"div",18),t._UZ(5,"perun-web-apps-attribute-value-map",83),t.qZA(),t.qZA(),t.TgZ(6,"div",20),t.YNc(7,Hn,2,1,"mat-icon",21),t.YNc(8,jn,2,1,"mat-icon",21),t.TgZ(9,"span",22),t._uU(10),t.qZA(),t.qZA(),t.qZA()),2&i){const e=t.oxw(2).$implicit,o=t.oxw(2);t.xp6(3),t.Oqu(o.getLocalizedLabel(e)),t.xp6(2),t.Q6J("attribute",t.VKq(6,Ct,t.DdM(5,$n))),t.xp6(2),t.Q6J("ngIf","NEVER"!==e.disabled),t.xp6(1),t.Q6J("ngIf","NEVER"!==e.hidden),t.xp6(2),t.Oqu(o.getLocalizedHint(e))}}function Xn(i,n){if(1&i&&(t.TgZ(0,"div",14),t.YNc(1,sn,11,5,"div",15),t.YNc(2,cn,13,6,"div",15),t.YNc(3,dn,13,9,"div",15),t.YNc(4,mn,2,1,"div",2),t.YNc(5,An,12,6,"div",15),t.YNc(6,bn,10,5,"div",15),t.YNc(7,xn,16,11,"div",15),t.YNc(8,Dn,12,5,"div",15),t.YNc(9,Rn,19,7,"div",15),t.YNc(10,Gn,5,4,"div",15),t.YNc(11,qn,5,4,"div",2),t.YNc(12,Yn,94,8,"div",15),t.YNc(13,Bn,11,8,"div",2),t.YNc(14,zn,11,8,"div",2),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",("TEXTFIELD"===e.type||"VALIDATED_EMAIL"===e.type||"USERNAME"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","PASSWORD"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","RADIO"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf",("HEADING"===e.type||"HTML_COMMENT"===e.type)&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SELECTIONBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TEXTAREA"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","COMBOBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","CHECKBOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","TIMEZONE"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","LIST_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden),t.xp6(1),t.Q6J("ngIf","MAP_INPUT_BOX"===e.type&&"ALWAYS"!==e.hidden)}}function Wn(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,Xn,15,14,"div",13),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.isValid(e))}}function Kn(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",4),t.YNc(2,tn,5,3,"button",5),t.YNc(3,en,5,3,"button",5),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-label"),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-select",6),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().currentLanguage=a}),t.YNc(9,on,4,6,"mat-option",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(10,"div",8),t.YNc(11,Wn,2,1,"div",9),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",!e.initialPage),t.xp6(1),t.Q6J("ngIf",e.initialPage),t.xp6(3),t.Oqu(t.lcZ(7,6,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),t.xp6(2),t.Q6J("value",e.currentLanguage),t.xp6(1),t.Q6J("ngForOf",e.languages),t.xp6(2),t.Q6J("ngForOf",e.applicationFormItems)}}let St=(()=>{class i{constructor(e,o,a){this.route=e,this.translate=o,this.store=a,this.loading=!0,this.applicationFormItems=[],this.currentLanguage="en",this.languages=["en"],this.initialPage=!0,this.mapForCombobox=new Map}ngOnInit(){this.languages=this.store.get("supported_languages"),this.route.queryParamMap.subscribe(e=>{this.applicationFormItems=JSON.parse(e.get("applicationFormItems")),this.loading=!1})}switchToInitial(){this.initialPage=!0}switchToExtension(){this.initialPage=!1}getLocalizedOptions(e){if(e.i18n[this.currentLanguage]){const o=e.i18n[this.currentLanguage].options;if(null!==o&&""!==o){const a=[];for(const s of o.split("|"))a.push(s.split("#")[1]);return a}}return[]}isValid(e){if(e.forDelete)return!1;for(const o of e.applicationTypes)if("INITIAL"===o&&this.initialPage||"EXTENSION"===o&&!this.initialPage)return!0;return!1}disabledTooltip(e){let o,a,s;switch(e.disabled){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.DISABLED_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.disabledDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}hiddenTooltip(e){let o,a,s;switch(e.hidden){case"ALWAYS":return this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN");case"IF_PREFILLED":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_PREFILLED"),`${o} ${a} ${s}`;case"IF_EMPTY":return o=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.HIDDEN_WHEN"),a=null===e.hiddenDependencyItemId?"":this.applicationFormItems.find(r=>r.id===e.hiddenDependencyItemId).shortname,s=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.DISABLED_HIDDEN_ICON.IS_EMPTY"),`${o} ${a} ${s}`;default:return""}}getLocalizedLabel(e){var o;return(null===(o=e.i18n[this.currentLanguage])||void 0===o?void 0:o.label)?e.i18n[this.currentLanguage].label+(e.required?"*":""):e.shortname+(e.required?"*":"")}getLocalizedHint(e){return e.i18n[this.currentLanguage]?e.i18n[this.currentLanguage].help:""}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(d.sK),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-preview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"w-100","mb-2"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"card","mb-4","p-5"],[4,"ngFor","ngForOf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"material-icons"],[3,"value"],["class","mb-2",4,"ngIf"],[1,"mb-2"],["class","d-flex",4,"ngIf"],[1,"d-flex"],[1,"w-50","d-flex"],[1,"w-50"],["type","text",1,"w-100",3,"disabled"],[1,"w-50","d-flex","left"],["class","pointer",3,"matTooltip",4,"ngIf"],[1,"ml-2"],[1,"pointer",3,"matTooltip"],["type","text",1,"mb-1","w-100",3,"disabled"],["type","reset",3,"disabled","value"],["name","temp","type","radio",3,"disabled"],[3,"innerHTML"],[1,"w-100",3,"disabled"],[1,"w-50",3,"disabled"],[1,"w-100",3,"ngModel","disabled","ngModelChange"],["selected","","value","true"],["value","false",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["value","false"],[1,"w-100"],["type","text"],["type","checkbox",3,"disabled"],["color","accent","mat-flat-button","",3,"disabled"],["class","pointer left",3,"matTooltip",4,"ngIf"],[1,"pointer","left",3,"matTooltip"],["id","timezone-offset","name","timezone_offset",1,"w-100",3,"disabled"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Ko,1,0,"mat-spinner",1),t.YNc(4,Kn,12,8,"div",2)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_PAGE.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,I.lW,S.KE,S.hX,J.gD,g.sg,Q.ey,P.Hw,x.gM,T._Y,T.JL,T.F,T.YN,T.Kr,T.EJ,T.JJ,T.On,Xo.H,Wo.$],pipes:[d.X$,g.gd],styles:[".left[_ngcontent-%COMP%]{margin-left:10px}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function ta(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"MEMBER_DETAIL.ENTITY")," ")}function ea(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.memberId)("entity","member")}}function ia(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"GROUP_DETAIL.ENTITY")," ")}function oa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","group")}}function na(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,ia,3,6,"ng-template",1),t.YNc(2,oa,1,3,"ng-template",2),t.qZA())}function aa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"MEMBER_DETAIL.ENTITY")," - ",t.lcZ(2,4,"RESOURCE_DETAIL.ENTITY")," ")}function sa(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","member")("firstEntityId",e.memberId)("secondEntity","resource")}}function ra(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,aa,3,6,"ng-template",1),t.YNc(2,sa,1,3,"ng-template",2),t.qZA())}function la(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"ADMIN_USER.ENTITY")," ")}function ca(i,n){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",5),2&i){const e=t.oxw();t.Q6J("entityId",e.member.userId)("entity","user")}}function pa(i,n){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"ADMIN_USER.ENTITY")," - ",t.lcZ(2,4,"FACILITY_DETAIL.ENTITY")," ")}function ua(i,n){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",6),2&i){const e=t.oxw(2);t.Q6J("firstEntity","user")("firstEntityId",e.member.userId)("secondEntity","facility")}}function _a(i,n){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,pa,3,6,"ng-template",1),t.YNc(2,ua,1,3,"ng-template",2),t.qZA())}let da=(()=>{class i{constructor(e,o,a){this.route=e,this.authResolver=o,this.memberManager=a}ngOnInit(){this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.memberGroupAttAuth=this.authResolver.isAuthorized("getMemberGroups_Member_policy",[this.member]),this.memberResourceAttAuth=this.authResolver.isAuthorized("getAssignedResourcesWithStatus_Member_policy",[this.member]),this.userFacilityAttAuth=this.authResolver.isAuthorized("getAssignedFacilities_User_policy",[{beanName:"User",id:o.userId}])})})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(u.x4),t.Y36(h.uq))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-attributes"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:6,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[1,"mb-2"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,ta,2,3,"ng-template",1),t.YNc(7,ea,1,2,"ng-template",2),t.qZA(),t.YNc(8,na,3,0,"mat-tab",3),t.YNc(9,ra,3,0,"mat-tab",3),t.TgZ(10,"mat-tab",4),t.YNc(11,la,2,3,"ng-template",1),t.YNc(12,ca,1,2,"ng-template",2),t.qZA(),t.YNc(13,_a,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"MEMBER_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",o.memberGroupAttAuth),t.xp6(1),t.Q6J("ngIf",o.memberResourceAttAuth),t.xp6(4),t.Q6J("ngIf",o.userFacilityAttAuth))},directives:[M.SP,M.uX,M.uD,M.Vc,K.t,g.O5,Et.Y],pipes:[d.X$],styles:[""]}),i})(),ma=(()=>{class i{constructor(e,o,a,s,r){this.sideMenuService=e,this.voService=o,this.authResolver=a,this.entityStorageService=s,this.routePolicyService=r,this.items=[]}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.initItems()}initItems(){this.routePolicyService.canNavigate("organizations-resources-preview",this.vo)&&this.items.push({cssIcon:"perun-resource",url:`/organizations/${this.vo.id}/resources/preview`,label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-tags",this.vo)&&this.items.push({cssIcon:"perun-resource-tags",url:`/organizations/${this.vo.id}/resources/tags`,label:"MENU_ITEMS.VO.RESOURCE_TAGS",style:"vo-btn"}),this.routePolicyService.canNavigate("organizations-resources-states",this.vo)&&this.items.push({cssIcon:"perun-resources-state",url:`/organizations/${this.vo.id}/resources/states`,label:"MENU_ITEMS.VO.RESOURCE_STATES",style:"vo-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(V.D),t.Y36(h.YF),t.Y36(u.x4),t.Y36(u.fb),t.Y36(u.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-overview"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:2,vars:2,consts:[[3,"items","size"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",0),t.qZA()),2&e&&(t.xp6(1),t.Q6J("items",o.items)("size","small"))},directives:[Y.L],styles:[""]}),i})();var ga=c(68056),ha=c(24219),E=c(20449),Ta=c(17584);function Aa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function fa(i,n){1&i&&t._UZ(0,"th",15)}function Ia(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.tagName)}}function ba(i,n){1&i&&t._UZ(0,"tr",17)}function va(i,n){1&i&&t._UZ(0,"tr",18)}function Ea(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,fa,1,0,"th",11),t.YNc(10,Ia,2,1,"td",12),t.BQk(),t.YNc(11,ba,1,0,"tr",13),t.YNc(12,va,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.DELETE_RESOURCE_TAG.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_RESOURCE_TAG.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Ca=(()=>{class i{constructor(e,o,a){this.dialogRef=e,this.data=o,this.resourceManager=a,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.tagsForDelete)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;for(const e of this.data.tagsForDelete)this.resourceManager.deleteResourceTag({resourceTag:e}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-resource-tag-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Aa,1,0,"mat-spinner",1),t.YNc(5,Ea,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.DELETE_RESOURCE_TAG.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_RESOURCE_TAG.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_RESOURCE_TAG.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var C=c(10036),G=c(96214),L=c(7434),Sa=c(17672);function xa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().create()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.RESOURCES.TAGS.CREATE_BUTTON"),"\n"))}function Za(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().deleteTag()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.RESOURCES.TAGS.DELETE_BUTTON"),"\n")}}function Na(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Oa(i,n){if(1&i&&t._UZ(0,"app-resources-tags-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("entity","vo")("resourceTags",e.resourceTag)("filterValue",e.filterValue)("selection",e.selection)("tableId",e.tableId)}}let Da=(()=>{class i{constructor(e,o,a,s,r,_){this.resourceManager=e,this.dialog=o,this.notificator=a,this.translator=s,this.authResolver=r,this.entityStorageService=_,this.loading=!1,this.resourceTag=[],this.selection=new E.Ov(!0,[]),this.tableId=C.O7,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.updateData()}deleteTag(){const e=(0,m.kZ)();e.width="450px",e.data={tagsForDelete:this.selection.selected,theme:"vo-theme"},this.dialog.open(Ca,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}create(){const e=(0,m.kZ)();e.width="450px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Ta.p,e).afterClosed().subscribe(a=>{a&&(this.translator.get("VO_DETAIL.RESOURCES.TAGS.CREATE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.updateData())})}updateData(){this.loading=!0,this.selection.clear(),this.resourceManager.getAllResourcesTagsForVo(this.vo.id).subscribe(e=>{this.resourceTag=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}setAuthRights(){this.displayedColumns=[],this.createAuth=this.authResolver.isAuthorized("createResourceTag_ResourceTag_Vo_policy",[this.vo]),this.deleteAuth=this.authResolver.isAuthorized("deleteResourceTag_ResourceTag_policy",[this.vo]),this.editAuth=this.authResolver.isAuthorized("updateResourceTag_ResourceTag_policy",[this.vo]),this.displayedColumns=this.deleteAuth?["select","id","name"]:["id","name"],this.editAuth&&this.displayedColumns.push("edit")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.xk),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-resources-tags"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","entity","resourceTags","filterValue","selection","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.updateData()}),t.qZA(),t.YNc(4,xa,3,3,"button",2),t.YNc(5,Za,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Na,1,0,"mat-spinner",5),t.YNc(8,Oa,1,6,"app-resources-tags-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.RESOURCES.TAGS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.createAuth),t.xp6(1),t.Q6J("ngIf",o.deleteAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.RESOURCES.TAGS.SEARCH"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,Sa.o],pipes:[d.X$],styles:[""]}),i})();function Ma(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-expiration-settings",1),t.NdJ("saveAttribute",function(a){return t.CHM(e),t.oxw().saveExpirationAttribute(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("expirationAttribute",e.expirationAttribute)}}let La=(()=>{class i{constructor(e,o,a,s,r){this.attributesManager=e,this.translate=o,this.notificator=a,this.apiRequest=s,this.entityStorageService=r,this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.SUCCESS_MESSAGE").subscribe(_=>this.successMessage=_),this.translate.get("GROUP_DETAIL.SETTINGS.EXPIRATION.ERROR_MESSAGE").subscribe(_=>this.errorMessage=_)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.loadSettings()}saveExpirationAttribute(e){this.apiRequest.dontHandleErrorForNext(),this.attributesManager.setGroupAttribute({group:this.group.id,attribute:e}).subscribe(()=>{this.loadSettings(),this.notificator.showSuccess(this.successMessage)},o=>this.notificator.showRPCError(o.error,this.errorMessage))}loadSettings(){this.attributesManager.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(e=>{this.expirationAttribute=e})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(u.F5),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-expiration"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:1,consts:[[3,"expirationAttribute","saveAttribute",4,"ngIf"],[3,"expirationAttribute","saveAttribute"]],template:function(e,o){1&e&&t.YNc(0,Ma,1,1,"app-expiration-settings",0),2&e&&t.Q6J("ngIf",void 0!==o.expirationAttribute)},directives:[g.O5,bt],styles:[""]}),i})(),Ra=(()=>{class i{constructor(e,o){this.guiAuthResolver=e,this.entityStorageService=o,this.availableRoles=[],this.selected="user",this.type="Group",this.theme="group-theme"}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Group")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-managers"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:1,vars:4,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","theme"]],template:function(e,o){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",o.group)("availableRoles",o.availableRoles)("complementaryObjectType",o.type)("theme",o.theme)},directives:[vt.s],styles:[""]}),i})();function wa(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ua(i,n){1&i&&t._UZ(0,"th",15)}function Ga(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(o.getMailType(e))}}function Pa(i,n){1&i&&t._UZ(0,"tr",17)}function ya(i,n){1&i&&t._UZ(0,"tr",18)}function qa(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ua,1,0,"th",11),t.YNc(10,Ga,2,1,"td",12),t.BQk(),t.YNc(11,Pa,1,0,"tr",13),t.YNc(12,ya,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CONFIRMATION")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let xt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.translate=s,this.registrarService=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.mails)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,this.data.groupId)for(const e of this.data.mails)this.registrarService.deleteApplicationMailForGroup(this.data.groupId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1);else for(const e of this.data.mails)this.registrarService.deleteApplicationMailForVo(this.data.voId,e.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(d.sK),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-notification-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,wa,1,0,"mat-spinner",1),t.YNc(5,qa,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.APPLICATION_FORM_DELETE_MAIL.SUBMIT")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Va=c(74533);function Fa(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ya(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",8),t.TgZ(1,"div"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"textarea",9),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().mailFooter=a}),t.qZA(),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij("",t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.LABEL"),":"),t.xp6(3),t.Q6J("ngModel",e.mailFooter)("cdkTextareaAutosize",!0),t.xp6(2),t.hij(" ",t.lcZ(8,6,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.DESCRIPTION")," ")}}let Zt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.attributesManager=o,this.translateService=a,this.notificator=s,this.data=r,this.mailFooter="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.data.groupId?this.getFooterForGroup():this.getFooterForVo(),this.loading=!1}submit(){this.loading=!0,this.mailAttribute.value=this.mailFooter,this.data.groupId?this.attributesManager.setGroupAttribute({group:this.data.groupId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1):this.attributesManager.setVoAttribute({vo:this.data.voId,attribute:this.mailAttribute}).subscribe(()=>{this.notificationSuccess(),this.dialogRef.close()},()=>this.loading=!1)}cancel(){this.dialogRef.close()}getFooterForVo(){this.attributesManager.getVoAttributeByName(this.data.voId,Z.r.VO_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}getFooterForGroup(){this.attributesManager.getGroupAttributeByName(this.data.groupId,Z.r.GROUP_DEF_MAIL_FOOTER).subscribe(e=>{this.mailAttribute=e,this.editAuth=this.mailAttribute.writable,this.mailFooter=e.value?e.value:""})}notificationSuccess(){this.translateService.get("DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.H8),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-edit-email-footer-dialog"]],decls:15,vars:20,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","cdkTextareaAutosize","ngModelChange"],[1,"mt-2","font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Fa,1,0,"mat-spinner",1),t.YNc(5,Ya,9,8,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"div",5),t.ALo(11,"translate"),t.TgZ(12,"button",6),t.NdJ("click",function(){return o.submit()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,12,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,14,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.CANCEL_BUTTON")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(11,16,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("disabled",o.loading||!o.editAuth),t.xp6(1),t.hij(" ",t.lcZ(14,18,"DIALOGS.NOTIFICATIONS_EDIT_FOOTER.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,S.KE,y.Nt,T.Fj,Va.IC,T.JJ,T.On,p.H8,I.lW,x.gM],pipes:[d.X$],styles:[""]}),i})();var Ja=c(53435);function Qa(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",1),t.TgZ(2,"button",2),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().addTag("{"+s[0]+"}")}),t.ALo(3,"translate"),t._uU(4),t.qZA(),t.TgZ(5,"span",3),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.qZA(),t._UZ(8,"mat-divider",4),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(2),t.s9C("matTooltip",t.lcZ(3,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAG_HINT")),t.xp6(2),t.hij(" ",e[0]," "),t.xp6(2),t.hij(" ",t.lcZ(7,5,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL."+e[1])," ")}}let ka=(()=>{class i{constructor(){this.tags=[],this.addedTag=new t.vpe}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-section"]],inputs:{tags:"tags"},outputs:{addedTag:"addedTag"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[1,"d-flex","flex-row"],["mat-flat-button","","matTooltipPosition","above",1,"tag-text","w-25",3,"matTooltip","click"],[1,"w-75"],[1,"mt-1","mb-1"]],template:function(e,o){1&e&&t.YNc(0,Qa,9,7,"div",0),2&e&&t.Q6J("ngForOf",o.tags)},directives:[g.sg,I.lW,x.gM,et.d],pipes:[d.X$],styles:[".tag-text[_ngcontent-%COMP%]{font-size:.9rem;font-weight:700}"]}),i})(),Ba=(()=>{class i{constructor(){this.addedTag=new t.vpe,this.applicationRelatedTags=[],this.userRelatedTags=[],this.validationLinksUsersTags=[],this.applicationLinksUsersTags=[],this.applicationLinksAdministratorsTags=[],this.perunLinksAdministratorsTags=[],this.userInvitationsTags=[]}ngOnInit(){this.getApplicationRelatedTags(),this.getUserRelatedTags(),this.getValidationLinksUsersTags(),this.getApplicationLinksUsersTags(),this.getApplicationLinksAdministratorsTags(),this.getPerunLinksAdministratorsTags(),this.getUserInvitationsTags()}getApplicationRelatedTags(){const e=[];e.push(["appId","APPID_DESCRIPTION"]),e.push(["actor","ACTOR_DESCRIPTION"]),e.push(["extSource","EXTSOURCE_DESCRIPTION"]),e.push(["voName","VONAME_DESCRIPTION"]),e.push(["groupName","GROUPNAME_DESCRIPTION"]),e.push(["mailFooter","MAILFOOTER_DESCRIPTION"]),e.push(["errors","ERRORS_DESCRIPTION"]),e.push(["customMessage","CUSTOMMESSAGE_DESCRIPTION"]),e.push(["fromApp-itemName","FROMAPPITEMNAME_DESCRIPTION"]),this.applicationRelatedTags=e}getUserRelatedTags(){const e=[];e.push(["firstName","FIRSTNAME_DESCRIPTION"]),e.push(["lastName","LASTNAME_DESCRIPTION"]),e.push(["displayName","DISPLAYNAME_DESCRIPTION"]),e.push(["mail","MAIL_DESCRIPTION"]),e.push(["phone","PHONE_DESCRIPTION"]),e.push(["login-namespace","LOGINNAMESPACE_DESCRIPTION"]),e.push(["membershipExpiration","MEMBERSHIPEXPIRATION_DESCRIPTION"]),this.userRelatedTags=e}getValidationLinksUsersTags(){const e=[];e.push(["validationLink","VALIDATIONLINK_DESCRIPTION"]),e.push(["validationLink-krb","VALIDATIONKRB_DESCRIPTION"]),e.push(["validationLink-fed","VALIDATIONFED_DESCRIPTION"]),e.push(["validationLink-cert","VALIDATIONCERT_DESCRIPTION"]),e.push(["validationLink-non","VALIDATIONNON_DESCRIPTION"]),e.push(["redirectUrl","REDIRECTURL_DESCRIPTION"]),this.validationLinksUsersTags=e}getApplicationLinksUsersTags(){const e=[];e.push(["appGuiUrl","APPGUIURL_DESCRIPTION"]),e.push(["appGuiUrl-krb","APPGUIURLKRB_DESCRIPTION"]),e.push(["appGuiUrl-fed","APPGUIURLFED_DESCRIPTION"]),e.push(["appGuiUrl-cert","APPGUIURLCERT_DESCRIPTION"]),e.push(["appGuiUrl-non","APPGUIURLNON_DESCRIPTION"]),this.applicationLinksUsersTags=e}getApplicationLinksAdministratorsTags(){const e=[];e.push(["appDetailUrl","APPDETAILURL_DESCRIPTION"]),e.push(["appDetailUrl-krb","APPDETAILURLKRB_DESCRIPTION"]),e.push(["appDetailUrl-fed","APPDETAILURLFED_DESCRIPTION"]),e.push(["appDetailUrl-cert","APPDETAILURLCERT_DESCRIPTION"]),this.applicationLinksAdministratorsTags=e}getPerunLinksAdministratorsTags(){const e=[];e.push(["perunGuiUrl","PERUNGUIURL_DESCRIPTION"]),e.push(["perunGuiUrl-krb","PERUNGUIURLKRB_DESCRIPTION"]),e.push(["perunGuiUrl-fed","PERUNGUIURLFED_DESCRIPTION"]),e.push(["perunGuiUrl-cert","PERUNGUIURLCERT_DESCRIPTION"]),this.perunLinksAdministratorsTags=e}getUserInvitationsTags(){const e=[];e.push(["voName","USER_INVITATIONS_VONAME_DESCRIPTION"]),e.push(["groupName","USER_INVITATIONS_GROUPNAME_DESCRIPTION"]),e.push(["displayName","USER_INVITATIONS_DISPLAYNAME_DESCRIPTION"]),e.push(["mailFooter","USER_INVITATIONS_MAILFOOTER_DESCRIPTION"]),e.push(["invitationLink","INVITATIONLINK_DESCRIPTION"]),e.push(["invitationLink-krb","INVITATIONLINKKRB_DESCRIPTION"]),e.push(["invitationLink-fed","INVITATIONLINKFED_DESCRIPTION"]),e.push(["invitationLink-cert","INVITATIONLINKCERT_DESCRIPTION"]),e.push(["invitationLink-non","INVITATIONLINKNON_DESCRIPTION"]),this.userInvitationsTags=e}addTag(e){this.addedTag.emit(e)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-tag-bar"]],outputs:{addedTag:"addedTag"},decls:47,vars:46,consts:[["alert_type","info"],["cdkScrollable","",1,"scrollable"],[1,"font-weight-bold"],[3,"tags","addedTag"],[1,"font-weight-bold","pt-2"],[1,"font-italic","text-muted"]],template:function(e,o){1&e&&(t.TgZ(0,"perun-web-apps-alert",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"div",2),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(8,"div",4),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(12,"div",4),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",5),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.TgZ(18,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(19,"div",4),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"div",5),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(26,"div",4),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",5),t._uU(30),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(33,"div",4),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.TgZ(39,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.TgZ(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",5),t._uU(44),t.ALo(45,"translate"),t.qZA(),t.TgZ(46,"app-tag-section",3),t.NdJ("addedTag",function(s){return o.addTag(s)}),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,20,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TAGS_DESCRIPTION"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,22,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.applicationRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(10,24,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_RELATED_SECTION"),": "),t.xp6(2),t.Q6J("tags",o.userRelatedTags),t.xp6(2),t.hij(" ",t.lcZ(14,26,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(17,28,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.VALIDATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.validationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(21,30,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_USERS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(24,32,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksUsersTags),t.xp6(2),t.hij(" ",t.lcZ(28,34,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(31,36,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.applicationLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(35,38,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(38,40,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.PERUN_LINKS_ADMINISTRATOR_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.perunLinksAdministratorsTags),t.xp6(2),t.hij(" ",t.lcZ(42,42,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_SECTION"),": "),t.xp6(3),t.hij(" ",t.lcZ(45,44,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.USER_INVITATIONS_DESCRIPTION")," "),t.xp6(2),t.Q6J("tags",o.userInvitationsTags))},directives:[D.w,Ja.PQ,ka],pipes:[d.X$],styles:[".scrollable[_ngcontent-%COMP%]{height:370px;overflow:auto}"]}),i})();function Ha(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"h1",9),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.Oqu(t.lcZ(3,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_CREATE")))}function ja(i,n){1&i&&(t.TgZ(0,"h1",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TITLE_EDIT")))}function $a(i,n){1&i&&t._UZ(0,"mat-spinner",10)}function za(i,n){1&i&&(t.TgZ(0,"mat-option",37),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APPROVABLE_GROUP_APP_USER")," "))}function Xa(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_EDIT")," "))}function Wa(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE_DESCRIPTION_CREATE")," "))}function Ka(i,n){1&i&&(t.TgZ(0,"mat-option",38),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EXTENSION")," "))}function ts(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_EDIT")," "))}function es(i,n){1&i&&(t.TgZ(0,"div",35),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE_DESCRIPTION_CREATE")," "))}function is(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._UZ(1,"i",43),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO"),t.oJD))}function os(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",42),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_INFO_NOT_AUTHORIZED")," "))}const ns=function(i){return{"disabled-label":i}};function as(i,n){if(1&i&&(t.TgZ(0,"span",58),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"uppercase"),t.qZA()),2&i){const e=t.oxw().$implicit,o=t.oxw(4);t.Q6J("ngClass",t.VKq(6,ns,"html"===e&&!o.htmlAuth)),t.xp6(1),t.hij(" ",t.lcZ(2,2,t.lcZ(3,4,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.FORMAT_"+e))," ")}}function ss(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!1}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].subject)}}function rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"input",59),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].subject=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!1}),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].subject)}}function ls(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.message[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!0}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.message[e].text)}}function cs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"textarea",60),t.NdJ("ngModelChange",function(a){t.CHM(e);const s=t.oxw(3).$implicit;return t.oxw(2).applicationMail.htmlMessage[s].text=a})("focus",function(){return t.CHM(e),t.oxw(5).isTextFocused=!0}),t._uU(1," "),t.qZA()}if(2&i){const e=t.oxw(3).$implicit,o=t.oxw(2);t.Q6J("ngModel",o.applicationMail.htmlMessage[e].text)}}function ps(i,n){1&i&&t._UZ(0,"mat-divider",61)}function us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-tab",44),t.YNc(1,as,4,8,"ng-template",45),t.TgZ(2,"div",46),t.TgZ(3,"div",47),t.TgZ(4,"div",48),t.TgZ(5,"button",49),t.NdJ("click",function(){t.CHM(e);const a=t.oxw(4);return a.showTags=!a.showTags}),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"span",50),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"mat-form-field",18),t.TgZ(13,"div",null,51),t.YNc(15,ss,1,1,"input",52),t.YNc(16,rs,1,1,"input",52),t.qZA(),t.qZA(),t.qZA(),t.TgZ(17,"div",53),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"mat-form-field",18),t.TgZ(21,"div",null,54),t.YNc(23,ls,2,1,"textarea",55),t.YNc(24,cs,2,1,"textarea",55),t.qZA(),t.qZA(),t.qZA(),t.YNc(25,ps,1,0,"mat-divider",56),t.TgZ(26,"div"),t.TgZ(27,"app-tag-bar",57),t.NdJ("addedTag",function(a){const r=t.CHM(e).$implicit,_=t.MAs(14),A=t.MAs(22),v=t.oxw(2).$implicit;return t.oxw(2).addTag(_,A,v,a,r)}),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(4);t.Q6J("disabled","html"===e&&!o.htmlAuth),t.xp6(6),t.hij(" ",o.showTags?t.lcZ(7,10,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.HIDE_TAGS"):t.lcZ(8,12,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SHOW_TAGS")," "),t.xp6(4),t.hij(" ",t.lcZ(11,14,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SUBJECT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(2),t.hij(" ",t.lcZ(19,16,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.TEXT"),": "),t.xp6(5),t.Q6J("ngIf","plain_text"===e),t.xp6(1),t.Q6J("ngIf","html"===e),t.xp6(1),t.Q6J("ngIf",o.showTags),t.xp6(1),t.Q6J("@tagsOpenClose",o.showTags?"open":"closed")}}function _s(i,n){if(1&i&&(t.YNc(0,is,3,3,"perun-web-apps-alert",40),t.YNc(1,os,3,3,"perun-web-apps-alert",40),t.TgZ(2,"mat-tab-group",13),t.YNc(3,us,28,18,"mat-tab",41),t.qZA()),2&i){const e=t.oxw(3);t.Q6J("ngIf",e.htmlAuth),t.xp6(1),t.Q6J("ngIf",!e.htmlAuth),t.xp6(2),t.Q6J("ngForOf",e.formats)}}function ds(i,n){1&i&&(t.TgZ(0,"mat-tab",14),t.ALo(1,"translate"),t.ALo(2,"uppercase"),t.YNc(3,_s,4,3,"ng-template",39),t.qZA()),2&i&&t.s9C("label",t.lcZ(1,1,t.lcZ(2,3,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.LANG_"+n.$implicit)))}function ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",11),t.TgZ(1,"div"),t.TgZ(2,"perun-web-apps-alert",12),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.TgZ(5,"mat-tab-group",13),t.TgZ(6,"mat-tab",14),t.ALo(7,"translate"),t.TgZ(8,"div",15),t.TgZ(9,"span",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17),t.TgZ(13,"mat-form-field",18),t.TgZ(14,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.mailType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(15,"mat-option",20),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.YNc(18,za,3,3,"mat-option",21),t.TgZ(19,"mat-option",22),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.TgZ(22,"mat-option",23),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-option",24),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"mat-option",25),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.TgZ(31,"mat-option",26),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mat-option",27),t._uU(35),t.ALo(36,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(37,"div",28),t._UZ(38,"span",29),t.YNc(39,Xa,3,3,"div",30),t.YNc(40,Wa,3,3,"div",30),t.qZA(),t.TgZ(41,"div",15),t.TgZ(42,"span",31),t._uU(43),t.ALo(44,"translate"),t.qZA(),t.TgZ(45,"div",17),t.TgZ(46,"mat-form-field",18),t.TgZ(47,"mat-select",19),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.appType=a})("selectionChange",function(){return t.CHM(e),t.oxw().notificationExist()}),t.TgZ(48,"mat-option",32),t._uU(49),t.ALo(50,"translate"),t.qZA(),t.YNc(51,Ka,3,3,"mat-option",33),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(52,"div",28),t._UZ(53,"span",29),t.YNc(54,ts,3,3,"div",30),t.YNc(55,es,3,3,"div",30),t.qZA(),t.TgZ(56,"div",15),t.TgZ(57,"span",31),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.TgZ(60,"div",17),t.TgZ(61,"mat-checkbox",34),t.NdJ("ngModelChange",function(a){return t.CHM(e),t.oxw().applicationMail.send=a}),t.qZA(),t.qZA(),t.qZA(),t.TgZ(62,"div",28),t._UZ(63,"span",29),t.TgZ(64,"div",35),t._uU(65),t.ALo(66,"translate"),t.qZA(),t.qZA(),t.qZA(),t.YNc(67,ds,4,5,"mat-tab",36),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("@openClose",e.invalidNotification?"open":"closed"),t.xp6(2),t.Oqu(t.lcZ(4,27,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INVALID_NOTIFICATION")),t.xp6(3),t.s9C("label",t.lcZ(7,29,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.BASIC_SETTINGS")),t.xp6(4),t.hij("",t.lcZ(11,31,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EMAIL_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.mailType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(17,33,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_USER")," "),t.xp6(2),t.Q6J("ngIf",e.data.groupId),t.xp6(2),t.hij(" ",t.lcZ(21,35,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_CREATED_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(24,37,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_MAIL_VALIDATION")," "),t.xp6(3),t.hij(" ",t.lcZ(27,39,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_APPROVED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(30,41,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_REJECTED_USER")," "),t.xp6(3),t.hij(" ",t.lcZ(33,43,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_APP_ERROR_VO_ADMIN")," "),t.xp6(3),t.hij(" ",t.lcZ(36,45,"VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_USER_INVITE")," "),t.xp6(4),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(44,47,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.APPLICATION_TYPE")," :"),t.xp6(4),t.Q6J("ngModel",e.applicationMail.appType)("disabled",!e.data.createMailNotification),t.xp6(2),t.hij(" ",t.lcZ(50,49,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.INITIAL")," "),t.xp6(2),t.Q6J("ngIf","USER_INVITE"!==e.applicationMail.mailType),t.xp6(3),t.Q6J("ngIf",!e.data.createMailNotification),t.xp6(1),t.Q6J("ngIf",e.data.createMailNotification),t.xp6(3),t.hij("",t.lcZ(59,51,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED")," :"),t.xp6(3),t.Q6J("ngModel",e.applicationMail.send),t.xp6(4),t.hij(" ",t.lcZ(66,53,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SENDING_ENABLED_DESCRIPTION")," "),t.xp6(2),t.Q6J("ngForOf",e.languages)}}function gs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().create()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.invalidNotification||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CREATE_BUTTON")," ")}}function hs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",62),t.NdJ("click",function(){return t.CHM(e),t.oxw().save()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.loading||!e.editAuth),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.SAVE_BUTTON")," ")}}let ot=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.registrarService=o,this.data=a,this.authResolver=s,this.groupsService=r,this.store=_,this.showTags=!1,this.isTextFocused=!0,this.invalidNotification=!1,this.loading=!1,this.languages=["en"],this.formats=["plain_text","html"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.htmlAuth=this.authResolver.isPerunAdmin(),this.applicationMail=this.data.applicationMail,this.theme=this.data.theme,this.data.groupId?this.groupsService.getGroupById(this.data.groupId).subscribe(e=>{this.editAuth=this.authResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[e])}):this.data.voId&&(this.editAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[{id:this.data.voId,beanName:"Vo"}]))}cancel(){this.dialogRef.close()}create(){this.notificationExist(),!this.invalidNotification&&(this.loading=!0,this.data.groupId?this.registrarService.addApplicationMailForGroup({group:this.data.groupId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.addApplicationMailForVo({vo:this.data.voId,mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1))}save(){this.loading=!0,this.registrarService.updateApplicationMail({mail:this.applicationMail}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}addTag(e,o,a,s,r){let _;_=this.isTextFocused?o.children.item("plain_text"===r?0:1):e.children.item("plain_text"===r?0:1);const A=_.selectionStart;this.isTextFocused?"html"===r?this.applicationMail.htmlMessage[a].text=this.applicationMail.htmlMessage[a].text.substring(0,A)+s+this.applicationMail.htmlMessage[a].text.substring(A):this.applicationMail.message[a].text=this.applicationMail.message[a].text.substring(0,A)+s+this.applicationMail.message[a].text.substring(A):"html"===r?this.applicationMail.htmlMessage[a].subject=this.applicationMail.htmlMessage[a].subject.substring(0,A)+s+this.applicationMail.htmlMessage[a].subject.substring(A):this.applicationMail.message[a].subject=this.applicationMail.message[a].subject.substring(0,A)+s+this.applicationMail.message[a].subject.substring(A),_.focus()}notificationExist(){for(const e of this.data.applicationMails)if(e.mailType===this.applicationMail.mailType&&e.appType===this.applicationMail.appType)return void(this.invalidNotification=!0);this.invalidNotification=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.tk),t.Y36(p.WI),t.Y36(u.x4),t.Y36(h.ff),t.Y36(u.d6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-edit-notification-dialog"]],decls:15,vars:17,consts:[[1,"h-100","d-flex","flex-column"],[4,"ngIf","ngIfElse"],["edit",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto",3,"click"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["alert_type","error"],["color","primary"],[3,"label"],[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"w-100"],["disableOptionCentering","",3,"ngModel","disabled","ngModelChange","selectionChange"],["value","APP_CREATED_USER"],["value","APPROVABLE_GROUP_APP_USER",4,"ngIf"],["value","APP_CREATED_VO_ADMIN"],["value","MAIL_VALIDATION"],["value","APP_APPROVED_USER"],["value","APP_REJECTED_USER"],["value","APP_ERROR_VO_ADMIN"],["value","USER_INVITE"],[1,"d-flex","mb-3"],[1,"w-25"],["class","w-75 font-italic text-muted",4,"ngIf"],[1,"w-25","font-weight-bold"],["value","INITIAL"],["value","EXTENSION",4,"ngIf"],[3,"ngModel","ngModelChange"],[1,"w-75","font-italic","text-muted"],[3,"label",4,"ngFor","ngForOf"],["value","APPROVABLE_GROUP_APP_USER"],["value","EXTENSION"],["matTabContent",""],["alert_type","info",4,"ngIf"],[3,"disabled",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"disabled"],["mat-tab-label",""],[1,"d-flex","w-100"],[1,"pr-2","w-100"],[1,"pt-2"],["mat-stroked-button","",1,"right-button",3,"click"],[1,"font-weight-bold","pr-2"],["Input",""],["matInput","",3,"ngModel","ngModelChange","focus",4,"ngIf"],[1,"font-weight-bold"],["Textarea",""],["matInput","","rows","17",3,"ngModel","ngModelChange","focus",4,"ngIf"],["class","ml-3 mr-3","vertical","true",4,"ngIf"],[3,"addedTag"],[3,"ngClass"],["matInput","",3,"ngModel","ngModelChange","focus"],["matInput","","rows","17",3,"ngModel","ngModelChange","focus"],["vertical","true",1,"ml-3","mr-3"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.YNc(2,Ha,4,3,"div",1),t.YNc(3,ja,3,3,"ng-template",null,2,t.W1O),t.YNc(5,$a,1,0,"mat-spinner",3),t.YNc(6,ms,68,55,"div",4),t.TgZ(7,"div",5),t.TgZ(8,"button",6),t.NdJ("click",function(){return o.cancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,gs,3,4,"button",7),t.TgZ(12,"div",8),t.ALo(13,"translate"),t.YNc(14,hs,3,4,"button",7),t.qZA(),t.qZA(),t.qZA(),t.qZA()),2&e){const a=t.MAs(4);t.Gre("",o.theme," h-100"),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification)("ngIfElse",a),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,13,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("ngIf",o.data.createMailNotification),t.xp6(1),t.s9C("matTooltip",t.lcZ(13,15,"DIALOGS.NOTIFICATIONS_ADD_EDIT_MAIL.EDIT_HINT")),t.Q6J("matTooltipDisabled",o.editAuth)("matTooltipPosition","above"),t.xp6(2),t.Q6J("ngIf",!o.data.createMailNotification)}},directives:[g.O5,p.uh,f.$g,p.xY,D.w,M.SP,M.uX,S.KE,J.gD,T.JJ,T.On,Q.ey,H.oG,g.sg,M.Vc,M.uD,g.mk,I.lW,y.Nt,T.Fj,et.d,Ba,p.H8,x.gM],pipes:[d.X$,g.gd],styles:[".right-button[_ngcontent-%COMP%]{display:block;margin-left:auto}.disabled-label[_ngcontent-%COMP%]{color:#00000061!important}"],data:{animation:[O.es,O.BQ]}}),i})();var nt=c(62707);function Ts(i,n){1&i&&t._UZ(0,"mat-spinner",9)}let Nt=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.voService=o,this.groupService=a,this.translateService=s,this.registrarService=r,this.cd=_,this.data=A,this.vos=[],this.groups=[],this.selectedVo=null,this.selectedGroup=null,this.loading=!1,this.nameFunction=v=>v.name}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.translateService.get("DIALOGS.NOTIFICATIONS_COPY_MAILS.NO_GROUP_SELECTED").subscribe(e=>{this.fakeGroup={id:-1,name:e,voId:0,parentGroupId:0,shortName:"",description:"",beanName:"group"},this.selectedGroup=this.fakeGroup,this.voService.getAllVos().subscribe(o=>{this.vos=o,this.loading=!1})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.loading=!0,this.data.groupId?this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.selectedGroup===this.fakeGroup?this.registrarService.copyMailsFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.registrarService.copyMailsFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}voSelected(e){this.selectedVo=e,this.getGroups(),this.cd.detectChanges()}getGroups(){this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(e=>{this.groups=[this.fakeGroup].concat(e)}):this.groups=[this.fakeGroup]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(h.ff),t.Y36(d.sK),t.Y36(h.tk),t.Y36(t.sBO),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notifications-copy-mails-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ts,1,0,"mat-spinner",1),t.TgZ(5,"div",2),t.TgZ(6,"div",3),t._uU(7),t.ALo(8,"translate"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.TgZ(11,"perun-web-apps-vo-search-select",4),t.NdJ("voSelected",function(s){return o.voSelected(s)}),t.qZA(),t._uU(12),t.ALo(13,"translate"),t.TgZ(14,"perun-web-apps-group-search-select",5),t.NdJ("groupSelected",function(s){return o.selectedGroup=s}),t.qZA(),t.qZA(),t.TgZ(15,"div",6),t.TgZ(16,"button",7),t.NdJ("click",function(){return o.cancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"button",8),t.NdJ("click",function(){return o.submit()}),t._uU(20),t.ALo(21,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,15,"DIALOGS.NOTIFICATIONS_COPY_MAILS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("hidden",o.loading),t.xp6(2),t.hij(" ",t.lcZ(8,17,"DIALOGS.NOTIFICATIONS_COPY_MAILS.DESCRIPTION")," "),t.xp6(2),t.hij(" ",t.lcZ(10,19,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_VO"),": "),t.xp6(2),t.Q6J("vos",o.vos),t.xp6(1),t.hij(" ",t.lcZ(13,21,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SOURCE_GROUP"),": "),t.xp6(2),t.Q6J("groups",o.groups)("disableAutoSelect",!0),t.xp6(3),t.hij(" ",t.lcZ(18,23,"DIALOGS.NOTIFICATIONS_COPY_MAILS.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",null===o.selectedVo||null===o.selectedGroup||o.loading),t.xp6(1),t.hij(" ",t.lcZ(21,25,"DIALOGS.NOTIFICATIONS_COPY_MAILS.SUBMIT_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,nt.M,ht.h,p.H8,I.lW],pipes:[d.X$],styles:[""],data:{animation:[O.BQ]}}),i})();var k=c(84847),Ot=c(18750);function As(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.toggle(r):null})("click",function(a){return a.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))}}function Is(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_ID")," "))}function bs(i,n){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function vs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_EMAIL_TYPE")," "))}function Es(i,n){if(1&i&&(t.TgZ(0,"td",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Oqu(o.getMailType(e))}}function Cs(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE")," "))}function Ss(i,n){1&i&&(t.TgZ(0,"div"),t.TgZ(1,"mat-icon",25),t._uU(2,"arrow_right_alt"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()),2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_INITIAL")," "))}function xs(i,n){1&i&&(t.TgZ(0,"mat-icon",26),t._uU(1,"cached"),t.qZA(),t._uU(2),t.ALo(3,"translate")),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_APPLICATION_TYPE_EXTENSION")," "))}function Zs(i,n){if(1&i&&(t.TgZ(0,"td",22),t.YNc(1,Ss,5,3,"div",23),t.YNc(2,xs,4,3,"ng-template",null,24,t.W1O),t.qZA()),2&i){const e=n.$implicit,o=t.MAs(3);t.xp6(1),t.Q6J("ngIf","INITIAL"===e.appType)("ngIfElse",o)}}function Ns(i,n){1&i&&(t.TgZ(0,"th",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TABLE_SENDING_ENABLED")," "))}function Os(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"section"),t.TgZ(2,"mat-checkbox",27),t.NdJ("change",function(){const s=t.CHM(e).$implicit;return t.oxw().changeSending(s)})("click",function(a){return a.stopPropagation()}),t.ALo(3,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,4,"VO_DETAIL.SETTINGS.NOTIFICATIONS.DISABLED_HINT")),t.Q6J("disabled",o.disableSend)("matTooltipDisabled",!o.disableSend)("ngModel",e.send)}}function Ds(i,n){1&i&&t._UZ(0,"tr",28)}function Ms(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"tr",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().openApplicationMailDetail(s)}),t.qZA()}2&i&&t.ekj("cursor-pointer",!0)}function Ls(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.NO_EMAILS"),"\n"))}let Dt=(()=>{class i{constructor(e,o,a,s,r,_){this.registrarService=e,this.translate=o,this.notificator=a,this.dialog=s,this.authResolver=r,this.tableCheckbox=_,this.displayedColumns=["select","id","mailType","appType","send"],this.disableSend=!1,this.selection=new E.Ov(!0,[]),this.selectionChange=new t.vpe,this.pageSizeOptions=m.f7}set matSort(e){this.sort=e,this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.applicationMails),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeSending(e){e.send?this.registrarService.setSendingEnabled({mails:[e],enabled:!1}).subscribe(()=>{e.send=!1}):this.registrarService.setSendingEnabled({mails:[e],enabled:!0}).subscribe(()=>{e.send=!0})}openApplicationMailDetail(e){const o=(0,m.kZ)();o.width="1400px",o.height="700px",o.data={theme:this.theme,voId:this.voId,groupId:this.groupId,createMailNotification:!1,applicationMail:e},this.dialog.open(ot,o).afterClosed().subscribe(s=>{s&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.EDIT_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.selectionChange.emit(this.selection),this.update())})}getMailType(e){let o="";return null==e.mailType||0===e.mailType.length?o="":this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.MAIL_TYPE_"+e.mailType).subscribe(a=>{o=a}),o}update(){this.groupId?this.registrarService.getApplicationMailsForGroup(this.groupId).subscribe(e=>{this.updateTable(e)}):this.registrarService.getApplicationMailsForVo(this.voId).subscribe(e=>{this.updateTable(e)})}toggle(e){this.selection.toggle(e),this.selectionChange.emit(this.selection)}updateTable(e){this.applicationMails=e,this.dataSource=new l.by(this.applicationMails),this.setDataSource()}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(u.V6),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-notification-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{applicationMails:"applicationMails",voId:"voId",groupId:"groupId",displayedColumns:"displayedColumns",disableSend:"disableSend",selection:"selection",tableId:"tableId",theme:"theme"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:21,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"pageSizeOptions","dataLength","hideExport","tableId"],["mat-table","","matSort","","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","mailType"],["mat-cell","",4,"matCellDef"],["matColumnDef","appType"],["matColumnDef","send"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[4,"ngIf","ngIfElse"],["extension",""],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],[3,"disabled","matTooltipDisabled","ngModel","matTooltip","change","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"click"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,As,2,3,"th",4),t.YNc(5,fs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Is,3,3,"th",7),t.YNc(8,bs,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,vs,3,3,"th",7),t.YNc(11,Es,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Cs,3,3,"th",7),t.YNc(14,Zs,4,2,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,Ns,3,3,"th",7),t.YNc(17,Os,4,6,"td",10),t.BQk(),t.YNc(18,Ds,1,0,"tr",13),t.YNc(19,Ms,1,2,"tr",14),t.qZA(),t.qZA(),t.qZA(),t.YNc(20,Ls,3,3,"perun-web-apps-alert",15)),2&e&&(t.Q6J("hidden",0===o.applicationMails.length),t.xp6(1),t.Q6J("pageSizeOptions",o.pageSizeOptions)("dataLength",o.dataSource.filteredData.length)("hideExport",!0)("tableId",o.tableId),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(16),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.applicationMails.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,k.nU,g.O5,P.Hw,x.gM,T.JJ,T.On,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function Rs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().add()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function ws(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().remove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Us(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().copy()}),t.TgZ(1,"i",5),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"VO_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Gs(i,n){1&i&&t._UZ(0,"mat-spinner",12)}function Ps(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",13),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw().changeSelection(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("applicationMails",e.applicationMails)("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("tableId",e.tableId)("selection",e.selection)("theme","vo-theme")("voId",e.vo.id)}}let ys=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R){this.route=e,this.registrarService=o,this.translate=a,this.dialog=s,this.notificator=r,this.authResolver=_,this.voService=A,this.store=v,this.entityStorageService=R,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.tableId=C.VR,this.displayedColumns=[]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarService.getVoApplicationForm(this.vo.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(o=>{this.applicationMails=o,this.loading=!1})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("vo-addMail_ApplicationForm_ApplicationMail_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("vo-deleteMailById_ApplicationForm_Integer_policy",[this.vo]),this.copyAuth=this.authResolver.isAuthorized("copyMailsFromVoToVo_Vo_Vo_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=this.store.get("supported_languages"),o=(0,m.i5)(e);o.formId=this.applicationForm.id;const a=(0,m.kZ)();a.width="1400px",a.height="700px",a.data={theme:"vo-theme",voId:this.vo.id,createMailNotification:!0,applicationMail:o,applicationMails:this.applicationMails},this.dialog.open(ot,a).afterClosed().subscribe(r=>{r&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(_=>{this.notificator.showSuccess(_)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,mails:this.selection.selected,theme:"vo-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("VO_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}changeEmailFooter(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Zt,e)}changeSelection(e){this.selection=e}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForVo(this.vo.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(b.gz),t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.YF),t.Y36(u.d6),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:14,vars:11,consts:[[1,"page-subtitle"],[1,"w-100","d-flex"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"applicationMails","disableSend","displayedColumns","tableId","selection","theme","voId","selectionChange"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.YNc(4,Rs,3,3,"button",2),t.YNc(5,ws,3,4,"button",3),t.TgZ(6,"button",4),t.NdJ("click",function(){return o.changeEmailFooter()}),t.TgZ(7,"i",5),t._uU(8,"email"),t.qZA(),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Us,5,3,"button",6),t.qZA(),t.YNc(12,Gs,1,0,"mat-spinner",7),t.YNc(13,Ps,1,7,"app-notification-list",8)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,7,"VO_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(10,9,"VO_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",o.copyAuth),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,I.lW,f.$g,Dt],pipes:[d.X$],styles:[""]}),i})();var qs=c(14336);function Vs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).add()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD")," "))}function Fs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).remove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.REMOVE")," ")}}function Ys(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).copy()}),t.TgZ(1,"i",6),t._uU(2,"file_copy"),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}2&i&&(t.xp6(3),t.hij(" ",t.lcZ(4,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.COPY_FROM_VO")," "))}function Js(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function Qs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"app-notification-list",14),t.NdJ("selectionChange",function(a){return t.CHM(e),t.oxw(2).changeSelection(a)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableSend",!e.addAuth)("displayedColumns",e.displayedColumns)("applicationMails",e.applicationMails)("groupId",e.group.id)("selection",e.selection)("tableId",e.tableId)("theme","group-theme")}}function ks(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.YNc(2,Vs,3,3,"button",3),t.YNc(3,Fs,3,4,"button",4),t.TgZ(4,"button",5),t.NdJ("click",function(){return t.CHM(e),t.oxw().changeEmailFooter()}),t.TgZ(5,"i",6),t._uU(6,"email"),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ys,5,3,"button",7),t.qZA(),t.YNc(10,Js,1,0,"mat-spinner",8),t.YNc(11,Qs,1,7,"app-notification-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Q6J("ngIf",e.addAuth),t.xp6(1),t.Q6J("ngIf",e.removeAuth),t.xp6(4),t.hij(" ",t.lcZ(8,6,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.EMAIL_FOOTER")," "),t.xp6(2),t.Q6J("ngIf",e.copyAuth),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function Bs(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).createEmptyApplicationForm()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.CREATE_APPLICATION_FORM")," "))}function Hs(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-alert",15),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Bs,3,3,"button",16),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,2,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.NO_APPLICATION_FORM")),t.xp6(2),t.Q6J("ngIf",e.createFormAuth)}}let js=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.registrarService=e,this.translate=o,this.dialog=a,this.apiRequest=s,this.notificator=r,this.guiAuthResolver=_,this.attributesService=A,this.entityStorageService=v,this.loading=!1,this.applicationMails=[],this.selection=new E.Ov(!0,[]),this.noApplicationForm=!1,this.editEmailFooterAuth=!1,this.addAuth=!1,this.removeAuth=!1,this.copyAuth=!1,this.createFormAuth=!1,this.displayedColumns=[],this.tableId=C.AA}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.apiRequest.dontHandleErrorForNext(),this.registrarService.getGroupApplicationForm(this.group.id).subscribe(e=>{this.applicationForm=e,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(o=>{this.applicationMails=o,this.apiRequest.dontHandleErrorForNext(),this.attributesService.getGroupAttributeByName(this.group.id,Z.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{this.setAuthRights(),this.loading=!1},a=>{"HttpErrorResponse"!==a.name&&this.notificator.showRPCError(a),this.setAuthRights(),this.loading=!1})})},e=>{const o=e.error;"FormNotExistsException"===o.name?(this.noApplicationForm=!0,this.setAuthRights(),this.loading=!1):this.notificator.showRPCError(o)})}setAuthRights(){this.createFormAuth=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.addAuth=this.guiAuthResolver.isAuthorized("group-addMail_ApplicationForm_ApplicationMail_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("group-deleteMailById_ApplicationForm_Integer_policy",[this.group]),this.copyAuth=this.guiAuthResolver.isAuthorized("copyMailsFromVoToGroup_Vo_Group_boolean_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","mailType","appType","send"]:["id","mailType","appType","send"]}add(){const e=(0,m.i5)();e.formId=this.applicationForm.id;const o=(0,m.kZ)();o.width="1400px",o.height="700px",o.data={theme:"group-theme",voId:this.group.voId,groupId:this.group.id,createMailNotification:!0,applicationMail:e,applicationMails:this.applicationMails},this.dialog.open(ot,o).afterClosed().subscribe(s=>{s&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.ADD_SUCCESS").subscribe(r=>{this.notificator.showSuccess(r)}),this.selection.clear(),this.updateTable())})}remove(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,mails:this.selection.selected,theme:"group-theme"},this.dialog.open(xt,e).afterClosed().subscribe(a=>{a&&(this.translate.get("GROUP_DETAIL.SETTINGS.NOTIFICATIONS.DELETE_SUCCESS").subscribe(s=>{this.notificator.showSuccess(s)}),this.selection.clear(),this.updateTable())})}copy(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Nt,e).afterClosed().subscribe(a=>{a&&(this.selection.clear(),this.updateTable())})}updateTable(){this.loading=!0,this.registrarService.getApplicationMailsForGroup(this.group.id).subscribe(e=>{this.applicationMails=e,this.loading=!1})}changeEmailFooter(){const e=(0,m.kZ)();e.width="500px",e.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(Zt,e)}changeSelection(e){this.selection=e}createEmptyApplicationForm(){this.registrarService.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(d.sK),t.Y36(p.uw),t.Y36(u.F5),t.Y36(u.V6),t.Y36(u.x4),t.Y36(h.H8),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-notifications"]],hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:5,vars:5,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"w-100","d-flex"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],[1,"material-icons"],["class","action-button","mat-stroked-button","",3,"click",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableSend","displayedColumns","applicationMails","groupId","selection","tableId","theme","selectionChange"],["alert_type","warn"],["mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,ks,12,8,"div",1),t.YNc(4,Hs,5,4,"div",1)),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,3,"GROUP_DETAIL.SETTINGS.NOTIFICATIONS.TITLE"),"\n"),t.xp6(2),t.Q6J("ngIf",!o.noApplicationForm),t.xp6(1),t.Q6J("ngIf",o.noApplicationForm&&!o.loading))},directives:[g.O5,I.lW,f.$g,Dt,D.w],pipes:[d.X$],styles:[""]}),i})();var at=c(15935);function $s(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function zs(i,n){if(1&i&&(t.TgZ(0,"div",9),t._UZ(1,"app-ext-sources-list",10),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("selection",e.selection)("extSources",e.extSources)("filterValue",e.filterValue)("tableId",e.tableId)}}let Mt=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.translate=r,this.extSources=[],this.selection=new E.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=C.BV}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.data.groupId?this.extSourceService.getVoExtSources(this.data.voId).subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1):this.extSourceService.getExtSources().subscribe(e=>{this.extSources=e.filter(o=>!this.data.extSources.some(({id:a})=>a===o.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}addVoExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithVoSource(this.data.voId,o.id).subscribe(()=>{this.addVoExtSource(e)},()=>this.loading=!1)}addGroupExtSource(e){if(0===e.length)return void this.translate.get("DIALOGS.ADD_EXT_SOURCES.SUCCESS_ADDED").subscribe(a=>{this.notificator.showSuccess(a),this.dialogRef.close(!0)});const o=e.pop();this.extSourceService.addExtSourceWithGroupSource(this.data.groupId,o.id).subscribe(()=>{this.addGroupExtSource(e)},()=>this.loading=!1)}onAdd(){this.loading=!0,this.data.groupId?this.addGroupExtSource(this.selection.selected):this.addVoExtSource(this.selection.selected)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-ext-source-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title",""],[1,"page-subtitle"],[1,"font-size-1rem",3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[3,"selection","extSources","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.qZA(),t.YNc(6,$s,1,0,"mat-spinner",3),t.YNc(7,zs,2,4,"div",4),t.TgZ(8,"div",5),t.TgZ(9,"button",6),t.NdJ("click",function(){return o.onCancel()}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"button",7),t.NdJ("click",function(){return o.onAdd()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,10,"DIALOGS.ADD_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(11,12,"DIALOGS.ADD_EXT_SOURCES.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(14,14,"DIALOGS.ADD_EXT_SOURCES.ADD")," "))},directives:[p.uh,L.L,g.O5,f.$g,p.xY,at.D,p.H8,I.lW],pipes:[d.X$],styles:[".font-size-1rem[_ngcontent-%COMP%]{font-size:1rem!important}"]}),i})();function Xs(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function Ws(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"id"),t.qZA())}function Ks(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.id)}}function tr(i,n){1&i&&(t.TgZ(0,"th",17),t._uU(1,"name"),t.qZA())}function er(i,n){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function ir(i,n){1&i&&t._UZ(0,"tr",19)}function or(i,n){1&i&&t._UZ(0,"tr",20)}function nr(i,n){if(1&i&&(t.TgZ(0,"div",8),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",10),t.ynx(8,11),t.YNc(9,Ws,2,0,"th",12),t.YNc(10,Ks,2,1,"td",13),t.BQk(),t.ynx(11,14),t.YNc(12,tr,2,0,"th",12),t.YNc(13,er,2,1,"td",13),t.BQk(),t.YNc(14,ir,1,0,"tr",15),t.YNc(15,or,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_EXT_SOURCES.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_EXT_SOURCES.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.extSources),t.xp6(7),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Lt=(()=>{class i{constructor(e,o,a,s,r,_){this.dialogRef=e,this.data=o,this.extSourceService=a,this.notificator=s,this.tableConfigService=r,this.translate=_,this.extSources=[],this.displayedColumns=["id","name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.extSources=this.data.extSources}removeVoExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithVoSource(this.data.voId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}removeGroupExtSource(){if(0===this.extSources.length)return void this.translate.get("DIALOGS.REMOVE_EXT_SOURCES.SUCCESS_REMOVED").subscribe(o=>{this.notificator.showSuccess(o),this.dialogRef.close(!0)});const e=this.extSources.pop();this.extSourceService.removeExtSourceWithGroupSource(this.data.groupId,e.id).subscribe(()=>{this.onRemove()},()=>this.loading=!1)}onRemove(){this.loading=!0,this.data.groupId?this.removeGroupExtSource():this.removeVoExtSource()}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.KG),t.Y36(u.V6),t.Y36(C.dB),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-ext-source-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],[1,"page-subtitle"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"div",0),t.TgZ(2,"h1",1),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.qZA(),t.YNc(5,Xs,1,0,"mat-spinner",2),t.YNc(6,nr,16,9,"div",3),t.TgZ(7,"div",4),t.TgZ(8,"button",5),t.NdJ("click",function(){return o.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",6),t.NdJ("click",function(){return o.onRemove()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(3),t.Oqu(t.lcZ(4,8,"DIALOGS.REMOVE_EXT_SOURCES.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(10,10,"DIALOGS.REMOVE_EXT_SOURCES.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,12,"DIALOGS.REMOVE_EXT_SOURCES.REMOVE")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function ar(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function sr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function rr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function lr(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let cr=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.qV,this.displayedColumns=[],this.translate.get("VO_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.extSourceService.getVoExtSources(this.vo.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,m.kZ)();e.width="1000px",e.data={voId:this.vo.id,extSources:this.extSources,theme:"vo-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.vo.id,extSources:this.selection.selected,theme:"vo-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Vo_ExtSource_policy",[this.vo]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Vo_ExtSource_policy",[this.vo]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,ar,3,3,"button",2),t.YNc(6,sr,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,rr,1,0,"mat-spinner",5),t.YNc(9,lr,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"VO_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();var q=c(24179);function pr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function ur(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",11),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw(2).getGroupsToInclude(a.id)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("vo",e.thisVo.vo)("vos",e.vosToSelect)}}const _r=function(){return["select","id","name","description"]};function dr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",12),2&i){const e=t.oxw(2);t.Q6J("authType","create-relation-dialog")("groupsToDisableCheckbox",e.groupsToDisable)("disableGroups",!0)("groups",e.groups)("selection",e.selection)("disableHeadCheckbox",!0)("disableRouting",!0)("displayedColumns",t.DdM(10,_r))("filter",e.filterValue)("tableId",e.tableId)}}function mr(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function gr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.YNc(1,ur,1,2,"perun-web-apps-vo-search-select",4),t.TgZ(2,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.qZA(),t.TgZ(3,"div",6),t.YNc(4,dr,1,11,"perun-web-apps-groups-list",7),t.qZA(),t.YNc(5,mr,1,0,"mat-spinner",1),t.TgZ(6,"div",8),t.TgZ(7,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.Tol(e.theme),t.xp6(1),t.Q6J("ngIf",e.vosToSelect.length>1),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(3),t.hij(" ",t.lcZ(9,10,"DIALOGS.CREATE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",e.loading||e.initLoading||0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,12,"DIALOGS.CREATE_RELATION.CREATE")," ")}}let hr=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialogRef=e,this.groupService=o,this.notificator=a,this.translate=s,this.guiAuthResolver=r,this.voService=_,this.data=A,this.selection=new E.Ov(!1,[]),this.filterValue="",this.tableId=C.RS,this.groupsToDisable=new Set,this.vosToSelect=[],s.get("DIALOGS.CREATE_RELATION.SUCCESS").subscribe(v=>this.successMessage=v)}ngOnInit(){this.initLoading=!0,this.groupService.getGroupUnions(this.data.group.id,!this.data.reverse).subscribe(e=>{e=e.concat(this.data.groups),this.groupsToNotInclude=e.map(o=>o.id),this.voService.getEnrichedVoById(this.data.voId).subscribe(o=>{this.thisVo=o,this.vosToSelect=o.memberVos.filter(a=>this.guiAuthResolver.isAuthorized("getAllAllowedGroupsToHierarchicalVo_Vo_policy",[a])),this.vosToSelect.push(o.vo),this.getGroupsToInclude(this.data.voId),this.initLoading=!1})},()=>this.initLoading=!1),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}getGroupsToInclude(e){this.loading=!0,e===this.data.voId?this.groupService.getAllGroups(this.data.voId).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1):this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.data.voId,e).subscribe(o=>{this.finishLoadingGroups(o)},()=>this.loading=!1)}onSubmit(){this.loading=!0,this.groupService.createGroupUnion(this.data.group.id,this.selection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}setGroupsToDisable(){for(const e of this.groups)(!this.guiAuthResolver.isAuthorized("result-createGroupUnion_Group_Group_policy",[this.data.group])||!this.guiAuthResolver.isAuthorized("operand-createGroupUnion_Group_Group_policy",[e]))&&this.groupsToDisable.add(e.id)}finishLoadingGroups(e){this.groups=e.filter(o=>!this.groupsToNotInclude.includes(o.id)&&o.id!==this.data.group.id),this.setGroupsToDisable(),this.selection.clear(),this.loading=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(h.YF),t.Y36(p.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-relation-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"class",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"vo","vos","voSelected",4,"ngIf"],[3,"placeholder","filter"],["mat-dialog-content","",1,"dialog-container"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"vo","vos","voSelected"],[3,"authType","groupsToDisableCheckbox","disableGroups","groups","selection","disableHeadCheckbox","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,pr,1,0,"mat-spinner",1),t.qZA(),t.YNc(5,gr,13,14,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.CREATE_RELATION.TITLE")),t.xp6(2),t.Tol(o.theme),t.xp6(1),t.Q6J("ngIf",o.initLoading),t.xp6(1),t.Q6J("ngIf",!o.initLoading))},directives:[p.uh,g.O5,f.$g,nt.M,L.L,p.xY,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Tr(i,n){1&i&&t._UZ(0,"mat-spinner",6)}function Ar(i,n){1&i&&t._UZ(0,"th",15)}function fr(i,n){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ir(i,n){1&i&&t._UZ(0,"tr",17)}function br(i,n){1&i&&t._UZ(0,"tr",18)}function vr(i,n){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,Ar,1,0,"th",11),t.YNc(10,fr,2,1,"td",12),t.BQk(),t.YNc(11,Ir,1,0,"tr",13),t.YNc(12,br,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_RELATION.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_RELATION.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Er=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.notificator=a,this.groupService=s,this.translate=r,this.displayedColumns=["name"],r.get("DIALOGS.REMOVE_RELATION.SUCCESS").subscribe(_=>this.successMessage=_)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new l.by(this.data.groups)}onCancel(){this.dialogRef.close(!1)}onSubmit(){if(this.loading=!0,1===this.data.groups.length)this.groupService.removeGroupUnion(this.data.reverse?this.data.groups[0].id:this.data.groupId,this.data.reverse?this.data.groupId:this.data.groups[0].id).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1);else{const e=this.data.reverse?this.data.groups.shift().id:this.data.groupId,o=this.data.reverse?this.data.groupId:this.data.groups.shift().id;this.groupService.removeGroupUnion(e,o).subscribe(()=>{this.onSubmit(),this.dialogRef.close(!0)},()=>this.loading=!1)}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(u.V6),t.Y36(h.ff),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-relation-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Tr,1,0,"mat-spinner",1),t.YNc(5,vr,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.REMOVE_RELATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_RELATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_RELATION.DELETE")," "))},directives:[p.uh,g.O5,f.$g,p.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();var Cr=c(387);const Sr=["list"];function xr(i,n){1&i&&t._UZ(0,"mat-spinner",9)}const Zr=function(){return["select","id","vo","name","description"]};function Nr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10,11),2&i){const e=t.oxw();t.Q6J("authType","group-relations")("groups",e.groups)("parentGroup",e.group)("disableHeadCheckbox",!0)("selection",e.selection)("displayedColumns",t.DdM(8,Zr))("filter",e.filterValue)("tableId",e.tableId)}}let Or=(()=>{class i{constructor(e,o,a){this.groupService=e,this.dialog=o,this.entityStorageService=a,this.selection=new E.Ov(!0,[]),this.groups=[],this.reverse=!1,this.filterValue="",this.tableId=C._7}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.refreshTable()}onCreate(){const e=(0,m.kZ)();e.width="1050px",e.data={groups:this.groups,theme:"group-theme",group:this.group,voId:this.group.voId,reverse:this.reverse},this.dialog.open(hr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onDelete(){const e=(0,m.kZ)();e.width="450px",e.data={groups:this.selection.selected,theme:"group-theme",groupId:this.group.id,reverse:this.reverse},this.dialog.open(Er,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selection.clear(),this.groupService.getGroupUnions(this.group.id,this.reverse).subscribe(e=>{this.groups=e,this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}showReverseUnions(){this.reverse=!this.reverse,this.refreshTable()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(p.uw),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-relations"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sr,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},hostVars:2,hostBindings:function(e,o){2&e&&t.ekj("router-component",o.true)},decls:19,vars:21,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],[3,"matTooltip","matTooltipDisabled"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],[3,"change"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authType","groups","parentGroup","disableHeadCheckbox","selection","displayedColumns","filter","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return o.onCreate()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"span",3),t.ALo(9,"translate"),t.TgZ(10,"button",4),t.NdJ("click",function(){return o.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.TgZ(13,"perun-web-apps-immediate-filter",5),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.TgZ(14,"mat-checkbox",6),t.NdJ("change",function(){return o.showReverseUnions()}),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,xr,1,0,"mat-spinner",7),t.YNc(18,Nr,2,9,"perun-web-apps-groups-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,11,"GROUP_DETAIL.SETTINGS.RELATIONS.TITLE")),t.xp6(3),t.Q6J("disabled",o.reverse),t.xp6(1),t.hij(" ",t.lcZ(7,13,"GROUP_DETAIL.SETTINGS.RELATIONS.CREATE")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(9,15,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE_TOOLTIP")),t.Q6J("matTooltipDisabled",0===o.selection.selected.length||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||void 0!==o.list&&!o.list.removeAuth||o.reverse),t.xp6(1),t.hij(" ",t.lcZ(12,17,"GROUP_DETAIL.SETTINGS.RELATIONS.DELETE")," "),t.xp6(2),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.RELATIONS.FILTER"),t.xp6(2),t.Oqu(t.lcZ(16,19,"GROUP_DETAIL.SETTINGS.RELATIONS.REVERSE_UNIONS")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,x.gM,L.L,H.oG,g.O5,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var st=c(64901),Dr=c(9146);function Mr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().showAllDetails=!0}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_ALL_DETAILS")," "))}function Lr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().showAllDetails=!1}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.APPLICATIONS.SHOW_LESS_DETAILS")," "))}function Rr(i,n){1&i&&t._UZ(0,"mat-spinner",7)}function wr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-applications-dynamic-list",8),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("tableId",e.showAllDetails?e.detailTableId:e.tableId)("searchString",e.filterValue)("member",e.member)("displayedColumns",e.showAllDetails?e.detailedDisplayedColumns:e.displayedColumns)("dateFrom",e.dateFrom)("refreshTable",e.refresh)}}let Ur=(()=>{class i{constructor(e,o,a){this.registrarManager=e,this.memberManager=o,this.route=a,this.loading=!1,this.displayedColumns=["id","createdAt","type","state","user","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=C.d7,this.tableId=C.vq,this.dateFrom=new Date("1970-01-01")}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(e=>{this.memberId=Number(e.memberId),this.memberManager.getMemberById(this.memberId).subscribe(o=>{this.member=o,this.loading=!1})})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(h.uq),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-applications"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],[3,"tableId","searchString","member","displayedColumns","states","dateFrom","refreshTable"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh=!o.refresh}),t.qZA(),t.YNc(5,Mr,3,3,"button",2),t.YNc(6,Lr,3,3,"button",2),t.TgZ(7,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.qZA(),t.YNc(8,Rr,1,0,"mat-spinner",4),t.YNc(9,wr,2,6,"div",5)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"MEMBER_DETAIL.APPLICATIONS.TITLE")),t.xp6(4),t.Q6J("ngIf",!o.showAllDetails),t.xp6(1),t.Q6J("ngIf",o.showAllDetails),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.APPLICATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,st.P,f.$g,Dr.S],pipes:[d.X$],styles:[""]}),i})();var Rt=c(1059),rt=c(24850),U=c(92081),wt=c(91079);function Gr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECT_RESOURCE"))}function Pr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}function yr(i,n){if(1&i&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function qr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",25),t.NdJ("click",function(){const s=t.CHM(e).$implicit,r=t.oxw(2);return r.setResource(s),r.stepper.selected.completed=!0}),t._uU(1),t.qZA()}if(2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Vr(i,n){if(1&i&&(t.TgZ(0,"div",22),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Fr(i,n){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div"),t.TgZ(2,"mat-form-field",14),t._UZ(3,"input",15),t.ALo(4,"translate"),t.TgZ(5,"mat-autocomplete",16,17),t.YNc(7,yr,2,2,"mat-option",18),t.ALo(8,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(9,"div"),t.TgZ(10,"mat-form-field",14),t.TgZ(11,"mat-select",19),t.ALo(12,"translate"),t.YNc(13,qr,2,2,"mat-option",20),t.ALo(14,"async"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div"),t.TgZ(16,"span",21),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",22),t._uU(20),t.qZA(),t.qZA(),t.TgZ(21,"div"),t.TgZ(22,"span",21),t._uU(23),t.ALo(24,"translate"),t.qZA(),t.YNc(25,Vr,2,1,"div",23),t.qZA(),t.qZA()),2&i){const e=t.MAs(6),o=t.oxw();t.xp6(3),t.s9C("placeholder",t.lcZ(4,10,"DIALOGS.ADD_MEMBER_TO_RESOURCE.FILTER")),t.Q6J("formControl",o.facilityCtrl)("matAutocomplete",e),t.xp6(4),t.Q6J("ngForOf",t.lcZ(8,12,o.filteredFacilities)),t.xp6(4),t.s9C("placeholder",t.lcZ(12,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SELECTED")),t.xp6(2),t.Q6J("ngForOf",t.lcZ(14,16,o.filteredResources)),t.xp6(4),t.Oqu(t.lcZ(18,18,"DIALOGS.ADD_MEMBER_TO_RESOURCE.DESCRIPTION")),t.xp6(3),t.Oqu(o.description),t.xp6(3),t.Oqu(t.lcZ(24,20,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SERVICES")),t.xp6(2),t.Q6J("ngForOf",o.services)}}function Yr(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.ADD_GROUP"))}function Jr(i,n){1&i&&t._UZ(0,"mat-spinner",13)}const Qr=function(){return["select","id","name","description"]};function kr(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-groups-list",26),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("disableGroups",!0)("disableHeadCheckbox",!0)("disableRouting",!0)("groupsToDisableCheckbox",e.membersGroupsId)("groups",e.groups)("displayedColumns",t.DdM(7,Qr))("selection",e.selectedGroups)}}function Br(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",27),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.NO_GROUPS")," "))}function Hr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",28),t.NdJ("click",function(){return t.CHM(e),t.oxw().stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBER_TO_RESOURCE.BACK")," "))}function jr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){t.CHM(e);const a=t.oxw();return a.stepperNext(),a.loadGroups()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",null===e.selectedResource||e.processing||e.loading),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CONTINUE")," ")}}function $r(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().onFinish()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selectedGroups.selected.length||e.processing),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_MEMBER_TO_RESOURCE.SUBMIT")," ")}}let zr=(()=>{class i{constructor(e,o,a,s,r,_,A,v){this.dialogRef=e,this.data=o,this.resourceManager=a,this.groupManager=s,this.notificator=r,this.translate=_,this.authResolver=A,this.cd=v,this.loading=!1,this.processing=!1,this.membersGroupsId=new Set,this.facilityCtrl=new T.NI,this.facilitiesNames=[],this.resources=[],this.selectedResource=null,this.services=[],this.description="",this.groups=[],this.selectedGroups=new E.Ov(!1,[])}ngAfterViewInit(){this.stepper.selectionChange.subscribe(()=>{this.selectedGroups.clear()}),this.cd.detectChanges()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.resourceManager.getRichResources(this.data.voId).subscribe(e=>{this.resources=e,this.getResourceFacilities(),this.loading=!1},()=>this.loading=!1)}setResource(e){this.processing=!0,this.selectedResource=e,this.resourceManager.getAssignedServicesToResource(this.selectedResource.id).subscribe(o=>{this.services=o,this.processing=!1},()=>this.processing=!1),this.description=this.selectedResource.description}loadGroups(){this.processing=!0,this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(e=>{this.groups=e,this.groupManager.getAllMemberGroups(this.data.memberId).subscribe(o=>{this.membersGroupsId=new Set(o.map(a=>a.id)),this.groups.forEach(a=>{this.authResolver.isAuthorized("addMember_Group_Member_policy",[a])||this.membersGroupsId.add(a.id)}),this.processing=!1},()=>this.processing=!1)})}onFinish(){this.processing=!0,this.groupManager.addMembers(this.selectedGroups.selected[0].id,[this.data.memberId]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_TO_RESOURCE.SUCCESS")),this.dialogRef.close(!0)},()=>this.processing=!1)}onCancel(){this.dialogRef.close(!1)}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}getResourceFacilities(){const e=new Set;for(const o of this.resources)e.add(o.facility.name);this.facilitiesNames=Array.from(e),this.filteredFacilities=this.facilityCtrl.valueChanges.pipe((0,Rt.O)(""),(0,rt.U)(o=>this.filterFacilities(o))),this.filteredResources=this.facilityCtrl.valueChanges.pipe((0,Rt.O)(""),(0,rt.U)(o=>this.filterResources(o)))}filterFacilities(e){const o=e.toLowerCase();return this.facilitiesNames.filter(s=>s.toLowerCase().includes(o)).sort((s,r)=>s.toLowerCase().localeCompare(r.toLowerCase()))}filterResources(e){if(null==e)return this.resources;const o=e.toLowerCase();return this.resources.filter(s=>s.facility.name.toLowerCase().startsWith(o)).sort((s,r)=>s.name.toLowerCase().localeCompare(r.name.toLowerCase()))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.xk),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-to-resource-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(U.Vq,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:22,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["completed","false"],["matStepLabel",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"input-style"],["aria-label","Number","matInput","","type","text",3,"formControl","matAutocomplete","placeholder"],["autoActiveFirstOption",""],["autoFacility","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["disableOptionCentering","true","required","",3,"placeholder"],[3,"value","click",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"ml-5"],["class","ml-5",4,"ngFor","ngForOf"],[3,"value"],[3,"value","click"],[3,"disableGroups","disableHeadCheckbox","disableRouting","groupsToDisableCheckbox","groups","displayedColumns","selection"],["alert_type","warn"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"mat-stepper",2),t.TgZ(6,"mat-step",3),t.YNc(7,Gr,2,3,"ng-template",4),t.YNc(8,Pr,1,0,"mat-spinner",5),t.YNc(9,Fr,26,22,"div",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,Yr,2,3,"ng-template",4),t.YNc(12,Jr,1,0,"mat-spinner",5),t.YNc(13,kr,2,8,"div",6),t.YNc(14,Br,3,3,"perun-web-apps-alert",7),t.qZA(),t.qZA(),t.qZA(),t.TgZ(15,"div",8),t.TgZ(16,"button",9),t.NdJ("click",function(){return o.onCancel()}),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.YNc(19,Hr,3,3,"button",10),t.YNc(20,jr,3,8,"button",11),t.YNc(21,$r,3,4,"button",12),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,14,"DIALOGS.ADD_MEMBER_TO_RESOURCE.TITLE")),t.xp6(3),t.Q6J("linear",!0),t.xp6(3),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",0!==o.groups.length&&!o.processing),t.xp6(1),t.Q6J("ngIf",0===o.groups.length&&!o.processing),t.xp6(3),t.hij(" ",t.lcZ(18,16,"DIALOGS.ADD_MEMBER_TO_RESOURCE.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==o.stepper&&0!==o.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex!==o.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==o.stepper&&o.stepper.selectedIndex===o.stepper._steps.length-1))},directives:[p.uh,p.xY,U.Vq,U.C0,U.VY,g.O5,f.$g,S.KE,y.Nt,T.Fj,wt.ZL,T.JJ,T.oH,wt.XC,g.sg,Q.ey,J.gD,q.W,D.w,p.H8,I.lW],pipes:[d.X$,g.Ov],styles:[".input-style[_ngcontent-%COMP%]{margin-left:50px;width:75%}"]}),i})();var Xr=c(62109);function Wr(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().addResource()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBER_DETAIL.RESOURCES.ADD")," "))}function Kr(i,n){if(1&i&&t._UZ(0,"perun-web-apps-resources-list",7),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("displayedColumns",e.displayedColumns)("routingVo",!0)("resources",e.resources)("tableId",e.tableId)}}function tl(i,n){1&i&&t._UZ(0,"mat-spinner",8)}let el=(()=>{class i{constructor(e,o,a,s,r){this.dialog=e,this.memberManager=o,this.resourceManager=a,this.route=s,this.authResolver=r,this.resources=[],this.filterValue="",this.loading=!1,this.displayedColumns=["id","name","vo","facility","tags","description"],this.tableId=C.aL}ngOnInit(){this.route.parent.params.subscribe(e=>{const o=Number(e.memberId);this.memberManager.getMemberById(o).subscribe(a=>{this.member=a,this.refreshTable()})})}addResource(){const e=(0,m.kZ)();e.width="1200px",e.data={memberId:this.member.id,voId:this.member.voId,theme:"member-theme"},this.dialog.open(zr,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}refreshTable(){this.loading=!0,this.resourceManager.getAssignedRichResourcesWithMember(this.member.id).subscribe(e=>{this.resources=e,this.setAuthRights(),this.loading=!1})}setAuthRights(){const e={id:this.member.voId,beanName:"Vo"};this.addAuth=this.authResolver.isAuthorized("getRichResources_Vo_policy",[e])&&this.authResolver.isAuthorized("addMembers_Group_List_policy",[e]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[e,this.resources[0]]))}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.uq),t.Y36(h.xk),t.Y36(b.gz),t.Y36(u.x4))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-member-resources"]],decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","action-button","color","accent","class","mr-2","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[3,"disableRouting","filterValue","displayedColumns","routingVo","resources","tableId"],[1,"mr-auto","ml-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,Wr,3,3,"button",2),t.TgZ(6,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(7,Kr,1,6,"perun-web-apps-resources-list",4),t.qZA(),t.YNc(8,tl,1,0,"mat-spinner",5)),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,5,"MEMBER_DETAIL.RESOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("placeholder","MEMBER_DETAIL.RESOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[G.t,g.O5,I.lW,L.L,Xr.C,f.$g],pipes:[d.X$],styles:[""]}),i})();var il=c(98918),ol=c(4675),nl=c(258),al=c(60113),sl=c(16500),rl=c(92090),ll=c(20057),cl=c(49546),pl=c(76023),ul=c(3246);function _l(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.ADD")," "))}function dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.REMOVE")," ")}}function ml(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function gl(i,n){if(1&i&&t._UZ(0,"app-ext-sources-list",10),2&i){const e=t.oxw();t.Q6J("extSources",e.extSources)("selection",e.selection)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("tableId",e.tableId)}}let hl=(()=>{class i{constructor(e,o,a,s,r,_){this.extSourceService=e,this.dialog=o,this.notificator=a,this.translate=s,this.authResolver=r,this.entityStorageService=_,this.extSources=[],this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.S7,this.displayedColumns=[],this.translate.get("GROUP_DETAIL.SETTINGS.EXT_SOURCES.SUCCESS_REMOVED").subscribe(A=>this.successMessage=A)}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addExtSource_Group_ExtSource_policy",[this.group]),this.removeAuth=this.authResolver.isAuthorized("removeExtSource_Group_ExtSource_policy",[this.group]),this.displayedColumns=this.removeAuth?["select","id","name","type"]:["id","name","type"]}refreshTable(){this.loading=!0,this.extSourceService.getGroupExtSources(this.group.id).subscribe(e=>{this.extSources=e,this.selection.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}onAdd(){const e=(0,m.kZ)();e.width="1000px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.extSources,theme:"group-theme"},this.dialog.open(Mt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}onRemove(){const e=(0,m.kZ)();e.width="600px",e.data={voId:this.group.voId,groupId:this.group.id,extSources:this.selection.selected,theme:"group-theme"},this.dialog.open(Lt,e).afterClosed().subscribe(a=>{a&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.KG),t.Y36(p.uw),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-settings-extsources"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"extSources","selection","displayedColumns","filterValue","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"extSources","selection","displayedColumns","filterValue","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refreshTable()}),t.qZA(),t.YNc(5,_l,3,3,"button",2),t.YNc(6,dl,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(8,ml,1,0,"mat-spinner",5),t.YNc(9,gl,1,5,"app-ext-sources-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"GROUP_DETAIL.SETTINGS.EXT_SOURCES.TITLE")),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","GROUP_DETAIL.SETTINGS.EXT_SOURCES.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,at.D],pipes:[d.X$],styles:[""]}),i})();function Tl(i,n){1&i&&t._UZ(0,"th",9)}function Al(i,n){if(1&i&&(t.TgZ(0,"td",10),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij("",e,":")}}function fl(i,n){1&i&&t._UZ(0,"th",9)}function Il(i,n){if(1&i&&(t.TgZ(0,"td",11),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.statistics.get(e.toLowerCase())," ")}}function bl(i,n){1&i&&t._UZ(0,"tr",12)}let Ut=(()=>{class i{constructor(){this.rowNames=[],this.title="",this.statistics=new Map,this.dataSource=null,this.displayedColumns=["name","value"]}ngOnInit(){this.dataSource=new l.by(this.rowNames)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-statistics-card"]],inputs:{rowNames:"rowNames",title:"title",statistics:"statistics"},decls:15,vars:5,consts:[[1,"mat-elevation-z3","align-card"],[1,"page-subtitle"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"mat-card",0),t.TgZ(1,"mat-card-header"),t.TgZ(2,"mat-card-title"),t.TgZ(3,"h1",1),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.qZA(),t.qZA(),t.TgZ(6,"mat-card-content"),t.TgZ(7,"table",2),t.ynx(8,3),t.YNc(9,Tl,1,0,"th",4),t.YNc(10,Al,2,1,"td",5),t.BQk(),t.ynx(11,6),t.YNc(12,fl,1,0,"th",4),t.YNc(13,Il,2,1,"td",7),t.BQk(),t.YNc(14,bl,1,0,"tr",8),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(4),t.Oqu(t.lcZ(5,3,o.title)),t.xp6(3),t.Q6J("dataSource",o.dataSource),t.xp6(7),t.Q6J("matRowDefColumns",o.displayedColumns))},directives:[N.a8,N.dk,N.n5,N.dn,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.nj,l.Gk],pipes:[d.X$],styles:[".align-card[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 0rem;display:inline-block;vertical-align:top}"]}),i})();function vl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function El(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.rowNames)("statistics",e.membersCount)("title","VO_DETAIL.STATISTICS.MEMBERS_COUNT")}}let Cl=(()=>{class i{constructor(e,o){this.voService=e,this.entityStorageService=o,this.loading=!1,this.rowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCount=new Map([["members",0],["valid",0],["invalid",0],["expired",0],["disabled",0]]),this.dataSource=new l.by}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.dataSource=new l.by(this.rowNames),this.voService.getVoMembersCountsByStatus(this.vo.id).subscribe(e=>{this.allMembersCount=0;for(const o of Object.keys(e))this.membersCount.set(o.toLowerCase(),e[o]),this.allMembersCount+=e[o];this.membersCount.set("members",this.allMembersCount),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.YF),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,vl,1,0,"mat-spinner",1),t.YNc(4,El,2,3,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"VO_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Sl(i,n){1&i&&t._UZ(0,"mat-spinner",3)}function xl(i,n){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"app-statistics-card",4),t._UZ(2,"app-statistics-card",4),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("rowNames",e.voStatusCountsRowNames)("statistics",e.membersCountsByVoStatus)("title","GROUP_DETAIL.STATISTICS.VO_STATUS_COUNT"),t.xp6(1),t.Q6J("rowNames",e.groupStatusCountsRowNames)("statistics",e.membersCountsByGroupStatus)("title","GROUP_DETAIL.STATISTICS.GROUP_STATUS_COUNT")}}let Zl=(()=>{class i{constructor(e,o){this.groupService=e,this.entityStorageService=o,this.loading=!1,this.voStatusCountsRowNames=["Members","Valid","Invalid","Expired","Disabled"],this.membersCountsByVoStatus=new Map,this.groupStatusCountsRowNames=["Members","Valid","Expired"],this.membersCountsByGroupStatus=new Map}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.groupService.getGroupMembersCount(this.group.id).subscribe(e=>{this.membersCountsByVoStatus.set("members",e),this.membersCountsByGroupStatus.set("members",e),this.groupService.getGroupMembersCountsByVoStatus(this.group.id).subscribe(o=>{Object.entries(o).forEach(([a,s])=>this.membersCountsByVoStatus.set(a.toLowerCase(),s)),this.groupService.getGroupMembersCountsByGroupStatus(this.group.id).subscribe(a=>{Object.entries(a).forEach(([s,r])=>this.membersCountsByGroupStatus.set(s.toLowerCase(),r)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.ff),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-group-statistics"]],decls:5,vars:5,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"rowNames","statistics","title"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,Sl,1,0,"mat-spinner",1),t.YNc(4,xl,3,6,"div",2)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,3,"GROUP_DETAIL.STATISTICS.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[g.O5,f.$g,Ut],pipes:[d.X$],styles:[""]}),i})();function Nl(i,n){1&i&&t._UZ(0,"mat-spinner",6)}const Ol=function(){return["select","id","name","description"]};function Dl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"perun-web-apps-debounce-filter",8),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().applyFilter(a)}),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"perun-web-apps-groups-list",9),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.s9C("placeholder",t.lcZ(2,8,"DIALOGS.ADD_GROUP_TO_REGISTRATION.FILTER_DESCRIPTION")),t.xp6(2),t.Q6J("disableMembers",!0)("groups",e.unAssignedGroups)("selection",e.selection)("disableRouting",!0)("displayedColumns",t.DdM(10,Ol))("filter",e.filterValue)("tableId",e.tableId)}}let Ml=(()=>{class i{constructor(e,o,a,s){this.dialogRef=e,this.data=o,this.groupService=a,this.registrarService=s,this.loading=!1,this.selection=new E.Ov(!0,[]),this.filterValue="",this.tableId=C.Is}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.groupService.getAllGroups(this.data.voId).subscribe(e=>{this.unAssignedGroups=e.filter(o=>!this.data.assignedGroups.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}onCancel(){this.dialogRef.close(!1)}onAdd(){this.loading=!0,this.registrarService.addGroupsToAutoRegistration(this.selection.selected.map(e=>e.id)).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(h.tk))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-to-registration"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"disableMembers","groups","selection","disableRouting","displayedColumns","filter","tableId"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Nl,1,0,"mat-spinner",1),t.YNc(5,Dl,4,11,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return o.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return o.onAdd()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_GROUP_TO_REGISTRATION.TITLE")),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_GROUP_TO_REGISTRATION.CANCEL_BUTTON")," "),t.xp6(2),t.Q6J("disabled",0===o.selection.selected.length||o.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_GROUP_TO_REGISTRATION.ADD_BUTTON")," "))},directives:[p.uh,g.O5,f.$g,p.xY,st.P,q.W,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();const Ll=["list"];function Rl(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAddGroup()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.ADD"),"\n"))}function wl(i,n){1&i&&t._UZ(0,"mat-spinner",10)}const Ul=function(){return["select","id","name","description"]};function Gl(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",11,12),2&i){const e=t.oxw();t.Q6J("authType","application-form-manage-groups")("displayedColumns",t.DdM(7,Ul))("disableRouting",!0)("filter",e.filterValue)("groups",e.groups)("selection",e.selected)("tableId",e.tableId)}}let Pl=(()=>{class i{constructor(e,o,a,s){this.registrarService=e,this.authResolver=o,this.dialog=a,this.route=s,this.groups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.CE,this.filterValue=""}ngOnInit(){this.loading=!0,this.route.parent.parent.params.subscribe(e=>{this.voId=Number(e.voId),this.loadGroups()})}loadGroups(){this.loading=!0,this.registrarService.getGroupsToAutoRegistration(this.voId).subscribe(e=>{this.groups=e,this.selected.clear(),this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}onAddGroup(){const e=(0,m.kZ)();e.width="900px",e.data={voId:this.voId,assignedGroups:this.groups.map(a=>a.id),theme:"vo-theme"},this.dialog.open(Ml,e).afterClosed().subscribe(a=>{a&&this.loadGroups()})}removeGroup(){const e=(0,m.kZ)();e.width="450px",e.data={items:this.selected.selected.map(a=>a.name),title:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_TITLE",description:"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_GROUP_DIALOG_DESCRIPTION",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(a=>{a&&this.registrarService.deleteGroupsFromAutoRegistration(this.selected.selected.map(s=>s.id)).subscribe(()=>{this.loadGroups()})})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[{id:this.voId,beanName:"Vo"}])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.tk),t.Y36(u.x4),t.Y36(p.uw),t.Y36(b.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-application-form-manage-groups"]],viewQuery:function(e,o){if(1&e&&t.Gf(Ll,5),2&e){let a;t.iGM(a=t.CRH())&&(o.list=a.first)}},decls:17,vars:21,consts:[[1,"page-subtitle"],["alert_type","info"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],[1,"ml-auto","mr-auto"],["theme","vo-theme",3,"authType","displayedColumns","disableRouting","filter","groups","selection","tableId"],["list",""]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-alert",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return o.loadGroups()}),t.qZA(),t.YNc(8,Rl,3,3,"button",3),t.TgZ(9,"span",4),t.ALo(10,"translate"),t.TgZ(11,"button",5),t.NdJ("click",function(){return o.removeGroup()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.TgZ(14,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(15,wl,1,0,"mat-spinner",7),t.YNc(16,Gl,2,8,"perun-web-apps-groups-list",8)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,11,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE")," - ",t.lcZ(3,13,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.TITLE"),"\n"),t.xp6(4),t.hij(" ",t.lcZ(6,15,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.HELP"),"\n"),t.xp6(3),t.Q6J("ngIf",o.addAuth),t.xp6(1),t.s9C("matTooltip",t.lcZ(10,17,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE_PERMISSION_HINT")),t.Q6J("matTooltipDisabled",void 0===o.list||void 0!==o.list&&o.list.removeAuth),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length||void 0!==o.list&&!o.list.removeAuth),t.xp6(1),t.hij(" ",t.lcZ(13,19,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.REMOVE")," "),t.xp6(2),t.Q6J("placeholder","VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS_PAGE.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[D.w,G.t,g.O5,I.lW,x.gM,L.L,f.$g,q.W],pipes:[d.X$],styles:[""]}),i})();var yl=c(20872),ql=c(80013),Vl=c(72986),Fl=c(87545),Gt=c(28499),Yl=c(13469),Pt=c(14623),yt=c(38383);const Jl=["stepper"];function Ql(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE_IDENTITY"))}function kl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Bl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Hl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL_INVALID")))}function jl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function $l(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function zl(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.SET_CREDENTIALS"))}function Xl(i,n){if(1&i&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Wl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.FIELD_EMPTY")))}function Kl(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_EXISTS")))}function tc(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_FORMAT")))}function ec(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_LONG")))}function ic(i,n){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_SHORT")))}function oc(i,n){if(1&i&&(t.TgZ(0,"span",32),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.lcZ(2,1,"Not selected"===e.secondFormGroup.get("namespaceCtrl").value?"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED":"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN_DISABLED_FOR_NAMESPACE")," ")}}function nc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATE_USERS"))}function ac(i,n){if(1&i&&(t.TgZ(0,"span",38),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("#",e.id,"")}}function sc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"mat-list-item"),t.TgZ(1,"p",33),t._uU(2),t.ALo(3,"userFullName"),t.YNc(4,ac,2,1,"span",34),t.TgZ(5,"span",35),t.ALo(6,"translate"),t.TgZ(7,"button",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).removeUser(s)}),t.TgZ(8,"mat-icon",37),t._uU(9,"close"),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw(2);t.xp6(2),t.hij(" ",t.lcZ(3,5,e.user)," "),t.xp6(2),t.Q6J("ngIf",e.id),t.xp6(1),t.Q6J("matTooltipDisabled",o.assignedMembers.length>1)("matTooltip",t.lcZ(6,7,"DIALOGS.CREATE_SERVICE_MEMBER.MINIMAL_USERS")),t.xp6(2),t.Q6J("disabled",1===o.assignedMembers.length)}}function rc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}const lc=function(){return["checkbox","id","fullName"]};function cc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",42),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(5,lc))("members",e.members)("tableId",e.tableId)("selection",e.selection)}}function pc(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",43),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")," "))}function uc(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,cc,1,6,"perun-web-apps-members-list",40),t.YNc(2,pc,3,3,"perun-web-apps-alert",41),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.firstSearchDone),t.xp6(1),t.Q6J("ngIf",!e.firstSearchDone)}}function _c(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step",8),t.TgZ(4,"form",9),t.YNc(5,Ql,2,3,"ng-template",10),t.TgZ(6,"div",11),t.TgZ(7,"mat-form-field"),t.TgZ(8,"mat-label"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t._UZ(11,"input",12),t.YNc(12,kl,3,3,"mat-error",13),t.qZA(),t.TgZ(13,"mat-form-field"),t.TgZ(14,"mat-label"),t._uU(15),t.ALo(16,"translate"),t.qZA(),t._UZ(17,"input",14),t.YNc(18,Bl,3,3,"mat-error",13),t.YNc(19,Hl,3,3,"mat-error",13),t.qZA(),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-label"),t._uU(22),t.ALo(23,"translate"),t.qZA(),t._UZ(24,"input",15),t.YNc(25,jl,3,3,"mat-error",13),t.qZA(),t.TgZ(26,"mat-form-field"),t.TgZ(27,"mat-label"),t._uU(28),t.ALo(29,"translate"),t.qZA(),t._UZ(30,"input",16),t.YNc(31,$l,3,3,"mat-error",13),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(32,"mat-step",8),t.TgZ(33,"form",9),t.YNc(34,zl,2,3,"ng-template",10),t.TgZ(35,"div",11),t.TgZ(36,"mat-form-field"),t.TgZ(37,"mat-label"),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"mat-select",17),t.NdJ("valueChange",function(a){return t.CHM(e),t.oxw().onNamespaceChanged(a)}),t.YNc(41,Xl,2,2,"mat-option",18),t.qZA(),t.qZA(),t.TgZ(42,"mat-form-field",19),t.TgZ(43,"mat-label"),t._uU(44),t.ALo(45,"translate"),t.qZA(),t._UZ(46,"input",20),t.YNc(47,Wl,3,3,"mat-error",13),t.YNc(48,Kl,3,3,"mat-error",13),t.YNc(49,tc,3,3,"mat-error",13),t.YNc(50,ec,3,3,"mat-error",13),t.YNc(51,ic,3,3,"mat-error",13),t.YNc(52,oc,3,3,"span",21),t.qZA(),t.TgZ(53,"mat-radio-group",22),t.NdJ("ngModelChange",function(){return t.CHM(e),t.oxw().passwordOptionChanged()}),t.ALo(54,"translate"),t.TgZ(55,"mat-radio-button",23),t._uU(56),t.ALo(57,"translate"),t.qZA(),t.TgZ(58,"mat-radio-button",23),t._uU(59),t.ALo(60,"translate"),t.qZA(),t.qZA(),t.TgZ(61,"div",11),t._UZ(62,"perun-web-apps-password-form",24),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.TgZ(63,"mat-step"),t.YNc(64,nc,2,3,"ng-template",10),t.TgZ(65,"h6"),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.TgZ(68,"mat-list"),t.YNc(69,sc,10,9,"mat-list-item",25),t.qZA(),t.TgZ(70,"h6",26),t._uU(71),t.ALo(72,"translate"),t.qZA(),t.TgZ(73,"mat-form-field",27),t.TgZ(74,"input",28),t.NdJ("keyup.enter",function(){t.CHM(e);const a=t.oxw();return 0!==a.searchCtrl.value.length&&a.onSearchByString()}),t.ALo(75,"translate"),t.qZA(),t.qZA(),t.TgZ(76,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSearchByString()}),t.TgZ(77,"mat-icon"),t._uU(78,"search"),t.qZA(),t.qZA(),t.TgZ(79,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw().addUsers()}),t._uU(80),t.ALo(81,"translate"),t.qZA(),t.YNc(82,rc,1,0,"mat-spinner",3),t.YNc(83,uc,3,2,"div",13),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",e.firstFormGroup),t.xp6(1),t.Q6J("formGroup",e.firstFormGroup),t.xp6(5),t.Oqu(t.lcZ(10,50,"DIALOGS.CREATE_SERVICE_MEMBER.NAME")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("nameCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(16,52,"DIALOGS.CREATE_SERVICE_MEMBER.EMAIL")),t.xp6(3),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("emailCtrl").hasError("pattern")),t.xp6(3),t.Oqu(t.lcZ(23,54,"DIALOGS.CREATE_SERVICE_MEMBER.SUBJECT_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("issuerCtrl").value&&0!==e.firstFormGroup.get("issuerCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("subjectCtrl").hasError("required")),t.xp6(3),t.Oqu(t.lcZ(29,56,"DIALOGS.CREATE_SERVICE_MEMBER.ISSUER_DN")),t.xp6(2),t.Q6J("required",!!e.firstFormGroup.get("subjectCtrl").value&&0!==e.firstFormGroup.get("subjectCtrl").value.trim().length),t.xp6(1),t.Q6J("ngIf",e.firstFormGroup.get("issuerCtrl").hasError("required")),t.xp6(1),t.Q6J("stepControl",e.secondFormGroup),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup),t.xp6(5),t.Oqu(t.lcZ(39,58,"DIALOGS.CREATE_SERVICE_MEMBER.NAMESPACE")),t.xp6(3),t.Q6J("ngForOf",e.namespaceOptions),t.xp6(1),t.Q6J("floatLabel",e.secondFormGroup.get("loginCtrl").disabled?"always":null),t.xp6(2),t.Oqu(t.lcZ(45,60,"DIALOGS.CREATE_SERVICE_MEMBER.LOGIN")),t.xp6(2),t.Q6J("hidden",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("required")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("loginExists")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("pattern")&&!e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("maxlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").hasError("minlength")),t.xp6(1),t.Q6J("ngIf",e.secondFormGroup.get("loginCtrl").disabled),t.xp6(1),t.s9C("matTooltip",t.lcZ(54,62,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_NOT_SUPPORTED")),t.Q6J("matTooltipDisabled","Not selected"!==e.secondFormGroup.get("namespaceCtrl").value),t.xp6(2),t.Q6J("checked",e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!0),t.xp6(1),t.hij(" ",t.lcZ(57,64,"DIALOGS.CREATE_SERVICE_MEMBER.PASSWORD_RANDOM")," "),t.xp6(2),t.Q6J("checked",!e.secondFormGroup.get("generatePasswordCtrl").value&&e.secondFormGroup.get("generatePasswordCtrl").enabled)("value",!1),t.xp6(1),t.hij(" ",t.lcZ(60,66,"DIALOGS.CREATE_SERVICE_MEMBER.ENTER_PASSWORD")," "),t.xp6(2),t.ekj("input-disabled",e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(1),t.Q6J("formGroup",e.secondFormGroup)("namespace",e.selectedNamespace)("passwordRequired",!e.secondFormGroup.get("generatePasswordCtrl").value),t.xp6(4),t.Oqu(t.lcZ(67,68,"DIALOGS.CREATE_SERVICE_MEMBER.ASSOCIATED_USERS")),t.xp6(3),t.Q6J("ngForOf",e.assignedMembers),t.xp6(2),t.Oqu(t.lcZ(72,70,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_INFO")),t.xp6(3),t.s9C("placeholder",t.lcZ(75,72,"DIALOGS.CREATE_SERVICE_MEMBER.SEARCH_PLACEHOLDER")),t.Q6J("formControl",e.searchCtrl),t.xp6(2),t.Q6J("disabled",e.loading||0===e.searchCtrl.value.length),t.xp6(3),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(81,74,"DIALOGS.CREATE_SERVICE_MEMBER.ADD_USER")," "),t.xp6(2),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function dc(i,n){1&i&&t._UZ(0,"mat-spinner",39)}function mc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",49),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CREATE_SERVICE_MEMBER.BACK")," "))}function gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperNext()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.ekj("ml-2",void 0!==e.stepper&&0!==e.stepper.selectedIndex)("ml-auto",!(void 0!==e.stepper&&0!==e.stepper.selectedIndex)),t.Q6J("disabled",e.getStepperNextConditions()),t.xp6(1),t.hij(" ",t.lcZ(2,6,"DIALOGS.CREATE_SERVICE_MEMBER.NEXT")," ")}}function hc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",e.firstFormGroup.invalid||"Not selected"!==e.secondFormGroup.get("namespaceCtrl").value&&e.secondFormGroup.invalid),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.CREATE_SERVICE_MEMBER.CREATE")," ")}}function Tc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",44),t.TgZ(1,"button",45),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,mc,3,3,"button",46),t.YNc(5,gc,3,8,"button",47),t.YNc(6,hc,3,4,"button",48),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex!==e.stepper._steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==e.stepper&&e.stepper.selectedIndex===e.stepper._steps.length-1)}}let Ac=(()=>{class i{constructor(e,o,a,s,r,_,A,v,R,ut){this.dialogRef=e,this.data=o,this.membersManagerService=a,this.usersManagerService=s,this.notificator=r,this.translate=_,this.store=A,this.apiRequestConfiguration=v,this._formBuilder=R,this.cd=ut,this.namespaceOptions=[],this.selectedNamespace=null,this.namespaceRules=[],this.parsedRules=new Map,this.firstSearchDone=!1,this.searchCtrl=new T.NI(""),this.members=[],this.selection=new E.Ov(!0,[]),this.tableId=C.j1,this.assignedMembers=[],this.candidate={beanName:"",id:0},this.successMessageMember="",this.successMessagePwd="",this.processing=!1,_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_MEMBER").subscribe(_t=>this.successMessageMember=_t),_.get("DIALOGS.CREATE_SERVICE_MEMBER.SUCCESS_PWD").subscribe(_t=>this.successMessagePwd=_t)}ngAfterViewInit(){this.cd.detectChanges()}ngOnInit(){this.firstFormGroup=this._formBuilder.group({nameCtrl:["",T.kI.required],emailCtrl:["",[T.kI.required,T.kI.pattern("\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(.\\w{2,3})+")]],subjectCtrl:[null],issuerCtrl:[null]}),this.secondFormGroup=this._formBuilder.group({namespaceCtrl:["Not selected"],loginCtrl:["",[T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)]],passwordCtrl:["",T.kI.required,[(0,Gt.yT)(null,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],generatePasswordCtrl:[!0]},{validators:m.dN.passwordMatchValidator}),this.namespaceOptions=["Not selected"],this.membersManagerService.getAllNamespacesRules().subscribe(o=>{this.namespaceRules=o,this.parseNamespaceRules(),this.loading=!1}),this.onNamespaceChanged("Not selected");const e=this.store.getPerunPrincipal().user;this.membersManagerService.getMembersByUser(e.id).subscribe(o=>{let a={};for(const s of o)s.voId===this.data.voId&&(a=s);a.user=e,this.assignedMembers.push(a)})}existingLoginValidator(){return e=>{let o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase();return o="not selected"===o?"mu":o,e.valueChanges.pipe((0,ql.b)(500),(0,Vl.q)(1),(0,Fl.w)(()=>this.usersManagerService.isLoginAvailable(o,e.value).pipe((0,rt.U)(a=>a?null:{loginExists:!0}))))}}onCreate(){this.processing=!0,this.candidate.firstName="",this.candidate.lastName=this.firstFormGroup.get("nameCtrl").value,this.candidate.attributes={},this.candidate.attributes["urn:perun:member:attribute-def:def:mail"]=this.firstFormGroup.get("emailCtrl").value;const e=this.firstFormGroup.get("subjectCtrl");(null==e?void 0:e.value)&&(this.candidate.userExtSource={},this.candidate.userExtSource.login=e.value,this.candidate.userExtSource.loa=0,this.candidate.userExtSource.extSource={},this.candidate.userExtSource.extSource.name=this.firstFormGroup.get("issuerCtrl").value,this.candidate.userExtSource.extSource.type="cz.metacentrum.perun.core.impl.ExtSourceX509");const o=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),a=this.parsedRules.get(o),s=`urn:perun:user:attribute-def:def:login-namespace:${o}`;"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&"disabled"===a.login?this.usersManagerService.generateAccountForName(o,this.firstFormGroup.get("nameCtrl").value).subscribe(r=>{this.candidate.attributes[s]=r[s],this.createSpecificMember()},()=>this.processing=!1):("Not selected"!==this.secondFormGroup.get("namespaceCtrl").value&&(this.candidate.attributes[s]=this.secondFormGroup.get("loginCtrl").value),this.createSpecificMember())}createSpecificMember(){this.membersManagerService.createSpecificMember({vo:this.data.voId,specificUserType:"SERVICE",specificUserOwners:this.assignedMembers.map(e=>e.user),candidate:this.candidate}).subscribe(e=>{this.membersManagerService.validateMemberAsync(e.id).subscribe(o=>{this.notificator.showSuccess(this.successMessageMember),"Not selected"!==this.secondFormGroup.get("namespaceCtrl").value?this.setPassword(o,this.secondFormGroup.get("generatePasswordCtrl").value):(this.dialogRef.close(!0),this.processing=!1)},()=>this.processing=!1)},()=>this.processing=!1)}parseNamespaceRules(){for(const e of this.namespaceRules){this.namespaceOptions.push(e.namespaceName);const o={login:"disabled"};this.parseAttributes(o,e.requiredAttributes,"required"),this.parseAttributes(o,e.optionalAttributes,"optional"),this.parsedRules.set(e.namespaceName,o)}}parseAttributes(e,o,a){for(const s of o)"login"===s&&(e.login=a)}setPassword(e,o){const a=this.secondFormGroup.get("namespaceCtrl").value.toLowerCase(),s=this.secondFormGroup.get("passwordCtrl").value;if(o){if("disabled"===this.parsedRules.get(a).login)return void this.validateMember(e.id);this.usersManagerService.reserveRandomPassword(e.userId,a).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id,!1)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}else this.usersManagerService.reservePasswordForUser(e.userId,a,s).subscribe(()=>{this.usersManagerService.validatePasswordForUser(e.userId,a).subscribe(()=>{this.validateMember(e.id)},()=>{this.processing=!1,this.dialogRef.close(!0)})},()=>{this.processing=!1,this.dialogRef.close(!0)})}validateMember(e,o=!0){this.membersManagerService.validateMemberAsync(e).subscribe(()=>{o&&this.notificator.showSuccess(this.successMessagePwd),this.dialogRef.close(!0),this.processing=!1},()=>{this.processing=!1,this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}onSearchByString(){this.loading=!0,this.membersManagerService.findCompleteRichMembersForVo(this.data.voId,[""],this.searchCtrl.value).subscribe(e=>{this.members=e.filter(o=>!o.user.specificUser),this.firstSearchDone=!0,this.loading=!1})}addUsers(){const e=this.assignedMembers.map(o=>o.id);this.selection.selected.forEach(o=>{e.includes(o.id)||this.assignedMembers.push(o)}),this.selection.clear()}removeUser(e){this.assignedMembers=this.assignedMembers.filter(o=>o.id!==e.id)}onNamespaceChanged(e){this.selectedNamespace=e.toLowerCase();const o=this.secondFormGroup.get("loginCtrl"),a=this.secondFormGroup.get("passwordCtrl"),s=this.secondFormGroup.get("passwordAgainCtrl"),r=this.secondFormGroup.get("generatePasswordCtrl");if("Not selected"!==e){if("disabled"===this.parsedRules.get(this.selectedNamespace).login)o.disable(),o.setValue("");else{const _=[T.kI.required,T.kI.pattern("^[a-z][a-z0-9_-]+$"),T.kI.maxLength(15),T.kI.minLength(2)];(0,m.mH)(o,_,[this.existingLoginValidator()])}(0,m.mH)(r,[]),this.passwordOptionChanged()}else o.disable(),o.setValue(""),a.disable(),a.setValue(""),s.disable(),s.setValue(""),r.disable(),r.dirty||r.setValue(!0)}passwordOptionChanged(){const e=this.secondFormGroup.get("passwordCtrl"),o=this.secondFormGroup.get("passwordAgainCtrl");this.secondFormGroup.get("generatePasswordCtrl").value?(e.disable(),e.setValue(""),o.disable(),o.setValue("")):((0,m.mH)(e,[T.kI.required],[(0,Gt.yT)(this.selectedNamespace,this.usersManagerService,this.apiRequestConfiguration)]),(0,m.mH)(o,[]))}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.firstFormGroup.invalid||this.firstFormGroup.pending;case 1:return this.secondFormGroup.invalid||this.secondFormGroup.pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.uq),t.Y36(h.Fv),t.Y36(u.V6),t.Y36(d.sK),t.Y36(u.d6),t.Y36(u.F5),t.Y36(T.qu),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-create-service-member-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Jl,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:6,consts:[[1,"vo-theme"],[1,"mat-dialog-title"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],[3,"formGroup"],["matStepLabel",""],[1,"display-flex"],["formControlName","nameCtrl","matInput","","required",""],[4,"ngIf"],["formControlName","emailCtrl","matInput","","required","","type","email"],["formControlName","subjectCtrl","matInput","",3,"required"],["formControlName","issuerCtrl","matInput","",3,"required"],["formControlName","namespaceCtrl",3,"valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"floatLabel"],["formControlName","loginCtrl","matInput","","required","",3,"hidden"],["class","input-disabled",4,"ngIf"],["formControlName","generatePasswordCtrl","matTooltipPosition","left",1,"display-flex","mt-3",3,"matTooltipDisabled","matTooltip","ngModelChange"],[3,"checked","value"],[3,"formGroup","namespace","passwordRequired"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"mr-2","w-50"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","primary","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",3,"disabled","click"],[3,"value"],[1,"input-disabled"],[1,"truncate","center-content"],["class","text-muted",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-icon-button","",1,"ml-1",3,"disabled","click"],[1,"margin-bottom"],[1,"text-muted"],[1,"ml-auto","mr-auto"],[3,"disableRouting","displayedColumns","members","tableId","selection",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"disableRouting","displayedColumns","members","tableId","selection"],["alert_type","info"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"h1",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,_c,84,76,"div",2),t.YNc(5,dc,1,0,"mat-spinner",3),t.YNc(6,Tc,7,6,"div",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"DIALOGS.CREATE_SERVICE_MEMBER.TITLE")),t.xp6(2),t.Q6J("ngIf",!o.processing),t.xp6(1),t.Q6J("ngIf",o.processing),t.xp6(1),t.Q6J("ngIf",!o.processing))},directives:[g.O5,p.xY,U.Vq,U.C0,T._Y,T.JL,T.sg,U.VY,S.KE,S.hX,T.Fj,y.Nt,T.JJ,T.u,T.Q7,S.TO,J.gD,g.sg,Q.ey,j.VQ,x.gM,j.U0,Yl.G,Pt.i$,Pt.Tg,I.lW,P.Hw,T.oH,f.$g,yt.O,D.w,p.H8],pipes:[d.X$,B.d],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.input-disabled[_ngcontent-%COMP%]{pointer-events:none;color:#888}.truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}.margin-bottom[_ngcontent-%COMP%]{margin-bottom:6px}"]}),i})();var fc=c(53455);function Ic(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveMembers()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",e.selection.isEmpty()),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.DELETE"),"\n")}}function bc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}const vc=function(){return["checkbox","id","type","fullName","status"]};function Ec(i,n){if(1&i&&t._UZ(0,"perun-web-apps-members-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",t.DdM(6,vc))("selection",e.selection)("disableStatusChange",!0)("filter",e.searchString)("members",e.members)}}let Cc=(()=>{class i{constructor(e,o,a,s,r){this.membersManager=e,this.dialog=o,this.authResolver=a,this.authzService=s,this.entityStorageService=r,this.members=[],this.selection=new E.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=C._c}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.refresh()}createServiceMember(){const e=(0,m.kZ)();e.width="750px",e.data={voId:this.vo.id},this.dialog.open(Ac,e).afterClosed().subscribe(a=>{a&&this.refresh()})}onRemoveMembers(){const e=(0,m.kZ)();e.width="450px",e.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(fc.X,e).afterClosed().subscribe(a=>{a&&(this.refresh(),this.selection.clear())})}applyFilter(e){this.searchString=e}refresh(){this.loading=!0,this.membersManager.findCompleteRichMembersForVo(this.vo.id,[""],"(Service)").subscribe(e=>{this.members=e,this.loading=!1})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(h.uq),t.Y36(p.uw),t.Y36(u.x4),t.Y36(u.x4),t.Y36(u.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-service-members"]],decls:11,vars:10,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","selection","disableStatusChange","filter","members"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return o.refresh()}),t.qZA(),t.TgZ(4,"button",2),t.NdJ("click",function(){return o.createServiceMember()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Ic,3,4,"button",3),t.TgZ(8,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,bc,1,0,"mat-spinner",5),t.YNc(10,Ec,1,7,"perun-web-apps-members-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.TITLE")),t.xp6(4),t.hij(" ",t.lcZ(6,8,"VO_DETAIL.SETTINGS.SERVICE_MEMBERS.CREATE"),"\n"),t.xp6(2),t.Q6J("ngIf",o.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.SERVICE_MEMBERS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,I.lW,g.O5,L.L,f.$g,yt.O],pipes:[d.X$],styles:[""]}),i})();var $=c(71992),qt=c(87831);const Sc=["stepper"];function xc(i,n){1&i&&t._UZ(0,"mat-spinner",4)}function Zc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SELECTION_STEP"))}function Nc(i,n){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRMATION_STEP"))}function Oc(i,n){1&i&&t._UZ(0,"th",19)}function Dc(i,n){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Oqu(e.name)}}function Mc(i,n){1&i&&t._UZ(0,"tr",21)}function Lc(i,n){1&i&&t._UZ(0,"tr",22)}function Rc(i,n){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"table",12),t.ynx(4,13),t.YNc(5,Oc,1,0,"th",14),t.YNc(6,Dc,2,1,"td",15),t.BQk(),t.YNc(7,Mc,1,0,"tr",16),t.YNc(8,Lc,1,0,"tr",17),t.qZA(),t.TgZ(9,"perun-web-apps-alert",18),t._uU(10),t.ALo(11,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CONFIRM")),t.xp6(2),t.Q6J("dataSource",e.voSelection.selected),t.xp6(4),t.Q6J("matHeaderRowDef",e.columns),t.xp6(1),t.Q6J("matRowDefColumns",e.columns),t.xp6(1),t.Q6J("alert_type","warn"),t.xp6(1),t.Oqu(t.lcZ(11,8,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.WARNING"))}}function wc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"mat-stepper",6,7),t.TgZ(3,"mat-step"),t.YNc(4,Zc,2,3,"ng-template",8),t.TgZ(5,"perun-web-apps-immediate-filter",9),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().voFilter=a}),t.qZA(),t._UZ(6,"perun-web-apps-vos-list",10),t.qZA(),t.TgZ(7,"mat-step"),t.YNc(8,Nc,2,3,"ng-template",8),t.YNc(9,Rc,12,10,"ng-template",11),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("linear",!0),t.xp6(4),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.FILTER_VOS"),t.xp6(1),t.Q6J("vos",e.vos)("selection",e.voSelection)("displayedColumns",e.displayedColumns)("filterValue",e.voFilter)("disableRouting",!0)}}function Uc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperPrevious()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.BACK")," "))}function Gc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",29),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).stepperNext()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.NEXT")," ")}}function Pc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",30),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).addMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.ADD")," "))}function yc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",23),t.TgZ(1,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",25),t.YNc(5,Uc,3,3,"button",26),t.YNc(6,Gc,3,4,"button",27),t.YNc(7,Pc,3,3,"button",28),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,4,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.CANCEL")," "),t.xp6(3),t.Q6J("ngIf",void 0!==e.stepper&&0!==e.stepper.selectedIndex),t.xp6(1),t.Q6J("ngIf",1!==(null==e.stepper?null:e.stepper.selectedIndex)),t.xp6(1),t.Q6J("ngIf",1===(null==e.stepper?null:e.stepper.selectedIndex))}}let qc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.vosService=o,this.entityStorage=a,this.notificator=s,this.translator=r,this.loading=!1,this.theme="vo-theme",this.displayedColumns=["checkbox","id","name","shortName"],this.columns=["name"],this.vos=[],this.voSelection=new E.Ov(!1,[]),this.voFilter=""}ngOnInit(){this.loading=!0,this.voId=this.entityStorage.getEntity().id,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.vosService.getAllVos().subscribe(o=>{const a=e.memberVos.map(s=>s.id);this.vos=o.filter(s=>!a.includes(s.id)),this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}close(){this.dialogRef.close(!1)}stepperNext(){this.stepper.next()}stepperPrevious(){this.stepper.previous()}addMemberOrganization(){this.loading=!0,this.vosService.addMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-organization-dialog"]],viewQuery:function(e,o){if(1&e&&t.Gf(Sc,5),2&e){let a;t.iGM(a=t.CRH())&&(o.stepper=a.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],["matStepLabel",""],[3,"placeholder","filter"],[3,"vos","selection","displayedColumns","filterValue","disableRouting"],["matStepContent",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],[1,"ml-auto"],["mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,xc,1,0,"mat-spinner",1),t.YNc(5,wc,10,7,"div",2),t.YNc(6,yc,8,6,"div",3),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,7,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD_MEMBER_ORGANIZATION.TITLE")," "),t.xp6(2),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[p.uh,g.O5,f.$g,p.xY,U.Vq,U.C0,U.VY,L.L,qt.Z,U.BY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,D.w,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Vc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.ADD"),"\n"))}function Fc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeMemberOrganization()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.voSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE"),"\n")}}function Yc(i,n){1&i&&t._UZ(0,"mat-spinner",9)}function Jc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-vos-list",10),2&i){const e=t.oxw();t.Q6J("vos",e.memberVos)("selection",e.voSelection)("filterValue",e.filterValue)("disableRouting",!e.auth)("displayedColumns",e.displayedColumns)}}let Qc=(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.vosService=o,this.entityStorage=a,this.authResolver=s,this.reloadDetailService=r,this.notificator=_,this.translator=A,this.loading=!1,this.voSelection=new E.Ov(!1,[]),this.displayedColumns=["checkbox","id","shortName","name"],this.filterValue="",this.auth=!1,this.memberVos=[]}ngOnInit(){this.auth=this.authResolver.isPerunAdmin(),this.voId=this.entityStorage.getEntity().id,this.refresh()}refresh(){this.loading=!0,this.vosService.getEnrichedVoById(this.voId).subscribe(e=>{this.voId=e.vo.id,this.memberVos=e.memberVos,this.voSelection.clear(),this.loading=!1},()=>this.loading=!1)}addMemberOrganization(){const e=(0,m.kZ)();e.width="750px",this.dialog.open(qc,e).afterClosed().subscribe(o=>{o&&(this.reloadDetailService.reloadEntityDetail(),this.refresh())})}removeMemberVos(){this.vosService.removeMemberVo(this.voId,this.voSelection.selected[0].id).subscribe(()=>{this.notificator.showSuccess(this.translator.instant("VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE")),this.reloadDetailService.reloadEntityDetail(),this.refresh()})}removeMemberOrganization(){const e=(0,m.kZ)();e.width="550px",e.data={items:this.voSelection.selected.map(o=>o.name),title:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.TITLE",alert:"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.REMOVE_MEMBER_ORGANIZATION.WARNING",theme:"vo-theme",type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.removeMemberVos()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(h.YF),t.Y36(u.fb),t.Y36(u.x4),t.Y36(X.G),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-member-organizations"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"click"],["mat-flat-button","","class","mr-2 action-button","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","selection","filterValue","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"vos","selection","filterValue","disableRouting","displayedColumns"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("click",function(){return o.refresh()}),t.qZA(),t.YNc(4,Vc,3,3,"button",2),t.YNc(5,Fc,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(s){return o.filterValue=s}),t.qZA(),t.YNc(7,Yc,1,0,"mat-spinner",5),t.YNc(8,Jc,1,5,"perun-web-apps-vos-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.TITLE")),t.xp6(3),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("ngIf",o.auth),t.xp6(1),t.Q6J("placeholder","VO_DETAIL.SETTINGS.MEMBER_ORGANIZATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[G.t,g.O5,I.lW,L.L,f.$g,qt.Z],pipes:[d.X$],styles:[""]}),i})();const kc=function(){return["select","id","name","description"]};function Bc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",7),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.groups)("selection",e.selected)("filter",e.filterValue)("displayedColumns",t.DdM(7,kc))("disableRouting",!0)("noGroupsAlert","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.NO_GROUPS_FOUND_ALERT")}}function Hc(i,n){1&i&&t._UZ(0,"mat-spinner",8)}function jc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",9),t.TgZ(1,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().close()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().confirm()}),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(6,5,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.ALLOW")," ")}}const $c=function(i){return{parentVo:i}};let zc=(()=>{class i{constructor(e,o,a,s,r){this.dialogRef=e,this.data=o,this.groupService=a,this.notificator=s,this.translate=r,this.loading=!1,this.selected=new E.Ov(!0,[]),this.tableId=C.uI,this.filterValue=""}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voId=this.data.voId,this.parentVo=this.data.parentVo,this.groupService.getAllGroups(this.voId).subscribe(e=>{this.groups=e.filter(o=>!this.data.allowedGroupsIds.includes(o.id)),this.loading=!1})}applyFilter(e){this.filterValue=e}close(){this.dialogRef.close(!1)}confirm(){if(0===this.selected.selected.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS"));this.loading=!0,this.groupService.allowGroupToHierarchicalVo(this.selected.selected.pop().id,this.parentVo.id).subscribe(()=>{this.confirm(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.so),t.Y36(p.WI),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-group-hierarchical-include-dialog"]],decls:12,vars:16,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["alert_type","info"],[3,"placeholder","filter"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","filter","displayedColumns","disableRouting","noGroupsAlert"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t.TgZ(5,"perun-web-apps-alert",2),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"perun-web-apps-immediate-filter",3),t.NdJ("filter",function(s){return o.applyFilter(s)}),t.qZA(),t.YNc(9,Bc,1,8,"perun-web-apps-groups-list",4),t.YNc(10,Hc,1,0,"mat-spinner",5),t.qZA(),t.YNc(11,jc,7,7,"div",6),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.hij(" ",t.lcZ(3,9,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.TITLE")," "),t.xp6(4),t.hij(" ",t.xi3(7,11,"DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.INFO",t.VKq(14,$c,o.parentVo.name))," "),t.xp6(2),t.Q6J("placeholder","DIALOGS.ADD_GROUPS_HIERARCHICAL_INCLUSION.SEARCH"),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",!o.loading))},directives:[p.uh,p.xY,D.w,L.L,g.O5,q.W,f.$g,p.H8,I.lW],pipes:[d.X$],styles:[""]}),i})();function Xc(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-vo-search-select",9),t.NdJ("voSelected",function(a){return t.CHM(e),t.oxw().voSelected(a)}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("vos",e.parentVos)}}const Wc=function(){return["select","id","name","description"]};function Kc(i,n){if(1&i&&t._UZ(0,"perun-web-apps-groups-list",10),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("groups",e.allowedGroups)("selection",e.selected)("displayedColumns",t.DdM(5,Wc))("noGroupsAlert","VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.NO_GROUPS_ALLOWED_ALERT")}}function tp(i,n){1&i&&t._UZ(0,"mat-spinner",11)}const ip=[{path:"",component:Yt.Y},{path:":voId",component:Me,canActivateChild:[$.a],children:[{path:"",component:de,data:{animation:"VoOverviewPage"}},{path:"attributes",component:xi,data:{animation:"VoAttributesPage"}},{path:"groups",component:me.G,data:{animation:"VoGroupsPage"}},{path:"members",component:ge.y,data:{animation:"VoMembersPage"}},{path:"resources",component:Ei,children:[{path:"",component:ma,data:{animation:"VoResourcesOverviewPage"}},{path:"preview",component:ga.z,data:{animation:"VoResourcesPreviewPage"}},{path:"states",component:ha.z,data:{animation:"VoResourcesStatesPage"}},{path:"tags",component:Da,data:{animation:"VoResourcesTagsPage"}}]},{path:"applications",component:Ci.c,data:{animation:"VoApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"VoApplicationDetailPage"}},{path:"sponsoredMembers",component:ul.T,data:{animation:"VoSettingsSponsoredMembersPage"}},{path:"serviceAccounts",component:Cc,data:{animation:"VoSettingsServiceMembersPage"}},{path:"statistics",component:Cl,data:{animation:"VoStatisticsPage"}},{path:"settings",component:Si,children:[{path:"",component:Oi,data:{animation:"VoSettingsOverviewPage"}},{path:"expiration",component:ki,data:{animation:"VoSettingsExpirationPage"}},{path:"managers",component:Hi,data:{animation:"VoSettingsManagersPage"}},{path:"applicationForm",component:zo.w,data:{animation:"SettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St,data:{animation:"SettingsApplicationFormPreviewPage"}},{path:"applicationForm/manageGroups",component:Pl},{path:"notifications",component:ys,data:{animation:"SettingsApplicationFormNotificationsPage"}},{path:"extsources",component:cr,data:{animation:"VoSettingsExtSourcesPage"}},{path:"memberOrganizations",component:Qc,data:{animation:"VoSettingsMemberOrganizationsPage"}},{path:"hierarchicalInclusion",component:(()=>{class i{constructor(e,o,a,s,r,_,A){this.dialog=e,this.entityStorage=o,this.voService=a,this.groupService=s,this.notificator=r,this.translate=_,this.changeDetector=A,this.loading=!1,this.parentVos=[],this.allowedGroups=[],this.selected=new E.Ov(!0,[]),this.tableId=C.$t}ngOnInit(){this.loading=!0,this.vo=this.entityStorage.getEntity(),this.voService.getEnrichedVoById(this.vo.id).subscribe(e=>{this.parentVos=e.parentVos,this.loading=!1},()=>this.loading=!1)}voSelected(e){this.selectedParentVo=e,this.loadAllowedGroups(),this.changeDetector.detectChanges()}loadAllowedGroups(){this.loading=!0,this.selected.clear(),this.groupService.getVoAllAllowedGroupsToHierarchicalVo(this.selectedParentVo.id,this.vo.id).subscribe(e=>{this.allowedGroups=e,this.loading=!1})}addGroupsInclusion(){const e=(0,m.kZ)();e.width="750px",e.data={theme:"vo-theme",voId:this.vo.id,parentVo:this.selectedParentVo,allowedGroupsIds:this.allowedGroups.map(o=>o.id)},this.dialog.open(zc,e).afterClosed().subscribe(o=>{o&&this.loadAllowedGroups()})}removeGroupsInclusion(){const e=(0,m.kZ)();e.width="750px",e.data={theme:"vo-theme",title:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.TITLE",description:"DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.DESCRIPTION",items:this.selected.selected.map(o=>o.name),alert:this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.ALERT",{parentVo:this.selectedParentVo.name}),type:"remove",showAsk:!0},this.dialog.open(w.Ts,e).afterClosed().subscribe(o=>{o&&this.disallowGroup()})}disallowGroup(){if(0===this.selected.selected.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_GROUPS_HIERARCHICAL_INCLUSION.SUCCESS")),void this.loadAllowedGroups();this.loading=!0,this.groupService.disallowGroupToHierarchicalVo(this.selected.selected.pop().id,this.selectedParentVo.id).subscribe(()=>{this.disallowGroup(),this.loading=!1},()=>this.loading=!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(p.uw),t.Y36(u.fb),t.Y36(h.YF),t.Y36(h.ff),t.Y36(u.V6),t.Y36(d.sK),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-vo-settings-hierarchical-inclusion"]],decls:15,vars:13,consts:[[1,"page-subtitle"],[1,"display-flex"],[3,"click"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"vo-search-select"],[3,"vos","voSelected",4,"ngIf"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"vos","voSelected"],["theme","vo-theme",3,"tableId","groups","selection","displayedColumns","noGroupsAlert"],[1,"ml-auto","mr-auto"]],template:function(e,o){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div",1),t.TgZ(4,"perun-web-apps-refresh-button",2),t.NdJ("click",function(){return o.loadAllowedGroups()}),t.qZA(),t.TgZ(5,"button",3),t.NdJ("click",function(){return o.addGroupsInclusion()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return o.removeGroupsInclusion()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"div",5),t.YNc(12,Xc,1,1,"perun-web-apps-vo-search-select",6),t.qZA(),t.qZA(),t.YNc(13,Kc,1,6,"perun-web-apps-groups-list",7),t.YNc(14,tp,1,0,"mat-spinner",8)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,7,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.TITLE")),t.xp6(5),t.hij(" ",t.lcZ(7,9,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.ADD")," "),t.xp6(2),t.Q6J("disabled",0===o.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,11,"VO_DETAIL.SETTINGS.HIERARCHICAL_INCLUSION.REMOVE")," "),t.xp6(3),t.Q6J("ngIf",o.parentVos.length>0),t.xp6(1),t.Q6J("ngIf",!o.loading),t.xp6(1),t.Q6J("ngIf",o.loading))},directives:[G.t,I.lW,g.O5,nt.M,q.W,f.$g],pipes:[d.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.vo-search-select[_ngcontent-%COMP%]{width:400px;padding-top:10px;margin-left:5px}"]}),i})(),data:{animation:"VoSettingsHierarchicalInclusionComponent"}}]}]},{path:":voId/members/:memberId",component:pe,canActivateChild:[$.a],children:[{path:"",component:gi,data:{animation:"MemberOverviewPage"}},{path:"attributes",component:da,data:{animation:"MemberAttributesPage"}},{path:"groups",component:hi.j,data:{animation:"MemberGroupsPage"}},{path:"applications",component:Ur,data:{animation:"MemberApplicationsPage"}},{path:"applications/:applicationId",component:it,data:{animation:"MemberApplicationDetailPage"}},{path:"resources",component:el,data:{animation:"MemberResourcesPage"}}]},{path:":voId/groups/:groupId",component:ie,canActivateChild:[$.a],children:[{path:"",component:bi,data:{animation:"GroupOverviewPage"}},{path:"members",component:Uo.y,data:{animation:"GroupMembersPage"}},{path:"subgroups",component:vi.u,data:{animation:"GroupSubgroupsPage"}},{path:"applications",component:Bi.W,data:{animation:"GroupApplicationsPage"}},{path:"resources",component:Go.q,data:{animation:"GroupResourcesPage"}},{path:"attributes",component:Bo,data:{animation:"GroupAttributesPage"}},{path:"statistics",component:Zl,data:{animation:"GroupStatisticsPage"}},{path:"settings",component:Po,children:[{path:"",component:$o,data:{animation:"GroupSettingsOverviewPage"}},{path:"expiration",component:La,data:{animation:"GroupSettingsExpirationPage"}},{path:"managers",component:Ra,data:{animation:"GroupSettingsManagersPage"}},{path:"applicationForm",component:qs.Z,data:{animation:"GroupSettingsApplicationFormPage"}},{path:"applicationForm/preview",component:St},{path:"notifications",component:js,data:{animation:"GroupSettingsNotificationsPage"}},{path:"relations",component:Or,data:{animation:"GroupSettingsRelationsPage"}},{path:"extsources",component:hl,data:{animation:"GroupSettingsExtsourcesPage"}}]},{path:"applications/:applicationId",component:it,data:{animation:"GroupApplicationDetailPage"}}]},{path:":voId/resources/:resourceId",component:il.b,canActivateChild:[$.a],children:[{path:"",component:ol.H,data:{animation:"ResourceOverviewPage"}},{path:"groups",component:nl.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:cl.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"attributes",component:rl.X,data:{animation:"ResourceAttributesPage"}},{path:"members",component:pl.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:yl.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:al.t,children:[{path:"",component:sl.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:ll.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let op=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[b.Bz.forChild(ip)],b.Bz]}),i})();var np=c(14264),ap=c(63189),sp=c(19516),rp=c(51525),lp=c(45256);let lt=(()=>{class i{transform(e){var o,a,s,r;return(null===(o=null==e?void 0:e.member)||void 0===o?void 0:o.sourceGroupId)&&"DIRECT"===(null===(a=null==e?void 0:e.member)||void 0===a?void 0:a.membershipType)?"Member of Group":(null===(s=null==e?void 0:e.member)||void 0===s?void 0:s.sourceGroupId)&&"INDIRECT"===(null===(r=null==e?void 0:e.member)||void 0===r?void 0:r.membershipType)?"Indirect member of Group":e.member?"Member of VO":""}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"memberType",type:i,pure:!0}),i})();var cp=c(86511);let ct=(()=>{class i{constructor(e){this.addMemberService=e}transform(e,o){var a,s;return e.member?"vo"===this.addMemberService.getType()||(null===(a=e.member)||void 0===a?void 0:a.sourceGroupId)&&"DIRECT"===(null===(s=e.member)||void 0===s?void 0:s.membershipType):o}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(cp.A,16))},i.\u0275pipe=t.Yjl({name:"disabledCandidate",type:i,pure:!0}),i})(),pp=(()=>{class i{transform(e){return e.member?"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER":"MEMBERS_CANDIDATES_LIST.ADDING_BLOCKED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"disabledCandidateTooltip",type:i,pure:!0}),i})();var up=c(9954);function _p(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(a){t.CHM(e);const s=t.oxw();return a?s.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"div",21),t.ALo(2,"translate"),t.ALo(3,"disabledCandidateTooltip"),t.ALo(4,"disabledCandidate"),t.TgZ(5,"mat-checkbox",22),t.NdJ("change",function(a){const r=t.CHM(e).$implicit,_=t.oxw();return a?_.itemSelectionToggle(r):null})("click",function(a){return a.stopPropagation()}),t.ALo(6,"disabledCandidate"),t.ALo(7,"lowercase"),t.ALo(8,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,6,t.lcZ(3,8,e)))("matTooltipDisabled",!t.xi3(4,10,e,o.blockManualAdding)),t.xp6(4),t.Q2q("data-cy","",t.lcZ(7,16,t.lcZ(8,18,e.richUser?e.richUser.firstName:e.candidate.firstName)),"-checkbox"),t.Q6J("aria-label",o.checkboxLabel(e))("checked",o.selection.isSelected(e))("disabled",t.xi3(6,13,e,o.blockManualAdding))}}function mp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.STATUS")," "))}function gp(i,n){if(1&i&&(t.TgZ(0,"i",26),t.ALo(1,"memberStatusIconColor"),t._uU(2),t.ALo(3,"memberStatusIcon"),t.qZA()),2&i){const e=t.oxw().$implicit;t.Gre("material-icons ",t.lcZ(1,5,e.member.status),""),t.s9C("matTooltip",e.member.status),t.xp6(2),t.hij(" ",t.lcZ(3,7,e.member.status)," ")}}function hp(i,n){if(1&i&&(t.TgZ(0,"td",24),t.YNc(1,gp,4,9,"i",25),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.Q6J("ngIf",e.member)}}function Tp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.NAME")," "))}function Ap(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userFullName"),t.ALo(3,"userFullName"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):t.lcZ(3,3,e.candidate)," ")}}function fp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ORGANIZATION")," "))}function Ip(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"userVo"),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",e.richUser?t.lcZ(2,1,e.richUser):o.getOrganization(e.candidate)," ")}}function bp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.EMAIL")," "))}function vp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getEmail(e)," ")}}function Ep(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.LOGINS")," "))}function Cp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit,o=t.oxw();t.xp6(1),t.hij(" ",o.getLogins(e)," ")}}function Sp(i,n){1&i&&(t.TgZ(0,"th",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"MEMBERS_CANDIDATES_LIST.ALREADY_MEMBER")," "))}function xp(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.ALo(2,"memberType"),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Zp(i,n){1&i&&t._UZ(0,"th",23)}function Np(i,n){if(1&i&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.richUser?"Local":"External identity"," ")}}function Op(i,n){1&i&&t._UZ(0,"tr",27)}function Dp(i,n){1&i&&t._UZ(0,"tr",28)}function Mp(i,n){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NO_USERS_FOUND"),"\n"))}let Lp=(()=>{class i{constructor(e,o,a){this.memberTypePipe=e,this.disabledCandidatePipe=o,this.tableCheckbox=a,this.blockManualAdding=!1,this.displayedColumns=["checkbox","status","fullName","voExtSource","email","logins","alreadyMember","local"],this.pageSizeOptions=m.f7,this.canBeSelected=s=>!this.disabledCandidatePipe.transform(s,this.blockManualAdding),this.getDataForColumnFun=(s,r)=>this.getDataForColumn(s,r),this.getExportDataForColumnFun=(s,r)=>this.getExportDataForColumn(s,r)}set matSort(e){this.sort=e,this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new l.by(this.members),this.setDataSource()}getDataForColumn(e,o){var a,s;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":{const r=e.richUser?e.richUser:e.candidate;return r.lastName?r.lastName:null!==(s=r.firstName)&&void 0!==s?s:""}case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}getExportDataForColumn(e,o){var a;switch(o){case"status":return e.member&&null!==(a=e.member.status)&&void 0!==a?a:"";case"fullName":return(0,m.bD)(e.richUser?e.richUser:e.candidate);case"voExtSource":return e.richUser?(0,m.OV)(e.richUser):(0,m.v$)(e.candidate);case"email":return e.richUser||e.member?(0,m.kN)(e.richUser):this.getEmail(e);case"logins":return this.getLogins(e);case"alreadyMember":return this.memberTypePipe.transform(e);case"local":return e.richUser?"Local":"External identity";default:return e[o]}}exportData(e){(0,m.O6)((0,m.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,o)=>(0,m.Sd)(e,o,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(e,o)=>(0,m.pR)(e,o,this.getDataForColumnFun),this.dataSource.paginator=this.child.paginator)}getEmail(e){let o;if(e.richUser){for(const a of e.richUser.userAttributes)if(a.namespace+":"+a.friendlyName=="urn:perun:user:attribute-def:def:preferredMail"){o=a;break}return null!=(null==o?void 0:o.value)?o.value.replace(","," "):""}return(0,m.Jc)(e.candidate)}getOrganization(e){return(0,m.v$)(e)}getLogins(e){if(e.richUser)return this.getLoginsForRichUser(e.richUser);{let o=this.getLoginsForCandidate(e.candidate);return(null==o||""===o)&&(o=e.candidate.userExtSource.login),o}}getLoginsForRichUser(e){let o="";for(const a of e.userAttributes)a.friendlyName.startsWith("login-namespace")&&null!=a.value&&(o.length>0&&(o+=", "),o+=a.friendlyName.substring(16)+": "+a.value);return o}getLoginsForCandidate(e){let a="";for(const s in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,s)&&s.includes("urn:perun:user:attribute-def:def:login-namespace:")&&null!=e.attributes[s]&&(a.length>0&&(a+=", "),a+=s.substring(49)+": "+e.attributes[s]);return a}itemSelectionToggle(e){this.selection.toggle(e)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(e){return e?this.selection.isSelected(e)?"deselect":"select":(this.isAllSelected()?"select":"deselect")+" all"}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(lt),t.Y36(ct),t.Y36(u.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-members-candidates-list"]],viewQuery:function(e,o){if(1&e&&(t.Gf(m.l9,7),t.Gf(k.YE,7)),2&e){let a;t.iGM(a=t.CRH())&&(o.child=a.first),t.iGM(a=t.CRH())&&(o.matSort=a.first)}},inputs:{members:"members",selection:"selection",tableId:"tableId",blockManualAdding:"blockManualAdding"},features:[t._Bn([lt,ct]),t.TTD],decls:30,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","voExtSource"],["matColumnDef","email"],["matColumnDef","logins"],["matColumnDef","alreadyMember"],["matColumnDef","local"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","left",3,"class","matTooltip",4,"ngIf"],["matTooltipPosition","left",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(s){return o.exportData(s)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,_p,2,3,"th",4),t.YNc(5,dp,9,20,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,mp,3,3,"th",7),t.YNc(8,hp,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Tp,3,3,"th",7),t.YNc(11,Ap,4,5,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,fp,3,3,"th",7),t.YNc(14,Ip,3,3,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,bp,3,3,"th",7),t.YNc(17,vp,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,Ep,3,3,"th",7),t.YNc(20,Cp,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Sp,3,3,"th",7),t.YNc(23,xp,3,3,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Zp,1,0,"th",7),t.YNc(26,Np,2,1,"td",8),t.BQk(),t.YNc(27,Op,1,0,"tr",15),t.YNc(28,Dp,1,0,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(29,Mp,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===o.members.length),t.xp6(1),t.Q6J("tableId",o.tableId)("dataLength",o.dataSource.filteredData.length)("pageSizeOptions",o.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",o.dataSource),t.xp6(25),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===o.members.length))},directives:[Ot.l,l.BZ,k.YE,l.w1,l.fO,l.ge,H.oG,l.Dz,l.ev,x.gM,k.nU,g.O5,l.as,l.XQ,l.nj,l.Gk,D.w],pipes:[d.X$,pp,ct,g.i8,Tt.u,At.f,B.d,up.Z,lt],styles:[""]}),i})();var pt=c(92181);function Rp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function wp(i,n){if(1&i&&(t.TgZ(0,"div",15),t._UZ(1,"app-members-candidates-list",16),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("tableId",e.tableId)("members",e.members)("selection",e.selection)("blockManualAdding",e.manualAddingBlocked)}}function Up(i,n){if(1&i&&(t.TgZ(0,"button",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){t.oxw();const e=t.MAs(16),o=t.oxw();t.Q6J("disabled",0===o.selection.selected.length||!o.inviteAuth)("matMenuTriggerFor",e),t.xp6(1),t.hij(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE")," ")}}function Gp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).invite.emit(s)}),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"uppercase"),t.ALo(5,"translate"),t.qZA()}if(2&i){const e=n.$implicit;t.xp6(1),t.lnq(" ",t.lcZ(2,3,"DIALOGS.ADD_MEMBERS.INVITE_IN_LANGUAGE")," ",t.lcZ(3,5,t.lcZ(4,7,"SHARED_LIB.LANGUAGES."+e))," ",t.lcZ(5,9,"DIALOGS.ADD_MEMBERS.LANGUAGE")," ")}}function Pp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"div",2),t.TgZ(2,"perun-web-apps-debounce-filter",3),t.NdJ("filter",function(a){return t.CHM(e),t.oxw().search.emit(a)}),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,Rp,1,0,"mat-spinner",5),t.qZA(),t.YNc(7,wp,2,4,"div",6),t.qZA(),t.TgZ(8,"div",7),t.TgZ(9,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().cancel.emit(!1)}),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"span",9),t.ALo(13,"translate"),t.YNc(14,Up,3,5,"button",10),t.TgZ(15,"mat-menu",null,11),t.YNc(17,Gp,6,11,"button",12),t.qZA(),t.qZA(),t.TgZ(18,"span",9),t.ALo(19,"translate"),t.TgZ(20,"button",13),t.NdJ("click",function(){return t.CHM(e),t.oxw().add.emit()}),t._uU(21),t.ALo(22,"translate"),t.qZA(),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.s9C("error",t.lcZ(3,15,"DIALOGS.ADD_MEMBERS.EMPTY_SEARCH_MESSAGE")),t.s9C("placeholder",t.lcZ(4,17,"DIALOGS.ADD_MEMBERS.DESCRIPTION")),t.Q6J("autoFocus",!0)("control",e.searchCtrl),t.xp6(4),t.Q6J("ngIf",null===e.members||e.loading),t.xp6(1),t.Q6J("ngIf",!!e.members&&!e.loading),t.xp6(3),t.hij(" ",t.lcZ(11,19,"DIALOGS.ADD_MEMBERS.CANCEL")," "),t.xp6(2),t.s9C("matTooltip",t.lcZ(13,21,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.inviteAuth),t.xp6(2),t.Q6J("ngIf",e.inviteAuth),t.xp6(3),t.Q6J("ngForOf",e.languages),t.xp6(1),t.s9C("matTooltip",t.lcZ(19,23,"DIALOGS.ADD_MEMBERS.ADD_MEMBER_PERMISSION_TOOLTIP")),t.Q6J("matTooltipDisabled",0===e.selection.selected.length||e.addAuth),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||!e.addAuth),t.xp6(1),t.hij(" ",t.lcZ(22,25,"DIALOGS.ADD_MEMBERS.CREATE")," ")}}function yp(i,n){1&i&&t._UZ(0,"mat-spinner",14)}function qp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.NAME_COLUMN")," "))}function Vp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=n.$implicit;let o;t.xp6(1),t.hij(" ",t.lcZ(2,1,null!==(o=e.candidate.candidate)&&void 0!==o?o:e.candidate.richUser)," ")}}function Fp(i,n){1&i&&(t.TgZ(0,"th",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_MEMBERS.ERROR_COLUMN")," "))}function Yp(i,n){if(1&i&&(t.TgZ(0,"td",30),t._uU(1),t.TgZ(2,"div",31),t._uU(3),t.qZA(),t.qZA()),2&i){const e=n.$implicit;t.xp6(1),t.hij(" ",e.errorMsg," "),t.xp6(2),t.hij(" ",e.errorName," ")}}function Jp(i,n){1&i&&t._UZ(0,"tr",32)}function Qp(i,n){1&i&&t._UZ(0,"tr",33)}const Vt=function(){return["userName","error"]};function kp(i,n){if(1&i&&(t.TgZ(0,"div",2),t.TgZ(1,"perun-web-apps-alert",21),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"table",22),t.ynx(5,23),t.YNc(6,qp,3,3,"th",24),t.YNc(7,Vp,3,3,"td",25),t.BQk(),t.ynx(8,26),t.YNc(9,Fp,3,3,"th",24),t.YNc(10,Yp,4,2,"td",25),t.BQk(),t.YNc(11,Jp,1,0,"tr",27),t.YNc(12,Qp,1,0,"tr",28),t.qZA(),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.Q6J("alert_type","error"),t.xp6(1),t.Oqu(t.lcZ(3,5,"DIALOGS.ADD_MEMBERS.FAILED_DESC")),t.xp6(2),t.Q6J("dataSource",e.failedCandidateDataSource),t.xp6(7),t.Q6J("matHeaderRowDef",t.DdM(7,Vt)),t.xp6(1),t.Q6J("matRowDefColumns",t.DdM(8,Vt))}}function Bp(i,n){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).cancel.emit(!0)}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()}2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.ADD_MEMBERS.CLOSE")," "))}function Hp(i,n){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,yp,1,0,"mat-spinner",5),t.YNc(2,kp,13,9,"div",19),t.YNc(3,Bp,4,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}let Ft=(()=>{class i{constructor(){this.loading=!1,this.manualAddingBlocked=!1,this.inviteAuth=!0,this.addAuth=!0,this.members=[],this.selection=new E.Ov(!0,[]),this.add=new t.vpe,this.cancel=new t.vpe,this.search=new t.vpe,this.invite=new t.vpe,this.tableId=C.tY,this.searchCtrl=new T.NI("",[T.kI.required,T.kI.pattern(".*[\\S]+.*")])}ngOnInit(){this.failedCandidateDataSource=new l.by(this.failed)}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-member-dialog"]],inputs:{loading:"loading",theme:"theme",languages:"languages",manualAddingBlocked:"manualAddingBlocked",inviteAuth:"inviteAuth",addAuth:"addAuth",members:"members",failed:"failed",selection:"selection"},outputs:{add:"add",cancel:"cancel",search:"search",invite:"invite"},decls:6,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-dialog-content",""],["data-cy","search-members",3,"error","placeholder","autoFocus","control","filter"],[1,"no-bounce-scrollbar"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","ml-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent","data-cy","add-button",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[1,"mt-3"],[3,"tableId","members","selection","blockManualAdding"],["color","accent","mat-flat-button","",1,"ml-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mb-2",3,"alert_type"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","userName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","error"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"text-muted"],["mat-header-row",""],["mat-row",""]],template:function(e,o){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Pp,23,27,"div",1),t.YNc(5,Hp,4,3,"div",1),t.qZA()),2&e&&(t.Tol(o.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,"DIALOGS.ADD_MEMBERS.TITLE")),t.xp6(2),t.Q6J("ngIf",0===o.failed.length),t.xp6(1),t.Q6J("ngIf",0!==o.failed.length))},directives:[p.uh,g.O5,p.xY,st.P,f.$g,Lp,p.H8,I.lW,x.gM,pt.p6,pt.VK,g.sg,pt.OP,D.w,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk],pipes:[d.X$,g.gd,B.d],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}.no-bounce-scrollbar[_ngcontent-%COMP%]{overflow:hidden}.error-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;padding:1em 0}.error-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%}.divider[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}"]}),i})(),jp=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[g.ez,op,np.m,ap.r,Cr.ez,sp.d4,m.Je]]}),i})();t.B6R(rp.H,[Ft],[g.Ov]),t.B6R(lp.k,[Ft],[g.Ov])}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/958.4cd11592a5992446.js b/dist/apps/admin-gui/958.d83855b556c5f154.js similarity index 99% rename from dist/apps/admin-gui/958.4cd11592a5992446.js rename to dist/apps/admin-gui/958.d83855b556c5f154.js index bd8ee06c5..e634ed247 100644 --- a/dist/apps/admin-gui/958.4cd11592a5992446.js +++ b/dist/apps/admin-gui/958.d83855b556c5f154.js @@ -1 +1 @@ -"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Un,z,c)=>{c.r(z),c.d(z,{FacilitiesModule:()=>Yn});var _=c(69808),y=c(11735),W=c(86353),J=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(36908),q=c(16074),ft=c(54037),gt=c(22158),Tt=c(7625),t=c(5e3),u=c(48966),St=c(77968),Ct=c(15003),At=c(4235),T=c(20773),N=c(25245),H=c(29772),C=c(47423),X=c(61283),h=c(51062);function It(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function vt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}const yt=function(){return{color:"black"}},xt=function(i){return["/facilities",i]};function Zt(i,a){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,bt,3,0,"button",10),t.YNc(11,vt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,yt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,xt,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Et=(()=>{class i extends((0,gt.T)()){constructor(e,s,n,o,r,m,S,b,E){super(),this.dialog=e,this.facilityManager=s,this.route=n,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=E,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(n=>{this.facility=n,this.entityStorageService.setEntity({id:n.id,beanName:n.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:q.Eg.FACILITY},this.dialog.open(q.rd,e).afterClosed().subscribe(n=>{n&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(ft.Y,e).afterClosed().subscribe(n=>{n&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(y.gz),t.Y36(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(y.F0),t.Y36(d.fb),t.Y36(Ct.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,It,1,0,"mat-spinner",1),t.YNc(3,Zt,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},directives:[At.W,_.O5,T.$g,N.Hw,H.gM,_.PC,y.yS,C.lW,X.A],pipes:[h.X$],styles:[""],data:{animation:[J.Ji]}}),i})();var K=c(71135);function Dt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Lt(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ot=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Dt,1,0,"mat-spinner",0),t.YNc(1,Lt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var Rt=c(34904),Ft=c(37380),Nt=c(98918),kt=c(4675);let wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[X.A],styles:[""],data:{animation:[J.Ji]}}),i})();function Yt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Mt=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Yt,1,0,"mat-spinner",0),t.YNc(1,Ut,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var k=c(53251),Jt=c(12651),qt=c(19191);function Ht(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Qt(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Pt(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Vt(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Gt(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,Vt,1,3,"ng-template",2),t.qZA())}let Bt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,Ht,2,3,"ng-template",1),t.YNc(7,Qt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Gt,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},directives:[k.SP,k.uX,k.uD,k.Vc,Jt.t,_.O5,qt.Y],pipes:[h.X$],styles:[""]}),i})();var jt=c(60113),$t=c(16500),zt=c(92090),Wt=c(258),g=c(93075),w=c(1059),Y=c(24850),Q=c(19516),R=c(67322),P=c(98833),tt=c(91079),et=c(90508),D=c(77446),it=c(31359);function Xt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedService(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Kt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",7),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedSerVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.TgZ(5,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("NOT_SELECTED")}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("ALL")}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Xt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function te(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedResource(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedResVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedGroup(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedGroupVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedMember(o)}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Kt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(n){return t.CHM(e),t.oxw().onOfferAllServices(n)}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ee,7,9,"mat-form-field",4),t.YNc(6,se,7,9,"mat-form-field",4),t.YNc(7,ne,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function le(i,a){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ce=(()=>{class i{constructor(e,s,n,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=n,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.NI,this.resourceField=new g.NI,this.groupField=new g.NI,this.memberField=new g.NI,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(n=>this.namePipe.transform(n.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(Q.dp),t.Y36(h.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oe,8,7,"div",1),t.YNc(5,le,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},directives:[_.O5,R.KE,P.Nt,g.Fj,tt.ZL,g.JJ,g.oH,tt.XC,et.ey,_.sg,D.oG,_.mk],pipes:[h.X$,_.Ov,it.d],styles:[""]}),i})();var st=c(69815);let at=(()=>{class i{constructor(e,s,n){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=n,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},directives:[st.s],styles:[""]}),i})();var x=c(10036),A=c(20449),re=c(89466),ue=c(74107);function pe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,a){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function me(i,a){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _e(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function fe(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Te(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Se(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ge,3,3,"mat-error",13),t.YNc(3,Te,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ce(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw(2).useFacilityHost=n}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ae(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,de,3,3,"mat-option",10),t.YNc(8,me,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,he,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){return t.CHM(e),t.oxw().getServices()})("ngModelChange",function(n){return t.CHM(e),t.oxw().servicesOnFacility=n}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field"),t.TgZ(15,"mat-select",15),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedType=n})("selectionChange",function(){return t.CHM(e),t.oxw().destinationControl.updateValueAndValidity()}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),t.qZA(),t.qZA(),t.YNc(18,Se,4,4,"mat-form-field",16),t.YNc(19,Ce,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-select",18),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedPropagation=n}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA(),t.qZA(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let be=(()=>{class i{constructor(e,s,n,o){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.NI(void 0,g.kI.required),this.destinationControl=new g.NI("",this.getDestinationValidator()),this.emailControl=new g.NI("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(f.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pe,1,0,"mat-spinner",1),t.YNc(5,Ie,27,30,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[u.uh,_.O5,T.$g,u.xY,R.KE,ue.gD,g.Q7,g.JJ,g.oH,et.ey,_.sg,R.TO,D.oG,g.On,P.Nt,g.Fj,u.H8,C.lW],pipes:[h.X$],styles:[""],data:{animation:[J.BQ]}}),i})();var L=c(98380),O=c(96214),Z=c(7434),nt=c(70242);function ve(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function ye(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().addDestination()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeDestination()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ze(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAllow()}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onBlock()}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function De(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Le(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let ot=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=n,this.translate=o,this.notificator=r,this.authResolver=m,this.serviceManager=S,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(be,e).afterClosed().subscribe(n=>{n&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(re.u,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(f.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ve,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,ye,3,3,"button",3),t.YNc(7,xe,3,4,"button",4),t.YNc(8,Ze,5,4,"button",5),t.YNc(9,Ee,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,De,1,0,"mat-spinner",7),t.YNc(12,Le,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,L.w,O.t,C.lW,N.Hw,Z.L,T.$g,nt.q],pipes:[h.X$],styles:[""]}),i})();var V=c(23256);function Oe(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7),t.TgZ(5,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Fe=(()=>{class i{constructor(e,s,n,o,r,m){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=m,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.aC),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Oe,1,0,"mat-spinner",1),t.YNc(5,Re,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[u.uh,_.O5,T.$g,Z.L,u.xY,V.Q,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var l=c(32075);function Ne(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,a){1&i&&t._UZ(0,"th",15)}function we(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ye(i,a){1&i&&t._UZ(0,"tr",17)}function Ue(i,a){1&i&&t._UZ(0,"tr",18)}function Me(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ke,1,0,"th",11),t.YNc(10,we,2,1,"td",12),t.BQk(),t.YNc(11,Ye,1,0,"tr",13),t.YNc(12,Ue,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Je=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ne,1,0,"mat-spinner",1),t.YNc(5,Me,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function He(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Qe(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,n,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=n,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(n=>n.id)},this.dialog.open(Fe,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Je,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,qe,3,3,"button",2),t.YNc(5,He,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,Qe,1,0,"mat-spinner",5),t.YNc(8,Pe,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,V.Q],pipes:[h.X$],styles:[""]}),i})();var G=c(50301);function Ve(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ge(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Be(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function je(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"mat-form-field"),t.TgZ(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ge,3,3,"mat-error",9),t.YNc(6,Be,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let $e=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,n]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(n.substring(0,n.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.NI("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const n of e)s=s.concat(this.parseHostName(n));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const n=e.value.split("\n");for(const o of n)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),n=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new l.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ze,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var I=c(84847),F=c(18750);function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",14),t.TgZ(1,"mat-checkbox",15),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ai(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function oi(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.hostname)}}function ri(i,a){1&i&&t._UZ(0,"tr",21)}const ct=function(i,a){return["/facilities",i,"hosts",a]};function ui(i,a){if(1&i&&t._UZ(0,"tr",22),2&i){const e=a.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ct,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ct,s.facilityId,e.id))}}function pi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let rt=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,si,2,3,"th",4),t.YNc(5,ai,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ni,3,3,"th",7),t.YNc(8,oi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,li,3,3,"th",7),t.YNc(11,ci,2,1,"td",10),t.BQk(),t.YNc(12,ri,1,0,"tr",11),t.YNc(13,ui,1,8,"tr",12),t.qZA(),t.qZA(),t.qZA(),t.YNc(14,pi,3,3,"perun-web-apps-alert",13),t.YNc(15,di,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,G.YH,y.rH,_.O5,L.w],pipes:[h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addHost()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function _i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeHost()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function hi(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,a){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ut=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open($e,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ii,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,mi,3,3,"button",2),t.YNc(6,_i,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,hi,1,0,"mat-spinner",5),t.YNc(9,fi,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,rt],pipes:[h.X$],styles:[""]}),i})();function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ti(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ai(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function bi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function yi(i,a){1&i&&t._UZ(0,"tr",22)}function xi(i,a){1&i&&t._UZ(0,"tr",23)}function Zi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ei(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Di=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,gi,2,3,"th",4),t.YNc(5,Ti,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Si,3,3,"th",7),t.YNc(8,Ci,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ai,3,3,"th",7),t.YNc(11,Ii,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,bi,3,3,"th",7),t.YNc(14,vi,2,1,"td",10),t.BQk(),t.YNc(15,yi,1,0,"tr",12),t.YNc(16,xi,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,Zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Ei,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,it.d],styles:[""]}),i})();function Li(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Oi(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ri=(()=>{class i{constructor(e,s,n){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=n,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const n of s){let o;this.usersManager.getUserById(n.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([n,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Li,1,0,"mat-spinner",3),t.YNc(8,Oi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,Z.L,_.O5,T.$g,Di],pipes:[h.X$],styles:[""]}),i})();var Fi=c(387),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Mi=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.attributesManager=s,this.facilityManager=n,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(q.wA,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(ki.n,e).afterClosed().subscribe(n=>{"saved"===n&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ni.k,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.IQ),t.Y36(y.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(wi,5),2&e){let n;t.iGM(n=t.CRH())&&(s.list=n.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Yi,1,0,"mat-spinner",5),t.YNc(15,Ui,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,C.lW,_.O5,T.$g,pt.p],pipes:[h.X$],styles:[""]}),i})();function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Hi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Qi(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Pi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Gi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.description)}}function ji(i,a){1&i&&t._UZ(0,"tr",22)}function $i(i,a){1&i&&t._UZ(0,"tr",23)}function zi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Wi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Xi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,qi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Hi,3,3,"th",7),t.YNc(8,Qi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,Vi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Gi,3,3,"th",7),t.YNc(14,Bi,2,1,"td",10),t.BQk(),t.YNc(15,ji,1,0,"tr",12),t.YNc(16,$i,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Wi,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$],styles:[""]}),i})();function Ki(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,a){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let es=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,Ki,1,0,"mat-spinner",3),t.YNc(7,ts,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,Z.L,_.O5,T.$g,Xi],pipes:[h.X$],styles:[""]}),i})();var is=c(20057),ss=c(49546);function as(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function os(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function ls(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function cs(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function rs(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function us(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,a){1&i&&t._UZ(0,"tr",19)}function ds(i,a){1&i&&t._UZ(0,"tr",20)}function ms(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ns,3,3,"th",11),t.YNc(10,os,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ls,3,3,"th",11),t.YNc(13,cs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,rs,3,3,"th",11),t.YNc(16,us,3,4,"td",12),t.BQk(),t.YNc(17,ps,1,0,"tr",15),t.YNc(18,ds,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let dt=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.taskManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,as,1,0,"mat-spinner",1),t.YNc(5,ms,19,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$,_.uU],styles:[""]}),i})();var _s=c(62109);function hs(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(n){return t.CHM(e),t.oxw(2).disableCheckboxes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,fs,4,9,"mat-checkbox",8),t.YNc(6,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(n){return t.CHM(e),t.oxw().change(n)}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Ts,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Cs=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=n,this.tasksManager=o,this.serviceManager=r,this.translate=m,this.notificator=S,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new l.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,hs,1,0,"mat-spinner",1),t.YNc(5,Ss,18,21,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,D.oG,H.gM,_s.C,u.H8,C.lW],pipes:[h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,a){1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.tasksManager=n,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(h.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Is,4,3,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var B=c(92181);let vs=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n&&o.masterToggle(),o.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("click",function(n){return n.stopPropagation()})("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n&&m.selection.toggle(r),m.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function Zs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Es(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Ds(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ls(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Es,2,1,"div",24),t.YNc(2,Ds,2,0,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Os(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Rs(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.service.name)}}function Fs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Ns(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.status)}}function ks(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ws(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Ys(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Us(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Ms(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Js(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Us,3,4,"div",24),t.YNc(2,Ms,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function qs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Hs(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Qs(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Ps(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Hs,3,4,"div",24),t.YNc(2,Qs,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,a){1&i&&t._UZ(0,"tr",26)}const mt=function(i,a){return["/facilities",i,"services-status",a]};function Gs(i,a){if(1&i&&t._UZ(0,"tr",27),2&i){const e=a.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function Bs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function js(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let $s=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){var n,o;switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){var n,o;switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const n=s.trim().toLowerCase(),o=r=>{let m="";return Object.values(r).forEach(S=>{"object"!=typeof S?m=m+" "+String(S):null!==S&&(m=m+" "+o(S))}),m.trim().toLowerCase()};return o(e).includes(n)},this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ys,2,3,"th",4),t.YNc(5,xs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Zs,3,3,"th",7),t.YNc(8,Ls,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Os,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Fs,3,3,"th",7),t.YNc(14,Ns,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ks,3,3,"th",7),t.YNc(17,ws,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Ys,3,3,"th",7),t.YNc(20,Js,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,qs,3,3,"th",7),t.YNc(23,Ps,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Gs,1,18,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,Bs,3,3,"perun-web-apps-alert",17),t.YNc(27,js,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.O5,l.as,l.XQ,l.nj,l.Gk,y.rH,G.YH,L.w],pipes:[h.X$,vs,_.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().forcePropagation()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().allow()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().block()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ks(i,a){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function ta(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTaskResults()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function ea(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ia(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){return t.CHM(e),t.oxw().selectionChanged()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let sa=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E){this.tasksManager=e,this.servicesManager=s,this.notificator=n,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=E,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(v=>this.successFPMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(v=>this.successAllowMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(v=>this.successBlockMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(v=>this.successDeleteMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(v=>this.allreadyDeletedMessage=v)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(dt,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(bs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(n=>n.id)).subscribe(n=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:n},this.dialog.open(Cs,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.Ob),t.Y36(f.KK),t.Y36(d.V6),t.Y36(h.sK),t.Y36(d.x4),t.Y36(f.IQ),t.Y36(f.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,zs,3,4,"button",2),t.YNc(6,Ws,3,4,"button",2),t.YNc(7,Xs,3,4,"button",3),t.YNc(8,Ks,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ta,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ea,1,0,"mat-spinner",9),t.YNc(17,ia,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,B.p6,H.gM,B.VK,B.OP,Z.L,T.$g,$s],pipes:[h.X$],styles:[""]}),i})();var aa=c(25610),na=c(76023);function oa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function la(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ca(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ra(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function ua(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function pa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.destination," ")}}function da(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function ma(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function _a(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function ha(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function fa(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function ga(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Ta(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Sa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ca(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Aa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function Ia(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ba(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ba,3,1,"span",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ya(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function xa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Za(i,a){1&i&&t._UZ(0,"tr",27)}function Ea(i,a){if(1&i&&t._UZ(0,"tr",28),2&i){const e=a.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Da(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function La(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Oa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,oa,2,3,"th",4),t.YNc(5,la,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ca,3,3,"th",7),t.YNc(8,ra,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ua,3,3,"th",7),t.YNc(11,pa,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,da,3,3,"th",7),t.YNc(14,ma,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,_a,3,3,"th",7),t.YNc(17,ha,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,fa,3,3,"th",7),t.YNc(20,ga,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ta,3,3,"th",7),t.YNc(23,Sa,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Ca,3,3,"th",7),t.YNc(26,Aa,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,Ia,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,ya,3,3,"th",7),t.YNc(32,xa,2,1,"td",8),t.BQk(),t.YNc(33,Za,1,0,"tr",17),t.YNc(34,Ea,1,6,"tr",18),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,Da,3,3,"perun-web-apps-alert",19),t.YNc(36,La,3,3,"perun-web-apps-alert",19)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(31),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.sg,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,_.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Ra(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTaskResult()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Fa(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Na(i,a){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let ka=(()=>{class i{constructor(e,s,n,o,r){this.route=e,this.taskManager=s,this.authResolver=n,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(dt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(y.gz),t.Y36(f.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Ra,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,Fa,1,0,"mat-spinner",5),t.YNc(9,Na,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,Oa],pipes:[h.X$],styles:[""]}),i})();var wa=c(20872);let Ya=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})(),Ua=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function Ma(i,a){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onKeep()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function qa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ja,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let Ha=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilityService=n,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ma,3,3,"div",1),t.YNc(5,qa,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[u.uh,_.O5,u.xY,u.H8,C.lW,N.Hw],pipes:[h.X$],styles:[""]}),i})();var Qa=c(66688),U=c(92081),Pa=c(90439),Va=c(60205),Ga=c(30540),M=c(81125);const Ba=["stepper"];function ja(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function $a(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(n){return t.CHM(e),t.oxw().owners=n}),t.qZA()}}function za(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Wa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(n){return t.CHM(e),t.oxw().hosts=n}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Xa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Ka=function(){return["select","id","name","enabled","description"]};function tn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18),t.TgZ(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(n){return t.CHM(e),t.oxw().packagesSelected(n)}),t.qZA(),t.qZA(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){return t.CHM(e),t.oxw().singleServiceSelected()}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,Ka))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(n){return t.CHM(e),t.oxw(2).filterAttributes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,a){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function on(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18),t.TgZ(7,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveAttributes()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSaveAttributes()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,sn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,an,1,0,"mat-spinner",25),t.YNc(15,nn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function ln(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const cn=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(n){return t.CHM(e),t.oxw().destinations=n}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,a){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,_n))("owners",e.owners)}}function fn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,a){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,gn))("hosts",e.hosts)}}function Sn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const Cn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},bn=function(){return["id","vo","name","description"]},vn=function(){return["id","name","email","logins","organization"]};function yn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion"),t.TgZ(1,"mat-expansion-panel",34),t.TgZ(2,"mat-expansion-panel-header"),t.TgZ(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,mn,1,0,"mat-spinner",25),t.YNc(11,hn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34),t.TgZ(13,"mat-expansion-panel-header"),t.TgZ(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,fn,1,0,"mat-spinner",25),t.YNc(22,Tn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34),t.TgZ(24,"mat-expansion-panel-header"),t.TgZ(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.qZA(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){return t.CHM(e),t.oxw(2).getNonEmptyAttributes()}),t.TgZ(34,"mat-expansion-panel-header"),t.TgZ(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.qZA(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(n){return t.CHM(e),t.oxw(2).destinationServiceMissing=n}),t.TgZ(44,"mat-expansion-panel-header"),t.TgZ(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.qZA(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel"),t.TgZ(55,"mat-expansion-panel-header"),t.TgZ(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t._UZ(60,"app-managers-page",47),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Cn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,An))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,In))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,bn))("displayedUserColumns",t.DdM(75,vn))}}function xn(i,a){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,yn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function Zn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().back()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function En(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){return t.CHM(e),t.oxw().next()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onFinish()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Ln=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E,v){this.attributesManager=e,this.serviceManager=s,this.facilityService=n,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=E,this.entityStorageService=v,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.NI(!1,g.kI.requiredTrue),this.attributesControl=new g.NI(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe($=>this.saveMsg=$),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe($=>this.removeMsg=$)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ha,e).afterClosed().subscribe(n=>{n&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(m=>s.add(m))}),0===s.size)return;const n=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(m=>m.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(m=>m.id===r.id)<0));for(const r of this.services)n.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{this.processing=!1,s()})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const n of e)this.attributesPerService.get(n.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const n of this.attributes)s.has(n.id)&&this.filteredAttributes.push(n)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!(0,Qa.k)(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(n=>{this.services=n}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(n=>{this.servicesPerPackage.set(e[s].id,new Set([...n.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(n=>{n=n.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,n.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(n=>{this.servicesPerPackage.get(n.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(n=>!s.has(n)))}setIntersect(e,s){return new Set([...e].filter(n=>s.has(n)))}setSymDif(e,s){const n=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(n,o),m=this.setDiff(o,n);return new Set([...r,...m])}filterService(e,s){const n=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>n.add(m))}return n}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(n=>n.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let n=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){n=!1;break}n&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ya,e).afterClosed().subscribe(n=>{n&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ua,e).afterClosed().subscribe(n=>{n&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(h.sK),t.Y36(y.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ba,5),2&e){let n;t.iGM(n=t.CRH())&&(s.stepper=n.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ja,2,3,"ng-template",4),t.YNc(8,$a,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,za,2,3,"ng-template",4),t.YNc(11,Wa,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Xa,2,3,"ng-template",4),t.YNc(14,tn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,en,2,3,"ng-template",4),t.YNc(17,on,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,ln,2,3,"ng-template",4),t.YNc(20,rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,un,2,3,"ng-template",4),t.YNc(23,pn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,dn,2,3,"ng-template",4),t.YNc(26,xn,4,4,"ng-template",5),t.qZA(),t.qZA(),t.TgZ(27,"div",9),t.TgZ(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,Zn,3,3,"button",11),t.YNc(32,En,3,7,"button",12),t.YNc(33,Dn,3,3,"button",13),t.qZA(),t.qZA()),2&e){const n=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==n&&0!==n.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex!==n.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex===n.steps.length-1)}},directives:[U.Vq,U.C0,U.VY,U.BY,lt,ut,L.w,Z.L,Pa.F,Va.Q,C.lW,_.O5,Ga.J,T.$g,pt.p,ot,at,M.pp,M.ib,M.yz,M.yK,N.Hw,V.Q,rt,nt.q,st.s],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),_t=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(y.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const On=[{path:"",component:W.P,canActivateChild:[j.a],children:[{path:"",component:W.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Et,canActivateChild:[j.a],children:[{path:"",component:Ot,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:aa._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:sa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:ka,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ce,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:ot,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ut,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Mi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:wt,children:[{path:"",component:Mt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:lt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:at,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:es,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Ln,canActivate:[_t],canDeactivate:[_t]}]},{path:":facilityId/resources/:resourceId",component:Nt.b,canActivateChild:[j.a],children:[{path:"",component:kt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:zt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:Wt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:na.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:wa.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:$t.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:is.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[y.Bz.forChild(On)],y.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46142),wn=c(78417);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Q.dp],imports:[[_.ez,Rn,Fn.m,Nn.r,Fi.ez,Q.d4,kn.UsersModule,wn.AdminModule]]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[958],{12958:(Un,z,c)=>{c.r(z),c.d(z,{FacilitiesModule:()=>Yn});var _=c(69808),y=c(11735),W=c(86353),J=c(36769),ht=c(69024),f=c(32105),p=c(9244),d=c(32080),q=c(16074),ft=c(54037),gt=c(22158),Tt=c(7625),t=c(5e3),u=c(48966),St=c(77968),Ct=c(15003),At=c(4235),T=c(20773),N=c(25245),H=c(29772),C=c(47423),X=c(61283),h=c(51062);function It(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function bt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).editFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"edit"),t.qZA(),t.qZA()}}function vt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).deleteFacility()}),t.TgZ(1,"mat-icon"),t._uU(2,"delete_forever"),t.qZA(),t.qZA()}}const yt=function(){return{color:"black"}},xt=function(i){return["/facilities",i]};function Zt(i,a){if(1&i&&(t.TgZ(0,"div"),t.TgZ(1,"div",4),t._UZ(2,"mat-icon",5),t.ALo(3,"translate"),t.TgZ(4,"div",6),t.TgZ(5,"div",7),t.TgZ(6,"a",8),t._uU(7),t.qZA(),t.TgZ(8,"span",9),t._uU(9),t.qZA(),t.YNc(10,bt,3,0,"button",10),t.YNc(11,vt,3,0,"button",10),t.qZA(),t.TgZ(12,"span",11),t._uU(13),t.ALo(14,"translate"),t.ALo(15,"translate"),t.qZA(),t.qZA(),t.qZA(),t._UZ(16,"app-animated-router-outlet"),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,10,"FACILITY_DETAIL.ENTITY")),t.Q6J("ngStyle",t.DdM(16,yt)),t.xp6(4),t.Q6J("routerLink",t.VKq(17,xt,e.facility.id)),t.xp6(1),t.Oqu(e.facility.name),t.xp6(2),t.hij(" \xa0#",e.facility.id," "),t.xp6(1),t.Q6J("ngIf",e.editFacilityAuth),t.xp6(1),t.Q6J("ngIf",e.deleteAuth),t.xp6(2),t.lnq(" ",t.lcZ(14,12,"FACILITY_DETAIL.ENTITY"),", ",t.lcZ(15,14,"FACILITY_DETAIL.DESCRIPTION"),": ",e.facility.description," ")}}let Et=(()=>{class i extends((0,gt.T)()){constructor(e,s,n,o,r,m,S,b,E){super(),this.dialog=e,this.facilityManager=s,this.route=n,this.sideMenuService=o,this.sideMenuItemService=r,this.guiAuthResolver=m,this.router=S,this.entityStorageService=b,this.reloadEntityDetail=E,this.editFacilityAuth=!1,this.deleteAuth=!1,this.loading=!1}ngOnInit(){this.reloadData(),this.reloadEntityDetail.entityDetailChange.pipe((0,Tt.R)(this.destroyed$)).subscribe(()=>{this.reloadData()})}reloadData(){this.loading=!0,this.route.params.subscribe(e=>{const s=Number(e.facilityId);this.facilityManager.getFacilityById(s).subscribe(n=>{this.facility=n,this.entityStorageService.setEntity({id:n.id,beanName:n.beanName}),this.setMenuItems(),this.editFacilityAuth=this.guiAuthResolver.isAuthorized("updateFacility_Facility_policy",[this.facility]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteFacility_Facility_Boolean_policy",[this.facility]),(0,p.sF)("facilities",this.facility),(0,p.XI)(this.facility),this.loading=!1},()=>this.loading=!1)})}setMenuItems(){const e=this.sideMenuItemService.parseFacility(this.facility);this.sideMenuService.setFacilityMenuItems([e])}editFacility(){const e=(0,p.kZ)();e.width="450px",e.data={theme:"facility-theme",facility:this.facility,dialogType:q.Eg.FACILITY},this.dialog.open(q.rd,e).afterClosed().subscribe(n=>{n&&this.facilityManager.getFacilityById(this.facility.id).subscribe(o=>{this.facility=o,this.setMenuItems()})})}deleteFacility(){const e=(0,p.kZ)();e.width="500px",e.data={theme:"facility-theme",facility:this.facility},this.dialog.open(ft.Y,e).afterClosed().subscribe(n=>{n&&this.router.navigate([""])})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(y.gz),t.Y36(St.D),t.Y36(ht.V),t.Y36(d.x4),t.Y36(y.F0),t.Y36(d.fb),t.Y36(Ct.G))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-detail-page"]],features:[t.qOj],decls:4,vars:2,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"d-flex","page-title-headtitle"],["svgIcon","perun-facility-black",1,"perun-icon","perun-icon-detail",3,"matTooltip","ngStyle"],[1,"page-title-block"],[1,"page-title-headline","d-flex","align-items-center"],["queryParamsHandling","merge",1,"facility-link",3,"routerLink"],[1,"text-muted"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"mt-1","entity-info"],["mat-icon-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"perun-web-apps-back-button"),t.YNc(2,It,1,0,"mat-spinner",1),t.YNc(3,Zt,17,19,"div",2),t.qZA()),2&e&&(t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading&&void 0!==s.facility))},directives:[At.W,_.O5,T.$g,N.Hw,H.gM,_.PC,y.yS,C.lW,X.A],pipes:[h.X$],styles:[""],data:{animation:[J.Ji]}}),i})();var K=c(71135);function Dt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Lt(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.navItems)("size","small")}}let Ot=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.navItems=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.navItems=[],this.routePolicyService.canNavigate("facilities-resources",this.facility)&&this.navItems.push({cssIcon:"perun-manage-facility",url:`/facilities/${this.facility.id}/resources`,label:"MENU_ITEMS.FACILITY.RESOURCES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-users",this.facility)&&this.navItems.push({cssIcon:"perun-user",url:`/facilities/${this.facility.id}/allowed-users`,label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-allowed-groups",this.facility)&&this.navItems.push({cssIcon:"perun-group",url:`/facilities/${this.facility.id}/allowed-groups`,label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-status",this.facility)&&this.navItems.push({cssIcon:"perun-service-status",url:`/facilities/${this.facility.id}/services-status`,label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-services-destinations",this.facility)&&this.navItems.push({cssIcon:"perun-service_destination",url:`/facilities/${this.facility.id}/services-destinations`,label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-hosts",this.facility)&&this.navItems.push({cssIcon:"perun-hosts",url:`/facilities/${this.facility.id}/hosts`,label:"MENU_ITEMS.FACILITY.HOSTS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-attributes",this.facility)&&this.navItems.push({cssIcon:"perun-attributes",url:`/facilities/${this.facility.id}/attributes`,label:"MENU_ITEMS.FACILITY.ATTRIBUTES",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings",this.facility)&&this.navItems.push({cssIcon:"perun-settings2",url:`/facilities/${this.facility.id}/settings`,label:"MENU_ITEMS.FACILITY.SETTINGS",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Dt,1,0,"mat-spinner",0),t.YNc(1,Lt,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var Rt=c(34904),Ft=c(37380),Nt=c(98918),kt=c(4675);let wt=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:1,vars:0,template:function(e,s){1&e&&t._UZ(0,"app-animated-router-outlet")},directives:[X.A],styles:[""],data:{animation:[J.Ji]}}),i})();function Yt(i,a){1&i&&t._UZ(0,"mat-spinner",2)}function Ut(i,a){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"perun-web-apps-menu-buttons-field",3),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("items",e.items)("size","small")}}let Mt=(()=>{class i{constructor(e,s,n,o){this.facilityManager=e,this.authResolver=s,this.entityStorageService=n,this.routePolicyService=o,this.items=[],this.loading=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.initItems(),this.loading=!1}initItems(){this.items=[],this.routePolicyService.canNavigate("facilities-settings-owners",this.facility)&&this.items.push({cssIcon:"perun-owner-grey",url:`/facilities/${this.facility.id}/settings/owners`,label:"MENU_ITEMS.FACILITY.OWNERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-managers",this.facility)&&this.items.push({cssIcon:"perun-manager",url:`/facilities/${this.facility.id}/settings/managers`,label:"MENU_ITEMS.FACILITY.MANAGERS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",this.facility)&&this.items.push({cssIcon:"perun-security-teams",url:`/facilities/${this.facility.id}/settings/security-teams`,label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",style:"facility-btn"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",this.facility)&&this.items.push({cssIcon:"perun-black-list",url:`/facilities/${this.facility.id}/settings/blacklist`,label:"MENU_ITEMS.FACILITY.BLACKLIST",style:"facility-btn"})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb),t.Y36(d.Ip))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-overview"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:2,vars:2,consts:[["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"items","size"]],template:function(e,s){1&e&&(t.YNc(0,Yt,1,0,"mat-spinner",0),t.YNc(1,Ut,2,2,"div",1)),2&e&&(t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,T.$g,K.L],styles:[""]}),i})();var k=c(53251),Jt=c(12651),qt=c(19191);function Ht(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.hij(" ",t.lcZ(1,1,"FACILITY_DETAIL.ENTITY")," ")}function Qt(i,a){if(1&i&&t._UZ(0,"app-one-entity-attribute-page",4),2&i){const e=t.oxw();t.Q6J("entityId",e.facility.id)("entity","facility")}}function Pt(i,a){1&i&&(t._uU(0),t.ALo(1,"translate"),t.ALo(2,"translate")),2&i&&t.AsE(" ",t.lcZ(1,2,"FACILITY_DETAIL.ENTITY")," - ",t.lcZ(2,4,"ADMIN_USER.ENTITY")," ")}function Vt(i,a){if(1&i&&t._UZ(0,"app-two-entity-attribute-page",5),2&i){const e=t.oxw(2);t.Q6J("firstEntity","facility")("firstEntityId",e.facility.id)("secondEntity","user")}}function Gt(i,a){1&i&&(t.TgZ(0,"mat-tab"),t.YNc(1,Pt,3,6,"ng-template",1),t.YNc(2,Vt,1,3,"ng-template",2),t.qZA())}let Bt=(()=>{class i{constructor(e,s){this.authResolver=e,this.entityStorageService=s}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityUserAttAuth=this.authResolver.isAuthorized("getAssignedUsers_Facility_policy",[this.facility])}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-attributes"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},decls:9,vars:4,consts:[[1,"page-subtitle"],["matTabLabel",""],["matTabContent",""],[4,"ngIf"],[3,"entityId","entity"],[3,"firstEntity","firstEntityId","secondEntity"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-tab-group"),t.TgZ(5,"mat-tab"),t.YNc(6,Ht,2,3,"ng-template",1),t.YNc(7,Qt,1,2,"ng-template",2),t.qZA(),t.YNc(8,Gt,3,0,"mat-tab",3),t.qZA(),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,2,"FACILITY_DETAIL.SETTINGS.ATTRIBUTES.TITLE")),t.xp6(6),t.Q6J("ngIf",s.facilityUserAttAuth))},directives:[k.SP,k.uX,k.uD,k.Vc,Jt.t,_.O5,qt.Y],pipes:[h.X$],styles:[""]}),i})();var jt=c(60113),$t=c(16500),zt=c(92090),Wt=c(258),g=c(93075),w=c(1059),Y=c(24850),Q=c(19516),R=c(67322),P=c(98833),tt=c(91079),et=c(90508),D=c(77446),it=c(31359);function Xt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedService(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function Kt(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",7),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedSerVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.TgZ(5,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("NOT_SELECTED")}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"mat-option",10),t.NdJ("onSelectionChange",function(){return t.CHM(e),t.oxw(2).onSelectedService("ALL")}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,Xt,2,2,"mat-option",11),t.ALo(12,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,9,"FACILITY_DETAIL.SERVICE_CONFIG.SERVICE_SELECT")),t.Q6J("formControl",s.serviceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.serviceDisplayFn.bind(s)),t.xp6(2),t.Q6J("value","NOT_SELECTED"),t.xp6(1),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED")," "),t.xp6(2),t.Q6J("value","ALL"),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.SERVICE_CONFIG.ALL")," "),t.xp6(2),t.Q6J("ngForOf",t.lcZ(12,15,s.filteredServices))}}function te(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedResource(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedResVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,te,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.RES_SELECT")),t.Q6J("formControl",s.resourceField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.resourceDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredResources))}}function ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedGroup(o)}),t._uU(1),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function se(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-form-field",6),t.TgZ(1,"input",12),t.NdJ("keyup",function(n){return t.CHM(e),t.oxw(2).updatedGroupVal(n)}),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"mat-autocomplete",13,9),t.YNc(5,ie,2,2,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()}if(2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.GROUP_SELECT")),t.Q6J("formControl",s.groupField)("matAutocomplete",e),t.xp6(2),t.Q6J("displayWith",s.groupDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredGroups))}}function ae(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-option",10),t.NdJ("onSelectionChange",function(){const o=t.CHM(e).$implicit;return t.oxw(3).onSelectedMember(o)}),t._uU(1),t.ALo(2,"userFullName"),t.qZA()}if(2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",t.lcZ(2,2,e.user)," ")}}function ne(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",6),t._UZ(1,"input",14),t.ALo(2,"translate"),t.TgZ(3,"mat-autocomplete",8,9),t.YNc(5,ae,3,4,"mat-option",11),t.ALo(6,"async"),t.qZA(),t.qZA()),2&i){const e=t.MAs(4),s=t.oxw(2);t.xp6(1),t.s9C("placeholder",t.lcZ(2,5,"FACILITY_DETAIL.SERVICE_CONFIG.MEMBER_SELECT")),t.Q6J("matAutocomplete",e)("formControl",s.memberField),t.xp6(2),t.Q6J("displayWith",s.memberDisplayFn.bind(s)),t.xp6(2),t.Q6J("ngForOf",t.lcZ(6,7,s.filteredMembers))}}function oe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",3),t.YNc(1,Kt,13,17,"mat-form-field",4),t.TgZ(2,"mat-checkbox",5),t.NdJ("change",function(n){return t.CHM(e),t.oxw().onOfferAllServices(n)}),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.YNc(5,ee,7,9,"mat-form-field",4),t.YNc(6,se,7,9,"mat-form-field",4),t.YNc(7,ne,7,9,"mat-form-field",4),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",void 0!==e.services),t.xp6(2),t.hij(" ",t.lcZ(4,5,"FACILITY_DETAIL.SERVICE_CONFIG.ALL_SERVICES")," "),t.xp6(2),t.Q6J("ngIf",void 0!==e.resources&&0!==e.resources.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedResource&&void 0!==e.groups&&0!==e.groups.length),t.xp6(1),t.Q6J("ngIf",void 0!==e.selectedGroup&&void 0!==e.members&&0!==e.members.length)}}function le(i,a){if(1&i&&t._UZ(0,"perun-web-apps-service-configurator",15),2&i){const e=t.oxw();t.Q6J("facility",e.facility)("resource",e.selectedResource)("group",e.selectedGroup)("member",e.selectedMember)("service",e.selectedService)}}let ce=(()=>{class i{constructor(e,s,n,o,r,m,S){this.facilityManager=e,this.resourceManager=s,this.serviceManager=n,this.membersManager=o,this.namePipe=r,this.translate=m,this.entityStorageService=S,this.serviceField=new g.NI,this.resourceField=new g.NI,this.groupField=new g.NI,this.memberField=new g.NI,this.allowedStatuses=["INVALID","VALID"],this.selectedService="NOT_SELECTED",this.attrNames=[],this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.ALL").subscribe(b=>this.serviceAllTranslation=b),this.translate.get("FACILITY_DETAIL.SERVICE_CONFIG.NOT_SELECTED").subscribe(b=>this.serviceNotSelectedTranslation=b)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.facilityManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.facilityManager.getAssignedResourcesForFacility(e.id).subscribe(s=>this.resources=s),this.serviceManager.getAssignedServices(e.id).subscribe(s=>this.services=s)}),this.filteredServices=this.serviceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterServices(e))),this.filteredResources=this.resourceField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterResources(e))),this.filteredGroups=this.groupField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterGroups(e))),this.filteredMembers=this.memberField.valueChanges.pipe((0,w.O)(""),(0,Y.U)(e=>this._filterMembers(e)))}onSelectedService(e){this.selectedService=e}onSelectedResource(e){this.selectedResource=e,void 0!==this.selectedResource?(this.resourceManager.getAssignedGroups(this.selectedResource.id).subscribe(s=>this.groups=s),this.selectedGroup=void 0,this.selectedMember=void 0):this.groups=void 0}onOfferAllServices(e){e.checked||this.serviceManager.getAssignedServices(this.facility.id).subscribe(s=>this.services=s)}onSelectedGroup(e){this.selectedGroup=e,void 0!==this.selectedGroup?(this.membersManager.getCompleteRichMembersForGroup(this.selectedGroup.id,!1,this.allowedStatuses,[],this.attrNames).subscribe(s=>this.members=s),this.selectedMember=void 0):this.members=void 0}onSelectedMember(e){this.selectedMember=e}serviceDisplayFn(e){if(null!==e)return"ALL"===e?this.serviceAllTranslation:"NOT_SELECTED"===e?this.serviceNotSelectedTranslation:"string"!=typeof e?e.name:e}resourceDisplayFn(e){if(null!==e)return e.name}groupDisplayFn(e){if(null!==e)return e.name}memberDisplayFn(e){if(null!==e)return this.namePipe.transform(e.user)}updatedSerVal(e){""===e.target.value&&(this.selectedService="NOT_SELECTED")}updatedResVal(e){""===e.target.value&&(this.groups=void 0,this.members=void 0)}updatedGroupVal(e){""===e.target.value&&(this.members=void 0)}_filterServices(e){const s=e.toString().toLowerCase();return this.services.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterResources(e){const s=e.toString().toLowerCase();return this.resources.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterGroups(e){const s=e.toString().toLowerCase();return this.groups.filter(n=>n.name.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}_filterMembers(e){const s=e.toString().toLowerCase();return this.members.filter(n=>this.namePipe.transform(n.user).toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").includes(s))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.xk),t.Y36(f.KK),t.Y36(f.uq),t.Y36(Q.dp),t.Y36(h.sK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-config"]],decls:6,vars:5,consts:[[1,"page-subtitle"],["class","col-12 col-lg-6 mb-2",4,"ngIf"],[3,"facility","resource","group","member","service",4,"ngIf"],[1,"col-12","col-lg-6","mb-2"],["class","w-100",4,"ngIf"],[3,"change"],[1,"w-100"],["matInput","","type","text",3,"placeholder","formControl","matAutocomplete","keyup"],["autoActiveFirstOption","",3,"displayWith"],["auto","matAutocomplete"],[3,"value","onSelectionChange"],[3,"value","onSelectionChange",4,"ngFor","ngForOf"],["matInput","","type","text",3,"formControl","matAutocomplete","placeholder","keyup"],["autoActiveFirstOption","",3,"displayWith","ngClass"],["matInput","","type","text",3,"matAutocomplete","placeholder","formControl"],[3,"facility","resource","group","member","service"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,oe,8,7,"div",1),t.YNc(5,le,1,5,"perun-web-apps-service-configurator",2),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,3,"FACILITY_DETAIL.SERVICE_CONFIG.TITLE")),t.xp6(2),t.Q6J("ngIf",!!s.facility),t.xp6(1),t.Q6J("ngIf",!!s.facility))},directives:[_.O5,R.KE,P.Nt,g.Fj,tt.ZL,g.JJ,g.oH,tt.XC,et.ey,_.sg,D.oG,_.mk],pipes:[h.X$,_.Ov,it.d],styles:[""]}),i})();var st=c(28361);let at=(()=>{class i{constructor(e,s,n){this.facilityService=e,this.guiAuthResolver=s,this.entityStorageService=n,this.disableRouting=!1,this.disableSelf=!1,this.availableRoles=[],this.selected="user",this.type="Facility",this.theme="facility-theme"}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility")}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-managers"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{disableRouting:"disableRouting",disableSelf:"disableSelf"},decls:1,vars:6,consts:[[3,"complementaryObject","availableRoles","complementaryObjectType","disableSelf","disableRouting","theme"]],template:function(e,s){1&e&&t._UZ(0,"app-managers-page",0),2&e&&t.Q6J("complementaryObject",s.facility)("availableRoles",s.availableRoles)("complementaryObjectType",s.type)("disableSelf",s.disableSelf)("disableRouting",s.disableRouting)("theme",s.theme)},directives:[st.s],styles:[""]}),i})();var x=c(10036),A=c(20449),re=c(89466),ue=c(74107);function pe(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function de(i,a){1&i&&(t.TgZ(0,"mat-option",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.SELECTION_ALL")))}function me(i,a){1&i&&(t.TgZ(0,"mat-option",20),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.NO_SERVICE")))}function _e(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e.name," ")}}function he(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.CHOOSE_SERVICE")," "))}function fe(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit,s=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.hij(" ",s.getTypeForView(e)," ")}}function ge(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.REQUIRED_FIELD")," "))}function Te(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_SERVICE_DESTINATION.INVALID_DESTINATION")," "))}function Se(i,a){if(1&i&&(t.TgZ(0,"mat-form-field",22),t._UZ(1,"input",23),t.YNc(2,ge,3,3,"mat-error",13),t.YNc(3,Te,3,3,"mat-error",13),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.s9C("placeholder",e.getTypeForView(e.selectedType)),t.Q6J("formControl",e.destinationControl),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType&&!e.useFacilityHost&&e.destinationControl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.destinationControl.hasError("invalidDestination"))}}function Ce(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",24),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw(2).useFacilityHost=n}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("ngModel",e.useFacilityHost),t.xp6(1),t.hij(" ",t.lcZ(2,2,"DIALOGS.ADD_SERVICE_DESTINATION.USE_FACILITY_HOST")," ")}}function Ae(i,a){if(1&i&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Ie(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-form-field"),t.TgZ(5,"mat-select",9),t.ALo(6,"translate"),t.YNc(7,de,3,3,"mat-option",10),t.YNc(8,me,3,3,"mat-option",11),t.YNc(9,_e,2,2,"mat-option",12),t.qZA(),t.YNc(10,he,3,3,"mat-error",13),t.qZA(),t.TgZ(11,"mat-checkbox",14),t.NdJ("change",function(){return t.CHM(e),t.oxw().getServices()})("ngModelChange",function(n){return t.CHM(e),t.oxw().servicesOnFacility=n}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"mat-form-field"),t.TgZ(15,"mat-select",15),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedType=n})("selectionChange",function(){return t.CHM(e),t.oxw().destinationControl.updateValueAndValidity()}),t.ALo(16,"translate"),t.YNc(17,fe,2,2,"mat-option",12),t.qZA(),t.qZA(),t.YNc(18,Se,4,4,"mat-form-field",16),t.YNc(19,Ce,3,4,"mat-checkbox",17),t.TgZ(20,"mat-form-field"),t.TgZ(21,"mat-select",18),t.NdJ("ngModelChange",function(n){return t.CHM(e),t.oxw().selectedPropagation=n}),t.ALo(22,"translate"),t.YNc(23,Ae,2,2,"mat-option",12),t.qZA(),t.qZA(),t.TgZ(24,"div",8),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,18,"DIALOGS.ADD_SERVICE_DESTINATION.DESCRIPTION")),t.xp6(3),t.s9C("placeholder",t.lcZ(6,20,"DIALOGS.ADD_SERVICE_DESTINATION.SERVICE")),t.Q6J("formControl",e.serviceControl),t.xp6(2),t.Q6J("ngIf",0!==e.services.length),t.xp6(1),t.Q6J("ngIf",0===e.services.length),t.xp6(1),t.Q6J("ngForOf",e.services),t.xp6(1),t.Q6J("ngIf",void 0===e.serviceControl.value),t.xp6(1),t.Q6J("ngModel",e.servicesOnFacility),t.xp6(1),t.Oqu(t.lcZ(13,22,"DIALOGS.ADD_SERVICE_DESTINATION.IS_SERVICES_ONLY_ON_FACILITY")),t.xp6(3),t.s9C("placeholder",t.lcZ(16,24,"DIALOGS.ADD_SERVICE_DESTINATION.TYPE")),t.Q6J("ngModel",e.selectedType),t.xp6(2),t.Q6J("ngForOf",e.types),t.xp6(1),t.Q6J("ngIf",!("host"===e.selectedType&&e.useFacilityHost)),t.xp6(1),t.Q6J("ngIf","host"===e.selectedType),t.xp6(2),t.s9C("placeholder",t.lcZ(22,26,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION")),t.Q6J("ngModel",e.selectedPropagation),t.xp6(2),t.Q6J("ngForOf",e.propagations),t.xp6(2),t.hij(" ",t.lcZ(26,28,"DIALOGS.ADD_SERVICE_DESTINATION.PROPAGATION_TYPE_"+e.selectedPropagation)," ")}}let be=(()=>{class i{constructor(e,s,n,o){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.servicesManager=o,this.services=[],this.types=["host","user@host","user@host:port","user@host-windows","host-windows-proxy","url","email","semail","service-specific"],this.selectedType="host",this.propagations=["PARALLEL","DUMMY"],this.selectedPropagation="PARALLEL",this.useFacilityHost=!1,this.loading=!1,this.emailRegex=new RegExp(p.B2),this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"),this.urlPattern=new RegExp("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;()*$']*[-a-zA-Z0-9+&@#/%=~_|()*$']$"),this.userAtHostPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$)"),this.userAtHostPortPattern=new RegExp("^[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}\\$)@(?:(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)|(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}):[0-9]+"),this.serviceSpecificPattern=new RegExp("^(?!-)[a-zA-Z0-9-_.:/]*$")}ngOnInit(){this.serviceControl=new g.NI(void 0,g.kI.required),this.destinationControl=new g.NI("",this.getDestinationValidator()),this.emailControl=new g.NI("",[g.kI.required,g.kI.pattern(this.emailRegex)]),this.servicesOnFacility=!0,this.getServices()}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,"all"===this.serviceControl.value?this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility({services:this.services,facility:this.data.facility.id}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestinationToMultipleServices({services:this.services,facility:this.data.facility.id,destination:this.destinationControl.value,type:this.selectedType,propagationType:this.selectedPropagation}).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.useFacilityHost?this.servicesManager.addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(this.serviceControl.value.id,this.data.facility.id).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1):this.servicesManager.addDestination(this.serviceControl.value.id,this.data.facility.id,this.destinationControl.value,this.selectedType,this.selectedPropagation).subscribe(()=>{this.dialogRef.close(!0)},()=>this.loading=!1)}getServices(){this.loading=!0,this.servicesOnFacility?0!==this.data.configServices.length?this.services=this.data.configServices:this.servicesManager.getAssignedServices(this.data.facility.id).subscribe(e=>{this.services=e},()=>this.loading=!1):this.servicesManager.getServices().subscribe(e=>{this.services=e},()=>this.loading=!1),this.loading=!1,this.serviceControl.setValue(void 0)}getTypeForView(e){return"semail"===e?"Send Mail":"service-specific"===e?"Service Specific":e}invalidDestination(){return("host"!==this.selectedType||!this.useFacilityHost)&&this.destinationControl.invalid}getDestinationValidator(){return e=>{if(!e.value)return null;let s;switch(this.selectedType){case"host":case"host-windows-proxy":s=this.hostPattern;break;case"email":case"semail":s=this.emailRegex;break;case"url":s=this.urlPattern;break;case"user@host":case"user@host-windows":s=this.userAtHostPattern;break;case"user@host:port":s=this.userAtHostPortPattern;break;case"service-specific":s=this.serviceSpecificPattern;break;default:return null}return s.test(e.value)?null:{invalidDestination:{value:e.value}}}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(f.KK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-add-services-destination-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-italic"],["required","",3,"formControl","placeholder"],["value","all",4,"ngIf"],["value","noService",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"],[3,"ngModel","placeholder","ngModelChange","selectionChange"],["class","w-100",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"ngModel","placeholder","ngModelChange"],["value","all"],["value","noService"],[3,"value"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[3,"ngModel","ngModelChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,pe,1,0,"mat-spinner",1),t.YNc(5,Ie,27,30,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.data.theme),t.xp6(2),t.Oqu(t.lcZ(3,9,"DIALOGS.ADD_SERVICE_DESTINATION.TITLE")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.ADD_SERVICE_DESTINATION.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||s.invalidDestination()||s.serviceControl.invalid||"noService"===s.serviceControl.value),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.ADD_SERVICE_DESTINATION.ADD")," "))},directives:[u.uh,_.O5,T.$g,u.xY,R.KE,ue.gD,g.Q7,g.JJ,g.oH,et.ey,_.sg,R.TO,D.oG,g.On,P.Nt,g.Fj,u.H8,C.lW],pipes:[h.X$],styles:[""],data:{animation:[J.BQ]}}),i})();var L=c(98380),O=c(96214),Z=c(7434),nt=c(70242);function ve(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",9),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.DESTINATIONS_INFO")," "))}function ye(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",10),t.NdJ("click",function(){return t.CHM(e),t.oxw().addDestination()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD")," "))}function xe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeDestination()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.REMOVE")," ")}}function Ze(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAllow()}),t.TgZ(1,"mat-icon"),t._uU(2," check_circle_outline "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedAllowed()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW")," ")}}function Ee(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onBlock()}),t.TgZ(1,"mat-icon"),t._uU(2," block "),t.qZA(),t._uU(3),t.ALo(4,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.allSelectedBlocked()),t.xp6(3),t.hij(" ",t.lcZ(4,2,"FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK")," ")}}function De(i,a){1&i&&t._UZ(0,"mat-spinner",13)}function Le(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-destination-list",14),2&i){const e=t.oxw();t.Q6J("filterValue",e.filterValue)("selection",e.selected)("destinations",e.destinations)("services",e.configServicesIds)("displayedColumns",e.displayedColumns)("tableId",e.tableId)}}let ot=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialog=e,this.facilitiesManager=s,this.servicesManager=n,this.translate=o,this.notificator=r,this.authResolver=m,this.serviceManager=S,this.entityStorageService=b,this.displayedColumns=["select","destinationId","service","destination","type","status","propagationType"],this.configServices=[],this.configServicesIds=new Set,this.title="FACILITY_DETAIL.SERVICES_DESTINATIONS.TITLE",this.destinationEmitter=new t.vpe,this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.Cf}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.servicesManager.getAllRichDestinationsForFacility(this.facility.id).subscribe(e=>{this.destinations=e,this.destinationEmitter.emit(this.destinations),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addDestination_Service_Facility_Destination_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeDestination_Service_Facility_Destination_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnDestination_Service_int_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnDestination_Service_int_policy",[this.facility]),this.displayedColumns=this.removeAuth?this.displayedColumns:this.displayedColumns.filter(e=>"select"!==e)}addDestination(){const e=(0,p.kZ)();e.width="600px",e.data={facility:this.facility,theme:"facility-theme",configServices:this.configServices},this.dialog.open(be,e).afterClosed().subscribe(n=>{n&&this.translate.get("FACILITY_DETAIL.SERVICES_DESTINATIONS.ADD_SUCCESS").subscribe(o=>{this.refreshTable(),this.notificator.showSuccess(o)})})}removeDestination(){const e=(0,p.kZ)();e.width="600px",e.data={destinations:this.selected.selected,theme:"facility-theme"},this.dialog.open(re.u,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}blockServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.BLOCK_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.blockServiceOnDestination(s.service.id,s.id).subscribe(()=>{this.blockServiceOnDestinations(e)},()=>this.loading=!1)}onBlock(){this.loading=!0,this.blockServiceOnDestinations(this.selected.selected)}allowServiceOnDestinations(e){if(0===e.length)return this.notificator.showSuccess(this.translate.instant("FACILITY_DETAIL.SERVICES_DESTINATIONS.ALLOW_SUCCESS")),void this.refreshTable();const s=e.pop();this.serviceManager.unblockServiceOnDestinationById(s.service.id,s.id).subscribe(()=>{this.allowServiceOnDestinations(e)},()=>this.loading=!1)}onAllow(){this.loading=!0,this.allowServiceOnDestinations(this.selected.selected)}applyFilter(e){this.filterValue=e}allSelectedAllowed(){return this.selected.selected.reduce((e,s)=>e&&!s.blocked,!0)}allSelectedBlocked(){return this.selected.selected.reduce((e,s)=>e&&s.blocked,!0)}}return i.id="FacilityServicesDestinationsComponent",i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(d.x4),t.Y36(f.KK),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-services-destinations"]],hostVars:2,hostBindings:function(e,s){2&e&&t.ekj("router-component",s.true)},inputs:{displayedColumns:"displayedColumns",configServices:"configServices",configServicesIds:"configServicesIds",title:"title",loading:"loading"},outputs:{destinationEmitter:"destinationEmitter"},decls:13,vars:11,consts:[[1,"page-subtitle"],["alert_type","info",4,"ngIf"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","mat-stroked-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId",4,"ngIf"],["alert_type","info"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"filterValue","selection","destinations","services","displayedColumns","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,ve,3,3,"perun-web-apps-alert",1),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,ye,3,3,"button",3),t.YNc(7,xe,3,4,"button",4),t.YNc(8,Ze,5,4,"button",5),t.YNc(9,Ee,5,4,"button",5),t.TgZ(10,"perun-web-apps-immediate-filter",6),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(11,De,1,0,"mat-spinner",7),t.YNc(12,Le,1,6,"app-perun-web-apps-destination-list",8),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,9,s.title)),t.xp6(2),t.Q6J("ngIf",s.title.includes("CONFIG")),t.xp6(2),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.SERVICES_DESTINATIONS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[_.O5,L.w,O.t,C.lW,N.Hw,Z.L,T.$g,nt.q],pipes:[h.X$],styles:[""]}),i})();var V=c(23256);function Oe(i,a){1&i&&t._UZ(0,"mat-spinner",3)}function Re(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div"),t.TgZ(1,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(2,"div",5),t._UZ(3,"perun-web-apps-owners-list",6),t.qZA(),t.TgZ(4,"div",7),t.TgZ(5,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw().onAdd()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("placeholder","DIALOGS.ADD_OWNERS.FILTER"),t.xp6(2),t.Q6J("filterValue",e.filterValue)("selection",e.selection)("owners",e.owners)("tableId",e.tableId),t.xp6(3),t.hij(" ",t.lcZ(7,8,"DIALOGS.ADD_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",0===e.selection.selected.length||e.loading),t.xp6(1),t.hij(" ",t.lcZ(10,10,"DIALOGS.ADD_OWNERS.ADD")," ")}}let Fe=(()=>{class i{constructor(e,s,n,o,r,m){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.ownersManagerService=r,this.facilitiesManagerService=m,this.extSources=[],this.selection=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.BV,this.owners=[],this.translate.get("DIALOGS.ADD_OWNERS.SUCCESS").subscribe(S=>this.successMessage=S)}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.ownersManagerService.getAllOwners().subscribe(e=>{this.owners=e.filter(s=>!this.data.forbiddenOwners.includes(s.id)),this.loading=!1},()=>this.loading=!1)}applyFilter(e){this.filterValue=e}onAdd(){this.loading=!0,0!==this.selection.selected.length?this.facilitiesManagerService.addFacilityOwner(this.data.facilityId,this.selection.selected.pop().id).subscribe(()=>this.onAdd(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.aC),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-add-facility-owner-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],[4,"ngIf"],[1,"mr-auto","ml-auto"],[1,"font-size-1rem",3,"placeholder","filter"],["mat-dialog-content",""],[3,"filterValue","selection","owners","tableId"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Oe,1,0,"mat-spinner",1),t.YNc(5,Re,11,12,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"DIALOGS.ADD_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[u.uh,_.O5,T.$g,Z.L,u.xY,V.Q,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var l=c(32075);function Ne(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ke(i,a){1&i&&t._UZ(0,"th",15)}function we(i,a){if(1&i&&(t.TgZ(0,"td",16),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Ye(i,a){1&i&&t._UZ(0,"tr",17)}function Ue(i,a){1&i&&t._UZ(0,"tr",18)}function Me(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ke,1,0,"th",11),t.YNc(10,we,2,1,"td",12),t.BQk(),t.YNc(11,Ye,1,0,"tr",13),t.YNc(12,Ue,1,0,"tr",14),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,5,"DIALOGS.REMOVE_OWNERS.DESCRIPTION")," "),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.REMOVE_OWNERS.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(4),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let Je=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.notificator=n,this.translate=o,this.facilitiesManagerService=r,this.displayedColumns=["name"],o.get("DIALOGS.REMOVE_OWNERS.SUCCESS").subscribe(m=>this.successMessage=m)}ngOnInit(){this.dataSource=new l.by(this.data.owners),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,0!==this.data.owners.length?this.facilitiesManagerService.removeFacilityOwner(this.data.facilityId,this.data.owners.pop().id).subscribe(()=>this.onSubmit(),()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(d.V6),t.Y36(h.sK),t.Y36(f.IQ))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-facility-owner-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,Ne,1,0,"mat-spinner",1),t.YNc(5,Me,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onSubmit()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_OWNERS.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_OWNERS.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_OWNERS.DELETE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function qe(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCreate()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SETTINGS.OWNERS.ADD"),"\n"))}function He(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemove()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SETTINGS.OWNERS.DELETE"),"\n")}}function Qe(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function Pe(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",10),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("owners",e.owners)("selection",e.selection)("tableId",e.tableId)}}let lt=(()=>{class i{constructor(e,s,n,o){this.facilitiesManagerService=e,this.dialog=s,this.authResolver=n,this.entityStorageService=o,this.ownerEmitter=new t.vpe,this.owners=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["id","name","contact","type"],this.tableId=x.zp}ngOnInit(){this.filterValue="",this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}refreshTable(){this.loading=!0,this.selection.clear(),this.facilitiesManagerService.getFacilityOwners(this.facility.id).subscribe(e=>{this.owners=e,this.ownerEmitter.emit(this.owners),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addOwner_Facility_Owner_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeOwner_Facility_Owner_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","contact","type"]:["id","name","contact","type"]}applyFilter(e){this.filterValue=e}onCreate(){const e=(0,p.kZ)();e.width="800px",e.data={theme:"facility-theme",facilityId:this.facility.id,forbiddenOwners:this.owners.map(n=>n.id)},this.dialog.open(Fe,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}onRemove(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",owners:this.selection.selected,facilityId:this.facility.id},this.dialog.open(Je,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(u.uw),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-settings-owners"]],outputs:{ownerEmitter:"ownerEmitter"},decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","owners","selection","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","owners","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(4,qe,3,3,"button",2),t.YNc(5,He,3,4,"button",3),t.TgZ(6,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(7,Qe,1,0,"mat-spinner",5),t.YNc(8,Pe,1,5,"perun-web-apps-owners-list",6)),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,6,"FACILITY_DETAIL.SETTINGS.OWNERS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,V.Q],pipes:[h.X$],styles:[""]}),i})();var G=c(50301);function Ve(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Ge(i,a){1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.ADD_HOST.EMPTY_MESSAGE")," "))}function Be(i,a){if(1&i&&(t.TgZ(0,"mat-error"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.AsE(" ",t.lcZ(2,2,"DIALOGS.ADD_HOST.INVALID_HOST")," ",e.hostsCtrl.getError("invalidHost").value," ")}}function je(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"mat-form-field"),t.TgZ(2,"textarea",8),t.ALo(3,"translate"),t._uU(4," "),t.qZA(),t.YNc(5,Ge,3,3,"mat-error",9),t.YNc(6,Be,3,4,"mat-error",9),t.qZA(),t.TgZ(7,"perun-web-apps-alert",10),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("formControl",e.hostsCtrl)("placeholder",t.lcZ(3,5,"DIALOGS.ADD_HOST.SUBTITLE")),t.xp6(3),t.Q6J("ngIf",e.hostsCtrl.hasError("required")),t.xp6(1),t.Q6J("ngIf",e.hostsCtrl.hasError("invalidHost")),t.xp6(2),t.Oqu(t.lcZ(9,7,"DIALOGS.ADD_HOST.HINT"))}}let $e=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.hostPattern=new RegExp("^(?!:\\/\\/)(?=.{1,255}$)((.{1,63}\\.){1,127}(?![0-9]*$)[a-z0-9-]+\\.?)$|^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$")}static parseRange(e){const[s,n]=e.split("-");return[parseInt(s.substring(1,s.length),10),parseInt(n.substring(0,n.length),10)]}ngOnInit(){this.theme=this.data.theme,this.hostsCtrl=new g.NI("",[g.kI.required,this.hostsNameValidator()]),this.hostsCtrl.markAllAsTouched()}onAdd(){this.loading=!0;const e=this.hostsCtrl.value.split("\n");let s=[];for(const n of e)s=s.concat(this.parseHostName(n));this.facilitiesManager.addHosts(this.data.facilityId,s).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}hostsNameValidator(){return e=>{let s=[];const n=e.value.split("\n");for(const o of n)s=s.concat(this.parseHostName(o));for(const o of s)if(!this.hostPattern.test(o))return{invalidHost:{value:o}};return null}}parseHostName(e){const s=new RegExp("[[0-9]+-[0-9]+]","g"),n=e.split(s),o=e.match(s);if(null==o)return""===e?[]:[e];let r=[];for(let m=0;m{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilitiesManager=n,this.notificator=o,this.translate=r,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.hosts=this.data.hosts,this.dataSource=new l.by(this.data.hosts)}onConfirm(){this.loading=!0,this.facilitiesManager.removeHosts(this.data.facilityId,this.hosts.map(e=>e.id)).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_HOST.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-remove-host-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,ze,1,0,"mat-spinner",1),t.YNc(5,ei,13,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onConfirm()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_HOST.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_HOST.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_HOST.CONFIRM")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var I=c(84847),F=c(18750);function si(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",14),t.TgZ(1,"mat-checkbox",15),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function ai(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",16),t.TgZ(1,"mat-checkbox",17),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ni(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_ID")," "))}function oi(i,a){if(1&i&&(t.TgZ(0,"td",19),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function li(i,a){1&i&&(t.TgZ(0,"th",18),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.TABLE_HOST_NAME")," "))}function ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.hostname)}}function ri(i,a){1&i&&t._UZ(0,"tr",21)}const ct=function(i,a){return["/facilities",i,"hosts",a]};function ui(i,a){if(1&i&&t._UZ(0,"tr",22),2&i){const e=a.$implicit,s=t.oxw();t.Q6J("perunWebAppsMiddleClickRouterLink",s.disableRouting?null:t.WLB(2,ct,s.facilityId,e.id))("routerLink",s.disableRouting?null:t.WLB(5,ct,s.facilityId,e.id))}}function pi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function di(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.HOSTS_LIST.NO_HOST_WARNING"),"\n"))}let rt=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.hosts=[],this.selection=new A.Ov(!0,[]),this.disableRouting=!1,this.displayedColumns=["select","id","name"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.hostname;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.hosts),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-hosts-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{hosts:"hosts",selection:"selection",filterValue:"filterValue",tableId:"tableId",facilityId:"facilityId",disableRouting:"disableRouting",displayedColumns:"displayedColumns"},features:[t.TTD],decls:16,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,si,2,3,"th",4),t.YNc(5,ai,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ni,3,3,"th",7),t.YNc(8,oi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,li,3,3,"th",7),t.YNc(11,ci,2,1,"td",10),t.BQk(),t.YNc(12,ri,1,0,"tr",11),t.YNc(13,ui,1,8,"tr",12),t.qZA(),t.qZA(),t.qZA(),t.YNc(14,pi,3,3,"perun-web-apps-alert",13),t.YNc(15,di,3,3,"perun-web-apps-alert",13)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.hosts.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.hosts.length),t.xp6(1),t.Q6J("ngIf",0===s.hosts.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,G.YH,y.rH,_.O5,L.w],pipes:[h.X$],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function mi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().addHost()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.HOSTS.ADD")," "))}function _i(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",8),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeHost()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.HOSTS.REMOVE")," ")}}function hi(i,a){1&i&&t._UZ(0,"mat-spinner",9)}function fi(i,a){if(1&i&&t._UZ(0,"app-hosts-list",10),2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth||e.disableRouting)("filterValue",e.filterValue)("hosts",e.hosts)("selection",e.selected)("displayedColumns",e.displayedColumns)("facilityId",e.facility.id)("tableId",e.tableId)}}let ut=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.disableRouting=!1,this.hostEmitter=new t.vpe,this.hosts=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.eq,this.displayedColumns=["id","name"]}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.facilitiesManager.getFacilityById(this.facility.id).subscribe(e=>{this.facility=e,this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getHosts(this.facility.id).subscribe(e=>{this.hosts=e,this.hostEmitter.emit(this.hosts),this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("addHosts_Facility_List_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeHosts_List_Facility_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name"]:["id","name"],0!==this.hosts.length&&(this.routeAuth=this.authResolver.isAuthorized("getHostById_int_policy",[this.facility,this.hosts[0]]))}addHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open($e,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}removeHost(){const e=(0,p.kZ)();e.width="600px",e.data={facilityId:this.facility.id,theme:"facility-theme",hosts:this.selected.selected},this.dialog.open(ii,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts"]],inputs:{disableRouting:"disableRouting"},outputs:{hostEmitter:"hostEmitter"},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","hosts","selection","displayedColumns","facilityId","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,mi,3,3,"button",2),t.YNc(6,_i,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,hi,1,0,"mat-spinner",5),t.YNc(9,fi,1,7,"app-hosts-list",6),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,6,"FACILITY_DETAIL.HOSTS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.addAuth),t.xp6(1),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.HOSTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,rt],pipes:[h.X$],styles:[""]}),i})();function gi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Ti(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Si(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.USER_ID")," "))}function Ci(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[1].id," ")}}function Ai(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NAME")," "))}function Ii(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.ALo(2,"userFullName"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e[1])," ")}}function bi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.REASON")," "))}function vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e[0].description," ")}}function yi(i,a){1&i&&t._UZ(0,"tr",22)}function xi(i,a){1&i&&t._UZ(0,"tr",23)}function Zi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ei(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.BLACKLIST_LIST.NO_BANS_WARNING"),"\n"))}let Di=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.bansOnFacilitiesWithUsers=[],this.selection=new A.Ov(!0,[]),this.pageSizeOptions=p.f7,this.displayedColumns=["select","userId","name","reason"]}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"userId":return e[1].id.toString();case"reason":return e[0].description;case"name":return(0,p.hu)(e[1]);default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"userId"!==e)),this.dataSource=new l.by(this.bansOnFacilitiesWithUsers),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e[0].userId+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-blacklist-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{bansOnFacilitiesWithUsers:"bansOnFacilitiesWithUsers",selection:"selection",filterValue:"filterValue",tableId:"tableId"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","reason"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,gi,2,3,"th",4),t.YNc(5,Ti,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Si,3,3,"th",7),t.YNc(8,Ci,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Ai,3,3,"th",7),t.YNc(11,Ii,3,3,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,bi,3,3,"th",7),t.YNc(14,vi,2,1,"td",10),t.BQk(),t.YNc(15,yi,1,0,"tr",12),t.YNc(16,xi,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,Zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Ei,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.bansOnFacilitiesWithUsers.length),t.xp6(1),t.Q6J("ngIf",0===s.bansOnFacilitiesWithUsers.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,it.d],styles:[""]}),i})();function Li(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function Oi(i,a){if(1&i&&t._UZ(0,"app-perun-web-apps-blacklist-list",6),2&i){const e=t.oxw();t.Q6J("bansOnFacilitiesWithUsers",e.bansOnFacilitiesWithUsers)("filterValue",e.filterValue)("selection",e.selected)("tableId",e.tableId)}}let Ri=(()=>{class i{constructor(e,s,n){this.facilitiesManager=e,this.usersManager=s,this.entityStorageService=n,this.bansOnFacilitiesWithUsers=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.NG}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getBansForFacility(this.facility.id).subscribe(e=>{const s=e;for(const n of s){let o;this.usersManager.getUserById(n.userId).subscribe(r=>{o=r}),this.bansOnFacilitiesWithUsers.push([n,o])}this.selected.clear(),this.loading=!1})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.IQ),t.Y36(f.Fv),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-perun-web-apps-facility-settings-blacklist"]],decls:9,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"bansOnFacilitiesWithUsers","filterValue","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.ALo(6,"translate"),t.qZA(),t.YNc(7,Li,1,0,"mat-spinner",3),t.YNc(8,Oi,1,4,"app-perun-web-apps-blacklist-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SETTINGS.BLACKLIST.TITLE")),t.xp6(3),t.Q6J("placeholder",t.lcZ(6,6,"FACILITY_DETAIL.SETTINGS.BLACKLIST.FILTER")),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,Z.L,_.O5,T.$g,Di],pipes:[h.X$],styles:[""]}),i})();var Fi=c(387),Ni=c(61365),ki=c(71103),pt=c(53984);const wi=["list"];function Yi(i,a){1&i&&t._UZ(0,"mat-spinner",7)}function Ui(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",8,9),2&i){const e=t.oxw();t.Q6J("selection",e.selected)("attributes",e.attributes)("tableId",e.tableId)}}let Mi=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.attributesManager=s,this.facilityManager=n,this.route=o,this.attributes=[],this.selected=new A.Ov(!0,[]),this.host={beanName:"",id:0},this.tableId=x.rF}ngOnInit(){this.route.params.subscribe(e=>{this.hostId=Number(e.hostId),this.facilityManager.getHostById(this.hostId).subscribe(s=>{this.host=s}),this.refreshTable()})}refreshTable(){this.loading=!0,this.attributesManager.getHostAttributes(this.hostId).subscribe(e=>{this.attributes=(0,p.MX)(e),this.selected.clear(),this.loading=!1})}onSave(){this.list.updateMapAttributes();const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected},this.dialog.open(q.wA,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}addAttribute(){const e=(0,p.kZ)();e.width="1050px",e.data={entityId:this.hostId,entity:"host",notEmptyAttributes:this.attributes,style:"facility-theme"},this.dialog.open(ki.n,e).afterClosed().subscribe(n=>{"saved"===n&&this.refreshTable()})}removeAttribute(){const e=(0,p.kZ)();e.width="450px",e.data={entityId:this.hostId,entity:"host",attributes:this.selected.selected,theme:"facility-theme"},this.dialog.open(Ni.k,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.H8),t.Y36(f.IQ),t.Y36(y.gz))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-hosts-detail"]],viewQuery:function(e,s){if(1&e&&t.Gf(wi,5),2&e){let n;t.iGM(n=t.CRH())&&(s.list=n.first)}},decls:16,vars:17,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"selection","attributes","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"selection","attributes","tableId"],["list",""]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"button",2),t.NdJ("click",function(){return s.addAttribute()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onSave()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.removeAttribute()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.YNc(14,Yi,1,0,"mat-spinner",5),t.YNc(15,Ui,2,3,"perun-web-apps-attributes-list",6),t.qZA()),2&e&&(t.xp6(2),t.AsE(" ",t.lcZ(3,9,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.TITLE")," ",s.host.hostname," "),t.xp6(4),t.hij(" ",t.lcZ(7,11,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.ADD")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(10,13,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.SAVE")," "),t.xp6(2),t.Q6J("disabled",0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(13,15,"FACILITY_DETAIL.HOSTS.HOSTS_DETAIL.REMOVE")," "),t.xp6(2),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,C.lW,_.O5,T.$g,pt.p],pipes:[h.X$],styles:[""]}),i})();function Ji(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",15),t.TgZ(1,"mat-checkbox",16),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function qi(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",17),t.TgZ(1,"mat-checkbox",18),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function Hi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.ID")," "))}function Qi(i,a){if(1&i&&(t.TgZ(0,"td",20),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.id," ")}}function Pi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NAME")," "))}function Vi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.name)}}function Gi(i,a){1&i&&(t.TgZ(0,"th",19),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.DESCRIPTION")," "))}function Bi(i,a){if(1&i&&(t.TgZ(0,"td",21),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.description)}}function ji(i,a){1&i&&t._UZ(0,"tr",22)}function $i(i,a){1&i&&t._UZ(0,"tr",23)}function zi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Wi(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED.COMPONENTS.SECURITY_TEAMS_LIST.NO_SECURITY_TEAMS_WARNING"),"\n"))}let Xi=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.securityTeams=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","name","description"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"name":return e.name;case"description":return e.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.securityTeams),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-security-teams-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{securityTeams:"securityTeams",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:19,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,Ji,2,3,"th",4),t.YNc(5,qi,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Hi,3,3,"th",7),t.YNc(8,Qi,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Pi,3,3,"th",7),t.YNc(11,Vi,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Gi,3,3,"th",7),t.YNc(14,Bi,2,1,"td",10),t.BQk(),t.YNc(15,ji,1,0,"tr",12),t.YNc(16,$i,1,0,"tr",13),t.qZA(),t.qZA(),t.qZA(),t.YNc(17,zi,3,3,"perun-web-apps-alert",14),t.YNc(18,Wi,3,3,"perun-web-apps-alert",14)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.securityTeams.length),t.xp6(1),t.Q6J("pageSizeOptions",s.pageSizeOptions)("dataLength",s.dataSource.filteredData.length)("tableId",s.tableId),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(13),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.securityTeams.length),t.xp6(1),t.Q6J("ngIf",0===s.securityTeams.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$],styles:[""]}),i})();function Ki(i,a){1&i&&t._UZ(0,"mat-spinner",5)}function ts(i,a){if(1&i&&t._UZ(0,"app-security-teams-list",6),2&i){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("securityTeams",e.securityTeams)("selection",e.selected)("tableId",e.tableId)}}let es=(()=>{class i{constructor(e,s,n,o){this.dialog=e,this.facilitiesManager=s,this.authResolver=n,this.entityStorageService=o,this.securityTeams=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.O9,this.displayedColumns=[]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedSecurityTeams(this.facility.id).subscribe(e=>{this.securityTeams=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("assignSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("removeSecurityTeam_Facility_SecurityTeam_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","description"]:["id","name","description"]}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.uw),t.Y36(f.IQ),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-security-teams"]],decls:8,vars:6,consts:[[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","filterValue","securityTeams","selection","tableId"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.TgZ(5,"perun-web-apps-immediate-filter",2),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(6,Ki,1,0,"mat-spinner",3),t.YNc(7,ts,1,5,"app-security-teams-list",4),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,4,"FACILITY_DETAIL.SECURITY_TEAMS.TITLE")),t.xp6(3),t.Q6J("placeholder","FACILITY_DETAIL.SECURITY_TEAMS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,Z.L,_.O5,T.$g,Xi],pipes:[h.X$],styles:[""]}),i})();var is=c(20057),ss=c(49546);function as(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function ns(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.RESULT_ID")," "))}function os(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function ls(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.DESTINATION")," "))}function cs(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.destination.destination)}}function rs(i,a){1&i&&(t.TgZ(0,"th",17),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"DIALOGS.DELETE_TASK_RESULT.TIME")))}function us(i,a){if(1&i&&(t.TgZ(0,"td",18),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function ps(i,a){1&i&&t._UZ(0,"tr",19)}function ds(i,a){1&i&&t._UZ(0,"tr",20)}function ms(i,a){if(1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"table",9),t.ynx(8,10),t.YNc(9,ns,3,3,"th",11),t.YNc(10,os,2,1,"td",12),t.BQk(),t.ynx(11,13),t.YNc(12,ls,3,3,"th",11),t.YNc(13,cs,2,1,"td",12),t.BQk(),t.ynx(14,14),t.YNc(15,rs,3,3,"th",11),t.YNc(16,us,3,4,"td",12),t.BQk(),t.YNc(17,ps,1,0,"tr",15),t.YNc(18,ds,1,0,"tr",16),t.qZA(),t.qZA()),2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,5,"DIALOGS.DELETE_TASK_RESULT.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(6,7,"DIALOGS.DELETE_TASK_RESULT.ASK")," "),t.xp6(2),t.Q6J("dataSource",e.dataSource),t.xp6(10),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let dt=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.taskManager=n,this.notificator=o,this.translate=r,this.loading=!1,this.dataSource=new l.by(this.data.taskResults),this.displayedColumns=["id","destination","time"]}ngOnInit(){this.theme=this.data.theme,this.taskResults=this.data.taskResults}onDelete(){if(this.loading=!0,0===this.taskResults.length)return this.dialogRef.close(!0),this.loading=!1,void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_TASK_RESULT.SUCCESS"));this.taskManager.deleteTaskResultById({taskResultId:this.taskResults.pop().id}).subscribe(()=>{this.onDelete()},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-result-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","time"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,as,1,0,"mat-spinner",1),t.YNc(5,ms,19,9,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.onCancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.onDelete()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK_RESULT.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK_RESULT.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK_RESULT.REMOVE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,l.BZ,l.w1,l.fO,l.ge,l.Dz,l.ev,l.as,l.XQ,l.nj,l.Gk,u.H8,C.lW],pipes:[h.X$,_.uU],styles:[""]}),i})();var _s=c(62109);function hs(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function fs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",13),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_AND_TASK_RESULTS")," ")}}function gs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-checkbox",14),t.NdJ("change",function(n){return t.CHM(e),t.oxw(2).change(n)}),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()}if(2&i){const e=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("checked",e.taskResultsChecked)("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled),t.xp6(2),t.hij(" ",t.lcZ(3,7,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_TASK_RESULTS")," ")}}function Ts(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-resources-list",15),t.NdJ("allSelected",function(n){return t.CHM(e),t.oxw(2).disableCheckboxes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("displayedColumns",e.displayedColumns)("disableRouting",!0)("resources",e.resources)("selection",e.selected)("tableId",e.tableId)}}function Ss(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div"),t.YNc(5,fs,4,9,"mat-checkbox",8),t.YNc(6,gs,4,9,"mat-checkbox",9),t.TgZ(7,"mat-checkbox",10),t.NdJ("change",function(n){return t.CHM(e),t.oxw().change(n)}),t.ALo(8,"translate"),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.qZA(),t.TgZ(11,"p"),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.YNc(17,Ts,1,5,"perun-web-apps-resources-list",12),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.Oqu(t.lcZ(3,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DESCRIPTION")),t.xp6(3),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.Q6J("ngIf",null!==e.taskId),t.xp6(1),t.s9C("matTooltip",t.lcZ(8,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.checkboxesDisabled)("matTooltipDisabled",!e.checkboxesDisabled)("checked",e.destinationChecked),t.xp6(2),t.hij(" ",t.lcZ(10,15,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOX_DESTINATION")," "),t.xp6(3),t.Oqu(t.lcZ(13,17,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.DESCRIPTION")),t.xp6(3),t.hij(" ",t.lcZ(16,19,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.ASK")," "),t.xp6(2),t.Q6J("ngIf",!e.loading)}}let Cs=(()=>{class i{constructor(e,s,n,o,r,m,S,b){this.dialogRef=e,this.data=s,this.resourcesManager=n,this.tasksManager=o,this.serviceManager=r,this.translate=m,this.notificator=S,this.cd=b,this.loading=!1,this.resources=[],this.displayedColumns=["select","id","vo","name"],this.checkboxesDisabled=!1,this.taskChecked=!0,this.taskResultsChecked=!0,this.destinationChecked=!0,this.tableId=x.$V,this.dataSource=new l.by(this.data.resource),this.selected=new A.Ov(!0,[...this.dataSource.data])}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId,this.serviceId=this.data.serviceId,this.facilityId=this.data.facilityId,this.resources=this.data.resource}remove(){this.loading=!0,this.taskResultsChecked&&!this.taskChecked&&null!==this.taskId&&this.tasksManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{e.forEach(s=>{this.tasksManager.deleteTaskResultById({taskResultId:s.id}).subscribe()})}),this.taskChecked&&null!==this.taskId&&this.tasksManager.deleteTask({task:this.taskId}).subscribe(),this.destinationChecked&&this.serviceManager.getDestinations(this.serviceId,this.facilityId).subscribe(e=>{e.forEach(s=>{this.serviceManager.removeDestination(this.serviceId,this.facilityId,s.destination,s.type).subscribe()})}),this.selected.selected.forEach(e=>{this.resourcesManager.removeService(e.id,this.serviceId).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_SERVICE_FROM_FACILITY.SUCCESS").subscribe(s=>{this.notificator.showSuccess(s),this.dialogRef.close(!0)})},()=>this.loading=!1)})}cancel(){this.dialogRef.close(!1)}disableCheckboxes(e){e&&this.checkboxesDisabled&&this.changeCheckboxes(!0),!e&&!this.checkboxesDisabled&&this.changeCheckboxes(!1)}changeCheckboxes(e){this.checkboxesDisabled=!e,this.taskChecked=e,this.taskResultsChecked=e,this.destinationChecked=e,this.cd.detectChanges()}change(e){switch(e.source.id){case"task":this.taskChecked=e.checked;break;case"taskResults":this.taskResultsChecked=e.checked;break;case"destination":this.destinationChecked=e.checked}}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.xk),t.Y36(f.Ob),t.Y36(f.KK),t.Y36(h.sK),t.Y36(d.V6),t.Y36(t.sBO))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-service-from-facility"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","right-space","color","warn","id","task",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["class","right-space","color","warn","id","taskResults",3,"checked","disabled","matTooltipDisabled","matTooltip","change",4,"ngIf"],["color","warn","id","destination",3,"disabled","matTooltipDisabled","checked","matTooltip","change"],[1,"font-weight-bold"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected",4,"ngIf"],["color","warn","id","task",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],["color","warn","id","taskResults",1,"right-space",3,"checked","disabled","matTooltipDisabled","matTooltip","change"],[3,"displayedColumns","disableRouting","resources","selection","tableId","allSelected"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,hs,1,0,"mat-spinner",1),t.YNc(5,Ss,18,21,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading||0===s.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.REMOVE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,D.oG,H.gM,_s.C,u.H8,C.lW],pipes:[h.X$],styles:[".right-space[_ngcontent-%COMP%]{margin-right:40px}"]}),i})();function As(i,a){1&i&&t._UZ(0,"mat-spinner",6)}function Is(i,a){1&i&&(t.TgZ(0,"div",7),t.TgZ(1,"div",8),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.qZA()),2&i&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"DIALOGS.DELETE_TASK.DESCRIPTION")," "))}let bs=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.tasksManager=n,this.translate=o,this.notificator=r,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.taskId=this.data.taskId}remove(){this.loading=!0,this.tasksManager.deleteTask({task:this.taskId}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_TASK.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)})},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.Ob),t.Y36(h.sK),t.Y36(d.V6))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-delete-task-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"div"),t.YNc(4,As,1,0,"mat-spinner",1),t.YNc(5,Is,4,3,"div",2),t.TgZ(6,"div",3),t.TgZ(7,"button",4),t.NdJ("click",function(){return s.cancel()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",5),t.NdJ("click",function(){return s.remove()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,9,"DIALOGS.DELETE_TASK.TITLE")),t.xp6(2),t.Tol(s.theme),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading),t.xp6(3),t.hij(" ",t.lcZ(9,11,"DIALOGS.DELETE_TASK.CANCEL")," "),t.xp6(2),t.Q6J("disabled",s.loading),t.xp6(1),t.hij(" ",t.lcZ(12,13,"DIALOGS.DELETE_TASK.DELETE")," "))},directives:[u.uh,_.O5,T.$g,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();var B=c(92181);let vs=(()=>{class i{transform(e){return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED"}}return i.\u0275fac=function(e){return new(e||i)},i.\u0275pipe=t.Yjl({name:"serviceStateBlockedToString",type:i,pure:!0}),i})();function ys(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",18),t.TgZ(1,"mat-checkbox",19),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n&&o.masterToggle(),o.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("click",function(n){return n.stopPropagation()})("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n&&m.selection.toggle(r),m.selectionChange.emit()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("checked",s.selection.isSelected(e))("aria-label",s.checkboxLabel(e))}}function Zs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TASK_ID")," "))}function Es(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.task.id)}}function Ds(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1,"0"),t.qZA())}function Ls(i,a){if(1&i&&(t.TgZ(0,"td",23),t.YNc(1,Es,2,1,"div",24),t.YNc(2,Ds,2,0,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task),t.xp6(1),t.Q6J("ngIf",!e.task)}}function Os(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.SERVICE_NAME")," "))}function Rs(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.service.name)}}function Fs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STATUS")," "))}function Ns(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.status)}}function ks(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.BLOCKED")," "))}function ws(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"serviceStateBlockedToString"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.lcZ(2,1,e)," ")}}function Ys(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.STARTED")," "))}function Us(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.startTime,"d.M.y H:mm:ss")," ")}}function Ms(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Js(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Us,3,4,"div",24),t.YNc(2,Ms,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.startTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.startTime)}}function qs(i,a){1&i&&(t.TgZ(0,"th",22),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.ENDED")," "))}function Hs(i,a){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.task.endTime,"d.M.y H:mm:ss")," ")}}function Qs(i,a){1&i&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NOT_YET")," "))}function Ps(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,Hs,3,4,"div",24),t.YNc(2,Qs,3,3,"div",24),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",e.task&&e.task.endTime),t.xp6(1),t.Q6J("ngIf",!e.task||!e.task.endTime)}}function Vs(i,a){1&i&&t._UZ(0,"tr",26)}const mt=function(i,a){return["/facilities",i,"services-status",a]};function Gs(i,a){if(1&i&&t._UZ(0,"tr",27),2&i){const e=a.$implicit,s=t.oxw();t.ekj("disable-outline",s.disableRouting||!e.task)("make-yellow","WARNING"===e.status)("make-green","DONE"===e.status)("make-red","GENERROR"===e.status||"SENDERROR"===e.status||"ERROR"===e.status)("cursor-pointer",!s.disableRouting&&null!==e.task),t.Q6J("routerLink",s.disableRouting||null===e.task?null:t.WLB(12,mt,e.facility.id,e.taskId))("perunWebAppsMiddleClickRouterLink",s.disableRouting||null===e.task?null:t.WLB(15,mt,e.facility.id,e.taskId))}}function Bs(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function js(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",28),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.NO_SERVICES_STATUS_WARNING"),"\n"))}let $s=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.servicesStatus=[],this.displayedColumns=["select","task.id","service.name","status","blocked","task.startTime","task.endTime"],this.selection=new A.Ov(!0,[]),this.disableRouting=!0,this.selectionChange=new t.vpe,this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){var n,o;switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.p6)(e.task.endTime,"yyyy.MM.dd HH:mm:ss","en"):e[s];default:return e[s]}}static getDataForColumn(e,s){var n,o;switch(s){case"task.id":return e.task?e.task.id.toString():e[s];case"service.name":return e.service.name;case"status":return e.status;case"blocked":return e.blockedOnFacility?"BLOCKED":e.blockedGlobally?"BLOCKED GLOBALLY":"ALLOWED";case"task.startTime":return(null===(n=e.task)||void 0===n?void 0:n.startTime)?(0,_.p6)(e.task.startTime,"d.M.y H:mm:ss","en"):e[s];case"task.endTime":return(null===(o=e.task)||void 0===o?void 0:o.endTime)?(0,_.p6)(e.task.endTime,"d.M.y H:mm:ss","en"):e[s];default:return e[s]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"task.id"!==e)),this.dataSource=new l.by(this.servicesStatus),this.setDataSource(),this.dataSource.filterPredicate=(e,s)=>{const n=s.trim().toLowerCase(),o=r=>{let m="";return Object.values(r).forEach(S=>{"object"!=typeof S?m=m+" "+String(S):null!==S&&(m=m+" "+o(S))}),m.trim().toLowerCase()};return o(e).includes(n)},this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.service.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-services-status-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{servicesStatus:"servicesStatus",displayedColumns:"displayedColumns",selection:"selection",filterValue:"filterValue",tableId:"tableId",disableRouting:"disableRouting"},outputs:{selectionChange:"selectionChange"},features:[t.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","service.name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","task.id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","service.name"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","blocked"],["matColumnDef","task.startTime"],["matColumnDef","task.endTime"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"disable-outline","make-yellow","make-green","make-red","cursor-pointer","routerLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngIf"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"routerLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,ys,2,3,"th",4),t.YNc(5,xs,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,Zs,3,3,"th",7),t.YNc(8,Ls,3,2,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,Os,3,3,"th",7),t.YNc(11,Rs,2,1,"td",10),t.BQk(),t.ynx(12,11),t.YNc(13,Fs,3,3,"th",7),t.YNc(14,Ns,2,1,"td",10),t.BQk(),t.ynx(15,12),t.YNc(16,ks,3,3,"th",7),t.YNc(17,ws,3,3,"td",10),t.BQk(),t.ynx(18,13),t.YNc(19,Ys,3,3,"th",7),t.YNc(20,Js,3,2,"td",10),t.BQk(),t.ynx(21,14),t.YNc(22,qs,3,3,"th",7),t.YNc(23,Ps,3,2,"td",10),t.BQk(),t.YNc(24,Vs,1,0,"tr",15),t.YNc(25,Gs,1,18,"tr",16),t.qZA(),t.qZA(),t.qZA(),t.YNc(26,Bs,3,3,"perun-web-apps-alert",17),t.YNc(27,js,3,3,"perun-web-apps-alert",17)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.servicesStatus.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(22),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.servicesStatus.length),t.xp6(1),t.Q6J("ngIf",0===s.servicesStatus.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.O5,l.as,l.XQ,l.nj,l.Gk,y.rH,G.YH,L.w],pipes:[h.X$,vs,_.uU],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.make-green[_ngcontent-%COMP%]{background-color:#c4ffcb}.make-yellow[_ngcontent-%COMP%]{background-color:#fffde7}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),i})();function zs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().forcePropagation()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.FORCE_PROPAGATION")," ")}}function Ws(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().allow()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableAllowButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.ALLOW")," ")}}function Xs(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().block()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selected.selected.length||e.disableBlockButton),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.SERVICES_STATUS.BLOCK")," ")}}function Ks(i,a){if(1&i&&(t.TgZ(0,"button",13),t.ALo(1,"translate"),t._uU(2),t.ALo(3,"translate"),t.qZA()),2&i){const e=t.oxw(),s=t.MAs(10);t.s9C("matTooltip",t.lcZ(1,5,"DIALOGS.REMOVE_SERVICE_FROM_FACILITY.CHECKBOXES_DISABLED")),t.Q6J("disabled",e.disableRemoveButton)("matMenuTriggerFor",s)("matTooltipDisabled",!e.disableRemoveButton),t.xp6(2),t.hij(" ",t.lcZ(3,7,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE")," ")}}function ta(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTaskResults()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_TASK_RESULTS")," "))}function ea(i,a){1&i&&t._UZ(0,"mat-spinner",14)}function ia(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-services-status-list",15),t.NdJ("selectionChange",function(){return t.CHM(e),t.oxw().selectionChanged()}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disableRouting",!e.routeAuth)("filterValue",e.filterValue)("servicesStatus",e.servicesStates)("selection",e.selected)("tableId",e.tableId)}}let sa=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E){this.tasksManager=e,this.servicesManager=s,this.notificator=n,this.translate=o,this.authResolver=r,this.facilityManager=m,this.resourcesManager=S,this.dialog=b,this.entityStorageService=E,this.servicesStates=[],this.selected=new A.Ov(!0,[]),this.filterValue="",this.tableId=x.oK,this.disableAllowButton=!0,this.disableBlockButton=!0,this.disableRemoveButton=!0,o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_FORCE_PROPAGATION").subscribe(v=>this.successFPMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_ALLOW").subscribe(v=>this.successAllowMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_BLOCK").subscribe(v=>this.successBlockMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.SUCCESS_DELETE").subscribe(v=>this.successDeleteMessage=v),o.get("FACILITY_DETAIL.SERVICES_STATUS.ALREADY_DELETED").subscribe(v=>this.allreadyDeletedMessage=v)}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}forcePropagation(){for(const e of this.selected.selected)this.servicesManager.forceServicePropagation(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successFPMessage)})}allow(){for(const e of this.selected.selected)this.servicesManager.unblockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successAllowMessage)})}block(){for(const e of this.selected.selected)this.servicesManager.blockServiceOnFacility(e.service.id,e.facility.id).subscribe(()=>{this.refreshTable(),this.notificator.showSuccess(this.successBlockMessage)})}removeTaskResults(){this.tasksManager.getTaskResultsForGUIByTask(this.selected.selected[0].task.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",s.data={theme:"facility-theme",taskResults:e},this.dialog.open(dt,s)})}removeServiceFromFacility(){this.facilityManager.getAssignedResourcesByAssignedServiceForFacility(this.selected.selected[0].facility.id,this.selected.selected[0].service.id).subscribe(e=>{const s=(0,p.kZ)();s.width="600px",this.taskId=this.taskIsNull?null:this.selected.selected[0].task.id,0===e.length?(s.data={theme:"facility-theme",taskId:this.taskId},this.dialog.open(bs,s).afterClosed().subscribe(o=>{o&&(this.disableRemoveButton=!0,this.refreshTable())})):this.resourcesManager.getRichResourcesByIds(e.map(n=>n.id)).subscribe(n=>{s.data={theme:"facility-theme",taskId:this.taskId,serviceId:this.selected.selected[0].service.id,facilityId:this.selected.selected[0].facility.id,resource:n},this.dialog.open(Cs,s).afterClosed().subscribe(r=>{r&&(this.disableRemoveButton=!0,this.refreshTable())})})})}refreshTable(){this.loading=!0,this.tasksManager.getFacilityServicesState(this.facility.id).subscribe(e=>{this.servicesStates=e,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.propagationAuth=this.authResolver.isAuthorized("forceServicePropagation_Facility_Service_policy",[this.facility]),this.blockAuth=this.authResolver.isAuthorized("blockServiceOnFacility_Service_Facility_policy",[this.facility]),this.allowAuth=this.authResolver.isAuthorized("unblockServiceOnFacility_Service_Facility_policy",[this.facility]),this.deleteAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.routeAuth=this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[this.facility])}applyFilter(e){this.filterValue=e}selectionChanged(){this.disableBlockButton=!0,this.disableAllowButton=!0,this.disableRemoveButton=1!==this.selected.selected.length,this.disableRemoveButton||(this.taskIsNull=null===this.selected.selected[0].task);for(const e of this.selected.selected)e.blockedOnFacility?this.disableAllowButton=!1:this.disableBlockButton=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.Ob),t.Y36(f.KK),t.Y36(d.V6),t.Y36(h.sK),t.Y36(d.x4),t.Y36(f.IQ),t.Y36(f.xk),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-service-status"]],decls:18,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","mr-2 dropdown-toggle","color","warn",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip",4,"ngIf"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-flat-button","","color","warn",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor","matTooltipDisabled","matTooltip"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","servicesStatus","selection","tableId","selectionChange"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"perun-web-apps-refresh-button",1),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(5,zs,3,4,"button",2),t.YNc(6,Ws,3,4,"button",2),t.YNc(7,Xs,3,4,"button",3),t.YNc(8,Ks,4,9,"button",4),t.TgZ(9,"mat-menu",null,5),t.YNc(11,ta,3,3,"button",6),t.TgZ(12,"button",7),t.NdJ("click",function(){return s.removeServiceFromFacility()}),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.qZA(),t.TgZ(15,"perun-web-apps-immediate-filter",8),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(16,ea,1,0,"mat-spinner",9),t.YNc(17,ia,1,5,"perun-web-apps-services-status-list",10),t.qZA()),2&e&&(t.xp6(2),t.Oqu(t.lcZ(3,10,"FACILITY_DETAIL.SERVICES_STATUS.TITLE")),t.xp6(3),t.Q6J("ngIf",s.propagationAuth),t.xp6(1),t.Q6J("ngIf",s.allowAuth),t.xp6(1),t.Q6J("ngIf",s.blockAuth),t.xp6(1),t.Q6J("ngIf",s.deleteAuth),t.xp6(3),t.Q6J("ngIf",!s.taskIsNull),t.xp6(2),t.hij(" ",t.lcZ(14,12,"FACILITY_DETAIL.SERVICES_STATUS.REMOVE_SERVICE_FROM_FACILITY")," "),t.xp6(2),t.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.SERVICES_STATUS_LIST.TABLE_SEARCH"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,B.p6,H.gM,B.VK,B.OP,Z.L,T.$g,$s],pipes:[h.X$],styles:[""]}),i})();var aa=c(25610),na=c(76023);function oa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"th",20),t.TgZ(1,"mat-checkbox",21),t.NdJ("change",function(n){t.CHM(e);const o=t.oxw();return n?o.masterToggle():null}),t.qZA(),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function la(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"td",22),t.TgZ(1,"mat-checkbox",23),t.NdJ("change",function(n){const r=t.CHM(e).$implicit,m=t.oxw();return n?m.selection.toggle(r):null})("click",function(n){return n.stopPropagation()}),t.qZA(),t.qZA()}if(2&i){const e=a.$implicit,s=t.oxw();t.xp6(1),t.Q6J("aria-label",s.checkboxLabel(e))("checked",s.selection.isSelected(e))}}function ca(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RESULT_ID")," "))}function ra(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e.id)}}function ua(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.DESTINATION")," "))}function pa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.destination," ")}}function da(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TYPE")," "))}function ma(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.destination.type.toUpperCase()," ")}}function _a(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.SERVICE")," "))}function ha(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.service.name," ")}}function fa(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STATUS")," "))}function ga(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.status," ")}}function Ta(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.TIME")," "))}function Sa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.ALo(2,"date"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"d.M.y H:mm:ss")," ")}}function Ca(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.RETURN_CODE")," "))}function Aa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.returnCode," ")}}function Ia(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.STANDARD_MESSAGE")," "))}function ba(i,a){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function va(i,a){if(1&i&&(t.TgZ(0,"td",25),t.YNc(1,ba,3,1,"span",26),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.Q6J("ngForOf",e.standardMessage.split("\n"))}}function ya(i,a){1&i&&(t.TgZ(0,"th",24),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.ERROR_MESSAGE")," "))}function xa(i,a){if(1&i&&(t.TgZ(0,"td",25),t._uU(1),t.qZA()),2&i){const e=a.$implicit;t.xp6(1),t.hij(" ",e.errorMessage," ")}}function Za(i,a){1&i&&t._UZ(0,"tr",27)}function Ea(i,a){if(1&i&&t._UZ(0,"tr",28),2&i){const e=a.$implicit;t.ekj("greenTableItem","DONE"===e.status)("redTableItem","ERROR"===e.status||"DENIED"===e.status)("yellowTableItem","WARNING"===e.status)}}function Da(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function La(i,a){1&i&&(t.TgZ(0,"perun-web-apps-alert",29),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.TASK_RESULTS_LIST.NO_RESULTS_WARNING"),"\n"))}let Oa=(()=>{class i{constructor(e,s){this.authResolver=e,this.tableCheckbox=s,this.taskResults=[],this.selection=new A.Ov(!0,[]),this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.pageSizeOptions=p.f7}set matSort(e){this.sort=e,this.setDataSource()}static getSortDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"yyyy.MM.dd HH:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}static getDataForColumn(e,s){switch(s){case"id":return e.id.toString();case"destination":return e.destination.destination;case"type":return e.destination.type;case"service":return e.service.name;case"status":return e.status;case"time":return(0,_.p6)(e.timestamp.toString(),"d.M.y H:mm:ss","en");case"returnCode":return e.returnCode.toString();case"standardMessage":return e.standardMessage;case"errorMessage":return e.errorMessage;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new l.by(this.taskResults),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){(0,p.O6)((0,p.Xn)(this.dataSource.filteredData,this.displayedColumns,i.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue,this.dataSource.filterPredicate=(e,s)=>(0,p.Sd)(e,s,this.displayedColumns,i.getDataForColumn),this.dataSource.sortData=(e,s)=>(0,p.pR)(e,s,i.getSortDataForColumn))}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(d.x4),t.Y36(d.UA))},i.\u0275cmp=t.Xpm({type:i,selectors:[["perun-web-apps-task-results-list"]],viewQuery:function(e,s){if(1&e&&(t.Gf(p.l9,7),t.Gf(I.YE,7)),2&e){let n;t.iGM(n=t.CRH())&&(s.child=n.first),t.iGM(n=t.CRH())&&(s.matSort=n.first)}},inputs:{taskResults:"taskResults",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns"},features:[t.TTD],decls:37,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","time","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","destination"],["matColumnDef","type"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","time"],["matColumnDef","returnCode"],["matColumnDef","standardMessage"],["matColumnDef","errorMessage"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"greenTableItem","redTableItem","yellowTableItem",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],[4,"ngFor","ngForOf"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,s){1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"perun-web-apps-table-wrapper",1),t.NdJ("exportData",function(o){return s.exportData(o)}),t.TgZ(2,"table",2),t.ynx(3,3),t.YNc(4,oa,2,3,"th",4),t.YNc(5,la,2,2,"td",5),t.BQk(),t.ynx(6,6),t.YNc(7,ca,3,3,"th",7),t.YNc(8,ra,2,1,"td",8),t.BQk(),t.ynx(9,9),t.YNc(10,ua,3,3,"th",7),t.YNc(11,pa,2,1,"td",8),t.BQk(),t.ynx(12,10),t.YNc(13,da,3,3,"th",7),t.YNc(14,ma,2,1,"td",8),t.BQk(),t.ynx(15,11),t.YNc(16,_a,3,3,"th",7),t.YNc(17,ha,2,1,"td",8),t.BQk(),t.ynx(18,12),t.YNc(19,fa,3,3,"th",7),t.YNc(20,ga,2,1,"td",8),t.BQk(),t.ynx(21,13),t.YNc(22,Ta,3,3,"th",7),t.YNc(23,Sa,3,4,"td",8),t.BQk(),t.ynx(24,14),t.YNc(25,Ca,3,3,"th",7),t.YNc(26,Aa,2,1,"td",8),t.BQk(),t.ynx(27,15),t.YNc(28,Ia,3,3,"th",7),t.YNc(29,va,2,1,"td",8),t.BQk(),t.ynx(30,16),t.YNc(31,ya,3,3,"th",7),t.YNc(32,xa,2,1,"td",8),t.BQk(),t.YNc(33,Za,1,0,"tr",17),t.YNc(34,Ea,1,6,"tr",18),t.qZA(),t.qZA(),t.qZA(),t.YNc(35,Da,3,3,"perun-web-apps-alert",19),t.YNc(36,La,3,3,"perun-web-apps-alert",19)),2&e&&(t.Q6J("hidden",0===s.dataSource.filteredData.length||0===s.taskResults.length),t.xp6(1),t.Q6J("tableId",s.tableId)("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions),t.xp6(1),t.Q6J("dataSource",s.dataSource),t.xp6(31),t.Q6J("matHeaderRowDef",s.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",s.displayedColumns),t.xp6(1),t.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.taskResults.length),t.xp6(1),t.Q6J("ngIf",0===s.taskResults.length))},directives:[F.l,l.BZ,I.YE,l.w1,l.fO,l.ge,D.oG,l.Dz,l.ev,I.nU,_.sg,l.as,l.XQ,l.nj,l.Gk,_.O5,L.w],pipes:[h.X$,_.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}"]}),i})();function Ra(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().removeTaskResult()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(2,2,"FACILITY_DETAIL.TASK_RESULTS.REMOVE"),"\n")}}function Fa(i,a){1&i&&t._UZ(0,"mat-spinner",8)}function Na(i,a){if(1&i&&t._UZ(0,"perun-web-apps-task-results-list",9),2&i){const e=t.oxw();t.Q6J("tableId",e.tableId)("displayedColumns",e.displayedColumns)("filterValue",e.filterValue)("selection",e.selection)("taskResults",e.taskResults)}}let ka=(()=>{class i{constructor(e,s,n,o,r){this.route=e,this.taskManager=s,this.authResolver=n,this.dialog=o,this.entityStorageService=r,this.loading=!1,this.filterValue="",this.selection=new A.Ov(!0,[]),this.task={id:0},this.tableId=x.e5,this.displayedColumns=["select","id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"],this.removeAuth=!1}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.removeAuth=this.authResolver.isAuthorized("deleteTask_Task_policy",[this.facility]),this.removeAuth||(this.displayedColumns=["id","destination","type","service","status","time","returnCode","standardMessage","errorMessage"]),this.route.params.subscribe(e=>{this.taskId=Number(e.taskId),this.taskManager.getTaskById(this.taskId).subscribe(s=>{this.task=s,this.refreshTable()})})}refreshTable(){this.loading=!0,this.taskManager.getTaskResultsForGUIByTask(this.taskId).subscribe(e=>{this.selection.clear(),this.taskResults=e,this.loading=!1})}removeTaskResult(){const e=(0,p.kZ)();e.width="600px",e.data={theme:"facility-theme",taskResults:this.selection.selected},this.dialog.open(dt,e).afterClosed().subscribe(n=>{n&&this.refreshTable()})}applyFilter(e){this.filterValue=e}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(y.gz),t.Y36(f.Ob),t.Y36(d.x4),t.Y36(u.uw),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-task-results"]],decls:10,vars:9,consts:[[1,"page-subtitle"],[1,"text-muted"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","selection","taskResults",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","selection","taskResults"]],template:function(e,s){1&e&&(t.TgZ(0,"h1",0),t._uU(1),t.ALo(2,"translate"),t.TgZ(3,"span",1),t._uU(4),t.qZA(),t.qZA(),t.TgZ(5,"perun-web-apps-refresh-button",2),t.NdJ("refresh",function(){return s.refreshTable()}),t.qZA(),t.YNc(6,Ra,3,4,"button",3),t.TgZ(7,"perun-web-apps-immediate-filter",4),t.NdJ("filter",function(o){return s.applyFilter(o)}),t.qZA(),t.YNc(8,Fa,1,0,"mat-spinner",5),t.YNc(9,Na,1,5,"perun-web-apps-task-results-list",6)),2&e&&(t.xp6(1),t.AsE(" ",t.lcZ(2,7,"FACILITY_DETAIL.TASK_RESULTS.TITLE")," - ",s.task.service?s.task.service.name:""," "),t.xp6(3),t.hij(" \xa0#",s.task.id," "),t.xp6(2),t.Q6J("ngIf",s.removeAuth),t.xp6(1),t.Q6J("placeholder","FACILITY_DETAIL.TASK_RESULTS.FILTER"),t.xp6(1),t.Q6J("ngIf",s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[O.t,_.O5,C.lW,Z.L,T.$g,Oa],pipes:[h.X$],styles:[""]}),i})();var wa=c(20872);let Ya=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-no-service-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.NO_SERVICE.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.NO_SERVICE.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.NO_SERVICE.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.NO_SERVICE.SKIP")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})(),Ua=(()=>{class i{constructor(e,s){this.dialogRef=e,this.data=s,this.theme=""}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSkip(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-config-unsaved-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["matDialogActions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"div",1),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",2),t.TgZ(8,"button",3),t.NdJ("click",function(){return s.onCancel()}),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.TgZ(11,"button",4),t.NdJ("click",function(){return s.onSkip()}),t._uU(12),t.ALo(13,"translate"),t.qZA(),t.qZA(),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,7,"DIALOGS.CONFIG_UNSAVED.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(6,9,"DIALOGS.CONFIG_UNSAVED.INFO")," "),t.xp6(4),t.hij(" ",t.lcZ(10,11,"DIALOGS.CONFIG_UNSAVED.CANCEL")," "),t.xp6(3),t.hij(" ",t.lcZ(13,13,"DIALOGS.CONFIG_UNSAVED.SKIP")," "))},directives:[u.uh,u.xY,u.H8,C.lW],pipes:[h.X$],styles:[""]}),i})();function Ma(i,a){if(1&i&&(t.TgZ(0,"div",3),t._UZ(1,"i",4),t.ALo(2,"translate"),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,1,e.info),t.oJD)}}function Ja(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",9),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onKeep()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"DIALOGS.CANCEL_CONFIG.KEEP")," "))}function qa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"div",5),t.TgZ(1,"button",6),t.NdJ("click",function(){return t.CHM(e),t.oxw().onCancel()}),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"button",7),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDelete()}),t.TgZ(5,"mat-icon"),t._uU(6," warning "),t.qZA(),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.YNc(9,Ja,3,3,"button",8),t.qZA()}if(2&i){const e=t.oxw();t.xp6(2),t.hij(" ",t.lcZ(3,3,"DIALOGS.CANCEL_CONFIG.CANCEL")," "),t.xp6(5),t.hij(" ",t.lcZ(8,5,"DIALOGS.CANCEL_CONFIG.DELETE")," "),t.xp6(2),t.Q6J("ngIf",!e.lastStep)}}let Ha=(()=>{class i{constructor(e,s,n,o,r){this.dialogRef=e,this.data=s,this.facilityService=n,this.notificator=o,this.translate=r,this.theme="",this.title="",this.info="",this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.lastStep=this.data.lastStep,this.lastStep?(this.title="DIALOGS.CANCEL_CONFIG.TITLE_COMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_COMPLETE"):(this.title="DIALOGS.CANCEL_CONFIG.TITLE_INCOMPLETE",this.info="DIALOGS.CANCEL_CONFIG.INFO_INCOMPLETE")}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.facilityService.deleteFacility(this.data.facilityId,!0).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CANCEL_CONFIG.SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onKeep(){this.dialogRef.close(!0)}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(u.so),t.Y36(u.WI),t.Y36(f.IQ),t.Y36(d.V6),t.Y36(h.sK))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-cancel-configuration-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["matDialogActions","",4,"ngIf"],["mat-dialog-content",""],[3,"innerHTML"],["matDialogActions",""],["mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,s){1&e&&(t.TgZ(0,"div"),t.TgZ(1,"h1",0),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,Ma,3,3,"div",1),t.YNc(5,qa,10,7,"div",2),t.qZA()),2&e&&(t.Tol(s.theme),t.xp6(2),t.Oqu(t.lcZ(3,6,s.title)),t.xp6(2),t.Q6J("ngIf",!s.loading),t.xp6(1),t.Q6J("ngIf",!s.loading))},directives:[u.uh,_.O5,u.xY,u.H8,C.lW,N.Hw],pipes:[h.X$],styles:[""]}),i})();var Qa=c(66688),U=c(92081),Pa=c(90439),Va=c(60205),Ga=c(30540),M=c(81125);const Ba=["stepper"];function ja(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.OWNERS"))}function $a(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-settings-owners",14),t.NdJ("ownerEmitter",function(n){return t.CHM(e),t.oxw().owners=n}),t.qZA()}}function za(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.HOSTS"))}function Wa(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-facility-hosts",15),t.NdJ("hostEmitter",function(n){return t.CHM(e),t.oxw().hosts=n}),t.qZA()}2&i&&t.Q6J("disableRouting",!0)}function Xa(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICES"))}const Ka=function(){return["select","id","name","enabled","description"]};function tn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18),t.TgZ(7,"perun-web-apps-immediate-filter",19),t.NdJ("filter",function(n){return t.CHM(e),t.oxw().applyFilter(n)}),t.qZA(),t.TgZ(8,"perun-web-apps-service-package-search-select",20),t.NdJ("packageSelected",function(n){return t.CHM(e),t.oxw().packagesSelected(n)}),t.qZA(),t.qZA(),t.TgZ(9,"app-services-list",21),t.NdJ("selectionChanged",function(){return t.CHM(e),t.oxw().singleServiceSelected()}),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,13,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(3),t.hij(" ",t.lcZ(5,15,"FACILITY_CONFIGURATION.SERVICES_INFO")," "),t.xp6(3),t.Q6J("placeholder","FACILITY_CONFIGURATION.SERVICES_FILTER"),t.xp6(1),t.Q6J("disableAutoSelect",!0)("selectedPackage",e.selectedPackages)("multiple",!0)("servicePackages",e.servicePackages)("theme","facility-theme"),t.xp6(1),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(17,Ka))("selection",e.selection)("filterValue",e.filterValue)("services",e.services)}}function en(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SERVICE_CONFIG"))}function sn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"perun-web-apps-service-search-select",27),t.NdJ("serviceSelected",function(n){return t.CHM(e),t.oxw(2).filterAttributes(n)}),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("disableAutoSelect",!0)("services",e.selection.selected)("multiple",!0)("theme","facility-theme")}}function an(i,a){1&i&&t._UZ(0,"mat-spinner",28)}function nn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-attributes-list",29),2&i){const e=t.oxw(2);t.Q6J("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT")("attributes",e.filteredAttributes)("selection",e.attSelection)}}function on(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"h1",16),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.TgZ(3,"perun-web-apps-alert",17),t._uU(4),t.ALo(5,"translate"),t.qZA(),t.TgZ(6,"div",18),t.TgZ(7,"button",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().onRemoveAttributes()}),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.TgZ(10,"button",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSaveAttributes()}),t._uU(11),t.ALo(12,"translate"),t.qZA(),t.YNc(13,sn,1,4,"perun-web-apps-service-search-select",24),t.qZA(),t.YNc(14,an,1,0,"mat-spinner",25),t.YNc(15,nn,1,3,"perun-web-apps-attributes-list",26)}if(2&i){const e=t.oxw(),s=t.MAs(5);t.xp6(1),t.Oqu(t.lcZ(2,9,"FACILITY_CONFIGURATION.SERVICE_CONFIG")),t.xp6(3),t.hij(" ",t.lcZ(5,11,"FACILITY_CONFIGURATION.ATT_INFO")," "),t.xp6(3),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(9,13,"FACILITY_CONFIGURATION.REMOVE")," "),t.xp6(2),t.Q6J("disabled",0===e.attSelection.selected.length),t.xp6(1),t.hij(" ",t.lcZ(12,15,"FACILITY_CONFIGURATION.SAVE")," "),t.xp6(2),t.Q6J("ngIf",s.selectedIndex===e.ATTRIBUTES_IDX),t.xp6(1),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing)}}function ln(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.DESTINATION_CONFIG"))}const cn=function(){return["select","destinationId","service","warn","destination","type","propagationType"]};function rn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"app-perun-web-apps-facility-services-destinations",30),t.NdJ("destinationEmitter",function(n){return t.CHM(e),t.oxw().destinations=n}),t.qZA()}if(2&i){const e=t.oxw();t.Q6J("configServicesIds",e.serviceIds)("displayedColumns",t.DdM(5,cn))("configServices",e.selection.selected)("loading",e.processing)("title","FACILITY_CONFIGURATION.DESTINATION_CONFIG")}}function un(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.MANAGERS"))}function pn(i,a){1&i&&t._UZ(0,"app-perun-web-apps-facility-settings-managers",31),2&i&&t.Q6J("disableRouting",!0)("disableSelf",!0)}function dn(i,a){1&i&&(t._uU(0),t.ALo(1,"translate")),2&i&&t.Oqu(t.lcZ(1,1,"FACILITY_CONFIGURATION.SUMMARY"))}function mn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const _n=function(){return["id","name","contact","type"]};function hn(i,a){if(1&i&&t._UZ(0,"perun-web-apps-owners-list",48),2&i){const e=t.oxw(3);t.Q6J("displayedColumns",t.DdM(2,_n))("owners",e.owners)}}function fn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const gn=function(){return["id","name"]};function Tn(i,a){if(1&i&&t._UZ(0,"app-hosts-list",49),2&i){const e=t.oxw(3);t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(3,gn))("hosts",e.hosts)}}function Sn(i,a){1&i&&t._UZ(0,"mat-spinner",28)}const Cn=function(){return["id","name","enabled","script","description"]},An=function(){return["id","displayName","value","description"]},In=function(){return["destinationId","service","warn","destination","type","propagationType"]},bn=function(){return["id","vo","name","description"]},vn=function(){return["id","name","email","logins","organization"]};function yn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"mat-accordion"),t.TgZ(1,"mat-expansion-panel",34),t.TgZ(2,"mat-expansion-panel-header"),t.TgZ(3,"mat-panel-title"),t._UZ(4,"mat-icon",35),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.qZA(),t.TgZ(7,"h1",16),t._uU(8),t.ALo(9,"translate"),t.qZA(),t.YNc(10,mn,1,0,"mat-spinner",25),t.YNc(11,hn,1,3,"perun-web-apps-owners-list",36),t.qZA(),t.TgZ(12,"mat-expansion-panel",34),t.TgZ(13,"mat-expansion-panel-header"),t.TgZ(14,"mat-panel-title"),t._UZ(15,"mat-icon",37),t._uU(16),t.ALo(17,"translate"),t.qZA(),t.qZA(),t.TgZ(18,"h1",16),t._uU(19),t.ALo(20,"translate"),t.qZA(),t.YNc(21,fn,1,0,"mat-spinner",25),t.YNc(22,Tn,1,4,"app-hosts-list",38),t.qZA(),t.TgZ(23,"mat-expansion-panel",34),t.TgZ(24,"mat-expansion-panel-header"),t.TgZ(25,"mat-panel-title"),t._UZ(26,"mat-icon",39),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.qZA(),t.TgZ(29,"h1",16),t._uU(30),t.ALo(31,"translate"),t.qZA(),t._UZ(32,"app-services-list",40),t.qZA(),t.TgZ(33,"mat-expansion-panel",41),t.NdJ("opened",function(){return t.CHM(e),t.oxw(2).getNonEmptyAttributes()}),t.TgZ(34,"mat-expansion-panel-header"),t.TgZ(35,"mat-panel-title"),t._UZ(36,"mat-icon",37),t._uU(37),t.ALo(38,"translate"),t.qZA(),t.qZA(),t.TgZ(39,"h1",16),t._uU(40),t.ALo(41,"translate"),t.qZA(),t._UZ(42,"perun-web-apps-attributes-list",42),t.qZA(),t.TgZ(43,"mat-expansion-panel",43),t.NdJ("expandedChange",function(n){return t.CHM(e),t.oxw(2).destinationServiceMissing=n}),t.TgZ(44,"mat-expansion-panel-header"),t.TgZ(45,"mat-panel-title"),t._UZ(46,"mat-icon",44),t._uU(47),t.ALo(48,"translate"),t.qZA(),t.qZA(),t.TgZ(49,"h1",16),t._uU(50),t.ALo(51,"translate"),t.qZA(),t.YNc(52,Sn,1,0,"mat-spinner",25),t._UZ(53,"app-perun-web-apps-destination-list",45),t.qZA(),t.TgZ(54,"mat-expansion-panel"),t.TgZ(55,"mat-expansion-panel-header"),t.TgZ(56,"mat-panel-title"),t._UZ(57,"mat-icon",46),t._uU(58),t.ALo(59,"translate"),t.qZA(),t.qZA(),t._UZ(60,"app-managers-page",47),t.qZA(),t.qZA()}if(2&i){const e=t.oxw(2);t.Q6J("@.disabled",!0),t.xp6(1),t.Q6J("disabled",0===e.owners.length),t.xp6(1),t.ekj("cursor-default",0===e.owners.length),t.xp6(3),t.hij(" ",t.lcZ(6,49,"FACILITY_CONFIGURATION.OWNERS")," "),t.xp6(3),t.Oqu(t.lcZ(9,51,"FACILITY_CONFIGURATION.OWNERS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.hosts.length),t.xp6(1),t.ekj("cursor-default",0===e.hosts.length),t.xp6(3),t.hij(" ",t.lcZ(17,53,"FACILITY_CONFIGURATION.HOSTS")," "),t.xp6(3),t.Oqu(t.lcZ(20,55,"FACILITY_CONFIGURATION.HOSTS")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("ngIf",!e.processing),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(28,57,"FACILITY_CONFIGURATION.SERVICES")," "),t.xp6(3),t.Oqu(t.lcZ(31,59,"FACILITY_CONFIGURATION.SERVICES")),t.xp6(2),t.Q6J("disableRouting",!0)("displayedColumns",t.DdM(71,Cn))("services",e.selection.selected),t.xp6(1),t.Q6J("disabled",0===e.selection.selected.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length),t.xp6(3),t.hij(" ",t.lcZ(38,61,"FACILITY_CONFIGURATION.SERVICE_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(41,63,"FACILITY_CONFIGURATION.ATTS")),t.xp6(2),t.Q6J("displayedColumns",t.DdM(72,An))("attributes",e.filteredAttributes)("emptyListText","FACILITY_CONFIGURATION.EMPTY_REQ_ATT"),t.xp6(1),t.Q6J("expanded",e.destinationServiceMissing)("disabled",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(1),t.ekj("cursor-default",0===e.selection.selected.length&&0===e.destinations.length),t.xp6(3),t.hij(" ",t.lcZ(48,65,"FACILITY_CONFIGURATION.DESTINATION_CONFIG")," "),t.xp6(3),t.Oqu(t.lcZ(51,67,"FACILITY_CONFIGURATION.DESTINATION")),t.xp6(2),t.Q6J("ngIf",e.processing),t.xp6(1),t.Q6J("destinations",e.destinations)("displayedColumns",t.DdM(73,In))("services",e.serviceIds),t.xp6(5),t.hij(" ",t.lcZ(59,69,"FACILITY_CONFIGURATION.MANAGERS")," "),t.xp6(2),t.Q6J("complementaryObject",e.facility)("configMode",!0)("disableRouting",!0)("availableRoles",e.availableRoles)("complementaryObjectType","Facility")("displayedGroupColumns",t.DdM(74,bn))("displayedUserColumns",t.DdM(75,vn))}}function xn(i,a){if(1&i&&(t.TgZ(0,"perun-web-apps-alert",17),t._UZ(1,"i",32),t.ALo(2,"translate"),t.qZA(),t.YNc(3,yn,61,76,"mat-accordion",33)),2&i){t.oxw();const e=t.MAs(5);t.xp6(1),t.Q6J("innerHTML",t.lcZ(2,2,"FACILITY_CONFIGURATION.SUMMARY_INFO"),t.oJD),t.xp6(2),t.Q6J("ngIf",e.selectedIndex===e.steps.length-1)}}function Zn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",50),t.NdJ("click",function(){return t.CHM(e),t.oxw().back()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.BACK")," "))}function En(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",51),t.NdJ("click",function(){return t.CHM(e),t.oxw().next()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}if(2&i){t.oxw();const e=t.MAs(5);t.ekj("mr-2",void 0!==e&&0!==e.selectedIndex)("ml-auto",!(void 0!==e&&0!==e.selectedIndex)),t.xp6(1),t.hij(" ",t.lcZ(2,5,"FACILITY_CONFIGURATION.NEXT")," ")}}function Dn(i,a){if(1&i){const e=t.EpF();t.TgZ(0,"button",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onFinish()}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&i&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"FACILITY_CONFIGURATION.FINISH")," "))}let Ln=(()=>{class i{constructor(e,s,n,o,r,m,S,b,E,v){this.attributesManager=e,this.serviceManager=s,this.facilityService=n,this.cd=o,this.dialog=r,this.notificator=m,this.translate=S,this.router=b,this.guiAuthResolver=E,this.entityStorageService=v,this.processing=!1,this.filteredAttributes=[],this.attSelection=new A.Ov(!0,[]),this.services=[],this.serviceIds=new Set,this.servicePackages=[],this.selectedPackages=[],this.selection=new A.Ov(!0,[]),this.owners=[],this.hosts=[],this.destinations=[],this.destinationServiceMissing=!1,this.availableRoles=[],this.filterValue="",this.ATTRIBUTES_IDX=3,this.serviceControl=new g.NI(!1,g.kI.requiredTrue),this.attributesControl=new g.NI(!0,g.kI.requiredTrue),this.allowNavigate=!1,this.attributes=[],this.attributeIds=new Set,this.attributesPerService=new Map,this.servicesPerPackage=new Map,this.saveMsg="",this.removeMsg="",this.BEFORE_OPTIONAL_IDX=2,this.DESTINATIONS_IDX=4,this.AFTER_OPTIONAL_IDX=5,this.translate.get("FACILITY_CONFIGURATION.ATT_SAVED").subscribe($=>this.saveMsg=$),this.translate.get("FACILITY_CONFIGURATION.ATT_REMOVED").subscribe($=>this.removeMsg=$)}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.guiAuthResolver.assignAvailableRoles(this.availableRoles,"Facility"),this.serviceManager.getServicesPackages().subscribe(e=>{this.servicePackages=e,this.getServicePackageServices(e,0)})}ngAfterViewInit(){this.cd.detectChanges(),this.attSelection.changed.subscribe(()=>{this.attributesControl.setValue(0===this.attSelection.selected.length)})}onCancel(){const e=(0,p.kZ)();e.width="550px",e.data={facilityId:this.facility.id,lastStep:this.stepper.selectedIndex===this.stepper.steps.length-1,theme:"facility-theme"},this.dialog.open(Ha,e).afterClosed().subscribe(n=>{n&&(this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities"],{queryParamsHandling:"merge"}))})}packagesSelected(e){if(this.packageSelectionEqual(e))return;this.processing=!0;let s=new Set;if(e&&0!==e.length?s=this.setSymDif(this.selectedPackages,e):this.selectedPackages.forEach(r=>{this.servicesPerPackage.get(r.id).forEach(m=>s.add(m))}),0===s.size)return;const n=this.filterService(s,e.filter(r=>this.selectedPackages.findIndex(m=>m.id===r.id)<0)),o=this.filterService(s,this.selectedPackages.filter(r=>e.findIndex(m=>m.id===r.id)<0));for(const r of this.services)n.has(r.id)?this.selection.select(r):o.has(r.id)&&this.selection.deselect(r);this.selectedPackages=e,this.setServiceControl(),this.processing=!1}singleServiceSelected(){this.setServiceControl(),!this.processing&&this.checkPackageComplete()}back(){this.stepper.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl(),this.stepper.selectedIndex===this.AFTER_OPTIONAL_IDX&&0===this.selection.selected.length?this.stepper.selectedIndex=this.BEFORE_OPTIONAL_IDX:this.stepper.previous()}onSaveAttributes(){return new Promise((e,s)=>{this.processing=!0,this.attributesManager.setFacilityAttributes({facility:this.facility.id,attributes:this.attSelection.selected}).subscribe(()=>{this.notificator.showSuccess(this.saveMsg),this.attSelection.clear(),this.processing=!1,e()},()=>{this.processing=!1,s()})})}next(){this.checkDestinationDependency(this.stepper.selectedIndex),this.stepper.selectedIndex===this.BEFORE_OPTIONAL_IDX?0===this.selection.selected.length?this.openSkipDialog():(this.getRequiredAttributes(),this.stepper.next()):this.stepper.selectedIndex===this.ATTRIBUTES_IDX&&0!==this.attSelection.selected.length?this.openUnsavedAttsDialog():this.stepper.next()}onFinish(){this.allowNavigate=!0,sessionStorage.removeItem("newFacilityId"),this.router.navigate(["facilities",this.facility.id],{queryParamsHandling:"merge"})}onRemoveAttributes(){this.processing=!0;const e=this.attSelection.selected.map(s=>s.id);this.attributesManager.removeFacilityAttributes(this.facility.id,e).subscribe(()=>{this.notificator.showSuccess(this.removeMsg),this.getRequiredAttributes(),this.processing=!1})}filterAttributes(e){if(void 0===e||0===e.length)return void(this.filteredAttributes=this.attributes);const s=new Set;for(const n of e)this.attributesPerService.get(n.id).forEach(o=>s.add(o));this.filteredAttributes=[];for(const n of this.attributes)s.has(n.id)&&this.filteredAttributes.push(n)}getNonEmptyAttributes(){this.filteredAttributes=this.attributes.filter(e=>{if(e.value&&(!(0,Qa.k)(e.value)||0!==e.value.length))return e})}navigationStep(e){this.checkDestinationDependency(e.previouslySelectedIndex),e.selectedIndex===this.ATTRIBUTES_IDX?this.getRequiredAttributes():e.selectedIndex===this.DESTINATIONS_IDX?this.processing=!1:e.selectedIndex<=this.BEFORE_OPTIONAL_IDX&&this.setServiceControl()}applyFilter(e){this.filterValue=e}canDeactivate(){return this.allowNavigate||this.onCancel(),this.allowNavigate}getServicePackageServices(e,s){s===e.length?this.serviceManager.getServices().subscribe(n=>{this.services=n}):this.serviceManager.getServicesFromServicesPackage(e[s].id).subscribe(n=>{this.servicesPerPackage.set(e[s].id,new Set([...n.map(o=>o.id)])),this.getServicePackageServices(e,s+1)})}getServiceRequiredAttributes(e,s){s!==e.length&&this.attributesManager.getRequiredAttributesDefinition(e[s].id).subscribe(n=>{n=n.filter(o=>this.attributeIds.has(o.id)),this.attributesPerService.set(e[s].id,n.map(o=>o.id)),this.getServiceRequiredAttributes(e,s+1)})}setServiceControl(){this.serviceControl.setValue(0!==this.selection.selected.length)}buildServiceSet(e){const s=new Set;return e.forEach(n=>{this.servicesPerPackage.get(n.id).forEach(o=>s.add(o))}),s}setDiff(e,s){return new Set([...e].filter(n=>!s.has(n)))}setIntersect(e,s){return new Set([...e].filter(n=>s.has(n)))}setSymDif(e,s){const n=this.buildServiceSet(e),o=this.buildServiceSet(s),r=this.setDiff(n,o),m=this.setDiff(o,n);return new Set([...r,...m])}filterService(e,s){const n=new Set;for(const o of s){const r=this.setIntersect(e,this.servicesPerPackage.get(o.id));0!==r.size&&r.forEach(m=>n.add(m))}return n}packageSelectionEqual(e){return e.length===this.selectedPackages.length&&(e.forEach(s=>{if(-1===this.selectedPackages.findIndex(n=>n.id===s.id))return!1}),!0)}checkPackageComplete(){const e=[];for(const s of this.selectedPackages){let n=!0;for(const o of this.servicesPerPackage.get(s.id))if(-1===this.selection.selected.findIndex(r=>r.id===o)){n=!1;break}n&&e.push(s)}this.selectedPackages=e}openSkipDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ya,e).afterClosed().subscribe(n=>{n&&(this.serviceControl.setValue(!0),this.stepper.selectedIndex=this.AFTER_OPTIONAL_IDX)})}getRequiredAttributes(){this.processing=!0,this.attributesManager.getRequiredAttributesFacilityServices(this.selection.selected.map(e=>e.id),this.facility.id).subscribe(e=>{this.attSelection.clear(),this.attributes=e.filter(s=>!(0,p.Hm)(s)),this.filteredAttributes=this.attributes,this.attributes.forEach(s=>this.attributeIds.add(s.id)),this.getServiceRequiredAttributes(this.selection.selected,0),this.processing=!1})}openUnsavedAttsDialog(){const e=(0,p.kZ)();e.width="400px",e.data={theme:"facility-theme"},this.dialog.open(Ua,e).afterClosed().subscribe(n=>{n&&this.onSaveAttributes().then(()=>{this.stepper.next()},()=>this.getRequiredAttributes())})}checkDestinationDependency(e){(e===this.BEFORE_OPTIONAL_IDX||e===this.DESTINATIONS_IDX)&&(this.serviceIds=new Set([...this.selection.selected.map(s=>s.id)]),this.destinationServicePresent())}destinationServicePresent(){for(const e of this.destinations)if(!this.serviceIds.has(e.service.id))return void(this.destinationServiceMissing=!0);this.destinationServiceMissing=!1}}return i.\u0275fac=function(e){return new(e||i)(t.Y36(f.H8),t.Y36(f.KK),t.Y36(f.IQ),t.Y36(t.sBO),t.Y36(u.uw),t.Y36(d.V6),t.Y36(h.sK),t.Y36(y.F0),t.Y36(d.x4),t.Y36(d.fb))},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-facility-configuration-page"]],viewQuery:function(e,s){if(1&e&&t.Gf(Ba,5),2&e){let n;t.iGM(n=t.CRH())&&(s.stepper=n.first)}},decls:34,vars:15,consts:[[1,"facility-theme"],[1,"page-title"],[3,"linear","selectionChange"],["stepper",""],["matStepLabel",""],["matStepContent",""],[3,"stepControl"],["optional","true",3,"editable","stepControl"],[3,"editable","optional"],[1,"actions"],["mat-flat-button","",3,"click"],["class","ml-auto mr-2","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"mr-2","ml-auto","click",4,"ngIf"],["class","mr-2","color","accent","mat-flat-button","",3,"click",4,"ngIf"],[3,"ownerEmitter"],[3,"disableRouting","hostEmitter"],[1,"page-subtitle"],["alert_type","info"],[1,"filters"],[1,"filter",3,"placeholder","filter"],[1,"package-search-select",3,"disableAutoSelect","selectedPackage","multiple","servicePackages","theme","packageSelected"],[3,"disableRouting","displayedColumns","selection","filterValue","services","selectionChanged"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2",3,"disabled","click"],["class","service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"emptyListText","attributes","selection",4,"ngIf"],[1,"service-search-select",3,"disableAutoSelect","services","multiple","theme","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"emptyListText","attributes","selection"],[3,"configServicesIds","displayedColumns","configServices","loading","title","destinationEmitter"],[3,"disableRouting","disableSelf"],[3,"innerHTML"],[4,"ngIf"],[3,"disabled"],["svgIcon","perun-owner-grey",1,"mr-2"],[3,"displayedColumns","owners",4,"ngIf"],["svgIcon","perun-hosts",1,"mr-2"],[3,"disableRouting","displayedColumns","hosts",4,"ngIf"],["svgIcon","perun-service",1,"mr-2"],[3,"disableRouting","displayedColumns","services"],[3,"disabled","opened"],[3,"displayedColumns","attributes","emptyListText"],[3,"expanded","disabled","expandedChange"],["svgIcon","perun-service_destination",1,"mr-2"],[3,"destinations","displayedColumns","services"],["svgIcon","perun-manager",1,"mr-2"],[3,"complementaryObject","configMode","disableRouting","availableRoles","complementaryObjectType","displayedGroupColumns","displayedUserColumns"],[3,"displayedColumns","owners"],[3,"disableRouting","displayedColumns","hosts"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["color","accent","mat-flat-button","",3,"click"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"]],template:function(e,s){if(1&e&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.TgZ(4,"mat-stepper",2,3),t.NdJ("selectionChange",function(o){return s.navigationStep(o)}),t.TgZ(6,"mat-step"),t.YNc(7,ja,2,3,"ng-template",4),t.YNc(8,$a,1,0,"ng-template",5),t.qZA(),t.TgZ(9,"mat-step"),t.YNc(10,za,2,3,"ng-template",4),t.YNc(11,Wa,1,1,"ng-template",5),t.qZA(),t.TgZ(12,"mat-step",6),t.YNc(13,Xa,2,3,"ng-template",4),t.YNc(14,tn,10,18,"ng-template",5),t.qZA(),t.TgZ(15,"mat-step",7),t.YNc(16,en,2,3,"ng-template",4),t.YNc(17,on,16,17,"ng-template",5),t.qZA(),t.TgZ(18,"mat-step",8),t.YNc(19,ln,2,3,"ng-template",4),t.YNc(20,rn,1,6,"ng-template",5),t.qZA(),t.TgZ(21,"mat-step"),t.YNc(22,un,2,3,"ng-template",4),t.YNc(23,pn,1,2,"ng-template",5),t.qZA(),t.TgZ(24,"mat-step"),t.YNc(25,dn,2,3,"ng-template",4),t.YNc(26,xn,4,4,"ng-template",5),t.qZA(),t.qZA(),t.TgZ(27,"div",9),t.TgZ(28,"button",10),t.NdJ("click",function(){return s.onCancel()}),t._uU(29),t.ALo(30,"translate"),t.qZA(),t.YNc(31,Zn,3,3,"button",11),t.YNc(32,En,3,7,"button",12),t.YNc(33,Dn,3,3,"button",13),t.qZA(),t.qZA()),2&e){const n=t.MAs(5);t.xp6(2),t.hij(" ",t.lcZ(3,11,"FACILITY_CONFIGURATION.TITLE")," "),t.xp6(2),t.Q6J("linear",!0),t.xp6(8),t.Q6J("stepControl",s.serviceControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length)("stepControl",s.attributesControl),t.xp6(3),t.Q6J("editable",0!==s.selection.selected.length||0!==s.destinations.length)("optional",0===s.destinations.length),t.xp6(11),t.hij(" ",t.lcZ(30,13,"FACILITY_CONFIGURATION.CANCEL")," "),t.xp6(2),t.Q6J("ngIf",void 0!==n&&0!==n.selectedIndex),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex!==n.steps.length-1),t.xp6(1),t.Q6J("ngIf",void 0!==n&&n.selectedIndex===n.steps.length-1)}},directives:[U.Vq,U.C0,U.VY,U.BY,lt,ut,L.w,Z.L,Pa.F,Va.Q,C.lW,_.O5,Ga.J,T.$g,pt.p,ot,at,M.pp,M.ib,M.yz,M.yK,N.Hw,V.Q,rt,nt.q,st.s],pipes:[h.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.6rem;margin-right:.9rem}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.package-search-select[_ngcontent-%COMP%]{width:650px}.service-search-select[_ngcontent-%COMP%]{width:400px}.filter[_ngcontent-%COMP%]{width:350px;margin-right:20px}.actions[_ngcontent-%COMP%]{background-color:#fff;display:flex;padding:20px}.cursor-default[_ngcontent-%COMP%]{cursor:default}"]}),i})(),_t=(()=>{class i{constructor(e){this.router=e}canActivate(e){return e.parent.params.facilityId===sessionStorage.getItem("newFacilityId")||(this.router.navigate(["/home"],{queryParamsHandling:"merge"}),!1)}canDeactivate(e){return e.canDeactivate()}}return i.\u0275fac=function(e){return new(e||i)(t.LFG(y.F0))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();var j=c(71992);const On=[{path:"",component:W.P,canActivateChild:[j.a],children:[{path:"",component:W.P,data:{animation:"FacilitySelectPage"}}]},{path:":facilityId",component:Et,canActivateChild:[j.a],children:[{path:"",component:Ot,data:{animation:"FacilityOverviewPage"}},{path:"attributes",component:Bt,data:{animation:"FacilityAttributesPage"}},{path:"resources",component:Rt.f,data:{animation:"FacilityResourcesPage"}},{path:"allowed-users",component:aa._,data:{animation:"FacilityAllowedUsersPage"}},{path:"allowed-groups",component:Ft.o,data:{animation:"FacilityAllowedGroupsPage"}},{path:"services-status",component:sa,data:{animation:"FacilityServiceStatusPage"}},{path:"services-status/:taskId",component:ka,data:{animation:"FacilityTaskResultsPage"}},{path:"service-config",component:ce,data:{animation:"FacilityServiceConfigPage"}},{path:"services-destinations",component:ot,data:{animation:"FacilityServicesDestinationsPage"}},{path:"hosts",component:ut,data:{animation:"FacilityHostsPage"}},{path:"hosts/:hostId",component:Mi,data:{animation:"FacilityHostsDetailPage"}},{path:"settings",component:wt,children:[{path:"",component:Mt,data:{animation:"FacilitySettingsOverviewPage"}},{path:"owners",component:lt,data:{animation:"FacilitySettingOwnersPage"}},{path:"managers",component:at,data:{animation:"FacilitySettingsManagersPage"}},{path:"security-teams",component:es,data:{animation:"FacilitySecurityTeamsPage"}},{path:"blacklist",component:Ri,data:{animation:"FacilitySettingsBlackListPage"}}]},{path:"configuration",component:Ln,canActivate:[_t],canDeactivate:[_t]}]},{path:":facilityId/resources/:resourceId",component:Nt.b,canActivateChild:[j.a],children:[{path:"",component:kt.H,data:{animation:"ResourceOverviewPage"}},{path:"attributes",component:zt.X,data:{animation:"ResourceAttributesPage"}},{path:"groups",component:Wt.K,data:{animation:"ResourceGroupsComponent"}},{path:"services",component:ss.D,data:{animation:"ResourceAssignedServicesComponent"}},{path:"members",component:na.y,data:{animation:"ResourceAssignedMembersComponent"}},{path:"tags",component:wa.v,data:{animation:"ResourceTagsComponent"}},{path:"settings",component:jt.t,children:[{path:"",component:$t.h,data:{animation:"ResourceSettingsOverviewPage"}},{path:"managers",component:is.O,data:{animation:"ResourceSettingsManagersPage"}}]}]}];let Rn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[y.Bz.forChild(On)],y.Bz]}),i})();var Fn=c(14264),Nn=c(63189),kn=c(46142),wn=c(61124);let Yn=(()=>{class i{}return i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({providers:[Q.dp],imports:[[_.ez,Rn,Fn.m,Nn.r,Fi.ez,Q.d4,kn.UsersModule,wn.AdminModule]]}),i})()}}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/assets/config/version.json b/dist/apps/admin-gui/assets/config/version.json index 7174192de..a22c22f36 100644 --- a/dist/apps/admin-gui/assets/config/version.json +++ b/dist/apps/admin-gui/assets/config/version.json @@ -1 +1 @@ -{"version":"8.1.1"} +{"version":"8.2.0"} diff --git a/dist/apps/admin-gui/assets/i18n/en.json b/dist/apps/admin-gui/assets/i18n/en.json index 87177c2b6..c981f1fad 100644 --- a/dist/apps/admin-gui/assets/i18n/en.json +++ b/dist/apps/admin-gui/assets/i18n/en.json @@ -1446,23 +1446,10 @@ "ENTITY": "Entity", "DEFINITION": "Definition", "VALUE_TYPE": "Value Type", - "UNIQUE": "Unique", - "READ": "Read", - "WRITE": "Write", - "SELF": "Self", - "SELF_PUBLIC": "Self Public", - "SELF_VO": "Self organization", - "VO": "Organization", - "GROUP": "Group", - "FACILITY": "Facility", "CANCEL": "Cancel", "CONFIRM": "Create", "SUCCESS": "Attribute Definition successfully created", - "ERROR_FIELD_EMPTY": "This field can't be empty", - "ERROR_SELECT_SOMETHING": "You have to select something", - "ERROR_FILL_REQUIRED": "Fill all required fields", - "TOOLTIP_UNIQUE": "Entityless Attributes or Attributes with definitions 'virt' CAN'T be UNIQUE", - "TOOLTIP_CONFIRM": "Fill every required field" + "ERROR_FIELD_EMPTY": "This field can't be empty" }, "DELETE_ATTRIBUTE_DEFINITION": { "TITLE": "Confirm delete action", @@ -1589,6 +1576,7 @@ "SUCCESS_REMOVED": "External sources were successfully removed" }, "EDIT_ATTRIBUTE_DEFINITION": { + "TITLE": "Edit attribute definition", "COPY_FOR_IMPORT": "Copy for import", "COPIED": "Data copied to clipboard.", "COPY": "Copy failed.", @@ -1596,21 +1584,10 @@ "DISPLAY_NAME": "Display name", "ERROR_FIELD_EMPTY": "This field can't be empty", "DESCRIPTION": "Description", - "UNIQUE": "Unique", - "TOOLTIP_UNIQUE": "Entityless Attributes or Attributes with definitions 'virt' CAN'T be UNIQUE", - "READ": "Read", - "WRITE": "Write", - "SELF": "Self", - "SELF_PUBLIC": "Self Public", - "SELF_VO": "Self organization", - "VO": "Organization", - "GROUP": "Group", - "FACILITY": "Facility", "CANCEL": "Cancel", "CONFIRM": "Submit", - "TOOLTIP_CONFIRM": "Fill every required field", "SHOW_KEYS": "Show keys", - "SERVICES": "Dependent services:" + "SERVICES": "Dependent services" }, "REMOVE_DESTINATIONS": { "TITLE": "Remove destination from service", @@ -2582,7 +2559,12 @@ "RESOURCESELFSERVICE": "Resource self service", "RESOURCESELFSERVICE_RESOURCES": "Resources you are manager of", "RESOURCEOBSERVER": "Resource observer", - "RESOURCEOBSERVER_RESOURCES": "Resources you are observer of" + "RESOURCEOBSERVER_RESOURCES": "Resources you are observer of", + "SECURITYADMIN": "Security admin", + "SERVICEUSER": "Service user", + "CABINETADMIN": "Cabinet admin", + "MEMBERSHIP": "Membership", + "AUDITCONSUMERADMIN": "Audit consumer admin" }, "SHARED_LIB": { "PERUN": { @@ -2915,6 +2897,19 @@ "ADVANCED_FILTER": { "FILTERS": "Filters", "CLEAR_FILTERS": "Clear filters" + }, + "ATTRIBUTE_RIGHTS": { + "READ": "Read", + "WRITE": "Write", + "ROLE": "Select role", + "ENTITY": "Connect entity", + "AND": "AND", + "OR": "OR", + "INFO": "Create collecions of multiple rules. Each rule must be fulfilled for the collection to be valid. User needs to suffice at least one collection to be eligible for given action." + }, + "ATTRIBUTE_UNIQUE_TOGGLE": { + "UNIQUE": "Unique", + "TOOLTIP": "Entityless, virtual or core attributes can NOT be UNIQUE" } }, "ORGANIZATIONS": { diff --git a/dist/apps/admin-gui/index.html b/dist/apps/admin-gui/index.html index c8723ae2e..45820d9a1 100644 --- a/dist/apps/admin-gui/index.html +++ b/dist/apps/admin-gui/index.html @@ -6,7 +6,7 @@ - + @@ -14,5 +14,5 @@
- + diff --git a/dist/apps/admin-gui/main.0d527d374c5da901.js b/dist/apps/admin-gui/main.0d527d374c5da901.js new file mode 100644 index 000000000..1563303d9 --- /dev/null +++ b/dist/apps/admin-gui/main.0d527d374c5da901.js @@ -0,0 +1 @@ +(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:(Qe,be,p)=>{"use strict";p.d(be,{g:()=>nt});var e=p(32105),b=p(10036),_=p(5e3),w=p(53251),g=p(69808),A=p(9244),E=p(42377),C=p(64901),R=p(47423),I=p(29772),m=p(25245),O=p(51062);function P(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"div",6),_.TgZ(1,"div",7),_.TgZ(2,"perun-web-apps-entity-search-select",8),_.NdJ("entitySelected",function(k){return _.CHM(Ce).$implicit[0]=k.namespace+":"+k.friendlyName}),_.ALo(3,"translate"),_.ALo(4,"translate"),_.ALo(5,"translate"),_.qZA(),_.qZA(),_.TgZ(6,"div",9),_.TgZ(7,"perun-web-apps-debounce-filter",10),_.NdJ("filter",function(k){return _.CHM(Ce).$implicit[1]=k}),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"button",12),_.NdJ("click",function(){const pe=_.CHM(Ce).$implicit;return _.oxw(2).removeOption(pe)}),_.ALo(10,"translate"),_.TgZ(11,"mat-icon"),_._uU(12,"clear"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&je){const Ce=_.oxw(2);_.xp6(2),_.Q6J("entities",Ce.availableAttrDefs)("searchFunction",Ce.nameFunction)("mainTextFunction",Ce.nameFunction)("secondaryTextFunction",Ce.secondaryTextFunction)("selectPlaceholder",_.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",_.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",_.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),_.xp6(5),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),_.xp6(2),_.s9C("matTooltip",_.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),_.Q6J("disabled",1===Ce.options.length)}}function W(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"div",1),_.YNc(1,P,13,18,"div",2),_.TgZ(2,"button",3),_.NdJ("click",function(){return _.CHM(Ce),_.oxw().addOption()}),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"span",4),_.ALo(6,"translate"),_.TgZ(7,"button",5),_.NdJ("click",function(){return _.CHM(Ce),_.oxw().searchEntities()}),_.TgZ(8,"mat-icon"),_._uU(9,"search"),_.qZA(),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.qZA(),_.qZA()}if(2&je){const Ce=_.oxw();_.xp6(1),_.Q6J("ngForOf",Ce.options),_.xp6(2),_.hij(" ",_.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),_.Q6J("matTooltipDisabled",!Ce.emptySearchString()),_.xp6(2),_.Q6J("disabled",Ce.emptySearchString()),_.xp6(3),_.hij(" ",_.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let ie=(()=>{class je{constructor(){this.attributeSelected=new _.vpe,this.search=new _.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=Ce=>Ce.displayName,this.secondaryTextFunction=Ce=>"#"+String(Ce.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(Ce=>Ce.entity===this.attributesForEntity).sort(A.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(Ce){this.options=this.options.filter(re=>re!==Ce)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(Ce=>0===Ce[1].length)}searchEntities(){const Ce={};this.options.forEach(re=>{Ce[re[0]]=re[1]}),this.search.emit(Ce)}}return je.\u0275fac=function(Ce){return new(Ce||je)},je.\u0275cmp=_.Xpm({type:je,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[_.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(Ce,re){1&Ce&&_.YNc(0,W,12,12,"div",0),2&Ce&&_.Q6J("ngIf",void 0!==re.options)},directives:[g.O5,g.sg,E.i,C.P,R.lW,I.gM,m.Hw],pipes:[O.X$],styles:[""]}),je})();var Ae=p(64877),q=p(62707),Me=p(38383),he=p(74010),De=p(62109),T=p(20773);function N(je,Q){1&je&&(_._uU(0),_.ALo(1,"translate")),2&je&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function j(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(k){return _.CHM(Ce),_.oxw(2).searchEntities(k,"user")}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("attributes",Ce.allAttrDefinitions)("attributesForEntity","user")}}const Y=function(){return["user","id","name"]};function ee(je,Q){if(1&je&&_._UZ(0,"app-users-list",9),2&je){const Ce=_.oxw(2);_.Q6J("tableId",Ce.tableId)("displayedColumns",_.DdM(3,Y))("users",Ce.entities)}}function de(je,Q){if(1&je&&(_.YNc(0,j,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,ee,1,4,"app-users-list",7)),2&je){const Ce=_.oxw();_.Q6J("ngIf",!Ce.loading),_.xp6(1),_.Q6J("ngIf",!Ce.loadingEntityData)}}function ce(je,Q){1&je&&(_._uU(0),_.ALo(1,"translate")),2&je&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Fe(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-vo-search-select",13),_.NdJ("voSelected",function(k){return _.CHM(Ce),_.oxw(2).voSelected(k)}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("vos",Ce.vos)}}function Ue(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(k){return _.CHM(Ce),_.oxw(2).searchEntities(k,"member")}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("attributes",Ce.allAttrDefinitions)("attributesForEntity","user")}}const Xe=function(){return["id","voId","userId","status"]};function te(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-members-list",14),_.NdJ("updateTable",function(){_.CHM(Ce);const k=_.oxw(2);return k.searchEntities(k.searchInput,"member")}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("tableId",Ce.tableId)("displayedColumns",_.DdM(4,Xe))("disableExpirationChange",!0)("members",Ce.entities)}}function Ve(je,Q){if(1&je&&(_.TgZ(0,"div",10),_.YNc(1,Fe,1,1,"perun-web-apps-vo-search-select",11),_.qZA(),_.YNc(2,Ue,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(3,te,1,5,"perun-web-apps-members-list",12)),2&je){const Ce=_.oxw();_.xp6(1),_.Q6J("ngIf",Ce.vos.length>0),_.xp6(1),_.Q6J("ngIf",!Ce.loading),_.xp6(1),_.Q6J("ngIf",!Ce.loadingEntityData)}}function ve(je,Q){1&je&&(_._uU(0),_.ALo(1,"translate")),2&je&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function Oe(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(k){return _.CHM(Ce),_.oxw(2).searchEntities(k,"facility")}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("attributes",Ce.allAttrDefinitions)("attributesForEntity","facility")}}const z=function(){return["id","name","description"]};function D(je,Q){if(1&je&&_._UZ(0,"perun-web-apps-facilities-list",16),2&je){const Ce=_.oxw(2);_.Q6J("tableId",Ce.tableId)("displayedColumns",_.DdM(3,z))("facilities",Ce.entities)}}function ge(je,Q){if(1&je&&(_.YNc(0,Oe,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,D,1,4,"perun-web-apps-facilities-list",15)),2&je){const Ce=_.oxw();_.Q6J("ngIf",!Ce.loading),_.xp6(1),_.Q6J("ngIf",!Ce.loadingEntityData)}}function Te(je,Q){1&je&&(_._uU(0),_.ALo(1,"translate")),2&je&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Ie(je,Q){if(1&je){const Ce=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(k){return _.CHM(Ce),_.oxw(2).searchEntities(k,"resource")}),_.qZA()}if(2&je){const Ce=_.oxw(2);_.Q6J("attributes",Ce.allAttrDefinitions)("attributesForEntity","resource")}}const fe=function(){return["id","name","description","voId","facilityId"]};function Se(je,Q){if(1&je&&_._UZ(0,"perun-web-apps-resources-list",18),2&je){const Ce=_.oxw(2);_.Q6J("tableId",Ce.tableId)("displayedColumns",_.DdM(3,fe))("resources",Ce.entities)}}function Ke(je,Q){if(1&je&&(_.YNc(0,Ie,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,Se,1,4,"perun-web-apps-resources-list",17)),2&je){const Ce=_.oxw();_.Q6J("ngIf",!Ce.loading),_.xp6(1),_.Q6J("ngIf",!Ce.loadingEntityData)}}function Je(je,Q){1&je&&_._UZ(0,"mat-spinner",19)}let nt=(()=>{class je{constructor(Ce,re,k){this.attributesManager=Ce,this.searcher=re,this.voService=k,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=b.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Ce=>{this.allAttrDefinitions=Ce,this.loading=!1})}tabChanged(Ce){switch(this.entities=[],Ce){case 0:this.tableId=b.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=b.FF;break;case 2:this.tableId=b.$I;break;case 3:this.tableId=b.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(Ce=>{this.vos=Ce,this.selectedVo=Ce[0],this.loadingEntityData=!1})}voSelected(Ce){void 0!==Ce&&(this.selectedVo=Ce)}searchEntities(Ce,re){switch(this.searchInput=Ce,this.loadingEntityData=!0,re){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(Ce=>{this.entities=Ce,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(Ce=>{this.entities=Ce,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(Ce=>{this.entities=Ce.map(re=>({facility:re})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(Ce=>{this.entities=Ce,this.loadingEntityData=!1})}}return je.id="AdminSearcherComponent",je.\u0275fac=function(Ce){return new(Ce||je)(_.Y36(e.H8),_.Y36(e.t7),_.Y36(e.YF))},je.\u0275cmp=_.Xpm({type:je,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(Ce,re){2&Ce&&_.ekj("router-component",re.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(Ce,re){1&Ce&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"mat-tab-group",1),_.NdJ("selectedIndexChange",function(pe){return re.tabChanged(pe)}),_.TgZ(4,"mat-tab",2),_.YNc(5,N,2,3,"ng-template",3),_.YNc(6,de,2,2,"ng-template",4),_.qZA(),_.TgZ(7,"mat-tab"),_.YNc(8,ce,2,3,"ng-template",3),_.YNc(9,Ve,4,3,"ng-template",4),_.qZA(),_.TgZ(10,"mat-tab"),_.YNc(11,ve,2,3,"ng-template",3),_.YNc(12,ge,2,2,"ng-template",4),_.qZA(),_.TgZ(13,"mat-tab"),_.YNc(14,Te,2,3,"ng-template",3),_.YNc(15,Ke,2,2,"ng-template",4),_.qZA(),_.qZA(),_.YNc(16,Je,1,0,"mat-spinner",5)),2&Ce&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),_.xp6(15),_.Q6J("ngIf",re.loading||re.loadingEntityData))},directives:[w.SP,w.uX,w.uD,w.Vc,g.O5,ie,Ae.C,q.M,Me.O,he.X,De.C,T.$g],pipes:[O.X$],styles:[""]}),je})()},80774:(Qe,be,p)=>{"use strict";p.d(be,{F:()=>T});var e=p(20449),b=p(32105),_=p(10036),w=p(9244),g=p(40009),A=p(90719),E=p(32080),C=p(5e3),R=p(48966),I=p(96214),m=p(69808),O=p(47423),P=p(7434),W=p(20773),ie=p(60205),Ae=p(51062);function q(N,j){if(1&N){const Y=C.EpF();C.TgZ(0,"button",7),C.NdJ("click",function(){return C.CHM(Y),C.oxw().createService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&N&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Me(N,j){if(1&N){const Y=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(Y),C.oxw().deleteService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&N){const Y=C.oxw();C.Q6J("disabled",0===Y.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function he(N,j){1&N&&C._UZ(0,"mat-spinner",9)}function De(N,j){if(1&N&&C._UZ(0,"app-services-list",10),2&N){const Y=C.oxw();C.Q6J("filterValue",Y.filterValue)("selection",Y.selection)("services",Y.services)("tableId",Y.tableId)}}let T=(()=>{class N{constructor(Y,ee,de){this.serviceManager=Y,this.dialog=ee,this.authResolver=de,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=_.NL}ngOnInit(){this.serviceManager.getServices().subscribe(Y=>{this.services=Y,this.refreshTable()})}createService(){const Y=(0,w.kZ)();Y.width="600px",Y.data={theme:"admin-theme"},this.dialog.open(g.R,Y).afterClosed().subscribe(de=>{de&&this.refreshTable()})}deleteService(){const Y=(0,w.kZ)();Y.width="600px",Y.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(A.m,Y).afterClosed().subscribe(de=>{de&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(Y=>{this.services=Y,this.selection.clear(),this.loading=!1})}applyFilter(Y){this.filterValue=Y}}return N.id="AdminServicesComponent",N.\u0275fac=function(Y){return new(Y||N)(C.Y36(b.KK),C.Y36(R.uw),C.Y36(E.x4))},N.\u0275cmp=C.Xpm({type:N,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(Y,ee){1&Y&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return ee.refreshTable()}),C.qZA(),C.YNc(5,q,3,3,"button",2),C.YNc(6,Me,3,4,"button",3),C.TgZ(7,"perun-web-apps-immediate-filter",4),C.NdJ("filter",function(ce){return ee.applyFilter(ce)}),C.qZA(),C.YNc(8,he,1,0,"mat-spinner",5),C.YNc(9,De,1,4,"app-services-list",6),C.qZA()),2&Y&&(C.xp6(2),C.Oqu(C.lcZ(3,6,"ADMIN.SERVICES.TITLE")),C.xp6(3),C.Q6J("ngIf",ee.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("ngIf",ee.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("placeholder","ADMIN.SERVICES.FILTER"),C.xp6(1),C.Q6J("ngIf",ee.loading),C.xp6(1),C.Q6J("ngIf",!ee.loading))},directives:[I.t,m.O5,O.lW,P.L,W.$g,ie.Q],pipes:[Ae.X$],styles:[""]}),N})()},25828:(Qe,be,p)=>{"use strict";p.d(be,{t:()=>I});var e=p(10036),b=p(64080),_=p(32080),w=p(5e3),g=p(64901),A=p(77446),E=p(88561),C=p(51062);const R=function(){return["user","id","name","email","logins","organization"]};let I=(()=>{class m{constructor(P){this.storeService=P,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(P){this.searchString=P}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return m.id="AdminUsersComponent",m.\u0275fac=function(P){return new(P||m)(w.Y36(_.d6))},m.\u0275cmp=w.Xpm({type:m,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(P,W){2&P&&w.ekj("router-component",W.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(P,W){1&P&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(Ae){return W.onSearchByString(Ae)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return W.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&P&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",W.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",W.searchString)("attrNames",W.attributes)("displayedColumns",w.DdM(15,R))("tableId",W.tableId)("withoutVo",W.usersWithoutVo))},directives:[g.P,A.oG,E.M],pipes:[C.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),m})()},72077:(Qe,be,p)=>{"use strict";p.d(be,{y:()=>j});var e=p(32080),b=p(61715),_=p(40520),w=p(9244),g=p(5e3),A=p(48966),E=p(47423),C=p(51062);let R=(()=>{class Y{constructor(de){this.dialogRef=de}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return Y.\u0275fac=function(de){return new(de||Y)(g.Y36(A.so))},Y.\u0275cmp=g.Xpm({type:Y,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(de,ce){1&de&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"div",2),g.TgZ(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",3),g.TgZ(9,"button",4),g.NdJ("click",function(){return ce.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return ce.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&de&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[A.uh,A.xY,A.H8,E.lW],pipes:[C.X$],styles:[""]}),Y})();var I=p(11735),m=p(92198);let O=(()=>{class Y{constructor(de,ce){this.router=de,this.routeReuseStrategy=ce;const Fe=ce;de.events.subscribe(Ue=>{Ue instanceof I.OD&&Fe.setLastNavigationType("popstate"===Ue.navigationTrigger?"back":"direct")})}init(){}}return Y.\u0275fac=function(de){return new(de||Y)(g.LFG(I.F0),g.LFG(I.wN))},Y.\u0275prov=g.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"}),Y})();const P=["footer"];function W(Y,ee){if(1&Y&&(g.TgZ(0,"div",3),g.TgZ(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&Y){const de=g.oxw();g.xp6(3),g.hij(" ",de.warningMessage,"\n")}}const ie=function(Y,ee){return{top:Y,background:ee}},Ae=function(Y,ee){return{"margin-top":Y,"min-height":ee}},q=function(Y){return{"border-color":Y}},Me=function(Y){return{background:Y}},he=function(Y){return{"background-color":Y}},De=function(Y){return{"min-height":Y}};function T(Y,ee){if(1&Y&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5),g.TgZ(2,"mat-sidenav",6,7),g.TgZ(4,"perfect-scrollbar",8),g._UZ(5,"app-side-menu",9),g.qZA(),g.qZA(),g.TgZ(6,"mat-sidenav-content",10),g.TgZ(7,"div",11),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,12),g._UZ(11,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&Y){const de=g.MAs(3),ce=g.oxw();g.Q6J("principal",ce.principal)("ngStyle",g.WLB(14,ie,ce.getNavMenuTop(),ce.navBackgroundColor))("sideNav",de),g.xp6(1),g.Q6J("ngStyle",g.WLB(17,Ae,ce.getSideNavMarginTop(),ce.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",ce.sidebarMode)("fixedTopGap",ce.getTopGap())("ngStyle",g.VKq(20,q,ce.sideBarBorderColor))("opened",!ce.isMobile()),g.xp6(2),g.Q6J("ngStyle",g.VKq(22,Me,ce.sideMenubackgroundColor))("scrollIndicators",!0),g.xp6(1),g.Q6J("sideNav",de),g.xp6(1),g.Q6J("ngStyle",g.VKq(24,he,ce.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(26,De,ce.contentInnerMinHeight))}}function N(Y,ee){1&Y&&g._UZ(0,"perun-web-apps-login-screen-base",13),2&Y&&g.Q6J("application","admin-gui")}let j=(()=>{class Y{constructor(de,ce,Fe,Ue,Xe,te,Ve){this.cache=de,this.store=ce,this.http=Fe,this.dialog=Ue,this.router=Xe,this.initAuth=te,this.cd=Ve,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=Y.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,b.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,m.h)(de=>de instanceof I.OD)).subscribe(de=>{this.updateInitAccessedPage(de)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){var de,ce,Fe,Ue;const Xe=null!==(Ue=null===(Fe=null===(ce=null===(de=this.footer)||void 0===de?void 0:de.nativeElement)||void 0===ce?void 0:ce.offsetHeight)||void 0===Fe?void 0:Fe.toString())&&void 0!==Ue?Ue:"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+Xe+"px - 112px)":"calc(100vh - "+Xe+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(de){de.url===sessionStorage.getItem("initPage")?("imperative"===de.navigationTrigger&&de.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===de.navigationTrigger&&(de.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(de.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const de=new _.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:de}).subscribe(ce=>{const Fe=ce.version;if(Fe)if(this.version&&"SNAPSHOT"!==Fe&&this.version!==Fe){const Ue=(0,w.kZ)();this.dialog.open(R,Ue)}else this.version=Fe})}}return Y.minWidth=992,Y.\u0275fac=function(de){return new(de||Y)(g.Y36(O),g.Y36(e.d6),g.Y36(_.eN),g.Y36(A.uw),g.Y36(I.F0),g.Y36(e.v0),g.Y36(g.sBO))},Y.\u0275cmp=g.Xpm({type:Y,selectors:[["app-root"]],viewQuery:function(de,ce){if(1&de&&g.Gf(P,5),2&de){let Fe;g.iGM(Fe=g.CRH())&&(ce.footer=Fe.first)}},hostBindings:function(de,ce){1&de&&g.NdJ("resize",function(Ue){return ce.getScreenSize(Ue)},!1,g.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(de,ce){1&de&&(g.YNc(0,W,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,T,12,28,"ng-template",2),g.YNc(3,N,1,1,"ng-template",2)),2&de&&(g.Q6J("ngIf",ce.displayWarning),g.xp6(1),g.Q6J("displayWarning",ce.displayWarning),g.xp6(1),g.Q6J("ngIf",!ce.isLoginScreenShow&&!ce.isServiceAccess&&!ce.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",ce.isLoginScreenShow||ce.isServiceAccess||ce.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}"]}),Y})()},77968:(Qe,be,p)=>{"use strict";p.d(be,{D:()=>b});var e=p(5e3);let b=(()=>{class _{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},37380:(Qe,be,p)=>{"use strict";p.d(be,{o:()=>Me});var e=p(32105),b=p(10036),_=p(32080),w=p(5e3),g=p(96214),A=p(67322),E=p(74107),C=p(90508),R=p(69808),I=p(7434),m=p(20773),O=p(24179),P=p(51062);function W(he,De){if(1&he&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&he){const T=De.$implicit;w.Q6J("value",T.id),w.xp6(1),w.hij(" ",T.name," ")}}function ie(he,De){1&he&&w._UZ(0,"mat-spinner",10)}const Ae=function(){return["id","vo","name","description"]};function q(he,De){if(1&he&&w._UZ(0,"perun-web-apps-groups-list",11),2&he){const T=w.oxw();w.Q6J("displayedColumns",w.DdM(6,Ae))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Me=(()=>{class he{constructor(T,N,j){this.facilityManager=T,this.authResolver=N,this.entityStorageService=j,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=b.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(T=>{this.vos=T,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(T=>T.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(T=>{this.facilityManager.getAllowedGroups(this.facility.id,T.id).subscribe(N=>{this.groups=this.groups.concat(N),this.groupsToShow=this.groups,this.setAuthRights(T,N),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T,N){N.forEach(j=>{this.authResolver.isAuthorized("getGroupById_int_policy",[T,j])||this.groupsWithoutRouteAuth.add(j.id)})}applyFilter(T){this.filterValue=T}}return he.id="FacilityAllowedGroupsComponent",he.\u0275fac=function(T){return new(T||he)(w.Y36(e.IQ),w.Y36(_.x4),w.Y36(_.fb))},he.\u0275cmp=w.Xpm({type:he,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,N){2&T&&w.ekj("router-component",N.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(T,N){1&T&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return N.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return N.showGroup()})("valueChange",function(Y){return N.selected=Y}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,W,2,2,"mat-option",5),w.qZA(),w.qZA(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(Y){return N.applyFilter(Y)}),w.qZA(),w.YNc(15,ie,1,0,"mat-spinner",7),w.YNc(16,q,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&T&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",N.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",N.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",N.loading),w.xp6(1),w.Q6J("ngIf",!N.loading))},directives:[g.t,A.KE,A.hX,E.gD,C.ey,R.sg,I.L,R.O5,m.$g,O.W],pipes:[P.X$],styles:[""]}),he})()},25610:(Qe,be,p)=>{"use strict";p.d(be,{_:()=>Y});var e=p(10036),b=p(32105),_=p(32080),w=p(64080),g=p(5e3),A=p(96214),E=p(64901),C=p(47423),R=p(25245),I=p(51062);let m=(()=>{class ee{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(ce,Fe){1&ce&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Fe.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA(),g.qZA(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Fe.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&ce&&(g.Gre("mr-2 ",Fe.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Fe.filtersCount?"("+Fe.filtersCount+")":null," "),g.xp6(3),g.Oqu(Fe.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[C.lW,R.Hw],pipes:[I.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),ee})();var O=p(69808),P=p(32368),W=p(93075),ie=p(62707),Ae=p(45703),q=p(30540),Me=p(20773),he=p(88561);function De(ee,de){if(1&ee){const ce=g.EpF();g.TgZ(0,"div",8),g.TgZ(1,"div",9),g.TgZ(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Ue){return g.CHM(ce),g.oxw().allowed=Ue})("change",function(){return g.CHM(ce),g.oxw().changeFilter()}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",1),g.TgZ(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Ue){return g.CHM(ce),g.oxw().voSelected(Ue)}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Ue){return g.CHM(ce),g.oxw().resourceSelected(Ue)}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Ue){return g.CHM(ce),g.oxw().serviceSelected(Ue)}),g.qZA(),g.qZA(),g.qZA()}if(2&ee){const ce=g.oxw();g.xp6(2),g.Q6J("ngModel",ce.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,ce.toggle_messages[ce.allowed?1:0])),g.xp6(3),g.Q6J("vos",ce.vos)("vo",ce.selectedVo),g.xp6(1),g.Q6J("resources",ce.filteredResources)("displayStatus",!1)("resource",ce.selectedResource),g.xp6(1),g.Q6J("services",ce.filteredServices)("service",ce.selectedService)}}function T(ee,de){1&ee&&g._UZ(0,"mat-spinner",15)}const N=function(){return["id","name","email","logins","organization"]};function j(ee,de){if(1&ee&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&ee){const ce=g.oxw();g.Q6J("attrNames",ce.attributes)("disableRouting",!ce.routeAuth)("displayedColumns",g.DdM(10,N))("onlyAllowed",ce.allowed)("facilityId",ce.facility.id)("searchString",ce.filterValue)("resourceId",-1===ce.selectedResource.id?null:ce.selectedResource.id)("serviceId",-1===ce.selectedService.id?null:ce.selectedService.id)("tableId",ce.tableId)("voId",-1===ce.selectedVo.id?null:ce.selectedVo.id)}}let Y=(()=>{class ee{constructor(ce,Fe,Ue,Xe,te,Ve){this.facilityService=ce,this.serviceService=Fe,this.resourceService=Ue,this.authResolver=Xe,this.storeService=te,this.entityStorageService=Ve,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(ce=>{this.resources=[this.emptyResource].concat(ce),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Fe=>{this.vos=[this.emptyVo].concat(Fe),this.serviceService.getAssignedServices(this.facility.id).subscribe(Ue=>{this.services=[this.emptyService].concat(Ue),this.filteredServices=this.services,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(ce){this.filterValue=ce}voSelected(ce){this.selectedVo.id!==ce.id&&(this.selectedVo=ce,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===ce.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Fe=>Fe.voId===ce.id),this.serviceService.getAssignedServicesVo(this.facility.id,ce.id).subscribe(Fe=>{this.filteredServices=[this.emptyService].concat(Fe),this.loading=!1},()=>this.loading=!1),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(ce){this.selectedResource.id!==ce.id&&(this.selectedResource=ce,this.selectedService=this.emptyService,-1===ce.id?this.filteredServices=this.services:this.resourceService.getAssignedServicesToResource(ce.id).subscribe(Fe=>{this.filteredServices=[this.emptyService].concat(Fe),this.loading=!1},()=>this.loading=!1),this.changeFilter())}serviceSelected(ce){this.selectedService=ce,this.changeFilter()}}return ee.id="FacilityAllowedUsersComponent",ee.\u0275fac=function(ce){return new(ce||ee)(g.Y36(b.IQ),g.Y36(b.KK),g.Y36(b.xk),g.Y36(_.x4),g.Y36(_.d6),g.Y36(_.fb))},ee.\u0275cmp=g.Xpm({type:ee,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(ce,Fe){1&ce&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Fe.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(Xe){return Fe.applyFilter(Xe)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(Xe){return Fe.advancedFilter=Xe})("clearFilters",function(){return Fe.clearFilters()}),g.qZA(),g.qZA(),g.YNc(8,De,12,14,"div",5),g.YNc(9,T,1,0,"mat-spinner",6),g.YNc(10,j,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&ce&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Fe.advancedFilter)("filtersCount",Fe.filtersCount),g.xp6(1),g.Q6J("ngIf",Fe.advancedFilter),g.xp6(1),g.Q6J("ngIf",Fe.loading),g.xp6(1),g.Q6J("ngIf",!Fe.loading))},directives:[A.t,E.P,m,O.O5,P.Rr,W.JJ,W.On,ie.M,Ae.L,q.J,Me.$g,he.M],pipes:[I.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),ee})()},34904:(Qe,be,p)=>{"use strict";p.d(be,{f:()=>Fe});var e=p(20449),b=p(533),_=p(32105),w=p(93075),g=p(48966),A=p(32080),E=p(5e3),C=p(51062),R=p(69808),I=p(20773),m=p(62707),O=p(67322),P=p(98833),W=p(47423);function ie(Ue,Xe){1&Ue&&E._UZ(0,"mat-spinner",5)}function Ae(Ue,Xe){if(1&Ue){const te=E.EpF();E.TgZ(0,"div",6),E.TgZ(1,"perun-web-apps-vo-search-select",7),E.NdJ("voSelected",function(ve){return E.CHM(te),E.oxw().selectedVo=ve}),E.qZA(),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",8),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.qZA(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",9),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.qZA(),E.qZA()}if(2&Ue){const te=E.oxw();E.xp6(1),E.Q6J("vos",te.vos),E.xp6(2),E.s9C("placeholder",E.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),E.Q6J("formControl",te.nameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),E.Q6J("formControl",te.descriptionCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let q=(()=>{class Ue{constructor(te,Ve,ve,Oe,z,D){this.dialogRef=te,this.data=Ve,this.notificator=ve,this.voService=Oe,this.translate=z,this.resourcesManager=D,this.vos=[],this.selectedVo=null,z.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(ge=>this.successMessage=ge)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(te=>{this.vos=te,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.NI(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.NI("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Ue.\u0275fac=function(te){return new(te||Ue)(E.Y36(g.so),E.Y36(g.WI),E.Y36(A.V6),E.Y36(_.YF),E.Y36(C.sK),E.Y36(_.xk))},Ue.\u0275cmp=E.Xpm({type:Ue,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(te,Ve){1&te&&(E.TgZ(0,"div"),E.YNc(1,ie,1,0,"mat-spinner",0),E.YNc(2,Ae,14,15,"div",1),E.TgZ(3,"div",2),E.TgZ(4,"button",3),E.NdJ("click",function(){return Ve.onCancel()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return Ve.onSubmit()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.qZA(),E.qZA()),2&te&&(E.Tol(Ve.theme),E.xp6(1),E.Q6J("ngIf",Ve.loading),E.xp6(1),E.Q6J("ngIf",!Ve.loading),E.xp6(3),E.hij(" ",E.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),E.xp6(2),E.Q6J("disabled",Ve.nameCtrl.invalid||Ve.descriptionCtrl.invalid||null===Ve.selectedVo||Ve.loading),E.xp6(1),E.hij(" ",E.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},directives:[R.O5,I.$g,g.xY,m.M,O.KE,P.Nt,w.Fj,w.Q7,w.JJ,w.oH,O.TO,g.H8,W.lW],pipes:[C.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Ue})();var Me=p(10036),he=p(9244),De=p(96214),T=p(30540),N=p(7434),j=p(62109);function Y(Ue,Xe){if(1&Ue){const te=E.EpF();E.TgZ(0,"button",9),E.NdJ("click",function(){return E.CHM(te),E.oxw().createResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Ue&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function ee(Ue,Xe){if(1&Ue){const te=E.EpF();E.TgZ(0,"button",10),E.NdJ("click",function(){return E.CHM(te),E.oxw().removeResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Ue){const te=E.oxw();E.Q6J("disabled",0===te.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function de(Ue,Xe){1&Ue&&E._UZ(0,"mat-spinner",11)}function ce(Ue,Xe){if(1&Ue&&E._UZ(0,"perun-web-apps-resources-list",12),2&Ue){const te=E.oxw();E.Q6J("tableId",te.tableId)("filterValue",te.filterValue)("resources",te.resources)("selection",te.selected)("disableRouting",!te.routeAuth)("displayedColumns",te.displayedColumns)}}let Fe=(()=>{class Ue{constructor(te,Ve,ve,Oe,z){this.dialog=te,this.facilitiesManager=Ve,this.servicesManager=ve,this.authResolver=Oe,this.entityStorageService=z,this.resources=[],this.selected=new e.Ov(!0,[]),this.emptyService={id:-1,beanName:"Service",name:"All"},this.services=[this.emptyService],this.selectedService=this.emptyService,this.filterValue="",this.tableId=Me.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.servicesManager.getAssignedServices(this.facility.id).subscribe(te=>{this.services=[this.emptyService].concat(te)}),this.refreshTable()}removeResource(){const te=(0,he.kZ)();te.width="450px",te.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(b.f,te).afterClosed().subscribe(ve=>{ve&&this.refreshTable()})}refreshTable(){this.loading=!0,-1===this.selectedService.id?this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(te=>{this.resources=te,this.selected.clear(),this.setAuthRights(),this.loading=!1}):this.facilitiesManager.getAssignedRichResourcesForFacilityAndService(this.facility.id,this.selectedService.id).subscribe(te=>{this.resources=te,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(te){this.filterValue=te}createResource(){const te=(0,he.kZ)();te.width="1350px",te.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(q,te).afterClosed().subscribe(ve=>{ve&&this.refreshTable()})}serviceSelected(te){this.selectedService=te,this.refreshTable()}}return Ue.id="FacilityResourcesComponent",Ue.\u0275fac=function(te){return new(te||Ue)(E.Y36(g.uw),E.Y36(_.IQ),E.Y36(_.KK),E.Y36(A.x4),E.Y36(A.fb))},Ue.\u0275cmp=E.Xpm({type:Ue,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(te,Ve){2&te&&E.ekj("router-component",Ve.true)},decls:12,vars:10,consts:[[1,"page-subtitle"],[1,"align-elements"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[1,"search-select","mr-2",3,"services","service","serviceSelected"],[1,"filter-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(te,Ve){1&te&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",1),E.TgZ(5,"perun-web-apps-refresh-button",2),E.NdJ("refresh",function(){return Ve.refreshTable()}),E.qZA(),E.YNc(6,Y,3,3,"button",3),E.YNc(7,ee,3,4,"button",4),E.TgZ(8,"perun-web-apps-service-search-select",5),E.NdJ("serviceSelected",function(Oe){return Ve.serviceSelected(Oe)}),E.qZA(),E.TgZ(9,"perun-web-apps-immediate-filter",6),E.NdJ("filter",function(Oe){return Ve.applyFilter(Oe)}),E.qZA(),E.qZA(),E.YNc(10,de,1,0,"mat-spinner",7),E.YNc(11,ce,1,6,"perun-web-apps-resources-list",8),E.qZA()),2&te&&(E.xp6(2),E.Oqu(E.lcZ(3,8,"FACILITY_DETAIL.RESOURCES.TITLE")),E.xp6(4),E.Q6J("ngIf",Ve.addAuth),E.xp6(1),E.Q6J("ngIf",Ve.removeAuth),E.xp6(1),E.Q6J("services",Ve.services)("service",Ve.selectedService),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",Ve.loading),E.xp6(1),E.Q6J("ngIf",!Ve.loading))},directives:[De.t,R.O5,W.lW,T.J,N.L,I.$g,j.C],pipes:[C.X$],styles:[".search-select[_ngcontent-%COMP%]{min-width:325px}.filter-field[_ngcontent-%COMP%]{min-width:250px}.align-elements[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}"]}),Ue})()},86353:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>ve});var e=p(32105),b=p(9244),_=p(10036),w=p(20449),g=p(48966),A=p(32080),E=p(93075),C=p(5e3),R=p(51062),I=p(11735),m=p(69808),O=p(20773),P=p(67322),W=p(98833),ie=p(74107),Ae=p(90508),q=p(98380),Me=p(47423);function he(Oe,z){1&Oe&&C._UZ(0,"mat-spinner",7)}function De(Oe,z){if(1&Oe){const D=C.EpF();C.TgZ(0,"mat-option",16),C.NdJ("click",function(){const Ie=C.CHM(D).$implicit;return C.oxw(2).srcFacility=Ie}),C._uU(1),C.qZA()}if(2&Oe){const D=z.$implicit;C.Q6J("value",D),C.xp6(1),C.hij(" ",D.name," ")}}function T(Oe,z){if(1&Oe){const D=C.EpF();C.TgZ(0,"div",8),C.TgZ(1,"mat-form-field"),C._UZ(2,"input",9),C.ALo(3,"translate"),C.TgZ(4,"mat-error"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA(),C.TgZ(7,"mat-form-field"),C._UZ(8,"input",10),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-form-field"),C.TgZ(11,"mat-select",11),C.ALo(12,"translate"),C.TgZ(13,"mat-option",12),C.NdJ("click",function(){return C.CHM(D),C.oxw().srcFacility=null}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.YNc(16,De,2,2,"mat-option",13),C.qZA(),C.qZA(),C.TgZ(17,"perun-web-apps-alert",14),C._UZ(18,"i",15),C.ALo(19,"translate"),C.qZA(),C.qZA()}if(2&Oe){const D=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),C.Q6J("formControl",D.nameControl),C.xp6(3),C.Oqu(C.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),C.xp6(3),C.s9C("placeholder",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),C.Q6J("formControl",D.descControl),C.xp6(3),C.s9C("placeholder",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),C.xp6(3),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),C.xp6(2),C.Q6J("ngForOf",D.facilities),C.xp6(2),C.Q6J("innerHTML",C.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),C.oJD)}}let N=(()=>{class Oe{constructor(D,ge,Te,Ie,fe,Se,Ke){this.dialogRef=D,this.data=ge,this.facilitiesManager=Te,this.notificator=Ie,this.translate=fe,this.router=Se,this.entityStorageService=Ke,this.nameControl=new E.NI("",[E.kI.required]),this.descControl=new E.NI(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(D=>{this.facilities=D,this.loading=!1},()=>this.loading=!1)}onCreate(D){this.loading=!0,this.configure=D,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(ge=>{this.entityStorageService.setEntity({id:ge.id,beanName:ge.beanName}),sessionStorage.setItem("newFacilityId",String(ge.id)),null!==this.srcFacility?this.copyFacilitySettings(ge.id):this.handleSuccess(ge.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(D){this.facilitiesManager.copyAttributes(this.srcFacility.id,D).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,D).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,D).subscribe(()=>{this.handleSuccess(D)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(D){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",D.toString(),"configuration"]),this.dialogRef.close(!0)}}return Oe.\u0275fac=function(D){return new(D||Oe)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.IQ),C.Y36(A.V6),C.Y36(R.sK),C.Y36(I.F0),C.Y36(A.fb))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(D,ge){1&D&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,he,1,0,"mat-spinner",1),C.YNc(5,T,20,21,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return ge.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return ge.onCreate(!1)}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",6),C.NdJ("click",function(){return ge.onCreate(!0)}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.qZA(),C.qZA()),2&D&&(C.Tol(ge.theme),C.xp6(2),C.Oqu(C.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),C.xp6(2),C.Q6J("ngIf",ge.loading),C.xp6(1),C.Q6J("ngIf",!ge.loading),C.xp6(3),C.hij(" ",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===ge.nameControl.value.trim().length||ge.loading),C.xp6(1),C.hij(" ",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===ge.nameControl.value.trim().length||!!ge.srcFacility||ge.loading),C.xp6(1),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[m.O5,O.$g,g.xY,P.KE,W.Nt,E.Fj,E.Q7,E.JJ,E.oH,P.TO,ie.gD,Ae.ey,m.sg,q.w,g.H8,Me.lW],pipes:[R.X$],styles:[""]}),Oe})();var j=p(54037),Y=p(77968),ee=p(4235),de=p(25245),ce=p(96214),Fe=p(7434),Ue=p(74010);function Xe(Oe,z){1&Oe&&C._UZ(0,"mat-spinner",9)}function te(Oe,z){if(1&Oe&&C._UZ(0,"perun-web-apps-facilities-list",10),2&Oe){const D=C.oxw();C.Q6J("tableId",D.tableId)("selection",D.selection)("filterValue",D.filterValue)("facilities",D.facilities)("recentIds",D.recentIds)}}const Ve=function(){return{color:"black"}};let ve=(()=>{class Oe{constructor(D,ge,Te){this.facilityManager=D,this.sideMenuService=ge,this.dialog=Te,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=_.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(D=>{this.selection.clear(),this.facilities=D,this.recentIds=(0,b.vL)("facilities"),this.loading=!1})}onCreate(){const D=(0,b.kZ)();D.width="800px",D.data={theme:"facility-theme"},this.dialog.open(N,D).afterClosed().subscribe(Te=>{Te&&(this.loading=!0,this.refreshTable())})}onDelete(){const D=(0,b.kZ)();D.width="500px",D.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(j.Y,D).afterClosed().subscribe(Te=>{Te&&this.refreshTable()})}applyFilter(D){this.filterValue=D}}return Oe.id="FacilitySelectPageComponent",Oe.\u0275fac=function(D){return new(D||Oe)(C.Y36(e.IQ),C.Y36(Y.D),C.Y36(g.uw))},Oe.\u0275cmp=C.Xpm({type:Oe,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(D,ge){2&D&&C.ekj("router-component",ge.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(D,ge){1&D&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return ge.refreshTable()}),C.qZA(),C.TgZ(7,"button",4),C.NdJ("click",function(){return ge.onCreate()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return ge.onDelete()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Ie){return ge.applyFilter(Ie)}),C.qZA(),C.YNc(14,Xe,1,0,"mat-spinner",7),C.YNc(15,te,1,5,"perun-web-apps-facilities-list",8),C.qZA()),2&D&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(15,Ve)),C.xp6(1),C.hij(" ",C.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),C.xp6(4),C.hij(" ",C.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===ge.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),C.xp6(2),C.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",ge.loading),C.xp6(1),C.Q6J("ngIf",!ge.loading))},directives:[ee.W,de.Hw,m.PC,ce.t,Me.lW,Fe.L,m.O5,O.$g,Ue.X],pipes:[R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Oe})()},51076:(Qe,be,p)=>{"use strict";p.d(be,{J:()=>Me});var e=p(48966),b=p(32080),_=p(32105),w=p(9244),g=p(93075),A=p(5e3),E=p(51062),C=p(67322),R=p(98833),I=p(74107),m=p(69808),O=p(90508),P=p(47423),W=p(57706);let ie=(()=>{class he{constructor(T){this.translateService=T,this.returnData=""}transform(T){switch(T){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(N=>{this.returnData=N});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(N=>{this.returnData=N});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(N=>{this.returnData=N});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(N=>{this.returnData=N});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(N=>{this.returnData=N});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(N=>{this.returnData=N});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(N=>{this.returnData=N});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(N=>{this.returnData=N});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(N=>{this.returnData=N});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(N=>{this.returnData=N});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(N=>{this.returnData=N});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(N=>{this.returnData=N});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(N=>{this.returnData=N});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(N=>{this.returnData=N});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(N=>{this.returnData=N});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(N=>{this.returnData=N});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(N=>{this.returnData=N});break;default:return T}return this.returnData}}return he.\u0275fac=function(T){return new(T||he)(A.Y36(E.sK,16))},he.\u0275pipe=A.Yjl({name:"applicationFormWidgetDescription",type:he,pure:!0}),he})();function Ae(he,De){if(1&he&&(A.TgZ(0,"mat-option",9),A._uU(1),A.ALo(2,"applicationFormItemType"),A.qZA()),2&he){const T=De.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",A.lcZ(2,2,T)," ")}}function q(he,De){if(1&he&&(A.TgZ(0,"mat-option",9),A._uU(1),A.qZA()),2&he){const T=De.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",T," ")}}let Me=(()=>{class he{constructor(T,N,j,Y){this.dialogRef=T,this.data=N,this.translateService=j,this.store=Y,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(T=>{this.nameCtrl=new g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const N of this.data.applicationFormItems)this.items.push(N.shortname),N.type===_.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(j=>j!==_.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,w.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let N=0;N{"use strict";p.d(be,{W:()=>O});var e=p(48966),b=p(32105),_=p(32080),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(62707),R=p(82322),I=p(47423);function m(P,W){1&P&&w._UZ(0,"mat-spinner",9)}let O=(()=>{class P{constructor(ie,Ae,q,Me,he,De,T,N,j){this.dialogRef=ie,this.voService=Ae,this.groupService=q,this.translateService=Me,this.registrarManager=he,this.notificatorService=De,this.apiRequest=T,this.cd=N,this.data=j,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=Y=>Y.name,Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(Y=>this.successMessage=Y),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(Y=>this.privilegeMessage=Y),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(Y=>this.noFormMessage=Y)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(ie=>{this.vos=ie,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ie=>{const Ae=ie.error;"FormNotExistsException"===Ae.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===Ae.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ie=>{const Ae=ie.error;"FormNotExistsException"===Ae.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===Ae.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ie=>{const Ae=ie.error;"FormNotExistsException"===Ae.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===Ae.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ie=>{const Ae=ie.error;"FormNotExistsException"===Ae.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===Ae.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ie){this.selectedVo=ie,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ie=>{this.groups=ie}):this.groups=[],this.selectedGroup=null}}return P.\u0275fac=function(ie){return new(ie||P)(w.Y36(e.so),w.Y36(b.YF),w.Y36(b.ff),w.Y36(g.sK),w.Y36(b.tk),w.Y36(_.V6),w.Y36(_.F5),w.Y36(w.sBO),w.Y36(e.WI))},P.\u0275cmp=w.Xpm({type:P,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(ie,Ae){1&ie&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,m,1,0,"mat-spinner",1),w.TgZ(5,"div",2),w.TgZ(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(Me){return Ae.voSelected(Me)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(Me){return Ae.selectedGroup=Me}),w.qZA(),w.qZA(),w.TgZ(15,"div",6),w.TgZ(16,"button",7),w.NdJ("click",function(){return Ae.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return Ae.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA(),w.qZA(),w.qZA()),2&ie&&(w.Tol(Ae.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",Ae.loading),w.xp6(1),w.Q6J("hidden",Ae.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",Ae.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",Ae.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!Ae.selectedVo&&!Ae.selectedGroup||Ae.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.M,R.h,e.H8,I.lW],pipes:[g.X$],styles:[""]}),P})()},40009:(Qe,be,p)=>{"use strict";p.d(be,{R:()=>Ae});var e=p(48966),b=p(32080),_=p(93075),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),R=p(67322),I=p(98833),m=p(77446),O=p(47423);function P(q,Me){1&q&&g._UZ(0,"mat-spinner",4)}function W(q,Me){if(1&q){const he=g.EpF();g.TgZ(0,"div",5),g.TgZ(1,"mat-form-field"),g.TgZ(2,"input",6),g.NdJ("change",function(){return g.CHM(he),g.oxw().makePath()}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA(),g.TgZ(7,"mat-form-field"),g.TgZ(8,"input",7),g.NdJ("ngModelChange",function(T){return g.CHM(he),g.oxw().description=T}),g.ALo(9,"translate"),g.qZA(),g.qZA(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.qZA(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA(),g.qZA(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(he),g.oxw().status=T}),g._uU(32),g.ALo(33,"translate"),g.qZA(),g.qZA(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(he),g.oxw().propagateExpiredMembers=T}),g._uU(38),g.ALo(39,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&q){const he=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",he.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",he.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",he.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",he.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",he.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",he.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",he.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ie(q,Me){if(1&q){const he=g.EpF();g.TgZ(0,"div",12),g.TgZ(1,"button",13),g.NdJ("click",function(){return g.CHM(he),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(he);const T=g.oxw();return T.asEdit?T.onEdit():T.onCreate()}),g._uU(5),g.qZA(),g.qZA()}if(2&q){const he=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",he.nameControl.invalid||he.delayControl.invalid||he.recurrenceControl.invalid||he.pathControl.invalid),g.xp6(1),g.hij(" ",he.buttonText," ")}}let Ae=(()=>{class q{constructor(he,De,T,N,j){this.dialogRef=he,this.data=De,this.serviceManager=T,this.notificator=N,this.translate=j,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new _.NI("",[_.kI.required,_.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new _.NI(10,[_.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new _.NI(2,[_.kI.pattern("^[0-9]*$")]),this.pathControl=new _.NI("",[_.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const he="./".concat(this.nameControl.value);this.pathControl.setValue(he)}}return q.\u0275fac=function(he){return new(he||q)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(b.V6),g.Y36(A.sK))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(he,De){1&he&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,P,1,0,"mat-spinner",1),g.YNc(4,W,40,46,"div",2),g.YNc(5,ie,6,5,"div",3),g.qZA()),2&he&&(g.Tol(De.theme),g.xp6(2),g.Oqu(De.title),g.xp6(1),g.Q6J("ngIf",De.loading),g.xp6(1),g.Q6J("ngIf",!De.loading),g.xp6(1),g.Q6J("ngIf",!De.loading))},directives:[e.uh,E.O5,C.$g,e.xY,R.KE,I.Nt,_.Fj,_.Q7,_.JJ,_.oH,R.TO,_.On,m.oG,e.H8,O.lW],pipes:[A.X$],styles:[""]}),q})()},81889:(Qe,be,p)=>{"use strict";p.d(be,{y:()=>Me});var e=p(48966),b=p(32080),_=p(32105),w=p(93075),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),R=p(67322),I=p(98833),m=p(77446),O=p(82322),P=p(47423);function W(he,De){1&he&&g._UZ(0,"mat-spinner",3)}function ie(he,De){if(1&he){const T=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(j){return g.CHM(T),g.oxw(2).asSubgroup=j})("click",function(){return g.CHM(T),g.oxw(2).loadVoGroups()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&he){const T=g.oxw(2);g.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function Ae(he,De){if(1&he){const T=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(j){return g.CHM(T),g.oxw(2).selectedParent=j}),g.qZA()}if(2&he){const T=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function q(he,De){if(1&he){const T=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"div",4),g.TgZ(2,"mat-form-field"),g.TgZ(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.qZA(),g.TgZ(9,"mat-form-field",7),g.TgZ(10,"label",5),g.TgZ(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA(),g.qZA(),g.qZA(),g.YNc(14,ie,3,5,"mat-checkbox",9),g.YNc(15,Ae,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11),g.TgZ(17,"button",12),g.NdJ("click",function(){return g.CHM(T),g.oxw().onCancel()}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){return g.CHM(T),g.oxw().onSubmit()}),g._uU(21),g.ALo(22,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&he){const T=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",T.nameControl),g.xp6(3),g.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",T.descriptionControl),g.xp6(3),g.Q6J("ngIf",T.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",T.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Me=(()=>{class he{constructor(T,N,j,Y,ee,de){this.dialogRef=T,this.data=N,this.groupService=j,this.translate=Y,this.notificator=ee,this.store=de,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=ce=>ce.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?Y.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(ce=>this.title=ce):Y.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(ce=>{this.title=ce+this.data.parentGroup.name}),Y.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(ce=>this.successMessage=ce),Y.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(ce=>this.successSubGroupMessage=ce)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.NI("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.NI(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(T=>{this.voGroups=T.filter(N=>"members"!==N.name)})}}return he.\u0275fac=function(T){return new(T||he)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.ff),g.Y36(A.sK),g.Y36(b.V6),g.Y36(b.d6))},he.\u0275cmp=g.Xpm({type:he,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(T,N){1&T&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,W,1,0,"mat-spinner",1),g.YNc(4,q,23,20,"div",2),g.qZA()),2&T&&(g.xp6(1),g.Oqu(N.title),g.xp6(1),g.Tol(N.theme),g.xp6(1),g.Q6J("ngIf",N.loading),g.xp6(1),g.Q6J("ngIf",!N.loading))},directives:[e.uh,E.O5,C.$g,e.xY,R.KE,I.Nt,w.Fj,w.Q7,w.JJ,w.oH,R.TO,m.oG,w.On,O.h,e.H8,P.lW],pipes:[A.X$],styles:[""]}),he})()},54037:(Qe,be,p)=>{"use strict";p.d(be,{Y:()=>C});var e=p(32105),b=p(48966),_=p(32080),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class R{constructor(m,O,P,W,ie){this.dialogRef=m,this.data=O,this.facilitiesManager=P,this.notificator=W,this.translate=ie,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new w.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(m){return new(m||R)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.IQ),g.Y36(_.V6),g.Y36(A.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,O){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(W){return O.onSubmit(W)}),g.qZA(),g.qZA()),2&m&&(g.Tol(O.theme),g.xp6(1),g.Q6J("entityNames",O.dataSource)("entityType","facilities")("loading",O.loading)("relations",O.relations))},directives:[E.e],styles:[""]}),R})()},41656:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>C});var e=p(48966),b=p(32075),_=p(32080),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class R{constructor(m,O,P,W,ie){this.dialogRef=m,this.data=O,this.notificator=P,this.translate=W,this.groupService=ie,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const m=this.data.groups.map(O=>O.id);this.groupService.deleteGroups({groups:m,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(O=>{this.notificator.showSuccess(O),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(m){return new(m||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.ff))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,O){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(W){return O.onSubmit(W)}),g.qZA(),g.qZA()),2&m&&(g.Tol(O.theme),g.xp6(1),g.Q6J("entityNames",O.dataSource)("entityType","groups")("loading",O.loading)("relations",O.relations))},directives:[E.e],styles:[""]}),R})()},90719:(Qe,be,p)=>{"use strict";p.d(be,{m:()=>C});var e=p(32105),b=p(48966),_=p(32080),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class R{constructor(m,O,P,W,ie){this.dialogRef=m,this.data=O,this.serviceManager=P,this.notificator=W,this.translate=ie,this.dataSource=new w.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return R.\u0275fac=function(m){return new(m||R)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.KK),g.Y36(_.V6),g.Y36(A.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(m,O){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(W){return O.onSubmit(W)}),g.qZA(),g.qZA()),2&m&&(g.Tol(O.theme),g.xp6(1),g.Q6J("entityNames",O.dataSource)("entityType","services")("anotherMessage",O.anotherMessage)("loading",O.loading)("relations",O.relations))},directives:[E.e],styles:[""]}),R})()},83491:(Qe,be,p)=>{"use strict";p.d(be,{_:()=>Z});var e=p(48966),b=p(32105),_=p(9244),w=p(387),g=p(32080),A=p(5e3),E=p(51062),C=p(69808),R=p(20773),I=p(53251);const m=["*"];let O=(()=>{class Ne{}return Ne.\u0275fac=function(_e){return new(_e||Ne)},Ne.\u0275cmp=A.Xpm({type:Ne,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:m,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(_e,$){1&_e&&(A.F$t(),A.TgZ(0,"div",0),A.TgZ(1,"span",1),A._uU(2),A.qZA(),A.TgZ(3,"div",2),A.Hsn(4),A.qZA(),A.qZA(),A.TgZ(5,"div",3),A._UZ(6,"span",4),A.TgZ(7,"div",5),A._uU(8),A.qZA(),A.qZA()),2&_e&&(A.xp6(2),A.hij("",$.label,":"),A.xp6(6),A.hij(" ",$.description," "))},styles:[""]}),Ne})();var P=p(67322),W=p(98833),ie=p(93075),Ae=p(77446),q=p(52170),Me=p(74107),he=p(90508),De=p(63312),T=p(74533),N=p(47423),j=p(29772),Y=p(25245),ee=p(57706);let de=(()=>{class Ne{constructor(_e){this.translateService=_e}transform(_e){switch(_e){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+_e);default:return _e}}}return Ne.\u0275fac=function(_e){return new(_e||Ne)(A.Y36(E.sK,16))},Ne.\u0275pipe=A.Yjl({name:"applicationFormItemDisabled",type:Ne,pure:!0}),Ne})(),ce=(()=>{class Ne{constructor(_e){this.translateService=_e}transform(_e){switch(_e){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+_e);default:return _e}}}return Ne.\u0275fac=function(_e){return new(_e||Ne)(A.Y36(E.sK,16))},Ne.\u0275pipe=A.Yjl({name:"applicationFormItemHidden",type:Ne,pure:!0}),Ne})();function Fe(Ne,oe){1&Ne&&A._UZ(0,"mat-spinner",8)}function Ue(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(V){return A.CHM(_e),A.oxw(3).applicationFormItem.updatable=V}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw(3);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),A.xp6(4),A.Q6J("ngModel",_e.applicationFormItem.updatable)}}function Xe(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"mat-form-field",13),A.TgZ(2,"input",14),A.NdJ("ngModelChange",function(V){return A.CHM(_e),A.oxw(3).applicationFormItem.federationAttribute=V}),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw(3);A.xp6(2),A.Q6J("ngModel",_e.applicationFormItem.federationAttribute)}}function te(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(V){return A.CHM(_e),A.oxw(2).applicationFormItem.required=V}),A.qZA(),A.qZA(),A.qZA(),A.YNc(6,Ue,6,7,"div",17),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.TgZ(11,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(V){return A.CHM(_e),A.oxw(2).applicationFormItem.perunSourceAttribute=V.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"app-edit-application-form-item-line",12),A.ALo(13,"translate"),A.ALo(14,"translate"),A.TgZ(15,"div",13),A.TgZ(16,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(V){return A.CHM(_e),A.oxw(2).applicationFormItem.perunDestinationAttribute=V.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(17,"app-edit-application-form-item-line",12),A.ALo(18,"translate"),A.ALo(19,"translate"),A.TgZ(20,"div",13),A.TgZ(21,"perun-web-apps-selection-item-search-select",24),A.NdJ("itemSelected",function(V){return A.CHM(_e),A.oxw(2).changeFederationAttribute(V)}),A.qZA(),A.qZA(),A.YNc(22,Xe,3,1,"div",25),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),A.xp6(4),A.Q6J("ngModel",_e.applicationFormItem.required),A.xp6(1),A.Q6J("ngIf",_e.typesWithUpdatable.indexOf(_e.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",_e.sourceAttributes)("selectedAttribute",_e.applicationFormItem.perunSourceAttribute)("asGroup",!!_e.data.group)("type",_e.itemType.SOURCE),A.xp6(1),A.Q6J("description",A.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",_e.destinationAttributes)("selectedAttribute",_e.applicationFormItem.perunDestinationAttribute)("asGroup",!!_e.data.group)("type",_e.itemType.DESTINATION),A.xp6(1),A.Q6J("description",A.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),A.xp6(4),A.Q6J("selectedAttribute",_e.applicationFormItem.federationAttribute)("asGroup",!!_e.data.group)("type",_e.itemType.FEDERATION),A.xp6(1),A.Q6J("ngIf"," -- custom value -- "===_e.federationAttributeDN)}}function Ve(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"input",14),A.NdJ("ngModelChange",function(V){return A.CHM(_e),A.oxw(2).applicationFormItem.regex=V}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),A.xp6(4),A.Q6J("ngModel",_e.applicationFormItem.regex)}}function ve(Ne,oe){if(1&Ne&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemDisabled"),A.qZA()),2&Ne){const _e=oe.$implicit;A.Q6J("value",_e),A.xp6(1),A.hij(" ",A.lcZ(2,2,_e)," ")}}function Oe(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(V){return A.CHM(_e),A.oxw(3).disabledDependencyItem=V}),A.qZA()}if(2&Ne){const _e=A.oxw(3);A.Q6J("item",_e.disabledDependencyItem)("items",_e.possibleDependencyItems)}}function z(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"mat-select",18),A.NdJ("valueChange",function(V){return A.CHM(_e),A.oxw(2).applicationFormItem.disabled=V}),A.YNc(6,ve,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.YNc(11,Oe,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",A.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),A.xp6(4),A.Q6J("value",_e.applicationFormItem.disabled),A.xp6(1),A.Q6J("ngForOf",_e.disabledValues),A.xp6(1),A.Q6J("description",A.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==_e.disabledDependencyItem)}}function D(Ne,oe){if(1&Ne&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemHidden"),A.qZA()),2&Ne){const _e=oe.$implicit;A.Q6J("value",_e),A.xp6(1),A.hij(" ",A.lcZ(2,2,_e)," ")}}function ge(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(V){return A.CHM(_e),A.oxw(2).hiddenDependencyItem=V}),A.qZA()}if(2&Ne){const _e=A.oxw(2);A.Q6J("item",_e.hiddenDependencyItem)("items",_e.possibleDependencyItems)}}function Te(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",28),A.NdJ("ngModelChange",function(V){A.CHM(_e);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=V}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw().$implicit,$=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),A.xp6(4),A.Q6J("cdkTextareaAutosize",!0)("ngModel",$.applicationFormItem.i18n[_e].label)}}function Ie(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(V){A.CHM(_e);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=V}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"app-edit-application-form-item-line",12),A.ALo(7,"translate"),A.ALo(8,"translate"),A.TgZ(9,"mat-form-field",13),A.TgZ(10,"textarea",14),A.NdJ("ngModelChange",function(V){A.CHM(_e);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].help=V}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(11,"app-edit-application-form-item-line",12),A.ALo(12,"translate"),A.ALo(13,"translate"),A.TgZ(14,"mat-form-field",13),A.TgZ(15,"textarea",14),A.NdJ("ngModelChange",function(V){A.CHM(_e);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].errorMessage=V}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw().$implicit,$=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",A.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",$.applicationFormItem.i18n[_e].label),A.xp6(1),A.Q6J("description",A.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",A.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),A.xp6(4),A.Q6J("ngModel",$.applicationFormItem.i18n[_e].help),A.xp6(1),A.Q6J("description",A.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",A.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),A.xp6(4),A.Q6J("ngModel",$.applicationFormItem.i18n[_e].errorMessage)}}function fe(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(V){A.CHM(_e);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=V}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw().$implicit,$=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",$.applicationFormItem.i18n[_e].label)}}function Se(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"mat-form-field"),A.TgZ(4,"input",14),A.NdJ("ngModelChange",function(V){return A.CHM(_e).$implicit[0]=V}),A.qZA(),A.qZA(),A._uU(5),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field"),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(V){return A.CHM(_e).$implicit[1]=V}),A.qZA(),A.qZA(),A.TgZ(9,"button",37),A.NdJ("click",function(){const i=A.CHM(_e).$implicit,a=A.oxw(2).$implicit;return A.oxw(2).removeOption(i,a)}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA(),A.qZA(),A.qZA()}if(2&Ne){const _e=oe.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),A.xp6(3),A.Q6J("ngModel",_e[0]),A.xp6(1),A.hij(" ",A.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),A.xp6(3),A.Q6J("ngModel",_e[1]),A.xp6(1),A.s9C("matTooltip",A.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function Ke(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"div",29),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",30),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",31),A.TgZ(8,"button",32),A.NdJ("click",function(){A.CHM(_e);const V=A.oxw().$implicit;return A.oxw(2).sortOptionsAZ(V)}),A.TgZ(9,"i",33),A._uU(10,"arrow_downward"),A.qZA(),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.TgZ(13,"button",34),A.NdJ("click",function(){A.CHM(_e);const V=A.oxw().$implicit;return A.oxw(2).sortOptionsZA(V)}),A.TgZ(14,"i",33),A._uU(15,"arrow_upward"),A.qZA(),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.YNc(18,Se,13,11,"div",35),A.TgZ(19,"button",36),A.NdJ("click",function(){A.CHM(_e);const V=A.oxw().$implicit;return A.oxw(2).addOption(V)}),A._uU(20),A.ALo(21,"translate"),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw().$implicit,$=A.oxw(2);A.xp6(2),A.hij(" ",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),A.xp6(3),A.hij(" ",A.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),A.xp6(6),A.hij(" ",A.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),A.xp6(5),A.hij(" ",A.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),A.xp6(2),A.Q6J("ngForOf",$.options[_e]),A.xp6(2),A.hij(" ",A.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Je=function(){return["HEADING","HTML_COMMENT"]},nt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},je=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},Q=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function Ce(Ne,oe){if(1&Ne&&(A.TgZ(0,"mat-tab",11),A.ALo(1,"translate"),A.ALo(2,"uppercase"),A.YNc(3,Te,6,8,"div",17),A.YNc(4,Ie,16,21,"div",17),A.YNc(5,fe,6,7,"div",17),A.YNc(6,Ke,22,16,"div",17),A.qZA()),2&Ne){const _e=oe.$implicit,$=A.oxw(2);A.s9C("label",A.lcZ(1,5,A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+_e))),A.xp6(3),A.Q6J("ngIf",$.isApplicationFormItemOfType(A.DdM(9,Je))),A.xp6(1),A.Q6J("ngIf",$.isApplicationFormItemOfType(A.DdM(10,nt))),A.xp6(1),A.Q6J("ngIf",$.isApplicationFormItemOfType(A.DdM(11,je))),A.xp6(1),A.Q6J("ngIf",$.isApplicationFormItemOfType(A.DdM(12,Q)))}}const re=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},k=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function pe(Ne,oe){if(1&Ne){const _e=A.EpF();A.TgZ(0,"div",9),A.TgZ(1,"mat-tab-group",10),A.TgZ(2,"mat-tab",11),A.ALo(3,"translate"),A.TgZ(4,"app-edit-application-form-item-line",12),A.ALo(5,"translate"),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field",13),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(V){return A.CHM(_e),A.oxw().applicationFormItem.shortname=V}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(9,"app-edit-application-form-item-line",12),A.ALo(10,"translate"),A.ALo(11,"translate"),A._uU(12),A.ALo(13,"applicationFormItemType"),A.qZA(),A.TgZ(14,"app-edit-application-form-item-line",12),A.ALo(15,"translate"),A.ALo(16,"translate"),A.TgZ(17,"section"),A.TgZ(18,"mat-checkbox",15),A.NdJ("change",function(){return A.CHM(_e),A.oxw().onChangingType("INITIAL")}),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-checkbox",16),A.NdJ("change",function(){return A.CHM(_e),A.oxw().onChangingType("EXTENSION")}),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.qZA(),A.qZA(),A.YNc(24,te,23,38,"div",17),A.YNc(25,Ve,6,7,"div",17),A.YNc(26,z,12,15,"div",17),A.TgZ(27,"app-edit-application-form-item-line",12),A.ALo(28,"translate"),A.ALo(29,"translate"),A.TgZ(30,"mat-form-field",13),A.TgZ(31,"mat-select",18),A.NdJ("valueChange",function(V){return A.CHM(_e),A.oxw().applicationFormItem.hidden=V}),A.YNc(32,D,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(33,"app-edit-application-form-item-line",12),A.ALo(34,"translate"),A.ALo(35,"translate"),A.TgZ(36,"div",13),A.YNc(37,ge,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA(),A.YNc(38,Ce,7,13,"mat-tab",21),A.qZA(),A.qZA()}if(2&Ne){const _e=A.oxw();A.xp6(2),A.s9C("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),A.xp6(2),A.Q6J("description",A.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",A.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),A.xp6(4),A.Q6J("ngModel",_e.applicationFormItem.shortname),A.xp6(1),A.Q6J("description",A.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",A.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),A.xp6(3),A.hij(" ",A.lcZ(13,34,_e.applicationFormItem.type)," "),A.xp6(2),A.Q6J("description",A.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",A.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),A.xp6(4),A.Q6J("ngModel",_e.applicationFormItem.applicationTypes.includes("INITIAL")),A.xp6(1),A.hij(" ",A.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),A.xp6(2),A.Q6J("ngModel",_e.applicationFormItem.applicationTypes.includes("EXTENSION")),A.xp6(1),A.hij(" ",A.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),A.xp6(2),A.Q6J("ngIf",_e.isApplicationFormItemOfType(A.DdM(52,re))),A.xp6(1),A.Q6J("ngIf",_e.isApplicationFormItemOfType(A.DdM(53,k))),A.xp6(1),A.Q6J("ngIf",_e.typesWithDisabled.indexOf(_e.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",A.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),A.xp6(4),A.Q6J("value",_e.applicationFormItem.hidden),A.xp6(1),A.Q6J("ngForOf",_e.hiddenValues),A.xp6(1),A.Q6J("description",A.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==_e.hiddenDependencyItem),A.xp6(1),A.Q6J("ngForOf",_e.languages)}}let Z=(()=>{class Ne{constructor(_e,$,V,i,a,d){this.dialogRef=_e,this.data=$,this.attributesManager=V,this.translateService=i,this.store=a,this.cd=d,this.federationAttributeDN="",this.itemType=w.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(_e=>_e.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(_e=>_e.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,_.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(_e=>{const $=this.filterAttributesForWidget(_e);this.sourceAttributes=$.concat(this.findAttribute(_e,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=$.concat(this.findAttribute(_e,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(_e){if(this.applicationFormItem.applicationTypes.includes(_e)){const $=this.applicationFormItem.applicationTypes.indexOf(_e);this.applicationFormItem.applicationTypes.splice($,1)}else this.applicationFormItem.applicationTypes.push(_e)}addOption(_e){this.options[_e].push(["",""])}removeOption(_e,$){this.options[$]=this.options[$].filter(V=>!(V[0]===_e[0]&&V[1]===_e[1]))}sortOptionsAZ(_e){this.options[_e]=this.options[_e].sort(($,V)=>$[1]>V[1]?1:$[1]$[1]>V[1]?-1:$[1]this.dependencyTypes.includes(_e.type)).filter(_e=>_e.id!==this.data.applicationFormItem.id))}updateOption(_e){var $;let V="";if(null!==($=this.options[_e])&&void 0!==$&&$)for(const i of this.options[_e])""!==i[0]&&""!==i[1]&&(V=""===V?i[0]+"#"+i[1]:V+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[_e].options=V}updateOptions(){for(const _e of this.languages)this.updateOption(_e)}findAttribute(_e,$){return _e.find(V=>$.includes(V.friendlyName))}filterAttributesForWidget(_e){return _e.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?$=>$.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?$=>$.type.includes("ArrayList"):$=>!$.type.includes("ArrayList")&&!$.type.includes("LinkedHashMap"))}}return Ne.\u0275fac=function(_e){return new(_e||Ne)(A.Y36(e.so),A.Y36(e.WI),A.Y36(b.H8),A.Y36(E.sK),A.Y36(g.d6),A.Y36(A.sBO))},Ne.\u0275cmp=A.Xpm({type:Ne,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(_e,$){1&_e&&(A.TgZ(0,"div"),A.TgZ(1,"div",0),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.YNc(5,Fe,1,0,"mat-spinner",2),A.YNc(6,pe,39,54,"div",3),A.TgZ(7,"div",4),A.TgZ(8,"button",5),A.NdJ("click",function(){return $.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"div",6),A.ALo(12,"translate"),A.TgZ(13,"button",7),A.NdJ("click",function(){return $.submit()}),A._uU(14),A.ALo(15,"translate"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&_e&&(A.Gre("",$.theme," h-100"),A.xp6(3),A.AsE(" ",A.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",$.applicationFormItem.shortname," "),A.xp6(2),A.Q6J("ngIf",$.loading),A.xp6(1),A.Q6J("ngIf",!$.loading),A.xp6(3),A.hij(" ",A.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),A.Q6J("matTooltipDisabled",!$.applicationFormItem.required||""!==$.applicationFormItem.perunSourceAttribute||""!==$.applicationFormItem.federationAttribute||"ALWAYS"!==$.applicationFormItem.disabled&&"ALWAYS"!==$.applicationFormItem.hidden),A.xp6(2),A.Q6J("disabled",$.loading||$.applicationFormItem.required&&""===$.applicationFormItem.perunSourceAttribute&&""===$.applicationFormItem.federationAttribute&&("ALWAYS"===$.applicationFormItem.disabled||"ALWAYS"===$.applicationFormItem.hidden)),A.xp6(1),A.hij(" ",A.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[e.uh,C.O5,R.$g,e.xY,I.SP,I.uX,O,P.KE,W.Nt,ie.Fj,ie.JJ,ie.On,Ae.oG,q.$x,Me.gD,C.sg,he.ey,De.Y,T.IC,N.lW,j.gM,Y.Hw,e.H8],pipes:[E.X$,ee.c,de,ce,C.gd],styles:[""]}),Ne})()},19352:(Qe,be,p)=>{"use strict";p.d(be,{H:()=>Xe});var e=p(32105),b=p(48966),_=p(32080),w=p(32075),g=p(9244),A=p(16074),E=p(69808),C=p(5e3),R=p(51062),I=p(20773),m=p(47423),O=p(25245),P=p(29772),W=p(31359);function ie(te,Ve){1&te&&C._UZ(0,"mat-spinner",6)}function Ae(te,Ve){1&te&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function q(te,Ve){if(1&te&&(C.TgZ(0,"td",18),C._uU(1),C.qZA()),2&te){const ve=Ve.$implicit;C.xp6(1),C.Oqu(ve.user.id)}}function Me(te,Ve){1&te&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function he(te,Ve){if(1&te&&(C.TgZ(0,"td",18),C._uU(1),C.ALo(2,"userFullName"),C.qZA()),2&te){const ve=Ve.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,ve.user))}}function De(te,Ve){1&te&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&te&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(te,Ve){if(1&te){const ve=C.EpF();C.TgZ(0,"button",20),C.NdJ("click",function(){C.CHM(ve);const z=C.oxw().$implicit;return C.oxw(2).changeExpiration(z)}),C.TgZ(1,"mat-icon"),C._uU(2," today "),C.qZA(),C.qZA()}}function N(te,Ve){if(1&te&&(C.TgZ(0,"td",18),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.YNc(3,T,3,0,"button",19),C.qZA()),2&te){const ve=Ve.$implicit,Oe=C.oxw(2);C.xp6(2),C.Oqu(Oe.parseDate(ve.validityTo)),C.xp6(1),C.Q6J("ngIf",Oe.isExpirationAuthorized(ve))}}function j(te,Ve){1&te&&C._UZ(0,"th",17)}function Y(te,Ve){1&te&&(C.TgZ(0,"mat-icon",25),C._uU(1,"clear"),C.qZA())}function ee(te,Ve){1&te&&(C.TgZ(0,"mat-icon"),C._uU(1,"settings_backup_restore"),C.qZA())}function de(te,Ve){if(1&te){const ve=C.EpF();C.TgZ(0,"td",18),C.TgZ(1,"div",21),C.ALo(2,"translate"),C.TgZ(3,"button",22),C.NdJ("click",function(){const D=C.CHM(ve).$implicit;return C.oxw(2).markSponsor(D)}),C.YNc(4,Y,2,0,"mat-icon",23),C.YNc(5,ee,2,0,"mat-icon",24),C.qZA(),C.qZA(),C.qZA()}if(2&te){const ve=Ve.$implicit,Oe=C.oxw(2);C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),C.Q6J("matTooltipDisabled",Oe.isRemoveAuthorized(ve))("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",!Oe.isRemoveAuthorized(ve)),C.xp6(1),C.Q6J("ngIf",!Oe.sponsorsToRemove.has(ve.user.id)),C.xp6(1),C.Q6J("ngIf",Oe.sponsorsToRemove.has(ve.user.id))}}function ce(te,Ve){1&te&&C._UZ(0,"tr",26)}function Fe(te,Ve){if(1&te&&C._UZ(0,"tr",27),2&te){const ve=Ve.$implicit,Oe=C.oxw(2);C.ekj("make-red",Oe.sponsorsToRemove.has(ve.user.id))}}function Ue(te,Ve){if(1&te&&(C.TgZ(0,"div",7),C.TgZ(1,"table",8),C.ynx(2,9),C.YNc(3,Ae,3,3,"th",10),C.YNc(4,q,2,1,"td",11),C.BQk(),C.ynx(5,12),C.YNc(6,Me,3,3,"th",10),C.YNc(7,he,3,3,"td",11),C.BQk(),C.ynx(8,13),C.YNc(9,De,3,3,"th",10),C.YNc(10,N,4,2,"td",11),C.BQk(),C.ynx(11,14),C.YNc(12,j,1,0,"th",10),C.YNc(13,de,6,8,"td",11),C.BQk(),C.YNc(14,ce,1,0,"tr",15),C.YNc(15,Fe,1,2,"tr",16),C.qZA(),C.qZA()),2&te){const ve=C.oxw();C.xp6(1),C.Q6J("dataSource",ve.dataSource),C.xp6(13),C.Q6J("matHeaderRowDef",ve.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",ve.displayedColumns)}}let Xe=(()=>{class te{constructor(ve,Oe,z,D,ge,Te,Ie,fe){this.dialogRef=ve,this.data=Oe,this.memberService=z,this.userService=D,this.notificator=ge,this.authResolver=Te,this.translate=Ie,this.dialog=fe,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(ve){this.sponsorsToRemove.has(ve.user.id)?this.sponsorsToRemove.delete(ve.user.id):this.sponsorsToRemove.add(ve.user.id)}onSubmit(){this.loading=!0;const ve=Array.from(this.sponsorsToRemove);this.removeSponsors(ve)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(ve){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[ve.user])}isExpirationAuthorized(ve){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[ve.user,this.vo])}parseDate(ve){return null===ve?"Never expire":(0,E.p6)(ve,"d.M.y","en")}changeExpiration(ve){const Oe=(0,g.kZ)();Oe.width="400px",Oe.data={memberId:this.data.member.id,sponsor:ve},this.dialog.open(A.hd,Oe).afterClosed().subscribe(D=>{D&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(ge=>{this.sponsors=ge,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(ve){if(0===ve.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Oe=ve.pop();this.memberService.removeSponsor(this.data.member.id,Oe).subscribe(()=>{this.removeSponsors(ve)},()=>this.loading=!1)}}return te.\u0275fac=function(ve){return new(ve||te)(C.Y36(b.so),C.Y36(b.WI),C.Y36(e.uq),C.Y36(e.Fv),C.Y36(_.V6),C.Y36(_.x4),C.Y36(R.sK),C.Y36(b.uw))},te.\u0275cmp=C.Xpm({type:te,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(ve,Oe){1&ve&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div"),C.YNc(4,ie,1,0,"mat-spinner",1),C.YNc(5,Ue,16,3,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return Oe.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Oe.onSubmit()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&ve&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),C.xp6(2),C.Tol(Oe.theme),C.xp6(1),C.Q6J("ngIf",Oe.loading),C.xp6(1),C.Q6J("ngIf",!Oe.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Oe.loading||0===Oe.sponsorsToRemove.size),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[b.uh,E.O5,I.$g,b.xY,w.BZ,w.w1,w.fO,w.ge,w.Dz,w.ev,m.lW,O.Hw,P.gM,w.as,w.XQ,w.nj,w.Gk,b.H8],pipes:[R.X$,W.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),te})()},74414:(Qe,be,p)=>{"use strict";p.d(be,{R:()=>T});var e=p(48966),b=p(93075),_=p(32105),w=p(32080),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),R=p(67322),I=p(98833),m=p(74107),O=p(90508),P=p(47423);function W(N,j){1&N&&g._UZ(0,"mat-spinner",6)}function ie(N,j){1&N&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function Ae(N,j){1&N&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&N&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function q(N,j){1&N&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&N&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Me(N,j){1&N&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&N&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function he(N,j){if(1&N&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&N){const Y=j.$implicit;g.s9C("value",Y),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Y)))}}function De(N,j){if(1&N){const Y=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ie,3,3,"div",8),g.YNc(2,Ae,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,q,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,Me,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(de){return g.CHM(Y),g.oxw().currentLanguage=de}),g.YNc(16,he,4,6,"mat-option",13),g.qZA(),g.qZA(),g.qZA()}if(2&N){const Y=g.oxw();g.xp6(1),g.Q6J("ngIf",!Y.data.groupId),g.xp6(1),g.Q6J("ngIf",Y.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",Y.name),g.xp6(2),g.Q6J("ngIf",Y.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",Y.emailForm),g.xp6(2),g.Q6J("ngIf",Y.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",Y.currentLanguage),g.xp6(1),g.Q6J("ngForOf",Y.languages)}}let T=(()=>{class N{constructor(Y,ee,de,ce,Fe,Ue){this.dialogRef=Y,this.data=ee,this.registrarManager=de,this.notificator=ce,this.translate=Fe,this.store=Ue,this.emailForm=new b.NI("",[b.kI.required,b.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new b.NI("",b.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(Y=>{this.notificator.showSuccess(Y),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(Y=>{this.notificator.showSuccess(Y),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return N.\u0275fac=function(Y){return new(Y||N)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.tk),g.Y36(w.V6),g.Y36(A.sK),g.Y36(w.d6))},N.\u0275cmp=g.Xpm({type:N,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(Y,ee){1&Y&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,W,1,0,"mat-spinner",1),g.YNc(5,De,17,17,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return ee.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return ee.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&Y&&(g.Tol(ee.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",ee.loading),g.xp6(1),g.Q6J("ngIf",!ee.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",ee.emailForm.invalid||ee.name.invalid||ee.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[e.uh,E.O5,C.$g,e.xY,R.KE,I.Nt,b.Fj,b.Q7,b.JJ,b.oH,R.TO,R.hX,m.gD,E.sg,O.ey,e.H8,P.lW],pipes:[A.X$,E.gd],styles:[""]}),N})()},87842:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>de});var e=p(48966),b=p(93075),_=p(1059),w=p(24850),g=p(36769),A=p(32080),E=p(32105),C=p(5e3),R=p(51062),I=p(79814),m=p(69808),O=p(98380),P=p(67322),W=p(98833),ie=p(91079),Ae=p(90508),q=p(20773),Me=p(47423),he=p(29772);function De(ce,Fe){1&ce&&(C.TgZ(0,"mat-radio-button",12),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ce&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(ce,Fe){1&ce&&(C.TgZ(0,"mat-radio-button",13),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ce&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function N(ce,Fe){1&ce&&(C.TgZ(0,"perun-web-apps-alert",14),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&ce&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function j(ce,Fe){if(1&ce){const Ue=C.EpF();C.TgZ(0,"mat-option",20),C.NdJ("click",function(){const Ve=C.CHM(Ue).$implicit;return C.oxw(2).selectedGroup=Ve}),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.qZA()}if(2&ce){const Ue=Fe.$implicit;C.Q6J("value",Ue),C.xp6(2),C.Oqu(Ue.name)}}function Y(ce,Fe){if(1&ce){const Ue=C.EpF();C.TgZ(0,"mat-form-field",15),C.TgZ(1,"input",16),C.NdJ("change",function(){return C.CHM(Ue),C.oxw().selectedGroup=null}),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-autocomplete",17,18),C.YNc(5,j,3,2,"mat-option",19),C.ALo(6,"async"),C.qZA(),C.qZA()}if(2&ce){const Ue=C.MAs(4),Xe=C.oxw();C.Q6J("@openClose","toGroup"===Xe.moveOption?"open":"closed"),C.xp6(1),C.s9C("placeholder",C.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),C.Q6J("formControl",Xe.otherGroupsCtrl)("matAutocomplete",Ue),C.xp6(2),C.Q6J("displayWith",Xe.displayFn),C.xp6(2),C.Q6J("ngForOf",C.lcZ(6,8,Xe.filteredGroups))}}function ee(ce,Fe){1&ce&&C._UZ(0,"mat-spinner",21)}let de=(()=>{class ce{constructor(Ue,Xe,te,Ve,ve,Oe,z){this.dialogRef=Ue,this.data=Xe,this.groupService=te,this.notificator=Ve,this.translate=ve,this.apiRequest=Oe,this.authResolver=z,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new b.NI(null,[b.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(D=>this.successMessage=D),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(D=>this.errorMessage=D)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Ue=>{this.otherGroups=Ue.filter(Xe=>Xe.id!==this.data.group.id&&"members"!==Xe.name&&this.canMove(Xe)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,_.O)(""),(0,w.U)(Xe=>Xe?this._filterGroups(Xe):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Ue){return Ue&&Ue.name}canMove(Ue){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Ue,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Ue])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},Ue=>{this.notificator.showRPCError(Ue,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Ue){if("object"==typeof Ue)return[];const Xe=Ue.toLowerCase();return Ue?this.otherGroups.filter(te=>te.name.toLowerCase().includes(Xe)):this.otherGroups}}return ce.\u0275fac=function(Ue){return new(Ue||ce)(C.Y36(e.so),C.Y36(e.WI),C.Y36(E.ff),C.Y36(A.V6),C.Y36(R.sK),C.Y36(A.F5),C.Y36(A.x4))},ce.\u0275cmp=C.Xpm({type:ce,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(Ue,Xe){1&Ue&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",1),C.TgZ(5,"p"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"mat-radio-group",2),C.NdJ("ngModelChange",function(Ve){return Xe.moveOption=Ve}),C.YNc(9,De,3,3,"mat-radio-button",3),C.YNc(10,T,3,3,"mat-radio-button",4),C.qZA(),C.YNc(11,N,3,3,"perun-web-apps-alert",5),C.YNc(12,Y,7,10,"mat-form-field",6),C.qZA(),C.YNc(13,ee,1,0,"mat-spinner",7),C.TgZ(14,"div",8),C.TgZ(15,"button",9),C.NdJ("click",function(){return Xe.close()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"span",10),C.ALo(19,"translate"),C.TgZ(20,"button",11),C.NdJ("click",function(){return Xe.confirm()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&Ue&&(C.Tol(Xe.data.theme),C.xp6(2),C.AsE("",C.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",Xe.data.group.name,""),C.xp6(4),C.hij(" ",C.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),C.xp6(2),C.Q6J("ngModel",Xe.moveOption),C.xp6(1),C.Q6J("ngIf",!Xe.toRootOptionDisabled),C.xp6(1),C.Q6J("ngIf",!Xe.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",Xe.toRootOptionDisabled&&Xe.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",!Xe.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",Xe.loading),C.xp6(3),C.hij(" ",C.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),C.Q6J("matTooltipDisabled",null!==Xe.selectedGroup||"toRoot"===Xe.moveOption)("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",(Xe.otherGroupsCtrl.invalid||null===Xe.selectedGroup)&&"toRoot"!==Xe.moveOption||Xe.loading),C.xp6(1),C.hij(" ",C.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[e.uh,e.xY,I.VQ,b.JJ,b.On,m.O5,I.U0,O.w,P.KE,W.Nt,b.Fj,ie.ZL,b.Q7,b.oH,ie.XC,m.sg,Ae.ey,q.$g,e.H8,Me.lW,he.gM],pipes:[R.X$,m.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),ce})()},58964:(Qe,be,p)=>{"use strict";p.d(be,{m:()=>q});var e=p(48966),b=p(32105),_=p(32080),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(67322),R=p(74107),I=p(90508),m=p(47423);function O(Me,he){1&Me&&w._UZ(0,"mat-spinner",7)}function P(Me,he){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const De=he.$implicit;w.Q6J("value",De),w.xp6(1),w.hij(" ",De.friendlyNameParameter," ")}}function W(Me,he){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Me){const De=he.$implicit;w.Q6J("value",De),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+De))," ")}}function ie(Me,he){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const De=he.$implicit;w.Q6J("value",De),w.xp6(1),w.hij(" ",De," ")}}function Ae(Me,he){if(1&Me){const De=w.EpF();w.TgZ(0,"div",8),w.TgZ(1,"mat-form-field"),w.TgZ(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(N){return w.CHM(De),w.oxw().selectedLogin=N}),w.YNc(6,P,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(7,"mat-form-field"),w.TgZ(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(N){return w.CHM(De),w.oxw().selectedLang=N}),w.YNc(12,W,4,6,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(13,"mat-form-field"),w.TgZ(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(N){return w.CHM(De),w.oxw().selectedMail=N}),w.YNc(18,ie,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(19,"div",11),w.TgZ(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA(),w.qZA(),w.qZA()}if(2&Me){const De=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",De.selectedLogin),w.xp6(1),w.Q6J("ngForOf",De.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",De.selectedLang),w.xp6(1),w.Q6J("ngForOf",De.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",De.selectedMail),w.xp6(1),w.Q6J("ngForOf",De.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(De.selectedLogin.value)}}let q=(()=>{class Me{constructor(De,T,N,j,Y,ee,de){this.dialogRef=De,this.data=T,this.membersManagerService=N,this.attributesManagerService=j,this.store=Y,this.translate=ee,this.notificator=de,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],ee.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(ce=>this.successMessage=ce)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const De=this.selectedLogin.friendlyNameParameter,N=window.location.href.split("/"),j=N[0]+"//"+N[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,De,this.pwdMails.get(this.selectedMail),this.selectedLang,j).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return Me.\u0275fac=function(De){return new(De||Me)(w.Y36(e.so),w.Y36(e.WI),w.Y36(b.uq),w.Y36(b.H8),w.Y36(_.d6),w.Y36(g.sK),w.Y36(_.V6))},Me.\u0275cmp=w.Xpm({type:Me,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(De,T){1&De&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,O,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,Ae,25,19,"div",3),w.TgZ(6,"div",4),w.TgZ(7,"button",5),w.NdJ("click",function(){return T.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return T.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.qZA()),2&De&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",T.loading),w.xp6(1),w.Q6J("ngIf",!T.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",T.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.KE,C.hX,R.gD,A.sg,I.ey,e.H8,m.lW],pipes:[g.X$,A.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Me})()},53455:(Qe,be,p)=>{"use strict";p.d(be,{X:()=>De});var e=p(48966),b=p(32075),_=p(32080),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),R=p(47423),I=p(31359);function m(T,N){1&T&&g._UZ(0,"th",13)}function O(T,N){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&T){const j=N.$implicit;g.xp6(1),g.Oqu(j.id)}}function P(T,N){1&T&&g._UZ(0,"th",13)}function W(T,N){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&T){const j=N.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,j.user))}}function ie(T,N){1&T&&g._UZ(0,"tr",15)}function Ae(T,N){1&T&&g._UZ(0,"tr",16)}function q(T,N){if(1&T&&(g.TgZ(0,"div",4),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,m,1,0,"th",8),g.YNc(10,O,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,P,1,0,"th",8),g.YNc(13,W,3,3,"td",9),g.BQk(),g.YNc(14,ie,1,0,"tr",11),g.YNc(15,Ae,1,0,"tr",12),g.qZA(),g.qZA()),2&T){const j=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,j.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",j.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",j.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",j.displayedColumns)}}function Me(T,N){1&T&&g._UZ(0,"mat-spinner",17)}function he(T,N){if(1&T){const j=g.EpF();g.TgZ(0,"div",18),g.TgZ(1,"button",19),g.NdJ("click",function(){return g.CHM(j),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){return g.CHM(j),g.oxw().onSubmit()}),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA()}if(2&T){const j=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,j.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let De=(()=>{class T{constructor(j,Y,ee,de,ce,Fe){this.dialogRef=j,this.data=Y,this.membersService=ee,this.groupService=de,this.notificator=ce,this.translate=Fe,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(j=>j.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(j=>j.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const j=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(j),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(j){return new(j||T)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(_.V6),g.Y36(A.sK))},T.\u0275cmp=g.Xpm({type:T,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(j,Y){1&j&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,q,16,9,"div",1),g.YNc(5,Me,1,0,"mat-spinner",2),g.YNc(6,he,7,6,"div",3),g.qZA()),2&j&&(g.Tol(Y.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!Y.loading),g.xp6(1),g.Q6J("ngIf",Y.loading),g.xp6(1),g.Q6J("ngIf",!Y.loading))},directives:[e.uh,E.O5,e.xY,b.BZ,b.w1,b.fO,b.ge,b.Dz,b.ev,b.as,b.XQ,b.nj,b.Gk,C.$g,e.H8,R.lW],pipes:[A.X$,I.d],styles:[""]}),T})()},533:(Qe,be,p)=>{"use strict";p.d(be,{f:()=>C});var e=p(48966),b=p(32075),_=p(32080),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class R{constructor(m,O,P,W,ie){this.dialogRef=m,this.data=O,this.notificator=P,this.translate=W,this.resourcesManager=ie,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(m=>{this.loading=!1,this.notificator.showSuccess(m),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(m){m.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(m){return new(m||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.xk))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(m,O){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(W){return O.onSubmit(W)}),g.qZA(),g.qZA()),2&m&&(g.Tol(O.theme),g.xp6(1),g.Q6J("entityNames",O.dataSource)("entityType","resources")("disableForce",!0)("loading",O.loading))},directives:[E.e],styles:[""]}),R})()},11717:(Qe,be,p)=>{"use strict";p.d(be,{o:()=>C});var e=p(48966),b=p(32075),_=p(32080),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class R{constructor(m,O,P,W,ie){this.dialogRef=m,this.data=O,this.notificator=P,this.voService=W,this.translate=ie,this.force=!1,this.displayedColumns=["name"],this.relations=[],ie.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(Ae=>this.successMessage=Ae)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return R.\u0275fac=function(m){return new(m||R)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(w.YF),g.Y36(A.sK))},R.\u0275cmp=g.Xpm({type:R,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,O){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(W){return O.onSubmit(W)}),g.qZA(),g.qZA()),2&m&&(g.Tol(O.theme),g.xp6(1),g.Q6J("entityNames",O.dataSource)("entityType","organizations")("loading",O.loading)("relations",O.relations))},directives:[E.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),R})()},1186:(Qe,be,p)=>{"use strict";p.d(be,{E:()=>Ae});var e=p(48966),b=p(32105),_=p(5e3),w=p(69808),g=p(20773),A=p(67322),E=p(98833),C=p(93075),R=p(74107),I=p(90508),m=p(47423),O=p(51062);function P(q,Me){1&q&&_._UZ(0,"mat-spinner",6)}function W(q,Me){if(1&q){const he=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"mat-form-field",9),_.TgZ(2,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(he),_.oxw(2).embeddedState=T}),_.ALo(3,"translate"),_.TgZ(4,"mat-option",11),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-option",12),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&q){const he=_.oxw(2);_.xp6(2),_.MGl("placeholder","",_.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),_.Q6J("value",he.embeddedState),_.xp6(3),_.Oqu(_.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ie(q,Me){if(1&q){const he=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"mat-form-field"),_.TgZ(2,"input",8),_.NdJ("ngModelChange",function(T){return _.CHM(he),_.oxw().moduleName=T}),_.ALo(3,"translate"),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",9),_.TgZ(5,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(he),_.oxw().initialState=T}),_.ALo(6,"translate"),_.TgZ(7,"mat-option",11),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-option",12),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"mat-form-field",9),_.TgZ(14,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(he),_.oxw().extensionState=T}),_.ALo(15,"translate"),_.TgZ(16,"mat-option",11),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.TgZ(19,"mat-option",12),_._uU(20),_.ALo(21,"translate"),_.qZA(),_.qZA(),_.qZA(),_.YNc(22,W,10,10,"div",13),_.qZA()}if(2&q){const he=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),_.Q6J("ngModel",he.moduleName),_.xp6(3),_.MGl("placeholder","",_.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),_.Q6J("value",he.initialState),_.xp6(3),_.Oqu(_.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(3),_.MGl("placeholder","",_.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),_.Q6J("value",he.extensionState),_.xp6(3),_.Oqu(_.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(2),_.Q6J("ngIf","group"===he.entity&&he.autoRegistrationEnabled)}}let Ae=(()=>{class q{constructor(he,De,T){this.dialogRef=he,this.data=De,this.registrarManager=T,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(he=>{this.dialogRef.close(he)},()=>this.loading=!1)}}return q.\u0275fac=function(he){return new(he||q)(_.Y36(e.so),_.Y36(e.WI),_.Y36(b.tk))},q.\u0275cmp=_.Xpm({type:q,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(he,De){1&he&&(_.TgZ(0,"div"),_.TgZ(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,P,1,0,"mat-spinner",1),_.YNc(5,ie,23,25,"div",2),_.TgZ(6,"div",3),_.TgZ(7,"button",4),_.NdJ("click",function(){return De.onCancel()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",5),_.NdJ("click",function(){return De.submit()}),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA()),2&he&&(_.Tol(De.theme),_.xp6(2),_.Oqu(_.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),_.xp6(2),_.Q6J("ngIf",De.loading),_.xp6(1),_.Q6J("ngIf",!De.loading),_.xp6(3),_.hij(" ",_.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),_.xp6(2),_.Q6J("disabled",De.loading),_.xp6(1),_.hij(" ",_.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[e.uh,w.O5,g.$g,e.xY,A.KE,E.Nt,C.Fj,C.JJ,C.On,R.gD,I.ey,e.H8,m.lW],pipes:[O.X$],styles:[""]}),q})()},60205:(Qe,be,p)=>{"use strict";p.d(be,{Q:()=>z});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(32080),E=p(18750),C=p(77446),R=p(69808),I=p(25245),m=p(29772),O=p(50301),P=p(11735),W=p(98380),ie=p(51062);function Ae(D,ge){if(1&D){const Te=e.EpF();e.TgZ(0,"th",18),e.TgZ(1,"mat-checkbox",19),e.NdJ("change",function(fe){e.CHM(Te);const Se=e.oxw();return fe?Se.masterToggle():null}),e.qZA(),e.qZA()}if(2&D){const Te=e.oxw();e.xp6(1),e.Q6J("aria-label",Te.checkboxLabel())("checked",Te.selection.hasValue()&&Te.isAllSelected())("indeterminate",Te.selection.hasValue()&&!Te.isAllSelected())}}function q(D,ge){if(1&D){const Te=e.EpF();e.TgZ(0,"td",20),e.TgZ(1,"mat-checkbox",21),e.NdJ("change",function(fe){const Ke=e.CHM(Te).$implicit,Je=e.oxw();return fe?Je.selection.toggle(Ke):null})("click",function(fe){return fe.stopPropagation()}),e.qZA(),e.qZA()}if(2&D){const Te=ge.$implicit,Ie=e.oxw();e.xp6(1),e.Q6J("aria-label",Ie.checkboxLabel(Te))("checked",Ie.selection.isSelected(Te))}}function Me(D,ge){1&D&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function he(D,ge){if(1&D&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&D){const Te=ge.$implicit;e.xp6(1),e.Oqu(Te.id)}}function De(D,ge){1&D&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function T(D,ge){if(1&D&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&D){const Te=ge.$implicit;e.xp6(1),e.Oqu(Te.name)}}function N(D,ge){1&D&&e._UZ(0,"th",25)}function j(D,ge){1&D&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&D&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function Y(D,ge){1&D&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&D&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function ee(D,ge){if(1&D&&(e.TgZ(0,"td",24),e.YNc(1,j,3,3,"mat-icon",26),e.YNc(2,Y,3,3,"mat-icon",26),e.qZA()),2&D){const Te=ge.$implicit;e.xp6(1),e.Q6J("ngIf",Te.enabled),e.xp6(1),e.Q6J("ngIf",!Te.enabled)}}function de(D,ge){1&D&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function ce(D,ge){if(1&D&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&D){const Te=ge.$implicit;e.xp6(1),e.Oqu(Te.script)}}function Fe(D,ge){1&D&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Ue(D,ge){if(1&D&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&D){const Te=ge.$implicit;e.xp6(1),e.Oqu(Te.description)}}function Xe(D,ge){1&D&&e._UZ(0,"tr",28)}const te=function(D){return["/admin/services",D]};function Ve(D,ge){if(1&D&&e._UZ(0,"tr",29),2&D){const Te=ge.$implicit,Ie=e.oxw();e.ekj("cursor-pointer",!Ie.disableRouting)("disable-outline",Ie.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",Ie.disableRouting?null:e.VKq(6,te,Te.id))("routerLink",Ie.disableRouting?null:e.VKq(8,te,Te.id))}}function ve(D,ge){1&D&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Oe(D,ge){1&D&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&D&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let z=(()=>{class D{constructor(Te,Ie){this.authResolver=Te,this.tableCheckbox=Ie,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(Te){this.sort=Te,this.setDataSource()}static getDataForColumn(Te,Ie){switch(Ie){case"id":return Te.id.toString();case"name":return Te.name;case"enabled":return Te.enabled?"true":"false";case"script":return Te.script;case"description":return Te.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Te=>"id"!==Te)),this.dataSource=new _.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportData(Te){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,D.getDataForColumn),Te)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(Te,Ie)=>(0,g.Sd)(Te,Ie,this.displayedColumns,D.getDataForColumn),this.dataSource.sortData=(Te,Ie)=>(0,g.pR)(Te,Ie,D.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Te){return Te?`${this.selection.isSelected(Te)?"deselect":"select"} row ${Te.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return D.\u0275fac=function(Te){return new(Te||D)(e.Y36(A.x4),e.Y36(A.UA))},D.\u0275cmp=e.Xpm({type:D,selectors:[["app-services-list"]],viewQuery:function(Te,Ie){if(1&Te&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&Te){let fe;e.iGM(fe=e.CRH())&&(Ie.child=fe.first),e.iGM(fe=e.CRH())&&(Ie.matSort=fe.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Te,Ie){1&Te&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(Se){return Ie.exportData(Se)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Ae,2,3,"th",4),e.YNc(5,q,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,he,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,De,3,3,"th",7),e.YNc(11,T,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,N,1,0,"th",12),e.YNc(14,ee,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,de,3,3,"th",12),e.YNc(17,ce,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Fe,3,3,"th",7),e.YNc(20,Ue,2,1,"td",10),e.BQk(),e.YNc(21,Xe,1,0,"tr",15),e.YNc(22,Ve,1,10,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.YNc(23,ve,3,3,"perun-web-apps-alert",17),e.YNc(24,Oe,3,3,"perun-web-apps-alert",17)),2&Te&&(e.Q6J("hidden",void 0===Ie.services||0===Ie.services.length||0===Ie.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",Ie.pageSizeOptions)("dataLength",Ie.dataSource.filteredData.length)("tableId",Ie.tableId),e.xp6(1),e.Q6J("dataSource",Ie.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",Ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ie.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ie.dataSource.filteredData.length&&void 0!==Ie.services&&0!==Ie.services.length),e.xp6(1),e.Q6J("ngIf",void 0===Ie.services||0===Ie.services.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,b.nU,R.O5,I.Hw,m.gM,_.as,_.XQ,_.nj,_.Gk,O.YH,P.rH,W.w],pipes:[ie.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),D})()},64877:(Qe,be,p)=>{"use strict";p.d(be,{C:()=>Ke});var e=p(84847),b=p(32075),_=p(20449),w=p(9244),g=p(32080),A=p(5e3),E=p(18750),C=p(69808),R=p(77446),I=p(25245),m=p(29772),O=p(50301),P=p(98380),W=p(51062),ie=p(31359),Ae=p(9954),q=p(16119),Me=p(7598);function he(Je,nt){if(1&Je){const je=A.EpF();A.TgZ(0,"mat-checkbox",21),A.NdJ("change",function(Ce){A.CHM(je);const re=A.oxw(2);return Ce?re.masterToggle():null}),A.qZA()}if(2&Je){const je=A.oxw(2);A.Q6J("aria-label",je.checkboxLabel())("checked",je.selection.hasValue()&&je.isAllSelected())("indeterminate",je.selection.hasValue()&&!je.isAllSelected())}}function De(Je,nt){if(1&Je&&(A.TgZ(0,"th",19),A.YNc(1,he,1,3,"mat-checkbox",20),A.qZA()),2&Je){const je=A.oxw();A.xp6(1),A.Q6J("ngIf",je.selection.isMultipleSelection())}}function T(Je,nt){if(1&Je){const je=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(Ce){const k=A.CHM(je).$implicit,pe=A.oxw();return Ce?pe.selection.toggle(k):null})("click",function(Ce){return Ce.stopPropagation()}),A.ALo(2,"lowercase"),A.qZA(),A.qZA()}if(2&Je){const je=nt.$implicit,Q=A.oxw();A.xp6(1),A.Q2q("data-cy","",A.lcZ(2,4,je.firstName),"-checkbox"),A.Q6J("aria-label",Q.checkboxLabel(je))("checked",Q.selection.isSelected(je))("disabled",Q.disableSelf&&je.id===Q.principalId&&!Q.authResolver.isPerunAdmin())}}function N(Je,nt){1&Je&&A._UZ(0,"th",24)}function j(Je,nt){1&Je&&(A.TgZ(0,"mat-icon",28),A.ALo(1,"translate"),A._uU(2," account_circle "),A.qZA()),2&Je&&A.s9C("matTooltip",A.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Y(Je,nt){if(1&Je&&(A._UZ(0,"mat-icon",29),A.ALo(1,"translate")),2&Je){const je=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,2,"MANAGERS_LIST.SERVICE")),A.Q6J("svgIcon",je.svgIcon)}}function ee(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A.YNc(1,j,3,3,"mat-icon",26),A.YNc(2,Y,2,4,"mat-icon",27),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.Q6J("ngIf",!je.serviceUser),A.xp6(1),A.Q6J("ngIf",je.serviceUser)}}function de(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function ce(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.hij(" ",je.id," ")}}function Fe(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ue(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,je))}}function Xe(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function te(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userVo"),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,je))}}function Ve(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ve(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userEmail"),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,je))}}function Oe(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function z(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userLogins"),A.qZA()),2&Je){const je=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,je))}}function D(Je,nt){1&Je&&A._UZ(0,"tr",32)}const ge=function(Je){return["/admin/users",Je]},Te=function(Je){return["/myProfile/service-identities",Je]};function Ie(Je,nt){if(1&Je&&A._UZ(0,"tr",33),2&Je){const je=nt.$implicit,Q=A.oxw();A.ekj("cursor-pointer",!Q.disableRouting),A.Q6J("perunWebAppsForceRouterLink",Q.disableRouting?null:Q.routeToAdmin?A.VKq(4,ge,je.id):A.VKq(6,Te,je.id))("perunWebAppsMiddleClickRouterLink",Q.disableRouting?null:Q.routeToAdmin?A.VKq(8,ge,je.id):A.VKq(10,Te,je.id))}}function fe(Je,nt){if(1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je){const je=A.oxw();A.xp6(1),A.hij(" ",je.noUsersFoundLabel?je.noUsersFoundLabel:A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Se(Je,nt){1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Ke=(()=>{class Je{constructor(je,Q,Ce){this.authResolver=je,this.tableCheckbox=Q,this.storeService=Ce,this.selection=new _.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=w.f7}set matSort(je){this.sort=je}static getDataForColumn(je,Q){var Ce;switch(Q){case"id":return je.id.toString();case"user":return je.serviceUser?"true":"false";case"name":return je?je.lastName?je.lastName:null!==(Ce=je.firstName)&&void 0!==Ce?Ce:"":"";case"organization":return(0,w.OV)(je);case"email":return(0,w.kN)(je);case"logins":return(0,w.lt)(je);default:return""}}static getExportDataForColumn(je,Q){switch(Q){case"id":return je.id.toString();case"user":return je.serviceUser?"service-user":"user";case"name":return je?(0,w.bD)(je):"";case"organization":return(0,w.OV)(je);case"email":return(0,w.kN)(je);case"logins":return(0,w.lt)(je);default:return""}}exportData(je){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Je.getExportDataForColumn),je)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(je,Q)=>(0,w.Sd)(je,Q,this.displayedColumns,Je.getDataForColumn),this.dataSource.sortData=(je,Q)=>(0,w.pR)(je,Q,Je.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(je=>"id"!==je)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(je){return je?`${this.selection.isSelected(je)?"deselect":"select"} row ${je.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Je.\u0275fac=function(je){return new(je||Je)(A.Y36(g.x4),A.Y36(g.UA),A.Y36(g.d6))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-users-list"]],viewQuery:function(je,Q){if(1&je&&(A.Gf(w.l9,7),A.Gf(e.YE,7)),2&je){let Ce;A.iGM(Ce=A.CRH())&&(Q.child=Ce.first),A.iGM(Ce=A.CRH())&&(Q.matSort=Ce.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[A.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(je,Q){1&je&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(re){return Q.exportData(re)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,De,2,1,"th",4),A.YNc(5,T,3,6,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,N,1,0,"th",7),A.YNc(8,ee,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,de,3,3,"th",10),A.YNc(11,ce,2,1,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Fe,3,3,"th",10),A.YNc(14,Ue,3,3,"td",12),A.BQk(),A.ynx(15,13),A.YNc(16,Xe,3,3,"th",10),A.YNc(17,te,3,3,"td",12),A.BQk(),A.ynx(18,14),A.YNc(19,Ve,3,3,"th",10),A.YNc(20,ve,3,3,"td",12),A.BQk(),A.ynx(21,15),A.YNc(22,Oe,3,3,"th",10),A.YNc(23,z,3,3,"td",12),A.BQk(),A.YNc(24,D,1,0,"tr",16),A.YNc(25,Ie,1,12,"tr",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,fe,3,3,"perun-web-apps-alert",18),A.YNc(27,Se,3,3,"perun-web-apps-alert",18)),2&je&&(A.Q6J("hidden",0===Q.users.length||!Q.dataSource||0===Q.dataSource.filteredData.length),A.xp6(1),A.Q6J("dataLength",Q.dataSource.filteredData.length)("pageSizeOptions",Q.pageSizeOptions)("tableId",Q.tableId),A.xp6(1),A.Q6J("dataSource",Q.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",Q.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Q.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===Q.users.length),A.xp6(1),A.Q6J("ngIf",0===Q.dataSource.filteredData.length&&0!==Q.users.length))},directives:[E.l,b.BZ,e.YE,b.w1,b.fO,b.ge,C.O5,R.oG,b.Dz,b.ev,I.Hw,m.gM,e.nU,b.as,b.XQ,b.nj,b.Gk,O.Kd,O.YH,P.w],pipes:[C.i8,W.X$,ie.d,Ae.Z,q.S,Me.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Je})()},57706:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translateService=A,this.returnData=""}transform(A){switch(A){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(E=>{this.returnData=E});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(E=>{this.returnData=E});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(E=>{this.returnData=E});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(E=>{this.returnData=E});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(E=>{this.returnData=E});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(E=>{this.returnData=E});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(E=>{this.returnData=E});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(E=>{this.returnData=E});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(E=>{this.returnData=E});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(E=>{this.returnData=E});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(E=>{this.returnData=E});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(E=>{this.returnData=E});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(E=>{this.returnData=E});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(E=>{this.returnData=E});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(E=>{this.returnData=E});break;default:return A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:(Qe,be,p)=>{"use strict";p.d(be,{h:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translate=A,this.returnData=""}transform(A){switch(A){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(E=>{this.returnData=`done${E}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(E=>{this.returnData=`clear${E}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(E=>{this.returnData=`contact_mail ${E}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(E=>{this.returnData=`gavel${E}`});break;default:this.returnData=A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:(Qe,be,p)=>{"use strict";p.d(be,{u:()=>_});var e=p(32080),b=p(5e3);let _=(()=>{class w{constructor(A){this.storeService=A,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(A,E,C){return!!(this.storeService.get("enforce_consents")&&C&&E)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((I,m)=>I||A.startsWith(m),!1)}}return w.\u0275fac=function(A){return new(A||w)(b.Y36(e.d6,16))},w.\u0275pipe=b.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:(Qe,be,p)=>{"use strict";p.d(be,{A:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.substring(40)}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"extSourceType",type:_,pure:!0}),_})()},14264:(Qe,be,p)=>{"use strict";p.d(be,{m:()=>le});var e=p(69808),b=p(11735),_=p(91079),w=p(47423),g=p(77446),A=p(90508),E=p(86856),C=p(48966),R=p(4834),I=p(81125),m=p(67322),O=p(25245),P=p(98833),W=p(86087),ie=p(85899),Ae=p(20773),q=p(79814),Me=p(74107),he=p(2638),De=p(32368),T=p(57261),N=p(84847),j=p(32075),Y=p(53251),ee=p(29772),de=p(90149),ce=p(9224),Fe=p(27544),Ue=p(26688),Xe=p(92181),te=p(92081),Ve=p(93075),ve=p(73228),Oe=p(36769),z=p(32080),D=p(5e3),ge=p(50301),Te=p(51062);const Ie=["collapse"],fe=function(){return{color:"linkTextColor"}};function Se(Le,ct){1&Le&&(D.TgZ(0,"mat-icon",14),D._uU(1,"keyboard_arrow_right"),D.qZA()),2&Le&&D.Q6J("ngStyle",D.DdM(1,fe))}function Ke(Le,ct){1&Le&&(D.TgZ(0,"mat-icon",14),D._uU(1,"keyboard_arrow_down"),D.qZA()),2&Le&&D.Q6J("ngStyle",D.DdM(1,fe))}function Je(Le,ct){if(1&Le&&(D.TgZ(0,"span",12),D.YNc(1,Se,2,2,"mat-icon",13),D.YNc(2,Ke,2,2,"mat-icon",13),D.qZA()),2&Le){const bt=D.oxw().$implicit,xt=D.oxw(2);D.xp6(1),D.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),D.xp6(1),D.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const nt=function(Le,ct){return{color:Le,"border-color":ct}};function je(Le,ct){if(1&Le){const bt=D.EpF();D.TgZ(0,"a",17),D.NdJ("click",function(){const It=D.CHM(bt).$implicit;return D.oxw(4).navigate(It.url)}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&Le){const bt=ct.$implicit,xt=D.oxw(4);D.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),D.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",D.WLB(9,nt,xt.linkTextColor,xt.linkTextColor)),D.xp6(1),D.hij(" ",D.lcZ(2,7,bt.label)," ")}}function Q(Le,ct){if(1&Le&&(D.TgZ(0,"div",15),D.YNc(1,je,3,12,"a",16),D.qZA()),2&Le){const bt=D.oxw().$implicit;D.Q6J("@rollInOut",void 0),D.xp6(1),D.Q6J("ngForOf",null==bt?null:bt.children)}}function Ce(Le,ct){if(1&Le){const bt=D.EpF();D.TgZ(0,"div"),D.TgZ(1,"a",9),D.NdJ("click",function(){const It=D.CHM(bt).$implicit;return D.oxw(2).navigate(It.url)}),D._uU(2),D.ALo(3,"translate"),D.YNc(4,Je,3,2,"span",10),D.qZA(),D.YNc(5,Q,2,2,"div",11),D.qZA()}if(2&Le){const bt=ct.$implicit,xt=D.oxw(2);D.xp6(1),D.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),D.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",D.WLB(11,nt,xt.linkTextColor,xt.linkTextColor)),D.xp6(1),D.hij(" ",D.lcZ(3,9,bt.label)," "),D.xp6(2),D.Q6J("ngIf",bt.children),D.xp6(1),D.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}function re(Le,ct){if(1&Le&&(D.TgZ(0,"div"),D.YNc(1,Ce,6,14,"div",8),D.qZA()),2&Le){const bt=D.oxw();D.Q6J("@rollInOut",void 0),D.xp6(1),D.Q6J("ngForOf",bt.item.links)}}const k=function(Le,ct){return{background:Le,"border-top":ct}},pe=function(Le){return{color:Le}},Z=function(){return{color:"currentColor"}},Ne=function(Le){return{background:Le}};let oe=(()=>{class Le{constructor(bt,xt){this.router=bt,this.store=xt,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(bt,xt){return new RegExp(xt).test(bt)}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return Le.\u0275fac=function(bt){return new(bt||Le)(D.Y36(b.F0),D.Y36(z.d6))},Le.\u0275cmp=D.Xpm({type:Le,selectors:[["app-side-menu-item"]],viewQuery:function(bt,xt){if(1&bt&&D.Gf(Ie,5),2&bt){let Yt;D.iGM(Yt=D.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(bt,xt){1&bt&&(D.TgZ(0,"div",0),D.TgZ(1,"div",1),D.NdJ("click",function(){return xt.toggle()}),D.TgZ(2,"div",2),D.TgZ(3,"a",3),D.TgZ(4,"div"),D._UZ(5,"mat-icon",4),D.qZA(),D.TgZ(6,"div",5),D._uU(7),D.ALo(8,"translate"),D.qZA(),D.qZA(),D.qZA(),D.qZA(),D.TgZ(9,"div"),D.TgZ(10,"div",6),D.YNc(11,re,2,2,"div",7),D.qZA(),D.qZA(),D.qZA()),2&bt&&(D.xp6(1),D.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",D.WLB(18,k,xt.item.backgroundColorCss,xt.index?xt.dividerStyle:"none")),D.xp6(1),D.Gre("entity-menu-item-link ",xt.item.labelClass,""),D.Q6J("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),D.xp6(1),D.Q6J("ngStyle",D.VKq(21,pe,xt.item.textColorCss)),D.xp6(2),D.Q6J("ngStyle",D.DdM(23,Z))("svgIcon",xt.item.icon),D.xp6(2),D.Oqu(D.lcZ(8,16,xt.item.label)),D.xp6(2),D.Q6J("@openClose",xt.expanded?"open":"closed"),D.xp6(1),D.Gre("side-entity-menu ",xt.item.linksClass,""),D.Q6J("ngStyle",D.VKq(24,Ne,xt.linkBgColor)),D.xp6(1),D.Q6J("ngIf",xt.showLinks))},directives:[A.wG,e.PC,ge.YH,O.Hw,e.O5,e.sg,e.mk],pipes:[Te.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[Oe.BQ,Oe.Ly]}}),Le})(),_e=(()=>{class Le{transform(bt){if(void 0===bt.value)return"";switch(bt.type){case"java.lang.String":return bt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(bt.value);case"java.util.ArrayList":return this.whenValueIsArray(bt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(bt.value)}}whenValueIsArray(bt){let xt="";return bt.forEach(function(Yt){xt=xt.concat(Yt+", ")}),xt}whenValueIsMap(bt){let xt="";return bt.forEach((Yt,It)=>{xt=xt.concat(It+": "+Yt+", ")}),xt}}return Le.\u0275fac=function(bt){return new(bt||Le)},Le.\u0275pipe=D.Yjl({name:"anyToString",type:Le,pure:!0}),Le})();const $=["collapse"],V=function(){return{color:"linkTextColor"}};function i(Le,ct){1&Le&&(D.TgZ(0,"mat-icon",12),D._uU(1,"keyboard_arrow_right"),D.qZA()),2&Le&&D.Q6J("ngStyle",D.DdM(1,V))}function a(Le,ct){1&Le&&(D.TgZ(0,"mat-icon",12),D._uU(1,"keyboard_arrow_down"),D.qZA()),2&Le&&D.Q6J("ngStyle",D.DdM(1,V))}function d(Le,ct){if(1&Le&&(D.TgZ(0,"span",10),D.YNc(1,i,2,2,"mat-icon",11),D.YNc(2,a,2,2,"mat-icon",11),D.qZA()),2&Le){const bt=D.oxw().$implicit,xt=D.oxw();D.xp6(1),D.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),D.xp6(1),D.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const l=function(Le,ct){return{color:Le,"border-color":ct}};function s(Le,ct){if(1&Le){const bt=D.EpF();D.TgZ(0,"a",14),D.NdJ("click",function(){const It=D.CHM(bt).$implicit;return D.oxw(3).navigate(It.url)}),D._uU(1),D.ALo(2,"translate"),D.qZA()}if(2&Le){const bt=ct.$implicit,xt=D.oxw(3);D.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),D.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",D.WLB(9,l,xt.linkTextColor,xt.linkTextColor))("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",bt.url),D.xp6(1),D.hij(" ",D.lcZ(2,7,bt.label)," ")}}function r(Le,ct){if(1&Le&&(D.TgZ(0,"div"),D.YNc(1,s,3,12,"a",13),D.qZA()),2&Le){const bt=D.oxw().$implicit;D.Q6J("@rollInOut",void 0),D.xp6(1),D.Q6J("ngForOf",null==bt?null:bt.children)}}function t(Le,ct){if(1&Le){const bt=D.EpF();D.TgZ(0,"div"),D.TgZ(1,"a",7),D.NdJ("click",function(){const It=D.CHM(bt).$implicit;return D.oxw().navigate(It.url)}),D._uU(2),D.ALo(3,"translate"),D.YNc(4,d,3,2,"span",8),D.qZA(),D.YNc(5,r,2,2,"div",9),D.qZA()}if(2&Le){const bt=ct.$implicit,xt=D.oxw();D.xp6(1),D.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),D.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",D.WLB(11,l,xt.linkTextColor,xt.linkTextColor)),D.xp6(1),D.hij(" ",D.lcZ(3,9,bt.label)," "),D.xp6(2),D.Q6J("ngIf",bt.children),D.xp6(1),D.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const n=function(Le){return{background:Le}},o=function(Le){return{color:Le}},c=function(){return{color:"currentColor"}};let h=(()=>{class Le{constructor(bt,xt){this.router=bt,this.store=xt,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(bt,xt){return new RegExp(xt).test(bt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return Le.\u0275fac=function(bt){return new(bt||Le)(D.Y36(b.F0),D.Y36(z.d6))},Le.\u0275cmp=D.Xpm({type:Le,selectors:[["app-side-menu-root-item"]],viewQuery:function(bt,xt){if(1&bt&&D.Gf($,5),2&bt){let Yt;D.iGM(Yt=D.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[D.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(bt,xt){1&bt&&(D.TgZ(0,"div",0),D.TgZ(1,"div",1),D.NdJ("click",function(){return xt.toggle()}),D.TgZ(2,"div"),D.TgZ(3,"a",2),D.TgZ(4,"div"),D._UZ(5,"mat-icon",3),D.qZA(),D.TgZ(6,"div",4),D._uU(7),D.ALo(8,"translate"),D.qZA(),D.qZA(),D.qZA(),D.qZA(),D.TgZ(9,"div"),D.TgZ(10,"div",5),D.YNc(11,t,6,14,"div",6),D.qZA(),D.qZA(),D.qZA()),2&bt&&(D.s9C("id",xt.id),D.xp6(1),D.ekj("root-header-activated",xt.isActive(xt.currentUrl,xt.item.baseColorClassRegex)),D.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",D.VKq(21,n,xt.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),D.xp6(1),D.Gre("entity-menu-item-link ",xt.item.labelClass,""),D.xp6(1),D.Q6J("ngStyle",D.VKq(23,o,xt.item.textColorCss)),D.xp6(2),D.Q6J("ngStyle",D.DdM(25,c))("svgIcon",xt.item.icon),D.xp6(2),D.Oqu(D.lcZ(8,19,xt.item.label)),D.xp6(2),D.Q6J("@openClose",xt.expanded?"open":"closed"),D.xp6(1),D.Gre("side-entity-menu ",xt.item.linksClass,""),D.Q6J("ngStyle",D.VKq(26,n,xt.linkBgColor)),D.xp6(1),D.Q6J("ngForOf",xt.item.links))},directives:[A.wG,e.PC,ge.YH,O.Hw,e.sg,e.mk,e.O5],pipes:[Te.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[Oe.BQ,Oe.Ly]}}),Le})();var x=p(44409),We=p(53435),At=p(63189),Ht=p(37677),lt=p(387),Ut=p(11243),mt=p(19516),Lt=p(43586),we=p(14623),ze=p(9244),U=p(28499),L=p(70844),ne=p(16074);let le=(()=>{class Le{constructor(bt){this.translate=bt,bt.addLangs(["en","cs"])}}return Le.\u0275fac=function(bt){return new(bt||Le)(D.LFG(Te.sK))},Le.\u0275mod=D.oAB({type:Le}),Le.\u0275inj=D.cJS({providers:[_e,Ht.A,L.u],imports:[[e.ez,b.Bz,_.Bb,P.c,m.lN,Ve.UX,Ve.u5,O.Ps,he.SJ,I.To,Te.aw.forChild({}),w.ot,N.JX,j.p0,Y.Nh,de.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,Ae.Cq,ie.Cv,ee.AV,De.rP,E.FA,A.XK,q.Fk,R.t,A.si,W.TU,ce.QW,te.T5,x._t,ce.QW,Ue.Hi,Xe.Tx,We.Cl,At.r,Fe.g,lt.ez,Ut.r,mt.d4,Lt.Co,we.ie,ze.Je,U.E3,ne.jD],Lt.Co,_.Bb,P.c,b.Bz,Ve.UX,Ve.u5,O.Ps,he.SJ,Te.aw,N.JX,j.p0,Y.Nh,de.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,Ae.Cq,ie.Cv,ee.AV,De.rP,E.FA,A.XK,q.Fk,R.t,ce.QW,te.T5,A.si,W.TU,x._t,Ue.Hi,Ue.Hi,I.To,Xe.Tx,We.Cl,We.Cl,We.Cl,Ut.r]}),Le})();D.B6R(ve.V,[h,e.sg,oe,e.O5],[])},69024:(Qe,be,p)=>{"use strict";p.d(be,{V:()=>C});var e=p(32080),b=p(32105),_=p(9244),w=p(19516),g=p(64080),A=p(5e3),E=p(51062);let C=(()=>{class R{constructor(m,O,P,W,ie,Ae,q,Me){this.translate=m,this.authResolver=O,this.store=P,this.apiRequest=W,this.attributesManager=ie,this.notificator=Ae,this.guiAuthResolver=q,this.routePolicyService=Me,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(m){return{label:m.name,baseLink:[`/facilities/${m.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(m),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(m,O){const P=(new w.r5).transform(m,O);return{label:m.name,baseLink:[P],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(P,O?"/organizations":"/facilities",m),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(m){return{label:m.name,baseLink:[`/organizations/${m.voId}/groups/${m.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(m),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(m,O=!1,P=!1){return{label:m.name,baseLink:[`/organizations/${m.id}`],links:this.getVoLinks(m,P),colorClass:"vo-item",icon:O?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(m){return{label:(0,_.bD)(m.user),baseLink:[`/organizations/${m.voId}/members/${m.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(m),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(m,O,P){return{label:(0,_.bD)(m),baseLink:[O],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(m,O,P),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(m){return{label:(0,_.bD)(m),baseLink:[`/myProfile/service-identities/${m.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${m.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${m.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(m){return{label:m.name,baseLink:[`/admin/services/${m.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${m.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${m.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${m.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(m,O){const P=[];if(P.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${m.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",m)&&P.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${m.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",m)&&P.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${m.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",m)){const W=[];this.routePolicyService.canNavigate("organizations-resources-preview",m)&&W.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${m.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",m)&&W.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${m.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",m)&&W.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${m.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),P.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${m.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:W,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",m)&&P.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${m.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",m)&&P.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${m.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",m)&&P.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${m.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",m)&&P.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",m)&&P.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",m)){const W=[];this.routePolicyService.canNavigate("organizations-settings-expiration",m)&&W.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",m)&&W.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",m)&&W.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",m)&&W.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",m)&&W.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",m)&&W.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${m.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",m)&&O&&W.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${m.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),P.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${m.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:W,showChildrenRegex:"/organizations/\\d+/settings"})}return P}getUserLinks(m,O,P){const W=[];return W.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[O],activatedRegex:`${P}$`}),W.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${O}/organizations`],activatedRegex:`${P}/organizations`}),W.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${O}/groups`],activatedRegex:`${P}/groups`}),W.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${O}/accounts`],activatedRegex:`${P}/accounts`}),W.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${O}/identities`],activatedRegex:`${P}/identities`}),W.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${O}/facilities`],activatedRegex:`${P}/facilities`}),W.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${O}/resources`],activatedRegex:`${P}/resources`}),W.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${O}/attributes`],activatedRegex:`${P}/attributes`}),W.push({label:"MENU_ITEMS.USER.ROLES",url:[`${O}/roles`],activatedRegex:`^${O}/roles`}),W.push(m.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${O}/associated-users`],activatedRegex:`^${O}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${O}/service-identities`],activatedRegex:`^${O}/service-identities`}),W}getMemberLinks(m){const O=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${m.voId}/members/${m.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",m)&&O.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`/organizations/${m.voId}/members/${m.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",m)&&O.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`/organizations/${m.voId}/members/${m.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",m)&&O.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${m.voId}/members/${m.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",m)&&O.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${m.voId}/members/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),O}getFacilityLinks(m){const O=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${m.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",m)&&O.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${m.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",m)&&O.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${m.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",m)&&O.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${m.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",m)&&O.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${m.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",m)&&O.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${m.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",m)&&O.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${m.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",m)&&O.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",m.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",m)){const P=[];this.routePolicyService.canNavigate("facilities-settings-owners",m)&&P.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",m.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",m)&&P.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",m.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",m)&&P.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${m.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",m)&&P.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",m.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),O.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",m.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:P,showChildrenRegex:"/facilities/\\d+/settings"})}return O}getGroupLinks(m){const O=[],P=[];return O.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${m.voId}/groups/${m.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",m)&&O.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${m.voId}/groups/${m.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",m)&&"members"!==m.name&&O.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${m.voId}/groups/${m.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",m)&&O.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",m)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",m)&&O.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${m.voId}/groups/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",m)&&O.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${m.voId}/groups/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(m.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{P.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${m.voId}/groups/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},W=>{"HttpErrorResponse"!==W.name&&this.notificator.showRPCError(W)}),this.routePolicyService.canNavigate("groups-settings-managers",m)&&P.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",m)&&P.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${m.voId}/groups/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",m)&&P.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",m)&&P.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",m)&&P.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==P.length&&O.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${m.voId}/groups/${m.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:P,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),O}getResourceLinks(m,O,P){const W=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[m],activatedRegex:`${O}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",P)&&W.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[m,"groups"],activatedRegex:`${O}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",P)&&W.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[m,"services"],activatedRegex:`${O}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",P)&&W.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[m,"members"],activatedRegex:`${O}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",P)&&W.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[m,"tags"],activatedRegex:`${O}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",P)&&W.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[m,"attributes"],activatedRegex:`${O}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",P)&&W.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[m,"settings"],activatedRegex:`${O}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[m,"settings","managers"],activatedRegex:`${O}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${O}/\\d+/resources/\\d+/settings`}),W}}return R.\u0275fac=function(m){return new(m||R)(A.LFG(E.sK),A.LFG(e.x4),A.LFG(e.d6),A.LFG(e.F5),A.LFG(b.H8),A.LFG(e.V6),A.LFG(e.x4),A.LFG(e.Ip))},R.\u0275prov=A.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})()},73228:(Qe,be,p)=>{"use strict";p.d(be,{V:()=>Ae});var e=p(72077),b=p(69024),_=p(32080),w=p(36769),g=p(5e3),A=p(77968);function E(q,Me){if(1&q&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&q){const he=Me.$implicit,De=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",De)("item",he)("sideNav",T.sideNav)}}function C(q,Me){if(1&q&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&q){const he=Me.$implicit,De=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",De)("item",he)("showLinks",De===T.accessItems.length-1)("sideNav",T.sideNav)}}function R(q,Me){if(1&q&&g._UZ(0,"app-side-menu-root-item",2),2&q){const he=g.oxw();g.Q6J("id","facilities-item-btn")("item",he.facilityItem)("sideNav",he.sideNav)}}function I(q,Me){if(1&q&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&q){const he=Me.$implicit,De=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",De)("item",he)("showLinks",De===T.facilityItems.length-1)("sideNav",T.sideNav)}}function m(q,Me){if(1&q&&(g.TgZ(0,"div"),g.YNc(1,I,2,5,"div",3),g.qZA()),2&q){const he=g.oxw();g.xp6(1),g.Q6J("ngForOf",he.facilityItems)}}function O(q,Me){if(1&q&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&q){const he=Me.$implicit,De=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",De)("item",he)("showLinks",De===T.userItems.length-1)("sideNav",T.sideNav)}}function P(q,Me){if(1&q&&g._UZ(0,"app-side-menu-root-item",7),2&q){const he=g.oxw();g.Q6J("id","admin-item-btn")("item",he.adminItem)("showOpen",he.adminItemOpened)("sideNav",he.sideNav)}}function W(q,Me){if(1&q&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&q){const he=Me.$implicit,De=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",De)("item",he)("showLinks",!0)("sideNav",T.sideNav)}}function ie(q,Me){if(1&q&&(g.TgZ(0,"div"),g.YNc(1,W,2,5,"div",3),g.qZA()),2&q){const he=g.oxw();g.xp6(1),g.Q6J("ngForOf",he.adminItems)}}let Ae=(()=>{class q{constructor(he,De,T){this.sideMenuService=he,this.sideMenuItemService=De,this.authResolver=T,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(he,De){return he.label===De.label&&he.labelClass===De.labelClass}static areSameLinks(he,De){if(he.links.length!==De.links.length)return!1;for(let T=0;TDe.length?he.length:De.length;for(let N=0;Nhe.length-1)he.push(De[N]);else{if(N>De.length-1){const j=he.length;for(let Y=0;Y{this.setFacilityItems(he)}),this.sideMenuService.accessItemsChange.subscribe(he=>{this.setAccessItems(he)}),this.sideMenuService.adminItemsChange.subscribe(he=>{this.setAdminItems(he)}),this.sideMenuService.userItemsChange.subscribe(he=>{this.setUserItems(he)}),this.sideMenuService.homeItemsChange.subscribe(he=>{this.setHomeItems(he)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.adminItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,q.setNewItems(this.homeItems,[]),q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,q.setNewItems(this.accessItems,[]),q.setNewItems(this.facilityItems,[]),q.setNewItems(this.adminItems,[])}setHomeItems(he){this.resetExceptHome(),q.setNewItems(this.homeItems,he)}setFacilityItems(he){this.resetExceptFacility(),q.setNewItems(this.facilityItems,he)}setAccessItems(he){this.resetExceptAccess(),q.setNewItems(this.accessItems,he)}setUserItems(he){this.userItemOpened=0===he.length,this.resetExceptUser(),q.setNewItems(this.userItems,he)}setAdminItems(he){this.adminItemOpened=0===he.length,this.resetExceptAdmin(),q.setNewItems(this.adminItems,he)}}return q.\u0275fac=function(he){return new(he||q)(g.Y36(A.D),g.Y36(b.V),g.Y36(_.x4))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(he,De){1&he&&(g.TgZ(0,"div",0),g.TgZ(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,E,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,C,2,5,"div",3),g.qZA(),g.YNc(7,R,1,3,"app-side-menu-root-item",5),g.YNc(8,m,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,O,2,5,"div",3),g.YNc(11,P,1,4,"app-side-menu-root-item",8),g.YNc(12,ie,2,1,"div",6),g.qZA(),g.qZA()),2&he&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",De.homeItem)("sideNav",De.sideNav),g.xp6(1),g.Q6J("ngForOf",De.homeItems),g.xp6(1),g.Q6J("item",De.accessItem)("id","access-item-btn")("sideNav",De.sideNav),g.xp6(2),g.Q6J("ngForOf",De.accessItems),g.xp6(1),g.Q6J("ngIf",De.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",De.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",De.userItem)("showOpen",De.userItemOpened)("sideNav",De.sideNav),g.xp6(1),g.Q6J("ngForOf",De.userItems),g.xp6(1),g.Q6J("ngIf",De.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",De.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[w.Ly]}}),q})()},86511:(Qe,be,p)=>{"use strict";p.d(be,{A:()=>w});var e=p(32080),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.notificator=E,this.translate=C}setDialogRef(E){this.dialogRef=E}setType(E){this.entityType=E}getType(){return this.entityType}createCandidate(E){return{userExtSource:E.userExtSource,additionalUserExtSources:E.additionalUserExtSources,attributes:E.attributes,firstName:E.firstName,lastName:E.lastName,middleName:E.middleName,titleBefore:E.titleBefore,titleAfter:E.titleAfter,id:E.id}}getFormattedGroup(E){return{id:E.id,beanName:E.beanName,name:E.name,voId:E.voId}}success(E){this.notificator.showSuccess(this.translate.instant(E)),this.dialogRef.close(!0)}getCandidateWithError(E,C){const R=C.error,I=R.message.split(":").splice(1).join();return{candidate:E,errorName:R.name,errorMsg:I}}}return g.\u0275fac=function(E){return new(E||g)(b.LFG(e.V6),b.LFG(_.sK))},g.\u0275prov=b.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>Lt});var e=p(5e3),b=p(44409),_=p(48966),w=p(47423),g=p(51062);let A=(()=>{class we{constructor(U){this.dialogRef=U}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return we.\u0275fac=function(U){return new(U||we)(e.Y36(_.so))},we.\u0275cmp=e.Xpm({type:we,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(U,L){1&U&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1),e.TgZ(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.TgZ(13,"div",4),e.TgZ(14,"button",5),e.NdJ("click",function(){return L.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return L.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.qZA()),2&U&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[_.uh,_.xY,_.H8,w.lW],pipes:[g.X$],styles:[""]}),we})();var E=p(32080),C=p(83491),R=p(9244),I=p(11735),m=p(69808),O=p(20773),P=p(32075),W=p(25245),ie=p(29772),Ae=p(93075),q=p(21963),Me=p(28820),he=p(98380),De=p(57706),T=p(64597);const N=["table"];function j(we,ze){1&we&&e._UZ(0,"mat-spinner",3)}function Y(we,ze){1&we&&e._UZ(0,"th",24)}function ee(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("mousedown",function(){return e.CHM(U),e.oxw(2).dragDisabled=!1}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA(),e.qZA(),e.qZA()}}function de(we,ze){1&we&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function ce(we,ze){if(1&we&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.AsE(" ",U.shortname,"",U.required?"*":""," ")}}function Fe(we,ze){1&we&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Ue(we,ze){if(1&we&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,U.type)," ")}}function Xe(we,ze){1&we&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function te(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",L.disabledTooltip(U)),e.xp6(3),e.hij(" ",L.disabledHiddenDependency(U,U.disabled,U.disabledDependencyItemId)," ")}}function Ve(we,ze){if(1&we&&(e.TgZ(0,"td",28),e.YNc(1,te,5,2,"div",29),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.disabled)}}function ve(we,ze){1&we&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function Oe(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",L.hiddenTooltip(U)),e.xp6(3),e.hij(" ",L.disabledHiddenDependency(U,U.hidden,U.hiddenDependencyItemId)," ")}}function z(we,ze){if(1&we&&(e.TgZ(0,"td",28),e.YNc(1,Oe,5,2,"div",29),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.hidden)}}function D(we,ze){1&we&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function ge(we,ze){1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function Te(we,ze){1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",32),e._UZ(3,"br"),e._UZ(4,"input",31),e.qZA(),e.qZA())}function Ie(we,ze){if(1&we&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&we){const U=ze.$implicit;e.xp6(2),e.hij(" ",U,"")}}function fe(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Ie,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA(),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",L.getLocalizedOptions(U)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Se(we,ze){if(1&we&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",L.getLocalizedLabel(U),e.oJD)}}function Ke(we,ze){if(1&we&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.hij(" ",U," ")}}function Je(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"select"),e.YNc(2,Ke,2,1,"option",33),e.qZA(),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",L.getLocalizedOptions(U))}}function nt(we,ze){1&we&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function je(we,ze){if(1&we&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.hij(" ",U," ")}}function Q(we,ze){1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function Ce(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"select",37),e.NdJ("ngModelChange",function(ne){e.CHM(U);const le=e.oxw().$implicit;return e.oxw(2).mapForCombobox[le.id]=ne}),e.YNc(2,je,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.YNc(6,Q,3,0,"div",29),e.qZA()}if(2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(1),e.Q6J("ngModel",L.mapForCombobox[U.id]),e.xp6(1),e.Q6J("ngForOf",L.getLocalizedOptions(U)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===L.mapForCombobox[U.id])}}function re(we,ze){if(1&we&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&we){const U=ze.$implicit;e.xp6(2),e.hij(" ",U," ")}}function k(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,re,3,1,"div",33),e.qZA(),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",L.getLocalizedOptions(U))}}function pe(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(2),e.hij(" ",L.getLocalizedLabel(U)," ")}}function Z(we,ze){1&we&&(e.TgZ(0,"div"),e.TgZ(1,"select",43),e.TgZ(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA(),e.qZA(),e.qZA()),2&we&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function Ne(we,ze){if(1&we&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&we){const U=e.oxw().$implicit,L=e.oxw(2);e.xp6(2),e.hij(" ",L.getLocalizedLabel(U)," ")}}function oe(we,ze){1&we&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br"),e._UZ(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br"),e._UZ(8,"input",41),e._uU(9," example group3 "),e.qZA(),e.qZA())}const _e=function(){return["Example 1","Example 2"]},$=function(we){return{id:0,beanName:"Attribute",namespace:"",value:we}};function V(we,ze){1&we&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&we&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,$,e.DdM(1,_e))))}const i=function(){return{key1:"value 1",key2:"value 2"}};function a(we,ze){1&we&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&we&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,$,e.DdM(1,i))))}function d(we,ze){if(1&we&&(e.TgZ(0,"td",25),e.YNc(1,ge,3,0,"div",29),e.YNc(2,Te,5,0,"div",29),e.YNc(3,fe,5,4,"div",29),e.YNc(4,Se,2,1,"div",29),e.YNc(5,Je,3,1,"div",29),e.YNc(6,nt,2,0,"div",29),e.YNc(7,Ce,7,6,"div",29),e.YNc(8,k,3,1,"div",29),e.YNc(9,pe,3,1,"div",29),e.YNc(10,Z,85,3,"div",29),e.YNc(11,Ne,3,1,"div",29),e.YNc(12,oe,10,0,"div",29),e.YNc(13,V,2,4,"div",29),e.YNc(14,a,2,4,"div",29),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===U.type||"VALIDATED_EMAIL"===U.type||"USERNAME"===U.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===U.type),e.xp6(1),e.Q6J("ngIf","RADIO"===U.type),e.xp6(1),e.Q6J("ngIf","HEADING"===U.type||"HTML_COMMENT"===U.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===U.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===U.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===U.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===U.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===U.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===U.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===U.type)}}function l(we,ze){1&we&&e._UZ(0,"th",24)}function s(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){return e.CHM(U),e.oxw(3).openManagingGroups()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA(),e.qZA()}2&we&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function r(we,ze){if(1&we&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",86),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type&&!U.forDelete)}}function t(we,ze){1&we&&e._UZ(0,"th",24)}function n(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(U);const ne=e.oxw().$implicit;return e.oxw(2).edit(ne)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA(),e.qZA()}2&we&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function o(we,ze){1&we&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(we,ze){if(1&we&&(e.TgZ(0,"td",25),e.YNc(1,n,4,3,"button",88),e.YNc(2,o,3,3,"div",89),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function h(we,ze){1&we&&e._UZ(0,"th",24)}function x(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(U);const ne=e.oxw().$implicit;return e.oxw(2).delete(ne)}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA(),e.qZA()}if(2&we){const U=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,U.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function We(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(U);const ne=e.oxw().$implicit;return e.oxw(2).restore(ne)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA(),e.qZA()}2&we&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function At(we,ze){if(1&we&&(e.TgZ(0,"td",25),e.YNc(1,x,5,6,"button",92),e.YNc(2,We,4,3,"button",86),e.qZA()),2&we){const U=ze.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function Ht(we,ze){1&we&&e._UZ(0,"tr",94)}function lt(we,ze){if(1&we&&e._UZ(0,"tr",95),2&we){const U=ze.$implicit,L=e.oxw(2);e.ekj("make-green",U.id<=0)("make-red",U.forDelete)("make-yellow",-1!==L.itemsChanged.indexOf(U.id)&&!U.forDelete&&U.id>0),e.Q6J("cdkDragData",U)}}function Ut(we,ze){if(1&we){const U=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"table",7,8),e.NdJ("cdkDropListDropped",function(ne){return e.CHM(U),e.oxw().drop(ne)}),e.ynx(5,9),e.YNc(6,Y,1,0,"th",10),e.YNc(7,ee,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,de,3,3,"th",10),e.YNc(10,ce,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Fe,3,3,"th",10),e.YNc(13,Ue,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,Xe,3,3,"th",15),e.YNc(16,Ve,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,ve,3,3,"th",15),e.YNc(19,z,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,D,3,3,"th",10),e.YNc(22,d,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,r,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,c,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,h,1,0,"th",10),e.YNc(31,At,3,2,"td",11),e.BQk(),e.YNc(32,Ht,1,0,"tr",22),e.YNc(33,lt,1,7,"tr",23),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&we){const U=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",U.dragDisabled)("dataSource",U.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",U.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",U.displayedColumns)}}function mt(we,ze){1&we&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&we&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Lt=(()=>{class we{constructor(U,L,ne,le){this.dialog=U,this.notificator=L,this.router=ne,this.translate=le,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(U,L,ne){let le="";if("IF_EMPTY"===L||"IF_PREFILLED"===L){const Le=null===ne?"":this.applicationFormItems.find(ct=>ct.id===ne).shortname;le="IF_EMPTY"===L?`(${this.ifEmpty} ${Le})`:`(${this.ifPrefilled} ${Le})`}return le}disabledTooltip(U){let L;switch(U.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return L=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ne=>ne.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${L} ${this.isEmpty}`;case"IF_PREFILLED":return L=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ne=>ne.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${L} ${this.isPrefilled}`}}hiddenTooltip(U){let L;switch(U.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return L=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ne=>ne.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${L} ${this.isEmpty}`;case"IF_PREFILLED":return L=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ne=>ne.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${L} ${this.isPrefilled}`}}edit(U){const L=(0,R.kZ)();L.width="600px",L.height="600px",L.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:U,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(C._,L).afterClosed().subscribe(le=>{le&&(this.itemsChanged.push(U.id),this.applicationFormItemsChange.emit())})}delete(U){const L=(0,R.kZ)();L.width="500px",this.dialog.open(A,L).afterClosed().subscribe(le=>{le&&(U.forDelete=!0,0===U.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(U),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(U){this.dragDisabled=!0;const L=this.applicationFormItems.indexOf(U.item.data);(0,b.bA)(this.applicationFormItems,L,U.currentIndex),this.itemsChanged.push(this.applicationFormItems[U.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(U){if(U.i18n[this.translate.getDefaultLang()]){const L=U.i18n[this.translate.getDefaultLang()].options;if(null!==L&&""!==L){const ne=[];for(const le of L.split("|"))ne.push(le.split("#")[1]);return ne}}return[]}getLocalizedLabel(U){return U.i18n[this.translate.getDefaultLang()]?U.i18n[this.translate.getDefaultLang()].label:U.shortname}restore(U){U.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return we.\u0275fac=function(U){return new(U||we)(e.Y36(_.uw),e.Y36(E.V6),e.Y36(I.F0),e.Y36(g.sK))},we.\u0275cmp=e.Xpm({type:we,selectors:[["app-application-form-list"]],viewQuery:function(U,L){if(1&U&&e.Gf(N,5),2&U){let ne;e.iGM(ne=e.CRH())&&(L.table=ne.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(U,L){1&U&&(e.YNc(0,j,1,0,"mat-spinner",0),e.YNc(1,Ut,34,4,"div",1),e.YNc(2,mt,3,3,"perun-web-apps-alert",2)),2&U&&(e.Q6J("ngIf",L.loading),e.xp6(1),e.Q6J("ngIf",0!==L.applicationFormItems.length&&!L.loading),e.xp6(1),e.Q6J("ngIf",0===L.applicationFormItems.length&&!L.loading))},directives:[m.O5,O.$g,P.BZ,b.Wj,P.w1,P.fO,P.ge,P.Dz,P.ev,w.lW,W.Hw,ie.gM,Ae._Y,Ae.JL,Ae.F,m.sg,Ae.YN,Ae.Kr,Ae.EJ,Ae.JJ,Ae.On,q.H,Me.$,P.as,P.XQ,P.nj,P.Gk,b.Zt,he.w],pipes:[g.X$,De.c,T.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),we})()},9146:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>n});var e=p(32105),b=p(9244),_=p(84847),w=p(32080),g=p(36787),A=p(22868),E=p(69808),C=p(5e3),R=p(10036),I=p(18750),m=p(20773),O=p(32075),P=p(25245),W=p(29772);function ie(o,c){1&o&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",1),C._uU(2,"arrow_right_alt"),C.qZA(),C.qZA())}function Ae(o,c){1&o&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",2),C._uU(2,"restore"),C.qZA(),C.qZA())}function q(o,c){1&o&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",3),C._uU(2,"nat"),C.qZA(),C.qZA())}let Me=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275cmp=C.Xpm({type:o,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(h,x){1&h&&(C.TgZ(0,"div"),C.YNc(1,ie,3,0,"div",0),C.YNc(2,Ae,3,0,"div",0),C.YNc(3,q,3,0,"div",0),C.qZA()),2&h&&(C.xp6(1),C.Q6J("ngIf","INITIAL"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EXTENSION"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EMBEDDED"===x.applicationType))},directives:[E.O5,P.Hw,W.gM],styles:[""]}),o})();var he=p(50301),De=p(11735),T=p(98380),N=p(51062),j=p(43157),Y=p(31359);function ee(o,c){1&o&&(C.TgZ(0,"div",26),C._UZ(1,"mat-spinner",27),C.qZA())}function de(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function ce(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.id)}}function Fe(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Ue(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.createdAt,"d.M.y"))}}function Xe(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function te(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.id)}}function Ve(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function ve(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.name)}}function Oe(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function z(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.id:""," ")}}function D(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function ge(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.name:""," ")}}function Te(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Ie(o,c){if(1&o&&(C.TgZ(0,"td",29),C._UZ(1,"app-application-type-icon",31),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Q6J("applicationType",h.type)}}function fe(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Se(o,c){if(1&o&&(C.TgZ(0,"td",29),C._UZ(1,"span",32),C.ALo(2,"applicationState"),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Q6J("outerHTML",C.lcZ(2,1,h.state),C.oJD)}}function Ke(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceName)}}function nt(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function je(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceType)}}function Q(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function Ce(o,c){if(1&o&&(C.TgZ(0,"div"),C._uU(1),C.qZA()),2&o){const h=C.oxw().$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function re(o,c){if(1&o&&(C._uU(0),C.ALo(1,"userFullName")),2&o){const h=C.oxw().$implicit;C.hij(" ",C.lcZ(1,1,h.user)," ")}}function k(o,c){if(1&o&&(C.TgZ(0,"td",29),C.YNc(1,Ce,2,1,"div",33),C.YNc(2,re,2,3,"ng-template",null,34,C.W1O),C.qZA()),2&o){const h=c.$implicit,x=C.MAs(3);C.xp6(1),C.Q6J("ngIf",null===h.user)("ngIfElse",x)}}function pe(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function Z(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function Ne(o,c){1&o&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function oe(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit,x=C.oxw();C.xp6(1),C.Oqu(x.getFriendlyName(h.modifiedBy))}}function _e(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function $(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.modifiedAt,"d.M.y"))}}function V(o,c){1&o&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit;C.xp6(1),C.Oqu(h.fedInfo)}}function a(o,c){if(1&o&&(C.TgZ(0,"th",30),C._uU(1),C.qZA()),2&o){const h=C.oxw().$implicit;C.xp6(1),C.Oqu(h)}}function d(o,c){if(1&o&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&o){const h=c.$implicit,x=C.oxw().$implicit,We=C.oxw();C.xp6(1),C.hij(" ",We.getValue(h.formData,x)," ")}}function l(o,c){1&o&&(C.ynx(0,35),C.YNc(1,a,2,1,"th",9),C.YNc(2,d,2,1,"td",6),C.BQk()),2&o&&C.s9C("matColumnDef",c.$implicit)}function s(o,c){1&o&&C._UZ(0,"tr",36)}function r(o,c){if(1&o&&C._UZ(0,"tr",37),2&o){const h=c.$implicit,x=C.oxw();C.ekj("cursor-pointer",!x.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",x.selectApplication(h))("routerLink",x.selectApplication(h))}}function t(o,c){1&o&&(C.TgZ(0,"perun-web-apps-alert",38),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&o&&(C.Q6J("alert_type","warn"),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let n=(()=>{class o{constructor(h,x,We){this.authResolver=h,this.tableConfigService=x,this.dynamicPaginatingService=We,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=b.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){var h,x,We,At;this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ht=>"id"!==Ht)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId()),this.dataSource.loading$.subscribe(Ht=>{if(Ht||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ut=>!this.parsedColumns.includes(Ut)),this.parsedColumns=[];const lt=this.dataSource.getData()[0];lt&&this.parseColumns(lt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){var h,x,We,At;this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId(),!0)}exportData(h){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),h)}selectApplication(h){return this.disableRouting?null:this.group?["/organizations",h.vo.id,"groups",this.group.id,"applications",h.id]:this.member?["/organizations",h.vo.id,"members",this.member.id,"applications",h.id]:["/organizations",h.vo.id,"applications",h.id]}getExportDataForColumn(h,x){var We,At,Ht,lt;switch(x){case"id":return h.id.toString();case"voId":return h.vo.id.toString();case"voName":return h.vo.name;case"groupId":return null!==(At=null===(We=h.group)||void 0===We?void 0:We.id.toString())&&void 0!==At?At:"";case"groupName":return null!==(lt=null===(Ht=h.group)||void 0===Ht?void 0:Ht.name)&&void 0!==lt?lt:"";case"type":return h.type;case"fedInfo":return h.fedInfo;case"formData":return this.stringify(h.formData);case"state":return h.state;case"extSourceName":return h.extSourceName;case"extSourceType":return h.extSourceType;case"user":return h.user?(0,b.bD)(h.user):"";case"createdBy":return h.createdBy;case"createdAt":return h.createdAt;case"modifiedBy":return h.modifiedBy;case"modifiedAt":return h.modifiedAt;default:return h[x]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(h){const x=h.lastIndexOf("/CN=");if(-1!==x){const We=h.slice(x+4,h.length).replace("/unstructuredName="," ");return-1!==We.lastIndexOf("\\")?h.slice(h.lastIndexOf("=")+1,h.length):We}return h}yearAgo(){const h=new Date;return h.setDate(h.getDate()-365),h}dateToString(h){return(0,E.p6)(h,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(h){const x=At=>Object.entries(At).reduce((Ht,[lt,Ut])=>Ht[lt]instanceof Object?Ht[lt]=x(Ht[lt]):(null==Ut||"null"===Ut||0===Ut.length||(Ht[lt]=Ut),Ht),{});let We=JSON.stringify(x(h));return We=We.replace("{","["),We=We.replace("}","]"),We}getFormDataString(h){return this.stringify(h.formItem)}parseColumns(h){h.forEach(x=>{this.displayedColumns.includes(x.shortname)||this.displayedColumns.push(x.shortname),this.parsedColumns.includes(x.shortname)||this.parsedColumns.push(x.shortname)})}getValue(h,x){var We;const At=h.filter(Ht=>Ht.shortname===x);return 0===At.length?"":null!==(We=At[0].value)&&void 0!==We?We:At[0].prefilledValue}}return o.\u0275fac=function(h){return new(h||o)(C.Y36(w.x4),C.Y36(R.dB),C.Y36(w.ly))},o.\u0275cmp=C.Xpm({type:o,selectors:[["app-applications-dynamic-list"]],viewQuery:function(h,x){if(1&h&&(C.Gf(b.l9,7),C.Gf(_.YE,5)),2&h){let We;C.iGM(We=C.CRH())&&(x.child=We.first),C.iGM(We=C.CRH())&&(x.sort=We.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[C.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(h,x){1&h&&(C.TgZ(0,"div",0),C.TgZ(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(At){return x.exportData(At)}),C.YNc(2,ee,2,0,"div",2),C.ALo(3,"async"),C.TgZ(4,"table",3),C.ynx(5,4),C.YNc(6,de,3,3,"th",5),C.YNc(7,ce,2,1,"td",6),C.BQk(),C.ynx(8,7),C.YNc(9,Fe,3,3,"th",5),C.YNc(10,Ue,3,4,"td",6),C.BQk(),C.ynx(11,8),C.YNc(12,Xe,3,3,"th",9),C.YNc(13,te,2,1,"td",6),C.BQk(),C.ynx(14,10),C.YNc(15,Ve,3,3,"th",9),C.YNc(16,ve,2,1,"td",6),C.BQk(),C.ynx(17,11),C.YNc(18,Oe,3,3,"th",9),C.YNc(19,z,2,1,"td",6),C.BQk(),C.ynx(20,12),C.YNc(21,D,3,3,"th",9),C.YNc(22,ge,2,1,"td",6),C.BQk(),C.ynx(23,13),C.YNc(24,Te,3,3,"th",5),C.YNc(25,Ie,2,1,"td",6),C.BQk(),C.ynx(26,14),C.YNc(27,fe,3,3,"th",5),C.YNc(28,Se,3,3,"td",6),C.BQk(),C.ynx(29,15),C.YNc(30,Ke,3,3,"th",9),C.YNc(31,Je,2,1,"td",6),C.BQk(),C.ynx(32,16),C.YNc(33,nt,3,3,"th",9),C.YNc(34,je,2,1,"td",6),C.BQk(),C.ynx(35,17),C.YNc(36,Q,3,3,"th",5),C.YNc(37,k,4,2,"td",6),C.BQk(),C.ynx(38,18),C.YNc(39,pe,3,3,"th",9),C.YNc(40,Z,2,1,"td",6),C.BQk(),C.ynx(41,19),C.YNc(42,Ne,3,3,"th",5),C.YNc(43,oe,2,1,"td",6),C.BQk(),C.ynx(44,20),C.YNc(45,_e,3,3,"th",9),C.YNc(46,$,3,4,"td",6),C.BQk(),C.ynx(47,21),C.YNc(48,V,3,3,"th",9),C.YNc(49,i,2,1,"td",6),C.BQk(),C.YNc(50,l,3,1,"ng-container",22),C.YNc(51,s,1,0,"tr",23),C.YNc(52,r,1,4,"tr",24),C.qZA(),C.qZA(),C.qZA(),C.YNc(53,t,3,4,"perun-web-apps-alert",25),C.ALo(54,"async")),2&h&&(C.Q6J("hidden",0===x.dataSource.allObjectCount),C.xp6(1),C.Q6J("dataLength",x.dataSource.allObjectCount)("pageSizeOptions",x.pageSizeOptions)("tableId",x.tableId),C.xp6(1),C.Q6J("ngIf",C.lcZ(3,10,x.dataSource.loading$)),C.xp6(2),C.Q6J("dataSource",x.dataSource),C.xp6(46),C.Q6J("ngForOf",x.parsedColumns),C.xp6(1),C.Q6J("matHeaderRowDef",x.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",x.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===x.dataSource.allObjectCount&&!1===C.lcZ(54,12,x.dataSource.loading$)))},directives:[I.l,E.O5,m.$g,O.BZ,_.YE,O.w1,O.fO,O.ge,_.nU,O.Dz,O.ev,Me,E.sg,O.as,O.XQ,O.nj,O.Gk,he.YH,De.rH,T.w],pipes:[E.Ov,N.X$,E.uU,j.h,Y.d],styles:[""]}),o})()},45256:(Qe,be,p)=>{"use strict";p.d(be,{k:()=>W});var e=p(20449),b=p(32105),_=p(64080),w=p(48966),g=p(32080),A=p(9244),E=p(86511),C=p(8929),R=p(36787),I=p(21086),m=p(87545),O=p(1059),P=p(5e3);let W=(()=>{class ie{constructor(q,Me,he,De,T,N,j,Y,ee,de){this.data=q,this.dialogRef=Me,this.membersManagerService=he,this.voService=De,this.registrarManager=T,this.groupService=N,this.store=j,this.guiAuthResolver=Y,this.requestService=ee,this.addMemberService=de,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(ce=>(0,R.T)((0,I.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,ce))),(0,O.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(q=>{this.addAuth=!!q.source.selected.every(Me=>Me.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const q=this.selection.selected.pop();q.member?this.addMember(q):q.richUser?this.addUser(q):q.candidate&&this.addCandidate(q)}invite(q){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,q):this.inviteCandidate(Me,q)}cancel(q){this.dialogRef.close(q)}addCandidate(q){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(q.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(q,Me)),this.add()})}addMember(q){this.groupService.addMembers(this.data.group.id,[q.member.id]).subscribe(()=>{this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(q,Me)),this.add()})}addUser(q){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:q.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(q,Me)),this.add()})}inviteCandidate(q,Me){this.registrarManager.sendInvitationForGroup((0,A.Jc)(q.candidate),Me,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},he=>{this.failed.push(this.addMemberService.getCandidateWithError(q,he)),this.invite(Me)})}inviteUser(q,Me){this.registrarManager.sendInvitationGroupToExistingUser(q.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},he=>{this.failed.push(this.addMemberService.getCandidateWithError(q,he)),this.invite(Me)})}}return ie.\u0275fac=function(q){return new(q||ie)(P.Y36(w.WI),P.Y36(w.so),P.Y36(b.uq),P.Y36(b.YF),P.Y36(b.tk),P.Y36(b.ff),P.Y36(g.d6),P.Y36(g.x4),P.Y36(g.F5),P.Y36(E.A))},ie.\u0275cmp=P.Xpm({type:ie,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(q,Me){1&q&&(P.TgZ(0,"app-add-member-dialog",0),P.NdJ("add",function(){return Me.add()})("cancel",function(De){return Me.cancel(De)})("invite",function(De){return Me.invite(De)})("search",function(De){return Me.searcher.next(De)}),P.ALo(1,"async"),P.qZA()),2&q&&P.Q6J("loading",Me.loading)("languages",Me.languages)("manualAddingBlocked",Me.data.manualAddingBlocked)("addAuth",Me.addAuth)("inviteAuth",Me.inviteAuth)("failed",Me.failed)("members",P.lcZ(1,9,Me.members))("selection",Me.selection)("theme","group-theme")},styles:[""]}),ie})()},51525:(Qe,be,p)=>{"use strict";p.d(be,{H:()=>W});var e=p(48966),b=p(32105),_=p(32080),w=p(20449),g=p(9244),A=p(64080),E=p(86511),C=p(8929),R=p(36787),I=p(21086),m=p(87545),O=p(1059),P=p(5e3);let W=(()=>{class ie{constructor(q,Me,he,De,T,N,j,Y){this.data=q,this.dialogRef=Me,this.membersManagerService=he,this.voService=De,this.registrarManager=T,this.store=N,this.requestService=j,this.addMemberService=Y,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(ee=>(0,R.T)((0,I.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,ee))),(0,O.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const q=this.selection.selected.pop();q.richUser?this.addUser(q):this.addCandidate(q)}invite(q){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,q):this.inviteCandidate(Me,q)}cancel(q){this.dialogRef.close(q)}addCandidate(q){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(q.candidate)}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(q,Me)),this.add()})}addUser(q){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:q.richUser.id}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(q,Me)),this.add()})}inviteCandidate(q,Me){this.registrarManager.sendInvitation((0,g.Jc)(q.candidate),Me,this.data.voId).subscribe(()=>{this.invite(Me)},he=>{this.failed.push(this.addMemberService.getCandidateWithError(q,he)),this.invite(Me)})}inviteUser(q,Me){this.registrarManager.sendInvitationToExistingUser(q.richUser.id,this.data.voId).subscribe(()=>{this.invite(Me)},he=>{this.failed.push(this.addMemberService.getCandidateWithError(q,he)),this.invite(Me)})}}return ie.\u0275fac=function(q){return new(q||ie)(P.Y36(e.WI),P.Y36(e.so),P.Y36(b.uq),P.Y36(b.YF),P.Y36(b.tk),P.Y36(_.d6),P.Y36(_.F5),P.Y36(E.A))},ie.\u0275cmp=P.Xpm({type:ie,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(q,Me){1&q&&(P.TgZ(0,"app-add-member-dialog",0),P.NdJ("add",function(){return Me.add()})("cancel",function(De){return Me.cancel(De)})("invite",function(De){return Me.invite(De)})("search",function(De){return Me.searcher.next(De)}),P.ALo(1,"async"),P.qZA()),2&q&&P.Q6J("loading",Me.loading)("languages",Me.languages)("failed",Me.failed)("members",P.lcZ(1,6,Me.members))("selection",Me.selection)("theme","vo-theme")},styles:[""]}),ie})()},55857:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>Me});var e=p(32105),b=p(10036),_=p(32080),w=p(93075),g=p(69808),A=p(5e3),E=p(96214),C=p(47423),R=p(67322),I=p(74107),m=p(90508),O=p(64901),P=p(39798),W=p(9146),ie=p(51062);function Ae(he,De){if(1&he){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!0}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&he&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function q(he,De){if(1&he){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!1}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&he&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let Me=(()=>{class he{constructor(T,N,j){this.registrarManager=T,this.guiAuthResolver=N,this.entityStorageService=j,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Af,this.tableId=b.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.NI((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.NI((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const T=new Date;return T.setDate(T.getDate()-365),T}applyFilter(T){this.filterValue=T}}return he.id="GroupApplicationsComponent",he.\u0275fac=function(T){return new(T||he)(A.Y36(e.tk),A.Y36(_.x4),A.Y36(_.fb))},he.\u0275cmp=A.Xpm({type:he,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(T,N){2&T&&A.ekj("router-component",N.true)},decls:34,vars:38,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(T,N){1&T&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return N.refresh=!N.refresh}),A.qZA(),A.YNc(5,Ae,3,3,"button",2),A.YNc(6,q,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return N.select()})("valueChange",function(Y){return N.state=Y}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(Y){return N.applyFilter(Y)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return N.select()}),A.qZA(),A.qZA(),A.TgZ(32,"div"),A._UZ(33,"app-applications-dynamic-list",13),A.qZA()),2&T&&(A.xp6(1),A.Oqu(A.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!N.showAllDetails),A.xp6(1),A.Q6J("ngIf",N.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,24,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",N.state),A.xp6(2),A.Oqu(A.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",N.endDate)("startDate",N.startDate),A.xp6(2),A.Q6J("tableId",N.showAllDetails?N.detailTableId:N.tableId)("searchString",N.filterValue)("displayedColumns",N.showAllDetails?N.detailedDisplayedColumns:N.displayedColumns)("states",N.currentStates)("dateFrom",N.startDate.value)("dateTo",N.endDate.value)("refreshTable",N.refresh)("group",N.group))},directives:[E.t,g.O5,C.lW,R.KE,R.hX,I.gD,m.ey,O.P,P.S,W.S],pipes:[ie.X$],styles:[""]}),he})()},75234:(Qe,be,p)=>{"use strict";p.d(be,{y:()=>D});var e=p(20449),b=p(32080),_=p(64080),w=p(53455),g=p(32105),A=p(10036),E=p(9244),C=p(74414),R=p(93075),I=p(45256),m=p(5e3),O=p(48966),P=p(69808),W=p(98380),ie=p(96214),Ae=p(29772),q=p(47423),Me=p(67322),he=p(74107),De=p(90508),T=p(64901),N=p(20773),j=p(1903),Y=p(51062);let ee=(()=>{class ge{transform(Ie,fe){return!!("members"===Ie.name||(0,E.bx)(Ie)||"add"===fe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return ge.\u0275fac=function(Ie){return new(Ie||ge)},ge.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabled",type:ge,pure:!0}),ge})(),de=(()=>{class ge{transform(Ie,fe){return"members"===Ie.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,E.bx)(Ie)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===fe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return ge.\u0275fac=function(Ie){return new(Ie||ge)},ge.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:ge,pure:!0}),ge})();var ce=p(20551);function Fe(ge,Te){1&ge&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&ge&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Ue(ge,Te){if(1&ge){const Ie=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onAddMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&ge){const Ie=m.oxw();m.Q6J("disabled",m.xi3(1,2,Ie.group,"add")),m.xp6(2),m.hij(" ",m.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function Xe(ge,Te){if(1&ge){const Ie=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onInviteMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&ge){const Ie=m.oxw();m.Q6J("disabled",m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function te(ge,Te){if(1&ge){const Ie=m.EpF();m.TgZ(0,"button",17),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onRemoveMembers()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&ge){const Ie=m.oxw();m.Q6J("disabled",Ie.selection.isEmpty()||m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Ve(ge,Te){if(1&ge&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&ge){const Ie=Te.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function ve(ge,Te){if(1&ge&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&ge){const Ie=Te.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function Oe(ge,Te){1&ge&&m._UZ(0,"mat-spinner",19)}function z(ge,Te){if(1&ge&&m._UZ(0,"perun-web-apps-members-dynamic-list",20),2&ge){const Ie=m.oxw();m.Q6J("attrNames",Ie.memberAttrNames)("groupId",Ie.group.id)("tableId",Ie.tableId)("displayedColumns",Ie.displayedColumns)("searchString",Ie.searchString)("updateTable",Ie.updateTable)("selectedGroupStatuses",Ie.selectedGroupStatuses)("selectedStatuses",Ie.selectedStatuses)("selection",Ie.selection)("voId",Ie.group.voId)}}let D=(()=>{class ge{constructor(Ie,fe,Se,Ke,Je,nt,je,Q){this.groupService=Ie,this.dialog=fe,this.guiAuthResolver=Se,this.storeService=Ke,this.attributesManager=Je,this.apiRequest=nt,this.notificator=je,this.entityStorageService=Q,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=A.dI,this.memberAttrNames=[_.r.MEMBER_DEF_ORGANIZATION,_.r.MEMBER_DEF_MAIL,_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL,_.r.MEMBER_DEF_EXPIRATION,_.r.MEMBER_DEF_GROUP_EXPIRATION],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new R.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new R.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[_.r.GROUP_SYNC_ENABLED,_.r.GROUP_LAST_SYNC_STATE,_.r.GROUP_LAST_SYNC_TIMESTAMP,_.r.GROUP_STRUCTURE_SYNC_ENABLED,_.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id))}loadPage(Ie){this.groupService.getRichGroupByIdWithAttributesByNames(Ie,this.groupAttrNames).subscribe(fe=>{this.group=fe,this.synchEnabled=(0,E.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group])}onSearchByString(Ie){this.searchString=Ie,this.selection.clear()}onAddMember(){const Ie=(0,E.kZ)();Ie.width="1000px",Ie.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(I.k,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const Ie=(0,E.kZ)();Ie.width="450px",Ie.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const Ie=(0,E.kZ)();Ie.width="650px",Ie.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(C.R,Ie)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Ie=this.statuses.value;return Ie?`${Ie[0]} ${Ie.length>1?"(+"+(Ie.length-1).toString()+" "+(2===Ie.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(Ie){return new Promise(fe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Ie,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(Se=>{this.blockManualMemberAdding=null!==Se.value,fe()},Se=>{const Ke=Se.error;"PrivilegeException"!==Ke.name&&this.notificator.showError(Ke.name),fe()})})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return ge.id="GroupMembersComponent",ge.\u0275fac=function(Ie){return new(Ie||ge)(m.Y36(g.ff),m.Y36(O.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(g.H8),m.Y36(b.F5),m.Y36(b.V6),m.Y36(b.fb))},ge.\u0275cmp=m.Xpm({type:ge,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(Ie,fe){2&Ie&&m.ekj("router-component",fe.true)},decls:42,vars:55,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId"]],template:function(Ie,fe){1&Ie&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,Fe,3,3,"perun-web-apps-alert",1),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return fe.refreshTable()}),m.qZA(),m.TgZ(6,"span",4),m.ALo(7,"groupMembersActionButtonDisabled"),m.ALo(8,"translate"),m.ALo(9,"groupMembersActionButtonDisabledTooltip"),m.YNc(10,Ue,4,7,"button",5),m.qZA(),m.TgZ(11,"span",4),m.ALo(12,"groupMembersActionButtonDisabled"),m.ALo(13,"translate"),m.ALo(14,"groupMembersActionButtonDisabledTooltip"),m.YNc(15,Xe,4,6,"button",6),m.qZA(),m.TgZ(16,"span",4),m.ALo(17,"groupMembersActionButtonDisabled"),m.ALo(18,"translate"),m.ALo(19,"groupMembersActionButtonDisabledTooltip"),m.YNc(20,te,4,6,"button",7),m.qZA(),m.TgZ(21,"mat-form-field",8),m.TgZ(22,"mat-label"),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"mat-select",9),m.NdJ("closed",function(){return fe.changeVoStatuses()}),m.TgZ(26,"mat-select-trigger"),m._uU(27),m.ALo(28,"memberStatus"),m.qZA(),m.YNc(29,Ve,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(30,"mat-form-field",8),m.TgZ(31,"mat-label"),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.TgZ(34,"mat-select",9),m.NdJ("closed",function(){return fe.changeGroupStatuses()}),m.TgZ(35,"mat-select-trigger"),m._uU(36),m.ALo(37,"memberStatus"),m.qZA(),m.YNc(38,ve,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(39,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(Ke){return fe.onSearchByString(Ke)}),m.qZA(),m.qZA(),m.YNc(40,Oe,1,0,"mat-spinner",12),m.YNc(41,z,1,10,"perun-web-apps-members-dynamic-list",13)),2&Ie&&(m.xp6(1),m.Oqu(m.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",fe.synchEnabled),m.xp6(3),m.s9C("matTooltip",m.lcZ(8,30,m.xi3(9,32,fe.group,"add"))),m.Q6J("matTooltipDisabled",!m.xi3(7,27,fe.group,"add"))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",fe.addAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(13,37,m.lcZ(14,39,fe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(12,35,fe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",fe.inviteAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(18,43,m.lcZ(19,45,fe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(17,41,fe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",fe.removeAuth),m.xp6(3),m.Oqu(m.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",fe.statuses),m.xp6(2),m.hij(" ",m.lcZ(28,49,fe.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",fe.statusList),m.xp6(3),m.Oqu(m.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),m.xp6(2),m.Q6J("formControl",fe.groupStatuses),m.xp6(2),m.hij(" ",m.lcZ(37,53,fe.displaySelectedGroupStatuses())," "),m.xp6(2),m.Q6J("ngForOf",fe.groupStatusList),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",fe.loading),m.xp6(1),m.Q6J("ngIf",!fe.loading))},directives:[P.O5,W.w,ie.t,Ae.gM,q.lW,Me.KE,Me.hX,he.gD,R.JJ,R.oH,he.$L,P.sg,De.ey,T.P,N.$g,j.m],pipes:[Y.X$,ee,de,ce.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),ge})()},37240:(Qe,be,p)=>{"use strict";p.d(be,{q:()=>Ce});var e=p(20449),b=p(32105),_=p(10036),w=p(48966),g=p(32080),E=(p(387),p(5e3)),C=p(51062),R=p(69808),I=p(20773),m=p(92081),O=p(64901),P=p(62109),W=p(32368),ie=p(93075),Ae=p(47423),q=p(29772);const Me=["list"],he=["stepper"];function De(re,k){1&re&&E._UZ(0,"mat-spinner",4)}function T(re,k){1&re&&(E._uU(0),E.ALo(1,"translate")),2&re&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function N(re,k){1&re&&(E._uU(0),E.ALo(1,"translate")),2&re&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const j=function(){return["select","id","name","facility","tags","description"]};function Y(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"div",5),E.TgZ(1,"mat-stepper",6,7),E.TgZ(3,"mat-step",8),E.YNc(4,T,2,3,"ng-template",9),E.TgZ(5,"perun-web-apps-debounce-filter",10),E.NdJ("filter",function(Ne){return E.CHM(pe),E.oxw().applyFilter(Ne)}),E.ALo(6,"translate"),E.qZA(),E._UZ(7,"perun-web-apps-resources-list",11,12),E.qZA(),E.TgZ(9,"mat-step"),E.YNc(10,N,2,3,"ng-template",9),E.TgZ(11,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(pe),E.oxw().changeSubgroupsMessage()})("ngModelChange",function(Ne){return E.CHM(pe),E.oxw().autoAssignSubgroups=Ne}),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.TgZ(14,"div",14),E._UZ(15,"i",15),E.qZA(),E.TgZ(16,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(pe),E.oxw().changeInactiveMessage()})("ngModelChange",function(Ne){return E.CHM(pe),E.oxw().asActive=Ne}),E._uU(17),E.ALo(18,"translate"),E.qZA(),E.TgZ(19,"div",14),E._uU(20),E.qZA(),E.TgZ(21,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(pe),E.oxw().changeAsyncMessage()})("ngModelChange",function(Ne){return E.CHM(pe),E.oxw().async=Ne}),E._uU(22),E.ALo(23,"translate"),E.qZA(),E.TgZ(24,"div",14),E._uU(25),E.qZA(),E.qZA(),E.qZA(),E.qZA()}if(2&re){const pe=E.MAs(8),Z=E.oxw();E.xp6(1),E.Q6J("linear",!0),E.xp6(2),E.Q6J("completed",0!==Z.selection.selected.length&&void 0!==pe&&pe.addAuth),E.xp6(2),E.s9C("placeholder",E.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),E.xp6(2),E.Q6J("filterValue",Z.filterValue)("groupToResource",Z.data.group)("disableRouting",!0)("resources",Z.resources)("selection",Z.selection)("displayedColumns",E.DdM(27,j))("tableId",Z.tableId),E.xp6(4),E.Q6J("ngModel",Z.autoAssignSubgroups),E.xp6(1),E.hij(" ",E.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),E.xp6(3),E.Q6J("innerHTML",Z.autoAssignHint,E.oJD),E.xp6(1),E.Q6J("ngModel",Z.asActive),E.xp6(1),E.hij(" ",E.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),E.xp6(3),E.hij(" ",Z.asActiveHint," "),E.xp6(1),E.Q6J("ngModel",Z.async),E.xp6(1),E.hij(" ",E.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),E.xp6(3),E.hij(" ",Z.asyncHint," ")}}function ee(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){return E.CHM(pe),E.oxw(2).stepperPrevious()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&re&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function de(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){return E.CHM(pe),E.oxw(2).stepperNext()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&re){const pe=E.oxw(2);E.ekj("ml-2",void 0!==pe.stepper&&0!==pe.stepper.selectedIndex)("ml-auto",!(void 0!==pe.stepper&&0!==pe.stepper.selectedIndex)),E.Q6J("disabled",0===pe.selection.selected.length||void 0!==pe.list&&!pe.list.addAuth),E.xp6(1),E.hij(" ",E.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function ce(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){return E.CHM(pe),E.oxw(2).onSubmit()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&re){const pe=E.oxw(2);E.Q6J("disabled",0===pe.selection.selected.length||pe.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Fe(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"div",16),E.TgZ(1,"button",17),E.NdJ("click",function(){return E.CHM(pe),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,ee,3,3,"button",18),E.YNc(5,de,3,8,"button",19),E.TgZ(6,"span",20),E.ALo(7,"translate"),E.YNc(8,ce,3,4,"button",21),E.qZA(),E.qZA()}if(2&re){const pe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("ngIf",void 0!==pe.stepper&&0!==pe.stepper.selectedIndex),E.xp6(1),E.Q6J("ngIf",void 0!==pe.stepper&&pe.stepper.selectedIndex!==pe.stepper._steps.length-1),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),E.Q6J("matTooltipDisabled",void 0===pe.list||pe.list.addAuth),E.xp6(2),E.Q6J("ngIf",void 0!==pe.stepper&&pe.stepper.selectedIndex===pe.stepper._steps.length-1)}}let Ue=(()=>{class re{constructor(pe,Z,Ne,oe,_e,$,V){this.dialogRef=pe,this.data=Z,this.notificator=Ne,this.translate=oe,this.resourcesManager=_e,this.guiAuthResolver=$,this.cd=V,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=_.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(pe=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(Z=>{for(const Ne of pe)-1===Z.findIndex(oe=>oe.id===Ne.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,Ne])&&this.resources.push(Ne);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(pe){this.filterValue=pe}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const pe=this.selection.selected.map(Z=>Z.id);this.resourcesManager.assignGroupToResources(this.data.group.id,pe,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(Z=>{this.notificator.showSuccess(Z),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return re.\u0275fac=function(pe){return new(pe||re)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk),E.Y36(g.x4),E.Y36(E.sBO))},re.\u0275cmp=E.Xpm({type:re,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(pe,Z){if(1&pe&&(E.Gf(Me,5),E.Gf(he,5)),2&pe){let Ne;E.iGM(Ne=E.CRH())&&(Z.list=Ne.first),E.iGM(Ne=E.CRH())&&(Z.stepper=Ne.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(pe,Z){1&pe&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,De,1,0,"mat-spinner",1),E.YNc(5,Y,26,28,"div",2),E.YNc(6,Fe,9,10,"div",3),E.qZA()),2&pe&&(E.Tol(Z.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",Z.loading),E.xp6(1),E.Q6J("ngIf",!Z.loading),E.xp6(1),E.Q6J("ngIf",!Z.loading&&void 0!==Z.stepper))},directives:[w.uh,R.O5,I.$g,w.xY,m.Vq,m.C0,m.VY,O.P,P.C,W.Rr,ie.JJ,ie.On,w.H8,Ae.lW,q.gM],pipes:[C.X$],styles:[""]}),re})();var Xe=p(32075);function te(re,k){1&re&&E._UZ(0,"mat-spinner",4)}function Ve(re,k){1&re&&E._UZ(0,"th",13)}function ve(re,k){if(1&re&&(E.TgZ(0,"td",14),E._uU(1),E.qZA()),2&re){const pe=k.$implicit;E.xp6(1),E.Oqu(pe.name)}}function Oe(re,k){1&re&&E._UZ(0,"tr",15)}function z(re,k){1&re&&E._UZ(0,"tr",16)}function D(re,k){if(1&re&&(E.TgZ(0,"div",5),E.TgZ(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",6),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",7),E.ynx(8,8),E.YNc(9,Ve,1,0,"th",9),E.YNc(10,ve,2,1,"td",10),E.BQk(),E.YNc(11,Oe,1,0,"tr",11),E.YNc(12,z,1,0,"tr",12),E.qZA(),E.qZA()),2&re){const pe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),E.xp6(2),E.Q6J("dataSource",pe.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",pe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",pe.displayedColumns)}}function ge(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"div",17),E.TgZ(1,"button",18),E.NdJ("click",function(){return E.CHM(pe),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",19),E.NdJ("click",function(){return E.CHM(pe),E.oxw().onSubmit()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.qZA()}if(2&re){const pe=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("disabled",pe.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let Te=(()=>{class re{constructor(pe,Z,Ne,oe,_e){this.dialogRef=pe,this.data=Z,this.notificator=Ne,this.translate=oe,this.resourcesManager=_e,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Xe.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const pe=this.data.resources.map(Z=>Z.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,pe).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(Z=>{this.loading=!1,this.notificator.showSuccess(Z),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return re.\u0275fac=function(pe){return new(pe||re)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk))},re.\u0275cmp=E.Xpm({type:re,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(pe,Z){1&pe&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,te,1,0,"mat-spinner",1),E.YNc(5,D,13,9,"div",2),E.YNc(6,ge,7,7,"div",3),E.qZA()),2&pe&&(E.Tol(Z.data.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",Z.loading),E.xp6(1),E.Q6J("ngIf",!Z.loading),E.xp6(1),E.Q6J("ngIf",!Z.loading))},directives:[w.uh,R.O5,I.$g,w.xY,Xe.BZ,Xe.w1,Xe.fO,Xe.ge,Xe.Dz,Xe.ev,Xe.as,Xe.XQ,Xe.nj,Xe.Gk,w.H8,Ae.lW],pipes:[C.X$],styles:[""]}),re})();var Ie=p(9244),fe=p(96214),Se=p(7434);const Ke=["list"];function Je(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(pe),E.oxw().addResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&re&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function nt(re,k){1&re&&E._UZ(0,"mat-spinner",9)}const je=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function Q(re,k){if(1&re){const pe=E.EpF();E.TgZ(0,"perun-web-apps-resources-list",10,11),E.NdJ("refreshTable",function(){return E.CHM(pe),E.oxw().refreshTable()}),E.qZA()}if(2&re){const pe=E.oxw();E.Q6J("disableRouting",!pe.routingAuth)("filterValue",pe.filterValue)("resources",pe.resources)("routingVo",!0)("displayedColumns",E.DdM(10,je))("selection",pe.selected)("groupId",pe.group.id)("groupToResource",pe.group)("resourcesToDisableCheckbox",pe.resourcesToDisable)("tableId",pe.tableId)}}let Ce=(()=>{class re{constructor(pe,Z,Ne,oe,_e){this.resourcesManager=pe,this.groupService=Z,this.dialog=Ne,this.guiAuthResolver=oe,this.entityStorageService=_e,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=_.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(pe=>{this.resources=pe.map(Z=>{const Ne=Z.enrichedResource.resource;return Ne.facility=Z.facility,Ne.status=Z.status,Ne.resourceTags=Z.resourceTags,Ne.failureCause=Z.failureCause,Ne.sourceGroupId=Z.sourceGroupId,Ne}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(Z=>null!==Z.sourceGroupId).map(Z=>Z.id)),this.setAuthorization(),this.loading=!1})}applyFilter(pe){this.filterValue=pe}addResource(){const pe=(0,Ie.kZ)();pe.width="1000px",pe.data={theme:"group-theme",group:this.group},this.dialog.open(Ue,pe).afterClosed().subscribe(Ne=>{Ne&&this.refreshTable()})}removeResource(){const pe=(0,Ie.kZ)();pe.width="450px",pe.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(Te,pe).afterClosed().subscribe(Ne=>{Ne&&(this.selected.clear(),this.refreshTable())})}}return re.id="GroupResourcesComponent",re.\u0275fac=function(pe){return new(pe||re)(E.Y36(b.xk),E.Y36(b.ff),E.Y36(w.uw),E.Y36(g.x4),E.Y36(g.fb))},re.\u0275cmp=E.Xpm({type:re,selectors:[["app-group-resources"]],viewQuery:function(pe,Z){if(1&pe&&E.Gf(Ke,5),2&pe){let Ne;E.iGM(Ne=E.CRH())&&(Z.list=Ne.first)}},hostVars:2,hostBindings:function(pe,Z){2&pe&&E.ekj("router-component",Z.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(pe,Z){1&pe&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return Z.refreshTable()}),E.qZA(),E.YNc(5,Je,3,3,"button",2),E.TgZ(6,"span",3),E.ALo(7,"translate"),E.TgZ(8,"button",4),E.NdJ("click",function(){return Z.removeResource()}),E._uU(9),E.ALo(10,"translate"),E.qZA(),E.qZA(),E.TgZ(11,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(oe){return Z.applyFilter(oe)}),E.qZA(),E.YNc(12,nt,1,0,"mat-spinner",6),E.YNc(13,Q,2,11,"perun-web-apps-resources-list",7),E.qZA()),2&pe&&(E.xp6(2),E.Oqu(E.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",Z.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",0===Z.selected.selected.length||void 0!==Z.list&&Z.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===Z.selected.selected.length||void 0!==Z.list&&!Z.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",Z.loading),E.xp6(1),E.Q6J("ngIf",Z.resources&&!Z.loading))},directives:[fe.t,R.O5,Ae.lW,q.gM,Se.L,I.$g,P.C],pipes:[C.X$],styles:[""]}),re})()},14336:(Qe,be,p)=>{"use strict";p.d(be,{Z:()=>Te});var e=p(32080),b=p(51076),_=p(83491),w=p(95502),g=p(1186),A=p(32105),E=p(9244),C=p(5e3),R=p(48966),I=p(51062),m=p(11735),O=p(69808),P=p(20773),W=p(25245),ie=p(29772),Ae=p(32368),q=p(93075),Me=p(47423),he=p(4834),De=p(96214),T=p(98380),N=p(157);const j=["autoRegToggle"];function Y(Ie,fe){1&Ie&&C._UZ(0,"mat-spinner",3)}function ee(Ie,fe){if(1&Ie&&(C.TgZ(0,"span"),C._uU(1," , "),C.TgZ(2,"mat-icon",22),C._uU(3,"nat"),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()),2&Ie){const Se=C.oxw(3);C.xp6(4),C.hij(" ",Se.applicationForm.automaticApprovalEmbedded?C.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function de(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"mat-slide-toggle",23,24),C.NdJ("change",function(){return C.CHM(Se),C.oxw(3).updateAutoRegistration()}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw(3);C.xp6(1),C.Q6J("disabled",!Se.changeAutoRegistration)("ngModel",Se.autoRegistrationEnabled),C.xp6(2),C.hij(" ",C.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function ce(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",25),C.NdJ("click",function(){return C.CHM(Se),C.oxw(3).settings()}),C.TgZ(1,"i",12),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Fe(Ie,fe){if(1&Ie&&(C.TgZ(0,"div",15),C.TgZ(1,"div",16),C.TgZ(2,"div",17),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",17),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",18),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",19),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.YNc(20,ee,7,5,"span",2),C.qZA(),C.YNc(21,de,5,5,"div",2),C.qZA(),C.TgZ(22,"div",20),C.YNc(23,ce,5,3,"button",21),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw(2);C.xp6(1),C.Q6J("ngClass",Se.autoRegistrationEnabled?"w-75":"w-50"),C.xp6(2),C.AsE(" ",C.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Se.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApproval?C.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApprovalExtension?C.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(3),C.Q6J("ngIf",Se.autoRegistrationEnabled),C.xp6(1),C.Q6J("ngIf",Se.voHasEmbeddedGroupApplication),C.xp6(2),C.Q6J("ngIf",Se.editAuth)}}function Ue(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",26),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function Xe(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",27),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).save()}),C.TgZ(1,"i",12),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ie){const Se=C.oxw(2);C.Q6J("disabled",!Se.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function te(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",28),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).copy()}),C.TgZ(1,"i",12),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function Ve(Ie,fe){1&Ie&&(C.TgZ(0,"perun-web-apps-alert",29),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const ve=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},Oe=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function z(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.YNc(1,Fe,24,21,"div",4),C._UZ(2,"mat-divider",5),C.TgZ(3,"div",6),C.TgZ(4,"perun-web-apps-refresh-button",7),C.NdJ("refresh",function(){return C.CHM(Se),C.oxw().updateFormItems()}),C.qZA(),C.YNc(5,Ue,3,3,"button",8),C.YNc(6,Xe,5,4,"button",9),C.YNc(7,te,5,3,"button",10),C.TgZ(8,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().preview()}),C.TgZ(9,"i",12),C._uU(10,"search"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.YNc(13,Ve,3,3,"perun-web-apps-alert",13),C.TgZ(14,"app-application-form-list",14),C.NdJ("applicationFormItemsChange",function(){return C.CHM(Se),C.oxw().changeItems()}),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(1),C.Q6J("ngIf",!Se.loading),C.xp6(4),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(4),C.hij(" ",C.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("applicationForm",Se.applicationForm)("applicationFormItems",Se.applicationFormItems)("loading",Se.loading)("displayedColumns",Se.editAuth?C.DdM(14,ve):C.DdM(15,Oe))("refreshApplicationForm",Se.refreshApplicationForm)("theme","group-theme")}}function D(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",32),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).createEmptyApplicationForm()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function ge(Ie,fe){if(1&Ie&&(C.TgZ(0,"div"),C.TgZ(1,"perun-web-apps-alert",30),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,D,3,3,"button",31),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),C.xp6(2),C.Q6J("ngIf",Se.createEmptyForm)}}let Te=(()=>{class Ie{constructor(Se,Ke,Je,nt,je,Q,Ce,re,k){this.registrarManager=Se,this.dialog=Ke,this.notificator=Je,this.translate=nt,this.apiRequest=je,this.router=Q,this.guiAuthResolver=Ce,this.attributesManager=re,this.entityStorageService=k,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Se=>{this.applicationForm=Se,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Ke=>{this.applicationFormItems=Ke,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Je=>{this.voHasEmbeddedGroupApplication=null!==Je.value,this.autoRegistrationEnabled=!!Je.value,this.loading=!1})},()=>this.loading=!1)},Se=>{const Ke=Se.error;"FormNotExistsException"===Ke.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Ke)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Se=(0,E.kZ)();Se.width="500px",Se.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(b.J,Se).afterClosed().subscribe(Je=>{Je&&(this.applicationFormItems=Object.assign([],Je[0]),Se=(0,E.kZ)(),Se.width="600px",Se.height="600px",Se.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Je[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(_._,Se),this.itemsChanged=!0)})}copy(){const Se=(0,E.kZ)();Se.width="500px",Se.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Se).afterClosed().subscribe(Je=>{Je&&this.updateFormItems()})}settings(){const Se=(0,E.kZ)();Se.width="400px",Se.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Se).afterClosed().subscribe(Je=>{Je&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(nt=>{this.notificator.showSuccess(nt)}),this.applicationForm=Je)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Se=>{this.applicationFormItems=Se,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Se=0;for(const Ke of this.applicationFormItems)Ke.ordnum=Se,Ke.forDelete||Se++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ke=>{this.notificator.showSuccess(Ke)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Ie.id="GroupSettingsApplicationFormComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(A.tk),C.Y36(R.uw),C.Y36(e.V6),C.Y36(I.sK),C.Y36(e.F5),C.Y36(m.F0),C.Y36(e.x4),C.Y36(A.H8),C.Y36(e.fb))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-group-settings-application-form"]],viewQuery:function(Se,Ke){if(1&Se&&C.Gf(j,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Ke.autoRegToggle=Je.first)}},hostVars:2,hostBindings:function(Se,Ke){2&Se&&C.ekj("router-component",Ke.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Se,Ke){1&Se&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,Y,1,0,"mat-spinner",1),C.YNc(4,z,15,16,"div",2),C.YNc(5,ge,5,4,"div",2)),2&Se&&(C.xp6(1),C.hij(" ",C.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",Ke.loading),C.xp6(1),C.Q6J("ngIf",!Ke.noApplicationForm),C.xp6(1),C.Q6J("ngIf",!Ke.loading&&Ke.noApplicationForm))},directives:[O.O5,P.$g,O.mk,W.Hw,ie.gM,Ae.Rr,q.JJ,q.On,Me.lW,he.d,De.t,T.w,N.b],pipes:[I.X$],styles:[""]}),Ie})()},15592:(Qe,be,p)=>{"use strict";p.d(be,{u:()=>z});var e=p(81889),b=p(20449),_=p(41656),w=p(9244),g=p(32105),A=p(64080),E=p(10036),C=p(87842),R=p(32080),m=(p(387),p(5e3)),O=p(48966),P=p(96214),W=p(69808),ie=p(47423),Ae=p(29772),q=p(64901),Me=p(32368),he=p(93075),De=p(20773),T=p(58956),N=p(24179),j=p(51062);const Y=["tree"],ee=["list"],de=["toggle"];function ce(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"button",10),m.NdJ("click",function(){return m.CHM(Te),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&D&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Fe(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(Te),m.oxw().deleteGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&D){const Te=m.oxw();m.Q6J("disabled",0===Te.selected.selected.length||void 0!==Te.tree&&!Te.tree.removeAuth||void 0!==Te.list&&!Te.list.removeAuth),m.xp6(1),m.hij(" ",m.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Ue(D,ge){1&D&&m._UZ(0,"mat-spinner",12)}function Xe(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(fe){return m.CHM(Te),m.oxw(2).onMoveGroup(fe)})("refreshTable",function(){return m.CHM(Te),m.oxw(2).refreshTable()}),m.qZA()}if(2&D){const Te=m.oxw(2);m.Q6J("disableRouting",!Te.routeAuth)("expandAll",Te.filtering)("groups",Te.groups)("hideCheckbox",!Te.deleteAuth)("filterValue",Te.filterValue)("selection",Te.selected)}}const te=function(){return["select","id","name","description","menu"]},Ve=function(){return["id","name","description","menu"]};function ve(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("moveGroup",function(fe){return m.CHM(Te),m.oxw(2).onMoveGroup(fe)})("refreshTable",function(){return m.CHM(Te),m.oxw(2).refreshTable()}),m.qZA()}if(2&D){const Te=m.oxw(2);m.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!Te.routeAuth)("displayedColumns",Te.deleteAuth?m.DdM(8,te):m.DdM(9,Ve))("groups",Te.groups)("selection",Te.selected)("filter",Te.filterValue)("tableId",Te.tableId)}}function Oe(D,ge){if(1&D&&(m.TgZ(0,"div",13),m.YNc(1,Xe,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,ve,2,10,"perun-web-apps-groups-list",15),m.qZA()),2&D){const Te=m.oxw();m.xp6(1),m.Q6J("ngIf",!Te.showGroupList),m.xp6(1),m.Q6J("ngIf",Te.showGroupList)}}let z=(()=>{class D{constructor(Te,Ie,fe,Se){this.dialog=Te,this.groupService=Ie,this.guiAuthResolver=fe,this.entityStorageService=Se,this.groups=[],this.selected=new b.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=E.bf,this.filterValue=""}onCreateGroup(){const Te=(0,w.kZ)();Te.width="450px",Te.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,Te).afterClosed().subscribe(fe=>{fe&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const Te=(0,w.kZ)();Te.width="450px",Te.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(_.P,Te).afterClosed().subscribe(fe=>{fe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[A.r.GROUP_DEF_MAIL_FOOTER,A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Te=>{this.groups=Te,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Te){this.filterValue=Te,this.filtering=""!==Te}onMoveGroup(Te){const Ie=(0,w.kZ)();Ie.width="550px",Ie.data={group:Te,theme:"group-theme"},this.dialog.open(C.c,Ie).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}}return D.id="GroupSubgroupsComponent",D.\u0275fac=function(Te){return new(Te||D)(m.Y36(O.uw),m.Y36(g.ff),m.Y36(R.x4),m.Y36(R.fb))},D.\u0275cmp=m.Xpm({type:D,selectors:[["app-group-subgroups"]],viewQuery:function(Te,Ie){if(1&Te&&(m.Gf(Y,5),m.Gf(ee,5),m.Gf(de,7)),2&Te){let fe;m.iGM(fe=m.CRH())&&(Ie.tree=fe.first),m.iGM(fe=m.CRH())&&(Ie.list=fe.first),m.iGM(fe=m.CRH())&&(Ie.toggle=fe.first)}},hostVars:2,hostBindings:function(Te,Ie){2&Te&&m.ekj("router-component",Ie.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(Te,Ie){if(1&Te&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return Ie.refreshTable()}),m.qZA(),m.YNc(5,ce,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.YNc(8,Fe,3,4,"button",4),m.qZA(),m.TgZ(9,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(10,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.selected.clear()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"label"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.YNc(17,Ue,1,0,"mat-spinner",8),m.YNc(18,Oe,3,2,"div",9),m.qZA()),2&Te){const fe=m.MAs(11);m.xp6(2),m.Oqu(m.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||void 0!==Ie.tree&&Ie.tree.removeAuth||void 0!==Ie.list&&Ie.list.removeAuth),m.xp6(2),m.Q6J("ngIf",Ie.deleteAuth),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",fe.inputId),m.xp6(1),m.Oqu(m.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading)}},directives:[P.t,W.O5,ie.lW,Ae.gM,q.P,Me.Rr,he.JJ,he.On,De.$g,T.I,N.W],pipes:[j.X$],styles:[""]}),D})()},85243:(Qe,be,p)=>{"use strict";p.d(be,{j:()=>Te});var e=p(32105),b=p(10036),_=p(20449),w=p(9244),g=p(48966),A=p(32080),E=p(64080),C=p(5e3),R=p(51062),I=p(69808),m=p(20773),O=p(7434),P=p(24179),W=p(47423);function ie(Ie,fe){1&Ie&&C._UZ(0,"mat-spinner",6)}function Ae(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-immediate-filter",7),C.NdJ("filter",function(Je){return C.CHM(Se),C.oxw().applyFilter(Je)}),C.qZA()}2&Ie&&C.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const q=function(){return["select","id","name","description"]};function Me(Ie,fe){if(1&Ie&&C._UZ(0,"perun-web-apps-groups-list",8),2&Ie){const Se=C.oxw();C.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",C.DdM(8,q))("filter",Se.filterValue)("groupsToDisableCheckbox",Se.membersGroups)("disableRouting",!0)("groups",Se.groups)("selection",Se.selection)}}function he(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div",9),C.TgZ(1,"button",10),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onCancel()}),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onAdd()}),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(2),C.hij(" ",C.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===Se.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let De=(()=>{class Ie{constructor(Se,Ke,Je,nt,je,Q,Ce){this.dialogRef=Se,this.data=Ke,this.groupManager=Je,this.memberManager=nt,this.notificator=je,this.translate=Q,this.authResolver=Ce,this.loading=!1,this.groups=[],this.selection=new _.Ov(!0,[]),this.attrNames=[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Se=>{this.member=Se,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(Ke=>{this.groups=Ke.filter(Je=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Se=this.selection.selected.map(Ke=>Ke.id);this.loading=!0,this.groupManager.addMember(Se,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Se){this.filterValue=Se}}return Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(e.uq),C.Y36(A.V6),C.Y36(R.sK),C.Y36(A.x4))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Se,Ke){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,ie,1,0,"mat-spinner",1),C.TgZ(5,"div",2),C.YNc(6,Ae,1,1,"perun-web-apps-immediate-filter",3),C.YNc(7,Me,1,9,"perun-web-apps-groups-list",4),C.qZA(),C.YNc(8,he,7,7,"div",5),C.qZA()),2&Se&&(C.Tol(Ke.theme),C.xp6(2),C.Oqu(C.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Ke.loading),C.xp6(2),C.Q6J("ngIf",!Ke.loading),C.xp6(1),C.Q6J("ngIf",!Ke.loading),C.xp6(1),C.Q6J("ngIf",!Ke.loading))},directives:[g.uh,I.O5,m.$g,g.xY,O.L,P.W,g.H8,W.lW],pipes:[R.X$],styles:[""]}),Ie})();var T=p(32075);function N(Ie,fe){1&Ie&&C._UZ(0,"mat-spinner",6)}function j(Ie,fe){1&Ie&&C._UZ(0,"th",15)}function Y(Ie,fe){if(1&Ie&&(C.TgZ(0,"td",16),C._uU(1),C.qZA()),2&Ie){const Se=fe.$implicit;C.xp6(1),C.Oqu(Se.name)}}function ee(Ie,fe){1&Ie&&C._UZ(0,"tr",17)}function de(Ie,fe){1&Ie&&C._UZ(0,"tr",18)}function ce(Ie,fe){if(1&Ie&&(C.TgZ(0,"div",7),C.TgZ(1,"p"),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",8),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"table",9),C.ynx(8,10),C.YNc(9,j,1,0,"th",11),C.YNc(10,Y,2,1,"td",12),C.BQk(),C.YNc(11,ee,1,0,"tr",13),C.YNc(12,de,1,0,"tr",14),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),C.xp6(3),C.hij(" ",C.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),C.xp6(2),C.Q6J("dataSource",Se.dataSource),C.xp6(4),C.Q6J("matHeaderRowDef",Se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",Se.displayedColumns)}}let Fe=(()=>{class Ie{constructor(Se,Ke,Je,nt,je){this.dialogRef=Se,this.data=Ke,this.groupManager=Je,this.notificator=nt,this.translate=je,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const Se=this.dataSource.data.map(Ke=>Ke.id);this.groupManager.removeMember(Se,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(A.V6),C.Y36(R.sK))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Se,Ke){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,N,1,0,"mat-spinner",1),C.YNc(5,ce,13,9,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return Ke.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Ke.onRemove()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&Se&&(C.Tol(Ke.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Ke.loading),C.xp6(1),C.Q6J("ngIf",!Ke.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Ke.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[g.uh,I.O5,m.$g,g.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,g.H8,W.lW],pipes:[R.X$],styles:[""]}),Ie})();p(387);var Xe=p(11735),te=p(96214),Ve=p(29772);const ve=["list"];function Oe(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(Se),C.oxw().addGroup()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function z(Ie,fe){1&Ie&&C._UZ(0,"mat-spinner",9)}const D=function(){return["select","id","name","description","expiration","groupStatus"]};function ge(Ie,fe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-groups-list",10,11),C.NdJ("refreshTable",function(){return C.CHM(Se),C.oxw().refreshTable()}),C.qZA()}if(2&Ie){const Se=C.oxw();C.Q6J("displayedColumns",C.DdM(9,D))("authType","member-groups")("filter",Se.filterValue)("memberId",Se.memberId)("disableRouting",!Se.routeAuth)("groups",Se.groups)("memberGroupStatus",Se.member.groupStatus)("selection",Se.selection)("tableId",Se.tableId)}}let Te=(()=>{class Ie{constructor(Se,Ke,Je,nt,je){this.groupsService=Se,this.route=Ke,this.dialog=Je,this.authResolver=nt,this.memberService=je,this.filterValue="",this.tableId=b.W1,this.selection=new _.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Se=>{this.memberId=Number(Se.memberId),this.memberService.getMemberById(this.memberId).subscribe(Ke=>{this.member=Ke,this.groupsService.getAllGroups(this.member.voId).subscribe(Je=>{this.allGroups=Je,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,[E.r.MEMBER_DEF_GROUP_EXPIRATION,E.r.MEMBER_GROUP_STATUS]).subscribe(Se=>{this.selection.clear(),this.groups=Se,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Se={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((Ke,Je)=>Ke||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Se,this.groups[0]]))}addGroup(){const Se=(0,w.kZ)();Se.width="850px",Se.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Je=>Je.id)),theme:"member-theme"},this.dialog.open(De,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}removeGroup(){const Se=(0,w.kZ)();Se.width="650px",Se.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Fe,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}applyFilter(Se){this.filterValue=Se}}return Ie.id="MemberGroupsComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(e.ff),C.Y36(Xe.gz),C.Y36(g.uw),C.Y36(A.x4),C.Y36(e.uq))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-member-groups"]],viewQuery:function(Se,Ke){if(1&Se&&C.Gf(ve,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Ke.list=Je.first)}},hostVars:2,hostBindings:function(Se,Ke){2&Se&&C.ekj("router-component",Ke.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(Se,Ke){1&Se&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return Ke.refreshTable()}),C.qZA(),C.YNc(4,Oe,3,3,"button",2),C.TgZ(5,"span",3),C.ALo(6,"translate"),C.TgZ(7,"button",4),C.NdJ("click",function(){return Ke.removeGroup()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.qZA(),C.TgZ(10,"perun-web-apps-immediate-filter",5),C.NdJ("filter",function(nt){return Ke.applyFilter(nt)}),C.qZA(),C.YNc(11,z,1,0,"mat-spinner",6),C.YNc(12,ge,2,10,"perun-web-apps-groups-list",7)),2&Se&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),C.xp6(3),C.Q6J("ngIf",Ke.addAuth),C.xp6(1),C.s9C("matTooltip",C.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),C.Q6J("matTooltipDisabled",void 0===Ke.list||void 0!==Ke.list&&Ke.list.removeAuth),C.xp6(2),C.Q6J("disabled",0===Ke.selection.selected.length||void 0!==Ke.list&&!Ke.list.removeAuth),C.xp6(1),C.hij(" ",C.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),C.xp6(2),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),C.xp6(1),C.Q6J("ngIf",Ke.loading),C.xp6(1),C.Q6J("ngIf",!Ke.loading))},directives:[te.t,I.O5,W.lW,Ve.gM,O.L,m.$g,P.W],pipes:[R.X$],styles:[""]}),Ie})()},94856:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>he});var e=p(32105),b=p(10036),_=p(93075),w=p(69808),g=p(32080),A=p(5e3),E=p(96214),C=p(47423),R=p(67322),I=p(74107),m=p(90508),O=p(64901),P=p(39798),W=p(77446),ie=p(9146),Ae=p(51062);function q(De,T){if(1&De){const N=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(N),A.oxw().showDetails(!0)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&De&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function Me(De,T){if(1&De){const N=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(N),A.oxw().showDetails(!1)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&De&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let he=(()=>{class De{constructor(N,j){this.registrarManager=N,this.entityStorageService=j,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Jf,this.tableId=b.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new _.NI((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new _.NI((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const N=new Date;return N.setDate(N.getDate()-365),N}showGroupApplications(N){this.showGroupApps=N.checked,this.currentColumns=this.refreshColumns()}showDetails(N){this.showAllDetails=N,this.currentColumns=this.refreshColumns()}applyFilter(N){this.filterValue=N}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(N=>"groupName"!==N&&"groupId"!==N):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(N=>"groupName"!==N)}}return De.id="VoApplicationsComponent",De.\u0275fac=function(N){return new(N||De)(A.Y36(e.tk),A.Y36(g.fb))},De.\u0275cmp=A.Xpm({type:De,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(N,j){2&N&&A.ekj("router-component",j.true)},decls:38,vars:43,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(N,j){1&N&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return j.refresh=!j.refresh}),A.qZA(),A.YNc(5,q,3,3,"button",2),A.YNc(6,Me,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return j.select()})("valueChange",function(ee){return j.state=ee}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(ee){return j.applyFilter(ee)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return j.select()}),A.qZA(),A.TgZ(32,"div"),A.TgZ(33,"mat-checkbox",13),A.NdJ("change",function(ee){return j.showGroupApplications(ee)}),A._uU(34),A.ALo(35,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(36,"div"),A._UZ(37,"app-applications-dynamic-list",14),A.qZA()),2&N&&(A.xp6(1),A.Oqu(A.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!j.showAllDetails),A.xp6(1),A.Q6J("ngIf",j.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,27,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",j.state),A.xp6(2),A.Oqu(A.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",j.endDate)("startDate",j.startDate),A.xp6(2),A.Q6J("checked",j.showGroupApps),A.xp6(1),A.hij(" ",A.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),A.xp6(3),A.Q6J("tableId",j.showAllDetails?j.detailTableId:j.tableId)("searchString",j.filterValue)("displayedColumns",j.currentColumns)("states",j.currentStates)("dateFrom",j.startDate.value)("dateTo",j.endDate.value)("includeGroupApps",j.showGroupApps)("refreshTable",j.refresh)("vo",j.vo))},directives:[E.t,w.O5,C.lW,R.KE,R.hX,I.gD,m.ey,O.P,P.S,W.oG,ie.S],pipes:[Ae.X$],styles:[""]}),De})()},4732:(Qe,be,p)=>{"use strict";p.d(be,{G:()=>z});var e=p(81889),b=p(41656),_=p(20449),w=p(87842),g=p(9244),A=p(32105),E=p(10036),C=p(64080),R=p(32080),m=(p(387),p(5e3)),O=p(48966),P=p(96214),W=p(69808),ie=p(47423),Ae=p(29772),q=p(64901),Me=p(32368),he=p(93075),De=p(20773),T=p(58956),N=p(24179),j=p(98380),Y=p(51062);const ee=["toggle"],de=["tree"],ce=["list"];function Fe(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(Te),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&D&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ue(D,ge){1&D&&m._UZ(0,"mat-spinner",12)}function Xe(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(fe){return m.CHM(Te),m.oxw(2).onMoveGroup(fe)})("refreshTable",function(){return m.CHM(Te),m.oxw(2).loadAllGroups()}),m.qZA()}if(2&D){const Te=m.oxw(2);m.Q6J("expandAll",Te.filtering)("disableRouting",!Te.routeAuth)("groups",Te.groups)("selection",Te.selected)("filterValue",Te.filterValue)("vo",Te.vo)}}const te=function(){return["select","id","name","description","menu"]};function Ve(D,ge){if(1&D){const Te=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("refreshTable",function(){return m.CHM(Te),m.oxw(2).loadAllGroups()})("moveGroup",function(fe){return m.CHM(Te),m.oxw(2).onMoveGroup(fe)}),m.qZA()}if(2&D){const Te=m.oxw(2);m.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",m.DdM(8,te))("disableRouting",!Te.routeAuth)("groups",Te.groups)("selection",Te.selected)("filter",Te.filterValue)("tableId",Te.tableId)}}function ve(D,ge){if(1&D&&(m.TgZ(0,"div",13),m.YNc(1,Xe,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,Ve,2,9,"perun-web-apps-groups-list",15),m.qZA()),2&D){const Te=m.oxw();m.xp6(1),m.Q6J("ngIf",!Te.showGroupList),m.xp6(1),m.Q6J("ngIf",Te.showGroupList)}}function Oe(D,ge){1&D&&(m.TgZ(0,"perun-web-apps-alert",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&D&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let z=(()=>{class D{constructor(Te,Ie,fe,Se){this.dialog=Te,this.groupService=Ie,this.authResolver=fe,this.entityStorageService=Se,this.groups=[],this.showGroupList=!1,this.selected=new _.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=E.rc}onCreateGroup(){const Te=(0,g.kZ)();Te.width="450px",Te.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,Te).afterClosed().subscribe(fe=>{fe&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){var Te,Ie;return(null===(Te=this.tree)||void 0===Te?void 0:Te.removeAuth)||(null===(Ie=this.list)||void 0===Ie?void 0:Ie.removeAuth)}deleteGroup(){const Te=(0,g.kZ)();Te.width="450px",Te.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(b.P,Te).afterClosed().subscribe(fe=>{fe&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(Te){const Ie=(0,g.kZ)();Ie.width="550px",Ie.data={group:Te,theme:"vo-theme"},this.dialog.open(w.c,Ie).afterClosed().subscribe(Se=>{Se&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(Te=>{this.groups=Te,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(Te){this.filterValue=Te,this.filtering=""!==Te}}return D.id="VoGroupsComponent",D.\u0275fac=function(Te){return new(Te||D)(m.Y36(O.uw),m.Y36(A.ff),m.Y36(R.x4),m.Y36(R.fb))},D.\u0275cmp=m.Xpm({type:D,selectors:[["app-vo-groups"]],viewQuery:function(Te,Ie){if(1&Te&&(m.Gf(ee,7),m.Gf(de,5),m.Gf(ce,5)),2&Te){let fe;m.iGM(fe=m.CRH())&&(Ie.toggle=fe.first),m.iGM(fe=m.CRH())&&(Ie.tree=fe.first),m.iGM(fe=m.CRH())&&(Ie.list=fe.first)}},hostVars:2,hostBindings:function(Te,Ie){2&Te&&m.ekj("router-component",Ie.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(Te,Ie){if(1&Te&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return Ie.loadAllGroups()}),m.qZA(),m.YNc(5,Fe,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.TgZ(8,"button",4),m.NdJ("click",function(){return Ie.deleteGroup()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.qZA(),m.TgZ(11,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(12,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.removeAllGroups()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"label"),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.YNc(19,Ue,1,0,"mat-spinner",8),m.YNc(20,ve,3,2,"div",9),m.YNc(21,Oe,3,3,"perun-web-apps-alert",10),m.qZA()),2&Te){const fe=m.MAs(13);m.xp6(2),m.Oqu(m.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||Ie.disableTooltip()),m.xp6(2),m.Q6J("disabled",0===Ie.selected.selected.length||Ie.disableRemove()),m.xp6(1),m.hij(" ",m.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),m.xp6(2),m.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",fe.inputId),m.xp6(1),m.Oqu(m.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading&&0!==Ie.groups.length),m.xp6(1),m.Q6J("ngIf",0===Ie.groups.length&&!Ie.loading)}},directives:[P.t,W.O5,ie.lW,Ae.gM,q.P,Me.Rr,he.JJ,he.On,De.$g,T.I,N.W,j.w],pipes:[Y.X$],styles:[""]}),D})()},81847:(Qe,be,p)=>{"use strict";p.d(be,{y:()=>te});var e=p(20449),b=p(32080),_=p(53455),w=p(32105),g=p(64080),A=p(93075),E=p(10036),C=p(9244),R=p(74414),I=p(51525),m=p(5e3),O=p(48966),P=p(96214),W=p(29772),ie=p(69808),Ae=p(47423),q=p(67322),Me=p(74107),he=p(90508),De=p(64901),T=p(20773),N=p(1903),j=p(51062),Y=p(20551);function ee(Ve,ve){if(1&Ve){const Oe=m.EpF();m.TgZ(0,"button",14),m.NdJ("click",function(){return m.CHM(Oe),m.oxw().onAddMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Ve){const Oe=m.oxw();m.Q6J("disabled",Oe.blockManualMemberAdding),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function de(Ve,ve){if(1&Ve){const Oe=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Oe),m.oxw().onInviteMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Ve&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function ce(Ve,ve){if(1&Ve){const Oe=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Oe),m.oxw().onRemoveMembers()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Ve){const Oe=m.oxw();m.Q6J("disabled",Oe.selection.isEmpty()),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Fe(Ve,ve){if(1&Ve&&(m.TgZ(0,"mat-option",17),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&Ve){const Oe=ve.$implicit;m.Q6J("value",Oe),m.xp6(1),m.Oqu(m.lcZ(2,2,Oe))}}function Ue(Ve,ve){1&Ve&&m._UZ(0,"mat-spinner",18)}function Xe(Ve,ve){if(1&Ve&&m._UZ(0,"perun-web-apps-members-dynamic-list",19),2&Ve){const Oe=m.oxw();m.Q6J("attrNames",Oe.attrNames)("selection",Oe.selection)("tableId",Oe.tableId)("displayedColumns",Oe.displayedColumns)("updateTable",Oe.updateTable)("searchString",Oe.searchString)("selectedStatuses",Oe.selectedStatuses)("voId",Oe.vo.id)}}let te=(()=>{class Ve{constructor(Oe,z,D,ge,Te,Ie,fe){this.notificator=Oe,this.dialog=z,this.authzService=D,this.storeService=ge,this.attributesManager=Te,this.apiRequest=Ie,this.entityStorageService=fe,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[g.r.MEMBER_DEF_ORGANIZATION,g.r.MEMBER_DEF_MAIL,g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL,g.r.MEMBER_DEF_EXPIRATION,g.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new A.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=E.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(Oe){this.searchString=Oe,this.selection.clear()}onAddMember(){const Oe=(0,C.kZ)();Oe.width="1000px",Oe.data={voId:this.vo.id},this.dialog.open(I.H,Oe).afterClosed().subscribe(D=>{D&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const Oe=(0,C.kZ)();Oe.width="450px",Oe.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(_.X,Oe).afterClosed().subscribe(D=>{D&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const Oe=(0,C.kZ)();Oe.width="650px",Oe.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(R.R,Oe)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Oe=this.statuses.value;return Oe?`${Oe[0]} ${Oe.length>1?"(+"+(Oe.length-1).toString()+" "+(2===Oe.length?"other)":"others)"):""}`:""}isManualAddingBlocked(Oe){return new Promise(z=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Oe,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(D=>{this.blockManualMemberAdding=null!==D.value,z()},D=>{const ge=D.error;"PrivilegeException"!==ge.name&&this.notificator.showError(ge.name),z()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return Ve.id="VoMembersComponent",Ve.\u0275fac=function(Oe){return new(Oe||Ve)(m.Y36(b.V6),m.Y36(O.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(w.H8),m.Y36(b.F5),m.Y36(b.fb))},Ve.\u0275cmp=m.Xpm({type:Ve,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(Oe,z){2&Oe&&m.ekj("router-component",z.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId"]],template:function(Oe,z){1&Oe&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return z.refreshTable()}),m.qZA(),m.TgZ(6,"div",4),m.ALo(7,"translate"),m.YNc(8,ee,3,4,"button",5),m.qZA(),m.YNc(9,de,3,3,"button",6),m.YNc(10,ce,3,4,"button",7),m.TgZ(11,"mat-form-field",8),m.TgZ(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",9),m.NdJ("closed",function(){return z.changeStatuses()}),m.TgZ(16,"mat-select-trigger"),m._uU(17),m.ALo(18,"memberStatus"),m.qZA(),m.YNc(19,Fe,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(20,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(ge){return z.onSearchByString(ge)}),m.qZA(),m.qZA(),m.YNc(21,Ue,1,0,"mat-spinner",12),m.YNc(22,Xe,1,8,"perun-web-apps-members-dynamic-list",13),m.qZA()),2&Oe&&(m.xp6(2),m.Oqu(m.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),m.xp6(4),m.s9C("matTooltip",m.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),m.Q6J("matTooltipDisabled",!z.blockManualMemberAdding),m.xp6(2),m.Q6J("ngIf",z.addAuth),m.xp6(1),m.Q6J("ngIf",z.inviteAuth),m.xp6(1),m.Q6J("ngIf",z.removeAuth),m.xp6(3),m.Oqu(m.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",z.statuses),m.xp6(2),m.hij(" ",m.lcZ(18,19,z.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",z.statusList),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",z.loading),m.xp6(1),m.Q6J("ngIf",!z.loading))},directives:[P.t,W.gM,ie.O5,Ae.lW,q.KE,q.hX,Me.gD,A.JJ,A.oH,Me.$L,ie.sg,he.ey,De.P,T.$g,N.m],pipes:[j.X$,Y.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),Ve})()},68056:(Qe,be,p)=>{"use strict";p.d(be,{z:()=>he});var e=p(20449),b=p(32105),_=p(533),w=p(10036),g=p(9244),A=p(32080),E=p(5e3),C=p(48966),R=p(96214),I=p(69808),m=p(47423),O=p(7434),P=p(20773),W=p(62109),ie=p(51062);function Ae(De,T){if(1&De){const N=E.EpF();E.TgZ(0,"button",6),E.NdJ("click",function(){return E.CHM(N),E.oxw().deleteSelectedResources()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&De){const N=E.oxw();E.Q6J("disabled",0===N.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function q(De,T){1&De&&E._UZ(0,"mat-spinner",7)}function Me(De,T){if(1&De&&E._UZ(0,"perun-web-apps-resources-list",8),2&De){const N=E.oxw();E.Q6J("disableRouting",!N.routeAuth)("filterValue",N.filterValue)("resources",N.resources)("routingVo",!0)("displayedColumns",N.displayedColumns)("selection",N.selected)("tableId",N.tableId)}}let he=(()=>{class De{constructor(N,j,Y,ee){this.resourcesManager=N,this.dialog=j,this.authResolver=Y,this.entityStorageService=ee,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(N=>{this.resources=N,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(N){this.filterValue=N}deleteSelectedResources(){const N=(0,g.kZ)();N.width="450px",N.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(_.f,N).afterClosed().subscribe(Y=>{Y&&this.refreshTable()})}}return De.id="VoResourcesPreviewComponent",De.\u0275fac=function(N){return new(N||De)(E.Y36(b.xk),E.Y36(C.uw),E.Y36(A.x4),E.Y36(A.fb))},De.\u0275cmp=E.Xpm({type:De,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(N,j){2&N&&E.ekj("router-component",j.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(N,j){1&N&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return j.refreshTable()}),E.qZA(),E.YNc(5,Ae,3,4,"button",2),E.TgZ(6,"perun-web-apps-immediate-filter",3),E.NdJ("filter",function(ee){return j.applyFilter(ee)}),E.qZA(),E.YNc(7,q,1,0,"mat-spinner",4),E.YNc(8,Me,1,7,"perun-web-apps-resources-list",5),E.qZA()),2&N&&(E.xp6(2),E.Oqu(E.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),E.xp6(3),E.Q6J("ngIf",j.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",j.loading),E.xp6(1),E.Q6J("ngIf",!j.loading))},directives:[R.t,I.O5,m.lW,O.L,P.$g,W.C],pipes:[ie.X$],styles:[""]}),De})()},24219:(Qe,be,p)=>{"use strict";p.d(be,{z:()=>re});var e=p(32080),b=p(32105),_=p(5e3),w=p(96214),g=p(53251),A=p(69808),E=p(98380),C=p(32075),R=p(20773),I=p(81125),m=p(4834),O=p(51062);function P(k,pe){1&k&&_._UZ(0,"mat-spinner",2)}function W(k,pe){if(1&k&&(_.TgZ(0,"mat-panel-description"),_.TgZ(1,"div"),_.TgZ(2,"i",10),_._uU(3," error "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.ALo(6,"translate"),_.qZA(),_.qZA()),2&k){const Z=_.oxw().$implicit,Ne=_.oxw(2);_.xp6(4),_.HOy(" ",Ne.getErrorCountStates(Z)," ",_.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",Z.taskList.length," ",_.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ie(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function Ae(k,pe){if(1&k&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&k){const Z=pe.$implicit;_.xp6(1),_.Oqu(Z.id)}}function q(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Me(k,pe){if(1&k&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&k){const Z=pe.$implicit;_.xp6(1),_.Oqu(Z.service.name)}}function he(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function De(k,pe){if(1&k&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&k){const Z=pe.$implicit;_.xp6(1),_.Oqu(Z.status)}}function T(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function N(k,pe){if(1&k&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&k){const Z=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Z.schedule,"d.M.y H:mm:ss")," ")}}function j(k,pe){1&k&&(_._uU(0),_.ALo(1,"translate")),2&k&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Y(k,pe){if(1&k&&(_.TgZ(0,"td",24),_.YNc(1,N,3,4,"div",25),_.YNc(2,j,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&k){const Z=pe.$implicit,Ne=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Z.schedule)("ngIfElse",Ne)}}function ee(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function de(k,pe){if(1&k&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&k){const Z=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Z.schedule,"d.M.y H:mm:ss")," ")}}function ce(k,pe){1&k&&(_._uU(0),_.ALo(1,"translate")),2&k&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Fe(k,pe){if(1&k&&(_.TgZ(0,"td",24),_.YNc(1,de,3,4,"div",25),_.YNc(2,ce,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&k){const Z=pe.$implicit,Ne=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Z.startTime)("ngIfElse",Ne)}}function Ue(k,pe){1&k&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function Xe(k,pe){if(1&k&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&k){const Z=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,Z.schedule,"d.M.y H:mm:ss")," ")}}function te(k,pe){1&k&&(_._uU(0),_.ALo(1,"translate")),2&k&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Ve(k,pe){if(1&k&&(_.TgZ(0,"td",24),_.YNc(1,Xe,3,4,"div",25),_.YNc(2,te,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&k){const Z=pe.$implicit,Ne=_.MAs(3);_.xp6(1),_.Q6J("ngIf",Z.endTime)("ngIfElse",Ne)}}function ve(k,pe){1&k&&_._UZ(0,"tr",28)}const Oe=function(k,pe,Z){return{redTableItem:k,greenTableItem:pe,yellowTableItem:Z}};function z(k,pe){if(1&k&&_._UZ(0,"tr",29),2&k){const Z=pe.$implicit;_.Q6J("ngClass",_.kEZ(1,Oe,"ERROR"===Z.status||"SENDERROR"===Z.status||"GENERROR"===Z.status,"DONE"===Z.status,"WARNING"===Z.status))}}function D(k,pe){if(1&k&&(_.TgZ(0,"table",12),_.ynx(1,13),_.YNc(2,ie,3,3,"th",14),_.YNc(3,Ae,2,1,"td",15),_.BQk(),_.ynx(4,16),_.YNc(5,q,3,3,"th",14),_.YNc(6,Me,2,1,"td",15),_.BQk(),_.ynx(7,17),_.YNc(8,he,3,3,"th",14),_.YNc(9,De,2,1,"td",15),_.BQk(),_.ynx(10,18),_.YNc(11,T,3,3,"th",14),_.YNc(12,Y,4,2,"td",15),_.BQk(),_.ynx(13,19),_.YNc(14,ee,3,3,"th",14),_.YNc(15,Fe,4,2,"td",15),_.BQk(),_.ynx(16,20),_.YNc(17,Ue,3,3,"th",14),_.YNc(18,Ve,4,2,"td",15),_.BQk(),_.YNc(19,ve,1,0,"tr",21),_.YNc(20,z,1,5,"tr",22),_.qZA()),2&k){const Z=_.oxw(2).$implicit,Ne=_.oxw(2);_.Q6J("dataSource",Ne.datasources[Ne.propagation.indexOf(Z)]),_.xp6(19),_.Q6J("matHeaderRowDef",Ne.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",Ne.displayedColumns)}}function ge(k,pe){1&k&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function Te(k,pe){if(1&k&&(_._UZ(0,"mat-divider"),_.YNc(1,D,21,3,"table",11),_.YNc(2,ge,3,3,"div",8)),2&k){const Z=_.oxw().$implicit;_.xp6(1),_.Q6J("ngIf",0!==Z.taskList.length),_.xp6(1),_.Q6J("ngIf",0===Z.taskList.length)}}function Ie(k,pe){if(1&k&&(_.TgZ(0,"mat-expansion-panel"),_.TgZ(1,"mat-expansion-panel-header"),_.TgZ(2,"mat-panel-title"),_._UZ(3,"img",6),_.TgZ(4,"div",7),_._uU(5),_.qZA(),_.qZA(),_.YNc(6,W,7,8,"mat-panel-description",8),_.qZA(),_.YNc(7,Te,3,2,"ng-template",9),_.qZA()),2&k){const Z=pe.$implicit,Ne=_.oxw(2);_.xp6(5),_.hij(" ",Z.resource.name," "),_.xp6(1),_.Q6J("ngIf",0!==Ne.getErrorCountStates(Z))}}function fe(k,pe){if(1&k&&(_.TgZ(0,"div",3),_.TgZ(1,"mat-accordion",4),_.YNc(2,Ie,8,2,"mat-expansion-panel",5),_.qZA(),_.qZA()),2&k){const Z=_.oxw();_.xp6(2),_.Q6J("ngForOf",Z.propagation)}}let Se=(()=>{class k{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(Z){let Ne=0;for(const oe of Z.taskList)("ERROR"===oe.status||"GENERROR"===oe.status||"SENDERROR"===oe.status)&&Ne++;return Ne}getDataSource(){this.datasources=[];for(const Z of this.propagation)this.datasources.push(new C.by(Z.taskList))}ngOnChanges(){this.getDataSource()}}return k.\u0275fac=function(Z){return new(Z||k)},k.\u0275cmp=_.Xpm({type:k,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[_.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(Z,Ne){1&Z&&(_.YNc(0,P,1,0,"mat-spinner",0),_.YNc(1,fe,3,1,"div",1)),2&Z&&(_.Q6J("ngIf",Ne.loading),_.xp6(1),_.Q6J("ngIf",!Ne.loading))},directives:[A.O5,R.$g,I.pp,A.sg,I.ib,I.yz,I.yK,I.u4,I.HS,m.d,C.BZ,C.w1,C.fO,C.ge,C.Dz,C.ev,C.as,C.XQ,C.nj,C.Gk,A.mk],pipes:[O.X$,A.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),k})();function Ke(k,pe){if(1&k&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",5),_._uU(3),_.qZA()),2&k){const Z=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),_.xp6(3),_.Oqu(Z.errorPropagation.length)}}function Je(k,pe){1&k&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function nt(k,pe){if(1&k&&(_.YNc(0,Je,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&k){const Z=_.oxw();_.Q6J("ngIf",!Z.loading&&0===Z.errorPropagation.length),_.xp6(1),_.Q6J("loading",Z.loading)("propagation",Z.errorPropagation)}}function je(k,pe){if(1&k&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",9),_._uU(3),_.qZA()),2&k){const Z=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),_.xp6(3),_.Oqu(Z.okPropagation.length)}}function Q(k,pe){1&k&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&k&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function Ce(k,pe){if(1&k&&(_.YNc(0,Q,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&k){const Z=_.oxw();_.Q6J("ngIf",!Z.loading&&0===Z.okPropagation.length),_.xp6(1),_.Q6J("loading",Z.loading)("propagation",Z.okPropagation)}}let re=(()=>{class k{constructor(Z,Ne){this.taskService=Z,this.entityStorageService=Ne,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(Z=>{this.resourceStates=Z,this.okPropagation=[],this.errorPropagation=[];for(const Ne of Z){let oe=!0;for(const _e of Ne.taskList)if("ERROR"===_e.status||"GENERROR"===_e.status||"SENDERROR"===_e.status){oe=!1;break}oe?this.okPropagation.push(Ne):this.errorPropagation.push(Ne)}this.loading=!1},()=>this.loading=!1)}}return k.id="VoResourcesStatesComponent",k.\u0275fac=function(Z){return new(Z||k)(_.Y36(b.Ob),_.Y36(e.fb))},k.\u0275cmp=_.Xpm({type:k,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(Z,Ne){2&Z&&_.ekj("router-component",Ne.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(Z,Ne){1&Z&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return Ne.refreshTable()}),_.qZA(),_.TgZ(4,"mat-tab-group",2),_.NdJ("selectedIndexChange",function(_e){return Ne.selectedIndex=_e}),_.TgZ(5,"mat-tab"),_.YNc(6,Ke,4,4,"ng-template",3),_.YNc(7,nt,2,3,"ng-template",4),_.qZA(),_.TgZ(8,"mat-tab"),_.YNc(9,je,4,4,"ng-template",3),_.YNc(10,Ce,2,3,"ng-template",4),_.qZA(),_.qZA()),2&Z&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),_.xp6(3),_.Q6J("selectedIndex",Ne.selectedIndex))},directives:[w.t,g.SP,g.uX,g.uD,g.Vc,A.O5,E.w,Se],pipes:[O.X$],styles:[""]}),k})()},10369:(Qe,be,p)=>{"use strict";p.d(be,{w:()=>Fe});var e=p(1186),b=p(32080),_=p(95502),w=p(51076),g=p(83491),A=p(32105),E=p(9244),C=p(5e3),R=p(48966),I=p(51062),m=p(11735),O=p(69808),P=p(20773),W=p(25245),ie=p(29772),Ae=p(47423),q=p(4834),Me=p(96214),he=p(98380),De=p(157);function T(Ue,Xe){1&Ue&&C._UZ(0,"mat-spinner",13)}function N(Ue,Xe){if(1&Ue){const te=C.EpF();C.TgZ(0,"button",21),C.NdJ("click",function(){return C.CHM(te),C.oxw(2).settings()}),C.TgZ(1,"i",10),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function j(Ue,Xe){if(1&Ue&&(C.TgZ(0,"div",14),C.TgZ(1,"div",15),C.TgZ(2,"div",16),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",16),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",17),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",18),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.qZA(),C.qZA(),C.TgZ(20,"div",19),C.YNc(21,N,5,3,"button",20),C.qZA(),C.qZA()),2&Ue){const te=C.oxw();C.xp6(3),C.AsE(" ",C.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",te.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",te.applicationForm.automaticApproval?C.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",te.applicationForm.automaticApprovalExtension?C.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(4),C.Q6J("ngIf",te.editAuth)}}function Y(Ue,Xe){if(1&Ue){const te=C.EpF();C.TgZ(0,"button",22),C.NdJ("click",function(){return C.CHM(te),C.oxw().add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ee(Ue,Xe){if(1&Ue){const te=C.EpF();C.TgZ(0,"button",23),C.NdJ("click",function(){return C.CHM(te),C.oxw().save()}),C.TgZ(1,"i",10),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ue){const te=C.oxw();C.Q6J("disabled",!te.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function de(Ue,Xe){if(1&Ue){const te=C.EpF();C.TgZ(0,"button",24),C.NdJ("click",function(){return C.CHM(te),C.oxw().copy()}),C.TgZ(1,"i",10),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function ce(Ue,Xe){1&Ue&&(C.TgZ(0,"perun-web-apps-alert",25),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Fe=(()=>{class Ue{constructor(te,Ve,ve,Oe,z,D,ge,Te){this.registrarManager=te,this.dialog=Ve,this.notificator=ve,this.translate=Oe,this.router=z,this.authResolver=D,this.voService=ge,this.entityStorageService=Te,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(te=>{this.applicationForm=te,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(Ve=>{this.applicationFormItems=Ve,this.loading=!1})})}add(){let te=(0,E.kZ)();te.width="500px",te.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,te).afterClosed().subscribe(ve=>{ve&&(this.applicationFormItems=Object.assign([],ve[0]),te=(0,E.kZ)(),te.width="600px",te.height="600px",te.data={voId:this.vo.id,applicationFormItem:ve[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,te),this.itemsChanged=!0)})}copy(){const te=(0,E.kZ)();te.width="500px",te.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(_.W,te).afterClosed().subscribe(ve=>{ve&&this.updateFormItems()})}settings(){const te=(0,E.kZ)();te.width="400px",te.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,te).afterClosed().subscribe(ve=>{ve&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Oe=>{this.notificator.showSuccess(Oe)}),this.applicationForm=ve)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(te=>{this.applicationFormItems=te,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let te=0;for(const Ve of this.applicationFormItems)Ve.ordnum=te,Ve.forDelete||te++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Ve=>{this.notificator.showSuccess(Ve)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(te=>te.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Ue.id="VoSettingsApplicationFormComponent",Ue.\u0275fac=function(te){return new(te||Ue)(C.Y36(A.tk),C.Y36(R.uw),C.Y36(b.V6),C.Y36(I.sK),C.Y36(m.F0),C.Y36(b.x4),C.Y36(A.YF),C.Y36(b.fb))},Ue.\u0275cmp=C.Xpm({type:Ue,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(te,Ve){2&te&&C.ekj("router-component",Ve.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(te,Ve){1&te&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,T,1,0,"mat-spinner",1),C.TgZ(4,"div"),C.YNc(5,j,22,18,"div",2),C._UZ(6,"mat-divider",3),C.TgZ(7,"div",4),C.TgZ(8,"perun-web-apps-refresh-button",5),C.NdJ("refresh",function(){return Ve.updateFormItems()}),C.qZA(),C.YNc(9,Y,3,3,"button",6),C.YNc(10,ee,5,4,"button",7),C.YNc(11,de,5,3,"button",8),C.TgZ(12,"button",9),C.NdJ("click",function(){return Ve.preview()}),C.TgZ(13,"i",10),C._uU(14,"search"),C.qZA(),C._uU(15),C.ALo(16,"translate"),C.qZA(),C.qZA(),C.YNc(17,ce,3,3,"perun-web-apps-alert",11),C.TgZ(18,"app-application-form-list",12),C.NdJ("applicationFormItemsChange",function(){return Ve.changeItems()}),C.qZA(),C.qZA()),2&te&&(C.xp6(1),C.hij(" ",C.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",Ve.loading),C.xp6(2),C.Q6J("ngIf",!Ve.loading),C.xp6(4),C.Q6J("ngIf",Ve.editAuth),C.xp6(1),C.Q6J("ngIf",Ve.editAuth),C.xp6(1),C.Q6J("ngIf",Ve.editAuth),C.xp6(4),C.hij(" ",C.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",Ve.editAuth),C.xp6(1),C.Q6J("applicationForm",Ve.applicationForm)("applicationFormItems",Ve.applicationFormItems)("loading",Ve.loading)("displayedColumns",Ve.displayedColumns)("refreshApplicationForm",Ve.refreshApplicationForm)("theme","vo-theme"))},directives:[O.O5,P.$g,W.Hw,ie.gM,Ae.lW,q.d,Me.t,he.w,De.b],pipes:[I.X$],styles:[""]}),Ue})()},3246:(Qe,be,p)=>{"use strict";p.d(be,{T:()=>kn});var e=p(32105),b=p(20449),_=p(10036),w=p(9244),g=p(48966),A=p(32080),E=p(93075),C=p(69808),R=p(45323),I=p(28499),m=p(5e3),O=p(51062),P=p(20773),W=p(92081),ie=p(98380),Ae=p(67322),q=p(98833),Me=p(74107),he=p(90508),De=p(29772),T=p(77446),N=p(13469),j=p(79814),Y=p(74250),ee=p(86856);let de=(()=>{class Mt{constructor(){this.expiration="never",this.datePicker=new m.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const rt=new Date;this.minDate=new Date(rt.getFullYear(),rt.getMonth(),rt.getDate()),this.expirationControl.setValue((0,C.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return Mt.\u0275fac=function(rt){return new(rt||Mt)},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(rt,Nt){if(1&rt){const Ge=m.EpF();m.TgZ(0,"mat-radio-group",0),m.NdJ("ngModelChange",function(qe){return Nt.expiration=qe})("change",function(){return Nt.emitDate()}),m.TgZ(1,"mat-radio-button",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",2),m.TgZ(5,"mat-form-field",3),m.NdJ("click",function(){return m.CHM(Ge),m.MAs(12).open()}),m.TgZ(6,"mat-label"),m._uU(7),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"input",4),m.NdJ("dateChange",function(){return Nt.setExpiration()}),m.qZA(),m._UZ(10,"mat-datepicker-toggle",5),m._UZ(11,"mat-datepicker",6,7),m.qZA(),m.qZA(),m.qZA()}if(2&rt){const Ge=m.MAs(12);m.Q6J("ngModel",Nt.expiration),m.xp6(2),m.hij(" ",m.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),m.xp6(2),m.s9C("value",Nt.expirationControl.value),m.xp6(3),m.Oqu(m.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),m.xp6(2),m.Q6J("min",Nt.minDate)("formControl",Nt.expirationControl)("matDatepicker",Ge),m.xp6(1),m.Q6J("for",Ge)("disabled",!1),m.xp6(1),m.Q6J("disabled",!1)}},directives:[j.VQ,E.JJ,E.On,j.U0,Ae.KE,Ae.hX,q.Nt,E.Fj,ee.hl,E.oH,ee.nW,Ae.R9,ee.Mq],pipes:[O.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var ce=p(25245),Fe=p(47423),Ue=p(31359);const Xe=["stepper"];function te(Mt,Qt){1&Mt&&(m.TgZ(0,"h1",4),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function Ve(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",5)}function ve(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function Oe(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function z(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function D(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function ge(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function Te(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",35),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function Ie(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function fe(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Se(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Ke(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Je(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-search-select",36),m.NdJ("userSelected",function(Ge){return m.CHM(rt),m.oxw(2).selectedSponsor=Ge}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("disableAutoSelect",!0)("users",rt.voSponsors)}}function nt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",6),m.TgZ(1,"mat-stepper",7,8),m.TgZ(3,"mat-step",9),m.YNc(4,ve,2,3,"ng-template",10),m.YNc(5,Oe,3,3,"perun-web-apps-alert",11),m.TgZ(6,"form",12),m.TgZ(7,"h5",13),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-form-field",14),m._UZ(11,"input",15),m.ALo(12,"translate"),m.YNc(13,z,3,3,"mat-error",16),m.qZA(),m.TgZ(14,"mat-form-field"),m._UZ(15,"input",17),m.ALo(16,"translate"),m.YNc(17,D,3,3,"mat-error",16),m.qZA(),m.TgZ(18,"mat-form-field"),m._UZ(19,"input",18),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-form-field"),m._UZ(22,"input",19),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"mat-step",9),m.YNc(25,ge,2,3,"ng-template",10),m.TgZ(26,"h5",13),m._uU(27),m.ALo(28,"translate"),m.qZA(),m.TgZ(29,"form",20),m.TgZ(30,"mat-form-field"),m.TgZ(31,"mat-select",21),m.NdJ("valueChange",function(Ge){return m.CHM(rt),m.oxw().onNamespaceChanged(Ge)}),m.ALo(32,"translate"),m.YNc(33,Te,2,2,"mat-option",22),m.qZA(),m.YNc(34,Ie,3,3,"mat-error",16),m.qZA(),m.TgZ(35,"mat-form-field",23),m.ALo(36,"translate"),m._UZ(37,"input",24),m.ALo(38,"translate"),m.YNc(39,fe,3,3,"mat-error",16),m.qZA(),m.TgZ(40,"mat-form-field"),m._UZ(41,"input",25),m.ALo(42,"translate"),m.YNc(43,Se,3,3,"mat-error",16),m.qZA(),m.TgZ(44,"span",23),m.ALo(45,"translate"),m.TgZ(46,"mat-checkbox",26),m.NdJ("change",function(){return m.CHM(rt),m.oxw().passwordResetChange()}),m._uU(47),m.ALo(48,"translate"),m.qZA(),m.qZA(),m._UZ(49,"perun-web-apps-password-form",27),m.qZA(),m.qZA(),m.TgZ(50,"mat-step"),m.YNc(51,Ke,2,3,"ng-template",10),m.TgZ(52,"div",28),m.TgZ(53,"h5",13),m._uU(54),m.ALo(55,"translate"),m.qZA(),m.TgZ(56,"div",14),m.TgZ(57,"h6"),m._uU(58),m.ALo(59,"translate"),m.qZA(),m.TgZ(60,"mat-radio-group",29),m.NdJ("ngModelChange",function(Ge){return m.CHM(rt),m.oxw().sponsorType=Ge}),m.TgZ(61,"span",30),m.ALo(62,"translate"),m.TgZ(63,"mat-radio-button",31),m.NdJ("click",function(){return m.CHM(rt),m.oxw().selectedSponsor=null}),m._uU(64),m.ALo(65,"translate"),m.qZA(),m.qZA(),m.TgZ(66,"span",30),m.ALo(67,"translate"),m.TgZ(68,"mat-radio-button",32),m._uU(69),m.ALo(70,"translate"),m.qZA(),m.qZA(),m.qZA(),m.YNc(71,Je,2,2,"div",16),m.qZA(),m.TgZ(72,"h6",14),m._uU(73),m.ALo(74,"translate"),m.qZA(),m.TgZ(75,"perun-web-apps-expiration-select",33),m.NdJ("datePicker",function(Ge){return m.CHM(rt),m.oxw().setExpiration(Ge)}),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.userControl),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(1),m.Q6J("formGroup",rt.userControl),m.xp6(2),m.hij(" ",m.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","firstName")),m.xp6(2),m.s9C("placeholder",m.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","lastName")),m.xp6(2),m.s9C("placeholder",m.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),m.xp6(3),m.s9C("placeholder",m.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),m.xp6(2),m.Q6J("stepControl",rt.namespaceControl),m.xp6(3),m.Oqu(m.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl),m.xp6(2),m.s9C("placeholder",m.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.namespaceControl.hasError("required","namespace")),m.xp6(1),m.s9C("matTooltip",m.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("login").enabled),m.xp6(2),m.s9C("placeholder",m.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","login")),m.xp6(2),m.s9C("placeholder",m.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","email")||rt.namespaceControl.hasError("pattern","email")),m.xp6(1),m.s9C("matTooltip",m.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("passwordReset").enabled),m.xp6(3),m.hij("",m.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl)("namespace",rt.selectedNamespace)("tooltipPwdViaEmail",rt.namespaceControl.get("passwordReset").value),m.xp6(5),m.Oqu(m.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),m.xp6(4),m.Oqu(m.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),m.xp6(2),m.Q6J("ngModel",rt.sponsorType),m.xp6(1),m.s9C("matTooltip",m.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),m.Q6J("matTooltipDisabled",rt.isSponsor),m.xp6(2),m.Q6J("disabled",!rt.isSponsor),m.xp6(1),m.hij(" ",m.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),m.Q6J("matTooltipDisabled",rt.isPerunAdmin),m.xp6(2),m.Q6J("disabled",!rt.isPerunAdmin),m.xp6(1),m.hij(" ",m.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),m.xp6(2),m.Q6J("ngIf","other"===rt.sponsorType),m.xp6(2),m.Oqu(m.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function je(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",6),m.TgZ(1,"div",37),m.TgZ(2,"mat-icon",38),m._uU(3,"done"),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"i"),m._uU(7),m.ALo(8,"userFullName"),m.qZA(),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"div"),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"perun-web-apps-alert",39),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(4),m.hij(" ",m.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),m.xp6(3),m.Oqu(m.lcZ(8,10,rt.createdMember.user)),m.xp6(2),m.hij(" ",m.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),m.xp6(3),m.AsE("",m.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",rt.loginThatWasSet,""),m.xp6(3),m.AsE(" ",m.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",rt.namespaceControl.get("passwordCtrl").value," "),m.xp6(3),m.Oqu(m.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function Q(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&Mt&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function Ce(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function re(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",46),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function k(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onConfirm()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.sponsorType||"other"===rt.sponsorType&&null===rt.selectedSponsor),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function pe(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",42),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,Ce,3,3,"button",43),m.YNc(5,re,3,8,"button",44),m.YNc(6,k,3,4,"button",45),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}let Z=(()=>{class Mt{constructor(rt,Nt,Ge,Ot,qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=rt,this.data=Nt,this.membersService=Ge,this.apiRequestConfiguration=Ot,this.usersService=qe,this.store=Tt,this.translator=jt,this.authzService=ci,this.guiAuthResolver=vi,this.formBuilder=Ui,this.cd=Li,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(rt,Nt,Ge){for(const Ot of Nt)switch(Ot){case"login":rt.login=Ge;break;case"password":rt.password=Ge}}onConfirm(){this.loading=!0;const rt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},Nt=this.namespaceControl.get("namespace").value,Ge=this.parsedRules.get(Nt);"No namespace"!==Nt&&(rt.userData.namespace=Nt),"disabled"!==Ge.login&&(rt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Ge.password&&(rt.sendActivationLink=this.namespaceControl.get("passwordReset").value,rt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(rt.validityTo=this.expiration),this.membersService.createSponsoredMember(rt).subscribe(Ot=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ot,!!Ot&&!!Ot.userAttributes&&Ot.userAttributes.filter(qe=>"login-namespace"===qe.baseFriendlyName).filter(qe=>qe.friendlyNameParameter===Nt).filter(qe=>null!==qe.value).forEach(qe=>{this.loginThatWasSet=qe.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(rt){this.selectedNamespace=rt;const Nt=this.parsedRules.get(rt),Ge=this.namespaceControl.get("login"),Ot=this.namespaceControl.get("passwordCtrl"),qe=this.namespaceControl.get("passwordAgainCtrl"),Tt=this.namespaceControl.get("passwordReset");"disabled"!==Nt.login?(0,w.mH)(Ge,"optional"===Nt.login?[]:[E.kI.required]):(Ge.disable(),Ge.setValue("")),"disabled"!==Nt.password?((0,w.mH)(Ot,"optional"===Nt.password?[]:[E.kI.required],[(0,I.yT)(rt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(qe,[]),(0,w.mH)(Tt,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(Ot.disable(),Ot.setValue(""),qe.disable(),qe.setValue(""),Tt.disable(),Tt.setValue(!1))}passwordResetChange(){const rt=this.namespaceControl.get("passwordCtrl"),Nt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(rt.disable(),rt.setValue(""),Nt.disable(),Nt.setValue("")):(rt.enable(),Nt.enable())}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(R.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",E.kI.required],lastName:["",E.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",E.kI.required],login:["",[E.kI.required]],passwordCtrl:["",E.kI.required,[(0,I.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[E.kI.required,E.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(rt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(rt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const rt of this.namespaceRules){this.namespaceOptions.push(rt.namespaceName);const Nt={login:"disabled",password:"disabled"};Mt.parseAttributes(Nt,rt.requiredAttributes,"required"),Mt.parseAttributes(Nt,rt.optionalAttributes,"optional"),this.parsedRules.set(rt.namespaceName,Nt)}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(e.uq),m.Y36(A.F5),m.Y36(e.Fv),m.Y36(A.d6),m.Y36(O.sK),m.Y36(e.Ct),m.Y36(A.x4),m.Y36(E.qu),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(rt,Nt){if(1&rt&&m.Gf(Xe,5),2&rt){let Ge;m.iGM(Ge=m.CRH())&&(Nt.stepper=Ge.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(rt,Nt){1&rt&&(m.TgZ(0,"div"),m.YNc(1,te,3,3,"h1",0),m.YNc(2,Ve,1,0,"mat-spinner",1),m.YNc(3,nt,76,80,"div",2),m.YNc(4,je,20,20,"div",2),m.YNc(5,Q,4,3,"div",3),m.YNc(6,pe,7,6,"div",3),m.qZA()),2&rt&&(m.Tol(Nt.theme),m.xp6(1),m.Q6J("ngIf",!Nt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",Nt.loading),m.xp6(1),m.Q6J("ngIf",!Nt.loading&&!Nt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!Nt.loading&&Nt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",Nt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!Nt.loading&&!Nt.successfullyCreated))},directives:[C.O5,g.uh,P.$g,g.xY,W.Vq,W.C0,W.VY,ie.w,E._Y,E.JL,E.sg,Ae.KE,q.Nt,E.Fj,E.JJ,E.u,E.Q7,Ae.TO,Me.gD,C.sg,he.ey,De.gM,T.oG,N.G,j.VQ,E.On,j.U0,Y.S,de,ce.Hw,g.H8,Fe.lW],pipes:[O.X$,Ue.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Mt})();var Ne=p(64080),oe=p(61150),_e=p(7434),$=p(24179),V=p(92181);const i=["stepper"];function a(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",4)}function d(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",29),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function s(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",30),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function r(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function n(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function o(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function h(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function x(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function We(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-radio-group",32),m.NdJ("ngModelChange",function(Ge){return m.CHM(rt),m.oxw(3).passwordReset=Ge}),m.TgZ(1,"mat-radio-button",33),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",34),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.Q6J("ngModel",rt.passwordReset),m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),m.xp6(3),m.hij(" ",m.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function At(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Ht(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function lt(Mt,Qt){1&Mt&&(m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-alert",35),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()),2&Mt&&(m.xp6(2),m.Oqu(m.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ut(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-create-group-form",37),m.NdJ("asSubgroupChanged",function(Ge){return m.CHM(rt),m.oxw(3).asSubGroup=Ge})("nameChanged",function(Ge){return m.CHM(rt),m.oxw(3).name=Ge})("descriptionChanged",function(Ge){return m.CHM(rt),m.oxw(3).description=Ge})("parentGroupChanged",function(Ge){return m.CHM(rt),m.oxw(3).parentGroup=Ge}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),m.xp6(2),m.Q6J("voGroups",rt.allVoGroups)}}const mt=function(){return["select","id","name","description"]};function Lt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",38),m.NdJ("filter",function(Ge){return m.CHM(rt),m.oxw(3).applyFilter(Ge)}),m.qZA(),m._UZ(5,"perun-web-apps-groups-list",39),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),m.xp6(2),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("groups",rt.assignableGroups)("selection",rt.selection)("disableRouting",!0)("displayedColumns",m.DdM(10,mt))("filter",rt.filterValue)("tableId",rt.tableId)}}function we(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-stepper",8,9),m.TgZ(2,"mat-step",10),m.YNc(3,d,2,3,"ng-template",11),m.YNc(4,l,3,3,"perun-web-apps-alert",12),m.TgZ(5,"h5",13),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"form",14),m.TgZ(9,"mat-form-field"),m.TgZ(10,"mat-select",15),m.ALo(11,"translate"),m.YNc(12,s,2,2,"mat-option",16),m.qZA(),m.YNc(13,r,3,3,"mat-error",7),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"div",17),m._uU(18),m.qZA(),m.TgZ(19,"mat-form-field",18),m.TgZ(20,"mat-label"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"textarea",19),m._uU(24," "),m.qZA(),m.YNc(25,t,3,3,"mat-error",7),m.YNc(26,n,3,4,"mat-error",7),m.YNc(27,o,3,4,"mat-error",7),m.YNc(28,c,3,4,"mat-error",7),m.qZA(),m.qZA(),m.qZA(),m.TgZ(29,"mat-step"),m.YNc(30,h,2,3,"ng-template",11),m.TgZ(31,"div",13),m.TgZ(32,"h5",20),m._uU(33),m.ALo(34,"translate"),m.qZA(),m.YNc(35,x,3,3,"perun-web-apps-alert",21),m.YNc(36,We,7,7,"mat-radio-group",22),m.qZA(),m.qZA(),m.TgZ(37,"mat-step"),m.YNc(38,At,2,3,"ng-template",11),m.TgZ(39,"div",13),m.TgZ(40,"h5",20),m._uU(41),m.ALo(42,"translate"),m.qZA(),m.TgZ(43,"perun-web-apps-expiration-select",23),m.NdJ("datePicker",function(Ge){return m.CHM(rt),m.oxw(2).setExpiration(Ge)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(44,"mat-step"),m.YNc(45,Ht,2,3,"ng-template",11),m.TgZ(46,"div",13),m.TgZ(47,"h5",20),m._uU(48),m.ALo(49,"translate"),m.qZA(),m.TgZ(50,"mat-radio-group",24),m.NdJ("change",function(){return m.CHM(rt),m.oxw(2).groupAssigmentChanged()})("ngModelChange",function(Ge){return m.CHM(rt),m.oxw(2).groupAssignment=Ge}),m.TgZ(51,"mat-radio-button",25),m._uU(52),m.ALo(53,"translate"),m.qZA(),m.TgZ(54,"span",26),m.ALo(55,"translate"),m.TgZ(56,"mat-radio-button",27),m._uU(57),m.ALo(58,"translate"),m.qZA(),m.qZA(),m.TgZ(59,"span",26),m.ALo(60,"translate"),m.TgZ(61,"mat-radio-button",28),m._uU(62),m.ALo(63,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.YNc(64,lt,4,3,"div",7),m.YNc(65,Ut,5,4,"div",7),m.YNc(66,Lt,6,11,"div",7),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.usersInfoFormGroup),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(2),m.Oqu(m.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),m.xp6(2),m.Q6J("formGroup",rt.usersInfoFormGroup),m.xp6(2),m.s9C("placeholder",m.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","namespace")),m.xp6(2),m.Oqu(m.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),m.xp6(3),m.hij(" ",rt.getSelectedNamespaceRules().csvGenHeaderDescription," "),m.xp6(3),m.Oqu(m.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),m.xp6(2),m.s9C("placeholder",rt.getSelectedNamespaceRules().csvGenPlaceholder),m.xp6(2),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),m.xp6(5),m.hij(" ",m.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),m.xp6(2),m.Q6J("ngIf","No namespace"===rt.getSelectedNamespaceRules().namespaceName),m.xp6(1),m.Q6J("ngIf","No namespace"!==rt.getSelectedNamespaceRules().namespaceName),m.xp6(5),m.Oqu(m.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),m.xp6(2),m.Q6J("expiration",rt.expiration),m.xp6(5),m.Oqu(m.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),m.xp6(2),m.Q6J("ngModel",rt.groupAssignment),m.xp6(2),m.hij(" ",m.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&rt.createGroupAuth),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||!rt.createGroupAuth),m.xp6(1),m.hij(" ",m.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&0!==rt.assignableGroups.length),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||0===rt.assignableGroups.length),m.xp6(1),m.hij(" ",m.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),m.xp6(2),m.Q6J("ngIf","none"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","new"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","existing"===rt.groupAssignment)}}function ze(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","success"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function U(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","warn"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function L(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div"),m.YNc(1,ze,3,4,"perun-web-apps-alert",40),m.YNc(2,U,3,4,"perun-web-apps-alert",40),m.qZA()),2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("ngIf",!1===rt.finishedWithErrors),m.xp6(1),m.Q6J("ngIf",rt.finishedWithErrors)}}function ne(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",5),m.YNc(1,we,67,59,"mat-stepper",6),m.YNc(2,L,3,2,"div",7),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("ngIf","user-input"===rt.state),m.xp6(1),m.Q6J("ngIf","results"===rt.state)}}function le(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function Le(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function ct(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onSubmit()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.groupAssignment||"existing"===rt.groupAssignment&&0===rt.selection.selected.length||"new"===rt.groupAssignment&&(0===rt.name.length||0===rt.description.length)||!0===rt.asSubGroup&&null===rt.parentGroup),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function bt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,le,3,3,"button",44),m.YNc(5,Le,3,8,"button",45),m.YNc(6,ct,3,4,"button",46),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}function xt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onClose()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",49),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"mat-menu",null,50),m.TgZ(9,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().generatePdf()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().downloadCsv()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.MAs(8);m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),m.xp6(2),m.Q6J("matMenuTriggerFor",rt),m.xp6(1),m.hij(" ",m.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),m.xp6(5),m.hij(" ",m.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),m.xp6(3),m.hij(" ",m.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Yt=(()=>{class Mt{constructor(rt,Nt,Ge,Ot,qe,Tt,jt,ci,vi,Ui,Li,hn){this.dialogRef=rt,this.data=Nt,this.store=Ge,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.guiAuthResolver=jt,this.groupsService=ci,this.attributesService=vi,this.formBuilder=Ui,this.sponsoredMembersPDFService=Li,this.cd=hn,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new b.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=_.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[Ne.r.GROUP_SYNC_ENABLED,Ne.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(rt){return rt.forEach(Nt=>{if("OK"!==Nt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",E.kI.required],sponsoredMembers:["",[E.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(rt=>{this.manualMemberAddingBlocked=(0,w.jh)(rt,Ne.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(Nt=>{this.allVoGroups=Nt.filter(Ge=>"members"!==Ge.name),this.assignableGroups=this.filterAssignableGroups(Nt),this.membersService.getAllNamespacesRules().subscribe(Ge=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(Ge),this.namespaceRules.forEach(Ot=>this.namespaceOptions.push(Ot.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}applyFilter(rt){this.filterValue=rt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(rt=>rt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(rt=>rt.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,w.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}filterAssignableGroups(rt){const Nt=[];for(const Ge of rt)!(0,w.bx)(Ge)&&!(0,w.jh)(Ge.attributes,Ne.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Ge])&&Nt.push(Ge);return Nt}createOutputObjects(rt){let Nt="",Ge="",Ot="",qe="";const Tt=[];return rt.forEach(jt=>{Nt=jt.name.replace(";"," ").split(";")[0],Ge=jt.status,Ot=jt.login?jt.login:Ot,qe=jt.password?jt.password:qe;const ci={name:Nt,status:Ge,login:Ot,password:qe};jt.note&&(ci.note=jt.note),Tt.push(ci)}),Tt}onGenerate(){this.loading=!0;const rt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),Nt=this.getSelectedNamespaceRules().csvGenHeader,Ge=[];for(const qe of rt){const Tt=this.parseMemberLine(qe);if("format"===Tt||"email"===Tt)return void(this.loading=!1);""!==Tt&&Ge.push(Tt)}const Ot={data:Ge,header:Nt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(Ot.groups=this.groupIds),"never"!==this.expiration&&(Ot.validityTo=(0,C.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ot.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ot).subscribe(qe=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(qe),this.loading=!1,this.resultData=qe},()=>this.loading=!1)}parseMemberLine(rt){const Nt=rt.trim();if(""===Nt)return"";const Ge=Nt.split(";"),Ot=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Ge.length!==Ot.length)return"format";if("mail"===Ot[2].slice(Ot[2].length-4).toLowerCase()&&!Ge[2].trim().match(w.B2))return"email";if("login"===Ot[3]&&""===Ge[3].trim())return"login";let qe="";for(const Tt of Ge)qe+=Tt.trim()+";";return qe.slice(0,-1)}userInputValidator(){return rt=>{const Nt=rt.value.split("\n");for(const Ge of Nt){const Ot=this.parseMemberLine(Ge);if("format"===Ot)return{invalidFormat:{value:Ge}};if("email"===Ot)return{invalidEmail:{value:Ge}};if("login"===Ot)return{invalidLogin:{value:Ge}}}return null}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(O.sK),m.Y36(A.x4),m.Y36(e.ff),m.Y36(e.H8),m.Y36(E.qu),m.Y36(A.HV),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(rt,Nt){if(1&rt&&m.Gf(i,5),2&rt){let Ge;m.iGM(Ge=m.CRH())&&(Nt.stepper=Ge.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(rt,Nt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,a,1,0,"mat-spinner",1),m.YNc(5,ne,3,2,"div",2),m.YNc(6,bt,7,6,"div",3),m.YNc(7,xt,15,13,"div",3),m.qZA()),2&rt&&(m.Tol(Nt.theme),m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",Nt.loading),m.xp6(1),m.Q6J("ngIf",!Nt.loading),m.xp6(1),m.Q6J("ngIf",!Nt.loading&&void 0!==Nt.stepper&&"results"!==Nt.state),m.xp6(1),m.Q6J("ngIf","results"===Nt.state))},directives:[g.uh,C.O5,P.$g,g.xY,W.Vq,W.C0,W.VY,ie.w,E._Y,E.JL,E.sg,Ae.KE,Me.gD,E.JJ,E.u,E.Q7,C.sg,he.ey,Ae.TO,Ae.hX,E.Fj,q.Nt,j.VQ,E.On,j.U0,de,De.gM,oe.r,_e.L,$.W,g.H8,Fe.lW,V.p6,V.VK,V.OP],pipes:[O.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var It=p(38383);function Rt(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",12)}const Et=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Bt(Mt,Qt){if(1&Mt&&m._UZ(0,"perun-web-apps-members-list",13),2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!0)("hidden",rt.loading)("disableStatusChange",!0)("members",rt.members)("selection",rt.selection)("displayedColumns",m.DdM(7,Et))("tableId",rt.tableId)}}function Jt(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ai=(()=>{class Mt{constructor(rt,Nt,Ge,Ot,qe,Tt){this.dialogRef=rt,this.data=Nt,this.store=Ge,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.loading=!1,this.tableId=_.US,this.expiration="never",this.searchCtrl=new E.NI("",[E.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(rt){if(this.loading=!0,0===rt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Nt=rt.pop();Nt.sponsored?this.membersService.sponsorMember(Nt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(Nt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const rt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(rt)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[Ne.r.MEMBER_DEF_EXPIRATION,Ne.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(Nt=>{this.members=Nt,this.loading=!1},()=>this.loading=!1))}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(O.sK))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(rt,Nt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",1),m.TgZ(5,"mat-form-field",2),m.TgZ(6,"label"),m.TgZ(7,"input",3),m.NdJ("keyup.enter",function(){return Nt.onSearchByString()}),m.ALo(8,"translate"),m.qZA(),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",4),m.NdJ("click",function(){return Nt.onSearchByString()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.YNc(15,Rt,1,0,"mat-spinner",5),m.YNc(16,Bt,1,8,"perun-web-apps-members-list",6),m.YNc(17,Jt,3,3,"perun-web-apps-alert",7),m.TgZ(18,"div"),m._UZ(19,"br"),m.TgZ(20,"h6"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"perun-web-apps-expiration-select",8),m.NdJ("datePicker",function(Ot){return Nt.setExpiration(Ot)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"div",9),m.TgZ(25,"button",10),m.NdJ("click",function(){return Nt.onCancel()}),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.TgZ(28,"button",11),m.NdJ("click",function(){return Nt.onSubmit()}),m._uU(29),m.ALo(30,"translate"),m.qZA(),m.qZA(),m.qZA()),2&rt&&(m.Tol(Nt.theme),m.xp6(2),m.Oqu(m.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),m.Q6J("formControl",Nt.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",Nt.loading),m.xp6(1),m.hij(" ",m.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),m.xp6(2),m.Q6J("ngIf",Nt.loading),m.xp6(1),m.Q6J("ngIf",Nt.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!Nt.firstSearchDone),m.xp6(4),m.Oqu(m.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),m.xp6(5),m.hij(" ",m.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",Nt.loading||0===Nt.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[g.uh,g.xY,Ae.KE,q.Nt,E.Fj,E.JJ,E.oH,Ae.TO,Fe.lW,C.O5,P.$g,It.O,ie.w,de,g.H8],pipes:[O.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Mt})();var mi=p(96214),bi=p(84847),yi=p(32075),Wi=p(19352),gn=p(58964),cn=p(18750),Ki=p(50301),Tn=p(11735),rn=p(20919),st=p(5865);function St(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"th",19),m.TgZ(1,"mat-checkbox",20),m.NdJ("change",function(Ge){m.CHM(rt);const Ot=m.oxw();return Ge?Ot.masterToggle():null}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("aria-label",rt.checkboxLabel())("checked",rt.selection.hasValue()&&rt.isAllSelected())("indeterminate",rt.selection.hasValue()&&!rt.isAllSelected())}}function ot(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",21),m.TgZ(1,"mat-checkbox",22),m.NdJ("change",function(Ge){const qe=m.CHM(rt).$implicit,Tt=m.oxw();return Ge?Tt.selection.toggle(qe):null})("click",function(Ge){return Ge.stopPropagation()}),m.qZA(),m.qZA()}if(2&Mt){const rt=Qt.$implicit,Nt=m.oxw();m.xp6(1),m.Q6J("aria-label",Nt.checkboxLabel(rt))("checked",Nt.selection.isSelected(rt))}}function $e(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function vt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",rt.member.id," ")}}function F(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Ye(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member.user)," ")}}function gt(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function Dt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberEmail"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,rt.member))}}function ri(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function ti(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberLogins"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member)," ")}}function Di(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function wi(Mt,Qt){if(1&Mt&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"userFullName"),m._UZ(3,"br"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.user),"")}}function $i(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m.YNc(1,wi,4,3,"span",27),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Q6J("ngForOf",rt.sponsors)}}function qi(Mt,Qt){1&Mt&&m._UZ(0,"th",23)}function Fi(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"span",30),m.ALo(1,"translate"),m.TgZ(2,"button",31),m.NdJ("mouseenter",function(){return m.CHM(rt),m.oxw(2).disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ge=m.oxw(2);return Ge.disableRouting=Ge.routingStrategy})("click",function(){m.CHM(rt);const Ge=m.oxw().$implicit;return m.oxw().resetPassword(Ge)}),m.TgZ(3,"mat-icon"),m._uU(4,"vpn_key"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("matTooltipPosition","above")("matTooltip",m.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),m.xp6(2),m.Q6J("disabled",rt.loading)}}function Ji(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",25),m.TgZ(1,"button",28),m.NdJ("click",function(){const Ot=m.CHM(rt).$implicit;return m.oxw().showSponsors(Ot)})("mouseenter",function(){return m.CHM(rt),m.oxw().disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ge=m.oxw();return Ge.disableRouting=Ge.routingStrategy}),m.TgZ(2,"mat-icon"),m._uU(3,"edit"),m.qZA(),m.qZA(),m.YNc(4,Fi,5,5,"span",29),m.qZA()}if(2&Mt){const rt=Qt.$implicit,Nt=m.oxw();m.xp6(4),m.Q6J("ngIf",Nt.passwdResetAuth(rt))}}function _n(Mt,Qt){1&Mt&&m._UZ(0,"tr",32)}const ki=function(Mt,Qt){return["/organizations",Mt,"members",Qt]};function Ri(Mt,Qt){if(1&Mt&&m._UZ(0,"tr",33),2&Mt){const rt=Qt.$implicit,Nt=m.oxw();m.ekj("cursor-pointer",!Nt.disableRouting)("disable-outline",Nt.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",Nt.disableRouting?null:m.WLB(6,ki,rt.member.voId,rt.member.id))("routerLink",Nt.disableRouting?null:m.WLB(9,ki,rt.member.voId,rt.member.id))}}function sn(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xi(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let en=(()=>{class Mt{constructor(rt,Nt,Ge,Ot,qe){this.dialog=rt,this.authResolver=Nt,this.storeService=Ge,this.attributesManager=Ot,this.tableCheckbox=qe,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new m.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(rt){this.sort=rt}static getSortDataForColumn(rt,Nt){var Ge;switch(Nt){case"id":return rt.member.id.toString();case"name":return rt.member.user?rt.member.user.lastName?rt.member.user.lastName:null!==(Ge=rt.member.user.firstName)&&void 0!==Ge?Ge:"":"";case"sponsors":return rt.sponsors.length.toString();default:return""}}static getDataForColumn(rt,Nt){switch(Nt){case"id":return rt.member.id.toString();case"name":return rt.member.user?(0,w.bD)(rt.member.user):"";case"sponsors":return rt.sponsors.map(Ge=>(0,w.bD)(Ge.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(rt=>"id"!==rt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportData(rt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),rt)}setDataSource(){this.dataSource||(this.dataSource=new yi.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(rt,Nt)=>(0,w.Sd)(rt,Nt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(rt,Nt)=>(0,w.pR)(rt,Nt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(rt){const Nt=(0,w.kZ)();Nt.width="650px",Nt.data={sponsors:rt.sponsors,member:rt.member,theme:"vo-theme"},this.dialog.open(Wi.H,Nt).afterClosed().subscribe(Ot=>{Ot&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(rt){return rt?`${this.selection.isSelected(rt)?"deselect":"select"} row ${rt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(rt){this.loading=!0;const Nt=this.storeService.get("password_namespace_attributes").map(Ge=>{const Ot=Ge.split(":");return Ot[Ot.length-1]});this.attributesManager.getLogins(rt.member.userId).subscribe(Ge=>{const Ot=Ge.filter(jt=>Nt.includes(jt.friendlyNameParameter)),qe=(0,w.kZ)();qe.width="400px",qe.data={userId:rt.member.userId,memberId:rt.member.id,logins:Ot},this.dialog.open(gn.m,qe).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(rt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:rt.member.voId,beanName:"Vo"},rt.member])}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.H8),m.Y36(A.UA))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(rt,Nt){if(1&rt&&(m.Gf(w.l9,7),m.Gf(bi.YE,7)),2&rt){let Ge;m.iGM(Ge=m.CRH())&&(Nt.child=Ge.first),m.iGM(Ge=m.CRH())&&(Nt.matSort=Ge.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(rt,Nt){1&rt&&(m.TgZ(0,"div",0),m.TgZ(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(Ot){return Nt.exportData(Ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,St,2,3,"th",4),m.YNc(5,ot,2,2,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,$e,3,3,"th",7),m.YNc(8,vt,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,F,3,3,"th",7),m.YNc(11,Ye,3,3,"td",10),m.BQk(),m.ynx(12,11),m.YNc(13,gt,3,3,"th",12),m.YNc(14,Dt,3,3,"td",10),m.BQk(),m.ynx(15,13),m.YNc(16,ri,3,3,"th",12),m.YNc(17,ti,3,3,"td",10),m.BQk(),m.ynx(18,14),m.YNc(19,Di,3,3,"th",7),m.YNc(20,$i,2,1,"td",10),m.BQk(),m.ynx(21,15),m.YNc(22,qi,1,0,"th",7),m.YNc(23,Ji,5,1,"td",10),m.BQk(),m.YNc(24,_n,1,0,"tr",16),m.YNc(25,Ri,1,12,"tr",17),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,sn,3,3,"perun-web-apps-alert",18),m.YNc(27,Xi,3,3,"perun-web-apps-alert",18)),2&rt&&(m.Q6J("hidden",0===Nt.dataSource.filteredData.length||0===Nt.sponsoredMembers.length),m.xp6(1),m.Q6J("pageSizeOptions",Nt.pageSizeOptions)("dataLength",Nt.dataSource.filteredData.length)("tableId",Nt.tableId),m.xp6(1),m.Q6J("dataSource",Nt.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",Nt.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",Nt.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===Nt.dataSource.filteredData.length&&0!==Nt.sponsoredMembers.length),m.xp6(1),m.Q6J("ngIf",0===Nt.sponsoredMembers.length))},directives:[cn.l,yi.BZ,bi.YE,yi.w1,yi.fO,yi.ge,T.oG,yi.Dz,yi.ev,bi.nU,C.sg,Fe.lW,ce.Hw,C.O5,De.gM,yi.as,yi.XQ,yi.nj,yi.Gk,Ki.YH,Tn.rH,ie.w],pipes:[O.X$,Ue.d,rn.D,st.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();function an(Mt,Qt){if(1&Mt&&(m.TgZ(0,"button",10),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(),Nt=m.MAs(9);m.Q6J("disabled",rt.findSponsorsAuth&&0===rt.voSponsors.length)("matMenuTriggerFor",Nt),m.xp6(1),m.hij(" ",m.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function dn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCreate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function wn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onGenerate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function xn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onSponsorExistingMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Oi(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",13)}function Nn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"app-sponsored-members-list",14),m.NdJ("refreshTable",function(){return m.CHM(rt),m.oxw().refresh()}),m.qZA()}if(2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!rt.routeAuth)("selection",rt.selection)("filterValue",rt.searchString)("sponsoredMembers",rt.members)("tableId",rt.tableId)}}let kn=(()=>{class Mt{constructor(rt,Nt,Ge,Ot,qe,Tt){this.membersManager=rt,this.dialog=Nt,this.authResolver=Ge,this.storeService=Ot,this.authzResolver=qe,this.entityStorageService=Tt,this.members=[],this.voSponsors=[],this.selection=new b.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=_.Bf,this.attrNames=[Ne.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const rt=["SPONSOR"],Nt=new Map;this.authResolver.setRolesAuthorization(rt,this.vo,Nt),this.findSponsorsAuth=Nt.get(rt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(R.u.SPONSOR,this.vo.id,"Vo",[Ne.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(Ot=>{this.voSponsors=Ot,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const rt=(0,w.kZ)();rt.width="620px",rt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(Z,rt).afterClosed().subscribe(Ge=>{Ge&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onGenerate(){const rt=(0,w.kZ)();rt.width="750px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Yt,rt).afterClosed().subscribe(Ge=>{Ge&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onSponsorExistingMember(){const rt=(0,w.kZ)();rt.width="650px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ai,rt).afterClosed().subscribe(Ge=>{Ge&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(rt=>{this.selection.clear(),this.members=rt,this.setAuthRights(),this.loading=!1})}applyFilter(rt){this.searchString=rt}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(e.uq),m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.Ct),m.Y36(A.fb))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(rt,Nt){2&rt&&m.ekj("router-component",Nt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(rt,Nt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return Nt.refresh()}),m.qZA(),m.TgZ(5,"span",2),m.ALo(6,"translate"),m.YNc(7,an,3,5,"button",3),m.qZA(),m.TgZ(8,"mat-menu",null,4),m.YNc(10,dn,3,3,"button",5),m.YNc(11,wn,3,3,"button",5),m.qZA(),m.YNc(12,xn,3,3,"button",6),m.TgZ(13,"perun-web-apps-immediate-filter",7),m.NdJ("filter",function(Ot){return Nt.applyFilter(Ot)}),m.qZA(),m.YNc(14,Oi,1,0,"mat-spinner",8),m.YNc(15,Nn,1,5,"app-sponsored-members-list",9),m.qZA()),2&rt&&(m.xp6(2),m.Oqu(m.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),m.xp6(3),m.s9C("matTooltip",m.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),m.Q6J("matTooltipDisabled",!(Nt.findSponsorsAuth&&0===Nt.voSponsors.length)),m.xp6(2),m.Q6J("ngIf",Nt.createAuth||Nt.generateAuth),m.xp6(3),m.Q6J("ngIf",Nt.createAuth),m.xp6(1),m.Q6J("ngIf",Nt.generateAuth),m.xp6(1),m.Q6J("ngIf",Nt.setSponsorshipAuth),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",Nt.loading),m.xp6(1),m.Q6J("ngIf",!Nt.loading))},directives:[mi.t,De.gM,C.O5,Fe.lW,V.p6,V.VK,V.OP,_e.L,P.$g,en],pipes:[O.X$],styles:[""]}),Mt})()},25309:(Qe,be,p)=>{"use strict";p.d(be,{Y:()=>Ve});var e=p(32105),b=p(9244),_=p(32080),w=p(11717),g=p(20449),A=p(48966),E=p(93075),C=p(5e3),R=p(51062),I=p(11735),m=p(69808),O=p(20773),P=p(67322),W=p(98833),ie=p(47423),Ae=p(29772);function q(ve,Oe){1&ve&&C._UZ(0,"mat-spinner",3)}function Me(ve,Oe){if(1&ve){const z=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"div",4),C.TgZ(2,"mat-form-field"),C._UZ(3,"input",5),C.ALo(4,"translate"),C.TgZ(5,"mat-error"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.qZA(),C.TgZ(8,"mat-form-field"),C._UZ(9,"input",6),C.ALo(10,"translate"),C.TgZ(11,"mat-error"),C._uU(12),C.ALo(13,"translate"),C.qZA(),C.qZA(),C.qZA(),C.TgZ(14,"div",7),C.TgZ(15,"button",8),C.NdJ("click",function(){return C.CHM(z),C.oxw().onCancel()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"div",9),C.ALo(19,"translate"),C.TgZ(20,"button",10),C.NdJ("click",function(){return C.CHM(z),C.oxw().onSubmit()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ve){const z=C.oxw();C.xp6(3),C.s9C("placeholder",C.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),C.Q6J("formControl",z.fullNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),C.xp6(3),C.s9C("placeholder",C.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),C.Q6J("formControl",z.shortNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),C.xp6(4),C.hij(" ",C.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),C.Q6J("matTooltipDisabled",z.shortNameCtrl.valid&&z.fullNameCtrl.valid),C.xp6(2),C.Q6J("disabled",z.shortNameCtrl.invalid||z.fullNameCtrl.invalid),C.xp6(1),C.hij(" ",C.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let he=(()=>{class ve{constructor(z,D,ge,Te,Ie,fe){this.dialogRef=z,this.data=D,this.notificator=ge,this.voService=Te,this.translate=Ie,this.router=fe,Ie.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Se=>this.successMessage=Se)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+$"),E.kI.maxLength(33)]),this.fullNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(z=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",z.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return ve.\u0275fac=function(z){return new(z||ve)(C.Y36(A.so),C.Y36(A.WI),C.Y36(_.V6),C.Y36(e.YF),C.Y36(R.sK),C.Y36(I.F0))},ve.\u0275cmp=C.Xpm({type:ve,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(z,D){1&z&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,q,1,0,"mat-spinner",1),C.YNc(5,Me,23,25,"div",2),C.qZA()),2&z&&(C.Tol(D.theme),C.xp6(2),C.Oqu(C.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),C.xp6(2),C.Q6J("ngIf",D.loading),C.xp6(1),C.Q6J("ngIf",!D.loading))},directives:[A.uh,m.O5,O.$g,A.xY,P.KE,W.Nt,E.Fj,E.Q7,E.JJ,E.oH,P.TO,A.H8,ie.lW,Ae.gM],pipes:[R.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),ve})();var De=p(10036),T=p(77968),N=p(4235),j=p(25245),Y=p(96214),ee=p(7434),de=p(87831);function ce(ve,Oe){if(1&ve){const z=C.EpF();C.TgZ(0,"button",9),C.NdJ("click",function(){return C.CHM(z),C.oxw().onCreateVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ve&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Fe(ve,Oe){if(1&ve){const z=C.EpF();C.TgZ(0,"button",10),C.NdJ("click",function(){return C.CHM(z),C.oxw().onRemoveVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&ve){const z=C.oxw();C.Q6J("disabled",0===z.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Ue(ve,Oe){1&ve&&C._UZ(0,"mat-spinner",11)}function Xe(ve,Oe){if(1&ve&&C._UZ(0,"perun-web-apps-vos-list",12),2&ve){const z=C.oxw();C.Q6J("tableId",z.tableId)("displayedColumns",z.displayedColumns)("filterValue",z.filterValue)("recentIds",z.recentIds)("selection",z.selection)("vos",z.vos)}}const te=function(){return{color:"black"}};let Ve=(()=>{class ve{constructor(z,D,ge,Te,Ie,fe){this.sideMenuService=z,this.voService=D,this.guiAuthResolver=ge,this.dialog=Te,this.notificator=Ie,this.apiRequest=fe,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=De.tw}ngOnInit(){this.loading=!0,this.selection=new g.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe(z=>{this.vos=z,this.recentIds=(0,b.vL)("vos"),this.loading=!1},z=>{const D=z.error;"PrivilegeException"===D.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(D)})}applyFilter(z){this.filterValue=z}onCreateVo(){const z=(0,b.kZ)();z.width="610px",z.data={theme:"vo-theme"},this.dialog.open(he,z).afterClosed().subscribe(ge=>{ge&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const z=(0,b.kZ)();z.width="500px",z.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,z).afterClosed().subscribe(ge=>{ge&&this.refreshTable()})}}return ve.id="VoSelectPageComponent",ve.\u0275fac=function(z){return new(z||ve)(C.Y36(T.D),C.Y36(e.YF),C.Y36(_.x4),C.Y36(A.uw),C.Y36(_.V6),C.Y36(_.F5))},ve.\u0275cmp=C.Xpm({type:ve,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(z,D){2&z&&C.ekj("router-component",D.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(z,D){1&z&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return D.refreshTable()}),C.qZA(),C.YNc(7,ce,3,3,"button",4),C.YNc(8,Fe,3,4,"button",5),C.TgZ(9,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Te){return D.applyFilter(Te)}),C.qZA(),C.YNc(10,Ue,1,0,"mat-spinner",7),C.YNc(11,Xe,1,6,"perun-web-apps-vos-list",8),C.qZA()),2&z&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(10,te)),C.xp6(1),C.hij(" ",C.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),C.xp6(3),C.Q6J("ngIf",D.createAuth),C.xp6(1),C.Q6J("ngIf",D.deleteAuth),C.xp6(1),C.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",D.loading),C.xp6(1),C.Q6J("ngIf",!D.loading))},directives:[N.W,j.Hw,m.PC,Y.t,m.O5,ie.lW,ee.L,O.$g,de.Z],pipes:[R.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),ve})()},9193:(Qe,be,p)=>{"use strict";var e=p(22313),b=p(5e3),_=p(11735);let w=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(Be,pt){},styles:[""]}),me})();var g=p(32105),A=p(32080),E=p(9244),C=p(16074),R=p(77968),I=p(51062),m=p(48966),O=p(2638),P=p(77446),W=p(93075),ie=p(69808),Ae=p(25245),q=p(47423),Me=p(20773),he=p(98380),De=p(90508),T=p(29772);function N(me,at){1&me&&b._UZ(0,"mat-spinner",3)}function j(me,at){1&me&&(b.TgZ(0,"perun-web-apps-alert",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function Y(me,at){if(1&me&&(b.TgZ(0,"div",7),b.TgZ(1,"a",8),b.TgZ(2,"span",9),b._uU(3),b.qZA(),b._UZ(4,"mat-icon",10),b.TgZ(5,"p",11),b._uU(6),b.qZA(),b.qZA(),b.qZA()),2&me){const Be=at.$implicit;b.xp6(1),b.Gre("",Be.style," item-itself"),b.s9C("matTooltip",Be.tooltip),b.Q6J("routerLink",Be.url),b.xp6(2),b.Oqu(Be.type),b.xp6(1),b.Q6J("svgIcon",Be.cssIcon),b.xp6(2),b.Oqu(Be.label)}}function ee(me,at){if(1&me&&(b.TgZ(0,"div",5),b.YNc(1,Y,7,8,"div",6),b.qZA()),2&me){const Be=b.oxw();b.xp6(1),b.Q6J("ngForOf",Be.items)}}let de=(()=>{class me{constructor(Be,pt,Vt,qt){this.vosManager=Be,this.groupsManager=pt,this.authResolver=Vt,this.facilitiesManager=qt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,E.j4)("recent");for(const Be of this.recentItems)switch(Be.type){case"Vo":this.vosIds.push(Be.id);break;case"Group":this.groupsIds.push(Be.id);break;case"Facility":this.facilitiesIds.push(Be.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(Be=>{this.vos=Be,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(Be=>{this.groups=Be,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(Be=>{this.facilities=Be,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const Be of this.recentItems)switch(Be.type){case"Vo":{const pt=this.vos.filter(Vt=>Vt.id===Be.id)[0];pt&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${pt.id}`,label:pt.name,tooltip:pt.name,style:"vo-btn",type:"Organization"});break}case"Group":{const pt=this.groups.filter(Vt=>Vt.id===Be.id)[0];pt&&this.items.push({cssIcon:"perun-group",url:`/organizations/${pt.voId}/groups/${pt.id}`,label:pt.shortName,tooltip:`${Be.voName} : ${pt.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const pt=this.facilities.filter(Vt=>Vt.id===Be.id)[0];pt&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${pt.id}`,label:pt.name,tooltip:pt.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(g.YF),b.Y36(g.ff),b.Y36(A.x4),b.Y36(g.IQ))},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(Be,pt){1&Be&&(b.YNc(0,N,1,0,"mat-spinner",0),b.YNc(1,j,3,3,"perun-web-apps-alert",1),b.YNc(2,ee,2,1,"div",2)),2&Be&&(b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",0===pt.items.length&&!pt.loading),b.xp6(1),b.Q6J("ngIf",pt.items.length>0))},directives:[ie.O5,Me.$g,he.w,ie.sg,De.wG,_.yS,T.gM,Ae.Hw],pipes:[I.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),me})();var ce=p(87831),Fe=p(24179),Ue=p(62109),Xe=p(74010);function te(me,at){1&me&&b._UZ(0,"mat-spinner",7)}const Ve=function(){return["id","recent","shortName","name"]};function ve(me,at){if(1&me&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-vos-list",8),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,Ve))("recentIds",Be.recentIds)("vos",Be.objects)}}const Oe=function(){return["id","recent","vo","name","description"]};function z(me,at){if(1&me&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-groups-list",9),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,Oe))("groups",Be.objects)("recentIds",Be.recentIds)}}const D=function(){return["id","recent","name","vo","facility"]};function ge(me,at){if(1&me&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-resources-list",10),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(5,D))("resources",Be.objects)("recentIds",Be.recentIds)("routingVo",!0)}}const Te=function(){return["id","recent","name","description"]};function Ie(me,at){if(1&me&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-facilities-list",11),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(1),b.Q6J("displayedColumns",b.DdM(4,Te))("facilities",Be.objects)("pageSizeOptions",null)("recentIds",Be.recentIds)}}function fe(me,at){if(1&me&&(b.TgZ(0,"div"),b.YNc(1,ve,2,5,"span",6),b.YNc(2,z,2,5,"span",6),b.YNc(3,ge,2,6,"span",6),b.YNc(4,Ie,2,5,"span",6),b.qZA()),2&me){const Be=b.oxw();b.xp6(1),b.Q6J("ngIf","Vo"===Be.primaryObject),b.xp6(1),b.Q6J("ngIf","Group"===Be.primaryObject),b.xp6(1),b.Q6J("ngIf","Resource"===Be.primaryObject),b.xp6(1),b.Q6J("ngIf","Facility"===Be.primaryObject)}}let Se=(()=>{class me{constructor(Be,pt,Vt){this.authzResolver=Be,this.guiAuthResolver=pt,this.resourceService=Vt,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(Be=>{this.objects=Be,this.recentIds=(0,E.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(Be=>{this.objects=Be,this.recentIds=(0,E.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(Be=>{this.objects=Be,this.recentIds=(0,E.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(Be=>{this.objects=Be.map(pt=>({facility:pt})),this.recentIds=(0,E.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(g.Ct),b.Y36(A.x4),b.Y36(g.xk))},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b._UZ(2,"mat-icon",2),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"span",3),b.ALo(6,"translate"),b.TgZ(7,"mat-icon",4),b._uU(8,"info_outline"),b.qZA(),b.qZA(),b.qZA(),b.YNc(9,te,1,0,"mat-spinner",5),b.YNc(10,fe,5,4,"div",6),b.qZA()),2&Be&&(b.xp6(2),b.Q6J("svgIcon",pt.svgIcon),b.xp6(1),b.hij(" ",b.lcZ(4,5,pt.title)," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(6,7,pt.roleTooltipInfo)),b.xp6(4),b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",!pt.loading))},directives:[Ae.Hw,T.gM,ie.O5,Me.$g,ce.Z,Fe.W,Ue.C,Xe.X],pipes:[I.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),me})();var Ke=p(31359);function Je(me,at){if(1&me){const Be=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"mat-checkbox",8),b.NdJ("change",function(Vt){const ni=b.CHM(Be).$implicit,pi=b.oxw();return Vt?pi.changeRoleView(ni):null}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}if(2&me){const Be=at.$implicit,pt=b.oxw();b.xp6(1),b.Q6J("checked",pt.isRoleShowed(Be)),b.xp6(1),b.Oqu(b.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+Be))}}function nt(me,at){if(1&me){const Be=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){return b.CHM(Be),b.oxw(2).rightSettingOpened=!0}),b.TgZ(1,"mat-icon"),b._uU(2,"settings"),b.qZA(),b.qZA()}}function je(me,at){1&me&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function Q(me,at){1&me&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function Ce(me,at){if(1&me){const Be=b.EpF();b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Be),b.oxw(3).goToUserProfile()}),b.TgZ(1,"mat-icon",24),b._uU(2,"exit_to_app"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.qZA()}if(2&me){const Be=b.oxw(3);b.xp6(3),b.AsE("",b.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",Be.userProfileName," ")}}const re=function(){return["/myProfile"]};function k(me,at){if(1&me&&(b.TgZ(0,"div"),b.TgZ(1,"div",16),b.TgZ(2,"div",17),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"div",18),b.YNc(6,je,3,3,"span",14),b.YNc(7,Q,3,3,"span",14),b.qZA(),b.TgZ(8,"div",19),b.TgZ(9,"button",20),b._UZ(10,"mat-icon",21),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,Ce,5,4,"button",22),b.qZA(),b.qZA(),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(3),b.hij(" ",b.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),b.xp6(3),b.Q6J("ngIf",!Be.userProfileUrl),b.xp6(1),b.Q6J("ngIf",Be.userProfileUrl),b.xp6(2),b.Q6J("routerLink",b.DdM(10,re)),b.xp6(2),b.hij(" ",b.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),b.xp6(2),b.Q6J("ngIf",Be.userProfileUrl)}}function pe(me,at){1&me&&(b.TgZ(0,"span"),b.TgZ(1,"div",3),b._uU(2),b.ALo(3,"translate"),b.qZA(),b._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),b.qZA()),2&me&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function Z(me,at){1&me&&(b.TgZ(0,"div",27),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function Ne(me,at){if(1&me&&b._UZ(0,"app-perun-web-apps-dashboard-card",30),2&me){const Be=b.oxw().$implicit,pt=b.oxw(3);b.Q6J("roleName",Be)("role",pt.roles[Be])}}function oe(me,at){if(1&me&&(b.TgZ(0,"div",28),b.YNc(1,Ne,1,2,"app-perun-web-apps-dashboard-card",29),b.qZA()),2&me){const Be=at.$implicit,pt=b.oxw(3);b.xp6(1),b.Q6J("ngIf",pt.isRoleShowed(Be))}}function _e(me,at){if(1&me&&(b.TgZ(0,"div"),b.YNc(1,pe,5,3,"span",14),b.YNc(2,Z,3,3,"div",25),b.TgZ(3,"div"),b.YNc(4,oe,2,1,"div",26),b.qZA(),b.qZA()),2&me){const Be=b.oxw(2);b.xp6(1),b.Q6J("ngIf",Be.recentlyViewedShow),b.xp6(1),b.Q6J("ngIf",Be.rolesToHide.toString()!==Be.roleNames.toString()),b.xp6(2),b.Q6J("ngForOf",Be.roleNames)}}function $(me,at){if(1&me&&(b.TgZ(0,"div",9),b.TgZ(1,"h1",10),b._UZ(2,"mat-icon",11),b.TgZ(3,"span",12),b._uU(4),b.ALo(5,"translate"),b.ALo(6,"userFullName"),b.qZA(),b.YNc(7,nt,3,0,"button",13),b.qZA(),b.YNc(8,k,14,11,"div",14),b.YNc(9,_e,5,3,"div",14),b.qZA()),2&me){const Be=b.oxw();b.xp6(4),b.AsE("",b.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",b.lcZ(6,7,Be.user),""),b.xp6(3),b.Q6J("ngIf",!Be.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",Be.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",!Be.isOnlySelfRole)}}let V=(()=>{class me{constructor(Be,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.userManager=Be,this.storeService=pt,this.sideMenuService=Vt,this.route=qt,this.router=ni,this.notificator=pi,this.translateService=oi,this.dialog=Si,this.apiRequestConfiguration=Gi,this.otherApplicationService=An,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","FACILITYOBSERVER","RESOURCEOBSERVER"],oi.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(jn=>this.mailSuccessMessage=jn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const Be=Object.keys(this.roles);this.isOnlySelfRole=Be.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(pt=>Be.includes(pt)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(Be){if(this.isRoleShowed(Be)){const pt=[];for(const Vt of this.roleNames)this.isRoleShowed(Vt)||pt.push(Vt),Vt===Be&&pt.push(Vt);this.rolesToHide=pt}else this.rolesToHide=this.rolesToHide.filter(pt=>pt!==Be);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(Be){return!this.rolesToHide.includes(Be)}validatePreferredMailChange(){const Be=this.route.snapshot.queryParamMap,pt=Be.get("token"),Vt=Be.get("u");pt&&Vt&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(pt,Number.parseInt(Vt,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const qt=(0,E.kZ)();qt.width="600px",this.dialog.open(C.qD,qt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const Be=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===Be||Be;const pt=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===pt?[]:pt}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(g.Fv),b.Y36(A.d6),b.Y36(R.D),b.Y36(_.gz),b.Y36(_.F0),b.Y36(A.V6),b.Y36(I.sK),b.Y36(m.uw),b.Y36(A.F5),b.Y36(A.jq))},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(Be,pt){2&Be&&b.ekj("router-component",pt.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"mat-sidenav-container",0),b.TgZ(1,"mat-sidenav",1),b.NdJ("openedChange",function(qt){return pt.rightSettingOpened=qt}),b.TgZ(2,"div",2),b.TgZ(3,"div",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"mat-checkbox",4),b.NdJ("ngModelChange",function(qt){return pt.recentlyViewedShow=qt})("change",function(qt){return qt?pt.recentlyViewedChanged():null}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA(),b.TgZ(10,"div",5),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,Je,4,4,"div",6),b.qZA(),b.qZA(),b.TgZ(14,"mat-sidenav-content"),b.YNc(15,$,10,9,"div",7),b.qZA(),b.qZA()),2&Be&&(b.xp6(1),b.Q6J("opened",pt.rightSettingOpened),b.xp6(3),b.Oqu(b.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),b.xp6(3),b.Q6J("ngModel",pt.recentlyViewedShow),b.xp6(1),b.Oqu(b.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),b.xp6(3),b.Oqu(b.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),b.xp6(2),b.Q6J("ngForOf",pt.roleNames),b.xp6(2),b.Q6J("ngIf",void 0!==pt.user))},directives:[O.TM,O.JX,P.oG,W.JJ,W.On,ie.sg,O.Rh,ie.O5,Ae.Hw,q.lW,_.rH,de,Se],pipes:[I.X$,Ke.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),me})();var i=p(4235);let a=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b._UZ(1,"perun-web-apps-back-button"),b.TgZ(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.qZA()),2&Be&&(b.xp6(3),b.Oqu(b.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[i.W],pipes:[I.X$],styles:[""]}),me})();var d=p(387),l=p(67322),s=p(98833),r=p(63189);let t=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275mod=b.oAB({type:me}),me.\u0275inj=b.cJS({imports:[[ie.ez,q.ot,Ae.Ps,_.Bz,d.ez,I.aw,l.lN,W.UX,s.c,r.r]]}),me})(),n=(()=>{class me{constructor(Be,pt){this.auth=Be,this.router=pt}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(A.e8),b.Y36(_.F0))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h4",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.startAuth()}),b._uU(7),b.ALo(8,"translate"),b.TgZ(9,"mat-icon"),b._uU(10," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&Be&&(b.xp6(4),b.hij(" ",b.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),b.xp6(3),b.hij(" ",b.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[q.lW,Ae.Hw],pipes:[I.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),me})();var o=p(41619);function c(me,at){if(1&me&&(b.TgZ(0,"div",8),b._UZ(1,"div",9),b.qZA()),2&me){const Be=b.oxw();b.xp6(1),b.Q6J("innerHTML",Be.logo,b.oJD)}}function h(me,at){if(1&me&&(b.TgZ(0,"div",10),b._UZ(1,"div",11),b._UZ(2,"mat-icon",12),b.qZA()),2&me){const Be=b.oxw();b.xp6(1),b.Q6J("innerHTML",Be.logo,b.oJD)}}function x(me,at){if(1&me&&(b.TgZ(0,"div",8),b._UZ(1,"a",9),b.qZA()),2&me){const Be=b.oxw();b.xp6(1),b.Q6J("innerHTML",Be.logo,b.oJD)}}const We=function(me){return{color:me}};function At(me,at){if(1&me&&(b.TgZ(0,"p",13),b._uU(1),b.qZA()),2&me){const Be=b.oxw();b.Q6J("ngStyle",b.VKq(2,We,Be.textColor)),b.xp6(1),b.hij(" ",Be.headerTitle," ")}}const Ht=function(me,at){return{background:me,color:at}},lt=function(me,at){return{"min-height":me,"background-color":at}};let Ut=(()=>{class me{constructor(Be,pt,Vt,qt){this.storeService=Be,this.sanitizer=pt,this.preferredLangService=Vt,this.translateService=qt,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const Be=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(Be)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.BN),b.Y36(I.sK))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.YNc(1,c,2,1,"div",1),b.YNc(2,h,3,1,"div",2),b.YNc(3,x,2,1,"div",1),b.YNc(4,At,2,4,"p",3),b.qZA(),b.TgZ(5,"div",4),b.TgZ(6,"div",5),b.TgZ(7,"div",6),b._UZ(8,"router-outlet"),b.qZA(),b.TgZ(9,"div",7),b._UZ(10,"perun-web-apps-footer"),b.qZA(),b.qZA(),b.qZA()),2&Be&&(b.Q6J("ngStyle",b.WLB(6,Ht,pt.headerBackgroundColor,pt.headerTextColor)),b.xp6(1),b.Q6J("ngIf","admin-gui"===pt.application),b.xp6(1),b.Q6J("ngIf","publications"===pt.application),b.xp6(1),b.Q6J("ngIf","user-profile"===pt.application),b.xp6(1),b.Q6J("ngIf",!!pt.headerTitle),b.xp6(2),b.Q6J("ngStyle",b.WLB(9,lt,pt.getContentInnerMinHeight(),pt.contentBackgroundColor)))},directives:[ie.PC,ie.O5,Ae.Hw,_.lC,o.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),me})();function mt(me,at){1&me&&(b.TgZ(0,"perun-web-apps-alert",8),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const we=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:d.t$},{path:"api-callback",component:w},{path:"login",component:n},{path:"service-access",component:(()=>{class me{constructor(Be){this.authzService=Be,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new W.NI(null,[W.kI.required]),this.passwordCtrl=new W.NI(null,[W.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(Be=>{sessionStorage.setItem("baPrincipal",JSON.stringify(Be)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(g.Ct))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h2"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.YNc(6,mt,3,3,"perun-web-apps-alert",3),b.TgZ(7,"mat-form-field",4),b.TgZ(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b._UZ(11,"input",5),b.TgZ(12,"mat-error"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.qZA(),b.TgZ(15,"mat-form-field",4),b.TgZ(16,"mat-label"),b._uU(17),b.ALo(18,"translate"),b.qZA(),b._UZ(19,"input",6),b.TgZ(20,"mat-error"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"button",7),b.NdJ("click",function(){return pt.startAuth()}),b._uU(24),b.ALo(25,"translate"),b.TgZ(26,"mat-icon"),b._uU(27," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&Be&&(b.xp6(4),b.Oqu(b.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),b.xp6(2),b.Q6J("ngIf",pt.wrongUsernameOrPassword),b.xp6(3),b.Oqu(b.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),b.xp6(2),b.Q6J("formControl",pt.usernameCtrl),b.xp6(2),b.hij(" ",b.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),b.xp6(4),b.Oqu(b.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),b.xp6(2),b.Q6J("formControl",pt.passwordCtrl)("type","password"),b.xp6(2),b.hij(" ",b.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),b.xp6(2),b.Q6J("disabled",pt.usernameCtrl.invalid||pt.passwordCtrl.invalid),b.xp6(1),b.hij(" ",b.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[ie.O5,he.w,l.KE,l.hX,s.Nt,W.Fj,W.Q7,W.JJ,W.oH,l.TO,q.lW,Ae.Hw],pipes:[I.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),me})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(357),p.e(323),p.e(243),p.e(858)]).then(p.bind(p,60858)).then(me=>me.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(323),p.e(124)]).then(p.bind(p,61124)).then(me=>me.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(323),p.e(124),p.e(243),p.e(958)]).then(p.bind(p,12958)).then(me=>me.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(357),p.e(142)]).then(p.bind(p,46142)).then(me=>me.UsersModule)},{path:"home",component:V},{path:"notAuthorized",component:d.y9},{path:"**",component:a}];let ze=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275mod=b.oAB({type:me}),me.\u0275inj=b.cJS({imports:[[_.Bz.forRoot(we,{preloadingStrategy:_.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],_.Bz]}),me})();var U=p(72077),L=p(14264);class ne{constructor(at,Be="/assets/i18n/",pt=".json"){this.http=at,this.prefix=Be,this.suffix=pt}getTranslation(at){return this.http.get(`${this.prefix}${at}${this.suffix}`)}}var le=p(40520),Le=p(76360);let ct=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275mod=b.oAB({type:me}),me.\u0275inj=b.cJS({providers:[A.e8],imports:[[ie.ez]]}),me})();var bt=p(81847),xt=p(4732),Yt=p(94856),It=p(55857),Rt=p(37240),Et=p(15592),Bt=p(75234),Jt=p(37380),ai=p(34904),mi=p(85243),bi=p(68056),yi=p(24219),Wi=p(25828),gn=p(10369),cn=p(14336),Ki=p(25309),Tn=p(86353),rn=p(3246),st=p(57788),St=p(80774),ot=p(25610);let vt=(()=>{class me{constructor(){this.allowCachePages=[{type:"vo",components:[bt.y.id,xt.G.id,Yt.c.id,bi.z.id,yi.z.id,gn.w.id,rn.T.id]},{type:"group",components:[Bt.y.id,Et.u.id,Rt.q.id,It.W.id,cn.Z.id]},{type:"facility",components:[Jt.o.id,ai.f.id,ot._.id]},{type:"member",components:[mi.j.id]},{type:"admin",components:[Wi.t.id,st.g.id,St.F.id]},{type:"entitySelect",components:[Ki.Y.id,Tn.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const Be of this.allowCachePages)this.typeToComponentToHandlers.set(Be.type,new Map)}static getCurrentTimestamp(){return+Date.now()}static getComponentName(Be){return Be.id}static getPath(Be){var pt,Vt;return null!==(Vt=null===(pt=Be.routeConfig)||void 0===pt?void 0:pt.path)&&void 0!==Vt?Vt:""}shouldReuseRoute(Be,pt){return this.checkResets(pt),Be.routeConfig===pt.routeConfig}retrieve(Be){if(Be.component){const pt=me.getComponentName(Be.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt)){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);return void 0===qt?null:qt.routeHandle}}return null}shouldAttach(Be){if(!this.isUserNavigatingBack)return!1;if(Be.component){const pt=me.getComponentName(Be.component);for(const Vt of this.allowCachePages){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);if(void 0!==qt&&me.getCurrentTimestamp()-qt.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const Vt=this.getComponentType(Be);this.typeToComponentToHandlers.get(Vt).set(me.getComponentName(Be.component),{routeHandle:pt,saveTimeStamp:me.getCurrentTimestamp()})}}setLastNavigationType(Be){this.isUserNavigatingBack="back"===Be}checkResets(Be){const pt=me.getPath(Be);for(const Vt of this.resets)if(Vt.resetPath===pt){const qt=String(Be.params[Vt.param]);null!==Vt.lastValue&&Vt.lastValue!==qt&&this.typeToComponentToHandlers.get(Vt.resetType).clear(),Vt.lastValue=qt}}getComponentType(Be){const pt=me.getComponentName(Be.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt))return Vt.type;return null}}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275prov=b.Yz7({token:me,factory:me.\u0275fac}),me})();const F=new b.OlP("perun-api-service");let Ye=(()=>{class me{constructor(Be,pt,Vt,qt,ni){this.http=Be,this.storeService=pt,this.authzSevice=Vt,this.titleService=qt,this.utilsService=ni}initializeColors(Be,pt){return new Promise(Vt=>{pt.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni)}),Be.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni),this.setEntityTheme(qt.entity,ni)}),Vt()})}setEntityTheme(Be,pt){const Vt=function gt(me){return[Dt(tinycolor(me).lighten(52),"50"),Dt(tinycolor(me).lighten(37),"100"),Dt(tinycolor(me).lighten(26),"200"),Dt(tinycolor(me).lighten(12),"300"),Dt(tinycolor(me).lighten(6),"400"),Dt(tinycolor(me),"500"),Dt(tinycolor(me).darken(6),"600"),Dt(tinycolor(me).darken(12),"700"),Dt(tinycolor(me).darken(18),"800"),Dt(tinycolor(me).darken(24),"900"),Dt(tinycolor(me).lighten(50).saturate(30),"A100"),Dt(tinycolor(me).lighten(30).saturate(30),"A200"),Dt(tinycolor(me).lighten(10).saturate(15),"A400"),Dt(tinycolor(me).lighten(5).saturate(5),"A700")]}(pt);for(const qt of Vt){const oi=`--${Be}-theme-primary-contrast-${qt.name}`,Si=qt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${Be}-theme-primary-${qt.name}`,`${qt.red},${qt.green},${qt.blue}`),document.documentElement.style.setProperty(oi,Si)}}loadAppDefaultConfig(){return new Promise(Be=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{this.storeService.setDefaultConfig(pt),Be()})})}loadAppInstanceConfig(){return new Promise(Be=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{var Vt;this.storeService.setInstanceConfig(pt);const qt=document.location.hostname;(null===(Vt=null==pt?void 0:pt.brandings)||void 0===Vt?void 0:Vt[qt])&&this.storeService.setBanding(qt),Be()},()=>{Be()})})}getNoCacheHeaders(){return new le.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(Be=>{const pt=document.querySelector("link[rel*='icon']")||document.createElement("link");pt.type="image/x-icon",pt.rel="shortcut icon",pt.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(pt),Be()})}setApiUrl(){return new Promise(Be=>{let pt=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(pt=pt.replace("oauth","ba")),this.authzSevice.configuration.basePath=pt,this.titleService.setTitle(this.storeService.get("document_title","en")),Be()})}loadAppsConfig(){return new Promise((Be,pt)=>{this.utilsService.getAppsConfig().subscribe(Vt=>{this.storeService.setAppsConfig(Vt),Be()},Vt=>pt(Vt))})}}return me.\u0275fac=function(Be){return new(Be||me)(b.LFG(le.eN),b.LFG(A.d6),b.LFG(g.Ct),b.LFG(e.Dx),b.LFG(g.FW))},me.\u0275prov=b.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})();function Dt(me,at){const Be=tinycolor(me),pt=Be.toRgb();return{name:at,hex:Be.toHexString(),darkContrast:Be.isLight(),red:pt.r,green:pt.g,blue:pt.b}}let ri=(()=>{class me{constructor(Be,pt){this.data=Be,this.location=pt}redirect(){this.location.go("/"),location.reload()}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(m.WI),b.Y36(ie.Ye))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.redirect()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&Be&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[I.X$],styles:[""]}),me})(),ti=(()=>{class me{constructor(Be,pt){this.dialogRef=Be,this.data=pt}refresh(){location.reload()}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(m.so),b.Y36(m.WI))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.refresh()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&Be&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[I.X$],styles:[""]}),me})(),Di=(()=>{class me{constructor(Be,pt,Vt,qt,ni,pi){this.initAuthService=Be,this.appConfigService=pt,this.authzSevice=Vt,this.dialog=qt,this.location=ni,this.guiAuthResolver=pi,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(Be=>{if("Invalid path"!==Be)throw console.error(Be),this.location.go("/"),location.reload(),Be;this.handleErr(Be)}).then(Be=>Be?this.initAuthService.loadPrincipal().catch(pt=>this.handleErr(pt)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(Be){const pt=(0,E.kZ)();throw"Invalid path"===Be?(pt.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ri,pt)):(pt.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===Be.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":Be.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ti,pt)),console.error(Be),Be}loadPolicies(){return new Promise((Be,pt)=>{this.authzSevice.getAllPolicies().subscribe(Vt=>{this.guiAuthResolver.setPerunPolicies(Vt),Be()},Vt=>pt(Vt))})}}return me.\u0275fac=function(Be){return new(Be||me)(b.LFG(A.v0),b.LFG(Ye),b.LFG(g.Ct),b.LFG(m.uw),b.LFG(ie.Ye),b.LFG(A.x4))},me.\u0275prov=b.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"}),me})(),wi=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275mod=b.oAB({type:me}),me.\u0275inj=b.cJS({imports:[[ie.ez,m.Is,q.ot,I.aw]]}),me})();var $i=p(8929),qi=p(23753),Fi=p(36787),Ji=p(57138),_n=p(7625),ki=p(75778),Ri=p(77604);function sn(me){return getComputedStyle(me)}function Xi(me,at){for(var Be in at){var pt=at[Be];"number"==typeof pt&&(pt+="px"),me.style[Be]=pt}return me}function en(me){var at=document.createElement("div");return at.className=me,at}var an="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function dn(me,at){if(!an)throw new Error("No element matching method supported");return an.call(me,at)}function wn(me){me.remove?me.remove():me.parentNode&&me.parentNode.removeChild(me)}function xn(me,at){return Array.prototype.filter.call(me.children,function(Be){return dn(Be,at)})}var Oi_element_thumb=function(me){return"ps__thumb-"+me},Oi_element_rail=function(me){return"ps__rail-"+me},Oi_element_consuming="ps__child--consume",Oi_state_focus="ps--focus",Oi_state_clicking="ps--clicking",Oi_state_active=function(me){return"ps--active-"+me},Oi_state_scrolling=function(me){return"ps--scrolling-"+me},Nn={x:null,y:null};function kn(me,at){var Be=me.element.classList,pt=Oi_state_scrolling(at);Be.contains(pt)?clearTimeout(Nn[at]):Be.add(pt)}function Mt(me,at){Nn[at]=setTimeout(function(){return me.isAlive&&me.element.classList.remove(Oi_state_scrolling(at))},me.settings.scrollingThreshold)}var rt=function(at){this.element=at,this.handlers={}},Nt={isEmpty:{configurable:!0}};rt.prototype.bind=function(at,Be){void 0===this.handlers[at]&&(this.handlers[at]=[]),this.handlers[at].push(Be),this.element.addEventListener(at,Be,!1)},rt.prototype.unbind=function(at,Be){var pt=this;this.handlers[at]=this.handlers[at].filter(function(Vt){return!(!Be||Vt===Be)||(pt.element.removeEventListener(at,Vt,!1),!1)})},rt.prototype.unbindAll=function(){for(var at in this.handlers)this.unbind(at)},Nt.isEmpty.get=function(){var me=this;return Object.keys(this.handlers).every(function(at){return 0===me.handlers[at].length})},Object.defineProperties(rt.prototype,Nt);var Ge=function(){this.eventElements=[]};function Ot(me){if("function"==typeof window.CustomEvent)return new CustomEvent(me);var at=document.createEvent("CustomEvent");return at.initCustomEvent(me,!1,!1,void 0),at}function qe(me,at,Be,pt,Vt){var qt;if(void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1),"top"===at)qt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==at)throw new Error("A proper axis should be provided");qt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Tt(me,at,Be,pt,Vt){var qt=Be[0],ni=Be[1],pi=Be[2],oi=Be[3],Si=Be[4],Gi=Be[5];void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1);var An=me.element;me.reach[oi]=null,An[pi]<1&&(me.reach[oi]="start"),An[pi]>me[qt]-me[ni]-1&&(me.reach[oi]="end"),at&&(An.dispatchEvent(Ot("ps-scroll-"+oi)),at<0?An.dispatchEvent(Ot("ps-scroll-"+Si)):at>0&&An.dispatchEvent(Ot("ps-scroll-"+Gi)),pt&&function Qt(me,at){kn(me,at),Mt(me,at)}(me,oi)),me.reach[oi]&&(at||Vt)&&An.dispatchEvent(Ot("ps-"+oi+"-reach-"+me.reach[oi]))}(me,Be,qt,pt,Vt)}function jt(me){return parseInt(me,10)||0}Ge.prototype.eventElement=function(at){var Be=this.eventElements.filter(function(pt){return pt.element===at})[0];return Be||(Be=new rt(at),this.eventElements.push(Be)),Be},Ge.prototype.bind=function(at,Be,pt){this.eventElement(at).bind(Be,pt)},Ge.prototype.unbind=function(at,Be,pt){var Vt=this.eventElement(at);Vt.unbind(Be,pt),Vt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Vt),1)},Ge.prototype.unbindAll=function(){this.eventElements.forEach(function(at){return at.unbindAll()}),this.eventElements=[]},Ge.prototype.once=function(at,Be,pt){var Vt=this.eventElement(at),qt=function(ni){Vt.unbind(Be,qt),pt(ni)};Vt.bind(Be,qt)};var Ui={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Li(me){var at=me.element,Be=Math.floor(at.scrollTop),pt=at.getBoundingClientRect();me.containerWidth=Math.ceil(pt.width),me.containerHeight=Math.ceil(pt.height),me.contentWidth=at.scrollWidth,me.contentHeight=at.scrollHeight,at.contains(me.scrollbarXRail)||(xn(at,Oi_element_rail("x")).forEach(function(Vt){return wn(Vt)}),at.appendChild(me.scrollbarXRail)),at.contains(me.scrollbarYRail)||(xn(at,Oi_element_rail("y")).forEach(function(Vt){return wn(Vt)}),at.appendChild(me.scrollbarYRail)),!me.settings.suppressScrollX&&me.containerWidth+me.settings.scrollXMarginOffset=me.railXWidth-me.scrollbarXWidth&&(me.scrollbarXLeft=me.railXWidth-me.scrollbarXWidth),me.scrollbarYTop>=me.railYHeight-me.scrollbarYHeight&&(me.scrollbarYTop=me.railYHeight-me.scrollbarYHeight),function dr(me,at){var Be={width:at.railXWidth},pt=Math.floor(me.scrollTop);Be.left=at.isRtl?at.negativeScrollAdjustment+me.scrollLeft+at.containerWidth-at.contentWidth:me.scrollLeft,at.isScrollbarXUsingBottom?Be.bottom=at.scrollbarXBottom-pt:Be.top=at.scrollbarXTop+pt,Xi(at.scrollbarXRail,Be);var Vt={top:pt,height:at.railYHeight};at.isScrollbarYUsingRight?Vt.right=at.isRtl?at.contentWidth-(at.negativeScrollAdjustment+me.scrollLeft)-at.scrollbarYRight-at.scrollbarYOuterWidth-9:at.scrollbarYRight-me.scrollLeft:Vt.left=at.isRtl?at.negativeScrollAdjustment+me.scrollLeft+2*at.containerWidth-at.contentWidth-at.scrollbarYLeft-at.scrollbarYOuterWidth:at.scrollbarYLeft+me.scrollLeft,Xi(at.scrollbarYRail,Vt),Xi(at.scrollbarX,{left:at.scrollbarXLeft,width:at.scrollbarXWidth-at.railBorderXWidth}),Xi(at.scrollbarY,{top:at.scrollbarYTop,height:at.scrollbarYHeight-at.railBorderYWidth})}(at,me),me.scrollbarXActive?at.classList.add(Oi_state_active("x")):(at.classList.remove(Oi_state_active("x")),me.scrollbarXWidth=0,me.scrollbarXLeft=0,at.scrollLeft=!0===me.isRtl?me.contentWidth:0),me.scrollbarYActive?at.classList.add(Oi_state_active("y")):(at.classList.remove(Oi_state_active("y")),me.scrollbarYHeight=0,me.scrollbarYTop=0,at.scrollTop=0)}function hn(me,at){return me.settings.minScrollbarLength&&(at=Math.max(at,me.settings.minScrollbarLength)),me.settings.maxScrollbarLength&&(at=Math.min(at,me.settings.maxScrollbarLength)),at}function Qn(me,at){var Be=at[0],pt=at[1],Vt=at[2],qt=at[3],ni=at[4],pi=at[5],oi=at[6],Si=at[7],Gi=at[8],An=me.element,jn=null,Zi=null,Bi=null;function Pi(zi){zi.touches&&zi.touches[0]&&(zi[Vt]=zi.touches[0].pageY),An[oi]=jn+Bi*(zi[Vt]-Zi),kn(me,Si),Li(me),zi.stopPropagation(),zi.preventDefault()}function Hn(){Mt(me,Si),me[Gi].classList.remove(Oi_state_clicking),me.event.unbind(me.ownerDocument,"mousemove",Pi)}function ln(zi,tr){jn=An[oi],tr&&zi.touches&&(zi[Vt]=zi.touches[0].pageY),Zi=zi[Vt],Bi=(me[pt]-me[Be])/(me[qt]-me[pi]),tr?me.event.bind(me.ownerDocument,"touchmove",Pi):(me.event.bind(me.ownerDocument,"mousemove",Pi),me.event.once(me.ownerDocument,"mouseup",Hn),zi.preventDefault()),me[Gi].classList.add(Oi_state_clicking),zi.stopPropagation()}me.event.bind(me[ni],"mousedown",function(zi){ln(zi)}),me.event.bind(me[ni],"touchstart",function(zi){ln(zi,!0)})}var hr={"click-rail":function Vn(me){me.event.bind(me.scrollbarY,"mousedown",function(Be){return Be.stopPropagation()}),me.event.bind(me.scrollbarYRail,"mousedown",function(Be){var pt=Be.pageY-window.pageYOffset-me.scrollbarYRail.getBoundingClientRect().top;me.element.scrollTop+=(pt>me.scrollbarYTop?1:-1)*me.containerHeight,Li(me),Be.stopPropagation()}),me.event.bind(me.scrollbarX,"mousedown",function(Be){return Be.stopPropagation()}),me.event.bind(me.scrollbarXRail,"mousedown",function(Be){var pt=Be.pageX-window.pageXOffset-me.scrollbarXRail.getBoundingClientRect().left;me.element.scrollLeft+=(pt>me.scrollbarXLeft?1:-1)*me.containerWidth,Li(me),Be.stopPropagation()})},"drag-thumb":function ur(me){Qn(me,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Qn(me,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Lr(me){var at=me.element;me.event.bind(me.ownerDocument,"keydown",function(qt){if(!(qt.isDefaultPrevented&&qt.isDefaultPrevented()||qt.defaultPrevented)&&(dn(at,":hover")||dn(me.scrollbarX,":focus")||dn(me.scrollbarY,":focus"))){var ni=document.activeElement?document.activeElement:me.ownerDocument.activeElement;if(ni){if("IFRAME"===ni.tagName)ni=ni.contentDocument.activeElement;else for(;ni.shadowRoot;)ni=ni.shadowRoot.activeElement;if(function ci(me){return dn(me,"input,[contenteditable]")||dn(me,"select,[contenteditable]")||dn(me,"textarea,[contenteditable]")||dn(me,"button,[contenteditable]")}(ni))return}var pi=0,oi=0;switch(qt.which){case 37:pi=qt.metaKey?-me.contentWidth:qt.altKey?-me.containerWidth:-30;break;case 38:oi=qt.metaKey?me.contentHeight:qt.altKey?me.containerHeight:30;break;case 39:pi=qt.metaKey?me.contentWidth:qt.altKey?me.containerWidth:30;break;case 40:oi=qt.metaKey?-me.contentHeight:qt.altKey?-me.containerHeight:-30;break;case 32:oi=qt.shiftKey?me.containerHeight:-me.containerHeight;break;case 33:oi=me.containerHeight;break;case 34:oi=-me.containerHeight;break;case 36:oi=me.contentHeight;break;case 35:oi=-me.contentHeight;break;default:return}me.settings.suppressScrollX&&0!==pi||me.settings.suppressScrollY&&0!==oi||(at.scrollTop-=oi,at.scrollLeft+=pi,Li(me),function Vt(qt,ni){var pi=Math.floor(at.scrollTop);if(0===qt){if(!me.scrollbarYActive)return!1;if(0===pi&&ni>0||pi>=me.contentHeight-me.containerHeight&&ni<0)return!me.settings.wheelPropagation}var oi=at.scrollLeft;if(0===ni){if(!me.scrollbarXActive)return!1;if(0===oi&&qt<0||oi>=me.contentWidth-me.containerWidth&&qt>0)return!me.settings.wheelPropagation}return!0}(pi,oi)&&qt.preventDefault())}})},wheel:function rr(me){var at=me.element;function qt(ni){var pi=function pt(ni){var pi=ni.deltaX,oi=-1*ni.deltaY;return(void 0===pi||void 0===oi)&&(pi=-1*ni.wheelDeltaX/6,oi=ni.wheelDeltaY/6),ni.deltaMode&&1===ni.deltaMode&&(pi*=10,oi*=10),pi!=pi&&oi!=oi&&(pi=0,oi=ni.wheelDelta),ni.shiftKey?[-oi,-pi]:[pi,oi]}(ni),oi=pi[0],Si=pi[1];if(!function Vt(ni,pi,oi){if(!Ui.isWebKit&&at.querySelector("select:focus"))return!0;if(!at.contains(ni))return!1;for(var Si=ni;Si&&Si!==at;){if(Si.classList.contains(Oi_element_consuming))return!0;var Gi=sn(Si);if(oi&&Gi.overflowY.match(/(scroll|auto)/)){var An=Si.scrollHeight-Si.clientHeight;if(An>0&&(Si.scrollTop>0&&oi<0||Si.scrollTop0))return!0}if(pi&&Gi.overflowX.match(/(scroll|auto)/)){var jn=Si.scrollWidth-Si.clientWidth;if(jn>0&&(Si.scrollLeft>0&&pi<0||Si.scrollLeft0))return!0}Si=Si.parentNode}return!1}(ni.target,oi,Si)){var Gi=!1;me.settings.useBothWheelAxes?me.scrollbarYActive&&!me.scrollbarXActive?(Si?at.scrollTop-=Si*me.settings.wheelSpeed:at.scrollTop+=oi*me.settings.wheelSpeed,Gi=!0):me.scrollbarXActive&&!me.scrollbarYActive&&(oi?at.scrollLeft+=oi*me.settings.wheelSpeed:at.scrollLeft-=Si*me.settings.wheelSpeed,Gi=!0):(at.scrollTop-=Si*me.settings.wheelSpeed,at.scrollLeft+=oi*me.settings.wheelSpeed),Li(me),Gi=Gi||function Be(ni,pi){var oi=Math.floor(at.scrollTop),Si=0===at.scrollTop,Gi=oi+at.offsetHeight===at.scrollHeight,An=0===at.scrollLeft,jn=at.scrollLeft+at.offsetWidth===at.scrollWidth;return!(Math.abs(pi)>Math.abs(ni)?Si||Gi:An||jn)||!me.settings.wheelPropagation}(oi,Si),Gi&&!ni.ctrlKey&&(ni.stopPropagation(),ni.preventDefault())}}void 0!==window.onwheel?me.event.bind(at,"wheel",qt):void 0!==window.onmousewheel&&me.event.bind(at,"mousewheel",qt)},touch:function Zn(me){if(Ui.supportsTouch||Ui.supportsIePointer){var at=me.element,Vt={},qt=0,ni={},pi=null;Ui.supportsTouch?(me.event.bind(at,"touchstart",Gi),me.event.bind(at,"touchmove",jn),me.event.bind(at,"touchend",Zi)):Ui.supportsIePointer&&(window.PointerEvent?(me.event.bind(at,"pointerdown",Gi),me.event.bind(at,"pointermove",jn),me.event.bind(at,"pointerup",Zi)):window.MSPointerEvent&&(me.event.bind(at,"MSPointerDown",Gi),me.event.bind(at,"MSPointerMove",jn),me.event.bind(at,"MSPointerUp",Zi)))}function pt(Bi,Pi){at.scrollTop-=Pi,at.scrollLeft-=Bi,Li(me)}function oi(Bi){return Bi.targetTouches?Bi.targetTouches[0]:Bi}function Si(Bi){return!(Bi.pointerType&&"pen"===Bi.pointerType&&0===Bi.buttons||!(Bi.targetTouches&&1===Bi.targetTouches.length||Bi.pointerType&&"mouse"!==Bi.pointerType&&Bi.pointerType!==Bi.MSPOINTER_TYPE_MOUSE))}function Gi(Bi){if(Si(Bi)){var Pi=oi(Bi);Vt.pageX=Pi.pageX,Vt.pageY=Pi.pageY,qt=(new Date).getTime(),null!==pi&&clearInterval(pi)}}function jn(Bi){if(Si(Bi)){var Pi=oi(Bi),Hn={pageX:Pi.pageX,pageY:Pi.pageY},ln=Hn.pageX-Vt.pageX,zi=Hn.pageY-Vt.pageY;if(function An(Bi,Pi,Hn){if(!at.contains(Bi))return!1;for(var ln=Bi;ln&&ln!==at;){if(ln.classList.contains(Oi_element_consuming))return!0;var zi=sn(ln);if(Hn&&zi.overflowY.match(/(scroll|auto)/)){var tr=ln.scrollHeight-ln.clientHeight;if(tr>0&&(ln.scrollTop>0&&Hn<0||ln.scrollTop0))return!0}if(Pi&&zi.overflowX.match(/(scroll|auto)/)){var Br=ln.scrollWidth-ln.clientWidth;if(Br>0&&(ln.scrollLeft>0&&Pi<0||ln.scrollLeft0))return!0}ln=ln.parentNode}return!1}(Bi.target,ln,zi))return;pt(ln,zi),Vt=Hn;var tr=(new Date).getTime(),Br=tr-qt;Br>0&&(ni.x=ln/Br,ni.y=zi/Br,qt=tr),function Be(Bi,Pi){var Hn=Math.floor(at.scrollTop),ln=at.scrollLeft,zi=Math.abs(Bi),tr=Math.abs(Pi);if(tr>zi){if(Pi<0&&Hn===me.contentHeight-me.containerHeight||Pi>0&&0===Hn)return 0===window.scrollY&&Pi>0&&Ui.isChrome}else if(zi>tr&&(Bi<0&&ln===me.contentWidth-me.containerWidth||Bi>0&&0===ln))return!0;return!0}(ln,zi)&&Bi.preventDefault()}}function Zi(){me.settings.swipeEasing&&(clearInterval(pi),pi=setInterval(function(){me.isInitialized?clearInterval(pi):ni.x||ni.y?Math.abs(ni.x)<.01&&Math.abs(ni.y)<.01?clearInterval(pi):(pt(30*ni.x,30*ni.y),ni.x*=.8,ni.y*=.8):clearInterval(pi)},10))}}},Mn=function(at,Be){var pt=this;if(void 0===Be&&(Be={}),"string"==typeof at&&(at=document.querySelector(at)),!at||!at.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Vt in this.element=at,at.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Be)this.settings[Vt]=Be[Vt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Gi,Si,qt=function(){return at.classList.add(Oi_state_focus)},ni=function(){return at.classList.remove(Oi_state_focus)};this.isRtl="rtl"===sn(at).direction,!0===this.isRtl&&at.classList.add("ps__rtl"),this.isNegativeScroll=(Si=at.scrollLeft,at.scrollLeft=-1,Gi=at.scrollLeft<0,at.scrollLeft=Si,Gi),this.negativeScrollAdjustment=this.isNegativeScroll?at.scrollWidth-at.clientWidth:0,this.event=new Ge,this.ownerDocument=at.ownerDocument||document,this.scrollbarXRail=en(Oi_element_rail("x")),at.appendChild(this.scrollbarXRail),this.scrollbarX=en(Oi_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",qt),this.event.bind(this.scrollbarX,"blur",ni),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var pi=sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(pi.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=jt(pi.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=jt(pi.borderLeftWidth)+jt(pi.borderRightWidth),Xi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=jt(pi.marginLeft)+jt(pi.marginRight),Xi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=en(Oi_element_rail("y")),at.appendChild(this.scrollbarYRail),this.scrollbarY=en(Oi_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",qt),this.event.bind(this.scrollbarY,"blur",ni),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var oi=sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(oi.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=jt(oi.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function vi(me){var at=sn(me);return jt(at.width)+jt(at.paddingLeft)+jt(at.paddingRight)+jt(at.borderLeftWidth)+jt(at.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=jt(oi.borderTopWidth)+jt(oi.borderBottomWidth),Xi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=jt(oi.marginTop)+jt(oi.marginBottom),Xi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:at.scrollLeft<=0?"start":at.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:at.scrollTop<=0?"start":at.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Si){return hr[Si](pt)}),this.lastScrollTop=Math.floor(at.scrollTop),this.lastScrollLeft=at.scrollLeft,this.event.bind(this.element,"scroll",function(Si){return pt.onScroll(Si)}),Li(this)};Mn.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Xi(this.scrollbarXRail,{display:"block"}),Xi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=jt(sn(this.scrollbarXRail).marginLeft)+jt(sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=jt(sn(this.scrollbarYRail).marginTop)+jt(sn(this.scrollbarYRail).marginBottom),Xi(this.scrollbarXRail,{display:"none"}),Xi(this.scrollbarYRail,{display:"none"}),Li(this),qe(this,"top",0,!1,!0),qe(this,"left",0,!1,!0),Xi(this.scrollbarXRail,{display:""}),Xi(this.scrollbarYRail,{display:""}))},Mn.prototype.onScroll=function(at){!this.isAlive||(Li(this),qe(this,"top",this.element.scrollTop-this.lastScrollTop),qe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Mn.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),wn(this.scrollbarX),wn(this.scrollbarY),wn(this.scrollbarXRail),wn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Mn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(at){return!at.match(/^ps([-_].+|)$/)}).join(" ")};const Gn=Mn;var sr=function(){if("undefined"!=typeof Map)return Map;function me(at,Be){var pt=-1;return at.some(function(Vt,qt){return Vt[0]===Be&&(pt=qt,!0)}),pt}return function(){function at(){this.__entries__=[]}return Object.defineProperty(at.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),at.prototype.get=function(Be){var pt=me(this.__entries__,Be),Vt=this.__entries__[pt];return Vt&&Vt[1]},at.prototype.set=function(Be,pt){var Vt=me(this.__entries__,Be);~Vt?this.__entries__[Vt][1]=pt:this.__entries__.push([Be,pt])},at.prototype.delete=function(Be){var pt=this.__entries__,Vt=me(pt,Be);~Vt&&pt.splice(Vt,1)},at.prototype.has=function(Be){return!!~me(this.__entries__,Be)},at.prototype.clear=function(){this.__entries__.splice(0)},at.prototype.forEach=function(Be,pt){void 0===pt&&(pt=null);for(var Vt=0,qt=this.__entries__;Vt0},me.prototype.connect_=function(){!ar||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},me.prototype.disconnect_=function(){!ar||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},me.prototype.onTransitionEnd_=function(at){var Be=at.propertyName,pt=void 0===Be?"":Be;Cn.some(function(qt){return!!~pt.indexOf(qt)})&&this.refresh()},me.getInstance=function(){return this.instance_||(this.instance_=new me),this.instance_},me.instance_=null,me}(),zn=function(me,at){for(var Be=0,pt=Object.keys(at);Be0},me}(),di="undefined"!=typeof WeakMap?new WeakMap:new sr,ui=function me(at){if(!(this instanceof me))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Be=or.getInstance(),pt=new ii(at,Be,this);di.set(this,pt)};["observe","unobserve","disconnect"].forEach(function(me){ui.prototype[me]=function(){var at;return(at=di.get(this))[me].apply(at,arguments)}});const Ti=void 0!==Un.ResizeObserver?Un.ResizeObserver:ui;function Hi(me,at){if(1&me&&(b.TgZ(0,"div",3),b._UZ(1,"div",4),b._UZ(2,"div",5),b._UZ(3,"div",6),b._UZ(4,"div",7),b.qZA()),2&me){const Be=b.oxw();b.ekj("ps-at-top",Be.states.top)("ps-at-left",Be.states.left)("ps-at-right",Be.states.right)("ps-at-bottom",Be.states.bottom),b.xp6(1),b.ekj("ps-indicator-show",Be.indicatorY&&Be.interaction),b.xp6(1),b.ekj("ps-indicator-show",Be.indicatorX&&Be.interaction),b.xp6(1),b.ekj("ps-indicator-show",Be.indicatorX&&Be.interaction),b.xp6(1),b.ekj("ps-indicator-show",Be.indicatorY&&Be.interaction)}}const ke=["*"],Re=new b.OlP("PERFECT_SCROLLBAR_CONFIG");class xe{constructor(at,Be,pt,Vt){this.x=at,this.y=Be,this.w=pt,this.h=Vt}}class ut{constructor(at,Be){this.x=at,this.y=Be}}const Zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class hi{constructor(at={}){this.assign(at)}assign(at={}){for(const Be in at)this[Be]=at[Be]}}let ji=(()=>{class me{constructor(Be,pt,Vt,qt,ni){this.zone=Be,this.differs=pt,this.elementRef=Vt,this.platformId=qt,this.defaults=ni,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new $i.xQ,this.disabled=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){if(!this.disabled&&(0,ie.NF)(this.platformId)){const Be=new hi(this.defaults);Be.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Gn(this.elementRef.nativeElement,Be)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Zt.forEach(pt=>{const Vt=pt.replace(/([A-Z])/g,qt=>`-${qt.toLowerCase()}`);(0,qi.R)(this.elementRef.nativeElement,Vt).pipe((0,Ji.e)(20),(0,_n.R)(this.ngDestroy)).subscribe(qt=>{this[pt].emit(qt)})})})}}ngOnDestroy(){(0,ie.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,ie.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Be){Be.disabled&&!Be.disabled.isFirstChange()&&(0,ie.NF)(this.platformId)&&Be.disabled.currentValue!==Be.disabled.previousValue&&(!0===Be.disabled.currentValue?this.ngOnDestroy():!1===Be.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(Be){}},0))}geometry(Be="scroll"){return new xe(this.elementRef.nativeElement[Be+"Left"],this.elementRef.nativeElement[Be+"Top"],this.elementRef.nativeElement[Be+"Width"],this.elementRef.nativeElement[Be+"Height"])}position(Be=!1){return!Be&&this.instance?new ut(this.instance.reach.x||0,this.instance.reach.y||0):new ut(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Be="any"){const pt=this.elementRef.nativeElement;return"any"===Be?pt.classList.contains("ps--active-x")||pt.classList.contains("ps--active-y"):"both"===Be?pt.classList.contains("ps--active-x")&&pt.classList.contains("ps--active-y"):pt.classList.contains("ps--active-"+Be)}scrollTo(Be,pt,Vt){this.disabled||(null==pt&&null==Vt?this.animateScrolling("scrollTop",Be,Vt):(null!=Be&&this.animateScrolling("scrollLeft",Be,Vt),null!=pt&&this.animateScrolling("scrollTop",pt,Vt)))}scrollToX(Be,pt){this.animateScrolling("scrollLeft",Be,pt)}scrollToY(Be,pt){this.animateScrolling("scrollTop",Be,pt)}scrollToTop(Be,pt){this.animateScrolling("scrollTop",Be||0,pt)}scrollToLeft(Be,pt){this.animateScrolling("scrollLeft",Be||0,pt)}scrollToRight(Be,pt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Be||0),pt)}scrollToBottom(Be,pt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Be||0),pt)}scrollToElement(Be,pt,Vt){if("string"==typeof Be&&(Be=this.elementRef.nativeElement.querySelector(Be)),Be){const qt=Be.getBoundingClientRect(),ni=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",qt.left-ni.left+this.elementRef.nativeElement.scrollLeft+(pt||0),Vt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",qt.top-ni.top+this.elementRef.nativeElement.scrollTop+(pt||0),Vt)}}animateScrolling(Be,pt,Vt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Vt&&"undefined"!=typeof window){if(pt!==this.elementRef.nativeElement[Be]){let qt=0,ni=0,pi=performance.now(),oi=this.elementRef.nativeElement[Be];const Si=(oi-pt)/2,Gi=An=>{ni+=Math.PI/(Vt/(An-pi)),qt=Math.round(pt+Si+Si*Math.cos(ni)),this.elementRef.nativeElement[Be]===oi&&(ni>=Math.PI?this.animateScrolling(Be,pt,0):(this.elementRef.nativeElement[Be]=qt,oi=this.elementRef.nativeElement[Be],pi=An,this.animation=window.requestAnimationFrame(Gi)))};window.requestAnimationFrame(Gi)}}else this.elementRef.nativeElement[Be]=pt}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(b.R0b),b.Y36(b.aQg),b.Y36(b.SBq),b.Y36(b.Lbi),b.Y36(Re,8))},me.\u0275dir=b.lG2({type:me,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[b.TTD]}),me})(),tn=(()=>{class me{constructor(Be,pt,Vt){this.zone=Be,this.cdRef=pt,this.platformId=Vt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new $i.xQ,this.stateUpdate=new $i.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){(0,ie.NF)(this.platformId)&&(this.stateUpdate.pipe((0,_n.R)(this.ngDestroy),(0,ki.x)((Be,pt)=>Be===pt&&!this.stateTimeout)).subscribe(Be=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Be||"y"===Be?(this.interaction=!1,"x"===Be?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Be&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Be||"right"===Be?(this.states.left=!1,this.states.right=!1,this.states[Be]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Be||"bottom"===Be)&&(this.states.top=!1,this.states.bottom=!1,this.states[Be]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const Be=this.directiveRef.elementRef.nativeElement;(0,qi.R)(Be,"wheel").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(pt,pt.deltaX,pt.deltaY)}),(0,qi.R)(Be,"touchmove").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{if(!this.disabled&&this.autoPropagation){const Vt=pt.touches[0].clientX,qt=pt.touches[0].clientY;this.checkPropagation(pt,Vt-this.scrollPositionX,qt-this.scrollPositionY),this.scrollPositionX=Vt,this.scrollPositionY=qt}}),(0,Fi.T)((0,qi.R)(Be,"ps-scroll-x").pipe((0,Ri.h)("x")),(0,qi.R)(Be,"ps-scroll-y").pipe((0,Ri.h)("y")),(0,qi.R)(Be,"ps-x-reach-end").pipe((0,Ri.h)("right")),(0,qi.R)(Be,"ps-y-reach-end").pipe((0,Ri.h)("bottom")),(0,qi.R)(Be,"ps-x-reach-start").pipe((0,Ri.h)("left")),(0,qi.R)(Be,"ps-y-reach-start").pipe((0,Ri.h)("top"))).pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(pt)})}}),window.setTimeout(()=>{Zt.forEach(Be=>{this.directiveRef&&(this.directiveRef[Be]=this[Be])})},0))}ngOnDestroy(){(0,ie.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,ie.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Be=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Be.classList.contains("ps--active-x"),this.usePropagationY=Be.classList.contains("ps--active-y")}}checkPropagation(Be,pt,Vt){this.interaction=!0;const qt=pt<0?-1:1,ni=Vt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==qt)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==ni))&&(Be.preventDefault(),Be.stopPropagation()),pt&&(this.scrollDirectionX=qt),Vt&&(this.scrollDirectionY=ni),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(b.Lbi))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perfect-scrollbar"]],viewQuery:function(Be,pt){if(1&Be&&b.Gf(ji,7),2&Be){let Vt;b.iGM(Vt=b.CRH())&&(pt.directiveRef=Vt.first)}},hostVars:4,hostBindings:function(Be,pt){2&Be&&b.ekj("ps-show-limits",pt.autoPropagation)("ps-show-active",pt.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:ke,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(Be,pt){1&Be&&(b.F$t(),b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.Hsn(2),b.qZA(),b.YNc(3,Hi,5,16,"div",2),b.qZA()),2&Be&&(b.ekj("ps",pt.usePSClass),b.Q6J("perfectScrollbar",pt.config)("disabled",pt.disabled),b.xp6(3),b.Q6J("ngIf",pt.scrollIndicators))},directives:[ji,ie.O5],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),me})(),Wn=(()=>{class me{}return me.\u0275fac=function(Be){return new(Be||me)},me.\u0275mod=b.oAB({type:me}),me.\u0275inj=b.cJS({imports:[[ie.ez],ie.ez]}),me})();var cr=p(86114),Qr=p(36769),Xt=p(22465);function si(me,at){if(1&me){const Be=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-notification",2),b.NdJ("closeNotification",function(){const qt=b.CHM(Be).index;return b.oxw().removeNotification(qt)}),b.qZA(),b.qZA()}if(2&me){const Be=at.$implicit;b.Q6J("@flyInOut",void 0),b.xp6(1),b.Q6J("data",Be)("newNotification",!0)}}const Ei=function(me){return{top:me}};let gi=(()=>{class me{constructor(Be,pt){this.notificator=Be,this.notificationStorageService=pt,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Vt=>{this.processNotification(Vt)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(Be){this.notifications.splice(Be,1)}processNotification(Be){this.notifications.push(Be),this.notificationStorageService.storeNotification(Be)}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(A.V6),b.Y36(A.SZ))},me.\u0275cmp=b.Xpm({type:me,selectors:[["perun-web-apps-notificator"]],hostBindings:function(Be,pt){1&Be&&b.NdJ("resize",function(qt){return pt.getScreenSize(qt)},!1,b.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.YNc(1,si,2,3,"div",1),b.qZA()),2&Be&&(b.Q6J("ngStyle",b.VKq(2,Ei,pt.getNotificatorTop())),b.xp6(1),b.Q6J("ngForOf",pt.notifications))},directives:[ie.PC,ie.sg,Xt.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[Qr.Pd]}}),me})();var Vi=p(53435);function pn(me,at){if(1&me&&(b.TgZ(0,"div",9),b._UZ(1,"perun-web-apps-notification",10),b.qZA()),2&me){const Be=at.$implicit;b.xp6(1),b.Q6J("data",Be)("inDialog",!0)}}function vn(me,at){if(1&me&&(b.TgZ(0,"div",6),b.TgZ(1,"cdk-virtual-scroll-viewport",7),b.YNc(2,pn,2,2,"div",8),b.qZA(),b.qZA()),2&me){const Be=b.oxw();b.xp6(2),b.Q6J("cdkVirtualForOf",Be.notifications)}}function Pn(me,at){1&me&&(b.TgZ(0,"perun-web-apps-alert",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&me&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Yn=(()=>{class me{constructor(Be,pt){this.dialogRef=Be,this.notificationStorageService=pt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(m.so),b.Y36(A.SZ))},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.YNc(3,vn,3,1,"div",1),b.YNc(4,Pn,3,3,"perun-web-apps-alert",2),b.TgZ(5,"div",3),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.onClear()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b.NdJ("click",function(){return pt.onCancel()}),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA()),2&Be&&(b.xp6(1),b.Oqu(b.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),b.xp6(2),b.Q6J("ngIf",0!==pt.notifications.length),b.xp6(1),b.Q6J("ngIf",0===pt.notifications.length),b.xp6(3),b.hij(" ",b.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),b.xp6(3),b.hij(" ",b.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[m.uh,ie.O5,Vi.N7,Vi.xd,Vi.x0,Xt.c,he.w,m.H8,q.lW],pipes:[I.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),me})();var fn=p(27544),$r=p(52314);function wr(me,at){1&me&&(b.TgZ(0,"div",10),b.TgZ(1,"span",11),b._uU(2," ~ \u{1f5f2}\xa0 "),b.qZA(),b.TgZ(3,"span",12),b._uU(4," DEVEL "),b.qZA(),b.TgZ(5,"span",11),b._uU(6," \xa0\u{1f5f2} ~ "),b.qZA(),b.qZA())}const bn=function(me){return{color:me}},mn=function(){return["/home"]};let Sn=(()=>{class me{constructor(Be,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.storeService=Be,this.authService=pt,this.authzResolverService=Vt,this.dialog=qt,this.notificator=ni,this.translateService=pi,this.store=oi,this.sanitizer=Si,this.notificationStorageService=Gi,this.otherApplicationService=An,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const Be=(0,E.kZ)();Be.width="520px",this.dialog.open(Yn,Be)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return me.\u0275fac=function(Be){return new(Be||me)(b.Y36(A.d6),b.Y36(A.e8),b.Y36(g.Ct),b.Y36(m.uw),b.Y36(A.V6),b.Y36(I.sK),b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.SZ),b.Y36(A.jq))},me.\u0275cmp=b.Xpm({type:me,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(Be,pt){1&Be&&(b.TgZ(0,"div",0),b.TgZ(1,"button",1),b.NdJ("click",function(){return pt.sideNav.toggle()}),b.TgZ(2,"mat-icon",2),b._uU(3," menu "),b.qZA(),b.qZA(),b.TgZ(4,"a",3),b._UZ(5,"div",4),b.qZA(),b.qZA(),b.YNc(6,wr,7,0,"div",5),b.TgZ(7,"div",6),b.TgZ(8,"button",7),b.NdJ("click",function(){return pt.showNotificationHistory()}),b.ALo(9,"translate"),b.TgZ(10,"mat-icon",8),b._uU(11),b.qZA(),b.qZA(),b._UZ(12,"perun-web-apps-header-menu",9),b.qZA()),2&Be&&(b.Q6J("ngStyle",b.VKq(19,bn,pt.navTextColor)),b.xp6(2),b.Q6J("ngStyle",b.VKq(21,bn,pt.iconColor)),b.xp6(2),b.Q6J("routerLink",b.DdM(23,mn)),b.xp6(1),b.Q6J("innerHTML",pt.logo,b.oJD),b.xp6(1),b.Q6J("ngIf",pt.isDevel),b.xp6(1),b.Q6J("ngStyle",b.VKq(24,bn,pt.navTextColor)),b.xp6(1),b.Q6J("matTooltip",b.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),b.xp6(2),b.s9C("matBadge",pt.getNewNotificationsCount()>5?"5+":pt.getNewNotificationsCount()),b.Q6J("ngStyle",b.VKq(26,bn,pt.iconColor))("matBadgeHidden",0===pt.getNewNotificationsCount()),b.xp6(1),b.hij(" ",pt.getNewNotificationsCount()?"notifications_active":"notifications"," "),b.xp6(1),b.Q6J("iconColor",pt.iconColor)("label",pt.profileLabel)("textColor",pt.navTextColor)("logoutEnabled",pt.logoutEnabled)("url",pt.profileUrl)("user",pt.principal.user))},directives:[ie.PC,q.lW,Ae.Hw,_.yS,ie.O5,T.gM,fn.k,$r.X],pipes:[I.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),me})();var Xn=p(73228);const er={provide:le.TP,useExisting:(0,b.Gpc)(()=>A.yC),multi:!0};function fr(me){return new ne(me,"./assets/i18n/",".json")}function aa(me){const at={basePath:me.get("api_url")};return new g.VK(at)}const gs=me=>()=>me.initialize(),oa={suppressScrollX:!0};let _s=(()=>{class me{constructor(Be,pt){this.customIconService=Be,this.translate=pt,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return me.\u0275fac=function(Be){return new(Be||me)(b.LFG(A.EB),b.LFG(I.sK))},me.\u0275mod=b.oAB({type:me,bootstrap:[U.y]}),me.\u0275inj=b.cJS({providers:[Di,{provide:b.ip1,useFactory:gs,multi:!0,deps:[Di]},{provide:g.VK,useFactory:aa,deps:[A.d6]},{provide:_.wN,useClass:vt},A.EB,{provide:F,useClass:A.sM},A.yC,er,{provide:Re,useValue:oa},{provide:cr.Hy,useFactory:()=>localStorage}],imports:[[Le.PW,e.b2,le.JF,L.m,ct,ze,Ae.Ps,wi,I.aw.forRoot({loader:{provide:I.Zw,useFactory:fr,deps:[le.eN]}}),g.au,Wn,d.ez,t,cr.zr.forRoot()]]}),me})();b.B6R(U.y,[ie.O5,Ae.Hw,gi,Sn,ie.PC,O.TM,O.JX,tn,Xn.V,O.Rh,_.lC,o.$,Ut],[]),(0,b.G48)(),e.q6().bootstrapModule(_s).catch(me=>console.error(me))},11243:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{}return w.\u0275fac=function(A){return new(A||w)},w.\u0275mod=b.oAB({type:w}),w.\u0275inj=b.cJS({imports:[[e.ez]]}),w})()},6335:(Qe,be,p)=>{"use strict";p.d(be,{Rc:()=>b,pI:()=>_,Ng:()=>w});var e=p(5e3);const b="GUI_CONFIG.PREF_PAGE_SIZE",_="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(E){return localStorage.getItem(E)}getNumber(E){return parseInt(localStorage.getItem(E),10)}setNumber(E,C){localStorage.setItem(E,C.toString())}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:(Qe,be,p)=>{"use strict";p.d(be,{dB:()=>_,CP:()=>w,tw:()=>g,nT:()=>A,YF:()=>E,gc:()=>C,v1:()=>R,AA:()=>I,VR:()=>m,uM:()=>O,xx:()=>P,H2:()=>W,xt:()=>ie,dI:()=>Ae,j1:()=>q,Wv:()=>Me,qy:()=>he,BV:()=>De,qV:()=>T,tY:()=>N,Af:()=>j,O7:()=>Y,gB:()=>ee,Hi:()=>de,Jf:()=>ce,W1:()=>Fe,rF:()=>Ue,Aj:()=>Xe,Ad:()=>te,kZ:()=>Ve,cL:()=>ve,RS:()=>Oe,HC:()=>z,KE:()=>D,Sb:()=>ge,_7:()=>Te,bf:()=>Ie,rc:()=>fe,Cf:()=>Se,eq:()=>Q,NG:()=>Ce,O9:()=>re,d7:()=>k,vq:()=>pe,NL:()=>Z,kO:()=>Ne,aL:()=>oe,DR:()=>_e,uC:()=>$,JO:()=>V,oK:()=>i,Iz:()=>a,It:()=>d,z6:()=>l,iQ:()=>s,e5:()=>r,Bf:()=>t,zp:()=>c,US:()=>h,gG:()=>x,$V:()=>We,S7:()=>At,zW:()=>Ut,CE:()=>Lt,Is:()=>we,M8:()=>L,g:()=>ne,_c:()=>le,dK:()=>Le,yW:()=>ct,HE:()=>bt,ee:()=>Yt,FF:()=>It,$I:()=>Rt,XH:()=>Et,$t:()=>Bt,uI:()=>Jt});var e=p(6335),b=p(5e3);let _=(()=>{class ai{constructor(bi){this.guiConfigService=bi}getTablePageSize(bi){const yi=this.guiConfigService.getNumber(e.pI+bi);if(!isNaN(yi))return yi;const Wi=this.guiConfigService.getNumber(e.Rc);return isNaN(Wi)?10:Wi}setTablePageSize(bi,yi){this.guiConfigService.setNumber(e.pI+bi,yi)}}return ai.\u0275fac=function(bi){return new(bi||ai)(b.LFG(e.Ng))},ai.\u0275prov=b.Yz7({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const w="0",g="1",A="2",E="3",C="4",R="5",I="6",m="7",O="8",P="9",W="10",ie="11",Ae="12",q="13",Me="14",he="15",De="16",T="17",N="18",j="19",Y="20",ee="21",de="22",ce="23",Fe="24",Ue="25",Xe="26",te="27",Ve="28",ve="29",Oe="30",z="31",D="32",ge="33",Te="34",Ie="35",fe="36",Se="37",Q="42",Ce="43",re="44",k="45",pe="46",Z="47",Ne="48",oe="49",_e="50",$="51",V="52",i="53",a="54",d="55",l="56",s="57",r="58",t="59",c="62",h="63",x="64",We="65",At="66",Ut="69",Lt="71",we="72",L="75",ne="76",le="77",Le="78",ct="79",bt="80",Yt="82",It="83",Rt="84",Et="85",Bt="86",Jt="87"},36769:(Qe,be,p)=>{"use strict";p.d(be,{Ji:()=>g,Pd:()=>_,BQ:()=>b,Ly:()=>w,GH:()=>C,Ls:()=>R,SG:()=>E,es:()=>A});var e=p(41777);const b=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),_=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),w=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),g=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),A=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),E=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),C=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),R=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},387:(Qe,be,p)=>{"use strict";p.d(be,{Mw:()=>D.M,qG:()=>x.qG,Sx:()=>c.S,y9:()=>We,Nj:()=>l,ez:()=>Oe,t$:()=>s});var e=p(69808),b=p(77446),_=p(32075),w=p(51062),g=p(11735),A=p(84847),E=p(86087),C=p(20773),R=p(63189),I=p(25245),m=p(92181),O=p(47423),P=p(29772),W=p(67322),ie=p(93075),Ae=p(98833),q=p(26688),Me=p(44409),he=p(90508),De=p(19516),T=p(69287),N=p(90149),j=p(86856),Y=p(79814),ee=p(74107),de=p(43586),ce=p(53435),Fe=p(48966),Ue=p(9244),Xe=p(6397),te=p(5e3);let Ve=(()=>{class At extends he.LF{format(lt,Ut){return"input"===Ut?`${lt.getDate().toString()}.${(lt.getMonth()+1).toString()}.${lt.getFullYear()}`:lt.toDateString()}}return At.\u0275fac=function(){let Ht;return function(Ut){return(Ht||(Ht=te.n5z(At)))(Ut||At)}}(),At.\u0275prov=te.Yz7({token:At,factory:At.\u0275fac}),At})();const ve={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Oe=(()=>{class At{}return At.\u0275fac=function(lt){return new(lt||At)},At.\u0275mod=te.oAB({type:At}),At.\u0275inj=te.cJS({providers:[{provide:he._A,useClass:Ve},{provide:he.sG,useValue:ve}],imports:[[e.ez,b.p9,_.p0,ie.u5,q.Hi,Me._t,w.aw,g.Bz,A.JX,E.TU,C.Cq,R.r,I.Ps,m.Tx,O.ot,P.AV,W.lN,ie.UX,Ae.c,he.si,De.d4,T.Iq,N.dp,j.FA,Y.Fk,he.Ng,ee.LD,de.Co,ce.Cl,Fe.Is,Ue.Je,Xe.C]]}),At})();p(53984);var D=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(22465),p(80275),p(32105)),je=p(32080),Q=p(16074),Ce=p(98380),re=p(34447);function k(At,Ht){1&At&&(te.TgZ(0,"perun-web-apps-alert"),te._uU(1),te.ALo(2,"translate"),te.ALo(3,"customTranslate"),te.qZA()),2&At&&(te.xp6(1),te.Oqu(te.lcZ(2,1,te.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function pe(At,Ht){1&At&&(te.TgZ(0,"th",16),te._uU(1),te.ALo(2,"translate"),te.ALo(3,"customTranslate"),te.qZA()),2&At&&(te.xp6(1),te.hij(" ",te.lcZ(2,1,te.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Z(At,Ht){if(1&At&&(te.TgZ(0,"td",17),te._uU(1),te.qZA()),2&At){const lt=Ht.$implicit;te.xp6(1),te.Oqu(lt.friendlyNameParameter)}}function Ne(At,Ht){1&At&&(te.TgZ(0,"th",16),te._uU(1),te.ALo(2,"translate"),te.ALo(3,"customTranslate"),te.qZA()),2&At&&(te.xp6(1),te.hij(" ",te.lcZ(2,1,te.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function oe(At,Ht){if(1&At&&(te.TgZ(0,"td",18),te._uU(1),te.qZA()),2&At){const lt=Ht.$implicit;te.xp6(1),te.Oqu(lt.value)}}function _e(At,Ht){1&At&&te._UZ(0,"th",16)}function $(At,Ht){if(1&At){const lt=te.EpF();te.TgZ(0,"td",19),te.TgZ(1,"button",20),te.NdJ("click",function(){const Lt=te.CHM(lt).$implicit;return te.oxw().resetPassword(Lt.friendlyNameParameter)}),te._uU(2),te.ALo(3,"translate"),te.ALo(4,"customTranslate"),te.qZA(),te.qZA()}if(2&At){const lt=Ht.$implicit,Ut=te.oxw();te.xp6(1),te.Q6J("disabled",!Ut.logins.includes(lt)),te.xp6(1),te.hij(" ",te.lcZ(3,2,te.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function V(At,Ht){1&At&&te._UZ(0,"th",16)}function i(At,Ht){if(1&At){const lt=te.EpF();te.TgZ(0,"td",19),te.TgZ(1,"button",21),te.NdJ("click",function(){const Lt=te.CHM(lt).$implicit;return te.oxw().changePassword(Lt)}),te._uU(2),te.ALo(3,"translate"),te.ALo(4,"customTranslate"),te.qZA(),te.qZA()}if(2&At){const lt=Ht.$implicit,Ut=te.oxw();te.xp6(1),te.Q6J("disabled",!Ut.logins.includes(lt)),te.xp6(1),te.hij(" ",te.lcZ(3,2,te.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function a(At,Ht){1&At&&te._UZ(0,"tr",22)}function d(At,Ht){1&At&&te._UZ(0,"tr",23)}let l=(()=>{class At{constructor(lt,Ut,mt,Lt,we,ze){this.attributesManagerService=lt,this.store=Ut,this.dialog=mt,this.route=Lt,this.router=we,this.otherApplicationService=ze,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(lt=>{const Ut=this.nameSpaces.map(we=>{const ze=we.split(":");return ze[ze.length-1]});this.logins=lt.filter(we=>Ut.includes(we.friendlyNameParameter)),this.dataSource=new _.by(lt);const Lt=this.route.snapshot.queryParamMap.get("namespace");if(Lt){const we=this.logins.find(ze=>ze.friendlyNameParameter===Lt);we&&this.changePassword(we)}})}resetPassword(lt){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",lt),"_blank")}changePassword(lt){this.router.navigate([],{queryParams:{namespace:lt.friendlyNameParameter},queryParamsHandling:"merge"});const Ut=(0,Ue.kZ)();Ut.width="600px",Ut.data={login:String(lt.value),namespace:lt.friendlyName.split(":")[1]},this.dialog.open(Q.xF,Ut).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return At.\u0275fac=function(lt){return new(lt||At)(te.Y36(nt.H8),te.Y36(je.d6),te.Y36(Fe.uw),te.Y36(g.gz),te.Y36(g.F0),te.Y36(je.jq))},At.\u0275cmp=te.Xpm({type:At,selectors:[["perun-web-apps-password-reset"]],decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(lt,Ut){1<&&(te.TgZ(0,"h1",0),te._uU(1),te.ALo(2,"translate"),te.ALo(3,"customTranslate"),te.qZA(),te.YNc(4,k,4,5,"perun-web-apps-alert",1),te.TgZ(5,"div",2),te.TgZ(6,"div",3),te.TgZ(7,"div",4),te.TgZ(8,"table",5),te.ynx(9,6),te.YNc(10,pe,4,5,"th",7),te.YNc(11,Z,2,1,"td",8),te.BQk(),te.ynx(12,9),te.YNc(13,Ne,4,5,"th",7),te.YNc(14,oe,2,1,"td",10),te.BQk(),te.ynx(15,11),te.YNc(16,_e,1,0,"th",7),te.YNc(17,$,5,6,"td",12),te.BQk(),te.ynx(18,13),te.YNc(19,V,1,0,"th",7),te.YNc(20,i,5,6,"td",12),te.BQk(),te.YNc(21,a,1,0,"tr",14),te.YNc(22,d,1,0,"tr",15),te.qZA(),te.qZA(),te.qZA(),te.qZA()),2<&&(te.xp6(1),te.hij(" ",te.lcZ(2,5,te.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),te.xp6(3),te.Q6J("ngIf",!Ut.logins.length),te.xp6(4),te.Q6J("dataSource",Ut.dataSource),te.xp6(13),te.Q6J("matHeaderRowDef",Ut.displayedColumns),te.xp6(1),te.Q6J("matRowDefColumns",Ut.displayedColumns))},directives:[e.O5,Ce.w,_.BZ,A.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,O.lW,_.as,_.XQ,_.nj,_.Gk],pipes:[w.X$,re.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),At})(),s=(()=>{class At{constructor(lt,Ut,mt,Lt){this.router=lt,this.route=Ut,this.location=mt,this.forceRoute=Lt}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(lt=>{this.router.navigate([lt.redirectTo])}):this.location.back()}}return At.\u0275fac=function(lt){return new(lt||At)(te.Y36(g.F0),te.Y36(g.gz),te.Y36(e.Ye),te.Y36(je.xw))},At.\u0275cmp=te.Xpm({type:At,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(lt,Ut){},styles:[""]}),At})();p(24179),p(58956),p(41619),p(61150);var c=p(63312),x=(p(52314),p(52170));let We=(()=>{class At{constructor(lt){this.router=lt}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return At.\u0275fac=function(lt){return new(lt||At)(te.Y36(g.F0))},At.\u0275cmp=te.Xpm({type:At,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(lt,Ut){1<&&(te.TgZ(0,"div",0),te.TgZ(1,"h1",1),te._uU(2),te.ALo(3,"translate"),te.qZA(),te.TgZ(4,"div"),te._uU(5),te.ALo(6,"translate"),te.qZA(),te.TgZ(7,"button",2),te.NdJ("click",function(){return Ut.redirectToHome()}),te._uU(8),te.ALo(9,"translate"),te.qZA(),te.qZA()),2<&&(te.xp6(2),te.Oqu(te.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),te.xp6(3),te.Oqu(te.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),te.xp6(3),te.hij(" ",te.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},directives:[O.lW],pipes:[w.X$],styles:[""]}),At})()},63312:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>g,Y:()=>A});var e=p(5e3),_=(p(32105),p(51062)),w=p(42377);const g={};let A=(()=>{class E{constructor(R){this.translate=R,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=I=>I===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):I.shortname,this.secondaryFunction=I=>I===g?"":I.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(I.id),this.searchFunction=I=>I===g?"":I.shortname+String(I.id)}}return E.\u0275fac=function(R){return new(R||E)(e.Y36(_.sK))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,I){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(O){return I.itemSelected.emit(O)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",I.items)("searchFunction",I.searchFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.secondaryFunction)("entity",I.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[w.i],pipes:[_.X$],styles:[""]}),E})()},38719:(Qe,be,p)=>{"use strict";p.d(be,{u:()=>I});var e=p(5e3),b=p(9244),_=p(69808),w=p(77446),g=p(93075),A=p(67322),E=p(64597);function C(m,O){if(1&m){const P=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){return e.CHM(P),e.oxw()._sendEventToParent()})("ngModelChange",function(ie){return e.CHM(P),e.oxw().attribute.value=ie}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&m){const P=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,P.attribute.displayName),"-value"),e.Q6J("ngModel",P.attribute.value)}}function R(m,O){if(1&m&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&m){const P=e.oxw();e.xp6(1),e.Oqu(P.attribute.value)}}let I=(()=>{class m{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return m.\u0275fac=function(P){return new(P||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(P,W){1&P&&(e.TgZ(0,"div"),e.YNc(1,C,2,4,"mat-checkbox",0),e.YNc(2,R,2,1,"mat-label",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",!W.readonly),e.xp6(1),e.Q6J("ngIf",W.readonly))},directives:[_.O5,w.oG,g.JJ,g.On,A.hX],pipes:[E.R],styles:[""]}),m})()},21963:(Qe,be,p)=>{"use strict";p.d(be,{H:()=>N});var e=p(5e3),b=p(91159),_=p(44409),w=p(16074),g=p(9244),A=p(48966),E=p(26688),C=p(69808),R=p(25245),I=p(29772),m=p(47423),O=p(67322),P=p(98833);function W(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){return e.CHM(ee),e.oxw(2).dragDisabled=!1}),e._uU(1,"drag_indicator"),e.qZA()}}function ie(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(ee);const ce=e.oxw().$implicit;return e.oxw().edit(ce)}),e._uU(1,"edit"),e.qZA()}}function Ae(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(ee);const ce=e.oxw().$implicit;return e.oxw().remove(ce)}),e._uU(1,"cancel"),e.qZA()}}function q(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Fe=e.CHM(ee).$implicit,Ue=e.oxw();return Ue.remove(Fe),Ue._sendEventToParent()}),e.YNc(1,W,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Fe=e.CHM(ee).$implicit,Ue=e.oxw();return Ue.readonly&&void 0!==Ue.attribute.displayName&&Ue.showValue(Fe,Ue.attribute.displayName)}),e._uU(3),e.qZA(),e.YNc(4,ie,2,0,"mat-icon",7),e.YNc(5,Ae,2,0,"mat-icon",8),e.qZA()}if(2&j){const ee=Y.$implicit,de=e.oxw();e.Q6J("selectable",de.selectable)("cdkDragData",ee)("removable",de.removable),e.xp6(1),e.Q6J("ngIf",de.removable),e.xp6(1),e.ekj("cursor-pointer",de.readonly&&void 0!==de.attribute.displayName),e.xp6(1),e.hij(" ",ee," "),e.xp6(1),e.Q6J("ngIf",de.removable),e.xp6(1),e.Q6J("ngIf",de.removable)}}function Me(j,Y){1&j&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function he(j,Y){1&j&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function De(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"span",13),e.TgZ(2,"button",14),e.NdJ("click",function(){return e.CHM(ee),e.oxw().onShowChange()}),e.YNc(3,Me,2,0,"mat-icon",15),e.YNc(4,he,2,0,"mat-icon",15),e.qZA(),e.qZA(),e.qZA()}if(2&j){const ee=e.oxw();e.xp6(1),e.Q6J("matTooltip",ee.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!ee.showMore),e.xp6(1),e.Q6J("ngIf",ee.showMore)}}function T(j,Y){if(1&j){const ee=e.EpF();e.TgZ(0,"mat-form-field",12),e.TgZ(1,"input",16),e.NdJ("matChipInputTokenEnd",function(ce){return e.CHM(ee),e.oxw().add(ce)})("change",function(){return e.CHM(ee),e.oxw()._sendEventToParent()}),e.qZA(),e.qZA()}if(2&j){const ee=e.oxw(),de=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",de)("matChipInputSeparatorKeyCodes",ee.separatorKeysCodes)("matChipInputAddOnBlur",ee.addOnBlur)}}let N=(()=>{class j{constructor(ee,de){this.dialog=ee,this.changeDetector=de,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[b.K5,b.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(ee){const de=ee.input,ce=ee.value;(ce||"").trim()&&(this.attribute.value.push(ce.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),de&&(de.value=""),this.sendEventToParent.emit()}remove(ee){const de=(0,g.kZ)();de.width="400px",de.data={name:ee},this.dialog.open(w.Wr,de).afterClosed().subscribe(Fe=>{if(Fe){const Ue=this.attribute.value.indexOf(ee);this.attribute.value.splice(Ue,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(ee){this.dragDisabled=!0,(0,_.bA)(this.attribute.value,ee.previousIndex,ee.currentIndex),this.values=this.attribute.value}edit(ee){const de=this.attribute.value.indexOf(ee),ce=(0,g.kZ)();ce.width="600px",ce.data={attribute:this.attribute,index:de},this.dialog.open(w.r2,ce).afterClosed().subscribe(Ue=>{Ue&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(ee,de){const ce=(0,g.kZ)();ce.width="350px",ce.data={value:ee,title:de},this.dialog.open(w.mk,ce)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return j.\u0275fac=function(ee){return new(ee||j)(e.Y36(A.uw),e.Y36(e.sBO))},j.\u0275cmp=e.Xpm({type:j,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(ee,de){1&ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Fe){return de.drop(Fe),de._sendEventToParent()}),e.YNc(3,q,6,9,"mat-chip",2),e.YNc(4,De,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA(),e.qZA()),2&ee&&(e.xp6(1),e.Q6J("cdkDropListDisabled",de.dragDisabled),e.xp6(2),e.Q6J("ngForOf",de.values.slice(0,de.itemsShown)),e.xp6(1),e.Q6J("ngIf",de.values.length>de.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!de.readonly))},directives:[E.qn,_.Wj,C.sg,E.HS,_.Zt,C.O5,R.Hw,I.gM,m.lW,O.KE,P.Nt,E.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),j})()},28820:(Qe,be,p)=>{"use strict";p.d(be,{$:()=>Me});var e=p(16074),b=p(9244),_=p(5e3),w=p(48966),g=p(93075),A=p(69808),E=p(67322),C=p(98833),R=p(47423),I=p(25245),m=p(29772);function O(he,De){if(1&he){const T=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(T);const j=_.oxw().index;return _.oxw().removeValue(j)}),_.TgZ(1,"mat-icon"),_._uU(2," indeterminate_check_box "),_.qZA(),_.qZA()}}function P(he,De){if(1&he){const T=_.EpF();_.TgZ(0,"div",9),_.TgZ(1,"mat-form-field",10),_._UZ(2,"label",11),_.TgZ(3,"input",12),_.NdJ("click",function(){const Y=_.CHM(T).index,ee=_.oxw();return ee.readonly&&ee.attribute.displayName&&ee.showValue(ee.keys[Y],ee.attribute.displayName)})("ngModelChange",function(j){const ee=_.CHM(T).index;return _.oxw().keys[ee]=j}),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",10),_._UZ(5,"label",11),_.TgZ(6,"input",13),_.NdJ("click",function(){const Y=_.CHM(T).$implicit,ee=_.oxw();return ee.readonly&&void 0!==ee.attribute.displayName&&ee.showValue(Y,ee.attribute.displayName)})("ngModelChange",function(j){const ee=_.CHM(T).index;return _.oxw().values[ee]=j}),_.qZA(),_.qZA(),_.YNc(7,O,3,0,"button",14),_.qZA()}if(2&he){const T=De.index,N=_.oxw();_.xp6(1),_.s9C("appearance",N.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",N.attribute.id,"-key-",T,""),_.xp6(1),_.ekj("cursor-pointer",N.readonly&&void 0!==N.attribute.displayName),_.hYB("id","",N.attribute.id,"-key-",T,""),_.MGl("name","key-",T,""),_.Q6J("ngModel",N.keys[T])("readonly",N.readonly),_.xp6(1),_.s9C("appearance",N.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",N.attribute.id,"-value-",T,""),_.xp6(1),_.ekj("cursor-pointer",N.readonly&&void 0!==N.attribute.displayName),_.MGl("name","value-",T,""),_.hYB("id","",N.attribute.id,"-value-",T,""),_.Q6J("readonly",N.readonly)("ngModel",N.values[T]),_.xp6(1),_.Q6J("ngIf",!N.readonly)}}function W(he,De){1&he&&(_.TgZ(0,"mat-icon"),_._uU(1,"more_horiz"),_.qZA())}function ie(he,De){1&he&&(_.TgZ(0,"mat-icon"),_._uU(1,"keyboard_arrow_up"),_.qZA())}function Ae(he,De){if(1&he){const T=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(T),_.oxw().onShowChange()}),_.YNc(1,W,2,0,"mat-icon",17),_.YNc(2,ie,2,0,"mat-icon",17),_.qZA()}if(2&he){const T=_.oxw();_.xp6(1),_.Q6J("ngIf",!T.showMore),_.xp6(1),_.Q6J("ngIf",T.showMore)}}function q(he,De){if(1&he){const T=_.EpF();_.TgZ(0,"button",18),_.NdJ("click",function(){return _.CHM(T),_.oxw().addValue()}),_.TgZ(1,"mat-icon"),_._uU(2," add_box "),_.qZA(),_.qZA()}}let Me=(()=>{class he{constructor(T){this.dialog=T,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const T=new Map(Object.entries(this.attribute.value));for(const[N,j]of T.entries())this.keys.push(N),this.values.push(j)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}customTrackBy(T){return T}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(T){this.keys.splice(T,1),this.values.splice(T,1)}updateAttribute(){const T={};for(let N=0;NN.defaultItemsShown),_.xp6(1),_.Q6J("ngIf",!N.readonly))},directives:[g._Y,g.JL,g.F,A.sg,E.KE,C.Nt,g.Fj,g.Q7,g.JJ,g.On,A.O5,R.lW,I.Hw,m.gM],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),he})()},63167:(Qe,be,p)=>{"use strict";p.d(be,{_:()=>R});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(67322),A=p(98833),E=p(93075),C=p(64597);let R=(()=>{class I{constructor(O){this.dialog=O,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(O,P){const W=(0,b.kZ)();W.width="350px",W.data={value:O,title:P},this.dialog.open(_.mk,W)}}return I.\u0275fac=function(O){return new(O||I)(e.Y36(w.uw))},I.\u0275cmp=e.Xpm({type:I,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(O,P){1&O&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return P.readonly&&void 0!==P.value&&P.showValue(P.value,P.attribute.displayName)})("ngModelChange",function(ie){return P.attribute.value=ie})("keydown",function(){return P._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA(),e.qZA()),2&O&&(e.s9C("appearance",P.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",P.readonly&&void 0!==P.value),e.Q2q("data-cy","",e.lcZ(2,6,P.attribute.displayName),"-value"),e.Q6J("readonly",P.readonly)("ngModel",P.attribute.value))},directives:[g.KE,A.Nt,E.Fj,E.JJ,E.On],pipes:[C.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),I})()},43532:(Qe,be,p)=>{"use strict";p.d(be,{M:()=>De});var e=p(5e3),b=p(28820),_=p(69808),w=p(38719),g=p(21963),A=p(63167),E=p(9244),C=p(16074),R=p(48966),I=p(67322),m=p(98833),O=p(93075);let P=(()=>{class T{constructor(j){this.dialog=j,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,E.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(j){const Y=(0,E.kZ)();Y.width="350px",Y.data={value:j.value,title:j.displayName},this.dialog.open(C.mk,Y)}}return T.\u0275fac=function(j){return new(j||T)(e.Y36(R.uw))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(j,Y){1&j&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return Y.readonly&&void 0!==Y.attribute.value&&Y.showValue(Y.attribute)})("ngModelChange",function(de){return Y.attribute.value=de})("keydown",function(){return Y._sendEventToParent()}),e.qZA(),e.qZA()),2&j&&(e.s9C("appearance",Y.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",Y.readonly&&void 0!==Y.attribute.value),e.Q6J("readonly",Y.readonly)("ngModel",Y.attribute.value))},directives:[I.KE,m.Nt,O.wV,O.Fj,O.JJ,O.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const W=["map"];function ie(T,N){if(1&T){const j=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){return e.CHM(j),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const j=e.oxw();e.Q6J("attribute",j.attribute)("readonly",j.readonly)}}function Ae(T,N){if(1&T){const j=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){return e.CHM(j),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const j=e.oxw();e.Q6J("attribute",j.attribute)("readonly",j.readonly)}}function q(T,N){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const j=e.oxw();e.Q6J("attribute",j.attribute)("readonly",j.readonly)}}function Me(T,N){if(1&T){const j=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){return e.CHM(j),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const j=e.oxw();e.Q6J("attribute",j.attribute)("readonly",j.readonly)}}function he(T,N){if(1&T){const j=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){return e.CHM(j),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const j=e.oxw();e.Q6J("attribute",j.attribute)("readonly",j.readonly)}}let De=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return T.\u0275fac=function(j){return new(j||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(j,Y){if(1&j&&e.Gf(W,5),2&j){let ee;e.iGM(ee=e.CRH())&&(Y.mapComponent=ee.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(j,Y){1&j&&(e.TgZ(0,"div"),e.YNc(1,ie,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,Ae,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return Y._sendEventToParent2()}),e.YNc(4,q,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Me,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,he,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&j&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===Y.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===Y.attribute.type||"java.lang.LargeString"===Y.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===Y.attribute.type))},directives:[_.O5,w.u,g.H,b.$,A._,P],styles:[""]}),T})()},53984:(Qe,be,p)=>{"use strict";p.d(be,{p:()=>Xe});var e=p(84847),b=p(32075),_=p(20449),w=p(43532),g=p(9244),A=p(32080),E=p(5e3),C=p(18750),R=p(77446),I=p(29772),m=p(69808),O=p(98380),P=p(64597);let W=(()=>{class te{transform(ve){return"virt"===ve.namespace.split(":")[4]}}return te.\u0275fac=function(ve){return new(ve||te)},te.\u0275pipe=E.Yjl({name:"isVirtualAttribute",type:te,pure:!0}),te})();var ie=p(51062);function Ae(te,Ve){if(1&te){const ve=E.EpF();E.TgZ(0,"th",17),E.TgZ(1,"mat-checkbox",18),E.NdJ("change",function(z){E.CHM(ve);const D=E.oxw();return z?D.masterToggle():null}),E.qZA(),E.qZA()}if(2&te){const ve=E.oxw();E.xp6(1),E.Q6J("checked",ve.selection.hasValue()&&ve.isAllSelected())("indeterminate",ve.selection.hasValue()&&!ve.isAllSelected())("aria-label",ve.checkboxLabel())}}function q(te,Ve){if(1&te){const ve=E.EpF();E.TgZ(0,"td",19),E.TgZ(1,"mat-checkbox",20),E.NdJ("click",function(z){return z.stopPropagation()})("change",function(z){const ge=E.CHM(ve).$implicit,Te=E.oxw();return z?Te.selection.toggle(ge):null}),E.ALo(2,"multiWordDataCy"),E.ALo(3,"isVirtualAttribute"),E.qZA(),E.qZA()}if(2&te){const ve=Ve.$implicit,Oe=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,4,ve.displayName),"-checkbox"),E.Q6J("checked",Oe.selection.isSelected(ve))("disabled",E.lcZ(3,6,ve)||!ve.writable)("aria-label",Oe.checkboxLabel(ve))}}function Me(te,Ve){1&te&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function he(te,Ve){if(1&te&&(E.TgZ(0,"td",22),E._uU(1),E.qZA()),2&te){const ve=Ve.$implicit;E.xp6(1),E.Oqu(ve.id)}}function De(te,Ve){1&te&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function T(te,Ve){if(1&te&&(E.TgZ(0,"td",23),E.TgZ(1,"div",24),E._uU(2),E.qZA(),E.qZA()),2&te){const ve=Ve.$implicit,Oe=E.oxw();E.xp6(1),E.s9C("matTooltip",Oe.getAttributeFullName(ve)),E.xp6(1),E.hij(" ",ve.displayName," ")}}function N(te,Ve){1&te&&(E.TgZ(0,"th",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function j(te,Ve){if(1&te){const ve=E.EpF();E.TgZ(0,"td",23),E.TgZ(1,"perun-web-apps-attribute-value",26),E.NdJ("sendEventToParent2",function(){const D=E.CHM(ve).$implicit;return E.oxw().onValueChange(D)}),E.qZA(),E.qZA()}if(2&te){const ve=Ve.$implicit,Oe=E.oxw();E.xp6(1),E.Q6J("attribute",ve)("readonly",Oe.readonly||!ve.writable)}}function Y(te,Ve){1&te&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function ee(te,Ve){if(1&te&&(E.TgZ(0,"td",23),E._uU(1),E.qZA()),2&te){const ve=Ve.$implicit;E.xp6(1),E.Oqu(ve.description)}}function de(te,Ve){1&te&&E._UZ(0,"tr",27)}function ce(te,Ve){if(1&te&&(E._UZ(0,"tr",28),E.ALo(1,"translate")),2&te){const ve=Ve.$implicit,Oe=E.oxw();E.s9C("matTooltip",E.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),E.Q6J("matTooltipPosition","before")("matTooltipDisabled",ve.writable||Oe.readonly)}}function Fe(te,Ve){1&te&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ue(te,Ve){if(1&te&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&te){const ve=E.oxw();E.xp6(1),E.hij(" ",E.lcZ(2,1,ve.emptyListText),"\n")}}let Xe=(()=>{class te{constructor(ve,Oe){this.authResolver=ve,this.tableCheckbox=Oe,this.attributes=[],this.selection=new _.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=g.f7}set matSort(ve){this.sort=ve,this.setDataSource()}static canBeSelected(ve){return!(0,g.Hm)(ve)&&ve.writable}static getDataForColumn(ve,Oe){switch(Oe){case"id":return ve.id.toString();case"displayName":return ve.displayName;case"description":return ve.description;case"value":return JSON.stringify(ve.value);case"urn":return ve.namespace+":"+ve.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ve=>"id"!==ve)),this.dataSource=new b.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(ve){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,te.getDataForColumn),ve)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(ve=>!this.hiddenColumns.includes(ve)),this.dataSource&&(this.dataSource.filterPredicate=(ve,Oe)=>(0,g.Sd)(ve,Oe,this.displayedColumns.concat("urn"),te.getDataForColumn),this.dataSource.sortData=(ve,Oe)=>(0,g.pR)(ve,Oe,te.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,te.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,te.canBeSelected)}checkboxLabel(ve){return ve?`${this.selection.isSelected(ve)?"deselect":"select"} row ${ve.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const ve of this.items.toArray())"java.util.LinkedHashMap"===ve.attribute.type&&ve.updateMapAttribute()}onValueChange(ve){te.canBeSelected(ve)&&this.selection.select(ve)}getAttributeFullName(ve){return`${ve.namespace}:${ve.friendlyName}`}}return te.\u0275fac=function(ve){return new(ve||te)(E.Y36(A.x4),E.Y36(A.UA))},te.\u0275cmp=E.Xpm({type:te,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(ve,Oe){if(1&ve&&(E.Gf(g.l9,7),E.Gf(e.YE,7),E.Gf(w.M,5)),2&ve){let z;E.iGM(z=E.CRH())&&(Oe.child=z.first),E.iGM(z=E.CRH())&&(Oe.matSort=z.first),E.iGM(z=E.CRH())&&(Oe.items=z)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[E.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(ve,Oe){1&ve&&(E.TgZ(0,"div",0),E.TgZ(1,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(D){return Oe.exportData(D)}),E.TgZ(2,"table",2),E.ynx(3,3),E.YNc(4,Ae,2,3,"th",4),E.YNc(5,q,4,8,"td",5),E.BQk(),E.ynx(6,6),E.YNc(7,Me,3,3,"th",7),E.YNc(8,he,2,1,"td",8),E.BQk(),E.ynx(9,9),E.YNc(10,De,3,3,"th",7),E.YNc(11,T,3,2,"td",10),E.BQk(),E.ynx(12,11),E.YNc(13,N,3,3,"th",12),E.YNc(14,j,2,2,"td",10),E.BQk(),E.ynx(15,13),E.YNc(16,Y,3,3,"th",7),E.YNc(17,ee,2,1,"td",10),E.BQk(),E.YNc(18,de,1,0,"tr",14),E.YNc(19,ce,2,5,"tr",15),E.qZA(),E.qZA(),E.qZA(),E.YNc(20,Fe,3,3,"perun-web-apps-alert",16),E.YNc(21,Ue,3,3,"perun-web-apps-alert",16)),2&ve&&(E.Q6J("hidden",0===Oe.dataSource.filteredData.length),E.xp6(1),E.Q6J("tableId",Oe.tableId)("dataLength",Oe.dataSource.filteredData.length)("pageSizeOptions",Oe.pageSizeOptions),E.xp6(1),E.Q6J("dataSource",Oe.dataSource),E.xp6(16),E.Q6J("matHeaderRowDef",Oe.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Oe.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Oe.dataSource.filteredData.length&&0!==Oe.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",0===Oe.dataSource.data.length))},directives:[C.l,b.BZ,e.YE,b.w1,b.fO,b.ge,R.oG,b.Dz,b.ev,e.nU,I.gM,w.M,b.as,b.XQ,b.nj,b.Gk,m.O5,O.w],pipes:[P.R,W,ie.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),te})()},4235:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>R});var e=p(32080),b=p(5e3),_=p(69808),w=p(47423),g=p(29772),A=p(25245),E=p(51062);const C=function(I){return{color:I}};let R=(()=>{class I{constructor(O,P){this.location=O,this.storeService=P}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return I.\u0275fac=function(O){return new(O||I)(b.Y36(_.Ye),b.Y36(e.d6))},I.\u0275cmp=b.Xpm({type:I,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(O,P){1&O&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return P.goBack()}),b.ALo(1,"translate"),b.TgZ(2,"mat-icon",1),b._uU(3,"arrow_right_alt"),b.qZA(),b.qZA()),2&O&&(b.s9C("matTooltip",b.lcZ(1,2,"Back")),b.Q6J("ngStyle",b.VKq(4,C,P.backButtonColor)))},directives:[w.lW,_.PC,g.gM,A.Hw],pipes:[E.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),I})()},61150:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>O});var e=p(5e3),b=p(93075),_=p(32080),w=p(67322),g=p(98833),A=p(69808),E=p(77446),C=p(82322),R=p(51062);function I(P,W){if(1&P){const ie=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){return e.CHM(ie),e.oxw().emitAsSubGroup()})("ngModelChange",function(q){return e.CHM(ie),e.oxw().asSubgroup=q}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&P){const ie=e.oxw();e.Q6J("labelPosition","before")("ngModel",ie.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function m(P,W){if(1&P){const ie=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(q){return e.CHM(ie),e.oxw().emitParentGroup(q)}),e.qZA()}if(2&P){const ie=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ie.voGroups)}}let O=(()=>{class P{constructor(ie){this.store=ie,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new b.NI("",[b.kI.required,b.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),b.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new b.NI("",[b.kI.required,b.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ie=>"members"!==ie.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ie){this.selectedParent=ie,this.parentGroupChanged.emit(ie)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return P.\u0275fac=function(ie){return new(ie||P)(e.Y36(_.d6))},P.\u0275cmp=e.Xpm({type:P,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ie,Ae){1&ie&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-form-field",1),e.NdJ("keyup",function(){return Ae.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return Ae.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.YNc(15,I,3,5,"mat-checkbox",5),e.YNc(16,m,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ie&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",Ae.nameControl),e.xp6(3),e.hij(" ",Ae.invalidNameMessage.length?Ae.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",Ae.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",Ae.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",Ae.asSubgroup))},directives:[w.KE,g.Nt,b.Fj,b.Q7,b.JJ,b.oH,w.TO,A.O5,E.oG,b.On,C.h],pipes:[R.X$],styles:[""]}),P})()},39798:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>E});var e=p(5e3),b=p(67322),_=p(98833),w=p(86856),g=p(93075),A=p(51062);let E=(()=>{class C{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return C.\u0275fac=function(I){return new(I||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(I,m){if(1&I){const O=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){return e.CHM(O),e.MAs(7).open()}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return m.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2),e._UZ(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){return e.CHM(O),e.MAs(15).open()}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return m.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2),e._UZ(14,"mat-datepicker",null,5),e.qZA()}if(2&I){const O=e.MAs(7),P=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",O)("min",m.startMinDate)("max",m.startMaxDate)("formControl",m.startDate),e.xp6(1),e.Q6J("for",O),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",P)("min",m.endMinDate)("max",m.endMaxDate)("formControl",m.endDate),e.xp6(1),e.Q6J("for",P)}},directives:[b.KE,b.hX,_.Nt,w.hl,g.Fj,g.JJ,g.oH,w.nW,b.R9,w.Mq],pipes:[A.X$],styles:[""]}),C})()},64901:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>m});var e=p(5e3),b=p(23753),_=p(24850),w=p(80013),g=p(75778),A=p(93075),E=p(67322),C=p(98833),R=p(51062);const I=["input"];let m=(()=>{class O{constructor(){this.autoFocus=!1,this.control=new A.NI,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,b.R)(this.input.nativeElement,"keyup").pipe((0,_.U)(W=>W.target.value),(0,w.b)(500),(0,g.x)()).subscribe(W=>{this.control.invalid||this.filter.emit(W)})}}return O.\u0275fac=function(W){return new(W||O)},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(W,ie){if(1&W&&e.Gf(I,7),2&W){let Ae;e.iGM(Ae=e.CRH())&&(ie.input=Ae.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder","formControl"],["input",""]],template:function(W,ie){1&W&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA(),e.qZA()),2&W&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ie.placeholder)),e.Q6J("formControl",ie.control),e.xp6(4),e.hij(" ",ie.error," "))},directives:[E.KE,C.Nt,A.Fj,A.JJ,A.oH,E.TO],pipes:[R.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),O})()},42377:(Qe,be,p)=>{"use strict";p.d(be,{i:()=>he});var e=p(5e3),b=p(93075),_=p(96831),w=p(8929),g=p(75778),A=p(7625),E=p(67322),C=p(74107),R=p(69808),I=p(90508),m=p(43586),O=p(53435);const P=["scrollViewport"];function W(De,T){if(1&De&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&De){const N=e.oxw();e.xp6(1),e.hij(" ",N.multipleSelectedText()," ")}}function ie(De,T){if(1&De&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&De){const N=e.oxw(2);e.Tol(N.colorByStatus(null==N.entitiesCtrl?null:N.entitiesCtrl.value)),e.xp6(1),e.hij(" ",N.statusTextFunction(null==N.entitiesCtrl?null:N.entitiesCtrl.value)?"("+N.statusTextFunction(null==N.entitiesCtrl?null:N.entitiesCtrl.value)+")":""," ")}}function Ae(De,T){if(1&De&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ie,2,4,"span",10),e.qZA()),2&De){const N=e.oxw();e.Q6J("value",null==N.entitiesCtrl?null:N.entitiesCtrl.value),e.xp6(1),e.hij(" ",N.mainTextFunction(null==N.entitiesCtrl?null:N.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(N.secondaryTextFunction(null==N.entitiesCtrl?null:N.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",N.displayStatus)}}function q(De,T){if(1&De&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&De){const N=e.oxw().$implicit,j=e.oxw();e.Tol(j.colorByStatus(N)),e.xp6(1),e.hij(" ",j.statusTextFunction(N)?"("+j.statusTextFunction(N)+")":""," ")}}function Me(De,T){if(1&De&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,q,2,4,"span",10),e.qZA()),2&De){const N=T.$implicit,j=e.oxw();e.Tol(j.theme),e.Q6J("value",N),e.xp6(1),e.hij(" ",j.mainTextFunction(N)," "),e.xp6(2),e.Oqu(j.secondaryTextFunction(N)),e.xp6(1),e.Q6J("ngIf",j.displayStatus)}}let he=(()=>{class De{constructor(N){this.cd=N,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.entitySelected=new e.vpe,this.entitiesCtrl=new b.NI,this.entityFilterCtrl=new b.NI,this.filteredEntities=new _.t(1),this._onDestroy=new w.xQ,this.entitiesLen=0,this.mainTextFunction=j=>JSON.stringify(j),this.secondaryTextFunction=j=>"#".concat(String(j.id),j.description?" ".concat(j.description):""),this.statusTextFunction=j=>j.status}ngOnInit(){this.entitiesCtrl.valueChanges.pipe((0,g.x)()).subscribe(N=>this.entitySelected.emit(N)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(N=>this.entitiesLen=N.length),this.entityFilterCtrl.valueChanges.pipe((0,A.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(N){switch(N.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(N){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),N.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(N){return N.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let N=48*this.entitiesLen;return N>192&&(N=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),N}multipleSelectedText(){const N=this.entitiesCtrl.value;if(N&&0!==N.length)return N.length===this.entities.length?"ALL":N.length>1?this.mainTextFunction(N[0])+` + ${N.length-1} other(s)`:this.mainTextFunction(N[0])+" "+this.secondaryTextFunction(N[0])}filterEntites(){if(!this.entities)return;let N=this.entityFilterCtrl.value;if(!N)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();N=this.normalize(N),this.filteredEntities.next(this.entities.filter(j=>this.normalize(this.searchFunction(j)).includes(N))),this.cd.detectChanges()}}return De.\u0275fac=function(N){return new(N||De)(e.Y36(e.sBO))},De.\u0275cmp=e.Xpm({type:De,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(N,j){if(1&N&&e.Gf(P,5),2&N){let Y;e.iGM(Y=e.CRH())&&(j.scrollViewport=Y.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],[3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(N,j){1&N&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"mat-select",1),e.NdJ("openedChange",function(){return j.openChange()}),e.YNc(2,W,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,Ae,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,Me,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA(),e.qZA(),e.qZA()),2&N&&(e.xp6(1),e.s9C("placeholder",j.selectPlaceholder),e.Q6J("formControl",j.entitiesCtrl)("multiple",j.multiple),e.xp6(1),e.Q6J("ngIf",j.multiple),e.xp6(2),e.s9C("placeholderLabel",j.findPlaceholder),e.s9C("noEntriesFoundLabel",j.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",j.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==j.entitiesCtrl?null:j.entitiesCtrl.value),e.xp6(1),e.Udp("height",j.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,j.filteredEntities)))},directives:[E.KE,C.gD,b.JJ,b.oH,R.O5,C.$L,I.ey,m.nu,O.N7,O.xd,O.x0],pipes:[R.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),De})()},74010:(Qe,be,p)=>{"use strict";p.d(be,{X:()=>Ce});var e=p(84847),b=p(32075),_=p(9244),w=p(32080),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),R=p(93075),I=p(69808),m=p(29772),O=p(47423),P=p(25245);function W(re,k){if(1&re&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&re){const pe=k.$implicit,Z=g.oxw();g.xp6(1),g.hij(" ",pe[Z.paramName]," ")}}function ie(re,k){1&re&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function Ae(re,k){1&re&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function q(re,k){if(1&re){const pe=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){return g.CHM(pe),g.oxw().onShowChange()}),g.YNc(1,ie,2,0,"mat-icon",8),g.YNc(2,Ae,2,0,"mat-icon",8),g.qZA()}if(2&re){const pe=g.oxw();g.xp6(1),g.Q6J("ngIf",!pe.showMore),g.xp6(1),g.Q6J("ngIf",pe.showMore)}}let Me=(()=>{class re{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return re.\u0275fac=function(pe){return new(pe||re)},re.\u0275cmp=g.Xpm({type:re,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(pe,Z){1&pe&&(g.TgZ(0,"form",0),g.TgZ(1,"div",1),g.TgZ(2,"div",2),g.YNc(3,W,2,1,"div",3),g.qZA(),g.TgZ(4,"div"),g.TgZ(5,"span",4),g.YNc(6,q,3,2,"button",5),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&pe&&(g.xp6(3),g.Q6J("ngForOf",Z.objects.slice(0,Z.itemsShown)),g.xp6(2),g.Q6J("matTooltip",Z.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",Z.objects.length>Z.defaultItemsShown))},directives:[R._Y,R.JL,R.F,I.sg,m.gM,I.O5,O.lW,P.Hw],styles:[""]}),re})();var he=p(50301),De=p(11735),T=p(98380),N=p(51062),j=p(53561);let Y=(()=>{class re{transform(pe,Z,Ne){return pe.filter(oe=>oe[Ne].includes(Z)).filter((oe,_e,$)=>$.findIndex(V=>V[Ne]===oe[Ne])===_e)}}return re.\u0275fac=function(pe){return new(pe||re)},re.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:re,pure:!0}),re})();function ee(re,k){1&re&&g._UZ(0,"th",20)}function de(re,k){if(1&re){const pe=g.EpF();g.TgZ(0,"td",21),g.TgZ(1,"mat-checkbox",22),g.NdJ("change",function(Ne){const _e=g.CHM(pe).$implicit,$=g.oxw();return Ne?$.selection.toggle(_e):null})("click",function(Ne){return Ne.stopPropagation()}),g.qZA(),g.qZA()}if(2&re){const pe=k.$implicit,Z=g.oxw();g.xp6(1),g.Q2q("data-cy","",pe.facility.name,"-checkbox"),g.Q6J("aria-label",Z.checkboxLabel(pe))("checked",Z.selection.isSelected(pe))}}function ce(re,k){1&re&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Fe(re,k){if(1&re&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&re){const pe=k.$implicit;g.xp6(1),g.hij(" ",pe.facility.id," ")}}function Ue(re,k){1&re&&g._UZ(0,"th",25)}function Xe(re,k){if(1&re&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&re){const pe=k.$implicit,Z=g.oxw();g.xp6(1),g.Q6J("id",pe.facility.id)("recentIds",Z.recentIds)}}function te(re,k){1&re&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function Ve(re,k){if(1&re&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&re){const pe=k.$implicit;g.uIk("data-cy",pe.facility.name),g.xp6(1),g.hij(" ",pe.facility.name," ")}}function ve(re,k){1&re&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function Oe(re,k){if(1&re&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&re){const pe=k.$implicit;g.xp6(1),g.Oqu(pe.facility.description)}}function z(re,k){1&re&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function D(re,k){if(1&re&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&re){const pe=k.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,pe.owners))}}function ge(re,k){1&re&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function Te(re,k){if(1&re){const pe=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(pe),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(pe),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&re){const pe=k.$implicit,Z=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,pe.destinations,Z.filterValue,"destination"))("paramName","destination")}}function Ie(re,k){1&re&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function fe(re,k){if(1&re){const pe=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(pe),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(pe),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&re){const pe=k.$implicit,Z=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,pe.hosts,Z.filterValue,"hostname"))("paramName","hostname")}}function Se(re,k){1&re&&g._UZ(0,"tr",29)}const Ke=function(re){return["/facilities",re]},Je=function(){return[]};function nt(re,k){if(1&re&&g._UZ(0,"tr",30),2&re){const pe=k.$implicit,Z=g.oxw();g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(2,Ke,pe.facility.id))("routerLink",Z.disableRouting?g.DdM(4,Je):g.VKq(5,Ke,pe.facility.id))}}function je(re,k){1&re&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Q(re,k){1&re&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&re&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let Ce=(()=>{class re{constructor(pe){this.authResolver=pe,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=_.f7,this.getDataForColumnFun=(Z,Ne)=>re.getDataForColumn(Z,Ne,this.recentIds)}set matSort(pe){this.sort=pe}static getDataForColumn(pe,Z,Ne){switch(Z){case"id":return pe.facility.id.toString();case"name":return pe.facility.name;case"description":return pe.facility.description;case"technicalOwners":return(0,_.te)(pe.owners);case"recent":return Ne&&Ne.includes(pe.facility.id)?"#".repeat(Ne.indexOf(pe.facility.id)):pe.name;case"destinations":return pe.destinations.map(oe=>oe.destination).join(" ; ");case"hosts":return pe.hosts.map(oe=>oe.hostname).join(" ; ");default:return pe[Z]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(pe=>"id"!==pe)),this.setDataSource()}exportData(pe){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),pe)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(pe,Z)=>(0,_.Sd)(pe,Z,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(pe,Z)=>(0,_.pR)(pe,Z,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(pe=>this.selection.select(pe))}checkboxLabel(pe){return pe?`${this.selection.isSelected(pe)?"deselect":"select"} row ${pe.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return re.\u0275fac=function(pe){return new(pe||re)(g.Y36(w.x4))},re.\u0275cmp=g.Xpm({type:re,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(pe,Z){if(1&pe&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&pe){let Ne;g.iGM(Ne=g.CRH())&&(Z.child=Ne.first),g.iGM(Ne=g.CRH())&&(Z.matSort=Ne.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(pe,Z){1&pe&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(oe){return Z.exportData(oe)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,ee,1,0,"th",4),g.YNc(5,de,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ce,3,3,"th",7),g.YNc(8,Fe,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Ue,1,0,"th",10),g.YNc(11,Xe,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,te,3,3,"th",7),g.YNc(14,Ve,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,ve,3,3,"th",10),g.YNc(17,Oe,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,z,3,3,"th",10),g.YNc(20,D,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,ge,3,3,"th",10),g.YNc(23,Te,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,Ie,3,3,"th",10),g.YNc(26,fe,3,6,"td",11),g.BQk(),g.YNc(27,Se,1,0,"tr",17),g.YNc(28,nt,1,7,"tr",18),g.qZA(),g.qZA(),g.qZA(),g.YNc(29,je,3,3,"perun-web-apps-alert",19),g.YNc(30,Q,3,3,"perun-web-apps-alert",19)),2&pe&&(g.Q6J("hidden",!Z.dataSource||0===Z.dataSource.filteredData.length||0===Z.facilities.length),g.xp6(1),g.Q6J("tableId",Z.tableId)("dataLength",Z.dataSource.filteredData.length)("pageSizeOptions",Z.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",Z.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",Z.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Z.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===Z.dataSource.filteredData.length&&0!==Z.facilities.length),g.xp6(1),g.Q6J("ngIf",0===Z.facilities.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,Me,b.as,b.XQ,b.nj,b.Gk,he.YH,De.rH,I.O5,T.w],pipes:[N.X$,j.J,Y],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),re})()},13449:(Qe,be,p)=>{"use strict";p.d(be,{i:()=>T});var e=p(5e3),b=p(32080),_=p(69808),w=p(47423),g=p(69287),A=p(29772),E=p(25245),C=p(92181),R=p(51062),I=p(45942),m=p(29218),O=p(28764);function P(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onSyncDetail()}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,Y.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,Y.group)),e.xp6(2),e.Tol(e.lcZ(6,13,Y.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,Y.group)," ")}}function W(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onMoveGroup()}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA(),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",Y.disabled)}}function ie(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onChangeNameDescription()}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA(),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",Y.disabled)}}function Ae(N,j){if(1&N&&(e.TgZ(0,"div",2),e.TgZ(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA(),e.qZA(),e.YNc(5,P,9,17,"span",4),e.YNc(6,W,5,5,"span",4),e.YNc(7,ie,5,5,"span",4),e.qZA()),2&N){const Y=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",Y.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",Y.syncAuth),e.xp6(1),e.Q6J("ngIf",Y.moveAuth),e.xp6(1),e.Q6J("ngIf",Y.editAuth)}}function q(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onSyncDetail()}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,Y.group)),e.xp6(2),e.Tol(e.lcZ(3,8,Y.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,Y.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,Y.group)))}}function Me(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onMoveGroup()}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.Q6J("disabled",Y.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function he(N,j){if(1&N){const Y=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Y),e.oxw(2).onChangeNameDescription()}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA()}if(2&N){const Y=e.oxw(2);e.Q6J("disabled",Y.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function De(N,j){if(1&N&&(e.TgZ(0,"div"),e.TgZ(1,"button",7),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,8),e.TgZ(6,"button",9),e.TgZ(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.qZA(),e.YNc(12,q,10,16,"button",10),e.YNc(13,Me,6,4,"button",10),e.YNc(14,he,6,4,"button",10),e.qZA(),e.qZA()),2&N){const Y=e.MAs(5),ee=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",Y),e.xp6(5),e.Q6J("cdkCopyToClipboard",ee.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",ee.syncAuth),e.xp6(1),e.Q6J("ngIf",ee.moveAuth),e.xp6(1),e.Q6J("ngIf",ee.editAuth)}}let T=(()=>{class N{constructor(Y){this.authResolver=Y,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return N.\u0275fac=function(Y){return new(Y||N)(e.Y36(b.x4))},N.\u0275cmp=e.Xpm({type:N,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(Y,ee){1&Y&&(e.YNc(0,Ae,8,8,"div",0),e.YNc(1,De,15,8,"div",1)),2&Y&&(e.Q6J("ngIf",ee.displayButtons),e.xp6(1),e.Q6J("ngIf",!ee.displayButtons))},directives:[_.O5,w.lW,g.i3,A.gM,E.Hw,C.p6,C.VK,C.OP],pipes:[R.X$,I.r,m.J,O.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),N})()},8223:(Qe,be,p)=>{"use strict";p.d(be,{x:()=>P});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(69808),A=p(29772),E=p(25245),C=p(51062);function R(W,ie){if(1&W){const Ae=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(Ae),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA(),e.qZA()}2&W&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function I(W,ie){if(1&W){const Ae=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(Ae),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA(),e.qZA()}2&W&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function m(W,ie){if(1&W){const Ae=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(Ae),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA(),e.qZA()}if(2&W){const Ae=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",Ae.failureCause,"")}}function O(W,ie){1&W&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA(),e.qZA()),2&W&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let P=(()=>{class W{constructor(Ae){this.dialog=Ae,this.status="",this.statusChange=new e.vpe}changeStatus(){const Ae=(0,b.kZ)();Ae.width="500px",Ae.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(_.Qu,Ae).afterClosed().subscribe(Me=>{Me&&this.statusChange.emit()})}}return W.\u0275fac=function(Ae){return new(Ae||W)(e.Y36(w.uw))},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(Ae,q){1&Ae&&(e.TgZ(0,"div",0),e.YNc(1,R,4,3,"span",1),e.YNc(2,I,4,3,"span",1),e.YNc(3,m,4,4,"span",1),e.YNc(4,O,4,3,"span",2),e.qZA()),2&Ae&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===q.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===q.status),e.xp6(1),e.Q6J("ngIf","FAILED"===q.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===q.status))},directives:[g.O5,A.gM,E.Hw],pipes:[C.X$],styles:[""]}),W})()},82322:(Qe,be,p)=>{"use strict";p.d(be,{h:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=C=>C.name}ngOnInit(){this.groups=this.groups.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,R){if(1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return R.groupSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C){let I;e.Q6J("entities",R.groups)("entity",null!==(I=R.firstSelectedGroup)&&void 0!==I?I:null)("displayStatus",R.displayStatus)("disableAutoSelect",R.disableAutoSelect)("mainTextFunction",R.nameFunction)("searchFunction",R.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},24179:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>i});var e=p(5e3),b=p(16074),_=p(32105),w=p(32080),g=p(9244),A=p(84847),E=p(32075),C=p(20449),R=p(69808),I=p(48966),m=p(18750),O=p(77446),P=p(29772),W=p(10441),ie=p(25245),Ae=p(8223),q=p(47423),Me=p(13449),he=p(50301),De=p(98380),T=p(51062),N=p(69773),j=p(21757),Y=p(62383);let ee=(()=>{class a{transform(l){var s;const r=l.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return null!==(s=null==r?void 0:r.value)&&void 0!==s?s:"Never"}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275pipe=e.Yjl({name:"groupExpiration",type:a,pure:!0}),a})();function de(a,d){if(1&a){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(r){e.CHM(l);const t=e.oxw(2);return r?t.masterToggle():null}),e.qZA()}if(2&a){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function ce(a,d){if(1&a&&(e.TgZ(0,"th",24),e.YNc(1,de,1,3,"mat-checkbox",25),e.qZA()),2&a){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function Fe(a,d){if(1&a){const l=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(r){const n=e.CHM(l).$implicit,o=e.oxw();return r?o.itemSelectionToggle(n):null})("click",function(r){return r.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,s.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!s.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",s.checkboxLabel(l))("checked",s.selection.isSelected(l))("disabled","members"===l.name&&s.disableMembers||s.disableSelect(l))}}function Ue(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function Xe(a,d){if(1&a&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&a){const l=d.$implicit;e.xp6(1),e.Oqu(l.id)}}function te(a,d){1&a&&e._UZ(0,"th",32)}function Ve(a,d){if(1&a&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("recentIds",s.recentIds)("id",l.id)}}function ve(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Oe(a,d){if(1&a&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",s.voNames.get(l.voId)," ")}}function z(a,d){1&a&&e._UZ(0,"th",32)}function D(a,d){1&a&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&a&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function ge(a,d){1&a&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&a&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function Te(a,d){if(1&a&&(e.TgZ(0,"td",33),e.YNc(1,D,3,3,"mat-icon",35),e.YNc(2,ge,3,3,"mat-icon",35),e.qZA()),2&a){const l=d.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function Ie(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function fe(a,d){if(1&a&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&a){const l=d.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function Se(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function Ke(a,d){if(1&a){const l=e.EpF();e.TgZ(0,"td",37),e.TgZ(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return e.CHM(l),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("resourceId",s.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Je(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function nt(a,d){if(1&a&&(e.TgZ(0,"td",33),e.TgZ(1,"i",39),e.ALo(2,"memberStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()),2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,s.getStatusAttribute(l)),""),e.s9C("matTooltip",s.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,s.getStatusAttribute(l))," ")}}function je(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function Q(a,d){if(1&a&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&a){const l=d.$implicit;e.xp6(1),e.Oqu(l.description)}}function Ce(a,d){1&a&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function re(a,d){if(1&a){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const r=e.oxw().$implicit;return e.oxw().changeExpiration(r)})("mouseenter",function(){return e.CHM(l),e.oxw(2).disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw(2);return r.disabledRouting=r.disableRouting}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function k(a,d){if(1&a&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,re,3,0,"button",40),e.qZA()),2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",s.canManageGroup(l))}}function pe(a,d){1&a&&e._UZ(0,"th",32)}function Z(a,d){if(1&a){const l=e.EpF();e.TgZ(0,"td",33),e.TgZ(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("moveGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onMoveGroup(t)})("changeNameDescription",function(){const t=e.CHM(l).$implicit;return e.oxw().onChangeNameDescription(t)})("syncGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onSyncDetail(t)}),e.qZA(),e.qZA()}if(2&a){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",s.displayButtons)("group",l)}}function Ne(a,d){1&a&&e._UZ(0,"tr",43)}const oe=function(a,d){return["/organizations",a,"groups",d]};function _e(a,d){if(1&a&&e._UZ(0,"tr",44),2&a){const l=d.$implicit,s=e.oxw();e.ekj("cursor-pointer",!s.disableRouting&&!s.groupsToDisableRouting.has(l.id))("disable-outline",s.disabledRouting||s.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(6,oe,l.voId,l.id))("perunWebAppsForceRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(9,oe,l.voId,l.id))}}function $(a,d){if(1&a&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function V(a,d){1&a&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&a&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let i=(()=>{class a{constructor(l,s,r,t,n){this.dialog=l,this.authResolver=s,this.voService=r,this.tableCheckbox=t,this.changeDetector=n,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(o,c)=>a.getDataForColumn(o,c,this.voNames),this.getSortDataForColumnFun=(o,c)=>a.getSortDataForColumn(o,c,this.voNames,this.recentIds),this.canBeSelected=o=>!("members"===o.name&&this.disableMembers||this.disableSelect(o))}set matSort(l){this.sort=l}static getDataForColumn(l,s,r){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[s]}}static getSortDataForColumn(l,s,r,t){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const n=(0,g.x2)(l);return n&&"never"!==n.toLowerCase()?(0,R.p6)(n,"yyyy.MM.dd","en"):n}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[s]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new E.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,s)=>(0,g.Sd)(l,s,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,s)=>(0,g.pR)(l,s,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const s=(0,g.kZ)();s.data={groupId:l.id,theme:this.theme},this.dialog.open(b.Bp,s)}onChangeNameDescription(l){const s=(0,g.kZ)();s.data={theme:"group-theme",group:l,dialogType:b.Eg.GROUP},this.dialog.open(b.rd,s).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[s]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[s]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,s]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[s]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,s]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(s=>{this.voNames.set(s.id,s.name)})}))}changeExpiration(l){const s=l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName),r=(0,g.kZ)();r.width="400px",r.data={memberId:this.memberId,groupId:l.id,expirationAttr:s,status:this.getStatusAttribute(l)},this.dialog.open(b.u3,r).afterClosed().subscribe(n=>{n.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const s=l.attributes.find(r=>"groupStatus"===r.baseFriendlyName);return(null==s?void 0:s.value)?s.value:""}}return a.\u0275fac=function(l){return new(l||a)(e.Y36(I.uw),e.Y36(w.x4),e.Y36(_.YF),e.Y36(w.UA),e.Y36(e.sBO))},a.\u0275cmp=e.Xpm({type:a,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,s){if(1&l&&(e.Gf(g.l9,7),e.Gf(A.YE,7)),2&l){let r;e.iGM(r=e.CRH())&&(s.child=r.first),e.iGM(r=e.CRH())&&(s.matSort=r.first)}},hostBindings:function(l,s){1&l&&e.NdJ("resize",function(t){return s.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,s){1&l&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return s.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ce,2,1,"th",4),e.YNc(5,Fe,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Ue,3,3,"th",7),e.YNc(8,Xe,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,te,1,0,"th",10),e.YNc(11,Ve,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ve,3,3,"th",7),e.YNc(14,Oe,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,z,1,0,"th",10),e.YNc(17,Te,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,Ie,3,3,"th",7),e.YNc(20,fe,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,Se,3,3,"th",7),e.YNc(23,Ke,2,5,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Je,3,3,"th",7),e.YNc(26,nt,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,je,3,3,"th",7),e.YNc(29,Q,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,Ce,3,3,"th",7),e.YNc(32,k,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,pe,1,0,"th",10),e.YNc(35,Z,2,3,"td",11),e.BQk(),e.YNc(36,Ne,1,0,"tr",21),e.YNc(37,_e,1,12,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(38,$,3,3,"perun-web-apps-alert",23),e.YNc(39,V,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===s.groups.length||!s.dataSource||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.groups.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.groups.length))},directives:[m.l,E.BZ,A.YE,E.w1,E.fO,E.ge,R.O5,O.oG,E.Dz,E.ev,P.gM,A.nU,W.W,ie.Hw,Ae.x,q.lW,Me.i,E.as,E.XQ,E.nj,E.Gk,he.YH,he.Kd,De.w],pipes:[T.X$,N.u,j.f,Y.M,ee],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),a})()},58956:(Qe,be,p)=>{"use strict";p.d(be,{I:()=>Ue});var e=p(5e3),b=p(90149),_=p(28258),w=p(20449);class g{constructor(te){this.id=te.id,this.name=te.name,this.parentGroupId=te.parentGroupId,this.voId=te.voId,this.shortName=te.shortName,this.description=te.description,this.attributes=te.attributes,this.beanName=te.beanName}addChild(te){null==this.children?this.children=[te]:this.children.push(te)}}var A=p(9244),E=p(16074),C=p(32080),R=p(48966),I=p(69808),m=p(53435),O=p(77446),P=p(11735),W=p(47423),ie=p(25245),Ae=p(29772),q=p(13449),Me=p(98380),he=p(51062);const De=["scrollViewport"];function T(Xe,te){if(1&Xe){const Ve=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(Ve);const Oe=e.oxw().$implicit;return e.oxw(2).itemSelectionToggle(Oe)}),e.qZA()}if(2&Xe){const Ve=e.oxw().$implicit,ve=e.oxw(2);e.Q2q("data-cy","",Ve.name,"-checkbox"),e.Q6J("disabled","members"===Ve.fullName)("checked",ve.selection.isSelected(Ve))("indeterminate",ve.descendantsPartiallySelected(Ve))}}function N(Xe,te){if(1&Xe&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&Xe){const Ve=e.oxw().$implicit,ve=e.oxw(2);e.xp6(1),e.hij(" ",ve.treeControl.isExpanded(Ve)?"expand_more":"chevron_right"," ")}}function j(Xe,te){if(1&Xe&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&Xe){const Ve=e.oxw().$implicit;e.xp6(1),e.hij(" #",Ve.id," ")}}const Y=function(Xe,te){return["/organizations",Xe,"groups",te]};function ee(Xe,te){if(1&Xe){const Ve=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,T,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){return e.CHM(Ve),e.oxw(2).disableRouting=!0})("mouseleave",function(){return e.CHM(Ve),e.oxw(2).disableRouting=!1})("click",function(){const z=e.CHM(Ve).$implicit;return e.oxw(2).treeControl.toggle(z)}),e.YNc(5,N,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,j,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15),e.TgZ(12,"span",16),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",17),e.TgZ(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const z=e.CHM(Ve).$implicit;return e.oxw(2).onMoveGroup(z)})("syncGroup",function(){const z=e.CHM(Ve).$implicit;return e.oxw(2).onSyncDetail(z)})("changeNameDescription",function(){const z=e.CHM(Ve).$implicit;return e.oxw(2).onChangeNameDescription(z)}),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&Xe){const Ve=te.$implicit,ve=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*Ve.level+"px"),e.xp6(1),e.Q6J("ngIf",!ve.hideCheckbox),e.xp6(1),e.Q6J("routerLink",ve.disableRouting?null:e.WLB(15,Y,Ve.voId,Ve.id)),e.xp6(1),e.Q6J("disabled",!Ve.expandable),e.uIk("aria-label","toggle "+Ve.name),e.xp6(1),e.Q6J("ngIf",Ve.expandable),e.xp6(2),e.uIk("data-cy",Ve.name),e.xp6(1),e.hij(" ",Ve.name," "),e.xp6(1),e.Q6J("ngIf",ve.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",Ve.description),e.xp6(1),e.hij(" ",Ve.description," "),e.xp6(2),e.Q6J("disabled","members"===Ve.fullName)("displayButtons",ve.displayButtons)("group",Ve)}}const de=function(Xe){return{height:Xe}};function ce(Xe,te){if(1&Xe&&(e.TgZ(0,"div",2),e.TgZ(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,ee,16,18,"ng-container",5),e.qZA(),e.qZA()),2&Xe){const Ve=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,de,Ve.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",Ve.dataSource)}}function Fe(Xe,te){1&Xe&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Xe&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Ue=(()=>{class Xe{constructor(Ve,ve,Oe){this.cd=Ve,this.dialog=ve,this.authResolver=Oe,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new _.C2(z=>z.level,z=>z.expandable),this.hasChild=(z,D)=>D.expandable,this.getLevel=z=>z.level,this.transformer=(z,D)=>({expandable:!!z.children&&z.children.length>0,name:z.shortName,fullName:z.name,parentGroupId:z.parentGroupId,level:D,id:z.id,voId:z.voId,attributes:z.attributes,beanName:z.beanName,description:z.description}),this.treeFlattener=new b.JZ(this.transformer,z=>z.level,z=>z.expandable,z=>z.children),this.dataSource=new b.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(Ve=>{var ve,Oe;return(null===(ve=Ve.name)||void 0===ve?void 0:ve.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(Oe=Ve.description)||void 0===Oe?void 0:Oe.toLowerCase().includes(this.filterValue.toLowerCase()))||Ve.id.toString().includes(this.filterValue.toLowerCase())||Ve.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const Ve of this.filteredGroups)Ve.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,A.oU)(Ve.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(Ve){const ve=(0,A.kZ)();ve.data={groupId:Ve.id,theme:this.theme},this.dialog.open(E.Bp,ve)}onChangeNameDescription(Ve){const ve=(0,A.kZ)();ve.data={theme:"group-theme",group:Ve,dialogType:E.Eg.GROUP},this.dialog.open(E.rd,ve).afterClosed().subscribe(z=>{z&&this.refreshTable.emit()})}createGroupTrees(Ve){const ve=new Map;for(const D of Ve)ve.set(D.id,new g(D));const Oe=new Set;ve.forEach((D,ge,Te)=>{const Ie=Te.get(D.parentGroupId);void 0!==Ie&&(Ie.addChild(D),Te.set(D.parentGroupId,Ie)),null!==D.parentGroupId&&void 0===Ie&&Oe.add(D.id)});const z=[];ve.forEach(D=>{(null===D.parentGroupId||Oe.has(D.id))&&z.push(D)}),this.dataSource.data=z,this.cd.detectChanges()}getParentNode(Ve){const ve=this.getLevel(Ve);if(ve<1)return null;for(let z=this.treeControl.dataNodes.indexOf(Ve)-1;z>=0;z--){const D=this.treeControl.dataNodes[z];if(this.getLevel(D)this.selection.isSelected(D));ve&&!z&&this.selection.deselect(Ve)}checkAllParentsSelection(Ve){let ve=this.getParentNode(Ve);for(;ve;)this.checkRootNodeSelection(ve),ve=this.getParentNode(ve);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(Ve){return this.treeControl.getDescendants(Ve).some(z=>this.selection.isSelected(z))&&!this.selection.isSelected(Ve)}itemSelectionToggle(Ve){this.selection.toggle(Ve);const ve=this.treeControl.getDescendants(Ve);this.selection.isSelected(Ve)?this.selection.select(...ve):this.selection.deselect(...ve),ve.every(Oe=>this.selection.isSelected(Oe)),this.checkAllParentsSelection(Ve)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(Ve,ve)=>Ve&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,ve]):(Ve,ve)=>Ve&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[ve]),!0)}onMoveGroup(Ve){this.moveGroup.emit(Ve)}getTreeViewHeight(){let Ve=0;this.scrollViewport&&(Ve=this.scrollViewport.getDataLength());let ve=48*Ve;return ve>672&&(ve=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(ve)+"px"}}return Xe.\u0275fac=function(Ve){return new(Ve||Xe)(e.Y36(e.sBO),e.Y36(R.uw),e.Y36(C.x4))},Xe.\u0275cmp=e.Xpm({type:Xe,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(Ve,ve){if(1&Ve&&e.Gf(De,5),2&Ve){let Oe;e.iGM(Oe=e.CRH())&&(ve.scrollViewport=Oe.first)}},hostBindings:function(Ve,ve){1&Ve&&e.NdJ("resize",function(z){return ve.shouldHideButtons(z)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(Ve,ve){1&Ve&&(e.YNc(0,ce,4,6,"div",0),e.YNc(1,Fe,3,3,"perun-web-apps-alert",1)),2&Ve&&(e.Q6J("ngIf",0!==ve.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===ve.filteredGroups.length))},directives:[I.O5,m.N7,m.xd,I.PC,m.x0,O.oG,P.yS,W.lW,ie.Hw,Ae.gM,q.i,Me.w],pipes:[he.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),Xe})()},52314:(Qe,be,p)=>{"use strict";p.d(be,{X:()=>P});var e=p(32105),b=p(32080),_=p(5e3),w=p(51062),g=p(69808),A=p(47423),E=p(92181),C=p(29772),R=p(25245);const I=function(W){return{color:W}};function m(W,ie){if(1&W&&(_.TgZ(0,"button",8),_.ALo(1,"translate"),_.TgZ(2,"mat-icon",4),_._uU(3," apps "),_.qZA(),_.qZA()),2&W){const Ae=_.oxw(),q=_.MAs(2);_.Q6J("matMenuTriggerFor",q)("matTooltip",_.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),_.xp6(2),_.Q6J("ngStyle",_.VKq(5,I,Ae.iconColor))}}function O(W,ie){if(1&W){const Ae=_.EpF();_.TgZ(0,"button",2),_.NdJ("click",function(){return _.CHM(Ae),_.oxw().onLogOut()}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&W&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"NAV.LOGOUT")," "))}let P=(()=>{class W{constructor(Ae,q,Me,he){this.authService=Ae,this.authzResolverService=q,this.notificator=Me,this.translateService=he}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return W.\u0275fac=function(Ae){return new(Ae||W)(_.Y36(b.e8),_.Y36(e.Ct),_.Y36(b.V6),_.Y36(w.sK))},W.\u0275cmp=_.Xpm({type:W,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(Ae,q){if(1&Ae&&(_.YNc(0,m,4,7,"button",0),_.TgZ(1,"mat-menu",null,1),_.TgZ(3,"button",2),_.NdJ("click",function(){return q.redirectToUrl()}),_.TgZ(4,"span"),_._uU(5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"button",3),_.TgZ(7,"mat-icon",4),_._uU(8," person "),_.qZA(),_.TgZ(9,"span",5),_._uU(10),_.qZA(),_.qZA(),_.TgZ(11,"mat-menu",null,6),_.YNc(13,O,3,3,"button",7),_.qZA()),2&Ae){const Me=_.MAs(12);_.Q6J("ngIf",q.url),_.xp6(5),_.Oqu(q.label),_.xp6(1),_.Q6J("matMenuTriggerFor",Me),_.xp6(1),_.Q6J("ngStyle",_.VKq(11,I,q.iconColor)),_.xp6(2),_.Q6J("ngStyle",_.VKq(13,I,q.textColor)),_.xp6(1),_.xDo(" ",q.user.titleBefore," ",q.user.firstName," ",q.user.middleName," ",q.user.lastName," ",q.user.titleAfter," "),_.xp6(3),_.Q6J("ngIf",q.logoutEnabled)}},directives:[g.O5,A.lW,E.p6,C.gM,R.Hw,g.PC,E.VK,E.OP],pipes:[w.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),W})()},7434:(Qe,be,p)=>{"use strict";p.d(be,{L:()=>I});var e=p(5e3),b=p(93075),_=p(67322),w=p(69808),g=p(98833),A=p(50301),E=p(51062);function C(m,O){if(1&m&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&m){const P=e.oxw();e.s9C("placeholder",e.lcZ(1,2,P.placeholder)),e.Q6J("formControl",P.formControl)}}function R(m,O){if(1&m&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&m){const P=e.oxw();e.s9C("placeholder",e.lcZ(1,2,P.placeholder)),e.Q6J("formControl",P.formControl)}}let I=(()=>{class m{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new b.NI}ngOnInit(){this.formControl.valueChanges.subscribe(P=>{let W=P.trim();W=W.toLowerCase(),this.filter.emit(W)})}}return m.\u0275fac=function(P){return new(P||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(P,W){1&P&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,C,2,4,"input",1),e.YNc(2,R,2,4,"input",2),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",W.autoFocus),e.xp6(1),e.Q6J("ngIf",!W.autoFocus))},directives:[_.KE,w.O5,g.Nt,b.Fj,A.hT,b.JJ,b.oH],pipes:[E.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),m})()},1903:(Qe,be,p)=>{"use strict";p.d(be,{m:()=>_e});var e=p(84847),b=p(9244),_=p(16074),w=p(32080),g=p(36787),A=p(22868),E=p(5e3),C=p(48966),R=p(10036),I=p(18750),m=p(69808),O=p(20773),P=p(32075),W=p(77446),ie=p(29772),Ae=p(25245),q=p(50301),Me=p(11735),he=p(98380);let De=(()=>{class ${transform(i){if("INDIRECT"===i.membershipType)return!0;const a=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return!!a&&!a.value}}return $.\u0275fac=function(i){return new(i||$)},$.\u0275pipe=E.Yjl({name:"memberListCheckboxDisabled",type:$,pure:!0}),$})();var T=p(51062);let N=(()=>{class ${constructor(i){this.translate=i}transform(i){if("INDIRECT"===i.membershipType)return this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT");const a=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return a?a.value?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE"):""}}return $.\u0275fac=function(i){return new(i||$)(E.Y36(T.sK,16))},$.\u0275pipe=E.Yjl({name:"memberCheckboxLabel",type:$,pure:!0}),$})();var j=p(31359),Y=p(69773),ee=p(12856),de=p(21757),ce=p(96974),Fe=p(20919),Ue=p(5865);function Xe($,V){1&$&&(E.TgZ(0,"div",22),E._UZ(1,"mat-spinner",23),E.qZA())}function te($,V){if(1&$){const i=E.EpF();E.TgZ(0,"th",24),E.TgZ(1,"mat-checkbox",25),E.NdJ("change",function(d){E.CHM(i);const l=E.oxw();return d?l.masterToggle():null}),E.qZA(),E.qZA()}if(2&$){const i=E.oxw();E.xp6(1),E.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function Ve($,V){if(1&$){const i=E.EpF();E.TgZ(0,"td",26),E.TgZ(1,"mat-checkbox",27),E.NdJ("change",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return d?r.selection.toggle(s):null})("click",function(d){return d.stopPropagation()}),E.ALo(2,"lowercase"),E.ALo(3,"memberListCheckboxDisabled"),E.ALo(4,"memberCheckboxLabel"),E.qZA(),E.qZA()}if(2&$){const i=V.$implicit,a=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,5,i.user.firstName),"-checkbox"),E.Q6J("aria-label",a.checkboxLabel(i))("checked",a.selection.isSelected(i))("disabled",E.lcZ(3,7,i))("matTooltip",E.lcZ(4,9,i))}}function ve($,V){1&$&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ID")))}function Oe($,V){if(1&$&&(E.TgZ(0,"td",29),E._uU(1),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Oqu(i.id)}}function z($,V){1&$&&E._UZ(0,"th",28)}function D($,V){if(1&$){const i=E.EpF();E.TgZ(0,"mat-icon",32),E.NdJ("click",function(d){E.CHM(i);const l=E.oxw().$implicit;return E.oxw().viewMemberGroupTree(d,l)}),E.ALo(1,"translate"),E._uU(2,"transfer_within_a_station"),E.qZA()}2&$&&E.Q6J("matTooltip",E.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function ge($,V){if(1&$&&(E.TgZ(0,"td",30),E.YNc(1,D,3,3,"mat-icon",31),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Q6J("ngIf","DIRECT"!==i.membershipType)}}function Te($,V){1&$&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Ie($,V){if(1&$&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i.user))}}function fe($,V){1&$&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Se($,V){if(1&$){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit;return E.oxw().changeStatus(d,s)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&$){const i=V.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.status),""),E.s9C("matTooltip",E.xi3(3,7,i,!1)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.status)," ")}}function Ke($,V){1&$&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Je($,V){if(1&$){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return r.changeStatus(d,s,r.groupId)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&$){const i=V.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.groupStatus),""),E.s9C("matTooltip",E.xi3(3,7,i,!0)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.groupStatus)," ")}}function nt($,V){1&$&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function je($,V){if(1&$&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberOrganization"),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function Q($,V){1&$&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function Ce($,V){if(1&$&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberEmail"),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function re($,V){1&$&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function k($,V){if(1&$&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberLogins"),E.qZA()),2&$){const i=V.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function pe($,V){1&$&&E._UZ(0,"tr",35)}const Z=function($,V){return["/organizations",$,"members",V]};function Ne($,V){if(1&$&&E._UZ(0,"tr",36),2&$){const i=V.$implicit,a=E.oxw();E.ekj("cursor-pointer",a.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!a.dataSource.routeAuth),E.Q6J("perunWebAppsMiddleClickRouterLink",a.dataSource.routeAuth?E.WLB(8,Z,i.voId,i.id):null)("routerLink",a.dataSource.routeAuth?E.WLB(11,Z,i.voId,i.id):null)}}function oe($,V){1&$&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&$&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let _e=(()=>{class ${constructor(i,a,d,l,s){this.dialog=i,this.authResolver=a,this.tableCheckbox=d,this.tableConfigService=l,this.dynamicPaginatingService=s,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=b.f7,this.canBeSelected=r=>"INDIRECT"!==r.membershipType}static getExportDataForColumn(i,a){switch(a){case"id":return i.id.toString();case"fullName":return i.user?(0,b.bD)(i.user):"";case"status":return i.status;case"groupStatus":return i.groupStatus;case"organization":return(0,b.Gw)(i);case"email":return(0,b.g$)(i);case"logins":return(0,b.lt)(i);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(i=>{this.canBeSelected(i)&&this.selection.select(i)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(d=>this.canBeSelected(d)).length}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(i,a,d){i.stopPropagation();const l=(0,b.kZ)();l.width="500px",l.data={member:a,voId:this.voId,groupId:d};const s=d?a.groupStatus:a.status;this.dialog.open(_.pf,l).afterClosed().subscribe(t=>{if(t){const n=d?t.groupStatus:t.status;"VALID"===s&&("EXPIRED"===n||"DISABLED"===n)||"VALID"===n?(d?a.groupStatus=n:a.status=n,this.changeExpiration(a,d)):this.loadMembersPage()}})}changeExpiration(i,a){const d=i.memberAttributes.find(a?r=>"groupMembershipExpiration"===r.friendlyName:r=>"membershipExpiration"===r.friendlyName),l=(0,b.kZ)();let s;l.width="400px",l.data={voId:this.voId,groupId:a,memberId:i.id,expirationAttr:d,status:a?i.groupStatus:i.status,statusChanged:!0},s=this.dialog.open(a?_.u3:_.kZ,l),s.afterClosed().subscribe(()=>{this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportData(i){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,$.getExportDataForColumn),i)}viewMemberGroupTree(i,a){i.stopPropagation();const d=(0,b.kZ)();d.width="800px",d.data={member:a,groupId:this.groupId},this.dialog.open(_.jd,d)}}return $.\u0275fac=function(i){return new(i||$)(E.Y36(C.uw),E.Y36(w.x4),E.Y36(w.UA),E.Y36(R.dB),E.Y36(w.ly))},$.\u0275cmp=E.Xpm({type:$,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(i,a){if(1&i&&(E.Gf(b.l9,7),E.Gf(e.YE,5)),2&i){let d;E.iGM(d=E.CRH())&&(a.child=d.first),E.iGM(d=E.CRH())&&(a.sort=d.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[E.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(i,a){1&i&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(l){return a.exportData(l)}),E.YNc(3,Xe,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,te,2,3,"th",5),E.YNc(8,Ve,5,11,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,ve,3,3,"th",8),E.YNc(11,Oe,2,1,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,z,1,0,"th",8),E.YNc(14,ge,2,1,"td",11),E.BQk(),E.ynx(15,12),E.YNc(16,Te,3,3,"th",8),E.YNc(17,Ie,3,3,"td",11),E.BQk(),E.ynx(18,13),E.YNc(19,fe,3,3,"th",14),E.YNc(20,Se,7,12,"td",11),E.BQk(),E.ynx(21,15),E.YNc(22,Ke,3,3,"th",14),E.YNc(23,Je,7,12,"td",11),E.BQk(),E.ynx(24,16),E.YNc(25,nt,3,3,"th",14),E.YNc(26,je,3,3,"td",11),E.BQk(),E.ynx(27,17),E.YNc(28,Q,3,3,"th",14),E.YNc(29,Ce,3,3,"td",11),E.BQk(),E.ynx(30,18),E.YNc(31,re,3,3,"th",14),E.YNc(32,k,3,3,"td",11),E.BQk(),E.YNc(33,pe,1,0,"tr",19),E.YNc(34,Ne,1,14,"tr",20),E.qZA(),E.qZA(),E.qZA(),E.YNc(35,oe,3,3,"perun-web-apps-alert",21),E.ALo(36,"async")),2&i&&(E.Q6J("hidden",0===a.dataSource.allObjectCount&&!1===E.lcZ(1,9,a.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",a.tableId)("dataLength",a.dataSource.allObjectCount)("pageSizeOptions",a.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,a.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",a.dataSource),E.xp6(28),E.Q6J("matHeaderRowDef",a.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",a.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===a.dataSource.allObjectCount&&!1===E.lcZ(36,13,a.dataSource.loading$)))},directives:[I.l,m.O5,O.$g,P.BZ,e.YE,P.w1,P.fO,P.ge,W.oG,P.Dz,P.ev,ie.gM,e.nU,Ae.Hw,P.as,P.XQ,P.nj,P.Gk,q.YH,Me.rH,he.w],pipes:[m.Ov,m.i8,De,N,T.X$,j.d,Y.u,ee.i,de.f,ce.M,Fe.D,Ue.p],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),$})()},38383:(Qe,be,p)=>{"use strict";p.d(be,{O:()=>V});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(16074),E=p(32080),C=p(48966),R=p(11735),I=p(18750),m=p(77446),O=p(29772),P=p(69808),W=p(25245),ie=p(50301),Ae=p(98380),q=p(51062),Me=p(31359),he=p(69773),De=p(12856),T=p(21757),N=p(96974),j=p(20919),Y=p(5865);function ee(i,a){if(1&i){const d=e.EpF();e.TgZ(0,"th",26),e.TgZ(1,"mat-checkbox",27),e.NdJ("change",function(s){e.CHM(d);const r=e.oxw();return s?r.masterToggle():null}),e.qZA(),e.qZA()}if(2&i){const d=e.oxw();e.xp6(1),e.Q6J("aria-label",d.checkboxLabel())("checked",d.selection.hasValue()&&d.isAllSelected())("indeterminate",d.selection.hasValue()&&!d.isAllSelected())}}function de(i,a){if(1&i){const d=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"mat-checkbox",29),e.NdJ("change",function(s){const t=e.CHM(d).$implicit,n=e.oxw();return s?n.selection.toggle(t):null})("click",function(s){return s.stopPropagation()}),e.ALo(2,"translate"),e.qZA(),e.qZA()}if(2&i){const d=a.$implicit,l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel(d))("checked",l.selection.isSelected(d))("disabled","DIRECT"!==d.membershipType)("matTooltip","DIRECT"!==d.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function ce(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Fe(i,a){if(1&i&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(d.id)}}function Ue(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function Xe(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(d.voId)}}function te(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function Ve(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(d.userId)}}function ve(i,a){1&i&&e._UZ(0,"th",30)}function Oe(i,a){if(1&i){const d=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(d);const s=e.oxw().$implicit;return e.oxw().viewMemberGroupTree(s)})("mouseenter",function(){return e.CHM(d),e.oxw(2).disableRouting=!0})("mouseleave",function(){e.CHM(d);const s=e.oxw(2);return s.disableRouting=s.disabledRouting}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&i&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function z(i,a){if(1&i&&(e.TgZ(0,"td",32),e.YNc(1,Oe,3,3,"mat-icon",33),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function D(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function ge(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function Te(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Ie(i,a){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=a.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.status),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function fe(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Se(i,a){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=a.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function Ke(i,a){1&i&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Je(i,a){1&i&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function nt(i,a){if(1&i&&(e.TgZ(0,"td",37),e.YNc(1,Je,2,0,"mat-icon",38),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function je(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function Q(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function Ce(i,a){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function re(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function k(i,a){1&i&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function pe(i,a){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&i){const d=a.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function Z(i,a){1&i&&e._UZ(0,"tr",40)}const Ne=function(i,a){return["/organizations",i,"members",a]};function oe(i,a){if(1&i&&e._UZ(0,"tr",41),2&i){const d=a.$implicit,l=e.oxw();e.ekj("cursor-pointer",!l.disabledRouting)("disable-outline",l.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting?null:e.WLB(6,Ne,d.voId,d.id))("routerLink",l.disableRouting?null:e.WLB(9,Ne,d.voId,d.id))}}function _e(i,a){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function $(i,a){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let V=(()=>{class i{constructor(d,l,s,r){this.dialog=d,this.authResolver=l,this.tableCheckbox=s,this.route=r,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(t,n)=>i.getExportDataForColumn(t,n,this.showGroupStatuses),this.getSortDataForColumnFun=(t,n)=>i.getSortDataForColumn(t,n,this.showGroupStatuses),this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,l){switch(l){case"fullName":return d.user?(0,g.bD)(d.user):"";case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getExportDataForColumn(d,l,s){switch(l){case"id":return d.id.toString();case"fullName":return d.user?(0,g.bD)(d.user):"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getSortDataForColumn(d,l,s){var r;switch(l){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:null!==(r=d.user.firstName)&&void 0!==r?r:"":"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);default:return""}}exportData(d){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,l)=>(0,g.Sd)(d,l,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(d,l)=>(0,g.pR)(d,l,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){var d;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(d=this.route.parent)||void 0===d||d.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(d){return d?`${this.selection.isSelected(d)?"deselect":"select"} row ${d.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(d,l){if(d.stopPropagation(),!this.disableStatusChange){const s=(0,g.kZ)();s.width="500px",s.data={member:l,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(A.pf,s).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const l=(0,g.kZ)();l.width="800px",l.data={member:d,groupId:this.groupId},this.dialog.open(A.jd,l)}}return i.\u0275fac=function(d){return new(d||i)(e.Y36(C.uw),e.Y36(E.x4),e.Y36(E.UA),e.Y36(R.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,l){if(1&d&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&d){let s;e.iGM(s=e.CRH())&&(l.child=s.first),e.iGM(s=e.CRH())&&(l.matSort=s.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,l){1&d&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(r){return l.exportData(r)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ee,2,3,"th",4),e.YNc(5,de,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,ce,3,3,"th",7),e.YNc(8,Fe,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ue,3,3,"th",7),e.YNc(11,Xe,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,te,3,3,"th",7),e.YNc(14,Ve,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,ve,1,0,"th",7),e.YNc(17,z,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,D,3,3,"th",7),e.YNc(20,ge,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,Te,3,3,"th",7),e.YNc(23,Ie,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,fe,3,3,"th",7),e.YNc(26,Se,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,Ke,3,3,"th",17),e.YNc(29,nt,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,je,3,3,"th",7),e.YNc(32,Q,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,Ce,3,3,"th",7),e.YNc(35,re,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,k,3,3,"th",22),e.YNc(38,pe,3,3,"td",10),e.BQk(),e.YNc(39,Z,1,0,"tr",23),e.YNc(40,oe,1,12,"tr",24),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,_e,3,3,"perun-web-apps-alert",25),e.YNc(42,$,3,3,"perun-web-apps-alert",25)),2&d&&(e.Q6J("hidden",0===l.members.length||!l.dataSource||0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",l.dataSource.filteredData.length)("tableId",l.tableId)("pageSizeOptions",l.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",l.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",l.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",l.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==l.members.length&&0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===l.members.length))},directives:[I.l,_.BZ,b.YE,_.w1,_.fO,_.ge,m.oG,_.Dz,_.ev,O.gM,b.nU,P.O5,W.Hw,_.as,_.XQ,_.nj,_.Gk,ie.YH,R.rH,Ae.w],pipes:[q.X$,Me.d,he.u,De.i,T.f,N.M,j.D,Y.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),i})()},22465:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>m});var e=p(5e3),b=p(32080),_=p(9244),w=p(16074),g=p(48966),A=p(69808),E=p(25245),C=p(51062);function R(O,P){if(1&O&&(e.TgZ(0,"div",5),e.TgZ(1,"mat-icon"),e._uU(2),e.qZA(),e.qZA()),2&O){const W=e.oxw();e.xp6(2),e.Oqu(W.data.icon)}}function I(O,P){if(1&O&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&O){const W=e.oxw();e.xp6(1),e.hij(" ",W.showTimestamp()," ")}}let m=(()=>{class O{constructor(W,ie){this.dialog=W,this.notificationStorageService=ie,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const W=(0,_.kZ)();W.width="550px",W.data=this.data,W.autoFocus=!1,this.dialog.open(w.FM,W).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,_.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[W,ie]=this.data.timeStamp.split(":");return ie.length<2?W+":0"+ie:this.data.timeStamp}}return O.\u0275fac=function(W){return new(W||O)(e.Y36(g.uw),e.Y36(b.SZ))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(W,ie){1&W&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.NdJ("click",function(){return ie.alreadyClosed||ie.waiting?"":ie.closeSelf()}),e.YNc(2,R,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,I,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ie.waiting=!0,ie.doAction()}),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&W&&(e.Gre("notification ",ie.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ie.data.type)("success","success"===ie.data.type),e.xp6(2),e.Q6J("ngIf",null!==ie.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ie.data.title)," "),e.xp6(2),e.Q6J("ngIf",ie.inDialog),e.xp6(1),e.Q6J("hidden",ie.alreadyPressed),e.xp6(1),e.hij(" ",ie.data.actionText," "))},directives:[A.O5,E.Hw],pipes:[C.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),O})()},41619:(Qe,be,p)=>{"use strict";p.d(be,{$:()=>ve});var e=p(32080),b=p(32105),_=p(5e3),w=p(48966),g=p(51062),A=p(67322),E=p(98833),C=p(93075),R=p(69808),I=p(47423);function m(Oe,z){1&Oe&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Oe&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let O=(()=>{class Oe{constructor(D,ge,Te,Ie,fe){this.dialogRef=D,this.translate=ge,this.notificator=Te,this.rtMessages=Ie,this.storeService=fe,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(D=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(D.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return Oe.\u0275fac=function(D){return new(D||Oe)(_.Y36(w.so),_.Y36(g.sK),_.Y36(e.V6),_.Y36(b.Hr),_.Y36(e.d6))},Oe.\u0275cmp=_.Xpm({type:Oe,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(D,ge){if(1&D&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_.TgZ(4,"mat-form-field"),_.TgZ(5,"mat-label"),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"input",2,3),_.NdJ("ngModelChange",function(Ie){return ge.subject=Ie}),_.qZA(),_.YNc(10,m,3,3,"mat-error",4),_.qZA(),_.TgZ(11,"mat-form-field"),_.TgZ(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"textarea",5),_.NdJ("ngModelChange",function(Ie){return ge.message=Ie}),_.ALo(16,"translate"),_._uU(17," "),_.qZA(),_.TgZ(18,"mat-hint"),_._uU(19),_.ALo(20,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",6),_.TgZ(22,"div",7),_.TgZ(23,"button",8),_.NdJ("click",function(){return ge.close()}),_._uU(24),_.ALo(25,"translate"),_.qZA(),_.TgZ(26,"button",9),_.NdJ("click",function(){return ge.sendBugReport()}),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.qZA(),_.qZA()),2&D){const Te=_.MAs(9);_.xp6(1),_.Oqu(_.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),_.xp6(5),_.Oqu(_.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),_.xp6(2),_.Q6J("ngModel",ge.subject),_.xp6(2),_.Q6J("ngIf",Te.invalid),_.xp6(3),_.Oqu(_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",ge.message),_.xp6(4),_.Oqu(_.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),_.xp6(5),_.hij(" ",_.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),_.xp6(2),_.Q6J("disabled",Te.invalid),_.xp6(1),_.hij(" ",_.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[w.uh,w.xY,A.KE,A.hX,E.Nt,C.Fj,C.Q7,C.JJ,C.On,R.O5,A.TO,A.bx,w.H8,I.lW],pipes:[g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Oe})();var P=p(9244);let W=(()=>{class Oe{transform(D,ge,Te){return D[`${Te}_${ge}`]}}return Oe.\u0275fac=function(D){return new(D||Oe)},Oe.\u0275pipe=_.Yjl({name:"localisedText",type:Oe,pure:!0}),Oe})(),ie=(()=>{class Oe{transform(D,ge){return D["link_"+ge]||D.link_en}}return Oe.\u0275fac=function(D){return new(D||Oe)},Oe.\u0275pipe=_.Yjl({name:"localisedLink",type:Oe,pure:!0}),Oe})(),Ae=(()=>{class Oe{transform(D){return D.includes("/")?D:"/assets/config/"+D}}return Oe.\u0275fac=function(D){return new(D||Oe)},Oe.\u0275pipe=_.Yjl({name:"footerLogoPath",type:Oe,pure:!0}),Oe})();function q(Oe,z){if(1&Oe&&(_.TgZ(0,"a",13),_.ALo(1,"localisedLink"),_._UZ(2,"img",14),_.ALo(3,"footerLogoPath"),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw(3);_.Q6J("href",_.xi3(1,2,D,ge.language),_.LSH),_.xp6(2),_.s9C("src",_.lcZ(3,5,D.logo),_.LSH)}}function Me(Oe,z){if(1&Oe&&(_.TgZ(0,"span"),_._UZ(1,"img",14),_.ALo(2,"footerLogoPath"),_.qZA()),2&Oe){const D=_.oxw().$implicit;_.xp6(1),_.s9C("src",_.lcZ(2,1,D.logo),_.LSH)}}function he(Oe,z){if(1&Oe&&(_.TgZ(0,"div"),_.YNc(1,q,4,7,"a",11),_.ALo(2,"localisedLink"),_.YNc(3,Me,3,3,"span",12),_.ALo(4,"localisedLink"),_.qZA()),2&Oe){const D=z.$implicit,ge=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_.xi3(2,2,D,ge.language)),_.xp6(2),_.Q6J("ngIf",!_.xi3(4,5,D,ge.language))}}const De=function(Oe){return{"min-height":Oe}};function T(Oe,z){if(1&Oe&&(_.TgZ(0,"div",10),_.YNc(1,he,5,8,"div",5),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw();_.Q6J("ngStyle",_.VKq(2,De,ge.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",D.elements)}}const N=function(Oe){return{color:Oe}};function j(Oe,z){if(1&Oe&&(_.TgZ(0,"i",20),_._uU(1),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw(3);_.Q6J("ngStyle",_.VKq(2,N,ge.linksTextColor)),_.xp6(1),_.hij(" ",D.icon," ")}}function Y(Oe,z){if(1&Oe){const D=_.EpF();_.TgZ(0,"span",21),_.NdJ("click",function(){_.CHM(D);const Te=_.oxw().$implicit;return _.oxw(3).openDialog(Te.dialog)}),_._uU(1),_.ALo(2,"localisedText"),_.qZA()}if(2&Oe){const D=_.oxw().$implicit,ge=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,N,ge.linksTextColor)),_.xp6(1),_.hij("",_.Dn7(2,2,D,ge.language,"label")," ")}}function ee(Oe,z){if(1&Oe&&(_.TgZ(0,"a",22),_.ALo(1,"localisedLink"),_._uU(2),_.ALo(3,"localisedText"),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw(3);_.Q6J("href",_.xi3(1,3,D,ge.language),_.LSH)("ngStyle",_.VKq(10,N,ge.linksTextColor)),_.xp6(2),_.Oqu(_.Dn7(3,6,D,ge.language,"label"))}}function de(Oe,z){if(1&Oe&&(_.TgZ(0,"span",10),_._uU(1),_.ALo(2,"localisedText"),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,N,ge.linksTextColor)),_.xp6(1),_.Oqu(_.Dn7(2,2,D,ge.language,"label"))}}function ce(Oe,z){if(1&Oe&&(_.TgZ(0,"div",16),_.YNc(1,j,2,4,"i",17),_.YNc(2,Y,3,8,"span",18),_.YNc(3,ee,4,12,"a",19),_.ALo(4,"localisedLink"),_.YNc(5,de,3,8,"span",9),_.ALo(6,"localisedLink"),_.qZA()),2&Oe){const D=z.$implicit,ge=_.oxw(3);_.xp6(1),_.Q6J("ngIf",D.icon),_.xp6(1),_.Q6J("ngIf",D.dialog),_.xp6(1),_.Q6J("ngIf",_.xi3(4,4,D,ge.language)&&!D.dialog),_.xp6(2),_.Q6J("ngIf",!_.xi3(6,7,D,ge.language)&&!D.dialog)}}const Fe=function(Oe){return{height:Oe}};function Ue(Oe,z){if(1&Oe&&(_.TgZ(0,"div",10),_.YNc(1,ce,7,10,"div",15),_.qZA()),2&Oe){const D=_.oxw().$implicit,ge=_.oxw();_.Q6J("ngStyle",_.VKq(2,Fe,ge.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",D.elements)}}function Xe(Oe,z){if(1&Oe&&(_.TgZ(0,"div",7),_.TgZ(1,"h6",8),_._uU(2),_.ALo(3,"localisedText"),_.qZA(),_.YNc(4,T,2,4,"div",9),_.YNc(5,Ue,2,4,"div",9),_.qZA()),2&Oe){const D=z.$implicit,ge=_.oxw();_.ekj("my-auto",ge.containsLogos),_.xp6(1),_.Q6J("ngStyle",_.VKq(10,N,ge.headersTextColor)),_.xp6(1),_.hij(" ",_.Dn7(3,6,D,ge.language,"title")," "),_.xp6(2),_.Q6J("ngIf",D.logos),_.xp6(1),_.Q6J("ngIf",D.elements&&!D.logos)}}function te(Oe,z){if(1&Oe&&(_.TgZ(0,"span"),_.TgZ(1,"a",6),_._uU(2),_.qZA(),_.qZA()),2&Oe){const D=z.$implicit,ge=z.index,Te=_.oxw();_.xp6(1),_.Q6J("href",D.url,_.LSH)("ngStyle",_.VKq(3,N,Te.copyrightTextColor)),_.xp6(1),_.Oqu(ge?", "+D.name:D.name)}}const Ve=function(Oe){return{background:Oe}};let ve=(()=>{class Oe{constructor(D,ge,Te){this.storeService=D,this.translateService=ge,this.dialog=Te,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(D=>{this.language=D.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const D of this.footerColumns)D.logos?this.containsLogos=!0:25*D.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*D.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(D){const ge=(0,P.kZ)();"reportIssue"===D&&(ge.width="550px",this.dialog.open(O,ge))}}return Oe.\u0275fac=function(D){return new(D||Oe)(_.Y36(e.d6),_.Y36(g.sK),_.Y36(w.uw))},Oe.\u0275cmp=_.Xpm({type:Oe,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(D,ge){1&D&&(_.TgZ(0,"footer",0),_.TgZ(1,"div",1),_.YNc(2,Xe,6,12,"div",2),_.qZA(),_._UZ(3,"hr",3),_.TgZ(4,"div",4),_._uU(5),_.YNc(6,te,3,5,"span",5),_._uU(7," Version "),_.TgZ(8,"a",6),_._uU(9),_.qZA(),_.qZA(),_.qZA()),2&D&&(_.Q6J("ngStyle",_.VKq(8,Ve,ge.bgColor)),_.xp6(2),_.Q6J("ngForOf",ge.footerColumns),_.xp6(2),_.Q6J("ngStyle",_.VKq(10,N,ge.copyrightTextColor)),_.xp6(1),_.hij(" \xa9 ",ge.currentYear," Copyright: "),_.xp6(1),_.Q6J("ngForOf",ge.copyrightItems),_.xp6(2),_.Q6J("href",ge.githubRepository,_.LSH)("ngStyle",_.VKq(12,N,ge.copyrightTextColor)),_.xp6(1),_.Oqu(ge.version))},directives:[R.PC,R.sg,R.O5],pipes:[W,ie,Ae],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),Oe})()},10441:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>E});var e=p(5e3),b=p(69808),_=p(25245),w=p(29772),g=p(51062);function A(C,R){1&C&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&C&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let E=(()=>{class C{constructor(){this.recentIds=[]}}return C.\u0275fac=function(I){return new(I||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(I,m){1&I&&e.YNc(0,A,3,3,"mat-icon",0),2&I&&e.Q6J("ngIf",m.recentIds.indexOf(m.id)>-1)},directives:[b.O5,_.Hw,w.gM],pipes:[g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),C})()},96214:(Qe,be,p)=>{"use strict";p.d(be,{t:()=>A});var e=p(5e3),b=p(47423),_=p(29772),w=p(25245),g=p(51062);let A=(()=>{class E{constructor(){this.refresh=new e.vpe}onClickbutton(R){this.refresh.emit(R)}}return E.\u0275fac=function(R){return new(R||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(R,I){1&R&&(e.TgZ(0,"button",0),e.NdJ("click",function(O){return I.onClickbutton(O)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&R&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",I.disabled),e.xp6(2),e.s9C("svgIcon",I.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[b.lW,_.gM,w.Hw],pipes:[g.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),E})()},45703:(Qe,be,p)=>{"use strict";p.d(be,{L:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=C=>C.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,R){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return R.resourceSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",R.resource)("entities",R.resources)("displayStatus",R.displayStatus)("searchFunction",R.nameFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},62109:(Qe,be,p)=>{"use strict";p.d(be,{C:()=>pe});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(32080),E=p(18750),C=p(77446),R=p(29772),I=p(10441),m=p(69808),O=p(25245),P=p(8223),W=p(50301),ie=p(11735),Ae=p(98380),q=p(51062);let Me=(()=>{class Z{transform(oe){if(null==oe)return null;let $="";return oe.forEach(function(V){$=$.concat(V.tagName)}),$}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:Z,pure:!0}),Z})();var he=p(82895);function De(Z,Ne){if(1&Z){const oe=e.EpF();e.TgZ(0,"th",24),e.TgZ(1,"mat-checkbox",25),e.NdJ("change",function($){e.CHM(oe);const V=e.oxw();return $?V.masterToggle():null}),e.qZA(),e.qZA()}if(2&Z){const oe=e.oxw();e.xp6(1),e.Q6J("aria-label",oe.checkboxLabel())("checked",oe.selection.hasValue()&&oe.isAllSelected())("indeterminate",oe.selection.hasValue()&&!oe.isAllSelected())}}function T(Z,Ne){if(1&Z){const oe=e.EpF();e.TgZ(0,"td",26),e.TgZ(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function($){const i=e.CHM(oe).$implicit,a=e.oxw();return $?a.itemSelectionToggle(i):null})("click",function($){return $.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&Z){const oe=Ne.$implicit,_e=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!_e.disableSelect(oe)),e.xp6(2),e.Q2q("data-cy","",oe.name,"-checkbox"),e.Q6J("aria-label",_e.checkboxLabel(oe))("checked",_e.selection.isSelected(oe))("disabled",_e.disableSelect(oe))}}function N(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function j(Z,Ne){if(1&Z&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.id)}}function Y(Z,Ne){1&Z&&e._UZ(0,"th",31)}function ee(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&Z){const oe=Ne.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("recentIds",_e.recentIds)("id",oe.id)}}function de(Z,Ne){1&Z&&e._UZ(0,"th",31)}function ce(Z,Ne){1&Z&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&Z&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Fe(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e.YNc(1,ce,3,3,"mat-icon",34),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Q6J("ngIf",oe.sourceGroupId)}}function Ue(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function Xe(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.name)}}function te(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function Ve(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.vo.name)}}function ve(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function Oe(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.voId)}}function z(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function D(Z,Ne){if(1&Z){const oe=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){return e.CHM(oe),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(oe);const $=e.oxw();return $.disabledRouting=$.disableRouting})("statusChange",function(){return e.CHM(oe),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&Z){const oe=Ne.$implicit,_e=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",oe.id)("groupId",_e.groupId)("failureCause",oe.failureCause)("status",oe.status)}}function ge(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function Te(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.facility.name)}}function Ie(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function fe(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.facilityId)}}function Se(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Ke(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,oe.resourceTags)," ")}}function Je(Z,Ne){1&Z&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function nt(Z,Ne){if(1&Z&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&Z){const oe=Ne.$implicit;e.xp6(1),e.Oqu(oe.description)}}function je(Z,Ne){1&Z&&e._UZ(0,"tr",37)}const Q=function(Z){return[Z]};function Ce(Z,Ne){if(1&Z&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&Z){const oe=Ne.$implicit,_e=e.oxw();e.ekj("cursor-pointer",!_e.disableRouting)("disable-outline",_e.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,Q,_e.disabledRouting?null:e.xi3(1,6,oe,_e.routingVo)))("routerLink",_e.disabledRouting?null:e.xi3(2,9,oe,_e.routingVo))}}function re(Z,Ne){1&Z&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function k(Z,Ne){1&Z&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Z&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let pe=(()=>{class Z{constructor(oe,_e){this.guiAuthResolver=oe,this.tableCheckbox=_e,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=($,V)=>Z.getDataForColumn($,V,this.recentIds),this.canBeSelected=$=>!this.disableSelect($)}set matSort(oe){this.sort=oe}static getDataForColumn(oe,_e,$){switch(_e){case"id":return oe.id.toString();case"vo":return oe.vo.name;case"name":return oe.name;case"facility":return oe.facility.name;case"description":return oe.description;case"recent":return $&&$.includes(oe.id)?"#".repeat($.indexOf(oe.id)):oe.name;case"tags":{if(!oe.resourceTags)return oe[_e];let i="";return oe.resourceTags.forEach(function(a){i=i.concat(a.tagName)}),i}case"status":return oe.status;case"uuid":return oe.uuid;default:return oe[_e]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(oe=>"id"!==oe)),this.setDataSource(),this.setAuth()}exportData(oe){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),oe)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(oe,_e)=>(0,g.Sd)(oe,_e,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(oe,_e)=>(0,g.pR)(oe,_e,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const oe=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(oe),oe}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(oe){return oe?`${this.selection.isSelected(oe)?"deselect":"select"} row ${oe.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const oe=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((_e,$)=>_e&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",oe.concat([$])),!0),this.addAuth=this.selection.selected.reduce((_e,$)=>_e&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",oe.concat([$])),!0)}itemSelectionToggle(oe){this.selection.toggle(oe),this.setAuth()}disableSelect(oe){return this.resourcesToDisableCheckbox.has(oe.id)}}return Z.\u0275fac=function(oe){return new(oe||Z)(e.Y36(A.x4),e.Y36(A.UA))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(oe,_e){if(1&oe&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&oe){let $;e.iGM($=e.CRH())&&(_e.child=$.first),e.iGM($=e.CRH())&&(_e.matSort=$.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(oe,_e){1&oe&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(V){return _e.exportData(V)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,De,2,3,"th",4),e.YNc(5,T,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,N,3,3,"th",7),e.YNc(8,j,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Y,1,0,"th",10),e.YNc(11,ee,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,de,1,0,"th",10),e.YNc(14,Fe,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Ue,3,3,"th",7),e.YNc(17,Xe,2,1,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,te,3,3,"th",7),e.YNc(20,Ve,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,ve,3,3,"th",7),e.YNc(23,Oe,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,z,3,3,"th",7),e.YNc(26,D,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,ge,3,3,"th",7),e.YNc(29,Te,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,Ie,3,3,"th",7),e.YNc(32,fe,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,Se,3,3,"th",7),e.YNc(35,Ke,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Je,3,3,"th",7),e.YNc(38,nt,2,1,"td",11),e.BQk(),e.YNc(39,je,1,0,"tr",21),e.YNc(40,Ce,3,14,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,re,3,3,"perun-web-apps-alert",23),e.YNc(42,k,3,3,"perun-web-apps-alert",23)),2&oe&&(e.Q6J("hidden",0===_e.dataSource.filteredData.length||0===_e.resources.length),e.xp6(1),e.Q6J("dataLength",_e.dataSource.filteredData.length)("tableId",_e.tableId)("pageSizeOptions",_e.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",_e.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",_e.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",_e.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===_e.dataSource.filteredData.length&&0!==_e.resources.length),e.xp6(1),e.Q6J("ngIf",0===_e.resources.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,R.gM,b.nU,I.W,m.O5,O.Hw,P.x,_.as,_.XQ,_.nj,_.Gk,W.YH,ie.rH,Ae.w],pipes:[q.X$,Me,he.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),Z})()},52170:(Qe,be,p)=>{"use strict";p.d(be,{qG:()=>g,$x:()=>A});var e=p(5e3),b=p(51062),_=p(42377);class w{constructor(C,R){this.value=R,this.displayName=C}}var g=(()=>{return(E=g||(g={}))[E.SOURCE=0]="SOURCE",E[E.DESTINATION=1]="DESTINATION",E[E.FEDERATION=2]="FEDERATION",g;var E})();let A=(()=>{class E{constructor(R){this.translateService=R,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=I=>I.displayName,this.shortNameFunction=()=>null,this.searchFunction=I=>I.displayName}static getDefinition(R){const I=R.namespace.split(":");return null===I[4]?"null":I[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{const I=new w(R,"");this.items.push(I),this.item=I});for(const R of this.attributes){const I=new w(R.friendlyName+" ("+R.entity+" / "+E.getDefinition(R)+")",R.namespace+":"+R.friendlyName);I.value===this.selectedAttribute&&(this.item=I),("user"===R.entity.toLowerCase()||"member"===R.entity.toLowerCase()||"vo"===R.entity.toLowerCase()&&this.type===g.SOURCE||"group"===R.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(I)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(R=>{this.items.push(new w(R,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(I=>{this.items.push(new w(I,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const R of this.items)if(R.value===this.selectedAttribute)return void(this.item=R);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(R){R.sort((I,m)=>""===I.value?-1:""===m.value?1:I.displayName.localeCompare(m.displayName))}}return E.\u0275fac=function(R){return new(R||E)(e.Y36(b.sK))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(R,I){1&R&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(O){return I.itemSelected.emit(O)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&R&&e.Q6J("entities",I.items)("entity",I.item)("searchFunction",I.searchFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[_.i],pipes:[b.X$],styles:[""]}),E})()},30540:(Qe,be,p)=>{"use strict";p.d(be,{J:()=>w});var e=p(5e3),b=p(42377),_=p(51062);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>"",this.searchFunction=E=>E.name}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(E,C){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(I){return C.serviceSelected.emit(I)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",C.service)("entities",C.services)("multiple",C.multiple)("disableAutoSelect",C.disableAutoSelect)("searchFunction",C.searchFunction)("mainTextFunction",C.nameFunction)("secondaryTextFunction",C.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",C.theme)},directives:[b.i],pipes:[_.X$],styles:[""]}),g})()},80275:(Qe,be,p)=>{"use strict";p.d(be,{j:()=>Oe});var e=p(20449),b=p(84847),_=p(32075),w=p(32080),g=p(9244),A=p(5e3),E=p(11735),C=p(18750),R=p(29772),I=p(77446),m=p(50301),O=p(69808),P=p(98380),W=p(51062),ie=p(34447);let Ae=(()=>{class z{transform(ge){var Te;const Ie=ge.find(fe=>"mail"===fe.friendlyName);return null!==(Te=null==Ie?void 0:Ie.value)&&void 0!==Te?Te:"N/A"}}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275pipe=A.Yjl({name:"getMailFromAttributes",type:z,pure:!0}),z})();function q(z,D){1&z&&A._UZ(0,"th",18)}function Me(z,D){if(1&z){const ge=A.EpF();A.TgZ(0,"td",19),A.TgZ(1,"span",20),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.TgZ(4,"mat-checkbox",21),A.NdJ("change",function(Ie){const Se=A.CHM(ge).$implicit,Ke=A.oxw();return Ie?Ke.selection.toggle(Se):null})("click",function(Ie){return Ie.stopPropagation()}),A.qZA(),A.qZA(),A.qZA()}if(2&z){const ge=D.$implicit,Te=A.oxw();A.xp6(1),A.s9C("matTooltip",A.lcZ(2,6,A.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),A.Q6J("matTooltipPosition","above")("matTooltipDisabled",!ge.userExtSource.persistent),A.xp6(3),A.Q6J("aria-label",Te.checkboxLabel(ge))("checked",Te.selection.isSelected(ge))("disabled",ge.userExtSource.persistent)}}function he(z,D){1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function De(z,D){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const ge=D.$implicit;A.xp6(1),A.hij(" ",ge.userExtSource.id," ")}}function T(z,D){1&z&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function N(z,D){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.ALo(2,"getMailFromAttributes"),A.qZA()),2&z){const ge=D.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,ge.attributes)," ")}}function j(z,D){if(1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z){const ge=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,ge.extSourceNameHeader?ge.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function Y(z,D){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const ge=D.$implicit;A.xp6(1),A.hij(" ",ge.userExtSource.extSource.name," ")}}function ee(z,D){if(1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z){const ge=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,ge.loginHeader?ge.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function de(z,D){if(1&z&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&z){const ge=D.$implicit;A.xp6(1),A.hij(" ",ge.userExtSource.login," ")}}function ce(z,D){1&z&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Fe(z,D){if(1&z&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&z){const ge=D.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,ge.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ue(z,D){1&z&&A._UZ(0,"tr",26)}const Xe=function(z,D){return["/admin","users",z,"identities",D]};function te(z,D){if(1&z&&A._UZ(0,"tr",27),2&z){const ge=D.$implicit,Te=A.oxw();A.ekj("cursor-pointer",!Te.disableRouting)("disable-outline",Te.disableRouting),A.Q6J("perunWebAppsMiddleClickRouterLink",Te.disableRouting?null:A.WLB(6,Xe,Te.userId,ge.userExtSource.id))("routerLink",Te.disableRouting?null:A.WLB(9,Xe,Te.userId,ge.userExtSource.id))}}function Ve(z,D){1&z&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ve(z,D){1&z&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&z&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let Oe=(()=>{class z{constructor(ge,Te){this.route=ge,this.authResolver=Te,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(ge){this.sort=ge,this.setDataSource()}static getDataForColumn(ge,Te){switch(Te){case"id":return ge.userExtSource.id.toString();case"mail":{const Ie=ge.attributes.find(fe=>"mail"===fe.friendlyName);return Ie?Ie.value:"N/A"}case"extSourceName":return ge.userExtSource.extSource.name;case"login":return ge.userExtSource.login;case"lastAccess":return ge.userExtSource.lastAccess.split(".")[0];default:return ge[Te]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(ge=>{this.userId=Number(ge.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ge=>"id"!==ge)),this.dataSource=new _.by(this.userExtSources),this.setDataSource()}exportData(ge){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,z.getDataForColumn),ge)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(ge,Te)=>(0,g.Sd)(ge,Te,this.displayedColumns,z.getDataForColumn),this.dataSource.sortData=(ge,Te)=>(0,g.pR)(ge,Te,z.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(ge){return`${this.selection.isSelected(ge.userExtSource)?"deselect":"select"} row ${ge.userExtSource.id+1}`}}return z.\u0275fac=function(ge){return new(ge||z)(A.Y36(E.gz),A.Y36(w.x4))},z.\u0275cmp=A.Xpm({type:z,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(ge,Te){if(1&ge&&(A.Gf(g.l9,7),A.Gf(b.YE,7)),2&ge){let Ie;A.iGM(Ie=A.CRH())&&(Te.child=Ie.first),A.iGM(Ie=A.CRH())&&(Te.matSort=Ie.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[A.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(ge,Te){1&ge&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(fe){return Te.exportData(fe)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,q,1,0,"th",4),A.YNc(5,Me,5,10,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,he,4,5,"th",7),A.YNc(8,De,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,T,4,5,"th",10),A.YNc(11,N,3,3,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,j,4,5,"th",7),A.YNc(14,Y,2,1,"td",8),A.BQk(),A.ynx(15,12),A.YNc(16,ee,4,5,"th",7),A.YNc(17,de,2,1,"td",8),A.BQk(),A.ynx(18,13),A.YNc(19,ce,4,5,"th",7),A.YNc(20,Fe,3,4,"td",14),A.BQk(),A.YNc(21,Ue,1,0,"tr",15),A.YNc(22,te,1,12,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(23,Ve,3,3,"perun-web-apps-alert",17),A.YNc(24,ve,4,5,"perun-web-apps-alert",17)),2&ge&&(A.Q6J("hidden",0===Te.userExtSources.length||0===Te.dataSource.filteredData.length),A.xp6(1),A.Q6J("tableId",Te.tableId)("dataLength",Te.dataSource.filteredData.length)("pageSizeOptions",Te.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",Te.dataSource),A.xp6(19),A.Q6J("matHeaderRowDef",Te.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",Te.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===Te.dataSource.filteredData.length&&0!==Te.userExtSources.length),A.xp6(1),A.Q6J("ngIf",0===Te.userExtSources.length))},directives:[C.l,_.BZ,b.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,R.gM,I.oG,b.nU,_.as,_.XQ,_.nj,_.Gk,m.YH,E.rH,O.O5,P.w],pipes:[W.X$,ie.a,Ae,O.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),z})()},74250:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=b.bD}ngOnInit(){this.users=this.users.sort(b.fx)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,R){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return R.userSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entities",R.users)("disableAutoSelect",R.disableAutoSelect)("searchFunction",R.userFullNameFunction)("mainTextFunction",R.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},88561:(Qe,be,p)=>{"use strict";p.d(be,{M:()=>je});var e=p(20449),b=p(9244),_=p(84847),w=p(32080),g=p(36787),A=p(22868),E=p(5e3),C=p(10036),R=p(18750),I=p(69808),m=p(20773),O=p(32075),P=p(77446),W=p(25245),ie=p(29772),Ae=p(50301),q=p(98380),Me=p(51062),he=p(31359),De=p(9954),T=p(16119),N=p(7598);function j(Q,Ce){1&Q&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function Y(Q,Ce){if(1&Q){const re=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(pe){E.CHM(re);const Z=E.oxw(2);return pe?Z.masterToggle():null}),E.qZA()}if(2&Q){const re=E.oxw(2);E.Q6J("aria-label",re.checkboxLabel())("checked",re.selection.hasValue()&&re.isAllSelected())("indeterminate",re.selection.hasValue()&&!re.isAllSelected())}}function ee(Q,Ce){if(1&Q&&(E.TgZ(0,"th",22),E.YNc(1,Y,1,3,"mat-checkbox",23),E.qZA()),2&Q){const re=E.oxw();E.xp6(1),E.Q6J("ngIf",re.selection.isMultipleSelection())}}function de(Q,Ce){if(1&Q){const re=E.EpF();E.TgZ(0,"td",25),E.TgZ(1,"mat-checkbox",26),E.NdJ("change",function(pe){const Ne=E.CHM(re).$implicit,oe=E.oxw();return pe?oe.selection.toggle(Ne):null})("click",function(pe){return pe.stopPropagation()}),E.qZA(),E.qZA()}if(2&Q){const re=Ce.$implicit,k=E.oxw();E.xp6(1),E.Q6J("aria-label",k.checkboxLabel(re))("checked",k.selection.isSelected(re))}}function ce(Q,Ce){1&Q&&E._UZ(0,"th",27)}function Fe(Q,Ce){1&Q&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&Q&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Ue(Q,Ce){if(1&Q&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&Q){const re=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",re.svgIcon)}}function Xe(Q,Ce){if(1&Q&&(E.TgZ(0,"td",28),E.YNc(1,Fe,3,3,"mat-icon",29),E.YNc(2,Ue,2,4,"mat-icon",30),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.Q6J("ngIf",!re.serviceUser),E.xp6(1),E.Q6J("ngIf",re.serviceUser)}}function te(Q,Ce){1&Q&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function Ve(Q,Ce){if(1&Q&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.hij(" ",re.id," ")}}function ve(Q,Ce){1&Q&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Oe(Q,Ce){if(1&Q&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function z(Q,Ce){1&Q&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function D(Q,Ce){if(1&Q&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function ge(Q,Ce){1&Q&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function Te(Q,Ce){if(1&Q&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Ie(Q,Ce){1&Q&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function fe(Q,Ce){if(1&Q&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&Q){const re=Ce.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,re))}}function Se(Q,Ce){1&Q&&E._UZ(0,"tr",35)}const Ke=function(Q){return["/admin/users",Q]};function Je(Q,Ce){if(1&Q&&E._UZ(0,"tr",36),2&Q){const re=Ce.$implicit,k=E.oxw();E.ekj("cursor-pointer",!k.disableRouting),E.Q6J("perunWebAppsForceRouterLink",k.disableRouting?null:E.VKq(4,Ke,re.id))("perunWebAppsMiddleClickRouterLink",k.disableRouting?null:E.VKq(6,Ke,re.id))}}function nt(Q,Ce){1&Q&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Q&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let je=(()=>{class Q{constructor(re,k,pe,Z){this.authResolver=re,this.tableCheckbox=k,this.tableConfigService=pe,this.dynamicPaginatingService=Z,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=b.f7}static getExportDataForColumn(re,k){switch(k){case"id":return re.id.toString();case"user":return re.serviceUser?"service-user":"user";case"name":return re?(0,b.bD)(re):"";case"organization":return(0,b.OV)(re);case"email":return(0,b.kN)(re);case"logins":return(0,b.lt)(re);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(re=>"id"!==re)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(re=>this.selection.select(re))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(re){return re?`${this.selection.isSelected(re)?"deselect":"select"} row ${re.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}exportData(re){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,Q.getExportDataForColumn),re)}}return Q.\u0275fac=function(re){return new(re||Q)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(C.dB),E.Y36(w.ly))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(re,k){if(1&re&&(E.Gf(b.l9,7),E.Gf(_.YE,5)),2&re){let pe;E.iGM(pe=E.CRH())&&(k.child=pe.first),E.iGM(pe=E.CRH())&&(k.sort=pe.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed"},features:[E.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(re,k){1&re&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(Z){return k.exportData(Z)}),E.YNc(3,j,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,ee,2,1,"th",5),E.YNc(8,de,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,ce,1,0,"th",8),E.YNc(11,Xe,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,te,3,3,"th",11),E.YNc(14,Ve,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,ve,3,3,"th",11),E.YNc(17,Oe,3,3,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,z,3,3,"th",8),E.YNc(20,D,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,ge,3,3,"th",8),E.YNc(23,Te,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Ie,3,3,"th",8),E.YNc(26,fe,3,3,"td",13),E.BQk(),E.YNc(27,Se,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA(),E.qZA(),E.qZA(),E.YNc(29,nt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&re&&(E.Q6J("hidden",0===k.dataSource.allObjectCount&&!1===E.lcZ(1,9,k.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",k.tableId)("dataLength",k.dataSource.allObjectCount)("pageSizeOptions",k.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,k.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",k.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",k.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",k.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===k.dataSource.allObjectCount&&!1===E.lcZ(30,13,k.dataSource.loading$)))},directives:[R.l,I.O5,m.$g,O.BZ,_.YE,O.w1,O.fO,O.ge,P.oG,O.Dz,O.ev,W.Hw,ie.gM,_.nU,O.as,O.XQ,O.nj,O.Gk,Ae.Kd,Ae.YH,q.w],pipes:[I.Ov,Me.X$,he.d,De.Z,T.S,N.g],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Q})()},62707:(Qe,be,p)=>{"use strict";p.d(be,{M:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.voSelected=new e.vpe,this.nameFunction=C=>C.name,this.shortNameFunction=C=>C.shortName,this.searchFunction=C=>C.name+C.shortName+String(C.id)}ngOnChanges(){this.vos.sort(b.aC),this.vo||(this.vo=this.vos[0])}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,R){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return R.voSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",R.vo)("entities",R.vos)("searchFunction",R.searchFunction)("mainTextFunction",R.nameFunction)("secondaryTextFunction",R.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},87831:(Qe,be,p)=>{"use strict";p.d(be,{Z:()=>Ve});var e=p(84847),b=p(32075),_=p(9244),w=p(32080),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),R=p(69808),I=p(25245),m=p(50301),O=p(98380),P=p(51062);function W(ve,Oe){1&ve&&g._UZ(0,"th",19)}function ie(ve,Oe){if(1&ve){const z=g.EpF();g.TgZ(0,"td",20),g.TgZ(1,"mat-checkbox",21),g.NdJ("change",function(ge){const Ie=g.CHM(z).$implicit,fe=g.oxw();return ge?fe.selection.toggle(Ie):null})("click",function(ge){return ge.stopPropagation()}),g.qZA(),g.qZA()}if(2&ve){const z=Oe.$implicit,D=g.oxw();g.xp6(1),g.Q6J("aria-label",D.checkboxLabel(z))("checked",D.selection.isSelected(z))}}function Ae(ve,Oe){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function q(ve,Oe){if(1&ve&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&ve){const z=Oe.$implicit;let D;g.xp6(1),g.Oqu(null!==(D=z.id)&&void 0!==D?D:z.vo.id)}}function Me(ve,Oe){1&ve&&g._UZ(0,"th",24)}function he(ve,Oe){if(1&ve&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&ve){const z=Oe.$implicit,D=g.oxw();let ge;g.xp6(1),g.Q6J("recentIds",D.recentIds)("id",null!==(ge=z.id)&&void 0!==ge?ge:z.vo.id)}}function De(ve,Oe){1&ve&&g._UZ(0,"th",24)}function T(ve,Oe){1&ve&&g._UZ(0,"mat-icon",28),2&ve&&g.Q6J("svgIcon","perun-hierarchical-vo")}function N(ve,Oe){if(1&ve&&(g.TgZ(0,"td",25),g.YNc(1,T,1,1,"mat-icon",27),g.qZA()),2&ve){const z=Oe.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==z||null==z.memberVos?null:z.memberVos.length))}}function j(ve,Oe){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function Y(ve,Oe){if(1&ve&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ve){const z=Oe.$implicit;let D,ge;g.uIk("data-cy",null!==(D=z.shortName)&&void 0!==D?D:z.vo.shortName),g.xp6(1),g.hij(" ",null!==(ge=z.shortName)&&void 0!==ge?ge:z.vo.shortName," ")}}function ee(ve,Oe){1&ve&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function de(ve,Oe){if(1&ve&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ve){const z=Oe.$implicit;let D;g.xp6(1),g.Oqu(null!==(D=z.name)&&void 0!==D?D:z.vo.name)}}function ce(ve,Oe){1&ve&&g._UZ(0,"tr",29)}const Fe=function(ve){return["/organizations",ve]};function Ue(ve,Oe){if(1&ve&&g._UZ(0,"tr",30),2&ve){const z=Oe.$implicit,D=g.oxw();let ge,Te;g.ekj("disable-outline",D.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",D.disableRouting?null:g.VKq(4,Fe,null!==(ge=z.id)&&void 0!==ge?ge:z.vo.id))("perunWebAppsForceRouterLink",D.disableRouting?null:g.VKq(6,Fe,null!==(Te=z.id)&&void 0!==Te?Te:z.vo.id))}}function Xe(ve,Oe){1&ve&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function te(ve,Oe){1&ve&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ve&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let Ve=(()=>{class ve{constructor(z){this.authResolver=z,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=_.f7,this.getDataForColumnFun=(D,ge)=>ve.getDataForColumn(D,ge,this.recentIds)}set matSort(z){this.sort=z}static getDataForColumn(z,D,ge){switch(ve.isEnrichedVo(z)&&(z=z.vo),D){case"id":return z.id.toString();case"shortName":return z.shortName;case"name":return z.name;case"recent":return ge&&ge.includes(z.id)?"#".repeat(ge.indexOf(z.id)):z.name;default:return z[D]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(z=>"id"!==z)),this.setDataSource()}exportData(z){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),z)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(z,D)=>(0,_.Sd)(z,D,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(z,D)=>(0,_.pR)(z,D,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(z){return`${this.selection.isSelected(z)?"deselect":"select"} row ${z.id+1}`}}return ve.isEnrichedVo=Oe=>void 0!==Oe.vo,ve.\u0275fac=function(z){return new(z||ve)(g.Y36(w.x4))},ve.\u0275cmp=g.Xpm({type:ve,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(z,D){if(1&z&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&z){let ge;g.iGM(ge=g.CRH())&&(D.child=ge.first),g.iGM(ge=g.CRH())&&(D.matSort=ge.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(z,D){1&z&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(Te){return D.exportData(Te)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,W,1,0,"th",4),g.YNc(5,ie,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,Ae,3,3,"th",7),g.YNc(8,q,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Me,1,0,"th",10),g.YNc(11,he,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,De,1,0,"th",10),g.YNc(14,N,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,j,3,3,"th",7),g.YNc(17,Y,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,ee,3,3,"th",7),g.YNc(20,de,2,1,"td",11),g.BQk(),g.YNc(21,ce,1,0,"tr",15),g.YNc(22,Ue,1,8,"tr",16),g.qZA(),g.qZA(),g.qZA(),g.YNc(23,Xe,3,3,"perun-web-apps-alert",17),g.YNc(24,te,3,3,"perun-web-apps-alert",18)),2&z&&(g.Q6J("hidden",0===D.dataSource.filteredData.length||0===D.vos.length),g.xp6(1),g.Q6J("dataLength",D.dataSource.filteredData.length)("tableId",D.tableId)("pageSizeOptions",D.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",D.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",D.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",D.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===D.dataSource.filteredData.length&&0!==D.vos.length),g.xp6(1),g.Q6J("ngIf",0===D.vos.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,R.O5,I.Hw,b.as,b.XQ,b.nj,b.Gk,m.YH,m.Kd,O.w],pipes:[P.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ve})()},16074:(Qe,be,p)=>{"use strict";p.d(be,{GI:()=>Nt,Wr:()=>Ut,r2:()=>lt,gr:()=>ze,u3:()=>ti,Qu:()=>Qt,pf:()=>ve,xF:()=>Ji,hd:()=>en,kZ:()=>Ri,wA:()=>Ht,rd:()=>Je,Eg:()=>Ke,Bp:()=>pe,qD:()=>ot,jd:()=>St,FM:()=>V,jD:()=>N,Lc:()=>n,mk:()=>c,Ts:()=>Rt});var e=p(69808),b=p(51062),_=p(32075),w=p(48966),g=p(47423),A=p(67322),E=p(93075),C=p(98833),R=p(20773),I=p(79814),m=p(86856),O=p(69287),P=p(25245),W=p(19516),ie=p(63189),Ae=p(11735),q=p(90149),Me=p(74107),he=p(28499),De=p(6397),T=p(5e3);let N=(()=>{class Ge{}return Ge.\u0275fac=function(qe){return new(qe||Ge)},Ge.\u0275mod=T.oAB({type:Ge}),Ge.\u0275inj=T.cJS({imports:[[e.ez,b.aw,_.p0,w.Is,g.ot,A.lN,E.u5,C.c,R.Cq,I.Fk,m.FA,E.UX,O.Iq,P.Ps,W.d4,ie.r,Ae.Bz,q.dp,Me.LD,he.E3,De.C]]}),Ge})();var j=p(32105),Y=p(32080),ee=p(90508),de=p(20551);function ce(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",6)}function Fe(Ge,Ot){if(1&Ge&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2&Ge){const qe=Ot.$implicit;T.Q6J("value",qe),T.xp6(1),T.Oqu(T.lcZ(2,2,qe))}}function Ue(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"mat-form-field",14),T.TgZ(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(jt){return T.CHM(qe),T.oxw(3).changeStatus(jt)}),T.YNc(5,Fe,3,4,"mat-option",16),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",qe.allStatuses)}}function Xe(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,Ue,6,4,"mat-form-field",13),T.qZA()),2&Ge){const qe=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!qe.loading)}}function te(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2&Ge){const qe=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,qe.allStatuses[0])," ")}}function Ve(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",7),T.TgZ(1,"div",8),T._uU(2),T.ALo(3,"translate"),T.ALo(4,"memberStatus"),T.qZA(),T.TgZ(5,"div",9),T._uU(6),T.qZA(),T.YNc(7,Xe,4,4,"div",10),T.YNc(8,te,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA(),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,qe.actualStatus)," "),T.xp6(4),T.Oqu(qe.description),T.xp6(1),T.Q6J("ngIf",qe.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===qe.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",qe.changeMessage,T.oJD)}}let ve=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.memberManager=jt,this.groupsManager=ci,this.notificatorService=vi,this.translate=Ui,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(qe=>qe!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(qe){this.selectedStatus=qe.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1)}changeStatusMessage(qe,Tt){if("VALID"===qe)switch(Tt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(Tt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.uq),T.Y36(j.ff),T.Y36(Y.V6),T.Y36(b.sK))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,ce,1,0,"mat-spinner",1),T.YNc(5,Ve,11,10,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||!Tt.selectedStatus),T.xp6(1),T.hij(" ",Tt.submitButtonText," "))},directives:[w.uh,e.O5,R.$g,w.xY,A.KE,A.hX,Me.gD,e.sg,ee.ey,w.H8,g.lW],pipes:[b.X$,de.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),Ge})();function Oe(Ge,Ot){1&Ge&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function z(Ge,Ot){1&Ge&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function D(Ge,Ot){1&Ge&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function ge(Ge,Ot){1&Ge&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function Te(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",8)}function Ie(Ge,Ot){if(1&Ge&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2&Ge){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",qe.shortName)}}function fe(Ge,Ot){if(1&Ge&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2&Ge){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",qe.descriptionCtrl)}}function Se(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",9),T.YNc(1,Ie,3,4,"mat-form-field",10),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",11),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.YNc(8,fe,3,4,"mat-form-field",12),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(1),T.Q6J("ngIf",2===qe.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",qe.nameCtrl),T.xp6(3),T.hij(" ",qe.invalidNameMessage.length?qe.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==qe.dialogType)}}var Ke=(()=>{return(Ge=Ke||(Ke={}))[Ge.FACILITY=0]="FACILITY",Ge[Ge.RESOURCE=1]="RESOURCE",Ge[Ge.VO=2]="VO",Ge[Ge.GROUP=3]="GROUP",Ke;var Ge})();let Je=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui,Li,hn,dr){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translateService=ci,this.facilitiesManager=vi,this.resourcesManager=Ui,this.groupsManager=Li,this.vosManager=hn,this.store=dr,this.invalidNameMessage=this.data.dialogType===Ke.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===Ke.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case Ke.FACILITY:this.nameCtrl=new E.NI(this.data.facility.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.facility.description);break;case Ke.RESOURCE:this.nameCtrl=new E.NI(this.data.resource.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new E.NI(this.data.resource.description);break;case Ke.GROUP:{const qe=this.data.group.name.split(":");this.nameCtrl=new E.NI(qe[qe.length-1],[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.pattern(this.secondaryRegex),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.group.description);break}case Ke.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new E.NI(this.data.vo.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case Ke.FACILITY:this.editFacility();break;case Ke.RESOURCE:this.editResource();break;case Ke.GROUP:this.editGroup();break;case Ke.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(qe=>{const Tt=qe;Tt.name=this.nameCtrl.value,Tt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Tt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(b.sK),T.Y36(j.IQ),T.Y36(j.xk),T.Y36(j.ff),T.Y36(j.YF),T.Y36(Y.d6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.YNc(1,Oe,3,3,"h1",0),T.YNc(2,z,3,3,"h1",0),T.YNc(3,D,3,3,"h1",0),T.YNc(4,ge,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,Te,1,0,"mat-spinner",2),T.YNc(7,Se,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return Tt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",0===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",1===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",2===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",3===Tt.dialogType),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||Tt.nameCtrl.invalid||Tt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[e.O5,w.uh,w.xY,R.$g,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})();var nt=p(64080),je=p(9244);function Q(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",8)}function Ce(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",9),T.TgZ(1,"span"),T._uU(2),T.ALo(3,"translate"),T.TgZ(4,"b"),T._uU(5),T.qZA(),T.qZA(),T._UZ(6,"br"),T.TgZ(7,"span"),T._uU(8),T.ALo(9,"translate"),T.TgZ(10,"b"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T._UZ(13,"br"),T.TgZ(14,"span"),T._uU(15),T.ALo(16,"translate"),T.TgZ(17,"b"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.qZA(),T._UZ(20,"br"),T.TgZ(21,"span"),T._uU(22),T.ALo(23,"translate"),T.TgZ(24,"b"),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),T.xp6(3),T.Oqu(qe.group.name),T.xp6(3),T.hij(" ",T.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),T.xp6(3),T.Oqu(T.lcZ(12,12,qe.getSynchronizationType())),T.xp6(4),T.hij(" ",T.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),T.xp6(3),T.Oqu(T.lcZ(19,16,qe.getLastSyncState())),T.xp6(4),T.hij(" ",T.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),T.xp6(3),T.Oqu(T.lcZ(26,20,qe.getLastSyncTime()))}}function re(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForceStructure()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function k(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForce()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let pe=(()=>{class Ge{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.groupService=jt,this.notificator=ci,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[nt.r.GROUP_SYNC_ENABLED,nt.r.GROUP_LAST_SYNC_STATE,nt.r.GROUP_LAST_SYNC_TIMESTAMP,nt.r.GROUP_STRUCTURE_SYNC_ENABLED,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(qe=>{this.group=qe,this.syncEnabled=(0,je.IL)(this.group.attributes,nt.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,je.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,je.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,je.IL)(this.group.attributes,nt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,je.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,je.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.ff),T.Y36(Y.V6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Q,1,0,"mat-spinner",1),T.YNc(5,Ce,27,22,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"div",4),T.TgZ(8,"button",5),T.NdJ("click",function(){return Tt.refresh()}),T.TgZ(9,"mat-icon"),T._uU(10,"refresh"),T.qZA(),T.qZA(),T.YNc(11,re,3,4,"button",6),T.YNc(12,k,3,4,"button",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(6),T.Q6J("ngIf",Tt.isStructured()),T.xp6(1),T.Q6J("ngIf",Tt.isBasic()||Tt.isStructured()),T.xp6(2),T.hij(" ",T.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[w.uh,e.O5,R.$g,w.xY,w.H8,g.lW,P.Hw],pipes:[b.X$],styles:[""]}),Ge})();function Z(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",7)}function Ne(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function oe(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function _e(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"div",8),T.TgZ(1,"mat-form-field"),T.TgZ(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().subject=jt}),T.qZA(),T.YNc(7,Ne,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field"),T.TgZ(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().message=jt}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,oe,3,3,"mat-error",11),T.qZA(),T.qZA()}if(2&Ge){const qe=T.MAs(6),Tt=T.MAs(13),jt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",jt.subject),T.xp6(2),T.Q6J("ngIf",qe.invalid),T.xp6(3),T.Oqu(T.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),T.xp6(2),T.s9C("placeholder",T.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),T.Q6J("ngModel",jt.message),T.xp6(4),T.Q6J("ngIf",Tt.invalid)}}let $=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.translate=Tt,this.notificator=jt,this.rtMessages=ci,this.data=vi,this.storeService=Ui,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var qe,Tt;(null===(Tt=null===(qe=this.data)||void 0===qe?void 0:qe.error)||void 0===Tt?void 0:Tt.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(qe=>{this.dialogRef.afterClosed().subscribe(()=>{const Tt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),qe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Tt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const qe=this.storeService.get("config");let Tt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Tt=Tt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Tt=Tt.concat(this.data.error.message,"\n","Perun instance: ",qe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const jt=/"password":".+?"/;let ci=JSON.stringify(this.data.error.payload);ci=ci.replace(jt,'"password":"####"'),Tt=Tt.concat("Payload:\n"+ci+"\n\n")}return Tt=Tt.concat("Sent from new Perun Gui, version: ",p(4147).i8),Tt.split("\n").join("\n ")}parseMethod(qe){return qe&&this.methodRegexp.exec(qe)[1]}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(b.sK),T.Y36(Y.V6),T.Y36(j.Hr),T.Y36(w.WI),T.Y36(Y.d6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,Z,1,0,"mat-spinner",1),T.YNc(4,_e,17,13,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"button",5),T.NdJ("click",function(){return Tt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return Tt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===Tt.message||""===Tt.subject||Tt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[w.uh,e.O5,R.$g,w.xY,A.KE,A.hX,C.Nt,E.Fj,E.Q7,E.JJ,E.On,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ge})(),V=(()=>{class Ge{constructor(qe,Tt,jt){this.dialogRef=qe,this.dialog=Tt,this.data=jt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const qe=(0,je.kZ)();qe.width="550px",qe.data={error:this.data.error},qe.autoFocus=!1,this.dialog.open($,qe)}),this.dialogRef.close()}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.uw),T.Y36(w.WI))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T._uU(3),T.qZA(),T.TgZ(4,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.data.title),T.xp6(2),T.hij(" ",Tt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==Tt.data.type),T.xp6(1),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),T.xp6(3),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})();var i=p(34447);function a(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",3)}function d(Ge,Ot){1&Ge&&T._UZ(0,"th",15)}function l(Ge,Ot){if(1&Ge&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&Ge){const qe=Ot.$implicit;T.xp6(1),T.hij(" ",qe.userExtSource.extSource.name," ")}}function s(Ge,Ot){1&Ge&&T._UZ(0,"tr",17)}function r(Ge,Ot){1&Ge&&T._UZ(0,"tr",18)}function t(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"div",4),T.TgZ(2,"p"),T._uU(3),T.ALo(4,"translate"),T.ALo(5,"customTranslate"),T.qZA(),T.TgZ(6,"div",5),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"table",6),T.ynx(11,7),T.YNc(12,d,1,0,"th",8),T.YNc(13,l,2,1,"td",9),T.BQk(),T.YNc(14,s,1,0,"tr",10),T.YNc(15,r,1,0,"tr",11),T.qZA(),T.qZA(),T.TgZ(16,"div",12),T.TgZ(17,"button",13),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,7,T.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),T.xp6(4),T.hij(" ",T.lcZ(8,11,T.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),T.xp6(3),T.Q6J("dataSource",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,15,T.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(23,19,T.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.usersManagerService=jt,this.translate=ci,this.notificator=vi,this.force=!1,this.displayedColumns=["name"],ci.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Ui=>this.successMessage=Ui)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.Fv),T.Y36(b.sK),T.Y36(Y.V6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div"),T.YNc(5,a,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,6,T.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),T.xp6(3),T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,R.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ge})();var o=p(74533);let c=(()=>{class Ge{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.TgZ(3,"textarea",2),T._uU(4),T.qZA(),T.qZA(),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.title),T.xp6(3),T.Oqu(Tt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",Tt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[w.uh,w.xY,o.IC,C.Nt,w.H8,g.lW,O.i3],pipes:[b.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),Ge})();function h(Ge,Ot){1&Ge&&T._UZ(0,"th",12)}function x(Ge,Ot){if(1&Ge&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2&Ge){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe.displayName)}}function We(Ge,Ot){1&Ge&&T._UZ(0,"tr",14)}function At(Ge,Ot){1&Ge&&T._UZ(0,"tr",15)}let Ht=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translate=ci,this.attributesManager=vi,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(b.sK),T.Y36(j.H8))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"table",3),T.ynx(11,4),T.YNc(12,h,1,0,"th",5),T.YNc(13,x,2,1,"td",6),T.BQk(),T.YNc(14,We,1,0,"tr",7),T.YNc(15,At,1,0,"tr",8),T.qZA(),T.qZA(),T.TgZ(16,"div",9),T.TgZ(17,"button",10),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),T.xp6(4),T.hij(" ",T.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),T.xp6(2),T.Q6J("dataSource",Tt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Tt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Tt.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),T.xp6(3),T.hij(" ",T.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[w.uh,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})(),lt=(()=>{class Ge{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"mat-form-field"),T.TgZ(5,"textarea",2),T.NdJ("ngModelChange",function(ci){return Tt.attributeValue=ci}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),T.xp6(4),T.Q6J("ngModel",Tt.attributeValue),T.xp6(3),T.hij(" ",T.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[w.uh,w.xY,A.KE,o.IC,C.Nt,E.Fj,E.JJ,E.On,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})(),Ut=(()=>{class Ge{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA(),T.qZA(),T.TgZ(9,"div",3),T.TgZ(10,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),T.xp6(4),T.hij(" ",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),T.xp6(3),T.hij(" ",Tt.data.name," "),T.xp6(3),T.hij(" ",T.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})();var mt=p(98380);function Lt(Ge,Ot){if(1&Ge&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(1),T.Oqu(qe.pendingEmailsMessage)}}function we(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let ze=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.translate=jt,this.notificator=ci,this.usersManagerService=vi,this.authService=Ui,this.pendingMails=[],jt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Li=>this.successMessage=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Li=>this.pendingEmailsMessageStart=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Li=>this.pendingEmailsMessageEnd=Li)}ngOnInit(){this.emailControl=new E.NI(null,[E.kI.required,E.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(qe=>{this.pendingMails=qe.filter((jt,ci,vi)=>ci===vi.indexOf(jt));let Tt="";this.pendingMails.forEach(jt=>Tt+=`${jt===this.pendingMails[0]?"":", "}${jt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Tt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Tt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Tt[0]+"//"+Tt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(b.sK),T.Y36(Y.V6),T.Y36(j.Fv),T.Y36(Y.e8))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1),T.YNc(5,Lt,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3),T.TgZ(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,we,4,5,"mat-error",5),T.qZA(),T.qZA(),T.TgZ(12,"div",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",Tt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",Tt.emailControl),T.xp6(3),T.Q6J("ngIf",Tt.emailControl.invalid),T.xp6(3),T.hij(" ",T.lcZ(15,16,T.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",!Tt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[w.uh,w.xY,e.O5,mt.w,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ge})();function U(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",7)}function L(Ge,Ot){1&Ge&&(T.TgZ(0,"div",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function ne(Ge,Ot){1&Ge&&T._UZ(0,"th",18)}function le(Ge,Ot){if(1&Ge&&(T.TgZ(0,"td",19),T._uU(1),T.qZA()),2&Ge){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe)}}function Le(Ge,Ot){1&Ge&&T._UZ(0,"tr",20)}function ct(Ge,Ot){1&Ge&&T._UZ(0,"tr",21)}function bt(Ge,Ot){if(1&Ge&&(T.TgZ(0,"perun-web-apps-alert",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge){const qe=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,qe.data.alert)," ")}}function xt(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,L,3,3,"div",9),T.TgZ(5,"table",10),T.ynx(6,11),T.YNc(7,ne,1,0,"th",12),T.YNc(8,le,2,1,"td",13),T.BQk(),T.YNc(9,Le,1,0,"tr",14),T.YNc(10,ct,1,0,"tr",15),T.qZA(),T.YNc(11,bt,3,4,"perun-web-apps-alert",16),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,qe.data.description)," "),T.xp6(2),T.Q6J("ngIf",qe.data.showAsk),T.xp6(1),T.Q6J("dataSource",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.displayedColumns),T.xp6(1),T.Q6J("ngIf",qe.data.alert)}}function Yt(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function It(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Rt=(()=>{class Ge{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,U,1,0,"mat-spinner",1),T.YNc(5,xt,12,8,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,Yt,3,4,"button",5),T.YNc(11,It,3,4,"button",6),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,Tt.data.title)),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("ngIf","remove"===Tt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===Tt.data.type))},directives:[w.uh,e.O5,R.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})();var Et=p(28258);let Bt=(()=>{class Ge{transform(qe){const Tt=qe.split(":");return Tt[Tt.length-1]}}return Ge.\u0275fac=function(qe){return new(qe||Ge)},Ge.\u0275pipe=T.Yjl({name:"parseGroupName",type:Ge,pure:!0}),Ge})();function Jt(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",7)}function ai(Ge,Ot){1&Ge&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function mi(Ge,Ot){1&Ge&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bi(Ge,Ot){1&Ge&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const yi=function(Ge){return{"min-width":Ge}};function Wi(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"mat-tree-node",16),T.TgZ(1,"li",17),T.TgZ(2,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T._UZ(3,"button",19),T.TgZ(4,"div",20),T.TgZ(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,mi,3,3,"span",21),T.YNc(9,bi,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA(),T.qZA()}if(2&Ge){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description)}}function gn(Ge,Ot){1&Ge&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function cn(Ge,Ot){1&Ge&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Ki(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"mat-nested-tree-node"),T.TgZ(1,"li"),T.TgZ(2,"div",17),T.TgZ(3,"button",24),T.TgZ(4,"mat-icon",25),T._uU(5),T.qZA(),T.qZA(),T.TgZ(6,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T.TgZ(7,"div",20),T.TgZ(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,gn,3,3,"span",21),T.YNc(12,cn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA(),T.qZA(),T.qZA(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA(),T.qZA(),T.qZA()}if(2&Ge){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+qe.name),T.xp6(2),T.hij(" ",Tt.treeControl.isExpanded(qe)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description),T.xp6(1),T.ekj("example-tree-invisible",!Tt.treeControl.isExpanded(qe))}}function Tn(Ge,Ot){if(1&Ge&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Wi,12,13,"mat-tree-node",14),T.YNc(2,Ki,17,17,"mat-nested-tree-node",15),T.qZA()),2&Ge){const qe=T.oxw(2);T.Q6J("dataSource",qe.dataSource)("treeControl",qe.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",qe.hasChild)}}function rn(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field",9),T._UZ(5,"input",10),T.ALo(6,"translate"),T.qZA(),T.YNc(7,ai,3,3,"perun-web-apps-alert",11),T.YNc(8,Tn,3,3,"mat-tree",12),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),T.xp6(3),T.s9C("placeholder",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),T.Q6J("formControl",qe.formControl),T.xp6(2),T.Q6J("ngIf",!qe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",qe.dataSource.data.length)}}const st=function(Ge){return{name:Ge}};let St=(()=>{class Ge{constructor(qe,Tt,jt){this.dialogRef=qe,this.data=Tt,this.groupsManagerService=jt,this.treeControl=new Et.VY(ci=>ci.children),this.dataSource=new q.WX,this.formControl=new E.NI(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(ci,vi)=>!!vi.children&&vi.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(qe=>{this.paths=qe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(qe=>{const Tt=qe.trim().toLowerCase(),jt=this.paths.filter(ci=>ci.filter(vi=>vi.name.includes(Tt)).length);this.createGroupTree(jt),this.dataSource.data=this.groupTree}),this.userName=(0,je.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(qe,Tt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${qe}${Tt?"/settings/relations":""}`,"_blank")}getMinWidth(qe){return String(400-40*qe)+"px"}recursiveSearch(qe,Tt,jt){for(const vi of qe)if(vi.name===Tt[jt].name)return Tt.length===jt+1?(vi.direct=!0,qe):(vi.children=Tt[++jt].name.includes(Tt[jt-1].name)?this.recursiveSearch(vi.children,Tt,jt):[{name:Tt[jt].name,id:Tt[jt-1].id,description:Tt[jt].description,direct:!1,include:!0,level:jt,children:[]}].concat(vi.children),qe);return qe.push({name:Tt[jt].name,id:Tt[jt].id,description:Tt[jt].description,direct:!1,include:!1,level:jt,children:[]}),this.recursiveSearch(qe,Tt,jt)}createGroupTree(qe){this.groupTree=[],qe.forEach(Tt=>{this.groupTree=this.recursiveSearch(this.groupTree,Tt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.ff))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Jt,1,0,"mat-spinner",2),T.YNc(5,rn,9,9,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"div",5),T.TgZ(8,"button",6),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,st,Tt.userName))," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[w.uh,e.O5,R.$g,w.xY,A.KE,C.Nt,E.Fj,E.JJ,E.oH,mt.w,q.gi,q.fQ,q.uo,q.eu,g.lW,e.PC,q.GZ,P.Hw,q.Ar,w.H8],pipes:[b.X$,Bt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),Ge})(),ot=(()=>{class Ge{constructor(qe,Tt){this.dialogRef=qe,this.router=Tt}onClose(){this.router.navigate([]),this.dialogRef.close()}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(Ae.F0))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.TgZ(7,"div",3),T.TgZ(8,"button",4),T.NdJ("click",function(){return Tt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),T.xp6(4),T.Oqu(T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[w.uh,w.xY,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ge})();var $e=p(62383);function vt(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function F(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Ye(Ge,Ot){1&Ge&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let gt=(()=>{class Ge{constructor(qe){this.dialogRef=qe,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const qe=new Date;this.currentDate=(0,e.p6)(new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(qe){return(0,e.p6)(qe,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(qe,Tt){if(1&qe){const jt=T.EpF();T.TgZ(0,"div",0),T.TgZ(1,"div",1),T.TgZ(2,"p"),T.TgZ(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.ALo(13,"parseDate"),T.qZA(),T.TgZ(14,"mat-radio-group",2),T.NdJ("ngModelChange",function(vi){return Tt.newExpiration=vi}),T.TgZ(15,"mat-radio-button",3),T.TgZ(16,"mat-form-field",4),T.NdJ("click",function(){return T.CHM(jt),T.MAs(23).open()}),T.TgZ(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"input",5),T.NdJ("dateChange",function(){return Tt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6),T._UZ(22,"mat-datepicker",7,8),T.qZA(),T.qZA(),T.YNc(24,vt,3,3,"mat-radio-button",9),T.YNc(25,F,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA(),T.qZA(),T.YNc(29,Ye,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13),T.TgZ(31,"button",14),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.qZA(),T.TgZ(34,"button",15),T.NdJ("click",function(){return Tt.onChange()}),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&qe){const jt=T.MAs(23);T.xp6(4),T.Oqu(T.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),T.xp6(2),T.hij(" ",T.lcZ(7,23,Tt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",Tt.newExpiration?T.lcZ(13,27,Tt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",Tt.newExpiration),T.xp6(1),T.s9C("value",Tt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",Tt.minDate)("max",Tt.maxDate)("formControl",Tt.expirationControl)("matDatepicker",jt),T.xp6(1),T.Q6J("for",jt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",Tt.canExtendMembership&&"vo"===Tt.mode),T.xp6(1),T.Q6J("ngIf",Tt.canExtendMembership&&"group"===Tt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===Tt.status&&("never"===Tt.newExpiration||Tt.parseDate(Tt.expirationControl.value)>Tt.currentDate)),T.xp6(3),T.hij(" ",T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[w.xY,I.VQ,E.JJ,E.On,I.U0,A.KE,A.hX,C.Nt,E.Fj,m.hl,E.oH,m.nW,A.R9,m.Mq,e.O5,mt.w,w.H8,g.lW],pipes:[b.X$,$e.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),Ge})();function Dt(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",4)}function ri(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","group")("status",qe.status)}}let ti=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,nt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"groupRules"===qe?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.H8),T.Y36(j.uq),T.Y36(j.ff),T.Y36(b.sK),T.Y36(Y.V6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Dt,1,0,"mat-spinner",2),T.YNc(5,ri,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,R.$g,gt],pipes:[b.X$],styles:[""]}),Ge})();var Di=p(13469);function wi(Ge,Ot){1&Ge&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function $i(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"form",5),T.TgZ(1,"div",6),T.TgZ(2,"mat-form-field"),T.TgZ(3,"mat-label"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._UZ(6,"input",7),T.TgZ(7,"mat-icon",8),T.NdJ("click",function(){T.CHM(qe);const jt=T.oxw();return jt.showOldPassword=!jt.showOldPassword}),T._uU(8),T.qZA(),T.YNc(9,wi,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("formGroup",qe.formGroup),T.xp6(4),T.Oqu(T.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),T.xp6(2),T.Q6J("type",qe.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",qe.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",qe.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",qe.formGroup)("namespace",qe.data.namespace)}}function qi(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",11)}function Fi(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"div",12),T.TgZ(1,"div",13),T.TgZ(2,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().close()}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){return T.CHM(qe),T.oxw().changePassword()}),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",qe.formGroup.invalid||qe.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ji=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this._formBuilder=jt,this.usersManagerService=ci,this.apiRequestConfiguration=vi,this.notificator=Ui,this.translate=Li,this.showOldPassword=!1,Li.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",E.kI.required],passwordCtrl:["",E.kI.required,[(0,he.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:je.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(E.qu),T.Y36(j.Fv),T.Y36(Y.F5),T.Y36(Y.V6),T.Y36(b.sK))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,$i,11,9,"form",2),T.YNc(5,qi,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Fi,8,7,"div",4)),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,w.xY,e.O5,E._Y,E.JL,E.sg,A.KE,A.hX,E.Fj,C.Nt,E.JJ,E.u,E.Q7,P.Hw,A.R9,A.TO,Di.G,R.$g,w.H8,g.lW],pipes:[b.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),Ge})();function _n(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",4)}function ki(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","vo")("status",qe.status)}}let Ri=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.translate=vi,this.notificator=Ui,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,vi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Li=>this.successMessage=Li)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,nt.r.VO_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"voRules"===qe?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.H8),T.Y36(j.uq),T.Y36(b.sK),T.Y36(Y.V6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_n,1,0,"mat-spinner",2),T.YNc(5,ki,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,R.$g,gt],pipes:[b.X$],styles:[""]}),Ge})();function sn(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",4)}function Xi(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ge){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("mode","sponsor")}}let en=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const qe=new Date;this.minDate=new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),this.loading=!1}onExpirationChanged(qe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===qe?null:qe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.H8),T.Y36(j.uq),T.Y36(j.ff),T.Y36(b.sK),T.Y36(Y.V6))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,sn,1,0,"mat-spinner",2),T.YNc(5,Xi,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,R.$g,gt],pipes:[b.X$],styles:[""]}),Ge})();function an(Ge,Ot){1&Ge&&T._UZ(0,"mat-spinner",4)}function dn(Ge,Ot){1&Ge&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function wn(Ge,Ot){1&Ge&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function xn(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw(2).asyncValidation=jt}),T.TgZ(1,"span",13),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",14),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-radio-button",14),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw(2);T.Q6J("ngModel",qe.asyncValidation),T.xp6(2),T.hij(" ",T.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),T.xp6(2),T.Q6J("value",!1),T.xp6(1),T.hij(" ",T.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),T.xp6(2),T.Q6J("value",!0),T.xp6(1),T.hij(" ",T.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Oi(Ge,Ot){1&Ge&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function Nn(Ge,Ot){1&Ge&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ge&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function kn(Ge,Ot){if(1&Ge&&(T.TgZ(0,"div",5),T.TgZ(1,"p",6),T._uU(2),T.TgZ(3,"span",7),T._uU(4),T.qZA(),T._uU(5),T.TgZ(6,"span",7),T._uU(7),T.qZA(),T.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p"),T.TgZ(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,dn,3,3,"span",9),T.YNc(19,wn,3,3,"span",9),T.YNc(20,xn,10,12,"mat-radio-group",10),T.YNc(21,Oi,3,3,"span",9),T.YNc(22,Nn,3,3,"span",9),T.qZA()),2&Ge){const qe=T.oxw();T.xp6(2),T.hij(" ",qe.group.name," "),T.xp6(2),T.hij("#",qe.group.id,""),T.xp6(1),T.hij(" - ",qe.resource.name," "),T.xp6(2),T.hij("#",qe.resource.id,""),T.xp6(3),T.hij(" ",T.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),T.xp6(2),T.hij(" ",qe.status," "),T.xp6(3),T.hij(" ",T.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),T.xp6(2),T.hij(" ",qe.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===qe.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!1===qe.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!0===qe.asyncValidation)}}function Mt(Ge,Ot){if(1&Ge){const qe=T.EpF();T.TgZ(0,"div",15),T.TgZ(1,"button",16),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA()}if(2&Ge){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===qe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Qt=(()=>{class Ge{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.resourceService=jt,this.groupService=ci,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(qe=>{this.resource=qe,this.groupService.getGroupById(this.data.groupId).subscribe(Tt=>{this.group=Tt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(j.xk),T.Y36(j.ff))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,an,1,0,"mat-spinner",1),T.YNc(5,kn,23,17,"div",2),T.YNc(6,Mt,7,7,"div",3),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.hij(" ",T.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,R.$g,w.xY,I.VQ,E.JJ,E.On,I.U0,w.H8,g.lW],pipes:[b.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),Ge})();var rt=p(90995);let Nt=(()=>{class Ge{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.usersService=ci,this.translate=vi,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(qe){this.force=qe.force,qe.deleted?this.anonymizeUser():this.onCancel()}}return Ge.\u0275fac=function(qe){return new(qe||Ge)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.V6),T.Y36(j.Fv),T.Y36(b.sK))},Ge.\u0275cmp=T.Xpm({type:Ge,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(ci){return Tt.onSubmit(ci)}),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("entityNames",Tt.dataSource)("entityType","user")("relations",Tt.relations)("loading",Tt.loading)("anonymize",!0))},directives:[rt.e],styles:[""]}),Ge})()},90995:(Qe,be,p)=>{"use strict";p.d(be,{e:()=>Oe});var e=p(5e3),b=p(93075),_=p(32075),w=p(69808),g=p(20773),A=p(48966),E=p(47423),C=p(25245),R=p(14623),I=p(98380),m=p(67322),O=p(98833),P=p(51062);let W=(()=>{class z{constructor(ge){this.translate=ge}transform(ge){return this.translate.instant(ge?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return z.\u0275fac=function(ge){return new(ge||z)(e.Y36(P.sK,16))},z.\u0275pipe=e.Yjl({name:"deleteDialogType",type:z,pure:!0}),z})();var ie=p(31359);function Ae(z,D){1&z&&e._UZ(0,"mat-spinner",2)}const q=function(z){return{action:z}};function Me(z,D){if(1&z&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&z){const ge=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,q,e.lcZ(3,9,ge.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",ge.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",ge.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function he(z,D){if(1&z&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&z){const ge=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,q,e.lcZ(3,5,ge.anonymize)))," ",ge.entityType," ? ")}}function De(z,D){1&z&&e._UZ(0,"th",18)}function T(z,D){if(1&z&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&z){const ge=D.$implicit,Te=e.oxw(2);e.xp6(1),e.hij(" ",Te.anonymize?e.lcZ(2,1,ge):ge.name," ")}}function N(z,D){1&z&&e._UZ(0,"tr",20)}function j(z,D){1&z&&e._UZ(0,"tr",21)}function Y(z,D){if(1&z){const ge=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(ge),e.oxw(2).force=!0}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&z){const ge=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,q,e.lcZ(5,5,e.lcZ(6,7,ge.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const ee=function(){return["name"]};function de(z,D){if(1&z){const ge=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Me,10,19,"div",5),e.YNc(8,he,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,De,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,N,1,0,"tr",10),e.YNc(14,j,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return e.CHM(ge),e.oxw().onCancel()}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){return e.CHM(ge),e.oxw().onDelete()}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,Y,8,13,"button",15),e.qZA(),e.qZA()}if(2&z){const ge=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,q,e.lcZ(4,13,e.lcZ(5,15,ge.anonymize))))," ",ge.entityType," "),e.xp6(5),e.Q6J("ngIf",!ge.disableForce),e.xp6(1),e.Q6J("ngIf",ge.disableForce),e.xp6(1),e.Q6J("dataSource",ge.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,ee)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,q,e.lcZ(22,22,e.lcZ(23,24,ge.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!ge.disableForce)}}function ce(z,D){if(1&z&&(e.TgZ(0,"mat-list-item"),e.TgZ(1,"span"),e.TgZ(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&z){const ge=D.$implicit;e.xp6(4),e.hij(" ",ge," ")}}function Fe(z,D){if(1&z&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&z){const ge=e.oxw(2);e.xp6(1),e.hij(" ",ge.anotherMessage," ")}}function Ue(z,D){1&z&&e._UZ(0,"th",18)}function Xe(z,D){if(1&z&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&z){const ge=D.$implicit,Te=e.oxw(2);e.xp6(1),e.hij(" ",Te.anonymize?e.lcZ(2,1,ge):ge.name," ")}}function te(z,D){1&z&&e._UZ(0,"tr",20)}function Ve(z,D){1&z&&e._UZ(0,"tr",21)}function ve(z,D){if(1&z){const ge=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4),e.TgZ(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,ce,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,Fe,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,Ue,1,0,"th",8),e.YNc(21,Xe,3,3,"td",9),e.BQk(),e.YNc(22,te,1,0,"tr",10),e.YNc(23,Ve,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA(),e.qZA(),e.TgZ(29,"div",12),e.TgZ(30,"button",13),e.NdJ("click",function(){return e.CHM(ge),e.oxw().onCancel()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){return e.CHM(ge),e.oxw().onDelete()}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&z){const ge=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,q,e.lcZ(4,20,e.lcZ(5,22,ge.anonymize))))," ",ge.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",ge.relations),e.xp6(1),e.Q6J("ngIf",ge.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,q,e.lcZ(17,31,ge.anonymize)))," ",ge.entityType," ? "),e.xp6(3),e.Q6J("dataSource",ge.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,ee)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,ee)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,q,e.lcZ(27,36,e.lcZ(28,38,ge.anonymize))))),e.Q6J("formControl",ge.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",ge.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,q,e.lcZ(38,45,e.lcZ(39,47,ge.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let Oe=(()=>{class z{constructor(){this.entityNames=new _.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new b.NI("",[b.kI.required,b.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return z.\u0275fac=function(ge){return new(ge||z)},z.\u0275cmp=e.Xpm({type:z,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(ge,Te){1&ge&&(e.YNc(0,Ae,1,0,"mat-spinner",0),e.YNc(1,de,25,32,"div",1),e.YNc(2,ve,41,61,"div",1)),2&ge&&(e.Q6J("ngIf",Te.loading),e.xp6(1),e.Q6J("ngIf",!Te.force&&!Te.loading),e.xp6(1),e.Q6J("ngIf",Te.force&&!Te.loading))},directives:[w.O5,g.$g,A.uh,A.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,A.H8,E.lW,C.Hw,R.i$,w.sg,R.Tg,I.w,m.KE,O.Nt,b.Fj,b.JJ,b.oH],pipes:[P.X$,w.rS,W,ie.d,w.gd],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),z})()},50301:(Qe,be,p)=>{"use strict";p.d(be,{hT:()=>b,Kd:()=>w,YH:()=>g});var e=p(5e3);let b=(()=>{class A{constructor(C){this.elementRef=C}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})();var _=p(32080);let w=(()=>{class A{constructor(C){this.router=C}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(_.xw))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(C,R){1&C&&e.NdJ("click",function(){return R.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),A})(),g=(()=>{class A{onClick(C){if(1===C.button&&null!=this.perunWebAppsMiddleClickRouterLink){const R=this.perunWebAppsMiddleClickRouterLink.join("/"),I=location.search;window.open(R+I)}}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(C,R){1&C&&e.NdJ("mouseup",function(m){return R.onClick(m)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},45323:(Qe,be,p)=>{"use strict";p.d(be,{u:()=>e});var e=(()=>{return(b=e||(e={})).PERUNADMIN="PERUNADMIN",b.PERUNOBSERVER="PERUNOBSERVER",b.VOADMIN="VOADMIN",b.GROUPADMIN="GROUPADMIN",b.GROUPOBSERVER="GROUPOBSERVER",b.SELF="SELF",b.FACILITYADMIN="FACILITYADMIN",b.FACILITIYOBSERVER="FACILITYOBSERVER",b.RESOURCEADMIN="RESOURCEADMIN",b.RESOURCESELFSERVICE="RESOURCESELFSERVICE",b.REGISTRAR="REGISTRAR",b.ENGINE="ENGINE",b.RPC="RPC",b.NOTIFICATIONS="NOTIFICATIONS",b.SERVICEUSER="SERVICEUSER",b.SPONSOR="SPONSOR",b.VOOBSERVER="VOOBSERVER",b.TOPGROUPCREATOR="TOPGROUPCREATOR",b.SECURITYADMIN="SECURITYADMIN",b.CABINETADMIN="CABINETADMIN",b.UNKNOWNROLENAME="UNKNOWNROLENAME",b.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",b.UNKNOWN="UNKNOWN",b.MEMBERSHIP="MEMBERSHIP",e;var b})()},28499:(Qe,be,p)=>{"use strict";p.d(be,{E3:()=>m,yT:()=>O.y});var e=p(69808),b=p(67322),_=p(29772),w=p(93075),g=p(98833),A=p(51062),E=p(20773),C=p(25245),R=p(63189),I=p(5e3);let m=(()=>{class W{}return W.\u0275fac=function(Ae){return new(Ae||W)},W.\u0275mod=I.oAB({type:W}),W.\u0275inj=I.cJS({providers:[],imports:[[e.ez,b.lN,_.AV,w.UX,g.c,A.aw,E.Cq,C.Ps,R.r]]}),W})();var O=p(47549);p(13469)},13469:(Qe,be,p)=>{"use strict";p.d(be,{G:()=>De});var e=p(47549),b=p(32080),_=p(32105),w=p(5e3),g=p(51062),A=p(93075),E=p(67322),C=p(29772),R=p(98833),I=p(69808),m=p(20773),O=p(25245),P=p(98380);function W(T,N){1&T&&w._UZ(0,"mat-spinner",12),2&T&&w.Q6J("diameter",18)}function ie(T,N){if(1&T&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&T){const j=w.oxw();w.Q6J("matTooltip",j.getErrorTooltip())("matTooltipDisabled",!j.formGroup.get("passwordCtrl").hasError("backendError"))}}function Ae(T,N){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function q(T,N){if(1&T&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&T){const j=w.oxw();w.Q6J("matTooltip",j.getErrorTooltip()),w.xp6(1),w.Oqu(j.getErrorTooltip())}}function Me(T,N){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function he(T,N){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let De=(()=>{class T{constructor(j,Y,ee){this.translator=j,this.usersManagerService=Y,this.store=ee,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(j=>{var Y;const ee=j.userAttributes.find(de=>"preferredLanguage"===de.friendlyName);this.language=null!==(Y=null==ee?void 0:ee.value)&&void 0!==Y?Y:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let j=this.formGroup.get("passwordCtrl").getError("backendError");return j&&(j=j.replace(":null","")),j}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(j=>j.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(j=>"default"===j.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return T.\u0275fac=function(j){return new(j||T)(w.Y36(g.sK),w.Y36(_.Fv),w.Y36(b.d6))},T.\u0275cmp=w.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(j,Y){1&j&&(w.TgZ(0,"div",0),w.TgZ(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,W,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return Y.showNewPassword=!Y.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,ie,2,2,"mat-icon",5),w.YNc(8,Ae,3,3,"mat-error",6),w.YNc(9,q,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8),w.TgZ(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return Y.showPasswordConfirm=!Y.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,Me,3,3,"mat-error",6),w.YNc(18,he,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA(),w.qZA()),2&j&&(w.Q6J("formGroup",Y.formGroup),w.xp6(1),w.Q6J("matTooltip",Y.getPasswordDisabledTooltip())("matTooltipDisabled",Y.formGroup.get("passwordCtrl").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",Y.showNewPassword?"text":"password")("required",Y.passwordRequired)("errorStateMatcher",Y.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",Y.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").dirty&&null!==Y.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",Y.showPasswordConfirm?"text":"password")("required",Y.passwordRequired),w.xp6(2),w.hij(" ",Y.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",Y.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",Y.passwordRequirement,w.oJD))},directives:[A.JL,A.sg,E.KE,C.gM,R.Nt,A.Fj,A.JJ,A.u,A.Q7,I.O5,m.$g,E.R9,O.Hw,E.TO,E.hX,P.w],pipes:[g.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),T})()},47549:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>A,y:()=>E});var e=p(98723),b=p(21086),_=p(87545),w=p(24850),g=p(27221);class A{isErrorState(R){return!(!(null==R?void 0:R.invalid)||!(null==R?void 0:R.dirty))}}const E=(C,R,I,m=500)=>O=>(0,e.H)(m).pipe((0,_.w)(()=>(I.dontHandleErrorForNext(),C&&"No namespace"!==C?R.checkPasswordStrength(O.value,C):(0,b.of)(null))),(0,w.U)(()=>null),(0,g.K)(P=>{const W=P.error,ie={backendError:W.message.substring(W.message.indexOf(":")+1)};return(0,b.of)(ie)}))},32105:(Qe,be,p)=>{"use strict";p.d(be,{au:()=>_e,sY:()=>ve,H8:()=>E,jw:()=>C,Ct:()=>R,VK:()=>A,WY:()=>m,KG:()=>P,IQ:()=>W,ff:()=>Ae,uq:()=>Me,aC:()=>he,Hr:()=>De,tk:()=>T,xk:()=>N,t7:()=>j,KK:()=>Y,Ob:()=>ee,Dy:()=>pe,Fv:()=>de,FW:()=>ce,YF:()=>Fe});var e=p(40520);class b{encodeKey(V){return encodeURIComponent(V)}encodeValue(V){return encodeURIComponent(V)}decodeKey(V){return decodeURIComponent(V)}decodeValue(V){return decodeURIComponent(V)}}var _=p(5e3);const w=new _.OlP("basePath");class A{constructor(V={}){this.apiKeys=V.apiKeys,this.username=V.username,this.password=V.password,this.accessToken=V.accessToken,this.basePath=V.basePath,this.withCredentials=V.withCredentials,this.encoder=V.encoder,this.credentials=V.credentials?V.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(V){if(0===V.length)return;const i=V.find(a=>this.isJsonMime(a));return void 0===i?V[0]:i}selectHeaderAccept(V){if(0===V.length)return;const i=V.find(a=>this.isJsonMime(a));return void 0===i?V[0]:i}isJsonMime(V){const i=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==V&&(i.test(V)||"application/json-patch+json"===V.toLowerCase())}lookupCredential(V){const i=this.credentials[V];return"function"==typeof i?i():i}}let E=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}convertAttributeToNonunique(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}convertAttributeToUnique(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}createAttributeDefinition(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteAttributeDefinition(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attribute"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteAttributeDefinitions(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attributes[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllAttributeDefinitions(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAttribute(i,a,d,l,s,r,t,n,o,c,h,x="body",We=!1,At){let Ht=new e.LE({encoder:this.encoder});null!=i&&(Ht=this.addToHttpParams(Ht,i,"attributeName")),null!=a&&(Ht=this.addToHttpParams(Ht,a,"attributeId")),null!=d&&(Ht=this.addToHttpParams(Ht,d,"facility")),null!=l&&(Ht=this.addToHttpParams(Ht,l,"user")),null!=s&&(Ht=this.addToHttpParams(Ht,s,"vo")),null!=r&&(Ht=this.addToHttpParams(Ht,r,"resource")),null!=t&&(Ht=this.addToHttpParams(Ht,t,"member")),null!=n&&(Ht=this.addToHttpParams(Ht,n,"group")),null!=o&&(Ht=this.addToHttpParams(Ht,o,"host")),null!=c&&(Ht=this.addToHttpParams(Ht,c,"userExtSource")),null!=h&&(Ht=this.addToHttpParams(Ht,h,"key"));let Ut,lt=this.defaultHeaders;Ut=this.configuration.lookupCredential("BasicAuth"),Ut&&(lt=lt.set("Authorization","Basic "+Ut)),Ut=this.configuration.lookupCredential("BearerAuth"),Ut&&(lt=lt.set("Authorization","Bearer "+Ut));let mt=At&&At.httpHeaderAccept;void 0===mt&&(mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==mt&&(lt=lt.set("Accept",mt));let Lt=At&&At.context;void 0===Lt&&(Lt=new e.qT);let we="json";return mt&&(we=mt.startsWith("text")?"text":this.configuration.isJsonMime(mt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Lt,params:Ht,responseType:we,withCredentials:this.configuration.withCredentials,headers:lt,observe:x,reportProgress:We})}getAttributeDefinitionById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributeDefinitionByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributeDefinitionsByNamespace(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"namespace"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==a)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"format")),null!=a&&(r=this.addToHttpParams(r,a,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAttributeModulesDependenciesGraphText(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"format"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributePolicyCollections(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributeRights(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAttributesDefinitionWithRights(i,a,d,l,s,r,t,n,o="body",c=!1,h){let x=new e.LE({encoder:this.encoder});null!=i&&(x=this.addToHttpParams(x,i,"member")),null!=a&&(x=this.addToHttpParams(x,a,"user")),null!=d&&(x=this.addToHttpParams(x,d,"vo")),null!=l&&(x=this.addToHttpParams(x,l,"group")),null!=s&&(x=this.addToHttpParams(x,s,"resource")),null!=r&&(x=this.addToHttpParams(x,r,"facility")),null!=t&&(x=this.addToHttpParams(x,t,"host")),null!=n&&(x=this.addToHttpParams(x,n,"userExtSource"));let At,We=this.defaultHeaders;At=this.configuration.lookupCredential("BasicAuth"),At&&(We=We.set("Authorization","Basic "+At)),At=this.configuration.lookupCredential("BearerAuth"),At&&(We=We.set("Authorization","Bearer "+At));let Ht=h&&h.httpHeaderAccept;void 0===Ht&&(Ht=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ht&&(We=We.set("Accept",Ht));let lt=h&&h.context;void 0===lt&&(lt=new e.qT);let Ut="json";return Ht&&(Ut=Ht.startsWith("text")?"text":this.configuration.isJsonMime(Ht)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:lt,params:x,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:We,observe:o,reportProgress:c})}getEntitylessAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessAttributesByKey(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"key"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getEntitylessAttributesByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attrName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getEntitylessAttributesWithKeys(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attrName")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessKeys(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityResourceUserMemberAttributes(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=a&&(n=this.addToHttpParams(n,a,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"user")),null!=l&&(n=this.addToHttpParams(n,l,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getFacilityUserAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==a)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupResourceAttributeById(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributeByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLogins(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMemberAndUserAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==a)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAndUserAttributesByNames(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMemberAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAndUserAttributesByNames(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=a&&(n=this.addToHttpParams(n,a,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getMemberGroupAttributeById(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributeByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAttributesByNames(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=a&&(n=this.addToHttpParams(n,a,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getMemberResourceAttributeById(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributeByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesDefinition(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRequiredAttributesFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRequiredAttributesFacilityService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesFacilityServices(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesGroupResourceService(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesHostService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==a)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMemberGroup(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"service")),null!=a&&(o=this.addToHttpParams(o,a,"resource")),null!=d&&(o=this.addToHttpParams(o,d,"group")),null!=l&&(o=this.addToHttpParams(o,l,"member")),null!=s&&(o=this.addToHttpParams(o,s,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getRequiredAttributesMemberGroupService(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=a&&(n=this.addToHttpParams(n,a,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberResourceService(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=a&&(n=this.addToHttpParams(n,a,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getRequiredAttributesResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRequiredAttributesResourceService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesResourceServices(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRequiredAttributesUserFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesVoService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourceAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"resource")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithGroupAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=a&&(n=this.addToHttpParams(n,a,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getResourceGroupAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupMemberAttributesByNames(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=a&&(n=this.addToHttpParams(n,a,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getUserAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserExtSourceAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserFacilityAttributeById(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributeByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==a)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(i,a,d,l,s,r,t="body",n=!1,o){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"facility")),null!=a&&(c=this.addToHttpParams(c,a,"resource")),null!=d&&(c=this.addToHttpParams(c,d,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=s&&(c=this.addToHttpParams(c,s,"member")),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"attributes[]")});let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=o&&o.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=o&&o.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"facility")),null!=a&&(o=this.addToHttpParams(o,a,"resource")),null!=d&&(o=this.addToHttpParams(o,d,"user")),null!=l&&(o=this.addToHttpParams(o,l,"member")),s&&s.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"attributes[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}removeEntitylessAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupResourceAttribute(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=a&&(n=this.addToHttpParams(n,a,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithGroupAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}removeHostAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttribute(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=a&&(n=this.addToHttpParams(n,a,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}removeMemberResourceAttribute(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberResourceAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeResourceAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUesAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSourceAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserFacilityAttribute(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeUserFacilityAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeVoAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==a)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setAttributePolicyCollections(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setAttributeRights(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setEntitylessAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setFacilityAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setFacilityAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setFacilityResourceUserMemberAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setFacilityUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setGroupAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setGroupAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setGroupResourceAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setGroupResourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setHostAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setHostAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberGroupAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberGroupAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberGroupWithUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberResourceAndUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberResourceAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberResourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setMemberWithUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setResourceAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setResourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setResourceGroupAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setResourceGroupWithGroupAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserExtSourceAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserExtSourceAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserFacilityAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setUserFacilityAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setVoAttribute(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setVoAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateAttributeDefinition(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),C=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}auditMessagesManagerLog(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"msg"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}createAuditerConsumer(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllAuditerConsumers(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAuditerMessagesCount(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getLastMessageId(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getMessages(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMessagesByCount(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMessagesPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}pollConsumerMessages(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}setLastProcessedId(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==a)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consumerName")),null!=a&&(r=this.addToHttpParams(r,a,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),R=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}getAllPolicies(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllRolesManagementRules(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAuthzAdminGroups(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==a)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"role")),null!=a&&(t=this.addToHttpParams(t,a,"complementaryObjectId")),null!=d&&(t=this.addToHttpParams(t,d,"complementaryObjectName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAuthzRichAdmins(i,a,d,l,s,r,t="body",n=!1,o){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==a)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"role")),null!=a&&(c=this.addToHttpParams(c,a,"complementaryObjectId")),null!=d&&(c=this.addToHttpParams(c,d,"complementaryObjectName")),l&&l.forEach(lt=>{c=this.addToHttpParams(c,lt,"specificAttributes")}),null!=s&&(c=this.addToHttpParams(c,s,"allUserAttributes")),null!=r&&(c=this.addToHttpParams(c,r,"onlyDirectAdmins"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=o&&o.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=o&&o.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupRoleNames(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupRoles(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"groupId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupsWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLoggedUser(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getMembersWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getPerunPrincipal(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getPrincipalRoleNames(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getResourcesWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserRoleNames(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserRoles(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVosWhereUserIsInRoles(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isFacilityAdmin(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}isGroupAdmin(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}isPerunAdmin(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}isVoAdmin(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}keepAlive(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}loadAuthorizationComponents(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}setRoleWithGroupComplementaryObject(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setRoleWithUserComplementaryObject(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}unsetRoleWithGroupComplementaryObject(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}unsetRoleWithUserComplementaryObject(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),m=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}changeConsentStatus(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==a)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consent")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}evaluateConsentsForConsentHub(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}evaluateConsentsForService(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllConsentHubs(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllConsents(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getConsentById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentForUserAndConsentHub(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==a)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==d)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"consentHub")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getConsentHubByFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentHubById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentHubByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentsForConsentHub(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentsForConsentHubWithStatus(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==a)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consentHub")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getConsentsForUserAndConsentHub(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==a)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUserWithStatus(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==a)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateConsentHub(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),P=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addExtSourceWithGroupSource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==a)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addExtSourceWithVoSource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==a)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createExtSourceFromExtSourceObject(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createExtSourceWithNameType(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==a)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=a&&(r=this.addToHttpParams(r,a,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteExtSource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getExtSourceById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getExtSourceByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getExtSources(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getGroupExtSources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoExtSources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}loadExtSourcesDefinitions(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}removeExtSourceWithGroupSource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==a)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeExtSourceWithVoSource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==a)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),W=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addFacilityAdminGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminGroupByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUserByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwner(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByOwnerName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHost(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==a)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==a)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHosts(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==a)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostsByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==a)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeam(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==a)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeamByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==a)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesByDestinationName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceDestinationNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersByDestinationName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceDestinationNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwners(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersByDestinationName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceDestinationNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==a)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==a)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=a&&(r=this.addToHttpParams(r,a,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=a&&(r=this.addToHttpParams(r,a,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacilityByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllFacilities(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllowedGroups(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedGroupsByFacilityName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedRichGroupsWithAttributes(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getAllowedUsersOfFacility(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedVos(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllowedVosByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedFacilitiesByGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedFacilitiesByMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedFacilitiesByService(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedFacilitiesByUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResourcesByAssignedServiceForFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==a)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedResourcesForFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResourcesForFacilityByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesForFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesForFacilityAndService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");if(null==a)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesForFacilityAndService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedRichResourcesForFacilityByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedSecurityTeams(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedSecurityTeamsByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedUsers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedUsersByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getBansForFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facilityId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getBansForUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getEnrichedFacilities(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getEnrichedHosts(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==a)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=a&&(r=this.addToHttpParams(r,a,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByDestination(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilitiesByHostName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilitiesByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilitiesCount(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getFacilitiesWhereUserIsAdmin(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityAdminGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityAdminUsers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAdminUsersByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBan(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBanById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityForHost(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityOwners(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityOwnersByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHosts(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostsByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostsByHostname(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostsCount(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getHostsCountByFacilityName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getOwnerFacilities(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichFacilities(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}removeBanByUserIdFacilityId(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroupByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUserByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityBanById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeFacilityOwner(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByOwnerName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==a)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHost(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeHostByHostname(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeHosts(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==a)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostsByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==a)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeam(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==a)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeamByFacilityName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==a)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setFacilityBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFacilityBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Ae=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==a)throw new Error("Required parameter member was null or undefined when calling addMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=a&&(r=this.addToHttpParams(r,a,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addMembers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==a)throw new Error("Required parameter members was null or undefined when calling addMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupToHierarchicalVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}canExtendMembershipInGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==a)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupUnion(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==a)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=a&&(r=this.addToHttpParams(r,a,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupWithParentGroupNameDescription(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==a)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"parentGroup")),null!=a&&(t=this.addToHttpParams(t,a,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createGroupWithVoNameDescription(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==a)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=a&&(t=this.addToHttpParams(t,a,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deleteGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}disallowGroupToHierarchicalVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}extendMembershipInGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==a)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}forceAllSubGroupsSynchronization(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}forceGroupStructureSynchronization(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}forceGroupSynchronization(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllGroupsFromAllVos(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllMemberGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllRichGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllRichGroupsWithAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==a)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMemberById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==a)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupMembersCount(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupMembersCountsByGroupStatus(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupMembersCountsByVoStatus(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupRichMembersByIds(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==a)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"members[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupUnions(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==a)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupsPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getIndirectMembershipPaths(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==a)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichGroupByIdWithAttributesByNames(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"groupId")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSubgroupsPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==a)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isAllowedGroupToHierarchicalVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isGroupMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==a)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let r=new e.LE({encoder:this.encoder});null!=a&&(r=this.addToHttpParams(r,a,"destinationGroup")),null!=i&&(r=this.addToHttpParams(r,i,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupUnion(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==a)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=a&&(r=this.addToHttpParams(r,a,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==a)throw new Error("Required parameter member was null or undefined when calling removeMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=a&&(r=this.addToHttpParams(r,a,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMembers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==a)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setGroupsMemberStatus(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==a)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==d)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"group")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Me=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}canExtendMembership(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}createMemberForCandidate(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createMemberForUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createMemberFromExtSource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createSpecificMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createSponsoredMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createSponsoredMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createSponsoredMembersFromCSV(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"members[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}extendMembership(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}findCompleteRichMembersByAttributes(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==a)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")}),null!=a&&(t=this.addToHttpParams(t,a,"searchString")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCompleteRichMembersForGroup(i,a,d,l,s,r,t="body",n=!1,o){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==a)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"group")),a&&a.forEach(lt=>{c=this.addToHttpParams(c,lt,"attrsNames[]")}),s&&s.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedStatuses[]")}),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedGroupStatuses[]")}),null!=d&&(c=this.addToHttpParams(c,d,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=o&&o.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=o&&o.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}findCompleteRichMembersForVo(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==a)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}findMembersInVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==a)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findSponsoredCompleteRichMembersForVo(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==a)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString")),null!=l&&(n=this.addToHttpParams(n,l,"onlySponsored"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getAllMembers(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllNamespacesRules(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllSponsoredMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getCompleteRichMembersForGroup(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==a)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"group")),d&&d.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"allowedStatuses[]")}),l&&l.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"allowedGroupStatuses[]")}),null!=a&&(o=this.addToHttpParams(o,a,"lookingInParentGroup")),s&&s.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"attrsNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getCompleteRichMembersForGroupResource(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=a&&(n=this.addToHttpParams(n,a,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getCompleteRichMembersForVo(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")});let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==a)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==d)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=a&&(t=this.addToHttpParams(t,a,"extLogin")),null!=d&&(t=this.addToHttpParams(t,d,"extSourceName"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMemberByUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembers(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembersByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMembersByUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMembersCount(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMembersPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getMembersWithStatusCount(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==a)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichMemberWithAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichMembersByIds(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"ids[]")}),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMembersNoUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getSponsoredMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getSponsoredMembersAndTheirSponsors(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByVo(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==a)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=a&&(n=this.addToHttpParams(n,a,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}moveMembership(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==a)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==d)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=a&&(t=this.addToHttpParams(t,a,"sourceUser")),null!=d&&(t=this.addToHttpParams(t,d,"targetUser"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeSponsor(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==a)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendAccountActivationLinkEmail(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=a&&(n=this.addToHttpParams(n,a,"namespace")),null!=d&&(n=this.addToHttpParams(n,d,"emailAttributeURN")),null!=l&&(n=this.addToHttpParams(n,l,"language"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"member")),null!=a&&(o=this.addToHttpParams(o,a,"namespace")),null!=d&&(o=this.addToHttpParams(o,d,"emailAttributeURN")),null!=l&&(o=this.addToHttpParams(o,l,"language")),null!=s&&(o=this.addToHttpParams(o,s,"baseUrl"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}setSponsoredMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setSponsorshipForMember(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==a)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"sponsoredMember")),null!=a&&(t=this.addToHttpParams(t,a,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}setStatus(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==a)throw new Error("Required parameter status was null or undefined when calling setStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sponsorMember(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==a)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateSponsorshipValidity(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==a)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=a&&(t=this.addToHttpParams(t,a,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}validateMemberAsync(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),he=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}createOwner(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteOwner(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"owner")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllOwners(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getOwnerById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getOwnerByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),De=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}sentMessageToRTWithMemberQueue(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==a)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"memberId")),null!=a&&(n=this.addToHttpParams(n,a,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}sentMessageToRTWithQueue(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"queue")),null!=a&&(t=this.addToHttpParams(t,a,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVo(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==a)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"voId")),null!=a&&(t=this.addToHttpParams(t,a,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVoQueue(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==a)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"voId")),null!=a&&(n=this.addToHttpParams(n,a,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"text"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),T=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addApplicationMailForGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}addApplicationMailForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}addGroupsToAutoRegistration(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}approveApplication(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}checkForSimilarUsersWithAuthInfo(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}consolidateIdentityUsingToken(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}copyFormFromGroupToGroup(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=a&&(r=this.addToHttpParams(r,a,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromGroupToVo(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=a&&(r=this.addToHttpParams(r,a,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToGroup(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=a&&(r=this.addToHttpParams(r,a,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToVo(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=a&&(r=this.addToHttpParams(r,a,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToGroup(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=a&&(r=this.addToHttpParams(r,a,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToVo(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=a&&(r=this.addToHttpParams(r,a,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToGroup(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=a&&(r=this.addToHttpParams(r,a,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToVo(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=a&&(r=this.addToHttpParams(r,a,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createApplicationFormInGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}createApplicationFormInVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteApplication(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteApplicationMailForGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==a)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteApplicationMailForVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==a)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroupsFromAutoRegistration(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getApplicationById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getApplicationDataById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getApplicationMailsForGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getApplicationMailsForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getApplicationsForGroup(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getApplicationsForMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getApplicationsForVo(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getApplicationsPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getConsolidatorToken(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getFormItemsForGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFormItemsForGroupWithType(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFormItemsForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFormItemsForVoWithType(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupApplicationForm(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupsToAutoRegistration(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoApplicationForm(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}rejectApplication(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),null!=a&&(r=this.addToHttpParams(r,a,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendInvitation(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==a)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=d&&(n=this.addToHttpParams(n,d,"voId")),null!=l&&(n=this.addToHttpParams(n,l,"name")),null!=i&&(n=this.addToHttpParams(n,i,"email")),null!=a&&(n=this.addToHttpParams(n,a,"language"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}sendInvitationForGroup(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==a)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let o=new e.LE({encoder:this.encoder});null!=d&&(o=this.addToHttpParams(o,d,"voId")),null!=l&&(o=this.addToHttpParams(o,l,"groupId")),null!=s&&(o=this.addToHttpParams(o,s,"name")),null!=i&&(o=this.addToHttpParams(o,i,"email")),null!=a&&(o=this.addToHttpParams(o,a,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}sendInvitationGroupToExistingUser(i,a,d,l="body",s=!1,r){let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"userId")),null!=a&&(t=this.addToHttpParams(t,a,"voId")),null!=d&&(t=this.addToHttpParams(t,d,"groupId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sendInvitationToExistingUser(i,a,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userId")),null!=a&&(r=this.addToHttpParams(r,a,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendMessage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}setSendingEnabled(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}submitApplication(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateApplicationMail(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateForm(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFormItemData(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFormItemsData(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFormItemsForGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateFormItemsForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}verifyApplication(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),N=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}activateGroupResourceAssignment(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=a&&(t=this.addToHttpParams(t,a,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}addAdminToGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addAdminToUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==a)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupsToResources(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==a)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"groups[]")}),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"resources[]")}),null!=d&&(t=this.addToHttpParams(t,d,"async"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}assignGroupToResource(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"group")),null!=a&&(o=this.addToHttpParams(o,a,"resource")),null!=d&&(o=this.addToHttpParams(o,d,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=s&&(o=this.addToHttpParams(o,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupToResources(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==a)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"group")),a&&a.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"resources[]")}),null!=d&&(o=this.addToHttpParams(o,d,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=s&&(o=this.addToHttpParams(o,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupsToResource(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let o=new e.LE({encoder:this.encoder});i&&i.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"groups[]")}),null!=a&&(o=this.addToHttpParams(o,a,"resource")),null!=d&&(o=this.addToHttpParams(o,d,"async")),null!=l&&(o=this.addToHttpParams(o,l,"assignInactive")),null!=s&&(o=this.addToHttpParams(o,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignResourceTagToResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}assignService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==a)throw new Error("Required parameter service was null or undefined when calling assignService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServices(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==a)throw new Error("Required parameter services was null or undefined when calling assignServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServicesPackage(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==a)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createResource(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==d)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=a&&(n=this.addToHttpParams(n,a,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"name")),null!=l&&(n=this.addToHttpParams(n,l,"description"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}createResourceTagWithResourceTag(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createResourceTagWithTagName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"tagName")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deactivateGroupResourceAssignment(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteAllResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteAllResourcesTagsForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}deleteResourceTag(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getAdminGroups(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAdmins(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==a)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllResourcesByResourceTag(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getAllResourcesTagsForResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllResourcesTagsForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllResourcesWhereUserIsAdmin(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllowedMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllowedResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllowedUsersOfResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedGroups(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedMembersWithStatus(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResourcesWithGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResourcesWithMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResourcesWithStatus(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichMembers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesWithGroup(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesWithMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesWithMemberService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==a)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedServicesToResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getBansForMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getBansForResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getEnrichedResourceById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupAssignments(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAssignments(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBan(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBanById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourceById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourceByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==d)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"name"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourcesByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourcesCountForAll(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getResourcesCountForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==a)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourcesWhereGroupIsAdmin(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourcesWhereUserIsAdmin(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=a&&(t=this.addToHttpParams(t,a,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"user"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRichAdmins(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==a)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),a&&a.forEach(At=>{n=this.addToHttpParams(n,At,"specificAttributes")}),null!=d&&(n=this.addToHttpParams(n,d,"allUserAttributes")),null!=l&&(n=this.addToHttpParams(n,l,"onlyDirectAdmins"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getRichResourceById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichResourcesByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeAllResourceTagsFromResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeBanByMemberAndResource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAdminResource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResources(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==a)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupsFromResource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceBanById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeResourceSelfServiceGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==a)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceSelfServiceUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceTagFromResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}removeService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==a)throw new Error("Required parameter service was null or undefined when calling removeService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServices(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==a)throw new Error("Required parameter services was null or undefined when calling removeServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServicesPackage(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==a)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAdminResource(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setResourceBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}unallowGroupsFromResources(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==a)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateResource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateResourceBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateResourceTag(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),j=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}getAttributesMatchResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getAttributesResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getFacilities(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getMembersByUserAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getUsersSearcher(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Y=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addDestination(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"service")),null!=a&&(o=this.addToHttpParams(o,a,"facility")),null!=d&&(o=this.addToHttpParams(o,d,"destination")),null!=l&&(o=this.addToHttpParams(o,l,"type")),null!=s&&(o=this.addToHttpParams(o,s,"propagationType"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}addDestinationToMultipleServices(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addDestinationsForAllServicesOnFacility(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==d)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=a&&(n=this.addToHttpParams(n,a,"destination")),null!=d&&(n=this.addToHttpParams(n,d,"type")),null!=l&&(n=this.addToHttpParams(n,l,"propagationType"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}addRequiredAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addRequiredAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addServiceToServicesPackage(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==a)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnDestinationById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}blockAllServicesOnDestinationByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==a)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=a&&(r=this.addToHttpParams(r,a,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}blockServiceOnDestination(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockServiceOnDestinationWithNameAndType(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=a&&(t=this.addToHttpParams(t,a,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}blockServiceOnFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createService(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==a)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==d)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"name")),null!=a&&(t=this.addToHttpParams(t,a,"description")),null!=d&&(t=this.addToHttpParams(t,d,"script"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createServiceWithService(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createServicesPackage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}createServicesPackageByNameAndDescription(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==a)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=a&&(r=this.addToHttpParams(r,a,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteService(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling deleteService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteServicesPackage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}forceServicePropagation(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllDestinations(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getAllRichDestinationsForFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllRichDestinationsForService(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedResources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedServices(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedServicesVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServicesVo.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling getAssignedServicesVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices/f-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDataWithGroups(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDataWithVos(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getDestinations(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationsCount(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getFacilitiesDestinations(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityAssignedServicesForGUI(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFlatData(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHashedDataWithGroups(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHashedHierarchicalData(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=a&&(t=this.addToHttpParams(t,a,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHierarchicalData(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichDestinations(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getServiceById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServiceByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServices(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getServicesBlockedOnDestination(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesBlockedOnFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesByAttributeDefinition(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesFromServicesPackage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesPackageById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesPackageByName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getServicesPackages(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}isServiceBlockedOnDestination(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isServiceBlockedOnFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}planServicePropagation(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllDestinations(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllRequiredAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeDestination(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=a&&(n=this.addToHttpParams(n,a,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"destination")),null!=l&&(n=this.addToHttpParams(n,l,"type"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}removeRequiredAttribute(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==a)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeRequiredAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==a)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServiceFromServicesPackage(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==a)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=a&&(r=this.addToHttpParams(r,a,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnDestinationById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}unblockAllServicesOnDestinationByName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==a)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=a&&(r=this.addToHttpParams(r,a,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}unblockServiceOnDestinationById(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockServiceOnDestinationByName(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=a&&(t=this.addToHttpParams(t,a,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}unblockServiceOnFacility(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateService(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateServicesPackage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),ee=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}countTasks(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}deleteTask(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteTaskResultById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteTaskResultsIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteTaskResultsNames(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getAllFacilitiesStates(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAllResourcesState(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"voId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityServicesState(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getFacilityState(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTask(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTaskResultById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"taskResult"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTaskResults(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getTaskResultsByTask(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTaskResultsForDestinations(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"destinations[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTaskResultsForGUIByTask(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getTaskResultsForGUIByTaskAndDestination(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==a)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"task")),null!=a&&(r=this.addToHttpParams(r,a,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}isThereSuchTask(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}listAllTasks(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}listAllTasksForFacility(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}suspendTasksPropagation(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"suspend"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),de=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addSpecificUserOwner(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==a)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addUserExtSource(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}anonymizeUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}changeNonAuthzPasswordByToken(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==a)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"token")),null!=a&&(t=this.addToHttpParams(t,a,"password")),null!=d&&(t=this.addToHttpParams(t,d,"lang"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}changePasswordForLogin(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"login")),null!=a&&(o=this.addToHttpParams(o,a,"namespace")),null!=d&&(o=this.addToHttpParams(o,d,"newPassword")),null!=l&&(o=this.addToHttpParams(o,l,"oldPassword")),null!=s&&(o=this.addToHttpParams(o,s,"checkOldPassword"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}changePasswordForUser(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"user")),null!=a&&(o=this.addToHttpParams(o,a,"namespace")),null!=d&&(o=this.addToHttpParams(o,d,"newPassword")),null!=l&&(o=this.addToHttpParams(o,l,"oldPassword")),null!=s&&(o=this.addToHttpParams(o,s,"checkOldPassword"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}checkPasswordResetRequestByTokenIsValid(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}checkPasswordStrength(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"password")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createAlternativePassword(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==a)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==d)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=a&&(n=this.addToHttpParams(n,a,"description")),null!=d&&(n=this.addToHttpParams(n,d,"loginNamespace")),null!=l&&(n=this.addToHttpParams(n,l,"password"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}createServiceUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteAlternativePassword(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==a)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==d)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"loginNamespace")),null!=d&&(t=this.addToHttpParams(t,d,"passwordId"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deletePasswordForLogin(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deletePasswordForUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findRichUsers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}findRichUsersWithAttributes(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"searchString")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findUsers(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}generateAccountForName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"namespace")),null!=a&&(r=this.addToHttpParams(r,a,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichUsersWithAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"includedSpecificUsers"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getAssignedRichResourcesForUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==a)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsForResourceWhereUserIsActive(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==a)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==a)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsWhereUserIsAdmin(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getPendingPreferredEmailChanges(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichUserExtSources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichUserWithAttributes(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichUsersByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichUsersWithAttributesByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichUsersWithoutVoWithAttributes(i,a="body",d=!1,l){let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrsNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getSpecificUsersByUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getSponsorsForMember(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),a&&a.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsForMemberByVoAndLogin(i,a,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==a)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=a&&(n=this.addToHttpParams(n,a,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(o=o.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:o,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==a)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extLogin")),null!=a&&(r=this.addToHttpParams(r,a,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==a)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extSourceName")),null!=a&&(r=this.addToHttpParams(r,a,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==a)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeId")),null!=a&&(r=this.addToHttpParams(r,a,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==a)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=a&&(r=this.addToHttpParams(r,a,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSources(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUserExtSourcesByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUsers(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getUsersByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUsersBySpecificUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"specificUser"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getUsersPage(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}getVosWhereUserIsAdmin(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVosWhereUserIsMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}isLoginAvailable(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==a)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"loginNamespace")),null!=a&&(r=this.addToHttpParams(r,a,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}loginExist(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSpecificUserOwner(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==a)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSource(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==a)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"userExtSource")),null!=d&&(t=this.addToHttpParams(t,d,"force"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}requestPreferredEmailChange(i,a,d,l,s,r,t="body",n=!1,o){if(null==i)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==a)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"user")),null!=a&&(c=this.addToHttpParams(c,a,"email")),null!=d&&(c=this.addToHttpParams(c,d,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=s&&(c=this.addToHttpParams(c,s,"customUrl")),null!=r&&(c=this.addToHttpParams(c,r,"idpFilter"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=o&&o.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=o&&o.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}reservePasswordForLogin(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"login")),null!=a&&(t=this.addToHttpParams(t,a,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reservePasswordForUser(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=a&&(t=this.addToHttpParams(t,a,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reserveRandomPassword(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateUser(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateUserExtSourceLastAccess(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}validatePasswordForLogin(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePasswordForUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==a)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=a&&(r=this.addToHttpParams(r,a,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePreferredEmailChangeWithToken(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==a)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"token")),null!=a&&(r=this.addToHttpParams(r,a,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),ce=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}getAppsConfig(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getGuiConfiguration(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getPerunRPCVersion(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getPerunStatistics(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getPerunStatus(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getPerunSystemTimeInMillis(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})(),Fe=(()=>{class ${constructor(i,a,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof a&&(a=this.basePath),this.configuration.basePath=a),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,a,d){return"object"!=typeof a||a instanceof Date?this.addToHttpParamsRecursive(i,a,d):this.addToHttpParamsRecursive(i,a)}addToHttpParamsRecursive(i,a,d){if(null==a)return i;if("object"==typeof a)if(Array.isArray(a))a.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(a instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,a.toISOString().substr(0,10))}else Object.keys(a).forEach(l=>i=this.addToHttpParamsRecursive(i,a[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,a)}return i}addMemberVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==a)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithName(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==a)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=a&&(r=this.addToHttpParams(r,a,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}deleteVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findCandidates(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==a)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"id")),null!=a&&(t=this.addToHttpParams(t,a,"searchString")),null!=d&&(t=this.addToHttpParams(t,d,"maxNumOfResults"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCandidatesForGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==a)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=a&&(r=this.addToHttpParams(r,a,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllVos(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getCompleteCandidatesForGroup(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getCompleteCandidatesForVo(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==a)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),a&&a.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getEnrichedVoById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMemberVos(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getMyEnrichedVos(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getMyVos(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}getParentVos(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getRichAdminsForVo(i,a,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==a)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let o=new e.LE({encoder:this.encoder});null!=i&&(o=this.addToHttpParams(o,i,"vo")),null!=a&&(o=this.addToHttpParams(o,a,"role")),d&&d.forEach(Ht=>{o=this.addToHttpParams(o,Ht,"specificAttributes")}),null!=l&&(o=this.addToHttpParams(o,l,"allUserAttributes")),null!=s&&(o=this.addToHttpParams(o,s,"onlyDirectAdmins"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:We,params:o,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getVoAdminGroups(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==a)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAdminUsers(i,a,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==a)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=a&&(t=this.addToHttpParams(t,a,"role")),null!=d&&(t=this.addToHttpParams(t,d,"onlyDirectAdmins"));let o,n=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(n=n.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(n=n.set("Authorization","Bearer "+o));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getVoBanById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoBanForMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoBansForVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoById(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoByShortName(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"shortName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVoMembersCountsByStatus(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVosByIds(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}getVosCount(i="body",a=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:a})}removeMemberVo(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==a)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminGroup(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==a)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminUser(i,a,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==a)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=a&&(r=this.addToHttpParams(r,a,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let o=s&&s.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(t=t.set("Accept",o));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return o&&(h=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}removeVoBanForMember(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let o=l&&l.context;void 0===o&&(o=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:o,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:a,reportProgress:d})}setVoBan(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}updateVo(i,a="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:a,reportProgress:d})}}return $.\u0275fac=function(i){return new(i||$)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},$.\u0275prov=_.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const ve={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},pe={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let _e=(()=>{class ${constructor(i,a){if(i)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!a)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(i){return{ngModule:$,providers:[{provide:A,useFactory:i}]}}}return $.\u0275fac=function(i){return new(i||$)(_.LFG($,12),_.LFG(e.eN,8))},$.\u0275mod=_.oAB({type:$}),$.\u0275inj=_.cJS({providers:[],imports:[[]]}),$})()},19516:(Qe,be,p)=>{"use strict";p.d(be,{bY:()=>W.b,r5:()=>A.r,d4:()=>_,dp:()=>w.d});var e=p(69808),b=p(5e3);let _=(()=>{class ie{}return ie.\u0275fac=function(q){return new(q||ie)},ie.\u0275mod=b.oAB({type:ie}),ie.\u0275inj=b.cJS({imports:[[e.ez]]}),ie})();var w=p(31359),A=(p(34447),p(82895)),W=(p(12856),p(20919),p(5865),p(53561),p(16119),p(7598),p(9954),p(4765))},34447:(Qe,be,p)=>{"use strict";p.d(be,{a:()=>w});var e=p(32080),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.translate=E,this.storage=C}transform(E,C="en"){const R=this.storage.get("custom_labels");if(R)for(const I of R)if(I.label===E)return I[C];return E}}return g.\u0275fac=function(E){return new(E||g)(b.Y36(_.sK,16),b.Y36(e.d6,16))},g.\u0275pipe=b.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},4765:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.namespace.includes("virt")||g.namespace.includes("core")||g.namespace.includes("entityless")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"disableUniqueAttribute",type:_,pure:!0}),_})()},82895:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g,A){return A?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"getResourceRoute",type:_,pure:!0}),_})()},28764:(Qe,be,p)=>{"use strict";p.d(be,{F:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const I=R.value;if("true"===C.value){const O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),P=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"red":null!==ie&&ie.trim().length>0?"green":""}if(I){const O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"red":null!==ie&&ie.trim().length>0?"green":""}return""}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:(Qe,be,p)=>{"use strict";p.d(be,{J:()=>w});var e=p(64080),b=p(9244),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"";const C=(0,b.IL)(E.attributes,e.r.GROUP_SYNC_ENABLED),R=(0,b.IL)(E.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===R)return"";const I=R.value;if("true"===C.value){const O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_STATE),P=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"sync_problem":(null!==ie&&ie.trim(),"sync")}if(I){const O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"sync_problem":(null!==ie&&ie.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),R=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===R)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const I=R.value;if("true"===C.value){const O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),P=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ie&&ie.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(I){const O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),P=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),W=O.value,ie=P.value;return null!=W&&W.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ie&&ie.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},20919:(Qe,be,p)=>{"use strict";p.d(be,{D:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.g$)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:(Qe,be,p)=>{"use strict";p.d(be,{p:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.lt)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:(Qe,be,p)=>{"use strict";p.d(be,{M:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.Gw)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},69773:(Qe,be,p)=>{"use strict";p.d(be,{u:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIconColor",type:_,pure:!0}),_})()},21757:(Qe,be,p)=>{"use strict";p.d(be,{f:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:_,pure:!0}),_})()},12856:(Qe,be,p)=>{"use strict";p.d(be,{i:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A,E){var C,R;let I=null,m=null;A.memberAttributes&&(I=A.memberAttributes.find(P=>"membershipExpiration"===P.friendlyName),m=A.memberAttributes.find(P=>"groupMembershipExpiration"===P.friendlyName));let O="";return O=E?`\n Group status: ${(0,e.Oe)(A.groupStatus)}, Expiration: ${null!==(C=null==m?void 0:m.value)&&void 0!==C?C:"never"}`:A.memberAttributes?`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}, Expiration: ${null!==(R=null==I?void 0:I.value)&&void 0!==R?R:"never"}`:`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}`,O}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberStatusTooltip",type:w,pure:!0}),w})()},20551:(Qe,be,p)=>{"use strict";p.d(be,{l:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace("VALID","ACTIVE")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatus",type:_,pure:!0}),_})()},64597:(Qe,be,p)=>{"use strict";p.d(be,{R:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:_,pure:!0}),_})()},62383:(Qe,be,p)=>{"use strict";p.d(be,{M:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{transform(A,E){return"voRules"===A?"Vo rules":"groupRules"===A?"Group rules":A&&"never"!==A.toLowerCase()?(0,e.p6)(A.replace(" ","T"),"d.M.yyyy "+(E?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:(Qe,be,p)=>{"use strict";p.d(be,{J:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.te)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:(Qe,be,p)=>{"use strict";p.d(be,{S:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.kN)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:(Qe,be,p)=>{"use strict";p.d(be,{d:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"userFullName",type:_,pure:!0}),_})()},7598:(Qe,be,p)=>{"use strict";p.d(be,{g:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.$0)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:(Qe,be,p)=>{"use strict";p.d(be,{Z:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.OV)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userVo",type:w,pure:!0}),w})()},32080:(Qe,be,p)=>{"use strict";p.d(be,{yC:()=>ce,F5:()=>ee,sM:()=>Xe,eE:()=>pe,e8:()=>I,EB:()=>Me,Be:()=>Je,Hy:()=>D,ly:()=>ve,fb:()=>nt,xw:()=>te,x4:()=>w,v0:()=>W,SZ:()=>Fe,V6:()=>de,jq:()=>Se,BN:()=>ge,Ip:()=>Q,HV:()=>fe,d6:()=>E,UA:()=>Ve});var e=p(32105),b=p(45323),_=p(5e3);let w=(()=>{class Z{constructor(oe){this.authzSevice=oe,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(oe){this.principal=oe,this.initData(oe)}setPerunPolicies(oe){this.perunPolicies=oe}getPerunPolicies(){return this.perunPolicies}isAuthorized(oe,_e){if(null===this.principal.roles)return!1;const $=this.fetchPolicyWithAllIncludedPolicies(oe);let V=[];for(const a of $)V=V.concat(a.perunRoles);const i=this.fetchAllRelatedObjects(_e);return this.resolveAuthorization(V,i)}principalHasRole(oe,_e,$){let V=_e;return _e.startsWith("Rich")&&(V=_e.substring(4)),!(!this.principal.roles[oe]||!this.principal.roles[oe][V])&&this.principal.roles[oe][V].includes(Number($.toString()))}canManageFacilities(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER,b.u.FACILITYADMIN,b.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(b.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOADMIN)}isThisVoAdminOrObserver(oe){return this.editableVos.includes(Number(oe.toString()))||this.observableVos.includes(Number(oe.toString()))||this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isThisVoAdmin(oe){return this.editableVos.includes(oe)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(b.u.SPONSOR)}isThisGroupAdmin(oe){return this.editableGroups.includes(oe)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdminInThisVo(oe){return this.hasGroupInTheseVos.includes(oe)}isFacilityAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.FACILITYADMIN)}isThisFacilityAdmin(oe){return this.editableFacilities.includes(oe)||this.principalRoles.has(b.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(b.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOOBSERVER,b.u.PERUNOBSERVER)}isThisVoObserver(oe){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)||this.observableVos.includes(oe)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((oe,_e)=>{this.authzSevice.getAllRolesManagementRules().subscribe($=>{this.allRolesManagementRules=$,oe()},$=>_e($))})}assignAvailableRoles(oe,_e){this.allRolesManagementRules.forEach($=>{$.primaryObject===_e&&oe.push($.roleName)}),oe.sort(),"Vo"===_e&&this.voCustomSort(oe)}isManagerPagePrivileged(oe){const _e=[];let $=oe.beanName;$.startsWith("Rich")&&($=$.substring(4)),this.assignAvailableRoles(_e,$);const V=new Map;this.setRolesAuthorization(_e,oe,V);for(const i of V.values())if(i.readAuth||i.manageAuth)return!0;return!1}setRolesAuthorization(oe,_e,$){for(const V of oe){let i=[],a=[],d=[];for(const n of this.allRolesManagementRules)if(n.roleName===V){i=i.concat(n.privilegedRolesToRead),a=a.concat(n.privilegedRolesToManage);for(const o of Object.keys(n.entitiesToManage))d="User"===o?[o].concat(d):d.concat(o);break}const l=this.fetchAllRelatedObjects([_e]),s=this.resolveAuthorization(i,l),r=this.resolveAuthorization(a,l);$.set(V,{readAuth:s,manageAuth:r,modes:d})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(oe){for(const _e of this.allRolesManagementRules)if(_e.roleName===oe)return _e.primaryObject;return""}resolveAuthorization(oe,_e){for(const $ of oe){let V=!0;for(const i of Object.keys($)){const a=$[i];if(null===a)this.principalRoles.has(i)||(V=!1);else if(_e[a]){for(const d of _e[a])if(!this.principalHasRole(i,a,d)){V=!1;break}}else V=!1;if(!V)break}if(V)return!0}return!1}getPerunPolicy(oe){for(const _e of this.perunPolicies)if(_e.policyName===oe)return _e;return null}fetchAllRelatedObjects(oe){const _e={};for(const $ of oe){let V=$.beanName;switch($.beanName.startsWith("Rich")&&(V=$.beanName.substring(4)),_e[V]?_e[V].push($.id):_e[V]=[$.id],V){case"Member":_e.User?_e.User.push($.userId):_e.User=[$.userId],_e.Vo?_e.Vo.push($.voId):_e.Vo=[$.voId];break;case"Group":case"ResourceTag":_e.Vo?_e.Vo.push($.voId):_e.Vo=[$.voId];break;case"Resource":_e.Facility?_e.Facility.push($.facilityId):_e.Facility=[$.facilityId],_e.Vo?_e.Vo.push($.voId):_e.Vo=[$.voId]}}return _e}fetchPolicyWithAllIncludedPolicies(oe){const _e=new Map;let $=[];for($.push(oe);0!==$.length;){const i=$.shift();if(_e.has(i))continue;const a=this.getPerunPolicy(i);if(!a)return[];_e.set(i,a),$=$.concat(a.includePolicies)}const V=[];for(const i of _e.values())V.push(i);return V}voCustomSort(oe){for(let _e=0;_e{class Z{constructor(){this.branding=""}setInstanceConfig(oe){this.instanceConfig=oe}setDefaultConfig(oe){this.defaultConfig=oe}getAppsConfig(){return this.appsConfig}setAppsConfig(oe){this.appsConfig=oe}setPerunPrincipal(oe){this.principal=oe}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(oe){this.initialPageId=oe}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(oe){this.branding=oe}skipOidc(){return this.get("skip_oidc")}get(...oe){let _e;if(""!==this.branding){const $=this.instanceConfig.brandings[this.branding];for(let V=0;V{class Z{constructor(oe,_e,$,V,i){this.injector=oe,this.store=_e,this.dialog=$,this.route=V,this.oauthService=i,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(A.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(a=>{a.idpFilter&&(this.filterShortname=String(a.idpFilter))})}getClientConfig(){const oe=this.setIdpFilter(),V=.5+.25*Math.random(),i=oe?{acr_values:oe}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(i.prompt="consent"),sessionStorage.getItem("mfa_route")&&(i.acr_values="https://refeds.org/profile/mfa",i.prompt="login",i.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:V,customQueryParams:i}}setIdpFilter(){const oe=location.search.substring(1).split("&");this.filterShortname=null;const _e=this.store.get("oidc_client","filters");if(!_e)return null;let $=null;return oe.forEach(V=>{const i=V.split("=");"idpFilter"===i[0]&&_e[i[1]]&&(this.filterShortname=i[1],$=_e[i[1]])}),_e.default&&!$?(this.filterShortname="default",_e.default):$}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const oe=location.pathname,_e=location.search.substring(1);return"/api-callback"===oe?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(oe,_e).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(oe=>!!oe&&(this.oauthService.events.pipe((0,g.h)(_e=>"token_expires"===_e.type&&"access_token"===_e.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const oe=sessionStorage.getItem("mfa_route");if(oe)return this.router.navigate([oe],{replaceUrl:!0});let _e=sessionStorage.getItem("auth:redirect");const $=sessionStorage.getItem("auth:queryParams");let V=[];$&&(V=$.split("&"));const i={};return V.forEach(a=>{const d=a.split("=");i[d[0]]=d[1]}),(!_e||"/login"===_e)&&(_e="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),i.idpFilter&&(this.filterShortname=String(i.idpFilter)),this.router.navigate([_e],{queryParams:i,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(oe=>oe instanceof A.m2)).subscribe(()=>{const oe={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===oe.idpFilter?{}:oe,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(oe){const _e=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===oe)return!0;for(const $ of _e)if(oe.startsWith($))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(oe,_e){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then($=>!!$||(this.isPotentiallyValidPath(oe)?(sessionStorage.setItem("auth:redirect",oe),sessionStorage.setItem("auth:queryParams",_e),!1):new Promise((V,i)=>i("Invalid path"))))}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(_.zs3),_.LFG(E),_.LFG(C.uw),_.LFG(A.gz),_.LFG(R.Ct))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var m=p(51062);let O=(()=>{class Z{constructor(oe){this.dialogRef=oe}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.Y36(C.so))},Z.\u0275cmp=_.Xpm({type:Z,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(oe,_e){1&oe&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&oe&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[C.xY],pipes:[m.X$],styles:[""]}),Z})();var P=p(9244);let W=(()=>{class Z{constructor(oe,_e,$,V,i,a){this.authService=oe,this.storeService=_e,this.authResolver=$,this.authzService=V,this.dialog=i,this.router=a,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(oe){this.loginScreenShown=oe}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(oe=>oe(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(oe=>{if(null===oe.user){const _e=(0,P.kZ)();this.dialog.open(O,_e)}else{this.storeService.setPerunPrincipal(oe),this.authResolver.init(oe);const _e=localStorage.getItem("routeAuthGuard");_e&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([_e]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(oe=>{oe()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const oe=location.search.substr(1).split("&"),_e={};for(const $ of oe){const V=$.split("=");_e[V[0]]=V[1]}return void this.router.navigate(["login"],{queryParams:_e,queryParamsHandling:"merge"})}}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(I),_.LFG(E),_.LFG(w),_.LFG(e.Ct),_.LFG(C.uw),_.LFG(A.F0))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var ie=p(25245),Ae=p(22313);let Me=(()=>{class Z{constructor(oe,_e){this.matIconRegistry=oe,this.domSanitizer=_e,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(oe=>{this.matIconRegistry.addSvgIcon(oe.name,this.domSanitizer.bypassSecurityTrustResourceUrl(oe.url))})}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(ie.jv),_.LFG(Ae.H7))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac}),Z})();var he=p(40520),De=p(61737),T=p(40537),N=p(22868),j=p(47423);let Y=(()=>{class Z{constructor(oe){this.dialogRef=oe}close(){this.dialogRef.close(!0)}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.Y36(C.so))},Z.\u0275cmp=_.Xpm({type:Z,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(oe,_e){1&oe&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2),_.TgZ(7,"div",3),_.TgZ(8,"button",4),_.NdJ("click",function(){return _e.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.qZA(),_.qZA()),2&oe&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[C.uh,C.xY,C.H8,j.lW],pipes:[m.X$],styles:[""]}),Z})(),ee=(()=>{class Z{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const oe=this.handleNextError;return this.handleNextError=!0,oe}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),de=(()=>{class Z{constructor(oe){this.translate=oe,this.addNotification=new _.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(oe,_e=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===oe.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===oe.name?_e:_e+"\n"+oe.name,oe,oe.message)}showRouteError(){const oe=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),_e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(oe,null,_e)}showError(oe,_e,$,V,i){this.addNotification.emit({type:"error",error:_e,description:$,title:oe,actionText:void 0===V&&void 0!==$?this.getDefaultActionMessage():V,delay:this.defaultErrorDelayMs,icon:"error_outline",action:i,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(oe,_e,$,V){this.addNotification.emit({type:"success",description:_e,title:oe,actionText:void 0===$&&void 0!==_e?this.getDefaultActionMessage():$,delay:this.defaultSuccessDelayMs,icon:"done",action:V,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(m.sK))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),ce=(()=>{class Z{constructor(oe,_e,$,V,i,a){this.authService=oe,this.apiRequestConfiguration=_e,this.notificator=$,this.store=V,this.dialog=i,this.initAuthService=a}intercept(oe,_e){const $=this.store.get("api_url");if(oe.url.includes("i18n")&&(oe=oe.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==$&&this.isCallToPerunApi(oe.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const a=(0,P.kZ)();a.width="450px",this.dialogRefSessionExpiration=this.dialog.open(Y,a),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,T.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?oe=oe.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(oe.url)&&(oe=oe.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const V=this.apiRequestConfiguration.shouldHandleError(),i="POST"===oe.method&&!this.store.skipOidc()&&this.isCallToPerunApi(oe.url);return _e.handle(oe).pipe((0,N.b)(a=>{a instanceof he.Zn&&i&&this.initAuthService.loadPrincipal()},a=>{const d=this.formatErrors(a,oe);return void 0===d?(0,De._)(a):V?void this.notificator.showRPCError(d):(0,De._)(d)}))}isCallToPerunApi(oe){return oe.startsWith(this.store.get("api_url"))}formatErrors(oe,_e){let $;console.error(oe);const V=oe.error;if(V.errorId&&($=V),void 0!==$)return $.urlWithParams=_e.urlWithParams,$.call=_e.url,$.payload=_e.body,$}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(I),_.LFG(ee),_.LFG(de),_.LFG(E),_.LFG(C.uw),_.LFG(W))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),Fe=(()=>{class Z{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(oe){this.newNotificationsCount++,this.notificationData.push(oe)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var Ue=p(27221);let Xe=(()=>{class Z{constructor(oe,_e,$,V){this.http=oe,this.notificator=_e,this.authService=$,this.storeService=V}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let oe=new he.WM;return oe=oe.set("Authorization",this.authService.getAuthorizationHeaderValue()),oe}get(oe,_e=!0){const $=`${this.getApiUrl()}${oe}`;return this.http.get($,{headers:this.getHeaders()}).pipe((0,Ue.K)(V=>this.formatErrors(V,$,null,_e)))}put(oe,_e={},$=!0){const V=`${this.getApiUrl()}${oe}`,i=JSON.stringify(_e);return this.http.put(V,i,{headers:this.getHeaders()}).pipe((0,Ue.K)(a=>this.formatErrors(a,V,i,$)))}post(oe,_e={},$=!0){const V=`${this.getApiUrl()}${oe}`,i=JSON.stringify(_e);let a=this.getHeaders();return a=a.set("Content-Type","application/json; charset=utf-8"),this.http.post(V,i,{headers:a}).pipe((0,Ue.K)(d=>this.formatErrors(d,V,i,$)))}delete(oe,_e=!0){const $=`${this.getApiUrl()}${oe}`;return this.http.delete($,{headers:this.getHeaders()}).pipe((0,Ue.K)(V=>this.formatErrors(V,$,null,_e)))}formatErrors(oe,_e,$,V){const i=oe.error;return i.call=_e,i.payload=$,V&&this.notificator.showRPCError(oe.error),(0,De._)(i)}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(he.eN),_.LFG(de),_.LFG(I),_.LFG(E))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),te=(()=>{class Z{constructor(oe){this.router=oe,this.lastState="forward",this.history=new Set,oe.events.subscribe(_e=>{_e instanceof A.OD&&("popstate"===_e.navigationTrigger?this.history.has(_e.restoredState.navigationId)?(this.lastState="back",this.history.delete(_e.restoredState.navigationId)):(this.lastState="forward",this.history.add(_e.id)):(this.history.add(_e.id),this.lastState="forward"))})}forceNavigate(oe,_e){if(null===oe)return;let $="";oe.forEach(V=>$+="/"+V),$.length>0&&($=$.substring(1)),void 0===_e&&(_e={}),_e.queryParams={redirectTo:$},this.router.navigate(["redirect"],_e)}getLastState(){return this.lastState}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(A.F0))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),Ve=(()=>{class Z{isAllSelectedWithDisabledCheckbox(oe,_e,$,V,i,a,d,l){return this.numSelected=oe,this.numCanBeSelected=0,this.pageStart=i*$,this.pageEnd=this.pageStart+$,this.pageIterator=0,this.dataLength=""===_e?a.data.length:a.filteredData.length,V||(this.modulo=this.dataLength%$,this.pageEnd=0===this.modulo?this.pageStart+$:this.pageStart+this.modulo),a.sortData(a.filteredData,d).forEach(s=>{this.pageStart<=this.pageIterator&&this.pageIterator{l?s(r)&&this.pageStart<=this.pageIterator&&this.pageIterator{class Z{constructor(oe,_e,$,V){this.membersService=oe,this.usersService=_e,this.auditMessagesManagerService=$,this.registrarService=V}getMembers(oe,_e,$,V,i,a,d,l,s,r){return this.membersService.getMembersPage({vo:oe,attrNames:_e,query:{pageSize:i,offset:V*i,order:$,sortColumn:a,statuses:d,searchString:l,groupId:s,groupStatuses:r}})}getUsers(oe,_e,$,V,i,a,d,l,s,r,t,n){return this.usersService.getUsersPage({attrNames:oe,query:{offset:V*$,pageSize:V,order:_e,sortColumn:i,searchString:a,withoutVo:d,facilityId:l,voId:s,resourceId:r,serviceId:t,onlyAllowed:n}})}getAuditMessages(oe,_e,$){return this.auditMessagesManagerService.getMessagesPage({query:{offset:$*_e,pageSize:$,order:oe}})}getApplications(oe,_e,$,V,i,a,d,l,s,r,t,n,o){return this.registrarService.getApplicationsPage({vo:t,query:{pageSize:oe,offset:_e*oe,order:$,sortColumn:V,searchString:a,includeGroupApplications:i,getDetails:o,states:d,dateFrom:l,dateTo:s,userId:r,groupId:n}})}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(e.uq),_.LFG(e.Fv),_.LFG(e.jw),_.LFG(e.tk))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var Oe=p(591),z=p(21086);class D{constructor(Ne,oe){this.dynamicPaginatingService=Ne,this.authzService=oe,this.allObjectCount=0,this.routeAuth=!0,this.dataSubject=new Oe.X([]),this.loadingSubject=new Oe.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Ne,oe,_e,$,V,i,a,d,l,s){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const r=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Ne,oe,_e,$,V,i,a,d,l,s).pipe((0,Ue.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(t=>{if(this.latestQueryTime<=r){const n=t.data;null!==n&&0!==n.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Ne},n[0]])),this.allObjectCount=t.totalCount,this.dataSubject.next(n)}})}loadUsers(Ne,oe,_e,$,V,i,a,d,l,s,r,t){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const n=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Ne,$,_e,oe,V,i,a,d,l,s,r,t).pipe((0,Ue.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(o=>{if(this.latestQueryTime<=n){const c=o.data;this.allObjectCount=o.totalCount,this.dataSubject.next(c)}})}loadAuditMessages(Ne,oe,_e){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const $=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(_e,oe,Ne).pipe((0,Ue.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(V=>{if(this.latestQueryTime<=$){const i=V.data;this.allObjectCount=V.totalCount,this.dataSubject.next(i)}})}loadApplications(Ne,oe,_e,$,V,i,a,d,l,s,r,t,n){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const o=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Ne,oe,_e,$,i,V,a,d,l,s,t,r,null!=n&&n).pipe((0,Ue.K)(()=>(0,z.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(c=>{if(this.latestQueryTime<=o){const h=c.data;if(null!==h&&0!==h.length){const x=h;this.routeAuth=x[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[x[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[x[0].vo])}this.allObjectCount=c.totalCount,this.dataSubject.next(h)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let ge=(()=>{class Z{constructor(oe,_e){this.route=oe,this.store=_e}getPreferredLanguage(oe){const _e=this.store.get("supported_languages"),$=navigator.languages.map(a=>a.split("-")[0]),V=location.search.substring(1).split("&");let i=null;for(const a of V){const d=a.split("=");"lang"===d[0]&&(i=d[1])}return i&&_e.includes(i)?i:oe&&_e.includes(oe)?oe:$&&_e.includes($[0])?$[0]:"en"}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(A.gz),_.LFG(E))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var Te=p(70655);let Ie=(()=>{class Z{generatePdf(oe){return(0,Te.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(oe).open()})}loadPdfMake(){return(0,Te.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const oe=yield p.e(641).then(p.t.bind(p,54641,23)),_e=yield p.e(493).then(p.t.bind(p,58493,19));this.pdfMake=oe.default,this.pdfMake.vfs=_e.default.pdfMake.vfs}})}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),fe=(()=>{class Z{constructor(oe){this.pdfService=oe}static generateTableForUser(oe){const _e=oe.name.replace(";"," ").split(";")[0];return"OK"!==oe.status?this.generateErrorRowForUser(_e,oe.status):Z.generateRowForUser(_e,oe.login,oe.password)}static generateErrorRowForUser(oe,_e){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:oe,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:_e,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(oe,_e,$){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[Z.generateNameCell(oe),{},Z.getPasswordLabelCell(),Z.generatePasswordCell($)],[Z.getLoginLabelCell(),Z.generateLoginCell(_e),{},{}]]}}}static generateNameCell(oe){return{text:oe,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(oe){return{text:null==oe?"N/A":oe,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(oe){return{text:null==oe?"N/A":oe,border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(oe){return(0,Te.mG)(this,void 0,void 0,function*(){const _e=[];for(const V of oe)_e.push(Z.generateTableForUser(V));return this.pdfService.generatePdf({content:_e})})}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(Ie))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),Se=(()=>{class Z{constructor(oe){this.storeService=oe}static getBrandContainingDomain(oe,_e){for(const $ of oe)if($.newApps.admin===_e||$.newApps.profile===_e||$.newApps.pwdReset===_e)return $;return oe[0]}getUrlForOtherApplication(oe,_e){const V=window.location.href.split("/"),i=V[0]+"//"+V[2],a=Z.getBrandContainingDomain(this.storeService.getAppsConfig().brands,i);let d;if(a.newApps[oe])d=a.newApps[oe],"pwdReset"===oe&&(d+=`?login-namespace=${_e}`);else switch(d=a.oldGuiDomain+"/fed",oe){case"admin":d+="/gui/";break;case"profile":d+="/profile/";break;case"pwdReset":d+=`/pwd-reset/?login-namespace=${_e}`}return d}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(E))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var Ke=p(86087);let Je=(()=>{class Z extends Ke.ye{constructor(){super(...arguments),this.getRangeLabel=function(oe,_e,$){let V;return V=$<1e3?String($):$<1e4?"1 000":$<1e5?"10 000":"100 000",`${oe*_e+1} \u2013 ${(oe+1)*_e} of ${V} +`}}}return Z.\u0275fac=function(){let Ne;return function(_e){return(Ne||(Ne=_.n5z(Z)))(_e||Z)}}(),Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac}),Z})(),nt=(()=>{class Z{setEntity(oe){this.entity=oe}getEntity(){return this.entity}}return Z.\u0275fac=function(oe){return new(oe||Z)},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var je=p(64080);let Q=(()=>{class Z{constructor(oe,_e,$,V,i){this.authResolver=oe,this.attributesManager=_e,this.notificator=$,this.apiRequest=V,this.router=i,this.routePolicies=new Map([["organizations",a=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[a])],["organizations-members",a=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[a])],["organizations-groups",a=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[a])],["organizations-resources",a=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[a])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[a])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[a])],["organizations-resources-preview",a=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[a])],["organizations-resources-tags",a=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[a])],["organizations-resources-states",a=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[a])],["organizations-applications",a=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[a])],["organizations-sponsoredMembers",a=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[a])],["organizations-serviceAccounts",a=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[a])],["organizations-attributes",a=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[a])],["organizations-statistics",a=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[a])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[a])],["organizations-settings",a=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[a])||this.authResolver.isManagerPagePrivileged(a)||this.authResolver.isThisVoAdminOrObserver(a.id)],["organizations-settings-expiration",a=>this.authResolver.isThisVoAdminOrObserver(a.id)],["organizations-settings-managers",a=>this.authResolver.isManagerPagePrivileged(a)],["organizations-settings-applicationForm",a=>this.authResolver.isThisVoAdminOrObserver(a.id)],["organizations-settings-notifications",a=>this.authResolver.isThisVoAdminOrObserver(a.id)],["organizations-settings-extsources",a=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[a])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",a=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[a])],["members-groups",a=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[a])],["members-applications",a=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[a])],["members-resources",a=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[a])],["members-attributes",a=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[a])],["groups",a=>this.authResolver.isAuthorized("getGroupById_int_policy",[a])],["groups-members",a=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[a])],["groups-subgroups",a=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[a])],["groups-resources",a=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[a])],["groups-applications",a=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[a])],["groups-attributes",a=>this.authResolver.isAuthorized("getGroupById_int_policy",[a])],["groups-statistics",a=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[a])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[a])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[a])],["groups-settings",a=>this.authResolver.isManagerPagePrivileged(a)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[a])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[a])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[a])],["groups-settings-managers",a=>this.authResolver.isManagerPagePrivileged(a)],["groups-settings-applicationForm",a=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[a])],["groups-settings-notifications",a=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[a])],["groups-settings-relations",a=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[a])],["groups-settings-extsources",a=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[a])],["groups-settings-expiration",a=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(a.id,je.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",a=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[a])],["resources-groups",a=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[a])],["resources-services",a=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[a])],["resources-members",a=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[a])],["resources-tags",a=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[a])],["resources-attributes",a=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[a])],["resources-settings",a=>this.authResolver.isManagerPagePrivileged(a)],["resources-settings-managers",a=>this.authResolver.isManagerPagePrivileged(a)],["facilities",a=>this.authResolver.isAuthorized("getFacilityById_int_policy",[a])],["facilities-resources",a=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[a])],["facilities-allowed-users",a=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[a])],["facilities-allowed-groups",a=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[a])],["facilities-services-status",a=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[a])],["services-status",a=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[a])],["facilities-services-destinations",a=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[a])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",a=>this.authResolver.isAuthorized("getFacilityById_int_policy",[a])],["facilities-settings",a=>this.authResolver.isAuthorized("getOwners_Facility_policy",[a])||this.authResolver.isManagerPagePrivileged(a)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[a])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[a])],["facilities-settings-owners",a=>this.authResolver.isAuthorized("getOwners_Facility_policy",[a])],["facilities-settings-managers",a=>this.authResolver.isManagerPagePrivileged(a)],["facilities-settings-security-teams",a=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[a])],["facilities-settings-blacklist",a=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[a])]])}canNavigate(oe,_e){if(oe.startsWith("admin")||oe.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===oe&&-1===_e.id)return this.authResolver.canManageFacilities();const $=this.routePolicies.get(oe);return!$||$(_e)}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(w),_.LFG(e.H8),_.LFG(de),_.LFG(ee),_.LFG(A.F0))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})();var Ce=p(24850),re=p(87545),k=p(96831);let pe=(()=>{class Z{constructor(oe){this.authService=oe,this.roleWithObjects$=new k.t(1),this.authService.getAllRolesManagementRules().pipe((0,Ce.U)(_e=>_e.filter($=>$.assignableToAttributes)),(0,re.w)(_e=>{const $=new Map;return _e.map(V=>$.set(V.roleName,["None",...Object.keys(V.assignedObjects)])),(0,z.of)(new Map([...$.entries()].sort()))})).subscribe(this.roleWithObjects$)}getRoles(){return this.roleWithObjects$.pipe((0,re.w)(oe=>(0,z.of)(Array.from(oe.keys()))))}getObjects(oe){return this.roleWithObjects$.pipe((0,re.w)(_e=>(0,z.of)(_e.get(oe))))}filterNullInPolicy(){return function(oe){return oe.pipe((0,Ce.U)(_e=>(_e.forEach($=>$.policies=$.policies.filter(V=>null!==V.role&&null!==V.object)),_e)))}}addAttributeId(){return function(oe){return oe.pipe((0,Ce.U)(([_e,$])=>($.forEach(V=>V.attributeId=_e),$)))}}}return Z.\u0275fac=function(oe){return new(oe||Z)(_.LFG(e.Ct))},Z.\u0275prov=_.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})()},64080:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>e});let e=(()=>{class b{}return b.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",b.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",b.MEMBER_GROUP_STATUS="urn:perun:member_group:attribute-def:virt:groupStatus",b.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",b.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",b.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",b.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",b.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",b.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",b.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",b.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",b.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",b.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",b.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",b.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",b.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",b.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",b.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",b.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",b.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",b.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",b.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",b.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",b})()},9244:(Qe,be,p)=>{"use strict";p.d(be,{dN:()=>m,Je:()=>C,f7:()=>R.f7,l9:()=>I.l,sF:()=>R.sF,XI:()=>R.XI,Xd:()=>R.Xd,aC:()=>R.aC,fx:()=>R.fx,dv:()=>R.dv,i5:()=>R.i5,Sd:()=>R.Sd,pR:()=>R.pR,ys:()=>R.ys,O6:()=>R.O6,B2:()=>R.B2,mH:()=>R.mH,MX:()=>R.MX,oU:()=>R.oU,IL:()=>R.IL,Jc:()=>R.Jc,Xn:()=>R.Xn,kZ:()=>R.kZ,v$:()=>R.v$,x2:()=>R.x2,vL:()=>R.vL,j4:()=>R.j4,jh:()=>R.jh,bx:()=>R.bx,Hm:()=>R.Hm,Cz:()=>R.Cz,sG:()=>R.sG,g$:()=>R.g$,bD:()=>R.bD,lt:()=>R.lt,Oe:()=>R.Oe,hu:()=>R.hu,Gw:()=>R.Gw,te:()=>R.te,kN:()=>R.kN,$0:()=>R.$0,OV:()=>R.OV});var e=p(86087),b=p(92181),_=p(25245),w=p(47423),g=p(51062),A=p(69808),E=p(5e3);let C=(()=>{class O{}return O.\u0275fac=function(W){return new(W||O)},O.\u0275mod=E.oAB({type:O}),O.\u0275inj=E.cJS({providers:[],imports:[[e.TU,b.Tx,_.Ps,w.ot,g.aw,A.ez]]}),O})();var R=p(17218),I=p(18750);class m{static passwordMatchValidator(P){const W=P.get("passwordCtrl").value,ie=P.get("passwordAgainCtrl").value;return P.get("passwordAgainCtrl").setErrors(W!==ie?{noPasswordMatch:!0}:null),null}static patternValidator(P){return W=>{if(!W.value)return null;let ie=0;for(const Ae of P)ie+=Ae.test(W.value)?1:0;return ie>=3?null:{isWeak:!0}}}}},17218:(Qe,be,p)=>{"use strict";p.d(be,{f7:()=>E,B2:()=>C,g$:()=>R,kN:()=>I,$0:()=>m,lt:()=>O,bD:()=>W,hu:()=>ie,Cz:()=>Ae,te:()=>Me,ys:()=>he,vL:()=>T,j4:()=>N,sF:()=>j,XI:()=>Y,OV:()=>ce,MX:()=>Fe,oU:()=>Ue,IL:()=>Xe,Jc:()=>te,v$:()=>Ve,i5:()=>D,kZ:()=>ge,dv:()=>Te,Hm:()=>Ie,Oe:()=>fe,Gw:()=>Se,x2:()=>Ke,sG:()=>Je,pR:()=>je,Sd:()=>Q,Xn:()=>re,O6:()=>k,aC:()=>pe,Xd:()=>Z,fx:()=>Ne,mH:()=>oe,jh:()=>_e,bx:()=>$});var e=p(70655),b=p(48966),_=p(69808),w=p(94327),A=p(64080);const E=[5,10,25,100],C=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function R(V){let i="";return null==V||V.userAttributes.forEach(a=>{"preferredMail"===a.friendlyName&&(i=a.value)}),i&&0===i.length&&null!==V.memberAttributes&&V.memberAttributes.forEach(a=>{"mail"===a.friendlyName&&null!==a.value&&(i=a.value)}),i}function I(V){let i="";return V&&V.userAttributes.forEach(a=>{"preferredMail"===a.friendlyName&&(i=a.value)}),i}function m(V){let i="";return!!V&&!!V.userAttributes&&V.userAttributes.filter(a=>"login-namespace"===a.baseFriendlyName).filter(a=>null!==a.value).forEach(a=>{i=i.concat(a.friendlyNameParameter,": ",a.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function O(V){let i="";return!!V&&!!V.userAttributes&&V.userAttributes.filter(a=>"login-namespace"===a.baseFriendlyName).filter(a=>null!==a.value).forEach(a=>{i=i.concat(a.friendlyNameParameter,": ",a.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function W(V){let i="";return null!==V.titleBefore&&(i+=V.titleBefore+" "),null!==V.firstName&&(i+=V.firstName+" "),null!==V.middleName&&(i+=V.middleName+" "),null!==V.lastName&&(i+=V.lastName+" "),null!==V.titleAfter&&(i+=V.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function ie(V){let i="";return null!==V.firstName&&(i+=V.firstName+" "),null!==V.middleName&&(i+=V.middleName+" "),null!==V.lastName&&(i+=V.lastName+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function Ae(V){let i="";return V.split(/(?=[A-Z])/g).forEach(d=>{i=i.concat(d.toLowerCase()),i=i.concat(" ")}),i=i.charAt(0).toUpperCase()+i.slice(1,i.length-1),i}function Me(V){let i="";for(const a of V)"technical"===a.type&&(i+=a.name+", ");return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function he(V,i){return(0,e.mG)(this,void 0,void 0,function*(){yield function De(V){return new Promise(i=>setTimeout(i,V))}(V),i()})}function T(V){return JSON.parse(localStorage.getItem(V))||[]}function N(V){return JSON.parse(localStorage.getItem(V))||[]}function j(V,i){if(null===localStorage.getItem(V)){const a=[];a.unshift(i.id),localStorage.setItem(V,JSON.stringify(a))}else{const a=JSON.parse(localStorage.getItem(V)),d=function de(V,i){for(let a=0;a0&&a.splice(d,1),0!==d&&a.unshift(i.id),a.length>5&&a.pop(),localStorage.setItem(V,JSON.stringify(a))}}function Y(V,i){if(null===localStorage.getItem("recent")){let a;a="Group"===V.beanName?[{id:V.id,name:V.shortName,fullName:V.name,type:V.beanName,voId:V.voId,voName:i}]:[{id:V.id,name:V.name,type:V.beanName,voId:V.voId}],localStorage.setItem("recent",JSON.stringify(a))}else{const a=JSON.parse(localStorage.getItem("recent"));let d;d="Group"===V.beanName?{id:V.id,name:V.shortName,fullName:V.name,type:V.beanName,voId:V.voId,voName:i}:{id:V.id,name:V.name,type:V.beanName,voId:V.voId};const l=function ee(V,i){for(let a=0;a0&&a.splice(l,1),0!==l&&a.unshift(d),a.length>5&&a.pop(),localStorage.setItem("recent",JSON.stringify(a))}}function ce(V){let i="";return V&&V.userAttributes.forEach(a=>{"organization"===a.friendlyName&&(i=a.value)}),i}function Fe(V){return V.filter(i=>!i.namespace.includes("def:core"))}function Ue(V,i){const a=i.find(d=>d.id===V);return a?a.parentGroupId?Ue(a.parentGroupId,i).concat(a):[a]:[]}function Xe(V,i){for(const a of V)if(a.namespace+":"+a.friendlyName===i)return a;return null}function te(V){return null!=V.attributes["urn:perun:member:attribute-def:def:mail"]?V.attributes["urn:perun:member:attribute-def:def:mail"]:null!=V.attributes["urn:perun:user:attribute-def:def:preferredMail"]?V.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function Ve(V){return V.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function ve(V){if(V.includes("/CN=")){const i=V.split("/");for(const a of i)if(a.startsWith("CN="))return Oe(a.substring(3))}return V}(V.userExtSource.extSource.name):V.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function z(V){switch(V){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return V}}(V.userExtSource.extSource.name):V.userExtSource.extSource.name}function Oe(V){return decodeURIComponent(V.replace(/\\x/g,"%"))}function D(V=["en","cs"]){const i={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return V.forEach(a=>{i.message[a]={locale:a,htmlFormat:!1,subject:"",text:""},i.htmlMessage[a]={locale:a,htmlFormat:!0,subject:"",text:""}}),i}function ge(){const V=new b.vA;return V.disableClose=!0,V.autoFocus=!1,V}function Te(V){const i={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const a of V)i.i18n[a]={locale:a,errorMessage:"",help:"",label:"",options:""};return i}function Ie(V){return"virt"===V.namespace.split(":")[4]}function fe(V,i){return"valid"!==V.toLowerCase()||i&&"valid"!==V.toLowerCase()?V:"ACTIVE"}function Se(V){let i="";return null==V||V.memberAttributes.forEach(a=>{"organization"===a.friendlyName&&null!==a.value&&(i=a.value)}),0===i.length&&(null==V||V.userAttributes.forEach(a=>{"organization"===a.friendlyName&&(i=a.value)})),i}function Ke(V){var i;const a=V.attributes.find(d=>"groupMembershipExpiration"===d.baseFriendlyName);return null!==(i=null==a?void 0:a.value)&&void 0!==i?i:"Never"}function Je(V){return V&&"never"!==V.toLowerCase()?(0,_.p6)(V,"d.M.yyyy","en"):V}const nt=new Intl.Collator("cs",{numeric:!0});function je(V,i,a){const d=i.active,l=i.direction;return d&&""!==l?V.sort((s,r)=>{const t=a(s,d),n=a(r,d);return nt.compare(t,n)*("asc"===l?1:-1)}):V}function Q(V,i,a,d,l){i=i.toLowerCase();let s="";return a.forEach(r=>{s+=";"+d(V,r)}),l&&(s+=";"+d(V,"uuid")),s.toLowerCase().includes(i)}function re(V,i,a){const d=[],l=["checkbox","select","edit","menu","cite","extend","recent"];return i=i.filter(s=>!l.includes(s)),V.forEach(s=>{const r={};i.forEach(t=>{var n;r[t]=(null!==(n=a(s,t))&&void 0!==n?n:"").split('"').join("''").trim()}),d.push(r)}),d}function k(V,i="csv",a="export"){if("csv"===i){const d=(n,o)=>null===o?"":o,l=Object.keys(V[0]),s=V.map(n=>l.map(o=>JSON.stringify(n[o],d)).join(","));s.unshift(l.join(",").split(" ").join("_").split('"').join("''"));const r=s.join("\r\n"),t=new Blob([r],{type:"text/csv"});(0,w.saveAs)(t,`${a}.${i}`)}}function pe(V,i){return V.name.toLowerCase()>i.name.toLowerCase()?1:V.name.toLowerCase()===i.name.toLowerCase()?0:-1}function Z(V,i){return V.displayName.toLowerCase()>i.displayName.toLowerCase()?1:V.displayName.toLowerCase()===i.displayName.toLowerCase()?0:-1}function Ne(V,i){var a,d,l,s;let r,t;return V.user?(r=V.user.lastName?V.user.lastName:null!==(a=V.user.firstName)&&void 0!==a?a:"",t=i.user.lastName?i.user.lastName:null!==(d=i.user.firstName)&&void 0!==d?d:""):(r=V.lastName?V.lastName:null!==(l=V.firstName)&&void 0!==l?l:"",t=i.lastName?i.lastName:null!==(s=i.firstName)&&void 0!==s?s:""),r>t?1:r===t?0:-1}function oe(V,i,a=[]){V.enable(),V.clearValidators(),V.clearAsyncValidators(),V.setValidators(i),V.setAsyncValidators(a),V.updateValueAndValidity()}function _e(V,i){return!!V&&V.some(a=>a.namespace+":"+a.friendlyName===i&&null!==a.value&&"true"===String(a.value))}function $(V){return _e(V.attributes,A.r.GROUP_SYNC_ENABLED)||_e(V.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED)}},18750:(Qe,be,p)=>{"use strict";p.d(be,{l:()=>W});var e=p(5e3),b=p(86087),_=p(17218),w=p(10036),g=p(69808),A=p(47423),E=p(92181),C=p(25245),R=p(51062);let I=(()=>{class ie{constructor(){this.exportData=new e.vpe}}return ie.\u0275fac=function(q){return new(q||ie)},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(q,Me){if(1&q&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,2),e.TgZ(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.TgZ(9,"mat-menu",null,4),e.TgZ(11,"button",5),e.NdJ("click",function(){return Me.exportData.emit("csv")}),e._uU(12,"Csv"),e.qZA(),e.qZA(),e.qZA()),2&q){const he=e.MAs(5),De=e.MAs(10);e.xp6(1),e.Q6J("matMenuTriggerFor",he),e.xp6(5),e.Q6J("matMenuTriggerFor",De),e.xp6(1),e.hij(" ",e.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[A.lW,E.p6,C.Hw,E.VK,E.OP],pipes:[R.X$],styles:[""]}),ie})();function m(ie,Ae){if(1&ie){const q=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(he){return e.CHM(q),e.oxw().exportData.emit(he)}),e.qZA()}}function O(ie,Ae){if(1&ie){const q=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(he){return e.CHM(q),e.oxw().exportData.emit(he)}),e.qZA()}}const P=["*"];let W=(()=>{class ie{constructor(q){this.tableConfigService=q,this.hideExport=!1,this.pageSizeOptions=_.f7,this.dataLength=0,this.exportData=new e.vpe,this.pageSize=5}set matPaginator(q){this.paginator=q}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(q){this.pageSize=q.pageSize,this.tableConfigService.setTablePageSize(this.tableId,q.pageSize)}pageChangedBottom(q){this.paginator.pageSize=q.pageSize,this.paginator.pageIndex=q.pageIndex,this.paginator.page.emit(q),this.pageSize=q.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,q.pageSize)}}return ie.\u0275fac=function(q){return new(q||ie)(e.Y36(w.dB))},ie.\u0275cmp=e.Xpm({type:ie,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(q,Me){if(1&q&&e.Gf(b.NW,7),2&q){let he;e.iGM(he=e.CRH())&&(Me.matPaginator=he.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:P,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(q,Me){1&q&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-paginator",2),e.NdJ("page",function(De){return Me.pageChangedTop(De)}),e.qZA(),e.YNc(3,m,1,0,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"mat-paginator",5),e.NdJ("page",function(De){return Me.pageChangedBottom(De)}),e.qZA(),e.YNc(8,O,1,0,"perun-web-apps-table-options",3),e.qZA(),e.qZA()),2&q&&(e.xp6(2),e.Q6J("length",Me.dataLength)("pageSizeOptions",Me.pageSizeOptions)("pageSize",Me.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport),e.xp6(4),e.Q6J("length",Me.paginator.length)("pageIndex",Me.paginator.pageIndex)("pageSizeOptions",Me.paginator.pageSizeOptions)("pageSize",Me.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport))},directives:[b.NW,g.O5,I],styles:[""]}),ie})()},98380:(Qe,be,p)=>{"use strict";p.d(be,{w:()=>R});var e=p(5e3),b=p(69808),_=p(25245);function w(I,m){1&I&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(I,m){1&I&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function A(I,m){1&I&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function E(I,m){1&I&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const C=["*"];let R=(()=>{class I{}return I.\u0275fac=function(O){return new(O||I)},I.\u0275cmp=e.Xpm({type:I,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:C,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(O,P){1&O&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,A,2,0,"mat-icon",1),e.YNc(4,E,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&O&&(e.ekj("warn-alert","warn"===P.alert_type)("error-alert","error"===P.alert_type)("success-alert","success"===P.alert_type)("info-alert","info"===P.alert_type),e.xp6(1),e.Q6J("ngIf","info"===P.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===P.alert_type),e.xp6(1),e.Q6J("ngIf","error"===P.alert_type),e.xp6(1),e.Q6J("ngIf","success"===P.alert_type))},directives:[b.O5,_.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),I})()},63189:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>w});var e=p(25245),b=p(69808),_=p(5e3);let w=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[[e.Ps,b.ez]]}),g})()},6397:(Qe,be,p)=>{"use strict";p.d(be,{C:()=>a});var e=p(69808),b=p(47423),_=p(9224),w=p(77446),g=p(48966),A=p(4834),E=p(81125),C=p(67322),R=p(5e3),I=p(90508);let Ve=(()=>{class d{}return d.\u0275fac=function(s){return new(s||d)},d.\u0275mod=R.oAB({type:d}),d.\u0275inj=R.cJS({imports:[[I.uc,I.BQ],I.uc,I.BQ]}),d})();var Oe=p(25245),z=p(98833),D=p(20773),ge=p(92081),Te=p(32075),Ie=p(53435),fe=p(93075),Se=p(86856),Ke=p(2638),Je=p(14623),nt=p(92181);let Z=(()=>{class d{}return d.\u0275fac=function(s){return new(s||d)},d.\u0275mod=R.oAB({type:d}),d.\u0275inj=R.cJS({imports:[[I.BQ],I.BQ]}),d})();var Ne=p(84847),oe=p(86087),_e=p(29772),$=p(74107),V=p(53251),i=p(32368);let a=(()=>{class d{}return d.\u0275fac=function(s){return new(s||d)},d.\u0275mod=R.oAB({type:d}),d.\u0275inj=R.cJS({imports:[[e.ez,_.QW,A.t,E.To,b.ot,Ve,w.p9,Oe.Ps,Te.p0,g.Is,D.Cq,C.lN,z.c,Ie.Cl,fe.u5,fe.UX,ge.T5,Se.FA,I.XK,Ke.SJ,Je.ie,nt.Tx,Z,Ne.JX,oe.TU,_e.AV,$.LD,I.si,Te.p0,i.rP],_.QW,A.t,E.To,b.ot,Ve,w.p9,Oe.Ps,Te.p0,g.Is,D.Cq,C.lN,z.c,Ie.Cl,fe.u5,fe.UX,ge.T5,Se.FA,I.XK,Ke.SJ,Je.ie,nt.Tx,Z,Ne.JX,oe.TU,_e.AV,$.LD,I.si,V.Nh,i.rP]}),d})()},1302:function(Qe,be,p){var e;!function(b,_){var w={};!function(b){"use strict";b.__esModule=!0,b.digestLength=32,b.blockSize=64;var _=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function w(P,W,ie,Ae,q){for(var Me,he,De,T,N,j,Y,ee,de,ce,Fe,Ue,Xe;q>=64;){for(Me=W[0],he=W[1],De=W[2],T=W[3],N=W[4],j=W[5],Y=W[6],ee=W[7],ce=0;ce<16;ce++)P[ce]=(255&ie[Fe=Ae+4*ce])<<24|(255&ie[Fe+1])<<16|(255&ie[Fe+2])<<8|255&ie[Fe+3];for(ce=16;ce<64;ce++)P[ce]=((Ue=((de=P[ce-2])>>>17|de<<15)^(de>>>19|de<<13)^de>>>10)+P[ce-7]|0)+((Xe=((de=P[ce-15])>>>7|de<<25)^(de>>>18|de<<14)^de>>>3)+P[ce-16]|0);for(ce=0;ce<64;ce++)Ue=(((N>>>6|N<<26)^(N>>>11|N<<21)^(N>>>25|N<<7))+(N&j^~N&Y)|0)+(ee+(_[ce]+P[ce]|0)|0)|0,Xe=((Me>>>2|Me<<30)^(Me>>>13|Me<<19)^(Me>>>22|Me<<10))+(Me&he^Me&De^he&De)|0,ee=Y,Y=j,j=N,N=T+Ue|0,T=De,De=he,he=Me,Me=Ue+Xe|0;W[0]+=Me,W[1]+=he,W[2]+=De,W[3]+=T,W[4]+=N,W[5]+=j,W[6]+=Y,W[7]+=ee,Ae+=64,q-=64}return Ae}var g=function(){function P(){this.digestLength=b.digestLength,this.blockSize=b.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return P.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},P.prototype.clean=function(){for(var W=0;W0){for(;this.bufferLength<64&&ie>0;)this.buffer[this.bufferLength++]=W[Ae++],ie--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ie>=64&&(Ae=w(this.temp,this.state,W,Ae,ie),ie%=64);ie>0;)this.buffer[this.bufferLength++]=W[Ae++],ie--;return this},P.prototype.finish=function(W){if(!this.finished){var ie=this.bytesHashed,Ae=this.bufferLength,q=ie/536870912|0,Me=ie<<3,he=ie%64<56?64:128;this.buffer[Ae]=128;for(var De=Ae+1;De>>24&255,this.buffer[he-7]=q>>>16&255,this.buffer[he-6]=q>>>8&255,this.buffer[he-5]=q>>>0&255,this.buffer[he-4]=Me>>>24&255,this.buffer[he-3]=Me>>>16&255,this.buffer[he-2]=Me>>>8&255,this.buffer[he-1]=Me>>>0&255,w(this.temp,this.state,this.buffer,0,he),this.finished=!0}for(De=0;De<8;De++)W[4*De+0]=this.state[De]>>>24&255,W[4*De+1]=this.state[De]>>>16&255,W[4*De+2]=this.state[De]>>>8&255,W[4*De+3]=this.state[De]>>>0&255;return this},P.prototype.digest=function(){var W=new Uint8Array(this.digestLength);return this.finish(W),W},P.prototype._saveState=function(W){for(var ie=0;iethis.blockSize)(new g).update(W).finish(ie).clean();else for(var Ae=0;Ae1&&W.update(P),ie&&W.update(ie),W.update(Ae),W.finish(P),Ae[0]++}b.HMAC=A,b.hash=E,b.default=E,b.hmac=C;var I=new Uint8Array(b.digestLength);b.hkdf=function m(P,W,ie,Ae){void 0===W&&(W=I),void 0===Ae&&(Ae=32);for(var q=new Uint8Array([1]),Me=C(W,P),he=new A(Me),De=new Uint8Array(he.digestLength),T=De.length,N=new Uint8Array(Ae),j=0;j>>24&255,he[1]=Y>>>16&255,he[2]=Y>>>8&255,he[3]=Y>>>0&255,q.reset(),q.update(W),q.update(he),q.finish(T);for(var ee=0;ee=m.status}function A(I){try{I.dispatchEvent(new MouseEvent("click"))}catch(O){var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),I.dispatchEvent(m)}}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,C=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&&!C?function(I,m,O){var P=E.URL||E.webkitURL,W=document.createElement("a");W.download=m=m||I.name||"download",W.rel="noopener","string"==typeof I?(W.href=I,W.origin===location.origin?A(W):g(W.href)?w(I,m,O):A(W,W.target="_blank")):(W.href=P.createObjectURL(I),setTimeout(function(){P.revokeObjectURL(W.href)},4e4),setTimeout(function(){A(W)},0))}:"msSaveOrOpenBlob"in navigator?function(I,m,O){if(m=m||I.name||"download","string"!=typeof I)navigator.msSaveOrOpenBlob(function _(I,m){return void 0===m?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(I.type)?new Blob(["\ufeff",I],{type:I.type}):I}(I,O),m);else if(g(I))w(I,m,O);else{var P=document.createElement("a");P.href=I,P.target="_blank",setTimeout(function(){A(P)})}}:function(I,m,O,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof I)return w(I,m,O);var W="application/octet-stream"===I.type,ie=/constructor/i.test(E.HTMLElement)||E.safari,Ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ae||W&&ie||C)&&"undefined"!=typeof FileReader){var q=new FileReader;q.onloadend=function(){var De=q.result;De=Ae?De:De.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=De:location=De,P=null},q.readAsDataURL(I)}else{var Me=E.URL||E.webkitURL,he=Me.createObjectURL(I);P?P.location=he:location.href=he,P=null,setTimeout(function(){Me.revokeObjectURL(he)},4e4)}});E.saveAs=R.saveAs=R,Qe.exports=R}.apply(be,[]))&&(Qe.exports=b)},591:(Qe,be,p)=>{"use strict";p.d(be,{X:()=>_});var e=p(8929),b=p(95279);class _ extends e.xQ{constructor(g){super(),this._value=g}get value(){return this.getValue()}_subscribe(g){const A=super._subscribe(g);return A&&!A.closed&&g.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.N;return this._value}next(g){super.next(this._value=g)}}},51869:(Qe,be,p)=>{"use strict";p.d(be,{d:()=>b});var e=p(43489);class b extends e.L{constructor(w,g,A){super(),this.parent=w,this.outerValue=g,this.outerIndex=A,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},29312:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>g});var e=p(68896),b=p(21086),_=p(61737);class g{constructor(E,C,R){this.kind=E,this.value=C,this.error=R,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,C,R){switch(this.kind){case"N":return E&&E(this.value);case"E":return C&&C(this.error);case"C":return R&&R()}}accept(E,C,R){return E&&"function"==typeof E.next?this.observe(E):this.do(E,C,R)}toObservable(){switch(this.kind){case"N":return(0,b.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,e.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return void 0!==E?new g("N",E):g.undefinedValueNotification}static createError(E){return new g("E",void 0,E)}static createComplete(){return g.completeNotification}}g.completeNotification=new g("C"),g.undefinedValueNotification=new g("N",void 0)},56498:(Qe,be,p)=>{"use strict";p.d(be,{y:()=>R});var e=p(43489),_=p(57668),w=p(73292),A=p(93821),E=p(4843),C=p(92830);let R=(()=>{class m{constructor(P){this._isScalar=!1,P&&(this._subscribe=P)}lift(P){const W=new m;return W.source=this,W.operator=P,W}subscribe(P,W,ie){const{operator:Ae}=this,q=function g(m,O,P){if(m){if(m instanceof e.L)return m;if(m[_.b])return m[_.b]()}return m||O||P?new e.L(m,O,P):new e.L(w.c)}(P,W,ie);if(q.add(Ae?Ae.call(q,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!q.syncErrorThrowable?this._subscribe(q):this._trySubscribe(q)),C.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable&&(q.syncErrorThrowable=!1,q.syncErrorThrown))throw q.syncErrorValue;return q}_trySubscribe(P){try{return this._subscribe(P)}catch(W){C.v.useDeprecatedSynchronousErrorHandling&&(P.syncErrorThrown=!0,P.syncErrorValue=W),function b(m){for(;m;){const{closed:O,destination:P,isStopped:W}=m;if(O||W)return!1;m=P&&P instanceof e.L?P:null}return!0}(P)?P.error(W):console.warn(W)}}forEach(P,W){return new(W=I(W))((ie,Ae)=>{let q;q=this.subscribe(Me=>{try{P(Me)}catch(he){Ae(he),q&&q.unsubscribe()}},Ae,ie)})}_subscribe(P){const{source:W}=this;return W&&W.subscribe(P)}[A.L](){return this}pipe(...P){return 0===P.length?this:(0,E.U)(P)(this)}toPromise(P){return new(P=I(P))((W,ie)=>{let Ae;this.subscribe(q=>Ae=q,q=>ie(q),()=>W(Ae))})}}return m.create=O=>new m(O),m})();function I(m){if(m||(m=C.v.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},73292:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>_});var e=p(92830),b=p(22782);const _={closed:!0,next(w){},error(w){if(e.v.useDeprecatedSynchronousErrorHandling)throw w;(0,b.z)(w)},complete(){}}},826:(Qe,be,p)=>{"use strict";p.d(be,{L:()=>b});var e=p(43489);class b extends e.L{notifyNext(w,g,A,E,C){this.destination.next(g)}notifyError(w,g){this.destination.error(w)}notifyComplete(w){this.destination.complete()}}},96831:(Qe,be,p)=>{"use strict";p.d(be,{t:()=>Ae});var e=p(8929),b=p(56686),w=p(32268);const A=new class g extends w.v{}(class _ extends b.o{constructor(he,De){super(he,De),this.scheduler=he,this.work=De}schedule(he,De=0){return De>0?super.schedule(he,De):(this.delay=De,this.state=he,this.scheduler.flush(this),this)}execute(he,De){return De>0||this.closed?super.execute(he,De):this._execute(he,De)}requestAsyncId(he,De,T=0){return null!==T&&T>0||null===T&&this.delay>0?super.requestAsyncId(he,De,T):he.flush(this)}});var E=p(42654),C=p(43489),R=p(29312);class O extends C.L{constructor(he,De,T=0){super(he),this.scheduler=De,this.delay=T}static dispatch(he){const{notification:De,destination:T}=he;De.observe(T),this.unsubscribe()}scheduleMessage(he){this.destination.add(this.scheduler.schedule(O.dispatch,this.delay,new P(he,this.destination)))}_next(he){this.scheduleMessage(R.P.createNext(he))}_error(he){this.scheduleMessage(R.P.createError(he)),this.unsubscribe()}_complete(){this.scheduleMessage(R.P.createComplete()),this.unsubscribe()}}class P{constructor(he,De){this.notification=he,this.destination=De}}var W=p(95279),ie=p(45283);class Ae extends e.xQ{constructor(he=Number.POSITIVE_INFINITY,De=Number.POSITIVE_INFINITY,T){super(),this.scheduler=T,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=he<1?1:he,this._windowTime=De<1?1:De,De===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(he){const De=this._events;De.push(he),De.length>this._bufferSize&&De.shift(),super.next(he)}nextTimeWindow(he){this._events.push(new q(this._getNow(),he)),this._trimBufferThenGetEvents(),super.next(he)}_subscribe(he){const De=this._infiniteTimeWindow,T=De?this._events:this._trimBufferThenGetEvents(),N=this.scheduler,j=T.length;let Y;if(this.closed)throw new W.N;if(this.isStopped||this.hasError?Y=E.w.EMPTY:(this.observers.push(he),Y=new ie.W(this,he)),N&&he.add(he=new O(he,N)),De)for(let ee=0;eeDe&&(Y=Math.max(Y,j-De)),Y>0&&N.splice(0,Y),N}}class q{constructor(he,De){this.time=he,this.value=De}}},8929:(Qe,be,p)=>{"use strict";p.d(be,{Yc:()=>E,xQ:()=>C});var e=p(56498),b=p(43489),_=p(42654),w=p(95279),g=p(45283),A=p(57668);class E extends b.L{constructor(m){super(m),this.destination=m}}let C=(()=>{class I extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new E(this)}lift(O){const P=new R(this,this);return P.operator=O,P}next(O){if(this.closed)throw new w.N;if(!this.isStopped){const{observers:P}=this,W=P.length,ie=P.slice();for(let Ae=0;Aenew R(m,O),I})();class R extends C{constructor(m,O){super(),this.destination=m,this.source=O}next(m){const{destination:O}=this;O&&O.next&&O.next(m)}error(m){const{destination:O}=this;O&&O.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:O}=this;return O?this.source.subscribe(m):_.w.EMPTY}}},45283:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>b});var e=p(42654);class b extends e.w{constructor(w,g){super(),this.subject=w,this.subscriber=g,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const w=this.subject,g=w.observers;if(this.subject=null,!g||0===g.length||w.isStopped||w.closed)return;const A=g.indexOf(this.subscriber);-1!==A&&g.splice(A,1)}}},43489:(Qe,be,p)=>{"use strict";p.d(be,{L:()=>E});var e=p(67043),b=p(73292),_=p(42654),w=p(57668),g=p(92830),A=p(22782);class E extends _.w{constructor(I,m,O){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b.c;break;case 1:if(!I){this.destination=b.c;break}if("object"==typeof I){I instanceof E?(this.syncErrorThrowable=I.syncErrorThrowable,this.destination=I,I.add(this)):(this.syncErrorThrowable=!0,this.destination=new C(this,I));break}default:this.syncErrorThrowable=!0,this.destination=new C(this,I,m,O)}}[w.b](){return this}static create(I,m,O){const P=new E(I,m,O);return P.syncErrorThrowable=!1,P}next(I){this.isStopped||this._next(I)}error(I){this.isStopped||(this.isStopped=!0,this._error(I))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(I){this.destination.next(I)}_error(I){this.destination.error(I),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:I}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=I,this}}class C extends E{constructor(I,m,O,P){super(),this._parentSubscriber=I;let W,ie=this;(0,e.m)(m)?W=m:m&&(W=m.next,O=m.error,P=m.complete,m!==b.c&&(ie=Object.create(m),(0,e.m)(ie.unsubscribe)&&this.add(ie.unsubscribe.bind(ie)),ie.unsubscribe=this.unsubscribe.bind(this))),this._context=ie,this._next=W,this._error=O,this._complete=P}next(I){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;g.v.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,I)&&this.unsubscribe():this.__tryOrUnsub(this._next,I)}}error(I){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:O}=g.v;if(this._error)O&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,I),this.unsubscribe()):(this.__tryOrUnsub(this._error,I),this.unsubscribe());else if(m.syncErrorThrowable)O?(m.syncErrorValue=I,m.syncErrorThrown=!0):(0,A.z)(I),this.unsubscribe();else{if(this.unsubscribe(),O)throw I;(0,A.z)(I)}}}complete(){if(!this.isStopped){const{_parentSubscriber:I}=this;if(this._complete){const m=()=>this._complete.call(this._context);g.v.useDeprecatedSynchronousErrorHandling&&I.syncErrorThrowable?(this.__tryOrSetError(I,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(I,m){try{I.call(this._context,m)}catch(O){if(this.unsubscribe(),g.v.useDeprecatedSynchronousErrorHandling)throw O;(0,A.z)(O)}}__tryOrSetError(I,m,O){if(!g.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,O)}catch(P){return g.v.useDeprecatedSynchronousErrorHandling?(I.syncErrorValue=P,I.syncErrorThrown=!0,!0):((0,A.z)(P),!0)}return!1}_unsubscribe(){const{_parentSubscriber:I}=this;this._context=null,this._parentSubscriber=null,I.unsubscribe()}}},42654:(Qe,be,p)=>{"use strict";p.d(be,{w:()=>A});var e=p(66688),b=p(57830),_=p(67043);const g=(()=>{function C(R){return Error.call(this),this.message=R?`${R.length} errors occurred during unsubscription:\n${R.map((I,m)=>`${m+1}) ${I.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=R,this}return C.prototype=Object.create(Error.prototype),C})();class A{constructor(R){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,R&&(this._unsubscribe=R)}unsubscribe(){let R;if(this.closed)return;let{_parentOrParents:I,_unsubscribe:m,_subscriptions:O}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,I instanceof A)I.remove(this);else if(null!==I)for(let P=0;PR.concat(I instanceof g?I.errors:I),[])}A.EMPTY=((C=new A).closed=!0,C)},92830:(Qe,be,p)=>{"use strict";p.d(be,{v:()=>b});let e=!1;const b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_){if(_){const w=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+w.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=_},get useDeprecatedSynchronousErrorHandling(){return e}}},71762:(Qe,be,p)=>{"use strict";p.d(be,{c:()=>g,N:()=>A});var e=p(8929),b=p(56498),_=p(42654),w=p(74327);class g extends b.y{constructor(m,O){super(),this.source=m,this.subjectFactory=O,this._refCount=0,this._isComplete=!1}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let m=this._connection;return m||(this._isComplete=!1,m=this._connection=new _.w,m.add(this.source.subscribe(new E(this.getSubject(),this))),m.closed&&(this._connection=null,m=_.w.EMPTY)),m}refCount(){return(0,w.x)()(this)}}const A=(()=>{const I=g.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:I._subscribe},_isComplete:{value:I._isComplete,writable:!0},getSubject:{value:I.getSubject},connect:{value:I.connect},refCount:{value:I.refCount}}})();class E extends e.Yc{constructor(m,O){super(m),this.connectable=O}_error(m){this._unsubscribe(),super._error(m)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const m=this.connectable;if(m){this.connectable=null;const O=m._connection;m._refCount=0,m._subject=null,m._connection=null,O&&O.unsubscribe()}}}},36053:(Qe,be,p)=>{"use strict";p.d(be,{aj:()=>E});var e=p(72866),b=p(66688),_=p(826),w=p(69054),g=p(33009);const A={};function E(...I){let m=null,O=null;return(0,e.K)(I[I.length-1])&&(O=I.pop()),"function"==typeof I[I.length-1]&&(m=I.pop()),1===I.length&&(0,b.k)(I[0])&&(I=I[0]),(0,g.n)(I,O).lift(new C(m))}class C{constructor(m){this.resultSelector=m}call(m,O){return O.subscribe(new R(m,this.resultSelector))}}class R extends _.L{constructor(m,O){super(m),this.resultSelector=O,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(A),this.observables.push(m)}_complete(){const m=this.observables,O=m.length;if(0===O)this.destination.complete();else{this.active=O,this.toRespond=O;for(let P=0;P{"use strict";p.d(be,{z:()=>w});var e=p(21086),b=p(89146);function w(...g){return function _(){return(0,b.J)(1)}()((0,e.of)(...g))}},88514:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>w});var e=p(56498),b=p(5254),_=p(68896);function w(g){return new e.y(A=>{let E;try{E=g()}catch(R){return void A.error(R)}return(E?(0,b.D)(E):(0,_.c)()).subscribe(A)})}},68896:(Qe,be,p)=>{"use strict";p.d(be,{E:()=>b,c:()=>_});var e=p(56498);const b=new e.y(g=>g.complete());function _(g){return g?function w(g){return new e.y(A=>g.schedule(()=>A.complete()))}(g):b}},30567:(Qe,be,p)=>{"use strict";p.d(be,{D:()=>A});var e=p(56498),b=p(66688),_=p(24850),w=p(57830),g=p(5254);function A(...C){if(1===C.length){const R=C[0];if((0,b.k)(R))return E(R,null);if((0,w.K)(R)&&Object.getPrototypeOf(R)===Object.prototype){const I=Object.keys(R);return E(I.map(m=>R[m]),I)}}if("function"==typeof C[C.length-1]){const R=C.pop();return E(C=1===C.length&&(0,b.k)(C[0])?C[0]:C,null).pipe((0,_.U)(I=>R(...I)))}return E(C,null)}function E(C,R){return new e.y(I=>{const m=C.length;if(0===m)return void I.complete();const O=new Array(m);let P=0,W=0;for(let ie=0;ie{q||(q=!0,W++),O[ie]=Me},error:Me=>I.error(Me),complete:()=>{P++,(P===m||!q)&&(W===m&&I.next(R?R.reduce((Me,he,De)=>(Me[he]=O[De],Me),{}):O),I.complete())}}))}})}},5254:(Qe,be,p)=>{"use strict";p.d(be,{D:()=>ie});var e=p(56498),b=p(59249),_=p(42654),w=p(93821),E=p(66454),C=p(5430),m=p(98955),O=p(58515);function ie(Ae,q){return q?function W(Ae,q){if(null!=Ae){if(function I(Ae){return Ae&&"function"==typeof Ae[w.L]}(Ae))return function g(Ae,q){return new e.y(Me=>{const he=new _.w;return he.add(q.schedule(()=>{const De=Ae[w.L]();he.add(De.subscribe({next(T){he.add(q.schedule(()=>Me.next(T)))},error(T){he.add(q.schedule(()=>Me.error(T)))},complete(){he.add(q.schedule(()=>Me.complete()))}}))})),he})}(Ae,q);if((0,m.t)(Ae))return function A(Ae,q){return new e.y(Me=>{const he=new _.w;return he.add(q.schedule(()=>Ae.then(De=>{he.add(q.schedule(()=>{Me.next(De),he.add(q.schedule(()=>Me.complete()))}))},De=>{he.add(q.schedule(()=>Me.error(De)))}))),he})}(Ae,q);if((0,O.z)(Ae))return(0,E.r)(Ae,q);if(function P(Ae){return Ae&&"function"==typeof Ae[C.hZ]}(Ae)||"string"==typeof Ae)return function R(Ae,q){if(!Ae)throw new Error("Iterable cannot be null");return new e.y(Me=>{const he=new _.w;let De;return he.add(()=>{De&&"function"==typeof De.return&&De.return()}),he.add(q.schedule(()=>{De=Ae[C.hZ](),he.add(q.schedule(function(){if(Me.closed)return;let T,N;try{const j=De.next();T=j.value,N=j.done}catch(j){return void Me.error(j)}N?Me.complete():(Me.next(T),this.schedule())}))})),he})}(Ae,q)}throw new TypeError((null!==Ae&&typeof Ae||Ae)+" is not observable")}(Ae,q):Ae instanceof e.y?Ae:new e.y((0,b.s)(Ae))}},33009:(Qe,be,p)=>{"use strict";p.d(be,{n:()=>w});var e=p(56498),b=p(13650),_=p(66454);function w(g,A){return A?(0,_.r)(g,A):new e.y((0,b.V)(g))}},23753:(Qe,be,p)=>{"use strict";p.d(be,{R:()=>A});var e=p(56498),b=p(66688),_=p(67043),w=p(24850);function A(m,O,P,W){return(0,_.m)(P)&&(W=P,P=void 0),W?A(m,O,P).pipe((0,w.U)(ie=>(0,b.k)(ie)?W(...ie):W(ie))):new e.y(ie=>{E(m,O,function Ae(q){ie.next(arguments.length>1?Array.prototype.slice.call(arguments):q)},ie,P)})}function E(m,O,P,W,ie){let Ae;if(function I(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const q=m;m.addEventListener(O,P,ie),Ae=()=>q.removeEventListener(O,P,ie)}else if(function R(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const q=m;m.on(O,P),Ae=()=>q.off(O,P)}else if(function C(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const q=m;m.addListener(O,P),Ae=()=>q.removeListener(O,P)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let q=0,Me=m.length;q{"use strict";p.d(be,{F:()=>w});var e=p(56498),b=p(20353),_=p(84241);function w(A=0,E=b.P){return(!(0,_.k)(A)||A<0)&&(A=0),(!E||"function"!=typeof E.schedule)&&(E=b.P),new e.y(C=>(C.add(E.schedule(g,A,{subscriber:C,counter:0,period:A})),C))}function g(A){const{subscriber:E,counter:C,period:R}=A;E.next(C),this.schedule({subscriber:E,counter:C+1,period:R},R)}},36787:(Qe,be,p)=>{"use strict";p.d(be,{T:()=>g});var e=p(56498),b=p(72866),_=p(89146),w=p(33009);function g(...A){let E=Number.POSITIVE_INFINITY,C=null,R=A[A.length-1];return(0,b.K)(R)?(C=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(E=A.pop())):"number"==typeof R&&(E=A.pop()),null===C&&1===A.length&&A[0]instanceof e.y?A[0]:(0,_.J)(E)((0,w.n)(A,C))}},21086:(Qe,be,p)=>{"use strict";p.d(be,{of:()=>w});var e=p(72866),b=p(33009),_=p(66454);function w(...g){let A=g[g.length-1];return(0,e.K)(A)?(g.pop(),(0,_.r)(g,A)):(0,b.n)(g)}},61946:(Qe,be,p)=>{"use strict";p.d(be,{S3:()=>g});var e=p(66688),b=p(33009),_=p(826),w=p(69054);function g(...C){if(1===C.length){if(!(0,e.k)(C[0]))return C[0];C=C[0]}return(0,b.n)(C,void 0).lift(new A)}class A{call(R,I){return I.subscribe(new E(R))}}class E extends _.L{constructor(R){super(R),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(R){this.observables.push(R)}_complete(){const R=this.observables,I=R.length;if(0===I)this.destination.complete();else{for(let m=0;m{"use strict";p.d(be,{_:()=>b});var e=p(56498);function b(w,g){return new e.y(g?A=>g.schedule(_,0,{error:w,subscriber:A}):A=>A.error(w))}function _({error:w,subscriber:g}){g.error(w)}},98723:(Qe,be,p)=>{"use strict";p.d(be,{H:()=>g});var e=p(56498),b=p(20353),_=p(84241),w=p(72866);function g(E=0,C,R){let I=-1;return(0,_.k)(C)?I=Number(C)<1?1:Number(C):(0,w.K)(C)&&(R=C),(0,w.K)(R)||(R=b.P),new e.y(m=>{const O=(0,_.k)(E)?E:+E-R.now();return R.schedule(A,O,{index:0,period:I,subscriber:m})})}function A(E){const{index:C,period:R,subscriber:I}=E;if(I.next(C),!I.closed){if(-1===R)return I.complete();E.index=C+1,this.schedule(E,R)}}},57138:(Qe,be,p)=>{"use strict";p.d(be,{e:()=>C});var e=p(20353),b=p(826),_=p(69054);class g{constructor(I){this.durationSelector=I}call(I,m){return m.subscribe(new A(I,this.durationSelector))}}class A extends b.L{constructor(I,m){super(I),this.durationSelector=m,this.hasValue=!1}_next(I){if(this.value=I,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:P}=this;m=P(I)}catch(P){return this.destination.error(P)}const O=(0,_.D)(this,m);!O||O.closed?this.clearThrottle():this.add(this.throttled=O)}}clearThrottle(){const{value:I,hasValue:m,throttled:O}=this;O&&(this.remove(O),this.throttled=null,O.unsubscribe()),m&&(this.value=null,this.hasValue=!1,this.destination.next(I))}notifyNext(I,m,O,P){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var E=p(98723);function C(R,I=e.P){return function w(R){return function(m){return m.lift(new g(R))}}(()=>(0,E.H)(R,I))}},27221:(Qe,be,p)=>{"use strict";p.d(be,{K:()=>w});var e=p(826),b=p(51869),_=p(69054);function w(E){return function(R){const I=new g(E),m=R.lift(I);return I.caught=m}}class g{constructor(C){this.selector=C}call(C,R){return R.subscribe(new A(C,this.selector,this.caught))}}class A extends e.L{constructor(C,R,I){super(C),this.selector=R,this.caught=I}error(C){if(!this.isStopped){let R;try{R=this.selector(C,this.caught)}catch(O){return void super.error(O)}this._unsubscribeAndRecycle();const I=new b.d(this,void 0,void 0);this.add(I);const m=(0,_.D)(this,R,void 0,void 0,I);m!==I&&this.add(m)}}}},21406:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>b});var e=p(61709);function b(_,w){return(0,e.zg)(_,w,1)}},80013:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>_});var e=p(43489),b=p(20353);function _(E,C=b.P){return R=>R.lift(new w(E,C))}class w{constructor(C,R){this.dueTime=C,this.scheduler=R}call(C,R){return R.subscribe(new g(C,this.dueTime,this.scheduler))}}class g extends e.L{constructor(C,R,I){super(C),this.dueTime=R,this.scheduler=I,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(C){this.clearDebounce(),this.lastValue=C,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:C}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(C)}}clearDebounce(){const C=this.debouncedSubscription;null!==C&&(this.remove(C),C.unsubscribe(),this.debouncedSubscription=null)}}function A(E){E.debouncedNext()}},47314:(Qe,be,p)=>{"use strict";p.d(be,{d:()=>b});var e=p(43489);function b(g=null){return A=>A.lift(new _(g))}class _{constructor(A){this.defaultValue=A}call(A,E){return E.subscribe(new w(A,this.defaultValue))}}class w extends e.L{constructor(A,E){super(A),this.defaultValue=E,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},40943:(Qe,be,p)=>{"use strict";p.d(be,{g:()=>g});var e=p(20353),b=p(82697),_=p(43489),w=p(29312);function g(R,I=e.P){const O=(0,b.J)(R)?+R-I.now():Math.abs(R);return P=>P.lift(new A(O,I))}class A{constructor(I,m){this.delay=I,this.scheduler=m}call(I,m){return m.subscribe(new E(I,this.delay,this.scheduler))}}class E extends _.L{constructor(I,m,O){super(I),this.delay=m,this.scheduler=O,this.queue=[],this.active=!1,this.errored=!1}static dispatch(I){const m=I.source,O=m.queue,P=I.scheduler,W=I.destination;for(;O.length>0&&O[0].time-P.now()<=0;)O.shift().notification.observe(W);if(O.length>0){const ie=Math.max(0,O[0].time-P.now());this.schedule(I,ie)}else this.unsubscribe(),m.active=!1}_schedule(I){this.active=!0,this.destination.add(I.schedule(E.dispatch,this.delay,{source:this,destination:this.destination,scheduler:I}))}scheduleNotification(I){if(!0===this.errored)return;const m=this.scheduler,O=new C(m.now()+this.delay,I);this.queue.push(O),!1===this.active&&this._schedule(m)}_next(I){this.scheduleNotification(w.P.createNext(I))}_error(I){this.errored=!0,this.queue=[],this.destination.error(I),this.unsubscribe()}_complete(){this.scheduleNotification(w.P.createComplete()),this.unsubscribe()}}class C{constructor(I,m){this.time=I,this.notification=m}}},75778:(Qe,be,p)=>{"use strict";p.d(be,{x:()=>b});var e=p(43489);function b(g,A){return E=>E.lift(new _(g,A))}class _{constructor(A,E){this.compare=A,this.keySelector=E}call(A,E){return E.subscribe(new w(A,this.compare,this.keySelector))}}class w extends e.L{constructor(A,E,C){super(A),this.keySelector=C,this.hasKey=!1,"function"==typeof E&&(this.compare=E)}compare(A,E){return A===E}_next(A){let E;try{const{keySelector:R}=this;E=R?R(A):A}catch(R){return this.destination.error(R)}let C=!1;if(this.hasKey)try{const{compare:R}=this;C=R(this.key,E)}catch(R){return this.destination.error(R)}else this.hasKey=!0;C||(this.key=E,this.destination.next(A))}}},92198:(Qe,be,p)=>{"use strict";p.d(be,{h:()=>b});var e=p(43489);function b(g,A){return function(C){return C.lift(new _(g,A))}}class _{constructor(A,E){this.predicate=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.predicate,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.predicate=E,this.thisArg=C,this.count=0}_next(A){let E;try{E=this.predicate.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}E&&this.destination.next(A)}}},40537:(Qe,be,p)=>{"use strict";p.d(be,{x:()=>_});var e=p(43489),b=p(42654);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.callback=E}call(E,C){return C.subscribe(new g(E,this.callback))}}class g extends e.L{constructor(E,C){super(E),this.add(new b.w(C))}}},87224:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>E});var e=p(84450),b=p(92198),_=p(72986),w=p(47314),g=p(34907),A=p(35379);function E(C,R){const I=arguments.length>=2;return m=>m.pipe(C?(0,b.h)((O,P)=>C(O,P,m)):A.y,(0,_.q)(1),I?(0,w.d)(R):(0,g.T)(()=>new e.K))}},24850:(Qe,be,p)=>{"use strict";p.d(be,{U:()=>b});var e=p(43489);function b(g,A){return function(C){if("function"!=typeof g)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return C.lift(new _(g,A))}}class _{constructor(A,E){this.project=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.project,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.project=E,this.count=0,this.thisArg=C||this}_next(A){let E;try{E=this.project.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}this.destination.next(E)}}},77604:(Qe,be,p)=>{"use strict";p.d(be,{h:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.value=A}call(A,E){return E.subscribe(new w(A,this.value))}}class w extends e.L{constructor(A,E){super(A),this.value=E}_next(A){this.destination.next(this.value)}}},89146:(Qe,be,p)=>{"use strict";p.d(be,{J:()=>_});var e=p(61709),b=p(35379);function _(w=Number.POSITIVE_INFINITY){return(0,e.zg)(b.y,w)}},61709:(Qe,be,p)=>{"use strict";p.d(be,{zg:()=>A});var e=p(69054),b=p(826),_=p(51869),w=p(24850),g=p(5254);function A(R,I,m=Number.POSITIVE_INFINITY){return"function"==typeof I?O=>O.pipe(A((P,W)=>(0,g.D)(R(P,W)).pipe((0,w.U)((ie,Ae)=>I(P,ie,W,Ae))),m)):("number"==typeof I&&(m=I),O=>O.lift(new E(R,m)))}class E{constructor(I,m=Number.POSITIVE_INFINITY){this.project=I,this.concurrent=m}call(I,m){return m.subscribe(new C(I,this.project,this.concurrent))}}class C extends b.L{constructor(I,m,O=Number.POSITIVE_INFINITY){super(I),this.project=m,this.concurrent=O,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(I){this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},74327:(Qe,be,p)=>{"use strict";p.d(be,{x:()=>b});var e=p(43489);function b(){return function(A){return A.lift(new _(A))}}class _{constructor(A){this.connectable=A}call(A,E){const{connectable:C}=this;C._refCount++;const R=new w(A,C),I=E.subscribe(R);return R.closed||(R.connection=C.connect()),I}}class w extends e.L{constructor(A,E){super(A),this.connectable=E}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const E=A._refCount;if(E<=0)return void(this.connection=null);if(A._refCount=E-1,E>1)return void(this.connection=null);const{connection:C}=this,R=A._connection;this.connection=null,R&&(!C||R===C)&&R.unsubscribe()}}},92014:(Qe,be,p)=>{"use strict";p.d(be,{R:()=>b});var e=p(43489);function b(g,A){let E=!1;return arguments.length>=2&&(E=!0),function(R){return R.lift(new _(g,A,E))}}class _{constructor(A,E,C=!1){this.accumulator=A,this.seed=E,this.hasSeed=C}call(A,E){return E.subscribe(new w(A,this.accumulator,this.seed,this.hasSeed))}}class w extends e.L{constructor(A,E,C,R){super(A),this.accumulator=E,this._seed=C,this.hasSeed=R,this.index=0}get seed(){return this._seed}set seed(A){this.hasSeed=!0,this._seed=A}_next(A){if(this.hasSeed)return this._tryNext(A);this.seed=A,this.destination.next(A)}_tryNext(A){const E=this.index++;let C;try{C=this.accumulator(this.seed,A,E)}catch(R){this.destination.error(R)}this.seed=C,this.destination.next(C)}}},12474:(Qe,be,p)=>{"use strict";p.d(be,{B:()=>E});var e=p(71762);class _{constructor(R,I){this.subjectFactory=R,this.selector=I}call(R,I){const{selector:m}=this,O=this.subjectFactory(),P=m(O).subscribe(R);return P.add(I.subscribe(O)),P}}var w=p(74327),g=p(8929);function A(){return new g.xQ}function E(){return C=>(0,w.x)()(function b(C,R){return function(m){let O;if(O="function"==typeof C?C:function(){return C},"function"==typeof R)return m.lift(new _(O,R));const P=Object.create(m,e.N);return P.source=m,P.subjectFactory=O,P}}(A)(C))}},5154:(Qe,be,p)=>{"use strict";p.d(be,{d:()=>b});var e=p(96831);function b(w,g,A){let E;return E=w&&"object"==typeof w?w:{bufferSize:w,windowTime:g,refCount:!1,scheduler:A},C=>C.lift(function _({bufferSize:w=Number.POSITIVE_INFINITY,windowTime:g=Number.POSITIVE_INFINITY,refCount:A,scheduler:E}){let C,I,R=0,m=!1,O=!1;return function(W){R++,(!C||m)&&(m=!1,C=new e.t(w,g,E),I=W.subscribe({next(Ae){C.next(Ae)},error(Ae){m=!0,C.error(Ae)},complete(){O=!0,I=void 0,C.complete()}}));const ie=C.subscribe(this);this.add(()=>{R--,ie.unsubscribe(),I&&!O&&A&&0===R&&(I.unsubscribe(),I=void 0,C=void 0)})}}(E))}},31307:(Qe,be,p)=>{"use strict";p.d(be,{T:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.total=A}call(A,E){return E.subscribe(new w(A,this.total))}}class w extends e.L{constructor(A,E){super(A),this.total=E,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:(Qe,be,p)=>{"use strict";p.d(be,{O:()=>_});var e=p(61221),b=p(72866);function _(...w){const g=w[w.length-1];return(0,b.K)(g)?(w.pop(),A=>(0,e.z)(w,A,g)):A=>(0,e.z)(w,A)}},87545:(Qe,be,p)=>{"use strict";p.d(be,{w:()=>A});var e=p(826),b=p(51869),_=p(69054),w=p(24850),g=p(5254);function A(R,I){return"function"==typeof I?m=>m.pipe(A((O,P)=>(0,g.D)(R(O,P)).pipe((0,w.U)((W,ie)=>I(O,W,P,ie))))):m=>m.lift(new E(R))}class E{constructor(I){this.project=I}call(I,m){return m.subscribe(new C(I,this.project))}}class C extends e.L{constructor(I,m){super(I),this.project=m,this.index=0}_next(I){let m;const O=this.index++;try{m=this.project(I,O)}catch(P){return void this.destination.error(P)}this._innerSub(m,I,O)}_innerSub(I,m,O){const P=this.innerSubscription;P&&P.unsubscribe();const W=new b.d(this,m,O),ie=this.destination;ie.add(W),this.innerSubscription=(0,_.D)(this,I,void 0,void 0,W),this.innerSubscription!==W&&ie.add(this.innerSubscription)}_complete(){const{innerSubscription:I}=this;(!I||I.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(I){this.destination.remove(I),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(I,m,O,P,W){this.destination.next(m)}}},72986:(Qe,be,p)=>{"use strict";p.d(be,{q:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return C=>0===E?(0,_.c)():C.lift(new g(E))}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,R){return R.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,R){super(C),this.total=R,this.count=0}_next(C){const R=this.total,I=++this.count;I<=R&&(this.destination.next(C),I===R&&(this.destination.complete(),this.unsubscribe()))}}},92821:(Qe,be,p)=>{"use strict";p.d(be,{h:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return function(R){return 0===E?(0,_.c)():R.lift(new g(E))}}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,R){return R.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,R){super(C),this.total=R,this.ring=new Array,this.count=0}_next(C){const R=this.ring,I=this.total,m=this.count++;R.length0){const I=this.count>=this.total?this.total:this.count,m=this.ring;for(let O=0;O{"use strict";p.d(be,{R:()=>_});var e=p(826),b=p(69054);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.notifier=E}call(E,C){const R=new g(E),I=(0,b.D)(R,this.notifier);return I&&!R.seenValue?(R.add(I),C.subscribe(R)):R}}class g extends e.L{constructor(E){super(E),this.seenValue=!1}notifyNext(E,C,R,I,m){this.seenValue=!0,this.complete()}notifyComplete(){}}},22868:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>w});var e=p(43489);function b(){}var _=p(67043);function w(E,C,R){return function(m){return m.lift(new g(E,C,R))}}class g{constructor(C,R,I){this.nextOrObserver=C,this.error=R,this.complete=I}call(C,R){return R.subscribe(new A(C,this.nextOrObserver,this.error,this.complete))}}class A extends e.L{constructor(C,R,I,m){super(C),this._tapNext=b,this._tapError=b,this._tapComplete=b,this._tapError=I||b,this._tapComplete=m||b,(0,_.m)(R)?(this._context=this,this._tapNext=R):R&&(this._context=R,this._tapNext=R.next||b,this._tapError=R.error||b,this._tapComplete=R.complete||b)}_next(C){try{this._tapNext.call(this._context,C)}catch(R){return void this.destination.error(R)}this.destination.next(C)}_error(C){try{this._tapError.call(this._context,C)}catch(R){return void this.destination.error(R)}this.destination.error(C)}_complete(){try{this._tapComplete.call(this._context)}catch(C){return void this.destination.error(C)}return this.destination.complete()}}},34907:(Qe,be,p)=>{"use strict";p.d(be,{T:()=>_});var e=p(84450),b=p(43489);function _(E=A){return C=>C.lift(new w(E))}class w{constructor(C){this.errorFactory=C}call(C,R){return R.subscribe(new g(C,this.errorFactory))}}class g extends b.L{constructor(C,R){super(C),this.errorFactory=R,this.hasValue=!1}_next(C){this.hasValue=!0,this.destination.next(C)}_complete(){if(this.hasValue)return this.destination.complete();{let C;try{C=this.errorFactory()}catch(R){C=R}this.destination.error(C)}}}function A(){return new e.K}},46227:(Qe,be,p)=>{"use strict";p.d(be,{V:()=>m});var e=p(20353);const _=(()=>{function O(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return O.prototype=Object.create(Error.prototype),O})();var w=p(82697),g=p(826),A=p(69054);class C{constructor(P,W,ie,Ae){this.waitFor=P,this.absoluteTimeout=W,this.withObservable=ie,this.scheduler=Ae}call(P,W){return W.subscribe(new R(P,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class R extends g.L{constructor(P,W,ie,Ae,q){super(P),this.absoluteTimeout=W,this.waitFor=ie,this.withObservable=Ae,this.scheduler=q,this.action=null,this.scheduleTimeout()}static dispatchTimeout(P){const{withObservable:W}=P;P._unsubscribeAndRecycle(),P.add((0,A.D)(P,W))}scheduleTimeout(){const{action:P}=this;P?this.action=P.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(R.dispatchTimeout,this.waitFor,this))}_next(P){this.absoluteTimeout||this.scheduleTimeout(),super._next(P)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var I=p(61737);function m(O,P=e.P){return function E(O,P,W=e.P){return ie=>{let Ae=(0,w.J)(O),q=Ae?+O-W.now():Math.abs(O);return ie.lift(new C(q,Ae,P,W))}}(O,(0,I._)(new _),P)}},66454:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>_});var e=p(56498),b=p(42654);function _(w,g){return new e.y(A=>{const E=new b.w;let C=0;return E.add(g.schedule(function(){C!==w.length?(A.next(w[C++]),A.closed||E.add(this.schedule())):A.complete()})),E})}},56686:(Qe,be,p)=>{"use strict";p.d(be,{o:()=>_});var e=p(42654);class b extends e.w{constructor(g,A){super()}schedule(g,A=0){return this}}class _ extends b{constructor(g,A){super(g,A),this.scheduler=g,this.work=A,this.pending=!1}schedule(g,A=0){if(this.closed)return this;this.state=g;const E=this.id,C=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(C,E,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(C,this.id,A),this}requestAsyncId(g,A,E=0){return setInterval(g.flush.bind(g,this),E)}recycleAsyncId(g,A,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return A;clearInterval(A)}execute(g,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(g,A);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(g,A){let C,E=!1;try{this.work(g)}catch(R){E=!0,C=!!R&&R||new Error(R)}if(E)return this.unsubscribe(),C}_unsubscribe(){const g=this.id,A=this.scheduler,E=A.actions,C=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==C&&E.splice(C,1),null!=g&&(this.id=this.recycleAsyncId(A,g,null)),this.delay=null}}},32268:(Qe,be,p)=>{"use strict";p.d(be,{v:()=>b});let e=(()=>{class _{constructor(g,A=_.now){this.SchedulerAction=g,this.now=A}schedule(g,A=0,E){return new this.SchedulerAction(this,g).schedule(E,A)}}return _.now=()=>Date.now(),_})();class b extends e{constructor(w,g=e.now){super(w,()=>b.delegate&&b.delegate!==this?b.delegate.now():g()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(w,g=0,A){return b.delegate&&b.delegate!==this?b.delegate.schedule(w,g,A):super.schedule(w,g,A)}flush(w){const{actions:g}=this;if(this.active)return void g.push(w);let A;this.active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=g.shift());if(this.active=!1,A){for(;w=g.shift();)w.unsubscribe();throw A}}}},90352:(Qe,be,p)=>{"use strict";p.d(be,{r:()=>g});var e=p(56686),_=p(32268);const g=new class w extends _.v{flush(E){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let R,I=-1,m=C.length;E=E||C.shift();do{if(R=E.execute(E.state,E.delay))break}while(++I0?super.requestAsyncId(E,C,R):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(()=>E.flush(null))))}recycleAsyncId(E,C,R=0){if(null!==R&&R>0||null===R&&this.delay>0)return super.recycleAsyncId(E,C,R);0===E.actions.length&&(cancelAnimationFrame(C),E.scheduled=void 0)}})},8139:(Qe,be,p)=>{"use strict";p.d(be,{e:()=>m});let e=1;const b=Promise.resolve(),_={};function w(O){return O in _&&(delete _[O],!0)}const g={setImmediate(O){const P=e++;return _[P]=!0,b.then(()=>w(P)&&O()),P},clearImmediate(O){w(O)}};var E=p(56686),R=p(32268);const m=new class I extends R.v{flush(P){this.active=!0,this.scheduled=void 0;const{actions:W}=this;let ie,Ae=-1,q=W.length;P=P||W.shift();do{if(ie=P.execute(P.state,P.delay))break}while(++Ae0?super.requestAsyncId(P,W,ie):(P.actions.push(this),P.scheduled||(P.scheduled=g.setImmediate(P.flush.bind(P,null))))}recycleAsyncId(P,W,ie=0){if(null!==ie&&ie>0||null===ie&&this.delay>0)return super.recycleAsyncId(P,W,ie);0===P.actions.length&&(g.clearImmediate(W),P.scheduled=void 0)}})},20353:(Qe,be,p)=>{"use strict";p.d(be,{P:()=>_});var e=p(56686);const _=new(p(32268).v)(e.o)},5430:(Qe,be,p)=>{"use strict";p.d(be,{hZ:()=>b});const b=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:(Qe,be,p)=>{"use strict";p.d(be,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:(Qe,be,p)=>{"use strict";p.d(be,{W:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return _.prototype=Object.create(Error.prototype),_})()},84450:(Qe,be,p)=>{"use strict";p.d(be,{K:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})()},95279:(Qe,be,p)=>{"use strict";p.d(be,{N:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _.prototype=Object.create(Error.prototype),_})()},22782:(Qe,be,p)=>{"use strict";function e(b){setTimeout(()=>{throw b},0)}p.d(be,{z:()=>e})},35379:(Qe,be,p)=>{"use strict";function e(b){return b}p.d(be,{y:()=>e})},66688:(Qe,be,p)=>{"use strict";p.d(be,{k:()=>e});const e=Array.isArray||(b=>b&&"number"==typeof b.length)},58515:(Qe,be,p)=>{"use strict";p.d(be,{z:()=>e});const e=b=>b&&"number"==typeof b.length&&"function"!=typeof b},82697:(Qe,be,p)=>{"use strict";function e(b){return b instanceof Date&&!isNaN(+b)}p.d(be,{J:()=>e})},67043:(Qe,be,p)=>{"use strict";function e(b){return"function"==typeof b}p.d(be,{m:()=>e})},84241:(Qe,be,p)=>{"use strict";p.d(be,{k:()=>b});var e=p(66688);function b(_){return!(0,e.k)(_)&&_-parseFloat(_)+1>=0}},57830:(Qe,be,p)=>{"use strict";function e(b){return null!==b&&"object"==typeof b}p.d(be,{K:()=>e})},54715:(Qe,be,p)=>{"use strict";p.d(be,{b:()=>b});var e=p(56498);function b(_){return!!_&&(_ instanceof e.y||"function"==typeof _.lift&&"function"==typeof _.subscribe)}},98955:(Qe,be,p)=>{"use strict";function e(b){return!!b&&"function"!=typeof b.subscribe&&"function"==typeof b.then}p.d(be,{t:()=>e})},72866:(Qe,be,p)=>{"use strict";function e(b){return b&&"function"==typeof b.schedule}p.d(be,{K:()=>e})},4843:(Qe,be,p)=>{"use strict";p.d(be,{z:()=>b,U:()=>_});var e=p(35379);function b(...w){return _(w)}function _(w){return 0===w.length?e.y:1===w.length?w[0]:function(A){return w.reduce((E,C)=>C(E),A)}}},59249:(Qe,be,p)=>{"use strict";p.d(be,{s:()=>m});var e=p(13650),b=p(22782),w=p(5430),A=p(93821),C=p(58515),R=p(98955),I=p(57830);const m=O=>{if(O&&"function"==typeof O[A.L])return(O=>P=>{const W=O[A.L]();if("function"!=typeof W.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return W.subscribe(P)})(O);if((0,C.z)(O))return(0,e.V)(O);if((0,R.t)(O))return(O=>P=>(O.then(W=>{P.closed||(P.next(W),P.complete())},W=>P.error(W)).then(null,b.z),P))(O);if(O&&"function"==typeof O[w.hZ])return(O=>P=>{const W=O[w.hZ]();for(;;){const ie=W.next();if(ie.done){P.complete();break}if(P.next(ie.value),P.closed)break}return"function"==typeof W.return&&P.add(()=>{W.return&&W.return()}),P})(O);{const W=`You provided ${(0,I.K)(O)?"an invalid object":`'${O}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(W)}}},13650:(Qe,be,p)=>{"use strict";p.d(be,{V:()=>e});const e=b=>_=>{for(let w=0,g=b.length;w{"use strict";p.d(be,{D:()=>w});var e=p(51869),b=p(59249),_=p(56498);function w(g,A,E,C,R=new e.d(g,E,C)){if(!R.closed)return A instanceof _.y?A.subscribe(R):(0,b.s)(A)(R)}},70655:(Qe,be,p)=>{"use strict";function g(ce,Fe,Ue,Xe){var ve,te=arguments.length,Ve=te<3?Fe:null===Xe?Xe=Object.getOwnPropertyDescriptor(Fe,Ue):Xe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ve=Reflect.decorate(ce,Fe,Ue,Xe);else for(var Oe=ce.length-1;Oe>=0;Oe--)(ve=ce[Oe])&&(Ve=(te<3?ve(Ve):te>3?ve(Fe,Ue,Ve):ve(Fe,Ue))||Ve);return te>3&&Ve&&Object.defineProperty(Fe,Ue,Ve),Ve}function C(ce,Fe,Ue,Xe){return new(Ue||(Ue=Promise))(function(Ve,ve){function Oe(ge){try{D(Xe.next(ge))}catch(Te){ve(Te)}}function z(ge){try{D(Xe.throw(ge))}catch(Te){ve(Te)}}function D(ge){ge.done?Ve(ge.value):function te(Ve){return Ve instanceof Ue?Ve:new Ue(function(ve){ve(Ve)})}(ge.value).then(Oe,z)}D((Xe=Xe.apply(ce,Fe||[])).next())})}p.d(be,{gn:()=>g,mG:()=>C})},41777:(Qe,be,p)=>{"use strict";p.d(be,{l3:()=>_,_j:()=>e,LC:()=>b,ZN:()=>Me,jt:()=>g,pV:()=>P,ru:()=>A,F4:()=>I,IO:()=>ie,vP:()=>E,SB:()=>R,oB:()=>C,eR:()=>m,X$:()=>w,ZE:()=>he,k1:()=>De});class e{}class b{}const _="*";function w(T,N){return{type:7,name:T,definitions:N,options:{}}}function g(T,N=null){return{type:4,styles:N,timings:T}}function A(T,N=null){return{type:3,steps:T,options:N}}function E(T,N=null){return{type:2,steps:T,options:N}}function C(T){return{type:6,styles:T,offset:null}}function R(T,N,j){return{type:0,name:T,styles:N,options:j}}function I(T){return{type:5,steps:T}}function m(T,N,j=null){return{type:1,expr:T,animation:N,options:j}}function P(T=null){return{type:9,options:T}}function ie(T,N,j=null){return{type:11,selector:T,animation:N,options:j}}function q(T){Promise.resolve(null).then(T)}class Me{constructor(N=0,j=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=N+j}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){q(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(N=>N()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(N){this._position=this.totalTime?N*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(N){const j="start"==N?this._onStartFns:this._onDoneFns;j.forEach(Y=>Y()),j.length=0}}class he{constructor(N){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=N;let j=0,Y=0,ee=0;const de=this.players.length;0==de?q(()=>this._onFinish()):this.players.forEach(ce=>{ce.onDone(()=>{++j==de&&this._onFinish()}),ce.onDestroy(()=>{++Y==de&&this._onDestroy()}),ce.onStart(()=>{++ee==de&&this._onStart()})}),this.totalTime=this.players.reduce((ce,Fe)=>Math.max(ce,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this.players.forEach(N=>N.init())}onStart(N){this._onStartFns.push(N)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(N=>N()),this._onStartFns=[])}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(N=>N.play())}pause(){this.players.forEach(N=>N.pause())}restart(){this.players.forEach(N=>N.restart())}finish(){this._onFinish(),this.players.forEach(N=>N.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(N=>N.destroy()),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}reset(){this.players.forEach(N=>N.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(N){const j=N*this.totalTime;this.players.forEach(Y=>{const ee=Y.totalTime?Math.min(1,j/Y.totalTime):1;Y.setPosition(ee)})}getPosition(){const N=this.players.reduce((j,Y)=>null===j||Y.totalTime>j.totalTime?Y:j,null);return null!=N?N.getPosition():0}beforeDestroy(){this.players.forEach(N=>{N.beforeDestroy&&N.beforeDestroy()})}triggerCallback(N){const j="start"==N?this._onStartFns:this._onDoneFns;j.forEach(Y=>Y()),j.length=0}}const De="!"},15664:(Qe,be,p)=>{"use strict";p.d(be,{rt:()=>Lt,s1:()=>te,$s:()=>ce,Qr:()=>c,kH:()=>At,mK:()=>k,Em:()=>Ve,tE:()=>We,qV:()=>re,qm:()=>mt,ic:()=>Oe,Kd:()=>o,X6:()=>$,yG:()=>V});var e=p(69808),b=p(5e3),_=p(70925),w=p(8929),g=p(42654),A=p(591),E=p(21086),C=p(91159),R=p(22868),I=p(80013),m=p(92198),O=p(24850),P=p(72986),W=p(31307),ie=p(75778),Ae=p(7625),q=p(63191),Me=p(17144);function N(we,ze){return(we.getAttribute(ze)||"").match(/\S+/g)||[]}const Y="cdk-describedby-message",ee="cdk-describedby-host";let de=0,ce=(()=>{class we{constructor(U,L){this._platform=L,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+de++,this._document=U}describe(U,L,ne){if(!this._canBeDescribed(U,L))return;const le=Fe(L,ne);"string"!=typeof L?(Ue(L),this._messageRegistry.set(le,{messageElement:L,referenceCount:0})):this._messageRegistry.has(le)||this._createMessageElement(L,ne),this._isElementDescribedByMessage(U,le)||this._addMessageReference(U,le)}removeDescription(U,L,ne){var le;if(!L||!this._isElementNode(U))return;const Le=Fe(L,ne);if(this._isElementDescribedByMessage(U,Le)&&this._removeMessageReference(U,Le),"string"==typeof L){const ct=this._messageRegistry.get(Le);ct&&0===ct.referenceCount&&this._deleteMessageElement(Le)}0===(null===(le=this._messagesContainer)||void 0===le?void 0:le.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var U;const L=this._document.querySelectorAll(`[${ee}="${this._id}"]`);for(let ne=0;ne0!=ne.indexOf(Y));U.setAttribute("aria-describedby",L.join(" "))}_addMessageReference(U,L){const ne=this._messageRegistry.get(L);(function De(we,ze,U){const L=N(we,ze);L.some(ne=>ne.trim()==U.trim())||(L.push(U.trim()),we.setAttribute(ze,L.join(" ")))})(U,"aria-describedby",ne.messageElement.id),U.setAttribute(ee,this._id),ne.referenceCount++}_removeMessageReference(U,L){const ne=this._messageRegistry.get(L);ne.referenceCount--,function T(we,ze,U){const ne=N(we,ze).filter(le=>le!=U.trim());ne.length?we.setAttribute(ze,ne.join(" ")):we.removeAttribute(ze)}(U,"aria-describedby",ne.messageElement.id),U.removeAttribute(ee)}_isElementDescribedByMessage(U,L){const ne=N(U,"aria-describedby"),le=this._messageRegistry.get(L),Le=le&&le.messageElement.id;return!!Le&&-1!=ne.indexOf(Le)}_canBeDescribed(U,L){if(!this._isElementNode(U))return!1;if(L&&"object"==typeof L)return!0;const ne=null==L?"":`${L}`.trim(),le=U.getAttribute("aria-label");return!(!ne||le&&le.trim()===ne)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(e.K0),b.LFG(_.t4))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();function Fe(we,ze){return"string"==typeof we?`${ze||""}/${we}`:we}function Ue(we){we.id||(we.id=`${Y}-${de++}`)}class Xe{constructor(ze){this._items=ze,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.xQ,this._typeaheadSubscription=g.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new w.xQ,this.change=new w.xQ,ze instanceof b.n_E&&ze.changes.subscribe(U=>{if(this._activeItem){const ne=U.toArray().indexOf(this._activeItem);ne>-1&&ne!==this._activeItemIndex&&(this._activeItemIndex=ne)}})}skipPredicate(ze){return this._skipPredicateFn=ze,this}withWrap(ze=!0){return this._wrap=ze,this}withVerticalOrientation(ze=!0){return this._vertical=ze,this}withHorizontalOrientation(ze){return this._horizontal=ze,this}withAllowedModifierKeys(ze){return this._allowedModifierKeys=ze,this}withTypeAhead(ze=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,R.b)(U=>this._pressedLetters.push(U)),(0,I.b)(ze),(0,m.h)(()=>this._pressedLetters.length>0),(0,O.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const L=this._getItemsArray();for(let ne=1;ne!ze[le]||this._allowedModifierKeys.indexOf(le)>-1);switch(U){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&ne){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&ne){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&ne){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&ne){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&ne){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&ne){this.setLastItemActive();break}return;default:return void((ne||(0,C.Vb)(ze,"shiftKey"))&&(ze.key&&1===ze.key.length?this._letterKeyStream.next(ze.key.toLocaleUpperCase()):(U>=C.A&&U<=C.Z||U>=C.xE&&U<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],ze.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(ze){const U=this._getItemsArray(),L="number"==typeof ze?ze:U.indexOf(ze),ne=U[L];this._activeItem=null==ne?null:ne,this._activeItemIndex=L}_setActiveItemByDelta(ze){this._wrap?this._setActiveInWrapMode(ze):this._setActiveInDefaultMode(ze)}_setActiveInWrapMode(ze){const U=this._getItemsArray();for(let L=1;L<=U.length;L++){const ne=(this._activeItemIndex+ze*L+U.length)%U.length;if(!this._skipPredicateFn(U[ne]))return void this.setActiveItem(ne)}}_setActiveInDefaultMode(ze){this._setActiveItemByIndex(this._activeItemIndex+ze,ze)}_setActiveItemByIndex(ze,U){const L=this._getItemsArray();if(L[ze]){for(;this._skipPredicateFn(L[ze]);)if(!L[ze+=U])return;this.setActiveItem(ze)}}_getItemsArray(){return this._items instanceof b.n_E?this._items.toArray():this._items}}class te extends Xe{setActiveItem(ze){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ze),this.activeItem&&this.activeItem.setActiveStyles()}}class Ve extends Xe{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ze){return this._origin=ze,this}setActiveItem(ze){super.setActiveItem(ze),this.activeItem&&this.activeItem.focus(this._origin)}}let Oe=(()=>{class we{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function D(we){return!!(we.offsetWidth||we.offsetHeight||"function"==typeof we.getClientRects&&we.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const L=function z(we){try{return we.frameElement}catch(ze){return null}}(function Q(we){return we.ownerDocument&&we.ownerDocument.defaultView||window}(U));if(L&&(-1===Je(L)||!this.isVisible(L)))return!1;let ne=U.nodeName.toLowerCase(),le=Je(U);return U.hasAttribute("contenteditable")?-1!==le:!("iframe"===ne||"object"===ne||this._platform.WEBKIT&&this._platform.IOS&&!function nt(we){let ze=we.nodeName.toLowerCase(),U="input"===ze&&we.type;return"text"===U||"password"===U||"select"===ze||"textarea"===ze}(U))&&("audio"===ne?!!U.hasAttribute("controls")&&-1!==le:"video"===ne?-1!==le&&(null!==le||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,L){return function je(we){return!function Te(we){return function fe(we){return"input"==we.nodeName.toLowerCase()}(we)&&"hidden"==we.type}(we)&&(function ge(we){let ze=we.nodeName.toLowerCase();return"input"===ze||"select"===ze||"button"===ze||"textarea"===ze}(we)||function Ie(we){return function Se(we){return"a"==we.nodeName.toLowerCase()}(we)&&we.hasAttribute("href")}(we)||we.hasAttribute("contenteditable")||Ke(we))}(U)&&!this.isDisabled(U)&&((null==L?void 0:L.ignoreVisibility)||this.isVisible(U))}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(_.t4))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();function Ke(we){if(!we.hasAttribute("tabindex")||void 0===we.tabIndex)return!1;let ze=we.getAttribute("tabindex");return!(!ze||isNaN(parseInt(ze,10)))}function Je(we){if(!Ke(we))return null;const ze=parseInt(we.getAttribute("tabindex")||"",10);return isNaN(ze)?-1:ze}class Ce{constructor(ze,U,L,ne,le=!1){this._element=ze,this._checker=U,this._ngZone=L,this._document=ne,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,le||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ze){this._enabled=ze,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}destroy(){const ze=this._startAnchor,U=this._endAnchor;ze&&(ze.removeEventListener("focus",this.startAnchorListener),ze.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(ze){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(ze)))})}focusFirstTabbableElementWhenReady(ze){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(ze)))})}focusLastTabbableElementWhenReady(ze){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(ze)))})}_getRegionBoundary(ze){const U=this._element.querySelectorAll(`[cdk-focus-region-${ze}], [cdkFocusRegion${ze}], [cdk-focus-${ze}]`);return"start"==ze?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ze){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const L=this._getFirstTabbableElement(U);return null==L||L.focus(ze),!!L}return U.focus(ze),!0}return this.focusFirstTabbableElement(ze)}focusFirstTabbableElement(ze){const U=this._getRegionBoundary("start");return U&&U.focus(ze),!!U}focusLastTabbableElement(ze){const U=this._getRegionBoundary("end");return U&&U.focus(ze),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ze){if(this._checker.isFocusable(ze)&&this._checker.isTabbable(ze))return ze;const U=ze.children;for(let L=0;L=0;L--){const ne=U[L].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[L]):null;if(ne)return ne}return null}_createAnchor(){const ze=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ze),ze.classList.add("cdk-visually-hidden"),ze.classList.add("cdk-focus-trap-anchor"),ze.setAttribute("aria-hidden","true"),ze}_toggleAnchorTabIndex(ze,U){ze?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(ze){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ze,this._startAnchor),this._toggleAnchorTabIndex(ze,this._endAnchor))}_executeOnStable(ze){this._ngZone.isStable?ze():this._ngZone.onStable.pipe((0,P.q)(1)).subscribe(ze)}}let re=(()=>{class we{constructor(U,L,ne){this._checker=U,this._ngZone=L,this._document=ne}create(U,L=!1){return new Ce(U,this._checker,this._ngZone,this._document,L)}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(Oe),b.LFG(b.R0b),b.LFG(e.K0))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),k=(()=>{class we{constructor(U,L,ne){this._elementRef=U,this._focusTrapFactory=L,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(U){this.focusTrap.enabled=(0,q.Ig)(U)}get autoCapture(){return this._autoCapture}set autoCapture(U){this._autoCapture=(0,q.Ig)(U)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(U){const L=U.autoCapture;L&&!L.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return we.\u0275fac=function(U){return new(U||we)(b.Y36(b.SBq),b.Y36(re),b.Y36(e.K0))},we.\u0275dir=b.lG2({type:we,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[b.TTD]}),we})();function $(we){return 0===we.buttons||0===we.offsetX&&0===we.offsetY}function V(we){const ze=we.touches&&we.touches[0]||we.changedTouches&&we.changedTouches[0];return!(!ze||-1!==ze.identifier||null!=ze.radiusX&&1!==ze.radiusX||null!=ze.radiusY&&1!==ze.radiusY)}const i=new b.OlP("cdk-input-modality-detector-options"),a={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},l=(0,_.i$)({passive:!0,capture:!0});let s=(()=>{class we{constructor(U,L,ne,le){this._platform=U,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=Le=>{var ct,bt;(null===(bt=null===(ct=this._options)||void 0===ct?void 0:ct.ignoreKeys)||void 0===bt?void 0:bt.some(xt=>xt===Le.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(Le))},this._onMousedown=Le=>{Date.now()-this._lastTouchMs<650||(this._modality.next($(Le)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(Le))},this._onTouchstart=Le=>{V(Le)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(Le))},this._options=Object.assign(Object.assign({},a),le),this.modalityDetected=this._modality.pipe((0,W.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ie.x)()),U.isBrowser&&L.runOutsideAngular(()=>{ne.addEventListener("keydown",this._onKeydown,l),ne.addEventListener("mousedown",this._onMousedown,l),ne.addEventListener("touchstart",this._onTouchstart,l)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,l),document.removeEventListener("mousedown",this._onMousedown,l),document.removeEventListener("touchstart",this._onTouchstart,l))}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(_.t4),b.LFG(b.R0b),b.LFG(e.K0),b.LFG(i,8))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})();const r=new b.OlP("liveAnnouncerElement",{providedIn:"root",factory:function t(){return null}}),n=new b.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let o=(()=>{class we{constructor(U,L,ne,le){this._ngZone=L,this._defaultOptions=le,this._document=ne,this._liveElement=U||this._createLiveElement()}announce(U,...L){const ne=this._defaultOptions;let le,Le;return 1===L.length&&"number"==typeof L[0]?Le=L[0]:[le,Le]=L,this.clear(),clearTimeout(this._previousTimeout),le||(le=ne&&ne.politeness?ne.politeness:"polite"),null==Le&&ne&&(Le=ne.duration),this._liveElement.setAttribute("aria-live",le),this._ngZone.runOutsideAngular(()=>new Promise(ct=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,ct(),"number"==typeof Le&&(this._previousTimeout=setTimeout(()=>this.clear(),Le))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var U;clearTimeout(this._previousTimeout),null===(U=this._liveElement)||void 0===U||U.remove(),this._liveElement=null}_createLiveElement(){const U="cdk-live-announcer-element",L=this._document.getElementsByClassName(U),ne=this._document.createElement("div");for(let le=0;le{class we{constructor(U,L,ne,le){this._elementRef=U,this._liveAnnouncer=L,this._contentObserver=ne,this._ngZone=le,this._politeness="polite"}get politeness(){return this._politeness}set politeness(U){this._politeness="off"===U||"assertive"===U?U:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const L=this._elementRef.nativeElement.textContent;L!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(L,this._politeness),this._previousAnnouncedText=L)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return we.\u0275fac=function(U){return new(U||we)(b.Y36(b.SBq),b.Y36(o),b.Y36(Me.yq),b.Y36(b.R0b))},we.\u0275dir=b.lG2({type:we,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),we})();const h=new b.OlP("cdk-focus-monitor-default-options"),x=(0,_.i$)({passive:!0,capture:!0});let We=(()=>{class we{constructor(U,L,ne,le,Le){this._ngZone=U,this._platform=L,this._inputModalityDetector=ne,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 w.xQ,this._rootNodeFocusAndBlurListener=ct=>{const bt=(0,_.sA)(ct),xt="focus"===ct.type?this._onFocus:this._onBlur;for(let Yt=bt;Yt;Yt=Yt.parentElement)xt.call(this,ct,Yt)},this._document=le,this._detectionMode=(null==Le?void 0:Le.detectionMode)||0}monitor(U,L=!1){const ne=(0,q.fI)(U);if(!this._platform.isBrowser||1!==ne.nodeType)return(0,E.of)(null);const le=(0,_.kV)(ne)||this._getDocument(),Le=this._elementInfo.get(ne);if(Le)return L&&(Le.checkChildren=!0),Le.subject;const ct={checkChildren:L,subject:new w.xQ,rootNode:le};return this._elementInfo.set(ne,ct),this._registerGlobalListeners(ct),ct.subject}stopMonitoring(U){const L=(0,q.fI)(U),ne=this._elementInfo.get(L);ne&&(ne.subject.complete(),this._setClasses(L),this._elementInfo.delete(L),this._removeGlobalListeners(ne))}focusVia(U,L,ne){const le=(0,q.fI)(U);le===this._getDocument().activeElement?this._getClosestElementsInfo(le).forEach(([ct,bt])=>this._originChanged(ct,L,bt)):(this._setOrigin(L),"function"==typeof le.focus&&le.focus(ne))}ngOnDestroy(){this._elementInfo.forEach((U,L)=>this.stopMonitoring(L))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!(null==U?void 0:U.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(U,L){U.classList.toggle("cdk-focused",!!L),U.classList.toggle("cdk-touch-focused","touch"===L),U.classList.toggle("cdk-keyboard-focused","keyboard"===L),U.classList.toggle("cdk-mouse-focused","mouse"===L),U.classList.toggle("cdk-program-focused","program"===L)}_setOrigin(U,L=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&L,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,L){const ne=this._elementInfo.get(L),le=(0,_.sA)(U);!ne||!ne.checkChildren&&L!==le||this._originChanged(L,this._getFocusOrigin(le),ne)}_onBlur(U,L){const ne=this._elementInfo.get(L);!ne||ne.checkChildren&&U.relatedTarget instanceof Node&&L.contains(U.relatedTarget)||(this._setClasses(L),this._emitOrigin(ne.subject,null))}_emitOrigin(U,L){this._ngZone.run(()=>U.next(L))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const L=U.rootNode,ne=this._rootNodeFocusListenerCount.get(L)||0;ne||this._ngZone.runOutsideAngular(()=>{L.addEventListener("focus",this._rootNodeFocusAndBlurListener,x),L.addEventListener("blur",this._rootNodeFocusAndBlurListener,x)}),this._rootNodeFocusListenerCount.set(L,ne+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ae.R)(this._stopInputModalityDetector)).subscribe(le=>{this._setOrigin(le,!0)}))}_removeGlobalListeners(U){const L=U.rootNode;if(this._rootNodeFocusListenerCount.has(L)){const ne=this._rootNodeFocusListenerCount.get(L);ne>1?this._rootNodeFocusListenerCount.set(L,ne-1):(L.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x),L.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x),this._rootNodeFocusListenerCount.delete(L))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,L,ne){this._setClasses(U,L),this._emitOrigin(ne.subject,L),this._lastFocusOrigin=L}_getClosestElementsInfo(U){const L=[];return this._elementInfo.forEach((ne,le)=>{(le===U||ne.checkChildren&&le.contains(U))&&L.push([le,ne])}),L}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(b.R0b),b.LFG(_.t4),b.LFG(s),b.LFG(e.K0,8),b.LFG(h,8))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),At=(()=>{class we{constructor(U,L){this._elementRef=U,this._focusMonitor=L,this.cdkFocusChange=new b.vpe}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(L=>this.cdkFocusChange.emit(L))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return we.\u0275fac=function(U){return new(U||we)(b.Y36(b.SBq),b.Y36(We))},we.\u0275dir=b.lG2({type:we,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),we})();const Ht="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",Ut="cdk-high-contrast-active";let mt=(()=>{class we{constructor(U,L){this._platform=U,this._document=L}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const L=this._document.defaultView||window,ne=L&&L.getComputedStyle?L.getComputedStyle(U):null,le=(ne&&ne.backgroundColor||"").replace(/ /g,"");switch(U.remove(),le){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(Ut),U.remove(Ht),U.remove(lt),this._hasCheckedHighContrastMode=!0;const L=this.getHighContrastMode();1===L?(U.add(Ut),U.add(Ht)):2===L&&(U.add(Ut),U.add(lt))}}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(_.t4),b.LFG(e.K0))},we.\u0275prov=b.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),Lt=(()=>{class we{constructor(U){U._applyBodyHighContrastModeCssClasses()}}return we.\u0275fac=function(U){return new(U||we)(b.LFG(mt))},we.\u0275mod=b.oAB({type:we}),we.\u0275inj=b.cJS({imports:[[_.ud,Me.Q8]]}),we})()},50226:(Qe,be,p)=>{"use strict";p.d(be,{vT:()=>R,Is:()=>E});var e=p(5e3),b=p(69808);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(b.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class I{constructor(O){if(this.value="ltr",this.change=new e.vpe,O){const W=O.documentElement?O.documentElement.dir:null;this.value=function A(I){const m=(null==I?void 0:I.toLowerCase())||"";return"auto"===m&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?g.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}((O.body?O.body.dir:null)||W||"ltr")}}ngOnDestroy(){this.change.complete()}}return I.\u0275fac=function(O){return new(O||I)(e.LFG(_,8))},I.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),R=(()=>{class I{}return I.\u0275fac=function(O){return new(O||I)},I.\u0275mod=e.oAB({type:I}),I.\u0275inj=e.cJS({}),I})()},69287:(Qe,be,p)=>{"use strict";p.d(be,{i3:()=>A,TU:()=>w,Iq:()=>E});var e=p(69808),b=p(5e3);class _{constructor(R,I){this._document=I;const m=this._textarea=this._document.createElement("textarea"),O=m.style;O.position="fixed",O.top=O.opacity="0",O.left="-999em",m.setAttribute("aria-hidden","true"),m.value=R,this._document.body.appendChild(m)}copy(){const R=this._textarea;let I=!1;try{if(R){const m=this._document.activeElement;R.select(),R.setSelectionRange(0,R.value.length),I=this._document.execCommand("copy"),m&&m.focus()}}catch(m){}return I}destroy(){const R=this._textarea;R&&(R.remove(),this._textarea=void 0)}}let w=(()=>{class C{constructor(I){this._document=I}copy(I){const m=this.beginCopy(I),O=m.copy();return m.destroy(),O}beginCopy(I){return new _(I,this._document)}}return C.\u0275fac=function(I){return new(I||C)(b.LFG(e.K0))},C.\u0275prov=b.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const g=new b.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let A=(()=>{class C{constructor(I,m,O){this._clipboard=I,this._ngZone=m,this.text="",this.attempts=1,this.copied=new b.vpe,this._pending=new Set,O&&null!=O.attempts&&(this.attempts=O.attempts)}copy(I=this.attempts){if(I>1){let m=I;const O=this._clipboard.beginCopy(this.text);this._pending.add(O);const P=()=>{const W=O.copy();W||!--m||this._destroyed?(this._currentTimeout=null,this._pending.delete(O),O.destroy(),this.copied.emit(W)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(P,1))};P()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(I=>I.destroy()),this._pending.clear(),this._destroyed=!0}}return C.\u0275fac=function(I){return new(I||C)(b.Y36(w),b.Y36(b.R0b),b.Y36(g,8))},C.\u0275dir=b.lG2({type:C,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(I,m){1&I&&b.NdJ("click",function(){return m.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),C})(),E=(()=>{class C{}return C.\u0275fac=function(I){return new(I||C)},C.\u0275mod=b.oAB({type:C}),C.\u0275inj=b.cJS({}),C})()},63191:(Qe,be,p)=>{"use strict";p.d(be,{t6:()=>w,Eq:()=>g,Ig:()=>b,HM:()=>A,fI:()=>E,su:()=>_,du:()=>C});var e=p(5e3);function b(R){return null!=R&&"false"!=`${R}`}function _(R,I=0){return w(R)?Number(R):I}function w(R){return!isNaN(parseFloat(R))&&!isNaN(Number(R))}function g(R){return Array.isArray(R)?R:[R]}function A(R){return null==R?"":"string"==typeof R?R:`${R}px`}function E(R){return R instanceof e.SBq?R.nativeElement:R}function C(R,I=/\s+/){const m=[];if(null!=R){const O=Array.isArray(R)?R:`${R}`.split(I);for(const P of O){const W=`${P}`.trim();W&&m.push(W)}}return m}},20449:(Qe,be,p)=>{"use strict";p.d(be,{P3:()=>E,o2:()=>g,Ov:()=>I,A8:()=>O,yy:()=>C,eX:()=>R,k:()=>P,Z9:()=>A});var e=p(54715),b=p(21086),_=p(8929),w=p(5e3);class g{}function A(W){return W&&"function"==typeof W.connect}class E extends g{constructor(ie){super(),this._data=ie}connect(){return(0,e.b)(this._data)?this._data:(0,b.of)(this._data)}disconnect(){}}class C{applyChanges(ie,Ae,q,Me,he){ie.forEachOperation((De,T,N)=>{let j,Y;if(null==De.previousIndex){const ee=q(De,T,N);j=Ae.createEmbeddedView(ee.templateRef,ee.context,ee.index),Y=1}else null==N?(Ae.remove(T),Y=3):(j=Ae.get(T),Ae.move(j,N),Y=2);he&&he({context:null==j?void 0:j.context,operation:Y,record:De})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ie,Ae,q,Me,he){ie.forEachOperation((De,T,N)=>{let j,Y;null==De.previousIndex?(j=this._insertView(()=>q(De,T,N),N,Ae,Me(De)),Y=j?1:0):null==N?(this._detachAndCacheView(T,Ae),Y=3):(j=this._moveView(T,N,Ae,Me(De)),Y=2),he&&he({context:null==j?void 0:j.context,operation:Y,record:De})})}detach(){for(const ie of this._viewCache)ie.destroy();this._viewCache=[]}_insertView(ie,Ae,q,Me){const he=this._insertViewFromCache(Ae,q);if(he)return void(he.context.$implicit=Me);const De=ie();return q.createEmbeddedView(De.templateRef,De.context,De.index)}_detachAndCacheView(ie,Ae){const q=Ae.detach(ie);this._maybeCacheView(q,Ae)}_moveView(ie,Ae,q,Me){const he=q.get(ie);return q.move(he,Ae),he.context.$implicit=Me,he}_maybeCacheView(ie,Ae){if(this._viewCache.lengththis._markSelected(Me)):this._markSelected(Ae[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ie){this._verifyValueAssignment(ie),ie.forEach(Ae=>this._markSelected(Ae)),this._emitChangeEvent()}deselect(...ie){this._verifyValueAssignment(ie),ie.forEach(Ae=>this._unmarkSelected(Ae)),this._emitChangeEvent()}toggle(ie){this.isSelected(ie)?this.deselect(ie):this.select(ie)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ie){return this._selection.has(ie)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ie){this._multiple&&this.selected&&this._selected.sort(ie)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ie){this.isSelected(ie)||(this._multiple||this._unmarkAll(),this._selection.add(ie),this._emitChanges&&this._selectedToEmit.push(ie))}_unmarkSelected(ie){this.isSelected(ie)&&(this._selection.delete(ie),this._emitChanges&&this._deselectedToEmit.push(ie))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ie=>this._unmarkSelected(ie))}_verifyValueAssignment(ie){}}let O=(()=>{class W{constructor(){this._listeners=[]}notify(Ae,q){for(let Me of this._listeners)Me(Ae,q)}listen(Ae){return this._listeners.push(Ae),()=>{this._listeners=this._listeners.filter(q=>Ae!==q)}}ngOnDestroy(){this._listeners=[]}}return W.\u0275fac=function(Ae){return new(Ae||W)},W.\u0275prov=w.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const P=new w.OlP("_ViewRepeater")},44409:(Qe,be,p)=>{"use strict";p.d(be,{Zt:()=>we,Wj:()=>x,_t:()=>ze,bA:()=>Ce});var e=p(5e3),b=p(69808),_=p(70925),w=p(63191),g=p(15664),A=p(8929),E=p(42654),C=p(61715),R=p(90352),I=p(56498),m=p(36787),O=p(7625),P=p(1059),W=p(24850),ie=p(72986),Ae=p(22868),q=p(87545),Me=p(53435),he=p(50226);function De(U,L,ne){for(let le in L)if(L.hasOwnProperty(le)){const Le=L[le];Le?U.setProperty(le,Le,(null==ne?void 0:ne.has(le))?"important":""):U.removeProperty(le)}return U}function T(U,L){const ne=L?"":"none";De(U.style,{"touch-action":L?"":"none","-webkit-user-drag":L?"":"none","-webkit-tap-highlight-color":L?"":"transparent","user-select":ne,"-ms-user-select":ne,"-webkit-user-select":ne,"-moz-user-select":ne})}function N(U,L,ne){De(U.style,{position:L?"":"fixed",top:L?"":"0",opacity:L?"":"0",left:L?"":"-999em"},ne)}function j(U,L){return L&&"none"!=L?U+" "+L:U}function Y(U){const L=U.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(U)*L}function de(U,L){return U.getPropertyValue(L).split(",").map(le=>le.trim())}function ce(U){const L=U.getBoundingClientRect();return{top:L.top,right:L.right,bottom:L.bottom,left:L.left,width:L.width,height:L.height,x:L.x,y:L.y}}function Fe(U,L,ne){const{top:le,bottom:Le,left:ct,right:bt}=U;return ne>=le&&ne<=Le&&L>=ct&&L<=bt}function Ue(U,L,ne){U.top+=L,U.bottom=U.top+U.height,U.left+=ne,U.right=U.left+U.width}function Xe(U,L,ne,le){const{top:Le,right:ct,bottom:bt,left:xt,width:Yt,height:It}=U,Rt=Yt*L,Et=It*L;return le>Le-Et&&lext-Rt&&ne{this.positions.set(ne,{scrollPosition:{top:ne.scrollTop,left:ne.scrollLeft},clientRect:ce(ne)})})}handleScroll(L){const ne=(0,_.sA)(L),le=this.positions.get(ne);if(!le)return null;const Le=le.scrollPosition;let ct,bt;if(ne===this._document){const It=this._viewportRuler.getViewportScrollPosition();ct=It.top,bt=It.left}else ct=ne.scrollTop,bt=ne.scrollLeft;const xt=Le.top-ct,Yt=Le.left-bt;return this.positions.forEach((It,Rt)=>{It.clientRect&&ne!==Rt&&ne.contains(Rt)&&Ue(It.clientRect,xt,Yt)}),Le.top=ct,Le.left=bt,{top:xt,left:Yt}}}function Ve(U){const L=U.cloneNode(!0),ne=L.querySelectorAll("[id]"),le=U.nodeName.toLowerCase();L.removeAttribute("id");for(let Le=0;Le{if(this.beforeStarted.next(),this._handles.length){const Yt=this._handles.find(It=>xt.target&&(xt.target===It||It.contains(xt.target)));Yt&&!this._disabledHandles.has(Yt)&&!this.disabled&&this._initializeDragSequence(Yt,xt)}else this.disabled||this._initializeDragSequence(this._rootElement,xt)},this._pointerMove=xt=>{const Yt=this._getPointerPositionOnPage(xt);if(!this._hasStartedDragging){if(Math.abs(Yt.x-this._pickupPositionOnPage.x)+Math.abs(Yt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Jt=Date.now()>=this._dragStartTime+this._getDragStartDelay(xt),ai=this._dropContainer;if(!Jt)return void this._endDragSequence(xt);(!ai||!ai.isDragging()&&!ai.isReceiving())&&(xt.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(xt)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),xt.preventDefault();const It=this._getConstrainedPointerPosition(Yt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Yt,this._updatePointerDirectionDelta(It),this._dropContainer)this._updateActiveDropContainer(It,Yt);else{const Rt=this._activeTransform;Rt.x=It.x-this._pickupPositionOnPage.x+this._passiveTransform.x,Rt.y=It.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(Rt.x,Rt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:It,event:xt,distance:this._getDragDistance(It),delta:this._pointerDirectionDelta})})},this._pointerUp=xt=>{this._endDragSequence(xt)},this.withRootElement(L).withParent(ne.parentDragRef||null),this._parentPositions=new te(le,ct),bt.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(L){const ne=(0,w.Ig)(L);ne!==this._disabled&&(this._disabled=ne,this._toggleNativeDragInteractions(),this._handles.forEach(le=>T(le,ne)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(L){this._handles=L.map(le=>(0,w.fI)(le)),this._handles.forEach(le=>T(le,this.disabled)),this._toggleNativeDragInteractions();const ne=new Set;return this._disabledHandles.forEach(le=>{this._handles.indexOf(le)>-1&&ne.add(le)}),this._disabledHandles=ne,this}withPreviewTemplate(L){return this._previewTemplate=L,this}withPlaceholderTemplate(L){return this._placeholderTemplate=L,this}withRootElement(L){const ne=(0,w.fI)(L);return ne!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ne.addEventListener("mousedown",this._pointerDown,Te),ne.addEventListener("touchstart",this._pointerDown,ge)}),this._initialTransform=void 0,this._rootElement=ne),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(L){return this._boundaryElement=L?(0,w.fI)(L):null,this._resizeSubscription.unsubscribe(),L&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(L){return this._parentDragRef=L,this}dispose(){var L,ne;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(L=this._rootElement)||void 0===L||L.remove()),null===(ne=this._anchor)||void 0===ne||ne.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(L){!this._disabledHandles.has(L)&&this._handles.indexOf(L)>-1&&(this._disabledHandles.add(L),T(L,!0))}enableHandle(L){this._disabledHandles.has(L)&&(this._disabledHandles.delete(L),T(L,this.disabled))}withDirection(L){return this._direction=L,this}_withDropContainer(L){this._dropContainer=L}getFreeDragPosition(){const L=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:L.x,y:L.y}}setFreeDragPosition(L){return this._activeTransform={x:0,y:0},this._passiveTransform.x=L.x,this._passiveTransform.y=L.y,this._dropContainer||this._applyRootElementTransform(L.x,L.y),this}withPreviewContainer(L){return this._previewContainer=L,this}_sortFromLastPointerPosition(){const L=this._lastKnownPointerPosition;L&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(L),L)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var L,ne;null===(L=this._preview)||void 0===L||L.remove(),null===(ne=this._previewRef)||void 0===ne||ne.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var L,ne;null===(L=this._placeholder)||void 0===L||L.remove(),null===(ne=this._placeholderRef)||void 0===ne||ne.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(L){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(L),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ne=this._getPointerPositionOnPage(L);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ne),dropPoint:ne})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(L){nt(L)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ne=this._dropContainer;if(ne){const le=this._rootElement,Le=le.parentNode,ct=this._placeholder=this._createPlaceholderElement(),bt=this._anchor=this._anchor||this._document.createComment(""),xt=this._getShadowRoot();Le.insertBefore(bt,le),this._initialTransform=le.style.transform||"",this._preview=this._createPreviewElement(),N(le,!1,fe),this._document.body.appendChild(Le.replaceChild(ct,le)),this._getPreviewInsertionPoint(Le,xt).appendChild(this._preview),this.started.next({source:this}),ne.start(),this._initialContainer=ne,this._initialIndex=ne.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ne?ne.getScrollableParents():[])}_initializeDragSequence(L,ne){this._parentDragRef&&ne.stopPropagation();const le=this.isDragging(),Le=nt(ne),ct=!Le&&0!==ne.button,bt=this._rootElement,xt=(0,_.sA)(ne),Yt=!Le&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),It=Le?(0,g.yG)(ne):(0,g.X6)(ne);if(xt&&xt.draggable&&"mousedown"===ne.type&&ne.preventDefault(),le||ct||Yt||It)return;if(this._handles.length){const Bt=bt.style;this._rootElementTapHighlight=Bt.webkitTapHighlightColor||"",Bt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Bt=>this._updateOnScroll(Bt)),this._boundaryElement&&(this._boundaryRect=ce(this._boundaryElement));const Rt=this._previewTemplate;this._pickupPositionInElement=Rt&&Rt.template&&!Rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(L,ne);const Et=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ne);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Et.x,y:Et.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ne)}_cleanupDragArtifacts(L){N(this._rootElement,!0,fe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ne=this._dropContainer,le=ne.getItemIndex(this),Le=this._getPointerPositionOnPage(L),ct=this._getDragDistance(Le),bt=ne._isOverContainer(Le.x,Le.y);this.ended.next({source:this,distance:ct,dropPoint:Le}),this.dropped.next({item:this,currentIndex:le,previousIndex:this._initialIndex,container:ne,previousContainer:this._initialContainer,isPointerOverContainer:bt,distance:ct,dropPoint:Le}),ne.drop(this,le,this._initialIndex,this._initialContainer,bt,ct,Le),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:L,y:ne},{x:le,y:Le}){let ct=this._initialContainer._getSiblingContainerFromPosition(this,L,ne);!ct&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(L,ne)&&(ct=this._initialContainer),ct&&ct!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ct,this._dropContainer.enter(this,L,ne,ct===this._initialContainer&&ct.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ct,currentIndex:ct.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(le,Le),this._dropContainer._sortItem(this,L,ne,this._pointerDirectionDelta),this._applyPreviewTransform(L-this._pickupPositionInElement.x,ne-this._pickupPositionInElement.y))}_createPreviewElement(){const L=this._previewTemplate,ne=this.previewClass,le=L?L.template:null;let Le;if(le&&L){const ct=L.matchSize?this._rootElement.getBoundingClientRect():null,bt=L.viewContainer.createEmbeddedView(le,L.context);bt.detectChanges(),Le=je(bt,this._document),this._previewRef=bt,L.matchSize?Q(Le,ct):Le.style.transform=Ke(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const ct=this._rootElement;Le=Ve(ct),Q(Le,ct.getBoundingClientRect()),this._initialTransform&&(Le.style.transform=this._initialTransform)}return De(Le.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},fe),T(Le,!1),Le.classList.add("cdk-drag-preview"),Le.setAttribute("dir",this._direction),ne&&(Array.isArray(ne)?ne.forEach(ct=>Le.classList.add(ct)):Le.classList.add(ne)),Le}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const L=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(L.left,L.top);const ne=function ee(U){const L=getComputedStyle(U),ne=de(L,"transition-property"),le=ne.find(xt=>"transform"===xt||"all"===xt);if(!le)return 0;const Le=ne.indexOf(le),ct=de(L,"transition-duration"),bt=de(L,"transition-delay");return Y(ct[Le])+Y(bt[Le])}(this._preview);return 0===ne?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(le=>{const Le=bt=>{var xt;(!bt||(0,_.sA)(bt)===this._preview&&"transform"===bt.propertyName)&&(null===(xt=this._preview)||void 0===xt||xt.removeEventListener("transitionend",Le),le(),clearTimeout(ct))},ct=setTimeout(Le,1.5*ne);this._preview.addEventListener("transitionend",Le)}))}_createPlaceholderElement(){const L=this._placeholderTemplate,ne=L?L.template:null;let le;return ne?(this._placeholderRef=L.viewContainer.createEmbeddedView(ne,L.context),this._placeholderRef.detectChanges(),le=je(this._placeholderRef,this._document)):le=Ve(this._rootElement),le.classList.add("cdk-drag-placeholder"),le}_getPointerPositionInElement(L,ne){const le=this._rootElement.getBoundingClientRect(),Le=L===this._rootElement?null:L,ct=Le?Le.getBoundingClientRect():le,bt=nt(ne)?ne.targetTouches[0]:ne,xt=this._getViewportScrollPosition();return{x:ct.left-le.left+(bt.pageX-ct.left-xt.left),y:ct.top-le.top+(bt.pageY-ct.top-xt.top)}}_getPointerPositionOnPage(L){const ne=this._getViewportScrollPosition(),le=nt(L)?L.touches[0]||L.changedTouches[0]||{pageX:0,pageY:0}:L,Le=le.pageX-ne.left,ct=le.pageY-ne.top;if(this._ownerSVGElement){const bt=this._ownerSVGElement.getScreenCTM();if(bt){const xt=this._ownerSVGElement.createSVGPoint();return xt.x=Le,xt.y=ct,xt.matrixTransform(bt.inverse())}}return{x:Le,y:ct}}_getConstrainedPointerPosition(L){const ne=this._dropContainer?this._dropContainer.lockAxis:null;let{x:le,y:Le}=this.constrainPosition?this.constrainPosition(L,this):L;if("x"===this.lockAxis||"x"===ne?Le=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ne)&&(le=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ct,y:bt}=this._pickupPositionInElement,xt=this._boundaryRect,Yt=this._previewRect,It=xt.top+bt,Rt=xt.bottom-(Yt.height-bt);le=Je(le,xt.left+ct,xt.right-(Yt.width-ct)),Le=Je(Le,It,Rt)}return{x:le,y:Le}}_updatePointerDirectionDelta(L){const{x:ne,y:le}=L,Le=this._pointerDirectionDelta,ct=this._pointerPositionAtLastDirectionChange,bt=Math.abs(ne-ct.x),xt=Math.abs(le-ct.y);return bt>this._config.pointerDirectionChangeThreshold&&(Le.x=ne>ct.x?1:-1,ct.x=ne),xt>this._config.pointerDirectionChangeThreshold&&(Le.y=le>ct.y?1:-1,ct.y=le),Le}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const L=this._handles.length>0||!this.isDragging();L!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=L,T(this._rootElement,L))}_removeRootElementListeners(L){L.removeEventListener("mousedown",this._pointerDown,Te),L.removeEventListener("touchstart",this._pointerDown,ge)}_applyRootElementTransform(L,ne){const le=Ke(L,ne),Le=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=Le.transform&&"none"!=Le.transform?Le.transform:""),Le.transform=j(le,this._initialTransform)}_applyPreviewTransform(L,ne){var le;const Le=(null===(le=this._previewTemplate)||void 0===le?void 0:le.template)?void 0:this._initialTransform,ct=Ke(L,ne);this._preview.style.transform=j(ct,Le)}_getDragDistance(L){const ne=this._pickupPositionOnPage;return ne?{x:L.x-ne.x,y:L.y-ne.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:L,y:ne}=this._passiveTransform;if(0===L&&0===ne||this.isDragging()||!this._boundaryElement)return;const le=this._boundaryElement.getBoundingClientRect(),Le=this._rootElement.getBoundingClientRect();if(0===le.width&&0===le.height||0===Le.width&&0===Le.height)return;const ct=le.left-Le.left,bt=Le.right-le.right,xt=le.top-Le.top,Yt=Le.bottom-le.bottom;le.width>Le.width?(ct>0&&(L+=ct),bt>0&&(L-=bt)):L=0,le.height>Le.height?(xt>0&&(ne+=xt),Yt>0&&(ne-=Yt)):ne=0,(L!==this._passiveTransform.x||ne!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ne,x:L})}_getDragStartDelay(L){const ne=this.dragStartDelay;return"number"==typeof ne?ne:nt(L)?ne.touch:ne?ne.mouse:0}_updateOnScroll(L){const ne=this._parentPositions.handleScroll(L);if(ne){const le=(0,_.sA)(L);this._boundaryRect&&le!==this._boundaryElement&&le.contains(this._boundaryElement)&&Ue(this._boundaryRect,ne.top,ne.left),this._pickupPositionOnPage.x+=ne.left,this._pickupPositionOnPage.y+=ne.top,this._dropContainer||(this._activeTransform.x-=ne.left,this._activeTransform.y-=ne.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const L=this._parentPositions.positions.get(this._document);return L?L.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,_.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(L,ne){const le=this._previewContainer||"global";if("parent"===le)return L;if("global"===le){const Le=this._document;return ne||Le.fullscreenElement||Le.webkitFullscreenElement||Le.mozFullScreenElement||Le.msFullscreenElement||Le.body}return(0,w.fI)(le)}}function Ke(U,L){return`translate3d(${Math.round(U)}px, ${Math.round(L)}px, 0)`}function Je(U,L,ne){return Math.max(L,Math.min(ne,U))}function nt(U){return"t"===U.type[0]}function je(U,L){const ne=U.rootNodes;if(1===ne.length&&ne[0].nodeType===L.ELEMENT_NODE)return ne[0];const le=L.createElement("div");return ne.forEach(Le=>le.appendChild(Le)),le}function Q(U,L){U.style.width=`${L.width}px`,U.style.height=`${L.height}px`,U.style.transform=Ke(L.left,L.top)}function Ce(U,L,ne){const le=pe(L,U.length-1),Le=pe(ne,U.length-1);if(le===Le)return;const ct=U[le],bt=Le!0,this.sortPredicate=()=>!0,this.beforeStarted=new A.xQ,this.entered=new A.xQ,this.exited=new A.xQ,this.dropped=new A.xQ,this.sorted=new A.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,C.F)(0,R.r).pipe((0,O.R)(this._stopScrollTimers)).subscribe(()=>{const bt=this._scrollNode,xt=this.autoScrollStep;1===this._verticalScrollDirection?bt.scrollBy(0,-xt):2===this._verticalScrollDirection&&bt.scrollBy(0,xt),1===this._horizontalScrollDirection?bt.scrollBy(-xt,0):2===this._horizontalScrollDirection&&bt.scrollBy(xt,0)})},this.element=(0,w.fI)(L),this._document=le,this.withScrollableParents([this.element]),ne.registerDropContainer(this),this._parentPositions=new te(le,ct)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(L,ne,le,Le){let ct;this._draggingStarted(),null==Le?(ct=this.sortingDisabled?this._draggables.indexOf(L):-1,-1===ct&&(ct=this._getItemIndexFromPointerPosition(L,ne,le))):ct=Le;const bt=this._activeDraggables,xt=bt.indexOf(L),Yt=L.getPlaceholderElement();let It=bt[ct];if(It===L&&(It=bt[ct+1]),!It&&(null==ct||-1===ct||ct-1&&bt.splice(xt,1),It&&!this._dragDropRegistry.isDragging(It)){const Rt=It.getRootElement();Rt.parentElement.insertBefore(Yt,Rt),bt.splice(ct,0,L)}else(0,w.fI)(this.element).appendChild(Yt),bt.push(L);Yt.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:L,container:this,currentIndex:this.getItemIndex(L)})}exit(L){this._reset(),this.exited.next({item:L,container:this})}drop(L,ne,le,Le,ct,bt,xt){this._reset(),this.dropped.next({item:L,currentIndex:ne,previousIndex:le,container:this,previousContainer:Le,isPointerOverContainer:ct,distance:bt,dropPoint:xt})}withItems(L){const ne=this._draggables;return this._draggables=L,L.forEach(le=>le._withDropContainer(this)),this.isDragging()&&(ne.filter(Le=>Le.isDragging()).every(Le=>-1===L.indexOf(Le))?this._reset():this._cacheItems()),this}withDirection(L){return this._direction=L,this}connectedTo(L){return this._siblings=L.slice(),this}withOrientation(L){return this._orientation=L,this}withScrollableParents(L){const ne=(0,w.fI)(this.element);return this._scrollableElements=-1===L.indexOf(ne)?[ne,...L]:L.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(L){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(le=>le.drag===L):this._draggables.indexOf(L)}isReceiving(){return this._activeSiblings.size>0}_sortItem(L,ne,le,Le){if(this.sortingDisabled||!this._clientRect||!Xe(this._clientRect,.05,ne,le))return;const ct=this._itemPositions,bt=this._getItemIndexFromPointerPosition(L,ne,le,Le);if(-1===bt&&ct.length>0)return;const xt="horizontal"===this._orientation,Yt=ct.findIndex(bi=>bi.drag===L),It=ct[bt],Et=It.clientRect,Bt=Yt>bt?1:-1,Jt=this._getItemOffsetPx(ct[Yt].clientRect,Et,Bt),ai=this._getSiblingOffsetPx(Yt,ct,Bt),mi=ct.slice();Ce(ct,Yt,bt),this.sorted.next({previousIndex:Yt,currentIndex:bt,container:this,item:L}),ct.forEach((bi,yi)=>{if(mi[yi]===bi)return;const Wi=bi.drag===L,gn=Wi?Jt:ai,cn=Wi?L.getPlaceholderElement():bi.drag.getRootElement();bi.offset+=gn,xt?(cn.style.transform=j(`translate3d(${Math.round(bi.offset)}px, 0, 0)`,bi.initialTransform),Ue(bi.clientRect,0,gn)):(cn.style.transform=j(`translate3d(0, ${Math.round(bi.offset)}px, 0)`,bi.initialTransform),Ue(bi.clientRect,gn,0))}),this._previousSwap.overlaps=Fe(Et,ne,le),this._previousSwap.drag=It.drag,this._previousSwap.delta=xt?Le.x:Le.y}_startScrollingIfNecessary(L,ne){if(this.autoScrollDisabled)return;let le,Le=0,ct=0;if(this._parentPositions.positions.forEach((bt,xt)=>{xt===this._document||!bt.clientRect||le||Xe(bt.clientRect,.05,L,ne)&&([Le,ct]=function V(U,L,ne,le){const Le=_e(L,le),ct=$(L,ne);let bt=0,xt=0;if(Le){const Yt=U.scrollTop;1===Le?Yt>0&&(bt=1):U.scrollHeight-Yt>U.clientHeight&&(bt=2)}if(ct){const Yt=U.scrollLeft;1===ct?Yt>0&&(xt=1):U.scrollWidth-Yt>U.clientWidth&&(xt=2)}return[bt,xt]}(xt,bt.clientRect,L,ne),(Le||ct)&&(le=xt))}),!Le&&!ct){const{width:bt,height:xt}=this._viewportRuler.getViewportSize(),Yt={width:bt,height:xt,top:0,right:bt,bottom:xt,left:0};Le=_e(Yt,ne),ct=$(Yt,L),le=window}le&&(Le!==this._verticalScrollDirection||ct!==this._horizontalScrollDirection||le!==this._scrollNode)&&(this._verticalScrollDirection=Le,this._horizontalScrollDirection=ct,this._scrollNode=le,(Le||ct)&&le?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const L=(0,w.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=L.msScrollSnapType||L.scrollSnapType||"",L.scrollSnapType=L.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const L=(0,w.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(L).clientRect}_cacheItemPositions(){const L="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(ne=>{const le=ne.getVisibleElement();return{drag:ne,offset:0,initialTransform:le.style.transform||"",clientRect:ce(le)}}).sort((ne,le)=>L?ne.clientRect.left-le.clientRect.left:ne.clientRect.top-le.clientRect.top)}_reset(){this._isDragging=!1;const L=(0,w.fI)(this.element).style;L.scrollSnapType=L.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(ne=>{var le;const Le=ne.getRootElement();if(Le){const ct=null===(le=this._itemPositions.find(bt=>bt.drag===ne))||void 0===le?void 0:le.initialTransform;Le.style.transform=ct||""}}),this._siblings.forEach(ne=>ne._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(L,ne,le){const Le="horizontal"===this._orientation,ct=ne[L].clientRect,bt=ne[L+-1*le];let xt=ct[Le?"width":"height"]*le;if(bt){const Yt=Le?"left":"top",It=Le?"right":"bottom";-1===le?xt-=bt.clientRect[Yt]-ct[It]:xt+=ct[Yt]-bt.clientRect[It]}return xt}_getItemOffsetPx(L,ne,le){const Le="horizontal"===this._orientation;let ct=Le?ne.left-L.left:ne.top-L.top;return-1===le&&(ct+=Le?ne.width-L.width:ne.height-L.height),ct}_shouldEnterAsFirstChild(L,ne){if(!this._activeDraggables.length)return!1;const le=this._itemPositions,Le="horizontal"===this._orientation;if(le[0].drag!==this._activeDraggables[0]){const bt=le[le.length-1].clientRect;return Le?L>=bt.right:ne>=bt.bottom}{const bt=le[0].clientRect;return Le?L<=bt.left:ne<=bt.top}}_getItemIndexFromPointerPosition(L,ne,le,Le){const ct="horizontal"===this._orientation,bt=this._itemPositions.findIndex(({drag:xt,clientRect:Yt})=>{if(xt===L)return!1;if(Le){const It=ct?Le.x:Le.y;if(xt===this._previousSwap.drag&&this._previousSwap.overlaps&&It===this._previousSwap.delta)return!1}return ct?ne>=Math.floor(Yt.left)&&ne=Math.floor(Yt.top)&&leLe._canReceive(L,ne,le))}_canReceive(L,ne,le){if(!this._clientRect||!Fe(this._clientRect,ne,le)||!this.enterPredicate(L,this))return!1;const Le=this._getShadowRoot().elementFromPoint(ne,le);if(!Le)return!1;const ct=(0,w.fI)(this.element);return Le===ct||ct.contains(Le)}_startReceiving(L,ne){const le=this._activeSiblings;!le.has(L)&&ne.every(Le=>this.enterPredicate(Le,this)||this._draggables.indexOf(Le)>-1)&&(le.add(L),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(L){this._activeSiblings.delete(L),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(L=>{if(this.isDragging()){const ne=this._parentPositions.handleScroll(L);ne&&(this._itemPositions.forEach(({clientRect:le})=>{Ue(le,ne.top,ne.left)}),this._itemPositions.forEach(({drag:le})=>{this._dragDropRegistry.isDragging(le)&&le._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const L=(0,_.kV)((0,w.fI)(this.element));this._cachedShadowRoot=L||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const L=this._activeDraggables.filter(ne=>ne.isDragging());this._siblings.forEach(ne=>ne._startReceiving(this,L))}}function _e(U,L){const{top:ne,bottom:le,height:Le}=U,ct=.05*Le;return L>=ne-ct&&L<=ne+ct?1:L>=le-ct&&L<=le+ct?2:0}function $(U,L){const{left:ne,right:le,width:Le}=U,ct=.05*Le;return L>=ne-ct&&L<=ne+ct?1:L>=le-ct&&L<=le+ct?2:0}const i=(0,_.i$)({passive:!1,capture:!0});let a=(()=>{class U{constructor(ne,le){this._ngZone=ne,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=Le=>Le.isDragging(),this.pointerMove=new A.xQ,this.pointerUp=new A.xQ,this.scroll=new A.xQ,this._preventDefaultWhileDragging=Le=>{this._activeDragInstances.length>0&&Le.preventDefault()},this._persistentTouchmoveListener=Le=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&Le.preventDefault(),this.pointerMove.next(Le))},this._document=le}registerDropContainer(ne){this._dropInstances.has(ne)||this._dropInstances.add(ne)}registerDragItem(ne){this._dragInstances.add(ne),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,i)})}removeDropContainer(ne){this._dropInstances.delete(ne)}removeDragItem(ne){this._dragInstances.delete(ne),this.stopDragging(ne),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,i)}startDragging(ne,le){if(!(this._activeDragInstances.indexOf(ne)>-1)&&(this._activeDragInstances.push(ne),1===this._activeDragInstances.length)){const Le=le.type.startsWith("touch");this._globalListeners.set(Le?"touchend":"mouseup",{handler:ct=>this.pointerUp.next(ct),options:!0}).set("scroll",{handler:ct=>this.scroll.next(ct),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:i}),Le||this._globalListeners.set("mousemove",{handler:ct=>this.pointerMove.next(ct),options:i}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ct,bt)=>{this._document.addEventListener(bt,ct.handler,ct.options)})})}}stopDragging(ne){const le=this._activeDragInstances.indexOf(ne);le>-1&&(this._activeDragInstances.splice(le,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ne){return this._activeDragInstances.indexOf(ne)>-1}scrolled(ne){const le=[this.scroll];return ne&&ne!==this._document&&le.push(new I.y(Le=>this._ngZone.runOutsideAngular(()=>{const bt=xt=>{this._activeDragInstances.length&&Le.next(xt)};return ne.addEventListener("scroll",bt,!0),()=>{ne.removeEventListener("scroll",bt,!0)}}))),(0,m.T)(...le)}ngOnDestroy(){this._dragInstances.forEach(ne=>this.removeDragItem(ne)),this._dropInstances.forEach(ne=>this.removeDropContainer(ne)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ne,le)=>{this._document.removeEventListener(le,ne.handler,ne.options)}),this._globalListeners.clear()}}return U.\u0275fac=function(ne){return new(ne||U)(e.LFG(e.R0b),e.LFG(b.K0))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const d={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let l=(()=>{class U{constructor(ne,le,Le,ct){this._document=ne,this._ngZone=le,this._viewportRuler=Le,this._dragDropRegistry=ct}createDrag(ne,le=d){return new Se(ne,le,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ne){return new oe(ne,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return U.\u0275fac=function(ne){return new(ne||U)(e.LFG(b.K0),e.LFG(e.R0b),e.LFG(Me.rL),e.LFG(a))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const s=new e.OlP("CDK_DRAG_PARENT"),r=new e.OlP("CdkDropListGroup"),n=new e.OlP("CDK_DRAG_CONFIG");let c=0;const h=new e.OlP("CdkDropList");let x=(()=>{class U{constructor(ne,le,Le,ct,bt,xt,Yt){this.element=ne,this._changeDetectorRef=Le,this._scrollDispatcher=ct,this._dir=bt,this._group=xt,this._destroyed=new A.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+c++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=le.createDropList(ne),this._dropListRef.data=this,Yt&&this._assignDefaults(Yt),this._dropListRef.enterPredicate=(It,Rt)=>this.enterPredicate(It.data,Rt.data),this._dropListRef.sortPredicate=(It,Rt,Et)=>this.sortPredicate(It,Rt.data,Et.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),U._dropLists.push(this),xt&&xt._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ne){this._dropListRef.disabled=this._disabled=(0,w.Ig)(ne)}addItem(ne){this._unsortedItems.add(ne),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ne){this._unsortedItems.delete(ne),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ne,le)=>ne._dragRef.getVisibleElement().compareDocumentPosition(le._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ne=U._dropLists.indexOf(this);ne>-1&&U._dropLists.splice(ne,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ne){this._dir&&this._dir.change.pipe((0,P.O)(this._dir.value),(0,O.R)(this._destroyed)).subscribe(le=>ne.withDirection(le)),ne.beforeStarted.subscribe(()=>{const le=(0,w.Eq)(this.connectedTo).map(Le=>"string"==typeof Le?U._dropLists.find(bt=>bt.id===Le):Le);if(this._group&&this._group._items.forEach(Le=>{-1===le.indexOf(Le)&&le.push(Le)}),!this._scrollableParentsResolved){const Le=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ct=>ct.getElementRef().nativeElement);this._dropListRef.withScrollableParents(Le),this._scrollableParentsResolved=!0}ne.disabled=this.disabled,ne.lockAxis=this.lockAxis,ne.sortingDisabled=(0,w.Ig)(this.sortingDisabled),ne.autoScrollDisabled=(0,w.Ig)(this.autoScrollDisabled),ne.autoScrollStep=(0,w.su)(this.autoScrollStep,2),ne.connectedTo(le.filter(Le=>Le&&Le!==this).map(Le=>Le._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ne){ne.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ne.entered.subscribe(le=>{this.entered.emit({container:this,item:le.item.data,currentIndex:le.currentIndex})}),ne.exited.subscribe(le=>{this.exited.emit({container:this,item:le.item.data}),this._changeDetectorRef.markForCheck()}),ne.sorted.subscribe(le=>{this.sorted.emit({previousIndex:le.previousIndex,currentIndex:le.currentIndex,container:this,item:le.item.data})}),ne.dropped.subscribe(le=>{this.dropped.emit({previousIndex:le.previousIndex,currentIndex:le.currentIndex,previousContainer:le.previousContainer.data,container:le.container.data,item:le.item.data,isPointerOverContainer:le.isPointerOverContainer,distance:le.distance,dropPoint:le.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(ne){const{lockAxis:le,draggingDisabled:Le,sortingDisabled:ct,listAutoScrollDisabled:bt,listOrientation:xt}=ne;this.disabled=null!=Le&&Le,this.sortingDisabled=null!=ct&&ct,this.autoScrollDisabled=null!=bt&&bt,this.orientation=xt||"vertical",le&&(this.lockAxis=le)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ne=>ne._dragRef))}}return U._dropLists=[],U.\u0275fac=function(ne){return new(ne||U)(e.Y36(e.SBq),e.Y36(l),e.Y36(e.sBO),e.Y36(Me.mF),e.Y36(he.Is,8),e.Y36(r,12),e.Y36(n,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(ne,le){2&ne&&(e.uIk("id",le.id),e.ekj("cdk-drop-list-disabled",le.disabled)("cdk-drop-list-dragging",le._dropListRef.isDragging())("cdk-drop-list-receiving",le._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:r,useValue:void 0},{provide:h,useExisting:U}])]}),U})();const We=new e.OlP("CdkDragHandle"),Ht=new e.OlP("CdkDragPlaceholder"),Ut=new e.OlP("CdkDragPreview");let we=(()=>{class U{constructor(ne,le,Le,ct,bt,xt,Yt,It,Rt,Et,Bt){this.element=ne,this.dropContainer=le,this._ngZone=ct,this._viewContainerRef=bt,this._dir=Yt,this._changeDetectorRef=Rt,this._selfHandle=Et,this._parentDrag=Bt,this._destroyed=new A.xQ,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new I.y(Jt=>{const ai=this._dragRef.moved.pipe((0,W.U)(mi=>({source:this,pointerPosition:mi.pointerPosition,event:mi.event,delta:mi.delta,distance:mi.distance}))).subscribe(Jt);return()=>{ai.unsubscribe()}}),this._dragRef=It.createDrag(ne,{dragStartThreshold:xt&&null!=xt.dragStartThreshold?xt.dragStartThreshold:5,pointerDirectionChangeThreshold:xt&&null!=xt.pointerDirectionChangeThreshold?xt.pointerDirectionChangeThreshold:5,zIndex:null==xt?void 0:xt.zIndex}),this._dragRef.data=this,U._dragInstances.push(this),xt&&this._assignDefaults(xt),le&&(this._dragRef._withDropContainer(le._dropListRef),le.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ne){this._disabled=(0,w.Ig)(ne),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ie.q)(1),(0,O.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ne){const le=ne.rootElementSelector,Le=ne.freeDragPosition;le&&!le.firstChange&&this._updateRootElement(),Le&&!Le.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ne=U._dragInstances.indexOf(this);ne>-1&&U._dragInstances.splice(ne,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var ne;const le=this.element.nativeElement;let Le=le;this.rootElementSelector&&(Le=void 0!==le.closest?le.closest(this.rootElementSelector):null===(ne=le.parentElement)||void 0===ne?void 0:ne.closest(this.rootElementSelector)),this._dragRef.withRootElement(Le||le)}_getBoundaryElement(){const ne=this.boundaryElement;return ne?"string"==typeof ne?this.element.nativeElement.closest(ne):(0,w.fI)(ne):null}_syncInputs(ne){ne.beforeStarted.subscribe(()=>{if(!ne.isDragging()){const le=this._dir,Le=this.dragStartDelay,ct=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,bt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ne.disabled=this.disabled,ne.lockAxis=this.lockAxis,ne.dragStartDelay="object"==typeof Le&&Le?Le:(0,w.su)(Le),ne.constrainPosition=this.constrainPosition,ne.previewClass=this.previewClass,ne.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ct).withPreviewTemplate(bt).withPreviewContainer(this.previewContainer||"global"),le&&ne.withDirection(le.value)}}),ne.beforeStarted.pipe((0,ie.q)(1)).subscribe(()=>{var le;if(this._parentDrag)return void ne.withParent(this._parentDrag._dragRef);let Le=this.element.nativeElement.parentElement;for(;Le;){if(Le.classList.contains("cdk-drag")){ne.withParent((null===(le=U._dragInstances.find(ct=>ct.element.nativeElement===Le))||void 0===le?void 0:le._dragRef)||null);break}Le=Le.parentElement}})}_handleEvents(ne){ne.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),ne.released.subscribe(()=>{this.released.emit({source:this})}),ne.ended.subscribe(le=>{this.ended.emit({source:this,distance:le.distance,dropPoint:le.dropPoint}),this._changeDetectorRef.markForCheck()}),ne.entered.subscribe(le=>{this.entered.emit({container:le.container.data,item:this,currentIndex:le.currentIndex})}),ne.exited.subscribe(le=>{this.exited.emit({container:le.container.data,item:this})}),ne.dropped.subscribe(le=>{this.dropped.emit({previousIndex:le.previousIndex,currentIndex:le.currentIndex,previousContainer:le.previousContainer.data,container:le.container.data,isPointerOverContainer:le.isPointerOverContainer,item:this,distance:le.distance,dropPoint:le.dropPoint})})}_assignDefaults(ne){const{lockAxis:le,dragStartDelay:Le,constrainPosition:ct,previewClass:bt,boundaryElement:xt,draggingDisabled:Yt,rootElementSelector:It,previewContainer:Rt}=ne;this.disabled=null!=Yt&&Yt,this.dragStartDelay=Le||0,le&&(this.lockAxis=le),ct&&(this.constrainPosition=ct),bt&&(this.previewClass=bt),xt&&(this.boundaryElement=xt),It&&(this.rootElementSelector=It),Rt&&(this.previewContainer=Rt)}_setupHandlesListener(){this._handles.changes.pipe((0,P.O)(this._handles),(0,Ae.b)(ne=>{const le=ne.filter(Le=>Le._parentDrag===this).map(Le=>Le.element);this._selfHandle&&this.rootElementSelector&&le.push(this.element),this._dragRef.withHandles(le)}),(0,q.w)(ne=>(0,m.T)(...ne.map(le=>le._stateChanges.pipe((0,P.O)(le))))),(0,O.R)(this._destroyed)).subscribe(ne=>{const le=this._dragRef,Le=ne.element.nativeElement;ne.disabled?le.disableHandle(Le):le.enableHandle(Le)})}}return U._dragInstances=[],U.\u0275fac=function(ne){return new(ne||U)(e.Y36(e.SBq),e.Y36(h,12),e.Y36(b.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(n,8),e.Y36(he.Is,8),e.Y36(l),e.Y36(e.sBO),e.Y36(We,10),e.Y36(s,12))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDrag",""]],contentQueries:function(ne,le,Le){if(1&ne&&(e.Suo(Le,Ut,5),e.Suo(Le,Ht,5),e.Suo(Le,We,5)),2&ne){let ct;e.iGM(ct=e.CRH())&&(le._previewTemplate=ct.first),e.iGM(ct=e.CRH())&&(le._placeholderTemplate=ct.first),e.iGM(ct=e.CRH())&&(le._handles=ct)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ne,le){2&ne&&e.ekj("cdk-drag-disabled",le.disabled)("cdk-drag-dragging",le._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:s,useExisting:U}]),e.TTD]}),U})(),ze=(()=>{class U{}return U.\u0275fac=function(ne){return new(ne||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({providers:[l],imports:[Me.ZD]}),U})()},91159:(Qe,be,p)=>{"use strict";p.d(be,{A:()=>Ie,zL:()=>C,ZH:()=>b,OC:()=>gt,jx:()=>E,yY:()=>Y,JH:()=>De,uR:()=>ie,K5:()=>g,hY:()=>m,Sd:()=>Ae,oh:()=>q,b2:()=>_n,MW:()=>o,aO:()=>Oe,VM:()=>W,Ku:()=>P,SV:()=>he,JU:()=>A,L_:()=>O,Mf:()=>_,LH:()=>Me,Z:()=>n,xE:()=>ee,Vb:()=>ki});const b=8,_=9,g=13,A=16,E=17,C=18,m=27,O=32,P=33,W=34,ie=35,Ae=36,q=37,Me=38,he=39,De=40,Y=46,ee=48,Oe=57,Ie=65,n=90,o=91,gt=188,_n=224;function ki(Ri,...sn){return sn.length?sn.some(Xi=>Ri[Xi]):Ri.altKey||Ri.shiftKey||Ri.ctrlKey||Ri.metaKey}},17144:(Qe,be,p)=>{"use strict";p.d(be,{wD:()=>C,yq:()=>E,Q8:()=>R});var e=p(63191),b=p(5e3),_=p(56498),w=p(8929),g=p(80013);let A=(()=>{class I{create(O){return"undefined"==typeof MutationObserver?null:new MutationObserver(O)}}return I.\u0275fac=function(O){return new(O||I)},I.\u0275prov=b.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),E=(()=>{class I{constructor(O){this._mutationObserverFactory=O,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((O,P)=>this._cleanupObserver(P))}observe(O){const P=(0,e.fI)(O);return new _.y(W=>{const Ae=this._observeElement(P).subscribe(W);return()=>{Ae.unsubscribe(),this._unobserveElement(P)}})}_observeElement(O){if(this._observedElements.has(O))this._observedElements.get(O).count++;else{const P=new w.xQ,W=this._mutationObserverFactory.create(ie=>P.next(ie));W&&W.observe(O,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(O,{observer:W,stream:P,count:1})}return this._observedElements.get(O).stream}_unobserveElement(O){this._observedElements.has(O)&&(this._observedElements.get(O).count--,this._observedElements.get(O).count||this._cleanupObserver(O))}_cleanupObserver(O){if(this._observedElements.has(O)){const{observer:P,stream:W}=this._observedElements.get(O);P&&P.disconnect(),W.complete(),this._observedElements.delete(O)}}}return I.\u0275fac=function(O){return new(O||I)(b.LFG(A))},I.\u0275prov=b.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})(),C=(()=>{class I{constructor(O,P,W){this._contentObserver=O,this._elementRef=P,this._ngZone=W,this.event=new b.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(O){this._disabled=(0,e.Ig)(O),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(O){this._debounce=(0,e.su)(O),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const O=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?O.pipe((0,g.b)(this.debounce)):O).subscribe(this.event)})}_unsubscribe(){var O;null===(O=this._currentSubscription)||void 0===O||O.unsubscribe()}}return I.\u0275fac=function(O){return new(O||I)(b.Y36(E),b.Y36(b.SBq),b.Y36(b.R0b))},I.\u0275dir=b.lG2({type:I,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),I})(),R=(()=>{class I{}return I.\u0275fac=function(O){return new(O||I)},I.\u0275mod=b.oAB({type:I}),I.\u0275inj=b.cJS({providers:[A]}),I})()},92845:(Qe,be,p)=>{"use strict";p.d(be,{pI:()=>Ne,xu:()=>Z,_G:()=>ge,aV:()=>re,X_:()=>ce,Xj:()=>Oe,U8:()=>$});var e=p(53435),b=p(69808),_=p(5e3),w=p(63191),g=p(70925),A=p(50226),E=p(47429),C=p(8929),R=p(42654),I=p(36787),m=p(43489);class P{constructor(a,d){this.predicate=a,this.inclusive=d}call(a,d){return d.subscribe(new W(a,this.predicate,this.inclusive))}}class W extends m.L{constructor(a,d,l){super(a),this.predicate=d,this.inclusive=l,this.index=0}_next(a){const d=this.destination;let l;try{l=this.predicate(a,this.index++)}catch(s){return void d.error(s)}this.nextOrComplete(a,l)}nextOrComplete(a,d){const l=this.destination;Boolean(d)?l.next(a):(this.inclusive&&l.next(a),l.complete())}}var ie=p(72986),Ae=p(7625),q=p(91159);const Me=(0,g.Mq)();class he{constructor(a,d){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=(0,w.HM)(-this._previousScrollPosition.left),a.style.top=(0,w.HM)(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,l=a.style,s=this._document.body.style,r=l.scrollBehavior||"",t=s.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Me&&(l.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Me&&(l.scrollBehavior=r,s.scrollBehavior=t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const d=this._document.body,l=this._viewportRuler.getViewportSize();return d.scrollHeight>l.height||d.scrollWidth>l.width}}class T{constructor(a,d,l,s){this._scrollDispatcher=a,this._ngZone=d,this._viewportRuler=l,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class N{enable(){}disable(){}attach(){}}function j(i,a){return a.some(d=>i.bottomd.bottom||i.rightd.right)}function Y(i,a){return a.some(d=>i.topd.bottom||i.leftd.right)}class ee{constructor(a,d,l,s){this._scrollDispatcher=a,this._viewportRuler=d,this._ngZone=l,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:s}=this._viewportRuler.getViewportSize();j(d,[{width:l,height:s,bottom:s,right:l,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 de=(()=>{class i{constructor(d,l,s,r){this._scrollDispatcher=d,this._viewportRuler=l,this._ngZone=s,this.noop=()=>new N,this.close=t=>new T(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new he(this._viewportRuler,this._document),this.reposition=t=>new ee(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class ce{constructor(a){if(this.scrollStrategy=new N,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const d=Object.keys(a);for(const l of d)void 0!==a[l]&&(this[l]=a[l])}}}class Xe{constructor(a,d){this.connectionPair=a,this.scrollableViewProperties=d}}class ve{constructor(a,d,l,s,r,t,n,o,c){this._portalOutlet=a,this._host=d,this._pane=l,this._config=s,this._ngZone=r,this._keyboardDispatcher=t,this._document=n,this._location=o,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new C.xQ,this._attachments=new C.xQ,this._detachments=new C.xQ,this._locationChanges=R.w.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new C.xQ,this._outsidePointerEvents=new C.xQ,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let d=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ie.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),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const d=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,d&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=(0,w.HM)(this._config.width),a.height=(0,w.HM)(this._config.height),a.minWidth=(0,w.HM)(this._config.minWidth),a.minHeight=(0,w.HM)(this._config.minHeight),a.maxWidth=(0,w.HM)(this._config.maxWidth),a.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let d;const l=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",l),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(d)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",l)}),a.style.pointerEvents="none",d=this._ngZone.runOutsideAngular(()=>setTimeout(l,500))}_toggleClasses(a,d,l){const s=(0,w.Eq)(d||[]).filter(r=>!!r);s.length&&(l?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe((0,Ae.R)((0,I.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Oe=(()=>{class i{constructor(d,l){this._platform=l,this._document=d}ngOnDestroy(){var d;null===(d=this._containerElement)||void 0===d||d.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const d="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const s=this._document.querySelectorAll(`.${d}[platform="server"], .${d}[platform="test"]`);for(let r=0;r{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 a=this._originRect,d=this._overlayRect,l=this._viewportRect,s=this._containerRect,r=[];let t;for(let n of this._preferredPositions){let o=this._getOriginPoint(a,s,n),c=this._getOverlayPoint(o,d,n),h=this._getOverlayFit(c,d,l,n);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,o);this._canFitWithFlexibleDimensions(h,c,l)?r.push({position:n,origin:o,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(o,n)}):(!t||t.overlayFit.visibleAreao&&(o=h,n=c)}return this._isPushed=!1,void this._applyPosition(n.position,n.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&&Te(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(z),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const d=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,d)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,d,l){let s,r;if("center"==l.originX)s=a.left+a.width/2;else{const t=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;s="start"==l.originX?t:n}return d.left<0&&(s-=d.left),r="center"==l.originY?a.top+a.height/2:"top"==l.originY?a.top:a.bottom,d.top<0&&(r-=d.top),{x:s,y:r}}_getOverlayPoint(a,d,l){let s,r;return s="center"==l.overlayX?-d.width/2:"start"===l.overlayX?this._isRtl()?-d.width:0:this._isRtl()?0:-d.width,r="center"==l.overlayY?-d.height/2:"top"==l.overlayY?0:-d.height,{x:a.x+s,y:a.y+r}}_getOverlayFit(a,d,l,s){const r=fe(d);let{x:t,y:n}=a,o=this._getOffset(s,"x"),c=this._getOffset(s,"y");o&&(t+=o),c&&(n+=c);let We=0-n,At=n+r.height-l.height,Ht=this._subtractOverflows(r.width,0-t,t+r.width-l.width),lt=this._subtractOverflows(r.height,We,At),Ut=Ht*lt;return{visibleArea:Ut,isCompletelyWithinViewport:r.width*r.height===Ut,fitsInViewportVertically:lt===r.height,fitsInViewportHorizontally:Ht==r.width}}_canFitWithFlexibleDimensions(a,d,l){if(this._hasFlexibleDimensions){const s=l.bottom-d.y,r=l.right-d.x,t=Ie(this._overlayRef.getConfig().minHeight),n=Ie(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=n&&n<=r;return(a.fitsInViewportVertically||null!=t&&t<=s)&&c}return!1}_pushOverlayOnScreen(a,d,l){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=fe(d),r=this._viewportRect,t=Math.max(a.x+s.width-r.width,0),n=Math.max(a.y+s.height-r.height,0),o=Math.max(r.top-l.top-a.y,0),c=Math.max(r.left-l.left-a.x,0);let h=0,x=0;return h=s.width<=r.width?c||-t:a.xHt&&!this._isInitialRender&&!this._growAfterOpen&&(t=a.y-Ht/2)}if("end"===d.overlayX&&!s||"start"===d.overlayX&&s)We=l.width-a.x+this._viewportMargin,h=a.x-this._viewportMargin;else if("start"===d.overlayX&&!s||"end"===d.overlayX&&s)x=a.x,h=l.right-a.x;else{const At=Math.min(l.right-a.x+l.left,a.x),Ht=this._lastBoundingBoxSize.width;h=2*At,x=a.x-At,h>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(x=a.x-Ht/2)}return{top:t,left:x,bottom:n,right:We,width:h,height:r}}_setBoundingBoxStyles(a,d){const l=this._calculateBoundingBoxRect(a,d);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,t=this._overlayRef.getConfig().maxWidth;s.height=(0,w.HM)(l.height),s.top=(0,w.HM)(l.top),s.bottom=(0,w.HM)(l.bottom),s.width=(0,w.HM)(l.width),s.left=(0,w.HM)(l.left),s.right=(0,w.HM)(l.right),s.alignItems="center"===d.overlayX?"center":"end"===d.overlayX?"flex-end":"flex-start",s.justifyContent="center"===d.overlayY?"center":"bottom"===d.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=(0,w.HM)(r)),t&&(s.maxWidth=(0,w.HM)(t))}this._lastBoundingBoxSize=l,Te(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Te(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Te(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,d){const l={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,t=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();Te(l,this._getExactOverlayY(d,a,h)),Te(l,this._getExactOverlayX(d,a,h))}else l.position="static";let n="",o=this._getOffset(d,"x"),c=this._getOffset(d,"y");o&&(n+=`translateX(${o}px) `),c&&(n+=`translateY(${c}px)`),l.transform=n.trim(),t.maxHeight&&(s?l.maxHeight=(0,w.HM)(t.maxHeight):r&&(l.maxHeight="")),t.maxWidth&&(s?l.maxWidth=(0,w.HM)(t.maxWidth):r&&(l.maxWidth="")),Te(this._pane.style,l)}_getExactOverlayY(a,d,l){let s={top:"",bottom:""},r=this._getOverlayPoint(d,this._overlayRect,a);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=(0,w.HM)(r.y),s}_getExactOverlayX(a,d,l){let t,s={left:"",right:""},r=this._getOverlayPoint(d,this._overlayRect,a);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),t=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===t?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,w.HM)(r.x),s}_getScrollVisibility(){const a=this._getOriginRect(),d=this._pane.getBoundingClientRect(),l=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y(a,l),isOriginOutsideView:j(a,l),isOverlayClipped:Y(d,l),isOverlayOutsideView:j(d,l)}}_subtractOverflows(a,...d){return d.reduce((l,s)=>l-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+a-this._viewportMargin,bottom:l.top+d-this._viewportMargin,width:a-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,d){return"x"===d?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&(0,w.Eq)(a).forEach(d=>{""!==d&&-1===this._appliedPanelClasses.indexOf(d)&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof _.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const d=a.width||0,l=a.height||0;return{top:a.y,bottom:a.y+l,left:a.x,right:a.x+d,height:l,width:d}}}function Te(i,a){for(let d in a)a.hasOwnProperty(d)&&(i[d]=a[d]);return i}function Ie(i){if("number"!=typeof i&&null!=i){const[a,d]=i.split(D);return d&&"px"!==d?null:parseFloat(a)}return i||null}function fe(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Se="cdk-global-overlay-wrapper";class Ke{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const d=a.getConfig();this._overlayRef=a,this._width&&!d.width&&a.updateSize({width:this._width}),this._height&&!d.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Se),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:t,maxHeight:n}=l,o=!("100%"!==s&&"100vw"!==s||t&&"100%"!==t&&"100vw"!==t),c=!("100%"!==r&&"100vh"!==r||n&&"100%"!==n&&"100vh"!==n);a.position=this._cssPosition,a.marginLeft=o?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,o?d.justifyContent="flex-start":"center"===this._justifyContent?d.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?d.justifyContent="flex-end":"flex-end"===this._justifyContent&&(d.justifyContent="flex-start"):d.justifyContent=this._justifyContent,d.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,l=d.style;d.classList.remove(Se),l.justifyContent=l.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class i{constructor(d,l,s,r){this._viewportRuler=d,this._document=l,this._platform=s,this._overlayContainer=r}global(){return new Ke}flexibleConnectedTo(d){return new ge(d,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.rL),_.LFG(b.K0),_.LFG(g.t4),_.LFG(Oe))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nt=(()=>{class i{constructor(d){this._attachedOverlays=[],this._document=d}ngOnDestroy(){this.detach()}add(d){this.remove(d),this._attachedOverlays.push(d)}remove(d){const l=this._attachedOverlays.indexOf(d);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),je=(()=>{class i extends nt{constructor(d){super(d),this._keydownListener=l=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(l);break}}}add(d){super.add(d),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Q=(()=>{class i extends nt{constructor(d,l){super(d),this._platform=l,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=(0,g.sA)(s)},this._clickListener=s=>{const r=(0,g.sA)(s),t="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let o=n.length-1;o>-1;o--){const c=n[o];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(t))break;c._outsidePointerEvents.next(s)}}}}add(d){if(super.add(d),!this._isAttached){const l=this._document.body;l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const d=this._document.body;d.removeEventListener("pointerdown",this._pointerDownListener,!0),d.removeEventListener("click",this._clickListener,!0),d.removeEventListener("auxclick",this._clickListener,!0),d.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(d.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0),_.LFG(g.t4))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ce=0,re=(()=>{class i{constructor(d,l,s,r,t,n,o,c,h,x,We){this.scrollStrategies=d,this._overlayContainer=l,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=t,this._injector=n,this._ngZone=o,this._document=c,this._directionality=h,this._location=x,this._outsideClickDispatcher=We}create(d){const l=this._createHostElement(),s=this._createPaneElement(l),r=this._createPortalOutlet(s),t=new ce(d);return t.direction=t.direction||this._directionality.value,new ve(r,l,s,t,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(d){const l=this._document.createElement("div");return l.id="cdk-overlay-"+Ce++,l.classList.add("cdk-overlay-pane"),d.appendChild(l),l}_createHostElement(){const d=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(d),d}_createPortalOutlet(d){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new E.u0(d,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(de),_.LFG(Oe),_.LFG(_._Vd),_.LFG(Je),_.LFG(je),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(b.K0),_.LFG(A.Is),_.LFG(b.Ye),_.LFG(Q))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac}),i})();const k=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],pe=new _.OlP("cdk-connected-overlay-scroll-strategy");let Z=(()=>{class i{constructor(d){this.elementRef=d}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),Ne=(()=>{class i{constructor(d,l,s,r,t){this._overlay=d,this._dir=t,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=R.w.EMPTY,this._attachSubscription=R.w.EMPTY,this._detachSubscription=R.w.EMPTY,this._positionSubscription=R.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new E.UE(l,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(d){this._offsetX=d,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(d){this._offsetY=d,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(d){this._hasBackdrop=(0,w.Ig)(d)}get lockPosition(){return this._lockPosition}set lockPosition(d){this._lockPosition=(0,w.Ig)(d)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(d){this._flexibleDimensions=(0,w.Ig)(d)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(d){this._growAfterOpen=(0,w.Ig)(d)}get push(){return this._push}set push(d){this._push=(0,w.Ig)(d)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(d){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),d.origin&&this.open&&this._position.apply()),d.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=k);const d=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=d.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=d.detachments().subscribe(()=>this.detach.emit()),d.keydownEvents().subscribe(l=>{this.overlayKeydown.next(l),l.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(l)&&(l.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(l=>{this.overlayOutsideClick.next(l)})}_buildConfig(){const d=this._position=this.positionStrategy||this._createPositionStrategy(),l=new ce({direction:this._dir,positionStrategy:d,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}_updatePositionStrategy(d){const l=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return d.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(l).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const d=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(d),d}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Z?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(d=>{this.backdropClick.emit(d)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function O(i,a=!1){return d=>d.lift(new P(i,a))}(()=>this.positionChange.observers.length>0)).subscribe(d=>{this.positionChange.emit(d),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(re),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(pe),_.Y36(A.Is,8))},i.\u0275dir=_.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[_.TTD]}),i})();const _e={provide:pe,deps:[re],useFactory:function oe(i){return()=>i.scrollStrategies.reposition()}};let $=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({providers:[re,_e],imports:[[A.vT,E.eL,e.Cl],e.Cl]}),i})()},70925:(Qe,be,p)=>{"use strict";p.d(be,{t4:()=>w,ud:()=>g,sA:()=>De,ht:()=>he,kV:()=>Me,Oy:()=>T,_i:()=>ie,qK:()=>C,i$:()=>m,Mq:()=>W});var e=p(5e3),b=p(69808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(N){_=!1}let A,w=(()=>{class N{constructor(Y){this._platformId=Y,this.isBrowser=this._platformId?(0,b.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&&!_)&&"undefined"!=typeof CSS&&!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}}return N.\u0275fac=function(Y){return new(Y||N)(e.LFG(e.Lbi))},N.\u0275prov=e.Yz7({token:N,factory:N.\u0275fac,providedIn:"root"}),N})(),g=(()=>{class N{}return N.\u0275fac=function(Y){return new(Y||N)},N.\u0275mod=e.oAB({type:N}),N.\u0275inj=e.cJS({}),N})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(E),A;let N=document.createElement("input");return A=new Set(E.filter(j=>(N.setAttribute("type",j),N.type===j))),A}let R,O,P,Ae;function m(N){return function I(){if(null==R&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>R=!0}))}finally{R=R||!1}return R}()?N:!!N.capture}function W(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const N=Element.prototype.scrollTo;P=!!N&&!/\{\s*\[native code\]\s*\}/.test(N.toString())}}return P}function ie(){if("object"!=typeof document||!document)return 0;if(null==O){const N=document.createElement("div"),j=N.style;N.dir="rtl",j.width="1px",j.overflow="auto",j.visibility="hidden",j.pointerEvents="none",j.position="absolute";const Y=document.createElement("div"),ee=Y.style;ee.width="2px",ee.height="1px",N.appendChild(Y),document.body.appendChild(N),O=0,0===N.scrollLeft&&(N.scrollLeft=1,O=0===N.scrollLeft?1:2),N.remove()}return O}function Me(N){if(function q(){if(null==Ae){const N="undefined"!=typeof document?document.head:null;Ae=!(!N||!N.createShadowRoot&&!N.attachShadow)}return Ae}()){const j=N.getRootNode?N.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&j instanceof ShadowRoot)return j}return null}function he(){let N="undefined"!=typeof document&&document?document.activeElement:null;for(;N&&N.shadowRoot;){const j=N.shadowRoot.activeElement;if(j===N)break;N=j}return N}function De(N){return N.composedPath?N.composedPath()[0]:N.target}function T(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},47429:(Qe,be,p)=>{"use strict";p.d(be,{en:()=>P,ig:()=>q,Pl:()=>he,C5:()=>I,u0:()=>ie,eL:()=>T,UE:()=>m});var e=p(5e3),b=p(69808);class R{attach(Y){return this._attachedHost=Y,Y.attach(this)}detach(){let Y=this._attachedHost;null!=Y&&(this._attachedHost=null,Y.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Y){this._attachedHost=Y}}class I extends R{constructor(Y,ee,de,ce){super(),this.component=Y,this.viewContainerRef=ee,this.injector=de,this.componentFactoryResolver=ce}}class m extends R{constructor(Y,ee,de){super(),this.templateRef=Y,this.viewContainerRef=ee,this.context=de}get origin(){return this.templateRef.elementRef}attach(Y,ee=this.context){return this.context=ee,super.attach(Y)}detach(){return this.context=void 0,super.detach()}}class O extends R{constructor(Y){super(),this.element=Y instanceof e.SBq?Y.nativeElement:Y}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Y){return Y instanceof I?(this._attachedPortal=Y,this.attachComponentPortal(Y)):Y instanceof m?(this._attachedPortal=Y,this.attachTemplatePortal(Y)):this.attachDomPortal&&Y instanceof O?(this._attachedPortal=Y,this.attachDomPortal(Y)):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(Y){this._disposeFn=Y}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ie extends P{constructor(Y,ee,de,ce,Fe){super(),this.outletElement=Y,this._componentFactoryResolver=ee,this._appRef=de,this._defaultInjector=ce,this.attachDomPortal=Ue=>{const Xe=Ue.element,te=this._document.createComment("dom-portal");Xe.parentNode.insertBefore(te,Xe),this.outletElement.appendChild(Xe),this._attachedPortal=Ue,super.setDisposeFn(()=>{te.parentNode&&te.parentNode.replaceChild(Xe,te)})},this._document=Fe}attachComponentPortal(Y){const de=(Y.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Y.component);let ce;return Y.viewContainerRef?(ce=Y.viewContainerRef.createComponent(de,Y.viewContainerRef.length,Y.injector||Y.viewContainerRef.injector),this.setDisposeFn(()=>ce.destroy())):(ce=de.create(Y.injector||this._defaultInjector),this._appRef.attachView(ce.hostView),this.setDisposeFn(()=>{this._appRef.detachView(ce.hostView),ce.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(ce)),this._attachedPortal=Y,ce}attachTemplatePortal(Y){let ee=Y.viewContainerRef,de=ee.createEmbeddedView(Y.templateRef,Y.context);return de.rootNodes.forEach(ce=>this.outletElement.appendChild(ce)),de.detectChanges(),this.setDisposeFn(()=>{let ce=ee.indexOf(de);-1!==ce&&ee.remove(ce)}),this._attachedPortal=Y,de}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Y){return Y.hostView.rootNodes[0]}}let q=(()=>{class j extends m{constructor(ee,de){super(ee,de)}}return j.\u0275fac=function(ee){return new(ee||j)(e.Y36(e.Rgc),e.Y36(e.s_b))},j.\u0275dir=e.lG2({type:j,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),j})(),he=(()=>{class j extends P{constructor(ee,de,ce){super(),this._componentFactoryResolver=ee,this._viewContainerRef=de,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Fe=>{const Ue=Fe.element,Xe=this._document.createComment("dom-portal");Fe.setAttachedHost(this),Ue.parentNode.insertBefore(Xe,Ue),this._getRootNode().appendChild(Ue),this._attachedPortal=Fe,super.setDisposeFn(()=>{Xe.parentNode&&Xe.parentNode.replaceChild(Ue,Xe)})},this._document=ce}get portal(){return this._attachedPortal}set portal(ee){this.hasAttached()&&!ee&&!this._isInitialized||(this.hasAttached()&&super.detach(),ee&&super.attach(ee),this._attachedPortal=ee||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(ee){ee.setAttachedHost(this);const de=null!=ee.viewContainerRef?ee.viewContainerRef:this._viewContainerRef,Fe=(ee.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ee.component),Ue=de.createComponent(Fe,de.length,ee.injector||de.injector);return de!==this._viewContainerRef&&this._getRootNode().appendChild(Ue.hostView.rootNodes[0]),super.setDisposeFn(()=>Ue.destroy()),this._attachedPortal=ee,this._attachedRef=Ue,this.attached.emit(Ue),Ue}attachTemplatePortal(ee){ee.setAttachedHost(this);const de=this._viewContainerRef.createEmbeddedView(ee.templateRef,ee.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ee,this._attachedRef=de,this.attached.emit(de),de}_getRootNode(){const ee=this._viewContainerRef.element.nativeElement;return ee.nodeType===ee.ELEMENT_NODE?ee:ee.parentNode}}return j.\u0275fac=function(ee){return new(ee||j)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(b.K0))},j.\u0275dir=e.lG2({type:j,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),j})(),T=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({}),j})()},53435:(Qe,be,p)=>{"use strict";p.d(be,{xd:()=>te,PQ:()=>Oe,ZD:()=>Ke,x0:()=>Se,N7:()=>Ie,mF:()=>ve,Cl:()=>Je,rL:()=>D});var e=p(63191),b=p(5e3),_=p(8929),w=p(21086),g=p(56498),A=p(23753),E=p(90352),C=p(8139),R=p(42654),I=p(54715),m=p(43489);class P{call(je,Q){return Q.subscribe(new W(je))}}class W extends m.L{constructor(je){super(je),this.hasPrev=!1}_next(je){let Q;this.hasPrev?Q=[this.prev,je]:this.hasPrev=!0,this.prev=je,Q&&this.destination.next(Q)}}var ie=p(75778),Ae=p(57138),q=p(92198),Me=p(7625),he=p(1059),De=p(87545),T=p(5154),N=p(69808),j=p(70925),Y=p(50226),ee=p(20449);const de=["contentWrapper"],ce=["*"],Fe=new b.OlP("VIRTUAL_SCROLL_STRATEGY");class Ue{constructor(je,Q,Ce){this._scrolledIndexChange=new _.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,ie.x)()),this._viewport=null,this._itemSize=je,this._minBufferPx=Q,this._maxBufferPx=Ce}attach(je){this._viewport=je,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(je,Q,Ce){this._itemSize=je,this._minBufferPx=Q,this._maxBufferPx=Ce,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(je,Q){this._viewport&&this._viewport.scrollToOffset(je*this._itemSize,Q)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const je=this._viewport.getRenderedRange(),Q={start:je.start,end:je.end},Ce=this._viewport.getViewportSize(),re=this._viewport.getDataLength();let k=this._viewport.measureScrollOffset(),pe=this._itemSize>0?k/this._itemSize:0;if(Q.end>re){const Ne=Math.ceil(Ce/this._itemSize),oe=Math.max(0,Math.min(pe,re-Ne));pe!=oe&&(pe=oe,k=oe*this._itemSize,Q.start=Math.floor(pe)),Q.end=Math.max(0,Math.min(re,Q.start+Ne))}const Z=k-Q.start*this._itemSize;if(Z0&&(Q.end=Math.min(re,Q.end+oe),Q.start=Math.max(0,Math.floor(pe-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(Q),this._viewport.setRenderedContentOffset(this._itemSize*Q.start),this._scrolledIndexChange.next(Math.floor(pe))}}function Xe(nt){return nt._scrollStrategy}let te=(()=>{class nt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ue(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(Q){this._itemSize=(0,e.su)(Q)}get minBufferPx(){return this._minBufferPx}set minBufferPx(Q){this._minBufferPx=(0,e.su)(Q)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(Q){this._maxBufferPx=(0,e.su)(Q)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275dir=b.lG2({type:nt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[b._Bn([{provide:Fe,useFactory:Xe,deps:[(0,b.Gpc)(()=>nt)]}]),b.TTD]}),nt})(),ve=(()=>{class nt{constructor(Q,Ce,re){this._ngZone=Q,this._platform=Ce,this._scrolled=new _.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=re}register(Q){this.scrollContainers.has(Q)||this.scrollContainers.set(Q,Q.elementScrolled().subscribe(()=>this._scrolled.next(Q)))}deregister(Q){const Ce=this.scrollContainers.get(Q);Ce&&(Ce.unsubscribe(),this.scrollContainers.delete(Q))}scrolled(Q=20){return this._platform.isBrowser?new g.y(Ce=>{this._globalSubscription||this._addGlobalListener();const re=Q>0?this._scrolled.pipe((0,Ae.e)(Q)).subscribe(Ce):this._scrolled.subscribe(Ce);return this._scrolledCount++,()=>{re.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Q,Ce)=>this.deregister(Ce)),this._scrolled.complete()}ancestorScrolled(Q,Ce){const re=this.getAncestorScrollContainers(Q);return this.scrolled(Ce).pipe((0,q.h)(k=>!k||re.indexOf(k)>-1))}getAncestorScrollContainers(Q){const Ce=[];return this.scrollContainers.forEach((re,k)=>{this._scrollableContainsElement(k,Q)&&Ce.push(k)}),Ce}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Q,Ce){let re=(0,e.fI)(Ce),k=Q.getElementRef().nativeElement;do{if(re==k)return!0}while(re=re.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Q=this._getWindow();return(0,A.R)(Q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return nt.\u0275fac=function(Q){return new(Q||nt)(b.LFG(b.R0b),b.LFG(j.t4),b.LFG(N.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),Oe=(()=>{class nt{constructor(Q,Ce,re,k){this.elementRef=Q,this.scrollDispatcher=Ce,this.ngZone=re,this.dir=k,this._destroyed=new _.xQ,this._elementScrolled=new g.y(pe=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,Me.R)(this._destroyed)).subscribe(pe)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Q){const Ce=this.elementRef.nativeElement,re=this.dir&&"rtl"==this.dir.value;null==Q.left&&(Q.left=re?Q.end:Q.start),null==Q.right&&(Q.right=re?Q.start:Q.end),null!=Q.bottom&&(Q.top=Ce.scrollHeight-Ce.clientHeight-Q.bottom),re&&0!=(0,j._i)()?(null!=Q.left&&(Q.right=Ce.scrollWidth-Ce.clientWidth-Q.left),2==(0,j._i)()?Q.left=Q.right:1==(0,j._i)()&&(Q.left=Q.right?-Q.right:Q.right)):null!=Q.right&&(Q.left=Ce.scrollWidth-Ce.clientWidth-Q.right),this._applyScrollToOptions(Q)}_applyScrollToOptions(Q){const Ce=this.elementRef.nativeElement;(0,j.Mq)()?Ce.scrollTo(Q):(null!=Q.top&&(Ce.scrollTop=Q.top),null!=Q.left&&(Ce.scrollLeft=Q.left))}measureScrollOffset(Q){const Ce="left",k=this.elementRef.nativeElement;if("top"==Q)return k.scrollTop;if("bottom"==Q)return k.scrollHeight-k.clientHeight-k.scrollTop;const pe=this.dir&&"rtl"==this.dir.value;return"start"==Q?Q=pe?"right":Ce:"end"==Q&&(Q=pe?Ce:"right"),pe&&2==(0,j._i)()?Q==Ce?k.scrollWidth-k.clientWidth-k.scrollLeft:k.scrollLeft:pe&&1==(0,j._i)()?Q==Ce?k.scrollLeft+k.scrollWidth-k.clientWidth:-k.scrollLeft:Q==Ce?k.scrollLeft:k.scrollWidth-k.clientWidth-k.scrollLeft}}return nt.\u0275fac=function(Q){return new(Q||nt)(b.Y36(b.SBq),b.Y36(ve),b.Y36(b.R0b),b.Y36(Y.Is,8))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),nt})(),D=(()=>{class nt{constructor(Q,Ce,re){this._platform=Q,this._change=new _.xQ,this._changeListener=k=>{this._change.next(k)},this._document=re,Ce.runOutsideAngular(()=>{if(Q.isBrowser){const k=this._getWindow();k.addEventListener("resize",this._changeListener),k.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Q=this._getWindow();Q.removeEventListener("resize",this._changeListener),Q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Q}getViewportRect(){const Q=this.getViewportScrollPosition(),{width:Ce,height:re}=this.getViewportSize();return{top:Q.top,left:Q.left,bottom:Q.top+re,right:Q.left+Ce,height:re,width:Ce}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Q=this._document,Ce=this._getWindow(),re=Q.documentElement,k=re.getBoundingClientRect();return{top:-k.top||Q.body.scrollTop||Ce.scrollY||re.scrollTop||0,left:-k.left||Q.body.scrollLeft||Ce.scrollX||re.scrollLeft||0}}change(Q=20){return Q>0?this._change.pipe((0,Ae.e)(Q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Q.innerWidth,height:Q.innerHeight}:{width:0,height:0}}}return nt.\u0275fac=function(Q){return new(Q||nt)(b.LFG(j.t4),b.LFG(b.R0b),b.LFG(N.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const Te="undefined"!=typeof requestAnimationFrame?E.r:C.e;let Ie=(()=>{class nt extends Oe{constructor(Q,Ce,re,k,pe,Z,Ne){super(Q,Z,re,pe),this.elementRef=Q,this._changeDetectorRef=Ce,this._scrollStrategy=k,this._detachedSubject=new _.xQ,this._renderedRangeSubject=new _.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(oe=>this._scrollStrategy.scrolledIndexChange.subscribe(_e=>Promise.resolve().then(()=>this.ngZone.run(()=>oe.next(_e))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=R.w.EMPTY,this._viewportChanges=Ne.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(Q){this._orientation!==Q&&(this._orientation=Q,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(Q){this._appendOnly=(0,e.Ig)(Q)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,he.O)(null),(0,Ae.e)(0,Te)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(Q){this.ngZone.runOutsideAngular(()=>{this._forOf=Q,this._forOf.dataStream.pipe((0,Me.R)(this._detachedSubject)).subscribe(Ce=>{const re=Ce.length;re!==this._dataLength&&(this._dataLength=re,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(Q){this._totalContentSize!==Q&&(this._totalContentSize=Q,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(Q){(function ge(nt,je){return nt.start==je.start&&nt.end==je.end})(this._renderedRange,Q)||(this.appendOnly&&(Q={start:0,end:Math.max(this._renderedRange.end,Q.end)}),this._renderedRangeSubject.next(this._renderedRange=Q),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(Q,Ce="to-start"){const k="horizontal"==this.orientation,pe=k?"X":"Y";let Ne=`translate${pe}(${Number((k&&this.dir&&"rtl"==this.dir.value?-1:1)*Q)}px)`;this._renderedContentOffset=Q=this.appendOnly&&"to-start"===Ce?0:Q,"to-end"===Ce&&(Ne+=` translate${pe}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=Ne&&(this._renderedContentTransform=Ne,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(Q,Ce="auto"){const re={behavior:Ce};"horizontal"===this.orientation?re.start=Q:re.top=Q,this.scrollTo(re)}scrollToIndex(Q,Ce="auto"){this._scrollStrategy.scrollToIndex(Q,Ce)}measureScrollOffset(Q){return super.measureScrollOffset(Q||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const Q=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?Q.offsetWidth:Q.offsetHeight}measureRangeSize(Q){return this._forOf?this._forOf.measureRangeSize(Q,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const Q=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?Q.clientWidth:Q.clientHeight}_markChangeDetectionNeeded(Q){Q&&this._runAfterChangeDetection.push(Q),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const Q=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const Ce of Q)Ce()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return nt.\u0275fac=function(Q){return new(Q||nt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(Fe,8),b.Y36(Y.Is,8),b.Y36(ve),b.Y36(D))},nt.\u0275cmp=b.Xpm({type:nt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(Q,Ce){if(1&Q&&b.Gf(de,7),2&Q){let re;b.iGM(re=b.CRH())&&(Ce._contentWrapper=re.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(Q,Ce){2&Q&&b.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===Ce.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==Ce.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[b._Bn([{provide:Oe,useExisting:nt}]),b.qOj],ngContentSelectors:ce,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(Q,Ce){1&Q&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA(),b._UZ(3,"div",2)),2&Q&&(b.xp6(3),b.Udp("width",Ce._totalContentWidth)("height",Ce._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),nt})();function fe(nt,je,Q){if(!Q.getBoundingClientRect)return 0;const re=Q.getBoundingClientRect();return"horizontal"===nt?"start"===je?re.left:re.right:"start"===je?re.top:re.bottom}let Se=(()=>{class nt{constructor(Q,Ce,re,k,pe,Z){this._viewContainerRef=Q,this._template=Ce,this._differs=re,this._viewRepeater=k,this._viewport=pe,this.viewChange=new _.xQ,this._dataSourceChanges=new _.xQ,this.dataStream=this._dataSourceChanges.pipe((0,he.O)(null),function O(){return nt=>nt.lift(new P)}(),(0,De.w)(([Ne,oe])=>this._changeDataSource(Ne,oe)),(0,T.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.xQ,this.dataStream.subscribe(Ne=>{this._data=Ne,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Me.R)(this._destroyed)).subscribe(Ne=>{this._renderedRange=Ne,Z.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(Q){this._cdkVirtualForOf=Q,(0,ee.Z9)(Q)?this._dataSourceChanges.next(Q):this._dataSourceChanges.next(new ee.P3((0,I.b)(Q)?Q:Array.from(Q||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(Q){this._needsUpdate=!0,this._cdkVirtualForTrackBy=Q?(Ce,re)=>Q(Ce+(this._renderedRange?this._renderedRange.start:0),re):void 0}set cdkVirtualForTemplate(Q){Q&&(this._needsUpdate=!0,this._template=Q)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(Q){this._viewRepeater.viewCacheSize=(0,e.su)(Q)}measureRangeSize(Q,Ce){if(Q.start>=Q.end)return 0;const re=Q.start-this._renderedRange.start,k=Q.end-Q.start;let pe,Z;for(let Ne=0;Ne-1;Ne--){const oe=this._viewContainerRef.get(Ne+re);if(oe&&oe.rootNodes.length){Z=oe.rootNodes[oe.rootNodes.length-1];break}}return pe&&Z?fe(Ce,"end",Z)-fe(Ce,"start",pe):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const Q=this._differ.diff(this._renderedItems);Q?this._applyChanges(Q):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((Q,Ce)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(Q,Ce):Ce)),this._needsUpdate=!0)}_changeDataSource(Q,Ce){return Q&&Q.disconnect(this),this._needsUpdate=!0,Ce?Ce.connect(this):(0,w.of)()}_updateContext(){const Q=this._data.length;let Ce=this._viewContainerRef.length;for(;Ce--;){const re=this._viewContainerRef.get(Ce);re.context.index=this._renderedRange.start+Ce,re.context.count=Q,this._updateComputedContextProperties(re.context),re.detectChanges()}}_applyChanges(Q){this._viewRepeater.applyChanges(Q,this._viewContainerRef,(k,pe,Z)=>this._getEmbeddedViewArgs(k,Z),k=>k.item),Q.forEachIdentityChange(k=>{this._viewContainerRef.get(k.currentIndex).context.$implicit=k.item});const Ce=this._data.length;let re=this._viewContainerRef.length;for(;re--;){const k=this._viewContainerRef.get(re);k.context.index=this._renderedRange.start+re,k.context.count=Ce,this._updateComputedContextProperties(k.context)}}_updateComputedContextProperties(Q){Q.first=0===Q.index,Q.last=Q.index===Q.count-1,Q.even=Q.index%2==0,Q.odd=!Q.even}_getEmbeddedViewArgs(Q,Ce){return{templateRef:this._template,context:{$implicit:Q.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:Ce}}}return nt.\u0275fac=function(Q){return new(Q||nt)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(b.ZZ4),b.Y36(ee.k),b.Y36(Ie,4),b.Y36(b.R0b))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[b._Bn([{provide:ee.k,useClass:ee.eX}])]}),nt})(),Ke=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({imports:[[Y.vT,j.ud,Ke],Y.vT,Ke]}),nt})()},74533:(Qe,be,p)=>{"use strict";p.d(be,{Lq:()=>m,IC:()=>P,Ky:()=>W});var e=p(70925),b=p(5e3),_=p(63191),w=p(68896),g=p(8929),A=p(23753),E=p(57138),C=p(7625),R=p(69808);const I=(0,e.i$)({passive:!0});let m=(()=>{class ie{constructor(q,Me){this._platform=q,this._ngZone=Me,this._monitoredElements=new Map}monitor(q){if(!this._platform.isBrowser)return w.E;const Me=(0,_.fI)(q),he=this._monitoredElements.get(Me);if(he)return he.subject;const De=new g.xQ,T="cdk-text-field-autofilled",N=j=>{"cdk-text-field-autofill-start"!==j.animationName||Me.classList.contains(T)?"cdk-text-field-autofill-end"===j.animationName&&Me.classList.contains(T)&&(Me.classList.remove(T),this._ngZone.run(()=>De.next({target:j.target,isAutofilled:!1}))):(Me.classList.add(T),this._ngZone.run(()=>De.next({target:j.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Me.addEventListener("animationstart",N,I),Me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Me,{subject:De,unlisten:()=>{Me.removeEventListener("animationstart",N,I)}}),De}stopMonitoring(q){const Me=(0,_.fI)(q),he=this._monitoredElements.get(Me);he&&(he.unlisten(),he.subject.complete(),Me.classList.remove("cdk-text-field-autofill-monitored"),Me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Me))}ngOnDestroy(){this._monitoredElements.forEach((q,Me)=>this.stopMonitoring(Me))}}return ie.\u0275fac=function(q){return new(q||ie)(b.LFG(e.t4),b.LFG(b.R0b))},ie.\u0275prov=b.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),P=(()=>{class ie{constructor(q,Me,he,De){this._elementRef=q,this._platform=Me,this._ngZone=he,this._destroyed=new g.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=De,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(q){this._minRows=(0,_.su)(q),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(q){this._maxRows=(0,_.su)(q),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(q){q=(0,_.Ig)(q),this._enabled!==q&&((this._enabled=q)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(q){this._cachedPlaceholderHeight=void 0,q?this._textareaElement.setAttribute("placeholder",q):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const q=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;q&&(this._textareaElement.style.minHeight=q)}_setMaxHeight(){const q=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;q&&(this._textareaElement.style.maxHeight=q)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();(0,A.R)(q,"resize").pipe((0,E.e)(16),(0,C.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let q=this._textareaElement.cloneNode(!1);q.rows=1,q.style.position="absolute",q.style.visibility="hidden",q.style.border="none",q.style.padding="0",q.style.height="",q.style.minHeight="",q.style.maxHeight="",q.style.overflow="hidden",this._textareaElement.parentNode.appendChild(q),this._cachedLineHeight=q.clientHeight,q.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const q=this._textareaElement,Me=q.style.marginBottom||"",he=this._platform.FIREFOX,De=he&&this._hasFocus,T=he?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";De&&(q.style.marginBottom=`${q.clientHeight}px`),q.classList.add(T);const N=q.scrollHeight-4;return q.classList.remove(T),De&&(q.style.marginBottom=Me),N}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const q=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=q}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(q=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Me=this._elementRef.nativeElement,he=Me.value;if(!q&&this._minRows===this._previousMinRows&&he===this._previousValue)return;const De=this._measureScrollHeight(),T=Math.max(De,this._cachedPlaceholderHeight||0);Me.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(Me)):setTimeout(()=>this._scrollToCaretPosition(Me))}),this._previousValue=he,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(q){const{selectionStart:Me,selectionEnd:he}=q;!this._destroyed.isStopped&&this._hasFocus&&q.setSelectionRange(Me,he)}}return ie.\u0275fac=function(q){return new(q||ie)(b.Y36(b.SBq),b.Y36(e.t4),b.Y36(b.R0b),b.Y36(R.K0,8))},ie.\u0275dir=b.lG2({type:ie,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(q,Me){1&q&&b.NdJ("input",function(){return Me._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ie})(),W=(()=>{class ie{}return ie.\u0275fac=function(q){return new(q||ie)},ie.\u0275mod=b.oAB({type:ie}),ie.\u0275inj=b.cJS({imports:[[e.ud]]}),ie})()},28258:(Qe,be,p)=>{"use strict";p.d(be,{HI:()=>ie,Xx:()=>Fe,_0:()=>Y,nZ:()=>ve,Hs:()=>ee,rO:()=>Me,cu:()=>Ae,XJ:()=>Xe,Ud:()=>te,C2:()=>P,VY:()=>W});var e=p(20449),b=p(54715),_=p(8929),w=p(591),g=p(21086),A=p(72986),E=p(92198),C=p(7625),R=p(5e3),I=p(63191),m=p(50226);class O{constructor(){this.expansionModel=new e.Ov(!0)}toggle(z){this.expansionModel.toggle(this._trackByValue(z))}expand(z){this.expansionModel.select(this._trackByValue(z))}collapse(z){this.expansionModel.deselect(this._trackByValue(z))}isExpanded(z){return this.expansionModel.isSelected(this._trackByValue(z))}toggleDescendants(z){this.expansionModel.isSelected(this._trackByValue(z))?this.collapseDescendants(z):this.expandDescendants(z)}collapseAll(){this.expansionModel.clear()}expandDescendants(z){let D=[z];D.push(...this.getDescendants(z)),this.expansionModel.select(...D.map(ge=>this._trackByValue(ge)))}collapseDescendants(z){let D=[z];D.push(...this.getDescendants(z)),this.expansionModel.deselect(...D.map(ge=>this._trackByValue(ge)))}_trackByValue(z){return this.trackBy?this.trackBy(z):z}}class P extends O{constructor(z,D,ge){super(),this.getLevel=z,this.isExpandable=D,this.options=ge,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(z){const ge=[];for(let Te=this.dataNodes.indexOf(z)+1;Tethis._trackByValue(z)))}}class W extends O{constructor(z,D){super(),this.getChildren=z,this.options=D,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const z=this.dataNodes.reduce((D,ge)=>[...D,...this.getDescendants(ge),ge],[]);this.expansionModel.select(...z.map(D=>this._trackByValue(D)))}getDescendants(z){const D=[];return this._getDescendants(D,z),D.splice(1)}_getDescendants(z,D){z.push(D);const ge=this.getChildren(D);Array.isArray(ge)?ge.forEach(Te=>this._getDescendants(z,Te)):(0,b.b)(ge)&&ge.pipe((0,A.q)(1),(0,E.h)(Boolean)).subscribe(Te=>{for(const Ie of Te)this._getDescendants(z,Ie)})}}const ie=new R.OlP("CDK_TREE_NODE_OUTLET_NODE");let Ae=(()=>{class Oe{constructor(D,ge){this.viewContainer=D,this._node=ge}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(R.s_b),R.Y36(ie,8))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["","cdkTreeNodeOutlet",""]]}),Oe})();class q{constructor(z){this.$implicit=z}}let Me=(()=>{class Oe{constructor(D){this.template=D}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(R.Rgc))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Oe})(),Y=(()=>{class Oe{constructor(D,ge){this._differs=D,this._changeDetectorRef=ge,this._onDestroy=new _.xQ,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(D){this._dataSource!==D&&this._switchDataSource(D)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const D=this._nodeDefs.filter(ge=>!ge.when);this._defaultNodeDef=D[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(D){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),D||this._nodeOutlet.viewContainer.clear(),this._dataSource=D,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let D;(0,e.Z9)(this._dataSource)?D=this._dataSource.connect(this):(0,b.b)(this._dataSource)?D=this._dataSource:Array.isArray(this._dataSource)&&(D=(0,g.of)(this._dataSource)),D&&(this._dataSubscription=D.pipe((0,C.R)(this._onDestroy)).subscribe(ge=>this.renderNodeChanges(ge)))}renderNodeChanges(D,ge=this._dataDiffer,Te=this._nodeOutlet.viewContainer,Ie){const fe=ge.diff(D);!fe||(fe.forEachOperation((Se,Ke,Je)=>{if(null==Se.previousIndex)this.insertNode(D[Je],Je,Te,Ie);else if(null==Je)Te.remove(Ke),this._levels.delete(Se.item);else{const nt=Te.get(Ke);Te.move(nt,Je)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(D,ge){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Ie=>Ie.when&&Ie.when(ge,D))||this._defaultNodeDef}insertNode(D,ge,Te,Ie){const fe=this._getNodeDef(D,ge),Se=new q(D);Se.level=this.treeControl.getLevel?this.treeControl.getLevel(D):void 0!==Ie&&this._levels.has(Ie)?this._levels.get(Ie)+1:0,this._levels.set(D,Se.level),(Te||this._nodeOutlet.viewContainer).createEmbeddedView(fe.template,Se,ge),ee.mostRecentTreeNode&&(ee.mostRecentTreeNode.data=D)}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(R.ZZ4),R.Y36(R.sBO))},Oe.\u0275cmp=R.Xpm({type:Oe,selectors:[["cdk-tree"]],contentQueries:function(D,ge,Te){if(1&D&&R.Suo(Te,Me,5),2&D){let Ie;R.iGM(Ie=R.CRH())&&(ge._nodeDefs=Ie)}},viewQuery:function(D,ge){if(1&D&&R.Gf(Ae,7),2&D){let Te;R.iGM(Te=R.CRH())&&(ge._nodeOutlet=Te.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(D,ge){1&D&&R.GkF(0,0)},directives:[Ae],encapsulation:2}),Oe})(),ee=(()=>{class Oe{constructor(D,ge){this._elementRef=D,this._tree=ge,this._destroyed=new _.xQ,this._dataChanges=new _.xQ,Oe.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(D){this._elementRef.nativeElement.setAttribute("role",D)}get data(){return this._data}set data(D){D!==this._data&&(this._data=D,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function de(Oe){let z=Oe.parentElement;for(;z&&!ce(z);)z=z.parentElement;return z?z.classList.contains("cdk-nested-tree-node")?(0,I.su)(z.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Oe.mostRecentTreeNode===this&&(Oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Oe.mostRecentTreeNode=null,Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(R.SBq),R.Y36(Y))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(D,ge){2&D&&R.uIk("aria-expanded",ge.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Oe})();function ce(Oe){const z=Oe.classList;return!(!(null==z?void 0:z.contains("cdk-nested-tree-node"))&&!(null==z?void 0:z.contains("cdk-tree")))}let Fe=(()=>{class Oe extends ee{constructor(D,ge,Te){super(D,ge),this._differs=Te}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const D=this._tree.treeControl.getChildren(this.data);Array.isArray(D)?this.updateChildrenNodes(D):(0,b.b)(D)&&D.pipe((0,C.R)(this._destroyed)).subscribe(ge=>this.updateChildrenNodes(ge)),this.nodeOutlet.changes.pipe((0,C.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(D){const ge=this._getNodeOutlet();D&&(this._children=D),ge&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,ge.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const D=this._getNodeOutlet();D&&(D.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const D=this.nodeOutlet;return D&&D.find(ge=>!ge._node||ge._node===this)}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(R.SBq),R.Y36(Y),R.Y36(R.ZZ4))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(D,ge,Te){if(1&D&&R.Suo(Te,Ae,5),2&D){let Ie;R.iGM(Ie=R.CRH())&&(ge.nodeOutlet=Ie)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[R._Bn([{provide:ee,useExisting:Oe},{provide:ie,useExisting:Oe}]),R.qOj]}),Oe})();const Ue=/([A-Za-z%]+)$/;let Xe=(()=>{class Oe{constructor(D,ge,Te,Ie){this._treeNode=D,this._tree=ge,this._element=Te,this._dir=Ie,this._destroyed=new _.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Ie&&Ie.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),D._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(D){this._setLevelInput(D)}get indent(){return this._indent}set indent(D){this._setIndentInput(D)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const D=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,ge=null==this._level?D:this._level;return"number"==typeof ge?`${ge*this._indent}${this.indentUnits}`:null}_setPadding(D=!1){const ge=this._paddingIndent();if(ge!==this._currentPadding||D){const Te=this._element.nativeElement,Ie=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",fe="paddingLeft"===Ie?"paddingRight":"paddingLeft";Te.style[Ie]=ge||"",Te.style[fe]="",this._currentPadding=ge}}_setLevelInput(D){this._level=(0,I.su)(D,null),this._setPadding()}_setIndentInput(D){let ge=D,Te="px";if("string"==typeof D){const Ie=D.split(Ue);ge=Ie[0],Te=Ie[1]||Te}this.indentUnits=Te,this._indent=(0,I.su)(ge),this._setPadding()}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(ee),R.Y36(Y),R.Y36(R.SBq),R.Y36(m.Is,8))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Oe})(),te=(()=>{class Oe{constructor(D,ge){this._tree=D,this._treeNode=ge,this._recursive=!1}get recursive(){return this._recursive}set recursive(D){this._recursive=(0,I.Ig)(D)}_toggle(D){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),D.stopPropagation()}}return Oe.\u0275fac=function(D){return new(D||Oe)(R.Y36(Y),R.Y36(ee))},Oe.\u0275dir=R.lG2({type:Oe,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(D,ge){1&D&&R.NdJ("click",function(Ie){return ge._toggle(Ie)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Oe})(),ve=(()=>{class Oe{}return Oe.\u0275fac=function(D){return new(D||Oe)},Oe.\u0275mod=R.oAB({type:Oe}),Oe.\u0275inj=R.cJS({}),Oe})()},69808:(Qe,be,p)=>{"use strict";p.d(be,{mr:()=>he,Ov:()=>qe,ez:()=>Un,K0:()=>E,uU:()=>Li,Do:()=>T,V_:()=>I,Ye:()=>N,S$:()=>q,i8:()=>Tt,mk:()=>wi,sg:()=>Fi,O5:()=>ki,PC:()=>Nn,RF:()=>en,n9:()=>an,ED:()=>dn,tP:()=>kn,b0:()=>De,lw:()=>C,rS:()=>ci,gd:()=>vi,EM:()=>ft,JF:()=>Ct,p6:()=>c,NF:()=>Cn,PM:()=>$n,w_:()=>A,bD:()=>pr,q:()=>_,Mx:()=>Di,HT:()=>g});var e=p(5e3);let b=null;function _(){return b}function g(X){b||(b=X)}class A{}const E=new e.OlP("DocumentToken");let C=(()=>{class X{historyGo(ue){throw new Error("Not implemented")}}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return function R(){return(0,e.LFG)(m)}()},providedIn:"platform"}),X})();const I=new e.OlP("Location Initialized");let m=(()=>{class X extends C{constructor(ue){super(),this._doc=ue,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(ue){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("popstate",ue,!1),()=>tt.removeEventListener("popstate",ue)}onHashChange(ue){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("hashchange",ue,!1),()=>tt.removeEventListener("hashchange",ue)}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(ue){this.location.pathname=ue}pushState(ue,tt,yt){O()?this._history.pushState(ue,tt,yt):this.location.hash=yt}replaceState(ue,tt,yt){O()?this._history.replaceState(ue,tt,yt):this.location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(ue=0){this._history.go(ue)}getState(){return this._history.state}}return X.\u0275fac=function(ue){return new(ue||X)(e.LFG(E))},X.\u0275prov=e.Yz7({token:X,factory:function(){return function P(){return new m((0,e.LFG)(E))}()},providedIn:"platform"}),X})();function O(){return!!window.history.pushState}function W(X,He){if(0==X.length)return He;if(0==He.length)return X;let ue=0;return X.endsWith("/")&&ue++,He.startsWith("/")&&ue++,2==ue?X+He.substring(1):1==ue?X+He:X+"/"+He}function ie(X){const He=X.match(/#|\?|$/),ue=He&&He.index||X.length;return X.slice(0,ue-("/"===X[ue-1]?1:0))+X.slice(ue)}function Ae(X){return X&&"?"!==X[0]?"?"+X:X}let q=(()=>{class X{historyGo(ue){throw new Error("Not implemented")}}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275prov=e.Yz7({token:X,factory:function(){return function Me(X){const He=(0,e.LFG)(E).location;return new De((0,e.LFG)(C),He&&He.origin||"")}()},providedIn:"root"}),X})();const he=new e.OlP("appBaseHref");let De=(()=>{class X extends q{constructor(ue,tt){if(super(),this._platformLocation=ue,this._removeListenerFns=[],null==tt&&(tt=this._platformLocation.getBaseHrefFromDOM()),null==tt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=tt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ue){this._removeListenerFns.push(this._platformLocation.onPopState(ue),this._platformLocation.onHashChange(ue))}getBaseHref(){return this._baseHref}prepareExternalUrl(ue){return W(this._baseHref,ue)}path(ue=!1){const tt=this._platformLocation.pathname+Ae(this._platformLocation.search),yt=this._platformLocation.hash;return yt&&ue?`${tt}${yt}`:tt}pushState(ue,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+Ae(Gt));this._platformLocation.pushState(ue,tt,Wt)}replaceState(ue,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+Ae(Gt));this._platformLocation.replaceState(ue,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ue=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,ue)}}return X.\u0275fac=function(ue){return new(ue||X)(e.LFG(C),e.LFG(he,8))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})(),T=(()=>{class X extends q{constructor(ue,tt){super(),this._platformLocation=ue,this._baseHref="",this._removeListenerFns=[],null!=tt&&(this._baseHref=tt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ue){this._removeListenerFns.push(this._platformLocation.onPopState(ue),this._platformLocation.onHashChange(ue))}getBaseHref(){return this._baseHref}path(ue=!1){let tt=this._platformLocation.hash;return null==tt&&(tt="#"),tt.length>0?tt.substring(1):tt}prepareExternalUrl(ue){const tt=W(this._baseHref,ue);return tt.length>0?"#"+tt:tt}pushState(ue,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+Ae(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.pushState(ue,tt,Wt)}replaceState(ue,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+Ae(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.replaceState(ue,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(ue=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,ue)}}return X.\u0275fac=function(ue){return new(ue||X)(e.LFG(C),e.LFG(he,8))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})(),N=(()=>{class X{constructor(ue,tt){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=ue;const yt=this._platformStrategy.getBaseHref();this._platformLocation=tt,this._baseHref=ie(ee(yt)),this._platformStrategy.onPopState(Gt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Gt.state,type:Gt.type})})}path(ue=!1){return this.normalize(this._platformStrategy.path(ue))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(ue,tt=""){return this.path()==this.normalize(ue+Ae(tt))}normalize(ue){return X.stripTrailingSlash(function Y(X,He){return X&&He.startsWith(X)?He.substring(X.length):He}(this._baseHref,ee(ue)))}prepareExternalUrl(ue){return ue&&"/"!==ue[0]&&(ue="/"+ue),this._platformStrategy.prepareExternalUrl(ue)}go(ue,tt="",yt=null){this._platformStrategy.pushState(yt,"",ue,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(ue+Ae(tt)),yt)}replaceState(ue,tt="",yt=null){this._platformStrategy.replaceState(yt,"",ue,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(ue+Ae(tt)),yt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(ue=0){var tt,yt;null===(yt=(tt=this._platformStrategy).historyGo)||void 0===yt||yt.call(tt,ue)}onUrlChange(ue){this._urlChangeListeners.push(ue),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)}))}_notifyUrlChangeListeners(ue="",tt){this._urlChangeListeners.forEach(yt=>yt(ue,tt))}subscribe(ue,tt,yt){return this._subject.subscribe({next:ue,error:tt,complete:yt})}}return X.normalizeQueryParams=Ae,X.joinWithSlash=W,X.stripTrailingSlash=ie,X.\u0275fac=function(ue){return new(ue||X)(e.LFG(q),e.LFG(C))},X.\u0275prov=e.Yz7({token:X,factory:function(){return function j(){return new N((0,e.LFG)(q),(0,e.LFG)(C))}()},providedIn:"root"}),X})();function ee(X){return X.replace(/\/index.html$/,"")}var Fe=(()=>((Fe=Fe||{})[Fe.Zero=0]="Zero",Fe[Fe.One=1]="One",Fe[Fe.Two=2]="Two",Fe[Fe.Few=3]="Few",Fe[Fe.Many=4]="Many",Fe[Fe.Other=5]="Other",Fe))(),Ue=(()=>((Ue=Ue||{})[Ue.Format=0]="Format",Ue[Ue.Standalone=1]="Standalone",Ue))(),Xe=(()=>((Xe=Xe||{})[Xe.Narrow=0]="Narrow",Xe[Xe.Abbreviated=1]="Abbreviated",Xe[Xe.Wide=2]="Wide",Xe[Xe.Short=3]="Short",Xe))(),te=(()=>((te=te||{})[te.Short=0]="Short",te[te.Medium=1]="Medium",te[te.Long=2]="Long",te[te.Full=3]="Full",te))(),Ve=(()=>((Ve=Ve||{})[Ve.Decimal=0]="Decimal",Ve[Ve.Group=1]="Group",Ve[Ve.List=2]="List",Ve[Ve.PercentSign=3]="PercentSign",Ve[Ve.PlusSign=4]="PlusSign",Ve[Ve.MinusSign=5]="MinusSign",Ve[Ve.Exponential=6]="Exponential",Ve[Ve.SuperscriptingExponent=7]="SuperscriptingExponent",Ve[Ve.PerMille=8]="PerMille",Ve[Ve.Infinity=9]="Infinity",Ve[Ve.NaN=10]="NaN",Ve[Ve.TimeSeparator=11]="TimeSeparator",Ve[Ve.CurrencyDecimal=12]="CurrencyDecimal",Ve[Ve.CurrencyGroup=13]="CurrencyGroup",Ve))();function Se(X,He){return $((0,e.cg1)(X)[e.wAp.DateFormat],He)}function Ke(X,He){return $((0,e.cg1)(X)[e.wAp.TimeFormat],He)}function Je(X,He){return $((0,e.cg1)(X)[e.wAp.DateTimeFormat],He)}function nt(X,He){const ue=(0,e.cg1)(X),tt=ue[e.wAp.NumberSymbols][He];if(void 0===tt){if(He===Ve.CurrencyDecimal)return ue[e.wAp.NumberSymbols][Ve.Decimal];if(He===Ve.CurrencyGroup)return ue[e.wAp.NumberSymbols][Ve.Group]}return tt}const pe=e.kL8;function Z(X){if(!X[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${X[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $(X,He){for(let ue=He;ue>-1;ue--)if(void 0!==X[ue])return X[ue];throw new Error("Locale data API: locale data undefined")}function V(X){const[He,ue]=X.split(":");return{hours:+He,minutes:+ue}}const l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,s={},r=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var t=(()=>((t=t||{})[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t))(),n=(()=>((n=n||{})[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n))(),o=(()=>((o=o||{})[o.DayPeriods=0]="DayPeriods",o[o.Days=1]="Days",o[o.Months=2]="Months",o[o.Eras=3]="Eras",o))();function c(X,He,ue,tt){let yt=function Rt(X){if(Bt(X))return X;if("number"==typeof X&&!isNaN(X))return new Date(X);if("string"==typeof X){if(X=X.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(X)){const[yt,Gt=1,Wt=1]=X.split("-").map(ii=>+ii);return h(yt,Gt-1,Wt)}const ue=parseFloat(X);if(!isNaN(X-ue))return new Date(ue);let tt;if(tt=X.match(l))return function Et(X){const He=new Date(0);let ue=0,tt=0;const yt=X[8]?He.setUTCFullYear:He.setFullYear,Gt=X[8]?He.setUTCHours:He.setHours;X[9]&&(ue=Number(X[9]+X[10]),tt=Number(X[9]+X[11])),yt.call(He,Number(X[1]),Number(X[2])-1,Number(X[3]));const Wt=Number(X[4]||0)-ue,ii=Number(X[5]||0)-tt,di=Number(X[6]||0),ui=Math.floor(1e3*parseFloat("0."+(X[7]||0)));return Gt.call(He,Wt,ii,di,ui),He}(tt)}const He=new Date(X);if(!Bt(He))throw new Error(`Unable to convert "${X}" into a date`);return He}(X);He=x(ue,He)||He;let ii,Wt=[];for(;He;){if(ii=r.exec(He),!ii){Wt.push(He);break}{Wt=Wt.concat(ii.slice(1));const _i=Wt.pop();if(!_i)break;He=_i}}let di=yt.getTimezoneOffset();tt&&(di=xt(tt,di),yt=function It(X,He,ue){const tt=ue?-1:1,yt=X.getTimezoneOffset();return function Yt(X,He){return(X=new Date(X.getTime())).setMinutes(X.getMinutes()+He),X}(X,tt*(xt(He,yt)-yt))}(yt,tt,!0));let ui="";return Wt.forEach(_i=>{const Ti=function bt(X){if(ct[X])return ct[X];let He;switch(X){case"G":case"GG":case"GGG":He=mt(o.Eras,Xe.Abbreviated);break;case"GGGG":He=mt(o.Eras,Xe.Wide);break;case"GGGGG":He=mt(o.Eras,Xe.Narrow);break;case"y":He=lt(n.FullYear,1,0,!1,!0);break;case"yy":He=lt(n.FullYear,2,0,!0,!0);break;case"yyy":He=lt(n.FullYear,3,0,!1,!0);break;case"yyyy":He=lt(n.FullYear,4,0,!1,!0);break;case"Y":He=Le(1);break;case"YY":He=Le(2,!0);break;case"YYY":He=Le(3);break;case"YYYY":He=Le(4);break;case"M":case"L":He=lt(n.Month,1,1);break;case"MM":case"LL":He=lt(n.Month,2,1);break;case"MMM":He=mt(o.Months,Xe.Abbreviated);break;case"MMMM":He=mt(o.Months,Xe.Wide);break;case"MMMMM":He=mt(o.Months,Xe.Narrow);break;case"LLL":He=mt(o.Months,Xe.Abbreviated,Ue.Standalone);break;case"LLLL":He=mt(o.Months,Xe.Wide,Ue.Standalone);break;case"LLLLL":He=mt(o.Months,Xe.Narrow,Ue.Standalone);break;case"w":He=le(1);break;case"ww":He=le(2);break;case"W":He=le(1,!0);break;case"d":He=lt(n.Date,1);break;case"dd":He=lt(n.Date,2);break;case"c":case"cc":He=lt(n.Day,1);break;case"ccc":He=mt(o.Days,Xe.Abbreviated,Ue.Standalone);break;case"cccc":He=mt(o.Days,Xe.Wide,Ue.Standalone);break;case"ccccc":He=mt(o.Days,Xe.Narrow,Ue.Standalone);break;case"cccccc":He=mt(o.Days,Xe.Short,Ue.Standalone);break;case"E":case"EE":case"EEE":He=mt(o.Days,Xe.Abbreviated);break;case"EEEE":He=mt(o.Days,Xe.Wide);break;case"EEEEE":He=mt(o.Days,Xe.Narrow);break;case"EEEEEE":He=mt(o.Days,Xe.Short);break;case"a":case"aa":case"aaa":He=mt(o.DayPeriods,Xe.Abbreviated);break;case"aaaa":He=mt(o.DayPeriods,Xe.Wide);break;case"aaaaa":He=mt(o.DayPeriods,Xe.Narrow);break;case"b":case"bb":case"bbb":He=mt(o.DayPeriods,Xe.Abbreviated,Ue.Standalone,!0);break;case"bbbb":He=mt(o.DayPeriods,Xe.Wide,Ue.Standalone,!0);break;case"bbbbb":He=mt(o.DayPeriods,Xe.Narrow,Ue.Standalone,!0);break;case"B":case"BB":case"BBB":He=mt(o.DayPeriods,Xe.Abbreviated,Ue.Format,!0);break;case"BBBB":He=mt(o.DayPeriods,Xe.Wide,Ue.Format,!0);break;case"BBBBB":He=mt(o.DayPeriods,Xe.Narrow,Ue.Format,!0);break;case"h":He=lt(n.Hours,1,-12);break;case"hh":He=lt(n.Hours,2,-12);break;case"H":He=lt(n.Hours,1);break;case"HH":He=lt(n.Hours,2);break;case"m":He=lt(n.Minutes,1);break;case"mm":He=lt(n.Minutes,2);break;case"s":He=lt(n.Seconds,1);break;case"ss":He=lt(n.Seconds,2);break;case"S":He=lt(n.FractionalSeconds,1);break;case"SS":He=lt(n.FractionalSeconds,2);break;case"SSS":He=lt(n.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":He=we(t.Short);break;case"ZZZZZ":He=we(t.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":He=we(t.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":He=we(t.Long);break;default:return null}return ct[X]=He,He}(_i);ui+=Ti?Ti(yt,ue,di):"''"===_i?"'":_i.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}function h(X,He,ue){const tt=new Date(0);return tt.setFullYear(X,He,ue),tt.setHours(0,0,0),tt}function x(X,He){const ue=function Oe(X){return(0,e.cg1)(X)[e.wAp.LocaleId]}(X);if(s[ue]=s[ue]||{},s[ue][He])return s[ue][He];let tt="";switch(He){case"shortDate":tt=Se(X,te.Short);break;case"mediumDate":tt=Se(X,te.Medium);break;case"longDate":tt=Se(X,te.Long);break;case"fullDate":tt=Se(X,te.Full);break;case"shortTime":tt=Ke(X,te.Short);break;case"mediumTime":tt=Ke(X,te.Medium);break;case"longTime":tt=Ke(X,te.Long);break;case"fullTime":tt=Ke(X,te.Full);break;case"short":const yt=x(X,"shortTime"),Gt=x(X,"shortDate");tt=We(Je(X,te.Short),[yt,Gt]);break;case"medium":const Wt=x(X,"mediumTime"),ii=x(X,"mediumDate");tt=We(Je(X,te.Medium),[Wt,ii]);break;case"long":const di=x(X,"longTime"),ui=x(X,"longDate");tt=We(Je(X,te.Long),[di,ui]);break;case"full":const _i=x(X,"fullTime"),Ti=x(X,"fullDate");tt=We(Je(X,te.Full),[_i,Ti])}return tt&&(s[ue][He]=tt),tt}function We(X,He){return He&&(X=X.replace(/\{([^}]+)}/g,function(ue,tt){return null!=He&&tt in He?He[tt]:ue})),X}function At(X,He,ue="-",tt,yt){let Gt="";(X<0||yt&&X<=0)&&(yt?X=1-X:(X=-X,Gt=ue));let Wt=String(X);for(;Wt.length0||ii>-ue)&&(ii+=ue),X===n.Hours)0===ii&&-12===ue&&(ii=12);else if(X===n.FractionalSeconds)return function Ht(X,He){return At(X,3).substr(0,He)}(ii,He);const di=nt(Wt,Ve.MinusSign);return At(ii,He,di,tt,yt)}}function mt(X,He,ue=Ue.Format,tt=!1){return function(yt,Gt){return function Lt(X,He,ue,tt,yt,Gt){switch(ue){case o.Months:return function ge(X,He,ue){const tt=(0,e.cg1)(X),Gt=$([tt[e.wAp.MonthsFormat],tt[e.wAp.MonthsStandalone]],He);return $(Gt,ue)}(He,yt,tt)[X.getMonth()];case o.Days:return function D(X,He,ue){const tt=(0,e.cg1)(X),Gt=$([tt[e.wAp.DaysFormat],tt[e.wAp.DaysStandalone]],He);return $(Gt,ue)}(He,yt,tt)[X.getDay()];case o.DayPeriods:const Wt=X.getHours(),ii=X.getMinutes();if(Gt){const ui=function Ne(X){const He=(0,e.cg1)(X);return Z(He),(He[e.wAp.ExtraData][2]||[]).map(tt=>"string"==typeof tt?V(tt):[V(tt[0]),V(tt[1])])}(He),_i=function oe(X,He,ue){const tt=(0,e.cg1)(X);Z(tt);const Gt=$([tt[e.wAp.ExtraData][0],tt[e.wAp.ExtraData][1]],He)||[];return $(Gt,ue)||[]}(He,yt,tt),Ti=ui.findIndex(Hi=>{if(Array.isArray(Hi)){const[ke,Re]=Hi,xe=Wt>=ke.hours&&ii>=ke.minutes,ut=Wt0?Math.floor(yt/60):Math.ceil(yt/60);switch(X){case t.Short:return(yt>=0?"+":"")+At(Wt,2,Gt)+At(Math.abs(yt%60),2,Gt);case t.ShortGMT:return"GMT"+(yt>=0?"+":"")+At(Wt,1,Gt);case t.Long:return"GMT"+(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);case t.Extended:return 0===tt?"Z":(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);default:throw new Error(`Unknown zone width "${X}"`)}}}function ne(X){return h(X.getFullYear(),X.getMonth(),X.getDate()+(4-X.getDay()))}function le(X,He=!1){return function(ue,tt){let yt;if(He){const Gt=new Date(ue.getFullYear(),ue.getMonth(),1).getDay()-1,Wt=ue.getDate();yt=1+Math.floor((Wt+Gt)/7)}else{const Gt=ne(ue),Wt=function L(X){const He=h(X,0,1).getDay();return h(X,0,1+(He<=4?4:11)-He)}(Gt.getFullYear()),ii=Gt.getTime()-Wt.getTime();yt=1+Math.round(ii/6048e5)}return At(yt,X,nt(tt,Ve.MinusSign))}}function Le(X,He=!1){return function(ue,tt){return At(ne(ue).getFullYear(),X,nt(tt,Ve.MinusSign),He)}}const ct={};function xt(X,He){X=X.replace(/:/g,"");const ue=Date.parse("Jan 01, 1970 00:00:00 "+X)/6e4;return isNaN(ue)?He:ue}function Bt(X){return X instanceof Date&&!isNaN(X.valueOf())}class gt{}let ri=(()=>{class X extends gt{constructor(ue){super(),this.locale=ue}getPluralCategory(ue,tt){switch(pe(tt||this.locale)(ue)){case Fe.Zero:return"zero";case Fe.One:return"one";case Fe.Two:return"two";case Fe.Few:return"few";case Fe.Many:return"many";default:return"other"}}}return X.\u0275fac=function(ue){return new(ue||X)(e.LFG(e.soG))},X.\u0275prov=e.Yz7({token:X,factory:X.\u0275fac}),X})();function Di(X,He){He=encodeURIComponent(He);for(const ue of X.split(";")){const tt=ue.indexOf("="),[yt,Gt]=-1==tt?[ue,""]:[ue.slice(0,tt),ue.slice(tt+1)];if(yt.trim()===He)return decodeURIComponent(Gt)}return null}let wi=(()=>{class X{constructor(ue,tt,yt,Gt){this._iterableDiffers=ue,this._keyValueDiffers=tt,this._ngEl=yt,this._renderer=Gt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(ue){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof ue?ue.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(ue){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof ue?ue.split(/\s+/):ue,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const ue=this._iterableDiffer.diff(this._rawClass);ue&&this._applyIterableChanges(ue)}else if(this._keyValueDiffer){const ue=this._keyValueDiffer.diff(this._rawClass);ue&&this._applyKeyValueChanges(ue)}}_applyKeyValueChanges(ue){ue.forEachAddedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),ue.forEachChangedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),ue.forEachRemovedItem(tt=>{tt.previousValue&&this._toggleClass(tt.key,!1)})}_applyIterableChanges(ue){ue.forEachAddedItem(tt=>{if("string"!=typeof tt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(tt.item)}`);this._toggleClass(tt.item,!0)}),ue.forEachRemovedItem(tt=>this._toggleClass(tt.item,!1))}_applyClasses(ue){ue&&(Array.isArray(ue)||ue instanceof Set?ue.forEach(tt=>this._toggleClass(tt,!0)):Object.keys(ue).forEach(tt=>this._toggleClass(tt,!!ue[tt])))}_removeClasses(ue){ue&&(Array.isArray(ue)||ue instanceof Set?ue.forEach(tt=>this._toggleClass(tt,!1)):Object.keys(ue).forEach(tt=>this._toggleClass(tt,!1)))}_toggleClass(ue,tt){(ue=ue.trim())&&ue.split(/\s+/g).forEach(yt=>{tt?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),X})();class qi{constructor(He,ue,tt,yt){this.$implicit=He,this.ngForOf=ue,this.index=tt,this.count=yt}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 Fi=(()=>{class X{constructor(ue,tt,yt){this._viewContainer=ue,this._template=tt,this._differs=yt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(ue){this._ngForOf=ue,this._ngForOfDirty=!0}set ngForTrackBy(ue){this._trackByFn=ue}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(ue){ue&&(this._template=ue)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ue=this._ngForOf;!this._differ&&ue&&(this._differ=this._differs.find(ue).create(this.ngForTrackBy))}if(this._differ){const ue=this._differ.diff(this._ngForOf);ue&&this._applyChanges(ue)}}_applyChanges(ue){const tt=this._viewContainer;ue.forEachOperation((yt,Gt,Wt)=>{if(null==yt.previousIndex)tt.createEmbeddedView(this._template,new qi(yt.item,this._ngForOf,-1,-1),null===Wt?void 0:Wt);else if(null==Wt)tt.remove(null===Gt?void 0:Gt);else if(null!==Gt){const ii=tt.get(Gt);tt.move(ii,Wt),Ji(ii,yt)}});for(let yt=0,Gt=tt.length;yt{Ji(tt.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(ue,tt){return!0}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),X})();function Ji(X,He){X.context.$implicit=He.item}let ki=(()=>{class X{constructor(ue,tt){this._viewContainer=ue,this._context=new Ri,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=tt}set ngIf(ue){this._context.$implicit=this._context.ngIf=ue,this._updateView()}set ngIfThen(ue){sn("ngIfThen",ue),this._thenTemplateRef=ue,this._thenViewRef=null,this._updateView()}set ngIfElse(ue){sn("ngIfElse",ue),this._elseTemplateRef=ue,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(ue,tt){return!0}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.s_b),e.Y36(e.Rgc))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),X})();class Ri{constructor(){this.$implicit=null,this.ngIf=null}}function sn(X,He){if(He&&!He.createEmbeddedView)throw new Error(`${X} must be a TemplateRef, but received '${(0,e.AaK)(He)}'.`)}class Xi{constructor(He,ue){this._viewContainerRef=He,this._templateRef=ue,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(He){He&&!this._created?this.create():!He&&this._created&&this.destroy()}}let en=(()=>{class X{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ue){this._ngSwitch=ue,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ue){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(ue)}_matchCase(ue){const tt=ue==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||tt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),tt}_updateDefaultCases(ue){if(this._defaultViews&&ue!==this._defaultUsed){this._defaultUsed=ue;for(let tt=0;tt{class X{constructor(ue,tt,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Xi(ue,tt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),X})(),dn=(()=>{class X{constructor(ue,tt,yt){yt._addDefault(new Xi(ue,tt))}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngSwitchDefault",""]]}),X})(),Nn=(()=>{class X{constructor(ue,tt,yt){this._ngEl=ue,this._differs=tt,this._renderer=yt,this._ngStyle=null,this._differ=null}set ngStyle(ue){this._ngStyle=ue,!this._differ&&ue&&(this._differ=this._differs.find(ue).create())}ngDoCheck(){if(this._differ){const ue=this._differ.diff(this._ngStyle);ue&&this._applyChanges(ue)}}_setStyle(ue,tt){const[yt,Gt]=ue.split(".");null!=(tt=null!=tt&&Gt?`${tt}${Gt}`:tt)?this._renderer.setStyle(this._ngEl.nativeElement,yt,tt):this._renderer.removeStyle(this._ngEl.nativeElement,yt)}_applyChanges(ue){ue.forEachRemovedItem(tt=>this._setStyle(tt.key,null)),ue.forEachAddedItem(tt=>this._setStyle(tt.key,tt.currentValue)),ue.forEachChangedItem(tt=>this._setStyle(tt.key,tt.currentValue))}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),X})(),kn=(()=>{class X{constructor(ue){this._viewContainerRef=ue,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(ue){if(ue.ngTemplateOutlet){const tt=this._viewContainerRef;this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?tt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&ue.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.s_b))},X.\u0275dir=e.lG2({type:X,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),X})();function Qt(X,He){return new e.vHH(2100,"")}class rt{createSubscription(He,ue){return He.subscribe({next:ue,error:tt=>{throw tt}})}dispose(He){He.unsubscribe()}onDestroy(He){He.unsubscribe()}}class Nt{createSubscription(He,ue){return He.then(ue,tt=>{throw tt})}dispose(He){}onDestroy(He){}}const Ge=new Nt,Ot=new rt;let qe=(()=>{class X{constructor(ue){this._ref=ue,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(ue){return this._obj?ue!==this._obj?(this._dispose(),this.transform(ue)):this._latestValue:(ue&&this._subscribe(ue),this._latestValue)}_subscribe(ue){this._obj=ue,this._strategy=this._selectStrategy(ue),this._subscription=this._strategy.createSubscription(ue,tt=>this._updateLatestValue(ue,tt))}_selectStrategy(ue){if((0,e.QGY)(ue))return Ge;if((0,e.F4k)(ue))return Ot;throw Qt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ue,tt){ue===this._obj&&(this._latestValue=tt,this._ref.markForCheck())}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.sBO,16))},X.\u0275pipe=e.Yjl({name:"async",type:X,pure:!1}),X})(),Tt=(()=>{class X{transform(ue){if(null==ue)return null;if("string"!=typeof ue)throw Qt();return ue.toLowerCase()}}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275pipe=e.Yjl({name:"lowercase",type:X,pure:!0}),X})();const jt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ci=(()=>{class X{transform(ue){if(null==ue)return null;if("string"!=typeof ue)throw Qt();return ue.replace(jt,tt=>tt[0].toUpperCase()+tt.substr(1).toLowerCase())}}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275pipe=e.Yjl({name:"titlecase",type:X,pure:!0}),X})(),vi=(()=>{class X{transform(ue){if(null==ue)return null;if("string"!=typeof ue)throw Qt();return ue.toUpperCase()}}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275pipe=e.Yjl({name:"uppercase",type:X,pure:!0}),X})();const Ui=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class X{constructor(ue,tt){this.locale=ue,this.defaultTimezone=tt}transform(ue,tt="mediumDate",yt,Gt){var Wt;if(null==ue||""===ue||ue!=ue)return null;try{return c(ue,tt,Gt||this.locale,null!==(Wt=null!=yt?yt:this.defaultTimezone)&&void 0!==Wt?Wt:void 0)}catch(ii){throw Qt()}}}return X.\u0275fac=function(ue){return new(ue||X)(e.Y36(e.soG,16),e.Y36(Ui,24))},X.\u0275pipe=e.Yjl({name:"date",type:X,pure:!0}),X})(),Un=(()=>{class X{}return X.\u0275fac=function(ue){return new(ue||X)},X.\u0275mod=e.oAB({type:X}),X.\u0275inj=e.cJS({providers:[{provide:gt,useClass:ri}]}),X})();const pr="browser";function Cn(X){return X===pr}function $n(X){return"server"===X}let ft=(()=>{class X{}return X.\u0275prov=(0,e.Yz7)({token:X,providedIn:"root",factory:()=>new B((0,e.LFG)(E),window)}),X})();class B{constructor(He,ue){this.document=He,this.window=ue,this.offset=()=>[0,0]}setOffset(He){this.offset=Array.isArray(He)?()=>He:He}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(He){this.supportsScrolling()&&this.window.scrollTo(He[0],He[1])}scrollToAnchor(He){if(!this.supportsScrolling())return;const ue=function Pe(X,He){const ue=X.getElementById(He)||X.getElementsByName(He)[0];if(ue)return ue;if("function"==typeof X.createTreeWalker&&X.body&&(X.body.createShadowRoot||X.body.attachShadow)){const tt=X.createTreeWalker(X.body,NodeFilter.SHOW_ELEMENT);let yt=tt.currentNode;for(;yt;){const Gt=yt.shadowRoot;if(Gt){const Wt=Gt.getElementById(He)||Gt.querySelector(`[name="${He}"]`);if(Wt)return Wt}yt=tt.nextNode()}}return null}(this.document,He);ue&&(this.scrollToElement(ue),ue.focus())}setHistoryScrollRestoration(He){if(this.supportScrollRestoration()){const ue=this.window.history;ue&&ue.scrollRestoration&&(ue.scrollRestoration=He)}}scrollToElement(He){const ue=He.getBoundingClientRect(),tt=ue.left+this.window.pageXOffset,yt=ue.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(tt-Gt[0],yt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const He=G(this.window.history)||G(Object.getPrototypeOf(this.window.history));return!(!He||!He.writable&&!He.set)}catch(He){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(He){return!1}}}function G(X){return Object.getOwnPropertyDescriptor(X,"scrollRestoration")}class Ct{}},40520:(Qe,be,p)=>{"use strict";p.d(be,{TP:()=>Oe,eN:()=>Ve,JF:()=>$,qT:()=>he,WM:()=>I,LE:()=>q,Zn:()=>Ue});var e=p(69808),b=p(5e3),_=p(21086),w=p(56498),g=p(21406),A=p(92198),E=p(24850);class C{}class R{}class I{constructor(d){this.normalizedNames=new Map,this.lazyUpdate=null,d?this.lazyInit="string"==typeof d?()=>{this.headers=new Map,d.split("\n").forEach(l=>{const s=l.indexOf(":");if(s>0){const r=l.slice(0,s),t=r.toLowerCase(),n=l.slice(s+1).trim();this.maybeSetNormalizedName(r,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}})}:()=>{this.headers=new Map,Object.keys(d).forEach(l=>{let s=d[l];const r=l.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(l,r))})}:this.headers=new Map}has(d){return this.init(),this.headers.has(d.toLowerCase())}get(d){this.init();const l=this.headers.get(d.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(d){return this.init(),this.headers.get(d.toLowerCase())||null}append(d,l){return this.clone({name:d,value:l,op:"a"})}set(d,l){return this.clone({name:d,value:l,op:"s"})}delete(d,l){return this.clone({name:d,value:l,op:"d"})}maybeSetNormalizedName(d,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,d)}init(){this.lazyInit&&(this.lazyInit instanceof I?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(d=>this.applyUpdate(d)),this.lazyUpdate=null))}copyFrom(d){d.init(),Array.from(d.headers.keys()).forEach(l=>{this.headers.set(l,d.headers.get(l)),this.normalizedNames.set(l,d.normalizedNames.get(l))})}clone(d){const l=new I;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof I?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([d]),l}applyUpdate(d){const l=d.name.toLowerCase();switch(d.op){case"a":case"s":let s=d.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(d.name,l);const r=("a"===d.op?this.headers.get(l):void 0)||[];r.push(...s),this.headers.set(l,r);break;case"d":const t=d.value;if(t){let n=this.headers.get(l);if(!n)return;n=n.filter(o=>-1===t.indexOf(o)),0===n.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,n)}else this.headers.delete(l),this.normalizedNames.delete(l)}}forEach(d){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>d(this.normalizedNames.get(l),this.headers.get(l)))}}class m{encodeKey(d){return ie(d)}encodeValue(d){return ie(d)}decodeKey(d){return decodeURIComponent(d)}decodeValue(d){return decodeURIComponent(d)}}const P=/%(\d[a-f0-9])/gi,W={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ie(a){return encodeURIComponent(a).replace(P,(d,l)=>{var s;return null!==(s=W[l])&&void 0!==s?s:d})}function Ae(a){return`${a}`}class q{constructor(d={}){if(this.updates=null,this.cloneFrom=null,this.encoder=d.encoder||new m,d.fromString){if(d.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function O(a,d){const l=new Map;return a.length>0&&a.replace(/^\?/,"").split("&").forEach(r=>{const t=r.indexOf("="),[n,o]=-1==t?[d.decodeKey(r),""]:[d.decodeKey(r.slice(0,t)),d.decodeValue(r.slice(t+1))],c=l.get(n)||[];c.push(o),l.set(n,c)}),l}(d.fromString,this.encoder)}else d.fromObject?(this.map=new Map,Object.keys(d.fromObject).forEach(l=>{const s=d.fromObject[l];this.map.set(l,Array.isArray(s)?s:[s])})):this.map=null}has(d){return this.init(),this.map.has(d)}get(d){this.init();const l=this.map.get(d);return l?l[0]:null}getAll(d){return this.init(),this.map.get(d)||null}keys(){return this.init(),Array.from(this.map.keys())}append(d,l){return this.clone({param:d,value:l,op:"a"})}appendAll(d){const l=[];return Object.keys(d).forEach(s=>{const r=d[s];Array.isArray(r)?r.forEach(t=>{l.push({param:s,value:t,op:"a"})}):l.push({param:s,value:r,op:"a"})}),this.clone(l)}set(d,l){return this.clone({param:d,value:l,op:"s"})}delete(d,l){return this.clone({param:d,value:l,op:"d"})}toString(){return this.init(),this.keys().map(d=>{const l=this.encoder.encodeKey(d);return this.map.get(d).map(s=>l+"="+this.encoder.encodeValue(s)).join("&")}).filter(d=>""!==d).join("&")}clone(d){const l=new q({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(d),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(d=>this.map.set(d,this.cloneFrom.map.get(d))),this.updates.forEach(d=>{switch(d.op){case"a":case"s":const l=("a"===d.op?this.map.get(d.param):void 0)||[];l.push(Ae(d.value)),this.map.set(d.param,l);break;case"d":if(void 0===d.value){this.map.delete(d.param);break}{let s=this.map.get(d.param)||[];const r=s.indexOf(Ae(d.value));-1!==r&&s.splice(r,1),s.length>0?this.map.set(d.param,s):this.map.delete(d.param)}}}),this.cloneFrom=this.updates=null)}}class he{constructor(){this.map=new Map}set(d,l){return this.map.set(d,l),this}get(d){return this.map.has(d)||this.map.set(d,d.defaultValue()),this.map.get(d)}delete(d){return this.map.delete(d),this}has(d){return this.map.has(d)}keys(){return this.map.keys()}}function T(a){return"undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer}function N(a){return"undefined"!=typeof Blob&&a instanceof Blob}function j(a){return"undefined"!=typeof FormData&&a instanceof FormData}class ee{constructor(d,l,s,r){let t;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=d.toUpperCase(),function De(a){switch(a){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,t=r):t=s,t&&(this.reportProgress=!!t.reportProgress,this.withCredentials=!!t.withCredentials,t.responseType&&(this.responseType=t.responseType),t.headers&&(this.headers=t.headers),t.context&&(this.context=t.context),t.params&&(this.params=t.params)),this.headers||(this.headers=new I),this.context||(this.context=new he),this.params){const n=this.params.toString();if(0===n.length)this.urlWithParams=l;else{const o=l.indexOf("?");this.urlWithParams=l+(-1===o?"?":oAt.set(Ht,d.setHeaders[Ht]),h)),d.setParams&&(x=Object.keys(d.setParams).reduce((At,Ht)=>At.set(Ht,d.setParams[Ht]),x)),new ee(s,r,n,{params:x,headers:h,context:We,reportProgress:c,responseType:t,withCredentials:o})}}var de=(()=>((de=de||{})[de.Sent=0]="Sent",de[de.UploadProgress=1]="UploadProgress",de[de.ResponseHeader=2]="ResponseHeader",de[de.DownloadProgress=3]="DownloadProgress",de[de.Response=4]="Response",de[de.User=5]="User",de))();class ce{constructor(d,l=200,s="OK"){this.headers=d.headers||new I,this.status=void 0!==d.status?d.status:l,this.statusText=d.statusText||s,this.url=d.url||null,this.ok=this.status>=200&&this.status<300}}class Fe extends ce{constructor(d={}){super(d),this.type=de.ResponseHeader}clone(d={}){return new Fe({headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class Ue extends ce{constructor(d={}){super(d),this.type=de.Response,this.body=void 0!==d.body?d.body:null}clone(d={}){return new Ue({body:void 0!==d.body?d.body:this.body,headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class Xe extends ce{constructor(d){super(d,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${d.url||"(unknown url)"}`:`Http failure response for ${d.url||"(unknown url)"}: ${d.status} ${d.statusText}`,this.error=d.error||null}}function te(a,d){return{body:d,headers:a.headers,context:a.context,observe:a.observe,params:a.params,reportProgress:a.reportProgress,responseType:a.responseType,withCredentials:a.withCredentials}}let Ve=(()=>{class a{constructor(l){this.handler=l}request(l,s,r={}){let t;if(l instanceof ee)t=l;else{let c,h;c=r.headers instanceof I?r.headers:new I(r.headers),r.params&&(h=r.params instanceof q?r.params:new q({fromObject:r.params})),t=new ee(l,s,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const n=(0,_.of)(t).pipe((0,g.b)(c=>this.handler.handle(c)));if(l instanceof ee||"events"===r.observe)return n;const o=n.pipe((0,A.h)(c=>c instanceof Ue));switch(r.observe||"body"){case"body":switch(t.responseType){case"arraybuffer":return o.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return o.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return o.pipe((0,E.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return o.pipe((0,E.U)(c=>c.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(l,s={}){return this.request("DELETE",l,s)}get(l,s={}){return this.request("GET",l,s)}head(l,s={}){return this.request("HEAD",l,s)}jsonp(l,s){return this.request("JSONP",l,{params:(new q).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(l,s={}){return this.request("OPTIONS",l,s)}patch(l,s,r={}){return this.request("PATCH",l,te(r,s))}post(l,s,r={}){return this.request("POST",l,te(r,s))}put(l,s,r={}){return this.request("PUT",l,te(r,s))}}return a.\u0275fac=function(l){return new(l||a)(b.LFG(C))},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})();class ve{constructor(d,l){this.next=d,this.interceptor=l}handle(d){return this.interceptor.intercept(d,this.next)}}const Oe=new b.OlP("HTTP_INTERCEPTORS");let z=(()=>{class a{intercept(l,s){return s.handle(l)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})();const Je=/^\)\]\}',?\n/;let je=(()=>{class a{constructor(l){this.xhrFactory=l}handle(l){if("JSONP"===l.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(s=>{const r=this.xhrFactory.build();if(r.open(l.method,l.urlWithParams),l.withCredentials&&(r.withCredentials=!0),l.headers.forEach((Ht,lt)=>r.setRequestHeader(Ht,lt.join(","))),l.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!l.headers.has("Content-Type")){const Ht=l.detectContentTypeHeader();null!==Ht&&r.setRequestHeader("Content-Type",Ht)}if(l.responseType){const Ht=l.responseType.toLowerCase();r.responseType="json"!==Ht?Ht:"text"}const t=l.serializeBody();let n=null;const o=()=>{if(null!==n)return n;const Ht=r.statusText||"OK",lt=new I(r.getAllResponseHeaders()),Ut=function nt(a){return"responseURL"in a&&a.responseURL?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null}(r)||l.url;return n=new Fe({headers:lt,status:r.status,statusText:Ht,url:Ut}),n},c=()=>{let{headers:Ht,status:lt,statusText:Ut,url:mt}=o(),Lt=null;204!==lt&&(Lt=void 0===r.response?r.responseText:r.response),0===lt&&(lt=Lt?200:0);let we=lt>=200&<<300;if("json"===l.responseType&&"string"==typeof Lt){const ze=Lt;Lt=Lt.replace(Je,"");try{Lt=""!==Lt?JSON.parse(Lt):null}catch(U){Lt=ze,we&&(we=!1,Lt={error:U,text:Lt})}}we?(s.next(new Ue({body:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0})),s.complete()):s.error(new Xe({error:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0}))},h=Ht=>{const{url:lt}=o(),Ut=new Xe({error:Ht,status:r.status||0,statusText:r.statusText||"Unknown Error",url:lt||void 0});s.error(Ut)};let x=!1;const We=Ht=>{x||(s.next(o()),x=!0);let lt={type:de.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),"text"===l.responseType&&!!r.responseText&&(lt.partialText=r.responseText),s.next(lt)},At=Ht=>{let lt={type:de.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),s.next(lt)};return r.addEventListener("load",c),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),l.reportProgress&&(r.addEventListener("progress",We),null!==t&&r.upload&&r.upload.addEventListener("progress",At)),r.send(t),s.next({type:de.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",c),r.removeEventListener("timeout",h),l.reportProgress&&(r.removeEventListener("progress",We),null!==t&&r.upload&&r.upload.removeEventListener("progress",At)),r.readyState!==r.DONE&&r.abort()}})}}return a.\u0275fac=function(l){return new(l||a)(b.LFG(e.JF))},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})();const Q=new b.OlP("XSRF_COOKIE_NAME"),Ce=new b.OlP("XSRF_HEADER_NAME");class re{}let k=(()=>{class a{constructor(l,s,r){this.doc=l,this.platform=s,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const l=this.doc.cookie||"";return l!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(l,this.cookieName),this.lastCookieString=l),this.lastToken}}return a.\u0275fac=function(l){return new(l||a)(b.LFG(e.K0),b.LFG(b.Lbi),b.LFG(Q))},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})(),pe=(()=>{class a{constructor(l,s){this.tokenService=l,this.headerName=s}intercept(l,s){const r=l.url.toLowerCase();if("GET"===l.method||"HEAD"===l.method||r.startsWith("http://")||r.startsWith("https://"))return s.handle(l);const t=this.tokenService.getToken();return null!==t&&!l.headers.has(this.headerName)&&(l=l.clone({headers:l.headers.set(this.headerName,t)})),s.handle(l)}}return a.\u0275fac=function(l){return new(l||a)(b.LFG(re),b.LFG(Ce))},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})(),Z=(()=>{class a{constructor(l,s){this.backend=l,this.injector=s,this.chain=null}handle(l){if(null===this.chain){const s=this.injector.get(Oe,[]);this.chain=s.reduceRight((r,t)=>new ve(r,t),this.backend)}return this.chain.handle(l)}}return a.\u0275fac=function(l){return new(l||a)(b.LFG(R),b.LFG(b.zs3))},a.\u0275prov=b.Yz7({token:a,factory:a.\u0275fac}),a})(),_e=(()=>{class a{static disable(){return{ngModule:a,providers:[{provide:pe,useClass:z}]}}static withOptions(l={}){return{ngModule:a,providers:[l.cookieName?{provide:Q,useValue:l.cookieName}:[],l.headerName?{provide:Ce,useValue:l.headerName}:[]]}}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=b.oAB({type:a}),a.\u0275inj=b.cJS({providers:[pe,{provide:Oe,useExisting:pe,multi:!0},{provide:re,useClass:k},{provide:Q,useValue:"XSRF-TOKEN"},{provide:Ce,useValue:"X-XSRF-TOKEN"}]}),a})(),$=(()=>{class a{}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=b.oAB({type:a}),a.\u0275inj=b.cJS({providers:[Ve,{provide:C,useClass:Z},je,{provide:R,useExisting:je}],imports:[[_e.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),a})()},5e3:(Qe,be,p)=>{"use strict";p.d(be,{deG:()=>Hm,tb:()=>lm,AFp:()=>sm,ip1:()=>Zc,CZH:()=>sa,hGG:()=>jT,z2F:()=>za,sBO:()=>AT,Sil:()=>zc,_Vd:()=>ka,EJc:()=>dm,SBq:()=>Va,qLn:()=>ya,vpe:()=>zr,tBr:()=>Aa,XFs:()=>oe,OlP:()=>Dn,zs3:()=>Er,ZZ4:()=>Oo,aQg:()=>Ho,soG:()=>Ro,YKP:()=>pf,h0i:()=>ia,PXZ:()=>uT,R0b:()=>_r,FiY:()=>cs,Lbi:()=>om,g9A:()=>am,n_E:()=>yo,Qsj:()=>KC,FYo:()=>cf,JOm:()=>Fr,q3G:()=>On,tp0:()=>Rs,Rgc:()=>Za,dDg:()=>pm,GfV:()=>df,s_b:()=>xo,ifc:()=>t,eFA:()=>gm,G48:()=>_T,Gpc:()=>m,f3M:()=>qm,_c5:()=>LT,VLi:()=>lT,c2e:()=>cm,zSh:()=>Vl,wAp:()=>Ii,vHH:()=>ie,EiD:()=>Vd,mCW:()=>Ca,qzn:()=>Os,JVY:()=>pg,pB0:()=>_g,eBb:()=>mg,L6k:()=>fg,LAX:()=>gg,cg1:()=>vc,kL8:()=>Pp,yhl:()=>Id,dqk:()=>x,sIi:()=>Ra,CqO:()=>Gh,QGY:()=>sc,F4k:()=>Zh,RDi:()=>G,AaK:()=>C,z3N:()=>Yr,qOj:()=>Gl,TTD:()=>Mn,_Bn:()=>af,xp6:()=>Tu,uIk:()=>Yl,Q2q:()=>ql,Tol:()=>dp,Gre:()=>Tp,ekj:()=>hc,Suo:()=>Nf,Xpm:()=>ne,lG2:()=>Rt,Yz7:()=>Se,cJS:()=>Je,oAB:()=>xt,Yjl:()=>Et,Y36:()=>Pa,_UZ:()=>Fh,GkF:()=>Uh,BQk:()=>rc,ynx:()=>nc,qZA:()=>ic,TgZ:()=>tc,EpF:()=>jh,n5z:()=>fd,Ikx:()=>bc,LFG:()=>Fn,$8M:()=>Fo,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>kf,kcU:()=>zi,O4$:()=>Hn,oxw:()=>Yh,ALo:()=>xf,lcZ:()=>Mf,xi3:()=>Sf,Dn7:()=>Df,Hsn:()=>Jh,F$t:()=>qh,Q6J:()=>Xl,s9C:()=>cc,MGl:()=>mo,hYB:()=>dc,DdM:()=>_f,VKq:()=>Af,WLB:()=>bf,kEZ:()=>Cf,iGM:()=>Lf,MAs:()=>Sh,evT:()=>Qd,Jf7:()=>Jd,CHM:()=>Ei,oJD:()=>Fd,LSH:()=>el,B6R:()=>le,kYT:()=>Yt,Udp:()=>uc,WFA:()=>oc,d8E:()=>Cc,YNc:()=>Mh,W1O:()=>jf,_uU:()=>_p,Oqu:()=>fc,hij:()=>_o,AsE:()=>mc,lnq:()=>gc,HOy:()=>_c,xDo:()=>Ac,Gf:()=>Bf});var e=p(8929),b=p(42654),_=p(56498),w=p(36787),g=p(12474);function A(u){for(let f in u)if(u[f]===A)return f;throw Error("Could not find renamed property on target object.")}function E(u,f){for(const v in f)f.hasOwnProperty(v)&&!u.hasOwnProperty(v)&&(u[v]=f[v])}function C(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(C).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const v=f.indexOf("\n");return-1===v?f:f.substring(0,v)}function R(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const I=A({__forward_ref__:A});function m(u){return u.__forward_ref__=m,u.toString=function(){return C(this())},u}function O(u){return P(u)?u():u}function P(u){return"function"==typeof u&&u.hasOwnProperty(I)&&u.__forward_ref__===m}class ie extends Error{constructor(f,v){super(function Ae(u,f){return`NG0${Math.abs(u)}${f?": "+f:""}`}(f,v)),this.code=f}}function q(u){return"string"==typeof u?u:null==u?"":String(u)}function Me(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():q(u)}function N(u,f){const v=f?` in ${f}`:"";throw new ie(-201,`No provider for ${Me(u)} found${v}`)}function D(u,f){null==u&&function ge(u,f,v,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${v} ${y} ${f} <=Actual]`))}(f,u,null,"!=")}function Se(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Je(u){return{providers:u.providers||[],imports:u.imports||[]}}function nt(u){return je(u,k)||je(u,Z)}function je(u,f){return u.hasOwnProperty(f)?u[f]:null}function re(u){return u&&(u.hasOwnProperty(pe)||u.hasOwnProperty(Ne))?u[pe]:null}const k=A({\u0275prov:A}),pe=A({\u0275inj:A}),Z=A({ngInjectableDef:A}),Ne=A({ngInjectorDef:A});var oe=(()=>((oe=oe||{})[oe.Default=0]="Default",oe[oe.Host=1]="Host",oe[oe.Self=2]="Self",oe[oe.SkipSelf=4]="SkipSelf",oe[oe.Optional=8]="Optional",oe))();let _e;function V(u){const f=_e;return _e=u,f}function i(u,f,v){const y=nt(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:v&oe.Optional?null:void 0!==f?f:void N(C(u),"Injector")}function d(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const n="undefined"!=typeof globalThis&&globalThis,o="undefined"!=typeof window&&window,c="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,x=n||"undefined"!=typeof global&&global||o||c,Ht={},lt=[],Ut=A({\u0275cmp:A}),mt=A({\u0275dir:A}),Lt=A({\u0275pipe:A}),we=A({\u0275mod:A}),ze=A({\u0275fac:A}),U=A({__NG_ELEMENT_ID__:A});let L=0;function ne(u){return d(()=>{const v={},y={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:v,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,selectors:u.selectors||lt,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c",styles:u.styles||lt,_:null,setInput:null,schemas:u.schemas||null,tView:null},M=u.directives,S=u.features,H=u.pipes;return y.id+=L++,y.inputs=It(u.inputs,v),y.outputs=It(u.outputs),S&&S.forEach(se=>se(y)),y.directiveDefs=M?()=>("function"==typeof M?M():M).map(Le):null,y.pipeDefs=H?()=>("function"==typeof H?H():H).map(ct):null,y})}function le(u,f,v){const y=u.\u0275cmp;y.directiveDefs=()=>f.map(Le),y.pipeDefs=()=>v.map(ct)}function Le(u){return Bt(u)||function Jt(u){return u[mt]||null}(u)}function ct(u){return function ai(u){return u[Lt]||null}(u)}const bt={};function xt(u){return d(()=>{const f={type:u.type,bootstrap:u.bootstrap||lt,declarations:u.declarations||lt,imports:u.imports||lt,exports:u.exports||lt,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null};return null!=u.id&&(bt[u.id]=u.type),f})}function Yt(u,f){return d(()=>{const v=mi(u,!0);v.declarations=f.declarations||lt,v.imports=f.imports||lt,v.exports=f.exports||lt})}function It(u,f){if(null==u)return Ht;const v={};for(const y in u)if(u.hasOwnProperty(y)){let M=u[y],S=M;Array.isArray(M)&&(S=M[1],M=M[0]),v[M]=y,f&&(f[M]=S)}return v}const Rt=ne;function Et(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,onDestroy:u.type.prototype.ngOnDestroy||null}}function Bt(u){return u[Ut]||null}function mi(u,f){const v=u[we]||null;if(!v&&!0===f)throw new Error(`Type ${C(u)} does not have '\u0275mod' property.`);return v}function en(u){return Array.isArray(u)&&"object"==typeof u[1]}function an(u){return Array.isArray(u)&&!0===u[1]}function dn(u){return 0!=(8&u.flags)}function wn(u){return 2==(2&u.flags)}function xn(u){return 1==(1&u.flags)}function Oi(u){return null!==u.template}function Nn(u){return 0!=(512&u[2])}function En(u,f){return u.hasOwnProperty(ze)?u[ze]:null}class hr{constructor(f,v,y){this.previousValue=f,this.currentValue=v,this.firstChange=y}isFirstChange(){return this.firstChange}}function Mn(){return Gn}function Gn(u){return u.type.prototype.ngOnChanges&&(u.setInput=ar),sr}function sr(){const u=pr(this),f=null==u?void 0:u.current;if(f){const v=u.previous;if(v===Ht)u.previous=f;else for(let y in f)v[y]=f[y];u.current=null,this.ngOnChanges(f)}}function ar(u,f,v,y){const M=pr(u)||function br(u,f){return u[Un]=f}(u,{previous:Ht,current:null}),S=M.current||(M.current={}),H=M.previous,se=this.declaredInputs[v],ye=H[se];S[se]=new hr(ye&&ye.currentValue,f,H===Ht),u[y]=f}Mn.ngInherit=!0;const Un="__ngSimpleChanges__";function pr(u){return u[Un]||null}let B;function G(u){B=u}function Pe(){return void 0!==B?B:"undefined"!=typeof document?document:void 0}function Ct(u){return!!u.listen}const X={createRenderer:(u,f)=>Pe()};function ue(u){for(;Array.isArray(u);)u=u[0];return u}function Gt(u,f){return ue(f[u])}function Wt(u,f){return ue(f[u.index])}function di(u,f){return u.data[f]}function ui(u,f){return u[f]}function _i(u,f){const v=f[u];return en(v)?v:v[0]}function Ti(u){return 4==(4&u[2])}function Hi(u){return 128==(128&u[2])}function Re(u,f){return null==f?null:u[f]}function xe(u){u[18]=0}function ut(u,f){u[5]+=f;let v=u,y=u[3];for(;null!==y&&(1===f&&1===v[5]||-1===f&&0===v[5]);)y[5]+=f,v=y,y=y[3]}const Zt={lFrame:pi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wn(){return Zt.bindingsEnabled}function Xt(){return Zt.lFrame.lView}function si(){return Zt.lFrame.tView}function Ei(u){return Zt.lFrame.contextLView=u,u[8]}function gi(){let u=Vi();for(;null!==u&&64===u.type;)u=u.parent;return u}function Vi(){return Zt.lFrame.currentTNode}function vn(u,f){const v=Zt.lFrame;v.currentTNode=u,v.isParent=f}function Pn(){return Zt.lFrame.isParent}function Yn(){Zt.lFrame.isParent=!1}function wr(){return Zt.isInCheckNoChangesMode}function bn(u){Zt.isInCheckNoChangesMode=u}function mn(){const u=Zt.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Sn(){return Zt.lFrame.bindingIndex}function er(){return Zt.lFrame.bindingIndex++}function fr(u){const f=Zt.lFrame,v=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,v}function oa(u,f){const v=Zt.lFrame;v.bindingIndex=v.bindingRootIndex=u,As(f)}function As(u){Zt.lFrame.currentDirectiveIndex=u}function me(u){const f=Zt.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function at(){return Zt.lFrame.currentQueryIndex}function Be(u){Zt.lFrame.currentQueryIndex=u}function pt(u){const f=u[1];return 2===f.type?f.declTNode:1===f.type?u[6]:null}function Vt(u,f,v){if(v&oe.SkipSelf){let M=f,S=u;for(;!(M=M.parent,null!==M||v&oe.Host||(M=pt(S),null===M||(S=S[15],10&M.type))););if(null===M)return!1;f=M,u=S}const y=Zt.lFrame=ni();return y.currentTNode=f,y.lView=u,!0}function qt(u){const f=ni(),v=u[1];Zt.lFrame=f,f.currentTNode=v.firstChild,f.lView=u,f.tView=v,f.contextLView=u,f.bindingIndex=v.bindingStartIndex,f.inI18n=!1}function ni(){const u=Zt.lFrame,f=null===u?null:u.child;return null===f?pi(u):f}function pi(u){const f={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:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function oi(){const u=Zt.lFrame;return Zt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Si=oi;function Gi(){const u=oi();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Zi(){return Zt.lFrame.selectedIndex}function Bi(u){Zt.lFrame.selectedIndex=u}function Pi(){const u=Zt.lFrame;return di(u.tView,u.selectedIndex)}function Hn(){Zt.lFrame.currentNamespace="svg"}function zi(){!function tr(){Zt.lFrame.currentNamespace=null}()}function bs(u,f){for(let v=f.directiveStart,y=f.directiveEnd;v=y)break}else f[ye]<0&&(u[18]+=65536),(se>11>16&&(3&u[2])===f){u[2]+=2048;try{S.call(se)}finally{}}}else try{S.call(se)}finally{}}class rs{constructor(f,v,y){this.factory=f,this.resolving=!1,this.canSeeViewProviders=v,this.injectImpl=y}}function Cs(u,f,v){const y=Ct(u);let M=0;for(;Mf){H=S-1;break}}}for(;S>16}(u),y=f;for(;v>0;)y=y[15],v--;return y}let J=!0;function Ze(u){const f=J;return J=u,f}let Ft=0;function Ai(u,f){const v=xi(u,f);if(-1!==v)return v;const y=f[1];y.firstCreatePass&&(u.injectorIndex=f.length,Yi(y.data,u),Yi(f,null),Yi(y.blueprint,null));const M=nn(u,f),S=u.injectorIndex;if(qa(M)){const H=as(M),se=ae(M,f),ye=se[1].data;for(let et=0;et<8;et++)f[S+et]=se[H+et]|ye[H+et]}return f[S+8]=M,S}function Yi(u,f){u.push(0,0,0,0,0,0,0,0,f)}function xi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function nn(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let v=0,y=null,M=f;for(;null!==M;){const S=M[1],H=S.type;if(y=2===H?S.declTNode:1===H?M[6]:null,null===y)return-1;if(v++,M=M[15],-1!==y.injectorIndex)return y.injectorIndex|v<<16}return-1}function on(u,f,v){!function $t(u,f,v){let y;"string"==typeof v?y=v.charCodeAt(0)||0:v.hasOwnProperty(U)&&(y=v[U]),null==y&&(y=v[U]=Ft++);const M=255&y;f.data[u+(M>>5)]|=1<=0?255&f:Sr:f}(v);if("function"==typeof S){if(!Vt(f,u,y))return y&oe.Host?Cr(M,v,y):vr(f,v,y,M);try{const H=S(y);if(null!=H||y&oe.Optional)return H;N(v)}finally{Si()}}else if("number"==typeof S){let H=null,se=xi(u,f),ye=-1,et=y&oe.Host?f[16][6]:null;for((-1===se||y&oe.SkipSelf)&&(ye=-1===se?nn(u,f):f[se+8],-1!==ye&&pd(y,!1)?(H=f[1],se=as(ye),f=ae(ye,f)):se=-1);-1!==se;){const dt=f[1];if(hd(S,se,dt.data)){const wt=Xr(se,f,v,H,y,et);if(wt!==ls)return wt}ye=f[se+8],-1!==ye&&pd(y,f[1].data[se+8]===et)&&hd(S,se,f)?(H=dt,se=as(ye),f=ae(ye,f)):se=-1}}}return vr(f,v,y,M)}const ls={};function Sr(){return new ys(gi(),Xt())}function Xr(u,f,v,y,M,S){const H=f[1],se=H.data[u+8],dt=Es(se,H,v,null==y?wn(se)&&J:y!=H&&0!=(3&se.type),M&oe.Host&&S===se);return null!==dt?ua(f,H,dt,se):ls}function Es(u,f,v,y,M){const S=u.providerIndexes,H=f.data,se=1048575&S,ye=u.directiveStart,dt=S>>20,kt=M?se+dt:u.directiveEnd;for(let zt=y?se:se+dt;zt=ye&&Kt.type===v)return zt}if(M){const zt=H[ye];if(zt&&Oi(zt)&&zt.type===v)return ye}return null}function ua(u,f,v,y){let M=u[v];const S=f.data;if(function Bo(u){return u instanceof rs}(M)){const H=M;H.resolving&&function he(u,f){const v=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new ie(-200,`Circular dependency in DI detected for ${u}${v}`)}(Me(S[v]));const se=Ze(H.canSeeViewProviders);H.resolving=!0;const ye=H.injectImpl?V(H.injectImpl):null;Vt(u,y,oe.Default);try{M=u[v]=H.factory(void 0,S,u,y),f.firstCreatePass&&v>=y.directiveStart&&function Wa(u,f,v){const{ngOnChanges:y,ngOnInit:M,ngDoCheck:S}=f.type.prototype;if(y){const H=Gn(f);(v.preOrderHooks||(v.preOrderHooks=[])).push(u,H),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,H)}M&&(v.preOrderHooks||(v.preOrderHooks=[])).push(0-u,M),S&&((v.preOrderHooks||(v.preOrderHooks=[])).push(u,S),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,S))}(v,S[v],f)}finally{null!==ye&&V(ye),Ze(se),H.resolving=!1,Si()}}return M}function hd(u,f,v){return!!(v[f+(u>>5)]&1<{const f=u.prototype.constructor,v=f[ze]||Vo(f),y=Object.prototype;let M=Object.getPrototypeOf(u.prototype).constructor;for(;M&&M!==y;){const S=M[ze]||Vo(M);if(S&&S!==v)return S;M=Object.getPrototypeOf(M)}return S=>new S})}function Vo(u){return P(u)?()=>{const f=Vo(O(u));return f&&f()}:En(u)}function Fo(u){return function os(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const v=u.attrs;if(v){const y=v.length;let M=0;for(;M{const y=function Uo(u){return function(...v){if(u){const y=u(...v);for(const M in y)this[M]=y[M]}}}(f);function M(...S){if(this instanceof M)return y.apply(this,S),this;const H=new M(...S);return se.annotation=H,se;function se(ye,et,dt){const wt=ye.hasOwnProperty(xs)?ye[xs]:Object.defineProperty(ye,xs,{value:[]})[xs];for(;wt.length<=dt;)wt.push(null);return(wt[dt]=wt[dt]||[]).push(H),ye}}return v&&(M.prototype=Object.create(v.prototype)),M.prototype.ngMetadataName=u,M.annotationCls=M,M})}class Dn{constructor(f,v){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof v?this.__NG_ELEMENT_ID__=v:void 0!==v&&(this.\u0275prov=Se({token:this,providedIn:v.providedIn||"root",factory:v.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Hm=new Dn("AnalyzeForEntryComponents");function Tr(u,f){void 0===f&&(f=u);for(let v=0;vArray.isArray(v)?Nr(v,f):f(v))}function gd(u,f,v){f>=u.length?u.push(v):u.splice(f,0,v)}function Ja(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function fa(u,f){const v=[];for(let y=0;y=0?u[1|y]=v:(y=~y,function Nm(u,f,v,y){let M=u.length;if(M==f)u.push(v,y);else if(1===M)u.push(y,u[0]),u[0]=v;else{for(M--,u.push(u[M-1],u[M]);M>f;)u[M]=u[M-2],M--;u[f]=v,u[f+1]=y}}(u,y,f,v)),y}function Zo(u,f){const v=Ds(u,f);if(v>=0)return u[1|v]}function Ds(u,f){return function bd(u,f,v){let y=0,M=u.length>>v;for(;M!==y;){const S=y+(M-y>>1),H=u[S<f?M=S:y=S+1}return~(M<({token:u})),-1),cs=_a(Ss("Optional"),8),Rs=_a(Ss("SkipSelf"),4);let Xa,eo;function Ps(u){var f;return(null===(f=function qo(){if(void 0===Xa&&(Xa=null,x.trustedTypes))try{Xa=x.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return Xa}())||void 0===f?void 0:f.createHTML(u))||u}function Sd(u){var f;return(null===(f=function Jo(){if(void 0===eo&&(eo=null,x.trustedTypes))try{eo=x.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return eo}())||void 0===f?void 0:f.createHTML(u))||u}class ds{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class lg extends ds{getTypeName(){return"HTML"}}class cg extends ds{getTypeName(){return"Style"}}class dg extends ds{getTypeName(){return"Script"}}class ug extends ds{getTypeName(){return"URL"}}class hg extends ds{getTypeName(){return"ResourceURL"}}function Yr(u){return u instanceof ds?u.changingThisBreaksApplicationSecurity:u}function Os(u,f){const v=Id(u);if(null!=v&&v!==f){if("ResourceURL"===v&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${v} (see https://g.co/ng/security#xss)`)}return v===f}function Id(u){return u instanceof ds&&u.getTypeName()||null}function pg(u){return new lg(u)}function fg(u){return new cg(u)}function mg(u){return new dg(u)}function gg(u){return new ug(u)}function _g(u){return new hg(u)}class Ag{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const v=(new window.DOMParser).parseFromString(Ps(f),"text/html").body;return null===v?this.inertDocumentHelper.getInertBodyElement(f):(v.removeChild(v.firstChild),v)}catch(v){return null}}}class bg{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const v=this.inertDocument.createElement("html");this.inertDocument.appendChild(v);const y=this.inertDocument.createElement("body");v.appendChild(y)}}getInertBodyElement(f){const v=this.inertDocument.createElement("template");if("content"in v)return v.innerHTML=Ps(f),v;const y=this.inertDocument.createElement("body");return y.innerHTML=Ps(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(f){const v=f.attributes;for(let M=v.length-1;0Ca(f.trim())).join(", ")),this.buf.push(" ",H,'="',kd(ye),'"')}var u;return this.buf.push(">"),!0}endElement(f){const v=f.nodeName.toLowerCase();Qo.hasOwnProperty(v)&&!Hd.hasOwnProperty(v)&&(this.buf.push(""))}chars(f){this.buf.push(kd(f))}checkClobberedElement(f,v){if(v&&(f.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return v}}const wg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xg=/([^\#-~ |!])/g;function kd(u){return u.replace(/&/g,"&").replace(wg,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(xg,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let to;function Vd(u,f){let v=null;try{to=to||function Pd(u){const f=new bg(u);return function Cg(){try{return!!(new window.DOMParser).parseFromString(Ps(""),"text/html")}catch(u){return!1}}()?new Ag(f):f}(u);let y=f?String(f):"";v=to.getInertBodyElement(y);let M=5,S=y;do{if(0===M)throw new Error("Failed to sanitize html because the input is unstable");M--,y=S,S=v.innerHTML,v=to.getInertBodyElement(y)}while(y!==S);return Ps((new yg).sanitizeChildren(Xo(v)||v))}finally{if(v){const y=Xo(v)||v;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Xo(u){return"content"in u&&function Mg(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var On=(()=>((On=On||{})[On.NONE=0]="NONE",On[On.HTML=1]="HTML",On[On.STYLE=2]="STYLE",On[On.SCRIPT=3]="SCRIPT",On[On.URL=4]="URL",On[On.RESOURCE_URL=5]="RESOURCE_URL",On))();function Fd(u){const f=Ta();return f?Sd(f.sanitize(On.HTML,u)||""):Os(u,"HTML")?Sd(Yr(u)):Vd(Pe(),q(u))}function el(u){const f=Ta();return f?f.sanitize(On.URL,u)||"":Os(u,"URL")?Yr(u):Ca(q(u))}function Ta(){const u=Xt();return u&&u[12]}const Zd="__ngContext__";function qn(u,f){u[Zd]=f}function il(u){const f=function Ea(u){return u[Zd]||null}(u);return f?Array.isArray(f)?f:f.lView:null}function rl(u){return u.ngOriginalError}function Zg(u,...f){u.error(...f)}class ya{constructor(){this._console=console}handleError(f){const v=this._findOriginalError(f),y=function jg(u){return u&&u.ngErrorLogger||Zg}(f);y(this._console,"ERROR",f),v&&y(this._console,"ORIGINAL ERROR",v)}_findOriginalError(f){let v=f&&rl(f);for(;v&&rl(v);)v=rl(v);return v||null}}const qd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x))();function Jd(u){return u.ownerDocument.defaultView}function Qd(u){return u.ownerDocument}function Vr(u){return u instanceof Function?u():u}var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();function al(u,f){return undefined(u,f)}function wa(u){const f=u[3];return an(f)?f[3]:f}function ol(u){return tu(u[13])}function ll(u){return tu(u[4])}function tu(u){for(;null!==u&&!an(u);)u=u[4];return u}function Ls(u,f,v,y,M){if(null!=y){let S,H=!1;an(y)?S=y:en(y)&&(H=!0,y=y[0]);const se=ue(y);0===u&&null!==v?null==M?ou(f,v,se):us(f,v,se,M||null,!0):1===u&&null!==v?us(f,v,se,M||null,!0):2===u?function fu(u,f,v){const y=io(u,f);y&&function d_(u,f,v,y){Ct(u)?u.removeChild(f,v,y):f.removeChild(v)}(u,y,f,v)}(f,se,H):3===u&&f.destroyNode(se),null!=S&&function p_(u,f,v,y,M){const S=v[7];S!==ue(v)&&Ls(f,u,y,S,M);for(let se=10;se0&&(u[v-1][4]=y[4]);const S=Ja(u,10+f);!function i_(u,f){xa(u,f,f[11],2,null,null),f[0]=null,f[6]=null}(y[1],y);const H=S[19];null!==H&&H.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-129}return y}function ru(u,f){if(!(256&f[2])){const v=f[11];Ct(v)&&v.destroyNode&&xa(u,f,v,3,null,null),function s_(u){let f=u[13];if(!f)return hl(u[1],u);for(;f;){let v=null;if(en(f))v=f[13];else{const y=f[10];y&&(v=y)}if(!v){for(;f&&!f[4]&&f!==u;)en(f)&&hl(f[1],f),f=f[3];null===f&&(f=u),en(f)&&hl(f[1],f),v=f&&f[4]}f=v}}(f)}}function hl(u,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function c_(u,f){let v;if(null!=u&&null!=(v=u.destroyHooks))for(let y=0;y=0?y[M=et]():y[M=-et].unsubscribe(),S+=2}else{const H=y[M=v[S+1]];v[S].call(H)}if(null!==y){for(let S=M+1;SS?"":M[wt+1].toLowerCase();const zt=8&y?kt:null;if(zt&&-1!==_u(zt,et,0)||2&y&&et!==kt){if(Dr(y))return!1;H=!0}}}}else{if(!H&&!Dr(y)&&!Dr(ye))return!1;if(H&&Dr(ye))continue;H=!1,y=ye|1&y}}return Dr(y)||H}function Dr(u){return 0==(1&u)}function A_(u,f,v,y){if(null===f)return-1;let M=0;if(y||!v){let S=!1;for(;M-1)for(v++;v0?'="'+se+'"':"")+"]"}else 8&y?M+="."+H:4&y&&(M+=" "+H);else""!==M&&!Dr(H)&&(f+=vu(S,M),M=""),y=H,S=S||!Dr(y);v++}return""!==M&&(f+=vu(S,M)),f}const Ni={};function Tu(u){Eu(si(),Xt(),Zi()+u,wr())}function Eu(u,f,v,y){if(!y)if(3==(3&f[2])){const S=u.preOrderCheckHooks;null!==S&&Kr(f,S,v)}else{const S=u.preOrderHooks;null!==S&&is(f,S,0,v)}Bi(v)}function so(u,f){return u<<17|f<<2}function Rr(u){return u>>17&32767}function _l(u){return 2|u}function qr(u){return(131068&u)>>2}function Al(u,f){return-131069&u|f<<2}function bl(u){return 1|u}function Hu(u,f){const v=u.contentQueries;if(null!==v)for(let y=0;y20&&Eu(u,f,20,wr()),v(y,M)}finally{Bi(S)}}function Bu(u,f,v){if(dn(f)){const M=f.directiveEnd;for(let S=f.directiveStart;S0;){const v=u[--f];if("number"==typeof v&&v<0)return v}return 0})(se)!=ye&&se.push(ye),se.push(y,M,H)}}function Gu(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function zu(u,f){f.flags|=2,(u.components||(u.components=[])).push(f.index)}function K_(u,f,v){if(v){if(f.exportAs)for(let y=0;y0&&Ol(v)}}function Ol(u){for(let y=ol(u);null!==y;y=ll(y))for(let M=10;M0&&Ol(S)}const v=u[1].components;if(null!==v)for(let y=0;y0&&Ol(M)}}function sA(u,f){const v=_i(f,u),y=v[1];(function aA(u,f){for(let v=f.length;vPromise.resolve(null))();function Qu(u){return u[7]||(u[7]=[])}function $u(u){return u.cleanup||(u.cleanup=[])}function Ku(u,f,v){return(null===u||Oi(u))&&(v=function tt(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(v[f.index])),v[11]}function Xu(u,f){const v=u[9],y=v?v.get(ya,null):null;y&&y.handleError(f)}function eh(u,f,v,y,M){for(let S=0;Sthis.processProvider(se,f,v)),Nr([f],se=>this.processInjectorType(se,[],S)),this.records.set(kl,Vs(void 0,this));const H=this.records.get(Vl);this.scope=null!=H?H.value:null,this.source=M||("object"==typeof f?null:C(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,v=ma,y=oe.Default){this.assertNotDestroyed();const M=Td(this),S=V(void 0);try{if(!(y&oe.SkipSelf)){let se=this.records.get(f);if(void 0===se){const ye=function TA(u){return"function"==typeof u||"object"==typeof u&&u instanceof Dn}(f)&&nt(f);se=ye&&this.injectableDefInScope(ye)?Vs(Ul(f),Da):null,this.records.set(f,se)}if(null!=se)return this.hydrate(f,se)}return(y&oe.Self?ih():this.parent).get(f,v=y&oe.Optional&&v===ma?null:v)}catch(H){if("NullInjectorError"===H.name){if((H[$a]=H[$a]||[]).unshift(C(f)),M)throw H;return function Qm(u,f,v,y){const M=u[$a];throw f[vd]&&M.unshift(f[vd]),u.message=function $m(u,f,v,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.substr(2):u;let M=C(f);if(Array.isArray(f))M=f.map(C).join(" -> ");else if("object"==typeof f){let S=[];for(let H in f)if(f.hasOwnProperty(H)){let se=f[H];S.push(H+":"+("string"==typeof se?JSON.stringify(se):C(se)))}M=`{${S.join(", ")}}`}return`${v}${y?"("+y+")":""}[${M}]: ${u.replace(Gm,"\n ")}`}("\n"+u.message,M,v,y),u.ngTokenPath=M,u[$a]=null,u}(H,f,"R3InjectorError",this.source)}throw H}finally{V(S),Td(M)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((y,M)=>f.push(C(M))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ie(205,!1)}processInjectorType(f,v,y){if(!(f=O(f)))return!1;let M=re(f);const S=null==M&&f.ngModule||void 0,H=void 0===S?f:S,se=-1!==y.indexOf(H);if(void 0!==S&&(M=re(S)),null==M)return!1;if(null!=M.imports&&!se){let dt;y.push(H);try{Nr(M.imports,wt=>{this.processInjectorType(wt,v,y)&&(void 0===dt&&(dt=[]),dt.push(wt))})}finally{}if(void 0!==dt)for(let wt=0;wtthis.processProvider(Kt,kt,zt||lt))}}this.injectorDefTypes.add(H);const ye=En(H)||(()=>new H);this.records.set(H,Vs(ye,Da));const et=M.providers;if(null!=et&&!se){const dt=f;Nr(et,wt=>this.processProvider(wt,dt,et))}return void 0!==S&&void 0!==f.providers}processProvider(f,v,y){let M=Fs(f=O(f))?f:O(f&&f.provide);const S=function gA(u,f,v){return ah(u)?Vs(void 0,u.useValue):Vs(sh(u),Da)}(f);if(Fs(f)||!0!==f.multi)this.records.get(M);else{let H=this.records.get(M);H||(H=Vs(void 0,Da,!0),H.factory=()=>Wo(H.multi),this.records.set(M,H)),M=f,H.multi.push(f)}this.records.set(M,S)}hydrate(f,v){return v.value===Da&&(v.value=pA,v.value=v.factory()),"object"==typeof v.value&&v.value&&function vA(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(v.value)&&this.onDestroy.add(v.value),v.value}injectableDefInScope(f){if(!f.providedIn)return!1;const v=O(f.providedIn);return"string"==typeof v?"any"===v||v===this.scope:this.injectorDefTypes.has(v)}}function Ul(u){const f=nt(u),v=null!==f?f.factory:En(u);if(null!==v)return v;if(u instanceof Dn)throw new ie(204,!1);if(u instanceof Function)return function mA(u){const f=u.length;if(f>0)throw fa(f,"?"),new ie(204,!1);const v=function Q(u){const f=u&&(u[k]||u[Z]);if(f){const v=function Ce(u){if(u.hasOwnProperty("name"))return u.name;const f=(""+u).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${v}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${v}" class.`),f}return null}(u);return null!==v?()=>v.factory(u):()=>new u}(u);throw new ie(204,!1)}function sh(u,f,v){let y;if(Fs(u)){const M=O(u);return En(M)||Ul(M)}if(ah(u))y=()=>O(u.useValue);else if(function AA(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Wo(u.deps||[]));else if(function _A(u){return!(!u||!u.useExisting)}(u))y=()=>Fn(O(u.useExisting));else{const M=O(u&&(u.useClass||u.provide));if(!function CA(u){return!!u.deps}(u))return En(M)||Ul(M);y=()=>new M(...Wo(u.deps))}return y}function Vs(u,f,v=!1){return{factory:u,value:f,multi:v?[]:void 0}}function ah(u){return null!==u&&"object"==typeof u&&Wm in u}function Fs(u){return"function"==typeof u}let Er=(()=>{class u{static create(v,y){var M;if(Array.isArray(v))return nh({name:""},y,v,"");{const S=null!==(M=v.name)&&void 0!==M?M:"";return nh({name:S},v.parent,v.providers,S)}}}return u.THROW_IF_NOT_FOUND=ma,u.NULL=new th,u.\u0275prov=Se({token:u,providedIn:"any",factory:()=>Fn(kl)}),u.__NG_ELEMENT_ID__=-1,u})();function RA(u,f){bs(il(u)[1],gi())}function Gl(u){let f=function Ah(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),v=!0;const y=[u];for(;f;){let M;if(Oi(u))M=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ie(903,"");M=f.\u0275dir}if(M){if(v){y.push(M);const H=u;H.inputs=zl(u.inputs),H.declaredInputs=zl(u.declaredInputs),H.outputs=zl(u.outputs);const se=M.hostBindings;se&&HA(u,se);const ye=M.viewQuery,et=M.contentQueries;if(ye&&PA(u,ye),et&&OA(u,et),E(u.inputs,M.inputs),E(u.declaredInputs,M.declaredInputs),E(u.outputs,M.outputs),Oi(M)&&M.data.animation){const dt=u.data;dt.animation=(dt.animation||[]).concat(M.data.animation)}}const S=M.features;if(S)for(let H=0;H=0;y--){const M=u[y];M.hostVars=f+=M.hostVars,M.hostAttrs=Ts(M.hostAttrs,v=Ts(v,M.hostAttrs))}}(y)}function zl(u){return u===Ht?{}:u===lt?[]:u}function PA(u,f){const v=u.viewQuery;u.viewQuery=v?(y,M)=>{f(y,M),v(y,M)}:f}function OA(u,f){const v=u.contentQueries;u.contentQueries=v?(y,M,S)=>{f(y,M,S),v(y,M,S)}:f}function HA(u,f){const v=u.hostBindings;u.hostBindings=v?(y,M)=>{f(y,M),v(y,M)}:f}let ho=null;function Us(){if(!ho){const u=x.Symbol;if(u&&u.iterator)ho=u.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let v=0;vse(ue(Qi[y.index])):y.index;if(Ct(v)){let Qi=null;if(!se&&ye&&(Qi=function db(u,f,v,y){const M=u.cleanup;if(null!=M)for(let S=0;Sye?se[ye]:null}"string"==typeof H&&(S+=2)}return null}(u,f,M,y.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=S,Qi.__ngLastListenerFn__=S,zt=!1;else{S=lc(y,f,wt,S,!1);const un=v.listen(Ci,M,S);kt.push(S,un),dt&&dt.push(M,Mi,ei,ei+1)}}else S=lc(y,f,wt,S,!0),Ci.addEventListener(M,S,H),kt.push(S),dt&&dt.push(M,Mi,ei,H)}else S=lc(y,f,wt,S,!1);const Kt=y.outputs;let li;if(zt&&null!==Kt&&(li=Kt[M])){const fi=li.length;if(fi)for(let Ci=0;Ci0;)f=f[15],u--;return f}(u,Zt.lFrame.contextLView))[8]}(u)}function ub(u,f){let v=null;const y=function b_(u){const f=u.attrs;if(null!=f){const v=f.indexOf(5);if(0==(1&v))return f[v+1]}return null}(u);for(let M=0;M=0}const Bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rp(u){return u.substring(Bn.key,Bn.keyEnd)}function sp(u,f){const v=Bn.textEnd;return v===f?-1:(f=Bn.keyEnd=function Ab(u,f,v){for(;f32;)f++;return f}(u,Bn.key=f,v),Ks(u,f,v))}function Ks(u,f,v){for(;f=0;v=sp(f,v))mr(u,rp(f),!0)}function Pr(u,f,v,y){const M=Xt(),S=si(),H=fr(2);S.firstUpdatePass&&hp(S,u,H,y),f!==Ni&&Jn(M,H,f)&&fp(S,S.data[Zi()],M,M[11],u,M[H+1]=function Sb(u,f){return null==u||("string"==typeof f?u+=f:"object"==typeof u&&(u=C(Yr(u)))),u}(f,v),y,H)}function Or(u,f,v,y){const M=si(),S=fr(2);M.firstUpdatePass&&hp(M,null,S,y);const H=Xt();if(v!==Ni&&Jn(H,S,v)){const se=M.data[Zi()];if(gp(se,y)&&!up(M,S)){let ye=y?se.classesWithoutHost:se.stylesWithoutHost;null!==ye&&(v=R(ye,v||"")),ec(M,se,H,v,y)}else!function Mb(u,f,v,y,M,S,H,se){M===Ni&&(M=lt);let ye=0,et=0,dt=0=u.expandoStartIndex}function hp(u,f,v,y){const M=u.data;if(null===M[v+1]){const S=M[Zi()],H=up(u,v);gp(S,y)&&null===f&&!H&&(f=!1),f=function Tb(u,f,v,y){const M=me(u);let S=y?f.residualClasses:f.residualStyles;if(null===M)0===(y?f.classBindings:f.styleBindings)&&(v=Oa(v=pc(null,u,f,v,y),f.attrs,y),S=null);else{const H=f.directiveStylingLast;if(-1===H||u[H]!==M)if(v=pc(M,u,f,v,y),null===S){let ye=function Eb(u,f,v){const y=v?f.classBindings:f.styleBindings;if(0!==qr(y))return u[Rr(y)]}(u,f,y);void 0!==ye&&Array.isArray(ye)&&(ye=pc(null,u,f,ye[1],y),ye=Oa(ye,f.attrs,y),function yb(u,f,v,y){u[Rr(v?f.classBindings:f.styleBindings)]=y}(u,f,y,ye))}else S=function wb(u,f,v){let y;const M=f.directiveEnd;for(let S=1+f.directiveStylingLast;S0)&&(et=!0)}else dt=v;if(M)if(0!==ye){const kt=Rr(u[se+1]);u[y+1]=so(kt,se),0!==kt&&(u[kt+1]=Al(u[kt+1],y)),u[se+1]=function x_(u,f){return 131071&u|f<<17}(u[se+1],y)}else u[y+1]=so(se,0),0!==se&&(u[se+1]=Al(u[se+1],y)),se=y;else u[y+1]=so(ye,0),0===se?se=y:u[ye+1]=Al(u[ye+1],y),ye=y;et&&(u[y+1]=_l(u[y+1])),np(u,dt,y,!0),np(u,dt,y,!1),function pb(u,f,v,y,M){const S=M?u.residualClasses:u.residualStyles;null!=S&&"string"==typeof f&&Ds(S,f)>=0&&(v[y+1]=bl(v[y+1]))}(f,dt,u,y,S),H=so(se,ye),S?f.classBindings=H:f.styleBindings=H}(M,S,f,v,H,y)}}function pc(u,f,v,y,M){let S=null;const H=v.directiveEnd;let se=v.directiveStylingLast;for(-1===se?se=v.directiveStart:se++;se0;){const ye=u[M],et=Array.isArray(ye),dt=et?ye[1]:ye,wt=null===dt;let kt=v[M+1];kt===Ni&&(kt=wt?lt:void 0);let zt=wt?Zo(kt,y):dt===y?kt:void 0;if(et&&!go(zt)&&(zt=Zo(ye,y)),go(zt)&&(se=zt,H))return se;const Kt=u[M+1];M=H?Rr(Kt):qr(Kt)}if(null!==f){let ye=S?f.residualClasses:f.residualStyles;null!=ye&&(se=Zo(ye,y))}return se}function go(u){return void 0!==u}function gp(u,f){return 0!=(u.flags&(f?16:32))}function _p(u,f=""){const v=Xt(),y=si(),M=u+20,S=y.firstCreatePass?Bs(y,M,1,f,null):y.data[M],H=v[M]=function cl(u,f){return Ct(u)?u.createText(f):u.createTextNode(f)}(v[11],f);no(y,v,H,S),vn(S,!1)}function fc(u){return _o("",u,""),fc}function _o(u,f,v){const y=Xt(),M=Zs(y,u,f,v);return M!==Ni&&Jr(y,Zi(),M),_o}function mc(u,f,v,y,M){const S=Xt(),H=Gs(S,u,f,v,y,M);return H!==Ni&&Jr(S,Zi(),H),mc}function gc(u,f,v,y,M,S,H){const se=Xt(),ye=function zs(u,f,v,y,M,S,H,se){const et=po(u,Sn(),v,M,H);return fr(3),et?f+q(v)+y+q(M)+S+q(H)+se:Ni}(se,u,f,v,y,M,S,H);return ye!==Ni&&Jr(se,Zi(),ye),gc}function _c(u,f,v,y,M,S,H,se,ye){const et=Xt(),dt=function Ws(u,f,v,y,M,S,H,se,ye,et){const wt=yr(u,Sn(),v,M,H,ye);return fr(4),wt?f+q(v)+y+q(M)+S+q(H)+se+q(ye)+et:Ni}(et,u,f,v,y,M,S,H,se,ye);return dt!==Ni&&Jr(et,Zi(),dt),_c}function Ac(u,f,v,y,M,S,H,se,ye,et,dt){const wt=Xt(),kt=function Ys(u,f,v,y,M,S,H,se,ye,et,dt,wt){const kt=Sn();let zt=yr(u,kt,v,M,H,ye);return zt=Jn(u,kt+4,dt)||zt,fr(5),zt?f+q(v)+y+q(M)+S+q(H)+se+q(ye)+et+q(dt)+wt:Ni}(wt,u,f,v,y,M,S,H,se,ye,et,dt);return kt!==Ni&&Jr(wt,Zi(),kt),Ac}function Tp(u,f,v){Or(mr,Gr,Zs(Xt(),u,f,v),!0)}function bc(u,f,v){const y=Xt();return Jn(y,er(),f)&&gr(si(),Pi(),y,u,f,y[11],v,!0),bc}function Cc(u,f,v){const y=Xt();if(Jn(y,er(),f)){const S=si(),H=Pi();gr(S,H,y,u,f,Ku(me(S.data),H,y),v,!0)}return Cc}const ps=void 0;var Yb=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Wb(u){const v=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===y?1:5}];let Xs={};function vc(u){const f=function qb(u){return u.toLowerCase().replace(/_/g,"-")}(u);let v=Op(f);if(v)return v;const y=f.split("-")[0];if(v=Op(y),v)return v;if("en"===y)return Yb;throw new Error(`Missing locale data for the locale "${u}".`)}function Pp(u){return vc(u)[Ii.PluralCase]}function Op(u){return u in Xs||(Xs[u]=x.ng&&x.ng.common&&x.ng.common.locales&&x.ng.common.locales[u]),Xs[u]}var Ii=(()=>((Ii=Ii||{})[Ii.LocaleId=0]="LocaleId",Ii[Ii.DayPeriodsFormat=1]="DayPeriodsFormat",Ii[Ii.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ii[Ii.DaysFormat=3]="DaysFormat",Ii[Ii.DaysStandalone=4]="DaysStandalone",Ii[Ii.MonthsFormat=5]="MonthsFormat",Ii[Ii.MonthsStandalone=6]="MonthsStandalone",Ii[Ii.Eras=7]="Eras",Ii[Ii.FirstDayOfWeek=8]="FirstDayOfWeek",Ii[Ii.WeekendRange=9]="WeekendRange",Ii[Ii.DateFormat=10]="DateFormat",Ii[Ii.TimeFormat=11]="TimeFormat",Ii[Ii.DateTimeFormat=12]="DateTimeFormat",Ii[Ii.NumberSymbols=13]="NumberSymbols",Ii[Ii.NumberFormats=14]="NumberFormats",Ii[Ii.CurrencyCode=15]="CurrencyCode",Ii[Ii.CurrencySymbol=16]="CurrencySymbol",Ii[Ii.CurrencyName=17]="CurrencyName",Ii[Ii.Currencies=18]="Currencies",Ii[Ii.Directionality=19]="Directionality",Ii[Ii.PluralCase=20]="PluralCase",Ii[Ii.ExtraData=21]="ExtraData",Ii))();const Ao="en-US";let Hp=Ao;function yc(u,f,v,y,M){if(u=O(u),Array.isArray(u))for(let S=0;S>20;if(Fs(u)||!u.multi){const zt=new rs(ye,M,Pa),Kt=xc(se,f,M?dt:dt+kt,wt);-1===Kt?(on(Ai(et,H),S,se),wc(S,u,f.length),f.push(se),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(zt),H.push(zt)):(v[Kt]=zt,H[Kt]=zt)}else{const zt=xc(se,f,dt+kt,wt),Kt=xc(se,f,dt,dt+kt),li=zt>=0&&v[zt],fi=Kt>=0&&v[Kt];if(M&&!fi||!M&&!li){on(Ai(et,H),S,se);const Ci=function WC(u,f,v,y,M){const S=new rs(u,v,Pa);return S.multi=[],S.index=f,S.componentProviders=0,sf(S,M,y&&!v),S}(M?zC:GC,v.length,M,y,ye);!M&&fi&&(v[Kt].providerFactory=Ci),wc(S,u,f.length,0),f.push(se),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(Ci),H.push(Ci)}else wc(S,u,zt>-1?zt:Kt,sf(v[M?Kt:zt],ye,!M&&y));!M&&y&&fi&&v[Kt].componentProviders++}}}function wc(u,f,v,y){const M=Fs(f),S=function bA(u){return!!u.useClass}(f);if(M||S){const ye=(S?O(f.useClass):f).prototype.ngOnDestroy;if(ye){const et=u.destroyHooks||(u.destroyHooks=[]);if(!M&&f.multi){const dt=et.indexOf(v);-1===dt?et.push(v,[y,ye]):et[dt+1].push(y,ye)}else et.push(v,ye)}}}function sf(u,f,v){return v&&u.componentProviders++,u.multi.push(f)-1}function xc(u,f,v,y){for(let M=v;M{v.providersResolver=(y,M)=>function ZC(u,f,v){const y=si();if(y.firstCreatePass){const M=Oi(u);yc(v,y.data,y.blueprint,M,!0),yc(f,y.data,y.blueprint,M,!1)}}(y,M?M(u):u,f)}}class of{}class JC{resolveComponentFactory(f){throw function qC(u){const f=Error(`No component factory found for ${C(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let ka=(()=>{class u{}return u.NULL=new JC,u})();function QC(){return ta(gi(),Xt())}function ta(u,f){return new Va(Wt(u,f))}let Va=(()=>{class u{constructor(v){this.nativeElement=v}}return u.__NG_ELEMENT_ID__=QC,u})();function $C(u){return u instanceof Va?u.nativeElement:u}class cf{}let KC=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function ev(){const u=Xt(),v=_i(gi().index,u);return function XC(u){return u[11]}(en(v)?v:u)}(),u})(),tv=(()=>{class u{}return u.\u0275prov=Se({token:u,providedIn:"root",factory:()=>null}),u})();class df{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const iv=new df("13.2.2"),Sc={};function Eo(u,f,v,y,M=!1){for(;null!==v;){const S=f[v.index];if(null!==S&&y.push(ue(S)),an(S))for(let se=10;se-1&&(ul(f,y),Ja(v,y))}this._attachedToViewContainer=!1}ru(this._lView[1],this._lView)}onDestroy(f){Fu(this._lView[1],this._lView,null,f)}markForCheck(){Hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function lA(u,f,v){bn(!0);try{Bl(u,f,v)}finally{bn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ie(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r_(u,f){xa(u,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ie(902,"");this._appRef=f}}class nv extends Fa{constructor(f){super(f),this._view=f}detectChanges(){Ju(this._view)}checkNoChanges(){!function cA(u){bn(!0);try{Ju(u)}finally{bn(!1)}}(this._view)}get context(){return null}}class uf extends ka{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const v=Bt(f);return new Dc(v,this.ngModule)}}function hf(u){const f=[];for(let v in u)u.hasOwnProperty(v)&&f.push({propName:u[v],templateName:v});return f}const sv=new Dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qd});class Dc extends of{constructor(f,v){super(),this.componentDef=f,this.ngModule=v,this.componentType=f.type,this.selector=function y_(u){return u.map(E_).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!v}get inputs(){return hf(this.componentDef.inputs)}get outputs(){return hf(this.componentDef.outputs)}create(f,v,y,M){const S=(M=M||this.ngModule)?function av(u,f){return{get:(v,y,M)=>{const S=u.get(v,Sc,M);return S!==Sc||y===Sc?S:f.get(v,y,M)}}}(f,M.injector):f,H=S.get(cf,X),se=S.get(tv,null),ye=H.createRenderer(null,this.componentDef),et=this.componentDef.selectors[0][0]||"div",dt=y?function Vu(u,f,v){if(Ct(u))return u.selectRootElement(f,v===t.ShadowDom);let y="string"==typeof f?u.querySelector(f):f;return y.textContent="",y}(ye,y,this.componentDef.encapsulation):dl(H.createRenderer(null,this.componentDef),et,function rv(u){const f=u.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(et)),wt=this.componentDef.onPush?576:528,kt=function _h(u,f){return{components:[],scheduler:u||qd,clean:dA,playerHandler:f||null,flags:0}}(),zt=lo(0,null,null,1,0,null,null,null,null,null),Kt=Ma(null,zt,kt,wt,null,null,H,ye,se,S);let li,fi;qt(Kt);try{const Ci=function mh(u,f,v,y,M,S){const H=v[1];v[20]=u;const ye=Bs(H,20,2,"#host",null),et=ye.mergedAttrs=f.hostAttrs;null!==et&&(uo(ye,et,!0),null!==u&&(Cs(M,u,et),null!==ye.classes&&gl(M,u,ye.classes),null!==ye.styles&&gu(M,u,ye.styles)));const dt=y.createRenderer(u,f),wt=Ma(v,Nu(f),null,f.onPush?64:16,v[20],ye,y,dt,S||null,null);return H.firstCreatePass&&(on(Ai(ye,v),H,f.type),zu(H,ye),Wu(ye,v.length,1)),co(v,wt),v[20]=wt}(dt,this.componentDef,Kt,H,ye);if(dt)if(y)Cs(ye,dt,["ng-version",iv.full]);else{const{attrs:ei,classes:Mi}=function w_(u){const f=[],v=[];let y=1,M=2;for(;y0&&gl(ye,dt,Mi.join(" "))}if(fi=di(zt,20),void 0!==v){const ei=fi.projection=[];for(let Mi=0;Miye(H,f)),f.contentQueries){const ye=gi();f.contentQueries(1,H,ye.directiveStart)}const se=gi();return!S.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(Bi(se.index),Zu(v[1],se,0,se.directiveStart,se.directiveEnd,f),Gu(f,H)),H}(Ci,this.componentDef,Kt,kt,[RA]),Sa(zt,Kt,null)}finally{Gi()}return new lv(this.componentType,li,ta(fi,Kt),Kt,fi)}}class lv extends class YC{}{constructor(f,v,y,M,S){super(),this.location=y,this._rootLView=M,this._tNode=S,this.instance=v,this.hostView=this.changeDetectorRef=new nv(M),this.componentType=f}get injector(){return new ys(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class ia{}class pf{}const na=new Map;class gf extends ia{constructor(f,v){super(),this._parent=v,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uf(this);const y=mi(f);this._bootstrapComponents=Vr(y.bootstrap),this._r3Injector=rh(f,v,[{provide:ia,useValue:this},{provide:ka,useValue:this.componentFactoryResolver}],C(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,v=Er.THROW_IF_NOT_FOUND,y=oe.Default){return f===Er||f===ia||f===kl?this:this._r3Injector.get(f,v,y)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(v=>v()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Rc extends pf{constructor(f){super(),this.moduleType=f,null!==mi(f)&&function dv(u){const f=new Set;!function v(y){const M=mi(y,!0),S=M.id;null!==S&&(function ff(u,f,v){if(f&&f!==v)throw new Error(`Duplicate module registered for ${u} - ${C(f)} vs ${C(f.name)}`)}(S,na.get(S),y),na.set(S,y));const H=Vr(M.imports);for(const se of H)f.has(se)||(f.add(se),v(se))}(u)}(f)}create(f){return new gf(this.moduleType,f)}}function _f(u,f,v){const y=mn()+u,M=Xt();return M[y]===Ni?jr(M,y,v?f.call(v):f()):function Ia(u,f){return u[f]}(M,y)}function Af(u,f,v,y){return vf(Xt(),mn(),u,f,v,y)}function bf(u,f,v,y,M){return Tf(Xt(),mn(),u,f,v,y,M)}function Cf(u,f,v,y,M,S){return Ef(Xt(),mn(),u,f,v,y,M,S)}function Ua(u,f){const v=u[f];return v===Ni?void 0:v}function vf(u,f,v,y,M,S){const H=f+v;return Jn(u,H,M)?jr(u,H+1,S?y.call(S,M):y(M)):Ua(u,H+1)}function Tf(u,f,v,y,M,S,H){const se=f+v;return hs(u,se,M,S)?jr(u,se+2,H?y.call(H,M,S):y(M,S)):Ua(u,se+2)}function Ef(u,f,v,y,M,S,H,se){const ye=f+v;return po(u,ye,M,S,H)?jr(u,ye+3,se?y.call(se,M,S,H):y(M,S,H)):Ua(u,ye+3)}function xf(u,f){const v=si();let y;const M=u+20;v.firstCreatePass?(y=function _v(u,f){if(f)for(let v=f.length-1;v>=0;v--){const y=f[v];if(u===y.name)return y}}(f,v.pipeRegistry),v.data[M]=y,y.onDestroy&&(v.destroyHooks||(v.destroyHooks=[])).push(M,y.onDestroy)):y=v.data[M];const S=y.factory||(y.factory=En(y.type)),H=V(Pa);try{const se=Ze(!1),ye=S();return Ze(se),function jA(u,f,v,y){v>=u.data.length&&(u.data[v]=null,u.blueprint[v]=null),f[v]=y}(v,Xt(),M,ye),ye}finally{V(H)}}function Mf(u,f,v){const y=u+20,M=Xt(),S=ui(M,y);return ja(M,y)?vf(M,mn(),f,S.transform,v,S):S.transform(v)}function Sf(u,f,v,y){const M=u+20,S=Xt(),H=ui(S,M);return ja(S,M)?Tf(S,mn(),f,H.transform,v,y,H):H.transform(v,y)}function Df(u,f,v,y,M){const S=u+20,H=Xt(),se=ui(H,S);return ja(H,S)?Ef(H,mn(),f,se.transform,v,y,M,se):se.transform(v,y,M)}function ja(u,f){return u[1].data[f].pure}function Ic(u){return f=>{setTimeout(u,void 0,f)}}const zr=class Cv extends e.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,v,y){var M,S,H;let se=f,ye=v||(()=>null),et=y;if(f&&"object"==typeof f){const wt=f;se=null===(M=wt.next)||void 0===M?void 0:M.bind(wt),ye=null===(S=wt.error)||void 0===S?void 0:S.bind(wt),et=null===(H=wt.complete)||void 0===H?void 0:H.bind(wt)}this.__isAsync&&(ye=Ic(ye),se&&(se=Ic(se)),et&&(et=Ic(et)));const dt=super.subscribe({next:se,error:ye,complete:et});return f instanceof b.w&&f.add(dt),dt}};function vv(){return this._results[Us()]()}class yo{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const v=Us(),y=yo.prototype;y[v]||(y[v]=vv)}get changes(){return this._changes||(this._changes=new zr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,v){return this._results.reduce(f,v)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,v){const y=this;y.dirty=!1;const M=Tr(f);(this._changesDetected=!function Lm(u,f,v){if(u.length!==f.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=yv,u})();const Tv=Za,Ev=class extends Tv{constructor(f,v,y){super(),this._declarationLView=f,this._declarationTContainer=v,this.elementRef=y}createEmbeddedView(f){const v=this._declarationTContainer.tViews,y=Ma(this._declarationLView,v,f,16,null,v.declTNode,null,null,null,null);y[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(y[19]=S.createEmbeddedView(v)),Sa(v,y,f),new Fa(y)}};function yv(){return wo(gi(),Xt())}function wo(u,f){return 4&u.type?new Ev(f,u,ta(u,f)):null}let xo=(()=>{class u{}return u.__NG_ELEMENT_ID__=wv,u})();function wv(){return Pf(gi(),Xt())}const xv=xo,Rf=class extends xv{constructor(f,v,y){super(),this._lContainer=f,this._hostTNode=v,this._hostLView=y}get element(){return ta(this._hostTNode,this._hostLView)}get injector(){return new ys(this._hostTNode,this._hostLView)}get parentInjector(){const f=nn(this._hostTNode,this._hostLView);if(qa(f)){const v=ae(f,this._hostLView),y=as(f);return new ys(v[1].data[y+8],v)}return new ys(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const v=If(this._lContainer);return null!==v&&v[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,v,y){const M=f.createEmbeddedView(v||{});return this.insert(M,y),M}createComponent(f,v,y,M,S){const H=f&&!function pa(u){return"function"==typeof u}(f);let se;if(H)se=v;else{const wt=v||{};se=wt.index,y=wt.injector,M=wt.projectableNodes,S=wt.ngModuleRef}const ye=H?f:new Dc(Bt(f)),et=y||this.parentInjector;if(!S&&null==ye.ngModule&&et){const wt=et.get(ia,null);wt&&(S=wt)}const dt=ye.create(et,M,void 0,S);return this.insert(dt.hostView,se),dt}insert(f,v){const y=f._lView,M=y[1];if(function ke(u){return an(u[3])}(y)){const dt=this.indexOf(f);if(-1!==dt)this.detach(dt);else{const wt=y[3],kt=new Rf(wt,wt[6],wt[3]);kt.detach(kt.indexOf(f))}}const S=this._adjustIndex(v),H=this._lContainer;!function a_(u,f,v,y){const M=10+y,S=v.length;y>0&&(v[M-1][4]=f),y0)y.push(H[se/2]);else{const et=S[se+1],dt=f[-ye];for(let wt=10;wt{class u{constructor(v){this.appInits=v,this.resolve=Do,this.reject=Do,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,M)=>{this.resolve=y,this.reject=M})}runInitializers(){if(this.initialized)return;const v=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let M=0;M{S.subscribe({complete:se,error:ye})});v.push(H)}}Promise.all(v).then(()=>{y()}).catch(M=>{this.reject(M)}),0===v.length&&y(),this.initialized=!0}}return u.\u0275fac=function(v){return new(v||u)(Fn(Zc,8))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const sm=new Dn("AppId"),Kv={provide:sm,useFactory:function $v(){return`${Gc()}${Gc()}${Gc()}`},deps:[]};function Gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const am=new Dn("Platform Initializer"),om=new Dn("Platform ID"),lm=new Dn("appBootstrapListener");let cm=(()=>{class u{log(v){console.log(v)}warn(v){console.warn(v)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const Ro=new Dn("LocaleId"),dm=new Dn("DefaultCurrencyCode");class Xv{constructor(f,v){this.ngModuleFactory=f,this.componentFactories=v}}let zc=(()=>{class u{compileModuleSync(v){return new Rc(v)}compileModuleAsync(v){return Promise.resolve(this.compileModuleSync(v))}compileModuleAndAllComponentsSync(v){const y=this.compileModuleSync(v),S=Vr(mi(v).declarations).reduce((H,se)=>{const ye=Bt(se);return ye&&H.push(new Dc(ye)),H},[]);return new Xv(y,S)}compileModuleAndAllComponentsAsync(v){return Promise.resolve(this.compileModuleAndAllComponentsSync(v))}clearCache(){}clearCacheFor(v){}getModuleId(v){}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const tT=(()=>Promise.resolve(0))();function Wc(u){"undefined"==typeof Zone?tT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class _r{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:v=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const M=this;M._nesting=0,M._outer=M._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(M._inner=M._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(M._inner=M._inner.fork(Zone.longStackTraceZoneSpec)),M.shouldCoalesceEventChangeDetection=!y&&v,M.shouldCoalesceRunChangeDetection=y,M.lastRequestAnimationFrameId=-1,M.nativeRequestAnimationFrame=function iT(){let u=x.requestAnimationFrame,f=x.cancelAnimationFrame;if("undefined"!=typeof Zone&&u&&f){const v=u[Zone.__symbol__("OriginalDelegate")];v&&(u=v);const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function sT(u){const f=()=>{!function rT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(x,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,qc(u),u.isCheckStableRunning=!0,Yc(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),qc(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(v,y,M,S,H,se)=>{try{return um(u),v.invokeTask(M,S,H,se)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||u.shouldCoalesceRunChangeDetection)&&f(),hm(u)}},onInvoke:(v,y,M,S,H,se,ye)=>{try{return um(u),v.invoke(M,S,H,se,ye)}finally{u.shouldCoalesceRunChangeDetection&&f(),hm(u)}},onHasTask:(v,y,M,S)=>{v.hasTask(M,S),y===M&&("microTask"==S.change?(u._hasPendingMicrotasks=S.microTask,qc(u),Yc(u)):"macroTask"==S.change&&(u.hasPendingMacrotasks=S.macroTask))},onHandleError:(v,y,M,S)=>(v.handleError(M,S),u.runOutsideAngular(()=>u.onError.emit(S)),!1)})}(M)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_r.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,v,y){return this._inner.run(f,v,y)}runTask(f,v,y,M){const S=this._inner,H=S.scheduleEventTask("NgZoneEvent: "+M,f,nT,Do,Do);try{return S.runTask(H,v,y)}finally{S.cancelTask(H)}}runGuarded(f,v,y){return this._inner.runGuarded(f,v,y)}runOutsideAngular(f){return this._outer.run(f)}}const nT={};function Yc(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function qc(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function um(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function hm(u){u._nesting--,Yc(u)}class aT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(f,v,y){return f.apply(v,y)}runGuarded(f,v,y){return f.apply(v,y)}runOutsideAngular(f){return f()}runTask(f,v,y,M){return f.apply(v,y)}}let pm=(()=>{class u{constructor(v){this._ngZone=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),v.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{_r.assertNotInAngularZone(),Wc(()=>{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())Wc(()=>{for(;0!==this._callbacks.length;){let v=this._callbacks.pop();clearTimeout(v.timeoutId),v.doneCb(this._didWork)}this._didWork=!1});else{let v=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(v)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(v=>({source:v.source,creationLocation:v.creationLocation,data:v.data})):[]}addCallback(v,y,M){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(H=>H.timeoutId!==S),v(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:v,timeoutId:S,updateCb:M})}whenStable(v,y,M){if(M&&!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(v,y,M),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(v,y,M){return[]}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})(),fm=(()=>{class u{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(v,y){this._applications.set(v,y)}unregisterApplication(v){this._applications.delete(v)}unregisterAllApplications(){this._applications.clear()}getTestability(v){return this._applications.get(v)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(v,y=!0){return Jc.findTestabilityInTree(this,v,y)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();class oT{addToWindow(f){}findTestabilityInTree(f,v,y){return null}}function lT(u){Jc=u}let Hr,Jc=new oT;const mm=new Dn("AllowMultipleToken");class uT{constructor(f,v){this.name=f,this.token=v}}function gm(u,f,v=[]){const y=`Platform: ${f}`,M=new Dn(y);return(S=[])=>{let H=_m();if(!H||H.injector.get(mm,!1))if(u)u(v.concat(S).concat({provide:M,useValue:!0}));else{const se=v.concat(S).concat({provide:M,useValue:!0},{provide:Vl,useValue:"platform"});!function hT(u){if(Hr&&!Hr.destroyed&&!Hr.injector.get(mm,!1))throw new ie(400,"");Hr=u.get(Am);const f=u.get(am,null);f&&f.forEach(v=>v())}(Er.create({providers:se,name:y}))}return function pT(u){const f=_m();if(!f)throw new ie(401,"");return f}()}}function _m(){return Hr&&!Hr.destroyed?Hr:null}let Am=(()=>{class u{constructor(v){this._injector=v,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(v,y){const se=function fT(u,f){let v;return v="noop"===u?new aT:("zone.js"===u?void 0:u)||new _r({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),v}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),ye=[{provide:_r,useValue:se}];return se.run(()=>{const et=Er.create({providers:ye,parent:this.injector,name:v.moduleType.name}),dt=v.create(et),wt=dt.injector.get(ya,null);if(!wt)throw new ie(402,"");return se.runOutsideAngular(()=>{const kt=se.onError.subscribe({next:zt=>{wt.handleError(zt)}});dt.onDestroy(()=>{Qc(this._modules,dt),kt.unsubscribe()})}),function mT(u,f,v){try{const y=v();return sc(y)?y.catch(M=>{throw f.runOutsideAngular(()=>u.handleError(M)),M}):y}catch(y){throw f.runOutsideAngular(()=>u.handleError(y)),y}}(wt,se,()=>{const kt=dt.injector.get(sa);return kt.runInitializers(),kt.donePromise.then(()=>(function Kb(u){D(u,"Expected localeId to be defined"),"string"==typeof u&&(Hp=u.toLowerCase().replace(/_/g,"-"))}(dt.injector.get(Ro,Ao)||Ao),this._moduleDoBootstrap(dt),dt))})})}bootstrapModule(v,y=[]){const M=bm({},y);return function cT(u,f,v){const y=new Rc(v);return Promise.resolve(y)}(0,0,v).then(S=>this.bootstrapModuleFactory(S,M))}_moduleDoBootstrap(v){const y=v.injector.get(za);if(v._bootstrapComponents.length>0)v._bootstrapComponents.forEach(M=>y.bootstrap(M));else{if(!v.instance.ngDoBootstrap)throw new ie(403,"");v.instance.ngDoBootstrap(y)}this._modules.push(v)}onDestroy(v){this._destroyListeners.push(v)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ie(404,"");this._modules.slice().forEach(v=>v.destroy()),this._destroyListeners.forEach(v=>v()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(v){return new(v||u)(Fn(Er))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function bm(u,f){return Array.isArray(f)?f.reduce(bm,u):Object.assign(Object.assign({},u),f)}let za=(()=>{class u{constructor(v,y,M,S,H){this._zone=v,this._injector=y,this._exceptionHandler=M,this._componentFactoryResolver=S,this._initStatus=H,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const se=new _.y(et=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{et.next(this._stable),et.complete()})}),ye=new _.y(et=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{_r.assertNotInAngularZone(),Wc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,et.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{_r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{et.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,w.T)(se,ye.pipe((0,g.B)()))}bootstrap(v,y){if(!this._initStatus.done)throw new ie(405,"");let M;M=v instanceof of?v:this._componentFactoryResolver.resolveComponentFactory(v),this.componentTypes.push(M.componentType);const S=function dT(u){return u.isBoundToModule}(M)?void 0:this._injector.get(ia),se=M.create(Er.NULL,[],y||M.selector,S),ye=se.location.nativeElement,et=se.injector.get(pm,null),dt=et&&se.injector.get(fm);return et&&dt&&dt.registerApplication(ye,et),se.onDestroy(()=>{this.detachView(se.hostView),Qc(this.components,se),dt&&dt.unregisterApplication(ye)}),this._loadComponent(se),se}tick(){if(this._runningTick)throw new ie(101,"");try{this._runningTick=!0;for(let v of this._views)v.detectChanges()}catch(v){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(v))}finally{this._runningTick=!1}}attachView(v){const y=v;this._views.push(y),y.attachToAppRef(this)}detachView(v){const y=v;Qc(this._views,y),y.detachFromAppRef()}_loadComponent(v){this.attachView(v.hostView),this.tick(),this.components.push(v),this._injector.get(lm,[]).concat(this._bootstrapListeners).forEach(M=>M(v))}ngOnDestroy(){this._views.slice().forEach(v=>v.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r),Fn(Er),Fn(ya),Fn(ka),Fn(sa))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function Qc(u,f){const v=u.indexOf(f);v>-1&&u.splice(v,1)}let vm=!0;function _T(){vm=!1}let AT=(()=>{class u{}return u.__NG_ELEMENT_ID__=bT,u})();function bT(u){return function CT(u,f,v){if(wn(u)&&!v){const y=_i(u.index,f);return new Fa(y,y)}return 47&u.type?new Fa(f[16],f):null}(gi(),Xt(),16==(16&u))}class xm{constructor(){}supports(f){return Ra(f)}create(f){return new xT(f)}}const wT=(u,f)=>f;class xT{constructor(f){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=f||wT}forEachItem(f){let v;for(v=this._itHead;null!==v;v=v._next)f(v)}forEachOperation(f){let v=this._itHead,y=this._removalsHead,M=0,S=null;for(;v||y;){const H=!y||v&&v.currentIndex{H=this._trackByFn(M,se),null!==v&&Object.is(v.trackById,H)?(y&&(v=this._verifyReinsertion(v,se,H,M)),Object.is(v.item,se)||this._addIdentityChange(v,se)):(v=this._mismatch(v,se,H,M),y=!0),v=v._next,M++}),this.length=M;return this._truncate(v),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,v,y,M){let S;return null===f?S=this._itTail:(S=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._reinsertAfter(f,S,M)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(y,M))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._moveAfter(f,S,M)):f=this._addAfter(new MT(v,y),S,M),f}_verifyReinsertion(f,v,y,M){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?f=this._reinsertAfter(S,f._prev,M):f.currentIndex!=M&&(f.currentIndex=M,this._addToMoves(f,M)),f}_truncate(f){for(;null!==f;){const v=f._next;this._addToRemovals(this._unlink(f)),f=v}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(f,v,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const M=f._prevRemoved,S=f._nextRemoved;return null===M?this._removalsHead=S:M._nextRemoved=S,null===S?this._removalsTail=M:S._prevRemoved=M,this._insertAfter(f,v,y),this._addToMoves(f,y),f}_moveAfter(f,v,y){return this._unlink(f),this._insertAfter(f,v,y),this._addToMoves(f,y),f}_addAfter(f,v,y){return this._insertAfter(f,v,y),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,v,y){const M=null===v?this._itHead:v._next;return f._next=M,f._prev=v,null===M?this._itTail=f:M._prev=f,null===v?this._itHead=f:v._next=f,null===this._linkedRecords&&(this._linkedRecords=new Mm),this._linkedRecords.put(f),f.currentIndex=y,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const v=f._prev,y=f._next;return null===v?this._itHead=y:v._next=y,null===y?this._itTail=v:y._prev=v,f}_addToMoves(f,v){return f.previousIndex===v||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mm),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,v){return f.item=v,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class MT{constructor(f,v){this.item=f,this.trackById=v,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 ST{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,v){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===v||v<=y.currentIndex)&&Object.is(y.trackById,f))return y;return null}remove(f){const v=f._prevDup,y=f._nextDup;return null===v?this._head=y:v._nextDup=y,null===y?this._tail=v:y._prevDup=v,null===this._head}}class Mm{constructor(){this.map=new Map}put(f){const v=f.trackById;let y=this.map.get(v);y||(y=new ST,this.map.set(v,y)),y.add(f)}get(f,v){const M=this.map.get(f);return M?M.get(f,v):null}remove(f){const v=f.trackById;return this.map.get(v).remove(f)&&this.map.delete(v),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sm(u,f,v){const y=u.previousIndex;if(null===y)return y;let M=0;return v&&y{if(v&&v.key===M)this._maybeAddToChanges(v,y),this._appendAfter=v,v=v._next;else{const S=this._getOrCreateRecordForKey(M,y);v=this._insertBeforeOrAppend(v,S)}}),v){v._prev&&(v._prev._next=null),this._removalsHead=v;for(let y=v;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,v){if(f){const y=f._prev;return v._next=f,v._prev=y,f._prev=v,y&&(y._next=v),f===this._mapHead&&(this._mapHead=v),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=v,v._prev=this._appendAfter):this._mapHead=v,this._appendAfter=v,null}_getOrCreateRecordForKey(f,v){if(this._records.has(f)){const M=this._records.get(f);this._maybeAddToChanges(M,v);const S=M._prev,H=M._next;return S&&(S._next=H),H&&(H._prev=S),M._next=null,M._prev=null,M}const y=new RT(f);return this._records.set(f,y),y.currentValue=v,this._addToAdditions(y),y}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,v){Object.is(v,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=v,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,v){f instanceof Map?f.forEach(v):Object.keys(f).forEach(y=>v(f[y],y))}}class RT{constructor(f){this.key=f,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 Rm(){return new Oo([new xm])}let Oo=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(null!=y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Rm()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(M=>M.supports(v));if(null!=y)return y;throw new ie(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Rm}),u})();function Im(){return new Ho([new Dm])}let Ho=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Im()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(S=>S.supports(v));if(y)return y;throw new ie(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Im}),u})();const IT=[new Dm],OT=new Oo([new xm]),HT=new Ho(IT),LT=gm(null,"core",[{provide:om,useValue:"unknown"},{provide:Am,deps:[Er]},{provide:fm,deps:[]},{provide:cm,deps:[]}]),FT=[{provide:za,useClass:za,deps:[_r,Er,ya,ka,sa]},{provide:sv,deps:[_r],useFactory:function UT(u){let f=[];return u.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(v){f.push(v)}}},{provide:sa,useClass:sa,deps:[[new cs,Zc]]},{provide:zc,useClass:zc,deps:[]},Kv,{provide:Oo,useFactory:function BT(){return OT},deps:[]},{provide:Ho,useFactory:function NT(){return HT},deps:[]},{provide:Ro,useFactory:function kT(u){return u||function VT(){return"undefined"!=typeof $localize&&$localize.locale||Ao}()},deps:[[new Aa(Ro),new cs,new Rs]]},{provide:dm,useValue:"USD"}];let jT=(()=>{class u{constructor(v){}}return u.\u0275fac=function(v){return new(v||u)(Fn(za))},u.\u0275mod=xt({type:u}),u.\u0275inj=Je({providers:FT}),u})()},93075:(Qe,be,p)=>{"use strict";p.d(be,{Zs:()=>B,Fj:()=>W,qu:()=>Ti,NI:()=>Dt,oH:()=>qe,u:()=>Vn,sg:()=>jt,u5:()=>di,Cf:()=>q,JU:()=>C,a5:()=>re,JJ:()=>oe,JL:()=>_e,F:()=>$i,On:()=>an,YN:()=>Zn,wV:()=>xn,c5:()=>tt,UX:()=>ui,Q7:()=>ft,EJ:()=>rr,kI:()=>De,_Y:()=>dn,Kr:()=>ar});var e=p(5e3),b=p(69808),_=p(5254),w=p(30567),g=p(24850);let A=(()=>{class ke{constructor(xe,ut){this._renderer=xe,this._elementRef=ut,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty(xe,ut){this._renderer.setProperty(this._elementRef.nativeElement,xe,ut)}registerOnTouched(xe){this.onTouched=xe}registerOnChange(xe){this.onChange=xe}setDisabledState(xe){this.setProperty("disabled",xe)}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(e.Qsj),e.Y36(e.SBq))},ke.\u0275dir=e.lG2({type:ke}),ke})(),E=(()=>{class ke extends A{}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,features:[e.qOj]}),ke})();const C=new e.OlP("NgValueAccessor"),m={provide:C,useExisting:(0,e.Gpc)(()=>W),multi:!0},P=new e.OlP("CompositionEventMode");let W=(()=>{class ke extends A{constructor(xe,ut,Zt){super(xe,ut),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function O(){const ke=(0,b.q)()?(0,b.q)().getUserAgent():"";return/android (\d+)/.test(ke.toLowerCase())}())}writeValue(xe){this.setProperty("value",null==xe?"":xe)}_handleInput(xe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(xe)}_compositionStart(){this._composing=!0}_compositionEnd(xe){this._composing=!1,this._compositionMode&&this.onChange(xe)}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(P,8))},ke.\u0275dir=e.lG2({type:ke,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(xe,ut){1&xe&&e.NdJ("input",function(hi){return ut._handleInput(hi.target.value)})("blur",function(){return ut.onTouched()})("compositionstart",function(){return ut._compositionStart()})("compositionend",function(hi){return ut._compositionEnd(hi.target.value)})},features:[e._Bn([m]),e.qOj]}),ke})();function ie(ke){return null==ke||0===ke.length}function Ae(ke){return null!=ke&&"number"==typeof ke.length}const q=new e.OlP("NgValidators"),Me=new e.OlP("NgAsyncValidators"),he=/^(?=.{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 De{static min(Re){return function T(ke){return Re=>{if(ie(Re.value)||ie(ke))return null;const xe=parseFloat(Re.value);return!isNaN(xe)&&xe{if(ie(Re.value)||ie(ke))return null;const xe=parseFloat(Re.value);return!isNaN(xe)&&xe>ke?{max:{max:ke,actual:Re.value}}:null}}(Re)}static required(Re){return j(Re)}static requiredTrue(Re){return Y(Re)}static email(Re){return function ee(ke){return ie(ke.value)||he.test(ke.value)?null:{email:!0}}(Re)}static minLength(Re){return function de(ke){return Re=>ie(Re.value)||!Ae(Re.value)?null:Re.value.lengthAe(Re.value)&&Re.value.length>ke?{maxlength:{requiredLength:ke,actualLength:Re.value.length}}:null}(Re)}static pattern(Re){return Fe(Re)}static nullValidator(Re){return null}static compose(Re){return D(Re)}static composeAsync(Re){return Te(Re)}}function j(ke){return ie(ke.value)?{required:!0}:null}function Y(ke){return!0===ke.value?null:{required:!0}}function Fe(ke){if(!ke)return Ue;let Re,xe;return"string"==typeof ke?(xe="","^"!==ke.charAt(0)&&(xe+="^"),xe+=ke,"$"!==ke.charAt(ke.length-1)&&(xe+="$"),Re=new RegExp(xe)):(xe=ke.toString(),Re=ke),ut=>{if(ie(ut.value))return null;const Zt=ut.value;return Re.test(Zt)?null:{pattern:{requiredPattern:xe,actualValue:Zt}}}}function Ue(ke){return null}function Xe(ke){return null!=ke}function te(ke){const Re=(0,e.QGY)(ke)?(0,_.D)(ke):ke;return(0,e.CqO)(Re),Re}function Ve(ke){let Re={};return ke.forEach(xe=>{Re=null!=xe?Object.assign(Object.assign({},Re),xe):Re}),0===Object.keys(Re).length?null:Re}function ve(ke,Re){return Re.map(xe=>xe(ke))}function z(ke){return ke.map(Re=>function Oe(ke){return!ke.validate}(Re)?Re:xe=>Re.validate(xe))}function D(ke){if(!ke)return null;const Re=ke.filter(Xe);return 0==Re.length?null:function(xe){return Ve(ve(xe,Re))}}function ge(ke){return null!=ke?D(z(ke)):null}function Te(ke){if(!ke)return null;const Re=ke.filter(Xe);return 0==Re.length?null:function(xe){const ut=ve(xe,Re).map(te);return(0,w.D)(ut).pipe((0,g.U)(Ve))}}function Ie(ke){return null!=ke?Te(z(ke)):null}function fe(ke,Re){return null===ke?[Re]:Array.isArray(ke)?[...ke,Re]:[ke,Re]}function Se(ke){return ke._rawValidators}function Ke(ke){return ke._rawAsyncValidators}function Je(ke){return ke?Array.isArray(ke)?ke:[ke]:[]}function nt(ke,Re){return Array.isArray(ke)?ke.includes(Re):ke===Re}function je(ke,Re){const xe=Je(Re);return Je(ke).forEach(Zt=>{nt(xe,Zt)||xe.push(Zt)}),xe}function Q(ke,Re){return Je(Re).filter(xe=>!nt(ke,xe))}class Ce{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(Re){this._rawValidators=Re||[],this._composedValidatorFn=ge(this._rawValidators)}_setAsyncValidators(Re){this._rawAsyncValidators=Re||[],this._composedAsyncValidatorFn=Ie(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Re){this._onDestroyCallbacks.push(Re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Re=>Re()),this._onDestroyCallbacks=[]}reset(Re){this.control&&this.control.reset(Re)}hasError(Re,xe){return!!this.control&&this.control.hasError(Re,xe)}getError(Re,xe){return this.control?this.control.getError(Re,xe):null}}class re extends Ce{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class k extends Ce{get formDirective(){return null}get path(){return null}}class pe{constructor(Re){this._cd=Re}is(Re){var xe,ut,Zt;return"submitted"===Re?!!(null===(xe=this._cd)||void 0===xe?void 0:xe.submitted):!!(null===(Zt=null===(ut=this._cd)||void 0===ut?void 0:ut.control)||void 0===Zt?void 0:Zt[Re])}}let oe=(()=>{class ke extends pe{constructor(xe){super(xe)}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(re,2))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(xe,ut){2&xe&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))},features:[e.qOj]}),ke})(),_e=(()=>{class ke extends pe{constructor(xe){super(xe)}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(k,10))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(xe,ut){2&xe&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))("ng-submitted",ut.is("submitted"))},features:[e.qOj]}),ke})();function Ht(ke,Re){return[...Re.path,ke]}function lt(ke,Re){we(ke,Re),Re.valueAccessor.writeValue(ke.value),function U(ke,Re){Re.valueAccessor.registerOnChange(xe=>{ke._pendingValue=xe,ke._pendingChange=!0,ke._pendingDirty=!0,"change"===ke.updateOn&&ne(ke,Re)})}(ke,Re),function le(ke,Re){const xe=(ut,Zt)=>{Re.valueAccessor.writeValue(ut),Zt&&Re.viewToModelUpdate(ut)};ke.registerOnChange(xe),Re._registerOnDestroy(()=>{ke._unregisterOnChange(xe)})}(ke,Re),function L(ke,Re){Re.valueAccessor.registerOnTouched(()=>{ke._pendingTouched=!0,"blur"===ke.updateOn&&ke._pendingChange&&ne(ke,Re),"submit"!==ke.updateOn&&ke.markAsTouched()})}(ke,Re),function Lt(ke,Re){if(Re.valueAccessor.setDisabledState){const xe=ut=>{Re.valueAccessor.setDisabledState(ut)};ke.registerOnDisabledChange(xe),Re._registerOnDestroy(()=>{ke._unregisterOnDisabledChange(xe)})}}(ke,Re)}function Ut(ke,Re,xe=!0){const ut=()=>{};Re.valueAccessor&&(Re.valueAccessor.registerOnChange(ut),Re.valueAccessor.registerOnTouched(ut)),ze(ke,Re),ke&&(Re._invokeOnDestroyCallbacks(),ke._registerOnCollectionChange(()=>{}))}function mt(ke,Re){ke.forEach(xe=>{xe.registerOnValidatorChange&&xe.registerOnValidatorChange(Re)})}function we(ke,Re){const xe=Se(ke);null!==Re.validator?ke.setValidators(fe(xe,Re.validator)):"function"==typeof xe&&ke.setValidators([xe]);const ut=Ke(ke);null!==Re.asyncValidator?ke.setAsyncValidators(fe(ut,Re.asyncValidator)):"function"==typeof ut&&ke.setAsyncValidators([ut]);const Zt=()=>ke.updateValueAndValidity();mt(Re._rawValidators,Zt),mt(Re._rawAsyncValidators,Zt)}function ze(ke,Re){let xe=!1;if(null!==ke){if(null!==Re.validator){const Zt=Se(ke);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==Re.validator);hi.length!==Zt.length&&(xe=!0,ke.setValidators(hi))}}if(null!==Re.asyncValidator){const Zt=Ke(ke);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==Re.asyncValidator);hi.length!==Zt.length&&(xe=!0,ke.setAsyncValidators(hi))}}}const ut=()=>{};return mt(Re._rawValidators,ut),mt(Re._rawAsyncValidators,ut),xe}function ne(ke,Re){ke._pendingDirty&&ke.markAsDirty(),ke.setValue(ke._pendingValue,{emitModelToViewChange:!1}),Re.viewToModelUpdate(ke._pendingValue),ke._pendingChange=!1}function Le(ke,Re){we(ke,Re)}function Yt(ke,Re){if(!ke.hasOwnProperty("model"))return!1;const xe=ke.model;return!!xe.isFirstChange()||!Object.is(Re,xe.currentValue)}function Rt(ke,Re){ke._syncPendingControls(),Re.forEach(xe=>{const ut=xe.control;"submit"===ut.updateOn&&ut._pendingChange&&(xe.viewToModelUpdate(ut._pendingValue),ut._pendingChange=!1)})}function Et(ke,Re){if(!Re)return null;let xe,ut,Zt;return Array.isArray(Re),Re.forEach(hi=>{hi.constructor===W?xe=hi:function It(ke){return Object.getPrototypeOf(ke.constructor)===E}(hi)?ut=hi:Zt=hi}),Zt||ut||xe||null}function Bt(ke,Re){const xe=ke.indexOf(Re);xe>-1&&ke.splice(xe,1)}const mi="VALID",bi="INVALID",yi="PENDING",Wi="DISABLED";function cn(ke){return(st(ke)?ke.validators:ke)||null}function Ki(ke){return Array.isArray(ke)?ge(ke):ke||null}function Tn(ke,Re){return(st(Re)?Re.asyncValidators:ke)||null}function rn(ke){return Array.isArray(ke)?Ie(ke):ke||null}function st(ke){return null!=ke&&!Array.isArray(ke)&&"object"==typeof ke}const St=ke=>ke instanceof Dt,ot=ke=>ke instanceof ri,$e=ke=>ke instanceof ti;function vt(ke){return St(ke)?ke.value:ke.getRawValue()}function F(ke,Re){const xe=ot(ke),ut=ke.controls;if(!(xe?Object.keys(ut):ut).length)throw new e.vHH(1e3,"");if(!ut[Re])throw new e.vHH(1001,"")}function Ye(ke,Re){ot(ke),ke._forEachChild((ut,Zt)=>{if(void 0===Re[Zt])throw new e.vHH(1002,"")})}class gt{constructor(Re,xe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Re,this._rawAsyncValidators=xe,this._composedValidatorFn=Ki(this._rawValidators),this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Re){this._rawValidators=this._composedValidatorFn=Re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Re){this._rawAsyncValidators=this._composedAsyncValidatorFn=Re}get parent(){return this._parent}get valid(){return this.status===mi}get invalid(){return this.status===bi}get pending(){return this.status==yi}get disabled(){return this.status===Wi}get enabled(){return this.status!==Wi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Re){this._rawValidators=Re,this._composedValidatorFn=Ki(Re)}setAsyncValidators(Re){this._rawAsyncValidators=Re,this._composedAsyncValidatorFn=rn(Re)}addValidators(Re){this.setValidators(je(Re,this._rawValidators))}addAsyncValidators(Re){this.setAsyncValidators(je(Re,this._rawAsyncValidators))}removeValidators(Re){this.setValidators(Q(Re,this._rawValidators))}removeAsyncValidators(Re){this.setAsyncValidators(Q(Re,this._rawAsyncValidators))}hasValidator(Re){return nt(this._rawValidators,Re)}hasAsyncValidator(Re){return nt(this._rawAsyncValidators,Re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Re={}){this.touched=!0,this._parent&&!Re.onlySelf&&this._parent.markAsTouched(Re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Re=>Re.markAllAsTouched())}markAsUntouched(Re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(xe=>{xe.markAsUntouched({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}markAsDirty(Re={}){this.pristine=!1,this._parent&&!Re.onlySelf&&this._parent.markAsDirty(Re)}markAsPristine(Re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(xe=>{xe.markAsPristine({onlySelf:!0})}),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}markAsPending(Re={}){this.status=yi,!1!==Re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Re.onlySelf&&this._parent.markAsPending(Re)}disable(Re={}){const xe=this._parentMarkedDirty(Re.onlySelf);this.status=Wi,this.errors=null,this._forEachChild(ut=>{ut.disable(Object.assign(Object.assign({},Re),{onlySelf:!0}))}),this._updateValue(),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Re),{skipPristineCheck:xe})),this._onDisabledChange.forEach(ut=>ut(!0))}enable(Re={}){const xe=this._parentMarkedDirty(Re.onlySelf);this.status=mi,this._forEachChild(ut=>{ut.enable(Object.assign(Object.assign({},Re),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Re),{skipPristineCheck:xe})),this._onDisabledChange.forEach(ut=>ut(!1))}_updateAncestors(Re){this._parent&&!Re.onlySelf&&(this._parent.updateValueAndValidity(Re),Re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Re){this._parent=Re}updateValueAndValidity(Re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===yi)&&this._runAsyncValidator(Re.emitEvent)),!1!==Re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Re.onlySelf&&this._parent.updateValueAndValidity(Re)}_updateTreeValidity(Re={emitEvent:!0}){this._forEachChild(xe=>xe._updateTreeValidity(Re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Re){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator=!0;const xe=te(this.asyncValidator(this));this._asyncValidationSubscription=xe.subscribe(ut=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ut,{emitEvent:Re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Re,xe={}){this.errors=Re,this._updateControlsErrors(!1!==xe.emitEvent)}get(Re){return function gn(ke,Re,xe){if(null==Re||(Array.isArray(Re)||(Re=Re.split(xe)),Array.isArray(Re)&&0===Re.length))return null;let ut=ke;return Re.forEach(Zt=>{ut=ot(ut)?ut.controls.hasOwnProperty(Zt)?ut.controls[Zt]:null:$e(ut)&&ut.at(Zt)||null}),ut}(this,Re,".")}getError(Re,xe){const ut=xe?this.get(xe):this;return ut&&ut.errors?ut.errors[Re]:null}hasError(Re,xe){return!!this.getError(Re,xe)}get root(){let Re=this;for(;Re._parent;)Re=Re._parent;return Re}_updateControlsErrors(Re){this.status=this._calculateStatus(),Re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Re)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Wi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(bi)?bi:mi}_anyControlsHaveStatus(Re){return this._anyControls(xe=>xe.status===Re)}_anyControlsDirty(){return this._anyControls(Re=>Re.dirty)}_anyControlsTouched(){return this._anyControls(Re=>Re.touched)}_updatePristine(Re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Re.onlySelf&&this._parent._updatePristine(Re)}_updateTouched(Re={}){this.touched=this._anyControlsTouched(),this._parent&&!Re.onlySelf&&this._parent._updateTouched(Re)}_isBoxedValue(Re){return"object"==typeof Re&&null!==Re&&2===Object.keys(Re).length&&"value"in Re&&"disabled"in Re}_registerOnCollectionChange(Re){this._onCollectionChange=Re}_setUpdateStrategy(Re){st(Re)&&null!=Re.updateOn&&(this._updateOn=Re.updateOn)}_parentMarkedDirty(Re){return!Re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Dt extends gt{constructor(Re=null,xe,ut){super(cn(xe),Tn(ut,xe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Re),this._setUpdateStrategy(xe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(xe)&&xe.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Re)?Re.value:Re)}setValue(Re,xe={}){this.value=this._pendingValue=Re,this._onChange.length&&!1!==xe.emitModelToViewChange&&this._onChange.forEach(ut=>ut(this.value,!1!==xe.emitViewToModelChange)),this.updateValueAndValidity(xe)}patchValue(Re,xe={}){this.setValue(Re,xe)}reset(Re=this.defaultValue,xe={}){this._applyFormState(Re),this.markAsPristine(xe),this.markAsUntouched(xe),this.setValue(this.value,xe),this._pendingChange=!1}_updateValue(){}_anyControls(Re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Re){this._onChange.push(Re)}_unregisterOnChange(Re){Bt(this._onChange,Re)}registerOnDisabledChange(Re){this._onDisabledChange.push(Re)}_unregisterOnDisabledChange(Re){Bt(this._onDisabledChange,Re)}_forEachChild(Re){}_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(Re){this._isBoxedValue(Re)?(this.value=this._pendingValue=Re.value,Re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Re}}class ri extends gt{constructor(Re,xe,ut){super(cn(xe),Tn(ut,xe)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(xe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Re,xe){return this.controls[Re]?this.controls[Re]:(this.controls[Re]=xe,xe.setParent(this),xe._registerOnCollectionChange(this._onCollectionChange),xe)}addControl(Re,xe,ut={}){this.registerControl(Re,xe),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}removeControl(Re,xe={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],this.updateValueAndValidity({emitEvent:xe.emitEvent}),this._onCollectionChange()}setControl(Re,xe,ut={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),delete this.controls[Re],xe&&this.registerControl(Re,xe),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}contains(Re){return this.controls.hasOwnProperty(Re)&&this.controls[Re].enabled}setValue(Re,xe={}){Ye(this,Re),Object.keys(Re).forEach(ut=>{F(this,ut),this.controls[ut].setValue(Re[ut],{onlySelf:!0,emitEvent:xe.emitEvent})}),this.updateValueAndValidity(xe)}patchValue(Re,xe={}){null!=Re&&(Object.keys(Re).forEach(ut=>{this.controls[ut]&&this.controls[ut].patchValue(Re[ut],{onlySelf:!0,emitEvent:xe.emitEvent})}),this.updateValueAndValidity(xe))}reset(Re={},xe={}){this._forEachChild((ut,Zt)=>{ut.reset(Re[Zt],{onlySelf:!0,emitEvent:xe.emitEvent})}),this._updatePristine(xe),this._updateTouched(xe),this.updateValueAndValidity(xe)}getRawValue(){return this._reduceChildren({},(Re,xe,ut)=>(Re[ut]=vt(xe),Re))}_syncPendingControls(){let Re=this._reduceChildren(!1,(xe,ut)=>!!ut._syncPendingControls()||xe);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){Object.keys(this.controls).forEach(xe=>{const ut=this.controls[xe];ut&&Re(ut,xe)})}_setUpControls(){this._forEachChild(Re=>{Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Re){for(const xe of Object.keys(this.controls)){const ut=this.controls[xe];if(this.contains(xe)&&Re(ut))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Re,xe,ut)=>((xe.enabled||this.disabled)&&(Re[ut]=xe.value),Re))}_reduceChildren(Re,xe){let ut=Re;return this._forEachChild((Zt,hi)=>{ut=xe(ut,Zt,hi)}),ut}_allControlsDisabled(){for(const Re of Object.keys(this.controls))if(this.controls[Re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ti extends gt{constructor(Re,xe,ut){super(cn(xe),Tn(ut,xe)),this.controls=Re,this._initObservables(),this._setUpdateStrategy(xe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Re){return this.controls[Re]}push(Re,xe={}){this.controls.push(Re),this._registerControl(Re),this.updateValueAndValidity({emitEvent:xe.emitEvent}),this._onCollectionChange()}insert(Re,xe,ut={}){this.controls.splice(Re,0,xe),this._registerControl(xe),this.updateValueAndValidity({emitEvent:ut.emitEvent})}removeAt(Re,xe={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),this.updateValueAndValidity({emitEvent:xe.emitEvent})}setControl(Re,xe,ut={}){this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),xe&&(this.controls.splice(Re,0,xe),this._registerControl(xe)),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Re,xe={}){Ye(this,Re),Re.forEach((ut,Zt)=>{F(this,Zt),this.at(Zt).setValue(ut,{onlySelf:!0,emitEvent:xe.emitEvent})}),this.updateValueAndValidity(xe)}patchValue(Re,xe={}){null!=Re&&(Re.forEach((ut,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(ut,{onlySelf:!0,emitEvent:xe.emitEvent})}),this.updateValueAndValidity(xe))}reset(Re=[],xe={}){this._forEachChild((ut,Zt)=>{ut.reset(Re[Zt],{onlySelf:!0,emitEvent:xe.emitEvent})}),this._updatePristine(xe),this._updateTouched(xe),this.updateValueAndValidity(xe)}getRawValue(){return this.controls.map(Re=>vt(Re))}clear(Re={}){this.controls.length<1||(this._forEachChild(xe=>xe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Re.emitEvent}))}_syncPendingControls(){let Re=this.controls.reduce((xe,ut)=>!!ut._syncPendingControls()||xe,!1);return Re&&this.updateValueAndValidity({onlySelf:!0}),Re}_forEachChild(Re){this.controls.forEach((xe,ut)=>{Re(xe,ut)})}_updateValue(){this.value=this.controls.filter(Re=>Re.enabled||this.disabled).map(Re=>Re.value)}_anyControls(Re){return this.controls.some(xe=>xe.enabled&&Re(xe))}_setUpControls(){this._forEachChild(Re=>this._registerControl(Re))}_allControlsDisabled(){for(const Re of this.controls)if(Re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Re){Re.setParent(this),Re._registerOnCollectionChange(this._onCollectionChange)}}const Di={provide:k,useExisting:(0,e.Gpc)(()=>$i)},wi=(()=>Promise.resolve(null))();let $i=(()=>{class ke extends k{constructor(xe,ut){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new ri({},ge(xe),Ie(ut))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(xe){wi.then(()=>{const ut=this._findContainer(xe.path);xe.control=ut.registerControl(xe.name,xe.control),lt(xe.control,xe),xe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(xe)})}getControl(xe){return this.form.get(xe.path)}removeControl(xe){wi.then(()=>{const ut=this._findContainer(xe.path);ut&&ut.removeControl(xe.name),this._directives.delete(xe)})}addFormGroup(xe){wi.then(()=>{const ut=this._findContainer(xe.path),Zt=new ri({});Le(Zt,xe),ut.registerControl(xe.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(xe){wi.then(()=>{const ut=this._findContainer(xe.path);ut&&ut.removeControl(xe.name)})}getFormGroup(xe){return this.form.get(xe.path)}updateModel(xe,ut){wi.then(()=>{this.form.get(xe.path).setValue(ut)})}setValue(xe){this.control.setValue(xe)}onSubmit(xe){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(xe),!1}onReset(){this.resetForm()}resetForm(xe){this.form.reset(xe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(xe){return xe.pop(),xe.length?this.form.get(xe):this.form}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(q,10),e.Y36(Me,10))},ke.\u0275dir=e.lG2({type:ke,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(xe,ut){1&xe&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Di]),e.qOj]}),ke})();const Xi={provide:re,useExisting:(0,e.Gpc)(()=>an)},en=(()=>Promise.resolve(null))();let an=(()=>{class ke extends re{constructor(xe,ut,Zt,hi,ji){super(),this._changeDetectorRef=ji,this.control=new Dt,this._registered=!1,this.update=new e.vpe,this._parent=xe,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}ngOnChanges(xe){if(this._checkForErrors(),!this._registered||"name"in xe){if(this._registered&&(this._checkName(),this.formDirective)){const ut=xe.name.previousValue;this.formDirective.removeControl({name:ut,path:this._getPath(ut)})}this._setUpControl()}"isDisabled"in xe&&this._updateDisabled(xe),Yt(xe,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(xe){this.viewModel=xe,this.update.emit(xe)}_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(){lt(this.control,this),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(xe){en.then(()=>{var ut;this.control.setValue(xe,{emitViewToModelChange:!1}),null===(ut=this._changeDetectorRef)||void 0===ut||ut.markForCheck()})}_updateDisabled(xe){const ut=xe.isDisabled.currentValue,Zt=""===ut||ut&&"false"!==ut;en.then(()=>{var hi;Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),null===(hi=this._changeDetectorRef)||void 0===hi||hi.markForCheck()})}_getPath(xe){return this._parent?Ht(xe,this._parent):[xe]}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(k,9),e.Y36(q,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(e.sBO,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Xi]),e.qOj,e.TTD]}),ke})(),dn=(()=>{class ke{}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275dir=e.lG2({type:ke,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),ke})();const wn={provide:C,useExisting:(0,e.Gpc)(()=>xn),multi:!0};let xn=(()=>{class ke extends E{writeValue(xe){this.setProperty("value",null==xe?"":xe)}registerOnChange(xe){this.onChange=ut=>{xe(""==ut?null:parseFloat(ut))}}}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(xe,ut){1&xe&&e.NdJ("input",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},features:[e._Bn([wn]),e.qOj]}),ke})(),kn=(()=>{class ke{}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({}),ke})();const Ge=new e.OlP("NgModelWithFormControlWarning"),Ot={provide:re,useExisting:(0,e.Gpc)(()=>qe)};let qe=(()=>{class ke extends re{constructor(xe,ut,Zt,hi){super(),this._ngModelWarningConfig=hi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(xe),this._setAsyncValidators(ut),this.valueAccessor=Et(0,Zt)}set isDisabled(xe){}ngOnChanges(xe){if(this._isControlChanged(xe)){const ut=xe.form.previousValue;ut&&Ut(ut,this,!1),lt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Yt(xe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ut(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(xe){this.viewModel=xe,this.update.emit(xe)}_isControlChanged(xe){return xe.hasOwnProperty("form")}}return ke._ngModelWarningSentOnce=!1,ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(q,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ge,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Ot]),e.qOj,e.TTD]}),ke})();const Tt={provide:k,useExisting:(0,e.Gpc)(()=>jt)};let jt=(()=>{class ke extends k{constructor(xe,ut){super(),this.validators=xe,this.asyncValidators=ut,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(xe),this._setAsyncValidators(ut)}ngOnChanges(xe){this._checkFormPresent(),xe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ze(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(xe){const ut=this.form.get(xe.path);return lt(ut,xe),ut.updateValueAndValidity({emitEvent:!1}),this.directives.push(xe),ut}getControl(xe){return this.form.get(xe.path)}removeControl(xe){Ut(xe.control||null,xe,!1),Bt(this.directives,xe)}addFormGroup(xe){this._setUpFormContainer(xe)}removeFormGroup(xe){this._cleanUpFormContainer(xe)}getFormGroup(xe){return this.form.get(xe.path)}addFormArray(xe){this._setUpFormContainer(xe)}removeFormArray(xe){this._cleanUpFormContainer(xe)}getFormArray(xe){return this.form.get(xe.path)}updateModel(xe,ut){this.form.get(xe.path).setValue(ut)}onSubmit(xe){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(xe),!1}onReset(){this.resetForm()}resetForm(xe){this.form.reset(xe),this.submitted=!1}_updateDomValue(){this.directives.forEach(xe=>{const ut=xe.control,Zt=this.form.get(xe.path);ut!==Zt&&(Ut(ut||null,xe),St(Zt)&&(lt(Zt,xe),xe.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(xe){const ut=this.form.get(xe.path);Le(ut,xe),ut.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(xe){if(this.form){const ut=this.form.get(xe.path);ut&&function ct(ke,Re){return ze(ke,Re)}(ut,xe)&&ut.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){we(this.form,this),this._oldForm&&ze(this._oldForm,this)}_checkFormPresent(){}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(q,10),e.Y36(Me,10))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","formGroup",""]],hostBindings:function(xe,ut){1&xe&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Tt]),e.qOj,e.TTD]}),ke})();const dr={provide:re,useExisting:(0,e.Gpc)(()=>Vn)};let Vn=(()=>{class ke extends re{constructor(xe,ut,Zt,hi,ji){super(),this._ngModelWarningConfig=ji,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=xe,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}set isDisabled(xe){}ngOnChanges(xe){this._added||this._setUpControl(),Yt(xe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(xe){this.viewModel=xe,this.update.emit(xe)}get path(){return Ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return ke._ngModelWarningSentOnce=!1,ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(k,13),e.Y36(q,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ge,8))},ke.\u0275dir=e.lG2({type:ke,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([dr]),e.qOj,e.TTD]}),ke})();const ur={provide:C,useExisting:(0,e.Gpc)(()=>rr),multi:!0};function Qn(ke,Re){return null==ke?`${Re}`:(Re&&"object"==typeof Re&&(Re="Object"),`${ke}: ${Re}`.slice(0,50))}let rr=(()=>{class ke extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(xe){this._compareWith=xe}writeValue(xe){this.value=xe;const Zt=Qn(this._getOptionId(xe),xe);this.setProperty("value",Zt)}registerOnChange(xe){this.onChange=ut=>{this.value=this._getOptionValue(ut),xe(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(xe){for(const ut of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ut),xe))return ut;return null}_getOptionValue(xe){const ut=function Lr(ke){return ke.split(":")[0]}(xe);return this._optionMap.has(ut)?this._optionMap.get(ut):xe}}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(xe,ut){1&xe&&e.NdJ("change",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([ur]),e.qOj]}),ke})(),Zn=(()=>{class ke{constructor(xe,ut,Zt){this._element=xe,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption())}set ngValue(xe){null!=this._select&&(this._select._optionMap.set(this.id,xe),this._setElementValue(Qn(this.id,xe)),this._select.writeValue(this._select.value))}set value(xe){this._setElementValue(xe),this._select&&this._select.writeValue(this._select.value)}_setElementValue(xe){this._renderer.setProperty(this._element.nativeElement,"value",xe)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(rr,9))},ke.\u0275dir=e.lG2({type:ke,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ke})();const En={provide:C,useExisting:(0,e.Gpc)(()=>sr),multi:!0};function hr(ke,Re){return null==ke?`${Re}`:("string"==typeof Re&&(Re=`'${Re}'`),Re&&"object"==typeof Re&&(Re="Object"),`${ke}: ${Re}`.slice(0,50))}let sr=(()=>{class ke extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(xe){this._compareWith=xe}writeValue(xe){let ut;if(this.value=xe,Array.isArray(xe)){const Zt=xe.map(hi=>this._getOptionId(hi));ut=(hi,ji)=>{hi._setSelected(Zt.indexOf(ji.toString())>-1)}}else ut=(Zt,hi)=>{Zt._setSelected(!1)};this._optionMap.forEach(ut)}registerOnChange(xe){this.onChange=ut=>{const Zt=[],hi=ut.selectedOptions;if(void 0!==hi){const ji=hi;for(let tn=0;tn{class ke{constructor(xe,ut,Zt){this._element=xe,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(xe){null!=this._select&&(this._value=xe,this._setElementValue(hr(this.id,xe)),this._select.writeValue(this._select.value))}set value(xe){this._select?(this._value=xe,this._setElementValue(hr(this.id,xe)),this._select.writeValue(this._select.value)):this._setElementValue(xe)}_setElementValue(xe){this._renderer.setProperty(this._element.nativeElement,"value",xe)}_setSelected(xe){this._renderer.setProperty(this._element.nativeElement,"selected",xe)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return ke.\u0275fac=function(xe){return new(xe||ke)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sr,9))},ke.\u0275dir=e.lG2({type:ke,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),ke})(),In=(()=>{class ke{constructor(){this._validator=Ue}ngOnChanges(xe){if(this.inputName in xe){const ut=this.normalizeInput(xe[this.inputName].currentValue);this._enabled=this.enabled(ut),this._validator=this._enabled?this.createValidator(ut):Ue,this._onChange&&this._onChange()}}validate(xe){return this._validator(xe)}registerOnValidatorChange(xe){this._onChange=xe}enabled(xe){return null!=xe}}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275dir=e.lG2({type:ke,features:[e.TTD]}),ke})();const zn={provide:q,useExisting:(0,e.Gpc)(()=>ft),multi:!0},lr={provide:q,useExisting:(0,e.Gpc)(()=>B),multi:!0};let ft=(()=>{class ke extends In{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=xe=>function pr(ke){return null!=ke&&!1!==ke&&"false"!=`${ke}`}(xe),this.createValidator=xe=>j}enabled(xe){return xe}}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(xe,ut){2&xe&&e.uIk("required",ut._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([zn]),e.qOj]}),ke})(),B=(()=>{class ke extends ft{constructor(){super(...arguments),this.createValidator=xe=>Y}}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(xe,ut){2&xe&&e.uIk("required",ut._enabled?"":null)},features:[e._Bn([lr]),e.qOj]}),ke})();const ue={provide:q,useExisting:(0,e.Gpc)(()=>tt),multi:!0};let tt=(()=>{class ke extends In{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=xe=>xe,this.createValidator=xe=>Fe(xe)}}return ke.\u0275fac=function(){let Re;return function(ut){return(Re||(Re=e.n5z(ke)))(ut||ke)}}(),ke.\u0275dir=e.lG2({type:ke,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(xe,ut){2&xe&&e.uIk("pattern",ut._enabled?ut.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([ue]),e.qOj]}),ke})(),ii=(()=>{class ke{}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({imports:[[kn]]}),ke})(),di=(()=>{class ke{}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({imports:[ii]}),ke})(),ui=(()=>{class ke{static withConfig(xe){return{ngModule:ke,providers:[{provide:Ge,useValue:xe.warnOnNgModelWithFormControl}]}}}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275mod=e.oAB({type:ke}),ke.\u0275inj=e.cJS({imports:[ii]}),ke})(),Ti=(()=>{class ke{group(xe,ut=null){const Zt=this._reduceControls(xe);let tn,hi=null,ji=null;return null!=ut&&(function _i(ke){return void 0!==ke.asyncValidators||void 0!==ke.validators||void 0!==ke.updateOn}(ut)?(hi=null!=ut.validators?ut.validators:null,ji=null!=ut.asyncValidators?ut.asyncValidators:null,tn=null!=ut.updateOn?ut.updateOn:void 0):(hi=null!=ut.validator?ut.validator:null,ji=null!=ut.asyncValidator?ut.asyncValidator:null)),new ri(Zt,{asyncValidators:ji,updateOn:tn,validators:hi})}control(xe,ut,Zt){return new Dt(xe,ut,Zt)}array(xe,ut,Zt){const hi=xe.map(ji=>this._createControl(ji));return new ti(hi,ut,Zt)}_reduceControls(xe){const ut={};return Object.keys(xe).forEach(Zt=>{ut[Zt]=this._createControl(xe[Zt])}),ut}_createControl(xe){return St(xe)||ot(xe)||$e(xe)?xe:Array.isArray(xe)?this.control(xe[0],xe.length>1?xe[1]:null,xe.length>2?xe[2]:null):this.control(xe)}}return ke.\u0275fac=function(xe){return new(xe||ke)},ke.\u0275prov=e.Yz7({token:ke,factory:ke.\u0275fac,providedIn:ui}),ke})()},91079:(Qe,be,p)=>{"use strict";p.d(be,{XC:()=>D,Bb:()=>Q,ZL:()=>Je});var e=p(15664),b=p(63191),_=p(5e3),w=p(90508),g=p(42654),A=p(8929),E=p(88514),C=p(36787),R=p(21086),I=p(23753),m=p(70925),O=p(69808),P=p(92845),W=p(53435),ie=p(91159),Ae=p(47429),q=p(93075),Me=p(67322),he=p(1059),De=p(87545),T=p(72986),N=p(92198),j=p(24850),Y=p(22868),ee=p(40943),de=p(50226);const ce=["panel"];function Fe(Ce,re){if(1&Ce&&(_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA()),2&Ce){const k=re.id,pe=_.oxw();_.Q6J("id",pe.id)("ngClass",pe._classList),_.uIk("aria-label",pe.ariaLabel||null)("aria-labelledby",pe._getPanelAriaLabelledby(k))}}const Ue=["*"];let Xe=0;class te{constructor(re,k){this.source=re,this.option=k}}const Ve=(0,w.Kr)(class{}),ve=new _.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Oe(){return{autoActiveFirstOption:!1}}});let z=(()=>{class Ce extends Ve{constructor(k,pe,Z,Ne){super(),this._changeDetectorRef=k,this._elementRef=pe,this._activeOptionChanges=g.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new _.vpe,this.opened=new _.vpe,this.closed=new _.vpe,this.optionActivated=new _.vpe,this._classList={},this.id="mat-autocomplete-"+Xe++,this.inertGroups=(null==Ne?void 0:Ne.SAFARI)||!1,this._autoActiveFirstOption=!!Z.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(k){this._autoActiveFirstOption=(0,b.Ig)(k)}set classList(k){this._classList=k&&k.length?(0,b.du)(k).reduce((pe,Z)=>(pe[Z]=!0,pe),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(k=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[k]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(k){this.panel&&(this.panel.nativeElement.scrollTop=k)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(k){const pe=new te(this,k);this.optionSelected.emit(pe)}_getPanelAriaLabelledby(k){return this.ariaLabel?null:this.ariaLabelledby?(k?k+" ":"")+this.ariaLabelledby:k}_setVisibilityClasses(k){k[this._visibleClass]=this.showPanel,k[this._hiddenClass]=!this.showPanel}}return Ce.\u0275fac=function(k){return new(k||Ce)(_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(ve),_.Y36(m.t4))},Ce.\u0275dir=_.lG2({type:Ce,viewQuery:function(k,pe){if(1&k&&(_.Gf(_.Rgc,7),_.Gf(ce,5)),2&k){let Z;_.iGM(Z=_.CRH())&&(pe.template=Z.first),_.iGM(Z=_.CRH())&&(pe.panel=Z.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_.qOj]}),Ce})(),D=(()=>{class Ce extends z{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ce.\u0275fac=function(){let re;return function(pe){return(re||(re=_.n5z(Ce)))(pe||Ce)}}(),Ce.\u0275cmp=_.Xpm({type:Ce,selectors:[["mat-autocomplete"]],contentQueries:function(k,pe,Z){if(1&k&&(_.Suo(Z,w.K7,5),_.Suo(Z,w.ey,5)),2&k){let Ne;_.iGM(Ne=_.CRH())&&(pe.optionGroups=Ne),_.iGM(Ne=_.CRH())&&(pe.options=Ne)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_._Bn([{provide:w.HF,useExisting:Ce}]),_.qOj],ngContentSelectors:Ue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(k,pe){1&k&&(_.F$t(),_.YNc(0,Fe,3,4,"ng-template"))},directives:[O.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),Ce})();const ge=new _.OlP("mat-autocomplete-scroll-strategy"),Ie={provide:ge,deps:[P.aV],useFactory:function Te(Ce){return()=>Ce.scrollStrategies.reposition()}},fe={provide:q.JU,useExisting:(0,_.Gpc)(()=>Je),multi:!0};let Ke=(()=>{class Ce{constructor(k,pe,Z,Ne,oe,_e,$,V,i,a,d){this._element=k,this._overlay=pe,this._viewContainerRef=Z,this._zone=Ne,this._changeDetectorRef=oe,this._dir=$,this._formField=V,this._document=i,this._viewportRuler=a,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=g.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,he.O)(l),(0,De.w)(()=>(0,C.T)(...l.map(s=>s.onSelectionChange)))):this._zone.onStable.pipe((0,T.q)(1),(0,De.w)(()=>this.optionSelections))}),this._scrollStrategy=_e}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(k){this._autocompleteDisabled=(0,b.Ig)(k)}ngAfterViewInit(){const k=this._getWindow();void 0!==k&&this._zone.runOutsideAngular(()=>k.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(k){k.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const k=this._getWindow();void 0!==k&&k.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,C.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,N.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,N.h)(()=>this._overlayAttached)):(0,R.of)()).pipe((0,j.U)(k=>k instanceof w.rN?k:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,C.T)((0,I.R)(this._document,"click"),(0,I.R)(this._document,"auxclick"),(0,I.R)(this._document,"touchend")).pipe((0,N.h)(k=>{const pe=(0,m.sA)(k),Z=this._formField?this._formField._elementRef.nativeElement:null,Ne=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&pe!==this._element.nativeElement&&(!Z||!Z.contains(pe))&&(!Ne||!Ne.contains(pe))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(pe)}))}writeValue(k){Promise.resolve().then(()=>this._setTriggerValue(k))}registerOnChange(k){this._onChange=k}registerOnTouched(k){this._onTouched=k}setDisabledState(k){this._element.nativeElement.disabled=k}_handleKeydown(k){const pe=k.keyCode;if(pe===ie.hY&&!(0,ie.Vb)(k)&&k.preventDefault(),this.activeOption&&pe===ie.K5&&this.panelOpen&&!(0,ie.Vb)(k))this.activeOption._selectViaInteraction(),this._resetActiveItem(),k.preventDefault();else if(this.autocomplete){const Z=this.autocomplete._keyManager.activeItem,Ne=pe===ie.LH||pe===ie.JH;this.panelOpen||pe===ie.Mf?this.autocomplete._keyManager.onKeydown(k):Ne&&this._canOpen()&&this.openPanel(),(Ne||this.autocomplete._keyManager.activeItem!==Z)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(k){let pe=k.target,Z=pe.value;"number"===pe.type&&(Z=""==Z?null:parseFloat(Z)),this._previousValue!==Z&&(this._previousValue=Z,this._onChange(Z),this._canOpen()&&this._document.activeElement===k.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(k=!1){this._formField&&"auto"===this._formField.floatLabel&&(k?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const k=this._zone.onStable.pipe((0,T.q)(1)),pe=this.autocomplete.options.changes.pipe((0,Y.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,ee.g)(0));return(0,C.T)(k,pe).pipe((0,De.w)(()=>{const Z=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),Z!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,T.q)(1)).subscribe(Z=>this._setValueAndClose(Z))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(k){const pe=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(k):k,Z=null!=pe?pe:"";this._formField?this._formField._control.value=Z:this._element.nativeElement.value=Z,this._previousValue=Z}_setValueAndClose(k){const pe=k&&k.source;pe&&(this._clearPreviousSelectedOption(pe),this._setTriggerValue(pe.value),this._onChange(pe.value),this.autocomplete._emitSelectEvent(pe),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(k){this.autocomplete.options.forEach(pe=>{pe!==k&&pe.selected&&pe.deselect()})}_attachOverlay(){var k;let pe=this._overlayRef;pe?(this._positionStrategy.setOrigin(this._getConnectedElement()),pe.updateSize({width:this._getPanelWidth()})):(this._portal=new Ae.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(k=this._formField)||void 0===k?void 0:k.getLabelId()}),pe=this._overlay.create(this._getOverlayConfig()),this._overlayRef=pe,pe.keydownEvents().subscribe(Ne=>{(Ne.keyCode===ie.hY&&!(0,ie.Vb)(Ne)||Ne.keyCode===ie.LH&&(0,ie.Vb)(Ne,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Ne.stopPropagation(),Ne.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&pe&&pe.updateSize({width:this._getPanelWidth()})})),pe&&!pe.hasAttached()&&(pe.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const Z=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&Z!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var k;return new P.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(k=this._defaults)||void 0===k?void 0:k.overlayPanelClass})}_getOverlayPosition(){const k=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(k),this._positionStrategy=k,k}_setStrategyPositions(k){const pe=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Z=this._aboveClass,Ne=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:Z},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:Z}];let oe;oe="above"===this.position?Ne:"below"===this.position?pe:[...pe,...Ne],k.withPositions(oe)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const k=this.autocomplete;k.autoActiveFirstOption?k._keyManager.setFirstItemActive():k._keyManager.setActiveItem(-1)}_canOpen(){const k=this._element.nativeElement;return!k.readOnly&&!k.disabled&&!this._autocompleteDisabled}_getWindow(){var k;return(null===(k=this._document)||void 0===k?void 0:k.defaultView)||window}_scrollToOption(k){const pe=this.autocomplete,Z=(0,w.CB)(k,pe.options,pe.optionGroups);if(0===k&&1===Z)pe._setScrollTop(0);else if(pe.panel){const Ne=pe.options.toArray()[k];if(Ne){const oe=Ne._getHostElement(),_e=(0,w.jH)(oe.offsetTop,oe.offsetHeight,pe._getScrollTop(),pe.panel.nativeElement.offsetHeight);pe._setScrollTop(_e)}}}}return Ce.\u0275fac=function(k){return new(k||Ce)(_.Y36(_.SBq),_.Y36(P.aV),_.Y36(_.s_b),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(ge),_.Y36(de.Is,8),_.Y36(Me.G_,9),_.Y36(O.K0,8),_.Y36(W.rL),_.Y36(ve,8))},Ce.\u0275dir=_.lG2({type:Ce,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[_.TTD]}),Ce})(),Je=(()=>{class Ce extends Ke{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ce.\u0275fac=function(){let re;return function(pe){return(re||(re=_.n5z(Ce)))(pe||Ce)}}(),Ce.\u0275dir=_.lG2({type:Ce,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(k,pe){1&k&&_.NdJ("focusin",function(){return pe._handleFocus()})("blur",function(){return pe._onTouched()})("input",function(Ne){return pe._handleInput(Ne)})("keydown",function(Ne){return pe._handleKeydown(Ne)}),2&k&&_.uIk("autocomplete",pe.autocompleteAttribute)("role",pe.autocompleteDisabled?null:"combobox")("aria-autocomplete",pe.autocompleteDisabled?null:"list")("aria-activedescendant",pe.panelOpen&&pe.activeOption?pe.activeOption.id:null)("aria-expanded",pe.autocompleteDisabled?null:pe.panelOpen.toString())("aria-owns",pe.autocompleteDisabled||!pe.panelOpen||null==pe.autocomplete?null:pe.autocomplete.id)("aria-haspopup",!pe.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_._Bn([fe]),_.qOj]}),Ce})(),Q=(()=>{class Ce{}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275mod=_.oAB({type:Ce}),Ce.\u0275inj=_.cJS({providers:[Ie],imports:[[P.U8,w.Ng,w.BQ,O.ez],W.ZD,w.Ng,w.BQ]}),Ce})()},27544:(Qe,be,p)=>{"use strict";p.d(be,{k:()=>R,g:()=>I});var e=p(5e3),b=p(90508),_=p(15664),w=p(63191),g=p(76360);let A=0;const E=(0,b.Id)(class{}),C="mat-badge-content";let R=(()=>{class m extends E{constructor(P,W,ie,Ae,q){super(),this._ngZone=P,this._elementRef=W,this._ariaDescriber=ie,this._renderer=Ae,this._animationMode=q,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=A++,this._isInitialized=!1}get color(){return this._color}set color(P){this._setColor(P),this._color=P}get overlap(){return this._overlap}set overlap(P){this._overlap=(0,w.Ig)(P)}get content(){return this._content}set content(P){this._updateRenderedContent(P)}get description(){return this._description}set description(P){this._updateHostAriaDescription(P)}get hidden(){return this._hidden}set hidden(P){this._hidden=(0,w.Ig)(P)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const P=this._renderer.createElement("span"),W="mat-badge-active";return P.setAttribute("id",`mat-badge-content-${this._id}`),P.setAttribute("aria-hidden","true"),P.classList.add(C),"NoopAnimations"===this._animationMode&&P.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(P),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{P.classList.add(W)})}):P.classList.add(W),P}_updateRenderedContent(P){const W=`${null!=P?P:""}`.trim();this._isInitialized&&W&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=W),this._content=W}_updateHostAriaDescription(P){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),P&&this._ariaDescriber.describe(this._elementRef.nativeElement,P),this._description=P}_setColor(P){const W=this._elementRef.nativeElement.classList;W.remove(`mat-badge-${this._color}`),P&&W.add(`mat-badge-${P}`)}_clearExistingBadges(){const P=this._elementRef.nativeElement.querySelectorAll(`:scope > .${C}`);for(const W of Array.from(P))W!==this._badgeElement&&W.remove()}}return m.\u0275fac=function(P){return new(P||m)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(g.Qb,8))},m.\u0275dir=e.lG2({type:m,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(P,W){2&P&&e.ekj("mat-badge-overlap",W.overlap)("mat-badge-above",W.isAbove())("mat-badge-below",!W.isAbove())("mat-badge-before",!W.isAfter())("mat-badge-after",W.isAfter())("mat-badge-small","small"===W.size)("mat-badge-medium","medium"===W.size)("mat-badge-large","large"===W.size)("mat-badge-hidden",W.hidden||!W.content)("mat-badge-disabled",W.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),m})(),I=(()=>{class m{}return m.\u0275fac=function(P){return new(P||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[_.rt,b.BQ],b.BQ]}),m})()},47423:(Qe,be,p)=>{"use strict";p.d(be,{lW:()=>m,ot:()=>P});var e=p(5e3),b=p(90508),_=p(76360),w=p(15664);const g=["mat-button",""],A=["*"],R=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],I=(0,b.pj)((0,b.Id)((0,b.Kr)(class{constructor(W){this._elementRef=W}})));let m=(()=>{class W extends I{constructor(Ae,q,Me){super(Ae),this._focusMonitor=q,this._animationMode=Me,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const he of R)this._hasHostAttributes(he)&&this._getHostElement().classList.add(he);Ae.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ae,q){Ae?this._focusMonitor.focusVia(this._getHostElement(),Ae,q):this._getHostElement().focus(q)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...Ae){return Ae.some(q=>this._getHostElement().hasAttribute(q))}}return W.\u0275fac=function(Ae){return new(Ae||W)(e.Y36(e.SBq),e.Y36(w.tE),e.Y36(_.Qb,8))},W.\u0275cmp=e.Xpm({type:W,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Ae,q){if(1&Ae&&e.Gf(b.wG,5),2&Ae){let Me;e.iGM(Me=e.CRH())&&(q.ripple=Me.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Ae,q){2&Ae&&(e.uIk("disabled",q.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===q._animationMode)("mat-button-disabled",q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:g,ngContentSelectors:A,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Ae,q){1&Ae&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&Ae&&(e.xp6(2),e.ekj("mat-button-ripple-round",q.isRoundButton||q.isIconButton),e.Q6J("matRippleDisabled",q._isRippleDisabled())("matRippleCentered",q.isIconButton)("matRippleTrigger",q._getHostElement()))},directives:[b.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),W})(),P=(()=>{class W{}return W.\u0275fac=function(Ae){return new(Ae||W)},W.\u0275mod=e.oAB({type:W}),W.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),W})()},9224:(Qe,be,p)=>{"use strict";p.d(be,{a8:()=>T,kc:()=>De,dn:()=>I,dk:()=>N,QW:()=>Y,$j:()=>O,n5:()=>m});var e=p(5e3),b=p(76360),_=p(90508);const w=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],E=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let I=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),ee})(),m=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),ee})(),O=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),ee})(),De=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275dir=e.lG2({type:ee,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),ee})(),T=(()=>{class ee{constructor(ce){this._animationMode=ce}}return ee.\u0275fac=function(ce){return new(ce||ee)(e.Y36(b.Qb,8))},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(ce,Fe){2&ce&&e.ekj("_mat-animation-noopable","NoopAnimations"===Fe._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(ce,Fe){1&ce&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),ee})(),N=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275cmp=e.Xpm({type:ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:E,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(ce,Fe){1&ce&&(e.F$t(A),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),ee})(),Y=(()=>{class ee{}return ee.\u0275fac=function(ce){return new(ce||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),ee})()},77446:(Qe,be,p)=>{"use strict";p.d(be,{oG:()=>Me,p9:()=>N});var e=p(63191),b=p(5e3),_=p(93075),w=p(90508),g=p(76360),A=p(15664),E=p(17144);const C=["input"],R=function(j){return{enterDuration:j}},I=["*"],m=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:O});function O(){return{color:"accent",clickAction:"check-indeterminate"}}let P=0;const W=O(),ie={provide:_.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class Ae{}const q=(0,w.sb)((0,w.pj)((0,w.Kr)((0,w.Id)(class{constructor(j){this._elementRef=j}}))));let Me=(()=>{class j extends q{constructor(ee,de,ce,Fe,Ue,Xe,te){super(ee),this._changeDetectorRef=de,this._focusMonitor=ce,this._ngZone=Fe,this._animationMode=Xe,this._options=te,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++P,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||W,this.color=this.defaultColor=this._options.color||W.color,this.tabIndex=parseInt(Ue)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(ee){this._required=(0,e.Ig)(ee)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(ee){ee!=this.checked&&(this._checked=ee,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(ee){const de=(0,e.Ig)(ee);de!==this.disabled&&(this._disabled=de,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(ee){const de=ee!=this._indeterminate;this._indeterminate=(0,e.Ig)(ee),de&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(ee){this.checked=!!ee}registerOnChange(ee){this._controlValueAccessorChangeFn=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(ee){let de=this._currentCheckState,ce=this._elementRef.nativeElement;if(de!==ee&&(this._currentAnimationClass.length>0&&ce.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(de,ee),this._currentCheckState=ee,this._currentAnimationClass.length>0)){ce.classList.add(this._currentAnimationClass);const Fe=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{ce.classList.remove(Fe)},1e3)})}}_emitChangeEvent(){const ee=new Ae;ee.source=this,ee.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(ee),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(ee){var de;const ce=null===(de=this._options)||void 0===de?void 0:de.clickAction;ee.stopPropagation(),this.disabled||"noop"===ce?!this.disabled&&"noop"===ce&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==ce&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(ee,de){ee?this._focusMonitor.focusVia(this._inputElement,ee,de):this._inputElement.nativeElement.focus(de)}_onInteractionEvent(ee){ee.stopPropagation()}_getAnimationClassForCheckStateTransition(ee,de){if("NoopAnimations"===this._animationMode)return"";let ce="";switch(ee){case 0:if(1===de)ce="unchecked-checked";else{if(3!=de)return"";ce="unchecked-indeterminate"}break;case 2:ce=1===de?"unchecked-checked":"unchecked-indeterminate";break;case 1:ce=2===de?"checked-unchecked":"checked-indeterminate";break;case 3:ce=1===de?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${ce}`}_syncIndeterminate(ee){const de=this._inputElement;de&&(de.nativeElement.indeterminate=ee)}}return j.\u0275fac=function(ee){return new(ee||j)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(A.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(g.Qb,8),b.Y36(m,8))},j.\u0275cmp=b.Xpm({type:j,selectors:[["mat-checkbox"]],viewQuery:function(ee,de){if(1&ee&&(b.Gf(C,5),b.Gf(w.wG,5)),2&ee){let ce;b.iGM(ce=b.CRH())&&(de._inputElement=ce.first),b.iGM(ce=b.CRH())&&(de.ripple=ce.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(ee,de){2&ee&&(b.Ikx("id",de.id),b.uIk("tabindex",null),b.ekj("mat-checkbox-indeterminate",de.indeterminate)("mat-checkbox-checked",de.checked)("mat-checkbox-disabled",de.disabled)("mat-checkbox-label-before","before"==de.labelPosition)("_mat-animation-noopable","NoopAnimations"===de._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[b._Bn([ie]),b.qOj],ngContentSelectors:I,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(ee,de){if(1&ee&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2),b.TgZ(3,"input",3,4),b.NdJ("change",function(Fe){return de._onInteractionEvent(Fe)})("click",function(Fe){return de._onInputClick(Fe)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA(),b.qZA(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return de._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA(),b.qZA()),2&ee){const ce=b.MAs(1),Fe=b.MAs(13);b.uIk("for",de.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Fe.textContent||!Fe.textContent.trim()),b.xp6(1),b.Q6J("id",de.inputId)("required",de.required)("checked",de.checked)("disabled",de.disabled)("tabIndex",de.tabIndex),b.uIk("value",de.value)("name",de.name)("aria-label",de.ariaLabel||null)("aria-labelledby",de.ariaLabelledby)("aria-checked",de._getAriaChecked())("aria-describedby",de.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",ce)("matRippleDisabled",de._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,R,"NoopAnimations"===de._animationMode?0:150))}},directives:[w.wG,E.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),j})(),T=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=b.oAB({type:j}),j.\u0275inj=b.cJS({}),j})(),N=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=b.oAB({type:j}),j.\u0275inj=b.cJS({imports:[[w.si,w.BQ,E.Q8,T],w.BQ,T]}),j})()},26688:(Qe,be,p)=>{"use strict";p.d(be,{HS:()=>ce,oH:()=>te,qn:()=>z,Hi:()=>ge});var e=p(91159),b=p(5e3),_=p(90508),w=p(63191),g=p(69808),A=p(76360),E=p(8929),C=p(36787),R=p(72986),I=p(7625),m=p(1059),O=p(70925),P=p(15664),W=p(20449),ie=p(93075),Ae=p(67322),q=p(50226);const Me=["*"],De=new b.OlP("MatChipRemove"),T=new b.OlP("MatChipAvatar"),N=new b.OlP("MatChipTrailingIcon");class j{constructor(Ie){this._elementRef=Ie}}const Y=(0,_.sb)((0,_.pj)((0,_.Kr)(j),"primary"),-1);let ce=(()=>{class Te extends Y{constructor(fe,Se,Ke,Je,nt,je,Q,Ce){super(fe),this._ngZone=Se,this._changeDetectorRef=nt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new E.xQ,this._onBlur=new E.xQ,this.selectionChange=new b.vpe,this.destroyed=new b.vpe,this.removed=new b.vpe,this._addHostClassName(),this._chipRippleTarget=je.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,Se,this._chipRippleTarget,Ke),this._chipRipple.setupTriggerEvents(fe),this.rippleConfig=Je||{},this._animationsDisabled="NoopAnimations"===Q,this.tabIndex=null!=Ce&&parseInt(Ce)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(fe){const Se=(0,w.Ig)(fe);Se!==this._selected&&(this._selected=Se,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(fe){this._value=fe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(fe){this._selectable=(0,w.Ig)(fe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(fe){this._disabled=(0,w.Ig)(fe)}get removable(){return this._removable}set removable(fe){this._removable=(0,w.Ig)(fe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const fe="mat-basic-chip",Se=this._elementRef.nativeElement;Se.hasAttribute(fe)||Se.tagName.toLowerCase()===fe?Se.classList.add(fe):Se.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(fe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(fe),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(fe){this.disabled&&fe.preventDefault()}_handleKeydown(fe){if(!this.disabled)switch(fe.keyCode){case e.yY:case e.ZH:this.remove(),fe.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),fe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(fe=!1){this.selectionChange.emit({source:this,isUserInput:fe,selected:this._selected})}}return Te.\u0275fac=function(fe){return new(fe||Te)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(O.t4),b.Y36(_.Y2,8),b.Y36(b.sBO),b.Y36(g.K0),b.Y36(A.Qb,8),b.$8M("tabindex"))},Te.\u0275dir=b.lG2({type:Te,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(fe,Se,Ke){if(1&fe&&(b.Suo(Ke,T,5),b.Suo(Ke,N,5),b.Suo(Ke,De,5)),2&fe){let Je;b.iGM(Je=b.CRH())&&(Se.avatar=Je.first),b.iGM(Je=b.CRH())&&(Se.trailingIcon=Je.first),b.iGM(Je=b.CRH())&&(Se.removeIcon=Je.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(fe,Se){1&fe&&b.NdJ("click",function(Je){return Se._handleClick(Je)})("keydown",function(Je){return Se._handleKeydown(Je)})("focus",function(){return Se.focus()})("blur",function(){return Se._blur()}),2&fe&&(b.uIk("tabindex",Se.disabled?null:Se.tabIndex)("disabled",Se.disabled||null)("aria-disabled",Se.disabled.toString())("aria-selected",Se.ariaSelected),b.ekj("mat-chip-selected",Se.selected)("mat-chip-with-avatar",Se.avatar)("mat-chip-with-trailing-icon",Se.trailingIcon||Se.removeIcon)("mat-chip-disabled",Se.disabled)("_mat-animation-noopable",Se._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[b.qOj]}),Te})();const Ue=new b.OlP("mat-chips-default-options");let Xe=0,te=(()=>{class Te{constructor(fe,Se){this._elementRef=fe,this._defaultOptions=Se,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new b.vpe,this.placeholder="",this.id="mat-chip-list-input-"+Xe++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(fe){fe&&(this._chipList=fe,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(fe){this._addOnBlur=(0,w.Ig)(fe)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(fe){this._disabled=(0,w.Ig)(fe)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(fe){if(fe){if(fe.keyCode===e.Mf&&!(0,e.Vb)(fe,"shiftKey")&&this._chipList._allowFocusEscape(),fe.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void fe.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(fe)}_keyup(fe){!this._focusLastChipOnBackspace&&fe.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,fe.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(fe){!this.inputElement.value&&!!fe&&this._chipList._keydown(fe),(!fe||this._isSeparatorKey(fe))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==fe||fe.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(fe){this.inputElement.focus(fe)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(fe){return!(0,e.Vb)(fe)&&new Set(this.separatorKeyCodes).has(fe.keyCode)}}return Te.\u0275fac=function(fe){return new(fe||Te)(b.Y36(b.SBq),b.Y36(Ue))},Te.\u0275dir=b.lG2({type:Te,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(fe,Se){1&fe&&b.NdJ("keydown",function(Je){return Se._keydown(Je)})("keyup",function(Je){return Se._keyup(Je)})("blur",function(){return Se._blur()})("focus",function(){return Se._focus()})("input",function(){return Se._onInput()}),2&fe&&(b.Ikx("id",Se.id),b.uIk("disabled",Se.disabled||null)("placeholder",Se.placeholder||null)("aria-invalid",Se._chipList&&Se._chipList.ngControl?Se._chipList.ngControl.invalid:null)("aria-required",Se._chipList&&Se._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[b.TTD]}),Te})();const Ve=(0,_.FD)(class{constructor(Te,Ie,fe,Se){this._defaultErrorStateMatcher=Te,this._parentForm=Ie,this._parentFormGroup=fe,this.ngControl=Se}});let ve=0;class Oe{constructor(Ie,fe){this.source=Ie,this.value=fe}}let z=(()=>{class Te extends Ve{constructor(fe,Se,Ke,Je,nt,je,Q){super(je,Je,nt,Q),this._elementRef=fe,this._changeDetectorRef=Se,this._dir=Ke,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.xQ,this._uid="mat-chip-list-"+ve++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ce,re)=>Ce===re,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var fe,Se;return this.multiple?(null===(fe=this._selectionModel)||void 0===fe?void 0:fe.selected)||[]:null===(Se=this._selectionModel)||void 0===Se?void 0:Se.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(fe){this._multiple=(0,w.Ig)(fe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(fe){this._compareWith=fe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(fe){this.writeValue(fe),this._value=fe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var fe,Se,Ke,Je;return null!==(Je=null!==(fe=this._required)&&void 0!==fe?fe:null===(Ke=null===(Se=this.ngControl)||void 0===Se?void 0:Se.control)||void 0===Ke?void 0:Ke.hasValidator(ie.kI.required))&&void 0!==Je&&Je}set required(fe){this._required=(0,w.Ig)(fe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(fe){this._placeholder=fe,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(fe){this._disabled=(0,w.Ig)(fe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(fe){this._selectable=(0,w.Ig)(fe),this.chips&&this.chips.forEach(Se=>Se.chipListSelectable=this._selectable)}set tabIndex(fe){this._userTabIndex=fe,this._tabIndex=fe}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(fe=>fe.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(fe=>fe._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(fe=>fe._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(fe=>fe.destroyed))}ngAfterContentInit(){this._keyManager=new P.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,I.R)(this._destroyed)).subscribe(fe=>this._keyManager.withHorizontalOrientation(fe)),this._keyManager.tabOut.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,m.O)(null),(0,I.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new W.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(fe){this._chipInput=fe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",fe.id)}setDescribedByIds(fe){this._ariaDescribedby=fe.join(" ")}writeValue(fe){this.chips&&this._setSelectionByValue(fe,!1)}registerOnChange(fe){this._onChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this.disabled=fe,this.stateChanges.next()}onContainerClick(fe){this._originatesFromChip(fe)||this.focus()}focus(fe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(fe),this.stateChanges.next()))}_focusInput(fe){this._chipInput&&this._chipInput.focus(fe)}_keydown(fe){const Se=fe.target;Se&&Se.classList.contains("mat-chip")&&(this._keyManager.onKeydown(fe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const fe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(fe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(fe){return fe>=0&&feKe.deselect()),Array.isArray(fe))fe.forEach(Ke=>this._selectValue(Ke,Se)),this._sortValues();else{const Ke=this._selectValue(fe,Se);Ke&&Se&&this._keyManager.setActiveItem(Ke)}}_selectValue(fe,Se=!0){const Ke=this.chips.find(Je=>null!=Je.value&&this._compareWith(Je.value,fe));return Ke&&(Se?Ke.selectViaInteraction():Ke.select(),this._selectionModel.select(Ke)),Ke}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(fe){this._selectionModel.clear(),this.chips.forEach(Se=>{Se!==fe&&Se.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(fe=>{fe.selected&&this._selectionModel.select(fe)}),this.stateChanges.next())}_propagateChanges(fe){let Se=null;Se=Array.isArray(this.selected)?this.selected.map(Ke=>Ke.value):this.selected?this.selected.value:fe,this._value=Se,this.change.emit(new Oe(this,Se)),this.valueChange.emit(Se),this._onChange(Se),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(fe=>{fe.source.selected?this._selectionModel.select(fe.source):this._selectionModel.deselect(fe.source),this.multiple||this.chips.forEach(Se=>{!this._selectionModel.isSelected(Se)&&Se.selected&&Se.deselect()}),fe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(fe=>{let Se=this.chips.toArray().indexOf(fe.chip);this._isValidIndex(Se)&&this._keyManager.updateActiveItem(Se),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(fe=>{const Se=fe.chip,Ke=this.chips.toArray().indexOf(fe.chip);this._isValidIndex(Ke)&&Se._hasFocus&&(this._lastDestroyedChipIndex=Ke)})}_originatesFromChip(fe){let Se=fe.target;for(;Se&&Se!==this._elementRef.nativeElement;){if(Se.classList.contains("mat-chip"))return!0;Se=Se.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(fe=>fe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(fe=>{fe._chipListDisabled=this._disabled,fe._chipListMultiple=this.multiple})}}return Te.\u0275fac=function(fe){return new(fe||Te)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(q.Is,8),b.Y36(ie.F,8),b.Y36(ie.sg,8),b.Y36(_.rD),b.Y36(ie.a5,10))},Te.\u0275cmp=b.Xpm({type:Te,selectors:[["mat-chip-list"]],contentQueries:function(fe,Se,Ke){if(1&fe&&b.Suo(Ke,ce,5),2&fe){let Je;b.iGM(Je=b.CRH())&&(Se.chips=Je)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(fe,Se){1&fe&&b.NdJ("focus",function(){return Se.focus()})("blur",function(){return Se._blur()})("keydown",function(Je){return Se._keydown(Je)}),2&fe&&(b.Ikx("id",Se._uid),b.uIk("tabindex",Se.disabled?null:Se._tabIndex)("aria-describedby",Se._ariaDescribedby||null)("aria-required",Se.role?Se.required:null)("aria-disabled",Se.disabled.toString())("aria-invalid",Se.errorState)("aria-multiselectable",Se.multiple)("role",Se.role)("aria-orientation",Se.ariaOrientation),b.ekj("mat-chip-list-disabled",Se.disabled)("mat-chip-list-invalid",Se.errorState)("mat-chip-list-required",Se.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[b._Bn([{provide:Ae.Eo,useExisting:Te}]),b.qOj],ngContentSelectors:Me,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(fe,Se){1&fe&&(b.F$t(),b.TgZ(0,"div",0),b.Hsn(1),b.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),Te})(),ge=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275mod=b.oAB({type:Te}),Te.\u0275inj=b.cJS({providers:[_.rD,{provide:Ue,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[_.BQ]]}),Te})()},90508:(Qe,be,p)=>{"use strict";p.d(be,{yN:()=>he,mZ:()=>De,_A:()=>z,rD:()=>nt,sG:()=>D,K7:()=>h,HF:()=>t,Y2:()=>a,BQ:()=>j,X2:()=>je,uc:()=>re,XK:()=>Ke,ey:()=>lt,Ng:()=>Lt,rN:()=>At,nP:()=>s,us:()=>r,wG:()=>d,si:()=>l,LF:()=>Ie,IR:()=>$,CB:()=>Ut,jH:()=>mt,pj:()=>Fe,Kr:()=>Ue,Id:()=>ce,FD:()=>te,dB:()=>Ve,sb:()=>Xe,E0:()=>Q});var e=p(5e3),b=p(50226),w=p(69808),g=p(70925),A=p(15664),E=p(63191),C=p(8929),R=p(56498),I=p(1059),m=p(76360),O=p(91159);function ie(we,ze){if(1&we&&e._UZ(0,"mat-pseudo-checkbox",4),2&we){const U=e.oxw();e.Q6J("state",U.selected?"checked":"unchecked")("disabled",U.disabled)}}function Ae(we,ze){if(1&we&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&we){const U=e.oxw();e.xp6(1),e.hij("(",U.group.label,")")}}const q=["*"];let he=(()=>{class we{}return we.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",we.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",we.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",we.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",we})(),De=(()=>{class we{}return we.COMPLEX="375ms",we.ENTERING="225ms",we.EXITING="195ms",we})();const N=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function T(){return!0}});let j=(()=>{class we{constructor(U,L,ne){this._sanityChecks=L,this._document=ne,this._hasDoneGlobalChecks=!1,U._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(U){return!(0,g.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[U])}}return we.\u0275fac=function(U){return new(U||we)(e.LFG(A.qm),e.LFG(N,8),e.LFG(w.K0))},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[b.vT],b.vT]}),we})();function ce(we){return class extends we{constructor(...ze){super(...ze),this._disabled=!1}get disabled(){return this._disabled}set disabled(ze){this._disabled=(0,E.Ig)(ze)}}}function Fe(we,ze){return class extends we{constructor(...U){super(...U),this.defaultColor=ze,this.color=ze}get color(){return this._color}set color(U){const L=U||this.defaultColor;L!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),L&&this._elementRef.nativeElement.classList.add(`mat-${L}`),this._color=L)}}}function Ue(we){return class extends we{constructor(...ze){super(...ze),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ze){this._disableRipple=(0,E.Ig)(ze)}}}function Xe(we,ze=0){return class extends we{constructor(...U){super(...U),this._tabIndex=ze,this.defaultTabIndex=ze}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(U){this._tabIndex=null!=U?(0,E.su)(U):this.defaultTabIndex}}}function te(we){return class extends we{constructor(...ze){super(...ze),this.stateChanges=new C.xQ,this.errorState=!1}updateErrorState(){const ze=this.errorState,le=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);le!==ze&&(this.errorState=le,this.stateChanges.next())}}}function Ve(we){return class extends we{constructor(...ze){super(...ze),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new R.y(U=>{this._isInitialized?this._notifySubscriber(U):this._pendingSubscribers.push(U)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ze){ze.next(),ze.complete()}}}const ve=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Oe(){return(0,e.f3M)(e.soG)}});class z{constructor(){this._localeChanges=new C.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(ze){return this.isDateInstance(ze)&&this.isValid(ze)?ze:null}deserialize(ze){return null==ze||this.isDateInstance(ze)&&this.isValid(ze)?ze:this.invalid()}setLocale(ze){this.locale=ze,this._localeChanges.next()}compareDate(ze,U){return this.getYear(ze)-this.getYear(U)||this.getMonth(ze)-this.getMonth(U)||this.getDate(ze)-this.getDate(U)}sameDate(ze,U){if(ze&&U){let L=this.isValid(ze),ne=this.isValid(U);return L&&ne?!this.compareDate(ze,U):L==ne}return ze==U}clampDate(ze,U,L){return U&&this.compareDate(ze,U)<0?U:L&&this.compareDate(ze,L)>0?L:ze}}const D=new e.OlP("mat-date-formats"),ge=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Te(we,ze){const U=Array(we);for(let L=0;L{class we extends z{constructor(U,L){super(),this.useUtcForDisplay=!1,super.setLocale(U)}getYear(U){return U.getFullYear()}getMonth(U){return U.getMonth()}getDate(U){return U.getDate()}getDayOfWeek(U){return U.getDay()}getMonthNames(U){const L=new Intl.DateTimeFormat(this.locale,{month:U,timeZone:"utc"});return Te(12,ne=>this._format(L,new Date(2017,ne,1)))}getDateNames(){const U=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Te(31,L=>this._format(U,new Date(2017,0,L+1)))}getDayOfWeekNames(U){const L=new Intl.DateTimeFormat(this.locale,{weekday:U,timeZone:"utc"});return Te(7,ne=>this._format(L,new Date(2017,0,ne+1)))}getYearName(U){const L=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(L,U)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(U){return this.getDate(this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+1,0))}clone(U){return new Date(U.getTime())}createDate(U,L,ne){let le=this._createDateWithOverflow(U,L,ne);return le.getMonth(),le}today(){return new Date}parse(U){return"number"==typeof U?new Date(U):U?new Date(Date.parse(U)):null}format(U,L){if(!this.isValid(U))throw Error("NativeDateAdapter: Cannot format invalid date.");const ne=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},L),{timeZone:"utc"}));return this._format(ne,U)}addCalendarYears(U,L){return this.addCalendarMonths(U,12*L)}addCalendarMonths(U,L){let ne=this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+L,this.getDate(U));return this.getMonth(ne)!=((this.getMonth(U)+L)%12+12)%12&&(ne=this._createDateWithOverflow(this.getYear(ne),this.getMonth(ne),0)),ne}addCalendarDays(U,L){return this._createDateWithOverflow(this.getYear(U),this.getMonth(U),this.getDate(U)+L)}toIso8601(U){return[U.getUTCFullYear(),this._2digit(U.getUTCMonth()+1),this._2digit(U.getUTCDate())].join("-")}deserialize(U){if("string"==typeof U){if(!U)return null;if(ge.test(U)){let L=new Date(U);if(this.isValid(L))return L}}return super.deserialize(U)}isDateInstance(U){return U instanceof Date}isValid(U){return!isNaN(U.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(U,L,ne){const le=new Date;return le.setFullYear(U,L,ne),le.setHours(0,0,0,0),le}_2digit(U){return("00"+U).slice(-2)}_format(U,L){const ne=new Date;return ne.setUTCFullYear(L.getFullYear(),L.getMonth(),L.getDate()),ne.setUTCHours(L.getHours(),L.getMinutes(),L.getSeconds(),L.getMilliseconds()),U.format(ne)}}return we.\u0275fac=function(U){return new(U||we)(e.LFG(ve,8),e.LFG(g.t4))},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac}),we})();const fe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Se=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({providers:[{provide:z,useClass:Ie}],imports:[[g.ud]]}),we})(),Ke=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({providers:[{provide:D,useValue:fe}],imports:[[Se]]}),we})(),nt=(()=>{class we{isErrorState(U,L){return!!(U&&U.invalid&&(U.touched||L&&L.submitted))}}return we.\u0275fac=function(U){return new(U||we)},we.\u0275prov=e.Yz7({token:we,factory:we.\u0275fac,providedIn:"root"}),we})(),je=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275dir=e.lG2({type:we,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),we})();function Q(we,ze,U="mat"){we.changes.pipe((0,I.O)(we)).subscribe(({length:L})=>{Ce(ze,`${U}-2-line`,!1),Ce(ze,`${U}-3-line`,!1),Ce(ze,`${U}-multi-line`,!1),2===L||3===L?Ce(ze,`${U}-${L}-line`,!0):L>3&&Ce(ze,`${U}-multi-line`,!0)})}function Ce(we,ze,U){we.nativeElement.classList.toggle(ze,U)}let re=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[j],j]}),we})();class k{constructor(ze,U,L){this._renderer=ze,this.element=U,this.config=L,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const pe={enterDuration:225,exitDuration:150},Ne=(0,g.i$)({passive:!0}),oe=["mousedown","touchstart"],_e=["mouseup","mouseleave","touchend","touchcancel"];class ${constructor(ze,U,L,ne){this._target=ze,this._ngZone=U,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ne.isBrowser&&(this._containerElement=(0,E.fI)(L))}fadeInRipple(ze,U,L={}){const ne=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),le=Object.assign(Object.assign({},pe),L.animation);L.centered&&(ze=ne.left+ne.width/2,U=ne.top+ne.height/2);const Le=L.radius||function i(we,ze,U){const L=Math.max(Math.abs(we-U.left),Math.abs(we-U.right)),ne=Math.max(Math.abs(ze-U.top),Math.abs(ze-U.bottom));return Math.sqrt(L*L+ne*ne)}(ze,U,ne),ct=ze-ne.left,bt=U-ne.top,xt=le.enterDuration,Yt=document.createElement("div");Yt.classList.add("mat-ripple-element"),Yt.style.left=ct-Le+"px",Yt.style.top=bt-Le+"px",Yt.style.height=2*Le+"px",Yt.style.width=2*Le+"px",null!=L.color&&(Yt.style.backgroundColor=L.color),Yt.style.transitionDuration=`${xt}ms`,this._containerElement.appendChild(Yt),function V(we){window.getComputedStyle(we).getPropertyValue("opacity")}(Yt),Yt.style.transform="scale(1)";const It=new k(this,Yt,L);return It.state=0,this._activeRipples.add(It),L.persistent||(this._mostRecentTransientRipple=It),this._runTimeoutOutsideZone(()=>{const Rt=It===this._mostRecentTransientRipple;It.state=1,!L.persistent&&(!Rt||!this._isPointerDown)&&It.fadeOut()},xt),It}fadeOutRipple(ze){const U=this._activeRipples.delete(ze);if(ze===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!U)return;const L=ze.element,ne=Object.assign(Object.assign({},pe),ze.config.animation);L.style.transitionDuration=`${ne.exitDuration}ms`,L.style.opacity="0",ze.state=2,this._runTimeoutOutsideZone(()=>{ze.state=3,L.remove()},ne.exitDuration)}fadeOutAll(){this._activeRipples.forEach(ze=>ze.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(ze=>{ze.config.persistent||ze.fadeOut()})}setupTriggerEvents(ze){const U=(0,E.fI)(ze);!U||U===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=U,this._registerEvents(oe))}handleEvent(ze){"mousedown"===ze.type?this._onMousedown(ze):"touchstart"===ze.type?this._onTouchStart(ze):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(_e),this._pointerUpEventsRegistered=!0)}_onMousedown(ze){const U=(0,A.X6)(ze),L=this._lastTouchStartEvent&&Date.now(){!ze.config.persistent&&(1===ze.state||ze.config.terminateOnPointerUp&&0===ze.state)&&ze.fadeOut()}))}_runTimeoutOutsideZone(ze,U=0){this._ngZone.runOutsideAngular(()=>setTimeout(ze,U))}_registerEvents(ze){this._ngZone.runOutsideAngular(()=>{ze.forEach(U=>{this._triggerElement.addEventListener(U,this,Ne)})})}_removeTriggerEvents(){this._triggerElement&&(oe.forEach(ze=>{this._triggerElement.removeEventListener(ze,this,Ne)}),this._pointerUpEventsRegistered&&_e.forEach(ze=>{this._triggerElement.removeEventListener(ze,this,Ne)}))}}const a=new e.OlP("mat-ripple-global-options");let d=(()=>{class we{constructor(U,L,ne,le,Le){this._elementRef=U,this._animationMode=Le,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=le||{},this._rippleRenderer=new $(this,L,U,ne)}get disabled(){return this._disabled}set disabled(U){U&&this.fadeOutAllNonPersistent(),this._disabled=U,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(U){this._trigger=U,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(U,L=0,ne){return"number"==typeof U?this._rippleRenderer.fadeInRipple(U,L,Object.assign(Object.assign({},this.rippleConfig),ne)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),U))}}return we.\u0275fac=function(U){return new(U||we)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(g.t4),e.Y36(a,8),e.Y36(m.Qb,8))},we.\u0275dir=e.lG2({type:we,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(U,L){2&U&&e.ekj("mat-ripple-unbounded",L.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"]}),we})(),l=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[j,g.ud],j]}),we})(),s=(()=>{class we{constructor(U){this._animationMode=U,this.state="unchecked",this.disabled=!1}}return we.\u0275fac=function(U){return new(U||we)(e.Y36(m.Qb,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(U,L){2&U&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===L.state)("mat-pseudo-checkbox-checked","checked"===L.state)("mat-pseudo-checkbox-disabled",L.disabled)("_mat-animation-noopable","NoopAnimations"===L._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(U,L){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),we})(),r=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[j]]}),we})();const t=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),h=new e.OlP("MatOptgroup");let We=0;class At{constructor(ze,U=!1){this.source=ze,this.isUserInput=U}}let Ht=(()=>{class we{constructor(U,L,ne,le){this._element=U,this._changeDetectorRef=L,this._parent=ne,this.group=le,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+We++,this.onSelectionChange=new e.vpe,this._stateChanges=new C.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(U){this._disabled=(0,E.Ig)(U)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(U,L){const ne=this._getHostElement();"function"==typeof ne.focus&&ne.focus(L)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(U){(U.keyCode===O.K5||U.keyCode===O.L_)&&!(0,O.Vb)(U)&&(this._selectViaInteraction(),U.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const U=this.viewValue;U!==this._mostRecentViewValue&&(this._mostRecentViewValue=U,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(U=!1){this.onSelectionChange.emit(new At(this,U))}}return we.\u0275fac=function(U){e.$Z()},we.\u0275dir=e.lG2({type:we,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),we})(),lt=(()=>{class we extends Ht{constructor(U,L,ne,le){super(U,L,ne,le)}}return we.\u0275fac=function(U){return new(U||we)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(t,8),e.Y36(h,8))},we.\u0275cmp=e.Xpm({type:we,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(U,L){1&U&&e.NdJ("click",function(){return L._selectViaInteraction()})("keydown",function(le){return L._handleKeydown(le)}),2&U&&(e.Ikx("id",L.id),e.uIk("tabindex",L._getTabIndex())("aria-selected",L._getAriaSelected())("aria-disabled",L.disabled.toString()),e.ekj("mat-selected",L.selected)("mat-option-multiple",L.multiple)("mat-active",L.active)("mat-option-disabled",L.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:q,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(U,L){1&U&&(e.F$t(),e.YNc(0,ie,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,Ae,2,1,"span",2),e._UZ(4,"div",3)),2&U&&(e.Q6J("ngIf",L.multiple),e.xp6(3),e.Q6J("ngIf",L.group&&L.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",L._getHostElement())("matRippleDisabled",L.disabled||L.disableRipple))},directives:[s,w.O5,d],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),we})();function Ut(we,ze,U){if(U.length){let L=ze.toArray(),ne=U.toArray(),le=0;for(let Le=0;LeU+L?Math.max(0,we-L+ze):U}let Lt=(()=>{class we{}return we.\u0275fac=function(U){return new(U||we)},we.\u0275mod=e.oAB({type:we}),we.\u0275inj=e.cJS({imports:[[l,w.ez,j,r]]}),we})()},86856:(Qe,be,p)=>{"use strict";p.d(be,{Mq:()=>bt,hl:()=>Bt,FA:()=>ot,nW:()=>ai});var e=p(15664),b=p(92845),_=p(47429),w=p(69808),g=p(5e3),A=p(47423),E=p(53435),C=p(90508),R=p(8929),I=p(42654),m=p(36787),O=p(21086),P=p(91159),W=p(72986),ie=p(1059),Ae=p(92198),q=p(50226),Me=p(63191),he=p(70925),De=p(41777),T=p(93075),N=p(67322),j=p(98833);const Y=["mat-calendar-body",""];function ee($e,vt){if(1&$e&&(g.TgZ(0,"tr",2),g.TgZ(1,"td",3),g._uU(2),g.qZA(),g.qZA()),2&$e){const F=g.oxw();g.xp6(1),g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F.numCols),g.xp6(1),g.hij(" ",F.label," ")}}function de($e,vt){if(1&$e&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&$e){const F=g.oxw(2);g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F._firstRowOffset),g.xp6(1),g.hij(" ",F._firstRowOffset>=F.labelMinRequiredCells?F.label:""," ")}}function ce($e,vt){if(1&$e){const F=g.EpF();g.TgZ(0,"td",7),g.TgZ(1,"button",8),g.NdJ("click",function(gt){const ri=g.CHM(F).$implicit;return g.oxw(2)._cellClicked(ri,gt)}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA(),g.qZA()}if(2&$e){const F=vt.$implicit,Ye=vt.index,gt=g.oxw().index,Dt=g.oxw();g.Udp("width",Dt._cellWidth)("padding-top",Dt._cellPadding)("padding-bottom",Dt._cellPadding),g.uIk("data-mat-row",gt)("data-mat-col",Ye),g.xp6(1),g.ekj("mat-calendar-body-disabled",!F.enabled)("mat-calendar-body-active",Dt._isActiveCell(gt,Ye))("mat-calendar-body-range-start",Dt._isRangeStart(F.compareValue))("mat-calendar-body-range-end",Dt._isRangeEnd(F.compareValue))("mat-calendar-body-in-range",Dt._isInRange(F.compareValue))("mat-calendar-body-comparison-bridge-start",Dt._isComparisonBridgeStart(F.compareValue,gt,Ye))("mat-calendar-body-comparison-bridge-end",Dt._isComparisonBridgeEnd(F.compareValue,gt,Ye))("mat-calendar-body-comparison-start",Dt._isComparisonStart(F.compareValue))("mat-calendar-body-comparison-end",Dt._isComparisonEnd(F.compareValue))("mat-calendar-body-in-comparison-range",Dt._isInComparisonRange(F.compareValue))("mat-calendar-body-preview-start",Dt._isPreviewStart(F.compareValue))("mat-calendar-body-preview-end",Dt._isPreviewEnd(F.compareValue))("mat-calendar-body-in-preview",Dt._isInPreview(F.compareValue)),g.Q6J("ngClass",F.cssClasses)("tabindex",Dt._isActiveCell(gt,Ye)?0:-1),g.uIk("aria-label",F.ariaLabel)("aria-disabled",!F.enabled||null)("aria-pressed",Dt._isSelected(F.compareValue))("aria-current",Dt.todayValue===F.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",Dt._isSelected(F.compareValue))("mat-calendar-body-comparison-identical",Dt._isComparisonIdentical(F.compareValue))("mat-calendar-body-today",Dt.todayValue===F.compareValue),g.xp6(1),g.hij(" ",F.displayValue," ")}}function Fe($e,vt){if(1&$e&&(g.TgZ(0,"tr",4),g.YNc(1,de,2,6,"td",5),g.YNc(2,ce,5,47,"td",6),g.qZA()),2&$e){const F=vt.$implicit,Ye=vt.index,gt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===Ye&>._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",F)}}function Ue($e,vt){if(1&$e&&(g.TgZ(0,"th",5),g._uU(1),g.qZA()),2&$e){const F=vt.$implicit;g.uIk("aria-label",F.long),g.xp6(1),g.hij(" ",F.narrow," ")}}const Xe=["*"];function te($e,vt){}function Ve($e,vt){if(1&$e){const F=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("_userSelection",function(gt){return g.CHM(F),g.oxw()._dateSelected(gt)}),g.qZA()}if(2&$e){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)("comparisonStart",F.comparisonStart)("comparisonEnd",F.comparisonEnd)}}function ve($e,vt){if(1&$e){const F=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("monthSelected",function(gt){return g.CHM(F),g.oxw()._monthSelectedInYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"month")}),g.qZA()}if(2&$e){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function Oe($e,vt){if(1&$e){const F=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("yearSelected",function(gt){return g.CHM(F),g.oxw()._yearSelectedInMultiYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"year")}),g.qZA()}if(2&$e){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function z($e,vt){}const D=["button"];function ge($e,vt){1&$e&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const Te=[[["","matDatepickerToggleIcon",""]]],Ie=["[matDatepickerToggleIcon]"];class nt{constructor(vt,F,Ye,gt,Dt={},ri=vt,ti){this.value=vt,this.displayValue=F,this.ariaLabel=Ye,this.enabled=gt,this.cssClasses=Dt,this.compareValue=ri,this.rawValue=ti}}let je=(()=>{class $e{constructor(F,Ye){this._elementRef=F,this._ngZone=Ye,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this._enterHandler=gt=>{if(this._skipNextFocus&&"focus"===gt.type)this._skipNextFocus=!1;else if(gt.target&&this.isRange){const Dt=this._getCellFromElement(gt.target);Dt&&this._ngZone.run(()=>this.previewChange.emit({value:Dt.enabled?Dt:null,event:gt}))}},this._leaveHandler=gt=>{null!==this.previewEnd&&this.isRange&>.target&&this._getCellFromElement(gt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:gt}))},Ye.runOutsideAngular(()=>{const gt=F.nativeElement;gt.addEventListener("mouseenter",this._enterHandler,!0),gt.addEventListener("focus",this._enterHandler,!0),gt.addEventListener("mouseleave",this._leaveHandler,!0),gt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(F,Ye){F.enabled&&this.selectedValueChange.emit({value:F.value,event:Ye})}_isSelected(F){return this.startValue===F||this.endValue===F}ngOnChanges(F){const Ye=F.numCols,{rows:gt,numCols:Dt}=this;(F.rows||Ye)&&(this._firstRowOffset=gt&>.length&>[0].length?Dt-gt[0].length:0),(F.cellAspectRatio||Ye||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Dt+"%"),(Ye||!this._cellWidth)&&(this._cellWidth=100/Dt+"%")}ngOnDestroy(){const F=this._elementRef.nativeElement;F.removeEventListener("mouseenter",this._enterHandler,!0),F.removeEventListener("focus",this._enterHandler,!0),F.removeEventListener("mouseleave",this._leaveHandler,!0),F.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(F,Ye){let gt=F*this.numCols+Ye;return F&&(gt-=this._firstRowOffset),gt==this.activeCell}_focusActiveCell(F=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>{const Ye=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ye&&(F||(this._skipNextFocus=!0),Ye.focus())})})}_isRangeStart(F){return Ce(F,this.startValue,this.endValue)}_isRangeEnd(F){return re(F,this.startValue,this.endValue)}_isInRange(F){return k(F,this.startValue,this.endValue,this.isRange)}_isComparisonStart(F){return Ce(F,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(F,Ye,gt){if(!this._isComparisonStart(F)||this._isRangeStart(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt-1];if(!Dt){const ri=this.rows[Ye-1];Dt=ri&&ri[ri.length-1]}return Dt&&!this._isRangeEnd(Dt.compareValue)}_isComparisonBridgeEnd(F,Ye,gt){if(!this._isComparisonEnd(F)||this._isRangeEnd(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt+1];if(!Dt){const ri=this.rows[Ye+1];Dt=ri&&ri[0]}return Dt&&!this._isRangeStart(Dt.compareValue)}_isComparisonEnd(F){return re(F,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(F){return k(F,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(F){return this.comparisonStart===this.comparisonEnd&&F===this.comparisonStart}_isPreviewStart(F){return Ce(F,this.previewStart,this.previewEnd)}_isPreviewEnd(F){return re(F,this.previewStart,this.previewEnd)}_isInPreview(F){return k(F,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(F){let Ye;if(Q(F)?Ye=F:Q(F.parentNode)&&(Ye=F.parentNode),Ye){const gt=Ye.getAttribute("data-mat-row"),Dt=Ye.getAttribute("data-mat-col");if(gt&&Dt)return this.rows[parseInt(gt)][parseInt(Dt)]}return null}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(g.SBq),g.Y36(g.R0b))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:Y,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(F,Ye){1&F&&(g.YNc(0,ee,3,6,"tr",0),g.YNc(1,Fe,3,2,"tr",1)),2&F&&(g.Q6J("ngIf",Ye._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),$e})();function Q($e){return"TD"===$e.nodeName}function Ce($e,vt,F){return null!==F&&vt!==F&&$e=vt&&$e===F}function k($e,vt,F,Ye){return Ye&&null!==vt&&null!==F&&vt!==F&&$e>=vt&&$e<=F}class pe{constructor(vt,F){this.start=vt,this.end=F}}let Z=(()=>{class $e{constructor(F,Ye){this.selection=F,this._adapter=Ye,this._selectionChanged=new R.xQ,this.selectionChanged=this._selectionChanged,this.selection=F}updateSelection(F,Ye){const gt=this.selection;this.selection=F,this._selectionChanged.next({selection:F,source:Ye,oldValue:gt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(F){return this._adapter.isDateInstance(F)&&this._adapter.isValid(F)}}return $e.\u0275fac=function(F){g.$Z()},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),Ne=(()=>{class $e extends Z{constructor(F){super(null,F)}add(F){super.updateSelection(F,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const F=new $e(this._adapter);return F.updateSelection(this.selection,this),F}}return $e.\u0275fac=function(F){return new(F||$e)(g.LFG(C._A))},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac}),$e})();const $={provide:Z,deps:[[new g.FiY,new g.tp0,Z],C._A],useFactory:function _e($e,vt){return $e||new Ne(vt)}},a=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let t=(()=>{class $e{constructor(F,Ye,gt,Dt,ri){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rangeStrategy=ri,this._rerenderSubscription=I.w.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){const Ye=this._activeDate,gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ye,this._activeDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof pe?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnChanges(F){const Ye=F.comparisonStart||F.comparisonEnd;Ye&&!Ye.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(F){const Ye=F.value,gt=this._dateAdapter.getYear(this.activeDate),Dt=this._dateAdapter.getMonth(this.activeDate),ri=this._dateAdapter.createDate(gt,Dt,Ye);let ti,Di;this._selected instanceof pe?(ti=this._getDateInCurrentMonth(this._selected.start),Di=this._getDateInCurrentMonth(this._selected.end)):ti=Di=this._getDateInCurrentMonth(this._selected),(ti!==Ye||Di!==Ye)&&this.selectedChange.emit(ri),this._userSelection.emit({value:ri,event:F.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case P.Ku:this.activeDate=F.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case P.VM:this.activeDate=F.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case P.K5:case P.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&F.preventDefault());case P.hY:return void(null!=this._previewEnd&&!(0,P.Vb)(F)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:F}),F.preventDefault(),F.stopPropagation()));default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===P.L_||F.keyCode===P.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let F=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(F)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(F){this._matCalendarBody._focusActiveCell(F)}_previewChanged({event:F,value:Ye}){if(this._rangeStrategy){const Dt=this._rangeStrategy.createPreview(Ye?Ye.rawValue:null,this.selected,F);this._previewStart=this._getCellCompareValue(Dt.start),this._previewEnd=this._getCellCompareValue(Dt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const F=this._dateAdapter.getFirstDayOfWeek(),Ye=this._dateAdapter.getDayOfWeekNames("narrow");let Dt=this._dateAdapter.getDayOfWeekNames("long").map((ri,ti)=>({long:ri,narrow:Ye[ti]}));this._weekdays=Dt.slice(F).concat(Dt.slice(0,F))}_createWeekCells(){const F=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ye=this._dateAdapter.getDateNames();this._weeks=[[]];for(let gt=0,Dt=this._firstWeekOffset;gt=0)&&(!this.maxDate||this._dateAdapter.compareDate(F,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(F))}_getDateInCurrentMonth(F){return F&&this._hasSameMonthAndYear(F,this.activeDate)?this._dateAdapter.getDate(F):null}_hasSameMonthAndYear(F,Ye){return!(!F||!Ye||this._dateAdapter.getMonth(F)!=this._dateAdapter.getMonth(Ye)||this._dateAdapter.getYear(F)!=this._dateAdapter.getYear(Ye))}_getCellCompareValue(F){if(F){const Ye=this._dateAdapter.getYear(F),gt=this._dateAdapter.getMonth(F),Dt=this._dateAdapter.getDate(F);return new Date(Ye,gt,Dt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(F){F instanceof pe?(this._rangeStart=this._getCellCompareValue(F.start),this._rangeEnd=this._getCellCompareValue(F.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(F),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(F){return!this.dateFilter||this.dateFilter(F)}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(g.sBO),g.Y36(C.sG,8),g.Y36(C._A,8),g.Y36(q.Is,8),g.Y36(a,8))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-month-view"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(je,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._matCalendarBody=gt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[g.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"]],template:function(F,Ye){1&F&&(g.TgZ(0,"table",0),g.TgZ(1,"thead",1),g.TgZ(2,"tr"),g.YNc(3,Ue,2,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA(),g.qZA(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(Dt){return Ye._dateSelected(Dt)})("previewChange",function(Dt){return Ye._previewChanged(Dt)})("keyup",function(Dt){return Ye._handleCalendarBodyKeyup(Dt)})("keydown",function(Dt){return Ye._handleCalendarBodyKeydown(Dt)}),g.qZA(),g.qZA()),2&F&&(g.xp6(3),g.Q6J("ngForOf",Ye._weekdays),g.xp6(3),g.Q6J("label",Ye._monthLabel)("rows",Ye._weeks)("todayValue",Ye._todayDate)("startValue",Ye._rangeStart)("endValue",Ye._rangeEnd)("comparisonStart",Ye._comparisonRangeStart)("comparisonEnd",Ye._comparisonRangeEnd)("previewStart",Ye._previewStart)("previewEnd",Ye._previewEnd)("isRange",Ye._isRange)("labelMinRequiredCells",3)("activeCell",Ye._dateAdapter.getDate(Ye.activeDate)-1))},directives:[je,w.sg],encapsulation:2,changeDetection:0}),$e})();const n=24;let c=(()=>{class $e{constructor(F,Ye,gt){this._changeDetectorRef=F,this._dateAdapter=Ye,this._dir=gt,this._rerenderSubscription=I.w.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),h(this._dateAdapter,Ye,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof pe?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedYear(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ye=this._dateAdapter.getYear(this._activeDate)-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let gt=0,Dt=[];gtthis._createCellForYear(ri))),Dt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(F){const Ye=F.value;this.yearSelected.emit(this._dateAdapter.createDate(Ye,0,1));let gt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ye,gt,1));this.selectedChange.emit(this._dateAdapter.createDate(Ye,gt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?-240:-n);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?240:n);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===P.L_||F.keyCode===P.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_getActiveCell(){return x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(F){const Ye=this._dateAdapter.createDate(F,0,1),gt=this._dateAdapter.getYearName(Ye),Dt=this.dateClass?this.dateClass(Ye,"multi-year"):void 0;return new nt(F,gt,gt,this._shouldEnableYear(F),Dt)}_shouldEnableYear(F){if(null==F||this.maxDate&&F>this._dateAdapter.getYear(this.maxDate)||this.minDate&&F{class $e{constructor(F,Ye,gt,Dt){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rerenderSubscription=I.w.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ye)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof pe?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedMonth(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ie.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(F){const Ye=F.value,gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,1);this.monthSelected.emit(gt);const Dt=this._dateAdapter.getNumDaysInMonth(gt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case P.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?1:-1);break;case P.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?-1:1);break;case P.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case P.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case P.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case P.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case P.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?-10:-1);break;case P.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?10:1);break;case P.K5:case P.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===P.L_||F.keyCode===P.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let F=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ye=>Ye.map(gt=>this._createCellForMonth(gt,F[gt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(F){return F&&this._dateAdapter.getYear(F)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(F):null}_createCellForMonth(F,Ye){const gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),F,1),Dt=this._dateAdapter.format(gt,this._dateFormats.display.monthYearA11yLabel),ri=this.dateClass?this.dateClass(gt,"year"):void 0;return new nt(F,Ye.toLocaleUpperCase(),Dt,this._shouldEnableMonth(F),ri)}_shouldEnableMonth(F){const Ye=this._dateAdapter.getYear(this.activeDate);if(null==F||this._isYearAndMonthAfterMaxDate(Ye,F)||this._isYearAndMonthBeforeMinDate(Ye,F))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(Ye,F,1);this._dateAdapter.getMonth(Dt)==F;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isYearAndMonthAfterMaxDate(F,Ye){if(this.maxDate){const gt=this._dateAdapter.getYear(this.maxDate),Dt=this._dateAdapter.getMonth(this.maxDate);return F>gt||F===gt&&Ye>Dt}return!1}_isYearAndMonthBeforeMinDate(F,Ye){if(this.minDate){const gt=this._dateAdapter.getYear(this.minDate),Dt=this._dateAdapter.getMonth(this.minDate);return F{class $e{constructor(){this.changes=new R.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(F,Ye){return`${F} \u2013 ${Ye}`}}return $e.\u0275fac=function(F){return new(F||$e)},$e.\u0275prov=g.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"}),$e})(),Ut=0,mt=(()=>{class $e{constructor(F,Ye,gt,Dt,ri){this._intl=F,this.calendar=Ye,this._dateAdapter=gt,this._dateFormats=Dt,this._buttonDescriptionId="mat-calendar-button-"+Ut++,this.calendar.stateChanges.subscribe(()=>ri.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Ye=this._dateAdapter.getYear(this.calendar.activeDate)-x(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),gt=Ye+n-1,Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ye,0,1)),ri=this._dateAdapter.getYearName(this._dateAdapter.createDate(gt,0,1));return this._intl.formatYearRange(Dt,ri)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-n)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:n)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(F,Ye){return"month"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye)&&this._dateAdapter.getMonth(F)==this._dateAdapter.getMonth(Ye):"year"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye):h(this._dateAdapter,F,Ye,this.calendar.minDate,this.calendar.maxDate)}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(lt),g.Y36((0,g.Gpc)(()=>Lt)),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Xe,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(F,Ye){1&F&&(g.F$t(),g.TgZ(0,"div",0),g.TgZ(1,"div",1),g.TgZ(2,"button",2),g.NdJ("click",function(){return Ye.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA(),g.qZA(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return Ye.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return Ye.nextClicked()}),g.qZA(),g.qZA(),g.qZA()),2&F&&(g.xp6(2),g.uIk("aria-label",Ye.periodButtonLabel)("aria-describedby",Ye._buttonDescriptionId),g.xp6(1),g.uIk("id",Ye._buttonDescriptionId),g.xp6(1),g.Oqu(Ye.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==Ye.calendar.currentView),g.xp6(4),g.Q6J("disabled",!Ye.previousEnabled()),g.uIk("aria-label",Ye.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!Ye.nextEnabled()),g.uIk("aria-label",Ye.nextButtonLabel))},directives:[A.lW,e.Qr],encapsulation:2,changeDetection:0}),$e})(),Lt=(()=>{class $e{constructor(F,Ye,gt,Dt){this._dateAdapter=Ye,this._dateFormats=gt,this._changeDetectorRef=Dt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new R.xQ,this._intlChanges=F.changes.subscribe(()=>{Dt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get selected(){return this._selected}set selected(F){this._selected=F instanceof pe?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get activeDate(){return this._clampedActiveDate}set activeDate(F){this._clampedActiveDate=this._dateAdapter.clampDate(F,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(F){const Ye=this._currentView!==F?F:null;this._currentView=F,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ye&&this.viewChanged.emit(Ye)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||mt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(F){const Ye=F.minDate||F.maxDate||F.dateFilter;if(Ye&&!Ye.firstChange){const gt=this._getCurrentViewComponent();gt&&(this._changeDetectorRef.detectChanges(),gt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(F){const Ye=F.value;(this.selected instanceof pe||Ye&&!this._dateAdapter.sameDate(Ye,this.selected))&&this.selectedChange.emit(Ye),this._userSelection.emit(F)}_yearSelectedInMultiYearView(F){this.yearSelected.emit(F)}_monthSelectedInYearView(F){this.monthSelected.emit(F)}_goToDateInView(F,Ye){this.activeDate=F,this.currentView=Ye}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(lt),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-calendar"]],viewQuery:function(F,Ye){if(1&F&&(g.Gf(t,5),g.Gf(Ht,5),g.Gf(c,5)),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye.monthView=gt.first),g.iGM(gt=g.CRH())&&(Ye.yearView=gt.first),g.iGM(gt=g.CRH())&&(Ye.multiYearView=gt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([$]),g.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(F,Ye){1&F&&(g.YNc(0,te,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,Ve,1,8,"mat-month-view",2),g.YNc(3,ve,1,6,"mat-year-view",3),g.YNc(4,Oe,1,6,"mat-multi-year-view",4),g.qZA()),2&F&&(g.Q6J("cdkPortalOutlet",Ye._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",Ye.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},directives:[t,Ht,c,_.Pl,e.kH,w.RF,w.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),$e})();const we={transformPanel:(0,De.X$)("transformPanel",[(0,De.eR)("void => enter-dropdown",(0,De.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,De.F4)([(0,De.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,De.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,De.eR)("void => enter-dialog",(0,De.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,De.F4)([(0,De.oB)({opacity:0,transform:"scale(0.7)"}),(0,De.oB)({transform:"none",opacity:1})]))),(0,De.eR)("* => void",(0,De.jt)("100ms linear",(0,De.oB)({opacity:0})))]),fadeInCalendar:(0,De.X$)("fadeInCalendar",[(0,De.SB)("void",(0,De.oB)({opacity:0})),(0,De.SB)("enter",(0,De.oB)({opacity:1})),(0,De.eR)("void => *",(0,De.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ze=0;const U=new g.OlP("mat-datepicker-scroll-strategy"),ne={provide:U,deps:[b.aV],useFactory:function L($e){return()=>$e.scrollStrategies.reposition()}},le=(0,C.pj)(class{constructor($e){this._elementRef=$e}});let Le=(()=>{class $e extends le{constructor(F,Ye,gt,Dt,ri,ti){super(F),this._changeDetectorRef=Ye,this._globalModel=gt,this._dateAdapter=Dt,this._rangeSelectionStrategy=ri,this._subscriptions=new I.w,this._animationDone=new R.xQ,this._actionsPortal=null,this._closeButtonText=ti.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(F){const Ye=this._model.selection,gt=F.value,Dt=Ye instanceof pe;if(Dt&&this._rangeSelectionStrategy){const ri=this._rangeSelectionStrategy.selectionFinished(gt,Ye,F.event);this._model.updateSelection(ri,this)}else gt&&(Dt||!this._dateAdapter.sameDate(gt,Ye))&&this._model.add(gt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(Z),g.Y36(C._A),g.Y36(a,8),g.Y36(lt))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-content"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(Lt,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._calendar=gt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(F,Ye){1&F&&g.WFA("@transformPanel.done",function(){return Ye._animationDone.next()}),2&F&&(g.d8E("@transformPanel",Ye._animationState),g.ekj("mat-datepicker-content-touch",Ye.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(F,Ye){if(1&F&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-calendar",1),g.NdJ("yearSelected",function(Dt){return Ye.datepicker._selectYear(Dt)})("monthSelected",function(Dt){return Ye.datepicker._selectMonth(Dt)})("viewChanged",function(Dt){return Ye.datepicker._viewChanged(Dt)})("_userSelection",function(Dt){return Ye._handleUserSelection(Dt)}),g.qZA(),g.YNc(2,z,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return Ye._closeButtonFocused=!0})("blur",function(){return Ye._closeButtonFocused=!1})("click",function(){return Ye.datepicker.close()}),g._uU(4),g.qZA(),g.qZA()),2&F){let gt;g.ekj("mat-datepicker-content-container-with-custom-header",Ye.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ye._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(gt=Ye._dialogLabelId)&&void 0!==gt?gt:void 0),g.xp6(1),g.Q6J("id",Ye.datepicker.id)("ngClass",Ye.datepicker.panelClass)("startAt",Ye.datepicker.startAt)("startView",Ye.datepicker.startView)("minDate",Ye.datepicker._getMinDate())("maxDate",Ye.datepicker._getMaxDate())("dateFilter",Ye.datepicker._getDateFilter())("headerComponent",Ye.datepicker.calendarHeaderComponent)("selected",Ye._getSelected())("dateClass",Ye.datepicker.dateClass)("comparisonStart",Ye.comparisonStart)("comparisonEnd",Ye.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",Ye._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!Ye._closeButtonFocused),g.Q6J("color",Ye.color||"primary"),g.xp6(1),g.Oqu(Ye._closeButtonText)}},directives:[Lt,A.lW,e.mK,w.mk,_.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[we.transformPanel,we.fadeInCalendar]},changeDetection:0}),$e})(),ct=(()=>{class $e{constructor(F,Ye,gt,Dt,ri,ti,Di){this._overlay=F,this._ngZone=Ye,this._viewContainerRef=gt,this._dateAdapter=ri,this._dir=ti,this._model=Di,this._inputStateChanges=I.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+ze++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new R.xQ,this._scrollStrategy=Dt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(F){this._color=F}get touchUi(){return this._touchUi}set touchUi(F){this._touchUi=(0,Me.Ig)(F)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(F){const Ye=(0,Me.Ig)(F);Ye!==this._disabled&&(this._disabled=Ye,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(F){this._restoreFocus=(0,Me.Ig)(F)}get panelClass(){return this._panelClass}set panelClass(F){this._panelClass=(0,Me.du)(F)}get opened(){return this._opened}set opened(F){(0,Me.Ig)(F)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(F){const Ye=F.xPosition||F.yPosition;if(Ye&&!Ye.firstChange&&this._overlayRef){const gt=this._overlayRef.getConfig().positionStrategy;gt instanceof b._G&&(this._setConnectedPositions(gt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(F){this._model.add(F)}_selectYear(F){this.yearSelected.emit(F)}_selectMonth(F){this.monthSelected.emit(F)}_viewChanged(F){this.viewChanged.emit(F)}registerInput(F){return this._inputStateChanges.unsubscribe(),this.datepickerInput=F,this._inputStateChanges=F.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(F){this._actionsPortal=F}removeActions(F){F===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,he.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Ye=this._componentRef.instance;Ye._startExitAnimation(),Ye._animationDone.pipe((0,W.q)(1)).subscribe(()=>this._destroyOverlay())}const F=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(F)):F()}_applyPendingSelection(){var F,Ye;null===(Ye=null===(F=this._componentRef)||void 0===F?void 0:F.instance)||void 0===Ye||Ye._applyPendingSelection()}_forwardContentValues(F){F.datepicker=this,F.color=this.color,F._actionsPortal=this._actionsPortal,F._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const F=this.touchUi,Ye=new _.C5(Le,this._viewContainerRef),gt=this._overlayRef=this._overlay.create(new b.X_({positionStrategy:F?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[F?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:F?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(F?"dialog":"popup")}));this._getCloseStream(gt).subscribe(Dt=>{Dt&&Dt.preventDefault(),this.close()}),this._componentRef=gt.attach(Ye),this._forwardContentValues(this._componentRef.instance),F||this._ngZone.onStable.pipe((0,W.q)(1)).subscribe(()=>gt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const F=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(F)}_setConnectedPositions(F){const Ye="end"===this.xPosition?"end":"start",gt="start"===Ye?"end":"start",Dt="above"===this.yPosition?"bottom":"top",ri="top"===Dt?"bottom":"top";return F.withPositions([{originX:Ye,originY:ri,overlayX:Ye,overlayY:Dt},{originX:Ye,originY:Dt,overlayX:Ye,overlayY:ri},{originX:gt,originY:ri,overlayX:gt,overlayY:Dt},{originX:gt,originY:Dt,overlayX:gt,overlayY:ri}])}_getCloseStream(F){return(0,m.T)(F.backdropClick(),F.detachments(),F.keydownEvents().pipe((0,Ae.h)(Ye=>Ye.keyCode===P.hY&&!(0,P.Vb)(Ye)||this.datepickerInput&&(0,P.Vb)(Ye,"altKey")&&Ye.keyCode===P.LH)))}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(b.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(U),g.Y36(C._A,8),g.Y36(q.Is,8),g.Y36(Z))},$e.\u0275dir=g.lG2({type:$e,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[g.TTD]}),$e})(),bt=(()=>{class $e extends ct{}return $e.\u0275fac=function(){let vt;return function(Ye){return(vt||(vt=g.n5z($e)))(Ye||$e)}}(),$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([$,{provide:ct,useExisting:$e}]),g.qOj],decls:0,vars:0,template:function(F,Ye){},encapsulation:2,changeDetection:0}),$e})();class xt{constructor(vt,F){this.target=vt,this.targetElement=F,this.value=this.target.value}}let Yt=(()=>{class $e{constructor(F,Ye,gt){this._elementRef=F,this._dateAdapter=Ye,this._dateFormats=gt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new R.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=I.w.EMPTY,this._localeSubscription=I.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value));return!ri||this._matchesFilter(ri)?null:{matDatepickerFilter:!0}},this._minValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMinDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)<=0?null:{matDatepickerMin:{min:ti,actual:ri}}},this._maxValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMaxDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)>=0?null:{matDatepickerMax:{max:ti,actual:ri}}},this._lastValueValid=!1,this._localeSubscription=Ye.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(F){this._assignValueProgrammatically(F)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(F){const Ye=(0,Me.Ig)(F),gt=this._elementRef.nativeElement;this._disabled!==Ye&&(this._disabled=Ye,this.stateChanges.next(void 0)),Ye&&this._isInitialized&>.blur&>.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(F){this._model=F,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ye=>{if(this._shouldHandleChangeEvent(Ye)){const gt=this._getValueFromModel(Ye.selection);this._lastValueValid=this._isValidValue(gt),this._cvaOnChange(gt),this._onTouched(),this._formatValue(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(F){(function It($e,vt){const F=Object.keys($e);for(let Ye of F){const{previousValue:gt,currentValue:Dt}=$e[Ye];if(!vt.isDateInstance(gt)||!vt.isDateInstance(Dt))return!0;if(!vt.sameDate(gt,Dt))return!0}return!1})(F,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(F){this._validatorOnChange=F}validate(F){return this._validator?this._validator(F):null}writeValue(F){this._assignValueProgrammatically(F)}registerOnChange(F){this._cvaOnChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F}_onKeydown(F){F.altKey&&F.keyCode===P.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),F.preventDefault())}_onInput(F){const Ye=this._lastValueValid;let gt=this._dateAdapter.parse(F,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(gt),gt=this._dateAdapter.getValidDateOrNull(gt),this._dateAdapter.sameDate(gt,this.value)?(F&&!this.value&&this._cvaOnChange(gt),Ye!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(gt),this._cvaOnChange(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(F){this._elementRef.nativeElement.value=F?this._dateAdapter.format(F,this._dateFormats.display.dateInput):""}_assignValue(F){this._model?(this._assignValueToModel(F),this._pendingValue=null):this._pendingValue=F}_isValidValue(F){return!F||this._dateAdapter.isValid(F)}_parentDisabled(){return!1}_assignValueProgrammatically(F){F=this._dateAdapter.deserialize(F),this._lastValueValid=this._isValidValue(F),F=this._dateAdapter.getValidDateOrNull(F),this._assignValue(F),this._formatValue(F)}_matchesFilter(F){const Ye=this._getDateFilter();return!Ye||Ye(F)}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8))},$e.\u0275dir=g.lG2({type:$e,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),$e})();const Rt={provide:T.JU,useExisting:(0,g.Gpc)(()=>Bt),multi:!0},Et={provide:T.Cf,useExisting:(0,g.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class $e extends Yt{constructor(F,Ye,gt,Dt){super(F,Ye,gt),this._formField=Dt,this._closedSubscription=I.w.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker(F){F&&(this._datepicker=F,this._closedSubscription=F.closedStream.subscribe(()=>this._onTouched()),this._registerModel(F.registerInput(this)))}get min(){return this._min}set min(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._min)||(this._min=Ye,this._validatorOnChange())}get max(){return this._max}set max(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._max)||(this._max=Ye,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(F){const Ye=this._matchesFilter(this.value);this._dateFilter=F,this._matchesFilter(this.value)!==Ye&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(F){return F}_assignValueToModel(F){this._model&&this._model.updateSelection(F,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(F){return F.source!==this}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(N.G_,8))},$e.\u0275dir=g.lG2({type:$e,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(F,Ye){1&F&&g.NdJ("input",function(Dt){return Ye._onInput(Dt.target.value)})("change",function(){return Ye._onChange()})("blur",function(){return Ye._onBlur()})("keydown",function(Dt){return Ye._onKeydown(Dt)}),2&F&&(g.Ikx("disabled",Ye.disabled),g.uIk("aria-haspopup",Ye._datepicker?"dialog":null)("aria-owns",(null==Ye._datepicker?null:Ye._datepicker.opened)&&Ye._datepicker.id||null)("min",Ye.min?Ye._dateAdapter.toIso8601(Ye.min):null)("max",Ye.max?Ye._dateAdapter.toIso8601(Ye.max):null)("data-mat-calendar",Ye._datepicker?Ye._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([Rt,Et,{provide:j.Jk,useExisting:$e}]),g.qOj]}),$e})(),Jt=(()=>{class $e{}return $e.\u0275fac=function(F){return new(F||$e)},$e.\u0275dir=g.lG2({type:$e,selectors:[["","matDatepickerToggleIcon",""]]}),$e})(),ai=(()=>{class $e{constructor(F,Ye,gt){this._intl=F,this._changeDetectorRef=Ye,this._stateChanges=I.w.EMPTY;const Dt=Number(gt);this.tabIndex=Dt||0===Dt?Dt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(F){this._disabled=(0,Me.Ig)(F)}ngOnChanges(F){F.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(F){this.datepicker&&!this.disabled&&(this.datepicker.open(),F.stopPropagation())}_watchStateChanges(){const F=this.datepicker?this.datepicker.stateChanges:(0,O.of)(),Ye=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,O.of)(),gt=this.datepicker?(0,m.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,O.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,m.T)(this._intl.changes,F,Ye,gt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return $e.\u0275fac=function(F){return new(F||$e)(g.Y36(lt),g.Y36(g.sBO),g.$8M("tabindex"))},$e.\u0275cmp=g.Xpm({type:$e,selectors:[["mat-datepicker-toggle"]],contentQueries:function(F,Ye,gt){if(1&F&&g.Suo(gt,Jt,5),2&F){let Dt;g.iGM(Dt=g.CRH())&&(Ye._customIcon=Dt.first)}},viewQuery:function(F,Ye){if(1&F&&g.Gf(D,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._button=gt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(F,Ye){1&F&&g.NdJ("click",function(Dt){return Ye._open(Dt)}),2&F&&(g.uIk("tabindex",null)("data-mat-calendar",Ye.datepicker?Ye.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",Ye.datepicker&&Ye.datepicker.opened)("mat-accent",Ye.datepicker&&"accent"===Ye.datepicker.color)("mat-warn",Ye.datepicker&&"warn"===Ye.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:Ie,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(F,Ye){1&F&&(g.F$t(Te),g.TgZ(0,"button",0,1),g.YNc(2,ge,2,0,"svg",2),g.Hsn(3),g.qZA()),2&F&&(g.Q6J("disabled",Ye.disabled)("disableRipple",Ye.disableRipple),g.uIk("aria-haspopup",Ye.datepicker?"dialog":null)("aria-label",Ye.ariaLabel||Ye._intl.openCalendarLabel)("tabindex",Ye.disabled?-1:Ye.tabIndex),g.xp6(2),g.Q6J("ngIf",!Ye._customIcon))},directives:[A.lW,w.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),$e})(),ot=(()=>{class $e{}return $e.\u0275fac=function(F){return new(F||$e)},$e.\u0275mod=g.oAB({type:$e}),$e.\u0275inj=g.cJS({providers:[lt,ne],imports:[[w.ez,A.ot,b.U8,e.rt,_.eL,C.BQ],E.ZD]}),$e})()},48966:(Qe,be,p)=>{"use strict";p.d(be,{WI:()=>Fe,uw:()=>z,H8:()=>Se,vA:()=>De,xY:()=>fe,Is:()=>Je,so:()=>de,uh:()=>Ie});var e=p(92845),b=p(47429),_=p(5e3),w=p(90508),g=p(50226),A=p(8929),E=p(88514),C=p(42654),R=p(21086),I=p(92198),m=p(72986),O=p(1059),P=p(70925),W=p(69808),ie=p(41777),Ae=p(15664),q=p(91159),Me=p(76360);function he(nt,je){}class De{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const T={dialogContainer:(0,ie.X$)("dialogContainer",[(0,ie.SB)("void, exit",(0,ie.oB)({opacity:0,transform:"scale(0.7)"})),(0,ie.SB)("enter",(0,ie.oB)({transform:"none"})),(0,ie.eR)("* => enter",(0,ie.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ie.oB)({transform:"none",opacity:1}))),(0,ie.eR)("* => void, * => exit",(0,ie.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ie.oB)({opacity:0})))])};let j=(()=>{class nt extends b.en{constructor(Q,Ce,re,k,pe,Z,Ne,oe){super(),this._elementRef=Q,this._focusTrapFactory=Ce,this._changeDetectorRef=re,this._config=pe,this._interactivityChecker=Z,this._ngZone=Ne,this._focusMonitor=oe,this._animationStateChanged=new _.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=_e=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(_e)),this._ariaLabelledBy=pe.ariaLabelledBy||null,this._document=k}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(Q){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Q)}attachTemplatePortal(Q){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Q)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Q,Ce){this._interactivityChecker.isFocusable(Q)||(Q.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Q.addEventListener("blur",()=>Q.removeAttribute("tabindex")),Q.addEventListener("mousedown",()=>Q.removeAttribute("tabindex"))})),Q.focus(Ce)}_focusByCssSelector(Q,Ce){let re=this._elementRef.nativeElement.querySelector(Q);re&&this._forceFocus(re,Ce)}_trapFocus(){const Q=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Q.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ce=>{Ce||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 Q=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Q&&"function"==typeof Q.focus){const Ce=(0,P.ht)(),re=this._elementRef.nativeElement;(!Ce||Ce===this._document.body||Ce===re||re.contains(Ce))&&(this._focusMonitor?(this._focusMonitor.focusVia(Q,this._closeInteractionType),this._closeInteractionType=null):Q.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,P.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Q=this._elementRef.nativeElement,Ce=(0,P.ht)();return Q===Ce||Q.contains(Ce)}}return nt.\u0275fac=function(Q){return new(Q||nt)(_.Y36(_.SBq),_.Y36(Ae.qV),_.Y36(_.sBO),_.Y36(W.K0,8),_.Y36(De),_.Y36(Ae.ic),_.Y36(_.R0b),_.Y36(Ae.tE))},nt.\u0275dir=_.lG2({type:nt,viewQuery:function(Q,Ce){if(1&Q&&_.Gf(b.Pl,7),2&Q){let re;_.iGM(re=_.CRH())&&(Ce._portalOutlet=re.first)}},features:[_.qOj]}),nt})(),Y=(()=>{class nt extends j{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Q,totalTime:Ce}){"enter"===Q?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ce})):"exit"===Q&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Ce}))}_onAnimationStart({toState:Q,totalTime:Ce}){"enter"===Q?this._animationStateChanged.next({state:"opening",totalTime:Ce}):("exit"===Q||"void"===Q)&&this._animationStateChanged.next({state:"closing",totalTime:Ce})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return nt.\u0275fac=function(){let je;return function(Ce){return(je||(je=_.n5z(nt)))(Ce||nt)}}(),nt.\u0275cmp=_.Xpm({type:nt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Q,Ce){1&Q&&_.WFA("@dialogContainer.start",function(k){return Ce._onAnimationStart(k)})("@dialogContainer.done",function(k){return Ce._onAnimationDone(k)}),2&Q&&(_.Ikx("id",Ce._id),_.uIk("role",Ce._config.role)("aria-labelledby",Ce._config.ariaLabel?null:Ce._ariaLabelledBy)("aria-label",Ce._config.ariaLabel)("aria-describedby",Ce._config.ariaDescribedBy||null),_.d8E("@dialogContainer",Ce._state))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Q,Ce){1&Q&&_.YNc(0,he,0,0,"ng-template",0)},directives:[b.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[T.dialogContainer]}}),nt})(),ee=0;class de{constructor(je,Q,Ce="mat-dialog-"+ee++){this._overlayRef=je,this._containerInstance=Q,this.id=Ce,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.xQ,this._afterClosed=new A.xQ,this._beforeClosed=new A.xQ,this._state=0,Q._id=Ce,Q._animationStateChanged.pipe((0,I.h)(re=>"opened"===re.state),(0,m.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Q._animationStateChanged.pipe((0,I.h)(re=>"closed"===re.state),(0,m.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),je.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),je.keydownEvents().pipe((0,I.h)(re=>re.keyCode===q.hY&&!this.disableClose&&!(0,q.Vb)(re))).subscribe(re=>{re.preventDefault(),ce(this,"keyboard")}),je.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():ce(this,"mouse")})}close(je){this._result=je,this._containerInstance._animationStateChanged.pipe((0,I.h)(Q=>"closing"===Q.state),(0,m.q)(1)).subscribe(Q=>{this._beforeClosed.next(je),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Q.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(je){let Q=this._getPositionStrategy();return je&&(je.left||je.right)?je.left?Q.left(je.left):Q.right(je.right):Q.centerHorizontally(),je&&(je.top||je.bottom)?je.top?Q.top(je.top):Q.bottom(je.bottom):Q.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(je="",Q=""){return this._overlayRef.updateSize({width:je,height:Q}),this._overlayRef.updatePosition(),this}addPanelClass(je){return this._overlayRef.addPanelClass(je),this}removePanelClass(je){return this._overlayRef.removePanelClass(je),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function ce(nt,je,Q){return void 0!==nt._containerInstance&&(nt._containerInstance._closeInteractionType=je),nt.close(Q)}const Fe=new _.OlP("MatDialogData"),Ue=new _.OlP("mat-dialog-default-options"),Xe=new _.OlP("mat-dialog-scroll-strategy"),ve={provide:Xe,deps:[e.aV],useFactory:function Ve(nt){return()=>nt.scrollStrategies.block()}};let Oe=(()=>{class nt{constructor(Q,Ce,re,k,pe,Z,Ne,oe,_e,$){this._overlay=Q,this._injector=Ce,this._defaultOptions=re,this._parentDialog=k,this._overlayContainer=pe,this._dialogRefConstructor=Ne,this._dialogContainerType=oe,this._dialogDataToken=_e,this._animationMode=$,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.xQ,this._afterOpenedAtThisLevel=new A.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,E.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=Z}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Q=this._parentDialog;return Q?Q._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Q,Ce){if(Ce=function D(nt,je){return Object.assign(Object.assign({},je),nt)}(Ce,this._defaultOptions||new De),Ce.id&&this.getDialogById(Ce.id),this._dialogAnimatingOpen)return this._lastDialogRef;const re=this._createOverlay(Ce),k=this._attachDialogContainer(re,Ce);if("NoopAnimations"!==this._animationMode){const Z=k._animationStateChanged.subscribe(Ne=>{"opening"===Ne.state&&(this._dialogAnimatingOpen=!0),"opened"===Ne.state&&(this._dialogAnimatingOpen=!1,Z.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new C.w),this._animationStateSubscriptions.add(Z)}const pe=this._attachDialogContent(Q,k,re,Ce);return this._lastDialogRef=pe,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(pe),pe.afterClosed().subscribe(()=>this._removeOpenDialog(pe)),this.afterOpened.next(pe),k._initializeWithAttachedContent(),pe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Q){return this.openDialogs.find(Ce=>Ce.id===Q)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(Q){const Ce=this._getOverlayConfig(Q);return this._overlay.create(Ce)}_getOverlayConfig(Q){const Ce=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Q.scrollStrategy||this._scrollStrategy(),panelClass:Q.panelClass,hasBackdrop:Q.hasBackdrop,direction:Q.direction,minWidth:Q.minWidth,minHeight:Q.minHeight,maxWidth:Q.maxWidth,maxHeight:Q.maxHeight,disposeOnNavigation:Q.closeOnNavigation});return Q.backdropClass&&(Ce.backdropClass=Q.backdropClass),Ce}_attachDialogContainer(Q,Ce){const k=_.zs3.create({parent:Ce&&Ce.viewContainerRef&&Ce.viewContainerRef.injector||this._injector,providers:[{provide:De,useValue:Ce}]}),pe=new b.C5(this._dialogContainerType,Ce.viewContainerRef,k,Ce.componentFactoryResolver);return Q.attach(pe).instance}_attachDialogContent(Q,Ce,re,k){const pe=new this._dialogRefConstructor(re,Ce,k.id);if(Q instanceof _.Rgc)Ce.attachTemplatePortal(new b.UE(Q,null,{$implicit:k.data,dialogRef:pe}));else{const Z=this._createInjector(k,pe,Ce),Ne=Ce.attachComponentPortal(new b.C5(Q,k.viewContainerRef,Z));pe.componentInstance=Ne.instance}return pe.updateSize(k.width,k.height).updatePosition(k.position),pe}_createInjector(Q,Ce,re){const k=Q&&Q.viewContainerRef&&Q.viewContainerRef.injector,pe=[{provide:this._dialogContainerType,useValue:re},{provide:this._dialogDataToken,useValue:Q.data},{provide:this._dialogRefConstructor,useValue:Ce}];return Q.direction&&(!k||!k.get(g.Is,null,_.XFs.Optional))&&pe.push({provide:g.Is,useValue:{value:Q.direction,change:(0,R.of)()}}),_.zs3.create({parent:k||this._injector,providers:pe})}_removeOpenDialog(Q){const Ce=this.openDialogs.indexOf(Q);Ce>-1&&(this.openDialogs.splice(Ce,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((re,k)=>{re?k.setAttribute("aria-hidden",re):k.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Q=this._overlayContainer.getContainerElement();if(Q.parentElement){const Ce=Q.parentElement.children;for(let re=Ce.length-1;re>-1;re--){let k=Ce[re];k!==Q&&"SCRIPT"!==k.nodeName&&"STYLE"!==k.nodeName&&!k.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(k,k.getAttribute("aria-hidden")),k.setAttribute("aria-hidden","true"))}}}_closeDialogs(Q){let Ce=Q.length;for(;Ce--;)Q[Ce].close()}}return nt.\u0275fac=function(Q){_.$Z()},nt.\u0275dir=_.lG2({type:nt}),nt})(),z=(()=>{class nt extends Oe{constructor(Q,Ce,re,k,pe,Z,Ne,oe){super(Q,Ce,k,Z,Ne,pe,de,Y,Fe,oe)}}return nt.\u0275fac=function(Q){return new(Q||nt)(_.LFG(e.aV),_.LFG(_.zs3),_.LFG(W.Ye,8),_.LFG(Ue,8),_.LFG(Xe),_.LFG(nt,12),_.LFG(e.Xj),_.LFG(Me.Qb,8))},nt.\u0275prov=_.Yz7({token:nt,factory:nt.\u0275fac}),nt})(),ge=0,Ie=(()=>{class nt{constructor(Q,Ce,re){this._dialogRef=Q,this._elementRef=Ce,this._dialog=re,this.id="mat-dialog-title-"+ge++}ngOnInit(){this._dialogRef||(this._dialogRef=function Ke(nt,je){let Q=nt.nativeElement.parentElement;for(;Q&&!Q.classList.contains("mat-dialog-container");)Q=Q.parentElement;return Q?je.find(Ce=>Ce.id===Q.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Q=this._dialogRef._containerInstance;Q&&!Q._ariaLabelledBy&&(Q._ariaLabelledBy=this.id)})}}return nt.\u0275fac=function(Q){return new(Q||nt)(_.Y36(de,8),_.Y36(_.SBq),_.Y36(z))},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Q,Ce){2&Q&&_.Ikx("id",Ce.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),nt})(),fe=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),nt})(),Se=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(Q){return new(Q||nt)},nt.\u0275mod=_.oAB({type:nt}),nt.\u0275inj=_.cJS({providers:[z,ve],imports:[[e.U8,b.eL,w.BQ],w.BQ]}),nt})()},4834:(Qe,be,p)=>{"use strict";p.d(be,{d:()=>w,t:()=>g});var e=p(5e3),b=p(63191),_=p(90508);let w=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(C){this._vertical=(0,b.Ig)(C)}get inset(){return this._inset}set inset(C){this._inset=(0,b.Ig)(C)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(C,R){2&C&&(e.uIk("aria-orientation",R.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",R.vertical)("mat-divider-horizontal",!R.vertical)("mat-divider-inset",R.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(C,R){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),A})(),g=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),A})()},81125:(Qe,be,p)=>{"use strict";p.d(be,{pp:()=>je,To:()=>Q,ib:()=>Te,HS:()=>z,u4:()=>Je,yz:()=>Ke,yK:()=>nt});var e=p(5e3),b=p(63191),_=p(8929),w=p(42654),g=p(20449);let A=0;const E=new e.OlP("CdkAccordion");let C=(()=>{class Ce{constructor(){this._stateChanges=new _.xQ,this._openCloseAllActions=new _.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(k){this._multi=(0,b.Ig)(k)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(k){this._stateChanges.next(k)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:E,useExisting:Ce}]),e.TTD]}),Ce})(),R=0,I=(()=>{class Ce{constructor(k,pe,Z){this.accordion=k,this._changeDetectorRef=pe,this._expansionDispatcher=Z,this._openCloseAllSubscription=w.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+R++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Z.listen((Ne,oe)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===oe&&this.id!==Ne&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(k){k=(0,b.Ig)(k),this._expanded!==k&&(this._expanded=k,this.expandedChange.emit(k),k?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(k){this._disabled=(0,b.Ig)(k)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(k=>{this.disabled||(this.expanded=k)})}}return Ce.\u0275fac=function(k){return new(k||Ce)(e.Y36(E,12),e.Y36(e.sBO),e.Y36(g.A8))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:E,useValue:void 0}])]}),Ce})(),m=(()=>{class Ce{}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();var O=p(47429),P=p(69808),W=p(90508),ie=p(15664),Ae=p(75778),q=p(1059),Me=p(92198),he=p(72986),De=p(91159),T=p(76360),N=p(68896),j=p(36787),Y=p(41777);const ee=["body"];function de(Ce,re){}const ce=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Fe=["mat-expansion-panel-header","*","mat-action-row"];function Ue(Ce,re){if(1&Ce&&e._UZ(0,"span",2),2&Ce){const k=e.oxw();e.Q6J("@indicatorRotate",k._getExpandedState())}}const Xe=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],te=["mat-panel-title","mat-panel-description","*"],Ve=new e.OlP("MAT_ACCORDION"),ve="225ms cubic-bezier(0.4,0.0,0.2,1)",Oe={indicatorRotate:(0,Y.X$)("indicatorRotate",[(0,Y.SB)("collapsed, void",(0,Y.oB)({transform:"rotate(0deg)"})),(0,Y.SB)("expanded",(0,Y.oB)({transform:"rotate(180deg)"})),(0,Y.eR)("expanded <=> collapsed, void => collapsed",(0,Y.jt)(ve))]),bodyExpansion:(0,Y.X$)("bodyExpansion",[(0,Y.SB)("collapsed, void",(0,Y.oB)({height:"0px",visibility:"hidden"})),(0,Y.SB)("expanded",(0,Y.oB)({height:"*",visibility:"visible"})),(0,Y.eR)("expanded <=> collapsed, void => collapsed",(0,Y.jt)(ve))])};let z=(()=>{class Ce{constructor(k){this._template=k}}return Ce.\u0275fac=function(k){return new(k||Ce)(e.Y36(e.Rgc))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ce})(),D=0;const ge=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Te=(()=>{class Ce extends I{constructor(k,pe,Z,Ne,oe,_e,$){super(k,pe,Z),this._viewContainerRef=Ne,this._animationMode=_e,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new _.xQ,this._headerId="mat-expansion-panel-header-"+D++,this._bodyAnimationDone=new _.xQ,this.accordion=k,this._document=oe,this._bodyAnimationDone.pipe((0,Ae.x)((V,i)=>V.fromState===i.fromState&&V.toState===i.toState)).subscribe(V=>{"void"!==V.fromState&&("expanded"===V.toState?this.afterExpand.emit():"collapsed"===V.toState&&this.afterCollapse.emit())}),$&&(this.hideToggle=$.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(k){this._hideToggle=(0,b.Ig)(k)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(k){this._togglePosition=k}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,q.O)(null),(0,Me.h)(()=>this.expanded&&!this._portal),(0,he.q)(1)).subscribe(()=>{this._portal=new O.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(k){this._inputChanges.next(k)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const k=this._document.activeElement,pe=this._body.nativeElement;return k===pe||pe.contains(k)}return!1}}return Ce.\u0275fac=function(k){return new(k||Ce)(e.Y36(Ve,12),e.Y36(e.sBO),e.Y36(g.A8),e.Y36(e.s_b),e.Y36(P.K0),e.Y36(T.Qb,8),e.Y36(ge,8))},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["mat-expansion-panel"]],contentQueries:function(k,pe,Z){if(1&k&&e.Suo(Z,z,5),2&k){let Ne;e.iGM(Ne=e.CRH())&&(pe._lazyContent=Ne.first)}},viewQuery:function(k,pe){if(1&k&&e.Gf(ee,5),2&k){let Z;e.iGM(Z=e.CRH())&&(pe._body=Z.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(k,pe){2&k&&e.ekj("mat-expanded",pe.expanded)("_mat-animation-noopable","NoopAnimations"===pe._animationMode)("mat-expansion-panel-spacing",pe._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:Ve,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:Fe,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(k,pe){1&k&&(e.F$t(ce),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(Ne){return pe._bodyAnimationDone.next(Ne)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,de,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&k&&(e.xp6(1),e.Q6J("@bodyExpansion",pe._getExpandedState())("id",pe.id),e.uIk("aria-labelledby",pe._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",pe._portal))},directives:[O.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Oe.bodyExpansion]},changeDetection:0}),Ce})();class fe{}const Se=(0,W.sb)(fe);let Ke=(()=>{class Ce extends Se{constructor(k,pe,Z,Ne,oe,_e,$){super(),this.panel=k,this._element=pe,this._focusMonitor=Z,this._changeDetectorRef=Ne,this._animationMode=_e,this._parentChangeSubscription=w.w.EMPTY;const V=k.accordion?k.accordion._stateChanges.pipe((0,Me.h)(i=>!(!i.hideToggle&&!i.togglePosition))):N.E;this.tabIndex=parseInt($||"")||0,this._parentChangeSubscription=(0,j.T)(k.opened,k.closed,V,k._inputChanges.pipe((0,Me.h)(i=>!!(i.hideToggle||i.disabled||i.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),k.closed.pipe((0,Me.h)(()=>k._containsFocus())).subscribe(()=>Z.focusVia(pe,"program")),oe&&(this.expandedHeight=oe.expandedHeight,this.collapsedHeight=oe.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const k=this._isExpanded();return k&&this.expandedHeight?this.expandedHeight:!k&&this.collapsedHeight?this.collapsedHeight:null}_keydown(k){switch(k.keyCode){case De.L_:case De.K5:(0,De.Vb)(k)||(k.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(k))}}focus(k,pe){k?this._focusMonitor.focusVia(this._element,k,pe):this._element.nativeElement.focus(pe)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(k=>{k&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ce.\u0275fac=function(k){return new(k||Ce)(e.Y36(Te,1),e.Y36(e.SBq),e.Y36(ie.tE),e.Y36(e.sBO),e.Y36(ge,8),e.Y36(T.Qb,8),e.$8M("tabindex"))},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(k,pe){1&k&&e.NdJ("click",function(){return pe._toggle()})("keydown",function(Ne){return pe._keydown(Ne)}),2&k&&(e.uIk("id",pe.panel._headerId)("tabindex",pe.tabIndex)("aria-controls",pe._getPanelId())("aria-expanded",pe._isExpanded())("aria-disabled",pe.panel.disabled),e.Udp("height",pe._getHeaderHeight()),e.ekj("mat-expanded",pe._isExpanded())("mat-expansion-toggle-indicator-after","after"===pe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===pe._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===pe._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:te,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(k,pe){1&k&&(e.F$t(Xe),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Ue,1,1,"span",1)),2&k&&(e.xp6(4),e.Q6J("ngIf",pe._showToggle()))},directives:[P.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Oe.indicatorRotate]},changeDetection:0}),Ce})(),Je=(()=>{class Ce{}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ce})(),nt=(()=>{class Ce{}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ce})(),je=(()=>{class Ce extends C{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(k){this._hideToggle=(0,b.Ig)(k)}ngAfterContentInit(){this._headers.changes.pipe((0,q.O)(this._headers)).subscribe(k=>{this._ownHeaders.reset(k.filter(pe=>pe.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ie.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(k){this._keyManager.onKeydown(k)}_handleHeaderFocus(k){this._keyManager.updateActiveItem(k)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ce.\u0275fac=function(){let re;return function(pe){return(re||(re=e.n5z(Ce)))(pe||Ce)}}(),Ce.\u0275dir=e.lG2({type:Ce,selectors:[["mat-accordion"]],contentQueries:function(k,pe,Z){if(1&k&&e.Suo(Z,Ke,5),2&k){let Ne;e.iGM(Ne=e.CRH())&&(pe._headers=Ne)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(k,pe){2&k&&e.ekj("mat-accordion-multi",pe.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:Ve,useExisting:Ce}]),e.qOj]}),Ce})(),Q=(()=>{class Ce{}return Ce.\u0275fac=function(k){return new(k||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({imports:[[P.ez,W.BQ,m,O.eL]]}),Ce})()},67322:(Qe,be,p)=>{"use strict";p.d(be,{G_:()=>_e,TO:()=>Oe,KE:()=>$,Eo:()=>D,lN:()=>V,bx:()=>Ke,hX:()=>Je,UY:()=>nt,R9:()=>re});var e=p(17144),b=p(69808),_=p(5e3),w=p(90508),g=p(63191),A=p(8929),E=p(36787),C=p(23753),R=p(1059),I=p(7625),m=p(72986),O=p(41777),P=p(76360),W=p(50226),ie=p(70925);const Ae=["connectionContainer"],q=["inputContainer"],Me=["label"];function he(i,a){1&i&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function De(i,a){if(1&i){const d=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.Hsn(1,1),_.qZA()}if(2&i){const d=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)}}function T(i,a){if(1&i&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&i){const d=_.oxw(2);_.xp6(3),_.Oqu(d._control.placeholder)}}function N(i,a){1&i&&_.Hsn(0,3,["*ngSwitchCase","true"])}function j(i,a){1&i&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function Y(i,a){if(1&i){const d=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.YNc(2,T,4,1,"ng-container",12),_.YNc(3,N,1,0,"ng-content",12),_.YNc(4,j,2,0,"span",22),_.qZA()}if(2&i){const d=_.oxw();_.ekj("mat-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-form-field-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-accent","accent"==d.color)("mat-warn","warn"==d.color),_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)("id",d._labelId)("ngSwitch",d._hasLabel()),_.uIk("for",d._control.id)("aria-owns",d._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required&&!d._control.disabled)}}function ee(i,a){1&i&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function de(i,a){if(1&i&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&i){const d=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==d.color)("mat-warn","warn"==d.color)}}function ce(i,a){if(1&i&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState)}}function Fe(i,a){if(1&i&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&i){const d=_.oxw(2);_.Q6J("id",d._hintLabelId),_.xp6(1),_.Oqu(d.hintLabel)}}function Ue(i,a){if(1&i&&(_.TgZ(0,"div",27),_.YNc(1,Fe,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",d.hintLabel)}}const Xe=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],te=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ve=0;const ve=new _.OlP("MatError");let Oe=(()=>{class i{constructor(d,l){this.id="mat-error-"+Ve++,d||l.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(d){return new(d||i)(_.$8M("aria-live"),_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(d,l){2&d&&_.uIk("id",l.id)},inputs:{id:"id"},features:[_._Bn([{provide:ve,useExisting:i}])]}),i})();const z={transitionMessages:(0,O.X$)("transitionMessages",[(0,O.SB)("enter",(0,O.oB)({opacity:1,transform:"translateY(0%)"})),(0,O.eR)("void => enter",[(0,O.oB)({opacity:0,transform:"translateY(-5px)"}),(0,O.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let D=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i}),i})(),fe=0;const Se=new _.OlP("MatHint");let Ke=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+fe++}}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(d,l){2&d&&(_.uIk("id",l.id)("align",null),_.ekj("mat-form-field-hint-end","end"===l.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:Se,useExisting:i}])]}),i})(),Je=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-label"]]}),i})(),nt=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const je=new _.OlP("MatPrefix"),Ce=new _.OlP("MatSuffix");let re=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:Ce,useExisting:i}])]}),i})(),k=0;const Ne=(0,w.pj)(class{constructor(i){this._elementRef=i}},"primary"),oe=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),_e=new _.OlP("MatFormField");let $=(()=>{class i extends Ne{constructor(d,l,s,r,t,n,o){super(d),this._changeDetectorRef=l,this._dir=s,this._defaults=r,this._platform=t,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+k++,this._labelId="mat-form-field-label-"+k++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(d){const l=this._appearance;this._appearance=d||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&l!==d&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,g.Ig)(d)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(d){this._explicitFormFieldControl=d}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${d.controlType}`),d.stateChanges.pipe((0,R.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,I.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,I.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,R.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,R.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,I.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(d){const l=this._control?this._control.ngControl:null;return l&&l[d]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,C.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const l=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,s=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;l?d.push(l.id):this._hintLabel&&d.push(this._hintLabelId),s&&d.push(s.id)}else this._errorChildren&&d.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(d)}}_validateControlChild(){}updateOutlineGap(){const d=this._label?this._label.nativeElement:null,l=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!d||!d.children.length||!d.textContent.trim()){const h=l.querySelectorAll(`${s}, ${r}`);for(let x=0;x0?.75*Ht+10:0}for(let h=0;h{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[b.ez,w.BQ,e.Q8],w.BQ]}),i})()},25245:(Qe,be,p)=>{"use strict";p.d(be,{Hw:()=>Te,Ps:()=>Ie,jv:()=>de});var e=p(5e3),b=p(90508),_=p(63191),w=p(69808),g=p(21086),A=p(61737),E=p(30567),C=p(42654),R=p(22868),I=p(24850),m=p(27221),O=p(40537),P=p(12474),W=p(72986),ie=p(40520),Ae=p(22313);const q=["*"];let Me;function De(fe){var Se;return(null===(Se=function he(){if(void 0===Me&&(Me=null,"undefined"!=typeof window)){const fe=window;void 0!==fe.trustedTypes&&(Me=fe.trustedTypes.createPolicy("angular#components",{createHTML:Se=>Se}))}return Me}())||void 0===Se?void 0:Se.createHTML(fe))||fe}function T(fe){return Error(`Unable to find icon with the name "${fe}"`)}function j(fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${fe}".`)}function Y(fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${fe}".`)}class ee{constructor(Se,Ke,Je){this.url=Se,this.svgText=Ke,this.options=Je}}let de=(()=>{class fe{constructor(Ke,Je,nt,je){this._httpClient=Ke,this._sanitizer=Je,this._errorHandler=je,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",this._document=nt}addSvgIcon(Ke,Je,nt){return this.addSvgIconInNamespace("",Ke,Je,nt)}addSvgIconLiteral(Ke,Je,nt){return this.addSvgIconLiteralInNamespace("",Ke,Je,nt)}addSvgIconInNamespace(Ke,Je,nt,je){return this._addSvgIconConfig(Ke,Je,new ee(nt,null,je))}addSvgIconResolver(Ke){return this._resolvers.push(Ke),this}addSvgIconLiteralInNamespace(Ke,Je,nt,je){const Q=this._sanitizer.sanitize(e.q3G.HTML,nt);if(!Q)throw Y(nt);const Ce=De(Q);return this._addSvgIconConfig(Ke,Je,new ee("",Ce,je))}addSvgIconSet(Ke,Je){return this.addSvgIconSetInNamespace("",Ke,Je)}addSvgIconSetLiteral(Ke,Je){return this.addSvgIconSetLiteralInNamespace("",Ke,Je)}addSvgIconSetInNamespace(Ke,Je,nt){return this._addSvgIconSetConfig(Ke,new ee(Je,null,nt))}addSvgIconSetLiteralInNamespace(Ke,Je,nt){const je=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!je)throw Y(Je);const Q=De(je);return this._addSvgIconSetConfig(Ke,new ee("",Q,nt))}registerFontClassAlias(Ke,Je=Ke){return this._fontCssClassesByAlias.set(Ke,Je),this}classNameForFontAlias(Ke){return this._fontCssClassesByAlias.get(Ke)||Ke}setDefaultFontSetClass(Ke){return this._defaultFontSetClass=Ke,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ke){const Je=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Ke);if(!Je)throw j(Ke);const nt=this._cachedIconsByUrl.get(Je);return nt?(0,g.of)(Ue(nt)):this._loadSvgIconFromConfig(new ee(Ke,null)).pipe((0,R.b)(je=>this._cachedIconsByUrl.set(Je,je)),(0,I.U)(je=>Ue(je)))}getNamedSvgIcon(Ke,Je=""){const nt=Xe(Je,Ke);let je=this._svgIconConfigs.get(nt);if(je)return this._getSvgFromConfig(je);if(je=this._getIconConfigFromResolvers(Je,Ke),je)return this._svgIconConfigs.set(nt,je),this._getSvgFromConfig(je);const Q=this._iconSetConfigs.get(Je);return Q?this._getSvgFromIconSetConfigs(Ke,Q):(0,A._)(T(nt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ke){return Ke.svgText?(0,g.of)(Ue(this._svgElementFromConfig(Ke))):this._loadSvgIconFromConfig(Ke).pipe((0,I.U)(Je=>Ue(Je)))}_getSvgFromIconSetConfigs(Ke,Je){const nt=this._extractIconWithNameFromAnySet(Ke,Je);if(nt)return(0,g.of)(nt);const je=Je.filter(Q=>!Q.svgText).map(Q=>this._loadSvgIconSetFromConfig(Q).pipe((0,m.K)(Ce=>{const k=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Q.url)} failed: ${Ce.message}`;return this._errorHandler.handleError(new Error(k)),(0,g.of)(null)})));return(0,E.D)(je).pipe((0,I.U)(()=>{const Q=this._extractIconWithNameFromAnySet(Ke,Je);if(!Q)throw T(Ke);return Q}))}_extractIconWithNameFromAnySet(Ke,Je){for(let nt=Je.length-1;nt>=0;nt--){const je=Je[nt];if(je.svgText&&je.svgText.toString().indexOf(Ke)>-1){const Q=this._svgElementFromConfig(je),Ce=this._extractSvgIconFromSet(Q,Ke,je.options);if(Ce)return Ce}}return null}_loadSvgIconFromConfig(Ke){return this._fetchIcon(Ke).pipe((0,R.b)(Je=>Ke.svgText=Je),(0,I.U)(()=>this._svgElementFromConfig(Ke)))}_loadSvgIconSetFromConfig(Ke){return Ke.svgText?(0,g.of)(null):this._fetchIcon(Ke).pipe((0,R.b)(Je=>Ke.svgText=Je))}_extractSvgIconFromSet(Ke,Je,nt){const je=Ke.querySelector(`[id="${Je}"]`);if(!je)return null;const Q=je.cloneNode(!0);if(Q.removeAttribute("id"),"svg"===Q.nodeName.toLowerCase())return this._setSvgAttributes(Q,nt);if("symbol"===Q.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Q),nt);const Ce=this._svgElementFromString(De(""));return Ce.appendChild(Q),this._setSvgAttributes(Ce,nt)}_svgElementFromString(Ke){const Je=this._document.createElement("DIV");Je.innerHTML=Ke;const nt=Je.querySelector("svg");if(!nt)throw Error(" tag not found");return nt}_toSvgElement(Ke){const Je=this._svgElementFromString(De("")),nt=Ke.attributes;for(let je=0;jeDe(pe)),(0,O.x)(()=>this._inProgressUrlFetches.delete(Ce)),(0,P.B)());return this._inProgressUrlFetches.set(Ce,k),k}_addSvgIconConfig(Ke,Je,nt){return this._svgIconConfigs.set(Xe(Ke,Je),nt),this}_addSvgIconSetConfig(Ke,Je){const nt=this._iconSetConfigs.get(Ke);return nt?nt.push(Je):this._iconSetConfigs.set(Ke,[Je]),this}_svgElementFromConfig(Ke){if(!Ke.svgElement){const Je=this._svgElementFromString(Ke.svgText);this._setSvgAttributes(Je,Ke.options),Ke.svgElement=Je}return Ke.svgElement}_getIconConfigFromResolvers(Ke,Je){for(let nt=0;ntSe?Se.pathname+Se.search:""}}}),z=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],D=z.map(fe=>`[${fe}]`).join(", "),ge=/^url\(['"]?#(.*?)['"]?\)$/;let Te=(()=>{class fe extends Ve{constructor(Ke,Je,nt,je,Q){super(Ke),this._iconRegistry=Je,this._location=je,this._errorHandler=Q,this._inline=!1,this._currentIconFetch=C.w.EMPTY,nt||Ke.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ke){this._inline=(0,_.Ig)(Ke)}get svgIcon(){return this._svgIcon}set svgIcon(Ke){Ke!==this._svgIcon&&(Ke?this._updateSvgIcon(Ke):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ke)}get fontSet(){return this._fontSet}set fontSet(Ke){const Je=this._cleanupFontValue(Ke);Je!==this._fontSet&&(this._fontSet=Je,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ke){const Je=this._cleanupFontValue(Ke);Je!==this._fontIcon&&(this._fontIcon=Je,this._updateFontIconClasses())}_splitIconName(Ke){if(!Ke)return["",""];const Je=Ke.split(":");switch(Je.length){case 1:return["",Je[0]];case 2:return Je;default:throw Error(`Invalid icon name: "${Ke}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ke=this._elementsWithExternalReferences;if(Ke&&Ke.size){const Je=this._location.getPathname();Je!==this._previousPath&&(this._previousPath=Je,this._prependPathToReferences(Je))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Ke){this._clearSvgElement();const Je=Ke.querySelectorAll("style");for(let je=0;je{nt.forEach(Q=>{je.setAttribute(Q.name,`url('${Ke}#${Q.value}')`)})})}_cacheChildrenWithExternalReferences(Ke){const Je=Ke.querySelectorAll(D),nt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let je=0;je{const Ce=Je[je],re=Ce.getAttribute(Q),k=re?re.match(ge):null;if(k){let pe=nt.get(Ce);pe||(pe=[],nt.set(Ce,pe)),pe.push({name:Q,value:k[1]})}})}_updateSvgIcon(Ke){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ke){const[Je,nt]=this._splitIconName(Ke);Je&&(this._svgNamespace=Je),nt&&(this._svgName=nt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nt,Je).pipe((0,W.q)(1)).subscribe(je=>this._setSvgElement(je),je=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Je}:${nt}! ${je.message}`))})}}}return fe.\u0275fac=function(Ke){return new(Ke||fe)(e.Y36(e.SBq),e.Y36(de),e.$8M("aria-hidden"),e.Y36(ve),e.Y36(e.qLn))},fe.\u0275cmp=e.Xpm({type:fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Ke,Je){2&Ke&&(e.uIk("data-mat-icon-type",Je._usingFontIcon()?"font":"svg")("data-mat-icon-name",Je._svgName||Je.fontIcon)("data-mat-icon-namespace",Je._svgNamespace||Je.fontSet),e.ekj("mat-icon-inline",Je.inline)("mat-icon-no-color","primary"!==Je.color&&"accent"!==Je.color&&"warn"!==Je.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:q,decls:1,vars:0,template:function(Ke,Je){1&Ke&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),fe})(),Ie=(()=>{class fe{}return fe.\u0275fac=function(Ke){return new(Ke||fe)},fe.\u0275mod=e.oAB({type:fe}),fe.\u0275inj=e.cJS({imports:[[b.BQ],b.BQ]}),fe})()},98833:(Qe,be,p)=>{"use strict";p.d(be,{Jk:()=>I,Nt:()=>W,c:()=>ie});var e=p(63191),b=p(70925),_=p(5e3),w=p(93075),g=p(90508),A=p(67322),E=p(8929),C=p(74533);const I=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let O=0;const P=(0,g.FD)(class{constructor(Ae,q,Me,he){this._defaultErrorStateMatcher=Ae,this._parentForm=q,this._parentFormGroup=Me,this.ngControl=he}});let W=(()=>{class Ae extends P{constructor(Me,he,De,T,N,j,Y,ee,de,ce){super(j,T,N,De),this._elementRef=Me,this._platform=he,this._autofillMonitor=ee,this._formField=ce,this._uid="mat-input-"+O++,this.focused=!1,this.stateChanges=new E.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Xe=>(0,b.qK)().has(Xe));const Fe=this._elementRef.nativeElement,Ue=Fe.nodeName.toLowerCase();this._inputValueAccessor=Y||Fe,this._previousNativeValue=this.value,this.id=this.id,he.IOS&&de.runOutsideAngular(()=>{Me.nativeElement.addEventListener("keyup",Xe=>{const te=Xe.target;!te.value&&0===te.selectionStart&&0===te.selectionEnd&&(te.setSelectionRange(1,1),te.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Ue,this._isTextarea="textarea"===Ue,this._isInFormField=!!ce,this._isNativeSelect&&(this.controlType=Fe.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Me){this._disabled=(0,e.Ig)(Me),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Me){this._id=Me||this._uid}get required(){var Me,he,De,T;return null!==(T=null!==(Me=this._required)&&void 0!==Me?Me:null===(De=null===(he=this.ngControl)||void 0===he?void 0:he.control)||void 0===De?void 0:De.hasValidator(w.kI.required))&&void 0!==T&&T}set required(Me){this._required=(0,e.Ig)(Me)}get type(){return this._type}set type(Me){this._type=Me||"text",this._validateType(),!this._isTextarea&&(0,b.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Me){Me!==this.value&&(this._inputValueAccessor.value=Me,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Me){this._readonly=(0,e.Ig)(Me)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Me=>{this.autofilled=Me.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Me){this._elementRef.nativeElement.focus(Me)}_focusChanged(Me){Me!==this.focused&&(this.focused=Me,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Me,he;const De=(null===(he=null===(Me=this._formField)||void 0===Me?void 0:Me._hideControlPlaceholder)||void 0===he?void 0:he.call(Me))?null:this.placeholder;if(De!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=De,De?T.setAttribute("placeholder",De):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Me=this._elementRef.nativeElement.value;this._previousNativeValue!==Me&&(this._previousNativeValue=Me,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Me=this._elementRef.nativeElement.validity;return Me&&Me.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Me=this._elementRef.nativeElement,he=Me.options[0];return this.focused||Me.multiple||!this.empty||!!(Me.selectedIndex>-1&&he&&he.label)}return this.focused||!this.empty}setDescribedByIds(Me){Me.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Me.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Me=this._elementRef.nativeElement;return this._isNativeSelect&&(Me.multiple||Me.size>1)}}return Ae.\u0275fac=function(Me){return new(Me||Ae)(_.Y36(_.SBq),_.Y36(b.t4),_.Y36(w.a5,10),_.Y36(w.F,8),_.Y36(w.sg,8),_.Y36(g.rD),_.Y36(I,10),_.Y36(C.Lq),_.Y36(_.R0b),_.Y36(A.G_,8))},Ae.\u0275dir=_.lG2({type:Ae,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Me,he){1&Me&&_.NdJ("focus",function(){return he._focusChanged(!0)})("blur",function(){return he._focusChanged(!1)})("input",function(){return he._onInput()}),2&Me&&(_.Ikx("disabled",he.disabled)("required",he.required),_.uIk("id",he.id)("data-placeholder",he.placeholder)("name",he.name||null)("readonly",he.readonly&&!he._isNativeSelect||null)("aria-invalid",he.empty&&he.required?null:he.errorState)("aria-required",he.required),_.ekj("mat-input-server",he._isServer)("mat-native-select-inline",he._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:A.Eo,useExisting:Ae}]),_.qOj,_.TTD]}),Ae})(),ie=(()=>{class Ae{}return Ae.\u0275fac=function(Me){return new(Me||Ae)},Ae.\u0275mod=_.oAB({type:Ae}),Ae.\u0275inj=_.cJS({providers:[g.rD],imports:[[C.Ky,A.lN,g.BQ],C.Ky,A.lN]}),Ae})()},14623:(Qe,be,p)=>{"use strict";p.d(be,{i$:()=>de,Tg:()=>Xe,ie:()=>ge});var e=p(69808),b=p(5e3),_=p(90508),w=p(63191),g=p(8929),A=p(7625),O=(p(1059),p(15664),p(20449),p(91159),p(93075),p(4834));const P=["*"],ie=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],Ae=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,_.Id)((0,_.Kr)(class{})),N=(0,_.Kr)(class{}),j=new b.OlP("MatList"),Y=new b.OlP("MatNavList");let de=(()=>{class Te extends T{constructor(fe){super(),this._elementRef=fe,this._stateChanges=new g.xQ,"action-list"===this._getListType()&&fe.nativeElement.classList.add("mat-action-list")}_getListType(){const fe=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===fe?"list":"mat-action-list"===fe?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Te.\u0275fac=function(fe){return new(fe||Te)(b.Y36(b.SBq))},Te.\u0275cmp=b.Xpm({type:Te,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[b._Bn([{provide:j,useExisting:Te}]),b.qOj,b.TTD],ngContentSelectors:P,decls:1,vars:0,template:function(fe,Se){1&fe&&(b.F$t(),b.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275dir=b.lG2({type:Te,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),Te})(),Fe=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275dir=b.lG2({type:Te,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),Te})(),Xe=(()=>{class Te extends N{constructor(fe,Se,Ke,Je){super(),this._element=fe,this._isInteractiveList=!1,this._destroyed=new g.xQ,this._disabled=!1,this._isInteractiveList=!!(Ke||Je&&"action-list"===Je._getListType()),this._list=Ke||Je;const nt=this._getHostElement();"button"===nt.nodeName.toLowerCase()&&!nt.hasAttribute("type")&&nt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{Se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(fe){this._disabled=(0,w.Ig)(fe)}ngAfterContentInit(){(0,_.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return Te.\u0275fac=function(fe){return new(fe||Te)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(Y,8),b.Y36(j,8))},Te.\u0275cmp=b.Xpm({type:Te,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(fe,Se,Ke){if(1&fe&&(b.Suo(Ke,ce,5),b.Suo(Ke,Fe,5),b.Suo(Ke,_.X2,5)),2&fe){let Je;b.iGM(Je=b.CRH())&&(Se._avatar=Je.first),b.iGM(Je=b.CRH())&&(Se._icon=Je.first),b.iGM(Je=b.CRH())&&(Se._lines=Je)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(fe,Se){2&fe&&b.ekj("mat-list-item-disabled",Se.disabled)("mat-list-item-avatar",Se._avatar||Se._icon)("mat-list-item-with-avatar",Se._avatar||Se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[b.qOj],ngContentSelectors:Ae,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(fe,Se){1&fe&&(b.F$t(ie),b.TgZ(0,"span",0),b._UZ(1,"span",1),b.Hsn(2),b.TgZ(3,"span",2),b.Hsn(4,1),b.qZA(),b.Hsn(5,2),b.qZA()),2&fe&&(b.xp6(1),b.Q6J("matRippleTrigger",Se._getHostElement())("matRippleDisabled",Se._isRippleDisabled()))},directives:[_.wG],encapsulation:2,changeDetection:0}),Te})(),ge=(()=>{class Te{}return Te.\u0275fac=function(fe){return new(fe||Te)},Te.\u0275mod=b.oAB({type:Te}),Te.\u0275inj=b.cJS({imports:[[_.uc,_.si,_.BQ,_.us,e.ez],_.uc,_.BQ,_.us,O.t]}),Te})()},92181:(Qe,be,p)=>{"use strict";p.d(be,{VK:()=>je,OP:()=>fe,Tx:()=>oe,p6:()=>Ne});var e=p(15664),b=p(63191),_=p(91159),w=p(5e3),g=p(8929),A=p(42654),E=p(36787),C=p(21086),R=p(8139),I=p(1059),m=p(87545),O=p(72986),P=p(7625),W=p(92198),ie=p(40943),Ae=p(41777),q=p(47429),Me=p(69808),he=p(90508),De=p(92845),T=p(70925),N=p(50226),j=p(53435);const Y=["mat-menu-item",""];function ee(_e,$){1&_e&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const de=["*"];function ce(_e,$){if(1&_e){const V=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(a){return w.CHM(V),w.oxw()._handleKeydown(a)})("click",function(){return w.CHM(V),w.oxw().closed.emit("click")})("@transformMenu.start",function(a){return w.CHM(V),w.oxw()._onAnimationStart(a)})("@transformMenu.done",function(a){return w.CHM(V),w.oxw()._onAnimationDone(a)}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA(),w.qZA()}if(2&_e){const V=w.oxw();w.Q6J("id",V.panelId)("ngClass",V._classList)("@transformMenu",V._panelAnimationState),w.uIk("aria-label",V.ariaLabel||null)("aria-labelledby",V.ariaLabelledby||null)("aria-describedby",V.ariaDescribedby||null)}}const Fe={transformMenu:(0,Ae.X$)("transformMenu",[(0,Ae.SB)("void",(0,Ae.oB)({opacity:0,transform:"scale(0.8)"})),(0,Ae.eR)("void => enter",(0,Ae.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Ae.oB)({opacity:1,transform:"scale(1)"}))),(0,Ae.eR)("* => void",(0,Ae.jt)("100ms 25ms linear",(0,Ae.oB)({opacity:0})))]),fadeInItems:(0,Ae.X$)("fadeInItems",[(0,Ae.SB)("showing",(0,Ae.oB)({opacity:1})),(0,Ae.eR)("void => *",[(0,Ae.oB)({opacity:0}),(0,Ae.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},te=new w.OlP("MatMenuContent"),Te=new w.OlP("MAT_MENU_PANEL"),Ie=(0,he.Kr)((0,he.Id)(class{}));let fe=(()=>{class _e extends Ie{constructor(V,i,a,d,l){var s;super(),this._elementRef=V,this._focusMonitor=a,this._parentMenu=d,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new g.xQ,this._focused=new g.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==d?void 0:d.addItem)||void 0===s||s.call(d,this)}focus(V,i){this._focusMonitor&&V?this._focusMonitor.focusVia(this._getHostElement(),V,i):this._getHostElement().focus(i),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(V){this.disabled&&(V.preventDefault(),V.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var V;const i=this._elementRef.nativeElement.cloneNode(!0),a=i.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class _e{constructor(V,i,a){this._elementRef=V,this._ngZone=i,this._defaultOptions=a,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Je++}get xPosition(){return this._xPosition}set xPosition(V){this._xPosition=V,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(V){this._yPosition=V,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(V){this._overlapTrigger=(0,b.Ig)(V)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(V){this._hasBackdrop=(0,b.Ig)(V)}set panelClass(V){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(a=>{this._classList[a]=!1}),this._previousPanelClass=V,V&&V.length&&(V.split(" ").forEach(a=>{this._classList[a]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(V){this.panelClass=V}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,m.w)(V=>(0,E.T)(...V.map(i=>i._focused)))).subscribe(V=>this._keyManager.updateActiveItem(V))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,I.O)(this._directDescendantItems),(0,m.w)(i=>(0,E.T)(...i.map(a=>a._hovered))))}addItem(V){}removeItem(V){}_handleKeydown(V){const i=V.keyCode,a=this._keyManager;switch(i){case _.hY:(0,_.Vb)(V)||(V.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===_.LH||i===_.JH)&&a.setFocusOrigin("keyboard"),void a.onKeydown(V)}V.stopPropagation()}focusFirstItem(V="program"){this.lazyContent?this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(()=>this._focusFirstItem(V)):this._focusFirstItem(V)}_focusFirstItem(V){const i=this._keyManager;if(i.setFocusOrigin(V).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let a=this._directDescendantItems.first._getHostElement().parentElement;for(;a;){if("menu"===a.getAttribute("role")){a.focus();break}a=a.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(V){const i=Math.min(this._baseElevation+V,24),a=`${this._elevationPrefix}${i}`,d=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[a]=!0,this._previousElevation=a)}setPositionClasses(V=this.xPosition,i=this.yPosition){const a=this._classList;a["mat-menu-before"]="before"===V,a["mat-menu-after"]="after"===V,a["mat-menu-above"]="above"===i,a["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(V){this._animationDone.next(V),this._isAnimating=!1}_onAnimationStart(V){this._isAnimating=!0,"enter"===V.toState&&0===this._keyManager.activeItemIndex&&(V.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,I.O)(this._allItems)).subscribe(V=>{this._directDescendantItems.reset(V.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return _e.\u0275fac=function(V){return new(V||_e)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},_e.\u0275dir=w.lG2({type:_e,contentQueries:function(V,i,a){if(1&V&&(w.Suo(a,te,5),w.Suo(a,fe,5),w.Suo(a,fe,4)),2&V){let d;w.iGM(d=w.CRH())&&(i.lazyContent=d.first),w.iGM(d=w.CRH())&&(i._allItems=d),w.iGM(d=w.CRH())&&(i.items=d)}},viewQuery:function(V,i){if(1&V&&w.Gf(w.Rgc,5),2&V){let a;w.iGM(a=w.CRH())&&(i.templateRef=a.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),_e})(),je=(()=>{class _e extends nt{constructor(V,i,a){super(V,i,a),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return _e.\u0275fac=function(V){return new(V||_e)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},_e.\u0275cmp=w.Xpm({type:_e,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(V,i){2&V&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:Te,useExisting:_e}]),w.qOj],ngContentSelectors:de,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(V,i){1&V&&(w.F$t(),w.YNc(0,ce,3,6,"ng-template"))},directives:[Me.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Fe.transformMenu,Fe.fadeInItems]},changeDetection:0}),_e})();const Q=new w.OlP("mat-menu-scroll-strategy"),re={provide:Q,deps:[De.aV],useFactory:function Ce(_e){return()=>_e.scrollStrategies.reposition()}},pe=(0,T.i$)({passive:!0});let Z=(()=>{class _e{constructor(V,i,a,d,l,s,r,t){this._overlay=V,this._element=i,this._viewContainerRef=a,this._menuItemInstance=s,this._dir=r,this._focusMonitor=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=l instanceof nt?l:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,pe),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(V){this.menu=V}get menu(){return this._menu}set menu(V){V!==this._menu&&(this._menu=V,this._menuCloseSubscription.unsubscribe(),V&&(this._menuCloseSubscription=V.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,pe),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const V=this._createOverlay(),i=V.getConfig(),a=i.positionStrategy;this._setPosition(a),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,V.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nt&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,P.R)(this.menu.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(V,i){this._focusMonitor&&V?this._focusMonitor.focusVia(this._element,V,i):this._element.nativeElement.focus(i)}updatePosition(){var V;null===(V=this._overlayRef)||void 0===V||V.updatePosition()}_destroyMenu(V){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===V||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof nt?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,W.h)(a=>"void"===a.toState),(0,O.q)(1),(0,P.R)(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let V=0,i=this.menu.parentMenu;for(;i;)V++,i=i.parentMenu;this.menu.setElevation(V)}}_setIsMenuOpen(V){this._menuOpen=V,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(V)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const V=this._getOverlayConfig();this._subscribeToPositions(V.positionStrategy),this._overlayRef=this._overlay.create(V),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new De.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(V){this.menu.setPositionClasses&&V.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(V){let[i,a]="before"===this.menu.xPosition?["end","start"]:["start","end"],[d,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,r]=[d,l],[t,n]=[i,a],o=0;this.triggersSubmenu()?(n=i="before"===this.menu.xPosition?"start":"end",a=t="end"===i?"start":"end",o="bottom"===d?8:-8):this.menu.overlapTrigger||(s="top"===d?"bottom":"top",r="top"===l?"bottom":"top"),V.withPositions([{originX:i,originY:s,overlayX:t,overlayY:d,offsetY:o},{originX:a,originY:s,overlayX:n,overlayY:d,offsetY:o},{originX:i,originY:r,overlayX:t,overlayY:l,offsetY:-o},{originX:a,originY:r,overlayX:n,overlayY:l,offsetY:-o}])}_menuClosingActions(){const V=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),a=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,C.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,W.h)(l=>l!==this._menuItemInstance),(0,W.h)(()=>this._menuOpen)):(0,C.of)();return(0,E.T)(V,a,d,i)}_handleMousedown(V){(0,e.X6)(V)||(this._openedBy=0===V.button?"mouse":void 0,this.triggersSubmenu()&&V.preventDefault())}_handleKeydown(V){const i=V.keyCode;(i===_.K5||i===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===_.SV&&"ltr"===this.dir||i===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(V){this.triggersSubmenu()?(V.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,W.h)(V=>V===this._menuItemInstance&&!V.disabled),(0,ie.g)(0,R.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,O.q)(1),(0,ie.g)(0,R.e),(0,P.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new q.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return _e.\u0275fac=function(V){return new(V||_e)(w.Y36(De.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(Q),w.Y36(Te,8),w.Y36(fe,10),w.Y36(N.Is,8),w.Y36(e.tE))},_e.\u0275dir=w.lG2({type:_e,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(V,i){1&V&&w.NdJ("click",function(d){return i._handleClick(d)})("mousedown",function(d){return i._handleMousedown(d)})("keydown",function(d){return i._handleKeydown(d)}),2&V&&w.uIk("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.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"}}),_e})(),Ne=(()=>{class _e extends Z{}return _e.\u0275fac=function(){let $;return function(i){return($||($=w.n5z(_e)))(i||_e)}}(),_e.\u0275dir=w.lG2({type:_e,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),_e})(),oe=(()=>{class _e{}return _e.\u0275fac=function(V){return new(V||_e)},_e.\u0275mod=w.oAB({type:_e}),_e.\u0275inj=w.cJS({providers:[re],imports:[[Me.ez,he.BQ,he.si,De.U8],j.ZD,he.BQ]}),_e})()},86087:(Qe,be,p)=>{"use strict";p.d(be,{NW:()=>Y,ye:()=>Ae,TU:()=>ee});var e=p(69808),b=p(5e3),_=p(90508),w=p(47423),g=p(74107),A=p(29772),E=p(63191),C=p(8929),R=p(67322);function I(de,ce){if(1&de&&(b.TgZ(0,"mat-option",19),b._uU(1),b.qZA()),2&de){const Fe=ce.$implicit;b.Q6J("value",Fe),b.xp6(1),b.hij(" ",Fe," ")}}function m(de,ce){if(1&de){const Fe=b.EpF();b.TgZ(0,"mat-form-field",16),b.TgZ(1,"mat-select",17),b.NdJ("selectionChange",function(Xe){return b.CHM(Fe),b.oxw(2)._changePageSize(Xe.value)}),b.YNc(2,I,2,2,"mat-option",18),b.qZA(),b.qZA()}if(2&de){const Fe=b.oxw(2);b.Q6J("appearance",Fe._formFieldAppearance)("color",Fe.color),b.xp6(1),b.Q6J("value",Fe.pageSize)("disabled",Fe.disabled)("aria-label",Fe._intl.itemsPerPageLabel),b.xp6(1),b.Q6J("ngForOf",Fe._displayedPageSizeOptions)}}function O(de,ce){if(1&de&&(b.TgZ(0,"div",20),b._uU(1),b.qZA()),2&de){const Fe=b.oxw(2);b.xp6(1),b.Oqu(Fe.pageSize)}}function P(de,ce){if(1&de&&(b.TgZ(0,"div",12),b.TgZ(1,"div",13),b._uU(2),b.qZA(),b.YNc(3,m,3,6,"mat-form-field",14),b.YNc(4,O,2,1,"div",15),b.qZA()),2&de){const Fe=b.oxw();b.xp6(2),b.hij(" ",Fe._intl.itemsPerPageLabel," "),b.xp6(1),b.Q6J("ngIf",Fe._displayedPageSizeOptions.length>1),b.xp6(1),b.Q6J("ngIf",Fe._displayedPageSizeOptions.length<=1)}}function W(de,ce){if(1&de){const Fe=b.EpF();b.TgZ(0,"button",21),b.NdJ("click",function(){return b.CHM(Fe),b.oxw().firstPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",22),b.qZA(),b.qZA()}if(2&de){const Fe=b.oxw();b.Q6J("matTooltip",Fe._intl.firstPageLabel)("matTooltipDisabled",Fe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Fe._previousButtonsDisabled()),b.uIk("aria-label",Fe._intl.firstPageLabel)}}function ie(de,ce){if(1&de){const Fe=b.EpF();b.O4$(),b.kcU(),b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Fe),b.oxw().lastPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",24),b.qZA(),b.qZA()}if(2&de){const Fe=b.oxw();b.Q6J("matTooltip",Fe._intl.lastPageLabel)("matTooltipDisabled",Fe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Fe._nextButtonsDisabled()),b.uIk("aria-label",Fe._intl.lastPageLabel)}}let Ae=(()=>{class de{constructor(){this.changes=new C.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Fe,Ue,Xe)=>{if(0==Xe||0==Ue)return`0 of ${Xe}`;const te=Fe*Ue;return`${te+1} \u2013 ${te<(Xe=Math.max(Xe,0))?Math.min(te+Ue,Xe):te+Ue} of ${Xe}`}}}return de.\u0275fac=function(Fe){return new(Fe||de)},de.\u0275prov=b.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"}),de})();const Me={provide:Ae,deps:[[new b.FiY,new b.tp0,Ae]],useFactory:function q(de){return de||new Ae}},T=new b.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),N=(0,_.Id)((0,_.dB)(class{}));let j=(()=>{class de extends N{constructor(Fe,Ue,Xe){if(super(),this._intl=Fe,this._changeDetectorRef=Ue,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new b.vpe,this._intlChanges=Fe.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Xe){const{pageSize:te,pageSizeOptions:Ve,hidePageSize:ve,showFirstLastButtons:Oe}=Xe;null!=te&&(this._pageSize=te),null!=Ve&&(this._pageSizeOptions=Ve),null!=ve&&(this._hidePageSize=ve),null!=Oe&&(this._showFirstLastButtons=Oe)}}get pageIndex(){return this._pageIndex}set pageIndex(Fe){this._pageIndex=Math.max((0,E.su)(Fe),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Fe){this._length=(0,E.su)(Fe),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Fe){this._pageSize=Math.max((0,E.su)(Fe),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Fe){this._pageSizeOptions=(Fe||[]).map(Ue=>(0,E.su)(Ue)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Fe){this._hidePageSize=(0,E.Ig)(Fe)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Fe){this._showFirstLastButtons=(0,E.Ig)(Fe)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Fe=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Fe)}previousPage(){if(!this.hasPreviousPage())return;const Fe=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Fe)}firstPage(){if(!this.hasPreviousPage())return;const Fe=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Fe)}lastPage(){if(!this.hasNextPage())return;const Fe=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Fe)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Fe=this.getNumberOfPages()-1;return this.pageIndexFe-Ue),this._changeDetectorRef.markForCheck())}_emitPageEvent(Fe){this.page.emit({previousPageIndex:Fe,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return de.\u0275fac=function(Fe){b.$Z()},de.\u0275dir=b.lG2({type:de,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[b.qOj]}),de})(),Y=(()=>{class de extends j{constructor(Fe,Ue,Xe){super(Fe,Ue,Xe),Xe&&null!=Xe.formFieldAppearance&&(this._formFieldAppearance=Xe.formFieldAppearance)}}return de.\u0275fac=function(Fe){return new(Fe||de)(b.Y36(Ae),b.Y36(b.sBO),b.Y36(T,8))},de.\u0275cmp=b.Xpm({type:de,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[b.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Fe,Ue){1&Fe&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.YNc(2,P,5,3,"div",2),b.TgZ(3,"div",3),b.TgZ(4,"div",4),b._uU(5),b.qZA(),b.YNc(6,W,3,5,"button",5),b.TgZ(7,"button",6),b.NdJ("click",function(){return Ue.previousPage()}),b.O4$(),b.TgZ(8,"svg",7),b._UZ(9,"path",8),b.qZA(),b.qZA(),b.kcU(),b.TgZ(10,"button",9),b.NdJ("click",function(){return Ue.nextPage()}),b.O4$(),b.TgZ(11,"svg",7),b._UZ(12,"path",10),b.qZA(),b.qZA(),b.YNc(13,ie,3,5,"button",11),b.qZA(),b.qZA(),b.qZA()),2&Fe&&(b.xp6(2),b.Q6J("ngIf",!Ue.hidePageSize),b.xp6(3),b.hij(" ",Ue._intl.getRangeLabel(Ue.pageIndex,Ue.pageSize,Ue.length)," "),b.xp6(1),b.Q6J("ngIf",Ue.showFirstLastButtons),b.xp6(1),b.Q6J("matTooltip",Ue._intl.previousPageLabel)("matTooltipDisabled",Ue._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._previousButtonsDisabled()),b.uIk("aria-label",Ue._intl.previousPageLabel),b.xp6(3),b.Q6J("matTooltip",Ue._intl.nextPageLabel)("matTooltipDisabled",Ue._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._nextButtonsDisabled()),b.uIk("aria-label",Ue._intl.nextPageLabel),b.xp6(3),b.Q6J("ngIf",Ue.showFirstLastButtons))},directives:[R.KE,g.gD,_.ey,w.lW,e.O5,e.sg,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),de})(),ee=(()=>{class de{}return de.\u0275fac=function(Fe){return new(Fe||de)},de.\u0275mod=b.oAB({type:de}),de.\u0275inj=b.cJS({providers:[Me],imports:[[e.ez,w.ot,g.LD,A.AV,_.BQ]]}),de})()},85899:(Qe,be,p)=>{"use strict";p.d(be,{Cv:()=>O});var e=p(5e3),b=p(69808),_=p(90508);let O=(()=>{class P{}return P.\u0275fac=function(ie){return new(ie||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({imports:[[b.ez,_.BQ],_.BQ]}),P})()},20773:(Qe,be,p)=>{"use strict";p.d(be,{Cq:()=>N,$g:()=>T});var e=p(5e3),b=p(69808),_=p(90508),w=p(63191),g=p(70925),A=p(76360),E=p(42654),C=p(53435);function R(j,Y){if(1&j&&(e.O4$(),e._UZ(0,"circle",4)),2&j){const ee=e.oxw(),de=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(de)),e.uIk("r",ee._getCircleRadius())}}function I(j,Y){if(1&j&&(e.O4$(),e._UZ(0,"circle",4)),2&j){const ee=e.oxw(),de=e.MAs(1);e.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(de)),e.uIk("r",ee._getCircleRadius())}}function m(j,Y){if(1&j&&(e.O4$(),e._UZ(0,"circle",4)),2&j){const ee=e.oxw(),de=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ee._spinnerAnimationLabel)("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(de)),e.uIk("r",ee._getCircleRadius())}}function O(j,Y){if(1&j&&(e.O4$(),e._UZ(0,"circle",4)),2&j){const ee=e.oxw(),de=e.MAs(1);e.Udp("stroke-dashoffset",ee._getStrokeDashOffset(),"px")("stroke-dasharray",ee._getStrokeCircumference(),"px")("stroke-width",ee._getCircleStrokeWidth(),"%")("transform-origin",ee._getCircleTransformOrigin(de)),e.uIk("r",ee._getCircleRadius())}}const Ae=(0,_.pj)(class{constructor(j){this._elementRef=j}},"primary"),q=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Me(){return{diameter:100}}});class De extends Ae{constructor(Y,ee,de,ce,Fe,Ue,Xe,te){super(Y),this._document=de,this._diameter=100,this._value=0,this._resizeSubscription=E.w.EMPTY,this.mode="determinate";const Ve=De._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Ve.has(de.head)||Ve.set(de.head,new Set([100])),this._noopAnimations="NoopAnimations"===ce&&!!Fe&&!Fe._forceAnimations,Fe&&(Fe.diameter&&(this.diameter=Fe.diameter),Fe.strokeWidth&&(this.strokeWidth=Fe.strokeWidth)),ee.isBrowser&&ee.SAFARI&&Xe&&Ue&&te&&(this._resizeSubscription=Xe.change(150).subscribe(()=>{"indeterminate"===this.mode&&te.run(()=>Ue.markForCheck())}))}get diameter(){return this._diameter}set diameter(Y){this._diameter=(0,w.su)(Y),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Y){this._strokeWidth=(0,w.su)(Y)}get value(){return"determinate"===this.mode?this._value:0}set value(Y){this._value=Math.max(0,Math.min(100,(0,w.su)(Y)))}ngOnInit(){const Y=this._elementRef.nativeElement;this._styleRoot=(0,g.kV)(Y)||this._document.head,this._attachStyleNode(),Y.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Y=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Y} ${Y}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Y){var ee;const de=50*(null!==(ee=Y.currentScale)&&void 0!==ee?ee:1);return`${de}% ${de}%`}_attachStyleNode(){const Y=this._styleRoot,ee=this._diameter,de=De._diameters;let ce=de.get(Y);if(!ce||!ce.has(ee)){const Fe=this._document.createElement("style");Fe.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Fe.textContent=this._getAnimationText(),Y.appendChild(Fe),ce||(ce=new Set,de.set(Y,ce)),ce.add(ee)}}_getAnimationText(){const Y=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*Y).replace(/END_VALUE/g,""+.2*Y).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}De._diameters=new WeakMap,De.\u0275fac=function(Y){return new(Y||De)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(q),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},De.\u0275cmp=e.Xpm({type:De,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(Y,ee){2&Y&&(e.uIk("aria-valuemin","determinate"===ee.mode?0:null)("aria-valuemax","determinate"===ee.mode?100:null)("aria-valuenow","determinate"===ee.mode?ee.value:null)("mode",ee.mode),e.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),e.ekj("_mat-animation-noopable",ee._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(Y,ee){1&Y&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,R,1,11,"circle",2),e.YNc(3,I,1,9,"circle",3),e.qZA()),2&Y&&(e.Udp("width",ee.diameter,"px")("height",ee.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ee.mode),e.uIk("viewBox",ee._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let T=(()=>{class j extends De{constructor(ee,de,ce,Fe,Ue,Xe,te,Ve){super(ee,de,ce,Fe,Ue,Xe,te,Ve),this.mode="indeterminate"}}return j.\u0275fac=function(ee){return new(ee||j)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(q),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},j.\u0275cmp=e.Xpm({type:j,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(ee,de){2&ee&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.ekj("_mat-animation-noopable",de._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ee,de){1&ee&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,m,1,11,"circle",2),e.YNc(3,O,1,9,"circle",3),e.qZA()),2&ee&&(e.Udp("width",de.diameter,"px")("height",de.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===de.mode),e.uIk("viewBox",de._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),j})(),N=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[[_.BQ,b.ez],_.BQ]}),j})()},79814:(Qe,be,p)=>{"use strict";p.d(be,{U0:()=>N,VQ:()=>Me,Fk:()=>j});var e=p(5e3),b=p(90508),_=p(63191),w=p(93075),g=p(76360),A=p(15664),E=p(20449);const C=["input"],R=function(Y){return{enterDuration:Y}},I=["*"],m=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function O(){return{color:"accent"}}});let P=0;const W={provide:w.JU,useExisting:(0,e.Gpc)(()=>Me),multi:!0};class ie{constructor(ee,de){this.source=ee,this.value=de}}const Ae=new e.OlP("MatRadioGroup");let q=(()=>{class Y{constructor(de){this._changeDetector=de,this._value=null,this._name="mat-radio-group-"+P++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(de){this._name=de,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(de){this._labelPosition="before"===de?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(de){this._value!==de&&(this._value=de,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(de){this._selected=de,this.value=de?de.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(de){this._disabled=(0,_.Ig)(de),this._markRadiosForCheck()}get required(){return this._required}set required(de){this._required=(0,_.Ig)(de),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(de=>{de.name=this.name,de._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(ce=>{ce.checked=this.value===ce.value,ce.checked&&(this._selected=ce)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new ie(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(de=>de._markForCheck())}writeValue(de){this.value=de,this._changeDetector.markForCheck()}registerOnChange(de){this._controlValueAccessorChangeFn=de}registerOnTouched(de){this.onTouched=de}setDisabledState(de){this.disabled=de,this._changeDetector.markForCheck()}}return Y.\u0275fac=function(de){return new(de||Y)(e.Y36(e.sBO))},Y.\u0275dir=e.lG2({type:Y,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),Y})(),Me=(()=>{class Y extends q{}return Y.\u0275fac=function(){let ee;return function(ce){return(ee||(ee=e.n5z(Y)))(ce||Y)}}(),Y.\u0275dir=e.lG2({type:Y,selectors:[["mat-radio-group"]],contentQueries:function(de,ce,Fe){if(1&de&&e.Suo(Fe,N,5),2&de){let Ue;e.iGM(Ue=e.CRH())&&(ce._radios=Ue)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([W,{provide:Ae,useExisting:Y}]),e.qOj]}),Y})();class he{constructor(ee){this._elementRef=ee}}const De=(0,b.Kr)((0,b.sb)(he));let T=(()=>{class Y extends De{constructor(de,ce,Fe,Ue,Xe,te,Ve,ve){super(ce),this._changeDetector=Fe,this._focusMonitor=Ue,this._radioDispatcher=Xe,this._providerOverride=Ve,this._uniqueId="mat-radio-"+ ++P,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=de,this._noopAnimations="NoopAnimations"===te,ve&&(this.tabIndex=(0,_.su)(ve,0)),this._removeUniqueSelectionListener=Xe.listen((Oe,z)=>{Oe!==this.id&&z===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(de){const ce=(0,_.Ig)(de);this._checked!==ce&&(this._checked=ce,ce&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!ce&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),ce&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(de){this._value!==de&&(this._value=de,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===de),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(de){this._labelPosition=de}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(de){this._setDisabled((0,_.Ig)(de))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(de){this._required=(0,_.Ig)(de)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(de){this._color=de}get inputId(){return`${this.id||this._uniqueId}-input`}focus(de,ce){ce?this._focusMonitor.focusVia(this._inputElement,ce,de):this._inputElement.nativeElement.focus(de)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(de=>{!de&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new ie(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(de){de.stopPropagation()}_onInputInteraction(de){if(de.stopPropagation(),!this.checked&&!this.disabled){const ce=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),ce&&this.radioGroup._emitChangeEvent())}}_setDisabled(de){this._disabled!==de&&(this._disabled=de,this._changeDetector.markForCheck())}}return Y.\u0275fac=function(de){e.$Z()},Y.\u0275dir=e.lG2({type:Y,viewQuery:function(de,ce){if(1&de&&e.Gf(C,5),2&de){let Fe;e.iGM(Fe=e.CRH())&&(ce._inputElement=Fe.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),Y})(),N=(()=>{class Y extends T{constructor(de,ce,Fe,Ue,Xe,te,Ve,ve){super(de,ce,Fe,Ue,Xe,te,Ve,ve)}}return Y.\u0275fac=function(de){return new(de||Y)(e.Y36(Ae,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(E.A8),e.Y36(g.Qb,8),e.Y36(m,8),e.$8M("tabindex"))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(de,ce){1&de&&e.NdJ("focus",function(){return ce._inputElement.nativeElement.focus()}),2&de&&(e.uIk("tabindex",null)("id",ce.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",ce.checked)("mat-radio-disabled",ce.disabled)("_mat-animation-noopable",ce._noopAnimations)("mat-primary","primary"===ce.color)("mat-accent","accent"===ce.color)("mat-warn","warn"===ce.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:I,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(de,ce){if(1&de&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Ue){return ce._onInputInteraction(Ue)})("click",function(Ue){return ce._onInputClick(Ue)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&de){const Fe=e.MAs(1);e.uIk("for",ce.inputId),e.xp6(5),e.Q6J("id",ce.inputId)("checked",ce.checked)("disabled",ce.disabled)("tabIndex",ce.tabIndex)("required",ce.required),e.uIk("name",ce.name)("value",ce.value)("aria-label",ce.ariaLabel)("aria-labelledby",ce.ariaLabelledby)("aria-describedby",ce.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Fe)("matRippleDisabled",ce._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,R,ce._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==ce.labelPosition)}},directives:[b.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(de){return new(de||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),Y})()},74107:(Qe,be,p)=>{"use strict";p.d(be,{gD:()=>oe,LD:()=>_e,$L:()=>Z});var e=p(92845),b=p(69808),_=p(5e3),w=p(90508),g=p(67322),A=p(53435),E=p(15664),C=p(63191),R=p(20449),I=p(91159),m=p(93075),O=p(8929),P=p(88514),W=p(36787),ie=p(1059),Ae=p(87545),q=p(72986),Me=p(92198),he=p(24850),De=p(75778),T=p(7625),N=p(41777),j=p(50226);const Y=["trigger"],ee=["panel"];function de($,V){if(1&$&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&$){const i=_.oxw();_.xp6(1),_.Oqu(i.placeholder)}}function ce($,V){if(1&$&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&$){const i=_.oxw(2);_.xp6(1),_.Oqu(i.triggerValue)}}function Fe($,V){1&$&&_.Hsn(0,0,["*ngSwitchCase","true"])}function Ue($,V){if(1&$&&(_.TgZ(0,"span",9),_.YNc(1,ce,2,1,"span",10),_.YNc(2,Fe,1,0,"ng-content",11),_.qZA()),2&$){const i=_.oxw();_.Q6J("ngSwitch",!!i.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function Xe($,V){if(1&$){const i=_.EpF();_.TgZ(0,"div",13),_.TgZ(1,"div",14,15),_.NdJ("@transformPanel.done",function(d){return _.CHM(i),_.oxw()._panelDoneAnimatingStream.next(d.toState)})("keydown",function(d){return _.CHM(i),_.oxw()._handleKeydown(d)}),_.Hsn(3,1),_.qZA(),_.qZA()}if(2&$){const i=_.oxw();_.Q6J("@transformPanelWrap",void 0),_.xp6(1),_.Gre("mat-select-panel ",i._getPanelTheme(),""),_.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),_.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),_.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const te=[[["mat-select-trigger"]],"*"],Ve=["mat-select-trigger","*"],ve={transformPanelWrap:(0,N.X$)("transformPanelWrap",[(0,N.eR)("* => void",(0,N.IO)("@transformPanel",[(0,N.pV)()],{optional:!0}))]),transformPanel:(0,N.X$)("transformPanel",[(0,N.SB)("void",(0,N.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,N.SB)("showing",(0,N.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,N.SB)("showing-multiple",(0,N.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,N.eR)("void => *",(0,N.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,N.eR)("* => void",(0,N.jt)("100ms 25ms linear",(0,N.oB)({opacity:0})))])};let ge=0;const nt=new _.OlP("mat-select-scroll-strategy"),Q=new _.OlP("MAT_SELECT_CONFIG"),Ce={provide:nt,deps:[e.aV],useFactory:function je($){return()=>$.scrollStrategies.reposition()}};class re{constructor(V,i){this.source=V,this.value=i}}const k=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor($,V,i,a,d){this._elementRef=$,this._defaultErrorStateMatcher=V,this._parentForm=i,this._parentFormGroup=a,this.ngControl=d}})))),pe=new _.OlP("MatSelectTrigger");let Z=(()=>{class ${}return $.\u0275fac=function(i){return new(i||$)},$.\u0275dir=_.lG2({type:$,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:pe,useExisting:$}])]}),$})(),Ne=(()=>{class $ extends k{constructor(i,a,d,l,s,r,t,n,o,c,h,x,We,At){var Ht,lt,Ut;super(s,l,t,n,c),this._viewportRuler=i,this._changeDetectorRef=a,this._ngZone=d,this._dir=r,this._parentFormField=o,this._liveAnnouncer=We,this._defaultOptions=At,this._panelOpen=!1,this._compareWith=(mt,Lt)=>mt===Lt,this._uid="mat-select-"+ge++,this._triggerAriaLabelledBy=null,this._destroy=new O.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+ge++,this._panelDoneAnimatingStream=new O.xQ,this._overlayPanelClass=(null===(Ht=this._defaultOptions)||void 0===Ht?void 0:Ht.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ut=null===(lt=this._defaultOptions)||void 0===lt?void 0:lt.disableOptionCentering)&&void 0!==Ut&&Ut,this.ariaLabel="",this.optionSelectionChanges=(0,P.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,ie.O)(mt),(0,Ae.w)(()=>(0,W.T)(...mt.map(Lt=>Lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,q.q)(1),(0,Ae.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,Me.h)(mt=>mt),(0,he.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Me.h)(mt=>!mt),(0,he.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==At?void 0:At.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=At.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){var i,a,d,l;return null!==(l=null!==(i=this._required)&&void 0!==i?i:null===(d=null===(a=this.ngControl)||void 0===a?void 0:a.control)||void 0===d?void 0:d.hasValidator(m.kI.required))&&void 0!==l&&l}set required(i){this._required=(0,C.Ig)(i),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._multiple=(0,C.Ig)(i)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(i){this._disableOptionCentering=(0,C.Ig)(i)}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){(i!==this._value||this._multiple&&Array.isArray(i))&&(this.options&&this._setSelectionByValue(i),this._value=i)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(i){this._typeaheadDebounceInterval=(0,C.su)(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new R.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,De.x)(),(0,T.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,T.R)(this._destroy)).subscribe(i=>{i.added.forEach(a=>a.select()),i.removed.forEach(a=>a.deselect())}),this.options.changes.pipe((0,ie.O)(null),(0,T.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const i=this._getTriggerAriaLabelledby();if(i!==this._triggerAriaLabelledBy){const a=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?a.setAttribute("aria-labelledby",i):a.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(i){i.disabled&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(i){this.value=i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var i,a;return this.multiple?(null===(i=this._selectionModel)||void 0===i?void 0:i.selected)||[]:null===(a=this._selectionModel)||void 0===a?void 0:a.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const i=this._selectionModel.selected.map(a=>a.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){const a=i.keyCode,d=a===I.JH||a===I.LH||a===I.oh||a===I.SV,l=a===I.K5||a===I.L_,s=this._keyManager;if(!s.isTyping()&&l&&!(0,I.Vb)(i)||(this.multiple||i.altKey)&&d)i.preventDefault(),this.open();else if(!this.multiple){const r=this.selected;s.onKeydown(i);const t=this.selected;t&&r!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(i){const a=this._keyManager,d=i.keyCode,l=d===I.JH||d===I.LH,s=a.isTyping();if(l&&i.altKey)i.preventDefault(),this.close();else if(s||d!==I.K5&&d!==I.L_||!a.activeItem||(0,I.Vb)(i))if(!s&&this._multiple&&d===I.A&&i.ctrlKey){i.preventDefault();const r=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(r?t.select():t.deselect())})}else{const r=a.activeItemIndex;a.onKeydown(i),this._multiple&&l&&i.shiftKey&&a.activeItem&&a.activeItemIndex!==r&&a.activeItem._selectViaInteraction()}else i.preventDefault(),a.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,q.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(i){if(this._selectionModel.selected.forEach(a=>a.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(a=>this._selectValue(a)),this._sortValues();else{const a=this._selectValue(i);a?this._keyManager.updateActiveItem(a):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(i){const a=this.options.find(d=>{if(this._selectionModel.isSelected(d))return!1;try{return null!=d.value&&this._compareWith(d.value,i)}catch(l){return!1}});return a&&this._selectionModel.select(a),a}_initKeyManager(){this._keyManager=new E.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,T.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const i=(0,W.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,T.R)(i)).subscribe(a=>{this._onSelect(a.source,a.isUserInput),a.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,W.T)(...this.options.map(a=>a._stateChanges)).pipe((0,T.R)(i)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(i,a){const d=this._selectionModel.isSelected(i);null!=i.value||this._multiple?(d!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),a&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),a&&this.focus())):(i.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(i.value)),d!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const i=this.options.toArray();this._selectionModel.sort((a,d)=>this.sortComparator?this.sortComparator(a,d,i):i.indexOf(a)-i.indexOf(d)),this.stateChanges.next()}}_propagateChanges(i){let a=null;a=this.multiple?this.selected.map(d=>d.value):this.selected?this.selected.value:i,this._value=a,this.valueChange.emit(a),this._onChange(a),this.selectionChange.emit(this._getChangeEvent(a)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var i;return!this._panelOpen&&!this.disabled&&(null===(i=this.options)||void 0===i?void 0:i.length)>0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){var i;if(this.ariaLabel)return null;const a=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();return this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var i;if(this.ariaLabel)return null;const a=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();let d=(a?a+" ":"")+this._valueId;return this.ariaLabelledby&&(d+=" "+this.ariaLabelledby),d}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){this._ariaDescribedby=i.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return $.\u0275fac=function(i){return new(i||$)(_.Y36(A.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(w.rD),_.Y36(_.SBq),_.Y36(j.Is,8),_.Y36(m.F,8),_.Y36(m.sg,8),_.Y36(g.G_,8),_.Y36(m.a5,10),_.$8M("tabindex"),_.Y36(nt),_.Y36(E.Kd),_.Y36(Q,8))},$.\u0275dir=_.lG2({type:$,viewQuery:function(i,a){if(1&i&&(_.Gf(Y,5),_.Gf(ee,5),_.Gf(e.pI,5)),2&i){let d;_.iGM(d=_.CRH())&&(a.trigger=d.first),_.iGM(d=_.CRH())&&(a.panel=d.first),_.iGM(d=_.CRH())&&(a._overlayDir=d.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.qOj,_.TTD]}),$})(),oe=(()=>{class $ extends Ne{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(i,a,d){const l=this._getItemHeight();return Math.min(Math.max(0,l*i-a+l/2),d)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,q.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(i){const a=(0,w.CB)(i,this.options,this.optionGroups),d=this._getItemHeight();this.panel.nativeElement.scrollTop=0===i&&1===a?0:(0,w.jH)((i+a)*d,d,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(i){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(i)}_getChangeEvent(i){return new re(this,i)}_calculateOverlayOffsetX(){const i=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),a=this._viewportRuler.getViewportSize(),d=this._isRtl(),l=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let n=this._selectionModel.selected[0]||this.options.first;s=n&&n.group?32:16}d||(s*=-1);const r=0-(i.left+s-(d?l:0)),t=i.right+s-a.width+(d?0:l);r>0?s+=r+8:t>0&&(s-=t+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(i,a,d){const l=this._getItemHeight(),s=(l-this._triggerRect.height)/2,r=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?i*l:this._scrollTop===d?(i-(this._getItemCount()-r))*l+(l-(this._getItemCount()*l-256)%l):a-l/2,Math.round(-1*t-s))}_checkOverlayWithinViewport(i){const a=this._getItemHeight(),d=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,s=d.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*a,256)-r-this._triggerRect.height;n>s?this._adjustPanelUp(n,s):r>l?this._adjustPanelDown(r,l,i):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(i,a){const d=Math.round(i-a);this._scrollTop-=d,this._offsetY-=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(i,a,d){const l=Math.round(i-a);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=d)return this._scrollTop=d,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const i=this._getItemHeight(),a=this._getItemCount(),d=Math.min(a*i,256),s=a*i-d;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,w.CB)(r,this.options,this.optionGroups);const t=d/2;this._scrollTop=this._calculateOverlayScroll(r,t,s),this._offsetY=this._calculateOverlayOffsetY(r,t,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const i=this._getItemHeight(),a=(i-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-a+i/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return $.\u0275fac=function(){let V;return function(a){return(V||(V=_.n5z($)))(a||$)}}(),$.\u0275cmp=_.Xpm({type:$,selectors:[["mat-select"]],contentQueries:function(i,a,d){if(1&i&&(_.Suo(d,pe,5),_.Suo(d,w.ey,5),_.Suo(d,w.K7,5)),2&i){let l;_.iGM(l=_.CRH())&&(a.customTrigger=l.first),_.iGM(l=_.CRH())&&(a.options=l),_.iGM(l=_.CRH())&&(a.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(i,a){1&i&&_.NdJ("keydown",function(l){return a._handleKeydown(l)})("focus",function(){return a._onFocus()})("blur",function(){return a._onBlur()}),2&i&&(_.uIk("id",a.id)("tabindex",a.tabIndex)("aria-controls",a.panelOpen?a.id+"-panel":null)("aria-expanded",a.panelOpen)("aria-label",a.ariaLabel||null)("aria-required",a.required.toString())("aria-disabled",a.disabled.toString())("aria-invalid",a.errorState)("aria-describedby",a._ariaDescribedby||null)("aria-activedescendant",a._getAriaActiveDescendant()),_.ekj("mat-select-disabled",a.disabled)("mat-select-invalid",a.errorState)("mat-select-required",a.required)("mat-select-empty",a.empty)("mat-select-multiple",a.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:g.Eo,useExisting:$},{provide:w.HF,useExisting:$}]),_.qOj],ngContentSelectors:Ve,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,a){if(1&i&&(_.F$t(te),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return a.toggle()}),_.TgZ(3,"div",2),_.YNc(4,de,2,1,"span",3),_.YNc(5,Ue,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA(),_.qZA(),_.YNc(8,Xe,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return a.close()})("attach",function(){return a._onAttached()})("detach",function(){return a.close()})),2&i){const d=_.MAs(1);_.uIk("aria-owns",a.panelOpen?a.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",a.empty),_.uIk("id",a._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",a._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",a._scrollStrategy)("cdkConnectedOverlayOrigin",d)("cdkConnectedOverlayOpen",a.panelOpen)("cdkConnectedOverlayPositions",a._positions)("cdkConnectedOverlayMinWidth",null==a._triggerRect?null:a._triggerRect.width)("cdkConnectedOverlayOffsetY",a._offsetY)}},directives:[e.xu,b.RF,b.n9,b.ED,e.pI,b.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ve.transformPanelWrap,ve.transformPanel]},changeDetection:0}),$})(),_e=(()=>{class ${}return $.\u0275fac=function(i){return new(i||$)},$.\u0275mod=_.oAB({type:$}),$.\u0275inj=_.cJS({providers:[Ce],imports:[[b.ez,e.U8,w.Ng,w.BQ],A.ZD,g.lN,w.Ng,w.BQ]}),$})()},2638:(Qe,be,p)=>{"use strict";p.d(be,{JX:()=>Je,TM:()=>nt,Rh:()=>Ke,SJ:()=>je});var e=p(70925),b=p(53435),_=p(69808),w=p(5e3),g=p(90508),A=p(63191),E=p(91159),C=p(8929),R=p(23753),I=p(36787),m=p(92198),O=p(24850),P=p(77604),W=p(7625),ie=p(75778),Ae=p(72986),q=p(1059),Me=p(80013),he=p(41777),De=p(76360),T=p(15664),N=p(50226);const j=["*"],Y=["content"];function ee(Q,Ce){if(1&Q){const re=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(re),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&Q){const re=w.oxw();w.ekj("mat-drawer-shown",re._isShowingBackdrop())}}function de(Q,Ce){1&Q&&(w.TgZ(0,"mat-drawer-content"),w.Hsn(1,2),w.qZA())}const ce=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Fe=["mat-drawer","mat-drawer-content","*"];function Ue(Q,Ce){if(1&Q){const re=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(re),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&Q){const re=w.oxw();w.ekj("mat-drawer-shown",re._isShowingBackdrop())}}function Xe(Q,Ce){1&Q&&(w.TgZ(0,"mat-sidenav-content"),w.Hsn(1,2),w.qZA())}const te=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Ve=["mat-sidenav","mat-sidenav-content","*"],Oe={transformDrawer:(0,he.X$)("transform",[(0,he.SB)("open, open-instant",(0,he.oB)({transform:"none",visibility:"visible"})),(0,he.SB)("void",(0,he.oB)({"box-shadow":"none",visibility:"hidden"})),(0,he.eR)("void => open-instant",(0,he.jt)("0ms")),(0,he.eR)("void <=> open, open-instant => void",(0,he.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},D=new w.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Te(){return!1}}),ge=new w.OlP("MAT_DRAWER_CONTAINER");let Ie=(()=>{class Q extends b.PQ{constructor(re,k,pe,Z,Ne){super(pe,Z,Ne),this._changeDetectorRef=re,this._container=k}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return Q.\u0275fac=function(re){return new(re||Q)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>Se)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(re,k){2&re&&w.Udp("margin-left",k._container._contentMargins.left,"px")("margin-right",k._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:Q}]),w.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(re,k){1&re&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),fe=(()=>{class Q{constructor(re,k,pe,Z,Ne,oe,_e,$){this._elementRef=re,this._focusTrapFactory=k,this._focusMonitor=pe,this._platform=Z,this._ngZone=Ne,this._interactivityChecker=oe,this._doc=_e,this._container=$,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new C.xQ,this._animationEnd=new C.xQ,this._animationState="void",this.openedChange=new w.vpe(!0),this._openedStream=this.openedChange.pipe((0,m.h)(V=>V),(0,O.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,m.h)(V=>V.fromState!==V.toState&&0===V.toState.indexOf("open")),(0,P.h)(void 0)),this._closedStream=this.openedChange.pipe((0,m.h)(V=>!V),(0,O.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,m.h)(V=>V.fromState!==V.toState&&"void"===V.toState),(0,P.h)(void 0)),this._destroyed=new C.xQ,this.onPositionChanged=new w.vpe,this._modeChanged=new C.xQ,this.openedChange.subscribe(V=>{V?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,m.h)(V=>V.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(V)),(0,W.R)(this._destroyed)).subscribe(V=>this._ngZone.run(()=>{this.close(),V.stopPropagation(),V.preventDefault()}))}),this._animationEnd.pipe((0,ie.x)((V,i)=>V.fromState===i.fromState&&V.toState===i.toState)).subscribe(V=>{const{fromState:i,toState:a}=V;(0===a.indexOf("open")&&"void"===i||"void"===a&&0===i.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(re){(re="end"===re?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(re),this._position=re,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(re){this._mode=re,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(re){this._disableClose=(0,A.Ig)(re)}get autoFocus(){const re=this._autoFocus;return null==re?"side"===this.mode?"dialog":"first-tabbable":re}set autoFocus(re){("true"===re||"false"===re||null==re)&&(re=(0,A.Ig)(re)),this._autoFocus=re}get opened(){return this._opened}set opened(re){this.toggle((0,A.Ig)(re))}_forceFocus(re,k){this._interactivityChecker.isFocusable(re)||(re.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{re.addEventListener("blur",()=>re.removeAttribute("tabindex")),re.addEventListener("mousedown",()=>re.removeAttribute("tabindex"))})),re.focus(k)}_focusByCssSelector(re,k){let pe=this._elementRef.nativeElement.querySelector(re);pe&&this._forceFocus(pe,k)}_takeFocus(){if(!this._focusTrap)return;const re=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(k=>{!k&&"function"==typeof this._elementRef.nativeElement.focus&&re.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(re){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,re):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const re=this._doc.activeElement;return!!re&&this._elementRef.nativeElement.contains(re)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var re;this._focusTrap&&this._focusTrap.destroy(),null===(re=this._anchor)||void 0===re||re.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(re){return this.toggle(!0,re)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(re=!this.opened,k){re&&k&&(this._openedVia=k);const pe=this._setOpen(re,!re&&this._isFocusWithinDrawer(),this._openedVia||"program");return re||(this._openedVia=null),pe}_setOpen(re,k,pe){return this._opened=re,re?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",k&&this._restoreFocus(pe)),this._updateFocusTrapState(),new Promise(Z=>{this.openedChange.pipe((0,Ae.q)(1)).subscribe(Ne=>Z(Ne?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(re){const k=this._elementRef.nativeElement,pe=k.parentNode;"end"===re?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),pe.insertBefore(this._anchor,k)),pe.appendChild(k)):this._anchor&&this._anchor.parentNode.insertBefore(k,this._anchor)}}return Q.\u0275fac=function(re){return new(re||Q)(w.Y36(w.SBq),w.Y36(T.qV),w.Y36(T.tE),w.Y36(e.t4),w.Y36(w.R0b),w.Y36(T.ic),w.Y36(_.K0,8),w.Y36(ge,8))},Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-drawer"]],viewQuery:function(re,k){if(1&re&&w.Gf(Y,5),2&re){let pe;w.iGM(pe=w.CRH())&&(k._content=pe.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(re,k){1&re&&w.WFA("@transform.start",function(Z){return k._animationStarted.next(Z)})("@transform.done",function(Z){return k._animationEnd.next(Z)}),2&re&&(w.uIk("align",null),w.d8E("@transform",k._animationState),w.ekj("mat-drawer-end","end"===k.position)("mat-drawer-over","over"===k.mode)("mat-drawer-push","push"===k.mode)("mat-drawer-side","side"===k.mode)("mat-drawer-opened",k.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:j,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(re,k){1&re&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Oe.transformDrawer]},changeDetection:0}),Q})(),Se=(()=>{class Q{constructor(re,k,pe,Z,Ne,oe=!1,_e){this._dir=re,this._element=k,this._ngZone=pe,this._changeDetectorRef=Z,this._animationMode=_e,this._drawers=new w.n_E,this.backdropClick=new w.vpe,this._destroyed=new C.xQ,this._doCheckSubject=new C.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new C.xQ,re&&re.change.pipe((0,W.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ne.change().pipe((0,W.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=oe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(re){this._autosize=(0,A.Ig)(re)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(re){this._backdropOverride=null==re?null:(0,A.Ig)(re)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,q.O)(this._allDrawers),(0,W.R)(this._destroyed)).subscribe(re=>{this._drawers.reset(re.filter(k=>!k._container||k._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,q.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(re=>{this._watchDrawerToggle(re),this._watchDrawerPosition(re),this._watchDrawerMode(re)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Me.b)(10),(0,W.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(re=>re.open())}close(){this._drawers.forEach(re=>re.close())}updateContentMargins(){let re=0,k=0;if(this._left&&this._left.opened)if("side"==this._left.mode)re+=this._left._getWidth();else if("push"==this._left.mode){const pe=this._left._getWidth();re+=pe,k-=pe}if(this._right&&this._right.opened)if("side"==this._right.mode)k+=this._right._getWidth();else if("push"==this._right.mode){const pe=this._right._getWidth();k+=pe,re-=pe}re=re||null,k=k||null,(re!==this._contentMargins.left||k!==this._contentMargins.right)&&(this._contentMargins={left:re,right:k},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(re){re._animationStarted.pipe((0,m.h)(k=>k.fromState!==k.toState),(0,W.R)(this._drawers.changes)).subscribe(k=>{"open-instant"!==k.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==re.mode&&re.openedChange.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(re.opened))}_watchDrawerPosition(re){!re||re.onPositionChanged.pipe((0,W.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Ae.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(re){re&&re._modeChanged.pipe((0,W.R)((0,I.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(re){const k=this._element.nativeElement.classList,pe="mat-drawer-container-has-open";re?k.add(pe):k.remove(pe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(re=>{"end"==re.position?this._end=re:this._start=re}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(re=>re&&!re.disableClose&&this._canHaveBackdrop(re)).forEach(re=>re._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(re){return"side"!==re.mode||!!this._backdropOverride}_isDrawerOpen(re){return null!=re&&re.opened}}return Q.\u0275fac=function(re){return new(re||Q)(w.Y36(N.Is,8),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(b.rL),w.Y36(D),w.Y36(De.Qb,8))},Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-drawer-container"]],contentQueries:function(re,k,pe){if(1&re&&(w.Suo(pe,Ie,5),w.Suo(pe,fe,5)),2&re){let Z;w.iGM(Z=w.CRH())&&(k._content=Z.first),w.iGM(Z=w.CRH())&&(k._allDrawers=Z)}},viewQuery:function(re,k){if(1&re&&w.Gf(Ie,5),2&re){let pe;w.iGM(pe=w.CRH())&&(k._userContent=pe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(re,k){2&re&&w.ekj("mat-drawer-container-explicit-backdrop",k._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[w._Bn([{provide:ge,useExisting:Q}])],ngContentSelectors:Fe,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(re,k){1&re&&(w.F$t(ce),w.YNc(0,ee,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,de,2,0,"mat-drawer-content",1)),2&re&&(w.Q6J("ngIf",k.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!k._content))},directives:[Ie,_.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Q})(),Ke=(()=>{class Q extends Ie{constructor(re,k,pe,Z,Ne){super(re,k,pe,Z,Ne)}}return Q.\u0275fac=function(re){return new(re||Q)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>nt)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(re,k){2&re&&w.Udp("margin-left",k._container._contentMargins.left,"px")("margin-right",k._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:Q}]),w.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(re,k){1&re&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),Q})(),Je=(()=>{class Q extends fe{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(re){this._fixedInViewport=(0,A.Ig)(re)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(re){this._fixedTopGap=(0,A.su)(re)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(re){this._fixedBottomGap=(0,A.su)(re)}}return Q.\u0275fac=function(){let Ce;return function(k){return(Ce||(Ce=w.n5z(Q)))(k||Q)}}(),Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(re,k){2&re&&(w.uIk("align",null),w.Udp("top",k.fixedInViewport?k.fixedTopGap:null,"px")("bottom",k.fixedInViewport?k.fixedBottomGap:null,"px"),w.ekj("mat-drawer-end","end"===k.position)("mat-drawer-over","over"===k.mode)("mat-drawer-push","push"===k.mode)("mat-drawer-side","side"===k.mode)("mat-drawer-opened",k.opened)("mat-sidenav-fixed",k.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[w.qOj],ngContentSelectors:j,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(re,k){1&re&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Oe.transformDrawer]},changeDetection:0}),Q})(),nt=(()=>{class Q extends Se{}return Q.\u0275fac=function(){let Ce;return function(k){return(Ce||(Ce=w.n5z(Q)))(k||Q)}}(),Q.\u0275cmp=w.Xpm({type:Q,selectors:[["mat-sidenav-container"]],contentQueries:function(re,k,pe){if(1&re&&(w.Suo(pe,Ke,5),w.Suo(pe,Je,5)),2&re){let Z;w.iGM(Z=w.CRH())&&(k._content=Z.first),w.iGM(Z=w.CRH())&&(k._allDrawers=Z)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(re,k){2&re&&w.ekj("mat-drawer-container-explicit-backdrop",k._backdropOverride)},exportAs:["matSidenavContainer"],features:[w._Bn([{provide:ge,useExisting:Q}]),w.qOj],ngContentSelectors:Ve,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(re,k){1&re&&(w.F$t(te),w.YNc(0,Ue,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,Xe,2,0,"mat-sidenav-content",1)),2&re&&(w.Q6J("ngIf",k.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!k._content))},directives:[Ke,_.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),Q})(),je=(()=>{class Q{}return Q.\u0275fac=function(re){return new(re||Q)},Q.\u0275mod=w.oAB({type:Q}),Q.\u0275inj=w.cJS({imports:[[_.ez,g.BQ,e.ud,b.ZD],b.ZD,g.BQ]}),Q})()},32368:(Qe,be,p)=>{"use strict";p.d(be,{Rr:()=>Me,rP:()=>N});var e=p(17144),b=p(5e3),_=p(90508),w=p(63191),g=p(93075),A=p(76360),E=p(15664);const C=["thumbContainer"],R=["toggleBar"],I=["input"],m=function(j){return{enterDuration:j}},O=["*"],P=new b.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let W=0;const ie={provide:g.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class Ae{constructor(Y,ee){this.source=Y,this.checked=ee}}const q=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(j){this._elementRef=j}}))));let Me=(()=>{class j extends q{constructor(ee,de,ce,Fe,Ue,Xe){super(ee),this._focusMonitor=de,this._changeDetectorRef=ce,this.defaults=Ue,this._onChange=te=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++W,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new b.vpe,this.toggleChange=new b.vpe,this.tabIndex=parseInt(Fe)||0,this.color=this.defaultColor=Ue.color||"accent",this._noopAnimations="NoopAnimations"===Xe}get required(){return this._required}set required(ee){this._required=(0,w.Ig)(ee)}get checked(){return this._checked}set checked(ee){this._checked=(0,w.Ig)(ee),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ee=>{ee||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(ee){ee.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(ee){ee.stopPropagation()}writeValue(ee){this.checked=!!ee}registerOnChange(ee){this._onChange=ee}registerOnTouched(ee){this._onTouched=ee}setDisabledState(ee){this.disabled=ee,this._changeDetectorRef.markForCheck()}focus(ee,de){de?this._focusMonitor.focusVia(this._inputElement,de,ee):this._inputElement.nativeElement.focus(ee)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Ae(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return j.\u0275fac=function(ee){return new(ee||j)(b.Y36(b.SBq),b.Y36(E.tE),b.Y36(b.sBO),b.$8M("tabindex"),b.Y36(P),b.Y36(A.Qb,8))},j.\u0275cmp=b.Xpm({type:j,selectors:[["mat-slide-toggle"]],viewQuery:function(ee,de){if(1&ee&&(b.Gf(C,5),b.Gf(R,5),b.Gf(I,5)),2&ee){let ce;b.iGM(ce=b.CRH())&&(de._thumbEl=ce.first),b.iGM(ce=b.CRH())&&(de._thumbBarEl=ce.first),b.iGM(ce=b.CRH())&&(de._inputElement=ce.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(ee,de){2&ee&&(b.Ikx("id",de.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checked",de.checked)("mat-disabled",de.disabled)("mat-slide-toggle-label-before","before"==de.labelPosition)("_mat-animation-noopable",de._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[b._Bn([ie]),b.qOj],ngContentSelectors:O,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(ee,de){if(1&ee&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2,3),b.TgZ(4,"input",4,5),b.NdJ("change",function(Fe){return de._onChangeEvent(Fe)})("click",function(Fe){return de._onInputClick(Fe)}),b.qZA(),b.TgZ(6,"span",6,7),b._UZ(8,"span",8),b.TgZ(9,"span",9),b._UZ(10,"span",10),b.qZA(),b.qZA(),b.qZA(),b.TgZ(11,"span",11,12),b.NdJ("cdkObserveContent",function(){return de._onLabelTextChange()}),b.TgZ(13,"span",13),b._uU(14,"\xa0"),b.qZA(),b.Hsn(15),b.qZA(),b.qZA()),2&ee){const ce=b.MAs(1),Fe=b.MAs(12);b.uIk("for",de.inputId),b.xp6(2),b.ekj("mat-slide-toggle-bar-no-side-margin",!Fe.textContent||!Fe.textContent.trim()),b.xp6(2),b.Q6J("id",de.inputId)("required",de.required)("tabIndex",de.tabIndex)("checked",de.checked)("disabled",de.disabled),b.uIk("name",de.name)("aria-checked",de.checked)("aria-label",de.ariaLabel)("aria-labelledby",de.ariaLabelledby)("aria-describedby",de.ariaDescribedby),b.xp6(5),b.Q6J("matRippleTrigger",ce)("matRippleDisabled",de.disableRipple||de.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",b.VKq(18,m,de._noopAnimations?0:150))}},directives:[_.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),j})(),T=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=b.oAB({type:j}),j.\u0275inj=b.cJS({}),j})(),N=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=b.oAB({type:j}),j.\u0275inj=b.cJS({imports:[[T,_.si,_.BQ,e.Q8],T,_.BQ]}),j})()},57261:(Qe,be,p)=>{"use strict";p.d(be,{ZX:()=>q});var e=p(92845),b=p(47429),_=p(69808),w=p(5e3),g=p(90508),A=p(47423);p(41777);let q=(()=>{class N{}return N.\u0275fac=function(Y){return new(Y||N)},N.\u0275mod=w.oAB({type:N}),N.\u0275inj=w.cJS({imports:[[e.U8,b.eL,_.ez,A.ot,g.BQ],g.BQ]}),N})()},84847:(Qe,be,p)=>{"use strict";p.d(be,{YE:()=>Y,nU:()=>ce,JX:()=>Fe});var e=p(5e3),b=p(63191),_=p(91159),w=p(90508),g=p(8929),A=p(36787),E=p(41777),C=p(15664),R=p(69808);const I=["mat-sort-header",""];function m(Ue,Xe){if(1&Ue){const te=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(te),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(te),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&Ue){const te=e.oxw();e.Q6J("@arrowOpacity",te._getArrowViewState())("@arrowPosition",te._getArrowViewState())("@allowChildren",te._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",te._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",te._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",te._getArrowDirectionState())}}const O=["*"],P=w.mZ.ENTERING+" "+w.yN.STANDARD_CURVE,W={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(P))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(P))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(P))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(P))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(P,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(P,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(P,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(P,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let he=(()=>{class Ue{constructor(){this.changes=new g.xQ}}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const T={provide:he,deps:[[new e.FiY,new e.tp0,he]],useFactory:function De(Ue){return Ue||new he}},N=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),j=(0,w.dB)((0,w.Id)(class{}));let Y=(()=>{class Ue extends j{constructor(te){super(),this._defaultOptions=te,this.sortables=new Map,this._stateChanges=new g.xQ,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(te){this._direction=te}get disableClear(){return this._disableClear}set disableClear(te){this._disableClear=(0,b.Ig)(te)}register(te){this.sortables.set(te.id,te)}deregister(te){this.sortables.delete(te.id)}sort(te){this.active!=te.id?(this.active=te.id,this.direction=te.start?te.start:this.start):this.direction=this.getNextSortDirection(te),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(te){var Ve,ve,Oe;if(!te)return"";const z=null!==(ve=null!==(Ve=null==te?void 0:te.disableClear)&&void 0!==Ve?Ve:this.disableClear)&&void 0!==ve?ve:!!(null===(Oe=this._defaultOptions)||void 0===Oe?void 0:Oe.disableClear);let D=function ee(Ue,Xe){let te=["asc","desc"];return"desc"==Ue&&te.reverse(),Xe||te.push(""),te}(te.start||this.start,z),ge=D.indexOf(this.direction)+1;return ge>=D.length&&(ge=0),D[ge]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(te){return new(te||Ue)(e.Y36(N,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),Ue})();const de=(0,w.Id)(class{});let ce=(()=>{class Ue extends de{constructor(te,Ve,ve,Oe,z,D,ge){super(),this._intl=te,this._changeDetectorRef=Ve,this._sort=ve,this._columnDef=Oe,this._focusMonitor=z,this._elementRef=D,this._ariaDescriber=ge,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(te){this._updateSortActionDescription(te)}get disableClear(){return this._disableClear}set disableClear(te){this._disableClear=(0,b.Ig)(te)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{const Ve=!!te;Ve!==this._showIndicatorHint&&(this._setIndicatorHintVisible(Ve),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(te){this._isDisabled()&&te||(this._showIndicatorHint=te,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(te){this._viewState=te||{},this._disableViewStateAnimation&&(this._viewState={toState:te.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(te){!this._isDisabled()&&(te.keyCode===_.L_||te.keyCode===_.K5)&&(te.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const te=this._viewState.fromState;return(te?`${te}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(te){var Ve,ve;this._sortButton&&(null===(Ve=this._ariaDescriber)||void 0===Ve||Ve.removeDescription(this._sortButton,this._sortActionDescription),null===(ve=this._ariaDescriber)||void 0===ve||ve.describe(this._sortButton,te)),this._sortActionDescription=te}_handleStateChanges(){this._rerenderSubscription=(0,A.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Ue.\u0275fac=function(te){return new(te||Ue)(e.Y36(he),e.Y36(e.sBO),e.Y36(Y,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(C.tE),e.Y36(e.SBq),e.Y36(C.$s,8))},Ue.\u0275cmp=e.Xpm({type:Ue,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(te,Ve){1&te&&e.NdJ("click",function(){return Ve._handleClick()})("keydown",function(Oe){return Ve._handleKeydown(Oe)})("mouseenter",function(){return Ve._setIndicatorHintVisible(!0)})("mouseleave",function(){return Ve._setIndicatorHintVisible(!1)}),2&te&&(e.uIk("aria-sort",Ve._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",Ve._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:I,ngContentSelectors:O,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(te,Ve){1&te&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,m,6,6,"div",2),e.qZA()),2&te&&(e.ekj("mat-sort-header-sorted",Ve._isSorted())("mat-sort-header-position-before","before"==Ve.arrowPosition),e.uIk("tabindex",Ve._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",Ve._renderArrow()))},directives:[R.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[W.indicator,W.leftPointer,W.rightPointer,W.arrowOpacity,W.arrowPosition,W.allowChildren]},changeDetection:0}),Ue})(),Fe=(()=>{class Ue{}return Ue.\u0275fac=function(te){return new(te||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({providers:[T],imports:[[R.ez,w.BQ]]}),Ue})()},92081:(Qe,be,p)=>{"use strict";p.d(be,{C0:()=>n,BY:()=>t,VY:()=>$,Vq:()=>x,T5:()=>Ht,fd:()=>At});var e=p(47429),b=p(15664),_=p(63191),w=p(91159),g=p(69808),A=p(5e3),E=p(70925),C=p(8929),R=p(21086),I=p(1059),m=p(7625),O=p(50226);function P(lt,Ut){1<&&A.Hsn(0)}const W=["*"];let ie=(()=>{class lt{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.SBq))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),lt})(),Ae=(()=>{class lt{constructor(mt){this.template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepLabel",""]]}),lt})(),q=0;const De=new A.OlP("STEPPER_GLOBAL_OPTIONS");let T=(()=>{class lt{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new A.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,_.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,_.Ig)(mt)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(mt){this._completedOverride=(0,_.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(mt){this._customError=(0,_.Ig)(mt)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var mt;return null!==(mt=this._stepperOptions.showError)&&void 0!==mt?mt:null!=this._customError}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>N)),A.Y36(De,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,we){if(1&mt&&A.Suo(we,Ae,5),2&mt){let ze;A.iGM(ze=A.CRH())&&(Lt.stepLabel=ze.first)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(A.Rgc,7),2&mt){let we;A.iGM(we=A.CRH())&&(Lt.content=we.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[A.TTD],ngContentSelectors:W,decls:1,vars:0,template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,P,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),lt})(),N=(()=>{class lt{constructor(mt,Lt,we,ze){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=we,this._destroyed=new C.xQ,this.steps=new A.n_E,this._sortedHeaders=new A.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new A.vpe,this._orientation="horizontal",this._groupId=q++}get linear(){return this._linear}set linear(mt){this._linear=(0,_.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){var Lt;const we=(0,_.su)(mt);this.steps&&this._steps?(this._isValidIndex(we),null===(Lt=this.selected)||void 0===Lt||Lt._markAsInteracted(),this._selectedIndex!==we&&!this._anyControlsInvalidOrPending(we)&&(we>=this._selectedIndex||this.steps.toArray()[we].editable)&&this._updateSelectedItemIndex(we)):this._selectedIndex=we}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,I.O)(this._steps),(0,m.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,I.O)(this._stepHeader),(0,m.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,we)=>Lt._elementRef.nativeElement.compareDocumentPosition(we._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,I.O)(this._layoutDirection()),(0,m.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const we=this.steps.toArray()[mt],ze=this._isCurrentStep(mt);return we._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(we,ze):this._getGuidelineLogic(we,ze,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,we="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?we:mt.editable&&Lt?"edit":we}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,w.Vb)(mt),we=mt.keyCode,ze=this._keyManager;null==ze.activeItemIndex||Lt||we!==w.L_&&we!==w.K5?ze.onKeydown(mt):(this.selectedIndex=ze.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const we=Lt.stepControl;return(we?we.invalid||we.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,E.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class lt{constructor(mt){this._stepper=mt,this.type="button"}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(N))},lt.\u0275dir=A.lG2({type:lt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&A.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"}}),lt})(),ee=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({imports:[[O.vT]]}),lt})();var de=p(47423),ce=p(90508),Fe=p(25245),Ue=p(42654),Xe=p(87545),te=p(24850),Ve=p(75778),ve=p(41777);function Oe(lt,Ut){if(1<&&A.GkF(0,8),2<){const mt=A.oxw();A.Q6J("ngTemplateOutlet",mt.iconOverrides[mt.state])("ngTemplateOutletContext",mt._getIconContext())}}function z(lt,Ut){if(1<&&(A.TgZ(0,"span",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function D(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.completedLabel)}}function ge(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.editableLabel)}}function Te(lt,Ut){if(1<&&(A.TgZ(0,"mat-icon",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function Ie(lt,Ut){if(1<&&(A.ynx(0,9),A.YNc(1,z,2,1,"span",10),A.YNc(2,D,2,1,"span",11),A.YNc(3,ge,2,1,"span",11),A.YNc(4,Te,2,1,"mat-icon",12),A.BQk()),2<){const mt=A.oxw();A.Q6J("ngSwitch",mt.state),A.xp6(1),A.Q6J("ngSwitchCase","number"),A.xp6(1),A.Q6J("ngIf","done"===mt.state),A.xp6(1),A.Q6J("ngIf","edit"===mt.state)}}function fe(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A.GkF(1,16),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngTemplateOutlet",mt._templateLabel().template)}}function Se(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.label)}}function Ke(lt,Ut){if(1<&&(A.TgZ(0,"div",17),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt._intl.optionalLabel)}}function Je(lt,Ut){if(1<&&(A.TgZ(0,"div",18),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.errorMessage)}}function nt(lt,Ut){}function je(lt,Ut){if(1<&&(A.Hsn(0),A.YNc(1,nt,0,0,"ng-template",0)),2<){const mt=A.oxw();A.xp6(1),A.Q6J("cdkPortalOutlet",mt._portal)}}const Q=["*"];function Ce(lt,Ut){1<&&A._UZ(0,"div",9)}const re=function(lt,Ut){return{step:lt,i:Ut}};function k(lt,Ut){if(1<&&(A.ynx(0),A.GkF(1,7),A.YNc(2,Ce,1,0,"div",8),A.BQk()),2<){const mt=Ut.$implicit,Lt=Ut.index,we=Ut.last;A.oxw(2);const ze=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",ze)("ngTemplateOutletContext",A.WLB(3,re,mt,Lt)),A.xp6(1),A.Q6J("ngIf",!we)}}function pe(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",10),A.NdJ("@horizontalStepTransition.done",function(we){return A.CHM(mt),A.oxw(2)._animationDone.next(we)}),A.GkF(1,11),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,we=A.oxw(2);A.Q6J("@horizontalStepTransition",we._getAnimationDirection(Lt))("id",we._getStepContentId(Lt)),A.uIk("aria-labelledby",we._getStepLabelId(Lt))("aria-expanded",we.selectedIndex===Lt),A.xp6(1),A.Q6J("ngTemplateOutlet",mt.content)}}function Z(lt,Ut){if(1<&&(A.ynx(0),A.TgZ(1,"div",3),A.YNc(2,k,3,6,"ng-container",4),A.qZA(),A.TgZ(3,"div",5),A.YNc(4,pe,2,5,"div",6),A.qZA(),A.BQk()),2<){const mt=A.oxw();A.xp6(2),A.Q6J("ngForOf",mt.steps),A.xp6(2),A.Q6J("ngForOf",mt.steps)}}function Ne(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",13),A.GkF(1,7),A.TgZ(2,"div",14),A.TgZ(3,"div",15),A.NdJ("@verticalStepTransition.done",function(we){return A.CHM(mt),A.oxw(2)._animationDone.next(we)}),A.TgZ(4,"div",16),A.GkF(5,11),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,we=Ut.last,ze=A.oxw(2),U=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",A.WLB(9,re,mt,Lt)),A.xp6(1),A.ekj("mat-stepper-vertical-line",!we),A.xp6(1),A.Q6J("@verticalStepTransition",ze._getAnimationDirection(Lt))("id",ze._getStepContentId(Lt)),A.uIk("aria-labelledby",ze._getStepLabelId(Lt))("aria-expanded",ze.selectedIndex===Lt),A.xp6(2),A.Q6J("ngTemplateOutlet",mt.content)}}function oe(lt,Ut){if(1<&&(A.ynx(0),A.YNc(1,Ne,6,12,"div",12),A.BQk()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngForOf",mt.steps)}}function _e(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"mat-step-header",17),A.NdJ("click",function(){return A.CHM(mt).step.select()})("keydown",function(we){return A.CHM(mt),A.oxw()._onKeydown(we)}),A.qZA()}if(2<){const mt=Ut.step,Lt=Ut.i,we=A.oxw();A.ekj("mat-horizontal-stepper-header","horizontal"===we.orientation)("mat-vertical-stepper-header","vertical"===we.orientation),A.Q6J("tabIndex",we._getFocusIndex()===Lt?0:-1)("id",we._getStepLabelId(Lt))("index",Lt)("state",we._getIndicatorType(Lt,mt.state))("label",mt.stepLabel||mt.label)("selected",we.selectedIndex===Lt)("active",we._stepIsNavigable(Lt,mt))("optional",mt.optional)("errorMessage",mt.errorMessage)("iconOverrides",we._iconOverrides)("disableRipple",we.disableRipple||!we._stepIsNavigable(Lt,mt))("color",mt.color||we.color),A.uIk("aria-posinset",Lt+1)("aria-setsize",we.steps.length)("aria-controls",we._getStepContentId(Lt))("aria-selected",we.selectedIndex==Lt)("aria-label",mt.ariaLabel||null)("aria-labelledby",!mt.ariaLabel&&mt.ariaLabelledby?mt.ariaLabelledby:null)("aria-disabled",!we._stepIsNavigable(Lt,mt)||null)}}let $=(()=>{class lt extends Ae{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[A.qOj]}),lt})(),V=(()=>{class lt{constructor(){this.changes=new C.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275prov=A.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const a={provide:V,deps:[[new A.FiY,new A.tp0,V]],useFactory:function i(lt){return lt||new V}},d=(0,ce.pj)(class extends ie{constructor(Ut){super(Ut)}},"primary");let l=(()=>{class lt extends d{constructor(mt,Lt,we,ze){super(we),this._intl=mt,this._focusMonitor=Lt,this._intlSubscription=mt.changes.subscribe(()=>ze.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._elementRef,mt,Lt):this._elementRef.nativeElement.focus(Lt)}_stringLabel(){return this.label instanceof $?null:this.label}_templateLabel(){return this.label instanceof $?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(mt){return"number"==mt?`${this.index+1}`:"edit"==mt?"create":"error"==mt?"warning":mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(V),A.Y36(b.tE),A.Y36(A.SBq),A.Y36(A.sBO))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[A.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(mt,Lt){1&mt&&(A._UZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"div",1),A.YNc(3,Oe,1,2,"ng-container",2),A.YNc(4,Ie,5,4,"ng-container",3),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.YNc(6,fe,2,1,"div",5),A.YNc(7,Se,2,1,"div",5),A.YNc(8,Ke,2,1,"div",6),A.YNc(9,Je,2,1,"div",7),A.qZA()),2&mt&&(A.Q6J("matRippleTrigger",Lt._getHostElement())("matRippleDisabled",Lt.disableRipple),A.xp6(1),A.Gre("mat-step-icon-state-",Lt.state," mat-step-icon"),A.ekj("mat-step-icon-selected",Lt.selected),A.xp6(1),A.Q6J("ngSwitch",!(!Lt.iconOverrides||!Lt.iconOverrides[Lt.state])),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(2),A.ekj("mat-step-label-active",Lt.active)("mat-step-label-selected",Lt.selected)("mat-step-label-error","error"==Lt.state),A.xp6(1),A.Q6J("ngIf",Lt._templateLabel()),A.xp6(1),A.Q6J("ngIf",Lt._stringLabel()),A.xp6(1),A.Q6J("ngIf",Lt.optional&&"error"!=Lt.state),A.xp6(1),A.Q6J("ngIf","error"==Lt.state))},directives:[Fe.Hw,ce.wG,g.RF,g.n9,g.tP,g.ED,g.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),lt})();const s={horizontalStepTransition:(0,ve.X$)("horizontalStepTransition",[(0,ve.SB)("previous",(0,ve.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ve.SB)("current",(0,ve.oB)({transform:"none",visibility:"inherit"})),(0,ve.SB)("next",(0,ve.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ve.eR)("* => *",(0,ve.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,ve.X$)("verticalStepTransition",[(0,ve.SB)("previous",(0,ve.oB)({height:"0px",visibility:"hidden"})),(0,ve.SB)("next",(0,ve.oB)({height:"0px",visibility:"hidden"})),(0,ve.SB)("current",(0,ve.oB)({height:"*",visibility:"inherit"})),(0,ve.eR)("* <=> current",(0,ve.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let r=(()=>{class lt{constructor(mt){this.templateRef=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),t=(()=>{class lt{constructor(mt){this._template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),n=(()=>{class lt extends T{constructor(mt,Lt,we,ze){super(mt,ze),this._errorStateMatcher=Lt,this._viewContainerRef=we,this._isSelected=Ue.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,Xe.w)(()=>this._stepper.selectionChange.pipe((0,te.U)(mt=>mt.selectedStep===this),(0,I.O)(this._stepper.selected===this)))).subscribe(mt=>{mt&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(mt,Lt){return this._errorStateMatcher.isErrorState(mt,Lt)||!!(mt&&mt.invalid&&this.interacted)}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>x)),A.Y36(ce.rD,4),A.Y36(A.s_b),A.Y36(De,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(mt,Lt,we){if(1&mt&&(A.Suo(we,$,5),A.Suo(we,t,5)),2&mt){let ze;A.iGM(ze=A.CRH())&&(Lt.stepLabel=ze.first),A.iGM(ze=A.CRH())&&(Lt._lazyContent=ze.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[A._Bn([{provide:ce.rD,useExisting:lt},{provide:T,useExisting:lt}]),A.qOj],ngContentSelectors:Q,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,je,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),lt})(),o=(()=>{class lt extends N{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,features:[A.qOj]}),lt})(),c=(()=>{class lt extends o{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-horizontal-stepper"]],features:[A.qOj]}),lt})(),h=(()=>{class lt extends o{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-vertical-stepper"]],features:[A.qOj]}),lt})(),x=(()=>{class lt extends N{constructor(mt,Lt,we,ze){super(mt,Lt,we,ze),this.steps=new A.n_E,this.animationDone=new A.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new C.xQ;const U=we.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===U?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:mt,templateRef:Lt})=>this._iconOverrides[mt]=Lt),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,Ve.x)((mt,Lt)=>mt.fromState===Lt.fromState&&mt.toState===Lt.toState),(0,m.R)(this._destroyed)).subscribe(mt=>{"current"===mt.toState&&this.animationDone.emit()})}_stepIsNavigable(mt,Lt){return Lt.completed||this.selectedIndex===mt||!this.linear}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(O.Is,8),A.Y36(A.sBO),A.Y36(A.SBq),A.Y36(g.K0))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(mt,Lt,we){if(1&mt&&(A.Suo(we,n,5),A.Suo(we,r,5)),2&mt){let ze;A.iGM(ze=A.CRH())&&(Lt._steps=ze),A.iGM(ze=A.CRH())&&(Lt._icons=ze)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(l,5),2&mt){let we;A.iGM(we=A.CRH())&&(Lt._stepHeader=we)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(mt,Lt){2&mt&&(A.uIk("aria-orientation",Lt.orientation),A.ekj("mat-stepper-horizontal","horizontal"===Lt.orientation)("mat-stepper-vertical","vertical"===Lt.orientation)("mat-stepper-label-position-end","horizontal"===Lt.orientation&&"end"==Lt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Lt.orientation&&"bottom"==Lt.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[A._Bn([{provide:N,useExisting:lt},{provide:c,useExisting:lt},{provide:h,useExisting:lt}]),A.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(mt,Lt){1&mt&&(A.ynx(0,0),A.YNc(1,Z,5,2,"ng-container",1),A.YNc(2,oe,2,1,"ng-container",1),A.BQk(),A.YNc(3,_e,1,23,"ng-template",null,2,A.W1O)),2&mt&&(A.Q6J("ngSwitch",Lt.orientation),A.xp6(1),A.Q6J("ngSwitchCase","horizontal"),A.xp6(1),A.Q6J("ngSwitchCase","vertical"))},directives:[l,g.RF,g.n9,g.sg,g.tP,g.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),lt})(),At=(()=>{class lt extends Y{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(mt,Lt){2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"},features:[A.qOj]}),lt})(),Ht=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({providers:[a,ce.rD],imports:[[ce.BQ,g.ez,e.eL,de.ot,ee,Fe.Ps,ce.si],ce.BQ]}),lt})()},32075:(Qe,be,p)=>{"use strict";p.d(be,{ev:()=>Rt,Dz:()=>Le,w1:()=>xt,ge:()=>Yt,fO:()=>ct,XQ:()=>ai,as:()=>Et,Gk:()=>bi,nj:()=>Jt,BZ:()=>le,by:()=>rn,p0:()=>cn});var e=p(5e3),b=p(63191),_=p(20449),w=p(69808),g=p(8929),A=p(5254),E=p(591),C=p(54715),R=p(21086),I=p(7625),m=p(72986),O=p(50226),P=p(70925),W=p(53435);const ie=[[["caption"]],[["colgroup"],["col"]]],Ae=["caption","colgroup, col"];function he(st){return class extends st{constructor(...St){super(...St),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(St){const ot=this._sticky;this._sticky=(0,b.Ig)(St),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const St=this._hasStickyChanged;return this._hasStickyChanged=!1,St}resetStickyChanged(){this._hasStickyChanged=!1}}}const De=new e.OlP("CDK_TABLE");let N=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellDef",""]]}),st})(),j=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderCellDef",""]]}),st})(),Y=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterCellDef",""]]}),st})();class ee{}const de=he(ee);let ce=(()=>{class st extends de{constructor(ot){super(),this._table=ot,this._stickyEnd=!1}get name(){return this._name}set name(ot){this._setNameInput(ot)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ot){const $e=this._stickyEnd;this._stickyEnd=(0,b.Ig)(ot),this._hasStickyChanged=$e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ot){ot&&(this._name=ot,this.cssClassFriendlyName=ot.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(De,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,$e,vt){if(1&ot&&(e.Suo(vt,N,5),e.Suo(vt,j,5),e.Suo(vt,Y,5)),2&ot){let F;e.iGM(F=e.CRH())&&($e.cell=F.first),e.iGM(F=e.CRH())&&($e.headerCell=F.first),e.iGM(F=e.CRH())&&($e.footerCell=F.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})();class Fe{constructor(St,ot){ot.nativeElement.classList.add(...St._columnCssClassName)}}let Ue=(()=>{class st extends Fe{constructor(ot,$e){super(ot,$e)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(ce),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),st})(),te=(()=>{class st extends Fe{constructor(ot,$e){var vt;if(super(ot,$e),1===(null===(vt=ot._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const F=ot._table._elementRef.nativeElement.getAttribute("role");$e.nativeElement.setAttribute("role","grid"===F||"treegrid"===F?"gridcell":"cell")}}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(ce),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),st})();class Ve{constructor(){this.tasks=[],this.endTasks=[]}}const ve=new e.OlP("_COALESCED_STYLE_SCHEDULER");let Oe=(()=>{class st{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new g.xQ}schedule(ot){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ot)}scheduleEnd(ot){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ot)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ve,this._getScheduleObservable().pipe((0,I.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new Ve;for(const $e of ot.tasks)$e();for(const $e of ot.endTasks)$e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,A.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return st.\u0275fac=function(ot){return new(ot||st)(e.LFG(e.R0b))},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})(),D=(()=>{class st{constructor(ot,$e){this.template=ot,this._differs=$e}ngOnChanges(ot){if(!this._columnsDiffer){const $e=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find($e).create(),this._columnsDiffer.diff($e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof Ie?ot.headerCell.template:this instanceof Ke?ot.footerCell.template:ot.cell.template}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},st.\u0275dir=e.lG2({type:st,features:[e.TTD]}),st})();class ge extends D{}const Te=he(ge);let Ie=(()=>{class st extends Te{constructor(ot,$e,vt){super(ot,$e),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(De,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})();class fe extends D{}const Se=he(fe);let Ke=(()=>{class st extends Se{constructor(ot,$e,vt){super(ot,$e),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(De,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})(),Je=(()=>{class st extends D{constructor(ot,$e,vt){super(ot,$e),this._table=vt}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(De,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),st})(),nt=(()=>{class st{constructor(ot){this._viewContainer=ot,st.mostRecentCellOutlet=this}ngOnDestroy(){st.mostRecentCellOutlet===this&&(st.mostRecentCellOutlet=null)}}return st.mostRecentCellOutlet=null,st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellOutlet",""]]}),st})(),je=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),Ce=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),re=(()=>{class st{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["ng-template","cdkNoDataRow",""]]}),st})();const k=["top","bottom","left","right"];class pe{constructor(St,ot,$e,vt,F=!0,Ye=!0,gt){this._isNativeHtmlTable=St,this._stickCellCss=ot,this.direction=$e,this._coalescedStyleScheduler=vt,this._isBrowser=F,this._needsPositionStickyOnElement=Ye,this._positionListener=gt,this._cachedCellWidths=[],this._borderCellCss={top:`${ot}-border-elem-top`,bottom:`${ot}-border-elem-bottom`,left:`${ot}-border-elem-left`,right:`${ot}-border-elem-right`}}clearStickyPositioning(St,ot){const $e=[];for(const vt of St)if(vt.nodeType===vt.ELEMENT_NODE){$e.push(vt);for(let F=0;F{for(const vt of $e)this._removeStickyStyle(vt,ot)})}updateStickyColumns(St,ot,$e,vt=!0){if(!St.length||!this._isBrowser||!ot.some(wi=>wi)&&!$e.some(wi=>wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const F=St[0],Ye=F.children.length,gt=this._getCellWidths(F,vt),Dt=this._getStickyStartColumnPositions(gt,ot),ri=this._getStickyEndColumnPositions(gt,$e),ti=ot.lastIndexOf(!0),Di=$e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wi="rtl"===this.direction,$i=wi?"right":"left",qi=wi?"left":"right";for(const Fi of St)for(let Ji=0;Jiot[Ji]?Fi:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Di?[]:gt.slice(Di).map((Fi,Ji)=>$e[Ji+Di]?Fi:null).reverse()}))})}stickRows(St,ot,$e){if(!this._isBrowser)return;const vt="bottom"===$e?St.slice().reverse():St,F="bottom"===$e?ot.slice().reverse():ot,Ye=[],gt=[],Dt=[];for(let ti=0,Di=0;ti{var ti,Di;for(let wi=0;wi{ot.some(vt=>!vt)?this._removeStickyStyle($e,["bottom"]):this._addStickyStyle($e,"bottom",0,!1)})}_removeStickyStyle(St,ot){for(const vt of ot)St.style[vt]="",St.classList.remove(this._borderCellCss[vt]);k.some(vt=>-1===ot.indexOf(vt)&&St.style[vt])?St.style.zIndex=this._getCalculatedZIndex(St):(St.style.zIndex="",this._needsPositionStickyOnElement&&(St.style.position=""),St.classList.remove(this._stickCellCss))}_addStickyStyle(St,ot,$e,vt){St.classList.add(this._stickCellCss),vt&&St.classList.add(this._borderCellCss[ot]),St.style[ot]=`${$e}px`,St.style.zIndex=this._getCalculatedZIndex(St),this._needsPositionStickyOnElement&&(St.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(St){const ot={top:100,bottom:10,left:1,right:1};let $e=0;for(const vt of k)St.style[vt]&&($e+=ot[vt]);return $e?`${$e}`:""}_getCellWidths(St,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const $e=[],vt=St.children;for(let F=0;F0;F--)ot[F]&&($e[F]=vt,vt+=St[F]);return $e}}const d=new e.OlP("CDK_SPL");let s=(()=>{class st{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","rowOutlet",""]]}),st})(),r=(()=>{class st{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","headerRowOutlet",""]]}),st})(),t=(()=>{class st{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","footerRowOutlet",""]]}),st})(),n=(()=>{class st{constructor(ot,$e){this.viewContainer=ot,this.elementRef=$e}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","noDataRowOutlet",""]]}),st})(),h=(()=>{class st{constructor(ot,$e,vt,F,Ye,gt,Dt,ri,ti,Di,wi,$i){this._differs=ot,this._changeDetectorRef=$e,this._elementRef=vt,this._dir=Ye,this._platform=Dt,this._viewRepeater=ri,this._coalescedStyleScheduler=ti,this._viewportRuler=Di,this._stickyPositioningListener=wi,this._ngZone=$i,this._onDestroy=new g.xQ,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 e.vpe,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE}),F||this._elementRef.nativeElement.setAttribute("role","table"),this._document=gt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ot){this._trackByFn=ot}get dataSource(){return this._dataSource}set dataSource(ot){this._dataSource!==ot&&this._switchDataSource(ot)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ot){this._multiTemplateDataRows=(0,b.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,b.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,$e)=>this.trackBy?this.trackBy($e.dataIndex,$e.data):$e),this._viewportRuler.change().pipe((0,I.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const $e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||$e,this._forceRecalculateCellWidths=$e,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(ot=>{ot.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ot=this._dataDiffer.diff(this._renderRows);if(!ot)return this._updateNoDataRow(),void this.contentChanged.next();const $e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,$e,(vt,F,Ye)=>this._getEmbeddedViewArgs(vt.item,Ye),vt=>vt.item.data,vt=>{1===vt.operation&&vt.context&&this._renderCellTemplateForItem(vt.record.item.rowDef,vt.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(vt=>{$e.get(vt.currentIndex).context.$implicit=vt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,m.q)(1),(0,I.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ot){this._customColumnDefs.add(ot)}removeColumnDef(ot){this._customColumnDefs.delete(ot)}addRowDef(ot){this._customRowDefs.add(ot)}removeRowDef(ot){this._customRowDefs.delete(ot)}addHeaderRowDef(ot){this._customHeaderRowDefs.add(ot),this._headerRowDefChanged=!0}removeHeaderRowDef(ot){this._customHeaderRowDefs.delete(ot),this._headerRowDefChanged=!0}addFooterRowDef(ot){this._customFooterRowDefs.add(ot),this._footerRowDefChanged=!0}removeFooterRowDef(ot){this._customFooterRowDefs.delete(ot),this._footerRowDefChanged=!0}setNoDataRow(ot){this._customNoDataRow=ot}updateStickyHeaderRowStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),vt=this._elementRef.nativeElement.querySelector("thead");vt&&(vt.style.display=ot.length?"":"none");const F=this._headerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,F,"top"),this._headerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),vt=this._elementRef.nativeElement.querySelector("tfoot");vt&&(vt.style.display=ot.length?"":"none");const F=this._footerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,F,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,F),this._footerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),$e=this._getRenderedRows(this._rowOutlet),vt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...$e,...vt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((F,Ye)=>{this._addStickyColumnStyles([F],this._headerRowDefs[Ye])}),this._rowDefs.forEach(F=>{const Ye=[];for(let gt=0;gt<$e.length;gt++)this._renderRows[gt].rowDef===F&&Ye.push($e[gt]);this._addStickyColumnStyles(Ye,F)}),vt.forEach((F,Ye)=>{this._addStickyColumnStyles([F],this._footerRowDefs[Ye])}),Array.from(this._columnDefsByName.values()).forEach(F=>F.resetStickyChanged())}_getAllRenderRows(){const ot=[],$e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let vt=0;vt{const gt=vt&&vt.has(Ye)?vt.get(Ye):[];if(gt.length){const Dt=gt.shift();return Dt.dataIndex=$e,Dt}return{data:ot,rowDef:Ye,dataIndex:$e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),x(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach($e=>{this._columnDefsByName.has($e.name),this._columnDefsByName.set($e.name,$e)})}_cacheRowDefs(){this._headerRowDefs=x(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=x(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=x(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter($e=>!$e.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(Ye,gt)=>Ye||!!gt.getColumnsDiff(),$e=this._rowDefs.reduce(ot,!1);$e&&this._forceRenderDataRows();const vt=this._headerRowDefs.reduce(ot,!1);vt&&this._forceRenderHeaderRows();const F=this._footerRowDefs.reduce(ot,!1);return F&&this._forceRenderFooterRows(),$e||vt||F}_switchDataSource(ot){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ot||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ot}_observeRenderChanges(){if(!this.dataSource)return;let ot;(0,_.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,C.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,R.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,I.R)(this._onDestroy)).subscribe($e=>{this._data=$e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,$e)=>this._renderRow(this._headerRowOutlet,ot,$e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,$e)=>this._renderRow(this._footerRowOutlet,ot,$e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,$e){const vt=Array.from($e.columns||[]).map(gt=>this._columnDefsByName.get(gt)),F=vt.map(gt=>gt.sticky),Ye=vt.map(gt=>gt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,F,Ye,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const $e=[];for(let vt=0;vt!F.when||F.when($e,ot));else{let F=this._rowDefs.find(Ye=>Ye.when&&Ye.when($e,ot))||this._defaultRowDef;F&&vt.push(F)}return vt}_getEmbeddedViewArgs(ot,$e){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:$e}}_renderRow(ot,$e,vt,F={}){const Ye=ot.viewContainer.createEmbeddedView($e.template,F,vt);return this._renderCellTemplateForItem($e,F),Ye}_renderCellTemplateForItem(ot,$e){for(let vt of this._getCellTemplates(ot))nt.mostRecentCellOutlet&&nt.mostRecentCellOutlet._viewContainer.createEmbeddedView(vt,$e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let $e=0,vt=ot.length;$e{const vt=this._columnDefsByName.get($e);return ot.extractCellTemplate(vt)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),$e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const vt of $e){const F=this._document.createElement(vt.tag);F.setAttribute("role","rowgroup");for(const Ye of vt.outlets)F.appendChild(Ye.elementRef.nativeElement);ot.appendChild(F)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=($e,vt)=>$e||vt.hasStickyChanged();this._headerRowDefs.reduce(ot,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ot,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ot,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new pe(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,R.of)()).pipe((0,I.R)(this._onDestroy)).subscribe($e=>{this._stickyStyler.direction=$e,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter($e=>!$e._table||$e._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const $e=0===this._rowOutlet.viewContainer.length;if($e===this._isShowingNoDataRow)return;const vt=this._noDataRowOutlet.viewContainer;if($e){const F=vt.createEmbeddedView(ot.templateRef),Ye=F.rootNodes[0];1===F.rootNodes.length&&(null==Ye?void 0:Ye.nodeType)===this._document.ELEMENT_NODE&&(Ye.setAttribute("role","row"),Ye.classList.add(ot._contentClassName))}else vt.clear();this._isShowingNoDataRow=$e}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(O.Is,8),e.Y36(w.K0),e.Y36(P.t4),e.Y36(_.k),e.Y36(ve),e.Y36(W.rL),e.Y36(d,12),e.Y36(e.R0b,8))},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,$e,vt){if(1&ot&&(e.Suo(vt,re,5),e.Suo(vt,ce,5),e.Suo(vt,Je,5),e.Suo(vt,Ie,5),e.Suo(vt,Ke,5)),2&ot){let F;e.iGM(F=e.CRH())&&($e._noDataRow=F.first),e.iGM(F=e.CRH())&&($e._contentColumnDefs=F),e.iGM(F=e.CRH())&&($e._contentRowDefs=F),e.iGM(F=e.CRH())&&($e._contentHeaderRowDefs=F),e.iGM(F=e.CRH())&&($e._contentFooterRowDefs=F)}},viewQuery:function(ot,$e){if(1&ot&&(e.Gf(s,7),e.Gf(r,7),e.Gf(t,7),e.Gf(n,7)),2&ot){let vt;e.iGM(vt=e.CRH())&&($e._rowOutlet=vt.first),e.iGM(vt=e.CRH())&&($e._headerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&($e._footerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&($e._noDataRowOutlet=vt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("cdk-table-fixed-layout",$e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:De,useExisting:st},{provide:_.k,useClass:_.yy},{provide:ve,useClass:Oe},{provide:d,useValue:null}])],ngContentSelectors:Ae,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(ie),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})();function x(st,St){return st.concat(Array.from(St))}let Ht=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[W.Cl]]}),st})();var lt=p(90508),Ut=p(36787),mt=p(36053),Lt=p(24850);const we=[[["caption"]],[["colgroup"],["col"]]],ze=["caption","colgroup, col"];let le=(()=>{class st extends h{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,$e){2&ot&&e.ekj("mat-table-fixed-layout",$e.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:_.k,useClass:_.yy},{provide:h,useExisting:st},{provide:De,useExisting:st},{provide:ve,useClass:Oe},{provide:d,useValue:null}]),e.qOj],ngContentSelectors:ze,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,$e){1&ot&&(e.F$t(we),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})(),Le=(()=>{class st extends N{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:N,useExisting:st}]),e.qOj]}),st})(),ct=(()=>{class st extends j{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:j,useExisting:st}]),e.qOj]}),st})(),xt=(()=>{class st extends ce{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:ce,useExisting:st},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})(),Yt=(()=>{class st extends Ue{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),st})(),Rt=(()=>{class st extends te{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),st})(),Et=(()=>{class st extends Ie{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Ie,useExisting:st}]),e.qOj]}),st})(),Jt=(()=>{class st extends Je{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Je,useExisting:st}]),e.qOj]}),st})(),ai=(()=>{class st extends je{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:je,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),bi=(()=>{class st extends Ce{}return st.\u0275fac=function(){let St;return function($e){return(St||(St=e.n5z(st)))($e||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:Ce,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,$e){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),cn=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[Ht,lt.BQ],lt.BQ]}),st})();class Tn extends _.o2{constructor(St=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new g.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,$e)=>{const vt=ot[$e];if((0,b.t6)(vt)){const F=Number(vt);return F<9007199254740991?F:vt}return vt},this.sortData=(ot,$e)=>{const vt=$e.active,F=$e.direction;return vt&&""!=F?ot.sort((Ye,gt)=>{let Dt=this.sortingDataAccessor(Ye,vt),ri=this.sortingDataAccessor(gt,vt);const ti=typeof Dt,Di=typeof ri;ti!==Di&&("number"===ti&&(Dt+=""),"number"===Di&&(ri+=""));let wi=0;return null!=Dt&&null!=ri?Dt>ri?wi=1:Dt{const vt=Object.keys(ot).reduce((Ye,gt)=>Ye+ot[gt]+"\u25ec","").toLowerCase(),F=$e.trim().toLowerCase();return-1!=vt.indexOf(F)},this._data=new E.X(St),this._updateChangeSubscription()}get data(){return this._data.value}set data(St){St=Array.isArray(St)?St:[],this._data.next(St),this._renderChangesSubscription||this._filterData(St)}get filter(){return this._filter.value}set filter(St){this._filter.next(St),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(St){this._sort=St,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(St){this._paginator=St,this._updateChangeSubscription()}_updateChangeSubscription(){var St;const ot=this._sort?(0,Ut.T)(this._sort.sortChange,this._sort.initialized):(0,R.of)(null),$e=this._paginator?(0,Ut.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,R.of)(null),F=(0,mt.aj)([this._data,this._filter]).pipe((0,Lt.U)(([Dt])=>this._filterData(Dt))),Ye=(0,mt.aj)([F,ot]).pipe((0,Lt.U)(([Dt])=>this._orderData(Dt))),gt=(0,mt.aj)([Ye,$e]).pipe((0,Lt.U)(([Dt])=>this._pageData(Dt)));null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=gt.subscribe(Dt=>this._renderData.next(Dt))}_filterData(St){return this.filteredData=null==this.filter||""===this.filter?St:St.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(St){return this.sort?this.sortData(St.slice(),this.sort):St}_pageData(St){if(!this.paginator)return St;const ot=this.paginator.pageIndex*this.paginator.pageSize;return St.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(St){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=St,ot.pageIndex>0)){const $e=Math.ceil(ot.length/ot.pageSize)-1||0,vt=Math.min(ot.pageIndex,$e);vt!==ot.pageIndex&&(ot.pageIndex=vt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var St;null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=null}}class rn extends Tn{}},53251:(Qe,be,p)=>{"use strict";p.d(be,{uX:()=>Z,Vc:()=>je,SP:()=>At,uD:()=>re,Nh:()=>U});var e=p(15664),b=p(17144),_=p(47429),w=p(69808),g=p(5e3),A=p(90508),E=p(76360),C=p(8929),R=p(42654),I=p(23753),m=p(21086),O=p(36787),P=p(98723),W=p(41777),ie=p(1059),Ae=p(75778),q=p(7625),Me=p(50226),he=p(63191),De=p(91159),T=p(70925),N=p(53435);function j(L,ne){1&L&&g.Hsn(0)}const Y=["*"];function ee(L,ne){}const de=function(L){return{animationDuration:L}},ce=function(L,ne){return{value:L,params:ne}},Fe=["tabListContainer"],Ue=["tabList"],Xe=["tabListInner"],te=["nextPaginator"],Ve=["previousPaginator"],ve=["tabBodyWrapper"],Oe=["tabHeader"];function z(L,ne){}function D(L,ne){if(1&L&&g.YNc(0,z,0,0,"ng-template",10),2&L){const le=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",le.templateLabel)}}function ge(L,ne){if(1&L&&g._uU(0),2&L){const le=g.oxw().$implicit;g.Oqu(le.textLabel)}}function Te(L,ne){if(1&L){const le=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const ct=g.CHM(le),bt=ct.$implicit,xt=ct.index,Yt=g.oxw(),It=g.MAs(1);return Yt._handleClick(bt,It,xt)})("cdkFocusChange",function(ct){const xt=g.CHM(le).index;return g.oxw()._tabFocusChanged(ct,xt)}),g.TgZ(1,"div",7),g.YNc(2,D,1,1,"ng-template",8),g.YNc(3,ge,1,1,"ng-template",null,9,g.W1O),g.qZA(),g.qZA()}if(2&L){const le=ne.$implicit,Le=ne.index,ct=g.MAs(4),bt=g.oxw();g.ekj("mat-tab-label-active",bt.selectedIndex===Le),g.Q6J("id",bt._getTabLabelId(Le))("ngClass",le.labelClass)("disabled",le.disabled)("matRippleDisabled",le.disabled||bt.disableRipple),g.uIk("tabIndex",bt._getTabIndex(le,Le))("aria-posinset",Le+1)("aria-setsize",bt._tabs.length)("aria-controls",bt._getTabContentId(Le))("aria-selected",bt.selectedIndex===Le)("aria-label",le.ariaLabel||null)("aria-labelledby",!le.ariaLabel&&le.ariaLabelledby?le.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",le.templateLabel)("ngIfElse",ct)}}function Ie(L,ne){if(1&L){const le=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){return g.CHM(le),g.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(ct){return g.CHM(le),g.oxw()._setTabBodyWrapperHeight(ct)}),g.qZA()}if(2&L){const le=ne.$implicit,Le=ne.index,ct=g.oxw();g.ekj("mat-tab-body-active",ct.selectedIndex===Le),g.Q6J("id",ct._getTabContentId(Le))("ngClass",le.bodyClass)("content",le.content)("position",le.position)("origin",le.origin)("animationDuration",ct.animationDuration),g.uIk("tabindex",null!=ct.contentTabIndex&&ct.selectedIndex===Le?ct.contentTabIndex:null)("aria-labelledby",ct._getTabLabelId(Le))}}const Se=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ke(){return ne=>({left:ne?(ne.offsetLeft||0)+"px":"0",width:ne?(ne.offsetWidth||0)+"px":"0"})}});let Je=(()=>{class L{constructor(le,Le,ct,bt){this._elementRef=le,this._ngZone=Le,this._inkBarPositioner=ct,this._animationMode=bt}alignToElement(le){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(le))}):this._setStyles(le)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(le){const Le=this._inkBarPositioner(le),ct=this._elementRef.nativeElement;ct.style.left=Le.left,ct.style.width=Le.width}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Se),g.Y36(E.Qb,8))},L.\u0275dir=g.lG2({type:L,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(le,Le){2&le&&g.ekj("_mat-animation-noopable","NoopAnimations"===Le._animationMode)}}),L})();const nt=new g.OlP("MatTabContent");let je=(()=>{class L{constructor(le){this.template=le}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.Rgc))},L.\u0275dir=g.lG2({type:L,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:nt,useExisting:L}])]}),L})();const Q=new g.OlP("MatTabLabel"),Ce=new g.OlP("MAT_TAB");let re=(()=>{class L extends _.ig{constructor(le,Le,ct){super(le,Le),this._closestTab=ct}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(Ce,8))},L.\u0275dir=g.lG2({type:L,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:Q,useExisting:L}]),g.qOj]}),L})();const k=(0,A.Id)(class{}),pe=new g.OlP("MAT_TAB_GROUP");let Z=(()=>{class L extends k{constructor(le,Le){super(),this._viewContainerRef=le,this._closestTabGroup=Le,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(le){this._setTemplateLabelInput(le)}get content(){return this._contentPortal}ngOnChanges(le){(le.hasOwnProperty("textLabel")||le.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(le){le&&le._closestTab===this&&(this._templateLabel=le)}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.s_b),g.Y36(pe,8))},L.\u0275cmp=g.Xpm({type:L,selectors:[["mat-tab"]],contentQueries:function(le,Le,ct){if(1&le&&(g.Suo(ct,Q,5),g.Suo(ct,nt,7,g.Rgc)),2&le){let bt;g.iGM(bt=g.CRH())&&(Le.templateLabel=bt.first),g.iGM(bt=g.CRH())&&(Le._explicitContent=bt.first)}},viewQuery:function(le,Le){if(1&le&&g.Gf(g.Rgc,7),2&le){let ct;g.iGM(ct=g.CRH())&&(Le._implicitContent=ct.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:Ce,useExisting:L}]),g.qOj,g.TTD],ngContentSelectors:Y,decls:1,vars:0,template:function(le,Le){1&le&&(g.F$t(),g.YNc(0,j,1,0,"ng-template"))},encapsulation:2}),L})();const Ne={translateTab:(0,W.X$)("translateTab",[(0,W.SB)("center, void, left-origin-center, right-origin-center",(0,W.oB)({transform:"none"})),(0,W.SB)("left",(0,W.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,W.SB)("right",(0,W.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,W.eR)("* => left, * => right, left => center, right => center",(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,W.eR)("void => left-origin-center",[(0,W.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,W.eR)("void => right-origin-center",[(0,W.oB)({transform:"translate3d(100%, 0, 0)"}),(0,W.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let oe=(()=>{class L extends _.Pl{constructor(le,Le,ct,bt){super(le,Le,bt),this._host=ct,this._centeringSub=R.w.EMPTY,this._leavingSub=R.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ie.O)(this._host._isCenterPosition(this._host._position))).subscribe(le=>{le&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>$)),g.Y36(w.K0))},L.\u0275dir=g.lG2({type:L,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),L})(),_e=(()=>{class L{constructor(le,Le,ct){this._elementRef=le,this._dir=Le,this._dirChangeSubscription=R.w.EMPTY,this._translateTabComplete=new C.xQ,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",Le&&(this._dirChangeSubscription=Le.change.subscribe(bt=>{this._computePositionAnimationState(bt),ct.markForCheck()})),this._translateTabComplete.pipe((0,Ae.x)((bt,xt)=>bt.fromState===xt.fromState&&bt.toState===xt.toState)).subscribe(bt=>{this._isCenterPosition(bt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(le){this._positionIndex=le,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(le){const Le=this._isCenterPosition(le.toState);this._beforeCentering.emit(Le),Le&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(le){return"center"==le||"left-origin-center"==le||"right-origin-center"==le}_computePositionAnimationState(le=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==le?"left":"right":this._positionIndex>0?"ltr"==le?"right":"left":"center"}_computePositionFromOrigin(le){const Le=this._getLayoutDirection();return"ltr"==Le&&le<=0||"rtl"==Le&&le>0?"left-origin-center":"right-origin-center"}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},L.\u0275dir=g.lG2({type:L,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),L})(),$=(()=>{class L extends _e{constructor(le,Le,ct){super(le,Le,ct)}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},L.\u0275cmp=g.Xpm({type:L,selectors:[["mat-tab-body"]],viewQuery:function(le,Le){if(1&le&&g.Gf(_.Pl,5),2&le){let ct;g.iGM(ct=g.CRH())&&(Le._portalHost=ct.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(le,Le){1&le&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(bt){return Le._onTranslateTabStarted(bt)})("@translateTab.done",function(bt){return Le._translateTabComplete.next(bt)}),g.YNc(2,ee,0,0,"ng-template",2),g.qZA()),2&le&&g.Q6J("@translateTab",g.WLB(3,ce,Le._position,g.VKq(1,de,Le.animationDuration)))},directives:[oe],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Ne.translateTab]}}),L})();const V=new g.OlP("MAT_TABS_CONFIG"),i=(0,A.Id)(class{});let a=(()=>{class L extends i{constructor(le){super(),this.elementRef=le}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq))},L.\u0275dir=g.lG2({type:L,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(le,Le){2&le&&(g.uIk("aria-disabled",!!Le.disabled),g.ekj("mat-tab-disabled",Le.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),L})();const d=(0,T.i$)({passive:!0});let t=(()=>{class L{constructor(le,Le,ct,bt,xt,Yt,It){this._elementRef=le,this._changeDetectorRef=Le,this._viewportRuler=ct,this._dir=bt,this._ngZone=xt,this._platform=Yt,this._animationMode=It,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,xt.runOutsideAngular(()=>{(0,I.R)(le.nativeElement,"mouseleave").pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(le){le=(0,he.su)(le),this._selectedIndex!=le&&(this._selectedIndexChanged=!0,this._selectedIndex=le,this._keyManager&&this._keyManager.updateActiveItem(le))}ngAfterViewInit(){(0,I.R)(this._previousPaginator.nativeElement,"touchstart",d).pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,I.R)(this._nextPaginator.nativeElement,"touchstart",d).pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const le=this._dir?this._dir.change:(0,m.of)("ltr"),Le=this._viewportRuler.change(150),ct=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(ct):ct(),(0,O.T)(le,Le,this._items.changes).pipe((0,q.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(ct)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,q.R)(this._destroyed)).subscribe(bt=>{this.indexFocused.emit(bt),this._setTabFocus(bt)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(le){if(!(0,De.Vb)(le))switch(le.keyCode){case De.K5:case De.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(le));break;default:this._keyManager.onKeydown(le)}}_onContentChanges(){const le=this._elementRef.nativeElement.textContent;le!==this._currentTextContent&&(this._currentTextContent=le||"",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(le){!this._isValidIndex(le)||this.focusIndex===le||!this._keyManager||this._keyManager.setActiveItem(le)}_isValidIndex(le){if(!this._items)return!0;const Le=this._items?this._items.toArray()[le]:null;return!!Le&&!Le.disabled}_setTabFocus(le){if(this._showPaginationControls&&this._scrollToLabel(le),this._items&&this._items.length){this._items.toArray()[le].focus();const Le=this._tabListContainer.nativeElement;Le.scrollLeft="ltr"==this._getLayoutDirection()?0:Le.scrollWidth-Le.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const le=this.scrollDistance,Le="ltr"===this._getLayoutDirection()?-le:le;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Le)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(le){this._scrollTo(le)}_scrollHeader(le){return this._scrollTo(this._scrollDistance+("before"==le?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(le){this._stopInterval(),this._scrollHeader(le)}_scrollToLabel(le){if(this.disablePagination)return;const Le=this._items?this._items.toArray()[le]:null;if(!Le)return;const ct=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bt,offsetWidth:xt}=Le.elementRef.nativeElement;let Yt,It;"ltr"==this._getLayoutDirection()?(Yt=bt,It=Yt+xt):(It=this._tabListInner.nativeElement.offsetWidth-bt,Yt=It-xt);const Rt=this.scrollDistance,Et=this.scrollDistance+ct;YtEt&&(this.scrollDistance+=It-Et+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const le=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;le||(this.scrollDistance=0),le!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=le}}_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 le=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Le=le?le.elementRef.nativeElement:null;Le?this._inkBar.alignToElement(Le):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(le,Le){Le&&null!=Le.button&&0!==Le.button||(this._stopInterval(),(0,P.H)(650,100).pipe((0,q.R)((0,O.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ct,distance:bt}=this._scrollHeader(le);(0===bt||bt>=ct)&&this._stopInterval()}))}_scrollTo(le){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Le=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Le,le)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Le,distance:this._scrollDistance}}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(N.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},L.\u0275dir=g.lG2({type:L,inputs:{disablePagination:"disablePagination"}}),L})(),n=(()=>{class L extends t{constructor(le,Le,ct,bt,xt,Yt,It){super(le,Le,ct,bt,xt,Yt,It),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(le){this._disableRipple=(0,he.Ig)(le)}_itemSelected(le){le.preventDefault()}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(N.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},L.\u0275dir=g.lG2({type:L,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),L})(),o=(()=>{class L extends n{constructor(le,Le,ct,bt,xt,Yt,It){super(le,Le,ct,bt,xt,Yt,It)}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(N.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},L.\u0275cmp=g.Xpm({type:L,selectors:[["mat-tab-header"]],contentQueries:function(le,Le,ct){if(1&le&&g.Suo(ct,a,4),2&le){let bt;g.iGM(bt=g.CRH())&&(Le._items=bt)}},viewQuery:function(le,Le){if(1&le&&(g.Gf(Je,7),g.Gf(Fe,7),g.Gf(Ue,7),g.Gf(Xe,7),g.Gf(te,5),g.Gf(Ve,5)),2&le){let ct;g.iGM(ct=g.CRH())&&(Le._inkBar=ct.first),g.iGM(ct=g.CRH())&&(Le._tabListContainer=ct.first),g.iGM(ct=g.CRH())&&(Le._tabList=ct.first),g.iGM(ct=g.CRH())&&(Le._tabListInner=ct.first),g.iGM(ct=g.CRH())&&(Le._nextPaginator=ct.first),g.iGM(ct=g.CRH())&&(Le._previousPaginator=ct.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(le,Le){2&le&&g.ekj("mat-tab-header-pagination-controls-enabled",Le._showPaginationControls)("mat-tab-header-rtl","rtl"==Le._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:Y,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(le,Le){1&le&&(g.F$t(),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return Le._handlePaginatorClick("before")})("mousedown",function(bt){return Le._handlePaginatorPress("before",bt)})("touchend",function(){return Le._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(bt){return Le._handleKeydown(bt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return Le._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA(),g.qZA(),g.TgZ(11,"div",9,10),g.NdJ("mousedown",function(bt){return Le._handlePaginatorPress("after",bt)})("click",function(){return Le._handlePaginatorClick("after")})("touchend",function(){return Le._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&le&&(g.ekj("mat-tab-header-pagination-disabled",Le._disableScrollBefore),g.Q6J("matRippleDisabled",Le._disableScrollBefore||Le.disableRipple),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===Le._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",Le._disableScrollAfter),g.Q6J("matRippleDisabled",Le._disableScrollAfter||Le.disableRipple))},directives:[A.wG,b.wD,Je],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),L})(),c=0;class h{}const x=(0,A.pj)((0,A.Kr)(class{constructor(L){this._elementRef=L}}),"primary");let We=(()=>{class L extends x{constructor(le,Le,ct,bt){var xt;super(le),this._changeDetectorRef=Le,this._animationMode=bt,this._tabs=new g.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=R.w.EMPTY,this._tabLabelSubscription=R.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=c++,this.animationDuration=ct&&ct.animationDuration?ct.animationDuration:"500ms",this.disablePagination=!(!ct||null==ct.disablePagination)&&ct.disablePagination,this.dynamicHeight=!(!ct||null==ct.dynamicHeight)&&ct.dynamicHeight,this.contentTabIndex=null!==(xt=null==ct?void 0:ct.contentTabIndex)&&void 0!==xt?xt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(le){this._dynamicHeight=(0,he.Ig)(le)}get selectedIndex(){return this._selectedIndex}set selectedIndex(le){this._indexToSelect=(0,he.su)(le,null)}get animationDuration(){return this._animationDuration}set animationDuration(le){this._animationDuration=/^\d+$/.test(le+"")?le+"ms":le}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(le){this._contentTabIndex=(0,he.su)(le,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(le){const Le=this._elementRef.nativeElement;Le.classList.remove(`mat-background-${this.backgroundColor}`),le&&Le.classList.add(`mat-background-${le}`),this._backgroundColor=le}ngAfterContentChecked(){const le=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=le){const Le=null==this._selectedIndex;if(!Le){this.selectedTabChange.emit(this._createChangeEvent(le));const ct=this._tabBodyWrapper.nativeElement;ct.style.minHeight=ct.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ct,bt)=>ct.isActive=bt===le),Le||(this.selectedIndexChange.emit(le),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Le,ct)=>{Le.position=ct-le,null!=this._selectedIndex&&0==Le.position&&!Le.origin&&(Le.origin=le-this._selectedIndex)}),this._selectedIndex!==le&&(this._selectedIndex=le,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const Le=this._tabs.toArray();for(let ct=0;ct{this._tabs.reset(le.filter(Le=>Le._closestTabGroup===this||!Le._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(le){const Le=this._tabHeader;Le&&(Le.focusIndex=le)}_focusChanged(le){this.focusChange.emit(this._createChangeEvent(le))}_createChangeEvent(le){const Le=new h;return Le.index=le,this._tabs&&this._tabs.length&&(Le.tab=this._tabs.toArray()[le]),Le}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,O.T)(...this._tabs.map(le=>le._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(le){return Math.min(this._tabs.length-1,Math.max(le||0,0))}_getTabLabelId(le){return`mat-tab-label-${this._groupId}-${le}`}_getTabContentId(le){return`mat-tab-content-${this._groupId}-${le}`}_setTabBodyWrapperHeight(le){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Le=this._tabBodyWrapper.nativeElement;Le.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Le.style.height=le+"px")}_removeTabBodyWrapperHeight(){const le=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=le.clientHeight,le.style.height="",this.animationDone.emit()}_handleClick(le,Le,ct){le.disabled||(this.selectedIndex=Le.focusIndex=ct)}_getTabIndex(le,Le){return le.disabled?null:this.selectedIndex===Le?0:-1}_tabFocusChanged(le,Le){le&&"mouse"!==le&&"touch"!==le&&(this._tabHeader.focusIndex=Le)}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(V,8),g.Y36(E.Qb,8))},L.\u0275dir=g.lG2({type:L,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),L})(),At=(()=>{class L extends We{constructor(le,Le,ct,bt){super(le,Le,ct,bt)}}return L.\u0275fac=function(le){return new(le||L)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(V,8),g.Y36(E.Qb,8))},L.\u0275cmp=g.Xpm({type:L,selectors:[["mat-tab-group"]],contentQueries:function(le,Le,ct){if(1&le&&g.Suo(ct,Z,5),2&le){let bt;g.iGM(bt=g.CRH())&&(Le._allTabs=bt)}},viewQuery:function(le,Le){if(1&le&&(g.Gf(ve,5),g.Gf(Oe,5)),2&le){let ct;g.iGM(ct=g.CRH())&&(Le._tabBodyWrapper=ct.first),g.iGM(ct=g.CRH())&&(Le._tabHeader=ct.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(le,Le){2&le&&g.ekj("mat-tab-group-dynamic-height",Le.dynamicHeight)("mat-tab-group-inverted-header","below"===Le.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:pe,useExisting:L}]),g.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(le,Le){1&le&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(bt){return Le._focusChanged(bt)})("selectFocusedIndex",function(bt){return Le.selectedIndex=bt}),g.YNc(2,Te,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Ie,1,10,"mat-tab-body",5),g.qZA()),2&le&&(g.Q6J("selectedIndex",Le.selectedIndex||0)("disableRipple",Le.disableRipple)("disablePagination",Le.disablePagination),g.xp6(2),g.Q6J("ngForOf",Le._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===Le._animationMode),g.xp6(2),g.Q6J("ngForOf",Le._tabs))},directives:[o,$,w.sg,a,A.wG,e.kH,w.mk,w.O5,_.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),L})(),U=(()=>{class L{}return L.\u0275fac=function(le){return new(le||L)},L.\u0275mod=g.oAB({type:L}),L.\u0275inj=g.cJS({imports:[[w.ez,A.BQ,_.eL,A.si,b.Q8,e.rt],A.BQ]}),L})()},29772:(Qe,be,p)=>{"use strict";p.d(be,{gM:()=>je,AV:()=>re});var e=p(92845),b=p(15664),_=p(69808),w=p(5e3),g=p(90508),A=p(53435),E=p(63191),C=p(91159),R=p(8929),I=p(36053),m=p(61221),O=p(56498),P=p(72986),W=p(31307),ie=p(80013),Ae=p(24850),q=p(1059),Me=p(7625),he=p(70925);const T=new Set;let N,j=(()=>{class k{constructor(Z){this._platform=Z,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ee}matchMedia(Z){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y(k){if(!T.has(k))try{N||(N=document.createElement("style"),N.setAttribute("type","text/css"),document.head.appendChild(N)),N.sheet&&(N.sheet.insertRule(`@media ${k} {body{ }}`,0),T.add(k))}catch(pe){console.error(pe)}}(Z),this._matchMedia(Z)}}return k.\u0275fac=function(Z){return new(Z||k)(w.LFG(he.t4))},k.\u0275prov=w.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function ee(k){return{matches:"all"===k||""===k,media:k,addListener:()=>{},removeListener:()=>{}}}let de=(()=>{class k{constructor(Z,Ne){this._mediaMatcher=Z,this._zone=Ne,this._queries=new Map,this._destroySubject=new R.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Z){return ce((0,E.Eq)(Z)).some(oe=>this._registerQuery(oe).mql.matches)}observe(Z){const oe=ce((0,E.Eq)(Z)).map($=>this._registerQuery($).observable);let _e=(0,I.aj)(oe);return _e=(0,m.z)(_e.pipe((0,P.q)(1)),_e.pipe((0,W.T)(1),(0,ie.b)(0))),_e.pipe((0,Ae.U)($=>{const V={matches:!1,breakpoints:{}};return $.forEach(({matches:i,query:a})=>{V.matches=V.matches||i,V.breakpoints[a]=i}),V}))}_registerQuery(Z){if(this._queries.has(Z))return this._queries.get(Z);const Ne=this._mediaMatcher.matchMedia(Z),_e={observable:new O.y($=>{const V=i=>this._zone.run(()=>$.next(i));return Ne.addListener(V),()=>{Ne.removeListener(V)}}).pipe((0,q.O)(Ne),(0,Ae.U)(({matches:$})=>({query:Z,matches:$})),(0,Me.R)(this._destroySubject)),mql:Ne};return this._queries.set(Z,_e),_e}}return k.\u0275fac=function(Z){return new(Z||k)(w.LFG(j),w.LFG(w.R0b))},k.\u0275prov=w.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"}),k})();function ce(k){return k.map(pe=>pe.split(",")).reduce((pe,Z)=>pe.concat(Z)).map(pe=>pe.trim())}var Ue=p(47429),Xe=p(41777),te=p(50226);const Ve={tooltipState:(0,Xe.X$)("state",[(0,Xe.SB)("initial, void, hidden",(0,Xe.oB)({opacity:0,transform:"scale(0)"})),(0,Xe.SB)("visible",(0,Xe.oB)({transform:"scale(1)"})),(0,Xe.eR)("* => visible",(0,Xe.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,Xe.F4)([(0,Xe.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,Xe.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,Xe.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,Xe.eR)("* => hidden",(0,Xe.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,Xe.oB)({opacity:0})))])},z="tooltip-panel",D=(0,he.i$)({passive:!0}),Ie=new w.OlP("mat-tooltip-scroll-strategy"),Se={provide:Ie,deps:[e.aV],useFactory:function fe(k){return()=>k.scrollStrategies.reposition({scrollThrottle:20})}},Ke=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nt=(()=>{class k{constructor(Z,Ne,oe,_e,$,V,i,a,d,l,s,r){this._overlay=Z,this._elementRef=Ne,this._scrollDispatcher=oe,this._viewContainerRef=_e,this._ngZone=$,this._platform=V,this._ariaDescriber=i,this._focusMonitor=a,this._dir=l,this._defaultOptions=s,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new R.xQ,this._scrollStrategy=d,this._document=r,s&&(s.position&&(this.position=s.position),s.touchGestures&&(this.touchGestures=s.touchGestures)),l.change.pipe((0,Me.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Z){var Ne;Z!==this._position&&(this._position=Z,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ne=this._tooltipInstance)||void 0===Ne||Ne.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Z){this._disabled=(0,E.Ig)(Z),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Z){this._showDelay=(0,E.su)(Z)}get hideDelay(){return this._hideDelay}set hideDelay(Z){this._hideDelay=(0,E.su)(Z)}get message(){return this._message}set message(Z){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Z?String(Z).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(Z){this._tooltipClass=Z,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Me.R)(this._destroyed)).subscribe(Z=>{Z?"keyboard"===Z&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Z=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([Ne,oe])=>{Z.removeEventListener(Ne,oe,D)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Z,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Z)}show(Z=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const Ne=this._createOverlay();this._detach(),this._portal=this._portal||new Ue.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ne.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(Z)}hide(Z=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Z)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const Z=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Ne=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(Z);return Ne.positionChanges.pipe((0,Me.R)(this._destroyed)).subscribe(oe=>{this._updateCurrentPositionClass(oe.connectionPair),this._tooltipInstance&&oe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ne,panelClass:`${this._cssClassPrefix}-${z}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Me.R)(this._destroyed)).subscribe(()=>{var oe;return null===(oe=this._tooltipInstance)||void 0===oe?void 0:oe._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Me.R)(this._destroyed)).subscribe(oe=>{this._isTooltipVisible()&&oe.keyCode===C.hY&&!(0,C.Vb)(oe)&&(oe.preventDefault(),oe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Z){const Ne=Z.getConfig().positionStrategy,oe=this._getOrigin(),_e=this._getOverlayPosition();Ne.withPositions([this._addOffset(Object.assign(Object.assign({},oe.main),_e.main)),this._addOffset(Object.assign(Object.assign({},oe.fallback),_e.fallback))])}_addOffset(Z){return Z}_getOrigin(){const Z=!this._dir||"ltr"==this._dir.value,Ne=this.position;let oe;"above"==Ne||"below"==Ne?oe={originX:"center",originY:"above"==Ne?"top":"bottom"}:"before"==Ne||"left"==Ne&&Z||"right"==Ne&&!Z?oe={originX:"start",originY:"center"}:("after"==Ne||"right"==Ne&&Z||"left"==Ne&&!Z)&&(oe={originX:"end",originY:"center"});const{x:_e,y:$}=this._invertPosition(oe.originX,oe.originY);return{main:oe,fallback:{originX:_e,originY:$}}}_getOverlayPosition(){const Z=!this._dir||"ltr"==this._dir.value,Ne=this.position;let oe;"above"==Ne?oe={overlayX:"center",overlayY:"bottom"}:"below"==Ne?oe={overlayX:"center",overlayY:"top"}:"before"==Ne||"left"==Ne&&Z||"right"==Ne&&!Z?oe={overlayX:"end",overlayY:"center"}:("after"==Ne||"right"==Ne&&Z||"left"==Ne&&!Z)&&(oe={overlayX:"start",overlayY:"center"});const{x:_e,y:$}=this._invertPosition(oe.overlayX,oe.overlayY);return{main:oe,fallback:{overlayX:_e,overlayY:$}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,P.q)(1),(0,Me.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Z){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Z,this._tooltipInstance._markForCheck())}_invertPosition(Z,Ne){return"above"===this.position||"below"===this.position?"top"===Ne?Ne="bottom":"bottom"===Ne&&(Ne="top"):"end"===Z?Z="start":"start"===Z&&(Z="end"),{x:Z,y:Ne}}_updateCurrentPositionClass(Z){const{overlayY:Ne,originX:oe,originY:_e}=Z;let $;if($="center"===Ne?this._dir&&"rtl"===this._dir.value?"end"===oe?"left":"right":"start"===oe?"left":"right":"bottom"===Ne&&"top"===_e?"above":"below",$!==this._currentPosition){const V=this._overlayRef;if(V){const i=`${this._cssClassPrefix}-${z}-`;V.removePanelClass(i+this._currentPosition),V.addPanelClass(i+$)}this._currentPosition=$}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const Z=[];if(this._platformSupportsMouseEvents())Z.push(["mouseleave",()=>this.hide()],["wheel",Ne=>this._wheelListener(Ne)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ne=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Z.push(["touchend",Ne],["touchcancel",Ne])}this._addListeners(Z),this._passiveListeners.push(...Z)}_addListeners(Z){Z.forEach(([Ne,oe])=>{this._elementRef.nativeElement.addEventListener(Ne,oe,D)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Z){if(this._isTooltipVisible()){const Ne=this._document.elementFromPoint(Z.clientX,Z.clientY),oe=this._elementRef.nativeElement;Ne!==oe&&!oe.contains(Ne)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Z=this.touchGestures;if("off"!==Z){const Ne=this._elementRef.nativeElement,oe=Ne.style;("on"===Z||"INPUT"!==Ne.nodeName&&"TEXTAREA"!==Ne.nodeName)&&(oe.userSelect=oe.msUserSelect=oe.webkitUserSelect=oe.MozUserSelect="none"),("on"===Z||!Ne.draggable)&&(oe.webkitUserDrag="none"),oe.touchAction="none",oe.webkitTapHighlightColor="transparent"}}}return k.\u0275fac=function(Z){w.$Z()},k.\u0275dir=w.lG2({type:k,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),k})(),je=(()=>{class k extends nt{constructor(Z,Ne,oe,_e,$,V,i,a,d,l,s,r){super(Z,Ne,oe,_e,$,V,i,a,d,l,s,r),this._tooltipComponent=Ce}}return k.\u0275fac=function(Z){return new(Z||k)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(A.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(he.t4),w.Y36(b.$s),w.Y36(b.tE),w.Y36(Ie),w.Y36(te.Is,8),w.Y36(Ke,8),w.Y36(_.K0))},k.\u0275dir=w.lG2({type:k,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),k})(),Q=(()=>{class k{constructor(Z){this._changeDetectorRef=Z,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new R.xQ}show(Z){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},Z)}hide(Z){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},Z)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(Z){const Ne=Z.toState;"hidden"===Ne&&!this.isVisible()&&this._onHide.next(),("visible"===Ne||"hidden"===Ne)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return k.\u0275fac=function(Z){return new(Z||k)(w.Y36(w.sBO))},k.\u0275dir=w.lG2({type:k}),k})(),Ce=(()=>{class k extends Q{constructor(Z,Ne){super(Z),this._breakpointObserver=Ne,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return k.\u0275fac=function(Z){return new(Z||k)(w.Y36(w.sBO),w.Y36(de))},k.\u0275cmp=w.Xpm({type:k,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Z,Ne){2&Z&&w.Udp("zoom","visible"===Ne._visibility?1:null)},features:[w.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(Z,Ne){if(1&Z&&(w.TgZ(0,"div",0),w.NdJ("@state.start",function(){return Ne._animationStart()})("@state.done",function(_e){return Ne._animationDone(_e)}),w.ALo(1,"async"),w._uU(2),w.qZA()),2&Z){let oe;w.ekj("mat-tooltip-handset",null==(oe=w.lcZ(1,5,Ne._isHandset))?null:oe.matches),w.Q6J("ngClass",Ne.tooltipClass)("@state",Ne._visibility),w.xp6(2),w.Oqu(Ne.message)}},directives:[_.mk],pipes:[_.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Ve.tooltipState]},changeDetection:0}),k})(),re=(()=>{class k{}return k.\u0275fac=function(Z){return new(Z||k)},k.\u0275mod=w.oAB({type:k}),k.\u0275inj=w.cJS({providers:[Se],imports:[[b.rt,_.ez,e.U8,g.BQ],g.BQ,A.ZD]}),k})()},90149:(Qe,be,p)=>{"use strict";p.d(be,{GZ:()=>P,gi:()=>Ae,kc:()=>T,JZ:()=>De,dp:()=>he,WX:()=>N,uo:()=>m,fQ:()=>O,Ar:()=>ie,eu:()=>q});var e=p(28258),b=p(5e3),_=p(90508),w=p(63191),g=p(20449),A=p(591),E=p(36787),C=p(72986),R=p(24850);const I=(0,_.sb)((0,_.Id)(e.Hs));let m=(()=>{class j extends I{constructor(ee,de,ce){super(ee,de),this.tabIndex=Number(ce)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return j.\u0275fac=function(ee){return new(ee||j)(b.Y36(b.SBq),b.Y36(e._0),b.$8M("tabindex"))},j.\u0275dir=b.lG2({type:j,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[b._Bn([{provide:e.Hs,useExisting:j}]),b.qOj]}),j})(),O=(()=>{class j extends e.rO{}return j.\u0275fac=function(){let Y;return function(de){return(Y||(Y=b.n5z(j)))(de||j)}}(),j.\u0275dir=b.lG2({type:j,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[b._Bn([{provide:e.rO,useExisting:j}]),b.qOj]}),j})(),P=(()=>{class j extends e.Xx{constructor(ee,de,ce,Fe){super(ee,de,ce),this._disabled=!1,this.tabIndex=Number(Fe)||0}get disabled(){return this._disabled}set disabled(ee){this._disabled=(0,w.Ig)(ee)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ee){this._tabIndex=null!=ee?ee:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return j.\u0275fac=function(ee){return new(ee||j)(b.Y36(b.SBq),b.Y36(e._0),b.Y36(b.ZZ4),b.$8M("tabindex"))},j.\u0275dir=b.lG2({type:j,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[b._Bn([{provide:e.Xx,useExisting:j},{provide:e.Hs,useExisting:j},{provide:e.HI,useExisting:j}]),b.qOj]}),j})(),ie=(()=>{class j{constructor(ee,de){this.viewContainer=ee,this._node=de}}return j.\u0275fac=function(ee){return new(ee||j)(b.Y36(b.s_b),b.Y36(e.HI,8))},j.\u0275dir=b.lG2({type:j,selectors:[["","matTreeNodeOutlet",""]],features:[b._Bn([{provide:e.cu,useExisting:j}])]}),j})(),Ae=(()=>{class j extends e._0{}return j.\u0275fac=function(){let Y;return function(de){return(Y||(Y=b.n5z(j)))(de||j)}}(),j.\u0275cmp=b.Xpm({type:j,selectors:[["mat-tree"]],viewQuery:function(ee,de){if(1&ee&&b.Gf(ie,7),2&ee){let ce;b.iGM(ce=b.CRH())&&(de._nodeOutlet=ce.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[b._Bn([{provide:e._0,useExisting:j}]),b.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ee,de){1&ee&&b.GkF(0,0)},directives:[ie],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),j})(),q=(()=>{class j extends e.Ud{}return j.\u0275fac=function(){let Y;return function(de){return(Y||(Y=b.n5z(j)))(de||j)}}(),j.\u0275dir=b.lG2({type:j,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[b._Bn([{provide:e.Ud,useExisting:j}]),b.qOj]}),j})(),he=(()=>{class j{}return j.\u0275fac=function(ee){return new(ee||j)},j.\u0275mod=b.oAB({type:j}),j.\u0275inj=b.cJS({imports:[[e.nZ,_.BQ],_.BQ]}),j})();class De{constructor(Y,ee,de,ce){this.transformFunction=Y,this.getLevel=ee,this.isExpandable=de,this.getChildren=ce}_flattenNode(Y,ee,de,ce){const Fe=this.transformFunction(Y,ee);if(de.push(Fe),this.isExpandable(Fe)){const Ue=this.getChildren(Y);Ue&&(Array.isArray(Ue)?this._flattenChildren(Ue,ee,de,ce):Ue.pipe((0,C.q)(1)).subscribe(Xe=>{this._flattenChildren(Xe,ee,de,ce)}))}return de}_flattenChildren(Y,ee,de,ce){Y.forEach((Fe,Ue)=>{let Xe=ce.slice();Xe.push(Ue!=Y.length-1),this._flattenNode(Fe,ee+1,de,Xe)})}flattenNodes(Y){let ee=[];return Y.forEach(de=>this._flattenNode(de,0,ee,[])),ee}expandFlattenedNodes(Y,ee){let de=[],ce=[];return ce[0]=!0,Y.forEach(Fe=>{let Ue=!0;for(let Xe=0;Xe<=this.getLevel(Fe);Xe++)Ue=Ue&&ce[Xe];Ue&&de.push(Fe),this.isExpandable(Fe)&&(ce[this.getLevel(Fe)+1]=ee.isExpanded(Fe))}),de}}class T extends g.o2{constructor(Y,ee,de){super(),this._treeControl=Y,this._treeFlattener=ee,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),de&&(this.data=de)}get data(){return this._data.value}set data(Y){this._data.next(Y),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(Y){return(0,E.T)(Y.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,R.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class N extends g.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(Y){this._data.next(Y)}connect(Y){return(0,E.T)(Y.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},76360:(Qe,be,p)=>{"use strict";p.d(be,{Qb:()=>yn,PW:()=>zn});var e=p(5e3),b=p(22313),_=p(41777);function w(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(ft){switch(ft.length){case 0:return new _.ZN;case 1:return ft[0];default:return new _.ZE(ft)}}function E(ft,B,G,Pe,ht={},Ct={}){const X=[],He=[];let ue=-1,tt=null;if(Pe.forEach(yt=>{const Gt=yt.offset,Wt=Gt==ue,ii=Wt&&tt||{};Object.keys(yt).forEach(di=>{let ui=di,_i=yt[di];if("offset"!==di)switch(ui=B.normalizePropertyName(ui,X),_i){case _.k1:_i=ht[di];break;case _.l3:_i=Ct[di];break;default:_i=B.normalizeStyleValue(di,ui,_i,X)}ii[ui]=_i}),Wt||He.push(ii),tt=ii,ue=Gt}),X.length){const yt="\n - ";throw new Error(`Unable to animate due to the following errors:${yt}${X.join(yt)}`)}return He}function C(ft,B,G,Pe){switch(B){case"start":ft.onStart(()=>Pe(G&&R(G,"start",ft)));break;case"done":ft.onDone(()=>Pe(G&&R(G,"done",ft)));break;case"destroy":ft.onDestroy(()=>Pe(G&&R(G,"destroy",ft)))}}function R(ft,B,G){const Pe=G.totalTime,Ct=I(ft.element,ft.triggerName,ft.fromState,ft.toState,B||ft.phaseName,null==Pe?ft.totalTime:Pe,!!G.disabled),X=ft._data;return null!=X&&(Ct._data=X),Ct}function I(ft,B,G,Pe,ht="",Ct=0,X){return{element:ft,triggerName:B,fromState:G,toState:Pe,phaseName:ht,totalTime:Ct,disabled:!!X}}function m(ft,B,G){let Pe;return ft instanceof Map?(Pe=ft.get(B),Pe||ft.set(B,Pe=G)):(Pe=ft[B],Pe||(Pe=ft[B]=G)),Pe}function O(ft){const B=ft.indexOf(":");return[ft.substring(1,B),ft.substr(B+1)]}let P=(ft,B)=>!1,W=(ft,B,G)=>[];(g()||"undefined"!=typeof Element)&&(P=w()?(ft,B)=>{for(;B&&B!==document.documentElement;){if(B===ft)return!0;B=B.parentNode||B.host}return!1}:(ft,B)=>ft.contains(B),W=(ft,B,G)=>{if(G)return Array.from(ft.querySelectorAll(B));const Pe=ft.querySelector(B);return Pe?[Pe]:[]});let q=null,Me=!1;function he(ft){q||(q=function De(){return"undefined"!=typeof document?document.body:null}()||{},Me=!!q.style&&"WebkitAppearance"in q.style);let B=!0;return q.style&&!function Ae(ft){return"ebkit"==ft.substring(1,6)}(ft)&&(B=ft in q.style,!B&&Me&&(B="Webkit"+ft.charAt(0).toUpperCase()+ft.substr(1)in q.style)),B}const T=P,N=W;let Y=(()=>{class ft{validateStyleProperty(G){return he(G)}matchesElement(G,Pe){return!1}containsElement(G,Pe){return T(G,Pe)}query(G,Pe,ht){return N(G,Pe,ht)}computeStyle(G,Pe,ht){return ht||""}animate(G,Pe,ht,Ct,X,He=[],ue){return new _.ZN(ht,Ct)}}return ft.\u0275fac=function(G){return new(G||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),ee=(()=>{class ft{}return ft.NOOP=new Y,ft})();const Ue="ng-enter",Xe="ng-leave",te="ng-trigger",Ve=".ng-trigger",ve="ng-animating",Oe=".ng-animating";function z(ft){if("number"==typeof ft)return ft;const B=ft.match(/^(-?[\.\d]+)(m?s)/);return!B||B.length<2?0:D(parseFloat(B[1]),B[2])}function D(ft,B){return"s"===B?1e3*ft:ft}function ge(ft,B,G){return ft.hasOwnProperty("duration")?ft:function Te(ft,B,G){let ht,Ct=0,X="";if("string"==typeof ft){const He=ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===He)return B.push(`The provided timing value "${ft}" is invalid.`),{duration:0,delay:0,easing:""};ht=D(parseFloat(He[1]),He[2]);const ue=He[3];null!=ue&&(Ct=D(parseFloat(ue),He[4]));const tt=He[5];tt&&(X=tt)}else ht=ft;if(!G){let He=!1,ue=B.length;ht<0&&(B.push("Duration values below 0 are not allowed for this animation step."),He=!0),Ct<0&&(B.push("Delay values below 0 are not allowed for this animation step."),He=!0),He&&B.splice(ue,0,`The provided timing value "${ft}" is invalid.`)}return{duration:ht,delay:Ct,easing:X}}(ft,B,G)}function Ie(ft,B={}){return Object.keys(ft).forEach(G=>{B[G]=ft[G]}),B}function Se(ft,B,G={}){if(B)for(let Pe in ft)G[Pe]=ft[Pe];else Ie(ft,G);return G}function Ke(ft,B,G){return G?B+":"+G+";":""}function Je(ft){let B="";for(let G=0;G{const ht=oe(Pe);G&&!G.hasOwnProperty(Pe)&&(G[Pe]=ft.style[ht]),ft.style[ht]=B[Pe]}),g()&&Je(ft))}function je(ft,B){ft.style&&(Object.keys(B).forEach(G=>{const Pe=oe(G);ft.style[Pe]=""}),g()&&Je(ft))}function Q(ft){return Array.isArray(ft)?1==ft.length?ft[0]:(0,_.vP)(ft):ft}const re=new RegExp("{{\\s*(.+?)\\s*}}","g");function k(ft){let B=[];if("string"==typeof ft){let G;for(;G=re.exec(ft);)B.push(G[1]);re.lastIndex=0}return B}function pe(ft,B,G){const Pe=ft.toString(),ht=Pe.replace(re,(Ct,X)=>{let He=B[X];return B.hasOwnProperty(X)||(G.push(`Please provide a value for the animation param ${X}`),He=""),He.toString()});return ht==Pe?ft:ht}function Z(ft){const B=[];let G=ft.next();for(;!G.done;)B.push(G.value),G=ft.next();return B}const Ne=/-+([a-z0-9])/g;function oe(ft){return ft.replace(Ne,(...B)=>B[1].toUpperCase())}function _e(ft){return ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function i(ft,B,G){switch(B.type){case 7:return ft.visitTrigger(B,G);case 0:return ft.visitState(B,G);case 1:return ft.visitTransition(B,G);case 2:return ft.visitSequence(B,G);case 3:return ft.visitGroup(B,G);case 4:return ft.visitAnimate(B,G);case 5:return ft.visitKeyframes(B,G);case 6:return ft.visitStyle(B,G);case 8:return ft.visitReference(B,G);case 9:return ft.visitAnimateChild(B,G);case 10:return ft.visitAnimateRef(B,G);case 11:return ft.visitQuery(B,G);case 12:return ft.visitStagger(B,G);default:throw new Error(`Unable to resolve animation metadata node #${B.type}`)}}function a(ft,B){return window.getComputedStyle(ft)[B]}const d="*";function l(ft,B){const G=[];return"string"==typeof ft?ft.split(/\s*,\s*/).forEach(Pe=>function s(ft,B,G){if(":"==ft[0]){const ue=function r(ft,B){switch(ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(G,Pe)=>parseFloat(Pe)>parseFloat(G);case":decrement":return(G,Pe)=>parseFloat(Pe) *"}}(ft,G);if("function"==typeof ue)return void B.push(ue);ft=ue}const Pe=ft.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Pe||Pe.length<4)return G.push(`The provided transition expression "${ft}" is not supported`),B;const ht=Pe[1],Ct=Pe[2],X=Pe[3];B.push(o(ht,X));"<"==Ct[0]&&!(ht==d&&X==d)&&B.push(o(X,ht))}(Pe,G,B)):G.push(ft),G}const t=new Set(["true","1"]),n=new Set(["false","0"]);function o(ft,B){const G=t.has(ft)||n.has(ft),Pe=t.has(B)||n.has(B);return(ht,Ct)=>{let X=ft==d||ft==ht,He=B==d||B==Ct;return!X&&G&&"boolean"==typeof ht&&(X=ht?t.has(ft):n.has(ft)),!He&&Pe&&"boolean"==typeof Ct&&(He=Ct?t.has(B):n.has(B)),X&&He}}const c=":self",h=new RegExp(`s*${c}s*,?`,"g");function x(ft,B,G){return new At(ft).build(B,G)}class At{constructor(B){this._driver=B}build(B,G){const Pe=new Ut(G);return this._resetContextStyleTimingState(Pe),i(this,Q(B),Pe)}_resetContextStyleTimingState(B){B.currentQuerySelector="",B.collectedStyles={},B.collectedStyles[""]={},B.currentTime=0}visitTrigger(B,G){let Pe=G.queryCount=0,ht=G.depCount=0;const Ct=[],X=[];return"@"==B.name.charAt(0)&&G.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),B.definitions.forEach(He=>{if(this._resetContextStyleTimingState(G),0==He.type){const ue=He,tt=ue.name;tt.toString().split(/\s*,\s*/).forEach(yt=>{ue.name=yt,Ct.push(this.visitState(ue,G))}),ue.name=tt}else if(1==He.type){const ue=this.visitTransition(He,G);Pe+=ue.queryCount,ht+=ue.depCount,X.push(ue)}else G.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:B.name,states:Ct,transitions:X,queryCount:Pe,depCount:ht,options:null}}visitState(B,G){const Pe=this.visitStyle(B.styles,G),ht=B.options&&B.options.params||null;if(Pe.containsDynamicStyles){const Ct=new Set,X=ht||{};if(Pe.styles.forEach(He=>{if(Lt(He)){const ue=He;Object.keys(ue).forEach(tt=>{k(ue[tt]).forEach(yt=>{X.hasOwnProperty(yt)||Ct.add(yt)})})}}),Ct.size){const He=Z(Ct.values());G.errors.push(`state("${B.name}", ...) must define default values for all the following style substitutions: ${He.join(", ")}`)}}return{type:0,name:B.name,style:Pe,options:ht?{params:ht}:null}}visitTransition(B,G){G.queryCount=0,G.depCount=0;const Pe=i(this,Q(B.animation),G);return{type:1,matchers:l(B.expr,G.errors),animation:Pe,queryCount:G.queryCount,depCount:G.depCount,options:ze(B.options)}}visitSequence(B,G){return{type:2,steps:B.steps.map(Pe=>i(this,Pe,G)),options:ze(B.options)}}visitGroup(B,G){const Pe=G.currentTime;let ht=0;const Ct=B.steps.map(X=>{G.currentTime=Pe;const He=i(this,X,G);return ht=Math.max(ht,G.currentTime),He});return G.currentTime=ht,{type:3,steps:Ct,options:ze(B.options)}}visitAnimate(B,G){const Pe=function we(ft,B){let G=null;if(ft.hasOwnProperty("duration"))G=ft;else if("number"==typeof ft)return U(ge(ft,B).duration,0,"");const Pe=ft;if(Pe.split(/\s+/).some(Ct=>"{"==Ct.charAt(0)&&"{"==Ct.charAt(1))){const Ct=U(0,0,"");return Ct.dynamic=!0,Ct.strValue=Pe,Ct}return G=G||ge(Pe,B),U(G.duration,G.delay,G.easing)}(B.timings,G.errors);G.currentAnimateTimings=Pe;let ht,Ct=B.styles?B.styles:(0,_.oB)({});if(5==Ct.type)ht=this.visitKeyframes(Ct,G);else{let X=B.styles,He=!1;if(!X){He=!0;const tt={};Pe.easing&&(tt.easing=Pe.easing),X=(0,_.oB)(tt)}G.currentTime+=Pe.duration+Pe.delay;const ue=this.visitStyle(X,G);ue.isEmptyStep=He,ht=ue}return G.currentAnimateTimings=null,{type:4,timings:Pe,style:ht,options:null}}visitStyle(B,G){const Pe=this._makeStyleAst(B,G);return this._validateStyleAst(Pe,G),Pe}_makeStyleAst(B,G){const Pe=[];Array.isArray(B.styles)?B.styles.forEach(X=>{"string"==typeof X?X==_.l3?Pe.push(X):G.errors.push(`The provided style string value ${X} is not allowed.`):Pe.push(X)}):Pe.push(B.styles);let ht=!1,Ct=null;return Pe.forEach(X=>{if(Lt(X)){const He=X,ue=He.easing;if(ue&&(Ct=ue,delete He.easing),!ht)for(let tt in He)if(He[tt].toString().indexOf("{{")>=0){ht=!0;break}}}),{type:6,styles:Pe,easing:Ct,offset:B.offset,containsDynamicStyles:ht,options:null}}_validateStyleAst(B,G){const Pe=G.currentAnimateTimings;let ht=G.currentTime,Ct=G.currentTime;Pe&&Ct>0&&(Ct-=Pe.duration+Pe.delay),B.styles.forEach(X=>{"string"!=typeof X&&Object.keys(X).forEach(He=>{if(!this._driver.validateStyleProperty(He))return void G.errors.push(`The provided animation property "${He}" is not a supported CSS property for animations`);const ue=G.collectedStyles[G.currentQuerySelector],tt=ue[He];let yt=!0;tt&&(Ct!=ht&&Ct>=tt.startTime&&ht<=tt.endTime&&(G.errors.push(`The CSS property "${He}" that exists between the times of "${tt.startTime}ms" and "${tt.endTime}ms" is also being animated in a parallel animation between the times of "${Ct}ms" and "${ht}ms"`),yt=!1),Ct=tt.startTime),yt&&(ue[He]={startTime:Ct,endTime:ht}),G.options&&function Ce(ft,B,G){const Pe=B.params||{},ht=k(ft);ht.length&&ht.forEach(Ct=>{Pe.hasOwnProperty(Ct)||G.push(`Unable to resolve the local animation param ${Ct} in the given list of values`)})}(X[He],G.options,G.errors)})})}visitKeyframes(B,G){const Pe={type:5,styles:[],options:null};if(!G.currentAnimateTimings)return G.errors.push("keyframes() must be placed inside of a call to animate()"),Pe;let Ct=0;const X=[];let He=!1,ue=!1,tt=0;const yt=B.steps.map(Ti=>{const Hi=this._makeStyleAst(Ti,G);let ke=null!=Hi.offset?Hi.offset:function mt(ft){if("string"==typeof ft)return null;let B=null;if(Array.isArray(ft))ft.forEach(G=>{if(Lt(G)&&G.hasOwnProperty("offset")){const Pe=G;B=parseFloat(Pe.offset),delete Pe.offset}});else if(Lt(ft)&&ft.hasOwnProperty("offset")){const G=ft;B=parseFloat(G.offset),delete G.offset}return B}(Hi.styles),Re=0;return null!=ke&&(Ct++,Re=Hi.offset=ke),ue=ue||Re<0||Re>1,He=He||Re0&&Ct{const ke=Wt>0?Hi==ii?1:Wt*Hi:X[Hi],Re=ke*_i;G.currentTime=di+ui.delay+Re,ui.duration=Re,this._validateStyleAst(Ti,G),Ti.offset=ke,Pe.styles.push(Ti)}),Pe}visitReference(B,G){return{type:8,animation:i(this,Q(B.animation),G),options:ze(B.options)}}visitAnimateChild(B,G){return G.depCount++,{type:9,options:ze(B.options)}}visitAnimateRef(B,G){return{type:10,animation:this.visitReference(B.animation,G),options:ze(B.options)}}visitQuery(B,G){const Pe=G.currentQuerySelector,ht=B.options||{};G.queryCount++,G.currentQuery=B;const[Ct,X]=function Ht(ft){const B=!!ft.split(/\s*,\s*/).find(G=>G==c);return B&&(ft=ft.replace(h,"")),ft=ft.replace(/@\*/g,Ve).replace(/@\w+/g,G=>Ve+"-"+G.substr(1)).replace(/:animating/g,Oe),[ft,B]}(B.selector);G.currentQuerySelector=Pe.length?Pe+" "+Ct:Ct,m(G.collectedStyles,G.currentQuerySelector,{});const He=i(this,Q(B.animation),G);return G.currentQuery=null,G.currentQuerySelector=Pe,{type:11,selector:Ct,limit:ht.limit||0,optional:!!ht.optional,includeSelf:X,animation:He,originalSelector:B.selector,options:ze(B.options)}}visitStagger(B,G){G.currentQuery||G.errors.push("stagger() can only be used inside of query()");const Pe="full"===B.timings?{duration:0,delay:0,easing:"full"}:ge(B.timings,G.errors,!0);return{type:12,animation:i(this,Q(B.animation),G),timings:Pe,options:null}}}class Ut{constructor(B){this.errors=B,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Lt(ft){return!Array.isArray(ft)&&"object"==typeof ft}function ze(ft){return ft?(ft=Ie(ft)).params&&(ft.params=function lt(ft){return ft?Ie(ft):null}(ft.params)):ft={},ft}function U(ft,B,G){return{duration:ft,delay:B,easing:G}}function L(ft,B,G,Pe,ht,Ct,X=null,He=!1){return{type:1,element:ft,keyframes:B,preStyleProps:G,postStyleProps:Pe,duration:ht,delay:Ct,totalTime:ht+Ct,easing:X,subTimeline:He}}class ne{constructor(){this._map=new Map}get(B){return this._map.get(B)||[]}append(B,G){let Pe=this._map.get(B);Pe||this._map.set(B,Pe=[]),Pe.push(...G)}has(B){return this._map.has(B)}clear(){this._map.clear()}}const ct=new RegExp(":enter","g"),xt=new RegExp(":leave","g");function Yt(ft,B,G,Pe,ht,Ct={},X={},He,ue,tt=[]){return(new It).buildKeyframes(ft,B,G,Pe,ht,Ct,X,He,ue,tt)}class It{buildKeyframes(B,G,Pe,ht,Ct,X,He,ue,tt,yt=[]){tt=tt||new ne;const Gt=new Et(B,G,tt,ht,Ct,yt,[]);Gt.options=ue,Gt.currentTimeline.setStyles([X],null,Gt.errors,ue),i(this,Pe,Gt);const Wt=Gt.timelines.filter(ii=>ii.containsAnimation());if(Object.keys(He).length){let ii;for(let di=Wt.length-1;di>=0;di--){const ui=Wt[di];if(ui.element===G){ii=ui;break}}ii&&!ii.allowOnlyTimelineStyles()&&ii.setStyles([He],null,Gt.errors,ue)}return Wt.length?Wt.map(ii=>ii.buildKeyframes()):[L(G,[],[],[],0,0,"",!1)]}visitTrigger(B,G){}visitState(B,G){}visitTransition(B,G){}visitAnimateChild(B,G){const Pe=G.subInstructions.get(G.element);if(Pe){const ht=G.createSubContext(B.options),Ct=G.currentTimeline.currentTime,X=this._visitSubInstructions(Pe,ht,ht.options);Ct!=X&&G.transformIntoNewTimeline(X)}G.previousNode=B}visitAnimateRef(B,G){const Pe=G.createSubContext(B.options);Pe.transformIntoNewTimeline(),this.visitReference(B.animation,Pe),G.transformIntoNewTimeline(Pe.currentTimeline.currentTime),G.previousNode=B}_visitSubInstructions(B,G,Pe){let Ct=G.currentTimeline.currentTime;const X=null!=Pe.duration?z(Pe.duration):null,He=null!=Pe.delay?z(Pe.delay):null;return 0!==X&&B.forEach(ue=>{const tt=G.appendInstructionToTimeline(ue,X,He);Ct=Math.max(Ct,tt.duration+tt.delay)}),Ct}visitReference(B,G){G.updateOptions(B.options,!0),i(this,B.animation,G),G.previousNode=B}visitSequence(B,G){const Pe=G.subContextCount;let ht=G;const Ct=B.options;if(Ct&&(Ct.params||Ct.delay)&&(ht=G.createSubContext(Ct),ht.transformIntoNewTimeline(),null!=Ct.delay)){6==ht.previousNode.type&&(ht.currentTimeline.snapshotCurrentStyles(),ht.previousNode=Rt);const X=z(Ct.delay);ht.delayNextStep(X)}B.steps.length&&(B.steps.forEach(X=>i(this,X,ht)),ht.currentTimeline.applyStylesToKeyframe(),ht.subContextCount>Pe&&ht.transformIntoNewTimeline()),G.previousNode=B}visitGroup(B,G){const Pe=[];let ht=G.currentTimeline.currentTime;const Ct=B.options&&B.options.delay?z(B.options.delay):0;B.steps.forEach(X=>{const He=G.createSubContext(B.options);Ct&&He.delayNextStep(Ct),i(this,X,He),ht=Math.max(ht,He.currentTimeline.currentTime),Pe.push(He.currentTimeline)}),Pe.forEach(X=>G.currentTimeline.mergeTimelineCollectedStyles(X)),G.transformIntoNewTimeline(ht),G.previousNode=B}_visitTiming(B,G){if(B.dynamic){const Pe=B.strValue;return ge(G.params?pe(Pe,G.params,G.errors):Pe,G.errors)}return{duration:B.duration,delay:B.delay,easing:B.easing}}visitAnimate(B,G){const Pe=G.currentAnimateTimings=this._visitTiming(B.timings,G),ht=G.currentTimeline;Pe.delay&&(G.incrementTime(Pe.delay),ht.snapshotCurrentStyles());const Ct=B.style;5==Ct.type?this.visitKeyframes(Ct,G):(G.incrementTime(Pe.duration),this.visitStyle(Ct,G),ht.applyStylesToKeyframe()),G.currentAnimateTimings=null,G.previousNode=B}visitStyle(B,G){const Pe=G.currentTimeline,ht=G.currentAnimateTimings;!ht&&Pe.getCurrentStyleProperties().length&&Pe.forwardFrame();const Ct=ht&&ht.easing||B.easing;B.isEmptyStep?Pe.applyEmptyStep(Ct):Pe.setStyles(B.styles,Ct,G.errors,G.options),G.previousNode=B}visitKeyframes(B,G){const Pe=G.currentAnimateTimings,ht=G.currentTimeline.duration,Ct=Pe.duration,He=G.createSubContext().currentTimeline;He.easing=Pe.easing,B.styles.forEach(ue=>{He.forwardTime((ue.offset||0)*Ct),He.setStyles(ue.styles,ue.easing,G.errors,G.options),He.applyStylesToKeyframe()}),G.currentTimeline.mergeTimelineCollectedStyles(He),G.transformIntoNewTimeline(ht+Ct),G.previousNode=B}visitQuery(B,G){const Pe=G.currentTimeline.currentTime,ht=B.options||{},Ct=ht.delay?z(ht.delay):0;Ct&&(6===G.previousNode.type||0==Pe&&G.currentTimeline.getCurrentStyleProperties().length)&&(G.currentTimeline.snapshotCurrentStyles(),G.previousNode=Rt);let X=Pe;const He=G.invokeQuery(B.selector,B.originalSelector,B.limit,B.includeSelf,!!ht.optional,G.errors);G.currentQueryTotal=He.length;let ue=null;He.forEach((tt,yt)=>{G.currentQueryIndex=yt;const Gt=G.createSubContext(B.options,tt);Ct&&Gt.delayNextStep(Ct),tt===G.element&&(ue=Gt.currentTimeline),i(this,B.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),X=Math.max(X,Gt.currentTimeline.currentTime)}),G.currentQueryIndex=0,G.currentQueryTotal=0,G.transformIntoNewTimeline(X),ue&&(G.currentTimeline.mergeTimelineCollectedStyles(ue),G.currentTimeline.snapshotCurrentStyles()),G.previousNode=B}visitStagger(B,G){const Pe=G.parentContext,ht=G.currentTimeline,Ct=B.timings,X=Math.abs(Ct.duration),He=X*(G.currentQueryTotal-1);let ue=X*G.currentQueryIndex;switch(Ct.duration<0?"reverse":Ct.easing){case"reverse":ue=He-ue;break;case"full":ue=Pe.currentStaggerTime}const yt=G.currentTimeline;ue&&yt.delayNextStep(ue);const Gt=yt.currentTime;i(this,B.animation,G),G.previousNode=B,Pe.currentStaggerTime=ht.currentTime-Gt+(ht.startTime-Pe.currentTimeline.startTime)}}const Rt={};class Et{constructor(B,G,Pe,ht,Ct,X,He,ue){this._driver=B,this.element=G,this.subInstructions=Pe,this._enterClassName=ht,this._leaveClassName=Ct,this.errors=X,this.timelines=He,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ue||new Bt(this._driver,G,0),He.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(B,G){if(!B)return;const Pe=B;let ht=this.options;null!=Pe.duration&&(ht.duration=z(Pe.duration)),null!=Pe.delay&&(ht.delay=z(Pe.delay));const Ct=Pe.params;if(Ct){let X=ht.params;X||(X=this.options.params={}),Object.keys(Ct).forEach(He=>{(!G||!X.hasOwnProperty(He))&&(X[He]=pe(Ct[He],X,this.errors))})}}_copyOptions(){const B={};if(this.options){const G=this.options.params;if(G){const Pe=B.params={};Object.keys(G).forEach(ht=>{Pe[ht]=G[ht]})}}return B}createSubContext(B=null,G,Pe){const ht=G||this.element,Ct=new Et(this._driver,ht,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ht,Pe||0));return Ct.previousNode=this.previousNode,Ct.currentAnimateTimings=this.currentAnimateTimings,Ct.options=this._copyOptions(),Ct.updateOptions(B),Ct.currentQueryIndex=this.currentQueryIndex,Ct.currentQueryTotal=this.currentQueryTotal,Ct.parentContext=this,this.subContextCount++,Ct}transformIntoNewTimeline(B){return this.previousNode=Rt,this.currentTimeline=this.currentTimeline.fork(this.element,B),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(B,G,Pe){const ht={duration:null!=G?G:B.duration,delay:this.currentTimeline.currentTime+(null!=Pe?Pe:0)+B.delay,easing:""},Ct=new Jt(this._driver,B.element,B.keyframes,B.preStyleProps,B.postStyleProps,ht,B.stretchStartingKeyframe);return this.timelines.push(Ct),ht}incrementTime(B){this.currentTimeline.forwardTime(this.currentTimeline.duration+B)}delayNextStep(B){B>0&&this.currentTimeline.delayNextStep(B)}invokeQuery(B,G,Pe,ht,Ct,X){let He=[];if(ht&&He.push(this.element),B.length>0){B=(B=B.replace(ct,"."+this._enterClassName)).replace(xt,"."+this._leaveClassName);let tt=this._driver.query(this.element,B,1!=Pe);0!==Pe&&(tt=Pe<0?tt.slice(tt.length+Pe,tt.length):tt.slice(0,Pe)),He.push(...tt)}return!Ct&&0==He.length&&X.push(`\`query("${G}")\` returned zero elements. (Use \`query("${G}", { optional: true })\` if you wish to allow this.)`),He}}class Bt{constructor(B,G,Pe,ht){this._driver=B,this.element=G,this.startTime=Pe,this._elementTimelineStylesLookup=ht,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(G),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(G,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(B){const G=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||G?(this.forwardTime(this.currentTime+B),G&&this.snapshotCurrentStyles()):this.startTime+=B}fork(B,G){return this.applyStylesToKeyframe(),new Bt(this._driver,B,G||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(B){this.applyStylesToKeyframe(),this.duration=B,this._loadKeyframe()}_updateStyle(B,G){this._localTimelineStyles[B]=G,this._globalTimelineStyles[B]=G,this._styleSummary[B]={time:this.currentTime,value:G}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(B){B&&(this._previousKeyframe.easing=B),Object.keys(this._globalTimelineStyles).forEach(G=>{this._backFill[G]=this._globalTimelineStyles[G]||_.l3,this._currentKeyframe[G]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(B,G,Pe,ht){G&&(this._previousKeyframe.easing=G);const Ct=ht&&ht.params||{},X=function mi(ft,B){const G={};let Pe;return ft.forEach(ht=>{"*"===ht?(Pe=Pe||Object.keys(B),Pe.forEach(Ct=>{G[Ct]=_.l3})):Se(ht,!1,G)}),G}(B,this._globalTimelineStyles);Object.keys(X).forEach(He=>{const ue=pe(X[He],Ct,Pe);this._pendingStyles[He]=ue,this._localTimelineStyles.hasOwnProperty(He)||(this._backFill[He]=this._globalTimelineStyles.hasOwnProperty(He)?this._globalTimelineStyles[He]:_.l3),this._updateStyle(He,ue)})}applyStylesToKeyframe(){const B=this._pendingStyles,G=Object.keys(B);0!=G.length&&(this._pendingStyles={},G.forEach(Pe=>{this._currentKeyframe[Pe]=B[Pe]}),Object.keys(this._localTimelineStyles).forEach(Pe=>{this._currentKeyframe.hasOwnProperty(Pe)||(this._currentKeyframe[Pe]=this._localTimelineStyles[Pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(B=>{const G=this._localTimelineStyles[B];this._pendingStyles[B]=G,this._updateStyle(B,G)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const B=[];for(let G in this._currentKeyframe)B.push(G);return B}mergeTimelineCollectedStyles(B){Object.keys(B._styleSummary).forEach(G=>{const Pe=this._styleSummary[G],ht=B._styleSummary[G];(!Pe||ht.time>Pe.time)&&this._updateStyle(G,ht.value)})}buildKeyframes(){this.applyStylesToKeyframe();const B=new Set,G=new Set,Pe=1===this._keyframes.size&&0===this.duration;let ht=[];this._keyframes.forEach((He,ue)=>{const tt=Se(He,!0);Object.keys(tt).forEach(yt=>{const Gt=tt[yt];Gt==_.k1?B.add(yt):Gt==_.l3&&G.add(yt)}),Pe||(tt.offset=ue/this.duration),ht.push(tt)});const Ct=B.size?Z(B.values()):[],X=G.size?Z(G.values()):[];if(Pe){const He=ht[0],ue=Ie(He);He.offset=0,ue.offset=1,ht=[He,ue]}return L(this.element,ht,Ct,X,this.duration,this.startTime,this.easing,!1)}}class Jt extends Bt{constructor(B,G,Pe,ht,Ct,X,He=!1){super(B,G,X.delay),this.keyframes=Pe,this.preStyleProps=ht,this.postStyleProps=Ct,this._stretchStartingKeyframe=He,this.timings={duration:X.duration,delay:X.delay,easing:X.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let B=this.keyframes,{delay:G,duration:Pe,easing:ht}=this.timings;if(this._stretchStartingKeyframe&&G){const Ct=[],X=Pe+G,He=G/X,ue=Se(B[0],!1);ue.offset=0,Ct.push(ue);const tt=Se(B[0],!1);tt.offset=ai(He),Ct.push(tt);const yt=B.length-1;for(let Gt=1;Gt<=yt;Gt++){let Wt=Se(B[Gt],!1);Wt.offset=ai((G+Wt.offset*Pe)/X),Ct.push(Wt)}Pe=X,G=0,ht="",B=Ct}return L(this.element,B,this.preStyleProps,this.postStyleProps,Pe,G,ht,!0)}}function ai(ft,B=3){const G=Math.pow(10,B-1);return Math.round(ft*G)/G}class yi{}class gn extends yi{normalizePropertyName(B,G){return oe(B)}normalizeStyleValue(B,G,Pe,ht){let Ct="";const X=Pe.toString().trim();if(cn[G]&&0!==Pe&&"0"!==Pe)if("number"==typeof Pe)Ct="px";else{const He=Pe.match(/^[+-]?[\d\.]+([a-z]*)$/);He&&0==He[1].length&&ht.push(`Please provide a CSS unit value for ${B}:${Pe}`)}return X+Ct}}const cn=(()=>function Ki(ft){const B={};return ft.forEach(G=>B[G]=!0),B}("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".split(",")))();function Tn(ft,B,G,Pe,ht,Ct,X,He,ue,tt,yt,Gt,Wt){return{type:0,element:ft,triggerName:B,isRemovalTransition:ht,fromState:G,fromStyles:Ct,toState:Pe,toStyles:X,timelines:He,queriedElements:ue,preStyleProps:tt,postStyleProps:yt,totalTime:Gt,errors:Wt}}const rn={};class st{constructor(B,G,Pe){this._triggerName=B,this.ast=G,this._stateStyles=Pe}match(B,G,Pe,ht){return function St(ft,B,G,Pe,ht){return ft.some(Ct=>Ct(B,G,Pe,ht))}(this.ast.matchers,B,G,Pe,ht)}buildStyles(B,G,Pe){const ht=this._stateStyles["*"],Ct=this._stateStyles[B],X=ht?ht.buildStyles(G,Pe):{};return Ct?Ct.buildStyles(G,Pe):X}build(B,G,Pe,ht,Ct,X,He,ue,tt,yt){const Gt=[],Wt=this.ast.options&&this.ast.options.params||rn,di=this.buildStyles(Pe,He&&He.params||rn,Gt),ui=ue&&ue.params||rn,_i=this.buildStyles(ht,ui,Gt),Ti=new Set,Hi=new Map,ke=new Map,Re="void"===ht,xe={params:Object.assign(Object.assign({},Wt),ui)},ut=yt?[]:Yt(B,G,this.ast.animation,Ct,X,di,_i,xe,tt,Gt);let Zt=0;if(ut.forEach(ji=>{Zt=Math.max(ji.duration+ji.delay,Zt)}),Gt.length)return Tn(G,this._triggerName,Pe,ht,Re,di,_i,[],[],Hi,ke,Zt,Gt);ut.forEach(ji=>{const tn=ji.element,Kn=m(Hi,tn,{});ji.preStyleProps.forEach(cr=>Kn[cr]=!0);const Wn=m(ke,tn,{});ji.postStyleProps.forEach(cr=>Wn[cr]=!0),tn!==G&&Ti.add(tn)});const hi=Z(Ti.values());return Tn(G,this._triggerName,Pe,ht,Re,di,_i,ut,hi,Hi,ke,Zt)}}class ot{constructor(B,G,Pe){this.styles=B,this.defaultParams=G,this.normalizer=Pe}buildStyles(B,G){const Pe={},ht=Ie(this.defaultParams);return Object.keys(B).forEach(Ct=>{const X=B[Ct];null!=X&&(ht[Ct]=X)}),this.styles.styles.forEach(Ct=>{if("string"!=typeof Ct){const X=Ct;Object.keys(X).forEach(He=>{let ue=X[He];ue.length>1&&(ue=pe(ue,ht,G));const tt=this.normalizer.normalizePropertyName(He,G);ue=this.normalizer.normalizeStyleValue(He,tt,ue,G),Pe[tt]=ue})}}),Pe}}class vt{constructor(B,G,Pe){this.name=B,this.ast=G,this._normalizer=Pe,this.transitionFactories=[],this.states={},G.states.forEach(ht=>{this.states[ht.name]=new ot(ht.style,ht.options&&ht.options.params||{},Pe)}),Ye(this.states,"true","1"),Ye(this.states,"false","0"),G.transitions.forEach(ht=>{this.transitionFactories.push(new st(B,ht,this.states))}),this.fallbackTransition=function F(ft,B,G){return new st(ft,{type:1,animation:{type:2,steps:[],options:null},matchers:[(X,He)=>!0],options:null,queryCount:0,depCount:0},B)}(B,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(B,G,Pe,ht){return this.transitionFactories.find(X=>X.match(B,G,Pe,ht))||null}matchStyles(B,G,Pe){return this.fallbackTransition.buildStyles(B,G,Pe)}}function Ye(ft,B,G){ft.hasOwnProperty(B)?ft.hasOwnProperty(G)||(ft[G]=ft[B]):ft.hasOwnProperty(G)&&(ft[B]=ft[G])}const gt=new ne;class Dt{constructor(B,G,Pe){this.bodyNode=B,this._driver=G,this._normalizer=Pe,this._animations={},this._playersById={},this.players=[]}register(B,G){const Pe=[],ht=x(this._driver,G,Pe);if(Pe.length)throw new Error(`Unable to build the animation due to the following errors: ${Pe.join("\n")}`);this._animations[B]=ht}_buildPlayer(B,G,Pe){const ht=B.element,Ct=E(0,this._normalizer,0,B.keyframes,G,Pe);return this._driver.animate(ht,Ct,B.duration,B.delay,B.easing,[],!0)}create(B,G,Pe={}){const ht=[],Ct=this._animations[B];let X;const He=new Map;if(Ct?(X=Yt(this._driver,G,Ct,Ue,Xe,{},{},Pe,gt,ht),X.forEach(yt=>{const Gt=m(He,yt.element,{});yt.postStyleProps.forEach(Wt=>Gt[Wt]=null)})):(ht.push("The requested animation doesn't exist or has already been destroyed"),X=[]),ht.length)throw new Error(`Unable to create the animation due to the following errors: ${ht.join("\n")}`);He.forEach((yt,Gt)=>{Object.keys(yt).forEach(Wt=>{yt[Wt]=this._driver.computeStyle(Gt,Wt,_.l3)})});const tt=A(X.map(yt=>{const Gt=He.get(yt.element);return this._buildPlayer(yt,{},Gt)}));return this._playersById[B]=tt,tt.onDestroy(()=>this.destroy(B)),this.players.push(tt),tt}destroy(B){const G=this._getPlayer(B);G.destroy(),delete this._playersById[B];const Pe=this.players.indexOf(G);Pe>=0&&this.players.splice(Pe,1)}_getPlayer(B){const G=this._playersById[B];if(!G)throw new Error(`Unable to find the timeline player referenced by ${B}`);return G}listen(B,G,Pe,ht){const Ct=I(G,"","","");return C(this._getPlayer(B),Pe,Ct,ht),()=>{}}command(B,G,Pe,ht){if("register"==Pe)return void this.register(B,ht[0]);if("create"==Pe)return void this.create(B,G,ht[0]||{});const Ct=this._getPlayer(B);switch(Pe){case"play":Ct.play();break;case"pause":Ct.pause();break;case"reset":Ct.reset();break;case"restart":Ct.restart();break;case"finish":Ct.finish();break;case"init":Ct.init();break;case"setPosition":Ct.setPosition(parseFloat(ht[0]));break;case"destroy":this.destroy(B)}}}const ri="ng-animate-queued",Di="ng-animate-disabled",Fi=[],Ji={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_n={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ki="__ng_removed";class Ri{constructor(B,G=""){this.namespaceId=G;const Pe=B&&B.hasOwnProperty("value");if(this.value=function xn(ft){return null!=ft?ft:null}(Pe?B.value:B),Pe){const Ct=Ie(B);delete Ct.value,this.options=Ct}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(B){const G=B.params;if(G){const Pe=this.options.params;Object.keys(G).forEach(ht=>{null==Pe[ht]&&(Pe[ht]=G[ht])})}}}const sn="void",Xi=new Ri(sn);class en{constructor(B,G,Pe){this.id=B,this.hostElement=G,this._engine=Pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+B,rt(G,this._hostClassName)}listen(B,G,Pe,ht){if(!this._triggers.hasOwnProperty(G))throw new Error(`Unable to listen on the animation trigger event "${Pe}" because the animation trigger "${G}" doesn't exist!`);if(null==Pe||0==Pe.length)throw new Error(`Unable to listen on the animation trigger "${G}" because the provided event is undefined!`);if(!function Nn(ft){return"start"==ft||"done"==ft}(Pe))throw new Error(`The provided animation trigger event "${Pe}" for the animation trigger "${G}" is not supported!`);const Ct=m(this._elementListeners,B,[]),X={name:G,phase:Pe,callback:ht};Ct.push(X);const He=m(this._engine.statesByElement,B,{});return He.hasOwnProperty(G)||(rt(B,te),rt(B,te+"-"+G),He[G]=Xi),()=>{this._engine.afterFlush(()=>{const ue=Ct.indexOf(X);ue>=0&&Ct.splice(ue,1),this._triggers[G]||delete He[G]})}}register(B,G){return!this._triggers[B]&&(this._triggers[B]=G,!0)}_getTrigger(B){const G=this._triggers[B];if(!G)throw new Error(`The provided animation trigger "${B}" has not been registered!`);return G}trigger(B,G,Pe,ht=!0){const Ct=this._getTrigger(G),X=new dn(this.id,G,B);let He=this._engine.statesByElement.get(B);He||(rt(B,te),rt(B,te+"-"+G),this._engine.statesByElement.set(B,He={}));let ue=He[G];const tt=new Ri(Pe,this.id);if(!(Pe&&Pe.hasOwnProperty("value"))&&ue&&tt.absorbOptions(ue.options),He[G]=tt,ue||(ue=Xi),tt.value!==sn&&ue.value===tt.value){if(!function Tt(ft,B){const G=Object.keys(ft),Pe=Object.keys(B);if(G.length!=Pe.length)return!1;for(let ht=0;ht{je(B,_i),nt(B,Ti)})}return}const Wt=m(this._engine.playersByElement,B,[]);Wt.forEach(ui=>{ui.namespaceId==this.id&&ui.triggerName==G&&ui.queued&&ui.destroy()});let ii=Ct.matchTransition(ue.value,tt.value,B,tt.params),di=!1;if(!ii){if(!ht)return;ii=Ct.fallbackTransition,di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:B,triggerName:G,transition:ii,fromState:ue,toState:tt,player:X,isFallbackTransition:di}),di||(rt(B,ri),X.onStart(()=>{Nt(B,ri)})),X.onDone(()=>{let ui=this.players.indexOf(X);ui>=0&&this.players.splice(ui,1);const _i=this._engine.playersByElement.get(B);if(_i){let Ti=_i.indexOf(X);Ti>=0&&_i.splice(Ti,1)}}),this.players.push(X),Wt.push(X),X}deregister(B){delete this._triggers[B],this._engine.statesByElement.forEach((G,Pe)=>{delete G[B]}),this._elementListeners.forEach((G,Pe)=>{this._elementListeners.set(Pe,G.filter(ht=>ht.name!=B))})}clearElementCache(B){this._engine.statesByElement.delete(B),this._elementListeners.delete(B);const G=this._engine.playersByElement.get(B);G&&(G.forEach(Pe=>Pe.destroy()),this._engine.playersByElement.delete(B))}_signalRemovalForInnerTriggers(B,G){const Pe=this._engine.driver.query(B,Ve,!0);Pe.forEach(ht=>{if(ht[ki])return;const Ct=this._engine.fetchNamespacesByElement(ht);Ct.size?Ct.forEach(X=>X.triggerLeaveAnimation(ht,G,!1,!0)):this.clearElementCache(ht)}),this._engine.afterFlushAnimationsDone(()=>Pe.forEach(ht=>this.clearElementCache(ht)))}triggerLeaveAnimation(B,G,Pe,ht){const Ct=this._engine.statesByElement.get(B),X=new Map;if(Ct){const He=[];if(Object.keys(Ct).forEach(ue=>{if(X.set(ue,Ct[ue].value),this._triggers[ue]){const tt=this.trigger(B,ue,sn,ht);tt&&He.push(tt)}}),He.length)return this._engine.markElementAsRemoved(this.id,B,!0,G,X),Pe&&A(He).onDone(()=>this._engine.processLeaveNode(B)),!0}return!1}prepareLeaveAnimationListeners(B){const G=this._elementListeners.get(B),Pe=this._engine.statesByElement.get(B);if(G&&Pe){const ht=new Set;G.forEach(Ct=>{const X=Ct.name;if(ht.has(X))return;ht.add(X);const ue=this._triggers[X].fallbackTransition,tt=Pe[X]||Xi,yt=new Ri(sn),Gt=new dn(this.id,X,B);this._engine.totalQueuedPlayers++,this._queue.push({element:B,triggerName:X,transition:ue,fromState:tt,toState:yt,player:Gt,isFallbackTransition:!0})})}}removeNode(B,G){const Pe=this._engine;if(B.childElementCount&&this._signalRemovalForInnerTriggers(B,G),this.triggerLeaveAnimation(B,G,!0))return;let ht=!1;if(Pe.totalAnimations){const Ct=Pe.players.length?Pe.playersByQueriedElement.get(B):[];if(Ct&&Ct.length)ht=!0;else{let X=B;for(;X=X.parentNode;)if(Pe.statesByElement.get(X)){ht=!0;break}}}if(this.prepareLeaveAnimationListeners(B),ht)Pe.markElementAsRemoved(this.id,B,!1,G);else{const Ct=B[ki];(!Ct||Ct===Ji)&&(Pe.afterFlush(()=>this.clearElementCache(B)),Pe.destroyInnerAnimations(B),Pe._onRemovalComplete(B,G))}}insertNode(B,G){rt(B,this._hostClassName)}drainQueuedTransitions(B){const G=[];return this._queue.forEach(Pe=>{const ht=Pe.player;if(ht.destroyed)return;const Ct=Pe.element,X=this._elementListeners.get(Ct);X&&X.forEach(He=>{if(He.name==Pe.triggerName){const ue=I(Ct,Pe.triggerName,Pe.fromState.value,Pe.toState.value);ue._data=B,C(Pe.player,He.phase,ue,He.callback)}}),ht.markedForDestroy?this._engine.afterFlush(()=>{ht.destroy()}):G.push(Pe)}),this._queue=[],G.sort((Pe,ht)=>{const Ct=Pe.transition.ast.depCount,X=ht.transition.ast.depCount;return 0==Ct||0==X?Ct-X:this._engine.driver.containsElement(Pe.element,ht.element)?1:-1})}destroy(B){this.players.forEach(G=>G.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,B)}elementContainsData(B){let G=!1;return this._elementListeners.has(B)&&(G=!0),G=!!this._queue.find(Pe=>Pe.element===B)||G,G}}class an{constructor(B,G,Pe){this.bodyNode=B,this.driver=G,this._normalizer=Pe,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=(ht,Ct)=>{}}_onRemovalComplete(B,G){this.onRemovalComplete(B,G)}get queuedPlayers(){const B=[];return this._namespaceList.forEach(G=>{G.players.forEach(Pe=>{Pe.queued&&B.push(Pe)})}),B}createNamespace(B,G){const Pe=new en(B,G,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,G)?this._balanceNamespaceList(Pe,G):(this.newHostElements.set(G,Pe),this.collectEnterElement(G)),this._namespaceLookup[B]=Pe}_balanceNamespaceList(B,G){const Pe=this._namespaceList.length-1;if(Pe>=0){let ht=!1;for(let Ct=Pe;Ct>=0;Ct--)if(this.driver.containsElement(this._namespaceList[Ct].hostElement,G)){this._namespaceList.splice(Ct+1,0,B),ht=!0;break}ht||this._namespaceList.splice(0,0,B)}else this._namespaceList.push(B);return this.namespacesByHostElement.set(G,B),B}register(B,G){let Pe=this._namespaceLookup[B];return Pe||(Pe=this.createNamespace(B,G)),Pe}registerTrigger(B,G,Pe){let ht=this._namespaceLookup[B];ht&&ht.register(G,Pe)&&this.totalAnimations++}destroy(B,G){if(!B)return;const Pe=this._fetchNamespace(B);this.afterFlush(()=>{this.namespacesByHostElement.delete(Pe.hostElement),delete this._namespaceLookup[B];const ht=this._namespaceList.indexOf(Pe);ht>=0&&this._namespaceList.splice(ht,1)}),this.afterFlushAnimationsDone(()=>Pe.destroy(G))}_fetchNamespace(B){return this._namespaceLookup[B]}fetchNamespacesByElement(B){const G=new Set,Pe=this.statesByElement.get(B);if(Pe){const ht=Object.keys(Pe);for(let Ct=0;Ct=0&&this.collectedLeaveElements.splice(X,1)}if(B){const X=this._fetchNamespace(B);X&&X.insertNode(G,Pe)}ht&&this.collectEnterElement(G)}collectEnterElement(B){this.collectedEnterElements.push(B)}markElementAsDisabled(B,G){G?this.disabledNodes.has(B)||(this.disabledNodes.add(B),rt(B,Di)):this.disabledNodes.has(B)&&(this.disabledNodes.delete(B),Nt(B,Di))}removeNode(B,G,Pe,ht){if(Oi(G)){const Ct=B?this._fetchNamespace(B):null;if(Ct?Ct.removeNode(G,ht):this.markElementAsRemoved(B,G,!1,ht),Pe){const X=this.namespacesByHostElement.get(G);X&&X.id!==B&&X.removeNode(G,ht)}}else this._onRemovalComplete(G,ht)}markElementAsRemoved(B,G,Pe,ht,Ct){this.collectedLeaveElements.push(G),G[ki]={namespaceId:B,setForRemoval:ht,hasAnimation:Pe,removedBeforeQueried:!1,previousTriggersValues:Ct}}listen(B,G,Pe,ht,Ct){return Oi(G)?this._fetchNamespace(B).listen(G,Pe,ht,Ct):()=>{}}_buildInstruction(B,G,Pe,ht,Ct){return B.transition.build(this.driver,B.element,B.fromState.value,B.toState.value,Pe,ht,B.fromState.options,B.toState.options,G,Ct)}destroyInnerAnimations(B){let G=this.driver.query(B,Ve,!0);G.forEach(Pe=>this.destroyActiveAnimationsForElement(Pe)),0!=this.playersByQueriedElement.size&&(G=this.driver.query(B,Oe,!0),G.forEach(Pe=>this.finishActiveQueriedAnimationOnElement(Pe)))}destroyActiveAnimationsForElement(B){const G=this.playersByElement.get(B);G&&G.forEach(Pe=>{Pe.queued?Pe.markedForDestroy=!0:Pe.destroy()})}finishActiveQueriedAnimationOnElement(B){const G=this.playersByQueriedElement.get(B);G&&G.forEach(Pe=>Pe.finish())}whenRenderingDone(){return new Promise(B=>{if(this.players.length)return A(this.players).onDone(()=>B());B()})}processLeaveNode(B){var G;const Pe=B[ki];if(Pe&&Pe.setForRemoval){if(B[ki]=Ji,Pe.namespaceId){this.destroyInnerAnimations(B);const ht=this._fetchNamespace(Pe.namespaceId);ht&&ht.clearElementCache(B)}this._onRemovalComplete(B,Pe.setForRemoval)}(null===(G=B.classList)||void 0===G?void 0:G.contains(Di))&&this.markElementAsDisabled(B,!1),this.driver.query(B,".ng-animate-disabled",!0).forEach(ht=>{this.markElementAsDisabled(ht,!1)})}flush(B=-1){let G=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Pe,ht)=>this._balanceNamespaceList(Pe,ht)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Pe=0;PePe()),this._flushFns=[],this._whenQuietFns.length){const Pe=this._whenQuietFns;this._whenQuietFns=[],G.length?A(G).onDone(()=>{Pe.forEach(ht=>ht())}):Pe.forEach(ht=>ht())}}reportError(B){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${B.join("\n")}`)}_flushAnimations(B,G){const Pe=new ne,ht=[],Ct=new Map,X=[],He=new Map,ue=new Map,tt=new Map,yt=new Set;this.disabledNodes.forEach(si=>{yt.add(si);const Ei=this.driver.query(si,".ng-animate-queued",!0);for(let gi=0;gi{const gi=Ue+ui++;di.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))});const _i=[],Ti=new Set,Hi=new Set;for(let si=0;siTi.add(Vi)):Hi.add(Ei))}const ke=new Map,Re=Qt(Wt,Array.from(Ti));Re.forEach((si,Ei)=>{const gi=Xe+ui++;ke.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))}),B.push(()=>{ii.forEach((si,Ei)=>{const gi=di.get(Ei);si.forEach(Vi=>Nt(Vi,gi))}),Re.forEach((si,Ei)=>{const gi=ke.get(Ei);si.forEach(Vi=>Nt(Vi,gi))}),_i.forEach(si=>{this.processLeaveNode(si)})});const xe=[],ut=[];for(let si=this._namespaceList.length-1;si>=0;si--)this._namespaceList[si].drainQueuedTransitions(G).forEach(gi=>{const Vi=gi.player,pn=gi.element;if(xe.push(Vi),this.collectedEnterElements.length){const bn=pn[ki];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(gi.triggerName)){const mn=bn.previousTriggersValues.get(gi.triggerName),Sn=this.statesByElement.get(gi.element);Sn&&Sn[gi.triggerName]&&(Sn[gi.triggerName].value=mn)}return void Vi.destroy()}}const vn=!Gt||!this.driver.containsElement(Gt,pn),Pn=ke.get(pn),Yn=di.get(pn),fn=this._buildInstruction(gi,Pe,Yn,Pn,vn);if(fn.errors&&fn.errors.length)return void ut.push(fn);if(vn)return Vi.onStart(()=>je(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);if(gi.isFallbackTransition)return Vi.onStart(()=>je(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);const $r=[];fn.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||$r.push(bn)}),fn.timelines=$r,Pe.append(pn,fn.timelines),X.push({instruction:fn,player:Vi,element:pn}),fn.queriedElements.forEach(bn=>m(He,bn,[]).push(Vi)),fn.preStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);if(Sn.length){let Xn=ue.get(mn);Xn||ue.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))}}),fn.postStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);let Xn=tt.get(mn);Xn||tt.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))})});if(ut.length){const si=[];ut.forEach(Ei=>{si.push(`@${Ei.triggerName} has failed due to:\n`),Ei.errors.forEach(gi=>si.push(`- ${gi}\n`))}),xe.forEach(Ei=>Ei.destroy()),this.reportError(si)}const Zt=new Map,hi=new Map;X.forEach(si=>{const Ei=si.element;Pe.has(Ei)&&(hi.set(Ei,Ei),this._beforeAnimationBuild(si.player.namespaceId,si.instruction,Zt))}),ht.forEach(si=>{const Ei=si.element;this._getPreviousPlayers(Ei,!1,si.namespaceId,si.triggerName,null).forEach(Vi=>{m(Zt,Ei,[]).push(Vi),Vi.destroy()})});const ji=_i.filter(si=>jt(si,ue,tt)),tn=new Map;Mt(tn,this.driver,Hi,tt,_.l3).forEach(si=>{jt(si,ue,tt)&&ji.push(si)});const Wn=new Map;ii.forEach((si,Ei)=>{Mt(Wn,this.driver,new Set(si),ue,_.k1)}),ji.forEach(si=>{const Ei=tn.get(si),gi=Wn.get(si);tn.set(si,Object.assign(Object.assign({},Ei),gi))});const cr=[],Qr=[],Xt={};X.forEach(si=>{const{element:Ei,player:gi,instruction:Vi}=si;if(Pe.has(Ei)){if(yt.has(Ei))return gi.onDestroy(()=>nt(Ei,Vi.toStyles)),gi.disabled=!0,gi.overrideTotalTime(Vi.totalTime),void ht.push(gi);let pn=Xt;if(hi.size>1){let Pn=Ei;const Yn=[];for(;Pn=Pn.parentNode;){const fn=hi.get(Pn);if(fn){pn=fn;break}Yn.push(Pn)}Yn.forEach(fn=>hi.set(fn,pn))}const vn=this._buildAnimation(gi.namespaceId,Vi,Zt,Ct,Wn,tn);if(gi.setRealPlayer(vn),pn===Xt)cr.push(gi);else{const Pn=this.playersByElement.get(pn);Pn&&Pn.length&&(gi.parentPlayer=A(Pn)),ht.push(gi)}}else je(Ei,Vi.fromStyles),gi.onDestroy(()=>nt(Ei,Vi.toStyles)),Qr.push(gi),yt.has(Ei)&&ht.push(gi)}),Qr.forEach(si=>{const Ei=Ct.get(si.element);if(Ei&&Ei.length){const gi=A(Ei);si.setRealPlayer(gi)}}),ht.forEach(si=>{si.parentPlayer?si.syncPlayerEvents(si.parentPlayer):si.destroy()});for(let si=0;si<_i.length;si++){const Ei=_i[si],gi=Ei[ki];if(Nt(Ei,Xe),gi&&gi.hasAnimation)continue;let Vi=[];if(He.size){let vn=He.get(Ei);vn&&vn.length&&Vi.push(...vn);let Pn=this.driver.query(Ei,Oe,!0);for(let Yn=0;Yn!vn.destroyed);pn.length?Ge(this,Ei,pn):this.processLeaveNode(Ei)}return _i.length=0,cr.forEach(si=>{this.players.push(si),si.onDone(()=>{si.destroy();const Ei=this.players.indexOf(si);this.players.splice(Ei,1)}),si.play()}),cr}elementContainsData(B,G){let Pe=!1;const ht=G[ki];return ht&&ht.setForRemoval&&(Pe=!0),this.playersByElement.has(G)&&(Pe=!0),this.playersByQueriedElement.has(G)&&(Pe=!0),this.statesByElement.has(G)&&(Pe=!0),this._fetchNamespace(B).elementContainsData(G)||Pe}afterFlush(B){this._flushFns.push(B)}afterFlushAnimationsDone(B){this._whenQuietFns.push(B)}_getPreviousPlayers(B,G,Pe,ht,Ct){let X=[];if(G){const He=this.playersByQueriedElement.get(B);He&&(X=He)}else{const He=this.playersByElement.get(B);if(He){const ue=!Ct||Ct==sn;He.forEach(tt=>{tt.queued||!ue&&tt.triggerName!=ht||X.push(tt)})}}return(Pe||ht)&&(X=X.filter(He=>!(Pe&&Pe!=He.namespaceId||ht&&ht!=He.triggerName))),X}_beforeAnimationBuild(B,G,Pe){const Ct=G.element,X=G.isRemovalTransition?void 0:B,He=G.isRemovalTransition?void 0:G.triggerName;for(const ue of G.timelines){const tt=ue.element,yt=tt!==Ct,Gt=m(Pe,tt,[]);this._getPreviousPlayers(tt,yt,X,He,G.toState).forEach(ii=>{const di=ii.getRealPlayer();di.beforeDestroy&&di.beforeDestroy(),ii.destroy(),Gt.push(ii)})}je(Ct,G.fromStyles)}_buildAnimation(B,G,Pe,ht,Ct,X){const He=G.triggerName,ue=G.element,tt=[],yt=new Set,Gt=new Set,Wt=G.timelines.map(di=>{const ui=di.element;yt.add(ui);const _i=ui[ki];if(_i&&_i.removedBeforeQueried)return new _.ZN(di.duration,di.delay);const Ti=ui!==ue,Hi=function Ot(ft){const B=[];return qe(ft,B),B}((Pe.get(ui)||Fi).map(Zt=>Zt.getRealPlayer())).filter(Zt=>!!Zt.element&&Zt.element===ui),ke=Ct.get(ui),Re=X.get(ui),xe=E(0,this._normalizer,0,di.keyframes,ke,Re),ut=this._buildPlayer(di,xe,Hi);if(di.subTimeline&&ht&&Gt.add(ui),Ti){const Zt=new dn(B,He,ui);Zt.setRealPlayer(ut),tt.push(Zt)}return ut});tt.forEach(di=>{m(this.playersByQueriedElement,di.element,[]).push(di),di.onDone(()=>function wn(ft,B,G){let Pe;if(ft instanceof Map){if(Pe=ft.get(B),Pe){if(Pe.length){const ht=Pe.indexOf(G);Pe.splice(ht,1)}0==Pe.length&&ft.delete(B)}}else if(Pe=ft[B],Pe){if(Pe.length){const ht=Pe.indexOf(G);Pe.splice(ht,1)}0==Pe.length&&delete ft[B]}return Pe}(this.playersByQueriedElement,di.element,di))}),yt.forEach(di=>rt(di,ve));const ii=A(Wt);return ii.onDestroy(()=>{yt.forEach(di=>Nt(di,ve)),nt(ue,G.toStyles)}),Gt.forEach(di=>{m(ht,di,[]).push(ii)}),ii}_buildPlayer(B,G,Pe){return G.length>0?this.driver.animate(B.element,G,B.duration,B.delay,B.easing,Pe):new _.ZN(B.duration,B.delay)}}class dn{constructor(B,G,Pe){this.namespaceId=B,this.triggerName=G,this.element=Pe,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(B){this._containsRealPlayer||(this._player=B,Object.keys(this._queuedCallbacks).forEach(G=>{this._queuedCallbacks[G].forEach(Pe=>C(B,G,void 0,Pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(B.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(B){this.totalTime=B}syncPlayerEvents(B){const G=this._player;G.triggerCallback&&B.onStart(()=>G.triggerCallback("start")),B.onDone(()=>this.finish()),B.onDestroy(()=>this.destroy())}_queueEvent(B,G){m(this._queuedCallbacks,B,[]).push(G)}onDone(B){this.queued&&this._queueEvent("done",B),this._player.onDone(B)}onStart(B){this.queued&&this._queueEvent("start",B),this._player.onStart(B)}onDestroy(B){this.queued&&this._queueEvent("destroy",B),this._player.onDestroy(B)}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(B){this.queued||this._player.setPosition(B)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(B){const G=this._player;G.triggerCallback&&G.triggerCallback(B)}}function Oi(ft){return ft&&1===ft.nodeType}function kn(ft,B){const G=ft.style.display;return ft.style.display=null!=B?B:"none",G}function Mt(ft,B,G,Pe,ht){const Ct=[];G.forEach(ue=>Ct.push(kn(ue)));const X=[];Pe.forEach((ue,tt)=>{const yt={};ue.forEach(Gt=>{const Wt=yt[Gt]=B.computeStyle(tt,Gt,ht);(!Wt||0==Wt.length)&&(tt[ki]=_n,X.push(tt))}),ft.set(tt,yt)});let He=0;return G.forEach(ue=>kn(ue,Ct[He++])),X}function Qt(ft,B){const G=new Map;if(ft.forEach(He=>G.set(He,[])),0==B.length)return G;const ht=new Set(B),Ct=new Map;function X(He){if(!He)return 1;let ue=Ct.get(He);if(ue)return ue;const tt=He.parentNode;return ue=G.has(tt)?tt:ht.has(tt)?1:X(tt),Ct.set(He,ue),ue}return B.forEach(He=>{const ue=X(He);1!==ue&&G.get(ue).push(He)}),G}function rt(ft,B){var G;null===(G=ft.classList)||void 0===G||G.add(B)}function Nt(ft,B){var G;null===(G=ft.classList)||void 0===G||G.remove(B)}function Ge(ft,B,G){A(G).onDone(()=>ft.processLeaveNode(B))}function qe(ft,B){for(let G=0;Ght.add(Ct)):B.set(ft,Pe),G.delete(ft),!0}class ci{constructor(B,G,Pe){this.bodyNode=B,this._driver=G,this._normalizer=Pe,this._triggerCache={},this.onRemovalComplete=(ht,Ct)=>{},this._transitionEngine=new an(B,G,Pe),this._timelineEngine=new Dt(B,G,Pe),this._transitionEngine.onRemovalComplete=(ht,Ct)=>this.onRemovalComplete(ht,Ct)}registerTrigger(B,G,Pe,ht,Ct){const X=B+"-"+ht;let He=this._triggerCache[X];if(!He){const ue=[],tt=x(this._driver,Ct,ue);if(ue.length)throw new Error(`The animation trigger "${ht}" has failed to build due to the following errors:\n - ${ue.join("\n - ")}`);He=function $e(ft,B,G){return new vt(ft,B,G)}(ht,tt,this._normalizer),this._triggerCache[X]=He}this._transitionEngine.registerTrigger(G,ht,He)}register(B,G){this._transitionEngine.register(B,G)}destroy(B,G){this._transitionEngine.destroy(B,G)}onInsert(B,G,Pe,ht){this._transitionEngine.insertNode(B,G,Pe,ht)}onRemove(B,G,Pe,ht){this._transitionEngine.removeNode(B,G,ht||!1,Pe)}disableAnimations(B,G){this._transitionEngine.markElementAsDisabled(B,G)}process(B,G,Pe,ht){if("@"==Pe.charAt(0)){const[Ct,X]=O(Pe);this._timelineEngine.command(Ct,G,X,ht)}else this._transitionEngine.trigger(B,G,Pe,ht)}listen(B,G,Pe,ht,Ct){if("@"==Pe.charAt(0)){const[X,He]=O(Pe);return this._timelineEngine.listen(X,G,He,Ct)}return this._transitionEngine.listen(B,G,Pe,ht,Ct)}flush(B=-1){this._transitionEngine.flush(B)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ui=(()=>{class ft{constructor(G,Pe,ht){this._element=G,this._startStyles=Pe,this._endStyles=ht,this._state=0;let Ct=ft.initialStylesByElement.get(G);Ct||ft.initialStylesByElement.set(G,Ct={}),this._initialStyles=Ct}start(){this._state<1&&(this._startStyles&&nt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nt(this._element,this._initialStyles),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ft.initialStylesByElement.delete(this._element),this._startStyles&&(je(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(je(this._element,this._endStyles),this._endStyles=null),nt(this._element,this._initialStyles),this._state=3)}}return ft.initialStylesByElement=new WeakMap,ft})();function Li(ft){let B=null;const G=Object.keys(ft);for(let Pe=0;PeB()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const B=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,B,this.options),this._finalKeyframe=B.length?B[B.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(B,G,Pe){return B.animate(G,Pe)}onStart(B){this._onStartFns.push(B)}onDone(B){this._onDoneFns.push(B)}onDestroy(B){this._onDestroyFns.push(B)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(B=>B()),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}_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(B=>B()),this._onDestroyFns=[])}setPosition(B){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=B*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const B={};if(this.hasStarted()){const G=this._finalKeyframe;Object.keys(G).forEach(Pe=>{"offset"!=Pe&&(B[Pe]=this._finished?G[Pe]:a(this.element,Pe))})}this.currentSnapshot=B}triggerCallback(B){const G="start"==B?this._onStartFns:this._onDoneFns;G.forEach(Pe=>Pe()),G.length=0}}class Vn{validateStyleProperty(B){return he(B)}matchesElement(B,G){return!1}containsElement(B,G){return T(B,G)}query(B,G,Pe){return N(B,G,Pe)}computeStyle(B,G,Pe){return window.getComputedStyle(B)[G]}animate(B,G,Pe,ht,Ct,X=[]){const ue={duration:Pe,delay:ht,fill:0==ht?"both":"forwards"};Ct&&(ue.easing=Ct);const tt={},yt=X.filter(Wt=>Wt instanceof dr);(function $(ft,B){return 0===ft||0===B})(Pe,ht)&&yt.forEach(Wt=>{let ii=Wt.currentSnapshot;Object.keys(ii).forEach(di=>tt[di]=ii[di])}),G=function V(ft,B,G){const Pe=Object.keys(G);if(Pe.length&&B.length){let Ct=B[0],X=[];if(Pe.forEach(He=>{Ct.hasOwnProperty(He)||X.push(He),Ct[He]=G[He]}),X.length)for(var ht=1;htSe(Wt,!1)),tt);const Gt=function vi(ft,B){let G=null,Pe=null;return Array.isArray(B)&&B.length?(G=Li(B[0]),B.length>1&&(Pe=Li(B[B.length-1]))):B&&(G=Li(B)),G||Pe?new Ui(ft,G,Pe):null}(B,G);return new dr(B,G,ue,Gt)}}var ur=p(69808);let Qn=(()=>{class ft extends _._j{constructor(G,Pe){super(),this._nextAnimationId=0,this._renderer=G.createRenderer(Pe.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(G){const Pe=this._nextAnimationId.toString();this._nextAnimationId++;const ht=Array.isArray(G)?(0,_.vP)(G):G;return Zn(this._renderer,null,Pe,"register",[ht]),new Lr(Pe,this._renderer)}}return ft.\u0275fac=function(G){return new(G||ft)(e.LFG(e.FYo),e.LFG(ur.K0))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Lr extends _.LC{constructor(B,G){super(),this._id=B,this._renderer=G}create(B,G){return new rr(this._id,B,G||{},this._renderer)}}class rr{constructor(B,G,Pe,ht){this.id=B,this.element=G,this._renderer=ht,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Pe)}_listen(B,G){return this._renderer.listen(this.element,`@@${this.id}:${B}`,G)}_command(B,...G){return Zn(this._renderer,this.element,this.id,B,G)}onDone(B){this._listen("done",B)}onStart(B){this._listen("start",B)}onDestroy(B){this._listen("destroy",B)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(B){this._command("setPosition",B)}getPosition(){var B,G;return null!==(G=null===(B=this._renderer.engine.players[+this.id])||void 0===B?void 0:B.getPosition())&&void 0!==G?G:0}}function Zn(ft,B,G,Pe,ht){return ft.setProperty(B,`@@${G}:${Pe}`,ht)}const hr="@.disabled";let Mn=(()=>{class ft{constructor(G,Pe,ht){this.delegate=G,this.engine=Pe,this._zone=ht,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Pe.onRemovalComplete=(Ct,X)=>{const He=null==X?void 0:X.parentNode(Ct);He&&X.removeChild(He,Ct)}}createRenderer(G,Pe){const Ct=this.delegate.createRenderer(G,Pe);if(!(G&&Pe&&Pe.data&&Pe.data.animation)){let yt=this._rendererCache.get(Ct);return yt||(yt=new Gn("",Ct,this.engine),this._rendererCache.set(Ct,yt)),yt}const X=Pe.id,He=Pe.id+"-"+this._currentId;this._currentId++,this.engine.register(He,G);const ue=yt=>{Array.isArray(yt)?yt.forEach(ue):this.engine.registerTrigger(X,He,G,yt.name,yt)};return Pe.data.animation.forEach(ue),new sr(this,He,Ct,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(G,Pe,ht){G>=0&&GPe(ht)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ct=>{const[X,He]=Ct;X(He)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Pe,ht]))}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()}}return ft.\u0275fac=function(G){return new(G||ft)(e.LFG(e.FYo),e.LFG(ci),e.LFG(e.R0b))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Gn{constructor(B,G,Pe){this.namespaceId=B,this.delegate=G,this.engine=Pe,this.destroyNode=this.delegate.destroyNode?ht=>G.destroyNode(ht):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(B,G){return this.delegate.createElement(B,G)}createComment(B){return this.delegate.createComment(B)}createText(B){return this.delegate.createText(B)}appendChild(B,G){this.delegate.appendChild(B,G),this.engine.onInsert(this.namespaceId,G,B,!1)}insertBefore(B,G,Pe,ht=!0){this.delegate.insertBefore(B,G,Pe),this.engine.onInsert(this.namespaceId,G,B,ht)}removeChild(B,G,Pe){this.engine.onRemove(this.namespaceId,G,this.delegate,Pe)}selectRootElement(B,G){return this.delegate.selectRootElement(B,G)}parentNode(B){return this.delegate.parentNode(B)}nextSibling(B){return this.delegate.nextSibling(B)}setAttribute(B,G,Pe,ht){this.delegate.setAttribute(B,G,Pe,ht)}removeAttribute(B,G,Pe){this.delegate.removeAttribute(B,G,Pe)}addClass(B,G){this.delegate.addClass(B,G)}removeClass(B,G){this.delegate.removeClass(B,G)}setStyle(B,G,Pe,ht){this.delegate.setStyle(B,G,Pe,ht)}removeStyle(B,G,Pe){this.delegate.removeStyle(B,G,Pe)}setProperty(B,G,Pe){"@"==G.charAt(0)&&G==hr?this.disableAnimations(B,!!Pe):this.delegate.setProperty(B,G,Pe)}setValue(B,G){this.delegate.setValue(B,G)}listen(B,G,Pe){return this.delegate.listen(B,G,Pe)}disableAnimations(B,G){this.engine.disableAnimations(B,G)}}class sr extends Gn{constructor(B,G,Pe,ht){super(G,Pe,ht),this.factory=B,this.namespaceId=G}setProperty(B,G,Pe){"@"==G.charAt(0)?"."==G.charAt(1)&&G==hr?this.disableAnimations(B,Pe=void 0===Pe||!!Pe):this.engine.process(this.namespaceId,B,G.substr(1),Pe):this.delegate.setProperty(B,G,Pe)}listen(B,G,Pe){if("@"==G.charAt(0)){const ht=function ar(ft){switch(ft){case"body":return document.body;case"document":return document;case"window":return window;default:return ft}}(B);let Ct=G.substr(1),X="";return"@"!=Ct.charAt(0)&&([Ct,X]=function Un(ft){const B=ft.indexOf(".");return[ft.substring(0,B),ft.substr(B+1)]}(Ct)),this.engine.listen(this.namespaceId,ht,Ct,X,He=>{this.factory.scheduleListenerCallback(He._data||-1,Pe,He)})}return this.delegate.listen(B,G,Pe)}}let pr=(()=>{class ft extends ci{constructor(G,Pe,ht){super(G.body,Pe,ht)}ngOnDestroy(){this.flush()}}return ft.\u0275fac=function(G){return new(G||ft)(e.LFG(ur.K0),e.LFG(ee),e.LFG(yi))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const yn=new e.OlP("AnimationModuleType"),Cn=[{provide:_._j,useClass:Qn},{provide:yi,useFactory:function br(){return new gn}},{provide:ci,useClass:pr},{provide:e.FYo,useFactory:function In(ft,B,G){return new Mn(ft,B,G)},deps:[b.se,ci,e.R0b]}],$n=[{provide:ee,useFactory:()=>new Vn},{provide:yn,useValue:"BrowserAnimations"},...Cn],or=[{provide:ee,useClass:Y},{provide:yn,useValue:"NoopAnimations"},...Cn];let zn=(()=>{class ft{static withConfig(G){return{ngModule:ft,providers:G.disableAnimations?or:$n}}}return ft.\u0275fac=function(G){return new(G||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:$n,imports:[b.b2]}),ft})()},22313:(Qe,be,p)=>{"use strict";p.d(be,{b2:()=>Z,H7:()=>ct,Dx:()=>V,q6:()=>k,se:()=>te});var e=p(69808),b=p(5e3);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends _{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Et,Bt){return Rt.addEventListener(Et,Bt,!1),()=>{Rt.removeEventListener(Et,Bt,!1)}}dispatchEvent(Rt,Et){Rt.dispatchEvent(Et)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Et){return(Et=Et||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Et){return"window"===Et?window:"document"===Et?Rt:"body"===Et?Rt.body:null}getBaseHref(Rt){const Et=function A(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Et?null:function C(It){E=E||document.createElement("a"),E.setAttribute("href",It);const Rt=E.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Et)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let E,g=null;const R=new b.OlP("TRANSITION_ID"),m=[{provide:b.ip1,useFactory:function I(It,Rt,Et){return()=>{Et.get(b.CZH).donePromise.then(()=>{const Bt=(0,e.q)(),Jt=Rt.querySelectorAll(`style[ng-transition="${It}"]`);for(let ai=0;ai{const ai=Rt.findTestabilityInTree(Bt,Jt);if(null==ai)throw new Error("Could not find testability for element.");return ai},b.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),b.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),b.dqk.frameworkStabilizers||(b.dqk.frameworkStabilizers=[]),b.dqk.frameworkStabilizers.push(Bt=>{const Jt=b.dqk.getAllAngularTestabilities();let ai=Jt.length,mi=!1;const bi=function(yi){mi=mi||yi,ai--,0==ai&&Bt(mi)};Jt.forEach(function(yi){yi.whenStable(bi)})})}findTestabilityInTree(Rt,Et,Bt){if(null==Et)return null;const Jt=Rt.getTestability(Et);return null!=Jt?Jt:Bt?(0,e.q)().isShadowRoot(Et)?this.findTestabilityInTree(Rt,Et.host,!0):this.findTestabilityInTree(Rt,Et.parentElement,!0):null}}let P=(()=>{class It{build(){return new XMLHttpRequest}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const W=new b.OlP("EventManagerPlugins");let ie=(()=>{class It{constructor(Et,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,Et.forEach(Jt=>Jt.manager=this),this._plugins=Et.slice().reverse()}addEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addEventListener(Et,Bt,Jt)}addGlobalEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(Et,Bt,Jt)}getZone(){return this._zone}_findPluginFor(Et){const Bt=this._eventNameToPlugin.get(Et);if(Bt)return Bt;const Jt=this._plugins;for(let ai=0;ai{class It{constructor(){this._stylesSet=new Set}addStyles(Et){const Bt=new Set;Et.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(Et){}getAllStyles(){return Array.from(this._stylesSet)}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})(),Me=(()=>{class It extends q{constructor(Et){super(),this._doc=Et,this._hostNodes=new Map,this._hostNodes.set(Et.head,[])}_addStylesToHost(Et,Bt,Jt){Et.forEach(ai=>{const mi=this._doc.createElement("style");mi.textContent=ai,Jt.push(Bt.appendChild(mi))})}addHost(Et){const Bt=[];this._addStylesToHost(this._stylesSet,Et,Bt),this._hostNodes.set(Et,Bt)}removeHost(Et){const Bt=this._hostNodes.get(Et);Bt&&Bt.forEach(he),this._hostNodes.delete(Et)}onStylesAdded(Et){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(Et,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(Et=>Et.forEach(he))}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();function he(It){(0,e.q)().remove(It)}const De={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/"},T=/%COMP%/g,j="%COMP%",Y=`_nghost-${j}`,ee=`_ngcontent-${j}`;function Fe(It,Rt,Et){for(let Bt=0;Bt{if("__ngUnwrap__"===Rt)return It;!1===It(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let te=(()=>{class It{constructor(Et,Bt,Jt){this.eventManager=Et,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new Ve(Et)}createRenderer(Et,Bt){if(!Et||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case b.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new z(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(Et),Jt}case 1:case b.ifc.ShadowDom:return new D(this.eventManager,this.sharedStylesHost,Et,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=Fe(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(ie),b.LFG(Me),b.LFG(b.AFp))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();class Ve{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Et){return Et?document.createElementNS(De[Et]||Et,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Et){Rt.appendChild(Et)}insertBefore(Rt,Et,Bt){Rt&&Rt.insertBefore(Et,Bt)}removeChild(Rt,Et){Rt&&Rt.removeChild(Et)}selectRootElement(Rt,Et){let Bt="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Bt)throw new Error(`The selector "${Rt}" did not match any elements`);return Et||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Et,Bt,Jt){if(Jt){Et=Jt+":"+Et;const ai=De[Jt];ai?Rt.setAttributeNS(ai,Et,Bt):Rt.setAttribute(Et,Bt)}else Rt.setAttribute(Et,Bt)}removeAttribute(Rt,Et,Bt){if(Bt){const Jt=De[Bt];Jt?Rt.removeAttributeNS(Jt,Et):Rt.removeAttribute(`${Bt}:${Et}`)}else Rt.removeAttribute(Et)}addClass(Rt,Et){Rt.classList.add(Et)}removeClass(Rt,Et){Rt.classList.remove(Et)}setStyle(Rt,Et,Bt,Jt){Jt&(b.JOm.DashCase|b.JOm.Important)?Rt.style.setProperty(Et,Bt,Jt&b.JOm.Important?"important":""):Rt.style[Et]=Bt}removeStyle(Rt,Et,Bt){Bt&b.JOm.DashCase?Rt.style.removeProperty(Et):Rt.style[Et]=""}setProperty(Rt,Et,Bt){Rt[Et]=Bt}setValue(Rt,Et){Rt.nodeValue=Et}listen(Rt,Et,Bt){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Et,Ue(Bt)):this.eventManager.addEventListener(Rt,Et,Ue(Bt))}}class z extends Ve{constructor(Rt,Et,Bt,Jt){super(Rt),this.component=Bt;const ai=Fe(Jt+"-"+Bt.id,Bt.styles,[]);Et.addStyles(ai),this.contentAttr=function de(It){return ee.replace(T,It)}(Jt+"-"+Bt.id),this.hostAttr=function ce(It){return Y.replace(T,It)}(Jt+"-"+Bt.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Et){const Bt=super.createElement(Rt,Et);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class D extends Ve{constructor(Rt,Et,Bt,Jt){super(Rt),this.sharedStylesHost=Et,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ai=Fe(Jt.id,Jt.styles,[]);for(let mi=0;mi{class It extends Ae{constructor(Et){super(Et)}supports(Et){return!0}addEventListener(Et,Bt,Jt){return Et.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(Et,Bt,Jt)}removeEventListener(Et,Bt,Jt){return Et.removeEventListener(Bt,Jt)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const Te=["alt","control","meta","shift"],fe={"\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"},Se={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ke={alt:It=>It.altKey,control:It=>It.ctrlKey,meta:It=>It.metaKey,shift:It=>It.shiftKey};let Je=(()=>{class It extends Ae{constructor(Et){super(Et)}supports(Et){return null!=It.parseEventName(Et)}addEventListener(Et,Bt,Jt){const ai=It.parseEventName(Bt),mi=It.eventCallback(ai.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Et,ai.domEventName,mi))}static parseEventName(Et){const Bt=Et.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const ai=It._normalizeKey(Bt.pop());let mi="";if(Te.forEach(yi=>{const Wi=Bt.indexOf(yi);Wi>-1&&(Bt.splice(Wi,1),mi+=yi+".")}),mi+=ai,0!=Bt.length||0===ai.length)return null;const bi={};return bi.domEventName=Jt,bi.fullKey=mi,bi}static getEventFullKey(Et){let Bt="",Jt=function nt(It){let Rt=It.key;if(null==Rt){if(Rt=It.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===It.location&&Se.hasOwnProperty(Rt)&&(Rt=Se[Rt]))}return fe[Rt]||Rt}(Et);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),Te.forEach(ai=>{ai!=Jt&&Ke[ai](Et)&&(Bt+=ai+".")}),Bt+=Jt,Bt}static eventCallback(Et,Bt,Jt){return ai=>{It.getEventFullKey(ai)===Et&&Jt.runGuarded(()=>Bt(ai))}}static _normalizeKey(Et){return"esc"===Et?"escape":Et}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const k=(0,b.eFA)(b._c5,"browser",[{provide:b.Lbi,useValue:e.bD},{provide:b.g9A,useValue:function je(){w.makeCurrent(),O.init()},multi:!0},{provide:e.K0,useFactory:function Ce(){return(0,b.RDi)(document),document},deps:[]}]),pe=[{provide:b.zSh,useValue:"root"},{provide:b.qLn,useFactory:function Q(){return new b.qLn},deps:[]},{provide:W,useClass:ge,multi:!0,deps:[e.K0,b.R0b,b.Lbi]},{provide:W,useClass:Je,multi:!0,deps:[e.K0]},{provide:te,useClass:te,deps:[ie,Me,b.AFp]},{provide:b.FYo,useExisting:te},{provide:q,useExisting:Me},{provide:Me,useClass:Me,deps:[e.K0]},{provide:b.dDg,useClass:b.dDg,deps:[b.R0b]},{provide:ie,useClass:ie,deps:[W,b.R0b]},{provide:e.JF,useClass:P,deps:[]}];let Z=(()=>{class It{constructor(Et){if(Et)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Et){return{ngModule:It,providers:[{provide:b.AFp,useValue:Et.appId},{provide:R,useExisting:b.AFp},m]}}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(It,12))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:pe,imports:[e.ez,b.hGG]}),It})(),V=(()=>{class It{constructor(Et){this._doc=Et}getTitle(){return this._doc.title}setTitle(Et){this._doc.title=Et||""}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function $(){return new V((0,b.LFG)(e.K0))}(),Bt},providedIn:"root"}),It})();"undefined"!=typeof window&&window;let ct=(()=>{class It{}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new(Et||It):b.LFG(xt),Bt},providedIn:"root"}),It})(),xt=(()=>{class It extends ct{constructor(Et){super(),this._doc=Et}sanitize(Et,Bt){if(null==Bt)return null;switch(Et){case b.q3G.NONE:return Bt;case b.q3G.HTML:return(0,b.qzn)(Bt,"HTML")?(0,b.z3N)(Bt):(0,b.EiD)(this._doc,String(Bt)).toString();case b.q3G.STYLE:return(0,b.qzn)(Bt,"Style")?(0,b.z3N)(Bt):Bt;case b.q3G.SCRIPT:if((0,b.qzn)(Bt,"Script"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a script context");case b.q3G.URL:return(0,b.yhl)(Bt),(0,b.qzn)(Bt,"URL")?(0,b.z3N)(Bt):(0,b.mCW)(String(Bt));case b.q3G.RESOURCE_URL:if((0,b.qzn)(Bt,"ResourceURL"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Et} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Et){return(0,b.JVY)(Et)}bypassSecurityTrustStyle(Et){return(0,b.L6k)(Et)}bypassSecurityTrustScript(Et){return(0,b.eBb)(Et)}bypassSecurityTrustUrl(Et){return(0,b.LAX)(Et)}bypassSecurityTrustResourceUrl(Et){return(0,b.pB0)(Et)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function bt(It){return new xt(It.get(e.K0))}(b.LFG(b.zs3)),Bt},providedIn:"root"}),It})()},11735:(Qe,be,p)=>{"use strict";p.d(be,{gz:()=>Dt,m2:()=>z,OD:()=>Oe,GZ:()=>Kr,wN:()=>at,F0:()=>Zi,rH:()=>Hn,yS:()=>ln,Bz:()=>No,lC:()=>Gn});var e=p(5e3),b=p(5254),_=p(21086),w=p(591),g=p(36053),A=p(56498),E=p(84450),C=p(61221),R=p(88514),I=p(68896),m=p(71762),O=p(8929),P=p(92198),W=p(92821),ie=p(34907),Ae=p(47314),q=p(35379),he=p(24850),De=p(87545),T=p(72986),N=p(1059),j=p(92014),Y=p(27221),ee=p(21406),de=p(87224),ce=p(61709),Fe=p(22868),Ue=p(74327),Xe=p(40537),te=p(89146),Ve=p(69808);class ve{constructor(ae,J){this.id=ae,this.url=J}}class Oe extends ve{constructor(ae,J,Ze="imperative",it=null){super(ae,J),this.navigationTrigger=Ze,this.restoredState=it}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class z extends ve{constructor(ae,J,Ze){super(ae,J),this.urlAfterRedirects=Ze}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class D extends ve{constructor(ae,J,Ze){super(ae,J),this.reason=Ze}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ge extends ve{constructor(ae,J,Ze){super(ae,J),this.error=Ze}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Te extends ve{constructor(ae,J,Ze,it){super(ae,J),this.urlAfterRedirects=Ze,this.state=it}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ie extends ve{constructor(ae,J,Ze,it){super(ae,J),this.urlAfterRedirects=Ze,this.state=it}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fe extends ve{constructor(ae,J,Ze,it,_t){super(ae,J),this.urlAfterRedirects=Ze,this.state=it,this.shouldActivate=_t}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Se extends ve{constructor(ae,J,Ze,it){super(ae,J),this.urlAfterRedirects=Ze,this.state=it}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ke extends ve{constructor(ae,J,Ze,it){super(ae,J),this.urlAfterRedirects=Ze,this.state=it}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(ae){this.route=ae}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(ae){this.route=ae}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class je{constructor(ae){this.snapshot=ae}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{constructor(ae){this.snapshot=ae}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ce{constructor(ae){this.snapshot=ae}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class re{constructor(ae){this.snapshot=ae}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class k{constructor(ae,J,Ze){this.routerEvent=ae,this.position=J,this.anchor=Ze}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const pe="primary";class Z{constructor(ae){this.params=ae||{}}has(ae){return Object.prototype.hasOwnProperty.call(this.params,ae)}get(ae){if(this.has(ae)){const J=this.params[ae];return Array.isArray(J)?J[0]:J}return null}getAll(ae){if(this.has(ae)){const J=this.params[ae];return Array.isArray(J)?J:[J]}return[]}get keys(){return Object.keys(this.params)}}function Ne(Ee){return new Z(Ee)}const oe="ngNavigationCancelingError";function _e(Ee){const ae=Error("NavigationCancelingError: "+Ee);return ae[oe]=!0,ae}function V(Ee,ae,J){const Ze=J.path.split("/");if(Ze.length>Ee.length||"full"===J.pathMatch&&(ae.hasChildren()||Ze.lengthZe[_t]===it)}return Ee===ae}function l(Ee){return Array.prototype.concat.apply([],Ee)}function s(Ee){return Ee.length>0?Ee[Ee.length-1]:null}function t(Ee,ae){for(const J in Ee)Ee.hasOwnProperty(J)&&ae(Ee[J],J)}function n(Ee){return(0,e.CqO)(Ee)?Ee:(0,e.QGY)(Ee)?(0,b.D)(Promise.resolve(Ee)):(0,_.of)(Ee)}const c={exact:function At(Ee,ae,J){if(!L(Ee.segments,ae.segments)||!mt(Ee.segments,ae.segments,J)||Ee.numberOfChildren!==ae.numberOfChildren)return!1;for(const Ze in ae.children)if(!Ee.children[Ze]||!At(Ee.children[Ze],ae.children[Ze],J))return!1;return!0},subset:lt},h={exact:function We(Ee,ae){return a(Ee,ae)},subset:function Ht(Ee,ae){return Object.keys(ae).length<=Object.keys(Ee).length&&Object.keys(ae).every(J=>d(Ee[J],ae[J]))},ignored:()=>!0};function x(Ee,ae,J){return c[J.paths](Ee.root,ae.root,J.matrixParams)&&h[J.queryParams](Ee.queryParams,ae.queryParams)&&!("exact"===J.fragment&&Ee.fragment!==ae.fragment)}function lt(Ee,ae,J){return Ut(Ee,ae,ae.segments,J)}function Ut(Ee,ae,J,Ze){if(Ee.segments.length>J.length){const it=Ee.segments.slice(0,J.length);return!(!L(it,J)||ae.hasChildren()||!mt(it,J,Ze))}if(Ee.segments.length===J.length){if(!L(Ee.segments,J)||!mt(Ee.segments,J,Ze))return!1;for(const it in ae.children)if(!Ee.children[it]||!lt(Ee.children[it],ae.children[it],Ze))return!1;return!0}{const it=J.slice(0,Ee.segments.length),_t=J.slice(Ee.segments.length);return!!(L(Ee.segments,it)&&mt(Ee.segments,it,Ze)&&Ee.children[pe])&&Ut(Ee.children[pe],ae,_t,Ze)}}function mt(Ee,ae,J){return ae.every((Ze,it)=>h[J](Ee[it].parameters,Ze.parameters))}class Lt{constructor(ae,J,Ze){this.root=ae,this.queryParams=J,this.fragment=Ze}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ne(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class we{constructor(ae,J){this.segments=ae,this.children=J,this.parent=null,t(J,(Ze,it)=>Ze.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class ze{constructor(ae,J){this.path=ae,this.parameters=J}get parameterMap(){return this._parameterMap||(this._parameterMap=Ne(this.parameters)),this._parameterMap}toString(){return ai(this)}}function L(Ee,ae){return Ee.length===ae.length&&Ee.every((J,Ze)=>J.path===ae[Ze].path)}class le{}class Le{parse(ae){const J=new rn(ae);return new Lt(J.parseRootSegment(),J.parseQueryParams(),J.parseFragment())}serialize(ae){const J=`/${xt(ae.root,!0)}`,Ze=function bi(Ee){const ae=Object.keys(Ee).map(J=>{const Ze=Ee[J];return Array.isArray(Ze)?Ze.map(it=>`${It(J)}=${It(it)}`).join("&"):`${It(J)}=${It(Ze)}`}).filter(J=>!!J);return ae.length?`?${ae.join("&")}`:""}(ae.queryParams);return`${J}${Ze}${"string"==typeof ae.fragment?`#${function Rt(Ee){return encodeURI(Ee)}(ae.fragment)}`:""}`}}const ct=new Le;function bt(Ee){return Ee.segments.map(ae=>ai(ae)).join("/")}function xt(Ee,ae){if(!Ee.hasChildren())return bt(Ee);if(ae){const J=Ee.children[pe]?xt(Ee.children[pe],!1):"",Ze=[];return t(Ee.children,(it,_t)=>{_t!==pe&&Ze.push(`${_t}:${xt(it,!1)}`)}),Ze.length>0?`${J}(${Ze.join("//")})`:J}{const J=function ne(Ee,ae){let J=[];return t(Ee.children,(Ze,it)=>{it===pe&&(J=J.concat(ae(Ze,it)))}),t(Ee.children,(Ze,it)=>{it!==pe&&(J=J.concat(ae(Ze,it)))}),J}(Ee,(Ze,it)=>it===pe?[xt(Ee.children[pe],!1)]:[`${it}:${xt(Ze,!1)}`]);return 1===Object.keys(Ee.children).length&&null!=Ee.children[pe]?`${bt(Ee)}/${J[0]}`:`${bt(Ee)}/(${J.join("//")})`}}function Yt(Ee){return encodeURIComponent(Ee).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(Ee){return Yt(Ee).replace(/%3B/gi,";")}function Et(Ee){return Yt(Ee).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ee){return decodeURIComponent(Ee)}function Jt(Ee){return Bt(Ee.replace(/\+/g,"%20"))}function ai(Ee){return`${Et(Ee.path)}${function mi(Ee){return Object.keys(Ee).map(ae=>`;${Et(ae)}=${Et(Ee[ae])}`).join("")}(Ee.parameters)}`}const yi=/^[^\/()?;=#]+/;function Wi(Ee){const ae=Ee.match(yi);return ae?ae[0]:""}const gn=/^[^=?&#]+/,Ki=/^[^&#]+/;class rn{constructor(ae){this.url=ae,this.remaining=ae}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new we([],{}):new we([],this.parseChildren())}parseQueryParams(){const ae={};if(this.consumeOptional("?"))do{this.parseQueryParam(ae)}while(this.consumeOptional("&"));return ae}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ae=[];for(this.peekStartsWith("(")||ae.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ae.push(this.parseSegment());let J={};this.peekStartsWith("/(")&&(this.capture("/"),J=this.parseParens(!0));let Ze={};return this.peekStartsWith("(")&&(Ze=this.parseParens(!1)),(ae.length>0||Object.keys(J).length>0)&&(Ze[pe]=new we(ae,J)),Ze}parseSegment(){const ae=Wi(this.remaining);if(""===ae&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(ae),new ze(Bt(ae),this.parseMatrixParams())}parseMatrixParams(){const ae={};for(;this.consumeOptional(";");)this.parseParam(ae);return ae}parseParam(ae){const J=Wi(this.remaining);if(!J)return;this.capture(J);let Ze="";if(this.consumeOptional("=")){const it=Wi(this.remaining);it&&(Ze=it,this.capture(Ze))}ae[Bt(J)]=Bt(Ze)}parseQueryParam(ae){const J=function cn(Ee){const ae=Ee.match(gn);return ae?ae[0]:""}(this.remaining);if(!J)return;this.capture(J);let Ze="";if(this.consumeOptional("=")){const Pt=function Tn(Ee){const ae=Ee.match(Ki);return ae?ae[0]:""}(this.remaining);Pt&&(Ze=Pt,this.capture(Ze))}const it=Jt(J),_t=Jt(Ze);if(ae.hasOwnProperty(it)){let Pt=ae[it];Array.isArray(Pt)||(Pt=[Pt],ae[it]=Pt),Pt.push(_t)}else ae[it]=_t}parseParens(ae){const J={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ze=Wi(this.remaining),it=this.remaining[Ze.length];if("/"!==it&&")"!==it&&";"!==it)throw new Error(`Cannot parse url '${this.url}'`);let _t;Ze.indexOf(":")>-1?(_t=Ze.substr(0,Ze.indexOf(":")),this.capture(_t),this.capture(":")):ae&&(_t=pe);const Pt=this.parseChildren();J[_t]=1===Object.keys(Pt).length?Pt[pe]:new we([],Pt),this.consumeOptional("//")}return J}peekStartsWith(ae){return this.remaining.startsWith(ae)}consumeOptional(ae){return!!this.peekStartsWith(ae)&&(this.remaining=this.remaining.substring(ae.length),!0)}capture(ae){if(!this.consumeOptional(ae))throw new Error(`Expected "${ae}".`)}}class st{constructor(ae){this._root=ae}get root(){return this._root.value}parent(ae){const J=this.pathFromRoot(ae);return J.length>1?J[J.length-2]:null}children(ae){const J=St(ae,this._root);return J?J.children.map(Ze=>Ze.value):[]}firstChild(ae){const J=St(ae,this._root);return J&&J.children.length>0?J.children[0].value:null}siblings(ae){const J=ot(ae,this._root);return J.length<2?[]:J[J.length-2].children.map(it=>it.value).filter(it=>it!==ae)}pathFromRoot(ae){return ot(ae,this._root).map(J=>J.value)}}function St(Ee,ae){if(Ee===ae.value)return ae;for(const J of ae.children){const Ze=St(Ee,J);if(Ze)return Ze}return null}function ot(Ee,ae){if(Ee===ae.value)return[ae];for(const J of ae.children){const Ze=ot(Ee,J);if(Ze.length)return Ze.unshift(ae),Ze}return[]}class $e{constructor(ae,J){this.value=ae,this.children=J}toString(){return`TreeNode(${this.value})`}}function vt(Ee){const ae={};return Ee&&Ee.children.forEach(J=>ae[J.value.outlet]=J),ae}class F extends st{constructor(ae,J){super(ae),this.snapshot=J,$i(this,ae)}toString(){return this.snapshot.toString()}}function Ye(Ee,ae){const J=function gt(Ee,ae){const Pt=new Di([],{},{},"",{},pe,ae,null,Ee.root,-1,{});return new wi("",new $e(Pt,[]))}(Ee,ae),Ze=new w.X([new ze("",{})]),it=new w.X({}),_t=new w.X({}),Pt=new w.X({}),Ft=new w.X(""),$t=new Dt(Ze,it,Pt,Ft,_t,pe,ae,J.root);return $t.snapshot=J.root,new F(new $e($t,[]),J)}class Dt{constructor(ae,J,Ze,it,_t,Pt,Ft,$t){this.url=ae,this.params=J,this.queryParams=Ze,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this._futureSnapshot=$t}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,he.U)(ae=>Ne(ae)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,he.U)(ae=>Ne(ae)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ri(Ee,ae="emptyOnly"){const J=Ee.pathFromRoot;let Ze=0;if("always"!==ae)for(Ze=J.length-1;Ze>=1;){const it=J[Ze],_t=J[Ze-1];if(it.routeConfig&&""===it.routeConfig.path)Ze--;else{if(_t.component)break;Ze--}}return function ti(Ee){return Ee.reduce((ae,J)=>({params:Object.assign(Object.assign({},ae.params),J.params),data:Object.assign(Object.assign({},ae.data),J.data),resolve:Object.assign(Object.assign({},ae.resolve),J._resolvedData)}),{params:{},data:{},resolve:{}})}(J.slice(Ze))}class Di{constructor(ae,J,Ze,it,_t,Pt,Ft,$t,Ai,Yi,xi){this.url=ae,this.params=J,this.queryParams=Ze,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this.routeConfig=$t,this._urlSegment=Ai,this._lastPathIndex=Yi,this._resolve=xi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ne(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ne(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ze=>Ze.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wi extends st{constructor(ae,J){super(J),this.url=ae,$i(this,J)}toString(){return qi(this._root)}}function $i(Ee,ae){ae.value._routerState=Ee,ae.children.forEach(J=>$i(Ee,J))}function qi(Ee){const ae=Ee.children.length>0?` { ${Ee.children.map(qi).join(", ")} } `:"";return`${Ee.value}${ae}`}function Fi(Ee){if(Ee.snapshot){const ae=Ee.snapshot,J=Ee._futureSnapshot;Ee.snapshot=J,a(ae.queryParams,J.queryParams)||Ee.queryParams.next(J.queryParams),ae.fragment!==J.fragment&&Ee.fragment.next(J.fragment),a(ae.params,J.params)||Ee.params.next(J.params),function i(Ee,ae){if(Ee.length!==ae.length)return!1;for(let J=0;Ja(J.parameters,ae[Ze].parameters))}(Ee.url,ae.url);return J&&!(!Ee.parent!=!ae.parent)&&(!Ee.parent||Ji(Ee.parent,ae.parent))}function ki(Ee,ae,J){if(J&&Ee.shouldReuseRoute(ae.value,J.value.snapshot)){const Ze=J.value;Ze._futureSnapshot=ae.value;const it=function Ri(Ee,ae,J){return ae.children.map(Ze=>{for(const it of J.children)if(Ee.shouldReuseRoute(Ze.value,it.value.snapshot))return ki(Ee,Ze,it);return ki(Ee,Ze)})}(Ee,ae,J);return new $e(Ze,it)}{if(Ee.shouldAttach(ae.value)){const _t=Ee.retrieve(ae.value);if(null!==_t){const Pt=_t.route;return Pt.value._futureSnapshot=ae.value,Pt.children=ae.children.map(Ft=>ki(Ee,Ft)),Pt}}const Ze=function sn(Ee){return new Dt(new w.X(Ee.url),new w.X(Ee.params),new w.X(Ee.queryParams),new w.X(Ee.fragment),new w.X(Ee.data),Ee.outlet,Ee.component,Ee)}(ae.value),it=ae.children.map(_t=>ki(Ee,_t));return new $e(Ze,it)}}function en(Ee){return"object"==typeof Ee&&null!=Ee&&!Ee.outlets&&!Ee.segmentPath}function an(Ee){return"object"==typeof Ee&&null!=Ee&&Ee.outlets}function dn(Ee,ae,J,Ze,it){let _t={};return Ze&&t(Ze,(Pt,Ft)=>{_t[Ft]=Array.isArray(Pt)?Pt.map($t=>`${$t}`):`${Pt}`}),new Lt(J.root===Ee?ae:wn(J.root,Ee,ae),_t,it)}function wn(Ee,ae,J){const Ze={};return t(Ee.children,(it,_t)=>{Ze[_t]=it===ae?J:wn(it,ae,J)}),new we(Ee.segments,Ze)}class xn{constructor(ae,J,Ze){if(this.isAbsolute=ae,this.numberOfDoubleDots=J,this.commands=Ze,ae&&Ze.length>0&&en(Ze[0]))throw new Error("Root segment cannot have matrix parameters");const it=Ze.find(an);if(it&&it!==s(Ze))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nn{constructor(ae,J,Ze){this.segmentGroup=ae,this.processChildren=J,this.index=Ze}}function rt(Ee,ae,J){if(Ee||(Ee=new we([],{})),0===Ee.segments.length&&Ee.hasChildren())return Nt(Ee,ae,J);const Ze=function Ge(Ee,ae,J){let Ze=0,it=ae;const _t={match:!1,pathIndex:0,commandIndex:0};for(;it=J.length)return _t;const Pt=Ee.segments[it],Ft=J[Ze];if(an(Ft))break;const $t=`${Ft}`,Ai=Ze0&&void 0===$t)break;if($t&&Ai&&"object"==typeof Ai&&void 0===Ai.outlets){if(!jt($t,Ai,Pt))return _t;Ze+=2}else{if(!jt($t,{},Pt))return _t;Ze++}it++}return{match:!0,pathIndex:it,commandIndex:Ze}}(Ee,ae,J),it=J.slice(Ze.commandIndex);if(Ze.match&&Ze.pathIndex{"string"==typeof _t&&(_t=[_t]),null!==_t&&(it[Pt]=rt(Ee.children[Pt],ae,_t))}),t(Ee.children,(_t,Pt)=>{void 0===Ze[Pt]&&(it[Pt]=_t)}),new we(Ee.segments,it)}}function Ot(Ee,ae,J){const Ze=Ee.segments.slice(0,ae);let it=0;for(;it{"string"==typeof J&&(J=[J]),null!==J&&(ae[Ze]=Ot(new we([],{}),0,J))}),ae}function Tt(Ee){const ae={};return t(Ee,(J,Ze)=>ae[Ze]=`${J}`),ae}function jt(Ee,ae,J){return Ee==J.path&&a(ae,J.parameters)}class vi{constructor(ae,J,Ze,it){this.routeReuseStrategy=ae,this.futureState=J,this.currState=Ze,this.forwardEvent=it}activate(ae){const J=this.futureState._root,Ze=this.currState?this.currState._root:null;this.deactivateChildRoutes(J,Ze,ae),Fi(this.futureState.root),this.activateChildRoutes(J,Ze,ae)}deactivateChildRoutes(ae,J,Ze){const it=vt(J);ae.children.forEach(_t=>{const Pt=_t.value.outlet;this.deactivateRoutes(_t,it[Pt],Ze),delete it[Pt]}),t(it,(_t,Pt)=>{this.deactivateRouteAndItsChildren(_t,Ze)})}deactivateRoutes(ae,J,Ze){const it=ae.value,_t=J?J.value:null;if(it===_t)if(it.component){const Pt=Ze.getContext(it.outlet);Pt&&this.deactivateChildRoutes(ae,J,Pt.children)}else this.deactivateChildRoutes(ae,J,Ze);else _t&&this.deactivateRouteAndItsChildren(J,Ze)}deactivateRouteAndItsChildren(ae,J){ae.value.component&&this.routeReuseStrategy.shouldDetach(ae.value.snapshot)?this.detachAndStoreRouteSubtree(ae,J):this.deactivateRouteAndOutlet(ae,J)}detachAndStoreRouteSubtree(ae,J){const Ze=J.getContext(ae.value.outlet),it=Ze&&ae.value.component?Ze.children:J,_t=vt(ae);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);if(Ze&&Ze.outlet){const Pt=Ze.outlet.detach(),Ft=Ze.children.onOutletDeactivated();this.routeReuseStrategy.store(ae.value.snapshot,{componentRef:Pt,route:ae,contexts:Ft})}}deactivateRouteAndOutlet(ae,J){const Ze=J.getContext(ae.value.outlet),it=Ze&&ae.value.component?Ze.children:J,_t=vt(ae);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);Ze&&Ze.outlet&&(Ze.outlet.deactivate(),Ze.children.onOutletDeactivated(),Ze.attachRef=null,Ze.resolver=null,Ze.route=null)}activateChildRoutes(ae,J,Ze){const it=vt(J);ae.children.forEach(_t=>{this.activateRoutes(_t,it[_t.value.outlet],Ze),this.forwardEvent(new re(_t.value.snapshot))}),ae.children.length&&this.forwardEvent(new Q(ae.value.snapshot))}activateRoutes(ae,J,Ze){const it=ae.value,_t=J?J.value:null;if(Fi(it),it===_t)if(it.component){const Pt=Ze.getOrCreateContext(it.outlet);this.activateChildRoutes(ae,J,Pt.children)}else this.activateChildRoutes(ae,J,Ze);else if(it.component){const Pt=Ze.getOrCreateContext(it.outlet);if(this.routeReuseStrategy.shouldAttach(it.snapshot)){const Ft=this.routeReuseStrategy.retrieve(it.snapshot);this.routeReuseStrategy.store(it.snapshot,null),Pt.children.onOutletReAttached(Ft.contexts),Pt.attachRef=Ft.componentRef,Pt.route=Ft.route.value,Pt.outlet&&Pt.outlet.attach(Ft.componentRef,Ft.route.value),Fi(Ft.route.value),this.activateChildRoutes(ae,null,Pt.children)}else{const Ft=function Ui(Ee){for(let ae=Ee.parent;ae;ae=ae.parent){const J=ae.routeConfig;if(J&&J._loadedConfig)return J._loadedConfig;if(J&&J.component)return null}return null}(it.snapshot),$t=Ft?Ft.module.componentFactoryResolver:null;Pt.attachRef=null,Pt.route=it,Pt.resolver=$t,Pt.outlet&&Pt.outlet.activateWith(it,$t),this.activateChildRoutes(ae,null,Pt.children)}}else this.activateChildRoutes(ae,null,Ze)}}class Li{constructor(ae,J){this.routes=ae,this.module=J}}function hn(Ee){return"function"==typeof Ee}function Vn(Ee){return Ee instanceof Lt}const Zn=Symbol("INITIAL_VALUE");function En(){return(0,De.w)(Ee=>(0,g.aj)(Ee.map(ae=>ae.pipe((0,T.q)(1),(0,N.O)(Zn)))).pipe((0,j.R)((ae,J)=>{let Ze=!1;return J.reduce((it,_t,Pt)=>it!==Zn?it:(_t===Zn&&(Ze=!0),Ze||!1!==_t&&Pt!==J.length-1&&!Vn(_t)?it:_t),ae)},Zn),(0,P.h)(ae=>ae!==Zn),(0,he.U)(ae=>Vn(ae)?ae:!0===ae),(0,T.q)(1)))}class hr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(ae,J){const Ze=this.getOrCreateContext(ae);Ze.outlet=J,this.contexts.set(ae,Ze)}onChildOutletDestroyed(ae){const J=this.getContext(ae);J&&(J.outlet=null,J.attachRef=null)}onOutletDeactivated(){const ae=this.contexts;return this.contexts=new Map,ae}onOutletReAttached(ae){this.contexts=ae}getOrCreateContext(ae){let J=this.getContext(ae);return J||(J=new hr,this.contexts.set(ae,J)),J}getContext(ae){return this.contexts.get(ae)||null}}let Gn=(()=>{class Ee{constructor(J,Ze,it,_t,Pt){this.parentContexts=J,this.location=Ze,this.resolver=it,this.changeDetector=Pt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=_t||pe,J.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const J=this.parentContexts.getContext(this.name);J&&J.route&&(J.attachRef?this.attach(J.attachRef,J.route):this.activateWith(J.route,J.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const J=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(J.instance),J}attach(J,Ze){this.activated=J,this._activatedRoute=Ze,this.location.insert(J.hostView),this.attachEvents.emit(J.instance)}deactivate(){if(this.activated){const J=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(J)}}activateWith(J,Ze){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=J;const Pt=(Ze=Ze||this.resolver).resolveComponentFactory(J._futureSnapshot.routeConfig.component),Ft=this.parentContexts.getOrCreateContext(this.name).children,$t=new sr(J,Ft,this.location.injector);this.activated=this.location.createComponent(Pt,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.Y36(Mn),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ee})();class sr{constructor(ae,J,Ze){this.route=ae,this.childContexts=J,this.parent=Ze}get(ae,J){return ae===Dt?this.route:ae===Mn?this.childContexts:this.parent.get(ae,J)}}let ar=(()=>{class Ee{}return Ee.\u0275fac=function(J){return new(J||Ee)},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["ng-component"]],decls:1,vars:0,template:function(J,Ze){1&J&&e._UZ(0,"router-outlet")},directives:[Gn],encapsulation:2}),Ee})();function Un(Ee,ae=""){for(let J=0;Jyn(Ze)===ae);return J.push(...Ee.filter(Ze=>yn(Ze)!==ae)),J}const $n={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function or(Ee,ae,J){var Ze;if(""===ae.path)return"full"===ae.pathMatch&&(Ee.hasChildren()||J.length>0)?Object.assign({},$n):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const _t=(ae.matcher||V)(J,Ee,ae);if(!_t)return Object.assign({},$n);const Pt={};t(_t.posParams,($t,Ai)=>{Pt[Ai]=$t.path});const Ft=_t.consumed.length>0?Object.assign(Object.assign({},Pt),_t.consumed[_t.consumed.length-1].parameters):Pt;return{matched:!0,consumedSegments:_t.consumed,lastChild:_t.consumed.length,parameters:Ft,positionalParamSegments:null!==(Ze=_t.posParams)&&void 0!==Ze?Ze:{}}}function zn(Ee,ae,J,Ze,it="corrected"){if(J.length>0&&function B(Ee,ae,J){return J.some(Ze=>Pe(Ee,ae,Ze)&&yn(Ze)!==pe)}(Ee,J,Ze)){const Pt=new we(ae,function ft(Ee,ae,J,Ze){const it={};it[pe]=Ze,Ze._sourceSegment=Ee,Ze._segmentIndexShift=ae.length;for(const _t of J)if(""===_t.path&&yn(_t)!==pe){const Pt=new we([],{});Pt._sourceSegment=Ee,Pt._segmentIndexShift=ae.length,it[yn(_t)]=Pt}return it}(Ee,ae,Ze,new we(J,Ee.children)));return Pt._sourceSegment=Ee,Pt._segmentIndexShift=ae.length,{segmentGroup:Pt,slicedSegments:[]}}if(0===J.length&&function G(Ee,ae,J){return J.some(Ze=>Pe(Ee,ae,Ze))}(Ee,J,Ze)){const Pt=new we(Ee.segments,function lr(Ee,ae,J,Ze,it,_t){const Pt={};for(const Ft of Ze)if(Pe(Ee,J,Ft)&&!it[yn(Ft)]){const $t=new we([],{});$t._sourceSegment=Ee,$t._segmentIndexShift="legacy"===_t?Ee.segments.length:ae.length,Pt[yn(Ft)]=$t}return Object.assign(Object.assign({},it),Pt)}(Ee,ae,J,Ze,Ee.children,it));return Pt._sourceSegment=Ee,Pt._segmentIndexShift=ae.length,{segmentGroup:Pt,slicedSegments:J}}const _t=new we(Ee.segments,Ee.children);return _t._sourceSegment=Ee,_t._segmentIndexShift=ae.length,{segmentGroup:_t,slicedSegments:J}}function Pe(Ee,ae,J){return(!(Ee.hasChildren()||ae.length>0)||"full"!==J.pathMatch)&&""===J.path}function ht(Ee,ae,J,Ze){return!!(yn(Ee)===Ze||Ze!==pe&&Pe(ae,J,Ee))&&("**"===Ee.path||or(ae,Ee,J).matched)}function Ct(Ee,ae,J){return 0===ae.length&&!Ee.children[J]}class X{constructor(ae){this.segmentGroup=ae||null}}class He{constructor(ae){this.urlTree=ae}}function ue(Ee){return new A.y(ae=>ae.error(new X(Ee)))}function tt(Ee){return new A.y(ae=>ae.error(new He(Ee)))}function yt(Ee){return new A.y(ae=>ae.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ee}'`)))}class ii{constructor(ae,J,Ze,it,_t){this.configLoader=J,this.urlSerializer=Ze,this.urlTree=it,this.config=_t,this.allowRedirects=!0,this.ngModule=ae.get(e.h0i)}apply(){const ae=zn(this.urlTree.root,[],[],this.config).segmentGroup,J=new we(ae.segments,ae.children);return this.expandSegmentGroup(this.ngModule,this.config,J,pe).pipe((0,he.U)(_t=>this.createUrlTree(ui(_t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Y.K)(_t=>{if(_t instanceof He)return this.allowRedirects=!1,this.match(_t.urlTree);throw _t instanceof X?this.noMatchError(_t):_t}))}match(ae){return this.expandSegmentGroup(this.ngModule,this.config,ae.root,pe).pipe((0,he.U)(it=>this.createUrlTree(ui(it),ae.queryParams,ae.fragment))).pipe((0,Y.K)(it=>{throw it instanceof X?this.noMatchError(it):it}))}noMatchError(ae){return new Error(`Cannot match any routes. URL Segment: '${ae.segmentGroup}'`)}createUrlTree(ae,J,Ze){const it=ae.segments.length>0?new we([],{[pe]:ae}):ae;return new Lt(it,J,Ze)}expandSegmentGroup(ae,J,Ze,it){return 0===Ze.segments.length&&Ze.hasChildren()?this.expandChildren(ae,J,Ze).pipe((0,he.U)(_t=>new we([],_t))):this.expandSegment(ae,Ze,J,Ze.segments,it,!0)}expandChildren(ae,J,Ze){const it=[];for(const _t of Object.keys(Ze.children))"primary"===_t?it.unshift(_t):it.push(_t);return(0,b.D)(it).pipe((0,ee.b)(_t=>{const Pt=Ze.children[_t],Ft=Cn(J,_t);return this.expandSegmentGroup(ae,Ft,Pt,_t).pipe((0,he.U)($t=>({segment:$t,outlet:_t})))}),(0,j.R)((_t,Pt)=>(_t[Pt.outlet]=Pt.segment,_t),{}),function Me(Ee,ae){const J=arguments.length>=2;return Ze=>Ze.pipe(Ee?(0,P.h)((it,_t)=>Ee(it,_t,Ze)):q.y,(0,W.h)(1),J?(0,Ae.d)(ae):(0,ie.T)(()=>new E.K))}())}expandSegment(ae,J,Ze,it,_t,Pt){return(0,b.D)(Ze).pipe((0,ee.b)(Ft=>this.expandSegmentAgainstRoute(ae,J,Ze,Ft,it,_t,Pt).pipe((0,Y.K)(Ai=>{if(Ai instanceof X)return(0,_.of)(null);throw Ai}))),(0,de.P)(Ft=>!!Ft),(0,Y.K)((Ft,$t)=>{if(Ft instanceof E.K||"EmptyError"===Ft.name){if(Ct(J,it,_t))return(0,_.of)(new we([],{}));throw new X(J)}throw Ft}))}expandSegmentAgainstRoute(ae,J,Ze,it,_t,Pt,Ft){return ht(it,J,_t,Pt)?void 0===it.redirectTo?this.matchSegmentAgainstRoute(ae,J,it,_t,Pt):Ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ae,J,Ze,it,_t,Pt):ue(J):ue(J)}expandSegmentAgainstRouteUsingRedirect(ae,J,Ze,it,_t,Pt){return"**"===it.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ae,Ze,it,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(ae,J,Ze,it,_t,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ae,J,Ze,it){const _t=this.applyRedirectCommands([],Ze.redirectTo,{});return Ze.redirectTo.startsWith("/")?tt(_t):this.lineralizeSegments(Ze,_t).pipe((0,ce.zg)(Pt=>{const Ft=new we(Pt,{});return this.expandSegment(ae,Ft,J,Pt,it,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ae,J,Ze,it,_t,Pt){const{matched:Ft,consumedSegments:$t,lastChild:Ai,positionalParamSegments:Yi}=or(J,it,_t);if(!Ft)return ue(J);const xi=this.applyRedirectCommands($t,it.redirectTo,Yi);return it.redirectTo.startsWith("/")?tt(xi):this.lineralizeSegments(it,xi).pipe((0,ce.zg)(nn=>this.expandSegment(ae,J,Ze,nn.concat(_t.slice(Ai)),Pt,!1)))}matchSegmentAgainstRoute(ae,J,Ze,it,_t){if("**"===Ze.path)return Ze.loadChildren?(Ze._loadedConfig?(0,_.of)(Ze._loadedConfig):this.configLoader.load(ae.injector,Ze)).pipe((0,he.U)(nn=>(Ze._loadedConfig=nn,new we(it,{})))):(0,_.of)(new we(it,{}));const{matched:Pt,consumedSegments:Ft,lastChild:$t}=or(J,Ze,it);if(!Pt)return ue(J);const Ai=it.slice($t);return this.getChildConfig(ae,Ze,it).pipe((0,ce.zg)(xi=>{const nn=xi.module,on=xi.routes,{segmentGroup:os,slicedSegments:Cr}=zn(J,Ft,Ai,on),vr=new we(os.segments,os.children);if(0===Cr.length&&vr.hasChildren())return this.expandChildren(nn,on,vr).pipe((0,he.U)(Xr=>new we(Ft,Xr)));if(0===on.length&&0===Cr.length)return(0,_.of)(new we(Ft,{}));const Mr=yn(Ze)===_t;return this.expandSegment(nn,vr,on,Cr,Mr?pe:_t,!0).pipe((0,he.U)(Sr=>new we(Ft.concat(Sr.segments),Sr.children)))}))}getChildConfig(ae,J,Ze){return J.children?(0,_.of)(new Li(J.children,ae)):J.loadChildren?void 0!==J._loadedConfig?(0,_.of)(J._loadedConfig):this.runCanLoadGuards(ae.injector,J,Ze).pipe((0,ce.zg)(it=>it?this.configLoader.load(ae.injector,J).pipe((0,he.U)(_t=>(J._loadedConfig=_t,_t))):function Gt(Ee){return new A.y(ae=>ae.error(_e(`Cannot load children because the guard of the route "path: '${Ee.path}'" returned false`)))}(J))):(0,_.of)(new Li([],ae))}runCanLoadGuards(ae,J,Ze){const it=J.canLoad;if(!it||0===it.length)return(0,_.of)(!0);const _t=it.map(Pt=>{const Ft=ae.get(Pt);let $t;if(function ur(Ee){return Ee&&hn(Ee.canLoad)}(Ft))$t=Ft.canLoad(J,Ze);else{if(!hn(Ft))throw new Error("Invalid CanLoad guard");$t=Ft(J,Ze)}return n($t)});return(0,_.of)(_t).pipe(En(),(0,Fe.b)(Pt=>{if(!Vn(Pt))return;const Ft=_e(`Redirecting to "${this.urlSerializer.serialize(Pt)}"`);throw Ft.url=Pt,Ft}),(0,he.U)(Pt=>!0===Pt))}lineralizeSegments(ae,J){let Ze=[],it=J.root;for(;;){if(Ze=Ze.concat(it.segments),0===it.numberOfChildren)return(0,_.of)(Ze);if(it.numberOfChildren>1||!it.children[pe])return yt(ae.redirectTo);it=it.children[pe]}}applyRedirectCommands(ae,J,Ze){return this.applyRedirectCreatreUrlTree(J,this.urlSerializer.parse(J),ae,Ze)}applyRedirectCreatreUrlTree(ae,J,Ze,it){const _t=this.createSegmentGroup(ae,J.root,Ze,it);return new Lt(_t,this.createQueryParams(J.queryParams,this.urlTree.queryParams),J.fragment)}createQueryParams(ae,J){const Ze={};return t(ae,(it,_t)=>{if("string"==typeof it&&it.startsWith(":")){const Ft=it.substring(1);Ze[_t]=J[Ft]}else Ze[_t]=it}),Ze}createSegmentGroup(ae,J,Ze,it){const _t=this.createSegments(ae,J.segments,Ze,it);let Pt={};return t(J.children,(Ft,$t)=>{Pt[$t]=this.createSegmentGroup(ae,Ft,Ze,it)}),new we(_t,Pt)}createSegments(ae,J,Ze,it){return J.map(_t=>_t.path.startsWith(":")?this.findPosParam(ae,_t,it):this.findOrReturn(_t,Ze))}findPosParam(ae,J,Ze){const it=Ze[J.path.substring(1)];if(!it)throw new Error(`Cannot redirect to '${ae}'. Cannot find '${J.path}'.`);return it}findOrReturn(ae,J){let Ze=0;for(const it of J){if(it.path===ae.path)return J.splice(Ze),it;Ze++}return ae}}function ui(Ee){const ae={};for(const Ze of Object.keys(Ee.children)){const _t=ui(Ee.children[Ze]);(_t.segments.length>0||_t.hasChildren())&&(ae[Ze]=_t)}return function di(Ee){if(1===Ee.numberOfChildren&&Ee.children[pe]){const ae=Ee.children[pe];return new we(Ee.segments.concat(ae.segments),ae.children)}return Ee}(new we(Ee.segments,ae))}class Ti{constructor(ae){this.path=ae,this.route=this.path[this.path.length-1]}}class Hi{constructor(ae,J){this.component=ae,this.route=J}}function ke(Ee,ae,J){const Ze=Ee._root;return Zt(Ze,ae?ae._root:null,J,[Ze.value])}function xe(Ee,ae,J){const Ze=function ut(Ee){if(!Ee)return null;for(let ae=Ee.parent;ae;ae=ae.parent){const J=ae.routeConfig;if(J&&J._loadedConfig)return J._loadedConfig}return null}(ae);return(Ze?Ze.module.injector:J).get(Ee)}function Zt(Ee,ae,J,Ze,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=vt(ae);return Ee.children.forEach(Pt=>{(function hi(Ee,ae,J,Ze,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=Ee.value,Pt=ae?ae.value:null,Ft=J?J.getContext(Ee.value.outlet):null;if(Pt&&_t.routeConfig===Pt.routeConfig){const $t=function ji(Ee,ae,J){if("function"==typeof J)return J(Ee,ae);switch(J){case"pathParamsChange":return!L(Ee.url,ae.url);case"pathParamsOrQueryParamsChange":return!L(Ee.url,ae.url)||!a(Ee.queryParams,ae.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ji(Ee,ae)||!a(Ee.queryParams,ae.queryParams);default:return!Ji(Ee,ae)}}(Pt,_t,_t.routeConfig.runGuardsAndResolvers);$t?it.canActivateChecks.push(new Ti(Ze)):(_t.data=Pt.data,_t._resolvedData=Pt._resolvedData),Zt(Ee,ae,_t.component?Ft?Ft.children:null:J,Ze,it),$t&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&it.canDeactivateChecks.push(new Hi(Ft.outlet.component,Pt))}else Pt&&tn(ae,Ft,it),it.canActivateChecks.push(new Ti(Ze)),Zt(Ee,null,_t.component?Ft?Ft.children:null:J,Ze,it)})(Pt,_t[Pt.value.outlet],J,Ze.concat([Pt.value]),it),delete _t[Pt.value.outlet]}),t(_t,(Pt,Ft)=>tn(Pt,J.getContext(Ft),it)),it}function tn(Ee,ae,J){const Ze=vt(Ee),it=Ee.value;t(Ze,(_t,Pt)=>{tn(_t,it.component?ae?ae.children.getContext(Pt):null:ae,J)}),J.canDeactivateChecks.push(new Hi(it.component&&ae&&ae.outlet&&ae.outlet.isActivated?ae.outlet.component:null,it))}class Vi{}function pn(Ee){return new A.y(ae=>ae.error(Ee))}class Pn{constructor(ae,J,Ze,it,_t,Pt){this.rootComponentType=ae,this.config=J,this.urlTree=Ze,this.url=it,this.paramsInheritanceStrategy=_t,this.relativeLinkResolution=Pt}recognize(){const ae=zn(this.urlTree.root,[],[],this.config.filter(Pt=>void 0===Pt.redirectTo),this.relativeLinkResolution).segmentGroup,J=this.processSegmentGroup(this.config,ae,pe);if(null===J)return null;const Ze=new Di([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},pe,this.rootComponentType,null,this.urlTree.root,-1,{}),it=new $e(Ze,J),_t=new wi(this.url,it);return this.inheritParamsAndData(_t._root),_t}inheritParamsAndData(ae){const J=ae.value,Ze=ri(J,this.paramsInheritanceStrategy);J.params=Object.freeze(Ze.params),J.data=Object.freeze(Ze.data),ae.children.forEach(it=>this.inheritParamsAndData(it))}processSegmentGroup(ae,J,Ze){return 0===J.segments.length&&J.hasChildren()?this.processChildren(ae,J):this.processSegment(ae,J,J.segments,Ze)}processChildren(ae,J){const Ze=[];for(const _t of Object.keys(J.children)){const Pt=J.children[_t],Ft=Cn(ae,_t),$t=this.processSegmentGroup(Ft,Pt,_t);if(null===$t)return null;Ze.push(...$t)}const it=wr(Ze);return function Yn(Ee){Ee.sort((ae,J)=>ae.value.outlet===pe?-1:J.value.outlet===pe?1:ae.value.outlet.localeCompare(J.value.outlet))}(it),it}processSegment(ae,J,Ze,it){for(const _t of ae){const Pt=this.processSegmentAgainstRoute(_t,J,Ze,it);if(null!==Pt)return Pt}return Ct(J,Ze,it)?[]:null}processSegmentAgainstRoute(ae,J,Ze,it){if(ae.redirectTo||!ht(ae,J,Ze,it))return null;let _t,Pt=[],Ft=[];if("**"===ae.path){const on=Ze.length>0?s(Ze).parameters:{};_t=new Di(Ze,on,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(ae),yn(ae),ae.component,ae,mn(J),Sn(J)+Ze.length,er(ae))}else{const on=or(J,ae,Ze);if(!on.matched)return null;Pt=on.consumedSegments,Ft=Ze.slice(on.lastChild),_t=new Di(Pt,on.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(ae),yn(ae),ae.component,ae,mn(J),Sn(J)+Pt.length,er(ae))}const $t=function fn(Ee){return Ee.children?Ee.children:Ee.loadChildren?Ee._loadedConfig.routes:[]}(ae),{segmentGroup:Ai,slicedSegments:Yi}=zn(J,Pt,Ft,$t.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===Yi.length&&Ai.hasChildren()){const on=this.processChildren($t,Ai);return null===on?null:[new $e(_t,on)]}if(0===$t.length&&0===Yi.length)return[new $e(_t,[])];const xi=yn(ae)===it,nn=this.processSegment($t,Ai,Yi,xi?pe:it);return null===nn?null:[new $e(_t,nn)]}}function $r(Ee){const ae=Ee.value.routeConfig;return ae&&""===ae.path&&void 0===ae.redirectTo}function wr(Ee){const ae=[],J=new Set;for(const Ze of Ee){if(!$r(Ze)){ae.push(Ze);continue}const it=ae.find(_t=>Ze.value.routeConfig===_t.value.routeConfig);void 0!==it?(it.children.push(...Ze.children),J.add(it)):ae.push(Ze)}for(const Ze of J){const it=wr(Ze.children);ae.push(new $e(Ze.value,it))}return ae.filter(Ze=>!J.has(Ze))}function mn(Ee){let ae=Ee;for(;ae._sourceSegment;)ae=ae._sourceSegment;return ae}function Sn(Ee){let ae=Ee,J=ae._segmentIndexShift?ae._segmentIndexShift:0;for(;ae._sourceSegment;)ae=ae._sourceSegment,J+=ae._segmentIndexShift?ae._segmentIndexShift:0;return J-1}function Xn(Ee){return Ee.data||{}}function er(Ee){return Ee.resolve||{}}function _s(Ee){return[...Object.keys(Ee),...Object.getOwnPropertySymbols(Ee)]}function me(Ee){return(0,De.w)(ae=>{const J=Ee(ae);return J?(0,b.D)(J).pipe((0,he.U)(()=>ae)):(0,_.of)(ae)})}class at{}class pt extends class Be{shouldDetach(ae){return!1}store(ae,J){}shouldAttach(ae){return!1}retrieve(ae){return null}shouldReuseRoute(ae,J){return ae.routeConfig===J.routeConfig}}{}const Vt=new e.OlP("ROUTES");class qt{constructor(ae,J,Ze,it){this.injector=ae,this.compiler=J,this.onLoadStartListener=Ze,this.onLoadEndListener=it}load(ae,J){if(J._loader$)return J._loader$;this.onLoadStartListener&&this.onLoadStartListener(J);const it=this.loadModuleFactory(J.loadChildren).pipe((0,he.U)(_t=>{this.onLoadEndListener&&this.onLoadEndListener(J);const Pt=_t.create(ae);return new Li(l(Pt.injector.get(Vt,void 0,e.XFs.Self|e.XFs.Optional)).map(In),Pt)}),(0,Y.K)(_t=>{throw J._loader$=void 0,_t}));return J._loader$=new m.c(it,()=>new O.xQ).pipe((0,Ue.x)()),J._loader$}loadModuleFactory(ae){return n(ae()).pipe((0,ce.zg)(J=>J instanceof e.YKP?(0,_.of)(J):(0,b.D)(this.compiler.compileModuleAsync(J))))}}class pi{shouldProcessUrl(ae){return!0}extract(ae){return ae}merge(ae,J){return ae}}function oi(Ee){throw Ee}function Si(Ee,ae,J){return ae.parse("/")}function Gi(Ee,ae){return(0,_.of)(null)}const An={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zi=(()=>{class Ee{constructor(J,Ze,it,_t,Pt,Ft,$t){this.rootComponentType=J,this.urlSerializer=Ze,this.rootContexts=it,this.location=_t,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new O.xQ,this.errorHandler=oi,this.malformedUriErrorHandler=Si,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gi,afterPreactivation:Gi},this.urlHandlingStrategy=new pi,this.routeReuseStrategy=new pt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Pt.get(e.h0i),this.console=Pt.get(e.c2e);const xi=Pt.get(e.R0b);this.isNgZoneEnabled=xi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function o(){return new Lt(new we([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qt(Pt,Ft,nn=>this.triggerEvent(new Je(nn)),nn=>this.triggerEvent(new nt(nn))),this.routerState=Ye(this.currentUrlTree,this.rootComponentType),this.transitions=new w.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var J;return null===(J=this.location.getState())||void 0===J?void 0:J.\u0275routerPageId}setupNavigations(J){const Ze=this.events;return J.pipe((0,P.h)(it=>0!==it.id),(0,he.U)(it=>Object.assign(Object.assign({},it),{extractedUrl:this.urlHandlingStrategy.extract(it.rawUrl)})),(0,De.w)(it=>{let _t=!1,Pt=!1;return(0,_.of)(it).pipe((0,Fe.b)(Ft=>{this.currentNavigation={id:Ft.id,initialUrl:Ft.currentRawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,De.w)(Ft=>{const $t=this.browserUrlTree.toString(),Ai=!this.navigated||Ft.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ai)&&this.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return Pi(Ft.source)&&(this.browserUrlTree=Ft.extractedUrl),(0,_.of)(Ft).pipe((0,De.w)(xi=>{const nn=this.transitions.getValue();return Ze.next(new Oe(xi.id,this.serializeUrl(xi.extractedUrl),xi.source,xi.restoredState)),nn!==this.transitions.getValue()?I.E:Promise.resolve(xi)}),function _i(Ee,ae,J,Ze){return(0,De.w)(it=>function Wt(Ee,ae,J,Ze,it){return new ii(Ee,ae,J,Ze,it).apply()}(Ee,ae,J,it.extractedUrl,Ze).pipe((0,he.U)(_t=>Object.assign(Object.assign({},it),{urlAfterRedirects:_t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Fe.b)(xi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xi.urlAfterRedirects})}),function fr(Ee,ae,J,Ze,it){return(0,ce.zg)(_t=>function vn(Ee,ae,J,Ze,it="emptyOnly",_t="legacy"){try{const Pt=new Pn(Ee,ae,J,Ze,it,_t).recognize();return null===Pt?pn(new Vi):(0,_.of)(Pt)}catch(Pt){return pn(Pt)}}(Ee,ae,_t.urlAfterRedirects,J(_t.urlAfterRedirects),Ze,it).pipe((0,he.U)(Pt=>Object.assign(Object.assign({},_t),{targetSnapshot:Pt}))))}(this.rootComponentType,this.config,xi=>this.serializeUrl(xi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Fe.b)(xi=>{if("eager"===this.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);this.setBrowserUrl(on,xi)}this.browserUrlTree=xi.urlAfterRedirects}const nn=new Te(xi.id,this.serializeUrl(xi.extractedUrl),this.serializeUrl(xi.urlAfterRedirects),xi.targetSnapshot);Ze.next(nn)}));if(Ai&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:nn,extractedUrl:on,source:os,restoredState:Cr,extras:vr}=Ft,Mr=new Oe(nn,this.serializeUrl(on),os,Cr);Ze.next(Mr);const ls=Ye(on,this.rootComponentType).snapshot;return(0,_.of)(Object.assign(Object.assign({},Ft),{targetSnapshot:ls,urlAfterRedirects:on,extras:Object.assign(Object.assign({},vr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Ft.rawUrl,Ft.resolve(null),I.E}),me(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.beforePreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,Fe.b)(Ft=>{const $t=new Ie(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot);this.triggerEvent($t)}),(0,he.U)(Ft=>Object.assign(Object.assign({},Ft),{guards:ke(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)})),function Kn(Ee,ae){return(0,ce.zg)(J=>{const{targetSnapshot:Ze,currentSnapshot:it,guards:{canActivateChecks:_t,canDeactivateChecks:Pt}}=J;return 0===Pt.length&&0===_t.length?(0,_.of)(Object.assign(Object.assign({},J),{guardsResult:!0})):function Wn(Ee,ae,J,Ze){return(0,b.D)(Ee).pipe((0,ce.zg)(it=>function gi(Ee,ae,J,Ze,it){const _t=ae&&ae.routeConfig?ae.routeConfig.canDeactivate:null;if(!_t||0===_t.length)return(0,_.of)(!0);const Pt=_t.map(Ft=>{const $t=xe(Ft,ae,it);let Ai;if(function rr(Ee){return Ee&&hn(Ee.canDeactivate)}($t))Ai=n($t.canDeactivate(Ee,ae,J,Ze));else{if(!hn($t))throw new Error("Invalid CanDeactivate guard");Ai=n($t(Ee,ae,J,Ze))}return Ai.pipe((0,de.P)())});return(0,_.of)(Pt).pipe(En())}(it.component,it.route,J,ae,Ze)),(0,de.P)(it=>!0!==it,!0))}(Pt,Ze,it,Ee).pipe((0,ce.zg)(Ft=>Ft&&function dr(Ee){return"boolean"==typeof Ee}(Ft)?function cr(Ee,ae,J,Ze){return(0,b.D)(ae).pipe((0,ee.b)(it=>(0,C.z)(function Xt(Ee,ae){return null!==Ee&&ae&&ae(new je(Ee)),(0,_.of)(!0)}(it.route.parent,Ze),function Qr(Ee,ae){return null!==Ee&&ae&&ae(new Ce(Ee)),(0,_.of)(!0)}(it.route,Ze),function Ei(Ee,ae,J){const Ze=ae[ae.length-1],_t=ae.slice(0,ae.length-1).reverse().map(Pt=>function Re(Ee){const ae=Ee.routeConfig?Ee.routeConfig.canActivateChild:null;return ae&&0!==ae.length?{node:Ee,guards:ae}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,R.P)(()=>{const Ft=Pt.guards.map($t=>{const Ai=xe($t,Pt.node,J);let Yi;if(function Lr(Ee){return Ee&&hn(Ee.canActivateChild)}(Ai))Yi=n(Ai.canActivateChild(Ze,Ee));else{if(!hn(Ai))throw new Error("Invalid CanActivateChild guard");Yi=n(Ai(Ze,Ee))}return Yi.pipe((0,de.P)())});return(0,_.of)(Ft).pipe(En())}));return(0,_.of)(_t).pipe(En())}(Ee,it.path,J),function si(Ee,ae,J){const Ze=ae.routeConfig?ae.routeConfig.canActivate:null;if(!Ze||0===Ze.length)return(0,_.of)(!0);const it=Ze.map(_t=>(0,R.P)(()=>{const Pt=xe(_t,ae,J);let Ft;if(function Qn(Ee){return Ee&&hn(Ee.canActivate)}(Pt))Ft=n(Pt.canActivate(ae,Ee));else{if(!hn(Pt))throw new Error("Invalid CanActivate guard");Ft=n(Pt(ae,Ee))}return Ft.pipe((0,de.P)())}));return(0,_.of)(it).pipe(En())}(Ee,it.route,J))),(0,de.P)(it=>!0!==it,!0))}(Ze,_t,Ee,ae):(0,_.of)(Ft)),(0,he.U)(Ft=>Object.assign(Object.assign({},J),{guardsResult:Ft})))})}(this.ngModule.injector,Ft=>this.triggerEvent(Ft)),(0,Fe.b)(Ft=>{if(Vn(Ft.guardsResult)){const Ai=_e(`Redirecting to "${this.serializeUrl(Ft.guardsResult)}"`);throw Ai.url=Ft.guardsResult,Ai}const $t=new fe(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.triggerEvent($t)}),(0,P.h)(Ft=>!!Ft.guardsResult||(this.restoreHistory(Ft),this.cancelNavigationTransition(Ft,""),!1)),me(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,_.of)(Ft).pipe((0,Fe.b)($t=>{const Ai=new Se($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}),(0,De.w)($t=>{let Ai=!1;return(0,_.of)($t).pipe(function aa(Ee,ae){return(0,ce.zg)(J=>{const{targetSnapshot:Ze,guards:{canActivateChecks:it}}=J;if(!it.length)return(0,_.of)(J);let _t=0;return(0,b.D)(it).pipe((0,ee.b)(Pt=>function gs(Ee,ae,J,Ze){return function oa(Ee,ae,J,Ze){const it=_s(Ee);if(0===it.length)return(0,_.of)({});const _t={};return(0,b.D)(it).pipe((0,ce.zg)(Pt=>function As(Ee,ae,J,Ze){const it=xe(Ee,ae,Ze);return n(it.resolve?it.resolve(ae,J):it(ae,J))}(Ee[Pt],ae,J,Ze).pipe((0,Fe.b)(Ft=>{_t[Pt]=Ft}))),(0,W.h)(1),(0,ce.zg)(()=>_s(_t).length===it.length?(0,_.of)(_t):I.E))}(Ee._resolve,Ee,ae,Ze).pipe((0,he.U)(_t=>(Ee._resolvedData=_t,Ee.data=Object.assign(Object.assign({},Ee.data),ri(Ee,J).resolve),null)))}(Pt.route,Ze,Ee,ae)),(0,Fe.b)(()=>_t++),(0,W.h)(1),(0,ce.zg)(Pt=>_t===it.length?(0,_.of)(J):I.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Fe.b)({next:()=>Ai=!0,complete:()=>{Ai||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,Fe.b)($t=>{const Ai=new Ke($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}))}),me(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.afterPreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,he.U)(Ft=>{const $t=function _n(Ee,ae,J){const Ze=ki(Ee,ae._root,J?J._root:void 0);return new F(Ze,ae)}(this.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return Object.assign(Object.assign({},Ft),{targetRouterState:$t})}),(0,Fe.b)(Ft=>{this.currentUrlTree=Ft.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl),this.routerState=Ft.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ft.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ft),this.browserUrlTree=Ft.urlAfterRedirects)}),((Ee,ae,J)=>(0,he.U)(Ze=>(new vi(ae,Ze.targetRouterState,Ze.currentRouterState,J).activate(Ee),Ze)))(this.rootContexts,this.routeReuseStrategy,Ft=>this.triggerEvent(Ft)),(0,Fe.b)({next(){_t=!0},complete(){_t=!0}}),(0,Xe.x)(()=>{var Ft;_t||Pt||this.cancelNavigationTransition(it,`Navigation ID ${it.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id)===it.id&&(this.currentNavigation=null)}),(0,Y.K)(Ft=>{if(Pt=!0,function $(Ee){return Ee&&Ee[oe]}(Ft)){const $t=Vn(Ft.url);$t||(this.navigated=!0,this.restoreHistory(it,!0));const Ai=new D(it.id,this.serializeUrl(it.extractedUrl),Ft.message);Ze.next(Ai),$t?setTimeout(()=>{const Yi=this.urlHandlingStrategy.merge(Ft.url,this.rawUrlTree),xi={skipLocationChange:it.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pi(it.source)};this.scheduleNavigation(Yi,"imperative",null,xi,{resolve:it.resolve,reject:it.reject,promise:it.promise})},0):it.resolve(!1)}else{this.restoreHistory(it,!0);const $t=new ge(it.id,this.serializeUrl(it.extractedUrl),Ft);Ze.next($t);try{it.resolve(this.errorHandler(Ft))}catch(Ai){it.reject(Ai)}}return I.E}))}))}resetRootComponentType(J){this.rootComponentType=J,this.routerState.root.component=this.rootComponentType}setTransition(J){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),J))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(J=>{const Ze="popstate"===J.type?"popstate":"hashchange";"popstate"===Ze&&setTimeout(()=>{var it;const _t={replaceUrl:!0},Pt=(null===(it=J.state)||void 0===it?void 0:it.navigationId)?J.state:null;if(Pt){const $t=Object.assign({},Pt);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(_t.state=$t)}const Ft=this.parseUrl(J.url);this.scheduleNavigation(Ft,Ze,Pt,_t)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(J){this.events.next(J)}resetConfig(J){Un(J),this.config=J.map(In),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(J,Ze={}){const{relativeTo:it,queryParams:_t,fragment:Pt,queryParamsHandling:Ft,preserveFragment:$t}=Ze,Ai=it||this.routerState.root,Yi=$t?this.currentUrlTree.fragment:Pt;let xi=null;switch(Ft){case"merge":xi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),_t);break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=_t||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),function Xi(Ee,ae,J,Ze,it){if(0===J.length)return dn(ae.root,ae.root,ae,Ze,it);const _t=function Oi(Ee){if("string"==typeof Ee[0]&&1===Ee.length&&"/"===Ee[0])return new xn(!0,0,Ee);let ae=0,J=!1;const Ze=Ee.reduce((it,_t,Pt)=>{if("object"==typeof _t&&null!=_t){if(_t.outlets){const Ft={};return t(_t.outlets,($t,Ai)=>{Ft[Ai]="string"==typeof $t?$t.split("/"):$t}),[...it,{outlets:Ft}]}if(_t.segmentPath)return[...it,_t.segmentPath]}return"string"!=typeof _t?[...it,_t]:0===Pt?(_t.split("/").forEach((Ft,$t)=>{0==$t&&"."===Ft||(0==$t&&""===Ft?J=!0:".."===Ft?ae++:""!=Ft&&it.push(Ft))}),it):[...it,_t]},[]);return new xn(J,ae,Ze)}(J);if(_t.toRoot())return dn(ae.root,new we([],{}),ae,Ze,it);const Pt=function kn(Ee,ae,J){if(Ee.isAbsolute)return new Nn(ae.root,!0,0);if(-1===J.snapshot._lastPathIndex){const _t=J.snapshot._urlSegment;return new Nn(_t,_t===ae.root,0)}const Ze=en(Ee.commands[0])?0:1;return function Mt(Ee,ae,J){let Ze=Ee,it=ae,_t=J;for(;_t>it;){if(_t-=it,Ze=Ze.parent,!Ze)throw new Error("Invalid number of '../'");it=Ze.segments.length}return new Nn(Ze,!1,it-_t)}(J.snapshot._urlSegment,J.snapshot._lastPathIndex+Ze,Ee.numberOfDoubleDots)}(_t,ae,Ee),Ft=Pt.processChildren?Nt(Pt.segmentGroup,Pt.index,_t.commands):rt(Pt.segmentGroup,Pt.index,_t.commands);return dn(Pt.segmentGroup,Ft,ae,Ze,it)}(Ai,this.currentUrlTree,J,xi,null!=Yi?Yi:null)}navigateByUrl(J,Ze={skipLocationChange:!1}){const it=Vn(J)?J:this.parseUrl(J),_t=this.urlHandlingStrategy.merge(it,this.rawUrlTree);return this.scheduleNavigation(_t,"imperative",null,Ze)}navigate(J,Ze={skipLocationChange:!1}){return function Bi(Ee){for(let ae=0;ae{const _t=J[it];return null!=_t&&(Ze[it]=_t),Ze},{})}processNavigations(){this.navigations.subscribe(J=>{this.navigated=!0,this.lastSuccessfulId=J.id,this.currentPageId=J.targetPageId,this.events.next(new z(J.id,this.serializeUrl(J.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,J.resolve(!0)},J=>{this.console.warn(`Unhandled Navigation Error: ${J}`)})}scheduleNavigation(J,Ze,it,_t,Pt){var Ft,$t,Ai;if(this.disposed)return Promise.resolve(!1);const Yi=this.transitions.value,xi=Pi(Ze)&&Yi&&!Pi(Yi.source),nn=Yi.rawUrl.toString()===J.toString(),on=Yi.id===(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id);if(xi&&nn&&on)return Promise.resolve(!0);let Cr,vr,Mr;Pt?(Cr=Pt.resolve,vr=Pt.reject,Mr=Pt.promise):Mr=new Promise((Xr,Es)=>{Cr=Xr,vr=Es});const ls=++this.navigationId;let Sr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(it=this.location.getState()),Sr=it&&it.\u0275routerPageId?it.\u0275routerPageId:_t.replaceUrl||_t.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(Ai=this.browserPageId)&&void 0!==Ai?Ai:0)+1):Sr=0,this.setTransition({id:ls,targetPageId:Sr,source:Ze,restoredState:it,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:J,extras:_t,resolve:Cr,reject:vr,promise:Mr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mr.catch(Xr=>Promise.reject(Xr))}setBrowserUrl(J,Ze){const it=this.urlSerializer.serialize(J),_t=Object.assign(Object.assign({},Ze.extras.state),this.generateNgRouterState(Ze.id,Ze.targetPageId));this.location.isCurrentPathEqualTo(it)||Ze.extras.replaceUrl?this.location.replaceState(it,"",_t):this.location.go(it,"",_t)}restoreHistory(J,Ze=!1){var it,_t;if("computed"===this.canceledNavigationResolution){const Pt=this.currentPageId-J.targetPageId;"popstate"!==J.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(it=this.currentNavigation)||void 0===it?void 0:it.finalUrl)||0===Pt?this.currentUrlTree===(null===(_t=this.currentNavigation)||void 0===_t?void 0:_t.finalUrl)&&0===Pt&&(this.resetState(J),this.browserUrlTree=J.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Pt)}else"replace"===this.canceledNavigationResolution&&(Ze&&this.resetState(J),this.resetUrlToCurrentUrlTree())}resetState(J){this.routerState=J.currentRouterState,this.currentUrlTree=J.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,J.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(J,Ze){const it=new D(J.id,this.serializeUrl(J.extractedUrl),Ze);this.triggerEvent(it),J.resolve(!1)}generateNgRouterState(J,Ze){return"computed"===this.canceledNavigationResolution?{navigationId:J,\u0275routerPageId:Ze}:{navigationId:J}}}return Ee.\u0275fac=function(J){e.$Z()},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();function Pi(Ee){return"imperative"!==Ee}let Hn=(()=>{class Ee{constructor(J,Ze,it,_t,Pt){this.router=J,this.route=Ze,this.tabIndexAttribute=it,this.renderer=_t,this.el=Pt,this.commands=null,this.onChanges=new O.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(J){if(null!=this.tabIndexAttribute)return;const Ze=this.renderer,it=this.el.nativeElement;null!==J?Ze.setAttribute(it,"tabindex",J):Ze.removeAttribute(it,"tabindex")}ngOnChanges(J){this.onChanges.next(this)}set routerLink(J){null!=J?(this.commands=Array.isArray(J)?J:[J],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const J={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,J),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zi(this.preserveFragment)})}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.Y36(Zi),e.Y36(Dt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(J,Ze){1&J&&e.NdJ("click",function(){return Ze.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ee})(),ln=(()=>{class Ee{constructor(J,Ze,it){this.router=J,this.route=Ze,this.locationStrategy=it,this.commands=null,this.href=null,this.onChanges=new O.xQ,this.subscription=J.events.subscribe(_t=>{_t instanceof z&&this.updateTargetUrlAndHref()})}set routerLink(J){this.commands=null!=J?Array.isArray(J)?J:[J]:null}ngOnChanges(J){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(J,Ze,it,_t,Pt){if(0!==J||Ze||it||_t||Pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ft={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ft),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zi(this.preserveFragment)})}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.Y36(Zi),e.Y36(Dt),e.Y36(Ve.S$))},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(J,Ze){1&J&&e.NdJ("click",function(_t){return Ze.onClick(_t.button,_t.ctrlKey,_t.shiftKey,_t.altKey,_t.metaKey)}),2&J&&e.uIk("target",Ze.target)("href",Ze.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ee})();function zi(Ee){return""===Ee||!!Ee}class Wa{}class Kr{preload(ae,J){return(0,_.of)(null)}}let is=(()=>{class Ee{constructor(J,Ze,it,_t){this.router=J,this.injector=it,this.preloadingStrategy=_t,this.loader=new qt(it,Ze,$t=>J.triggerEvent(new Je($t)),$t=>J.triggerEvent(new nt($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,P.h)(J=>J instanceof z),(0,ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){const J=this.injector.get(e.h0i);return this.processRoutes(J,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(J,Ze){const it=[];for(const _t of Ze)if(_t.loadChildren&&!_t.canLoad&&_t._loadedConfig){const Pt=_t._loadedConfig;it.push(this.processRoutes(Pt.module,Pt.routes))}else _t.loadChildren&&!_t.canLoad?it.push(this.preloadConfig(J,_t)):_t.children&&it.push(this.processRoutes(J,_t.children));return(0,b.D)(it).pipe((0,te.J)(),(0,he.U)(_t=>{}))}preloadConfig(J,Ze){return this.preloadingStrategy.preload(Ze,()=>(Ze._loadedConfig?(0,_.of)(Ze._loadedConfig):this.loader.load(J.injector,Ze)).pipe((0,ce.zg)(_t=>(Ze._loadedConfig=_t,this.processRoutes(_t.module,_t.routes)))))}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.LFG(Zi),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Wa))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})(),ns=(()=>{class Ee{constructor(J,Ze,it={}){this.router=J,this.viewportScroller=Ze,this.options=it,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},it.scrollPositionRestoration=it.scrollPositionRestoration||"disabled",it.anchorScrolling=it.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(J=>{J instanceof Oe?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=J.navigationTrigger,this.restoredId=J.restoredState?J.restoredState.navigationId:0):J instanceof z&&(this.lastId=J.id,this.scheduleScrollEvent(J,this.router.parseUrl(J.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(J=>{J instanceof k&&(J.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(J.position):J.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(J.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(J,Ze){this.router.triggerEvent(new k(J,"popstate"===this.lastSource?this.store[this.restoredId]:null,Ze))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ee.\u0275fac=function(J){e.$Z()},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const Wr=new e.OlP("ROUTER_CONFIGURATION"),xr=new e.OlP("ROUTER_FORROOT_GUARD"),rs=[Ve.Ye,{provide:le,useClass:Le},{provide:Zi,useFactory:function dd(Ee,ae,J,Ze,it,_t,Pt={},Ft,$t){const Ai=new Zi(null,Ee,ae,J,Ze,it,l(_t));return Ft&&(Ai.urlHandlingStrategy=Ft),$t&&(Ai.routeReuseStrategy=$t),function ud(Ee,ae){Ee.errorHandler&&(ae.errorHandler=Ee.errorHandler),Ee.malformedUriErrorHandler&&(ae.malformedUriErrorHandler=Ee.malformedUriErrorHandler),Ee.onSameUrlNavigation&&(ae.onSameUrlNavigation=Ee.onSameUrlNavigation),Ee.paramsInheritanceStrategy&&(ae.paramsInheritanceStrategy=Ee.paramsInheritanceStrategy),Ee.relativeLinkResolution&&(ae.relativeLinkResolution=Ee.relativeLinkResolution),Ee.urlUpdateStrategy&&(ae.urlUpdateStrategy=Ee.urlUpdateStrategy),Ee.canceledNavigationResolution&&(ae.canceledNavigationResolution=Ee.canceledNavigationResolution)}(Pt,Ai),Pt.enableTracing&&Ai.events.subscribe(Yi=>{var xi,nn;null===(xi=console.group)||void 0===xi||xi.call(console,`Router Event: ${Yi.constructor.name}`),console.log(Yi.toString()),console.log(Yi),null===(nn=console.groupEnd)||void 0===nn||nn.call(console)}),Ai},deps:[le,Mn,Ve.Ye,e.zs3,e.Sil,Vt,Wr,[class ni{},new e.FiY],[at,new e.FiY]]},Mn,{provide:Dt,useFactory:function Cs(Ee){return Ee.routerState.root},deps:[Zi]},is,Kr,class bs{preload(ae,J){return J().pipe((0,Y.K)(()=>(0,_.of)(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function Bo(){return new e.PXZ("Router",Zi)}let No=(()=>{class Ee{constructor(J,Ze){}static forRoot(J,Ze){return{ngModule:Ee,providers:[rs,Ya(J),{provide:xr,useFactory:ko,deps:[[Zi,new e.FiY,new e.tp0]]},{provide:Wr,useValue:Ze||{}},{provide:Ve.S$,useFactory:la,deps:[Ve.lw,[new e.tBr(Ve.mr),new e.FiY],Wr]},{provide:ns,useFactory:ss,deps:[Zi,Ve.EM,Wr]},{provide:Wa,useExisting:Ze&&Ze.preloadingStrategy?Ze.preloadingStrategy:Kr},{provide:e.PXZ,multi:!0,useFactory:Bo},[vs,{provide:e.ip1,multi:!0,useFactory:ca,deps:[vs]},{provide:da,useFactory:Ts,deps:[vs]},{provide:e.tb,multi:!0,useExisting:da}]]}}static forChild(J){return{ngModule:Ee,providers:[Ya(J)]}}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.LFG(xr,8),e.LFG(Zi,8))},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({}),Ee})();function ss(Ee,ae,J){return J.scrollOffset&&ae.setOffset(J.scrollOffset),new ns(Ee,ae,J)}function la(Ee,ae,J={}){return J.useHash?new Ve.Do(Ee,ae):new Ve.b0(Ee,ae)}function ko(Ee){return"guarded"}function Ya(Ee){return[{provide:e.deG,multi:!0,useValue:Ee},{provide:Vt,multi:!0,useValue:Ee}]}let vs=(()=>{class Ee{constructor(J){this.injector=J,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new O.xQ}appInitializer(){return this.injector.get(Ve.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Ze=null;const it=new Promise(Ft=>Ze=Ft),_t=this.injector.get(Zi),Pt=this.injector.get(Wr);return"disabled"===Pt.initialNavigation?(_t.setUpLocationChangeListener(),Ze(!0)):"enabled"===Pt.initialNavigation||"enabledBlocking"===Pt.initialNavigation?(_t.hooks.afterPreactivation=()=>this.initNavigation?(0,_.of)(null):(this.initNavigation=!0,Ze(!0),this.resultOfPreactivationDone),_t.initialNavigation()):Ze(!0),it})}bootstrapListener(J){const Ze=this.injector.get(Wr),it=this.injector.get(is),_t=this.injector.get(ns),Pt=this.injector.get(Zi),Ft=this.injector.get(e.z2F);J===Ft.components[0]&&(("enabledNonBlocking"===Ze.initialNavigation||void 0===Ze.initialNavigation)&&Pt.initialNavigation(),it.setUpPreloading(),_t.init(),Pt.resetRootComponentType(Ft.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ee.\u0275fac=function(J){return new(J||Ee)(e.LFG(e.zs3))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();function ca(Ee){return Ee.appInitializer.bind(Ee)}function Ts(Ee){return Ee.bootstrapListener.bind(Ee)}const da=new e.OlP("Router Initializer")},51062:(Qe,be,p)=>{"use strict";p.d(be,{Zw:()=>O,aw:()=>Ve,X$:()=>te,sK:()=>Ue});var e=p(5e3),b=p(21086),_=p(54715),w=p(30567),g=p(61221),A=p(88514),E=p(72986),C=p(5154),R=p(24850),I=p(21406),m=p(87545);class O{}let P=(()=>{class ve extends O{getTranslation(z){return(0,b.of)({})}}return ve.\u0275fac=function(){let Oe;return function(D){return(Oe||(Oe=e.n5z(ve)))(D||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class W{}let ie=(()=>{class ve{handle(z){return z.key}}return ve.\u0275fac=function(z){return new(z||ve)},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();function Ae(ve,Oe){if(ve===Oe)return!0;if(null===ve||null===Oe)return!1;if(ve!=ve&&Oe!=Oe)return!0;let ge,Te,Ie,z=typeof ve;if(z==typeof Oe&&"object"==z){if(!Array.isArray(ve)){if(Array.isArray(Oe))return!1;for(Te in Ie=Object.create(null),ve){if(!Ae(ve[Te],Oe[Te]))return!1;Ie[Te]=!0}for(Te in Oe)if(!(Te in Ie)&&void 0!==Oe[Te])return!1;return!0}if(!Array.isArray(Oe))return!1;if((ge=ve.length)==Oe.length){for(Te=0;Te{Me(Oe[D])?D in ve?z[D]=he(ve[D],Oe[D]):Object.assign(z,{[D]:Oe[D]}):Object.assign(z,{[D]:Oe[D]})}),z}class De{}let T=(()=>{class ve extends De{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(z,D){let ge;return ge="string"==typeof z?this.interpolateString(z,D):"function"==typeof z?this.interpolateFunction(z,D):z,ge}getValue(z,D){let ge="string"==typeof D?D.split("."):[D];D="";do{D+=ge.shift(),!q(z)||!q(z[D])||"object"!=typeof z[D]&&ge.length?ge.length?D+=".":z=void 0:(z=z[D],D="")}while(ge.length);return z}interpolateFunction(z,D){return z(D)}interpolateString(z,D){return D?z.replace(this.templateMatcher,(ge,Te)=>{let Ie=this.getValue(D,Te);return q(Ie)?Ie:ge}):z}}return ve.\u0275fac=function(){let Oe;return function(D){return(Oe||(Oe=e.n5z(ve)))(D||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class N{}let j=(()=>{class ve extends N{compile(z,D){return z}compileTranslations(z,D){return z}}return ve.\u0275fac=function(){let Oe;return function(D){return(Oe||(Oe=e.n5z(ve)))(D||ve)}}(),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})();class Y{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const ee=new e.OlP("USE_STORE"),de=new e.OlP("USE_DEFAULT_LANG"),ce=new e.OlP("DEFAULT_LANGUAGE"),Fe=new e.OlP("USE_EXTEND");let Ue=(()=>{class ve{constructor(z,D,ge,Te,Ie,fe=!0,Se=!1,Ke=!1,Je){this.store=z,this.currentLoader=D,this.compiler=ge,this.parser=Te,this.missingTranslationHandler=Ie,this.useDefaultLang=fe,this.isolate=Se,this.extend=Ke,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Je&&this.setDefaultLang(Je)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(z){this.isolate?this._defaultLang=z:this.store.defaultLang=z}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(z){this.isolate?this._currentLang=z:this.store.currentLang=z}get langs(){return this.isolate?this._langs:this.store.langs}set langs(z){this.isolate?this._langs=z:this.store.langs=z}get translations(){return this.isolate?this._translations:this.store.translations}set translations(z){this.isolate?this._translations=z:this.store.translations=z}setDefaultLang(z){if(z===this.defaultLang)return;let D=this.retrieveTranslations(z);void 0!==D?(null==this.defaultLang&&(this.defaultLang=z),D.pipe((0,E.q)(1)).subscribe(ge=>{this.changeDefaultLang(z)})):this.changeDefaultLang(z)}getDefaultLang(){return this.defaultLang}use(z){if(z===this.currentLang)return(0,b.of)(this.translations[z]);let D=this.retrieveTranslations(z);return void 0!==D?(this.currentLang||(this.currentLang=z),D.pipe((0,E.q)(1)).subscribe(ge=>{this.changeLang(z)}),D):(this.changeLang(z),(0,b.of)(this.translations[z]))}retrieveTranslations(z){let D;return(void 0===this.translations[z]||this.extend)&&(this._translationRequests[z]=this._translationRequests[z]||this.getTranslation(z),D=this._translationRequests[z]),D}getTranslation(z){this.pending=!0;const D=this.currentLoader.getTranslation(z).pipe((0,C.d)(1),(0,E.q)(1));return this.loadingTranslations=D.pipe((0,R.U)(ge=>this.compiler.compileTranslations(ge,z)),(0,C.d)(1),(0,E.q)(1)),this.loadingTranslations.subscribe({next:ge=>{this.translations[z]=this.extend&&this.translations[z]?Object.assign(Object.assign({},ge),this.translations[z]):ge,this.updateLangs(),this.pending=!1},error:ge=>{this.pending=!1}}),D}setTranslation(z,D,ge=!1){D=this.compiler.compileTranslations(D,z),this.translations[z]=(ge||this.extend)&&this.translations[z]?he(this.translations[z],D):D,this.updateLangs(),this.onTranslationChange.emit({lang:z,translations:this.translations[z]})}getLangs(){return this.langs}addLangs(z){z.forEach(D=>{-1===this.langs.indexOf(D)&&this.langs.push(D)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(z,D,ge){let Te;if(D instanceof Array){let Ie={},fe=!1;for(let Se of D)Ie[Se]=this.getParsedResult(z,Se,ge),(0,_.b)(Ie[Se])&&(fe=!0);if(fe){const Se=D.map(Ke=>(0,_.b)(Ie[Ke])?Ie[Ke]:(0,b.of)(Ie[Ke]));return(0,w.D)(Se).pipe((0,R.U)(Ke=>{let Je={};return Ke.forEach((nt,je)=>{Je[D[je]]=nt}),Je}))}return Ie}if(z&&(Te=this.parser.interpolate(this.parser.getValue(z,D),ge)),void 0===Te&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Te=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],D),ge)),void 0===Te){let Ie={key:D,translateService:this};void 0!==ge&&(Ie.interpolateParams=ge),Te=this.missingTranslationHandler.handle(Ie)}return void 0!==Te?Te:D}get(z,D){if(!q(z)||!z.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,I.b)(ge=>(ge=this.getParsedResult(ge,z,D),(0,_.b)(ge)?ge:(0,b.of)(ge))));{let ge=this.getParsedResult(this.translations[this.currentLang],z,D);return(0,_.b)(ge)?ge:(0,b.of)(ge)}}getStreamOnTranslationChange(z,D){if(!q(z)||!z.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(z,D)),this.onTranslationChange.pipe((0,m.w)(ge=>{const Te=this.getParsedResult(ge.translations,z,D);return"function"==typeof Te.subscribe?Te:(0,b.of)(Te)})))}stream(z,D){if(!q(z)||!z.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(z,D)),this.onLangChange.pipe((0,m.w)(ge=>{const Te=this.getParsedResult(ge.translations,z,D);return(0,_.b)(Te)?Te:(0,b.of)(Te)})))}instant(z,D){if(!q(z)||!z.length)throw new Error('Parameter "key" required');let ge=this.getParsedResult(this.translations[this.currentLang],z,D);if((0,_.b)(ge)){if(z instanceof Array){let Te={};return z.forEach((Ie,fe)=>{Te[z[fe]]=z[fe]}),Te}return z}return ge}set(z,D,ge=this.currentLang){this.translations[ge][z]=this.compiler.compile(D,ge),this.updateLangs(),this.onTranslationChange.emit({lang:ge,translations:this.translations[ge]})}changeLang(z){this.currentLang=z,this.onLangChange.emit({lang:z,translations:this.translations[z]}),null==this.defaultLang&&this.changeDefaultLang(z)}changeDefaultLang(z){this.defaultLang=z,this.onDefaultLangChange.emit({lang:z,translations:this.translations[z]})}reloadLang(z){return this.resetLang(z),this.getTranslation(z)}resetLang(z){this._translationRequests[z]=void 0,this.translations[z]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let z=window.navigator.languages?window.navigator.languages[0]:null;return z=z||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==z?(-1!==z.indexOf("-")&&(z=z.split("-")[0]),-1!==z.indexOf("_")&&(z=z.split("_")[0]),z):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let z=window.navigator.languages?window.navigator.languages[0]:null;return z=z||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,z}}return ve.\u0275fac=function(z){return new(z||ve)(e.LFG(Y),e.LFG(O),e.LFG(N),e.LFG(De),e.LFG(W),e.LFG(de),e.LFG(ee),e.LFG(Fe),e.LFG(ce))},ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),te=(()=>{class ve{constructor(z,D){this.translate=z,this._ref=D,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(z,D,ge){let Te=Ie=>{this.value=void 0!==Ie?Ie:z,this.lastKey=z,this._ref.markForCheck()};if(ge){let Ie=this.translate.getParsedResult(ge,z,D);(0,_.b)(Ie.subscribe)?Ie.subscribe(Te):Te(Ie)}this.translate.get(z,D).subscribe(Te)}transform(z,...D){if(!z||!z.length)return z;if(Ae(z,this.lastKey)&&Ae(D,this.lastParams))return this.value;let ge;if(q(D[0])&&D.length)if("string"==typeof D[0]&&D[0].length){let Te=D[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{ge=JSON.parse(Te)}catch(Ie){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${D[0]}`)}}else"object"==typeof D[0]&&!Array.isArray(D[0])&&(ge=D[0]);return this.lastKey=z,this.lastParams=D,this.updateValue(z,ge),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Te=>{this.lastKey&&Te.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(z,ge,Te.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Te=>{this.lastKey&&(this.lastKey=null,this.updateValue(z,ge,Te.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(z,ge))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ve.\u0275fac=function(z){return new(z||ve)(e.Y36(Ue,16),e.Y36(e.sBO,16))},ve.\u0275pipe=e.Yjl({name:"translate",type:ve,pure:!1}),ve.\u0275prov=e.Yz7({token:ve,factory:ve.\u0275fac}),ve})(),Ve=(()=>{class ve{static forRoot(z={}){return{ngModule:ve,providers:[z.loader||{provide:O,useClass:P},z.compiler||{provide:N,useClass:j},z.parser||{provide:De,useClass:T},z.missingTranslationHandler||{provide:W,useClass:ie},Y,{provide:ee,useValue:z.isolate},{provide:de,useValue:z.useDefaultLang},{provide:Fe,useValue:z.extend},{provide:ce,useValue:z.defaultLanguage},Ue]}}static forChild(z={}){return{ngModule:ve,providers:[z.loader||{provide:O,useClass:P},z.compiler||{provide:N,useClass:j},z.parser||{provide:De,useClass:T},z.missingTranslationHandler||{provide:W,useClass:ie},{provide:ee,useValue:z.isolate},{provide:de,useValue:z.useDefaultLang},{provide:Fe,useValue:z.extend},{provide:ce,useValue:z.defaultLanguage},Ue]}}}return ve.\u0275fac=function(z){return new(z||ve)},ve.\u0275mod=e.oAB({type:ve}),ve.\u0275inj=e.cJS({}),ve})()},86114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService,Hy:()=>OAuthStorage});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(69808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(40520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(70655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(21086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(36053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(36787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(22868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(80013),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(87545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(87224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(27221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(46227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(72986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(61709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Qe extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Qe.\u0275fac=function(){let be;return function(e){return(be||(be=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Qe)))(e||Qe)}}(),Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Qe{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class ReceivedTokens{}class OAuthEvent{constructor(be){this.type=be}}class OAuthSuccessEvent extends OAuthEvent{constructor(be,p=null){super(be),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(be,p=null){super(be),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(be,p,e=null){super(be),this.reason=p,this.params=e}}function b64DecodeUnicode(Qe){const be=Qe.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(be).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Qe){return btoa(Qe).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(be){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},be&&Object.assign(this,be)}}class WebHttpUrlEncodingCodec{encodeKey(be){return encodeURIComponent(be)}encodeValue(be){return encodeURIComponent(be)}decodeKey(be){return decodeURIComponent(be)}decodeValue(be){return decodeURIComponent(be)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(be){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(be.idTokenHeader),e=yield this.calcHash(be.accessToken,p),_=base64UrlEncode(e.substr(0,e.length/2)),w=be.idTokenClaims.at_hash.replace(/=/g,"");return _!==w&&(console.error("exptected at_hash: "+_),console.error("actual at_hash: "+w)),_===w})}inferHashAlgorithm(be){let p=be.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class Qe{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const b=e.indexOf("?");return e=e.substr(b>-1?b+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let b,_,w,g,A,E,C;if(null===p)return e;b=p.split("&");for(let R=0;R>6,_[g++]=128|63&A):A<55296||A>=57344?(_[g++]=224|A>>12,_[g++]=128|A>>6&63,_[g++]=128|63&A):(A=65536+((1023&A)<<10|1023&Qe.charCodeAt(++e)),_[g++]=240|A>>18,_[g++]=128|A>>12&63,_[g++]=128|A>>6&63,_[g++]=128|63&A);Qe=_}else{if("object"!==b)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR)}Qe.length>64&&(Qe=new Sha256(be,!0).update(Qe).array());var E=[],C=[];for(e=0;e<64;++e){var R=Qe[e]||0;E[e]=92^R,C[e]=54^R}Sha256.call(this,be,p),this.update(C),this.oKeyPad=E,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function(Qe){if(!this.finalized){var be,p=typeof Qe;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===Qe)throw new Error(ERROR);if(ARRAY_BUFFER&&Qe.constructor===ArrayBuffer)Qe=new Uint8Array(Qe);else if(!(Array.isArray(Qe)||ARRAY_BUFFER&&ArrayBuffer.isView(Qe)))throw new Error(ERROR);be=!0}for(var e,_,b=0,w=Qe.length,g=this.blocks;b>2]|=Qe[b]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[_>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=g[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Qe=this.blocks,be=this.lastByteIndex;Qe[16]=this.block,Qe[be>>2]|=EXTRA[3&be],this.block=Qe[16],be>=56&&(this.hashed||this.hash(),Qe[0]=this.block,Qe[16]=Qe[1]=Qe[2]=Qe[3]=Qe[4]=Qe[5]=Qe[6]=Qe[7]=Qe[8]=Qe[9]=Qe[10]=Qe[11]=Qe[12]=Qe[13]=Qe[14]=Qe[15]=0),Qe[14]=this.hBytes<<3|this.bytes>>>29,Qe[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var E,m,W,ie,Ae,q,Qe=this.h0,be=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=this.blocks;for(E=16;E<64;++E)A[E]=A[E-16]+(((m=A[E-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3)+A[E-7]+(((m=A[E-2])>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)<<0;for(q=be&p,E=0;E<64;E+=4)this.first?(this.is224?(W=300032,g=(m=A[0]-1413257819)-150054599<<0,e=m+24177077<<0):(W=704751109,g=(m=A[0]-210244248)-1521486534<<0,e=m+143694565<<0),this.first=!1):(g=e+(m=g+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&_^~b&w)+K[E]+A[E])<<0,e=m+(((Qe>>>2|Qe<<30)^(Qe>>>13|Qe<<19)^(Qe>>>22|Qe<<10))+((W=Qe&be)^Qe&p^q))<<0),w=p+(m=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&_)+K[E+1]+A[E+1])<<0,p=m+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ie=e&Qe)^e&be^W))<<0,_=be+(m=_+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&b)+K[E+2]+A[E+2])<<0,be=m+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((Ae=p&e)^p&Qe^ie))<<0,b=Qe+(m=b+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&w^~_&g)+K[E+3]+A[E+3])<<0,Qe=m+(((be>>>2|be<<30)^(be>>>13|be<<19)^(be>>>22|be<<10))+((q=be&p)^be&e^Ae))<<0;this.h0=this.h0+Qe<<0,this.h1=this.h1+be<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+b<<0,this.h5=this.h5+_<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var Qe=this.h0,be=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=HEX_CHARS[Qe>>28&15]+HEX_CHARS[Qe>>24&15]+HEX_CHARS[Qe>>20&15]+HEX_CHARS[Qe>>16&15]+HEX_CHARS[Qe>>12&15]+HEX_CHARS[Qe>>8&15]+HEX_CHARS[Qe>>4&15]+HEX_CHARS[15&Qe]+HEX_CHARS[be>>28&15]+HEX_CHARS[be>>24&15]+HEX_CHARS[be>>20&15]+HEX_CHARS[be>>16&15]+HEX_CHARS[be>>12&15]+HEX_CHARS[be>>8&15]+HEX_CHARS[be>>4&15]+HEX_CHARS[15&be]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[b>>28&15]+HEX_CHARS[b>>24&15]+HEX_CHARS[b>>20&15]+HEX_CHARS[b>>16&15]+HEX_CHARS[b>>12&15]+HEX_CHARS[b>>8&15]+HEX_CHARS[b>>4&15]+HEX_CHARS[15&b]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w];return this.is224||(A+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),A},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Qe=this.h0,be=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=[Qe>>24&255,Qe>>16&255,Qe>>8&255,255&Qe,be>>24&255,be>>16&255,be>>8&255,255&be,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,b>>24&255,b>>16&255,b>>8&255,255&b,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||A.push(g>>24&255,g>>16&255,g>>8&255,255&g),A},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Qe=new ArrayBuffer(this.is224?28:32),be=new DataView(Qe);return be.setUint32(0,this.h0),be.setUint32(4,this.h1),be.setUint32(8,this.h2),be.setUint32(12,this.h3),be.setUint32(16,this.h4),be.setUint32(20,this.h5),be.setUint32(24,this.h6),this.is224||be.setUint32(28,this.h7),Qe},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Qe=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Qe),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Qe){if("string"!=typeof Qe)throw new TypeError("expected string");var be,p=Qe,e=new Uint8Array(p.length);for(be=0;be{class Qe{calcHash(p,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let e="";for(let b of p)e+=String.fromCharCode(b);return e}toHashString(p){const e=new Uint8Array(p);let b="";for(let _ of e)b+=String.fromCharCode(_);return b}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),OAuthService=(()=>{class Qe extends AuthConfig{constructor(p,e,b,_,w,g,A,E,C,R){var I;super(),this.ngZone=p,this.http=e,this.config=w,this.urlHelper=g,this.logger=A,this.crypto=E,this.dateTimeService=R,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=C,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),w&&this.configure(w);try{b?this.setStorage(b):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(m){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",m)}if(this.checkLocalStorageAccessable()){const m=null===(I=null==window?void 0:window.navigator)||void 0===I?void 0:I.userAgent;((null==m?void 0:m.includes("MSIE "))||(null==m?void 0:m.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(e){return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,b=!0){let _=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?_=!0:"logout"===w.type&&(_=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{_&&this.refreshInternal(p,b).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],b=this.validateUrlForHttps(p),_=this.validateUrlAgainstIssuer(p);return b||e.push("https for all urls required. Also for urls received by discovery."),_||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),b=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),b=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const b=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(b-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,b)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void b("discovery_document_validation_error");this.loginUrl=_.authorization_endpoint,this.logoutUrl=_.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=_.grant_types_supported,this.issuer=_.issuer,this.tokenEndpoint=_.token_endpoint,this.userinfoEndpoint=_.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=_.jwks_uri,this.sessionCheckIFrameUrl=_.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(_),this.revocationEndpoint=_.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const A=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:w});this.eventsSubject.next(A),e(A)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),b(w)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),b(_)}):b("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(b=>{this.jwks=b,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(b)},b=>{this.logger.error("error loading jwks",b),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",b)),e(b)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,b).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:b,observe:"response",responseType:"text"}).subscribe(_=>{if(this.debug("userinfo received",JSON.stringify(_)),_.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(_.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),e(_)})})}fetchTokenUsingPasswordFlow(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},b)}fetchTokenUsingGrant(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))_=_.set(w,e[w]);return b=b.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,_,{headers:b}).subscribe(A=>{this.debug("tokenResponse",A),this.storeAccessTokenResponse(A.access_token,A.refresh_token,A.expires_in||this.fallbackAccessTokenExpirationTimeInSec,A.scope,this.extractRecognizedCustomParameters(A)),this.oidc&&A.id_token&&this.processIdToken(A.id_token,A.access_token).then(E=>{this.storeIdToken(E),w(A)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(A)},A=>{this.logger.error("Error performing ${grantType} flow",A),this.eventsSubject.next(new OAuthErrorEvent("token_error",A)),g(A)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),_=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(b=b.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(b=b.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))b=b.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,b,{headers:_}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(b=>this.debug("tryLogin during silent refresh failed",b))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const b=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=b.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(R=>{w.setAttribute("src",R),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const A=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>R instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(R=>"token_received"===R.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),C=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([A,E,C]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(R=>{if(R instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===R.type||(R=new OAuthErrorEvent("silent_refresh_error",R)),this.eventsSubject.next(R),R;return"token_received"===R.type&&(R=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(R)),R})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((b,_)=>{let A,g=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(g=p.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const E=O=>{this.tryLogin({customHashFragment:O,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{R(),b(!0)},P=>{R(),_(P)})};g?A=window.setInterval(()=>{(!g||g.closed)&&(R(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const R=()=>{window.clearInterval(A),window.removeEventListener("storage",m),window.removeEventListener("message",I),null!==g&&g.close(),g=null},I=O=>{const P=this.processMessageEventMessage(O);P&&null!==P?(window.removeEventListener("storage",m),E(P)):console.log("false event firing")},m=O=>{"auth_hash"===O.key&&(window.removeEventListener("message",I),E(O.newValue))};window.addEventListener("message",I),window.addEventListener("storage",m)}))}calculatePopupFeatures(p){const e=p.height||470,b=p.width||500,_=window.screenLeft+(window.outerWidth-b)/2;return`location=no,toolbar=no,width=${b},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${_}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const b=p.data;return b.startsWith(e)?"#"+b.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),b=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),b.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",b,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",b="",_=!1,w={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const g=this;let A;A=b||this.redirectUri;const E=yield this.createAndSaveNonce();if(p=p?E+this.config.nonceStateSeparator+encodeURIComponent(p):E,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const C=g.loginUrl.indexOf("?")>-1?"&":"?";let R=g.scope;this.oidc&&!R.match(/(^|\s)openid($|\s)/)&&(R="openid "+R);let I=g.loginUrl+C+"response_type="+encodeURIComponent(g.responseType)+"&client_id="+encodeURIComponent(g.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(A)+"&scope="+encodeURIComponent(R);if(this.responseType.includes("code")&&!this.disablePKCE){const[m,O]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",O):this._storage.setItem("PKCE_verifier",O),I+="&code_challenge="+m,I+="&code_challenge_method=S256"}e&&(I+="&login_hint="+encodeURIComponent(e)),g.resource&&(I+="&resource="+encodeURIComponent(g.resource)),g.oidc&&(I+="&nonce="+encodeURIComponent(E)),_&&(I+="&prompt=none");for(const m of Object.keys(w))I+="&"+encodeURIComponent(m)+"="+encodeURIComponent(w[m]);if(this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))I+="&"+m+"="+encodeURIComponent(this.customQueryParams[m]);return I})}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(b=>"discovery_document_loaded"===b.type)).subscribe(b=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const b={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(b)}}storeAccessTokenResponse(p,e,b,_,w){if(this._storage.setItem("access_token",p),_&&!Array.isArray(_)?this._storage.setItem("granted_scopes",JSON.stringify(_.split(" "))):_&&Array.isArray(_)&&this._storage.setItem("granted_scopes",JSON.stringify(_)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),b){const g=1e3*b,E=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+E)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,A)=>{this._storage.setItem(A,g)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const e=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,b=this.getCodePartsFromUrl(e),_=b.code,w=b.state,g=b.session_state;if(!p.preventClearHashAfterLogin){const C=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,C)}let[A,E]=this.parseState(w);if(this.state=E,b.error){this.debug("error trying to login"),this.handleLoginError(p,b);const C=new OAuthErrorEvent("code_error",{},b);return this.eventsSubject.next(C),Promise.reject(C)}if(!p.disableNonceCheck){if(!A)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(A)){const R=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(R),Promise.reject(R)}return this.storeSessionState(g),_&&(yield this.getTokenFromCode(_,p),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let _;_=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?b=b.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(b,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const _=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((_,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,p,{headers:b}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(A=>{this.storeIdToken(A),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g)}).catch(A=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",A)),console.error("Error validating tokens"),console.error(A),w(A)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const b=e.state;let[_,w]=this.parseState(b);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const R=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(R),Promise.reject(R)}const g=e.access_token,A=e.id_token,E=e.session_state,C=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!b||this.oidc&&!A)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!E&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(_)){const I=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(I),Promise.reject(I)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C),this.oidc?this.processIdToken(A,g,p.disableNonceCheck).then(R=>p.validationHandler?p.validationHandler({accessToken:g,idClaims:R.idTokenClaims,idToken:R.idToken,state:b}).then(I=>R):R).then(R=>(this.storeIdToken(R),this.storeSessionState(E),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(R=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",R)),this.logger.error("Error validating tokens"),this.logger.error(R),Promise.reject(R))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,b="";if(p){const _=p.indexOf(this.config.nonceStateSeparator);_>-1&&(e=p.substr(0,_),b=p.substr(_+this.config.nonceStateSeparator.length))}return[e,b]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,b=!1){const _=p.split("."),g=b64DecodeUnicode(this.padBase64(_[0])),A=JSON.parse(g),C=b64DecodeUnicode(this.padBase64(_[1])),R=JSON.parse(C);let I;if(I=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(R.aud)){if(R.aud.every(Ae=>Ae!==this.clientId)){const Ae="Wrong audience: "+R.aud.join(",");return this.logger.warn(Ae),Promise.reject(Ae)}}else if(R.aud!==this.clientId){const Ae="Wrong audience: "+R.aud;return this.logger.warn(Ae),Promise.reject(Ae)}if(!R.sub){const Ae="No sub claim in id_token";return this.logger.warn(Ae),Promise.reject(Ae)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==R.sub){const Ae=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${R.sub}`;return this.logger.warn(Ae),Promise.reject(Ae)}if(!R.iat){const Ae="No iat claim in id_token";return this.logger.warn(Ae),Promise.reject(Ae)}if(!this.skipIssuerCheck&&R.iss!==this.issuer){const Ae="Wrong issuer: "+R.iss;return this.logger.warn(Ae),Promise.reject(Ae)}if(!b&&R.nonce!==I){const Ae="Wrong nonce: "+R.nonce;return this.logger.warn(Ae),Promise.reject(Ae)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!R.at_hash){const Ae="An at_hash is needed!";return this.logger.warn(Ae),Promise.reject(Ae)}const m=this.dateTimeService.now(),O=1e3*R.iat,P=1e3*R.exp,W=this.getClockSkewInMsec();if(O-W>=m||P+W<=m){const Ae="Token has expired";return console.error(Ae),console.error({now:m,issuedAtMSec:O,expiresAtMSec:P}),Promise.reject(Ae)}const ie={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:R,idTokenHeader:A,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ie).then(Ae=>({idToken:p,idTokenClaims:R,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:P})):this.checkAtHash(ie).then(Ae=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!Ae){const q="Wrong at_hash";return this.logger.warn(q),Promise.reject(q)}return this.checkSignature(ie).then(q=>{const he={idToken:p,idTokenClaims:R,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:P};return this.disableAtHashCheck?he:this.checkAtHash(ie).then(De=>{if(this.requestAccessToken&&!De){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return he})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let b=!1;"boolean"==typeof p&&(b=p,p={});const _=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||b||!_&&!this.postLogoutRedirectUri)return;let w;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(_)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});_&&(g=g.set("id_token_hint",_));const A=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";A&&(g=g.set("post_logout_redirect_uri",A),e&&(g=g.set("state",e)));for(let E in p)g=g.set(E,p[E]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let b=45,_="";const w="undefined"==typeof self?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(b);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(A=>e.charCodeAt(A%e.length)),_=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===b.type)).subscribe(b=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(b=>{p[b]&&e.set(b,JSON.stringify(p[b]))}),e}revokeTokenAndLogout(p={},e=!1){let b=this.revocationEndpoint,_=this.getAccessToken(),w=this.getRefreshToken();if(!_)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+E)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const E of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(E,this.customQueryParams[E]);return new Promise((E,C)=>{let R,I;if(_){let m=g.set("token",_).set("token_type_hint","access_token");R=this.http.post(b,m,{headers:A})}else R=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let m=g.set("token",w).set("token_type_hint","refresh_token");I=this.http.post(b,m,{headers:A})}else I=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(R=R.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m))),I=I.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([R,I]).subscribe(m=>{this.logOut(p),E(m),this.logger.info("Token successfully revoked")},m=>{this.logger.error("Error revoking token",m),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",m)),C(m)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Qe.\u0275fac=function(p){return new(p||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(be){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(be)}}let DefaultOAuthInterceptor=(()=>{class Qe{constructor(p,e,b){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=b}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const b=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(b)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(w=>{if(w){const A=p.headers.set("Authorization","Bearer "+w);p=p.clone({headers:A})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(p)}}return Qe.\u0275fac=function(p){return new(p||Qe)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Qe.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();class NullValidationHandler{validateSignature(be){return Promise.resolve(null)}validateAtHash(be){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Qe{static forRoot(p=null,e=NullValidationHandler){return{ngModule:Qe,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Qe.\u0275fac=function(p){return new(p||Qe)},Qe.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Qe}),Qe.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Qe})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},43586:(Qe,be,p)=>{"use strict";p.d(be,{nu:()=>fe,Co:()=>Ke});var e=p(5e3),b=p(93075),_=p(90508),w=p(74107),g=p(67322),A=p(91159),E=p(591),C=p(21086),R=p(36053),I=p(8929),m=p(87545),O=p(24850),P=p(1059),W=p(40943),ie=p(7625),Ae=p(72986),q=p(92198),Me=p(22868),he=p(53435),De=p(15664),T=p(77446),N=p(20773),j=p(47423),Y=p(25245),ee=p(69808),de=p(29772);const ce=["searchSelectInput"],Fe=["innerSelectSearch"];function Ue(Je,nt){if(1&Je){const je=e.EpF();e.TgZ(0,"mat-checkbox",9),e.NdJ("change",function(Ce){return e.CHM(je),e.oxw()._emitSelectAllBooleanToParent(Ce.checked)}),e.qZA()}if(2&Je){const je=e.oxw();e.Q6J("color",null==je.matFormField?null:je.matFormField.color)("checked",je.toggleAllCheckboxChecked)("indeterminate",je.toggleAllCheckboxIndeterminate)("matTooltip",je.toggleAllCheckboxTooltipMessage)("matTooltipPosition",je.toogleAllCheckboxTooltipPosition)}}function Xe(Je,nt){1&Je&&e._UZ(0,"mat-spinner",10)}function te(Je,nt){1&Je&&e.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function Ve(Je,nt){1&Je&&(e.TgZ(0,"mat-icon"),e._uU(1,"close"),e.qZA())}function ve(Je,nt){if(1&Je){const je=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(je),e.oxw()._reset(!0)}),e.YNc(1,te,1,0,"ng-content",12),e.YNc(2,Ve,2,0,"ng-template",null,13,e.W1O),e.qZA()}if(2&Je){const je=e.MAs(3),Q=e.oxw();e.xp6(1),e.Q6J("ngIf",Q.clearIcon)("ngIfElse",je)}}function Oe(Je,nt){if(1&Je&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&Je){const je=e.oxw();e.xp6(1),e.hij(" ",je.noEntriesFoundLabel,"\n")}}const z=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],D=function(Je,nt){return{"mat-select-search-inner-multiple":Je,"mat-select-search-inner-toggle-all":nt}},ge=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let Te=(()=>{class Je{}return Je.\u0275fac=function(je){return new(je||Je)},Je.\u0275dir=e.lG2({type:Je,selectors:[["","ngxMatSelectSearchClear",""]]}),Je})(),fe=(()=>{class Je{constructor(je,Q,Ce,re=null,k,pe=null){this.matSelect=je,this.changeDetectorRef=Q,this._viewportRuler=Ce,this.matOption=re,this.liveAnnouncer=k,this.matFormField=pe,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new e.vpe,this.onTouched=Z=>{},this._options$=new E.X(null),this.optionsList$=this._options$.pipe((0,m.w)(Z=>Z?Z.changes.pipe((0,O.U)(Ne=>Ne.toArray()),(0,P.O)(Z.toArray())):(0,C.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,O.U)(Z=>Z?Z.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,R.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,O.U)(([Z,Ne])=>this.noEntriesFoundLabel&&Z&&Ne===this.getOptionsLengthOffset())),this._onDestroy=new I.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(je){this._options$.next(je)}get _options(){return this._options$.getValue()}ngOnInit(){const je="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(je):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,je]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[je]=!0):this.matSelect.panelClass=je,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,W.g)(1),(0,ie.R)(this._onDestroy)).subscribe(Q=>{Q?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,Ae.q)(1)).pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Q=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const Ce=this._options.toArray(),re=Ce[this.getOptionsLengthOffset()],k=this.matSelect._keyManager;k&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Q,re)||!k.activeItem||!Ce.find(Z=>this.matSelect.compareWith(Z,k.activeItem)))&&k.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Q=re})})}),this._showNoEntriesFound$.pipe((0,ie.R)(this._onDestroy)).subscribe(Q=>{this.matOption&&(Q?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ie.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(je){this.toggleAll.emit(je)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(je){(je.key&&1===je.key.length||je.keyCode>=A.A&&je.keyCode<=A.Z||je.keyCode>=A.xE&&je.keyCode<=A.aO||je.keyCode===A.L_||this.preventHomeEndKeyPropagation&&(je.keyCode===A.Sd||je.keyCode===A.uR))&&je.stopPropagation(),this.matSelect.multiple&&je.key&&je.keyCode===A.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&je.keyCode===A.hY&&this.value&&(this._reset(!0),je.stopPropagation())}_handleKeyup(je){if(je.keyCode===A.LH||je.keyCode===A.JH){const Q=this.matSelect._getAriaActiveDescendant(),Ce=this._options.toArray().findIndex(re=>re.id===Q);if(-1!==Ce){const re=this._options.toArray()[Ce];this.liveAnnouncer.announce(re.viewValue+" "+this.getAriaIndex(Ce)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(je){return 0===this.getOptionsLengthOffset()?je+1:je}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(je){this._lastExternalInputValue=je,this._formControl.setValue(je),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(je){this._formControl.valueChanges.pipe((0,q.h)(Q=>Q!==this._lastExternalInputValue),(0,Me.b)(()=>this._lastExternalInputValue=void 0),(0,ie.R)(this._onDestroy)).subscribe(je)}registerOnTouched(je){this.onTouched=je}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const je=this.matSelect.panel.nativeElement,Q=je.scrollTop;this.searchSelectInput.nativeElement.focus(),je.scrollTop=Q}_reset(je){this._formControl.setValue(""),je&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ie.R)(this._onDestroy)).subscribe(je=>{let Q=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!je||!Array.isArray(je))&&(je=[]);const Ce=this.matSelect.options.map(re=>re.value);this.previousSelectedValues.forEach(re=>{!je.some(k=>this.matSelect.compareWith(k,re))&&!Ce.some(k=>this.matSelect.compareWith(k,re))&&(je.push(re),Q=!0)})}this.previousSelectedValues=je,Q&&this.matSelect._onChange(je)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const je=this.getMatOptionHeight(),Q=this.matSelect._keyManager.activeItemIndex||0,Ce=(0,_.CB)(Q,this.matSelect.options,this.matSelect.optionGroups),re=(this.matOption?-1:0)+Ce+Q,k=this.matSelect.panel.nativeElement.scrollTop,pe=this.innerSelectSearch.nativeElement.offsetHeight,Z=Math.floor((256-pe)/je),Ne=Math.round((k+pe)/je)-1;Ne>=re?this.matSelect.panel.nativeElement.scrollTop=re*je:Ne+Z<=re&&(this.matSelect.panel.nativeElement.scrollTop=(re+1)*je-(256-pe))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Q,je=this.innerSelectSearch.nativeElement;for(;je=je.parentElement;)if(je.classList.contains("mat-select-panel")){Q=je;break}Q&&(this.innerSelectSearch.nativeElement.style.width=Q.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return Je.\u0275fac=function(je){return new(je||Je)(e.Y36(w.gD),e.Y36(e.sBO),e.Y36(he.rL),e.Y36(_.ey,8),e.Y36(De.Kd),e.Y36(g.KE,8))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["ngx-mat-select-search"]],contentQueries:function(je,Q,Ce){if(1&je&&e.Suo(Ce,Te,5),2&je){let re;e.iGM(re=e.CRH())&&(Q.clearIcon=re.first)}},viewQuery:function(je,Q){if(1&je&&(e.Gf(ce,7,e.SBq),e.Gf(Fe,7,e.SBq)),2&je){let Ce;e.iGM(Ce=e.CRH())&&(Q.searchSelectInput=Ce.first),e.iGM(Ce=e.CRH())&&(Q.innerSelectSearch=Ce.first)}},hostVars:2,hostBindings:function(je,Q){2&je&&e.ekj("mat-select-search-inside-mat-option",Q.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[e._Bn([{provide:b.JU,useExisting:(0,e.Gpc)(()=>Je),multi:!0}])],ngContentSelectors:ge,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(je,Q){1&je&&(e.F$t(z),e._UZ(0,"input",0),e.TgZ(1,"div",1,2),e.YNc(3,Ue,1,5,"mat-checkbox",3),e.TgZ(4,"input",4,5),e.NdJ("keydown",function(re){return Q._handleKeydown(re)})("keyup",function(re){return Q._handleKeyup(re)})("blur",function(){return Q.onBlur()}),e.qZA(),e.YNc(6,Xe,1,0,"mat-spinner",6),e.YNc(7,ve,4,2,"button",7),e.Hsn(8),e.qZA(),e.YNc(9,Oe,2,1,"div",8),e.ALo(10,"async")),2&je&&(e.xp6(1),e.Q6J("ngClass",e.WLB(11,D,Q.matSelect.multiple,Q._isToggleAllCheckboxVisible())),e.xp6(2),e.Q6J("ngIf",Q._isToggleAllCheckboxVisible()),e.xp6(1),e.Q6J("type",Q.type)("formControl",Q._formControl)("placeholder",Q.placeholderLabel),e.uIk("aria-label",Q.ariaLabel),e.xp6(2),e.Q6J("ngIf",Q.searching),e.xp6(1),e.Q6J("ngIf",!Q.hideClearSearchButton&&Q.value&&!Q.searching),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,9,Q._showNoEntriesFound$)))},directives:[T.oG,N.$g,j.lW,Y.Hw,ee.mk,ee.O5,de.gM,b.Fj,b.JJ,b.oH],pipes:[ee.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Je})(),Ke=(()=>{class Je{}return Je.\u0275fac=function(je){return new(je||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[ee.ez,b.UX,j.ot,T.p9,Y.Ps,N.Cq,de.AV]]}),Je})()},4147:Qe=>{"use strict";Qe.exports={i8:"8.2.0"}}},Qe=>{Qe(Qe.s=9193)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/main.3bb9861b11b6d4bf.js b/dist/apps/admin-gui/main.3bb9861b11b6d4bf.js deleted file mode 100644 index ffda7f34d..000000000 --- a/dist/apps/admin-gui/main.3bb9861b11b6d4bf.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkadmin_gui=self.webpackChunkadmin_gui||[]).push([[179],{57788:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>nt});var e=p(32105),b=p(10036),_=p(5e3),w=p(53251),g=p(69808),A=p(9244),E=p(42377),C=p(64901),I=p(47423),P=p(29772),m=p(25245),L=p(51062);function O(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"div",6),_.TgZ(1,"div",7),_.TgZ(2,"perun-web-apps-entity-search-select",8),_.NdJ("entitySelected",function(D){return _.CHM(z).$implicit[0]=D.namespace+":"+D.friendlyName}),_.ALo(3,"translate"),_.ALo(4,"translate"),_.ALo(5,"translate"),_.qZA(),_.qZA(),_.TgZ(6,"div",9),_.TgZ(7,"perun-web-apps-debounce-filter",10),_.NdJ("filter",function(D){return _.CHM(z).$implicit[1]=D}),_.qZA(),_.qZA(),_.TgZ(8,"div",11),_.TgZ(9,"button",12),_.NdJ("click",function(){const H=_.CHM(z).$implicit;return _.oxw(2).removeOption(H)}),_.ALo(10,"translate"),_.TgZ(11,"mat-icon"),_._uU(12,"clear"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&Ve){const z=_.oxw(2);_.xp6(2),_.Q6J("entities",z.availableAttrDefs)("searchFunction",z.nameFunction)("mainTextFunction",z.nameFunction)("secondaryTextFunction",z.secondaryTextFunction)("selectPlaceholder",_.lcZ(3,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SELECT_ATTR_DEF"))("findPlaceholder",_.lcZ(4,12,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.FIND_ATTR_DEF"))("noEntriesText",_.lcZ(5,14,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.NO_ATTR_DEF_FOUND")),_.xp6(5),_.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_PLACEHOLDER"),_.xp6(2),_.s9C("matTooltip",_.lcZ(10,16,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.REMOVE_PARAMETER")),_.Q6J("disabled",1===z.options.length)}}function G(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"div",1),_.YNc(1,O,13,18,"div",2),_.TgZ(2,"button",3),_.NdJ("click",function(){return _.CHM(z),_.oxw().addOption()}),_._uU(3),_.ALo(4,"translate"),_.qZA(),_.TgZ(5,"span",4),_.ALo(6,"translate"),_.TgZ(7,"button",5),_.NdJ("click",function(){return _.CHM(z),_.oxw().searchEntities()}),_.TgZ(8,"mat-icon"),_._uU(9,"search"),_.qZA(),_._uU(10),_.ALo(11,"translate"),_.qZA(),_.qZA(),_.qZA()}if(2&Ve){const z=_.oxw();_.xp6(1),_.Q6J("ngForOf",z.options),_.xp6(2),_.hij(" ",_.lcZ(4,6,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.ADD_PARAMETER")," "),_.xp6(2),_.s9C("matTooltip",_.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON_TOOLTIP")),_.Q6J("matTooltipDisabled",!z.emptySearchString()),_.xp6(2),_.Q6J("disabled",z.emptySearchString()),_.xp6(3),_.hij(" ",_.lcZ(11,10,"SHARED_LIB.PERUN.COMPONENTS.ATTR_DEF_SEARCH_SELECT.SEARCH_BUTTON")," ")}}let ne=(()=>{class Ve{constructor(){this.attributeSelected=new _.vpe,this.search=new _.vpe,this.availableAttrDefs=[],this.options=[],this.nameFunction=z=>z.displayName,this.secondaryTextFunction=z=>"#"+String(z.id)}ngOnInit(){this.availableAttrDefs=this.attributes.filter(z=>z.entity===this.attributesForEntity).sort(A.Xd)}ngOnChanges(){this.options=[],this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}removeOption(z){this.options=this.options.filter(Q=>Q!==z)}addOption(){this.options.push([this.attributes[0].namespace+":"+this.attributes[0].friendlyName,""])}emptySearchString(){return this.options.some(z=>0===z[1].length)}searchEntities(){const z={};this.options.forEach(Q=>{z[Q[0]]=Q[1]}),this.search.emit(z)}}return Ve.\u0275fac=function(z){return new(z||Ve)},Ve.\u0275cmp=_.Xpm({type:Ve,selectors:[["perun-web-apps-attribute-search-select"]],inputs:{attributes:"attributes",attributesForEntity:"attributesForEntity"},outputs:{attributeSelected:"attributeSelected",search:"search"},features:[_.TTD],decls:1,vars:1,consts:[["class","container ml-0 mr-0 pl-0 pr-0 mt-3",4,"ngIf"],[1,"container","ml-0","mr-0","pl-0","pr-0","mt-3"],["class","row",4,"ngFor","ngForOf"],["mat-flat-button","","color","accent",1,"mr-2",3,"click"],["matTooltipPosition","below",3,"matTooltip","matTooltipDisabled"],["mat-stroked-button","",1,"mr-2",3,"disabled","click"],[1,"row"],[1,"col-7"],[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"],[1,"col-4","pr-0"],[3,"placeholder","filter"],[1,"col-1"],["mat-icon-button","","color","warn",1,"mt-2",3,"matTooltip","disabled","click"]],template:function(z,Q){1&z&&_.YNc(0,G,12,12,"div",0),2&z&&_.Q6J("ngIf",void 0!==Q.options)},directives:[g.O5,g.sg,E.i,C.P,I.lW,P.gM,m.Hw],pipes:[L.X$],styles:[""]}),Ve})();var ge=p(64877),J=p(62707),Me=p(38383),oe=p(74010),Re=p(62109),T=p(20773);function j(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_USERS")," ")}function Y(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"user")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const q=function(){return["user","id","name"]};function te(Ve,X){if(1&Ve&&_._UZ(0,"app-users-list",9),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,q))("users",z.entities)}}function ue(Ve,X){if(1&Ve&&(_.YNc(0,Y,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,te,1,4,"app-users-list",7)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function de(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_MEMBERS")," ")}function Le(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-vo-search-select",13),_.NdJ("voSelected",function(D){return _.CHM(z),_.oxw(2).voSelected(D)}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("vos",z.vos)}}function Ue(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"member")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","user")}}const ze=function(){return["id","voId","userId","status"]};function le(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-members-list",14),_.NdJ("updateTable",function(){_.CHM(z);const D=_.oxw(2);return D.searchEntities(D.searchInput,"member")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(4,ze))("disableExpirationChange",!0)("members",z.entities)}}function je(Ve,X){if(1&Ve&&(_.TgZ(0,"div",10),_.YNc(1,Le,1,1,"perun-web-apps-vo-search-select",11),_.qZA(),_.YNc(2,Ue,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(3,le,1,5,"perun-web-apps-members-list",12)),2&Ve){const z=_.oxw();_.xp6(1),_.Q6J("ngIf",z.vos.length>0),_.xp6(1),_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function ye(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_FACILITIES")," ")}function Be(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"facility")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","facility")}}const W=function(){return["id","name","description"]};function R(Ve,X){if(1&Ve&&_._UZ(0,"perun-web-apps-facilities-list",16),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,W))("facilities",z.entities)}}function me(Ve,X){if(1&Ve&&(_.YNc(0,Be,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,R,1,4,"perun-web-apps-facilities-list",15)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function be(Ve,X){1&Ve&&(_._uU(0),_.ALo(1,"translate")),2&Ve&&_.hij(" ",_.lcZ(1,1,"ADMIN.SEARCHER.TAB_RESOURCES")," ")}function Ie(Ve,X){if(1&Ve){const z=_.EpF();_.TgZ(0,"perun-web-apps-attribute-search-select",8),_.NdJ("search",function(D){return _.CHM(z),_.oxw(2).searchEntities(D,"resource")}),_.qZA()}if(2&Ve){const z=_.oxw(2);_.Q6J("attributes",z.allAttrDefinitions)("attributesForEntity","resource")}}const pe=function(){return["id","name","description","voId","facilityId"]};function Se(Ve,X){if(1&Ve&&_._UZ(0,"perun-web-apps-resources-list",18),2&Ve){const z=_.oxw(2);_.Q6J("tableId",z.tableId)("displayedColumns",_.DdM(3,pe))("resources",z.entities)}}function Xe(Ve,X){if(1&Ve&&(_.YNc(0,Ie,1,2,"perun-web-apps-attribute-search-select",6),_.YNc(1,Se,1,4,"perun-web-apps-resources-list",17)),2&Ve){const z=_.oxw();_.Q6J("ngIf",!z.loading),_.xp6(1),_.Q6J("ngIf",!z.loadingEntityData)}}function Je(Ve,X){1&Ve&&_._UZ(0,"mat-spinner",19)}let nt=(()=>{class Ve{constructor(z,Q,D){this.attributesManager=z,this.searcher=Q,this.voService=D,this.loadingEntityData=!1,this.allAttrDefinitions=[],this.tableId=b.ee,this.entities=[],this.vos=[]}ngOnInit(){this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(z=>{this.allAttrDefinitions=z,this.loading=!1})}tabChanged(z){switch(this.entities=[],z){case 0:this.tableId=b.ee;break;case 1:this.loadingEntityData=!0,this.loadAllVos(),this.tableId=b.FF;break;case 2:this.tableId=b.$I;break;case 3:this.tableId=b.XH}}loadAllVos(){this.loadingEntityData=!0,this.voService.getAllVos().subscribe(z=>{this.vos=z,this.selectedVo=z[0],this.loadingEntityData=!1})}voSelected(z){void 0!==z&&(this.selectedVo=z)}searchEntities(z,Q){switch(this.searchInput=z,this.loadingEntityData=!0,Q){case"user":this.getUsers();break;case"member":this.getMembers();break;case"facility":this.getFacilities();break;case"resource":this.getResources()}}getUsers(){this.searcher.getUsersSearcher({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}getMembers(){this.searcher.getMembersByUserAttributes({vo:this.selectedVo.id,userAttributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}getFacilities(){this.searcher.getFacilities({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z.map(Q=>({facility:Q})),this.loadingEntityData=!1})}getResources(){this.searcher.getAttributesResources({attributesWithSearchingValues:this.searchInput}).subscribe(z=>{this.entities=z,this.loadingEntityData=!1})}}return Ve.id="AdminSearcherComponent",Ve.\u0275fac=function(z){return new(z||Ve)(_.Y36(e.H8),_.Y36(e.t7),_.Y36(e.YF))},Ve.\u0275cmp=_.Xpm({type:Ve,selectors:[["app-admin-searcher"]],hostVars:2,hostBindings:function(z,Q){2&z&&_.ekj("router-component",Q.true)},decls:17,vars:4,consts:[[1,"page-subtitle"],[3,"selectedIndexChange"],[1,"mb-2"],["matTabLabel",""],["matTabContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"attributes","attributesForEntity","search",4,"ngIf"],[3,"tableId","displayedColumns","users",4,"ngIf"],[3,"attributes","attributesForEntity","search"],[3,"tableId","displayedColumns","users"],[1,"mt-3"],[3,"vos","voSelected",4,"ngIf"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable",4,"ngIf"],[3,"vos","voSelected"],[3,"tableId","displayedColumns","disableExpirationChange","members","updateTable"],[3,"tableId","displayedColumns","facilities",4,"ngIf"],[3,"tableId","displayedColumns","facilities"],[3,"tableId","displayedColumns","resources",4,"ngIf"],[3,"tableId","displayedColumns","resources"],[1,"ml-auto","mr-auto"]],template:function(z,Q){1&z&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"mat-tab-group",1),_.NdJ("selectedIndexChange",function(H){return Q.tabChanged(H)}),_.TgZ(4,"mat-tab",2),_.YNc(5,j,2,3,"ng-template",3),_.YNc(6,ue,2,2,"ng-template",4),_.qZA(),_.TgZ(7,"mat-tab"),_.YNc(8,de,2,3,"ng-template",3),_.YNc(9,je,4,3,"ng-template",4),_.qZA(),_.TgZ(10,"mat-tab"),_.YNc(11,ye,2,3,"ng-template",3),_.YNc(12,me,2,2,"ng-template",4),_.qZA(),_.TgZ(13,"mat-tab"),_.YNc(14,be,2,3,"ng-template",3),_.YNc(15,Xe,2,2,"ng-template",4),_.qZA(),_.qZA(),_.YNc(16,Je,1,0,"mat-spinner",5)),2&z&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"ADMIN.SEARCHER.TITLE")),_.xp6(15),_.Q6J("ngIf",Q.loading||Q.loadingEntityData))},directives:[w.SP,w.uX,w.uD,w.Vc,g.O5,ne,ge.C,J.M,Me.O,oe.X,Re.C,T.$g],pipes:[L.X$],styles:[""]}),Ve})()},80774:($e,_e,p)=>{"use strict";p.d(_e,{F:()=>T});var e=p(20449),b=p(32105),_=p(10036),w=p(9244),g=p(40009),A=p(90719),E=p(36908),C=p(5e3),I=p(48966),P=p(96214),m=p(69808),L=p(47423),O=p(7434),G=p(20773),ne=p(60205),ge=p(51062);function J(j,Y){if(1&j){const q=C.EpF();C.TgZ(0,"button",7),C.NdJ("click",function(){return C.CHM(q),C.oxw().createService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&j&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"ADMIN.SERVICES.CREATE")," "))}function Me(j,Y){if(1&j){const q=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(q),C.oxw().deleteService()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&j){const q=C.oxw();C.Q6J("disabled",0===q.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"ADMIN.SERVICES.DELETE")," ")}}function oe(j,Y){1&j&&C._UZ(0,"mat-spinner",9)}function Re(j,Y){if(1&j&&C._UZ(0,"app-services-list",10),2&j){const q=C.oxw();C.Q6J("filterValue",q.filterValue)("selection",q.selection)("services",q.services)("tableId",q.tableId)}}let T=(()=>{class j{constructor(q,te,ue){this.serviceManager=q,this.dialog=te,this.authResolver=ue,this.selection=new e.Ov(!0,[]),this.loading=!1,this.filterValue="",this.tableId=_.NL}ngOnInit(){this.serviceManager.getServices().subscribe(q=>{this.services=q,this.refreshTable()})}createService(){const q=(0,w.kZ)();q.width="600px",q.data={theme:"admin-theme"},this.dialog.open(g.R,q).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}deleteService(){const q=(0,w.kZ)();q.width="600px",q.data={theme:"admin-theme",services:this.selection.selected},this.dialog.open(A.m,q).afterClosed().subscribe(ue=>{ue&&this.refreshTable()})}refreshTable(){this.loading=!0,this.serviceManager.getServices().subscribe(q=>{this.services=q,this.selection.clear(),this.loading=!1})}applyFilter(q){this.filterValue=q}}return j.id="AdminServicesComponent",j.\u0275fac=function(q){return new(q||j)(C.Y36(b.KK),C.Y36(I.uw),C.Y36(E.x4))},j.\u0275cmp=C.Xpm({type:j,selectors:[["app-admin-services"]],decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","action-button mr-2","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"filterValue","selection","services","tableId",4,"ngIf"],["color","accent","mat-flat-button","",1,"action-button","mr-2",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],[3,"filterValue","selection","services","tableId"]],template:function(q,te){1&q&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return te.refreshTable()}),C.qZA(),C.YNc(5,J,3,3,"button",2),C.YNc(6,Me,3,4,"button",3),C.TgZ(7,"perun-web-apps-immediate-filter",4),C.NdJ("filter",function(de){return te.applyFilter(de)}),C.qZA(),C.YNc(8,oe,1,0,"mat-spinner",5),C.YNc(9,Re,1,4,"app-services-list",6),C.qZA()),2&q&&(C.xp6(2),C.Oqu(C.lcZ(3,6,"ADMIN.SERVICES.TITLE")),C.xp6(3),C.Q6J("ngIf",te.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("ngIf",te.authResolver.isPerunAdmin()),C.xp6(1),C.Q6J("placeholder","ADMIN.SERVICES.FILTER"),C.xp6(1),C.Q6J("ngIf",te.loading),C.xp6(1),C.Q6J("ngIf",!te.loading))},directives:[P.t,m.O5,L.lW,O.L,G.$g,ne.Q],pipes:[ge.X$],styles:[""]}),j})()},25828:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>P});var e=p(10036),b=p(64080),_=p(36908),w=p(5e3),g=p(64901),A=p(77446),E=p(88561),C=p(51062);const I=function(){return["user","id","name","email","logins","organization"]};let P=(()=>{class m{constructor(O){this.storeService=O,this.usersWithoutVo=!1,this.tableId=e.xx,this.attributes=[]}ngOnInit(){this.attributes=[b.r.USER_DEF_ORGANIZATION,b.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames())}onSearchByString(O){this.searchString=O}findUsersWithoutVO(){this.usersWithoutVo=!this.usersWithoutVo}}return m.id="AdminUsersComponent",m.\u0275fac=function(O){return new(O||m)(w.Y36(_.d6))},m.\u0275cmp=w.Xpm({type:m,selectors:[["app-admin-users"]],hostVars:2,hostBindings:function(O,G){2&O&&w.ekj("router-component",G.true)},decls:8,vars:16,consts:[[1,"page-subtitle"],[1,"mt-2","search-field",3,"autoFocus","placeholder","filter"],["color","primary",3,"checked","change"],[3,"disableRouting","searchString","attrNames","displayedColumns","tableId","withoutVo"]],template:function(O,G){1&O&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"perun-web-apps-debounce-filter",1),w.NdJ("filter",function(ge){return G.onSearchByString(ge)}),w.qZA(),w.TgZ(4,"mat-checkbox",2),w.NdJ("change",function(){return G.findUsersWithoutVO()}),w._uU(5),w.ALo(6,"translate"),w.qZA(),w._UZ(7,"perun-web-apps-users-dynamic-list",3)),2&O&&(w.xp6(1),w.Oqu(w.lcZ(2,11,"ADMIN.USERS.TITLE")),w.xp6(2),w.Q6J("autoFocus",!0)("placeholder","ADMIN.USERS.SEARCH_PLACEHOLDER"),w.xp6(1),w.Q6J("checked",G.usersWithoutVo),w.xp6(1),w.hij(" ",w.lcZ(6,13,"ADMIN.USERS.USERS_WITHOUT_VO"),"\n"),w.xp6(2),w.Q6J("disableRouting",!1)("searchString",G.searchString)("attrNames",G.attributes)("displayedColumns",w.DdM(15,I))("tableId",G.tableId)("withoutVo",G.usersWithoutVo))},directives:[g.P,A.oG,E.M],pipes:[C.X$],styles:[".search-field[_ngcontent-%COMP%]{width:325px}"]}),m})()},72077:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>Y});var e=p(36908),b=p(61715),_=p(40520),w=p(9244),g=p(5e3),A=p(48966),E=p(47423),C=p(51062);let I=(()=>{class q{constructor(ue){this.dialogRef=ue}onReload(){location.reload()}onClose(){this.dialogRef.close()}}return q.\u0275fac=function(ue){return new(ue||q)(g.Y36(A.so))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-new-version-dialog"]],decls:15,vars:12,consts:[["mat-dialog-title",""],[1,"user-theme"],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(ue,de){1&ue&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"div",2),g.TgZ(5,"p"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",3),g.TgZ(9,"button",4),g.NdJ("click",function(){return de.onClose()}),g._uU(10),g.ALo(11,"translate"),g.qZA(),g.TgZ(12,"button",5),g.NdJ("click",function(){return de.onReload()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA()),2&ue&&(g.xp6(1),g.Oqu(g.lcZ(2,4,"DIALOGS.NEW_VERSION.TITLE")),g.xp6(5),g.hij(" ",g.lcZ(7,6,"DIALOGS.NEW_VERSION.DESCRIPTION")," "),g.xp6(4),g.hij(" ",g.lcZ(11,8,"DIALOGS.NEW_VERSION.LATER")," "),g.xp6(3),g.hij(" ",g.lcZ(14,10,"DIALOGS.NEW_VERSION.RELOAD")," "))},directives:[A.uh,A.xY,A.H8,E.lW],pipes:[C.X$],styles:[""]}),q})();var P=p(11735),m=p(92198);let L=(()=>{class q{constructor(ue,de){this.router=ue,this.routeReuseStrategy=de;const Le=de;ue.events.subscribe(Ue=>{Ue instanceof P.OD&&Le.setLastNavigationType("popstate"===Ue.navigationTrigger?"back":"direct")})}init(){}}return q.\u0275fac=function(ue){return new(ue||q)(g.LFG(P.F0),g.LFG(P.wN))},q.\u0275prov=g.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();const O=["footer"];function G(q,te){if(1&q&&(g.TgZ(0,"div",3),g.TgZ(1,"mat-icon"),g._uU(2,"alert"),g.qZA(),g._uU(3),g.qZA()),2&q){const ue=g.oxw();g.xp6(3),g.hij(" ",ue.warningMessage,"\n")}}const ne=function(q,te){return{top:q,background:te}},ge=function(q,te){return{"margin-top":q,"min-height":te}},J=function(q){return{"border-color":q}},Me=function(q){return{background:q}},oe=function(q){return{"background-color":q}},Re=function(q){return{"min-height":q}};function T(q,te){if(1&q&&(g._UZ(0,"app-perun-nav-menu",4),g.TgZ(1,"mat-sidenav-container",5),g.TgZ(2,"mat-sidenav",6,7),g.TgZ(4,"perfect-scrollbar",8),g._UZ(5,"app-side-menu",9),g.qZA(),g.qZA(),g.TgZ(6,"mat-sidenav-content",10),g.TgZ(7,"div",11),g._UZ(8,"router-outlet"),g.qZA(),g.TgZ(9,"div",null,12),g._UZ(11,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&q){const ue=g.MAs(3),de=g.oxw();g.Q6J("principal",de.principal)("ngStyle",g.WLB(14,ne,de.getNavMenuTop(),de.navBackgroundColor))("sideNav",ue),g.xp6(1),g.Q6J("ngStyle",g.WLB(17,ge,de.getSideNavMarginTop(),de.getSideNavMinHeight())),g.xp6(1),g.Q6J("fixedInViewport",!0)("mode",de.sidebarMode)("fixedTopGap",de.getTopGap())("ngStyle",g.VKq(20,J,de.sideBarBorderColor))("opened",!de.isMobile()),g.xp6(2),g.Q6J("ngStyle",g.VKq(22,Me,de.sideMenubackgroundColor))("scrollIndicators",!0),g.xp6(1),g.Q6J("sideNav",ue),g.xp6(1),g.Q6J("ngStyle",g.VKq(24,oe,de.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(26,Re,de.contentInnerMinHeight))}}function j(q,te){1&q&&g._UZ(0,"perun-web-apps-login-screen-base",13),2&q&&g.Q6J("application","admin-gui")}let Y=(()=>{class q{constructor(ue,de,Le,Ue,ze,le,je){this.cache=ue,this.store=de,this.http=Le,this.dialog=Ue,this.router=ze,this.initAuth=le,this.cd=je,this.sidebarMode="side",this.navBackgroundColor=this.store.get("theme","nav_bg_color"),this.sideBarBorderColor=this.store.get("theme","sidemenu_border_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.sideMenubackgroundColor=this.store.get("theme","sidemenu_bg_color"),this.displayWarning=this.store.get("display_warning"),this.warningMessage=this.store.get("warning_message"),this.version=p(4147).i8,this.contentInnerMinHeight=this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)",this.cache.init(),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side",this.lastScreenWidth=window.innerWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}isMobile(){return window.innerWidth<=q.minWidth}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),null===sessionStorage.getItem("initPage")&&(sessionStorage.setItem("initPage",location.pathname),sessionStorage.setItem("onInitPage","true")),this.store.setInitialPageId(1),this.principal=this.store.getPerunPrincipal(),this.loadAppVersion(),(0,b.F)(3e4).subscribe(()=>{this.loadAppVersion()}),this.router.events.pipe((0,m.h)(ue=>ue instanceof P.OD)).subscribe(ue=>{this.updateInitAccessedPage(ue)})}getTopGap(){return this.displayWarning?112:64}getSideNavMarginTop(){return this.displayWarning?"112px":"64px"}getSideNavMinHeight(){return this.displayWarning?"calc(100vh - 112px)":"calc(100vh - 64px)"}getNavMenuTop(){return this.displayWarning?"48px":"0"}ngAfterViewInit(){var ue,de,Le,Ue;const ze=null!==(Ue=null===(Le=null===(de=null===(ue=this.footer)||void 0===ue?void 0:ue.nativeElement)||void 0===de?void 0:de.offsetHeight)||void 0===Le?void 0:Le.toString())&&void 0!==Ue?Ue:"0";this.contentInnerMinHeight=this.displayWarning?"calc(100vh - "+ze+"px - 112px)":"calc(100vh - "+ze+"px - 64px)",this.cd.detectChanges()}updateInitAccessedPage(ue){ue.url===sessionStorage.getItem("initPage")?("imperative"===ue.navigationTrigger&&ue.id!==this.store.getInitialPageId()&&sessionStorage.setItem("onInitPage","false"),"popstate"===ue.navigationTrigger&&(ue.restoredState.navigationId===this.store.getInitialPageId()?(sessionStorage.setItem("onInitPage","true"),this.store.setInitialPageId(ue.id)):sessionStorage.setItem("onInitPage","false"))):sessionStorage.setItem("onInitPage","false")}loadAppVersion(){const ue=new _.WM({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"});this.http.get("/assets/config/version.json",{headers:ue}).subscribe(de=>{const Le=de.version;if(Le)if(this.version&&"SNAPSHOT"!==Le&&this.version!==Le){const Ue=(0,w.kZ)();this.dialog.open(I,Ue)}else this.version=Le})}}return q.minWidth=992,q.\u0275fac=function(ue){return new(ue||q)(g.Y36(L),g.Y36(e.d6),g.Y36(_.eN),g.Y36(A.uw),g.Y36(P.F0),g.Y36(e.v0),g.Y36(g.sBO))},q.\u0275cmp=g.Xpm({type:q,selectors:[["app-root"]],viewQuery:function(ue,de){if(1&ue&&g.Gf(O,5),2&ue){let Le;g.iGM(Le=g.CRH())&&(de.footer=Le.first)}},hostBindings:function(ue,de){1&ue&&g.NdJ("resize",function(Ue){return de.getScreenSize(Ue)},!1,g.Jf7)},decls:4,vars:4,consts:[["class","beta-warning",4,"ngIf"],[3,"displayWarning"],[3,"ngIf"],[1,"beta-warning"],["id","nav-menu",1,"mat-elevation-z3",3,"principal","ngStyle","sideNav"],[3,"ngStyle"],[3,"fixedInViewport","mode","fixedTopGap","ngStyle","opened"],["sidenav",""],[3,"ngStyle","scrollIndicators"],[3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application"]],template:function(ue,de){1&ue&&(g.YNc(0,G,4,1,"div",0),g._UZ(1,"perun-web-apps-notificator",1),g.YNc(2,T,12,28,"ng-template",2),g.YNc(3,j,1,1,"ng-template",2)),2&ue&&(g.Q6J("ngIf",de.displayWarning),g.xp6(1),g.Q6J("displayWarning",de.displayWarning),g.xp6(1),g.Q6J("ngIf",!de.isLoginScreenShow&&!de.isServiceAccess&&!de.isServiceLogin()),g.xp6(1),g.Q6J("ngIf",de.isLoginScreenShow||de.isServiceAccess||de.isServiceLogin()))},styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px}.beta-warning[_ngcontent-%COMP%]{overflow:hidden;height:48px;position:fixed;z-index:999;top:0;background-color:#ffbfc5;width:100%;color:#d32f2f;text-align:center;font-weight:500;padding:6px;line-height:36px;font-size:1rem}"]}),q})()},77968:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>b});var e=p(5e3);let b=(()=>{class _{constructor(){this.accessItemsChange=new e.vpe,this.facilityItemsChange=new e.vpe,this.adminItemsChange=new e.vpe,this.userItemsChange=new e.vpe,this.resetChange=new e.vpe,this.homeItemsChange=new e.vpe}setHomeItems(g){this.homeItemsChange.emit(g)}setAccessMenuItems(g){this.accessItemsChange.emit(g)}setFacilityMenuItems(g){this.facilityItemsChange.emit(g)}setAdminItems(g){this.adminItemsChange.emit(g)}setUserItems(g){this.userItemsChange.emit(g)}reset(){this.resetChange.emit()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275prov=e.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})()},37380:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>Me});var e=p(32105),b=p(10036),_=p(36908),w=p(5e3),g=p(96214),A=p(67322),E=p(74107),C=p(90508),I=p(69808),P=p(7434),m=p(20773),L=p(24179),O=p(51062);function G(oe,Re){if(1&oe&&(w.TgZ(0,"mat-option",9),w._uU(1),w.qZA()),2&oe){const T=Re.$implicit;w.Q6J("value",T.id),w.xp6(1),w.hij(" ",T.name," ")}}function ne(oe,Re){1&oe&&w._UZ(0,"mat-spinner",10)}const ge=function(){return["id","vo","name","description"]};function J(oe,Re){if(1&oe&&w._UZ(0,"perun-web-apps-groups-list",11),2&oe){const T=w.oxw();w.Q6J("displayedColumns",w.DdM(6,ge))("groups",T.groupsToShow)("disableMembers",!1)("filter",T.filterValue)("groupsToDisableRouting",T.groupsWithoutRouteAuth)("tableId",T.tableId)}}let Me=(()=>{class oe{constructor(T,j,Y){this.facilityManager=T,this.authResolver=j,this.entityStorageService=Y,this.groups=[],this.filterValue="",this.selected="all",this.groupsToShow=this.groups,this.tableId=b.Aj,this.groupsWithoutRouteAuth=new Set}ngOnInit(){this.loading=!0,this.facility=this.entityStorageService.getEntity(),this.facilityManager.getAllowedVos(this.facility.id).subscribe(T=>{this.vos=T,this.refreshTable()})}showGroup(){this.groupsToShow="all"!==this.selected?this.groups.filter(T=>T.voId===parseInt(this.selected,10)):this.groups}refreshTable(){this.loading=!0,this.groups=[],this.vos.forEach(T=>{this.facilityManager.getAllowedGroups(this.facility.id,T.id).subscribe(j=>{this.groups=this.groups.concat(j),this.groupsToShow=this.groups,this.setAuthRights(T,j),this.loading=!1})}),0===this.vos.length&&(this.loading=!1)}setAuthRights(T,j){j.forEach(Y=>{this.authResolver.isAuthorized("getGroupById_int_policy",[T,Y])||this.groupsWithoutRouteAuth.add(Y.id)})}applyFilter(T){this.filterValue=T}}return oe.id="FacilityAllowedGroupsComponent",oe.\u0275fac=function(T){return new(T||oe)(w.Y36(e.IQ),w.Y36(_.x4),w.Y36(_.fb))},oe.\u0275cmp=w.Xpm({type:oe,selectors:[["app-facility-allowed-groups"]],hostVars:2,hostBindings:function(T,j){2&T&&w.ekj("router-component",j.true)},inputs:{groups:"groups"},decls:17,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],[1,"mr-2"],[3,"value","selectionChange","valueChange"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId",4,"ngIf"],[3,"value"],[1,"ml-auto","mr-auto"],[3,"displayedColumns","groups","disableMembers","filter","groupsToDisableRouting","tableId"]],template:function(T,j){1&T&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.TgZ(4,"perun-web-apps-refresh-button",1),w.NdJ("refresh",function(){return j.refreshTable()}),w.qZA(),w.TgZ(5,"mat-form-field",2),w.TgZ(6,"mat-label"),w._uU(7),w.ALo(8,"translate"),w.qZA(),w.TgZ(9,"mat-select",3),w.NdJ("selectionChange",function(){return j.showGroup()})("valueChange",function(q){return j.selected=q}),w.TgZ(10,"mat-option",4),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.YNc(13,G,2,2,"mat-option",5),w.qZA(),w.qZA(),w.TgZ(14,"perun-web-apps-immediate-filter",6),w.NdJ("filter",function(q){return j.applyFilter(q)}),w.qZA(),w.YNc(15,ne,1,0,"mat-spinner",7),w.YNc(16,J,1,7,"perun-web-apps-groups-list",8),w.qZA()),2&T&&(w.xp6(2),w.Oqu(w.lcZ(3,8,"MENU_ITEMS.FACILITY.ALLOWED_GROUPS")),w.xp6(5),w.Oqu(w.lcZ(8,10,"FACILITY_DETAIL.ALLOWED_GROUPS.SHOW_VOS_GROUPS")),w.xp6(2),w.Q6J("value",j.selected),w.xp6(2),w.Oqu(w.lcZ(12,12,"FACILITY_DETAIL.ALLOWED_GROUPS.ALL")),w.xp6(2),w.Q6J("ngForOf",j.vos),w.xp6(1),w.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_GROUPS.FILTER"),w.xp6(1),w.Q6J("ngIf",j.loading),w.xp6(1),w.Q6J("ngIf",!j.loading))},directives:[g.t,A.KE,A.hX,E.gD,C.ey,I.sg,P.L,I.O5,m.$g,L.W],pipes:[O.X$],styles:[""]}),oe})()},25610:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>q});var e=p(10036),b=p(32105),_=p(36908),w=p(64080),g=p(5e3),A=p(96214),E=p(64901),C=p(47423),I=p(25245),P=p(51062);let m=(()=>{class te{constructor(){this.changeAdvancedFilter=new g.vpe,this.clearFilters=new g.vpe}ngOnInit(){this.changeAdvancedFilter.emit(this.advancedFilter)}toggleAdvancedFilter(){this.advancedFilter=!this.advancedFilter,this.changeAdvancedFilter.emit(this.advancedFilter)}}return te.\u0275fac=function(de){return new(de||te)},te.\u0275cmp=g.Xpm({type:te,selectors:[["perun-web-apps-advanced-filter"]],inputs:{filtersCount:"filtersCount",advancedFilter:"advancedFilter"},outputs:{changeAdvancedFilter:"changeAdvancedFilter",clearFilters:"clearFilters"},decls:12,vars:11,consts:[["mat-stroked-button","",3,"click"]],template:function(de,Le){1&de&&(g.TgZ(0,"button",0),g.NdJ("click",function(){return Le.toggleAdvancedFilter()}),g.TgZ(1,"mat-icon"),g._uU(2,"filter_list"),g.qZA(),g._uU(3),g.ALo(4,"translate"),g.TgZ(5,"mat-icon"),g._uU(6),g.qZA(),g.qZA(),g.TgZ(7,"button",0),g.NdJ("click",function(){return Le.clearFilters.emit()}),g.TgZ(8,"mat-icon"),g._uU(9,"filter_list_off"),g.qZA(),g._uU(10),g.ALo(11,"translate"),g.qZA()),2&de&&(g.Gre("mr-2 ",Le.filtersCount?"grey":"no-color",""),g.xp6(3),g.AsE(" ",g.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.FILTERS")," ",Le.filtersCount?"("+Le.filtersCount+")":null," "),g.xp6(3),g.Oqu(Le.advancedFilter?"arrow_drop_up":"arrow_drop_down"),g.xp6(4),g.hij(" ",g.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.ADVANCED_FILTER.CLEAR_FILTERS"),"\n"))},directives:[C.lW,I.Hw],pipes:[P.X$],styles:[".grey[_ngcontent-%COMP%]{color:#fff;background-color:gray}.no-color[_ngcontent-%COMP%]{color:#000;background-color:transparent}"]}),te})();var L=p(69808),O=p(32368),G=p(93075),ne=p(62707),ge=p(45703),J=p(30540),Me=p(20773),oe=p(88561);function Re(te,ue){if(1&te){const de=g.EpF();g.TgZ(0,"div",8),g.TgZ(1,"div",9),g.TgZ(2,"mat-slide-toggle",10),g.NdJ("ngModelChange",function(Ue){return g.CHM(de),g.oxw().allowed=Ue})("change",function(){return g.CHM(de),g.oxw().changeFilter()}),g._uU(3),g.ALo(4,"translate"),g.qZA(),g.TgZ(5,"span",11),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.qZA(),g.TgZ(8,"div",1),g.TgZ(9,"perun-web-apps-vo-search-select",12),g.NdJ("voSelected",function(Ue){return g.CHM(de),g.oxw().voSelected(Ue)}),g.qZA(),g.TgZ(10,"perun-web-apps-resource-search-select",13),g.NdJ("resourceSelected",function(Ue){return g.CHM(de),g.oxw().resourceSelected(Ue)}),g.qZA(),g.TgZ(11,"perun-web-apps-service-search-select",14),g.NdJ("serviceSelected",function(Ue){return g.CHM(de),g.oxw().serviceSelected(Ue)}),g.qZA(),g.qZA(),g.qZA()}if(2&te){const de=g.oxw();g.xp6(2),g.Q6J("ngModel",de.allowed),g.xp6(1),g.hij(" ",g.lcZ(4,10,"FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED")," "),g.xp6(3),g.Oqu(g.lcZ(7,12,de.toggle_messages[de.allowed?1:0])),g.xp6(3),g.Q6J("vos",de.vos)("vo",de.selectedVo),g.xp6(1),g.Q6J("resources",de.filteredResources)("displayStatus",!1)("resource",de.selectedResource),g.xp6(1),g.Q6J("services",de.filteredServices)("service",de.selectedService)}}function T(te,ue){1&te&&g._UZ(0,"mat-spinner",15)}const j=function(){return["id","name","email","logins","organization"]};function Y(te,ue){if(1&te&&g._UZ(0,"perun-web-apps-users-dynamic-list",16),2&te){const de=g.oxw();g.Q6J("attrNames",de.attributes)("disableRouting",!de.routeAuth)("displayedColumns",g.DdM(10,j))("onlyAllowed",de.allowed)("facilityId",de.facility.id)("searchString",de.filterValue)("resourceId",-1===de.selectedResource.id?null:de.selectedResource.id)("serviceId",-1===de.selectedService.id?null:de.selectedService.id)("tableId",de.tableId)("voId",-1===de.selectedVo.id?null:de.selectedVo.id)}}let q=(()=>{class te{constructor(de,Le,Ue,ze,le,je){this.facilityService=de,this.serviceService=Le,this.resourceService=Ue,this.authResolver=ze,this.storeService=le,this.entityStorageService=je,this.loading=!1,this.filterValue="",this.attributes=[],this.allowed=!0,this.emptyResource={id:-1,beanName:"Resource",name:"No filter"},this.resources=[this.emptyResource],this.filteredResources=[this.emptyResource],this.selectedResource=this.emptyResource,this.emptyVo={id:-1,beanName:"Vo",name:"No filter"},this.vos=[this.emptyVo],this.selectedVo=this.emptyVo,this.emptyService={id:-1,beanName:"Service",name:"No filter"},this.services=[this.emptyService],this.filteredServices=[this.emptyService],this.selectedService=this.emptyService,this.resourceAssignedServices=new Map,this.tableId=e.z6,this.toggle_messages=["FACILITY_DETAIL.ALLOWED_USERS.FILTER_ASSIGNED_MSG","FACILITY_DETAIL.ALLOWED_USERS.FILTER_ALLOWED_MSG"],this.advancedFilter=!1}ngOnInit(){this.loading=!0,this.attributes=[w.r.USER_DEF_ORGANIZATION,w.r.USER_DEF_PREFERRED_MAIL],this.attributes=this.attributes.concat(this.storeService.getLoginAttributeNames()),this.facility=this.entityStorageService.getEntity(),this.routeAuth=this.authResolver.isPerunAdminOrObserver(),this.changeFilter(),this.refreshPage()}changeFilter(){this.filtersCount=this.allowed?1:0,-1!==this.selectedVo.id&&(this.filtersCount+=1),-1!==this.selectedResource.id&&(this.filtersCount+=1),-1!==this.selectedService.id&&(this.filtersCount+=1)}clearFilters(){this.allowed=!1,this.selectedVo=this.emptyVo,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,this.filtersCount=0}refreshPage(){this.loading=!0,this.facilityService.getAssignedResourcesForFacility(this.facility.id).subscribe(de=>{this.resources=[this.emptyResource].concat(de),this.filteredResources=this.resources,this.facilityService.getAllowedVos(this.facility.id).subscribe(Le=>{this.vos=[this.emptyVo].concat(Le),this.services=[],this.getAssignedServices(this.resources,this.resources.length-1)},()=>this.loading=!1)},()=>this.loading=!1)}getAssignedServices(de,Le){if(0===Le)return this.services=[this.emptyService].concat(this.services),this.filteredServices=this.services,this.changeFilter(),void(this.loading=!1);this.resourceService.getAssignedServicesToResource(de[Le].id).subscribe(Ue=>{this.services=this.services.concat(Ue),this.resourceAssignedServices.set(de[Le].id,Ue.map(ze=>ze.id)),this.getAssignedServices(de,Le-1)},()=>this.loading=!1)}getFilteredServices(de){const Le=new Set;return de.forEach(Ue=>{this.resourceAssignedServices.get(Ue.id).forEach(ze=>Le.add(ze))}),[this.emptyService].concat(this.services.filter(Ue=>Le.has(Ue.id)))}applyFilter(de){this.filterValue=de}voSelected(de){this.selectedVo.id!==de.id&&(this.selectedVo=de,this.selectedResource=this.emptyResource,this.selectedService=this.emptyService,-1===de.id?(this.filteredResources=this.resources,this.filteredServices=this.services):(this.filteredResources=this.resources.filter(Le=>Le.voId===de.id),this.filteredServices=this.getFilteredServices(this.filteredResources),this.filteredResources=[this.emptyResource].concat(this.filteredResources)),this.changeFilter())}resourceSelected(de){this.selectedResource.id!==de.id&&(this.selectedResource=de,this.selectedService=this.emptyService,this.filteredServices=-1===de.id?this.services:this.getFilteredServices([de]),this.changeFilter())}serviceSelected(de){this.selectedService=de,this.changeFilter()}}return te.id="FacilityAllowedUsersComponent",te.\u0275fac=function(de){return new(de||te)(g.Y36(b.IQ),g.Y36(b.KK),g.Y36(b.xk),g.Y36(_.x4),g.Y36(_.d6),g.Y36(_.fb))},te.\u0275cmp=g.Xpm({type:te,selectors:[["app-facility-allowed-users"]],decls:11,vars:9,consts:[[1,"page-subtitle"],[1,"filters"],[1,"mr-2",3,"refresh"],[1,"mr-2","filter",3,"placeholder","filter"],[3,"advancedFilter","filtersCount","changeAdvancedFilter","clearFilters"],["class","advanced-filter",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId",4,"ngIf"],[1,"advanced-filter"],[1,"toggle","filters"],["labelPosition","before",1,"mr-2",3,"ngModel","ngModelChange","change"],[1,"text-muted"],[1,"search-select",3,"vos","vo","voSelected"],[1,"search-select",3,"resources","displayStatus","resource","resourceSelected"],[1,"search-select",3,"services","service","serviceSelected"],[1,"ml-auto","mr-auto"],[3,"attrNames","disableRouting","displayedColumns","onlyAllowed","facilityId","searchString","resourceId","serviceId","tableId","voId"]],template:function(de,Le){1&de&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",1),g.TgZ(5,"perun-web-apps-refresh-button",2),g.NdJ("refresh",function(){return Le.refreshPage()}),g.qZA(),g.TgZ(6,"perun-web-apps-debounce-filter",3),g.NdJ("filter",function(ze){return Le.applyFilter(ze)}),g.qZA(),g.TgZ(7,"perun-web-apps-advanced-filter",4),g.NdJ("changeAdvancedFilter",function(ze){return Le.advancedFilter=ze})("clearFilters",function(){return Le.clearFilters()}),g.qZA(),g.qZA(),g.YNc(8,Re,12,14,"div",5),g.YNc(9,T,1,0,"mat-spinner",6),g.YNc(10,Y,1,11,"perun-web-apps-users-dynamic-list",7),g.qZA()),2&de&&(g.xp6(2),g.Oqu(g.lcZ(3,7,"FACILITY_DETAIL.ALLOWED_USERS.TITLE")),g.xp6(4),g.Q6J("placeholder","FACILITY_DETAIL.ALLOWED_USERS.FILTER"),g.xp6(1),g.Q6J("advancedFilter",Le.advancedFilter)("filtersCount",Le.filtersCount),g.xp6(1),g.Q6J("ngIf",Le.advancedFilter),g.xp6(1),g.Q6J("ngIf",Le.loading),g.xp6(1),g.Q6J("ngIf",!Le.loading))},directives:[A.t,E.P,m,L.O5,O.Rr,G.JJ,G.On,ne.M,ge.L,J.J,Me.$g,oe.M],pipes:[P.X$],styles:[".filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline}.filter[_ngcontent-%COMP%]{min-width:350px}.search-select[_ngcontent-%COMP%]{width:32%;margin-right:20px;margin-top:30px}.toggle[_ngcontent-%COMP%]{display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%]{border:1px solid lightgray;padding:15px}"]}),te})()},34904:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>de});var e=p(20449),b=p(533),_=p(32105),w=p(93075),g=p(48966),A=p(36908),E=p(5e3),C=p(51062),I=p(69808),P=p(20773),m=p(62707),L=p(67322),O=p(98833),G=p(47423);function ne(Le,Ue){1&Le&&E._UZ(0,"mat-spinner",5)}function ge(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"div",6),E.TgZ(1,"perun-web-apps-vo-search-select",7),E.NdJ("voSelected",function(je){return E.CHM(ze),E.oxw().selectedVo=je}),E.qZA(),E.TgZ(2,"mat-form-field"),E._UZ(3,"input",8),E.ALo(4,"translate"),E.TgZ(5,"mat-error"),E._uU(6),E.ALo(7,"translate"),E.qZA(),E.qZA(),E.TgZ(8,"mat-form-field"),E._UZ(9,"input",9),E.ALo(10,"translate"),E.TgZ(11,"mat-error"),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.qZA(),E.qZA()}if(2&Le){const ze=E.oxw();E.xp6(1),E.Q6J("vos",ze.vos),E.xp6(2),E.s9C("placeholder",E.lcZ(4,7,"DIALOGS.CREATE_RESOURCE.NAME")),E.Q6J("formControl",ze.nameCtrl),E.xp6(3),E.hij(" ",E.lcZ(7,9,"DIALOGS.CREATE_RESOURCE.INCORRECT_NAME")," "),E.xp6(3),E.s9C("placeholder",E.lcZ(10,11,"DIALOGS.CREATE_RESOURCE.DESCRIPTION")),E.Q6J("formControl",ze.descriptionCtrl),E.xp6(3),E.hij(" ",E.lcZ(13,13,"DIALOGS.CREATE_RESOURCE.FILL_DESCRIPTION")," ")}}let J=(()=>{class Le{constructor(ze,le,je,ye,Be,W){this.dialogRef=ze,this.data=le,this.notificator=je,this.voService=ye,this.translate=Be,this.resourcesManager=W,this.vos=[],this.selectedVo=null,Be.get("DIALOGS.CREATE_RESOURCE.SUCCESS").subscribe(R=>this.successMessage=R)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voService.getAllVos().subscribe(ze=>{this.vos=ze,this.loading=!1},()=>this.loading=!1),this.nameCtrl=new w.NI(null,[w.kI.required,w.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new w.NI("")}onSubmit(){this.loading=!0,this.resourcesManager.createResource(this.selectedVo.id,this.data.facilityId,this.nameCtrl.value,this.descriptionCtrl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Le.\u0275fac=function(ze){return new(ze||Le)(E.Y36(g.so),E.Y36(g.WI),E.Y36(A.V6),E.Y36(_.YF),E.Y36(C.sK),E.Y36(_.xk))},Le.\u0275cmp=E.Xpm({type:Le,selectors:[["app-create-resource-dialog"]],decls:10,vars:12,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-resource-dialog-button","color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["data-cy","create-resource-select-vo",3,"vos","voSelected"],["matInput","","data-cy","create-resource-name-input","required","",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(ze,le){1&ze&&(E.TgZ(0,"div"),E.YNc(1,ne,1,0,"mat-spinner",0),E.YNc(2,ge,14,15,"div",1),E.TgZ(3,"div",2),E.TgZ(4,"button",3),E.NdJ("click",function(){return le.onCancel()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"button",4),E.NdJ("click",function(){return le.onSubmit()}),E._uU(8),E.ALo(9,"translate"),E.qZA(),E.qZA(),E.qZA()),2&ze&&(E.Tol(le.theme),E.xp6(1),E.Q6J("ngIf",le.loading),E.xp6(1),E.Q6J("ngIf",!le.loading),E.xp6(3),E.hij(" ",E.lcZ(6,8,"DIALOGS.CREATE_RESOURCE.CANCEL")," "),E.xp6(2),E.Q6J("disabled",le.nameCtrl.invalid||le.descriptionCtrl.invalid||null===le.selectedVo||le.loading),E.xp6(1),E.hij(" ",E.lcZ(9,10,"DIALOGS.CREATE_RESOURCE.CREATE")," "))},directives:[I.O5,P.$g,g.xY,m.M,L.KE,O.Nt,w.Fj,w.Q7,w.JJ,w.oH,L.TO,g.H8,G.lW],pipes:[C.X$],styles:[".long-input[_ngcontent-%COMP%]{width:100%}"]}),Le})();var Me=p(10036),oe=p(9244),Re=p(96214),T=p(7434),j=p(62109);function Y(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"button",7),E.NdJ("click",function(){return E.CHM(ze),E.oxw().createResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"FACILITY_DETAIL.RESOURCES.CREATE")," "))}function q(Le,Ue){if(1&Le){const ze=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(ze),E.oxw().removeResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Le){const ze=E.oxw();E.Q6J("disabled",0===ze.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"FACILITY_DETAIL.RESOURCES.DELETE")," ")}}function te(Le,Ue){1&Le&&E._UZ(0,"mat-spinner",9)}function ue(Le,Ue){if(1&Le&&E._UZ(0,"perun-web-apps-resources-list",10),2&Le){const ze=E.oxw();E.Q6J("tableId",ze.tableId)("filterValue",ze.filterValue)("resources",ze.resources)("selection",ze.selected)("disableRouting",!ze.routeAuth)("displayedColumns",ze.displayedColumns)}}let de=(()=>{class Le{constructor(ze,le,je,ye){this.dialog=ze,this.facilitiesManager=le,this.authResolver=je,this.entityStorageService=ye,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=Me.CP,this.displayedColumns=["id","vo","facility","description"]}ngOnInit(){this.facility=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}removeResource(){const ze=(0,oe.kZ)();ze.width="450px",ze.data={theme:"facility-theme",resources:this.selected.selected},this.dialog.open(b.f,ze).afterClosed().subscribe(je=>{je&&this.refreshTable()})}refreshTable(){this.loading=!0,this.facilitiesManager.getAssignedRichResourcesForFacility(this.facility.id).subscribe(ze=>{this.resources=ze,this.selected.clear(),this.setAuthRights(),this.loading=!1})}setAuthRights(){this.addAuth=this.authResolver.isAuthorized("createResource_Resource_Vo_Facility_policy",[this.facility]),this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.facility]),this.displayedColumns=this.removeAuth?["select","id","name","vo","description"]:["id","name","vo","description"],0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getRichResourceById_int_policy",[this.facility,this.resources[0]]))}applyFilter(ze){this.filterValue=ze}createResource(){const ze=(0,oe.kZ)();ze.width="1350px",ze.data={facilityId:this.facility.id,theme:"facility-theme"},this.dialog.open(J,ze).afterClosed().subscribe(je=>{je&&this.refreshTable()})}}return Le.id="FacilityResourcesComponent",Le.\u0275fac=function(ze){return new(ze||Le)(E.Y36(g.uw),E.Y36(_.IQ),E.Y36(A.x4),E.Y36(A.fb))},Le.\u0275cmp=E.Xpm({type:Le,selectors:[["app-facility-resources"]],hostVars:2,hostBindings:function(ze,le){2&ze&&E.ekj("router-component",le.true)},decls:10,vars:8,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","data-cy","create-resource-button","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2","data-cy","delete-resource-button",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent","data-cy","create-resource-button",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn","data-cy","delete-resource-button",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","filterValue","resources","selection","disableRouting","displayedColumns"]],template:function(ze,le){1&ze&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return le.refreshTable()}),E.qZA(),E.YNc(5,Y,3,3,"button",2),E.YNc(6,q,3,4,"button",3),E.TgZ(7,"perun-web-apps-immediate-filter",4),E.NdJ("filter",function(ye){return le.applyFilter(ye)}),E.qZA(),E.YNc(8,te,1,0,"mat-spinner",5),E.YNc(9,ue,1,6,"perun-web-apps-resources-list",6),E.qZA()),2&ze&&(E.xp6(2),E.Oqu(E.lcZ(3,6,"FACILITY_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",le.addAuth),E.xp6(1),E.Q6J("ngIf",le.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",le.loading),E.xp6(1),E.Q6J("ngIf",!le.loading))},directives:[Re.t,I.O5,G.lW,T.L,P.$g,j.C],pipes:[C.X$],styles:[""]}),Le})()},86353:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>ye});var e=p(32105),b=p(9244),_=p(10036),w=p(20449),g=p(48966),A=p(36908),E=p(93075),C=p(5e3),I=p(51062),P=p(11735),m=p(69808),L=p(20773),O=p(67322),G=p(98833),ne=p(74107),ge=p(90508),J=p(98380),Me=p(47423);function oe(Be,W){1&Be&&C._UZ(0,"mat-spinner",7)}function Re(Be,W){if(1&Be){const R=C.EpF();C.TgZ(0,"mat-option",16),C.NdJ("click",function(){const Ie=C.CHM(R).$implicit;return C.oxw(2).srcFacility=Ie}),C._uU(1),C.qZA()}if(2&Be){const R=W.$implicit;C.Q6J("value",R),C.xp6(1),C.hij(" ",R.name," ")}}function T(Be,W){if(1&Be){const R=C.EpF();C.TgZ(0,"div",8),C.TgZ(1,"mat-form-field"),C._UZ(2,"input",9),C.ALo(3,"translate"),C.TgZ(4,"mat-error"),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA(),C.TgZ(7,"mat-form-field"),C._UZ(8,"input",10),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"mat-form-field"),C.TgZ(11,"mat-select",11),C.ALo(12,"translate"),C.TgZ(13,"mat-option",12),C.NdJ("click",function(){return C.CHM(R),C.oxw().srcFacility=null}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.YNc(16,Re,2,2,"mat-option",13),C.qZA(),C.qZA(),C.TgZ(17,"perun-web-apps-alert",14),C._UZ(18,"i",15),C.ALo(19,"translate"),C.qZA(),C.qZA()}if(2&Be){const R=C.oxw();C.xp6(2),C.s9C("placeholder",C.lcZ(3,9,"DIALOGS.CREATE_FACILITY.NAME")),C.Q6J("formControl",R.nameControl),C.xp6(3),C.Oqu(C.lcZ(6,11,"DIALOGS.CREATE_FACILITY.REQUIRE_NAME")),C.xp6(3),C.s9C("placeholder",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.DESCRIPTION")),C.Q6J("formControl",R.descControl),C.xp6(3),C.s9C("placeholder",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.AS_COPY")),C.xp6(3),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.NO_COPY")," "),C.xp6(2),C.Q6J("ngForOf",R.facilities),C.xp6(2),C.Q6J("innerHTML",C.lcZ(19,19,"DIALOGS.CREATE_FACILITY.HINT"),C.oJD)}}let j=(()=>{class Be{constructor(R,me,be,Ie,pe,Se,Xe){this.dialogRef=R,this.data=me,this.facilitiesManager=be,this.notificator=Ie,this.translate=pe,this.router=Se,this.entityStorageService=Xe,this.nameControl=new E.NI("",[E.kI.required]),this.descControl=new E.NI(""),this.srcFacility=null,this.loading=!1,this.configure=!1}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.facilitiesManager.getAllFacilities().subscribe(R=>{this.facilities=R,this.loading=!1},()=>this.loading=!1)}onCreate(R){this.loading=!0,this.configure=R,this.facilitiesManager.createFacility(this.nameControl.value,this.descControl.value).subscribe(me=>{this.entityStorageService.setEntity({id:me.id,beanName:me.beanName}),sessionStorage.setItem("newFacilityId",String(me.id)),null!==this.srcFacility?this.copyFacilitySettings(me.id):this.handleSuccess(me.id)})}onCancel(){this.dialogRef.close(!1)}copyFacilitySettings(R){this.facilitiesManager.copyAttributes(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyManagers(this.srcFacility.id,R).subscribe(()=>{this.facilitiesManager.copyOwners(this.srcFacility.id,R).subscribe(()=>{this.handleSuccess(R)},()=>this.loading=!1)},()=>this.loading=!1)},()=>this.loading=!1)}handleSuccess(R){this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_FACILITY.SUCCESS")),this.configure&&this.router.navigate(["facilities",R.toString(),"configuration"]),this.dialogRef.close(!0)}}return Be.\u0275fac=function(R){return new(R||Be)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.IQ),C.Y36(A.V6),C.Y36(I.sK),C.Y36(P.F0),C.Y36(A.fb))},Be.\u0275cmp=C.Xpm({type:Be,selectors:[["app-create-facility-dialog"]],decls:16,vars:19,consts:[[1,"mat-dialog-title"],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","create-facility-button","color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","data-cy","facility-name-input",3,"formControl","placeholder"],["matInput","","data-cy","facility-description-input",3,"formControl","placeholder"],["disableOptionCentering","true",3,"placeholder"],[3,"click"],[3,"value","click",4,"ngFor","ngForOf"],["alert_type","info"],[3,"innerHTML"],[3,"value","click"]],template:function(R,me){1&R&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,oe,1,0,"mat-spinner",1),C.YNc(5,T,20,21,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onCreate(!1)}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"button",6),C.NdJ("click",function(){return me.onCreate(!0)}),C._uU(14),C.ALo(15,"translate"),C.qZA(),C.qZA(),C.qZA()),2&R&&(C.Tol(me.theme),C.xp6(2),C.Oqu(C.lcZ(3,11,"DIALOGS.CREATE_FACILITY.TITLE")),C.xp6(2),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading),C.xp6(3),C.hij(" ",C.lcZ(9,13,"DIALOGS.CREATE_FACILITY.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||me.loading),C.xp6(1),C.hij(" ",C.lcZ(12,15,"DIALOGS.CREATE_FACILITY.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.nameControl.value.trim().length||!!me.srcFacility||me.loading),C.xp6(1),C.hij(" ",C.lcZ(15,17,"DIALOGS.CREATE_FACILITY.CREATE_AND_CONFIGURE")," "))},directives:[m.O5,L.$g,g.xY,O.KE,G.Nt,E.Fj,E.Q7,E.JJ,E.oH,O.TO,ne.gD,ge.ey,m.sg,J.w,g.H8,Me.lW],pipes:[I.X$],styles:[""]}),Be})();var Y=p(54037),q=p(77968),te=p(4235),ue=p(25245),de=p(96214),Le=p(7434),Ue=p(74010);function ze(Be,W){1&Be&&C._UZ(0,"mat-spinner",9)}function le(Be,W){if(1&Be&&C._UZ(0,"perun-web-apps-facilities-list",10),2&Be){const R=C.oxw();C.Q6J("tableId",R.tableId)("selection",R.selection)("filterValue",R.filterValue)("facilities",R.facilities)("recentIds",R.recentIds)}}const je=function(){return{color:"black"}};let ye=(()=>{class Be{constructor(R,me,be){this.facilityManager=R,this.sideMenuService=me,this.dialog=be,this.facilities=[],this.recentIds=[],this.filterValue="",this.tableId=_.xt,this.selection=new w.Ov(!1,[])}ngOnInit(){this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setFacilityMenuItems([])}refreshTable(){this.loading=!0,this.facilityManager.getEnrichedFacilities().subscribe(R=>{this.selection.clear(),this.facilities=R,this.recentIds=(0,b.vL)("facilities"),this.loading=!1})}onCreate(){const R=(0,b.kZ)();R.width="800px",R.data={theme:"facility-theme"},this.dialog.open(j,R).afterClosed().subscribe(be=>{be&&(this.loading=!0,this.refreshTable())})}onDelete(){const R=(0,b.kZ)();R.width="500px",R.data={theme:"facility-theme",facility:this.selection.selected[0].facility},this.dialog.open(Y.Y,R).afterClosed().subscribe(be=>{be&&this.refreshTable()})}applyFilter(R){this.filterValue=R}}return Be.id="FacilitySelectPageComponent",Be.\u0275fac=function(R){return new(R||Be)(C.Y36(e.IQ),C.Y36(q.D),C.Y36(g.uw))},Be.\u0275cmp=C.Xpm({type:Be,selectors:[["app-facility-select-page"]],hostVars:2,hostBindings:function(R,me){2&R&&C.ekj("router-component",me.true)},decls:16,vars:16,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","facility-theme"],[1,"page-title","d-flex"],["svgIcon","perun-facility-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["mat-flat-button","","data-cy","new-facility-button","color","accent",1,"action-button","mr-2",3,"click"],["mat-flat-button","","data-cy","delete-facility-button","color","warn",1,"mr-2",3,"disabled","click"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","selection","filterValue","facilities","recentIds",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"tableId","selection","filterValue","facilities","recentIds"]],template:function(R,me){1&R&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return me.refreshTable()}),C.qZA(),C.TgZ(7,"button",4),C.NdJ("click",function(){return me.onCreate()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return me.onDelete()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.TgZ(13,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(Ie){return me.applyFilter(Ie)}),C.qZA(),C.YNc(14,ze,1,0,"mat-spinner",7),C.YNc(15,le,1,5,"perun-web-apps-facilities-list",8),C.qZA()),2&R&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(15,je)),C.xp6(1),C.hij(" ",C.lcZ(5,9,"FACILITY_MANAGEMENT.TITLE")," "),C.xp6(4),C.hij(" ",C.lcZ(9,11,"FACILITY_MANAGEMENT.CREATE")," "),C.xp6(2),C.Q6J("disabled",0===me.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(12,13,"FACILITY_MANAGEMENT.DELETE")," "),C.xp6(2),C.Q6J("autoFocus",!0)("placeholder","FACILITY_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",me.loading),C.xp6(1),C.Q6J("ngIf",!me.loading))},directives:[te.W,ue.Hw,m.PC,de.t,Me.lW,Le.L,m.O5,L.$g,Ue.X],pipes:[I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),Be})()},51076:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>Me});var e=p(48966),b=p(36908),_=p(32105),w=p(9244),g=p(93075),A=p(5e3),E=p(51062),C=p(67322),I=p(98833),P=p(74107),m=p(69808),L=p(90508),O=p(47423),G=p(57706);let ne=(()=>{class oe{constructor(T){this.translateService=T,this.returnData=""}transform(T){switch(T){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HEADER").subscribe(j=>{this.returnData=j});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.HTML_COMMENT").subscribe(j=>{this.returnData=j});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTFIELD").subscribe(j=>{this.returnData=j});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.VALIDATED_EMAIL").subscribe(j=>{this.returnData=j});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.USERNAME").subscribe(j=>{this.returnData=j});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.PASSWORD").subscribe(j=>{this.returnData=j});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SELECTIONBOX").subscribe(j=>{this.returnData=j});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TEXTAREA").subscribe(j=>{this.returnData=j});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.COMBOBOX").subscribe(j=>{this.returnData=j});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.CHECKBOX").subscribe(j=>{this.returnData=j});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.SUBMIT_BUTTON").subscribe(j=>{this.returnData=j});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.RADIO").subscribe(j=>{this.returnData=j});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.TIMEZONE").subscribe(j=>{this.returnData=j});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.AUTO_SUBMIT_BUTTON").subscribe(j=>{this.returnData=j});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.EMBEDDED_GROUP_APPLICATION").subscribe(j=>{this.returnData=j});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.LIST_INPUT_BOX").subscribe(j=>{this.returnData=j});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.WIDGET_DESCRIPTION.MAP_INPUT_BOX").subscribe(j=>{this.returnData=j});break;default:return T}return this.returnData}}return oe.\u0275fac=function(T){return new(T||oe)(A.Y36(E.sK,16))},oe.\u0275pipe=A.Yjl({name:"applicationFormWidgetDescription",type:oe,pure:!0}),oe})();function ge(oe,Re){if(1&oe&&(A.TgZ(0,"mat-option",9),A._uU(1),A.ALo(2,"applicationFormItemType"),A.qZA()),2&oe){const T=Re.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",A.lcZ(2,2,T)," ")}}function J(oe,Re){if(1&oe&&(A.TgZ(0,"mat-option",9),A._uU(1),A.qZA()),2&oe){const T=Re.$implicit;A.Q6J("value",T),A.xp6(1),A.hij(" ",T," ")}}let Me=(()=>{class oe{constructor(T,j,Y,q){this.dialogRef=T,this.data=j,this.translateService=Y,this.store=q,this.languages=this.store.get("supported_languages"),this.items=[],this.selectedWidget="HEADING",this.widgets=["HEADING","HTML_COMMENT","TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","SELECTIONBOX","TEXTAREA","COMBOBOX","CHECKBOX","SUBMIT_BUTTON","RADIO","TIMEZONE","AUTO_SUBMIT_BUTTON","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]}ngOnInit(){this.translateService.get("DIALOGS.APPLICATION_FORM_ADD_ITEM.INSERT_TO_BEGINNING").subscribe(T=>{this.nameCtrl=new g.NI("",[g.kI.required,g.kI.pattern(".*[\\S]+.*"),g.kI.maxLength(129)]),this.nameCtrl.markAllAsTouched(),this.items.push(T);for(const j of this.data.applicationFormItems)this.items.push(j.shortname),j.type===_.Dy.EMBEDDED_GROUP_APPLICATION&&(this.widgets=this.widgets.filter(Y=>Y!==_.Dy.EMBEDDED_GROUP_APPLICATION));this.selectedItem=T})}cancel(){this.dialogRef.close(void 0)}submit(){const T=this.createApplicationItem();this.dialogRef.close([this.data.applicationFormItems,T])}createApplicationItem(){const T=(0,w.dv)(this.languages);T.id=this.data.fakeId,T.shortname=this.nameCtrl.value,T.type=this.selectedWidget;for(let j=0;j{"use strict";p.d(_e,{W:()=>L});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(62707),I=p(82322),P=p(47423);function m(O,G){1&O&&w._UZ(0,"mat-spinner",9)}let L=(()=>{class O{constructor(ne,ge,J,Me,oe,Re,T,j,Y){this.dialogRef=ne,this.voService=ge,this.groupService=J,this.translateService=Me,this.registrarManager=oe,this.notificatorService=Re,this.apiRequest=T,this.cd=j,this.data=Y,this.vos=[],this.groups=[],this.selectedGroup=null,this.loading=!1,this.nameFunction=q=>q.name,Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUCCESS").subscribe(q=>this.successMessage=q),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.PRIVILEGE").subscribe(q=>this.privilegeMessage=q),Me.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_FORM").subscribe(q=>this.noFormMessage=q)}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.translateService.get("DIALOGS.APPLICATION_FORM_COPY_ITEMS.NO_GROUP_SELECTED").subscribe(()=>{this.voService.getMyVos().subscribe(ne=>{this.vos=ne,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}cancel(){this.dialogRef.close(!1)}submit(){this.apiRequest.dontHandleErrorForNext(),this.loading=!0,this.data.groupId?null===this.selectedGroup?this.registrarManager.copyFormFromVoToGroup(this.selectedVo.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToGroup(this.selectedGroup.id,this.data.groupId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):null===this.selectedGroup?this.registrarManager.copyFormFromVoToVo(this.selectedVo.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1}):this.registrarManager.copyFormFromGroupToVo(this.selectedGroup.id,this.data.voId).subscribe(()=>{this.notificatorService.showSuccess(this.successMessage),this.dialogRef.close(!0)},ne=>{const ge=ne.error;"FormNotExistsException"===ge.name&&this.notificatorService.showError(this.noFormMessage),"PrivilegeException"===ge.name&&this.notificatorService.showError(this.privilegeMessage),this.loading=!1})}voSelected(ne){this.selectedVo=ne,this.cd.detectChanges(),this.getGroups()}getGroups(){void 0!==this.selectedVo?this.groupService.getAllGroups(this.selectedVo.id).subscribe(ne=>{this.groups=ne}):this.groups=[],this.selectedGroup=null}}return O.\u0275fac=function(ne){return new(ne||O)(w.Y36(e.so),w.Y36(b.YF),w.Y36(b.ff),w.Y36(g.sK),w.Y36(b.tk),w.Y36(_.V6),w.Y36(_.F5),w.Y36(w.sBO),w.Y36(e.WI))},O.\u0275cmp=w.Xpm({type:O,selectors:[["app-application-form-copy-items-dialog"]],decls:22,vars:27,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container",3,"hidden"],[1,"mb-2","font-italic"],[1,"long-input",3,"vos","voSelected"],[1,"long-input",3,"groups","disableAutoSelect","groupSelected"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"]],template:function(ne,ge){1&ne&&(w.TgZ(0,"div"),w.TgZ(1,"h1",0),w._uU(2),w.ALo(3,"translate"),w.qZA(),w.YNc(4,m,1,0,"mat-spinner",1),w.TgZ(5,"div",2),w.TgZ(6,"div",3),w._uU(7),w.ALo(8,"translate"),w.qZA(),w._uU(9),w.ALo(10,"translate"),w.TgZ(11,"perun-web-apps-vo-search-select",4),w.NdJ("voSelected",function(Me){return ge.voSelected(Me)}),w.qZA(),w._uU(12),w.ALo(13,"translate"),w.TgZ(14,"perun-web-apps-group-search-select",5),w.NdJ("groupSelected",function(Me){return ge.selectedGroup=Me}),w.qZA(),w.qZA(),w.TgZ(15,"div",6),w.TgZ(16,"button",7),w.NdJ("click",function(){return ge.cancel()}),w._uU(17),w.ALo(18,"translate"),w.qZA(),w.TgZ(19,"button",8),w.NdJ("click",function(){return ge.submit()}),w._uU(20),w.ALo(21,"translate"),w.qZA(),w.qZA(),w.qZA()),2&ne&&(w.Tol(ge.theme),w.xp6(2),w.Oqu(w.lcZ(3,15,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.TITLE")),w.xp6(2),w.Q6J("ngIf",ge.loading),w.xp6(1),w.Q6J("hidden",ge.loading),w.xp6(2),w.hij(" ",w.lcZ(8,17,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.DESCRIPTION")," "),w.xp6(2),w.hij(" ",w.lcZ(10,19,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_VO"),": "),w.xp6(2),w.Q6J("vos",ge.vos),w.xp6(1),w.hij(" ",w.lcZ(13,21,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SOURCE_GROUP"),": "),w.xp6(2),w.Q6J("groups",ge.groups)("disableAutoSelect",!0),w.xp6(3),w.hij(" ",w.lcZ(18,23,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.CANCEL_BUTTON")," "),w.xp6(2),w.Q6J("disabled",!ge.selectedVo&&!ge.selectedGroup||ge.loading),w.xp6(1),w.hij(" ",w.lcZ(21,25,"DIALOGS.APPLICATION_FORM_COPY_ITEMS.SUBMIT_BUTTON")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.M,I.h,e.H8,P.lW],pipes:[g.X$],styles:[""]}),O})()},40009:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>ge});var e=p(48966),b=p(36908),_=p(93075),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(77446),L=p(47423);function O(J,Me){1&J&&g._UZ(0,"mat-spinner",4)}function G(J,Me){if(1&J){const oe=g.EpF();g.TgZ(0,"div",5),g.TgZ(1,"mat-form-field"),g.TgZ(2,"input",6),g.NdJ("change",function(){return g.CHM(oe),g.oxw().makePath()}),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"mat-error"),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA(),g.TgZ(7,"mat-form-field"),g.TgZ(8,"input",7),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().description=T}),g.ALo(9,"translate"),g.qZA(),g.qZA(),g.TgZ(10,"mat-form-field"),g._UZ(11,"input",8),g.ALo(12,"translate"),g.TgZ(13,"mat-error"),g._uU(14),g.ALo(15,"translate"),g.qZA(),g.qZA(),g.TgZ(16,"mat-form-field"),g._UZ(17,"input",9),g.ALo(18,"translate"),g.TgZ(19,"mat-error"),g._uU(20),g.ALo(21,"translate"),g.qZA(),g.qZA(),g.TgZ(22,"mat-form-field"),g._UZ(23,"input",8),g.ALo(24,"translate"),g.TgZ(25,"mat-error"),g._uU(26),g.ALo(27,"translate"),g.qZA(),g.qZA(),g.TgZ(28,"span",10),g._uU(29),g.ALo(30,"translate"),g.TgZ(31,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().status=T}),g._uU(32),g.ALo(33,"translate"),g.qZA(),g.qZA(),g.TgZ(34,"span",10),g._uU(35),g.ALo(36,"translate"),g.TgZ(37,"mat-checkbox",11),g.NdJ("ngModelChange",function(T){return g.CHM(oe),g.oxw().propagateExpiredMembers=T}),g._uU(38),g.ALo(39,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&J){const oe=g.oxw();g.xp6(2),g.s9C("placeholder",g.lcZ(3,20,"DIALOGS.CREATE_EDIT_SERVICE.NAME")),g.Q6J("formControl",oe.nameControl),g.xp6(3),g.Oqu(g.lcZ(6,22,"DIALOGS.CREATE_EDIT_SERVICE.RESTRICTION_NAME")),g.xp6(3),g.s9C("placeholder",g.lcZ(9,24,"DIALOGS.CREATE_EDIT_SERVICE.DESCRIPTION")),g.Q6J("ngModel",oe.description),g.xp6(3),g.s9C("placeholder",g.lcZ(12,26,"DIALOGS.CREATE_EDIT_SERVICE.DELAY")),g.Q6J("formControl",oe.delayControl),g.xp6(3),g.Oqu(g.lcZ(15,28,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_DELAY")),g.xp6(3),g.s9C("placeholder",g.lcZ(18,30,"DIALOGS.CREATE_EDIT_SERVICE.RECURRENCE")),g.Q6J("formControl",oe.recurrenceControl),g.xp6(3),g.Oqu(g.lcZ(21,32,"DIALOGS.CREATE_EDIT_SERVICE.INVALID_RECURRENCE")),g.xp6(3),g.s9C("placeholder",g.lcZ(24,34,"DIALOGS.CREATE_EDIT_SERVICE.PATH")),g.Q6J("formControl",oe.pathControl),g.xp6(3),g.Oqu(g.lcZ(27,36,"DIALOGS.CREATE_EDIT_SERVICE.REQUIRE_PATH")),g.xp6(3),g.hij("",g.lcZ(30,38,"DIALOGS.CREATE_EDIT_SERVICE.STATUS")," "),g.xp6(2),g.Q6J("ngModel",oe.status),g.xp6(1),g.Oqu(g.lcZ(33,40,"DIALOGS.CREATE_EDIT_SERVICE.STATUS_HINT")),g.xp6(3),g.hij("",g.lcZ(36,42,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS")," "),g.xp6(2),g.Q6J("ngModel",oe.propagateExpiredMembers),g.xp6(1),g.Oqu(g.lcZ(39,44,"DIALOGS.CREATE_EDIT_SERVICE.EXPIRED_MEMBERS_HINT"))}}function ne(J,Me){if(1&J){const oe=g.EpF();g.TgZ(0,"div",12),g.TgZ(1,"button",13),g.NdJ("click",function(){return g.CHM(oe),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",14),g.NdJ("click",function(){g.CHM(oe);const T=g.oxw();return T.asEdit?T.onEdit():T.onCreate()}),g._uU(5),g.qZA(),g.qZA()}if(2&J){const oe=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,3,"DIALOGS.CREATE_EDIT_SERVICE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",oe.nameControl.invalid||oe.delayControl.invalid||oe.recurrenceControl.invalid||oe.pathControl.invalid),g.xp6(1),g.hij(" ",oe.buttonText," ")}}let ge=(()=>{class J{constructor(oe,Re,T,j,Y){this.dialogRef=oe,this.data=Re,this.serviceManager=T,this.notificator=j,this.translate=Y,this.loading=!1,this.status=!0,this.propagateExpiredMembers=!0,this.nameControl=new _.NI("",[_.kI.required,_.kI.pattern("^[a-zA-Z0-9_]+$")]),this.delayControl=new _.NI(10,[_.kI.pattern("^[0-9]*$")]),this.recurrenceControl=new _.NI(2,[_.kI.pattern("^[0-9]*$")]),this.pathControl=new _.NI("",[_.kI.required]),this.asEdit=!1}ngOnInit(){this.theme=this.data.theme,this.asEdit=void 0!==this.data.service,this.asEdit?(this.nameControl.setValue(this.data.service.name),this.description=this.data.service.description,this.delayControl.setValue(this.data.service.delay),this.recurrenceControl.setValue(this.data.service.recurrence),this.pathControl.setValue(this.data.service.script),this.status=this.data.service.enabled,this.propagateExpiredMembers=this.data.service.useExpiredMembers,this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT")):(this.title=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_TITLE"),this.buttonText=this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE"))}onCreate(){this.loading=!0,this.serviceManager.createServiceWithService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:0,beanName:""}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.CREATE_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onEdit(){this.loading=!0,this.serviceManager.updateService({service:{name:this.nameControl.value,description:this.description,delay:this.delayControl.value,recurrence:this.recurrenceControl.value,enabled:this.status,script:this.pathControl.value,useExpiredMembers:this.propagateExpiredMembers,id:this.data.service.id,beanName:this.data.service.beanName}}).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.CREATE_EDIT_SERVICE.EDIT_SUCCESS")),this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}makePath(){const oe="./".concat(this.nameControl.value);this.pathControl.setValue(oe)}}return J.\u0275fac=function(oe){return new(oe||J)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.KK),g.Y36(b.V6),g.Y36(A.sK))},J.\u0275cmp=g.Xpm({type:J,selectors:[["app-create-service-dialog"]],decls:6,vars:7,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl","change"],["matInput","",3,"ngModel","placeholder","ngModelChange"],["matInput","","required","",3,"formControl","placeholder"],["matInput","","required","",3,"placeholder","formControl"],[1,"d-flex"],[1,"ml-3",3,"ngModel","ngModelChange"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(oe,Re){1&oe&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.qZA(),g.YNc(3,O,1,0,"mat-spinner",1),g.YNc(4,G,40,46,"div",2),g.YNc(5,ne,6,5,"div",3),g.qZA()),2&oe&&(g.Tol(Re.theme),g.xp6(2),g.Oqu(Re.title),g.xp6(1),g.Q6J("ngIf",Re.loading),g.xp6(1),g.Q6J("ngIf",!Re.loading),g.xp6(1),g.Q6J("ngIf",!Re.loading))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,_.Fj,_.Q7,_.JJ,_.oH,I.TO,_.On,m.oG,e.H8,L.lW],pipes:[A.X$],styles:[""]}),J})()},81889:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>Me});var e=p(48966),b=p(36908),_=p(32105),w=p(93075),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(77446),L=p(82322),O=p(47423);function G(oe,Re){1&oe&&g._UZ(0,"mat-spinner",3)}function ne(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"mat-checkbox",14),g.NdJ("ngModelChange",function(Y){return g.CHM(T),g.oxw(2).asSubgroup=Y})("click",function(){return g.CHM(T),g.oxw(2).loadVoGroups()}),g._uU(1),g.ALo(2,"translate"),g.qZA()}if(2&oe){const T=g.oxw(2);g.Q6J("ngModel",T.asSubgroup)("labelPosition","before"),g.xp6(1),g.hij(" ",g.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function ge(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"perun-web-apps-group-search-select",15),g.NdJ("groupSelected",function(Y){return g.CHM(T),g.oxw(2).selectedParent=Y}),g.qZA()}if(2&oe){const T=g.oxw(2);g.Q6J("disableAutoSelect",!0)("groups",T.voGroups)}}function J(oe,Re){if(1&oe){const T=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"div",4),g.TgZ(2,"mat-form-field"),g.TgZ(3,"label",5),g._UZ(4,"input",6),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"mat-error"),g._uU(7),g.ALo(8,"translate"),g.qZA(),g.qZA(),g.TgZ(9,"mat-form-field",7),g.TgZ(10,"label",5),g.TgZ(11,"textarea",8),g.ALo(12,"translate"),g._uU(13," "),g.qZA(),g.qZA(),g.qZA(),g.YNc(14,ne,3,5,"mat-checkbox",9),g.YNc(15,ge,1,2,"perun-web-apps-group-search-select",10),g.qZA(),g.TgZ(16,"div",11),g.TgZ(17,"button",12),g.NdJ("click",function(){return g.CHM(T),g.oxw().onCancel()}),g._uU(18),g.ALo(19,"translate"),g.qZA(),g.TgZ(20,"button",13),g.NdJ("click",function(){return g.CHM(T),g.oxw().onSubmit()}),g._uU(21),g.ALo(22,"translate"),g.qZA(),g.qZA(),g.qZA()}if(2&oe){const T=g.oxw();g.xp6(4),g.s9C("placeholder",g.lcZ(5,10,"DIALOGS.CREATE_GROUP.NAME")),g.Q6J("formControl",T.nameControl),g.xp6(3),g.hij(" ",T.invalidNameMessage.length?T.invalidNameMessage:g.lcZ(8,12,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),g.xp6(4),g.s9C("placeholder",g.lcZ(12,14,"DIALOGS.CREATE_GROUP.DESCRIPTION")),g.Q6J("formControl",T.descriptionControl),g.xp6(3),g.Q6J("ngIf",T.isNotSubGroup),g.xp6(1),g.Q6J("ngIf",T.asSubgroup),g.xp6(3),g.hij(" ",g.lcZ(19,16,"DIALOGS.CREATE_GROUP.CANCEL")," "),g.xp6(2),g.Q6J("disabled",T.nameControl.invalid||T.descriptionControl.invalid||T.asSubgroup&&null===T.selectedParent||T.loading),g.xp6(1),g.hij(" ",g.lcZ(22,18,"DIALOGS.CREATE_GROUP.CREATE")," ")}}let Me=(()=>{class oe{constructor(T,j,Y,q,te,ue){this.dialogRef=T,this.data=j,this.groupService=Y,this.translate=q,this.notificator=te,this.store=ue,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.voGroups=[],this.secondaryRegex=this.store.get("group_name_secondary_regex"),this.nameFunction=de=>de.name,this.isNotSubGroup=null===this.data.parentGroup,this.isNotSubGroup?q.get("DIALOGS.CREATE_GROUP.TITLE").subscribe(de=>this.title=de):q.get("DIALOGS.CREATE_GROUP.TITLE_SUB_GROUP").subscribe(de=>{this.title=de+this.data.parentGroup.name}),q.get("DIALOGS.CREATE_GROUP.SUCCESS").subscribe(de=>this.successMessage=de),q.get("DIALOGS.CREATE_GROUP.SUCCESS_SUBGROUP").subscribe(de=>this.successSubGroupMessage=de)}ngOnInit(){this.theme=this.data.theme,this.invalidNameMessage=this.invalidNameMessage&&this.secondaryRegex?this.invalidNameMessage:"",this.nameControl=new w.NI("",[w.kI.required,w.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),w.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new w.NI(""),this.selectedParent=null}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.isNotSubGroup&&!this.asSubgroup?this.groupService.createGroupWithVoNameDescription(this.data.voId,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1):this.groupService.createGroupWithParentGroupNameDescription(this.asSubgroup?this.selectedParent.id:this.data.parentGroup.id,this.nameControl.value,this.descriptionControl.value).subscribe(()=>{this.notificator.showSuccess(this.successSubGroupMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}loadVoGroups(){this.groupService.getAllGroups(this.data.voId).subscribe(T=>{this.voGroups=T.filter(j=>"members"!==j.name)})}}return oe.\u0275fac=function(T){return new(T||oe)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.ff),g.Y36(A.sK),g.Y36(b.V6),g.Y36(b.d6))},oe.\u0275cmp=g.Xpm({type:oe,selectors:[["app-create-group-dialog"]],decls:5,vars:6,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","data-cy","group-name","required","",3,"formControl","placeholder"],[1,"mt-4"],["mat-autosize","","matInput","","data-cy","group-description",3,"formControl","placeholder"],[3,"ngModel","labelPosition","ngModelChange","click",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","data-cy","create-group-button-dialog","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"ngModel","labelPosition","ngModelChange","click"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(T,j){1&T&&(g.TgZ(0,"h1",0),g._uU(1),g.qZA(),g.TgZ(2,"div"),g.YNc(3,G,1,0,"mat-spinner",1),g.YNc(4,J,23,20,"div",2),g.qZA()),2&T&&(g.xp6(1),g.Oqu(j.title),g.xp6(1),g.Tol(j.theme),g.xp6(1),g.Q6J("ngIf",j.loading),g.xp6(1),g.Q6J("ngIf",!j.loading))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,w.Fj,w.Q7,w.JJ,w.oH,I.TO,m.oG,w.On,L.h,e.H8,O.lW],pipes:[A.X$],styles:[""]}),oe})()},54037:($e,_e,p)=>{"use strict";p.d(_e,{Y:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.facilitiesManager=O,this.notificator=G,this.translate=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.facility=this.data.facility,this.dataSource=new w.by([this.facility]),this.relations.push(this.translate.instant("DIALOGS.DELETE_FACILITY.RESOURCE_RELATION"))}onConfirm(){this.loading=!0,this.facilitiesManager.deleteFacility(this.facility.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_FACILITY.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.IQ),g.Y36(_.V6),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-facility-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","facilities")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},41656:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.translate=G,this.groupService=ne,this.displayedColumns=["name"],this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.groups),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.SUBGROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.DELETE_GROUP.MEMBER_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0;const m=this.data.groups.map(L=>L.id);this.groupService.deleteGroups({groups:m,forceDelete:this.force}).subscribe(()=>{this.translate.get("DIALOGS.DELETE_GROUP.SUCCESS").subscribe(L=>{this.notificator.showSuccess(L),this.dialogRef.close(!0)},()=>this.loading=!1)},()=>this.loading=!1)}onSubmit(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.ff))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-group-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","groups")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},90719:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>C});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.serviceManager=O,this.notificator=G,this.translate=ne,this.dataSource=new w.by(this.data.services),this.loading=!1,this.relations=[],this.force=!1}ngOnInit(){this.theme=this.data.theme,this.services=this.data.services,this.relations.push(this.translate.instant("DIALOGS.DELETE_SERVICE.DESTINATION_RELATION")),this.anotherMessage=this.translate.instant("DIALOGS.DELETE_SERVICE.MORE_INFORMATION")}onConfirm(){if(0===this.services.length)return this.dialogRef.close(!0),void this.notificator.showSuccess(this.translate.instant("DIALOGS.DELETE_SERVICE.SUCCESS"));this.loading=!0,this.serviceManager.deleteService(this.services.pop().id,this.force).subscribe(()=>{this.onConfirm(),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(m){this.force=m.force,m.deleted?this.onConfirm():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(b.so),g.Y36(b.WI),g.Y36(e.KK),g.Y36(_.V6),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-delete-service-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","anotherMessage","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","services")("anotherMessage",L.anotherMessage)("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[""]}),I})()},83491:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>V});var e=p(48966),b=p(32105),_=p(9244),w=p(387),g=p(36908),A=p(5e3),E=p(51062),C=p(69808),I=p(20773),P=p(53251);const m=["*"];let L=(()=>{class xe{}return xe.\u0275fac=function(Te){return new(Te||xe)},xe.\u0275cmp=A.Xpm({type:xe,selectors:[["app-edit-application-form-item-line"]],inputs:{label:"label",description:"description"},ngContentSelectors:m,decls:9,vars:2,consts:[[1,"d-flex"],[1,"w-25","m-auto","font-weight-bold"],[1,"w-75"],[1,"d-flex","mb-3"],[1,"w-25"],[1,"w-75","font-italic","text-muted"]],template:function(Te,Ae){1&Te&&(A.F$t(),A.TgZ(0,"div",0),A.TgZ(1,"span",1),A._uU(2),A.qZA(),A.TgZ(3,"div",2),A.Hsn(4),A.qZA(),A.qZA(),A.TgZ(5,"div",3),A._UZ(6,"span",4),A.TgZ(7,"div",5),A._uU(8),A.qZA(),A.qZA()),2&Te&&(A.xp6(2),A.hij("",Ae.label,":"),A.xp6(6),A.hij(" ",Ae.description," "))},styles:[""]}),xe})();var O=p(67322),G=p(98833),ne=p(93075),ge=p(77446),J=p(52170),Me=p(74107),oe=p(90508),Re=p(63312),T=p(74533),j=p(47423),Y=p(29772),q=p(25245),te=p(57706);let ue=(()=>{class xe{constructor(Te){this.translateService=Te}transform(Te){switch(Te){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED."+Te);default:return Te}}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(E.sK,16))},xe.\u0275pipe=A.Yjl({name:"applicationFormItemDisabled",type:xe,pure:!0}),xe})(),de=(()=>{class xe{constructor(Te){this.translateService=Te}transform(Te){switch(Te){case"ALWAYS":case"NEVER":case"IF_PREFILLED":case"IF_EMPTY":return this.translateService.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN."+Te);default:return Te}}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(E.sK,16))},xe.\u0275pipe=A.Yjl({name:"applicationFormItemHidden",type:xe,pure:!0}),xe})();function Le(xe,Qe){1&xe&&A._UZ(0,"mat-spinner",8)}function Ue(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(3).applicationFormItem.updatable=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(3);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.UPDATABLE")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.updatable)}}function ze(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div",13),A.TgZ(1,"mat-form-field",13),A.TgZ(2,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(3).applicationFormItem.federationAttribute=ae}),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(3);A.xp6(2),A.Q6J("ngModel",Te.applicationFormItem.federationAttribute)}}function le(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"section"),A.TgZ(5,"mat-checkbox",22),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.required=ae}),A.qZA(),A.qZA(),A.qZA(),A.YNc(6,Ue,6,7,"div",17),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.TgZ(11,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.perunSourceAttribute=ae.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(12,"app-edit-application-form-item-line",12),A.ALo(13,"translate"),A.ALo(14,"translate"),A.TgZ(15,"div",13),A.TgZ(16,"perun-web-apps-selection-item-search-select",23),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.perunDestinationAttribute=ae.value}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(17,"app-edit-application-form-item-line",12),A.ALo(18,"translate"),A.ALo(19,"translate"),A.TgZ(20,"div",13),A.TgZ(21,"perun-web-apps-selection-item-search-select",24),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).changeFederationAttribute(ae)}),A.qZA(),A.qZA(),A.YNc(22,ze,3,1,"div",25),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,22,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED_DESCRIPTION"))("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REQUIRED")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.required),A.xp6(1),A.Q6J("ngIf",Te.typesWithUpdatable.indexOf(Te.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(8,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(9,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SOURCE_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Te.sourceAttributes)("selectedAttribute",Te.applicationFormItem.perunSourceAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.SOURCE),A.xp6(1),A.Q6J("description",A.lcZ(13,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(14,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DESTINATION_ATTRIBUTE")),A.xp6(4),A.Q6J("attributes",Te.destinationAttributes)("selectedAttribute",Te.applicationFormItem.perunDestinationAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.DESTINATION),A.xp6(1),A.Q6J("description",A.lcZ(18,34,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE_DESCRIPTION"))("label",A.lcZ(19,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.FEDERATION_ATTRIBUTE")),A.xp6(4),A.Q6J("selectedAttribute",Te.applicationFormItem.federationAttribute)("asGroup",!!Te.data.group)("type",Te.itemType.FEDERATION),A.xp6(1),A.Q6J("ngIf"," -- custom value -- "===Te.federationAttributeDN)}}function je(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.regex=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REGEX")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.regex)}}function ye(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemDisabled"),A.qZA()),2&xe){const Te=Qe.$implicit;A.Q6J("value",Te),A.xp6(1),A.hij(" ",A.lcZ(2,2,Te)," ")}}function Be(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(3).disabledDependencyItem=ae}),A.qZA()}if(2&xe){const Te=A.oxw(3);A.Q6J("item",Te.disabledDependencyItem)("items",Te.possibleDependencyItems)}}function W(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"mat-select",18),A.NdJ("valueChange",function(ae){return A.CHM(Te),A.oxw(2).applicationFormItem.disabled=ae}),A.YNc(6,ye,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(7,"app-edit-application-form-item-line",12),A.ALo(8,"translate"),A.ALo(9,"translate"),A.TgZ(10,"div",13),A.YNc(11,Be,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DESCRIPTION"))("label",A.lcZ(3,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED")),A.xp6(4),A.Q6J("value",Te.applicationFormItem.disabled),A.xp6(1),A.Q6J("ngForOf",Te.disabledValues),A.xp6(1),A.Q6J("description",A.lcZ(8,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(9,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISABLED_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Te.disabledDependencyItem)}}function R(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-option",26),A._uU(1),A.ALo(2,"applicationFormItemHidden"),A.qZA()),2&xe){const Te=Qe.$implicit;A.Q6J("value",Te),A.xp6(1),A.hij(" ",A.lcZ(2,2,Te)," ")}}function me(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"perun-web-apps-app-form-item-search-select",27),A.NdJ("itemSelected",function(ae){return A.CHM(Te),A.oxw(2).hiddenDependencyItem=ae}),A.qZA()}if(2&xe){const Te=A.oxw(2);A.Q6J("item",Te.hiddenDependencyItem)("items",Te.possibleDependencyItems)}}function be(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",28),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,4,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT_DESCRIPTION"))("label",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CONTENT")),A.xp6(4),A.Q6J("cdkTextareaAutosize",!0)("ngModel",Ae.applicationFormItem.i18n[Te].label)}}function Ie(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(6,"app-edit-application-form-item-line",12),A.ALo(7,"translate"),A.ALo(8,"translate"),A.TgZ(9,"mat-form-field",13),A.TgZ(10,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].help=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(11,"app-edit-application-form-item-line",12),A.ALo(12,"translate"),A.ALo(13,"translate"),A.TgZ(14,"mat-form-field",13),A.TgZ(15,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].errorMessage=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_DESCRIPTION"))("label",A.lcZ(3,11,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].label),A.xp6(1),A.Q6J("description",A.lcZ(7,13,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP_DESCRIPTION"))("label",A.lcZ(8,15,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HELP")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].help),A.xp6(1),A.Q6J("description",A.lcZ(12,17,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR_DESCRIPTION"))("label",A.lcZ(13,19,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ERROR")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].errorMessage)}}function pe(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"app-edit-application-form-item-line",12),A.ALo(2,"translate"),A.ALo(3,"translate"),A.TgZ(4,"mat-form-field",13),A.TgZ(5,"textarea",14),A.NdJ("ngModelChange",function(ae){A.CHM(Te);const i=A.oxw().$implicit;return A.oxw(2).applicationFormItem.i18n[i].label=ae}),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(1),A.Q6J("description",A.lcZ(2,3,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL_BUTTON_DESCRIPTION"))("label",A.lcZ(3,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL")),A.xp6(4),A.Q6J("ngModel",Ae.applicationFormItem.i18n[Te].label)}}function Se(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A._uU(1),A.ALo(2,"translate"),A.TgZ(3,"mat-form-field"),A.TgZ(4,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te).$implicit[0]=ae}),A.qZA(),A.qZA(),A._uU(5),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field"),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te).$implicit[1]=ae}),A.qZA(),A.qZA(),A.TgZ(9,"button",37),A.NdJ("click",function(){const i=A.CHM(Te).$implicit,o=A.oxw(2).$implicit;return A.oxw(2).removeOption(i,o)}),A.ALo(10,"translate"),A.TgZ(11,"mat-icon"),A._uU(12,"clear"),A.qZA(),A.qZA(),A.qZA()}if(2&xe){const Te=Qe.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,5,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.VALUE"),": "),A.xp6(3),A.Q6J("ngModel",Te[0]),A.xp6(1),A.hij(" ",A.lcZ(6,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LABEL"),": "),A.xp6(3),A.Q6J("ngModel",Te[1]),A.xp6(1),A.s9C("matTooltip",A.lcZ(10,9,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.REMOVE_OPTION"))}}function Xe(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div"),A.TgZ(1,"div",29),A._uU(2),A.ALo(3,"translate"),A.qZA(),A.TgZ(4,"div",30),A._uU(5),A.ALo(6,"translate"),A.qZA(),A.TgZ(7,"div",31),A.TgZ(8,"button",32),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).sortOptionsAZ(ae)}),A.TgZ(9,"i",33),A._uU(10,"arrow_downward"),A.qZA(),A._uU(11),A.ALo(12,"translate"),A.qZA(),A.TgZ(13,"button",34),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).sortOptionsZA(ae)}),A.TgZ(14,"i",33),A._uU(15,"arrow_upward"),A.qZA(),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.qZA(),A.YNc(18,Se,13,11,"div",35),A.TgZ(19,"button",36),A.NdJ("click",function(){A.CHM(Te);const ae=A.oxw().$implicit;return A.oxw(2).addOption(ae)}),A._uU(20),A.ALo(21,"translate"),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw().$implicit,Ae=A.oxw(2);A.xp6(2),A.hij(" ",A.lcZ(3,6,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS"),": "),A.xp6(3),A.hij(" ",A.lcZ(6,8,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.OPTIONS_DESCRIPTION")," "),A.xp6(6),A.hij(" ",A.lcZ(12,10,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_AZ")," "),A.xp6(5),A.hij(" ",A.lcZ(17,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SORT_BY_LABEL_ZA")," "),A.xp6(2),A.Q6J("ngForOf",Ae.options[Te]),A.xp6(2),A.hij(" ",A.lcZ(21,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.ADD_OPTION")," ")}}const Je=function(){return["HEADING","HTML_COMMENT"]},nt=function(){return["TEXTFIELD","VALIDATED_EMAIL","USERNAME","PASSWORD","RADIO","TEXTAREA","COMBOBOX","CHECKBOX","TIMEZONE","SELECTIONBOX","EMBEDDED_GROUP_APPLICATION","LIST_INPUT_BOX","MAP_INPUT_BOX"]},Ve=function(){return["SUBMIT_BUTTON","AUTO_SUBMIT_BUTTON"]},X=function(){return["RADIO","COMBOBOX","CHECKBOX","SELECTIONBOX"]};function z(xe,Qe){if(1&xe&&(A.TgZ(0,"mat-tab",11),A.ALo(1,"translate"),A.ALo(2,"uppercase"),A.YNc(3,be,6,8,"div",17),A.YNc(4,Ie,16,21,"div",17),A.YNc(5,pe,6,7,"div",17),A.YNc(6,Xe,22,16,"div",17),A.qZA()),2&xe){const Te=Qe.$implicit,Ae=A.oxw(2);A.s9C("label",A.lcZ(1,5,A.lcZ(2,7,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.LANGUAGE_"+Te))),A.xp6(3),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(9,Je))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(10,nt))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(11,Ve))),A.xp6(1),A.Q6J("ngIf",Ae.isApplicationFormItemOfType(A.DdM(12,X)))}}const Q=function(){return["TEXTFIELD","USERNAME","VALIDATED_EMAIL","PASSWORD","TEXTAREA","TIMEZONE","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]},D=function(){return["TEXTFIELD","USERNAME","PASSWORD","TEXTAREA","CHECKBOX","RADIO","COMBOBOX","SELECTIONBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"]};function H(xe,Qe){if(1&xe){const Te=A.EpF();A.TgZ(0,"div",9),A.TgZ(1,"mat-tab-group",10),A.TgZ(2,"mat-tab",11),A.ALo(3,"translate"),A.TgZ(4,"app-edit-application-form-item-line",12),A.ALo(5,"translate"),A.ALo(6,"translate"),A.TgZ(7,"mat-form-field",13),A.TgZ(8,"input",14),A.NdJ("ngModelChange",function(ae){return A.CHM(Te),A.oxw().applicationFormItem.shortname=ae}),A.qZA(),A.qZA(),A.qZA(),A.TgZ(9,"app-edit-application-form-item-line",12),A.ALo(10,"translate"),A.ALo(11,"translate"),A._uU(12),A.ALo(13,"applicationFormItemType"),A.qZA(),A.TgZ(14,"app-edit-application-form-item-line",12),A.ALo(15,"translate"),A.ALo(16,"translate"),A.TgZ(17,"section"),A.TgZ(18,"mat-checkbox",15),A.NdJ("change",function(){return A.CHM(Te),A.oxw().onChangingType("INITIAL")}),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-checkbox",16),A.NdJ("change",function(){return A.CHM(Te),A.oxw().onChangingType("EXTENSION")}),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.qZA(),A.qZA(),A.YNc(24,le,23,38,"div",17),A.YNc(25,je,6,7,"div",17),A.YNc(26,W,12,15,"div",17),A.TgZ(27,"app-edit-application-form-item-line",12),A.ALo(28,"translate"),A.ALo(29,"translate"),A.TgZ(30,"mat-form-field",13),A.TgZ(31,"mat-select",18),A.NdJ("valueChange",function(ae){return A.CHM(Te),A.oxw().applicationFormItem.hidden=ae}),A.YNc(32,R,3,4,"mat-option",19),A.qZA(),A.qZA(),A.qZA(),A.TgZ(33,"app-edit-application-form-item-line",12),A.ALo(34,"translate"),A.ALo(35,"translate"),A.TgZ(36,"div",13),A.YNc(37,me,1,2,"perun-web-apps-app-form-item-search-select",20),A.qZA(),A.qZA(),A.qZA(),A.YNc(38,z,7,13,"mat-tab",21),A.qZA(),A.qZA()}if(2&xe){const Te=A.oxw();A.xp6(2),A.s9C("label",A.lcZ(3,24,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.BASIC_SETTINGS")),A.xp6(2),A.Q6J("description",A.lcZ(5,26,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME_DESCRIPTION"))("label",A.lcZ(6,28,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SHORT_NAME")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.shortname),A.xp6(1),A.Q6J("description",A.lcZ(10,30,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET_DESCRIPTION"))("label",A.lcZ(11,32,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INPUT_WIDGET")),A.xp6(3),A.hij(" ",A.lcZ(13,34,Te.applicationFormItem.type)," "),A.xp6(2),A.Q6J("description",A.lcZ(15,36,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION_DESCRIPTION"))("label",A.lcZ(16,38,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.DISPLAY_ON_APPLICATION")),A.xp6(4),A.Q6J("ngModel",Te.applicationFormItem.applicationTypes.includes("INITIAL")),A.xp6(1),A.hij(" ",A.lcZ(20,40,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.INITIAL")," "),A.xp6(2),A.Q6J("ngModel",Te.applicationFormItem.applicationTypes.includes("EXTENSION")),A.xp6(1),A.hij(" ",A.lcZ(23,42,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.EXTENSION")," "),A.xp6(2),A.Q6J("ngIf",Te.isApplicationFormItemOfType(A.DdM(52,Q))),A.xp6(1),A.Q6J("ngIf",Te.isApplicationFormItemOfType(A.DdM(53,D))),A.xp6(1),A.Q6J("ngIf",Te.typesWithDisabled.indexOf(Te.applicationFormItem.type)>-1),A.xp6(1),A.Q6J("description",A.lcZ(28,44,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DESCRIPTION"))("label",A.lcZ(29,46,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN")),A.xp6(4),A.Q6J("value",Te.applicationFormItem.hidden),A.xp6(1),A.Q6J("ngForOf",Te.hiddenValues),A.xp6(1),A.Q6J("description",A.lcZ(34,48,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY_DESCRIPTION"))("label",A.lcZ(35,50,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.HIDDEN_DEPENDENCY")),A.xp6(4),A.Q6J("ngIf",null!==Te.hiddenDependencyItem),A.xp6(1),A.Q6J("ngForOf",Te.languages)}}let V=(()=>{class xe{constructor(Te,Ae,ae,i,o,d){this.dialogRef=Te,this.data=Ae,this.attributesManager=ae,this.translateService=i,this.store=o,this.cd=d,this.federationAttributeDN="",this.itemType=w.qG,this.loading=!1,this.hiddenValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.disabledValues=["NEVER","ALWAYS","IF_EMPTY","IF_PREFILLED"],this.possibleDependencyItems=[],this.typesWithUpdatable=["VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","TIMEZONE"],this.typesWithDisabled=["USERNAME","PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","LIST_INPUT_BOX","MAP_INPUT_BOX"],this.hiddenDependencyItem=null,this.disabledDependencyItem=null,this.languages=["en"],this.dependencyTypes=["PASSWORD","VALIDATED_EMAIL","TEXTFIELD","TEXTAREA","CHECKBOX","RADIO","SELECTIONBOX","COMBOBOX","USERNAME"]}ngOnInit(){this.languages=this.store.get("supported_languages"),this.hiddenDependencyItem=this.data.allItems.find(Te=>Te.id===this.data.applicationFormItem.hiddenDependencyItemId),this.hiddenDependencyItem||(this.hiddenDependencyItem=w.Sx),this.disabledDependencyItem=this.data.allItems.find(Te=>Te.id===this.data.applicationFormItem.disabledDependencyItemId),this.disabledDependencyItem||(this.disabledDependencyItem=w.Sx),this.theme=this.data.theme,this.possibleDependencyItems=this.getPossibleDepItems(),this.applicationFormItem=(0,_.dv)(this.languages),this.copy(this.data.applicationFormItem,this.applicationFormItem),this.loading=!0,this.attributesManager.getAllAttributeDefinitions().subscribe(Te=>{const Ae=this.filterAttributesForWidget(Te);this.sourceAttributes=Ae.concat(this.findAttribute(Te,this.applicationFormItem.perunSourceAttribute)),this.destinationAttributes=Ae.concat(this.findAttribute(Te,this.applicationFormItem.perunDestinationAttribute)),this.loading=!1},()=>this.loading=!1),null===this.applicationFormItem.perunDestinationAttribute&&(this.applicationFormItem.perunDestinationAttribute=""),null===this.applicationFormItem.perunSourceAttribute&&(this.applicationFormItem.perunSourceAttribute=""),this.getOptions()}cancel(){this.dialogRef.close()}submit(){this.applicationFormItem.hiddenDependencyItemId=this.hiddenDependencyItem===w.Sx?null:this.hiddenDependencyItem.id,this.applicationFormItem.disabledDependencyItemId=this.disabledDependencyItem===w.Sx?null:this.disabledDependencyItem.id,this.updateOptions(),this.copy(this.applicationFormItem,this.data.applicationFormItem),this.dialogRef.close(!0)}onChangingType(Te){if(this.applicationFormItem.applicationTypes.includes(Te)){const Ae=this.applicationFormItem.applicationTypes.indexOf(Te);this.applicationFormItem.applicationTypes.splice(Ae,1)}else this.applicationFormItem.applicationTypes.push(Te)}addOption(Te){this.options[Te].push(["",""])}removeOption(Te,Ae){this.options[Ae]=this.options[Ae].filter(ae=>!(ae[0]===Te[0]&&ae[1]===Te[1]))}sortOptionsAZ(Te){this.options[Te]=this.options[Te].sort((Ae,ae)=>Ae[1]>ae[1]?1:Ae[1]Ae[1]>ae[1]?-1:Ae[1]this.dependencyTypes.includes(Te.type)).filter(Te=>Te.id!==this.data.applicationFormItem.id))}updateOption(Te){var Ae;let ae="";if(null!==(Ae=this.options[Te])&&void 0!==Ae&&Ae)for(const i of this.options[Te])""!==i[0]&&""!==i[1]&&(ae=""===ae?i[0]+"#"+i[1]:ae+"|"+i[0]+"#"+i[1]);this.applicationFormItem.i18n[Te].options=ae}updateOptions(){for(const Te of this.languages)this.updateOption(Te)}findAttribute(Te,Ae){return Te.find(ae=>Ae.includes(ae.friendlyName))}filterAttributesForWidget(Te){return Te.filter("MAP_INPUT_BOX"===this.applicationFormItem.type?Ae=>Ae.type.includes("LinkedHashMap"):"LIST_INPUT_BOX"===this.applicationFormItem.type?Ae=>Ae.type.includes("ArrayList"):Ae=>!Ae.type.includes("ArrayList")&&!Ae.type.includes("LinkedHashMap"))}}return xe.\u0275fac=function(Te){return new(Te||xe)(A.Y36(e.so),A.Y36(e.WI),A.Y36(b.H8),A.Y36(E.sK),A.Y36(g.d6),A.Y36(A.sBO))},xe.\u0275cmp=A.Xpm({type:xe,selectors:[["app-edit-application-form-item-dialog"]],decls:16,vars:20,consts:[[1,"h-100","d-flex","flex-column"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",1,"d-flex","mt-auto"],["mat-flat-button","",1,"ml-auto","mt-auto",3,"click"],[3,"matTooltipDisabled","matTooltip"],["mat-flat-button","","color","accent","data-cy","edit-form-item-button-dialog",1,"ml-2","mt-auto",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["color","primary"],[3,"label"],[3,"description","label"],[1,"w-100"],["matInput","",3,"ngModel","ngModelChange"],[1,"mr-2",3,"ngModel","change"],[3,"ngModel","change"],[4,"ngIf"],["disableOptionCentering","",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"item","items","itemSelected",4,"ngIf"],[3,"label",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"attributes","selectedAttribute","asGroup","type","itemSelected"],[3,"selectedAttribute","asGroup","type","itemSelected"],["class","w-100",4,"ngIf"],[3,"value"],[3,"item","items","itemSelected"],["matInput","",3,"cdkTextareaAutosize","ngModel","ngModelChange"],[1,"font-weight-bold"],[1,"text-muted","font-italic"],[1,"d-flex","mt-2","mb-2"],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],[1,"material-icons"],["mat-flat-button","",1,"mr-auto",3,"click"],[4,"ngFor","ngForOf"],["color","accent","mat-flat-button","",1,"mr-2",3,"click"],["color","warn","mat-icon-button","",3,"matTooltip","click"]],template:function(Te,Ae){1&Te&&(A.TgZ(0,"div"),A.TgZ(1,"div",0),A.TgZ(2,"h1",1),A._uU(3),A.ALo(4,"translate"),A.qZA(),A.YNc(5,Le,1,0,"mat-spinner",2),A.YNc(6,H,39,54,"div",3),A.TgZ(7,"div",4),A.TgZ(8,"button",5),A.NdJ("click",function(){return Ae.cancel()}),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"div",6),A.ALo(12,"translate"),A.TgZ(13,"button",7),A.NdJ("click",function(){return Ae.submit()}),A._uU(14),A.ALo(15,"translate"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA()),2&Te&&(A.Gre("",Ae.theme," h-100"),A.xp6(3),A.AsE(" ",A.lcZ(4,12,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.TITLE")," : ",Ae.applicationFormItem.shortname," "),A.xp6(2),A.Q6J("ngIf",Ae.loading),A.xp6(1),A.Q6J("ngIf",!Ae.loading),A.xp6(3),A.hij(" ",A.lcZ(10,14,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.CANCEL_BUTTON")," "),A.xp6(2),A.s9C("matTooltip",A.lcZ(12,16,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON_DISABLED_TOOLTIP")),A.Q6J("matTooltipDisabled",!Ae.applicationFormItem.required||""!==Ae.applicationFormItem.perunSourceAttribute||""!==Ae.applicationFormItem.federationAttribute||"ALWAYS"!==Ae.applicationFormItem.disabled&&"ALWAYS"!==Ae.applicationFormItem.hidden),A.xp6(2),A.Q6J("disabled",Ae.loading||Ae.applicationFormItem.required&&""===Ae.applicationFormItem.perunSourceAttribute&&""===Ae.applicationFormItem.federationAttribute&&("ALWAYS"===Ae.applicationFormItem.disabled||"ALWAYS"===Ae.applicationFormItem.hidden)),A.xp6(1),A.hij(" ",A.lcZ(15,18,"DIALOGS.APPLICATION_FORM_EDIT_ITEM.SUBMIT_BUTTON")," "))},directives:[e.uh,C.O5,I.$g,e.xY,P.SP,P.uX,L,O.KE,G.Nt,ne.Fj,ne.JJ,ne.On,ge.oG,J.$x,Me.gD,C.sg,oe.ey,Re.Y,T.IC,j.lW,Y.gM,q.Hw,e.H8],pipes:[E.X$,te.c,ue,de,C.gd],styles:[""]}),xe})()},19352:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>ze});var e=p(32105),b=p(48966),_=p(36908),w=p(32075),g=p(9244),A=p(16074),E=p(69808),C=p(5e3),I=p(51062),P=p(20773),m=p(47423),L=p(25245),O=p(29772),G=p(31359);function ne(le,je){1&le&&C._UZ(0,"mat-spinner",6)}function ge(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_ID")," "))}function J(le,je){if(1&le&&(C.TgZ(0,"td",18),C._uU(1),C.qZA()),2&le){const ye=je.$implicit;C.xp6(1),C.Oqu(ye.user.id)}}function Me(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_NAME")," "))}function oe(le,je){if(1&le&&(C.TgZ(0,"td",18),C._uU(1),C.ALo(2,"userFullName"),C.qZA()),2&le){const ye=je.$implicit;C.xp6(1),C.Oqu(C.lcZ(2,1,ye.user))}}function Re(le,je){1&le&&(C.TgZ(0,"th",17),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.EDIT_MEMBER_SPONSORS.TABLE_EXPIRATION")," "))}function T(le,je){if(1&le){const ye=C.EpF();C.TgZ(0,"button",20),C.NdJ("click",function(){C.CHM(ye);const W=C.oxw().$implicit;return C.oxw(2).changeExpiration(W)}),C.TgZ(1,"mat-icon"),C._uU(2," today "),C.qZA(),C.qZA()}}function j(le,je){if(1&le&&(C.TgZ(0,"td",18),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.YNc(3,T,3,0,"button",19),C.qZA()),2&le){const ye=je.$implicit,Be=C.oxw(2);C.xp6(2),C.Oqu(Be.parseDate(ye.validityTo)),C.xp6(1),C.Q6J("ngIf",Be.isExpirationAuthorized(ye))}}function Y(le,je){1&le&&C._UZ(0,"th",17)}function q(le,je){1&le&&(C.TgZ(0,"mat-icon",25),C._uU(1,"clear"),C.qZA())}function te(le,je){1&le&&(C.TgZ(0,"mat-icon"),C._uU(1,"settings_backup_restore"),C.qZA())}function ue(le,je){if(1&le){const ye=C.EpF();C.TgZ(0,"td",18),C.TgZ(1,"div",21),C.ALo(2,"translate"),C.TgZ(3,"button",22),C.NdJ("click",function(){const R=C.CHM(ye).$implicit;return C.oxw(2).markSponsor(R)}),C.YNc(4,q,2,0,"mat-icon",23),C.YNc(5,te,2,0,"mat-icon",24),C.qZA(),C.qZA(),C.qZA()}if(2&le){const ye=je.$implicit,Be=C.oxw(2);C.xp6(1),C.s9C("matTooltip",C.lcZ(2,6,"DIALOGS.EDIT_MEMBER_SPONSORS.REMOVE_SPONSOR_DISABLED")),C.Q6J("matTooltipDisabled",Be.isRemoveAuthorized(ye))("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",!Be.isRemoveAuthorized(ye)),C.xp6(1),C.Q6J("ngIf",!Be.sponsorsToRemove.has(ye.user.id)),C.xp6(1),C.Q6J("ngIf",Be.sponsorsToRemove.has(ye.user.id))}}function de(le,je){1&le&&C._UZ(0,"tr",26)}function Le(le,je){if(1&le&&C._UZ(0,"tr",27),2&le){const ye=je.$implicit,Be=C.oxw(2);C.ekj("make-red",Be.sponsorsToRemove.has(ye.user.id))}}function Ue(le,je){if(1&le&&(C.TgZ(0,"div",7),C.TgZ(1,"table",8),C.ynx(2,9),C.YNc(3,ge,3,3,"th",10),C.YNc(4,J,2,1,"td",11),C.BQk(),C.ynx(5,12),C.YNc(6,Me,3,3,"th",10),C.YNc(7,oe,3,3,"td",11),C.BQk(),C.ynx(8,13),C.YNc(9,Re,3,3,"th",10),C.YNc(10,j,4,2,"td",11),C.BQk(),C.ynx(11,14),C.YNc(12,Y,1,0,"th",10),C.YNc(13,ue,6,8,"td",11),C.BQk(),C.YNc(14,de,1,0,"tr",15),C.YNc(15,Le,1,2,"tr",16),C.qZA(),C.qZA()),2&le){const ye=C.oxw();C.xp6(1),C.Q6J("dataSource",ye.dataSource),C.xp6(13),C.Q6J("matHeaderRowDef",ye.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",ye.displayedColumns)}}let ze=(()=>{class le{constructor(ye,Be,W,R,me,be,Ie,pe){this.dialogRef=ye,this.data=Be,this.memberService=W,this.userService=R,this.notificator=me,this.authResolver=be,this.translate=Ie,this.dialog=pe,this.displayedColumns=["id","name","expiration","remove"],this.loading=!1,this.sponsorsToRemove=new Set,this.expirationChanged=!1}ngOnInit(){this.theme=this.data.theme,this.sponsors=this.data.sponsors,this.dataSource=new w.by(this.data.sponsors),this.vo={beanName:"Vo",id:this.data.member.voId}}markSponsor(ye){this.sponsorsToRemove.has(ye.user.id)?this.sponsorsToRemove.delete(ye.user.id):this.sponsorsToRemove.add(ye.user.id)}onSubmit(){this.loading=!0;const ye=Array.from(this.sponsorsToRemove);this.removeSponsors(ye)}onCancel(){this.dialogRef.close(this.expirationChanged)}isRemoveAuthorized(ye){return this.authResolver.isAuthorized("sponsored-removeSponsor_Member_User_policy",[this.data.member])&&this.authResolver.isAuthorized("sponsor-removeSponsor_Member_User_policy",[ye.user])}isExpirationAuthorized(ye){return this.authResolver.isAuthorized("updateSponsorshipValidity_Member_User_LocalDate",[ye.user,this.vo])}parseDate(ye){return null===ye?"Never expire":(0,E.p6)(ye,"d.M.y","en")}changeExpiration(ye){const Be=(0,g.kZ)();Be.width="400px",Be.data={memberId:this.data.member.id,sponsor:ye},this.dialog.open(A.hd,Be).afterClosed().subscribe(R=>{R&&(this.loading=!0,this.expirationChanged=!0,this.userService.getSponsorsForMember(this.data.member.id,[]).subscribe(me=>{this.sponsors=me,this.dataSource=new w.by(this.sponsors),this.loading=!1}))})}removeSponsors(ye){if(0===ye.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.EDIT_MEMBER_SPONSORS.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const Be=ye.pop();this.memberService.removeSponsor(this.data.member.id,Be).subscribe(()=>{this.removeSponsors(ye)},()=>this.loading=!1)}}return le.\u0275fac=function(ye){return new(ye||le)(C.Y36(b.so),C.Y36(b.WI),C.Y36(e.uq),C.Y36(e.Fv),C.Y36(_.V6),C.Y36(_.x4),C.Y36(I.sK),C.Y36(b.uw))},le.\u0275cmp=C.Xpm({type:le,selectors:[["app-edit-member-sponsors-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content",""],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expiration"],["matColumnDef","remove"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"make-red",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["mat-icon-button","",1,"btn-delete",3,"disabled","click"],["class","icn-delete","color","warn",4,"ngIf"],[4,"ngIf"],["color","warn",1,"icn-delete"],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(ye,Be){1&ye&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"div"),C.YNc(4,ne,1,0,"mat-spinner",1),C.YNc(5,Ue,16,3,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return Be.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Be.onSubmit()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&ye&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"DIALOGS.EDIT_MEMBER_SPONSORS.TITLE")),C.xp6(2),C.Tol(Be.theme),C.xp6(1),C.Q6J("ngIf",Be.loading),C.xp6(1),C.Q6J("ngIf",!Be.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.EDIT_MEMBER_SPONSORS.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Be.loading||0===Be.sponsorsToRemove.size),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.EDIT_MEMBER_SPONSORS.SUBMIT")," "))},directives:[b.uh,E.O5,P.$g,b.xY,w.BZ,w.w1,w.fO,w.ge,w.Dz,w.ev,m.lW,L.Hw,O.gM,w.as,w.XQ,w.nj,w.Gk,b.H8],pipes:[I.X$,G.d],styles:[".make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.btn-delete[_ngcontent-%COMP%]:disabled .icn-delete[_ngcontent-%COMP%]{color:gray}"]}),le})()},74414:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>T});var e=p(48966),b=p(93075),_=p(32105),w=p(36908),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(67322),P=p(98833),m=p(74107),L=p(90508),O=p(47423);function G(j,Y){1&j&&g._UZ(0,"mat-spinner",6)}function ne(j,Y){1&j&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_VO")," "))}function ge(j,Y){1&j&&(g.TgZ(0,"div",14),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.DESCRIPTION_GROUP")," "))}function J(j,Y){1&j&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.NAME_ERROR")))}function Me(j,Y){1&j&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&j&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"DIALOGS.INVITE_MEMBER.EMAIL_ERROR")))}function oe(j,Y){if(1&j&&(g.TgZ(0,"mat-option",15),g._uU(1),g.ALo(2,"translate"),g.ALo(3,"uppercase"),g.qZA()),2&j){const q=Y.$implicit;g.s9C("value",q),g.xp6(1),g.Oqu(g.lcZ(2,2,g.lcZ(3,4,"SHARED_LIB.LANGUAGES."+q)))}}function Re(j,Y){if(1&j){const q=g.EpF();g.TgZ(0,"div",7),g.YNc(1,ne,3,3,"div",8),g.YNc(2,ge,3,3,"div",8),g.TgZ(3,"mat-form-field",9),g._UZ(4,"input",10),g.ALo(5,"translate"),g.YNc(6,J,3,3,"mat-error",11),g.qZA(),g.TgZ(7,"mat-form-field",9),g._UZ(8,"textarea",10),g.ALo(9,"translate"),g.YNc(10,Me,3,3,"mat-error",11),g.qZA(),g.TgZ(11,"mat-form-field",9),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"mat-select",12),g.NdJ("valueChange",function(ue){return g.CHM(q),g.oxw().currentLanguage=ue}),g.YNc(16,oe,4,6,"mat-option",13),g.qZA(),g.qZA(),g.qZA()}if(2&j){const q=g.oxw();g.xp6(1),g.Q6J("ngIf",!q.data.groupId),g.xp6(1),g.Q6J("ngIf",q.data.groupId),g.xp6(2),g.s9C("placeholder",g.lcZ(5,11,"DIALOGS.INVITE_MEMBER.NAME")),g.Q6J("formControl",q.name),g.xp6(2),g.Q6J("ngIf",q.name.invalid),g.xp6(2),g.s9C("placeholder",g.lcZ(9,13,"DIALOGS.INVITE_MEMBER.EMAIL")),g.Q6J("formControl",q.emailForm),g.xp6(2),g.Q6J("ngIf",q.emailForm.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"DIALOGS.INVITE_MEMBER.LANGUAGE")),g.xp6(2),g.Q6J("value",q.currentLanguage),g.xp6(1),g.Q6J("ngForOf",q.languages)}}let T=(()=>{class j{constructor(q,te,ue,de,Le,Ue){this.dialogRef=q,this.data=te,this.registrarManager=ue,this.notificator=de,this.translate=Le,this.store=Ue,this.emailForm=new b.NI("",[b.kI.required,b.kI.email.bind(this)]),this.languages=["en"],this.currentLanguage="en",this.name=new b.NI("",b.kI.required),this.loading=!1}ngOnInit(){this.languages=this.store.get("supported_languages"),this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.emailForm.invalid||this.name.invalid||(this.data.voId&&!this.data.groupId?(this.loading=!0,this.registrarManager.sendInvitation(this.emailForm.value,this.currentLanguage,this.data.voId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(q=>{this.notificator.showSuccess(q),this.dialogRef.close(!0)})},()=>this.loading=!1)):(this.loading=!0,this.registrarManager.sendInvitationForGroup(this.emailForm.value,this.currentLanguage,this.data.voId,this.data.groupId).subscribe(()=>{this.translate.get("DIALOGS.INVITE_MEMBER.SUCCESS").subscribe(q=>{this.notificator.showSuccess(q),this.dialogRef.close(!0)})},()=>this.loading=!1)))}}return j.\u0275fac=function(q){return new(q||j)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.tk),g.Y36(w.V6),g.Y36(A.sK),g.Y36(w.d6))},j.\u0275cmp=g.Xpm({type:j,selectors:[["app-invite-member-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-italic",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-italic"],[3,"value"]],template:function(q,te){1&q&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,G,1,0,"mat-spinner",1),g.YNc(5,Re,17,17,"div",2),g.TgZ(6,"div",3),g.TgZ(7,"button",4),g.NdJ("click",function(){return te.onCancel()}),g._uU(8),g.ALo(9,"translate"),g.qZA(),g.TgZ(10,"button",5),g.NdJ("click",function(){return te.onSubmit()}),g._uU(11),g.ALo(12,"translate"),g.qZA(),g.qZA(),g.qZA()),2&q&&(g.Tol(te.theme),g.xp6(2),g.Oqu(g.lcZ(3,9,"DIALOGS.INVITE_MEMBER.TITLE")),g.xp6(2),g.Q6J("ngIf",te.loading),g.xp6(1),g.Q6J("ngIf",!te.loading),g.xp6(3),g.hij(" ",g.lcZ(9,11,"DIALOGS.INVITE_MEMBER.CANCEL")," "),g.xp6(2),g.Q6J("disabled",te.emailForm.invalid||te.name.invalid||te.loading),g.xp6(1),g.hij(" ",g.lcZ(12,13,"DIALOGS.INVITE_MEMBER.INVITE")," "))},directives:[e.uh,E.O5,C.$g,e.xY,I.KE,P.Nt,b.Fj,b.Q7,b.JJ,b.oH,I.TO,I.hX,m.gD,E.sg,L.ey,e.H8,O.lW],pipes:[A.X$,E.gd],styles:[""]}),j})()},87842:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>ue});var e=p(48966),b=p(93075),_=p(1059),w=p(24850),g=p(36769),A=p(36908),E=p(32105),C=p(5e3),I=p(51062),P=p(79814),m=p(69808),L=p(98380),O=p(67322),G=p(98833),ne=p(91079),ge=p(90508),J=p(20773),Me=p(47423),oe=p(29772);function Re(de,Le){1&de&&(C.TgZ(0,"mat-radio-button",12),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.NO_GROUP")," "))}function T(de,Le){1&de&&(C.TgZ(0,"mat-radio-button",13),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.TO_GROUP")," "))}function j(de,Le){1&de&&(C.TgZ(0,"perun-web-apps-alert",14),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&de&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"DIALOGS.MOVE_GROUP.CANNOT_MOVE")," "))}function Y(de,Le){if(1&de){const Ue=C.EpF();C.TgZ(0,"mat-option",20),C.NdJ("click",function(){const je=C.CHM(Ue).$implicit;return C.oxw(2).selectedGroup=je}),C.TgZ(1,"span"),C._uU(2),C.qZA(),C.qZA()}if(2&de){const Ue=Le.$implicit;C.Q6J("value",Ue),C.xp6(2),C.Oqu(Ue.name)}}function q(de,Le){if(1&de){const Ue=C.EpF();C.TgZ(0,"mat-form-field",15),C.TgZ(1,"input",16),C.NdJ("change",function(){return C.CHM(Ue),C.oxw().selectedGroup=null}),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"mat-autocomplete",17,18),C.YNc(5,Y,3,2,"mat-option",19),C.ALo(6,"async"),C.qZA(),C.qZA()}if(2&de){const Ue=C.MAs(4),ze=C.oxw();C.Q6J("@openClose","toGroup"===ze.moveOption?"open":"closed"),C.xp6(1),C.s9C("placeholder",C.lcZ(2,6,"DIALOGS.MOVE_GROUP.GROUP_SELECT")),C.Q6J("formControl",ze.otherGroupsCtrl)("matAutocomplete",Ue),C.xp6(2),C.Q6J("displayWith",ze.displayFn),C.xp6(2),C.Q6J("ngForOf",C.lcZ(6,8,ze.filteredGroups))}}function te(de,Le){1&de&&C._UZ(0,"mat-spinner",21)}let ue=(()=>{class de{constructor(Ue,ze,le,je,ye,Be,W){this.dialogRef=Ue,this.data=ze,this.groupService=le,this.notificator=je,this.translate=ye,this.apiRequest=Be,this.authResolver=W,this.toRootOptionDisabled=!1,this.toGroupOptionDisabled=!1,this.otherGroups=[],this.otherGroupsCtrl=new b.NI(null,[b.kI.required.bind(this)]),this.loading=!1,this.selectedGroup=null,this.translate.get("DIALOGS.MOVE_GROUP.SUCCESS").subscribe(R=>this.successMessage=R),this.translate.get("DIALOGS.MOVE_GROUP.ERROR").subscribe(R=>this.errorMessage=R)}ngOnInit(){this.loading=!0,this.groupService.getAllGroups(this.data.group.voId).subscribe(Ue=>{this.otherGroups=Ue.filter(ze=>ze.id!==this.data.group.id&&"members"!==ze.name&&this.canMove(ze)),0===this.otherGroups.length&&(this.toGroupOptionDisabled=!0),(null===this.data.group.parentGroupId||!this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.data.group]))&&(this.toRootOptionDisabled=!0,this.moveOption="toGroup"),this.filteredGroups=this.otherGroupsCtrl.valueChanges.pipe((0,_.O)(""),(0,w.U)(ze=>ze?this._filterGroups(ze):this.otherGroups.slice())),this.loading=!1},()=>this.loading=!1)}displayFn(Ue){return Ue&&Ue.name}canMove(Ue){return this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[Ue,this.data.group])&&this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.data.group,Ue])}close(){this.dialogRef.close()}confirm(){this.loading=!0,this.apiRequest.dontHandleErrorForNext(),this.groupService.moveGroupWithDestinationGroupMovingGroup(this.data.group.id,this.otherGroupsCtrl.value?this.otherGroupsCtrl.value.id:void 0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},Ue=>{this.notificator.showRPCError(Ue,this.errorMessage),this.dialogRef.close(!1)})}_filterGroups(Ue){if("object"==typeof Ue)return[];const ze=Ue.toLowerCase();return Ue?this.otherGroups.filter(le=>le.name.toLowerCase().includes(ze)):this.otherGroups}}return de.\u0275fac=function(Ue){return new(Ue||de)(C.Y36(e.so),C.Y36(e.WI),C.Y36(E.ff),C.Y36(A.V6),C.Y36(I.sK),C.Y36(A.F5),C.Y36(A.x4))},de.\u0275cmp=C.Xpm({type:de,selectors:[["app-move-group-dialog"]],decls:23,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"ngModel","ngModelChange"],["color","primary","class","move-options","value","toRoot",4,"ngIf"],["color","primary","value","toGroup",4,"ngIf"],["alert_type","warn",4,"ngIf"],["class","w-100 mt-2",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["color","primary","value","toRoot",1,"move-options"],["color","primary","value","toGroup"],["alert_type","warn"],[1,"w-100","mt-2"],["matInput","","required","",3,"placeholder","formControl","matAutocomplete","change"],[3,"displayWith"],["groupSelectAutocomplete","matAutocomplete"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"ml-auto","mr-auto"]],template:function(Ue,ze){1&Ue&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",1),C.TgZ(5,"p"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.TgZ(8,"mat-radio-group",2),C.NdJ("ngModelChange",function(je){return ze.moveOption=je}),C.YNc(9,Re,3,3,"mat-radio-button",3),C.YNc(10,T,3,3,"mat-radio-button",4),C.qZA(),C.YNc(11,j,3,3,"perun-web-apps-alert",5),C.YNc(12,q,7,10,"mat-form-field",6),C.qZA(),C.YNc(13,te,1,0,"mat-spinner",7),C.TgZ(14,"div",8),C.TgZ(15,"button",9),C.NdJ("click",function(){return ze.close()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"span",10),C.ALo(19,"translate"),C.TgZ(20,"button",11),C.NdJ("click",function(){return ze.confirm()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()),2&Ue&&(C.Tol(ze.data.theme),C.xp6(2),C.AsE("",C.lcZ(3,18,"DIALOGS.MOVE_GROUP.TITLE"),"",ze.data.group.name,""),C.xp6(4),C.hij(" ",C.lcZ(7,20,"DIALOGS.MOVE_GROUP.INFO")," "),C.xp6(2),C.Q6J("ngModel",ze.moveOption),C.xp6(1),C.Q6J("ngIf",!ze.toRootOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.toRootOptionDisabled&&ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",!ze.toGroupOptionDisabled),C.xp6(1),C.Q6J("ngIf",ze.loading),C.xp6(3),C.hij(" ",C.lcZ(17,22,"DIALOGS.MOVE_GROUP.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,24,"DIALOGS.MOVE_GROUP.DISABLED_HINT")),C.Q6J("matTooltipDisabled",null!==ze.selectedGroup||"toRoot"===ze.moveOption)("matTooltipPosition","above"),C.xp6(2),C.Q6J("disabled",(ze.otherGroupsCtrl.invalid||null===ze.selectedGroup)&&"toRoot"!==ze.moveOption||ze.loading),C.xp6(1),C.hij(" ",C.lcZ(22,26,"DIALOGS.MOVE_GROUP.CONFIRM")," "))},directives:[e.uh,e.xY,P.VQ,b.JJ,b.On,m.O5,P.U0,L.w,O.KE,G.Nt,b.Fj,ne.ZL,b.Q7,b.oH,ne.XC,m.sg,ge.ey,J.$g,e.H8,Me.lW,oe.gM],pipes:[I.X$,m.Ov],styles:[".move-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"],data:{animation:[g.BQ]}}),de})()},58964:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>J});var e=p(48966),b=p(32105),_=p(36908),w=p(5e3),g=p(51062),A=p(69808),E=p(20773),C=p(67322),I=p(74107),P=p(90508),m=p(47423);function L(Me,oe){1&Me&&w._UZ(0,"mat-spinner",7)}function O(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",Re.friendlyNameParameter," ")}}function G(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.ALo(2,"translate"),w.ALo(3,"uppercase"),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",w.lcZ(2,2,w.lcZ(3,4,"SHARED_LIB.LANGUAGES."+Re))," ")}}function ne(Me,oe){if(1&Me&&(w.TgZ(0,"mat-option",13),w._uU(1),w.qZA()),2&Me){const Re=oe.$implicit;w.Q6J("value",Re),w.xp6(1),w.hij(" ",Re," ")}}function ge(Me,oe){if(1&Me){const Re=w.EpF();w.TgZ(0,"div",8),w.TgZ(1,"mat-form-field"),w.TgZ(2,"mat-label"),w._uU(3),w.ALo(4,"translate"),w.qZA(),w.TgZ(5,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedLogin=j}),w.YNc(6,O,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(7,"mat-form-field"),w.TgZ(8,"mat-label"),w._uU(9),w.ALo(10,"translate"),w.qZA(),w.TgZ(11,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedLang=j}),w.YNc(12,G,4,6,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(13,"mat-form-field"),w.TgZ(14,"mat-label"),w._uU(15),w.ALo(16,"translate"),w.qZA(),w.TgZ(17,"mat-select",9),w.NdJ("valueChange",function(j){return w.CHM(Re),w.oxw().selectedMail=j}),w.YNc(18,ne,2,2,"mat-option",10),w.qZA(),w.qZA(),w.TgZ(19,"div",11),w.TgZ(20,"p",12),w._uU(21),w.ALo(22,"translate"),w.qZA(),w.TgZ(23,"p"),w._uU(24),w.qZA(),w.qZA(),w.qZA()}if(2&Me){const Re=w.oxw();w.xp6(3),w.Oqu(w.lcZ(4,11,"DIALOGS.PASSWORD_RESET_REQUEST.NAMESPACE")),w.xp6(2),w.Q6J("value",Re.selectedLogin),w.xp6(1),w.Q6J("ngForOf",Re.logins),w.xp6(3),w.Oqu(w.lcZ(10,13,"DIALOGS.PASSWORD_RESET_REQUEST.LANGUAGE")),w.xp6(2),w.Q6J("value",Re.selectedLang),w.xp6(1),w.Q6J("ngForOf",Re.languages),w.xp6(3),w.Oqu(w.lcZ(16,15,"DIALOGS.PASSWORD_RESET_REQUEST.EMAIL")),w.xp6(2),w.Q6J("value",Re.selectedMail),w.xp6(1),w.Q6J("ngForOf",Re.mails),w.xp6(3),w.Oqu(w.lcZ(22,17,"DIALOGS.PASSWORD_RESET_REQUEST.LOGIN")),w.xp6(3),w.Oqu(Re.selectedLogin.value)}}let J=(()=>{class Me{constructor(Re,T,j,Y,q,te,ue){this.dialogRef=Re,this.data=T,this.membersManagerService=j,this.attributesManagerService=Y,this.store=q,this.translate=te,this.notificator=ue,this.languages=this.store.get("supported_languages"),this.selectedLang="en",this.pwdMails=new Map,this.logins=[],this.selectedMail="user:preferredMail",this.mails=[],te.get("DIALOGS.PASSWORD_RESET_REQUEST.SUCCESS").subscribe(de=>this.successMessage=de)}ngOnInit(){this.getMailAttributes(),this.logins=this.data.logins,this.selectedLogin=this.logins[0]}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0;const Re=this.selectedLogin.friendlyNameParameter,j=window.location.href.split("/"),Y=j[0]+"//"+j[2];this.membersManagerService.sendPasswordResetLinkEmail(this.data.memberId,Re,this.pwdMails.get(this.selectedMail),this.selectedLang,Y).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close()},()=>this.loading=!1)}getMailAttributes(){this.pwdMails.set("user:preferredMail","urn:perun:user:attribute-def:def:preferredMail"),this.pwdMails.set("member:mail","urn:perun:member:attribute-def:def:mail"),this.mails=Array.from(this.pwdMails.keys()),this.selectedMail="user:preferredMail"}}return Me.\u0275fac=function(Re){return new(Re||Me)(w.Y36(e.so),w.Y36(e.WI),w.Y36(b.uq),w.Y36(b.H8),w.Y36(_.d6),w.Y36(g.sK),w.Y36(_.V6))},Me.\u0275cmp=w.Xpm({type:Me,selectors:[["app-password-reset-request-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],[1,"member-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container member-theme","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","member-theme"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"column-size","ml-3"],[3,"value"]],template:function(Re,T){1&Re&&(w.TgZ(0,"h1",0),w._uU(1),w.ALo(2,"translate"),w.qZA(),w.TgZ(3,"div",1),w.YNc(4,L,1,0,"mat-spinner",2),w.qZA(),w.YNc(5,ge,25,19,"div",3),w.TgZ(6,"div",4),w.TgZ(7,"button",5),w.NdJ("click",function(){return T.onCancel()}),w._uU(8),w.ALo(9,"translate"),w.qZA(),w.TgZ(10,"button",6),w.NdJ("click",function(){return T.onSubmit()}),w._uU(11),w.ALo(12,"translate"),w.qZA(),w.qZA()),2&Re&&(w.xp6(1),w.Oqu(w.lcZ(2,6,"DIALOGS.PASSWORD_RESET_REQUEST.TITLE")),w.xp6(3),w.Q6J("ngIf",T.loading),w.xp6(1),w.Q6J("ngIf",!T.loading),w.xp6(3),w.hij(" ",w.lcZ(9,8,"DIALOGS.PASSWORD_RESET_REQUEST.CANCEL")," "),w.xp6(2),w.Q6J("disabled",T.loading),w.xp6(1),w.hij(" ",w.lcZ(12,10,"DIALOGS.PASSWORD_RESET_REQUEST.SEND")," "))},directives:[e.uh,A.O5,E.$g,e.xY,C.KE,C.hX,I.gD,A.sg,P.ey,e.H8,m.lW],pipes:[g.X$,A.gd],styles:[".column-size[_ngcontent-%COMP%]{width:8rem}"]}),Me})()},53455:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>Re});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(69808),C=p(20773),I=p(47423),P=p(31359);function m(T,j){1&T&&g._UZ(0,"th",13)}function L(T,j){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.qZA()),2&T){const Y=j.$implicit;g.xp6(1),g.Oqu(Y.id)}}function O(T,j){1&T&&g._UZ(0,"th",13)}function G(T,j){if(1&T&&(g.TgZ(0,"td",14),g._uU(1),g.ALo(2,"userFullName"),g.qZA()),2&T){const Y=j.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,Y.user))}}function ne(T,j){1&T&&g._UZ(0,"tr",15)}function ge(T,j){1&T&&g._UZ(0,"tr",16)}function J(T,j){if(1&T&&(g.TgZ(0,"div",4),g.TgZ(1,"p"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"div",5),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.TgZ(7,"table",6),g.ynx(8,7),g.YNc(9,m,1,0,"th",8),g.YNc(10,L,2,1,"td",9),g.BQk(),g.ynx(11,10),g.YNc(12,O,1,0,"th",8),g.YNc(13,G,3,3,"td",9),g.BQk(),g.YNc(14,ne,1,0,"tr",11),g.YNc(15,ge,1,0,"tr",12),g.qZA(),g.qZA()),2&T){const Y=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,5,Y.data.groupId?"DIALOGS.REMOVE_MEMBERS.DESCRIPTION_GROUP":"DIALOGS.REMOVE_MEMBERS.DESCRIPTION")," "),g.xp6(3),g.hij(" ",g.lcZ(6,7,"DIALOGS.REMOVE_MEMBERS.ASK")," "),g.xp6(2),g.Q6J("dataSource",Y.dataSource),g.xp6(7),g.Q6J("matHeaderRowDef",Y.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",Y.displayedColumns)}}function Me(T,j){1&T&&g._UZ(0,"mat-spinner",17)}function oe(T,j){if(1&T){const Y=g.EpF();g.TgZ(0,"div",18),g.TgZ(1,"button",19),g.NdJ("click",function(){return g.CHM(Y),g.oxw().onCancel()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.TgZ(4,"button",20),g.NdJ("click",function(){return g.CHM(Y),g.oxw().onSubmit()}),g._uU(5),g.ALo(6,"translate"),g.qZA(),g.qZA()}if(2&T){const Y=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,2,"DIALOGS.REMOVE_MEMBERS.CANCEL")," "),g.xp6(3),g.hij(" ",g.lcZ(6,4,Y.data.groupId?"DIALOGS.REMOVE_MEMBERS.REMOVE_GROUP":"DIALOGS.REMOVE_MEMBERS.REMOVE")," ")}}let Re=(()=>{class T{constructor(Y,q,te,ue,de,Le){this.dialogRef=Y,this.data=q,this.membersService=te,this.groupService=ue,this.notificator=de,this.translate=Le,this.displayedColumns=["id","name"]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.members)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.groupId?this.groupService.removeMembers(this.data.groupId,this.data.members.map(Y=>Y.id)).subscribe(()=>this.onSuccess(),()=>this.onError()):this.membersService.deleteMembers(this.data.members.map(Y=>Y.id)).subscribe(()=>this.onSuccess(),()=>this.onError())}onSuccess(){const Y=this.translate.instant(this.data.groupId?"DIALOGS.REMOVE_MEMBERS.SUCCESS_GROUP":"DIALOGS.REMOVE_MEMBERS.SUCCESS");this.notificator.showSuccess(Y),this.dialogRef.close(!0),this.loading=!1}onError(){this.loading=!1}}return T.\u0275fac=function(Y){return new(Y||T)(g.Y36(e.so),g.Y36(e.WI),g.Y36(w.uq),g.Y36(w.ff),g.Y36(_.V6),g.Y36(A.sK))},T.\u0275cmp=g.Xpm({type:T,selectors:[["app-remove-members-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[1,"mr-auto","ml-auto"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","remove-members-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(Y,q){1&Y&&(g.TgZ(0,"div"),g.TgZ(1,"h1",0),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.YNc(4,J,16,9,"div",1),g.YNc(5,Me,1,0,"mat-spinner",2),g.YNc(6,oe,7,6,"div",3),g.qZA()),2&Y&&(g.Tol(q.theme),g.xp6(2),g.Oqu(g.lcZ(3,7,"DIALOGS.REMOVE_MEMBERS.TITLE")),g.xp6(2),g.Q6J("ngIf",!q.loading),g.xp6(1),g.Q6J("ngIf",q.loading),g.xp6(1),g.Q6J("ngIf",!q.loading))},directives:[e.uh,E.O5,e.xY,b.BZ,b.w1,b.fO,b.ge,b.Dz,b.ev,b.as,b.XQ,b.nj,b.Gk,C.$g,e.H8,I.lW],pipes:[A.X$,P.d],styles:[""]}),T})()},533:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.translate=G,this.resourcesManager=ne,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,0===this.data.resources.length?this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(m=>{this.loading=!1,this.notificator.showSuccess(m),this.dialogRef.close(!0)}):this.resourcesManager.deleteResource(this.data.resources[0].id).subscribe(()=>{this.data.resources.shift(),this.onDelete()},()=>{this.dialogRef.close(!0)})}onSubmit(m){m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(A.sK),g.Y36(w.xk))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-remove-resource-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","disableForce","loading","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","resources")("disableForce",!0)("loading",L.loading))},directives:[E.e],styles:[""]}),I})()},11717:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>C});var e=p(48966),b=p(32075),_=p(36908),w=p(32105),g=p(5e3),A=p(51062),E=p(90995);let C=(()=>{class I{constructor(m,L,O,G,ne){this.dialogRef=m,this.data=L,this.notificator=O,this.voService=G,this.translate=ne,this.force=!1,this.displayedColumns=["name"],this.relations=[],ne.get("DIALOGS.REMOVE_VO.SUCCESS").subscribe(ge=>this.successMessage=ge)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new b.by(this.data.vos),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.MEMBER_RELATION")),this.relations.push(this.translate.instant("DIALOGS.REMOVE_VO.RESOURCE_RELATION"))}onCancel(){this.dialogRef.close(!1)}onDelete(){this.loading=!0,this.voService.deleteVo(this.data.vos[0].id,this.force).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(m){this.force=m.force,m.deleted?this.onDelete():this.onCancel()}}return I.\u0275fac=function(m){return new(m||I)(g.Y36(e.so),g.Y36(e.WI),g.Y36(_.V6),g.Y36(w.YF),g.Y36(A.sK))},I.\u0275cmp=g.Xpm({type:I,selectors:[["app-remove-vo-dialog"]],decls:2,vars:7,consts:[[3,"entityNames","entityType","loading","relations","deleted"]],template:function(m,L){1&m&&(g.TgZ(0,"div"),g.TgZ(1,"perun-web-apps-delete-entity-dialog",0),g.NdJ("deleted",function(G){return L.onSubmit(G)}),g.qZA(),g.qZA()),2&m&&(g.Tol(L.theme),g.xp6(1),g.Q6J("entityNames",L.dataSource)("entityType","organizations")("loading",L.loading)("relations",L.relations))},directives:[E.e],styles:[".foo[_ngcontent-%COMP%]{margin-top:20px}"]}),I})()},1186:($e,_e,p)=>{"use strict";p.d(_e,{E:()=>ge});var e=p(48966),b=p(32105),_=p(5e3),w=p(69808),g=p(20773),A=p(67322),E=p(98833),C=p(93075),I=p(74107),P=p(90508),m=p(47423),L=p(51062);function O(J,Me){1&J&&_._UZ(0,"mat-spinner",6)}function G(J,Me){if(1&J){const oe=_.EpF();_.TgZ(0,"div"),_.TgZ(1,"mat-form-field",9),_.TgZ(2,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw(2).embeddedState=T}),_.ALo(3,"translate"),_.TgZ(4,"mat-option",11),_._uU(5),_.ALo(6,"translate"),_.qZA(),_.TgZ(7,"mat-option",12),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.qZA(),_.qZA(),_.qZA()}if(2&J){const oe=_.oxw(2);_.xp6(2),_.MGl("placeholder","",_.lcZ(3,4,"DIALOGS.UPDATE_APPLICATION_FORM.EMBEDDED"),":"),_.Q6J("value",oe.embeddedState),_.xp6(3),_.Oqu(_.lcZ(6,6,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(9,8,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL"))}}function ne(J,Me){if(1&J){const oe=_.EpF();_.TgZ(0,"div",7),_.TgZ(1,"mat-form-field"),_.TgZ(2,"input",8),_.NdJ("ngModelChange",function(T){return _.CHM(oe),_.oxw().moduleName=T}),_.ALo(3,"translate"),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",9),_.TgZ(5,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw().initialState=T}),_.ALo(6,"translate"),_.TgZ(7,"mat-option",11),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"mat-option",12),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(13,"mat-form-field",9),_.TgZ(14,"mat-select",10),_.NdJ("valueChange",function(T){return _.CHM(oe),_.oxw().extensionState=T}),_.ALo(15,"translate"),_.TgZ(16,"mat-option",11),_._uU(17),_.ALo(18,"translate"),_.qZA(),_.TgZ(19,"mat-option",12),_._uU(20),_.ALo(21,"translate"),_.qZA(),_.qZA(),_.qZA(),_.YNc(22,G,10,10,"div",13),_.qZA()}if(2&J){const oe=_.oxw();_.xp6(2),_.s9C("placeholder",_.lcZ(3,11,"DIALOGS.UPDATE_APPLICATION_FORM.MODULE_NAME")),_.Q6J("ngModel",oe.moduleName),_.xp6(3),_.MGl("placeholder","",_.lcZ(6,13,"DIALOGS.UPDATE_APPLICATION_FORM.INITIAL"),":"),_.Q6J("value",oe.initialState),_.xp6(3),_.Oqu(_.lcZ(9,15,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(12,17,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(3),_.MGl("placeholder","",_.lcZ(15,19,"DIALOGS.UPDATE_APPLICATION_FORM.EXTENSION"),":"),_.Q6J("value",oe.extensionState),_.xp6(3),_.Oqu(_.lcZ(18,21,"DIALOGS.UPDATE_APPLICATION_FORM.AUTOMATIC")),_.xp6(3),_.Oqu(_.lcZ(21,23,"DIALOGS.UPDATE_APPLICATION_FORM.MANUAL")),_.xp6(2),_.Q6J("ngIf","group"===oe.entity&&oe.autoRegistrationEnabled)}}let ge=(()=>{class J{constructor(oe,Re,T){this.dialogRef=oe,this.data=Re,this.registrarManager=T,this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.applicationForm=this.data.applicationForm,this.moduleName=this.applicationForm.moduleClassName,this.initialState=this.applicationForm.automaticApproval?"auto":"manual",this.extensionState=this.applicationForm.automaticApprovalExtension?"auto":"manual",this.embeddedState=this.applicationForm.automaticApprovalEmbedded?"auto":"manual",this.entity=this.data.entity,this.autoRegistrationEnabled=this.data.autoRegistrationEnabled}onCancel(){this.dialogRef.close()}submit(){this.loading=!0,this.applicationForm.moduleClassName=this.moduleName,this.applicationForm.automaticApproval="auto"===this.initialState,this.applicationForm.automaticApprovalExtension="auto"===this.extensionState,this.applicationForm.automaticApprovalEmbedded="auto"===this.embeddedState,this.registrarManager.updateForm({form:this.applicationForm}).subscribe(oe=>{this.dialogRef.close(oe)},()=>this.loading=!1)}}return J.\u0275fac=function(oe){return new(oe||J)(_.Y36(e.so),_.Y36(e.WI),_.Y36(b.tk))},J.\u0275cmp=_.Xpm({type:J,selectors:[["app-update-application-form-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","",3,"ngModel","placeholder","ngModelChange"],[1,"w-100"],["disableOptionCentering","",3,"value","placeholder","valueChange"],["value","auto"],["value","manual"],[4,"ngIf"]],template:function(oe,Re){1&oe&&(_.TgZ(0,"div"),_.TgZ(1,"h1",0),_._uU(2),_.ALo(3,"translate"),_.qZA(),_.YNc(4,O,1,0,"mat-spinner",1),_.YNc(5,ne,23,25,"div",2),_.TgZ(6,"div",3),_.TgZ(7,"button",4),_.NdJ("click",function(){return Re.onCancel()}),_._uU(8),_.ALo(9,"translate"),_.qZA(),_.TgZ(10,"button",5),_.NdJ("click",function(){return Re.submit()}),_._uU(11),_.ALo(12,"translate"),_.qZA(),_.qZA(),_.qZA()),2&oe&&(_.Tol(Re.theme),_.xp6(2),_.Oqu(_.lcZ(3,9,"DIALOGS.UPDATE_APPLICATION_FORM.TITLE")),_.xp6(2),_.Q6J("ngIf",Re.loading),_.xp6(1),_.Q6J("ngIf",!Re.loading),_.xp6(3),_.hij(" ",_.lcZ(9,11,"DIALOGS.UPDATE_APPLICATION_FORM.CANCEL_BUTTON")," "),_.xp6(2),_.Q6J("disabled",Re.loading),_.xp6(1),_.hij(" ",_.lcZ(12,13,"DIALOGS.UPDATE_APPLICATION_FORM.SUBMIT_BUTTON")," "))},directives:[e.uh,w.O5,g.$g,e.xY,A.KE,E.Nt,C.Fj,C.JJ,C.On,I.gD,P.ey,e.H8,m.lW],pipes:[L.X$],styles:[""]}),J})()},60205:($e,_e,p)=>{"use strict";p.d(_e,{Q:()=>W});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),I=p(69808),P=p(25245),m=p(29772),L=p(50301),O=p(11735),G=p(98380),ne=p(51062);function ge(R,me){if(1&R){const be=e.EpF();e.TgZ(0,"th",18),e.TgZ(1,"mat-checkbox",19),e.NdJ("change",function(pe){e.CHM(be);const Se=e.oxw();return pe?Se.masterToggle():null}),e.qZA(),e.qZA()}if(2&R){const be=e.oxw();e.xp6(1),e.Q6J("aria-label",be.checkboxLabel())("checked",be.selection.hasValue()&&be.isAllSelected())("indeterminate",be.selection.hasValue()&&!be.isAllSelected())}}function J(R,me){if(1&R){const be=e.EpF();e.TgZ(0,"td",20),e.TgZ(1,"mat-checkbox",21),e.NdJ("change",function(pe){const Xe=e.CHM(be).$implicit,Je=e.oxw();return pe?Je.selection.toggle(Xe):null})("click",function(pe){return pe.stopPropagation()}),e.qZA(),e.qZA()}if(2&R){const be=me.$implicit,Ie=e.oxw();e.xp6(1),e.Q6J("aria-label",Ie.checkboxLabel(be))("checked",Ie.selection.isSelected(be))}}function Me(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.ID")," "))}function oe(R,me){if(1&R&&(e.TgZ(0,"td",23),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.id)}}function Re(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NAME")," "))}function T(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.name)}}function j(R,me){1&R&&e._UZ(0,"th",25)}function Y(R,me){1&R&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," check_circle_outline "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.ENABLED"))}function q(R,me){1&R&&(e.TgZ(0,"mat-icon",27),e.ALo(1,"translate"),e._uU(2," block "),e.qZA()),2&R&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED.COMPONENTS.SERVICES_LIST.DISABLED"))}function te(R,me){if(1&R&&(e.TgZ(0,"td",24),e.YNc(1,Y,3,3,"mat-icon",26),e.YNc(2,q,3,3,"mat-icon",26),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Q6J("ngIf",be.enabled),e.xp6(1),e.Q6J("ngIf",!be.enabled)}}function ue(R,me){1&R&&(e.TgZ(0,"th",25),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.SCRIPT")," "))}function de(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.script)}}function Le(R,me){1&R&&(e.TgZ(0,"th",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.DESCRIPTION")," "))}function Ue(R,me){if(1&R&&(e.TgZ(0,"td",24),e._uU(1),e.qZA()),2&R){const be=me.$implicit;e.xp6(1),e.Oqu(be.description)}}function ze(R,me){1&R&&e._UZ(0,"tr",28)}const le=function(R){return["/admin/services",R]};function je(R,me){if(1&R&&e._UZ(0,"tr",29),2&R){const be=me.$implicit,Ie=e.oxw();e.ekj("cursor-pointer",!Ie.disableRouting)("disable-outline",Ie.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",Ie.disableRouting?null:e.VKq(6,le,be.id))("routerLink",Ie.disableRouting?null:e.VKq(8,le,be.id))}}function ye(R,me){1&R&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Be(R,me){1&R&&(e.TgZ(0,"perun-web-apps-alert",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&R&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED.COMPONENTS.SERVICES_LIST.NO_SERVICES_WARNING"),"\n"))}let W=(()=>{class R{constructor(be,Ie){this.authResolver=be,this.tableCheckbox=Ie,this.services=[],this.filterValue="",this.displayedColumns=["select","id","name","enabled","script","description"],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.selectionChanged=new e.vpe,this.pageSizeOptions=g.f7}set matSort(be){this.sort=be,this.setDataSource()}static getDataForColumn(be,Ie){switch(Ie){case"id":return be.id.toString();case"name":return be.name;case"enabled":return be.enabled?"true":"false";case"script":return be.script;case"description":return be.description;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(be=>"id"!==be)),this.dataSource=new _.by(this.services),this.setDataSource(),this.selection.changed.subscribe(()=>{this.selectionChanged.emit()})}exportData(be){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,R.getDataForColumn),be)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(be,Ie)=>(0,g.Sd)(be,Ie,this.displayedColumns,R.getDataForColumn),this.dataSource.sortData=(be,Ie)=>(0,g.pR)(be,Ie,R.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(be){return be?`${this.selection.isSelected(be)?"deselect":"select"} row ${be.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return R.\u0275fac=function(be){return new(be||R)(e.Y36(A.x4),e.Y36(A.UA))},R.\u0275cmp=e.Xpm({type:R,selectors:[["app-services-list"]],viewQuery:function(be,Ie){if(1&be&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&be){let pe;e.iGM(pe=e.CRH())&&(Ie.child=pe.first),e.iGM(pe=e.CRH())&&(Ie.matSort=pe.first)}},inputs:{services:"services",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",disableRouting:"disableRouting"},outputs:{selectionChanged:"selectionChanged"},features:[e.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","script"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["class","align-bottom",3,"matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(be,Ie){1&be&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(Se){return Ie.exportData(Se)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,ge,2,3,"th",4),e.YNc(5,J,2,2,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Me,3,3,"th",7),e.YNc(8,oe,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Re,3,3,"th",7),e.YNc(11,T,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,j,1,0,"th",12),e.YNc(14,te,3,2,"td",10),e.BQk(),e.ynx(15,13),e.YNc(16,ue,3,3,"th",12),e.YNc(17,de,2,1,"td",10),e.BQk(),e.ynx(18,14),e.YNc(19,Le,3,3,"th",7),e.YNc(20,Ue,2,1,"td",10),e.BQk(),e.YNc(21,ze,1,0,"tr",15),e.YNc(22,je,1,10,"tr",16),e.qZA(),e.qZA(),e.qZA(),e.YNc(23,ye,3,3,"perun-web-apps-alert",17),e.YNc(24,Be,3,3,"perun-web-apps-alert",17)),2&be&&(e.Q6J("hidden",void 0===Ie.services||0===Ie.services.length||0===Ie.dataSource.filteredData.length),e.xp6(1),e.Q6J("pageSizeOptions",Ie.pageSizeOptions)("dataLength",Ie.dataSource.filteredData.length)("tableId",Ie.tableId),e.xp6(1),e.Q6J("dataSource",Ie.dataSource),e.xp6(19),e.Q6J("matHeaderRowDef",Ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Ie.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Ie.dataSource.filteredData.length&&void 0!==Ie.services&&0!==Ie.services.length),e.xp6(1),e.Q6J("ngIf",void 0===Ie.services||0===Ie.services.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,b.nU,I.O5,P.Hw,m.gM,_.as,_.XQ,_.nj,_.Gk,L.YH,O.rH,G.w],pipes:[ne.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),R})()},64877:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>Xe});var e=p(84847),b=p(32075),_=p(20449),w=p(9244),g=p(36908),A=p(5e3),E=p(18750),C=p(69808),I=p(77446),P=p(25245),m=p(29772),L=p(50301),O=p(98380),G=p(51062),ne=p(31359),ge=p(9954),J=p(16119),Me=p(7598);function oe(Je,nt){if(1&Je){const Ve=A.EpF();A.TgZ(0,"mat-checkbox",21),A.NdJ("change",function(z){A.CHM(Ve);const Q=A.oxw(2);return z?Q.masterToggle():null}),A.qZA()}if(2&Je){const Ve=A.oxw(2);A.Q6J("aria-label",Ve.checkboxLabel())("checked",Ve.selection.hasValue()&&Ve.isAllSelected())("indeterminate",Ve.selection.hasValue()&&!Ve.isAllSelected())}}function Re(Je,nt){if(1&Je&&(A.TgZ(0,"th",19),A.YNc(1,oe,1,3,"mat-checkbox",20),A.qZA()),2&Je){const Ve=A.oxw();A.xp6(1),A.Q6J("ngIf",Ve.selection.isMultipleSelection())}}function T(Je,nt){if(1&Je){const Ve=A.EpF();A.TgZ(0,"td",22),A.TgZ(1,"mat-checkbox",23),A.NdJ("change",function(z){const D=A.CHM(Ve).$implicit,H=A.oxw();return z?H.selection.toggle(D):null})("click",function(z){return z.stopPropagation()}),A.ALo(2,"lowercase"),A.qZA(),A.qZA()}if(2&Je){const Ve=nt.$implicit,X=A.oxw();A.xp6(1),A.Q2q("data-cy","",A.lcZ(2,4,Ve.firstName),"-checkbox"),A.Q6J("aria-label",X.checkboxLabel(Ve))("checked",X.selection.isSelected(Ve))("disabled",X.disableSelf&&Ve.id===X.principalId&&!X.authResolver.isPerunAdmin())}}function j(Je,nt){1&Je&&A._UZ(0,"th",24)}function Y(Je,nt){1&Je&&(A.TgZ(0,"mat-icon",28),A.ALo(1,"translate"),A._uU(2," account_circle "),A.qZA()),2&Je&&A.s9C("matTooltip",A.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function q(Je,nt){if(1&Je&&(A._UZ(0,"mat-icon",29),A.ALo(1,"translate")),2&Je){const Ve=A.oxw(2);A.s9C("matTooltip",A.lcZ(1,2,"MANAGERS_LIST.SERVICE")),A.Q6J("svgIcon",Ve.svgIcon)}}function te(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A.YNc(1,Y,3,3,"mat-icon",26),A.YNc(2,q,2,4,"mat-icon",27),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Q6J("ngIf",!Ve.serviceUser),A.xp6(1),A.Q6J("ngIf",Ve.serviceUser)}}function ue(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function de(Je,nt){if(1&Je&&(A.TgZ(0,"td",25),A._uU(1),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.hij(" ",Ve.id," ")}}function Le(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Ue(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userFullName"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function ze(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")," "))}function le(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userVo"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function je(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.EMAIL")," "))}function ye(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userEmail"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function Be(Je,nt){1&Je&&(A.TgZ(0,"th",30),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"MANAGERS_LIST.LOGINS")," "))}function W(Je,nt){if(1&Je&&(A.TgZ(0,"td",31),A._uU(1),A.ALo(2,"userLogins"),A.qZA()),2&Je){const Ve=nt.$implicit;A.xp6(1),A.Oqu(A.lcZ(2,1,Ve))}}function R(Je,nt){1&Je&&A._UZ(0,"tr",32)}const me=function(Je){return["/admin/users",Je]},be=function(Je){return["/myProfile/service-identities",Je]};function Ie(Je,nt){if(1&Je&&A._UZ(0,"tr",33),2&Je){const Ve=nt.$implicit,X=A.oxw();A.ekj("cursor-pointer",!X.disableRouting),A.Q6J("perunWebAppsForceRouterLink",X.disableRouting?null:X.routeToAdmin?A.VKq(4,me,Ve.id):A.VKq(6,be,Ve.id))("perunWebAppsMiddleClickRouterLink",X.disableRouting?null:X.routeToAdmin?A.VKq(8,me,Ve.id):A.VKq(10,be,Ve.id))}}function pe(Je,nt){if(1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je){const Ve=A.oxw();A.xp6(1),A.hij(" ",Ve.noUsersFoundLabel?Ve.noUsersFoundLabel:A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n")}}function Se(Je,nt){1&Je&&(A.TgZ(0,"perun-web-apps-alert",34),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&Je&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Xe=(()=>{class Je{constructor(Ve,X,z){this.authResolver=Ve,this.tableCheckbox=X,this.storeService=z,this.selection=new _.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.routeToAdmin=!0,this.disableRouting=!1,this.filter="",this.disableSelf=!1,this.svgIcon="perun-service-identity-black",this.pageSizeOptions=w.f7}set matSort(Ve){this.sort=Ve}static getDataForColumn(Ve,X){var z;switch(X){case"id":return Ve.id.toString();case"user":return Ve.serviceUser?"true":"false";case"name":return Ve?Ve.lastName?Ve.lastName:null!==(z=Ve.firstName)&&void 0!==z?z:"":"";case"organization":return(0,w.OV)(Ve);case"email":return(0,w.kN)(Ve);case"logins":return(0,w.lt)(Ve);default:return""}}static getExportDataForColumn(Ve,X){switch(X){case"id":return Ve.id.toString();case"user":return Ve.serviceUser?"service-user":"user";case"name":return Ve?(0,w.bD)(Ve):"";case"organization":return(0,w.OV)(Ve);case"email":return(0,w.kN)(Ve);case"logins":return(0,w.lt)(Ve);default:return""}}exportData(Ve){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Je.getExportDataForColumn),Ve)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Ve,X)=>(0,w.Sd)(Ve,X,this.displayedColumns,Je.getDataForColumn),this.dataSource.sortData=(Ve,X)=>(0,w.pR)(Ve,X,Je.getDataForColumn)),this.dataSource.filter=this.filter,this.dataSource.data=this.users}ngOnChanges(){this.principalId=this.storeService.getPerunPrincipal().userId,this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ve=>"id"!==Ve)),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(Ve){return Ve?`${this.selection.isSelected(Ve)?"deselect":"select"} row ${Ve.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Je.\u0275fac=function(Ve){return new(Ve||Je)(A.Y36(g.x4),A.Y36(g.UA),A.Y36(g.d6))},Je.\u0275cmp=A.Xpm({type:Je,selectors:[["app-users-list"]],viewQuery:function(Ve,X){if(1&Ve&&(A.Gf(w.l9,7),A.Gf(e.YE,7)),2&Ve){let z;A.iGM(z=A.CRH())&&(X.child=z.first),A.iGM(z=A.CRH())&&(X.matSort=z.first)}},inputs:{users:"users",selection:"selection",displayedColumns:"displayedColumns",routeToAdmin:"routeToAdmin",disableRouting:"disableRouting",filter:"filter",tableId:"tableId",noUsersFoundLabel:"noUsersFoundLabel",disableSelf:"disableSelf"},features:[A.TTD],decls:28,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"svgIcon","matTooltip",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"svgIcon","matTooltip"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],["alert_type","warn"]],template:function(Ve,X){1&Ve&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(Q){return X.exportData(Q)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,Re,2,1,"th",4),A.YNc(5,T,3,6,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,j,1,0,"th",7),A.YNc(8,te,3,2,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,ue,3,3,"th",10),A.YNc(11,de,2,1,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Le,3,3,"th",10),A.YNc(14,Ue,3,3,"td",12),A.BQk(),A.ynx(15,13),A.YNc(16,ze,3,3,"th",10),A.YNc(17,le,3,3,"td",12),A.BQk(),A.ynx(18,14),A.YNc(19,je,3,3,"th",10),A.YNc(20,ye,3,3,"td",12),A.BQk(),A.ynx(21,15),A.YNc(22,Be,3,3,"th",10),A.YNc(23,W,3,3,"td",12),A.BQk(),A.YNc(24,R,1,0,"tr",16),A.YNc(25,Ie,1,12,"tr",17),A.qZA(),A.qZA(),A.qZA(),A.YNc(26,pe,3,3,"perun-web-apps-alert",18),A.YNc(27,Se,3,3,"perun-web-apps-alert",18)),2&Ve&&(A.Q6J("hidden",0===X.users.length||!X.dataSource||0===X.dataSource.filteredData.length),A.xp6(1),A.Q6J("dataLength",X.dataSource.filteredData.length)("pageSizeOptions",X.pageSizeOptions)("tableId",X.tableId),A.xp6(1),A.Q6J("dataSource",X.dataSource),A.xp6(22),A.Q6J("matHeaderRowDef",X.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",X.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===X.users.length),A.xp6(1),A.Q6J("ngIf",0===X.dataSource.filteredData.length&&0!==X.users.length))},directives:[E.l,b.BZ,e.YE,b.w1,b.fO,b.ge,C.O5,I.oG,b.Dz,b.ev,P.Hw,m.gM,e.nU,b.as,b.XQ,b.nj,b.Gk,L.Kd,L.YH,O.w],pipes:[C.i8,G.X$,ne.d,ge.Z,J.S,Me.g],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Je})()},57706:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translateService=A,this.returnData=""}transform(A){switch(A){case"HEADING":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HEADER").subscribe(E=>{this.returnData=E});break;case"HTML_COMMENT":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.HTML_COMMENT").subscribe(E=>{this.returnData=E});break;case"TEXTFIELD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTFIELD").subscribe(E=>{this.returnData=E});break;case"VALIDATED_EMAIL":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.VALIDATED_EMAIL").subscribe(E=>{this.returnData=E});break;case"USERNAME":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.USERNAME").subscribe(E=>{this.returnData=E});break;case"PASSWORD":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.PASSWORD").subscribe(E=>{this.returnData=E});break;case"SELECTIONBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SELECTIONBOX").subscribe(E=>{this.returnData=E});break;case"TEXTAREA":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TEXTAREA").subscribe(E=>{this.returnData=E});break;case"COMBOBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.COMBOBOX").subscribe(E=>{this.returnData=E});break;case"CHECKBOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.CHECKBOX").subscribe(E=>{this.returnData=E});break;case"SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"RADIO":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.RADIO").subscribe(E=>{this.returnData=E});break;case"TIMEZONE":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.TIMEZONE").subscribe(E=>{this.returnData=E});break;case"AUTO_SUBMIT_BUTTON":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.AUTO_SUBMIT_BUTTON").subscribe(E=>{this.returnData=E});break;case"EMBEDDED_GROUP_APPLICATION":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.EMBEDDED_GROUP_APPLICATION").subscribe(E=>{this.returnData=E});break;case"LIST_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.LIST_INPUT_BOX").subscribe(E=>{this.returnData=E});break;case"MAP_INPUT_BOX":this.translateService.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPES.MAP_INPUT_BOX").subscribe(E=>{this.returnData=E});break;default:return A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationFormItemType",type:w,pure:!0}),w})()},43157:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>_});var e=p(5e3),b=p(51062);let _=(()=>{class w{constructor(A){this.translate=A,this.returnData=""}transform(A){switch(A){case"APPROVED":this.translate.get("VO_DETAIL.APPLICATION.STATE.APPROVED").subscribe(E=>{this.returnData=`done${E}`});break;case"REJECTED":this.translate.get("VO_DETAIL.APPLICATION.STATE.REJECTED").subscribe(E=>{this.returnData=`clear${E}`});break;case"NEW":this.translate.get("VO_DETAIL.APPLICATION.STATE.NEW").subscribe(E=>{this.returnData=`contact_mail ${E}`});break;case"VERIFIED":this.translate.get("VO_DETAIL.APPLICATION.STATE.VERIFIED").subscribe(E=>{this.returnData=`gavel${E}`});break;default:this.returnData=A}return this.returnData}}return w.\u0275fac=function(A){return new(A||w)(e.Y36(b.sK,16))},w.\u0275pipe=e.Yjl({name:"applicationState",type:w,pure:!1}),w})()},70844:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>_});var e=p(36908),b=p(5e3);let _=(()=>{class w{constructor(A){this.storeService=A,this.USER_CONSENT_RELATED_ATT_NAMESPACE=["urn:perun:user_facility:attribute-def","urn:perun:user:attribute-def","urn:perun:member:attribute-def","urn:perun:member_group:attribute-def","urn:perun:member_resource:attribute-def","urn:perun:ues:attribute-def"]}transform(A,E,C){return!!(this.storeService.get("enforce_consents")&&C&&E)&&this.USER_CONSENT_RELATED_ATT_NAMESPACE.reduce((P,m)=>P||A.startsWith(m),!1)}}return w.\u0275fac=function(A){return new(A||w)(b.Y36(e.d6,16))},w.\u0275pipe=b.Yjl({name:"consentRelatedAttribute",type:w,pure:!0}),w})()},37677:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.substring(40)}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"extSourceType",type:_,pure:!0}),_})()},14264:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>ce});var e=p(69808),b=p(11735),_=p(91079),w=p(47423),g=p(77446),A=p(90508),E=p(86856),C=p(48966),I=p(4834),P=p(81125),m=p(67322),L=p(25245),O=p(98833),G=p(86087),ne=p(85899),ge=p(20773),J=p(79814),Me=p(74107),oe=p(2638),Re=p(32368),T=p(57261),j=p(84847),Y=p(32075),q=p(53251),te=p(29772),ue=p(90149),de=p(9224),Le=p(27544),Ue=p(26688),ze=p(92181),le=p(92081),je=p(93075),ye=p(73228),Be=p(36769),W=p(36908),R=p(5e3),me=p(50301),be=p(51062);const Ie=["collapse"],pe=function(){return{color:"linkTextColor"}};function Se(He,ct){1&He&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,pe))}function Xe(He,ct){1&He&&(R.TgZ(0,"mat-icon",14),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,pe))}function Je(He,ct){if(1&He&&(R.TgZ(0,"span",12),R.YNc(1,Se,2,2,"mat-icon",13),R.YNc(2,Xe,2,2,"mat-icon",13),R.qZA()),2&He){const bt=R.oxw().$implicit,xt=R.oxw(2);R.xp6(1),R.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const nt=function(He,ct){return{color:He,"border-color":ct}};function Ve(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"a",17),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(4).navigate(It.url)}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(4);R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(9,nt,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(2,7,bt.label)," ")}}function X(He,ct){if(1&He&&(R.TgZ(0,"div",15),R.YNc(1,Ve,3,12,"a",16),R.qZA()),2&He){const bt=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==bt?null:bt.children)}}function z(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"div"),R.TgZ(1,"a",9),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(2).navigate(It.url)}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,Je,3,2,"span",10),R.qZA(),R.YNc(5,X,2,2,"div",11),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(2);R.xp6(1),R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(11,nt,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,bt.label)," "),R.xp6(2),R.Q6J("ngIf",bt.children),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}function Q(He,ct){if(1&He&&(R.TgZ(0,"div"),R.YNc(1,z,6,14,"div",8),R.qZA()),2&He){const bt=R.oxw();R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",bt.item.links)}}const D=function(He,ct){return{background:He,"border-top":ct}},H=function(He){return{color:He}},V=function(){return{color:"currentColor"}},xe=function(He){return{background:He}};let Qe=(()=>{class He{constructor(bt,xt){this.router=bt,this.store=xt,this.expanded=!0,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.dividerStyle="1px solid "+this.store.get("theme","sidemenu_divider_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}toggle(){void 0!==this.item.baseLink&&this.navigate(this.item.baseLink)}isActive(bt,xt){return new RegExp(xt).test(bt)}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return He.\u0275fac=function(bt){return new(bt||He)(R.Y36(b.F0),R.Y36(W.d6))},He.\u0275cmp=R.Xpm({type:He,selectors:[["app-side-menu-item"]],viewQuery:function(bt,xt){if(1&bt&&R.Gf(Ie,5),2&bt){let Yt;R.iGM(Yt=R.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showLinks:"showLinks",sideNav:"sideNav"},decls:12,vars:26,consts:[[1,"entity-menu-item"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","click"],["matRipple","",3,"perunWebAppsMiddleClickRouterLink"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngIf"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],["class","entity-menu-item-sub-menu",4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],[1,"entity-menu-item-sub-menu"],["class","entity-menu-item-sub-menu-item clickable","matRipple","",3,"perunWebAppsMiddleClickRouterLink","activated","matRippleColor","ngClass","ngStyle","click",4,"ngFor","ngForOf"],["matRipple","",1,"entity-menu-item-sub-menu-item","clickable",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"]],template:function(bt,xt){1&bt&&(R.TgZ(0,"div",0),R.TgZ(1,"div",1),R.NdJ("click",function(){return xt.toggle()}),R.TgZ(2,"div",2),R.TgZ(3,"a",3),R.TgZ(4,"div"),R._UZ(5,"mat-icon",4),R.qZA(),R.TgZ(6,"div",5),R._uU(7),R.ALo(8,"translate"),R.qZA(),R.qZA(),R.qZA(),R.qZA(),R.TgZ(9,"div"),R.TgZ(10,"div",6),R.YNc(11,Q,2,2,"div",7),R.qZA(),R.qZA(),R.qZA()),2&bt&&(R.xp6(1),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(18,D,xt.item.backgroundColorCss,xt.index?xt.dividerStyle:"none")),R.xp6(1),R.Gre("entity-menu-item-link ",xt.item.labelClass,""),R.Q6J("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),R.xp6(1),R.Q6J("ngStyle",R.VKq(21,H,xt.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(23,V))("svgIcon",xt.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,16,xt.item.label)),R.xp6(2),R.Q6J("@openClose",xt.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",xt.item.linksClass,""),R.Q6J("ngStyle",R.VKq(24,xe,xt.linkBgColor)),R.xp6(1),R.Q6J("ngIf",xt.showLinks))},directives:[A.wG,e.PC,me.YH,L.Hw,e.O5,e.sg,e.mk],pipes:[be.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 40px;text-decoration:none;color:#fff;font-size:1rem;display:block}.activated[_ngcontent-%COMP%]{color:#313131!important;border-right:5px solid #313131}.entity-menu-item-header[_ngcontent-%COMP%]{padding:8px 5px 8px 25px;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;word-break:break-word}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-item-sub-menu[_ngcontent-%COMP%]{overflow:hidden}.entity-menu-item-sub-menu-item[_ngcontent-%COMP%]{padding-left:4rem!important}"],data:{animation:[Be.BQ,Be.Ly]}}),He})(),Te=(()=>{class He{transform(bt){if(void 0===bt.value)return"";switch(bt.type){case"java.lang.String":return bt.value;case"java.lang.Integer":case"java.lang.Boolean":default:return String(bt.value);case"java.util.ArrayList":return this.whenValueIsArray(bt.value);case"java.util.LinkedHashMap":return this.whenValueIsMap(bt.value)}}whenValueIsArray(bt){let xt="";return bt.forEach(function(Yt){xt=xt.concat(Yt+", ")}),xt}whenValueIsMap(bt){let xt="";return bt.forEach((Yt,It)=>{xt=xt.concat(It+": "+Yt+", ")}),xt}}return He.\u0275fac=function(bt){return new(bt||He)},He.\u0275pipe=R.Yjl({name:"anyToString",type:He,pure:!0}),He})();const Ae=["collapse"],ae=function(){return{color:"linkTextColor"}};function i(He,ct){1&He&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_right"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,ae))}function o(He,ct){1&He&&(R.TgZ(0,"mat-icon",12),R._uU(1,"keyboard_arrow_down"),R.qZA()),2&He&&R.Q6J("ngStyle",R.DdM(1,ae))}function d(He,ct){if(1&He&&(R.TgZ(0,"span",10),R.YNc(1,i,2,2,"mat-icon",11),R.YNc(2,o,2,2,"mat-icon",11),R.qZA()),2&He){const bt=R.oxw().$implicit,xt=R.oxw();R.xp6(1),R.Q6J("ngIf",!xt.isActive(xt.currentUrl,bt.showChildrenRegex)),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const l=function(He,ct){return{color:He,"border-color":ct}};function s(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"a",14),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw(3).navigate(It.url)}),R._uU(1),R.ALo(2,"translate"),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw(3);R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.WLB(9,l,xt.linkTextColor,xt.linkTextColor))("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("perunWebAppsMiddleClickRouterLink",bt.url),R.xp6(1),R.hij(" ",R.lcZ(2,7,bt.label)," ")}}function r(He,ct){if(1&He&&(R.TgZ(0,"div"),R.YNc(1,s,3,12,"a",13),R.qZA()),2&He){const bt=R.oxw().$implicit;R.Q6J("@rollInOut",void 0),R.xp6(1),R.Q6J("ngForOf",null==bt?null:bt.children)}}function t(He,ct){if(1&He){const bt=R.EpF();R.TgZ(0,"div"),R.TgZ(1,"a",7),R.NdJ("click",function(){const It=R.CHM(bt).$implicit;return R.oxw().navigate(It.url)}),R._uU(2),R.ALo(3,"translate"),R.YNc(4,d,3,2,"span",8),R.qZA(),R.YNc(5,r,2,2,"div",9),R.qZA()}if(2&He){const bt=ct.$implicit,xt=R.oxw();R.xp6(1),R.ekj("activated",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0===xt.item.activatedClass),R.Q6J("perunWebAppsMiddleClickRouterLink",bt.url)("matRippleColor","rgba(255, 255, 255, 0.1)")("ngClass",xt.isActive(xt.currentUrl,bt.activatedRegex)&&void 0!==xt.item.activatedClass?xt.item.activatedClass:"")("ngStyle",R.WLB(11,l,xt.linkTextColor,xt.linkTextColor)),R.xp6(1),R.hij(" ",R.lcZ(3,9,bt.label)," "),R.xp6(2),R.Q6J("ngIf",bt.children),R.xp6(1),R.Q6J("ngIf",xt.isActive(xt.currentUrl,bt.showChildrenRegex))}}const n=function(He){return{background:He}},a=function(He){return{color:He}},c=function(){return{color:"currentColor"}};let h=(()=>{class He{constructor(bt,xt){this.router=bt,this.store=xt,this.id="",this.expanded=!1,this.linkBgColor=this.store.get("theme","sidemenu_item_links_bg_color"),this.linkTextColor=this.store.get("theme","sidemenu_item_links_text_color"),this.currentUrl=bt.url,bt.events.subscribe(Yt=>{Yt instanceof b.m2&&(this.currentUrl=Yt.url)})}ngOnInit(){this.expanded=this.showOpen}ngOnChanges(){this.expanded=this.showOpen}toggle(){void 0!==this.item.baseLink?this.navigate(this.item.baseLink):this.expanded=!this.expanded}isActive(bt,xt){return new RegExp(xt).test(bt)}getBgClass(){return this.item.baseColorClass?this.isActive(this.currentUrl,this.item.baseColorClassRegex)?this.item.colorClass:this.item.baseColorClass:this.item.colorClass}navigate(bt){"over"===this.sideNav.mode?this.sideNav.close().then(()=>this.router.navigate(bt)):this.router.navigate(bt)}}return He.\u0275fac=function(bt){return new(bt||He)(R.Y36(b.F0),R.Y36(W.d6))},He.\u0275cmp=R.Xpm({type:He,selectors:[["app-side-menu-root-item"]],viewQuery:function(bt,xt){if(1&bt&&R.Gf(Ae,5),2&bt){let Yt;R.iGM(Yt=R.CRH())&&(xt.collapseDiv=Yt.first)}},inputs:{item:"item",index:"index",showOpen:"showOpen",id:"id",sideNav:"sideNav"},features:[R.TTD],decls:12,vars:28,consts:[[1,"entity-menu-item",3,"id"],["matRipple","",1,"entity-menu-item-header",3,"matRippleColor","ngStyle","perunWebAppsMiddleClickRouterLink","click"],[1,"entity-menu-item-label",3,"ngStyle"],[1,"perun-icon",3,"ngStyle","svgIcon"],[1,"ml-3"],[3,"ngStyle"],[4,"ngFor","ngForOf"],["matRipple","",1,"clickable","d-flex",3,"perunWebAppsMiddleClickRouterLink","matRippleColor","ngClass","ngStyle","click"],["class","ml-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto"],["class","perun-icon icon-beak",3,"ngStyle",4,"ngIf"],[1,"perun-icon","icon-beak",3,"ngStyle"],["class","pl-5 clickable","matRipple","",3,"activated","matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click",4,"ngFor","ngForOf"],["matRipple","",1,"pl-5","clickable",3,"matRippleColor","ngStyle","ngClass","perunWebAppsMiddleClickRouterLink","click"]],template:function(bt,xt){1&bt&&(R.TgZ(0,"div",0),R.TgZ(1,"div",1),R.NdJ("click",function(){return xt.toggle()}),R.TgZ(2,"div"),R.TgZ(3,"a",2),R.TgZ(4,"div"),R._UZ(5,"mat-icon",3),R.qZA(),R.TgZ(6,"div",4),R._uU(7),R.ALo(8,"translate"),R.qZA(),R.qZA(),R.qZA(),R.qZA(),R.TgZ(9,"div"),R.TgZ(10,"div",5),R.YNc(11,t,6,14,"div",6),R.qZA(),R.qZA(),R.qZA()),2&bt&&(R.s9C("id",xt.id),R.xp6(1),R.ekj("root-header-activated",xt.isActive(xt.currentUrl,xt.item.baseColorClassRegex)),R.Q6J("matRippleColor","rgba(255, 255, 255, 0.1)")("ngStyle",R.VKq(21,n,xt.item.backgroundColorCss))("perunWebAppsMiddleClickRouterLink",xt.item.baseLink),R.xp6(1),R.Gre("entity-menu-item-link ",xt.item.labelClass,""),R.xp6(1),R.Q6J("ngStyle",R.VKq(23,a,xt.item.textColorCss)),R.xp6(2),R.Q6J("ngStyle",R.DdM(25,c))("svgIcon",xt.item.icon),R.xp6(2),R.Oqu(R.lcZ(8,19,xt.item.label)),R.xp6(2),R.Q6J("@openClose",xt.expanded?"open":"closed"),R.xp6(1),R.Gre("side-entity-menu ",xt.item.linksClass,""),R.Q6J("ngStyle",R.VKq(26,n,xt.linkBgColor)),R.xp6(1),R.Q6J("ngForOf",xt.item.links))},directives:[A.wG,e.PC,me.YH,L.Hw,e.sg,e.mk,e.O5],pipes:[be.X$],styles:[".entity-menu-item[_ngcontent-%COMP%]{width:300px}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:5px 8px 5px 32px;text-decoration:none;font-size:1rem;color:#fff;display:block}.side-entity-menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background:var(--side-link-hover)!important}.root-header-activated[_ngcontent-%COMP%]{background:var(--side-root-item-active)!important}.entity-menu-item-header[_ngcontent-%COMP%]{padding:.5rem .5rem .5rem 1rem;cursor:pointer;-moz-user-select:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.entity-menu-item-header[_ngcontent-%COMP%]:hover{background:var(--side-root-item-hover)!important}.entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;color:#fff}.entity-menu-item-label[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}"],data:{animation:[Be.BQ,Be.Ly]}}),He})();var x=p(44409),We=p(53435),At=p(63189),Ht=p(37677),lt=p(387),Ut=p(11243),mt=p(19516),Lt=p(43586),Ee=p(14623),Ge=p(9244),U=p(28499),k=p(70844),ie=p(16074);let ce=(()=>{class He{constructor(bt){this.translate=bt,bt.addLangs(["en","cs"])}}return He.\u0275fac=function(bt){return new(bt||He)(R.LFG(be.sK))},He.\u0275mod=R.oAB({type:He}),He.\u0275inj=R.cJS({providers:[Te,Ht.A,k.u],imports:[[e.ez,b.Bz,_.Bb,O.c,m.lN,je.UX,je.u5,L.Ps,oe.SJ,P.To,be.aw.forChild({}),w.ot,j.JX,Y.p0,q.Nh,ue.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,ge.Cq,ne.Cv,te.AV,Re.rP,E.FA,A.XK,J.Fk,I.t,A.si,G.TU,de.QW,le.T5,x._t,de.QW,Ue.Hi,ze.Tx,We.Cl,At.r,Le.g,lt.ez,Ut.r,mt.d4,Lt.Co,Ee.ie,Ge.Je,U.E3,ie.jD],Lt.Co,_.Bb,O.c,b.Bz,je.UX,je.u5,L.Ps,oe.SJ,be.aw,j.JX,Y.p0,q.Nh,ue.dp,w.ot,g.p9,C.Is,Me.LD,T.ZX,ge.Cq,ne.Cv,te.AV,Re.rP,E.FA,A.XK,J.Fk,I.t,de.QW,le.T5,A.si,G.TU,x._t,Ue.Hi,Ue.Hi,P.To,ze.Tx,We.Cl,We.Cl,We.Cl,Ut.r]}),He})();R.B6R(ye.V,[h,e.sg,Qe,e.O5],[])},69024:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>C});var e=p(36908),b=p(32105),_=p(9244),w=p(19516),g=p(64080),A=p(5e3),E=p(51062);let C=(()=>{class I{constructor(m,L,O,G,ne,ge,J,Me){this.translate=m,this.authResolver=L,this.store=O,this.apiRequest=G,this.attributesManager=ne,this.notificator=ge,this.guiAuthResolver=J,this.routePolicyService=Me,this.baseItemColor=this.store.get("theme","sidemenu_bg_color"),this.voBgColor=this.store.get("theme","sidemenu_vo_bg_color"),this.memberBgColor=this.store.get("theme","sidemenu_member_bg_color"),this.groupBgColor=this.store.get("theme","sidemenu_group_bg_color"),this.facilityBgColor=this.store.get("theme","sidemenu_facility_bg_color"),this.resourceBgColor=this.store.get("theme","sidemenu_resource_bg_color"),this.userBgColor=this.store.get("theme","sidemenu_user_bg_color"),this.serviceBgColor=this.store.get("theme","sidemenu_service_bg_color"),this.baseItemTextColor=this.store.get("theme","sidemenu_text_color"),this.voTextColor=this.store.get("theme","sidemenu_vo_text_color"),this.memberTextColor=this.store.get("theme","sidemenu_member_text_color"),this.groupTextColor=this.store.get("theme","sidemenu_group_text_color"),this.facilityTextColor=this.store.get("theme","sidemenu_facility_text_color"),this.resourceTextColor=this.store.get("theme","sidemenu_resource_text_color"),this.userTextColor=this.store.get("theme","sidemenu_user_text_color"),this.serviceTextColor=this.store.get("theme","sidemenu_service_text_color")}getFacilitiesManagementItem(){return{label:"MAIN_MENU.FACILITIES",colorClass:"base-item-color-activated",icon:"perun-facility-white",baseLink:["/facilities"],links:[],baseColorClass:"base-item-color",baseColorClassRegex:"^/facilities$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getAccessManagementItem(){return{label:"MAIN_MENU.ACCESS",colorClass:"base-item-color-activated",icon:"perun-vo",links:[],baseLink:["/organizations"],baseColorClass:"base-item-color",baseColorClassRegex:"^/organizations$",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor}}getHomeItem(){return{baseLink:["/home"],label:"MAIN_MENU.HOME",colorClass:"base-item-color-activated",icon:"perun-home-white",baseColorClass:"base-item-color",baseColorClassRegex:"^/home$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[]}}getUserItem(){return{baseLink:["/myProfile"],expandable:!1,label:"MAIN_MENU.MY_PROFILE",colorClass:"base-item-color-activated",icon:"perun-user",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:["/myProfile"],activatedRegex:"^/myProfile$"},{label:"MENU_ITEMS.USER.ORGANIZATIONS",url:["/myProfile/organizations"],activatedRegex:"^/myProfile/organizations$"},{label:"MENU_ITEMS.USER.GROUPS",url:["/myProfile/groups"],activatedRegex:"^/myProfile/groups$"},{label:"MENU_ITEMS.USER.ATTRIBUTES",url:["/myProfile/attributes"],activatedRegex:"^/myProfile/attributes$"},{label:"MENU_ITEMS.USER.ROLES",url:["/myProfile/roles"],activatedRegex:"/myProfile/roles"},{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:["/myProfile/service-identities"],activatedRegex:"^/myProfile/service-identities"},{label:"MENU_ITEMS.USER.SETTINGS",url:["/myProfile/settings"],activatedRegex:"^/myProfile/settings$",children:[{label:"MENU_ITEMS.USER.PASSWORD_RESET",url:["/myProfile/settings/passwordReset"],activatedRegex:"^/myProfile/settings/passwordReset"},{label:"MENU_ITEMS.USER.GUI_CONFIG",url:["/myProfile/settings/guiConfig"],activatedRegex:"/myProfile/settings/guiConfig"}],showChildrenRegex:"/myProfile/settings"}]}}getAdminItem(){return{baseLink:["/admin"],expandable:!1,label:"MAIN_MENU.ADMIN",colorClass:"base-item-color-activated",icon:"perun-perun-admin",baseColorClass:"base-item-color",baseColorClassRegex:"^/dont-use$",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.baseItemColor,textColorCss:this.baseItemTextColor,links:[{label:"MENU_ITEMS.ADMIN.OVERVIEW",url:["/admin"],activatedRegex:"^/admin$"},{label:"MENU_ITEMS.ADMIN.ATTRIBUTES",url:["/admin/attributes"],activatedRegex:"^/admin/attributes$"},{label:"MENU_ITEMS.ADMIN.USERS",url:["/admin/users"],activatedRegex:"^/admin/users$"},{label:"MENU_ITEMS.ADMIN.OWNERS",url:["/admin/owners"],activatedRegex:"^/admin/owners$"},{label:"MENU_ITEMS.ADMIN.SERVICES",url:["/admin/services"],activatedRegex:"^/admin/services$"},{label:"MENU_ITEMS.ADMIN.VISUALIZER",url:["/admin/visualizer"],activatedRegex:"^/admin/visualizer$",children:[{label:"MENU_ITEMS.VISUALIZER.ATTR_DEPENDENCIES",url:["/admin/visualizer/attrDependencies"],activatedRegex:"^/admin/visualizer/attrDependencies"},{label:this.translate.instant("MENU_ITEMS.VISUALIZER.USER_DESTINATION"),url:["/admin/visualizer/userDestinationRelationship"],activatedRegex:"^/admin/visualizer/userDestinationRelationship"}],showChildrenRegex:"/admin/visualizer"},{label:"MENU_ITEMS.ADMIN.EXT_SOURCES",url:["/admin/ext_sources"],activatedRegex:"^/admin/ext_sources$"},{label:"MENU_ITEMS.ADMIN.AUDIT_LOG",url:["/admin/audit_log"],activatedRegex:"^/admin/audit_log$"},{label:"MENU_ITEMS.ADMIN.CONSENT_HUBS",url:["/admin/consent_hubs"],activatedRegex:"^/admin/consent_hubs$"},{label:"MENU_ITEMS.ADMIN.SEARCHER",url:["/admin/searcher"],activatedRegex:"^/admin/searcher"}]}}parseFacility(m){return{label:m.name,baseLink:[`/facilities/${m.id}`],backgroundColorCss:this.facilityBgColor,textColorCss:this.facilityTextColor,links:this.getFacilityLinks(m),colorClass:"facility-item",icon:"perun-facility-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseResource(m,L){const O=(new w.r5).transform(m,L);return{label:m.name,baseLink:[O],backgroundColorCss:this.resourceBgColor,textColorCss:this.resourceTextColor,links:this.getResourceLinks(O,L?"/organizations":"/facilities",m),colorClass:"resource-item",icon:"perun-resource-white",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseGroup(m){return{label:m.name,baseLink:[`/organizations/${m.voId}/groups/${m.id}`],backgroundColorCss:this.groupBgColor,textColorCss:this.groupTextColor,links:this.getGroupLinks(m),colorClass:"group-item",icon:"perun-group",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseVo(m,L=!1,O=!1){return{label:m.name,baseLink:[`/organizations/${m.id}`],links:this.getVoLinks(m,O),colorClass:"vo-item",icon:L?"perun-hierarchical-vo":"perun-vo",activatedClass:"dark-item-activated",linksClass:"dark-item-links",backgroundColorCss:this.voBgColor,textColorCss:this.voTextColor}}parseMember(m){return{label:(0,_.bD)(m.user),baseLink:[`/organizations/${m.voId}/members/${m.id}`],backgroundColorCss:this.memberBgColor,textColorCss:this.memberTextColor,links:this.getMemberLinks(m),colorClass:"member-item",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseUser(m,L,O){return{label:(0,_.bD)(m),baseLink:[L],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:this.getUserLinks(m,L,O),colorClass:"user-bg-color",icon:"perun-user",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseServiceIdentity(m){return{label:(0,_.bD)(m),baseLink:[`/myProfile/service-identities/${m.id}`],backgroundColorCss:this.userBgColor,textColorCss:this.userTextColor,links:[{label:"MENU_ITEMS.USER.OVERVIEW",url:[`/myProfile/service-identities/${m.id}`],activatedRegex:"/myProfile/service-identities/\\d+$"},{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`/myProfile/service-identities/${m.id}/associated-users`],activatedRegex:"/myProfile/service-identities/\\d+/associated-users"}],colorClass:"user-bg-color",icon:"perun-service-identity",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}parseService(m){return{label:m.name,baseLink:[`/admin/services/${m.id}`],backgroundColorCss:this.serviceBgColor,textColorCss:this.serviceTextColor,links:[{label:"MENU_ITEMS.SERVICE.OVERVIEW",url:[`/admin/services/${m.id}`],activatedRegex:"/admin/services/\\d+$"},{label:"MENU_ITEMS.SERVICE.REQUIRED_ATTRIBUTES",url:[`/admin/services/${m.id}/required-attributes`],activatedRegex:"/admin/services/\\d+/required-attributes"},{label:"MENU_ITEMS.SERVICE.DESTINATIONS",url:[`/admin/services/${m.id}/destinations`],activatedRegex:"/admin/services/\\d+/destinations"}],colorClass:"service-item",icon:"perun-service",activatedClass:"dark-item-activated",linksClass:"dark-item-links"}}getVoLinks(m,L){const O=[];if(O.push({label:"MENU_ITEMS.VO.OVERVIEW",url:[`/organizations/${m.id}`],activatedRegex:"/organizations/\\d+$"}),this.routePolicyService.canNavigate("organizations-members",m)&&O.push({label:"MENU_ITEMS.VO.MEMBERS",url:[`/organizations/${m.id}/members`],activatedRegex:"/organizations/\\d+/members$"}),this.routePolicyService.canNavigate("organizations-groups",m)&&O.push({label:"MENU_ITEMS.VO.GROUPS",url:[`/organizations/${m.id}/groups`],activatedRegex:"/organizations/\\d+/groups$"}),this.routePolicyService.canNavigate("organizations-resources",m)){const G=[];this.routePolicyService.canNavigate("organizations-resources-preview",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_PREVIEW",url:[`/organizations/${m.id}/resources/preview`],activatedRegex:"/organizations/\\d+/resources/preview$"}),this.routePolicyService.canNavigate("organizations-resources-tags",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_TAGS",url:[`/organizations/${m.id}/resources/tags`],activatedRegex:"/organizations/\\d+/resources/tags$"}),this.routePolicyService.canNavigate("organizations-resources-states",m)&&G.push({label:"MENU_ITEMS.VO.RESOURCE_STATES",url:[`/organizations/${m.id}/resources/states`],activatedRegex:"/organizations/\\d+/resources/states$"}),O.push({label:"MENU_ITEMS.VO.RESOURCES",url:[`/organizations/${m.id}/resources`],activatedRegex:"/organizations/\\d+/resources$",children:G,showChildrenRegex:"/organizations/\\d+/resources"})}if(this.routePolicyService.canNavigate("organizations-applications",m)&&O.push({label:"MENU_ITEMS.VO.APPLICATIONS",url:[`/organizations/${m.id}/applications`],activatedRegex:"/organizations/\\d+/applications"}),this.routePolicyService.canNavigate("organizations-sponsoredMembers",m)&&O.push({label:"MENU_ITEMS.VO.SPONSORED_MEMBERS",url:[`/organizations/${m.id}/sponsoredMembers`],activatedRegex:"/organizations/\\d+/sponsoredMembers$"}),this.routePolicyService.canNavigate("organizations-serviceAccounts",m)&&O.push({label:"MENU_ITEMS.VO.SERVICE_MEMBERS",url:[`/organizations/${m.id}/serviceAccounts`],activatedRegex:"/organizations/\\d+/serviceAccounts$"}),this.routePolicyService.canNavigate("organizations-attributes",m)&&O.push({label:"MENU_ITEMS.VO.ATTRIBUTES",url:[`/organizations/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/attributes$"}),this.routePolicyService.canNavigate("organizations-statistics",m)&&O.push({label:"MENU_ITEMS.VO.STATISTICS",url:[`/organizations/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/statistics"}),this.routePolicyService.canNavigate("organizations-settings",m)){const G=[];this.routePolicyService.canNavigate("organizations-settings-expiration",m)&&G.push({label:"MENU_ITEMS.VO.EXPIRATION",url:[`/organizations/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/settings/expiration$"}),this.routePolicyService.canNavigate("organizations-settings-managers",m)&&G.push({label:"MENU_ITEMS.VO.MANAGERS",url:[`/organizations/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("organizations-settings-applicationForm",m)&&G.push({label:"MENU_ITEMS.VO.APPLICATION_FORM",url:[`/organizations/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("organizations-settings-notifications",m)&&G.push({label:"MENU_ITEMS.VO.NOTIFICATIONS",url:[`/organizations/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("organizations-settings-extsources",m)&&G.push({label:"MENU_ITEMS.VO.EXTSOURCES",url:[`/organizations/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/settings/extsources$"}),this.routePolicyService.canNavigate("organizations-settings-memberOrganizations",m)&&G.push({label:"MENU_ITEMS.VO.MEMBER_ORGANIZATIONS",url:[`/organizations/${m.id}/settings/memberOrganizations`],activatedRegex:"/organizations/\\d+/settings/memberOrganizations"}),this.routePolicyService.canNavigate("organizations-settings-hierarchicalInclusion",m)&&L&&G.push({label:"MENU_ITEMS.VO.HIERARCHICAL_INCLUSION",url:[`/organizations/${m.id}/settings/hierarchicalInclusion`],activatedRegex:"/organizations/\\d+/settings/hierarchicalInclusion"}),O.push({label:"MENU_ITEMS.VO.SETTINGS",url:[`/organizations/${m.id}/settings`],activatedRegex:"/organizations/\\d+/settings$",children:G,showChildrenRegex:"/organizations/\\d+/settings"})}return O}getUserLinks(m,L,O){const G=[];return G.push({label:"MENU_ITEMS.USER.OVERVIEW",url:[L],activatedRegex:`${O}$`}),G.push({label:"MENU_ITEMS.ADMIN.ORGANIZATIONS",url:[`${L}/organizations`],activatedRegex:`${O}/organizations`}),G.push({label:"MENU_ITEMS.ADMIN.GROUPS",url:[`${L}/groups`],activatedRegex:`${O}/groups`}),G.push({label:"MENU_ITEMS.USER.ACCOUNTS",url:[`${L}/accounts`],activatedRegex:`${O}/accounts`}),G.push({label:"MENU_ITEMS.USER.IDENTITIES",url:[`${L}/identities`],activatedRegex:`${O}/identities`}),G.push({label:"MENU_ITEMS.USER.FACILITIES",url:[`${L}/facilities`],activatedRegex:`${O}/facilities`}),G.push({label:"MENU_ITEMS.USER.RESOURCES",url:[`${L}/resources`],activatedRegex:`${O}/resources`}),G.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`${L}/attributes`],activatedRegex:`${O}/attributes`}),G.push({label:"MENU_ITEMS.USER.ROLES",url:[`${L}/roles`],activatedRegex:`^${L}/roles`}),G.push(m.serviceUser?{label:"MENU_ITEMS.USER.ASSOCIATED_USERS",url:[`${L}/associated-users`],activatedRegex:`^${L}/associated-users`}:{label:"MENU_ITEMS.USER.SERVICE_IDENTITIES",url:[`${L}/service-identities`],activatedRegex:`^${L}/service-identities`}),G}getMemberLinks(m){const L=[{label:"MENU_ITEMS.MEMBER.OVERVIEW",url:[`/organizations/${m.voId}/members/${m.id}`],activatedRegex:"/organizations/\\d+/members/\\d+$"}];return this.routePolicyService.canNavigate("members-groups",m)&&L.push({label:"MENU_ITEMS.MEMBER.GROUPS",url:[`//organizations/${m.voId}/members/${m.id}/groups`],activatedRegex:"/organizations/\\d+/members/\\d+/groups"}),this.routePolicyService.canNavigate("members-applications",m)&&L.push({label:"MENU_ITEMS.MEMBER.APPLICATIONS",url:[`//organizations/${m.voId}/members/${m.id}/applications`],activatedRegex:"/organizations/\\d+/members/\\d+/applications"}),this.routePolicyService.canNavigate("members-resources",m)&&L.push({label:"MENU_ITEMS.MEMBER.RESOURCES",url:[`/organizations/${m.voId}/members/${m.id}/resources`],activatedRegex:"/organizations/\\d+/members/\\d+/resources"}),this.routePolicyService.canNavigate("members-attributes",m)&&L.push({label:"MENU_ITEMS.MEMBER.ATTRIBUTES",url:[`/organizations/${m.voId}/members/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/members/\\d+/attributes$"}),L}getFacilityLinks(m){const L=[{label:"MENU_ITEMS.FACILITY.OVERVIEW",url:[`/facilities/${m.id}`],activatedRegex:"/facilities/\\d+$"}];if(this.routePolicyService.canNavigate("facilities-resources",m)&&L.push({label:"MENU_ITEMS.FACILITY.RESOURCES",url:[`/facilities/${m.id}/resources`],activatedRegex:"/facilities/\\d+/resources$"}),this.routePolicyService.canNavigate("facilities-allowed-users",m)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_USERS",url:[`/facilities/${m.id}/allowed-users`],activatedRegex:"/facilities/\\d+/allowed-users"}),this.routePolicyService.canNavigate("facilities-allowed-groups",m)&&L.push({label:"MENU_ITEMS.FACILITY.ALLOWED_GROUPS",url:[`/facilities/${m.id}/allowed-groups`],activatedRegex:"/facilities/\\d+/allowed-groups"}),this.routePolicyService.canNavigate("facilities-services-status",m)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_STATUS",url:[`/facilities/${m.id}/services-status`],activatedRegex:"/facilities/\\d+/services-status"}),this.routePolicyService.canNavigate("facilities-services-destinations",m)&&L.push({label:"MENU_ITEMS.FACILITY.SERVICES_DESTINATIONS",url:[`/facilities/${m.id}/services-destinations`],activatedRegex:"facilities/\\d+/services-destinations"}),this.routePolicyService.canNavigate("facilities-hosts",m)&&L.push({label:"MENU_ITEMS.FACILITY.HOSTS",url:[`/facilities/${m.id}/hosts`],activatedRegex:"facilities/\\d+/hosts"}),this.routePolicyService.canNavigate("facilities-attributes",m)&&L.push({label:"MENU_ITEMS.FACILITY.ATTRIBUTES",url:["/facilities",m.id.toString(),"attributes"],activatedRegex:"/facilities/\\d+/attributes$"}),this.routePolicyService.canNavigate("facilities-settings",m)){const O=[];this.routePolicyService.canNavigate("facilities-settings-owners",m)&&O.push({label:"MENU_ITEMS.FACILITY.OWNERS",url:["/facilities",m.id.toString(),"settings","owners"],activatedRegex:"/facilities/\\d+/settings/owners$"}),this.routePolicyService.canNavigate("facilities-settings-managers",m)&&O.push({label:"MENU_ITEMS.FACILITY.MANAGERS",url:["/facilities",m.id.toString(),"settings","managers"],activatedRegex:"/facilities/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("facilities-settings-security-teams",m)&&O.push({label:"MENU_ITEMS.FACILITY.SECURITY_TEAMS",url:[`/facilities/${m.id}/settings/security-teams`],activatedRegex:"facilities/\\d+/settings/security-teams"}),this.routePolicyService.canNavigate("facilities-settings-blacklist",m)&&O.push({label:"MENU_ITEMS.FACILITY.BLACKLIST",url:["facilities",m.id.toString(),"settings","blacklist"],activatedRegex:"/facilities/\\d+/settings/blacklist"}),L.push({label:"MENU_ITEMS.FACILITY.SETTINGS",url:["/facilities",m.id.toString(),"settings"],activatedRegex:"/facilities/\\d+/settings$",children:O,showChildrenRegex:"/facilities/\\d+/settings"})}return L}getGroupLinks(m){const L=[],O=[];return L.push({label:"MENU_ITEMS.GROUP.OVERVIEW",url:[`/organizations/${m.voId}/groups/${m.id}`],activatedRegex:"/organizations/\\d+/groups/\\d+$"}),this.routePolicyService.canNavigate("groups-members",m)&&L.push({label:"MENU_ITEMS.GROUP.MEMBERS",url:[`/organizations/${m.voId}/groups/${m.id}/members`],activatedRegex:"/organizations/\\d+/groups/\\d+/members$"}),this.routePolicyService.canNavigate("groups-subgroups",m)&&"members"!==m.name&&L.push({label:"MENU_ITEMS.GROUP.SUBGROUPS",url:[`/organizations/${m.voId}/groups/${m.id}/subgroups`],activatedRegex:"/organizations/\\d+/groups/\\d+/subgroups$"}),this.routePolicyService.canNavigate("groups-resources",m)&&L.push({label:"MENU_ITEMS.GROUP.RESOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/resources`],activatedRegex:"/organizations/\\d+/groups/\\d+/resources$"}),this.routePolicyService.canNavigate("groups-applications",m)&&L.push({label:"MENU_ITEMS.GROUP.APPLICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/applications`],activatedRegex:"/organizations/\\d+/groups/\\d+/applications$"}),this.routePolicyService.canNavigate("groups-attributes",m)&&L.push({label:"MENU_ITEMS.GROUP.ATTRIBUTES",url:[`/organizations/${m.voId}/groups/${m.id}/attributes`],activatedRegex:"/organizations/\\d+/groups/\\d+/attributes$"}),this.routePolicyService.canNavigate("groups-statistics",m)&&L.push({label:"MENU_ITEMS.GROUP.STATISTICS",url:[`/organizations/${m.voId}/groups/${m.id}/statistics`],activatedRegex:"/organizations/\\d+/groups/\\d+/statistics"}),this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(m.id,g.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{O.push({label:"MENU_ITEMS.GROUP.EXPIRATION",url:[`/organizations/${m.voId}/groups/${m.id}/settings/expiration`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/expiration$"})},G=>{"HttpErrorResponse"!==G.name&&this.notificator.showRPCError(G)}),this.routePolicyService.canNavigate("groups-settings-managers",m)&&O.push({label:"MENU_ITEMS.GROUP.MANAGERS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/managers`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/managers$"}),this.routePolicyService.canNavigate("groups-settings-applicationForm",m)&&O.push({label:"MENU_ITEMS.GROUP.APPLICATION_FORM",url:[`/organizations/${m.voId}/groups/${m.id}/settings/applicationForm`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/applicationForm$"}),this.routePolicyService.canNavigate("groups-settings-notifications",m)&&O.push({label:"MENU_ITEMS.GROUP.NOTIFICATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/notifications`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/notifications$"}),this.routePolicyService.canNavigate("groups-settings-relations",m)&&O.push({label:"MENU_ITEMS.GROUP.RELATIONS",url:[`/organizations/${m.voId}/groups/${m.id}/settings/relations`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/relations$"}),this.routePolicyService.canNavigate("groups-settings-extsources",m)&&O.push({label:"MENU_ITEMS.GROUP.EXTSOURCES",url:[`/organizations/${m.voId}/groups/${m.id}/settings/extsources`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings/extsources$"}),0!==O.length&&L.push({label:"MENU_ITEMS.GROUP.SETTINGS",url:[`/organizations/${m.voId}/groups/${m.id}/settings`],activatedRegex:"/organizations/\\d+/groups/\\d+/settings$",children:O,showChildrenRegex:"/organizations/\\d+/groups/\\d+/settings"}),L}getResourceLinks(m,L,O){const G=[{label:"MENU_ITEMS.RESOURCE.OVERVIEW",url:[m],activatedRegex:`${L}/\\d+/resources/\\d+$`}];return this.routePolicyService.canNavigate("resources-groups",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_GROUPS",url:[m,"groups"],activatedRegex:`${L}/\\d+/resources/\\d+/groups$`}),this.routePolicyService.canNavigate("resources-services",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_SERVICES",url:[m,"services"],activatedRegex:`${L}/\\d+/resources/\\d+/services$`}),this.routePolicyService.canNavigate("resources-members",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ASSIGNED_MEMBERS",url:[m,"members"],activatedRegex:`${L}/\\d+/resources/\\d+/members$`}),this.routePolicyService.canNavigate("resources-tags",O)&&G.push({label:"MENU_ITEMS.RESOURCE.RESOURCE_TAGS",url:[m,"tags"],activatedRegex:`${L}/\\d+/resources/\\d+/tags$`}),this.routePolicyService.canNavigate("resources-attributes",O)&&G.push({label:"MENU_ITEMS.RESOURCE.ATTRIBUTES",url:[m,"attributes"],activatedRegex:`${L}/\\d+/resources/\\d+/attributes$`}),this.routePolicyService.canNavigate("resources-settings",O)&&G.push({label:"MENU_ITEMS.RESOURCE.SETTINGS",url:[m,"settings"],activatedRegex:`${L}/\\d+/resources/\\d+/settings$`,children:[{label:"MENU_ITEMS.RESOURCE.MANAGERS",url:[m,"settings","managers"],activatedRegex:`${L}/\\d+/resources/\\d+/settings/managers$`}],showChildrenRegex:`${L}/\\d+/resources/\\d+/settings`}),G}}return I.\u0275fac=function(m){return new(m||I)(A.LFG(E.sK),A.LFG(e.x4),A.LFG(e.d6),A.LFG(e.F5),A.LFG(b.H8),A.LFG(e.V6),A.LFG(e.x4),A.LFG(e.Ip))},I.\u0275prov=A.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"}),I})()},73228:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>ge});var e=p(72077),b=p(69024),_=p(36908),w=p(36769),g=p(5e3),A=p(77968);function E(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",10),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("sideNav",T.sideNav)}}function C(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.accessItems.length-1)("sideNav",T.sideNav)}}function I(J,Me){if(1&J&&g._UZ(0,"app-side-menu-root-item",2),2&J){const oe=g.oxw();g.Q6J("id","facilities-item-btn")("item",oe.facilityItem)("sideNav",oe.sideNav)}}function P(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.facilityItems.length-1)("sideNav",T.sideNav)}}function m(J,Me){if(1&J&&(g.TgZ(0,"div"),g.YNc(1,P,2,5,"div",3),g.qZA()),2&J){const oe=g.oxw();g.xp6(1),g.Q6J("ngForOf",oe.facilityItems)}}function L(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw();g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",Re===T.userItems.length-1)("sideNav",T.sideNav)}}function O(J,Me){if(1&J&&g._UZ(0,"app-side-menu-root-item",7),2&J){const oe=g.oxw();g.Q6J("id","admin-item-btn")("item",oe.adminItem)("showOpen",oe.adminItemOpened)("sideNav",oe.sideNav)}}function G(J,Me){if(1&J&&(g.TgZ(0,"div",9),g._UZ(1,"app-side-menu-item",11),g.qZA()),2&J){const oe=Me.$implicit,Re=Me.index,T=g.oxw(2);g.Q6J("@rollInOut",void 0),g.xp6(1),g.Q6J("index",Re)("item",oe)("showLinks",!0)("sideNav",T.sideNav)}}function ne(J,Me){if(1&J&&(g.TgZ(0,"div"),g.YNc(1,G,2,5,"div",3),g.qZA()),2&J){const oe=g.oxw();g.xp6(1),g.Q6J("ngForOf",oe.adminItems)}}let ge=(()=>{class J{constructor(oe,Re,T){this.sideMenuService=oe,this.sideMenuItemService=Re,this.authResolver=T,this.accessItems=[],this.facilityItems=[],this.adminItems=[],this.homeItems=[],this.userItems=[],this.accessItem=this.sideMenuItemService.getAccessManagementItem(),this.adminItem=this.sideMenuItemService.getAdminItem(),this.facilityItem=this.sideMenuItemService.getFacilitiesManagementItem(),this.homeItem=this.sideMenuItemService.getHomeItem(),this.userItem=this.sideMenuItemService.getUserItem(),this.mobileView=!0,this.adminItemOpened=!1,this.userItemOpened=!1}static areSameItems(oe,Re){return oe.label===Re.label&&oe.labelClass===Re.labelClass}static areSameLinks(oe,Re){if(oe.links.length!==Re.links.length)return!1;for(let T=0;TRe.length?oe.length:Re.length;for(let j=0;joe.length-1)oe.push(Re[j]);else{if(j>Re.length-1){const Y=oe.length;for(let q=0;q{this.setFacilityItems(oe)}),this.sideMenuService.accessItemsChange.subscribe(oe=>{this.setAccessItems(oe)}),this.sideMenuService.adminItemsChange.subscribe(oe=>{this.setAdminItems(oe)}),this.sideMenuService.userItemsChange.subscribe(oe=>{this.setUserItems(oe)}),this.sideMenuService.homeItemsChange.subscribe(oe=>{this.setHomeItems(oe)}),this.sideMenuService.resetChange.subscribe(()=>{this.reset()})}reset(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptHome(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptFacility(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.userItems,[])}resetExceptAccess(){this.adminItemOpened=!1,this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.adminItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptAdmin(){this.userItemOpened=!1,J.setNewItems(this.homeItems,[]),J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.userItems,[])}resetExceptUser(){this.adminItemOpened=!1,J.setNewItems(this.accessItems,[]),J.setNewItems(this.facilityItems,[]),J.setNewItems(this.adminItems,[])}setHomeItems(oe){this.resetExceptHome(),J.setNewItems(this.homeItems,oe)}setFacilityItems(oe){this.resetExceptFacility(),J.setNewItems(this.facilityItems,oe)}setAccessItems(oe){this.resetExceptAccess(),J.setNewItems(this.accessItems,oe)}setUserItems(oe){this.userItemOpened=0===oe.length,this.resetExceptUser(),J.setNewItems(this.userItems,oe)}setAdminItems(oe){this.adminItemOpened=0===oe.length,this.resetExceptAdmin(),J.setNewItems(this.adminItems,oe)}}return J.\u0275fac=function(oe){return new(oe||J)(g.Y36(A.D),g.Y36(b.V),g.Y36(_.x4))},J.\u0275cmp=g.Xpm({type:J,selectors:[["app-side-menu"]],inputs:{sideNav:"sideNav"},decls:13,vars:17,consts:[["id","sideMenuSpacer"],["id","sideMenuAccordion",1,"accordion","entity-menu-accordion"],[3,"id","item","sideNav"],["class","overflow-hidden",4,"ngFor","ngForOf"],["data-cy","access-item-button",3,"item","id","sideNav"],[3,"id","item","sideNav",4,"ngIf"],[4,"ngIf"],[3,"id","item","showOpen","sideNav"],[3,"id","item","showOpen","sideNav",4,"ngIf"],[1,"overflow-hidden"],[3,"index","item","sideNav"],[3,"index","item","showLinks","sideNav"]],template:function(oe,Re){1&oe&&(g.TgZ(0,"div",0),g.TgZ(1,"div",1),g._UZ(2,"app-side-menu-root-item",2),g.YNc(3,E,2,4,"div",3),g._UZ(4,"app-side-menu-root-item",4),g.TgZ(5,"div"),g.YNc(6,C,2,5,"div",3),g.qZA(),g.YNc(7,I,1,3,"app-side-menu-root-item",5),g.YNc(8,m,2,1,"div",6),g._UZ(9,"app-side-menu-root-item",7),g.YNc(10,L,2,5,"div",3),g.YNc(11,O,1,4,"app-side-menu-root-item",8),g.YNc(12,ne,2,1,"div",6),g.qZA(),g.qZA()),2&oe&&(g.xp6(2),g.Q6J("id","home-item-btn")("item",Re.homeItem)("sideNav",Re.sideNav),g.xp6(1),g.Q6J("ngForOf",Re.homeItems),g.xp6(1),g.Q6J("item",Re.accessItem)("id","access-item-btn")("sideNav",Re.sideNav),g.xp6(2),g.Q6J("ngForOf",Re.accessItems),g.xp6(1),g.Q6J("ngIf",Re.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("ngIf",Re.authResolver.canManageFacilities()),g.xp6(1),g.Q6J("id","profile-item-btn")("item",Re.userItem)("showOpen",Re.userItemOpened)("sideNav",Re.sideNav),g.xp6(1),g.Q6J("ngForOf",Re.userItems),g.xp6(1),g.Q6J("ngIf",Re.authResolver.isPerunAdminOrObserver()),g.xp6(1),g.Q6J("ngIf",Re.authResolver.isPerunAdminOrObserver()))},styles:[".entity-menu-item-label[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.entity-menu-item-link[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:space-between;color:#fff}.entity-menu-item-link[_ngcontent-%COMP%]:hover{text-decoration:none}.entity-menu-item-icon[_ngcontent-%COMP%]{height:2rem}.entity-menu-accordion[_ngcontent-%COMP%]{background-color:#f4f4f4}#sideMenuAccordion[_ngcontent-%COMP%]{width:300px}#sideMenuSpacer[_ngcontent-%COMP%]{height:100%}"],data:{animation:[w.Ly]}}),J})()},86511:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>w});var e=p(36908),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.notificator=E,this.translate=C}setDialogRef(E){this.dialogRef=E}setType(E){this.entityType=E}getType(){return this.entityType}createCandidate(E){return{userExtSource:E.userExtSource,additionalUserExtSources:E.additionalUserExtSources,attributes:E.attributes,firstName:E.firstName,lastName:E.lastName,middleName:E.middleName,titleBefore:E.titleBefore,titleAfter:E.titleAfter,id:E.id}}getFormattedGroup(E){return{id:E.id,beanName:E.beanName,name:E.name,voId:E.voId}}success(E){this.notificator.showSuccess(this.translate.instant(E)),this.dialogRef.close(!0)}getCandidateWithError(E,C){const I=C.error,P=I.message.split(":").splice(1).join();return{candidate:E,errorName:I.name,errorMsg:P}}}return g.\u0275fac=function(E){return new(E||g)(b.LFG(e.V6),b.LFG(_.sK))},g.\u0275prov=b.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},157:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>Lt});var e=p(5e3),b=p(44409),_=p(48966),w=p(47423),g=p(51062);let A=(()=>{class Ee{constructor(U){this.dialogRef=U}onCancel(){this.dialogRef.close(!1)}submit(){this.dialogRef.close(!0)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(_.so))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-delete-application-form-item-dialog"]],decls:20,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"pb-2","font-weight-bold"],[1,"pb-4","pt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","data-cy","delete-application-form-item-dialog","mat-flat-button","",1,"ml-2",3,"click"]],template:function(U,k){1&U&&(e.TgZ(0,"h1",0),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.TgZ(3,"div",1),e.TgZ(4,"div",2),e._uU(5),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div"),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"div",3),e._uU(11),e.ALo(12,"translate"),e.qZA(),e.qZA(),e.TgZ(13,"div",4),e.TgZ(14,"button",5),e.NdJ("click",function(){return k.onCancel()}),e._uU(15),e.ALo(16,"translate"),e.qZA(),e.TgZ(17,"button",6),e.NdJ("click",function(){return k.submit()}),e._uU(18),e.ALo(19,"translate"),e.qZA(),e.qZA()),2&U&&(e.xp6(1),e.Oqu(e.lcZ(2,6,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.TITLE")),e.xp6(4),e.hij(" ",e.lcZ(6,8,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_1")," "),e.xp6(3),e.Oqu(e.lcZ(9,10,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_2")),e.xp6(3),e.Oqu(e.lcZ(12,12,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.INFO_3")),e.xp6(4),e.hij(" ",e.lcZ(16,14,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.CANCEL_BUTTON")," "),e.xp6(3),e.hij(" ",e.lcZ(19,16,"DIALOGS.DELETE_APPLICATION_FORM_ITEM.SUBMIT_BUTTON")," "))},directives:[_.uh,_.xY,_.H8,w.lW],pipes:[g.X$],styles:[""]}),Ee})();var E=p(36908),C=p(83491),I=p(9244),P=p(11735),m=p(69808),L=p(20773),O=p(32075),G=p(25245),ne=p(29772),ge=p(93075),J=p(21963),Me=p(28820),oe=p(98380),Re=p(57706),T=p(64597);const j=["table"];function Y(Ee,Ge){1&Ee&&e._UZ(0,"mat-spinner",3)}function q(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function te(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"td",25),e.TgZ(1,"button",26),e.NdJ("mousedown",function(){return e.CHM(U),e.oxw(2).dragDisabled=!1}),e.TgZ(2,"mat-icon"),e._uU(3,"drag_indicator"),e.qZA(),e.qZA(),e.qZA()}}function ue(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SHORTNAME")," "))}function de(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.AsE(" ",U.shortname,"",U.required?"*":""," ")}}function Le(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TYPE")," "))}function Ue(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e._uU(1),e.ALo(2,"applicationFormItemType"),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,U.type)," ")}}function ze(Ee,Ge){1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HEADER")," "))}function le(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"lock "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",k.disabledTooltip(U)),e.xp6(3),e.hij(" ",k.disabledHiddenDependency(U,U.disabled,U.disabledDependencyItemId)," ")}}function je(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",28),e.YNc(1,le,5,2,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.disabled)}}function ye(Ee,Ge){1&Ee&&(e.TgZ(0,"th",27),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.HIDDEN_HEADER")," "))}function Be(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"mat-icon",30),e._uU(2,"visibility_off "),e.qZA(),e._UZ(3,"br"),e._uU(4),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("matTooltip",k.hiddenTooltip(U)),e.xp6(3),e.hij(" ",k.disabledHiddenDependency(U,U.hidden,U.hiddenDependencyItemId)," ")}}function W(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",28),e.YNc(1,Be,5,2,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","NEVER"!==U.hidden)}}function R(Ee,Ge){1&Ee&&(e.TgZ(0,"th",24),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW")," "))}function me(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function be(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",32),e._UZ(3,"br"),e._UZ(4,"input",31),e.qZA(),e.qZA())}function Ie(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"input",35),e._uU(2),e._UZ(3,"br"),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(2),e.hij(" ",U,"")}}function pe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Ie,4,1,"div",33),e._UZ(3,"input",34),e.ALo(4,"translate"),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U)),e.xp6(1),e.s9C("value",e.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.CLEAR_SELECTION"))}}function Se(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"span",36),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("innerHTML",k.getLocalizedLabel(U),e.oJD)}}function Xe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"option"),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",U," ")}}function Je(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"select"),e.YNc(2,Xe,2,1,"option",33),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U))}}function nt(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"textarea"),e.qZA())}function Ve(Ee,Ge){if(1&Ee&&(e.TgZ(0,"option",40),e._uU(1),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.hij(" ",U," ")}}function X(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",31),e.qZA(),e.qZA())}function z(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"select",37),e.NdJ("ngModelChange",function(ie){e.CHM(U);const ce=e.oxw().$implicit;return e.oxw(2).mapForCombobox[ce.id]=ie}),e.YNc(2,Ve,2,1,"option",38),e.TgZ(3,"option",39),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA(),e.YNc(6,X,3,0,"div",29),e.qZA()}if(2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(1),e.Q6J("ngModel",k.mapForCombobox[U.id]),e.xp6(1),e.Q6J("ngForOf",k.getLocalizedOptions(U)),e.xp6(2),e.hij(" ",e.lcZ(5,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.OTHER_VALUE")," "),e.xp6(2),e.Q6J("ngIf","true"===k.mapForCombobox[U.id])}}function Q(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"input",41),e._uU(2),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(2),e.hij(" ",U," ")}}function D(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e.YNc(2,Q,3,1,"div",33),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",k.getLocalizedOptions(U))}}function H(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.hij(" ",k.getLocalizedLabel(U)," ")}}function V(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"select",43),e.TgZ(2,"option",44),e._uU(3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"option",45),e._uU(6,"(GMT -12:00) Eniwetok, Kwajalein"),e.qZA(),e.TgZ(7,"option",46),e._uU(8,"(GMT -11:00) Midway Island, Samoa"),e.qZA(),e.TgZ(9,"option",47),e._uU(10,"(GMT -10:00) Hawaii"),e.qZA(),e.TgZ(11,"option",48),e._uU(12,"(GMT -9:30) Taiohae"),e.qZA(),e.TgZ(13,"option",49),e._uU(14,"(GMT -9:00) Alaska"),e.qZA(),e.TgZ(15,"option",50),e._uU(16,"(GMT -8:00) Pacific Time (US & Canada)"),e.qZA(),e.TgZ(17,"option",51),e._uU(18,"(GMT -7:00) Mountain Time (US & Canada)"),e.qZA(),e.TgZ(19,"option",52),e._uU(20," (GMT -6:00) Central Time (US & Canada), Mexico City "),e.qZA(),e.TgZ(21,"option",53),e._uU(22," (GMT -5:00) Eastern Time (US & Canada), Bogota, Lima "),e.qZA(),e.TgZ(23,"option",54),e._uU(24,"(GMT -4:30) Caracas"),e.qZA(),e.TgZ(25,"option",55),e._uU(26,"(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz"),e.qZA(),e.TgZ(27,"option",56),e._uU(28,"(GMT -3:30) Newfoundland"),e.qZA(),e.TgZ(29,"option",57),e._uU(30,"(GMT -3:00) Brazil, Buenos Aires, Georgetown"),e.qZA(),e.TgZ(31,"option",58),e._uU(32,"(GMT -2:00) Mid-Atlantic"),e.qZA(),e.TgZ(33,"option",59),e._uU(34,"(GMT -1:00) Azores, Cape Verde Islands"),e.qZA(),e.TgZ(35,"option",60),e._uU(36," (GMT) Western Europe Time, London, Lisbon, Casablanca "),e.qZA(),e.TgZ(37,"option",61),e._uU(38,"(GMT +1:00) Brussels, Copenhagen, Madrid, Paris"),e.qZA(),e.TgZ(39,"option",62),e._uU(40,"(GMT +2:00) Kaliningrad, South Africa"),e.qZA(),e.TgZ(41,"option",63),e._uU(42,"(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg"),e.qZA(),e.TgZ(43,"option",64),e._uU(44,"(GMT +3:30) Tehran"),e.qZA(),e.TgZ(45,"option",65),e._uU(46,"(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi"),e.qZA(),e.TgZ(47,"option",66),e._uU(48,"(GMT +4:30) Kabul"),e.qZA(),e.TgZ(49,"option",67),e._uU(50," (GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent "),e.qZA(),e.TgZ(51,"option",68),e._uU(52,"(GMT +5:30) Bombay, Calcutta, Madras, New Delhi"),e.qZA(),e.TgZ(53,"option",69),e._uU(54,"(GMT +5:45) Kathmandu, Pokhara"),e.qZA(),e.TgZ(55,"option",70),e._uU(56,"(GMT +6:00) Almaty, Dhaka, Colombo"),e.qZA(),e.TgZ(57,"option",71),e._uU(58,"(GMT +6:30) Yangon, Mandalay"),e.qZA(),e.TgZ(59,"option",72),e._uU(60,"(GMT +7:00) Bangkok, Hanoi, Jakarta"),e.qZA(),e.TgZ(61,"option",73),e._uU(62,"(GMT +8:00) Beijing, Perth, Singapore, Hong Kong"),e.qZA(),e.TgZ(63,"option",74),e._uU(64,"(GMT +8:45) Eucla"),e.qZA(),e.TgZ(65,"option",75),e._uU(66,"(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk"),e.qZA(),e.TgZ(67,"option",76),e._uU(68,"(GMT +9:30) Adelaide, Darwin"),e.qZA(),e.TgZ(69,"option",77),e._uU(70,"(GMT +10:00) Eastern Australia, Guam, Vladivostok"),e.qZA(),e.TgZ(71,"option",78),e._uU(72,"(GMT +10:30) Lord Howe Island"),e.qZA(),e.TgZ(73,"option",79),e._uU(74,"(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),e.qZA(),e.TgZ(75,"option",80),e._uU(76,"(GMT +11:30) Norfolk Island"),e.qZA(),e.TgZ(77,"option",81),e._uU(78,"(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka"),e.qZA(),e.TgZ(79,"option",82),e._uU(80,"(GMT +12:45) Chatham Islands"),e.qZA(),e.TgZ(81,"option",83),e._uU(82,"(GMT +13:00) Apia, Nukualofa"),e.qZA(),e.TgZ(83,"option",84),e._uU(84,"(GMT +14:00) Line Islands, Tokelau"),e.qZA(),e.qZA(),e.qZA()),2&Ee&&(e.xp6(3),e.hij(" ",e.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NOT_SELECTED")," "))}function xe(Ee,Ge){if(1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"button",42),e._uU(2),e.qZA(),e.qZA()),2&Ee){const U=e.oxw().$implicit,k=e.oxw(2);e.xp6(2),e.hij(" ",k.getLocalizedLabel(U)," ")}}function Qe(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e.TgZ(1,"form"),e._UZ(2,"input",41),e._uU(3," example group1 "),e._UZ(4,"br"),e._UZ(5,"input",41),e._uU(6," example group2 "),e._UZ(7,"br"),e._UZ(8,"input",41),e._uU(9," example group3 "),e.qZA(),e.qZA())}const Te=function(){return["Example 1","Example 2"]},Ae=function(Ee){return{id:0,beanName:"Attribute",namespace:"",value:Ee}};function ae(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-list",85),e.qZA()),2&Ee&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Ae,e.DdM(1,Te))))}const i=function(){return{key1:"value 1",key2:"value 2"}};function o(Ee,Ge){1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"perun-web-apps-attribute-value-map",85),e.qZA()),2&Ee&&(e.xp6(1),e.Q6J("attribute",e.VKq(2,Ae,e.DdM(1,i))))}function d(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,me,3,0,"div",29),e.YNc(2,be,5,0,"div",29),e.YNc(3,pe,5,4,"div",29),e.YNc(4,Se,2,1,"div",29),e.YNc(5,Je,3,1,"div",29),e.YNc(6,nt,2,0,"div",29),e.YNc(7,z,7,6,"div",29),e.YNc(8,D,3,1,"div",29),e.YNc(9,H,3,1,"div",29),e.YNc(10,V,85,3,"div",29),e.YNc(11,xe,3,1,"div",29),e.YNc(12,Qe,10,0,"div",29),e.YNc(13,ae,2,4,"div",29),e.YNc(14,o,2,4,"div",29),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","TEXTFIELD"===U.type||"VALIDATED_EMAIL"===U.type||"USERNAME"===U.type),e.xp6(1),e.Q6J("ngIf","PASSWORD"===U.type),e.xp6(1),e.Q6J("ngIf","RADIO"===U.type),e.xp6(1),e.Q6J("ngIf","HEADING"===U.type||"HTML_COMMENT"===U.type),e.xp6(1),e.Q6J("ngIf","SELECTIONBOX"===U.type),e.xp6(1),e.Q6J("ngIf","TEXTAREA"===U.type),e.xp6(1),e.Q6J("ngIf","COMBOBOX"===U.type),e.xp6(1),e.Q6J("ngIf","CHECKBOX"===U.type),e.xp6(1),e.Q6J("ngIf","SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","TIMEZONE"===U.type),e.xp6(1),e.Q6J("ngIf","AUTO_SUBMIT_BUTTON"===U.type),e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type),e.xp6(1),e.Q6J("ngIf","LIST_INPUT_BOX"===U.type),e.xp6(1),e.Q6J("ngIf","MAP_INPUT_BOX"===U.type)}}function l(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function s(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){return e.CHM(U),e.oxw(3).openManagingGroups()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"supervised_user_circle"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANAGE_GROUPS"))}function r(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,s,4,3,"button",86),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf","EMBEDDED_GROUP_APPLICATION"===U.type&&!U.forDelete)}}function t(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function n(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",90),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).edit(ie)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"edit"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.EDIT"))}function a(Ee,Ge){1&Ee&&(e.TgZ(0,"div",91),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MARK_DELETE")," "))}function c(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,n,4,3,"button",88),e.YNc(2,a,3,3,"div",89),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function h(Ee,Ge){1&Ee&&e._UZ(0,"th",24)}function x(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",93),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).delete(ie)}),e.ALo(1,"multiWordDataCy"),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4,"delete"),e.qZA(),e.qZA()}if(2&Ee){const U=e.oxw().$implicit;e.Q2q("data-cy","",e.lcZ(1,2,U.shortname),"-delete"),e.s9C("matTooltip",e.lcZ(2,4,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DELETE"))}}function We(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"button",87),e.NdJ("click",function(){e.CHM(U);const ie=e.oxw().$implicit;return e.oxw(2).restore(ie)}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon"),e._uU(3,"settings_backup_restore"),e.qZA(),e.qZA()}2&Ee&&e.s9C("matTooltip",e.lcZ(1,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.REVERT_DELETE"))}function At(Ee,Ge){if(1&Ee&&(e.TgZ(0,"td",25),e.YNc(1,x,5,6,"button",92),e.YNc(2,We,4,3,"button",86),e.qZA()),2&Ee){const U=Ge.$implicit;e.xp6(1),e.Q6J("ngIf",!U.forDelete),e.xp6(1),e.Q6J("ngIf",U.forDelete)}}function Ht(Ee,Ge){1&Ee&&e._UZ(0,"tr",94)}function lt(Ee,Ge){if(1&Ee&&e._UZ(0,"tr",95),2&Ee){const U=Ge.$implicit,k=e.oxw(2);e.ekj("make-green",U.id<=0)("make-red",U.forDelete)("make-yellow",-1!==k.itemsChanged.indexOf(U.id)&&!U.forDelete&&U.id>0),e.Q6J("cdkDragData",U)}}function Ut(Ee,Ge){if(1&Ee){const U=e.EpF();e.TgZ(0,"div",4),e.TgZ(1,"div",5),e.TgZ(2,"div",6),e.TgZ(3,"table",7,8),e.NdJ("cdkDropListDropped",function(ie){return e.CHM(U),e.oxw().drop(ie)}),e.ynx(5,9),e.YNc(6,q,1,0,"th",10),e.YNc(7,te,4,0,"td",11),e.BQk(),e.ynx(8,12),e.YNc(9,ue,3,3,"th",10),e.YNc(10,de,2,2,"td",11),e.BQk(),e.ynx(11,13),e.YNc(12,Le,3,3,"th",10),e.YNc(13,Ue,3,3,"td",11),e.BQk(),e.ynx(14,14),e.YNc(15,ze,3,3,"th",15),e.YNc(16,je,2,1,"td",16),e.BQk(),e.ynx(17,17),e.YNc(18,ye,3,3,"th",15),e.YNc(19,W,2,1,"td",16),e.BQk(),e.ynx(20,18),e.YNc(21,R,3,3,"th",10),e.YNc(22,d,15,14,"td",11),e.BQk(),e.ynx(23,19),e.YNc(24,l,1,0,"th",10),e.YNc(25,r,2,1,"td",11),e.BQk(),e.ynx(26,20),e.YNc(27,t,1,0,"th",10),e.YNc(28,c,3,2,"td",11),e.BQk(),e.ynx(29,21),e.YNc(30,h,1,0,"th",10),e.YNc(31,At,3,2,"td",11),e.BQk(),e.YNc(32,Ht,1,0,"tr",22),e.YNc(33,lt,1,7,"tr",23),e.qZA(),e.qZA(),e.qZA(),e.qZA()}if(2&Ee){const U=e.oxw();e.xp6(3),e.Q6J("cdkDropListDisabled",U.dragDisabled)("dataSource",U.dataSource),e.xp6(29),e.Q6J("matHeaderRowDef",U.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",U.displayedColumns)}}function mt(Ee,Ge){1&Ee&&(e.TgZ(0,"perun-web-apps-alert",96),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&Ee&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM"),"\n"))}let Lt=(()=>{class Ee{constructor(U,k,ie,ce){this.dialog=U,this.notificator=k,this.router=ie,this.translate=ce,this.applicationFormItems=[],this.displayedColumns=["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"],this.applicationFormItemsChange=new e.vpe,this.itemsChanged=[],this.dataSource=this.applicationFormItems,this.mapForCombobox=new Map,this.dragDisabled=!0}ngOnInit(){this.ifEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_EMPTY"),this.ifPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IF_PREFILLED"),this.alwaysDisabled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_DISABLED_HINT"),this.alwaysHidden=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.ALWAYS_HIDDEN_HINT"),this.isDisabledIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.DISABLED_IF_HINT"),this.isHiddenIf=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.HIDDEN_IF_HINT"),this.isEmpty=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_EMPTY_HINT"),this.isPrefilled=this.translate.instant("VO_DETAIL.SETTINGS.APPLICATION_FORM.DISABLED_HIDDEN_ICON.IS_PREFILLED_HINT")}ngOnChanges(){this.dataSource=this.applicationFormItems,this.refreshApplicationForm&&(this.itemsChanged=[])}disabledHiddenDependency(U,k,ie){let ce="";if("IF_EMPTY"===k||"IF_PREFILLED"===k){const He=null===ie?"":this.applicationFormItems.find(ct=>ct.id===ie).shortname;ce="IF_EMPTY"===k?`(${this.ifEmpty} ${He})`:`(${this.ifPrefilled} ${He})`}return ce}disabledTooltip(U){let k;switch(U.disabled){case"ALWAYS":return this.alwaysDisabled;case"IF_EMPTY":return k=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${k} ${this.isEmpty}`;case"IF_PREFILLED":return k=null===U.disabledDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.disabledDependencyItemId).shortname,`${this.isDisabledIf} ${k} ${this.isPrefilled}`}}hiddenTooltip(U){let k;switch(U.hidden){case"ALWAYS":return this.alwaysHidden;case"IF_EMPTY":return k=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${k} ${this.isEmpty}`;case"IF_PREFILLED":return k=null===U.hiddenDependencyItemId?"":this.applicationFormItems.find(ie=>ie.id===U.hiddenDependencyItemId).shortname,`${this.isHiddenIf} ${k} ${this.isPrefilled}`}}edit(U){const k=(0,I.kZ)();k.width="600px",k.height="600px",k.data={voId:this.applicationForm.vo.id,group:this.applicationForm.group,applicationFormItem:U,theme:this.theme,allItems:this.applicationFormItems},this.dialog.open(C._,k).afterClosed().subscribe(ce=>{ce&&(this.itemsChanged.push(U.id),this.applicationFormItemsChange.emit())})}delete(U){const k=(0,I.kZ)();k.width="500px",this.dialog.open(A,k).afterClosed().subscribe(ce=>{ce&&(U.forDelete=!0,0===U.id&&(this.applicationFormItems.splice(this.applicationFormItems.indexOf(U),1),this.table.renderRows()),this.applicationFormItemsChange.emit())})}drop(U){this.dragDisabled=!0;const k=this.applicationFormItems.indexOf(U.item.data);(0,b.bA)(this.applicationFormItems,k,U.currentIndex),this.itemsChanged.push(this.applicationFormItems[U.currentIndex].id),this.applicationFormItemsChange.emit(),this.table.renderRows()}getLocalizedOptions(U){if(U.i18n[this.translate.getDefaultLang()]){const k=U.i18n[this.translate.getDefaultLang()].options;if(null!==k&&""!==k){const ie=[];for(const ce of k.split("|"))ie.push(ce.split("#")[1]);return ie}}return[]}getLocalizedLabel(U){return U.i18n[this.translate.getDefaultLang()]?U.i18n[this.translate.getDefaultLang()].label:U.shortname}restore(U){U.forDelete=!1}openManagingGroups(){this.router.navigate(["/organizations",this.applicationForm.vo.id,"settings","applicationForm","manageGroups"])}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(_.uw),e.Y36(E.V6),e.Y36(P.F0),e.Y36(g.sK))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-application-form-list"]],viewQuery:function(U,k){if(1&U&&e.Gf(j,5),2&U){let ie;e.iGM(ie=e.CRH())&&(k.table=ie.first)}},inputs:{loading:"loading",applicationForm:"applicationForm",applicationFormItems:"applicationFormItems",theme:"theme",displayedColumns:"displayedColumns",refreshApplicationForm:"refreshApplicationForm"},outputs:{applicationFormItemsChange:"applicationFormItemsChange"},features:[e.TTD],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"card","mt-2"],[1,"card-body","table-theme"],[1,"overflow-auto"],["cdkDropList","","cdkDropListData","dataSource","mat-table","",1,"w-100",3,"cdkDropListDisabled","dataSource","cdkDropListDropped"],["table",""],["matColumnDef","drag"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortname"],["matColumnDef","type"],["matColumnDef","disabled"],["class","center","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","hidden"],["matColumnDef","preview"],["matColumnDef","managegroups"],["matColumnDef","edit"],["matColumnDef","delete"],["mat-header-row","",4,"matHeaderRowDef"],["cdkDrag","","mat-row","",3,"cdkDragData","make-green","make-red","make-yellow",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","",3,"mousedown"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],[4,"ngIf"],[1,"pointer",3,"matTooltip"],["type","text"],["type","text",1,"mb-1"],[4,"ngFor","ngForOf"],["type","reset",3,"value"],["name","temp","type","radio"],[3,"innerHTML"],[3,"ngModel","ngModelChange"],["selected","","value","false",4,"ngFor","ngForOf"],["value","true"],["selected","","value","false"],["type","checkbox"],["color","accent","mat-flat-button",""],["id","timezone-offset","name","timezone_offset",1,"span5"],["selected","selected","value","-12:00"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:50"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:50"],["value","-04:00"],["value","-03:50"],["value","-03:00"],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:50"],["value","+04:00"],["value","+04:50"],["value","+05:00"],["value","+05:50"],["value","+05:75"],["value","+06:00"],["value","+06:50"],["value","+07:00"],["value","+08:00"],["value","+08:75"],["value","+09:00"],["value","+09:50"],["value","+10:00"],["value","+10:50"],["value","+11:00"],["value","+11:50"],["value","+12:00"],["value","+12:75"],["value","+13:00"],["value","+14:00"],[3,"attribute"],["mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click"],["class","ml-auto","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["class","font-weight-bold",4,"ngIf"],["mat-icon-button","",1,"ml-auto",3,"matTooltip","click"],[1,"font-weight-bold"],["color","warn","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["color","warn","mat-icon-button","",3,"matTooltip","click"],["mat-header-row",""],["cdkDrag","","mat-row","",3,"cdkDragData"],["alert_type","warn"]],template:function(U,k){1&U&&(e.YNc(0,Y,1,0,"mat-spinner",0),e.YNc(1,Ut,34,4,"div",1),e.YNc(2,mt,3,3,"perun-web-apps-alert",2)),2&U&&(e.Q6J("ngIf",k.loading),e.xp6(1),e.Q6J("ngIf",0!==k.applicationFormItems.length&&!k.loading),e.xp6(1),e.Q6J("ngIf",0===k.applicationFormItems.length&&!k.loading))},directives:[m.O5,L.$g,O.BZ,b.Wj,O.w1,O.fO,O.ge,O.Dz,O.ev,w.lW,G.Hw,ne.gM,ge._Y,ge.JL,ge.F,m.sg,ge.YN,ge.Kr,ge.EJ,ge.JJ,ge.On,J.H,Me.$,O.as,O.XQ,O.nj,O.Gk,b.Zt,oe.w],pipes:[g.X$,Re.c,T.R],styles:[".cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.movable-row[_ngcontent-%COMP%]{cursor:move}.make-red[_ngcontent-%COMP%]{background-color:#ffcdd2}.make-green[_ngcontent-%COMP%]{background-color:#c8e6c9}.make-yellow[_ngcontent-%COMP%]{background-color:#fff9c4}.center[_ngcontent-%COMP%]{text-align:center}.pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ee})()},9146:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>n});var e=p(32105),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(69808),C=p(5e3),I=p(10036),P=p(18750),m=p(20773),L=p(32075),O=p(25245),G=p(29772);function ne(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",1),C._uU(2,"arrow_right_alt"),C.qZA(),C.qZA())}function ge(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",2),C._uU(2,"restore"),C.qZA(),C.qZA())}function J(a,c){1&a&&(C.TgZ(0,"div"),C.TgZ(1,"mat-icon",3),C._uU(2,"nat"),C.qZA(),C.qZA())}let Me=(()=>{class a{}return a.\u0275fac=function(h){return new(h||a)},a.\u0275cmp=C.Xpm({type:a,selectors:[["app-application-type-icon"]],inputs:{applicationType:"applicationType"},decls:4,vars:3,consts:[[4,"ngIf"],["matTooltip","Initial","matTooltipPosition","above"],["matTooltip","Extension","matTooltipPosition","above"],["matTooltip","Embedded","matTooltipPosition","above"]],template:function(h,x){1&h&&(C.TgZ(0,"div"),C.YNc(1,ne,3,0,"div",0),C.YNc(2,ge,3,0,"div",0),C.YNc(3,J,3,0,"div",0),C.qZA()),2&h&&(C.xp6(1),C.Q6J("ngIf","INITIAL"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EXTENSION"===x.applicationType),C.xp6(1),C.Q6J("ngIf","EMBEDDED"===x.applicationType))},directives:[E.O5,O.Hw,G.gM],styles:[""]}),a})();var oe=p(50301),Re=p(11735),T=p(98380),j=p(51062),Y=p(43157),q=p(31359);function te(a,c){1&a&&(C.TgZ(0,"div",26),C._UZ(1,"mat-spinner",27),C.qZA())}function ue(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.ID")," "))}function de(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.id)}}function Le(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_DATE")," "))}function Ue(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.createdAt,"d.M.y"))}}function ze(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_ID")))}function le(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.id)}}function je(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.VO_NAME")))}function ye(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.vo.name)}}function Be(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_ID")))}function W(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.id:""," ")}}function R(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.GROUP_NAME")))}function me(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.group?h.group.name:""," ")}}function be(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.TYPE")," "))}function Ie(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"app-application-type-icon",31),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("applicationType",h.type)}}function pe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.STATE")," "))}function Se(a,c){if(1&a&&(C.TgZ(0,"td",29),C._UZ(1,"span",32),C.ALo(2,"applicationState"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Q6J("outerHTML",C.lcZ(2,1,h.state),C.oJD)}}function Xe(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCENAME")))}function Je(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceName)}}function nt(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.EXTSOURCETYPE")))}function Ve(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.extSourceType)}}function X(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.USER")," "))}function z(a,c){if(1&a&&(C.TgZ(0,"div"),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function Q(a,c){if(1&a&&(C._uU(0),C.ALo(1,"userFullName")),2&a){const h=C.oxw().$implicit;C.hij(" ",C.lcZ(1,1,h.user)," ")}}function D(a,c){if(1&a&&(C.TgZ(0,"td",29),C.YNc(1,z,2,1,"div",33),C.YNc(2,Q,2,3,"ng-template",null,34,C.W1O),C.qZA()),2&a){const h=c.$implicit,x=C.MAs(3);C.xp6(1),C.Q6J("ngIf",null===h.user)("ngIfElse",x)}}function H(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.CREATED_BY")))}function V(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.hij(" ",h.createdBy.slice(h.createdBy.lastIndexOf("=")+1,h.createdBy.length)," ")}}function xe(a,c){1&a&&(C.TgZ(0,"th",28),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_BY")," "))}function Qe(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw();C.xp6(1),C.Oqu(x.getFriendlyName(h.modifiedBy))}}function Te(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.MODIFIED_AT")))}function Ae(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.ALo(2,"date"),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(C.xi3(2,1,h.modifiedAt,"d.M.y"))}}function ae(a,c){1&a&&(C.TgZ(0,"th",30),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.xp6(1),C.Oqu(C.lcZ(2,1,"APPLICATIONS_LIST.FEDINFO")))}function i(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit;C.xp6(1),C.Oqu(h.fedInfo)}}function o(a,c){if(1&a&&(C.TgZ(0,"th",30),C._uU(1),C.qZA()),2&a){const h=C.oxw().$implicit;C.xp6(1),C.Oqu(h)}}function d(a,c){if(1&a&&(C.TgZ(0,"td",29),C._uU(1),C.qZA()),2&a){const h=c.$implicit,x=C.oxw().$implicit,We=C.oxw();C.xp6(1),C.hij(" ",We.getValue(h.formData,x)," ")}}function l(a,c){1&a&&(C.ynx(0,35),C.YNc(1,o,2,1,"th",9),C.YNc(2,d,2,1,"td",6),C.BQk()),2&a&&C.s9C("matColumnDef",c.$implicit)}function s(a,c){1&a&&C._UZ(0,"tr",36)}function r(a,c){if(1&a&&C._UZ(0,"tr",37),2&a){const h=c.$implicit,x=C.oxw();C.ekj("cursor-pointer",!x.disableRouting),C.Q6J("perunWebAppsMiddleClickRouterLink",x.selectApplication(h))("routerLink",x.selectApplication(h))}}function t(a,c){1&a&&(C.TgZ(0,"perun-web-apps-alert",38),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&a&&(C.Q6J("alert_type","warn"),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_DETAIL.APPLICATION.NO_APPLICATION_FOUND"),"\n"))}let n=(()=>{class a{constructor(h,x,We){this.authResolver=h,this.tableConfigService=x,this.dynamicPaginatingService=We,this.displayedColumns=[],this.disableRouting=!1,this.searchString="",this.dateTo=new Date,this.dateFrom=this.yearAgo(),this.refreshTable=!1,this.parsedColumns=[],this.pageSizeOptions=b.f7}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadApplicationsPage())).subscribe()}ngOnInit(){var h,x,We,At;this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Ht=>"id"!==Ht)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadApplications(this.tableConfigService.getTablePageSize(this.tableId),0,"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId()),this.dataSource.loading$.subscribe(Ht=>{if(Ht||!this.displayedColumns.includes("fedInfo"))return;this.displayedColumns=this.displayedColumns.filter(Ut=>!this.parsedColumns.includes(Ut)),this.parsedColumns=[];const lt=this.dataSource.getData()[0];lt&&this.parseColumns(lt.formData)})}ngOnChanges(){this.refreshTable=!1,this.dataSource&&(this.child.paginator.pageIndex=0,this.loadApplicationsPage())}loadApplicationsPage(){var h,x,We,At;this.dataSource.loadApplications(this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.getSortDataColumn(),this.searchString,this.includeGroupApps,this.states,this.dateToString(this.dateFrom),this.dateToString(this.dateTo),null!==(x=null===(h=this.member)||void 0===h?void 0:h.userId)&&void 0!==x?x:null,null!==(At=null===(We=this.group)||void 0===We?void 0:We.id)&&void 0!==At?At:null,this.getVoId(),!0)}exportData(h){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,this.getExportDataForColumn.bind(this)),h)}selectApplication(h){return this.disableRouting?null:this.group?["/organizations",h.vo.id,"groups",this.group.id,"applications",h.id]:this.member?["/organizations",h.vo.id,"members",this.member.id,"applications",h.id]:["/organizations",h.vo.id,"applications",h.id]}getExportDataForColumn(h,x){var We,At,Ht,lt;switch(x){case"id":return h.id.toString();case"voId":return h.vo.id.toString();case"voName":return h.vo.name;case"groupId":return null!==(At=null===(We=h.group)||void 0===We?void 0:We.id.toString())&&void 0!==At?At:"";case"groupName":return null!==(lt=null===(Ht=h.group)||void 0===Ht?void 0:Ht.name)&&void 0!==lt?lt:"";case"type":return h.type;case"fedInfo":return h.fedInfo;case"formData":return this.stringify(h.formData);case"state":return h.state;case"extSourceName":return h.extSourceName;case"extSourceType":return h.extSourceType;case"user":return h.user?(0,b.bD)(h.user):"";case"createdBy":return h.createdBy;case"createdAt":return h.createdAt;case"modifiedBy":return h.modifiedBy;case"modifiedAt":return h.modifiedAt;default:return h[x]}}getSortDataColumn(){if(!this.sort)return e.sY.DATE_CREATED;switch(this.sort.active){case"id":return e.sY.ID;case"createdAt":default:return e.sY.DATE_CREATED;case"type":return e.sY.TYPE;case"state":return e.sY.STATE;case"user":return e.sY.SUBMITTER;case"groupName":return e.sY.GROUP_NAME;case"modifiedBy":return e.sY.MODIFIED_BY}}getFriendlyName(h){const x=h.lastIndexOf("/CN=");if(-1!==x){const We=h.slice(x+4,h.length).replace("/unstructuredName="," ");return-1!==We.lastIndexOf("\\")?h.slice(h.lastIndexOf("=")+1,h.length):We}return h}yearAgo(){const h=new Date;return h.setDate(h.getDate()-365),h}dateToString(h){return(0,E.p6)(h,"yyyy-MM-dd","en-GB")}getVoId(){return this.vo?this.vo.id:this.group?this.group.voId:this.member?this.member.voId:void 0}stringify(h){const x=At=>Object.entries(At).reduce((Ht,[lt,Ut])=>Ht[lt]instanceof Object?Ht[lt]=x(Ht[lt]):(null==Ut||"null"===Ut||0===Ut.length||(Ht[lt]=Ut),Ht),{});let We=JSON.stringify(x(h));return We=We.replace("{","["),We=We.replace("}","]"),We}getFormDataString(h){return this.stringify(h.formItem)}parseColumns(h){h.forEach(x=>{this.displayedColumns.includes(x.shortname)||this.displayedColumns.push(x.shortname),this.parsedColumns.includes(x.shortname)||this.parsedColumns.push(x.shortname)})}getValue(h,x){var We;const At=h.filter(Ht=>Ht.shortname===x);return 0===At.length?"":null!==(We=At[0].value)&&void 0!==We?We:At[0].prefilledValue}}return a.\u0275fac=function(h){return new(h||a)(C.Y36(w.x4),C.Y36(I.dB),C.Y36(w.ly))},a.\u0275cmp=C.Xpm({type:a,selectors:[["app-applications-dynamic-list"]],viewQuery:function(h,x){if(1&h&&(C.Gf(b.l9,7),C.Gf(_.YE,5)),2&h){let We;C.iGM(We=C.CRH())&&(x.child=We.first),C.iGM(We=C.CRH())&&(x.sort=We.first)}},inputs:{displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",group:"group",member:"member",vo:"vo",includeGroupApps:"includeGroupApps",states:"states",dateTo:"dateTo",dateFrom:"dateFrom",refreshTable:"refreshTable"},features:[C.TTD],decls:55,vars:14,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","createdAt","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["matColumnDef","voId"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","voName"],["matColumnDef","groupId"],["matColumnDef","groupName"],["matColumnDef","type"],["matColumnDef","state"],["matColumnDef","extSourceName"],["matColumnDef","extSourceType"],["matColumnDef","user"],["matColumnDef","createdBy"],["matColumnDef","modifiedBy"],["matColumnDef","modifiedAt"],["matColumnDef","fedInfo"],[3,"matColumnDef",4,"ngFor","ngForOf"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"applicationType"],[3,"outerHTML"],[4,"ngIf","ngIfElse"],["name",""],[3,"matColumnDef"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],[3,"alert_type"]],template:function(h,x){1&h&&(C.TgZ(0,"div",0),C.TgZ(1,"perun-web-apps-table-wrapper",1),C.NdJ("exportData",function(At){return x.exportData(At)}),C.YNc(2,te,2,0,"div",2),C.ALo(3,"async"),C.TgZ(4,"table",3),C.ynx(5,4),C.YNc(6,ue,3,3,"th",5),C.YNc(7,de,2,1,"td",6),C.BQk(),C.ynx(8,7),C.YNc(9,Le,3,3,"th",5),C.YNc(10,Ue,3,4,"td",6),C.BQk(),C.ynx(11,8),C.YNc(12,ze,3,3,"th",9),C.YNc(13,le,2,1,"td",6),C.BQk(),C.ynx(14,10),C.YNc(15,je,3,3,"th",9),C.YNc(16,ye,2,1,"td",6),C.BQk(),C.ynx(17,11),C.YNc(18,Be,3,3,"th",9),C.YNc(19,W,2,1,"td",6),C.BQk(),C.ynx(20,12),C.YNc(21,R,3,3,"th",9),C.YNc(22,me,2,1,"td",6),C.BQk(),C.ynx(23,13),C.YNc(24,be,3,3,"th",5),C.YNc(25,Ie,2,1,"td",6),C.BQk(),C.ynx(26,14),C.YNc(27,pe,3,3,"th",5),C.YNc(28,Se,3,3,"td",6),C.BQk(),C.ynx(29,15),C.YNc(30,Xe,3,3,"th",9),C.YNc(31,Je,2,1,"td",6),C.BQk(),C.ynx(32,16),C.YNc(33,nt,3,3,"th",9),C.YNc(34,Ve,2,1,"td",6),C.BQk(),C.ynx(35,17),C.YNc(36,X,3,3,"th",5),C.YNc(37,D,4,2,"td",6),C.BQk(),C.ynx(38,18),C.YNc(39,H,3,3,"th",9),C.YNc(40,V,2,1,"td",6),C.BQk(),C.ynx(41,19),C.YNc(42,xe,3,3,"th",5),C.YNc(43,Qe,2,1,"td",6),C.BQk(),C.ynx(44,20),C.YNc(45,Te,3,3,"th",9),C.YNc(46,Ae,3,4,"td",6),C.BQk(),C.ynx(47,21),C.YNc(48,ae,3,3,"th",9),C.YNc(49,i,2,1,"td",6),C.BQk(),C.YNc(50,l,3,1,"ng-container",22),C.YNc(51,s,1,0,"tr",23),C.YNc(52,r,1,4,"tr",24),C.qZA(),C.qZA(),C.qZA(),C.YNc(53,t,3,4,"perun-web-apps-alert",25),C.ALo(54,"async")),2&h&&(C.Q6J("hidden",0===x.dataSource.allObjectCount),C.xp6(1),C.Q6J("dataLength",x.dataSource.allObjectCount)("pageSizeOptions",x.pageSizeOptions)("tableId",x.tableId),C.xp6(1),C.Q6J("ngIf",C.lcZ(3,10,x.dataSource.loading$)),C.xp6(2),C.Q6J("dataSource",x.dataSource),C.xp6(46),C.Q6J("ngForOf",x.parsedColumns),C.xp6(1),C.Q6J("matHeaderRowDef",x.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",x.displayedColumns),C.xp6(1),C.Q6J("ngIf",0===x.dataSource.allObjectCount&&!1===C.lcZ(54,12,x.dataSource.loading$)))},directives:[P.l,E.O5,m.$g,L.BZ,_.YE,L.w1,L.fO,L.ge,_.nU,L.Dz,L.ev,Me,E.sg,L.as,L.XQ,L.nj,L.Gk,oe.YH,Re.rH,T.w],pipes:[E.Ov,j.X$,E.uU,Y.h,q.d],styles:[""]}),a})()},45256:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>G});var e=p(20449),b=p(32105),_=p(64080),w=p(48966),g=p(36908),A=p(9244),E=p(86511),C=p(8929),I=p(36787),P=p(21086),m=p(87545),L=p(1059),O=p(5e3);let G=(()=>{class ne{constructor(J,Me,oe,Re,T,j,Y,q,te,ue){this.data=J,this.dialogRef=Me,this.membersManagerService=oe,this.voService=Re,this.registrarManager=T,this.groupService=j,this.store=Y,this.guiAuthResolver=q,this.requestService=te,this.addMemberService=ue,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(de=>(0,I.T)((0,P.of)(null),this.voService.getCompleteCandidatesForGroup(this.data.group.id,this.attrNames,de))),(0,L.O)(void 0)),this.failed=[],this.selection=new e.Ov(!0,[]),this.attrNames=[_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("group")}ngOnInit(){this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_User_policy",[this.data.group]),this.selection.changed.subscribe(J=>{this.addAuth=!!J.source.selected.every(Me=>Me.member)||this.guiAuthResolver.isAuthorized("createMember_Vo_User_List_policy",[this.data.group])&&this.guiAuthResolver.isAuthorized("createMember_Vo_Candidate_List_policy",[this.data.group])})}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const J=this.selection.selected.pop();J.member?this.addMember(J):J.richUser?this.addUser(J):J.candidate&&this.addCandidate(J)}invite(J){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,J):this.inviteCandidate(Me,J)}cancel(J){this.dialogRef.close(J)}addCandidate(J){this.membersManagerService.createMemberForCandidate({vo:this.data.group.voId,candidate:this.addMemberService.createCandidate(J.candidate),groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addMember(J){this.groupService.addMembers(this.data.group.id,[J.member.id]).subscribe(()=>{this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addUser(J){this.membersManagerService.createMemberForUser({vo:this.data.group.voId,user:J.richUser.id,groups:[this.addMemberService.getFormattedGroup(this.data.group)]}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}inviteCandidate(J,Me){this.registrarManager.sendInvitationForGroup((0,A.Jc)(J.candidate),Me,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}inviteUser(J,Me){this.registrarManager.sendInvitationGroupToExistingUser(J.richUser.id,this.data.group.voId,this.data.group.id).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}}return ne.\u0275fac=function(J){return new(J||ne)(O.Y36(w.WI),O.Y36(w.so),O.Y36(b.uq),O.Y36(b.YF),O.Y36(b.tk),O.Y36(b.ff),O.Y36(g.d6),O.Y36(g.x4),O.Y36(g.F5),O.Y36(E.A))},ne.\u0275cmp=O.Xpm({type:ne,selectors:[["app-group-add-member-dialog"]],decls:2,vars:11,consts:[[3,"loading","languages","manualAddingBlocked","addAuth","inviteAuth","failed","members","selection","theme","add","cancel","invite","search"]],template:function(J,Me){1&J&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Me.add()})("cancel",function(Re){return Me.cancel(Re)})("invite",function(Re){return Me.invite(Re)})("search",function(Re){return Me.searcher.next(Re)}),O.ALo(1,"async"),O.qZA()),2&J&&O.Q6J("loading",Me.loading)("languages",Me.languages)("manualAddingBlocked",Me.data.manualAddingBlocked)("addAuth",Me.addAuth)("inviteAuth",Me.inviteAuth)("failed",Me.failed)("members",O.lcZ(1,9,Me.members))("selection",Me.selection)("theme","group-theme")},styles:[""]}),ne})()},51525:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>G});var e=p(48966),b=p(32105),_=p(36908),w=p(20449),g=p(9244),A=p(64080),E=p(86511),C=p(8929),I=p(36787),P=p(21086),m=p(87545),L=p(1059),O=p(5e3);let G=(()=>{class ne{constructor(J,Me,oe,Re,T,j,Y,q){this.data=J,this.dialogRef=Me,this.membersManagerService=oe,this.voService=Re,this.registrarManager=T,this.store=j,this.requestService=Y,this.addMemberService=q,this.loading=!1,this.searcher=new C.xQ,this.members=this.searcher.pipe((0,m.w)(te=>(0,I.T)((0,P.of)(null),this.voService.getCompleteCandidatesForVo(this.data.voId,this.attrNames,te))),(0,L.O)(void 0)),this.failed=[],this.selection=new w.Ov(!0,[]),this.attrNames=[A.r.USER_DEF_ORGANIZATION,A.r.USER_DEF_PREFERRED_MAIL],this.languages=this.store.get("supported_languages"),this.addMemberService.setDialogRef(this.dialogRef),this.addMemberService.setType("vo")}add(){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_ADD"));this.requestService.dontHandleErrorForNext();const J=this.selection.selected.pop();J.richUser?this.addUser(J):this.addCandidate(J)}invite(J){if(this.loading=!0,0===this.selection.selected.length)return void(0!==this.failed.length?this.loading=!1:this.addMemberService.success("DIALOGS.ADD_MEMBERS.SUCCESS_INVITE"));this.requestService.dontHandleErrorForNext();const Me=this.selection.selected.pop();Me.richUser?this.inviteUser(Me,J):this.inviteCandidate(Me,J)}cancel(J){this.dialogRef.close(J)}addCandidate(J){this.membersManagerService.createMemberForCandidate({vo:this.data.voId,candidate:this.addMemberService.createCandidate(J.candidate)}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}addUser(J){this.membersManagerService.createMemberForUser({vo:this.data.voId,user:J.richUser.id}).subscribe(Me=>{this.membersManagerService.validateMemberAsync(Me.id).subscribe(),this.add()},Me=>{this.failed.push(this.addMemberService.getCandidateWithError(J,Me)),this.add()})}inviteCandidate(J,Me){this.registrarManager.sendInvitation((0,g.Jc)(J.candidate),Me,this.data.voId).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}inviteUser(J,Me){this.registrarManager.sendInvitationToExistingUser(J.richUser.id,this.data.voId).subscribe(()=>{this.invite(Me)},oe=>{this.failed.push(this.addMemberService.getCandidateWithError(J,oe)),this.invite(Me)})}}return ne.\u0275fac=function(J){return new(J||ne)(O.Y36(e.WI),O.Y36(e.so),O.Y36(b.uq),O.Y36(b.YF),O.Y36(b.tk),O.Y36(_.d6),O.Y36(_.F5),O.Y36(E.A))},ne.\u0275cmp=O.Xpm({type:ne,selectors:[["app-vo-add-member-dialog"]],decls:2,vars:8,consts:[[3,"loading","languages","failed","members","selection","theme","add","cancel","invite","search"]],template:function(J,Me){1&J&&(O.TgZ(0,"app-add-member-dialog",0),O.NdJ("add",function(){return Me.add()})("cancel",function(Re){return Me.cancel(Re)})("invite",function(Re){return Me.invite(Re)})("search",function(Re){return Me.searcher.next(Re)}),O.ALo(1,"async"),O.qZA()),2&J&&O.Q6J("loading",Me.loading)("languages",Me.languages)("failed",Me.failed)("members",O.lcZ(1,6,Me.members))("selection",Me.selection)("theme","vo-theme")},styles:[""]}),ne})()},55857:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>Me});var e=p(32105),b=p(10036),_=p(36908),w=p(93075),g=p(69808),A=p(5e3),E=p(96214),C=p(47423),I=p(67322),P=p(74107),m=p(90508),L=p(64901),O=p(39798),G=p(9146),ne=p(51062);function ge(oe,Re){if(1&oe){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!0}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function J(oe,Re){if(1&oe){const T=A.EpF();A.TgZ(0,"button",14),A.NdJ("click",function(){return A.CHM(T),A.oxw().showAllDetails=!1}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&oe&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let Me=(()=>{class oe{constructor(T,j,Y){this.registrarManager=T,this.guiAuthResolver=j,this.entityStorageService=Y,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.displayedColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedDisplayedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Af,this.tableId=b.gB,this.refresh=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.startDate=new w.NI((0,g.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new w.NI((0,g.p6)(new Date,"yyyy-MM-dd","en-GB"))}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const T=new Date;return T.setDate(T.getDate()-365),T}applyFilter(T){this.filterValue=T}}return oe.id="GroupApplicationsComponent",oe.\u0275fac=function(T){return new(T||oe)(A.Y36(e.tk),A.Y36(_.x4),A.Y36(_.fb))},oe.\u0275cmp=A.Xpm({type:oe,selectors:[["app-group-applications"]],hostVars:2,hostBindings:function(T,j){2&T&&A.ekj("router-component",j.true)},decls:34,vars:38,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","mat-stroked-button","",3,"click",4,"ngIf"],[1,"w-25","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","refreshTable","group"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(T,j){1&T&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return j.refresh=!j.refresh}),A.qZA(),A.YNc(5,ge,3,3,"button",2),A.YNc(6,J,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return j.select()})("valueChange",function(q){return j.state=q}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(q){return j.applyFilter(q)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return j.select()}),A.qZA(),A.qZA(),A.TgZ(32,"div"),A._UZ(33,"app-applications-dynamic-list",13),A.qZA()),2&T&&(A.xp6(1),A.Oqu(A.lcZ(2,22,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!j.showAllDetails),A.xp6(1),A.Q6J("ngIf",j.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,24,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",j.state),A.xp6(2),A.Oqu(A.lcZ(14,26,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,28,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,30,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,32,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,34,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,36,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",j.endDate)("startDate",j.startDate),A.xp6(2),A.Q6J("tableId",j.showAllDetails?j.detailTableId:j.tableId)("searchString",j.filterValue)("displayedColumns",j.showAllDetails?j.detailedDisplayedColumns:j.displayedColumns)("states",j.currentStates)("dateFrom",j.startDate.value)("dateTo",j.endDate.value)("refreshTable",j.refresh)("group",j.group))},directives:[E.t,g.O5,C.lW,I.KE,I.hX,P.gD,m.ey,L.P,O.S,G.S],pipes:[ne.X$],styles:[""]}),oe})()},75234:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>R});var e=p(20449),b=p(36908),_=p(64080),w=p(53455),g=p(32105),A=p(10036),E=p(9244),C=p(74414),I=p(93075),P=p(45256),m=p(5e3),L=p(48966),O=p(69808),G=p(98380),ne=p(96214),ge=p(29772),J=p(47423),Me=p(67322),oe=p(74107),Re=p(90508),T=p(64901),j=p(20773),Y=p(1903),q=p(51062);let te=(()=>{class me{transform(Ie,pe){return!!("members"===Ie.name||(0,E.bx)(Ie)||"add"===pe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING))}}return me.\u0275fac=function(Ie){return new(Ie||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabled",type:me,pure:!0}),me})(),ue=(()=>{class me{transform(Ie,pe){return"members"===Ie.name?"GROUP_DETAIL.MEMBERS.BUTTON_DISABLED_MEMBERS_GROUP":(0,E.bx)(Ie)?"GROUP_DETAIL.MEMBERS.SYNCHRONIZED":"add"===pe&&(0,E.jh)(Ie.attributes,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)?"GROUP_DETAIL.MEMBERS.ADD_MEMBER_DISABLED":""}}return me.\u0275fac=function(Ie){return new(Ie||me)},me.\u0275pipe=m.Yjl({name:"groupMembersActionButtonDisabledTooltip",type:me,pure:!0}),me})();var de=p(20551);function Le(me,be){1&me&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&me&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.MEMBERS.ACTIONS_DISABLED"),"\n"))}function Ue(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onAddMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",m.xi3(1,2,Ie.group,"add")),m.xp6(2),m.hij(" ",m.lcZ(3,5,"GROUP_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ze(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onInviteMember()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.INVITE_MEMBER")," ")}}function le(me,be){if(1&me){const Ie=m.EpF();m.TgZ(0,"button",17),m.NdJ("click",function(){return m.CHM(Ie),m.oxw().onRemoveMembers()}),m.ALo(1,"groupMembersActionButtonDisabled"),m._uU(2),m.ALo(3,"translate"),m.qZA()}if(2&me){const Ie=m.oxw();m.Q6J("disabled",Ie.selection.isEmpty()||m.lcZ(1,2,Ie.group)),m.xp6(2),m.hij(" ",m.lcZ(3,4,"GROUP_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function je(me,be){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Ie=be.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function ye(me,be){if(1&me&&(m.TgZ(0,"mat-option",18),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&me){const Ie=be.$implicit;m.Q6J("value",Ie),m.xp6(1),m.Oqu(m.lcZ(2,2,Ie))}}function Be(me,be){1&me&&m._UZ(0,"mat-spinner",19)}function W(me,be){if(1&me&&m._UZ(0,"perun-web-apps-members-dynamic-list",20),2&me){const Ie=m.oxw();m.Q6J("attrNames",Ie.memberAttrNames)("groupId",Ie.group.id)("tableId",Ie.tableId)("displayedColumns",Ie.displayedColumns)("searchString",Ie.searchString)("updateTable",Ie.updateTable)("selectedGroupStatuses",Ie.selectedGroupStatuses)("selectedStatuses",Ie.selectedStatuses)("selection",Ie.selection)("voId",Ie.group.voId)}}let R=(()=>{class me{constructor(Ie,pe,Se,Xe,Je,nt,Ve,X){this.groupService=Ie,this.dialog=pe,this.guiAuthResolver=Se,this.storeService=Xe,this.attributesManager=Je,this.apiRequest=nt,this.notificator=Ve,this.entityStorageService=X,this.synchEnabled=!1,this.updateTable=!1,this.loading=!1,this.tableId=A.dI,this.memberAttrNames=[_.r.MEMBER_DEF_ORGANIZATION,_.r.MEMBER_DEF_MAIL,_.r.USER_DEF_ORGANIZATION,_.r.USER_DEF_PREFERRED_MAIL,_.r.MEMBER_DEF_EXPIRATION,_.r.MEMBER_DEF_GROUP_EXPIRATION],this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.statuses=new I.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=["VALID","INVALID"],this.groupStatuses=new I.NI,this.groupStatusList=["VALID","EXPIRED"],this.selectedGroupStatuses=["VALID"],this.groupAttrNames=[_.r.GROUP_SYNC_ENABLED,_.r.GROUP_LAST_SYNC_STATE,_.r.GROUP_LAST_SYNC_TIMESTAMP,_.r.GROUP_STRUCTURE_SYNC_ENABLED,_.r.GROUP_LAST_STRUCTURE_SYNC_STATE,_.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP,_.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}ngOnInit(){this.loading=!0,this.selection=new e.Ov(!0,[]),this.statuses.setValue(this.selectedStatuses),this.groupStatuses.setValue(this.selectedGroupStatuses),this.memberAttrNames=this.memberAttrNames.concat(this.storeService.getLoginAttributeNames()),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.group.voId).then(()=>this.loadPage(this.group.id))}loadPage(Ie){this.groupService.getRichGroupByIdWithAttributesByNames(Ie,this.groupAttrNames).subscribe(pe=>{this.group=pe,this.synchEnabled=(0,E.bx)(this.group),this.loading=!1})}setAuthRights(){this.addAuth=this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[this.group]),this.removeAuth=this.guiAuthResolver.isAuthorized("removeMembers_Group_List_policy",[this.group]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","type","fullName","status","groupStatus","organization","email","logins"],this.inviteAuth=this.guiAuthResolver.isAuthorized("group-sendInvitation_Vo_Group_String_String_String_policy",[this.group])}onSearchByString(Ie){this.searchString=Ie,this.selection.clear()}onAddMember(){const Ie=(0,E.kZ)();Ie.width="1000px",Ie.data={group:this.group,manualAddingBlocked:this.blockManualMemberAdding},this.dialog.open(P.k,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onRemoveMembers(){const Ie=(0,E.kZ)();Ie.width="450px",Ie.data={groupId:this.group.id,members:this.selection.selected,theme:"group-theme"},this.dialog.open(w.X,Ie).afterClosed().subscribe(Se=>{Se&&(this.selection.clear(),this.updateTable=!this.updateTable)})}onInviteMember(){const Ie=(0,E.kZ)();Ie.width="650px",Ie.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(C.R,Ie)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Ie=this.statuses.value;return Ie?`${Ie[0]} ${Ie.length>1?"(+"+(Ie.length-1).toString()+" "+(2===Ie.length?"other)":"others)"):""}`:""}displaySelectedGroupStatuses(){return this.selectedGroupStatuses.length===this.groupStatusList.length?"ALL":`${this.groupStatuses.value[0]}`}isManualAddingBlocked(Ie){return new Promise(pe=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Ie,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(Se=>{this.blockManualMemberAdding=null!==Se.value,pe()},Se=>{const Xe=Se.error;"PrivilegeException"!==Xe.name&&this.notificator.showError(Xe.name),pe()})})}changeVoStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}changeGroupStatuses(){this.selection.clear(),this.selectedGroupStatuses=this.groupStatuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return me.id="GroupMembersComponent",me.\u0275fac=function(Ie){return new(Ie||me)(m.Y36(g.ff),m.Y36(L.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(g.H8),m.Y36(b.F5),m.Y36(b.V6),m.Y36(b.fb))},me.\u0275cmp=m.Xpm({type:me,selectors:[["app-group-members"]],hostVars:2,hostBindings:function(Ie,pe){2&Ie&&m.ekj("router-component",pe.true)},decls:42,vars:55,consts:[[1,"page-subtitle"],["alert_type","warn",4,"ngIf"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltipPosition","matTooltip"],["class","mr-2 action-button","color","accent","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2","color","warn","data-cy","remove-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId",4,"ngIf"],["alert_type","warn"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"group-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","groupId","tableId","displayedColumns","searchString","updateTable","selectedGroupStatuses","selectedStatuses","selection","voId"]],template:function(Ie,pe){1&Ie&&(m.TgZ(0,"h1",0),m._uU(1),m.ALo(2,"translate"),m.qZA(),m.YNc(3,Le,3,3,"perun-web-apps-alert",1),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return pe.refreshTable()}),m.qZA(),m.TgZ(6,"span",4),m.ALo(7,"groupMembersActionButtonDisabled"),m.ALo(8,"translate"),m.ALo(9,"groupMembersActionButtonDisabledTooltip"),m.YNc(10,Ue,4,7,"button",5),m.qZA(),m.TgZ(11,"span",4),m.ALo(12,"groupMembersActionButtonDisabled"),m.ALo(13,"translate"),m.ALo(14,"groupMembersActionButtonDisabledTooltip"),m.YNc(15,ze,4,6,"button",6),m.qZA(),m.TgZ(16,"span",4),m.ALo(17,"groupMembersActionButtonDisabled"),m.ALo(18,"translate"),m.ALo(19,"groupMembersActionButtonDisabledTooltip"),m.YNc(20,le,4,6,"button",7),m.qZA(),m.TgZ(21,"mat-form-field",8),m.TgZ(22,"mat-label"),m._uU(23),m.ALo(24,"translate"),m.qZA(),m.TgZ(25,"mat-select",9),m.NdJ("closed",function(){return pe.changeVoStatuses()}),m.TgZ(26,"mat-select-trigger"),m._uU(27),m.ALo(28,"memberStatus"),m.qZA(),m.YNc(29,je,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(30,"mat-form-field",8),m.TgZ(31,"mat-label"),m._uU(32),m.ALo(33,"translate"),m.qZA(),m.TgZ(34,"mat-select",9),m.NdJ("closed",function(){return pe.changeGroupStatuses()}),m.TgZ(35,"mat-select-trigger"),m._uU(36),m.ALo(37,"memberStatus"),m.qZA(),m.YNc(38,ye,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(39,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(Xe){return pe.onSearchByString(Xe)}),m.qZA(),m.qZA(),m.YNc(40,Be,1,0,"mat-spinner",12),m.YNc(41,W,1,10,"perun-web-apps-members-dynamic-list",13)),2&Ie&&(m.xp6(1),m.Oqu(m.lcZ(2,25,"GROUP_DETAIL.MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",pe.synchEnabled),m.xp6(3),m.s9C("matTooltip",m.lcZ(8,30,m.xi3(9,32,pe.group,"add"))),m.Q6J("matTooltipDisabled",!m.xi3(7,27,pe.group,"add"))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.addAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(13,37,m.lcZ(14,39,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(12,35,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.inviteAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(18,43,m.lcZ(19,45,pe.group))),m.Q6J("matTooltipDisabled",!m.lcZ(17,41,pe.group))("matTooltipPosition","above"),m.xp6(4),m.Q6J("ngIf",pe.removeAuth),m.xp6(3),m.Oqu(m.lcZ(24,47,"GROUP_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",pe.statuses),m.xp6(2),m.hij(" ",m.lcZ(28,49,pe.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.statusList),m.xp6(3),m.Oqu(m.lcZ(33,51,"GROUP_DETAIL.MEMBERS.FILTER_GROUP_STATUS")),m.xp6(2),m.Q6J("formControl",pe.groupStatuses),m.xp6(2),m.hij(" ",m.lcZ(37,53,pe.displaySelectedGroupStatuses())," "),m.xp6(2),m.Q6J("ngForOf",pe.groupStatusList),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",pe.loading),m.xp6(1),m.Q6J("ngIf",!pe.loading))},directives:[O.O5,G.w,ne.t,ge.gM,J.lW,Me.KE,Me.hX,oe.gD,I.JJ,I.oH,oe.$L,O.sg,Re.ey,T.P,j.$g,Y.m],pipes:[q.X$,te,ue,de.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),me})()},37240:($e,_e,p)=>{"use strict";p.d(_e,{q:()=>z});var e=p(20449),b=p(32105),_=p(10036),w=p(48966),g=p(36908),E=(p(387),p(5e3)),C=p(51062),I=p(69808),P=p(20773),m=p(92081),L=p(64901),O=p(62109),G=p(32368),ne=p(93075),ge=p(47423),J=p(29772);const Me=["list"],oe=["stepper"];function Re(Q,D){1&Q&&E._UZ(0,"mat-spinner",4)}function T(Q,D){1&Q&&(E._uU(0),E.ALo(1,"translate")),2&Q&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.RESOURCES"))}function j(Q,D){1&Q&&(E._uU(0),E.ALo(1,"translate")),2&Q&&E.Oqu(E.lcZ(1,1,"DIALOGS.ADD_GROUP_RESOURCES.OPTIONS"))}const Y=function(){return["select","id","name","facility","tags","description"]};function q(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",5),E.TgZ(1,"mat-stepper",6,7),E.TgZ(3,"mat-step",8),E.YNc(4,T,2,3,"ng-template",9),E.TgZ(5,"perun-web-apps-debounce-filter",10),E.NdJ("filter",function(xe){return E.CHM(H),E.oxw().applyFilter(xe)}),E.ALo(6,"translate"),E.qZA(),E._UZ(7,"perun-web-apps-resources-list",11,12),E.qZA(),E.TgZ(9,"mat-step"),E.YNc(10,j,2,3,"ng-template",9),E.TgZ(11,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeSubgroupsMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().autoAssignSubgroups=xe}),E._uU(12),E.ALo(13,"translate"),E.qZA(),E.TgZ(14,"div",14),E._UZ(15,"i",15),E.qZA(),E.TgZ(16,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeInactiveMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().asActive=xe}),E._uU(17),E.ALo(18,"translate"),E.qZA(),E.TgZ(19,"div",14),E._uU(20),E.qZA(),E.TgZ(21,"mat-slide-toggle",13),E.NdJ("toggleChange",function(){return E.CHM(H),E.oxw().changeAsyncMessage()})("ngModelChange",function(xe){return E.CHM(H),E.oxw().async=xe}),E._uU(22),E.ALo(23,"translate"),E.qZA(),E.TgZ(24,"div",14),E._uU(25),E.qZA(),E.qZA(),E.qZA(),E.qZA()}if(2&Q){const H=E.MAs(8),V=E.oxw();E.xp6(1),E.Q6J("linear",!0),E.xp6(2),E.Q6J("completed",0!==V.selection.selected.length&&void 0!==H&&H.addAuth),E.xp6(2),E.s9C("placeholder",E.lcZ(6,19,"DIALOGS.ADD_GROUP_RESOURCES.FILTER")),E.xp6(2),E.Q6J("filterValue",V.filterValue)("groupToResource",V.data.group)("disableRouting",!0)("resources",V.resources)("selection",V.selection)("displayedColumns",E.DdM(27,Y))("tableId",V.tableId),E.xp6(4),E.Q6J("ngModel",V.autoAssignSubgroups),E.xp6(1),E.hij(" ",E.lcZ(13,21,"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS")," "),E.xp6(3),E.Q6J("innerHTML",V.autoAssignHint,E.oJD),E.xp6(1),E.Q6J("ngModel",V.asActive),E.xp6(1),E.hij(" ",E.lcZ(18,23,"DIALOGS.ADD_GROUP_RESOURCES.AS_ACTIVE")," "),E.xp6(3),E.hij(" ",V.asActiveHint," "),E.xp6(1),E.Q6J("ngModel",V.async),E.xp6(1),E.hij(" ",E.lcZ(23,25,"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OPT")," "),E.xp6(3),E.hij(" ",V.asyncHint," ")}}function te(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",22),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).stepperPrevious()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"DIALOGS.ADD_GROUP_RESOURCES.BACK")," "))}function ue(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",23),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).stepperNext()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Q){const H=E.oxw(2);E.ekj("ml-2",void 0!==H.stepper&&0!==H.stepper.selectedIndex)("ml-auto",!(void 0!==H.stepper&&0!==H.stepper.selectedIndex)),E.Q6J("disabled",0===H.selection.selected.length||void 0!==H.list&&!H.list.addAuth),E.xp6(1),E.hij(" ",E.lcZ(2,6,"DIALOGS.ADD_GROUP_RESOURCES.NEXT")," ")}}function de(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",24),E.NdJ("click",function(){return E.CHM(H),E.oxw(2).onSubmit()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Q){const H=E.oxw(2);E.Q6J("disabled",0===H.selection.selected.length||H.loading),E.xp6(1),E.hij(" ",E.lcZ(2,2,"DIALOGS.ADD_GROUP_RESOURCES.ADD")," ")}}function Le(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",16),E.TgZ(1,"button",17),E.NdJ("click",function(){return E.CHM(H),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,te,3,3,"button",18),E.YNc(5,ue,3,8,"button",19),E.TgZ(6,"span",20),E.ALo(7,"translate"),E.YNc(8,de,3,4,"button",21),E.qZA(),E.qZA()}if(2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,6,"DIALOGS.ADD_GROUP_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("ngIf",void 0!==H.stepper&&0!==H.stepper.selectedIndex),E.xp6(1),E.Q6J("ngIf",void 0!==H.stepper&&H.stepper.selectedIndex!==H.stepper._steps.length-1),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,8,"DIALOGS.ADD_GROUP_RESOURCES.ADD_PERMISSION_TOOLTIP")),E.Q6J("matTooltipDisabled",void 0===H.list||H.list.addAuth),E.xp6(2),E.Q6J("ngIf",void 0!==H.stepper&&H.stepper.selectedIndex===H.stepper._steps.length-1)}}let Ue=(()=>{class Q{constructor(H,V,xe,Qe,Te,Ae,ae){this.dialogRef=H,this.data=V,this.notificator=xe,this.translate=Qe,this.resourcesManager=Te,this.guiAuthResolver=Ae,this.cd=ae,this.filterValue="",this.resources=[],this.selection=new e.Ov(!0,[]),this.theme="",this.async=!0,this.autoAssignSubgroups=!1,this.asActive=!0,this.tableId=_.dK}ngOnInit(){this.theme=this.data.theme,this.loading=!0,this.autoAssignHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT"),this.asActiveHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT"),this.asyncHint=this.translate.instant("DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT"),this.resourcesManager.getRichResources(this.data.group.voId).subscribe(H=>{this.resourcesManager.getAssignedResourcesWithGroup(this.data.group.id).subscribe(V=>{for(const xe of H)-1===V.findIndex(Qe=>Qe.id===xe.id)&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",[this.data.group,xe])&&this.resources.push(xe);this.loading=!1,this.cd.detectChanges()},()=>this.loading=!1)},()=>this.loading=!1)}applyFilter(H){this.filterValue=H}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const H=this.selection.selected.map(V=>V.id);this.resourcesManager.assignGroupToResources(this.data.group.id,H,this.async,!this.asActive,this.autoAssignSubgroups).subscribe(()=>{this.translate.get("DIALOGS.ADD_GROUP_RESOURCES.SUCCESS").subscribe(V=>{this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)}changeSubgroupsMessage(){this.autoAssignHint=this.translate.instant(this.autoAssignSubgroups?"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.AUTO_SUBGROUPS_ON_HINT")}changeInactiveMessage(){this.asActiveHint=this.translate.instant(this.asActive?"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ACTIVE_ON_HINT")}changeAsyncMessage(){this.asyncHint=this.translate.instant(this.async?"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_OFF_HINT":"DIALOGS.ADD_GROUP_RESOURCES.ASYNC_ON_HINT")}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}}return Q.\u0275fac=function(H){return new(H||Q)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk),E.Y36(g.x4),E.Y36(E.sBO))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["app-add-group-resource-dialog"]],viewQuery:function(H,V){if(1&H&&(E.Gf(Me,5),E.Gf(oe,5)),2&H){let xe;E.iGM(xe=E.CRH())&&(V.list=xe.first),E.iGM(xe=E.CRH())&&(V.stepper=xe.first)}},decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[3,"linear"],["stepper",""],[3,"completed"],["matStepLabel",""],[3,"placeholder","filter"],[3,"filterValue","groupToResource","disableRouting","resources","selection","displayedColumns","tableId"],["list",""],["labelPosition","before",1,"mt-3","slide-text",3,"ngModel","toggleChange","ngModelChange"],[1,"text-muted","new-line","mt-2"],[3,"innerHTML"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["class","ml-auto","color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["class","ml-2","color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","","type","button",1,"ml-auto",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,Re,1,0,"mat-spinner",1),E.YNc(5,q,26,28,"div",2),E.YNc(6,Le,9,10,"div",3),E.qZA()),2&H&&(E.Tol(V.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.ADD_GROUP_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading&&void 0!==V.stepper))},directives:[w.uh,I.O5,P.$g,w.xY,m.Vq,m.C0,m.VY,L.P,O.C,G.Rr,ne.JJ,ne.On,w.H8,ge.lW,J.gM],pipes:[C.X$],styles:[""]}),Q})();var ze=p(32075);function le(Q,D){1&Q&&E._UZ(0,"mat-spinner",4)}function je(Q,D){1&Q&&E._UZ(0,"th",13)}function ye(Q,D){if(1&Q&&(E.TgZ(0,"td",14),E._uU(1),E.qZA()),2&Q){const H=D.$implicit;E.xp6(1),E.Oqu(H.name)}}function Be(Q,D){1&Q&&E._UZ(0,"tr",15)}function W(Q,D){1&Q&&E._UZ(0,"tr",16)}function R(Q,D){if(1&Q&&(E.TgZ(0,"div",5),E.TgZ(1,"p"),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"div",6),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.TgZ(7,"table",7),E.ynx(8,8),E.YNc(9,je,1,0,"th",9),E.YNc(10,ye,2,1,"td",10),E.BQk(),E.YNc(11,Be,1,0,"tr",11),E.YNc(12,W,1,0,"tr",12),E.qZA(),E.qZA()),2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,5,"DIALOGS.REMOVE_RESOURCES.DESCRIPTION")," "),E.xp6(3),E.hij(" ",E.lcZ(6,7,"DIALOGS.REMOVE_RESOURCES.ASK")," "),E.xp6(2),E.Q6J("dataSource",H.dataSource),E.xp6(4),E.Q6J("matHeaderRowDef",H.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",H.displayedColumns)}}function me(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"div",17),E.TgZ(1,"button",18),E.NdJ("click",function(){return E.CHM(H),E.oxw().onCancel()}),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"button",19),E.NdJ("click",function(){return E.CHM(H),E.oxw().onSubmit()}),E._uU(5),E.ALo(6,"translate"),E.qZA(),E.qZA()}if(2&Q){const H=E.oxw();E.xp6(2),E.hij(" ",E.lcZ(3,3,"DIALOGS.REMOVE_RESOURCES.CANCEL")," "),E.xp6(2),E.Q6J("disabled",H.loading),E.xp6(1),E.hij(" ",E.lcZ(6,5,"DIALOGS.REMOVE_RESOURCES.DELETE")," ")}}let be=(()=>{class Q{constructor(H,V,xe,Qe,Te){this.dialogRef=H,this.data=V,this.notificator=xe,this.translate=Qe,this.resourcesManager=Te,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new ze.by(this.data.resources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0;const H=this.data.resources.map(V=>V.id);this.resourcesManager.removeGroupFromResources(this.data.groupId,H).subscribe(()=>{this.translate.get("DIALOGS.REMOVE_RESOURCES.SUCCESS").subscribe(V=>{this.loading=!1,this.notificator.showSuccess(V),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Q.\u0275fac=function(H){return new(H||Q)(E.Y36(w.so),E.Y36(w.WI),E.Y36(g.V6),E.Y36(C.sK),E.Y36(b.xk))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["app-remove-group-resource-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.YNc(4,le,1,0,"mat-spinner",1),E.YNc(5,R,13,9,"div",2),E.YNc(6,me,7,7,"div",3),E.qZA()),2&H&&(E.Tol(V.data.theme),E.xp6(2),E.Oqu(E.lcZ(3,7,"DIALOGS.REMOVE_RESOURCES.TITLE")),E.xp6(2),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading),E.xp6(1),E.Q6J("ngIf",!V.loading))},directives:[w.uh,I.O5,P.$g,w.xY,ze.BZ,ze.w1,ze.fO,ze.ge,ze.Dz,ze.ev,ze.as,ze.XQ,ze.nj,ze.Gk,w.H8,ge.lW],pipes:[C.X$],styles:[""]}),Q})();var Ie=p(9244),pe=p(96214),Se=p(7434);const Xe=["list"];function Je(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"button",8),E.NdJ("click",function(){return E.CHM(H),E.oxw().addResource()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}2&Q&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"GROUP_DETAIL.RESOURCES.ADD")," "))}function nt(Q,D){1&Q&&E._UZ(0,"mat-spinner",9)}const Ve=function(){return["select","id","indirectResourceAssigment","name","status","facility","tags","description"]};function X(Q,D){if(1&Q){const H=E.EpF();E.TgZ(0,"perun-web-apps-resources-list",10,11),E.NdJ("refreshTable",function(){return E.CHM(H),E.oxw().refreshTable()}),E.qZA()}if(2&Q){const H=E.oxw();E.Q6J("disableRouting",!H.routingAuth)("filterValue",H.filterValue)("resources",H.resources)("routingVo",!0)("displayedColumns",E.DdM(10,Ve))("selection",H.selected)("groupId",H.group.id)("groupToResource",H.group)("resourcesToDisableCheckbox",H.resourcesToDisable)("tableId",H.tableId)}}let z=(()=>{class Q{constructor(H,V,xe,Qe,Te){this.resourcesManager=H,this.groupService=V,this.dialog=xe,this.guiAuthResolver=Qe,this.entityStorageService=Te,this.resources=null,this.selected=new e.Ov(!0,[]),this.filterValue="",this.tableId=_.v1,this.addAuth=!1}ngOnInit(){this.group=this.entityStorageService.getEntity(),this.setAuthorization(),this.refreshTable()}setAuthorization(){null!==this.resources&&0!==this.resources.length&&(this.routingAuth=this.guiAuthResolver.isAuthorized("getResourceById_int_policy",[this.resources[0]])),this.addAuth=this.guiAuthResolver.isAuthorized("getResources_Vo_policy",[this.group])}refreshTable(){this.loading=!0,this.resourcesManager.getResourceAssignments(this.group.id).subscribe(H=>{this.resources=H.map(V=>{const xe=V.enrichedResource.resource;return xe.facility=V.facility,xe.status=V.status,xe.resourceTags=V.resourceTags,xe.failureCause=V.failureCause,xe.sourceGroupId=V.sourceGroupId,xe}),this.selected.clear(),this.resourcesToDisable=new Set(this.resources.filter(V=>null!==V.sourceGroupId).map(V=>V.id)),this.setAuthorization(),this.loading=!1})}applyFilter(H){this.filterValue=H}addResource(){const H=(0,Ie.kZ)();H.width="1000px",H.data={theme:"group-theme",group:this.group},this.dialog.open(Ue,H).afterClosed().subscribe(xe=>{xe&&this.refreshTable()})}removeResource(){const H=(0,Ie.kZ)();H.width="450px",H.data={theme:"group-theme",resources:this.selected.selected,groupId:this.group.id},this.dialog.open(be,H).afterClosed().subscribe(xe=>{xe&&(this.selected.clear(),this.refreshTable())})}}return Q.id="GroupResourcesComponent",Q.\u0275fac=function(H){return new(H||Q)(E.Y36(b.xk),E.Y36(b.ff),E.Y36(w.uw),E.Y36(g.x4),E.Y36(g.fb))},Q.\u0275cmp=E.Xpm({type:Q,selectors:[["app-group-resources"]],viewQuery:function(H,V){if(1&H&&E.Gf(Xe,5),2&H){let xe;E.iGM(xe=E.CRH())&&(V.list=xe.first)}},hostVars:2,hostBindings:function(H,V){2&H&&E.ekj("router-component",V.true)},decls:14,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","groupId","groupToResource","resourcesToDisableCheckbox","tableId","refreshTable"],["list",""]],template:function(H,V){1&H&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return V.refreshTable()}),E.qZA(),E.YNc(5,Je,3,3,"button",2),E.TgZ(6,"span",3),E.ALo(7,"translate"),E.TgZ(8,"button",4),E.NdJ("click",function(){return V.removeResource()}),E._uU(9),E.ALo(10,"translate"),E.qZA(),E.qZA(),E.TgZ(11,"perun-web-apps-immediate-filter",5),E.NdJ("filter",function(Qe){return V.applyFilter(Qe)}),E.qZA(),E.YNc(12,nt,1,0,"mat-spinner",6),E.YNc(13,X,2,11,"perun-web-apps-resources-list",7),E.qZA()),2&H&&(E.xp6(2),E.Oqu(E.lcZ(3,9,"GROUP_DETAIL.RESOURCES.TITLE")),E.xp6(3),E.Q6J("ngIf",V.addAuth),E.xp6(1),E.s9C("matTooltip",E.lcZ(7,11,"GROUP_DETAIL.RESOURCES.DELETE_PERMISSION_HINT")),E.Q6J("matTooltipDisabled",0===V.selected.selected.length||void 0!==V.list&&V.list.removeAuth),E.xp6(2),E.Q6J("disabled",0===V.selected.selected.length||void 0!==V.list&&!V.list.removeAuth),E.xp6(1),E.hij(" ",E.lcZ(10,13,"GROUP_DETAIL.RESOURCES.DELETE")," "),E.xp6(2),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",V.loading),E.xp6(1),E.Q6J("ngIf",V.resources&&!V.loading))},directives:[pe.t,I.O5,ge.lW,J.gM,Se.L,P.$g,O.C],pipes:[C.X$],styles:[""]}),Q})()},14336:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>be});var e=p(36908),b=p(51076),_=p(83491),w=p(95502),g=p(1186),A=p(32105),E=p(9244),C=p(5e3),I=p(48966),P=p(51062),m=p(11735),L=p(69808),O=p(20773),G=p(25245),ne=p(29772),ge=p(32368),J=p(93075),Me=p(47423),oe=p(4834),Re=p(96214),T=p(98380),j=p(157);const Y=["autoRegToggle"];function q(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",3)}function te(Ie,pe){if(1&Ie&&(C.TgZ(0,"span"),C._uU(1," , "),C.TgZ(2,"mat-icon",22),C._uU(3,"nat"),C.qZA(),C._uU(4),C.ALo(5,"translate"),C.ALo(6,"translate"),C.qZA()),2&Ie){const Se=C.oxw(3);C.xp6(4),C.hij(" ",Se.applicationForm.automaticApprovalEmbedded?C.lcZ(5,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(6,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," ")}}function ue(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"mat-slide-toggle",23,24),C.NdJ("change",function(){return C.CHM(Se),C.oxw(3).updateAutoRegistration()}),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw(3);C.xp6(1),C.Q6J("disabled",!Se.changeAutoRegistration)("ngModel",Se.autoRegistrationEnabled),C.xp6(2),C.hij(" ",C.lcZ(4,3,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ALLOW_EMBEDDED")," ")}}function de(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",25),C.NdJ("click",function(){return C.CHM(Se),C.oxw(3).settings()}),C.TgZ(1,"i",12),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Le(Ie,pe){if(1&Ie&&(C.TgZ(0,"div",15),C.TgZ(1,"div",16),C.TgZ(2,"div",17),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",17),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",18),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",19),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.YNc(20,te,7,5,"span",2),C.qZA(),C.YNc(21,ue,5,5,"div",2),C.qZA(),C.TgZ(22,"div",20),C.YNc(23,de,5,3,"button",21),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw(2);C.xp6(1),C.Q6J("ngClass",Se.autoRegistrationEnabled?"w-75":"w-50"),C.xp6(2),C.AsE(" ",C.lcZ(4,9,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",Se.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,11,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApproval?C.lcZ(13,13,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,15,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",Se.applicationForm.automaticApprovalExtension?C.lcZ(18,17,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,19,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(3),C.Q6J("ngIf",Se.autoRegistrationEnabled),C.xp6(1),C.Q6J("ngIf",Se.voHasEmbeddedGroupApplication),C.xp6(2),C.Q6J("ngIf",Se.editAuth)}}function Ue(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",26),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function ze(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",27),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).save()}),C.TgZ(1,"i",12),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ie){const Se=C.oxw(2);C.Q6J("disabled",!Se.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function le(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",28),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).copy()}),C.TgZ(1,"i",12),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ie&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.COPY_GROUP_BUTTON")," "))}function je(Ie,pe){1&Ie&&(C.TgZ(0,"perun-web-apps-alert",29),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}const ye=function(){return["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]},Be=function(){return["shortname","type","disabled","hidden","preview","managegroups"]};function W(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div"),C.YNc(1,Le,24,21,"div",4),C._UZ(2,"mat-divider",5),C.TgZ(3,"div",6),C.TgZ(4,"perun-web-apps-refresh-button",7),C.NdJ("refresh",function(){return C.CHM(Se),C.oxw().updateFormItems()}),C.qZA(),C.YNc(5,Ue,3,3,"button",8),C.YNc(6,ze,5,4,"button",9),C.YNc(7,le,5,3,"button",10),C.TgZ(8,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().preview()}),C.TgZ(9,"i",12),C._uU(10,"search"),C.qZA(),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.YNc(13,je,3,3,"perun-web-apps-alert",13),C.TgZ(14,"app-application-form-list",14),C.NdJ("applicationFormItemsChange",function(){return C.CHM(Se),C.oxw().changeItems()}),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(1),C.Q6J("ngIf",!Se.loading),C.xp6(4),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("ngIf",Se.editAuth),C.xp6(4),C.hij(" ",C.lcZ(12,12,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",Se.editAuth),C.xp6(1),C.Q6J("applicationForm",Se.applicationForm)("applicationFormItems",Se.applicationFormItems)("loading",Se.loading)("displayedColumns",Se.editAuth?C.DdM(14,ye):C.DdM(15,Be))("refreshApplicationForm",Se.refreshApplicationForm)("theme","group-theme")}}function R(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",32),C.NdJ("click",function(){return C.CHM(Se),C.oxw(2).createEmptyApplicationForm()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CREATE_APPLICATION_FORM")," "))}function me(Ie,pe){if(1&Ie&&(C.TgZ(0,"div"),C.TgZ(1,"perun-web-apps-alert",30),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,R,3,3,"button",31),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,2,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.NO_APPLICATION_FORM")),C.xp6(2),C.Q6J("ngIf",Se.createEmptyForm)}}let be=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve,X,z,Q,D){this.registrarManager=Se,this.dialog=Xe,this.notificator=Je,this.translate=nt,this.apiRequest=Ve,this.router=X,this.guiAuthResolver=z,this.attributesManager=Q,this.entityStorageService=D,this.loading=!1,this.applicationFormItems=[],this.noApplicationForm=!1,this.itemsChanged=!1,this.editAuth=!1,this.createEmptyForm=!1,this.voHasEmbeddedGroupApplication=!1,this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.group=this.entityStorageService.getEntity(),this.setAuth(),this.apiRequest.dontHandleErrorForNext(),this.registrarManager.getGroupApplicationForm(this.group.id).subscribe(Se=>{this.applicationForm=Se,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Xe=>{this.applicationFormItems=Xe,this.attributesManager.getGroupAttributeByName(this.group.id,"urn:perun:group:attribute-def:virt:autoRegistrationEnabled").subscribe(Je=>{this.voHasEmbeddedGroupApplication=null!==Je.value,this.autoRegistrationEnabled=!!Je.value,this.loading=!1})},()=>this.loading=!1)},Se=>{const Xe=Se.error;"FormNotExistsException"===Xe.name?(this.noApplicationForm=!0,this.loading=!1):this.notificator.showRPCError(Xe)})}setAuth(){this.editAuth=this.guiAuthResolver.isAuthorized("group-updateFormItems_ApplicationForm_List_policy",[this.group]),this.createEmptyForm=this.guiAuthResolver.isAuthorized("createApplicationFormInGroup_Group_policy",[this.group]),this.changeAutoRegistration=this.guiAuthResolver.isAuthorized("addGroupsToAutoRegistration_List_policy",[this.group])}add(){let Se=(0,E.kZ)();Se.width="500px",Se.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(b.J,Se).afterClosed().subscribe(Je=>{Je&&(this.applicationFormItems=Object.assign([],Je[0]),Se=(0,E.kZ)(),Se.width="600px",Se.height="600px",Se.data={voId:this.group.voId,groupId:this.group.id,applicationFormItem:Je[1],theme:"group-theme",allItems:this.applicationFormItems},this.dialog.open(_._,Se),this.itemsChanged=!0)})}copy(){const Se=(0,E.kZ)();Se.width="500px",Se.data={voId:this.group.voId,groupId:this.group.id,theme:"group-theme"},this.dialog.open(w.W,Se).afterClosed().subscribe(Je=>{Je&&this.updateFormItems()})}settings(){const Se=(0,E.kZ)();Se.width="400px",Se.data={entity:"group",applicationForm:this.applicationForm,theme:"group-theme",autoRegistrationEnabled:this.autoRegistrationEnabled},this.dialog.open(g.E,Se).afterClosed().subscribe(Je=>{Je&&(this.translate.get("GROUP_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(nt=>{this.notificator.showSuccess(nt)}),this.applicationForm=Je)})}preview(){this.router.navigate(["/organizations",this.group.voId,"groups",this.group.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForGroup(this.group.id).subscribe(Se=>{this.applicationFormItems=Se,this.itemsChanged=!1,this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}createEmptyApplicationForm(){this.registrarManager.createApplicationFormInGroup(this.group.id).subscribe(()=>{this.noApplicationForm=!1,this.ngOnInit()})}save(){let Se=0;for(const Xe of this.applicationFormItems)Xe.ordnum=Se,Xe.forDelete||Se++;this.registrarManager.updateFormItemsForGroup({group:this.group.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(Xe=>{this.notificator.showSuccess(Xe)}),this.updateFormItems()})}clear(){this.applicationFormItems=[],this.itemsChanged=!0}updateAutoRegistration(){this.autoRegToggle.setDisabledState(!0),this.autoRegistrationEnabled?this.registrarManager.deleteGroupsFromAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1)):this.registrarManager.addGroupsToAutoRegistration([this.group.id]).subscribe(()=>{this.autoRegistrationEnabled=!this.autoRegistrationEnabled,this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Se=>{this.notificator.showSuccess(Se)}),this.autoRegToggle.setDisabledState(!1)},()=>this.autoRegToggle.setDisabledState(!1))}}return Ie.id="GroupSettingsApplicationFormComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(A.tk),C.Y36(I.uw),C.Y36(e.V6),C.Y36(P.sK),C.Y36(e.F5),C.Y36(m.F0),C.Y36(e.x4),C.Y36(A.H8),C.Y36(e.fb))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-group-settings-application-form"]],viewQuery:function(Se,Xe){if(1&Se&&C.Gf(Y,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Xe.autoRegToggle=Je.first)}},hostVars:2,hostBindings:function(Se,Xe){2&Se&&C.ekj("router-component",Xe.true)},decls:6,vars:6,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","class","mr-2","data-cy","save-application-form","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"d-flex","w-50"],[3,"ngClass"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["matTooltip","Embedded",1,"align-text-bottom"],["color","primary",3,"disabled","ngModel","change"],["autoRegToggle",""],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"],["alert_type","warn"],["data-cy","create-empty-form","mat-stroked-button","",3,"click",4,"ngIf"],["data-cy","create-empty-form","mat-stroked-button","",3,"click"]],template:function(Se,Xe){1&Se&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,q,1,0,"mat-spinner",1),C.YNc(4,W,15,16,"div",2),C.YNc(5,me,5,4,"div",2)),2&Se&&(C.xp6(1),C.hij(" ",C.lcZ(2,4,"GROUP_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.noApplicationForm),C.xp6(1),C.Q6J("ngIf",!Xe.loading&&Xe.noApplicationForm))},directives:[L.O5,O.$g,L.mk,G.Hw,ne.gM,ge.Rr,J.JJ,J.On,Me.lW,oe.d,Re.t,T.w,j.b],pipes:[P.X$],styles:[""]}),Ie})()},15592:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>W});var e=p(81889),b=p(20449),_=p(41656),w=p(9244),g=p(32105),A=p(64080),E=p(10036),C=p(87842),I=p(36908),m=(p(387),p(5e3)),L=p(48966),O=p(96214),G=p(69808),ne=p(47423),ge=p(29772),J=p(64901),Me=p(32368),oe=p(93075),Re=p(20773),T=p(58956),j=p(24179),Y=p(51062);const q=["tree"],te=["list"],ue=["toggle"];function de(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",10),m.NdJ("click",function(){return m.CHM(be),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"GROUP_DETAIL.SUBGROUPS.CREATE_GROUP")," "))}function Le(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(be),m.oxw().deleteGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&R){const be=m.oxw();m.Q6J("disabled",0===be.selected.selected.length||void 0!==be.tree&&!be.tree.removeAuth||void 0!==be.list&&!be.list.removeAuth),m.xp6(1),m.hij(" ",m.lcZ(2,2,"GROUP_DETAIL.SUBGROUPS.DELETE_GROUP")," ")}}function Ue(R,me){1&R&&m._UZ(0,"mat-spinner",12)}function ze(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).refreshTable()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("disableRouting",!be.routeAuth)("expandAll",be.filtering)("groups",be.groups)("hideCheckbox",!be.deleteAuth)("filterValue",be.filterValue)("selection",be.selected)}}const le=function(){return["select","id","name","description","menu"]},je=function(){return["id","name","description","menu"]};function ye(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).refreshTable()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("authType","group-subgroups")("disableMembers",!0)("disableRouting",!be.routeAuth)("displayedColumns",be.deleteAuth?m.DdM(8,le):m.DdM(9,je))("groups",be.groups)("selection",be.selected)("filter",be.filterValue)("tableId",be.tableId)}}function Be(R,me){if(1&R&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,ye,2,10,"perun-web-apps-groups-list",15),m.qZA()),2&R){const be=m.oxw();m.xp6(1),m.Q6J("ngIf",!be.showGroupList),m.xp6(1),m.Q6J("ngIf",be.showGroupList)}}let W=(()=>{class R{constructor(be,Ie,pe,Se){this.dialog=be,this.groupService=Ie,this.guiAuthResolver=pe,this.entityStorageService=Se,this.groups=[],this.selected=new b.Ov(!0,[]),this.showGroupList=!1,this.filtering=!1,this.tableId=E.bf,this.filterValue=""}onCreateGroup(){const be=(0,w.kZ)();be.width="450px",be.data={parentGroup:this.group,theme:"group-theme"},this.dialog.open(e.y,be).afterClosed().subscribe(pe=>{pe&&(this.loading=!0,this.refreshTable())})}ngOnInit(){"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree")}),this.group=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.createAuth=this.guiAuthResolver.isAuthorized("createGroup_Group_Group_policy",[this.group]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.group]),0!==this.groups.length&&(this.routeAuth=this.guiAuthResolver.isAuthorized("getGroupById_int_policy",[this.groups[0]]))}deleteGroup(){const be=(0,w.kZ)();be.width="450px",be.data={voId:this.group.id,groups:this.selected.selected,theme:"group-theme"},this.dialog.open(_.P,be).afterClosed().subscribe(pe=>{pe&&this.refreshTable()})}refreshTable(){this.loading=!0,this.groupService.getAllRichSubGroupsWithGroupAttributesByNames(this.group.id,[A.r.GROUP_DEF_MAIL_FOOTER,A.r.GROUP_SYNC_ENABLED,A.r.GROUP_LAST_SYNC_STATE,A.r.GROUP_LAST_SYNC_TIMESTAMP,A.r.GROUP_STRUCTURE_SYNC_ENABLED,A.r.GROUP_LAST_STRUCTURE_SYNC_STATE,A.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(be=>{this.groups=be,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(be){this.filterValue=be,this.filtering=""!==be}onMoveGroup(be){const Ie=(0,w.kZ)();Ie.width="550px",Ie.data={group:be,theme:"group-theme"},this.dialog.open(C.c,Ie).afterClosed().subscribe(Se=>{Se&&this.refreshTable()})}}return R.id="GroupSubgroupsComponent",R.\u0275fac=function(be){return new(be||R)(m.Y36(L.uw),m.Y36(g.ff),m.Y36(I.x4),m.Y36(I.fb))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-group-subgroups"]],viewQuery:function(be,Ie){if(1&be&&(m.Gf(q,5),m.Gf(te,5),m.Gf(ue,7)),2&be){let pe;m.iGM(pe=m.CRH())&&(Ie.tree=pe.first),m.iGM(pe=m.CRH())&&(Ie.list=pe.first),m.iGM(pe=m.CRH())&&(Ie.toggle=pe.first)}},hostVars:2,hostBindings:function(be,Ie){2&be&&m.ekj("router-component",Ie.true)},decls:19,vars:20,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2 action-button","color","accent","data-cy","new-subgroup-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","class","mr-2","data-cy","delete-group-button","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["color","accent","data-cy","new-subgroup-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable",4,"ngIf"],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable",4,"ngIf"],[3,"disableRouting","expandAll","groups","hideCheckbox","filterValue","selection","moveGroup","refreshTable"],["tree",""],[3,"authType","disableMembers","disableRouting","displayedColumns","groups","selection","filter","tableId","moveGroup","refreshTable"],["list",""]],template:function(be,Ie){if(1&be&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return Ie.refreshTable()}),m.qZA(),m.YNc(5,de,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.YNc(8,Le,3,4,"button",4),m.qZA(),m.TgZ(9,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(10,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.selected.clear()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"label"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.YNc(17,Ue,1,0,"mat-spinner",8),m.YNc(18,Be,3,2,"div",9),m.qZA()),2&be){const pe=m.MAs(11);m.xp6(2),m.Oqu(m.lcZ(3,12,"GROUP_DETAIL.SUBGROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,14,"GROUP_DETAIL.SUBGROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||void 0!==Ie.tree&&Ie.tree.removeAuth||void 0!==Ie.list&&Ie.list.removeAuth),m.xp6(2),m.Q6J("ngIf",Ie.deleteAuth),m.xp6(1),m.Q6J("placeholder","GROUP_DETAIL.SUBGROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(13,16,"GROUP_DETAIL.SUBGROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(16,18,"GROUP_DETAIL.SUBGROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading)}},directives:[O.t,G.O5,ne.lW,ge.gM,J.P,Me.Rr,oe.JJ,oe.On,Re.$g,T.I,j.W],pipes:[Y.X$],styles:[""]}),R})()},85243:($e,_e,p)=>{"use strict";p.d(_e,{j:()=>be});var e=p(32105),b=p(10036),_=p(20449),w=p(9244),g=p(48966),A=p(36908),E=p(64080),C=p(5e3),I=p(51062),P=p(69808),m=p(20773),L=p(7434),O=p(24179),G=p(47423);function ne(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",6)}function ge(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-immediate-filter",7),C.NdJ("filter",function(Je){return C.CHM(Se),C.oxw().applyFilter(Je)}),C.qZA()}2&Ie&&C.Q6J("placeholder","DIALOGS.ADD_MEMBER_GROUP.FILTER")}const J=function(){return["select","id","name","description"]};function Me(Ie,pe){if(1&Ie&&C._UZ(0,"perun-web-apps-groups-list",8),2&Ie){const Se=C.oxw();C.Q6J("disableGroups",!0)("disableMembers",!0)("displayedColumns",C.DdM(8,J))("filter",Se.filterValue)("groupsToDisableCheckbox",Se.membersGroups)("disableRouting",!0)("groups",Se.groups)("selection",Se.selection)}}function oe(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"div",9),C.TgZ(1,"button",10),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onCancel()}),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"button",11),C.NdJ("click",function(){return C.CHM(Se),C.oxw().onAdd()}),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.qZA()}if(2&Ie){const Se=C.oxw();C.xp6(2),C.hij(" ",C.lcZ(3,3,"DIALOGS.ADD_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",0===Se.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(6,5,"DIALOGS.ADD_MEMBER_GROUP.ADD")," ")}}let Re=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve,X,z){this.dialogRef=Se,this.data=Xe,this.groupManager=Je,this.memberManager=nt,this.notificator=Ve,this.translate=X,this.authResolver=z,this.loading=!1,this.groups=[],this.selection=new _.Ov(!0,[]),this.attrNames=[E.r.GROUP_SYNC_ENABLED,E.r.GROUP_LAST_SYNC_STATE,E.r.GROUP_LAST_SYNC_TIMESTAMP,E.r.GROUP_STRUCTURE_SYNC_ENABLED,E.r.GROUP_LAST_STRUCTURE_SYNC_STATE,E.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP],this.filterValue=""}ngOnInit(){this.theme=this.data.theme,this.membersGroups=this.data.membersGroups,this.loading=!0,this.memberManager.getMemberById(this.data.memberId).subscribe(Se=>{this.member=Se,this.groupManager.getAllRichGroupsWithAttributesByNames(this.member.voId,this.attrNames).subscribe(Xe=>{this.groups=Xe.filter(Je=>this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je])),this.loading=!1},()=>this.loading=!1)})}onAdd(){const Se=this.selection.selected.map(Xe=>Xe.id);this.loading=!0,this.groupManager.addMember(Se,this.member.id).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ADD_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}applyFilter(Se){this.filterValue=Se}}return Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(e.uq),C.Y36(A.V6),C.Y36(I.sK),C.Y36(A.x4))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-add-member-group-dialog"]],decls:9,vars:10,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter",4,"ngIf"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"mr-auto","ml-auto"],[3,"placeholder","filter"],[3,"disableGroups","disableMembers","displayedColumns","filter","groupsToDisableCheckbox","disableRouting","groups","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(Se,Xe){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,ne,1,0,"mat-spinner",1),C.TgZ(5,"div",2),C.YNc(6,ge,1,1,"perun-web-apps-immediate-filter",3),C.YNc(7,Me,1,9,"perun-web-apps-groups-list",4),C.qZA(),C.YNc(8,oe,7,7,"div",5),C.qZA()),2&Se&&(C.Tol(Xe.theme),C.xp6(2),C.Oqu(C.lcZ(3,8,"DIALOGS.ADD_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(2),C.Q6J("ngIf",!Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading))},directives:[g.uh,P.O5,m.$g,g.xY,L.L,O.W,g.H8,G.lW],pipes:[I.X$],styles:[""]}),Ie})();var T=p(32075);function j(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",6)}function Y(Ie,pe){1&Ie&&C._UZ(0,"th",15)}function q(Ie,pe){if(1&Ie&&(C.TgZ(0,"td",16),C._uU(1),C.qZA()),2&Ie){const Se=pe.$implicit;C.xp6(1),C.Oqu(Se.name)}}function te(Ie,pe){1&Ie&&C._UZ(0,"tr",17)}function ue(Ie,pe){1&Ie&&C._UZ(0,"tr",18)}function de(Ie,pe){if(1&Ie&&(C.TgZ(0,"div",7),C.TgZ(1,"p"),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.TgZ(4,"div",8),C._uU(5),C.ALo(6,"translate"),C.qZA(),C.TgZ(7,"table",9),C.ynx(8,10),C.YNc(9,Y,1,0,"th",11),C.YNc(10,q,2,1,"td",12),C.BQk(),C.YNc(11,te,1,0,"tr",13),C.YNc(12,ue,1,0,"tr",14),C.qZA(),C.qZA()),2&Ie){const Se=C.oxw();C.xp6(2),C.Oqu(C.lcZ(3,5,"DIALOGS.REMOVE_MEMBER_GROUP.DESCRIPTION")),C.xp6(3),C.hij(" ",C.lcZ(6,7,"DIALOGS.REMOVE_MEMBER_GROUP.ASK")," "),C.xp6(2),C.Q6J("dataSource",Se.dataSource),C.xp6(4),C.Q6J("matHeaderRowDef",Se.displayedColumns),C.xp6(1),C.Q6J("matRowDefColumns",Se.displayedColumns)}}let Le=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve){this.dialogRef=Se,this.data=Xe,this.groupManager=Je,this.notificator=nt,this.translate=Ve,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new T.by(this.data.groups)}onRemove(){this.loading=!0;const Se=this.dataSource.data.map(Xe=>Xe.id);this.groupManager.removeMember(Se,this.data.memberId).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_MEMBER_GROUP.SUCCESS")),this.dialogRef.close(!0)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}}return Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(g.so),C.Y36(g.WI),C.Y36(e.ff),C.Y36(A.V6),C.Y36(I.sK))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-remove-member-group-dialog"]],decls:13,vars:15,consts:[["mat-dialog-title",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(Se,Xe){1&Se&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,j,1,0,"mat-spinner",1),C.YNc(5,de,13,9,"div",2),C.TgZ(6,"div",3),C.TgZ(7,"button",4),C.NdJ("click",function(){return Xe.onCancel()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.TgZ(10,"button",5),C.NdJ("click",function(){return Xe.onRemove()}),C._uU(11),C.ALo(12,"translate"),C.qZA(),C.qZA(),C.qZA()),2&Se&&(C.Tol(Xe.theme),C.xp6(2),C.Oqu(C.lcZ(3,9,"DIALOGS.REMOVE_MEMBER_GROUP.TITLE")),C.xp6(2),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading),C.xp6(3),C.hij(" ",C.lcZ(9,11,"DIALOGS.REMOVE_MEMBER_GROUP.CANCEL")," "),C.xp6(2),C.Q6J("disabled",Xe.loading),C.xp6(1),C.hij(" ",C.lcZ(12,13,"DIALOGS.REMOVE_MEMBER_GROUP.REMOVE")," "))},directives:[g.uh,P.O5,m.$g,g.xY,T.BZ,T.w1,T.fO,T.ge,T.Dz,T.ev,T.as,T.XQ,T.nj,T.Gk,g.H8,G.lW],pipes:[I.X$],styles:[""]}),Ie})();p(387);var ze=p(11735),le=p(96214),je=p(29772);const ye=["list"];function Be(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"button",8),C.NdJ("click",function(){return C.CHM(Se),C.oxw().addGroup()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ie&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"MEMBER_DETAIL.GROUPS.ADD"),"\n"))}function W(Ie,pe){1&Ie&&C._UZ(0,"mat-spinner",9)}const R=function(){return["select","id","vo","name","description","expiration"]};function me(Ie,pe){if(1&Ie){const Se=C.EpF();C.TgZ(0,"perun-web-apps-groups-list",10,11),C.NdJ("refreshTable",function(){return C.CHM(Se),C.oxw().refreshTable()}),C.qZA()}if(2&Ie){const Se=C.oxw();C.Q6J("displayedColumns",C.DdM(9,R))("authType","member-groups")("filter",Se.filterValue)("memberId",Se.memberId)("disableRouting",!Se.routeAuth)("groups",Se.groups)("memberGroupStatus",Se.member.groupStatus)("selection",Se.selection)("tableId",Se.tableId)}}let be=(()=>{class Ie{constructor(Se,Xe,Je,nt,Ve){this.groupsService=Se,this.route=Xe,this.dialog=Je,this.authResolver=nt,this.memberService=Ve,this.filterValue="",this.tableId=b.W1,this.selection=new _.Ov(!0,[])}ngOnInit(){this.loading=!0,this.route.parent.params.subscribe(Se=>{this.memberId=Number(Se.memberId),this.memberService.getMemberById(this.memberId).subscribe(Xe=>{this.member=Xe,this.groupsService.getAllGroups(this.member.voId).subscribe(Je=>{this.allGroups=Je,this.refreshTable()})})})}refreshTable(){this.loading=!0,this.groupsService.getMemberRichGroupsWithAttributesByNames(this.memberId,["urn:perun:member_group:attribute-def:def:groupMembershipExpiration"]).subscribe(Se=>{this.selection.clear(),this.groups=Se,this.setAuthRights(),this.loading=!1},()=>this.loading=!1)}setAuthRights(){const Se={id:this.member.voId,beanName:"Vo"};this.addAuth=this.allGroups.reduce((Xe,Je)=>Xe||this.authResolver.isAuthorized("addMember_Group_Member_policy",[Je]),!1),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[Se,this.groups[0]]))}addGroup(){const Se=(0,w.kZ)();Se.width="850px",Se.data={memberId:this.memberId,membersGroups:new Set(this.groups.map(Je=>Je.id)),theme:"member-theme"},this.dialog.open(Re,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}removeGroup(){const Se=(0,w.kZ)();Se.width="650px",Se.data={memberId:this.memberId,groups:this.selection.selected,theme:"member-theme"},this.dialog.open(Le,Se).afterClosed().subscribe(Je=>{Je&&this.refreshTable()})}applyFilter(Se){this.filterValue=Se}}return Ie.id="MemberGroupsComponent",Ie.\u0275fac=function(Se){return new(Se||Ie)(C.Y36(e.ff),C.Y36(ze.gz),C.Y36(g.uw),C.Y36(A.x4),C.Y36(e.uq))},Ie.\u0275cmp=C.Xpm({type:Ie,selectors:[["app-member-groups"]],viewQuery:function(Se,Xe){if(1&Se&&C.Gf(ye,5),2&Se){let Je;C.iGM(Je=C.CRH())&&(Xe.list=Je.first)}},hostVars:2,hostBindings:function(Se,Xe){2&Se&&C.ekj("router-component",Xe.true)},decls:13,vars:15,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["class","mr-auto ml-auto",4,"ngIf"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"mr-auto","ml-auto"],[3,"displayedColumns","authType","filter","memberId","disableRouting","groups","memberGroupStatus","selection","tableId","refreshTable"],["list",""]],template:function(Se,Xe){1&Se&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.TgZ(3,"perun-web-apps-refresh-button",1),C.NdJ("refresh",function(){return Xe.refreshTable()}),C.qZA(),C.YNc(4,Be,3,3,"button",2),C.TgZ(5,"span",3),C.ALo(6,"translate"),C.TgZ(7,"button",4),C.NdJ("click",function(){return Xe.removeGroup()}),C._uU(8),C.ALo(9,"translate"),C.qZA(),C.qZA(),C.TgZ(10,"perun-web-apps-immediate-filter",5),C.NdJ("filter",function(nt){return Xe.applyFilter(nt)}),C.qZA(),C.YNc(11,W,1,0,"mat-spinner",6),C.YNc(12,me,2,10,"perun-web-apps-groups-list",7)),2&Se&&(C.xp6(1),C.Oqu(C.lcZ(2,9,"MEMBER_DETAIL.GROUPS.TITLE")),C.xp6(3),C.Q6J("ngIf",Xe.addAuth),C.xp6(1),C.s9C("matTooltip",C.lcZ(6,11,"MEMBER_DETAIL.GROUPS.REMOVE_PERMISSION_HINT")),C.Q6J("matTooltipDisabled",void 0===Xe.list||void 0!==Xe.list&&Xe.list.removeAuth),C.xp6(2),C.Q6J("disabled",0===Xe.selection.selected.length||void 0!==Xe.list&&!Xe.list.removeAuth),C.xp6(1),C.hij(" ",C.lcZ(9,13,"MEMBER_DETAIL.GROUPS.REMOVE")," "),C.xp6(2),C.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),C.xp6(1),C.Q6J("ngIf",Xe.loading),C.xp6(1),C.Q6J("ngIf",!Xe.loading))},directives:[le.t,P.O5,G.lW,je.gM,L.L,m.$g,O.W],pipes:[I.X$],styles:[""]}),Ie})()},94856:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>oe});var e=p(32105),b=p(10036),_=p(93075),w=p(69808),g=p(36908),A=p(5e3),E=p(96214),C=p(47423),I=p(67322),P=p(74107),m=p(90508),L=p(64901),O=p(39798),G=p(77446),ne=p(9146),ge=p(51062);function J(Re,T){if(1&Re){const j=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(j),A.oxw().showDetails(!0)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Re&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_ALL_DETAILS")," "))}function Me(Re,T){if(1&Re){const j=A.EpF();A.TgZ(0,"button",15),A.NdJ("click",function(){return A.CHM(j),A.oxw().showDetails(!1)}),A._uU(1),A.ALo(2,"translate"),A.qZA()}2&Re&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"VO_DETAIL.APPLICATION.SHOW_LESS_DETAILS")," "))}let oe=(()=>{class Re{constructor(j,Y){this.registrarManager=j,this.entityStorageService=Y,this.state="pending",this.currentStates=["NEW","VERIFIED"],this.simpleColumns=["id","createdAt","type","state","createdBy","groupName","modifiedBy"],this.detailedColumns=["id","createdAt","voId","voName","groupId","groupName","type","state","extSourceName","extSourceType","user","createdBy","modifiedBy","modifiedAt","fedInfo"],this.currentColumns=[],this.filterValue="",this.showAllDetails=!1,this.detailTableId=b.Jf,this.tableId=b.Hi,this.showGroupApps=!1,this.refresh=!1}ngOnInit(){this.vo=this.entityStorageService.getEntity(),this.startDate=new _.NI((0,w.p6)(this.yearAgo(),"yyyy-MM-dd","en-GB")),this.endDate=new _.NI((0,w.p6)(new Date,"yyyy-MM-dd","en-GB")),this.currentColumns=this.refreshColumns()}select(){switch(this.state){case"approved":this.currentStates=["APPROVED"];break;case"rejected":this.currentStates=["REJECTED"];break;case"wfmv":this.currentStates=["NEW"];break;case"submited":this.currentStates=["VERIFIED"];break;case"pending":this.currentStates=["NEW","VERIFIED"];break;case"all":this.currentStates=null}}yearAgo(){const j=new Date;return j.setDate(j.getDate()-365),j}showGroupApplications(j){this.showGroupApps=j.checked,this.currentColumns=this.refreshColumns()}showDetails(j){this.showAllDetails=j,this.currentColumns=this.refreshColumns()}applyFilter(j){this.filterValue=j}refreshColumns(){return this.showAllDetails?this.showGroupApps?this.detailedColumns:this.detailedColumns.filter(j=>"groupName"!==j&&"groupId"!==j):this.showGroupApps?this.simpleColumns:this.simpleColumns.filter(j=>"groupName"!==j)}}return Re.id="VoApplicationsComponent",Re.\u0275fac=function(j){return new(j||Re)(A.Y36(e.tk),A.Y36(g.fb))},Re.\u0275cmp=A.Xpm({type:Re,selectors:[["app-vo-applications"]],hostVars:2,hostBindings:function(j,Y){2&j&&A.ekj("router-component",Y.true)},decls:38,vars:43,consts:[[1,"page-subtitle"],[3,"refresh"],["mat-stroked-button","","class","mr-2",3,"click",4,"ngIf"],[1,"input-width-250","mr-2"],["disableOptionCentering","",3,"value","selectionChange","valueChange"],["value","all"],["value","wfmv"],["value","submited"],["value","pending"],["value","approved"],["value","rejected"],[3,"placeholder","filter"],[3,"endDate","startDate","datePicker"],["color","primary",3,"checked","change"],[3,"tableId","searchString","displayedColumns","states","dateFrom","dateTo","includeGroupApps","refreshTable","vo"],["mat-stroked-button","",1,"mr-2",3,"click"]],template:function(j,Y){1&j&&(A.TgZ(0,"h1",0),A._uU(1),A.ALo(2,"translate"),A.qZA(),A.TgZ(3,"div"),A.TgZ(4,"perun-web-apps-refresh-button",1),A.NdJ("refresh",function(){return Y.refresh=!Y.refresh}),A.qZA(),A.YNc(5,J,3,3,"button",2),A.YNc(6,Me,3,3,"button",2),A.TgZ(7,"mat-form-field",3),A.TgZ(8,"mat-label"),A._uU(9),A.ALo(10,"translate"),A.qZA(),A.TgZ(11,"mat-select",4),A.NdJ("selectionChange",function(){return Y.select()})("valueChange",function(te){return Y.state=te}),A.TgZ(12,"mat-option",5),A._uU(13),A.ALo(14,"translate"),A.qZA(),A.TgZ(15,"mat-option",6),A._uU(16),A.ALo(17,"translate"),A.qZA(),A.TgZ(18,"mat-option",7),A._uU(19),A.ALo(20,"translate"),A.qZA(),A.TgZ(21,"mat-option",8),A._uU(22),A.ALo(23,"translate"),A.qZA(),A.TgZ(24,"mat-option",9),A._uU(25),A.ALo(26,"translate"),A.qZA(),A.TgZ(27,"mat-option",10),A._uU(28),A.ALo(29,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(30,"perun-web-apps-debounce-filter",11),A.NdJ("filter",function(te){return Y.applyFilter(te)}),A.qZA(),A.TgZ(31,"perun-web-apps-date-range",12),A.NdJ("datePicker",function(){return Y.select()}),A.qZA(),A.TgZ(32,"div"),A.TgZ(33,"mat-checkbox",13),A.NdJ("change",function(te){return Y.showGroupApplications(te)}),A._uU(34),A.ALo(35,"translate"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(36,"div"),A._UZ(37,"app-applications-dynamic-list",14),A.qZA()),2&j&&(A.xp6(1),A.Oqu(A.lcZ(2,25,"VO_DETAIL.APPLICATION.TITLE")),A.xp6(4),A.Q6J("ngIf",!Y.showAllDetails),A.xp6(1),A.Q6J("ngIf",Y.showAllDetails),A.xp6(3),A.Oqu(A.lcZ(10,27,"APPLICATIONS_LIST.STATE")),A.xp6(2),A.Q6J("value",Y.state),A.xp6(2),A.Oqu(A.lcZ(14,29,"VO_DETAIL.APPLICATION.SELECTION_ALL")),A.xp6(3),A.Oqu(A.lcZ(17,31,"VO_DETAIL.APPLICATION.SELECTION_WFMV")),A.xp6(3),A.Oqu(A.lcZ(20,33,"VO_DETAIL.APPLICATION.SELECTION_SUBMITTED")),A.xp6(3),A.Oqu(A.lcZ(23,35,"VO_DETAIL.APPLICATION.SELECTION_PENDING")),A.xp6(3),A.Oqu(A.lcZ(26,37,"VO_DETAIL.APPLICATION.SELECTION_APPROVED")),A.xp6(3),A.Oqu(A.lcZ(29,39,"VO_DETAIL.APPLICATION.SELECTION_REJECTED")),A.xp6(2),A.Q6J("placeholder","VO_DETAIL.APPLICATION.FILTER"),A.xp6(1),A.Q6J("endDate",Y.endDate)("startDate",Y.startDate),A.xp6(2),A.Q6J("checked",Y.showGroupApps),A.xp6(1),A.hij(" ",A.lcZ(35,41,"VO_DETAIL.APPLICATION.SHOW_GROUP_APPLICATIONS")," "),A.xp6(3),A.Q6J("tableId",Y.showAllDetails?Y.detailTableId:Y.tableId)("searchString",Y.filterValue)("displayedColumns",Y.currentColumns)("states",Y.currentStates)("dateFrom",Y.startDate.value)("dateTo",Y.endDate.value)("includeGroupApps",Y.showGroupApps)("refreshTable",Y.refresh)("vo",Y.vo))},directives:[E.t,w.O5,C.lW,I.KE,I.hX,P.gD,m.ey,L.P,O.S,G.oG,ne.S],pipes:[ge.X$],styles:[""]}),Re})()},4732:($e,_e,p)=>{"use strict";p.d(_e,{G:()=>W});var e=p(81889),b=p(41656),_=p(20449),w=p(87842),g=p(9244),A=p(32105),E=p(10036),C=p(64080),I=p(36908),m=(p(387),p(5e3)),L=p(48966),O=p(96214),G=p(69808),ne=p(47423),ge=p(29772),J=p(64901),Me=p(32368),oe=p(93075),Re=p(20773),T=p(58956),j=p(24179),Y=p(98380),q=p(51062);const te=["toggle"],ue=["tree"],de=["list"];function Le(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(be),m.oxw().onCreateGroup()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.CREATE_GROUP")," "))}function Ue(R,me){1&R&&m._UZ(0,"mat-spinner",12)}function ze(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-tree",16,17),m.NdJ("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)})("refreshTable",function(){return m.CHM(be),m.oxw(2).loadAllGroups()}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("expandAll",be.filtering)("disableRouting",!be.routeAuth)("groups",be.groups)("selection",be.selected)("filterValue",be.filterValue)("vo",be.vo)}}const le=function(){return["select","id","name","description","menu"]};function je(R,me){if(1&R){const be=m.EpF();m.TgZ(0,"perun-web-apps-groups-list",18,19),m.NdJ("refreshTable",function(){return m.CHM(be),m.oxw(2).loadAllGroups()})("moveGroup",function(pe){return m.CHM(be),m.oxw(2).onMoveGroup(pe)}),m.qZA()}if(2&R){const be=m.oxw(2);m.Q6J("authType","vo-groups")("disableMembers",!0)("displayedColumns",m.DdM(8,le))("disableRouting",!be.routeAuth)("groups",be.groups)("selection",be.selected)("filter",be.filterValue)("tableId",be.tableId)}}function ye(R,me){if(1&R&&(m.TgZ(0,"div",13),m.YNc(1,ze,2,6,"perun-web-apps-groups-tree",14),m.YNc(2,je,2,9,"perun-web-apps-groups-list",15),m.qZA()),2&R){const be=m.oxw();m.xp6(1),m.Q6J("ngIf",!be.showGroupList),m.xp6(1),m.Q6J("ngIf",be.showGroupList)}}function Be(R,me){1&R&&(m.TgZ(0,"perun-web-apps-alert",20),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&R&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.GROUPS.NO_GROUPS")," "))}let W=(()=>{class R{constructor(be,Ie,pe,Se){this.dialog=be,this.groupService=Ie,this.authResolver=pe,this.entityStorageService=Se,this.groups=[],this.showGroupList=!1,this.selected=new _.Ov(!0,[]),this.filtering=!1,this.filterValue="",this.tableId=E.rc}onCreateGroup(){const be=(0,g.kZ)();be.width="450px",be.data={voId:this.vo.id,parentGroup:null,theme:"vo-theme"},this.dialog.open(e.y,be).afterClosed().subscribe(pe=>{pe&&(this.loading=!0,this.loadAllGroups())})}ngOnInit(){this.loading=!0,"list"===localStorage.getItem("preferedValue")&&(this.toggle.toggle(),this.selected.clear(),this.showGroupList=!0),this.toggle.change.subscribe(()=>{localStorage.setItem("preferedValue",this.toggle.checked?"list":"tree"),this.loadAllGroups()}),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.loadAllGroups()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createGroup_Vo_Group_policy",[this.vo]),0!==this.groups.length&&(this.routeAuth=this.authResolver.isAuthorized("getGroupById_int_policy",[this.vo,this.groups[0]]))}disableRemove(){return void 0!==this.tree&&!this.tree.removeAuth||void 0!==this.list&&!this.list.removeAuth}disableTooltip(){var be,Ie;return(null===(be=this.tree)||void 0===be?void 0:be.removeAuth)||(null===(Ie=this.list)||void 0===Ie?void 0:Ie.removeAuth)}deleteGroup(){const be=(0,g.kZ)();be.width="450px",be.data={voId:this.vo.id,groups:this.selected.selected,theme:"vo-theme"},this.dialog.open(b.P,be).afterClosed().subscribe(pe=>{pe&&this.loadAllGroups()})}removeAllGroups(){this.selected.clear()}onMoveGroup(be){const Ie=(0,g.kZ)();Ie.width="550px",Ie.data={group:be,theme:"vo-theme"},this.dialog.open(w.c,Ie).afterClosed().subscribe(Se=>{Se&&this.loadAllGroups()})}loadAllGroups(){this.loading=!0,this.groupService.getAllRichGroupsWithAttributesByNames(this.vo.id,[C.r.GROUP_SYNC_ENABLED,C.r.GROUP_LAST_SYNC_STATE,C.r.GROUP_LAST_SYNC_TIMESTAMP,C.r.GROUP_STRUCTURE_SYNC_ENABLED,C.r.GROUP_LAST_STRUCTURE_SYNC_STATE,C.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(be=>{this.groups=be,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(be){this.filterValue=be,this.filtering=""!==be}}return R.id="VoGroupsComponent",R.\u0275fac=function(be){return new(be||R)(m.Y36(L.uw),m.Y36(A.ff),m.Y36(I.x4),m.Y36(I.fb))},R.\u0275cmp=m.Xpm({type:R,selectors:[["app-vo-groups"]],viewQuery:function(be,Ie){if(1&be&&(m.Gf(te,7),m.Gf(ue,5),m.Gf(de,5)),2&be){let pe;m.iGM(pe=m.CRH())&&(Ie.toggle=pe.first),m.iGM(pe=m.CRH())&&(Ie.tree=pe.first),m.iGM(pe=m.CRH())&&(Ie.list=pe.first)}},hostVars:2,hostBindings:function(be,Ie){2&be&&m.ekj("router-component",Ie.true)},decls:22,vars:24,consts:[[1,"page-subtitle"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","create-group-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"matTooltipDisabled","matTooltip"],["color","warn","data-cy","delete-group-button","mat-flat-button","",1,"mr-2",3,"disabled","click"],[3,"placeholder","filter"],["color","primary","labelPosition","before",1,"mr-1",3,"ngModel","change","ngModelChange"],["toggle",""],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3",4,"ngIf"],["alert_type","warn",4,"ngIf"],["color","accent","data-cy","create-group-button","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[1,"mt-3"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable",4,"ngIf"],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup",4,"ngIf"],["theme","vo-theme",3,"expandAll","disableRouting","groups","selection","filterValue","vo","moveGroup","refreshTable"],["tree",""],["theme","vo-theme",3,"authType","disableMembers","displayedColumns","disableRouting","groups","selection","filter","tableId","refreshTable","moveGroup"],["list",""],["alert_type","warn"]],template:function(be,Ie){if(1&be&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return Ie.loadAllGroups()}),m.qZA(),m.YNc(5,Le,3,3,"button",2),m.TgZ(6,"span",3),m.ALo(7,"translate"),m.TgZ(8,"button",4),m.NdJ("click",function(){return Ie.deleteGroup()}),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.qZA(),m.TgZ(11,"perun-web-apps-debounce-filter",5),m.NdJ("filter",function(Se){return Ie.applyFilter(Se)}),m.qZA(),m.TgZ(12,"mat-slide-toggle",6,7),m.NdJ("change",function(){return Ie.removeAllGroups()})("ngModelChange",function(Se){return Ie.showGroupList=Se}),m._uU(14),m.ALo(15,"translate"),m.qZA(),m.TgZ(16,"label"),m._uU(17),m.ALo(18,"translate"),m.qZA(),m.YNc(19,Ue,1,0,"mat-spinner",8),m.YNc(20,ye,3,2,"div",9),m.YNc(21,Be,3,3,"perun-web-apps-alert",10),m.qZA()),2&be){const pe=m.MAs(13);m.xp6(2),m.Oqu(m.lcZ(3,14,"VO_DETAIL.GROUPS.TITLE")),m.xp6(3),m.Q6J("ngIf",Ie.createAuth),m.xp6(1),m.s9C("matTooltip",m.lcZ(7,16,"VO_DETAIL.GROUPS.DELETE_PERMISSION_HINT")),m.Q6J("matTooltipDisabled",void 0===Ie.tree&&void 0===Ie.list||Ie.disableTooltip()),m.xp6(2),m.Q6J("disabled",0===Ie.selected.selected.length||Ie.disableRemove()),m.xp6(1),m.hij(" ",m.lcZ(10,18,"VO_DETAIL.GROUPS.DELETE_GROUP")," "),m.xp6(2),m.Q6J("placeholder","VO_DETAIL.GROUPS.FILTER"),m.xp6(1),m.Q6J("ngModel",Ie.showGroupList),m.xp6(2),m.Oqu(m.lcZ(15,20,"VO_DETAIL.GROUPS.TREE_VIEW")),m.xp6(2),m.uIk("for",pe.inputId),m.xp6(1),m.Oqu(m.lcZ(18,22,"VO_DETAIL.GROUPS.LIST_VIEW")),m.xp6(2),m.Q6J("ngIf",Ie.loading),m.xp6(1),m.Q6J("ngIf",!Ie.loading&&0!==Ie.groups.length),m.xp6(1),m.Q6J("ngIf",0===Ie.groups.length&&!Ie.loading)}},directives:[O.t,G.O5,ne.lW,ge.gM,J.P,Me.Rr,oe.JJ,oe.On,Re.$g,T.I,j.W,Y.w],pipes:[q.X$],styles:[""]}),R})()},81847:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>le});var e=p(20449),b=p(36908),_=p(53455),w=p(32105),g=p(64080),A=p(93075),E=p(10036),C=p(9244),I=p(74414),P=p(51525),m=p(5e3),L=p(48966),O=p(96214),G=p(29772),ne=p(69808),ge=p(47423),J=p(67322),Me=p(74107),oe=p(90508),Re=p(64901),T=p(20773),j=p(1903),Y=p(51062),q=p(20551);function te(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",14),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onAddMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&je){const Be=m.oxw();m.Q6J("disabled",Be.blockManualMemberAdding),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.ADD_MEMBER")," ")}}function ue(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",15),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onInviteMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&je&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.MEMBERS.INVITE")," "))}function de(je,ye){if(1&je){const Be=m.EpF();m.TgZ(0,"button",16),m.NdJ("click",function(){return m.CHM(Be),m.oxw().onRemoveMembers()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&je){const Be=m.oxw();m.Q6J("disabled",Be.selection.isEmpty()),m.xp6(1),m.hij(" ",m.lcZ(2,2,"VO_DETAIL.MEMBERS.REMOVE_MEMBERS")," ")}}function Le(je,ye){if(1&je&&(m.TgZ(0,"mat-option",17),m._uU(1),m.ALo(2,"memberStatus"),m.qZA()),2&je){const Be=ye.$implicit;m.Q6J("value",Be),m.xp6(1),m.Oqu(m.lcZ(2,2,Be))}}function Ue(je,ye){1&je&&m._UZ(0,"mat-spinner",18)}function ze(je,ye){if(1&je&&m._UZ(0,"perun-web-apps-members-dynamic-list",19),2&je){const Be=m.oxw();m.Q6J("attrNames",Be.attrNames)("selection",Be.selection)("tableId",Be.tableId)("displayedColumns",Be.displayedColumns)("updateTable",Be.updateTable)("searchString",Be.searchString)("selectedStatuses",Be.selectedStatuses)("voId",Be.vo.id)}}let le=(()=>{class je{constructor(Be,W,R,me,be,Ie,pe){this.notificator=Be,this.dialog=W,this.authzService=R,this.storeService=me,this.attributesManager=be,this.apiRequest=Ie,this.entityStorageService=pe,this.members=null,this.selection=new e.Ov(!0,[]),this.loading=!1,this.attrNames=[g.r.MEMBER_DEF_ORGANIZATION,g.r.MEMBER_DEF_MAIL,g.r.USER_DEF_ORGANIZATION,g.r.USER_DEF_PREFERRED_MAIL,g.r.MEMBER_DEF_EXPIRATION,g.r.MEMBER_LIFECYCLE_ALTERABLE],this.statuses=new A.NI,this.statusList=["VALID","INVALID","EXPIRED","DISABLED"],this.selectedStatuses=[],this.tableId=E.j1,this.displayedColumns=["checkbox","id","fullName","status","organization","email","logins"],this.updateTable=!1}ngOnInit(){this.loading=!0,this.statuses.setValue(this.selectedStatuses),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.isManualAddingBlocked(this.vo.id).then(()=>this.loading=!1)}setAuthRights(){this.addAuth=this.authzService.isAuthorized("createMember_Vo_User_List_policy",[this.vo])&&this.authzService.isAuthorized("createMember_Vo_Candidate_List_policy",[this.vo]),this.removeAuth=this.authzService.isAuthorized("deleteMembers_List_policy",[this.vo]),this.displayedColumns=this.removeAuth?this.displayedColumns:["id","fullName","status","organization","email","logins"],null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0]])),this.inviteAuth=this.authzService.isAuthorized("vo-sendInvitation_Vo_Group_String_String_String_policy",[this.vo])}onSearchByString(Be){this.searchString=Be,this.selection.clear()}onAddMember(){const Be=(0,C.kZ)();Be.width="1000px",Be.data={voId:this.vo.id},this.dialog.open(P.H,Be).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onRemoveMembers(){const Be=(0,C.kZ)();Be.width="450px",Be.data={members:this.selection.selected,theme:"vo-theme"},this.dialog.open(_.X,Be).afterClosed().subscribe(R=>{R&&(this.updateTable=!this.updateTable,this.selection.clear())})}onInviteMember(){const Be=(0,C.kZ)();Be.width="650px",Be.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(I.R,Be)}displaySelectedStatuses(){if(this.selectedStatuses.length===this.statusList.length)return"ALL";const Be=this.statuses.value;return Be?`${Be[0]} ${Be.length>1?"(+"+(Be.length-1).toString()+" "+(2===Be.length?"other)":"others)"):""}`:""}isManualAddingBlocked(Be){return new Promise(W=>{this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getVoAttributeByName(Be,"urn:perun:vo:attribute-def:def:blockManualMemberAdding").subscribe(R=>{this.blockManualMemberAdding=null!==R.value,W()},R=>{const me=R.error;"PrivilegeException"!==me.name&&this.notificator.showError(me.name),W()})})}changeStatuses(){this.selection.clear(),this.selectedStatuses=this.statuses.value}refreshTable(){this.selection.clear(),this.updateTable=!this.updateTable}}return je.id="VoMembersComponent",je.\u0275fac=function(Be){return new(Be||je)(m.Y36(b.V6),m.Y36(L.uw),m.Y36(b.x4),m.Y36(b.d6),m.Y36(w.H8),m.Y36(b.F5),m.Y36(b.fb))},je.\u0275cmp=m.Xpm({type:je,selectors:[["app-vo-members"]],hostVars:2,hostBindings:function(Be,W){2&Be&&m.ekj("router-component",W.true)},decls:23,vars:21,consts:[[1,"vo-theme"],[1,"page-subtitle"],[1,"align-elements"],[3,"click"],[3,"matTooltipDisabled","matTooltip"],["color","accent","class","mr-2 action-button","data-cy","add-members","mat-flat-button","",3,"disabled","click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],["color","warn","data-cy","remove-members","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],[1,"mr-2","fix-select"],["multiple","",3,"formControl","closed"],["class","vo-theme",3,"value",4,"ngFor","ngForOf"],[1,"mt-2","search-field",3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId",4,"ngIf"],["color","accent","data-cy","add-members","mat-flat-button","",1,"mr-2","action-button",3,"disabled","click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","data-cy","remove-members","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"vo-theme",3,"value"],[1,"ml-auto","mr-auto"],[3,"attrNames","selection","tableId","displayedColumns","updateTable","searchString","selectedStatuses","voId"]],template:function(Be,W){1&Be&&(m.TgZ(0,"div",0),m.TgZ(1,"h1",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",2),m.TgZ(5,"perun-web-apps-refresh-button",3),m.NdJ("click",function(){return W.refreshTable()}),m.qZA(),m.TgZ(6,"div",4),m.ALo(7,"translate"),m.YNc(8,te,3,4,"button",5),m.qZA(),m.YNc(9,ue,3,3,"button",6),m.YNc(10,de,3,4,"button",7),m.TgZ(11,"mat-form-field",8),m.TgZ(12,"mat-label"),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.TgZ(15,"mat-select",9),m.NdJ("closed",function(){return W.changeStatuses()}),m.TgZ(16,"mat-select-trigger"),m._uU(17),m.ALo(18,"memberStatus"),m.qZA(),m.YNc(19,Le,3,4,"mat-option",10),m.qZA(),m.qZA(),m.TgZ(20,"perun-web-apps-debounce-filter",11),m.NdJ("filter",function(me){return W.onSearchByString(me)}),m.qZA(),m.qZA(),m.YNc(21,Ue,1,0,"mat-spinner",12),m.YNc(22,ze,1,8,"perun-web-apps-members-dynamic-list",13),m.qZA()),2&Be&&(m.xp6(2),m.Oqu(m.lcZ(3,13,"VO_DETAIL.MEMBERS.TITLE")),m.xp6(4),m.s9C("matTooltip",m.lcZ(7,15,"VO_DETAIL.MEMBERS.ADD_MEMBER_DISABLED")),m.Q6J("matTooltipDisabled",!W.blockManualMemberAdding),m.xp6(2),m.Q6J("ngIf",W.addAuth),m.xp6(1),m.Q6J("ngIf",W.inviteAuth),m.xp6(1),m.Q6J("ngIf",W.removeAuth),m.xp6(3),m.Oqu(m.lcZ(14,17,"VO_DETAIL.MEMBERS.FILTER_STATUS")),m.xp6(2),m.Q6J("formControl",W.statuses),m.xp6(2),m.hij(" ",m.lcZ(18,19,W.displaySelectedStatuses())," "),m.xp6(2),m.Q6J("ngForOf",W.statusList),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.MEMBERS.SEARCH_DESCRIPTION"),m.xp6(1),m.Q6J("ngIf",W.loading),m.xp6(1),m.Q6J("ngIf",!W.loading))},directives:[O.t,G.gM,ne.O5,ge.lW,J.KE,J.hX,Me.gD,A.JJ,A.oH,Me.$L,ne.sg,oe.ey,Re.P,T.$g,j.m],pipes:[Y.X$,q.l],styles:[".search-field[_ngcontent-%COMP%]{width:325px}.align-elements[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.fix-select[_ngcontent-%COMP%]{margin-top:8px}"]}),je})()},68056:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>oe});var e=p(20449),b=p(32105),_=p(533),w=p(10036),g=p(9244),A=p(36908),E=p(5e3),C=p(48966),I=p(96214),P=p(69808),m=p(47423),L=p(7434),O=p(20773),G=p(62109),ne=p(51062);function ge(Re,T){if(1&Re){const j=E.EpF();E.TgZ(0,"button",6),E.NdJ("click",function(){return E.CHM(j),E.oxw().deleteSelectedResources()}),E._uU(1),E.ALo(2,"translate"),E.qZA()}if(2&Re){const j=E.oxw();E.Q6J("disabled",0===j.selected.selected.length),E.xp6(1),E.hij(" ",E.lcZ(2,2,"VO_DETAIL.RESOURCES.LIST.DELETE")," ")}}function J(Re,T){1&Re&&E._UZ(0,"mat-spinner",7)}function Me(Re,T){if(1&Re&&E._UZ(0,"perun-web-apps-resources-list",8),2&Re){const j=E.oxw();E.Q6J("disableRouting",!j.routeAuth)("filterValue",j.filterValue)("resources",j.resources)("routingVo",!0)("displayedColumns",j.displayedColumns)("selection",j.selected)("tableId",j.tableId)}}let oe=(()=>{class Re{constructor(j,Y,q,te){this.resourcesManager=j,this.dialog=Y,this.authResolver=q,this.entityStorageService=te,this.resources=[],this.selected=new e.Ov(!0,[]),this.filterValue="",this.displayedColumns=[],this.tableId=w.nT,this.routeAuth=!1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.refreshTable()}setAuthRights(){this.removeAuth=this.authResolver.isAuthorized("deleteResource_Resource_policy",[this.vo]),0!==this.resources.length&&(this.routeAuth=this.authResolver.isAuthorized("getResourceById_int_policy",[this.vo,this.resources[0]])),this.displayedColumns=this.removeAuth?["select","id","name","facility","tags","description"]:["id","name","facility","tags","description"]}refreshTable(){this.loading=!0,this.resourcesManager.getRichResources(this.vo.id).subscribe(j=>{this.resources=j,this.selected.clear(),this.setAuthRights(),this.loading=!1})}applyFilter(j){this.filterValue=j}deleteSelectedResources(){const j=(0,g.kZ)();j.width="450px",j.data={theme:"vo-theme",resources:this.selected.selected},this.dialog.open(_.f,j).afterClosed().subscribe(q=>{q&&this.refreshTable()})}}return Re.id="VoResourcesPreviewComponent",Re.\u0275fac=function(j){return new(j||Re)(E.Y36(b.xk),E.Y36(C.uw),E.Y36(A.x4),E.Y36(A.fb))},Re.\u0275cmp=E.Xpm({type:Re,selectors:[["app-vo-resources-preview"]],hostVars:2,hostBindings:function(j,Y){2&j&&E.ekj("router-component",Y.true)},decls:9,vars:7,consts:[[1,"page-subtitle"],[3,"refresh"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId",4,"ngIf"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","filterValue","resources","routingVo","displayedColumns","selection","tableId"]],template:function(j,Y){1&j&&(E.TgZ(0,"div"),E.TgZ(1,"h1",0),E._uU(2),E.ALo(3,"translate"),E.qZA(),E.TgZ(4,"perun-web-apps-refresh-button",1),E.NdJ("refresh",function(){return Y.refreshTable()}),E.qZA(),E.YNc(5,ge,3,4,"button",2),E.TgZ(6,"perun-web-apps-immediate-filter",3),E.NdJ("filter",function(te){return Y.applyFilter(te)}),E.qZA(),E.YNc(7,J,1,0,"mat-spinner",4),E.YNc(8,Me,1,7,"perun-web-apps-resources-list",5),E.qZA()),2&j&&(E.xp6(2),E.Oqu(E.lcZ(3,5,"VO_DETAIL.RESOURCES.LIST.TITLE")),E.xp6(3),E.Q6J("ngIf",Y.removeAuth),E.xp6(1),E.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),E.xp6(1),E.Q6J("ngIf",Y.loading),E.xp6(1),E.Q6J("ngIf",!Y.loading))},directives:[I.t,P.O5,m.lW,L.L,O.$g,G.C],pipes:[ne.X$],styles:[""]}),Re})()},24219:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>Q});var e=p(36908),b=p(32105),_=p(5e3),w=p(96214),g=p(53251),A=p(69808),E=p(98380),C=p(32075),I=p(20773),P=p(81125),m=p(4834),L=p(51062);function O(D,H){1&D&&_._UZ(0,"mat-spinner",2)}function G(D,H){if(1&D&&(_.TgZ(0,"mat-panel-description"),_.TgZ(1,"div"),_.TgZ(2,"i",10),_._uU(3," error "),_.qZA(),_._uU(4),_.ALo(5,"translate"),_.ALo(6,"translate"),_.qZA(),_.qZA()),2&D){const V=_.oxw().$implicit,xe=_.oxw(2);_.xp6(4),_.HOy(" ",xe.getErrorCountStates(V)," ",_.lcZ(5,4,"VO_DETAIL.RESOURCES.STATES.FROM")," ",V.taskList.length," ",_.lcZ(6,6,"VO_DETAIL.RESOURCES.STATES.TASKS_WITH_ERROR_STATE")," ")}}function ne(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ID")," "))}function ge(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.id)}}function J(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SERVICE")," "))}function Me(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.service.name)}}function oe(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STATUS")," "))}function Re(D,H){if(1&D&&(_.TgZ(0,"td",24),_._uU(1),_.qZA()),2&D){const V=H.$implicit;_.xp6(1),_.Oqu(V.status)}}function T(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_SCHEDULED")," "))}function j(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function Y(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function q(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,j,3,4,"div",25),_.YNc(2,Y,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.schedule)("ngIfElse",xe)}}function te(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_STARTED")," "))}function ue(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function de(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function Le(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,ue,3,4,"div",25),_.YNc(2,de,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.startTime)("ngIfElse",xe)}}function Ue(D,H){1&D&&(_.TgZ(0,"th",23),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.TABLE_ENDED")," "))}function ze(D,H){if(1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"date"),_.qZA()),2&D){const V=_.oxw().$implicit;_.xp6(1),_.hij(" ",_.xi3(2,1,V.schedule,"d.M.y H:mm:ss")," ")}}function le(D,H){1&D&&(_._uU(0),_.ALo(1,"translate")),2&D&&_.hij(" ",_.lcZ(1,1,"VO_DETAIL.RESOURCES.STATES.NOT_YET")," ")}function je(D,H){if(1&D&&(_.TgZ(0,"td",24),_.YNc(1,ze,3,4,"div",25),_.YNc(2,le,2,3,"ng-template",26,27,_.W1O),_.qZA()),2&D){const V=H.$implicit,xe=_.MAs(3);_.xp6(1),_.Q6J("ngIf",V.endTime)("ngIfElse",xe)}}function ye(D,H){1&D&&_._UZ(0,"tr",28)}const Be=function(D,H,V){return{redTableItem:D,greenTableItem:H,yellowTableItem:V}};function W(D,H){if(1&D&&_._UZ(0,"tr",29),2&D){const V=H.$implicit;_.Q6J("ngClass",_.kEZ(1,Be,"ERROR"===V.status||"SENDERROR"===V.status||"GENERROR"===V.status,"DONE"===V.status,"WARNING"===V.status))}}function R(D,H){if(1&D&&(_.TgZ(0,"table",12),_.ynx(1,13),_.YNc(2,ne,3,3,"th",14),_.YNc(3,ge,2,1,"td",15),_.BQk(),_.ynx(4,16),_.YNc(5,J,3,3,"th",14),_.YNc(6,Me,2,1,"td",15),_.BQk(),_.ynx(7,17),_.YNc(8,oe,3,3,"th",14),_.YNc(9,Re,2,1,"td",15),_.BQk(),_.ynx(10,18),_.YNc(11,T,3,3,"th",14),_.YNc(12,q,4,2,"td",15),_.BQk(),_.ynx(13,19),_.YNc(14,te,3,3,"th",14),_.YNc(15,Le,4,2,"td",15),_.BQk(),_.ynx(16,20),_.YNc(17,Ue,3,3,"th",14),_.YNc(18,je,4,2,"td",15),_.BQk(),_.YNc(19,ye,1,0,"tr",21),_.YNc(20,W,1,5,"tr",22),_.qZA()),2&D){const V=_.oxw(2).$implicit,xe=_.oxw(2);_.Q6J("dataSource",xe.datasources[xe.propagation.indexOf(V)]),_.xp6(19),_.Q6J("matHeaderRowDef",xe.displayedColumns),_.xp6(1),_.Q6J("matRowDefColumns",xe.displayedColumns)}}function me(D,H){1&D&&(_.TgZ(0,"div"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_TASKS")," "))}function be(D,H){if(1&D&&(_._UZ(0,"mat-divider"),_.YNc(1,R,21,3,"table",11),_.YNc(2,me,3,3,"div",8)),2&D){const V=_.oxw().$implicit;_.xp6(1),_.Q6J("ngIf",0!==V.taskList.length),_.xp6(1),_.Q6J("ngIf",0===V.taskList.length)}}function Ie(D,H){if(1&D&&(_.TgZ(0,"mat-expansion-panel"),_.TgZ(1,"mat-expansion-panel-header"),_.TgZ(2,"mat-panel-title"),_._UZ(3,"img",6),_.TgZ(4,"div",7),_._uU(5),_.qZA(),_.qZA(),_.YNc(6,G,7,8,"mat-panel-description",8),_.qZA(),_.YNc(7,be,3,2,"ng-template",9),_.qZA()),2&D){const V=H.$implicit,xe=_.oxw(2);_.xp6(5),_.hij(" ",V.resource.name," "),_.xp6(1),_.Q6J("ngIf",0!==xe.getErrorCountStates(V))}}function pe(D,H){if(1&D&&(_.TgZ(0,"div",3),_.TgZ(1,"mat-accordion",4),_.YNc(2,Ie,8,2,"mat-expansion-panel",5),_.qZA(),_.qZA()),2&D){const V=_.oxw();_.xp6(2),_.Q6J("ngForOf",V.propagation)}}let Se=(()=>{class D{constructor(){this.propagation=[],this.loading=!1,this.datasources=[],this.displayedColumns=["id","service","status","scheduled","started","ended"]}getErrorCountStates(V){let xe=0;for(const Qe of V.taskList)("ERROR"===Qe.status||"GENERROR"===Qe.status||"SENDERROR"===Qe.status)&&xe++;return xe}getDataSource(){this.datasources=[];for(const V of this.propagation)this.datasources.push(new C.by(V.taskList))}ngOnChanges(){this.getDataSource()}}return D.\u0275fac=function(V){return new(V||D)},D.\u0275cmp=_.Xpm({type:D,selectors:[["app-state-tab"]],inputs:{propagation:"propagation",loading:"loading"},features:[_.TTD],decls:2,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],["class","p-2",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"p-2"],["multi","true","togglePosition","before",1,"headers-align"],[4,"ngFor","ngForOf"],["height","28","src","assets/img/PerunWebImages/resource-black.svg","width","28"],[1,"ml-2"],[4,"ngIf"],["matExpansionPanelContent",""],[1,"material-icons","red"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","service"],["matColumnDef","status"],["matColumnDef","scheduled"],["matColumnDef","started"],["matColumnDef","ended"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"ngClass",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],["class","font-italic"],["notYet",""],["mat-header-row",""],["mat-row","",3,"ngClass"]],template:function(V,xe){1&V&&(_.YNc(0,O,1,0,"mat-spinner",0),_.YNc(1,pe,3,1,"div",1)),2&V&&(_.Q6J("ngIf",xe.loading),_.xp6(1),_.Q6J("ngIf",!xe.loading))},directives:[A.O5,I.$g,P.pp,A.sg,P.ib,P.yz,P.yK,P.u4,P.HS,m.d,C.BZ,C.w1,C.fO,C.ge,C.Dz,C.ev,C.as,C.XQ,C.nj,C.Gk,A.mk],pipes:[L.X$,A.uU],styles:[".greenTableItem[_ngcontent-%COMP%]{background-color:#c4ffcb}.yellowTableItem[_ngcontent-%COMP%]{background-color:#fffde7}.redTableItem[_ngcontent-%COMP%]{background-color:#ffcdd2}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%], .headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{flex-basis:0}.headers-align[_ngcontent-%COMP%] .mat-expansion-panel-header-description[_ngcontent-%COMP%]{margin-left:15%;justify-content:space-between;align-items:center}"]}),D})();function Xe(D,H){if(1&D&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",5),_._uU(3),_.qZA()),2&D){const V=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.ERROR_RESOURCES")," "),_.xp6(3),_.Oqu(V.errorPropagation.length)}}function Je(D,H){1&D&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_ERROR")," "))}function nt(D,H){if(1&D&&(_.YNc(0,Je,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&D){const V=_.oxw();_.Q6J("ngIf",!V.loading&&0===V.errorPropagation.length),_.xp6(1),_.Q6J("loading",V.loading)("propagation",V.errorPropagation)}}function Ve(D,H){if(1&D&&(_._uU(0),_.ALo(1,"translate"),_.TgZ(2,"span",9),_._uU(3),_.qZA()),2&D){const V=_.oxw();_.hij(" ",_.lcZ(1,2,"VO_DETAIL.RESOURCES.STATES.OK_RESOURCES")," "),_.xp6(3),_.Oqu(V.okPropagation.length)}}function X(D,H){1&D&&(_.TgZ(0,"perun-web-apps-alert",8),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"VO_DETAIL.RESOURCES.STATES.NO_RESOURCES_IN_OK")," "))}function z(D,H){if(1&D&&(_.YNc(0,X,3,3,"perun-web-apps-alert",6),_._UZ(1,"app-state-tab",7)),2&D){const V=_.oxw();_.Q6J("ngIf",!V.loading&&0===V.okPropagation.length),_.xp6(1),_.Q6J("loading",V.loading)("propagation",V.okPropagation)}}let Q=(()=>{class D{constructor(V,xe){this.taskService=V,this.entityStorageService=xe,this.loading=!1,this.okPropagation=[],this.errorPropagation=[],this.resourceStates=[],this.selectedIndex=0}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.refreshTable()}refreshTable(){this.loading=!0,this.taskService.getAllResourcesState(this.vo.id).subscribe(V=>{this.resourceStates=V,this.okPropagation=[],this.errorPropagation=[];for(const xe of V){let Qe=!0;for(const Te of xe.taskList)if("ERROR"===Te.status||"GENERROR"===Te.status||"SENDERROR"===Te.status){Qe=!1;break}Qe?this.okPropagation.push(xe):this.errorPropagation.push(xe)}this.loading=!1},()=>this.loading=!1)}}return D.id="VoResourcesStatesComponent",D.\u0275fac=function(V){return new(V||D)(_.Y36(b.Ob),_.Y36(e.fb))},D.\u0275cmp=_.Xpm({type:D,selectors:[["app-vo-resources-states"]],hostVars:2,hostBindings:function(V,xe){2&V&&_.ekj("router-component",xe.true)},decls:11,vars:4,consts:[[1,"page-subtitle"],[3,"refresh"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],["matTabContent",""],[1,"badge","badge-danger","ml-1"],["alert_type","warn",4,"ngIf"],[3,"loading","propagation"],["alert_type","warn"],[1,"badge","badge-success","ml-1"]],template:function(V,xe){1&V&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"perun-web-apps-refresh-button",1),_.NdJ("refresh",function(){return xe.refreshTable()}),_.qZA(),_.TgZ(4,"mat-tab-group",2),_.NdJ("selectedIndexChange",function(Te){return xe.selectedIndex=Te}),_.TgZ(5,"mat-tab"),_.YNc(6,Xe,4,4,"ng-template",3),_.YNc(7,nt,2,3,"ng-template",4),_.qZA(),_.TgZ(8,"mat-tab"),_.YNc(9,Ve,4,4,"ng-template",3),_.YNc(10,z,2,3,"ng-template",4),_.qZA(),_.qZA()),2&V&&(_.xp6(1),_.Oqu(_.lcZ(2,2,"VO_DETAIL.RESOURCES.STATES.TITLE")),_.xp6(3),_.Q6J("selectedIndex",xe.selectedIndex))},directives:[w.t,g.SP,g.uX,g.uD,g.Vc,A.O5,E.w,Se],pipes:[L.X$],styles:[""]}),D})()},10369:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>Le});var e=p(1186),b=p(36908),_=p(95502),w=p(51076),g=p(83491),A=p(32105),E=p(9244),C=p(5e3),I=p(48966),P=p(51062),m=p(11735),L=p(69808),O=p(20773),G=p(25245),ne=p(29772),ge=p(47423),J=p(4834),Me=p(96214),oe=p(98380),Re=p(157);function T(Ue,ze){1&Ue&&C._UZ(0,"mat-spinner",13)}function j(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",21),C.NdJ("click",function(){return C.CHM(le),C.oxw(2).settings()}),C.TgZ(1,"i",10),C._uU(2,"edit"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SETTINGS_BUTTON")," "))}function Y(Ue,ze){if(1&Ue&&(C.TgZ(0,"div",14),C.TgZ(1,"div",15),C.TgZ(2,"div",16),C._uU(3),C.ALo(4,"translate"),C.qZA(),C.TgZ(5,"div"),C.TgZ(6,"span",16),C._uU(7),C.ALo(8,"translate"),C.qZA(),C._uU(9,": "),C.TgZ(10,"mat-icon",17),C._uU(11,"arrow_right_alt"),C.qZA(),C._uU(12),C.ALo(13,"translate"),C.ALo(14,"translate"),C.TgZ(15,"mat-icon",18),C._uU(16,"restore"),C.qZA(),C._uU(17),C.ALo(18,"translate"),C.ALo(19,"translate"),C.qZA(),C.qZA(),C.TgZ(20,"div",19),C.YNc(21,j,5,3,"button",20),C.qZA(),C.qZA()),2&Ue){const le=C.oxw();C.xp6(3),C.AsE(" ",C.lcZ(4,6,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MODULE_NAME"),": ",le.applicationForm.moduleClassName," "),C.xp6(4),C.Oqu(C.lcZ(8,8,"VO_DETAIL.SETTINGS.APPLICATION_FORM.APPLICATION_TYPE")),C.xp6(5),C.hij(" ",le.applicationForm.automaticApproval?C.lcZ(13,10,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(14,12,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," , "),C.xp6(5),C.hij(" ",le.applicationForm.automaticApprovalExtension?C.lcZ(18,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.AUTOMATIC"):C.lcZ(19,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.MANUAL")," "),C.xp6(4),C.Q6J("ngIf",le.editAuth)}}function q(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",22),C.NdJ("click",function(){return C.CHM(le),C.oxw().add()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.ADD_BUTTON")," "))}function te(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",23),C.NdJ("click",function(){return C.CHM(le),C.oxw().save()}),C.TgZ(1,"i",10),C._uU(2,"save"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}if(2&Ue){const le=C.oxw();C.Q6J("disabled",!le.itemsChanged),C.xp6(3),C.hij(" ",C.lcZ(4,2,"VO_DETAIL.SETTINGS.APPLICATION_FORM.SAVE_BUTTON")," ")}}function ue(Ue,ze){if(1&Ue){const le=C.EpF();C.TgZ(0,"button",24),C.NdJ("click",function(){return C.CHM(le),C.oxw().copy()}),C.TgZ(1,"i",10),C._uU(2,"file_copy"),C.qZA(),C._uU(3),C.ALo(4,"translate"),C.qZA()}2&Ue&&(C.xp6(3),C.hij(" ",C.lcZ(4,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.COPY_VO_BUTTON")," "))}function de(Ue,ze){1&Ue&&(C.TgZ(0,"perun-web-apps-alert",25),C._uU(1),C.ALo(2,"translate"),C.qZA()),2&Ue&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_DETAIL.SETTINGS.APPLICATION_FORM.DRAG_AND_DROP_INFO")," "))}let Le=(()=>{class Ue{constructor(le,je,ye,Be,W,R,me,be){this.registrarManager=le,this.dialog=je,this.notificator=ye,this.translate=Be,this.router=W,this.authResolver=R,this.voService=me,this.entityStorageService=be,this.loading=!1,this.applicationFormItems=[],this.itemsChanged=!1,this.displayedColumns=[],this.refreshApplicationForm=!1,this.idCounter=-1}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.setAuthRights(),this.registrarManager.getVoApplicationForm(this.vo.id).subscribe(le=>{this.applicationForm=le,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(je=>{this.applicationFormItems=je,this.loading=!1})})}add(){let le=(0,E.kZ)();le.width="500px",le.data={applicationFormItems:this.applicationFormItems,fakeId:this.idCounter--},this.dialog.open(w.J,le).afterClosed().subscribe(ye=>{ye&&(this.applicationFormItems=Object.assign([],ye[0]),le=(0,E.kZ)(),le.width="600px",le.height="600px",le.data={voId:this.vo.id,applicationFormItem:ye[1],theme:"vo-theme",allItems:this.applicationFormItems},this.dialog.open(g._,le),this.itemsChanged=!0)})}copy(){const le=(0,E.kZ)();le.width="500px",le.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(_.W,le).afterClosed().subscribe(ye=>{ye&&this.updateFormItems()})}settings(){const le=(0,E.kZ)();le.width="400px",le.data={entity:"vo",applicationForm:this.applicationForm,theme:"vo-theme"},this.dialog.open(e.E,le).afterClosed().subscribe(ye=>{ye&&(this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_SETTINGS_SUCCESS").subscribe(Be=>{this.notificator.showSuccess(Be)}),this.applicationForm=ye)})}preview(){this.router.navigate(["/organizations",this.vo.id,"settings","applicationForm","preview"],{queryParams:{applicationFormItems:JSON.stringify(this.applicationFormItems)}})}updateFormItems(){this.loading=!0,this.refreshApplicationForm=!0,this.registrarManager.getFormItemsForVo(this.vo.id).subscribe(le=>{this.applicationFormItems=le,this.itemsChanged=!1,this.setAuthRights(),this.refreshApplicationForm=!1,this.loading=!1})}changeItems(){this.itemsChanged=!0}save(){let le=0;for(const je of this.applicationFormItems)je.ordnum=le,je.forDelete||le++;this.registrarManager.updateFormItemsForVo({vo:this.vo.id,items:this.applicationFormItems}).subscribe(()=>{this.translate.get("VO_DETAIL.SETTINGS.APPLICATION_FORM.CHANGE_APPLICATION_FORM_ITEMS_SUCCESS").subscribe(je=>{this.notificator.showSuccess(je)}),this.updateFormItems()})}clear(){this.applicationFormItems.forEach(le=>le.forDelete=!0),this.itemsChanged=!0}setAuthRights(){this.editAuth=this.authResolver.isAuthorized("vo-updateFormItems_ApplicationForm_List_policy",[this.vo]),this.displayedColumns=this.editAuth?["drag","shortname","type","disabled","hidden","preview","managegroups","edit","delete"]:["shortname","type","disabled","hidden","preview","managegroups"]}}return Ue.id="VoSettingsApplicationFormComponent",Ue.\u0275fac=function(le){return new(le||Ue)(C.Y36(A.tk),C.Y36(I.uw),C.Y36(b.V6),C.Y36(P.sK),C.Y36(m.F0),C.Y36(b.x4),C.Y36(A.YF),C.Y36(b.fb))},Ue.\u0275cmp=C.Xpm({type:Ue,selectors:[["app-vo-settings-application-form"]],hostVars:2,hostBindings:function(le,je){2&le&&C.ekj("router-component",je.true)},decls:19,vars:18,consts:[[1,"page-subtitle"],["class","ml-auto mr-auto",4,"ngIf"],["class","d-flex w-50",4,"ngIf"],[1,"mb-2","mt-2"],[1,"w-100","d-flex"],[3,"refresh"],["color","accent","class","mr-2 action-button","data-cy","add-form-item","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","data-cy","save-application-form","class","mr-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["class","mr-2 action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",3,"click"],[1,"material-icons"],["alert_type","info",4,"ngIf"],[3,"applicationForm","applicationFormItems","loading","displayedColumns","refreshApplicationForm","theme","applicationFormItemsChange"],[1,"ml-auto","mr-auto"],[1,"d-flex","w-50"],[1,"w-50"],[1,"font-weight-bold"],["matTooltip","Initial",1,"align-text-bottom"],["matTooltip","Extension",1,"align-text-bottom"],[1,"w-25"],["class","ml-auto action-button","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"ml-auto","action-button",3,"click"],["color","accent","data-cy","add-form-item","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","accent","data-cy","save-application-form","mat-flat-button","",1,"mr-2",3,"disabled","click"],["mat-stroked-button","",1,"mr-2","action-button",3,"click"],["alert_type","info"]],template:function(le,je){1&le&&(C.TgZ(0,"h1",0),C._uU(1),C.ALo(2,"translate"),C.qZA(),C.YNc(3,T,1,0,"mat-spinner",1),C.TgZ(4,"div"),C.YNc(5,Y,22,18,"div",2),C._UZ(6,"mat-divider",3),C.TgZ(7,"div",4),C.TgZ(8,"perun-web-apps-refresh-button",5),C.NdJ("refresh",function(){return je.updateFormItems()}),C.qZA(),C.YNc(9,q,3,3,"button",6),C.YNc(10,te,5,4,"button",7),C.YNc(11,ue,5,3,"button",8),C.TgZ(12,"button",9),C.NdJ("click",function(){return je.preview()}),C.TgZ(13,"i",10),C._uU(14,"search"),C.qZA(),C._uU(15),C.ALo(16,"translate"),C.qZA(),C.qZA(),C.YNc(17,de,3,3,"perun-web-apps-alert",11),C.TgZ(18,"app-application-form-list",12),C.NdJ("applicationFormItemsChange",function(){return je.changeItems()}),C.qZA(),C.qZA()),2&le&&(C.xp6(1),C.hij(" ",C.lcZ(2,14,"VO_DETAIL.SETTINGS.APPLICATION_FORM.TITLE"),"\n"),C.xp6(2),C.Q6J("ngIf",je.loading),C.xp6(2),C.Q6J("ngIf",!je.loading),C.xp6(4),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("ngIf",je.editAuth),C.xp6(4),C.hij(" ",C.lcZ(16,16,"VO_DETAIL.SETTINGS.APPLICATION_FORM.PREVIEW_BUTTON")," "),C.xp6(2),C.Q6J("ngIf",je.editAuth),C.xp6(1),C.Q6J("applicationForm",je.applicationForm)("applicationFormItems",je.applicationFormItems)("loading",je.loading)("displayedColumns",je.displayedColumns)("refreshApplicationForm",je.refreshApplicationForm)("theme","vo-theme"))},directives:[L.O5,O.$g,G.Hw,ne.gM,ge.lW,J.d,Me.t,oe.w,Re.b],pipes:[P.X$],styles:[""]}),Ue})()},3246:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>Nn});var e=p(32105),b=p(20449),_=p(10036),w=p(9244),g=p(48966),A=p(36908),E=p(93075),C=p(69808),I=p(45323),P=p(28499),m=p(5e3),L=p(51062),O=p(20773),G=p(92081),ne=p(98380),ge=p(67322),J=p(98833),Me=p(74107),oe=p(90508),Re=p(29772),T=p(77446),j=p(13469),Y=p(79814),q=p(74250),te=p(86856);let ue=(()=>{class Mt{constructor(){this.expiration="never",this.datePicker=new m.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const rt=new Date;this.minDate=new Date(rt.getFullYear(),rt.getMonth(),rt.getDate()),this.expirationControl.setValue((0,C.p6)(this.minDate,"yyyy-MM-dd","en-GB"))}setExpiration(){this.expiration=(0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB"),this.expirationControl.setValue((0,C.p6)(this.expirationControl.value,"yyyy-MM-dd","en-GB")),this.emitDate()}emitDate(){"never"!==this.expiration&&""===this.expirationControl.value||this.datePicker.emit(this.expiration)}}return Mt.\u0275fac=function(rt){return new(rt||Mt)},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["perun-web-apps-expiration-select"]],inputs:{expiration:"expiration"},outputs:{datePicker:"datePicker"},decls:13,vars:14,consts:[[1,"d-flex","flex-column",3,"ngModel","ngModelChange","change"],["value","never"],[3,"value"],["color","primary",1,"cursor-pointer","mr-3",3,"click"],["readonly","","matInput","",1,"disable",3,"min","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""]],template:function(rt,kt){if(1&rt){const Ze=m.EpF();m.TgZ(0,"mat-radio-group",0),m.NdJ("ngModelChange",function(qe){return kt.expiration=qe})("change",function(){return kt.emitDate()}),m.TgZ(1,"mat-radio-button",1),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",2),m.TgZ(5,"mat-form-field",3),m.NdJ("click",function(){return m.CHM(Ze),m.MAs(12).open()}),m.TgZ(6,"mat-label"),m._uU(7),m.ALo(8,"translate"),m.qZA(),m.TgZ(9,"input",4),m.NdJ("dateChange",function(){return kt.setExpiration()}),m.qZA(),m._UZ(10,"mat-datepicker-toggle",5),m._UZ(11,"mat-datepicker",6,7),m.qZA(),m.qZA(),m.qZA()}if(2&rt){const Ze=m.MAs(12);m.Q6J("ngModel",kt.expiration),m.xp6(2),m.hij(" ",m.lcZ(3,10,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),m.xp6(2),m.s9C("value",kt.expirationControl.value),m.xp6(3),m.Oqu(m.lcZ(8,12,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),m.xp6(2),m.Q6J("min",kt.minDate)("formControl",kt.expirationControl)("matDatepicker",Ze),m.xp6(1),m.Q6J("for",Ze)("disabled",!1),m.xp6(1),m.Q6J("disabled",!1)}},directives:[Y.VQ,E.JJ,E.On,Y.U0,ge.KE,ge.hX,J.Nt,E.Fj,te.hl,E.oH,te.nW,ge.R9,te.Mq],pipes:[L.X$],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();var de=p(25245),Le=p(47423),Ue=p(31359);const ze=["stepper"];function le(Mt,Qt){1&Mt&&(m.TgZ(0,"h1",4),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE")," "))}function je(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",5)}function ye(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_LABEL"))}function Be(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function W(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function R(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function me(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_LABEL"))}function be(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",35),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function Ie(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_ERROR")," "))}function pe(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.LENGTH_ERROR")," "))}function Se(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL_ERROR")," "))}function Xe(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_LABEL"))}function Je(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-user-search-select",36),m.NdJ("userSelected",function(Ze){return m.CHM(rt),m.oxw(2).selectedSponsor=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("disableAutoSelect",!0)("users",rt.voSponsors)}}function nt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",6),m.TgZ(1,"mat-stepper",7,8),m.TgZ(3,"mat-step",9),m.YNc(4,ye,2,3,"ng-template",10),m.YNc(5,Be,3,3,"perun-web-apps-alert",11),m.TgZ(6,"form",12),m.TgZ(7,"h5",13),m._uU(8),m.ALo(9,"translate"),m.qZA(),m.TgZ(10,"mat-form-field",14),m._UZ(11,"input",15),m.ALo(12,"translate"),m.YNc(13,W,3,3,"mat-error",16),m.qZA(),m.TgZ(14,"mat-form-field"),m._UZ(15,"input",17),m.ALo(16,"translate"),m.YNc(17,R,3,3,"mat-error",16),m.qZA(),m.TgZ(18,"mat-form-field"),m._UZ(19,"input",18),m.ALo(20,"translate"),m.qZA(),m.TgZ(21,"mat-form-field"),m._UZ(22,"input",19),m.ALo(23,"translate"),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"mat-step",9),m.YNc(25,me,2,3,"ng-template",10),m.TgZ(26,"h5",13),m._uU(27),m.ALo(28,"translate"),m.qZA(),m.TgZ(29,"form",20),m.TgZ(30,"mat-form-field"),m.TgZ(31,"mat-select",21),m.NdJ("valueChange",function(Ze){return m.CHM(rt),m.oxw().onNamespaceChanged(Ze)}),m.ALo(32,"translate"),m.YNc(33,be,2,2,"mat-option",22),m.qZA(),m.YNc(34,Ie,3,3,"mat-error",16),m.qZA(),m.TgZ(35,"mat-form-field",23),m.ALo(36,"translate"),m._UZ(37,"input",24),m.ALo(38,"translate"),m.YNc(39,pe,3,3,"mat-error",16),m.qZA(),m.TgZ(40,"mat-form-field"),m._UZ(41,"input",25),m.ALo(42,"translate"),m.YNc(43,Se,3,3,"mat-error",16),m.qZA(),m.TgZ(44,"span",23),m.ALo(45,"translate"),m.TgZ(46,"mat-checkbox",26),m.NdJ("change",function(){return m.CHM(rt),m.oxw().passwordResetChange()}),m._uU(47),m.ALo(48,"translate"),m.qZA(),m.qZA(),m._UZ(49,"perun-web-apps-password-form",27),m.qZA(),m.qZA(),m.TgZ(50,"mat-step"),m.YNc(51,Xe,2,3,"ng-template",10),m.TgZ(52,"div",28),m.TgZ(53,"h5",13),m._uU(54),m.ALo(55,"translate"),m.qZA(),m.TgZ(56,"div",14),m.TgZ(57,"h6"),m._uU(58),m.ALo(59,"translate"),m.qZA(),m.TgZ(60,"mat-radio-group",29),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw().sponsorType=Ze}),m.TgZ(61,"span",30),m.ALo(62,"translate"),m.TgZ(63,"mat-radio-button",31),m.NdJ("click",function(){return m.CHM(rt),m.oxw().selectedSponsor=null}),m._uU(64),m.ALo(65,"translate"),m.qZA(),m.qZA(),m.TgZ(66,"span",30),m.ALo(67,"translate"),m.TgZ(68,"mat-radio-button",32),m._uU(69),m.ALo(70,"translate"),m.qZA(),m.qZA(),m.qZA(),m.YNc(71,Je,2,2,"div",16),m.qZA(),m.TgZ(72,"h6",14),m._uU(73),m.ALo(74,"translate"),m.qZA(),m.TgZ(75,"perun-web-apps-expiration-select",33),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw().setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.userControl),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(1),m.Q6J("formGroup",rt.userControl),m.xp6(2),m.hij(" ",m.lcZ(9,42,"DIALOGS.CREATE_SPONSORED_MEMBER.USER_TITLE")," "),m.xp6(3),m.s9C("placeholder",m.lcZ(12,44,"DIALOGS.CREATE_SPONSORED_MEMBER.FIRST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","firstName")),m.xp6(2),m.s9C("placeholder",m.lcZ(16,46,"DIALOGS.CREATE_SPONSORED_MEMBER.LAST_NAME")),m.xp6(2),m.Q6J("ngIf",rt.userControl.hasError("required","lastName")),m.xp6(2),m.s9C("placeholder",m.lcZ(20,48,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_BEFORE")),m.xp6(3),m.s9C("placeholder",m.lcZ(23,50,"DIALOGS.CREATE_SPONSORED_MEMBER.TITLE_AFTER")),m.xp6(2),m.Q6J("stepControl",rt.namespaceControl),m.xp6(3),m.Oqu(m.lcZ(28,52,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE_TITLE")),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl),m.xp6(2),m.s9C("placeholder",m.lcZ(32,54,"DIALOGS.CREATE_SPONSORED_MEMBER.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.namespaceControl.hasError("required","namespace")),m.xp6(1),m.s9C("matTooltip",m.lcZ(36,56,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("login").enabled),m.xp6(2),m.s9C("placeholder",m.lcZ(38,58,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","login")),m.xp6(2),m.s9C("placeholder",m.lcZ(42,60,"DIALOGS.CREATE_SPONSORED_MEMBER.EMAIL")),m.xp6(2),m.Q6J("ngIf",rt.namespaceControl.hasError("required","email")||rt.namespaceControl.hasError("pattern","email")),m.xp6(1),m.s9C("matTooltip",m.lcZ(45,62,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET_DISABLED")),m.Q6J("matTooltipDisabled",rt.namespaceControl.get("passwordReset").enabled),m.xp6(3),m.hij("",m.lcZ(48,64,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD_RESET")," "),m.xp6(2),m.Q6J("formGroup",rt.namespaceControl)("namespace",rt.selectedNamespace)("tooltipPwdViaEmail",rt.namespaceControl.get("passwordReset").value),m.xp6(5),m.Oqu(m.lcZ(55,66,"DIALOGS.CREATE_SPONSORED_MEMBER.SPONSORSHIP_TITLE")),m.xp6(4),m.Oqu(m.lcZ(59,68,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SPONSOR")),m.xp6(2),m.Q6J("ngModel",rt.sponsorType),m.xp6(1),m.s9C("matTooltip",m.lcZ(62,70,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF_DISABLED")),m.Q6J("matTooltipDisabled",rt.isSponsor),m.xp6(2),m.Q6J("disabled",!rt.isSponsor),m.xp6(1),m.hij(" ",m.lcZ(65,72,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_SELF")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(67,74,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER_DISABLED")),m.Q6J("matTooltipDisabled",rt.isPerunAdmin),m.xp6(2),m.Q6J("disabled",!rt.isPerunAdmin),m.xp6(1),m.hij(" ",m.lcZ(70,76,"DIALOGS.CREATE_SPONSORED_MEMBER.SELECT_OTHER")," "),m.xp6(2),m.Q6J("ngIf","other"===rt.sponsorType),m.xp6(2),m.Oqu(m.lcZ(74,78,"DIALOGS.CREATE_SPONSORED_MEMBER.EXPIRATION"))}}function Ve(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",6),m.TgZ(1,"div",37),m.TgZ(2,"mat-icon",38),m._uU(3,"done"),m.qZA(),m._uU(4),m.ALo(5,"translate"),m.TgZ(6,"i"),m._uU(7),m.ALo(8,"userFullName"),m.qZA(),m._uU(9),m.ALo(10,"translate"),m.qZA(),m.TgZ(11,"div"),m._uU(12),m.ALo(13,"translate"),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"perun-web-apps-alert",39),m._uU(18),m.ALo(19,"translate"),m.qZA(),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(4),m.hij(" ",m.lcZ(5,8,"DIALOGS.CREATE_SPONSORED_MEMBER.USER")," "),m.xp6(3),m.Oqu(m.lcZ(8,10,rt.createdMember.user)),m.xp6(2),m.hij(" ",m.lcZ(10,12,"DIALOGS.CREATE_SPONSORED_MEMBER.WAS_CREATED")," "),m.xp6(3),m.AsE("",m.lcZ(13,14,"DIALOGS.CREATE_SPONSORED_MEMBER.LOGIN"),": ",rt.loginThatWasSet,""),m.xp6(3),m.AsE(" ",m.lcZ(16,16,"DIALOGS.CREATE_SPONSORED_MEMBER.PASSWORD")," : ",rt.namespaceControl.get("passwordCtrl").value," "),m.xp6(3),m.Oqu(m.lcZ(19,18,"DIALOGS.CREATE_SPONSORED_MEMBER.COPY_INFORMATION"))}}function X(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()}2&Mt&&(m.xp6(2),m.hij(" ",m.lcZ(3,1,"DIALOGS.CREATE_SPONSORED_MEMBER.OK")," "))}function z(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",41),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.BACK")," "))}function Q(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",46),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.CREATE_SPONSORED_MEMBER.NEXT")," ")}}function D(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onConfirm()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.sponsorType||"other"===rt.sponsorType&&null===rt.selectedSponsor),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.CREATE_SPONSORED_MEMBER.SUBMIT")," ")}}function H(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",40),m.TgZ(1,"button",42),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,z,3,3,"button",43),m.YNc(5,Q,3,8,"button",44),m.YNc(6,D,3,4,"button",45),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.CREATE_SPONSORED_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}let V=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=rt,this.data=kt,this.membersService=Ze,this.apiRequestConfiguration=Ot,this.usersService=qe,this.store=Tt,this.translator=jt,this.authzService=ci,this.guiAuthResolver=vi,this.formBuilder=Ui,this.cd=Li,this.loading=!1,this.functionalityNotSupported=!1,this.loginThatWasSet="",this.successfullyCreated=!1,this.namespaceOptions=[],this.selectedNamespace=null,this.userControl=null,this.namespaceControl=null,this.voSponsors=[],this.selectedSponsor=null,this.sponsorType="self",this.isSponsor=!1,this.isPerunAdmin=!1,this.namespaceRules=[],this.parsedRules=new Map,this.expiration="never"}static parseAttributes(rt,kt,Ze){for(const Ot of kt)switch(Ot){case"login":rt.login=Ze;break;case"password":rt.password=Ze}}onConfirm(){this.loading=!0;const rt={vo:this.data.voId,userData:{firstName:this.userControl.get("firstName").value,lastName:this.userControl.get("lastName").value,titleAfter:this.userControl.get("titleAfter").value,titleBefore:this.userControl.get("titleBefore").value,email:this.namespaceControl.get("email").value},sponsor:"other"===this.sponsorType?this.selectedSponsor.id:this.store.getPerunPrincipal().userId},kt=this.namespaceControl.get("namespace").value,Ze=this.parsedRules.get(kt);"No namespace"!==kt&&(rt.userData.namespace=kt),"disabled"!==Ze.login&&(rt.userData.login=this.namespaceControl.get("login").value),"disabled"!==Ze.password&&(rt.sendActivationLink=this.namespaceControl.get("passwordReset").value,rt.userData.password=this.namespaceControl.get("passwordCtrl").value),"never"!==this.expiration&&(rt.validityTo=this.expiration),this.membersService.createSponsoredMember(rt).subscribe(Ot=>{this.successfullyCreated=!0,this.dialogRef.updateSize("600px"),this.createdMember=Ot,!!Ot&&!!Ot.userAttributes&&Ot.userAttributes.filter(qe=>"login-namespace"===qe.baseFriendlyName).filter(qe=>qe.friendlyNameParameter===kt).filter(qe=>null!==qe.value).forEach(qe=>{this.loginThatWasSet=qe.value}),this.loading=!1},()=>{this.loading=!1})}onCancel(){this.successfullyCreated?this.dialogRef.close(!0):this.dialogRef.close()}onNamespaceChanged(rt){this.selectedNamespace=rt;const kt=this.parsedRules.get(rt),Ze=this.namespaceControl.get("login"),Ot=this.namespaceControl.get("passwordCtrl"),qe=this.namespaceControl.get("passwordAgainCtrl"),Tt=this.namespaceControl.get("passwordReset");"disabled"!==kt.login?(0,w.mH)(Ze,"optional"===kt.login?[]:[E.kI.required]):(Ze.disable(),Ze.setValue("")),"disabled"!==kt.password?((0,w.mH)(Ot,"optional"===kt.password?[]:[E.kI.required],[(0,P.yT)(rt,this.usersService,this.apiRequestConfiguration)]),(0,w.mH)(qe,[]),(0,w.mH)(Tt,[]),this.namespaceControl.get("passwordReset").setValue(!1)):(Ot.disable(),Ot.setValue(""),qe.disable(),qe.setValue(""),Tt.disable(),Tt.setValue(!1))}passwordResetChange(){const rt=this.namespaceControl.get("passwordCtrl"),kt=this.namespaceControl.get("passwordAgainCtrl");this.namespaceControl.get("passwordReset").value?(rt.disable(),rt.setValue(""),kt.disable(),kt.setValue("")):(rt.enable(),kt.enable())}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.userControl.invalid;case 1:return this.namespaceControl.invalid||this.namespaceControl.get("passwordCtrl").pending;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.voSponsors=this.data.sponsors,this.isSponsor=this.guiAuthResolver.principalHasRole(I.u.SPONSOR,"Vo",this.data.voId),this.isPerunAdmin=this.guiAuthResolver.isPerunAdmin(),this.sponsorType=this.isSponsor?"self":"other",this.userControl=this.formBuilder.group({firstName:["",E.kI.required],lastName:["",E.kI.required],titleBefore:[""],titleAfter:[""]}),this.namespaceControl=this.formBuilder.group({namespace:["",E.kI.required],login:["",[E.kI.required]],passwordCtrl:["",E.kI.required,[(0,P.yT)(null,this.usersService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""],passwordReset:[!1,[]],email:["",[E.kI.required,E.kI.pattern(w.B2)]]},{validators:w.dN.passwordMatchValidator}),this.membersService.getAllNamespacesRules().subscribe(rt=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",requiredAttributes:[],optionalAttributes:[]}),this.namespaceRules=this.namespaceRules.concat(rt),this.parseNamespaceRules(),0===this.namespaceOptions.length&&(this.functionalityNotSupported=!0),this.loading=!1,this.cd.detectChanges()})}parseNamespaceRules(){for(const rt of this.namespaceRules){this.namespaceOptions.push(rt.namespaceName);const kt={login:"disabled",password:"disabled"};Mt.parseAttributes(kt,rt.requiredAttributes,"required"),Mt.parseAttributes(kt,rt.optionalAttributes,"optional"),this.parsedRules.set(rt.namespaceName,kt)}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(e.uq),m.Y36(A.F5),m.Y36(e.Fv),m.Y36(A.d6),m.Y36(L.sK),m.Y36(e.Ct),m.Y36(A.x4),m.Y36(E.qu),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-create-sponsored-member-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(ze,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.first)}},decls:7,vars:9,consts:[["mat-dialog-title","",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],["mat-dialog-title",""],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"dialog-container",3,"formGroup"],[1,"mt-2"],[1,"mt-4"],["matInput","","formControlName","firstName","required","",3,"placeholder"],[4,"ngIf"],["matInput","","formControlName","lastName","required","",3,"placeholder"],["matInput","","formControlName","titleBefore",3,"placeholder"],["matInput","","formControlName","titleAfter",3,"placeholder"],[1,"dialog-container","mt-4",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder","valueChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipPosition","left",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","login","required","",3,"placeholder"],["matInput","","formControlName","email","required","",3,"placeholder"],["labelPosition","before","formControlName","passwordReset",3,"change"],[3,"formGroup","namespace","tooltipPwdViaEmail"],[1,"dialog-container"],[1,"dialog-container",3,"ngModel","ngModelChange"],["matTooltipPosition","before",3,"matTooltip","matTooltipDisabled"],["value","self",3,"disabled","click"],["value","other",3,"disabled"],[1,"mt-2",3,"datePicker"],["alert_type","error"],[3,"value"],[3,"disableAutoSelect","users","userSelected"],[1,"bigger-font","mb-2"],[1,"mr-2","mb-2"],["alert_type","warn"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["class","ml-2","color","accent","mat-flat-button","","type","button",3,"disabled","click",4,"ngIf"],["color","accent","mat-flat-button","","type","button",3,"disabled","click"],["color","accent","mat-flat-button","","type","button",1,"ml-2",3,"disabled","click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.YNc(1,le,3,3,"h1",0),m.YNc(2,je,1,0,"mat-spinner",1),m.YNc(3,nt,76,80,"div",2),m.YNc(4,Ve,20,20,"div",2),m.YNc(5,X,4,3,"div",3),m.YNc(6,H,7,6,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(1),m.Q6J("ngIf",!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",kt.successfullyCreated),m.xp6(1),m.Q6J("ngIf",!kt.loading&&!kt.successfullyCreated))},directives:[C.O5,g.uh,O.$g,g.xY,G.Vq,G.C0,G.VY,ne.w,E._Y,E.JL,E.sg,ge.KE,J.Nt,E.Fj,E.JJ,E.u,E.Q7,ge.TO,Me.gD,C.sg,oe.ey,Re.gM,T.oG,j.G,Y.VQ,E.On,Y.U0,q.S,ue,de.Hw,g.H8,Le.lW],pipes:[L.X$,Ue.d],styles:[".bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:8px}mat-icon[_ngcontent-%COMP%]{color:#28a745;font-size:36px;vertical-align:bottom}"]}),Mt})();var xe=p(64080),Qe=p(61150),Te=p(7434),Ae=p(24179),ae=p(92181);const i=["stepper"];function o(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",4)}function d(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_LABEL"))}function l(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",29),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.CREATE_SPONSORED_MEMBER.FUNCTIONALITY_NOT_SUPPORTED")," "))}function s(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-option",30),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.Q6J("value",rt),m.xp6(1),m.hij(" ",rt," ")}}function r(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE_ERROR")," "))}function t(Mt,Qt){1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMES_ERROR")," "))}function n(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_FORMAT"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidFormat").value," ")}}function a(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_EMAIL"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidEmail").value," ")}}function c(Mt,Qt){if(1&Mt&&(m.TgZ(0,"mat-error"),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(3);m.xp6(1),m.AsE(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ERROR_LOGIN"),": ",rt.usersInfoFormGroup.get("sponsoredMembers").getError("invalidLogin").value," ")}}function h(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_LABEL"))}function x(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",31),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_NAMESPACE_PASSWORD_INFO")," "))}function We(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-radio-group",32),m.NdJ("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(3).passwordReset=Ze}),m.TgZ(1,"mat-radio-button",33),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"mat-radio-button",34),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.Q6J("ngModel",rt.passwordReset),m.xp6(2),m.hij(" ",m.lcZ(3,3,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GENERATE_PASSWORD")," "),m.xp6(3),m.hij(" ",m.lcZ(6,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_RESET")," ")}}function At(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION_LABEL"))}function Ht(Mt,Qt){1&Mt&&(m._uU(0),m.ALo(1,"translate")),2&Mt&&m.Oqu(m.lcZ(1,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUPS_LABEL"))}function lt(Mt,Qt){1&Mt&&(m.TgZ(0,"div"),m.TgZ(1,"perun-web-apps-alert",35),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.qZA()),2&Mt&&(m.xp6(2),m.Oqu(m.lcZ(3,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DONT_ASSIGN_INFO")))}function Ut(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-create-group-form",37),m.NdJ("asSubgroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).asSubGroup=Ze})("nameChanged",function(Ze){return m.CHM(rt),m.oxw(3).name=Ze})("descriptionChanged",function(Ze){return m.CHM(rt),m.oxw(3).description=Ze})("parentGroupChanged",function(Ze){return m.CHM(rt),m.oxw(3).parentGroup=Ze}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CREATE_NEW_GROUP")," "),m.xp6(2),m.Q6J("voGroups",rt.allVoGroups)}}const mt=function(){return["select","id","name","description"]};function Lt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div"),m.TgZ(1,"h5",36),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-immediate-filter",38),m.NdJ("filter",function(Ze){return m.CHM(rt),m.oxw(3).applyFilter(Ze)}),m.qZA(),m._UZ(5,"perun-web-apps-groups-list",39),m.qZA()}if(2&Mt){const rt=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SELECT_EXISTING_GROUPS")," "),m.xp6(2),m.Q6J("placeholder","SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_SEARCH"),m.xp6(1),m.Q6J("groups",rt.assignableGroups)("selection",rt.selection)("disableRouting",!0)("displayedColumns",m.DdM(10,mt))("filter",rt.filterValue)("tableId",rt.tableId)}}function Ee(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"mat-stepper",8,9),m.TgZ(2,"mat-step",10),m.YNc(3,d,2,3,"ng-template",11),m.YNc(4,l,3,3,"perun-web-apps-alert",12),m.TgZ(5,"h5",13),m._uU(6),m.ALo(7,"translate"),m.qZA(),m.TgZ(8,"form",14),m.TgZ(9,"mat-form-field"),m.TgZ(10,"mat-select",15),m.ALo(11,"translate"),m.YNc(12,s,2,2,"mat-option",16),m.qZA(),m.YNc(13,r,3,3,"mat-error",7),m.qZA(),m.TgZ(14,"div"),m._uU(15),m.ALo(16,"translate"),m.qZA(),m.TgZ(17,"div",17),m._uU(18),m.qZA(),m.TgZ(19,"mat-form-field",18),m.TgZ(20,"mat-label"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"textarea",19),m._uU(24," "),m.qZA(),m.YNc(25,t,3,3,"mat-error",7),m.YNc(26,n,3,4,"mat-error",7),m.YNc(27,a,3,4,"mat-error",7),m.YNc(28,c,3,4,"mat-error",7),m.qZA(),m.qZA(),m.qZA(),m.TgZ(29,"mat-step"),m.YNc(30,h,2,3,"ng-template",11),m.TgZ(31,"div",13),m.TgZ(32,"h5",20),m._uU(33),m.ALo(34,"translate"),m.qZA(),m.YNc(35,x,3,3,"perun-web-apps-alert",21),m.YNc(36,We,7,7,"mat-radio-group",22),m.qZA(),m.qZA(),m.TgZ(37,"mat-step"),m.YNc(38,At,2,3,"ng-template",11),m.TgZ(39,"div",13),m.TgZ(40,"h5",20),m._uU(41),m.ALo(42,"translate"),m.qZA(),m.TgZ(43,"perun-web-apps-expiration-select",23),m.NdJ("datePicker",function(Ze){return m.CHM(rt),m.oxw(2).setExpiration(Ze)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(44,"mat-step"),m.YNc(45,Ht,2,3,"ng-template",11),m.TgZ(46,"div",13),m.TgZ(47,"h5",20),m._uU(48),m.ALo(49,"translate"),m.qZA(),m.TgZ(50,"mat-radio-group",24),m.NdJ("change",function(){return m.CHM(rt),m.oxw(2).groupAssigmentChanged()})("ngModelChange",function(Ze){return m.CHM(rt),m.oxw(2).groupAssignment=Ze}),m.TgZ(51,"mat-radio-button",25),m._uU(52),m.ALo(53,"translate"),m.qZA(),m.TgZ(54,"span",26),m.ALo(55,"translate"),m.TgZ(56,"mat-radio-button",27),m._uU(57),m.ALo(58,"translate"),m.qZA(),m.qZA(),m.TgZ(59,"span",26),m.ALo(60,"translate"),m.TgZ(61,"mat-radio-button",28),m._uU(62),m.ALo(63,"translate"),m.qZA(),m.qZA(),m.qZA(),m.qZA(),m.YNc(64,lt,4,3,"div",7),m.YNc(65,Ut,5,4,"div",7),m.YNc(66,Lt,6,11,"div",7),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("linear",!0),m.xp6(2),m.Q6J("stepControl",rt.usersInfoFormGroup),m.xp6(2),m.Q6J("ngIf",rt.functionalityNotSupported),m.xp6(2),m.Oqu(m.lcZ(7,35,"DIALOGS.GENERATE_SPONSORED_MEMBERS.USERS_INFO")),m.xp6(2),m.Q6J("formGroup",rt.usersInfoFormGroup),m.xp6(2),m.s9C("placeholder",m.lcZ(11,37,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NAMESPACE")),m.xp6(2),m.Q6J("ngForOf",rt.namespaceOptions),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","namespace")),m.xp6(2),m.Oqu(m.lcZ(16,39,"DIALOGS.GENERATE_SPONSORED_MEMBERS.HINT")),m.xp6(3),m.hij(" ",rt.getSelectedNamespaceRules().csvGenHeaderDescription," "),m.xp6(3),m.Oqu(m.lcZ(22,41,"DIALOGS.GENERATE_SPONSORED_MEMBERS.INSERT_HERE")),m.xp6(2),m.s9C("placeholder",rt.getSelectedNamespaceRules().csvGenPlaceholder),m.xp6(2),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("required","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidFormat","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidEmail","sponsoredMembers")),m.xp6(1),m.Q6J("ngIf",rt.usersInfoFormGroup.hasError("invalidLogin","sponsoredMembers")),m.xp6(5),m.hij(" ",m.lcZ(34,43,"DIALOGS.GENERATE_SPONSORED_MEMBERS.PASSWORD_MANAGEMENT")," "),m.xp6(2),m.Q6J("ngIf","No namespace"===rt.getSelectedNamespaceRules().namespaceName),m.xp6(1),m.Q6J("ngIf","No namespace"!==rt.getSelectedNamespaceRules().namespaceName),m.xp6(5),m.Oqu(m.lcZ(42,45,"DIALOGS.GENERATE_SPONSORED_MEMBERS.EXPIRATION")),m.xp6(2),m.Q6J("expiration",rt.expiration),m.xp6(5),m.Oqu(m.lcZ(49,47,"DIALOGS.GENERATE_SPONSORED_MEMBERS.GROUP_ASSIGMENT")),m.xp6(2),m.Q6J("ngModel",rt.groupAssignment),m.xp6(2),m.hij(" ",m.lcZ(53,49,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NO_ASSIGN")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(55,51,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_NEW")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&rt.createGroupAuth),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||!rt.createGroupAuth),m.xp6(1),m.hij(" ",m.lcZ(58,53,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_TO_NEW")," "),m.xp6(2),m.s9C("matTooltip",m.lcZ(60,55,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DISABLED_ASSIGN_EXISTING")),m.Q6J("matTooltipDisabled",!rt.manualMemberAddingBlocked&&0!==rt.assignableGroups.length),m.xp6(2),m.Q6J("disabled",rt.manualMemberAddingBlocked||0===rt.assignableGroups.length),m.xp6(1),m.hij(" ",m.lcZ(63,57,"DIALOGS.GENERATE_SPONSORED_MEMBERS.ASSIGN_EXISTING")," "),m.xp6(2),m.Q6J("ngIf","none"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","new"===rt.groupAssignment),m.xp6(1),m.Q6J("ngIf","existing"===rt.groupAssignment)}}function Ge(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","success"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUCCESS")," "))}function U(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",41),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.Q6J("alert_type","warn"),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.FINISHED_WITH_ERRORS")," "))}function k(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div"),m.YNc(1,Ge,3,4,"perun-web-apps-alert",40),m.YNc(2,U,3,4,"perun-web-apps-alert",40),m.qZA()),2&Mt){const rt=m.oxw(2);m.xp6(1),m.Q6J("ngIf",!1===rt.finishedWithErrors),m.xp6(1),m.Q6J("ngIf",rt.finishedWithErrors)}}function ie(Mt,Qt){if(1&Mt&&(m.TgZ(0,"div",5),m.YNc(1,Ee,67,59,"mat-stepper",6),m.YNc(2,k,3,2,"div",7),m.qZA()),2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("ngIf","user-input"===rt.state),m.xp6(1),m.Q6J("ngIf","results"===rt.state)}}function ce(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",47),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperPrevious()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.GENERATE_SPONSORED_MEMBERS.BACK")," "))}function He(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).stepperNext()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.ekj("ml-2",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)("ml-auto",!(void 0!==rt.stepper&&0!==rt.stepper.selectedIndex)),m.Q6J("disabled",rt.getStepperNextConditions()),m.xp6(1),m.hij(" ",m.lcZ(2,6,"DIALOGS.GENERATE_SPONSORED_MEMBERS.NEXT")," ")}}function ct(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",48),m.NdJ("click",function(){return m.CHM(rt),m.oxw(2).onSubmit()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("disabled",null===rt.groupAssignment||"existing"===rt.groupAssignment&&0===rt.selection.selected.length||"new"===rt.groupAssignment&&(0===rt.name.length||0===rt.description.length)||!0===rt.asSubGroup&&null===rt.parentGroup),m.xp6(1),m.hij(" ",m.lcZ(2,2,"DIALOGS.GENERATE_SPONSORED_MEMBERS.SUBMIT")," ")}}function bt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCancel()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,ce,3,3,"button",44),m.YNc(5,He,3,8,"button",45),m.YNc(6,ct,3,4,"button",46),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(2),m.hij(" ",m.lcZ(3,4,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CANCEL")," "),m.xp6(2),m.Q6J("ngIf",void 0!==rt.stepper&&0!==rt.stepper.selectedIndex),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex!==rt.stepper._steps.length-1),m.xp6(1),m.Q6J("ngIf",void 0!==rt.stepper&&rt.stepper.selectedIndex===rt.stepper._steps.length-1)}}function xt(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"div",42),m.TgZ(1,"button",43),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onClose()}),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"button",49),m._uU(5),m.ALo(6,"translate"),m.qZA(),m.TgZ(7,"mat-menu",null,50),m.TgZ(9,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().generatePdf()}),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"button",51),m.NdJ("click",function(){return m.CHM(rt),m.oxw().downloadCsv()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.MAs(8);m.xp6(2),m.hij(" ",m.lcZ(3,5,"DIALOGS.GENERATE_SPONSORED_MEMBERS.CLOSE")," "),m.xp6(2),m.Q6J("matMenuTriggerFor",rt),m.xp6(1),m.hij(" ",m.lcZ(6,7,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD")," "),m.xp6(5),m.hij(" ",m.lcZ(11,9,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_PDF")," "),m.xp6(3),m.hij(" ",m.lcZ(14,11,"DIALOGS.GENERATE_SPONSORED_MEMBERS.DOWNLOAD_CSV")," ")}}let Yt=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt,jt,ci,vi,Ui,Li,hn){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.guiAuthResolver=jt,this.groupsService=ci,this.attributesService=vi,this.formBuilder=Ui,this.sponsoredMembersPDFService=Li,this.cd=hn,this.loading=!1,this.functionalityNotSupported=!1,this.namespaceOptions=[],this.state="user-input",this.passwordReset="generate",this.groupAssignment=null,this.expiration="never",this.assignableGroups=[],this.allVoGroups=[],this.selection=new b.Ov(!0,[]),this.manualMemberAddingBlocked=!1,this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null,this.groupIds=[],this.filterValue="",this.tableId=_.rc,this.finishedWithErrors=!1,this.namespaceRules=[],this.resultData=[],this.groupAttrNames=[xe.r.GROUP_SYNC_ENABLED,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING]}static didSomeGenerationFailed(rt){return rt.forEach(kt=>{if("OK"!==kt.status)return!0}),!1}ngOnInit(){this.loading=!0,this.theme=this.data.theme,this.createGroupAuth=this.guiAuthResolver.isAuthorized("createGroup_Vo_Group_policy",[{id:this.data.voId,beanName:"Vo"}]),this.usersInfoFormGroup=this.formBuilder.group({namespace:["",E.kI.required],sponsoredMembers:["",[E.kI.required,this.userInputValidator()]]}),this.usersInfoFormGroup.controls.namespace.valueChanges.subscribe({next:()=>{this.usersInfoFormGroup.controls.sponsoredMembers.updateValueAndValidity()}}),this.attributesService.getVoAttributes(this.data.voId).subscribe(rt=>{this.manualMemberAddingBlocked=(0,w.jh)(rt,xe.r.VO_BLOCK_MANUAL_MEMBER_ADDING),this.manualMemberAddingBlocked?(this.loading=!1,this.cd.detectChanges()):this.groupsService.getAllRichGroupsWithAttributesByNames(this.data.voId,this.groupAttrNames).subscribe(kt=>{this.allVoGroups=kt.filter(Ze=>"members"!==Ze.name),this.assignableGroups=this.filterAssignableGroups(kt),this.membersService.getAllNamespacesRules().subscribe(Ze=>{this.store.get("allow_empty_sponsor_namespace")&&this.namespaceRules.push({namespaceName:"No namespace",csvGenHeader:"firstname;lastname;urn:perun:user:attribute-def:def:preferredMail",csvGenPlaceholder:"John;Doe;john@mail.cz",csvGenHeaderDescription:"First name;Last name;Email"}),this.namespaceRules=this.namespaceRules.concat(Ze),this.namespaceRules.forEach(Ot=>this.namespaceOptions.push(Ot.namespaceName)),0===this.namespaceOptions.length?this.functionalityNotSupported=!0:this.usersInfoFormGroup.setValue({namespace:this.namespaceOptions[0],sponsoredMembers:""}),this.loading=!1,this.cd.detectChanges()})},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onClose(){this.dialogRef.close(!0)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}applyFilter(rt){this.filterValue=rt}groupAssigmentChanged(){this.selection.clear(),this.name="",this.description="",this.asSubGroup=!1,this.parentGroup=null}onSubmit(){this.loading=!0,"new"===this.groupAssignment?this.asSubGroup?this.groupsService.createGroupWithParentGroupNameDescription(this.parentGroup.id,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):this.groupsService.createGroupWithVoNameDescription(this.data.voId,this.name,this.description).subscribe(rt=>{this.groupIds.push(rt.id),this.onGenerate()},()=>this.loading=!1):("existing"===this.groupAssignment&&(this.groupIds=this.selection.selected.map(rt=>rt.id)),this.onGenerate())}getSelectedNamespaceRules(){return this.namespaceRules.find(rt=>rt.namespaceName===this.usersInfoFormGroup.get("namespace").value)}generatePdf(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");this.loading=!0,this.sponsoredMembersPDFService.generate(this.resultData).then(()=>this.loading=!1)}downloadCsv(){if(!this.resultData)throw new Error("Cannot generate pdf because there is no result");(0,w.O6)(this.createOutputObjects(this.resultData),"csv","member-logins")}getStepperNextConditions(){switch(this.stepper.selectedIndex){case 0:return this.usersInfoFormGroup.invalid;case 1:return null===this.passwordReset;case 2:return null===this.expiration;default:return!1}}stepperPrevious(){this.stepper.previous()}stepperNext(){this.stepper.next()}filterAssignableGroups(rt){const kt=[];for(const Ze of rt)!(0,w.bx)(Ze)&&!(0,w.jh)(Ze.attributes,xe.r.GROUP_BLOCK_MANUAL_MEMBER_ADDING)&&this.guiAuthResolver.isAuthorized("addMembers_Group_List_policy",[Ze])&&kt.push(Ze);return kt}createOutputObjects(rt){let kt="",Ze="",Ot="",qe="";const Tt=[];return rt.forEach(jt=>{kt=jt.name.replace(";"," ").split(";")[0],Ze=jt.status,Ot=jt.login?jt.login:Ot,qe=jt.password?jt.password:qe;const ci={name:kt,status:Ze,login:Ot,password:qe};jt.note&&(ci.note=jt.note),Tt.push(ci)}),Tt}onGenerate(){this.loading=!0;const rt=this.usersInfoFormGroup.get("sponsoredMembers").value.split("\n"),kt=this.getSelectedNamespaceRules().csvGenHeader,Ze=[];for(const qe of rt){const Tt=this.parseMemberLine(qe);if("format"===Tt||"email"===Tt)return void(this.loading=!1);""!==Tt&&Ze.push(Tt)}const Ot={data:Ze,header:kt,namespace:"",sponsor:this.store.getPerunPrincipal().userId,vo:this.data.voId,sendActivationLinks:"reset"===this.passwordReset};"none"!==this.groupAssignment&&(Ot.groups=this.groupIds),"never"!==this.expiration&&(Ot.validityTo=(0,C.p6)(this.expiration,"yyyy-MM-dd","en-GB")),"No namespace"!==this.usersInfoFormGroup.get("namespace").value&&(Ot.namespace=this.usersInfoFormGroup.get("namespace").value),this.membersService.createSponsoredMembersFromCSV(Ot).subscribe(qe=>{this.state="results",this.finishedWithErrors=Mt.didSomeGenerationFailed(qe),this.loading=!1,this.resultData=qe},()=>this.loading=!1)}parseMemberLine(rt){const kt=rt.trim();if(""===kt)return"";const Ze=kt.split(";"),Ot=this.getSelectedNamespaceRules().csvGenHeader.split(";");if(Ze.length!==Ot.length)return"format";if("mail"===Ot[2].slice(Ot[2].length-4).toLowerCase()&&!Ze[2].trim().match(w.B2))return"email";if("login"===Ot[3]&&""===Ze[3].trim())return"login";let qe="";for(const Tt of Ze)qe+=Tt.trim()+";";return qe.slice(0,-1)}userInputValidator(){return rt=>{const kt=rt.value.split("\n");for(const Ze of kt){const Ot=this.parseMemberLine(Ze);if("format"===Ot)return{invalidFormat:{value:Ze}};if("email"===Ot)return{invalidEmail:{value:Ze}};if("login"===Ot)return{invalidLogin:{value:Ze}}}return null}}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(L.sK),m.Y36(A.x4),m.Y36(e.ff),m.Y36(e.H8),m.Y36(E.qu),m.Y36(A.HV),m.Y36(m.sBO))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-generate-sponsored-members-dialog"]],viewQuery:function(rt,kt){if(1&rt&&m.Gf(i,5),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.stepper=Ze.first)}},decls:8,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"linear",4,"ngIf"],[4,"ngIf"],[3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],["alert_type","error",4,"ngIf"],[1,"mt-2"],[1,"flex-container","mt-2",3,"formGroup"],["formControlName","namespace","required","",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],[1,"font-weight-bold"],[1,"pt-2"],["cols","50","id","voGenerateSponsoredMembers","name","voGenerateSponsoredMembers","formControlName","sponsoredMembers","matInput","","rows","8",1,"md-textarea","form-control",3,"placeholder"],[1,"mb-4"],["alert_type","info",4,"ngIf"],[3,"ngModel","ngModelChange",4,"ngIf"],[3,"expiration","datePicker"],[1,"flex-container",3,"ngModel","change","ngModelChange"],["value","none"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["value","new",3,"disabled"],["value","existing",3,"disabled"],["alert_type","error"],[3,"value"],["alert_type","info"],[3,"ngModel","ngModelChange"],["value","generate"],["value","reset"],["alert_type","info",1,"mt-4"],[1,"mt-4"],[3,"voGroups","asSubgroupChanged","nameChanged","descriptionChanged","parentGroupChanged"],[3,"placeholder","filter"],[3,"groups","selection","disableRouting","displayedColumns","filter","tableId"],[3,"alert_type",4,"ngIf"],[3,"alert_type"],["mat-dialog-actions",""],["mat-flat-button","",3,"click"],["class","ml-auto","mat-flat-button","",3,"click",4,"ngIf"],["color","accent","mat-flat-button","",3,"ml-2","ml-auto","disabled","click",4,"ngIf"],["color","accent","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"ml-auto","dropdown-toggle",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.YNc(4,o,1,0,"mat-spinner",1),m.YNc(5,ie,3,2,"div",2),m.YNc(6,bt,7,6,"div",3),m.YNc(7,xt,15,13,"div",3),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,8,"DIALOGS.GENERATE_SPONSORED_MEMBERS.TITLE")),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading&&void 0!==kt.stepper&&"results"!==kt.state),m.xp6(1),m.Q6J("ngIf","results"===kt.state))},directives:[g.uh,C.O5,O.$g,g.xY,G.Vq,G.C0,G.VY,ne.w,E._Y,E.JL,E.sg,ge.KE,Me.gD,E.JJ,E.u,E.Q7,C.sg,oe.ey,ge.TO,ge.hX,E.Fj,J.Nt,Y.VQ,E.On,Y.U0,ue,Re.gM,Qe.r,Te.L,Ae.W,g.H8,Le.lW,ae.p6,ae.VK,ae.OP],pipes:[L.X$],styles:[".flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Mt})();var It=p(38383);function Rt(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",12)}const Et=function(){return["checkbox","id","fullName","status","sponsored","email"]};function Bt(Mt,Qt){if(1&Mt&&m._UZ(0,"perun-web-apps-members-list",13),2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!0)("hidden",rt.loading)("disableStatusChange",!0)("members",rt.members)("selection",rt.selection)("displayedColumns",m.DdM(7,Et))("tableId",rt.tableId)}}function Jt(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",14),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"DIALOGS.SPONSOR_EXISTING_MEMBER.BEGIN_SEARCH")," "))}let ai=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt){this.dialogRef=rt,this.data=kt,this.store=Ze,this.membersService=Ot,this.notificator=qe,this.translate=Tt,this.loading=!1,this.tableId=_.US,this.expiration="never",this.searchCtrl=new E.NI("",[E.kI.required]),this.firstSearchDone=!1,this.members=[],this.selection=new b.Ov(!0,[])}ngOnInit(){this.theme=this.data.theme}onCancel(){this.dialogRef.close(!1)}sponsor(rt){if(this.loading=!0,0===rt.length)return this.notificator.showSuccess(this.translate.instant("DIALOGS.SPONSOR_EXISTING_MEMBER.SUCCESS")),this.loading=!1,void this.dialogRef.close(!0);const kt=rt.pop();kt.sponsored?this.membersService.sponsorMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1):this.membersService.setSponsorshipForMember(kt.id,this.store.getPerunPrincipal().user.id,this.expiration).subscribe(()=>{this.sponsor(rt)},()=>this.loading=!1)}onSubmit(){this.loading=!0;const rt=Array.from(this.selection.selected);this.expiration="never"===this.expiration?null:this.expiration,this.sponsor(rt)}setExpiration(rt){this.expiration="never"===rt?"never":(0,C.p6)(rt,"yyyy-MM-dd","en-GB")}onSearchByString(){this.searchCtrl.invalid?this.searchCtrl.markAllAsTouched():(this.firstSearchDone=!0,this.loading=!0,this.selection.clear(),this.membersService.findCompleteRichMembersForVo(this.data.voId,[xe.r.MEMBER_DEF_EXPIRATION,xe.r.USER_DEF_PREFERRED_MAIL],this.searchCtrl.value).subscribe(kt=>{this.members=kt,this.loading=!1},()=>this.loading=!1))}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.so),m.Y36(g.WI),m.Y36(A.d6),m.Y36(e.uq),m.Y36(A.V6),m.Y36(L.sK))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsor-existing-member-dialog"]],decls:31,vars:30,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","search-field","adjust-width"],["autocomplete","false","matInput","",3,"formControl","placeholder","keyup.enter"],["color","accent","mat-flat-button","",1,"ml-auto",3,"disabled","click"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"datePicker"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","hidden","disableStatusChange","members","selection","displayedColumns","tableId"],["alert_type","info"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"div",1),m.TgZ(5,"mat-form-field",2),m.TgZ(6,"label"),m.TgZ(7,"input",3),m.NdJ("keyup.enter",function(){return kt.onSearchByString()}),m.ALo(8,"translate"),m.qZA(),m.qZA(),m.TgZ(9,"mat-error"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.qZA(),m.TgZ(12,"button",4),m.NdJ("click",function(){return kt.onSearchByString()}),m._uU(13),m.ALo(14,"translate"),m.qZA(),m.YNc(15,Rt,1,0,"mat-spinner",5),m.YNc(16,Bt,1,8,"perun-web-apps-members-list",6),m.YNc(17,Jt,3,3,"perun-web-apps-alert",7),m.TgZ(18,"div"),m._UZ(19,"br"),m.TgZ(20,"h6"),m._uU(21),m.ALo(22,"translate"),m.qZA(),m.TgZ(23,"perun-web-apps-expiration-select",8),m.NdJ("datePicker",function(Ot){return kt.setExpiration(Ot)}),m.qZA(),m.qZA(),m.qZA(),m.TgZ(24,"div",9),m.TgZ(25,"button",10),m.NdJ("click",function(){return kt.onCancel()}),m._uU(26),m.ALo(27,"translate"),m.qZA(),m.TgZ(28,"button",11),m.NdJ("click",function(){return kt.onSubmit()}),m._uU(29),m.ALo(30,"translate"),m.qZA(),m.qZA(),m.qZA()),2&rt&&(m.Tol(kt.theme),m.xp6(2),m.Oqu(m.lcZ(3,16,"DIALOGS.SPONSOR_EXISTING_MEMBER.TITLE")),m.xp6(5),m.s9C("placeholder",m.lcZ(8,18,"DIALOGS.SPONSOR_EXISTING_MEMBER.DESCRIPTION")),m.Q6J("formControl",kt.searchCtrl),m.xp6(3),m.hij(" ",m.lcZ(11,20,"DIALOGS.SPONSOR_EXISTING_MEMBER.EMPTY_SEARCH_MESSAGE")," "),m.xp6(2),m.Q6J("disabled",kt.loading),m.xp6(1),m.hij(" ",m.lcZ(14,22,"DIALOGS.SPONSOR_EXISTING_MEMBER.SEARCH")," "),m.xp6(2),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",kt.firstSearchDone),m.xp6(1),m.Q6J("ngIf",!kt.firstSearchDone),m.xp6(4),m.Oqu(m.lcZ(22,24,"DIALOGS.SPONSOR_EXISTING_MEMBER.EXPIRATION")),m.xp6(5),m.hij(" ",m.lcZ(27,26,"DIALOGS.SPONSOR_EXISTING_MEMBER.CANCEL")," "),m.xp6(2),m.Q6J("disabled",kt.loading||0===kt.selection.selected.length),m.xp6(1),m.hij(" ",m.lcZ(30,28,"DIALOGS.SPONSOR_EXISTING_MEMBER.SPONSOR")," "))},directives:[g.uh,g.xY,ge.KE,J.Nt,E.Fj,E.JJ,E.oH,ge.TO,Le.lW,C.O5,O.$g,It.O,ne.w,ue,g.H8],pipes:[L.X$],styles:[".adjust-width[_ngcontent-%COMP%]{width:270px}"]}),Mt})();var mi=p(96214),bi=p(84847),yi=p(32075),Wi=p(19352),gn=p(58964),cn=p(18750),Ki=p(50301),Tn=p(11735),rn=p(20919),st=p(5865);function St(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"th",19),m.TgZ(1,"mat-checkbox",20),m.NdJ("change",function(Ze){m.CHM(rt);const Ot=m.oxw();return Ze?Ot.masterToggle():null}),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw();m.xp6(1),m.Q6J("aria-label",rt.checkboxLabel())("checked",rt.selection.hasValue()&&rt.isAllSelected())("indeterminate",rt.selection.hasValue()&&!rt.isAllSelected())}}function ot(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",21),m.TgZ(1,"mat-checkbox",22),m.NdJ("change",function(Ze){const qe=m.CHM(rt).$implicit,Tt=m.oxw();return Ze?Tt.selection.toggle(qe):null})("click",function(Ze){return Ze.stopPropagation()}),m.qZA(),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(1),m.Q6J("aria-label",kt.checkboxLabel(rt))("checked",kt.selection.isSelected(rt))}}function Ke(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.ID")," "))}function vt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",24),m._uU(1),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",rt.member.id," ")}}function F(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NAME")," "))}function Ye(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"userFullName"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member.user)," ")}}function gt(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.EMAIL")," "))}function Dt(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberEmail"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Oqu(m.lcZ(2,1,rt.member))}}function ri(Mt,Qt){1&Mt&&(m.TgZ(0,"th",26),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.LOGIN")," "))}function ti(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m._uU(1),m.ALo(2,"memberLogins"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.member)," ")}}function Di(Mt,Qt){1&Mt&&(m.TgZ(0,"th",23),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.SPONSORS")," "))}function wi(Mt,Qt){if(1&Mt&&(m.TgZ(0,"span"),m._uU(1),m.ALo(2,"userFullName"),m._UZ(3,"br"),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.hij(" ",m.lcZ(2,1,rt.user),"")}}function $i(Mt,Qt){if(1&Mt&&(m.TgZ(0,"td",25),m.YNc(1,wi,4,3,"span",27),m.qZA()),2&Mt){const rt=Qt.$implicit;m.xp6(1),m.Q6J("ngForOf",rt.sponsors)}}function qi(Mt,Qt){1&Mt&&m._UZ(0,"th",23)}function Fi(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"span",30),m.ALo(1,"translate"),m.TgZ(2,"button",31),m.NdJ("mouseenter",function(){return m.CHM(rt),m.oxw(2).disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw(2);return Ze.disableRouting=Ze.routingStrategy})("click",function(){m.CHM(rt);const Ze=m.oxw().$implicit;return m.oxw().resetPassword(Ze)}),m.TgZ(3,"mat-icon"),m._uU(4,"vpn_key"),m.qZA(),m.qZA(),m.qZA()}if(2&Mt){const rt=m.oxw(2);m.Q6J("matTooltipPosition","above")("matTooltip",m.lcZ(1,3,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.PASSWORD_RESET")),m.xp6(2),m.Q6J("disabled",rt.loading)}}function Ji(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"td",25),m.TgZ(1,"button",28),m.NdJ("click",function(){const Ot=m.CHM(rt).$implicit;return m.oxw().showSponsors(Ot)})("mouseenter",function(){return m.CHM(rt),m.oxw().disableRouting=!0})("mouseleave",function(){m.CHM(rt);const Ze=m.oxw();return Ze.disableRouting=Ze.routingStrategy}),m.TgZ(2,"mat-icon"),m._uU(3,"edit"),m.qZA(),m.qZA(),m.YNc(4,Fi,5,5,"span",29),m.qZA()}if(2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.xp6(4),m.Q6J("ngIf",kt.passwdResetAuth(rt))}}function _n(Mt,Qt){1&Mt&&m._UZ(0,"tr",32)}const Ni=function(Mt,Qt){return["/organizations",Mt,"members",Qt]};function Ri(Mt,Qt){if(1&Mt&&m._UZ(0,"tr",33),2&Mt){const rt=Qt.$implicit,kt=m.oxw();m.ekj("cursor-pointer",!kt.disableRouting)("disable-outline",kt.disableRouting),m.Q6J("perunWebAppsMiddleClickRouterLink",kt.disableRouting?null:m.WLB(6,Ni,rt.member.voId,rt.member.id))("routerLink",kt.disableRouting?null:m.WLB(9,Ni,rt.member.voId,rt.member.id))}}function sn(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Xi(Mt,Qt){1&Mt&&(m.TgZ(0,"perun-web-apps-alert",34),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"SHARED.COMPONENTS.SPONSORED_MEMBERS_LIST.NO_SPONSORED_MEMBERS_WARNING"),"\n"))}let en=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe){this.dialog=rt,this.authResolver=kt,this.storeService=Ze,this.attributesManager=Ot,this.tableCheckbox=qe,this.sponsoredMembers=[],this.filterValue="",this.displayedColumns=["id","name","email","logins","sponsors","menu"],this.disableRouting=!1,this.refreshTable=new m.vpe,this.loading=!1,this.routingStrategy=!1,this.pageSizeOptions=w.f7}set matSort(rt){this.sort=rt}static getSortDataForColumn(rt,kt){var Ze;switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?rt.member.user.lastName?rt.member.user.lastName:null!==(Ze=rt.member.user.firstName)&&void 0!==Ze?Ze:"":"";case"sponsors":return rt.sponsors.length.toString();default:return""}}static getDataForColumn(rt,kt){switch(kt){case"id":return rt.member.id.toString();case"name":return rt.member.user?(0,w.bD)(rt.member.user):"";case"sponsors":return rt.sponsors.map(Ze=>(0,w.bD)(Ze.user)).join();default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(rt=>"id"!==rt)),this.setDataSource(),this.routingStrategy=this.disableRouting}exportData(rt){(0,w.O6)((0,w.Xn)(this.dataSource.filteredData,this.displayedColumns,Mt.getDataForColumn),rt)}setDataSource(){this.dataSource||(this.dataSource=new yi.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(rt,kt)=>(0,w.Sd)(rt,kt,this.displayedColumns,Mt.getDataForColumn),this.dataSource.sortData=(rt,kt)=>(0,w.pR)(rt,kt,Mt.getSortDataForColumn)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.sponsoredMembers}showSponsors(rt){const kt=(0,w.kZ)();kt.width="650px",kt.data={sponsors:rt.sponsors,member:rt.member,theme:"vo-theme"},this.dialog.open(Wi.H,kt).afterClosed().subscribe(Ot=>{Ot&&this.refreshTable.emit()})}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(rt){return rt?`${this.selection.isSelected(rt)?"deselect":"select"} row ${rt.member.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}resetPassword(rt){this.loading=!0;const kt=this.storeService.get("password_namespace_attributes").map(Ze=>{const Ot=Ze.split(":");return Ot[Ot.length-1]});this.attributesManager.getLogins(rt.member.userId).subscribe(Ze=>{const Ot=Ze.filter(jt=>kt.includes(jt.friendlyNameParameter)),qe=(0,w.kZ)();qe.width="400px",qe.data={userId:rt.member.userId,memberId:rt.member.id,logins:Ot},this.dialog.open(gn.m,qe).afterClosed().subscribe(()=>{this.loading=!1})},()=>this.loading=!1)}passwdResetAuth(rt){return this.authResolver.isAuthorized("sendPasswordResetLinkEmail_Member_String_String_String_String_policy",[{id:rt.member.voId,beanName:"Vo"},rt.member])}}return Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.H8),m.Y36(A.UA))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-sponsored-members-list"]],viewQuery:function(rt,kt){if(1&rt&&(m.Gf(w.l9,7),m.Gf(bi.YE,7)),2&rt){let Ze;m.iGM(Ze=m.CRH())&&(kt.child=Ze.first),m.iGM(Ze=m.CRH())&&(kt.matSort=Ze.first)}},inputs:{sponsoredMembers:"sponsoredMembers",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",disableRouting:"disableRouting",tableId:"tableId"},outputs:{refreshTable:"refreshTable"},features:[m.TTD],decls:28,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"pageSizeOptions","dataLength","tableId","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["class","align-checkbox","mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","email"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","logins"],["matColumnDef","sponsors"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],[4,"ngFor","ngForOf"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"click","mouseenter","mouseleave"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["aria-label","sponsors of member","mat-icon-button","",1,"dark-hover-list-item",3,"disabled","mouseenter","mouseleave","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div",0),m.TgZ(1,"perun-web-apps-table-wrapper",1),m.NdJ("exportData",function(Ot){return kt.exportData(Ot)}),m.TgZ(2,"table",2),m.ynx(3,3),m.YNc(4,St,2,3,"th",4),m.YNc(5,ot,2,2,"td",5),m.BQk(),m.ynx(6,6),m.YNc(7,Ke,3,3,"th",7),m.YNc(8,vt,2,1,"td",8),m.BQk(),m.ynx(9,9),m.YNc(10,F,3,3,"th",7),m.YNc(11,Ye,3,3,"td",10),m.BQk(),m.ynx(12,11),m.YNc(13,gt,3,3,"th",12),m.YNc(14,Dt,3,3,"td",10),m.BQk(),m.ynx(15,13),m.YNc(16,ri,3,3,"th",12),m.YNc(17,ti,3,3,"td",10),m.BQk(),m.ynx(18,14),m.YNc(19,Di,3,3,"th",7),m.YNc(20,$i,2,1,"td",10),m.BQk(),m.ynx(21,15),m.YNc(22,qi,1,0,"th",7),m.YNc(23,Ji,5,1,"td",10),m.BQk(),m.YNc(24,_n,1,0,"tr",16),m.YNc(25,Ri,1,12,"tr",17),m.qZA(),m.qZA(),m.qZA(),m.YNc(26,sn,3,3,"perun-web-apps-alert",18),m.YNc(27,Xi,3,3,"perun-web-apps-alert",18)),2&rt&&(m.Q6J("hidden",0===kt.dataSource.filteredData.length||0===kt.sponsoredMembers.length),m.xp6(1),m.Q6J("pageSizeOptions",kt.pageSizeOptions)("dataLength",kt.dataSource.filteredData.length)("tableId",kt.tableId),m.xp6(1),m.Q6J("dataSource",kt.dataSource),m.xp6(22),m.Q6J("matHeaderRowDef",kt.displayedColumns),m.xp6(1),m.Q6J("matRowDefColumns",kt.displayedColumns),m.xp6(1),m.Q6J("ngIf",0===kt.dataSource.filteredData.length&&0!==kt.sponsoredMembers.length),m.xp6(1),m.Q6J("ngIf",0===kt.sponsoredMembers.length))},directives:[cn.l,yi.BZ,bi.YE,yi.w1,yi.fO,yi.ge,T.oG,yi.Dz,yi.ev,bi.nU,C.sg,Le.lW,de.Hw,C.O5,Re.gM,yi.as,yi.XQ,yi.nj,yi.Gk,Ki.YH,Tn.rH,ne.w],pipes:[L.X$,Ue.d,rn.D,st.p],styles:[".disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Mt})();function an(Mt,Qt){if(1&Mt&&(m.TgZ(0,"button",10),m._uU(1),m.ALo(2,"translate"),m.qZA()),2&Mt){const rt=m.oxw(),kt=m.MAs(9);m.Q6J("disabled",rt.findSponsorsAuth&&0===rt.voSponsors.length)("matMenuTriggerFor",kt),m.xp6(1),m.hij(" ",m.lcZ(2,3,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE")," ")}}function dn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onCreate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.CREATE_ONE")," "))}function wn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",11),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onGenerate()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.GENERATE")," "))}function xn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"button",12),m.NdJ("click",function(){return m.CHM(rt),m.oxw().onSponsorExistingMember()}),m._uU(1),m.ALo(2,"translate"),m.qZA()}2&Mt&&(m.xp6(1),m.hij(" ",m.lcZ(2,1,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.SPONSOR_EXISTING")," "))}function Oi(Mt,Qt){1&Mt&&m._UZ(0,"mat-spinner",13)}function kn(Mt,Qt){if(1&Mt){const rt=m.EpF();m.TgZ(0,"app-sponsored-members-list",14),m.NdJ("refreshTable",function(){return m.CHM(rt),m.oxw().refresh()}),m.qZA()}if(2&Mt){const rt=m.oxw();m.Q6J("disableRouting",!rt.routeAuth)("selection",rt.selection)("filterValue",rt.searchString)("sponsoredMembers",rt.members)("tableId",rt.tableId)}}let Nn=(()=>{class Mt{constructor(rt,kt,Ze,Ot,qe,Tt){this.membersManager=rt,this.dialog=kt,this.authResolver=Ze,this.storeService=Ot,this.authzResolver=qe,this.entityStorageService=Tt,this.members=[],this.voSponsors=[],this.selection=new b.Ov(!0,[]),this.searchString="",this.loading=!1,this.tableId=_.Bf,this.attrNames=[xe.r.USER_DEF_PREFERRED_MAIL]}ngOnInit(){this.loading=!0,this.vo=this.entityStorageService.getEntity(),this.attrNames=this.attrNames.concat(this.storeService.getLoginAttributeNames()),this.setAuthRights();const rt=["SPONSOR"],kt=new Map;this.authResolver.setRolesAuthorization(rt,this.vo,kt),this.findSponsorsAuth=kt.get(rt[0]).readAuth,this.findSponsorsAuth?this.authzResolver.getAuthzRichAdmins(I.u.SPONSOR,this.vo.id,"Vo",[xe.r.USER_DEF_PREFERRED_MAIL],!1,!1).subscribe(Ot=>{this.voSponsors=Ot,this.refresh()}):this.refresh()}setAuthRights(){this.createAuth=this.authResolver.isAuthorized("createSponsoredMember_Vo_String_Map_String_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.generateAuth=this.authResolver.isAuthorized("createSponsoredMembers_Vo_String_List_User_policy",[this.vo,this.storeService.getPerunPrincipal().user]),this.setSponsorshipAuth=this.authResolver.isAuthorized("setSponsorshipForMember_Member_User_LocalDate_policy",[this.vo,this.storeService.getPerunPrincipal().user]),null!==this.members&&0!==this.members.length&&(this.routeAuth=this.authResolver.isAuthorized("getMemberById_int_policy",[this.vo,this.members[0].member]))}onCreate(){const rt=(0,w.kZ)();rt.width="620px",rt.data={entityId:this.vo.id,voId:this.vo.id,sponsors:this.voSponsors,theme:"vo-theme"},this.dialog.open(V,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onGenerate(){const rt=(0,w.kZ)();rt.width="750px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(Yt,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}onSponsorExistingMember(){const rt=(0,w.kZ)();rt.width="650px",rt.data={voId:this.vo.id,theme:"vo-theme"},this.dialog.open(ai,rt).afterClosed().subscribe(Ze=>{Ze&&(this.loading=!0,this.authzResolver.getPerunPrincipal().subscribe(Ot=>{this.storeService.setPerunPrincipal(Ot),this.refresh()}))})}refresh(){this.loading=!0,this.membersManager.getSponsoredMembersAndTheirSponsors(this.vo.id,this.attrNames).subscribe(rt=>{this.selection.clear(),this.members=rt,this.setAuthRights(),this.loading=!1})}applyFilter(rt){this.searchString=rt}}return Mt.id="VoSponsoredMembersComponent",Mt.\u0275fac=function(rt){return new(rt||Mt)(m.Y36(e.uq),m.Y36(g.uw),m.Y36(A.x4),m.Y36(A.d6),m.Y36(e.Ct),m.Y36(A.fb))},Mt.\u0275cmp=m.Xpm({type:Mt,selectors:[["app-vo-settings-sponsored-members"]],hostVars:2,hostBindings:function(rt,kt){2&rt&&m.ekj("router-component",kt.true)},decls:16,vars:14,consts:[[1,"page-subtitle"],[3,"refresh"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["class","mr-2 dropdown-toggle","color","accent","mat-flat-button","",3,"disabled","matMenuTriggerFor",4,"ngIf"],["menu","matMenu"],["class","action-button","mat-menu-item","",3,"click",4,"ngIf"],["color","accent","class","mr-2 action-button","mat-flat-button","",3,"click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable",4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","dropdown-toggle",3,"disabled","matMenuTriggerFor"],["mat-menu-item","",1,"action-button",3,"click"],["color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],[1,"ml-auto","mr-auto"],[3,"disableRouting","selection","filterValue","sponsoredMembers","tableId","refreshTable"]],template:function(rt,kt){1&rt&&(m.TgZ(0,"div"),m.TgZ(1,"h1",0),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"perun-web-apps-refresh-button",1),m.NdJ("refresh",function(){return kt.refresh()}),m.qZA(),m.TgZ(5,"span",2),m.ALo(6,"translate"),m.YNc(7,an,3,5,"button",3),m.qZA(),m.TgZ(8,"mat-menu",null,4),m.YNc(10,dn,3,3,"button",5),m.YNc(11,wn,3,3,"button",5),m.qZA(),m.YNc(12,xn,3,3,"button",6),m.TgZ(13,"perun-web-apps-immediate-filter",7),m.NdJ("filter",function(Ot){return kt.applyFilter(Ot)}),m.qZA(),m.YNc(14,Oi,1,0,"mat-spinner",8),m.YNc(15,kn,1,5,"app-sponsored-members-list",9),m.qZA()),2&rt&&(m.xp6(2),m.Oqu(m.lcZ(3,10,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.TITLE")),m.xp6(3),m.s9C("matTooltip",m.lcZ(6,12,"VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.NO_SPONSORS")),m.Q6J("matTooltipDisabled",!(kt.findSponsorsAuth&&0===kt.voSponsors.length)),m.xp6(2),m.Q6J("ngIf",kt.createAuth||kt.generateAuth),m.xp6(3),m.Q6J("ngIf",kt.createAuth),m.xp6(1),m.Q6J("ngIf",kt.generateAuth),m.xp6(1),m.Q6J("ngIf",kt.setSponsorshipAuth),m.xp6(1),m.Q6J("placeholder","VO_DETAIL.SETTINGS.SPONSORED_MEMBERS.FILTER"),m.xp6(1),m.Q6J("ngIf",kt.loading),m.xp6(1),m.Q6J("ngIf",!kt.loading))},directives:[mi.t,Re.gM,C.O5,Le.lW,ae.p6,ae.VK,ae.OP,Te.L,O.$g,en],pipes:[L.X$],styles:[""]}),Mt})()},25309:($e,_e,p)=>{"use strict";p.d(_e,{Y:()=>je});var e=p(32105),b=p(9244),_=p(36908),w=p(11717),g=p(20449),A=p(48966),E=p(93075),C=p(5e3),I=p(51062),P=p(11735),m=p(69808),L=p(20773),O=p(67322),G=p(98833),ne=p(47423),ge=p(29772);function J(ye,Be){1&ye&&C._UZ(0,"mat-spinner",3)}function Me(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"div"),C.TgZ(1,"div",4),C.TgZ(2,"mat-form-field"),C._UZ(3,"input",5),C.ALo(4,"translate"),C.TgZ(5,"mat-error"),C._uU(6),C.ALo(7,"translate"),C.qZA(),C.qZA(),C.TgZ(8,"mat-form-field"),C._UZ(9,"input",6),C.ALo(10,"translate"),C.TgZ(11,"mat-error"),C._uU(12),C.ALo(13,"translate"),C.qZA(),C.qZA(),C.qZA(),C.TgZ(14,"div",7),C.TgZ(15,"button",8),C.NdJ("click",function(){return C.CHM(W),C.oxw().onCancel()}),C._uU(16),C.ALo(17,"translate"),C.qZA(),C.TgZ(18,"div",9),C.ALo(19,"translate"),C.TgZ(20,"button",10),C.NdJ("click",function(){return C.CHM(W),C.oxw().onSubmit()}),C._uU(21),C.ALo(22,"translate"),C.qZA(),C.qZA(),C.qZA(),C.qZA()}if(2&ye){const W=C.oxw();C.xp6(3),C.s9C("placeholder",C.lcZ(4,11,"DIALOGS.CREATE_VO.FULL_NAME")),C.Q6J("formControl",W.fullNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(7,13,"DIALOGS.CREATE_VO.FILL_FULL_NAME")," "),C.xp6(3),C.s9C("placeholder",C.lcZ(10,15,"DIALOGS.CREATE_VO.SHORT_NAME")),C.Q6J("formControl",W.shortNameCtrl),C.xp6(3),C.hij(" ",C.lcZ(13,17,"DIALOGS.CREATE_VO.FILL_SHORT_NAME")," "),C.xp6(4),C.hij(" ",C.lcZ(17,19,"DIALOGS.CREATE_VO.CANCEL")," "),C.xp6(2),C.s9C("matTooltip",C.lcZ(19,21,"DIALOGS.CREATE_VO.TOOLTIP")),C.Q6J("matTooltipDisabled",W.shortNameCtrl.valid&&W.fullNameCtrl.valid),C.xp6(2),C.Q6J("disabled",W.shortNameCtrl.invalid||W.fullNameCtrl.invalid),C.xp6(1),C.hij(" ",C.lcZ(22,23,"DIALOGS.CREATE_VO.CREATE")," ")}}let oe=(()=>{class ye{constructor(W,R,me,be,Ie,pe){this.dialogRef=W,this.data=R,this.notificator=me,this.voService=be,this.translate=Ie,this.router=pe,Ie.get("DIALOGS.CREATE_VO.SUCCESS").subscribe(Se=>this.successMessage=Se)}ngOnInit(){this.theme=this.data.theme,this.shortNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern("^[\\w.-]+$"),E.kI.maxLength(33)]),this.fullNameCtrl=new E.NI(null,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.voService.createVoWithName(this.fullNameCtrl.value,this.shortNameCtrl.value).subscribe(W=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.router.navigate(["/organizations",W.id]),this.dialogRef.close(!0)},()=>this.loading=!1)}}return ye.\u0275fac=function(W){return new(W||ye)(C.Y36(A.so),C.Y36(A.WI),C.Y36(_.V6),C.Y36(e.YF),C.Y36(I.sK),C.Y36(P.F0))},ye.\u0275cmp=C.Xpm({type:ye,selectors:[["app-create-vo-dialog"]],decls:6,vars:8,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","data-cy","vo-name-input","required","",3,"formControl","placeholder"],["matInput","","data-cy","vo-shortname-input","required","",3,"formControl","placeholder"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["color","accent","data-cy","create-vo-button","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(W,R){1&W&&(C.TgZ(0,"div"),C.TgZ(1,"h1",0),C._uU(2),C.ALo(3,"translate"),C.qZA(),C.YNc(4,J,1,0,"mat-spinner",1),C.YNc(5,Me,23,25,"div",2),C.qZA()),2&W&&(C.Tol(R.theme),C.xp6(2),C.Oqu(C.lcZ(3,6,"DIALOGS.CREATE_VO.TITLE")),C.xp6(2),C.Q6J("ngIf",R.loading),C.xp6(1),C.Q6J("ngIf",!R.loading))},directives:[A.uh,m.O5,L.$g,A.xY,O.KE,G.Nt,E.Fj,E.Q7,E.JJ,E.oH,O.TO,A.H8,ne.lW,ge.gM],pipes:[I.X$],styles:[".mat-dialog-content[_ngcontent-%COMP%]{height:auto}@media (min-width: 421px) and (max-width: 755px){.mat-dialog-content[_ngcontent-%COMP%]{height:150px}}@media (max-width: 420px){.mat-dialog-content[_ngcontent-%COMP%]{height:175px}}"]}),ye})();var Re=p(10036),T=p(77968),j=p(4235),Y=p(25245),q=p(96214),te=p(7434),ue=p(87831);function de(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"button",9),C.NdJ("click",function(){return C.CHM(W),C.oxw().onCreateVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}2&ye&&(C.xp6(1),C.hij(" ",C.lcZ(2,1,"VO_MANAGEMENT.CREATE_VO")," "))}function Le(ye,Be){if(1&ye){const W=C.EpF();C.TgZ(0,"button",10),C.NdJ("click",function(){return C.CHM(W),C.oxw().onRemoveVo()}),C._uU(1),C.ALo(2,"translate"),C.qZA()}if(2&ye){const W=C.oxw();C.Q6J("disabled",0===W.selection.selected.length),C.xp6(1),C.hij(" ",C.lcZ(2,2,"VO_MANAGEMENT.REMOVE_VO")," ")}}function Ue(ye,Be){1&ye&&C._UZ(0,"mat-spinner",11)}function ze(ye,Be){if(1&ye&&C._UZ(0,"perun-web-apps-vos-list",12),2&ye){const W=C.oxw();C.Q6J("tableId",W.tableId)("displayedColumns",W.displayedColumns)("filterValue",W.filterValue)("recentIds",W.recentIds)("selection",W.selection)("vos",W.vos)}}const le=function(){return{color:"black"}};let je=(()=>{class ye{constructor(W,R,me,be,Ie,pe){this.sideMenuService=W,this.voService=R,this.guiAuthResolver=me,this.dialog=be,this.notificator=Ie,this.apiRequest=pe,this.vos=[],this.recentIds=[],this.filterValue="",this.tableId=Re.tw}ngOnInit(){this.loading=!0,this.selection=new g.Ov(!1,[]),this.createAuth=this.guiAuthResolver.isAuthorized("createVo_Vo_policy",[]),this.deleteAuth=this.guiAuthResolver.isAuthorized("deleteVo_Vo_policy",[]),this.displayedColumns=this.deleteAuth?["checkbox","id","hierarchy","recent","shortName","name"]:["id","recent","hierarchy","shortName","name"],this.refreshTable()}ngAfterViewChecked(){this.sideMenuService.setAccessMenuItems([])}refreshTable(){this.loading=!0,this.selection.clear(),this.apiRequest.dontHandleErrorForNext(),this.voService.getMyEnrichedVos().subscribe(W=>{this.vos=W,this.recentIds=(0,b.vL)("vos"),this.loading=!1},W=>{const R=W.error;"PrivilegeException"===R.name?(this.vos=[],this.loading=!1):this.notificator.showRPCError(R)})}applyFilter(W){this.filterValue=W}onCreateVo(){const W=(0,b.kZ)();W.width="610px",W.data={theme:"vo-theme"},this.dialog.open(oe,W).afterClosed().subscribe(me=>{me&&(this.loading=!0,this.refreshTable())})}onRemoveVo(){const W=(0,b.kZ)();W.width="500px",W.data={theme:"vo-theme",vos:[this.selection.selected[0].vo]},this.dialog.open(w.o,W).afterClosed().subscribe(me=>{me&&this.refreshTable()})}}return ye.id="VoSelectPageComponent",ye.\u0275fac=function(W){return new(W||ye)(C.Y36(T.D),C.Y36(e.YF),C.Y36(_.x4),C.Y36(A.uw),C.Y36(_.V6),C.Y36(_.F5))},ye.\u0275cmp=C.Xpm({type:ye,selectors:[["app-vo-select-page"]],hostVars:2,hostBindings:function(W,R){2&W&&C.ekj("router-component",R.true)},decls:12,vars:11,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5","vo-theme"],[1,"page-title","d-flex"],["svgIcon","perun-vo-black",1,"perun-icon","icon-scale",3,"ngStyle"],[3,"refresh"],["class","mr-2 action-button","data-cy","new-vo-button","color","accent","mat-flat-button","",3,"click",4,"ngIf"],["class","mr-2","color","warn","mat-flat-button","",3,"disabled","click",4,"ngIf"],[3,"autoFocus","placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos",4,"ngIf"],["data-cy","new-vo-button","color","accent","mat-flat-button","",1,"mr-2","action-button",3,"click"],["color","warn","mat-flat-button","",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"tableId","displayedColumns","filterValue","recentIds","selection","vos"]],template:function(W,R){1&W&&(C.TgZ(0,"div",0),C._UZ(1,"perun-web-apps-back-button"),C.TgZ(2,"h1",1),C._UZ(3,"mat-icon",2),C._uU(4),C.ALo(5,"translate"),C.qZA(),C.TgZ(6,"perun-web-apps-refresh-button",3),C.NdJ("refresh",function(){return R.refreshTable()}),C.qZA(),C.YNc(7,de,3,3,"button",4),C.YNc(8,Le,3,4,"button",5),C.TgZ(9,"perun-web-apps-immediate-filter",6),C.NdJ("filter",function(be){return R.applyFilter(be)}),C.qZA(),C.YNc(10,Ue,1,0,"mat-spinner",7),C.YNc(11,ze,1,6,"perun-web-apps-vos-list",8),C.qZA()),2&W&&(C.xp6(3),C.Q6J("ngStyle",C.DdM(10,le)),C.xp6(1),C.hij(" ",C.lcZ(5,8,"VO_MANAGEMENT.TITLE")," "),C.xp6(3),C.Q6J("ngIf",R.createAuth),C.xp6(1),C.Q6J("ngIf",R.deleteAuth),C.xp6(1),C.Q6J("autoFocus",!0)("placeholder","VO_MANAGEMENT.FILTER_PLACEHOLDER"),C.xp6(1),C.Q6J("ngIf",R.loading),C.xp6(1),C.Q6J("ngIf",!R.loading))},directives:[j.W,Y.Hw,m.PC,q.t,m.O5,ne.lW,te.L,L.$g,ue.Z],pipes:[I.X$],styles:[".icon-scale[_ngcontent-%COMP%]{transform:scale(1.7);margin-left:.5rem;margin-top:-.4rem;margin-right:.9rem}"]}),ye})()},9193:($e,_e,p)=>{"use strict";var e=p(22313),b=p(5e3),_=p(11735);let w=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-auth-callback"]],decls:0,vars:0,template:function(ke,pt){},styles:[""]}),fe})();var g=p(32105),A=p(36908),E=p(9244),C=p(16074),I=p(77968),P=p(51062),m=p(48966),L=p(2638),O=p(77446),G=p(93075),ne=p(69808),ge=p(25245),J=p(47423),Me=p(20773),oe=p(98380),Re=p(90508),T=p(29772);function j(fe,at){1&fe&&b._UZ(0,"mat-spinner",3)}function Y(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",4),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NO_RECENTLY_VIEWED")))}function q(fe,at){if(1&fe&&(b.TgZ(0,"div",7),b.TgZ(1,"a",8),b.TgZ(2,"span",9),b._uU(3),b.qZA(),b._UZ(4,"mat-icon",10),b.TgZ(5,"p",11),b._uU(6),b.qZA(),b.qZA(),b.qZA()),2&fe){const ke=at.$implicit;b.xp6(1),b.Gre("",ke.style," item-itself"),b.s9C("matTooltip",ke.tooltip),b.Q6J("routerLink",ke.url),b.xp6(2),b.Oqu(ke.type),b.xp6(1),b.Q6J("svgIcon",ke.cssIcon),b.xp6(2),b.Oqu(ke.label)}}function te(fe,at){if(1&fe&&(b.TgZ(0,"div",5),b.YNc(1,q,7,8,"div",6),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("ngForOf",ke.items)}}let ue=(()=>{class fe{constructor(ke,pt,Vt,qt){this.vosManager=ke,this.groupsManager=pt,this.authResolver=Vt,this.facilitiesManager=qt,this.items=[],this.vosIds=[],this.groupsIds=[],this.facilitiesIds=[],this.existingRecentIds=[],this.vos=[],this.groups=[],this.facilities=[]}ngOnInit(){this.loading=!0,this.recentItems=(0,E.j4)("recent");for(const ke of this.recentItems)switch(ke.type){case"Vo":this.vosIds.push(ke.id);break;case"Group":this.groupsIds.push(ke.id);break;case"Facility":this.facilitiesIds.push(ke.id)}0===this.vosIds.length&&this.vosIds.push(-1),0===this.groupsIds.length&&this.groupsIds.push(-1),0===this.facilitiesIds.length&&this.facilitiesIds.push(-1),this.getVos()}getVos(){this.authResolver.isAuthorized("getVosByIds_List_policy",[])?this.vosManager.getVosByIds(this.vosIds).subscribe(ke=>{this.vos=ke,this.getGroups()}):this.getGroups()}getGroups(){this.authResolver.isAuthorized("getGroupsByIds_List_policy",[])?this.groupsManager.getGroupsByIds(this.groupsIds).subscribe(ke=>{this.groups=ke,this.getFacilities()}):this.getFacilities()}getFacilities(){this.authResolver.isAuthorized("getFacilitiesByIds_List_policy",[])?this.facilitiesManager.getFacilitiesByIds(this.facilitiesIds).subscribe(ke=>{this.facilities=ke,this.addRecentlyViewedToDashboard()}):this.addRecentlyViewedToDashboard()}addRecentlyViewedToDashboard(){for(const ke of this.recentItems)switch(ke.type){case"Vo":{const pt=this.vos.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-vo",url:`/organizations/${pt.id}`,label:pt.name,tooltip:pt.name,style:"vo-btn",type:"Organization"});break}case"Group":{const pt=this.groups.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-group",url:`/organizations/${pt.voId}/groups/${pt.id}`,label:pt.shortName,tooltip:`${ke.voName} : ${pt.name.replace(/:/g," : ")}`,style:"group-btn",type:"Group"});break}case"Facility":{const pt=this.facilities.filter(Vt=>Vt.id===ke.id)[0];pt&&this.items.push({cssIcon:"perun-facility-white",url:`/facilities/${pt.id}`,label:pt.name,tooltip:pt.name,style:"facility-btn",type:"Facility"});break}}this.loading=!1}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.YF),b.Y36(g.ff),b.Y36(A.x4),b.Y36(g.IQ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-dashboard-recently-viewed-button-field"]],decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],["alert_type","info",4,"ngIf"],["class","items-container",4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","info"],[1,"items-container"],["class","item-itself-container","mat-ripple","",4,"ngFor","ngForOf"],["mat-ripple","",1,"item-itself-container"],["queryParamsHandling","merge",3,"routerLink","matTooltip"],[1,"item-type"],[1,"item-pic","perun-icon",3,"svgIcon"],[1,"truncate"]],template:function(ke,pt){1&ke&&(b.YNc(0,j,1,0,"mat-spinner",0),b.YNc(1,Y,3,3,"perun-web-apps-alert",1),b.YNc(2,te,2,1,"div",2)),2&ke&&(b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",0===pt.items.length&&!pt.loading),b.xp6(1),b.Q6J("ngIf",pt.items.length>0))},directives:[ne.O5,Me.$g,oe.w,ne.sg,Re.wG,_.yS,T.gM,ge.Hw],pipes:[P.X$],styles:[".items-container[_ngcontent-%COMP%]{display:grid;grid-gap:0;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));margin:0 -8px}@media (max-width: 768px){.items-container[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(148px,1fr))}}.item-pic[_ngcontent-%COMP%]{color:currentColor;transform:scale(3);height:74px;margin-bottom:22px;align-self:center}.item-itself-container[_ngcontent-%COMP%]{margin:8px}.item-itself[_ngcontent-%COMP%]{text-align:center;min-height:186px;height:100%;padding:20px;display:flex;flex-direction:column;font-size:1.25rem;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%]:hover{text-decoration:none}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:120px;margin-bottom:10px}@media (max-width: 768px){.item-itself[_ngcontent-%COMP%]{min-height:150px;padding:10px;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.item-itself[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:80px;margin-bottom:10px}}.item-type[_ngcontent-%COMP%]{font-size:.75rem}.truncate[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}"]}),fe})();var de=p(87831),Le=p(24179),Ue=p(62109),ze=p(74010);function le(fe,at){1&fe&&b._UZ(0,"mat-spinner",7)}const je=function(){return["id","recent","shortName","name"]};function ye(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-vos-list",8),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,je))("recentIds",ke.recentIds)("vos",ke.objects)}}const Be=function(){return["id","recent","vo","name","description"]};function W(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-groups-list",9),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(4,Be))("groups",ke.objects)("recentIds",ke.recentIds)}}const R=function(){return["id","recent","name","vo","facility"]};function me(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-resources-list",10),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("pageSizeOptions",null)("displayedColumns",b.DdM(5,R))("resources",ke.objects)("recentIds",ke.recentIds)("routingVo",!0)}}const be=function(){return["id","recent","name","description"]};function Ie(fe,at){if(1&fe&&(b.TgZ(0,"span"),b._UZ(1,"perun-web-apps-facilities-list",11),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("displayedColumns",b.DdM(4,be))("facilities",ke.objects)("pageSizeOptions",null)("recentIds",ke.recentIds)}}function pe(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,ye,2,5,"span",6),b.YNc(2,W,2,5,"span",6),b.YNc(3,me,2,6,"span",6),b.YNc(4,Ie,2,5,"span",6),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("ngIf","Vo"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Group"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Resource"===ke.primaryObject),b.xp6(1),b.Q6J("ngIf","Facility"===ke.primaryObject)}}let Se=(()=>{class fe{constructor(ke,pt,Vt){this.authzResolver=ke,this.guiAuthResolver=pt,this.resourceService=Vt,this.loading=!1,this.recentIds=[]}ngOnInit(){this.loading=!0,this.primaryObject=this.guiAuthResolver.getPrimaryObjectOfRole(this.roleName),this.svgIcon="perun-"+this.primaryObject.toLowerCase()+"-black",this.title="USER_DETAIL.DASHBOARD.CARD_TITLE_"+this.roleName,this.roleTooltipInfo="USER_DETAIL.DASHBOARD.ROLE_INFO_"+this.roleName,this.getObjects()}getObjects(){switch(this.primaryObject){case"Vo":this.authzResolver.getVosWhereUserIsInRoles([this.roleName]).subscribe(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("vos"),this.loading=!1});break;case"Group":this.authzResolver.getGroupsWhereUserIsInRoles([this.roleName]).subscribe(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("groups"),this.loading=!1});break;case"Resource":this.resourceService.getRichResourcesByIds(this.role[this.primaryObject]).subscribe(ke=>{this.objects=ke,this.recentIds=(0,E.vL)("resources"),this.loading=!1});break;case"Facility":this.authzResolver.getFacilitiesWhereUserIsInRoles([this.roleName]).subscribe(ke=>{this.objects=ke.map(pt=>({facility:pt})),this.recentIds=(0,E.vL)("facilities"),this.loading=!1});break;default:this.objects=[],this.loading=!1}}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Ct),b.Y36(A.x4),b.Y36(g.xk))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-dashboard-card"]],inputs:{role:"role",roleName:"roleName"},decls:11,vars:9,consts:[[1,"card","p-3"],[1,"flex-column","card-title"],[1,"cover-image",3,"svgIcon"],["matTooltipPosition","above",3,"matTooltip"],[1,"dashboard-icon"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"pageSizeOptions","displayedColumns","recentIds","vos"],[3,"pageSizeOptions","displayedColumns","groups","recentIds"],[3,"pageSizeOptions","displayedColumns","resources","recentIds","routingVo"],[3,"displayedColumns","facilities","pageSizeOptions","recentIds"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b._UZ(2,"mat-icon",2),b._uU(3),b.ALo(4,"translate"),b.TgZ(5,"span",3),b.ALo(6,"translate"),b.TgZ(7,"mat-icon",4),b._uU(8,"info_outline"),b.qZA(),b.qZA(),b.qZA(),b.YNc(9,le,1,0,"mat-spinner",5),b.YNc(10,pe,5,4,"div",6),b.qZA()),2&ke&&(b.xp6(2),b.Q6J("svgIcon",pt.svgIcon),b.xp6(1),b.hij(" ",b.lcZ(4,5,pt.title)," "),b.xp6(2),b.s9C("matTooltip",b.lcZ(6,7,pt.roleTooltipInfo)),b.xp6(4),b.Q6J("ngIf",pt.loading),b.xp6(1),b.Q6J("ngIf",!pt.loading))},directives:[ge.Hw,T.gM,ne.O5,Me.$g,de.Z,Le.W,Ue.C,ze.X],pipes:[P.X$],styles:[".dashboard-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}.card-title[_ngcontent-%COMP%]{font-size:1.4rem;flex-wrap:wrap}.cover-image[_ngcontent-%COMP%]{transform:scale(1.8);margin-left:.9rem;margin-right:.7rem}"]}),fe})();var Xe=p(31359);function Je(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"mat-checkbox",8),b.NdJ("change",function(Vt){const ni=b.CHM(ke).$implicit,pi=b.oxw();return Vt?pi.changeRoleView(ni):null}),b._uU(2),b.ALo(3,"translate"),b.qZA(),b.qZA()}if(2&fe){const ke=at.$implicit,pt=b.oxw();b.xp6(1),b.Q6J("checked",pt.isRoleShowed(ke)),b.xp6(1),b.Oqu(b.lcZ(3,2,"USER_DETAIL.DASHBOARD.CARD_TITLE_"+ke))}}function nt(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"button",15),b.NdJ("click",function(){return b.CHM(ke),b.oxw(2).rightSettingOpened=!0}),b.TgZ(1,"mat-icon"),b._uU(2,"settings"),b.qZA(),b.qZA()}}function Ve(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO_NO_USER_PROFILE")))}function X(fe,at){1&fe&&(b.TgZ(0,"span"),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"USER_DETAIL.DASHBOARD.NOT_MANAGER_INFO")))}function z(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(ke),b.oxw(3).goToUserProfile()}),b.TgZ(1,"mat-icon",24),b._uU(2,"exit_to_app"),b.qZA(),b._uU(3),b.ALo(4,"translate"),b.qZA()}if(2&fe){const ke=b.oxw(3);b.xp6(3),b.AsE("",b.lcZ(4,2,"USER_DETAIL.DASHBOARD.GO_TO_USER_PROFILE")," ",ke.userProfileName," ")}}const Q=function(){return["/myProfile"]};function D(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.TgZ(1,"div",16),b.TgZ(2,"div",17),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.TgZ(5,"div",18),b.YNc(6,Ve,3,3,"span",14),b.YNc(7,X,3,3,"span",14),b.qZA(),b.TgZ(8,"div",19),b.TgZ(9,"button",20),b._UZ(10,"mat-icon",21),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,z,5,4,"button",22),b.qZA(),b.qZA(),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(3),b.hij(" ",b.lcZ(4,6,"USER_DETAIL.DASHBOARD.NOT_MANAGER")," "),b.xp6(3),b.Q6J("ngIf",!ke.userProfileUrl),b.xp6(1),b.Q6J("ngIf",ke.userProfileUrl),b.xp6(2),b.Q6J("routerLink",b.DdM(10,Q)),b.xp6(2),b.hij(" ",b.lcZ(12,8,"USER_DETAIL.DASHBOARD.GO_TO_MY_PROFILE")," "),b.xp6(2),b.Q6J("ngIf",ke.userProfileUrl)}}function H(fe,at){1&fe&&(b.TgZ(0,"span"),b.TgZ(1,"div",3),b._uU(2),b.ALo(3,"translate"),b.qZA(),b._UZ(4,"app-perun-web-apps-dashboard-recently-viewed-button-field"),b.qZA()),2&fe&&(b.xp6(2),b.hij(" ",b.lcZ(3,1,"USER_DETAIL.DASHBOARD.RECENTLY_VIEWED")," "))}function V(fe,at){1&fe&&(b.TgZ(0,"div",27),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"USER_DETAIL.DASHBOARD.MANAGEABLE_ENTITIES")," "))}function xe(fe,at){if(1&fe&&b._UZ(0,"app-perun-web-apps-dashboard-card",30),2&fe){const ke=b.oxw().$implicit,pt=b.oxw(3);b.Q6J("roleName",ke)("role",pt.roles[ke])}}function Qe(fe,at){if(1&fe&&(b.TgZ(0,"div",28),b.YNc(1,xe,1,2,"app-perun-web-apps-dashboard-card",29),b.qZA()),2&fe){const ke=at.$implicit,pt=b.oxw(3);b.xp6(1),b.Q6J("ngIf",pt.isRoleShowed(ke))}}function Te(fe,at){if(1&fe&&(b.TgZ(0,"div"),b.YNc(1,H,5,3,"span",14),b.YNc(2,V,3,3,"div",25),b.TgZ(3,"div"),b.YNc(4,Qe,2,1,"div",26),b.qZA(),b.qZA()),2&fe){const ke=b.oxw(2);b.xp6(1),b.Q6J("ngIf",ke.recentlyViewedShow),b.xp6(1),b.Q6J("ngIf",ke.rolesToHide.toString()!==ke.roleNames.toString()),b.xp6(2),b.Q6J("ngForOf",ke.roleNames)}}function Ae(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b.TgZ(1,"h1",10),b._UZ(2,"mat-icon",11),b.TgZ(3,"span",12),b._uU(4),b.ALo(5,"translate"),b.ALo(6,"userFullName"),b.qZA(),b.YNc(7,nt,3,0,"button",13),b.qZA(),b.YNc(8,D,14,11,"div",14),b.YNc(9,Te,5,3,"div",14),b.qZA()),2&fe){const ke=b.oxw();b.xp6(4),b.AsE("",b.lcZ(5,5,"USER_DETAIL.DASHBOARD.TITLE")," ",b.lcZ(6,7,ke.user),""),b.xp6(3),b.Q6J("ngIf",!ke.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",ke.isOnlySelfRole),b.xp6(1),b.Q6J("ngIf",!ke.isOnlySelfRole)}}let ae=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.userManager=ke,this.storeService=pt,this.sideMenuService=Vt,this.route=qt,this.router=ni,this.notificator=pi,this.translateService=oi,this.dialog=Si,this.apiRequestConfiguration=Gi,this.otherApplicationService=An,this.roles={},this.userProfileUrl="",this.isOnlySelfRole=!1,this.rightSettingOpened=!1,this.recentlyViewedShow=!0,this.rolesToHide=[],this.allowedRoles=["VOADMIN","GROUPADMIN","FACILITYADMIN","SPONSOR","RESOURCEADMIN","TOPGROUPCREATOR","VOOBSERVER","GROUPOBSERVER","FACILITYOBSERVER","RESOURCEOBSERVER"],oi.get("USER_DETAIL.DASHBOARD.MAIL_CHANGE_SUCCESS").subscribe(jn=>this.mailSuccessMessage=jn)}ngOnInit(){this.sideMenuService.setHomeItems([]),this.validatePreferredMailChange(),this.user=this.storeService.getPerunPrincipal().user,this.roles=this.storeService.getPerunPrincipal().roles,this.getUserProfile();const ke=Object.keys(this.roles);this.isOnlySelfRole=ke.toString()===["SELF"].toString(),this.roleNames=this.allowedRoles.filter(pt=>ke.includes(pt)),this.getDashboardSettings()}goToUserProfile(){window.open(this.userProfileUrl)}recentlyViewedChanged(){localStorage.setItem("showRecentlyViewed",JSON.stringify(this.recentlyViewedShow))}changeRoleView(ke){if(this.isRoleShowed(ke)){const pt=[];for(const Vt of this.roleNames)this.isRoleShowed(Vt)||pt.push(Vt),Vt===ke&&pt.push(Vt);this.rolesToHide=pt}else this.rolesToHide=this.rolesToHide.filter(pt=>pt!==ke);localStorage.setItem("rolesToHide",JSON.stringify(this.rolesToHide))}isRoleShowed(ke){return!this.rolesToHide.includes(ke)}validatePreferredMailChange(){const ke=this.route.snapshot.queryParamMap,pt=ke.get("token"),Vt=ke.get("u");pt&&Vt&&(this.apiRequestConfiguration.dontHandleErrorForNext(),this.userManager.validatePreferredEmailChangeWithToken(pt,Number.parseInt(Vt,10)).subscribe(()=>{this.notificator.showSuccess(this.mailSuccessMessage),this.router.navigate([],{replaceUrl:!0})},()=>{const qt=(0,E.kZ)();qt.width="600px",this.dialog.open(C.qD,qt).afterClosed().subscribe(()=>{this.getDashboardSettings()})}))}getDashboardSettings(){const ke=JSON.parse(localStorage.getItem("showRecentlyViewed"));this.recentlyViewedShow=null===ke||ke;const pt=JSON.parse(localStorage.getItem("rolesToHide"));this.rolesToHide=null===pt?[]:pt}getUserProfile(){this.userProfileUrl=this.otherApplicationService.getUrlForOtherApplication("profile"),this.userProfileName=this.storeService.get("profile_label_en")}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Fv),b.Y36(A.d6),b.Y36(I.D),b.Y36(_.gz),b.Y36(_.F0),b.Y36(A.V6),b.Y36(P.sK),b.Y36(m.uw),b.Y36(A.F5),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-user-dashboard"]],hostVars:2,hostBindings:function(ke,pt){2&ke&&b.ekj("router-component",pt.true)},decls:16,vars:13,consts:[["hasBackdrop","true",1,"dashboard"],["mode","over","position","end",3,"opened","openedChange"],[1,"m-4","user-theme"],[1,"page-subtitle"],[3,"ngModel","ngModelChange","change"],[1,"text-bigger","mt-1","mb-1"],[4,"ngFor","ngForOf"],["class","container-fluid pl-xl-5 pr-xl-5 user-theme",4,"ngIf"],[3,"checked","change"],[1,"container-fluid","pl-xl-5","pr-xl-5","user-theme"],[1,"page-title","d-flex"],["svgIcon","perun-home-white",1,"home-image","perun-icon"],["data-cy","dashboard-welcome",1,"pt-1"],["class","ml-auto text-bigger","mat-stroked-button","",3,"click",4,"ngIf"],[4,"ngIf"],["mat-stroked-button","",1,"ml-auto","text-bigger",3,"click"],[1,"card","m-3","p-5"],[1,"text-align"],[1,"text-align","pt-3"],[1,"mx-auto","pt-3"],["mat-stroked-button","",1,"text-bigger",3,"routerLink"],["svgIcon","perun-user-dark",1,"mr-1","user-icon","perun-icon"],["class","text-bigger ml-2 mt-2","mat-stroked-button","",3,"click",4,"ngIf"],["mat-stroked-button","",1,"text-bigger","ml-2","mt-2",3,"click"],[1,"mr-1"],["class","page-subtitle mt-4",4,"ngIf"],["class","mb-3",4,"ngFor","ngForOf"],[1,"page-subtitle","mt-4"],[1,"mb-3"],[3,"roleName","role",4,"ngIf"],[3,"roleName","role"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"mat-sidenav-container",0),b.TgZ(1,"mat-sidenav",1),b.NdJ("openedChange",function(qt){return pt.rightSettingOpened=qt}),b.TgZ(2,"div",2),b.TgZ(3,"div",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"mat-checkbox",4),b.NdJ("ngModelChange",function(qt){return pt.recentlyViewedShow=qt})("change",function(qt){return qt?pt.recentlyViewedChanged():null}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA(),b.TgZ(10,"div",5),b._uU(11),b.ALo(12,"translate"),b.qZA(),b.YNc(13,Je,4,4,"div",6),b.qZA(),b.qZA(),b.TgZ(14,"mat-sidenav-content"),b.YNc(15,Ae,10,9,"div",7),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.Q6J("opened",pt.rightSettingOpened),b.xp6(3),b.Oqu(b.lcZ(5,7,"USER_DETAIL.DASHBOARD.DASHBOARD_SETTINGS")),b.xp6(3),b.Q6J("ngModel",pt.recentlyViewedShow),b.xp6(1),b.Oqu(b.lcZ(9,9,"USER_DETAIL.DASHBOARD.SHOW_RECENTLY_VIEWED")),b.xp6(3),b.Oqu(b.lcZ(12,11,"USER_DETAIL.DASHBOARD.SHOW_ROLES")),b.xp6(2),b.Q6J("ngForOf",pt.roleNames),b.xp6(2),b.Q6J("ngIf",void 0!==pt.user))},directives:[L.TM,L.JX,O.oG,G.JJ,G.On,ne.sg,L.Rh,ne.O5,ge.Hw,J.lW,_.rH,ue,Se],pipes:[P.X$,Xe.d],styles:[".dashboard-container[_ngcontent-%COMP%]{-moz-columns:300px 2;columns:300px 2;-moz-column-gap:1rem;column-gap:1rem;margin:0}.dashboard-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:0 1rem 1rem 0;display:inline-block;min-width:300px;width:100%}.home-image[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.7rem;margin-left:.6rem}.text-align[_ngcontent-%COMP%]{text-align:center;font-size:1.25rem}.text-bigger[_ngcontent-%COMP%]{font-size:1.1rem}.user-icon[_ngcontent-%COMP%]{vertical-align:top}.dashboard[_ngcontent-%COMP%]{position:relative;min-height:calc(100vh - 234px);margin-bottom:-60px!important;padding-bottom:50px;top:-10px!important;left:0;right:0}"]}),fe})();var i=p(4235);let o=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-web-apps-not-found-page"]],decls:5,vars:3,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b._UZ(1,"perun-web-apps-back-button"),b.TgZ(2,"h1",1),b._uU(3),b.ALo(4,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(3),b.Oqu(b.lcZ(4,1,"GENERAL.PAGE_NOT_FOUND.TITLE")))},directives:[i.W],pipes:[P.X$],styles:[""]}),fe})();var d=p(387),l=p(67322),s=p(98833),r=p(63189);let t=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez,J.ot,ge.Ps,_.Bz,d.ez,P.aw,l.lN,G.UX,s.c,r.r]]}),fe})(),n=(()=>{class fe{constructor(ke,pt){this.auth=ke,this.router=pt}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.e8),b.Y36(_.F0))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h4",3),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.startAuth()}),b._uU(7),b.ALo(8,"translate"),b.TgZ(9,"mat-icon"),b._uU(10," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.xp6(4),b.hij(" ",b.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),b.xp6(3),b.hij(" ",b.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[J.lW,ge.Hw],pipes:[P.X$],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),fe})();var a=p(41619);function c(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"div",9),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}function h(fe,at){if(1&fe&&(b.TgZ(0,"div",10),b._UZ(1,"div",11),b._UZ(2,"mat-icon",12),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}function x(fe,at){if(1&fe&&(b.TgZ(0,"div",8),b._UZ(1,"a",9),b.qZA()),2&fe){const ke=b.oxw();b.xp6(1),b.Q6J("innerHTML",ke.logo,b.oJD)}}const We=function(fe){return{color:fe}};function At(fe,at){if(1&fe&&(b.TgZ(0,"p",13),b._uU(1),b.qZA()),2&fe){const ke=b.oxw();b.Q6J("ngStyle",b.VKq(2,We,ke.textColor)),b.xp6(1),b.hij(" ",ke.headerTitle," ")}}const Ht=function(fe,at){return{background:fe,color:at}},lt=function(fe,at){return{"min-height":fe,"background-color":at}};let Ut=(()=>{class fe{constructor(ke,pt,Vt,qt){this.storeService=ke,this.sanitizer=pt,this.preferredLangService=Vt,this.translateService=qt,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const ke=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(ke)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.BN),b.Y36(P.sK))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.YNc(1,c,2,1,"div",1),b.YNc(2,h,3,1,"div",2),b.YNc(3,x,2,1,"div",1),b.YNc(4,At,2,4,"p",3),b.qZA(),b.TgZ(5,"div",4),b.TgZ(6,"div",5),b.TgZ(7,"div",6),b._UZ(8,"router-outlet"),b.qZA(),b.TgZ(9,"div",7),b._UZ(10,"perun-web-apps-footer"),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.WLB(6,Ht,pt.headerBackgroundColor,pt.headerTextColor)),b.xp6(1),b.Q6J("ngIf","admin-gui"===pt.application),b.xp6(1),b.Q6J("ngIf","publications"===pt.application),b.xp6(1),b.Q6J("ngIf","user-profile"===pt.application),b.xp6(1),b.Q6J("ngIf",!!pt.headerTitle),b.xp6(2),b.Q6J("ngStyle",b.WLB(9,lt,pt.getContentInnerMinHeight(),pt.contentBackgroundColor)))},directives:[ne.PC,ne.O5,ge.Hw,_.lC,a.$],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),fe})();function mt(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",8),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.hij(" ",b.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}const Ee=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"redirect",component:d.t$},{path:"api-callback",component:w},{path:"login",component:n},{path:"service-access",component:(()=>{class fe{constructor(ke){this.authzService=ke,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new G.NI(null,[G.kI.required]),this.passwordCtrl=new G.NI(null,[G.kI.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(ke=>{sessionStorage.setItem("baPrincipal",JSON.stringify(ke)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(g.Ct))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.TgZ(2,"div",2),b.TgZ(3,"h2"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.YNc(6,mt,3,3,"perun-web-apps-alert",3),b.TgZ(7,"mat-form-field",4),b.TgZ(8,"mat-label"),b._uU(9),b.ALo(10,"translate"),b.qZA(),b._UZ(11,"input",5),b.TgZ(12,"mat-error"),b._uU(13),b.ALo(14,"translate"),b.qZA(),b.qZA(),b.TgZ(15,"mat-form-field",4),b.TgZ(16,"mat-label"),b._uU(17),b.ALo(18,"translate"),b.qZA(),b._UZ(19,"input",6),b.TgZ(20,"mat-error"),b._uU(21),b.ALo(22,"translate"),b.qZA(),b.qZA(),b.TgZ(23,"button",7),b.NdJ("click",function(){return pt.startAuth()}),b._uU(24),b.ALo(25,"translate"),b.TgZ(26,"mat-icon"),b._uU(27," login "),b.qZA(),b.qZA(),b.qZA(),b.qZA(),b.qZA()),2&ke&&(b.xp6(4),b.Oqu(b.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),b.xp6(2),b.Q6J("ngIf",pt.wrongUsernameOrPassword),b.xp6(3),b.Oqu(b.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),b.xp6(2),b.Q6J("formControl",pt.usernameCtrl),b.xp6(2),b.hij(" ",b.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),b.xp6(4),b.Oqu(b.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),b.xp6(2),b.Q6J("formControl",pt.passwordCtrl)("type","password"),b.xp6(2),b.hij(" ",b.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),b.xp6(2),b.Q6J("disabled",pt.usernameCtrl.invalid||pt.passwordCtrl.invalid),b.xp6(1),b.hij(" ",b.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[ne.O5,oe.w,l.KE,l.hX,s.Nt,G.Fj,G.Q7,G.JJ,G.oH,l.TO,J.lW,ge.Hw],pipes:[P.X$],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),fe})()},{path:"organizations",loadChildren:()=>Promise.all([p.e(357),p.e(462),p.e(243),p.e(858)]).then(p.bind(p,60858)).then(fe=>fe.VosModule)},{path:"admin",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(462),p.e(417)]).then(p.bind(p,78417)).then(fe=>fe.AdminModule)},{path:"facilities",loadChildren:()=>Promise.all([p.e(357),p.e(142),p.e(462),p.e(417),p.e(243),p.e(958)]).then(p.bind(p,12958)).then(fe=>fe.FacilitiesModule)},{path:"myProfile",loadChildren:()=>Promise.all([p.e(357),p.e(142)]).then(p.bind(p,46142)).then(fe=>fe.UsersModule)},{path:"home",component:ae},{path:"notAuthorized",component:d.y9},{path:"**",component:o}];let Ge=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[_.Bz.forRoot(Ee,{preloadingStrategy:_.GZ,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],_.Bz]}),fe})();var U=p(72077),k=p(14264);class ie{constructor(at,ke="/assets/i18n/",pt=".json"){this.http=at,this.prefix=ke,this.suffix=pt}getTranslation(at){return this.http.get(`${this.prefix}${at}${this.suffix}`)}}var ce=p(40520),He=p(76360);let ct=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({providers:[A.e8],imports:[[ne.ez]]}),fe})();var bt=p(81847),xt=p(4732),Yt=p(94856),It=p(55857),Rt=p(37240),Et=p(15592),Bt=p(75234),Jt=p(37380),ai=p(34904),mi=p(85243),bi=p(68056),yi=p(24219),Wi=p(25828),gn=p(10369),cn=p(14336),Ki=p(25309),Tn=p(86353),rn=p(3246),st=p(57788),St=p(80774),ot=p(25610);let vt=(()=>{class fe{constructor(){this.allowCachePages=[{type:"vo",components:[bt.y.id,xt.G.id,Yt.c.id,bi.z.id,yi.z.id,gn.w.id,rn.T.id]},{type:"group",components:[Bt.y.id,Et.u.id,Rt.q.id,It.W.id,cn.Z.id]},{type:"facility",components:[Jt.o.id,ai.f.id,ot._.id]},{type:"member",components:[mi.j.id]},{type:"admin",components:[Wi.t.id,st.g.id,St.F.id]},{type:"entitySelect",components:[Ki.Y.id,Tn.P.id]}],this.cacheTimeMs=3e5,this.resets=[{lastValue:null,resetType:"vo",resetPath:":voId",param:"voId"},{lastValue:null,resetType:"group",resetPath:":voId/groups/:groupId",param:"groupId"},{lastValue:null,resetType:"facility",resetPath:":facilityId",param:"facilityId"},{lastValue:null,resetType:"member",resetPath:":voId/members/:memberId",param:"memberId"},{lastValue:null,resetType:"admin",resetPath:"admin/users"}],this.isUserNavigatingBack=!1,this.typeToComponentToHandlers=new Map;for(const ke of this.allowCachePages)this.typeToComponentToHandlers.set(ke.type,new Map)}static getCurrentTimestamp(){return+Date.now()}static getComponentName(ke){return ke.id}static getPath(ke){var pt,Vt;return null!==(Vt=null===(pt=ke.routeConfig)||void 0===pt?void 0:pt.path)&&void 0!==Vt?Vt:""}shouldReuseRoute(ke,pt){return this.checkResets(pt),ke.routeConfig===pt.routeConfig}retrieve(ke){if(ke.component){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt)){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);return void 0===qt?null:qt.routeHandle}}return null}shouldAttach(ke){if(!this.isUserNavigatingBack)return!1;if(ke.component){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages){const qt=this.typeToComponentToHandlers.get(Vt.type).get(pt);if(void 0!==qt&&fe.getCurrentTimestamp()-qt.saveTimeStamp0;)document.getElementsByTagName("mat-tooltip-component")[0].remove();const Vt=this.getComponentType(ke);this.typeToComponentToHandlers.get(Vt).set(fe.getComponentName(ke.component),{routeHandle:pt,saveTimeStamp:fe.getCurrentTimestamp()})}}setLastNavigationType(ke){this.isUserNavigatingBack="back"===ke}checkResets(ke){const pt=fe.getPath(ke);for(const Vt of this.resets)if(Vt.resetPath===pt){const qt=String(ke.params[Vt.param]);null!==Vt.lastValue&&Vt.lastValue!==qt&&this.typeToComponentToHandlers.get(Vt.resetType).clear(),Vt.lastValue=qt}}getComponentType(ke){const pt=fe.getComponentName(ke.component);for(const Vt of this.allowCachePages)if(Vt.components.includes(pt))return Vt.type;return null}}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac}),fe})();const F=new b.OlP("perun-api-service");let Ye=(()=>{class fe{constructor(ke,pt,Vt,qt,ni){this.http=ke,this.storeService=pt,this.authzSevice=Vt,this.titleService=qt,this.utilsService=ni}initializeColors(ke,pt){return new Promise(Vt=>{pt.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni)}),ke.forEach(qt=>{const ni=this.storeService.get("theme",qt.configValue);document.documentElement.style.setProperty(qt.cssVariable,ni),this.setEntityTheme(qt.entity,ni)}),Vt()})}setEntityTheme(ke,pt){const Vt=function gt(fe){return[Dt(tinycolor(fe).lighten(52),"50"),Dt(tinycolor(fe).lighten(37),"100"),Dt(tinycolor(fe).lighten(26),"200"),Dt(tinycolor(fe).lighten(12),"300"),Dt(tinycolor(fe).lighten(6),"400"),Dt(tinycolor(fe),"500"),Dt(tinycolor(fe).darken(6),"600"),Dt(tinycolor(fe).darken(12),"700"),Dt(tinycolor(fe).darken(18),"800"),Dt(tinycolor(fe).darken(24),"900"),Dt(tinycolor(fe).lighten(50).saturate(30),"A100"),Dt(tinycolor(fe).lighten(30).saturate(30),"A200"),Dt(tinycolor(fe).lighten(10).saturate(15),"A400"),Dt(tinycolor(fe).lighten(5).saturate(5),"A700")]}(pt);for(const qt of Vt){const oi=`--${ke}-theme-primary-contrast-${qt.name}`,Si=qt.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${ke}-theme-primary-${qt.name}`,`${qt.red},${qt.green},${qt.blue}`),document.documentElement.style.setProperty(oi,Si)}}loadAppDefaultConfig(){return new Promise(ke=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{this.storeService.setDefaultConfig(pt),ke()})})}loadAppInstanceConfig(){return new Promise(ke=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(pt=>{var Vt;this.storeService.setInstanceConfig(pt);const qt=document.location.hostname;(null===(Vt=null==pt?void 0:pt.brandings)||void 0===Vt?void 0:Vt[qt])&&this.storeService.setBanding(qt),ke()},()=>{ke()})})}getNoCacheHeaders(){return new ce.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(ke=>{const pt=document.querySelector("link[rel*='icon']")||document.createElement("link");pt.type="image/x-icon",pt.rel="shortcut icon",pt.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(pt),ke()})}setApiUrl(){return new Promise(ke=>{let pt=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(pt=pt.replace("oauth","ba")),this.authzSevice.configuration.basePath=pt,this.titleService.setTitle(this.storeService.get("document_title","en")),ke()})}loadAppsConfig(){return new Promise((ke,pt)=>{this.utilsService.getAppsConfig().subscribe(Vt=>{this.storeService.setAppsConfig(Vt),ke()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(ce.eN),b.LFG(A.d6),b.LFG(g.Ct),b.LFG(e.Dx),b.LFG(g.FW))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function Dt(fe,at){const ke=tinycolor(fe),pt=ke.toRgb();return{name:at,hex:ke.toHexString(),darkContrast:ke.isLight(),red:pt.r,green:pt.g,blue:pt.b}}let ri=(()=>{class fe{constructor(ke,pt){this.data=ke,this.location=pt}redirect(){this.location.go("/"),location.reload()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.WI),b.Y36(ne.Ye))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-prevent-proxy-overload-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.redirect()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[P.X$],styles:[""]}),fe})(),ti=(()=>{class fe{constructor(ke,pt){this.dialogRef=ke,this.data=pt}refresh(){location.reload()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.so),b.Y36(m.WI))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-server-down-dialog"]],decls:10,vars:9,consts:[[3,"click"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"h2"),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.TgZ(3,"p"),b._uU(4),b.ALo(5,"translate"),b.qZA(),b.TgZ(6,"div"),b.TgZ(7,"button",0),b.NdJ("click",function(){return pt.refresh()}),b._uU(8),b.ALo(9,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.hij(" ",b.lcZ(2,3,pt.data.title),"\n"),b.xp6(3),b.hij(" ",b.lcZ(5,5,pt.data.message),"\n"),b.xp6(4),b.hij(" ",b.lcZ(9,7,pt.data.action)," "))},pipes:[P.X$],styles:[""]}),fe})(),Di=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi){this.initAuthService=ke,this.appConfigService=pt,this.authzSevice=Vt,this.dialog=qt,this.location=ni,this.guiAuthResolver=pi,this.entityColorConfigs=[{entity:"vo",configValue:"vo_color",cssVariable:"--vo-color"},{entity:"group",configValue:"group_color",cssVariable:"--group-color"},{entity:"user",configValue:"user_color",cssVariable:"--user-color"},{entity:"member",configValue:"member_color",cssVariable:"--member-color"},{entity:"facility",configValue:"facility_color",cssVariable:"--facility-color"},{entity:"resource",configValue:"resource_color",cssVariable:"--resource-color"},{entity:"admin",configValue:"admin_color",cssVariable:"--admin-color"},{entity:"service",configValue:"service_color",cssVariable:"--service-color"}],this.colorConfigs=[{configValue:"sidemenu_hover_color",cssVariable:"--side-root-item-hover"},{configValue:"sidemenu_root_active_color",cssVariable:"--side-root-item-active"},{configValue:"sidemenu-link-active",cssVariable:"--side-link-active"},{configValue:"sidemenu-link-hover",cssVariable:"--side-link-hover"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(ke=>{if("Invalid path"!==ke)throw console.error(ke),this.location.go("/"),location.reload(),ke;this.handleErr(ke)}).then(ke=>ke?this.initAuthService.loadPrincipal().catch(pt=>this.handleErr(pt)).then(()=>this.loadPolicies()).then(()=>this.appConfigService.loadAppsConfig()).then(()=>this.guiAuthResolver.loadRolesManagementRules()):this.initAuthService.handleAuthStart())}handleErr(ke){const pt=(0,E.kZ)();throw"Invalid path"===ke?(pt.data={title:"GENERAL.PROXY_OVERLOAD_PREVENTION.TITLE",message:"GENERAL.PROXY_OVERLOAD_PREVENTION.MESSAGE",action:"GENERAL.PROXY_OVERLOAD_PREVENTION.ACTION"},this.dialog.open(ri,pt)):(pt.data={title:"GENERAL.PRINCIPAL_ERROR.TITLE",message:0===ke.status?"GENERAL.PRINCIPAL_ERROR.MESSAGE":ke.message,action:"GENERAL.PRINCIPAL_ERROR.ACTION"},this.dialog.open(ti,pt)),console.error(ke),ke}loadPolicies(){return new Promise((ke,pt)=>{this.authzSevice.getAllPolicies().subscribe(Vt=>{this.guiAuthResolver.setPerunPolicies(Vt),ke()},Vt=>pt(Vt))})}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(A.v0),b.LFG(Ye),b.LFG(g.Ct),b.LFG(m.uw),b.LFG(ne.Ye),b.LFG(A.x4))},fe.\u0275prov=b.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),wi=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez,m.Is,J.ot,P.aw]]}),fe})();var $i=p(8929),qi=p(23753),Fi=p(36787),Ji=p(57138),_n=p(7625),Ni=p(75778),Ri=p(77604);function sn(fe){return getComputedStyle(fe)}function Xi(fe,at){for(var ke in at){var pt=at[ke];"number"==typeof pt&&(pt+="px"),fe.style[ke]=pt}return fe}function en(fe){var at=document.createElement("div");return at.className=fe,at}var an="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function dn(fe,at){if(!an)throw new Error("No element matching method supported");return an.call(fe,at)}function wn(fe){fe.remove?fe.remove():fe.parentNode&&fe.parentNode.removeChild(fe)}function xn(fe,at){return Array.prototype.filter.call(fe.children,function(ke){return dn(ke,at)})}var Oi_element_thumb=function(fe){return"ps__thumb-"+fe},Oi_element_rail=function(fe){return"ps__rail-"+fe},Oi_element_consuming="ps__child--consume",Oi_state_focus="ps--focus",Oi_state_clicking="ps--clicking",Oi_state_active=function(fe){return"ps--active-"+fe},Oi_state_scrolling=function(fe){return"ps--scrolling-"+fe},kn={x:null,y:null};function Nn(fe,at){var ke=fe.element.classList,pt=Oi_state_scrolling(at);ke.contains(pt)?clearTimeout(kn[at]):ke.add(pt)}function Mt(fe,at){kn[at]=setTimeout(function(){return fe.isAlive&&fe.element.classList.remove(Oi_state_scrolling(at))},fe.settings.scrollingThreshold)}var rt=function(at){this.element=at,this.handlers={}},kt={isEmpty:{configurable:!0}};rt.prototype.bind=function(at,ke){void 0===this.handlers[at]&&(this.handlers[at]=[]),this.handlers[at].push(ke),this.element.addEventListener(at,ke,!1)},rt.prototype.unbind=function(at,ke){var pt=this;this.handlers[at]=this.handlers[at].filter(function(Vt){return!(!ke||Vt===ke)||(pt.element.removeEventListener(at,Vt,!1),!1)})},rt.prototype.unbindAll=function(){for(var at in this.handlers)this.unbind(at)},kt.isEmpty.get=function(){var fe=this;return Object.keys(this.handlers).every(function(at){return 0===fe.handlers[at].length})},Object.defineProperties(rt.prototype,kt);var Ze=function(){this.eventElements=[]};function Ot(fe){if("function"==typeof window.CustomEvent)return new CustomEvent(fe);var at=document.createEvent("CustomEvent");return at.initCustomEvent(fe,!1,!1,void 0),at}function qe(fe,at,ke,pt,Vt){var qt;if(void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1),"top"===at)qt=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==at)throw new Error("A proper axis should be provided");qt=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Tt(fe,at,ke,pt,Vt){var qt=ke[0],ni=ke[1],pi=ke[2],oi=ke[3],Si=ke[4],Gi=ke[5];void 0===pt&&(pt=!0),void 0===Vt&&(Vt=!1);var An=fe.element;fe.reach[oi]=null,An[pi]<1&&(fe.reach[oi]="start"),An[pi]>fe[qt]-fe[ni]-1&&(fe.reach[oi]="end"),at&&(An.dispatchEvent(Ot("ps-scroll-"+oi)),at<0?An.dispatchEvent(Ot("ps-scroll-"+Si)):at>0&&An.dispatchEvent(Ot("ps-scroll-"+Gi)),pt&&function Qt(fe,at){Nn(fe,at),Mt(fe,at)}(fe,oi)),fe.reach[oi]&&(at||Vt)&&An.dispatchEvent(Ot("ps-"+oi+"-reach-"+fe.reach[oi]))}(fe,ke,qt,pt,Vt)}function jt(fe){return parseInt(fe,10)||0}Ze.prototype.eventElement=function(at){var ke=this.eventElements.filter(function(pt){return pt.element===at})[0];return ke||(ke=new rt(at),this.eventElements.push(ke)),ke},Ze.prototype.bind=function(at,ke,pt){this.eventElement(at).bind(ke,pt)},Ze.prototype.unbind=function(at,ke,pt){var Vt=this.eventElement(at);Vt.unbind(ke,pt),Vt.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Vt),1)},Ze.prototype.unbindAll=function(){this.eventElements.forEach(function(at){return at.unbindAll()}),this.eventElements=[]},Ze.prototype.once=function(at,ke,pt){var Vt=this.eventElement(at),qt=function(ni){Vt.unbind(ke,qt),pt(ni)};Vt.bind(ke,qt)};var Ui={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function Li(fe){var at=fe.element,ke=Math.floor(at.scrollTop),pt=at.getBoundingClientRect();fe.containerWidth=Math.ceil(pt.width),fe.containerHeight=Math.ceil(pt.height),fe.contentWidth=at.scrollWidth,fe.contentHeight=at.scrollHeight,at.contains(fe.scrollbarXRail)||(xn(at,Oi_element_rail("x")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarXRail)),at.contains(fe.scrollbarYRail)||(xn(at,Oi_element_rail("y")).forEach(function(Vt){return wn(Vt)}),at.appendChild(fe.scrollbarYRail)),!fe.settings.suppressScrollX&&fe.containerWidth+fe.settings.scrollXMarginOffset=fe.railXWidth-fe.scrollbarXWidth&&(fe.scrollbarXLeft=fe.railXWidth-fe.scrollbarXWidth),fe.scrollbarYTop>=fe.railYHeight-fe.scrollbarYHeight&&(fe.scrollbarYTop=fe.railYHeight-fe.scrollbarYHeight),function cr(fe,at){var ke={width:at.railXWidth},pt=Math.floor(fe.scrollTop);ke.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+at.containerWidth-at.contentWidth:fe.scrollLeft,at.isScrollbarXUsingBottom?ke.bottom=at.scrollbarXBottom-pt:ke.top=at.scrollbarXTop+pt,Xi(at.scrollbarXRail,ke);var Vt={top:pt,height:at.railYHeight};at.isScrollbarYUsingRight?Vt.right=at.isRtl?at.contentWidth-(at.negativeScrollAdjustment+fe.scrollLeft)-at.scrollbarYRight-at.scrollbarYOuterWidth-9:at.scrollbarYRight-fe.scrollLeft:Vt.left=at.isRtl?at.negativeScrollAdjustment+fe.scrollLeft+2*at.containerWidth-at.contentWidth-at.scrollbarYLeft-at.scrollbarYOuterWidth:at.scrollbarYLeft+fe.scrollLeft,Xi(at.scrollbarYRail,Vt),Xi(at.scrollbarX,{left:at.scrollbarXLeft,width:at.scrollbarXWidth-at.railBorderXWidth}),Xi(at.scrollbarY,{top:at.scrollbarYTop,height:at.scrollbarYHeight-at.railBorderYWidth})}(at,fe),fe.scrollbarXActive?at.classList.add(Oi_state_active("x")):(at.classList.remove(Oi_state_active("x")),fe.scrollbarXWidth=0,fe.scrollbarXLeft=0,at.scrollLeft=!0===fe.isRtl?fe.contentWidth:0),fe.scrollbarYActive?at.classList.add(Oi_state_active("y")):(at.classList.remove(Oi_state_active("y")),fe.scrollbarYHeight=0,fe.scrollbarYTop=0,at.scrollTop=0)}function hn(fe,at){return fe.settings.minScrollbarLength&&(at=Math.max(at,fe.settings.minScrollbarLength)),fe.settings.maxScrollbarLength&&(at=Math.min(at,fe.settings.maxScrollbarLength)),at}function Qn(fe,at){var ke=at[0],pt=at[1],Vt=at[2],qt=at[3],ni=at[4],pi=at[5],oi=at[6],Si=at[7],Gi=at[8],An=fe.element,jn=null,Zi=null,Bi=null;function Pi(zi){zi.touches&&zi.touches[0]&&(zi[Vt]=zi.touches[0].pageY),An[oi]=jn+Bi*(zi[Vt]-Zi),Nn(fe,Si),Li(fe),zi.stopPropagation(),zi.preventDefault()}function Hn(){Mt(fe,Si),fe[Gi].classList.remove(Oi_state_clicking),fe.event.unbind(fe.ownerDocument,"mousemove",Pi)}function ln(zi,tr){jn=An[oi],tr&&zi.touches&&(zi[Vt]=zi.touches[0].pageY),Zi=zi[Vt],Bi=(fe[pt]-fe[ke])/(fe[qt]-fe[pi]),tr?fe.event.bind(fe.ownerDocument,"touchmove",Pi):(fe.event.bind(fe.ownerDocument,"mousemove",Pi),fe.event.once(fe.ownerDocument,"mouseup",Hn),zi.preventDefault()),fe[Gi].classList.add(Oi_state_clicking),zi.stopPropagation()}fe.event.bind(fe[ni],"mousedown",function(zi){ln(zi)}),fe.event.bind(fe[ni],"touchstart",function(zi){ln(zi,!0)})}var ur={"click-rail":function Vn(fe){fe.event.bind(fe.scrollbarY,"mousedown",function(ke){return ke.stopPropagation()}),fe.event.bind(fe.scrollbarYRail,"mousedown",function(ke){var pt=ke.pageY-window.pageYOffset-fe.scrollbarYRail.getBoundingClientRect().top;fe.element.scrollTop+=(pt>fe.scrollbarYTop?1:-1)*fe.containerHeight,Li(fe),ke.stopPropagation()}),fe.event.bind(fe.scrollbarX,"mousedown",function(ke){return ke.stopPropagation()}),fe.event.bind(fe.scrollbarXRail,"mousedown",function(ke){var pt=ke.pageX-window.pageXOffset-fe.scrollbarXRail.getBoundingClientRect().left;fe.element.scrollLeft+=(pt>fe.scrollbarXLeft?1:-1)*fe.containerWidth,Li(fe),ke.stopPropagation()})},"drag-thumb":function dr(fe){Qn(fe,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Qn(fe,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function Lr(fe){var at=fe.element;fe.event.bind(fe.ownerDocument,"keydown",function(qt){if(!(qt.isDefaultPrevented&&qt.isDefaultPrevented()||qt.defaultPrevented)&&(dn(at,":hover")||dn(fe.scrollbarX,":focus")||dn(fe.scrollbarY,":focus"))){var ni=document.activeElement?document.activeElement:fe.ownerDocument.activeElement;if(ni){if("IFRAME"===ni.tagName)ni=ni.contentDocument.activeElement;else for(;ni.shadowRoot;)ni=ni.shadowRoot.activeElement;if(function ci(fe){return dn(fe,"input,[contenteditable]")||dn(fe,"select,[contenteditable]")||dn(fe,"textarea,[contenteditable]")||dn(fe,"button,[contenteditable]")}(ni))return}var pi=0,oi=0;switch(qt.which){case 37:pi=qt.metaKey?-fe.contentWidth:qt.altKey?-fe.containerWidth:-30;break;case 38:oi=qt.metaKey?fe.contentHeight:qt.altKey?fe.containerHeight:30;break;case 39:pi=qt.metaKey?fe.contentWidth:qt.altKey?fe.containerWidth:30;break;case 40:oi=qt.metaKey?-fe.contentHeight:qt.altKey?-fe.containerHeight:-30;break;case 32:oi=qt.shiftKey?fe.containerHeight:-fe.containerHeight;break;case 33:oi=fe.containerHeight;break;case 34:oi=-fe.containerHeight;break;case 36:oi=fe.contentHeight;break;case 35:oi=-fe.contentHeight;break;default:return}fe.settings.suppressScrollX&&0!==pi||fe.settings.suppressScrollY&&0!==oi||(at.scrollTop-=oi,at.scrollLeft+=pi,Li(fe),function Vt(qt,ni){var pi=Math.floor(at.scrollTop);if(0===qt){if(!fe.scrollbarYActive)return!1;if(0===pi&&ni>0||pi>=fe.contentHeight-fe.containerHeight&&ni<0)return!fe.settings.wheelPropagation}var oi=at.scrollLeft;if(0===ni){if(!fe.scrollbarXActive)return!1;if(0===oi&&qt<0||oi>=fe.contentWidth-fe.containerWidth&&qt>0)return!fe.settings.wheelPropagation}return!0}(pi,oi)&&qt.preventDefault())}})},wheel:function rr(fe){var at=fe.element;function qt(ni){var pi=function pt(ni){var pi=ni.deltaX,oi=-1*ni.deltaY;return(void 0===pi||void 0===oi)&&(pi=-1*ni.wheelDeltaX/6,oi=ni.wheelDeltaY/6),ni.deltaMode&&1===ni.deltaMode&&(pi*=10,oi*=10),pi!=pi&&oi!=oi&&(pi=0,oi=ni.wheelDelta),ni.shiftKey?[-oi,-pi]:[pi,oi]}(ni),oi=pi[0],Si=pi[1];if(!function Vt(ni,pi,oi){if(!Ui.isWebKit&&at.querySelector("select:focus"))return!0;if(!at.contains(ni))return!1;for(var Si=ni;Si&&Si!==at;){if(Si.classList.contains(Oi_element_consuming))return!0;var Gi=sn(Si);if(oi&&Gi.overflowY.match(/(scroll|auto)/)){var An=Si.scrollHeight-Si.clientHeight;if(An>0&&(Si.scrollTop>0&&oi<0||Si.scrollTop0))return!0}if(pi&&Gi.overflowX.match(/(scroll|auto)/)){var jn=Si.scrollWidth-Si.clientWidth;if(jn>0&&(Si.scrollLeft>0&&pi<0||Si.scrollLeft0))return!0}Si=Si.parentNode}return!1}(ni.target,oi,Si)){var Gi=!1;fe.settings.useBothWheelAxes?fe.scrollbarYActive&&!fe.scrollbarXActive?(Si?at.scrollTop-=Si*fe.settings.wheelSpeed:at.scrollTop+=oi*fe.settings.wheelSpeed,Gi=!0):fe.scrollbarXActive&&!fe.scrollbarYActive&&(oi?at.scrollLeft+=oi*fe.settings.wheelSpeed:at.scrollLeft-=Si*fe.settings.wheelSpeed,Gi=!0):(at.scrollTop-=Si*fe.settings.wheelSpeed,at.scrollLeft+=oi*fe.settings.wheelSpeed),Li(fe),Gi=Gi||function ke(ni,pi){var oi=Math.floor(at.scrollTop),Si=0===at.scrollTop,Gi=oi+at.offsetHeight===at.scrollHeight,An=0===at.scrollLeft,jn=at.scrollLeft+at.offsetWidth===at.scrollWidth;return!(Math.abs(pi)>Math.abs(ni)?Si||Gi:An||jn)||!fe.settings.wheelPropagation}(oi,Si),Gi&&!ni.ctrlKey&&(ni.stopPropagation(),ni.preventDefault())}}void 0!==window.onwheel?fe.event.bind(at,"wheel",qt):void 0!==window.onmousewheel&&fe.event.bind(at,"mousewheel",qt)},touch:function Zn(fe){if(Ui.supportsTouch||Ui.supportsIePointer){var at=fe.element,Vt={},qt=0,ni={},pi=null;Ui.supportsTouch?(fe.event.bind(at,"touchstart",Gi),fe.event.bind(at,"touchmove",jn),fe.event.bind(at,"touchend",Zi)):Ui.supportsIePointer&&(window.PointerEvent?(fe.event.bind(at,"pointerdown",Gi),fe.event.bind(at,"pointermove",jn),fe.event.bind(at,"pointerup",Zi)):window.MSPointerEvent&&(fe.event.bind(at,"MSPointerDown",Gi),fe.event.bind(at,"MSPointerMove",jn),fe.event.bind(at,"MSPointerUp",Zi)))}function pt(Bi,Pi){at.scrollTop-=Pi,at.scrollLeft-=Bi,Li(fe)}function oi(Bi){return Bi.targetTouches?Bi.targetTouches[0]:Bi}function Si(Bi){return!(Bi.pointerType&&"pen"===Bi.pointerType&&0===Bi.buttons||!(Bi.targetTouches&&1===Bi.targetTouches.length||Bi.pointerType&&"mouse"!==Bi.pointerType&&Bi.pointerType!==Bi.MSPOINTER_TYPE_MOUSE))}function Gi(Bi){if(Si(Bi)){var Pi=oi(Bi);Vt.pageX=Pi.pageX,Vt.pageY=Pi.pageY,qt=(new Date).getTime(),null!==pi&&clearInterval(pi)}}function jn(Bi){if(Si(Bi)){var Pi=oi(Bi),Hn={pageX:Pi.pageX,pageY:Pi.pageY},ln=Hn.pageX-Vt.pageX,zi=Hn.pageY-Vt.pageY;if(function An(Bi,Pi,Hn){if(!at.contains(Bi))return!1;for(var ln=Bi;ln&&ln!==at;){if(ln.classList.contains(Oi_element_consuming))return!0;var zi=sn(ln);if(Hn&&zi.overflowY.match(/(scroll|auto)/)){var tr=ln.scrollHeight-ln.clientHeight;if(tr>0&&(ln.scrollTop>0&&Hn<0||ln.scrollTop0))return!0}if(Pi&&zi.overflowX.match(/(scroll|auto)/)){var Br=ln.scrollWidth-ln.clientWidth;if(Br>0&&(ln.scrollLeft>0&&Pi<0||ln.scrollLeft0))return!0}ln=ln.parentNode}return!1}(Bi.target,ln,zi))return;pt(ln,zi),Vt=Hn;var tr=(new Date).getTime(),Br=tr-qt;Br>0&&(ni.x=ln/Br,ni.y=zi/Br,qt=tr),function ke(Bi,Pi){var Hn=Math.floor(at.scrollTop),ln=at.scrollLeft,zi=Math.abs(Bi),tr=Math.abs(Pi);if(tr>zi){if(Pi<0&&Hn===fe.contentHeight-fe.containerHeight||Pi>0&&0===Hn)return 0===window.scrollY&&Pi>0&&Ui.isChrome}else if(zi>tr&&(Bi<0&&ln===fe.contentWidth-fe.containerWidth||Bi>0&&0===ln))return!0;return!0}(ln,zi)&&Bi.preventDefault()}}function Zi(){fe.settings.swipeEasing&&(clearInterval(pi),pi=setInterval(function(){fe.isInitialized?clearInterval(pi):ni.x||ni.y?Math.abs(ni.x)<.01&&Math.abs(ni.y)<.01?clearInterval(pi):(pt(30*ni.x,30*ni.y),ni.x*=.8,ni.y*=.8):clearInterval(pi)},10))}}},Mn=function(at,ke){var pt=this;if(void 0===ke&&(ke={}),"string"==typeof at&&(at=document.querySelector(at)),!at||!at.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Vt in this.element=at,at.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},ke)this.settings[Vt]=ke[Vt];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Gi,Si,qt=function(){return at.classList.add(Oi_state_focus)},ni=function(){return at.classList.remove(Oi_state_focus)};this.isRtl="rtl"===sn(at).direction,!0===this.isRtl&&at.classList.add("ps__rtl"),this.isNegativeScroll=(Si=at.scrollLeft,at.scrollLeft=-1,Gi=at.scrollLeft<0,at.scrollLeft=Si,Gi),this.negativeScrollAdjustment=this.isNegativeScroll?at.scrollWidth-at.clientWidth:0,this.event=new Ze,this.ownerDocument=at.ownerDocument||document,this.scrollbarXRail=en(Oi_element_rail("x")),at.appendChild(this.scrollbarXRail),this.scrollbarX=en(Oi_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",qt),this.event.bind(this.scrollbarX,"blur",ni),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var pi=sn(this.scrollbarXRail);this.scrollbarXBottom=parseInt(pi.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=jt(pi.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=jt(pi.borderLeftWidth)+jt(pi.borderRightWidth),Xi(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=jt(pi.marginLeft)+jt(pi.marginRight),Xi(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=en(Oi_element_rail("y")),at.appendChild(this.scrollbarYRail),this.scrollbarY=en(Oi_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",qt),this.event.bind(this.scrollbarY,"blur",ni),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var oi=sn(this.scrollbarYRail);this.scrollbarYRight=parseInt(oi.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=jt(oi.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function vi(fe){var at=sn(fe);return jt(at.width)+jt(at.paddingLeft)+jt(at.paddingRight)+jt(at.borderLeftWidth)+jt(at.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=jt(oi.borderTopWidth)+jt(oi.borderBottomWidth),Xi(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=jt(oi.marginTop)+jt(oi.marginBottom),Xi(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:at.scrollLeft<=0?"start":at.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:at.scrollTop<=0?"start":at.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Si){return ur[Si](pt)}),this.lastScrollTop=Math.floor(at.scrollTop),this.lastScrollLeft=at.scrollLeft,this.event.bind(this.element,"scroll",function(Si){return pt.onScroll(Si)}),Li(this)};Mn.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Xi(this.scrollbarXRail,{display:"block"}),Xi(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=jt(sn(this.scrollbarXRail).marginLeft)+jt(sn(this.scrollbarXRail).marginRight),this.railYMarginHeight=jt(sn(this.scrollbarYRail).marginTop)+jt(sn(this.scrollbarYRail).marginBottom),Xi(this.scrollbarXRail,{display:"none"}),Xi(this.scrollbarYRail,{display:"none"}),Li(this),qe(this,"top",0,!1,!0),qe(this,"left",0,!1,!0),Xi(this.scrollbarXRail,{display:""}),Xi(this.scrollbarYRail,{display:""}))},Mn.prototype.onScroll=function(at){!this.isAlive||(Li(this),qe(this,"top",this.element.scrollTop-this.lastScrollTop),qe(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Mn.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),wn(this.scrollbarX),wn(this.scrollbarY),wn(this.scrollbarXRail),wn(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Mn.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(at){return!at.match(/^ps([-_].+|)$/)}).join(" ")};const Gn=Mn;var sr=function(){if("undefined"!=typeof Map)return Map;function fe(at,ke){var pt=-1;return at.some(function(Vt,qt){return Vt[0]===ke&&(pt=qt,!0)}),pt}return function(){function at(){this.__entries__=[]}return Object.defineProperty(at.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),at.prototype.get=function(ke){var pt=fe(this.__entries__,ke),Vt=this.__entries__[pt];return Vt&&Vt[1]},at.prototype.set=function(ke,pt){var Vt=fe(this.__entries__,ke);~Vt?this.__entries__[Vt][1]=pt:this.__entries__.push([ke,pt])},at.prototype.delete=function(ke){var pt=this.__entries__,Vt=fe(pt,ke);~Vt&&pt.splice(Vt,1)},at.prototype.has=function(ke){return!!~fe(this.__entries__,ke)},at.prototype.clear=function(){this.__entries__.splice(0)},at.prototype.forEach=function(ke,pt){void 0===pt&&(pt=null);for(var Vt=0,qt=this.__entries__;Vt0},fe.prototype.connect_=function(){!ar||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),$n?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},fe.prototype.disconnect_=function(){!ar||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},fe.prototype.onTransitionEnd_=function(at){var ke=at.propertyName,pt=void 0===ke?"":ke;Cn.some(function(qt){return!!~pt.indexOf(qt)})&&this.refresh()},fe.getInstance=function(){return this.instance_||(this.instance_=new fe),this.instance_},fe.instance_=null,fe}(),zn=function(fe,at){for(var ke=0,pt=Object.keys(at);ke0},fe}(),di="undefined"!=typeof WeakMap?new WeakMap:new sr,ui=function fe(at){if(!(this instanceof fe))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var ke=or.getInstance(),pt=new ii(at,ke,this);di.set(this,pt)};["observe","unobserve","disconnect"].forEach(function(fe){ui.prototype[fe]=function(){var at;return(at=di.get(this))[fe].apply(at,arguments)}});const Ti=void 0!==Un.ResizeObserver?Un.ResizeObserver:ui;function Hi(fe,at){if(1&fe&&(b.TgZ(0,"div",3),b._UZ(1,"div",4),b._UZ(2,"div",5),b._UZ(3,"div",6),b._UZ(4,"div",7),b.qZA()),2&fe){const ke=b.oxw();b.ekj("ps-at-top",ke.states.top)("ps-at-left",ke.states.left)("ps-at-right",ke.states.right)("ps-at-bottom",ke.states.bottom),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorY&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorX&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorX&&ke.interaction),b.xp6(1),b.ekj("ps-indicator-show",ke.indicatorY&&ke.interaction)}}const Ne=["*"],De=new b.OlP("PERFECT_SCROLLBAR_CONFIG");class we{constructor(at,ke,pt,Vt){this.x=at,this.y=ke,this.w=pt,this.h=Vt}}class ut{constructor(at,ke){this.x=at,this.y=ke}}const Zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class hi{constructor(at={}){this.assign(at)}assign(at={}){for(const ke in at)this[ke]=at[ke]}}let ji=(()=>{class fe{constructor(ke,pt,Vt,qt,ni){this.zone=ke,this.differs=pt,this.elementRef=Vt,this.platformId=qt,this.defaults=ni,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new $i.xQ,this.disabled=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){if(!this.disabled&&(0,ne.NF)(this.platformId)){const ke=new hi(this.defaults);ke.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Gn(this.elementRef.nativeElement,ke)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Ti(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{Zt.forEach(pt=>{const Vt=pt.replace(/([A-Z])/g,qt=>`-${qt.toLowerCase()}`);(0,qi.R)(this.elementRef.nativeElement,Vt).pipe((0,Ji.e)(20),(0,_n.R)(this.ngDestroy)).subscribe(qt=>{this[pt].emit(qt)})})})}}ngOnDestroy(){(0,ne.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&"undefined"!=typeof window&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,ne.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(ke){ke.disabled&&!ke.disabled.isFirstChange()&&(0,ne.NF)(this.platformId)&&ke.disabled.currentValue!==ke.disabled.previousValue&&(!0===ke.disabled.currentValue?this.ngOnDestroy():!1===ke.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){"undefined"!=typeof window&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch(ke){}},0))}geometry(ke="scroll"){return new we(this.elementRef.nativeElement[ke+"Left"],this.elementRef.nativeElement[ke+"Top"],this.elementRef.nativeElement[ke+"Width"],this.elementRef.nativeElement[ke+"Height"])}position(ke=!1){return!ke&&this.instance?new ut(this.instance.reach.x||0,this.instance.reach.y||0):new ut(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(ke="any"){const pt=this.elementRef.nativeElement;return"any"===ke?pt.classList.contains("ps--active-x")||pt.classList.contains("ps--active-y"):"both"===ke?pt.classList.contains("ps--active-x")&&pt.classList.contains("ps--active-y"):pt.classList.contains("ps--active-"+ke)}scrollTo(ke,pt,Vt){this.disabled||(null==pt&&null==Vt?this.animateScrolling("scrollTop",ke,Vt):(null!=ke&&this.animateScrolling("scrollLeft",ke,Vt),null!=pt&&this.animateScrolling("scrollTop",pt,Vt)))}scrollToX(ke,pt){this.animateScrolling("scrollLeft",ke,pt)}scrollToY(ke,pt){this.animateScrolling("scrollTop",ke,pt)}scrollToTop(ke,pt){this.animateScrolling("scrollTop",ke||0,pt)}scrollToLeft(ke,pt){this.animateScrolling("scrollLeft",ke||0,pt)}scrollToRight(ke,pt){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(ke||0),pt)}scrollToBottom(ke,pt){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(ke||0),pt)}scrollToElement(ke,pt,Vt){if("string"==typeof ke&&(ke=this.elementRef.nativeElement.querySelector(ke)),ke){const qt=ke.getBoundingClientRect(),ni=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",qt.left-ni.left+this.elementRef.nativeElement.scrollLeft+(pt||0),Vt),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",qt.top-ni.top+this.elementRef.nativeElement.scrollTop+(pt||0),Vt)}}animateScrolling(ke,pt,Vt){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Vt&&"undefined"!=typeof window){if(pt!==this.elementRef.nativeElement[ke]){let qt=0,ni=0,pi=performance.now(),oi=this.elementRef.nativeElement[ke];const Si=(oi-pt)/2,Gi=An=>{ni+=Math.PI/(Vt/(An-pi)),qt=Math.round(pt+Si+Si*Math.cos(ni)),this.elementRef.nativeElement[ke]===oi&&(ni>=Math.PI?this.animateScrolling(ke,pt,0):(this.elementRef.nativeElement[ke]=qt,oi=this.elementRef.nativeElement[ke],pi=An,this.animation=window.requestAnimationFrame(Gi)))};window.requestAnimationFrame(Gi)}}else this.elementRef.nativeElement[ke]=pt}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(b.R0b),b.Y36(b.aQg),b.Y36(b.SBq),b.Y36(b.Lbi),b.Y36(De,8))},fe.\u0275dir=b.lG2({type:fe,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:["perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],features:[b.TTD]}),fe})(),tn=(()=>{class fe{constructor(ke,pt,Vt){this.zone=ke,this.cdRef=pt,this.platformId=Vt,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new $i.xQ,this.stateUpdate=new $i.xQ,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new b.vpe,this.psScrollX=new b.vpe,this.psScrollUp=new b.vpe,this.psScrollDown=new b.vpe,this.psScrollLeft=new b.vpe,this.psScrollRight=new b.vpe,this.psYReachEnd=new b.vpe,this.psYReachStart=new b.vpe,this.psXReachEnd=new b.vpe,this.psXReachStart=new b.vpe}ngOnInit(){(0,ne.NF)(this.platformId)&&(this.stateUpdate.pipe((0,_n.R)(this.ngDestroy),(0,Ni.x)((ke,pt)=>ke===pt&&!this.stateTimeout)).subscribe(ke=>{this.stateTimeout&&"undefined"!=typeof window&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===ke||"y"===ke?(this.interaction=!1,"x"===ke?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===ke&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===ke||"right"===ke?(this.states.left=!1,this.states.right=!1,this.states[ke]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===ke||"bottom"===ke)&&(this.states.top=!1,this.states.bottom=!1,this.states[ke]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&"undefined"!=typeof window&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const ke=this.directiveRef.elementRef.nativeElement;(0,qi.R)(ke,"wheel").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(pt,pt.deltaX,pt.deltaY)}),(0,qi.R)(ke,"touchmove").pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{if(!this.disabled&&this.autoPropagation){const Vt=pt.touches[0].clientX,qt=pt.touches[0].clientY;this.checkPropagation(pt,Vt-this.scrollPositionX,qt-this.scrollPositionY),this.scrollPositionX=Vt,this.scrollPositionY=qt}}),(0,Fi.T)((0,qi.R)(ke,"ps-scroll-x").pipe((0,Ri.h)("x")),(0,qi.R)(ke,"ps-scroll-y").pipe((0,Ri.h)("y")),(0,qi.R)(ke,"ps-x-reach-end").pipe((0,Ri.h)("right")),(0,qi.R)(ke,"ps-y-reach-end").pipe((0,Ri.h)("bottom")),(0,qi.R)(ke,"ps-x-reach-start").pipe((0,Ri.h)("left")),(0,qi.R)(ke,"ps-y-reach-start").pipe((0,Ri.h)("top"))).pipe((0,_n.R)(this.ngDestroy)).subscribe(pt=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(pt)})}}),window.setTimeout(()=>{Zt.forEach(ke=>{this.directiveRef&&(this.directiveRef[ke]=this[ke])})},0))}ngOnDestroy(){(0,ne.NF)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&"undefined"!=typeof window&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,ne.NF)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const ke=this.directiveRef.elementRef.nativeElement;this.usePropagationX=ke.classList.contains("ps--active-x"),this.usePropagationY=ke.classList.contains("ps--active-y")}}checkPropagation(ke,pt,Vt){this.interaction=!0;const qt=pt<0?-1:1,ni=Vt<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==qt)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==ni))&&(ke.preventDefault(),ke.stopPropagation()),pt&&(this.scrollDirectionX=qt),Vt&&(this.scrollDirectionY=ni),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(b.R0b),b.Y36(b.sBO),b.Y36(b.Lbi))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perfect-scrollbar"]],viewQuery:function(ke,pt){if(1&ke&&b.Gf(ji,7),2&ke){let Vt;b.iGM(Vt=b.CRH())&&(pt.directiveRef=Vt.first)}},hostVars:4,hostBindings:function(ke,pt){2&ke&&b.ekj("ps-show-limits",pt.autoPropagation)("ps-show-active",pt.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],ngContentSelectors:Ne,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(ke,pt){1&ke&&(b.F$t(),b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.Hsn(2),b.qZA(),b.YNc(3,Hi,5,16,"div",2),b.qZA()),2&ke&&(b.ekj("ps",pt.usePSClass),b.Q6J("perfectScrollbar",pt.config)("disabled",pt.disabled),b.xp6(3),b.Q6J("ngIf",pt.scrollIndicators))},directives:[ji,ne.O5],styles:["perfect-scrollbar{display:block;height:100%;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-height:0;min-width:0}perfect-scrollbar[fxflex]>.ps{-webkit-box-flex:1;flex:1 1 auto;height:auto;min-height:0;min-width:0;width:auto}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit;align-content:inherit;align-items:inherit;display:flex;flex:1 1 auto;flex-direction:inherit;height:100%;justify-content:inherit;width:100%},perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{display:block;height:100%;max-height:100%;max-width:100%;position:static;width:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{bottom:0;display:block;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{opacity:0;position:absolute;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{left:0;min-height:24px;min-width:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{min-height:100%;min-width:24px;top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{cursor:default;left:auto!important;right:0!important;top:0!important;transition:width .2s linear,opacity .2s linear,background-color .2s linear;width:10px}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{bottom:0!important;cursor:default;height:10px;left:0!important;top:auto!important;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x,perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y{background-color:#eee;opacity:.9}perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x,perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,100%,.5) 0,hsla(0,0%,100%,0));opacity:1}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(180deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(0deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(90deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(270deg,hsla(0,0%,66.7%,.5) 0,hsla(0,0%,66.7%,0))}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show{opacity:1}",".ps{-ms-overflow-style:none;-ms-touch-action:auto;overflow:hidden!important;overflow-anchor:none;touch-action:auto}.ps__rail-x{bottom:0;height:15px}.ps__rail-x,.ps__rail-y{-webkit-transition:background-color .2s linear,opacity .2s linear;display:none;opacity:0;position:absolute;transition:background-color .2s linear,opacity .2s linear}.ps__rail-y{right:0;width:15px}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{background-color:transparent;display:block}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{-webkit-transition:background-color .2s linear,height .2s ease-in-out;bottom:2px;height:6px;transition:background-color .2s linear,height .2s ease-in-out}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{-webkit-transition:background-color .2s linear,width .2s ease-in-out;right:2px;transition:background-color .2s linear,width .2s ease-in-out;width:6px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}"],encapsulation:2}),fe})(),Wn=(()=>{class fe{}return fe.\u0275fac=function(ke){return new(ke||fe)},fe.\u0275mod=b.oAB({type:fe}),fe.\u0275inj=b.cJS({imports:[[ne.ez],ne.ez]}),fe})();var pr=p(86114),Qr=p(36769),Xt=p(22465);function si(fe,at){if(1&fe){const ke=b.EpF();b.TgZ(0,"div"),b.TgZ(1,"perun-web-apps-notification",2),b.NdJ("closeNotification",function(){const qt=b.CHM(ke).index;return b.oxw().removeNotification(qt)}),b.qZA(),b.qZA()}if(2&fe){const ke=at.$implicit;b.Q6J("@flyInOut",void 0),b.xp6(1),b.Q6J("data",ke)("newNotification",!0)}}const Ei=function(fe){return{top:fe}};let gi=(()=>{class fe{constructor(ke,pt){this.notificator=ke,this.notificationStorageService=pt,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(Vt=>{this.processNotification(Vt)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(ke){this.notifications.splice(ke,1)}processNotification(ke){this.notifications.push(ke),this.notificationStorageService.storeNotification(ke)}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.V6),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["perun-web-apps-notificator"]],hostBindings:function(ke,pt){1&ke&&b.NdJ("resize",function(qt){return pt.getScreenSize(qt)},!1,b.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.YNc(1,si,2,3,"div",1),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.VKq(2,Ei,pt.getNotificatorTop())),b.xp6(1),b.Q6J("ngForOf",pt.notifications))},directives:[ne.PC,ne.sg,Xt.c],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[Qr.Pd]}}),fe})();var Vi=p(53435);function pn(fe,at){if(1&fe&&(b.TgZ(0,"div",9),b._UZ(1,"perun-web-apps-notification",10),b.qZA()),2&fe){const ke=at.$implicit;b.xp6(1),b.Q6J("data",ke)("inDialog",!0)}}function vn(fe,at){if(1&fe&&(b.TgZ(0,"div",6),b.TgZ(1,"cdk-virtual-scroll-viewport",7),b.YNc(2,pn,2,2,"div",8),b.qZA(),b.qZA()),2&fe){const ke=b.oxw();b.xp6(2),b.Q6J("cdkVirtualForOf",ke.notifications)}}function Pn(fe,at){1&fe&&(b.TgZ(0,"perun-web-apps-alert",11),b._uU(1),b.ALo(2,"translate"),b.qZA()),2&fe&&(b.xp6(1),b.Oqu(b.lcZ(2,1,"DIALOGS.NOTIFICATION_LIST.NO_NOTIFICATIONS_ALERT")))}let Yn=(()=>{class fe{constructor(ke,pt){this.dialogRef=ke,this.notificationStorageService=pt}ngOnInit(){this.notifications=this.notificationStorageService.getNotifications()}onCancel(){this.dialogRef.close()}onClear(){this.notificationStorageService.clearNotifications(),this.notifications=[]}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(m.so),b.Y36(A.SZ))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-show-notification-history-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["class","hide-horizontal-scrollbar",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"hide-horizontal-scrollbar"],["itemSize","50",1,"viewport"],["class","mb-1",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"mb-1"],[3,"data","inDialog"],["alert_type","warn"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"h1",0),b._uU(1),b.ALo(2,"translate"),b.qZA(),b.YNc(3,vn,3,1,"div",1),b.YNc(4,Pn,3,3,"perun-web-apps-alert",2),b.TgZ(5,"div",3),b.TgZ(6,"button",4),b.NdJ("click",function(){return pt.onClear()}),b._uU(7),b.ALo(8,"translate"),b.qZA(),b.TgZ(9,"button",5),b.NdJ("click",function(){return pt.onCancel()}),b._uU(10),b.ALo(11,"translate"),b.qZA(),b.qZA()),2&ke&&(b.xp6(1),b.Oqu(b.lcZ(2,5,"DIALOGS.NOTIFICATION_LIST.TITLE")),b.xp6(2),b.Q6J("ngIf",0!==pt.notifications.length),b.xp6(1),b.Q6J("ngIf",0===pt.notifications.length),b.xp6(3),b.hij(" ",b.lcZ(8,7,"DIALOGS.NOTIFICATION_LIST.CLEAR")," "),b.xp6(3),b.hij(" ",b.lcZ(11,9,"DIALOGS.NOTIFICATION_LIST.CANCEL")," "))},directives:[m.uh,ne.O5,Vi.N7,Vi.xd,Vi.x0,Xt.c,oe.w,m.H8,J.lW],pipes:[P.X$],styles:[".viewport[_ngcontent-%COMP%]{height:400px;width:470px}.hide-horizontal-scrollbar[_ngcontent-%COMP%]{overflow-x:hidden}"]}),fe})();var fn=p(27544),$r=p(52314);function wr(fe,at){1&fe&&(b.TgZ(0,"div",10),b.TgZ(1,"span",11),b._uU(2," ~ \u{1f5f2}\xa0 "),b.qZA(),b.TgZ(3,"span",12),b._uU(4," DEVEL "),b.qZA(),b.TgZ(5,"span",11),b._uU(6," \xa0\u{1f5f2} ~ "),b.qZA(),b.qZA())}const bn=function(fe){return{color:fe}},mn=function(){return["/home"]};let Sn=(()=>{class fe{constructor(ke,pt,Vt,qt,ni,pi,oi,Si,Gi,An){this.storeService=ke,this.authService=pt,this.authzResolverService=Vt,this.dialog=qt,this.notificator=ni,this.translateService=pi,this.store=oi,this.sanitizer=Si,this.notificationStorageService=Gi,this.otherApplicationService=An,this.logoutEnabled=!0,this.navTextColor=this.store.get("theme","nav_text_color"),this.iconColor=this.store.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.store.get("logo")),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.profileLabel=this.storeService.get("profile_label_en"),this.profileUrl=this.otherApplicationService.getUrlForOtherApplication("profile")}showNotificationHistory(){this.notificationStorageService.newNotificationsCount=0;const ke=(0,E.kZ)();ke.width="520px",this.dialog.open(Yn,ke)}getNewNotificationsCount(){return this.notificationStorageService.newNotificationsCount}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.Y36(A.d6),b.Y36(A.e8),b.Y36(g.Ct),b.Y36(m.uw),b.Y36(A.V6),b.Y36(P.sK),b.Y36(A.d6),b.Y36(e.H7),b.Y36(A.SZ),b.Y36(A.jq))},fe.\u0275cmp=b.Xpm({type:fe,selectors:[["app-perun-nav-menu"]],inputs:{sideNav:"sideNav",principal:"principal"},decls:13,vars:28,consts:[["id","nav-menu-icons",3,"ngStyle"],["mat-icon-button","",1,"mr-2","mt-auto","mb-auto",3,"click"],[3,"ngStyle"],["queryParamsHandling","merge",1,"mt-auto","mb-auto",3,"routerLink"],[1,"logo-container",3,"innerHTML"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-icon-button","",3,"matTooltip","click"],["matBadgeColor","warn",3,"ngStyle","matBadge","matBadgeHidden"],[3,"iconColor","label","textColor","logoutEnabled","url","user"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(ke,pt){1&ke&&(b.TgZ(0,"div",0),b.TgZ(1,"button",1),b.NdJ("click",function(){return pt.sideNav.toggle()}),b.TgZ(2,"mat-icon",2),b._uU(3," menu "),b.qZA(),b.qZA(),b.TgZ(4,"a",3),b._UZ(5,"div",4),b.qZA(),b.qZA(),b.YNc(6,wr,7,0,"div",5),b.TgZ(7,"div",6),b.TgZ(8,"button",7),b.NdJ("click",function(){return pt.showNotificationHistory()}),b.ALo(9,"translate"),b.TgZ(10,"mat-icon",8),b._uU(11),b.qZA(),b.qZA(),b._UZ(12,"perun-web-apps-header-menu",9),b.qZA()),2&ke&&(b.Q6J("ngStyle",b.VKq(19,bn,pt.navTextColor)),b.xp6(2),b.Q6J("ngStyle",b.VKq(21,bn,pt.iconColor)),b.xp6(2),b.Q6J("routerLink",b.DdM(23,mn)),b.xp6(1),b.Q6J("innerHTML",pt.logo,b.oJD),b.xp6(1),b.Q6J("ngIf",pt.isDevel),b.xp6(1),b.Q6J("ngStyle",b.VKq(24,bn,pt.navTextColor)),b.xp6(1),b.Q6J("matTooltip",b.lcZ(9,17,"NAV.NOTIFICATIONS_TOOLTIP")),b.xp6(2),b.s9C("matBadge",pt.getNewNotificationsCount()>5?"5+":pt.getNewNotificationsCount()),b.Q6J("ngStyle",b.VKq(26,bn,pt.iconColor))("matBadgeHidden",0===pt.getNewNotificationsCount()),b.xp6(1),b.hij(" ",pt.getNewNotificationsCount()?"notifications_active":"notifications"," "),b.xp6(1),b.Q6J("iconColor",pt.iconColor)("label",pt.profileLabel)("textColor",pt.navTextColor)("logoutEnabled",pt.logoutEnabled)("url",pt.profileUrl)("user",pt.principal.user))},directives:[ne.PC,J.lW,ge.Hw,_.yS,ne.O5,T.gM,fn.k,$r.X],pipes:[P.X$],styles:["#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:row;width:200px}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-link-items[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}#nav-link-items[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:0 1rem;line-height:64px;text-align:center;height:64px;display:block}"]}),fe})();var Xn=p(73228);const er={provide:ce.TP,useExisting:(0,b.Gpc)(()=>A.yC),multi:!0};function fr(fe){return new ie(fe,"./assets/i18n/",".json")}function aa(fe){const at={basePath:fe.get("api_url")};return new g.VK(at)}const gs=fe=>()=>fe.initialize(),oa={suppressScrollX:!0};let _s=(()=>{class fe{constructor(ke,pt){this.customIconService=ke,this.translate=pt,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return fe.\u0275fac=function(ke){return new(ke||fe)(b.LFG(A.EB),b.LFG(P.sK))},fe.\u0275mod=b.oAB({type:fe,bootstrap:[U.y]}),fe.\u0275inj=b.cJS({providers:[Di,{provide:b.ip1,useFactory:gs,multi:!0,deps:[Di]},{provide:g.VK,useFactory:aa,deps:[A.d6]},{provide:_.wN,useClass:vt},A.EB,{provide:F,useClass:A.sM},A.yC,er,{provide:De,useValue:oa}],imports:[[He.PW,e.b2,ce.JF,k.m,ct,Ge,ge.Ps,wi,P.aw.forRoot({loader:{provide:P.Zw,useFactory:fr,deps:[ce.eN]}}),g.au,Wn,d.ez,t,pr.zr.forRoot()]]}),fe})();b.B6R(U.y,[ne.O5,ge.Hw,gi,Sn,ne.PC,L.TM,L.JX,tn,Xn.V,L.Rh,_.lC,a.$,Ut],[]),(0,b.G48)(),e.q6().bootstrapModule(_s).catch(fe=>console.error(fe))},11243:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{}return w.\u0275fac=function(A){return new(A||w)},w.\u0275mod=b.oAB({type:w}),w.\u0275inj=b.cJS({imports:[[e.ez]]}),w})()},6335:($e,_e,p)=>{"use strict";p.d(_e,{Rc:()=>b,pI:()=>_,Ng:()=>w});var e=p(5e3);const b="GUI_CONFIG.PREF_PAGE_SIZE",_="GUI_CONFIG.PREF_PAGE_SIZE.";let w=(()=>{class g{getString(E){return localStorage.getItem(E)}getNumber(E){return parseInt(localStorage.getItem(E),10)}setNumber(E,C){localStorage.setItem(E,C.toString())}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275prov=e.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),g})()},10036:($e,_e,p)=>{"use strict";p.d(_e,{dB:()=>_,CP:()=>w,tw:()=>g,nT:()=>A,YF:()=>E,gc:()=>C,v1:()=>I,AA:()=>P,VR:()=>m,uM:()=>L,xx:()=>O,H2:()=>G,xt:()=>ne,dI:()=>ge,j1:()=>J,Wv:()=>Me,qy:()=>oe,BV:()=>Re,qV:()=>T,tY:()=>j,Af:()=>Y,O7:()=>q,gB:()=>te,Hi:()=>ue,Jf:()=>de,W1:()=>Le,rF:()=>Ue,Aj:()=>ze,Ad:()=>le,kZ:()=>je,cL:()=>ye,RS:()=>Be,HC:()=>W,KE:()=>R,Sb:()=>me,_7:()=>be,bf:()=>Ie,rc:()=>pe,Cf:()=>Se,eq:()=>X,NG:()=>z,O9:()=>Q,d7:()=>D,vq:()=>H,NL:()=>V,kO:()=>xe,aL:()=>Qe,DR:()=>Te,uC:()=>Ae,JO:()=>ae,oK:()=>i,Iz:()=>o,It:()=>d,z6:()=>l,iQ:()=>s,e5:()=>r,Bf:()=>t,zp:()=>c,US:()=>h,gG:()=>x,$V:()=>We,S7:()=>At,zW:()=>Ut,CE:()=>Lt,Is:()=>Ee,M8:()=>k,g:()=>ie,_c:()=>ce,dK:()=>He,yW:()=>ct,HE:()=>bt,ee:()=>Yt,FF:()=>It,$I:()=>Rt,XH:()=>Et,$t:()=>Bt,uI:()=>Jt});var e=p(6335),b=p(5e3);let _=(()=>{class ai{constructor(bi){this.guiConfigService=bi}getTablePageSize(bi){const yi=this.guiConfigService.getNumber(e.pI+bi);if(!isNaN(yi))return yi;const Wi=this.guiConfigService.getNumber(e.Rc);return isNaN(Wi)?10:Wi}setTablePageSize(bi,yi){this.guiConfigService.setNumber(e.pI+bi,yi)}}return ai.\u0275fac=function(bi){return new(bi||ai)(b.LFG(e.Ng))},ai.\u0275prov=b.Yz7({token:ai,factory:ai.\u0275fac,providedIn:"root"}),ai})();const w="0",g="1",A="2",E="3",C="4",I="5",P="6",m="7",L="8",O="9",G="10",ne="11",ge="12",J="13",Me="14",oe="15",Re="16",T="17",j="18",Y="19",q="20",te="21",ue="22",de="23",Le="24",Ue="25",ze="26",le="27",je="28",ye="29",Be="30",W="31",R="32",me="33",be="34",Ie="35",pe="36",Se="37",X="42",z="43",Q="44",D="45",H="46",V="47",xe="48",Qe="49",Te="50",Ae="51",ae="52",i="53",o="54",d="55",l="56",s="57",r="58",t="59",c="62",h="63",x="64",We="65",At="66",Ut="69",Lt="71",Ee="72",k="75",ie="76",ce="77",He="78",ct="79",bt="80",Yt="82",It="83",Rt="84",Et="85",Bt="86",Jt="87"},36769:($e,_e,p)=>{"use strict";p.d(_e,{Ji:()=>g,Pd:()=>_,BQ:()=>b,Ly:()=>w,GH:()=>C,Ls:()=>I,SG:()=>E,es:()=>A});var e=p(41777);const b=(0,e.X$)("openClose",[(0,e.SB)("open",(0,e.oB)({overflow:"hidden"})),(0,e.SB)("closed",(0,e.oB)({height:"0px",overflow:"hidden"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),_=(0,e.X$)("flyInOut",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".5s",(0,e.oB)({transform:"translateX(100%)"}))])]),w=(0,e.X$)("rollInOut",[(0,e.eR)(":enter",[(0,e.oB)({height:"0px"}),(0,e.jt)(".25s")]),(0,e.eR)(":leave",[(0,e.jt)(".25s",(0,e.oB)({height:"0px"}))])]),g=(0,e.X$)("routeAnimations",[(0,e.eR)("* => *",[(0,e.oB)({position:"relative"}),(0,e.IO)(":enter",[(0,e.oB)({width:"100%",opacity:0})],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({position:"absolute",width:"100%",opacity:1}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),(0,e.IO)(":enter",[(0,e.oB)({position:"absolute",width:"100%",opacity:0}),(0,e.jt)("0.15s",(0,e.oB)({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),A=(0,e.X$)("tagsOpenClose",[(0,e.SB)("open",(0,e.oB)({})),(0,e.SB)("closed",(0,e.oB)({width:"0px",height:"0px"})),(0,e.eR)("open <=> closed",[(0,e.jt)(".3s ease-in")])]),E=(0,e.X$)("switchAnimations",[(0,e.eR)("true => false",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(-100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(100%)"}))],{optional:!0})])]),(0,e.eR)("false => true",[(0,e.IO)(":enter, :leave",(0,e.oB)({})),(0,e.ru)([(0,e.IO)(":enter",[(0,e.oB)({transform:"translateX(100%)"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,e.IO)(":leave",[(0,e.oB)({transform:"translateX(0%)",position:"absolute"}),(0,e.jt)("1s ease-in-out",(0,e.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])]),C=(0,e.X$)("slideInOutLeft",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(-100%)"}))])]),I=(0,e.X$)("slideInOutRight",[(0,e.eR)(":enter",[(0,e.oB)({transform:"translateX(100%)",position:"fixed"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(0%)"}))]),(0,e.eR)(":leave",[(0,e.oB)({transform:"translateX(-100%)",position:"relative"}),(0,e.jt)("0.5s ease-in",(0,e.oB)({transform:"translateX(100%)"}))])])},387:($e,_e,p)=>{"use strict";p.d(_e,{Mw:()=>R.M,qG:()=>x.qG,Sx:()=>c.S,y9:()=>We,Nj:()=>l,ez:()=>Be,t$:()=>s});var e=p(69808),b=p(77446),_=p(32075),w=p(51062),g=p(11735),A=p(84847),E=p(86087),C=p(20773),I=p(63189),P=p(25245),m=p(92181),L=p(47423),O=p(29772),G=p(67322),ne=p(93075),ge=p(98833),J=p(26688),Me=p(44409),oe=p(90508),Re=p(19516),T=p(69287),j=p(90149),Y=p(86856),q=p(79814),te=p(74107),ue=p(43586),de=p(53435),Le=p(48966),Ue=p(9244),ze=p(6397),le=p(5e3);let je=(()=>{class At extends oe.LF{format(lt,Ut){return"input"===Ut?`${lt.getDate().toString()}.${(lt.getMonth()+1).toString()}.${lt.getFullYear()}`:lt.toDateString()}}return At.\u0275fac=function(){let Ht;return function(Ut){return(Ht||(Ht=le.n5z(At)))(Ut||At)}}(),At.\u0275prov=le.Yz7({token:At,factory:At.\u0275fac}),At})();const ye={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Be=(()=>{class At{}return At.\u0275fac=function(lt){return new(lt||At)},At.\u0275mod=le.oAB({type:At}),At.\u0275inj=le.cJS({providers:[{provide:oe._A,useClass:je},{provide:oe.sG,useValue:ye}],imports:[[e.ez,b.p9,_.p0,ne.u5,J.Hi,Me._t,w.aw,g.Bz,A.JX,E.TU,C.Cq,I.r,P.Ps,m.Tx,L.ot,O.AV,G.lN,ne.UX,ge.c,oe.si,Re.d4,T.Iq,j.dp,Y.FA,q.Fk,oe.Ng,te.LD,ue.Co,de.Cl,Le.Is,Ue.Je,ze.C]]}),At})();p(53984);var R=p(43532),nt=(p(38719),p(21963),p(28820),p(63167),p(62109),p(22465),p(80275),p(32105)),Ve=p(36908),X=p(16074),z=p(98380),Q=p(34447);function D(At,Ht){1&At&&(le.TgZ(0,"perun-web-apps-alert"),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.Oqu(le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function H(At,Ht){1&At&&(le.TgZ(0,"th",16),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.hij(" ",le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function V(At,Ht){if(1&At&&(le.TgZ(0,"td",17),le._uU(1),le.qZA()),2&At){const lt=Ht.$implicit;le.xp6(1),le.Oqu(lt.friendlyNameParameter)}}function xe(At,Ht){1&At&&(le.TgZ(0,"th",16),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA()),2&At&&(le.xp6(1),le.hij(" ",le.lcZ(2,1,le.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function Qe(At,Ht){if(1&At&&(le.TgZ(0,"td",18),le._uU(1),le.qZA()),2&At){const lt=Ht.$implicit;le.xp6(1),le.Oqu(lt.value)}}function Te(At,Ht){1&At&&le._UZ(0,"th",16)}function Ae(At,Ht){if(1&At){const lt=le.EpF();le.TgZ(0,"td",19),le.TgZ(1,"button",20),le.NdJ("click",function(){const Lt=le.CHM(lt).$implicit;return le.oxw().resetPassword(Lt.friendlyNameParameter)}),le._uU(2),le.ALo(3,"translate"),le.ALo(4,"customTranslate"),le.qZA(),le.qZA()}if(2&At){const lt=Ht.$implicit,Ut=le.oxw();le.xp6(1),le.Q6J("disabled",!Ut.logins.includes(lt)),le.xp6(1),le.hij(" ",le.lcZ(3,2,le.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function ae(At,Ht){1&At&&le._UZ(0,"th",16)}function i(At,Ht){if(1&At){const lt=le.EpF();le.TgZ(0,"td",19),le.TgZ(1,"button",21),le.NdJ("click",function(){const Lt=le.CHM(lt).$implicit;return le.oxw().changePassword(Lt)}),le._uU(2),le.ALo(3,"translate"),le.ALo(4,"customTranslate"),le.qZA(),le.qZA()}if(2&At){const lt=Ht.$implicit,Ut=le.oxw();le.xp6(1),le.Q6J("disabled",!Ut.logins.includes(lt)),le.xp6(1),le.hij(" ",le.lcZ(3,2,le.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function o(At,Ht){1&At&&le._UZ(0,"tr",22)}function d(At,Ht){1&At&&le._UZ(0,"tr",23)}let l=(()=>{class At{constructor(lt,Ut,mt,Lt,Ee,Ge){this.attributesManagerService=lt,this.store=Ut,this.dialog=mt,this.route=Lt,this.router=Ee,this.otherApplicationService=Ge,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(lt=>{const Ut=this.nameSpaces.map(Ee=>{const Ge=Ee.split(":");return Ge[Ge.length-1]});this.logins=lt.filter(Ee=>Ut.includes(Ee.friendlyNameParameter)),this.dataSource=new _.by(lt);const Lt=this.route.snapshot.queryParamMap.get("namespace");if(Lt){const Ee=this.logins.find(Ge=>Ge.friendlyNameParameter===Lt);Ee&&this.changePassword(Ee)}})}resetPassword(lt){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",lt),"_blank")}changePassword(lt){this.router.navigate([],{queryParams:{namespace:lt.friendlyNameParameter},queryParamsHandling:"merge"});const Ut=(0,Ue.kZ)();Ut.width="600px",Ut.data={login:String(lt.value),namespace:lt.friendlyName.split(":")[1]},this.dialog.open(X.xF,Ut).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(nt.H8),le.Y36(Ve.d6),le.Y36(Le.uw),le.Y36(g.gz),le.Y36(g.F0),le.Y36(Ve.jq))},At.\u0275cmp=le.Xpm({type:At,selectors:[["perun-web-apps-password-reset"]],decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(lt,Ut){1<&&(le.TgZ(0,"h1",0),le._uU(1),le.ALo(2,"translate"),le.ALo(3,"customTranslate"),le.qZA(),le.YNc(4,D,4,5,"perun-web-apps-alert",1),le.TgZ(5,"div",2),le.TgZ(6,"div",3),le.TgZ(7,"div",4),le.TgZ(8,"table",5),le.ynx(9,6),le.YNc(10,H,4,5,"th",7),le.YNc(11,V,2,1,"td",8),le.BQk(),le.ynx(12,9),le.YNc(13,xe,4,5,"th",7),le.YNc(14,Qe,2,1,"td",10),le.BQk(),le.ynx(15,11),le.YNc(16,Te,1,0,"th",7),le.YNc(17,Ae,5,6,"td",12),le.BQk(),le.ynx(18,13),le.YNc(19,ae,1,0,"th",7),le.YNc(20,i,5,6,"td",12),le.BQk(),le.YNc(21,o,1,0,"tr",14),le.YNc(22,d,1,0,"tr",15),le.qZA(),le.qZA(),le.qZA(),le.qZA()),2<&&(le.xp6(1),le.hij(" ",le.lcZ(2,5,le.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),le.xp6(3),le.Q6J("ngIf",!Ut.logins.length),le.xp6(4),le.Q6J("dataSource",Ut.dataSource),le.xp6(13),le.Q6J("matHeaderRowDef",Ut.displayedColumns),le.xp6(1),le.Q6J("matRowDefColumns",Ut.displayedColumns))},directives:[e.O5,z.w,_.BZ,A.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,L.lW,_.as,_.XQ,_.nj,_.Gk],pipes:[w.X$,Q.a],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),At})(),s=(()=>{class At{constructor(lt,Ut,mt,Lt){this.router=lt,this.route=Ut,this.location=mt,this.forceRoute=Lt}ngOnInit(){"back"!==this.forceRoute.getLastState()?this.route.queryParams.subscribe(lt=>{this.router.navigate([lt.redirectTo])}):this.location.back()}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(g.F0),le.Y36(g.gz),le.Y36(e.Ye),le.Y36(Ve.xw))},At.\u0275cmp=le.Xpm({type:At,selectors:[["perun-web-apps-redirect-page"]],decls:0,vars:0,template:function(lt,Ut){},styles:[""]}),At})();p(24179),p(58956),p(41619),p(61150);var c=p(63312),x=(p(52314),p(52170));let We=(()=>{class At{constructor(lt){this.router=lt}redirectToHome(){this.router.navigate(["/home"],{queryParamsHandling:"merge"})}}return At.\u0275fac=function(lt){return new(lt||At)(le.Y36(g.F0))},At.\u0275cmp=le.Xpm({type:At,selectors:[["perun-web-apps-not-authorized-page"]],decls:10,vars:9,consts:[[1,"container-fluid","pl-xl-5","pr-xl-5"],[1,"page-title"],["mat-stroked-button","",1,"mt-2",3,"click"]],template:function(lt,Ut){1<&&(le.TgZ(0,"div",0),le.TgZ(1,"h1",1),le._uU(2),le.ALo(3,"translate"),le.qZA(),le.TgZ(4,"div"),le._uU(5),le.ALo(6,"translate"),le.qZA(),le.TgZ(7,"button",2),le.NdJ("click",function(){return Ut.redirectToHome()}),le._uU(8),le.ALo(9,"translate"),le.qZA(),le.qZA()),2<&&(le.xp6(2),le.Oqu(le.lcZ(3,3,"GENERAL.NOT_AUTHORIZED_PAGE.TITLE")),le.xp6(3),le.Oqu(le.lcZ(6,5,"GENERAL.NOT_AUTHORIZED_PAGE.DESC")),le.xp6(3),le.hij(" ",le.lcZ(9,7,"GENERAL.NOT_AUTHORIZED_PAGE.REDIRECT")," "))},directives:[L.lW],pipes:[w.X$],styles:[""]}),At})()},63312:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>g,Y:()=>A});var e=p(5e3),_=(p(32105),p(51062)),w=p(42377);const g={};let A=(()=>{class E{constructor(I){this.translate=I,this.item=null,this.itemSelected=new e.vpe,this.nameFunction=P=>P===g?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM"):P.shortname,this.secondaryFunction=P=>P===g?"":P.id<0?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NEW_ITEM"):"#"+String(P.id),this.searchFunction=P=>P===g?"":P.shortname+String(P.id)}}return E.\u0275fac=function(I){return new(I||E)(e.Y36(_.sK))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-app-form-item-search-select"]],inputs:{items:"items",item:"item"},outputs:{itemSelected:"itemSelected"},decls:4,vars:15,consts:[[3,"entities","searchFunction","mainTextFunction","secondaryTextFunction","entity","disableAutoSelect","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(I,P){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return P.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",P.items)("searchFunction",P.searchFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.secondaryFunction)("entity",P.item)("disableAutoSelect",!0)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.APP_FORM_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[w.i],pipes:[_.X$],styles:[""]}),E})()},38719:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>P});var e=p(5e3),b=p(9244),_=p(69808),w=p(77446),g=p(93075),A=p(67322),E=p(64597);function C(m,L){if(1&m){const O=e.EpF();e.TgZ(0,"mat-checkbox",2),e.NdJ("change",function(){return e.CHM(O),e.oxw()._sendEventToParent()})("ngModelChange",function(ne){return e.CHM(O),e.oxw().attribute.value=ne}),e.ALo(1,"multiWordDataCy"),e.qZA()}if(2&m){const O=e.oxw();e.Q2q("data-cy","",e.lcZ(1,2,O.attribute.displayName),"-value"),e.Q6J("ngModel",O.attribute.value)}}function I(m,L){if(1&m&&(e.TgZ(0,"mat-label"),e._uU(1),e.qZA()),2&m){const O=e.oxw();e.xp6(1),e.Oqu(O.attribute.value)}}let P=(()=>{class m{constructor(){this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return m.\u0275fac=function(O){return new(O||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(O,G){1&O&&(e.TgZ(0,"div"),e.YNc(1,C,2,4,"mat-checkbox",0),e.YNc(2,I,2,1,"mat-label",1),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",!G.readonly),e.xp6(1),e.Q6J("ngIf",G.readonly))},directives:[_.O5,w.oG,g.JJ,g.On,A.hX],pipes:[E.R],styles:[""]}),m})()},21963:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>j});var e=p(5e3),b=p(91159),_=p(44409),w=p(16074),g=p(9244),A=p(48966),E=p(26688),C=p(69808),I=p(25245),P=p(29772),m=p(47423),L=p(67322),O=p(98833);function G(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",9),e.NdJ("mousedown",function(){return e.CHM(te),e.oxw(2).dragDisabled=!1}),e._uU(1,"drag_indicator"),e.qZA()}}function ne(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",10),e.NdJ("click",function(){e.CHM(te);const de=e.oxw().$implicit;return e.oxw().edit(de)}),e._uU(1,"edit"),e.qZA()}}function ge(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-icon",11),e.NdJ("click",function(){e.CHM(te);const de=e.oxw().$implicit;return e.oxw().remove(de)}),e._uU(1,"cancel"),e.qZA()}}function J(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-chip",4),e.NdJ("removed",function(){const Le=e.CHM(te).$implicit,Ue=e.oxw();return Ue.remove(Le),Ue._sendEventToParent()}),e.YNc(1,G,2,0,"mat-icon",5),e.TgZ(2,"div",6),e.NdJ("click",function(){const Le=e.CHM(te).$implicit,Ue=e.oxw();return Ue.readonly&&void 0!==Ue.attribute.displayName&&Ue.showValue(Le,Ue.attribute.displayName)}),e._uU(3),e.qZA(),e.YNc(4,ne,2,0,"mat-icon",7),e.YNc(5,ge,2,0,"mat-icon",8),e.qZA()}if(2&Y){const te=q.$implicit,ue=e.oxw();e.Q6J("selectable",ue.selectable)("cdkDragData",te)("removable",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.ekj("cursor-pointer",ue.readonly&&void 0!==ue.attribute.displayName),e.xp6(1),e.hij(" ",te," "),e.xp6(1),e.Q6J("ngIf",ue.removable),e.xp6(1),e.Q6J("ngIf",ue.removable)}}function Me(Y,q){1&Y&&(e.TgZ(0,"mat-icon"),e._uU(1,"more_horiz"),e.qZA())}function oe(Y,q){1&Y&&(e.TgZ(0,"mat-icon"),e._uU(1,"keyboard_arrow_up"),e.qZA())}function Re(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"div",12),e.TgZ(1,"span",13),e.TgZ(2,"button",14),e.NdJ("click",function(){return e.CHM(te),e.oxw().onShowChange()}),e.YNc(3,Me,2,0,"mat-icon",15),e.YNc(4,oe,2,0,"mat-icon",15),e.qZA(),e.qZA(),e.qZA()}if(2&Y){const te=e.oxw();e.xp6(1),e.Q6J("matTooltip",te.showMore?"Show less":"Show more")("matTooltipPosition","above"),e.xp6(2),e.Q6J("ngIf",!te.showMore),e.xp6(1),e.Q6J("ngIf",te.showMore)}}function T(Y,q){if(1&Y){const te=e.EpF();e.TgZ(0,"mat-form-field",12),e.TgZ(1,"input",16),e.NdJ("matChipInputTokenEnd",function(de){return e.CHM(te),e.oxw().add(de)})("change",function(){return e.CHM(te),e.oxw()._sendEventToParent()}),e.qZA(),e.qZA()}if(2&Y){const te=e.oxw(),ue=e.MAs(2);e.xp6(1),e.Q6J("matChipInputFor",ue)("matChipInputSeparatorKeyCodes",te.separatorKeysCodes)("matChipInputAddOnBlur",te.addOnBlur)}}let j=(()=>{class Y{constructor(te,ue){this.dialog=te,this.changeDetector=ue,this.readonly=!1,this.sendEventToParent=new e.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[b.K5,b.OC],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!(0,g.Hm)(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,g.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(te){const ue=te.input,de=te.value;(de||"").trim()&&(this.attribute.value.push(de.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),ue&&(ue.value=""),this.sendEventToParent.emit()}remove(te){const ue=(0,g.kZ)();ue.width="400px",ue.data={name:te},this.dialog.open(w.Wr,ue).afterClosed().subscribe(Le=>{if(Le){const Ue=this.attribute.value.indexOf(te);this.attribute.value.splice(Ue,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(te){this.dragDisabled=!0,(0,_.bA)(this.attribute.value,te.previousIndex,te.currentIndex),this.values=this.attribute.value}edit(te){const ue=this.attribute.value.indexOf(te),de=(0,g.kZ)();de.width="600px",de.data={attribute:this.attribute,index:ue},this.dialog.open(w.r2,de).afterClosed().subscribe(Ue=>{Ue&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(te,ue){const de=(0,g.kZ)();de.width="350px",de.data={value:te,title:ue},this.dialog.open(w.mk,de)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(A.uw),e.Y36(e.sBO))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(te,ue){1&te&&(e.TgZ(0,"div"),e.TgZ(1,"mat-chip-list",0,1),e.NdJ("cdkDropListDropped",function(Le){return ue.drop(Le),ue._sendEventToParent()}),e.YNc(3,J,6,9,"mat-chip",2),e.YNc(4,Re,5,4,"div",3),e.YNc(5,T,2,3,"mat-form-field",3),e.qZA(),e.qZA()),2&te&&(e.xp6(1),e.Q6J("cdkDropListDisabled",ue.dragDisabled),e.xp6(2),e.Q6J("ngForOf",ue.values.slice(0,ue.itemsShown)),e.xp6(1),e.Q6J("ngIf",ue.values.length>ue.defaultItemsShown),e.xp6(1),e.Q6J("ngIf",!ue.readonly))},directives:[E.qn,_.Wj,C.sg,E.HS,_.Zt,C.O5,I.Hw,P.gM,m.lW,L.KE,O.Nt,E.oH],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),Y})()},28820:($e,_e,p)=>{"use strict";p.d(_e,{$:()=>Me});var e=p(16074),b=p(9244),_=p(5e3),w=p(48966),g=p(93075),A=p(69808),E=p(67322),C=p(98833),I=p(47423),P=p(25245),m=p(29772);function L(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",15),_.NdJ("click",function(){_.CHM(T);const Y=_.oxw().index;return _.oxw().removeValue(Y)}),_.TgZ(1,"mat-icon"),_._uU(2," indeterminate_check_box "),_.qZA(),_.qZA()}}function O(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"div",9),_.TgZ(1,"mat-form-field",10),_._UZ(2,"label",11),_.TgZ(3,"input",12),_.NdJ("click",function(){const q=_.CHM(T).index,te=_.oxw();return te.readonly&&te.attribute.displayName&&te.showValue(te.keys[q],te.attribute.displayName)})("ngModelChange",function(Y){const te=_.CHM(T).index;return _.oxw().keys[te]=Y}),_.qZA(),_.qZA(),_.TgZ(4,"mat-form-field",10),_._UZ(5,"label",11),_.TgZ(6,"input",13),_.NdJ("click",function(){const q=_.CHM(T).$implicit,te=_.oxw();return te.readonly&&void 0!==te.attribute.displayName&&te.showValue(q,te.attribute.displayName)})("ngModelChange",function(Y){const te=_.CHM(T).index;return _.oxw().values[te]=Y}),_.qZA(),_.qZA(),_.YNc(7,L,3,0,"button",14),_.qZA()}if(2&oe){const T=Re.index,j=_.oxw();_.xp6(1),_.s9C("appearance",j.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",j.attribute.id,"-key-",T,""),_.xp6(1),_.ekj("cursor-pointer",j.readonly&&void 0!==j.attribute.displayName),_.hYB("id","",j.attribute.id,"-key-",T,""),_.MGl("name","key-",T,""),_.Q6J("ngModel",j.keys[T])("readonly",j.readonly),_.xp6(1),_.s9C("appearance",j.readonly?"none":"standard"),_.xp6(1),_.hYB("for","",j.attribute.id,"-value-",T,""),_.xp6(1),_.ekj("cursor-pointer",j.readonly&&void 0!==j.attribute.displayName),_.MGl("name","value-",T,""),_.hYB("id","",j.attribute.id,"-value-",T,""),_.Q6J("readonly",j.readonly)("ngModel",j.values[T]),_.xp6(1),_.Q6J("ngIf",!j.readonly)}}function G(oe,Re){1&oe&&(_.TgZ(0,"mat-icon"),_._uU(1,"more_horiz"),_.qZA())}function ne(oe,Re){1&oe&&(_.TgZ(0,"mat-icon"),_._uU(1,"keyboard_arrow_up"),_.qZA())}function ge(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",16),_.NdJ("click",function(){return _.CHM(T),_.oxw().onShowChange()}),_.YNc(1,G,2,0,"mat-icon",17),_.YNc(2,ne,2,0,"mat-icon",17),_.qZA()}if(2&oe){const T=_.oxw();_.xp6(1),_.Q6J("ngIf",!T.showMore),_.xp6(1),_.Q6J("ngIf",T.showMore)}}function J(oe,Re){if(1&oe){const T=_.EpF();_.TgZ(0,"button",18),_.NdJ("click",function(){return _.CHM(T),_.oxw().addValue()}),_.TgZ(1,"mat-icon"),_._uU(2," add_box "),_.qZA(),_.qZA()}}let Me=(()=>{class oe{constructor(T){this.dialog=T,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const T=new Map(Object.entries(this.attribute.value));for(const[j,Y]of T.entries())this.keys.push(j),this.values.push(Y)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}customTrackBy(T){return T}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(T){this.keys.splice(T,1),this.values.splice(T,1)}updateAttribute(){const T={};for(let j=0;jj.defaultItemsShown),_.xp6(1),_.Q6J("ngIf",!j.readonly))},directives:[g._Y,g.JL,g.F,A.sg,E.KE,C.Nt,g.Fj,g.Q7,g.JJ,g.On,A.O5,I.lW,P.Hw,m.gM],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),oe})()},63167:($e,_e,p)=>{"use strict";p.d(_e,{_:()=>I});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(67322),A=p(98833),E=p(93075),C=p(64597);let I=(()=>{class P{constructor(L){this.dialog=L,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=(0,b.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(L,O){const G=(0,b.kZ)();G.width="350px",G.data={value:L,title:O},this.dialog.open(_.mk,G)}}return P.\u0275fac=function(L){return new(L||P)(e.Y36(w.uw))},P.\u0275cmp=e.Xpm({type:P,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(L,O){1&L&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return O.readonly&&void 0!==O.value&&O.showValue(O.value,O.attribute.displayName)})("ngModelChange",function(ne){return O.attribute.value=ne})("keydown",function(){return O._sendEventToParent()}),e.ALo(2,"multiWordDataCy"),e.qZA(),e.qZA()),2&L&&(e.s9C("appearance",O.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",O.readonly&&void 0!==O.value),e.Q2q("data-cy","",e.lcZ(2,6,O.attribute.displayName),"-value"),e.Q6J("readonly",O.readonly)("ngModel",O.attribute.value))},directives:[g.KE,A.Nt,E.Fj,E.JJ,E.On],pipes:[C.R],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),P})()},43532:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>Re});var e=p(5e3),b=p(28820),_=p(69808),w=p(38719),g=p(21963),A=p(63167),E=p(9244),C=p(16074),I=p(48966),P=p(67322),m=p(98833),L=p(93075);let O=(()=>{class T{constructor(Y){this.dialog=Y,this.readonly=!1,this.sendEventToParent=new e.vpe}ngOnInit(){this.readonly||(this.readonly=(0,E.Hm)(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(Y){const q=(0,E.kZ)();q.width="350px",q.data={value:Y.value,title:Y.displayName},this.dialog.open(C.mk,q)}}return T.\u0275fac=function(Y){return new(Y||T)(e.Y36(I.uw))},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(Y,q){1&Y&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"input",1),e.NdJ("click",function(){return q.readonly&&void 0!==q.attribute.value&&q.showValue(q.attribute)})("ngModelChange",function(ue){return q.attribute.value=ue})("keydown",function(){return q._sendEventToParent()}),e.qZA(),e.qZA()),2&Y&&(e.s9C("appearance",q.readonly?"none":"standard"),e.xp6(1),e.ekj("cursor-pointer",q.readonly&&void 0!==q.attribute.value),e.Q6J("readonly",q.readonly)("ngModel",q.attribute.value))},directives:[P.KE,m.Nt,L.wV,L.Fj,L.JJ,L.On],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),T})();const G=["map"];function ne(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-boolean",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function ge(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-list",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function J(T,j){if(1&T&&e._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function Me(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-string",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}function oe(T,j){if(1&T){const Y=e.EpF();e.TgZ(0,"perun-web-apps-attribute-value-integer",3),e.NdJ("sendEventToParent",function(){return e.CHM(Y),e.oxw()._sendEventToParent2()}),e.qZA()}if(2&T){const Y=e.oxw();e.Q6J("attribute",Y.attribute)("readonly",Y.readonly)}}let Re=(()=>{class T{constructor(){this.readonly=!1,this.sendEventToParent2=new e.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return T.\u0275fac=function(Y){return new(Y||T)},T.\u0275cmp=e.Xpm({type:T,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(Y,q){if(1&Y&&e.Gf(G,5),2&Y){let te;e.iGM(te=e.CRH())&&(q.mapComponent=te.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(Y,q){1&Y&&(e.TgZ(0,"div"),e.YNc(1,ne,1,2,"perun-web-apps-attribute-value-boolean",0),e.YNc(2,ge,1,2,"perun-web-apps-attribute-value-list",0),e.TgZ(3,"div",1),e.NdJ("click",function(){return q._sendEventToParent2()}),e.YNc(4,J,2,2,"perun-web-apps-attribute-value-map",2),e.qZA(),e.YNc(5,Me,1,2,"perun-web-apps-attribute-value-string",0),e.YNc(6,oe,1,2,"perun-web-apps-attribute-value-integer",0),e.qZA()),2&Y&&(e.xp6(1),e.Q6J("ngIf","java.lang.Boolean"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.util.ArrayList"===q.attribute.type),e.xp6(2),e.Q6J("ngIf","java.util.LinkedHashMap"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.String"===q.attribute.type||"java.lang.LargeString"===q.attribute.type),e.xp6(1),e.Q6J("ngIf","java.lang.Integer"===q.attribute.type))},directives:[_.O5,w.u,g.H,b.$,A._,O],styles:[""]}),T})()},53984:($e,_e,p)=>{"use strict";p.d(_e,{p:()=>ze});var e=p(84847),b=p(32075),_=p(20449),w=p(43532),g=p(9244),A=p(36908),E=p(5e3),C=p(18750),I=p(77446),P=p(29772),m=p(69808),L=p(98380),O=p(64597);let G=(()=>{class le{transform(ye){return"virt"===ye.namespace.split(":")[4]}}return le.\u0275fac=function(ye){return new(ye||le)},le.\u0275pipe=E.Yjl({name:"isVirtualAttribute",type:le,pure:!0}),le})();var ne=p(51062);function ge(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"th",17),E.TgZ(1,"mat-checkbox",18),E.NdJ("change",function(W){E.CHM(ye);const R=E.oxw();return W?R.masterToggle():null}),E.qZA(),E.qZA()}if(2&le){const ye=E.oxw();E.xp6(1),E.Q6J("checked",ye.selection.hasValue()&&ye.isAllSelected())("indeterminate",ye.selection.hasValue()&&!ye.isAllSelected())("aria-label",ye.checkboxLabel())}}function J(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"td",19),E.TgZ(1,"mat-checkbox",20),E.NdJ("click",function(W){return W.stopPropagation()})("change",function(W){const me=E.CHM(ye).$implicit,be=E.oxw();return W?be.selection.toggle(me):null}),E.ALo(2,"multiWordDataCy"),E.ALo(3,"isVirtualAttribute"),E.qZA(),E.qZA()}if(2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,4,ye.displayName),"-checkbox"),E.Q6J("checked",Be.selection.isSelected(ye))("disabled",E.lcZ(3,6,ye)||!ye.writable)("aria-label",Be.checkboxLabel(ye))}}function Me(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function oe(le,je){if(1&le&&(E.TgZ(0,"td",22),E._uU(1),E.qZA()),2&le){const ye=je.$implicit;E.xp6(1),E.Oqu(ye.id)}}function Re(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function T(le,je){if(1&le&&(E.TgZ(0,"td",23),E.TgZ(1,"div",24),E._uU(2),E.qZA(),E.qZA()),2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.s9C("matTooltip",Be.getAttributeFullName(ye)),E.xp6(1),E.hij(" ",ye.displayName," ")}}function j(le,je){1&le&&(E.TgZ(0,"th",25),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function Y(le,je){if(1&le){const ye=E.EpF();E.TgZ(0,"td",23),E.TgZ(1,"perun-web-apps-attribute-value",26),E.NdJ("sendEventToParent2",function(){const R=E.CHM(ye).$implicit;return E.oxw().onValueChange(R)}),E.qZA(),E.qZA()}if(2&le){const ye=je.$implicit,Be=E.oxw();E.xp6(1),E.Q6J("attribute",ye)("readonly",Be.readonly||!ye.writable)}}function q(le,je){1&le&&(E.TgZ(0,"th",21),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function te(le,je){if(1&le&&(E.TgZ(0,"td",23),E._uU(1),E.qZA()),2&le){const ye=je.$implicit;E.xp6(1),E.Oqu(ye.description)}}function ue(le,je){1&le&&E._UZ(0,"tr",27)}function de(le,je){if(1&le&&(E._UZ(0,"tr",28),E.ALo(1,"translate")),2&le){const ye=je.$implicit,Be=E.oxw();E.s9C("matTooltip",E.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),E.Q6J("matTooltipPosition","before")("matTooltipDisabled",ye.writable||Be.readonly)}}function Le(le,je){1&le&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ue(le,je){if(1&le&&(E.TgZ(0,"perun-web-apps-alert",29),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&le){const ye=E.oxw();E.xp6(1),E.hij(" ",E.lcZ(2,1,ye.emptyListText),"\n")}}let ze=(()=>{class le{constructor(ye,Be){this.authResolver=ye,this.tableCheckbox=Be,this.attributes=[],this.selection=new _.Ov(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=g.f7}set matSort(ye){this.sort=ye,this.setDataSource()}static canBeSelected(ye){return!(0,g.Hm)(ye)&&ye.writable}static getDataForColumn(ye,Be){switch(Be){case"id":return ye.id.toString();case"displayName":return ye.displayName;case"description":return ye.description;case"value":return JSON.stringify(ye.value);case"urn":return ye.namespace+":"+ye.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(ye=>"id"!==ye)),this.dataSource=new b.by((0,g.MX)(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(ye){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,le.getDataForColumn),ye)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(ye=>!this.hiddenColumns.includes(ye)),this.dataSource&&(this.dataSource.filterPredicate=(ye,Be)=>(0,g.Sd)(ye,Be,this.displayedColumns.concat("urn"),le.getDataForColumn),this.dataSource.sortData=(ye,Be)=>(0,g.pR)(ye,Be,le.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,le.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,le.canBeSelected)}checkboxLabel(ye){return ye?`${this.selection.isSelected(ye)?"deselect":"select"} row ${ye.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const ye of this.items.toArray())"java.util.LinkedHashMap"===ye.attribute.type&&ye.updateMapAttribute()}onValueChange(ye){le.canBeSelected(ye)&&this.selection.select(ye)}getAttributeFullName(ye){return`${ye.namespace}:${ye.friendlyName}`}}return le.\u0275fac=function(ye){return new(ye||le)(E.Y36(A.x4),E.Y36(A.UA))},le.\u0275cmp=E.Xpm({type:le,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(ye,Be){if(1&ye&&(E.Gf(g.l9,7),E.Gf(e.YE,7),E.Gf(w.M,5)),2&ye){let W;E.iGM(W=E.CRH())&&(Be.child=W.first),E.iGM(W=E.CRH())&&(Be.matSort=W.first),E.iGM(W=E.CRH())&&(Be.items=W)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[E.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(ye,Be){1&ye&&(E.TgZ(0,"div",0),E.TgZ(1,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(R){return Be.exportData(R)}),E.TgZ(2,"table",2),E.ynx(3,3),E.YNc(4,ge,2,3,"th",4),E.YNc(5,J,4,8,"td",5),E.BQk(),E.ynx(6,6),E.YNc(7,Me,3,3,"th",7),E.YNc(8,oe,2,1,"td",8),E.BQk(),E.ynx(9,9),E.YNc(10,Re,3,3,"th",7),E.YNc(11,T,3,2,"td",10),E.BQk(),E.ynx(12,11),E.YNc(13,j,3,3,"th",12),E.YNc(14,Y,2,2,"td",10),E.BQk(),E.ynx(15,13),E.YNc(16,q,3,3,"th",7),E.YNc(17,te,2,1,"td",10),E.BQk(),E.YNc(18,ue,1,0,"tr",14),E.YNc(19,de,2,5,"tr",15),E.qZA(),E.qZA(),E.qZA(),E.YNc(20,Le,3,3,"perun-web-apps-alert",16),E.YNc(21,Ue,3,3,"perun-web-apps-alert",16)),2&ye&&(E.Q6J("hidden",0===Be.dataSource.filteredData.length),E.xp6(1),E.Q6J("tableId",Be.tableId)("dataLength",Be.dataSource.filteredData.length)("pageSizeOptions",Be.pageSizeOptions),E.xp6(1),E.Q6J("dataSource",Be.dataSource),E.xp6(16),E.Q6J("matHeaderRowDef",Be.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",Be.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===Be.dataSource.filteredData.length&&0!==Be.dataSource.data.length),E.xp6(1),E.Q6J("ngIf",0===Be.dataSource.data.length))},directives:[C.l,b.BZ,e.YE,b.w1,b.fO,b.ge,I.oG,b.Dz,b.ev,e.nU,P.gM,w.M,b.as,b.XQ,b.nj,b.Gk,m.O5,L.w],pipes:[O.R,G,ne.X$],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),le})()},4235:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>I});var e=p(36908),b=p(5e3),_=p(69808),w=p(47423),g=p(29772),A=p(25245),E=p(51062);const C=function(P){return{color:P}};let I=(()=>{class P{constructor(L,O){this.location=L,this.storeService=O}ngOnInit(){this.backButtonColor=this.storeService.get("theme","back_button_color")}goBack(){"false"===sessionStorage.getItem("onInitPage")&&this.location.back()}}return P.\u0275fac=function(L){return new(L||P)(b.Y36(_.Ye),b.Y36(e.d6))},P.\u0275cmp=b.Xpm({type:P,selectors:[["perun-web-apps-back-button"]],decls:4,vars:6,consts:[["mat-stroked-button","",1,"mb-2","mt-2",3,"ngStyle","matTooltip","click"],[1,"rotate"]],template:function(L,O){1&L&&(b.TgZ(0,"button",0),b.NdJ("click",function(){return O.goBack()}),b.ALo(1,"translate"),b.TgZ(2,"mat-icon",1),b._uU(3,"arrow_right_alt"),b.qZA(),b.qZA()),2&L&&(b.s9C("matTooltip",b.lcZ(1,2,"Back")),b.Q6J("ngStyle",b.VKq(4,C,O.backButtonColor)))},directives:[w.lW,_.PC,g.gM,A.Hw],pipes:[E.X$],styles:[".rotate[_ngcontent-%COMP%]{transform:rotate(180deg) scale(1.5)}"]}),P})()},61150:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>L});var e=p(5e3),b=p(93075),_=p(36908),w=p(67322),g=p(98833),A=p(69808),E=p(77446),C=p(82322),I=p(51062);function P(O,G){if(1&O){const ne=e.EpF();e.TgZ(0,"mat-checkbox",7),e.NdJ("change",function(){return e.CHM(ne),e.oxw().emitAsSubGroup()})("ngModelChange",function(J){return e.CHM(ne),e.oxw().asSubgroup=J}),e._uU(1),e.ALo(2,"translate"),e.qZA()}if(2&O){const ne=e.oxw();e.Q6J("labelPosition","before")("ngModel",ne.asSubgroup),e.xp6(1),e.hij(" ",e.lcZ(2,3,"DIALOGS.CREATE_GROUP.AS_SUBGROUP")," ")}}function m(O,G){if(1&O){const ne=e.EpF();e.TgZ(0,"perun-web-apps-group-search-select",8),e.NdJ("groupSelected",function(J){return e.CHM(ne),e.oxw().emitParentGroup(J)}),e.qZA()}if(2&O){const ne=e.oxw();e.Q6J("disableAutoSelect",!0)("groups",ne.voGroups)}}let L=(()=>{class O{constructor(ne){this.store=ne,this.parentGroup=null,this.voGroups=[],this.nameChanged=new e.vpe,this.descriptionChanged=new e.vpe,this.parentGroupChanged=new e.vpe,this.asSubgroupChanged=new e.vpe,this.asSubgroup=!1,this.invalidNameMessage=this.store.get("group_name_error_message"),this.secondaryRegex=this.store.get("group_name_secondary_regex")}ngOnInit(){this.isNotSubGroup=null===this.parentGroup,this.nameControl=new b.NI("",[b.kI.required,b.kI.pattern(this.secondaryRegex?this.secondaryRegex:""),b.kI.pattern(".*[\\S]+.*")]),this.descriptionControl=new b.NI("",[b.kI.required,b.kI.maxLength(129)]),this.selectedParent=null,this.voGroups=this.voGroups.filter(ne=>"members"!==ne.name)}emitName(){this.nameChanged.emit(this.nameControl.invalid?"":this.nameControl.value)}emitDescription(){this.descriptionChanged.emit(this.descriptionControl.invalid?"":this.descriptionControl.value)}emitParentGroup(ne){this.selectedParent=ne,this.parentGroupChanged.emit(ne)}emitAsSubGroup(){this.asSubgroup||this.emitParentGroup(null),this.asSubgroupChanged.emit(this.asSubgroup)}}return O.\u0275fac=function(ne){return new(ne||O)(e.Y36(_.d6))},O.\u0275cmp=e.Xpm({type:O,selectors:[["perun-web-apps-create-group-form"]],inputs:{parentGroup:"parentGroup",voGroups:"voGroups"},outputs:{nameChanged:"nameChanged",descriptionChanged:"descriptionChanged",parentGroupChanged:"parentGroupChanged",asSubgroupChanged:"asSubgroupChanged"},decls:17,vars:16,consts:[[1,"dialog-container"],[3,"keyup"],[1,"w-100"],["matInput","","required","",3,"formControl","placeholder"],[1,"mt-4",3,"keyup"],[3,"labelPosition","ngModel","change","ngModelChange",4,"ngIf"],["class","long-input",3,"disableAutoSelect","groups","groupSelected",4,"ngIf"],[3,"labelPosition","ngModel","change","ngModelChange"],[1,"long-input",3,"disableAutoSelect","groups","groupSelected"]],template:function(ne,ge){1&ne&&(e.TgZ(0,"div",0),e.TgZ(1,"mat-form-field",1),e.NdJ("keyup",function(){return ge.emitName()}),e.TgZ(2,"label",2),e._UZ(3,"input",3),e.ALo(4,"translate"),e.qZA(),e.TgZ(5,"mat-error"),e._uU(6),e.ALo(7,"translate"),e.qZA(),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("keyup",function(){return ge.emitDescription()}),e.TgZ(9,"label",2),e._UZ(10,"textarea",3),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"mat-error"),e._uU(13),e.ALo(14,"translate"),e.qZA(),e.qZA(),e.YNc(15,P,3,5,"mat-checkbox",5),e.YNc(16,m,1,2,"perun-web-apps-group-search-select",6),e.qZA()),2&ne&&(e.xp6(3),e.s9C("placeholder",e.lcZ(4,8,"DIALOGS.CREATE_GROUP.NAME")),e.Q6J("formControl",ge.nameControl),e.xp6(3),e.hij(" ",ge.invalidNameMessage.length?ge.invalidNameMessage:e.lcZ(7,10,"DIALOGS.CREATE_GROUP.FILL_VALUE")," "),e.xp6(4),e.s9C("placeholder",e.lcZ(11,12,"DIALOGS.CREATE_GROUP.DESCRIPTION")),e.Q6J("formControl",ge.descriptionControl),e.xp6(3),e.hij(" ",e.lcZ(14,14,"DIALOGS.CREATE_GROUP.INVALID_DESCRIPTION")," "),e.xp6(2),e.Q6J("ngIf",ge.isNotSubGroup),e.xp6(1),e.Q6J("ngIf",ge.asSubgroup))},directives:[w.KE,g.Nt,b.Fj,b.Q7,b.JJ,b.oH,w.TO,A.O5,E.oG,b.On,C.h],pipes:[I.X$],styles:[""]}),O})()},39798:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>E});var e=p(5e3),b=p(67322),_=p(98833),w=p(86856),g=p(93075),A=p(51062);let E=(()=>{class C{constructor(){this.datePicker=new e.vpe}ngOnInit(){this.startMinDate=new Date(2e3,0,1),this.endMaxDate=new Date,this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}dateChange(){this.datePicker.emit(),this.startMaxDate=this.endDate.value,this.endMinDate=this.startDate.value}}return C.\u0275fac=function(P){return new(P||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-date-range"]],inputs:{startDate:"startDate",endDate:"endDate"},outputs:{datePicker:"datePicker"},decls:16,vars:16,consts:[["appearance","standard",1,"mr-2",3,"click"],["matInput","","readonly","",3,"matDatepicker","min","max","formControl","dateChange"],["matSuffix","",3,"for"],["datePickerStart",""],["appearance","standard",3,"click"],["datePickerEnd",""]],template:function(P,m){if(1&P){const L=e.EpF();e.TgZ(0,"mat-form-field",0),e.NdJ("click",function(){return e.CHM(L),e.MAs(7).open()}),e.TgZ(1,"mat-label"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"input",1),e.NdJ("dateChange",function(){return m.dateChange()}),e.qZA(),e._UZ(5,"mat-datepicker-toggle",2),e._UZ(6,"mat-datepicker",null,3),e.qZA(),e.TgZ(8,"mat-form-field",4),e.NdJ("click",function(){return e.CHM(L),e.MAs(15).open()}),e.TgZ(9,"mat-label"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.TgZ(12,"input",1),e.NdJ("dateChange",function(){return m.dateChange()}),e.qZA(),e._UZ(13,"mat-datepicker-toggle",2),e._UZ(14,"mat-datepicker",null,5),e.qZA()}if(2&P){const L=e.MAs(7),O=e.MAs(15);e.xp6(2),e.Oqu(e.lcZ(3,12,"VO_DETAIL.APPLICATION.DATE.START")),e.xp6(2),e.Q6J("matDatepicker",L)("min",m.startMinDate)("max",m.startMaxDate)("formControl",m.startDate),e.xp6(1),e.Q6J("for",L),e.xp6(5),e.Oqu(e.lcZ(11,14,"VO_DETAIL.APPLICATION.DATE.END")),e.xp6(2),e.Q6J("matDatepicker",O)("min",m.endMinDate)("max",m.endMaxDate)("formControl",m.endDate),e.xp6(1),e.Q6J("for",O)}},directives:[b.KE,b.hX,_.Nt,w.hl,g.Fj,g.JJ,g.oH,w.nW,b.R9,w.Mq],pipes:[A.X$],styles:[""]}),C})()},64901:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>m});var e=p(5e3),b=p(23753),_=p(24850),w=p(80013),g=p(75778),A=p(93075),E=p(67322),C=p(98833),I=p(51062);const P=["input"];let m=(()=>{class L{constructor(){this.autoFocus=!1,this.control=new A.NI,this.filter=new e.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),(0,b.R)(this.input.nativeElement,"keyup").pipe((0,_.U)(G=>G.target.value),(0,w.b)(500),(0,g.x)()).subscribe(G=>{this.control.invalid||this.filter.emit(G)})}}return L.\u0275fac=function(G){return new(G||L)},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(G,ne){if(1&G&&e.Gf(P,7),2&G){let ge;e.iGM(ge=e.CRH())&&(ne.input=ge.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder","formControl"],["input",""]],template:function(G,ne){1&G&&(e.TgZ(0,"mat-form-field",0),e._UZ(1,"input",1,2),e.ALo(3,"translate"),e.TgZ(4,"mat-error"),e._uU(5),e.qZA(),e.qZA()),2&G&&(e.xp6(1),e.s9C("placeholder",e.lcZ(3,3,ne.placeholder)),e.Q6J("formControl",ne.control),e.xp6(4),e.hij(" ",ne.error," "))},directives:[E.KE,C.Nt,A.Fj,A.JJ,A.oH,E.TO],pipes:[I.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),L})()},42377:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>Me});var e=p(5e3),b=p(93075),_=p(96831),w=p(8929),g=p(7625),A=p(67322),E=p(74107),C=p(69808),I=p(90508),P=p(43586),m=p(53435);const L=["scrollViewport"];function O(oe,Re){if(1&oe&&(e.TgZ(0,"mat-select-trigger"),e._uU(1),e.qZA()),2&oe){const T=e.oxw();e.xp6(1),e.hij(" ",T.multipleSelectedText()," ")}}function G(oe,Re){if(1&oe&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&oe){const T=e.oxw(2);e.Tol(T.colorByStatus(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.hij(" ",T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)?"("+T.statusTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)+")":""," ")}}function ne(oe,Re){if(1&oe&&(e.TgZ(0,"mat-option",8),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,G,2,4,"span",10),e.qZA()),2&oe){const T=e.oxw();e.Q6J("value",null==T.entitiesCtrl?null:T.entitiesCtrl.value),e.xp6(1),e.hij(" ",T.mainTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)," "),e.xp6(2),e.Oqu(T.secondaryTextFunction(null==T.entitiesCtrl?null:T.entitiesCtrl.value)),e.xp6(1),e.Q6J("ngIf",T.displayStatus)}}function ge(oe,Re){if(1&oe&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&oe){const T=e.oxw().$implicit,j=e.oxw();e.Tol(j.colorByStatus(T)),e.xp6(1),e.hij(" ",j.statusTextFunction(T)?"("+j.statusTextFunction(T)+")":""," ")}}function J(oe,Re){if(1&oe&&(e.TgZ(0,"mat-option",11),e._uU(1),e.TgZ(2,"span",9),e._uU(3),e.qZA(),e.YNc(4,ge,2,4,"span",10),e.qZA()),2&oe){const T=Re.$implicit,j=e.oxw();e.Tol(j.theme),e.Q6J("value",T),e.xp6(1),e.hij(" ",j.mainTextFunction(T)," "),e.xp6(2),e.Oqu(j.secondaryTextFunction(T)),e.xp6(1),e.Q6J("ngIf",j.displayStatus)}}let Me=(()=>{class oe{constructor(T){this.cd=T,this.selectPlaceholder="Select",this.findPlaceholder="Find...",this.noEntriesText="Nothing found",this.disableAutoSelect=!1,this.entity=null,this.displayStatus=!1,this.multiple=!1,this.theme="",this.entitySelected=new e.vpe,this.entitiesCtrl=new b.NI,this.entityFilterCtrl=new b.NI,this.filteredEntities=new _.t(1),this._onDestroy=new w.xQ,this.entitiesLen=0,this.mainTextFunction=j=>JSON.stringify(j),this.secondaryTextFunction=j=>"#".concat(String(j.id),j.description?" ".concat(j.description):""),this.statusTextFunction=j=>j.status}ngOnInit(){this.entitiesCtrl.valueChanges.subscribe(T=>this.entitySelected.emit(T)),!this.disableAutoSelect&&null===this.entity&&this.entitiesCtrl.setValue(this.entities[0]),this.filteredEntities.subscribe(T=>this.entitiesLen=T.length),this.entityFilterCtrl.valueChanges.pipe((0,g.R)(this._onDestroy)).subscribe(()=>{this.filterEntites()}),null!==this.entity&&this.entitiesCtrl.setValue(this.entity)}colorByStatus(T){switch(T.status){case"ACTIVE":return"green";case"INACTIVE":return"grey";case"FAILED":return"red";case"PROCESSING":return"black"}}ngOnChanges(T){null!==this.entity&&this.entitiesCtrl.setValue(this.entity),T.entities&&this.filteredEntities.next(this.entities.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}normalize(T){return T.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}openChange(){this.scrollViewport.scrollToIndex(0),this.scrollViewport.checkViewportSize()}getViewportHeight(){let T=48*this.entitiesLen;return T>192&&(T=192),this.scrollViewport&&this.scrollViewport.checkViewportSize(),T}multipleSelectedText(){const T=this.entitiesCtrl.value;if(T&&0!==T.length)return T.length===this.entities.length?"ALL":T.length>1?this.mainTextFunction(T[0])+` + ${T.length-1} other(s)`:this.mainTextFunction(T[0])+" "+this.secondaryTextFunction(T[0])}filterEntites(){if(!this.entities)return;let T=this.entityFilterCtrl.value;if(!T)return this.filteredEntities.next(this.entities.slice()),void this.cd.detectChanges();T=this.normalize(T),this.filteredEntities.next(this.entities.filter(j=>this.normalize(this.searchFunction(j)).includes(T))),this.cd.detectChanges()}}return oe.\u0275fac=function(T){return new(T||oe)(e.Y36(e.sBO))},oe.\u0275cmp=e.Xpm({type:oe,selectors:[["perun-web-apps-entity-search-select"]],viewQuery:function(T,j){if(1&T&&e.Gf(L,5),2&T){let Y;e.iGM(Y=e.CRH())&&(j.scrollViewport=Y.first)}},inputs:{entities:"entities",selectPlaceholder:"selectPlaceholder",findPlaceholder:"findPlaceholder",noEntriesText:"noEntriesText",disableAutoSelect:"disableAutoSelect",entity:"entity",displayStatus:"displayStatus",multiple:"multiple",theme:"theme",searchFunction:"searchFunction",mainTextFunction:"mainTextFunction",secondaryTextFunction:"secondaryTextFunction"},outputs:{entitySelected:"entitySelected"},features:[e.TTD],decls:10,vars:16,consts:[[1,"w-100"],[3,"placeholder","formControl","multiple","openedChange"],[4,"ngIf"],[3,"placeholderLabel","noEntriesFoundLabel","clearSearchInput","formControl"],["class","selected-options-bottom",3,"value",4,"ngIf"],["itemSize","48",3,"minBufferPx","maxBufferPx"],["scrollViewport",""],[3,"class","value",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"selected-options-bottom",3,"value"],[1,"text-muted"],[3,"class",4,"ngIf"],[3,"value"]],template:function(T,j){1&T&&(e.TgZ(0,"mat-form-field",0),e.TgZ(1,"mat-select",1),e.NdJ("openedChange",function(){return j.openChange()}),e.YNc(2,O,2,1,"mat-select-trigger",2),e.TgZ(3,"mat-option"),e._UZ(4,"ngx-mat-select-search",3),e.qZA(),e.YNc(5,ne,5,4,"mat-option",4),e.TgZ(6,"cdk-virtual-scroll-viewport",5,6),e.YNc(8,J,5,7,"mat-option",7),e.ALo(9,"async"),e.qZA(),e.qZA(),e.qZA()),2&T&&(e.xp6(1),e.s9C("placeholder",j.selectPlaceholder),e.Q6J("formControl",j.entitiesCtrl)("multiple",j.multiple),e.xp6(1),e.Q6J("ngIf",j.multiple),e.xp6(2),e.s9C("placeholderLabel",j.findPlaceholder),e.s9C("noEntriesFoundLabel",j.noEntriesText),e.Q6J("clearSearchInput",!1)("formControl",j.entityFilterCtrl),e.xp6(1),e.Q6J("ngIf",null==j.entitiesCtrl?null:j.entitiesCtrl.value),e.xp6(1),e.Udp("height",j.getViewportHeight(),"px"),e.Q6J("minBufferPx",240)("maxBufferPx",480),e.xp6(2),e.Q6J("cdkVirtualForOf",e.lcZ(9,14,j.filteredEntities)))},directives:[A.KE,E.gD,b.JJ,b.oH,C.O5,E.$L,I.ey,P.nu,m.N7,m.xd,m.x0],pipes:[C.Ov],styles:[".selected-options-bottom[_ngcontent-%COMP%]{visibility:hidden;position:absolute}.green[_ngcontent-%COMP%]{color:green}.grey[_ngcontent-%COMP%]{color:gray}.red[_ngcontent-%COMP%]{color:red}.black[_ngcontent-%COMP%]{color:#000}"]}),oe})()},74010:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>z});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),I=p(93075),P=p(69808),m=p(29772),L=p(47423),O=p(25245);function G(Q,D){if(1&Q&&(g.TgZ(0,"div",6),g._uU(1),g.qZA()),2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.hij(" ",H[V.paramName]," ")}}function ne(Q,D){1&Q&&(g.TgZ(0,"mat-icon"),g._uU(1,"more_horiz"),g.qZA())}function ge(Q,D){1&Q&&(g.TgZ(0,"mat-icon"),g._uU(1,"keyboard_arrow_up"),g.qZA())}function J(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"button",7),g.NdJ("click",function(){return g.CHM(H),g.oxw().onShowChange()}),g.YNc(1,ne,2,0,"mat-icon",8),g.YNc(2,ge,2,0,"mat-icon",8),g.qZA()}if(2&Q){const H=g.oxw();g.xp6(1),g.Q6J("ngIf",!H.showMore),g.xp6(1),g.Q6J("ngIf",H.showMore)}}let Me=(()=>{class Q{constructor(){this.objects=[],this.filterValue="",this.paramName="",this.showMore=!1,this.defaultItemsShown=3}ngOnInit(){this.itemsShown=this.defaultItemsShown}ngOnChanges(){this.itemsShown=this.defaultItemsShown,this.showMore=!1}onShowChange(){this.showMore=!this.showMore,this.itemsShown=this.showMore?this.objects.length:this.defaultItemsShown}}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275cmp=g.Xpm({type:Q,selectors:[["perun-web-apps-object-list-values"]],inputs:{objects:"objects",filterValue:"filterValue",paramName:"paramName"},features:[g.TTD],decls:7,vars:4,consts:[[1,"d-flex","w-100"],[1,"w-100"],[1,"mr-5"],["class","d-flex mb-1",4,"ngFor","ngForOf"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"d-flex","mb-1"],["mat-icon-button","",3,"click"],[4,"ngIf"]],template:function(H,V){1&H&&(g.TgZ(0,"form",0),g.TgZ(1,"div",1),g.TgZ(2,"div",2),g.YNc(3,G,2,1,"div",3),g.qZA(),g.TgZ(4,"div"),g.TgZ(5,"span",4),g.YNc(6,J,3,2,"button",5),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&H&&(g.xp6(3),g.Q6J("ngForOf",V.objects.slice(0,V.itemsShown)),g.xp6(2),g.Q6J("matTooltip",V.showMore?"Show less":"Show more")("matTooltipPosition","above"),g.xp6(1),g.Q6J("ngIf",V.objects.length>V.defaultItemsShown))},directives:[I._Y,I.JL,I.F,P.sg,m.gM,P.O5,L.lW,O.Hw],styles:[""]}),Q})();var oe=p(50301),Re=p(11735),T=p(98380),j=p(51062),Y=p(53561);let q=(()=>{class Q{transform(H,V,xe){return H.filter(Qe=>Qe[xe].includes(V)).filter((Qe,Te,Ae)=>Ae.findIndex(ae=>ae[xe]===Qe[xe])===Te)}}return Q.\u0275fac=function(H){return new(H||Q)},Q.\u0275pipe=g.Yjl({name:"filterUniqueObjects",type:Q,pure:!0}),Q})();function te(Q,D){1&Q&&g._UZ(0,"th",20)}function ue(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",21),g.TgZ(1,"mat-checkbox",22),g.NdJ("change",function(xe){const Te=g.CHM(H).$implicit,Ae=g.oxw();return xe?Ae.selection.toggle(Te):null})("click",function(xe){return xe.stopPropagation()}),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q2q("data-cy","",H.facility.name,"-checkbox"),g.Q6J("aria-label",V.checkboxLabel(H))("checked",V.selection.isSelected(H))}}function de(Q,D){1&Q&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.ID")," "))}function Le(Q,D){if(1&Q&&(g.TgZ(0,"td",24),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.hij(" ",H.facility.id," ")}}function Ue(Q,D){1&Q&&g._UZ(0,"th",25)}function ze(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._UZ(1,"perun-web-apps-recently-viewed-icon",27),g.qZA()),2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("id",H.facility.id)("recentIds",V.recentIds)}}function le(Q,D){1&Q&&(g.TgZ(0,"th",23),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.NAME")," "))}function je(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.uIk("data-cy",H.facility.name),g.xp6(1),g.hij(" ",H.facility.name," ")}}function ye(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESCRIPTION")," "))}function Be(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.Oqu(H.facility.description)}}function W(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.TECHNICAL_OWNERS")," "))}function R(Q,D){if(1&Q&&(g.TgZ(0,"td",26),g._uU(1),g.ALo(2,"technicalOwners"),g.qZA()),2&Q){const H=D.$implicit;g.xp6(1),g.Oqu(g.lcZ(2,1,H.owners))}}function me(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.DESTINATIONS")," "))}function be(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(H),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(H),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,H.destinations,V.filterValue,"destination"))("paramName","destination")}}function Ie(Q,D){1&Q&&(g.TgZ(0,"th",25),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED.COMPONENTS.FACILITIES_LIST.HOSTS")," "))}function pe(Q,D){if(1&Q){const H=g.EpF();g.TgZ(0,"td",26),g.TgZ(1,"perun-web-apps-object-list-values",28),g.NdJ("mouseenter",function(){return g.CHM(H),g.oxw().disableRouting=!0})("mouseleave",function(){return g.CHM(H),g.oxw().disableRouting=!1}),g.ALo(2,"filterUniqueObjects"),g.qZA(),g.qZA()}if(2&Q){const H=D.$implicit,V=g.oxw();g.xp6(1),g.Q6J("objects",g.Dn7(2,2,H.hosts,V.filterValue,"hostname"))("paramName","hostname")}}function Se(Q,D){1&Q&&g._UZ(0,"tr",29)}const Xe=function(Q){return["/facilities",Q]},Je=function(){return[]};function nt(Q,D){if(1&Q&&g._UZ(0,"tr",30),2&Q){const H=D.$implicit,V=g.oxw();g.Q6J("perunWebAppsMiddleClickRouterLink",g.VKq(2,Xe,H.facility.id))("routerLink",V.disableRouting?g.DdM(4,Je):g.VKq(5,Xe,H.facility.id))}}function Ve(Q,D){1&Q&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function X(Q,D){1&Q&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&Q&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FACILITIES"),"\n"))}let z=(()=>{class Q{constructor(H){this.authResolver=H,this.displayedColumns=["select","id","recent","name","description","technicalOwners","destinations","hosts"],this.pageSizeOptions=_.f7,this.getDataForColumnFun=(V,xe)=>Q.getDataForColumn(V,xe,this.recentIds)}set matSort(H){this.sort=H}static getDataForColumn(H,V,xe){switch(V){case"id":return H.facility.id.toString();case"name":return H.facility.name;case"description":return H.facility.description;case"technicalOwners":return(0,_.te)(H.owners);case"recent":return xe&&xe.includes(H.facility.id)?"#".repeat(xe.indexOf(H.facility.id)):H.name;case"destinations":return H.destinations.map(Qe=>Qe.destination).join(" ; ");case"hosts":return H.hosts.map(Qe=>Qe.hostname).join(" ; ");default:return H[V]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(H=>"id"!==H)),this.setDataSource()}exportData(H){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),H)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(H,V)=>(0,_.Sd)(H,V,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(H,V)=>(0,_.pR)(H,V,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.facilities}isAllSelected(){return this.selection.selected.length===this.dataSource.data.length}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(H=>this.selection.select(H))}checkboxLabel(H){return H?`${this.selection.isSelected(H)?"deselect":"select"} row ${H.facility.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return Q.\u0275fac=function(H){return new(H||Q)(g.Y36(w.x4))},Q.\u0275cmp=g.Xpm({type:Q,selectors:[["perun-web-apps-facilities-list"]],viewQuery:function(H,V){if(1&H&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&H){let xe;g.iGM(xe=g.CRH())&&(V.child=xe.first),g.iGM(xe=g.CRH())&&(V.matSort=xe.first)}},inputs:{facilities:"facilities",recentIds:"recentIds",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",selection:"selection",pageSizeOptions:"pageSizeOptions"},features:[g.TTD],decls:31,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","technicalOwners"],["matColumnDef","destinations"],["matColumnDef","hosts"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"id","recentIds"],[3,"objects","paramName","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(H,V){1&H&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(Qe){return V.exportData(Qe)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,te,1,0,"th",4),g.YNc(5,ue,2,3,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,de,3,3,"th",7),g.YNc(8,Le,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Ue,1,0,"th",10),g.YNc(11,ze,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,le,3,3,"th",7),g.YNc(14,je,2,2,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,ye,3,3,"th",10),g.YNc(17,Be,2,1,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,W,3,3,"th",10),g.YNc(20,R,3,3,"td",11),g.BQk(),g.ynx(21,15),g.YNc(22,me,3,3,"th",10),g.YNc(23,be,3,6,"td",11),g.BQk(),g.ynx(24,16),g.YNc(25,Ie,3,3,"th",10),g.YNc(26,pe,3,6,"td",11),g.BQk(),g.YNc(27,Se,1,0,"tr",17),g.YNc(28,nt,1,7,"tr",18),g.qZA(),g.qZA(),g.qZA(),g.YNc(29,Ve,3,3,"perun-web-apps-alert",19),g.YNc(30,X,3,3,"perun-web-apps-alert",19)),2&H&&(g.Q6J("hidden",!V.dataSource||0===V.dataSource.filteredData.length||0===V.facilities.length),g.xp6(1),g.Q6J("tableId",V.tableId)("dataLength",V.dataSource.filteredData.length)("pageSizeOptions",V.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",V.dataSource),g.xp6(25),g.Q6J("matHeaderRowDef",V.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",V.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===V.dataSource.filteredData.length&&0!==V.facilities.length),g.xp6(1),g.Q6J("ngIf",0===V.facilities.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,Me,b.as,b.XQ,b.nj,b.Gk,oe.YH,Re.rH,P.O5,T.w],pipes:[j.X$,Y.J,q],styles:["tr[_ngcontent-%COMP%]{cursor:pointer}"]}),Q})()},13449:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>T});var e=p(5e3),b=p(36908),_=p(69808),w=p(47423),g=p(69287),A=p(29772),E=p(25245),C=p(92181),I=p(51062),P=p(45942),m=p(29218),L=p(28764);function O(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.ALo(2,"groupSyncToolTip"),e.TgZ(3,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onSyncDetail()}),e.ALo(4,"groupSyncIcon"),e.TgZ(5,"mat-icon"),e.ALo(6,"groupSyncIconColor"),e._uU(7),e.ALo(8,"groupSyncIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("matTooltipPosition","above")("matTooltip",e.lcZ(1,7,e.lcZ(2,9,q.group))),e.xp6(3),e.Q6J("disabled","sync_disabled"===e.lcZ(4,11,q.group)),e.xp6(2),e.Tol(e.lcZ(6,13,q.group)),e.xp6(2),e.hij(" ",e.lcZ(8,15,q.group)," ")}}function G(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onMoveGroup()}),e.TgZ(3,"mat-icon"),e._uU(4,"arrow_right_alt"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",q.disabled)}}function ne(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"span",5),e.ALo(1,"translate"),e.TgZ(2,"button",6),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onChangeNameDescription()}),e.TgZ(3,"mat-icon"),e._uU(4,"text_format"),e.qZA(),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME")),e.Q6J("matTooltipPosition","above"),e.xp6(2),e.Q6J("disabled",q.disabled)}}function ge(j,Y){if(1&j&&(e.TgZ(0,"div",2),e.TgZ(1,"button",3),e.ALo(2,"translate"),e.TgZ(3,"mat-icon"),e._uU(4," file_copy "),e.qZA(),e.qZA(),e.YNc(5,O,9,17,"span",4),e.YNc(6,G,5,5,"span",4),e.YNc(7,ne,5,5,"span",4),e.qZA()),2&j){const q=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.Q6J("cdkCopyToClipboard",q.group.name)("matTooltipPosition","above"),e.xp6(4),e.Q6J("ngIf",q.syncAuth),e.xp6(1),e.Q6J("ngIf",q.moveAuth),e.xp6(1),e.Q6J("ngIf",q.editAuth)}}function J(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onSyncDetail()}),e.ALo(1,"groupSyncIcon"),e.TgZ(2,"mat-icon"),e.ALo(3,"groupSyncIconColor"),e._uU(4),e.ALo(5,"groupSyncIcon"),e.qZA(),e.TgZ(6,"span"),e._uU(7),e.ALo(8,"translate"),e.ALo(9,"groupSyncToolTip"),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled","sync_disabled"===e.lcZ(1,6,q.group)),e.xp6(2),e.Tol(e.lcZ(3,8,q.group)),e.xp6(2),e.hij(" ",e.lcZ(5,10,q.group)," "),e.xp6(3),e.Oqu(e.lcZ(8,12,e.lcZ(9,14,q.group)))}}function Me(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onMoveGroup()}),e.TgZ(1,"mat-icon"),e._uU(2,"arrow_right_alt"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled",q.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.MOVE"))}}function oe(j,Y){if(1&j){const q=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(q),e.oxw(2).onChangeNameDescription()}),e.TgZ(1,"mat-icon"),e._uU(2,"text_format"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.qZA()}if(2&j){const q=e.oxw(2);e.Q6J("disabled",q.disabled),e.xp6(4),e.Oqu(e.lcZ(5,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.RENAME"))}}function Re(j,Y){if(1&j&&(e.TgZ(0,"div"),e.TgZ(1,"button",7),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,8),e.TgZ(6,"button",9),e.TgZ(7,"mat-icon"),e._uU(8," file_copy "),e.qZA(),e.TgZ(9,"span"),e._uU(10),e.ALo(11,"translate"),e.qZA(),e.qZA(),e.YNc(12,J,10,16,"button",10),e.YNc(13,Me,6,4,"button",10),e.YNc(14,oe,6,4,"button",10),e.qZA(),e.qZA()),2&j){const q=e.MAs(5),te=e.oxw();e.xp6(1),e.Q6J("mat-menu-trigger-for",q),e.xp6(5),e.Q6J("cdkCopyToClipboard",te.group.name),e.xp6(4),e.Oqu(e.lcZ(11,6,"SHARED_LIB.PERUN.COMPONENTS.GROUP_MENU.COPY")),e.xp6(2),e.Q6J("ngIf",te.syncAuth),e.xp6(1),e.Q6J("ngIf",te.moveAuth),e.xp6(1),e.Q6J("ngIf",te.editAuth)}}let T=(()=>{class j{constructor(q){this.authResolver=q,this.disabled=!1,this.moveGroup=new e.vpe,this.syncGroup=new e.vpe,this.changeNameDescription=new e.vpe}ngOnInit(){this.syncAuth=this.authResolver.isAuthorized("forceGroupSynchronization_Group_policy",[this.group]),this.editAuth=this.authResolver.isAuthorized("updateGroup_Group_policy",[this.group]),this.moveAuth=this.authResolver.isAuthorized("moveGroup_Group_Group_policy",[this.group])||this.authResolver.isAuthorized("destination_null-moveGroup_Group_Group_policy",[this.group])}onMoveGroup(){this.moveGroup.emit()}onSyncDetail(){this.syncGroup.emit()}onChangeNameDescription(){this.changeNameDescription.emit()}}return j.\u0275fac=function(q){return new(q||j)(e.Y36(b.x4))},j.\u0275cmp=e.Xpm({type:j,selectors:[["perun-web-apps-group-menu"]],inputs:{group:"group",disabled:"disabled",displayButtons:"displayButtons"},outputs:{moveGroup:"moveGroup",syncGroup:"syncGroup",changeNameDescription:"changeNameDescription"},decls:2,vars:2,consts:[["class","buttons-container",4,"ngIf"],[4,"ngIf"],[1,"buttons-container"],["mat-icon-button","",1,"ml-auto","horiz_right",3,"cdkCopyToClipboard","matTooltipPosition","matTooltip"],[3,"matTooltipPosition","matTooltip",4,"ngIf"],[3,"matTooltipPosition","matTooltip"],["mat-icon-button","",3,"disabled","click"],["mat-icon-button","",3,"mat-menu-trigger-for"],["groupMenu","matMenu"],["mat-menu-item","",3,"cdkCopyToClipboard"],["mat-menu-item","",3,"disabled","click",4,"ngIf"],["mat-menu-item","",3,"disabled","click"]],template:function(q,te){1&q&&(e.YNc(0,ge,8,8,"div",0),e.YNc(1,Re,15,8,"div",1)),2&q&&(e.Q6J("ngIf",te.displayButtons),e.xp6(1),e.Q6J("ngIf",!te.displayButtons))},directives:[_.O5,w.lW,g.i3,A.gM,E.Hw,C.p6,C.VK,C.OP],pipes:[I.X$,P.r,m.J,L.F],styles:[".buttons-container[_ngcontent-%COMP%]{white-space:nowrap;width:160px}.horiz_right[_ngcontent-%COMP%]{float:right}"]}),j})()},8223:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>O});var e=p(5e3),b=p(9244),_=p(16074),w=p(48966),g=p(69808),A=p(29772),E=p(25245),C=p(51062);function I(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",4),e._uU(3,"check_circle_outline"),e.qZA(),e.qZA()}2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function P(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",5),e._uU(3,"block"),e.qZA(),e.qZA()}2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function m(G,ne){if(1&G){const ge=e.EpF();e.TgZ(0,"span",3),e.NdJ("click",function(){return e.CHM(ge),e.oxw().changeStatus()}),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",6),e._uU(3,"report"),e.qZA(),e.qZA()}if(2&G){const ge=e.oxw();e.hYB("matTooltip","",e.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",ge.failureCause,"")}}function L(G,ne){1&G&&(e.TgZ(0,"span",7),e.ALo(1,"translate"),e.TgZ(2,"mat-icon",8),e._uU(3,"autorenew"),e.qZA(),e.qZA()),2&G&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let O=(()=>{class G{constructor(ge){this.dialog=ge,this.status="",this.statusChange=new e.vpe}changeStatus(){const ge=(0,b.kZ)();ge.width="500px",ge.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(_.Qu,ge).afterClosed().subscribe(Me=>{Me&&this.statusChange.emit()})}}return G.\u0275fac=function(ge){return new(ge||G)(e.Y36(w.uw))},G.\u0275cmp=e.Xpm({type:G,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(ge,J){1&ge&&(e.TgZ(0,"div",0),e.YNc(1,I,4,3,"span",1),e.YNc(2,P,4,3,"span",1),e.YNc(3,m,4,4,"span",1),e.YNc(4,L,4,3,"span",2),e.qZA()),2&ge&&(e.xp6(1),e.Q6J("ngIf","ACTIVE"===J.status),e.xp6(1),e.Q6J("ngIf","INACTIVE"===J.status),e.xp6(1),e.Q6J("ngIf","FAILED"===J.status),e.xp6(1),e.Q6J("ngIf","PROCESSING"===J.status))},directives:[g.O5,A.gM,E.Hw],pipes:[C.X$],styles:[""]}),G})()},82322:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.displayStatus=!1,this.groupSelected=new e.vpe,this.nameFunction=C=>C.name}ngOnInit(){this.groups=this.groups.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-group-search-select"]],inputs:{groups:"groups",disableAutoSelect:"disableAutoSelect",firstSelectedGroup:"firstSelectedGroup",displayStatus:"displayStatus"},outputs:{groupSelected:"groupSelected"},decls:4,vars:15,consts:[[1,"long-input",3,"entities","entity","displayStatus","disableAutoSelect","mainTextFunction","searchFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){if(1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.groupSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C){let P;e.Q6J("entities",I.groups)("entity",null!==(P=I.firstSelectedGroup)&&void 0!==P?P:null)("displayStatus",I.displayStatus)("disableAutoSelect",I.disableAutoSelect)("mainTextFunction",I.nameFunction)("searchFunction",I.nameFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.SELECT_GROUP"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.FIND_GROUP"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.GROUP_SEARCH_SELECT.NO_GROUP_FOUND"))}},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},24179:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>i});var e=p(5e3),b=p(16074),_=p(32105),w=p(36908),g=p(9244),A=p(84847),E=p(32075),C=p(20449),I=p(69808),P=p(48966),m=p(18750),L=p(77446),O=p(29772),G=p(10441),ne=p(25245),ge=p(8223),J=p(47423),Me=p(13449),oe=p(50301),Re=p(98380),T=p(51062),j=p(69773),Y=p(21757),q=p(62383);let te=(()=>{class o{transform(l){var s;const r=l.attributes.find(t=>"groupMembershipExpiration"===t.baseFriendlyName);return null!==(s=null==r?void 0:r.value)&&void 0!==s?s:"Never"}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275pipe=e.Yjl({name:"groupExpiration",type:o,pure:!0}),o})();function ue(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"mat-checkbox",26),e.NdJ("change",function(r){e.CHM(l);const t=e.oxw(2);return r?t.masterToggle():null}),e.qZA()}if(2&o){const l=e.oxw(2);e.Q6J("aria-label",l.checkboxLabel())("checked",l.selection.hasValue()&&l.isAllSelected())("indeterminate",l.selection.hasValue()&&!l.isAllSelected())}}function de(o,d){if(1&o&&(e.TgZ(0,"th",24),e.YNc(1,ue,1,3,"mat-checkbox",25),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.Q6J("ngIf",!l.disableHeadCheckbox)}}function Le(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",27),e.TgZ(1,"span",28),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",29),e.NdJ("change",function(r){const n=e.CHM(l).$implicit,a=e.oxw();return r?a.itemSelectionToggle(n):null})("click",function(r){return r.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,s.getCheckboxTooltipMessage(l))),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!s.disableSelect(l)),e.xp6(2),e.Q2q("data-cy","",l.name,"-checkbox"),e.Q6J("aria-label",s.checkboxLabel(l))("checked",s.selection.isSelected(l))("disabled","members"===l.name&&s.disableMembers||s.disableSelect(l))}}function Ue(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_ID")," "))}function ze(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.id)}}function le(o,d){1&o&&e._UZ(0,"th",32)}function je(o,d){if(1&o&&(e.TgZ(0,"td",33),e._UZ(1,"perun-web-apps-recently-viewed-icon",34),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("recentIds",s.recentIds)("id",l.id)}}function ye(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_VO_NAME")," "))}function Be(o,d){if(1&o&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",s.voNames.get(l.voId)," ")}}function W(o,d){1&o&&e._UZ(0,"th",32)}function R(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP"))}function me(o,d){1&o&&(e.TgZ(0,"mat-icon",36),e.ALo(1,"translate"),e._uU(2,"alt_route"),e.qZA()),2&o&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.MULTIPLE_ASSIGNMENTS"))}function be(o,d){if(1&o&&(e.TgZ(0,"td",33),e.YNc(1,R,3,3,"mat-icon",35),e.YNc(2,me,3,3,"mat-icon",35),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Q6J("ngIf",l.sourceGroupId&&!l.moreTypesOfAssignment),e.xp6(1),e.Q6J("ngIf",l.moreTypesOfAssignment)}}function Ie(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_NAME")," "))}function pe(o,d){if(1&o&&(e.TgZ(0,"td",33),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.uIk("data-cy",l.name),e.xp6(1),e.hij(" ",l.name," ")}}function Se(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function Xe(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",37),e.TgZ(1,"perun-web-apps-group-resource-status",38),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return e.CHM(l),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("theme","resource-theme")("groupId",l.id)("resourceId",s.resourceId)("failureCause",l.failureCause)("status",l.status)}}function Je(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_STATUS")," "))}function nt(o,d){if(1&o&&(e.TgZ(0,"td",33),e.TgZ(1,"i",39),e.ALo(2,"memberStatusIconColor"),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,s.getStatusAttribute(l)),""),e.s9C("matTooltip",s.getStatusAttribute(l)),e.xp6(3),e.hij(" ",e.lcZ(5,7,s.getStatusAttribute(l))," ")}}function Ve(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_DESCRIPTION")," "))}function X(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.qZA()),2&o){const l=d.$implicit;e.xp6(1),e.Oqu(l.description)}}function z(o,d){1&o&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.TABLE_GROUP_EXPIRATION")," "))}function Q(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){e.CHM(l);const r=e.oxw().$implicit;return e.oxw().changeExpiration(r)})("mouseenter",function(){return e.CHM(l),e.oxw(2).disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw(2);return r.disabledRouting=r.disableRouting}),e.TgZ(1,"mat-icon"),e._uU(2,"edit"),e.qZA(),e.qZA()}}function D(o,d){if(1&o&&(e.TgZ(0,"td",37),e._uU(1),e.ALo(2,"parseDate"),e.ALo(3,"groupExpiration"),e.YNc(4,Q,3,0,"button",40),e.qZA()),2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,2,e.lcZ(3,4,l))," "),e.xp6(3),e.Q6J("ngIf",s.canManageGroup(l))}}function H(o,d){1&o&&e._UZ(0,"th",32)}function V(o,d){if(1&o){const l=e.EpF();e.TgZ(0,"td",33),e.TgZ(1,"perun-web-apps-group-menu",42),e.NdJ("mouseenter",function(){return e.CHM(l),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(l);const r=e.oxw();return r.disabledRouting=r.disableRouting})("moveGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onMoveGroup(t)})("changeNameDescription",function(){const t=e.CHM(l).$implicit;return e.oxw().onChangeNameDescription(t)})("syncGroup",function(){const t=e.CHM(l).$implicit;return e.oxw().onSyncDetail(t)}),e.qZA(),e.qZA()}if(2&o){const l=d.$implicit,s=e.oxw();e.xp6(1),e.Q6J("disabled","members"===l.name)("displayButtons",s.displayButtons)("group",l)}}function xe(o,d){1&o&&e._UZ(0,"tr",43)}const Qe=function(o,d){return["/organizations",o,"groups",d]};function Te(o,d){if(1&o&&e._UZ(0,"tr",44),2&o){const l=d.$implicit,s=e.oxw();e.ekj("cursor-pointer",!s.disableRouting&&!s.groupsToDisableRouting.has(l.id))("disable-outline",s.disabledRouting||s.groupsToDisableRouting.has(l.id)),e.Q6J("perunWebAppsMiddleClickRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(6,Qe,l.voId,l.id))("perunWebAppsForceRouterLink",s.disabledRouting||s.groupsToDisableRouting.has(l.id)?null:e.WLB(9,Qe,l.voId,l.id))}}function Ae(o,d){if(1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o){const l=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,l.noGroupsAlert),"\n")}}function ae(o,d){1&o&&(e.TgZ(0,"perun-web-apps-alert",45),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&o&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let i=(()=>{class o{constructor(l,s,r,t,n){this.dialog=l,this.authResolver=s,this.voService=r,this.tableCheckbox=t,this.changeDetector=n,this.theme="group-theme",this.moveGroup=new e.vpe,this.groups=[],this.selection=new C.Ov(!0,[]),this.displayedColumns=["select","id","recent","vo","indirectGroupAssigment","name","status","groupStatus","description","expiration","menu"],this.groupsToDisableCheckbox=new Set,this.groupsToDisableRouting=new Set,this.filter="",this.disableRouting=!1,this.pageSizeOptions=g.f7,this.recentIds=[],this.resourceId=null,this.noGroupsAlert="SHARED_LIB.UI.ALERTS.NO_GROUPS",this.refreshTable=new e.vpe,this.displayButtons=window.innerWidth>800,this.disabledRouting=!1,this.voIds=new Set,this.voNames=new Map,this.hasMembersGroup=!1,this.getDataForColumnFun=(a,c)=>o.getDataForColumn(a,c,this.voNames),this.getSortDataForColumnFun=(a,c)=>o.getSortDataForColumn(a,c,this.voNames,this.recentIds),this.canBeSelected=a=>!("members"===a.name&&this.disableMembers||this.disableSelect(a))}set matSort(l){this.sort=l}static getDataForColumn(l,s,r){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const t=(0,g.x2)(l);return(0,g.sG)(t)}case"recent":return"";case"status":return l.status;case"uuid":return l.uuid;default:return l[s]}}static getSortDataForColumn(l,s,r,t){switch(s){case"id":return l.id.toString();case"vo":return r.get(l.voId);case"name":return l.name;case"description":return l.description;case"expiration":{const n=(0,g.x2)(l);return n&&"never"!==n.toLowerCase()?(0,I.p6)(n,"yyyy.MM.dd","en"):n}case"recent":return t&&t.includes(l.id)?"#".repeat(t.indexOf(l.id)):l.name;case"status":return l.status;default:return l[s]}}shouldHideButtons(){this.displayButtons=window.innerWidth>800}ngOnChanges(){this.disabledRouting=this.disableRouting,this.hasMembersGroup=this.checkIfHasMembersGroup(),this.updateVoNames(),this.setDataSource(),this.authType&&(this.removeAuth=this.setAuth())}checkIfHasMembersGroup(){for(const l of this.groups)if("members"===l.name)return!0;return!1}exportData(l){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),l)}setDataSource(){this.dataSource||(this.dataSource=new E.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(l,s)=>(0,g.Sd)(l,s,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(l,s)=>(0,g.pR)(l,s,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.groups}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.authType&&(this.removeAuth=this.setAuth())}checkboxLabel(l){return l?`${this.selection.isSelected(l)?"deselect":"select"} row ${l.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}disableSelect(l){return this.disableGroups&&(this.groupsToDisableCheckbox.has(l.id)||(0,g.bx)(l))}ngAfterViewInit(){void 0===this.vo&&0!==this.groups.length&&(this.vo={id:this.groups[0].voId,beanName:"Vo"}),this.shouldHideButtons(),this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(l=>"id"!==l),this.changeDetector.detectChanges())}onMoveGroup(l){this.moveGroup.emit(l)}onSyncDetail(l){const s=(0,g.kZ)();s.data={groupId:l.id,theme:this.theme},this.dialog.open(b.Bp,s)}onChangeNameDescription(l){const s=(0,g.kZ)();s.data={theme:"group-theme",group:l,dialogType:b.Eg.GROUP},this.dialog.open(b.rd,s).afterClosed().subscribe(t=>{t&&this.refreshTable.emit()})}setAuth(){return"group-subgroups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[s]),!0):"group-relations"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("result-removeGroupUnion_Group_Group_policy",[this.parentGroup])&&this.authResolver.isAuthorized("operand-removeGroupUnion_Group_Group_policy",[s]),!0):"vo-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroup_Group_boolean_policy",[this.vo,s]),!0):"member-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("removeMember_Member_List_policy",[s]),!0):"application-form-manage-groups"===this.authType?this.selection.selected.reduce((l,s)=>l&&this.authResolver.isAuthorized("deleteGroupsFromAutoRegistration_List_policy",[this.vo,s]),!0):void 0}itemSelectionToggle(l){this.selection.toggle(l),this.removeAuth=this.setAuth()}getCheckboxTooltipMessage(l){return"create-relation-dialog"===this.authType?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.CREATE_RELATION_AUTH_TOOLTIP":(0,g.bx)(l)?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.SYNCHRONIZED_GROUP":l.sourceGroupId?"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.INDIRECT_GROUP":"SHARED_LIB.PERUN.COMPONENTS.GROUPS_LIST.ALREADY_MEMBER_TOOLTIP"}updateVoNames(){this.displayedColumns.includes("vo")&&(this.groups.forEach(l=>{this.voIds.has(l.voId)||this.voIds.add(l.voId)}),this.voIds.size>0&&this.voService.getVosByIds([...this.voIds]).subscribe(l=>{l.forEach(s=>{this.voNames.set(s.id,s.name)})}))}changeExpiration(l){const s=l.attributes.find(n=>"groupMembershipExpiration"===n.baseFriendlyName),r=(0,g.kZ)();r.width="400px",r.data={memberId:this.memberId,groupId:l.id,expirationAttr:s,mode:"group",status:this.memberGroupStatus},this.dialog.open(b.u3,r).afterClosed().subscribe(n=>{n.success&&this.refreshTable.emit()})}canManageGroup(l){return this.authResolver.isThisGroupAdmin(l.id)||this.authResolver.isThisVoAdmin(l.voId)}getStatusAttribute(l){const s=l.attributes.find(r=>"groupStatus"===r.baseFriendlyName);return(null==s?void 0:s.value)?s.value:""}}return o.\u0275fac=function(l){return new(l||o)(e.Y36(P.uw),e.Y36(w.x4),e.Y36(_.YF),e.Y36(w.UA),e.Y36(e.sBO))},o.\u0275cmp=e.Xpm({type:o,selectors:[["perun-web-apps-groups-list"]],viewQuery:function(l,s){if(1&l&&(e.Gf(g.l9,7),e.Gf(A.YE,7)),2&l){let r;e.iGM(r=e.CRH())&&(s.child=r.first),e.iGM(r=e.CRH())&&(s.matSort=r.first)}},hostBindings:function(l,s){1&l&&e.NdJ("resize",function(t){return s.shouldHideButtons(t)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",selection:"selection",displayedColumns:"displayedColumns",disableMembers:"disableMembers",disableGroups:"disableGroups",groupsToDisableCheckbox:"groupsToDisableCheckbox",groupsToDisableRouting:"groupsToDisableRouting",filter:"filter",disableHeadCheckbox:"disableHeadCheckbox",parentGroup:"parentGroup",disableRouting:"disableRouting",authType:"authType",memberId:"memberId",memberGroupStatus:"memberGroupStatus",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",resourceId:"resourceId",tableId:"tableId",noGroupsAlert:"noGroupsAlert"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:40,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","pageSizeOptions","tableId","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","vo"],["matColumnDef","indirectGroupAssigment"],["matColumnDef","name"],["matColumnDef","status"],["class","wrap-content","mat-cell","",4,"matCellDef"],["matColumnDef","groupStatus"],["matColumnDef","description"],["matColumnDef","expiration"],["matColumnDef","menu"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],["mat-cell","",1,"wrap-content"],[3,"theme","groupId","resourceId","failureCause","status","mouseenter","mouseleave","statusChange"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip"],["mat-icon-button","",3,"click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"click","mouseenter","mouseleave"],[3,"disabled","displayButtons","group","mouseenter","mouseleave","moveGroup","changeNameDescription","syncGroup"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn"]],template:function(l,s){1&l&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(t){return s.exportData(t)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,de,2,1,"th",4),e.YNc(5,Le,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,Ue,3,3,"th",7),e.YNc(8,ze,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,le,1,0,"th",10),e.YNc(11,je,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ye,3,3,"th",7),e.YNc(14,Be,2,1,"td",8),e.BQk(),e.ynx(15,13),e.YNc(16,W,1,0,"th",10),e.YNc(17,be,3,2,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,Ie,3,3,"th",7),e.YNc(20,pe,2,2,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,Se,3,3,"th",7),e.YNc(23,Xe,2,5,"td",16),e.BQk(),e.ynx(24,17),e.YNc(25,Je,3,3,"th",7),e.YNc(26,nt,6,9,"td",11),e.BQk(),e.ynx(27,18),e.YNc(28,Ve,3,3,"th",7),e.YNc(29,X,2,1,"td",16),e.BQk(),e.ynx(30,19),e.YNc(31,z,3,3,"th",7),e.YNc(32,D,5,6,"td",16),e.BQk(),e.ynx(33,20),e.YNc(34,H,1,0,"th",10),e.YNc(35,V,2,3,"td",11),e.BQk(),e.YNc(36,xe,1,0,"tr",21),e.YNc(37,Te,1,12,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(38,Ae,3,3,"perun-web-apps-alert",23),e.YNc(39,ae,3,3,"perun-web-apps-alert",23)),2&l&&(e.Q6J("hidden",0===s.groups.length||!s.dataSource||0===s.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",s.dataSource.filteredData.length)("pageSizeOptions",s.pageSizeOptions)("tableId",s.tableId),e.xp6(1),e.Q6J("dataSource",s.dataSource),e.xp6(34),e.Q6J("matHeaderRowDef",s.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",s.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===s.groups.length),e.xp6(1),e.Q6J("ngIf",0===s.dataSource.filteredData.length&&0!==s.groups.length))},directives:[m.l,E.BZ,A.YE,E.w1,E.fO,E.ge,I.O5,L.oG,E.Dz,E.ev,O.gM,A.nU,G.W,ne.Hw,ge.x,J.lW,Me.i,E.as,E.XQ,E.nj,E.Gk,oe.YH,oe.Kd,Re.w],pipes:[T.X$,j.u,Y.f,q.M,te],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),o})()},58956:($e,_e,p)=>{"use strict";p.d(_e,{I:()=>Ue});var e=p(5e3),b=p(90149),_=p(28258),w=p(20449);class g{constructor(le){this.id=le.id,this.name=le.name,this.parentGroupId=le.parentGroupId,this.voId=le.voId,this.shortName=le.shortName,this.description=le.description,this.attributes=le.attributes,this.beanName=le.beanName}addChild(le){null==this.children?this.children=[le]:this.children.push(le)}}var A=p(9244),E=p(16074),C=p(36908),I=p(48966),P=p(69808),m=p(53435),L=p(77446),O=p(11735),G=p(47423),ne=p(25245),ge=p(29772),J=p(13449),Me=p(98380),oe=p(51062);const Re=["scrollViewport"];function T(ze,le){if(1&ze){const je=e.EpF();e.TgZ(0,"mat-checkbox",19),e.NdJ("change",function(){e.CHM(je);const Be=e.oxw().$implicit;return e.oxw(2).itemSelectionToggle(Be)}),e.qZA()}if(2&ze){const je=e.oxw().$implicit,ye=e.oxw(2);e.Q2q("data-cy","",je.name,"-checkbox"),e.Q6J("disabled","members"===je.fullName)("checked",ye.selection.isSelected(je))("indeterminate",ye.descendantsPartiallySelected(je))}}function j(ze,le){if(1&ze&&(e.TgZ(0,"mat-icon",20),e._uU(1),e.qZA()),2&ze){const je=e.oxw().$implicit,ye=e.oxw(2);e.xp6(1),e.hij(" ",ye.treeControl.isExpanded(je)?"expand_more":"chevron_right"," ")}}function Y(ze,le){if(1&ze&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&ze){const je=e.oxw().$implicit;e.xp6(1),e.hij(" #",je.id," ")}}const q=function(ze,le){return["/organizations",ze,"groups",le]};function te(ze,le){if(1&ze){const je=e.EpF();e.ynx(0),e.TgZ(1,"div",6),e.YNc(2,T,1,4,"mat-checkbox",7),e.TgZ(3,"a",8),e.TgZ(4,"button",9),e.NdJ("mouseenter",function(){return e.CHM(je),e.oxw(2).disableRouting=!0})("mouseleave",function(){return e.CHM(je),e.oxw(2).disableRouting=!1})("click",function(){const W=e.CHM(je).$implicit;return e.oxw(2).treeControl.toggle(W)}),e.YNc(5,j,2,1,"mat-icon",10),e.qZA(),e.TgZ(6,"div",11),e.TgZ(7,"span",12),e._uU(8),e.qZA(),e.YNc(9,Y,2,1,"span",13),e.qZA(),e.TgZ(10,"div",14,15),e.TgZ(12,"span",16),e._uU(13),e.qZA(),e.qZA(),e.qZA(),e.TgZ(14,"div",17),e.TgZ(15,"perun-web-apps-group-menu",18),e.NdJ("moveGroup",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onMoveGroup(W)})("syncGroup",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onSyncDetail(W)})("changeNameDescription",function(){const W=e.CHM(je).$implicit;return e.oxw(2).onChangeNameDescription(W)}),e.qZA(),e.qZA(),e.qZA(),e.BQk()}if(2&ze){const je=le.$implicit,ye=e.oxw(2);e.xp6(1),e.Udp("padding-left",24*je.level+"px"),e.xp6(1),e.Q6J("ngIf",!ye.hideCheckbox),e.xp6(1),e.Q6J("routerLink",ye.disableRouting?null:e.WLB(15,q,je.voId,je.id)),e.xp6(1),e.Q6J("disabled",!je.expandable),e.uIk("aria-label","toggle "+je.name),e.xp6(1),e.Q6J("ngIf",je.expandable),e.xp6(2),e.uIk("data-cy",je.name),e.xp6(1),e.hij(" ",je.name," "),e.xp6(1),e.Q6J("ngIf",ye.authResolver.isPerunAdminOrObserver()),e.xp6(3),e.s9C("matTooltip",je.description),e.xp6(1),e.hij(" ",je.description," "),e.xp6(2),e.Q6J("disabled","members"===je.fullName)("displayButtons",ye.displayButtons)("group",je)}}const ue=function(ze){return{height:ze}};function de(ze,le){if(1&ze&&(e.TgZ(0,"div",2),e.TgZ(1,"cdk-virtual-scroll-viewport",3,4),e.YNc(3,te,16,18,"ng-container",5),e.qZA(),e.qZA()),2&ze){const je=e.oxw();e.xp6(1),e.Q6J("minBufferPx",240)("maxBufferPx",480)("ngStyle",e.VKq(4,ue,je.getTreeViewHeight())),e.xp6(2),e.Q6J("cdkVirtualForOf",je.dataSource)}}function Le(ze,le){1&ze&&(e.TgZ(0,"perun-web-apps-alert",22),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&ze&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let Ue=(()=>{class ze{constructor(je,ye,Be){this.cd=je,this.dialog=ye,this.authResolver=Be,this.theme="group-theme",this.moveGroup=new e.vpe,this.refreshTable=new e.vpe,this.expandAll=!1,this.disableRouting=!1,this.selection=new w.Ov(!0,[]),this.hideCheckbox=!1,this.displayButtons=window.innerWidth>600,this.treeControl=new _.C2(W=>W.level,W=>W.expandable),this.hasChild=(W,R)=>R.expandable,this.getLevel=W=>W.level,this.transformer=(W,R)=>({expandable:!!W.children&&W.children.length>0,name:W.shortName,fullName:W.name,parentGroupId:W.parentGroupId,level:R,id:W.id,voId:W.voId,attributes:W.attributes,beanName:W.beanName,description:W.description}),this.treeFlattener=new b.JZ(this.transformer,W=>W.level,W=>W.expandable,W=>W.children),this.dataSource=new b.kc(this.treeControl,this.treeFlattener)}shouldHideButtons(){this.displayButtons=window.innerWidth>600}ngOnChanges(){if(this.expandAll){this.filteredGroups=this.groups.filter(je=>{var ye,Be;return(null===(ye=je.name)||void 0===ye?void 0:ye.toLowerCase().includes(this.filterValue.toLowerCase()))||(null===(Be=je.description)||void 0===Be?void 0:Be.toLowerCase().includes(this.filterValue.toLowerCase()))||je.id.toString().includes(this.filterValue.toLowerCase())||je.uuid.toLowerCase().includes(this.filterValue.toLowerCase())});for(const je of this.filteredGroups)je.parentGroupId&&(this.filteredGroups=this.filteredGroups.concat((0,A.oU)(je.parentGroupId,this.groups)))}else this.filteredGroups=this.groups;this.createGroupTrees(this.filteredGroups),this.expandAll&&this.treeControl.expandAll(),this.removeAuth=this.setRemoveAuth()}onSyncDetail(je){const ye=(0,A.kZ)();ye.data={groupId:je.id,theme:this.theme},this.dialog.open(E.Bp,ye)}onChangeNameDescription(je){const ye=(0,A.kZ)();ye.data={theme:"group-theme",group:je,dialogType:E.Eg.GROUP},this.dialog.open(E.rd,ye).afterClosed().subscribe(W=>{W&&this.refreshTable.emit()})}createGroupTrees(je){const ye=new Map;for(const R of je)ye.set(R.id,new g(R));const Be=new Set;ye.forEach((R,me,be)=>{const Ie=be.get(R.parentGroupId);void 0!==Ie&&(Ie.addChild(R),be.set(R.parentGroupId,Ie)),null!==R.parentGroupId&&void 0===Ie&&Be.add(R.id)});const W=[];ye.forEach(R=>{(null===R.parentGroupId||Be.has(R.id))&&W.push(R)}),this.dataSource.data=W,this.cd.detectChanges()}getParentNode(je){const ye=this.getLevel(je);if(ye<1)return null;for(let W=this.treeControl.dataNodes.indexOf(je)-1;W>=0;W--){const R=this.treeControl.dataNodes[W];if(this.getLevel(R)this.selection.isSelected(R));ye&&!W&&this.selection.deselect(je)}checkAllParentsSelection(je){let ye=this.getParentNode(je);for(;ye;)this.checkRootNodeSelection(ye),ye=this.getParentNode(ye);this.removeAuth=this.setRemoveAuth()}descendantsPartiallySelected(je){return this.treeControl.getDescendants(je).some(W=>this.selection.isSelected(W))&&!this.selection.isSelected(je)}itemSelectionToggle(je){this.selection.toggle(je);const ye=this.treeControl.getDescendants(je);this.selection.isSelected(je)?this.selection.select(...ye):this.selection.deselect(...ye),ye.every(Be=>this.selection.isSelected(Be)),this.checkAllParentsSelection(je)}setRemoveAuth(){return this.selection.selected.reduce(void 0!==this.vo?(je,ye)=>je&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[this.vo,ye]):(je,ye)=>je&&this.authResolver.isAuthorized("deleteGroups_List_boolean_policy",[ye]),!0)}onMoveGroup(je){this.moveGroup.emit(je)}getTreeViewHeight(){let je=0;this.scrollViewport&&(je=this.scrollViewport.getDataLength());let ye=48*je;return ye>672&&(ye=696),this.scrollViewport&&this.scrollViewport.checkViewportSize(),String(ye)+"px"}}return ze.\u0275fac=function(je){return new(je||ze)(e.Y36(e.sBO),e.Y36(I.uw),e.Y36(C.x4))},ze.\u0275cmp=e.Xpm({type:ze,selectors:[["perun-web-apps-groups-tree"]],viewQuery:function(je,ye){if(1&je&&e.Gf(Re,5),2&je){let Be;e.iGM(Be=e.CRH())&&(ye.scrollViewport=Be.first)}},hostBindings:function(je,ye){1&je&&e.NdJ("resize",function(W){return ye.shouldHideButtons(W)},!1,e.Jf7)},inputs:{theme:"theme",groups:"groups",filterValue:"filterValue",expandAll:"expandAll",disableRouting:"disableRouting",selection:"selection",hideCheckbox:"hideCheckbox",vo:"vo"},outputs:{moveGroup:"moveGroup",refreshTable:"refreshTable"},features:[e.TTD],decls:2,vars:2,consts:[["class","card mt-2",4,"ngIf"],["alert_type","warn",4,"ngIf"],[1,"card","mt-2"],["itemSize","48",1,"virtual-scroll-container",3,"minBufferPx","maxBufferPx","ngStyle"],["scrollViewport",""],[4,"cdkVirtualFor","cdkVirtualForOf"],[1,"node"],["color","primary","class","no-label-margin-bottom ml-4",3,"disabled","checked","indeterminate","change",4,"ngIf"],["queryParamsHandling","merge",1,"group-item-content","text-format",3,"routerLink"],["mat-icon-button","",3,"disabled","mouseenter","mouseleave","click"],["class","mat-icon-rtl-mirror",4,"ngIf"],[1,"w-50"],[1,"mr-2"],["class","text-muted",4,"ngIf"],[1,"w-50","text-muted","description-text"],["rootDescription",""],["matTooltipPosition","before",3,"matTooltip"],[1,"group-buttons"],[3,"disabled","displayButtons","group","moveGroup","syncGroup","changeNameDescription"],["color","primary",1,"no-label-margin-bottom","ml-4",3,"disabled","checked","indeterminate","change"],[1,"mat-icon-rtl-mirror"],[1,"text-muted"],["alert_type","warn"]],template:function(je,ye){1&je&&(e.YNc(0,de,4,6,"div",0),e.YNc(1,Le,3,3,"perun-web-apps-alert",1)),2&je&&(e.Q6J("ngIf",0!==ye.filteredGroups.length),e.xp6(1),e.Q6J("ngIf",0===ye.filteredGroups.length))},directives:[P.O5,m.N7,m.xd,P.PC,m.x0,L.oG,O.yS,G.lW,ne.Hw,ge.gM,J.i,Me.w],pipes:[oe.X$],styles:[".group-tree-node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.group-item-content[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;overflow:hidden;word-wrap:break-word}mat-tree-node[_ngcontent-%COMP%]{cursor:pointer}.description-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.virtual-scroll-container[_ngcontent-%COMP%]{overflow:auto}cdk-tree-node[_ngcontent-%COMP%]{display:block}.node[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:48px;flex:1;word-wrap:break-word;cursor:pointer}.node[_ngcontent-%COMP%]:hover{background-color:#0000000d}.text-format[_ngcontent-%COMP%]{text-decoration:none;color:#000;font-weight:400!important}"]}),ze})()},52314:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>O});var e=p(32105),b=p(36908),_=p(5e3),w=p(51062),g=p(69808),A=p(47423),E=p(92181),C=p(29772),I=p(25245);const P=function(G){return{color:G}};function m(G,ne){if(1&G&&(_.TgZ(0,"button",8),_.ALo(1,"translate"),_.TgZ(2,"mat-icon",4),_._uU(3," apps "),_.qZA(),_.qZA()),2&G){const ge=_.oxw(),J=_.MAs(2);_.Q6J("matMenuTriggerFor",J)("matTooltip",_.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),_.xp6(2),_.Q6J("ngStyle",_.VKq(5,P,ge.iconColor))}}function L(G,ne){if(1&G){const ge=_.EpF();_.TgZ(0,"button",2),_.NdJ("click",function(){return _.CHM(ge),_.oxw().onLogOut()}),_._uU(1),_.ALo(2,"translate"),_.qZA()}2&G&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"NAV.LOGOUT")," "))}let O=(()=>{class G{constructor(ge,J,Me,oe){this.authService=ge,this.authzResolverService=J,this.notificator=Me,this.translateService=oe}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return G.\u0275fac=function(ge){return new(ge||G)(_.Y36(b.e8),_.Y36(e.Ct),_.Y36(b.V6),_.Y36(w.sK))},G.\u0275cmp=_.Xpm({type:G,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(ge,J){if(1&ge&&(_.YNc(0,m,4,7,"button",0),_.TgZ(1,"mat-menu",null,1),_.TgZ(3,"button",2),_.NdJ("click",function(){return J.redirectToUrl()}),_.TgZ(4,"span"),_._uU(5),_.qZA(),_.qZA(),_.qZA(),_.TgZ(6,"button",3),_.TgZ(7,"mat-icon",4),_._uU(8," person "),_.qZA(),_.TgZ(9,"span",5),_._uU(10),_.qZA(),_.qZA(),_.TgZ(11,"mat-menu",null,6),_.YNc(13,L,3,3,"button",7),_.qZA()),2&ge){const Me=_.MAs(12);_.Q6J("ngIf",J.url),_.xp6(5),_.Oqu(J.label),_.xp6(1),_.Q6J("matMenuTriggerFor",Me),_.xp6(1),_.Q6J("ngStyle",_.VKq(11,P,J.iconColor)),_.xp6(2),_.Q6J("ngStyle",_.VKq(13,P,J.textColor)),_.xp6(1),_.xDo(" ",J.user.titleBefore," ",J.user.firstName," ",J.user.middleName," ",J.user.lastName," ",J.user.titleAfter," "),_.xp6(3),_.Q6J("ngIf",J.logoutEnabled)}},directives:[g.O5,A.lW,E.p6,C.gM,I.Hw,g.PC,E.VK,E.OP],pipes:[w.X$],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),G})()},7434:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>P});var e=p(5e3),b=p(93075),_=p(67322),w=p(69808),g=p(98833),A=p(50301),E=p(51062);function C(m,L){if(1&m&&(e._UZ(0,"input",3),e.ALo(1,"translate")),2&m){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}function I(m,L){if(1&m&&(e._UZ(0,"input",4),e.ALo(1,"translate")),2&m){const O=e.oxw();e.s9C("placeholder",e.lcZ(1,2,O.placeholder)),e.Q6J("formControl",O.formControl)}}let P=(()=>{class m{constructor(){this.filter=new e.vpe,this.autoFocus=!1,this.formControl=new b.NI}ngOnInit(){this.formControl.valueChanges.subscribe(O=>{let G=O.trim();G=G.toLowerCase(),this.filter.emit(G)})}}return m.\u0275fac=function(O){return new(O||m)},m.\u0275cmp=e.Xpm({type:m,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(O,G){1&O&&(e.TgZ(0,"mat-form-field",0),e.YNc(1,C,2,4,"input",1),e.YNc(2,I,2,4,"input",2),e.qZA()),2&O&&(e.xp6(1),e.Q6J("ngIf",G.autoFocus),e.xp6(1),e.Q6J("ngIf",!G.autoFocus))},directives:[_.KE,w.O5,g.Nt,b.Fj,A.hT,b.JJ,b.oH],pipes:[E.X$],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),m})()},1903:($e,_e,p)=>{"use strict";p.d(_e,{m:()=>Te});var e=p(84847),b=p(9244),_=p(16074),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(48966),I=p(10036),P=p(18750),m=p(69808),L=p(20773),O=p(32075),G=p(77446),ne=p(29772),ge=p(25245),J=p(50301),Me=p(11735),oe=p(98380);let Re=(()=>{class Ae{transform(i){if("INDIRECT"===i.membershipType)return!0;const o=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return!!o&&!o.value}}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275pipe=E.Yjl({name:"memberListCheckboxDisabled",type:Ae,pure:!0}),Ae})();var T=p(51062);let j=(()=>{class Ae{constructor(i){this.translate=i}transform(i){if("INDIRECT"===i.membershipType)return this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_INDIRECT");const o=i.memberAttributes.find(d=>"isLifecycleAlterable"===d.friendlyName);return o?o.value?"":this.translate.instant("MEMBERS_LIST.CHECKBOX_TOOLTIP_UNALTERABLE"):""}}return Ae.\u0275fac=function(i){return new(i||Ae)(E.Y36(T.sK,16))},Ae.\u0275pipe=E.Yjl({name:"memberCheckboxLabel",type:Ae,pure:!0}),Ae})();var Y=p(31359),q=p(69773),te=p(12856),ue=p(21757),de=p(96974),Le=p(20919),Ue=p(5865);function ze(Ae,ae){1&Ae&&(E.TgZ(0,"div",22),E._UZ(1,"mat-spinner",23),E.qZA())}function le(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"th",24),E.TgZ(1,"mat-checkbox",25),E.NdJ("change",function(d){E.CHM(i);const l=E.oxw();return d?l.masterToggle():null}),E.qZA(),E.qZA()}if(2&Ae){const i=E.oxw();E.xp6(1),E.Q6J("aria-label",i.checkboxLabel())("checked",i.selection.hasValue()&&i.isAllSelected())("indeterminate",i.selection.hasValue()&&!i.isAllSelected())}}function je(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",26),E.TgZ(1,"mat-checkbox",27),E.NdJ("change",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return d?r.selection.toggle(s):null})("click",function(d){return d.stopPropagation()}),E.ALo(2,"lowercase"),E.ALo(3,"memberListCheckboxDisabled"),E.ALo(4,"memberCheckboxLabel"),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit,o=E.oxw();E.xp6(1),E.Q2q("data-cy","",E.lcZ(2,5,i.user.firstName),"-checkbox"),E.Q6J("aria-label",o.checkboxLabel(i))("checked",o.selection.isSelected(i))("disabled",E.lcZ(3,7,i))("matTooltip",E.lcZ(4,9,i))}}function ye(Ae,ae){1&Ae&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ID")))}function Be(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",29),E._uU(1),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(i.id)}}function W(Ae,ae){1&Ae&&E._UZ(0,"th",28)}function R(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"mat-icon",32),E.NdJ("click",function(d){E.CHM(i);const l=E.oxw().$implicit;return E.oxw().viewMemberGroupTree(d,l)}),E.ALo(1,"translate"),E._uU(2,"transfer_within_a_station"),E.qZA()}2&Ae&&E.Q6J("matTooltip",E.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function me(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E.YNc(1,R,3,3,"mat-icon",31),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Q6J("ngIf","DIRECT"!==i.membershipType)}}function be(Ae,ae){1&Ae&&(E.TgZ(0,"th",28),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function Ie(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i.user))}}function pe(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.STATUS")))}function Se(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit;return E.oxw().changeStatus(d,s)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.status),""),E.s9C("matTooltip",E.xi3(3,7,i,!1)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.status)," ")}}function Xe(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")))}function Je(Ae,ae){if(1&Ae){const i=E.EpF();E.TgZ(0,"td",30),E.TgZ(1,"i",34),E.NdJ("click",function(d){const s=E.CHM(i).$implicit,r=E.oxw();return r.changeStatus(d,s,r.groupId)}),E.ALo(2,"memberStatusIconColor"),E.ALo(3,"memberStatusTooltip"),E.TgZ(4,"span"),E._uU(5),E.ALo(6,"memberStatusIcon"),E.qZA(),E.qZA(),E.qZA()}if(2&Ae){const i=ae.$implicit;E.xp6(1),E.Gre("material-icons ",E.lcZ(2,5,i.groupStatus),""),E.s9C("matTooltip",E.xi3(3,7,i,!0)),E.xp6(4),E.hij(" ",E.lcZ(6,10,i.groupStatus)," ")}}function nt(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")))}function Ve(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberOrganization"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function X(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.EMAIL")))}function z(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberEmail"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function Q(Ae,ae){1&Ae&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function D(Ae,ae){if(1&Ae&&(E.TgZ(0,"td",30),E._uU(1),E.ALo(2,"memberLogins"),E.qZA()),2&Ae){const i=ae.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,i))}}function H(Ae,ae){1&Ae&&E._UZ(0,"tr",35)}const V=function(Ae,ae){return["/organizations",Ae,"members",ae]};function xe(Ae,ae){if(1&Ae&&E._UZ(0,"tr",36),2&Ae){const i=ae.$implicit,o=E.oxw();E.ekj("cursor-pointer",o.dataSource.routeAuth)("italic_font","INDIRECT"===i.membershipType)("disable-outline",!o.dataSource.routeAuth),E.Q6J("perunWebAppsMiddleClickRouterLink",o.dataSource.routeAuth?E.WLB(8,V,i.voId,i.id):null)("routerLink",o.dataSource.routeAuth?E.WLB(11,V,i.voId,i.id):null)}}function Qe(Ae,ae){1&Ae&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&Ae&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let Te=(()=>{class Ae{constructor(i,o,d,l,s){this.dialog=i,this.authResolver=o,this.tableCheckbox=d,this.tableConfigService=l,this.dynamicPaginatingService=s,this.displayedColumns=["checkbox","id","type","fullName","status","groupStatus","organization","email","logins"],this.selectedGroupStatuses=[],this.pageSizeOptions=b.f7,this.canBeSelected=r=>"INDIRECT"!==r.membershipType}static getExportDataForColumn(i,o){switch(o){case"id":return i.id.toString();case"fullName":return i.user?(0,b.bD)(i.user):"";case"status":return i.status;case"groupStatus":return i.groupStatus;case"organization":return(0,b.Gw)(i);case"email":return(0,b.g$)(i);case"logins":return(0,b.lt)(i);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadMembersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(i=>"id"!==i)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadMembers(this.voId,this.attrNames,"ASCENDING",0,this.tableConfigService.getTablePageSize(this.tableId),"NAME",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadMembersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(i=>{this.canBeSelected(i)&&this.selection.select(i)})}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().filter(d=>this.canBeSelected(d)).length}checkboxLabel(i){return i?`${this.selection.isSelected(i)?"deselect":"select"} row ${i.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(i,o,d){i.stopPropagation();const l=(0,b.kZ)();l.width="500px",l.data={member:o,voId:this.voId,groupId:d};const s=d?o.groupStatus:o.status;this.dialog.open(_.pf,l).afterClosed().subscribe(t=>{if(t){const n=d?t.groupStatus:t.status;"VALID"===s&&("EXPIRED"===n||"DISABLED"===n)||"VALID"===n?(d?o.groupStatus=n:o.status=n,this.changeExpiration(o,d)):this.loadMembersPage()}})}changeExpiration(i,o){const d=i.memberAttributes.find(o?r=>"groupMembershipExpiration"===r.friendlyName:r=>"membershipExpiration"===r.friendlyName),l=(0,b.kZ)();let s;l.width="400px",l.data={voId:this.voId,groupId:o,memberId:i.id,expirationAttr:d,status:o?i.groupStatus:i.status,statusChanged:!0},s=this.dialog.open(o?_.u3:_.kZ,l),s.afterClosed().subscribe(()=>{this.loadMembersPage()})}loadMembersPage(){this.dataSource.loadMembers(this.voId,this.attrNames,"asc"===this.sort.direction?"ASCENDING":"DESCENDING",this.child.paginator.pageIndex,this.child.paginator.pageSize,"fullName"===this.sort.active?"NAME":"ID",this.selectedStatuses,this.searchString,this.groupId,this.selectedGroupStatuses)}exportData(i){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,Ae.getExportDataForColumn),i)}viewMemberGroupTree(i,o){i.stopPropagation();const d=(0,b.kZ)();d.width="800px",d.data={member:o,groupId:this.groupId},this.dialog.open(_.jd,d)}}return Ae.\u0275fac=function(i){return new(i||Ae)(E.Y36(C.uw),E.Y36(w.x4),E.Y36(w.UA),E.Y36(I.dB),E.Y36(w.ly))},Ae.\u0275cmp=E.Xpm({type:Ae,selectors:[["perun-web-apps-members-dynamic-list"]],viewQuery:function(i,o){if(1&i&&(E.Gf(b.l9,7),E.Gf(e.YE,5)),2&i){let d;E.iGM(d=E.CRH())&&(o.child=d.first),E.iGM(d=E.CRH())&&(o.sort=d.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",voId:"voId",groupId:"groupId",selectedGroupStatuses:"selectedGroupStatuses",attrNames:"attrNames",searchString:"searchString",selectedStatuses:"selectedStatuses",tableId:"tableId",updateTable:"updateTable"},features:[E.TTD],decls:37,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["mat-cell","",4,"matCellDef"],["matColumnDef","fullName"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","groupStatus"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","italic_font","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click",4,"ngIf"],[3,"matTooltip","click"],["mat-header-cell",""],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(i,o){1&i&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(l){return o.exportData(l)}),E.YNc(3,ze,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,le,2,3,"th",5),E.YNc(8,je,5,11,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,ye,3,3,"th",8),E.YNc(11,Be,2,1,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,W,1,0,"th",8),E.YNc(14,me,2,1,"td",11),E.BQk(),E.ynx(15,12),E.YNc(16,be,3,3,"th",8),E.YNc(17,Ie,3,3,"td",11),E.BQk(),E.ynx(18,13),E.YNc(19,pe,3,3,"th",14),E.YNc(20,Se,7,12,"td",11),E.BQk(),E.ynx(21,15),E.YNc(22,Xe,3,3,"th",14),E.YNc(23,Je,7,12,"td",11),E.BQk(),E.ynx(24,16),E.YNc(25,nt,3,3,"th",14),E.YNc(26,Ve,3,3,"td",11),E.BQk(),E.ynx(27,17),E.YNc(28,X,3,3,"th",14),E.YNc(29,z,3,3,"td",11),E.BQk(),E.ynx(30,18),E.YNc(31,Q,3,3,"th",14),E.YNc(32,D,3,3,"td",11),E.BQk(),E.YNc(33,H,1,0,"tr",19),E.YNc(34,xe,1,14,"tr",20),E.qZA(),E.qZA(),E.qZA(),E.YNc(35,Qe,3,3,"perun-web-apps-alert",21),E.ALo(36,"async")),2&i&&(E.Q6J("hidden",0===o.dataSource.allObjectCount&&!1===E.lcZ(1,9,o.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",o.tableId)("dataLength",o.dataSource.allObjectCount)("pageSizeOptions",o.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,o.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",o.dataSource),E.xp6(28),E.Q6J("matHeaderRowDef",o.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",o.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===o.dataSource.allObjectCount&&!1===E.lcZ(36,13,o.dataSource.loading$)))},directives:[P.l,m.O5,L.$g,O.BZ,e.YE,O.w1,O.fO,O.ge,G.oG,O.Dz,O.ev,ne.gM,e.nU,ge.Hw,O.as,O.XQ,O.nj,O.Gk,J.YH,Me.rH,oe.w],pipes:[m.Ov,m.i8,Re,j,T.X$,Y.d,q.u,te.i,ue.f,de.M,Le.D,Ue.p],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),Ae})()},38383:($e,_e,p)=>{"use strict";p.d(_e,{O:()=>ae});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(16074),E=p(36908),C=p(48966),I=p(11735),P=p(18750),m=p(77446),L=p(29772),O=p(69808),G=p(25245),ne=p(50301),ge=p(98380),J=p(51062),Me=p(31359),oe=p(69773),Re=p(12856),T=p(21757),j=p(96974),Y=p(20919),q=p(5865);function te(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"th",26),e.TgZ(1,"mat-checkbox",27),e.NdJ("change",function(s){e.CHM(d);const r=e.oxw();return s?r.masterToggle():null}),e.qZA(),e.qZA()}if(2&i){const d=e.oxw();e.xp6(1),e.Q6J("aria-label",d.checkboxLabel())("checked",d.selection.hasValue()&&d.isAllSelected())("indeterminate",d.selection.hasValue()&&!d.isAllSelected())}}function ue(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",28),e.TgZ(1,"mat-checkbox",29),e.NdJ("change",function(s){const t=e.CHM(d).$implicit,n=e.oxw();return s?n.selection.toggle(t):null})("click",function(s){return s.stopPropagation()}),e.ALo(2,"translate"),e.qZA(),e.qZA()}if(2&i){const d=o.$implicit,l=e.oxw();e.xp6(1),e.Q6J("aria-label",l.checkboxLabel(d))("checked",l.selection.isSelected(d))("disabled","DIRECT"!==d.membershipType)("matTooltip","DIRECT"!==d.membershipType?e.lcZ(2,4,"MEMBERS_LIST.CHECKBOX_TOOLTIP"):"")}}function de(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.ID")))}function Le(i,o){if(1&i&&(e.TgZ(0,"td",31),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.id)}}function Ue(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.VO_ID")," "))}function ze(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.voId)}}function le(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.USER_ID")," "))}function je(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(d.userId)}}function ye(i,o){1&i&&e._UZ(0,"th",30)}function Be(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"mat-icon",34),e.NdJ("click",function(){e.CHM(d);const s=e.oxw().$implicit;return e.oxw().viewMemberGroupTree(s)})("mouseenter",function(){return e.CHM(d),e.oxw(2).disableRouting=!0})("mouseleave",function(){e.CHM(d);const s=e.oxw(2);return s.disableRouting=s.disabledRouting}),e.ALo(1,"translate"),e._uU(2,"transfer_within_a_station"),e.qZA()}2&i&&e.Q6J("matTooltip",e.lcZ(1,1,"MEMBERS_LIST.INDIRECT_MEMBER"))}function W(i,o){if(1&i&&(e.TgZ(0,"td",32),e.YNc(1,Be,3,3,"mat-icon",33),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf","DIRECT"!==d.membershipType)}}function R(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.NAME")," "))}function me(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d.user))}}function be(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.STATUS")," "))}function Ie(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=o.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.status),""),e.s9C("matTooltip",e.xi3(3,7,d,!1)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.status)," ")}}function pe(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.GROUP_STATUS")," "))}function Se(i,o){if(1&i){const d=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"i",35),e.NdJ("click",function(s){const t=e.CHM(d).$implicit;return e.oxw().changeStatus(s,t)}),e.ALo(2,"memberStatusIconColor"),e.ALo(3,"memberStatusTooltip"),e.TgZ(4,"span"),e._uU(5),e.ALo(6,"memberStatusIcon"),e.qZA(),e.qZA(),e.qZA()}if(2&i){const d=o.$implicit;e.xp6(1),e.Gre("material-icons ",e.lcZ(2,5,d.groupStatus),""),e.s9C("matTooltip",e.xi3(3,7,d,!0)),e.xp6(4),e.hij(" ",e.lcZ(6,10,d.groupStatus)," ")}}function Xe(i,o){1&i&&(e.TgZ(0,"th",36),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ALREADY_SPONSORED")," "))}function Je(i,o){1&i&&(e.TgZ(0,"mat-icon"),e._uU(1,"check_circle_outline"),e.qZA())}function nt(i,o){if(1&i&&(e.TgZ(0,"td",37),e.YNc(1,Je,2,0,"mat-icon",38),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Q6J("ngIf",d.sponsored)}}function Ve(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.ORGANIZATION")," "))}function X(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberOrganization"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function z(i,o){1&i&&(e.TgZ(0,"th",30),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"MEMBERS_LIST.EMAIL")," "))}function Q(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberEmail"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function D(i,o){1&i&&(e.TgZ(0,"th",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"MEMBERS_LIST.LOGINS")))}function H(i,o){if(1&i&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"memberLogins"),e.qZA()),2&i){const d=o.$implicit;e.xp6(1),e.Oqu(e.lcZ(2,1,d))}}function V(i,o){1&i&&e._UZ(0,"tr",40)}const xe=function(i,o){return["/organizations",i,"members",o]};function Qe(i,o){if(1&i&&e._UZ(0,"tr",41),2&i){const d=o.$implicit,l=e.oxw();e.ekj("cursor-pointer",!l.disabledRouting)("disable-outline",l.disableRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",l.disableRouting?null:e.WLB(6,xe,d.voId,d.id))("routerLink",l.disableRouting?null:e.WLB(9,xe,d.voId,d.id))}}function Te(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function Ae(i,o){1&i&&(e.TgZ(0,"perun-web-apps-alert",42),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&i&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_MEMBERS"),"\n"))}let ae=(()=>{class i{constructor(d,l,s,r){this.dialog=d,this.authResolver=l,this.tableCheckbox=s,this.route=r,this.selection=new w.Ov,this.displayedColumns=["checkbox","id","voId","userId","type","fullName","status","groupStatus","sponsored","organization","email","logins"],this.disableStatusChange=!1,this.disableExpirationChange=!1,this.disableRouting=!1,this.filter="",this.updateTable=new e.vpe,this.pageSizeOptions=g.f7,this.getExportDataForColumnFun=(t,n)=>i.getExportDataForColumn(t,n,this.showGroupStatuses),this.getSortDataForColumnFun=(t,n)=>i.getSortDataForColumn(t,n,this.showGroupStatuses),this.canBeSelected=t=>"DIRECT"===t.membershipType}set matSort(d){this.sort=d}static getFilterDataForColumn(d,l){switch(l){case"fullName":return d.user?(0,g.bD)(d.user):"";case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getExportDataForColumn(d,l,s){switch(l){case"id":return d.id.toString();case"fullName":return d.user?(0,g.bD)(d.user):"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);case"logins":return(0,g.lt)(d);default:return""}}static getSortDataForColumn(d,l,s){var r;switch(l){case"id":return d.id.toString();case"fullName":return d.user?d.user.lastName?d.user.lastName:null!==(r=d.user.firstName)&&void 0!==r?r:"":"";case"status":return s?d.groupStatus:d.status;case"organization":return(0,g.Gw)(d);case"email":return(0,g.g$)(d);default:return""}}exportData(d){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getExportDataForColumnFun),d)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(d,l)=>(0,g.Sd)(d,l,this.displayedColumns,i.getFilterDataForColumn),this.dataSource.sortData=(d,l)=>(0,g.pR)(d,l,this.getSortDataForColumnFun)),this.dataSource.filter=this.filter,this.dataSource.data=this.members}ngAfterViewInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(d=>"id"!==d))}ngOnChanges(){var d;this.setDataSource(),this.disabledRouting=this.disableRouting,null===(d=this.route.parent)||void 0===d||d.params.subscribe(l=>{l.groupId&&(this.groupId=Number(l.groupId))})}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filter,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filter,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected)}checkboxLabel(d){return d?`${this.selection.isSelected(d)?"deselect":"select"} row ${d.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}changeStatus(d,l){if(d.stopPropagation(),!this.disableStatusChange){const s=(0,g.kZ)();s.width="500px",s.data={member:l,disableChangeExpiration:this.disableExpirationChange},this.dialog.open(A.pf,s).afterClosed().subscribe(t=>{t&&this.updateTable.emit(!0)})}}viewMemberGroupTree(d){const l=(0,g.kZ)();l.width="800px",l.data={member:d,groupId:this.groupId},this.dialog.open(A.jd,l)}}return i.\u0275fac=function(d){return new(d||i)(e.Y36(C.uw),e.Y36(E.x4),e.Y36(E.UA),e.Y36(I.gz))},i.\u0275cmp=e.Xpm({type:i,selectors:[["perun-web-apps-members-list"]],viewQuery:function(d,l){if(1&d&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&d){let s;e.iGM(s=e.CRH())&&(l.child=s.first),e.iGM(s=e.CRH())&&(l.matSort=s.first)}},inputs:{showGroupStatuses:"showGroupStatuses",members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",disableStatusChange:"disableStatusChange",disableExpirationChange:"disableExpirationChange",tableId:"tableId",disableRouting:"disableRouting",filter:"filter"},outputs:{updateTable:"updateTable"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","fullName","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","voId"],["mat-cell","",4,"matCellDef"],["matColumnDef","userId"],["matColumnDef","type"],["matColumnDef","fullName"],["matColumnDef","status"],["matColumnDef","groupStatus"],["matColumnDef","sponsored"],["class","center new-line","mat-header-cell","",4,"matHeaderCellDef"],["class","center","mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","matTooltip","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],[3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],[3,"matTooltip","click","mouseenter","mouseleave"],["matTooltipClass","status-tooltip","matTooltipPosition","left",3,"matTooltip","click"],["mat-header-cell","",1,"center","new-line"],["mat-cell","",1,"center"],[4,"ngIf"],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(d,l){1&d&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(r){return l.exportData(r)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,te,2,3,"th",4),e.YNc(5,ue,3,6,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,de,3,3,"th",7),e.YNc(8,Le,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,Ue,3,3,"th",7),e.YNc(11,ze,2,1,"td",10),e.BQk(),e.ynx(12,11),e.YNc(13,le,3,3,"th",7),e.YNc(14,je,2,1,"td",10),e.BQk(),e.ynx(15,12),e.YNc(16,ye,1,0,"th",7),e.YNc(17,W,2,1,"td",10),e.BQk(),e.ynx(18,13),e.YNc(19,R,3,3,"th",7),e.YNc(20,me,3,3,"td",10),e.BQk(),e.ynx(21,14),e.YNc(22,be,3,3,"th",7),e.YNc(23,Ie,7,12,"td",10),e.BQk(),e.ynx(24,15),e.YNc(25,pe,3,3,"th",7),e.YNc(26,Se,7,12,"td",10),e.BQk(),e.ynx(27,16),e.YNc(28,Xe,3,3,"th",17),e.YNc(29,nt,2,1,"td",18),e.BQk(),e.ynx(30,19),e.YNc(31,Ve,3,3,"th",7),e.YNc(32,X,3,3,"td",10),e.BQk(),e.ynx(33,20),e.YNc(34,z,3,3,"th",7),e.YNc(35,Q,3,3,"td",10),e.BQk(),e.ynx(36,21),e.YNc(37,D,3,3,"th",22),e.YNc(38,H,3,3,"td",10),e.BQk(),e.YNc(39,V,1,0,"tr",23),e.YNc(40,Qe,1,12,"tr",24),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,Te,3,3,"perun-web-apps-alert",25),e.YNc(42,Ae,3,3,"perun-web-apps-alert",25)),2&d&&(e.Q6J("hidden",0===l.members.length||!l.dataSource||0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("dataLength",l.dataSource.filteredData.length)("tableId",l.tableId)("pageSizeOptions",l.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",l.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",l.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",l.displayedColumns),e.xp6(1),e.Q6J("ngIf",0!==l.members.length&&0===l.dataSource.filteredData.length),e.xp6(1),e.Q6J("ngIf",0===l.members.length))},directives:[P.l,_.BZ,b.YE,_.w1,_.fO,_.ge,m.oG,_.Dz,_.ev,L.gM,b.nU,O.O5,G.Hw,_.as,_.XQ,_.nj,_.Gk,ne.YH,I.rH,ge.w],pipes:[J.X$,Me.d,oe.u,Re.i,T.f,j.M,Y.D,q.p],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .status-tooltip{white-space:pre-line}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.center[_ngcontent-%COMP%]{text-align:center}.new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),i})()},22465:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>m});var e=p(5e3),b=p(36908),_=p(9244),w=p(16074),g=p(48966),A=p(69808),E=p(25245),C=p(51062);function I(L,O){if(1&L&&(e.TgZ(0,"div",5),e.TgZ(1,"mat-icon"),e._uU(2),e.qZA(),e.qZA()),2&L){const G=e.oxw();e.xp6(2),e.Oqu(G.data.icon)}}function P(L,O){if(1&L&&(e.TgZ(0,"div",6),e._uU(1),e.qZA()),2&L){const G=e.oxw();e.xp6(1),e.hij(" ",G.showTimestamp()," ")}}let m=(()=>{class L{constructor(G,ne){this.dialog=G,this.notificationStorageService=ne,this.newNotification=!1,this.closeNotification=new e.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const G=(0,_.kZ)();G.width="550px",G.data=this.data,G.autoFocus=!1,this.dialog.open(w.FM,G).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){(0,_.ys)(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[G,ne]=this.data.timeStamp.split(":");return ne.length<2?G+":0"+ne:this.data.timeStamp}}return L.\u0275fac=function(G){return new(G||L)(e.Y36(g.uw),e.Y36(b.SZ))},L.\u0275cmp=e.Xpm({type:L,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(G,ne){1&G&&(e.TgZ(0,"div"),e.TgZ(1,"div",0),e.NdJ("click",function(){return ne.alreadyClosed||ne.waiting?"":ne.closeSelf()}),e.YNc(2,I,3,1,"div",1),e.TgZ(3,"div",2),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.YNc(6,P,2,1,"div",3),e.TgZ(7,"div",4),e.NdJ("click",function(){return ne.waiting=!0,ne.doAction()}),e._uU(8),e.qZA(),e.qZA(),e.qZA()),2&G&&(e.Gre("notification ",ne.inDialog?"":"mat-elevation-z7",""),e.ekj("error","error"===ne.data.type)("success","success"===ne.data.type),e.xp6(2),e.Q6J("ngIf",null!==ne.data.icon),e.xp6(2),e.hij(" ",e.lcZ(5,12,ne.data.title)," "),e.xp6(2),e.Q6J("ngIf",ne.inDialog),e.xp6(1),e.Q6J("hidden",ne.alreadyPressed),e.xp6(1),e.hij(" ",ne.data.actionText," "))},directives:[A.O5,E.Hw],pipes:[C.X$],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),L})()},41619:($e,_e,p)=>{"use strict";p.d(_e,{$:()=>ye});var e=p(36908),b=p(32105),_=p(5e3),w=p(48966),g=p(51062),A=p(67322),E=p(98833),C=p(93075),I=p(69808),P=p(47423);function m(Be,W){1&Be&&(_.TgZ(0,"mat-error"),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&Be&&(_.xp6(1),_.Oqu(_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let L=(()=>{class Be{constructor(R,me,be,Ie,pe){this.dialogRef=R,this.translate=me,this.notificator=be,this.rtMessages=Ie,this.storeService=pe,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(R=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(R.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",p(4147).i8)}close(){this.dialogRef.close()}}return Be.\u0275fac=function(R){return new(R||Be)(_.Y36(w.so),_.Y36(g.sK),_.Y36(e.V6),_.Y36(b.Hr),_.Y36(e.d6))},Be.\u0275cmp=_.Xpm({type:Be,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(R,me){if(1&R&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_.TgZ(4,"mat-form-field"),_.TgZ(5,"mat-label"),_._uU(6),_.ALo(7,"translate"),_.qZA(),_.TgZ(8,"input",2,3),_.NdJ("ngModelChange",function(Ie){return me.subject=Ie}),_.qZA(),_.YNc(10,m,3,3,"mat-error",4),_.qZA(),_.TgZ(11,"mat-form-field"),_.TgZ(12,"mat-label"),_._uU(13),_.ALo(14,"translate"),_.qZA(),_.TgZ(15,"textarea",5),_.NdJ("ngModelChange",function(Ie){return me.message=Ie}),_.ALo(16,"translate"),_._uU(17," "),_.qZA(),_.TgZ(18,"mat-hint"),_._uU(19),_.ALo(20,"translate"),_.qZA(),_.qZA(),_.qZA(),_.TgZ(21,"div",6),_.TgZ(22,"div",7),_.TgZ(23,"button",8),_.NdJ("click",function(){return me.close()}),_._uU(24),_.ALo(25,"translate"),_.qZA(),_.TgZ(26,"button",9),_.NdJ("click",function(){return me.sendBugReport()}),_._uU(27),_.ALo(28,"translate"),_.qZA(),_.qZA(),_.qZA()),2&R){const be=_.MAs(9);_.xp6(1),_.Oqu(_.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),_.xp6(5),_.Oqu(_.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),_.xp6(2),_.Q6J("ngModel",me.subject),_.xp6(2),_.Q6J("ngIf",be.invalid),_.xp6(3),_.Oqu(_.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),_.xp6(2),_.s9C("placeholder",_.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),_.Q6J("ngModel",me.message),_.xp6(4),_.Oqu(_.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),_.xp6(5),_.hij(" ",_.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),_.xp6(2),_.Q6J("disabled",be.invalid),_.xp6(1),_.hij(" ",_.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[w.uh,w.xY,A.KE,A.hX,E.Nt,C.Fj,C.Q7,C.JJ,C.On,I.O5,A.TO,A.bx,w.H8,P.lW],pipes:[g.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Be})();var O=p(9244);let G=(()=>{class Be{transform(R,me,be){return R[`${be}_${me}`]}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"localisedText",type:Be,pure:!0}),Be})(),ne=(()=>{class Be{transform(R,me){return R["link_"+me]||R.link_en}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"localisedLink",type:Be,pure:!0}),Be})(),ge=(()=>{class Be{transform(R){return R.includes("/")?R:"/assets/config/"+R}}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275pipe=_.Yjl({name:"footerLogoPath",type:Be,pure:!0}),Be})();function J(Be,W){if(1&Be&&(_.TgZ(0,"a",13),_.ALo(1,"localisedLink"),_._UZ(2,"img",14),_.ALo(3,"footerLogoPath"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,2,R,me.language),_.LSH),_.xp6(2),_.s9C("src",_.lcZ(3,5,R.logo),_.LSH)}}function Me(Be,W){if(1&Be&&(_.TgZ(0,"span"),_._UZ(1,"img",14),_.ALo(2,"footerLogoPath"),_.qZA()),2&Be){const R=_.oxw().$implicit;_.xp6(1),_.s9C("src",_.lcZ(2,1,R.logo),_.LSH)}}function oe(Be,W){if(1&Be&&(_.TgZ(0,"div"),_.YNc(1,J,4,7,"a",11),_.ALo(2,"localisedLink"),_.YNc(3,Me,3,3,"span",12),_.ALo(4,"localisedLink"),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",_.xi3(2,2,R,me.language)),_.xp6(2),_.Q6J("ngIf",!_.xi3(4,5,R,me.language))}}const Re=function(Be){return{"min-height":Be}};function T(Be,W){if(1&Be&&(_.TgZ(0,"div",10),_.YNc(1,oe,5,8,"div",5),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Re,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",R.elements)}}const j=function(Be){return{color:Be}};function Y(Be,W){if(1&Be&&(_.TgZ(0,"i",20),_._uU(1),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(2,j,me.linksTextColor)),_.xp6(1),_.hij(" ",R.icon," ")}}function q(Be,W){if(1&Be){const R=_.EpF();_.TgZ(0,"span",21),_.NdJ("click",function(){_.CHM(R);const be=_.oxw().$implicit;return _.oxw(3).openDialog(be.dialog)}),_._uU(1),_.ALo(2,"localisedText"),_.qZA()}if(2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,j,me.linksTextColor)),_.xp6(1),_.hij("",_.Dn7(2,2,R,me.language,"label")," ")}}function te(Be,W){if(1&Be&&(_.TgZ(0,"a",22),_.ALo(1,"localisedLink"),_._uU(2),_.ALo(3,"localisedText"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("href",_.xi3(1,3,R,me.language),_.LSH)("ngStyle",_.VKq(10,j,me.linksTextColor)),_.xp6(2),_.Oqu(_.Dn7(3,6,R,me.language,"label"))}}function ue(Be,W){if(1&Be&&(_.TgZ(0,"span",10),_._uU(1),_.ALo(2,"localisedText"),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw(3);_.Q6J("ngStyle",_.VKq(6,j,me.linksTextColor)),_.xp6(1),_.Oqu(_.Dn7(2,2,R,me.language,"label"))}}function de(Be,W){if(1&Be&&(_.TgZ(0,"div",16),_.YNc(1,Y,2,4,"i",17),_.YNc(2,q,3,8,"span",18),_.YNc(3,te,4,12,"a",19),_.ALo(4,"localisedLink"),_.YNc(5,ue,3,8,"span",9),_.ALo(6,"localisedLink"),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw(3);_.xp6(1),_.Q6J("ngIf",R.icon),_.xp6(1),_.Q6J("ngIf",R.dialog),_.xp6(1),_.Q6J("ngIf",_.xi3(4,4,R,me.language)&&!R.dialog),_.xp6(2),_.Q6J("ngIf",!_.xi3(6,7,R,me.language)&&!R.dialog)}}const Le=function(Be){return{height:Be}};function Ue(Be,W){if(1&Be&&(_.TgZ(0,"div",10),_.YNc(1,de,7,10,"div",15),_.qZA()),2&Be){const R=_.oxw().$implicit,me=_.oxw();_.Q6J("ngStyle",_.VKq(2,Le,me.columnContentHeight+"px")),_.xp6(1),_.Q6J("ngForOf",R.elements)}}function ze(Be,W){if(1&Be&&(_.TgZ(0,"div",7),_.TgZ(1,"h6",8),_._uU(2),_.ALo(3,"localisedText"),_.qZA(),_.YNc(4,T,2,4,"div",9),_.YNc(5,Ue,2,4,"div",9),_.qZA()),2&Be){const R=W.$implicit,me=_.oxw();_.ekj("my-auto",me.containsLogos),_.xp6(1),_.Q6J("ngStyle",_.VKq(10,j,me.headersTextColor)),_.xp6(1),_.hij(" ",_.Dn7(3,6,R,me.language,"title")," "),_.xp6(2),_.Q6J("ngIf",R.logos),_.xp6(1),_.Q6J("ngIf",R.elements&&!R.logos)}}function le(Be,W){if(1&Be&&(_.TgZ(0,"span"),_.TgZ(1,"a",6),_._uU(2),_.qZA(),_.qZA()),2&Be){const R=W.$implicit,me=W.index,be=_.oxw();_.xp6(1),_.Q6J("href",R.url,_.LSH)("ngStyle",_.VKq(3,j,be.copyrightTextColor)),_.xp6(1),_.Oqu(me?", "+R.name:R.name)}}const je=function(Be){return{background:Be}};let ye=(()=>{class Be{constructor(R,me,be){this.storeService=R,this.translateService=me,this.dialog=be,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(R=>{this.language=R.lang}),this.version=p(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const R of this.footerColumns)R.logos?this.containsLogos=!0:25*R.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*R.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(R){const me=(0,O.kZ)();"reportIssue"===R&&(me.width="550px",this.dialog.open(L,me))}}return Be.\u0275fac=function(R){return new(R||Be)(_.Y36(e.d6),_.Y36(g.sK),_.Y36(w.uw))},Be.\u0275cmp=_.Xpm({type:Be,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(R,me){1&R&&(_.TgZ(0,"footer",0),_.TgZ(1,"div",1),_.YNc(2,ze,6,12,"div",2),_.qZA(),_._UZ(3,"hr",3),_.TgZ(4,"div",4),_._uU(5),_.YNc(6,le,3,5,"span",5),_._uU(7," Version "),_.TgZ(8,"a",6),_._uU(9),_.qZA(),_.qZA(),_.qZA()),2&R&&(_.Q6J("ngStyle",_.VKq(8,je,me.bgColor)),_.xp6(2),_.Q6J("ngForOf",me.footerColumns),_.xp6(2),_.Q6J("ngStyle",_.VKq(10,j,me.copyrightTextColor)),_.xp6(1),_.hij(" \xa9 ",me.currentYear," Copyright: "),_.xp6(1),_.Q6J("ngForOf",me.copyrightItems),_.xp6(2),_.Q6J("href",me.githubRepository,_.LSH)("ngStyle",_.VKq(12,j,me.copyrightTextColor)),_.xp6(1),_.Oqu(me.version))},directives:[I.PC,I.sg,I.O5],pipes:[G,ne,ge],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),Be})()},10441:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>E});var e=p(5e3),b=p(69808),_=p(25245),w=p(29772),g=p(51062);function A(C,I){1&C&&(e.TgZ(0,"mat-icon",1),e.ALo(1,"translate"),e._uU(2," visibility\n"),e.qZA()),2&C&&e.s9C("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let E=(()=>{class C{constructor(){this.recentIds=[]}}return C.\u0275fac=function(P){return new(P||C)},C.\u0275cmp=e.Xpm({type:C,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(P,m){1&P&&e.YNc(0,A,3,3,"mat-icon",0),2&P&&e.Q6J("ngIf",m.recentIds.indexOf(m.id)>-1)},directives:[b.O5,_.Hw,w.gM],pipes:[g.X$],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),C})()},96214:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>A});var e=p(5e3),b=p(47423),_=p(29772),w=p(25245),g=p(51062);let A=(()=>{class E{constructor(){this.refresh=new e.vpe}onClickbutton(I){this.refresh.emit(I)}}return E.\u0275fac=function(I){return new(I||E)},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(I,P){1&I&&(e.TgZ(0,"button",0),e.NdJ("click",function(L){return P.onClickbutton(L)}),e.ALo(1,"translate"),e._UZ(2,"mat-icon",1),e.qZA()),2&I&&(e.s9C("matTooltip",e.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),e.Q6J("disabled",P.disabled),e.xp6(2),e.s9C("svgIcon",P.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[b.lW,_.gM,w.Hw],pipes:[g.X$],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),E})()},45703:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.resource=null,this.displayStatus=!0,this.resourceSelected=new e.vpe,this.nameFunction=C=>C.name,this.secondaryFunction=()=>null}ngOnInit(){this.resources=this.resources.sort(b.aC)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-resource-search-select"]],inputs:{resource:"resource",resources:"resources",displayStatus:"displayStatus"},outputs:{resourceSelected:"resourceSelected"},decls:4,vars:15,consts:[[3,"entity","entities","displayStatus","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.resourceSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",I.resource)("entities",I.resources)("displayStatus",I.displayStatus)("searchFunction",I.nameFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.secondaryFunction)("selectPlaceholder",e.lcZ(1,9,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.SELECT_RESOURCE"))("findPlaceholder",e.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.FIND_RESOURCE"))("noEntriesText",e.lcZ(3,13,"SHARED_LIB.PERUN.COMPONENTS.RESOURCE_SEARCH_SELECT.NO_RESOURCE_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},62109:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>H});var e=p(5e3),b=p(84847),_=p(32075),w=p(20449),g=p(9244),A=p(36908),E=p(18750),C=p(77446),I=p(29772),P=p(10441),m=p(69808),L=p(25245),O=p(8223),G=p(50301),ne=p(11735),ge=p(98380),J=p(51062);let Me=(()=>{class V{transform(Qe){if(null==Qe)return null;let Ae="";return Qe.forEach(function(ae){Ae=Ae.concat(ae.tagName)}),Ae}}return V.\u0275fac=function(Qe){return new(Qe||V)},V.\u0275pipe=e.Yjl({name:"resourceTagsToString",type:V,pure:!0}),V})();var oe=p(82895);function Re(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"th",24),e.TgZ(1,"mat-checkbox",25),e.NdJ("change",function(Ae){e.CHM(Qe);const ae=e.oxw();return Ae?ae.masterToggle():null}),e.qZA(),e.qZA()}if(2&V){const Qe=e.oxw();e.xp6(1),e.Q6J("aria-label",Qe.checkboxLabel())("checked",Qe.selection.hasValue()&&Qe.isAllSelected())("indeterminate",Qe.selection.hasValue()&&!Qe.isAllSelected())}}function T(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"td",26),e.TgZ(1,"span",27),e.ALo(2,"translate"),e.TgZ(3,"mat-checkbox",28),e.NdJ("change",function(Ae){const i=e.CHM(Qe).$implicit,o=e.oxw();return Ae?o.itemSelectionToggle(i):null})("click",function(Ae){return Ae.stopPropagation()}),e.qZA(),e.qZA(),e.qZA()}if(2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.s9C("matTooltip",e.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),e.Q6J("matTooltipPosition","above")("matTooltipDisabled",!Te.disableSelect(Qe)),e.xp6(2),e.Q2q("data-cy","",Qe.name,"-checkbox"),e.Q6J("aria-label",Te.checkboxLabel(Qe))("checked",Te.selection.isSelected(Qe))("disabled",Te.disableSelect(Qe))}}function j(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function Y(V,xe){if(1&V&&(e.TgZ(0,"td",30),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.id)}}function q(V,xe){1&V&&e._UZ(0,"th",31)}function te(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._UZ(1,"perun-web-apps-recently-viewed-icon",33),e.qZA()),2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.Q6J("recentIds",Te.recentIds)("id",Qe.id)}}function ue(V,xe){1&V&&e._UZ(0,"th",31)}function de(V,xe){1&V&&(e.TgZ(0,"mat-icon",35),e.ALo(1,"translate"),e._uU(2,"account_tree"),e.qZA()),2&V&&e.Q6J("matTooltip",e.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function Le(V,xe){if(1&V&&(e.TgZ(0,"td",32),e.YNc(1,de,3,3,"mat-icon",34),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Q6J("ngIf",Qe.sourceGroupId)}}function Ue(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function ze(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.name)}}function le(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function je(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.vo.name)}}function ye(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function Be(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.voId)}}function W(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function R(V,xe){if(1&V){const Qe=e.EpF();e.TgZ(0,"td",32),e.TgZ(1,"perun-web-apps-group-resource-status",36),e.NdJ("mouseenter",function(){return e.CHM(Qe),e.oxw().disabledRouting=!0})("mouseleave",function(){e.CHM(Qe);const Ae=e.oxw();return Ae.disabledRouting=Ae.disableRouting})("statusChange",function(){return e.CHM(Qe),e.oxw().refreshTable.emit()}),e.qZA(),e.qZA()}if(2&V){const Qe=xe.$implicit,Te=e.oxw();e.xp6(1),e.Q6J("theme","group-theme")("resourceId",Qe.id)("groupId",Te.groupId)("failureCause",Qe.failureCause)("status",Qe.status)}}function me(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function be(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.facility.name)}}function Ie(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function pe(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.facilityId)}}function Se(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function Xe(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"resourceTagsToString"),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.hij(" ",e.lcZ(2,1,Qe.resourceTags)," ")}}function Je(V,xe){1&V&&(e.TgZ(0,"th",29),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function nt(V,xe){if(1&V&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&V){const Qe=xe.$implicit;e.xp6(1),e.Oqu(Qe.description)}}function Ve(V,xe){1&V&&e._UZ(0,"tr",37)}const X=function(V){return[V]};function z(V,xe){if(1&V&&(e._UZ(0,"tr",38),e.ALo(1,"getResourceRoute"),e.ALo(2,"getResourceRoute")),2&V){const Qe=xe.$implicit,Te=e.oxw();e.ekj("cursor-pointer",!Te.disableRouting)("disable-outline",Te.disabledRouting),e.Q6J("perunWebAppsMiddleClickRouterLink",e.VKq(12,X,Te.disabledRouting?null:e.xi3(1,6,Qe,Te.routingVo)))("routerLink",Te.disabledRouting?null:e.xi3(2,9,Qe,Te.routingVo))}}function Q(V,xe){1&V&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function D(V,xe){1&V&&(e.TgZ(0,"perun-web-apps-alert",39),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&V&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let H=(()=>{class V{constructor(Qe,Te){this.guiAuthResolver=Qe,this.tableCheckbox=Te,this.resources=[],this.selection=new w.Ov(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=g.f7,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new e.vpe,this.allSelected=new e.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(Ae,ae)=>V.getDataForColumn(Ae,ae,this.recentIds),this.canBeSelected=Ae=>!this.disableSelect(Ae)}set matSort(Qe){this.sort=Qe}static getDataForColumn(Qe,Te,Ae){switch(Te){case"id":return Qe.id.toString();case"vo":return Qe.vo.name;case"name":return Qe.name;case"facility":return Qe.facility.name;case"description":return Qe.description;case"recent":return Ae&&Ae.includes(Qe.id)?"#".repeat(Ae.indexOf(Qe.id)):Qe.name;case"tags":{if(!Qe.resourceTags)return Qe[Te];let i="";return Qe.resourceTags.forEach(function(o){i=i.concat(o.tagName)}),i}case"status":return Qe.status;case"uuid":return Qe.uuid;default:return Qe[Te]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Qe=>"id"!==Qe)),this.setDataSource(),this.setAuth()}exportData(Qe){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),Qe)}setDataSource(){this.dataSource||(this.dataSource=new _.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(Qe,Te)=>(0,g.Sd)(Qe,Te,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(Qe,Te)=>(0,g.pR)(Qe,Te,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const Qe=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(Qe),Qe}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(Qe){return Qe?`${this.selection.isSelected(Qe)?"deselect":"select"} row ${Qe.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const Qe=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((Te,Ae)=>Te&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",Qe.concat([Ae])),!0),this.addAuth=this.selection.selected.reduce((Te,Ae)=>Te&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",Qe.concat([Ae])),!0)}itemSelectionToggle(Qe){this.selection.toggle(Qe),this.setAuth()}disableSelect(Qe){return this.resourcesToDisableCheckbox.has(Qe.id)}}return V.\u0275fac=function(Qe){return new(Qe||V)(e.Y36(A.x4),e.Y36(A.UA))},V.\u0275cmp=e.Xpm({type:V,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(Qe,Te){if(1&Qe&&(e.Gf(g.l9,7),e.Gf(b.YE,7)),2&Qe){let Ae;e.iGM(Ae=e.CRH())&&(Te.child=Ae.first),e.iGM(Ae=e.CRH())&&(Te.matSort=Ae.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[e.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(Qe,Te){1&Qe&&(e.TgZ(0,"div",0),e.TgZ(1,"perun-web-apps-table-wrapper",1),e.NdJ("exportData",function(ae){return Te.exportData(ae)}),e.TgZ(2,"table",2),e.ynx(3,3),e.YNc(4,Re,2,3,"th",4),e.YNc(5,T,4,9,"td",5),e.BQk(),e.ynx(6,6),e.YNc(7,j,3,3,"th",7),e.YNc(8,Y,2,1,"td",8),e.BQk(),e.ynx(9,9),e.YNc(10,q,1,0,"th",10),e.YNc(11,te,2,2,"td",11),e.BQk(),e.ynx(12,12),e.YNc(13,ue,1,0,"th",10),e.YNc(14,Le,2,1,"td",11),e.BQk(),e.ynx(15,13),e.YNc(16,Ue,3,3,"th",7),e.YNc(17,ze,2,1,"td",11),e.BQk(),e.ynx(18,14),e.YNc(19,le,3,3,"th",7),e.YNc(20,je,2,1,"td",11),e.BQk(),e.ynx(21,15),e.YNc(22,ye,3,3,"th",7),e.YNc(23,Be,2,1,"td",11),e.BQk(),e.ynx(24,16),e.YNc(25,W,3,3,"th",7),e.YNc(26,R,2,5,"td",11),e.BQk(),e.ynx(27,17),e.YNc(28,me,3,3,"th",7),e.YNc(29,be,2,1,"td",11),e.BQk(),e.ynx(30,18),e.YNc(31,Ie,3,3,"th",7),e.YNc(32,pe,2,1,"td",11),e.BQk(),e.ynx(33,19),e.YNc(34,Se,3,3,"th",7),e.YNc(35,Xe,3,3,"td",11),e.BQk(),e.ynx(36,20),e.YNc(37,Je,3,3,"th",7),e.YNc(38,nt,2,1,"td",11),e.BQk(),e.YNc(39,Ve,1,0,"tr",21),e.YNc(40,z,3,14,"tr",22),e.qZA(),e.qZA(),e.qZA(),e.YNc(41,Q,3,3,"perun-web-apps-alert",23),e.YNc(42,D,3,3,"perun-web-apps-alert",23)),2&Qe&&(e.Q6J("hidden",0===Te.dataSource.filteredData.length||0===Te.resources.length),e.xp6(1),e.Q6J("dataLength",Te.dataSource.filteredData.length)("tableId",Te.tableId)("pageSizeOptions",Te.pageSizeOptions),e.xp6(1),e.Q6J("dataSource",Te.dataSource),e.xp6(37),e.Q6J("matHeaderRowDef",Te.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",Te.displayedColumns),e.xp6(1),e.Q6J("ngIf",0===Te.dataSource.filteredData.length&&0!==Te.resources.length),e.xp6(1),e.Q6J("ngIf",0===Te.resources.length))},directives:[E.l,_.BZ,b.YE,_.w1,_.fO,_.ge,C.oG,_.Dz,_.ev,I.gM,b.nU,P.W,m.O5,L.Hw,O.x,_.as,_.XQ,_.nj,_.Gk,G.YH,ne.rH,ge.w],pipes:[J.X$,Me,oe.r],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),V})()},52170:($e,_e,p)=>{"use strict";p.d(_e,{qG:()=>g,$x:()=>A});var e=p(5e3),b=p(51062),_=p(42377);class w{constructor(C,I){this.value=I,this.displayName=C}}var g=(()=>{return(E=g||(g={}))[E.SOURCE=0]="SOURCE",E[E.DESTINATION=1]="DESTINATION",E[E.FEDERATION=2]="FEDERATION",g;var E})();let A=(()=>{class E{constructor(I){this.translateService=I,this.attributes=[],this.asGroup=!1,this.itemSelected=new e.vpe,this.items=[],this.nameFunction=P=>P.displayName,this.shortNameFunction=()=>null,this.searchFunction=P=>P.displayName}static getDefinition(I){const P=I.namespace.split(":");return null===P[4]?"null":P[4]}ngOnInit(){this.type===g.FEDERATION?(this.getFederationAttributes(),this.getFederationAttribute()):this.createSelectionItems(),this.sortAttributes(this.items)}createSelectionItems(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{const P=new w(I,"");this.items.push(P),this.item=P});for(const I of this.attributes){const P=new w(I.friendlyName+" ("+I.entity+" / "+E.getDefinition(I)+")",I.namespace+":"+I.friendlyName);P.value===this.selectedAttribute&&(this.item=P),("user"===I.entity.toLowerCase()||"member"===I.entity.toLowerCase()||"vo"===I.entity.toLowerCase()&&this.type===g.SOURCE||"group"===I.entity.toLowerCase()&&this.asGroup&&this.type===g.SOURCE)&&this.items.push(P)}}getFederationAttributes(){this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.NO_SELECTED_ITEM").subscribe(I=>{this.items.push(new w(I,"")),this.translateService.get("DIALOGS.APPLICATION_FORM_EDIT_ITEM.CUSTOM_VALUE").subscribe(P=>{this.items.push(new w(P,"custom")),this.items.push(new w("Display name","displayName")),this.items.push(new w("Common name","cn")),this.items.push(new w("Mail","mail")),this.items.push(new w("Organization","o")),this.items.push(new w("Level of Assurance (LoA)","loa")),this.items.push(new w("First name","givenName")),this.items.push(new w("Surname","sn")),this.items.push(new w("EPPN","eppn")),this.items.push(new w("IdP Category","md_entityCategory")),this.items.push(new w("IdP Affiliation","affiliation")),this.items.push(new w("EduPersonScopedAffiliation","eduPersonScopedAffiliation")),this.items.push(new w("Forwarded Affiliation from Proxy","forwardedScopedAffiliation")),this.items.push(new w("schacHomeOrganization","schacHomeOrganization")),this.items.push(new w("Login","uid")),this.items.push(new w("Alternative login name","alternativeLoginName"))})})}getFederationAttribute(){for(const I of this.items)if(I.value===this.selectedAttribute)return void(this.item=I);this.item=this.items[1],this.item.value=this.selectedAttribute}sortAttributes(I){I.sort((P,m)=>""===P.value?-1:""===m.value?1:P.displayName.localeCompare(m.displayName))}}return E.\u0275fac=function(I){return new(I||E)(e.Y36(b.sK))},E.\u0275cmp=e.Xpm({type:E,selectors:[["perun-web-apps-selection-item-search-select"]],inputs:{attributes:"attributes",selectedAttribute:"selectedAttribute",type:"type",asGroup:"asGroup"},outputs:{itemSelected:"itemSelected"},decls:4,vars:14,consts:[[3,"entities","entity","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(I,P){1&I&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(L){return P.itemSelected.emit(L)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&I&&e.Q6J("entities",P.items)("entity",P.item)("searchFunction",P.searchFunction)("mainTextFunction",P.nameFunction)("secondaryTextFunction",P.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.SELECT_ITEM"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.FIND_ITEM"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.SELECTION_ITEM_SEARCH_SELECT.NO_ITEM_FOUND"))},directives:[_.i],pipes:[b.X$],styles:[""]}),E})()},30540:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(5e3),b=p(42377),_=p(51062);let w=(()=>{class g{constructor(){this.service=null,this.multiple=!1,this.disableAutoSelect=!1,this.theme="",this.serviceSelected=new e.vpe,this.nameFunction=E=>E.name,this.secondaryFunction=()=>"",this.searchFunction=E=>E.name}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275cmp=e.Xpm({type:g,selectors:[["perun-web-apps-service-search-select"]],inputs:{service:"service",services:"services",multiple:"multiple",disableAutoSelect:"disableAutoSelect",theme:"theme"},outputs:{serviceSelected:"serviceSelected"},decls:4,vars:17,consts:[[3,"entity","entities","multiple","disableAutoSelect","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","theme","entitySelected"]],template:function(E,C){1&E&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(P){return C.serviceSelected.emit(P)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&E&&e.Q6J("entity",C.service)("entities",C.services)("multiple",C.multiple)("disableAutoSelect",C.disableAutoSelect)("searchFunction",C.searchFunction)("mainTextFunction",C.nameFunction)("secondaryTextFunction",C.secondaryFunction)("selectPlaceholder",e.lcZ(1,11,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.SELECT_SERVICE"))("findPlaceholder",e.lcZ(2,13,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.FIND_SERVICE"))("noEntriesText",e.lcZ(3,15,"SHARED_LIB.PERUN.COMPONENTS.SERVICE_SEARCH_SELECT.NO_SERVICE_FOUND"))("theme",C.theme)},directives:[b.i],pipes:[_.X$],styles:[""]}),g})()},80275:($e,_e,p)=>{"use strict";p.d(_e,{j:()=>Be});var e=p(20449),b=p(84847),_=p(32075),w=p(36908),g=p(9244),A=p(5e3),E=p(11735),C=p(18750),I=p(29772),P=p(77446),m=p(50301),L=p(69808),O=p(98380),G=p(51062),ne=p(34447);let ge=(()=>{class W{transform(me){var be;const Ie=me.find(pe=>"mail"===pe.friendlyName);return null!==(be=null==Ie?void 0:Ie.value)&&void 0!==be?be:"N/A"}}return W.\u0275fac=function(me){return new(me||W)},W.\u0275pipe=A.Yjl({name:"getMailFromAttributes",type:W,pure:!0}),W})();function J(W,R){1&W&&A._UZ(0,"th",18)}function Me(W,R){if(1&W){const me=A.EpF();A.TgZ(0,"td",19),A.TgZ(1,"span",20),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.TgZ(4,"mat-checkbox",21),A.NdJ("change",function(Ie){const Se=A.CHM(me).$implicit,Xe=A.oxw();return Ie?Xe.selection.toggle(Se):null})("click",function(Ie){return Ie.stopPropagation()}),A.qZA(),A.qZA(),A.qZA()}if(2&W){const me=R.$implicit,be=A.oxw();A.xp6(1),A.s9C("matTooltip",A.lcZ(2,6,A.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),A.Q6J("matTooltipPosition","above")("matTooltipDisabled",!me.userExtSource.persistent),A.xp6(3),A.Q6J("aria-label",be.checkboxLabel(me))("checked",be.selection.isSelected(me))("disabled",me.userExtSource.persistent)}}function oe(W,R){1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function Re(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.id," ")}}function T(W,R){1&W&&(A.TgZ(0,"th",24),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function j(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.ALo(2,"getMailFromAttributes"),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",A.lcZ(2,1,me.attributes)," ")}}function Y(W,R){if(1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.extSourceNameHeader?me.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function q(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.extSource.name," ")}}function te(W,R){if(1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W){const me=A.oxw();A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,me.loginHeader?me.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function ue(W,R){if(1&W&&(A.TgZ(0,"td",23),A._uU(1),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",me.userExtSource.login," ")}}function de(W,R){1&W&&(A.TgZ(0,"th",22),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function Le(W,R){if(1&W&&(A.TgZ(0,"td",25),A._uU(1),A.ALo(2,"date"),A.qZA()),2&W){const me=R.$implicit;A.xp6(1),A.hij(" ",A.xi3(2,1,me.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function Ue(W,R){1&W&&A._UZ(0,"tr",26)}const ze=function(W,R){return["/admin","users",W,"identities",R]};function le(W,R){if(1&W&&A._UZ(0,"tr",27),2&W){const me=R.$implicit,be=A.oxw();A.ekj("cursor-pointer",!be.disableRouting)("disable-outline",be.disableRouting),A.Q6J("perunWebAppsMiddleClickRouterLink",be.disableRouting?null:A.WLB(6,ze,be.userId,me.userExtSource.id))("routerLink",be.disableRouting?null:A.WLB(9,ze,be.userId,me.userExtSource.id))}}function je(W,R){1&W&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ye(W,R){1&W&&(A.TgZ(0,"perun-web-apps-alert",28),A._uU(1),A.ALo(2,"translate"),A.ALo(3,"customTranslate"),A.qZA()),2&W&&(A.xp6(1),A.hij(" ",A.lcZ(2,1,A.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let Be=(()=>{class W{constructor(me,be){this.route=me,this.authResolver=be,this.selection=new e.Ov,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=g.f7}set matSort(me){this.sort=me,this.setDataSource()}static getDataForColumn(me,be){switch(be){case"id":return me.userExtSource.id.toString();case"mail":{const Ie=me.attributes.find(pe=>"mail"===pe.friendlyName);return Ie?Ie.value:"N/A"}case"extSourceName":return me.userExtSource.extSource.name;case"login":return me.userExtSource.login;case"lastAccess":return me.userExtSource.lastAccess.split(".")[0];default:return me[be]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(me=>{this.userId=Number(me.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(me=>"id"!==me)),this.dataSource=new _.by(this.userExtSources),this.setDataSource()}exportData(me){(0,g.O6)((0,g.Xn)(this.dataSource.filteredData,this.displayedColumns,W.getDataForColumn),me)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(me,be)=>(0,g.Sd)(me,be,this.displayedColumns,W.getDataForColumn),this.dataSource.sortData=(me,be)=>(0,g.pR)(me,be,W.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(me){return`${this.selection.isSelected(me.userExtSource)?"deselect":"select"} row ${me.userExtSource.id+1}`}}return W.\u0275fac=function(me){return new(me||W)(A.Y36(E.gz),A.Y36(w.x4))},W.\u0275cmp=A.Xpm({type:W,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(me,be){if(1&me&&(A.Gf(g.l9,7),A.Gf(b.YE,7)),2&me){let Ie;A.iGM(Ie=A.CRH())&&(be.child=Ie.first),A.iGM(Ie=A.CRH())&&(be.matSort=Ie.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[A.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(me,be){1&me&&(A.TgZ(0,"div",0),A.TgZ(1,"perun-web-apps-table-wrapper",1),A.NdJ("exportData",function(pe){return be.exportData(pe)}),A.TgZ(2,"table",2),A.ynx(3,3),A.YNc(4,J,1,0,"th",4),A.YNc(5,Me,5,10,"td",5),A.BQk(),A.ynx(6,6),A.YNc(7,oe,4,5,"th",7),A.YNc(8,Re,2,1,"td",8),A.BQk(),A.ynx(9,9),A.YNc(10,T,4,5,"th",10),A.YNc(11,j,3,3,"td",8),A.BQk(),A.ynx(12,11),A.YNc(13,Y,4,5,"th",7),A.YNc(14,q,2,1,"td",8),A.BQk(),A.ynx(15,12),A.YNc(16,te,4,5,"th",7),A.YNc(17,ue,2,1,"td",8),A.BQk(),A.ynx(18,13),A.YNc(19,de,4,5,"th",7),A.YNc(20,Le,3,4,"td",14),A.BQk(),A.YNc(21,Ue,1,0,"tr",15),A.YNc(22,le,1,12,"tr",16),A.qZA(),A.qZA(),A.qZA(),A.YNc(23,je,3,3,"perun-web-apps-alert",17),A.YNc(24,ye,4,5,"perun-web-apps-alert",17)),2&me&&(A.Q6J("hidden",0===be.userExtSources.length||0===be.dataSource.filteredData.length),A.xp6(1),A.Q6J("tableId",be.tableId)("dataLength",be.dataSource.filteredData.length)("pageSizeOptions",be.pageSizeOptions),A.xp6(1),A.Q6J("dataSource",be.dataSource),A.xp6(19),A.Q6J("matHeaderRowDef",be.displayedColumns),A.xp6(1),A.Q6J("matRowDefColumns",be.displayedColumns),A.xp6(1),A.Q6J("ngIf",0===be.dataSource.filteredData.length&&0!==be.userExtSources.length),A.xp6(1),A.Q6J("ngIf",0===be.userExtSources.length))},directives:[C.l,_.BZ,b.YE,_.w1,_.fO,_.ge,_.Dz,_.ev,I.gM,P.oG,b.nU,_.as,_.XQ,_.nj,_.Gk,m.YH,E.rH,L.O5,O.w],pipes:[G.X$,ne.a,ge,L.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),W})()},74250:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.disableAutoSelect=!1,this.userSelected=new e.vpe,this.userFullNameFunction=b.bD}ngOnInit(){this.users=this.users.sort(b.fx)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-user-search-select"]],inputs:{users:"users",disableAutoSelect:"disableAutoSelect"},outputs:{userSelected:"userSelected"},decls:4,vars:13,consts:[[3,"entities","disableAutoSelect","searchFunction","mainTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.userSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entities",I.users)("disableAutoSelect",I.disableAutoSelect)("searchFunction",I.userFullNameFunction)("mainTextFunction",I.userFullNameFunction)("selectPlaceholder",e.lcZ(1,7,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.SELECT_USER"))("findPlaceholder",e.lcZ(2,9,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.FIND_USER"))("noEntriesText",e.lcZ(3,11,"SHARED_LIB.PERUN.COMPONENTS.USER_SEARCH_SELECT.NO_USER_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},88561:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>Ve});var e=p(20449),b=p(9244),_=p(84847),w=p(36908),g=p(36787),A=p(22868),E=p(5e3),C=p(10036),I=p(18750),P=p(69808),m=p(20773),L=p(32075),O=p(77446),G=p(25245),ne=p(29772),ge=p(50301),J=p(98380),Me=p(51062),oe=p(31359),Re=p(9954),T=p(16119),j=p(7598);function Y(X,z){1&X&&(E.TgZ(0,"div",20),E._UZ(1,"mat-spinner",21),E.qZA())}function q(X,z){if(1&X){const Q=E.EpF();E.TgZ(0,"mat-checkbox",24),E.NdJ("change",function(H){E.CHM(Q);const V=E.oxw(2);return H?V.masterToggle():null}),E.qZA()}if(2&X){const Q=E.oxw(2);E.Q6J("aria-label",Q.checkboxLabel())("checked",Q.selection.hasValue()&&Q.isAllSelected())("indeterminate",Q.selection.hasValue()&&!Q.isAllSelected())}}function te(X,z){if(1&X&&(E.TgZ(0,"th",22),E.YNc(1,q,1,3,"mat-checkbox",23),E.qZA()),2&X){const Q=E.oxw();E.xp6(1),E.Q6J("ngIf",Q.selection.isMultipleSelection())}}function ue(X,z){if(1&X){const Q=E.EpF();E.TgZ(0,"td",25),E.TgZ(1,"mat-checkbox",26),E.NdJ("change",function(H){const xe=E.CHM(Q).$implicit,Qe=E.oxw();return H?Qe.selection.toggle(xe):null})("click",function(H){return H.stopPropagation()}),E.qZA(),E.qZA()}if(2&X){const Q=z.$implicit,D=E.oxw();E.xp6(1),E.Q6J("aria-label",D.checkboxLabel(Q))("checked",D.selection.isSelected(Q))}}function de(X,z){1&X&&E._UZ(0,"th",27)}function Le(X,z){1&X&&(E.TgZ(0,"mat-icon",31),E.ALo(1,"translate"),E._uU(2," account_circle "),E.qZA()),2&X&&E.s9C("matTooltip",E.lcZ(1,1,"MANAGERS_LIST.PERSON"))}function Ue(X,z){if(1&X&&(E._UZ(0,"mat-icon",32),E.ALo(1,"translate")),2&X){const Q=E.oxw(2);E.s9C("matTooltip",E.lcZ(1,2,"MANAGERS_LIST.SERVICE")),E.Q6J("svgIcon",Q.svgIcon)}}function ze(X,z){if(1&X&&(E.TgZ(0,"td",28),E.YNc(1,Le,3,3,"mat-icon",29),E.YNc(2,Ue,2,4,"mat-icon",30),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Q6J("ngIf",!Q.serviceUser),E.xp6(1),E.Q6J("ngIf",Q.serviceUser)}}function le(X,z){1&X&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.ID")," "))}function je(X,z){if(1&X&&(E.TgZ(0,"td",28),E._uU(1),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.hij(" ",Q.id," ")}}function ye(X,z){1&X&&(E.TgZ(0,"th",33),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.hij(" ",E.lcZ(2,1,"MANAGERS_LIST.NAME")," "))}function Be(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userFullName"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function W(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.ORGANIZATION")))}function R(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userVo"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function me(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.EMAIL")))}function be(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userEmail"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function Ie(X,z){1&X&&(E.TgZ(0,"th",27),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.xp6(1),E.Oqu(E.lcZ(2,1,"MANAGERS_LIST.LOGINS")))}function pe(X,z){if(1&X&&(E.TgZ(0,"td",34),E._uU(1),E.ALo(2,"userLogins"),E.qZA()),2&X){const Q=z.$implicit;E.xp6(1),E.Oqu(E.lcZ(2,1,Q))}}function Se(X,z){1&X&&E._UZ(0,"tr",35)}const Xe=function(X){return["/admin/users",X]};function Je(X,z){if(1&X&&E._UZ(0,"tr",36),2&X){const Q=z.$implicit,D=E.oxw();E.ekj("cursor-pointer",!D.disableRouting),E.Q6J("perunWebAppsForceRouterLink",D.disableRouting?null:E.VKq(4,Xe,Q.id))("perunWebAppsMiddleClickRouterLink",D.disableRouting?null:E.VKq(6,Xe,Q.id))}}function nt(X,z){1&X&&(E.TgZ(0,"perun-web-apps-alert",37),E._uU(1),E.ALo(2,"translate"),E.qZA()),2&X&&(E.Q6J("alert_type","warn"),E.xp6(1),E.hij(" ",E.lcZ(2,2,"SHARED_LIB.UI.ALERTS.NO_USERS"),"\n"))}let Ve=(()=>{class X{constructor(Q,D,H,V){this.authResolver=Q,this.tableCheckbox=D,this.tableConfigService=H,this.dynamicPaginatingService=V,this.selection=new e.Ov(!0,[]),this.displayedColumns=["select","user","id","name","email","logins","organization"],this.disableRouting=!1,this.searchString="",this.attrNames=[],this.svgIcon="perun-service-identity-black",this.pageSizeOptions=b.f7}static getExportDataForColumn(Q,D){switch(D){case"id":return Q.id.toString();case"user":return Q.serviceUser?"service-user":"user";case"name":return Q?(0,b.bD)(Q):"";case"organization":return(0,b.OV)(Q);case"email":return(0,b.kN)(Q);case"logins":return(0,b.lt)(Q);default:return""}}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.child.paginator.pageIndex=0),(0,g.T)(this.sort.sortChange,this.child.paginator.page).pipe((0,A.b)(()=>this.loadUsersPage())).subscribe()}ngOnInit(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(Q=>"id"!==Q)),this.dataSource=new w.Hy(this.dynamicPaginatingService,this.authResolver),this.dataSource.loadUsers(this.attrNames,this.tableConfigService.getTablePageSize(this.tableId),0,"ASCENDING","NAME",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}ngOnChanges(){this.dataSource&&(this.child.paginator.pageIndex=0,this.loadUsersPage())}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.getData().forEach(Q=>this.selection.select(Q))}isAllSelected(){return this.selection.selected.length===this.dataSource.getData().length}checkboxLabel(Q){return Q?`${this.selection.isSelected(Q)?"deselect":"select"} row ${Q.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}loadUsersPage(){this.dataSource.loadUsers(this.attrNames,this.child.paginator.pageSize,this.child.paginator.pageIndex,"asc"===this.sort.direction?"ASCENDING":"DESCENDING","name"===this.sort.active?"NAME":"ID",this.searchString,this.withoutVo,this.facilityId,this.voId,this.resourceId,this.serviceId,this.onlyAllowed)}exportData(Q){(0,b.O6)((0,b.Xn)(this.dataSource.getData(),this.displayedColumns,X.getExportDataForColumn),Q)}}return X.\u0275fac=function(Q){return new(Q||X)(E.Y36(w.x4),E.Y36(w.UA),E.Y36(C.dB),E.Y36(w.ly))},X.\u0275cmp=E.Xpm({type:X,selectors:[["perun-web-apps-users-dynamic-list"]],viewQuery:function(Q,D){if(1&Q&&(E.Gf(b.l9,7),E.Gf(_.YE,5)),2&Q){let H;E.iGM(H=E.CRH())&&(D.child=H.first),E.iGM(H=E.CRH())&&(D.sort=H.first)}},inputs:{selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",disableRouting:"disableRouting",searchString:"searchString",attrNames:"attrNames",withoutVo:"withoutVo",updateTable:"updateTable",facilityId:"facilityId",voId:"voId",resourceId:"resourceId",serviceId:"serviceId",onlyAllowed:"onlyAllowed"},features:[E.TTD],decls:31,vars:15,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["class","spinner-container",4,"ngIf"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","user"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","logins"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"spinner-container"],[1,"ml-auto","mr-auto"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change",4,"ngIf"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["class","align-bottom",3,"matTooltip",4,"ngIf"],["class","align-bottom",3,"matTooltip","svgIcon",4,"ngIf"],[1,"align-bottom",3,"matTooltip"],[1,"align-bottom",3,"matTooltip","svgIcon"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsForceRouterLink","perunWebAppsMiddleClickRouterLink"],[3,"alert_type"]],template:function(Q,D){1&Q&&(E.TgZ(0,"div",0),E.ALo(1,"async"),E.TgZ(2,"perun-web-apps-table-wrapper",1),E.NdJ("exportData",function(V){return D.exportData(V)}),E.YNc(3,Y,2,0,"div",2),E.ALo(4,"async"),E.TgZ(5,"table",3),E.ynx(6,4),E.YNc(7,te,2,1,"th",5),E.YNc(8,ue,2,2,"td",6),E.BQk(),E.ynx(9,7),E.YNc(10,de,1,0,"th",8),E.YNc(11,ze,3,2,"td",9),E.BQk(),E.ynx(12,10),E.YNc(13,le,3,3,"th",11),E.YNc(14,je,2,1,"td",9),E.BQk(),E.ynx(15,12),E.YNc(16,ye,3,3,"th",11),E.YNc(17,Be,3,3,"td",13),E.BQk(),E.ynx(18,14),E.YNc(19,W,3,3,"th",8),E.YNc(20,R,3,3,"td",13),E.BQk(),E.ynx(21,15),E.YNc(22,me,3,3,"th",8),E.YNc(23,be,3,3,"td",13),E.BQk(),E.ynx(24,16),E.YNc(25,Ie,3,3,"th",8),E.YNc(26,pe,3,3,"td",13),E.BQk(),E.YNc(27,Se,1,0,"tr",17),E.YNc(28,Je,1,8,"tr",18),E.qZA(),E.qZA(),E.qZA(),E.YNc(29,nt,3,4,"perun-web-apps-alert",19),E.ALo(30,"async")),2&Q&&(E.Q6J("hidden",0===D.dataSource.allObjectCount&&!1===E.lcZ(1,9,D.dataSource.loading$)),E.xp6(2),E.Q6J("tableId",D.tableId)("dataLength",D.dataSource.allObjectCount)("pageSizeOptions",D.pageSizeOptions),E.xp6(1),E.Q6J("ngIf",E.lcZ(4,11,D.dataSource.loading$)),E.xp6(2),E.Q6J("dataSource",D.dataSource),E.xp6(22),E.Q6J("matHeaderRowDef",D.displayedColumns),E.xp6(1),E.Q6J("matRowDefColumns",D.displayedColumns),E.xp6(1),E.Q6J("ngIf",0===D.dataSource.allObjectCount&&!1===E.lcZ(30,13,D.dataSource.loading$)))},directives:[I.l,P.O5,m.$g,L.BZ,_.YE,L.w1,L.fO,L.ge,O.oG,L.Dz,L.ev,G.Hw,ne.gM,_.nU,L.as,L.XQ,L.nj,L.Gk,ge.Kd,ge.YH,J.w],pipes:[P.Ov,Me.X$,oe.d,Re.Z,T.S,j.g],styles:[".italic_font[_ngcontent-%COMP%]{font-style:italic}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),X})()},62707:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>g});var e=p(5e3),b=p(9244),_=p(42377),w=p(51062);let g=(()=>{class A{constructor(){this.voSelected=new e.vpe,this.nameFunction=C=>C.name,this.shortNameFunction=C=>C.shortName,this.searchFunction=C=>C.name+C.shortName+String(C.id)}ngOnChanges(){this.vos.sort(b.aC),this.vo||(this.vo=this.vos[0])}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["perun-web-apps-vo-search-select"]],inputs:{vo:"vo",vos:"vos"},outputs:{voSelected:"voSelected"},features:[e.TTD],decls:4,vars:14,consts:[[3,"entity","entities","searchFunction","mainTextFunction","secondaryTextFunction","selectPlaceholder","findPlaceholder","noEntriesText","entitySelected"]],template:function(C,I){1&C&&(e.TgZ(0,"perun-web-apps-entity-search-select",0),e.NdJ("entitySelected",function(m){return I.voSelected.emit(m)}),e.ALo(1,"translate"),e.ALo(2,"translate"),e.ALo(3,"translate"),e.qZA()),2&C&&e.Q6J("entity",I.vo)("entities",I.vos)("searchFunction",I.searchFunction)("mainTextFunction",I.nameFunction)("secondaryTextFunction",I.shortNameFunction)("selectPlaceholder",e.lcZ(1,8,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.SELECT_VO"))("findPlaceholder",e.lcZ(2,10,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.FIND_VO"))("noEntriesText",e.lcZ(3,12,"SHARED_LIB.PERUN.COMPONENTS.VO_SEARCH_SELECT.NO_VO_FOUND"))},directives:[_.i],pipes:[w.X$],styles:[""]}),A})()},87831:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>je});var e=p(84847),b=p(32075),_=p(9244),w=p(36908),g=p(5e3),A=p(18750),E=p(77446),C=p(10441),I=p(69808),P=p(25245),m=p(50301),L=p(98380),O=p(51062);function G(ye,Be){1&ye&&g._UZ(0,"th",19)}function ne(ye,Be){if(1&ye){const W=g.EpF();g.TgZ(0,"td",20),g.TgZ(1,"mat-checkbox",21),g.NdJ("change",function(me){const Ie=g.CHM(W).$implicit,pe=g.oxw();return me?pe.selection.toggle(Ie):null})("click",function(me){return me.stopPropagation()}),g.qZA(),g.qZA()}if(2&ye){const W=Be.$implicit,R=g.oxw();g.xp6(1),g.Q6J("aria-label",R.checkboxLabel(W))("checked",R.selection.isSelected(W))}}function ge(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.ID")," "))}function J(ye,Be){if(1&ye&&(g.TgZ(0,"td",23),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=W.id)&&void 0!==R?R:W.vo.id)}}function Me(ye,Be){1&ye&&g._UZ(0,"th",24)}function oe(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._UZ(1,"perun-web-apps-recently-viewed-icon",26),g.qZA()),2&ye){const W=Be.$implicit,R=g.oxw();let me;g.xp6(1),g.Q6J("recentIds",R.recentIds)("id",null!==(me=W.id)&&void 0!==me?me:W.vo.id)}}function Re(ye,Be){1&ye&&g._UZ(0,"th",24)}function T(ye,Be){1&ye&&g._UZ(0,"mat-icon",28),2&ye&&g.Q6J("svgIcon","perun-hierarchical-vo")}function j(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g.YNc(1,T,1,1,"mat-icon",27),g.qZA()),2&ye){const W=Be.$implicit;g.xp6(1),g.Q6J("ngIf",0!==(null==W||null==W.memberVos?null:W.memberVos.length))}}function Y(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.SHORTNAME")," "))}function q(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R,me;g.uIk("data-cy",null!==(R=W.shortName)&&void 0!==R?R:W.vo.shortName),g.xp6(1),g.hij(" ",null!==(me=W.shortName)&&void 0!==me?me:W.vo.shortName," ")}}function te(ye,Be){1&ye&&(g.TgZ(0,"th",22),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.VOS_LIST.NAME")," "))}function ue(ye,Be){if(1&ye&&(g.TgZ(0,"td",25),g._uU(1),g.qZA()),2&ye){const W=Be.$implicit;let R;g.xp6(1),g.Oqu(null!==(R=W.name)&&void 0!==R?R:W.vo.name)}}function de(ye,Be){1&ye&&g._UZ(0,"tr",29)}const Le=function(ye){return["/organizations",ye]};function Ue(ye,Be){if(1&ye&&g._UZ(0,"tr",30),2&ye){const W=Be.$implicit,R=g.oxw();let me,be;g.ekj("disable-outline",R.disableRouting),g.Q6J("perunWebAppsMiddleClickRouterLink",R.disableRouting?null:g.VKq(4,Le,null!==(me=W.id)&&void 0!==me?me:W.vo.id))("perunWebAppsForceRouterLink",R.disableRouting?null:g.VKq(6,Le,null!==(be=W.id)&&void 0!==be?be:W.vo.id))}}function ze(ye,Be){1&ye&&(g.TgZ(0,"perun-web-apps-alert",31),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function le(ye,Be){1&ye&&(g.TgZ(0,"perun-web-apps-alert",32),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&ye&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_ORGANIZATIONS"),"\n"))}let je=(()=>{class ye{constructor(W){this.authResolver=W,this.vos=[],this.displayedColumns=[],this.disableRouting=!1,this.pageSizeOptions=_.f7,this.getDataForColumnFun=(R,me)=>ye.getDataForColumn(R,me,this.recentIds)}set matSort(W){this.sort=W}static getDataForColumn(W,R,me){switch(ye.isEnrichedVo(W)&&(W=W.vo),R){case"id":return W.id.toString();case"shortName":return W.shortName;case"name":return W.name;case"recent":return me&&me.includes(W.id)?"#".repeat(me.indexOf(W.id)):W.name;default:return W[R]}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(W=>"id"!==W)),this.setDataSource()}exportData(W){(0,_.O6)((0,_.Xn)(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),W)}setDataSource(){this.dataSource||(this.dataSource=new b.by,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(W,R)=>(0,_.Sd)(W,R,this.displayedColumns,this.getDataForColumnFun),this.dataSource.sortData=(W,R)=>(0,_.pR)(W,R,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.vos}checkboxLabel(W){return`${this.selection.isSelected(W)?"deselect":"select"} row ${W.id+1}`}}return ye.isEnrichedVo=Be=>void 0!==Be.vo,ye.\u0275fac=function(W){return new(W||ye)(g.Y36(w.x4))},ye.\u0275cmp=g.Xpm({type:ye,selectors:[["perun-web-apps-vos-list"]],viewQuery:function(W,R){if(1&W&&(g.Gf(_.l9,7),g.Gf(e.YE,7)),2&W){let me;g.iGM(me=g.CRH())&&(R.child=me.first),g.iGM(me=g.CRH())&&(R.matSort=me.first)}},inputs:{vos:"vos",recentIds:"recentIds",filterValue:"filterValue",selection:"selection",displayedColumns:"displayedColumns",disableRouting:"disableRouting",pageSizeOptions:"pageSizeOptions",tableId:"tableId"},features:[g.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","hierarchy"],["matColumnDef","shortName"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"disable-outline","perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn","data-cy","no-filter-result",4,"ngIf"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","perunWebAppsForceRouterLink"],["alert_type","warn","data-cy","no-filter-result"],["alert_type","warn"]],template:function(W,R){1&W&&(g.TgZ(0,"div",0),g.TgZ(1,"perun-web-apps-table-wrapper",1),g.NdJ("exportData",function(be){return R.exportData(be)}),g.TgZ(2,"table",2),g.ynx(3,3),g.YNc(4,G,1,0,"th",4),g.YNc(5,ne,2,2,"td",5),g.BQk(),g.ynx(6,6),g.YNc(7,ge,3,3,"th",7),g.YNc(8,J,2,1,"td",8),g.BQk(),g.ynx(9,9),g.YNc(10,Me,1,0,"th",10),g.YNc(11,oe,2,2,"td",11),g.BQk(),g.ynx(12,12),g.YNc(13,Re,1,0,"th",10),g.YNc(14,j,2,1,"td",11),g.BQk(),g.ynx(15,13),g.YNc(16,Y,3,3,"th",7),g.YNc(17,q,2,2,"td",11),g.BQk(),g.ynx(18,14),g.YNc(19,te,3,3,"th",7),g.YNc(20,ue,2,1,"td",11),g.BQk(),g.YNc(21,de,1,0,"tr",15),g.YNc(22,Ue,1,8,"tr",16),g.qZA(),g.qZA(),g.qZA(),g.YNc(23,ze,3,3,"perun-web-apps-alert",17),g.YNc(24,le,3,3,"perun-web-apps-alert",18)),2&W&&(g.Q6J("hidden",0===R.dataSource.filteredData.length||0===R.vos.length),g.xp6(1),g.Q6J("dataLength",R.dataSource.filteredData.length)("tableId",R.tableId)("pageSizeOptions",R.pageSizeOptions),g.xp6(1),g.Q6J("dataSource",R.dataSource),g.xp6(19),g.Q6J("matHeaderRowDef",R.displayedColumns),g.xp6(1),g.Q6J("matRowDefColumns",R.displayedColumns),g.xp6(1),g.Q6J("ngIf",0===R.dataSource.filteredData.length&&0!==R.vos.length),g.xp6(1),g.Q6J("ngIf",0===R.vos.length))},directives:[A.l,b.BZ,e.YE,b.w1,b.fO,b.ge,b.Dz,b.ev,E.oG,e.nU,C.W,I.O5,P.Hw,b.as,b.XQ,b.nj,b.Gk,m.YH,m.Kd,L.w],pipes:[O.X$],styles:[".card[_ngcontent-%COMP%]{border-radius:0!important}.static-column-size[_ngcontent-%COMP%]{width:80px}.disable-outline[_ngcontent-%COMP%]{outline:none!important}tr[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),ye})()},16074:($e,_e,p)=>{"use strict";p.d(_e,{GI:()=>kt,Wr:()=>Ut,r2:()=>lt,gr:()=>Ge,u3:()=>ti,Qu:()=>Qt,pf:()=>ye,xF:()=>Ji,hd:()=>en,kZ:()=>Ri,wA:()=>Ht,rd:()=>Je,Eg:()=>Xe,Bp:()=>H,qD:()=>ot,jd:()=>St,FM:()=>ae,jD:()=>j,Lc:()=>n,mk:()=>c,Ts:()=>Rt});var e=p(69808),b=p(51062),_=p(32075),w=p(48966),g=p(47423),A=p(67322),E=p(93075),C=p(98833),I=p(20773),P=p(79814),m=p(86856),L=p(69287),O=p(25245),G=p(19516),ne=p(63189),ge=p(11735),J=p(90149),Me=p(74107),oe=p(28499),Re=p(6397),T=p(5e3);let j=(()=>{class Ze{}return Ze.\u0275fac=function(qe){return new(qe||Ze)},Ze.\u0275mod=T.oAB({type:Ze}),Ze.\u0275inj=T.cJS({imports:[[e.ez,b.aw,_.p0,w.Is,g.ot,A.lN,E.u5,C.c,I.Cq,P.Fk,m.FA,E.UX,L.Iq,O.Ps,G.d4,ne.r,ge.Bz,J.dp,Me.LD,oe.E3,Re.C]]}),Ze})();var Y=p(32105),q=p(36908),te=p(90508),ue=p(20551);function de(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",6)}function Le(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-option",17),T._uU(1),T.ALo(2,"memberStatus"),T.qZA()),2&Ze){const qe=Ot.$implicit;T.Q6J("value",qe),T.xp6(1),T.Oqu(T.lcZ(2,2,qe))}}function Ue(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-form-field",14),T.TgZ(1,"mat-label"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-select",15),T.NdJ("selectionChange",function(jt){return T.CHM(qe),T.oxw(3).changeStatus(jt)}),T.YNc(5,Le,3,4,"mat-option",16),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw(3);T.xp6(2),T.Oqu(T.lcZ(3,2,"DIALOGS.CHANGE_STATUS.SELECT_STATUS")),T.xp6(3),T.Q6J("ngForOf",qe.allStatuses)}}function ze(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.YNc(3,Ue,6,4,"mat-form-field",13),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," "),T.xp6(2),T.Q6J("ngIf",!qe.loading)}}function le(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"memberStatus"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.AsE(" ",T.lcZ(2,2,"DIALOGS.CHANGE_STATUS.NEW_STATUS")," ",T.lcZ(3,4,qe.allStatuses[0])," ")}}function je(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",7),T.TgZ(1,"div",8),T._uU(2),T.ALo(3,"translate"),T.ALo(4,"memberStatus"),T.qZA(),T.TgZ(5,"div",9),T._uU(6),T.qZA(),T.YNc(7,ze,4,4,"div",10),T.YNc(8,le,4,6,"div",10),T.TgZ(9,"div",11),T._UZ(10,"i",12),T.qZA(),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.AsE(" ",T.lcZ(3,6,"DIALOGS.CHANGE_STATUS.CURRENT_STATUS")," ",T.lcZ(4,8,qe.actualStatus)," "),T.xp6(4),T.Oqu(qe.description),T.xp6(1),T.Q6J("ngIf",qe.allStatuses.length>1),T.xp6(1),T.Q6J("ngIf",1===qe.allStatuses.length),T.xp6(2),T.Q6J("innerHTML",qe.changeMessage,T.oJD)}}let ye=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.memberManager=jt,this.groupsManager=ci,this.notificatorService=vi,this.translate=Ui,this.loading=!1,this.allStatuses=["VALID","INVALID","EXPIRED","DISABLED"]}ngOnInit(){switch(this.data.groupId?(this.theme="group-theme",this.actualStatus=this.data.member.groupStatus):(this.theme="vo-theme",this.actualStatus=this.data.member.status),this.changeStatusButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS"),this.changeStatusWithExpButton=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_STATUS_WITH_EXPIRATION"),this.submitButtonText=this.changeStatusButton,this.data.groupId?("VALID"===this.actualStatus?(this.allStatuses=["EXPIRED"],this.selectedStatus="EXPIRED"):(this.allStatuses=["VALID"],this.selectedStatus="VALID"),this.submitButtonText=this.changeStatusWithExpButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)):this.allStatuses="INVALID"===this.actualStatus?["VALID","EXPIRED"]:this.allStatuses.filter(qe=>qe!==this.actualStatus),this.actualStatus){case"VALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.VALID_DESCRIPTION");break;case"INVALID":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.INVALID_DESCRIPTION");break;case"EXPIRED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.EXPIRED_DESCRIPTION");break;case"DISABLED":this.description=this.translate.instant("DIALOGS.CHANGE_STATUS.DISABLED_DESCRIPTION");break;default:this.description=""}}changeStatus(qe){this.selectedStatus=qe.value,this.submitButtonText=("VALID"===this.actualStatus&&"EXPIRED"===this.selectedStatus||"VALID"===this.actualStatus&&"DISABLED"===this.selectedStatus||"VALID"===this.selectedStatus)&&!this.data.disableChangeExpiration?this.changeStatusWithExpButton:this.changeStatusButton,this.changeStatusMessage(this.actualStatus,this.selectedStatus)}cancel(){this.dialogRef.close()}submit(){this.loading=!0,this.data.groupId?this.groupsManager.setGroupsMemberStatus(this.data.member.id,this.data.groupId,this.selectedStatus).subscribe(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1):this.memberManager.setStatus(this.data.member.id,this.selectedStatus).subscribe(qe=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(Tt=>{this.notificatorService.showSuccess(Tt),this.dialogRef.close(qe)})},()=>this.loading=!1)}changeStatusMessage(qe,Tt){if("VALID"===qe)switch(Tt){case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_VALID_TO_DISABLED");break;default:this.changeMessage=""}else switch(Tt){case"VALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_VALID");break;case"INVALID":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_INVALID");break;case"EXPIRED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_EXPIRED");break;case"DISABLED":this.changeMessage=this.translate.instant("DIALOGS.CHANGE_STATUS.CHANGE_NO_VALID_TO_DISABLED");break;default:this.changeMessage=""}}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(q.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-member-status-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"font-weight-bold","pb-1"],[1,"text-muted","pb-3"],["class","font-weight-bold pb-1",4,"ngIf"],[1,"text-muted","new-line"],[3,"innerHTML"],["class","mr-2 mt-2",4,"ngIf"],[1,"mr-2","mt-2"],[3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,de,1,0,"mat-spinner",1),T.YNc(5,je,11,10,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.CHANGE_STATUS.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"DIALOGS.CHANGE_STATUS.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||!Tt.selectedStatus),T.xp6(1),T.hij(" ",Tt.submitButtonText," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,A.hX,Me.gD,e.sg,te.ey,w.H8,g.lW],pipes:[b.X$,ue.l],styles:[".new-line[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),Ze})();function Be(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_FACILITY")," "))}function W(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_RESOURCE")," "))}function R(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_VO")," "))}function me(Ze,Ot){1&Ze&&(T.TgZ(0,"h1",7),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.EDIT_GROUP")," "))}function be(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function Ie(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field"),T._UZ(1,"input",13),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SHORT_NAME"),":"),T.Q6J("value",qe.shortName)}}function pe(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-form-field",14),T._UZ(1,"textarea",15),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.xp6(1),T.MGl("placeholder","",T.lcZ(2,2,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.DESCRIPTION"),":"),T.Q6J("formControl",qe.descriptionCtrl)}}function Se(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.YNc(1,Ie,3,4,"mat-form-field",10),T.TgZ(2,"mat-form-field"),T._UZ(3,"input",11),T.ALo(4,"translate"),T.TgZ(5,"mat-error"),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.YNc(8,pe,3,4,"mat-form-field",12),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(1),T.Q6J("ngIf",2===qe.dialogType),T.xp6(2),T.MGl("placeholder","",T.lcZ(4,5,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.NAME"),":"),T.Q6J("formControl",qe.nameCtrl),T.xp6(3),T.hij(" ",qe.invalidNameMessage.length?qe.invalidNameMessage:T.lcZ(7,7,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FILL_NAME")," "),T.xp6(2),T.Q6J("ngIf",2!==qe.dialogType)}}var Xe=(()=>{return(Ze=Xe||(Xe={}))[Ze.FACILITY=0]="FACILITY",Ze[Ze.RESOURCE=1]="RESOURCE",Ze[Ze.VO=2]="VO",Ze[Ze.GROUP=3]="GROUP",Xe;var Ze})();let Je=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li,hn,cr){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translateService=ci,this.facilitiesManager=vi,this.resourcesManager=Ui,this.groupsManager=Li,this.vosManager=hn,this.store=cr,this.invalidNameMessage=this.data.dialogType===Xe.GROUP?this.store.get("group_name_error_message"):"",this.loading=!1,this.secondaryRegex=this.data.dialogType===Xe.GROUP?this.store.get("group_name_secondary_regex"):""}ngOnInit(){switch(this.theme=this.data.theme,this.dialogType=this.data.dialogType,this.dialogType){case Xe.FACILITY:this.nameCtrl=new E.NI(this.data.facility.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.facility.description);break;case Xe.RESOURCE:this.nameCtrl=new E.NI(this.data.resource.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*")]),this.descriptionCtrl=new E.NI(this.data.resource.description);break;case Xe.GROUP:{const qe=this.data.group.name.split(":");this.nameCtrl=new E.NI(qe[qe.length-1],[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.pattern(this.secondaryRegex),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI(this.data.group.description);break}case Xe.VO:this.shortName=this.data.vo.shortName,this.nameCtrl=new E.NI(this.data.vo.name,[E.kI.required,E.kI.pattern(".*[\\S]+.*"),E.kI.maxLength(129)]),this.descriptionCtrl=new E.NI}}cancel(){this.dialogRef.close(!1)}submit(){switch(this.loading=!0,this.dialogType){case Xe.FACILITY:this.editFacility();break;case Xe.RESOURCE:this.editResource();break;case Xe.GROUP:this.editGroup();break;case Xe.VO:this.editVo()}}editResource(){this.data.resource.name=this.nameCtrl.value,this.data.resource.description=this.descriptionCtrl.value,this.resourcesManager.updateResource({resource:this.data.resource}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.RESOURCE_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editFacility(){this.data.facility.name=this.nameCtrl.value,this.data.facility.description=this.descriptionCtrl.value,this.facilitiesManager.updateFacility({facility:this.data.facility}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.FACILITY_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}editGroup(){this.groupsManager.getGroupById(this.data.group.id).subscribe(qe=>{const Tt=qe;Tt.name=this.nameCtrl.value,Tt.description=this.descriptionCtrl.value,this.groupsManager.updateGroup({group:Tt}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.GROUP_SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.dialogRef.close(!0)})},()=>this.loading=!1)},()=>this.loading=!1)}editVo(){this.data.vo.name=this.nameCtrl.value,this.vosManager.updateVo({vo:this.data.vo}).subscribe(()=>{this.translateService.get("DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.VO_SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})},()=>this.loading=!1)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(b.sK),T.Y36(Y.IQ),T.Y36(Y.xk),T.Y36(Y.ff),T.Y36(Y.YF),T.Y36(q.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-edit-facility-resource-group-vo-dialog"]],decls:15,vars:16,consts:[["mat-dialog-title","",4,"ngIf"],["mat-dialog-content",""],["class","mr-auto ml-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title",""],[1,"mr-auto","ml-auto"],["mat-dialog-content","",1,"dialog-container"],[4,"ngIf"],["matInput","","required","",3,"formControl","placeholder"],["class","mt-3",4,"ngIf"],["disabled","","matInput","","required","",3,"value","placeholder"],[1,"mt-3"],["mat-autosize","","matInput","",1,"overflow-hidden",3,"formControl","placeholder"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.YNc(1,Be,3,3,"h1",0),T.YNc(2,W,3,3,"h1",0),T.YNc(3,R,3,3,"h1",0),T.YNc(4,me,3,3,"h1",0),T.TgZ(5,"div",1),T.YNc(6,be,1,0,"mat-spinner",2),T.YNc(7,Se,9,9,"div",3),T.qZA(),T.TgZ(8,"div",4),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.cancel()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"button",6),T.NdJ("click",function(){return Tt.submit()}),T._uU(13),T.ALo(14,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",0===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",1===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",2===Tt.dialogType),T.xp6(1),T.Q6J("ngIf",3===Tt.dialogType),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(11,12,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("disabled",Tt.loading||Tt.nameCtrl.invalid||Tt.descriptionCtrl.invalid),T.xp6(1),T.hij(" ",T.lcZ(14,14,"DIALOGS.EDIT_FACILITY_RESOURCE_GROUP_VO.SUBMIT_BUTTON")," "))},directives:[e.O5,w.uh,w.xY,I.$g,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var nt=p(64080),Ve=p(9244);function X(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",8)}function z(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",9),T.TgZ(1,"span"),T._uU(2),T.ALo(3,"translate"),T.TgZ(4,"b"),T._uU(5),T.qZA(),T.qZA(),T._UZ(6,"br"),T.TgZ(7,"span"),T._uU(8),T.ALo(9,"translate"),T.TgZ(10,"b"),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T._UZ(13,"br"),T.TgZ(14,"span"),T._uU(15),T.ALo(16,"translate"),T.TgZ(17,"b"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.qZA(),T._UZ(20,"br"),T.TgZ(21,"span"),T._uU(22),T.ALo(23,"translate"),T.TgZ(24,"b"),T._uU(25),T.ALo(26,"translate"),T.qZA(),T.qZA(),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,8,"DIALOGS.GROUP_SYNC_DETAIL.GROUP_NAME")," "),T.xp6(3),T.Oqu(qe.group.name),T.xp6(3),T.hij(" ",T.lcZ(9,10,"DIALOGS.GROUP_SYNC_DETAIL.SYNCHRONIZATION")," "),T.xp6(3),T.Oqu(T.lcZ(12,12,qe.getSynchronizationType())),T.xp6(4),T.hij(" ",T.lcZ(16,14,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_STATE")," "),T.xp6(3),T.Oqu(T.lcZ(19,16,qe.getLastSyncState())),T.xp6(4),T.hij(" ",T.lcZ(23,18,"DIALOGS.GROUP_SYNC_DETAIL.LAST_SYNC_TIME")," "),T.xp6(3),T.Oqu(T.lcZ(26,20,qe.getLastSyncTime()))}}function Q(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForceStructure()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE_STRUCTURE")," ")}}function D(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",10),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onForce()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"DIALOGS.GROUP_SYNC_DETAIL.FORCE")," ")}}let H=(()=>{class Ze{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.groupService=jt,this.notificator=ci,this.loading=!0}ngOnInit(){this.theme=this.data.theme,this.loadGroup()}onForceStructure(){this.loading=!0,this.groupService.forceGroupStructureSynchronization(this.data.groupId).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.STRUCT_FORCE_SUCCESS"),this.loading=!1},()=>this.loading=!1)}onCancel(){this.dialogRef.close(null)}onForce(){this.loading=!0,this.isBasic()&&this.groupService.forceGroupSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1),this.isStructured()&&this.groupService.forceGroupStructureSynchronization(this.group.id).subscribe(()=>{this.notificator.showSuccess("DIALOGS.GROUP_SYNC_DETAIL.FORCE_SUCCESS"),this.refresh()},()=>this.loading=!1)}getSynchronizationType(){return this.isBasic()?"DIALOGS.GROUP_SYNC_DETAIL.NORMAL_SYNC":this.isStructured()?"DIALOGS.GROUP_SYNC_DETAIL.STRUCT_SYNC":"N/A"}isBasic(){return"BASIC"===this.type}isStructured(){return"STRUCTURED"===this.type}getLastSyncState(){return this.isBasic()?""!==this.lastSyncState?this.lastSyncState:"OK":this.isStructured()?""!==this.lastStructSyncState?this.lastStructSyncState:"OK":"N/A"}getLastSyncTime(){return this.isBasic()?this.lastSyncTime:this.isStructured()?this.lastStructSyncTime:"N/A"}refresh(){this.loadGroup()}loadGroup(){this.loading=!0,this.groupService.getRichGroupByIdWithAttributesByNames(this.data.groupId,[nt.r.GROUP_SYNC_ENABLED,nt.r.GROUP_LAST_SYNC_STATE,nt.r.GROUP_LAST_SYNC_TIMESTAMP,nt.r.GROUP_STRUCTURE_SYNC_ENABLED,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP]).subscribe(qe=>{this.group=qe,this.syncEnabled=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_SYNC_ENABLED).value,this.lastSyncState=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_STATE).value,this.lastSyncTime=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_SYNC_TIMESTAMP).value,this.structSyncEnabled=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_STRUCTURE_SYNC_ENABLED).value,this.lastStructSyncState=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_STATE).value,this.lastStructSyncTime=(0,Ve.IL)(this.group.attributes,nt.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP).value,null!==this.syncEnabled&&"true"===this.syncEnabled&&(this.type="BASIC"),null!==this.structSyncEnabled&&this.structSyncEnabled&&(this.type="STRUCTURED"),this.loading=!1})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.ff),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-group-sync-detail-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-icon-button","",3,"click"],["class","ml-2","mat-flat-button","",3,"disabled","click",4,"ngIf"],["mat-flat-button","",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,X,1,0,"mat-spinner",1),T.YNc(5,z,27,22,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"div",4),T.TgZ(8,"button",5),T.NdJ("click",function(){return Tt.refresh()}),T.TgZ(9,"mat-icon"),T._uU(10,"refresh"),T.qZA(),T.qZA(),T.YNc(11,Q,3,4,"button",6),T.YNc(12,D,3,4,"button",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,"DIALOGS.GROUP_SYNC_DETAIL.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(6),T.Q6J("ngIf",Tt.isStructured()),T.xp6(1),T.Q6J("ngIf",Tt.isBasic()||Tt.isStructured()),T.xp6(2),T.hij(" ",T.lcZ(15,11,"DIALOGS.GROUP_SYNC_DETAIL.CANCEL")," "))},directives:[w.uh,e.O5,I.$g,w.xY,w.H8,g.lW,O.Hw],pipes:[b.X$],styles:[""]}),Ze})();function V(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function xe(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function Qe(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function Te(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",8),T.TgZ(1,"mat-form-field"),T.TgZ(2,"mat-label"),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"input",9,10),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().subject=jt}),T.qZA(),T.YNc(7,xe,3,3,"mat-error",11),T.qZA(),T.TgZ(8,"mat-form-field"),T.TgZ(9,"mat-label"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.TgZ(12,"textarea",12,13),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw().message=jt}),T.ALo(14,"translate"),T._uU(15," "),T.qZA(),T.YNc(16,Qe,3,3,"mat-error",11),T.qZA(),T.qZA()}if(2&Ze){const qe=T.MAs(6),Tt=T.MAs(13),jt=T.oxw();T.xp6(3),T.Oqu(T.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),T.xp6(2),T.Q6J("ngModel",jt.subject),T.xp6(2),T.Q6J("ngIf",qe.invalid),T.xp6(3),T.Oqu(T.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),T.xp6(2),T.s9C("placeholder",T.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),T.Q6J("ngModel",jt.message),T.xp6(4),T.Q6J("ngIf",Tt.invalid)}}let Ae=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.translate=Tt,this.notificator=jt,this.rtMessages=ci,this.data=vi,this.storeService=Ui,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var qe,Tt;(null===(Tt=null===(qe=this.data)||void 0===qe?void 0:qe.error)||void 0===Tt?void 0:Tt.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(qe=>{this.dialogRef.afterClosed().subscribe(()=>{const Tt="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),qe.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(Tt)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const qe=this.storeService.get("config");let Tt=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(Tt=Tt.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),Tt=Tt.concat(this.data.error.message,"\n","Perun instance: ",qe,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const jt=/"password":".+?"/;let ci=JSON.stringify(this.data.error.payload);ci=ci.replace(jt,'"password":"####"'),Tt=Tt.concat("Payload:\n"+ci+"\n\n")}return Tt=Tt.concat("Sent from new Perun Gui, version: ",p(4147).i8),Tt.split("\n").join("\n ")}parseMethod(qe){return qe&&this.methodRegexp.exec(qe)[1]}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(b.sK),T.Y36(q.V6),T.Y36(Y.Hr),T.Y36(w.WI),T.Y36(q.d6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.YNc(3,V,1,0,"mat-spinner",1),T.YNc(4,Te,17,13,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"button",5),T.NdJ("click",function(){return Tt.dialogRef.close()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",6),T.NdJ("click",function(){return Tt.sendBugReport()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),T.xp6(2),T.Q6J("disabled",""===Tt.message||""===Tt.subject||Tt.loading),T.xp6(1),T.hij(" ",T.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,A.hX,C.Nt,E.Fj,E.Q7,E.JJ,E.On,A.TO,w.H8,g.lW],pipes:[b.X$],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),Ze})(),ae=(()=>{class Ze{constructor(qe,Tt,jt){this.dialogRef=qe,this.dialog=Tt,this.data=jt}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const qe=(0,Ve.kZ)();qe.width="550px",qe.data={error:this.data.error},qe.autoFocus=!1,this.dialog.open(Ae,qe)}),this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.uw),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T._uU(3),T.qZA(),T.TgZ(4,"div",2),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onBugReportClick()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T.NdJ("click",function(){return Tt.onCloseClick()}),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.data.title),T.xp6(2),T.hij(" ",Tt.data.description,"\n"),T.xp6(3),T.Q6J("hidden","error"!==Tt.data.type),T.xp6(1),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),T.xp6(3),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var i=p(34447);function o(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",3)}function d(Ze,Ot){1&Ze&&T._UZ(0,"th",15)}function l(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",16),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.hij(" ",qe.userExtSource.extSource.name," ")}}function s(Ze,Ot){1&Ze&&T._UZ(0,"tr",17)}function r(Ze,Ot){1&Ze&&T._UZ(0,"tr",18)}function t(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div"),T.TgZ(1,"div",4),T.TgZ(2,"p"),T._uU(3),T.ALo(4,"translate"),T.ALo(5,"customTranslate"),T.qZA(),T.TgZ(6,"div",5),T._uU(7),T.ALo(8,"translate"),T.ALo(9,"customTranslate"),T.qZA(),T.TgZ(10,"table",6),T.ynx(11,7),T.YNc(12,d,1,0,"th",8),T.YNc(13,l,2,1,"td",9),T.BQk(),T.YNc(14,s,1,0,"tr",10),T.YNc(15,r,1,0,"tr",11),T.qZA(),T.qZA(),T.TgZ(16,"div",12),T.TgZ(17,"button",13),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.TgZ(21,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(22),T.ALo(23,"translate"),T.ALo(24,"customTranslate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,7,T.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),T.xp6(4),T.hij(" ",T.lcZ(8,11,T.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),T.xp6(3),T.Q6J("dataSource",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,15,T.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),T.xp6(4),T.hij(" ",T.lcZ(23,19,T.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let n=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.usersManagerService=jt,this.translate=ci,this.notificator=vi,this.force=!1,this.displayedColumns=["name"],ci.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(Ui=>this.successMessage=Ui)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.Fv),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div"),T.YNc(5,o,1,0,"mat-spinner",1),T.YNc(6,t,25,23,"div",2),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,6,T.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),T.xp6(3),T.Tol(Tt.theme),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ze})();var a=p(74533);let c=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.qZA(),T.TgZ(2,"div",1),T.TgZ(3,"textarea",2),T._uU(4),T.qZA(),T.qZA(),T.TgZ(5,"div",3),T.TgZ(6,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(7),T.ALo(8,"translate"),T.qZA(),T.TgZ(9,"button",5),T._uU(10),T.ALo(11,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(Tt.title),T.xp6(3),T.Oqu(Tt.value),T.xp6(3),T.hij(" ",T.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),T.xp6(2),T.Q6J("cdkCopyToClipboard",Tt.value),T.xp6(1),T.hij(" ",T.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[w.uh,w.xY,a.IC,C.Nt,w.H8,g.lW,L.i3],pipes:[b.X$],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),Ze})();function h(Ze,Ot){1&Ze&&T._UZ(0,"th",12)}function x(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",13),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe.displayName)}}function We(Ze,Ot){1&Ze&&T._UZ(0,"tr",14)}function At(Ze,Ot){1&Ze&&T._UZ(0,"tr",15)}let Ht=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.translate=ci,this.attributesManager=vi,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new _.by(this.data.attributes)}onCancel(){this.dialogRef.close(!1)}onSubmit(){switch(this.data.entity){case"vo":this.attributesManager.setVoAttributes({vo:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"group":"resource"===this.data.secondEntity?this.attributesManager.setGroupResourceAttributes({group:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setGroupAttributes({group:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"user":"facility"===this.data.secondEntity?this.attributesManager.setUserFacilityAttributes({user:this.data.entityId,facility:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess()):this.attributesManager.setUserAttributes({user:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"member":switch(this.data.secondEntity){case"resource":this.attributesManager.setMemberResourceAttributes({member:this.data.entityId,resource:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;case"group":this.attributesManager.setMemberGroupAttributes({member:this.data.entityId,group:this.data.secondEntityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess());break;default:this.attributesManager.setMemberAttributes({member:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()})}break;case"facility":this.attributesManager.setFacilityAttributes({facility:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"host":this.attributesManager.setHostAttributes({host:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"ues":this.attributesManager.setUserExtSourceAttributes({userExtSource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>{this.onSuccess()});break;case"resource":this.attributesManager.setResourceAttributes({resource:this.data.entityId,attributes:this.data.attributes}).subscribe(()=>this.onSuccess())}}onSuccess(){this.translate.get("DIALOGS.EDIT_ATTRIBUTES.SUCCESS").subscribe(qe=>{this.notificator.showSuccess(qe),this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(b.sK),T.Y36(Y.H8))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-edit-attribute-dialog"]],decls:23,vars:18,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"table",3),T.ynx(11,4),T.YNc(12,h,1,0,"th",5),T.YNc(13,x,2,1,"td",6),T.BQk(),T.YNc(14,We,1,0,"tr",7),T.YNc(15,At,1,0,"tr",8),T.qZA(),T.qZA(),T.TgZ(16,"div",9),T.TgZ(17,"button",10),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"button",11),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(21),T.ALo(22,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,"DIALOGS.EDIT_ATTRIBUTES.TITLE")),T.xp6(4),T.hij(" ",T.lcZ(6,10,"DIALOGS.EDIT_ATTRIBUTES.DESCRIPTION")," "),T.xp6(3),T.hij(" ",T.lcZ(9,12,"DIALOGS.EDIT_ATTRIBUTES.ASK")," "),T.xp6(2),T.Q6J("dataSource",Tt.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",Tt.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",Tt.displayedColumns),T.xp6(3),T.hij(" ",T.lcZ(19,14,"DIALOGS.EDIT_ATTRIBUTES.CANCEL")," "),T.xp6(3),T.hij(" ",T.lcZ(22,16,"DIALOGS.EDIT_ATTRIBUTES.SAVE")," "))},directives:[w.uh,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),lt=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"mat-form-field"),T.TgZ(5,"textarea",2),T.NdJ("ngModelChange",function(ci){return Tt.attributeValue=ci}),T.qZA(),T.qZA(),T.qZA(),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.TgZ(10,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),T.xp6(4),T.Q6J("ngModel",Tt.attributeValue),T.xp6(3),T.hij(" ",T.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[w.uh,w.xY,A.KE,a.IC,C.Nt,E.Fj,E.JJ,E.On,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})(),Ut=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h5",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"div"),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"div",2),T._uU(8),T.qZA(),T.qZA(),T.TgZ(9,"div",3),T.TgZ(10,"button",4),T.NdJ("click",function(){return Tt.cancel()}),T._uU(11),T.ALo(12,"translate"),T.qZA(),T.TgZ(13,"button",5),T.NdJ("click",function(){return Tt.submit()}),T._uU(14),T.ALo(15,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),T.xp6(4),T.hij(" ",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),T.xp6(3),T.hij(" ",Tt.data.name," "),T.xp6(3),T.hij(" ",T.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),T.xp6(3),T.hij(" ",T.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[w.uh,w.xY,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var mt=p(98380);function Lt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",9),T._uU(1),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(1),T.Oqu(qe.pendingEmailsMessage)}}function Ee(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,T.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let Ge=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.translate=jt,this.notificator=ci,this.usersManagerService=vi,this.authService=Ui,this.pendingMails=[],jt.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(Li=>this.successMessage=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(Li=>this.pendingEmailsMessageStart=Li),jt.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(Li=>this.pendingEmailsMessageEnd=Li)}ngOnInit(){this.emailControl=new E.NI(null,[E.kI.required,E.kI.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(qe=>{this.pendingMails=qe.filter((jt,ci,vi)=>ci===vi.indexOf(jt));let Tt="";this.pendingMails.forEach(jt=>Tt+=`${jt===this.pendingMails[0]?"":", "}${jt}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+Tt+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const Tt=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",Tt[0]+"//"+Tt[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(b.sK),T.Y36(q.V6),T.Y36(Y.Fv),T.Y36(q.e8))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.ALo(3,"customTranslate"),T.qZA(),T.TgZ(4,"div",1),T.YNc(5,Lt,2,1,"perun-web-apps-alert",2),T.TgZ(6,"mat-form-field",3),T.TgZ(7,"label",3),T._UZ(8,"input",4),T.ALo(9,"translate"),T.ALo(10,"customTranslate"),T.qZA(),T.YNc(11,Ee,4,5,"mat-error",5),T.qZA(),T.qZA(),T.TgZ(12,"div",6),T.TgZ(13,"button",7),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(14),T.ALo(15,"translate"),T.ALo(16,"customTranslate"),T.qZA(),T.TgZ(17,"button",8),T.NdJ("click",function(){return Tt.onSubmit()}),T._uU(18),T.ALo(19,"translate"),T.ALo(20,"customTranslate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,8,T.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),T.xp6(4),T.Q6J("ngIf",Tt.pendingMails.length),T.xp6(3),T.s9C("placeholder",T.lcZ(9,12,T.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),T.Q6J("formControl",Tt.emailControl),T.xp6(3),T.Q6J("ngIf",Tt.emailControl.invalid),T.xp6(3),T.hij(" ",T.lcZ(15,16,T.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),T.xp6(3),T.Q6J("disabled",!Tt.emailControl.valid),T.xp6(1),T.hij(" ",T.lcZ(19,20,T.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[w.uh,w.xY,e.O5,mt.w,A.KE,C.Nt,E.Fj,E.Q7,E.JJ,E.oH,A.TO,w.H8,g.lW],pipes:[b.X$,i.a],styles:[""]}),Ze})();function U(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function k(Ze,Ot){1&Ze&&(T.TgZ(0,"div",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function ie(Ze,Ot){1&Ze&&T._UZ(0,"th",18)}function ce(Ze,Ot){if(1&Ze&&(T.TgZ(0,"td",19),T._uU(1),T.qZA()),2&Ze){const qe=Ot.$implicit;T.xp6(1),T.Oqu(qe)}}function He(Ze,Ot){1&Ze&&T._UZ(0,"tr",20)}function ct(Ze,Ot){1&Ze&&T._UZ(0,"tr",21)}function bt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"perun-web-apps-alert",22),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze){const qe=T.oxw(2);T.Q6J("alert_type","warn"),T.xp6(1),T.hij(" ",T.lcZ(2,2,qe.data.alert)," ")}}function xt(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,k,3,3,"div",9),T.TgZ(5,"table",10),T.ynx(6,11),T.YNc(7,ie,1,0,"th",12),T.YNc(8,ce,2,1,"td",13),T.BQk(),T.YNc(9,He,1,0,"tr",14),T.YNc(10,ct,1,0,"tr",15),T.qZA(),T.YNc(11,bt,3,4,"perun-web-apps-alert",16),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,6,qe.data.description)," "),T.xp6(2),T.Q6J("ngIf",qe.data.showAsk),T.xp6(1),T.Q6J("dataSource",qe.dataSource),T.xp6(4),T.Q6J("matHeaderRowDef",qe.displayedColumns),T.xp6(1),T.Q6J("matRowDefColumns",qe.displayedColumns),T.xp6(1),T.Q6J("ngIf",qe.data.alert)}}function Yt(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",23),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function It(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"button",24),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(1),T.ALo(2,"translate"),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let Rt=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.data=Tt,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,U,1,0,"mat-spinner",1),T.YNc(5,xt,12,8,"div",2),T.TgZ(6,"div",3),T.TgZ(7,"button",4),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.YNc(10,Yt,3,4,"button",5),T.YNc(11,It,3,4,"button",6),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.Oqu(T.lcZ(3,9,Tt.data.title)),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(3),T.hij(" ",T.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),T.xp6(2),T.Q6J("ngIf","remove"===Tt.data.type),T.xp6(1),T.Q6J("ngIf","confirmation"===Tt.data.type))},directives:[w.uh,e.O5,I.$g,w.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Et=p(28258);let Bt=(()=>{class Ze{transform(qe){const Tt=qe.split(":");return Tt[Tt.length-1]}}return Ze.\u0275fac=function(qe){return new(qe||Ze)},Ze.\u0275pipe=T.Yjl({name:"parseGroupName",type:Ze,pure:!0}),Ze})();function Jt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",7)}function ai(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.NO_PATHS")))}function mi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function bi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}const yi=function(Ze){return{"min-width":Ze}};function Wi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-tree-node",16),T.TgZ(1,"li",17),T.TgZ(2,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T._UZ(3,"button",19),T.TgZ(4,"div",20),T.TgZ(5,"span"),T._uU(6),T.ALo(7,"parseGroupName"),T.qZA(),T.YNc(8,mi,3,3,"span",21),T.YNc(9,bi,3,3,"span",21),T.qZA(),T.TgZ(10,"span",22),T._uU(11),T.qZA(),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(2),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(2),T.Q6J("ngStyle",T.VKq(11,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(7,9,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description)}}function gn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.DIRECT")))}function cn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",23),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INCLUDE")))}function Ki(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-nested-tree-node"),T.TgZ(1,"li"),T.TgZ(2,"div",17),T.TgZ(3,"button",24),T.TgZ(4,"mat-icon",25),T._uU(5),T.qZA(),T.qZA(),T.TgZ(6,"div",18),T.NdJ("click",function(){const ci=T.CHM(qe).$implicit;return T.oxw(3).navigate(ci.id,ci.include)}),T.TgZ(7,"div",20),T.TgZ(8,"span"),T._uU(9),T.ALo(10,"parseGroupName"),T.qZA(),T.YNc(11,gn,3,3,"span",21),T.YNc(12,cn,3,3,"span",21),T.qZA(),T.TgZ(13,"span",22),T._uU(14),T.qZA(),T.qZA(),T.qZA(),T.TgZ(15,"ul"),T.GkF(16,26),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=Ot.$implicit,Tt=T.oxw(3);T.xp6(3),T.uIk("aria-label","Toggle "+qe.name),T.xp6(2),T.hij(" ",Tt.treeControl.isExpanded(qe)?"expand_more":"chevron_right"," "),T.xp6(1),T.ekj("cursor-pointer",qe.direct||qe.include)("act-disabled",!qe.direct&&!qe.include),T.xp6(1),T.Q6J("ngStyle",T.VKq(15,yi,Tt.getMinWidth(qe.level))),T.xp6(2),T.Oqu(T.lcZ(10,13,qe.name)),T.xp6(2),T.Q6J("ngIf",qe.direct),T.xp6(1),T.Q6J("ngIf",qe.include),T.xp6(2),T.Oqu(qe.description),T.xp6(1),T.ekj("example-tree-invisible",!Tt.treeControl.isExpanded(qe))}}function Tn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"mat-tree",13),T.YNc(1,Wi,12,13,"mat-tree-node",14),T.YNc(2,Ki,17,17,"mat-nested-tree-node",15),T.qZA()),2&Ze){const qe=T.oxw(2);T.Q6J("dataSource",qe.dataSource)("treeControl",qe.treeControl),T.xp6(2),T.Q6J("matTreeNodeDefWhen",qe.hasChild)}}function rn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",8),T.TgZ(1,"p"),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-form-field",9),T._UZ(5,"input",10),T.ALo(6,"translate"),T.qZA(),T.YNc(7,ai,3,3,"perun-web-apps-alert",11),T.YNc(8,Tn,3,3,"mat-tree",12),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.Oqu(T.lcZ(3,5,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.INFO")),T.xp6(3),T.s9C("placeholder",T.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.FILTER")),T.Q6J("formControl",qe.formControl),T.xp6(2),T.Q6J("ngIf",!qe.dataSource.data.length),T.xp6(1),T.Q6J("ngIf",qe.dataSource.data.length)}}const st=function(Ze){return{name:Ze}};let St=(()=>{class Ze{constructor(qe,Tt,jt){this.dialogRef=qe,this.data=Tt,this.groupsManagerService=jt,this.treeControl=new Et.VY(ci=>ci.children),this.dataSource=new J.WX,this.formControl=new E.NI(""),this.userName="",this.groupTree=[],this.paths=[],this.hasChild=(ci,vi)=>!!vi.children&&vi.children.length>0}ngOnInit(){this.loading=!0,this.groupsManagerService.getIndirectMembershipPaths(this.data.member.id,this.data.groupId).subscribe(qe=>{this.paths=qe,this.createGroupTree(this.paths),this.dataSource.data=this.groupTree,this.loading=!1}),this.formControl.valueChanges.subscribe(qe=>{const Tt=qe.trim().toLowerCase(),jt=this.paths.filter(ci=>ci.filter(vi=>vi.name.includes(Tt)).length);this.createGroupTree(jt),this.dataSource.data=this.groupTree}),this.userName=(0,Ve.bD)(this.data.member.user)}onCancel(){this.dialogRef.close()}navigate(qe,Tt=!1){window.open(`/organizations/${this.data.member.voId}/groups/${qe}${Tt?"/settings/relations":""}`,"_blank")}getMinWidth(qe){return String(400-40*qe)+"px"}recursiveSearch(qe,Tt,jt){for(const vi of qe)if(vi.name===Tt[jt].name)return Tt.length===jt+1?(vi.direct=!0,qe):(vi.children=Tt[++jt].name.includes(Tt[jt-1].name)?this.recursiveSearch(vi.children,Tt,jt):[{name:Tt[jt].name,id:Tt[jt-1].id,description:Tt[jt].description,direct:!1,include:!0,level:jt,children:[]}].concat(vi.children),qe);return qe.push({name:Tt[jt].name,id:Tt[jt].id,description:Tt[jt].description,direct:!1,include:!1,level:jt,children:[]}),this.recursiveSearch(qe,Tt,jt)}createGroupTree(qe){this.groupTree=[],qe.forEach(Tt=>{this.groupTree=this.recursiveSearch(this.groupTree,Tt,0)}),this.groupTree.length&&(this.groupTree=this.groupTree[0].children)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-member-tree-view-dialog"]],decls:11,vars:11,consts:[[1,"group-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","mr-0",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-flat-button","",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"mr-0"],[1,"filter-field","ml-2"],["matInput","",3,"formControl","placeholder"],[4,"ngIf"],["class","example-tree",3,"dataSource","treeControl",4,"ngIf"],[1,"example-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodeToggle",""],[1,"mat-tree-node"],[1,"row","flex-nowrap",3,"click"],["mat-icon-button",""],[1,"mt-auto","mb-auto",3,"ngStyle"],["class","text-muted ml-2",4,"ngIf"],[1,"text-muted","ml-3"],[1,"text-muted","ml-2"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mr-3"],["matTreeNodeOutlet",""]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Jt,1,0,"mat-spinner",2),T.YNc(5,rn,9,9,"div",3),T.TgZ(6,"div",4),T.TgZ(7,"div",5),T.TgZ(8,"button",6),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA(),T.qZA(),T.qZA()),2&qe&&(T.xp6(2),T.hij(" ",T.xi3(3,4,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.TITLE",T.VKq(9,st,Tt.userName))," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MEMBER_TREEVIEW_DIALOG.CLOSE")," "))},directives:[w.uh,e.O5,I.$g,w.xY,A.KE,C.Nt,E.Fj,E.JJ,E.oH,mt.w,J.gi,J.fQ,J.uo,J.eu,g.lW,e.PC,J.GZ,O.Hw,J.Ar,w.H8],pipes:[b.X$,Bt],styles:[".example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.act-disabled[_ngcontent-%COMP%]{pointer-events:none}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),Ze})(),ot=(()=>{class Ze{constructor(qe,Tt){this.dialogRef=qe,this.router=Tt}onClose(){this.router.navigate([]),this.dialogRef.close()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(ge.F0))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.TgZ(4,"perun-web-apps-alert",2),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA(),T.TgZ(7,"div",3),T.TgZ(8,"button",4),T.NdJ("click",function(){return Tt.onClose()}),T._uU(9),T.ALo(10,"translate"),T.qZA(),T.qZA()),2&qe&&(T.xp6(1),T.hij(" ",T.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),T.xp6(4),T.Oqu(T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),T.xp6(4),T.hij(" ",T.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[w.uh,w.xY,mt.w,w.H8,g.lW],pipes:[b.X$],styles:[""]}),Ze})();var Ke=p(62383);function vt(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",16),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.VO_RULES")," "))}function F(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-radio-button",17),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.GROUP_RULES")," "))}function Ye(Ze,Ot){1&Ze&&(T.TgZ(0,"perun-web-apps-alert",18),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"DIALOGS.CHANGE_EXPIRATION.STATUS_CHANGE_INFO")))}let gt=(()=>{class Ze{constructor(qe){this.dialogRef=qe,this.canExtendMembership=!1,this.expirationChanged=new T.vpe,this.statusChange=new T.vpe,this.expirationControl=new E.NI(null)}ngOnInit(){const qe=new Date;this.currentDate=(0,e.p6)(new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),"yyyy-MM-dd","en_US"),"never"!==this.newExpiration&&this.expirationControl.setValue(this.newExpiration)}parseDate(qe){return(0,e.p6)(qe,"yyyy-MM-dd","en_US")}onChange(){"EXPIRED"===this.status&&("never"===this.newExpiration||this.parseDate(this.expirationControl.value)>this.currentDate)&&this.statusChange.emit(!0),this.expirationChanged.emit(this.newExpiration)}onCancel(){this.dialogRef.close({success:!1})}setExpiration(){this.newExpiration=(0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"),this.expirationControl.setValue((0,e.p6)(this.expirationControl.value,"yyyy-MM-dd","en"))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-expiration-dialog"]],inputs:{currentExpiration:"currentExpiration",newExpiration:"newExpiration",canExtendMembership:"canExtendMembership",minDate:"minDate",maxDate:"maxDate",mode:"mode",status:"status"},outputs:{expirationChanged:"expirationChanged",statusChange:"statusChange"},decls:37,vars:37,consts:[[1,"member-theme"],["mat-dialog-content",""],[1,"d-flex","flex-column",3,"ngModel","ngModelChange"],[3,"value"],["color","primary",1,"cursor-pointer",3,"click"],["readonly","","matInput","",1,"disable",3,"min","max","formControl","matDatepicker","dateChange"],["matSuffix","",3,"for","disabled"],[3,"disabled"],["picker",""],["class","bottom-padding","value","voRules",4,"ngIf"],["class","bottom-padding","value","groupRules",4,"ngIf"],["value","never"],["alert_type","info",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["value","voRules",1,"bottom-padding"],["value","groupRules",1,"bottom-padding"],["alert_type","info"]],template:function(qe,Tt){if(1&qe){const jt=T.EpF();T.TgZ(0,"div",0),T.TgZ(1,"div",1),T.TgZ(2,"p"),T.TgZ(3,"strong"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._uU(6),T.ALo(7,"parseDate"),T.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong"),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.ALo(13,"parseDate"),T.qZA(),T.TgZ(14,"mat-radio-group",2),T.NdJ("ngModelChange",function(vi){return Tt.newExpiration=vi}),T.TgZ(15,"mat-radio-button",3),T.TgZ(16,"mat-form-field",4),T.NdJ("click",function(){return T.CHM(jt),T.MAs(23).open()}),T.TgZ(17,"mat-label"),T._uU(18),T.ALo(19,"translate"),T.qZA(),T.TgZ(20,"input",5),T.NdJ("dateChange",function(){return Tt.setExpiration()}),T.qZA(),T._UZ(21,"mat-datepicker-toggle",6),T._UZ(22,"mat-datepicker",7,8),T.qZA(),T.qZA(),T.YNc(24,vt,3,3,"mat-radio-button",9),T.YNc(25,F,3,3,"mat-radio-button",10),T.TgZ(26,"mat-radio-button",11),T._uU(27),T.ALo(28,"translate"),T.qZA(),T.qZA(),T.YNc(29,Ye,3,3,"perun-web-apps-alert",12),T.qZA(),T.TgZ(30,"div",13),T.TgZ(31,"button",14),T.NdJ("click",function(){return Tt.onCancel()}),T._uU(32),T.ALo(33,"translate"),T.qZA(),T.TgZ(34,"button",15),T.NdJ("click",function(){return Tt.onChange()}),T._uU(35),T.ALo(36,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&qe){const jt=T.MAs(23);T.xp6(4),T.Oqu(T.lcZ(5,21,"DIALOGS.CHANGE_EXPIRATION.CURRENT_EXPIRATION")),T.xp6(2),T.hij(" ",T.lcZ(7,23,Tt.currentExpiration)," "),T.xp6(4),T.Oqu(T.lcZ(11,25,"DIALOGS.CHANGE_EXPIRATION.NEW_EXPIRATION")),T.xp6(2),T.hij(" ",Tt.newExpiration?T.lcZ(13,27,Tt.newExpiration):"never"," "),T.xp6(2),T.Q6J("ngModel",Tt.newExpiration),T.xp6(1),T.s9C("value",Tt.expirationControl.value),T.xp6(3),T.Oqu(T.lcZ(19,29,"DIALOGS.CHANGE_EXPIRATION.DATE_LABEL")),T.xp6(2),T.Q6J("min",Tt.minDate)("max",Tt.maxDate)("formControl",Tt.expirationControl)("matDatepicker",jt),T.xp6(1),T.Q6J("for",jt)("disabled",!1),T.xp6(1),T.Q6J("disabled",!1),T.xp6(2),T.Q6J("ngIf",Tt.canExtendMembership&&"vo"===Tt.mode),T.xp6(1),T.Q6J("ngIf",Tt.canExtendMembership&&"group"===Tt.mode),T.xp6(2),T.hij(" ",T.lcZ(28,31,"DIALOGS.CHANGE_EXPIRATION.EXPIRATION_NEVER")," "),T.xp6(2),T.Q6J("ngIf","EXPIRED"===Tt.status&&("never"===Tt.newExpiration||Tt.parseDate(Tt.expirationControl.value)>Tt.currentDate)),T.xp6(3),T.hij(" ",T.lcZ(33,33,"DIALOGS.CHANGE_EXPIRATION.CANCEL")," "),T.xp6(2),T.Q6J("disabled",Tt.expirationControl.invalid),T.xp6(1),T.hij(" ",T.lcZ(36,35,"DIALOGS.CHANGE_EXPIRATION.SAVE")," ")}},directives:[w.xY,P.VQ,E.JJ,E.On,P.U0,A.KE,A.hX,C.Nt,E.Fj,m.hl,E.oH,m.nW,A.R9,m.Mq,e.O5,mt.w,w.H8,g.lW],pipes:[b.X$,Ke.M],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bottom-padding[_ngcontent-%COMP%]{padding-bottom:20px} .mat-form-field.mat-focused .mat-form-field-underline{display:none}"]}),Ze})();function Dt(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function ri(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","group")("status",qe.status)}}let ti=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getGroupAttributeByName(this.data.groupId,nt.r.GROUP_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.groupManager.canExtendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"groupRules"===qe?this.groupManager.extendMembershipInGroup(this.data.memberId,this.data.groupId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberGroupAttributes({member:this.data.memberId,group:this.data.groupId,attributes:[this.expirationAttr]}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.groupManager.setGroupsMemberStatus(this.data.memberId,this.data.groupId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-group-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,Dt,1,0,"mat-spinner",2),T.YNc(5,ri,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_GROUP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();var Di=p(13469);function wi(Ze,Ot){1&Ze&&(T.TgZ(0,"mat-error"),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.Oqu(T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function $i(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"form",5),T.TgZ(1,"div",6),T.TgZ(2,"mat-form-field"),T.TgZ(3,"mat-label"),T._uU(4),T.ALo(5,"translate"),T.qZA(),T._UZ(6,"input",7),T.TgZ(7,"mat-icon",8),T.NdJ("click",function(){T.CHM(qe);const jt=T.oxw();return jt.showOldPassword=!jt.showOldPassword}),T._uU(8),T.qZA(),T.YNc(9,wi,3,3,"mat-error",9),T.qZA(),T._UZ(10,"perun-web-apps-password-form",10),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("formGroup",qe.formGroup),T.xp6(4),T.Oqu(T.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),T.xp6(2),T.Q6J("type",qe.showOldPassword?"text":"password"),T.xp6(2),T.hij(" ",qe.showOldPassword?"visibility_off":"visibility"," "),T.xp6(1),T.Q6J("ngIf",qe.oldPwd.hasError("required")),T.xp6(1),T.Q6J("formGroup",qe.formGroup)("namespace",qe.data.namespace)}}function qi(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",11)}function Fi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",12),T.TgZ(1,"div",13),T.TgZ(2,"button",14),T.NdJ("click",function(){return T.CHM(qe),T.oxw().close()}),T._uU(3),T.ALo(4,"translate"),T.qZA(),T.TgZ(5,"button",15),T.NdJ("click",function(){return T.CHM(qe),T.oxw().changePassword()}),T._uU(6),T.ALo(7,"translate"),T.qZA(),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw();T.xp6(3),T.hij(" ",T.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",qe.formGroup.invalid||qe.formGroup.pending),T.xp6(1),T.hij(" ",T.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let Ji=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this._formBuilder=jt,this.usersManagerService=ci,this.apiRequestConfiguration=vi,this.notificator=Ui,this.translate=Li,this.showOldPassword=!1,Li.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",E.kI.required],passwordCtrl:["",E.kI.required,[(0,oe.yT)(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:Ve.dN.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(E.qu),T.Y36(Y.Fv),T.Y36(q.F5),T.Y36(q.V6),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"h1",0),T._uU(1),T.ALo(2,"translate"),T.qZA(),T.TgZ(3,"div",1),T.YNc(4,$i,11,9,"form",2),T.YNc(5,qi,1,0,"mat-spinner",3),T.qZA(),T.YNc(6,Fi,8,7,"div",4)),2&qe&&(T.xp6(1),T.Oqu(T.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),T.xp6(3),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,w.xY,e.O5,E._Y,E.JL,E.sg,A.KE,A.hX,E.Fj,C.Nt,E.JJ,E.u,E.Q7,O.Hw,A.R9,A.TO,Di.G,I.$g,w.H8,g.lW],pipes:[b.X$],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),Ze})();function _n(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Ni(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("statusChange",function(){return T.CHM(qe),T.oxw().changeStatus=!0})("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("maxDate",qe.maxDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("canExtendMembership",qe.canExtendMembership)("mode","vo")("status",qe.status)}}let Ri=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.translate=vi,this.notificator=Ui,this.loading=!1,this.canExtendMembership=!1,this.expirationAttr=null,vi.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(Li=>this.successMessage=Li)}ngOnInit(){var qe,Tt;this.status=this.data.status,this.loading=!0;const jt=new Date;"VALID"!==this.data.status?this.maxDate="EXPIRED"===this.data.status?void 0:new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()):this.minDate=new Date(jt.getFullYear(),jt.getMonth(),jt.getDate()),this.expirationAttr=this.data.expirationAttr,this.currentExpiration=null!==(Tt=null===(qe=this.expirationAttr)||void 0===qe?void 0:qe.value)&&void 0!==Tt?Tt:"never",this.newExpiration=this.currentExpiration,this.data.statusChanged&&("VALID"!==this.data.status?(this.newExpiration=(0,e.p6)(jt,"yyyy-MM-dd","en"),this.maxDate=jt):this.newExpiration="never"),"VALID"===this.data.status?this.attributesManagerService.getVoAttributeByName(this.data.voId,nt.r.VO_DEF_EXPIRATION_RULES).subscribe(ci=>{null!==ci.value?this.memberManager.canExtendMembership(this.data.memberId).subscribe(vi=>{this.canExtendMembership=!!vi,this.loading=!1},()=>this.loading=!1):this.loading=!1},()=>this.loading=!1):this.loading=!1}onExpirationChanged(qe){this.loading=!0,"voRules"===qe?this.memberManager.extendMembership(this.data.memberId).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0})},()=>this.loading=!1):(this.expirationAttr.value="never"===qe?null:qe,this.attributesManagerService.setMemberAttribute({member:this.data.memberId,attribute:this.expirationAttr}).subscribe(()=>{this.changeStatus&&"EXPIRED"===this.status?this.memberManager.setStatus(this.data.memberId,"VALID").subscribe(Tt=>{this.translate.get("DIALOGS.CHANGE_STATUS.SUCCESS").subscribe(jt=>{this.notificator.showSuccess(jt),this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0,member:Tt})})},()=>this.loading=!1):(this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close({success:!0}))},()=>this.loading=!1))}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-vo-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","maxDate","currentExpiration","newExpiration","canExtendMembership","mode","status","statusChange","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,_n,1,0,"mat-spinner",2),T.YNc(5,Ni,1,7,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_VO_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function sn(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function Xi(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"perun-web-apps-change-expiration-dialog",5),T.NdJ("expirationChanged",function(jt){return T.CHM(qe),T.oxw().onExpirationChanged(jt)}),T.qZA()}if(2&Ze){const qe=T.oxw();T.Q6J("minDate",qe.minDate)("currentExpiration",qe.currentExpiration)("newExpiration",qe.newExpiration)("mode","sponsor")}}let en=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi,Ui,Li){this.dialogRef=qe,this.data=Tt,this.attributesManagerService=jt,this.memberManager=ci,this.groupManager=vi,this.translate=Ui,this.notificator=Li,this.loading=!1,Ui.get("DIALOGS.CHANGE_EXPIRATION.SUCCESS").subscribe(hn=>this.successMessage=hn)}ngOnInit(){this.loading=!0,this.currentExpiration=this.data.sponsor.validityTo?this.data.sponsor.validityTo:"never",this.newExpiration=this.currentExpiration;const qe=new Date;this.minDate=new Date(qe.getFullYear(),qe.getMonth(),qe.getDate()),this.loading=!1}onExpirationChanged(qe){this.loading=!0,this.memberManager.updateSponsorshipValidity(this.data.memberId,this.data.sponsor.user.id,"never"===qe?null:qe).subscribe(()=>{this.loading=!1,this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0)},()=>this.loading=!1)}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.H8),T.Y36(Y.uq),T.Y36(Y.ff),T.Y36(b.sK),T.Y36(q.V6))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-sponsorship-expiration-dialog"]],decls:6,vars:5,consts:[[1,"member-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"minDate","currentExpiration","newExpiration","mode","expirationChanged"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div",0),T.TgZ(1,"h1",1),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,sn,1,0,"mat-spinner",2),T.YNc(5,Xi,1,4,"perun-web-apps-change-expiration-dialog",3),T.qZA()),2&qe&&(T.xp6(2),T.Oqu(T.lcZ(3,3,"DIALOGS.CHANGE_SPONSORSHIP_EXPIRATION.TITLE")),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,gt],pipes:[b.X$],styles:[""]}),Ze})();function an(Ze,Ot){1&Ze&&T._UZ(0,"mat-spinner",4)}function dn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function wn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function xn(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"mat-radio-group",12),T.NdJ("ngModelChange",function(jt){return T.CHM(qe),T.oxw(2).asyncValidation=jt}),T.TgZ(1,"span",13),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"mat-radio-button",14),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.TgZ(7,"mat-radio-button",14),T._uU(8),T.ALo(9,"translate"),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw(2);T.Q6J("ngModel",qe.asyncValidation),T.xp6(2),T.hij(" ",T.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),T.xp6(2),T.Q6J("value",!1),T.xp6(1),T.hij(" ",T.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),T.xp6(2),T.Q6J("value",!0),T.xp6(1),T.hij(" ",T.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function Oi(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function kn(Ze,Ot){1&Ze&&(T.TgZ(0,"span",11),T._uU(1),T.ALo(2,"translate"),T.qZA()),2&Ze&&(T.xp6(1),T.hij(" ",T.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function Nn(Ze,Ot){if(1&Ze&&(T.TgZ(0,"div",5),T.TgZ(1,"p",6),T._uU(2),T.TgZ(3,"span",7),T._uU(4),T.qZA(),T._uU(5),T.TgZ(6,"span",7),T._uU(7),T.qZA(),T.qZA(),T.TgZ(8,"p"),T.TgZ(9,"strong",8),T._uU(10),T.ALo(11,"translate"),T.qZA(),T._uU(12),T.qZA(),T.TgZ(13,"p"),T.TgZ(14,"strong",8),T._uU(15),T.ALo(16,"translate"),T.qZA(),T._uU(17),T.qZA(),T.YNc(18,dn,3,3,"span",9),T.YNc(19,wn,3,3,"span",9),T.YNc(20,xn,10,12,"mat-radio-group",10),T.YNc(21,Oi,3,3,"span",9),T.YNc(22,kn,3,3,"span",9),T.qZA()),2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",qe.group.name," "),T.xp6(2),T.hij("#",qe.group.id,""),T.xp6(1),T.hij(" - ",qe.resource.name," "),T.xp6(2),T.hij("#",qe.resource.id,""),T.xp6(3),T.hij(" ",T.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),T.xp6(2),T.hij(" ",qe.status," "),T.xp6(3),T.hij(" ",T.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),T.xp6(2),T.hij(" ",qe.getReversedStatus()," "),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf","ACTIVE"===qe.status),T.xp6(1),T.Q6J("ngIf","INACTIVE"===qe.status||"FAILED"===qe.status),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!1===qe.asyncValidation),T.xp6(1),T.Q6J("ngIf",("INACTIVE"===qe.status||"FAILED"===qe.status)&&!0===qe.asyncValidation)}}function Mt(Ze,Ot){if(1&Ze){const qe=T.EpF();T.TgZ(0,"div",15),T.TgZ(1,"button",16),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onCancel()}),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.TgZ(4,"button",17),T.NdJ("click",function(){return T.CHM(qe),T.oxw().onSubmit()}),T._uU(5),T.ALo(6,"translate"),T.qZA(),T.qZA()}if(2&Ze){const qe=T.oxw();T.xp6(2),T.hij(" ",T.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),T.xp6(2),T.Q6J("disabled",qe.loading),T.xp6(1),T.hij(" ",T.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===qe.status?"DEACTIVATE":"ACTIVATE"))," ")}}let Qt=(()=>{class Ze{constructor(qe,Tt,jt,ci){this.dialogRef=qe,this.data=Tt,this.resourceService=jt,this.groupService=ci,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(qe=>{this.resource=qe,this.groupService.getGroupById(this.data.groupId).subscribe(Tt=>{this.group=Tt,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(Y.xk),T.Y36(Y.ff))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"h1",0),T._uU(2),T.ALo(3,"translate"),T.qZA(),T.YNc(4,an,1,0,"mat-spinner",1),T.YNc(5,Nn,23,17,"div",2),T.YNc(6,Mt,7,7,"div",3),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(2),T.hij(" ",T.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),T.xp6(2),T.Q6J("ngIf",Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading),T.xp6(1),T.Q6J("ngIf",!Tt.loading))},directives:[w.uh,e.O5,I.$g,w.xY,P.VQ,E.JJ,E.On,P.U0,w.H8,g.lW],pipes:[b.X$],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),Ze})();var rt=p(90995);let kt=(()=>{class Ze{constructor(qe,Tt,jt,ci,vi){this.dialogRef=qe,this.data=Tt,this.notificator=jt,this.usersService=ci,this.translate=vi,this.force=!1,this.displayedColumns=["name"],this.relations=[]}ngOnInit(){this.theme=this.data.theme,this.dataSource=new _.by([this.data.user]),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.GROUP_RELATION")),this.relations.push(this.translate.instant("DIALOGS.ANONYMIZE_USER.VO_RELATION"))}onCancel(){this.dialogRef.close(!1)}anonymizeUser(){this.loading=!0,this.usersService.anonymizeUser(this.data.user.id,this.force).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ANONYMIZE_USER.SUCCESS_NOTIFICATION")),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}onSubmit(qe){this.force=qe.force,qe.deleted?this.anonymizeUser():this.onCancel()}}return Ze.\u0275fac=function(qe){return new(qe||Ze)(T.Y36(w.so),T.Y36(w.WI),T.Y36(q.V6),T.Y36(Y.Fv),T.Y36(b.sK))},Ze.\u0275cmp=T.Xpm({type:Ze,selectors:[["perun-web-apps-anonymize-user-dialog"]],decls:2,vars:8,consts:[[3,"entityNames","entityType","relations","loading","anonymize","deleted"]],template:function(qe,Tt){1&qe&&(T.TgZ(0,"div"),T.TgZ(1,"perun-web-apps-delete-entity-dialog",0),T.NdJ("deleted",function(ci){return Tt.onSubmit(ci)}),T.qZA(),T.qZA()),2&qe&&(T.Tol(Tt.theme),T.xp6(1),T.Q6J("entityNames",Tt.dataSource)("entityType","user")("relations",Tt.relations)("loading",Tt.loading)("anonymize",!0))},directives:[rt.e],styles:[""]}),Ze})()},90995:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>Be});var e=p(5e3),b=p(93075),_=p(32075),w=p(69808),g=p(20773),A=p(48966),E=p(47423),C=p(25245),I=p(14623),P=p(98380),m=p(67322),L=p(98833),O=p(51062);let G=(()=>{class W{constructor(me){this.translate=me}transform(me){return this.translate.instant(me?"DIALOGS.DELETE_ENTITY.TYPE_ANONYMIZE":"DIALOGS.DELETE_ENTITY.TYPE_DELETE")}}return W.\u0275fac=function(me){return new(me||W)(e.Y36(O.sK,16))},W.\u0275pipe=e.Yjl({name:"deleteDialogType",type:W,pure:!0}),W})();var ne=p(31359);function ge(W,R){1&W&&e._UZ(0,"mat-spinner",2)}const J=function(W){return{action:W}};function Me(W,R){if(1&W&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.ALo(4,"translate"),e.TgZ(5,"span",17),e._uU(6),e.ALo(7,"translate"),e.qZA(),e._uU(8),e.ALo(9,"translate"),e.qZA()),2&W){const me=e.oxw(2);e.xp6(1),e.lnq(" ",e.xi3(2,6,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(17,J,e.lcZ(3,9,me.anonymize)))," ",e.lcZ(4,11,"DIALOGS.DELETE_ENTITY.ONLY")," ",me.entityType," "),e.xp6(5),e.Oqu(e.lcZ(7,13,"DIALOGS.DELETE_ENTITY.OR")),e.xp6(2),e.AsE(" ",me.entityType," ",e.lcZ(9,15,"DIALOGS.DELETE_ENTITY.RELATIONS"),"? ")}}function oe(W,R){if(1&W&&(e.TgZ(0,"div",16),e._uU(1),e.ALo(2,"translate"),e.ALo(3,"deleteDialogType"),e.qZA()),2&W){const me=e.oxw(2);e.xp6(1),e.AsE(" ",e.xi3(2,2,"DIALOGS.DELETE_ENTITY.BASIC",e.VKq(7,J,e.lcZ(3,5,me.anonymize)))," ",me.entityType," ? ")}}function Re(W,R){1&W&&e._UZ(0,"th",18)}function T(W,R){if(1&W&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&W){const me=R.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,me):me.name," ")}}function j(W,R){1&W&&e._UZ(0,"tr",20)}function Y(W,R){1&W&&e._UZ(0,"tr",21)}function q(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"button",22),e.NdJ("click",function(){return e.CHM(me),e.oxw(2).force=!0}),e.TgZ(1,"mat-icon"),e._uU(2,"warning"),e.qZA(),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"titlecase"),e.ALo(6,"deleteDialogType"),e.ALo(7,"translate"),e.qZA()}if(2&W){const me=e.oxw(2);e.xp6(3),e.AsE(" ",e.xi3(4,2,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(11,J,e.lcZ(5,5,e.lcZ(6,7,me.anonymize))))," ",e.lcZ(7,9,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}const te=function(){return["name"]};function ue(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.qZA(),e.TgZ(6,"div",4),e.YNc(7,Me,10,19,"div",5),e.YNc(8,oe,4,9,"div",5),e.TgZ(9,"table",6),e.ynx(10,7),e.YNc(11,Re,1,0,"th",8),e.YNc(12,T,3,3,"td",9),e.BQk(),e.YNc(13,j,1,0,"tr",10),e.YNc(14,Y,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(15,"div",12),e.TgZ(16,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(17),e.ALo(18,"translate"),e.qZA(),e.TgZ(19,"button",14),e.NdJ("click",function(){return e.CHM(me),e.oxw().onDelete()}),e._uU(20),e.ALo(21,"translate"),e.ALo(22,"titlecase"),e.ALo(23,"deleteDialogType"),e.qZA(),e.YNc(24,q,8,13,"button",15),e.qZA(),e.qZA()}if(2&W){const me=e.oxw();e.xp6(2),e.AsE(" ",e.xi3(3,10,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(26,J,e.lcZ(4,13,e.lcZ(5,15,me.anonymize))))," ",me.entityType," "),e.xp6(5),e.Q6J("ngIf",!me.disableForce),e.xp6(1),e.Q6J("ngIf",me.disableForce),e.xp6(1),e.Q6J("dataSource",me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(28,te)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(29,te)),e.xp6(3),e.hij(" ",e.lcZ(18,17,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(3),e.hij(" ",e.xi3(21,19,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(30,J,e.lcZ(22,22,e.lcZ(23,24,me.anonymize))))," "),e.xp6(4),e.Q6J("ngIf",!me.disableForce)}}function de(W,R){if(1&W&&(e.TgZ(0,"mat-list-item"),e.TgZ(1,"span"),e.TgZ(2,"mat-icon",27),e._uU(3,"fiber_manual_record"),e.qZA(),e._uU(4),e.qZA(),e.qZA()),2&W){const me=R.$implicit;e.xp6(4),e.hij(" ",me," ")}}function Le(W,R){if(1&W&&(e.TgZ(0,"div"),e._uU(1),e.qZA()),2&W){const me=e.oxw(2);e.xp6(1),e.hij(" ",me.anotherMessage," ")}}function Ue(W,R){1&W&&e._UZ(0,"th",18)}function ze(W,R){if(1&W&&(e.TgZ(0,"td",19),e._uU(1),e.ALo(2,"userFullName"),e.qZA()),2&W){const me=R.$implicit,be=e.oxw(2);e.xp6(1),e.hij(" ",be.anonymize?e.lcZ(2,1,me):me.name," ")}}function le(W,R){1&W&&e._UZ(0,"tr",20)}function je(W,R){1&W&&e._UZ(0,"tr",21)}function ye(W,R){if(1&W){const me=e.EpF();e.TgZ(0,"div"),e.TgZ(1,"h1",3),e._uU(2),e.ALo(3,"translate"),e.ALo(4,"titlecase"),e.ALo(5,"deleteDialogType"),e.ALo(6,"translate"),e.qZA(),e.TgZ(7,"div",4),e.TgZ(8,"div",16),e._uU(9),e.ALo(10,"translate"),e.TgZ(11,"mat-list"),e.YNc(12,de,5,1,"mat-list-item",23),e.qZA(),e.YNc(13,Le,2,1,"div",1),e.TgZ(14,"perun-web-apps-alert",24),e._uU(15),e.ALo(16,"translate"),e.ALo(17,"deleteDialogType"),e.qZA(),e.TgZ(18,"table",6),e.ynx(19,7),e.YNc(20,Ue,1,0,"th",8),e.YNc(21,ze,3,3,"td",9),e.BQk(),e.YNc(22,le,1,0,"tr",10),e.YNc(23,je,1,0,"tr",11),e.qZA(),e.qZA(),e.TgZ(24,"mat-form-field"),e._UZ(25,"input",25),e.ALo(26,"translate"),e.ALo(27,"uppercase"),e.ALo(28,"deleteDialogType"),e.qZA(),e.qZA(),e.TgZ(29,"div",12),e.TgZ(30,"button",13),e.NdJ("click",function(){return e.CHM(me),e.oxw().onCancel()}),e._uU(31),e.ALo(32,"translate"),e.qZA(),e.TgZ(33,"button",26),e.NdJ("click",function(){return e.CHM(me),e.oxw().onDelete()}),e.TgZ(34,"mat-icon"),e._uU(35,"warning"),e.qZA(),e._uU(36),e.ALo(37,"translate"),e.ALo(38,"titlecase"),e.ALo(39,"deleteDialogType"),e.ALo(40,"translate"),e.qZA(),e.qZA(),e.qZA()}if(2&W){const me=e.oxw();e.xp6(2),e.lnq(" ",e.xi3(3,17,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(51,J,e.lcZ(4,20,e.lcZ(5,22,me.anonymize))))," ",me.entityType," ",e.lcZ(6,24,"DIALOGS.DELETE_ENTITY.RELATIONS")," "),e.xp6(7),e.hij(" ",e.lcZ(10,26,"DIALOGS.DELETE_ENTITY.WARN"),": "),e.xp6(3),e.Q6J("ngForOf",me.relations),e.xp6(1),e.Q6J("ngIf",me.anotherMessage),e.xp6(2),e.AsE(" ",e.xi3(16,28,"DIALOGS.DELETE_ENTITY.ASK",e.VKq(53,J,e.lcZ(17,31,me.anonymize)))," ",me.entityType," ? "),e.xp6(3),e.Q6J("dataSource",me.entityNames),e.xp6(4),e.Q6J("matHeaderRowDef",e.DdM(55,te)),e.xp6(1),e.Q6J("matRowDefColumns",e.DdM(56,te)),e.xp6(2),e.s9C("placeholder",e.xi3(26,33,"DIALOGS.DELETE_ENTITY.CONTROL",e.VKq(57,J,e.lcZ(27,36,e.lcZ(28,38,me.anonymize))))),e.Q6J("formControl",me.deleteControl),e.xp6(6),e.hij(" ",e.lcZ(32,40,"DIALOGS.DELETE_ENTITY.CANCEL")," "),e.xp6(2),e.Q6J("disabled",me.deleteControl.invalid),e.xp6(3),e.AsE(" ",e.xi3(37,42,"DIALOGS.DELETE_ENTITY.DELETE",e.VKq(59,J,e.lcZ(38,45,e.lcZ(39,47,me.anonymize))))," ",e.lcZ(40,49,"DIALOGS.DELETE_ENTITY.RELATIONS")," ")}}let Be=(()=>{class W{constructor(){this.entityNames=new _.by,this.relations=[],this.disableForce=!1,this.loading=!1,this.anonymize=!1,this.deleted=new e.vpe,this.force=!1}ngOnInit(){this.deleteReg=this.anonymize?/^ANONYMIZE$/:/^DELETE$/,this.deleteControl=new b.NI("",[b.kI.required,b.kI.pattern(this.deleteReg)])}onCancel(){this.deleted.emit({deleted:!1,force:!1})}onDelete(){this.deleted.emit({deleted:!0,force:this.force})}}return W.\u0275fac=function(me){return new(me||W)},W.\u0275cmp=e.Xpm({type:W,selectors:[["perun-web-apps-delete-entity-dialog"]],inputs:{title:"title",entityNames:"entityNames",entityType:"entityType",relations:"relations",anotherMessage:"anotherMessage",disableForce:"disableForce",loading:"loading",anonymize:"anonymize"},outputs:{deleted:"deleted"},decls:3,vars:3,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["class","mb-4",4,"ngIf"],["mat-table","",1,"w-100","table-margin",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["data-cy","delete-button-dialog","color","warn","mat-flat-button","",1,"ml-2",3,"click"],["class","ml-2","data-cy","force-delete","color","warn","mat-flat-button","",3,"click",4,"ngIf"],[1,"mb-4"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["data-cy","force-delete","color","warn","mat-flat-button","",1,"ml-2",3,"click"],[4,"ngFor","ngForOf"],["alert_type","warn"],["data-cy","force-delete-control","matInput","",3,"formControl","placeholder"],["data-cy","force-delete-button","color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"dot-icon"]],template:function(me,be){1&me&&(e.YNc(0,ge,1,0,"mat-spinner",0),e.YNc(1,ue,25,32,"div",1),e.YNc(2,ye,41,61,"div",1)),2&me&&(e.Q6J("ngIf",be.loading),e.xp6(1),e.Q6J("ngIf",!be.force&&!be.loading),e.xp6(1),e.Q6J("ngIf",be.force&&!be.loading))},directives:[w.O5,g.$g,A.uh,A.xY,_.BZ,_.w1,_.fO,_.ge,_.Dz,_.ev,_.as,_.XQ,_.nj,_.Gk,A.H8,E.lW,C.Hw,I.i$,w.sg,I.Tg,P.w,m.KE,L.Nt,b.Fj,b.JJ,b.oH],pipes:[O.X$,w.rS,G,ne.d,w.gd],styles:[".dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.table-margin[_ngcontent-%COMP%]{margin-top:-50px;margin-bottom:20px}"]}),W})()},50301:($e,_e,p)=>{"use strict";p.d(_e,{hT:()=>b,Kd:()=>w,YH:()=>g});var e=p(5e3);let b=(()=>{class A{constructor(C){this.elementRef=C}ngOnInit(){this.elementRef.nativeElement.focus()}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(e.SBq))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsAutoFocus",""]]}),A})();var _=p(36908);let w=(()=>{class A{constructor(C){this.router=C}onClick(){this.router.forceNavigate(this.perunWebAppsForceRouterLink)}}return A.\u0275fac=function(C){return new(C||A)(e.Y36(_.xw))},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsForceRouterLink",""]],hostBindings:function(C,I){1&C&&e.NdJ("click",function(){return I.onClick()})},inputs:{perunWebAppsForceRouterLink:"perunWebAppsForceRouterLink"}}),A})(),g=(()=>{class A{onClick(C){if(1===C.button&&null!=this.perunWebAppsMiddleClickRouterLink){const I=this.perunWebAppsMiddleClickRouterLink.join("/"),P=location.search;window.open(I+P)}}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275dir=e.lG2({type:A,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(C,I){1&C&&e.NdJ("mouseup",function(m){return I.onClick(m)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),A})()},45323:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>e});var e=(()=>{return(b=e||(e={})).PERUNADMIN="PERUNADMIN",b.PERUNOBSERVER="PERUNOBSERVER",b.VOADMIN="VOADMIN",b.GROUPADMIN="GROUPADMIN",b.SELF="SELF",b.FACILITYADMIN="FACILITYADMIN",b.FACILITIYOBSERVER="FACILITYOBSERVER",b.RESOURCEADMIN="RESOURCEADMIN",b.RESOURCESELFSERVICE="RESOURCESELFSERVICE",b.REGISTRAR="REGISTRAR",b.ENGINE="ENGINE",b.RPC="RPC",b.NOTIFICATIONS="NOTIFICATIONS",b.SERVICEUSER="SERVICEUSER",b.SPONSOR="SPONSOR",b.VOOBSERVER="VOOBSERVER",b.TOPGROUPCREATOR="TOPGROUPCREATOR",b.SECURITYADMIN="SECURITYADMIN",b.CABINETADMIN="CABINETADMIN",b.UNKNOWNROLENAME="UNKNOWNROLENAME",e;var b})()},28499:($e,_e,p)=>{"use strict";p.d(_e,{E3:()=>m,yT:()=>L.y});var e=p(69808),b=p(67322),_=p(29772),w=p(93075),g=p(98833),A=p(51062),E=p(20773),C=p(25245),I=p(63189),P=p(5e3);let m=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=P.oAB({type:G}),G.\u0275inj=P.cJS({providers:[],imports:[[e.ez,b.lN,_.AV,w.UX,g.c,A.aw,E.Cq,C.Ps,I.r]]}),G})();var L=p(47549);p(13469)},13469:($e,_e,p)=>{"use strict";p.d(_e,{G:()=>Re});var e=p(47549),b=p(36908),_=p(32105),w=p(5e3),g=p(51062),A=p(93075),E=p(67322),C=p(29772),I=p(98833),P=p(69808),m=p(20773),L=p(25245),O=p(98380);function G(T,j){1&T&&w._UZ(0,"mat-spinner",12),2&T&&w.Q6J("diameter",18)}function ne(T,j){if(1&T&&(w.TgZ(0,"mat-icon",13),w._uU(1," error "),w.qZA()),2&T){const Y=w.oxw();w.Q6J("matTooltip",Y.getErrorTooltip())("matTooltipDisabled",!Y.formGroup.get("passwordCtrl").hasError("backendError"))}}function ge(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function J(T,j){if(1&T&&(w.TgZ(0,"mat-error",14),w._uU(1),w.qZA()),2&T){const Y=w.oxw();w.Q6J("matTooltip",Y.getErrorTooltip()),w.xp6(1),w.Oqu(Y.getErrorTooltip())}}function Me(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function oe(T,j){1&T&&(w.TgZ(0,"mat-error"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&T&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let Re=(()=>{class T{constructor(Y,q,te){this.translator=Y,this.usersManagerService=q,this.store=te,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new e.S,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(Y=>{var q;const te=Y.userAttributes.find(ue=>"preferredLanguage"===ue.friendlyName);this.language=null!==(q=null==te?void 0:te.value)&&void 0!==q?q:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let Y=this.formGroup.get("passwordCtrl").getError("backendError");return Y&&(Y=Y.replace(":null","")),Y}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(Y=>Y.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(Y=>"default"===Y.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return T.\u0275fac=function(Y){return new(Y||T)(w.Y36(g.sK),w.Y36(_.Fv),w.Y36(b.d6))},T.\u0275cmp=w.Xpm({type:T,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[w.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(Y,q){1&Y&&(w.TgZ(0,"div",0),w.TgZ(1,"mat-form-field",1),w._UZ(2,"input",2),w.ALo(3,"translate"),w.YNc(4,G,1,1,"mat-spinner",3),w.TgZ(5,"mat-icon",4),w.NdJ("click",function(){return q.showNewPassword=!q.showNewPassword}),w._uU(6),w.qZA(),w.YNc(7,ne,2,2,"mat-icon",5),w.YNc(8,ge,3,3,"mat-error",6),w.YNc(9,J,2,2,"mat-error",7),w.qZA(),w.TgZ(10,"mat-form-field",8),w.TgZ(11,"mat-label"),w._uU(12),w.ALo(13,"translate"),w.qZA(),w._UZ(14,"input",9),w.TgZ(15,"mat-icon",4),w.NdJ("click",function(){return q.showPasswordConfirm=!q.showPasswordConfirm}),w._uU(16),w.qZA(),w.YNc(17,Me,3,3,"mat-error",6),w.YNc(18,oe,3,3,"mat-error",6),w.qZA(),w.TgZ(19,"perun-web-apps-alert",10),w._UZ(20,"div",11),w.qZA(),w.qZA()),2&Y&&(w.Q6J("formGroup",q.formGroup),w.xp6(1),w.Q6J("matTooltip",q.getPasswordDisabledTooltip())("matTooltipDisabled",q.formGroup.get("passwordCtrl").enabled),w.xp6(1),w.s9C("placeholder",w.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),w.Q6J("type",q.showNewPassword?"text":"password")("required",q.passwordRequired)("errorStateMatcher",q.passwordStateMatcher),w.xp6(2),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").pending),w.xp6(2),w.hij(" ",q.showNewPassword?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").dirty&&null!==q.formGroup.get("passwordCtrl").errors),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordCtrl").hasError("backendError")),w.xp6(3),w.Oqu(w.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),w.xp6(2),w.Q6J("type",q.showPasswordConfirm?"text":"password")("required",q.passwordRequired),w.xp6(2),w.hij(" ",q.showPasswordConfirm?"visibility_off":"visibility"," "),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordAgainCtrl").hasError("required")),w.xp6(1),w.Q6J("ngIf",q.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),w.xp6(2),w.Q6J("innerHTML",q.passwordRequirement,w.oJD))},directives:[A.JL,A.sg,E.KE,C.gM,I.Nt,A.Fj,A.JJ,A.u,A.Q7,P.O5,m.$g,E.R9,L.Hw,E.TO,E.hX,O.w],pipes:[g.X$],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),T})()},47549:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>A,y:()=>E});var e=p(98723),b=p(21086),_=p(87545),w=p(24850),g=p(27221);class A{isErrorState(I){return!(!(null==I?void 0:I.invalid)||!(null==I?void 0:I.dirty))}}const E=(C,I,P,m=500)=>L=>(0,e.H)(m).pipe((0,_.w)(()=>(P.dontHandleErrorForNext(),C&&"No namespace"!==C?I.checkPasswordStrength(L.value,C):(0,b.of)(null))),(0,w.U)(()=>null),(0,g.K)(O=>{const G=O.error,ne={backendError:G.message.substring(G.message.indexOf(":")+1)};return(0,b.of)(ne)}))},32105:($e,_e,p)=>{"use strict";p.d(_e,{Us:()=>ze,au:()=>Te,sY:()=>ye,H8:()=>E,jw:()=>C,Ct:()=>I,VK:()=>A,WY:()=>m,KG:()=>O,IQ:()=>G,ff:()=>ge,uq:()=>Me,aC:()=>oe,Hr:()=>Re,tk:()=>T,xk:()=>j,t7:()=>Y,KK:()=>q,Ob:()=>te,Dy:()=>H,Fv:()=>ue,FW:()=>de,YF:()=>Le});var e=p(40520);class b{encodeKey(ae){return encodeURIComponent(ae)}encodeValue(ae){return encodeURIComponent(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}var _=p(5e3);const w=new _.OlP("basePath");class A{constructor(ae={}){this.apiKeys=ae.apiKeys,this.username=ae.username,this.password=ae.password,this.accessToken=ae.accessToken,this.basePath=ae.basePath,this.withCredentials=ae.withCredentials,this.encoder=ae.encoder,this.credentials=ae.credentials?ae.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(ae){if(0===ae.length)return;const i=ae.find(o=>this.isJsonMime(o));return void 0===i?ae[0]:i}selectHeaderAccept(ae){if(0===ae.length)return;const i=ae.find(o=>this.isJsonMime(o));return void 0===i?ae[0]:i}isJsonMime(ae){const i=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==ae&&(i.test(ae)||"application/json-patch+json"===ae.toLowerCase())}lookupCredential(ae){const i=this.credentials[ae];return"function"==typeof i?i():i}}let E=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}convertAttributeToNonunique(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}convertAttributeToUnique(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attribute"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteAttributeDefinitions(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attributes[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAttributeDefinitions(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAttribute(i,o,d,l,s,r,t,n,a,c,h,x="body",We=!1,At){let Ht=new e.LE({encoder:this.encoder});null!=i&&(Ht=this.addToHttpParams(Ht,i,"attributeName")),null!=o&&(Ht=this.addToHttpParams(Ht,o,"attributeId")),null!=d&&(Ht=this.addToHttpParams(Ht,d,"facility")),null!=l&&(Ht=this.addToHttpParams(Ht,l,"user")),null!=s&&(Ht=this.addToHttpParams(Ht,s,"vo")),null!=r&&(Ht=this.addToHttpParams(Ht,r,"resource")),null!=t&&(Ht=this.addToHttpParams(Ht,t,"member")),null!=n&&(Ht=this.addToHttpParams(Ht,n,"group")),null!=a&&(Ht=this.addToHttpParams(Ht,a,"host")),null!=c&&(Ht=this.addToHttpParams(Ht,c,"userExtSource")),null!=h&&(Ht=this.addToHttpParams(Ht,h,"key"));let Ut,lt=this.defaultHeaders;Ut=this.configuration.lookupCredential("BasicAuth"),Ut&&(lt=lt.set("Authorization","Basic "+Ut)),Ut=this.configuration.lookupCredential("BearerAuth"),Ut&&(lt=lt.set("Authorization","Bearer "+Ut));let mt=At&&At.httpHeaderAccept;void 0===mt&&(mt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==mt&&(lt=lt.set("Accept",mt));let Lt=At&&At.context;void 0===Lt&&(Lt=new e.qT);let Ee="json";return mt&&(Ee=mt.startsWith("text")?"text":this.configuration.isJsonMime(mt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Lt,params:Ht,responseType:Ee,withCredentials:this.configuration.withCredentials,headers:lt,observe:x,reportProgress:We})}getAttributeDefinitionById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeDefinitionByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeDefinitionsByNamespace(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"namespace"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeModulesDependenciesForAttributeGraphText(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==o)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"format")),null!=o&&(r=this.addToHttpParams(r,o,"attrName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAttributeModulesDependenciesGraphText(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"format"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributePolicyCollections(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributeRights(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAttributesDefinitionWithRights(i,o,d,l,s,r,t,n,a="body",c=!1,h){let x=new e.LE({encoder:this.encoder});null!=i&&(x=this.addToHttpParams(x,i,"member")),null!=o&&(x=this.addToHttpParams(x,o,"user")),null!=d&&(x=this.addToHttpParams(x,d,"vo")),null!=l&&(x=this.addToHttpParams(x,l,"group")),null!=s&&(x=this.addToHttpParams(x,s,"resource")),null!=r&&(x=this.addToHttpParams(x,r,"facility")),null!=t&&(x=this.addToHttpParams(x,t,"host")),null!=n&&(x=this.addToHttpParams(x,n,"userExtSource"));let At,We=this.defaultHeaders;At=this.configuration.lookupCredential("BasicAuth"),At&&(We=We.set("Authorization","Basic "+At)),At=this.configuration.lookupCredential("BearerAuth"),At&&(We=We.set("Authorization","Bearer "+At));let Ht=h&&h.httpHeaderAccept;void 0===Ht&&(Ht=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ht&&(We=We.set("Accept",Ht));let lt=h&&h.context;void 0===lt&&(lt=new e.qT);let Ut="json";return Ht&&(Ut=Ht.startsWith("text")?"text":this.configuration.isJsonMime(Ht)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:lt,params:x,responseType:Ut,withCredentials:this.configuration.withCredentials,headers:We,observe:a,reportProgress:c})}getEntitylessAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessAttributesByKey(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"key"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEntitylessAttributesByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attrName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEntitylessAttributesWithKeys(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attrName")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"keys[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEntitylessKeys(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityResourceUserMemberAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"user")),null!=l&&(n=this.addToHttpParams(n,l,"member"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getFacilityUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupResourceAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHostAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLogins(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getLogins.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberAndUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==o)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAndUserAttributesByNames(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAndUserAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberGroupAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroupAttributesByNames(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAndUserFacilityAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getMemberResourceAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesFacilityService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesFacilityServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesGroupResourceService(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesHostService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==o)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"host"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"workWithUserAttributes"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesMemberGroup(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberGroupResourceService(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"group")),null!=l&&(a=this.addToHttpParams(a,l,"member")),null!=s&&(a=this.addToHttpParams(a,s,"workWithUserAttributes"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getRequiredAttributesMemberGroupService(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesMemberResource(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRequiredAttributesMemberResourceService(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),null!=d&&(n=this.addToHttpParams(n,d,"member")),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRequiredAttributesResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesResourceService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesResourceServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")}),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRequiredAttributesUserFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRequiredAttributesVoService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupAndGroupAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==d)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"resource")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"workWithGroupAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourceGroupAndGroupAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getResourceGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceGroupMemberAttributesByNames(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==d)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),null!=o&&(n=this.addToHttpParams(n,o,"group")),null!=d&&(n=this.addToHttpParams(n,d,"member")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserFacilityAttributeById(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==d)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributeByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==d)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attributeName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getUserFacilityAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributeByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==o)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"attributeName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"facility")),null!=o&&(c=this.addToHttpParams(c,o,"resource")),null!=d&&(c=this.addToHttpParams(c,d,"group")),null!=l&&(c=this.addToHttpParams(c,l,"user")),null!=s&&(c=this.addToHttpParams(c,s,"member")),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"attributes[]")});let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}removeAttributesForFacilityResourceUserMember(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"facility")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attributes[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}removeEntitylessAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"key")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupResourceAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeGroupResourceAttributesWorkWithGroupAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithGroupAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeHostAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"host")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")}),null!=d&&(t=this.addToHttpParams(t,d,"workWithUserAttributes"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberGroupAttributesWorkWithUserAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"group")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attributes[]")}),null!=l&&(n=this.addToHttpParams(n,l,"workWithUserAttributes"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeMemberResourceAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeMemberResourceAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeResourceAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUesAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSourceAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userExtSource")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserFacilityAttribute(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==d)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"attribute"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeUserFacilityAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attributes[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeVoAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==o)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"attribute"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setAttributePolicyCollections(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setAttributeRights(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setEntitylessAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceGroupUserMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityResourceUserMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setFacilityUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setGroupResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setHostAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberGroupWithUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAndUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setMemberWithUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setResourceGroupWithGroupAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserExtSourceAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setUserFacilityAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttribute(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setVoAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),C=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}auditMessagesManagerLog(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter msg was null or undefined when calling auditMessagesManagerLog.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"msg"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/log`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createAuditerConsumer(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling createAuditerConsumer.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/createAuditerConsumer`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAuditerConsumers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAllAuditerConsumers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuditerMessagesCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getAuditerMessagesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getLastMessageId(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getLastMessageId`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMessages(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMessagesByCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter count was null or undefined when calling getMessagesByCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"count"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesByCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMessagesPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMessagesPage was null or undefined when calling getMessagesPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/auditMessagesManager/getMessagesPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}pollConsumerMessages(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling pollConsumerMessages.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consumerName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/auditMessagesManager/pollConsumerMessages`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}setLastProcessedId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consumerName was null or undefined when calling setLastProcessedId.");if(null==o)throw new Error("Required parameter lastProcessedId was null or undefined when calling setLastProcessedId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consumerName")),null!=o&&(r=this.addToHttpParams(r,o,"lastProcessedId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/auditMessagesManager/setLastProcessedId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),I=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAllPolicies(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRolesManagementRules(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAuthzAdminGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"role")),null!=o&&(t=this.addToHttpParams(t,o,"complementaryObjectId")),null!=d&&(t=this.addToHttpParams(t,d,"complementaryObjectName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAuthzRichAdmins(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==o)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==d)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"role")),null!=o&&(c=this.addToHttpParams(c,o,"complementaryObjectId")),null!=d&&(c=this.addToHttpParams(c,d,"complementaryObjectName")),l&&l.forEach(lt=>{c=this.addToHttpParams(c,lt,"specificAttributes")}),null!=s&&(c=this.addToHttpParams(c,s,"allUserAttributes")),null!=r&&(c=this.addToHttpParams(c,r,"onlyDirectAdmins"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}getFacilitiesWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupRoleNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupRoles(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"groupId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getLoggedUser(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMembersWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getPerunPrincipal(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPrincipalRoleNames(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserRoleNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserRoles(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosWhereUserIsInRoles(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"user")),i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"roles[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isFacilityAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isGroupAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isPerunAdmin(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isVoAdmin(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}keepAlive(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}loadAuthorizationComponents(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}setRoleWithGroupComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setRoleWithUserComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithGroupComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unsetRoleWithUserComplementaryObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),m=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}changeConsentStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consent")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}evaluateConsentsForConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}evaluateConsentsForService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllConsentHubs(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllConsents(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getConsentById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentForUserAndConsentHub(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==d)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"consentHub")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getConsentHubByFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentHubById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentHubByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"consentHub"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForConsentHubWithStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"consentHub")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getConsentsForUserAndConsentHub(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==o)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"consentHub"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getConsentsForUserWithStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateConsentHub(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),O=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addExtSourceWithGroupSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addExtSourceWithVoSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling addExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/addExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createExtSourceFromExtSourceObject(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ExtSourceObject was null or undefined when calling createExtSourceFromExtSourceObject.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/extSourcesManager/createExtSource/es`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createExtSourceWithNameType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createExtSourceWithNameType.");if(null==o)throw new Error("Required parameter type was null or undefined when calling createExtSourceWithNameType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/createExtSource/n-t`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteExtSource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/deleteExtSource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSourceByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getExtSourceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSourceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getExtSources(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getExtSources`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGroupExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getGroupExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/getVoExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}loadExtSourcesDefinitions(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/extSourcesManager/loadExtSourcesDefinitions`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeExtSourceWithGroupSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeExtSourceWithGroupSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithGroupSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/g-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeExtSourceWithVoSource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeExtSourceWithVoSource.");if(null==o)throw new Error("Required parameter source was null or undefined when calling removeExtSourceWithVoSource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"source"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/extSourcesManager/removeExtSource/v-s`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),G=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addFacilityAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminGroupByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityAdminUserByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByFacilityNameOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addFacilityOwnerByOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling addFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHost(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHost.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHost.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostByFacilityName.");if(null==o)throw new Error("Required parameter hostname was null or undefined when calling addHostByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"hostname"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHost/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHosts.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addHostsByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addHostsByFacilityName.");if(null==o)throw new Error("Required parameter hostnames was null or undefined when calling addHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"hostnames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/addHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeam(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignSecurityTeamByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling assignSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling assignSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/assignSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributes.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyAttributesByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyAttributesBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-dest-names`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyAttributesBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyAttributesBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyAttributesBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyAttributes/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagers.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyManagersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyManagersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyManagersBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyManagersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyManagersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyManagers/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwners(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwners.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwners.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersByDestinationName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacility was null or undefined when calling copyOwnersByDestinationName.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersByDestinationName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacility")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceDestinationNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");if(null==o)throw new Error("Required parameter destFacilityName was null or undefined when calling copyOwnersBySourceDestinationNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacilityName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-dest-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyOwnersBySourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter srcFacilityName was null or undefined when calling copyOwnersBySourceName.");if(null==o)throw new Error("Required parameter destFacility was null or undefined when calling copyOwnersBySourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"srcFacilityName")),null!=o&&(r=this.addToHttpParams(r,o,"destFacility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/copyOwners/src-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/createFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling deleteFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/deleteFacility/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllowedGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedGroupsByFacilityName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedGroupsByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedGroups/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedRichGroupsWithAttributes(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributes.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributes.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedRichGroupsWithAttributesByFacilityName(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllowedRichGroupsWithAttributesByFacilityName.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"vo")),null!=l&&(n=this.addToHttpParams(n,l,"service"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedRichGroupsWithAttributes/f-name`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllowedUsersOfFacility(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacility.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedUsersOfFacilityByFacilityName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedUsersOfFacilityByFacilityName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"service"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAllowedUsers/v-f-s/f-name`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getAllowedVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedVosByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllowedVosByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/getAllowedVos/f-name`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedFacilitiesByGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedFacilitiesByMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/member`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedFacilitiesByService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/service`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedFacilitiesByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedFacilitiesByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedFacilities/user`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesByAssignedServiceForFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedResourcesByAssignedServiceForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResourcesByAssignedService`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedResourcesForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesForFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForFacilityByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedRichResourcesForFacilityByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedRichResources/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedSecurityTeams(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeams.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedSecurityTeamsByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedSecurityTeamsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedSecurityTeams/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedUsers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedUsersByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAssignedUsers/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getBansForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facilityId was null or undefined when calling getBansForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facilityId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getBansForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBansForUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEnrichedFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getEnrichedHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedHosts.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getEnrichedHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getEnrichedHosts`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getFacilitiesByAttribute.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getFacilitiesByAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=o&&(r=this.addToHttpParams(r,o,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByAttribute`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilitiesByDestination(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getFacilitiesByDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesByHostName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getFacilitiesByHostName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByHostName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getFacilitiesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilitiesCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilitiesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilitiesWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAdminGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAdminUsers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsers.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityAdminUsersByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAdminUsersByFacilityName.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getFacilityAdminUsersByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getAdmins/f-name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBan(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getFacilityBan.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFacilityBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacilityBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getFacilityById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getFacilityByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityForHost(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling getFacilityForHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getFacilityForHost`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityOwners(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwners.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityOwnersByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityOwnersByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwners/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getHostById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHosts(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHosts.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHosts/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsByHostname(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling getHostsByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsByHostname`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getHostsCountByFacilityName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getHostsCountByFacilityName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getHostsCount/f-name`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getOwnerFacilities(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerFacilities.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getOwnerFacilities`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichFacilities(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/facilitiesManager/getRichFacilities`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeBanByUserIdFacilityId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeBanByUserIdFacilityId.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeBanByUserIdFacilityId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byUserIdFacilityId`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminGroupByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminGroupByFacilityName.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeFacilityAdminGroupByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/group/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityAdminUserByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAdminUserByFacilityName.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeFacilityAdminUserByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeAdmin/user/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeFacilityBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeBan/byId`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeFacilityOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwner.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByFacilityNameOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByFacilityNameOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/f-o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeFacilityOwnerByOwnerName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeFacilityOwnerByOwnerName.");if(null==o)throw new Error("Required parameter owner was null or undefined when calling removeFacilityOwnerByOwnerName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"owner"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeOwner/o-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHost(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter host was null or undefined when calling removeHost.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"host"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHost`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeHostByHostname(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter hostname was null or undefined when calling removeHostByHostname.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"hostname"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHostByHostname`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeHosts(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHosts.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHosts.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeHostsByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeHostsByFacilityName.");if(null==o)throw new Error("Required parameter hosts was null or undefined when calling removeHostsByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"hosts[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeHosts/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeam(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeam.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeam.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSecurityTeamByFacilityName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling removeSecurityTeamByFacilityName.");if(null==o)throw new Error("Required parameter securityTeam was null or undefined when calling removeSecurityTeamByFacilityName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),null!=o&&(r=this.addToHttpParams(r,o,"securityTeam"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/facilitiesManager/removeSecurityTeam/f-name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setFacilityBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBanForUserOnFacility was null or undefined when calling setFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFacility was null or undefined when calling updateFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateFacility`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFacilityBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBanForFacility was null or undefined when calling updateFacilityBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/facilitiesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),ge=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling addMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling addMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}canExtendMembershipInGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupUnion(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=o&&(r=this.addToHttpParams(r,o,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createGroupWithParentGroupNameDescription(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"parentGroup")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createGroupWithVoNameDescription(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==o)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==d)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"name")),null!=d&&(t=this.addToHttpParams(t,d,"description"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deleteGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}disallowGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}extendMembershipInGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}forceAllSubGroupsSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceGroupStructureSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceGroupSynchronization(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllAllowedGroupsToHierarchicalVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllGroupsFromAllVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllMemberGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichGroupsWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==o)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMemberById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==o)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCountsByGroupStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupMembersCountsByVoStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupRichMembersByIds(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==o)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==d)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"members[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getGroupUnions(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==o)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"reverseDirection"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getIndirectMembershipPaths(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==o)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMemberGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberRichGroupsWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichGroupByIdWithAttributesByNames(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"groupId")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSubgroupsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVoAllAllowedGroupsToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isAllowedGroupToHierarchicalVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isGroupMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==o)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let r=new e.LE({encoder:this.encoder});null!=o&&(r=this.addToHttpParams(r,o,"destinationGroup")),null!=i&&(r=this.addToHttpParams(r,i,"movingGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupUnion(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==o)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resultGroup")),null!=o&&(r=this.addToHttpParams(r,o,"operandGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==o)throw new Error("Required parameter member was null or undefined when calling removeMember.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==o)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"members[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setGroupsMemberStatus(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==o)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==d)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"group")),null!=d&&(t=this.addToHttpParams(t,d,"status"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Me=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}canExtendMembership(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createMemberForCandidate(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createMemberFromExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSpecificMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createSponsoredMembersFromCSV(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"members[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}extendMembership(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}findCompleteRichMembersByAttributes(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")}),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCompleteRichMembersForGroup(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"group")),o&&o.forEach(lt=>{c=this.addToHttpParams(c,lt,"attrsNames[]")}),s&&s.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedStatuses[]")}),r&&r.forEach(lt=>{c=this.addToHttpParams(c,lt,"allowedGroupStatuses[]")}),null!=d&&(c=this.addToHttpParams(c,d,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"lookingInParentGroup"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}findCompleteRichMembersForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}findMembersInVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findSponsoredCompleteRichMembersForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==o)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),null!=d&&(n=this.addToHttpParams(n,d,"searchString")),null!=l&&(n=this.addToHttpParams(n,l,"onlySponsored"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getAllMembers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllNamespacesRules(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllSponsoredMembersAndTheirSponsors(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getCompleteRichMembersForGroup(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==o)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedStatuses[]")}),l&&l.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"allowedGroupStatuses[]")}),null!=o&&(a=this.addToHttpParams(a,o,"lookingInParentGroup")),s&&s.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"attrsNames[]")});let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getCompleteRichMembersForGroupResource(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==d)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),null!=o&&(n=this.addToHttpParams(n,o,"resource")),d&&d.forEach(At=>{n=this.addToHttpParams(n,At,"attrsNames[]")}),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"allowedStatuses[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getCompleteRichMembersForVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"allowedStatuses[]")}),d&&d.forEach(We=>{t=this.addToHttpParams(t,We,"attrsNames[]")});let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberByExtSourceNameAndExtLogin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==d)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"extLogin")),null!=d&&(t=this.addToHttpParams(t,d,"extSourceName"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getMemberById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberByUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembers(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getMembersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersCount(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMembersPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersWithStatusCount(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==o)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichMemberWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichMembersByIds(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"ids[]")}),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichMembersNoUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsoredMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsoredMembersAndTheirSponsors(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsByVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}moveMembership(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==o)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==d)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"sourceUser")),null!=d&&(t=this.addToHttpParams(t,d,"targetUser"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}removeSponsor(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"sponsor"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendAccountActivationLinkEmail(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"member")),null!=o&&(n=this.addToHttpParams(n,o,"namespace")),null!=d&&(n=this.addToHttpParams(n,d,"emailAttributeURN")),null!=l&&(n=this.addToHttpParams(n,l,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendPasswordResetLinkEmail(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==d)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"member")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"emailAttributeURN")),null!=l&&(a=this.addToHttpParams(a,l,"language")),null!=s&&(a=this.addToHttpParams(a,s,"baseUrl"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}setSponsoredMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSponsorshipForMember(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"sponsoredMember")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}setStatus(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==o)throw new Error("Required parameter status was null or undefined when calling setStatus.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"status"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sponsorMember(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}updateSponsorshipValidity(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==o)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"member")),null!=o&&(t=this.addToHttpParams(t,o,"sponsor")),null!=d&&(t=this.addToHttpParams(t,d,"validityTo"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}validateMemberAsync(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),oe=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}createOwner(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"owner")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllOwners(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getOwnerById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getOwnerByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"owner"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Re=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}sentMessageToRTWithMemberQueue(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"memberId")),null!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sentMessageToRTWithQueue(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"queue")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==o)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==d)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"voId")),null!=o&&(t=this.addToHttpParams(t,o,"subject")),null!=d&&(t=this.addToHttpParams(t,d,"text"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sentMessageToRTWithVoQueue(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==o)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==d)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"voId")),null!=o&&(n=this.addToHttpParams(n,o,"queue")),null!=d&&(n=this.addToHttpParams(n,d,"subject")),null!=l&&(n=this.addToHttpParams(n,l,"text"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),T=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addApplicationMailForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addApplicationMailForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addGroupsToAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}approveApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}checkForSimilarUsersWithAuthInfo(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}consolidateIdentityUsingToken(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}copyFormFromGroupToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromGroupToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyFormFromVoToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromGroupToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromGroup")),null!=o&&(r=this.addToHttpParams(r,o,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToGroup(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"toGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyMailsFromVoToVo(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"fromVo")),null!=o&&(r=this.addToHttpParams(r,o,"toVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createApplicationFormInGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}createApplicationFormInVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteApplicationMailForGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteApplicationMailForVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==o)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"id"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteGroupsFromAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"groups[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationDataById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationMailsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationMailsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getApplicationsForGroup(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"group")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsForMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getApplicationsForVo(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"state[]")}),null!=d&&(n=this.addToHttpParams(n,d,"dateFrom")),null!=l&&(n=this.addToHttpParams(n,l,"dateTo"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getApplicationsPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getConsolidatorToken(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFormItemsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFormItemsForGroupWithType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFormItemsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFormItemsForVoWithType(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"type"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupApplicationForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsToAutoRegistration(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoApplicationForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}rejectApplication(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),null!=o&&(r=this.addToHttpParams(r,o,"reason"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendInvitation(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let n=new e.LE({encoder:this.encoder});null!=d&&(n=this.addToHttpParams(n,d,"voId")),null!=l&&(n=this.addToHttpParams(n,l,"name")),null!=i&&(n=this.addToHttpParams(n,i,"email")),null!=o&&(n=this.addToHttpParams(n,o,"language"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}sendInvitationForGroup(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==o)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let a=new e.LE({encoder:this.encoder});null!=d&&(a=this.addToHttpParams(a,d,"voId")),null!=l&&(a=this.addToHttpParams(a,l,"groupId")),null!=s&&(a=this.addToHttpParams(a,s,"name")),null!=i&&(a=this.addToHttpParams(a,i,"email")),null!=o&&(a=this.addToHttpParams(a,o,"language"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}sendInvitationGroupToExistingUser(i,o,d,l="body",s=!1,r){let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"userId")),null!=o&&(t=this.addToHttpParams(t,o,"voId")),null!=d&&(t=this.addToHttpParams(t,d,"groupId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}sendInvitationToExistingUser(i,o,d="body",l=!1,s){let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"userId")),null!=o&&(r=this.addToHttpParams(r,o,"voId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}sendMessage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}setSendingEnabled(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}submitApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateApplicationMail(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateForm(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemData(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsData(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateFormItemsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}verifyApplication(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),j=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}activateGroupResourceAssignment(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),null!=o&&(t=this.addToHttpParams(t,o,"resource")),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}addAdminToGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addAdminToUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addResourceSelfServiceUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}allowGroupsToResources(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let t=new e.LE({encoder:this.encoder});i&&i.forEach(We=>{t=this.addToHttpParams(t,We,"groups[]")}),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"resources[]")}),null!=d&&(t=this.addToHttpParams(t,d,"async"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}assignGroupToResource(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupToResources(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"group")),o&&o.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"resources[]")}),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignGroupsToResource(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let a=new e.LE({encoder:this.encoder});i&&i.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"groups[]")}),null!=o&&(a=this.addToHttpParams(a,o,"resource")),null!=d&&(a=this.addToHttpParams(a,d,"async")),null!=l&&(a=this.addToHttpParams(a,l,"assignInactive")),null!=s&&(a=this.addToHttpParams(a,s,"autoAssignSubgroups"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}assignResourceTagToResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}assignService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling assignService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling assignServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}assignServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}copyResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResource(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==d)throw new Error("Required parameter name was null or undefined when calling createResource.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"name")),null!=l&&(n=this.addToHttpParams(n,l,"description"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createResourceTagWithResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createResourceTagWithTagName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"tagName")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deactivateGroupResourceAssignment(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteAllResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteAllResourcesTagsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}deleteResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAdminGroups(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAdmins(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==o)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"onlyDirectAdmins"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllResourcesByResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllResourcesTagsForResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesTagsForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllowedUsersOfResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"member"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedMembersWithStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResourcesWithStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichMembers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithGroup(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"group"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesWithMemberService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAssignedServicesToResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getBansForResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getEnrichedResourceById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"id")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"facility")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getEnrichedResourcesForVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupAssignments(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceAssignments(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBan(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourceBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourceByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==d)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"name"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesCountForAll(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getResourcesCountForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getResourcesFromVoWhereUserIsAdmin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getResourcesWhereGroupIsAdmin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==d)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"group"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getResourcesWhereUserIsAdmin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==d)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"facility")),null!=o&&(t=this.addToHttpParams(t,o,"vo")),null!=d&&(t=this.addToHttpParams(t,d,"user"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getRichAdmins(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==o)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==d)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"resource")),o&&o.forEach(At=>{n=this.addToHttpParams(n,At,"specificAttributes")}),null!=d&&(n=this.addToHttpParams(n,d,"allUserAttributes")),null!=l&&(n=this.addToHttpParams(n,l,"onlyDirectAdmins"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getRichResourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichResourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling getVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeAllResourceTagsFromResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"resource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeBanByMemberAndResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupAdminResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupFromResources(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeGroupsFromResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeResourceSelfServiceGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==o)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"group"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceSelfServiceUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeResourceTagFromResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}removeService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServices(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==o)throw new Error("Required parameter services was null or undefined when calling removeServices.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"services[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==o)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"servicesPackage"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserAdminResource(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"resource")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}setResourceBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}unallowGroupsFromResources(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==o)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let r=new e.LE({encoder:this.encoder});i&&i.forEach(x=>{r=this.addToHttpParams(r,x,"groups[]")}),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"resources[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateResource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateResourceTag(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Y=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAttributesMatchResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMatchResources was null or undefined when calling getAttributesMatchResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes-match`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAttributesResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetResources was null or undefined when calling getAttributesResources.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getResources/attributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getFacilities(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetFacilities was null or undefined when calling getFacilities.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getFacilities`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getMembersByUserAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetMembersByUserAttributes was null or undefined when calling getMembersByUserAttributes.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getMembersByUserAttributes`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getUsersSearcher(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetUsers was null or undefined when calling getUsersSearcher.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/searcher/getUsers`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),q=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addDestination(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling addDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling addDestination.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"service")),null!=o&&(a=this.addToHttpParams(a,o,"facility")),null!=d&&(a=this.addToHttpParams(a,d,"destination")),null!=l&&(a=this.addToHttpParams(a,l,"type")),null!=s&&(a=this.addToHttpParams(a,s,"propagationType"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestination`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}addDestinationToMultipleServices(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationToMultipleServices was null or undefined when calling addDestinationToMultipleServices.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestination`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/f`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputAddDestinationsDefinedByHostsOnFacility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithListOfServiceAndFacility.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/addDestinationsDefinedByHostsOnFacility/lists-f`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling addDestinationsDefinedByHostsOnFacilityWithServiceAndFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsDefinedByHostsOnFacility/s-f`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addDestinationsForAllServicesOnFacility(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter facility was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling addDestinationsForAllServicesOnFacility.");if(null==d)throw new Error("Required parameter type was null or undefined when calling addDestinationsForAllServicesOnFacility.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"facility")),null!=o&&(n=this.addToHttpParams(n,o,"destination")),null!=d&&(n=this.addToHttpParams(n,d,"type")),null!=l&&(n=this.addToHttpParams(n,l,"propagationType"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addDestinationsForAllServicesOnFacility`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}addRequiredAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling addRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addRequiredAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling addRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling addRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addServiceToServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling addServiceToServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling addServiceToServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/addServiceToServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}blockAllServicesOnDestinationByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling blockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling blockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=o&&(r=this.addToHttpParams(r,o,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockAllServicesOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling blockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}blockServiceOnDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}blockServiceOnDestinationWithNameAndType(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling blockServiceOnDestinationWithNameAndType.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling blockServiceOnDestinationWithNameAndType.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}blockServiceOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling blockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling blockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/blockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createService(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter name was null or undefined when calling createService.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createService.");if(null==d)throw new Error("Required parameter script was null or undefined when calling createService.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"name")),null!=o&&(t=this.addToHttpParams(t,o,"description")),null!=d&&(t=this.addToHttpParams(t,d,"script"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createService`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}createServiceWithService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateService was null or undefined when calling createServiceWithService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServicesPackage was null or undefined when calling createServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/createServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}createServicesPackageByNameAndDescription(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createServicesPackageByNameAndDescription.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createServicesPackageByNameAndDescription.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"description"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/createServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteService(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling deleteService.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteService`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling deleteServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/deleteServicesPackage`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}forceServicePropagation(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling forceServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/forceServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllDestinations(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/all`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getAllRichDestinationsForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAllRichDestinationsForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/f`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllRichDestinationsForService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAllRichDestinationsForService.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAllRichDestinations/s`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedResources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling getAssignedResources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedResourcesForService`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedServices(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getAssignedServices.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getAssignedServices`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getDataWithGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDataWithVos(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDataWithVos.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDataWithVos.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDataWithVos`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinations/s-f`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getDestinationsCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getDestinationsCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getFacilitiesDestinations(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getFacilitiesDestinations.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilitiesDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityAssignedServicesForGUI(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityAssignedServicesForGUI.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFacilityAssignedServicesForGUI`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFlatData(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getFlatData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getFlatData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getFlatData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getHashedDataWithGroups(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedDataWithGroups.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedDataWithGroups.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedDataWithGroups`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHashedHierarchicalData(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHashedHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHashedHierarchicalData.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"facility")),null!=d&&(t=this.addToHttpParams(t,d,"consentEval"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHashedHierarchicalData`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getHierarchicalData(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getHierarchicalData.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getHierarchicalData.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getHierarchicalData`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getRichDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getRichDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getRichDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getRichDestinations`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getServiceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getServiceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServiceByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServiceByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServiceByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServices(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServices`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getServicesBlockedOnDestination(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling getServicesBlockedOnDestination.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnDestination`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesBlockedOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getServicesBlockedOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesBlockedOnFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesByAttributeDefinition(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter attributeDefinition was null or undefined when calling getServicesByAttributeDefinition.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"attributeDefinition"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesByAttributeDefinition`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesFromServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesFromServicesPackage.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesFromServicesPackage`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackageById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling getServicesPackageById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"servicesPackage"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackageByName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter name was null or undefined when calling getServicesPackageByName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"name"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackageByName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getServicesPackages(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/getServicesPackages`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}isServiceBlockedOnDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling isServiceBlockedOnDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}isServiceBlockedOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isServiceBlockedOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isServiceBlockedOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/servicesManager/isServiceBlockedOnFacility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}planServicePropagation(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling planServicePropagation.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/planServicePropagation`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllDestinations(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllDestinations.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeAllDestinations.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllDestinations`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeAllRequiredAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeAllRequiredAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"service"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeAllRequiredAttributes`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeDestination(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeDestination.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling removeDestination.");if(null==d)throw new Error("Required parameter destination was null or undefined when calling removeDestination.");if(null==l)throw new Error("Required parameter type was null or undefined when calling removeDestination.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"service")),null!=o&&(n=this.addToHttpParams(n,o,"facility")),null!=d&&(n=this.addToHttpParams(n,d,"destination")),null!=l&&(n=this.addToHttpParams(n,l,"type"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeDestination`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}removeRequiredAttribute(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttribute.");if(null==o)throw new Error("Required parameter attributeId was null or undefined when calling removeRequiredAttribute.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"attributeId"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttribute`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeRequiredAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling removeRequiredAttributes.");if(null==o)throw new Error("Required parameter attributes was null or undefined when calling removeRequiredAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attributes[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeRequiredAttributes`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeServiceFromServicesPackage(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServiceFromServicesPackage.");if(null==o)throw new Error("Required parameter service was null or undefined when calling removeServiceFromServicesPackage.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"servicesPackage")),null!=o&&(r=this.addToHttpParams(r,o,"service"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/removeServiceFromServicesPackage`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnDestinationById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"destination"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/d`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}unblockAllServicesOnDestinationByName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter destination was null or undefined when calling unblockAllServicesOnDestinationByName.");if(null==o)throw new Error("Required parameter destinationType was null or undefined when calling unblockAllServicesOnDestinationByName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"destination")),null!=o&&(r=this.addToHttpParams(r,o,"destinationType"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnDestination/dname-dtype`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockAllServicesOnFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling unblockAllServicesOnFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockAllServicesOnFacility`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}unblockServiceOnDestinationById(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationById.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationById.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-d`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}unblockServiceOnDestinationByName(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnDestinationByName.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling unblockServiceOnDestinationByName.");if(null==d)throw new Error("Required parameter destinationType was null or undefined when calling unblockServiceOnDestinationByName.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"service")),null!=o&&(t=this.addToHttpParams(t,o,"destination")),null!=d&&(t=this.addToHttpParams(t,d,"destinationType"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnDestination/s-dname-dtype`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}unblockServiceOnFacility(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling unblockServiceOnFacility.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling unblockServiceOnFacility.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/servicesManager/unblockServiceOnFacility`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateService(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateService was null or undefined when calling updateService.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateService`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateServicesPackage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateServicesPackage was null or undefined when calling updateServicesPackage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/servicesManager/updateServicesPackage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),te=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}countTasks(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/countTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}deleteTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskIdObject was null or undefined when calling deleteTask.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTask`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskResultIdObject was null or undefined when calling deleteTaskResultById.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResultById`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationIdObject was null or undefined when calling deleteTaskResultsIds.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/id`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteTaskResultsNames(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter TaskAndDestinationNameObject was null or undefined when calling deleteTaskResultsNames.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/deleteTaskResults/name`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getAllFacilitiesStates(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllFacilitiesStates`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAllResourcesState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter voId was null or undefined when calling getAllResourcesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"voId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getAllResourcesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityServicesState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityServicesState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityServicesState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getFacilityState(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling getFacilityState.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getFacilityState`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTask(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling getTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getTaskById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter taskResult was null or undefined when calling getTaskResultById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"taskResult"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResults(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResults`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getTaskResultsByTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForDestinations(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter destinations was null or undefined when calling getTaskResultsForDestinations.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"destinations[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForDestinations`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForGUIByTask(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTask.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTask`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getTaskResultsForGUIByTaskAndDestination(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");if(null==o)throw new Error("Required parameter destination was null or undefined when calling getTaskResultsForGUIByTaskAndDestination.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"task")),null!=o&&(r=this.addToHttpParams(r,o,"destination"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskAndDestination`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getTaskResultsForGUIByTaskOnlyNewest(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter task was null or undefined when calling getTaskResultsForGUIByTaskOnlyNewest.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"task"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/getTaskResultsForGUIByTaskOnlyNewest`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isThereSuchTask(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter service was null or undefined when calling isThereSuchTask.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling isThereSuchTask.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"service")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/isThereSuchTask`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}listAllTasks(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasks`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}listAllTasksForFacility(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter facility was null or undefined when calling listAllTasksForFacility.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"facility"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/tasksManager/listAllTasksForFacility`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}suspendTasksPropagation(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter suspend was null or undefined when calling suspendTasksPropagation.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"suspend"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/tasksManager/suspendTasksPropagation`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),ue=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addSpecificUserOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addUserExtSource(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}anonymizeUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}changeNonAuthzPasswordByToken(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==o)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"token")),null!=o&&(t=this.addToHttpParams(t,o,"password")),null!=d&&(t=this.addToHttpParams(t,d,"lang"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}changePasswordForLogin(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"login")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}changePasswordForUser(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==d)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"user")),null!=o&&(a=this.addToHttpParams(a,o,"namespace")),null!=d&&(a=this.addToHttpParams(a,d,"newPassword")),null!=l&&(a=this.addToHttpParams(a,l,"oldPassword")),null!=s&&(a=this.addToHttpParams(a,s,"checkOldPassword"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}checkPasswordResetRequestByTokenIsValid(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"token"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}checkPasswordStrength(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"password")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createAlternativePassword(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==o)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==d)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"user")),null!=o&&(n=this.addToHttpParams(n,o,"description")),null!=d&&(n=this.addToHttpParams(n,d,"loginNamespace")),null!=l&&(n=this.addToHttpParams(n,l,"password"));let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}createServiceUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteAlternativePassword(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==o)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==d)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"loginNamespace")),null!=d&&(t=this.addToHttpParams(t,d,"passwordId"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}deletePasswordForLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deletePasswordForUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}deleteUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findRichUsers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}findRichUsersWithAttributes(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"searchString")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrsNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findUsers(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"searchString"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}generateAccountForName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"namespace")),null!=o&&(r=this.addToHttpParams(r,o,"name"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllRichUsersWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"includedSpecificUsers"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getAssignedRichResourcesForUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getGroupsForFacilityWhereUserIsActive(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==o)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"facility"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsForResourceWhereUserIsActive(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==o)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"resource"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==o)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"vo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getGroupsWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getPendingPreferredEmailChanges(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUserExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUserWithAttributes(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersWithAttributesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichUsersWithoutVoWithAttributes(i,o="body",d=!1,l){let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"attrsNames[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSpecificUsersByUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getSponsorsForMember(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"member")),o&&o.forEach(x=>{r=this.addToHttpParams(r,x,"attrNames[]")});let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getSponsorsForMemberByVoAndLogin(i,o,d,l,s="body",r=!1,t){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==d)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let n=new e.LE({encoder:this.encoder});null!=i&&(n=this.addToHttpParams(n,i,"vo")),null!=o&&(n=this.addToHttpParams(n,o,"extSourceName")),null!=d&&(n=this.addToHttpParams(n,d,"extLogin")),l&&l.forEach(At=>{n=this.addToHttpParams(n,At,"attrNames[]")});let c,a=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(a=a.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(a=a.set("Authorization","Bearer "+c));let h=t&&t.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(a=a.set("Accept",h));let x=t&&t.context;void 0===x&&(x=new e.qT);let We="json";return h&&(We=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:x,params:n,responseType:We,withCredentials:this.configuration.withCredentials,headers:a,observe:s,reportProgress:r})}getUserByExtSourceNameAndExtLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==o)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extLogin")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getUserById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceByExtLoginAndExtSourceName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==o)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"extSourceName")),null!=o&&(r=this.addToHttpParams(r,o,"extSourceLogin"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourceByUniqueAttributeValueAndAttributeId(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeId")),null!=o&&(r=this.addToHttpParams(r,o,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==o)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"attributeName")),null!=o&&(r=this.addToHttpParams(r,o,"attributeValue"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getUserExtSources(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUserExtSourcesByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsers(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getUsersByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsersBySpecificUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"specificUser"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getUsersPage(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}getVosWhereUserIsAdmin(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosWhereUserIsMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"user"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}isLoginAvailable(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==o)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"loginNamespace")),null!=o&&(r=this.addToHttpParams(r,o,"login"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}loginExist(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSpecificUserOwner(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==o)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"specificUser"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeUserExtSource(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==o)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"userExtSource")),null!=d&&(t=this.addToHttpParams(t,d,"force"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}requestPreferredEmailChange(i,o,d,l,s,r,t="body",n=!1,a){if(null==i)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==o)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let c=new e.LE({encoder:this.encoder});null!=i&&(c=this.addToHttpParams(c,i,"user")),null!=o&&(c=this.addToHttpParams(c,o,"email")),null!=d&&(c=this.addToHttpParams(c,d,"lang")),null!=l&&(c=this.addToHttpParams(c,l,"linkPath")),null!=s&&(c=this.addToHttpParams(c,s,"customUrl")),null!=r&&(c=this.addToHttpParams(c,r,"idpFilter"));let x,h=this.defaultHeaders;x=this.configuration.lookupCredential("BasicAuth"),x&&(h=h.set("Authorization","Basic "+x)),x=this.configuration.lookupCredential("BearerAuth"),x&&(h=h.set("Authorization","Bearer "+x));let We=a&&a.httpHeaderAccept;void 0===We&&(We=this.configuration.selectHeaderAccept(["application/json"])),void 0!==We&&(h=h.set("Accept",We));let At=a&&a.context;void 0===At&&(At=new e.qT);let Ht="json";return We&&(Ht=We.startsWith("text")?"text":this.configuration.isJsonMime(We)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:At,params:c,responseType:Ht,withCredentials:this.configuration.withCredentials,headers:h,observe:t,reportProgress:n})}reservePasswordForLogin(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"login")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reservePasswordForUser(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==d)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"user")),null!=o&&(t=this.addToHttpParams(t,o,"namespace")),null!=d&&(t=this.addToHttpParams(t,d,"password"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}reserveRandomPassword(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}updateUser(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateUserExtSourceLastAccess(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"userExtSource"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}validatePasswordForLogin(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"login")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePasswordForUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==o)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"user")),null!=o&&(r=this.addToHttpParams(r,o,"namespace"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}validatePreferredEmailChangeWithToken(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==o)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"token")),null!=o&&(r=this.addToHttpParams(r,o,"u"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),de=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}getAppsConfig(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getGuiConfiguration(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunRPCVersion(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatistics(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunStatus(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getPerunSystemTimeInMillis(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Le=(()=>{class Ae{constructor(i,o,d){this.httpClient=i,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new e.WM,this.configuration=new A,d&&(this.configuration=d),"string"!=typeof this.configuration.basePath&&("string"!=typeof o&&(o=this.basePath),this.configuration.basePath=o),this.encoder=this.configuration.encoder||new b}addToHttpParams(i,o,d){return"object"!=typeof o||o instanceof Date?this.addToHttpParamsRecursive(i,o,d):this.addToHttpParamsRecursive(i,o)}addToHttpParamsRecursive(i,o,d){if(null==o)return i;if("object"==typeof o)if(Array.isArray(o))o.forEach(l=>i=this.addToHttpParamsRecursive(i,l,d));else if(o instanceof Date){if(null==d)throw Error("key may not be null if value is Date");i=i.append(d,o.toISOString().substr(0,10))}else Object.keys(o).forEach(l=>i=this.addToHttpParamsRecursive(i,o[l],null!=d?`${d}.${l}`:l));else{if(null==d)throw Error("key may not be null if value is not object or array");i=i.append(d,o)}return i}addMemberVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addSponsorRoleToUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}addVoAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithName(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==o)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"name")),null!=o&&(r=this.addToHttpParams(r,o,"shortName"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}createVoWithVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}deleteVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"force"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}findCandidates(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"id")),null!=o&&(t=this.addToHttpParams(t,o,"searchString")),null!=d&&(t=this.addToHttpParams(t,d,"maxNumOfResults"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}findCandidatesForGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==o)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"group")),null!=o&&(r=this.addToHttpParams(r,o,"searchString"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getAllVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getCompleteCandidatesForGroup(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"group")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getCompleteCandidatesForVo(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==o)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==d)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),o&&o.forEach(We=>{t=this.addToHttpParams(t,We,"attrNames[]")}),null!=d&&(t=this.addToHttpParams(t,d,"searchString"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getEnrichedVoById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMemberVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getMyEnrichedVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getMyVos(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}getParentVos(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getRichAdminsForVo(i,o,d,l,s,r="body",t=!1,n){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==s)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let a=new e.LE({encoder:this.encoder});null!=i&&(a=this.addToHttpParams(a,i,"vo")),null!=o&&(a=this.addToHttpParams(a,o,"role")),d&&d.forEach(Ht=>{a=this.addToHttpParams(a,Ht,"specificAttributes")}),null!=l&&(a=this.addToHttpParams(a,l,"allUserAttributes")),null!=s&&(a=this.addToHttpParams(a,s,"onlyDirectAdmins"));let h,c=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(c=c.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(c=c.set("Authorization","Bearer "+h));let x=n&&n.httpHeaderAccept;void 0===x&&(x=this.configuration.selectHeaderAccept(["application/json"])),void 0!==x&&(c=c.set("Accept",x));let We=n&&n.context;void 0===We&&(We=new e.qT);let At="json";return x&&(At=x.startsWith("text")?"text":this.configuration.isJsonMime(x)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:We,params:a,responseType:At,withCredentials:this.configuration.withCredentials,headers:c,observe:r,reportProgress:t})}getVoAdminGroups(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"role"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}getVoAdminUsers(i,o,d,l="body",s=!1,r){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==o)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let t=new e.LE({encoder:this.encoder});null!=i&&(t=this.addToHttpParams(t,i,"vo")),null!=o&&(t=this.addToHttpParams(t,o,"role")),null!=d&&(t=this.addToHttpParams(t,d,"onlyDirectAdmins"));let a,n=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(n=n.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(n=n.set("Authorization","Bearer "+a));let c=r&&r.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(n=n.set("Accept",c));let h=r&&r.context;void 0===h&&(h=new e.qT);let x="json";return c&&(x=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:h,params:t,responseType:x,withCredentials:this.configuration.withCredentials,headers:n,observe:l,reportProgress:s})}getVoBanById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoBanForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoBansForVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoById(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter id was null or undefined when calling getVoById.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"id"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoByShortName(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"shortName"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVoMembersCountsByStatus(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"vo"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosByIds(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let s=new e.LE({encoder:this.encoder});i&&i.forEach(h=>{s=this.addToHttpParams(s,h,"ids[]")});let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}getVosCount(i="body",o=!1,d){let s,l=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(l=l.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(l=l.set("Authorization","Bearer "+s));let r=d&&d.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(l=l.set("Accept",r));let t=d&&d.context;void 0===t&&(t=new e.qT);let n="json";return r&&(n=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:t,responseType:n,withCredentials:this.configuration.withCredentials,headers:l,observe:i,reportProgress:o})}removeMemberVo(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==o)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"memberVo"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeSponsorRoleFromUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminGroup(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==o)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"authorizedGroup"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoAdminUser(i,o,d="body",l=!1,s){if(null==i)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==o)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let r=new e.LE({encoder:this.encoder});null!=i&&(r=this.addToHttpParams(r,i,"vo")),null!=o&&(r=this.addToHttpParams(r,o,"user"));let n,t=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(t=t.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(t=t.set("Authorization","Bearer "+n));let a=s&&s.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(t=t.set("Accept",a));let c=s&&s.context;void 0===c&&(c=new e.qT);let h="json";return a&&(h=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:c,params:r,responseType:h,withCredentials:this.configuration.withCredentials,headers:t,observe:d,reportProgress:l})}removeVoBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"banId"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}removeVoBanForMember(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let s=new e.LE({encoder:this.encoder});null!=i&&(s=this.addToHttpParams(s,i,"member"));let t,r=this.defaultHeaders;t=this.configuration.lookupCredential("BasicAuth"),t&&(r=r.set("Authorization","Basic "+t)),t=this.configuration.lookupCredential("BearerAuth"),t&&(r=r.set("Authorization","Bearer "+t));let n=l&&l.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(r=r.set("Accept",n));let a=l&&l.context;void 0===a&&(a=new e.qT);let c="json";return n&&(c=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:a,params:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:r,observe:o,reportProgress:d})}setVoBan(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}updateVo(i,o="body",d=!1,l){if(null==i)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let r,s=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(s=s.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(s=s.set("Authorization","Bearer "+r));let t=l&&l.httpHeaderAccept;void 0===t&&(t=this.configuration.selectHeaderAccept(["application/json"])),void 0!==t&&(s=s.set("Accept",t));let n=l&&l.context;void 0===n&&(n=new e.qT);const c=this.configuration.selectHeaderContentType(["application/json"]);void 0!==c&&(s=s.set("Content-Type",c));let h="json";return t&&(h=t.startsWith("text")?"text":this.configuration.isJsonMime(t)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,i,{context:n,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:o,reportProgress:d})}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(e.eN),_.LFG(w,8),_.LFG(A,8))},Ae.\u0275prov=_.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})();const ze={WRITE:"WRITE",WRITE_VO:"WRITE_VO",WRITE_PUBLIC:"WRITE_PUBLIC",READ:"READ",READ_VO:"READ_VO",READ_PUBLIC:"READ_PUBLIC"},ye={ID:"ID",DATE_CREATED:"DATE_CREATED",TYPE:"TYPE",STATE:"STATE",SUBMITTER:"SUBMITTER",GROUP_NAME:"GROUP_NAME",MODIFIED_BY:"MODIFIED_BY"},H={HTML_COMMENT:"HTML_COMMENT",SUBMIT_BUTTON:"SUBMIT_BUTTON",AUTO_SUBMIT_BUTTON:"AUTO_SUBMIT_BUTTON",PASSWORD:"PASSWORD",VALIDATED_EMAIL:"VALIDATED_EMAIL",TEXTFIELD:"TEXTFIELD",TEXTAREA:"TEXTAREA",CHECKBOX:"CHECKBOX",RADIO:"RADIO",SELECTIONBOX:"SELECTIONBOX",COMBOBOX:"COMBOBOX",USERNAME:"USERNAME",HEADING:"HEADING",TIMEZONE:"TIMEZONE",EMBEDDED_GROUP_APPLICATION:"EMBEDDED_GROUP_APPLICATION",LIST_INPUT_BOX:"LIST_INPUT_BOX",MAP_INPUT_BOX:"MAP_INPUT_BOX"};let Te=(()=>{class Ae{constructor(i,o){if(i)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!o)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(i){return{ngModule:Ae,providers:[{provide:A,useFactory:i}]}}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.LFG(Ae,12),_.LFG(e.eN,8))},Ae.\u0275mod=_.oAB({type:Ae}),Ae.\u0275inj=_.cJS({providers:[],imports:[[]]}),Ae})()},19516:($e,_e,p)=>{"use strict";p.d(_e,{r5:()=>A.r,d4:()=>_,dp:()=>w.d});var e=p(69808),b=p(5e3);let _=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=b.oAB({type:G}),G.\u0275inj=b.cJS({imports:[[e.ez]]}),G})();var w=p(31359),A=(p(34447),p(82895));p(12856),p(20919),p(5865),p(53561),p(16119),p(7598),p(9954)},34447:($e,_e,p)=>{"use strict";p.d(_e,{a:()=>w});var e=p(36908),b=p(5e3),_=p(51062);let w=(()=>{class g{constructor(E,C){this.translate=E,this.storage=C}transform(E,C="en"){const I=this.storage.get("custom_labels");if(I)for(const P of I)if(P.label===E)return P[C];return E}}return g.\u0275fac=function(E){return new(E||g)(b.Y36(_.sK,16),b.Y36(e.d6,16))},g.\u0275pipe=b.Yjl({name:"customTranslate",type:g,pure:!0}),g})()},82895:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g,A){return A?`/organizations/${g.voId}/resources/${g.id}`:`/facilities/${g.facilityId}/resources/${g.id}`}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"getResourceRoute",type:_,pure:!0}),_})()},28764:($e,_e,p)=>{"use strict";p.d(_e,{F:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const P=I.value;if("true"===C.value){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}if(P){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"red":null!==ne&&ne.trim().length>0?"green":""}return""}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIconColor",type:g,pure:!0}),g})()},29218:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>w});var e=p(64080),b=p(9244),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"";const C=(0,b.IL)(E.attributes,e.r.GROUP_SYNC_ENABLED),I=(0,b.IL)(E.attributes,e.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"";const P=I.value;if("true"===C.value){const L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_STATE),O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}if(P){const L=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,b.IL)(E.attributes,e.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"sync_problem":(null!==ne&&ne.trim(),"sync")}return"sync_disabled"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncIcon",type:g,pure:!0}),g})()},45942:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(9244),b=p(64080),_=p(5e3);let w=(()=>{class g{transform(E){if(null==E||null==E.attributes)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const C=(0,e.IL)(E.attributes,b.r.GROUP_SYNC_ENABLED),I=(0,e.IL)(E.attributes,b.r.GROUP_STRUCTURE_SYNC_ENABLED);if(null===C&&null===I)return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED";const P=I.value;if("true"===C.value){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}if(P){const L=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_STATE),O=(0,e.IL)(E.attributes,b.r.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP),G=L.value,ne=O.value;return null!=G&&G.trim().length>0?"VO_DETAIL.GROUPS.GROUP_SYNC_FAILED":null!==ne&&ne.trim().length>0?"VO_DETAIL.GROUPS.GROUP_STRUCTURE_SYNCED":"VO_DETAIL.GROUPS.GROUP_NOT_YET_SYNCED"}return"VO_DETAIL.GROUPS.GROUP_NOT_SYNCED"}}return g.\u0275fac=function(E){return new(E||g)},g.\u0275pipe=_.Yjl({name:"groupSyncToolTip",type:g,pure:!0}),g})()},20919:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.g$)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberEmail",type:w,pure:!0}),w})()},5865:($e,_e,p)=>{"use strict";p.d(_e,{p:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.lt)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberLogins",type:w,pure:!0}),w})()},96974:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.Gw)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberOrganization",type:w,pure:!0}),w})()},69773:($e,_e,p)=>{"use strict";p.d(_e,{u:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"green";case"INVALID":return"red";default:return""}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIconColor",type:_,pure:!0}),_})()},21757:($e,_e,p)=>{"use strict";p.d(_e,{f:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){switch(g){case"VALID":return"verified_user";case"INVALID":return"report";case"EXPIRED":return"schedule";case"DISABLED":return"delete";default:return g}}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatusIcon",type:_,pure:!0}),_})()},12856:($e,_e,p)=>{"use strict";p.d(_e,{i:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A,E){var C,I;let P=null,m=null;A.memberAttributes&&(P=A.memberAttributes.find(O=>"membershipExpiration"===O.friendlyName),m=A.memberAttributes.find(O=>"groupMembershipExpiration"===O.friendlyName));let L="";return L=E?`\n Group status: ${(0,e.Oe)(A.groupStatus)}, Expiration: ${null!==(C=null==m?void 0:m.value)&&void 0!==C?C:"never"}`:A.memberAttributes?`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}, Expiration: ${null!==(I=null==P?void 0:P.value)&&void 0!==I?I:"never"}`:`Status: ${(0,e.Oe)(A.status,A.groupStatus)}\n Vo status: ${(0,e.Oe)(A.status)}`,L}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"memberStatusTooltip",type:w,pure:!0}),w})()},20551:($e,_e,p)=>{"use strict";p.d(_e,{l:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace("VALID","ACTIVE")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"memberStatus",type:_,pure:!0}),_})()},64597:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return g.replace(/\s/g,"-").toLowerCase()}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"multiWordDataCy",type:_,pure:!0}),_})()},62383:($e,_e,p)=>{"use strict";p.d(_e,{M:()=>_});var e=p(69808),b=p(5e3);let _=(()=>{class w{transform(A,E){return"voRules"===A?"Vo rules":"groupRules"===A?"Group rules":A&&"never"!==A.toLowerCase()?(0,e.p6)(A.replace(" ","T"),"d.M.yyyy "+(E?"H:mm:ss":""),"en"):"never"}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"parseDate",type:w,pure:!0}),w})()},53561:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.te)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"technicalOwners",type:w,pure:!0}),w})()},16119:($e,_e,p)=>{"use strict";p.d(_e,{S:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.kN)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userEmail",type:w,pure:!0}),w})()},31359:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(5e3);let b=(()=>{class _{transform(g){return[g.titleBefore,g.firstName,g.middleName,g.lastName,g.titleAfter].join(" ")}}return _.\u0275fac=function(g){return new(g||_)},_.\u0275pipe=e.Yjl({name:"userFullName",type:_,pure:!0}),_})()},7598:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.$0)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userLogins",type:w,pure:!0}),w})()},9954:($e,_e,p)=>{"use strict";p.d(_e,{Z:()=>_});var e=p(9244),b=p(5e3);let _=(()=>{class w{transform(A){return(0,e.OV)(A)}}return w.\u0275fac=function(A){return new(A||w)},w.\u0275pipe=b.Yjl({name:"userVo",type:w,pure:!0}),w})()},36908:($e,_e,p)=>{"use strict";p.d(_e,{yC:()=>de,F5:()=>te,sM:()=>ze,e8:()=>P,EB:()=>Me,Be:()=>Je,Hy:()=>R,ly:()=>ye,fb:()=>nt,xw:()=>le,x4:()=>w,v0:()=>G,SZ:()=>Le,V6:()=>ue,jq:()=>Se,BN:()=>me,Ip:()=>X,HV:()=>pe,d6:()=>E,UA:()=>je});var e=p(32105),b=p(45323),_=p(5e3);let w=(()=>{class z{constructor(D){this.authzSevice=D,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(D){this.principal=D,this.initData(D)}setPerunPolicies(D){this.perunPolicies=D}getPerunPolicies(){return this.perunPolicies}isAuthorized(D,H){if(null===this.principal.roles)return!1;const V=this.fetchPolicyWithAllIncludedPolicies(D);let xe=[];for(const Te of V)xe=xe.concat(Te.perunRoles);const Qe=this.fetchAllRelatedObjects(H);return this.resolveAuthorization(xe,Qe)}principalHasRole(D,H,V){let xe=H;return H.startsWith("Rich")&&(xe=H.substring(4)),!(!this.principal.roles[D]||!this.principal.roles[D][xe])&&this.principal.roles[D][xe].includes(Number(V.toString()))}canManageFacilities(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER,b.u.FACILITYADMIN,b.u.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(b.u.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOADMIN)}isThisVoAdminOrObserver(D){return this.editableVos.includes(Number(D.toString()))||this.observableVos.includes(Number(D.toString()))||this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)}isThisVoAdmin(D){return this.editableVos.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(b.u.SPONSOR)}isThisGroupAdmin(D){return this.editableGroups.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isGroupAdminInThisVo(D){return this.hasGroupInTheseVos.includes(D)}isFacilityAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.FACILITYADMIN)}isThisFacilityAdmin(D){return this.editableFacilities.includes(D)||this.principalRoles.has(b.u.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(b.u.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.VOOBSERVER,b.u.PERUNOBSERVER)}isThisVoObserver(D){return this.hasAtLeastOne(b.u.PERUNADMIN,b.u.PERUNOBSERVER)||this.observableVos.includes(D)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((D,H)=>{this.authzSevice.getAllRolesManagementRules().subscribe(V=>{this.allRolesManagementRules=V,D()},V=>H(V))})}assignAvailableRoles(D,H){this.allRolesManagementRules.forEach(V=>{V.primaryObject===H&&D.push(V.roleName)}),D.sort(),"Vo"===H&&this.voCustomSort(D)}isManagerPagePrivileged(D){const H=[];let V=D.beanName;V.startsWith("Rich")&&(V=V.substring(4)),this.assignAvailableRoles(H,V);const xe=new Map;this.setRolesAuthorization(H,D,xe);for(const Qe of xe.values())if(Qe.readAuth||Qe.manageAuth)return!0;return!1}setRolesAuthorization(D,H,V){for(const xe of D){let Qe=[],Te=[],Ae=[];for(const l of this.allRolesManagementRules)if(l.roleName===xe){Qe=Qe.concat(l.privilegedRolesToRead),Te=Te.concat(l.privilegedRolesToManage);for(const s of Object.keys(l.entitiesToManage))Ae="User"===s?[s].concat(Ae):Ae.concat(s);break}const ae=this.fetchAllRelatedObjects([H]),i=this.resolveAuthorization(Qe,ae),o=this.resolveAuthorization(Te,ae);V.set(xe,{readAuth:i,manageAuth:o,modes:Ae})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(D){for(const H of this.allRolesManagementRules)if(H.roleName===D)return H.primaryObject;return""}resolveAuthorization(D,H){for(const V of D){let xe=!0;for(const Qe of Object.keys(V)){const Te=V[Qe];if(null===Te)this.principalRoles.has(Qe)||(xe=!1);else if(H[Te]){for(const Ae of H[Te])if(!this.principalHasRole(Qe,Te,Ae)){xe=!1;break}}else xe=!1;if(!xe)break}if(xe)return!0}return!1}getPerunPolicy(D){for(const H of this.perunPolicies)if(H.policyName===D)return H;return null}fetchAllRelatedObjects(D){const H={};for(const V of D){let xe=V.beanName;switch(V.beanName.startsWith("Rich")&&(xe=V.beanName.substring(4)),H[xe]?H[xe].push(V.id):H[xe]=[V.id],xe){case"Member":H.User?H.User.push(V.userId):H.User=[V.userId],H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId];break;case"Group":case"ResourceTag":H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId];break;case"Resource":H.Facility?H.Facility.push(V.facilityId):H.Facility=[V.facilityId],H.Vo?H.Vo.push(V.voId):H.Vo=[V.voId]}}return H}fetchPolicyWithAllIncludedPolicies(D){const H=new Map;let V=[];for(V.push(D);0!==V.length;){const Qe=V.shift();if(H.has(Qe))continue;const Te=this.getPerunPolicy(Qe);if(!Te)return[];H.set(Qe,Te),V=V.concat(Te.includePolicies)}const xe=[];for(const Qe of H.values())xe.push(Qe);return xe}voCustomSort(D){for(let H=0;H{class z{constructor(){this.branding=""}setInstanceConfig(D){this.instanceConfig=D}setDefaultConfig(D){this.defaultConfig=D}getAppsConfig(){return this.appsConfig}setAppsConfig(D){this.appsConfig=D}setPerunPrincipal(D){this.principal=D}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(D){this.initialPageId=D}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(D){this.branding=D}skipOidc(){return this.get("skip_oidc")}get(...D){let H;if(""!==this.branding){const V=this.instanceConfig.brandings[this.branding];for(let xe=0;xe{class z{constructor(D,H,V,xe,Qe){this.injector=D,this.store=H,this.dialog=V,this.route=xe,this.oauthService=Qe,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(A.F0),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(Te=>{Te.idpFilter&&(this.filterShortname=String(Te.idpFilter))})}getClientConfig(){const D=this.setIdpFilter(),V=D?{acr_values:D}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(V.prompt="consent"),sessionStorage.getItem("mfa_route")&&(V.acr_values="https://refeds.org/profile/mfa",V.prompt="login",V.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:V}}setIdpFilter(){const D=location.search.substring(1).split("&");this.filterShortname=null;const H=this.store.get("oidc_client","filters");if(!H)return null;let V=null;return D.forEach(xe=>{const Qe=xe.split("=");"idpFilter"===Qe[0]&&H[Qe[1]]&&(this.filterShortname=Qe[1],V=H[Qe[1]])}),H.default&&!V?(this.filterShortname="default",H.default):V}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const D=location.pathname,H=location.search.substring(1);return"/api-callback"===D?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(D,H).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(D=>!!D&&(this.oauthService.events.pipe((0,g.h)(H=>"token_expires"===H.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const D=sessionStorage.getItem("mfa_route");if(D)return this.router.navigate([D],{replaceUrl:!0});let H=sessionStorage.getItem("auth:redirect");const V=sessionStorage.getItem("auth:queryParams");let xe=[];V&&(xe=V.split("&"));const Qe={};return xe.forEach(Te=>{const Ae=Te.split("=");Qe[Ae[0]]=Ae[1]}),(!H||"/login"===H)&&(H="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),Qe.idpFilter&&(this.filterShortname=String(Qe.idpFilter)),this.router.navigate([H],{queryParams:Qe,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,g.h)(D=>D instanceof A.m2)).subscribe(()=>{const D={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===D.idpFilter?{}:D,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(D){const H=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===D)return!0;for(const V of H)if(D.startsWith(V))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(D=>(localStorage.setItem("refresh_token",D.refresh_token),!0),()=>!1)}verifyAuthentication(D,H){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(V=>!!V||(this.isPotentiallyValidPath(D)?(sessionStorage.setItem("auth:redirect",D),sessionStorage.setItem("auth:queryParams",H),!1):new Promise((xe,Qe)=>Qe("Invalid path"))))}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(_.zs3),_.LFG(E),_.LFG(C.uw),_.LFG(A.gz),_.LFG(I.Ct))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var m=p(51062);let L=(()=>{class z{constructor(D){this.dialogRef=D}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(C.so))},z.\u0275cmp=_.Xpm({type:z,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(D,H){1&D&&(_.TgZ(0,"h2",0),_._uU(1),_.ALo(2,"translate"),_.qZA()),2&D&&(_.xp6(1),_.hij(" ",_.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[C.xY],pipes:[m.X$],styles:[""]}),z})();var O=p(9244);let G=(()=>{class z{constructor(D,H,V,xe,Qe,Te){this.authService=D,this.storeService=H,this.authResolver=V,this.authzService=xe,this.dialog=Qe,this.router=Te,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(D){this.loginScreenShown=D}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(D=>D(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(D=>{if(null===D.user){const H=(0,O.kZ)();this.dialog.open(L,H)}else{this.storeService.setPerunPrincipal(D),this.authResolver.init(D);const H=localStorage.getItem("routeAuthGuard");H&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([H]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(D=>{D()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const D=location.search.substr(1).split("&"),H={};for(const V of D){const xe=V.split("=");H[xe[0]]=xe[1]}return void this.router.navigate(["login"],{queryParams:H,queryParamsHandling:"merge"})}}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(P),_.LFG(E),_.LFG(w),_.LFG(e.Ct),_.LFG(C.uw),_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var ne=p(25245),ge=p(22313);let Me=(()=>{class z{constructor(D,H){this.matIconRegistry=D,this.domSanitizer=H,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(D=>{this.matIconRegistry.addSvgIcon(D.name,this.domSanitizer.bypassSecurityTrustResourceUrl(D.url))})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(ne.jv),_.LFG(ge.H7))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})();var oe=p(40520),Re=p(61737),T=p(40537),j=p(22868),Y=p(47423);let q=(()=>{class z{constructor(D){this.dialogRef=D}close(){this.dialogRef.close(!0)}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(C.so))},z.\u0275cmp=_.Xpm({type:z,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(D,H){1&D&&(_.TgZ(0,"h1",0),_._uU(1),_.ALo(2,"translate"),_.qZA(),_.TgZ(3,"div",1),_._uU(4),_.ALo(5,"translate"),_.qZA(),_.TgZ(6,"div",2),_.TgZ(7,"div",3),_.TgZ(8,"button",4),_.NdJ("click",function(){return H.close()}),_._uU(9),_.ALo(10,"translate"),_.qZA(),_.qZA(),_.qZA()),2&D&&(_.xp6(1),_.Oqu(_.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),_.xp6(3),_.hij(" ",_.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),_.xp6(5),_.hij(" ",_.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[C.uh,C.xY,C.H8,Y.lW],pipes:[m.X$],styles:[""]}),z})(),te=(()=>{class z{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const D=this.handleNextError;return this.handleNextError=!0,D}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),ue=(()=>{class z{constructor(D){this.translate=D,this.addNotification=new _.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(D,H=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===D.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===D.name?H:H+"\n"+D.name,D,D.message)}showRouteError(){const D=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),H=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(D,null,H)}showError(D,H,V,xe,Qe){this.addNotification.emit({type:"error",error:H,description:V,title:D,actionText:void 0===xe&&void 0!==V?this.getDefaultActionMessage():xe,delay:this.defaultErrorDelayMs,icon:"error_outline",action:Qe,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(D,H,V,xe){this.addNotification.emit({type:"success",description:H,title:D,actionText:void 0===V&&void 0!==H?this.getDefaultActionMessage():V,delay:this.defaultSuccessDelayMs,icon:"done",action:xe,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(m.sK))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),de=(()=>{class z{constructor(D,H,V,xe,Qe,Te){this.authService=D,this.apiRequestConfiguration=H,this.notificator=V,this.store=xe,this.dialog=Qe,this.initAuthService=Te}intercept(D,H){const V=this.store.get("api_url");if(D.url.includes("i18n")&&(D=D.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==V&&this.isCallToPerunApi(D.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const Te=(0,O.kZ)();Te.width="450px",this.dialogRefSessionExpiration=this.dialog.open(q,Te),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{(0,T.x)(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?D=D.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(D.url)&&(D=D.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const xe=this.apiRequestConfiguration.shouldHandleError(),Qe="POST"===D.method&&!this.store.skipOidc()&&this.isCallToPerunApi(D.url);return H.handle(D).pipe((0,j.b)(Te=>{Te instanceof oe.Zn&&Qe&&this.initAuthService.loadPrincipal()},Te=>{const Ae=this.formatErrors(Te,D);return void 0===Ae?(0,Re._)(Te):xe?void this.notificator.showRPCError(Ae):(0,Re._)(Ae)}))}isCallToPerunApi(D){return D.startsWith(this.store.get("api_url"))}formatErrors(D,H){let V;console.error(D);const xe=D.error;if(xe.errorId&&(V=xe),void 0!==V)return V.urlWithParams=H.urlWithParams,V.call=H.url,V.payload=H.body,V}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(P),_.LFG(te),_.LFG(ue),_.LFG(E),_.LFG(C.uw),_.LFG(G))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})(),Le=(()=>{class z{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(D){this.newNotificationsCount++,this.notificationData.push(D)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Ue=p(27221);let ze=(()=>{class z{constructor(D,H,V,xe){this.http=D,this.notificator=H,this.authService=V,this.storeService=xe}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let D=new oe.WM;return D=D.set("Authorization",this.authService.getAuthorizationHeaderValue()),D}get(D,H=!0){const V=`${this.getApiUrl()}${D}`;return this.http.get(V,{headers:this.getHeaders()}).pipe((0,Ue.K)(xe=>this.formatErrors(xe,V,null,H)))}put(D,H={},V=!0){const xe=`${this.getApiUrl()}${D}`,Qe=JSON.stringify(H);return this.http.put(xe,Qe,{headers:this.getHeaders()}).pipe((0,Ue.K)(Te=>this.formatErrors(Te,xe,Qe,V)))}post(D,H={},V=!0){const xe=`${this.getApiUrl()}${D}`,Qe=JSON.stringify(H);let Te=this.getHeaders();return Te=Te.set("Content-Type","application/json; charset=utf-8"),this.http.post(xe,Qe,{headers:Te}).pipe((0,Ue.K)(Ae=>this.formatErrors(Ae,xe,Qe,V)))}delete(D,H=!0){const V=`${this.getApiUrl()}${D}`;return this.http.delete(V,{headers:this.getHeaders()}).pipe((0,Ue.K)(xe=>this.formatErrors(xe,V,null,H)))}formatErrors(D,H,V,xe){const Qe=D.error;return Qe.call=H,Qe.payload=V,xe&&this.notificator.showRPCError(D.error),(0,Re._)(Qe)}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(oe.eN),_.LFG(ue),_.LFG(P),_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),le=(()=>{class z{constructor(D){this.router=D,this.lastState="forward",this.history=new Set,D.events.subscribe(H=>{H instanceof A.OD&&("popstate"===H.navigationTrigger?this.history.has(H.restoredState.navigationId)?(this.lastState="back",this.history.delete(H.restoredState.navigationId)):(this.lastState="forward",this.history.add(H.id)):(this.history.add(H.id),this.lastState="forward"))})}forceNavigate(D,H){if(null===D)return;let V="";D.forEach(xe=>V+="/"+xe),V.length>0&&(V=V.substring(1)),void 0===H&&(H={}),H.queryParams={redirectTo:V},this.router.navigate(["redirect"],H)}getLastState(){return this.lastState}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),je=(()=>{class z{isAllSelectedWithDisabledCheckbox(D,H,V,xe,Qe,Te,Ae,ae){return this.numSelected=D,this.numCanBeSelected=0,this.pageStart=Qe*V,this.pageEnd=this.pageStart+V,this.pageIterator=0,this.dataLength=""===H?Te.data.length:Te.filteredData.length,xe||(this.modulo=this.dataLength%V,this.pageEnd=0===this.modulo?this.pageStart+V:this.pageStart+this.modulo),Te.sortData(Te.filteredData,Ae).forEach(i=>{this.pageStart<=this.pageIterator&&this.pageIterator{ae?i(o)&&this.pageStart<=this.pageIterator&&this.pageIterator{class z{constructor(D,H,V,xe){this.membersService=D,this.usersService=H,this.auditMessagesManagerService=V,this.registrarService=xe}getMembers(D,H,V,xe,Qe,Te,Ae,ae,i,o){return this.membersService.getMembersPage({vo:D,attrNames:H,query:{pageSize:Qe,offset:xe*Qe,order:V,sortColumn:Te,statuses:Ae,searchString:ae,groupId:i,groupStatuses:o}})}getUsers(D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l){return this.usersService.getUsersPage({attrNames:D,query:{offset:xe*V,pageSize:xe,order:H,sortColumn:Qe,searchString:Te,withoutVo:Ae,facilityId:ae,voId:i,resourceId:o,serviceId:d,onlyAllowed:l}})}getAuditMessages(D,H,V){return this.auditMessagesManagerService.getMessagesPage({query:{offset:V*H,pageSize:V,order:D}})}getApplications(D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l,s){return this.registrarService.getApplicationsPage({vo:d,query:{pageSize:D,offset:H*D,order:V,sortColumn:xe,searchString:Te,includeGroupApplications:Qe,getDetails:s,states:Ae,dateFrom:ae,dateTo:i,userId:o,groupId:l}})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(e.uq),_.LFG(e.Fv),_.LFG(e.jw),_.LFG(e.tk))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Be=p(591),W=p(21086);class R{constructor(Q,D){this.dynamicPaginatingService=Q,this.authzService=D,this.allObjectCount=0,this.routeAuth=!0,this.dataSubject=new Be.X([]),this.loadingSubject=new Be.X(!1),this.loading$=this.loadingSubject.asObservable()}loadMembers(Q,D,H,V,xe,Qe,Te,Ae,ae,i){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const o=this.latestQueryTime;this.dynamicPaginatingService.getMembers(Q,D,H,V,xe,Qe,Te,Ae,ae,i).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(d=>{if(this.latestQueryTime<=o){const l=d.data;null!==l&&0!==l.length&&(this.routeAuth=this.authzService.isAuthorized("getMemberById_int_policy",[{beanName:"Vo",id:Q},l[0]])),this.allObjectCount=d.totalCount,this.dataSubject.next(l)}})}loadUsers(Q,D,H,V,xe,Qe,Te,Ae,ae,i,o,d){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const l=this.latestQueryTime;this.dynamicPaginatingService.getUsers(Q,V,H,D,xe,Qe,Te,Ae,ae,i,o,d).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(s=>{if(this.latestQueryTime<=l){const r=s.data;this.allObjectCount=s.totalCount,this.dataSubject.next(r)}})}loadAuditMessages(Q,D,H){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const V=this.latestQueryTime;this.dynamicPaginatingService.getAuditMessages(H,D,Q).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(xe=>{if(this.latestQueryTime<=V){const Qe=xe.data;this.allObjectCount=xe.totalCount,this.dataSubject.next(Qe)}})}loadApplications(Q,D,H,V,xe,Qe,Te,Ae,ae,i,o,d,l){this.loadingSubject.next(!0),this.latestQueryTime=Date.now();const s=this.latestQueryTime;this.dynamicPaginatingService.getApplications(Q,D,H,V,Qe,xe,Te,Ae,ae,i,d,o,null!=l&&l).pipe((0,Ue.K)(()=>(0,W.of)([])),(0,T.x)(()=>this.loadingSubject.next(!1))).subscribe(r=>{if(this.latestQueryTime<=s){const t=r.data;if(null!==t&&0!==t.length){const n=t;this.routeAuth=n[0].group?this.authzService.isAuthorized("getApplicationsForGroup_Group_List_policy",[n[0].group]):this.authzService.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[n[0].vo])}this.allObjectCount=r.totalCount,this.dataSubject.next(t)}})}connect(){return this.dataSubject.asObservable()}disconnect(){this.dataSubject.complete(),this.loadingSubject.complete()}getData(){return this.dataSubject.value}}let me=(()=>{class z{constructor(D,H){this.route=D,this.store=H}getPreferredLanguage(D){const H=this.store.get("supported_languages"),V=navigator.languages.map(Te=>Te.split("-")[0]),xe=location.search.substring(1).split("&");let Qe=null;for(const Te of xe){const Ae=Te.split("=");"lang"===Ae[0]&&(Qe=Ae[1])}return Qe&&H.includes(Qe)?Qe:D&&H.includes(D)?D:V&&H.includes(V[0])?V[0]:"en"}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(A.gz),_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var be=p(70655);let Ie=(()=>{class z{generatePdf(D){return(0,be.mG)(this,void 0,void 0,function*(){yield this.loadPdfMake(),this.pdfMake.createPdf(D).open()})}loadPdfMake(){return(0,be.mG)(this,void 0,void 0,function*(){if(!this.pdfMake){const D=yield p.e(641).then(p.t.bind(p,54641,23)),H=yield p.e(493).then(p.t.bind(p,58493,19));this.pdfMake=D.default,this.pdfMake.vfs=H.default.pdfMake.vfs}})}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),pe=(()=>{class z{constructor(D){this.pdfService=D}static generateTableForUser(D){const H=D.name.replace(";"," ").split(";")[0];return"OK"!==D.status?this.generateErrorRowForUser(H,D.status):z.generateRowForUser(H,D.login,D.password)}static generateErrorRowForUser(D,H){return{table:{heights:[30,1,1],widths:[249,249],body:[[{text:D,colSpan:1,alignment:"center",bold:!0,fontSize:12,margin:[20,25],color:"red"},{text:H,alignment:"center",bold:!0,color:"red"}]]}}}static generateRowForUser(D,H,V){return{table:{heights:[30,0],widths:[120,120,120,120],body:[[z.generateNameCell(D),{},z.getPasswordLabelCell(),z.generatePasswordCell(V)],[z.getLoginLabelCell(),z.generateLoginCell(H),{},{}]]}}}static generateNameCell(D){return{text:D,colSpan:2,alignment:"center",border:[!0,!0,!0,!1],bold:!0,fontSize:12,margin:[10,10]}}static generatePasswordCell(D){return{text:null==D?"N/A":D,border:[!1,!0,!0,!0],bold:!0,margin:[0,25],rowSpan:2,alignment:"left"}}static generateLoginCell(D){return{text:null==D?"N/A":D,border:[!1,!1,!0,!0],bold:!0}}static getLoginLabelCell(){return{text:"Login:",border:[!0,!1,!1,!0],alignment:"right",margin:[0,0,0,10]}}static getPasswordLabelCell(){return{text:"Password:",border:[!0,!0,!1,!0],alignment:"right",margin:[0,25],rowSpan:2}}generate(D){return(0,be.mG)(this,void 0,void 0,function*(){const H=[];for(const xe of D)H.push(z.generateTableForUser(xe));return this.pdfService.generatePdf({content:H})})}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(Ie))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})(),Se=(()=>{class z{constructor(D){this.storeService=D}static getBrandContainingDomain(D,H){for(const V of D)if(V.newApps.admin===H||V.newApps.profile===H||V.newApps.pwdReset===H)return V;return D[0]}getUrlForOtherApplication(D,H){const xe=window.location.href.split("/"),Qe=xe[0]+"//"+xe[2],Te=z.getBrandContainingDomain(this.storeService.getAppsConfig().brands,Qe);let Ae;if(Te.newApps[D])Ae=Te.newApps[D],"pwdReset"===D&&(Ae+=`?login-namespace=${H}`);else switch(Ae=Te.oldGuiDomain+"/fed",D){case"admin":Ae+="/gui/";break;case"profile":Ae+="/profile/";break;case"pwdReset":Ae+=`/pwd-reset/?login-namespace=${H}`}return Ae}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(E))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Xe=p(86087);let Je=(()=>{class z extends Xe.ye{constructor(){super(...arguments),this.getRangeLabel=function(D,H,V){let xe;return xe=V<1e3?String(V):V<1e4?"1 000":V<1e5?"10 000":"100 000",`${D*H+1} \u2013 ${(D+1)*H} of ${xe} +`}}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac}),z})(),nt=(()=>{class z{setEntity(D){this.entity=D}getEntity(){return this.entity}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var Ve=p(64080);let X=(()=>{class z{constructor(D,H,V,xe,Qe){this.authResolver=D,this.attributesManager=H,this.notificator=V,this.apiRequest=xe,this.router=Qe,this.routePolicies=new Map([["organizations",Te=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[Te])],["organizations-members",Te=>this.authResolver.isAuthorized("getMembersPage_Vo_MembersPageQuery_List_policy",[Te])],["organizations-groups",Te=>this.authResolver.isAuthorized("getAllRichGroupsWithAttributesByNames_Vo_List_policy",[Te])],["organizations-resources",Te=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[Te])||this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[Te])||this.authResolver.isAuthorized("getResourcesState_Vo_policy",[Te])],["organizations-resources-preview",Te=>this.authResolver.isAuthorized("getRichResources_Vo_policy",[Te])],["organizations-resources-tags",Te=>this.authResolver.isAuthorized("getAllResourcesTagsForVo_Vo_policy",[Te])],["organizations-resources-states",Te=>this.authResolver.isAuthorized("getResourcesState_Vo_policy",[Te])],["organizations-applications",Te=>this.authResolver.isAuthorized("getApplicationsForVo_Vo_List_Boolean_policy",[Te])],["organizations-sponsoredMembers",Te=>this.authResolver.isAuthorized("getSponsoredMembersAndTheirSponsors_Vo_policy",[Te])],["organizations-serviceAccounts",Te=>this.authResolver.isAuthorized("createSpecificMember_Vo_Candidate_List_SpecificUserType_List_policy",[Te])],["organizations-attributes",Te=>this.authResolver.isAuthorized("getEnrichedVoById_int_policy",[Te])],["organizations-statistics",Te=>this.authResolver.isAuthorized("getMembersCount_Vo_Status_policy",[Te])&&this.authResolver.isAuthorized("getMembersCount_Vo_policy",[Te])],["organizations-settings",Te=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[Te])||this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-expiration",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["organizations-settings-applicationForm",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-notifications",Te=>this.authResolver.isThisVoAdminOrObserver(Te.id)],["organizations-settings-extsources",Te=>this.authResolver.isAuthorized("getVoExtSources_Vo_policy",[Te])],["organizations-settings-memberOrganizations",()=>this.authResolver.isPerunAdmin()],["organizations-settings-hierarchicalInclusion",()=>this.authResolver.isPerunAdmin()],["members",Te=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[Te])],["members-groups",Te=>this.authResolver.isAuthorized("getMemberGroups_Member_policy",[Te])],["members-applications",Te=>this.authResolver.isAuthorized("vo-getApplicationsForMember_Group_Member_policy",[Te])],["members-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Member_policy",[Te])],["members-attributes",Te=>this.authResolver.isAuthorized("getRichMemberWithAttributes_Member_policy",[Te])],["groups",Te=>this.authResolver.isAuthorized("getGroupById_int_policy",[Te])],["groups-members",Te=>this.authResolver.isAuthorized("group-getMembersPage_Vo_MembersPageQuery_List_policy",[Te])],["groups-subgroups",Te=>this.authResolver.isAuthorized("getAllRichSubGroupsWithAttributesByNames_Group_List_policy",[Te])],["groups-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Group_policy",[Te])],["groups-applications",Te=>this.authResolver.isAuthorized("getApplicationsForGroup_Group_List_policy",[Te])],["groups-attributes",Te=>this.authResolver.isAuthorized("getGroupById_int_policy",[Te])],["groups-statistics",Te=>this.authResolver.isAuthorized("getGroupMembersCount_Group_policy",[Te])&&this.authResolver.isAuthorized("getGroupMembersCountsByVoStatus_Group_policy",[Te])&&this.authResolver.isAuthorized("getGroupMembersCountsByGroupStatus_Group_policy",[Te])],["groups-settings",Te=>this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])||this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[Te])||this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[Te])],["groups-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["groups-settings-applicationForm",Te=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])],["groups-settings-notifications",Te=>this.authResolver.isAuthorized("group-getFormItems_ApplicationForm_AppType_policy",[Te])],["groups-settings-relations",Te=>this.authResolver.isAuthorized("getGroupUnions_Group_boolean_policy",[Te])],["groups-settings-extsources",Te=>this.authResolver.isAuthorized("getGroupExtSources_Group_policy",[Te])],["groups-settings-expiration",Te=>(this.apiRequest.dontHandleErrorForNext(),this.attributesManager.getGroupAttributeByName(Te.id,Ve.r.GROUP_DEF_EXPIRATION_RULES).subscribe(()=>{},()=>{this.notificator.showRouteError(),this.router.navigate(["/notAuthorized"])}),!0)],["resources",Te=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[Te])],["resources-groups",Te=>this.authResolver.isAuthorized("getAssignedGroups_Resource_policy",[Te])],["resources-services",Te=>this.authResolver.isAuthorized("getAssignedServices_Resource_policy",[Te])],["resources-members",Te=>this.authResolver.isAuthorized("getAssignedMembers_Resource_policy",[Te])],["resources-tags",Te=>this.authResolver.isAuthorized("getAllResourcesTagsForResource_Resource_policy",[Te])],["resources-attributes",Te=>this.authResolver.isAuthorized("getRichResourceById_int_policy",[Te])],["resources-settings",Te=>this.authResolver.isManagerPagePrivileged(Te)],["resources-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["facilities",Te=>this.authResolver.isAuthorized("getFacilityById_int_policy",[Te])],["facilities-resources",Te=>this.authResolver.isAuthorized("getAssignedRichResources_Facility_policy",[Te])],["facilities-allowed-users",Te=>this.authResolver.isAuthorized("getAssignedUsers_Facility_Service_policy",[Te])],["facilities-allowed-groups",Te=>this.authResolver.isAuthorized("getAllowedGroups_Facility_Vo_Service_policy",[Te])],["facilities-services-status",Te=>this.authResolver.isAuthorized("getFacilityServicesState_Facility_policy",[Te])],["services-status",Te=>this.authResolver.isAuthorized("getTaskResultsByTask_int_policy",[Te])],["facilities-services-destinations",Te=>this.authResolver.isAuthorized("getAllRichDestinations_Facility_policy",[Te])],["facilities-hosts",()=>this.authResolver.isFacilityAdmin()],["facilities-attributes",Te=>this.authResolver.isAuthorized("getFacilityById_int_policy",[Te])],["facilities-settings",Te=>this.authResolver.isAuthorized("getOwners_Facility_policy",[Te])||this.authResolver.isManagerPagePrivileged(Te)||this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[Te])||this.authResolver.isAuthorized("getBansForFacility_int_policy",[Te])],["facilities-settings-owners",Te=>this.authResolver.isAuthorized("getOwners_Facility_policy",[Te])],["facilities-settings-managers",Te=>this.authResolver.isManagerPagePrivileged(Te)],["facilities-settings-security-teams",Te=>this.authResolver.isAuthorized("getAssignedSecurityTeams_Facility_policy",[Te])],["facilities-settings-blacklist",Te=>this.authResolver.isAuthorized("getBansForFacility_int_policy",[Te])]])}canNavigate(D,H){if(D.startsWith("admin")||D.startsWith("identities"))return this.authResolver.isPerunAdminOrObserver();if("facilities"===D&&-1===H.id)return this.authResolver.canManageFacilities();const V=this.routePolicies.get(D);return!V||V(H)}}return z.\u0275fac=function(D){return new(D||z)(_.LFG(w),_.LFG(e.H8),_.LFG(ue),_.LFG(te),_.LFG(A.F0))},z.\u0275prov=_.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"}),z})()},64080:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>e});let e=(()=>{class b{}return b.MEMBER_DEF_EXPIRATION="urn:perun:member:attribute-def:def:membershipExpiration",b.MEMBER_DEF_GROUP_EXPIRATION="urn:perun:member_group:attribute-def:def:groupMembershipExpiration",b.MEMBER_DEF_ORGANIZATION="urn:perun:member:attribute-def:def:organization",b.MEMBER_DEF_MAIL="urn:perun:member:attribute-def:def:mail",b.MEMBER_CORE_ID="urn:perun:member:attribute-def:core:id",b.MEMBER_LIFECYCLE_ALTERABLE="urn:perun:member:attribute-def:virt:isLifecycleAlterable",b.VO_DEF_EXPIRATION_RULES="urn:perun:vo:attribute-def:def:membershipExpirationRules",b.VO_DEF_MAIL_FOOTER="urn:perun:vo:attribute-def:def:mailFooter",b.VO_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:vo:attribute-def:def:blockManualMemberAdding",b.USER_DEF_ORGANIZATION="urn:perun:user:attribute-def:def:organization",b.USER_DEF_PREFERRED_MAIL="urn:perun:user:attribute-def:def:preferredMail",b.GROUP_DEF_EXPIRATION_RULES="urn:perun:group:attribute-def:def:groupMembershipExpirationRules",b.GROUP_DEF_MAIL_FOOTER="urn:perun:group:attribute-def:def:mailFooter",b.GROUP_SYNC_ENABLED="urn:perun:group:attribute-def:def:synchronizationEnabled",b.GROUP_LAST_SYNC_STATE="urn:perun:group:attribute-def:def:lastSynchronizationState",b.GROUP_LAST_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastSynchronizationTimestamp",b.GROUP_STRUCTURE_SYNC_ENABLED="urn:perun:group:attribute-def:def:groupStructureSynchronizationEnabled",b.GROUP_LAST_STRUCTURE_SYNC_STATE="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationState",b.GROUP_LAST_STRUCTURE_SYNC_TIMESTAMP="urn:perun:group:attribute-def:def:lastGroupStructureSynchronizationTimestamp",b.GROUP_BLOCK_MANUAL_MEMBER_ADDING="urn:perun:group:attribute-def:def:blockManualMemberAdding",b.UES_DEF_MAIL="urn:perun:ues:attribute-def:def:mail",b.UES_DEF_ORGANIZATION="urn:perun:ues:attribute-def:def:o",b})()},9244:($e,_e,p)=>{"use strict";p.d(_e,{dN:()=>m,Je:()=>C,f7:()=>I.f7,l9:()=>P.l,sF:()=>I.sF,XI:()=>I.XI,Xd:()=>I.Xd,aC:()=>I.aC,fx:()=>I.fx,dv:()=>I.dv,i5:()=>I.i5,Sd:()=>I.Sd,pR:()=>I.pR,ys:()=>I.ys,O6:()=>I.O6,B2:()=>I.B2,mH:()=>I.mH,MX:()=>I.MX,oU:()=>I.oU,IL:()=>I.IL,Jc:()=>I.Jc,Xn:()=>I.Xn,kZ:()=>I.kZ,v$:()=>I.v$,x2:()=>I.x2,vL:()=>I.vL,j4:()=>I.j4,jh:()=>I.jh,bx:()=>I.bx,Hm:()=>I.Hm,Cz:()=>I.Cz,sG:()=>I.sG,g$:()=>I.g$,bD:()=>I.bD,lt:()=>I.lt,Oe:()=>I.Oe,hu:()=>I.hu,Gw:()=>I.Gw,te:()=>I.te,kN:()=>I.kN,$0:()=>I.$0,OV:()=>I.OV});var e=p(86087),b=p(92181),_=p(25245),w=p(47423),g=p(51062),A=p(69808),E=p(5e3);let C=(()=>{class L{}return L.\u0275fac=function(G){return new(G||L)},L.\u0275mod=E.oAB({type:L}),L.\u0275inj=E.cJS({providers:[],imports:[[e.TU,b.Tx,_.Ps,w.ot,g.aw,A.ez]]}),L})();var I=p(17218),P=p(18750);class m{static passwordMatchValidator(O){const G=O.get("passwordCtrl").value,ne=O.get("passwordAgainCtrl").value;return O.get("passwordAgainCtrl").setErrors(G!==ne?{noPasswordMatch:!0}:null),null}static patternValidator(O){return G=>{if(!G.value)return null;let ne=0;for(const ge of O)ne+=ge.test(G.value)?1:0;return ne>=3?null:{isWeak:!0}}}}},17218:($e,_e,p)=>{"use strict";p.d(_e,{f7:()=>E,B2:()=>C,g$:()=>I,kN:()=>P,$0:()=>m,lt:()=>L,bD:()=>G,hu:()=>ne,Cz:()=>ge,te:()=>Me,ys:()=>oe,vL:()=>T,j4:()=>j,sF:()=>Y,XI:()=>q,OV:()=>de,MX:()=>Le,oU:()=>Ue,IL:()=>ze,Jc:()=>le,v$:()=>je,i5:()=>R,kZ:()=>me,dv:()=>be,Hm:()=>Ie,Oe:()=>pe,Gw:()=>Se,x2:()=>Xe,sG:()=>Je,pR:()=>Ve,Sd:()=>X,Xn:()=>Q,O6:()=>D,aC:()=>H,Xd:()=>V,fx:()=>xe,mH:()=>Qe,jh:()=>Te,bx:()=>Ae});var e=p(70655),b=p(48966),_=p(69808),w=p(94327),A=p(64080);const E=[5,10,25,100],C=/^(([^<>+()[\]\\.,;:\s@"-#$%&=]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]+))$/;function I(ae){let i="";return null==ae||ae.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(i=o.value)}),i&&0===i.length&&null!==ae.memberAttributes&&ae.memberAttributes.forEach(o=>{"mail"===o.friendlyName&&null!==o.value&&(i=o.value)}),i}function P(ae){let i="";return ae&&ae.userAttributes.forEach(o=>{"preferredMail"===o.friendlyName&&(i=o.value)}),i}function m(ae){let i="";return!!ae&&!!ae.userAttributes&&ae.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{i=i.concat(o.friendlyNameParameter,": ",o.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function L(ae){let i="";return!!ae&&!!ae.userAttributes&&ae.userAttributes.filter(o=>"login-namespace"===o.baseFriendlyName).filter(o=>null!==o.value).forEach(o=>{i=i.concat(o.friendlyNameParameter,": ",o.value,", ")}),i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function G(ae){let i="";return null!==ae.titleBefore&&(i+=ae.titleBefore+" "),null!==ae.firstName&&(i+=ae.firstName+" "),null!==ae.middleName&&(i+=ae.middleName+" "),null!==ae.lastName&&(i+=ae.lastName+" "),null!==ae.titleAfter&&(i+=ae.titleAfter+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function ne(ae){let i="";return null!==ae.firstName&&(i+=ae.firstName+" "),null!==ae.middleName&&(i+=ae.middleName+" "),null!==ae.lastName&&(i+=ae.lastName+" "),i.endsWith(" ")&&(i=i.substring(0,i.length-1)),i}function ge(ae){let i="";return ae.split(/(?=[A-Z])/g).forEach(d=>{i=i.concat(d.toLowerCase()),i=i.concat(" ")}),i=i.charAt(0).toUpperCase()+i.slice(1,i.length-1),i}function Me(ae){let i="";for(const o of ae)"technical"===o.type&&(i+=o.name+", ");return i.endsWith(", ")&&(i=i.substring(0,i.length-2)),i}function oe(ae,i){return(0,e.mG)(this,void 0,void 0,function*(){yield function Re(ae){return new Promise(i=>setTimeout(i,ae))}(ae),i()})}function T(ae){return JSON.parse(localStorage.getItem(ae))||[]}function j(ae){return JSON.parse(localStorage.getItem(ae))||[]}function Y(ae,i){if(null===localStorage.getItem(ae)){const o=[];o.unshift(i.id),localStorage.setItem(ae,JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem(ae)),d=function ue(ae,i){for(let o=0;o0&&o.splice(d,1),0!==d&&o.unshift(i.id),o.length>5&&o.pop(),localStorage.setItem(ae,JSON.stringify(o))}}function q(ae,i){if(null===localStorage.getItem("recent")){let o;o="Group"===ae.beanName?[{id:ae.id,name:ae.shortName,fullName:ae.name,type:ae.beanName,voId:ae.voId,voName:i}]:[{id:ae.id,name:ae.name,type:ae.beanName,voId:ae.voId}],localStorage.setItem("recent",JSON.stringify(o))}else{const o=JSON.parse(localStorage.getItem("recent"));let d;d="Group"===ae.beanName?{id:ae.id,name:ae.shortName,fullName:ae.name,type:ae.beanName,voId:ae.voId,voName:i}:{id:ae.id,name:ae.name,type:ae.beanName,voId:ae.voId};const l=function te(ae,i){for(let o=0;o0&&o.splice(l,1),0!==l&&o.unshift(d),o.length>5&&o.pop(),localStorage.setItem("recent",JSON.stringify(o))}}function de(ae){let i="";return ae&&ae.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(i=o.value)}),i}function Le(ae){return ae.filter(i=>!i.namespace.includes("def:core"))}function Ue(ae,i){const o=i.find(d=>d.id===ae);return o?o.parentGroupId?Ue(o.parentGroupId,i).concat(o):[o]:[]}function ze(ae,i){for(const o of ae)if(o.namespace+":"+o.friendlyName===i)return o;return null}function le(ae){return null!=ae.attributes["urn:perun:member:attribute-def:def:mail"]?ae.attributes["urn:perun:member:attribute-def:def:mail"]:null!=ae.attributes["urn:perun:user:attribute-def:def:preferredMail"]?ae.attributes["urn:perun:user:attribute-def:def:preferredMail"]:""}function je(ae){return ae.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceX509".toLowerCase()?function ye(ae){if(ae.includes("/CN=")){const i=ae.split("/");for(const o of i)if(o.startsWith("CN="))return Be(o.substring(3))}return ae}(ae.userExtSource.extSource.name):ae.userExtSource.extSource.type.toLowerCase()==="cz.metacentrum.perun.core.impl.ExtSourceIdp".toLowerCase()?function W(ae){switch(ae){case"https://idp.upce.cz/idp/shibboleth":return"University in Pardubice";case"https://idp.slu.cz/idp/shibboleth":return"University in Opava";case"https://login.feld.cvut.cz/idp/shibboleth":return"Faculty of Electrical Engineering, Czech Technical University In Prague";case"https://www.vutbr.cz/SSO/saml2/idp":return"Brno University of Technology";case"https://shibboleth.nkp.cz/idp/shibboleth":return"The National Library of the Czech Republic";case"https://idp2.civ.cvut.cz/idp/shibboleth":return"Czech Technical University In Prague";case"https://shibbo.tul.cz/idp/shibboleth":return"Technical University of Liberec";case"https://idp.mendelu.cz/idp/shibboleth":return"Mendel University in Brno";case"https://cas.cuni.cz/idp/shibboleth":return"Charles University in Prague";case"https://wsso.vscht.cz/idp/shibboleth":return"Institute of Chemical Technology Prague";case"https://idp.vsb.cz/idp/shibboleth":return"VSB \u2013 Technical University of Ostrava";case"https://whoami.cesnet.cz/idp/shibboleth":return"CESNET";case"https://helium.jcu.cz/idp/shibboleth":return"University of South Bohemia";case"https://idp.ujep.cz/idp/shibboleth":return"Jan Evangelista Purkyne University in Usti nad Labem";case"https://idp.amu.cz/idp/shibboleth":return"Academy of Performing Arts in Prague";case"https://idp.lib.cas.cz/idp/shibboleth":return"Academy of Sciences Library";case"https://shibboleth.mzk.cz/simplesaml/metadata.xml":return"Moravian Library";case"https://idp2.ics.muni.cz/idp/shibboleth":return"Masaryk University";case"https://idp.upol.cz/idp/shibboleth":return"Palacky University, Olomouc";case"https://idp.fnplzen.cz/idp/shibboleth":return"FN Plzen";case"https://id.vse.cz/idp/shibboleth":return"University of Economics, Prague";case"https://shib.zcu.cz/idp/shibboleth":return"University of West Bohemia";case"https://idptoo.osu.cz/simplesaml/saml2/idp/metadata.php":return"University of Ostrava";case"https://login.ics.muni.cz/idp/shibboleth":return"MetaCentrum";case"https://idp.hostel.eduid.cz/idp/shibboleth":return"eduID.cz Hostel";case"https://shibboleth.techlib.cz/idp/shibboleth":return"National Library of Technology";case"https://eduid.jamu.cz/idp/shibboleth":return"Janacek Academy of Music and Performing Arts in Brno";case"https://marisa.uochb.cas.cz/simplesaml/saml2/idp/metadata.php":return"Institute of Organic Chemistry and Biochemistry AS CR";case"https://shibboleth.utb.cz/idp/shibboleth":return"Tomas Bata University in Zlin";case"https://engine.elixir-czech.org/authentication/idp/metadata":case"@elixir-europe.org":return"Elixir Europe";case"https://login.elixir-czech.org/idp":return"Elixir Czech";case"https://mojeid.cz/saml/idp.xml":case"@mojeid.extidp.cesnet.cz":return"MojeID";case"https://www.egi.eu/idp/shibboleth":return"EGI SSO";case"@google.extidp.cesnet.cz":return"Google";case"@facebook.extidp.cesnet.cz":return"Facebook";case"@linkedin.extidp.cesnet.cz":return"LinkedIn";case"@twitter.extidp.cesnet.cz":return"Twitter";case"@seznam.extidp.cesnet.cz":return"Seznam";case"@github.extidp.cesnet.cz":return"GitHub";case"@orcid.extidp.cesnet.cz":return"OrcID";default:return ae}}(ae.userExtSource.extSource.name):ae.userExtSource.extSource.name}function Be(ae){return decodeURIComponent(ae.replace(/\\x/g,"%"))}function R(ae=["en","cs"]){const i={appType:"INITIAL",formId:0,mailType:"APP_CREATED_USER",send:!0,message:{},htmlMessage:{}};return ae.forEach(o=>{i.message[o]={locale:o,htmlFormat:!1,subject:"",text:""},i.htmlMessage[o]={locale:o,htmlFormat:!0,subject:"",text:""}}),i}function me(){const ae=new b.vA;return ae.disableClose=!0,ae.autoFocus=!1,ae}function be(ae){const i={applicationTypes:["INITIAL","EXTENSION"],federationAttribute:"",i18n:{},id:0,ordnum:0,perunDestinationAttribute:null,perunSourceAttribute:null,regex:"",required:!1,updatable:!0,disabled:"NEVER",hidden:"NEVER",disabledDependencyItemId:null,hiddenDependencyItemId:null,shortname:"",type:null};for(const o of ae)i.i18n[o]={locale:o,errorMessage:"",help:"",label:"",options:""};return i}function Ie(ae){return"virt"===ae.namespace.split(":")[4]}function pe(ae,i){return"valid"!==ae.toLowerCase()||i&&"valid"!==ae.toLowerCase()?ae:"ACTIVE"}function Se(ae){let i="";return null==ae||ae.memberAttributes.forEach(o=>{"organization"===o.friendlyName&&null!==o.value&&(i=o.value)}),0===i.length&&(null==ae||ae.userAttributes.forEach(o=>{"organization"===o.friendlyName&&(i=o.value)})),i}function Xe(ae){var i;const o=ae.attributes.find(d=>"groupMembershipExpiration"===d.baseFriendlyName);return null!==(i=null==o?void 0:o.value)&&void 0!==i?i:"Never"}function Je(ae){return ae&&"never"!==ae.toLowerCase()?(0,_.p6)(ae,"d.M.yyyy","en"):ae}const nt=new Intl.Collator("cs",{numeric:!0});function Ve(ae,i,o){const d=i.active,l=i.direction;return d&&""!==l?ae.sort((s,r)=>{const t=o(s,d),n=o(r,d);return nt.compare(t,n)*("asc"===l?1:-1)}):ae}function X(ae,i,o,d,l){i=i.toLowerCase();let s="";return o.forEach(r=>{s+=";"+d(ae,r)}),l&&(s+=";"+d(ae,"uuid")),s.toLowerCase().includes(i)}function Q(ae,i,o){const d=[],l=["checkbox","select","edit","menu","cite","extend","recent"];return i=i.filter(s=>!l.includes(s)),ae.forEach(s=>{const r={};i.forEach(t=>{var n;r[t]=(null!==(n=o(s,t))&&void 0!==n?n:"").split('"').join("''").trim()}),d.push(r)}),d}function D(ae,i="csv",o="export"){if("csv"===i){const d=(n,a)=>null===a?"":a,l=Object.keys(ae[0]),s=ae.map(n=>l.map(a=>JSON.stringify(n[a],d)).join(","));s.unshift(l.join(",").split(" ").join("_").split('"').join("''"));const r=s.join("\r\n"),t=new Blob([r],{type:"text/csv"});(0,w.saveAs)(t,`${o}.${i}`)}}function H(ae,i){return ae.name.toLowerCase()>i.name.toLowerCase()?1:ae.name.toLowerCase()===i.name.toLowerCase()?0:-1}function V(ae,i){return ae.displayName.toLowerCase()>i.displayName.toLowerCase()?1:ae.displayName.toLowerCase()===i.displayName.toLowerCase()?0:-1}function xe(ae,i){var o,d,l,s;let r,t;return ae.user?(r=ae.user.lastName?ae.user.lastName:null!==(o=ae.user.firstName)&&void 0!==o?o:"",t=i.user.lastName?i.user.lastName:null!==(d=i.user.firstName)&&void 0!==d?d:""):(r=ae.lastName?ae.lastName:null!==(l=ae.firstName)&&void 0!==l?l:"",t=i.lastName?i.lastName:null!==(s=i.firstName)&&void 0!==s?s:""),r>t?1:r===t?0:-1}function Qe(ae,i,o=[]){ae.enable(),ae.clearValidators(),ae.clearAsyncValidators(),ae.setValidators(i),ae.setAsyncValidators(o),ae.updateValueAndValidity()}function Te(ae,i){return!!ae&&ae.some(o=>o.namespace+":"+o.friendlyName===i&&null!==o.value&&"true"===String(o.value))}function Ae(ae){return Te(ae.attributes,A.r.GROUP_SYNC_ENABLED)||Te(ae.attributes,A.r.GROUP_STRUCTURE_SYNC_ENABLED)}},18750:($e,_e,p)=>{"use strict";p.d(_e,{l:()=>G});var e=p(5e3),b=p(86087),_=p(17218),w=p(10036),g=p(69808),A=p(47423),E=p(92181),C=p(25245),I=p(51062);let P=(()=>{class ne{constructor(){this.exportData=new e.vpe}}return ne.\u0275fac=function(J){return new(J||ne)},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(J,Me){if(1&J&&(e.TgZ(0,"div",0),e.TgZ(1,"button",1),e.TgZ(2,"mat-icon"),e._uU(3,"more_vert"),e.qZA(),e.qZA(),e.TgZ(4,"mat-menu",null,2),e.TgZ(6,"button",3),e._uU(7),e.ALo(8,"translate"),e.qZA(),e.qZA(),e.TgZ(9,"mat-menu",null,4),e.TgZ(11,"button",5),e.NdJ("click",function(){return Me.exportData.emit("csv")}),e._uU(12,"Csv"),e.qZA(),e.qZA(),e.qZA()),2&J){const oe=e.MAs(5),Re=e.MAs(10);e.xp6(1),e.Q6J("matMenuTriggerFor",oe),e.xp6(5),e.Q6J("matMenuTriggerFor",Re),e.xp6(1),e.hij(" ",e.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[A.lW,E.p6,C.Hw,E.VK,E.OP],pipes:[I.X$],styles:[""]}),ne})();function m(ne,ge){if(1&ne){const J=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(oe){return e.CHM(J),e.oxw().exportData.emit(oe)}),e.qZA()}}function L(ne,ge){if(1&ne){const J=e.EpF();e.TgZ(0,"perun-web-apps-table-options",6),e.NdJ("exportData",function(oe){return e.CHM(J),e.oxw().exportData.emit(oe)}),e.qZA()}}const O=["*"];let G=(()=>{class ne{constructor(J){this.tableConfigService=J,this.hideExport=!1,this.pageSizeOptions=_.f7,this.dataLength=0,this.exportData=new e.vpe,this.pageSize=5}set matPaginator(J){this.paginator=J}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(J){this.pageSize=J.pageSize,this.tableConfigService.setTablePageSize(this.tableId,J.pageSize)}pageChangedBottom(J){this.paginator.pageSize=J.pageSize,this.paginator.pageIndex=J.pageIndex,this.paginator.page.emit(J),this.pageSize=J.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,J.pageSize)}}return ne.\u0275fac=function(J){return new(J||ne)(e.Y36(w.dB))},ne.\u0275cmp=e.Xpm({type:ne,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(J,Me){if(1&J&&e.Gf(b.NW,7),2&J){let oe;e.iGM(oe=e.CRH())&&(Me.matPaginator=oe.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:O,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(J,Me){1&J&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.TgZ(2,"mat-paginator",2),e.NdJ("page",function(Re){return Me.pageChangedTop(Re)}),e.qZA(),e.YNc(3,m,1,0,"perun-web-apps-table-options",3),e.qZA(),e.TgZ(4,"div",4),e.Hsn(5),e.qZA(),e.TgZ(6,"div",1),e.TgZ(7,"mat-paginator",5),e.NdJ("page",function(Re){return Me.pageChangedBottom(Re)}),e.qZA(),e.YNc(8,L,1,0,"perun-web-apps-table-options",3),e.qZA(),e.qZA()),2&J&&(e.xp6(2),e.Q6J("length",Me.dataLength)("pageSizeOptions",Me.pageSizeOptions)("pageSize",Me.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport),e.xp6(4),e.Q6J("length",Me.paginator.length)("pageIndex",Me.paginator.pageIndex)("pageSizeOptions",Me.paginator.pageSizeOptions)("pageSize",Me.paginator.pageSize),e.xp6(1),e.Q6J("ngIf",!Me.hideExport))},directives:[b.NW,g.O5,P],styles:[""]}),ne})()},98380:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>I});var e=p(5e3),b=p(69808),_=p(25245);function w(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," info "),e.qZA())}function g(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," warning "),e.qZA())}function A(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," dangerous "),e.qZA())}function E(P,m){1&P&&(e.TgZ(0,"mat-icon",2),e._uU(1," check_circle "),e.qZA())}const C=["*"];let I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275cmp=e.Xpm({type:P,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:C,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(L,O){1&L&&(e.F$t(),e.TgZ(0,"div",0),e.YNc(1,w,2,0,"mat-icon",1),e.YNc(2,g,2,0,"mat-icon",1),e.YNc(3,A,2,0,"mat-icon",1),e.YNc(4,E,2,0,"mat-icon",1),e.Hsn(5),e.qZA()),2&L&&(e.ekj("warn-alert","warn"===O.alert_type)("error-alert","error"===O.alert_type)("success-alert","success"===O.alert_type)("info-alert","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","info"===O.alert_type),e.xp6(1),e.Q6J("ngIf","warn"===O.alert_type),e.xp6(1),e.Q6J("ngIf","error"===O.alert_type),e.xp6(1),e.Q6J("ngIf","success"===O.alert_type))},directives:[b.O5,_.Hw],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),P})()},63189:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>w});var e=p(25245),b=p(69808),_=p(5e3);let w=(()=>{class g{}return g.\u0275fac=function(E){return new(E||g)},g.\u0275mod=_.oAB({type:g}),g.\u0275inj=_.cJS({imports:[[e.Ps,b.ez]]}),g})()},6397:($e,_e,p)=>{"use strict";p.d(_e,{C:()=>ae});var e=p(69808),b=p(47423),_=p(9224),w=p(77446),g=p(48966),A=p(4834),E=p(81125),C=p(67322),I=p(5e3),P=p(90508);let je=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[P.uc,P.BQ],P.uc,P.BQ]}),i})();var Be=p(25245),W=p(98833),R=p(20773),me=p(92081),be=p(32075),Ie=p(53435),pe=p(93075),Se=p(86856),Xe=p(2638),Je=p(14623),nt=p(92181);let V=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[P.BQ],P.BQ]}),i})();var xe=p(84847),Qe=p(86087),Te=p(29772),Ae=p(74107);let ae=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=I.oAB({type:i}),i.\u0275inj=I.cJS({imports:[[e.ez,_.QW,A.t,E.To,b.ot,je,w.p9,Be.Ps,be.p0,g.Is,R.Cq,C.lN,W.c,Ie.Cl,pe.u5,pe.UX,me.T5,Se.FA,P.XK,Xe.SJ,Je.ie,nt.Tx,V,xe.JX,Qe.TU,Te.AV,Ae.LD,P.si],_.QW,A.t,E.To,b.ot,je,w.p9,Be.Ps,be.p0,g.Is,R.Cq,C.lN,W.c,Ie.Cl,pe.u5,pe.UX,me.T5,Se.FA,P.XK,Xe.SJ,Je.ie,nt.Tx,V,xe.JX,Qe.TU,Te.AV,Ae.LD,P.si]}),i})()},1302:function($e,_e,p){var e;!function(b,_){var w={};!function(b){"use strict";b.__esModule=!0,b.digestLength=32,b.blockSize=64;var _=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function w(O,G,ne,ge,J){for(var Me,oe,Re,T,j,Y,q,te,ue,de,Le,Ue,ze;J>=64;){for(Me=G[0],oe=G[1],Re=G[2],T=G[3],j=G[4],Y=G[5],q=G[6],te=G[7],de=0;de<16;de++)O[de]=(255&ne[Le=ge+4*de])<<24|(255&ne[Le+1])<<16|(255&ne[Le+2])<<8|255&ne[Le+3];for(de=16;de<64;de++)O[de]=((Ue=((ue=O[de-2])>>>17|ue<<15)^(ue>>>19|ue<<13)^ue>>>10)+O[de-7]|0)+((ze=((ue=O[de-15])>>>7|ue<<25)^(ue>>>18|ue<<14)^ue>>>3)+O[de-16]|0);for(de=0;de<64;de++)Ue=(((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&Y^~j&q)|0)+(te+(_[de]+O[de]|0)|0)|0,ze=((Me>>>2|Me<<30)^(Me>>>13|Me<<19)^(Me>>>22|Me<<10))+(Me&oe^Me&Re^oe&Re)|0,te=q,q=Y,Y=j,j=T+Ue|0,T=Re,Re=oe,oe=Me,Me=Ue+ze|0;G[0]+=Me,G[1]+=oe,G[2]+=Re,G[3]+=T,G[4]+=j,G[5]+=Y,G[6]+=q,G[7]+=te,ge+=64,J-=64}return ge}var g=function(){function O(){this.digestLength=b.digestLength,this.blockSize=b.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return O.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},O.prototype.clean=function(){for(var G=0;G0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=G[ge++],ne--;64===this.bufferLength&&(w(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(ge=w(this.temp,this.state,G,ge,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=G[ge++],ne--;return this},O.prototype.finish=function(G){if(!this.finished){var ne=this.bytesHashed,ge=this.bufferLength,J=ne/536870912|0,Me=ne<<3,oe=ne%64<56?64:128;this.buffer[ge]=128;for(var Re=ge+1;Re>>24&255,this.buffer[oe-7]=J>>>16&255,this.buffer[oe-6]=J>>>8&255,this.buffer[oe-5]=J>>>0&255,this.buffer[oe-4]=Me>>>24&255,this.buffer[oe-3]=Me>>>16&255,this.buffer[oe-2]=Me>>>8&255,this.buffer[oe-1]=Me>>>0&255,w(this.temp,this.state,this.buffer,0,oe),this.finished=!0}for(Re=0;Re<8;Re++)G[4*Re+0]=this.state[Re]>>>24&255,G[4*Re+1]=this.state[Re]>>>16&255,G[4*Re+2]=this.state[Re]>>>8&255,G[4*Re+3]=this.state[Re]>>>0&255;return this},O.prototype.digest=function(){var G=new Uint8Array(this.digestLength);return this.finish(G),G},O.prototype._saveState=function(G){for(var ne=0;nethis.blockSize)(new g).update(G).finish(ne).clean();else for(var ge=0;ge1&&G.update(O),ne&&G.update(ne),G.update(ge),G.finish(O),ge[0]++}b.HMAC=A,b.hash=E,b.default=E,b.hmac=C;var P=new Uint8Array(b.digestLength);b.hkdf=function m(O,G,ne,ge){void 0===G&&(G=P),void 0===ge&&(ge=32);for(var J=new Uint8Array([1]),Me=C(G,O),oe=new A(Me),Re=new Uint8Array(oe.digestLength),T=Re.length,j=new Uint8Array(ge),Y=0;Y>>24&255,oe[1]=q>>>16&255,oe[2]=q>>>8&255,oe[3]=q>>>0&255,J.reset(),J.update(G),J.update(oe),J.finish(T);for(var te=0;te=m.status}function A(P){try{P.dispatchEvent(new MouseEvent("click"))}catch(L){var m=document.createEvent("MouseEvents");m.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),P.dispatchEvent(m)}}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,C=E.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=E.saveAs||("object"!=typeof window||window!==E?function(){}:"download"in HTMLAnchorElement.prototype&&!C?function(P,m,L){var O=E.URL||E.webkitURL,G=document.createElement("a");G.download=m=m||P.name||"download",G.rel="noopener","string"==typeof P?(G.href=P,G.origin===location.origin?A(G):g(G.href)?w(P,m,L):A(G,G.target="_blank")):(G.href=O.createObjectURL(P),setTimeout(function(){O.revokeObjectURL(G.href)},4e4),setTimeout(function(){A(G)},0))}:"msSaveOrOpenBlob"in navigator?function(P,m,L){if(m=m||P.name||"download","string"!=typeof P)navigator.msSaveOrOpenBlob(function _(P,m){return void 0===m?m={autoBom:!1}:"object"!=typeof m&&(console.warn("Deprecated: Expected third argument to be a object"),m={autoBom:!m}),m.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(P.type)?new Blob(["\ufeff",P],{type:P.type}):P}(P,L),m);else if(g(P))w(P,m,L);else{var O=document.createElement("a");O.href=P,O.target="_blank",setTimeout(function(){A(O)})}}:function(P,m,L,O){if((O=O||open("","_blank"))&&(O.document.title=O.document.body.innerText="downloading..."),"string"==typeof P)return w(P,m,L);var G="application/octet-stream"===P.type,ne=/constructor/i.test(E.HTMLElement)||E.safari,ge=/CriOS\/[\d]+/.test(navigator.userAgent);if((ge||G&&ne||C)&&"undefined"!=typeof FileReader){var J=new FileReader;J.onloadend=function(){var Re=J.result;Re=ge?Re:Re.replace(/^data:[^;]*;/,"data:attachment/file;"),O?O.location.href=Re:location=Re,O=null},J.readAsDataURL(P)}else{var Me=E.URL||E.webkitURL,oe=Me.createObjectURL(P);O?O.location=oe:location.href=oe,O=null,setTimeout(function(){Me.revokeObjectURL(oe)},4e4)}});E.saveAs=I.saveAs=I,$e.exports=I}.apply(_e,[]))&&($e.exports=b)},591:($e,_e,p)=>{"use strict";p.d(_e,{X:()=>_});var e=p(8929),b=p(95279);class _ extends e.xQ{constructor(g){super(),this._value=g}get value(){return this.getValue()}_subscribe(g){const A=super._subscribe(g);return A&&!A.closed&&g.next(this._value),A}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new b.N;return this._value}next(g){super.next(this._value=g)}}},51869:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);class b extends e.L{constructor(w,g,A){super(),this.parent=w,this.outerValue=g,this.outerIndex=A,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},29312:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>g});var e=p(68896),b=p(21086),_=p(61737);class g{constructor(E,C,I){this.kind=E,this.value=C,this.error=I,this.hasValue="N"===E}observe(E){switch(this.kind){case"N":return E.next&&E.next(this.value);case"E":return E.error&&E.error(this.error);case"C":return E.complete&&E.complete()}}do(E,C,I){switch(this.kind){case"N":return E&&E(this.value);case"E":return C&&C(this.error);case"C":return I&&I()}}accept(E,C,I){return E&&"function"==typeof E.next?this.observe(E):this.do(E,C,I)}toObservable(){switch(this.kind){case"N":return(0,b.of)(this.value);case"E":return(0,_._)(this.error);case"C":return(0,e.c)()}throw new Error("unexpected notification kind value")}static createNext(E){return void 0!==E?new g("N",E):g.undefinedValueNotification}static createError(E){return new g("E",void 0,E)}static createComplete(){return g.completeNotification}}g.completeNotification=new g("C"),g.undefinedValueNotification=new g("N",void 0)},56498:($e,_e,p)=>{"use strict";p.d(_e,{y:()=>I});var e=p(43489),_=p(57668),w=p(73292),A=p(93821),E=p(4843),C=p(92830);let I=(()=>{class m{constructor(O){this._isScalar=!1,O&&(this._subscribe=O)}lift(O){const G=new m;return G.source=this,G.operator=O,G}subscribe(O,G,ne){const{operator:ge}=this,J=function g(m,L,O){if(m){if(m instanceof e.L)return m;if(m[_.b])return m[_.b]()}return m||L||O?new e.L(m,L,O):new e.L(w.c)}(O,G,ne);if(J.add(ge?ge.call(J,this.source):this.source||C.v.useDeprecatedSynchronousErrorHandling&&!J.syncErrorThrowable?this._subscribe(J):this._trySubscribe(J)),C.v.useDeprecatedSynchronousErrorHandling&&J.syncErrorThrowable&&(J.syncErrorThrowable=!1,J.syncErrorThrown))throw J.syncErrorValue;return J}_trySubscribe(O){try{return this._subscribe(O)}catch(G){C.v.useDeprecatedSynchronousErrorHandling&&(O.syncErrorThrown=!0,O.syncErrorValue=G),function b(m){for(;m;){const{closed:L,destination:O,isStopped:G}=m;if(L||G)return!1;m=O&&O instanceof e.L?O:null}return!0}(O)?O.error(G):console.warn(G)}}forEach(O,G){return new(G=P(G))((ne,ge)=>{let J;J=this.subscribe(Me=>{try{O(Me)}catch(oe){ge(oe),J&&J.unsubscribe()}},ge,ne)})}_subscribe(O){const{source:G}=this;return G&&G.subscribe(O)}[A.L](){return this}pipe(...O){return 0===O.length?this:(0,E.U)(O)(this)}toPromise(O){return new(O=P(O))((G,ne)=>{let ge;this.subscribe(J=>ge=J,J=>ne(J),()=>G(ge))})}}return m.create=L=>new m(L),m})();function P(m){if(m||(m=C.v.Promise||Promise),!m)throw new Error("no Promise impl found");return m}},73292:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>_});var e=p(92830),b=p(22782);const _={closed:!0,next(w){},error(w){if(e.v.useDeprecatedSynchronousErrorHandling)throw w;(0,b.z)(w)},complete(){}}},826:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>b});var e=p(43489);class b extends e.L{notifyNext(w,g,A,E,C){this.destination.next(g)}notifyError(w,g){this.destination.error(w)}notifyComplete(w){this.destination.complete()}}},96831:($e,_e,p)=>{"use strict";p.d(_e,{t:()=>ge});var e=p(8929),b=p(56686),w=p(32268);const A=new class g extends w.v{}(class _ extends b.o{constructor(oe,Re){super(oe,Re),this.scheduler=oe,this.work=Re}schedule(oe,Re=0){return Re>0?super.schedule(oe,Re):(this.delay=Re,this.state=oe,this.scheduler.flush(this),this)}execute(oe,Re){return Re>0||this.closed?super.execute(oe,Re):this._execute(oe,Re)}requestAsyncId(oe,Re,T=0){return null!==T&&T>0||null===T&&this.delay>0?super.requestAsyncId(oe,Re,T):oe.flush(this)}});var E=p(42654),C=p(43489),I=p(29312);class L extends C.L{constructor(oe,Re,T=0){super(oe),this.scheduler=Re,this.delay=T}static dispatch(oe){const{notification:Re,destination:T}=oe;Re.observe(T),this.unsubscribe()}scheduleMessage(oe){this.destination.add(this.scheduler.schedule(L.dispatch,this.delay,new O(oe,this.destination)))}_next(oe){this.scheduleMessage(I.P.createNext(oe))}_error(oe){this.scheduleMessage(I.P.createError(oe)),this.unsubscribe()}_complete(){this.scheduleMessage(I.P.createComplete()),this.unsubscribe()}}class O{constructor(oe,Re){this.notification=oe,this.destination=Re}}var G=p(95279),ne=p(45283);class ge extends e.xQ{constructor(oe=Number.POSITIVE_INFINITY,Re=Number.POSITIVE_INFINITY,T){super(),this.scheduler=T,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=oe<1?1:oe,this._windowTime=Re<1?1:Re,Re===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(oe){const Re=this._events;Re.push(oe),Re.length>this._bufferSize&&Re.shift(),super.next(oe)}nextTimeWindow(oe){this._events.push(new J(this._getNow(),oe)),this._trimBufferThenGetEvents(),super.next(oe)}_subscribe(oe){const Re=this._infiniteTimeWindow,T=Re?this._events:this._trimBufferThenGetEvents(),j=this.scheduler,Y=T.length;let q;if(this.closed)throw new G.N;if(this.isStopped||this.hasError?q=E.w.EMPTY:(this.observers.push(oe),q=new ne.W(this,oe)),j&&oe.add(oe=new L(oe,j)),Re)for(let te=0;teRe&&(q=Math.max(q,Y-Re)),q>0&&j.splice(0,q),j}}class J{constructor(oe,Re){this.time=oe,this.value=Re}}},8929:($e,_e,p)=>{"use strict";p.d(_e,{Yc:()=>E,xQ:()=>C});var e=p(56498),b=p(43489),_=p(42654),w=p(95279),g=p(45283),A=p(57668);class E extends b.L{constructor(m){super(m),this.destination=m}}let C=(()=>{class P extends e.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[A.b](){return new E(this)}lift(L){const O=new I(this,this);return O.operator=L,O}next(L){if(this.closed)throw new w.N;if(!this.isStopped){const{observers:O}=this,G=O.length,ne=O.slice();for(let ge=0;genew I(m,L),P})();class I extends C{constructor(m,L){super(),this.destination=m,this.source=L}next(m){const{destination:L}=this;L&&L.next&&L.next(m)}error(m){const{destination:L}=this;L&&L.error&&this.destination.error(m)}complete(){const{destination:m}=this;m&&m.complete&&this.destination.complete()}_subscribe(m){const{source:L}=this;return L?this.source.subscribe(m):_.w.EMPTY}}},45283:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>b});var e=p(42654);class b extends e.w{constructor(w,g){super(),this.subject=w,this.subscriber=g,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const w=this.subject,g=w.observers;if(this.subject=null,!g||0===g.length||w.isStopped||w.closed)return;const A=g.indexOf(this.subscriber);-1!==A&&g.splice(A,1)}}},43489:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>E});var e=p(67043),b=p(73292),_=p(42654),w=p(57668),g=p(92830),A=p(22782);class E extends _.w{constructor(P,m,L){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=b.c;break;case 1:if(!P){this.destination=b.c;break}if("object"==typeof P){P instanceof E?(this.syncErrorThrowable=P.syncErrorThrowable,this.destination=P,P.add(this)):(this.syncErrorThrowable=!0,this.destination=new C(this,P));break}default:this.syncErrorThrowable=!0,this.destination=new C(this,P,m,L)}}[w.b](){return this}static create(P,m,L){const O=new E(P,m,L);return O.syncErrorThrowable=!1,O}next(P){this.isStopped||this._next(P)}error(P){this.isStopped||(this.isStopped=!0,this._error(P))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(P){this.destination.next(P)}_error(P){this.destination.error(P),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:P}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=P,this}}class C extends E{constructor(P,m,L,O){super(),this._parentSubscriber=P;let G,ne=this;(0,e.m)(m)?G=m:m&&(G=m.next,L=m.error,O=m.complete,m!==b.c&&(ne=Object.create(m),(0,e.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=G,this._error=L,this._complete=O}next(P){if(!this.isStopped&&this._next){const{_parentSubscriber:m}=this;g.v.useDeprecatedSynchronousErrorHandling&&m.syncErrorThrowable?this.__tryOrSetError(m,this._next,P)&&this.unsubscribe():this.__tryOrUnsub(this._next,P)}}error(P){if(!this.isStopped){const{_parentSubscriber:m}=this,{useDeprecatedSynchronousErrorHandling:L}=g.v;if(this._error)L&&m.syncErrorThrowable?(this.__tryOrSetError(m,this._error,P),this.unsubscribe()):(this.__tryOrUnsub(this._error,P),this.unsubscribe());else if(m.syncErrorThrowable)L?(m.syncErrorValue=P,m.syncErrorThrown=!0):(0,A.z)(P),this.unsubscribe();else{if(this.unsubscribe(),L)throw P;(0,A.z)(P)}}}complete(){if(!this.isStopped){const{_parentSubscriber:P}=this;if(this._complete){const m=()=>this._complete.call(this._context);g.v.useDeprecatedSynchronousErrorHandling&&P.syncErrorThrowable?(this.__tryOrSetError(P,m),this.unsubscribe()):(this.__tryOrUnsub(m),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(P,m){try{P.call(this._context,m)}catch(L){if(this.unsubscribe(),g.v.useDeprecatedSynchronousErrorHandling)throw L;(0,A.z)(L)}}__tryOrSetError(P,m,L){if(!g.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,L)}catch(O){return g.v.useDeprecatedSynchronousErrorHandling?(P.syncErrorValue=O,P.syncErrorThrown=!0,!0):((0,A.z)(O),!0)}return!1}_unsubscribe(){const{_parentSubscriber:P}=this;this._context=null,this._parentSubscriber=null,P.unsubscribe()}}},42654:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(66688),b=p(57830),_=p(67043);const g=(()=>{function C(I){return Error.call(this),this.message=I?`${I.length} errors occurred during unsubscription:\n${I.map((P,m)=>`${m+1}) ${P.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=I,this}return C.prototype=Object.create(Error.prototype),C})();class A{constructor(I){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,I&&(this._unsubscribe=I)}unsubscribe(){let I;if(this.closed)return;let{_parentOrParents:P,_unsubscribe:m,_subscriptions:L}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,P instanceof A)P.remove(this);else if(null!==P)for(let O=0;OI.concat(P instanceof g?P.errors:P),[])}A.EMPTY=((C=new A).closed=!0,C)},92830:($e,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=!1;const b={Promise:void 0,set useDeprecatedSynchronousErrorHandling(_){if(_){const w=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+w.stack)}else e&&console.log("RxJS: Back to a better error behavior. Thank you. <3");e=_},get useDeprecatedSynchronousErrorHandling(){return e}}},71762:($e,_e,p)=>{"use strict";p.d(_e,{c:()=>g,N:()=>A});var e=p(8929),b=p(56498),_=p(42654),w=p(74327);class g extends b.y{constructor(m,L){super(),this.source=m,this.subjectFactory=L,this._refCount=0,this._isComplete=!1}_subscribe(m){return this.getSubject().subscribe(m)}getSubject(){const m=this._subject;return(!m||m.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let m=this._connection;return m||(this._isComplete=!1,m=this._connection=new _.w,m.add(this.source.subscribe(new E(this.getSubject(),this))),m.closed&&(this._connection=null,m=_.w.EMPTY)),m}refCount(){return(0,w.x)()(this)}}const A=(()=>{const P=g.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:P._subscribe},_isComplete:{value:P._isComplete,writable:!0},getSubject:{value:P.getSubject},connect:{value:P.connect},refCount:{value:P.refCount}}})();class E extends e.Yc{constructor(m,L){super(m),this.connectable=L}_error(m){this._unsubscribe(),super._error(m)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const m=this.connectable;if(m){this.connectable=null;const L=m._connection;m._refCount=0,m._subject=null,m._connection=null,L&&L.unsubscribe()}}}},36053:($e,_e,p)=>{"use strict";p.d(_e,{aj:()=>E});var e=p(72866),b=p(66688),_=p(826),w=p(69054),g=p(33009);const A={};function E(...P){let m=null,L=null;return(0,e.K)(P[P.length-1])&&(L=P.pop()),"function"==typeof P[P.length-1]&&(m=P.pop()),1===P.length&&(0,b.k)(P[0])&&(P=P[0]),(0,g.n)(P,L).lift(new C(m))}class C{constructor(m){this.resultSelector=m}call(m,L){return L.subscribe(new I(m,this.resultSelector))}}class I extends _.L{constructor(m,L){super(m),this.resultSelector=L,this.active=0,this.values=[],this.observables=[]}_next(m){this.values.push(A),this.observables.push(m)}_complete(){const m=this.observables,L=m.length;if(0===L)this.destination.complete();else{this.active=L,this.toRespond=L;for(let O=0;O{"use strict";p.d(_e,{z:()=>w});var e=p(21086),b=p(89146);function w(...g){return function _(){return(0,b.J)(1)}()((0,e.of)(...g))}},88514:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>w});var e=p(56498),b=p(5254),_=p(68896);function w(g){return new e.y(A=>{let E;try{E=g()}catch(I){return void A.error(I)}return(E?(0,b.D)(E):(0,_.c)()).subscribe(A)})}},68896:($e,_e,p)=>{"use strict";p.d(_e,{E:()=>b,c:()=>_});var e=p(56498);const b=new e.y(g=>g.complete());function _(g){return g?function w(g){return new e.y(A=>g.schedule(()=>A.complete()))}(g):b}},30567:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>A});var e=p(56498),b=p(66688),_=p(24850),w=p(57830),g=p(5254);function A(...C){if(1===C.length){const I=C[0];if((0,b.k)(I))return E(I,null);if((0,w.K)(I)&&Object.getPrototypeOf(I)===Object.prototype){const P=Object.keys(I);return E(P.map(m=>I[m]),P)}}if("function"==typeof C[C.length-1]){const I=C.pop();return E(C=1===C.length&&(0,b.k)(C[0])?C[0]:C,null).pipe((0,_.U)(P=>I(...P)))}return E(C,null)}function E(C,I){return new e.y(P=>{const m=C.length;if(0===m)return void P.complete();const L=new Array(m);let O=0,G=0;for(let ne=0;ne{J||(J=!0,G++),L[ne]=Me},error:Me=>P.error(Me),complete:()=>{O++,(O===m||!J)&&(G===m&&P.next(I?I.reduce((Me,oe,Re)=>(Me[oe]=L[Re],Me),{}):L),P.complete())}}))}})}},5254:($e,_e,p)=>{"use strict";p.d(_e,{D:()=>ne});var e=p(56498),b=p(59249),_=p(42654),w=p(93821),E=p(66454),C=p(5430),m=p(98955),L=p(58515);function ne(ge,J){return J?function G(ge,J){if(null!=ge){if(function P(ge){return ge&&"function"==typeof ge[w.L]}(ge))return function g(ge,J){return new e.y(Me=>{const oe=new _.w;return oe.add(J.schedule(()=>{const Re=ge[w.L]();oe.add(Re.subscribe({next(T){oe.add(J.schedule(()=>Me.next(T)))},error(T){oe.add(J.schedule(()=>Me.error(T)))},complete(){oe.add(J.schedule(()=>Me.complete()))}}))})),oe})}(ge,J);if((0,m.t)(ge))return function A(ge,J){return new e.y(Me=>{const oe=new _.w;return oe.add(J.schedule(()=>ge.then(Re=>{oe.add(J.schedule(()=>{Me.next(Re),oe.add(J.schedule(()=>Me.complete()))}))},Re=>{oe.add(J.schedule(()=>Me.error(Re)))}))),oe})}(ge,J);if((0,L.z)(ge))return(0,E.r)(ge,J);if(function O(ge){return ge&&"function"==typeof ge[C.hZ]}(ge)||"string"==typeof ge)return function I(ge,J){if(!ge)throw new Error("Iterable cannot be null");return new e.y(Me=>{const oe=new _.w;let Re;return oe.add(()=>{Re&&"function"==typeof Re.return&&Re.return()}),oe.add(J.schedule(()=>{Re=ge[C.hZ](),oe.add(J.schedule(function(){if(Me.closed)return;let T,j;try{const Y=Re.next();T=Y.value,j=Y.done}catch(Y){return void Me.error(Y)}j?Me.complete():(Me.next(T),this.schedule())}))})),oe})}(ge,J)}throw new TypeError((null!==ge&&typeof ge||ge)+" is not observable")}(ge,J):ge instanceof e.y?ge:new e.y((0,b.s)(ge))}},33009:($e,_e,p)=>{"use strict";p.d(_e,{n:()=>w});var e=p(56498),b=p(13650),_=p(66454);function w(g,A){return A?(0,_.r)(g,A):new e.y((0,b.V)(g))}},23753:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>A});var e=p(56498),b=p(66688),_=p(67043),w=p(24850);function A(m,L,O,G){return(0,_.m)(O)&&(G=O,O=void 0),G?A(m,L,O).pipe((0,w.U)(ne=>(0,b.k)(ne)?G(...ne):G(ne))):new e.y(ne=>{E(m,L,function ge(J){ne.next(arguments.length>1?Array.prototype.slice.call(arguments):J)},ne,O)})}function E(m,L,O,G,ne){let ge;if(function P(m){return m&&"function"==typeof m.addEventListener&&"function"==typeof m.removeEventListener}(m)){const J=m;m.addEventListener(L,O,ne),ge=()=>J.removeEventListener(L,O,ne)}else if(function I(m){return m&&"function"==typeof m.on&&"function"==typeof m.off}(m)){const J=m;m.on(L,O),ge=()=>J.off(L,O)}else if(function C(m){return m&&"function"==typeof m.addListener&&"function"==typeof m.removeListener}(m)){const J=m;m.addListener(L,O),ge=()=>J.removeListener(L,O)}else{if(!m||!m.length)throw new TypeError("Invalid event target");for(let J=0,Me=m.length;J{"use strict";p.d(_e,{F:()=>w});var e=p(56498),b=p(20353),_=p(84241);function w(A=0,E=b.P){return(!(0,_.k)(A)||A<0)&&(A=0),(!E||"function"!=typeof E.schedule)&&(E=b.P),new e.y(C=>(C.add(E.schedule(g,A,{subscriber:C,counter:0,period:A})),C))}function g(A){const{subscriber:E,counter:C,period:I}=A;E.next(C),this.schedule({subscriber:E,counter:C+1,period:I},I)}},36787:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>g});var e=p(56498),b=p(72866),_=p(89146),w=p(33009);function g(...A){let E=Number.POSITIVE_INFINITY,C=null,I=A[A.length-1];return(0,b.K)(I)?(C=A.pop(),A.length>1&&"number"==typeof A[A.length-1]&&(E=A.pop())):"number"==typeof I&&(E=A.pop()),null===C&&1===A.length&&A[0]instanceof e.y?A[0]:(0,_.J)(E)((0,w.n)(A,C))}},21086:($e,_e,p)=>{"use strict";p.d(_e,{of:()=>w});var e=p(72866),b=p(33009),_=p(66454);function w(...g){let A=g[g.length-1];return(0,e.K)(A)?(g.pop(),(0,_.r)(g,A)):(0,b.n)(g)}},61946:($e,_e,p)=>{"use strict";p.d(_e,{S3:()=>g});var e=p(66688),b=p(33009),_=p(826),w=p(69054);function g(...C){if(1===C.length){if(!(0,e.k)(C[0]))return C[0];C=C[0]}return(0,b.n)(C,void 0).lift(new A)}class A{call(I,P){return P.subscribe(new E(I))}}class E extends _.L{constructor(I){super(I),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(I){this.observables.push(I)}_complete(){const I=this.observables,P=I.length;if(0===P)this.destination.complete();else{for(let m=0;m{"use strict";p.d(_e,{_:()=>b});var e=p(56498);function b(w,g){return new e.y(g?A=>g.schedule(_,0,{error:w,subscriber:A}):A=>A.error(w))}function _({error:w,subscriber:g}){g.error(w)}},98723:($e,_e,p)=>{"use strict";p.d(_e,{H:()=>g});var e=p(56498),b=p(20353),_=p(84241),w=p(72866);function g(E=0,C,I){let P=-1;return(0,_.k)(C)?P=Number(C)<1?1:Number(C):(0,w.K)(C)&&(I=C),(0,w.K)(I)||(I=b.P),new e.y(m=>{const L=(0,_.k)(E)?E:+E-I.now();return I.schedule(A,L,{index:0,period:P,subscriber:m})})}function A(E){const{index:C,period:I,subscriber:P}=E;if(P.next(C),!P.closed){if(-1===I)return P.complete();E.index=C+1,this.schedule(E,I)}}},57138:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>C});var e=p(20353),b=p(826),_=p(69054);class g{constructor(P){this.durationSelector=P}call(P,m){return m.subscribe(new A(P,this.durationSelector))}}class A extends b.L{constructor(P,m){super(P),this.durationSelector=m,this.hasValue=!1}_next(P){if(this.value=P,this.hasValue=!0,!this.throttled){let m;try{const{durationSelector:O}=this;m=O(P)}catch(O){return this.destination.error(O)}const L=(0,_.D)(this,m);!L||L.closed?this.clearThrottle():this.add(this.throttled=L)}}clearThrottle(){const{value:P,hasValue:m,throttled:L}=this;L&&(this.remove(L),this.throttled=null,L.unsubscribe()),m&&(this.value=null,this.hasValue=!1,this.destination.next(P))}notifyNext(P,m,L,O){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var E=p(98723);function C(I,P=e.P){return function w(I){return function(m){return m.lift(new g(I))}}(()=>(0,E.H)(I,P))}},27221:($e,_e,p)=>{"use strict";p.d(_e,{K:()=>w});var e=p(826),b=p(51869),_=p(69054);function w(E){return function(I){const P=new g(E),m=I.lift(P);return P.caught=m}}class g{constructor(C){this.selector=C}call(C,I){return I.subscribe(new A(C,this.selector,this.caught))}}class A extends e.L{constructor(C,I,P){super(C),this.selector=I,this.caught=P}error(C){if(!this.isStopped){let I;try{I=this.selector(C,this.caught)}catch(L){return void super.error(L)}this._unsubscribeAndRecycle();const P=new b.d(this,void 0,void 0);this.add(P);const m=(0,_.D)(this,I,void 0,void 0,P);m!==P&&this.add(m)}}}},21406:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(61709);function b(_,w){return(0,e.zg)(_,w,1)}},80013:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>_});var e=p(43489),b=p(20353);function _(E,C=b.P){return I=>I.lift(new w(E,C))}class w{constructor(C,I){this.dueTime=C,this.scheduler=I}call(C,I){return I.subscribe(new g(C,this.dueTime,this.scheduler))}}class g extends e.L{constructor(C,I,P){super(C),this.dueTime=I,this.scheduler=P,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(C){this.clearDebounce(),this.lastValue=C,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(A,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:C}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(C)}}clearDebounce(){const C=this.debouncedSubscription;null!==C&&(this.remove(C),C.unsubscribe(),this.debouncedSubscription=null)}}function A(E){E.debouncedNext()}},47314:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(43489);function b(g=null){return A=>A.lift(new _(g))}class _{constructor(A){this.defaultValue=A}call(A,E){return E.subscribe(new w(A,this.defaultValue))}}class w extends e.L{constructor(A,E){super(A),this.defaultValue=E,this.isEmpty=!0}_next(A){this.isEmpty=!1,this.destination.next(A)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},40943:($e,_e,p)=>{"use strict";p.d(_e,{g:()=>g});var e=p(20353),b=p(82697),_=p(43489),w=p(29312);function g(I,P=e.P){const L=(0,b.J)(I)?+I-P.now():Math.abs(I);return O=>O.lift(new A(L,P))}class A{constructor(P,m){this.delay=P,this.scheduler=m}call(P,m){return m.subscribe(new E(P,this.delay,this.scheduler))}}class E extends _.L{constructor(P,m,L){super(P),this.delay=m,this.scheduler=L,this.queue=[],this.active=!1,this.errored=!1}static dispatch(P){const m=P.source,L=m.queue,O=P.scheduler,G=P.destination;for(;L.length>0&&L[0].time-O.now()<=0;)L.shift().notification.observe(G);if(L.length>0){const ne=Math.max(0,L[0].time-O.now());this.schedule(P,ne)}else this.unsubscribe(),m.active=!1}_schedule(P){this.active=!0,this.destination.add(P.schedule(E.dispatch,this.delay,{source:this,destination:this.destination,scheduler:P}))}scheduleNotification(P){if(!0===this.errored)return;const m=this.scheduler,L=new C(m.now()+this.delay,P);this.queue.push(L),!1===this.active&&this._schedule(m)}_next(P){this.scheduleNotification(w.P.createNext(P))}_error(P){this.errored=!0,this.queue=[],this.destination.error(P),this.unsubscribe()}_complete(){this.scheduleNotification(w.P.createComplete()),this.unsubscribe()}}class C{constructor(P,m){this.time=P,this.notification=m}}},75778:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(g,A){return E=>E.lift(new _(g,A))}class _{constructor(A,E){this.compare=A,this.keySelector=E}call(A,E){return E.subscribe(new w(A,this.compare,this.keySelector))}}class w extends e.L{constructor(A,E,C){super(A),this.keySelector=C,this.hasKey=!1,"function"==typeof E&&(this.compare=E)}compare(A,E){return A===E}_next(A){let E;try{const{keySelector:I}=this;E=I?I(A):A}catch(I){return this.destination.error(I)}let C=!1;if(this.hasKey)try{const{compare:I}=this;C=I(this.key,E)}catch(I){return this.destination.error(I)}else this.hasKey=!0;C||(this.key=E,this.destination.next(A))}}},92198:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g,A){return function(C){return C.lift(new _(g,A))}}class _{constructor(A,E){this.predicate=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.predicate,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.predicate=E,this.thisArg=C,this.count=0}_next(A){let E;try{E=this.predicate.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}E&&this.destination.next(A)}}},40537:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>_});var e=p(43489),b=p(42654);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.callback=E}call(E,C){return C.subscribe(new g(E,this.callback))}}class g extends e.L{constructor(E,C){super(E),this.add(new b.w(C))}}},87224:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>E});var e=p(84450),b=p(92198),_=p(72986),w=p(47314),g=p(34907),A=p(35379);function E(C,I){const P=arguments.length>=2;return m=>m.pipe(C?(0,b.h)((L,O)=>C(L,O,m)):A.y,(0,_.q)(1),P?(0,w.d)(I):(0,g.T)(()=>new e.K))}},24850:($e,_e,p)=>{"use strict";p.d(_e,{U:()=>b});var e=p(43489);function b(g,A){return function(C){if("function"!=typeof g)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return C.lift(new _(g,A))}}class _{constructor(A,E){this.project=A,this.thisArg=E}call(A,E){return E.subscribe(new w(A,this.project,this.thisArg))}}class w extends e.L{constructor(A,E,C){super(A),this.project=E,this.count=0,this.thisArg=C||this}_next(A){let E;try{E=this.project.call(this.thisArg,A,this.count++)}catch(C){return void this.destination.error(C)}this.destination.next(E)}}},77604:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.value=A}call(A,E){return E.subscribe(new w(A,this.value))}}class w extends e.L{constructor(A,E){super(A),this.value=E}_next(A){this.destination.next(this.value)}}},89146:($e,_e,p)=>{"use strict";p.d(_e,{J:()=>_});var e=p(61709),b=p(35379);function _(w=Number.POSITIVE_INFINITY){return(0,e.zg)(b.y,w)}},61709:($e,_e,p)=>{"use strict";p.d(_e,{zg:()=>A});var e=p(69054),b=p(826),_=p(51869),w=p(24850),g=p(5254);function A(I,P,m=Number.POSITIVE_INFINITY){return"function"==typeof P?L=>L.pipe(A((O,G)=>(0,g.D)(I(O,G)).pipe((0,w.U)((ne,ge)=>P(O,ne,G,ge))),m)):("number"==typeof P&&(m=P),L=>L.lift(new E(I,m)))}class E{constructor(P,m=Number.POSITIVE_INFINITY){this.project=P,this.concurrent=m}call(P,m){return m.subscribe(new C(P,this.project,this.concurrent))}}class C extends b.L{constructor(P,m,L=Number.POSITIVE_INFINITY){super(P),this.project=m,this.concurrent=L,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(P){this.active0?this._next(m.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},74327:($e,_e,p)=>{"use strict";p.d(_e,{x:()=>b});var e=p(43489);function b(){return function(A){return A.lift(new _(A))}}class _{constructor(A){this.connectable=A}call(A,E){const{connectable:C}=this;C._refCount++;const I=new w(A,C),P=E.subscribe(I);return I.closed||(I.connection=C.connect()),P}}class w extends e.L{constructor(A,E){super(A),this.connectable=E}_unsubscribe(){const{connectable:A}=this;if(!A)return void(this.connection=null);this.connectable=null;const E=A._refCount;if(E<=0)return void(this.connection=null);if(A._refCount=E-1,E>1)return void(this.connection=null);const{connection:C}=this,I=A._connection;this.connection=null,I&&(!C||I===C)&&I.unsubscribe()}}},92014:($e,_e,p)=>{"use strict";p.d(_e,{R:()=>b});var e=p(43489);function b(g,A){let E=!1;return arguments.length>=2&&(E=!0),function(I){return I.lift(new _(g,A,E))}}class _{constructor(A,E,C=!1){this.accumulator=A,this.seed=E,this.hasSeed=C}call(A,E){return E.subscribe(new w(A,this.accumulator,this.seed,this.hasSeed))}}class w extends e.L{constructor(A,E,C,I){super(A),this.accumulator=E,this._seed=C,this.hasSeed=I,this.index=0}get seed(){return this._seed}set seed(A){this.hasSeed=!0,this._seed=A}_next(A){if(this.hasSeed)return this._tryNext(A);this.seed=A,this.destination.next(A)}_tryNext(A){const E=this.index++;let C;try{C=this.accumulator(this.seed,A,E)}catch(I){this.destination.error(I)}this.seed=C,this.destination.next(C)}}},12474:($e,_e,p)=>{"use strict";p.d(_e,{B:()=>E});var e=p(71762);class _{constructor(I,P){this.subjectFactory=I,this.selector=P}call(I,P){const{selector:m}=this,L=this.subjectFactory(),O=m(L).subscribe(I);return O.add(P.subscribe(L)),O}}var w=p(74327),g=p(8929);function A(){return new g.xQ}function E(){return C=>(0,w.x)()(function b(C,I){return function(m){let L;if(L="function"==typeof C?C:function(){return C},"function"==typeof I)return m.lift(new _(L,I));const O=Object.create(m,e.N);return O.source=m,O.subjectFactory=L,O}}(A)(C))}},5154:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>b});var e=p(96831);function b(w,g,A){let E;return E=w&&"object"==typeof w?w:{bufferSize:w,windowTime:g,refCount:!1,scheduler:A},C=>C.lift(function _({bufferSize:w=Number.POSITIVE_INFINITY,windowTime:g=Number.POSITIVE_INFINITY,refCount:A,scheduler:E}){let C,P,I=0,m=!1,L=!1;return function(G){I++,(!C||m)&&(m=!1,C=new e.t(w,g,E),P=G.subscribe({next(ge){C.next(ge)},error(ge){m=!0,C.error(ge)},complete(){L=!0,P=void 0,C.complete()}}));const ne=C.subscribe(this);this.add(()=>{I--,ne.unsubscribe(),P&&!L&&A&&0===I&&(P.unsubscribe(),P=void 0,C=void 0)})}}(E))}},31307:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>b});var e=p(43489);function b(g){return A=>A.lift(new _(g))}class _{constructor(A){this.total=A}call(A,E){return E.subscribe(new w(A,this.total))}}class w extends e.L{constructor(A,E){super(A),this.total=E,this.count=0}_next(A){++this.count>this.total&&this.destination.next(A)}}},1059:($e,_e,p)=>{"use strict";p.d(_e,{O:()=>_});var e=p(61221),b=p(72866);function _(...w){const g=w[w.length-1];return(0,b.K)(g)?(w.pop(),A=>(0,e.z)(w,A,g)):A=>(0,e.z)(w,A)}},87545:($e,_e,p)=>{"use strict";p.d(_e,{w:()=>A});var e=p(826),b=p(51869),_=p(69054),w=p(24850),g=p(5254);function A(I,P){return"function"==typeof P?m=>m.pipe(A((L,O)=>(0,g.D)(I(L,O)).pipe((0,w.U)((G,ne)=>P(L,G,O,ne))))):m=>m.lift(new E(I))}class E{constructor(P){this.project=P}call(P,m){return m.subscribe(new C(P,this.project))}}class C extends e.L{constructor(P,m){super(P),this.project=m,this.index=0}_next(P){let m;const L=this.index++;try{m=this.project(P,L)}catch(O){return void this.destination.error(O)}this._innerSub(m,P,L)}_innerSub(P,m,L){const O=this.innerSubscription;O&&O.unsubscribe();const G=new b.d(this,m,L),ne=this.destination;ne.add(G),this.innerSubscription=(0,_.D)(this,P,void 0,void 0,G),this.innerSubscription!==G&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:P}=this;(!P||P.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(P){this.destination.remove(P),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(P,m,L,O,G){this.destination.next(m)}}},72986:($e,_e,p)=>{"use strict";p.d(_e,{q:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return C=>0===E?(0,_.c)():C.lift(new g(E))}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,I){return I.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,I){super(C),this.total=I,this.count=0}_next(C){const I=this.total,P=++this.count;P<=I&&(this.destination.next(C),P===I&&(this.destination.complete(),this.unsubscribe()))}}},92821:($e,_e,p)=>{"use strict";p.d(_e,{h:()=>w});var e=p(43489),b=p(94231),_=p(68896);function w(E){return function(I){return 0===E?(0,_.c)():I.lift(new g(E))}}class g{constructor(C){if(this.total=C,this.total<0)throw new b.W}call(C,I){return I.subscribe(new A(C,this.total))}}class A extends e.L{constructor(C,I){super(C),this.total=I,this.ring=new Array,this.count=0}_next(C){const I=this.ring,P=this.total,m=this.count++;I.length0){const P=this.count>=this.total?this.total:this.count,m=this.ring;for(let L=0;L{"use strict";p.d(_e,{R:()=>_});var e=p(826),b=p(69054);function _(A){return E=>E.lift(new w(A))}class w{constructor(E){this.notifier=E}call(E,C){const I=new g(E),P=(0,b.D)(I,this.notifier);return P&&!I.seenValue?(I.add(P),C.subscribe(I)):I}}class g extends e.L{constructor(E){super(E),this.seenValue=!1}notifyNext(E,C,I,P,m){this.seenValue=!0,this.complete()}notifyComplete(){}}},22868:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>w});var e=p(43489);function b(){}var _=p(67043);function w(E,C,I){return function(m){return m.lift(new g(E,C,I))}}class g{constructor(C,I,P){this.nextOrObserver=C,this.error=I,this.complete=P}call(C,I){return I.subscribe(new A(C,this.nextOrObserver,this.error,this.complete))}}class A extends e.L{constructor(C,I,P,m){super(C),this._tapNext=b,this._tapError=b,this._tapComplete=b,this._tapError=P||b,this._tapComplete=m||b,(0,_.m)(I)?(this._context=this,this._tapNext=I):I&&(this._context=I,this._tapNext=I.next||b,this._tapError=I.error||b,this._tapComplete=I.complete||b)}_next(C){try{this._tapNext.call(this._context,C)}catch(I){return void this.destination.error(I)}this.destination.next(C)}_error(C){try{this._tapError.call(this._context,C)}catch(I){return void this.destination.error(I)}this.destination.error(C)}_complete(){try{this._tapComplete.call(this._context)}catch(C){return void this.destination.error(C)}return this.destination.complete()}}},34907:($e,_e,p)=>{"use strict";p.d(_e,{T:()=>_});var e=p(84450),b=p(43489);function _(E=A){return C=>C.lift(new w(E))}class w{constructor(C){this.errorFactory=C}call(C,I){return I.subscribe(new g(C,this.errorFactory))}}class g extends b.L{constructor(C,I){super(C),this.errorFactory=I,this.hasValue=!1}_next(C){this.hasValue=!0,this.destination.next(C)}_complete(){if(this.hasValue)return this.destination.complete();{let C;try{C=this.errorFactory()}catch(I){C=I}this.destination.error(C)}}}function A(){return new e.K}},46227:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>m});var e=p(20353);const _=(()=>{function L(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return L.prototype=Object.create(Error.prototype),L})();var w=p(82697),g=p(826),A=p(69054);class C{constructor(O,G,ne,ge){this.waitFor=O,this.absoluteTimeout=G,this.withObservable=ne,this.scheduler=ge}call(O,G){return G.subscribe(new I(O,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class I extends g.L{constructor(O,G,ne,ge,J){super(O),this.absoluteTimeout=G,this.waitFor=ne,this.withObservable=ge,this.scheduler=J,this.action=null,this.scheduleTimeout()}static dispatchTimeout(O){const{withObservable:G}=O;O._unsubscribeAndRecycle(),O.add((0,A.D)(O,G))}scheduleTimeout(){const{action:O}=this;O?this.action=O.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(I.dispatchTimeout,this.waitFor,this))}_next(O){this.absoluteTimeout||this.scheduleTimeout(),super._next(O)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var P=p(61737);function m(L,O=e.P){return function E(L,O,G=e.P){return ne=>{let ge=(0,w.J)(L),J=ge?+L-G.now():Math.abs(L);return ne.lift(new C(J,ge,O,G))}}(L,(0,P._)(new _),O)}},66454:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>_});var e=p(56498),b=p(42654);function _(w,g){return new e.y(A=>{const E=new b.w;let C=0;return E.add(g.schedule(function(){C!==w.length?(A.next(w[C++]),A.closed||E.add(this.schedule())):A.complete()})),E})}},56686:($e,_e,p)=>{"use strict";p.d(_e,{o:()=>_});var e=p(42654);class b extends e.w{constructor(g,A){super()}schedule(g,A=0){return this}}class _ extends b{constructor(g,A){super(g,A),this.scheduler=g,this.work=A,this.pending=!1}schedule(g,A=0){if(this.closed)return this;this.state=g;const E=this.id,C=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(C,E,A)),this.pending=!0,this.delay=A,this.id=this.id||this.requestAsyncId(C,this.id,A),this}requestAsyncId(g,A,E=0){return setInterval(g.flush.bind(g,this),E)}recycleAsyncId(g,A,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return A;clearInterval(A)}execute(g,A){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(g,A);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(g,A){let C,E=!1;try{this.work(g)}catch(I){E=!0,C=!!I&&I||new Error(I)}if(E)return this.unsubscribe(),C}_unsubscribe(){const g=this.id,A=this.scheduler,E=A.actions,C=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==C&&E.splice(C,1),null!=g&&(this.id=this.recycleAsyncId(A,g,null)),this.delay=null}}},32268:($e,_e,p)=>{"use strict";p.d(_e,{v:()=>b});let e=(()=>{class _{constructor(g,A=_.now){this.SchedulerAction=g,this.now=A}schedule(g,A=0,E){return new this.SchedulerAction(this,g).schedule(E,A)}}return _.now=()=>Date.now(),_})();class b extends e{constructor(w,g=e.now){super(w,()=>b.delegate&&b.delegate!==this?b.delegate.now():g()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(w,g=0,A){return b.delegate&&b.delegate!==this?b.delegate.schedule(w,g,A):super.schedule(w,g,A)}flush(w){const{actions:g}=this;if(this.active)return void g.push(w);let A;this.active=!0;do{if(A=w.execute(w.state,w.delay))break}while(w=g.shift());if(this.active=!1,A){for(;w=g.shift();)w.unsubscribe();throw A}}}},90352:($e,_e,p)=>{"use strict";p.d(_e,{r:()=>g});var e=p(56686),_=p(32268);const g=new class w extends _.v{flush(E){this.active=!0,this.scheduled=void 0;const{actions:C}=this;let I,P=-1,m=C.length;E=E||C.shift();do{if(I=E.execute(E.state,E.delay))break}while(++P0?super.requestAsyncId(E,C,I):(E.actions.push(this),E.scheduled||(E.scheduled=requestAnimationFrame(()=>E.flush(null))))}recycleAsyncId(E,C,I=0){if(null!==I&&I>0||null===I&&this.delay>0)return super.recycleAsyncId(E,C,I);0===E.actions.length&&(cancelAnimationFrame(C),E.scheduled=void 0)}})},8139:($e,_e,p)=>{"use strict";p.d(_e,{e:()=>m});let e=1;const b=Promise.resolve(),_={};function w(L){return L in _&&(delete _[L],!0)}const g={setImmediate(L){const O=e++;return _[O]=!0,b.then(()=>w(O)&&L()),O},clearImmediate(L){w(L)}};var E=p(56686),I=p(32268);const m=new class P extends I.v{flush(O){this.active=!0,this.scheduled=void 0;const{actions:G}=this;let ne,ge=-1,J=G.length;O=O||G.shift();do{if(ne=O.execute(O.state,O.delay))break}while(++ge0?super.requestAsyncId(O,G,ne):(O.actions.push(this),O.scheduled||(O.scheduled=g.setImmediate(O.flush.bind(O,null))))}recycleAsyncId(O,G,ne=0){if(null!==ne&&ne>0||null===ne&&this.delay>0)return super.recycleAsyncId(O,G,ne);0===O.actions.length&&(g.clearImmediate(G),O.scheduled=void 0)}})},20353:($e,_e,p)=>{"use strict";p.d(_e,{P:()=>_});var e=p(56686);const _=new(p(32268).v)(e.o)},5430:($e,_e,p)=>{"use strict";p.d(_e,{hZ:()=>b});const b=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},93821:($e,_e,p)=>{"use strict";p.d(_e,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},57668:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>e});const e="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},94231:($e,_e,p)=>{"use strict";p.d(_e,{W:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return _.prototype=Object.create(Error.prototype),_})()},84450:($e,_e,p)=>{"use strict";p.d(_e,{K:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return _.prototype=Object.create(Error.prototype),_})()},95279:($e,_e,p)=>{"use strict";p.d(_e,{N:()=>b});const b=(()=>{function _(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return _.prototype=Object.create(Error.prototype),_})()},22782:($e,_e,p)=>{"use strict";function e(b){setTimeout(()=>{throw b},0)}p.d(_e,{z:()=>e})},35379:($e,_e,p)=>{"use strict";function e(b){return b}p.d(_e,{y:()=>e})},66688:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>e});const e=Array.isArray||(b=>b&&"number"==typeof b.length)},58515:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>e});const e=b=>b&&"number"==typeof b.length&&"function"!=typeof b},82697:($e,_e,p)=>{"use strict";function e(b){return b instanceof Date&&!isNaN(+b)}p.d(_e,{J:()=>e})},67043:($e,_e,p)=>{"use strict";function e(b){return"function"==typeof b}p.d(_e,{m:()=>e})},84241:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>b});var e=p(66688);function b(_){return!(0,e.k)(_)&&_-parseFloat(_)+1>=0}},57830:($e,_e,p)=>{"use strict";function e(b){return null!==b&&"object"==typeof b}p.d(_e,{K:()=>e})},54715:($e,_e,p)=>{"use strict";p.d(_e,{b:()=>b});var e=p(56498);function b(_){return!!_&&(_ instanceof e.y||"function"==typeof _.lift&&"function"==typeof _.subscribe)}},98955:($e,_e,p)=>{"use strict";function e(b){return!!b&&"function"!=typeof b.subscribe&&"function"==typeof b.then}p.d(_e,{t:()=>e})},72866:($e,_e,p)=>{"use strict";function e(b){return b&&"function"==typeof b.schedule}p.d(_e,{K:()=>e})},4843:($e,_e,p)=>{"use strict";p.d(_e,{z:()=>b,U:()=>_});var e=p(35379);function b(...w){return _(w)}function _(w){return 0===w.length?e.y:1===w.length?w[0]:function(A){return w.reduce((E,C)=>C(E),A)}}},59249:($e,_e,p)=>{"use strict";p.d(_e,{s:()=>m});var e=p(13650),b=p(22782),w=p(5430),A=p(93821),C=p(58515),I=p(98955),P=p(57830);const m=L=>{if(L&&"function"==typeof L[A.L])return(L=>O=>{const G=L[A.L]();if("function"!=typeof G.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return G.subscribe(O)})(L);if((0,C.z)(L))return(0,e.V)(L);if((0,I.t)(L))return(L=>O=>(L.then(G=>{O.closed||(O.next(G),O.complete())},G=>O.error(G)).then(null,b.z),O))(L);if(L&&"function"==typeof L[w.hZ])return(L=>O=>{const G=L[w.hZ]();for(;;){const ne=G.next();if(ne.done){O.complete();break}if(O.next(ne.value),O.closed)break}return"function"==typeof G.return&&O.add(()=>{G.return&&G.return()}),O})(L);{const G=`You provided ${(0,P.K)(L)?"an invalid object":`'${L}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(G)}}},13650:($e,_e,p)=>{"use strict";p.d(_e,{V:()=>e});const e=b=>_=>{for(let w=0,g=b.length;w{"use strict";p.d(_e,{D:()=>w});var e=p(51869),b=p(59249),_=p(56498);function w(g,A,E,C,I=new e.d(g,E,C)){if(!I.closed)return A instanceof _.y?A.subscribe(I):(0,b.s)(A)(I)}},70655:($e,_e,p)=>{"use strict";function g(de,Le,Ue,ze){var ye,le=arguments.length,je=le<3?Le:null===ze?ze=Object.getOwnPropertyDescriptor(Le,Ue):ze;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)je=Reflect.decorate(de,Le,Ue,ze);else for(var Be=de.length-1;Be>=0;Be--)(ye=de[Be])&&(je=(le<3?ye(je):le>3?ye(Le,Ue,je):ye(Le,Ue))||je);return le>3&&je&&Object.defineProperty(Le,Ue,je),je}function C(de,Le,Ue,ze){return new(Ue||(Ue=Promise))(function(je,ye){function Be(me){try{R(ze.next(me))}catch(be){ye(be)}}function W(me){try{R(ze.throw(me))}catch(be){ye(be)}}function R(me){me.done?je(me.value):function le(je){return je instanceof Ue?je:new Ue(function(ye){ye(je)})}(me.value).then(Be,W)}R((ze=ze.apply(de,Le||[])).next())})}p.d(_e,{gn:()=>g,mG:()=>C})},41777:($e,_e,p)=>{"use strict";p.d(_e,{l3:()=>_,_j:()=>e,LC:()=>b,ZN:()=>Me,jt:()=>g,pV:()=>O,ru:()=>A,F4:()=>P,IO:()=>ne,vP:()=>E,SB:()=>I,oB:()=>C,eR:()=>m,X$:()=>w,ZE:()=>oe,k1:()=>Re});class e{}class b{}const _="*";function w(T,j){return{type:7,name:T,definitions:j,options:{}}}function g(T,j=null){return{type:4,styles:j,timings:T}}function A(T,j=null){return{type:3,steps:T,options:j}}function E(T,j=null){return{type:2,steps:T,options:j}}function C(T){return{type:6,styles:T,offset:null}}function I(T,j,Y){return{type:0,name:T,styles:j,options:Y}}function P(T){return{type:5,steps:T}}function m(T,j,Y=null){return{type:1,expr:T,animation:j,options:Y}}function O(T=null){return{type:9,options:T}}function ne(T,j,Y=null){return{type:11,selector:T,animation:j,options:Y}}function J(T){Promise.resolve(null).then(T)}class Me{constructor(j=0,Y=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=j+Y}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}onStart(j){this._onStartFns.push(j)}onDone(j){this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){J(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(j=>j()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(j){this._position=this.totalTime?j*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(j){const Y="start"==j?this._onStartFns:this._onDoneFns;Y.forEach(q=>q()),Y.length=0}}class oe{constructor(j){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=j;let Y=0,q=0,te=0;const ue=this.players.length;0==ue?J(()=>this._onFinish()):this.players.forEach(de=>{de.onDone(()=>{++Y==ue&&this._onFinish()}),de.onDestroy(()=>{++q==ue&&this._onDestroy()}),de.onStart(()=>{++te==ue&&this._onStart()})}),this.totalTime=this.players.reduce((de,Le)=>Math.max(de,Le.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(j=>j()),this._onDoneFns=[])}init(){this.players.forEach(j=>j.init())}onStart(j){this._onStartFns.push(j)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(j=>j()),this._onStartFns=[])}onDone(j){this._onDoneFns.push(j)}onDestroy(j){this._onDestroyFns.push(j)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(j=>j.play())}pause(){this.players.forEach(j=>j.pause())}restart(){this.players.forEach(j=>j.restart())}finish(){this._onFinish(),this.players.forEach(j=>j.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(j=>j.destroy()),this._onDestroyFns.forEach(j=>j()),this._onDestroyFns=[])}reset(){this.players.forEach(j=>j.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(j){const Y=j*this.totalTime;this.players.forEach(q=>{const te=q.totalTime?Math.min(1,Y/q.totalTime):1;q.setPosition(te)})}getPosition(){const j=this.players.reduce((Y,q)=>null===Y||q.totalTime>Y.totalTime?q:Y,null);return null!=j?j.getPosition():0}beforeDestroy(){this.players.forEach(j=>{j.beforeDestroy&&j.beforeDestroy()})}triggerCallback(j){const Y="start"==j?this._onStartFns:this._onDoneFns;Y.forEach(q=>q()),Y.length=0}}const Re="!"},15664:($e,_e,p)=>{"use strict";p.d(_e,{rt:()=>Lt,s1:()=>le,$s:()=>de,Qr:()=>c,kH:()=>At,mK:()=>D,Em:()=>je,tE:()=>We,qV:()=>Q,qm:()=>mt,ic:()=>Be,Kd:()=>a,X6:()=>Ae,yG:()=>ae});var e=p(69808),b=p(5e3),_=p(70925),w=p(8929),g=p(42654),A=p(591),E=p(21086),C=p(91159),I=p(22868),P=p(80013),m=p(92198),L=p(24850),O=p(72986),G=p(31307),ne=p(75778),ge=p(7625),J=p(63191),Me=p(17144);function j(Ee,Ge){return(Ee.getAttribute(Ge)||"").match(/\S+/g)||[]}const q="cdk-describedby-message",te="cdk-describedby-host";let ue=0,de=(()=>{class Ee{constructor(U,k){this._platform=k,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ue++,this._document=U}describe(U,k,ie){if(!this._canBeDescribed(U,k))return;const ce=Le(k,ie);"string"!=typeof k?(Ue(k),this._messageRegistry.set(ce,{messageElement:k,referenceCount:0})):this._messageRegistry.has(ce)||this._createMessageElement(k,ie),this._isElementDescribedByMessage(U,ce)||this._addMessageReference(U,ce)}removeDescription(U,k,ie){var ce;if(!k||!this._isElementNode(U))return;const He=Le(k,ie);if(this._isElementDescribedByMessage(U,He)&&this._removeMessageReference(U,He),"string"==typeof k){const ct=this._messageRegistry.get(He);ct&&0===ct.referenceCount&&this._deleteMessageElement(He)}0===(null===(ce=this._messagesContainer)||void 0===ce?void 0:ce.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var U;const k=this._document.querySelectorAll(`[${te}="${this._id}"]`);for(let ie=0;ie0!=ie.indexOf(q));U.setAttribute("aria-describedby",k.join(" "))}_addMessageReference(U,k){const ie=this._messageRegistry.get(k);(function Re(Ee,Ge,U){const k=j(Ee,Ge);k.some(ie=>ie.trim()==U.trim())||(k.push(U.trim()),Ee.setAttribute(Ge,k.join(" ")))})(U,"aria-describedby",ie.messageElement.id),U.setAttribute(te,this._id),ie.referenceCount++}_removeMessageReference(U,k){const ie=this._messageRegistry.get(k);ie.referenceCount--,function T(Ee,Ge,U){const ie=j(Ee,Ge).filter(ce=>ce!=U.trim());ie.length?Ee.setAttribute(Ge,ie.join(" ")):Ee.removeAttribute(Ge)}(U,"aria-describedby",ie.messageElement.id),U.removeAttribute(te)}_isElementDescribedByMessage(U,k){const ie=j(U,"aria-describedby"),ce=this._messageRegistry.get(k),He=ce&&ce.messageElement.id;return!!He&&-1!=ie.indexOf(He)}_canBeDescribed(U,k){if(!this._isElementNode(U))return!1;if(k&&"object"==typeof k)return!0;const ie=null==k?"":`${k}`.trim(),ce=U.getAttribute("aria-label");return!(!ie||ce&&ce.trim()===ie)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(e.K0),b.LFG(_.t4))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Le(Ee,Ge){return"string"==typeof Ee?`${Ge||""}/${Ee}`:Ee}function Ue(Ee){Ee.id||(Ee.id=`${q}-${ue++}`)}class ze{constructor(Ge){this._items=Ge,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new w.xQ,this._typeaheadSubscription=g.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new w.xQ,this.change=new w.xQ,Ge instanceof b.n_E&&Ge.changes.subscribe(U=>{if(this._activeItem){const ie=U.toArray().indexOf(this._activeItem);ie>-1&&ie!==this._activeItemIndex&&(this._activeItemIndex=ie)}})}skipPredicate(Ge){return this._skipPredicateFn=Ge,this}withWrap(Ge=!0){return this._wrap=Ge,this}withVerticalOrientation(Ge=!0){return this._vertical=Ge,this}withHorizontalOrientation(Ge){return this._horizontal=Ge,this}withAllowedModifierKeys(Ge){return this._allowedModifierKeys=Ge,this}withTypeAhead(Ge=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(U=>this._pressedLetters.push(U)),(0,P.b)(Ge),(0,m.h)(()=>this._pressedLetters.length>0),(0,L.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const k=this._getItemsArray();for(let ie=1;ie!Ge[ce]||this._allowedModifierKeys.indexOf(ce)>-1);switch(U){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&ie){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&ie){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&ie){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&ie){this.setLastItemActive();break}return;default:return void((ie||(0,C.Vb)(Ge,"shiftKey"))&&(Ge.key&&1===Ge.key.length?this._letterKeyStream.next(Ge.key.toLocaleUpperCase()):(U>=C.A&&U<=C.Z||U>=C.xE&&U<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],Ge.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(Ge){const U=this._getItemsArray(),k="number"==typeof Ge?Ge:U.indexOf(Ge),ie=U[k];this._activeItem=null==ie?null:ie,this._activeItemIndex=k}_setActiveItemByDelta(Ge){this._wrap?this._setActiveInWrapMode(Ge):this._setActiveInDefaultMode(Ge)}_setActiveInWrapMode(Ge){const U=this._getItemsArray();for(let k=1;k<=U.length;k++){const ie=(this._activeItemIndex+Ge*k+U.length)%U.length;if(!this._skipPredicateFn(U[ie]))return void this.setActiveItem(ie)}}_setActiveInDefaultMode(Ge){this._setActiveItemByIndex(this._activeItemIndex+Ge,Ge)}_setActiveItemByIndex(Ge,U){const k=this._getItemsArray();if(k[Ge]){for(;this._skipPredicateFn(k[Ge]);)if(!k[Ge+=U])return;this.setActiveItem(Ge)}}_getItemsArray(){return this._items instanceof b.n_E?this._items.toArray():this._items}}class le extends ze{setActiveItem(Ge){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(Ge),this.activeItem&&this.activeItem.setActiveStyles()}}class je extends ze{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ge){return this._origin=Ge,this}setActiveItem(Ge){super.setActiveItem(Ge),this.activeItem&&this.activeItem.focus(this._origin)}}let Be=(()=>{class Ee{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function R(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const k=function W(Ee){try{return Ee.frameElement}catch(Ge){return null}}(function X(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(U));if(k&&(-1===Je(k)||!this.isVisible(k)))return!1;let ie=U.nodeName.toLowerCase(),ce=Je(U);return U.hasAttribute("contenteditable")?-1!==ce:!("iframe"===ie||"object"===ie||this._platform.WEBKIT&&this._platform.IOS&&!function nt(Ee){let Ge=Ee.nodeName.toLowerCase(),U="input"===Ge&&Ee.type;return"text"===U||"password"===U||"select"===Ge||"textarea"===Ge}(U))&&("audio"===ie?!!U.hasAttribute("controls")&&-1!==ce:"video"===ie?-1!==ce&&(null!==ce||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,k){return function Ve(Ee){return!function be(Ee){return function pe(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function me(Ee){let Ge=Ee.nodeName.toLowerCase();return"input"===Ge||"select"===Ge||"button"===Ge||"textarea"===Ge}(Ee)||function Ie(Ee){return function Se(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||Xe(Ee))}(U)&&!this.isDisabled(U)&&((null==k?void 0:k.ignoreVisibility)||this.isVisible(U))}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();function Xe(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Ge=Ee.getAttribute("tabindex");return!(!Ge||isNaN(parseInt(Ge,10)))}function Je(Ee){if(!Xe(Ee))return null;const Ge=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Ge)?-1:Ge}class z{constructor(Ge,U,k,ie,ce=!1){this._element=Ge,this._checker=U,this._ngZone=k,this._document=ie,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ce||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Ge){this._enabled=Ge,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}destroy(){const Ge=this._startAnchor,U=this._endAnchor;Ge&&(Ge.removeEventListener("focus",this.startAnchorListener),Ge.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(Ge)))})}focusFirstTabbableElementWhenReady(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(Ge)))})}focusLastTabbableElementWhenReady(Ge){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(Ge)))})}_getRegionBoundary(Ge){const U=this._element.querySelectorAll(`[cdk-focus-region-${Ge}], [cdkFocusRegion${Ge}], [cdk-focus-${Ge}]`);return"start"==Ge?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ge){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const k=this._getFirstTabbableElement(U);return null==k||k.focus(Ge),!!k}return U.focus(Ge),!0}return this.focusFirstTabbableElement(Ge)}focusFirstTabbableElement(Ge){const U=this._getRegionBoundary("start");return U&&U.focus(Ge),!!U}focusLastTabbableElement(Ge){const U=this._getRegionBoundary("end");return U&&U.focus(Ge),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ge){if(this._checker.isFocusable(Ge)&&this._checker.isTabbable(Ge))return Ge;const U=Ge.children;for(let k=0;k=0;k--){const ie=U[k].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[k]):null;if(ie)return ie}return null}_createAnchor(){const Ge=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ge),Ge.classList.add("cdk-visually-hidden"),Ge.classList.add("cdk-focus-trap-anchor"),Ge.setAttribute("aria-hidden","true"),Ge}_toggleAnchorTabIndex(Ge,U){Ge?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(Ge){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ge,this._startAnchor),this._toggleAnchorTabIndex(Ge,this._endAnchor))}_executeOnStable(Ge){this._ngZone.isStable?Ge():this._ngZone.onStable.pipe((0,O.q)(1)).subscribe(Ge)}}let Q=(()=>{class Ee{constructor(U,k,ie){this._checker=U,this._ngZone=k,this._document=ie}create(U,k=!1){return new z(U,this._checker,this._ngZone,this._document,k)}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(Be),b.LFG(b.R0b),b.LFG(e.K0))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),D=(()=>{class Ee{constructor(U,k,ie){this._elementRef=U,this._focusTrapFactory=k,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(U){this.focusTrap.enabled=(0,J.Ig)(U)}get autoCapture(){return this._autoCapture}set autoCapture(U){this._autoCapture=(0,J.Ig)(U)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(U){const k=U.autoCapture;k&&!k.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,_.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(Q),b.Y36(e.K0))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[b.TTD]}),Ee})();function Ae(Ee){return 0===Ee.buttons||0===Ee.offsetX&&0===Ee.offsetY}function ae(Ee){const Ge=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Ge||-1!==Ge.identifier||null!=Ge.radiusX&&1!==Ge.radiusX||null!=Ge.radiusY&&1!==Ge.radiusY)}const i=new b.OlP("cdk-input-modality-detector-options"),o={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},l=(0,_.i$)({passive:!0,capture:!0});let s=(()=>{class Ee{constructor(U,k,ie,ce){this._platform=U,this._mostRecentTarget=null,this._modality=new A.X(null),this._lastTouchMs=0,this._onKeydown=He=>{var ct,bt;(null===(bt=null===(ct=this._options)||void 0===ct?void 0:ct.ignoreKeys)||void 0===bt?void 0:bt.some(xt=>xt===He.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,_.sA)(He))},this._onMousedown=He=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ae(He)?"keyboard":"mouse"),this._mostRecentTarget=(0,_.sA)(He))},this._onTouchstart=He=>{ae(He)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,_.sA)(He))},this._options=Object.assign(Object.assign({},o),ce),this.modalityDetected=this._modality.pipe((0,G.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ne.x)()),U.isBrowser&&k.runOutsideAngular(()=>{ie.addEventListener("keydown",this._onKeydown,l),ie.addEventListener("mousedown",this._onMousedown,l),ie.addEventListener("touchstart",this._onTouchstart,l)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,l),document.removeEventListener("mousedown",this._onMousedown,l),document.removeEventListener("touchstart",this._onTouchstart,l))}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4),b.LFG(b.R0b),b.LFG(e.K0),b.LFG(i,8))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const r=new b.OlP("liveAnnouncerElement",{providedIn:"root",factory:function t(){return null}}),n=new b.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let a=(()=>{class Ee{constructor(U,k,ie,ce){this._ngZone=k,this._defaultOptions=ce,this._document=ie,this._liveElement=U||this._createLiveElement()}announce(U,...k){const ie=this._defaultOptions;let ce,He;return 1===k.length&&"number"==typeof k[0]?He=k[0]:[ce,He]=k,this.clear(),clearTimeout(this._previousTimeout),ce||(ce=ie&&ie.politeness?ie.politeness:"polite"),null==He&&ie&&(He=ie.duration),this._liveElement.setAttribute("aria-live",ce),this._ngZone.runOutsideAngular(()=>new Promise(ct=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,ct(),"number"==typeof He&&(this._previousTimeout=setTimeout(()=>this.clear(),He))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var U;clearTimeout(this._previousTimeout),null===(U=this._liveElement)||void 0===U||U.remove(),this._liveElement=null}_createLiveElement(){const U="cdk-live-announcer-element",k=this._document.getElementsByClassName(U),ie=this._document.createElement("div");for(let ce=0;ce{class Ee{constructor(U,k,ie,ce){this._elementRef=U,this._liveAnnouncer=k,this._contentObserver=ie,this._ngZone=ce,this._politeness="polite"}get politeness(){return this._politeness}set politeness(U){this._politeness="off"===U||"assertive"===U?U:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const k=this._elementRef.nativeElement.textContent;k!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(k,this._politeness),this._previousAnnouncedText=k)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(a),b.Y36(Me.yq),b.Y36(b.R0b))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),Ee})();const h=new b.OlP("cdk-focus-monitor-default-options"),x=(0,_.i$)({passive:!0,capture:!0});let We=(()=>{class Ee{constructor(U,k,ie,ce,He){this._ngZone=U,this._platform=k,this._inputModalityDetector=ie,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 w.xQ,this._rootNodeFocusAndBlurListener=ct=>{const bt=(0,_.sA)(ct),xt="focus"===ct.type?this._onFocus:this._onBlur;for(let Yt=bt;Yt;Yt=Yt.parentElement)xt.call(this,ct,Yt)},this._document=ce,this._detectionMode=(null==He?void 0:He.detectionMode)||0}monitor(U,k=!1){const ie=(0,J.fI)(U);if(!this._platform.isBrowser||1!==ie.nodeType)return(0,E.of)(null);const ce=(0,_.kV)(ie)||this._getDocument(),He=this._elementInfo.get(ie);if(He)return k&&(He.checkChildren=!0),He.subject;const ct={checkChildren:k,subject:new w.xQ,rootNode:ce};return this._elementInfo.set(ie,ct),this._registerGlobalListeners(ct),ct.subject}stopMonitoring(U){const k=(0,J.fI)(U),ie=this._elementInfo.get(k);ie&&(ie.subject.complete(),this._setClasses(k),this._elementInfo.delete(k),this._removeGlobalListeners(ie))}focusVia(U,k,ie){const ce=(0,J.fI)(U);ce===this._getDocument().activeElement?this._getClosestElementsInfo(ce).forEach(([ct,bt])=>this._originChanged(ct,k,bt)):(this._setOrigin(k),"function"==typeof ce.focus&&ce.focus(ie))}ngOnDestroy(){this._elementInfo.forEach((U,k)=>this.stopMonitoring(k))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!(null==U?void 0:U.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(U,k){U.classList.toggle("cdk-focused",!!k),U.classList.toggle("cdk-touch-focused","touch"===k),U.classList.toggle("cdk-keyboard-focused","keyboard"===k),U.classList.toggle("cdk-mouse-focused","mouse"===k),U.classList.toggle("cdk-program-focused","program"===k)}_setOrigin(U,k=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&k,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,k){const ie=this._elementInfo.get(k),ce=(0,_.sA)(U);!ie||!ie.checkChildren&&k!==ce||this._originChanged(k,this._getFocusOrigin(ce),ie)}_onBlur(U,k){const ie=this._elementInfo.get(k);!ie||ie.checkChildren&&U.relatedTarget instanceof Node&&k.contains(U.relatedTarget)||(this._setClasses(k),this._emitOrigin(ie.subject,null))}_emitOrigin(U,k){this._ngZone.run(()=>U.next(k))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const k=U.rootNode,ie=this._rootNodeFocusListenerCount.get(k)||0;ie||this._ngZone.runOutsideAngular(()=>{k.addEventListener("focus",this._rootNodeFocusAndBlurListener,x),k.addEventListener("blur",this._rootNodeFocusAndBlurListener,x)}),this._rootNodeFocusListenerCount.set(k,ie+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ge.R)(this._stopInputModalityDetector)).subscribe(ce=>{this._setOrigin(ce,!0)}))}_removeGlobalListeners(U){const k=U.rootNode;if(this._rootNodeFocusListenerCount.has(k)){const ie=this._rootNodeFocusListenerCount.get(k);ie>1?this._rootNodeFocusListenerCount.set(k,ie-1):(k.removeEventListener("focus",this._rootNodeFocusAndBlurListener,x),k.removeEventListener("blur",this._rootNodeFocusAndBlurListener,x),this._rootNodeFocusListenerCount.delete(k))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,k,ie){this._setClasses(U,k),this._emitOrigin(ie.subject,k),this._lastFocusOrigin=k}_getClosestElementsInfo(U){const k=[];return this._elementInfo.forEach((ie,ce)=>{(ce===U||ie.checkChildren&&ce.contains(U))&&k.push([ce,ie])}),k}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(b.R0b),b.LFG(_.t4),b.LFG(s),b.LFG(e.K0,8),b.LFG(h,8))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),At=(()=>{class Ee{constructor(U,k){this._elementRef=U,this._focusMonitor=k,this.cdkFocusChange=new b.vpe}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(k=>this.cdkFocusChange.emit(k))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.Y36(b.SBq),b.Y36(We))},Ee.\u0275dir=b.lG2({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Ht="cdk-high-contrast-black-on-white",lt="cdk-high-contrast-white-on-black",Ut="cdk-high-contrast-active";let mt=(()=>{class Ee{constructor(U,k){this._platform=U,this._document=k}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const k=this._document.defaultView||window,ie=k&&k.getComputedStyle?k.getComputedStyle(U):null,ce=(ie&&ie.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ce){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(Ut),U.remove(Ht),U.remove(lt),this._hasCheckedHighContrastMode=!0;const k=this.getHighContrastMode();1===k?(U.add(Ut),U.add(Ht)):2===k&&(U.add(Ut),U.add(lt))}}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(_.t4),b.LFG(e.K0))},Ee.\u0275prov=b.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Lt=(()=>{class Ee{constructor(U){U._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(U){return new(U||Ee)(b.LFG(mt))},Ee.\u0275mod=b.oAB({type:Ee}),Ee.\u0275inj=b.cJS({imports:[[_.ud,Me.Q8]]}),Ee})()},50226:($e,_e,p)=>{"use strict";p.d(_e,{vT:()=>I,Is:()=>E});var e=p(5e3),b=p(69808);const _=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function w(){return(0,e.f3M)(b.K0)}}),g=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let E=(()=>{class P{constructor(L){if(this.value="ltr",this.change=new e.vpe,L){const G=L.documentElement?L.documentElement.dir:null;this.value=function A(P){const m=(null==P?void 0:P.toLowerCase())||"";return"auto"===m&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?g.test(navigator.language)?"rtl":"ltr":"rtl"===m?"rtl":"ltr"}((L.body?L.body.dir:null)||G||"ltr")}}ngOnDestroy(){this.change.complete()}}return P.\u0275fac=function(L){return new(L||P)(e.LFG(_,8))},P.\u0275prov=e.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=e.oAB({type:P}),P.\u0275inj=e.cJS({}),P})()},69287:($e,_e,p)=>{"use strict";p.d(_e,{i3:()=>A,TU:()=>w,Iq:()=>E});var e=p(69808),b=p(5e3);class _{constructor(I,P){this._document=P;const m=this._textarea=this._document.createElement("textarea"),L=m.style;L.position="fixed",L.top=L.opacity="0",L.left="-999em",m.setAttribute("aria-hidden","true"),m.value=I,this._document.body.appendChild(m)}copy(){const I=this._textarea;let P=!1;try{if(I){const m=this._document.activeElement;I.select(),I.setSelectionRange(0,I.value.length),P=this._document.execCommand("copy"),m&&m.focus()}}catch(m){}return P}destroy(){const I=this._textarea;I&&(I.remove(),this._textarea=void 0)}}let w=(()=>{class C{constructor(P){this._document=P}copy(P){const m=this.beginCopy(P),L=m.copy();return m.destroy(),L}beginCopy(P){return new _(P,this._document)}}return C.\u0275fac=function(P){return new(P||C)(b.LFG(e.K0))},C.\u0275prov=b.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"}),C})();const g=new b.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let A=(()=>{class C{constructor(P,m,L){this._clipboard=P,this._ngZone=m,this.text="",this.attempts=1,this.copied=new b.vpe,this._pending=new Set,L&&null!=L.attempts&&(this.attempts=L.attempts)}copy(P=this.attempts){if(P>1){let m=P;const L=this._clipboard.beginCopy(this.text);this._pending.add(L);const O=()=>{const G=L.copy();G||!--m||this._destroyed?(this._currentTimeout=null,this._pending.delete(L),L.destroy(),this.copied.emit(G)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(O,1))};O()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(P=>P.destroy()),this._pending.clear(),this._destroyed=!0}}return C.\u0275fac=function(P){return new(P||C)(b.Y36(w),b.Y36(b.R0b),b.Y36(g,8))},C.\u0275dir=b.lG2({type:C,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(P,m){1&P&&b.NdJ("click",function(){return m.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),C})(),E=(()=>{class C{}return C.\u0275fac=function(P){return new(P||C)},C.\u0275mod=b.oAB({type:C}),C.\u0275inj=b.cJS({}),C})()},63191:($e,_e,p)=>{"use strict";p.d(_e,{t6:()=>w,Eq:()=>g,Ig:()=>b,HM:()=>A,fI:()=>E,su:()=>_,du:()=>C});var e=p(5e3);function b(I){return null!=I&&"false"!=`${I}`}function _(I,P=0){return w(I)?Number(I):P}function w(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function g(I){return Array.isArray(I)?I:[I]}function A(I){return null==I?"":"string"==typeof I?I:`${I}px`}function E(I){return I instanceof e.SBq?I.nativeElement:I}function C(I,P=/\s+/){const m=[];if(null!=I){const L=Array.isArray(I)?I:`${I}`.split(P);for(const O of L){const G=`${O}`.trim();G&&m.push(G)}}return m}},20449:($e,_e,p)=>{"use strict";p.d(_e,{P3:()=>E,o2:()=>g,Ov:()=>P,A8:()=>L,yy:()=>C,eX:()=>I,k:()=>O,Z9:()=>A});var e=p(54715),b=p(21086),_=p(8929),w=p(5e3);class g{}function A(G){return G&&"function"==typeof G.connect}class E extends g{constructor(ne){super(),this._data=ne}connect(){return(0,e.b)(this._data)?this._data:(0,b.of)(this._data)}disconnect(){}}class C{applyChanges(ne,ge,J,Me,oe){ne.forEachOperation((Re,T,j)=>{let Y,q;if(null==Re.previousIndex){const te=J(Re,T,j);Y=ge.createEmbeddedView(te.templateRef,te.context,te.index),q=1}else null==j?(ge.remove(T),q=3):(Y=ge.get(T),ge.move(Y,j),q=2);oe&&oe({context:null==Y?void 0:Y.context,operation:q,record:Re})})}detach(){}}class I{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(ne,ge,J,Me,oe){ne.forEachOperation((Re,T,j)=>{let Y,q;null==Re.previousIndex?(Y=this._insertView(()=>J(Re,T,j),j,ge,Me(Re)),q=Y?1:0):null==j?(this._detachAndCacheView(T,ge),q=3):(Y=this._moveView(T,j,ge,Me(Re)),q=2),oe&&oe({context:null==Y?void 0:Y.context,operation:q,record:Re})})}detach(){for(const ne of this._viewCache)ne.destroy();this._viewCache=[]}_insertView(ne,ge,J,Me){const oe=this._insertViewFromCache(ge,J);if(oe)return void(oe.context.$implicit=Me);const Re=ne();return J.createEmbeddedView(Re.templateRef,Re.context,Re.index)}_detachAndCacheView(ne,ge){const J=ge.detach(ne);this._maybeCacheView(J,ge)}_moveView(ne,ge,J,Me){const oe=J.get(ne);return J.move(oe,ge),oe.context.$implicit=Me,oe}_maybeCacheView(ne,ge){if(this._viewCache.lengththis._markSelected(Me)):this._markSelected(ge[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...ne){this._verifyValueAssignment(ne),ne.forEach(ge=>this._markSelected(ge)),this._emitChangeEvent()}deselect(...ne){this._verifyValueAssignment(ne),ne.forEach(ge=>this._unmarkSelected(ge)),this._emitChangeEvent()}toggle(ne){this.isSelected(ne)?this.deselect(ne):this.select(ne)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(ne){return this._selection.has(ne)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(ne){this._multiple&&this.selected&&this._selected.sort(ne)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(ne){this.isSelected(ne)||(this._multiple||this._unmarkAll(),this._selection.add(ne),this._emitChanges&&this._selectedToEmit.push(ne))}_unmarkSelected(ne){this.isSelected(ne)&&(this._selection.delete(ne),this._emitChanges&&this._deselectedToEmit.push(ne))}_unmarkAll(){this.isEmpty()||this._selection.forEach(ne=>this._unmarkSelected(ne))}_verifyValueAssignment(ne){}}let L=(()=>{class G{constructor(){this._listeners=[]}notify(ge,J){for(let Me of this._listeners)Me(ge,J)}listen(ge){return this._listeners.push(ge),()=>{this._listeners=this._listeners.filter(J=>ge!==J)}}ngOnDestroy(){this._listeners=[]}}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275prov=w.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})();const O=new w.OlP("_ViewRepeater")},44409:($e,_e,p)=>{"use strict";p.d(_e,{Zt:()=>Ee,Wj:()=>x,_t:()=>Ge,bA:()=>z});var e=p(5e3),b=p(69808),_=p(70925),w=p(63191),g=p(15664),A=p(8929),E=p(42654),C=p(61715),I=p(90352),P=p(56498),m=p(36787),L=p(7625),O=p(1059),G=p(24850),ne=p(72986),ge=p(22868),J=p(87545),Me=p(53435),oe=p(50226);function Re(U,k,ie){for(let ce in k)if(k.hasOwnProperty(ce)){const He=k[ce];He?U.setProperty(ce,He,(null==ie?void 0:ie.has(ce))?"important":""):U.removeProperty(ce)}return U}function T(U,k){const ie=k?"":"none";Re(U.style,{"touch-action":k?"":"none","-webkit-user-drag":k?"":"none","-webkit-tap-highlight-color":k?"":"transparent","user-select":ie,"-ms-user-select":ie,"-webkit-user-select":ie,"-moz-user-select":ie})}function j(U,k,ie){Re(U.style,{position:k?"":"fixed",top:k?"":"0",opacity:k?"":"0",left:k?"":"-999em"},ie)}function Y(U,k){return k&&"none"!=k?U+" "+k:U}function q(U){const k=U.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(U)*k}function ue(U,k){return U.getPropertyValue(k).split(",").map(ce=>ce.trim())}function de(U){const k=U.getBoundingClientRect();return{top:k.top,right:k.right,bottom:k.bottom,left:k.left,width:k.width,height:k.height,x:k.x,y:k.y}}function Le(U,k,ie){const{top:ce,bottom:He,left:ct,right:bt}=U;return ie>=ce&&ie<=He&&k>=ct&&k<=bt}function Ue(U,k,ie){U.top+=k,U.bottom=U.top+U.height,U.left+=ie,U.right=U.left+U.width}function ze(U,k,ie,ce){const{top:He,right:ct,bottom:bt,left:xt,width:Yt,height:It}=U,Rt=Yt*k,Et=It*k;return ce>He-Et&&cext-Rt&&ie{this.positions.set(ie,{scrollPosition:{top:ie.scrollTop,left:ie.scrollLeft},clientRect:de(ie)})})}handleScroll(k){const ie=(0,_.sA)(k),ce=this.positions.get(ie);if(!ce)return null;const He=ce.scrollPosition;let ct,bt;if(ie===this._document){const It=this._viewportRuler.getViewportScrollPosition();ct=It.top,bt=It.left}else ct=ie.scrollTop,bt=ie.scrollLeft;const xt=He.top-ct,Yt=He.left-bt;return this.positions.forEach((It,Rt)=>{It.clientRect&&ie!==Rt&&ie.contains(Rt)&&Ue(It.clientRect,xt,Yt)}),He.top=ct,He.left=bt,{top:xt,left:Yt}}}function je(U){const k=U.cloneNode(!0),ie=k.querySelectorAll("[id]"),ce=U.nodeName.toLowerCase();k.removeAttribute("id");for(let He=0;He{if(this.beforeStarted.next(),this._handles.length){const Yt=this._handles.find(It=>xt.target&&(xt.target===It||It.contains(xt.target)));Yt&&!this._disabledHandles.has(Yt)&&!this.disabled&&this._initializeDragSequence(Yt,xt)}else this.disabled||this._initializeDragSequence(this._rootElement,xt)},this._pointerMove=xt=>{const Yt=this._getPointerPositionOnPage(xt);if(!this._hasStartedDragging){if(Math.abs(Yt.x-this._pickupPositionOnPage.x)+Math.abs(Yt.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const Jt=Date.now()>=this._dragStartTime+this._getDragStartDelay(xt),ai=this._dropContainer;if(!Jt)return void this._endDragSequence(xt);(!ai||!ai.isDragging()&&!ai.isReceiving())&&(xt.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(xt)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),xt.preventDefault();const It=this._getConstrainedPointerPosition(Yt);if(this._hasMoved=!0,this._lastKnownPointerPosition=Yt,this._updatePointerDirectionDelta(It),this._dropContainer)this._updateActiveDropContainer(It,Yt);else{const Rt=this._activeTransform;Rt.x=It.x-this._pickupPositionOnPage.x+this._passiveTransform.x,Rt.y=It.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(Rt.x,Rt.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:It,event:xt,distance:this._getDragDistance(It),delta:this._pointerDirectionDelta})})},this._pointerUp=xt=>{this._endDragSequence(xt)},this.withRootElement(k).withParent(ie.parentDragRef||null),this._parentPositions=new le(ce,ct),bt.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(k){const ie=(0,w.Ig)(k);ie!==this._disabled&&(this._disabled=ie,this._toggleNativeDragInteractions(),this._handles.forEach(ce=>T(ce,ie)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(k){this._handles=k.map(ce=>(0,w.fI)(ce)),this._handles.forEach(ce=>T(ce,this.disabled)),this._toggleNativeDragInteractions();const ie=new Set;return this._disabledHandles.forEach(ce=>{this._handles.indexOf(ce)>-1&&ie.add(ce)}),this._disabledHandles=ie,this}withPreviewTemplate(k){return this._previewTemplate=k,this}withPlaceholderTemplate(k){return this._placeholderTemplate=k,this}withRootElement(k){const ie=(0,w.fI)(k);return ie!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{ie.addEventListener("mousedown",this._pointerDown,be),ie.addEventListener("touchstart",this._pointerDown,me)}),this._initialTransform=void 0,this._rootElement=ie),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(k){return this._boundaryElement=k?(0,w.fI)(k):null,this._resizeSubscription.unsubscribe(),k&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(k){return this._parentDragRef=k,this}dispose(){var k,ie;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(k=this._rootElement)||void 0===k||k.remove()),null===(ie=this._anchor)||void 0===ie||ie.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(k){!this._disabledHandles.has(k)&&this._handles.indexOf(k)>-1&&(this._disabledHandles.add(k),T(k,!0))}enableHandle(k){this._disabledHandles.has(k)&&(this._disabledHandles.delete(k),T(k,this.disabled))}withDirection(k){return this._direction=k,this}_withDropContainer(k){this._dropContainer=k}getFreeDragPosition(){const k=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:k.x,y:k.y}}setFreeDragPosition(k){return this._activeTransform={x:0,y:0},this._passiveTransform.x=k.x,this._passiveTransform.y=k.y,this._dropContainer||this._applyRootElementTransform(k.x,k.y),this}withPreviewContainer(k){return this._previewContainer=k,this}_sortFromLastPointerPosition(){const k=this._lastKnownPointerPosition;k&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(k),k)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var k,ie;null===(k=this._preview)||void 0===k||k.remove(),null===(ie=this._previewRef)||void 0===ie||ie.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var k,ie;null===(k=this._placeholder)||void 0===k||k.remove(),null===(ie=this._placeholderRef)||void 0===ie||ie.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(k){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(k),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const ie=this._getPointerPositionOnPage(k);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(ie),dropPoint:ie})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(k){nt(k)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const ie=this._dropContainer;if(ie){const ce=this._rootElement,He=ce.parentNode,ct=this._placeholder=this._createPlaceholderElement(),bt=this._anchor=this._anchor||this._document.createComment(""),xt=this._getShadowRoot();He.insertBefore(bt,ce),this._initialTransform=ce.style.transform||"",this._preview=this._createPreviewElement(),j(ce,!1,pe),this._document.body.appendChild(He.replaceChild(ct,ce)),this._getPreviewInsertionPoint(He,xt).appendChild(this._preview),this.started.next({source:this}),ie.start(),this._initialContainer=ie,this._initialIndex=ie.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(ie?ie.getScrollableParents():[])}_initializeDragSequence(k,ie){this._parentDragRef&&ie.stopPropagation();const ce=this.isDragging(),He=nt(ie),ct=!He&&0!==ie.button,bt=this._rootElement,xt=(0,_.sA)(ie),Yt=!He&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),It=He?(0,g.yG)(ie):(0,g.X6)(ie);if(xt&&xt.draggable&&"mousedown"===ie.type&&ie.preventDefault(),ce||ct||Yt||It)return;if(this._handles.length){const Bt=bt.style;this._rootElementTapHighlight=Bt.webkitTapHighlightColor||"",Bt.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(Bt=>this._updateOnScroll(Bt)),this._boundaryElement&&(this._boundaryRect=de(this._boundaryElement));const Rt=this._previewTemplate;this._pickupPositionInElement=Rt&&Rt.template&&!Rt.matchSize?{x:0,y:0}:this._getPointerPositionInElement(k,ie);const Et=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(ie);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:Et.x,y:Et.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,ie)}_cleanupDragArtifacts(k){j(this._rootElement,!0,pe),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const ie=this._dropContainer,ce=ie.getItemIndex(this),He=this._getPointerPositionOnPage(k),ct=this._getDragDistance(He),bt=ie._isOverContainer(He.x,He.y);this.ended.next({source:this,distance:ct,dropPoint:He}),this.dropped.next({item:this,currentIndex:ce,previousIndex:this._initialIndex,container:ie,previousContainer:this._initialContainer,isPointerOverContainer:bt,distance:ct,dropPoint:He}),ie.drop(this,ce,this._initialIndex,this._initialContainer,bt,ct,He),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:k,y:ie},{x:ce,y:He}){let ct=this._initialContainer._getSiblingContainerFromPosition(this,k,ie);!ct&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(k,ie)&&(ct=this._initialContainer),ct&&ct!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=ct,this._dropContainer.enter(this,k,ie,ct===this._initialContainer&&ct.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:ct,currentIndex:ct.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(ce,He),this._dropContainer._sortItem(this,k,ie,this._pointerDirectionDelta),this._applyPreviewTransform(k-this._pickupPositionInElement.x,ie-this._pickupPositionInElement.y))}_createPreviewElement(){const k=this._previewTemplate,ie=this.previewClass,ce=k?k.template:null;let He;if(ce&&k){const ct=k.matchSize?this._rootElement.getBoundingClientRect():null,bt=k.viewContainer.createEmbeddedView(ce,k.context);bt.detectChanges(),He=Ve(bt,this._document),this._previewRef=bt,k.matchSize?X(He,ct):He.style.transform=Xe(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const ct=this._rootElement;He=je(ct),X(He,ct.getBoundingClientRect()),this._initialTransform&&(He.style.transform=this._initialTransform)}return Re(He.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},pe),T(He,!1),He.classList.add("cdk-drag-preview"),He.setAttribute("dir",this._direction),ie&&(Array.isArray(ie)?ie.forEach(ct=>He.classList.add(ct)):He.classList.add(ie)),He}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const k=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(k.left,k.top);const ie=function te(U){const k=getComputedStyle(U),ie=ue(k,"transition-property"),ce=ie.find(xt=>"transform"===xt||"all"===xt);if(!ce)return 0;const He=ie.indexOf(ce),ct=ue(k,"transition-duration"),bt=ue(k,"transition-delay");return q(ct[He])+q(bt[He])}(this._preview);return 0===ie?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(ce=>{const He=bt=>{var xt;(!bt||(0,_.sA)(bt)===this._preview&&"transform"===bt.propertyName)&&(null===(xt=this._preview)||void 0===xt||xt.removeEventListener("transitionend",He),ce(),clearTimeout(ct))},ct=setTimeout(He,1.5*ie);this._preview.addEventListener("transitionend",He)}))}_createPlaceholderElement(){const k=this._placeholderTemplate,ie=k?k.template:null;let ce;return ie?(this._placeholderRef=k.viewContainer.createEmbeddedView(ie,k.context),this._placeholderRef.detectChanges(),ce=Ve(this._placeholderRef,this._document)):ce=je(this._rootElement),ce.classList.add("cdk-drag-placeholder"),ce}_getPointerPositionInElement(k,ie){const ce=this._rootElement.getBoundingClientRect(),He=k===this._rootElement?null:k,ct=He?He.getBoundingClientRect():ce,bt=nt(ie)?ie.targetTouches[0]:ie,xt=this._getViewportScrollPosition();return{x:ct.left-ce.left+(bt.pageX-ct.left-xt.left),y:ct.top-ce.top+(bt.pageY-ct.top-xt.top)}}_getPointerPositionOnPage(k){const ie=this._getViewportScrollPosition(),ce=nt(k)?k.touches[0]||k.changedTouches[0]||{pageX:0,pageY:0}:k,He=ce.pageX-ie.left,ct=ce.pageY-ie.top;if(this._ownerSVGElement){const bt=this._ownerSVGElement.getScreenCTM();if(bt){const xt=this._ownerSVGElement.createSVGPoint();return xt.x=He,xt.y=ct,xt.matrixTransform(bt.inverse())}}return{x:He,y:ct}}_getConstrainedPointerPosition(k){const ie=this._dropContainer?this._dropContainer.lockAxis:null;let{x:ce,y:He}=this.constrainPosition?this.constrainPosition(k,this):k;if("x"===this.lockAxis||"x"===ie?He=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===ie)&&(ce=this._pickupPositionOnPage.x),this._boundaryRect){const{x:ct,y:bt}=this._pickupPositionInElement,xt=this._boundaryRect,Yt=this._previewRect,It=xt.top+bt,Rt=xt.bottom-(Yt.height-bt);ce=Je(ce,xt.left+ct,xt.right-(Yt.width-ct)),He=Je(He,It,Rt)}return{x:ce,y:He}}_updatePointerDirectionDelta(k){const{x:ie,y:ce}=k,He=this._pointerDirectionDelta,ct=this._pointerPositionAtLastDirectionChange,bt=Math.abs(ie-ct.x),xt=Math.abs(ce-ct.y);return bt>this._config.pointerDirectionChangeThreshold&&(He.x=ie>ct.x?1:-1,ct.x=ie),xt>this._config.pointerDirectionChangeThreshold&&(He.y=ce>ct.y?1:-1,ct.y=ce),He}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const k=this._handles.length>0||!this.isDragging();k!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=k,T(this._rootElement,k))}_removeRootElementListeners(k){k.removeEventListener("mousedown",this._pointerDown,be),k.removeEventListener("touchstart",this._pointerDown,me)}_applyRootElementTransform(k,ie){const ce=Xe(k,ie),He=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=He.transform&&"none"!=He.transform?He.transform:""),He.transform=Y(ce,this._initialTransform)}_applyPreviewTransform(k,ie){var ce;const He=(null===(ce=this._previewTemplate)||void 0===ce?void 0:ce.template)?void 0:this._initialTransform,ct=Xe(k,ie);this._preview.style.transform=Y(ct,He)}_getDragDistance(k){const ie=this._pickupPositionOnPage;return ie?{x:k.x-ie.x,y:k.y-ie.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:k,y:ie}=this._passiveTransform;if(0===k&&0===ie||this.isDragging()||!this._boundaryElement)return;const ce=this._boundaryElement.getBoundingClientRect(),He=this._rootElement.getBoundingClientRect();if(0===ce.width&&0===ce.height||0===He.width&&0===He.height)return;const ct=ce.left-He.left,bt=He.right-ce.right,xt=ce.top-He.top,Yt=He.bottom-ce.bottom;ce.width>He.width?(ct>0&&(k+=ct),bt>0&&(k-=bt)):k=0,ce.height>He.height?(xt>0&&(ie+=xt),Yt>0&&(ie-=Yt)):ie=0,(k!==this._passiveTransform.x||ie!==this._passiveTransform.y)&&this.setFreeDragPosition({y:ie,x:k})}_getDragStartDelay(k){const ie=this.dragStartDelay;return"number"==typeof ie?ie:nt(k)?ie.touch:ie?ie.mouse:0}_updateOnScroll(k){const ie=this._parentPositions.handleScroll(k);if(ie){const ce=(0,_.sA)(k);this._boundaryRect&&ce!==this._boundaryElement&&ce.contains(this._boundaryElement)&&Ue(this._boundaryRect,ie.top,ie.left),this._pickupPositionOnPage.x+=ie.left,this._pickupPositionOnPage.y+=ie.top,this._dropContainer||(this._activeTransform.x-=ie.left,this._activeTransform.y-=ie.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const k=this._parentPositions.positions.get(this._document);return k?k.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,_.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(k,ie){const ce=this._previewContainer||"global";if("parent"===ce)return k;if("global"===ce){const He=this._document;return ie||He.fullscreenElement||He.webkitFullscreenElement||He.mozFullScreenElement||He.msFullscreenElement||He.body}return(0,w.fI)(ce)}}function Xe(U,k){return`translate3d(${Math.round(U)}px, ${Math.round(k)}px, 0)`}function Je(U,k,ie){return Math.max(k,Math.min(ie,U))}function nt(U){return"t"===U.type[0]}function Ve(U,k){const ie=U.rootNodes;if(1===ie.length&&ie[0].nodeType===k.ELEMENT_NODE)return ie[0];const ce=k.createElement("div");return ie.forEach(He=>ce.appendChild(He)),ce}function X(U,k){U.style.width=`${k.width}px`,U.style.height=`${k.height}px`,U.style.transform=Xe(k.left,k.top)}function z(U,k,ie){const ce=H(k,U.length-1),He=H(ie,U.length-1);if(ce===He)return;const ct=U[ce],bt=He!0,this.sortPredicate=()=>!0,this.beforeStarted=new A.xQ,this.entered=new A.xQ,this.exited=new A.xQ,this.dropped=new A.xQ,this.sorted=new A.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new A.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),(0,C.F)(0,I.r).pipe((0,L.R)(this._stopScrollTimers)).subscribe(()=>{const bt=this._scrollNode,xt=this.autoScrollStep;1===this._verticalScrollDirection?bt.scrollBy(0,-xt):2===this._verticalScrollDirection&&bt.scrollBy(0,xt),1===this._horizontalScrollDirection?bt.scrollBy(-xt,0):2===this._horizontalScrollDirection&&bt.scrollBy(xt,0)})},this.element=(0,w.fI)(k),this._document=ce,this.withScrollableParents([this.element]),ie.registerDropContainer(this),this._parentPositions=new le(ce,ct)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(k,ie,ce,He){let ct;this._draggingStarted(),null==He?(ct=this.sortingDisabled?this._draggables.indexOf(k):-1,-1===ct&&(ct=this._getItemIndexFromPointerPosition(k,ie,ce))):ct=He;const bt=this._activeDraggables,xt=bt.indexOf(k),Yt=k.getPlaceholderElement();let It=bt[ct];if(It===k&&(It=bt[ct+1]),!It&&(null==ct||-1===ct||ct-1&&bt.splice(xt,1),It&&!this._dragDropRegistry.isDragging(It)){const Rt=It.getRootElement();Rt.parentElement.insertBefore(Yt,Rt),bt.splice(ct,0,k)}else(0,w.fI)(this.element).appendChild(Yt),bt.push(k);Yt.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:k,container:this,currentIndex:this.getItemIndex(k)})}exit(k){this._reset(),this.exited.next({item:k,container:this})}drop(k,ie,ce,He,ct,bt,xt){this._reset(),this.dropped.next({item:k,currentIndex:ie,previousIndex:ce,container:this,previousContainer:He,isPointerOverContainer:ct,distance:bt,dropPoint:xt})}withItems(k){const ie=this._draggables;return this._draggables=k,k.forEach(ce=>ce._withDropContainer(this)),this.isDragging()&&(ie.filter(He=>He.isDragging()).every(He=>-1===k.indexOf(He))?this._reset():this._cacheItems()),this}withDirection(k){return this._direction=k,this}connectedTo(k){return this._siblings=k.slice(),this}withOrientation(k){return this._orientation=k,this}withScrollableParents(k){const ie=(0,w.fI)(this.element);return this._scrollableElements=-1===k.indexOf(ie)?[ie,...k]:k.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(k){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(ce=>ce.drag===k):this._draggables.indexOf(k)}isReceiving(){return this._activeSiblings.size>0}_sortItem(k,ie,ce,He){if(this.sortingDisabled||!this._clientRect||!ze(this._clientRect,.05,ie,ce))return;const ct=this._itemPositions,bt=this._getItemIndexFromPointerPosition(k,ie,ce,He);if(-1===bt&&ct.length>0)return;const xt="horizontal"===this._orientation,Yt=ct.findIndex(bi=>bi.drag===k),It=ct[bt],Et=It.clientRect,Bt=Yt>bt?1:-1,Jt=this._getItemOffsetPx(ct[Yt].clientRect,Et,Bt),ai=this._getSiblingOffsetPx(Yt,ct,Bt),mi=ct.slice();z(ct,Yt,bt),this.sorted.next({previousIndex:Yt,currentIndex:bt,container:this,item:k}),ct.forEach((bi,yi)=>{if(mi[yi]===bi)return;const Wi=bi.drag===k,gn=Wi?Jt:ai,cn=Wi?k.getPlaceholderElement():bi.drag.getRootElement();bi.offset+=gn,xt?(cn.style.transform=Y(`translate3d(${Math.round(bi.offset)}px, 0, 0)`,bi.initialTransform),Ue(bi.clientRect,0,gn)):(cn.style.transform=Y(`translate3d(0, ${Math.round(bi.offset)}px, 0)`,bi.initialTransform),Ue(bi.clientRect,gn,0))}),this._previousSwap.overlaps=Le(Et,ie,ce),this._previousSwap.drag=It.drag,this._previousSwap.delta=xt?He.x:He.y}_startScrollingIfNecessary(k,ie){if(this.autoScrollDisabled)return;let ce,He=0,ct=0;if(this._parentPositions.positions.forEach((bt,xt)=>{xt===this._document||!bt.clientRect||ce||ze(bt.clientRect,.05,k,ie)&&([He,ct]=function ae(U,k,ie,ce){const He=Te(k,ce),ct=Ae(k,ie);let bt=0,xt=0;if(He){const Yt=U.scrollTop;1===He?Yt>0&&(bt=1):U.scrollHeight-Yt>U.clientHeight&&(bt=2)}if(ct){const Yt=U.scrollLeft;1===ct?Yt>0&&(xt=1):U.scrollWidth-Yt>U.clientWidth&&(xt=2)}return[bt,xt]}(xt,bt.clientRect,k,ie),(He||ct)&&(ce=xt))}),!He&&!ct){const{width:bt,height:xt}=this._viewportRuler.getViewportSize(),Yt={width:bt,height:xt,top:0,right:bt,bottom:xt,left:0};He=Te(Yt,ie),ct=Ae(Yt,k),ce=window}ce&&(He!==this._verticalScrollDirection||ct!==this._horizontalScrollDirection||ce!==this._scrollNode)&&(this._verticalScrollDirection=He,this._horizontalScrollDirection=ct,this._scrollNode=ce,(He||ct)&&ce?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const k=(0,w.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=k.msScrollSnapType||k.scrollSnapType||"",k.scrollSnapType=k.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const k=(0,w.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(k).clientRect}_cacheItemPositions(){const k="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(ie=>{const ce=ie.getVisibleElement();return{drag:ie,offset:0,initialTransform:ce.style.transform||"",clientRect:de(ce)}}).sort((ie,ce)=>k?ie.clientRect.left-ce.clientRect.left:ie.clientRect.top-ce.clientRect.top)}_reset(){this._isDragging=!1;const k=(0,w.fI)(this.element).style;k.scrollSnapType=k.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(ie=>{var ce;const He=ie.getRootElement();if(He){const ct=null===(ce=this._itemPositions.find(bt=>bt.drag===ie))||void 0===ce?void 0:ce.initialTransform;He.style.transform=ct||""}}),this._siblings.forEach(ie=>ie._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(k,ie,ce){const He="horizontal"===this._orientation,ct=ie[k].clientRect,bt=ie[k+-1*ce];let xt=ct[He?"width":"height"]*ce;if(bt){const Yt=He?"left":"top",It=He?"right":"bottom";-1===ce?xt-=bt.clientRect[Yt]-ct[It]:xt+=ct[Yt]-bt.clientRect[It]}return xt}_getItemOffsetPx(k,ie,ce){const He="horizontal"===this._orientation;let ct=He?ie.left-k.left:ie.top-k.top;return-1===ce&&(ct+=He?ie.width-k.width:ie.height-k.height),ct}_shouldEnterAsFirstChild(k,ie){if(!this._activeDraggables.length)return!1;const ce=this._itemPositions,He="horizontal"===this._orientation;if(ce[0].drag!==this._activeDraggables[0]){const bt=ce[ce.length-1].clientRect;return He?k>=bt.right:ie>=bt.bottom}{const bt=ce[0].clientRect;return He?k<=bt.left:ie<=bt.top}}_getItemIndexFromPointerPosition(k,ie,ce,He){const ct="horizontal"===this._orientation,bt=this._itemPositions.findIndex(({drag:xt,clientRect:Yt})=>{if(xt===k)return!1;if(He){const It=ct?He.x:He.y;if(xt===this._previousSwap.drag&&this._previousSwap.overlaps&&It===this._previousSwap.delta)return!1}return ct?ie>=Math.floor(Yt.left)&&ie=Math.floor(Yt.top)&&ceHe._canReceive(k,ie,ce))}_canReceive(k,ie,ce){if(!this._clientRect||!Le(this._clientRect,ie,ce)||!this.enterPredicate(k,this))return!1;const He=this._getShadowRoot().elementFromPoint(ie,ce);if(!He)return!1;const ct=(0,w.fI)(this.element);return He===ct||ct.contains(He)}_startReceiving(k,ie){const ce=this._activeSiblings;!ce.has(k)&&ie.every(He=>this.enterPredicate(He,this)||this._draggables.indexOf(He)>-1)&&(ce.add(k),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(k){this._activeSiblings.delete(k),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>{if(this.isDragging()){const ie=this._parentPositions.handleScroll(k);ie&&(this._itemPositions.forEach(({clientRect:ce})=>{Ue(ce,ie.top,ie.left)}),this._itemPositions.forEach(({drag:ce})=>{this._dragDropRegistry.isDragging(ce)&&ce._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const k=(0,_.kV)((0,w.fI)(this.element));this._cachedShadowRoot=k||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const k=this._activeDraggables.filter(ie=>ie.isDragging());this._siblings.forEach(ie=>ie._startReceiving(this,k))}}function Te(U,k){const{top:ie,bottom:ce,height:He}=U,ct=.05*He;return k>=ie-ct&&k<=ie+ct?1:k>=ce-ct&&k<=ce+ct?2:0}function Ae(U,k){const{left:ie,right:ce,width:He}=U,ct=.05*He;return k>=ie-ct&&k<=ie+ct?1:k>=ce-ct&&k<=ce+ct?2:0}const i=(0,_.i$)({passive:!1,capture:!0});let o=(()=>{class U{constructor(ie,ce){this._ngZone=ie,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=He=>He.isDragging(),this.pointerMove=new A.xQ,this.pointerUp=new A.xQ,this.scroll=new A.xQ,this._preventDefaultWhileDragging=He=>{this._activeDragInstances.length>0&&He.preventDefault()},this._persistentTouchmoveListener=He=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&He.preventDefault(),this.pointerMove.next(He))},this._document=ce}registerDropContainer(ie){this._dropInstances.has(ie)||this._dropInstances.add(ie)}registerDragItem(ie){this._dragInstances.add(ie),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,i)})}removeDropContainer(ie){this._dropInstances.delete(ie)}removeDragItem(ie){this._dragInstances.delete(ie),this.stopDragging(ie),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,i)}startDragging(ie,ce){if(!(this._activeDragInstances.indexOf(ie)>-1)&&(this._activeDragInstances.push(ie),1===this._activeDragInstances.length)){const He=ce.type.startsWith("touch");this._globalListeners.set(He?"touchend":"mouseup",{handler:ct=>this.pointerUp.next(ct),options:!0}).set("scroll",{handler:ct=>this.scroll.next(ct),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:i}),He||this._globalListeners.set("mousemove",{handler:ct=>this.pointerMove.next(ct),options:i}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((ct,bt)=>{this._document.addEventListener(bt,ct.handler,ct.options)})})}}stopDragging(ie){const ce=this._activeDragInstances.indexOf(ie);ce>-1&&(this._activeDragInstances.splice(ce,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(ie){return this._activeDragInstances.indexOf(ie)>-1}scrolled(ie){const ce=[this.scroll];return ie&&ie!==this._document&&ce.push(new P.y(He=>this._ngZone.runOutsideAngular(()=>{const bt=xt=>{this._activeDragInstances.length&&He.next(xt)};return ie.addEventListener("scroll",bt,!0),()=>{ie.removeEventListener("scroll",bt,!0)}}))),(0,m.T)(...ce)}ngOnDestroy(){this._dragInstances.forEach(ie=>this.removeDragItem(ie)),this._dropInstances.forEach(ie=>this.removeDropContainer(ie)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((ie,ce)=>{this._document.removeEventListener(ce,ie.handler,ie.options)}),this._globalListeners.clear()}}return U.\u0275fac=function(ie){return new(ie||U)(e.LFG(e.R0b),e.LFG(b.K0))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const d={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let l=(()=>{class U{constructor(ie,ce,He,ct){this._document=ie,this._ngZone=ce,this._viewportRuler=He,this._dragDropRegistry=ct}createDrag(ie,ce=d){return new Se(ie,ce,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(ie){return new Qe(ie,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return U.\u0275fac=function(ie){return new(ie||U)(e.LFG(b.K0),e.LFG(e.R0b),e.LFG(Me.rL),e.LFG(o))},U.\u0275prov=e.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})();const s=new e.OlP("CDK_DRAG_PARENT"),r=new e.OlP("CdkDropListGroup"),n=new e.OlP("CDK_DRAG_CONFIG");let c=0;const h=new e.OlP("CdkDropList");let x=(()=>{class U{constructor(ie,ce,He,ct,bt,xt,Yt){this.element=ie,this._changeDetectorRef=He,this._scrollDispatcher=ct,this._dir=bt,this._group=xt,this._destroyed=new A.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+c++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.sorted=new e.vpe,this._unsortedItems=new Set,this._dropListRef=ce.createDropList(ie),this._dropListRef.data=this,Yt&&this._assignDefaults(Yt),this._dropListRef.enterPredicate=(It,Rt)=>this.enterPredicate(It.data,Rt.data),this._dropListRef.sortPredicate=(It,Rt,Et)=>this.sortPredicate(It,Rt.data,Et.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),U._dropLists.push(this),xt&&xt._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(ie){this._dropListRef.disabled=this._disabled=(0,w.Ig)(ie)}addItem(ie){this._unsortedItems.add(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(ie){this._unsortedItems.delete(ie),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((ie,ce)=>ie._dragRef.getVisibleElement().compareDocumentPosition(ce._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const ie=U._dropLists.indexOf(this);ie>-1&&U._dropLists.splice(ie,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(ie){this._dir&&this._dir.change.pipe((0,O.O)(this._dir.value),(0,L.R)(this._destroyed)).subscribe(ce=>ie.withDirection(ce)),ie.beforeStarted.subscribe(()=>{const ce=(0,w.Eq)(this.connectedTo).map(He=>"string"==typeof He?U._dropLists.find(bt=>bt.id===He):He);if(this._group&&this._group._items.forEach(He=>{-1===ce.indexOf(He)&&ce.push(He)}),!this._scrollableParentsResolved){const He=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(ct=>ct.getElementRef().nativeElement);this._dropListRef.withScrollableParents(He),this._scrollableParentsResolved=!0}ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.sortingDisabled=(0,w.Ig)(this.sortingDisabled),ie.autoScrollDisabled=(0,w.Ig)(this.autoScrollDisabled),ie.autoScrollStep=(0,w.su)(this.autoScrollStep,2),ie.connectedTo(ce.filter(He=>He&&He!==this).map(He=>He._dropListRef)).withOrientation(this.orientation)})}_handleEvents(ie){ie.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(ce=>{this.entered.emit({container:this,item:ce.item.data,currentIndex:ce.currentIndex})}),ie.exited.subscribe(ce=>{this.exited.emit({container:this,item:ce.item.data}),this._changeDetectorRef.markForCheck()}),ie.sorted.subscribe(ce=>{this.sorted.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,container:this,item:ce.item.data})}),ie.dropped.subscribe(ce=>{this.dropped.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,previousContainer:ce.previousContainer.data,container:ce.container.data,item:ce.item.data,isPointerOverContainer:ce.isPointerOverContainer,distance:ce.distance,dropPoint:ce.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(ie){const{lockAxis:ce,draggingDisabled:He,sortingDisabled:ct,listAutoScrollDisabled:bt,listOrientation:xt}=ie;this.disabled=null!=He&&He,this.sortingDisabled=null!=ct&&ct,this.autoScrollDisabled=null!=bt&&bt,this.orientation=xt||"vertical",ce&&(this.lockAxis=ce)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(ie=>ie._dragRef))}}return U._dropLists=[],U.\u0275fac=function(ie){return new(ie||U)(e.Y36(e.SBq),e.Y36(l),e.Y36(e.sBO),e.Y36(Me.mF),e.Y36(oe.Is,8),e.Y36(r,12),e.Y36(n,8))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(ie,ce){2&ie&&(e.uIk("id",ce.id),e.ekj("cdk-drop-list-disabled",ce.disabled)("cdk-drop-list-dragging",ce._dropListRef.isDragging())("cdk-drop-list-receiving",ce._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[e._Bn([{provide:r,useValue:void 0},{provide:h,useExisting:U}])]}),U})();const We=new e.OlP("CdkDragHandle"),Ht=new e.OlP("CdkDragPlaceholder"),Ut=new e.OlP("CdkDragPreview");let Ee=(()=>{class U{constructor(ie,ce,He,ct,bt,xt,Yt,It,Rt,Et,Bt){this.element=ie,this.dropContainer=ce,this._ngZone=ct,this._viewContainerRef=bt,this._dir=Yt,this._changeDetectorRef=Rt,this._selfHandle=Et,this._parentDrag=Bt,this._destroyed=new A.xQ,this.started=new e.vpe,this.released=new e.vpe,this.ended=new e.vpe,this.entered=new e.vpe,this.exited=new e.vpe,this.dropped=new e.vpe,this.moved=new P.y(Jt=>{const ai=this._dragRef.moved.pipe((0,G.U)(mi=>({source:this,pointerPosition:mi.pointerPosition,event:mi.event,delta:mi.delta,distance:mi.distance}))).subscribe(Jt);return()=>{ai.unsubscribe()}}),this._dragRef=It.createDrag(ie,{dragStartThreshold:xt&&null!=xt.dragStartThreshold?xt.dragStartThreshold:5,pointerDirectionChangeThreshold:xt&&null!=xt.pointerDirectionChangeThreshold?xt.pointerDirectionChangeThreshold:5,zIndex:null==xt?void 0:xt.zIndex}),this._dragRef.data=this,U._dragInstances.push(this),xt&&this._assignDefaults(xt),ce&&(this._dragRef._withDropContainer(ce._dropListRef),ce.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(ie){this._disabled=(0,w.Ig)(ie),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,ne.q)(1),(0,L.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(ie){const ce=ie.rootElementSelector,He=ie.freeDragPosition;ce&&!ce.firstChange&&this._updateRootElement(),He&&!He.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const ie=U._dragInstances.indexOf(this);ie>-1&&U._dragInstances.splice(ie,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var ie;const ce=this.element.nativeElement;let He=ce;this.rootElementSelector&&(He=void 0!==ce.closest?ce.closest(this.rootElementSelector):null===(ie=ce.parentElement)||void 0===ie?void 0:ie.closest(this.rootElementSelector)),this._dragRef.withRootElement(He||ce)}_getBoundaryElement(){const ie=this.boundaryElement;return ie?"string"==typeof ie?this.element.nativeElement.closest(ie):(0,w.fI)(ie):null}_syncInputs(ie){ie.beforeStarted.subscribe(()=>{if(!ie.isDragging()){const ce=this._dir,He=this.dragStartDelay,ct=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,bt=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;ie.disabled=this.disabled,ie.lockAxis=this.lockAxis,ie.dragStartDelay="object"==typeof He&&He?He:(0,w.su)(He),ie.constrainPosition=this.constrainPosition,ie.previewClass=this.previewClass,ie.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(ct).withPreviewTemplate(bt).withPreviewContainer(this.previewContainer||"global"),ce&&ie.withDirection(ce.value)}}),ie.beforeStarted.pipe((0,ne.q)(1)).subscribe(()=>{var ce;if(this._parentDrag)return void ie.withParent(this._parentDrag._dragRef);let He=this.element.nativeElement.parentElement;for(;He;){if(He.classList.contains("cdk-drag")){ie.withParent((null===(ce=U._dragInstances.find(ct=>ct.element.nativeElement===He))||void 0===ce?void 0:ce._dragRef)||null);break}He=He.parentElement}})}_handleEvents(ie){ie.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),ie.released.subscribe(()=>{this.released.emit({source:this})}),ie.ended.subscribe(ce=>{this.ended.emit({source:this,distance:ce.distance,dropPoint:ce.dropPoint}),this._changeDetectorRef.markForCheck()}),ie.entered.subscribe(ce=>{this.entered.emit({container:ce.container.data,item:this,currentIndex:ce.currentIndex})}),ie.exited.subscribe(ce=>{this.exited.emit({container:ce.container.data,item:this})}),ie.dropped.subscribe(ce=>{this.dropped.emit({previousIndex:ce.previousIndex,currentIndex:ce.currentIndex,previousContainer:ce.previousContainer.data,container:ce.container.data,isPointerOverContainer:ce.isPointerOverContainer,item:this,distance:ce.distance,dropPoint:ce.dropPoint})})}_assignDefaults(ie){const{lockAxis:ce,dragStartDelay:He,constrainPosition:ct,previewClass:bt,boundaryElement:xt,draggingDisabled:Yt,rootElementSelector:It,previewContainer:Rt}=ie;this.disabled=null!=Yt&&Yt,this.dragStartDelay=He||0,ce&&(this.lockAxis=ce),ct&&(this.constrainPosition=ct),bt&&(this.previewClass=bt),xt&&(this.boundaryElement=xt),It&&(this.rootElementSelector=It),Rt&&(this.previewContainer=Rt)}_setupHandlesListener(){this._handles.changes.pipe((0,O.O)(this._handles),(0,ge.b)(ie=>{const ce=ie.filter(He=>He._parentDrag===this).map(He=>He.element);this._selfHandle&&this.rootElementSelector&&ce.push(this.element),this._dragRef.withHandles(ce)}),(0,J.w)(ie=>(0,m.T)(...ie.map(ce=>ce._stateChanges.pipe((0,O.O)(ce))))),(0,L.R)(this._destroyed)).subscribe(ie=>{const ce=this._dragRef,He=ie.element.nativeElement;ie.disabled?ce.disableHandle(He):ce.enableHandle(He)})}}return U._dragInstances=[],U.\u0275fac=function(ie){return new(ie||U)(e.Y36(e.SBq),e.Y36(h,12),e.Y36(b.K0),e.Y36(e.R0b),e.Y36(e.s_b),e.Y36(n,8),e.Y36(oe.Is,8),e.Y36(l),e.Y36(e.sBO),e.Y36(We,10),e.Y36(s,12))},U.\u0275dir=e.lG2({type:U,selectors:[["","cdkDrag",""]],contentQueries:function(ie,ce,He){if(1&ie&&(e.Suo(He,Ut,5),e.Suo(He,Ht,5),e.Suo(He,We,5)),2&ie){let ct;e.iGM(ct=e.CRH())&&(ce._previewTemplate=ct.first),e.iGM(ct=e.CRH())&&(ce._placeholderTemplate=ct.first),e.iGM(ct=e.CRH())&&(ce._handles=ct)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(ie,ce){2&ie&&e.ekj("cdk-drag-disabled",ce.disabled)("cdk-drag-dragging",ce._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[e._Bn([{provide:s,useExisting:U}]),e.TTD]}),U})(),Ge=(()=>{class U{}return U.\u0275fac=function(ie){return new(ie||U)},U.\u0275mod=e.oAB({type:U}),U.\u0275inj=e.cJS({providers:[l],imports:[Me.ZD]}),U})()},91159:($e,_e,p)=>{"use strict";p.d(_e,{A:()=>Ie,zL:()=>C,ZH:()=>b,OC:()=>gt,jx:()=>E,yY:()=>q,JH:()=>Re,uR:()=>ne,K5:()=>g,hY:()=>m,Sd:()=>ge,oh:()=>J,b2:()=>_n,MW:()=>a,aO:()=>Be,VM:()=>G,Ku:()=>O,SV:()=>oe,JU:()=>A,L_:()=>L,Mf:()=>_,LH:()=>Me,Z:()=>n,xE:()=>te,Vb:()=>Ni});const b=8,_=9,g=13,A=16,E=17,C=18,m=27,L=32,O=33,G=34,ne=35,ge=36,J=37,Me=38,oe=39,Re=40,q=46,te=48,Be=57,Ie=65,n=90,a=91,gt=188,_n=224;function Ni(Ri,...sn){return sn.length?sn.some(Xi=>Ri[Xi]):Ri.altKey||Ri.shiftKey||Ri.ctrlKey||Ri.metaKey}},17144:($e,_e,p)=>{"use strict";p.d(_e,{wD:()=>C,yq:()=>E,Q8:()=>I});var e=p(63191),b=p(5e3),_=p(56498),w=p(8929),g=p(80013);let A=(()=>{class P{create(L){return"undefined"==typeof MutationObserver?null:new MutationObserver(L)}}return P.\u0275fac=function(L){return new(L||P)},P.\u0275prov=b.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),E=(()=>{class P{constructor(L){this._mutationObserverFactory=L,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((L,O)=>this._cleanupObserver(O))}observe(L){const O=(0,e.fI)(L);return new _.y(G=>{const ge=this._observeElement(O).subscribe(G);return()=>{ge.unsubscribe(),this._unobserveElement(O)}})}_observeElement(L){if(this._observedElements.has(L))this._observedElements.get(L).count++;else{const O=new w.xQ,G=this._mutationObserverFactory.create(ne=>O.next(ne));G&&G.observe(L,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(L,{observer:G,stream:O,count:1})}return this._observedElements.get(L).stream}_unobserveElement(L){this._observedElements.has(L)&&(this._observedElements.get(L).count--,this._observedElements.get(L).count||this._cleanupObserver(L))}_cleanupObserver(L){if(this._observedElements.has(L)){const{observer:O,stream:G}=this._observedElements.get(L);O&&O.disconnect(),G.complete(),this._observedElements.delete(L)}}}return P.\u0275fac=function(L){return new(L||P)(b.LFG(A))},P.\u0275prov=b.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"}),P})(),C=(()=>{class P{constructor(L,O,G){this._contentObserver=L,this._elementRef=O,this._ngZone=G,this.event=new b.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(L){this._disabled=(0,e.Ig)(L),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(L){this._debounce=(0,e.su)(L),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const L=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?L.pipe((0,g.b)(this.debounce)):L).subscribe(this.event)})}_unsubscribe(){var L;null===(L=this._currentSubscription)||void 0===L||L.unsubscribe()}}return P.\u0275fac=function(L){return new(L||P)(b.Y36(E),b.Y36(b.SBq),b.Y36(b.R0b))},P.\u0275dir=b.lG2({type:P,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),P})(),I=(()=>{class P{}return P.\u0275fac=function(L){return new(L||P)},P.\u0275mod=b.oAB({type:P}),P.\u0275inj=b.cJS({providers:[A]}),P})()},92845:($e,_e,p)=>{"use strict";p.d(_e,{pI:()=>xe,xu:()=>V,_G:()=>me,aV:()=>Q,X_:()=>de,Xj:()=>Be,U8:()=>Ae});var e=p(53435),b=p(69808),_=p(5e3),w=p(63191),g=p(70925),A=p(50226),E=p(47429),C=p(8929),I=p(42654),P=p(36787),m=p(43489);class O{constructor(o,d){this.predicate=o,this.inclusive=d}call(o,d){return d.subscribe(new G(o,this.predicate,this.inclusive))}}class G extends m.L{constructor(o,d,l){super(o),this.predicate=d,this.inclusive=l,this.index=0}_next(o){const d=this.destination;let l;try{l=this.predicate(o,this.index++)}catch(s){return void d.error(s)}this.nextOrComplete(o,l)}nextOrComplete(o,d){const l=this.destination;Boolean(d)?l.next(o):(this.inclusive&&l.next(o),l.complete())}}var ne=p(72986),ge=p(7625),J=p(91159);const Me=(0,g.Mq)();class oe{constructor(o,d){this._viewportRuler=o,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=d}attach(){}enable(){if(this._canBeEnabled()){const o=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=o.style.left||"",this._previousHTMLStyles.top=o.style.top||"",o.style.left=(0,w.HM)(-this._previousScrollPosition.left),o.style.top=(0,w.HM)(-this._previousScrollPosition.top),o.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const o=this._document.documentElement,l=o.style,s=this._document.body.style,r=l.scrollBehavior||"",t=s.scrollBehavior||"";this._isEnabled=!1,l.left=this._previousHTMLStyles.left,l.top=this._previousHTMLStyles.top,o.classList.remove("cdk-global-scrollblock"),Me&&(l.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Me&&(l.scrollBehavior=r,s.scrollBehavior=t)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const d=this._document.body,l=this._viewportRuler.getViewportSize();return d.scrollHeight>l.height||d.scrollWidth>l.width}}class T{constructor(o,d,l,s){this._scrollDispatcher=o,this._ngZone=d,this._viewportRuler=l,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(o){this._overlayRef=o}enable(){if(this._scrollSubscription)return;const o=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=o.subscribe(()=>{const d=this._viewportRuler.getViewportScrollPosition().top;Math.abs(d-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=o.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class j{enable(){}disable(){}attach(){}}function Y(i,o){return o.some(d=>i.bottomd.bottom||i.rightd.right)}function q(i,o){return o.some(d=>i.topd.bottom||i.leftd.right)}class te{constructor(o,d,l,s){this._scrollDispatcher=o,this._viewportRuler=d,this._ngZone=l,this._config=s,this._scrollSubscription=null}attach(o){this._overlayRef=o}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 d=this._overlayRef.overlayElement.getBoundingClientRect(),{width:l,height:s}=this._viewportRuler.getViewportSize();Y(d,[{width:l,height:s,bottom:s,right:l,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 ue=(()=>{class i{constructor(d,l,s,r){this._scrollDispatcher=d,this._viewportRuler=l,this._ngZone=s,this.noop=()=>new j,this.close=t=>new T(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new oe(this._viewportRuler,this._document),this.reposition=t=>new te(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.mF),_.LFG(e.rL),_.LFG(_.R0b),_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class de{constructor(o){if(this.scrollStrategy=new j,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,o){const d=Object.keys(o);for(const l of d)void 0!==o[l]&&(this[l]=o[l])}}}class ze{constructor(o,d){this.connectionPair=o,this.scrollableViewProperties=d}}class ye{constructor(o,d,l,s,r,t,n,a,c){this._portalOutlet=o,this._host=d,this._pane=l,this._config=s,this._ngZone=r,this._keyboardDispatcher=t,this._document=n,this._location=a,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new C.xQ,this._attachments=new C.xQ,this._detachments=new C.xQ,this._locationChanges=I.w.EMPTY,this._backdropClickHandler=h=>this._backdropClick.next(h),this._keydownEvents=new C.xQ,this._outsidePointerEvents=new C.xQ,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(o){let d=this._portalOutlet.attach(o);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,ne.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),d}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const o=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),o}dispose(){var o;const d=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),null===(o=this._host)||void 0===o||o.remove(),this._previousHostParent=this._pane=this._host=null,d&&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(o){o!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=o,this.hasAttached()&&(o.attach(this),this.updatePosition()))}updateSize(o){this._config=Object.assign(Object.assign({},this._config),o),this._updateElementSize()}setDirection(o){this._config=Object.assign(Object.assign({},this._config),{direction:o}),this._updateElementDirection()}addPanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!0)}removePanelClass(o){this._pane&&this._toggleClasses(this._pane,o,!1)}getDirection(){const o=this._config.direction;return o?"string"==typeof o?o:o.value:"ltr"}updateScrollStrategy(o){o!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=o,this.hasAttached()&&(o.attach(this),o.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const o=this._pane.style;o.width=(0,w.HM)(this._config.width),o.height=(0,w.HM)(this._config.height),o.minWidth=(0,w.HM)(this._config.minWidth),o.minHeight=(0,w.HM)(this._config.minHeight),o.maxWidth=(0,w.HM)(this._config.maxWidth),o.maxHeight=(0,w.HM)(this._config.maxHeight)}_togglePointerEvents(o){this._pane.style.pointerEvents=o?"":"none"}_attachBackdrop(){const o="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(o)})}):this._backdropElement.classList.add(o)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const o=this._backdropElement;if(!o)return;let d;const l=()=>{o&&(o.removeEventListener("click",this._backdropClickHandler),o.removeEventListener("transitionend",l),this._disposeBackdrop(o)),this._config.backdropClass&&this._toggleClasses(o,this._config.backdropClass,!1),clearTimeout(d)};o.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{o.addEventListener("transitionend",l)}),o.style.pointerEvents="none",d=this._ngZone.runOutsideAngular(()=>setTimeout(l,500))}_toggleClasses(o,d,l){const s=(0,w.Eq)(d||[]).filter(r=>!!r);s.length&&(l?o.classList.add(...s):o.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const o=this._ngZone.onStable.pipe((0,ge.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()),o.unsubscribe())})})}_disposeScrollStrategy(){const o=this._scrollStrategy;o&&(o.disable(),o.detach&&o.detach())}_disposeBackdrop(o){o&&(o.remove(),this._backdropElement===o&&(this._backdropElement=null))}}let Be=(()=>{class i{constructor(d,l){this._platform=l,this._document=d}ngOnDestroy(){var d;null===(d=this._containerElement)||void 0===d||d.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const d="cdk-overlay-container";if(this._platform.isBrowser||(0,g.Oy)()){const s=this._document.querySelectorAll(`.${d}[platform="server"], .${d}[platform="test"]`);for(let r=0;r{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 o=this._originRect,d=this._overlayRect,l=this._viewportRect,s=this._containerRect,r=[];let t;for(let n of this._preferredPositions){let a=this._getOriginPoint(o,s,n),c=this._getOverlayPoint(a,d,n),h=this._getOverlayFit(c,d,l,n);if(h.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,a);this._canFitWithFlexibleDimensions(h,c,l)?r.push({position:n,origin:a,overlayRect:d,boundingBoxRect:this._calculateBoundingBoxRect(a,n)}):(!t||t.overlayFit.visibleAreaa&&(a=h,n=c)}return this._isPushed=!1,void this._applyPosition(n.position,n.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&&be(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(W),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const o=this._lastPosition;if(o){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const d=this._getOriginPoint(this._originRect,this._containerRect,o);this._applyPosition(o,d)}else this.apply()}withScrollableContainers(o){return this._scrollables=o,this}withPositions(o){return this._preferredPositions=o,-1===o.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(o){return this._viewportMargin=o,this}withFlexibleDimensions(o=!0){return this._hasFlexibleDimensions=o,this}withGrowAfterOpen(o=!0){return this._growAfterOpen=o,this}withPush(o=!0){return this._canPush=o,this}withLockedPosition(o=!0){return this._positionLocked=o,this}setOrigin(o){return this._origin=o,this}withDefaultOffsetX(o){return this._offsetX=o,this}withDefaultOffsetY(o){return this._offsetY=o,this}withTransformOriginOn(o){return this._transformOriginSelector=o,this}_getOriginPoint(o,d,l){let s,r;if("center"==l.originX)s=o.left+o.width/2;else{const t=this._isRtl()?o.right:o.left,n=this._isRtl()?o.left:o.right;s="start"==l.originX?t:n}return d.left<0&&(s-=d.left),r="center"==l.originY?o.top+o.height/2:"top"==l.originY?o.top:o.bottom,d.top<0&&(r-=d.top),{x:s,y:r}}_getOverlayPoint(o,d,l){let s,r;return s="center"==l.overlayX?-d.width/2:"start"===l.overlayX?this._isRtl()?-d.width:0:this._isRtl()?0:-d.width,r="center"==l.overlayY?-d.height/2:"top"==l.overlayY?0:-d.height,{x:o.x+s,y:o.y+r}}_getOverlayFit(o,d,l,s){const r=pe(d);let{x:t,y:n}=o,a=this._getOffset(s,"x"),c=this._getOffset(s,"y");a&&(t+=a),c&&(n+=c);let We=0-n,At=n+r.height-l.height,Ht=this._subtractOverflows(r.width,0-t,t+r.width-l.width),lt=this._subtractOverflows(r.height,We,At),Ut=Ht*lt;return{visibleArea:Ut,isCompletelyWithinViewport:r.width*r.height===Ut,fitsInViewportVertically:lt===r.height,fitsInViewportHorizontally:Ht==r.width}}_canFitWithFlexibleDimensions(o,d,l){if(this._hasFlexibleDimensions){const s=l.bottom-d.y,r=l.right-d.x,t=Ie(this._overlayRef.getConfig().minHeight),n=Ie(this._overlayRef.getConfig().minWidth),c=o.fitsInViewportHorizontally||null!=n&&n<=r;return(o.fitsInViewportVertically||null!=t&&t<=s)&&c}return!1}_pushOverlayOnScreen(o,d,l){if(this._previousPushAmount&&this._positionLocked)return{x:o.x+this._previousPushAmount.x,y:o.y+this._previousPushAmount.y};const s=pe(d),r=this._viewportRect,t=Math.max(o.x+s.width-r.width,0),n=Math.max(o.y+s.height-r.height,0),a=Math.max(r.top-l.top-o.y,0),c=Math.max(r.left-l.left-o.x,0);let h=0,x=0;return h=s.width<=r.width?c||-t:o.xHt&&!this._isInitialRender&&!this._growAfterOpen&&(t=o.y-Ht/2)}if("end"===d.overlayX&&!s||"start"===d.overlayX&&s)We=l.width-o.x+this._viewportMargin,h=o.x-this._viewportMargin;else if("start"===d.overlayX&&!s||"end"===d.overlayX&&s)x=o.x,h=l.right-o.x;else{const At=Math.min(l.right-o.x+l.left,o.x),Ht=this._lastBoundingBoxSize.width;h=2*At,x=o.x-At,h>Ht&&!this._isInitialRender&&!this._growAfterOpen&&(x=o.x-Ht/2)}return{top:t,left:x,bottom:n,right:We,width:h,height:r}}_setBoundingBoxStyles(o,d){const l=this._calculateBoundingBoxRect(o,d);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const r=this._overlayRef.getConfig().maxHeight,t=this._overlayRef.getConfig().maxWidth;s.height=(0,w.HM)(l.height),s.top=(0,w.HM)(l.top),s.bottom=(0,w.HM)(l.bottom),s.width=(0,w.HM)(l.width),s.left=(0,w.HM)(l.left),s.right=(0,w.HM)(l.right),s.alignItems="center"===d.overlayX?"center":"end"===d.overlayX?"flex-end":"flex-start",s.justifyContent="center"===d.overlayY?"center":"bottom"===d.overlayY?"flex-end":"flex-start",r&&(s.maxHeight=(0,w.HM)(r)),t&&(s.maxWidth=(0,w.HM)(t))}this._lastBoundingBoxSize=l,be(this._boundingBox.style,s)}_resetBoundingBoxStyles(){be(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){be(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(o,d){const l={},s=this._hasExactPosition(),r=this._hasFlexibleDimensions,t=this._overlayRef.getConfig();if(s){const h=this._viewportRuler.getViewportScrollPosition();be(l,this._getExactOverlayY(d,o,h)),be(l,this._getExactOverlayX(d,o,h))}else l.position="static";let n="",a=this._getOffset(d,"x"),c=this._getOffset(d,"y");a&&(n+=`translateX(${a}px) `),c&&(n+=`translateY(${c}px)`),l.transform=n.trim(),t.maxHeight&&(s?l.maxHeight=(0,w.HM)(t.maxHeight):r&&(l.maxHeight="")),t.maxWidth&&(s?l.maxWidth=(0,w.HM)(t.maxWidth):r&&(l.maxWidth="")),be(this._pane.style,l)}_getExactOverlayY(o,d,l){let s={top:"",bottom:""},r=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),"bottom"===o.overlayY?s.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":s.top=(0,w.HM)(r.y),s}_getExactOverlayX(o,d,l){let t,s={left:"",right:""},r=this._getOverlayPoint(d,this._overlayRect,o);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,l)),t=this._isRtl()?"end"===o.overlayX?"left":"right":"end"===o.overlayX?"right":"left","right"===t?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=(0,w.HM)(r.x),s}_getScrollVisibility(){const o=this._getOriginRect(),d=this._pane.getBoundingClientRect(),l=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:q(o,l),isOriginOutsideView:Y(o,l),isOverlayClipped:q(d,l),isOverlayOutsideView:Y(d,l)}}_subtractOverflows(o,...d){return d.reduce((l,s)=>l-Math.max(s,0),o)}_getNarrowedViewportRect(){const o=this._document.documentElement.clientWidth,d=this._document.documentElement.clientHeight,l=this._viewportRuler.getViewportScrollPosition();return{top:l.top+this._viewportMargin,left:l.left+this._viewportMargin,right:l.left+o-this._viewportMargin,bottom:l.top+d-this._viewportMargin,width:o-2*this._viewportMargin,height:d-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(o,d){return"x"===d?null==o.offsetX?this._offsetX:o.offsetX:null==o.offsetY?this._offsetY:o.offsetY}_validatePositions(){}_addPanelClasses(o){this._pane&&(0,w.Eq)(o).forEach(d=>{""!==d&&-1===this._appliedPanelClasses.indexOf(d)&&(this._appliedPanelClasses.push(d),this._pane.classList.add(d))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(o=>{this._pane.classList.remove(o)}),this._appliedPanelClasses=[])}_getOriginRect(){const o=this._origin;if(o instanceof _.SBq)return o.nativeElement.getBoundingClientRect();if(o instanceof Element)return o.getBoundingClientRect();const d=o.width||0,l=o.height||0;return{top:o.y,bottom:o.y+l,left:o.x,right:o.x+d,height:l,width:d}}}function be(i,o){for(let d in o)o.hasOwnProperty(d)&&(i[d]=o[d]);return i}function Ie(i){if("number"!=typeof i&&null!=i){const[o,d]=i.split(R);return d&&"px"!==d?null:parseFloat(o)}return i||null}function pe(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}const Se="cdk-global-overlay-wrapper";class Xe{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(o){const d=o.getConfig();this._overlayRef=o,this._width&&!d.width&&o.updateSize({width:this._width}),this._height&&!d.height&&o.updateSize({height:this._height}),o.hostElement.classList.add(Se),this._isDisposed=!1}top(o=""){return this._bottomOffset="",this._topOffset=o,this._alignItems="flex-start",this}left(o=""){return this._rightOffset="",this._leftOffset=o,this._justifyContent="flex-start",this}bottom(o=""){return this._topOffset="",this._bottomOffset=o,this._alignItems="flex-end",this}right(o=""){return this._leftOffset="",this._rightOffset=o,this._justifyContent="flex-end",this}width(o=""){return this._overlayRef?this._overlayRef.updateSize({width:o}):this._width=o,this}height(o=""){return this._overlayRef?this._overlayRef.updateSize({height:o}):this._height=o,this}centerHorizontally(o=""){return this.left(o),this._justifyContent="center",this}centerVertically(o=""){return this.top(o),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),{width:s,height:r,maxWidth:t,maxHeight:n}=l,a=!("100%"!==s&&"100vw"!==s||t&&"100%"!==t&&"100vw"!==t),c=!("100%"!==r&&"100vh"!==r||n&&"100%"!==n&&"100vh"!==n);o.position=this._cssPosition,o.marginLeft=a?"0":this._leftOffset,o.marginTop=c?"0":this._topOffset,o.marginBottom=this._bottomOffset,o.marginRight=this._rightOffset,a?d.justifyContent="flex-start":"center"===this._justifyContent?d.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?d.justifyContent="flex-end":"flex-end"===this._justifyContent&&(d.justifyContent="flex-start"):d.justifyContent=this._justifyContent,d.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const o=this._overlayRef.overlayElement.style,d=this._overlayRef.hostElement,l=d.style;d.classList.remove(Se),l.justifyContent=l.alignItems=o.marginTop=o.marginBottom=o.marginLeft=o.marginRight=o.position="",this._overlayRef=null,this._isDisposed=!0}}let Je=(()=>{class i{constructor(d,l,s,r){this._viewportRuler=d,this._document=l,this._platform=s,this._overlayContainer=r}global(){return new Xe}flexibleConnectedTo(d){return new me(d,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(e.rL),_.LFG(b.K0),_.LFG(g.t4),_.LFG(Be))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),nt=(()=>{class i{constructor(d){this._attachedOverlays=[],this._document=d}ngOnDestroy(){this.detach()}add(d){this.remove(d),this._attachedOverlays.push(d)}remove(d){const l=this._attachedOverlays.indexOf(d);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Ve=(()=>{class i extends nt{constructor(d){super(d),this._keydownListener=l=>{const s=this._attachedOverlays;for(let r=s.length-1;r>-1;r--)if(s[r]._keydownEvents.observers.length>0){s[r]._keydownEvents.next(l);break}}}add(d){super.add(d),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),X=(()=>{class i extends nt{constructor(d,l){super(d),this._platform=l,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=(0,g.sA)(s)},this._clickListener=s=>{const r=(0,g.sA)(s),t="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let a=n.length-1;a>-1;a--){const c=n[a];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(r)||c.overlayElement.contains(t))break;c._outsidePointerEvents.next(s)}}}}add(d){if(super.add(d),!this._isAttached){const l=this._document.body;l.addEventListener("pointerdown",this._pointerDownListener,!0),l.addEventListener("click",this._clickListener,!0),l.addEventListener("auxclick",this._clickListener,!0),l.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=l.style.cursor,l.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const d=this._document.body;d.removeEventListener("pointerdown",this._pointerDownListener,!0),d.removeEventListener("click",this._clickListener,!0),d.removeEventListener("auxclick",this._clickListener,!0),d.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(d.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(b.K0),_.LFG(g.t4))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),z=0,Q=(()=>{class i{constructor(d,l,s,r,t,n,a,c,h,x,We){this.scrollStrategies=d,this._overlayContainer=l,this._componentFactoryResolver=s,this._positionBuilder=r,this._keyboardDispatcher=t,this._injector=n,this._ngZone=a,this._document=c,this._directionality=h,this._location=x,this._outsideClickDispatcher=We}create(d){const l=this._createHostElement(),s=this._createPaneElement(l),r=this._createPortalOutlet(s),t=new de(d);return t.direction=t.direction||this._directionality.value,new ye(r,l,s,t,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(d){const l=this._document.createElement("div");return l.id="cdk-overlay-"+z++,l.classList.add("cdk-overlay-pane"),d.appendChild(l),l}_createHostElement(){const d=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(d),d}_createPortalOutlet(d){return this._appRef||(this._appRef=this._injector.get(_.z2F)),new E.u0(d,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return i.\u0275fac=function(d){return new(d||i)(_.LFG(ue),_.LFG(Be),_.LFG(_._Vd),_.LFG(Je),_.LFG(Ve),_.LFG(_.zs3),_.LFG(_.R0b),_.LFG(b.K0),_.LFG(A.Is),_.LFG(b.Ye),_.LFG(X))},i.\u0275prov=_.Yz7({token:i,factory:i.\u0275fac}),i})();const D=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],H=new _.OlP("cdk-connected-overlay-scroll-strategy");let V=(()=>{class i{constructor(d){this.elementRef=d}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i})(),xe=(()=>{class i{constructor(d,l,s,r,t){this._overlay=d,this._dir=t,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=I.w.EMPTY,this._attachSubscription=I.w.EMPTY,this._detachSubscription=I.w.EMPTY,this._positionSubscription=I.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new _.vpe,this.positionChange=new _.vpe,this.attach=new _.vpe,this.detach=new _.vpe,this.overlayKeydown=new _.vpe,this.overlayOutsideClick=new _.vpe,this._templatePortal=new E.UE(l,s),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(d){this._offsetX=d,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(d){this._offsetY=d,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(d){this._hasBackdrop=(0,w.Ig)(d)}get lockPosition(){return this._lockPosition}set lockPosition(d){this._lockPosition=(0,w.Ig)(d)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(d){this._flexibleDimensions=(0,w.Ig)(d)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(d){this._growAfterOpen=(0,w.Ig)(d)}get push(){return this._push}set push(d){this._push=(0,w.Ig)(d)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(d){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),d.origin&&this.open&&this._position.apply()),d.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=D);const d=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=d.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=d.detachments().subscribe(()=>this.detach.emit()),d.keydownEvents().subscribe(l=>{this.overlayKeydown.next(l),l.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(l)&&(l.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(l=>{this.overlayOutsideClick.next(l)})}_buildConfig(){const d=this._position=this.positionStrategy||this._createPositionStrategy(),l=new de({direction:this._dir,positionStrategy:d,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}_updatePositionStrategy(d){const l=this.positions.map(s=>({originX:s.originX,originY:s.originY,overlayX:s.overlayX,overlayY:s.overlayY,offsetX:s.offsetX||this.offsetX,offsetY:s.offsetY||this.offsetY,panelClass:s.panelClass||void 0}));return d.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(l).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const d=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(d),d}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof V?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(d=>{this.backdropClick.emit(d)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function L(i,o=!1){return d=>d.lift(new O(i,o))}(()=>this.positionChange.observers.length>0)).subscribe(d=>{this.positionChange.emit(d),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return i.\u0275fac=function(d){return new(d||i)(_.Y36(Q),_.Y36(_.Rgc),_.Y36(_.s_b),_.Y36(H),_.Y36(A.Is,8))},i.\u0275dir=_.lG2({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[_.TTD]}),i})();const Te={provide:H,deps:[Q],useFactory:function Qe(i){return()=>i.scrollStrategies.reposition()}};let Ae=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({providers:[Q,Te],imports:[[A.vT,E.eL,e.Cl],e.Cl]}),i})()},70925:($e,_e,p)=>{"use strict";p.d(_e,{t4:()=>w,ud:()=>g,sA:()=>Re,ht:()=>oe,kV:()=>Me,Oy:()=>T,_i:()=>ne,qK:()=>C,i$:()=>m,Mq:()=>G});var e=p(5e3),b=p(69808);let _;try{_="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(j){_=!1}let A,w=(()=>{class j{constructor(q){this._platformId=q,this.isBrowser=this._platformId?(0,b.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&&!_)&&"undefined"!=typeof CSS&&!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}}return j.\u0275fac=function(q){return new(q||j)(e.LFG(e.Lbi))},j.\u0275prov=e.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),g=(()=>{class j{}return j.\u0275fac=function(q){return new(q||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({}),j})();const E=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function C(){if(A)return A;if("object"!=typeof document||!document)return A=new Set(E),A;let j=document.createElement("input");return A=new Set(E.filter(Y=>(j.setAttribute("type",Y),j.type===Y))),A}let I,L,O,ge;function m(j){return function P(){if(null==I&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?j:!!j.capture}function G(){if(null==O){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return O=!1,O;if("scrollBehavior"in document.documentElement.style)O=!0;else{const j=Element.prototype.scrollTo;O=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return O}function ne(){if("object"!=typeof document||!document)return 0;if(null==L){const j=document.createElement("div"),Y=j.style;j.dir="rtl",Y.width="1px",Y.overflow="auto",Y.visibility="hidden",Y.pointerEvents="none",Y.position="absolute";const q=document.createElement("div"),te=q.style;te.width="2px",te.height="1px",j.appendChild(q),document.body.appendChild(j),L=0,0===j.scrollLeft&&(j.scrollLeft=1,L=0===j.scrollLeft?1:2),j.remove()}return L}function Me(j){if(function J(){if(null==ge){const j="undefined"!=typeof document?document.head:null;ge=!(!j||!j.createShadowRoot&&!j.attachShadow)}return ge}()){const Y=j.getRootNode?j.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Y instanceof ShadowRoot)return Y}return null}function oe(){let j="undefined"!=typeof document&&document?document.activeElement:null;for(;j&&j.shadowRoot;){const Y=j.shadowRoot.activeElement;if(Y===j)break;j=Y}return j}function Re(j){return j.composedPath?j.composedPath()[0]:j.target}function T(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},47429:($e,_e,p)=>{"use strict";p.d(_e,{en:()=>O,ig:()=>J,Pl:()=>oe,C5:()=>P,u0:()=>ne,eL:()=>T,UE:()=>m});var e=p(5e3),b=p(69808);class I{attach(q){return this._attachedHost=q,q.attach(this)}detach(){let q=this._attachedHost;null!=q&&(this._attachedHost=null,q.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(q){this._attachedHost=q}}class P extends I{constructor(q,te,ue,de){super(),this.component=q,this.viewContainerRef=te,this.injector=ue,this.componentFactoryResolver=de}}class m extends I{constructor(q,te,ue){super(),this.templateRef=q,this.viewContainerRef=te,this.context=ue}get origin(){return this.templateRef.elementRef}attach(q,te=this.context){return this.context=te,super.attach(q)}detach(){return this.context=void 0,super.detach()}}class L extends I{constructor(q){super(),this.element=q instanceof e.SBq?q.nativeElement:q}}class O{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(q){return q instanceof P?(this._attachedPortal=q,this.attachComponentPortal(q)):q instanceof m?(this._attachedPortal=q,this.attachTemplatePortal(q)):this.attachDomPortal&&q instanceof L?(this._attachedPortal=q,this.attachDomPortal(q)):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(q){this._disposeFn=q}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ne extends O{constructor(q,te,ue,de,Le){super(),this.outletElement=q,this._componentFactoryResolver=te,this._appRef=ue,this._defaultInjector=de,this.attachDomPortal=Ue=>{const ze=Ue.element,le=this._document.createComment("dom-portal");ze.parentNode.insertBefore(le,ze),this.outletElement.appendChild(ze),this._attachedPortal=Ue,super.setDisposeFn(()=>{le.parentNode&&le.parentNode.replaceChild(ze,le)})},this._document=Le}attachComponentPortal(q){const ue=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component);let de;return q.viewContainerRef?(de=q.viewContainerRef.createComponent(ue,q.viewContainerRef.length,q.injector||q.viewContainerRef.injector),this.setDisposeFn(()=>de.destroy())):(de=ue.create(q.injector||this._defaultInjector),this._appRef.attachView(de.hostView),this.setDisposeFn(()=>{this._appRef.detachView(de.hostView),de.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(de)),this._attachedPortal=q,de}attachTemplatePortal(q){let te=q.viewContainerRef,ue=te.createEmbeddedView(q.templateRef,q.context);return ue.rootNodes.forEach(de=>this.outletElement.appendChild(de)),ue.detectChanges(),this.setDisposeFn(()=>{let de=te.indexOf(ue);-1!==de&&te.remove(de)}),this._attachedPortal=q,ue}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(q){return q.hostView.rootNodes[0]}}let J=(()=>{class Y extends m{constructor(te,ue){super(te,ue)}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e.Rgc),e.Y36(e.s_b))},Y.\u0275dir=e.lG2({type:Y,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]}),Y})(),oe=(()=>{class Y extends O{constructor(te,ue,de){super(),this._componentFactoryResolver=te,this._viewContainerRef=ue,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Le=>{const Ue=Le.element,ze=this._document.createComment("dom-portal");Le.setAttachedHost(this),Ue.parentNode.insertBefore(ze,Ue),this._getRootNode().appendChild(Ue),this._attachedPortal=Le,super.setDisposeFn(()=>{ze.parentNode&&ze.parentNode.replaceChild(Ue,ze)})},this._document=de}get portal(){return this._attachedPortal}set portal(te){this.hasAttached()&&!te&&!this._isInitialized||(this.hasAttached()&&super.detach(),te&&super.attach(te),this._attachedPortal=te||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(te){te.setAttachedHost(this);const ue=null!=te.viewContainerRef?te.viewContainerRef:this._viewContainerRef,Le=(te.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(te.component),Ue=ue.createComponent(Le,ue.length,te.injector||ue.injector);return ue!==this._viewContainerRef&&this._getRootNode().appendChild(Ue.hostView.rootNodes[0]),super.setDisposeFn(()=>Ue.destroy()),this._attachedPortal=te,this._attachedRef=Ue,this.attached.emit(Ue),Ue}attachTemplatePortal(te){te.setAttachedHost(this);const ue=this._viewContainerRef.createEmbeddedView(te.templateRef,te.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=te,this._attachedRef=ue,this.attached.emit(ue),ue}_getRootNode(){const te=this._viewContainerRef.element.nativeElement;return te.nodeType===te.ELEMENT_NODE?te:te.parentNode}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(b.K0))},Y.\u0275dir=e.lG2({type:Y,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({}),Y})()},53435:($e,_e,p)=>{"use strict";p.d(_e,{xd:()=>le,PQ:()=>Be,ZD:()=>Xe,x0:()=>Se,N7:()=>Ie,mF:()=>ye,Cl:()=>Je,rL:()=>R});var e=p(63191),b=p(5e3),_=p(8929),w=p(21086),g=p(56498),A=p(23753),E=p(90352),C=p(8139),I=p(42654),P=p(54715),m=p(43489);class O{call(Ve,X){return X.subscribe(new G(Ve))}}class G extends m.L{constructor(Ve){super(Ve),this.hasPrev=!1}_next(Ve){let X;this.hasPrev?X=[this.prev,Ve]:this.hasPrev=!0,this.prev=Ve,X&&this.destination.next(X)}}var ne=p(75778),ge=p(57138),J=p(92198),Me=p(7625),oe=p(1059),Re=p(87545),T=p(5154),j=p(69808),Y=p(70925),q=p(50226),te=p(20449);const ue=["contentWrapper"],de=["*"],Le=new b.OlP("VIRTUAL_SCROLL_STRATEGY");class Ue{constructor(Ve,X,z){this._scrolledIndexChange=new _.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe((0,ne.x)()),this._viewport=null,this._itemSize=Ve,this._minBufferPx=X,this._maxBufferPx=z}attach(Ve){this._viewport=Ve,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(Ve,X,z){this._itemSize=Ve,this._minBufferPx=X,this._maxBufferPx=z,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(Ve,X){this._viewport&&this._viewport.scrollToOffset(Ve*this._itemSize,X)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const Ve=this._viewport.getRenderedRange(),X={start:Ve.start,end:Ve.end},z=this._viewport.getViewportSize(),Q=this._viewport.getDataLength();let D=this._viewport.measureScrollOffset(),H=this._itemSize>0?D/this._itemSize:0;if(X.end>Q){const xe=Math.ceil(z/this._itemSize),Qe=Math.max(0,Math.min(H,Q-xe));H!=Qe&&(H=Qe,D=Qe*this._itemSize,X.start=Math.floor(H)),X.end=Math.max(0,Math.min(Q,X.start+xe))}const V=D-X.start*this._itemSize;if(V0&&(X.end=Math.min(Q,X.end+Qe),X.start=Math.max(0,Math.floor(H-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(X),this._viewport.setRenderedContentOffset(this._itemSize*X.start),this._scrolledIndexChange.next(Math.floor(H))}}function ze(nt){return nt._scrollStrategy}let le=(()=>{class nt{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new Ue(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(X){this._itemSize=(0,e.su)(X)}get minBufferPx(){return this._minBufferPx}set minBufferPx(X){this._minBufferPx=(0,e.su)(X)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(X){this._maxBufferPx=(0,e.su)(X)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=b.lG2({type:nt,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[b._Bn([{provide:Le,useFactory:ze,deps:[(0,b.Gpc)(()=>nt)]}]),b.TTD]}),nt})(),ye=(()=>{class nt{constructor(X,z,Q){this._ngZone=X,this._platform=z,this._scrolled=new _.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Q}register(X){this.scrollContainers.has(X)||this.scrollContainers.set(X,X.elementScrolled().subscribe(()=>this._scrolled.next(X)))}deregister(X){const z=this.scrollContainers.get(X);z&&(z.unsubscribe(),this.scrollContainers.delete(X))}scrolled(X=20){return this._platform.isBrowser?new g.y(z=>{this._globalSubscription||this._addGlobalListener();const Q=X>0?this._scrolled.pipe((0,ge.e)(X)).subscribe(z):this._scrolled.subscribe(z);return this._scrolledCount++,()=>{Q.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,w.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((X,z)=>this.deregister(z)),this._scrolled.complete()}ancestorScrolled(X,z){const Q=this.getAncestorScrollContainers(X);return this.scrolled(z).pipe((0,J.h)(D=>!D||Q.indexOf(D)>-1))}getAncestorScrollContainers(X){const z=[];return this.scrollContainers.forEach((Q,D)=>{this._scrollableContainsElement(D,X)&&z.push(D)}),z}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(X,z){let Q=(0,e.fI)(z),D=X.getElementRef().nativeElement;do{if(Q==D)return!0}while(Q=Q.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const X=this._getWindow();return(0,A.R)(X.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return nt.\u0275fac=function(X){return new(X||nt)(b.LFG(b.R0b),b.LFG(Y.t4),b.LFG(j.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})(),Be=(()=>{class nt{constructor(X,z,Q,D){this.elementRef=X,this.scrollDispatcher=z,this.ngZone=Q,this.dir=D,this._destroyed=new _.xQ,this._elementScrolled=new g.y(H=>this.ngZone.runOutsideAngular(()=>(0,A.R)(this.elementRef.nativeElement,"scroll").pipe((0,Me.R)(this._destroyed)).subscribe(H)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(X){const z=this.elementRef.nativeElement,Q=this.dir&&"rtl"==this.dir.value;null==X.left&&(X.left=Q?X.end:X.start),null==X.right&&(X.right=Q?X.start:X.end),null!=X.bottom&&(X.top=z.scrollHeight-z.clientHeight-X.bottom),Q&&0!=(0,Y._i)()?(null!=X.left&&(X.right=z.scrollWidth-z.clientWidth-X.left),2==(0,Y._i)()?X.left=X.right:1==(0,Y._i)()&&(X.left=X.right?-X.right:X.right)):null!=X.right&&(X.left=z.scrollWidth-z.clientWidth-X.right),this._applyScrollToOptions(X)}_applyScrollToOptions(X){const z=this.elementRef.nativeElement;(0,Y.Mq)()?z.scrollTo(X):(null!=X.top&&(z.scrollTop=X.top),null!=X.left&&(z.scrollLeft=X.left))}measureScrollOffset(X){const z="left",Q="right",D=this.elementRef.nativeElement;if("top"==X)return D.scrollTop;if("bottom"==X)return D.scrollHeight-D.clientHeight-D.scrollTop;const H=this.dir&&"rtl"==this.dir.value;return"start"==X?X=H?Q:z:"end"==X&&(X=H?z:Q),H&&2==(0,Y._i)()?X==z?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft:H&&1==(0,Y._i)()?X==z?D.scrollLeft+D.scrollWidth-D.clientWidth:-D.scrollLeft:X==z?D.scrollLeft:D.scrollWidth-D.clientWidth-D.scrollLeft}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.SBq),b.Y36(ye),b.Y36(b.R0b),b.Y36(q.Is,8))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),nt})(),R=(()=>{class nt{constructor(X,z,Q){this._platform=X,this._change=new _.xQ,this._changeListener=D=>{this._change.next(D)},this._document=Q,z.runOutsideAngular(()=>{if(X.isBrowser){const D=this._getWindow();D.addEventListener("resize",this._changeListener),D.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const X=this._getWindow();X.removeEventListener("resize",this._changeListener),X.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const X={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),X}getViewportRect(){const X=this.getViewportScrollPosition(),{width:z,height:Q}=this.getViewportSize();return{top:X.top,left:X.left,bottom:X.top+Q,right:X.left+z,height:Q,width:z}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const X=this._document,z=this._getWindow(),Q=X.documentElement,D=Q.getBoundingClientRect();return{top:-D.top||X.body.scrollTop||z.scrollY||Q.scrollTop||0,left:-D.left||X.body.scrollLeft||z.scrollX||Q.scrollLeft||0}}change(X=20){return X>0?this._change.pipe((0,ge.e)(X)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const X=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:X.innerWidth,height:X.innerHeight}:{width:0,height:0}}}return nt.\u0275fac=function(X){return new(X||nt)(b.LFG(Y.t4),b.LFG(b.R0b),b.LFG(j.K0,8))},nt.\u0275prov=b.Yz7({token:nt,factory:nt.\u0275fac,providedIn:"root"}),nt})();const be="undefined"!=typeof requestAnimationFrame?E.r:C.e;let Ie=(()=>{class nt extends Be{constructor(X,z,Q,D,H,V,xe){super(X,V,Q,H),this.elementRef=X,this._changeDetectorRef=z,this._scrollStrategy=D,this._detachedSubject=new _.xQ,this._renderedRangeSubject=new _.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new g.y(Qe=>this._scrollStrategy.scrolledIndexChange.subscribe(Te=>Promise.resolve().then(()=>this.ngZone.run(()=>Qe.next(Te))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=I.w.EMPTY,this._viewportChanges=xe.change().subscribe(()=>{this.checkViewportSize()})}get orientation(){return this._orientation}set orientation(X){this._orientation!==X&&(this._orientation=X,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(X){this._appendOnly=(0,e.Ig)(X)}ngOnInit(){super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.elementScrolled().pipe((0,oe.O)(null),(0,ge.e)(0,be)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()}))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(X){this.ngZone.runOutsideAngular(()=>{this._forOf=X,this._forOf.dataStream.pipe((0,Me.R)(this._detachedSubject)).subscribe(z=>{const Q=z.length;Q!==this._dataLength&&(this._dataLength=Q,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}setTotalContentSize(X){this._totalContentSize!==X&&(this._totalContentSize=X,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(X){(function me(nt,Ve){return nt.start==Ve.start&&nt.end==Ve.end})(this._renderedRange,X)||(this.appendOnly&&(X={start:0,end:Math.max(this._renderedRange.end,X.end)}),this._renderedRangeSubject.next(this._renderedRange=X),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(X,z="to-start"){const D="horizontal"==this.orientation,H=D?"X":"Y";let xe=`translate${H}(${Number((D&&this.dir&&"rtl"==this.dir.value?-1:1)*X)}px)`;this._renderedContentOffset=X=this.appendOnly&&"to-start"===z?0:X,"to-end"===z&&(xe+=` translate${H}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=xe&&(this._renderedContentTransform=xe,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(X,z="auto"){const Q={behavior:z};"horizontal"===this.orientation?Q.start=X:Q.top=X,this.scrollTo(Q)}scrollToIndex(X,z="auto"){this._scrollStrategy.scrollToIndex(X,z)}measureScrollOffset(X){return super.measureScrollOffset(X||("horizontal"===this.orientation?"start":"top"))}measureRenderedContentSize(){const X=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?X.offsetWidth:X.offsetHeight}measureRangeSize(X){return this._forOf?this._forOf.measureRangeSize(X,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){const X=this.elementRef.nativeElement;this._viewportSize="horizontal"===this.orientation?X.clientWidth:X.clientHeight}_markChangeDetectionNeeded(X){X&&this._runAfterChangeDetection.push(X),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const X=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const z of X)z()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(b.R0b),b.Y36(Le,8),b.Y36(q.Is,8),b.Y36(ye),b.Y36(R))},nt.\u0275cmp=b.Xpm({type:nt,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(X,z){if(1&X&&b.Gf(ue,7),2&X){let Q;b.iGM(Q=b.CRH())&&(z._contentWrapper=Q.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(X,z){2&X&&b.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===z.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==z.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[b._Bn([{provide:Be,useExisting:nt}]),b.qOj],ngContentSelectors:de,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(X,z){1&X&&(b.F$t(),b.TgZ(0,"div",0,1),b.Hsn(2),b.qZA(),b._UZ(3,"div",2)),2&X&&(b.xp6(3),b.Udp("width",z._totalContentWidth)("height",z._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"],encapsulation:2,changeDetection:0}),nt})();function pe(nt,Ve,X){if(!X.getBoundingClientRect)return 0;const Q=X.getBoundingClientRect();return"horizontal"===nt?"start"===Ve?Q.left:Q.right:"start"===Ve?Q.top:Q.bottom}let Se=(()=>{class nt{constructor(X,z,Q,D,H,V){this._viewContainerRef=X,this._template=z,this._differs=Q,this._viewRepeater=D,this._viewport=H,this.viewChange=new _.xQ,this._dataSourceChanges=new _.xQ,this.dataStream=this._dataSourceChanges.pipe((0,oe.O)(null),function L(){return nt=>nt.lift(new O)}(),(0,Re.w)(([xe,Qe])=>this._changeDataSource(xe,Qe)),(0,T.d)(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new _.xQ,this.dataStream.subscribe(xe=>{this._data=xe,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe((0,Me.R)(this._destroyed)).subscribe(xe=>{this._renderedRange=xe,V.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(X){this._cdkVirtualForOf=X,(0,te.Z9)(X)?this._dataSourceChanges.next(X):this._dataSourceChanges.next(new te.P3((0,P.b)(X)?X:Array.from(X||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(X){this._needsUpdate=!0,this._cdkVirtualForTrackBy=X?(z,Q)=>X(z+(this._renderedRange?this._renderedRange.start:0),Q):void 0}set cdkVirtualForTemplate(X){X&&(this._needsUpdate=!0,this._template=X)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(X){this._viewRepeater.viewCacheSize=(0,e.su)(X)}measureRangeSize(X,z){if(X.start>=X.end)return 0;const Q=X.start-this._renderedRange.start,D=X.end-X.start;let H,V;for(let xe=0;xe-1;xe--){const Qe=this._viewContainerRef.get(xe+Q);if(Qe&&Qe.rootNodes.length){V=Qe.rootNodes[Qe.rootNodes.length-1];break}}return H&&V?pe(z,"end",V)-pe(z,"start",H):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const X=this._differ.diff(this._renderedItems);X?this._applyChanges(X):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((X,z)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(X,z):z)),this._needsUpdate=!0)}_changeDataSource(X,z){return X&&X.disconnect(this),this._needsUpdate=!0,z?z.connect(this):(0,w.of)()}_updateContext(){const X=this._data.length;let z=this._viewContainerRef.length;for(;z--;){const Q=this._viewContainerRef.get(z);Q.context.index=this._renderedRange.start+z,Q.context.count=X,this._updateComputedContextProperties(Q.context),Q.detectChanges()}}_applyChanges(X){this._viewRepeater.applyChanges(X,this._viewContainerRef,(D,H,V)=>this._getEmbeddedViewArgs(D,V),D=>D.item),X.forEachIdentityChange(D=>{this._viewContainerRef.get(D.currentIndex).context.$implicit=D.item});const z=this._data.length;let Q=this._viewContainerRef.length;for(;Q--;){const D=this._viewContainerRef.get(Q);D.context.index=this._renderedRange.start+Q,D.context.count=z,this._updateComputedContextProperties(D.context)}}_updateComputedContextProperties(X){X.first=0===X.index,X.last=X.index===X.count-1,X.even=X.index%2==0,X.odd=!X.even}_getEmbeddedViewArgs(X,z){return{templateRef:this._template,context:{$implicit:X.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:z}}}return nt.\u0275fac=function(X){return new(X||nt)(b.Y36(b.s_b),b.Y36(b.Rgc),b.Y36(b.ZZ4),b.Y36(te.k),b.Y36(Ie,4),b.Y36(b.R0b))},nt.\u0275dir=b.lG2({type:nt,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[b._Bn([{provide:te.k,useClass:te.eX}])]}),nt})(),Xe=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=b.oAB({type:nt}),nt.\u0275inj=b.cJS({imports:[[q.vT,Y.ud,Xe],q.vT,Xe]}),nt})()},74533:($e,_e,p)=>{"use strict";p.d(_e,{Lq:()=>m,IC:()=>O,Ky:()=>G});var e=p(70925),b=p(5e3),_=p(63191),w=p(68896),g=p(8929),A=p(23753),E=p(57138),C=p(7625),I=p(69808);const P=(0,e.i$)({passive:!0});let m=(()=>{class ne{constructor(J,Me){this._platform=J,this._ngZone=Me,this._monitoredElements=new Map}monitor(J){if(!this._platform.isBrowser)return w.E;const Me=(0,_.fI)(J),oe=this._monitoredElements.get(Me);if(oe)return oe.subject;const Re=new g.xQ,T="cdk-text-field-autofilled",j=Y=>{"cdk-text-field-autofill-start"!==Y.animationName||Me.classList.contains(T)?"cdk-text-field-autofill-end"===Y.animationName&&Me.classList.contains(T)&&(Me.classList.remove(T),this._ngZone.run(()=>Re.next({target:Y.target,isAutofilled:!1}))):(Me.classList.add(T),this._ngZone.run(()=>Re.next({target:Y.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{Me.addEventListener("animationstart",j,P),Me.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(Me,{subject:Re,unlisten:()=>{Me.removeEventListener("animationstart",j,P)}}),Re}stopMonitoring(J){const Me=(0,_.fI)(J),oe=this._monitoredElements.get(Me);oe&&(oe.unlisten(),oe.subject.complete(),Me.classList.remove("cdk-text-field-autofill-monitored"),Me.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Me))}ngOnDestroy(){this._monitoredElements.forEach((J,Me)=>this.stopMonitoring(Me))}}return ne.\u0275fac=function(J){return new(J||ne)(b.LFG(e.t4),b.LFG(b.R0b))},ne.\u0275prov=b.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),O=(()=>{class ne{constructor(J,Me,oe,Re){this._elementRef=J,this._platform=Me,this._ngZone=oe,this._destroyed=new g.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=T=>{this._hasFocus="focus"===T.type},this._document=Re,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(J){this._minRows=(0,_.su)(J),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(J){this._maxRows=(0,_.su)(J),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(J){J=(0,_.Ig)(J),this._enabled!==J&&((this._enabled=J)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(J){this._cachedPlaceholderHeight=void 0,J?this._textareaElement.setAttribute("placeholder",J):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const J=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;J&&(this._textareaElement.style.minHeight=J)}_setMaxHeight(){const J=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;J&&(this._textareaElement.style.maxHeight=J)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const J=this._getWindow();(0,A.R)(J,"resize").pipe((0,E.e)(16),(0,C.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let J=this._textareaElement.cloneNode(!1);J.rows=1,J.style.position="absolute",J.style.visibility="hidden",J.style.border="none",J.style.padding="0",J.style.height="",J.style.minHeight="",J.style.maxHeight="",J.style.overflow="hidden",this._textareaElement.parentNode.appendChild(J),this._cachedLineHeight=J.clientHeight,J.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const J=this._textareaElement,Me=J.style.marginBottom||"",oe=this._platform.FIREFOX,Re=oe&&this._hasFocus,T=oe?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";Re&&(J.style.marginBottom=`${J.clientHeight}px`),J.classList.add(T);const j=J.scrollHeight-4;return J.classList.remove(T),Re&&(J.style.marginBottom=Me),j}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const J=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=J}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(J=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const Me=this._elementRef.nativeElement,oe=Me.value;if(!J&&this._minRows===this._previousMinRows&&oe===this._previousValue)return;const Re=this._measureScrollHeight(),T=Math.max(Re,this._cachedPlaceholderHeight||0);Me.style.height=`${T}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(Me)):setTimeout(()=>this._scrollToCaretPosition(Me))}),this._previousValue=oe,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(J){const{selectionStart:Me,selectionEnd:oe}=J;!this._destroyed.isStopped&&this._hasFocus&&J.setSelectionRange(Me,oe)}}return ne.\u0275fac=function(J){return new(J||ne)(b.Y36(b.SBq),b.Y36(e.t4),b.Y36(b.R0b),b.Y36(I.K0,8))},ne.\u0275dir=b.lG2({type:ne,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(J,Me){1&J&&b.NdJ("input",function(){return Me._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),ne})(),G=(()=>{class ne{}return ne.\u0275fac=function(J){return new(J||ne)},ne.\u0275mod=b.oAB({type:ne}),ne.\u0275inj=b.cJS({imports:[[e.ud]]}),ne})()},28258:($e,_e,p)=>{"use strict";p.d(_e,{HI:()=>ne,Xx:()=>Le,_0:()=>q,nZ:()=>ye,Hs:()=>te,rO:()=>Me,cu:()=>ge,XJ:()=>ze,Ud:()=>le,C2:()=>O,VY:()=>G});var e=p(20449),b=p(54715),_=p(8929),w=p(591),g=p(21086),A=p(72986),E=p(92198),C=p(7625),I=p(5e3),P=p(63191),m=p(50226);class L{constructor(){this.expansionModel=new e.Ov(!0)}toggle(W){this.expansionModel.toggle(this._trackByValue(W))}expand(W){this.expansionModel.select(this._trackByValue(W))}collapse(W){this.expansionModel.deselect(this._trackByValue(W))}isExpanded(W){return this.expansionModel.isSelected(this._trackByValue(W))}toggleDescendants(W){this.expansionModel.isSelected(this._trackByValue(W))?this.collapseDescendants(W):this.expandDescendants(W)}collapseAll(){this.expansionModel.clear()}expandDescendants(W){let R=[W];R.push(...this.getDescendants(W)),this.expansionModel.select(...R.map(me=>this._trackByValue(me)))}collapseDescendants(W){let R=[W];R.push(...this.getDescendants(W)),this.expansionModel.deselect(...R.map(me=>this._trackByValue(me)))}_trackByValue(W){return this.trackBy?this.trackBy(W):W}}class O extends L{constructor(W,R,me){super(),this.getLevel=W,this.isExpandable=R,this.options=me,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(W){const me=[];for(let be=this.dataNodes.indexOf(W)+1;bethis._trackByValue(W)))}}class G extends L{constructor(W,R){super(),this.getChildren=W,this.options=R,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const W=this.dataNodes.reduce((R,me)=>[...R,...this.getDescendants(me),me],[]);this.expansionModel.select(...W.map(R=>this._trackByValue(R)))}getDescendants(W){const R=[];return this._getDescendants(R,W),R.splice(1)}_getDescendants(W,R){W.push(R);const me=this.getChildren(R);Array.isArray(me)?me.forEach(be=>this._getDescendants(W,be)):(0,b.b)(me)&&me.pipe((0,A.q)(1),(0,E.h)(Boolean)).subscribe(be=>{for(const Ie of be)this._getDescendants(W,Ie)})}}const ne=new I.OlP("CDK_TREE_NODE_OUTLET_NODE");let ge=(()=>{class Be{constructor(R,me){this.viewContainer=R,this._node=me}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.s_b),I.Y36(ne,8))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeOutlet",""]]}),Be})();class J{constructor(W){this.$implicit=W}}let Me=(()=>{class Be{constructor(R){this.template=R}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.Rgc))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),Be})(),q=(()=>{class Be{constructor(R,me){this._differs=R,this._changeDetectorRef=me,this._onDestroy=new _.xQ,this._levels=new Map,this.viewChange=new w.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(R){this._dataSource!==R&&this._switchDataSource(R)}ngOnInit(){this._dataDiffer=this._differs.find([]).create(this.trackBy)}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null)}ngAfterContentChecked(){const R=this._nodeDefs.filter(me=>!me.when);this._defaultNodeDef=R[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(R){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),R||this._nodeOutlet.viewContainer.clear(),this._dataSource=R,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let R;(0,e.Z9)(this._dataSource)?R=this._dataSource.connect(this):(0,b.b)(this._dataSource)?R=this._dataSource:Array.isArray(this._dataSource)&&(R=(0,g.of)(this._dataSource)),R&&(this._dataSubscription=R.pipe((0,C.R)(this._onDestroy)).subscribe(me=>this.renderNodeChanges(me)))}renderNodeChanges(R,me=this._dataDiffer,be=this._nodeOutlet.viewContainer,Ie){const pe=me.diff(R);!pe||(pe.forEachOperation((Se,Xe,Je)=>{if(null==Se.previousIndex)this.insertNode(R[Je],Je,be,Ie);else if(null==Je)be.remove(Xe),this._levels.delete(Se.item);else{const nt=be.get(Xe);be.move(nt,Je)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(R,me){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Ie=>Ie.when&&Ie.when(me,R))||this._defaultNodeDef}insertNode(R,me,be,Ie){const pe=this._getNodeDef(R,me),Se=new J(R);Se.level=this.treeControl.getLevel?this.treeControl.getLevel(R):void 0!==Ie&&this._levels.has(Ie)?this._levels.get(Ie)+1:0,this._levels.set(R,Se.level),(be||this._nodeOutlet.viewContainer).createEmbeddedView(pe.template,Se,me),te.mostRecentTreeNode&&(te.mostRecentTreeNode.data=R)}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.ZZ4),I.Y36(I.sBO))},Be.\u0275cmp=I.Xpm({type:Be,selectors:[["cdk-tree"]],contentQueries:function(R,me,be){if(1&R&&I.Suo(be,Me,5),2&R){let Ie;I.iGM(Ie=I.CRH())&&(me._nodeDefs=Ie)}},viewQuery:function(R,me){if(1&R&&I.Gf(ge,7),2&R){let be;I.iGM(be=I.CRH())&&(me._nodeOutlet=be.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(R,me){1&R&&I.GkF(0,0)},directives:[ge],encapsulation:2}),Be})(),te=(()=>{class Be{constructor(R,me){this._elementRef=R,this._tree=me,this._destroyed=new _.xQ,this._dataChanges=new _.xQ,Be.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(R){this._elementRef.nativeElement.setAttribute("role",R)}get data(){return this._data}set data(R){R!==this._data&&(this._data=R,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function ue(Be){let W=Be.parentElement;for(;W&&!de(W);)W=W.parentElement;return W?W.classList.contains("cdk-nested-tree-node")?(0,P.su)(W.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){Be.mostRecentTreeNode===this&&(Be.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return Be.mostRecentTreeNode=null,Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.SBq),I.Y36(q))},Be.\u0275dir=I.lG2({type:Be,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(R,me){2&R&&I.uIk("aria-expanded",me.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),Be})();function de(Be){const W=Be.classList;return!(!(null==W?void 0:W.contains("cdk-nested-tree-node"))&&!(null==W?void 0:W.contains("cdk-tree")))}let Le=(()=>{class Be extends te{constructor(R,me,be){super(R,me),this._differs=be}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const R=this._tree.treeControl.getChildren(this.data);Array.isArray(R)?this.updateChildrenNodes(R):(0,b.b)(R)&&R.pipe((0,C.R)(this._destroyed)).subscribe(me=>this.updateChildrenNodes(me)),this.nodeOutlet.changes.pipe((0,C.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(R){const me=this._getNodeOutlet();R&&(this._children=R),me&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,me.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const R=this._getNodeOutlet();R&&(R.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const R=this.nodeOutlet;return R&&R.find(me=>!me._node||me._node===this)}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(I.SBq),I.Y36(q),I.Y36(I.ZZ4))},Be.\u0275dir=I.lG2({type:Be,selectors:[["cdk-nested-tree-node"]],contentQueries:function(R,me,be){if(1&R&&I.Suo(be,ge,5),2&R){let Ie;I.iGM(Ie=I.CRH())&&(me.nodeOutlet=Ie)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[I._Bn([{provide:te,useExisting:Be},{provide:ne,useExisting:Be}]),I.qOj]}),Be})();const Ue=/([A-Za-z%]+)$/;let ze=(()=>{class Be{constructor(R,me,be,Ie){this._treeNode=R,this._tree=me,this._element=be,this._dir=Ie,this._destroyed=new _.xQ,this.indentUnits="px",this._indent=40,this._setPadding(),Ie&&Ie.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),R._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(R){this._setLevelInput(R)}get indent(){return this._indent}set indent(R){this._setIndentInput(R)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const R=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,me=null==this._level?R:this._level;return"number"==typeof me?`${me*this._indent}${this.indentUnits}`:null}_setPadding(R=!1){const me=this._paddingIndent();if(me!==this._currentPadding||R){const be=this._element.nativeElement,Ie=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",pe="paddingLeft"===Ie?"paddingRight":"paddingLeft";be.style[Ie]=me||"",be.style[pe]="",this._currentPadding=me}}_setLevelInput(R){this._level=(0,P.su)(R,null),this._setPadding()}_setIndentInput(R){let me=R,be="px";if("string"==typeof R){const Ie=R.split(Ue);me=Ie[0],be=Ie[1]||be}this.indentUnits=be,this._indent=(0,P.su)(me),this._setPadding()}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(te),I.Y36(q),I.Y36(I.SBq),I.Y36(m.Is,8))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),Be})(),le=(()=>{class Be{constructor(R,me){this._tree=R,this._treeNode=me,this._recursive=!1}get recursive(){return this._recursive}set recursive(R){this._recursive=(0,P.Ig)(R)}_toggle(R){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),R.stopPropagation()}}return Be.\u0275fac=function(R){return new(R||Be)(I.Y36(q),I.Y36(te))},Be.\u0275dir=I.lG2({type:Be,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(R,me){1&R&&I.NdJ("click",function(Ie){return me._toggle(Ie)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),Be})(),ye=(()=>{class Be{}return Be.\u0275fac=function(R){return new(R||Be)},Be.\u0275mod=I.oAB({type:Be}),Be.\u0275inj=I.cJS({}),Be})()},69808:($e,_e,p)=>{"use strict";p.d(_e,{mr:()=>oe,Ov:()=>qe,ez:()=>Un,K0:()=>E,uU:()=>Li,Do:()=>T,V_:()=>P,Ye:()=>j,S$:()=>J,i8:()=>Tt,mk:()=>wi,sg:()=>Fi,O5:()=>Ni,PC:()=>kn,RF:()=>en,n9:()=>an,ED:()=>dn,tP:()=>Nn,b0:()=>Re,lw:()=>C,rS:()=>ci,gd:()=>vi,EM:()=>ft,JF:()=>Ct,p6:()=>c,NF:()=>Cn,PM:()=>$n,w_:()=>A,bD:()=>hr,q:()=>_,Mx:()=>Di,HT:()=>g});var e=p(5e3);let b=null;function _(){return b}function g(ee){b||(b=ee)}class A{}const E=new e.OlP("DocumentToken");let C=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function I(){return(0,e.LFG)(m)}()},providedIn:"platform"}),ee})();const P=new e.OlP("Location Initialized");let m=(()=>{class ee extends C{constructor(he){super(),this._doc=he,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _().getBaseHref(this._doc)}onPopState(he){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("popstate",he,!1),()=>tt.removeEventListener("popstate",he)}onHashChange(he){const tt=_().getGlobalEventTarget(this._doc,"window");return tt.addEventListener("hashchange",he,!1),()=>tt.removeEventListener("hashchange",he)}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(he){this.location.pathname=he}pushState(he,tt,yt){L()?this._history.pushState(he,tt,yt):this.location.hash=yt}replaceState(he,tt,yt){L()?this._history.replaceState(he,tt,yt):this.location.hash=yt}forward(){this._history.forward()}back(){this._history.back()}historyGo(he=0){this._history.go(he)}getState(){return this._history.state}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(E))},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function O(){return new m((0,e.LFG)(E))}()},providedIn:"platform"}),ee})();function L(){return!!window.history.pushState}function G(ee,Oe){if(0==ee.length)return Oe;if(0==Oe.length)return ee;let he=0;return ee.endsWith("/")&&he++,Oe.startsWith("/")&&he++,2==he?ee+Oe.substring(1):1==he?ee+Oe:ee+"/"+Oe}function ne(ee){const Oe=ee.match(/#|\?|$/),he=Oe&&Oe.index||ee.length;return ee.slice(0,he-("/"===ee[he-1]?1:0))+ee.slice(he)}function ge(ee){return ee&&"?"!==ee[0]?"?"+ee:ee}let J=(()=>{class ee{historyGo(he){throw new Error("Not implemented")}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function Me(ee){const Oe=(0,e.LFG)(E).location;return new Re((0,e.LFG)(C),Oe&&Oe.origin||"")}()},providedIn:"root"}),ee})();const oe=new e.OlP("appBaseHref");let Re=(()=>{class ee extends J{constructor(he,tt){if(super(),this._platformLocation=he,this._removeListenerFns=[],null==tt&&(tt=this._platformLocation.getBaseHrefFromDOM()),null==tt)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=tt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}prepareExternalUrl(he){return G(this._baseHref,he)}path(he=!1){const tt=this._platformLocation.pathname+ge(this._platformLocation.search),yt=this._platformLocation.hash;return yt&&he?`${tt}${yt}`:tt}pushState(he,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.pushState(he,tt,Wt)}replaceState(he,tt,yt,Gt){const Wt=this.prepareExternalUrl(yt+ge(Gt));this._platformLocation.replaceState(he,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,he)}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(C),e.LFG(oe,8))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),T=(()=>{class ee extends J{constructor(he,tt){super(),this._platformLocation=he,this._baseHref="",this._removeListenerFns=[],null!=tt&&(this._baseHref=tt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(he){this._removeListenerFns.push(this._platformLocation.onPopState(he),this._platformLocation.onHashChange(he))}getBaseHref(){return this._baseHref}path(he=!1){let tt=this._platformLocation.hash;return null==tt&&(tt="#"),tt.length>0?tt.substring(1):tt}prepareExternalUrl(he){const tt=G(this._baseHref,he);return tt.length>0?"#"+tt:tt}pushState(he,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.pushState(he,tt,Wt)}replaceState(he,tt,yt,Gt){let Wt=this.prepareExternalUrl(yt+ge(Gt));0==Wt.length&&(Wt=this._platformLocation.pathname),this._platformLocation.replaceState(he,tt,Wt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformLocation).historyGo)||void 0===yt||yt.call(tt,he)}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(C),e.LFG(oe,8))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})(),j=(()=>{class ee{constructor(he,tt){this._subject=new e.vpe,this._urlChangeListeners=[],this._platformStrategy=he;const yt=this._platformStrategy.getBaseHref();this._platformLocation=tt,this._baseHref=ne(te(yt)),this._platformStrategy.onPopState(Gt=>{this._subject.emit({url:this.path(!0),pop:!0,state:Gt.state,type:Gt.type})})}path(he=!1){return this.normalize(this._platformStrategy.path(he))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(he,tt=""){return this.path()==this.normalize(he+ge(tt))}normalize(he){return ee.stripTrailingSlash(function q(ee,Oe){return ee&&Oe.startsWith(ee)?Oe.substring(ee.length):Oe}(this._baseHref,te(he)))}prepareExternalUrl(he){return he&&"/"!==he[0]&&(he="/"+he),this._platformStrategy.prepareExternalUrl(he)}go(he,tt="",yt=null){this._platformStrategy.pushState(yt,"",he,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ge(tt)),yt)}replaceState(he,tt="",yt=null){this._platformStrategy.replaceState(yt,"",he,tt),this._notifyUrlChangeListeners(this.prepareExternalUrl(he+ge(tt)),yt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(he=0){var tt,yt;null===(yt=(tt=this._platformStrategy).historyGo)||void 0===yt||yt.call(tt,he)}onUrlChange(he){this._urlChangeListeners.push(he),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(tt=>{this._notifyUrlChangeListeners(tt.url,tt.state)}))}_notifyUrlChangeListeners(he="",tt){this._urlChangeListeners.forEach(yt=>yt(he,tt))}subscribe(he,tt,yt){return this._subject.subscribe({next:he,error:tt,complete:yt})}}return ee.normalizeQueryParams=ge,ee.joinWithSlash=G,ee.stripTrailingSlash=ne,ee.\u0275fac=function(he){return new(he||ee)(e.LFG(J),e.LFG(C))},ee.\u0275prov=e.Yz7({token:ee,factory:function(){return function Y(){return new j((0,e.LFG)(J),(0,e.LFG)(C))}()},providedIn:"root"}),ee})();function te(ee){return ee.replace(/\/index.html$/,"")}var Le=(()=>((Le=Le||{})[Le.Zero=0]="Zero",Le[Le.One=1]="One",Le[Le.Two=2]="Two",Le[Le.Few=3]="Few",Le[Le.Many=4]="Many",Le[Le.Other=5]="Other",Le))(),Ue=(()=>((Ue=Ue||{})[Ue.Format=0]="Format",Ue[Ue.Standalone=1]="Standalone",Ue))(),ze=(()=>((ze=ze||{})[ze.Narrow=0]="Narrow",ze[ze.Abbreviated=1]="Abbreviated",ze[ze.Wide=2]="Wide",ze[ze.Short=3]="Short",ze))(),le=(()=>((le=le||{})[le.Short=0]="Short",le[le.Medium=1]="Medium",le[le.Long=2]="Long",le[le.Full=3]="Full",le))(),je=(()=>((je=je||{})[je.Decimal=0]="Decimal",je[je.Group=1]="Group",je[je.List=2]="List",je[je.PercentSign=3]="PercentSign",je[je.PlusSign=4]="PlusSign",je[je.MinusSign=5]="MinusSign",je[je.Exponential=6]="Exponential",je[je.SuperscriptingExponent=7]="SuperscriptingExponent",je[je.PerMille=8]="PerMille",je[je.Infinity=9]="Infinity",je[je.NaN=10]="NaN",je[je.TimeSeparator=11]="TimeSeparator",je[je.CurrencyDecimal=12]="CurrencyDecimal",je[je.CurrencyGroup=13]="CurrencyGroup",je))();function Se(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.DateFormat],Oe)}function Xe(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.TimeFormat],Oe)}function Je(ee,Oe){return Ae((0,e.cg1)(ee)[e.wAp.DateTimeFormat],Oe)}function nt(ee,Oe){const he=(0,e.cg1)(ee),tt=he[e.wAp.NumberSymbols][Oe];if(void 0===tt){if(Oe===je.CurrencyDecimal)return he[e.wAp.NumberSymbols][je.Decimal];if(Oe===je.CurrencyGroup)return he[e.wAp.NumberSymbols][je.Group]}return tt}const H=e.kL8;function V(ee){if(!ee[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${ee[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ae(ee,Oe){for(let he=Oe;he>-1;he--)if(void 0!==ee[he])return ee[he];throw new Error("Locale data API: locale data undefined")}function ae(ee){const[Oe,he]=ee.split(":");return{hours:+Oe,minutes:+he}}const l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,s={},r=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var t=(()=>((t=t||{})[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t))(),n=(()=>((n=n||{})[n.FullYear=0]="FullYear",n[n.Month=1]="Month",n[n.Date=2]="Date",n[n.Hours=3]="Hours",n[n.Minutes=4]="Minutes",n[n.Seconds=5]="Seconds",n[n.FractionalSeconds=6]="FractionalSeconds",n[n.Day=7]="Day",n))(),a=(()=>((a=a||{})[a.DayPeriods=0]="DayPeriods",a[a.Days=1]="Days",a[a.Months=2]="Months",a[a.Eras=3]="Eras",a))();function c(ee,Oe,he,tt){let yt=function Rt(ee){if(Bt(ee))return ee;if("number"==typeof ee&&!isNaN(ee))return new Date(ee);if("string"==typeof ee){if(ee=ee.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(ee)){const[yt,Gt=1,Wt=1]=ee.split("-").map(ii=>+ii);return h(yt,Gt-1,Wt)}const he=parseFloat(ee);if(!isNaN(ee-he))return new Date(he);let tt;if(tt=ee.match(l))return function Et(ee){const Oe=new Date(0);let he=0,tt=0;const yt=ee[8]?Oe.setUTCFullYear:Oe.setFullYear,Gt=ee[8]?Oe.setUTCHours:Oe.setHours;ee[9]&&(he=Number(ee[9]+ee[10]),tt=Number(ee[9]+ee[11])),yt.call(Oe,Number(ee[1]),Number(ee[2])-1,Number(ee[3]));const Wt=Number(ee[4]||0)-he,ii=Number(ee[5]||0)-tt,di=Number(ee[6]||0),ui=Math.floor(1e3*parseFloat("0."+(ee[7]||0)));return Gt.call(Oe,Wt,ii,di,ui),Oe}(tt)}const Oe=new Date(ee);if(!Bt(Oe))throw new Error(`Unable to convert "${ee}" into a date`);return Oe}(ee);Oe=x(he,Oe)||Oe;let ii,Wt=[];for(;Oe;){if(ii=r.exec(Oe),!ii){Wt.push(Oe);break}{Wt=Wt.concat(ii.slice(1));const _i=Wt.pop();if(!_i)break;Oe=_i}}let di=yt.getTimezoneOffset();tt&&(di=xt(tt,di),yt=function It(ee,Oe,he){const tt=he?-1:1,yt=ee.getTimezoneOffset();return function Yt(ee,Oe){return(ee=new Date(ee.getTime())).setMinutes(ee.getMinutes()+Oe),ee}(ee,tt*(xt(Oe,yt)-yt))}(yt,tt,!0));let ui="";return Wt.forEach(_i=>{const Ti=function bt(ee){if(ct[ee])return ct[ee];let Oe;switch(ee){case"G":case"GG":case"GGG":Oe=mt(a.Eras,ze.Abbreviated);break;case"GGGG":Oe=mt(a.Eras,ze.Wide);break;case"GGGGG":Oe=mt(a.Eras,ze.Narrow);break;case"y":Oe=lt(n.FullYear,1,0,!1,!0);break;case"yy":Oe=lt(n.FullYear,2,0,!0,!0);break;case"yyy":Oe=lt(n.FullYear,3,0,!1,!0);break;case"yyyy":Oe=lt(n.FullYear,4,0,!1,!0);break;case"Y":Oe=He(1);break;case"YY":Oe=He(2,!0);break;case"YYY":Oe=He(3);break;case"YYYY":Oe=He(4);break;case"M":case"L":Oe=lt(n.Month,1,1);break;case"MM":case"LL":Oe=lt(n.Month,2,1);break;case"MMM":Oe=mt(a.Months,ze.Abbreviated);break;case"MMMM":Oe=mt(a.Months,ze.Wide);break;case"MMMMM":Oe=mt(a.Months,ze.Narrow);break;case"LLL":Oe=mt(a.Months,ze.Abbreviated,Ue.Standalone);break;case"LLLL":Oe=mt(a.Months,ze.Wide,Ue.Standalone);break;case"LLLLL":Oe=mt(a.Months,ze.Narrow,Ue.Standalone);break;case"w":Oe=ce(1);break;case"ww":Oe=ce(2);break;case"W":Oe=ce(1,!0);break;case"d":Oe=lt(n.Date,1);break;case"dd":Oe=lt(n.Date,2);break;case"c":case"cc":Oe=lt(n.Day,1);break;case"ccc":Oe=mt(a.Days,ze.Abbreviated,Ue.Standalone);break;case"cccc":Oe=mt(a.Days,ze.Wide,Ue.Standalone);break;case"ccccc":Oe=mt(a.Days,ze.Narrow,Ue.Standalone);break;case"cccccc":Oe=mt(a.Days,ze.Short,Ue.Standalone);break;case"E":case"EE":case"EEE":Oe=mt(a.Days,ze.Abbreviated);break;case"EEEE":Oe=mt(a.Days,ze.Wide);break;case"EEEEE":Oe=mt(a.Days,ze.Narrow);break;case"EEEEEE":Oe=mt(a.Days,ze.Short);break;case"a":case"aa":case"aaa":Oe=mt(a.DayPeriods,ze.Abbreviated);break;case"aaaa":Oe=mt(a.DayPeriods,ze.Wide);break;case"aaaaa":Oe=mt(a.DayPeriods,ze.Narrow);break;case"b":case"bb":case"bbb":Oe=mt(a.DayPeriods,ze.Abbreviated,Ue.Standalone,!0);break;case"bbbb":Oe=mt(a.DayPeriods,ze.Wide,Ue.Standalone,!0);break;case"bbbbb":Oe=mt(a.DayPeriods,ze.Narrow,Ue.Standalone,!0);break;case"B":case"BB":case"BBB":Oe=mt(a.DayPeriods,ze.Abbreviated,Ue.Format,!0);break;case"BBBB":Oe=mt(a.DayPeriods,ze.Wide,Ue.Format,!0);break;case"BBBBB":Oe=mt(a.DayPeriods,ze.Narrow,Ue.Format,!0);break;case"h":Oe=lt(n.Hours,1,-12);break;case"hh":Oe=lt(n.Hours,2,-12);break;case"H":Oe=lt(n.Hours,1);break;case"HH":Oe=lt(n.Hours,2);break;case"m":Oe=lt(n.Minutes,1);break;case"mm":Oe=lt(n.Minutes,2);break;case"s":Oe=lt(n.Seconds,1);break;case"ss":Oe=lt(n.Seconds,2);break;case"S":Oe=lt(n.FractionalSeconds,1);break;case"SS":Oe=lt(n.FractionalSeconds,2);break;case"SSS":Oe=lt(n.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Oe=Ee(t.Short);break;case"ZZZZZ":Oe=Ee(t.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Oe=Ee(t.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Oe=Ee(t.Long);break;default:return null}return ct[ee]=Oe,Oe}(_i);ui+=Ti?Ti(yt,he,di):"''"===_i?"'":_i.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ui}function h(ee,Oe,he){const tt=new Date(0);return tt.setFullYear(ee,Oe,he),tt.setHours(0,0,0),tt}function x(ee,Oe){const he=function Be(ee){return(0,e.cg1)(ee)[e.wAp.LocaleId]}(ee);if(s[he]=s[he]||{},s[he][Oe])return s[he][Oe];let tt="";switch(Oe){case"shortDate":tt=Se(ee,le.Short);break;case"mediumDate":tt=Se(ee,le.Medium);break;case"longDate":tt=Se(ee,le.Long);break;case"fullDate":tt=Se(ee,le.Full);break;case"shortTime":tt=Xe(ee,le.Short);break;case"mediumTime":tt=Xe(ee,le.Medium);break;case"longTime":tt=Xe(ee,le.Long);break;case"fullTime":tt=Xe(ee,le.Full);break;case"short":const yt=x(ee,"shortTime"),Gt=x(ee,"shortDate");tt=We(Je(ee,le.Short),[yt,Gt]);break;case"medium":const Wt=x(ee,"mediumTime"),ii=x(ee,"mediumDate");tt=We(Je(ee,le.Medium),[Wt,ii]);break;case"long":const di=x(ee,"longTime"),ui=x(ee,"longDate");tt=We(Je(ee,le.Long),[di,ui]);break;case"full":const _i=x(ee,"fullTime"),Ti=x(ee,"fullDate");tt=We(Je(ee,le.Full),[_i,Ti])}return tt&&(s[he][Oe]=tt),tt}function We(ee,Oe){return Oe&&(ee=ee.replace(/\{([^}]+)}/g,function(he,tt){return null!=Oe&&tt in Oe?Oe[tt]:he})),ee}function At(ee,Oe,he="-",tt,yt){let Gt="";(ee<0||yt&&ee<=0)&&(yt?ee=1-ee:(ee=-ee,Gt=he));let Wt=String(ee);for(;Wt.length0||ii>-he)&&(ii+=he),ee===n.Hours)0===ii&&-12===he&&(ii=12);else if(ee===n.FractionalSeconds)return function Ht(ee,Oe){return At(ee,3).substr(0,Oe)}(ii,Oe);const di=nt(Wt,je.MinusSign);return At(ii,Oe,di,tt,yt)}}function mt(ee,Oe,he=Ue.Format,tt=!1){return function(yt,Gt){return function Lt(ee,Oe,he,tt,yt,Gt){switch(he){case a.Months:return function me(ee,Oe,he){const tt=(0,e.cg1)(ee),Gt=Ae([tt[e.wAp.MonthsFormat],tt[e.wAp.MonthsStandalone]],Oe);return Ae(Gt,he)}(Oe,yt,tt)[ee.getMonth()];case a.Days:return function R(ee,Oe,he){const tt=(0,e.cg1)(ee),Gt=Ae([tt[e.wAp.DaysFormat],tt[e.wAp.DaysStandalone]],Oe);return Ae(Gt,he)}(Oe,yt,tt)[ee.getDay()];case a.DayPeriods:const Wt=ee.getHours(),ii=ee.getMinutes();if(Gt){const ui=function xe(ee){const Oe=(0,e.cg1)(ee);return V(Oe),(Oe[e.wAp.ExtraData][2]||[]).map(tt=>"string"==typeof tt?ae(tt):[ae(tt[0]),ae(tt[1])])}(Oe),_i=function Qe(ee,Oe,he){const tt=(0,e.cg1)(ee);V(tt);const Gt=Ae([tt[e.wAp.ExtraData][0],tt[e.wAp.ExtraData][1]],Oe)||[];return Ae(Gt,he)||[]}(Oe,yt,tt),Ti=ui.findIndex(Hi=>{if(Array.isArray(Hi)){const[Ne,De]=Hi,we=Wt>=Ne.hours&&ii>=Ne.minutes,ut=Wt0?Math.floor(yt/60):Math.ceil(yt/60);switch(ee){case t.Short:return(yt>=0?"+":"")+At(Wt,2,Gt)+At(Math.abs(yt%60),2,Gt);case t.ShortGMT:return"GMT"+(yt>=0?"+":"")+At(Wt,1,Gt);case t.Long:return"GMT"+(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);case t.Extended:return 0===tt?"Z":(yt>=0?"+":"")+At(Wt,2,Gt)+":"+At(Math.abs(yt%60),2,Gt);default:throw new Error(`Unknown zone width "${ee}"`)}}}function ie(ee){return h(ee.getFullYear(),ee.getMonth(),ee.getDate()+(4-ee.getDay()))}function ce(ee,Oe=!1){return function(he,tt){let yt;if(Oe){const Gt=new Date(he.getFullYear(),he.getMonth(),1).getDay()-1,Wt=he.getDate();yt=1+Math.floor((Wt+Gt)/7)}else{const Gt=ie(he),Wt=function k(ee){const Oe=h(ee,0,1).getDay();return h(ee,0,1+(Oe<=4?4:11)-Oe)}(Gt.getFullYear()),ii=Gt.getTime()-Wt.getTime();yt=1+Math.round(ii/6048e5)}return At(yt,ee,nt(tt,je.MinusSign))}}function He(ee,Oe=!1){return function(he,tt){return At(ie(he).getFullYear(),ee,nt(tt,je.MinusSign),Oe)}}const ct={};function xt(ee,Oe){ee=ee.replace(/:/g,"");const he=Date.parse("Jan 01, 1970 00:00:00 "+ee)/6e4;return isNaN(he)?Oe:he}function Bt(ee){return ee instanceof Date&&!isNaN(ee.valueOf())}class gt{}let ri=(()=>{class ee extends gt{constructor(he){super(),this.locale=he}getPluralCategory(he,tt){switch(H(tt||this.locale)(he)){case Le.Zero:return"zero";case Le.One:return"one";case Le.Two:return"two";case Le.Few:return"few";case Le.Many:return"many";default:return"other"}}}return ee.\u0275fac=function(he){return new(he||ee)(e.LFG(e.soG))},ee.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac}),ee})();function Di(ee,Oe){Oe=encodeURIComponent(Oe);for(const he of ee.split(";")){const tt=he.indexOf("="),[yt,Gt]=-1==tt?[he,""]:[he.slice(0,tt),he.slice(tt+1)];if(yt.trim()===Oe)return decodeURIComponent(Gt)}return null}let wi=(()=>{class ee{constructor(he,tt,yt,Gt){this._iterableDiffers=he,this._keyValueDiffers=tt,this._ngEl=yt,this._renderer=Gt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(he){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof he?he.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(he){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof he?he.split(/\s+/):he,this._rawClass&&((0,e.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const he=this._iterableDiffer.diff(this._rawClass);he&&this._applyIterableChanges(he)}else if(this._keyValueDiffer){const he=this._keyValueDiffer.diff(this._rawClass);he&&this._applyKeyValueChanges(he)}}_applyKeyValueChanges(he){he.forEachAddedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),he.forEachChangedItem(tt=>this._toggleClass(tt.key,tt.currentValue)),he.forEachRemovedItem(tt=>{tt.previousValue&&this._toggleClass(tt.key,!1)})}_applyIterableChanges(he){he.forEachAddedItem(tt=>{if("string"!=typeof tt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,e.AaK)(tt.item)}`);this._toggleClass(tt.item,!0)}),he.forEachRemovedItem(tt=>this._toggleClass(tt.item,!1))}_applyClasses(he){he&&(Array.isArray(he)||he instanceof Set?he.forEach(tt=>this._toggleClass(tt,!0)):Object.keys(he).forEach(tt=>this._toggleClass(tt,!!he[tt])))}_removeClasses(he){he&&(Array.isArray(he)||he instanceof Set?he.forEach(tt=>this._toggleClass(tt,!1)):Object.keys(he).forEach(tt=>this._toggleClass(tt,!1)))}_toggleClass(he,tt){(he=he.trim())&&he.split(/\s+/g).forEach(yt=>{tt?this._renderer.addClass(this._ngEl.nativeElement,yt):this._renderer.removeClass(this._ngEl.nativeElement,yt)})}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),ee})();class qi{constructor(Oe,he,tt,yt){this.$implicit=Oe,this.ngForOf=he,this.index=tt,this.count=yt}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 Fi=(()=>{class ee{constructor(he,tt,yt){this._viewContainer=he,this._template=tt,this._differs=yt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(he){this._ngForOf=he,this._ngForOfDirty=!0}set ngForTrackBy(he){this._trackByFn=he}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(he){he&&(this._template=he)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const he=this._ngForOf;!this._differ&&he&&(this._differ=this._differs.find(he).create(this.ngForTrackBy))}if(this._differ){const he=this._differ.diff(this._ngForOf);he&&this._applyChanges(he)}}_applyChanges(he){const tt=this._viewContainer;he.forEachOperation((yt,Gt,Wt)=>{if(null==yt.previousIndex)tt.createEmbeddedView(this._template,new qi(yt.item,this._ngForOf,-1,-1),null===Wt?void 0:Wt);else if(null==Wt)tt.remove(null===Gt?void 0:Gt);else if(null!==Gt){const ii=tt.get(Gt);tt.move(ii,Wt),Ji(ii,yt)}});for(let yt=0,Gt=tt.length;yt{Ji(tt.get(yt.currentIndex),yt)})}static ngTemplateContextGuard(he,tt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),ee})();function Ji(ee,Oe){ee.context.$implicit=Oe.item}let Ni=(()=>{class ee{constructor(he,tt){this._viewContainer=he,this._context=new Ri,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=tt}set ngIf(he){this._context.$implicit=this._context.ngIf=he,this._updateView()}set ngIfThen(he){sn("ngIfThen",he),this._thenTemplateRef=he,this._thenViewRef=null,this._updateView()}set ngIfElse(he){sn("ngIfElse",he),this._elseTemplateRef=he,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(he,tt){return!0}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),ee})();class Ri{constructor(){this.$implicit=null,this.ngIf=null}}function sn(ee,Oe){if(Oe&&!Oe.createEmbeddedView)throw new Error(`${ee} must be a TemplateRef, but received '${(0,e.AaK)(Oe)}'.`)}class Xi{constructor(Oe,he){this._viewContainerRef=Oe,this._templateRef=he,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Oe){Oe&&!this._created?this.create():!Oe&&this._created&&this.destroy()}}let en=(()=>{class ee{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(he){this._ngSwitch=he,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(he){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(he)}_matchCase(he){const tt=he==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||tt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),tt}_updateDefaultCases(he){if(this._defaultViews&&he!==this._defaultUsed){this._defaultUsed=he;for(let tt=0;tt{class ee{constructor(he,tt,yt){this.ngSwitch=yt,yt._addCase(),this._view=new Xi(he,tt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),ee})(),dn=(()=>{class ee{constructor(he,tt,yt){yt._addDefault(new Xi(he,tt))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(en,9))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngSwitchDefault",""]]}),ee})(),kn=(()=>{class ee{constructor(he,tt,yt){this._ngEl=he,this._differs=tt,this._renderer=yt,this._ngStyle=null,this._differ=null}set ngStyle(he){this._ngStyle=he,!this._differ&&he&&(this._differ=this._differs.find(he).create())}ngDoCheck(){if(this._differ){const he=this._differ.diff(this._ngStyle);he&&this._applyChanges(he)}}_setStyle(he,tt){const[yt,Gt]=he.split(".");null!=(tt=null!=tt&&Gt?`${tt}${Gt}`:tt)?this._renderer.setStyle(this._ngEl.nativeElement,yt,tt):this._renderer.removeStyle(this._ngEl.nativeElement,yt)}_applyChanges(he){he.forEachRemovedItem(tt=>this._setStyle(tt.key,null)),he.forEachAddedItem(tt=>this._setStyle(tt.key,tt.currentValue)),he.forEachChangedItem(tt=>this._setStyle(tt.key,tt.currentValue))}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),ee})(),Nn=(()=>{class ee{constructor(he){this._viewContainerRef=he,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(he){if(he.ngTemplateOutlet){const tt=this._viewContainerRef;this._viewRef&&tt.remove(tt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?tt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&he.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.s_b))},ee.\u0275dir=e.lG2({type:ee,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[e.TTD]}),ee})();function Qt(ee,Oe){return new e.vHH(2100,"")}class rt{createSubscription(Oe,he){return Oe.subscribe({next:he,error:tt=>{throw tt}})}dispose(Oe){Oe.unsubscribe()}onDestroy(Oe){Oe.unsubscribe()}}class kt{createSubscription(Oe,he){return Oe.then(he,tt=>{throw tt})}dispose(Oe){}onDestroy(Oe){}}const Ze=new kt,Ot=new rt;let qe=(()=>{class ee{constructor(he){this._ref=he,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(he){return this._obj?he!==this._obj?(this._dispose(),this.transform(he)):this._latestValue:(he&&this._subscribe(he),this._latestValue)}_subscribe(he){this._obj=he,this._strategy=this._selectStrategy(he),this._subscription=this._strategy.createSubscription(he,tt=>this._updateLatestValue(he,tt))}_selectStrategy(he){if((0,e.QGY)(he))return Ze;if((0,e.F4k)(he))return Ot;throw Qt()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(he,tt){he===this._obj&&(this._latestValue=tt,this._ref.markForCheck())}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.sBO,16))},ee.\u0275pipe=e.Yjl({name:"async",type:ee,pure:!1}),ee})(),Tt=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.toLowerCase()}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"lowercase",type:ee,pure:!0}),ee})();const jt=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ci=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.replace(jt,tt=>tt[0].toUpperCase()+tt.substr(1).toLowerCase())}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"titlecase",type:ee,pure:!0}),ee})(),vi=(()=>{class ee{transform(he){if(null==he)return null;if("string"!=typeof he)throw Qt();return he.toUpperCase()}}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275pipe=e.Yjl({name:"uppercase",type:ee,pure:!0}),ee})();const Ui=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Li=(()=>{class ee{constructor(he,tt){this.locale=he,this.defaultTimezone=tt}transform(he,tt="mediumDate",yt,Gt){var Wt;if(null==he||""===he||he!=he)return null;try{return c(he,tt,Gt||this.locale,null!==(Wt=null!=yt?yt:this.defaultTimezone)&&void 0!==Wt?Wt:void 0)}catch(ii){throw Qt()}}}return ee.\u0275fac=function(he){return new(he||ee)(e.Y36(e.soG,16),e.Y36(Ui,24))},ee.\u0275pipe=e.Yjl({name:"date",type:ee,pure:!0}),ee})(),Un=(()=>{class ee{}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275mod=e.oAB({type:ee}),ee.\u0275inj=e.cJS({providers:[{provide:gt,useClass:ri}]}),ee})();const hr="browser";function Cn(ee){return ee===hr}function $n(ee){return"server"===ee}let ft=(()=>{class ee{}return ee.\u0275prov=(0,e.Yz7)({token:ee,providedIn:"root",factory:()=>new N((0,e.LFG)(E),window)}),ee})();class N{constructor(Oe,he){this.document=Oe,this.window=he,this.offset=()=>[0,0]}setOffset(Oe){this.offset=Array.isArray(Oe)?()=>Oe:Oe}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Oe){this.supportsScrolling()&&this.window.scrollTo(Oe[0],Oe[1])}scrollToAnchor(Oe){if(!this.supportsScrolling())return;const he=function Pe(ee,Oe){const he=ee.getElementById(Oe)||ee.getElementsByName(Oe)[0];if(he)return he;if("function"==typeof ee.createTreeWalker&&ee.body&&(ee.body.createShadowRoot||ee.body.attachShadow)){const tt=ee.createTreeWalker(ee.body,NodeFilter.SHOW_ELEMENT);let yt=tt.currentNode;for(;yt;){const Gt=yt.shadowRoot;if(Gt){const Wt=Gt.getElementById(Oe)||Gt.querySelector(`[name="${Oe}"]`);if(Wt)return Wt}yt=tt.nextNode()}}return null}(this.document,Oe);he&&(this.scrollToElement(he),he.focus())}setHistoryScrollRestoration(Oe){if(this.supportScrollRestoration()){const he=this.window.history;he&&he.scrollRestoration&&(he.scrollRestoration=Oe)}}scrollToElement(Oe){const he=Oe.getBoundingClientRect(),tt=he.left+this.window.pageXOffset,yt=he.top+this.window.pageYOffset,Gt=this.offset();this.window.scrollTo(tt-Gt[0],yt-Gt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Oe=Z(this.window.history)||Z(Object.getPrototypeOf(this.window.history));return!(!Oe||!Oe.writable&&!Oe.set)}catch(Oe){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Oe){return!1}}}function Z(ee){return Object.getOwnPropertyDescriptor(ee,"scrollRestoration")}class Ct{}},40520:($e,_e,p)=>{"use strict";p.d(_e,{TP:()=>Be,eN:()=>je,JF:()=>Ae,qT:()=>oe,WM:()=>P,LE:()=>J,Zn:()=>Ue});var e=p(69808),b=p(5e3),_=p(21086),w=p(56498),g=p(21406),A=p(92198),E=p(24850);class C{}class I{}class P{constructor(d){this.normalizedNames=new Map,this.lazyUpdate=null,d?this.lazyInit="string"==typeof d?()=>{this.headers=new Map,d.split("\n").forEach(l=>{const s=l.indexOf(":");if(s>0){const r=l.slice(0,s),t=r.toLowerCase(),n=l.slice(s+1).trim();this.maybeSetNormalizedName(r,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}})}:()=>{this.headers=new Map,Object.keys(d).forEach(l=>{let s=d[l];const r=l.toLowerCase();"string"==typeof s&&(s=[s]),s.length>0&&(this.headers.set(r,s),this.maybeSetNormalizedName(l,r))})}:this.headers=new Map}has(d){return this.init(),this.headers.has(d.toLowerCase())}get(d){this.init();const l=this.headers.get(d.toLowerCase());return l&&l.length>0?l[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(d){return this.init(),this.headers.get(d.toLowerCase())||null}append(d,l){return this.clone({name:d,value:l,op:"a"})}set(d,l){return this.clone({name:d,value:l,op:"s"})}delete(d,l){return this.clone({name:d,value:l,op:"d"})}maybeSetNormalizedName(d,l){this.normalizedNames.has(l)||this.normalizedNames.set(l,d)}init(){this.lazyInit&&(this.lazyInit instanceof P?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(d=>this.applyUpdate(d)),this.lazyUpdate=null))}copyFrom(d){d.init(),Array.from(d.headers.keys()).forEach(l=>{this.headers.set(l,d.headers.get(l)),this.normalizedNames.set(l,d.normalizedNames.get(l))})}clone(d){const l=new P;return l.lazyInit=this.lazyInit&&this.lazyInit instanceof P?this.lazyInit:this,l.lazyUpdate=(this.lazyUpdate||[]).concat([d]),l}applyUpdate(d){const l=d.name.toLowerCase();switch(d.op){case"a":case"s":let s=d.value;if("string"==typeof s&&(s=[s]),0===s.length)return;this.maybeSetNormalizedName(d.name,l);const r=("a"===d.op?this.headers.get(l):void 0)||[];r.push(...s),this.headers.set(l,r);break;case"d":const t=d.value;if(t){let n=this.headers.get(l);if(!n)return;n=n.filter(a=>-1===t.indexOf(a)),0===n.length?(this.headers.delete(l),this.normalizedNames.delete(l)):this.headers.set(l,n)}else this.headers.delete(l),this.normalizedNames.delete(l)}}forEach(d){this.init(),Array.from(this.normalizedNames.keys()).forEach(l=>d(this.normalizedNames.get(l),this.headers.get(l)))}}class m{encodeKey(d){return ne(d)}encodeValue(d){return ne(d)}decodeKey(d){return decodeURIComponent(d)}decodeValue(d){return decodeURIComponent(d)}}const O=/%(\d[a-f0-9])/gi,G={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(o){return encodeURIComponent(o).replace(O,(d,l)=>{var s;return null!==(s=G[l])&&void 0!==s?s:d})}function ge(o){return`${o}`}class J{constructor(d={}){if(this.updates=null,this.cloneFrom=null,this.encoder=d.encoder||new m,d.fromString){if(d.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function L(o,d){const l=new Map;return o.length>0&&o.replace(/^\?/,"").split("&").forEach(r=>{const t=r.indexOf("="),[n,a]=-1==t?[d.decodeKey(r),""]:[d.decodeKey(r.slice(0,t)),d.decodeValue(r.slice(t+1))],c=l.get(n)||[];c.push(a),l.set(n,c)}),l}(d.fromString,this.encoder)}else d.fromObject?(this.map=new Map,Object.keys(d.fromObject).forEach(l=>{const s=d.fromObject[l];this.map.set(l,Array.isArray(s)?s:[s])})):this.map=null}has(d){return this.init(),this.map.has(d)}get(d){this.init();const l=this.map.get(d);return l?l[0]:null}getAll(d){return this.init(),this.map.get(d)||null}keys(){return this.init(),Array.from(this.map.keys())}append(d,l){return this.clone({param:d,value:l,op:"a"})}appendAll(d){const l=[];return Object.keys(d).forEach(s=>{const r=d[s];Array.isArray(r)?r.forEach(t=>{l.push({param:s,value:t,op:"a"})}):l.push({param:s,value:r,op:"a"})}),this.clone(l)}set(d,l){return this.clone({param:d,value:l,op:"s"})}delete(d,l){return this.clone({param:d,value:l,op:"d"})}toString(){return this.init(),this.keys().map(d=>{const l=this.encoder.encodeKey(d);return this.map.get(d).map(s=>l+"="+this.encoder.encodeValue(s)).join("&")}).filter(d=>""!==d).join("&")}clone(d){const l=new J({encoder:this.encoder});return l.cloneFrom=this.cloneFrom||this,l.updates=(this.updates||[]).concat(d),l}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(d=>this.map.set(d,this.cloneFrom.map.get(d))),this.updates.forEach(d=>{switch(d.op){case"a":case"s":const l=("a"===d.op?this.map.get(d.param):void 0)||[];l.push(ge(d.value)),this.map.set(d.param,l);break;case"d":if(void 0===d.value){this.map.delete(d.param);break}{let s=this.map.get(d.param)||[];const r=s.indexOf(ge(d.value));-1!==r&&s.splice(r,1),s.length>0?this.map.set(d.param,s):this.map.delete(d.param)}}}),this.cloneFrom=this.updates=null)}}class oe{constructor(){this.map=new Map}set(d,l){return this.map.set(d,l),this}get(d){return this.map.has(d)||this.map.set(d,d.defaultValue()),this.map.get(d)}delete(d){return this.map.delete(d),this}has(d){return this.map.has(d)}keys(){return this.map.keys()}}function T(o){return"undefined"!=typeof ArrayBuffer&&o instanceof ArrayBuffer}function j(o){return"undefined"!=typeof Blob&&o instanceof Blob}function Y(o){return"undefined"!=typeof FormData&&o instanceof FormData}class te{constructor(d,l,s,r){let t;if(this.url=l,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=d.toUpperCase(),function Re(o){switch(o){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==s?s:null,t=r):t=s,t&&(this.reportProgress=!!t.reportProgress,this.withCredentials=!!t.withCredentials,t.responseType&&(this.responseType=t.responseType),t.headers&&(this.headers=t.headers),t.context&&(this.context=t.context),t.params&&(this.params=t.params)),this.headers||(this.headers=new P),this.context||(this.context=new oe),this.params){const n=this.params.toString();if(0===n.length)this.urlWithParams=l;else{const a=l.indexOf("?");this.urlWithParams=l+(-1===a?"?":aAt.set(Ht,d.setHeaders[Ht]),h)),d.setParams&&(x=Object.keys(d.setParams).reduce((At,Ht)=>At.set(Ht,d.setParams[Ht]),x)),new te(s,r,n,{params:x,headers:h,context:We,reportProgress:c,responseType:t,withCredentials:a})}}var ue=(()=>((ue=ue||{})[ue.Sent=0]="Sent",ue[ue.UploadProgress=1]="UploadProgress",ue[ue.ResponseHeader=2]="ResponseHeader",ue[ue.DownloadProgress=3]="DownloadProgress",ue[ue.Response=4]="Response",ue[ue.User=5]="User",ue))();class de{constructor(d,l=200,s="OK"){this.headers=d.headers||new P,this.status=void 0!==d.status?d.status:l,this.statusText=d.statusText||s,this.url=d.url||null,this.ok=this.status>=200&&this.status<300}}class Le extends de{constructor(d={}){super(d),this.type=ue.ResponseHeader}clone(d={}){return new Le({headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class Ue extends de{constructor(d={}){super(d),this.type=ue.Response,this.body=void 0!==d.body?d.body:null}clone(d={}){return new Ue({body:void 0!==d.body?d.body:this.body,headers:d.headers||this.headers,status:void 0!==d.status?d.status:this.status,statusText:d.statusText||this.statusText,url:d.url||this.url||void 0})}}class ze extends de{constructor(d){super(d,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${d.url||"(unknown url)"}`:`Http failure response for ${d.url||"(unknown url)"}: ${d.status} ${d.statusText}`,this.error=d.error||null}}function le(o,d){return{body:d,headers:o.headers,context:o.context,observe:o.observe,params:o.params,reportProgress:o.reportProgress,responseType:o.responseType,withCredentials:o.withCredentials}}let je=(()=>{class o{constructor(l){this.handler=l}request(l,s,r={}){let t;if(l instanceof te)t=l;else{let c,h;c=r.headers instanceof P?r.headers:new P(r.headers),r.params&&(h=r.params instanceof J?r.params:new J({fromObject:r.params})),t=new te(l,s,void 0!==r.body?r.body:null,{headers:c,context:r.context,params:h,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const n=(0,_.of)(t).pipe((0,g.b)(c=>this.handler.handle(c)));if(l instanceof te||"events"===r.observe)return n;const a=n.pipe((0,A.h)(c=>c instanceof Ue));switch(r.observe||"body"){case"body":switch(t.responseType){case"arraybuffer":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe((0,E.U)(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe((0,E.U)(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe((0,E.U)(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(l,s={}){return this.request("DELETE",l,s)}get(l,s={}){return this.request("GET",l,s)}head(l,s={}){return this.request("HEAD",l,s)}jsonp(l,s){return this.request("JSONP",l,{params:(new J).append(s,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(l,s={}){return this.request("OPTIONS",l,s)}patch(l,s,r={}){return this.request("PATCH",l,le(r,s))}post(l,s,r={}){return this.request("POST",l,le(r,s))}put(l,s,r={}){return this.request("PUT",l,le(r,s))}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(C))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();class ye{constructor(d,l){this.next=d,this.interceptor=l}handle(d){return this.interceptor.intercept(d,this.next)}}const Be=new b.OlP("HTTP_INTERCEPTORS");let W=(()=>{class o{intercept(l,s){return s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const Je=/^\)\]\}',?\n/;let Ve=(()=>{class o{constructor(l){this.xhrFactory=l}handle(l){if("JSONP"===l.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new w.y(s=>{const r=this.xhrFactory.build();if(r.open(l.method,l.urlWithParams),l.withCredentials&&(r.withCredentials=!0),l.headers.forEach((Ht,lt)=>r.setRequestHeader(Ht,lt.join(","))),l.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!l.headers.has("Content-Type")){const Ht=l.detectContentTypeHeader();null!==Ht&&r.setRequestHeader("Content-Type",Ht)}if(l.responseType){const Ht=l.responseType.toLowerCase();r.responseType="json"!==Ht?Ht:"text"}const t=l.serializeBody();let n=null;const a=()=>{if(null!==n)return n;const Ht=r.statusText||"OK",lt=new P(r.getAllResponseHeaders()),Ut=function nt(o){return"responseURL"in o&&o.responseURL?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):null}(r)||l.url;return n=new Le({headers:lt,status:r.status,statusText:Ht,url:Ut}),n},c=()=>{let{headers:Ht,status:lt,statusText:Ut,url:mt}=a(),Lt=null;204!==lt&&(Lt=void 0===r.response?r.responseText:r.response),0===lt&&(lt=Lt?200:0);let Ee=lt>=200&<<300;if("json"===l.responseType&&"string"==typeof Lt){const Ge=Lt;Lt=Lt.replace(Je,"");try{Lt=""!==Lt?JSON.parse(Lt):null}catch(U){Lt=Ge,Ee&&(Ee=!1,Lt={error:U,text:Lt})}}Ee?(s.next(new Ue({body:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0})),s.complete()):s.error(new ze({error:Lt,headers:Ht,status:lt,statusText:Ut,url:mt||void 0}))},h=Ht=>{const{url:lt}=a(),Ut=new ze({error:Ht,status:r.status||0,statusText:r.statusText||"Unknown Error",url:lt||void 0});s.error(Ut)};let x=!1;const We=Ht=>{x||(s.next(a()),x=!0);let lt={type:ue.DownloadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),"text"===l.responseType&&!!r.responseText&&(lt.partialText=r.responseText),s.next(lt)},At=Ht=>{let lt={type:ue.UploadProgress,loaded:Ht.loaded};Ht.lengthComputable&&(lt.total=Ht.total),s.next(lt)};return r.addEventListener("load",c),r.addEventListener("error",h),r.addEventListener("timeout",h),r.addEventListener("abort",h),l.reportProgress&&(r.addEventListener("progress",We),null!==t&&r.upload&&r.upload.addEventListener("progress",At)),r.send(t),s.next({type:ue.Sent}),()=>{r.removeEventListener("error",h),r.removeEventListener("abort",h),r.removeEventListener("load",c),r.removeEventListener("timeout",h),l.reportProgress&&(r.removeEventListener("progress",We),null!==t&&r.upload&&r.upload.removeEventListener("progress",At)),r.readyState!==r.DONE&&r.abort()}})}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.JF))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})();const X=new b.OlP("XSRF_COOKIE_NAME"),z=new b.OlP("XSRF_HEADER_NAME");class Q{}let D=(()=>{class o{constructor(l,s,r){this.doc=l,this.platform=s,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const l=this.doc.cookie||"";return l!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,e.Mx)(l,this.cookieName),this.lastCookieString=l),this.lastToken}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(e.K0),b.LFG(b.Lbi),b.LFG(X))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),H=(()=>{class o{constructor(l,s){this.tokenService=l,this.headerName=s}intercept(l,s){const r=l.url.toLowerCase();if("GET"===l.method||"HEAD"===l.method||r.startsWith("http://")||r.startsWith("https://"))return s.handle(l);const t=this.tokenService.getToken();return null!==t&&!l.headers.has(this.headerName)&&(l=l.clone({headers:l.headers.set(this.headerName,t)})),s.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(Q),b.LFG(z))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),V=(()=>{class o{constructor(l,s){this.backend=l,this.injector=s,this.chain=null}handle(l){if(null===this.chain){const s=this.injector.get(Be,[]);this.chain=s.reduceRight((r,t)=>new ye(r,t),this.backend)}return this.chain.handle(l)}}return o.\u0275fac=function(l){return new(l||o)(b.LFG(I),b.LFG(b.zs3))},o.\u0275prov=b.Yz7({token:o,factory:o.\u0275fac}),o})(),Te=(()=>{class o{static disable(){return{ngModule:o,providers:[{provide:H,useClass:W}]}}static withOptions(l={}){return{ngModule:o,providers:[l.cookieName?{provide:X,useValue:l.cookieName}:[],l.headerName?{provide:z,useValue:l.headerName}:[]]}}}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[H,{provide:Be,useExisting:H,multi:!0},{provide:Q,useClass:D},{provide:X,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}),o})(),Ae=(()=>{class o{}return o.\u0275fac=function(l){return new(l||o)},o.\u0275mod=b.oAB({type:o}),o.\u0275inj=b.cJS({providers:[je,{provide:C,useClass:V},Ve,{provide:I,useExisting:Ve}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),o})()},5e3:($e,_e,p)=>{"use strict";p.d(_e,{deG:()=>Hm,tb:()=>lm,AFp:()=>sm,ip1:()=>Zc,CZH:()=>sa,hGG:()=>jT,z2F:()=>za,sBO:()=>AT,Sil:()=>zc,_Vd:()=>Na,EJc:()=>dm,SBq:()=>Va,qLn:()=>ya,vpe:()=>zr,tBr:()=>Aa,XFs:()=>Qe,OlP:()=>Dn,zs3:()=>Er,ZZ4:()=>Oo,aQg:()=>Ho,soG:()=>Ro,YKP:()=>pf,h0i:()=>ia,PXZ:()=>uT,R0b:()=>_r,FiY:()=>cs,Lbi:()=>om,g9A:()=>am,n_E:()=>yo,Qsj:()=>KC,FYo:()=>cf,JOm:()=>Fr,q3G:()=>On,tp0:()=>Rs,Rgc:()=>Za,dDg:()=>pm,GfV:()=>df,s_b:()=>xo,ifc:()=>t,eFA:()=>gm,G48:()=>_T,Gpc:()=>m,f3M:()=>qm,_c5:()=>LT,VLi:()=>lT,c2e:()=>cm,zSh:()=>Vl,wAp:()=>Ii,vHH:()=>ne,EiD:()=>Vd,mCW:()=>Ca,qzn:()=>Os,JVY:()=>pg,pB0:()=>_g,eBb:()=>mg,L6k:()=>fg,LAX:()=>gg,cg1:()=>vc,kL8:()=>Pp,yhl:()=>Id,dqk:()=>x,sIi:()=>Ra,CqO:()=>Gh,QGY:()=>sc,F4k:()=>Zh,RDi:()=>Z,AaK:()=>C,z3N:()=>Yr,qOj:()=>Gl,TTD:()=>Mn,_Bn:()=>af,xp6:()=>Tu,uIk:()=>Yl,Q2q:()=>ql,Tol:()=>dp,Gre:()=>Tp,ekj:()=>hc,Suo:()=>kf,Xpm:()=>ie,lG2:()=>Rt,Yz7:()=>Se,cJS:()=>Je,oAB:()=>xt,Yjl:()=>Et,Y36:()=>Pa,_UZ:()=>Fh,GkF:()=>Uh,BQk:()=>rc,ynx:()=>nc,qZA:()=>ic,TgZ:()=>tc,EpF:()=>jh,n5z:()=>fd,Ikx:()=>bc,LFG:()=>Fn,$8M:()=>Fo,$Z:()=>Vh,NdJ:()=>ac,CRH:()=>Nf,kcU:()=>zi,O4$:()=>Hn,oxw:()=>Yh,ALo:()=>xf,lcZ:()=>Mf,xi3:()=>Sf,Dn7:()=>Df,Hsn:()=>Jh,F$t:()=>qh,Q6J:()=>Xl,s9C:()=>cc,MGl:()=>mo,hYB:()=>dc,DdM:()=>_f,VKq:()=>Af,WLB:()=>bf,kEZ:()=>Cf,iGM:()=>Lf,MAs:()=>Sh,evT:()=>Qd,Jf7:()=>Jd,CHM:()=>Ei,oJD:()=>Fd,LSH:()=>el,B6R:()=>ce,kYT:()=>Yt,Udp:()=>uc,WFA:()=>oc,d8E:()=>Cc,YNc:()=>Mh,W1O:()=>jf,_uU:()=>_p,Oqu:()=>fc,hij:()=>_o,AsE:()=>mc,lnq:()=>gc,HOy:()=>_c,xDo:()=>Ac,Gf:()=>Bf});var e=p(8929),b=p(42654),_=p(56498),w=p(36787),g=p(12474);function A(u){for(let f in u)if(u[f]===A)return f;throw Error("Could not find renamed property on target object.")}function E(u,f){for(const v in f)f.hasOwnProperty(v)&&!u.hasOwnProperty(v)&&(u[v]=f[v])}function C(u){if("string"==typeof u)return u;if(Array.isArray(u))return"["+u.map(C).join(", ")+"]";if(null==u)return""+u;if(u.overriddenName)return`${u.overriddenName}`;if(u.name)return`${u.name}`;const f=u.toString();if(null==f)return""+f;const v=f.indexOf("\n");return-1===v?f:f.substring(0,v)}function I(u,f){return null==u||""===u?null===f?"":f:null==f||""===f?u:u+" "+f}const P=A({__forward_ref__:A});function m(u){return u.__forward_ref__=m,u.toString=function(){return C(this())},u}function L(u){return O(u)?u():u}function O(u){return"function"==typeof u&&u.hasOwnProperty(P)&&u.__forward_ref__===m}class ne extends Error{constructor(f,v){super(function ge(u,f){return`NG0${Math.abs(u)}${f?": "+f:""}`}(f,v)),this.code=f}}function J(u){return"string"==typeof u?u:null==u?"":String(u)}function Me(u){return"function"==typeof u?u.name||u.toString():"object"==typeof u&&null!=u&&"function"==typeof u.type?u.type.name||u.type.toString():J(u)}function j(u,f){const v=f?` in ${f}`:"";throw new ne(-201,`No provider for ${Me(u)} found${v}`)}function R(u,f){null==u&&function me(u,f,v,y){throw new Error(`ASSERTION ERROR: ${u}`+(null==y?"":` [Expected=> ${v} ${y} ${f} <=Actual]`))}(f,u,null,"!=")}function Se(u){return{token:u.token,providedIn:u.providedIn||null,factory:u.factory,value:void 0}}function Je(u){return{providers:u.providers||[],imports:u.imports||[]}}function nt(u){return Ve(u,D)||Ve(u,V)}function Ve(u,f){return u.hasOwnProperty(f)?u[f]:null}function Q(u){return u&&(u.hasOwnProperty(H)||u.hasOwnProperty(xe))?u[H]:null}const D=A({\u0275prov:A}),H=A({\u0275inj:A}),V=A({ngInjectableDef:A}),xe=A({ngInjectorDef:A});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let Te;function ae(u){const f=Te;return Te=u,f}function i(u,f,v){const y=nt(u);return y&&"root"==y.providedIn?void 0===y.value?y.value=y.factory():y.value:v&Qe.Optional?null:void 0!==f?f:void j(C(u),"Injector")}function d(u){return{toString:u}.toString()}var l=(()=>((l=l||{})[l.OnPush=0]="OnPush",l[l.Default=1]="Default",l))(),t=(()=>{return(u=t||(t={}))[u.Emulated=0]="Emulated",u[u.None=2]="None",u[u.ShadowDom=3]="ShadowDom",t;var u})();const n="undefined"!=typeof globalThis&&globalThis,a="undefined"!=typeof window&&window,c="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,x=n||"undefined"!=typeof global&&global||a||c,Ht={},lt=[],Ut=A({\u0275cmp:A}),mt=A({\u0275dir:A}),Lt=A({\u0275pipe:A}),Ee=A({\u0275mod:A}),Ge=A({\u0275fac:A}),U=A({__NG_ELEMENT_ID__:A});let k=0;function ie(u){return d(()=>{const v={},y={type:u.type,providersResolver:null,decls:u.decls,vars:u.vars,factory:null,template:u.template||null,consts:u.consts||null,ngContentSelectors:u.ngContentSelectors,hostBindings:u.hostBindings||null,hostVars:u.hostVars||0,hostAttrs:u.hostAttrs||null,contentQueries:u.contentQueries||null,declaredInputs:v,inputs:null,outputs:null,exportAs:u.exportAs||null,onPush:u.changeDetection===l.OnPush,directiveDefs:null,pipeDefs:null,selectors:u.selectors||lt,viewQuery:u.viewQuery||null,features:u.features||null,data:u.data||{},encapsulation:u.encapsulation||t.Emulated,id:"c",styles:u.styles||lt,_:null,setInput:null,schemas:u.schemas||null,tView:null},M=u.directives,S=u.features,B=u.pipes;return y.id+=k++,y.inputs=It(u.inputs,v),y.outputs=It(u.outputs),S&&S.forEach(re=>re(y)),y.directiveDefs=M?()=>("function"==typeof M?M():M).map(He):null,y.pipeDefs=B?()=>("function"==typeof B?B():B).map(ct):null,y})}function ce(u,f,v){const y=u.\u0275cmp;y.directiveDefs=()=>f.map(He),y.pipeDefs=()=>v.map(ct)}function He(u){return Bt(u)||function Jt(u){return u[mt]||null}(u)}function ct(u){return function ai(u){return u[Lt]||null}(u)}const bt={};function xt(u){return d(()=>{const f={type:u.type,bootstrap:u.bootstrap||lt,declarations:u.declarations||lt,imports:u.imports||lt,exports:u.exports||lt,transitiveCompileScopes:null,schemas:u.schemas||null,id:u.id||null};return null!=u.id&&(bt[u.id]=u.type),f})}function Yt(u,f){return d(()=>{const v=mi(u,!0);v.declarations=f.declarations||lt,v.imports=f.imports||lt,v.exports=f.exports||lt})}function It(u,f){if(null==u)return Ht;const v={};for(const y in u)if(u.hasOwnProperty(y)){let M=u[y],S=M;Array.isArray(M)&&(S=M[1],M=M[0]),v[M]=y,f&&(f[M]=S)}return v}const Rt=ie;function Et(u){return{type:u.type,name:u.name,factory:null,pure:!1!==u.pure,onDestroy:u.type.prototype.ngOnDestroy||null}}function Bt(u){return u[Ut]||null}function mi(u,f){const v=u[Ee]||null;if(!v&&!0===f)throw new Error(`Type ${C(u)} does not have '\u0275mod' property.`);return v}function en(u){return Array.isArray(u)&&"object"==typeof u[1]}function an(u){return Array.isArray(u)&&!0===u[1]}function dn(u){return 0!=(8&u.flags)}function wn(u){return 2==(2&u.flags)}function xn(u){return 1==(1&u.flags)}function Oi(u){return null!==u.template}function kn(u){return 0!=(512&u[2])}function En(u,f){return u.hasOwnProperty(Ge)?u[Ge]:null}class ur{constructor(f,v,y){this.previousValue=f,this.currentValue=v,this.firstChange=y}isFirstChange(){return this.firstChange}}function Mn(){return Gn}function Gn(u){return u.type.prototype.ngOnChanges&&(u.setInput=ar),sr}function sr(){const u=hr(this),f=null==u?void 0:u.current;if(f){const v=u.previous;if(v===Ht)u.previous=f;else for(let y in f)v[y]=f[y];u.current=null,this.ngOnChanges(f)}}function ar(u,f,v,y){const M=hr(u)||function br(u,f){return u[Un]=f}(u,{previous:Ht,current:null}),S=M.current||(M.current={}),B=M.previous,re=this.declaredInputs[v],ve=B[re];S[re]=new ur(ve&&ve.currentValue,f,B===Ht),u[y]=f}Mn.ngInherit=!0;const Un="__ngSimpleChanges__";function hr(u){return u[Un]||null}let N;function Z(u){N=u}function Pe(){return void 0!==N?N:"undefined"!=typeof document?document:void 0}function Ct(u){return!!u.listen}const ee={createRenderer:(u,f)=>Pe()};function he(u){for(;Array.isArray(u);)u=u[0];return u}function Gt(u,f){return he(f[u])}function Wt(u,f){return he(f[u.index])}function di(u,f){return u.data[f]}function ui(u,f){return u[f]}function _i(u,f){const v=f[u];return en(v)?v:v[0]}function Ti(u){return 4==(4&u[2])}function Hi(u){return 128==(128&u[2])}function De(u,f){return null==f?null:u[f]}function we(u){u[18]=0}function ut(u,f){u[5]+=f;let v=u,y=u[3];for(;null!==y&&(1===f&&1===v[5]||-1===f&&0===v[5]);)y[5]+=f,v=y,y=y[3]}const Zt={lFrame:pi(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Wn(){return Zt.bindingsEnabled}function Xt(){return Zt.lFrame.lView}function si(){return Zt.lFrame.tView}function Ei(u){return Zt.lFrame.contextLView=u,u[8]}function gi(){let u=Vi();for(;null!==u&&64===u.type;)u=u.parent;return u}function Vi(){return Zt.lFrame.currentTNode}function vn(u,f){const v=Zt.lFrame;v.currentTNode=u,v.isParent=f}function Pn(){return Zt.lFrame.isParent}function Yn(){Zt.lFrame.isParent=!1}function wr(){return Zt.isInCheckNoChangesMode}function bn(u){Zt.isInCheckNoChangesMode=u}function mn(){const u=Zt.lFrame;let f=u.bindingRootIndex;return-1===f&&(f=u.bindingRootIndex=u.tView.bindingStartIndex),f}function Sn(){return Zt.lFrame.bindingIndex}function er(){return Zt.lFrame.bindingIndex++}function fr(u){const f=Zt.lFrame,v=f.bindingIndex;return f.bindingIndex=f.bindingIndex+u,v}function oa(u,f){const v=Zt.lFrame;v.bindingIndex=v.bindingRootIndex=u,As(f)}function As(u){Zt.lFrame.currentDirectiveIndex=u}function fe(u){const f=Zt.lFrame.currentDirectiveIndex;return-1===f?null:u[f]}function at(){return Zt.lFrame.currentQueryIndex}function ke(u){Zt.lFrame.currentQueryIndex=u}function pt(u){const f=u[1];return 2===f.type?f.declTNode:1===f.type?u[6]:null}function Vt(u,f,v){if(v&Qe.SkipSelf){let M=f,S=u;for(;!(M=M.parent,null!==M||v&Qe.Host||(M=pt(S),null===M||(S=S[15],10&M.type))););if(null===M)return!1;f=M,u=S}const y=Zt.lFrame=ni();return y.currentTNode=f,y.lView=u,!0}function qt(u){const f=ni(),v=u[1];Zt.lFrame=f,f.currentTNode=v.firstChild,f.lView=u,f.tView=v,f.contextLView=u,f.bindingIndex=v.bindingStartIndex,f.inI18n=!1}function ni(){const u=Zt.lFrame,f=null===u?null:u.child;return null===f?pi(u):f}function pi(u){const f={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:u,child:null,inI18n:!1};return null!==u&&(u.child=f),f}function oi(){const u=Zt.lFrame;return Zt.lFrame=u.parent,u.currentTNode=null,u.lView=null,u}const Si=oi;function Gi(){const u=oi();u.isParent=!0,u.tView=null,u.selectedIndex=-1,u.contextLView=null,u.elementDepthCount=0,u.currentDirectiveIndex=-1,u.currentNamespace=null,u.bindingRootIndex=-1,u.bindingIndex=-1,u.currentQueryIndex=0}function Zi(){return Zt.lFrame.selectedIndex}function Bi(u){Zt.lFrame.selectedIndex=u}function Pi(){const u=Zt.lFrame;return di(u.tView,u.selectedIndex)}function Hn(){Zt.lFrame.currentNamespace="svg"}function zi(){!function tr(){Zt.lFrame.currentNamespace=null}()}function bs(u,f){for(let v=f.directiveStart,y=f.directiveEnd;v=y)break}else f[ve]<0&&(u[18]+=65536),(re>11>16&&(3&u[2])===f){u[2]+=2048;try{S.call(re)}finally{}}}else try{S.call(re)}finally{}}class rs{constructor(f,v,y){this.factory=f,this.resolving=!1,this.canSeeViewProviders=v,this.injectImpl=y}}function Cs(u,f,v){const y=Ct(u);let M=0;for(;Mf){B=S-1;break}}}for(;S>16}(u),y=f;for(;v>0;)y=y[15],v--;return y}let $=!0;function Fe(u){const f=$;return $=u,f}let Ft=0;function Ai(u,f){const v=xi(u,f);if(-1!==v)return v;const y=f[1];y.firstCreatePass&&(u.injectorIndex=f.length,Yi(y.data,u),Yi(f,null),Yi(y.blueprint,null));const M=nn(u,f),S=u.injectorIndex;if(qa(M)){const B=as(M),re=se(M,f),ve=re[1].data;for(let et=0;et<8;et++)f[S+et]=re[B+et]|ve[B+et]}return f[S+8]=M,S}function Yi(u,f){u.push(0,0,0,0,0,0,0,0,f)}function xi(u,f){return-1===u.injectorIndex||u.parent&&u.parent.injectorIndex===u.injectorIndex||null===f[u.injectorIndex+8]?-1:u.injectorIndex}function nn(u,f){if(u.parent&&-1!==u.parent.injectorIndex)return u.parent.injectorIndex;let v=0,y=null,M=f;for(;null!==M;){const S=M[1],B=S.type;if(y=2===B?S.declTNode:1===B?M[6]:null,null===y)return-1;if(v++,M=M[15],-1!==y.injectorIndex)return y.injectorIndex|v<<16}return-1}function on(u,f,v){!function $t(u,f,v){let y;"string"==typeof v?y=v.charCodeAt(0)||0:v.hasOwnProperty(U)&&(y=v[U]),null==y&&(y=v[U]=Ft++);const M=255&y;f.data[u+(M>>5)]|=1<=0?255&f:Sr:f}(v);if("function"==typeof S){if(!Vt(f,u,y))return y&Qe.Host?Cr(M,v,y):vr(f,v,y,M);try{const B=S(y);if(null!=B||y&Qe.Optional)return B;j(v)}finally{Si()}}else if("number"==typeof S){let B=null,re=xi(u,f),ve=-1,et=y&Qe.Host?f[16][6]:null;for((-1===re||y&Qe.SkipSelf)&&(ve=-1===re?nn(u,f):f[re+8],-1!==ve&&pd(y,!1)?(B=f[1],re=as(ve),f=se(ve,f)):re=-1);-1!==re;){const dt=f[1];if(hd(S,re,dt.data)){const wt=Xr(re,f,v,B,y,et);if(wt!==ls)return wt}ve=f[re+8],-1!==ve&&pd(y,f[1].data[re+8]===et)&&hd(S,re,f)?(B=dt,re=as(ve),f=se(ve,f)):re=-1}}}return vr(f,v,y,M)}const ls={};function Sr(){return new ys(gi(),Xt())}function Xr(u,f,v,y,M,S){const B=f[1],re=B.data[u+8],dt=Es(re,B,v,null==y?wn(re)&&$:y!=B&&0!=(3&re.type),M&Qe.Host&&S===re);return null!==dt?ua(f,B,dt,re):ls}function Es(u,f,v,y,M){const S=u.providerIndexes,B=f.data,re=1048575&S,ve=u.directiveStart,dt=S>>20,Nt=M?re+dt:u.directiveEnd;for(let zt=y?re:re+dt;zt=ve&&Kt.type===v)return zt}if(M){const zt=B[ve];if(zt&&Oi(zt)&&zt.type===v)return ve}return null}function ua(u,f,v,y){let M=u[v];const S=f.data;if(function Bo(u){return u instanceof rs}(M)){const B=M;B.resolving&&function oe(u,f){const v=f?`. Dependency path: ${f.join(" > ")} > ${u}`:"";throw new ne(-200,`Circular dependency in DI detected for ${u}${v}`)}(Me(S[v]));const re=Fe(B.canSeeViewProviders);B.resolving=!0;const ve=B.injectImpl?ae(B.injectImpl):null;Vt(u,y,Qe.Default);try{M=u[v]=B.factory(void 0,S,u,y),f.firstCreatePass&&v>=y.directiveStart&&function Wa(u,f,v){const{ngOnChanges:y,ngOnInit:M,ngDoCheck:S}=f.type.prototype;if(y){const B=Gn(f);(v.preOrderHooks||(v.preOrderHooks=[])).push(u,B),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,B)}M&&(v.preOrderHooks||(v.preOrderHooks=[])).push(0-u,M),S&&((v.preOrderHooks||(v.preOrderHooks=[])).push(u,S),(v.preOrderCheckHooks||(v.preOrderCheckHooks=[])).push(u,S))}(v,S[v],f)}finally{null!==ve&&ae(ve),Fe(re),B.resolving=!1,Si()}}return M}function hd(u,f,v){return!!(v[f+(u>>5)]&1<{const f=u.prototype.constructor,v=f[Ge]||Vo(f),y=Object.prototype;let M=Object.getPrototypeOf(u.prototype).constructor;for(;M&&M!==y;){const S=M[Ge]||Vo(M);if(S&&S!==v)return S;M=Object.getPrototypeOf(M)}return S=>new S})}function Vo(u){return O(u)?()=>{const f=Vo(L(u));return f&&f()}:En(u)}function Fo(u){return function os(u,f){if("class"===f)return u.classes;if("style"===f)return u.styles;const v=u.attrs;if(v){const y=v.length;let M=0;for(;M{const y=function Uo(u){return function(...v){if(u){const y=u(...v);for(const M in y)this[M]=y[M]}}}(f);function M(...S){if(this instanceof M)return y.apply(this,S),this;const B=new M(...S);return re.annotation=B,re;function re(ve,et,dt){const wt=ve.hasOwnProperty(xs)?ve[xs]:Object.defineProperty(ve,xs,{value:[]})[xs];for(;wt.length<=dt;)wt.push(null);return(wt[dt]=wt[dt]||[]).push(B),ve}}return v&&(M.prototype=Object.create(v.prototype)),M.prototype.ngMetadataName=u,M.annotationCls=M,M})}class Dn{constructor(f,v){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof v?this.__NG_ELEMENT_ID__=v:void 0!==v&&(this.\u0275prov=Se({token:this,providedIn:v.providedIn||"root",factory:v.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Hm=new Dn("AnalyzeForEntryComponents");function Tr(u,f){void 0===f&&(f=u);for(let v=0;vArray.isArray(v)?kr(v,f):f(v))}function gd(u,f,v){f>=u.length?u.push(v):u.splice(f,0,v)}function Ja(u,f){return f>=u.length-1?u.pop():u.splice(f,1)[0]}function fa(u,f){const v=[];for(let y=0;y=0?u[1|y]=v:(y=~y,function km(u,f,v,y){let M=u.length;if(M==f)u.push(v,y);else if(1===M)u.push(y,u[0]),u[0]=v;else{for(M--,u.push(u[M-1],u[M]);M>f;)u[M]=u[M-2],M--;u[f]=v,u[f+1]=y}}(u,y,f,v)),y}function Zo(u,f){const v=Ds(u,f);if(v>=0)return u[1|v]}function Ds(u,f){return function bd(u,f,v){let y=0,M=u.length>>v;for(;M!==y;){const S=y+(M-y>>1),B=u[S<f?M=S:y=S+1}return~(M<({token:u})),-1),cs=_a(Ss("Optional"),8),Rs=_a(Ss("SkipSelf"),4);let Xa,eo;function Ps(u){var f;return(null===(f=function qo(){if(void 0===Xa&&(Xa=null,x.trustedTypes))try{Xa=x.trustedTypes.createPolicy("angular",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return Xa}())||void 0===f?void 0:f.createHTML(u))||u}function Sd(u){var f;return(null===(f=function Jo(){if(void 0===eo&&(eo=null,x.trustedTypes))try{eo=x.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:u=>u,createScript:u=>u,createScriptURL:u=>u})}catch(u){}return eo}())||void 0===f?void 0:f.createHTML(u))||u}class ds{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class lg extends ds{getTypeName(){return"HTML"}}class cg extends ds{getTypeName(){return"Style"}}class dg extends ds{getTypeName(){return"Script"}}class ug extends ds{getTypeName(){return"URL"}}class hg extends ds{getTypeName(){return"ResourceURL"}}function Yr(u){return u instanceof ds?u.changingThisBreaksApplicationSecurity:u}function Os(u,f){const v=Id(u);if(null!=v&&v!==f){if("ResourceURL"===v&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${v} (see https://g.co/ng/security#xss)`)}return v===f}function Id(u){return u instanceof ds&&u.getTypeName()||null}function pg(u){return new lg(u)}function fg(u){return new cg(u)}function mg(u){return new dg(u)}function gg(u){return new ug(u)}function _g(u){return new hg(u)}class Ag{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const v=(new window.DOMParser).parseFromString(Ps(f),"text/html").body;return null===v?this.inertDocumentHelper.getInertBodyElement(f):(v.removeChild(v.firstChild),v)}catch(v){return null}}}class bg{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const v=this.inertDocument.createElement("html");this.inertDocument.appendChild(v);const y=this.inertDocument.createElement("body");v.appendChild(y)}}getInertBodyElement(f){const v=this.inertDocument.createElement("template");if("content"in v)return v.innerHTML=Ps(f),v;const y=this.inertDocument.createElement("body");return y.innerHTML=Ps(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(y),y}stripCustomNsAttrs(f){const v=f.attributes;for(let M=v.length-1;0Ca(f.trim())).join(", ")),this.buf.push(" ",B,'="',Nd(ve),'"')}var u;return this.buf.push(">"),!0}endElement(f){const v=f.nodeName.toLowerCase();Qo.hasOwnProperty(v)&&!Hd.hasOwnProperty(v)&&(this.buf.push(""))}chars(f){this.buf.push(Nd(f))}checkClobberedElement(f,v){if(v&&(f.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return v}}const wg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xg=/([^\#-~ |!])/g;function Nd(u){return u.replace(/&/g,"&").replace(wg,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(xg,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let to;function Vd(u,f){let v=null;try{to=to||function Pd(u){const f=new bg(u);return function Cg(){try{return!!(new window.DOMParser).parseFromString(Ps(""),"text/html")}catch(u){return!1}}()?new Ag(f):f}(u);let y=f?String(f):"";v=to.getInertBodyElement(y);let M=5,S=y;do{if(0===M)throw new Error("Failed to sanitize html because the input is unstable");M--,y=S,S=v.innerHTML,v=to.getInertBodyElement(y)}while(y!==S);return Ps((new yg).sanitizeChildren(Xo(v)||v))}finally{if(v){const y=Xo(v)||v;for(;y.firstChild;)y.removeChild(y.firstChild)}}}function Xo(u){return"content"in u&&function Mg(u){return u.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===u.nodeName}(u)?u.content:null}var On=(()=>((On=On||{})[On.NONE=0]="NONE",On[On.HTML=1]="HTML",On[On.STYLE=2]="STYLE",On[On.SCRIPT=3]="SCRIPT",On[On.URL=4]="URL",On[On.RESOURCE_URL=5]="RESOURCE_URL",On))();function Fd(u){const f=Ta();return f?Sd(f.sanitize(On.HTML,u)||""):Os(u,"HTML")?Sd(Yr(u)):Vd(Pe(),J(u))}function el(u){const f=Ta();return f?f.sanitize(On.URL,u)||"":Os(u,"URL")?Yr(u):Ca(J(u))}function Ta(){const u=Xt();return u&&u[12]}const Zd="__ngContext__";function qn(u,f){u[Zd]=f}function il(u){const f=function Ea(u){return u[Zd]||null}(u);return f?Array.isArray(f)?f:f.lView:null}function rl(u){return u.ngOriginalError}function Zg(u,...f){u.error(...f)}class ya{constructor(){this._console=console}handleError(f){const v=this._findOriginalError(f),y=function jg(u){return u&&u.ngErrorLogger||Zg}(f);y(this._console,"ERROR",f),v&&y(this._console,"ORIGINAL ERROR",v)}_findOriginalError(f){let v=f&&rl(f);for(;v&&rl(v);)v=rl(v);return v||null}}const qd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(x))();function Jd(u){return u.ownerDocument.defaultView}function Qd(u){return u.ownerDocument}function Vr(u){return u instanceof Function?u():u}var Fr=(()=>((Fr=Fr||{})[Fr.Important=1]="Important",Fr[Fr.DashCase=2]="DashCase",Fr))();function al(u,f){return undefined(u,f)}function wa(u){const f=u[3];return an(f)?f[3]:f}function ol(u){return tu(u[13])}function ll(u){return tu(u[4])}function tu(u){for(;null!==u&&!an(u);)u=u[4];return u}function Ls(u,f,v,y,M){if(null!=y){let S,B=!1;an(y)?S=y:en(y)&&(B=!0,y=y[0]);const re=he(y);0===u&&null!==v?null==M?ou(f,v,re):us(f,v,re,M||null,!0):1===u&&null!==v?us(f,v,re,M||null,!0):2===u?function fu(u,f,v){const y=io(u,f);y&&function d_(u,f,v,y){Ct(u)?u.removeChild(f,v,y):f.removeChild(v)}(u,y,f,v)}(f,re,B):3===u&&f.destroyNode(re),null!=S&&function p_(u,f,v,y,M){const S=v[7];S!==he(v)&&Ls(f,u,y,S,M);for(let re=10;re0&&(u[v-1][4]=y[4]);const S=Ja(u,10+f);!function i_(u,f){xa(u,f,f[11],2,null,null),f[0]=null,f[6]=null}(y[1],y);const B=S[19];null!==B&&B.detachView(S[1]),y[3]=null,y[4]=null,y[2]&=-129}return y}function ru(u,f){if(!(256&f[2])){const v=f[11];Ct(v)&&v.destroyNode&&xa(u,f,v,3,null,null),function s_(u){let f=u[13];if(!f)return hl(u[1],u);for(;f;){let v=null;if(en(f))v=f[13];else{const y=f[10];y&&(v=y)}if(!v){for(;f&&!f[4]&&f!==u;)en(f)&&hl(f[1],f),f=f[3];null===f&&(f=u),en(f)&&hl(f[1],f),v=f&&f[4]}f=v}}(f)}}function hl(u,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function c_(u,f){let v;if(null!=u&&null!=(v=u.destroyHooks))for(let y=0;y=0?y[M=et]():y[M=-et].unsubscribe(),S+=2}else{const B=y[M=v[S+1]];v[S].call(B)}if(null!==y){for(let S=M+1;SS?"":M[wt+1].toLowerCase();const zt=8&y?Nt:null;if(zt&&-1!==_u(zt,et,0)||2&y&&et!==Nt){if(Dr(y))return!1;B=!0}}}}else{if(!B&&!Dr(y)&&!Dr(ve))return!1;if(B&&Dr(ve))continue;B=!1,y=ve|1&y}}return Dr(y)||B}function Dr(u){return 0==(1&u)}function A_(u,f,v,y){if(null===f)return-1;let M=0;if(y||!v){let S=!1;for(;M-1)for(v++;v0?'="'+re+'"':"")+"]"}else 8&y?M+="."+B:4&y&&(M+=" "+B);else""!==M&&!Dr(B)&&(f+=vu(S,M),M=""),y=B,S=S||!Dr(y);v++}return""!==M&&(f+=vu(S,M)),f}const ki={};function Tu(u){Eu(si(),Xt(),Zi()+u,wr())}function Eu(u,f,v,y){if(!y)if(3==(3&f[2])){const S=u.preOrderCheckHooks;null!==S&&Kr(f,S,v)}else{const S=u.preOrderHooks;null!==S&&is(f,S,0,v)}Bi(v)}function so(u,f){return u<<17|f<<2}function Rr(u){return u>>17&32767}function _l(u){return 2|u}function qr(u){return(131068&u)>>2}function Al(u,f){return-131069&u|f<<2}function bl(u){return 1|u}function Hu(u,f){const v=u.contentQueries;if(null!==v)for(let y=0;y20&&Eu(u,f,20,wr()),v(y,M)}finally{Bi(S)}}function Bu(u,f,v){if(dn(f)){const M=f.directiveEnd;for(let S=f.directiveStart;S0;){const v=u[--f];if("number"==typeof v&&v<0)return v}return 0})(re)!=ve&&re.push(ve),re.push(y,M,B)}}function Gu(u,f){null!==u.hostBindings&&u.hostBindings(1,f)}function zu(u,f){f.flags|=2,(u.components||(u.components=[])).push(f.index)}function K_(u,f,v){if(v){if(f.exportAs)for(let y=0;y0&&Ol(v)}}function Ol(u){for(let y=ol(u);null!==y;y=ll(y))for(let M=10;M0&&Ol(S)}const v=u[1].components;if(null!==v)for(let y=0;y0&&Ol(M)}}function sA(u,f){const v=_i(f,u),y=v[1];(function aA(u,f){for(let v=f.length;vPromise.resolve(null))();function Qu(u){return u[7]||(u[7]=[])}function $u(u){return u.cleanup||(u.cleanup=[])}function Ku(u,f,v){return(null===u||Oi(u))&&(v=function tt(u){for(;Array.isArray(u);){if("object"==typeof u[1])return u;u=u[0]}return null}(v[f.index])),v[11]}function Xu(u,f){const v=u[9],y=v?v.get(ya,null):null;y&&y.handleError(f)}function eh(u,f,v,y,M){for(let S=0;Sthis.processProvider(re,f,v)),kr([f],re=>this.processInjectorType(re,[],S)),this.records.set(Nl,Vs(void 0,this));const B=this.records.get(Vl);this.scope=null!=B?B.value:null,this.source=M||("object"==typeof f?null:C(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,v=ma,y=Qe.Default){this.assertNotDestroyed();const M=Td(this),S=ae(void 0);try{if(!(y&Qe.SkipSelf)){let re=this.records.get(f);if(void 0===re){const ve=function TA(u){return"function"==typeof u||"object"==typeof u&&u instanceof Dn}(f)&&nt(f);re=ve&&this.injectableDefInScope(ve)?Vs(Ul(f),Da):null,this.records.set(f,re)}if(null!=re)return this.hydrate(f,re)}return(y&Qe.Self?ih():this.parent).get(f,v=y&Qe.Optional&&v===ma?null:v)}catch(B){if("NullInjectorError"===B.name){if((B[$a]=B[$a]||[]).unshift(C(f)),M)throw B;return function Qm(u,f,v,y){const M=u[$a];throw f[vd]&&M.unshift(f[vd]),u.message=function $m(u,f,v,y=null){u=u&&"\n"===u.charAt(0)&&"\u0275"==u.charAt(1)?u.substr(2):u;let M=C(f);if(Array.isArray(f))M=f.map(C).join(" -> ");else if("object"==typeof f){let S=[];for(let B in f)if(f.hasOwnProperty(B)){let re=f[B];S.push(B+":"+("string"==typeof re?JSON.stringify(re):C(re)))}M=`{${S.join(", ")}}`}return`${v}${y?"("+y+")":""}[${M}]: ${u.replace(Gm,"\n ")}`}("\n"+u.message,M,v,y),u.ngTokenPath=M,u[$a]=null,u}(B,f,"R3InjectorError",this.source)}throw B}finally{ae(S),Td(M)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((y,M)=>f.push(C(M))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(f,v,y){if(!(f=L(f)))return!1;let M=Q(f);const S=null==M&&f.ngModule||void 0,B=void 0===S?f:S,re=-1!==y.indexOf(B);if(void 0!==S&&(M=Q(S)),null==M)return!1;if(null!=M.imports&&!re){let dt;y.push(B);try{kr(M.imports,wt=>{this.processInjectorType(wt,v,y)&&(void 0===dt&&(dt=[]),dt.push(wt))})}finally{}if(void 0!==dt)for(let wt=0;wtthis.processProvider(Kt,Nt,zt||lt))}}this.injectorDefTypes.add(B);const ve=En(B)||(()=>new B);this.records.set(B,Vs(ve,Da));const et=M.providers;if(null!=et&&!re){const dt=f;kr(et,wt=>this.processProvider(wt,dt,et))}return void 0!==S&&void 0!==f.providers}processProvider(f,v,y){let M=Fs(f=L(f))?f:L(f&&f.provide);const S=function gA(u,f,v){return ah(u)?Vs(void 0,u.useValue):Vs(sh(u),Da)}(f);if(Fs(f)||!0!==f.multi)this.records.get(M);else{let B=this.records.get(M);B||(B=Vs(void 0,Da,!0),B.factory=()=>Wo(B.multi),this.records.set(M,B)),M=f,B.multi.push(f)}this.records.set(M,S)}hydrate(f,v){return v.value===Da&&(v.value=pA,v.value=v.factory()),"object"==typeof v.value&&v.value&&function vA(u){return null!==u&&"object"==typeof u&&"function"==typeof u.ngOnDestroy}(v.value)&&this.onDestroy.add(v.value),v.value}injectableDefInScope(f){if(!f.providedIn)return!1;const v=L(f.providedIn);return"string"==typeof v?"any"===v||v===this.scope:this.injectorDefTypes.has(v)}}function Ul(u){const f=nt(u),v=null!==f?f.factory:En(u);if(null!==v)return v;if(u instanceof Dn)throw new ne(204,!1);if(u instanceof Function)return function mA(u){const f=u.length;if(f>0)throw fa(f,"?"),new ne(204,!1);const v=function X(u){const f=u&&(u[D]||u[V]);if(f){const v=function z(u){if(u.hasOwnProperty("name"))return u.name;const f=(""+u).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(u);return console.warn(`DEPRECATED: DI is instantiating a token "${v}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${v}" class.`),f}return null}(u);return null!==v?()=>v.factory(u):()=>new u}(u);throw new ne(204,!1)}function sh(u,f,v){let y;if(Fs(u)){const M=L(u);return En(M)||Ul(M)}if(ah(u))y=()=>L(u.useValue);else if(function AA(u){return!(!u||!u.useFactory)}(u))y=()=>u.useFactory(...Wo(u.deps||[]));else if(function _A(u){return!(!u||!u.useExisting)}(u))y=()=>Fn(L(u.useExisting));else{const M=L(u&&(u.useClass||u.provide));if(!function CA(u){return!!u.deps}(u))return En(M)||Ul(M);y=()=>new M(...Wo(u.deps))}return y}function Vs(u,f,v=!1){return{factory:u,value:f,multi:v?[]:void 0}}function ah(u){return null!==u&&"object"==typeof u&&Wm in u}function Fs(u){return"function"==typeof u}let Er=(()=>{class u{static create(v,y){var M;if(Array.isArray(v))return nh({name:""},y,v,"");{const S=null!==(M=v.name)&&void 0!==M?M:"";return nh({name:S},v.parent,v.providers,S)}}}return u.THROW_IF_NOT_FOUND=ma,u.NULL=new th,u.\u0275prov=Se({token:u,providedIn:"any",factory:()=>Fn(Nl)}),u.__NG_ELEMENT_ID__=-1,u})();function RA(u,f){bs(il(u)[1],gi())}function Gl(u){let f=function Ah(u){return Object.getPrototypeOf(u.prototype).constructor}(u.type),v=!0;const y=[u];for(;f;){let M;if(Oi(u))M=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ne(903,"");M=f.\u0275dir}if(M){if(v){y.push(M);const B=u;B.inputs=zl(u.inputs),B.declaredInputs=zl(u.declaredInputs),B.outputs=zl(u.outputs);const re=M.hostBindings;re&&HA(u,re);const ve=M.viewQuery,et=M.contentQueries;if(ve&&PA(u,ve),et&&OA(u,et),E(u.inputs,M.inputs),E(u.declaredInputs,M.declaredInputs),E(u.outputs,M.outputs),Oi(M)&&M.data.animation){const dt=u.data;dt.animation=(dt.animation||[]).concat(M.data.animation)}}const S=M.features;if(S)for(let B=0;B=0;y--){const M=u[y];M.hostVars=f+=M.hostVars,M.hostAttrs=Ts(M.hostAttrs,v=Ts(v,M.hostAttrs))}}(y)}function zl(u){return u===Ht?{}:u===lt?[]:u}function PA(u,f){const v=u.viewQuery;u.viewQuery=v?(y,M)=>{f(y,M),v(y,M)}:f}function OA(u,f){const v=u.contentQueries;u.contentQueries=v?(y,M,S)=>{f(y,M,S),v(y,M,S)}:f}function HA(u,f){const v=u.hostBindings;u.hostBindings=v?(y,M)=>{f(y,M),v(y,M)}:f}let ho=null;function Us(){if(!ho){const u=x.Symbol;if(u&&u.iterator)ho=u.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let v=0;vre(he(Qi[y.index])):y.index;if(Ct(v)){let Qi=null;if(!re&&ve&&(Qi=function db(u,f,v,y){const M=u.cleanup;if(null!=M)for(let S=0;Sve?re[ve]:null}"string"==typeof B&&(S+=2)}return null}(u,f,M,y.index)),null!==Qi)(Qi.__ngLastListenerFn__||Qi).__ngNextListenerFn__=S,Qi.__ngLastListenerFn__=S,zt=!1;else{S=lc(y,f,wt,S,!1);const un=v.listen(Ci,M,S);Nt.push(S,un),dt&&dt.push(M,Mi,ei,ei+1)}}else S=lc(y,f,wt,S,!0),Ci.addEventListener(M,S,B),Nt.push(S),dt&&dt.push(M,Mi,ei,B)}else S=lc(y,f,wt,S,!1);const Kt=y.outputs;let li;if(zt&&null!==Kt&&(li=Kt[M])){const fi=li.length;if(fi)for(let Ci=0;Ci0;)f=f[15],u--;return f}(u,Zt.lFrame.contextLView))[8]}(u)}function ub(u,f){let v=null;const y=function b_(u){const f=u.attrs;if(null!=f){const v=f.indexOf(5);if(0==(1&v))return f[v+1]}return null}(u);for(let M=0;M=0}const Bn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rp(u){return u.substring(Bn.key,Bn.keyEnd)}function sp(u,f){const v=Bn.textEnd;return v===f?-1:(f=Bn.keyEnd=function Ab(u,f,v){for(;f32;)f++;return f}(u,Bn.key=f,v),Ks(u,f,v))}function Ks(u,f,v){for(;f=0;v=sp(f,v))mr(u,rp(f),!0)}function Pr(u,f,v,y){const M=Xt(),S=si(),B=fr(2);S.firstUpdatePass&&hp(S,u,B,y),f!==ki&&Jn(M,B,f)&&fp(S,S.data[Zi()],M,M[11],u,M[B+1]=function Sb(u,f){return null==u||("string"==typeof f?u+=f:"object"==typeof u&&(u=C(Yr(u)))),u}(f,v),y,B)}function Or(u,f,v,y){const M=si(),S=fr(2);M.firstUpdatePass&&hp(M,null,S,y);const B=Xt();if(v!==ki&&Jn(B,S,v)){const re=M.data[Zi()];if(gp(re,y)&&!up(M,S)){let ve=y?re.classesWithoutHost:re.stylesWithoutHost;null!==ve&&(v=I(ve,v||"")),ec(M,re,B,v,y)}else!function Mb(u,f,v,y,M,S,B,re){M===ki&&(M=lt);let ve=0,et=0,dt=0=u.expandoStartIndex}function hp(u,f,v,y){const M=u.data;if(null===M[v+1]){const S=M[Zi()],B=up(u,v);gp(S,y)&&null===f&&!B&&(f=!1),f=function Tb(u,f,v,y){const M=fe(u);let S=y?f.residualClasses:f.residualStyles;if(null===M)0===(y?f.classBindings:f.styleBindings)&&(v=Oa(v=pc(null,u,f,v,y),f.attrs,y),S=null);else{const B=f.directiveStylingLast;if(-1===B||u[B]!==M)if(v=pc(M,u,f,v,y),null===S){let ve=function Eb(u,f,v){const y=v?f.classBindings:f.styleBindings;if(0!==qr(y))return u[Rr(y)]}(u,f,y);void 0!==ve&&Array.isArray(ve)&&(ve=pc(null,u,f,ve[1],y),ve=Oa(ve,f.attrs,y),function yb(u,f,v,y){u[Rr(v?f.classBindings:f.styleBindings)]=y}(u,f,y,ve))}else S=function wb(u,f,v){let y;const M=f.directiveEnd;for(let S=1+f.directiveStylingLast;S0)&&(et=!0)}else dt=v;if(M)if(0!==ve){const Nt=Rr(u[re+1]);u[y+1]=so(Nt,re),0!==Nt&&(u[Nt+1]=Al(u[Nt+1],y)),u[re+1]=function x_(u,f){return 131071&u|f<<17}(u[re+1],y)}else u[y+1]=so(re,0),0!==re&&(u[re+1]=Al(u[re+1],y)),re=y;else u[y+1]=so(ve,0),0===re?re=y:u[ve+1]=Al(u[ve+1],y),ve=y;et&&(u[y+1]=_l(u[y+1])),np(u,dt,y,!0),np(u,dt,y,!1),function pb(u,f,v,y,M){const S=M?u.residualClasses:u.residualStyles;null!=S&&"string"==typeof f&&Ds(S,f)>=0&&(v[y+1]=bl(v[y+1]))}(f,dt,u,y,S),B=so(re,ve),S?f.classBindings=B:f.styleBindings=B}(M,S,f,v,B,y)}}function pc(u,f,v,y,M){let S=null;const B=v.directiveEnd;let re=v.directiveStylingLast;for(-1===re?re=v.directiveStart:re++;re0;){const ve=u[M],et=Array.isArray(ve),dt=et?ve[1]:ve,wt=null===dt;let Nt=v[M+1];Nt===ki&&(Nt=wt?lt:void 0);let zt=wt?Zo(Nt,y):dt===y?Nt:void 0;if(et&&!go(zt)&&(zt=Zo(ve,y)),go(zt)&&(re=zt,B))return re;const Kt=u[M+1];M=B?Rr(Kt):qr(Kt)}if(null!==f){let ve=S?f.residualClasses:f.residualStyles;null!=ve&&(re=Zo(ve,y))}return re}function go(u){return void 0!==u}function gp(u,f){return 0!=(u.flags&(f?16:32))}function _p(u,f=""){const v=Xt(),y=si(),M=u+20,S=y.firstCreatePass?Bs(y,M,1,f,null):y.data[M],B=v[M]=function cl(u,f){return Ct(u)?u.createText(f):u.createTextNode(f)}(v[11],f);no(y,v,B,S),vn(S,!1)}function fc(u){return _o("",u,""),fc}function _o(u,f,v){const y=Xt(),M=Zs(y,u,f,v);return M!==ki&&Jr(y,Zi(),M),_o}function mc(u,f,v,y,M){const S=Xt(),B=Gs(S,u,f,v,y,M);return B!==ki&&Jr(S,Zi(),B),mc}function gc(u,f,v,y,M,S,B){const re=Xt(),ve=function zs(u,f,v,y,M,S,B,re){const et=po(u,Sn(),v,M,B);return fr(3),et?f+J(v)+y+J(M)+S+J(B)+re:ki}(re,u,f,v,y,M,S,B);return ve!==ki&&Jr(re,Zi(),ve),gc}function _c(u,f,v,y,M,S,B,re,ve){const et=Xt(),dt=function Ws(u,f,v,y,M,S,B,re,ve,et){const wt=yr(u,Sn(),v,M,B,ve);return fr(4),wt?f+J(v)+y+J(M)+S+J(B)+re+J(ve)+et:ki}(et,u,f,v,y,M,S,B,re,ve);return dt!==ki&&Jr(et,Zi(),dt),_c}function Ac(u,f,v,y,M,S,B,re,ve,et,dt){const wt=Xt(),Nt=function Ys(u,f,v,y,M,S,B,re,ve,et,dt,wt){const Nt=Sn();let zt=yr(u,Nt,v,M,B,ve);return zt=Jn(u,Nt+4,dt)||zt,fr(5),zt?f+J(v)+y+J(M)+S+J(B)+re+J(ve)+et+J(dt)+wt:ki}(wt,u,f,v,y,M,S,B,re,ve,et,dt);return Nt!==ki&&Jr(wt,Zi(),Nt),Ac}function Tp(u,f,v){Or(mr,Gr,Zs(Xt(),u,f,v),!0)}function bc(u,f,v){const y=Xt();return Jn(y,er(),f)&&gr(si(),Pi(),y,u,f,y[11],v,!0),bc}function Cc(u,f,v){const y=Xt();if(Jn(y,er(),f)){const S=si(),B=Pi();gr(S,B,y,u,f,Ku(fe(S.data),B,y),v,!0)}return Cc}const ps=void 0;var Yb=["en",[["a","p"],["AM","PM"],ps],[["AM","PM"],ps,ps],[["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"]],ps,[["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"]],ps,[["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}",ps,"{1} 'at' {0}",ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Wb(u){const v=Math.floor(Math.abs(u)),y=u.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===y?1:5}];let Xs={};function vc(u){const f=function qb(u){return u.toLowerCase().replace(/_/g,"-")}(u);let v=Op(f);if(v)return v;const y=f.split("-")[0];if(v=Op(y),v)return v;if("en"===y)return Yb;throw new Error(`Missing locale data for the locale "${u}".`)}function Pp(u){return vc(u)[Ii.PluralCase]}function Op(u){return u in Xs||(Xs[u]=x.ng&&x.ng.common&&x.ng.common.locales&&x.ng.common.locales[u]),Xs[u]}var Ii=(()=>((Ii=Ii||{})[Ii.LocaleId=0]="LocaleId",Ii[Ii.DayPeriodsFormat=1]="DayPeriodsFormat",Ii[Ii.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ii[Ii.DaysFormat=3]="DaysFormat",Ii[Ii.DaysStandalone=4]="DaysStandalone",Ii[Ii.MonthsFormat=5]="MonthsFormat",Ii[Ii.MonthsStandalone=6]="MonthsStandalone",Ii[Ii.Eras=7]="Eras",Ii[Ii.FirstDayOfWeek=8]="FirstDayOfWeek",Ii[Ii.WeekendRange=9]="WeekendRange",Ii[Ii.DateFormat=10]="DateFormat",Ii[Ii.TimeFormat=11]="TimeFormat",Ii[Ii.DateTimeFormat=12]="DateTimeFormat",Ii[Ii.NumberSymbols=13]="NumberSymbols",Ii[Ii.NumberFormats=14]="NumberFormats",Ii[Ii.CurrencyCode=15]="CurrencyCode",Ii[Ii.CurrencySymbol=16]="CurrencySymbol",Ii[Ii.CurrencyName=17]="CurrencyName",Ii[Ii.Currencies=18]="Currencies",Ii[Ii.Directionality=19]="Directionality",Ii[Ii.PluralCase=20]="PluralCase",Ii[Ii.ExtraData=21]="ExtraData",Ii))();const Ao="en-US";let Hp=Ao;function yc(u,f,v,y,M){if(u=L(u),Array.isArray(u))for(let S=0;S>20;if(Fs(u)||!u.multi){const zt=new rs(ve,M,Pa),Kt=xc(re,f,M?dt:dt+Nt,wt);-1===Kt?(on(Ai(et,B),S,re),wc(S,u,f.length),f.push(re),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(zt),B.push(zt)):(v[Kt]=zt,B[Kt]=zt)}else{const zt=xc(re,f,dt+Nt,wt),Kt=xc(re,f,dt,dt+Nt),li=zt>=0&&v[zt],fi=Kt>=0&&v[Kt];if(M&&!fi||!M&&!li){on(Ai(et,B),S,re);const Ci=function WC(u,f,v,y,M){const S=new rs(u,v,Pa);return S.multi=[],S.index=f,S.componentProviders=0,sf(S,M,y&&!v),S}(M?zC:GC,v.length,M,y,ve);!M&&fi&&(v[Kt].providerFactory=Ci),wc(S,u,f.length,0),f.push(re),et.directiveStart++,et.directiveEnd++,M&&(et.providerIndexes+=1048576),v.push(Ci),B.push(Ci)}else wc(S,u,zt>-1?zt:Kt,sf(v[M?Kt:zt],ve,!M&&y));!M&&y&&fi&&v[Kt].componentProviders++}}}function wc(u,f,v,y){const M=Fs(f),S=function bA(u){return!!u.useClass}(f);if(M||S){const ve=(S?L(f.useClass):f).prototype.ngOnDestroy;if(ve){const et=u.destroyHooks||(u.destroyHooks=[]);if(!M&&f.multi){const dt=et.indexOf(v);-1===dt?et.push(v,[y,ve]):et[dt+1].push(y,ve)}else et.push(v,ve)}}}function sf(u,f,v){return v&&u.componentProviders++,u.multi.push(f)-1}function xc(u,f,v,y){for(let M=v;M{v.providersResolver=(y,M)=>function ZC(u,f,v){const y=si();if(y.firstCreatePass){const M=Oi(u);yc(v,y.data,y.blueprint,M,!0),yc(f,y.data,y.blueprint,M,!1)}}(y,M?M(u):u,f)}}class of{}class JC{resolveComponentFactory(f){throw function qC(u){const f=Error(`No component factory found for ${C(u)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=u,f}(f)}}let Na=(()=>{class u{}return u.NULL=new JC,u})();function QC(){return ta(gi(),Xt())}function ta(u,f){return new Va(Wt(u,f))}let Va=(()=>{class u{constructor(v){this.nativeElement=v}}return u.__NG_ELEMENT_ID__=QC,u})();function $C(u){return u instanceof Va?u.nativeElement:u}class cf{}let KC=(()=>{class u{}return u.__NG_ELEMENT_ID__=()=>function ev(){const u=Xt(),v=_i(gi().index,u);return function XC(u){return u[11]}(en(v)?v:u)}(),u})(),tv=(()=>{class u{}return u.\u0275prov=Se({token:u,providedIn:"root",factory:()=>null}),u})();class df{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const iv=new df("13.2.2"),Sc={};function Eo(u,f,v,y,M=!1){for(;null!==v;){const S=f[v.index];if(null!==S&&y.push(he(S)),an(S))for(let re=10;re-1&&(ul(f,y),Ja(v,y))}this._attachedToViewContainer=!1}ru(this._lView[1],this._lView)}onDestroy(f){Fu(this._lView[1],this._lView,null,f)}markForCheck(){Hl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Bl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function lA(u,f,v){bn(!0);try{Bl(u,f,v)}finally{bn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function r_(u,f){xa(u,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=f}}class nv extends Fa{constructor(f){super(f),this._view=f}detectChanges(){Ju(this._view)}checkNoChanges(){!function cA(u){bn(!0);try{Ju(u)}finally{bn(!1)}}(this._view)}get context(){return null}}class uf extends Na{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const v=Bt(f);return new Dc(v,this.ngModule)}}function hf(u){const f=[];for(let v in u)u.hasOwnProperty(v)&&f.push({propName:u[v],templateName:v});return f}const sv=new Dn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qd});class Dc extends of{constructor(f,v){super(),this.componentDef=f,this.ngModule=v,this.componentType=f.type,this.selector=function y_(u){return u.map(E_).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!v}get inputs(){return hf(this.componentDef.inputs)}get outputs(){return hf(this.componentDef.outputs)}create(f,v,y,M){const S=(M=M||this.ngModule)?function av(u,f){return{get:(v,y,M)=>{const S=u.get(v,Sc,M);return S!==Sc||y===Sc?S:f.get(v,y,M)}}}(f,M.injector):f,B=S.get(cf,ee),re=S.get(tv,null),ve=B.createRenderer(null,this.componentDef),et=this.componentDef.selectors[0][0]||"div",dt=y?function Vu(u,f,v){if(Ct(u))return u.selectRootElement(f,v===t.ShadowDom);let y="string"==typeof f?u.querySelector(f):f;return y.textContent="",y}(ve,y,this.componentDef.encapsulation):dl(B.createRenderer(null,this.componentDef),et,function rv(u){const f=u.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(et)),wt=this.componentDef.onPush?576:528,Nt=function _h(u,f){return{components:[],scheduler:u||qd,clean:dA,playerHandler:f||null,flags:0}}(),zt=lo(0,null,null,1,0,null,null,null,null,null),Kt=Ma(null,zt,Nt,wt,null,null,B,ve,re,S);let li,fi;qt(Kt);try{const Ci=function mh(u,f,v,y,M,S){const B=v[1];v[20]=u;const ve=Bs(B,20,2,"#host",null),et=ve.mergedAttrs=f.hostAttrs;null!==et&&(uo(ve,et,!0),null!==u&&(Cs(M,u,et),null!==ve.classes&&gl(M,u,ve.classes),null!==ve.styles&&gu(M,u,ve.styles)));const dt=y.createRenderer(u,f),wt=Ma(v,ku(f),null,f.onPush?64:16,v[20],ve,y,dt,S||null,null);return B.firstCreatePass&&(on(Ai(ve,v),B,f.type),zu(B,ve),Wu(ve,v.length,1)),co(v,wt),v[20]=wt}(dt,this.componentDef,Kt,B,ve);if(dt)if(y)Cs(ve,dt,["ng-version",iv.full]);else{const{attrs:ei,classes:Mi}=function w_(u){const f=[],v=[];let y=1,M=2;for(;y0&&gl(ve,dt,Mi.join(" "))}if(fi=di(zt,20),void 0!==v){const ei=fi.projection=[];for(let Mi=0;Mive(B,f)),f.contentQueries){const ve=gi();f.contentQueries(1,B,ve.directiveStart)}const re=gi();return!S.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(Bi(re.index),Zu(v[1],re,0,re.directiveStart,re.directiveEnd,f),Gu(f,B)),B}(Ci,this.componentDef,Kt,Nt,[RA]),Sa(zt,Kt,null)}finally{Gi()}return new lv(this.componentType,li,ta(fi,Kt),Kt,fi)}}class lv extends class YC{}{constructor(f,v,y,M,S){super(),this.location=y,this._rootLView=M,this._tNode=S,this.instance=v,this.hostView=this.changeDetectorRef=new nv(M),this.componentType=f}get injector(){return new ys(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class ia{}class pf{}const na=new Map;class gf extends ia{constructor(f,v){super(),this._parent=v,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new uf(this);const y=mi(f);this._bootstrapComponents=Vr(y.bootstrap),this._r3Injector=rh(f,v,[{provide:ia,useValue:this},{provide:Na,useValue:this.componentFactoryResolver}],C(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,v=Er.THROW_IF_NOT_FOUND,y=Qe.Default){return f===Er||f===ia||f===Nl?this:this._r3Injector.get(f,v,y)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(v=>v()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Rc extends pf{constructor(f){super(),this.moduleType=f,null!==mi(f)&&function dv(u){const f=new Set;!function v(y){const M=mi(y,!0),S=M.id;null!==S&&(function ff(u,f,v){if(f&&f!==v)throw new Error(`Duplicate module registered for ${u} - ${C(f)} vs ${C(f.name)}`)}(S,na.get(S),y),na.set(S,y));const B=Vr(M.imports);for(const re of B)f.has(re)||(f.add(re),v(re))}(u)}(f)}create(f){return new gf(this.moduleType,f)}}function _f(u,f,v){const y=mn()+u,M=Xt();return M[y]===ki?jr(M,y,v?f.call(v):f()):function Ia(u,f){return u[f]}(M,y)}function Af(u,f,v,y){return vf(Xt(),mn(),u,f,v,y)}function bf(u,f,v,y,M){return Tf(Xt(),mn(),u,f,v,y,M)}function Cf(u,f,v,y,M,S){return Ef(Xt(),mn(),u,f,v,y,M,S)}function Ua(u,f){const v=u[f];return v===ki?void 0:v}function vf(u,f,v,y,M,S){const B=f+v;return Jn(u,B,M)?jr(u,B+1,S?y.call(S,M):y(M)):Ua(u,B+1)}function Tf(u,f,v,y,M,S,B){const re=f+v;return hs(u,re,M,S)?jr(u,re+2,B?y.call(B,M,S):y(M,S)):Ua(u,re+2)}function Ef(u,f,v,y,M,S,B,re){const ve=f+v;return po(u,ve,M,S,B)?jr(u,ve+3,re?y.call(re,M,S,B):y(M,S,B)):Ua(u,ve+3)}function xf(u,f){const v=si();let y;const M=u+20;v.firstCreatePass?(y=function _v(u,f){if(f)for(let v=f.length-1;v>=0;v--){const y=f[v];if(u===y.name)return y}}(f,v.pipeRegistry),v.data[M]=y,y.onDestroy&&(v.destroyHooks||(v.destroyHooks=[])).push(M,y.onDestroy)):y=v.data[M];const S=y.factory||(y.factory=En(y.type)),B=ae(Pa);try{const re=Fe(!1),ve=S();return Fe(re),function jA(u,f,v,y){v>=u.data.length&&(u.data[v]=null,u.blueprint[v]=null),f[v]=y}(v,Xt(),M,ve),ve}finally{ae(B)}}function Mf(u,f,v){const y=u+20,M=Xt(),S=ui(M,y);return ja(M,y)?vf(M,mn(),f,S.transform,v,S):S.transform(v)}function Sf(u,f,v,y){const M=u+20,S=Xt(),B=ui(S,M);return ja(S,M)?Tf(S,mn(),f,B.transform,v,y,B):B.transform(v,y)}function Df(u,f,v,y,M){const S=u+20,B=Xt(),re=ui(B,S);return ja(B,S)?Ef(B,mn(),f,re.transform,v,y,M,re):re.transform(v,y,M)}function ja(u,f){return u[1].data[f].pure}function Ic(u){return f=>{setTimeout(u,void 0,f)}}const zr=class Cv extends e.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,v,y){var M,S,B;let re=f,ve=v||(()=>null),et=y;if(f&&"object"==typeof f){const wt=f;re=null===(M=wt.next)||void 0===M?void 0:M.bind(wt),ve=null===(S=wt.error)||void 0===S?void 0:S.bind(wt),et=null===(B=wt.complete)||void 0===B?void 0:B.bind(wt)}this.__isAsync&&(ve=Ic(ve),re&&(re=Ic(re)),et&&(et=Ic(et)));const dt=super.subscribe({next:re,error:ve,complete:et});return f instanceof b.w&&f.add(dt),dt}};function vv(){return this._results[Us()]()}class yo{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const v=Us(),y=yo.prototype;y[v]||(y[v]=vv)}get changes(){return this._changes||(this._changes=new zr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,v){return this._results.reduce(f,v)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,v){const y=this;y.dirty=!1;const M=Tr(f);(this._changesDetected=!function Lm(u,f,v){if(u.length!==f.length)return!1;for(let y=0;y{class u{}return u.__NG_ELEMENT_ID__=yv,u})();const Tv=Za,Ev=class extends Tv{constructor(f,v,y){super(),this._declarationLView=f,this._declarationTContainer=v,this.elementRef=y}createEmbeddedView(f){const v=this._declarationTContainer.tViews,y=Ma(this._declarationLView,v,f,16,null,v.declTNode,null,null,null,null);y[17]=this._declarationLView[this._declarationTContainer.index];const S=this._declarationLView[19];return null!==S&&(y[19]=S.createEmbeddedView(v)),Sa(v,y,f),new Fa(y)}};function yv(){return wo(gi(),Xt())}function wo(u,f){return 4&u.type?new Ev(f,u,ta(u,f)):null}let xo=(()=>{class u{}return u.__NG_ELEMENT_ID__=wv,u})();function wv(){return Pf(gi(),Xt())}const xv=xo,Rf=class extends xv{constructor(f,v,y){super(),this._lContainer=f,this._hostTNode=v,this._hostLView=y}get element(){return ta(this._hostTNode,this._hostLView)}get injector(){return new ys(this._hostTNode,this._hostLView)}get parentInjector(){const f=nn(this._hostTNode,this._hostLView);if(qa(f)){const v=se(f,this._hostLView),y=as(f);return new ys(v[1].data[y+8],v)}return new ys(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const v=If(this._lContainer);return null!==v&&v[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,v,y){const M=f.createEmbeddedView(v||{});return this.insert(M,y),M}createComponent(f,v,y,M,S){const B=f&&!function pa(u){return"function"==typeof u}(f);let re;if(B)re=v;else{const wt=v||{};re=wt.index,y=wt.injector,M=wt.projectableNodes,S=wt.ngModuleRef}const ve=B?f:new Dc(Bt(f)),et=y||this.parentInjector;if(!S&&null==ve.ngModule&&et){const wt=et.get(ia,null);wt&&(S=wt)}const dt=ve.create(et,M,void 0,S);return this.insert(dt.hostView,re),dt}insert(f,v){const y=f._lView,M=y[1];if(function Ne(u){return an(u[3])}(y)){const dt=this.indexOf(f);if(-1!==dt)this.detach(dt);else{const wt=y[3],Nt=new Rf(wt,wt[6],wt[3]);Nt.detach(Nt.indexOf(f))}}const S=this._adjustIndex(v),B=this._lContainer;!function a_(u,f,v,y){const M=10+y,S=v.length;y>0&&(v[M-1][4]=f),y0)y.push(B[re/2]);else{const et=S[re+1],dt=f[-ve];for(let wt=10;wt{class u{constructor(v){this.appInits=v,this.resolve=Do,this.reject=Do,this.initialized=!1,this.done=!1,this.donePromise=new Promise((y,M)=>{this.resolve=y,this.reject=M})}runInitializers(){if(this.initialized)return;const v=[],y=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let M=0;M{S.subscribe({complete:re,error:ve})});v.push(B)}}Promise.all(v).then(()=>{y()}).catch(M=>{this.reject(M)}),0===v.length&&y(),this.initialized=!0}}return u.\u0275fac=function(v){return new(v||u)(Fn(Zc,8))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const sm=new Dn("AppId"),Kv={provide:sm,useFactory:function $v(){return`${Gc()}${Gc()}${Gc()}`},deps:[]};function Gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const am=new Dn("Platform Initializer"),om=new Dn("Platform ID"),lm=new Dn("appBootstrapListener");let cm=(()=>{class u{log(v){console.log(v)}warn(v){console.warn(v)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const Ro=new Dn("LocaleId"),dm=new Dn("DefaultCurrencyCode");class Xv{constructor(f,v){this.ngModuleFactory=f,this.componentFactories=v}}let zc=(()=>{class u{compileModuleSync(v){return new Rc(v)}compileModuleAsync(v){return Promise.resolve(this.compileModuleSync(v))}compileModuleAndAllComponentsSync(v){const y=this.compileModuleSync(v),S=Vr(mi(v).declarations).reduce((B,re)=>{const ve=Bt(re);return ve&&B.push(new Dc(ve)),B},[]);return new Xv(y,S)}compileModuleAndAllComponentsAsync(v){return Promise.resolve(this.compileModuleAndAllComponentsSync(v))}clearCache(){}clearCacheFor(v){}getModuleId(v){}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();const tT=(()=>Promise.resolve(0))();function Wc(u){"undefined"==typeof Zone?tT.then(()=>{u&&u.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",u)}class _r{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:v=!1,shouldCoalesceRunChangeDetection:y=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new zr(!1),this.onMicrotaskEmpty=new zr(!1),this.onStable=new zr(!1),this.onError=new zr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const M=this;M._nesting=0,M._outer=M._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(M._inner=M._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(M._inner=M._inner.fork(Zone.longStackTraceZoneSpec)),M.shouldCoalesceEventChangeDetection=!y&&v,M.shouldCoalesceRunChangeDetection=y,M.lastRequestAnimationFrameId=-1,M.nativeRequestAnimationFrame=function iT(){let u=x.requestAnimationFrame,f=x.cancelAnimationFrame;if("undefined"!=typeof Zone&&u&&f){const v=u[Zone.__symbol__("OriginalDelegate")];v&&(u=v);const y=f[Zone.__symbol__("OriginalDelegate")];y&&(f=y)}return{nativeRequestAnimationFrame:u,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function sT(u){const f=()=>{!function rT(u){u.isCheckStableRunning||-1!==u.lastRequestAnimationFrameId||(u.lastRequestAnimationFrameId=u.nativeRequestAnimationFrame.call(x,()=>{u.fakeTopEventTask||(u.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{u.lastRequestAnimationFrameId=-1,qc(u),u.isCheckStableRunning=!0,Yc(u),u.isCheckStableRunning=!1},void 0,()=>{},()=>{})),u.fakeTopEventTask.invoke()}),qc(u))}(u)};u._inner=u._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(v,y,M,S,B,re)=>{try{return um(u),v.invokeTask(M,S,B,re)}finally{(u.shouldCoalesceEventChangeDetection&&"eventTask"===S.type||u.shouldCoalesceRunChangeDetection)&&f(),hm(u)}},onInvoke:(v,y,M,S,B,re,ve)=>{try{return um(u),v.invoke(M,S,B,re,ve)}finally{u.shouldCoalesceRunChangeDetection&&f(),hm(u)}},onHasTask:(v,y,M,S)=>{v.hasTask(M,S),y===M&&("microTask"==S.change?(u._hasPendingMicrotasks=S.microTask,qc(u),Yc(u)):"macroTask"==S.change&&(u.hasPendingMacrotasks=S.macroTask))},onHandleError:(v,y,M,S)=>(v.handleError(M,S),u.runOutsideAngular(()=>u.onError.emit(S)),!1)})}(M)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_r.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,v,y){return this._inner.run(f,v,y)}runTask(f,v,y,M){const S=this._inner,B=S.scheduleEventTask("NgZoneEvent: "+M,f,nT,Do,Do);try{return S.runTask(B,v,y)}finally{S.cancelTask(B)}}runGuarded(f,v,y){return this._inner.runGuarded(f,v,y)}runOutsideAngular(f){return this._outer.run(f)}}const nT={};function Yc(u){if(0==u._nesting&&!u.hasPendingMicrotasks&&!u.isStable)try{u._nesting++,u.onMicrotaskEmpty.emit(null)}finally{if(u._nesting--,!u.hasPendingMicrotasks)try{u.runOutsideAngular(()=>u.onStable.emit(null))}finally{u.isStable=!0}}}function qc(u){u.hasPendingMicrotasks=!!(u._hasPendingMicrotasks||(u.shouldCoalesceEventChangeDetection||u.shouldCoalesceRunChangeDetection)&&-1!==u.lastRequestAnimationFrameId)}function um(u){u._nesting++,u.isStable&&(u.isStable=!1,u.onUnstable.emit(null))}function hm(u){u._nesting--,Yc(u)}class aT{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new zr,this.onMicrotaskEmpty=new zr,this.onStable=new zr,this.onError=new zr}run(f,v,y){return f.apply(v,y)}runGuarded(f,v,y){return f.apply(v,y)}runOutsideAngular(f){return f()}runTask(f,v,y,M){return f.apply(v,y)}}let pm=(()=>{class u{constructor(v){this._ngZone=v,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),v.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{_r.assertNotInAngularZone(),Wc(()=>{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())Wc(()=>{for(;0!==this._callbacks.length;){let v=this._callbacks.pop();clearTimeout(v.timeoutId),v.doneCb(this._didWork)}this._didWork=!1});else{let v=this.getPendingTasks();this._callbacks=this._callbacks.filter(y=>!y.updateCb||!y.updateCb(v)||(clearTimeout(y.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(v=>({source:v.source,creationLocation:v.creationLocation,data:v.data})):[]}addCallback(v,y,M){let S=-1;y&&y>0&&(S=setTimeout(()=>{this._callbacks=this._callbacks.filter(B=>B.timeoutId!==S),v(this._didWork,this.getPendingTasks())},y)),this._callbacks.push({doneCb:v,timeoutId:S,updateCb:M})}whenStable(v,y,M){if(M&&!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(v,y,M),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(v,y,M){return[]}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})(),fm=(()=>{class u{constructor(){this._applications=new Map,Jc.addToWindow(this)}registerApplication(v,y){this._applications.set(v,y)}unregisterApplication(v){this._applications.delete(v)}unregisterAllApplications(){this._applications.clear()}getTestability(v){return this._applications.get(v)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(v,y=!0){return Jc.findTestabilityInTree(this,v,y)}}return u.\u0275fac=function(v){return new(v||u)},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();class oT{addToWindow(f){}findTestabilityInTree(f,v,y){return null}}function lT(u){Jc=u}let Hr,Jc=new oT;const mm=new Dn("AllowMultipleToken");class uT{constructor(f,v){this.name=f,this.token=v}}function gm(u,f,v=[]){const y=`Platform: ${f}`,M=new Dn(y);return(S=[])=>{let B=_m();if(!B||B.injector.get(mm,!1))if(u)u(v.concat(S).concat({provide:M,useValue:!0}));else{const re=v.concat(S).concat({provide:M,useValue:!0},{provide:Vl,useValue:"platform"});!function hT(u){if(Hr&&!Hr.destroyed&&!Hr.injector.get(mm,!1))throw new ne(400,"");Hr=u.get(Am);const f=u.get(am,null);f&&f.forEach(v=>v())}(Er.create({providers:re,name:y}))}return function pT(u){const f=_m();if(!f)throw new ne(401,"");return f}()}}function _m(){return Hr&&!Hr.destroyed?Hr:null}let Am=(()=>{class u{constructor(v){this._injector=v,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(v,y){const re=function fT(u,f){let v;return v="noop"===u?new aT:("zone.js"===u?void 0:u)||new _r({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),v}(y?y.ngZone:void 0,{ngZoneEventCoalescing:y&&y.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:y&&y.ngZoneRunCoalescing||!1}),ve=[{provide:_r,useValue:re}];return re.run(()=>{const et=Er.create({providers:ve,parent:this.injector,name:v.moduleType.name}),dt=v.create(et),wt=dt.injector.get(ya,null);if(!wt)throw new ne(402,"");return re.runOutsideAngular(()=>{const Nt=re.onError.subscribe({next:zt=>{wt.handleError(zt)}});dt.onDestroy(()=>{Qc(this._modules,dt),Nt.unsubscribe()})}),function mT(u,f,v){try{const y=v();return sc(y)?y.catch(M=>{throw f.runOutsideAngular(()=>u.handleError(M)),M}):y}catch(y){throw f.runOutsideAngular(()=>u.handleError(y)),y}}(wt,re,()=>{const Nt=dt.injector.get(sa);return Nt.runInitializers(),Nt.donePromise.then(()=>(function Kb(u){R(u,"Expected localeId to be defined"),"string"==typeof u&&(Hp=u.toLowerCase().replace(/_/g,"-"))}(dt.injector.get(Ro,Ao)||Ao),this._moduleDoBootstrap(dt),dt))})})}bootstrapModule(v,y=[]){const M=bm({},y);return function cT(u,f,v){const y=new Rc(v);return Promise.resolve(y)}(0,0,v).then(S=>this.bootstrapModuleFactory(S,M))}_moduleDoBootstrap(v){const y=v.injector.get(za);if(v._bootstrapComponents.length>0)v._bootstrapComponents.forEach(M=>y.bootstrap(M));else{if(!v.instance.ngDoBootstrap)throw new ne(403,"");v.instance.ngDoBootstrap(y)}this._modules.push(v)}onDestroy(v){this._destroyListeners.push(v)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(v=>v.destroy()),this._destroyListeners.forEach(v=>v()),this._destroyed=!0}get destroyed(){return this._destroyed}}return u.\u0275fac=function(v){return new(v||u)(Fn(Er))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function bm(u,f){return Array.isArray(f)?f.reduce(bm,u):Object.assign(Object.assign({},u),f)}let za=(()=>{class u{constructor(v,y,M,S,B){this._zone=v,this._injector=y,this._exceptionHandler=M,this._componentFactoryResolver=S,this._initStatus=B,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const re=new _.y(et=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{et.next(this._stable),et.complete()})}),ve=new _.y(et=>{let dt;this._zone.runOutsideAngular(()=>{dt=this._zone.onStable.subscribe(()=>{_r.assertNotInAngularZone(),Wc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,et.next(!0))})})});const wt=this._zone.onUnstable.subscribe(()=>{_r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{et.next(!1)}))});return()=>{dt.unsubscribe(),wt.unsubscribe()}});this.isStable=(0,w.T)(re,ve.pipe((0,g.B)()))}bootstrap(v,y){if(!this._initStatus.done)throw new ne(405,"");let M;M=v instanceof of?v:this._componentFactoryResolver.resolveComponentFactory(v),this.componentTypes.push(M.componentType);const S=function dT(u){return u.isBoundToModule}(M)?void 0:this._injector.get(ia),re=M.create(Er.NULL,[],y||M.selector,S),ve=re.location.nativeElement,et=re.injector.get(pm,null),dt=et&&re.injector.get(fm);return et&&dt&&dt.registerApplication(ve,et),re.onDestroy(()=>{this.detachView(re.hostView),Qc(this.components,re),dt&&dt.unregisterApplication(ve)}),this._loadComponent(re),re}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let v of this._views)v.detectChanges()}catch(v){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(v))}finally{this._runningTick=!1}}attachView(v){const y=v;this._views.push(y),y.attachToAppRef(this)}detachView(v){const y=v;Qc(this._views,y),y.detachFromAppRef()}_loadComponent(v){this.attachView(v.hostView),this.tick(),this.components.push(v),this._injector.get(lm,[]).concat(this._bootstrapListeners).forEach(M=>M(v))}ngOnDestroy(){this._views.slice().forEach(v=>v.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return u.\u0275fac=function(v){return new(v||u)(Fn(_r),Fn(Er),Fn(ya),Fn(Na),Fn(sa))},u.\u0275prov=Se({token:u,factory:u.\u0275fac}),u})();function Qc(u,f){const v=u.indexOf(f);v>-1&&u.splice(v,1)}let vm=!0;function _T(){vm=!1}let AT=(()=>{class u{}return u.__NG_ELEMENT_ID__=bT,u})();function bT(u){return function CT(u,f,v){if(wn(u)&&!v){const y=_i(u.index,f);return new Fa(y,y)}return 47&u.type?new Fa(f[16],f):null}(gi(),Xt(),16==(16&u))}class xm{constructor(){}supports(f){return Ra(f)}create(f){return new xT(f)}}const wT=(u,f)=>f;class xT{constructor(f){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=f||wT}forEachItem(f){let v;for(v=this._itHead;null!==v;v=v._next)f(v)}forEachOperation(f){let v=this._itHead,y=this._removalsHead,M=0,S=null;for(;v||y;){const B=!y||v&&v.currentIndex{B=this._trackByFn(M,re),null!==v&&Object.is(v.trackById,B)?(y&&(v=this._verifyReinsertion(v,re,B,M)),Object.is(v.item,re)||this._addIdentityChange(v,re)):(v=this._mismatch(v,re,B,M),y=!0),v=v._next,M++}),this.length=M;return this._truncate(v),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,v,y,M){let S;return null===f?S=this._itTail:(S=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._reinsertAfter(f,S,M)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(y,M))?(Object.is(f.item,v)||this._addIdentityChange(f,v),this._moveAfter(f,S,M)):f=this._addAfter(new MT(v,y),S,M),f}_verifyReinsertion(f,v,y,M){let S=null===this._unlinkedRecords?null:this._unlinkedRecords.get(y,null);return null!==S?f=this._reinsertAfter(S,f._prev,M):f.currentIndex!=M&&(f.currentIndex=M,this._addToMoves(f,M)),f}_truncate(f){for(;null!==f;){const v=f._next;this._addToRemovals(this._unlink(f)),f=v}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(f,v,y){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const M=f._prevRemoved,S=f._nextRemoved;return null===M?this._removalsHead=S:M._nextRemoved=S,null===S?this._removalsTail=M:S._prevRemoved=M,this._insertAfter(f,v,y),this._addToMoves(f,y),f}_moveAfter(f,v,y){return this._unlink(f),this._insertAfter(f,v,y),this._addToMoves(f,y),f}_addAfter(f,v,y){return this._insertAfter(f,v,y),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,v,y){const M=null===v?this._itHead:v._next;return f._next=M,f._prev=v,null===M?this._itTail=f:M._prev=f,null===v?this._itHead=f:v._next=f,null===this._linkedRecords&&(this._linkedRecords=new Mm),this._linkedRecords.put(f),f.currentIndex=y,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const v=f._prev,y=f._next;return null===v?this._itHead=y:v._next=y,null===y?this._itTail=v:y._prev=v,f}_addToMoves(f,v){return f.previousIndex===v||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Mm),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,v){return f.item=v,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class MT{constructor(f,v){this.item=f,this.trackById=v,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 ST{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,v){let y;for(y=this._head;null!==y;y=y._nextDup)if((null===v||v<=y.currentIndex)&&Object.is(y.trackById,f))return y;return null}remove(f){const v=f._prevDup,y=f._nextDup;return null===v?this._head=y:v._nextDup=y,null===y?this._tail=v:y._prevDup=v,null===this._head}}class Mm{constructor(){this.map=new Map}put(f){const v=f.trackById;let y=this.map.get(v);y||(y=new ST,this.map.set(v,y)),y.add(f)}get(f,v){const M=this.map.get(f);return M?M.get(f,v):null}remove(f){const v=f.trackById;return this.map.get(v).remove(f)&&this.map.delete(v),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sm(u,f,v){const y=u.previousIndex;if(null===y)return y;let M=0;return v&&y{if(v&&v.key===M)this._maybeAddToChanges(v,y),this._appendAfter=v,v=v._next;else{const S=this._getOrCreateRecordForKey(M,y);v=this._insertBeforeOrAppend(v,S)}}),v){v._prev&&(v._prev._next=null),this._removalsHead=v;for(let y=v;null!==y;y=y._nextRemoved)y===this._mapHead&&(this._mapHead=null),this._records.delete(y.key),y._nextRemoved=y._next,y.previousValue=y.currentValue,y.currentValue=null,y._prev=null,y._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,v){if(f){const y=f._prev;return v._next=f,v._prev=y,f._prev=v,y&&(y._next=v),f===this._mapHead&&(this._mapHead=v),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=v,v._prev=this._appendAfter):this._mapHead=v,this._appendAfter=v,null}_getOrCreateRecordForKey(f,v){if(this._records.has(f)){const M=this._records.get(f);this._maybeAddToChanges(M,v);const S=M._prev,B=M._next;return S&&(S._next=B),B&&(B._prev=S),M._next=null,M._prev=null,M}const y=new RT(f);return this._records.set(f,y),y.currentValue=v,this._addToAdditions(y),y}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,v){Object.is(v,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=v,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,v){f instanceof Map?f.forEach(v):Object.keys(f).forEach(y=>v(f[y],y))}}class RT{constructor(f){this.key=f,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 Rm(){return new Oo([new xm])}let Oo=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(null!=y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Rm()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(M=>M.supports(v));if(null!=y)return y;throw new ne(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Rm}),u})();function Im(){return new Ho([new Dm])}let Ho=(()=>{class u{constructor(v){this.factories=v}static create(v,y){if(y){const M=y.factories.slice();v=v.concat(M)}return new u(v)}static extend(v){return{provide:u,useFactory:y=>u.create(v,y||Im()),deps:[[u,new Rs,new cs]]}}find(v){const y=this.factories.find(S=>S.supports(v));if(y)return y;throw new ne(901,"")}}return u.\u0275prov=Se({token:u,providedIn:"root",factory:Im}),u})();const IT=[new Dm],OT=new Oo([new xm]),HT=new Ho(IT),LT=gm(null,"core",[{provide:om,useValue:"unknown"},{provide:Am,deps:[Er]},{provide:fm,deps:[]},{provide:cm,deps:[]}]),FT=[{provide:za,useClass:za,deps:[_r,Er,ya,Na,sa]},{provide:sv,deps:[_r],useFactory:function UT(u){let f=[];return u.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(v){f.push(v)}}},{provide:sa,useClass:sa,deps:[[new cs,Zc]]},{provide:zc,useClass:zc,deps:[]},Kv,{provide:Oo,useFactory:function BT(){return OT},deps:[]},{provide:Ho,useFactory:function kT(){return HT},deps:[]},{provide:Ro,useFactory:function NT(u){return u||function VT(){return"undefined"!=typeof $localize&&$localize.locale||Ao}()},deps:[[new Aa(Ro),new cs,new Rs]]},{provide:dm,useValue:"USD"}];let jT=(()=>{class u{constructor(v){}}return u.\u0275fac=function(v){return new(v||u)(Fn(za))},u.\u0275mod=xt({type:u}),u.\u0275inj=Je({providers:FT}),u})()},93075:($e,_e,p)=>{"use strict";p.d(_e,{Zs:()=>N,Fj:()=>G,qu:()=>Ti,NI:()=>Dt,oH:()=>qe,u:()=>Vn,sg:()=>jt,u5:()=>di,Cf:()=>J,JU:()=>C,a5:()=>Q,JJ:()=>Qe,JL:()=>Te,F:()=>$i,On:()=>an,YN:()=>Zn,wV:()=>xn,c5:()=>tt,UX:()=>ui,Q7:()=>ft,EJ:()=>rr,kI:()=>Re,_Y:()=>dn,Kr:()=>ar});var e=p(5e3),b=p(69808),_=p(5254),w=p(30567),g=p(24850);let A=(()=>{class Ne{constructor(we,ut){this._renderer=we,this._elementRef=ut,this.onChange=Zt=>{},this.onTouched=()=>{}}setProperty(we,ut){this._renderer.setProperty(this._elementRef.nativeElement,we,ut)}registerOnTouched(we){this.onTouched=we}registerOnChange(we){this.onChange=we}setDisabledState(we){this.setProperty("disabled",we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.Qsj),e.Y36(e.SBq))},Ne.\u0275dir=e.lG2({type:Ne}),Ne})(),E=(()=>{class Ne extends A{}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,features:[e.qOj]}),Ne})();const C=new e.OlP("NgValueAccessor"),m={provide:C,useExisting:(0,e.Gpc)(()=>G),multi:!0},O=new e.OlP("CompositionEventMode");let G=(()=>{class Ne extends A{constructor(we,ut,Zt){super(we,ut),this._compositionMode=Zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function L(){const Ne=(0,b.q)()?(0,b.q)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(we){this.setProperty("value",null==we?"":we)}_handleInput(we){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(we)}_compositionStart(){this._composing=!0}_compositionEnd(we){this._composing=!1,this._compositionMode&&this.onChange(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(O,8))},Ne.\u0275dir=e.lG2({type:Ne,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(we,ut){1&we&&e.NdJ("input",function(hi){return ut._handleInput(hi.target.value)})("blur",function(){return ut.onTouched()})("compositionstart",function(){return ut._compositionStart()})("compositionend",function(hi){return ut._compositionEnd(hi.target.value)})},features:[e._Bn([m]),e.qOj]}),Ne})();function ne(Ne){return null==Ne||0===Ne.length}function ge(Ne){return null!=Ne&&"number"==typeof Ne.length}const J=new e.OlP("NgValidators"),Me=new e.OlP("NgAsyncValidators"),oe=/^(?=.{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 Re{static min(De){return function T(Ne){return De=>{if(ne(De.value)||ne(Ne))return null;const we=parseFloat(De.value);return!isNaN(we)&&we{if(ne(De.value)||ne(Ne))return null;const we=parseFloat(De.value);return!isNaN(we)&&we>Ne?{max:{max:Ne,actual:De.value}}:null}}(De)}static required(De){return Y(De)}static requiredTrue(De){return q(De)}static email(De){return function te(Ne){return ne(Ne.value)||oe.test(Ne.value)?null:{email:!0}}(De)}static minLength(De){return function ue(Ne){return De=>ne(De.value)||!ge(De.value)?null:De.value.lengthge(De.value)&&De.value.length>Ne?{maxlength:{requiredLength:Ne,actualLength:De.value.length}}:null}(De)}static pattern(De){return Le(De)}static nullValidator(De){return null}static compose(De){return R(De)}static composeAsync(De){return be(De)}}function Y(Ne){return ne(Ne.value)?{required:!0}:null}function q(Ne){return!0===Ne.value?null:{required:!0}}function Le(Ne){if(!Ne)return Ue;let De,we;return"string"==typeof Ne?(we="","^"!==Ne.charAt(0)&&(we+="^"),we+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(we+="$"),De=new RegExp(we)):(we=Ne.toString(),De=Ne),ut=>{if(ne(ut.value))return null;const Zt=ut.value;return De.test(Zt)?null:{pattern:{requiredPattern:we,actualValue:Zt}}}}function Ue(Ne){return null}function ze(Ne){return null!=Ne}function le(Ne){const De=(0,e.QGY)(Ne)?(0,_.D)(Ne):Ne;return(0,e.CqO)(De),De}function je(Ne){let De={};return Ne.forEach(we=>{De=null!=we?Object.assign(Object.assign({},De),we):De}),0===Object.keys(De).length?null:De}function ye(Ne,De){return De.map(we=>we(Ne))}function W(Ne){return Ne.map(De=>function Be(Ne){return!Ne.validate}(De)?De:we=>De.validate(we))}function R(Ne){if(!Ne)return null;const De=Ne.filter(ze);return 0==De.length?null:function(we){return je(ye(we,De))}}function me(Ne){return null!=Ne?R(W(Ne)):null}function be(Ne){if(!Ne)return null;const De=Ne.filter(ze);return 0==De.length?null:function(we){const ut=ye(we,De).map(le);return(0,w.D)(ut).pipe((0,g.U)(je))}}function Ie(Ne){return null!=Ne?be(W(Ne)):null}function pe(Ne,De){return null===Ne?[De]:Array.isArray(Ne)?[...Ne,De]:[Ne,De]}function Se(Ne){return Ne._rawValidators}function Xe(Ne){return Ne._rawAsyncValidators}function Je(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function nt(Ne,De){return Array.isArray(Ne)?Ne.includes(De):Ne===De}function Ve(Ne,De){const we=Je(De);return Je(Ne).forEach(Zt=>{nt(we,Zt)||we.push(Zt)}),we}function X(Ne,De){return Je(De).filter(we=>!nt(Ne,we))}class z{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(De){this._rawValidators=De||[],this._composedValidatorFn=me(this._rawValidators)}_setAsyncValidators(De){this._rawAsyncValidators=De||[],this._composedAsyncValidatorFn=Ie(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(De){this._onDestroyCallbacks.push(De)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(De=>De()),this._onDestroyCallbacks=[]}reset(De){this.control&&this.control.reset(De)}hasError(De,we){return!!this.control&&this.control.hasError(De,we)}getError(De,we){return this.control?this.control.getError(De,we):null}}class Q extends z{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D extends z{get formDirective(){return null}get path(){return null}}class H{constructor(De){this._cd=De}is(De){var we,ut,Zt;return"submitted"===De?!!(null===(we=this._cd)||void 0===we?void 0:we.submitted):!!(null===(Zt=null===(ut=this._cd)||void 0===ut?void 0:ut.control)||void 0===Zt?void 0:Zt[De])}}let Qe=(()=>{class Ne extends H{constructor(we){super(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(Q,2))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(we,ut){2&we&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))},features:[e.qOj]}),Ne})(),Te=(()=>{class Ne extends H{constructor(we){super(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(we,ut){2&we&&e.ekj("ng-untouched",ut.is("untouched"))("ng-touched",ut.is("touched"))("ng-pristine",ut.is("pristine"))("ng-dirty",ut.is("dirty"))("ng-valid",ut.is("valid"))("ng-invalid",ut.is("invalid"))("ng-pending",ut.is("pending"))("ng-submitted",ut.is("submitted"))},features:[e.qOj]}),Ne})();function Ht(Ne,De){return[...De.path,Ne]}function lt(Ne,De){Ee(Ne,De),De.valueAccessor.writeValue(Ne.value),function U(Ne,De){De.valueAccessor.registerOnChange(we=>{Ne._pendingValue=we,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&ie(Ne,De)})}(Ne,De),function ce(Ne,De){const we=(ut,Zt)=>{De.valueAccessor.writeValue(ut),Zt&&De.viewToModelUpdate(ut)};Ne.registerOnChange(we),De._registerOnDestroy(()=>{Ne._unregisterOnChange(we)})}(Ne,De),function k(Ne,De){De.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&ie(Ne,De),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,De),function Lt(Ne,De){if(De.valueAccessor.setDisabledState){const we=ut=>{De.valueAccessor.setDisabledState(ut)};Ne.registerOnDisabledChange(we),De._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(we)})}}(Ne,De)}function Ut(Ne,De,we=!0){const ut=()=>{};De.valueAccessor&&(De.valueAccessor.registerOnChange(ut),De.valueAccessor.registerOnTouched(ut)),Ge(Ne,De),Ne&&(De._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function mt(Ne,De){Ne.forEach(we=>{we.registerOnValidatorChange&&we.registerOnValidatorChange(De)})}function Ee(Ne,De){const we=Se(Ne);null!==De.validator?Ne.setValidators(pe(we,De.validator)):"function"==typeof we&&Ne.setValidators([we]);const ut=Xe(Ne);null!==De.asyncValidator?Ne.setAsyncValidators(pe(ut,De.asyncValidator)):"function"==typeof ut&&Ne.setAsyncValidators([ut]);const Zt=()=>Ne.updateValueAndValidity();mt(De._rawValidators,Zt),mt(De._rawAsyncValidators,Zt)}function Ge(Ne,De){let we=!1;if(null!==Ne){if(null!==De.validator){const Zt=Se(Ne);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==De.validator);hi.length!==Zt.length&&(we=!0,Ne.setValidators(hi))}}if(null!==De.asyncValidator){const Zt=Xe(Ne);if(Array.isArray(Zt)&&Zt.length>0){const hi=Zt.filter(ji=>ji!==De.asyncValidator);hi.length!==Zt.length&&(we=!0,Ne.setAsyncValidators(hi))}}}const ut=()=>{};return mt(De._rawValidators,ut),mt(De._rawAsyncValidators,ut),we}function ie(Ne,De){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),De.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function He(Ne,De){Ee(Ne,De)}function Yt(Ne,De){if(!Ne.hasOwnProperty("model"))return!1;const we=Ne.model;return!!we.isFirstChange()||!Object.is(De,we.currentValue)}function Rt(Ne,De){Ne._syncPendingControls(),De.forEach(we=>{const ut=we.control;"submit"===ut.updateOn&&ut._pendingChange&&(we.viewToModelUpdate(ut._pendingValue),ut._pendingChange=!1)})}function Et(Ne,De){if(!De)return null;let we,ut,Zt;return Array.isArray(De),De.forEach(hi=>{hi.constructor===G?we=hi:function It(Ne){return Object.getPrototypeOf(Ne.constructor)===E}(hi)?ut=hi:Zt=hi}),Zt||ut||we||null}function Bt(Ne,De){const we=Ne.indexOf(De);we>-1&&Ne.splice(we,1)}const mi="VALID",bi="INVALID",yi="PENDING",Wi="DISABLED";function cn(Ne){return(st(Ne)?Ne.validators:Ne)||null}function Ki(Ne){return Array.isArray(Ne)?me(Ne):Ne||null}function Tn(Ne,De){return(st(De)?De.asyncValidators:Ne)||null}function rn(Ne){return Array.isArray(Ne)?Ie(Ne):Ne||null}function st(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}const St=Ne=>Ne instanceof Dt,ot=Ne=>Ne instanceof ri,Ke=Ne=>Ne instanceof ti;function vt(Ne){return St(Ne)?Ne.value:Ne.getRawValue()}function F(Ne,De){const we=ot(Ne),ut=Ne.controls;if(!(we?Object.keys(ut):ut).length)throw new e.vHH(1e3,"");if(!ut[De])throw new e.vHH(1001,"")}function Ye(Ne,De){ot(Ne),Ne._forEachChild((ut,Zt)=>{if(void 0===De[Zt])throw new e.vHH(1002,"")})}class gt{constructor(De,we){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=De,this._rawAsyncValidators=we,this._composedValidatorFn=Ki(this._rawValidators),this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(De){this._rawValidators=this._composedValidatorFn=De}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(De){this._rawAsyncValidators=this._composedAsyncValidatorFn=De}get parent(){return this._parent}get valid(){return this.status===mi}get invalid(){return this.status===bi}get pending(){return this.status==yi}get disabled(){return this.status===Wi}get enabled(){return this.status!==Wi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(De){this._rawValidators=De,this._composedValidatorFn=Ki(De)}setAsyncValidators(De){this._rawAsyncValidators=De,this._composedAsyncValidatorFn=rn(De)}addValidators(De){this.setValidators(Ve(De,this._rawValidators))}addAsyncValidators(De){this.setAsyncValidators(Ve(De,this._rawAsyncValidators))}removeValidators(De){this.setValidators(X(De,this._rawValidators))}removeAsyncValidators(De){this.setAsyncValidators(X(De,this._rawAsyncValidators))}hasValidator(De){return nt(this._rawValidators,De)}hasAsyncValidator(De){return nt(this._rawAsyncValidators,De)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(De={}){this.touched=!0,this._parent&&!De.onlySelf&&this._parent.markAsTouched(De)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(De=>De.markAllAsTouched())}markAsUntouched(De={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(we=>{we.markAsUntouched({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}markAsDirty(De={}){this.pristine=!1,this._parent&&!De.onlySelf&&this._parent.markAsDirty(De)}markAsPristine(De={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(we=>{we.markAsPristine({onlySelf:!0})}),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}markAsPending(De={}){this.status=yi,!1!==De.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!De.onlySelf&&this._parent.markAsPending(De)}disable(De={}){const we=this._parentMarkedDirty(De.onlySelf);this.status=Wi,this.errors=null,this._forEachChild(ut=>{ut.disable(Object.assign(Object.assign({},De),{onlySelf:!0}))}),this._updateValue(),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},De),{skipPristineCheck:we})),this._onDisabledChange.forEach(ut=>ut(!0))}enable(De={}){const we=this._parentMarkedDirty(De.onlySelf);this.status=mi,this._forEachChild(ut=>{ut.enable(Object.assign(Object.assign({},De),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},De),{skipPristineCheck:we})),this._onDisabledChange.forEach(ut=>ut(!1))}_updateAncestors(De){this._parent&&!De.onlySelf&&(this._parent.updateValueAndValidity(De),De.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(De){this._parent=De}updateValueAndValidity(De={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===yi)&&this._runAsyncValidator(De.emitEvent)),!1!==De.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!De.onlySelf&&this._parent.updateValueAndValidity(De)}_updateTreeValidity(De={emitEvent:!0}){this._forEachChild(we=>we._updateTreeValidity(De)),this.updateValueAndValidity({onlySelf:!0,emitEvent:De.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Wi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(De){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator=!0;const we=le(this.asyncValidator(this));this._asyncValidationSubscription=we.subscribe(ut=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ut,{emitEvent:De})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(De,we={}){this.errors=De,this._updateControlsErrors(!1!==we.emitEvent)}get(De){return function gn(Ne,De,we){if(null==De||(Array.isArray(De)||(De=De.split(we)),Array.isArray(De)&&0===De.length))return null;let ut=Ne;return De.forEach(Zt=>{ut=ot(ut)?ut.controls.hasOwnProperty(Zt)?ut.controls[Zt]:null:Ke(ut)&&ut.at(Zt)||null}),ut}(this,De,".")}getError(De,we){const ut=we?this.get(we):this;return ut&&ut.errors?ut.errors[De]:null}hasError(De,we){return!!this.getError(De,we)}get root(){let De=this;for(;De._parent;)De=De._parent;return De}_updateControlsErrors(De){this.status=this._calculateStatus(),De&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(De)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?Wi:this.errors?bi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(bi)?bi:mi}_anyControlsHaveStatus(De){return this._anyControls(we=>we.status===De)}_anyControlsDirty(){return this._anyControls(De=>De.dirty)}_anyControlsTouched(){return this._anyControls(De=>De.touched)}_updatePristine(De={}){this.pristine=!this._anyControlsDirty(),this._parent&&!De.onlySelf&&this._parent._updatePristine(De)}_updateTouched(De={}){this.touched=this._anyControlsTouched(),this._parent&&!De.onlySelf&&this._parent._updateTouched(De)}_isBoxedValue(De){return"object"==typeof De&&null!==De&&2===Object.keys(De).length&&"value"in De&&"disabled"in De}_registerOnCollectionChange(De){this._onCollectionChange=De}_setUpdateStrategy(De){st(De)&&null!=De.updateOn&&(this._updateOn=De.updateOn)}_parentMarkedDirty(De){return!De&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Dt extends gt{constructor(De=null,we,ut){super(cn(we),Tn(ut,we)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(De),this._setUpdateStrategy(we),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(we)&&we.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(De)?De.value:De)}setValue(De,we={}){this.value=this._pendingValue=De,this._onChange.length&&!1!==we.emitModelToViewChange&&this._onChange.forEach(ut=>ut(this.value,!1!==we.emitViewToModelChange)),this.updateValueAndValidity(we)}patchValue(De,we={}){this.setValue(De,we)}reset(De=this.defaultValue,we={}){this._applyFormState(De),this.markAsPristine(we),this.markAsUntouched(we),this.setValue(this.value,we),this._pendingChange=!1}_updateValue(){}_anyControls(De){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(De){this._onChange.push(De)}_unregisterOnChange(De){Bt(this._onChange,De)}registerOnDisabledChange(De){this._onDisabledChange.push(De)}_unregisterOnDisabledChange(De){Bt(this._onDisabledChange,De)}_forEachChild(De){}_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(De){this._isBoxedValue(De)?(this.value=this._pendingValue=De.value,De.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=De}}class ri extends gt{constructor(De,we,ut){super(cn(we),Tn(ut,we)),this.controls=De,this._initObservables(),this._setUpdateStrategy(we),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(De,we){return this.controls[De]?this.controls[De]:(this.controls[De]=we,we.setParent(this),we._registerOnCollectionChange(this._onCollectionChange),we)}addControl(De,we,ut={}){this.registerControl(De,we),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}removeControl(De,we={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}setControl(De,we,ut={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),delete this.controls[De],we&&this.registerControl(De,we),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}contains(De){return this.controls.hasOwnProperty(De)&&this.controls[De].enabled}setValue(De,we={}){Ye(this,De),Object.keys(De).forEach(ut=>{F(this,ut),this.controls[ut].setValue(De[ut],{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we)}patchValue(De,we={}){null!=De&&(Object.keys(De).forEach(ut=>{this.controls[ut]&&this.controls[ut].patchValue(De[ut],{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we))}reset(De={},we={}){this._forEachChild((ut,Zt)=>{ut.reset(De[Zt],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}getRawValue(){return this._reduceChildren({},(De,we,ut)=>(De[ut]=vt(we),De))}_syncPendingControls(){let De=this._reduceChildren(!1,(we,ut)=>!!ut._syncPendingControls()||we);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){Object.keys(this.controls).forEach(we=>{const ut=this.controls[we];ut&&De(ut,we)})}_setUpControls(){this._forEachChild(De=>{De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(De){for(const we of Object.keys(this.controls)){const ut=this.controls[we];if(this.contains(we)&&De(ut))return!0}return!1}_reduceValue(){return this._reduceChildren({},(De,we,ut)=>((we.enabled||this.disabled)&&(De[ut]=we.value),De))}_reduceChildren(De,we){let ut=De;return this._forEachChild((Zt,hi)=>{ut=we(ut,Zt,hi)}),ut}_allControlsDisabled(){for(const De of Object.keys(this.controls))if(this.controls[De].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class ti extends gt{constructor(De,we,ut){super(cn(we),Tn(ut,we)),this.controls=De,this._initObservables(),this._setUpdateStrategy(we),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(De){return this.controls[De]}push(De,we={}){this.controls.push(De),this._registerControl(De),this.updateValueAndValidity({emitEvent:we.emitEvent}),this._onCollectionChange()}insert(De,we,ut={}){this.controls.splice(De,0,we),this._registerControl(we),this.updateValueAndValidity({emitEvent:ut.emitEvent})}removeAt(De,we={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),this.updateValueAndValidity({emitEvent:we.emitEvent})}setControl(De,we,ut={}){this.controls[De]&&this.controls[De]._registerOnCollectionChange(()=>{}),this.controls.splice(De,1),we&&(this.controls.splice(De,0,we),this._registerControl(we)),this.updateValueAndValidity({emitEvent:ut.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(De,we={}){Ye(this,De),De.forEach((ut,Zt)=>{F(this,Zt),this.at(Zt).setValue(ut,{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we)}patchValue(De,we={}){null!=De&&(De.forEach((ut,Zt)=>{this.at(Zt)&&this.at(Zt).patchValue(ut,{onlySelf:!0,emitEvent:we.emitEvent})}),this.updateValueAndValidity(we))}reset(De=[],we={}){this._forEachChild((ut,Zt)=>{ut.reset(De[Zt],{onlySelf:!0,emitEvent:we.emitEvent})}),this._updatePristine(we),this._updateTouched(we),this.updateValueAndValidity(we)}getRawValue(){return this.controls.map(De=>vt(De))}clear(De={}){this.controls.length<1||(this._forEachChild(we=>we._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:De.emitEvent}))}_syncPendingControls(){let De=this.controls.reduce((we,ut)=>!!ut._syncPendingControls()||we,!1);return De&&this.updateValueAndValidity({onlySelf:!0}),De}_forEachChild(De){this.controls.forEach((we,ut)=>{De(we,ut)})}_updateValue(){this.value=this.controls.filter(De=>De.enabled||this.disabled).map(De=>De.value)}_anyControls(De){return this.controls.some(we=>we.enabled&&De(we))}_setUpControls(){this._forEachChild(De=>this._registerControl(De))}_allControlsDisabled(){for(const De of this.controls)if(De.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(De){De.setParent(this),De._registerOnCollectionChange(this._onCollectionChange)}}const Di={provide:D,useExisting:(0,e.Gpc)(()=>$i)},wi=(()=>Promise.resolve(null))();let $i=(()=>{class Ne extends D{constructor(we,ut){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new ri({},me(we),Ie(ut))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(we){wi.then(()=>{const ut=this._findContainer(we.path);we.control=ut.registerControl(we.name,we.control),lt(we.control,we),we.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(we)})}getControl(we){return this.form.get(we.path)}removeControl(we){wi.then(()=>{const ut=this._findContainer(we.path);ut&&ut.removeControl(we.name),this._directives.delete(we)})}addFormGroup(we){wi.then(()=>{const ut=this._findContainer(we.path),Zt=new ri({});He(Zt,we),ut.registerControl(we.name,Zt),Zt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(we){wi.then(()=>{const ut=this._findContainer(we.path);ut&&ut.removeControl(we.name)})}getFormGroup(we){return this.form.get(we.path)}updateModel(we,ut){wi.then(()=>{this.form.get(we.path).setValue(ut)})}setValue(we){this.control.setValue(we)}onSubmit(we){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(we),!1}onReset(){this.resetForm()}resetForm(we){this.form.reset(we),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(we){return we.pop(),we.length?this.form.get(we):this.form}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(we,ut){1&we&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Di]),e.qOj]}),Ne})();const Xi={provide:Q,useExisting:(0,e.Gpc)(()=>an)},en=(()=>Promise.resolve(null))();let an=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi,ji){super(),this._changeDetectorRef=ji,this.control=new Dt,this._registered=!1,this.update=new e.vpe,this._parent=we,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}ngOnChanges(we){if(this._checkForErrors(),!this._registered||"name"in we){if(this._registered&&(this._checkName(),this.formDirective)){const ut=we.name.previousValue;this.formDirective.removeControl({name:ut,path:this._getPath(ut)})}this._setUpControl()}"isDisabled"in we&&this._updateDisabled(we),Yt(we,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(we){this.viewModel=we,this.update.emit(we)}_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(){lt(this.control,this),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(we){en.then(()=>{var ut;this.control.setValue(we,{emitViewToModelChange:!1}),null===(ut=this._changeDetectorRef)||void 0===ut||ut.markForCheck()})}_updateDisabled(we){const ut=we.isDisabled.currentValue,Zt=""===ut||ut&&"false"!==ut;en.then(()=>{var hi;Zt&&!this.control.disabled?this.control.disable():!Zt&&this.control.disabled&&this.control.enable(),null===(hi=this._changeDetectorRef)||void 0===hi||hi.markForCheck()})}_getPath(we){return this._parent?Ht(we,this._parent):[we]}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,9),e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(e.sBO,8))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([Xi]),e.qOj,e.TTD]}),Ne})(),dn=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Ne})();const wn={provide:C,useExisting:(0,e.Gpc)(()=>xn),multi:!0};let xn=(()=>{class Ne extends E{writeValue(we){this.setProperty("value",null==we?"":we)}registerOnChange(we){this.onChange=ut=>{we(""==ut?null:parseFloat(ut))}}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(we,ut){1&we&&e.NdJ("input",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},features:[e._Bn([wn]),e.qOj]}),Ne})(),Nn=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({}),Ne})();const Ze=new e.OlP("NgModelWithFormControlWarning"),Ot={provide:Q,useExisting:(0,e.Gpc)(()=>qe)};let qe=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi){super(),this._ngModelWarningConfig=hi,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(we),this._setAsyncValidators(ut),this.valueAccessor=Et(0,Zt)}set isDisabled(we){}ngOnChanges(we){if(this._isControlChanged(we)){const ut=we.form.previousValue;ut&&Ut(ut,this,!1),lt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Yt(we,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ut(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(we){this.viewModel=we,this.update.emit(we)}_isControlChanged(we){return we.hasOwnProperty("form")}}return Ne._ngModelWarningSentOnce=!1,Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ze,8))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Ot]),e.qOj,e.TTD]}),Ne})();const Tt={provide:D,useExisting:(0,e.Gpc)(()=>jt)};let jt=(()=>{class Ne extends D{constructor(we,ut){super(),this.validators=we,this.asyncValidators=ut,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(we),this._setAsyncValidators(ut)}ngOnChanges(we){this._checkFormPresent(),we.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ge(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(we){const ut=this.form.get(we.path);return lt(ut,we),ut.updateValueAndValidity({emitEvent:!1}),this.directives.push(we),ut}getControl(we){return this.form.get(we.path)}removeControl(we){Ut(we.control||null,we,!1),Bt(this.directives,we)}addFormGroup(we){this._setUpFormContainer(we)}removeFormGroup(we){this._cleanUpFormContainer(we)}getFormGroup(we){return this.form.get(we.path)}addFormArray(we){this._setUpFormContainer(we)}removeFormArray(we){this._cleanUpFormContainer(we)}getFormArray(we){return this.form.get(we.path)}updateModel(we,ut){this.form.get(we.path).setValue(ut)}onSubmit(we){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(we),!1}onReset(){this.resetForm()}resetForm(we){this.form.reset(we),this.submitted=!1}_updateDomValue(){this.directives.forEach(we=>{const ut=we.control,Zt=this.form.get(we.path);ut!==Zt&&(Ut(ut||null,we),St(Zt)&&(lt(Zt,we),we.control=Zt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(we){const ut=this.form.get(we.path);He(ut,we),ut.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(we){if(this.form){const ut=this.form.get(we.path);ut&&function ct(Ne,De){return Ge(Ne,De)}(ut,we)&&ut.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ee(this.form,this),this._oldForm&&Ge(this._oldForm,this)}_checkFormPresent(){}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(J,10),e.Y36(Me,10))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(we,ut){1&we&&e.NdJ("submit",function(hi){return ut.onSubmit(hi)})("reset",function(){return ut.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Tt]),e.qOj,e.TTD]}),Ne})();const cr={provide:Q,useExisting:(0,e.Gpc)(()=>Vn)};let Vn=(()=>{class Ne extends Q{constructor(we,ut,Zt,hi,ji){super(),this._ngModelWarningConfig=ji,this._added=!1,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=we,this._setValidators(ut),this._setAsyncValidators(Zt),this.valueAccessor=Et(0,hi)}set isDisabled(we){}ngOnChanges(we){this._added||this._setUpControl(),Yt(we,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(we){this.viewModel=we,this.update.emit(we)}get path(){return Ht(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return Ne._ngModelWarningSentOnce=!1,Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(D,13),e.Y36(J,10),e.Y36(Me,10),e.Y36(C,10),e.Y36(Ze,8))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([cr]),e.qOj,e.TTD]}),Ne})();const dr={provide:C,useExisting:(0,e.Gpc)(()=>rr),multi:!0};function Qn(Ne,De){return null==Ne?`${De}`:(De&&"object"==typeof De&&(De="Object"),`${Ne}: ${De}`.slice(0,50))}let rr=(()=>{class Ne extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(we){this._compareWith=we}writeValue(we){this.value=we;const Zt=Qn(this._getOptionId(we),we);this.setProperty("value",Zt)}registerOnChange(we){this.onChange=ut=>{this.value=this._getOptionValue(ut),we(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(we){for(const ut of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ut),we))return ut;return null}_getOptionValue(we){const ut=function Lr(Ne){return Ne.split(":")[0]}(we);return this._optionMap.has(ut)?this._optionMap.get(ut):we}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(we,ut){1&we&&e.NdJ("change",function(hi){return ut.onChange(hi.target.value)})("blur",function(){return ut.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([dr]),e.qOj]}),Ne})(),Zn=(()=>{class Ne{constructor(we,ut,Zt){this._element=we,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption())}set ngValue(we){null!=this._select&&(this._select._optionMap.set(this.id,we),this._setElementValue(Qn(this.id,we)),this._select.writeValue(this._select.value))}set value(we){this._setElementValue(we),this._select&&this._select.writeValue(this._select.value)}_setElementValue(we){this._renderer.setProperty(this._element.nativeElement,"value",we)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(rr,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ne})();const En={provide:C,useExisting:(0,e.Gpc)(()=>sr),multi:!0};function ur(Ne,De){return null==Ne?`${De}`:("string"==typeof De&&(De=`'${De}'`),De&&"object"==typeof De&&(De="Object"),`${Ne}: ${De}`.slice(0,50))}let sr=(()=>{class Ne extends E{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(we){this._compareWith=we}writeValue(we){let ut;if(this.value=we,Array.isArray(we)){const Zt=we.map(hi=>this._getOptionId(hi));ut=(hi,ji)=>{hi._setSelected(Zt.indexOf(ji.toString())>-1)}}else ut=(Zt,hi)=>{Zt._setSelected(!1)};this._optionMap.forEach(ut)}registerOnChange(we){this.onChange=ut=>{const Zt=[],hi=ut.selectedOptions;if(void 0!==hi){const ji=hi;for(let tn=0;tn{class Ne{constructor(we,ut,Zt){this._element=we,this._renderer=ut,this._select=Zt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(we){null!=this._select&&(this._value=we,this._setElementValue(ur(this.id,we)),this._select.writeValue(this._select.value))}set value(we){this._select?(this._value=we,this._setElementValue(ur(this.id,we)),this._select.writeValue(this._select.value)):this._setElementValue(we)}_setElementValue(we){this._renderer.setProperty(this._element.nativeElement,"value",we)}_setSelected(we){this._renderer.setProperty(this._element.nativeElement,"selected",we)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return Ne.\u0275fac=function(we){return new(we||Ne)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(sr,9))},Ne.\u0275dir=e.lG2({type:Ne,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),Ne})(),In=(()=>{class Ne{constructor(){this._validator=Ue}ngOnChanges(we){if(this.inputName in we){const ut=this.normalizeInput(we[this.inputName].currentValue);this._enabled=this.enabled(ut),this._validator=this._enabled?this.createValidator(ut):Ue,this._onChange&&this._onChange()}}validate(we){return this._validator(we)}registerOnValidatorChange(we){this._onChange=we}enabled(we){return null!=we}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275dir=e.lG2({type:Ne,features:[e.TTD]}),Ne})();const zn={provide:J,useExisting:(0,e.Gpc)(()=>ft),multi:!0},lr={provide:J,useExisting:(0,e.Gpc)(()=>N),multi:!0};let ft=(()=>{class Ne extends In{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=we=>function hr(Ne){return null!=Ne&&!1!==Ne&&"false"!=`${Ne}`}(we),this.createValidator=we=>Y}enabled(we){return we}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("required",ut._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([zn]),e.qOj]}),Ne})(),N=(()=>{class Ne extends ft{constructor(){super(...arguments),this.createValidator=we=>q}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("required",ut._enabled?"":null)},features:[e._Bn([lr]),e.qOj]}),Ne})();const he={provide:J,useExisting:(0,e.Gpc)(()=>tt),multi:!0};let tt=(()=>{class Ne extends In{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=we=>we,this.createValidator=we=>Le(we)}}return Ne.\u0275fac=function(){let De;return function(ut){return(De||(De=e.n5z(Ne)))(ut||Ne)}}(),Ne.\u0275dir=e.lG2({type:Ne,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(we,ut){2&we&&e.uIk("pattern",ut._enabled?ut.pattern:null)},inputs:{pattern:"pattern"},features:[e._Bn([he]),e.qOj]}),Ne})(),ii=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[[Nn]]}),Ne})(),di=(()=>{class Ne{}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[ii]}),Ne})(),ui=(()=>{class Ne{static withConfig(we){return{ngModule:Ne,providers:[{provide:Ze,useValue:we.warnOnNgModelWithFormControl}]}}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275mod=e.oAB({type:Ne}),Ne.\u0275inj=e.cJS({imports:[ii]}),Ne})(),Ti=(()=>{class Ne{group(we,ut=null){const Zt=this._reduceControls(we);let tn,hi=null,ji=null;return null!=ut&&(function _i(Ne){return void 0!==Ne.asyncValidators||void 0!==Ne.validators||void 0!==Ne.updateOn}(ut)?(hi=null!=ut.validators?ut.validators:null,ji=null!=ut.asyncValidators?ut.asyncValidators:null,tn=null!=ut.updateOn?ut.updateOn:void 0):(hi=null!=ut.validator?ut.validator:null,ji=null!=ut.asyncValidator?ut.asyncValidator:null)),new ri(Zt,{asyncValidators:ji,updateOn:tn,validators:hi})}control(we,ut,Zt){return new Dt(we,ut,Zt)}array(we,ut,Zt){const hi=we.map(ji=>this._createControl(ji));return new ti(hi,ut,Zt)}_reduceControls(we){const ut={};return Object.keys(we).forEach(Zt=>{ut[Zt]=this._createControl(we[Zt])}),ut}_createControl(we){return St(we)||ot(we)||Ke(we)?we:Array.isArray(we)?this.control(we[0],we.length>1?we[1]:null,we.length>2?we[2]:null):this.control(we)}}return Ne.\u0275fac=function(we){return new(we||Ne)},Ne.\u0275prov=e.Yz7({token:Ne,factory:Ne.\u0275fac,providedIn:ui}),Ne})()},91079:($e,_e,p)=>{"use strict";p.d(_e,{XC:()=>R,Bb:()=>X,ZL:()=>Je});var e=p(15664),b=p(63191),_=p(5e3),w=p(90508),g=p(42654),A=p(8929),E=p(88514),C=p(36787),I=p(21086),P=p(23753),m=p(70925),L=p(69808),O=p(92845),G=p(53435),ne=p(91159),ge=p(47429),J=p(93075),Me=p(67322),oe=p(1059),Re=p(87545),T=p(72986),j=p(92198),Y=p(24850),q=p(22868),te=p(40943),ue=p(50226);const de=["panel"];function Le(z,Q){if(1&z&&(_.TgZ(0,"div",0,1),_.Hsn(2),_.qZA()),2&z){const D=Q.id,H=_.oxw();_.Q6J("id",H.id)("ngClass",H._classList),_.uIk("aria-label",H.ariaLabel||null)("aria-labelledby",H._getPanelAriaLabelledby(D))}}const Ue=["*"];let ze=0;class le{constructor(Q,D){this.source=Q,this.option=D}}const je=(0,w.Kr)(class{}),ye=new _.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Be(){return{autoActiveFirstOption:!1}}});let W=(()=>{class z extends je{constructor(D,H,V,xe){super(),this._changeDetectorRef=D,this._elementRef=H,this._activeOptionChanges=g.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new _.vpe,this.opened=new _.vpe,this.closed=new _.vpe,this.optionActivated=new _.vpe,this._classList={},this.id="mat-autocomplete-"+ze++,this.inertGroups=(null==xe?void 0:xe.SAFARI)||!1,this._autoActiveFirstOption=!!V.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(D){this._autoActiveFirstOption=(0,b.Ig)(D)}set classList(D){this._classList=D&&D.length?(0,b.du)(D).reduce((H,V)=>(H[V]=!0,H),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new e.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(D=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[D]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(D){this.panel&&(this.panel.nativeElement.scrollTop=D)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(D){const H=new le(this,D);this.optionSelected.emit(H)}_getPanelAriaLabelledby(D){return this.ariaLabel?null:this.ariaLabelledby?(D?D+" ":"")+this.ariaLabelledby:D}_setVisibilityClasses(D){D[this._visibleClass]=this.showPanel,D[this._hiddenClass]=!this.showPanel}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(_.sBO),_.Y36(_.SBq),_.Y36(ye),_.Y36(m.t4))},z.\u0275dir=_.lG2({type:z,viewQuery:function(D,H){if(1&D&&(_.Gf(_.Rgc,7),_.Gf(de,5)),2&D){let V;_.iGM(V=_.CRH())&&(H.template=V.first),_.iGM(V=_.CRH())&&(H.panel=V.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[_.qOj]}),z})(),R=(()=>{class z extends W{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275cmp=_.Xpm({type:z,selectors:[["mat-autocomplete"]],contentQueries:function(D,H,V){if(1&D&&(_.Suo(V,w.K7,5),_.Suo(V,w.ey,5)),2&D){let xe;_.iGM(xe=_.CRH())&&(H.optionGroups=xe),_.iGM(xe=_.CRH())&&(H.options=xe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_._Bn([{provide:w.HF,useExisting:z}]),_.qOj],ngContentSelectors:Ue,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(D,H){1&D&&(_.F$t(),_.YNc(0,Le,3,4,"ng-template"))},directives:[L.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),z})();const me=new _.OlP("mat-autocomplete-scroll-strategy"),Ie={provide:me,deps:[O.aV],useFactory:function be(z){return()=>z.scrollStrategies.reposition()}},pe={provide:J.JU,useExisting:(0,_.Gpc)(()=>Je),multi:!0};let Xe=(()=>{class z{constructor(D,H,V,xe,Qe,Te,Ae,ae,i,o,d){this._element=D,this._overlay=H,this._viewContainerRef=V,this._zone=xe,this._changeDetectorRef=Qe,this._dir=Ae,this._formField=ae,this._document=i,this._viewportRuler=o,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=g.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new A.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,E.P)(()=>{const l=this.autocomplete?this.autocomplete.options:null;return l?l.changes.pipe((0,oe.O)(l),(0,Re.w)(()=>(0,C.T)(...l.map(s=>s.onSelectionChange)))):this._zone.onStable.pipe((0,T.q)(1),(0,Re.w)(()=>this.optionSelections))}),this._scrollStrategy=Te}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(D){this._autocompleteDisabled=(0,b.Ig)(D)}ngAfterViewInit(){const D=this._getWindow();void 0!==D&&this._zone.runOutsideAngular(()=>D.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(D){D.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const D=this._getWindow();void 0!==D&&D.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,C.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,j.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,j.h)(()=>this._overlayAttached)):(0,I.of)()).pipe((0,Y.U)(D=>D instanceof w.rN?D:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,C.T)((0,P.R)(this._document,"click"),(0,P.R)(this._document,"auxclick"),(0,P.R)(this._document,"touchend")).pipe((0,j.h)(D=>{const H=(0,m.sA)(D),V=this._formField?this._formField._elementRef.nativeElement:null,xe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&H!==this._element.nativeElement&&(!V||!V.contains(H))&&(!xe||!xe.contains(H))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(H)}))}writeValue(D){Promise.resolve().then(()=>this._setTriggerValue(D))}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._element.nativeElement.disabled=D}_handleKeydown(D){const H=D.keyCode;if(H===ne.hY&&!(0,ne.Vb)(D)&&D.preventDefault(),this.activeOption&&H===ne.K5&&this.panelOpen&&!(0,ne.Vb)(D))this.activeOption._selectViaInteraction(),this._resetActiveItem(),D.preventDefault();else if(this.autocomplete){const V=this.autocomplete._keyManager.activeItem,xe=H===ne.LH||H===ne.JH;this.panelOpen||H===ne.Mf?this.autocomplete._keyManager.onKeydown(D):xe&&this._canOpen()&&this.openPanel(),(xe||this.autocomplete._keyManager.activeItem!==V)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(D){let H=D.target,V=H.value;"number"===H.type&&(V=""==V?null:parseFloat(V)),this._previousValue!==V&&(this._previousValue=V,this._onChange(V),this._canOpen()&&this._document.activeElement===D.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(D=!1){this._formField&&"auto"===this._formField.floatLabel&&(D?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const D=this._zone.onStable.pipe((0,T.q)(1)),H=this.autocomplete.options.changes.pipe((0,q.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,C.T)(D,H).pipe((0,Re.w)(()=>{const V=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),V!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,T.q)(1)).subscribe(V=>this._setValueAndClose(V))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(D){const H=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(D):D,V=null!=H?H:"";this._formField?this._formField._control.value=V:this._element.nativeElement.value=V,this._previousValue=V}_setValueAndClose(D){const H=D&&D.source;H&&(this._clearPreviousSelectedOption(H),this._setTriggerValue(H.value),this._onChange(H.value),this.autocomplete._emitSelectEvent(H),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(D){this.autocomplete.options.forEach(H=>{H!==D&&H.selected&&H.deselect()})}_attachOverlay(){var D;let H=this._overlayRef;H?(this._positionStrategy.setOrigin(this._getConnectedElement()),H.updateSize({width:this._getPanelWidth()})):(this._portal=new ge.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(D=this._formField)||void 0===D?void 0:D.getLabelId()}),H=this._overlay.create(this._getOverlayConfig()),this._overlayRef=H,H.keydownEvents().subscribe(xe=>{(xe.keyCode===ne.hY&&!(0,ne.Vb)(xe)||xe.keyCode===ne.LH&&(0,ne.Vb)(xe,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),xe.stopPropagation(),xe.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&H&&H.updateSize({width:this._getPanelWidth()})})),H&&!H.hasAttached()&&(H.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const V=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&V!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var D;return new O.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(D=this._defaults)||void 0===D?void 0:D.overlayPanelClass})}_getOverlayPosition(){const D=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(D),this._positionStrategy=D,D}_setStrategyPositions(D){const H=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],V=this._aboveClass,xe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:V},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:V}];let Qe;Qe="above"===this.position?xe:"below"===this.position?H:[...H,...xe],D.withPositions(Qe)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const D=this.autocomplete;D.autoActiveFirstOption?D._keyManager.setFirstItemActive():D._keyManager.setActiveItem(-1)}_canOpen(){const D=this._element.nativeElement;return!D.readOnly&&!D.disabled&&!this._autocompleteDisabled}_getWindow(){var D;return(null===(D=this._document)||void 0===D?void 0:D.defaultView)||window}_scrollToOption(D){const H=this.autocomplete,V=(0,w.CB)(D,H.options,H.optionGroups);if(0===D&&1===V)H._setScrollTop(0);else if(H.panel){const xe=H.options.toArray()[D];if(xe){const Qe=xe._getHostElement(),Te=(0,w.jH)(Qe.offsetTop,Qe.offsetHeight,H._getScrollTop(),H.panel.nativeElement.offsetHeight);H._setScrollTop(Te)}}}}return z.\u0275fac=function(D){return new(D||z)(_.Y36(_.SBq),_.Y36(O.aV),_.Y36(_.s_b),_.Y36(_.R0b),_.Y36(_.sBO),_.Y36(me),_.Y36(ue.Is,8),_.Y36(Me.G_,9),_.Y36(L.K0,8),_.Y36(G.rL),_.Y36(ye,8))},z.\u0275dir=_.lG2({type:z,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[_.TTD]}),z})(),Je=(()=>{class z extends Xe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=_.n5z(z)))(H||z)}}(),z.\u0275dir=_.lG2({type:z,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(D,H){1&D&&_.NdJ("focusin",function(){return H._handleFocus()})("blur",function(){return H._onTouched()})("input",function(xe){return H._handleInput(xe)})("keydown",function(xe){return H._handleKeydown(xe)}),2&D&&_.uIk("autocomplete",H.autocompleteAttribute)("role",H.autocompleteDisabled?null:"combobox")("aria-autocomplete",H.autocompleteDisabled?null:"list")("aria-activedescendant",H.panelOpen&&H.activeOption?H.activeOption.id:null)("aria-expanded",H.autocompleteDisabled?null:H.panelOpen.toString())("aria-owns",H.autocompleteDisabled||!H.panelOpen||null==H.autocomplete?null:H.autocomplete.id)("aria-haspopup",!H.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_._Bn([pe]),_.qOj]}),z})(),X=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=_.oAB({type:z}),z.\u0275inj=_.cJS({providers:[Ie],imports:[[O.U8,w.Ng,w.BQ,L.ez],G.ZD,w.Ng,w.BQ]}),z})()},27544:($e,_e,p)=>{"use strict";p.d(_e,{k:()=>I,g:()=>P});var e=p(5e3),b=p(90508),_=p(15664),w=p(63191),g=p(76360);let A=0;const E=(0,b.Id)(class{}),C="mat-badge-content";let I=(()=>{class m extends E{constructor(O,G,ne,ge,J){super(),this._ngZone=O,this._elementRef=G,this._ariaDescriber=ne,this._renderer=ge,this._animationMode=J,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=A++,this._isInitialized=!1}get color(){return this._color}set color(O){this._setColor(O),this._color=O}get overlap(){return this._overlap}set overlap(O){this._overlap=(0,w.Ig)(O)}get content(){return this._content}set content(O){this._updateRenderedContent(O)}get description(){return this._description}set description(O){this._updateHostAriaDescription(O)}get hidden(){return this._hidden}set hidden(O){this._hidden=(0,w.Ig)(O)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const O=this._renderer.createElement("span"),G="mat-badge-active";return O.setAttribute("id",`mat-badge-content-${this._id}`),O.setAttribute("aria-hidden","true"),O.classList.add(C),"NoopAnimations"===this._animationMode&&O.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(O),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{O.classList.add(G)})}):O.classList.add(G),O}_updateRenderedContent(O){const G=`${null!=O?O:""}`.trim();this._isInitialized&&G&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=G),this._content=G}_updateHostAriaDescription(O){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),O&&this._ariaDescriber.describe(this._elementRef.nativeElement,O),this._description=O}_setColor(O){const G=this._elementRef.nativeElement.classList;G.remove(`mat-badge-${this._color}`),O&&G.add(`mat-badge-${O}`)}_clearExistingBadges(){const O=this._elementRef.nativeElement.querySelectorAll(`:scope > .${C}`);for(const G of Array.from(O))G!==this._badgeElement&&G.remove()}}return m.\u0275fac=function(O){return new(O||m)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(_.$s),e.Y36(e.Qsj),e.Y36(g.Qb,8))},m.\u0275dir=e.lG2({type:m,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(O,G){2&O&&e.ekj("mat-badge-overlap",G.overlap)("mat-badge-above",G.isAbove())("mat-badge-below",!G.isAbove())("mat-badge-before",!G.isAfter())("mat-badge-after",G.isAfter())("mat-badge-small","small"===G.size)("mat-badge-medium","medium"===G.size)("mat-badge-large","large"===G.size)("mat-badge-hidden",G.hidden||!G.content)("mat-badge-disabled",G.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[e.qOj]}),m})(),P=(()=>{class m{}return m.\u0275fac=function(O){return new(O||m)},m.\u0275mod=e.oAB({type:m}),m.\u0275inj=e.cJS({imports:[[_.rt,b.BQ],b.BQ]}),m})()},47423:($e,_e,p)=>{"use strict";p.d(_e,{lW:()=>m,ot:()=>O});var e=p(5e3),b=p(90508),_=p(76360),w=p(15664);const g=["mat-button",""],A=["*"],I=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],P=(0,b.pj)((0,b.Id)((0,b.Kr)(class{constructor(G){this._elementRef=G}})));let m=(()=>{class G extends P{constructor(ge,J,Me){super(ge),this._focusMonitor=J,this._animationMode=Me,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const oe of I)this._hasHostAttributes(oe)&&this._getHostElement().classList.add(oe);ge.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ge,J){ge?this._focusMonitor.focusVia(this._getHostElement(),ge,J):this._getHostElement().focus(J)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ge){return ge.some(J=>this._getHostElement().hasAttribute(J))}}return G.\u0275fac=function(ge){return new(ge||G)(e.Y36(e.SBq),e.Y36(w.tE),e.Y36(_.Qb,8))},G.\u0275cmp=e.Xpm({type:G,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(ge,J){if(1&ge&&e.Gf(b.wG,5),2&ge){let Me;e.iGM(Me=e.CRH())&&(J.ripple=Me.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ge,J){2&ge&&(e.uIk("disabled",J.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-button-disabled",J.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:g,ngContentSelectors:A,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ge,J){1&ge&&(e.F$t(),e.TgZ(0,"span",0),e.Hsn(1),e.qZA(),e._UZ(2,"span",1),e._UZ(3,"span",2)),2&ge&&(e.xp6(2),e.ekj("mat-button-ripple-round",J.isRoundButton||J.isIconButton),e.Q6J("matRippleDisabled",J._isRippleDisabled())("matRippleCentered",J.isIconButton)("matRippleTrigger",J._getHostElement()))},directives:[b.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),G})(),O=(()=>{class G{}return G.\u0275fac=function(ge){return new(ge||G)},G.\u0275mod=e.oAB({type:G}),G.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),G})()},9224:($e,_e,p)=>{"use strict";p.d(_e,{a8:()=>T,kc:()=>Re,dn:()=>P,dk:()=>j,QW:()=>q,$j:()=>L,n5:()=>m});var e=p(5e3),b=p(76360),_=p(90508);const w=["*",[["mat-card-footer"]]],g=["*","mat-card-footer"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],E=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let P=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),te})(),m=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),te})(),L=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),te})(),Re=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275dir=e.lG2({type:te,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-card-avatar"]}),te})(),T=(()=>{class te{constructor(de){this._animationMode=de}}return te.\u0275fac=function(de){return new(de||te)(e.Y36(b.Qb,8))},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(de,Le){2&de&&e.ekj("_mat-animation-noopable","NoopAnimations"===Le._animationMode)},exportAs:["matCard"],ngContentSelectors:g,decls:2,vars:0,template:function(de,Le){1&de&&(e.F$t(w),e.Hsn(0),e.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),te})(),j=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275cmp=e.Xpm({type:te,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:E,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(de,Le){1&de&&(e.F$t(A),e.Hsn(0),e.TgZ(1,"div",0),e.Hsn(2,1),e.qZA(),e.Hsn(3,2))},encapsulation:2,changeDetection:0}),te})(),q=(()=>{class te{}return te.\u0275fac=function(de){return new(de||te)},te.\u0275mod=e.oAB({type:te}),te.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),te})()},77446:($e,_e,p)=>{"use strict";p.d(_e,{oG:()=>Me,p9:()=>j});var e=p(63191),b=p(5e3),_=p(93075),w=p(90508),g=p(76360),A=p(15664),E=p(17144);const C=["input"],I=function(Y){return{enterDuration:Y}},P=["*"],m=new b.OlP("mat-checkbox-default-options",{providedIn:"root",factory:L});function L(){return{color:"accent",clickAction:"check-indeterminate"}}let O=0;const G=L(),ne={provide:_.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class ge{}const J=(0,w.sb)((0,w.pj)((0,w.Kr)((0,w.Id)(class{constructor(Y){this._elementRef=Y}}))));let Me=(()=>{class Y extends J{constructor(te,ue,de,Le,Ue,ze,le){super(te),this._changeDetectorRef=ue,this._focusMonitor=de,this._ngZone=Le,this._animationMode=ze,this._options=le,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++O,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new b.vpe,this.indeterminateChange=new b.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||G,this.color=this.defaultColor=this._options.color||G.color,this.tabIndex=parseInt(Ue)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(te){this._required=(0,e.Ig)(te)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{te||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(te){te!=this.checked&&(this._checked=te,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(te){const ue=(0,e.Ig)(te);ue!==this.disabled&&(this._disabled=ue,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(te){const ue=te!=this._indeterminate;this._indeterminate=(0,e.Ig)(te),ue&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(te){this.checked=!!te}registerOnChange(te){this._controlValueAccessorChangeFn=te}registerOnTouched(te){this._onTouched=te}setDisabledState(te){this.disabled=te}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(te){let ue=this._currentCheckState,de=this._elementRef.nativeElement;if(ue!==te&&(this._currentAnimationClass.length>0&&de.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ue,te),this._currentCheckState=te,this._currentAnimationClass.length>0)){de.classList.add(this._currentAnimationClass);const Le=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{de.classList.remove(Le)},1e3)})}}_emitChangeEvent(){const te=new ge;te.source=this,te.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(te),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(te){var ue;const de=null===(ue=this._options)||void 0===ue?void 0:ue.clickAction;te.stopPropagation(),this.disabled||"noop"===de?!this.disabled&&"noop"===de&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==de&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(te,ue){te?this._focusMonitor.focusVia(this._inputElement,te,ue):this._inputElement.nativeElement.focus(ue)}_onInteractionEvent(te){te.stopPropagation()}_getAnimationClassForCheckStateTransition(te,ue){if("NoopAnimations"===this._animationMode)return"";let de="";switch(te){case 0:if(1===ue)de="unchecked-checked";else{if(3!=ue)return"";de="unchecked-indeterminate"}break;case 2:de=1===ue?"unchecked-checked":"unchecked-indeterminate";break;case 1:de=2===ue?"checked-unchecked":"checked-indeterminate";break;case 3:de=1===ue?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${de}`}_syncIndeterminate(te){const ue=this._inputElement;ue&&(ue.nativeElement.indeterminate=te)}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(A.tE),b.Y36(b.R0b),b.$8M("tabindex"),b.Y36(g.Qb,8),b.Y36(m,8))},Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-checkbox"]],viewQuery:function(te,ue){if(1&te&&(b.Gf(C,5),b.Gf(w.wG,5)),2&te){let de;b.iGM(de=b.CRH())&&(ue._inputElement=de.first),b.iGM(de=b.CRH())&&(ue.ripple=de.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(te,ue){2&te&&(b.Ikx("id",ue.id),b.uIk("tabindex",null),b.ekj("mat-checkbox-indeterminate",ue.indeterminate)("mat-checkbox-checked",ue.checked)("mat-checkbox-disabled",ue.disabled)("mat-checkbox-label-before","before"==ue.labelPosition)("_mat-animation-noopable","NoopAnimations"===ue._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[b._Bn([ne]),b.qOj],ngContentSelectors:P,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(te,ue){if(1&te&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2),b.TgZ(3,"input",3,4),b.NdJ("change",function(Le){return ue._onInteractionEvent(Le)})("click",function(Le){return ue._onInputClick(Le)}),b.qZA(),b.TgZ(5,"span",5),b._UZ(6,"span",6),b.qZA(),b._UZ(7,"span",7),b.TgZ(8,"span",8),b.O4$(),b.TgZ(9,"svg",9),b._UZ(10,"path",10),b.qZA(),b.kcU(),b._UZ(11,"span",11),b.qZA(),b.qZA(),b.TgZ(12,"span",12,13),b.NdJ("cdkObserveContent",function(){return ue._onLabelTextChange()}),b.TgZ(14,"span",14),b._uU(15,"\xa0"),b.qZA(),b.Hsn(16),b.qZA(),b.qZA()),2&te){const de=b.MAs(1),Le=b.MAs(13);b.uIk("for",ue.inputId),b.xp6(2),b.ekj("mat-checkbox-inner-container-no-side-margin",!Le.textContent||!Le.textContent.trim()),b.xp6(1),b.Q6J("id",ue.inputId)("required",ue.required)("checked",ue.checked)("disabled",ue.disabled)("tabIndex",ue.tabIndex),b.uIk("value",ue.value)("name",ue.name)("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby)("aria-checked",ue._getAriaChecked())("aria-describedby",ue.ariaDescribedby),b.xp6(2),b.Q6J("matRippleTrigger",de)("matRippleDisabled",ue._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",b.VKq(19,I,"NoopAnimations"===ue._animationMode?0:150))}},directives:[w.wG,E.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[w.si,w.BQ,E.Q8,T],w.BQ,T]}),Y})()},26688:($e,_e,p)=>{"use strict";p.d(_e,{HS:()=>de,oH:()=>le,qn:()=>W,Hi:()=>me});var e=p(91159),b=p(5e3),_=p(90508),w=p(63191),g=p(69808),A=p(76360),E=p(8929),C=p(36787),I=p(72986),P=p(7625),m=p(1059),L=p(70925),O=p(15664),G=p(20449),ne=p(93075),ge=p(67322),J=p(50226);const Me=["*"],Re=new b.OlP("MatChipRemove"),T=new b.OlP("MatChipAvatar"),j=new b.OlP("MatChipTrailingIcon");class Y{constructor(Ie){this._elementRef=Ie}}const q=(0,_.sb)((0,_.pj)((0,_.Kr)(Y),"primary"),-1);let de=(()=>{class be extends q{constructor(pe,Se,Xe,Je,nt,Ve,X,z){super(pe),this._ngZone=Se,this._changeDetectorRef=nt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new E.xQ,this._onBlur=new E.xQ,this.selectionChange=new b.vpe,this.destroyed=new b.vpe,this.removed=new b.vpe,this._addHostClassName(),this._chipRippleTarget=Ve.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new _.IR(this,Se,this._chipRippleTarget,Xe),this._chipRipple.setupTriggerEvents(pe),this.rippleConfig=Je||{},this._animationsDisabled="NoopAnimations"===X,this.tabIndex=null!=z&&parseInt(z)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(pe){const Se=(0,w.Ig)(pe);Se!==this._selected&&(this._selected=Se,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(pe){this._value=pe}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(pe){this._selectable=(0,w.Ig)(pe)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get removable(){return this._removable}set removable(pe){this._removable=(0,w.Ig)(pe)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const pe="mat-basic-chip",Se=this._elementRef.nativeElement;Se.hasAttribute(pe)||Se.tagName.toLowerCase()===pe?Se.classList.add(pe):Se.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(pe=!1){return this._selected=!this.selected,this._dispatchSelectionChange(pe),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(pe){this.disabled&&pe.preventDefault()}_handleKeydown(pe){if(!this.disabled)switch(pe.keyCode){case e.yY:case e.ZH:this.remove(),pe.preventDefault();break;case e.L_:this.selectable&&this.toggleSelected(!0),pe.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(pe=!1){this.selectionChange.emit({source:this,isUserInput:pe,selected:this._selected})}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.R0b),b.Y36(L.t4),b.Y36(_.Y2,8),b.Y36(b.sBO),b.Y36(g.K0),b.Y36(A.Qb,8),b.$8M("tabindex"))},be.\u0275dir=b.lG2({type:be,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(pe,Se,Xe){if(1&pe&&(b.Suo(Xe,T,5),b.Suo(Xe,j,5),b.Suo(Xe,Re,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se.avatar=Je.first),b.iGM(Je=b.CRH())&&(Se.trailingIcon=Je.first),b.iGM(Je=b.CRH())&&(Se.removeIcon=Je.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(pe,Se){1&pe&&b.NdJ("click",function(Je){return Se._handleClick(Je)})("keydown",function(Je){return Se._handleKeydown(Je)})("focus",function(){return Se.focus()})("blur",function(){return Se._blur()}),2&pe&&(b.uIk("tabindex",Se.disabled?null:Se.tabIndex)("disabled",Se.disabled||null)("aria-disabled",Se.disabled.toString())("aria-selected",Se.ariaSelected),b.ekj("mat-chip-selected",Se.selected)("mat-chip-with-avatar",Se.avatar)("mat-chip-with-trailing-icon",Se.trailingIcon||Se.removeIcon)("mat-chip-disabled",Se.disabled)("_mat-animation-noopable",Se._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[b.qOj]}),be})();const Ue=new b.OlP("mat-chips-default-options");let ze=0,le=(()=>{class be{constructor(pe,Se){this._elementRef=pe,this._defaultOptions=Se,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new b.vpe,this.placeholder="",this.id="mat-chip-list-input-"+ze++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(pe){pe&&(this._chipList=pe,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(pe){this._addOnBlur=(0,w.Ig)(pe)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(pe){if(pe){if(pe.keyCode===e.Mf&&!(0,e.Vb)(pe,"shiftKey")&&this._chipList._allowFocusEscape(),pe.keyCode===e.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void pe.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(pe)}_keyup(pe){!this._focusLastChipOnBackspace&&pe.keyCode===e.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,pe.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(pe){!this.inputElement.value&&!!pe&&this._chipList._keydown(pe),(!pe||this._isSeparatorKey(pe))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==pe||pe.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(pe){this.inputElement.focus(pe)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(pe){return!(0,e.Vb)(pe)&&new Set(this.separatorKeyCodes).has(pe.keyCode)}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(Ue))},be.\u0275dir=b.lG2({type:be,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(pe,Se){1&pe&&b.NdJ("keydown",function(Je){return Se._keydown(Je)})("keyup",function(Je){return Se._keyup(Je)})("blur",function(){return Se._blur()})("focus",function(){return Se._focus()})("input",function(){return Se._onInput()}),2&pe&&(b.Ikx("id",Se.id),b.uIk("disabled",Se.disabled||null)("placeholder",Se.placeholder||null)("aria-invalid",Se._chipList&&Se._chipList.ngControl?Se._chipList.ngControl.invalid:null)("aria-required",Se._chipList&&Se._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[b.TTD]}),be})();const je=(0,_.FD)(class{constructor(be,Ie,pe,Se){this._defaultErrorStateMatcher=be,this._parentForm=Ie,this._parentFormGroup=pe,this.ngControl=Se}});let ye=0;class Be{constructor(Ie,pe){this.source=Ie,this.value=pe}}let W=(()=>{class be extends je{constructor(pe,Se,Xe,Je,nt,Ve,X){super(Ve,Je,nt,X),this._elementRef=pe,this._changeDetectorRef=Se,this._dir=Xe,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new E.xQ,this._uid="mat-chip-list-"+ye++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(z,Q)=>z===Q,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new b.vpe,this.valueChange=new b.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var pe,Se;return this.multiple?(null===(pe=this._selectionModel)||void 0===pe?void 0:pe.selected)||[]:null===(Se=this._selectionModel)||void 0===Se?void 0:Se.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(pe){this._multiple=(0,w.Ig)(pe),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(pe){this._compareWith=pe,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(pe){this.writeValue(pe),this._value=pe}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var pe,Se,Xe,Je;return null!==(Je=null!==(pe=this._required)&&void 0!==pe?pe:null===(Xe=null===(Se=this.ngControl)||void 0===Se?void 0:Se.control)||void 0===Xe?void 0:Xe.hasValidator(ne.kI.required))&&void 0!==Je&&Je}set required(pe){this._required=(0,w.Ig)(pe),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(pe){this._placeholder=pe,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(pe){this._disabled=(0,w.Ig)(pe),this._syncChipsState()}get selectable(){return this._selectable}set selectable(pe){this._selectable=(0,w.Ig)(pe),this.chips&&this.chips.forEach(Se=>Se.chipListSelectable=this._selectable)}set tabIndex(pe){this._userTabIndex=pe,this._tabIndex=pe}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(pe=>pe.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(pe=>pe._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(pe=>pe.destroyed))}ngAfterContentInit(){this._keyManager=new O.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(pe=>this._keyManager.withHorizontalOrientation(pe)),this._keyManager.tabOut.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,m.O)(null),(0,P.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new G.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(pe){this._chipInput=pe,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",pe.id)}setDescribedByIds(pe){this._ariaDescribedby=pe.join(" ")}writeValue(pe){this.chips&&this._setSelectionByValue(pe,!1)}registerOnChange(pe){this._onChange=pe}registerOnTouched(pe){this._onTouched=pe}setDisabledState(pe){this.disabled=pe,this.stateChanges.next()}onContainerClick(pe){this._originatesFromChip(pe)||this.focus()}focus(pe){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(pe),this.stateChanges.next()))}_focusInput(pe){this._chipInput&&this._chipInput.focus(pe)}_keydown(pe){const Se=pe.target;Se&&Se.classList.contains("mat-chip")&&(this._keyManager.onKeydown(pe),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const pe=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(pe)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(pe){return pe>=0&&peXe.deselect()),Array.isArray(pe))pe.forEach(Xe=>this._selectValue(Xe,Se)),this._sortValues();else{const Xe=this._selectValue(pe,Se);Xe&&Se&&this._keyManager.setActiveItem(Xe)}}_selectValue(pe,Se=!0){const Xe=this.chips.find(Je=>null!=Je.value&&this._compareWith(Je.value,pe));return Xe&&(Se?Xe.selectViaInteraction():Xe.select(),this._selectionModel.select(Xe)),Xe}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(pe){this._selectionModel.clear(),this.chips.forEach(Se=>{Se!==pe&&Se.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(pe=>{pe.selected&&this._selectionModel.select(pe)}),this.stateChanges.next())}_propagateChanges(pe){let Se=null;Se=Array.isArray(this.selected)?this.selected.map(Xe=>Xe.value):this.selected?this.selected.value:pe,this._value=Se,this.change.emit(new Be(this,Se)),this.valueChange.emit(Se),this._onChange(Se),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(pe=>{pe.source.selected?this._selectionModel.select(pe.source):this._selectionModel.deselect(pe.source),this.multiple||this.chips.forEach(Se=>{!this._selectionModel.isSelected(Se)&&Se.selected&&Se.deselect()}),pe.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(pe=>{let Se=this.chips.toArray().indexOf(pe.chip);this._isValidIndex(Se)&&this._keyManager.updateActiveItem(Se),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(pe=>{const Se=pe.chip,Xe=this.chips.toArray().indexOf(pe.chip);this._isValidIndex(Xe)&&Se._hasFocus&&(this._lastDestroyedChipIndex=Xe)})}_originatesFromChip(pe){let Se=pe.target;for(;Se&&Se!==this._elementRef.nativeElement;){if(Se.classList.contains("mat-chip"))return!0;Se=Se.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(pe=>pe._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(pe=>{pe._chipListDisabled=this._disabled,pe._chipListMultiple=this.multiple})}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(J.Is,8),b.Y36(ne.F,8),b.Y36(ne.sg,8),b.Y36(_.rD),b.Y36(ne.a5,10))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-chip-list"]],contentQueries:function(pe,Se,Xe){if(1&pe&&b.Suo(Xe,de,5),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se.chips=Je)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(pe,Se){1&pe&&b.NdJ("focus",function(){return Se.focus()})("blur",function(){return Se._blur()})("keydown",function(Je){return Se._keydown(Je)}),2&pe&&(b.Ikx("id",Se._uid),b.uIk("tabindex",Se.disabled?null:Se._tabIndex)("aria-describedby",Se._ariaDescribedby||null)("aria-required",Se.role?Se.required:null)("aria-disabled",Se.disabled.toString())("aria-invalid",Se.errorState)("aria-multiselectable",Se.multiple)("role",Se.role)("aria-orientation",Se.ariaOrientation),b.ekj("mat-chip-list-disabled",Se.disabled)("mat-chip-list-invalid",Se.errorState)("mat-chip-list-required",Se.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[b._Bn([{provide:ge.Eo,useExisting:be}]),b.qOj],ngContentSelectors:Me,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(pe,Se){1&pe&&(b.F$t(),b.TgZ(0,"div",0),b.Hsn(1),b.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),be})(),me=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275mod=b.oAB({type:be}),be.\u0275inj=b.cJS({providers:[_.rD,{provide:Ue,useValue:{separatorKeyCodes:[e.K5]}}],imports:[[_.BQ]]}),be})()},90508:($e,_e,p)=>{"use strict";p.d(_e,{yN:()=>oe,mZ:()=>Re,_A:()=>W,rD:()=>nt,sG:()=>R,K7:()=>h,HF:()=>t,Y2:()=>o,BQ:()=>Y,X2:()=>Ve,uc:()=>Q,XK:()=>Xe,ey:()=>lt,Ng:()=>Lt,rN:()=>At,nP:()=>s,us:()=>r,wG:()=>d,si:()=>l,LF:()=>Ie,IR:()=>Ae,CB:()=>Ut,jH:()=>mt,pj:()=>Le,Kr:()=>Ue,Id:()=>de,FD:()=>le,dB:()=>je,sb:()=>ze,E0:()=>X});var e=p(5e3),b=p(50226),w=p(69808),g=p(70925),A=p(15664),E=p(63191),C=p(8929),I=p(56498),P=p(1059),m=p(76360),L=p(91159);function ne(Ee,Ge){if(1&Ee&&e._UZ(0,"mat-pseudo-checkbox",4),2&Ee){const U=e.oxw();e.Q6J("state",U.selected?"checked":"unchecked")("disabled",U.disabled)}}function ge(Ee,Ge){if(1&Ee&&(e.TgZ(0,"span",5),e._uU(1),e.qZA()),2&Ee){const U=e.oxw();e.xp6(1),e.hij("(",U.group.label,")")}}const J=["*"];let oe=(()=>{class Ee{}return Ee.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ee.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ee.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ee.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ee})(),Re=(()=>{class Ee{}return Ee.COMPLEX="375ms",Ee.ENTERING="225ms",Ee.EXITING="195ms",Ee})();const j=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function T(){return!0}});let Y=(()=>{class Ee{constructor(U,k,ie){this._sanityChecks=k,this._document=ie,this._hasDoneGlobalChecks=!1,U._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(U){return!(0,g.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[U])}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.LFG(A.qm),e.LFG(j,8),e.LFG(w.K0))},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[b.vT],b.vT]}),Ee})();function de(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._disabled=!1}get disabled(){return this._disabled}set disabled(Ge){this._disabled=(0,E.Ig)(Ge)}}}function Le(Ee,Ge){return class extends Ee{constructor(...U){super(...U),this.defaultColor=Ge,this.color=Ge}get color(){return this._color}set color(U){const k=U||this.defaultColor;k!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),k&&this._elementRef.nativeElement.classList.add(`mat-${k}`),this._color=k)}}}function Ue(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Ge){this._disableRipple=(0,E.Ig)(Ge)}}}function ze(Ee,Ge=0){return class extends Ee{constructor(...U){super(...U),this._tabIndex=Ge,this.defaultTabIndex=Ge}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(U){this._tabIndex=null!=U?(0,E.su)(U):this.defaultTabIndex}}}function le(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this.stateChanges=new C.xQ,this.errorState=!1}updateErrorState(){const Ge=this.errorState,ce=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);ce!==Ge&&(this.errorState=ce,this.stateChanges.next())}}}function je(Ee){return class extends Ee{constructor(...Ge){super(...Ge),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new I.y(U=>{this._isInitialized?this._notifySubscriber(U):this._pendingSubscribers.push(U)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Ge){Ge.next(),Ge.complete()}}}const ye=new e.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function Be(){return(0,e.f3M)(e.soG)}});class W{constructor(){this._localeChanges=new C.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(Ge){return this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:null}deserialize(Ge){return null==Ge||this.isDateInstance(Ge)&&this.isValid(Ge)?Ge:this.invalid()}setLocale(Ge){this.locale=Ge,this._localeChanges.next()}compareDate(Ge,U){return this.getYear(Ge)-this.getYear(U)||this.getMonth(Ge)-this.getMonth(U)||this.getDate(Ge)-this.getDate(U)}sameDate(Ge,U){if(Ge&&U){let k=this.isValid(Ge),ie=this.isValid(U);return k&&ie?!this.compareDate(Ge,U):k==ie}return Ge==U}clampDate(Ge,U,k){return U&&this.compareDate(Ge,U)<0?U:k&&this.compareDate(Ge,k)>0?k:Ge}}const R=new e.OlP("mat-date-formats"),me=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function be(Ee,Ge){const U=Array(Ee);for(let k=0;k{class Ee extends W{constructor(U,k){super(),this.useUtcForDisplay=!1,super.setLocale(U)}getYear(U){return U.getFullYear()}getMonth(U){return U.getMonth()}getDate(U){return U.getDate()}getDayOfWeek(U){return U.getDay()}getMonthNames(U){const k=new Intl.DateTimeFormat(this.locale,{month:U,timeZone:"utc"});return be(12,ie=>this._format(k,new Date(2017,ie,1)))}getDateNames(){const U=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return be(31,k=>this._format(U,new Date(2017,0,k+1)))}getDayOfWeekNames(U){const k=new Intl.DateTimeFormat(this.locale,{weekday:U,timeZone:"utc"});return be(7,ie=>this._format(k,new Date(2017,0,ie+1)))}getYearName(U){const k=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(k,U)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(U){return this.getDate(this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+1,0))}clone(U){return new Date(U.getTime())}createDate(U,k,ie){let ce=this._createDateWithOverflow(U,k,ie);return ce.getMonth(),ce}today(){return new Date}parse(U){return"number"==typeof U?new Date(U):U?new Date(Date.parse(U)):null}format(U,k){if(!this.isValid(U))throw Error("NativeDateAdapter: Cannot format invalid date.");const ie=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},k),{timeZone:"utc"}));return this._format(ie,U)}addCalendarYears(U,k){return this.addCalendarMonths(U,12*k)}addCalendarMonths(U,k){let ie=this._createDateWithOverflow(this.getYear(U),this.getMonth(U)+k,this.getDate(U));return this.getMonth(ie)!=((this.getMonth(U)+k)%12+12)%12&&(ie=this._createDateWithOverflow(this.getYear(ie),this.getMonth(ie),0)),ie}addCalendarDays(U,k){return this._createDateWithOverflow(this.getYear(U),this.getMonth(U),this.getDate(U)+k)}toIso8601(U){return[U.getUTCFullYear(),this._2digit(U.getUTCMonth()+1),this._2digit(U.getUTCDate())].join("-")}deserialize(U){if("string"==typeof U){if(!U)return null;if(me.test(U)){let k=new Date(U);if(this.isValid(k))return k}}return super.deserialize(U)}isDateInstance(U){return U instanceof Date}isValid(U){return!isNaN(U.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(U,k,ie){const ce=new Date;return ce.setFullYear(U,k,ie),ce.setHours(0,0,0,0),ce}_2digit(U){return("00"+U).slice(-2)}_format(U,k){const ie=new Date;return ie.setUTCFullYear(k.getFullYear(),k.getMonth(),k.getDate()),ie.setUTCHours(k.getHours(),k.getMinutes(),k.getSeconds(),k.getMilliseconds()),U.format(ie)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.LFG(ye,8),e.LFG(g.t4))},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const pe={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Se=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:[{provide:W,useClass:Ie}],imports:[[g.ud]]}),Ee})(),Xe=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({providers:[{provide:R,useValue:pe}],imports:[[Se]]}),Ee})(),nt=(()=>{class Ee{isErrorState(U,k){return!!(U&&U.invalid&&(U.touched||k&&k.submitted))}}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})(),Ve=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ee})();function X(Ee,Ge,U="mat"){Ee.changes.pipe((0,P.O)(Ee)).subscribe(({length:k})=>{z(Ge,`${U}-2-line`,!1),z(Ge,`${U}-3-line`,!1),z(Ge,`${U}-multi-line`,!1),2===k||3===k?z(Ge,`${U}-${k}-line`,!0):k>3&&z(Ge,`${U}-multi-line`,!0)})}function z(Ee,Ge,U){Ee.nativeElement.classList.toggle(Ge,U)}let Q=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y],Y]}),Ee})();class D{constructor(Ge,U,k){this._renderer=Ge,this.element=U,this.config=k,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const H={enterDuration:225,exitDuration:150},xe=(0,g.i$)({passive:!0}),Qe=["mousedown","touchstart"],Te=["mouseup","mouseleave","touchend","touchcancel"];class Ae{constructor(Ge,U,k,ie){this._target=Ge,this._ngZone=U,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ie.isBrowser&&(this._containerElement=(0,E.fI)(k))}fadeInRipple(Ge,U,k={}){const ie=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),ce=Object.assign(Object.assign({},H),k.animation);k.centered&&(Ge=ie.left+ie.width/2,U=ie.top+ie.height/2);const He=k.radius||function i(Ee,Ge,U){const k=Math.max(Math.abs(Ee-U.left),Math.abs(Ee-U.right)),ie=Math.max(Math.abs(Ge-U.top),Math.abs(Ge-U.bottom));return Math.sqrt(k*k+ie*ie)}(Ge,U,ie),ct=Ge-ie.left,bt=U-ie.top,xt=ce.enterDuration,Yt=document.createElement("div");Yt.classList.add("mat-ripple-element"),Yt.style.left=ct-He+"px",Yt.style.top=bt-He+"px",Yt.style.height=2*He+"px",Yt.style.width=2*He+"px",null!=k.color&&(Yt.style.backgroundColor=k.color),Yt.style.transitionDuration=`${xt}ms`,this._containerElement.appendChild(Yt),function ae(Ee){window.getComputedStyle(Ee).getPropertyValue("opacity")}(Yt),Yt.style.transform="scale(1)";const It=new D(this,Yt,k);return It.state=0,this._activeRipples.add(It),k.persistent||(this._mostRecentTransientRipple=It),this._runTimeoutOutsideZone(()=>{const Rt=It===this._mostRecentTransientRipple;It.state=1,!k.persistent&&(!Rt||!this._isPointerDown)&&It.fadeOut()},xt),It}fadeOutRipple(Ge){const U=this._activeRipples.delete(Ge);if(Ge===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!U)return;const k=Ge.element,ie=Object.assign(Object.assign({},H),Ge.config.animation);k.style.transitionDuration=`${ie.exitDuration}ms`,k.style.opacity="0",Ge.state=2,this._runTimeoutOutsideZone(()=>{Ge.state=3,k.remove()},ie.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Ge=>Ge.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Ge=>{Ge.config.persistent||Ge.fadeOut()})}setupTriggerEvents(Ge){const U=(0,E.fI)(Ge);!U||U===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=U,this._registerEvents(Qe))}handleEvent(Ge){"mousedown"===Ge.type?this._onMousedown(Ge):"touchstart"===Ge.type?this._onTouchStart(Ge):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Te),this._pointerUpEventsRegistered=!0)}_onMousedown(Ge){const U=(0,A.X6)(Ge),k=this._lastTouchStartEvent&&Date.now(){!Ge.config.persistent&&(1===Ge.state||Ge.config.terminateOnPointerUp&&0===Ge.state)&&Ge.fadeOut()}))}_runTimeoutOutsideZone(Ge,U=0){this._ngZone.runOutsideAngular(()=>setTimeout(Ge,U))}_registerEvents(Ge){this._ngZone.runOutsideAngular(()=>{Ge.forEach(U=>{this._triggerElement.addEventListener(U,this,xe)})})}_removeTriggerEvents(){this._triggerElement&&(Qe.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,xe)}),this._pointerUpEventsRegistered&&Te.forEach(Ge=>{this._triggerElement.removeEventListener(Ge,this,xe)}))}}const o=new e.OlP("mat-ripple-global-options");let d=(()=>{class Ee{constructor(U,k,ie,ce,He){this._elementRef=U,this._animationMode=He,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=ce||{},this._rippleRenderer=new Ae(this,k,U,ie)}get disabled(){return this._disabled}set disabled(U){U&&this.fadeOutAllNonPersistent(),this._disabled=U,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(U){this._trigger=U,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(U,k=0,ie){return"number"==typeof U?this._rippleRenderer.fadeInRipple(U,k,Object.assign(Object.assign({},this.rippleConfig),ie)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),U))}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(g.t4),e.Y36(o,8),e.Y36(m.Qb,8))},Ee.\u0275dir=e.lG2({type:Ee,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(U,k){2&U&&e.ekj("mat-ripple-unbounded",k.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"]}),Ee})(),l=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y,g.ud],Y]}),Ee})(),s=(()=>{class Ee{constructor(U){this._animationMode=U,this.state="unchecked",this.disabled=!1}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(m.Qb,8))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(U,k){2&U&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===k.state)("mat-pseudo-checkbox-checked","checked"===k.state)("mat-pseudo-checkbox-disabled",k.disabled)("_mat-animation-noopable","NoopAnimations"===k._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(U,k){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ee})(),r=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[Y]]}),Ee})();const t=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),h=new e.OlP("MatOptgroup");let We=0;class At{constructor(Ge,U=!1){this.source=Ge,this.isUserInput=U}}let Ht=(()=>{class Ee{constructor(U,k,ie,ce){this._element=U,this._changeDetectorRef=k,this._parent=ie,this.group=ce,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+We++,this.onSelectionChange=new e.vpe,this._stateChanges=new C.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(U){this._disabled=(0,E.Ig)(U)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(U,k){const ie=this._getHostElement();"function"==typeof ie.focus&&ie.focus(k)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(U){(U.keyCode===L.K5||U.keyCode===L.L_)&&!(0,L.Vb)(U)&&(this._selectViaInteraction(),U.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const U=this.viewValue;U!==this._mostRecentViewValue&&(this._mostRecentViewValue=U,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(U=!1){this.onSelectionChange.emit(new At(this,U))}}return Ee.\u0275fac=function(U){e.$Z()},Ee.\u0275dir=e.lG2({type:Ee,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ee})(),lt=(()=>{class Ee extends Ht{constructor(U,k,ie,ce){super(U,k,ie,ce)}}return Ee.\u0275fac=function(U){return new(U||Ee)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(t,8),e.Y36(h,8))},Ee.\u0275cmp=e.Xpm({type:Ee,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(U,k){1&U&&e.NdJ("click",function(){return k._selectViaInteraction()})("keydown",function(ce){return k._handleKeydown(ce)}),2&U&&(e.Ikx("id",k.id),e.uIk("tabindex",k._getTabIndex())("aria-selected",k._getAriaSelected())("aria-disabled",k.disabled.toString()),e.ekj("mat-selected",k.selected)("mat-option-multiple",k.multiple)("mat-active",k.active)("mat-option-disabled",k.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:J,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(U,k){1&U&&(e.F$t(),e.YNc(0,ne,1,2,"mat-pseudo-checkbox",0),e.TgZ(1,"span",1),e.Hsn(2),e.qZA(),e.YNc(3,ge,2,1,"span",2),e._UZ(4,"div",3)),2&U&&(e.Q6J("ngIf",k.multiple),e.xp6(3),e.Q6J("ngIf",k.group&&k.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",k._getHostElement())("matRippleDisabled",k.disabled||k.disableRipple))},directives:[s,w.O5,d],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ee})();function Ut(Ee,Ge,U){if(U.length){let k=Ge.toArray(),ie=U.toArray(),ce=0;for(let He=0;HeU+k?Math.max(0,Ee-k+Ge):U}let Lt=(()=>{class Ee{}return Ee.\u0275fac=function(U){return new(U||Ee)},Ee.\u0275mod=e.oAB({type:Ee}),Ee.\u0275inj=e.cJS({imports:[[l,w.ez,Y,r]]}),Ee})()},86856:($e,_e,p)=>{"use strict";p.d(_e,{Mq:()=>bt,hl:()=>Bt,FA:()=>ot,nW:()=>ai});var e=p(15664),b=p(92845),_=p(47429),w=p(69808),g=p(5e3),A=p(47423),E=p(53435),C=p(90508),I=p(8929),P=p(42654),m=p(36787),L=p(21086),O=p(91159),G=p(72986),ne=p(1059),ge=p(92198),J=p(50226),Me=p(63191),oe=p(70925),Re=p(41777),T=p(93075),j=p(67322),Y=p(98833);const q=["mat-calendar-body",""];function te(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",2),g.TgZ(1,"td",3),g._uU(2),g.qZA(),g.qZA()),2&Ke){const F=g.oxw();g.xp6(1),g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F.numCols),g.xp6(1),g.hij(" ",F.label," ")}}function ue(Ke,vt){if(1&Ke&&(g.TgZ(0,"td",3),g._uU(1),g.qZA()),2&Ke){const F=g.oxw(2);g.Udp("padding-top",F._cellPadding)("padding-bottom",F._cellPadding),g.uIk("colspan",F._firstRowOffset),g.xp6(1),g.hij(" ",F._firstRowOffset>=F.labelMinRequiredCells?F.label:""," ")}}function de(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"td",7),g.TgZ(1,"button",8),g.NdJ("click",function(gt){const ri=g.CHM(F).$implicit;return g.oxw(2)._cellClicked(ri,gt)}),g.TgZ(2,"div",9),g._uU(3),g.qZA(),g._UZ(4,"div",10),g.qZA(),g.qZA()}if(2&Ke){const F=vt.$implicit,Ye=vt.index,gt=g.oxw().index,Dt=g.oxw();g.Udp("width",Dt._cellWidth)("padding-top",Dt._cellPadding)("padding-bottom",Dt._cellPadding),g.uIk("data-mat-row",gt)("data-mat-col",Ye),g.xp6(1),g.ekj("mat-calendar-body-disabled",!F.enabled)("mat-calendar-body-active",Dt._isActiveCell(gt,Ye))("mat-calendar-body-range-start",Dt._isRangeStart(F.compareValue))("mat-calendar-body-range-end",Dt._isRangeEnd(F.compareValue))("mat-calendar-body-in-range",Dt._isInRange(F.compareValue))("mat-calendar-body-comparison-bridge-start",Dt._isComparisonBridgeStart(F.compareValue,gt,Ye))("mat-calendar-body-comparison-bridge-end",Dt._isComparisonBridgeEnd(F.compareValue,gt,Ye))("mat-calendar-body-comparison-start",Dt._isComparisonStart(F.compareValue))("mat-calendar-body-comparison-end",Dt._isComparisonEnd(F.compareValue))("mat-calendar-body-in-comparison-range",Dt._isInComparisonRange(F.compareValue))("mat-calendar-body-preview-start",Dt._isPreviewStart(F.compareValue))("mat-calendar-body-preview-end",Dt._isPreviewEnd(F.compareValue))("mat-calendar-body-in-preview",Dt._isInPreview(F.compareValue)),g.Q6J("ngClass",F.cssClasses)("tabindex",Dt._isActiveCell(gt,Ye)?0:-1),g.uIk("aria-label",F.ariaLabel)("aria-disabled",!F.enabled||null)("aria-pressed",Dt._isSelected(F.compareValue))("aria-current",Dt.todayValue===F.compareValue?"date":null),g.xp6(1),g.ekj("mat-calendar-body-selected",Dt._isSelected(F.compareValue))("mat-calendar-body-comparison-identical",Dt._isComparisonIdentical(F.compareValue))("mat-calendar-body-today",Dt.todayValue===F.compareValue),g.xp6(1),g.hij(" ",F.displayValue," ")}}function Le(Ke,vt){if(1&Ke&&(g.TgZ(0,"tr",4),g.YNc(1,ue,2,6,"td",5),g.YNc(2,de,5,47,"td",6),g.qZA()),2&Ke){const F=vt.$implicit,Ye=vt.index,gt=g.oxw();g.xp6(1),g.Q6J("ngIf",0===Ye&>._firstRowOffset),g.xp6(1),g.Q6J("ngForOf",F)}}function Ue(Ke,vt){if(1&Ke&&(g.TgZ(0,"th",5),g._uU(1),g.qZA()),2&Ke){const F=vt.$implicit;g.uIk("aria-label",F.long),g.xp6(1),g.hij(" ",F.narrow," ")}}const ze=["*"];function le(Ke,vt){}function je(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-month-view",5),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("_userSelection",function(gt){return g.CHM(F),g.oxw()._dateSelected(gt)}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)("comparisonStart",F.comparisonStart)("comparisonEnd",F.comparisonEnd)}}function ye(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-year-view",6),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("monthSelected",function(gt){return g.CHM(F),g.oxw()._monthSelectedInYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"month")}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function Be(Ke,vt){if(1&Ke){const F=g.EpF();g.TgZ(0,"mat-multi-year-view",7),g.NdJ("activeDateChange",function(gt){return g.CHM(F),g.oxw().activeDate=gt})("yearSelected",function(gt){return g.CHM(F),g.oxw()._yearSelectedInMultiYearView(gt)})("selectedChange",function(gt){return g.CHM(F),g.oxw()._goToDateInView(gt,"year")}),g.qZA()}if(2&Ke){const F=g.oxw();g.Q6J("activeDate",F.activeDate)("selected",F.selected)("dateFilter",F.dateFilter)("maxDate",F.maxDate)("minDate",F.minDate)("dateClass",F.dateClass)}}function W(Ke,vt){}const R=["button"];function me(Ke,vt){1&Ke&&(g.O4$(),g.TgZ(0,"svg",3),g._UZ(1,"path",4),g.qZA())}const be=[[["","matDatepickerToggleIcon",""]]],Ie=["[matDatepickerToggleIcon]"];class nt{constructor(vt,F,Ye,gt,Dt={},ri=vt,ti){this.value=vt,this.displayValue=F,this.ariaLabel=Ye,this.enabled=gt,this.cssClasses=Dt,this.compareValue=ri,this.rawValue=ti}}let Ve=(()=>{class Ke{constructor(F,Ye){this._elementRef=F,this._ngZone=Ye,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new g.vpe,this.previewChange=new g.vpe,this._enterHandler=gt=>{if(this._skipNextFocus&&"focus"===gt.type)this._skipNextFocus=!1;else if(gt.target&&this.isRange){const Dt=this._getCellFromElement(gt.target);Dt&&this._ngZone.run(()=>this.previewChange.emit({value:Dt.enabled?Dt:null,event:gt}))}},this._leaveHandler=gt=>{null!==this.previewEnd&&this.isRange&>.target&&this._getCellFromElement(gt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:gt}))},Ye.runOutsideAngular(()=>{const gt=F.nativeElement;gt.addEventListener("mouseenter",this._enterHandler,!0),gt.addEventListener("focus",this._enterHandler,!0),gt.addEventListener("mouseleave",this._leaveHandler,!0),gt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(F,Ye){F.enabled&&this.selectedValueChange.emit({value:F.value,event:Ye})}_isSelected(F){return this.startValue===F||this.endValue===F}ngOnChanges(F){const Ye=F.numCols,{rows:gt,numCols:Dt}=this;(F.rows||Ye)&&(this._firstRowOffset=gt&>.length&>[0].length?Dt-gt[0].length:0),(F.cellAspectRatio||Ye||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Dt+"%"),(Ye||!this._cellWidth)&&(this._cellWidth=100/Dt+"%")}ngOnDestroy(){const F=this._elementRef.nativeElement;F.removeEventListener("mouseenter",this._enterHandler,!0),F.removeEventListener("focus",this._enterHandler,!0),F.removeEventListener("mouseleave",this._leaveHandler,!0),F.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(F,Ye){let gt=F*this.numCols+Ye;return F&&(gt-=this._firstRowOffset),gt==this.activeCell}_focusActiveCell(F=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>{const Ye=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Ye&&(F||(this._skipNextFocus=!0),Ye.focus())})})}_isRangeStart(F){return z(F,this.startValue,this.endValue)}_isRangeEnd(F){return Q(F,this.startValue,this.endValue)}_isInRange(F){return D(F,this.startValue,this.endValue,this.isRange)}_isComparisonStart(F){return z(F,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(F,Ye,gt){if(!this._isComparisonStart(F)||this._isRangeStart(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt-1];if(!Dt){const ri=this.rows[Ye-1];Dt=ri&&ri[ri.length-1]}return Dt&&!this._isRangeEnd(Dt.compareValue)}_isComparisonBridgeEnd(F,Ye,gt){if(!this._isComparisonEnd(F)||this._isRangeEnd(F)||!this._isInRange(F))return!1;let Dt=this.rows[Ye][gt+1];if(!Dt){const ri=this.rows[Ye+1];Dt=ri&&ri[0]}return Dt&&!this._isRangeStart(Dt.compareValue)}_isComparisonEnd(F){return Q(F,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(F){return D(F,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(F){return this.comparisonStart===this.comparisonEnd&&F===this.comparisonStart}_isPreviewStart(F){return z(F,this.previewStart,this.previewEnd)}_isPreviewEnd(F){return Q(F,this.previewStart,this.previewEnd)}_isInPreview(F){return D(F,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(F){let Ye;if(X(F)?Ye=F:X(F.parentNode)&&(Ye=F.parentNode),Ye){const gt=Ye.getAttribute("data-mat-row"),Dt=Ye.getAttribute("data-mat-col");if(gt&&Dt)return this.rows[parseInt(gt)][parseInt(Dt)]}return null}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(g.R0b))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[g.TTD],attrs:q,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(F,Ye){1&F&&(g.YNc(0,te,3,6,"tr",0),g.YNc(1,Le,3,2,"tr",1)),2&F&&(g.Q6J("ngIf",Ye._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Ke})();function X(Ke){return"TD"===Ke.nodeName}function z(Ke,vt,F){return null!==F&&vt!==F&&Ke=vt&&Ke===F}function D(Ke,vt,F,Ye){return Ye&&null!==vt&&null!==F&&vt!==F&&Ke>=vt&&Ke<=F}class H{constructor(vt,F){this.start=vt,this.end=F}}let V=(()=>{class Ke{constructor(F,Ye){this.selection=F,this._adapter=Ye,this._selectionChanged=new I.xQ,this.selectionChanged=this._selectionChanged,this.selection=F}updateSelection(F,Ye){const gt=this.selection;this.selection=F,this._selectionChanged.next({selection:F,source:Ye,oldValue:gt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(F){return this._adapter.isDateInstance(F)&&this._adapter.isValid(F)}}return Ke.\u0275fac=function(F){g.$Z()},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})(),xe=(()=>{class Ke extends V{constructor(F){super(null,F)}add(F){super.updateSelection(F,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const F=new Ke(this._adapter);return F.updateSelection(this.selection,this),F}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.LFG(C._A))},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac}),Ke})();const Ae={provide:V,deps:[[new g.FiY,new g.tp0,V],C._A],useFactory:function Te(Ke,vt){return Ke||new xe(vt)}},o=new g.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let t=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rangeStrategy=ri,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this._userSelection=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){const Ye=this._activeDate,gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Ye,this._activeDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnChanges(F){const Ye=F.comparisonStart||F.comparisonEnd;Ye&&!Ye.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(F){const Ye=F.value,gt=this._dateAdapter.getYear(this.activeDate),Dt=this._dateAdapter.getMonth(this.activeDate),ri=this._dateAdapter.createDate(gt,Dt,Ye);let ti,Di;this._selected instanceof H?(ti=this._getDateInCurrentMonth(this._selected.start),Di=this._getDateInCurrentMonth(this._selected.end)):ti=Di=this._getDateInCurrentMonth(this._selected),(ti!==Ye||Di!==Ye)&&this.selectedChange.emit(ri),this._userSelection.emit({value:ri,event:F.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,gt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case O.Ku:this.activeDate=F.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case O.VM:this.activeDate=F.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case O.K5:case O.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&F.preventDefault());case O.hY:return void(null!=this._previewEnd&&!(0,O.Vb)(F)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:F}),F.preventDefault(),F.stopPropagation()));default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let F=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(F)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(F){this._matCalendarBody._focusActiveCell(F)}_previewChanged({event:F,value:Ye}){if(this._rangeStrategy){const Dt=this._rangeStrategy.createPreview(Ye?Ye.rawValue:null,this.selected,F);this._previewStart=this._getCellCompareValue(Dt.start),this._previewEnd=this._getCellCompareValue(Dt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const F=this._dateAdapter.getFirstDayOfWeek(),Ye=this._dateAdapter.getDayOfWeekNames("narrow");let Dt=this._dateAdapter.getDayOfWeekNames("long").map((ri,ti)=>({long:ri,narrow:Ye[ti]}));this._weekdays=Dt.slice(F).concat(Dt.slice(0,F))}_createWeekCells(){const F=this._dateAdapter.getNumDaysInMonth(this.activeDate),Ye=this._dateAdapter.getDateNames();this._weeks=[[]];for(let gt=0,Dt=this._firstWeekOffset;gt=0)&&(!this.maxDate||this._dateAdapter.compareDate(F,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(F))}_getDateInCurrentMonth(F){return F&&this._hasSameMonthAndYear(F,this.activeDate)?this._dateAdapter.getDate(F):null}_hasSameMonthAndYear(F,Ye){return!(!F||!Ye||this._dateAdapter.getMonth(F)!=this._dateAdapter.getMonth(Ye)||this._dateAdapter.getYear(F)!=this._dateAdapter.getYear(Ye))}_getCellCompareValue(F){if(F){const Ye=this._dateAdapter.getYear(F),gt=this._dateAdapter.getMonth(F),Dt=this._dateAdapter.getDate(F);return new Date(Ye,gt,Dt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(F){F instanceof H?(this._rangeStart=this._getCellCompareValue(F.start),this._rangeEnd=this._getCellCompareValue(F.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(F),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(F){return!this.dateFilter||this.dateFilter(F)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.sBO),g.Y36(C.sG,8),g.Y36(C._A,8),g.Y36(J.Is,8),g.Y36(o,8))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-month-view"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(Ve,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._matCalendarBody=gt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[g.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"]],template:function(F,Ye){1&F&&(g.TgZ(0,"table",0),g.TgZ(1,"thead",1),g.TgZ(2,"tr"),g.YNc(3,Ue,2,2,"th",2),g.qZA(),g.TgZ(4,"tr"),g._UZ(5,"th",3),g.qZA(),g.qZA(),g.TgZ(6,"tbody",4),g.NdJ("selectedValueChange",function(Dt){return Ye._dateSelected(Dt)})("previewChange",function(Dt){return Ye._previewChanged(Dt)})("keyup",function(Dt){return Ye._handleCalendarBodyKeyup(Dt)})("keydown",function(Dt){return Ye._handleCalendarBodyKeydown(Dt)}),g.qZA(),g.qZA()),2&F&&(g.xp6(3),g.Q6J("ngForOf",Ye._weekdays),g.xp6(3),g.Q6J("label",Ye._monthLabel)("rows",Ye._weeks)("todayValue",Ye._todayDate)("startValue",Ye._rangeStart)("endValue",Ye._rangeEnd)("comparisonStart",Ye._comparisonRangeStart)("comparisonEnd",Ye._comparisonRangeEnd)("previewStart",Ye._previewStart)("previewEnd",Ye._previewEnd)("isRange",Ye._isRange)("labelMinRequiredCells",3)("activeCell",Ye._dateAdapter.getDate(Ye.activeDate)-1))},directives:[Ve,w.sg],encapsulation:2,changeDetection:0}),Ke})();const n=24;let c=(()=>{class Ke{constructor(F,Ye,gt){this._changeDetectorRef=F,this._dateAdapter=Ye,this._dir=gt,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),h(this._dateAdapter,Ye,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedYear(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Ye=this._dateAdapter.getYear(this._activeDate)-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let gt=0,Dt=[];gtthis._createCellForYear(ri))),Dt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(F){const Ye=F.value;this.yearSelected.emit(this._dateAdapter.createDate(Ye,0,1));let gt=this._dateAdapter.getMonth(this.activeDate),Dt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ye,gt,1));this.selectedChange.emit(this._dateAdapter.createDate(Ye,gt,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,gt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n-x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?-240:-n);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?240:n);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_getActiveCell(){return x(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(F){const Ye=this._dateAdapter.createDate(F,0,1),gt=this._dateAdapter.getYearName(Ye),Dt=this.dateClass?this.dateClass(Ye,"multi-year"):void 0;return new nt(F,gt,gt,this._shouldEnableYear(F),Dt)}_shouldEnableYear(F){if(null==F||this.maxDate&&F>this._dateAdapter.getYear(this.maxDate)||this.minDate&&F{class Ke{constructor(F,Ye,gt,Dt){this._changeDetectorRef=F,this._dateFormats=Ye,this._dateAdapter=gt,this._dir=Dt,this._rerenderSubscription=P.w.EMPTY,this.selectedChange=new g.vpe,this.monthSelected=new g.vpe,this.activeDateChange=new g.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(F){let Ye=this._activeDate;const gt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(gt,this.minDate,this.maxDate),this._dateAdapter.getYear(Ye)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F)),this._setSelectedMonth(F)}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,ne.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(F){const Ye=F.value,gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,1);this.monthSelected.emit(gt);const Dt=this._dateAdapter.getNumDaysInMonth(gt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ye,Math.min(this._dateAdapter.getDate(this.activeDate),Dt)))}_handleCalendarBodyKeydown(F){const Ye=this._activeDate,gt=this._isRtl();switch(F.keyCode){case O.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?1:-1);break;case O.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,gt?-1:1);break;case O.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case O.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case O.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case O.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case O.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?-10:-1);break;case O.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,F.altKey?10:1);break;case O.K5:case O.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Ye,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),F.preventDefault()}_handleCalendarBodyKeyup(F){(F.keyCode===O.L_||F.keyCode===O.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:F}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let F=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Ye=>Ye.map(gt=>this._createCellForMonth(gt,F[gt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(F){return F&&this._dateAdapter.getYear(F)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(F):null}_createCellForMonth(F,Ye){const gt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),F,1),Dt=this._dateAdapter.format(gt,this._dateFormats.display.monthYearA11yLabel),ri=this.dateClass?this.dateClass(gt,"year"):void 0;return new nt(F,Ye.toLocaleUpperCase(),Dt,this._shouldEnableMonth(F),ri)}_shouldEnableMonth(F){const Ye=this._dateAdapter.getYear(this.activeDate);if(null==F||this._isYearAndMonthAfterMaxDate(Ye,F)||this._isYearAndMonthBeforeMinDate(Ye,F))return!1;if(!this.dateFilter)return!0;for(let Dt=this._dateAdapter.createDate(Ye,F,1);this._dateAdapter.getMonth(Dt)==F;Dt=this._dateAdapter.addCalendarDays(Dt,1))if(this.dateFilter(Dt))return!0;return!1}_isYearAndMonthAfterMaxDate(F,Ye){if(this.maxDate){const gt=this._dateAdapter.getYear(this.maxDate),Dt=this._dateAdapter.getMonth(this.maxDate);return F>gt||F===gt&&Ye>Dt}return!1}_isYearAndMonthBeforeMinDate(F,Ye){if(this.minDate){const gt=this._dateAdapter.getYear(this.minDate),Dt=this._dateAdapter.getMonth(this.minDate);return F{class Ke{constructor(){this.changes=new I.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(F,Ye){return`${F} \u2013 ${Ye}`}}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275prov=g.Yz7({token:Ke,factory:Ke.\u0275fac,providedIn:"root"}),Ke})(),Ut=0,mt=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri){this._intl=F,this.calendar=Ye,this._dateAdapter=gt,this._dateFormats=Dt,this._buttonDescriptionId="mat-calendar-button-"+Ut++,this.calendar.stateChanges.subscribe(()=>ri.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const Ye=this._dateAdapter.getYear(this.calendar.activeDate)-x(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),gt=Ye+n-1,Dt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Ye,0,1)),ri=this._dateAdapter.getYearName(this._dateAdapter.createDate(gt,0,1));return this._intl.formatYearRange(Dt,ri)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-n)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:n)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(F,Ye){return"month"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye)&&this._dateAdapter.getMonth(F)==this._dateAdapter.getMonth(Ye):"year"==this.calendar.currentView?this._dateAdapter.getYear(F)==this._dateAdapter.getYear(Ye):h(this._dateAdapter,F,Ye,this.calendar.minDate,this.calendar.maxDate)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36((0,g.Gpc)(()=>Lt)),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ze,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(F,Ye){1&F&&(g.F$t(),g.TgZ(0,"div",0),g.TgZ(1,"div",1),g.TgZ(2,"button",2),g.NdJ("click",function(){return Ye.currentPeriodClicked()}),g.TgZ(3,"span"),g._uU(4),g.qZA(),g.O4$(),g.TgZ(5,"svg",3),g._UZ(6,"polygon",4),g.qZA(),g.qZA(),g.kcU(),g._UZ(7,"div",5),g.Hsn(8),g.TgZ(9,"button",6),g.NdJ("click",function(){return Ye.previousClicked()}),g.qZA(),g.TgZ(10,"button",7),g.NdJ("click",function(){return Ye.nextClicked()}),g.qZA(),g.qZA(),g.qZA()),2&F&&(g.xp6(2),g.uIk("aria-label",Ye.periodButtonLabel)("aria-describedby",Ye._buttonDescriptionId),g.xp6(1),g.uIk("id",Ye._buttonDescriptionId),g.xp6(1),g.Oqu(Ye.periodButtonText),g.xp6(1),g.ekj("mat-calendar-invert","month"!==Ye.calendar.currentView),g.xp6(4),g.Q6J("disabled",!Ye.previousEnabled()),g.uIk("aria-label",Ye.prevButtonLabel),g.xp6(1),g.Q6J("disabled",!Ye.nextEnabled()),g.uIk("aria-label",Ye.nextButtonLabel))},directives:[A.lW,e.Qr],encapsulation:2,changeDetection:0}),Ke})(),Lt=(()=>{class Ke{constructor(F,Ye,gt,Dt){this._dateAdapter=Ye,this._dateFormats=gt,this._changeDetectorRef=Dt,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new g.vpe,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this._userSelection=new g.vpe,this.stateChanges=new I.xQ,this._intlChanges=F.changes.subscribe(()=>{Dt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get selected(){return this._selected}set selected(F){this._selected=F instanceof H?F:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get minDate(){return this._minDate}set minDate(F){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get maxDate(){return this._maxDate}set maxDate(F){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get activeDate(){return this._clampedActiveDate}set activeDate(F){this._clampedActiveDate=this._dateAdapter.clampDate(F,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(F){const Ye=this._currentView!==F?F:null;this._currentView=F,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Ye&&this.viewChanged.emit(Ye)}ngAfterContentInit(){this._calendarHeaderPortal=new _.C5(this.headerComponent||mt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(F){const Ye=F.minDate||F.maxDate||F.dateFilter;if(Ye&&!Ye.firstChange){const gt=this._getCurrentViewComponent();gt&&(this._changeDetectorRef.detectChanges(),gt._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(F){const Ye=F.value;(this.selected instanceof H||Ye&&!this._dateAdapter.sameDate(Ye,this.selected))&&this.selectedChange.emit(Ye),this._userSelection.emit(F)}_yearSelectedInMultiYearView(F){this.yearSelected.emit(F)}_monthSelectedInYearView(F){this.monthSelected.emit(F)}_goToDateInView(F,Ye){this.activeDate=F,this.currentView=Ye}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(g.sBO))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-calendar"]],viewQuery:function(F,Ye){if(1&F&&(g.Gf(t,5),g.Gf(Ht,5),g.Gf(c,5)),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye.monthView=gt.first),g.iGM(gt=g.CRH())&&(Ye.yearView=gt.first),g.iGM(gt=g.CRH())&&(Ye.multiYearView=gt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[g._Bn([Ae]),g.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(F,Ye){1&F&&(g.YNc(0,le,0,0,"ng-template",0),g.TgZ(1,"div",1),g.YNc(2,je,1,8,"mat-month-view",2),g.YNc(3,ye,1,6,"mat-year-view",3),g.YNc(4,Be,1,6,"mat-multi-year-view",4),g.qZA()),2&F&&(g.Q6J("cdkPortalOutlet",Ye._calendarHeaderPortal),g.xp6(1),g.Q6J("ngSwitch",Ye.currentView),g.xp6(1),g.Q6J("ngSwitchCase","month"),g.xp6(1),g.Q6J("ngSwitchCase","year"),g.xp6(1),g.Q6J("ngSwitchCase","multi-year"))},directives:[t,Ht,c,_.Pl,e.kH,w.RF,w.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),Ke})();const Ee={transformPanel:(0,Re.X$)("transformPanel",[(0,Re.eR)("void => enter-dropdown",(0,Re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Re.F4)([(0,Re.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,Re.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,Re.eR)("void => enter-dialog",(0,Re.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,Re.F4)([(0,Re.oB)({opacity:0,transform:"scale(0.7)"}),(0,Re.oB)({transform:"none",opacity:1})]))),(0,Re.eR)("* => void",(0,Re.jt)("100ms linear",(0,Re.oB)({opacity:0})))]),fadeInCalendar:(0,Re.X$)("fadeInCalendar",[(0,Re.SB)("void",(0,Re.oB)({opacity:0})),(0,Re.SB)("enter",(0,Re.oB)({opacity:1})),(0,Re.eR)("void => *",(0,Re.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Ge=0;const U=new g.OlP("mat-datepicker-scroll-strategy"),ie={provide:U,deps:[b.aV],useFactory:function k(Ke){return()=>Ke.scrollStrategies.reposition()}},ce=(0,C.pj)(class{constructor(Ke){this._elementRef=Ke}});let He=(()=>{class Ke extends ce{constructor(F,Ye,gt,Dt,ri,ti){super(F),this._changeDetectorRef=Ye,this._globalModel=gt,this._dateAdapter=Dt,this._rangeSelectionStrategy=ri,this._subscriptions=new P.w,this._animationDone=new I.xQ,this._actionsPortal=null,this._closeButtonText=ti.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(F){const Ye=this._model.selection,gt=F.value,Dt=Ye instanceof H;if(Dt&&this._rangeSelectionStrategy){const ri=this._rangeSelectionStrategy.selectionFinished(gt,Ye,F.event);this._model.updateSelection(ri,this)}else gt&&(Dt||!this._dateAdapter.sameDate(gt,Ye))&&this._model.add(gt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(V),g.Y36(C._A),g.Y36(o,8),g.Y36(lt))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-content"]],viewQuery:function(F,Ye){if(1&F&&g.Gf(Lt,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._calendar=gt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(F,Ye){1&F&&g.WFA("@transformPanel.done",function(){return Ye._animationDone.next()}),2&F&&(g.d8E("@transformPanel",Ye._animationState),g.ekj("mat-datepicker-content-touch",Ye.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[g.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(F,Ye){if(1&F&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-calendar",1),g.NdJ("yearSelected",function(Dt){return Ye.datepicker._selectYear(Dt)})("monthSelected",function(Dt){return Ye.datepicker._selectMonth(Dt)})("viewChanged",function(Dt){return Ye.datepicker._viewChanged(Dt)})("_userSelection",function(Dt){return Ye._handleUserSelection(Dt)}),g.qZA(),g.YNc(2,W,0,0,"ng-template",2),g.TgZ(3,"button",3),g.NdJ("focus",function(){return Ye._closeButtonFocused=!0})("blur",function(){return Ye._closeButtonFocused=!1})("click",function(){return Ye.datepicker.close()}),g._uU(4),g.qZA(),g.qZA()),2&F){let gt;g.ekj("mat-datepicker-content-container-with-custom-header",Ye.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ye._actionsPortal),g.uIk("aria-modal",!0)("aria-labelledby",null!==(gt=Ye._dialogLabelId)&&void 0!==gt?gt:void 0),g.xp6(1),g.Q6J("id",Ye.datepicker.id)("ngClass",Ye.datepicker.panelClass)("startAt",Ye.datepicker.startAt)("startView",Ye.datepicker.startView)("minDate",Ye.datepicker._getMinDate())("maxDate",Ye.datepicker._getMaxDate())("dateFilter",Ye.datepicker._getDateFilter())("headerComponent",Ye.datepicker.calendarHeaderComponent)("selected",Ye._getSelected())("dateClass",Ye.datepicker.dateClass)("comparisonStart",Ye.comparisonStart)("comparisonEnd",Ye.comparisonEnd)("@fadeInCalendar","enter"),g.xp6(1),g.Q6J("cdkPortalOutlet",Ye._actionsPortal),g.xp6(1),g.ekj("cdk-visually-hidden",!Ye._closeButtonFocused),g.Q6J("color",Ye.color||"primary"),g.xp6(1),g.Oqu(Ye._closeButtonText)}},directives:[Lt,A.lW,e.mK,w.mk,_.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Ee.transformPanel,Ee.fadeInCalendar]},changeDetection:0}),Ke})(),ct=(()=>{class Ke{constructor(F,Ye,gt,Dt,ri,ti,Di){this._overlay=F,this._ngZone=Ye,this._viewContainerRef=gt,this._dateAdapter=ri,this._dir=ti,this._model=Di,this._inputStateChanges=P.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new g.vpe,this.monthSelected=new g.vpe,this.viewChanged=new g.vpe(!0),this.openedStream=new g.vpe,this.closedStream=new g.vpe,this._opened=!1,this.id="mat-datepicker-"+Ge++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new I.xQ,this._scrollStrategy=Dt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(F){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(F){this._color=F}get touchUi(){return this._touchUi}set touchUi(F){this._touchUi=(0,Me.Ig)(F)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(F){const Ye=(0,Me.Ig)(F);Ye!==this._disabled&&(this._disabled=Ye,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(F){this._restoreFocus=(0,Me.Ig)(F)}get panelClass(){return this._panelClass}set panelClass(F){this._panelClass=(0,Me.du)(F)}get opened(){return this._opened}set opened(F){(0,Me.Ig)(F)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(F){const Ye=F.xPosition||F.yPosition;if(Ye&&!Ye.firstChange&&this._overlayRef){const gt=this._overlayRef.getConfig().positionStrategy;gt instanceof b._G&&(this._setConnectedPositions(gt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(F){this._model.add(F)}_selectYear(F){this.yearSelected.emit(F)}_selectMonth(F){this.monthSelected.emit(F)}_viewChanged(F){this.viewChanged.emit(F)}registerInput(F){return this._inputStateChanges.unsubscribe(),this.datepickerInput=F,this._inputStateChanges=F.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(F){this._actionsPortal=F}removeActions(F){F===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,oe.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Ye=this._componentRef.instance;Ye._startExitAnimation(),Ye._animationDone.pipe((0,G.q)(1)).subscribe(()=>this._destroyOverlay())}const F=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(F)):F()}_applyPendingSelection(){var F,Ye;null===(Ye=null===(F=this._componentRef)||void 0===F?void 0:F.instance)||void 0===Ye||Ye._applyPendingSelection()}_forwardContentValues(F){F.datepicker=this,F.color=this.color,F._actionsPortal=this._actionsPortal,F._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const F=this.touchUi,Ye=new _.C5(He,this._viewContainerRef),gt=this._overlayRef=this._overlay.create(new b.X_({positionStrategy:F?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[F?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:F?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(F?"dialog":"popup")}));this._getCloseStream(gt).subscribe(Dt=>{Dt&&Dt.preventDefault(),this.close()}),this._componentRef=gt.attach(Ye),this._forwardContentValues(this._componentRef.instance),F||this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>gt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const F=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(F)}_setConnectedPositions(F){const Ye="end"===this.xPosition?"end":"start",gt="start"===Ye?"end":"start",Dt="above"===this.yPosition?"bottom":"top",ri="top"===Dt?"bottom":"top";return F.withPositions([{originX:Ye,originY:ri,overlayX:Ye,overlayY:Dt},{originX:Ye,originY:Dt,overlayX:Ye,overlayY:ri},{originX:gt,originY:ri,overlayX:gt,overlayY:Dt},{originX:gt,originY:Dt,overlayX:gt,overlayY:ri}])}_getCloseStream(F){return(0,m.T)(F.backdropClick(),F.detachments(),F.keydownEvents().pipe((0,ge.h)(Ye=>Ye.keyCode===O.hY&&!(0,O.Vb)(Ye)||this.datepickerInput&&(0,O.Vb)(Ye,"altKey")&&Ye.keyCode===O.LH)))}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(b.aV),g.Y36(g.R0b),g.Y36(g.s_b),g.Y36(U),g.Y36(C._A,8),g.Y36(J.Is,8),g.Y36(V))},Ke.\u0275dir=g.lG2({type:Ke,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[g.TTD]}),Ke})(),bt=(()=>{class Ke extends ct{}return Ke.\u0275fac=function(){let vt;return function(Ye){return(vt||(vt=g.n5z(Ke)))(Ye||Ke)}}(),Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[g._Bn([Ae,{provide:ct,useExisting:Ke}]),g.qOj],decls:0,vars:0,template:function(F,Ye){},encapsulation:2,changeDetection:0}),Ke})();class xt{constructor(vt,F){this.target=vt,this.targetElement=F,this.value=this.target.value}}let Yt=(()=>{class Ke{constructor(F,Ye,gt){this._elementRef=F,this._dateAdapter=Ye,this._dateFormats=gt,this.dateChange=new g.vpe,this.dateInput=new g.vpe,this.stateChanges=new I.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=P.w.EMPTY,this._localeSubscription=P.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value));return!ri||this._matchesFilter(ri)?null:{matDatepickerFilter:!0}},this._minValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMinDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)<=0?null:{matDatepickerMin:{min:ti,actual:ri}}},this._maxValidator=Dt=>{const ri=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Dt.value)),ti=this._getMaxDate();return!ti||!ri||this._dateAdapter.compareDate(ti,ri)>=0?null:{matDatepickerMax:{max:ti,actual:ri}}},this._lastValueValid=!1,this._localeSubscription=Ye.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(F){this._assignValueProgrammatically(F)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(F){const Ye=(0,Me.Ig)(F),gt=this._elementRef.nativeElement;this._disabled!==Ye&&(this._disabled=Ye,this.stateChanges.next(void 0)),Ye&&this._isInitialized&>.blur&>.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(F){this._model=F,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Ye=>{if(this._shouldHandleChangeEvent(Ye)){const gt=this._getValueFromModel(Ye.selection);this._lastValueValid=this._isValidValue(gt),this._cvaOnChange(gt),this._onTouched(),this._formatValue(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)),this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(F){(function It(Ke,vt){const F=Object.keys(Ke);for(let Ye of F){const{previousValue:gt,currentValue:Dt}=Ke[Ye];if(!vt.isDateInstance(gt)||!vt.isDateInstance(Dt))return!0;if(!vt.sameDate(gt,Dt))return!0}return!1})(F,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(F){this._validatorOnChange=F}validate(F){return this._validator?this._validator(F):null}writeValue(F){this._assignValueProgrammatically(F)}registerOnChange(F){this._cvaOnChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F}_onKeydown(F){F.altKey&&F.keyCode===O.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),F.preventDefault())}_onInput(F){const Ye=this._lastValueValid;let gt=this._dateAdapter.parse(F,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(gt),gt=this._dateAdapter.getValidDateOrNull(gt),this._dateAdapter.sameDate(gt,this.value)?(F&&!this.value&&this._cvaOnChange(gt),Ye!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(gt),this._cvaOnChange(gt),this.dateInput.emit(new xt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new xt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(F){this._elementRef.nativeElement.value=F?this._dateAdapter.format(F,this._dateFormats.display.dateInput):""}_assignValue(F){this._model?(this._assignValueToModel(F),this._pendingValue=null):this._pendingValue=F}_isValidValue(F){return!F||this._dateAdapter.isValid(F)}_parentDisabled(){return!1}_assignValueProgrammatically(F){F=this._dateAdapter.deserialize(F),this._lastValueValid=this._isValidValue(F),F=this._dateAdapter.getValidDateOrNull(F),this._assignValue(F),this._formatValue(F)}_matchesFilter(F){const Ye=this._getDateFilter();return!Ye||Ye(F)}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8))},Ke.\u0275dir=g.lG2({type:Ke,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[g.TTD]}),Ke})();const Rt={provide:T.JU,useExisting:(0,g.Gpc)(()=>Bt),multi:!0},Et={provide:T.Cf,useExisting:(0,g.Gpc)(()=>Bt),multi:!0};let Bt=(()=>{class Ke extends Yt{constructor(F,Ye,gt,Dt){super(F,Ye,gt),this._formField=Dt,this._closedSubscription=P.w.EMPTY,this._validator=T.kI.compose(super._getValidators())}set matDatepicker(F){F&&(this._datepicker=F,this._closedSubscription=F.closedStream.subscribe(()=>this._onTouched()),this._registerModel(F.registerInput(this)))}get min(){return this._min}set min(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._min)||(this._min=Ye,this._validatorOnChange())}get max(){return this._max}set max(F){const Ye=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(F));this._dateAdapter.sameDate(Ye,this._max)||(this._max=Ye,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(F){const Ye=this._matchesFilter(this.value);this._dateFilter=F,this._matchesFilter(this.value)!==Ye&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(F){return F}_assignValueToModel(F){this._model&&this._model.updateSelection(F,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(F){return F.source!==this}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(g.SBq),g.Y36(C._A,8),g.Y36(C.sG,8),g.Y36(j.G_,8))},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(F,Ye){1&F&&g.NdJ("input",function(Dt){return Ye._onInput(Dt.target.value)})("change",function(){return Ye._onChange()})("blur",function(){return Ye._onBlur()})("keydown",function(Dt){return Ye._onKeydown(Dt)}),2&F&&(g.Ikx("disabled",Ye.disabled),g.uIk("aria-haspopup",Ye._datepicker?"dialog":null)("aria-owns",(null==Ye._datepicker?null:Ye._datepicker.opened)&&Ye._datepicker.id||null)("min",Ye.min?Ye._dateAdapter.toIso8601(Ye.min):null)("max",Ye.max?Ye._dateAdapter.toIso8601(Ye.max):null)("data-mat-calendar",Ye._datepicker?Ye._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[g._Bn([Rt,Et,{provide:Y.Jk,useExisting:Ke}]),g.qOj]}),Ke})(),Jt=(()=>{class Ke{}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275dir=g.lG2({type:Ke,selectors:[["","matDatepickerToggleIcon",""]]}),Ke})(),ai=(()=>{class Ke{constructor(F,Ye,gt){this._intl=F,this._changeDetectorRef=Ye,this._stateChanges=P.w.EMPTY;const Dt=Number(gt);this.tabIndex=Dt||0===Dt?Dt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(F){this._disabled=(0,Me.Ig)(F)}ngOnChanges(F){F.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(F){this.datepicker&&!this.disabled&&(this.datepicker.open(),F.stopPropagation())}_watchStateChanges(){const F=this.datepicker?this.datepicker.stateChanges:(0,L.of)(),Ye=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,L.of)(),gt=this.datepicker?(0,m.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,L.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,m.T)(this._intl.changes,F,Ye,gt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Ke.\u0275fac=function(F){return new(F||Ke)(g.Y36(lt),g.Y36(g.sBO),g.$8M("tabindex"))},Ke.\u0275cmp=g.Xpm({type:Ke,selectors:[["mat-datepicker-toggle"]],contentQueries:function(F,Ye,gt){if(1&F&&g.Suo(gt,Jt,5),2&F){let Dt;g.iGM(Dt=g.CRH())&&(Ye._customIcon=Dt.first)}},viewQuery:function(F,Ye){if(1&F&&g.Gf(R,5),2&F){let gt;g.iGM(gt=g.CRH())&&(Ye._button=gt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(F,Ye){1&F&&g.NdJ("click",function(Dt){return Ye._open(Dt)}),2&F&&(g.uIk("tabindex",null)("data-mat-calendar",Ye.datepicker?Ye.datepicker.id:null),g.ekj("mat-datepicker-toggle-active",Ye.datepicker&&Ye.datepicker.opened)("mat-accent",Ye.datepicker&&"accent"===Ye.datepicker.color)("mat-warn",Ye.datepicker&&"warn"===Ye.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[g.TTD],ngContentSelectors:Ie,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(F,Ye){1&F&&(g.F$t(be),g.TgZ(0,"button",0,1),g.YNc(2,me,2,0,"svg",2),g.Hsn(3),g.qZA()),2&F&&(g.Q6J("disabled",Ye.disabled)("disableRipple",Ye.disableRipple),g.uIk("aria-haspopup",Ye.datepicker?"dialog":null)("aria-label",Ye.ariaLabel||Ye._intl.openCalendarLabel)("tabindex",Ye.disabled?-1:Ye.tabIndex),g.xp6(2),g.Q6J("ngIf",!Ye._customIcon))},directives:[A.lW,w.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),Ke})(),ot=(()=>{class Ke{}return Ke.\u0275fac=function(F){return new(F||Ke)},Ke.\u0275mod=g.oAB({type:Ke}),Ke.\u0275inj=g.cJS({providers:[lt,ie],imports:[[w.ez,A.ot,b.U8,e.rt,_.eL,C.BQ],E.ZD]}),Ke})()},48966:($e,_e,p)=>{"use strict";p.d(_e,{WI:()=>Le,uw:()=>W,H8:()=>Se,vA:()=>Re,xY:()=>pe,Is:()=>Je,so:()=>ue,uh:()=>Ie});var e=p(92845),b=p(47429),_=p(5e3),w=p(90508),g=p(50226),A=p(8929),E=p(88514),C=p(42654),I=p(21086),P=p(92198),m=p(72986),L=p(1059),O=p(70925),G=p(69808),ne=p(41777),ge=p(15664),J=p(91159),Me=p(76360);function oe(nt,Ve){}class Re{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const T={dialogContainer:(0,ne.X$)("dialogContainer",[(0,ne.SB)("void, exit",(0,ne.oB)({opacity:0,transform:"scale(0.7)"})),(0,ne.SB)("enter",(0,ne.oB)({transform:"none"})),(0,ne.eR)("* => enter",(0,ne.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ne.oB)({transform:"none",opacity:1}))),(0,ne.eR)("* => void, * => exit",(0,ne.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ne.oB)({opacity:0})))])};let Y=(()=>{class nt extends b.en{constructor(X,z,Q,D,H,V,xe,Qe){super(),this._elementRef=X,this._focusTrapFactory=z,this._changeDetectorRef=Q,this._config=H,this._interactivityChecker=V,this._ngZone=xe,this._focusMonitor=Qe,this._animationStateChanged=new _.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Te=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(Te)),this._ariaLabelledBy=H.ariaLabelledBy||null,this._document=D}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(X)}attachTemplatePortal(X){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(X)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(X,z){this._interactivityChecker.isFocusable(X)||(X.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{X.addEventListener("blur",()=>X.removeAttribute("tabindex")),X.addEventListener("mousedown",()=>X.removeAttribute("tabindex"))})),X.focus(z)}_focusByCssSelector(X,z){let Q=this._elementRef.nativeElement.querySelector(X);Q&&this._forceFocus(Q,z)}_trapFocus(){const X=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||X.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(z=>{z||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 X=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&X&&"function"==typeof X.focus){const z=(0,O.ht)(),Q=this._elementRef.nativeElement;(!z||z===this._document.body||z===Q||Q.contains(z))&&(this._focusMonitor?(this._focusMonitor.focusVia(X,this._closeInteractionType),this._closeInteractionType=null):X.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,O.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const X=this._elementRef.nativeElement,z=(0,O.ht)();return X===z||X.contains(z)}}return nt.\u0275fac=function(X){return new(X||nt)(_.Y36(_.SBq),_.Y36(ge.qV),_.Y36(_.sBO),_.Y36(G.K0,8),_.Y36(Re),_.Y36(ge.ic),_.Y36(_.R0b),_.Y36(ge.tE))},nt.\u0275dir=_.lG2({type:nt,viewQuery:function(X,z){if(1&X&&_.Gf(b.Pl,7),2&X){let Q;_.iGM(Q=_.CRH())&&(z._portalOutlet=Q.first)}},features:[_.qOj]}),nt})(),q=(()=>{class nt extends Y{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:X,totalTime:z}){"enter"===X?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:z})):"exit"===X&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:z}))}_onAnimationStart({toState:X,totalTime:z}){"enter"===X?this._animationStateChanged.next({state:"opening",totalTime:z}):("exit"===X||"void"===X)&&this._animationStateChanged.next({state:"closing",totalTime:z})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return nt.\u0275fac=function(){let Ve;return function(z){return(Ve||(Ve=_.n5z(nt)))(z||nt)}}(),nt.\u0275cmp=_.Xpm({type:nt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(X,z){1&X&&_.WFA("@dialogContainer.start",function(D){return z._onAnimationStart(D)})("@dialogContainer.done",function(D){return z._onAnimationDone(D)}),2&X&&(_.Ikx("id",z._id),_.uIk("role",z._config.role)("aria-labelledby",z._config.ariaLabel?null:z._ariaLabelledBy)("aria-label",z._config.ariaLabel)("aria-describedby",z._config.ariaDescribedBy||null),_.d8E("@dialogContainer",z._state))},features:[_.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(X,z){1&X&&_.YNc(0,oe,0,0,"ng-template",0)},directives:[b.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[T.dialogContainer]}}),nt})(),te=0;class ue{constructor(Ve,X,z="mat-dialog-"+te++){this._overlayRef=Ve,this._containerInstance=X,this.id=z,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new A.xQ,this._afterClosed=new A.xQ,this._beforeClosed=new A.xQ,this._state=0,X._id=z,X._animationStateChanged.pipe((0,P.h)(Q=>"opened"===Q.state),(0,m.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),X._animationStateChanged.pipe((0,P.h)(Q=>"closed"===Q.state),(0,m.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ve.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Ve.keydownEvents().pipe((0,P.h)(Q=>Q.keyCode===J.hY&&!this.disableClose&&!(0,J.Vb)(Q))).subscribe(Q=>{Q.preventDefault(),de(this,"keyboard")}),Ve.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():de(this,"mouse")})}close(Ve){this._result=Ve,this._containerInstance._animationStateChanged.pipe((0,P.h)(X=>"closing"===X.state),(0,m.q)(1)).subscribe(X=>{this._beforeClosed.next(Ve),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),X.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(Ve){let X=this._getPositionStrategy();return Ve&&(Ve.left||Ve.right)?Ve.left?X.left(Ve.left):X.right(Ve.right):X.centerHorizontally(),Ve&&(Ve.top||Ve.bottom)?Ve.top?X.top(Ve.top):X.bottom(Ve.bottom):X.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Ve="",X=""){return this._overlayRef.updateSize({width:Ve,height:X}),this._overlayRef.updatePosition(),this}addPanelClass(Ve){return this._overlayRef.addPanelClass(Ve),this}removePanelClass(Ve){return this._overlayRef.removePanelClass(Ve),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function de(nt,Ve,X){return void 0!==nt._containerInstance&&(nt._containerInstance._closeInteractionType=Ve),nt.close(X)}const Le=new _.OlP("MatDialogData"),Ue=new _.OlP("mat-dialog-default-options"),ze=new _.OlP("mat-dialog-scroll-strategy"),ye={provide:ze,deps:[e.aV],useFactory:function je(nt){return()=>nt.scrollStrategies.block()}};let Be=(()=>{class nt{constructor(X,z,Q,D,H,V,xe,Qe,Te,Ae){this._overlay=X,this._injector=z,this._defaultOptions=Q,this._parentDialog=D,this._overlayContainer=H,this._dialogRefConstructor=xe,this._dialogContainerType=Qe,this._dialogDataToken=Te,this._animationMode=Ae,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new A.xQ,this._afterOpenedAtThisLevel=new A.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,E.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,L.O)(void 0))),this._scrollStrategy=V}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const X=this._parentDialog;return X?X._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(X,z){if(z=function R(nt,Ve){return Object.assign(Object.assign({},Ve),nt)}(z,this._defaultOptions||new Re),z.id&&this.getDialogById(z.id),this._dialogAnimatingOpen)return this._lastDialogRef;const Q=this._createOverlay(z),D=this._attachDialogContainer(Q,z);if("NoopAnimations"!==this._animationMode){const V=D._animationStateChanged.subscribe(xe=>{"opening"===xe.state&&(this._dialogAnimatingOpen=!0),"opened"===xe.state&&(this._dialogAnimatingOpen=!1,V.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new C.w),this._animationStateSubscriptions.add(V)}const H=this._attachDialogContent(X,D,Q,z);return this._lastDialogRef=H,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(H),H.afterClosed().subscribe(()=>this._removeOpenDialog(H)),this.afterOpened.next(H),D._initializeWithAttachedContent(),H}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(X){return this.openDialogs.find(z=>z.id===X)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(X){const z=this._getOverlayConfig(X);return this._overlay.create(z)}_getOverlayConfig(X){const z=new e.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:X.scrollStrategy||this._scrollStrategy(),panelClass:X.panelClass,hasBackdrop:X.hasBackdrop,direction:X.direction,minWidth:X.minWidth,minHeight:X.minHeight,maxWidth:X.maxWidth,maxHeight:X.maxHeight,disposeOnNavigation:X.closeOnNavigation});return X.backdropClass&&(z.backdropClass=X.backdropClass),z}_attachDialogContainer(X,z){const D=_.zs3.create({parent:z&&z.viewContainerRef&&z.viewContainerRef.injector||this._injector,providers:[{provide:Re,useValue:z}]}),H=new b.C5(this._dialogContainerType,z.viewContainerRef,D,z.componentFactoryResolver);return X.attach(H).instance}_attachDialogContent(X,z,Q,D){const H=new this._dialogRefConstructor(Q,z,D.id);if(X instanceof _.Rgc)z.attachTemplatePortal(new b.UE(X,null,{$implicit:D.data,dialogRef:H}));else{const V=this._createInjector(D,H,z),xe=z.attachComponentPortal(new b.C5(X,D.viewContainerRef,V));H.componentInstance=xe.instance}return H.updateSize(D.width,D.height).updatePosition(D.position),H}_createInjector(X,z,Q){const D=X&&X.viewContainerRef&&X.viewContainerRef.injector,H=[{provide:this._dialogContainerType,useValue:Q},{provide:this._dialogDataToken,useValue:X.data},{provide:this._dialogRefConstructor,useValue:z}];return X.direction&&(!D||!D.get(g.Is,null,_.XFs.Optional))&&H.push({provide:g.Is,useValue:{value:X.direction,change:(0,I.of)()}}),_.zs3.create({parent:D||this._injector,providers:H})}_removeOpenDialog(X){const z=this.openDialogs.indexOf(X);z>-1&&(this.openDialogs.splice(z,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Q,D)=>{Q?D.setAttribute("aria-hidden",Q):D.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const X=this._overlayContainer.getContainerElement();if(X.parentElement){const z=X.parentElement.children;for(let Q=z.length-1;Q>-1;Q--){let D=z[Q];D!==X&&"SCRIPT"!==D.nodeName&&"STYLE"!==D.nodeName&&!D.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(D,D.getAttribute("aria-hidden")),D.setAttribute("aria-hidden","true"))}}}_closeDialogs(X){let z=X.length;for(;z--;)X[z].close()}}return nt.\u0275fac=function(X){_.$Z()},nt.\u0275dir=_.lG2({type:nt}),nt})(),W=(()=>{class nt extends Be{constructor(X,z,Q,D,H,V,xe,Qe){super(X,z,D,V,xe,H,ue,q,Le,Qe)}}return nt.\u0275fac=function(X){return new(X||nt)(_.LFG(e.aV),_.LFG(_.zs3),_.LFG(G.Ye,8),_.LFG(Ue,8),_.LFG(ze),_.LFG(nt,12),_.LFG(e.Xj),_.LFG(Me.Qb,8))},nt.\u0275prov=_.Yz7({token:nt,factory:nt.\u0275fac}),nt})(),me=0,Ie=(()=>{class nt{constructor(X,z,Q){this._dialogRef=X,this._elementRef=z,this._dialog=Q,this.id="mat-dialog-title-"+me++}ngOnInit(){this._dialogRef||(this._dialogRef=function Xe(nt,Ve){let X=nt.nativeElement.parentElement;for(;X&&!X.classList.contains("mat-dialog-container");)X=X.parentElement;return X?Ve.find(z=>z.id===X.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const X=this._dialogRef._containerInstance;X&&!X._ariaLabelledBy&&(X._ariaLabelledBy=this.id)})}}return nt.\u0275fac=function(X){return new(X||nt)(_.Y36(ue,8),_.Y36(_.SBq),_.Y36(W))},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(X,z){2&X&&_.Ikx("id",z.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),nt})(),pe=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),nt})(),Se=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275dir=_.lG2({type:nt,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),nt})(),Je=(()=>{class nt{}return nt.\u0275fac=function(X){return new(X||nt)},nt.\u0275mod=_.oAB({type:nt}),nt.\u0275inj=_.cJS({providers:[W,ye],imports:[[e.U8,b.eL,w.BQ],w.BQ]}),nt})()},4834:($e,_e,p)=>{"use strict";p.d(_e,{d:()=>w,t:()=>g});var e=p(5e3),b=p(63191),_=p(90508);let w=(()=>{class A{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(C){this._vertical=(0,b.Ig)(C)}get inset(){return this._inset}set inset(C){this._inset=(0,b.Ig)(C)}}return A.\u0275fac=function(C){return new(C||A)},A.\u0275cmp=e.Xpm({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(C,I){2&C&&(e.uIk("aria-orientation",I.vertical?"vertical":"horizontal"),e.ekj("mat-divider-vertical",I.vertical)("mat-divider-horizontal",!I.vertical)("mat-divider-inset",I.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(C,I){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),A})(),g=(()=>{class A{}return A.\u0275fac=function(C){return new(C||A)},A.\u0275mod=e.oAB({type:A}),A.\u0275inj=e.cJS({imports:[[_.BQ],_.BQ]}),A})()},81125:($e,_e,p)=>{"use strict";p.d(_e,{pp:()=>Ve,To:()=>X,ib:()=>be,HS:()=>W,u4:()=>Je,yz:()=>Xe,yK:()=>nt});var e=p(5e3),b=p(63191),_=p(8929),w=p(42654),g=p(20449);let A=0;const E=new e.OlP("CdkAccordion");let C=(()=>{class z{constructor(){this._stateChanges=new _.xQ,this._openCloseAllActions=new _.xQ,this.id="cdk-accordion-"+A++,this._multi=!1}get multi(){return this._multi}set multi(D){this._multi=(0,b.Ig)(D)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(D){this._stateChanges.next(D)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[e._Bn([{provide:E,useExisting:z}]),e.TTD]}),z})(),I=0,P=(()=>{class z{constructor(D,H,V){this.accordion=D,this._changeDetectorRef=H,this._expansionDispatcher=V,this._openCloseAllSubscription=w.w.EMPTY,this.closed=new e.vpe,this.opened=new e.vpe,this.destroyed=new e.vpe,this.expandedChange=new e.vpe,this.id="cdk-accordion-child-"+I++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=V.listen((xe,Qe)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Qe&&this.id!==xe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(D){D=(0,b.Ig)(D),this._expanded!==D&&(this._expanded=D,this.expandedChange.emit(D),D?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,b.Ig)(D)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(D=>{this.disabled||(this.expanded=D)})}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(E,12),e.Y36(e.sBO),e.Y36(g.A8))},z.\u0275dir=e.lG2({type:z,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[e._Bn([{provide:E,useValue:void 0}])]}),z})(),m=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({}),z})();var L=p(47429),O=p(69808),G=p(90508),ne=p(15664),ge=p(75778),J=p(1059),Me=p(92198),oe=p(72986),Re=p(91159),T=p(76360),j=p(68896),Y=p(36787),q=p(41777);const te=["body"];function ue(z,Q){}const de=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Le=["mat-expansion-panel-header","*","mat-action-row"];function Ue(z,Q){if(1&z&&e._UZ(0,"span",2),2&z){const D=e.oxw();e.Q6J("@indicatorRotate",D._getExpandedState())}}const ze=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],le=["mat-panel-title","mat-panel-description","*"],je=new e.OlP("MAT_ACCORDION"),ye="225ms cubic-bezier(0.4,0.0,0.2,1)",Be={indicatorRotate:(0,q.X$)("indicatorRotate",[(0,q.SB)("collapsed, void",(0,q.oB)({transform:"rotate(0deg)"})),(0,q.SB)("expanded",(0,q.oB)({transform:"rotate(180deg)"})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(ye))]),bodyExpansion:(0,q.X$)("bodyExpansion",[(0,q.SB)("collapsed, void",(0,q.oB)({height:"0px",visibility:"hidden"})),(0,q.SB)("expanded",(0,q.oB)({height:"*",visibility:"visible"})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(ye))])};let W=(()=>{class z{constructor(D){this._template=D}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(e.Rgc))},z.\u0275dir=e.lG2({type:z,selectors:[["ng-template","matExpansionPanelContent",""]]}),z})(),R=0;const me=new e.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let be=(()=>{class z extends P{constructor(D,H,V,xe,Qe,Te,Ae){super(D,H,V),this._viewContainerRef=xe,this._animationMode=Te,this._hideToggle=!1,this.afterExpand=new e.vpe,this.afterCollapse=new e.vpe,this._inputChanges=new _.xQ,this._headerId="mat-expansion-panel-header-"+R++,this._bodyAnimationDone=new _.xQ,this.accordion=D,this._document=Qe,this._bodyAnimationDone.pipe((0,ge.x)((ae,i)=>ae.fromState===i.fromState&&ae.toState===i.toState)).subscribe(ae=>{"void"!==ae.fromState&&("expanded"===ae.toState?this.afterExpand.emit():"collapsed"===ae.toState&&this.afterCollapse.emit())}),Ae&&(this.hideToggle=Ae.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(D){this._hideToggle=(0,b.Ig)(D)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(D){this._togglePosition=D}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe((0,J.O)(null),(0,Me.h)(()=>this.expanded&&!this._portal),(0,oe.q)(1)).subscribe(()=>{this._portal=new L.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(D){this._inputChanges.next(D)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const D=this._document.activeElement,H=this._body.nativeElement;return D===H||H.contains(D)}return!1}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(je,12),e.Y36(e.sBO),e.Y36(g.A8),e.Y36(e.s_b),e.Y36(O.K0),e.Y36(T.Qb,8),e.Y36(me,8))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel"]],contentQueries:function(D,H,V){if(1&D&&e.Suo(V,W,5),2&D){let xe;e.iGM(xe=e.CRH())&&(H._lazyContent=xe.first)}},viewQuery:function(D,H){if(1&D&&e.Gf(te,5),2&D){let V;e.iGM(V=e.CRH())&&(H._body=V.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(D,H){2&D&&e.ekj("mat-expanded",H.expanded)("_mat-animation-noopable","NoopAnimations"===H._animationMode)("mat-expansion-panel-spacing",H._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[e._Bn([{provide:je,useValue:void 0}]),e.qOj,e.TTD],ngContentSelectors:Le,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(D,H){1&D&&(e.F$t(de),e.Hsn(0),e.TgZ(1,"div",0,1),e.NdJ("@bodyExpansion.done",function(xe){return H._bodyAnimationDone.next(xe)}),e.TgZ(3,"div",2),e.Hsn(4,1),e.YNc(5,ue,0,0,"ng-template",3),e.qZA(),e.Hsn(6,2),e.qZA()),2&D&&(e.xp6(1),e.Q6J("@bodyExpansion",H._getExpandedState())("id",H.id),e.uIk("aria-labelledby",H._headerId),e.xp6(4),e.Q6J("cdkPortalOutlet",H._portal))},directives:[L.Pl],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Be.bodyExpansion]},changeDetection:0}),z})();class pe{}const Se=(0,G.sb)(pe);let Xe=(()=>{class z extends Se{constructor(D,H,V,xe,Qe,Te,Ae){super(),this.panel=D,this._element=H,this._focusMonitor=V,this._changeDetectorRef=xe,this._animationMode=Te,this._parentChangeSubscription=w.w.EMPTY;const ae=D.accordion?D.accordion._stateChanges.pipe((0,Me.h)(i=>!(!i.hideToggle&&!i.togglePosition))):j.E;this.tabIndex=parseInt(Ae||"")||0,this._parentChangeSubscription=(0,Y.T)(D.opened,D.closed,ae,D._inputChanges.pipe((0,Me.h)(i=>!!(i.hideToggle||i.disabled||i.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),D.closed.pipe((0,Me.h)(()=>D._containsFocus())).subscribe(()=>V.focusVia(H,"program")),Qe&&(this.expandedHeight=Qe.expandedHeight,this.collapsedHeight=Qe.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const D=this._isExpanded();return D&&this.expandedHeight?this.expandedHeight:!D&&this.collapsedHeight?this.collapsedHeight:null}_keydown(D){switch(D.keyCode){case Re.L_:case Re.K5:(0,Re.Vb)(D)||(D.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(D))}}focus(D,H){D?this._focusMonitor.focusVia(this._element,D,H):this._element.nativeElement.focus(H)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(D=>{D&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return z.\u0275fac=function(D){return new(D||z)(e.Y36(be,1),e.Y36(e.SBq),e.Y36(ne.tE),e.Y36(e.sBO),e.Y36(me,8),e.Y36(T.Qb,8),e.$8M("tabindex"))},z.\u0275cmp=e.Xpm({type:z,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(D,H){1&D&&e.NdJ("click",function(){return H._toggle()})("keydown",function(xe){return H._keydown(xe)}),2&D&&(e.uIk("id",H.panel._headerId)("tabindex",H.tabIndex)("aria-controls",H._getPanelId())("aria-expanded",H._isExpanded())("aria-disabled",H.panel.disabled),e.Udp("height",H._getHeaderHeight()),e.ekj("mat-expanded",H._isExpanded())("mat-expansion-toggle-indicator-after","after"===H._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===H._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===H._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[e.qOj],ngContentSelectors:le,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(D,H){1&D&&(e.F$t(ze),e.TgZ(0,"span",0),e.Hsn(1),e.Hsn(2,1),e.Hsn(3,2),e.qZA(),e.YNc(4,Ue,1,1,"span",1)),2&D&&(e.xp6(4),e.Q6J("ngIf",H._showToggle()))},directives:[O.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[Be.indicatorRotate]},changeDetection:0}),z})(),Je=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),z})(),nt=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275dir=e.lG2({type:z,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),z})(),Ve=(()=>{class z extends C{constructor(){super(...arguments),this._ownHeaders=new e.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(D){this._hideToggle=(0,b.Ig)(D)}ngAfterContentInit(){this._headers.changes.pipe((0,J.O)(this._headers)).subscribe(D=>{this._ownHeaders.reset(D.filter(H=>H.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ne.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(D){this._keyManager.onKeydown(D)}_handleHeaderFocus(D){this._keyManager.updateActiveItem(D)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return z.\u0275fac=function(){let Q;return function(H){return(Q||(Q=e.n5z(z)))(H||z)}}(),z.\u0275dir=e.lG2({type:z,selectors:[["mat-accordion"]],contentQueries:function(D,H,V){if(1&D&&e.Suo(V,Xe,5),2&D){let xe;e.iGM(xe=e.CRH())&&(H._headers=xe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(D,H){2&D&&e.ekj("mat-accordion-multi",H.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[e._Bn([{provide:je,useExisting:z}]),e.qOj]}),z})(),X=(()=>{class z{}return z.\u0275fac=function(D){return new(D||z)},z.\u0275mod=e.oAB({type:z}),z.\u0275inj=e.cJS({imports:[[O.ez,G.BQ,m,L.eL]]}),z})()},67322:($e,_e,p)=>{"use strict";p.d(_e,{G_:()=>Te,TO:()=>Be,KE:()=>Ae,Eo:()=>R,lN:()=>ae,bx:()=>Xe,hX:()=>Je,UY:()=>nt,R9:()=>Q});var e=p(17144),b=p(69808),_=p(5e3),w=p(90508),g=p(63191),A=p(8929),E=p(36787),C=p(23753),I=p(1059),P=p(7625),m=p(72986),L=p(41777),O=p(76360),G=p(50226),ne=p(70925);const ge=["connectionContainer"],J=["inputContainer"],Me=["label"];function oe(i,o){1&i&&(_.ynx(0),_.TgZ(1,"div",14),_._UZ(2,"div",15),_._UZ(3,"div",16),_._UZ(4,"div",17),_.qZA(),_.TgZ(5,"div",18),_._UZ(6,"div",15),_._UZ(7,"div",16),_._UZ(8,"div",17),_.qZA(),_.BQk())}function Re(i,o){if(1&i){const d=_.EpF();_.TgZ(0,"div",19),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.Hsn(1,1),_.qZA()}if(2&i){const d=_.oxw();_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)}}function T(i,o){if(1&i&&(_.ynx(0),_.Hsn(1,2),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.BQk()),2&i){const d=_.oxw(2);_.xp6(3),_.Oqu(d._control.placeholder)}}function j(i,o){1&i&&_.Hsn(0,3,["*ngSwitchCase","true"])}function Y(i,o){1&i&&(_.TgZ(0,"span",23),_._uU(1," *"),_.qZA())}function q(i,o){if(1&i){const d=_.EpF();_.TgZ(0,"label",20,21),_.NdJ("cdkObserveContent",function(){return _.CHM(d),_.oxw().updateOutlineGap()}),_.YNc(2,T,4,1,"ng-container",12),_.YNc(3,j,1,0,"ng-content",12),_.YNc(4,Y,2,0,"span",22),_.qZA()}if(2&i){const d=_.oxw();_.ekj("mat-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-form-field-empty",d._control.empty&&!d._shouldAlwaysFloat())("mat-accent","accent"==d.color)("mat-warn","warn"==d.color),_.Q6J("cdkObserveContentDisabled","outline"!=d.appearance)("id",d._labelId)("ngSwitch",d._hasLabel()),_.uIk("for",d._control.id)("aria-owns",d._control.id),_.xp6(2),_.Q6J("ngSwitchCase",!1),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngIf",!d.hideRequiredMarker&&d._control.required&&!d._control.disabled)}}function te(i,o){1&i&&(_.TgZ(0,"div",24),_.Hsn(1,4),_.qZA())}function ue(i,o){if(1&i&&(_.TgZ(0,"div",25),_._UZ(1,"span",26),_.qZA()),2&i){const d=_.oxw();_.xp6(1),_.ekj("mat-accent","accent"==d.color)("mat-warn","warn"==d.color)}}function de(i,o){if(1&i&&(_.TgZ(0,"div"),_.Hsn(1,5),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState)}}function Le(i,o){if(1&i&&(_.TgZ(0,"div",30),_._uU(1),_.qZA()),2&i){const d=_.oxw(2);_.Q6J("id",d._hintLabelId),_.xp6(1),_.Oqu(d.hintLabel)}}function Ue(i,o){if(1&i&&(_.TgZ(0,"div",27),_.YNc(1,Le,2,2,"div",28),_.Hsn(2,6),_._UZ(3,"div",29),_.Hsn(4,7),_.qZA()),2&i){const d=_.oxw();_.Q6J("@transitionMessages",d._subscriptAnimationState),_.xp6(1),_.Q6J("ngIf",d.hintLabel)}}const ze=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],le=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let je=0;const ye=new _.OlP("MatError");let Be=(()=>{class i{constructor(d,l){this.id="mat-error-"+je++,d||l.nativeElement.setAttribute("aria-live","polite")}}return i.\u0275fac=function(d){return new(d||i)(_.$8M("aria-live"),_.Y36(_.SBq))},i.\u0275dir=_.lG2({type:i,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(d,l){2&d&&_.uIk("id",l.id)},inputs:{id:"id"},features:[_._Bn([{provide:ye,useExisting:i}])]}),i})();const W={transitionMessages:(0,L.X$)("transitionMessages",[(0,L.SB)("enter",(0,L.oB)({opacity:1,transform:"translateY(0%)"})),(0,L.eR)("void => enter",[(0,L.oB)({opacity:0,transform:"translateY(-5px)"}),(0,L.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let R=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i}),i})(),pe=0;const Se=new _.OlP("MatHint");let Xe=(()=>{class i{constructor(){this.align="start",this.id="mat-hint-"+pe++}}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(d,l){2&d&&(_.uIk("id",l.id)("align",null),_.ekj("mat-form-field-hint-end","end"===l.align))},inputs:{align:"align",id:"id"},features:[_._Bn([{provide:Se,useExisting:i}])]}),i})(),Je=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-label"]]}),i})(),nt=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["mat-placeholder"]]}),i})();const Ve=new _.OlP("MatPrefix"),z=new _.OlP("MatSuffix");let Q=(()=>{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275dir=_.lG2({type:i,selectors:[["","matSuffix",""]],features:[_._Bn([{provide:z,useExisting:i}])]}),i})(),D=0;const xe=(0,w.pj)(class{constructor(i){this._elementRef=i}},"primary"),Qe=new _.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Te=new _.OlP("MatFormField");let Ae=(()=>{class i extends xe{constructor(d,l,s,r,t,n,a){super(d),this._changeDetectorRef=l,this._dir=s,this._defaults=r,this._platform=t,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new A.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+D++,this._labelId="mat-form-field-label-"+D++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=r&&r.appearance?r.appearance:"legacy",this._hideRequiredMarker=!(!r||null==r.hideRequiredMarker)&&r.hideRequiredMarker}get appearance(){return this._appearance}set appearance(d){const l=this._appearance;this._appearance=d||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&l!==d&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(d){this._hideRequiredMarker=(0,g.Ig)(d)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(d){this._hintLabel=d,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(d){d!==this._floatLabel&&(this._floatLabel=d||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(d){this._explicitFormFieldControl=d}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const d=this._control;d.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${d.controlType}`),d.stateChanges.pipe((0,I.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),d.ngControl&&d.ngControl.valueChanges&&d.ngControl.valueChanges.pipe((0,P.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,E.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,I.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(d){const l=this._control?this._control.ngControl:null;return l&&l[d]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,C.R)(this._label.nativeElement,"transitionend").pipe((0,m.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let d=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&d.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const l=this._hintChildren?this._hintChildren.find(r=>"start"===r.align):null,s=this._hintChildren?this._hintChildren.find(r=>"end"===r.align):null;l?d.push(l.id):this._hintLabel&&d.push(this._hintLabelId),s&&d.push(s.id)}else this._errorChildren&&d.push(...this._errorChildren.map(l=>l.id));this._control.setDescribedByIds(d)}}_validateControlChild(){}updateOutlineGap(){const d=this._label?this._label.nativeElement:null,l=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",r=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!d||!d.children.length||!d.textContent.trim()){const h=l.querySelectorAll(`${s}, ${r}`);for(let x=0;x0?.75*Ht+10:0}for(let h=0;h{class i{}return i.\u0275fac=function(d){return new(d||i)},i.\u0275mod=_.oAB({type:i}),i.\u0275inj=_.cJS({imports:[[b.ez,w.BQ,e.Q8],w.BQ]}),i})()},25245:($e,_e,p)=>{"use strict";p.d(_e,{Hw:()=>be,Ps:()=>Ie,jv:()=>ue});var e=p(5e3),b=p(90508),_=p(63191),w=p(69808),g=p(21086),A=p(61737),E=p(30567),C=p(42654),I=p(22868),P=p(24850),m=p(27221),L=p(40537),O=p(12474),G=p(72986),ne=p(40520),ge=p(22313);const J=["*"];let Me;function Re(pe){var Se;return(null===(Se=function oe(){if(void 0===Me&&(Me=null,"undefined"!=typeof window)){const pe=window;void 0!==pe.trustedTypes&&(Me=pe.trustedTypes.createPolicy("angular#components",{createHTML:Se=>Se}))}return Me}())||void 0===Se?void 0:Se.createHTML(pe))||pe}function T(pe){return Error(`Unable to find icon with the name "${pe}"`)}function Y(pe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${pe}".`)}function q(pe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${pe}".`)}class te{constructor(Se,Xe,Je){this.url=Se,this.svgText=Xe,this.options=Je}}let ue=(()=>{class pe{constructor(Xe,Je,nt,Ve){this._httpClient=Xe,this._sanitizer=Je,this._errorHandler=Ve,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",this._document=nt}addSvgIcon(Xe,Je,nt){return this.addSvgIconInNamespace("",Xe,Je,nt)}addSvgIconLiteral(Xe,Je,nt){return this.addSvgIconLiteralInNamespace("",Xe,Je,nt)}addSvgIconInNamespace(Xe,Je,nt,Ve){return this._addSvgIconConfig(Xe,Je,new te(nt,null,Ve))}addSvgIconResolver(Xe){return this._resolvers.push(Xe),this}addSvgIconLiteralInNamespace(Xe,Je,nt,Ve){const X=this._sanitizer.sanitize(e.q3G.HTML,nt);if(!X)throw q(nt);const z=Re(X);return this._addSvgIconConfig(Xe,Je,new te("",z,Ve))}addSvgIconSet(Xe,Je){return this.addSvgIconSetInNamespace("",Xe,Je)}addSvgIconSetLiteral(Xe,Je){return this.addSvgIconSetLiteralInNamespace("",Xe,Je)}addSvgIconSetInNamespace(Xe,Je,nt){return this._addSvgIconSetConfig(Xe,new te(Je,null,nt))}addSvgIconSetLiteralInNamespace(Xe,Je,nt){const Ve=this._sanitizer.sanitize(e.q3G.HTML,Je);if(!Ve)throw q(Je);const X=Re(Ve);return this._addSvgIconSetConfig(Xe,new te("",X,nt))}registerFontClassAlias(Xe,Je=Xe){return this._fontCssClassesByAlias.set(Xe,Je),this}classNameForFontAlias(Xe){return this._fontCssClassesByAlias.get(Xe)||Xe}setDefaultFontSetClass(Xe){return this._defaultFontSetClass=Xe,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Xe){const Je=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Xe);if(!Je)throw Y(Xe);const nt=this._cachedIconsByUrl.get(Je);return nt?(0,g.of)(Ue(nt)):this._loadSvgIconFromConfig(new te(Xe,null)).pipe((0,I.b)(Ve=>this._cachedIconsByUrl.set(Je,Ve)),(0,P.U)(Ve=>Ue(Ve)))}getNamedSvgIcon(Xe,Je=""){const nt=ze(Je,Xe);let Ve=this._svgIconConfigs.get(nt);if(Ve)return this._getSvgFromConfig(Ve);if(Ve=this._getIconConfigFromResolvers(Je,Xe),Ve)return this._svgIconConfigs.set(nt,Ve),this._getSvgFromConfig(Ve);const X=this._iconSetConfigs.get(Je);return X?this._getSvgFromIconSetConfigs(Xe,X):(0,A._)(T(nt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Xe){return Xe.svgText?(0,g.of)(Ue(this._svgElementFromConfig(Xe))):this._loadSvgIconFromConfig(Xe).pipe((0,P.U)(Je=>Ue(Je)))}_getSvgFromIconSetConfigs(Xe,Je){const nt=this._extractIconWithNameFromAnySet(Xe,Je);if(nt)return(0,g.of)(nt);const Ve=Je.filter(X=>!X.svgText).map(X=>this._loadSvgIconSetFromConfig(X).pipe((0,m.K)(z=>{const D=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,X.url)} failed: ${z.message}`;return this._errorHandler.handleError(new Error(D)),(0,g.of)(null)})));return(0,E.D)(Ve).pipe((0,P.U)(()=>{const X=this._extractIconWithNameFromAnySet(Xe,Je);if(!X)throw T(Xe);return X}))}_extractIconWithNameFromAnySet(Xe,Je){for(let nt=Je.length-1;nt>=0;nt--){const Ve=Je[nt];if(Ve.svgText&&Ve.svgText.toString().indexOf(Xe)>-1){const X=this._svgElementFromConfig(Ve),z=this._extractSvgIconFromSet(X,Xe,Ve.options);if(z)return z}}return null}_loadSvgIconFromConfig(Xe){return this._fetchIcon(Xe).pipe((0,I.b)(Je=>Xe.svgText=Je),(0,P.U)(()=>this._svgElementFromConfig(Xe)))}_loadSvgIconSetFromConfig(Xe){return Xe.svgText?(0,g.of)(null):this._fetchIcon(Xe).pipe((0,I.b)(Je=>Xe.svgText=Je))}_extractSvgIconFromSet(Xe,Je,nt){const Ve=Xe.querySelector(`[id="${Je}"]`);if(!Ve)return null;const X=Ve.cloneNode(!0);if(X.removeAttribute("id"),"svg"===X.nodeName.toLowerCase())return this._setSvgAttributes(X,nt);if("symbol"===X.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(X),nt);const z=this._svgElementFromString(Re(""));return z.appendChild(X),this._setSvgAttributes(z,nt)}_svgElementFromString(Xe){const Je=this._document.createElement("DIV");Je.innerHTML=Xe;const nt=Je.querySelector("svg");if(!nt)throw Error(" tag not found");return nt}_toSvgElement(Xe){const Je=this._svgElementFromString(Re("")),nt=Xe.attributes;for(let Ve=0;VeRe(H)),(0,L.x)(()=>this._inProgressUrlFetches.delete(z)),(0,O.B)());return this._inProgressUrlFetches.set(z,D),D}_addSvgIconConfig(Xe,Je,nt){return this._svgIconConfigs.set(ze(Xe,Je),nt),this}_addSvgIconSetConfig(Xe,Je){const nt=this._iconSetConfigs.get(Xe);return nt?nt.push(Je):this._iconSetConfigs.set(Xe,[Je]),this}_svgElementFromConfig(Xe){if(!Xe.svgElement){const Je=this._svgElementFromString(Xe.svgText);this._setSvgAttributes(Je,Xe.options),Xe.svgElement=Je}return Xe.svgElement}_getIconConfigFromResolvers(Xe,Je){for(let nt=0;ntSe?Se.pathname+Se.search:""}}}),W=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],R=W.map(pe=>`[${pe}]`).join(", "),me=/^url\(['"]?#(.*?)['"]?\)$/;let be=(()=>{class pe extends je{constructor(Xe,Je,nt,Ve,X){super(Xe),this._iconRegistry=Je,this._location=Ve,this._errorHandler=X,this._inline=!1,this._currentIconFetch=C.w.EMPTY,nt||Xe.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Xe){this._inline=(0,_.Ig)(Xe)}get svgIcon(){return this._svgIcon}set svgIcon(Xe){Xe!==this._svgIcon&&(Xe?this._updateSvgIcon(Xe):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Xe)}get fontSet(){return this._fontSet}set fontSet(Xe){const Je=this._cleanupFontValue(Xe);Je!==this._fontSet&&(this._fontSet=Je,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Xe){const Je=this._cleanupFontValue(Xe);Je!==this._fontIcon&&(this._fontIcon=Je,this._updateFontIconClasses())}_splitIconName(Xe){if(!Xe)return["",""];const Je=Xe.split(":");switch(Je.length){case 1:return["",Je[0]];case 2:return Je;default:throw Error(`Invalid icon name: "${Xe}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Xe=this._elementsWithExternalReferences;if(Xe&&Xe.size){const Je=this._location.getPathname();Je!==this._previousPath&&(this._previousPath=Je,this._prependPathToReferences(Je))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Xe){this._clearSvgElement();const Je=Xe.querySelectorAll("style");for(let Ve=0;Ve{nt.forEach(X=>{Ve.setAttribute(X.name,`url('${Xe}#${X.value}')`)})})}_cacheChildrenWithExternalReferences(Xe){const Je=Xe.querySelectorAll(R),nt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ve=0;Ve{const z=Je[Ve],Q=z.getAttribute(X),D=Q?Q.match(me):null;if(D){let H=nt.get(z);H||(H=[],nt.set(z,H)),H.push({name:X,value:D[1]})}})}_updateSvgIcon(Xe){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Xe){const[Je,nt]=this._splitIconName(Xe);Je&&(this._svgNamespace=Je),nt&&(this._svgName=nt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(nt,Je).pipe((0,G.q)(1)).subscribe(Ve=>this._setSvgElement(Ve),Ve=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Je}:${nt}! ${Ve.message}`))})}}}return pe.\u0275fac=function(Xe){return new(Xe||pe)(e.Y36(e.SBq),e.Y36(ue),e.$8M("aria-hidden"),e.Y36(ye),e.Y36(e.qLn))},pe.\u0275cmp=e.Xpm({type:pe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Xe,Je){2&Xe&&(e.uIk("data-mat-icon-type",Je._usingFontIcon()?"font":"svg")("data-mat-icon-name",Je._svgName||Je.fontIcon)("data-mat-icon-namespace",Je._svgNamespace||Je.fontSet),e.ekj("mat-icon-inline",Je.inline)("mat-icon-no-color","primary"!==Je.color&&"accent"!==Je.color&&"warn"!==Je.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:J,decls:1,vars:0,template:function(Xe,Je){1&Xe&&(e.F$t(),e.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),pe})(),Ie=(()=>{class pe{}return pe.\u0275fac=function(Xe){return new(Xe||pe)},pe.\u0275mod=e.oAB({type:pe}),pe.\u0275inj=e.cJS({imports:[[b.BQ],b.BQ]}),pe})()},98833:($e,_e,p)=>{"use strict";p.d(_e,{Jk:()=>P,Nt:()=>G,c:()=>ne});var e=p(63191),b=p(70925),_=p(5e3),w=p(93075),g=p(90508),A=p(67322),E=p(8929),C=p(74533);const P=new _.OlP("MAT_INPUT_VALUE_ACCESSOR"),m=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L=0;const O=(0,g.FD)(class{constructor(ge,J,Me,oe){this._defaultErrorStateMatcher=ge,this._parentForm=J,this._parentFormGroup=Me,this.ngControl=oe}});let G=(()=>{class ge extends O{constructor(Me,oe,Re,T,j,Y,q,te,ue,de){super(Y,T,j,Re),this._elementRef=Me,this._platform=oe,this._autofillMonitor=te,this._formField=de,this._uid="mat-input-"+L++,this.focused=!1,this.stateChanges=new E.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(ze=>(0,b.qK)().has(ze));const Le=this._elementRef.nativeElement,Ue=Le.nodeName.toLowerCase();this._inputValueAccessor=q||Le,this._previousNativeValue=this.value,this.id=this.id,oe.IOS&&ue.runOutsideAngular(()=>{Me.nativeElement.addEventListener("keyup",ze=>{const le=ze.target;!le.value&&0===le.selectionStart&&0===le.selectionEnd&&(le.setSelectionRange(1,1),le.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Ue,this._isTextarea="textarea"===Ue,this._isInFormField=!!de,this._isNativeSelect&&(this.controlType=Le.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(Me){this._disabled=(0,e.Ig)(Me),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(Me){this._id=Me||this._uid}get required(){var Me,oe,Re,T;return null!==(T=null!==(Me=this._required)&&void 0!==Me?Me:null===(Re=null===(oe=this.ngControl)||void 0===oe?void 0:oe.control)||void 0===Re?void 0:Re.hasValidator(w.kI.required))&&void 0!==T&&T}set required(Me){this._required=(0,e.Ig)(Me)}get type(){return this._type}set type(Me){this._type=Me||"text",this._validateType(),!this._isTextarea&&(0,b.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(Me){Me!==this.value&&(this._inputValueAccessor.value=Me,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(Me){this._readonly=(0,e.Ig)(Me)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(Me=>{this.autofilled=Me.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(Me){this._elementRef.nativeElement.focus(Me)}_focusChanged(Me){Me!==this.focused&&(this.focused=Me,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var Me,oe;const Re=(null===(oe=null===(Me=this._formField)||void 0===Me?void 0:Me._hideControlPlaceholder)||void 0===oe?void 0:oe.call(Me))?null:this.placeholder;if(Re!==this._previousPlaceholder){const T=this._elementRef.nativeElement;this._previousPlaceholder=Re,Re?T.setAttribute("placeholder",Re):T.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const Me=this._elementRef.nativeElement.value;this._previousNativeValue!==Me&&(this._previousNativeValue=Me,this.stateChanges.next())}_validateType(){m.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let Me=this._elementRef.nativeElement.validity;return Me&&Me.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const Me=this._elementRef.nativeElement,oe=Me.options[0];return this.focused||Me.multiple||!this.empty||!!(Me.selectedIndex>-1&&oe&&oe.label)}return this.focused||!this.empty}setDescribedByIds(Me){Me.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Me.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const Me=this._elementRef.nativeElement;return this._isNativeSelect&&(Me.multiple||Me.size>1)}}return ge.\u0275fac=function(Me){return new(Me||ge)(_.Y36(_.SBq),_.Y36(b.t4),_.Y36(w.a5,10),_.Y36(w.F,8),_.Y36(w.sg,8),_.Y36(g.rD),_.Y36(P,10),_.Y36(C.Lq),_.Y36(_.R0b),_.Y36(A.G_,8))},ge.\u0275dir=_.lG2({type:ge,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(Me,oe){1&Me&&_.NdJ("focus",function(){return oe._focusChanged(!0)})("blur",function(){return oe._focusChanged(!1)})("input",function(){return oe._onInput()}),2&Me&&(_.Ikx("disabled",oe.disabled)("required",oe.required),_.uIk("id",oe.id)("data-placeholder",oe.placeholder)("name",oe.name||null)("readonly",oe.readonly&&!oe._isNativeSelect||null)("aria-invalid",oe.empty&&oe.required?null:oe.errorState)("aria-required",oe.required),_.ekj("mat-input-server",oe._isServer)("mat-native-select-inline",oe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[_._Bn([{provide:A.Eo,useExisting:ge}]),_.qOj,_.TTD]}),ge})(),ne=(()=>{class ge{}return ge.\u0275fac=function(Me){return new(Me||ge)},ge.\u0275mod=_.oAB({type:ge}),ge.\u0275inj=_.cJS({providers:[g.rD],imports:[[C.Ky,A.lN,g.BQ],C.Ky,A.lN]}),ge})()},14623:($e,_e,p)=>{"use strict";p.d(_e,{i$:()=>ue,Tg:()=>ze,ie:()=>me});var e=p(69808),b=p(5e3),_=p(90508),w=p(63191),g=p(8929),A=p(7625),L=(p(1059),p(15664),p(20449),p(91159),p(93075),p(4834));const O=["*"],ne=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],ge=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],T=(0,_.Id)((0,_.Kr)(class{})),j=(0,_.Kr)(class{}),Y=new b.OlP("MatList"),q=new b.OlP("MatNavList");let ue=(()=>{class be extends T{constructor(pe){super(),this._elementRef=pe,this._stateChanges=new g.xQ,"action-list"===this._getListType()&&pe.nativeElement.classList.add("mat-action-list")}_getListType(){const pe=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===pe?"list":"mat-action-list"===pe?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[b._Bn([{provide:Y,useExisting:be}]),b.qOj,b.TTD],ngContentSelectors:O,decls:1,vars:0,template:function(pe,Se){1&pe&&(b.F$t(),b.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),be})(),de=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275dir=b.lG2({type:be,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),be})(),Le=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275dir=b.lG2({type:be,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),be})(),ze=(()=>{class be extends j{constructor(pe,Se,Xe,Je){super(),this._element=pe,this._isInteractiveList=!1,this._destroyed=new g.xQ,this._disabled=!1,this._isInteractiveList=!!(Xe||Je&&"action-list"===Je._getListType()),this._list=Xe||Je;const nt=this._getHostElement();"button"===nt.nodeName.toLowerCase()&&!nt.hasAttribute("type")&&nt.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,A.R)(this._destroyed)).subscribe(()=>{Se.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(pe){this._disabled=(0,w.Ig)(pe)}ngAfterContentInit(){(0,_.E0)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return be.\u0275fac=function(pe){return new(pe||be)(b.Y36(b.SBq),b.Y36(b.sBO),b.Y36(q,8),b.Y36(Y,8))},be.\u0275cmp=b.Xpm({type:be,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(pe,Se,Xe){if(1&pe&&(b.Suo(Xe,de,5),b.Suo(Xe,Le,5),b.Suo(Xe,_.X2,5)),2&pe){let Je;b.iGM(Je=b.CRH())&&(Se._avatar=Je.first),b.iGM(Je=b.CRH())&&(Se._icon=Je.first),b.iGM(Je=b.CRH())&&(Se._lines=Je)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(pe,Se){2&pe&&b.ekj("mat-list-item-disabled",Se.disabled)("mat-list-item-avatar",Se._avatar||Se._icon)("mat-list-item-with-avatar",Se._avatar||Se._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[b.qOj],ngContentSelectors:ge,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(pe,Se){1&pe&&(b.F$t(ne),b.TgZ(0,"span",0),b._UZ(1,"span",1),b.Hsn(2),b.TgZ(3,"span",2),b.Hsn(4,1),b.qZA(),b.Hsn(5,2),b.qZA()),2&pe&&(b.xp6(1),b.Q6J("matRippleTrigger",Se._getHostElement())("matRippleDisabled",Se._isRippleDisabled()))},directives:[_.wG],encapsulation:2,changeDetection:0}),be})(),me=(()=>{class be{}return be.\u0275fac=function(pe){return new(pe||be)},be.\u0275mod=b.oAB({type:be}),be.\u0275inj=b.cJS({imports:[[_.uc,_.si,_.BQ,_.us,e.ez],_.uc,_.BQ,_.us,L.t]}),be})()},92181:($e,_e,p)=>{"use strict";p.d(_e,{VK:()=>Ve,OP:()=>pe,Tx:()=>Qe,p6:()=>xe});var e=p(15664),b=p(63191),_=p(91159),w=p(5e3),g=p(8929),A=p(42654),E=p(36787),C=p(21086),I=p(8139),P=p(1059),m=p(87545),L=p(72986),O=p(7625),G=p(92198),ne=p(40943),ge=p(41777),J=p(47429),Me=p(69808),oe=p(90508),Re=p(92845),T=p(70925),j=p(50226),Y=p(53435);const q=["mat-menu-item",""];function te(Te,Ae){1&Te&&(w.O4$(),w.TgZ(0,"svg",2),w._UZ(1,"polygon",3),w.qZA())}const ue=["*"];function de(Te,Ae){if(1&Te){const ae=w.EpF();w.TgZ(0,"div",0),w.NdJ("keydown",function(o){return w.CHM(ae),w.oxw()._handleKeydown(o)})("click",function(){return w.CHM(ae),w.oxw().closed.emit("click")})("@transformMenu.start",function(o){return w.CHM(ae),w.oxw()._onAnimationStart(o)})("@transformMenu.done",function(o){return w.CHM(ae),w.oxw()._onAnimationDone(o)}),w.TgZ(1,"div",1),w.Hsn(2),w.qZA(),w.qZA()}if(2&Te){const ae=w.oxw();w.Q6J("id",ae.panelId)("ngClass",ae._classList)("@transformMenu",ae._panelAnimationState),w.uIk("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby||null)("aria-describedby",ae.ariaDescribedby||null)}}const Le={transformMenu:(0,ge.X$)("transformMenu",[(0,ge.SB)("void",(0,ge.oB)({opacity:0,transform:"scale(0.8)"})),(0,ge.eR)("void => enter",(0,ge.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ge.oB)({opacity:1,transform:"scale(1)"}))),(0,ge.eR)("* => void",(0,ge.jt)("100ms 25ms linear",(0,ge.oB)({opacity:0})))]),fadeInItems:(0,ge.X$)("fadeInItems",[(0,ge.SB)("showing",(0,ge.oB)({opacity:1})),(0,ge.eR)("void => *",[(0,ge.oB)({opacity:0}),(0,ge.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},le=new w.OlP("MatMenuContent"),be=new w.OlP("MAT_MENU_PANEL"),Ie=(0,oe.Kr)((0,oe.Id)(class{}));let pe=(()=>{class Te extends Ie{constructor(ae,i,o,d,l){var s;super(),this._elementRef=ae,this._focusMonitor=o,this._parentMenu=d,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new g.xQ,this._focused=new g.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==d?void 0:d.addItem)||void 0===s||s.call(d,this)}focus(ae,i){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._getHostElement(),ae,i):this._getHostElement().focus(i),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(ae){this.disabled&&(ae.preventDefault(),ae.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ae;const i=this._elementRef.nativeElement.cloneNode(!0),o=i.querySelectorAll("mat-icon, .material-icons");for(let d=0;d{class Te{constructor(ae,i,o){this._elementRef=ae,this._ngZone=i,this._defaultOptions=o,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new w.n_E,this._tabSubscription=A.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new g.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new w.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Je++}get xPosition(){return this._xPosition}set xPosition(ae){this._xPosition=ae,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ae){this._yPosition=ae,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ae){this._overlapTrigger=(0,b.Ig)(ae)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,b.Ig)(ae)}set panelClass(ae){const i=this._previousPanelClass;i&&i.length&&i.split(" ").forEach(o=>{this._classList[o]=!1}),this._previousPanelClass=ae,ae&&ae.length&&(ae.split(" ").forEach(o=>{this._classList[o]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ae){this.panelClass=ae}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,P.O)(this._directDescendantItems),(0,m.w)(ae=>(0,E.T)(...ae.map(i=>i._focused)))).subscribe(ae=>this._keyManager.updateActiveItem(ae))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,P.O)(this._directDescendantItems),(0,m.w)(i=>(0,E.T)(...i.map(o=>o._hovered))))}addItem(ae){}removeItem(ae){}_handleKeydown(ae){const i=ae.keyCode,o=this._keyManager;switch(i){case _.hY:(0,_.Vb)(ae)||(ae.preventDefault(),this.closed.emit("keydown"));break;case _.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case _.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(i===_.LH||i===_.JH)&&o.setFocusOrigin("keyboard"),void o.onKeydown(ae)}ae.stopPropagation()}focusFirstItem(ae="program"){this.lazyContent?this._ngZone.onStable.pipe((0,L.q)(1)).subscribe(()=>this._focusFirstItem(ae)):this._focusFirstItem(ae)}_focusFirstItem(ae){const i=this._keyManager;if(i.setFocusOrigin(ae).setFirstItemActive(),!i.activeItem&&this._directDescendantItems.length){let o=this._directDescendantItems.first._getHostElement().parentElement;for(;o;){if("menu"===o.getAttribute("role")){o.focus();break}o=o.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ae){const i=Math.min(this._baseElevation+ae,24),o=`${this._elevationPrefix}${i}`,d=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!d||d===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[o]=!0,this._previousElevation=o)}setPositionClasses(ae=this.xPosition,i=this.yPosition){const o=this._classList;o["mat-menu-before"]="before"===ae,o["mat-menu-after"]="after"===ae,o["mat-menu-above"]="above"===i,o["mat-menu-below"]="below"===i}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ae){this._animationDone.next(ae),this._isAnimating=!1}_onAnimationStart(ae){this._isAnimating=!0,"enter"===ae.toState&&0===this._keyManager.activeItemIndex&&(ae.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,P.O)(this._allItems)).subscribe(ae=>{this._directDescendantItems.reset(ae.filter(i=>i._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},Te.\u0275dir=w.lG2({type:Te,contentQueries:function(ae,i,o){if(1&ae&&(w.Suo(o,le,5),w.Suo(o,pe,5),w.Suo(o,pe,4)),2&ae){let d;w.iGM(d=w.CRH())&&(i.lazyContent=d.first),w.iGM(d=w.CRH())&&(i._allItems=d),w.iGM(d=w.CRH())&&(i.items=d)}},viewQuery:function(ae,i){if(1&ae&&w.Gf(w.Rgc,5),2&ae){let o;w.iGM(o=w.CRH())&&(i.templateRef=o.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),Te})(),Ve=(()=>{class Te extends nt{constructor(ae,i,o){super(ae,i,o),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(Se))},Te.\u0275cmp=w.Xpm({type:Te,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ae,i){2&ae&&w.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[w._Bn([{provide:be,useExisting:Te}]),w.qOj],ngContentSelectors:ue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ae,i){1&ae&&(w.F$t(),w.YNc(0,de,3,6,"ng-template"))},directives:[Me.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Le.transformMenu,Le.fadeInItems]},changeDetection:0}),Te})();const X=new w.OlP("mat-menu-scroll-strategy"),Q={provide:X,deps:[Re.aV],useFactory:function z(Te){return()=>Te.scrollStrategies.reposition()}},H=(0,T.i$)({passive:!0});let V=(()=>{class Te{constructor(ae,i,o,d,l,s,r,t){this._overlay=ae,this._element=i,this._viewContainerRef=o,this._menuItemInstance=s,this._dir=r,this._focusMonitor=t,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.w.EMPTY,this._hoverSubscription=A.w.EMPTY,this._menuCloseSubscription=A.w.EMPTY,this._handleTouchStart=n=>{(0,e.yG)(n)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new w.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new w.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=d,this._parentMaterialMenu=l instanceof nt?l:void 0,i.nativeElement.addEventListener("touchstart",this._handleTouchStart,H),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ae){this.menu=ae}get menu(){return this._menu}set menu(ae){ae!==this._menu&&(this._menu=ae,this._menuCloseSubscription.unsubscribe(),ae&&(this._menuCloseSubscription=ae.close.subscribe(i=>{this._destroyMenu(i),("click"===i||"tab"===i)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(i)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,H),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const ae=this._createOverlay(),i=ae.getConfig(),o=i.positionStrategy;this._setPosition(o),i.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ae.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nt&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,O.R)(this.menu.close)).subscribe(()=>{o.withLockedPosition(!1).reapplyLastPosition(),o.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(ae,i){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._element,ae,i):this._element.nativeElement.focus(i)}updatePosition(){var ae;null===(ae=this._overlayRef)||void 0===ae||ae.updatePosition()}_destroyMenu(ae){if(!this._overlayRef||!this.menuOpen)return;const i=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ae||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,i instanceof nt?(i._resetAnimation(),i.lazyContent?i._animationDone.pipe((0,G.h)(o=>"void"===o.toState),(0,L.q)(1),(0,O.R)(i.lazyContent._attached)).subscribe({next:()=>i.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),i.lazyContent&&i.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let ae=0,i=this.menu.parentMenu;for(;i;)ae++,i=i.parentMenu;this.menu.setElevation(ae)}}_setIsMenuOpen(ae){this._menuOpen=ae,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ae)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ae=this._getOverlayConfig();this._subscribeToPositions(ae.positionStrategy),this._overlayRef=this._overlay.create(ae),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Re.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ae){this.menu.setPositionClasses&&ae.positionChanges.subscribe(i=>{this.menu.setPositionClasses("start"===i.connectionPair.overlayX?"after":"before","top"===i.connectionPair.overlayY?"below":"above")})}_setPosition(ae){let[i,o]="before"===this.menu.xPosition?["end","start"]:["start","end"],[d,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,r]=[d,l],[t,n]=[i,o],a=0;this.triggersSubmenu()?(n=i="before"===this.menu.xPosition?"start":"end",o=t="end"===i?"start":"end",a="bottom"===d?8:-8):this.menu.overlapTrigger||(s="top"===d?"bottom":"top",r="top"===l?"bottom":"top"),ae.withPositions([{originX:i,originY:s,overlayX:t,overlayY:d,offsetY:a},{originX:o,originY:s,overlayX:n,overlayY:d,offsetY:a},{originX:i,originY:r,overlayX:t,overlayY:l,offsetY:-a},{originX:o,originY:r,overlayX:n,overlayY:l,offsetY:-a}])}_menuClosingActions(){const ae=this._overlayRef.backdropClick(),i=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,C.of)(),d=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,G.h)(l=>l!==this._menuItemInstance),(0,G.h)(()=>this._menuOpen)):(0,C.of)();return(0,E.T)(ae,o,d,i)}_handleMousedown(ae){(0,e.X6)(ae)||(this._openedBy=0===ae.button?"mouse":void 0,this.triggersSubmenu()&&ae.preventDefault())}_handleKeydown(ae){const i=ae.keyCode;(i===_.K5||i===_.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(i===_.SV&&"ltr"===this.dir||i===_.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ae){this.triggersSubmenu()?(ae.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,G.h)(ae=>ae===this._menuItemInstance&&!ae.disabled),(0,ne.g)(0,I.e)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,L.q)(1),(0,ne.g)(0,I.e),(0,O.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new J.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return Te.\u0275fac=function(ae){return new(ae||Te)(w.Y36(Re.aV),w.Y36(w.SBq),w.Y36(w.s_b),w.Y36(X),w.Y36(be,8),w.Y36(pe,10),w.Y36(j.Is,8),w.Y36(e.tE))},Te.\u0275dir=w.lG2({type:Te,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ae,i){1&ae&&w.NdJ("click",function(d){return i._handleClick(d)})("mousedown",function(d){return i._handleMousedown(d)})("keydown",function(d){return i._handleKeydown(d)}),2&ae&&w.uIk("aria-expanded",i.menuOpen||null)("aria-controls",i.menuOpen?i.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"}}),Te})(),xe=(()=>{class Te extends V{}return Te.\u0275fac=function(){let Ae;return function(i){return(Ae||(Ae=w.n5z(Te)))(i||Te)}}(),Te.\u0275dir=w.lG2({type:Te,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[w.qOj]}),Te})(),Qe=(()=>{class Te{}return Te.\u0275fac=function(ae){return new(ae||Te)},Te.\u0275mod=w.oAB({type:Te}),Te.\u0275inj=w.cJS({providers:[Q],imports:[[Me.ez,oe.BQ,oe.si,Re.U8],Y.ZD,oe.BQ]}),Te})()},86087:($e,_e,p)=>{"use strict";p.d(_e,{NW:()=>q,ye:()=>ge,TU:()=>te});var e=p(69808),b=p(5e3),_=p(90508),w=p(47423),g=p(74107),A=p(29772),E=p(63191),C=p(8929),I=p(67322);function P(ue,de){if(1&ue&&(b.TgZ(0,"mat-option",19),b._uU(1),b.qZA()),2&ue){const Le=de.$implicit;b.Q6J("value",Le),b.xp6(1),b.hij(" ",Le," ")}}function m(ue,de){if(1&ue){const Le=b.EpF();b.TgZ(0,"mat-form-field",16),b.TgZ(1,"mat-select",17),b.NdJ("selectionChange",function(ze){return b.CHM(Le),b.oxw(2)._changePageSize(ze.value)}),b.YNc(2,P,2,2,"mat-option",18),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw(2);b.Q6J("appearance",Le._formFieldAppearance)("color",Le.color),b.xp6(1),b.Q6J("value",Le.pageSize)("disabled",Le.disabled)("aria-label",Le._intl.itemsPerPageLabel),b.xp6(1),b.Q6J("ngForOf",Le._displayedPageSizeOptions)}}function L(ue,de){if(1&ue&&(b.TgZ(0,"div",20),b._uU(1),b.qZA()),2&ue){const Le=b.oxw(2);b.xp6(1),b.Oqu(Le.pageSize)}}function O(ue,de){if(1&ue&&(b.TgZ(0,"div",12),b.TgZ(1,"div",13),b._uU(2),b.qZA(),b.YNc(3,m,3,6,"mat-form-field",14),b.YNc(4,L,2,1,"div",15),b.qZA()),2&ue){const Le=b.oxw();b.xp6(2),b.hij(" ",Le._intl.itemsPerPageLabel," "),b.xp6(1),b.Q6J("ngIf",Le._displayedPageSizeOptions.length>1),b.xp6(1),b.Q6J("ngIf",Le._displayedPageSizeOptions.length<=1)}}function G(ue,de){if(1&ue){const Le=b.EpF();b.TgZ(0,"button",21),b.NdJ("click",function(){return b.CHM(Le),b.oxw().firstPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",22),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw();b.Q6J("matTooltip",Le._intl.firstPageLabel)("matTooltipDisabled",Le._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Le._previousButtonsDisabled()),b.uIk("aria-label",Le._intl.firstPageLabel)}}function ne(ue,de){if(1&ue){const Le=b.EpF();b.O4$(),b.kcU(),b.TgZ(0,"button",23),b.NdJ("click",function(){return b.CHM(Le),b.oxw().lastPage()}),b.O4$(),b.TgZ(1,"svg",7),b._UZ(2,"path",24),b.qZA(),b.qZA()}if(2&ue){const Le=b.oxw();b.Q6J("matTooltip",Le._intl.lastPageLabel)("matTooltipDisabled",Le._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Le._nextButtonsDisabled()),b.uIk("aria-label",Le._intl.lastPageLabel)}}let ge=(()=>{class ue{constructor(){this.changes=new C.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(Le,Ue,ze)=>{if(0==ze||0==Ue)return`0 of ${ze}`;const le=Le*Ue;return`${le+1} \u2013 ${le<(ze=Math.max(ze,0))?Math.min(le+Ue,ze):le+Ue} of ${ze}`}}}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275prov=b.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const Me={provide:ge,deps:[[new b.FiY,new b.tp0,ge]],useFactory:function J(ue){return ue||new ge}},T=new b.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),j=(0,_.Id)((0,_.dB)(class{}));let Y=(()=>{class ue extends j{constructor(Le,Ue,ze){if(super(),this._intl=Le,this._changeDetectorRef=Ue,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new b.vpe,this._intlChanges=Le.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),ze){const{pageSize:le,pageSizeOptions:je,hidePageSize:ye,showFirstLastButtons:Be}=ze;null!=le&&(this._pageSize=le),null!=je&&(this._pageSizeOptions=je),null!=ye&&(this._hidePageSize=ye),null!=Be&&(this._showFirstLastButtons=Be)}}get pageIndex(){return this._pageIndex}set pageIndex(Le){this._pageIndex=Math.max((0,E.su)(Le),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(Le){this._length=(0,E.su)(Le),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(Le){this._pageSize=Math.max((0,E.su)(Le),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Le){this._pageSizeOptions=(Le||[]).map(Ue=>(0,E.su)(Ue)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(Le){this._hidePageSize=(0,E.Ig)(Le)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(Le){this._showFirstLastButtons=(0,E.Ig)(Le)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const Le=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(Le)}previousPage(){if(!this.hasPreviousPage())return;const Le=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(Le)}firstPage(){if(!this.hasPreviousPage())return;const Le=this.pageIndex;this.pageIndex=0,this._emitPageEvent(Le)}lastPage(){if(!this.hasNextPage())return;const Le=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(Le)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Le=this.getNumberOfPages()-1;return this.pageIndexLe-Ue),this._changeDetectorRef.markForCheck())}_emitPageEvent(Le){this.page.emit({previousPageIndex:Le,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return ue.\u0275fac=function(Le){b.$Z()},ue.\u0275dir=b.lG2({type:ue,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[b.qOj]}),ue})(),q=(()=>{class ue extends Y{constructor(Le,Ue,ze){super(Le,Ue,ze),ze&&null!=ze.formFieldAppearance&&(this._formFieldAppearance=ze.formFieldAppearance)}}return ue.\u0275fac=function(Le){return new(Le||ue)(b.Y36(ge),b.Y36(b.sBO),b.Y36(T,8))},ue.\u0275cmp=b.Xpm({type:ue,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[b.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Le,Ue){1&Le&&(b.TgZ(0,"div",0),b.TgZ(1,"div",1),b.YNc(2,O,5,3,"div",2),b.TgZ(3,"div",3),b.TgZ(4,"div",4),b._uU(5),b.qZA(),b.YNc(6,G,3,5,"button",5),b.TgZ(7,"button",6),b.NdJ("click",function(){return Ue.previousPage()}),b.O4$(),b.TgZ(8,"svg",7),b._UZ(9,"path",8),b.qZA(),b.qZA(),b.kcU(),b.TgZ(10,"button",9),b.NdJ("click",function(){return Ue.nextPage()}),b.O4$(),b.TgZ(11,"svg",7),b._UZ(12,"path",10),b.qZA(),b.qZA(),b.YNc(13,ne,3,5,"button",11),b.qZA(),b.qZA(),b.qZA()),2&Le&&(b.xp6(2),b.Q6J("ngIf",!Ue.hidePageSize),b.xp6(3),b.hij(" ",Ue._intl.getRangeLabel(Ue.pageIndex,Ue.pageSize,Ue.length)," "),b.xp6(1),b.Q6J("ngIf",Ue.showFirstLastButtons),b.xp6(1),b.Q6J("matTooltip",Ue._intl.previousPageLabel)("matTooltipDisabled",Ue._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._previousButtonsDisabled()),b.uIk("aria-label",Ue._intl.previousPageLabel),b.xp6(3),b.Q6J("matTooltip",Ue._intl.nextPageLabel)("matTooltipDisabled",Ue._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Ue._nextButtonsDisabled()),b.uIk("aria-label",Ue._intl.nextPageLabel),b.xp6(3),b.Q6J("ngIf",Ue.showFirstLastButtons))},directives:[I.KE,g.gD,_.ey,w.lW,e.O5,e.sg,A.gM],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),ue})(),te=(()=>{class ue{}return ue.\u0275fac=function(Le){return new(Le||ue)},ue.\u0275mod=b.oAB({type:ue}),ue.\u0275inj=b.cJS({providers:[Me],imports:[[e.ez,w.ot,g.LD,A.AV,_.BQ]]}),ue})()},85899:($e,_e,p)=>{"use strict";p.d(_e,{Cv:()=>L});var e=p(5e3),b=p(69808),_=p(90508);let L=(()=>{class O{}return O.\u0275fac=function(ne){return new(ne||O)},O.\u0275mod=e.oAB({type:O}),O.\u0275inj=e.cJS({imports:[[b.ez,_.BQ],_.BQ]}),O})()},20773:($e,_e,p)=>{"use strict";p.d(_e,{Cq:()=>j,$g:()=>T});var e=p(5e3),b=p(69808),_=p(90508),w=p(63191),g=p(70925),A=p(76360),E=p(42654),C=p(53435);function I(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+te._spinnerAnimationLabel)("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function P(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function m(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+te._spinnerAnimationLabel)("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}function L(Y,q){if(1&Y&&(e.O4$(),e._UZ(0,"circle",4)),2&Y){const te=e.oxw(),ue=e.MAs(1);e.Udp("stroke-dashoffset",te._getStrokeDashOffset(),"px")("stroke-dasharray",te._getStrokeCircumference(),"px")("stroke-width",te._getCircleStrokeWidth(),"%")("transform-origin",te._getCircleTransformOrigin(ue)),e.uIk("r",te._getCircleRadius())}}const ge=(0,_.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),J=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function Me(){return{diameter:100}}});class Re extends ge{constructor(q,te,ue,de,Le,Ue,ze,le){super(q),this._document=ue,this._diameter=100,this._value=0,this._resizeSubscription=E.w.EMPTY,this.mode="determinate";const je=Re._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),je.has(ue.head)||je.set(ue.head,new Set([100])),this._noopAnimations="NoopAnimations"===de&&!!Le&&!Le._forceAnimations,Le&&(Le.diameter&&(this.diameter=Le.diameter),Le.strokeWidth&&(this.strokeWidth=Le.strokeWidth)),te.isBrowser&&te.SAFARI&&ze&&Ue&&le&&(this._resizeSubscription=ze.change(150).subscribe(()=>{"indeterminate"===this.mode&&le.run(()=>Ue.markForCheck())}))}get diameter(){return this._diameter}set diameter(q){this._diameter=(0,w.su)(q),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(q){this._strokeWidth=(0,w.su)(q)}get value(){return"determinate"===this.mode?this._value:0}set value(q){this._value=Math.max(0,Math.min(100,(0,w.su)(q)))}ngOnInit(){const q=this._elementRef.nativeElement;this._styleRoot=(0,g.kV)(q)||this._document.head,this._attachStyleNode(),q.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const q=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${q} ${q}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(q){var te;const ue=50*(null!==(te=q.currentScale)&&void 0!==te?te:1);return`${ue}% ${ue}%`}_attachStyleNode(){const q=this._styleRoot,te=this._diameter,ue=Re._diameters;let de=ue.get(q);if(!de||!de.has(te)){const Le=this._document.createElement("style");Le.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Le.textContent=this._getAnimationText(),q.appendChild(Le),de||(de=new Set,ue.set(q,de)),de.add(te)}}_getAnimationText(){const q=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*q).replace(/END_VALUE/g,""+.2*q).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Re._diameters=new WeakMap,Re.\u0275fac=function(q){return new(q||Re)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(J),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},Re.\u0275cmp=e.Xpm({type:Re,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(q,te){2&q&&(e.uIk("aria-valuemin","determinate"===te.mode?0:null)("aria-valuemax","determinate"===te.mode?100:null)("aria-valuenow","determinate"===te.mode?te.value:null)("mode",te.mode),e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.ekj("_mat-animation-noopable",te._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(q,te){1&q&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,I,1,11,"circle",2),e.YNc(3,P,1,9,"circle",3),e.qZA()),2&q&&(e.Udp("width",te.diameter,"px")("height",te.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===te.mode),e.uIk("viewBox",te._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let T=(()=>{class Y extends Re{constructor(te,ue,de,Le,Ue,ze,le,je){super(te,ue,de,Le,Ue,ze,le,je),this.mode="indeterminate"}}return Y.\u0275fac=function(te){return new(te||Y)(e.Y36(e.SBq),e.Y36(g.t4),e.Y36(b.K0,8),e.Y36(A.Qb,8),e.Y36(J),e.Y36(e.sBO),e.Y36(C.rL),e.Y36(e.R0b))},Y.\u0275cmp=e.Xpm({type:Y,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(te,ue){2&te&&(e.Udp("width",ue.diameter,"px")("height",ue.diameter,"px"),e.ekj("_mat-animation-noopable",ue._noopAnimations))},inputs:{color:"color"},features:[e.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(te,ue){1&te&&(e.O4$(),e.TgZ(0,"svg",0,1),e.YNc(2,m,1,11,"circle",2),e.YNc(3,L,1,9,"circle",3),e.qZA()),2&te&&(e.Udp("width",ue.diameter,"px")("height",ue.diameter,"px"),e.Q6J("ngSwitch","indeterminate"===ue.mode),e.uIk("viewBox",ue._getViewBox()),e.xp6(2),e.Q6J("ngSwitchCase",!0),e.xp6(1),e.Q6J("ngSwitchCase",!1))},directives:[b.RF,b.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=e.oAB({type:Y}),Y.\u0275inj=e.cJS({imports:[[_.BQ,b.ez],_.BQ]}),Y})()},79814:($e,_e,p)=>{"use strict";p.d(_e,{U0:()=>j,VQ:()=>Me,Fk:()=>Y});var e=p(5e3),b=p(90508),_=p(63191),w=p(93075),g=p(76360),A=p(15664),E=p(20449);const C=["input"],I=function(q){return{enterDuration:q}},P=["*"],m=new e.OlP("mat-radio-default-options",{providedIn:"root",factory:function L(){return{color:"accent"}}});let O=0;const G={provide:w.JU,useExisting:(0,e.Gpc)(()=>Me),multi:!0};class ne{constructor(te,ue){this.source=te,this.value=ue}}const ge=new e.OlP("MatRadioGroup");let J=(()=>{class q{constructor(ue){this._changeDetector=ue,this._value=null,this._name="mat-radio-group-"+O++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new e.vpe}get name(){return this._name}set name(ue){this._name=ue,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(ue){this._labelPosition="before"===ue?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(ue){this._selected=ue,this.value=ue?ue.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(ue){this._disabled=(0,_.Ig)(ue),this._markRadiosForCheck()}get required(){return this._required}set required(ue){this._required=(0,_.Ig)(ue),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(ue=>{ue.name=this.name,ue._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(de=>{de.checked=this.value===de.value,de.checked&&(this._selected=de)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new ne(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(ue=>ue._markForCheck())}writeValue(ue){this.value=ue,this._changeDetector.markForCheck()}registerOnChange(ue){this._controlValueAccessorChangeFn=ue}registerOnTouched(ue){this.onTouched=ue}setDisabledState(ue){this.disabled=ue,this._changeDetector.markForCheck()}}return q.\u0275fac=function(ue){return new(ue||q)(e.Y36(e.sBO))},q.\u0275dir=e.lG2({type:q,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),q})(),Me=(()=>{class q extends J{}return q.\u0275fac=function(){let te;return function(de){return(te||(te=e.n5z(q)))(de||q)}}(),q.\u0275dir=e.lG2({type:q,selectors:[["mat-radio-group"]],contentQueries:function(ue,de,Le){if(1&ue&&e.Suo(Le,j,5),2&ue){let Ue;e.iGM(Ue=e.CRH())&&(de._radios=Ue)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[e._Bn([G,{provide:ge,useExisting:q}]),e.qOj]}),q})();class oe{constructor(te){this._elementRef=te}}const Re=(0,b.Kr)((0,b.sb)(oe));let T=(()=>{class q extends Re{constructor(ue,de,Le,Ue,ze,le,je,ye){super(de),this._changeDetector=Le,this._focusMonitor=Ue,this._radioDispatcher=ze,this._providerOverride=je,this._uniqueId="mat-radio-"+ ++O,this.id=this._uniqueId,this.change=new e.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=ue,this._noopAnimations="NoopAnimations"===le,ye&&(this.tabIndex=(0,_.su)(ye,0)),this._removeUniqueSelectionListener=ze.listen((Be,W)=>{Be!==this.id&&W===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(ue){const de=(0,_.Ig)(ue);this._checked!==de&&(this._checked=de,de&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!de&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),de&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(ue){this._value!==ue&&(this._value=ue,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===ue),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(ue){this._labelPosition=ue}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(ue){this._setDisabled((0,_.Ig)(ue))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(ue){this._required=(0,_.Ig)(ue)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(ue){this._color=ue}get inputId(){return`${this.id||this._uniqueId}-input`}focus(ue,de){de?this._focusMonitor.focusVia(this._inputElement,de,ue):this._inputElement.nativeElement.focus(ue)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(ue=>{!ue&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new ne(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(ue){ue.stopPropagation()}_onInputInteraction(ue){if(ue.stopPropagation(),!this.checked&&!this.disabled){const de=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),de&&this.radioGroup._emitChangeEvent())}}_setDisabled(ue){this._disabled!==ue&&(this._disabled=ue,this._changeDetector.markForCheck())}}return q.\u0275fac=function(ue){e.$Z()},q.\u0275dir=e.lG2({type:q,viewQuery:function(ue,de){if(1&ue&&e.Gf(C,5),2&ue){let Le;e.iGM(Le=e.CRH())&&(de._inputElement=Le.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[e.qOj]}),q})(),j=(()=>{class q extends T{constructor(ue,de,Le,Ue,ze,le,je,ye){super(ue,de,Le,Ue,ze,le,je,ye)}}return q.\u0275fac=function(ue){return new(ue||q)(e.Y36(ge,8),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(A.tE),e.Y36(E.A8),e.Y36(g.Qb,8),e.Y36(m,8),e.$8M("tabindex"))},q.\u0275cmp=e.Xpm({type:q,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(ue,de){1&ue&&e.NdJ("focus",function(){return de._inputElement.nativeElement.focus()}),2&ue&&(e.uIk("tabindex",null)("id",de.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),e.ekj("mat-radio-checked",de.checked)("mat-radio-disabled",de.disabled)("_mat-animation-noopable",de._noopAnimations)("mat-primary","primary"===de.color)("mat-accent","accent"===de.color)("mat-warn","warn"===de.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[e.qOj],ngContentSelectors:P,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(ue,de){if(1&ue&&(e.F$t(),e.TgZ(0,"label",0,1),e.TgZ(2,"span",2),e._UZ(3,"span",3),e._UZ(4,"span",4),e.TgZ(5,"input",5,6),e.NdJ("change",function(Ue){return de._onInputInteraction(Ue)})("click",function(Ue){return de._onInputClick(Ue)}),e.qZA(),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA(),e.qZA(),e.TgZ(9,"span",9),e.TgZ(10,"span",10),e._uU(11,"\xa0"),e.qZA(),e.Hsn(12),e.qZA(),e.qZA()),2&ue){const Le=e.MAs(1);e.uIk("for",de.inputId),e.xp6(5),e.Q6J("id",de.inputId)("checked",de.checked)("disabled",de.disabled)("tabIndex",de.tabIndex)("required",de.required),e.uIk("name",de.name)("value",de.value)("aria-label",de.ariaLabel)("aria-labelledby",de.ariaLabelledby)("aria-describedby",de.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",Le)("matRippleDisabled",de._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,I,de._noopAnimations?0:150)),e.xp6(2),e.ekj("mat-radio-label-before","before"==de.labelPosition)}},directives:[b.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),q})(),Y=(()=>{class q{}return q.\u0275fac=function(ue){return new(ue||q)},q.\u0275mod=e.oAB({type:q}),q.\u0275inj=e.cJS({imports:[[b.si,b.BQ],b.BQ]}),q})()},74107:($e,_e,p)=>{"use strict";p.d(_e,{gD:()=>Qe,LD:()=>Te,$L:()=>V});var e=p(92845),b=p(69808),_=p(5e3),w=p(90508),g=p(67322),A=p(53435),E=p(15664),C=p(63191),I=p(20449),P=p(91159),m=p(93075),L=p(8929),O=p(88514),G=p(36787),ne=p(1059),ge=p(87545),J=p(72986),Me=p(92198),oe=p(24850),Re=p(75778),T=p(7625),j=p(41777),Y=p(50226);const q=["trigger"],te=["panel"];function ue(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",8),_._uU(1),_.qZA()),2&Ae){const i=_.oxw();_.xp6(1),_.Oqu(i.placeholder)}}function de(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",12),_._uU(1),_.qZA()),2&Ae){const i=_.oxw(2);_.xp6(1),_.Oqu(i.triggerValue)}}function Le(Ae,ae){1&Ae&&_.Hsn(0,0,["*ngSwitchCase","true"])}function Ue(Ae,ae){if(1&Ae&&(_.TgZ(0,"span",9),_.YNc(1,de,2,1,"span",10),_.YNc(2,Le,1,0,"ng-content",11),_.qZA()),2&Ae){const i=_.oxw();_.Q6J("ngSwitch",!!i.customTrigger),_.xp6(2),_.Q6J("ngSwitchCase",!0)}}function ze(Ae,ae){if(1&Ae){const i=_.EpF();_.TgZ(0,"div",13),_.TgZ(1,"div",14,15),_.NdJ("@transformPanel.done",function(d){return _.CHM(i),_.oxw()._panelDoneAnimatingStream.next(d.toState)})("keydown",function(d){return _.CHM(i),_.oxw()._handleKeydown(d)}),_.Hsn(3,1),_.qZA(),_.qZA()}if(2&Ae){const i=_.oxw();_.Q6J("@transformPanelWrap",void 0),_.xp6(1),_.Gre("mat-select-panel ",i._getPanelTheme(),""),_.Udp("transform-origin",i._transformOrigin)("font-size",i._triggerFontSize,"px"),_.Q6J("ngClass",i.panelClass)("@transformPanel",i.multiple?"showing-multiple":"showing"),_.uIk("id",i.id+"-panel")("aria-multiselectable",i.multiple)("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby())}}const le=[[["mat-select-trigger"]],"*"],je=["mat-select-trigger","*"],ye={transformPanelWrap:(0,j.X$)("transformPanelWrap",[(0,j.eR)("* => void",(0,j.IO)("@transformPanel",[(0,j.pV)()],{optional:!0}))]),transformPanel:(0,j.X$)("transformPanel",[(0,j.SB)("void",(0,j.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,j.SB)("showing",(0,j.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,j.SB)("showing-multiple",(0,j.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,j.eR)("void => *",(0,j.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,j.eR)("* => void",(0,j.jt)("100ms 25ms linear",(0,j.oB)({opacity:0})))])};let me=0;const nt=new _.OlP("mat-select-scroll-strategy"),X=new _.OlP("MAT_SELECT_CONFIG"),z={provide:nt,deps:[e.aV],useFactory:function Ve(Ae){return()=>Ae.scrollStrategies.reposition()}};class Q{constructor(ae,i){this.source=ae,this.value=i}}const D=(0,w.Kr)((0,w.sb)((0,w.Id)((0,w.FD)(class{constructor(Ae,ae,i,o,d){this._elementRef=Ae,this._defaultErrorStateMatcher=ae,this._parentForm=i,this._parentFormGroup=o,this.ngControl=d}})))),H=new _.OlP("MatSelectTrigger");let V=(()=>{class Ae{}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275dir=_.lG2({type:Ae,selectors:[["mat-select-trigger"]],features:[_._Bn([{provide:H,useExisting:Ae}])]}),Ae})(),xe=(()=>{class Ae extends D{constructor(i,o,d,l,s,r,t,n,a,c,h,x,We,At){var Ht,lt,Ut;super(s,l,t,n,c),this._viewportRuler=i,this._changeDetectorRef=o,this._ngZone=d,this._dir=r,this._parentFormField=a,this._liveAnnouncer=We,this._defaultOptions=At,this._panelOpen=!1,this._compareWith=(mt,Lt)=>mt===Lt,this._uid="mat-select-"+me++,this._triggerAriaLabelledBy=null,this._destroy=new L.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+me++,this._panelDoneAnimatingStream=new L.xQ,this._overlayPanelClass=(null===(Ht=this._defaultOptions)||void 0===Ht?void 0:Ht.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Ut=null===(lt=this._defaultOptions)||void 0===lt?void 0:lt.disableOptionCentering)&&void 0!==Ut&&Ut,this.ariaLabel="",this.optionSelectionChanges=(0,O.P)(()=>{const mt=this.options;return mt?mt.changes.pipe((0,ne.O)(mt),(0,ge.w)(()=>(0,G.T)(...mt.map(Lt=>Lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,J.q)(1),(0,ge.w)(()=>this.optionSelectionChanges))}),this.openedChange=new _.vpe,this._openedStream=this.openedChange.pipe((0,Me.h)(mt=>mt),(0,oe.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Me.h)(mt=>!mt),(0,oe.U)(()=>{})),this.selectionChange=new _.vpe,this.valueChange=new _.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==At?void 0:At.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=At.typeaheadDebounceInterval),this._scrollStrategyFactory=x,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(h)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(i){this._placeholder=i,this.stateChanges.next()}get required(){var i,o,d,l;return null!==(l=null!==(i=this._required)&&void 0!==i?i:null===(d=null===(o=this.ngControl)||void 0===o?void 0:o.control)||void 0===d?void 0:d.hasValidator(m.kI.required))&&void 0!==l&&l}set required(i){this._required=(0,C.Ig)(i),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(i){this._multiple=(0,C.Ig)(i)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(i){this._disableOptionCentering=(0,C.Ig)(i)}get compareWith(){return this._compareWith}set compareWith(i){this._compareWith=i,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(i){(i!==this._value||this._multiple&&Array.isArray(i))&&(this.options&&this._setSelectionByValue(i),this._value=i)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(i){this._typeaheadDebounceInterval=(0,C.su)(i)}get id(){return this._id}set id(i){this._id=i||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new I.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Re.x)(),(0,T.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,T.R)(this._destroy)).subscribe(i=>{i.added.forEach(o=>o.select()),i.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,ne.O)(null),(0,T.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const i=this._getTriggerAriaLabelledby();if(i!==this._triggerAriaLabelledBy){const o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=i,i?o.setAttribute("aria-labelledby",i):o.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(i){i.disabled&&this.stateChanges.next(),i.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(i){this.value=i}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this.disabled=i,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var i,o;return this.multiple?(null===(i=this._selectionModel)||void 0===i?void 0:i.selected)||[]:null===(o=this._selectionModel)||void 0===o?void 0:o.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const i=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&i.reverse(),i.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(i){this.disabled||(this.panelOpen?this._handleOpenKeydown(i):this._handleClosedKeydown(i))}_handleClosedKeydown(i){const o=i.keyCode,d=o===P.JH||o===P.LH||o===P.oh||o===P.SV,l=o===P.K5||o===P.L_,s=this._keyManager;if(!s.isTyping()&&l&&!(0,P.Vb)(i)||(this.multiple||i.altKey)&&d)i.preventDefault(),this.open();else if(!this.multiple){const r=this.selected;s.onKeydown(i);const t=this.selected;t&&r!==t&&this._liveAnnouncer.announce(t.viewValue,1e4)}}_handleOpenKeydown(i){const o=this._keyManager,d=i.keyCode,l=d===P.JH||d===P.LH,s=o.isTyping();if(l&&i.altKey)i.preventDefault(),this.close();else if(s||d!==P.K5&&d!==P.L_||!o.activeItem||(0,P.Vb)(i))if(!s&&this._multiple&&d===P.A&&i.ctrlKey){i.preventDefault();const r=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(r?t.select():t.deselect())})}else{const r=o.activeItemIndex;o.onKeydown(i),this._multiple&&l&&i.shiftKey&&o.activeItem&&o.activeItemIndex!==r&&o.activeItem._selectViaInteraction()}else i.preventDefault(),o.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,J.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(i){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&i)Array.isArray(i),i.forEach(o=>this._selectValue(o)),this._sortValues();else{const o=this._selectValue(i);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(i){const o=this.options.find(d=>{if(this._selectionModel.isSelected(d))return!1;try{return null!=d.value&&this._compareWith(d.value,i)}catch(l){return!1}});return o&&this._selectionModel.select(o),o}_initKeyManager(){this._keyManager=new E.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,T.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const i=(0,G.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,T.R)(i)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,G.T)(...this.options.map(o=>o._stateChanges)).pipe((0,T.R)(i)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(i,o){const d=this._selectionModel.isSelected(i);null!=i.value||this._multiple?(d!==i.selected&&(i.selected?this._selectionModel.select(i):this._selectionModel.deselect(i)),o&&this._keyManager.setActiveItem(i),this.multiple&&(this._sortValues(),o&&this.focus())):(i.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(i.value)),d!==this._selectionModel.isSelected(i)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const i=this.options.toArray();this._selectionModel.sort((o,d)=>this.sortComparator?this.sortComparator(o,d,i):i.indexOf(o)-i.indexOf(d)),this.stateChanges.next()}}_propagateChanges(i){let o=null;o=this.multiple?this.selected.map(d=>d.value):this.selected?this.selected.value:i,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var i;return!this._panelOpen&&!this.disabled&&(null===(i=this.options)||void 0===i?void 0:i.length)>0}focus(i){this._elementRef.nativeElement.focus(i)}_getPanelAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();return this.ariaLabelledby?(o?o+" ":"")+this.ariaLabelledby:o}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var i;if(this.ariaLabel)return null;const o=null===(i=this._parentFormField)||void 0===i?void 0:i.getLabelId();let d=(o?o+" ":"")+this._valueId;return this.ariaLabelledby&&(d+=" "+this.ariaLabelledby),d}_panelDoneAnimating(i){this.openedChange.emit(i)}setDescribedByIds(i){this._ariaDescribedby=i.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Ae.\u0275fac=function(i){return new(i||Ae)(_.Y36(A.rL),_.Y36(_.sBO),_.Y36(_.R0b),_.Y36(w.rD),_.Y36(_.SBq),_.Y36(Y.Is,8),_.Y36(m.F,8),_.Y36(m.sg,8),_.Y36(g.G_,8),_.Y36(m.a5,10),_.$8M("tabindex"),_.Y36(nt),_.Y36(E.Kd),_.Y36(X,8))},Ae.\u0275dir=_.lG2({type:Ae,viewQuery:function(i,o){if(1&i&&(_.Gf(q,5),_.Gf(te,5),_.Gf(e.pI,5)),2&i){let d;_.iGM(d=_.CRH())&&(o.trigger=d.first),_.iGM(d=_.CRH())&&(o.panel=d.first),_.iGM(d=_.CRH())&&(o._overlayDir=d.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[_.qOj,_.TTD]}),Ae})(),Qe=(()=>{class Ae extends xe{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(i,o,d){const l=this._getItemHeight();return Math.min(Math.max(0,l*i-o+l/2),d)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,T.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,J.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(i){const o=(0,w.CB)(i,this.options,this.optionGroups),d=this._getItemHeight();this.panel.nativeElement.scrollTop=0===i&&1===o?0:(0,w.jH)((i+o)*d,d,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(i){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(i)}_getChangeEvent(i){return new Q(this,i)}_calculateOverlayOffsetX(){const i=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),d=this._isRtl(),l=this.multiple?56:32;let s;if(this.multiple)s=40;else if(this.disableOptionCentering)s=16;else{let n=this._selectionModel.selected[0]||this.options.first;s=n&&n.group?32:16}d||(s*=-1);const r=0-(i.left+s-(d?l:0)),t=i.right+s-o.width+(d?0:l);r>0?s+=r+8:t>0&&(s-=t+8),this._overlayDir.offsetX=Math.round(s),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(i,o,d){const l=this._getItemHeight(),s=(l-this._triggerRect.height)/2,r=Math.floor(256/l);let t;return this.disableOptionCentering?0:(t=0===this._scrollTop?i*l:this._scrollTop===d?(i-(this._getItemCount()-r))*l+(l-(this._getItemCount()*l-256)%l):o-l/2,Math.round(-1*t-s))}_checkOverlayWithinViewport(i){const o=this._getItemHeight(),d=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,s=d.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),n=Math.min(this._getItemCount()*o,256)-r-this._triggerRect.height;n>s?this._adjustPanelUp(n,s):r>l?this._adjustPanelDown(r,l,i):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(i,o){const d=Math.round(i-o);this._scrollTop-=d,this._offsetY-=d,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(i,o,d){const l=Math.round(i-o);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=d)return this._scrollTop=d,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const i=this._getItemHeight(),o=this._getItemCount(),d=Math.min(o*i,256),s=o*i-d;let r;r=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),r+=(0,w.CB)(r,this.options,this.optionGroups);const t=d/2;this._scrollTop=this._calculateOverlayScroll(r,t,s),this._offsetY=this._calculateOverlayOffsetY(r,t,s),this._checkOverlayWithinViewport(s)}_getOriginBasedOnOption(){const i=this._getItemHeight(),o=(i-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+i/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Ae.\u0275fac=function(){let ae;return function(o){return(ae||(ae=_.n5z(Ae)))(o||Ae)}}(),Ae.\u0275cmp=_.Xpm({type:Ae,selectors:[["mat-select"]],contentQueries:function(i,o,d){if(1&i&&(_.Suo(d,H,5),_.Suo(d,w.ey,5),_.Suo(d,w.K7,5)),2&i){let l;_.iGM(l=_.CRH())&&(o.customTrigger=l.first),_.iGM(l=_.CRH())&&(o.options=l),_.iGM(l=_.CRH())&&(o.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(i,o){1&i&&_.NdJ("keydown",function(l){return o._handleKeydown(l)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&i&&(_.uIk("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-describedby",o._ariaDescribedby||null)("aria-activedescendant",o._getAriaActiveDescendant()),_.ekj("mat-select-disabled",o.disabled)("mat-select-invalid",o.errorState)("mat-select-required",o.required)("mat-select-empty",o.empty)("mat-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_._Bn([{provide:g.Eo,useExisting:Ae},{provide:w.HF,useExisting:Ae}]),_.qOj],ngContentSelectors:je,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(i,o){if(1&i&&(_.F$t(le),_.TgZ(0,"div",0,1),_.NdJ("click",function(){return o.toggle()}),_.TgZ(3,"div",2),_.YNc(4,ue,2,1,"span",3),_.YNc(5,Ue,3,2,"span",4),_.qZA(),_.TgZ(6,"div",5),_._UZ(7,"div",6),_.qZA(),_.qZA(),_.YNc(8,ze,4,14,"ng-template",7),_.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&i){const d=_.MAs(1);_.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),_.xp6(3),_.Q6J("ngSwitch",o.empty),_.uIk("id",o._valueId),_.xp6(1),_.Q6J("ngSwitchCase",!0),_.xp6(1),_.Q6J("ngSwitchCase",!1),_.xp6(3),_.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",d)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},directives:[e.xu,b.RF,b.n9,b.ED,e.pI,b.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[ye.transformPanelWrap,ye.transformPanel]},changeDetection:0}),Ae})(),Te=(()=>{class Ae{}return Ae.\u0275fac=function(i){return new(i||Ae)},Ae.\u0275mod=_.oAB({type:Ae}),Ae.\u0275inj=_.cJS({providers:[z],imports:[[b.ez,e.U8,w.Ng,w.BQ],A.ZD,g.lN,w.Ng,w.BQ]}),Ae})()},2638:($e,_e,p)=>{"use strict";p.d(_e,{JX:()=>Je,TM:()=>nt,Rh:()=>Xe,SJ:()=>Ve});var e=p(70925),b=p(53435),_=p(69808),w=p(5e3),g=p(90508),A=p(63191),E=p(91159),C=p(8929),I=p(23753),P=p(36787),m=p(92198),L=p(24850),O=p(77604),G=p(7625),ne=p(75778),ge=p(72986),J=p(1059),Me=p(80013),oe=p(41777),Re=p(76360),T=p(15664),j=p(50226);const Y=["*"],q=["content"];function te(X,z){if(1&X){const Q=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(Q),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&X){const Q=w.oxw();w.ekj("mat-drawer-shown",Q._isShowingBackdrop())}}function ue(X,z){1&X&&(w.TgZ(0,"mat-drawer-content"),w.Hsn(1,2),w.qZA())}const de=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Le=["mat-drawer","mat-drawer-content","*"];function Ue(X,z){if(1&X){const Q=w.EpF();w.TgZ(0,"div",2),w.NdJ("click",function(){return w.CHM(Q),w.oxw()._onBackdropClicked()}),w.qZA()}if(2&X){const Q=w.oxw();w.ekj("mat-drawer-shown",Q._isShowingBackdrop())}}function ze(X,z){1&X&&(w.TgZ(0,"mat-sidenav-content"),w.Hsn(1,2),w.qZA())}const le=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],je=["mat-sidenav","mat-sidenav-content","*"],Be={transformDrawer:(0,oe.X$)("transform",[(0,oe.SB)("open, open-instant",(0,oe.oB)({transform:"none",visibility:"visible"})),(0,oe.SB)("void",(0,oe.oB)({"box-shadow":"none",visibility:"hidden"})),(0,oe.eR)("void => open-instant",(0,oe.jt)("0ms")),(0,oe.eR)("void <=> open, open-instant => void",(0,oe.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},R=new w.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function be(){return!1}}),me=new w.OlP("MAT_DRAWER_CONTAINER");let Ie=(()=>{class X extends b.PQ{constructor(Q,D,H,V,xe){super(H,V,xe),this._changeDetectorRef=Q,this._container=D}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>Se)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Q,D){2&Q&&w.Udp("margin-left",D._container._contentMargins.left,"px")("margin-right",D._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:X}]),w.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(Q,D){1&Q&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),X})(),pe=(()=>{class X{constructor(Q,D,H,V,xe,Qe,Te,Ae){this._elementRef=Q,this._focusTrapFactory=D,this._focusMonitor=H,this._platform=V,this._ngZone=xe,this._interactivityChecker=Qe,this._doc=Te,this._container=Ae,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new C.xQ,this._animationEnd=new C.xQ,this._animationState="void",this.openedChange=new w.vpe(!0),this._openedStream=this.openedChange.pipe((0,m.h)(ae=>ae),(0,L.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,m.h)(ae=>ae.fromState!==ae.toState&&0===ae.toState.indexOf("open")),(0,O.h)(void 0)),this._closedStream=this.openedChange.pipe((0,m.h)(ae=>!ae),(0,L.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,m.h)(ae=>ae.fromState!==ae.toState&&"void"===ae.toState),(0,O.h)(void 0)),this._destroyed=new C.xQ,this.onPositionChanged=new w.vpe,this._modeChanged=new C.xQ,this.openedChange.subscribe(ae=>{ae?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,I.R)(this._elementRef.nativeElement,"keydown").pipe((0,m.h)(ae=>ae.keyCode===E.hY&&!this.disableClose&&!(0,E.Vb)(ae)),(0,G.R)(this._destroyed)).subscribe(ae=>this._ngZone.run(()=>{this.close(),ae.stopPropagation(),ae.preventDefault()}))}),this._animationEnd.pipe((0,ne.x)((ae,i)=>ae.fromState===i.fromState&&ae.toState===i.toState)).subscribe(ae=>{const{fromState:i,toState:o}=ae;(0===o.indexOf("open")&&"void"===i||"void"===o&&0===i.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Q){(Q="end"===Q?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Q),this._position=Q,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Q){this._mode=Q,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Q){this._disableClose=(0,A.Ig)(Q)}get autoFocus(){const Q=this._autoFocus;return null==Q?"side"===this.mode?"dialog":"first-tabbable":Q}set autoFocus(Q){("true"===Q||"false"===Q||null==Q)&&(Q=(0,A.Ig)(Q)),this._autoFocus=Q}get opened(){return this._opened}set opened(Q){this.toggle((0,A.Ig)(Q))}_forceFocus(Q,D){this._interactivityChecker.isFocusable(Q)||(Q.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Q.addEventListener("blur",()=>Q.removeAttribute("tabindex")),Q.addEventListener("mousedown",()=>Q.removeAttribute("tabindex"))})),Q.focus(D)}_focusByCssSelector(Q,D){let H=this._elementRef.nativeElement.querySelector(Q);H&&this._forceFocus(H,D)}_takeFocus(){if(!this._focusTrap)return;const Q=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(D=>{!D&&"function"==typeof this._elementRef.nativeElement.focus&&Q.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Q){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Q):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Q=this._doc.activeElement;return!!Q&&this._elementRef.nativeElement.contains(Q)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Q;this._focusTrap&&this._focusTrap.destroy(),null===(Q=this._anchor)||void 0===Q||Q.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Q){return this.toggle(!0,Q)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Q=!this.opened,D){Q&&D&&(this._openedVia=D);const H=this._setOpen(Q,!Q&&this._isFocusWithinDrawer(),this._openedVia||"program");return Q||(this._openedVia=null),H}_setOpen(Q,D,H){return this._opened=Q,Q?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",D&&this._restoreFocus(H)),this._updateFocusTrapState(),new Promise(V=>{this.openedChange.pipe((0,ge.q)(1)).subscribe(xe=>V(xe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Q){const D=this._elementRef.nativeElement,H=D.parentNode;"end"===Q?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),H.insertBefore(this._anchor,D)),H.appendChild(D)):this._anchor&&this._anchor.parentNode.insertBefore(D,this._anchor)}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.SBq),w.Y36(T.qV),w.Y36(T.tE),w.Y36(e.t4),w.Y36(w.R0b),w.Y36(T.ic),w.Y36(_.K0,8),w.Y36(me,8))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer"]],viewQuery:function(Q,D){if(1&Q&&w.Gf(q,5),2&Q){let H;w.iGM(H=w.CRH())&&(D._content=H.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Q,D){1&Q&&w.WFA("@transform.start",function(V){return D._animationStarted.next(V)})("@transform.done",function(V){return D._animationEnd.next(V)}),2&Q&&(w.uIk("align",null),w.d8E("@transform",D._animationState),w.ekj("mat-drawer-end","end"===D.position)("mat-drawer-over","over"===D.mode)("mat-drawer-push","push"===D.mode)("mat-drawer-side","side"===D.mode)("mat-drawer-opened",D.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:Y,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Q,D){1&Q&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),X})(),Se=(()=>{class X{constructor(Q,D,H,V,xe,Qe=!1,Te){this._dir=Q,this._element=D,this._ngZone=H,this._changeDetectorRef=V,this._animationMode=Te,this._drawers=new w.n_E,this.backdropClick=new w.vpe,this._destroyed=new C.xQ,this._doCheckSubject=new C.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new C.xQ,Q&&Q.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),xe.change().pipe((0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=Qe}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Q){this._autosize=(0,A.Ig)(Q)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Q){this._backdropOverride=null==Q?null:(0,A.Ig)(Q)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,J.O)(this._allDrawers),(0,G.R)(this._destroyed)).subscribe(Q=>{this._drawers.reset(Q.filter(D=>!D._container||D._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,J.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Q=>{this._watchDrawerToggle(Q),this._watchDrawerPosition(Q),this._watchDrawerMode(Q)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Me.b)(10),(0,G.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(Q=>Q.open())}close(){this._drawers.forEach(Q=>Q.close())}updateContentMargins(){let Q=0,D=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Q+=this._left._getWidth();else if("push"==this._left.mode){const H=this._left._getWidth();Q+=H,D-=H}if(this._right&&this._right.opened)if("side"==this._right.mode)D+=this._right._getWidth();else if("push"==this._right.mode){const H=this._right._getWidth();D+=H,Q-=H}Q=Q||null,D=D||null,(Q!==this._contentMargins.left||D!==this._contentMargins.right)&&(this._contentMargins={left:Q,right:D},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Q){Q._animationStarted.pipe((0,m.h)(D=>D.fromState!==D.toState),(0,G.R)(this._drawers.changes)).subscribe(D=>{"open-instant"!==D.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Q.mode&&Q.openedChange.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Q.opened))}_watchDrawerPosition(Q){!Q||Q.onPositionChanged.pipe((0,G.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,ge.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Q){Q&&Q._modeChanged.pipe((0,G.R)((0,P.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Q){const D=this._element.nativeElement.classList,H="mat-drawer-container-has-open";Q?D.add(H):D.remove(H)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Q=>{"end"==Q.position?this._end=Q:this._start=Q}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Q=>Q&&!Q.disableClose&&this._canHaveBackdrop(Q)).forEach(Q=>Q._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Q){return"side"!==Q.mode||!!this._backdropOverride}_isDrawerOpen(Q){return null!=Q&&Q.opened}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(j.Is,8),w.Y36(w.SBq),w.Y36(w.R0b),w.Y36(w.sBO),w.Y36(b.rL),w.Y36(R),w.Y36(Re.Qb,8))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-drawer-container"]],contentQueries:function(Q,D,H){if(1&Q&&(w.Suo(H,Ie,5),w.Suo(H,pe,5)),2&Q){let V;w.iGM(V=w.CRH())&&(D._content=V.first),w.iGM(V=w.CRH())&&(D._allDrawers=V)}},viewQuery:function(Q,D){if(1&Q&&w.Gf(Ie,5),2&Q){let H;w.iGM(H=w.CRH())&&(D._userContent=H.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Q,D){2&Q&&w.ekj("mat-drawer-container-explicit-backdrop",D._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[w._Bn([{provide:me,useExisting:X}])],ngContentSelectors:Le,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Q,D){1&Q&&(w.F$t(de),w.YNc(0,te,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ue,2,0,"mat-drawer-content",1)),2&Q&&(w.Q6J("ngIf",D.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!D._content))},directives:[Ie,_.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),X})(),Xe=(()=>{class X extends Ie{constructor(Q,D,H,V,xe){super(Q,D,H,V,xe)}}return X.\u0275fac=function(Q){return new(Q||X)(w.Y36(w.sBO),w.Y36((0,w.Gpc)(()=>nt)),w.Y36(w.SBq),w.Y36(b.mF),w.Y36(w.R0b))},X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Q,D){2&Q&&w.Udp("margin-left",D._container._contentMargins.left,"px")("margin-right",D._container._contentMargins.right,"px")},features:[w._Bn([{provide:b.PQ,useExisting:X}]),w.qOj],ngContentSelectors:Y,decls:1,vars:0,template:function(Q,D){1&Q&&(w.F$t(),w.Hsn(0))},encapsulation:2,changeDetection:0}),X})(),Je=(()=>{class X extends pe{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Q){this._fixedInViewport=(0,A.Ig)(Q)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Q){this._fixedTopGap=(0,A.su)(Q)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Q){this._fixedBottomGap=(0,A.su)(Q)}}return X.\u0275fac=function(){let z;return function(D){return(z||(z=w.n5z(X)))(D||X)}}(),X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Q,D){2&Q&&(w.uIk("align",null),w.Udp("top",D.fixedInViewport?D.fixedTopGap:null,"px")("bottom",D.fixedInViewport?D.fixedBottomGap:null,"px"),w.ekj("mat-drawer-end","end"===D.position)("mat-drawer-over","over"===D.mode)("mat-drawer-push","push"===D.mode)("mat-drawer-side","side"===D.mode)("mat-drawer-opened",D.opened)("mat-sidenav-fixed",D.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[w.qOj],ngContentSelectors:Y,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Q,D){1&Q&&(w.F$t(),w.TgZ(0,"div",0,1),w.Hsn(2),w.qZA())},directives:[b.PQ],encapsulation:2,data:{animation:[Be.transformDrawer]},changeDetection:0}),X})(),nt=(()=>{class X extends Se{}return X.\u0275fac=function(){let z;return function(D){return(z||(z=w.n5z(X)))(D||X)}}(),X.\u0275cmp=w.Xpm({type:X,selectors:[["mat-sidenav-container"]],contentQueries:function(Q,D,H){if(1&Q&&(w.Suo(H,Xe,5),w.Suo(H,Je,5)),2&Q){let V;w.iGM(V=w.CRH())&&(D._content=V.first),w.iGM(V=w.CRH())&&(D._allDrawers=V)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Q,D){2&Q&&w.ekj("mat-drawer-container-explicit-backdrop",D._backdropOverride)},exportAs:["matSidenavContainer"],features:[w._Bn([{provide:me,useExisting:X}]),w.qOj],ngContentSelectors:je,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Q,D){1&Q&&(w.F$t(le),w.YNc(0,Ue,1,2,"div",0),w.Hsn(1),w.Hsn(2,1),w.YNc(3,ze,2,0,"mat-sidenav-content",1)),2&Q&&(w.Q6J("ngIf",D.hasBackdrop),w.xp6(3),w.Q6J("ngIf",!D._content))},directives:[Xe,_.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),X})(),Ve=(()=>{class X{}return X.\u0275fac=function(Q){return new(Q||X)},X.\u0275mod=w.oAB({type:X}),X.\u0275inj=w.cJS({imports:[[_.ez,g.BQ,e.ud,b.ZD],b.ZD,g.BQ]}),X})()},32368:($e,_e,p)=>{"use strict";p.d(_e,{Rr:()=>Me,rP:()=>j});var e=p(17144),b=p(5e3),_=p(90508),w=p(63191),g=p(93075),A=p(76360),E=p(15664);const C=["thumbContainer"],I=["toggleBar"],P=["input"],m=function(Y){return{enterDuration:Y}},L=["*"],O=new b.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let G=0;const ne={provide:g.JU,useExisting:(0,b.Gpc)(()=>Me),multi:!0};class ge{constructor(q,te){this.source=q,this.checked=te}}const J=(0,_.sb)((0,_.pj)((0,_.Kr)((0,_.Id)(class{constructor(Y){this._elementRef=Y}}))));let Me=(()=>{class Y extends J{constructor(te,ue,de,Le,Ue,ze){super(te),this._focusMonitor=ue,this._changeDetectorRef=de,this.defaults=Ue,this._onChange=le=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++G,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new b.vpe,this.toggleChange=new b.vpe,this.tabIndex=parseInt(Le)||0,this.color=this.defaultColor=Ue.color||"accent",this._noopAnimations="NoopAnimations"===ze}get required(){return this._required}set required(te){this._required=(0,w.Ig)(te)}get checked(){return this._checked}set checked(te){this._checked=(0,w.Ig)(te),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(te=>{te||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(te){te.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(te){te.stopPropagation()}writeValue(te){this.checked=!!te}registerOnChange(te){this._onChange=te}registerOnTouched(te){this._onTouched=te}setDisabledState(te){this.disabled=te,this._changeDetectorRef.markForCheck()}focus(te,ue){ue?this._focusMonitor.focusVia(this._inputElement,ue,te):this._inputElement.nativeElement.focus(te)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new ge(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(E.tE),b.Y36(b.sBO),b.$8M("tabindex"),b.Y36(O),b.Y36(A.Qb,8))},Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-slide-toggle"]],viewQuery:function(te,ue){if(1&te&&(b.Gf(C,5),b.Gf(I,5),b.Gf(P,5)),2&te){let de;b.iGM(de=b.CRH())&&(ue._thumbEl=de.first),b.iGM(de=b.CRH())&&(ue._thumbBarEl=de.first),b.iGM(de=b.CRH())&&(ue._inputElement=de.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(te,ue){2&te&&(b.Ikx("id",ue.id),b.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),b.ekj("mat-checked",ue.checked)("mat-disabled",ue.disabled)("mat-slide-toggle-label-before","before"==ue.labelPosition)("_mat-animation-noopable",ue._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[b._Bn([ne]),b.qOj],ngContentSelectors:L,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(te,ue){if(1&te&&(b.F$t(),b.TgZ(0,"label",0,1),b.TgZ(2,"span",2,3),b.TgZ(4,"input",4,5),b.NdJ("change",function(Le){return ue._onChangeEvent(Le)})("click",function(Le){return ue._onInputClick(Le)}),b.qZA(),b.TgZ(6,"span",6,7),b._UZ(8,"span",8),b.TgZ(9,"span",9),b._UZ(10,"span",10),b.qZA(),b.qZA(),b.qZA(),b.TgZ(11,"span",11,12),b.NdJ("cdkObserveContent",function(){return ue._onLabelTextChange()}),b.TgZ(13,"span",13),b._uU(14,"\xa0"),b.qZA(),b.Hsn(15),b.qZA(),b.qZA()),2&te){const de=b.MAs(1),Le=b.MAs(12);b.uIk("for",ue.inputId),b.xp6(2),b.ekj("mat-slide-toggle-bar-no-side-margin",!Le.textContent||!Le.textContent.trim()),b.xp6(2),b.Q6J("id",ue.inputId)("required",ue.required)("tabIndex",ue.tabIndex)("checked",ue.checked)("disabled",ue.disabled),b.uIk("name",ue.name)("aria-checked",ue.checked)("aria-label",ue.ariaLabel)("aria-labelledby",ue.ariaLabelledby)("aria-describedby",ue.ariaDescribedby),b.xp6(5),b.Q6J("matRippleTrigger",de)("matRippleDisabled",ue.disableRipple||ue.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",b.VKq(18,m,ue._noopAnimations?0:150))}},directives:[_.wG,e.wD],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Y})(),T=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({}),Y})(),j=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[T,_.si,_.BQ,e.Q8],T,_.BQ]}),Y})()},57261:($e,_e,p)=>{"use strict";p.d(_e,{ZX:()=>J});var e=p(92845),b=p(47429),_=p(69808),w=p(5e3),g=p(90508),A=p(47423);p(41777);let J=(()=>{class j{}return j.\u0275fac=function(q){return new(q||j)},j.\u0275mod=w.oAB({type:j}),j.\u0275inj=w.cJS({imports:[[e.U8,b.eL,_.ez,A.ot,g.BQ],g.BQ]}),j})()},84847:($e,_e,p)=>{"use strict";p.d(_e,{YE:()=>q,nU:()=>de,JX:()=>Le});var e=p(5e3),b=p(63191),_=p(91159),w=p(90508),g=p(8929),A=p(36787),E=p(41777),C=p(15664),I=p(69808);const P=["mat-sort-header",""];function m(Ue,ze){if(1&Ue){const le=e.EpF();e.TgZ(0,"div",3),e.NdJ("@arrowPosition.start",function(){return e.CHM(le),e.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return e.CHM(le),e.oxw()._disableViewStateAnimation=!1}),e._UZ(1,"div",4),e.TgZ(2,"div",5),e._UZ(3,"div",6),e._UZ(4,"div",7),e._UZ(5,"div",8),e.qZA(),e.qZA()}if(2&Ue){const le=e.oxw();e.Q6J("@arrowOpacity",le._getArrowViewState())("@arrowPosition",le._getArrowViewState())("@allowChildren",le._getArrowDirectionState()),e.xp6(2),e.Q6J("@indicator",le._getArrowDirectionState()),e.xp6(1),e.Q6J("@leftPointer",le._getArrowDirectionState()),e.xp6(1),e.Q6J("@rightPointer",le._getArrowDirectionState())}}const L=["*"],O=w.mZ.ENTERING+" "+w.yN.STANDARD_CURVE,G={indicator:(0,E.X$)("indicator",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"translateY(0px)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"translateY(10px)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),leftPointer:(0,E.X$)("leftPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),rightPointer:(0,E.X$)("rightPointer",[(0,E.SB)("active-asc, asc",(0,E.oB)({transform:"rotate(45deg)"})),(0,E.SB)("active-desc, desc",(0,E.oB)({transform:"rotate(-45deg)"})),(0,E.eR)("active-asc <=> active-desc",(0,E.jt)(O))]),arrowOpacity:(0,E.X$)("arrowOpacity",[(0,E.SB)("desc-to-active, asc-to-active, active",(0,E.oB)({opacity:1})),(0,E.SB)("desc-to-hint, asc-to-hint, hint",(0,E.oB)({opacity:.54})),(0,E.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,E.oB)({opacity:0})),(0,E.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,E.jt)("0ms")),(0,E.eR)("* <=> *",(0,E.jt)(O))]),arrowPosition:(0,E.X$)("arrowPosition",[(0,E.eR)("* => desc-to-hint, * => desc-to-active",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(-25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-desc, * => active-to-desc",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(25%)"})]))),(0,E.eR)("* => asc-to-hint, * => asc-to-active",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(25%)"}),(0,E.oB)({transform:"translateY(0)"})]))),(0,E.eR)("* => hint-to-asc, * => active-to-asc",(0,E.jt)(O,(0,E.F4)([(0,E.oB)({transform:"translateY(0)"}),(0,E.oB)({transform:"translateY(-25%)"})]))),(0,E.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,E.oB)({transform:"translateY(0)"})),(0,E.SB)("hint-to-desc, active-to-desc, desc",(0,E.oB)({transform:"translateY(-25%)"})),(0,E.SB)("hint-to-asc, active-to-asc, asc",(0,E.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,E.X$)("allowChildren",[(0,E.eR)("* <=> *",[(0,E.IO)("@*",(0,E.pV)(),{optional:!0})])])};let oe=(()=>{class Ue{constructor(){this.changes=new g.xQ}}return Ue.\u0275fac=function(le){return new(le||Ue)},Ue.\u0275prov=e.Yz7({token:Ue,factory:Ue.\u0275fac,providedIn:"root"}),Ue})();const T={provide:oe,deps:[[new e.FiY,new e.tp0,oe]],useFactory:function Re(Ue){return Ue||new oe}},j=new e.OlP("MAT_SORT_DEFAULT_OPTIONS"),Y=(0,w.dB)((0,w.Id)(class{}));let q=(()=>{class Ue extends Y{constructor(le){super(),this._defaultOptions=le,this.sortables=new Map,this._stateChanges=new g.xQ,this.start="asc",this._direction="",this.sortChange=new e.vpe}get direction(){return this._direction}set direction(le){this._direction=le}get disableClear(){return this._disableClear}set disableClear(le){this._disableClear=(0,b.Ig)(le)}register(le){this.sortables.set(le.id,le)}deregister(le){this.sortables.delete(le.id)}sort(le){this.active!=le.id?(this.active=le.id,this.direction=le.start?le.start:this.start):this.direction=this.getNextSortDirection(le),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(le){var je,ye,Be;if(!le)return"";const W=null!==(ye=null!==(je=null==le?void 0:le.disableClear)&&void 0!==je?je:this.disableClear)&&void 0!==ye?ye:!!(null===(Be=this._defaultOptions)||void 0===Be?void 0:Be.disableClear);let R=function te(Ue,ze){let le=["asc","desc"];return"desc"==Ue&&le.reverse(),ze||le.push(""),le}(le.start||this.start,W),me=R.indexOf(this.direction)+1;return me>=R.length&&(me=0),R[me]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return Ue.\u0275fac=function(le){return new(le||Ue)(e.Y36(j,8))},Ue.\u0275dir=e.lG2({type:Ue,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[e.qOj,e.TTD]}),Ue})();const ue=(0,w.Id)(class{});let de=(()=>{class Ue extends ue{constructor(le,je,ye,Be,W,R,me){super(),this._intl=le,this._changeDetectorRef=je,this._sort=ye,this._columnDef=Be,this._focusMonitor=W,this._elementRef=R,this._ariaDescriber=me,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(le){this._updateSortActionDescription(le)}get disableClear(){return this._disableClear}set disableClear(le){this._disableClear=(0,b.Ig)(le)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(le=>{const je=!!le;je!==this._showIndicatorHint&&(this._setIndicatorHintVisible(je),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(le){this._isDisabled()&&le||(this._showIndicatorHint=le,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(le){this._viewState=le||{},this._disableViewStateAnimation&&(this._viewState={toState:le.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(le){!this._isDisabled()&&(le.keyCode===_.L_||le.keyCode===_.K5)&&(le.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const le=this._viewState.fromState;return(le?`${le}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(le){var je,ye;this._sortButton&&(null===(je=this._ariaDescriber)||void 0===je||je.removeDescription(this._sortButton,this._sortActionDescription),null===(ye=this._ariaDescriber)||void 0===ye||ye.describe(this._sortButton,le)),this._sortActionDescription=le}_handleStateChanges(){this._rerenderSubscription=(0,A.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return Ue.\u0275fac=function(le){return new(le||Ue)(e.Y36(oe),e.Y36(e.sBO),e.Y36(q,8),e.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),e.Y36(C.tE),e.Y36(e.SBq),e.Y36(C.$s,8))},Ue.\u0275cmp=e.Xpm({type:Ue,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(le,je){1&le&&e.NdJ("click",function(){return je._handleClick()})("keydown",function(Be){return je._handleKeydown(Be)})("mouseenter",function(){return je._setIndicatorHintVisible(!0)})("mouseleave",function(){return je._setIndicatorHintVisible(!1)}),2&le&&(e.uIk("aria-sort",je._getAriaSortAttribute()),e.ekj("mat-sort-header-disabled",je._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[e.qOj],attrs:P,ngContentSelectors:L,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(le,je){1&le&&(e.F$t(),e.TgZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.YNc(3,m,6,6,"div",2),e.qZA()),2&le&&(e.ekj("mat-sort-header-sorted",je._isSorted())("mat-sort-header-position-before","before"==je.arrowPosition),e.uIk("tabindex",je._isDisabled()?null:0),e.xp6(3),e.Q6J("ngIf",je._renderArrow()))},directives:[I.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[G.indicator,G.leftPointer,G.rightPointer,G.arrowOpacity,G.arrowPosition,G.allowChildren]},changeDetection:0}),Ue})(),Le=(()=>{class Ue{}return Ue.\u0275fac=function(le){return new(le||Ue)},Ue.\u0275mod=e.oAB({type:Ue}),Ue.\u0275inj=e.cJS({providers:[T],imports:[[I.ez,w.BQ]]}),Ue})()},92081:($e,_e,p)=>{"use strict";p.d(_e,{C0:()=>n,BY:()=>t,VY:()=>Ae,Vq:()=>x,T5:()=>Ht,fd:()=>At});var e=p(47429),b=p(15664),_=p(63191),w=p(91159),g=p(69808),A=p(5e3),E=p(70925),C=p(8929),I=p(21086),P=p(1059),m=p(7625),L=p(50226);function O(lt,Ut){1<&&A.Hsn(0)}const G=["*"];let ne=(()=>{class lt{constructor(mt){this._elementRef=mt}focus(){this._elementRef.nativeElement.focus()}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.SBq))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),lt})(),ge=(()=>{class lt{constructor(mt){this.template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["","cdkStepLabel",""]]}),lt})(),J=0;const Re=new A.OlP("STEPPER_GLOBAL_OPTIONS");let T=(()=>{class lt{constructor(mt,Lt){this._stepper=mt,this.interacted=!1,this.interactedStream=new A.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=Lt||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(mt){this._editable=(0,_.Ig)(mt)}get optional(){return this._optional}set optional(mt){this._optional=(0,_.Ig)(mt)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(mt){this._completedOverride=(0,_.Ig)(mt)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(mt){this._customError=(0,_.Ig)(mt)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var mt;return null!==(mt=this._stepperOptions.showError)&&void 0!==mt?mt:null!=this._customError}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>j)),A.Y36(Re,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["cdk-step"]],contentQueries:function(mt,Lt,Ee){if(1&mt&&A.Suo(Ee,ge,5),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(A.Rgc,7),2&mt){let Ee;A.iGM(Ee=A.CRH())&&(Lt.content=Ee.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[A.TTD],ngContentSelectors:G,decls:1,vars:0,template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,O,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),lt})(),j=(()=>{class lt{constructor(mt,Lt,Ee,Ge){this._dir=mt,this._changeDetectorRef=Lt,this._elementRef=Ee,this._destroyed=new C.xQ,this.steps=new A.n_E,this._sortedHeaders=new A.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new A.vpe,this._orientation="horizontal",this._groupId=J++}get linear(){return this._linear}set linear(mt){this._linear=(0,_.Ig)(mt)}get selectedIndex(){return this._selectedIndex}set selectedIndex(mt){var Lt;const Ee=(0,_.su)(mt);this.steps&&this._steps?(this._isValidIndex(Ee),null===(Lt=this.selected)||void 0===Lt||Lt._markAsInteracted(),this._selectedIndex!==Ee&&!this._anyControlsInvalidOrPending(Ee)&&(Ee>=this._selectedIndex||this.steps.toArray()[Ee].editable)&&this._updateSelectedItemIndex(Ee)):this._selectedIndex=Ee}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(mt){this.selectedIndex=mt&&this.steps?this.steps.toArray().indexOf(mt):-1}get orientation(){return this._orientation}set orientation(mt){this._orientation=mt,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===mt)}ngAfterContentInit(){this._steps.changes.pipe((0,P.O)(this._steps),(0,m.R)(this._destroyed)).subscribe(mt=>{this.steps.reset(mt.filter(Lt=>Lt._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,P.O)(this._stepHeader),(0,m.R)(this._destroyed)).subscribe(mt=>{this._sortedHeaders.reset(mt.toArray().sort((Lt,Ee)=>Lt._elementRef.nativeElement.compareDocumentPosition(Ee._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new b.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,I.of)()).pipe((0,P.O)(this._layoutDirection()),(0,m.R)(this._destroyed)).subscribe(mt=>this._keyManager.withHorizontalOrientation(mt)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(mt=>mt.reset()),this._stateChanged()}_getStepLabelId(mt){return`cdk-step-label-${this._groupId}-${mt}`}_getStepContentId(mt){return`cdk-step-content-${this._groupId}-${mt}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(mt){const Lt=mt-this._selectedIndex;return Lt<0?"rtl"===this._layoutDirection()?"next":"previous":Lt>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(mt,Lt="number"){const Ee=this.steps.toArray()[mt],Ge=this._isCurrentStep(mt);return Ee._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Ee,Ge):this._getGuidelineLogic(Ee,Ge,Lt)}_getDefaultIndicatorLogic(mt,Lt){return mt._showError()&&mt.hasError&&!Lt?"error":!mt.completed||Lt?"number":mt.editable?"edit":"done"}_getGuidelineLogic(mt,Lt,Ee="number"){return mt._showError()&&mt.hasError&&!Lt?"error":mt.completed&&!Lt?"done":mt.completed&&Lt?Ee:mt.editable&&Lt?"edit":Ee}_isCurrentStep(mt){return this._selectedIndex===mt}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(mt){const Lt=this.steps.toArray();this.selectionChange.emit({selectedIndex:mt,previouslySelectedIndex:this._selectedIndex,selectedStep:Lt[mt],previouslySelectedStep:Lt[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(mt):this._keyManager.updateActiveItem(mt),this._selectedIndex=mt,this._stateChanged()}_onKeydown(mt){const Lt=(0,w.Vb)(mt),Ee=mt.keyCode,Ge=this._keyManager;null==Ge.activeItemIndex||Lt||Ee!==w.L_&&Ee!==w.K5?Ge.onKeydown(mt):(this.selectedIndex=Ge.activeItemIndex,mt.preventDefault())}_anyControlsInvalidOrPending(mt){return!!(this._linear&&mt>=0)&&this.steps.toArray().slice(0,mt).some(Lt=>{const Ee=Lt.stepControl;return(Ee?Ee.invalid||Ee.pending||!Lt.interacted:!Lt.completed)&&!Lt.optional&&!Lt._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const mt=this._elementRef.nativeElement,Lt=(0,E.ht)();return mt===Lt||mt.contains(Lt)}_isValidIndex(mt){return mt>-1&&(!this.steps||mt{class lt{constructor(mt){this._stepper=mt,this.type="button"}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(j))},lt.\u0275dir=A.lG2({type:lt,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(mt,Lt){1&mt&&A.NdJ("click",function(){return Lt._stepper.previous()}),2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"}}),lt})(),te=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({imports:[[L.vT]]}),lt})();var ue=p(47423),de=p(90508),Le=p(25245),Ue=p(42654),ze=p(87545),le=p(24850),je=p(75778),ye=p(41777);function Be(lt,Ut){if(1<&&A.GkF(0,8),2<){const mt=A.oxw();A.Q6J("ngTemplateOutlet",mt.iconOverrides[mt.state])("ngTemplateOutletContext",mt._getIconContext())}}function W(lt,Ut){if(1<&&(A.TgZ(0,"span",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function R(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.completedLabel)}}function me(lt,Ut){if(1<&&(A.TgZ(0,"span",14),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._intl.editableLabel)}}function be(lt,Ut){if(1<&&(A.TgZ(0,"mat-icon",13),A._uU(1),A.qZA()),2<){const mt=A.oxw(2);A.xp6(1),A.Oqu(mt._getDefaultTextForState(mt.state))}}function Ie(lt,Ut){if(1<&&(A.ynx(0,9),A.YNc(1,W,2,1,"span",10),A.YNc(2,R,2,1,"span",11),A.YNc(3,me,2,1,"span",11),A.YNc(4,be,2,1,"mat-icon",12),A.BQk()),2<){const mt=A.oxw();A.Q6J("ngSwitch",mt.state),A.xp6(1),A.Q6J("ngSwitchCase","number"),A.xp6(1),A.Q6J("ngIf","done"===mt.state),A.xp6(1),A.Q6J("ngIf","edit"===mt.state)}}function pe(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A.GkF(1,16),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngTemplateOutlet",mt._templateLabel().template)}}function Se(lt,Ut){if(1<&&(A.TgZ(0,"div",15),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.label)}}function Xe(lt,Ut){if(1<&&(A.TgZ(0,"div",17),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt._intl.optionalLabel)}}function Je(lt,Ut){if(1<&&(A.TgZ(0,"div",18),A._uU(1),A.qZA()),2<){const mt=A.oxw();A.xp6(1),A.Oqu(mt.errorMessage)}}function nt(lt,Ut){}function Ve(lt,Ut){if(1<&&(A.Hsn(0),A.YNc(1,nt,0,0,"ng-template",0)),2<){const mt=A.oxw();A.xp6(1),A.Q6J("cdkPortalOutlet",mt._portal)}}const X=["*"];function z(lt,Ut){1<&&A._UZ(0,"div",9)}const Q=function(lt,Ut){return{step:lt,i:Ut}};function D(lt,Ut){if(1<&&(A.ynx(0),A.GkF(1,7),A.YNc(2,z,1,0,"div",8),A.BQk()),2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=Ut.last;A.oxw(2);const Ge=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",Ge)("ngTemplateOutletContext",A.WLB(3,Q,mt,Lt)),A.xp6(1),A.Q6J("ngIf",!Ee)}}function H(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",10),A.NdJ("@horizontalStepTransition.done",function(Ee){return A.CHM(mt),A.oxw(2)._animationDone.next(Ee)}),A.GkF(1,11),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=A.oxw(2);A.Q6J("@horizontalStepTransition",Ee._getAnimationDirection(Lt))("id",Ee._getStepContentId(Lt)),A.uIk("aria-labelledby",Ee._getStepLabelId(Lt))("aria-expanded",Ee.selectedIndex===Lt),A.xp6(1),A.Q6J("ngTemplateOutlet",mt.content)}}function V(lt,Ut){if(1<&&(A.ynx(0),A.TgZ(1,"div",3),A.YNc(2,D,3,6,"ng-container",4),A.qZA(),A.TgZ(3,"div",5),A.YNc(4,H,2,5,"div",6),A.qZA(),A.BQk()),2<){const mt=A.oxw();A.xp6(2),A.Q6J("ngForOf",mt.steps),A.xp6(2),A.Q6J("ngForOf",mt.steps)}}function xe(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"div",13),A.GkF(1,7),A.TgZ(2,"div",14),A.TgZ(3,"div",15),A.NdJ("@verticalStepTransition.done",function(Ee){return A.CHM(mt),A.oxw(2)._animationDone.next(Ee)}),A.TgZ(4,"div",16),A.GkF(5,11),A.qZA(),A.qZA(),A.qZA(),A.qZA()}if(2<){const mt=Ut.$implicit,Lt=Ut.index,Ee=Ut.last,Ge=A.oxw(2),U=A.MAs(4);A.xp6(1),A.Q6J("ngTemplateOutlet",U)("ngTemplateOutletContext",A.WLB(9,Q,mt,Lt)),A.xp6(1),A.ekj("mat-stepper-vertical-line",!Ee),A.xp6(1),A.Q6J("@verticalStepTransition",Ge._getAnimationDirection(Lt))("id",Ge._getStepContentId(Lt)),A.uIk("aria-labelledby",Ge._getStepLabelId(Lt))("aria-expanded",Ge.selectedIndex===Lt),A.xp6(2),A.Q6J("ngTemplateOutlet",mt.content)}}function Qe(lt,Ut){if(1<&&(A.ynx(0),A.YNc(1,xe,6,12,"div",12),A.BQk()),2<){const mt=A.oxw();A.xp6(1),A.Q6J("ngForOf",mt.steps)}}function Te(lt,Ut){if(1<){const mt=A.EpF();A.TgZ(0,"mat-step-header",17),A.NdJ("click",function(){return A.CHM(mt).step.select()})("keydown",function(Ee){return A.CHM(mt),A.oxw()._onKeydown(Ee)}),A.qZA()}if(2<){const mt=Ut.step,Lt=Ut.i,Ee=A.oxw();A.ekj("mat-horizontal-stepper-header","horizontal"===Ee.orientation)("mat-vertical-stepper-header","vertical"===Ee.orientation),A.Q6J("tabIndex",Ee._getFocusIndex()===Lt?0:-1)("id",Ee._getStepLabelId(Lt))("index",Lt)("state",Ee._getIndicatorType(Lt,mt.state))("label",mt.stepLabel||mt.label)("selected",Ee.selectedIndex===Lt)("active",Ee._stepIsNavigable(Lt,mt))("optional",mt.optional)("errorMessage",mt.errorMessage)("iconOverrides",Ee._iconOverrides)("disableRipple",Ee.disableRipple||!Ee._stepIsNavigable(Lt,mt))("color",mt.color||Ee.color),A.uIk("aria-posinset",Lt+1)("aria-setsize",Ee.steps.length)("aria-controls",Ee._getStepContentId(Lt))("aria-selected",Ee.selectedIndex==Lt)("aria-label",mt.ariaLabel||null)("aria-labelledby",!mt.ariaLabel&&mt.ariaLabelledby?mt.ariaLabelledby:null)("aria-disabled",!Ee._stepIsNavigable(Lt,mt)||null)}}let Ae=(()=>{class lt extends ge{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["","matStepLabel",""]],features:[A.qOj]}),lt})(),ae=(()=>{class lt{constructor(){this.changes=new C.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275prov=A.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();const o={provide:ae,deps:[[new A.FiY,new A.tp0,ae]],useFactory:function i(lt){return lt||new ae}},d=(0,de.pj)(class extends ne{constructor(Ut){super(Ut)}},"primary");let l=(()=>{class lt extends d{constructor(mt,Lt,Ee,Ge){super(Ee),this._intl=mt,this._focusMonitor=Lt,this._intlSubscription=mt.changes.subscribe(()=>Ge.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(mt,Lt){mt?this._focusMonitor.focusVia(this._elementRef,mt,Lt):this._elementRef.nativeElement.focus(Lt)}_stringLabel(){return this.label instanceof Ae?null:this.label}_templateLabel(){return this.label instanceof Ae?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(mt){return"number"==mt?`${this.index+1}`:"edit"==mt?"create":"error"==mt?"warning":mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(ae),A.Y36(b.tE),A.Y36(A.SBq),A.Y36(A.sBO))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[A.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(mt,Lt){1&mt&&(A._UZ(0,"div",0),A.TgZ(1,"div"),A.TgZ(2,"div",1),A.YNc(3,Be,1,2,"ng-container",2),A.YNc(4,Ie,5,4,"ng-container",3),A.qZA(),A.qZA(),A.TgZ(5,"div",4),A.YNc(6,pe,2,1,"div",5),A.YNc(7,Se,2,1,"div",5),A.YNc(8,Xe,2,1,"div",6),A.YNc(9,Je,2,1,"div",7),A.qZA()),2&mt&&(A.Q6J("matRippleTrigger",Lt._getHostElement())("matRippleDisabled",Lt.disableRipple),A.xp6(1),A.Gre("mat-step-icon-state-",Lt.state," mat-step-icon"),A.ekj("mat-step-icon-selected",Lt.selected),A.xp6(1),A.Q6J("ngSwitch",!(!Lt.iconOverrides||!Lt.iconOverrides[Lt.state])),A.xp6(1),A.Q6J("ngSwitchCase",!0),A.xp6(2),A.ekj("mat-step-label-active",Lt.active)("mat-step-label-selected",Lt.selected)("mat-step-label-error","error"==Lt.state),A.xp6(1),A.Q6J("ngIf",Lt._templateLabel()),A.xp6(1),A.Q6J("ngIf",Lt._stringLabel()),A.xp6(1),A.Q6J("ngIf",Lt.optional&&"error"!=Lt.state),A.xp6(1),A.Q6J("ngIf","error"==Lt.state))},directives:[Le.Hw,de.wG,g.RF,g.n9,g.tP,g.ED,g.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),lt})();const s={horizontalStepTransition:(0,ye.X$)("horizontalStepTransition",[(0,ye.SB)("previous",(0,ye.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,ye.SB)("current",(0,ye.oB)({transform:"none",visibility:"inherit"})),(0,ye.SB)("next",(0,ye.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,ye.eR)("* => *",(0,ye.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,ye.X$)("verticalStepTransition",[(0,ye.SB)("previous",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("next",(0,ye.oB)({height:"0px",visibility:"hidden"})),(0,ye.SB)("current",(0,ye.oB)({height:"*",visibility:"inherit"})),(0,ye.eR)("* <=> current",(0,ye.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let r=(()=>{class lt{constructor(mt){this.templateRef=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),lt})(),t=(()=>{class lt{constructor(mt){this._template=mt}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(A.Rgc))},lt.\u0275dir=A.lG2({type:lt,selectors:[["ng-template","matStepContent",""]]}),lt})(),n=(()=>{class lt extends T{constructor(mt,Lt,Ee,Ge){super(mt,Ge),this._errorStateMatcher=Lt,this._viewContainerRef=Ee,this._isSelected=Ue.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,ze.w)(()=>this._stepper.selectionChange.pipe((0,le.U)(mt=>mt.selectedStep===this),(0,P.O)(this._stepper.selected===this)))).subscribe(mt=>{mt&&this._lazyContent&&!this._portal&&(this._portal=new e.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(mt,Lt){return this._errorStateMatcher.isErrorState(mt,Lt)||!!(mt&&mt.invalid&&this.interacted)}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36((0,A.Gpc)(()=>x)),A.Y36(de.rD,4),A.Y36(A.s_b),A.Y36(Re,8))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-step"]],contentQueries:function(mt,Lt,Ee){if(1&mt&&(A.Suo(Ee,Ae,5),A.Suo(Ee,t,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt.stepLabel=Ge.first),A.iGM(Ge=A.CRH())&&(Lt._lazyContent=Ge.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[A._Bn([{provide:de.rD,useExisting:lt},{provide:T,useExisting:lt}]),A.qOj],ngContentSelectors:X,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(mt,Lt){1&mt&&(A.F$t(),A.YNc(0,Ve,2,1,"ng-template"))},directives:[e.Pl],encapsulation:2,changeDetection:0}),lt})(),a=(()=>{class lt extends j{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,features:[A.qOj]}),lt})(),c=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-horizontal-stepper"]],features:[A.qOj]}),lt})(),h=(()=>{class lt extends a{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["mat-vertical-stepper"]],features:[A.qOj]}),lt})(),x=(()=>{class lt extends j{constructor(mt,Lt,Ee,Ge){super(mt,Lt,Ee,Ge),this.steps=new A.n_E,this.animationDone=new A.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new C.xQ;const U=Ee.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===U?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:mt,templateRef:Lt})=>this._iconOverrides[mt]=Lt),this.steps.changes.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,je.x)((mt,Lt)=>mt.fromState===Lt.fromState&&mt.toState===Lt.toState),(0,m.R)(this._destroyed)).subscribe(mt=>{"current"===mt.toState&&this.animationDone.emit()})}_stepIsNavigable(mt,Lt){return Lt.completed||this.selectedIndex===mt||!this.linear}}return lt.\u0275fac=function(mt){return new(mt||lt)(A.Y36(L.Is,8),A.Y36(A.sBO),A.Y36(A.SBq),A.Y36(g.K0))},lt.\u0275cmp=A.Xpm({type:lt,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(mt,Lt,Ee){if(1&mt&&(A.Suo(Ee,n,5),A.Suo(Ee,r,5)),2&mt){let Ge;A.iGM(Ge=A.CRH())&&(Lt._steps=Ge),A.iGM(Ge=A.CRH())&&(Lt._icons=Ge)}},viewQuery:function(mt,Lt){if(1&mt&&A.Gf(l,5),2&mt){let Ee;A.iGM(Ee=A.CRH())&&(Lt._stepHeader=Ee)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(mt,Lt){2&mt&&(A.uIk("aria-orientation",Lt.orientation),A.ekj("mat-stepper-horizontal","horizontal"===Lt.orientation)("mat-stepper-vertical","vertical"===Lt.orientation)("mat-stepper-label-position-end","horizontal"===Lt.orientation&&"end"==Lt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Lt.orientation&&"bottom"==Lt.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[A._Bn([{provide:j,useExisting:lt},{provide:c,useExisting:lt},{provide:h,useExisting:lt}]),A.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(mt,Lt){1&mt&&(A.ynx(0,0),A.YNc(1,V,5,2,"ng-container",1),A.YNc(2,Qe,2,1,"ng-container",1),A.BQk(),A.YNc(3,Te,1,23,"ng-template",null,2,A.W1O)),2&mt&&(A.Q6J("ngSwitch",Lt.orientation),A.xp6(1),A.Q6J("ngSwitchCase","horizontal"),A.xp6(1),A.Q6J("ngSwitchCase","vertical"))},directives:[l,g.RF,g.n9,g.sg,g.tP,g.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[s.horizontalStepTransition,s.verticalStepTransition]},changeDetection:0}),lt})(),At=(()=>{class lt extends q{}return lt.\u0275fac=function(){let Ut;return function(Lt){return(Ut||(Ut=A.n5z(lt)))(Lt||lt)}}(),lt.\u0275dir=A.lG2({type:lt,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(mt,Lt){2&mt&&A.Ikx("type",Lt.type)},inputs:{type:"type"},features:[A.qOj]}),lt})(),Ht=(()=>{class lt{}return lt.\u0275fac=function(mt){return new(mt||lt)},lt.\u0275mod=A.oAB({type:lt}),lt.\u0275inj=A.cJS({providers:[o,de.rD],imports:[[de.BQ,g.ez,e.eL,ue.ot,te,Le.Ps,de.si],de.BQ]}),lt})()},32075:($e,_e,p)=>{"use strict";p.d(_e,{ev:()=>Rt,Dz:()=>He,w1:()=>xt,ge:()=>Yt,fO:()=>ct,XQ:()=>ai,as:()=>Et,Gk:()=>bi,nj:()=>Jt,BZ:()=>ce,by:()=>rn,p0:()=>cn});var e=p(5e3),b=p(63191),_=p(20449),w=p(69808),g=p(8929),A=p(5254),E=p(591),C=p(54715),I=p(21086),P=p(7625),m=p(72986),L=p(50226),O=p(70925),G=p(53435);const ne=[[["caption"]],[["colgroup"],["col"]]],ge=["caption","colgroup, col"];function oe(st){return class extends st{constructor(...St){super(...St),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(St){const ot=this._sticky;this._sticky=(0,b.Ig)(St),this._hasStickyChanged=ot!==this._sticky}hasStickyChanged(){const St=this._hasStickyChanged;return this._hasStickyChanged=!1,St}resetStickyChanged(){this._hasStickyChanged=!1}}}const Re=new e.OlP("CDK_TABLE");let j=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellDef",""]]}),st})(),Y=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderCellDef",""]]}),st})(),q=(()=>{class st{constructor(ot){this.template=ot}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterCellDef",""]]}),st})();class te{}const ue=oe(te);let de=(()=>{class st extends ue{constructor(ot){super(),this._table=ot,this._stickyEnd=!1}get name(){return this._name}set name(ot){this._setNameInput(ot)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ot){const Ke=this._stickyEnd;this._stickyEnd=(0,b.Ig)(ot),this._hasStickyChanged=Ke!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ot){ot&&(this._name=ot,this.cssClassFriendlyName=ot.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkColumnDef",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,j,5),e.Suo(vt,Y,5),e.Suo(vt,q,5)),2&ot){let F;e.iGM(F=e.CRH())&&(Ke.cell=F.first),e.iGM(F=e.CRH())&&(Ke.headerCell=F.first),e.iGM(F=e.CRH())&&(Ke.footerCell=F.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})();class Le{constructor(St,ot){ot.nativeElement.classList.add(...St._columnCssClassName)}}let Ue=(()=>{class st extends Le{constructor(ot,Ke){super(ot,Ke)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(de),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.qOj]}),st})(),le=(()=>{class st extends Le{constructor(ot,Ke){var vt;if(super(ot,Ke),1===(null===(vt=ot._table)||void 0===vt?void 0:vt._elementRef.nativeElement.nodeType)){const F=ot._table._elementRef.nativeElement.getAttribute("role");Ke.nativeElement.setAttribute("role","grid"===F||"treegrid"===F?"gridcell":"cell")}}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(de),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.qOj]}),st})();class je{constructor(){this.tasks=[],this.endTasks=[]}}const ye=new e.OlP("_COALESCED_STYLE_SCHEDULER");let Be=(()=>{class st{constructor(ot){this._ngZone=ot,this._currentSchedule=null,this._destroyed=new g.xQ}schedule(ot){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ot)}scheduleEnd(ot){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ot)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new je,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ot=this._currentSchedule;this._currentSchedule=new je;for(const Ke of ot.tasks)Ke();for(const Ke of ot.endTasks)Ke()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,A.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,m.q)(1))}}return st.\u0275fac=function(ot){return new(ot||st)(e.LFG(e.R0b))},st.\u0275prov=e.Yz7({token:st,factory:st.\u0275fac}),st})(),R=(()=>{class st{constructor(ot,Ke){this.template=ot,this._differs=Ke}ngOnChanges(ot){if(!this._columnsDiffer){const Ke=ot.columns&&ot.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ke).create(),this._columnsDiffer.diff(Ke)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ot){return this instanceof Ie?ot.headerCell.template:this instanceof Xe?ot.footerCell.template:ot.cell.template}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4))},st.\u0275dir=e.lG2({type:st,features:[e.TTD]}),st})();class me extends R{}const be=oe(me);let Ie=(()=>{class st extends be{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})();class pe extends R{}const Se=oe(pe);let Xe=(()=>{class st extends Se{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}ngOnChanges(ot){super.ngOnChanges(ot)}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.qOj,e.TTD]}),st})(),Je=(()=>{class st extends R{constructor(ot,Ke,vt){super(ot,Ke),this._table=vt}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc),e.Y36(e.ZZ4),e.Y36(Re,8))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.qOj]}),st})(),nt=(()=>{class st{constructor(ot){this._viewContainer=ot,st.mostRecentCellOutlet=this}ngOnDestroy(){st.mostRecentCellOutlet===this&&(st.mostRecentCellOutlet=null)}}return st.mostRecentCellOutlet=null,st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b))},st.\u0275dir=e.lG2({type:st,selectors:[["","cdkCellOutlet",""]]}),st})(),Ve=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),z=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),Q=(()=>{class st{constructor(ot){this.templateRef=ot,this._contentClassName="cdk-no-data-row"}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.Rgc))},st.\u0275dir=e.lG2({type:st,selectors:[["ng-template","cdkNoDataRow",""]]}),st})();const D=["top","bottom","left","right"];class H{constructor(St,ot,Ke,vt,F=!0,Ye=!0,gt){this._isNativeHtmlTable=St,this._stickCellCss=ot,this.direction=Ke,this._coalescedStyleScheduler=vt,this._isBrowser=F,this._needsPositionStickyOnElement=Ye,this._positionListener=gt,this._cachedCellWidths=[],this._borderCellCss={top:`${ot}-border-elem-top`,bottom:`${ot}-border-elem-bottom`,left:`${ot}-border-elem-left`,right:`${ot}-border-elem-right`}}clearStickyPositioning(St,ot){const Ke=[];for(const vt of St)if(vt.nodeType===vt.ELEMENT_NODE){Ke.push(vt);for(let F=0;F{for(const vt of Ke)this._removeStickyStyle(vt,ot)})}updateStickyColumns(St,ot,Ke,vt=!0){if(!St.length||!this._isBrowser||!ot.some(wi=>wi)&&!Ke.some(wi=>wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const F=St[0],Ye=F.children.length,gt=this._getCellWidths(F,vt),Dt=this._getStickyStartColumnPositions(gt,ot),ri=this._getStickyEndColumnPositions(gt,Ke),ti=ot.lastIndexOf(!0),Di=Ke.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const wi="rtl"===this.direction,$i=wi?"right":"left",qi=wi?"left":"right";for(const Fi of St)for(let Ji=0;Jiot[Ji]?Fi:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Di?[]:gt.slice(Di).map((Fi,Ji)=>Ke[Ji+Di]?Fi:null).reverse()}))})}stickRows(St,ot,Ke){if(!this._isBrowser)return;const vt="bottom"===Ke?St.slice().reverse():St,F="bottom"===Ke?ot.slice().reverse():ot,Ye=[],gt=[],Dt=[];for(let ti=0,Di=0;ti{var ti,Di;for(let wi=0;wi{ot.some(vt=>!vt)?this._removeStickyStyle(Ke,["bottom"]):this._addStickyStyle(Ke,"bottom",0,!1)})}_removeStickyStyle(St,ot){for(const vt of ot)St.style[vt]="",St.classList.remove(this._borderCellCss[vt]);D.some(vt=>-1===ot.indexOf(vt)&&St.style[vt])?St.style.zIndex=this._getCalculatedZIndex(St):(St.style.zIndex="",this._needsPositionStickyOnElement&&(St.style.position=""),St.classList.remove(this._stickCellCss))}_addStickyStyle(St,ot,Ke,vt){St.classList.add(this._stickCellCss),vt&&St.classList.add(this._borderCellCss[ot]),St.style[ot]=`${Ke}px`,St.style.zIndex=this._getCalculatedZIndex(St),this._needsPositionStickyOnElement&&(St.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(St){const ot={top:100,bottom:10,left:1,right:1};let Ke=0;for(const vt of D)St.style[vt]&&(Ke+=ot[vt]);return Ke?`${Ke}`:""}_getCellWidths(St,ot=!0){if(!ot&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ke=[],vt=St.children;for(let F=0;F0;F--)ot[F]&&(Ke[F]=vt,vt+=St[F]);return Ke}}const d=new e.OlP("CDK_SPL");let s=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","rowOutlet",""]]}),st})(),r=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","headerRowOutlet",""]]}),st})(),t=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","footerRowOutlet",""]]}),st})(),n=(()=>{class st{constructor(ot,Ke){this.viewContainer=ot,this.elementRef=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.s_b),e.Y36(e.SBq))},st.\u0275dir=e.lG2({type:st,selectors:[["","noDataRowOutlet",""]]}),st})(),h=(()=>{class st{constructor(ot,Ke,vt,F,Ye,gt,Dt,ri,ti,Di,wi,$i){this._differs=ot,this._changeDetectorRef=Ke,this._elementRef=vt,this._dir=Ye,this._platform=Dt,this._viewRepeater=ri,this._coalescedStyleScheduler=ti,this._viewportRuler=Di,this._stickyPositioningListener=wi,this._ngZone=$i,this._onDestroy=new g.xQ,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 e.vpe,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE}),F||this._elementRef.nativeElement.setAttribute("role","table"),this._document=gt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ot){this._trackByFn=ot}get dataSource(){return this._dataSource}set dataSource(ot){this._dataSource!==ot&&this._switchDataSource(ot)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ot){this._multiTemplateDataRows=(0,b.Ig)(ot),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ot){this._fixedLayout=(0,b.Ig)(ot),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ot,Ke)=>this.trackBy?this.trackBy(Ke.dataIndex,Ke.data):Ke),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ke=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ke,this._forceRecalculateCellWidths=Ke,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(ot=>{ot.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ot=this._dataDiffer.diff(this._renderRows);if(!ot)return this._updateNoDataRow(),void this.contentChanged.next();const Ke=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ot,Ke,(vt,F,Ye)=>this._getEmbeddedViewArgs(vt.item,Ye),vt=>vt.item.data,vt=>{1===vt.operation&&vt.context&&this._renderCellTemplateForItem(vt.record.item.rowDef,vt.context)}),this._updateRowIndexContext(),ot.forEachIdentityChange(vt=>{Ke.get(vt.currentIndex).context.$implicit=vt.item.data}),this._updateNoDataRow(),this._ngZone&&e.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,m.q)(1),(0,P.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ot){this._customColumnDefs.add(ot)}removeColumnDef(ot){this._customColumnDefs.delete(ot)}addRowDef(ot){this._customRowDefs.add(ot)}removeRowDef(ot){this._customRowDefs.delete(ot)}addHeaderRowDef(ot){this._customHeaderRowDefs.add(ot),this._headerRowDefChanged=!0}removeHeaderRowDef(ot){this._customHeaderRowDefs.delete(ot),this._headerRowDefChanged=!0}addFooterRowDef(ot){this._customFooterRowDefs.add(ot),this._footerRowDefChanged=!0}removeFooterRowDef(ot){this._customFooterRowDefs.delete(ot),this._footerRowDefChanged=!0}setNoDataRow(ot){this._customNoDataRow=ot}updateStickyHeaderRowStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),vt=this._elementRef.nativeElement.querySelector("thead");vt&&(vt.style.display=ot.length?"":"none");const F=this._headerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["top"]),this._stickyStyler.stickRows(ot,F,"top"),this._headerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyFooterRowStyles(){const ot=this._getRenderedRows(this._footerRowOutlet),vt=this._elementRef.nativeElement.querySelector("tfoot");vt&&(vt.style.display=ot.length?"":"none");const F=this._footerRowDefs.map(Ye=>Ye.sticky);this._stickyStyler.clearStickyPositioning(ot,["bottom"]),this._stickyStyler.stickRows(ot,F,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,F),this._footerRowDefs.forEach(Ye=>Ye.resetStickyChanged())}updateStickyColumnStyles(){const ot=this._getRenderedRows(this._headerRowOutlet),Ke=this._getRenderedRows(this._rowOutlet),vt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ot,...Ke,...vt],["left","right"]),this._stickyColumnStylesNeedReset=!1),ot.forEach((F,Ye)=>{this._addStickyColumnStyles([F],this._headerRowDefs[Ye])}),this._rowDefs.forEach(F=>{const Ye=[];for(let gt=0;gt{this._addStickyColumnStyles([F],this._footerRowDefs[Ye])}),Array.from(this._columnDefsByName.values()).forEach(F=>F.resetStickyChanged())}_getAllRenderRows(){const ot=[],Ke=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let vt=0;vt{const gt=vt&&vt.has(Ye)?vt.get(Ye):[];if(gt.length){const Dt=gt.shift();return Dt.dataIndex=Ke,Dt}return{data:ot,rowDef:Ye,dataIndex:Ke}})}_cacheColumnDefs(){this._columnDefsByName.clear(),x(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ke=>{this._columnDefsByName.has(Ke.name),this._columnDefsByName.set(Ke.name,Ke)})}_cacheRowDefs(){this._headerRowDefs=x(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=x(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=x(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ot=this._rowDefs.filter(Ke=>!Ke.when);this._defaultRowDef=ot[0]}_renderUpdatedColumns(){const ot=(Ye,gt)=>Ye||!!gt.getColumnsDiff(),Ke=this._rowDefs.reduce(ot,!1);Ke&&this._forceRenderDataRows();const vt=this._headerRowDefs.reduce(ot,!1);vt&&this._forceRenderHeaderRows();const F=this._footerRowDefs.reduce(ot,!1);return F&&this._forceRenderFooterRows(),Ke||vt||F}_switchDataSource(ot){this._data=[],(0,_.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ot||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ot}_observeRenderChanges(){if(!this.dataSource)return;let ot;(0,_.Z9)(this.dataSource)?ot=this.dataSource.connect(this):(0,C.b)(this.dataSource)?ot=this.dataSource:Array.isArray(this.dataSource)&&(ot=(0,I.of)(this.dataSource)),this._renderChangeSubscription=ot.pipe((0,P.R)(this._onDestroy)).subscribe(Ke=>{this._data=Ke||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ot,Ke)=>this._renderRow(this._headerRowOutlet,ot,Ke)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ot,Ke)=>this._renderRow(this._footerRowOutlet,ot,Ke)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ot,Ke){const vt=Array.from(Ke.columns||[]).map(gt=>this._columnDefsByName.get(gt)),F=vt.map(gt=>gt.sticky),Ye=vt.map(gt=>gt.stickyEnd);this._stickyStyler.updateStickyColumns(ot,F,Ye,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ot){const Ke=[];for(let vt=0;vt!F.when||F.when(Ke,ot));else{let F=this._rowDefs.find(Ye=>Ye.when&&Ye.when(Ke,ot))||this._defaultRowDef;F&&vt.push(F)}return vt}_getEmbeddedViewArgs(ot,Ke){return{templateRef:ot.rowDef.template,context:{$implicit:ot.data},index:Ke}}_renderRow(ot,Ke,vt,F={}){const Ye=ot.viewContainer.createEmbeddedView(Ke.template,F,vt);return this._renderCellTemplateForItem(Ke,F),Ye}_renderCellTemplateForItem(ot,Ke){for(let vt of this._getCellTemplates(ot))nt.mostRecentCellOutlet&&nt.mostRecentCellOutlet._viewContainer.createEmbeddedView(vt,Ke);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ot=this._rowOutlet.viewContainer;for(let Ke=0,vt=ot.length;Ke{const vt=this._columnDefsByName.get(Ke);return ot.extractCellTemplate(vt)}):[]}_applyNativeTableSections(){const ot=this._document.createDocumentFragment(),Ke=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const vt of Ke){const F=this._document.createElement(vt.tag);F.setAttribute("role","rowgroup");for(const Ye of vt.outlets)F.appendChild(Ye.elementRef.nativeElement);ot.appendChild(F)}this._elementRef.nativeElement.appendChild(ot)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ot=(Ke,vt)=>Ke||vt.hasStickyChanged();this._headerRowDefs.reduce(ot,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ot,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ot,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new H(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,I.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(Ke=>{this._stickyStyler.direction=Ke,this.updateStickyColumnStyles()})}_getOwnDefs(ot){return ot.filter(Ke=>!Ke._table||Ke._table===this)}_updateNoDataRow(){const ot=this._customNoDataRow||this._noDataRow;if(!ot)return;const Ke=0===this._rowOutlet.viewContainer.length;if(Ke===this._isShowingNoDataRow)return;const vt=this._noDataRowOutlet.viewContainer;if(Ke){const F=vt.createEmbeddedView(ot.templateRef),Ye=F.rootNodes[0];1===F.rootNodes.length&&(null==Ye?void 0:Ye.nodeType)===this._document.ELEMENT_NODE&&(Ye.setAttribute("role","row"),Ye.classList.add(ot._contentClassName))}else vt.clear();this._isShowingNoDataRow=Ke}}return st.\u0275fac=function(ot){return new(ot||st)(e.Y36(e.ZZ4),e.Y36(e.sBO),e.Y36(e.SBq),e.$8M("role"),e.Y36(L.Is,8),e.Y36(w.K0),e.Y36(O.t4),e.Y36(_.k),e.Y36(ye),e.Y36(G.rL),e.Y36(d,12),e.Y36(e.R0b,8))},st.\u0275cmp=e.Xpm({type:st,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ot,Ke,vt){if(1&ot&&(e.Suo(vt,Q,5),e.Suo(vt,de,5),e.Suo(vt,Je,5),e.Suo(vt,Ie,5),e.Suo(vt,Xe,5)),2&ot){let F;e.iGM(F=e.CRH())&&(Ke._noDataRow=F.first),e.iGM(F=e.CRH())&&(Ke._contentColumnDefs=F),e.iGM(F=e.CRH())&&(Ke._contentRowDefs=F),e.iGM(F=e.CRH())&&(Ke._contentHeaderRowDefs=F),e.iGM(F=e.CRH())&&(Ke._contentFooterRowDefs=F)}},viewQuery:function(ot,Ke){if(1&ot&&(e.Gf(s,7),e.Gf(r,7),e.Gf(t,7),e.Gf(n,7)),2&ot){let vt;e.iGM(vt=e.CRH())&&(Ke._rowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._headerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._footerRowOutlet=vt.first),e.iGM(vt=e.CRH())&&(Ke._noDataRowOutlet=vt.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("cdk-table-fixed-layout",Ke.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e._Bn([{provide:Re,useExisting:st},{provide:_.k,useClass:_.yy},{provide:ye,useClass:Be},{provide:d,useValue:null}])],ngContentSelectors:ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(ne),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})();function x(st,St){return st.concat(Array.from(St))}let Ht=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[G.Cl]]}),st})();var lt=p(90508),Ut=p(36787),mt=p(36053),Lt=p(24850);const Ee=[[["caption"]],[["colgroup"],["col"]]],Ge=["caption","colgroup, col"];let ce=(()=>{class st extends h{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ot,Ke){2&ot&&e.ekj("mat-table-fixed-layout",Ke.fixedLayout)},exportAs:["matTable"],features:[e._Bn([{provide:_.k,useClass:_.yy},{provide:h,useExisting:st},{provide:Re,useExisting:st},{provide:ye,useClass:Be},{provide:d,useValue:null}]),e.qOj],ngContentSelectors:Ge,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ot,Ke){1&ot&&(e.F$t(Ee),e.Hsn(0),e.Hsn(1,1),e.GkF(2,0),e.GkF(3,1),e.GkF(4,2),e.GkF(5,3))},directives:[r,s,n,t],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),st})(),He=(()=>{class st extends j{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matCellDef",""]],features:[e._Bn([{provide:j,useExisting:st}]),e.qOj]}),st})(),ct=(()=>{class st extends Y{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderCellDef",""]],features:[e._Bn([{provide:Y,useExisting:st}]),e.qOj]}),st})(),xt=(()=>{class st extends de{get name(){return this._name}set name(ot){this._setNameInput(ot)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e._Bn([{provide:de,useExisting:st},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:st}]),e.qOj]}),st})(),Yt=(()=>{class st extends Ue{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[e.qOj]}),st})(),Rt=(()=>{class st extends le{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[e.qOj]}),st})(),Et=(()=>{class st extends Ie{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e._Bn([{provide:Ie,useExisting:st}]),e.qOj]}),st})(),Jt=(()=>{class st extends Je{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275dir=e.lG2({type:st,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e._Bn([{provide:Je,useExisting:st}]),e.qOj]}),st})(),ai=(()=>{class st extends Ve{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[e._Bn([{provide:Ve,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),bi=(()=>{class st extends z{}return st.\u0275fac=function(){let St;return function(Ke){return(St||(St=e.n5z(st)))(Ke||st)}}(),st.\u0275cmp=e.Xpm({type:st,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[e._Bn([{provide:z,useExisting:st}]),e.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ot,Ke){1&ot&&e.GkF(0,0)},directives:[nt],encapsulation:2}),st})(),cn=(()=>{class st{}return st.\u0275fac=function(ot){return new(ot||st)},st.\u0275mod=e.oAB({type:st}),st.\u0275inj=e.cJS({imports:[[Ht,lt.BQ],lt.BQ]}),st})();class Tn extends _.o2{constructor(St=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new g.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(ot,Ke)=>{const vt=ot[Ke];if((0,b.t6)(vt)){const F=Number(vt);return F<9007199254740991?F:vt}return vt},this.sortData=(ot,Ke)=>{const vt=Ke.active,F=Ke.direction;return vt&&""!=F?ot.sort((Ye,gt)=>{let Dt=this.sortingDataAccessor(Ye,vt),ri=this.sortingDataAccessor(gt,vt);const ti=typeof Dt,Di=typeof ri;ti!==Di&&("number"===ti&&(Dt+=""),"number"===Di&&(ri+=""));let wi=0;return null!=Dt&&null!=ri?Dt>ri?wi=1:Dt{const vt=Object.keys(ot).reduce((Ye,gt)=>Ye+ot[gt]+"\u25ec","").toLowerCase(),F=Ke.trim().toLowerCase();return-1!=vt.indexOf(F)},this._data=new E.X(St),this._updateChangeSubscription()}get data(){return this._data.value}set data(St){St=Array.isArray(St)?St:[],this._data.next(St),this._renderChangesSubscription||this._filterData(St)}get filter(){return this._filter.value}set filter(St){this._filter.next(St),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(St){this._sort=St,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(St){this._paginator=St,this._updateChangeSubscription()}_updateChangeSubscription(){var St;const ot=this._sort?(0,Ut.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ke=this._paginator?(0,Ut.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),F=(0,mt.aj)([this._data,this._filter]).pipe((0,Lt.U)(([Dt])=>this._filterData(Dt))),Ye=(0,mt.aj)([F,ot]).pipe((0,Lt.U)(([Dt])=>this._orderData(Dt))),gt=(0,mt.aj)([Ye,Ke]).pipe((0,Lt.U)(([Dt])=>this._pageData(Dt)));null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=gt.subscribe(Dt=>this._renderData.next(Dt))}_filterData(St){return this.filteredData=null==this.filter||""===this.filter?St:St.filter(ot=>this.filterPredicate(ot,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(St){return this.sort?this.sortData(St.slice(),this.sort):St}_pageData(St){if(!this.paginator)return St;const ot=this.paginator.pageIndex*this.paginator.pageSize;return St.slice(ot,ot+this.paginator.pageSize)}_updatePaginator(St){Promise.resolve().then(()=>{const ot=this.paginator;if(ot&&(ot.length=St,ot.pageIndex>0)){const Ke=Math.ceil(ot.length/ot.pageSize)-1||0,vt=Math.min(ot.pageIndex,Ke);vt!==ot.pageIndex&&(ot.pageIndex=vt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var St;null===(St=this._renderChangesSubscription)||void 0===St||St.unsubscribe(),this._renderChangesSubscription=null}}class rn extends Tn{}},53251:($e,_e,p)=>{"use strict";p.d(_e,{uX:()=>V,Vc:()=>Ve,SP:()=>At,uD:()=>Q,Nh:()=>U});var e=p(15664),b=p(17144),_=p(47429),w=p(69808),g=p(5e3),A=p(90508),E=p(76360),C=p(8929),I=p(42654),P=p(23753),m=p(21086),L=p(36787),O=p(98723),G=p(41777),ne=p(1059),ge=p(75778),J=p(7625),Me=p(50226),oe=p(63191),Re=p(91159),T=p(70925),j=p(53435);function Y(k,ie){1&k&&g.Hsn(0)}const q=["*"];function te(k,ie){}const ue=function(k){return{animationDuration:k}},de=function(k,ie){return{value:k,params:ie}},Le=["tabListContainer"],Ue=["tabList"],ze=["tabListInner"],le=["nextPaginator"],je=["previousPaginator"],ye=["tabBodyWrapper"],Be=["tabHeader"];function W(k,ie){}function R(k,ie){if(1&k&&g.YNc(0,W,0,0,"ng-template",10),2&k){const ce=g.oxw().$implicit;g.Q6J("cdkPortalOutlet",ce.templateLabel)}}function me(k,ie){if(1&k&&g._uU(0),2&k){const ce=g.oxw().$implicit;g.Oqu(ce.textLabel)}}function be(k,ie){if(1&k){const ce=g.EpF();g.TgZ(0,"div",6),g.NdJ("click",function(){const ct=g.CHM(ce),bt=ct.$implicit,xt=ct.index,Yt=g.oxw(),It=g.MAs(1);return Yt._handleClick(bt,It,xt)})("cdkFocusChange",function(ct){const xt=g.CHM(ce).index;return g.oxw()._tabFocusChanged(ct,xt)}),g.TgZ(1,"div",7),g.YNc(2,R,1,1,"ng-template",8),g.YNc(3,me,1,1,"ng-template",null,9,g.W1O),g.qZA(),g.qZA()}if(2&k){const ce=ie.$implicit,He=ie.index,ct=g.MAs(4),bt=g.oxw();g.ekj("mat-tab-label-active",bt.selectedIndex===He),g.Q6J("id",bt._getTabLabelId(He))("ngClass",ce.labelClass)("disabled",ce.disabled)("matRippleDisabled",ce.disabled||bt.disableRipple),g.uIk("tabIndex",bt._getTabIndex(ce,He))("aria-posinset",He+1)("aria-setsize",bt._tabs.length)("aria-controls",bt._getTabContentId(He))("aria-selected",bt.selectedIndex===He)("aria-label",ce.ariaLabel||null)("aria-labelledby",!ce.ariaLabel&&ce.ariaLabelledby?ce.ariaLabelledby:null),g.xp6(2),g.Q6J("ngIf",ce.templateLabel)("ngIfElse",ct)}}function Ie(k,ie){if(1&k){const ce=g.EpF();g.TgZ(0,"mat-tab-body",11),g.NdJ("_onCentered",function(){return g.CHM(ce),g.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(ct){return g.CHM(ce),g.oxw()._setTabBodyWrapperHeight(ct)}),g.qZA()}if(2&k){const ce=ie.$implicit,He=ie.index,ct=g.oxw();g.ekj("mat-tab-body-active",ct.selectedIndex===He),g.Q6J("id",ct._getTabContentId(He))("ngClass",ce.bodyClass)("content",ce.content)("position",ce.position)("origin",ce.origin)("animationDuration",ct.animationDuration),g.uIk("tabindex",null!=ct.contentTabIndex&&ct.selectedIndex===He?ct.contentTabIndex:null)("aria-labelledby",ct._getTabLabelId(He))}}const Se=new g.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Xe(){return ie=>({left:ie?(ie.offsetLeft||0)+"px":"0",width:ie?(ie.offsetWidth||0)+"px":"0"})}});let Je=(()=>{class k{constructor(ce,He,ct,bt){this._elementRef=ce,this._ngZone=He,this._inkBarPositioner=ct,this._animationMode=bt}alignToElement(ce){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(ce))}):this._setStyles(ce)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(ce){const He=this._inkBarPositioner(ce),ct=this._elementRef.nativeElement;ct.style.left=He.left,ct.style.width=He.width}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Se),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(ce,He){2&ce&&g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode)}}),k})();const nt=new g.OlP("MatTabContent");let Ve=(()=>{class k{constructor(ce){this.template=ce}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.Rgc))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabContent",""]],features:[g._Bn([{provide:nt,useExisting:k}])]}),k})();const X=new g.OlP("MatTabLabel"),z=new g.OlP("MAT_TAB");let Q=(()=>{class k extends _.ig{constructor(ce,He,ct){super(ce,He),this._closestTab=ct}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.Rgc),g.Y36(g.s_b),g.Y36(z,8))},k.\u0275dir=g.lG2({type:k,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[g._Bn([{provide:X,useExisting:k}]),g.qOj]}),k})();const D=(0,A.Id)(class{}),H=new g.OlP("MAT_TAB_GROUP");let V=(()=>{class k extends D{constructor(ce,He){super(),this._viewContainerRef=ce,this._closestTabGroup=He,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(ce){this._setTemplateLabelInput(ce)}get content(){return this._contentPortal}ngOnChanges(ce){(ce.hasOwnProperty("textLabel")||ce.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new _.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(ce){ce&&ce._closestTab===this&&(this._templateLabel=ce)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.s_b),g.Y36(H,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab"]],contentQueries:function(ce,He,ct){if(1&ce&&(g.Suo(ct,X,5),g.Suo(ct,nt,7,g.Rgc)),2&ce){let bt;g.iGM(bt=g.CRH())&&(He.templateLabel=bt.first),g.iGM(bt=g.CRH())&&(He._explicitContent=bt.first)}},viewQuery:function(ce,He){if(1&ce&&g.Gf(g.Rgc,7),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._implicitContent=ct.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[g._Bn([{provide:z,useExisting:k}]),g.qOj,g.TTD],ngContentSelectors:q,decls:1,vars:0,template:function(ce,He){1&ce&&(g.F$t(),g.YNc(0,Y,1,0,"ng-template"))},encapsulation:2}),k})();const xe={translateTab:(0,G.X$)("translateTab",[(0,G.SB)("center, void, left-origin-center, right-origin-center",(0,G.oB)({transform:"none"})),(0,G.SB)("left",(0,G.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,G.SB)("right",(0,G.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,G.eR)("* => left, * => right, left => center, right => center",(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,G.eR)("void => left-origin-center",[(0,G.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,G.eR)("void => right-origin-center",[(0,G.oB)({transform:"translate3d(100%, 0, 0)"}),(0,G.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Qe=(()=>{class k extends _.Pl{constructor(ce,He,ct,bt){super(ce,He,bt),this._host=ct,this._centeringSub=I.w.EMPTY,this._leavingSub=I.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ne.O)(this._host._isCenterPosition(this._host._position))).subscribe(ce=>{ce&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36((0,g.Gpc)(()=>Ae)),g.Y36(w.K0))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabBodyHost",""]],features:[g.qOj]}),k})(),Te=(()=>{class k{constructor(ce,He,ct){this._elementRef=ce,this._dir=He,this._dirChangeSubscription=I.w.EMPTY,this._translateTabComplete=new C.xQ,this._onCentering=new g.vpe,this._beforeCentering=new g.vpe,this._afterLeavingCenter=new g.vpe,this._onCentered=new g.vpe(!0),this.animationDuration="500ms",He&&(this._dirChangeSubscription=He.change.subscribe(bt=>{this._computePositionAnimationState(bt),ct.markForCheck()})),this._translateTabComplete.pipe((0,ge.x)((bt,xt)=>bt.fromState===xt.fromState&&bt.toState===xt.toState)).subscribe(bt=>{this._isCenterPosition(bt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(bt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(ce){this._positionIndex=ce,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(ce){const He=this._isCenterPosition(ce.toState);this._beforeCentering.emit(He),He&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(ce){return"center"==ce||"left-origin-center"==ce||"right-origin-center"==ce}_computePositionAnimationState(ce=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==ce?"left":"right":this._positionIndex>0?"ltr"==ce?"right":"left":"center"}_computePositionFromOrigin(ce){const He=this._getLayoutDirection();return"ltr"==He&&ce<=0||"rtl"==He&&ce>0?"left-origin-center":"right-origin-center"}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},k.\u0275dir=g.lG2({type:k,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),k})(),Ae=(()=>{class k extends Te{constructor(ce,He,ct){super(ce,He,ct)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(Me.Is,8),g.Y36(g.sBO))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-body"]],viewQuery:function(ce,He){if(1&ce&&g.Gf(_.Pl,5),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._portalHost=ct.first)}},hostAttrs:[1,"mat-tab-body"],features:[g.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(ce,He){1&ce&&(g.TgZ(0,"div",0,1),g.NdJ("@translateTab.start",function(bt){return He._onTranslateTabStarted(bt)})("@translateTab.done",function(bt){return He._translateTabComplete.next(bt)}),g.YNc(2,te,0,0,"ng-template",2),g.qZA()),2&ce&&g.Q6J("@translateTab",g.WLB(3,de,He._position,g.VKq(1,ue,He.animationDuration)))},directives:[Qe],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[xe.translateTab]}}),k})();const ae=new g.OlP("MAT_TABS_CONFIG"),i=(0,A.Id)(class{});let o=(()=>{class k extends i{constructor(ce){super(),this.elementRef=ce}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq))},k.\u0275dir=g.lG2({type:k,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(ce,He){2&ce&&(g.uIk("aria-disabled",!!He.disabled),g.ekj("mat-tab-disabled",He.disabled))},inputs:{disabled:"disabled"},features:[g.qOj]}),k})();const d=(0,T.i$)({passive:!0});let t=(()=>{class k{constructor(ce,He,ct,bt,xt,Yt,It){this._elementRef=ce,this._changeDetectorRef=He,this._viewportRuler=ct,this._dir=bt,this._ngZone=xt,this._platform=Yt,this._animationMode=It,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new g.vpe,this.indexFocused=new g.vpe,xt.runOutsideAngular(()=>{(0,P.R)(ce.nativeElement,"mouseleave").pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(ce){ce=(0,oe.su)(ce),this._selectedIndex!=ce&&(this._selectedIndexChanged=!0,this._selectedIndex=ce,this._keyManager&&this._keyManager.updateActiveItem(ce))}ngAfterViewInit(){(0,P.R)(this._previousPaginator.nativeElement,"touchstart",d).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,P.R)(this._nextPaginator.nativeElement,"touchstart",d).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const ce=this._dir?this._dir.change:(0,m.of)("ltr"),He=this._viewportRuler.change(150),ct=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new e.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(ct):ct(),(0,L.T)(ce,He,this._items.changes).pipe((0,J.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(ct)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,J.R)(this._destroyed)).subscribe(bt=>{this.indexFocused.emit(bt),this._setTabFocus(bt)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(ce){if(!(0,Re.Vb)(ce))switch(ce.keyCode){case Re.K5:case Re.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(ce));break;default:this._keyManager.onKeydown(ce)}}_onContentChanges(){const ce=this._elementRef.nativeElement.textContent;ce!==this._currentTextContent&&(this._currentTextContent=ce||"",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(ce){!this._isValidIndex(ce)||this.focusIndex===ce||!this._keyManager||this._keyManager.setActiveItem(ce)}_isValidIndex(ce){if(!this._items)return!0;const He=this._items?this._items.toArray()[ce]:null;return!!He&&!He.disabled}_setTabFocus(ce){if(this._showPaginationControls&&this._scrollToLabel(ce),this._items&&this._items.length){this._items.toArray()[ce].focus();const He=this._tabListContainer.nativeElement;He.scrollLeft="ltr"==this._getLayoutDirection()?0:He.scrollWidth-He.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const ce=this.scrollDistance,He="ltr"===this._getLayoutDirection()?-ce:ce;this._tabList.nativeElement.style.transform=`translateX(${Math.round(He)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(ce){this._scrollTo(ce)}_scrollHeader(ce){return this._scrollTo(this._scrollDistance+("before"==ce?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(ce){this._stopInterval(),this._scrollHeader(ce)}_scrollToLabel(ce){if(this.disablePagination)return;const He=this._items?this._items.toArray()[ce]:null;if(!He)return;const ct=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:bt,offsetWidth:xt}=He.elementRef.nativeElement;let Yt,It;"ltr"==this._getLayoutDirection()?(Yt=bt,It=Yt+xt):(It=this._tabListInner.nativeElement.offsetWidth-bt,Yt=It-xt);const Rt=this.scrollDistance,Et=this.scrollDistance+ct;YtEt&&(this.scrollDistance+=It-Et+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ce=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;ce||(this.scrollDistance=0),ce!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=ce}}_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 ce=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,He=ce?ce.elementRef.nativeElement:null;He?this._inkBar.alignToElement(He):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(ce,He){He&&null!=He.button&&0!==He.button||(this._stopInterval(),(0,O.H)(650,100).pipe((0,J.R)((0,L.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ct,distance:bt}=this._scrollHeader(ce);(0===bt||bt>=ct)&&this._stopInterval()}))}_scrollTo(ce){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const He=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(He,ce)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:He,distance:this._scrollDistance}}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{disablePagination:"disablePagination"}}),k})(),n=(()=>{class k extends t{constructor(ce,He,ct,bt,xt,Yt,It){super(ce,He,ct,bt,xt,Yt,It),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ce){this._disableRipple=(0,oe.Ig)(ce)}_itemSelected(ce){ce.preventDefault()}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{disableRipple:"disableRipple"},features:[g.qOj]}),k})(),a=(()=>{class k extends n{constructor(ce,He,ct,bt,xt,Yt,It){super(ce,He,ct,bt,xt,Yt,It)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(j.rL),g.Y36(Me.Is,8),g.Y36(g.R0b),g.Y36(T.t4),g.Y36(E.Qb,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-header"]],contentQueries:function(ce,He,ct){if(1&ce&&g.Suo(ct,o,4),2&ce){let bt;g.iGM(bt=g.CRH())&&(He._items=bt)}},viewQuery:function(ce,He){if(1&ce&&(g.Gf(Je,7),g.Gf(Le,7),g.Gf(Ue,7),g.Gf(ze,7),g.Gf(le,5),g.Gf(je,5)),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._inkBar=ct.first),g.iGM(ct=g.CRH())&&(He._tabListContainer=ct.first),g.iGM(ct=g.CRH())&&(He._tabList=ct.first),g.iGM(ct=g.CRH())&&(He._tabListInner=ct.first),g.iGM(ct=g.CRH())&&(He._nextPaginator=ct.first),g.iGM(ct=g.CRH())&&(He._previousPaginator=ct.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(ce,He){2&ce&&g.ekj("mat-tab-header-pagination-controls-enabled",He._showPaginationControls)("mat-tab-header-rtl","rtl"==He._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[g.qOj],ngContentSelectors:q,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(ce,He){1&ce&&(g.F$t(),g.TgZ(0,"div",0,1),g.NdJ("click",function(){return He._handlePaginatorClick("before")})("mousedown",function(bt){return He._handlePaginatorPress("before",bt)})("touchend",function(){return He._stopInterval()}),g._UZ(2,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.NdJ("keydown",function(bt){return He._handleKeydown(bt)}),g.TgZ(5,"div",5,6),g.NdJ("cdkObserveContent",function(){return He._onContentChanges()}),g.TgZ(7,"div",7,8),g.Hsn(9),g.qZA(),g._UZ(10,"mat-ink-bar"),g.qZA(),g.qZA(),g.TgZ(11,"div",9,10),g.NdJ("mousedown",function(bt){return He._handlePaginatorPress("after",bt)})("click",function(){return He._handlePaginatorClick("after")})("touchend",function(){return He._stopInterval()}),g._UZ(13,"div",2),g.qZA()),2&ce&&(g.ekj("mat-tab-header-pagination-disabled",He._disableScrollBefore),g.Q6J("matRippleDisabled",He._disableScrollBefore||He.disableRipple),g.xp6(5),g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode),g.xp6(6),g.ekj("mat-tab-header-pagination-disabled",He._disableScrollAfter),g.Q6J("matRippleDisabled",He._disableScrollAfter||He.disableRipple))},directives:[A.wG,b.wD,Je],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),k})(),c=0;class h{}const x=(0,A.pj)((0,A.Kr)(class{constructor(k){this._elementRef=k}}),"primary");let We=(()=>{class k extends x{constructor(ce,He,ct,bt){var xt;super(ce),this._changeDetectorRef=He,this._animationMode=bt,this._tabs=new g.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=I.w.EMPTY,this._tabLabelSubscription=I.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new g.vpe,this.focusChange=new g.vpe,this.animationDone=new g.vpe,this.selectedTabChange=new g.vpe(!0),this._groupId=c++,this.animationDuration=ct&&ct.animationDuration?ct.animationDuration:"500ms",this.disablePagination=!(!ct||null==ct.disablePagination)&&ct.disablePagination,this.dynamicHeight=!(!ct||null==ct.dynamicHeight)&&ct.dynamicHeight,this.contentTabIndex=null!==(xt=null==ct?void 0:ct.contentTabIndex)&&void 0!==xt?xt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(ce){this._dynamicHeight=(0,oe.Ig)(ce)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ce){this._indexToSelect=(0,oe.su)(ce,null)}get animationDuration(){return this._animationDuration}set animationDuration(ce){this._animationDuration=/^\d+$/.test(ce+"")?ce+"ms":ce}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(ce){this._contentTabIndex=(0,oe.su)(ce,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(ce){const He=this._elementRef.nativeElement;He.classList.remove(`mat-background-${this.backgroundColor}`),ce&&He.classList.add(`mat-background-${ce}`),this._backgroundColor=ce}ngAfterContentChecked(){const ce=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=ce){const He=null==this._selectedIndex;if(!He){this.selectedTabChange.emit(this._createChangeEvent(ce));const ct=this._tabBodyWrapper.nativeElement;ct.style.minHeight=ct.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ct,bt)=>ct.isActive=bt===ce),He||(this.selectedIndexChange.emit(ce),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((He,ct)=>{He.position=ct-ce,null!=this._selectedIndex&&0==He.position&&!He.origin&&(He.origin=ce-this._selectedIndex)}),this._selectedIndex!==ce&&(this._selectedIndex=ce,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const He=this._tabs.toArray();for(let ct=0;ct{this._tabs.reset(ce.filter(He=>He._closestTabGroup===this||!He._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(ce){const He=this._tabHeader;He&&(He.focusIndex=ce)}_focusChanged(ce){this.focusChange.emit(this._createChangeEvent(ce))}_createChangeEvent(ce){const He=new h;return He.index=ce,this._tabs&&this._tabs.length&&(He.tab=this._tabs.toArray()[ce]),He}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,L.T)(...this._tabs.map(ce=>ce._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(ce){return Math.min(this._tabs.length-1,Math.max(ce||0,0))}_getTabLabelId(ce){return`mat-tab-label-${this._groupId}-${ce}`}_getTabContentId(ce){return`mat-tab-content-${this._groupId}-${ce}`}_setTabBodyWrapperHeight(ce){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const He=this._tabBodyWrapper.nativeElement;He.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(He.style.height=ce+"px")}_removeTabBodyWrapperHeight(){const ce=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=ce.clientHeight,ce.style.height="",this.animationDone.emit()}_handleClick(ce,He,ct){ce.disabled||(this.selectedIndex=He.focusIndex=ct)}_getTabIndex(ce,He){return ce.disabled?null:this.selectedIndex===He?0:-1}_tabFocusChanged(ce,He){ce&&"mouse"!==ce&&"touch"!==ce&&(this._tabHeader.focusIndex=He)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(ae,8),g.Y36(E.Qb,8))},k.\u0275dir=g.lG2({type:k,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[g.qOj]}),k})(),At=(()=>{class k extends We{constructor(ce,He,ct,bt){super(ce,He,ct,bt)}}return k.\u0275fac=function(ce){return new(ce||k)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(ae,8),g.Y36(E.Qb,8))},k.\u0275cmp=g.Xpm({type:k,selectors:[["mat-tab-group"]],contentQueries:function(ce,He,ct){if(1&ce&&g.Suo(ct,V,5),2&ce){let bt;g.iGM(bt=g.CRH())&&(He._allTabs=bt)}},viewQuery:function(ce,He){if(1&ce&&(g.Gf(ye,5),g.Gf(Be,5)),2&ce){let ct;g.iGM(ct=g.CRH())&&(He._tabBodyWrapper=ct.first),g.iGM(ct=g.CRH())&&(He._tabHeader=ct.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(ce,He){2&ce&&g.ekj("mat-tab-group-dynamic-height",He.dynamicHeight)("mat-tab-group-inverted-header","below"===He.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[g._Bn([{provide:H,useExisting:k}]),g.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(ce,He){1&ce&&(g.TgZ(0,"mat-tab-header",0,1),g.NdJ("indexFocused",function(bt){return He._focusChanged(bt)})("selectFocusedIndex",function(bt){return He.selectedIndex=bt}),g.YNc(2,be,5,15,"div",2),g.qZA(),g.TgZ(3,"div",3,4),g.YNc(5,Ie,1,10,"mat-tab-body",5),g.qZA()),2&ce&&(g.Q6J("selectedIndex",He.selectedIndex||0)("disableRipple",He.disableRipple)("disablePagination",He.disablePagination),g.xp6(2),g.Q6J("ngForOf",He._tabs),g.xp6(1),g.ekj("_mat-animation-noopable","NoopAnimations"===He._animationMode),g.xp6(2),g.Q6J("ngForOf",He._tabs))},directives:[a,Ae,w.sg,o,A.wG,e.kH,w.mk,w.O5,_.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),k})(),U=(()=>{class k{}return k.\u0275fac=function(ce){return new(ce||k)},k.\u0275mod=g.oAB({type:k}),k.\u0275inj=g.cJS({imports:[[w.ez,A.BQ,_.eL,A.si,b.Q8,e.rt],A.BQ]}),k})()},29772:($e,_e,p)=>{"use strict";p.d(_e,{gM:()=>Ve,AV:()=>Q});var e=p(92845),b=p(15664),_=p(69808),w=p(5e3),g=p(90508),A=p(53435),E=p(63191),C=p(91159),I=p(8929),P=p(36053),m=p(61221),L=p(56498),O=p(72986),G=p(31307),ne=p(80013),ge=p(24850),J=p(1059),Me=p(7625),oe=p(70925);const T=new Set;let j,Y=(()=>{class D{constructor(V){this._platform=V,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):te}matchMedia(V){return(this._platform.WEBKIT||this._platform.BLINK)&&function q(D){if(!T.has(D))try{j||(j=document.createElement("style"),j.setAttribute("type","text/css"),document.head.appendChild(j)),j.sheet&&(j.sheet.insertRule(`@media ${D} {body{ }}`,0),T.add(D))}catch(H){console.error(H)}}(V),this._matchMedia(V)}}return D.\u0275fac=function(V){return new(V||D)(w.LFG(oe.t4))},D.\u0275prov=w.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function te(D){return{matches:"all"===D||""===D,media:D,addListener:()=>{},removeListener:()=>{}}}let ue=(()=>{class D{constructor(V,xe){this._mediaMatcher=V,this._zone=xe,this._queries=new Map,this._destroySubject=new I.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(V){return de((0,E.Eq)(V)).some(Qe=>this._registerQuery(Qe).mql.matches)}observe(V){const Qe=de((0,E.Eq)(V)).map(Ae=>this._registerQuery(Ae).observable);let Te=(0,P.aj)(Qe);return Te=(0,m.z)(Te.pipe((0,O.q)(1)),Te.pipe((0,G.T)(1),(0,ne.b)(0))),Te.pipe((0,ge.U)(Ae=>{const ae={matches:!1,breakpoints:{}};return Ae.forEach(({matches:i,query:o})=>{ae.matches=ae.matches||i,ae.breakpoints[o]=i}),ae}))}_registerQuery(V){if(this._queries.has(V))return this._queries.get(V);const xe=this._mediaMatcher.matchMedia(V),Te={observable:new L.y(Ae=>{const ae=i=>this._zone.run(()=>Ae.next(i));return xe.addListener(ae),()=>{xe.removeListener(ae)}}).pipe((0,J.O)(xe),(0,ge.U)(({matches:Ae})=>({query:V,matches:Ae})),(0,Me.R)(this._destroySubject)),mql:xe};return this._queries.set(V,Te),Te}}return D.\u0275fac=function(V){return new(V||D)(w.LFG(Y),w.LFG(w.R0b))},D.\u0275prov=w.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();function de(D){return D.map(H=>H.split(",")).reduce((H,V)=>H.concat(V)).map(H=>H.trim())}var Ue=p(47429),ze=p(41777),le=p(50226);const je={tooltipState:(0,ze.X$)("state",[(0,ze.SB)("initial, void, hidden",(0,ze.oB)({opacity:0,transform:"scale(0)"})),(0,ze.SB)("visible",(0,ze.oB)({transform:"scale(1)"})),(0,ze.eR)("* => visible",(0,ze.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.F4)([(0,ze.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,ze.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,ze.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,ze.eR)("* => hidden",(0,ze.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,ze.oB)({opacity:0})))])},W="tooltip-panel",R=(0,oe.i$)({passive:!0}),Ie=new w.OlP("mat-tooltip-scroll-strategy"),Se={provide:Ie,deps:[e.aV],useFactory:function pe(D){return()=>D.scrollStrategies.reposition({scrollThrottle:20})}},Xe=new w.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Je(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let nt=(()=>{class D{constructor(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r){this._overlay=V,this._elementRef=xe,this._scrollDispatcher=Qe,this._viewContainerRef=Te,this._ngZone=Ae,this._platform=ae,this._ariaDescriber=i,this._focusMonitor=o,this._dir=l,this._defaultOptions=s,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new I.xQ,this._scrollStrategy=d,this._document=r,s&&(s.position&&(this.position=s.position),s.touchGestures&&(this.touchGestures=s.touchGestures)),l.change.pipe((0,Me.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var xe;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(xe=this._tooltipInstance)||void 0===xe||xe.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,E.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,E.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,E.su)(V)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,Me.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([xe,Qe])=>{V.removeEventListener(xe,Qe,R)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const xe=this._createOverlay();this._detach(),this._portal=this._portal||new Ue.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=xe.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const V=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),xe=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(V);return xe.positionChanges.pipe((0,Me.R)(this._destroyed)).subscribe(Qe=>{this._updateCurrentPositionClass(Qe.connectionPair),this._tooltipInstance&&Qe.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:xe,panelClass:`${this._cssClassPrefix}-${W}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,Me.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,Me.R)(this._destroyed)).subscribe(()=>{var Qe;return null===(Qe=this._tooltipInstance)||void 0===Qe?void 0:Qe._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,Me.R)(this._destroyed)).subscribe(Qe=>{this._isTooltipVisible()&&Qe.keyCode===C.hY&&!(0,C.Vb)(Qe)&&(Qe.preventDefault(),Qe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const xe=V.getConfig().positionStrategy,Qe=this._getOrigin(),Te=this._getOverlayPosition();xe.withPositions([this._addOffset(Object.assign(Object.assign({},Qe.main),Te.main)),this._addOffset(Object.assign(Object.assign({},Qe.fallback),Te.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,xe=this.position;let Qe;"above"==xe||"below"==xe?Qe={originX:"center",originY:"above"==xe?"top":"bottom"}:"before"==xe||"left"==xe&&V||"right"==xe&&!V?Qe={originX:"start",originY:"center"}:("after"==xe||"right"==xe&&V||"left"==xe&&!V)&&(Qe={originX:"end",originY:"center"});const{x:Te,y:Ae}=this._invertPosition(Qe.originX,Qe.originY);return{main:Qe,fallback:{originX:Te,originY:Ae}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,xe=this.position;let Qe;"above"==xe?Qe={overlayX:"center",overlayY:"bottom"}:"below"==xe?Qe={overlayX:"center",overlayY:"top"}:"before"==xe||"left"==xe&&V||"right"==xe&&!V?Qe={overlayX:"end",overlayY:"center"}:("after"==xe||"right"==xe&&V||"left"==xe&&!V)&&(Qe={overlayX:"start",overlayY:"center"});const{x:Te,y:Ae}=this._invertPosition(Qe.overlayX,Qe.overlayY);return{main:Qe,fallback:{overlayX:Te,overlayY:Ae}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,O.q)(1),(0,Me.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,xe){return"above"===this.position||"below"===this.position?"top"===xe?xe="bottom":"bottom"===xe&&(xe="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:xe}}_updateCurrentPositionClass(V){const{overlayY:xe,originX:Qe,originY:Te}=V;let Ae;if(Ae="center"===xe?this._dir&&"rtl"===this._dir.value?"end"===Qe?"left":"right":"start"===Qe?"left":"right":"bottom"===xe&&"top"===Te?"above":"below",Ae!==this._currentPosition){const ae=this._overlayRef;if(ae){const i=`${this._cssClassPrefix}-${W}-`;ae.removePanelClass(i+this._currentPosition),ae.addPanelClass(i+Ae)}this._currentPosition=Ae}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",()=>this.hide()],["wheel",xe=>this._wheelListener(xe)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const xe=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",xe],["touchcancel",xe])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([xe,Qe])=>{this._elementRef.nativeElement.addEventListener(xe,Qe,R)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const xe=this._document.elementFromPoint(V.clientX,V.clientY),Qe=this._elementRef.nativeElement;xe!==Qe&&!Qe.contains(xe)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const xe=this._elementRef.nativeElement,Qe=xe.style;("on"===V||"INPUT"!==xe.nodeName&&"TEXTAREA"!==xe.nodeName)&&(Qe.userSelect=Qe.msUserSelect=Qe.webkitUserSelect=Qe.MozUserSelect="none"),("on"===V||!xe.draggable)&&(Qe.webkitUserDrag="none"),Qe.touchAction="none",Qe.webkitTapHighlightColor="transparent"}}}return D.\u0275fac=function(V){w.$Z()},D.\u0275dir=w.lG2({type:D,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),D})(),Ve=(()=>{class D extends nt{constructor(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r){super(V,xe,Qe,Te,Ae,ae,i,o,d,l,s,r),this._tooltipComponent=z}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(e.aV),w.Y36(w.SBq),w.Y36(A.mF),w.Y36(w.s_b),w.Y36(w.R0b),w.Y36(oe.t4),w.Y36(b.$s),w.Y36(b.tE),w.Y36(Ie),w.Y36(le.Is,8),w.Y36(Xe,8),w.Y36(_.K0))},D.\u0275dir=w.lG2({type:D,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[w.qOj]}),D})(),X=(()=>{class D{constructor(V){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new I.xQ}show(V){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},V)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(V){const xe=V.toState;"hidden"===xe&&!this.isVisible()&&this._onHide.next(),("visible"===xe||"hidden"===xe)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(w.sBO))},D.\u0275dir=w.lG2({type:D}),D})(),z=(()=>{class D extends X{constructor(V,xe){super(V),this._breakpointObserver=xe,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return D.\u0275fac=function(V){return new(V||D)(w.Y36(w.sBO),w.Y36(ue))},D.\u0275cmp=w.Xpm({type:D,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,xe){2&V&&w.Udp("zoom","visible"===xe._visibility?1:null)},features:[w.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(V,xe){if(1&V&&(w.TgZ(0,"div",0),w.NdJ("@state.start",function(){return xe._animationStart()})("@state.done",function(Te){return xe._animationDone(Te)}),w.ALo(1,"async"),w._uU(2),w.qZA()),2&V){let Qe;w.ekj("mat-tooltip-handset",null==(Qe=w.lcZ(1,5,xe._isHandset))?null:Qe.matches),w.Q6J("ngClass",xe.tooltipClass)("@state",xe._visibility),w.xp6(2),w.Oqu(xe.message)}},directives:[_.mk],pipes:[_.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[je.tooltipState]},changeDetection:0}),D})(),Q=(()=>{class D{}return D.\u0275fac=function(V){return new(V||D)},D.\u0275mod=w.oAB({type:D}),D.\u0275inj=w.cJS({providers:[Se],imports:[[b.rt,_.ez,e.U8,g.BQ],g.BQ,A.ZD]}),D})()},90149:($e,_e,p)=>{"use strict";p.d(_e,{GZ:()=>O,gi:()=>ge,kc:()=>T,JZ:()=>Re,dp:()=>oe,WX:()=>j,uo:()=>m,fQ:()=>L,Ar:()=>ne,eu:()=>J});var e=p(28258),b=p(5e3),_=p(90508),w=p(63191),g=p(20449),A=p(591),E=p(36787),C=p(72986),I=p(24850);const P=(0,_.sb)((0,_.Id)(e.Hs));let m=(()=>{class Y extends P{constructor(te,ue,de){super(te,ue),this.tabIndex=Number(de)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(e._0),b.$8M("tabindex"))},Y.\u0275dir=b.lG2({type:Y,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[b._Bn([{provide:e.Hs,useExisting:Y}]),b.qOj]}),Y})(),L=(()=>{class Y extends e.rO{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[b._Bn([{provide:e.rO,useExisting:Y}]),b.qOj]}),Y})(),O=(()=>{class Y extends e.Xx{constructor(te,ue,de,Le){super(te,ue,de),this._disabled=!1,this.tabIndex=Number(Le)||0}get disabled(){return this._disabled}set disabled(te){this._disabled=(0,w.Ig)(te)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(te){this._tabIndex=null!=te?te:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.SBq),b.Y36(e._0),b.Y36(b.ZZ4),b.$8M("tabindex"))},Y.\u0275dir=b.lG2({type:Y,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[b._Bn([{provide:e.Xx,useExisting:Y},{provide:e.Hs,useExisting:Y},{provide:e.HI,useExisting:Y}]),b.qOj]}),Y})(),ne=(()=>{class Y{constructor(te,ue){this.viewContainer=te,this._node=ue}}return Y.\u0275fac=function(te){return new(te||Y)(b.Y36(b.s_b),b.Y36(e.HI,8))},Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeOutlet",""]],features:[b._Bn([{provide:e.cu,useExisting:Y}])]}),Y})(),ge=(()=>{class Y extends e._0{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275cmp=b.Xpm({type:Y,selectors:[["mat-tree"]],viewQuery:function(te,ue){if(1&te&&b.Gf(ne,7),2&te){let de;b.iGM(de=b.CRH())&&(ue._nodeOutlet=de.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[b._Bn([{provide:e._0,useExisting:Y}]),b.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(te,ue){1&te&&b.GkF(0,0)},directives:[ne],styles:[".mat-tree{display:block}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2}),Y})(),J=(()=>{class Y extends e.Ud{}return Y.\u0275fac=function(){let q;return function(ue){return(q||(q=b.n5z(Y)))(ue||Y)}}(),Y.\u0275dir=b.lG2({type:Y,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[b._Bn([{provide:e.Ud,useExisting:Y}]),b.qOj]}),Y})(),oe=(()=>{class Y{}return Y.\u0275fac=function(te){return new(te||Y)},Y.\u0275mod=b.oAB({type:Y}),Y.\u0275inj=b.cJS({imports:[[e.nZ,_.BQ],_.BQ]}),Y})();class Re{constructor(q,te,ue,de){this.transformFunction=q,this.getLevel=te,this.isExpandable=ue,this.getChildren=de}_flattenNode(q,te,ue,de){const Le=this.transformFunction(q,te);if(ue.push(Le),this.isExpandable(Le)){const Ue=this.getChildren(q);Ue&&(Array.isArray(Ue)?this._flattenChildren(Ue,te,ue,de):Ue.pipe((0,C.q)(1)).subscribe(ze=>{this._flattenChildren(ze,te,ue,de)}))}return ue}_flattenChildren(q,te,ue,de){q.forEach((Le,Ue)=>{let ze=de.slice();ze.push(Ue!=q.length-1),this._flattenNode(Le,te+1,ue,ze)})}flattenNodes(q){let te=[];return q.forEach(ue=>this._flattenNode(ue,0,te,[])),te}expandFlattenedNodes(q,te){let ue=[],de=[];return de[0]=!0,q.forEach(Le=>{let Ue=!0;for(let ze=0;ze<=this.getLevel(Le);ze++)Ue=Ue&&de[ze];Ue&&ue.push(Le),this.isExpandable(Le)&&(de[this.getLevel(Le)+1]=te.isExpanded(Le))}),ue}}class T extends g.o2{constructor(q,te,ue){super(),this._treeControl=q,this._treeFlattener=te,this._flattenedData=new A.X([]),this._expandedData=new A.X([]),this._data=new A.X([]),ue&&(this.data=ue)}get data(){return this._data.value}set data(q){this._data.next(q),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}connect(q){return(0,E.T)(q.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe((0,I.U)(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}}class j extends g.o2{constructor(){super(...arguments),this._data=new A.X([])}get data(){return this._data.value}set data(q){this._data.next(q)}connect(q){return(0,E.T)(q.viewChange,this._data).pipe((0,I.U)(()=>this.data))}disconnect(){}}},76360:($e,_e,p)=>{"use strict";p.d(_e,{Qb:()=>yn,PW:()=>zn});var e=p(5e3),b=p(22313),_=p(41777);function w(){return"undefined"!=typeof window&&void 0!==window.document}function g(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function A(ft){switch(ft.length){case 0:return new _.ZN;case 1:return ft[0];default:return new _.ZE(ft)}}function E(ft,N,Z,Pe,ht={},Ct={}){const ee=[],Oe=[];let he=-1,tt=null;if(Pe.forEach(yt=>{const Gt=yt.offset,Wt=Gt==he,ii=Wt&&tt||{};Object.keys(yt).forEach(di=>{let ui=di,_i=yt[di];if("offset"!==di)switch(ui=N.normalizePropertyName(ui,ee),_i){case _.k1:_i=ht[di];break;case _.l3:_i=Ct[di];break;default:_i=N.normalizeStyleValue(di,ui,_i,ee)}ii[ui]=_i}),Wt||Oe.push(ii),tt=ii,he=Gt}),ee.length){const yt="\n - ";throw new Error(`Unable to animate due to the following errors:${yt}${ee.join(yt)}`)}return Oe}function C(ft,N,Z,Pe){switch(N){case"start":ft.onStart(()=>Pe(Z&&I(Z,"start",ft)));break;case"done":ft.onDone(()=>Pe(Z&&I(Z,"done",ft)));break;case"destroy":ft.onDestroy(()=>Pe(Z&&I(Z,"destroy",ft)))}}function I(ft,N,Z){const Pe=Z.totalTime,Ct=P(ft.element,ft.triggerName,ft.fromState,ft.toState,N||ft.phaseName,null==Pe?ft.totalTime:Pe,!!Z.disabled),ee=ft._data;return null!=ee&&(Ct._data=ee),Ct}function P(ft,N,Z,Pe,ht="",Ct=0,ee){return{element:ft,triggerName:N,fromState:Z,toState:Pe,phaseName:ht,totalTime:Ct,disabled:!!ee}}function m(ft,N,Z){let Pe;return ft instanceof Map?(Pe=ft.get(N),Pe||ft.set(N,Pe=Z)):(Pe=ft[N],Pe||(Pe=ft[N]=Z)),Pe}function L(ft){const N=ft.indexOf(":");return[ft.substring(1,N),ft.substr(N+1)]}let O=(ft,N)=>!1,G=(ft,N,Z)=>[];(g()||"undefined"!=typeof Element)&&(O=w()?(ft,N)=>{for(;N&&N!==document.documentElement;){if(N===ft)return!0;N=N.parentNode||N.host}return!1}:(ft,N)=>ft.contains(N),G=(ft,N,Z)=>{if(Z)return Array.from(ft.querySelectorAll(N));const Pe=ft.querySelector(N);return Pe?[Pe]:[]});let J=null,Me=!1;function oe(ft){J||(J=function Re(){return"undefined"!=typeof document?document.body:null}()||{},Me=!!J.style&&"WebkitAppearance"in J.style);let N=!0;return J.style&&!function ge(ft){return"ebkit"==ft.substring(1,6)}(ft)&&(N=ft in J.style,!N&&Me&&(N="Webkit"+ft.charAt(0).toUpperCase()+ft.substr(1)in J.style)),N}const T=O,j=G;let q=(()=>{class ft{validateStyleProperty(Z){return oe(Z)}matchesElement(Z,Pe){return!1}containsElement(Z,Pe){return T(Z,Pe)}query(Z,Pe,ht){return j(Z,Pe,ht)}computeStyle(Z,Pe,ht){return ht||""}animate(Z,Pe,ht,Ct,ee,Oe=[],he){return new _.ZN(ht,Ct)}}return ft.\u0275fac=function(Z){return new(Z||ft)},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})(),te=(()=>{class ft{}return ft.NOOP=new q,ft})();const Ue="ng-enter",ze="ng-leave",le="ng-trigger",je=".ng-trigger",ye="ng-animating",Be=".ng-animating";function W(ft){if("number"==typeof ft)return ft;const N=ft.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:R(parseFloat(N[1]),N[2])}function R(ft,N){return"s"===N?1e3*ft:ft}function me(ft,N,Z){return ft.hasOwnProperty("duration")?ft:function be(ft,N,Z){let ht,Ct=0,ee="";if("string"==typeof ft){const Oe=ft.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Oe)return N.push(`The provided timing value "${ft}" is invalid.`),{duration:0,delay:0,easing:""};ht=R(parseFloat(Oe[1]),Oe[2]);const he=Oe[3];null!=he&&(Ct=R(parseFloat(he),Oe[4]));const tt=Oe[5];tt&&(ee=tt)}else ht=ft;if(!Z){let Oe=!1,he=N.length;ht<0&&(N.push("Duration values below 0 are not allowed for this animation step."),Oe=!0),Ct<0&&(N.push("Delay values below 0 are not allowed for this animation step."),Oe=!0),Oe&&N.splice(he,0,`The provided timing value "${ft}" is invalid.`)}return{duration:ht,delay:Ct,easing:ee}}(ft,N,Z)}function Ie(ft,N={}){return Object.keys(ft).forEach(Z=>{N[Z]=ft[Z]}),N}function Se(ft,N,Z={}){if(N)for(let Pe in ft)Z[Pe]=ft[Pe];else Ie(ft,Z);return Z}function Xe(ft,N,Z){return Z?N+":"+Z+";":""}function Je(ft){let N="";for(let Z=0;Z{const ht=Qe(Pe);Z&&!Z.hasOwnProperty(Pe)&&(Z[Pe]=ft.style[ht]),ft.style[ht]=N[Pe]}),g()&&Je(ft))}function Ve(ft,N){ft.style&&(Object.keys(N).forEach(Z=>{const Pe=Qe(Z);ft.style[Pe]=""}),g()&&Je(ft))}function X(ft){return Array.isArray(ft)?1==ft.length?ft[0]:(0,_.vP)(ft):ft}const Q=new RegExp("{{\\s*(.+?)\\s*}}","g");function D(ft){let N=[];if("string"==typeof ft){let Z;for(;Z=Q.exec(ft);)N.push(Z[1]);Q.lastIndex=0}return N}function H(ft,N,Z){const Pe=ft.toString(),ht=Pe.replace(Q,(Ct,ee)=>{let Oe=N[ee];return N.hasOwnProperty(ee)||(Z.push(`Please provide a value for the animation param ${ee}`),Oe=""),Oe.toString()});return ht==Pe?ft:ht}function V(ft){const N=[];let Z=ft.next();for(;!Z.done;)N.push(Z.value),Z=ft.next();return N}const xe=/-+([a-z0-9])/g;function Qe(ft){return ft.replace(xe,(...N)=>N[1].toUpperCase())}function Te(ft){return ft.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function i(ft,N,Z){switch(N.type){case 7:return ft.visitTrigger(N,Z);case 0:return ft.visitState(N,Z);case 1:return ft.visitTransition(N,Z);case 2:return ft.visitSequence(N,Z);case 3:return ft.visitGroup(N,Z);case 4:return ft.visitAnimate(N,Z);case 5:return ft.visitKeyframes(N,Z);case 6:return ft.visitStyle(N,Z);case 8:return ft.visitReference(N,Z);case 9:return ft.visitAnimateChild(N,Z);case 10:return ft.visitAnimateRef(N,Z);case 11:return ft.visitQuery(N,Z);case 12:return ft.visitStagger(N,Z);default:throw new Error(`Unable to resolve animation metadata node #${N.type}`)}}function o(ft,N){return window.getComputedStyle(ft)[N]}const d="*";function l(ft,N){const Z=[];return"string"==typeof ft?ft.split(/\s*,\s*/).forEach(Pe=>function s(ft,N,Z){if(":"==ft[0]){const he=function r(ft,N){switch(ft){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(Z,Pe)=>parseFloat(Pe)>parseFloat(Z);case":decrement":return(Z,Pe)=>parseFloat(Pe) *"}}(ft,Z);if("function"==typeof he)return void N.push(he);ft=he}const Pe=ft.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Pe||Pe.length<4)return Z.push(`The provided transition expression "${ft}" is not supported`),N;const ht=Pe[1],Ct=Pe[2],ee=Pe[3];N.push(a(ht,ee));"<"==Ct[0]&&!(ht==d&&ee==d)&&N.push(a(ee,ht))}(Pe,Z,N)):Z.push(ft),Z}const t=new Set(["true","1"]),n=new Set(["false","0"]);function a(ft,N){const Z=t.has(ft)||n.has(ft),Pe=t.has(N)||n.has(N);return(ht,Ct)=>{let ee=ft==d||ft==ht,Oe=N==d||N==Ct;return!ee&&Z&&"boolean"==typeof ht&&(ee=ht?t.has(ft):n.has(ft)),!Oe&&Pe&&"boolean"==typeof Ct&&(Oe=Ct?t.has(N):n.has(N)),ee&&Oe}}const c=":self",h=new RegExp(`s*${c}s*,?`,"g");function x(ft,N,Z){return new At(ft).build(N,Z)}class At{constructor(N){this._driver=N}build(N,Z){const Pe=new Ut(Z);return this._resetContextStyleTimingState(Pe),i(this,X(N),Pe)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles={},N.collectedStyles[""]={},N.currentTime=0}visitTrigger(N,Z){let Pe=Z.queryCount=0,ht=Z.depCount=0;const Ct=[],ee=[];return"@"==N.name.charAt(0)&&Z.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),N.definitions.forEach(Oe=>{if(this._resetContextStyleTimingState(Z),0==Oe.type){const he=Oe,tt=he.name;tt.toString().split(/\s*,\s*/).forEach(yt=>{he.name=yt,Ct.push(this.visitState(he,Z))}),he.name=tt}else if(1==Oe.type){const he=this.visitTransition(Oe,Z);Pe+=he.queryCount,ht+=he.depCount,ee.push(he)}else Z.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:N.name,states:Ct,transitions:ee,queryCount:Pe,depCount:ht,options:null}}visitState(N,Z){const Pe=this.visitStyle(N.styles,Z),ht=N.options&&N.options.params||null;if(Pe.containsDynamicStyles){const Ct=new Set,ee=ht||{};if(Pe.styles.forEach(Oe=>{if(Lt(Oe)){const he=Oe;Object.keys(he).forEach(tt=>{D(he[tt]).forEach(yt=>{ee.hasOwnProperty(yt)||Ct.add(yt)})})}}),Ct.size){const Oe=V(Ct.values());Z.errors.push(`state("${N.name}", ...) must define default values for all the following style substitutions: ${Oe.join(", ")}`)}}return{type:0,name:N.name,style:Pe,options:ht?{params:ht}:null}}visitTransition(N,Z){Z.queryCount=0,Z.depCount=0;const Pe=i(this,X(N.animation),Z);return{type:1,matchers:l(N.expr,Z.errors),animation:Pe,queryCount:Z.queryCount,depCount:Z.depCount,options:Ge(N.options)}}visitSequence(N,Z){return{type:2,steps:N.steps.map(Pe=>i(this,Pe,Z)),options:Ge(N.options)}}visitGroup(N,Z){const Pe=Z.currentTime;let ht=0;const Ct=N.steps.map(ee=>{Z.currentTime=Pe;const Oe=i(this,ee,Z);return ht=Math.max(ht,Z.currentTime),Oe});return Z.currentTime=ht,{type:3,steps:Ct,options:Ge(N.options)}}visitAnimate(N,Z){const Pe=function Ee(ft,N){let Z=null;if(ft.hasOwnProperty("duration"))Z=ft;else if("number"==typeof ft)return U(me(ft,N).duration,0,"");const Pe=ft;if(Pe.split(/\s+/).some(Ct=>"{"==Ct.charAt(0)&&"{"==Ct.charAt(1))){const Ct=U(0,0,"");return Ct.dynamic=!0,Ct.strValue=Pe,Ct}return Z=Z||me(Pe,N),U(Z.duration,Z.delay,Z.easing)}(N.timings,Z.errors);Z.currentAnimateTimings=Pe;let ht,Ct=N.styles?N.styles:(0,_.oB)({});if(5==Ct.type)ht=this.visitKeyframes(Ct,Z);else{let ee=N.styles,Oe=!1;if(!ee){Oe=!0;const tt={};Pe.easing&&(tt.easing=Pe.easing),ee=(0,_.oB)(tt)}Z.currentTime+=Pe.duration+Pe.delay;const he=this.visitStyle(ee,Z);he.isEmptyStep=Oe,ht=he}return Z.currentAnimateTimings=null,{type:4,timings:Pe,style:ht,options:null}}visitStyle(N,Z){const Pe=this._makeStyleAst(N,Z);return this._validateStyleAst(Pe,Z),Pe}_makeStyleAst(N,Z){const Pe=[];Array.isArray(N.styles)?N.styles.forEach(ee=>{"string"==typeof ee?ee==_.l3?Pe.push(ee):Z.errors.push(`The provided style string value ${ee} is not allowed.`):Pe.push(ee)}):Pe.push(N.styles);let ht=!1,Ct=null;return Pe.forEach(ee=>{if(Lt(ee)){const Oe=ee,he=Oe.easing;if(he&&(Ct=he,delete Oe.easing),!ht)for(let tt in Oe)if(Oe[tt].toString().indexOf("{{")>=0){ht=!0;break}}}),{type:6,styles:Pe,easing:Ct,offset:N.offset,containsDynamicStyles:ht,options:null}}_validateStyleAst(N,Z){const Pe=Z.currentAnimateTimings;let ht=Z.currentTime,Ct=Z.currentTime;Pe&&Ct>0&&(Ct-=Pe.duration+Pe.delay),N.styles.forEach(ee=>{"string"!=typeof ee&&Object.keys(ee).forEach(Oe=>{if(!this._driver.validateStyleProperty(Oe))return void Z.errors.push(`The provided animation property "${Oe}" is not a supported CSS property for animations`);const he=Z.collectedStyles[Z.currentQuerySelector],tt=he[Oe];let yt=!0;tt&&(Ct!=ht&&Ct>=tt.startTime&&ht<=tt.endTime&&(Z.errors.push(`The CSS property "${Oe}" that exists between the times of "${tt.startTime}ms" and "${tt.endTime}ms" is also being animated in a parallel animation between the times of "${Ct}ms" and "${ht}ms"`),yt=!1),Ct=tt.startTime),yt&&(he[Oe]={startTime:Ct,endTime:ht}),Z.options&&function z(ft,N,Z){const Pe=N.params||{},ht=D(ft);ht.length&&ht.forEach(Ct=>{Pe.hasOwnProperty(Ct)||Z.push(`Unable to resolve the local animation param ${Ct} in the given list of values`)})}(ee[Oe],Z.options,Z.errors)})})}visitKeyframes(N,Z){const Pe={type:5,styles:[],options:null};if(!Z.currentAnimateTimings)return Z.errors.push("keyframes() must be placed inside of a call to animate()"),Pe;let Ct=0;const ee=[];let Oe=!1,he=!1,tt=0;const yt=N.steps.map(Ti=>{const Hi=this._makeStyleAst(Ti,Z);let Ne=null!=Hi.offset?Hi.offset:function mt(ft){if("string"==typeof ft)return null;let N=null;if(Array.isArray(ft))ft.forEach(Z=>{if(Lt(Z)&&Z.hasOwnProperty("offset")){const Pe=Z;N=parseFloat(Pe.offset),delete Pe.offset}});else if(Lt(ft)&&ft.hasOwnProperty("offset")){const Z=ft;N=parseFloat(Z.offset),delete Z.offset}return N}(Hi.styles),De=0;return null!=Ne&&(Ct++,De=Hi.offset=Ne),he=he||De<0||De>1,Oe=Oe||De0&&Ct{const Ne=Wt>0?Hi==ii?1:Wt*Hi:ee[Hi],De=Ne*_i;Z.currentTime=di+ui.delay+De,ui.duration=De,this._validateStyleAst(Ti,Z),Ti.offset=Ne,Pe.styles.push(Ti)}),Pe}visitReference(N,Z){return{type:8,animation:i(this,X(N.animation),Z),options:Ge(N.options)}}visitAnimateChild(N,Z){return Z.depCount++,{type:9,options:Ge(N.options)}}visitAnimateRef(N,Z){return{type:10,animation:this.visitReference(N.animation,Z),options:Ge(N.options)}}visitQuery(N,Z){const Pe=Z.currentQuerySelector,ht=N.options||{};Z.queryCount++,Z.currentQuery=N;const[Ct,ee]=function Ht(ft){const N=!!ft.split(/\s*,\s*/).find(Z=>Z==c);return N&&(ft=ft.replace(h,"")),ft=ft.replace(/@\*/g,je).replace(/@\w+/g,Z=>je+"-"+Z.substr(1)).replace(/:animating/g,Be),[ft,N]}(N.selector);Z.currentQuerySelector=Pe.length?Pe+" "+Ct:Ct,m(Z.collectedStyles,Z.currentQuerySelector,{});const Oe=i(this,X(N.animation),Z);return Z.currentQuery=null,Z.currentQuerySelector=Pe,{type:11,selector:Ct,limit:ht.limit||0,optional:!!ht.optional,includeSelf:ee,animation:Oe,originalSelector:N.selector,options:Ge(N.options)}}visitStagger(N,Z){Z.currentQuery||Z.errors.push("stagger() can only be used inside of query()");const Pe="full"===N.timings?{duration:0,delay:0,easing:"full"}:me(N.timings,Z.errors,!0);return{type:12,animation:i(this,X(N.animation),Z),timings:Pe,options:null}}}class Ut{constructor(N){this.errors=N,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Lt(ft){return!Array.isArray(ft)&&"object"==typeof ft}function Ge(ft){return ft?(ft=Ie(ft)).params&&(ft.params=function lt(ft){return ft?Ie(ft):null}(ft.params)):ft={},ft}function U(ft,N,Z){return{duration:ft,delay:N,easing:Z}}function k(ft,N,Z,Pe,ht,Ct,ee=null,Oe=!1){return{type:1,element:ft,keyframes:N,preStyleProps:Z,postStyleProps:Pe,duration:ht,delay:Ct,totalTime:ht+Ct,easing:ee,subTimeline:Oe}}class ie{constructor(){this._map=new Map}get(N){return this._map.get(N)||[]}append(N,Z){let Pe=this._map.get(N);Pe||this._map.set(N,Pe=[]),Pe.push(...Z)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const ct=new RegExp(":enter","g"),xt=new RegExp(":leave","g");function Yt(ft,N,Z,Pe,ht,Ct={},ee={},Oe,he,tt=[]){return(new It).buildKeyframes(ft,N,Z,Pe,ht,Ct,ee,Oe,he,tt)}class It{buildKeyframes(N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt=[]){tt=tt||new ie;const Gt=new Et(N,Z,tt,ht,Ct,yt,[]);Gt.options=he,Gt.currentTimeline.setStyles([ee],null,Gt.errors,he),i(this,Pe,Gt);const Wt=Gt.timelines.filter(ii=>ii.containsAnimation());if(Object.keys(Oe).length){let ii;for(let di=Wt.length-1;di>=0;di--){const ui=Wt[di];if(ui.element===Z){ii=ui;break}}ii&&!ii.allowOnlyTimelineStyles()&&ii.setStyles([Oe],null,Gt.errors,he)}return Wt.length?Wt.map(ii=>ii.buildKeyframes()):[k(Z,[],[],[],0,0,"",!1)]}visitTrigger(N,Z){}visitState(N,Z){}visitTransition(N,Z){}visitAnimateChild(N,Z){const Pe=Z.subInstructions.get(Z.element);if(Pe){const ht=Z.createSubContext(N.options),Ct=Z.currentTimeline.currentTime,ee=this._visitSubInstructions(Pe,ht,ht.options);Ct!=ee&&Z.transformIntoNewTimeline(ee)}Z.previousNode=N}visitAnimateRef(N,Z){const Pe=Z.createSubContext(N.options);Pe.transformIntoNewTimeline(),this.visitReference(N.animation,Pe),Z.transformIntoNewTimeline(Pe.currentTimeline.currentTime),Z.previousNode=N}_visitSubInstructions(N,Z,Pe){let Ct=Z.currentTimeline.currentTime;const ee=null!=Pe.duration?W(Pe.duration):null,Oe=null!=Pe.delay?W(Pe.delay):null;return 0!==ee&&N.forEach(he=>{const tt=Z.appendInstructionToTimeline(he,ee,Oe);Ct=Math.max(Ct,tt.duration+tt.delay)}),Ct}visitReference(N,Z){Z.updateOptions(N.options,!0),i(this,N.animation,Z),Z.previousNode=N}visitSequence(N,Z){const Pe=Z.subContextCount;let ht=Z;const Ct=N.options;if(Ct&&(Ct.params||Ct.delay)&&(ht=Z.createSubContext(Ct),ht.transformIntoNewTimeline(),null!=Ct.delay)){6==ht.previousNode.type&&(ht.currentTimeline.snapshotCurrentStyles(),ht.previousNode=Rt);const ee=W(Ct.delay);ht.delayNextStep(ee)}N.steps.length&&(N.steps.forEach(ee=>i(this,ee,ht)),ht.currentTimeline.applyStylesToKeyframe(),ht.subContextCount>Pe&&ht.transformIntoNewTimeline()),Z.previousNode=N}visitGroup(N,Z){const Pe=[];let ht=Z.currentTimeline.currentTime;const Ct=N.options&&N.options.delay?W(N.options.delay):0;N.steps.forEach(ee=>{const Oe=Z.createSubContext(N.options);Ct&&Oe.delayNextStep(Ct),i(this,ee,Oe),ht=Math.max(ht,Oe.currentTimeline.currentTime),Pe.push(Oe.currentTimeline)}),Pe.forEach(ee=>Z.currentTimeline.mergeTimelineCollectedStyles(ee)),Z.transformIntoNewTimeline(ht),Z.previousNode=N}_visitTiming(N,Z){if(N.dynamic){const Pe=N.strValue;return me(Z.params?H(Pe,Z.params,Z.errors):Pe,Z.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,Z){const Pe=Z.currentAnimateTimings=this._visitTiming(N.timings,Z),ht=Z.currentTimeline;Pe.delay&&(Z.incrementTime(Pe.delay),ht.snapshotCurrentStyles());const Ct=N.style;5==Ct.type?this.visitKeyframes(Ct,Z):(Z.incrementTime(Pe.duration),this.visitStyle(Ct,Z),ht.applyStylesToKeyframe()),Z.currentAnimateTimings=null,Z.previousNode=N}visitStyle(N,Z){const Pe=Z.currentTimeline,ht=Z.currentAnimateTimings;!ht&&Pe.getCurrentStyleProperties().length&&Pe.forwardFrame();const Ct=ht&&ht.easing||N.easing;N.isEmptyStep?Pe.applyEmptyStep(Ct):Pe.setStyles(N.styles,Ct,Z.errors,Z.options),Z.previousNode=N}visitKeyframes(N,Z){const Pe=Z.currentAnimateTimings,ht=Z.currentTimeline.duration,Ct=Pe.duration,Oe=Z.createSubContext().currentTimeline;Oe.easing=Pe.easing,N.styles.forEach(he=>{Oe.forwardTime((he.offset||0)*Ct),Oe.setStyles(he.styles,he.easing,Z.errors,Z.options),Oe.applyStylesToKeyframe()}),Z.currentTimeline.mergeTimelineCollectedStyles(Oe),Z.transformIntoNewTimeline(ht+Ct),Z.previousNode=N}visitQuery(N,Z){const Pe=Z.currentTimeline.currentTime,ht=N.options||{},Ct=ht.delay?W(ht.delay):0;Ct&&(6===Z.previousNode.type||0==Pe&&Z.currentTimeline.getCurrentStyleProperties().length)&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=Rt);let ee=Pe;const Oe=Z.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!ht.optional,Z.errors);Z.currentQueryTotal=Oe.length;let he=null;Oe.forEach((tt,yt)=>{Z.currentQueryIndex=yt;const Gt=Z.createSubContext(N.options,tt);Ct&&Gt.delayNextStep(Ct),tt===Z.element&&(he=Gt.currentTimeline),i(this,N.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),ee=Math.max(ee,Gt.currentTimeline.currentTime)}),Z.currentQueryIndex=0,Z.currentQueryTotal=0,Z.transformIntoNewTimeline(ee),he&&(Z.currentTimeline.mergeTimelineCollectedStyles(he),Z.currentTimeline.snapshotCurrentStyles()),Z.previousNode=N}visitStagger(N,Z){const Pe=Z.parentContext,ht=Z.currentTimeline,Ct=N.timings,ee=Math.abs(Ct.duration),Oe=ee*(Z.currentQueryTotal-1);let he=ee*Z.currentQueryIndex;switch(Ct.duration<0?"reverse":Ct.easing){case"reverse":he=Oe-he;break;case"full":he=Pe.currentStaggerTime}const yt=Z.currentTimeline;he&&yt.delayNextStep(he);const Gt=yt.currentTime;i(this,N.animation,Z),Z.previousNode=N,Pe.currentStaggerTime=ht.currentTime-Gt+(ht.startTime-Pe.currentTimeline.startTime)}}const Rt={};class Et{constructor(N,Z,Pe,ht,Ct,ee,Oe,he){this._driver=N,this.element=Z,this.subInstructions=Pe,this._enterClassName=ht,this._leaveClassName=Ct,this.errors=ee,this.timelines=Oe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=he||new Bt(this._driver,Z,0),Oe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,Z){if(!N)return;const Pe=N;let ht=this.options;null!=Pe.duration&&(ht.duration=W(Pe.duration)),null!=Pe.delay&&(ht.delay=W(Pe.delay));const Ct=Pe.params;if(Ct){let ee=ht.params;ee||(ee=this.options.params={}),Object.keys(Ct).forEach(Oe=>{(!Z||!ee.hasOwnProperty(Oe))&&(ee[Oe]=H(Ct[Oe],ee,this.errors))})}}_copyOptions(){const N={};if(this.options){const Z=this.options.params;if(Z){const Pe=N.params={};Object.keys(Z).forEach(ht=>{Pe[ht]=Z[ht]})}}return N}createSubContext(N=null,Z,Pe){const ht=Z||this.element,Ct=new Et(this._driver,ht,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(ht,Pe||0));return Ct.previousNode=this.previousNode,Ct.currentAnimateTimings=this.currentAnimateTimings,Ct.options=this._copyOptions(),Ct.updateOptions(N),Ct.currentQueryIndex=this.currentQueryIndex,Ct.currentQueryTotal=this.currentQueryTotal,Ct.parentContext=this,this.subContextCount++,Ct}transformIntoNewTimeline(N){return this.previousNode=Rt,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,Z,Pe){const ht={duration:null!=Z?Z:N.duration,delay:this.currentTimeline.currentTime+(null!=Pe?Pe:0)+N.delay,easing:""},Ct=new Jt(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,ht,N.stretchStartingKeyframe);return this.timelines.push(Ct),ht}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,Z,Pe,ht,Ct,ee){let Oe=[];if(ht&&Oe.push(this.element),N.length>0){N=(N=N.replace(ct,"."+this._enterClassName)).replace(xt,"."+this._leaveClassName);let tt=this._driver.query(this.element,N,1!=Pe);0!==Pe&&(tt=Pe<0?tt.slice(tt.length+Pe,tt.length):tt.slice(0,Pe)),Oe.push(...tt)}return!Ct&&0==Oe.length&&ee.push(`\`query("${Z}")\` returned zero elements. (Use \`query("${Z}", { optional: true })\` if you wish to allow this.)`),Oe}}class Bt{constructor(N,Z,Pe,ht){this._driver=N,this.element=Z,this.startTime=Pe,this._elementTimelineStylesLookup=ht,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(Z),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(Z,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const Z=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||Z?(this.forwardTime(this.currentTime+N),Z&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,Z){return this.applyStylesToKeyframe(),new Bt(this._driver,N,Z||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,Z){this._localTimelineStyles[N]=Z,this._globalTimelineStyles[N]=Z,this._styleSummary[N]={time:this.currentTime,value:Z}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&(this._previousKeyframe.easing=N),Object.keys(this._globalTimelineStyles).forEach(Z=>{this._backFill[Z]=this._globalTimelineStyles[Z]||_.l3,this._currentKeyframe[Z]=_.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,Z,Pe,ht){Z&&(this._previousKeyframe.easing=Z);const Ct=ht&&ht.params||{},ee=function mi(ft,N){const Z={};let Pe;return ft.forEach(ht=>{"*"===ht?(Pe=Pe||Object.keys(N),Pe.forEach(Ct=>{Z[Ct]=_.l3})):Se(ht,!1,Z)}),Z}(N,this._globalTimelineStyles);Object.keys(ee).forEach(Oe=>{const he=H(ee[Oe],Ct,Pe);this._pendingStyles[Oe]=he,this._localTimelineStyles.hasOwnProperty(Oe)||(this._backFill[Oe]=this._globalTimelineStyles.hasOwnProperty(Oe)?this._globalTimelineStyles[Oe]:_.l3),this._updateStyle(Oe,he)})}applyStylesToKeyframe(){const N=this._pendingStyles,Z=Object.keys(N);0!=Z.length&&(this._pendingStyles={},Z.forEach(Pe=>{this._currentKeyframe[Pe]=N[Pe]}),Object.keys(this._localTimelineStyles).forEach(Pe=>{this._currentKeyframe.hasOwnProperty(Pe)||(this._currentKeyframe[Pe]=this._localTimelineStyles[Pe])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(N=>{const Z=this._localTimelineStyles[N];this._pendingStyles[N]=Z,this._updateStyle(N,Z)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let Z in this._currentKeyframe)N.push(Z);return N}mergeTimelineCollectedStyles(N){Object.keys(N._styleSummary).forEach(Z=>{const Pe=this._styleSummary[Z],ht=N._styleSummary[Z];(!Pe||ht.time>Pe.time)&&this._updateStyle(Z,ht.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,Z=new Set,Pe=1===this._keyframes.size&&0===this.duration;let ht=[];this._keyframes.forEach((Oe,he)=>{const tt=Se(Oe,!0);Object.keys(tt).forEach(yt=>{const Gt=tt[yt];Gt==_.k1?N.add(yt):Gt==_.l3&&Z.add(yt)}),Pe||(tt.offset=he/this.duration),ht.push(tt)});const Ct=N.size?V(N.values()):[],ee=Z.size?V(Z.values()):[];if(Pe){const Oe=ht[0],he=Ie(Oe);Oe.offset=0,he.offset=1,ht=[Oe,he]}return k(this.element,ht,Ct,ee,this.duration,this.startTime,this.easing,!1)}}class Jt extends Bt{constructor(N,Z,Pe,ht,Ct,ee,Oe=!1){super(N,Z,ee.delay),this.keyframes=Pe,this.preStyleProps=ht,this.postStyleProps=Ct,this._stretchStartingKeyframe=Oe,this.timings={duration:ee.duration,delay:ee.delay,easing:ee.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:Z,duration:Pe,easing:ht}=this.timings;if(this._stretchStartingKeyframe&&Z){const Ct=[],ee=Pe+Z,Oe=Z/ee,he=Se(N[0],!1);he.offset=0,Ct.push(he);const tt=Se(N[0],!1);tt.offset=ai(Oe),Ct.push(tt);const yt=N.length-1;for(let Gt=1;Gt<=yt;Gt++){let Wt=Se(N[Gt],!1);Wt.offset=ai((Z+Wt.offset*Pe)/ee),Ct.push(Wt)}Pe=ee,Z=0,ht="",N=Ct}return k(this.element,N,this.preStyleProps,this.postStyleProps,Pe,Z,ht,!0)}}function ai(ft,N=3){const Z=Math.pow(10,N-1);return Math.round(ft*Z)/Z}class yi{}class gn extends yi{normalizePropertyName(N,Z){return Qe(N)}normalizeStyleValue(N,Z,Pe,ht){let Ct="";const ee=Pe.toString().trim();if(cn[Z]&&0!==Pe&&"0"!==Pe)if("number"==typeof Pe)Ct="px";else{const Oe=Pe.match(/^[+-]?[\d\.]+([a-z]*)$/);Oe&&0==Oe[1].length&&ht.push(`Please provide a CSS unit value for ${N}:${Pe}`)}return ee+Ct}}const cn=(()=>function Ki(ft){const N={};return ft.forEach(Z=>N[Z]=!0),N}("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".split(",")))();function Tn(ft,N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt,Gt,Wt){return{type:0,element:ft,triggerName:N,isRemovalTransition:ht,fromState:Z,fromStyles:Ct,toState:Pe,toStyles:ee,timelines:Oe,queriedElements:he,preStyleProps:tt,postStyleProps:yt,totalTime:Gt,errors:Wt}}const rn={};class st{constructor(N,Z,Pe){this._triggerName=N,this.ast=Z,this._stateStyles=Pe}match(N,Z,Pe,ht){return function St(ft,N,Z,Pe,ht){return ft.some(Ct=>Ct(N,Z,Pe,ht))}(this.ast.matchers,N,Z,Pe,ht)}buildStyles(N,Z,Pe){const ht=this._stateStyles["*"],Ct=this._stateStyles[N],ee=ht?ht.buildStyles(Z,Pe):{};return Ct?Ct.buildStyles(Z,Pe):ee}build(N,Z,Pe,ht,Ct,ee,Oe,he,tt,yt){const Gt=[],Wt=this.ast.options&&this.ast.options.params||rn,di=this.buildStyles(Pe,Oe&&Oe.params||rn,Gt),ui=he&&he.params||rn,_i=this.buildStyles(ht,ui,Gt),Ti=new Set,Hi=new Map,Ne=new Map,De="void"===ht,we={params:Object.assign(Object.assign({},Wt),ui)},ut=yt?[]:Yt(N,Z,this.ast.animation,Ct,ee,di,_i,we,tt,Gt);let Zt=0;if(ut.forEach(ji=>{Zt=Math.max(ji.duration+ji.delay,Zt)}),Gt.length)return Tn(Z,this._triggerName,Pe,ht,De,di,_i,[],[],Hi,Ne,Zt,Gt);ut.forEach(ji=>{const tn=ji.element,Kn=m(Hi,tn,{});ji.preStyleProps.forEach(pr=>Kn[pr]=!0);const Wn=m(Ne,tn,{});ji.postStyleProps.forEach(pr=>Wn[pr]=!0),tn!==Z&&Ti.add(tn)});const hi=V(Ti.values());return Tn(Z,this._triggerName,Pe,ht,De,di,_i,ut,hi,Hi,Ne,Zt)}}class ot{constructor(N,Z,Pe){this.styles=N,this.defaultParams=Z,this.normalizer=Pe}buildStyles(N,Z){const Pe={},ht=Ie(this.defaultParams);return Object.keys(N).forEach(Ct=>{const ee=N[Ct];null!=ee&&(ht[Ct]=ee)}),this.styles.styles.forEach(Ct=>{if("string"!=typeof Ct){const ee=Ct;Object.keys(ee).forEach(Oe=>{let he=ee[Oe];he.length>1&&(he=H(he,ht,Z));const tt=this.normalizer.normalizePropertyName(Oe,Z);he=this.normalizer.normalizeStyleValue(Oe,tt,he,Z),Pe[tt]=he})}}),Pe}}class vt{constructor(N,Z,Pe){this.name=N,this.ast=Z,this._normalizer=Pe,this.transitionFactories=[],this.states={},Z.states.forEach(ht=>{this.states[ht.name]=new ot(ht.style,ht.options&&ht.options.params||{},Pe)}),Ye(this.states,"true","1"),Ye(this.states,"false","0"),Z.transitions.forEach(ht=>{this.transitionFactories.push(new st(N,ht,this.states))}),this.fallbackTransition=function F(ft,N,Z){return new st(ft,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ee,Oe)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,Z,Pe,ht){return this.transitionFactories.find(ee=>ee.match(N,Z,Pe,ht))||null}matchStyles(N,Z,Pe){return this.fallbackTransition.buildStyles(N,Z,Pe)}}function Ye(ft,N,Z){ft.hasOwnProperty(N)?ft.hasOwnProperty(Z)||(ft[Z]=ft[N]):ft.hasOwnProperty(Z)&&(ft[N]=ft[Z])}const gt=new ie;class Dt{constructor(N,Z,Pe){this.bodyNode=N,this._driver=Z,this._normalizer=Pe,this._animations={},this._playersById={},this.players=[]}register(N,Z){const Pe=[],ht=x(this._driver,Z,Pe);if(Pe.length)throw new Error(`Unable to build the animation due to the following errors: ${Pe.join("\n")}`);this._animations[N]=ht}_buildPlayer(N,Z,Pe){const ht=N.element,Ct=E(0,this._normalizer,0,N.keyframes,Z,Pe);return this._driver.animate(ht,Ct,N.duration,N.delay,N.easing,[],!0)}create(N,Z,Pe={}){const ht=[],Ct=this._animations[N];let ee;const Oe=new Map;if(Ct?(ee=Yt(this._driver,Z,Ct,Ue,ze,{},{},Pe,gt,ht),ee.forEach(yt=>{const Gt=m(Oe,yt.element,{});yt.postStyleProps.forEach(Wt=>Gt[Wt]=null)})):(ht.push("The requested animation doesn't exist or has already been destroyed"),ee=[]),ht.length)throw new Error(`Unable to create the animation due to the following errors: ${ht.join("\n")}`);Oe.forEach((yt,Gt)=>{Object.keys(yt).forEach(Wt=>{yt[Wt]=this._driver.computeStyle(Gt,Wt,_.l3)})});const tt=A(ee.map(yt=>{const Gt=Oe.get(yt.element);return this._buildPlayer(yt,{},Gt)}));return this._playersById[N]=tt,tt.onDestroy(()=>this.destroy(N)),this.players.push(tt),tt}destroy(N){const Z=this._getPlayer(N);Z.destroy(),delete this._playersById[N];const Pe=this.players.indexOf(Z);Pe>=0&&this.players.splice(Pe,1)}_getPlayer(N){const Z=this._playersById[N];if(!Z)throw new Error(`Unable to find the timeline player referenced by ${N}`);return Z}listen(N,Z,Pe,ht){const Ct=P(Z,"","","");return C(this._getPlayer(N),Pe,Ct,ht),()=>{}}command(N,Z,Pe,ht){if("register"==Pe)return void this.register(N,ht[0]);if("create"==Pe)return void this.create(N,Z,ht[0]||{});const Ct=this._getPlayer(N);switch(Pe){case"play":Ct.play();break;case"pause":Ct.pause();break;case"reset":Ct.reset();break;case"restart":Ct.restart();break;case"finish":Ct.finish();break;case"init":Ct.init();break;case"setPosition":Ct.setPosition(parseFloat(ht[0]));break;case"destroy":this.destroy(N)}}}const ri="ng-animate-queued",Di="ng-animate-disabled",Fi=[],Ji={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_n={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ni="__ng_removed";class Ri{constructor(N,Z=""){this.namespaceId=Z;const Pe=N&&N.hasOwnProperty("value");if(this.value=function xn(ft){return null!=ft?ft:null}(Pe?N.value:N),Pe){const Ct=Ie(N);delete Ct.value,this.options=Ct}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(N){const Z=N.params;if(Z){const Pe=this.options.params;Object.keys(Z).forEach(ht=>{null==Pe[ht]&&(Pe[ht]=Z[ht])})}}}const sn="void",Xi=new Ri(sn);class en{constructor(N,Z,Pe){this.id=N,this.hostElement=Z,this._engine=Pe,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+N,rt(Z,this._hostClassName)}listen(N,Z,Pe,ht){if(!this._triggers.hasOwnProperty(Z))throw new Error(`Unable to listen on the animation trigger event "${Pe}" because the animation trigger "${Z}" doesn't exist!`);if(null==Pe||0==Pe.length)throw new Error(`Unable to listen on the animation trigger "${Z}" because the provided event is undefined!`);if(!function kn(ft){return"start"==ft||"done"==ft}(Pe))throw new Error(`The provided animation trigger event "${Pe}" for the animation trigger "${Z}" is not supported!`);const Ct=m(this._elementListeners,N,[]),ee={name:Z,phase:Pe,callback:ht};Ct.push(ee);const Oe=m(this._engine.statesByElement,N,{});return Oe.hasOwnProperty(Z)||(rt(N,le),rt(N,le+"-"+Z),Oe[Z]=Xi),()=>{this._engine.afterFlush(()=>{const he=Ct.indexOf(ee);he>=0&&Ct.splice(he,1),this._triggers[Z]||delete Oe[Z]})}}register(N,Z){return!this._triggers[N]&&(this._triggers[N]=Z,!0)}_getTrigger(N){const Z=this._triggers[N];if(!Z)throw new Error(`The provided animation trigger "${N}" has not been registered!`);return Z}trigger(N,Z,Pe,ht=!0){const Ct=this._getTrigger(Z),ee=new dn(this.id,Z,N);let Oe=this._engine.statesByElement.get(N);Oe||(rt(N,le),rt(N,le+"-"+Z),this._engine.statesByElement.set(N,Oe={}));let he=Oe[Z];const tt=new Ri(Pe,this.id);if(!(Pe&&Pe.hasOwnProperty("value"))&&he&&tt.absorbOptions(he.options),Oe[Z]=tt,he||(he=Xi),tt.value!==sn&&he.value===tt.value){if(!function Tt(ft,N){const Z=Object.keys(ft),Pe=Object.keys(N);if(Z.length!=Pe.length)return!1;for(let ht=0;ht{Ve(N,_i),nt(N,Ti)})}return}const Wt=m(this._engine.playersByElement,N,[]);Wt.forEach(ui=>{ui.namespaceId==this.id&&ui.triggerName==Z&&ui.queued&&ui.destroy()});let ii=Ct.matchTransition(he.value,tt.value,N,tt.params),di=!1;if(!ii){if(!ht)return;ii=Ct.fallbackTransition,di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:Z,transition:ii,fromState:he,toState:tt,player:ee,isFallbackTransition:di}),di||(rt(N,ri),ee.onStart(()=>{kt(N,ri)})),ee.onDone(()=>{let ui=this.players.indexOf(ee);ui>=0&&this.players.splice(ui,1);const _i=this._engine.playersByElement.get(N);if(_i){let Ti=_i.indexOf(ee);Ti>=0&&_i.splice(Ti,1)}}),this.players.push(ee),Wt.push(ee),ee}deregister(N){delete this._triggers[N],this._engine.statesByElement.forEach((Z,Pe)=>{delete Z[N]}),this._elementListeners.forEach((Z,Pe)=>{this._elementListeners.set(Pe,Z.filter(ht=>ht.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const Z=this._engine.playersByElement.get(N);Z&&(Z.forEach(Pe=>Pe.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,Z){const Pe=this._engine.driver.query(N,je,!0);Pe.forEach(ht=>{if(ht[Ni])return;const Ct=this._engine.fetchNamespacesByElement(ht);Ct.size?Ct.forEach(ee=>ee.triggerLeaveAnimation(ht,Z,!1,!0)):this.clearElementCache(ht)}),this._engine.afterFlushAnimationsDone(()=>Pe.forEach(ht=>this.clearElementCache(ht)))}triggerLeaveAnimation(N,Z,Pe,ht){const Ct=this._engine.statesByElement.get(N),ee=new Map;if(Ct){const Oe=[];if(Object.keys(Ct).forEach(he=>{if(ee.set(he,Ct[he].value),this._triggers[he]){const tt=this.trigger(N,he,sn,ht);tt&&Oe.push(tt)}}),Oe.length)return this._engine.markElementAsRemoved(this.id,N,!0,Z,ee),Pe&&A(Oe).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const Z=this._elementListeners.get(N),Pe=this._engine.statesByElement.get(N);if(Z&&Pe){const ht=new Set;Z.forEach(Ct=>{const ee=Ct.name;if(ht.has(ee))return;ht.add(ee);const he=this._triggers[ee].fallbackTransition,tt=Pe[ee]||Xi,yt=new Ri(sn),Gt=new dn(this.id,ee,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ee,transition:he,fromState:tt,toState:yt,player:Gt,isFallbackTransition:!0})})}}removeNode(N,Z){const Pe=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,Z),this.triggerLeaveAnimation(N,Z,!0))return;let ht=!1;if(Pe.totalAnimations){const Ct=Pe.players.length?Pe.playersByQueriedElement.get(N):[];if(Ct&&Ct.length)ht=!0;else{let ee=N;for(;ee=ee.parentNode;)if(Pe.statesByElement.get(ee)){ht=!0;break}}}if(this.prepareLeaveAnimationListeners(N),ht)Pe.markElementAsRemoved(this.id,N,!1,Z);else{const Ct=N[Ni];(!Ct||Ct===Ji)&&(Pe.afterFlush(()=>this.clearElementCache(N)),Pe.destroyInnerAnimations(N),Pe._onRemovalComplete(N,Z))}}insertNode(N,Z){rt(N,this._hostClassName)}drainQueuedTransitions(N){const Z=[];return this._queue.forEach(Pe=>{const ht=Pe.player;if(ht.destroyed)return;const Ct=Pe.element,ee=this._elementListeners.get(Ct);ee&&ee.forEach(Oe=>{if(Oe.name==Pe.triggerName){const he=P(Ct,Pe.triggerName,Pe.fromState.value,Pe.toState.value);he._data=N,C(Pe.player,Oe.phase,he,Oe.callback)}}),ht.markedForDestroy?this._engine.afterFlush(()=>{ht.destroy()}):Z.push(Pe)}),this._queue=[],Z.sort((Pe,ht)=>{const Ct=Pe.transition.ast.depCount,ee=ht.transition.ast.depCount;return 0==Ct||0==ee?Ct-ee:this._engine.driver.containsElement(Pe.element,ht.element)?1:-1})}destroy(N){this.players.forEach(Z=>Z.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}elementContainsData(N){let Z=!1;return this._elementListeners.has(N)&&(Z=!0),Z=!!this._queue.find(Pe=>Pe.element===N)||Z,Z}}class an{constructor(N,Z,Pe){this.bodyNode=N,this.driver=Z,this._normalizer=Pe,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=(ht,Ct)=>{}}_onRemovalComplete(N,Z){this.onRemovalComplete(N,Z)}get queuedPlayers(){const N=[];return this._namespaceList.forEach(Z=>{Z.players.forEach(Pe=>{Pe.queued&&N.push(Pe)})}),N}createNamespace(N,Z){const Pe=new en(N,Z,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,Z)?this._balanceNamespaceList(Pe,Z):(this.newHostElements.set(Z,Pe),this.collectEnterElement(Z)),this._namespaceLookup[N]=Pe}_balanceNamespaceList(N,Z){const Pe=this._namespaceList.length-1;if(Pe>=0){let ht=!1;for(let Ct=Pe;Ct>=0;Ct--)if(this.driver.containsElement(this._namespaceList[Ct].hostElement,Z)){this._namespaceList.splice(Ct+1,0,N),ht=!0;break}ht||this._namespaceList.splice(0,0,N)}else this._namespaceList.push(N);return this.namespacesByHostElement.set(Z,N),N}register(N,Z){let Pe=this._namespaceLookup[N];return Pe||(Pe=this.createNamespace(N,Z)),Pe}registerTrigger(N,Z,Pe){let ht=this._namespaceLookup[N];ht&&ht.register(Z,Pe)&&this.totalAnimations++}destroy(N,Z){if(!N)return;const Pe=this._fetchNamespace(N);this.afterFlush(()=>{this.namespacesByHostElement.delete(Pe.hostElement),delete this._namespaceLookup[N];const ht=this._namespaceList.indexOf(Pe);ht>=0&&this._namespaceList.splice(ht,1)}),this.afterFlushAnimationsDone(()=>Pe.destroy(Z))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const Z=new Set,Pe=this.statesByElement.get(N);if(Pe){const ht=Object.keys(Pe);for(let Ct=0;Ct=0&&this.collectedLeaveElements.splice(ee,1)}if(N){const ee=this._fetchNamespace(N);ee&&ee.insertNode(Z,Pe)}ht&&this.collectEnterElement(Z)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,Z){Z?this.disabledNodes.has(N)||(this.disabledNodes.add(N),rt(N,Di)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),kt(N,Di))}removeNode(N,Z,Pe,ht){if(Oi(Z)){const Ct=N?this._fetchNamespace(N):null;if(Ct?Ct.removeNode(Z,ht):this.markElementAsRemoved(N,Z,!1,ht),Pe){const ee=this.namespacesByHostElement.get(Z);ee&&ee.id!==N&&ee.removeNode(Z,ht)}}else this._onRemovalComplete(Z,ht)}markElementAsRemoved(N,Z,Pe,ht,Ct){this.collectedLeaveElements.push(Z),Z[Ni]={namespaceId:N,setForRemoval:ht,hasAnimation:Pe,removedBeforeQueried:!1,previousTriggersValues:Ct}}listen(N,Z,Pe,ht,Ct){return Oi(Z)?this._fetchNamespace(N).listen(Z,Pe,ht,Ct):()=>{}}_buildInstruction(N,Z,Pe,ht,Ct){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,Pe,ht,N.fromState.options,N.toState.options,Z,Ct)}destroyInnerAnimations(N){let Z=this.driver.query(N,je,!0);Z.forEach(Pe=>this.destroyActiveAnimationsForElement(Pe)),0!=this.playersByQueriedElement.size&&(Z=this.driver.query(N,Be,!0),Z.forEach(Pe=>this.finishActiveQueriedAnimationOnElement(Pe)))}destroyActiveAnimationsForElement(N){const Z=this.playersByElement.get(N);Z&&Z.forEach(Pe=>{Pe.queued?Pe.markedForDestroy=!0:Pe.destroy()})}finishActiveQueriedAnimationOnElement(N){const Z=this.playersByQueriedElement.get(N);Z&&Z.forEach(Pe=>Pe.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return A(this.players).onDone(()=>N());N()})}processLeaveNode(N){var Z;const Pe=N[Ni];if(Pe&&Pe.setForRemoval){if(N[Ni]=Ji,Pe.namespaceId){this.destroyInnerAnimations(N);const ht=this._fetchNamespace(Pe.namespaceId);ht&&ht.clearElementCache(N)}this._onRemovalComplete(N,Pe.setForRemoval)}(null===(Z=N.classList)||void 0===Z?void 0:Z.contains(Di))&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(ht=>{this.markElementAsDisabled(ht,!1)})}flush(N=-1){let Z=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Pe,ht)=>this._balanceNamespaceList(Pe,ht)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Pe=0;PePe()),this._flushFns=[],this._whenQuietFns.length){const Pe=this._whenQuietFns;this._whenQuietFns=[],Z.length?A(Z).onDone(()=>{Pe.forEach(ht=>ht())}):Pe.forEach(ht=>ht())}}reportError(N){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${N.join("\n")}`)}_flushAnimations(N,Z){const Pe=new ie,ht=[],Ct=new Map,ee=[],Oe=new Map,he=new Map,tt=new Map,yt=new Set;this.disabledNodes.forEach(si=>{yt.add(si);const Ei=this.driver.query(si,".ng-animate-queued",!0);for(let gi=0;gi{const gi=Ue+ui++;di.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))});const _i=[],Ti=new Set,Hi=new Set;for(let si=0;siTi.add(Vi)):Hi.add(Ei))}const Ne=new Map,De=Qt(Wt,Array.from(Ti));De.forEach((si,Ei)=>{const gi=ze+ui++;Ne.set(Ei,gi),si.forEach(Vi=>rt(Vi,gi))}),N.push(()=>{ii.forEach((si,Ei)=>{const gi=di.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),De.forEach((si,Ei)=>{const gi=Ne.get(Ei);si.forEach(Vi=>kt(Vi,gi))}),_i.forEach(si=>{this.processLeaveNode(si)})});const we=[],ut=[];for(let si=this._namespaceList.length-1;si>=0;si--)this._namespaceList[si].drainQueuedTransitions(Z).forEach(gi=>{const Vi=gi.player,pn=gi.element;if(we.push(Vi),this.collectedEnterElements.length){const bn=pn[Ni];if(bn&&bn.setForMove){if(bn.previousTriggersValues&&bn.previousTriggersValues.has(gi.triggerName)){const mn=bn.previousTriggersValues.get(gi.triggerName),Sn=this.statesByElement.get(gi.element);Sn&&Sn[gi.triggerName]&&(Sn[gi.triggerName].value=mn)}return void Vi.destroy()}}const vn=!Gt||!this.driver.containsElement(Gt,pn),Pn=Ne.get(pn),Yn=di.get(pn),fn=this._buildInstruction(gi,Pe,Yn,Pn,vn);if(fn.errors&&fn.errors.length)return void ut.push(fn);if(vn)return Vi.onStart(()=>Ve(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);if(gi.isFallbackTransition)return Vi.onStart(()=>Ve(pn,fn.fromStyles)),Vi.onDestroy(()=>nt(pn,fn.toStyles)),void ht.push(Vi);const $r=[];fn.timelines.forEach(bn=>{bn.stretchStartingKeyframe=!0,this.disabledNodes.has(bn.element)||$r.push(bn)}),fn.timelines=$r,Pe.append(pn,fn.timelines),ee.push({instruction:fn,player:Vi,element:pn}),fn.queriedElements.forEach(bn=>m(Oe,bn,[]).push(Vi)),fn.preStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);if(Sn.length){let Xn=he.get(mn);Xn||he.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))}}),fn.postStyleProps.forEach((bn,mn)=>{const Sn=Object.keys(bn);let Xn=tt.get(mn);Xn||tt.set(mn,Xn=new Set),Sn.forEach(er=>Xn.add(er))})});if(ut.length){const si=[];ut.forEach(Ei=>{si.push(`@${Ei.triggerName} has failed due to:\n`),Ei.errors.forEach(gi=>si.push(`- ${gi}\n`))}),we.forEach(Ei=>Ei.destroy()),this.reportError(si)}const Zt=new Map,hi=new Map;ee.forEach(si=>{const Ei=si.element;Pe.has(Ei)&&(hi.set(Ei,Ei),this._beforeAnimationBuild(si.player.namespaceId,si.instruction,Zt))}),ht.forEach(si=>{const Ei=si.element;this._getPreviousPlayers(Ei,!1,si.namespaceId,si.triggerName,null).forEach(Vi=>{m(Zt,Ei,[]).push(Vi),Vi.destroy()})});const ji=_i.filter(si=>jt(si,he,tt)),tn=new Map;Mt(tn,this.driver,Hi,tt,_.l3).forEach(si=>{jt(si,he,tt)&&ji.push(si)});const Wn=new Map;ii.forEach((si,Ei)=>{Mt(Wn,this.driver,new Set(si),he,_.k1)}),ji.forEach(si=>{const Ei=tn.get(si),gi=Wn.get(si);tn.set(si,Object.assign(Object.assign({},Ei),gi))});const pr=[],Qr=[],Xt={};ee.forEach(si=>{const{element:Ei,player:gi,instruction:Vi}=si;if(Pe.has(Ei)){if(yt.has(Ei))return gi.onDestroy(()=>nt(Ei,Vi.toStyles)),gi.disabled=!0,gi.overrideTotalTime(Vi.totalTime),void ht.push(gi);let pn=Xt;if(hi.size>1){let Pn=Ei;const Yn=[];for(;Pn=Pn.parentNode;){const fn=hi.get(Pn);if(fn){pn=fn;break}Yn.push(Pn)}Yn.forEach(fn=>hi.set(fn,pn))}const vn=this._buildAnimation(gi.namespaceId,Vi,Zt,Ct,Wn,tn);if(gi.setRealPlayer(vn),pn===Xt)pr.push(gi);else{const Pn=this.playersByElement.get(pn);Pn&&Pn.length&&(gi.parentPlayer=A(Pn)),ht.push(gi)}}else Ve(Ei,Vi.fromStyles),gi.onDestroy(()=>nt(Ei,Vi.toStyles)),Qr.push(gi),yt.has(Ei)&&ht.push(gi)}),Qr.forEach(si=>{const Ei=Ct.get(si.element);if(Ei&&Ei.length){const gi=A(Ei);si.setRealPlayer(gi)}}),ht.forEach(si=>{si.parentPlayer?si.syncPlayerEvents(si.parentPlayer):si.destroy()});for(let si=0;si<_i.length;si++){const Ei=_i[si],gi=Ei[Ni];if(kt(Ei,ze),gi&&gi.hasAnimation)continue;let Vi=[];if(Oe.size){let vn=Oe.get(Ei);vn&&vn.length&&Vi.push(...vn);let Pn=this.driver.query(Ei,Be,!0);for(let Yn=0;Yn!vn.destroyed);pn.length?Ze(this,Ei,pn):this.processLeaveNode(Ei)}return _i.length=0,pr.forEach(si=>{this.players.push(si),si.onDone(()=>{si.destroy();const Ei=this.players.indexOf(si);this.players.splice(Ei,1)}),si.play()}),pr}elementContainsData(N,Z){let Pe=!1;const ht=Z[Ni];return ht&&ht.setForRemoval&&(Pe=!0),this.playersByElement.has(Z)&&(Pe=!0),this.playersByQueriedElement.has(Z)&&(Pe=!0),this.statesByElement.has(Z)&&(Pe=!0),this._fetchNamespace(N).elementContainsData(Z)||Pe}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,Z,Pe,ht,Ct){let ee=[];if(Z){const Oe=this.playersByQueriedElement.get(N);Oe&&(ee=Oe)}else{const Oe=this.playersByElement.get(N);if(Oe){const he=!Ct||Ct==sn;Oe.forEach(tt=>{tt.queued||!he&&tt.triggerName!=ht||ee.push(tt)})}}return(Pe||ht)&&(ee=ee.filter(Oe=>!(Pe&&Pe!=Oe.namespaceId||ht&&ht!=Oe.triggerName))),ee}_beforeAnimationBuild(N,Z,Pe){const Ct=Z.element,ee=Z.isRemovalTransition?void 0:N,Oe=Z.isRemovalTransition?void 0:Z.triggerName;for(const he of Z.timelines){const tt=he.element,yt=tt!==Ct,Gt=m(Pe,tt,[]);this._getPreviousPlayers(tt,yt,ee,Oe,Z.toState).forEach(ii=>{const di=ii.getRealPlayer();di.beforeDestroy&&di.beforeDestroy(),ii.destroy(),Gt.push(ii)})}Ve(Ct,Z.fromStyles)}_buildAnimation(N,Z,Pe,ht,Ct,ee){const Oe=Z.triggerName,he=Z.element,tt=[],yt=new Set,Gt=new Set,Wt=Z.timelines.map(di=>{const ui=di.element;yt.add(ui);const _i=ui[Ni];if(_i&&_i.removedBeforeQueried)return new _.ZN(di.duration,di.delay);const Ti=ui!==he,Hi=function Ot(ft){const N=[];return qe(ft,N),N}((Pe.get(ui)||Fi).map(Zt=>Zt.getRealPlayer())).filter(Zt=>!!Zt.element&&Zt.element===ui),Ne=Ct.get(ui),De=ee.get(ui),we=E(0,this._normalizer,0,di.keyframes,Ne,De),ut=this._buildPlayer(di,we,Hi);if(di.subTimeline&&ht&&Gt.add(ui),Ti){const Zt=new dn(N,Oe,ui);Zt.setRealPlayer(ut),tt.push(Zt)}return ut});tt.forEach(di=>{m(this.playersByQueriedElement,di.element,[]).push(di),di.onDone(()=>function wn(ft,N,Z){let Pe;if(ft instanceof Map){if(Pe=ft.get(N),Pe){if(Pe.length){const ht=Pe.indexOf(Z);Pe.splice(ht,1)}0==Pe.length&&ft.delete(N)}}else if(Pe=ft[N],Pe){if(Pe.length){const ht=Pe.indexOf(Z);Pe.splice(ht,1)}0==Pe.length&&delete ft[N]}return Pe}(this.playersByQueriedElement,di.element,di))}),yt.forEach(di=>rt(di,ye));const ii=A(Wt);return ii.onDestroy(()=>{yt.forEach(di=>kt(di,ye)),nt(he,Z.toStyles)}),Gt.forEach(di=>{m(ht,di,[]).push(ii)}),ii}_buildPlayer(N,Z,Pe){return Z.length>0?this.driver.animate(N.element,Z,N.duration,N.delay,N.easing,Pe):new _.ZN(N.duration,N.delay)}}class dn{constructor(N,Z,Pe){this.namespaceId=N,this.triggerName=Z,this.element=Pe,this._player=new _.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(N){this._containsRealPlayer||(this._player=N,Object.keys(this._queuedCallbacks).forEach(Z=>{this._queuedCallbacks[Z].forEach(Pe=>C(N,Z,void 0,Pe))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const Z=this._player;Z.triggerCallback&&N.onStart(()=>Z.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,Z){m(this._queuedCallbacks,N,[]).push(Z)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}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(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const Z=this._player;Z.triggerCallback&&Z.triggerCallback(N)}}function Oi(ft){return ft&&1===ft.nodeType}function Nn(ft,N){const Z=ft.style.display;return ft.style.display=null!=N?N:"none",Z}function Mt(ft,N,Z,Pe,ht){const Ct=[];Z.forEach(he=>Ct.push(Nn(he)));const ee=[];Pe.forEach((he,tt)=>{const yt={};he.forEach(Gt=>{const Wt=yt[Gt]=N.computeStyle(tt,Gt,ht);(!Wt||0==Wt.length)&&(tt[Ni]=_n,ee.push(tt))}),ft.set(tt,yt)});let Oe=0;return Z.forEach(he=>Nn(he,Ct[Oe++])),ee}function Qt(ft,N){const Z=new Map;if(ft.forEach(Oe=>Z.set(Oe,[])),0==N.length)return Z;const ht=new Set(N),Ct=new Map;function ee(Oe){if(!Oe)return 1;let he=Ct.get(Oe);if(he)return he;const tt=Oe.parentNode;return he=Z.has(tt)?tt:ht.has(tt)?1:ee(tt),Ct.set(Oe,he),he}return N.forEach(Oe=>{const he=ee(Oe);1!==he&&Z.get(he).push(Oe)}),Z}function rt(ft,N){var Z;null===(Z=ft.classList)||void 0===Z||Z.add(N)}function kt(ft,N){var Z;null===(Z=ft.classList)||void 0===Z||Z.remove(N)}function Ze(ft,N,Z){A(Z).onDone(()=>ft.processLeaveNode(N))}function qe(ft,N){for(let Z=0;Zht.add(Ct)):N.set(ft,Pe),Z.delete(ft),!0}class ci{constructor(N,Z,Pe){this.bodyNode=N,this._driver=Z,this._normalizer=Pe,this._triggerCache={},this.onRemovalComplete=(ht,Ct)=>{},this._transitionEngine=new an(N,Z,Pe),this._timelineEngine=new Dt(N,Z,Pe),this._transitionEngine.onRemovalComplete=(ht,Ct)=>this.onRemovalComplete(ht,Ct)}registerTrigger(N,Z,Pe,ht,Ct){const ee=N+"-"+ht;let Oe=this._triggerCache[ee];if(!Oe){const he=[],tt=x(this._driver,Ct,he);if(he.length)throw new Error(`The animation trigger "${ht}" has failed to build due to the following errors:\n - ${he.join("\n - ")}`);Oe=function Ke(ft,N,Z){return new vt(ft,N,Z)}(ht,tt,this._normalizer),this._triggerCache[ee]=Oe}this._transitionEngine.registerTrigger(Z,ht,Oe)}register(N,Z){this._transitionEngine.register(N,Z)}destroy(N,Z){this._transitionEngine.destroy(N,Z)}onInsert(N,Z,Pe,ht){this._transitionEngine.insertNode(N,Z,Pe,ht)}onRemove(N,Z,Pe,ht){this._transitionEngine.removeNode(N,Z,ht||!1,Pe)}disableAnimations(N,Z){this._transitionEngine.markElementAsDisabled(N,Z)}process(N,Z,Pe,ht){if("@"==Pe.charAt(0)){const[Ct,ee]=L(Pe);this._timelineEngine.command(Ct,Z,ee,ht)}else this._transitionEngine.trigger(N,Z,Pe,ht)}listen(N,Z,Pe,ht,Ct){if("@"==Pe.charAt(0)){const[ee,Oe]=L(Pe);return this._timelineEngine.listen(ee,Z,Oe,Ct)}return this._transitionEngine.listen(N,Z,Pe,ht,Ct)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ui=(()=>{class ft{constructor(Z,Pe,ht){this._element=Z,this._startStyles=Pe,this._endStyles=ht,this._state=0;let Ct=ft.initialStylesByElement.get(Z);Ct||ft.initialStylesByElement.set(Z,Ct={}),this._initialStyles=Ct}start(){this._state<1&&(this._startStyles&&nt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(nt(this._element,this._initialStyles),this._endStyles&&(nt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ft.initialStylesByElement.delete(this._element),this._startStyles&&(Ve(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ve(this._element,this._endStyles),this._endStyles=null),nt(this._element,this._initialStyles),this._state=3)}}return ft.initialStylesByElement=new WeakMap,ft})();function Li(ft){let N=null;const Z=Object.keys(ft);for(let Pe=0;PeN()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const N=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,N,this.options),this._finalKeyframe=N.length?N[N.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(N,Z,Pe){return N.animate(Z,Pe)}onStart(N){this._onStartFns.push(N)}onDone(N){this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(N=>N()),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}_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(N=>N()),this._onDestroyFns=[])}setPosition(N){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=N*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N={};if(this.hasStarted()){const Z=this._finalKeyframe;Object.keys(Z).forEach(Pe=>{"offset"!=Pe&&(N[Pe]=this._finished?Z[Pe]:o(this.element,Pe))})}this.currentSnapshot=N}triggerCallback(N){const Z="start"==N?this._onStartFns:this._onDoneFns;Z.forEach(Pe=>Pe()),Z.length=0}}class Vn{validateStyleProperty(N){return oe(N)}matchesElement(N,Z){return!1}containsElement(N,Z){return T(N,Z)}query(N,Z,Pe){return j(N,Z,Pe)}computeStyle(N,Z,Pe){return window.getComputedStyle(N)[Z]}animate(N,Z,Pe,ht,Ct,ee=[]){const he={duration:Pe,delay:ht,fill:0==ht?"both":"forwards"};Ct&&(he.easing=Ct);const tt={},yt=ee.filter(Wt=>Wt instanceof cr);(function Ae(ft,N){return 0===ft||0===N})(Pe,ht)&&yt.forEach(Wt=>{let ii=Wt.currentSnapshot;Object.keys(ii).forEach(di=>tt[di]=ii[di])}),Z=function ae(ft,N,Z){const Pe=Object.keys(Z);if(Pe.length&&N.length){let Ct=N[0],ee=[];if(Pe.forEach(Oe=>{Ct.hasOwnProperty(Oe)||ee.push(Oe),Ct[Oe]=Z[Oe]}),ee.length)for(var ht=1;htSe(Wt,!1)),tt);const Gt=function vi(ft,N){let Z=null,Pe=null;return Array.isArray(N)&&N.length?(Z=Li(N[0]),N.length>1&&(Pe=Li(N[N.length-1]))):N&&(Z=Li(N)),Z||Pe?new Ui(ft,Z,Pe):null}(N,Z);return new cr(N,Z,he,Gt)}}var dr=p(69808);let Qn=(()=>{class ft extends _._j{constructor(Z,Pe){super(),this._nextAnimationId=0,this._renderer=Z.createRenderer(Pe.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(Z){const Pe=this._nextAnimationId.toString();this._nextAnimationId++;const ht=Array.isArray(Z)?(0,_.vP)(Z):Z;return Zn(this._renderer,null,Pe,"register",[ht]),new Lr(Pe,this._renderer)}}return ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(e.FYo),e.LFG(dr.K0))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Lr extends _.LC{constructor(N,Z){super(),this._id=N,this._renderer=Z}create(N,Z){return new rr(this._id,N,Z||{},this._renderer)}}class rr{constructor(N,Z,Pe,ht){this.id=N,this.element=Z,this._renderer=ht,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Pe)}_listen(N,Z){return this._renderer.listen(this.element,`@@${this.id}:${N}`,Z)}_command(N,...Z){return Zn(this._renderer,this.element,this.id,N,Z)}onDone(N){this._listen("done",N)}onStart(N){this._listen("start",N)}onDestroy(N){this._listen("destroy",N)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(N){this._command("setPosition",N)}getPosition(){var N,Z;return null!==(Z=null===(N=this._renderer.engine.players[+this.id])||void 0===N?void 0:N.getPosition())&&void 0!==Z?Z:0}}function Zn(ft,N,Z,Pe,ht){return ft.setProperty(N,`@@${Z}:${Pe}`,ht)}const ur="@.disabled";let Mn=(()=>{class ft{constructor(Z,Pe,ht){this.delegate=Z,this.engine=Pe,this._zone=ht,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Pe.onRemovalComplete=(Ct,ee)=>{const Oe=null==ee?void 0:ee.parentNode(Ct);Oe&&ee.removeChild(Oe,Ct)}}createRenderer(Z,Pe){const Ct=this.delegate.createRenderer(Z,Pe);if(!(Z&&Pe&&Pe.data&&Pe.data.animation)){let yt=this._rendererCache.get(Ct);return yt||(yt=new Gn("",Ct,this.engine),this._rendererCache.set(Ct,yt)),yt}const ee=Pe.id,Oe=Pe.id+"-"+this._currentId;this._currentId++,this.engine.register(Oe,Z);const he=yt=>{Array.isArray(yt)?yt.forEach(he):this.engine.registerTrigger(ee,Oe,Z,yt.name,yt)};return Pe.data.animation.forEach(he),new sr(this,Oe,Ct,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(Z,Pe,ht){Z>=0&&ZPe(ht)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ct=>{const[ee,Oe]=Ct;ee(Oe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Pe,ht]))}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()}}return ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(e.FYo),e.LFG(ci),e.LFG(e.R0b))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();class Gn{constructor(N,Z,Pe){this.namespaceId=N,this.delegate=Z,this.engine=Pe,this.destroyNode=this.delegate.destroyNode?ht=>Z.destroyNode(ht):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(N,Z){return this.delegate.createElement(N,Z)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,Z){this.delegate.appendChild(N,Z),this.engine.onInsert(this.namespaceId,Z,N,!1)}insertBefore(N,Z,Pe,ht=!0){this.delegate.insertBefore(N,Z,Pe),this.engine.onInsert(this.namespaceId,Z,N,ht)}removeChild(N,Z,Pe){this.engine.onRemove(this.namespaceId,Z,this.delegate,Pe)}selectRootElement(N,Z){return this.delegate.selectRootElement(N,Z)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,Z,Pe,ht){this.delegate.setAttribute(N,Z,Pe,ht)}removeAttribute(N,Z,Pe){this.delegate.removeAttribute(N,Z,Pe)}addClass(N,Z){this.delegate.addClass(N,Z)}removeClass(N,Z){this.delegate.removeClass(N,Z)}setStyle(N,Z,Pe,ht){this.delegate.setStyle(N,Z,Pe,ht)}removeStyle(N,Z,Pe){this.delegate.removeStyle(N,Z,Pe)}setProperty(N,Z,Pe){"@"==Z.charAt(0)&&Z==ur?this.disableAnimations(N,!!Pe):this.delegate.setProperty(N,Z,Pe)}setValue(N,Z){this.delegate.setValue(N,Z)}listen(N,Z,Pe){return this.delegate.listen(N,Z,Pe)}disableAnimations(N,Z){this.engine.disableAnimations(N,Z)}}class sr extends Gn{constructor(N,Z,Pe,ht){super(Z,Pe,ht),this.factory=N,this.namespaceId=Z}setProperty(N,Z,Pe){"@"==Z.charAt(0)?"."==Z.charAt(1)&&Z==ur?this.disableAnimations(N,Pe=void 0===Pe||!!Pe):this.engine.process(this.namespaceId,N,Z.substr(1),Pe):this.delegate.setProperty(N,Z,Pe)}listen(N,Z,Pe){if("@"==Z.charAt(0)){const ht=function ar(ft){switch(ft){case"body":return document.body;case"document":return document;case"window":return window;default:return ft}}(N);let Ct=Z.substr(1),ee="";return"@"!=Ct.charAt(0)&&([Ct,ee]=function Un(ft){const N=ft.indexOf(".");return[ft.substring(0,N),ft.substr(N+1)]}(Ct)),this.engine.listen(this.namespaceId,ht,Ct,ee,Oe=>{this.factory.scheduleListenerCallback(Oe._data||-1,Pe,Oe)})}return this.delegate.listen(N,Z,Pe)}}let hr=(()=>{class ft extends ci{constructor(Z,Pe,ht){super(Z.body,Pe,ht)}ngOnDestroy(){this.flush()}}return ft.\u0275fac=function(Z){return new(Z||ft)(e.LFG(dr.K0),e.LFG(te),e.LFG(yi))},ft.\u0275prov=e.Yz7({token:ft,factory:ft.\u0275fac}),ft})();const yn=new e.OlP("AnimationModuleType"),Cn=[{provide:_._j,useClass:Qn},{provide:yi,useFactory:function br(){return new gn}},{provide:ci,useClass:hr},{provide:e.FYo,useFactory:function In(ft,N,Z){return new Mn(ft,N,Z)},deps:[b.se,ci,e.R0b]}],$n=[{provide:te,useFactory:()=>new Vn},{provide:yn,useValue:"BrowserAnimations"},...Cn],or=[{provide:te,useClass:q},{provide:yn,useValue:"NoopAnimations"},...Cn];let zn=(()=>{class ft{static withConfig(Z){return{ngModule:ft,providers:Z.disableAnimations?or:$n}}}return ft.\u0275fac=function(Z){return new(Z||ft)},ft.\u0275mod=e.oAB({type:ft}),ft.\u0275inj=e.cJS({providers:$n,imports:[b.b2]}),ft})()},22313:($e,_e,p)=>{"use strict";p.d(_e,{b2:()=>V,H7:()=>ct,Dx:()=>ae,q6:()=>D,se:()=>le});var e=p(69808),b=p(5e3);class _ extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class w extends _{static makeCurrent(){(0,e.HT)(new w)}onAndCancel(Rt,Et,Bt){return Rt.addEventListener(Et,Bt,!1),()=>{Rt.removeEventListener(Et,Bt,!1)}}dispatchEvent(Rt,Et){Rt.dispatchEvent(Et)}remove(Rt){Rt.parentNode&&Rt.parentNode.removeChild(Rt)}createElement(Rt,Et){return(Et=Et||this.getDefaultDocument()).createElement(Rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Rt){return Rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(Rt){return Rt instanceof DocumentFragment}getGlobalEventTarget(Rt,Et){return"window"===Et?window:"document"===Et?Rt:"body"===Et?Rt.body:null}getBaseHref(Rt){const Et=function A(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Et?null:function C(It){E=E||document.createElement("a"),E.setAttribute("href",It);const Rt=E.pathname;return"/"===Rt.charAt(0)?Rt:`/${Rt}`}(Et)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(Rt){return(0,e.Mx)(document.cookie,Rt)}}let E,g=null;const I=new b.OlP("TRANSITION_ID"),m=[{provide:b.ip1,useFactory:function P(It,Rt,Et){return()=>{Et.get(b.CZH).donePromise.then(()=>{const Bt=(0,e.q)(),Jt=Rt.querySelectorAll(`style[ng-transition="${It}"]`);for(let ai=0;ai{const ai=Rt.findTestabilityInTree(Bt,Jt);if(null==ai)throw new Error("Could not find testability for element.");return ai},b.dqk.getAllAngularTestabilities=()=>Rt.getAllTestabilities(),b.dqk.getAllAngularRootElements=()=>Rt.getAllRootElements(),b.dqk.frameworkStabilizers||(b.dqk.frameworkStabilizers=[]),b.dqk.frameworkStabilizers.push(Bt=>{const Jt=b.dqk.getAllAngularTestabilities();let ai=Jt.length,mi=!1;const bi=function(yi){mi=mi||yi,ai--,0==ai&&Bt(mi)};Jt.forEach(function(yi){yi.whenStable(bi)})})}findTestabilityInTree(Rt,Et,Bt){if(null==Et)return null;const Jt=Rt.getTestability(Et);return null!=Jt?Jt:Bt?(0,e.q)().isShadowRoot(Et)?this.findTestabilityInTree(Rt,Et.host,!0):this.findTestabilityInTree(Rt,Et.parentElement,!0):null}}let O=(()=>{class It{build(){return new XMLHttpRequest}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const G=new b.OlP("EventManagerPlugins");let ne=(()=>{class It{constructor(Et,Bt){this._zone=Bt,this._eventNameToPlugin=new Map,Et.forEach(Jt=>Jt.manager=this),this._plugins=Et.slice().reverse()}addEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addEventListener(Et,Bt,Jt)}addGlobalEventListener(Et,Bt,Jt){return this._findPluginFor(Bt).addGlobalEventListener(Et,Bt,Jt)}getZone(){return this._zone}_findPluginFor(Et){const Bt=this._eventNameToPlugin.get(Et);if(Bt)return Bt;const Jt=this._plugins;for(let ai=0;ai{class It{constructor(){this._stylesSet=new Set}addStyles(Et){const Bt=new Set;Et.forEach(Jt=>{this._stylesSet.has(Jt)||(this._stylesSet.add(Jt),Bt.add(Jt))}),this.onStylesAdded(Bt)}onStylesAdded(Et){}getAllStyles(){return Array.from(this._stylesSet)}}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})(),Me=(()=>{class It extends J{constructor(Et){super(),this._doc=Et,this._hostNodes=new Map,this._hostNodes.set(Et.head,[])}_addStylesToHost(Et,Bt,Jt){Et.forEach(ai=>{const mi=this._doc.createElement("style");mi.textContent=ai,Jt.push(Bt.appendChild(mi))})}addHost(Et){const Bt=[];this._addStylesToHost(this._stylesSet,Et,Bt),this._hostNodes.set(Et,Bt)}removeHost(Et){const Bt=this._hostNodes.get(Et);Bt&&Bt.forEach(oe),this._hostNodes.delete(Et)}onStylesAdded(Et){this._hostNodes.forEach((Bt,Jt)=>{this._addStylesToHost(Et,Jt,Bt)})}ngOnDestroy(){this._hostNodes.forEach(Et=>Et.forEach(oe))}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();function oe(It){(0,e.q)().remove(It)}const Re={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/"},T=/%COMP%/g,Y="%COMP%",q=`_nghost-${Y}`,te=`_ngcontent-${Y}`;function Le(It,Rt,Et){for(let Bt=0;Bt{if("__ngUnwrap__"===Rt)return It;!1===It(Rt)&&(Rt.preventDefault(),Rt.returnValue=!1)}}let le=(()=>{class It{constructor(Et,Bt,Jt){this.eventManager=Et,this.sharedStylesHost=Bt,this.appId=Jt,this.rendererByCompId=new Map,this.defaultRenderer=new je(Et)}createRenderer(Et,Bt){if(!Et||!Bt)return this.defaultRenderer;switch(Bt.encapsulation){case b.ifc.Emulated:{let Jt=this.rendererByCompId.get(Bt.id);return Jt||(Jt=new W(this.eventManager,this.sharedStylesHost,Bt,this.appId),this.rendererByCompId.set(Bt.id,Jt)),Jt.applyToHost(Et),Jt}case 1:case b.ifc.ShadowDom:return new R(this.eventManager,this.sharedStylesHost,Et,Bt);default:if(!this.rendererByCompId.has(Bt.id)){const Jt=Le(Bt.id,Bt.styles,[]);this.sharedStylesHost.addStyles(Jt),this.rendererByCompId.set(Bt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(ne),b.LFG(Me),b.LFG(b.AFp))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();class je{constructor(Rt){this.eventManager=Rt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Rt,Et){return Et?document.createElementNS(Re[Et]||Et,Rt):document.createElement(Rt)}createComment(Rt){return document.createComment(Rt)}createText(Rt){return document.createTextNode(Rt)}appendChild(Rt,Et){Rt.appendChild(Et)}insertBefore(Rt,Et,Bt){Rt&&Rt.insertBefore(Et,Bt)}removeChild(Rt,Et){Rt&&Rt.removeChild(Et)}selectRootElement(Rt,Et){let Bt="string"==typeof Rt?document.querySelector(Rt):Rt;if(!Bt)throw new Error(`The selector "${Rt}" did not match any elements`);return Et||(Bt.textContent=""),Bt}parentNode(Rt){return Rt.parentNode}nextSibling(Rt){return Rt.nextSibling}setAttribute(Rt,Et,Bt,Jt){if(Jt){Et=Jt+":"+Et;const ai=Re[Jt];ai?Rt.setAttributeNS(ai,Et,Bt):Rt.setAttribute(Et,Bt)}else Rt.setAttribute(Et,Bt)}removeAttribute(Rt,Et,Bt){if(Bt){const Jt=Re[Bt];Jt?Rt.removeAttributeNS(Jt,Et):Rt.removeAttribute(`${Bt}:${Et}`)}else Rt.removeAttribute(Et)}addClass(Rt,Et){Rt.classList.add(Et)}removeClass(Rt,Et){Rt.classList.remove(Et)}setStyle(Rt,Et,Bt,Jt){Jt&(b.JOm.DashCase|b.JOm.Important)?Rt.style.setProperty(Et,Bt,Jt&b.JOm.Important?"important":""):Rt.style[Et]=Bt}removeStyle(Rt,Et,Bt){Bt&b.JOm.DashCase?Rt.style.removeProperty(Et):Rt.style[Et]=""}setProperty(Rt,Et,Bt){Rt[Et]=Bt}setValue(Rt,Et){Rt.nodeValue=Et}listen(Rt,Et,Bt){return"string"==typeof Rt?this.eventManager.addGlobalEventListener(Rt,Et,Ue(Bt)):this.eventManager.addEventListener(Rt,Et,Ue(Bt))}}class W extends je{constructor(Rt,Et,Bt,Jt){super(Rt),this.component=Bt;const ai=Le(Jt+"-"+Bt.id,Bt.styles,[]);Et.addStyles(ai),this.contentAttr=function ue(It){return te.replace(T,It)}(Jt+"-"+Bt.id),this.hostAttr=function de(It){return q.replace(T,It)}(Jt+"-"+Bt.id)}applyToHost(Rt){super.setAttribute(Rt,this.hostAttr,"")}createElement(Rt,Et){const Bt=super.createElement(Rt,Et);return super.setAttribute(Bt,this.contentAttr,""),Bt}}class R extends je{constructor(Rt,Et,Bt,Jt){super(Rt),this.sharedStylesHost=Et,this.hostEl=Bt,this.shadowRoot=Bt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ai=Le(Jt.id,Jt.styles,[]);for(let mi=0;mi{class It extends ge{constructor(Et){super(Et)}supports(Et){return!0}addEventListener(Et,Bt,Jt){return Et.addEventListener(Bt,Jt,!1),()=>this.removeEventListener(Et,Bt,Jt)}removeEventListener(Et,Bt,Jt){return Et.removeEventListener(Bt,Jt)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const be=["alt","control","meta","shift"],pe={"\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"},Se={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Xe={alt:It=>It.altKey,control:It=>It.ctrlKey,meta:It=>It.metaKey,shift:It=>It.shiftKey};let Je=(()=>{class It extends ge{constructor(Et){super(Et)}supports(Et){return null!=It.parseEventName(Et)}addEventListener(Et,Bt,Jt){const ai=It.parseEventName(Bt),mi=It.eventCallback(ai.fullKey,Jt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(Et,ai.domEventName,mi))}static parseEventName(Et){const Bt=Et.toLowerCase().split("."),Jt=Bt.shift();if(0===Bt.length||"keydown"!==Jt&&"keyup"!==Jt)return null;const ai=It._normalizeKey(Bt.pop());let mi="";if(be.forEach(yi=>{const Wi=Bt.indexOf(yi);Wi>-1&&(Bt.splice(Wi,1),mi+=yi+".")}),mi+=ai,0!=Bt.length||0===ai.length)return null;const bi={};return bi.domEventName=Jt,bi.fullKey=mi,bi}static getEventFullKey(Et){let Bt="",Jt=function nt(It){let Rt=It.key;if(null==Rt){if(Rt=It.keyIdentifier,null==Rt)return"Unidentified";Rt.startsWith("U+")&&(Rt=String.fromCharCode(parseInt(Rt.substring(2),16)),3===It.location&&Se.hasOwnProperty(Rt)&&(Rt=Se[Rt]))}return pe[Rt]||Rt}(Et);return Jt=Jt.toLowerCase()," "===Jt?Jt="space":"."===Jt&&(Jt="dot"),be.forEach(ai=>{ai!=Jt&&Xe[ai](Et)&&(Bt+=ai+".")}),Bt+=Jt,Bt}static eventCallback(Et,Bt,Jt){return ai=>{It.getEventFullKey(ai)===Et&&Jt.runGuarded(()=>Bt(ai))}}static _normalizeKey(Et){return"esc"===Et?"escape":Et}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:It.\u0275fac}),It})();const D=(0,b.eFA)(b._c5,"browser",[{provide:b.Lbi,useValue:e.bD},{provide:b.g9A,useValue:function Ve(){w.makeCurrent(),L.init()},multi:!0},{provide:e.K0,useFactory:function z(){return(0,b.RDi)(document),document},deps:[]}]),H=[{provide:b.zSh,useValue:"root"},{provide:b.qLn,useFactory:function X(){return new b.qLn},deps:[]},{provide:G,useClass:me,multi:!0,deps:[e.K0,b.R0b,b.Lbi]},{provide:G,useClass:Je,multi:!0,deps:[e.K0]},{provide:le,useClass:le,deps:[ne,Me,b.AFp]},{provide:b.FYo,useExisting:le},{provide:J,useExisting:Me},{provide:Me,useClass:Me,deps:[e.K0]},{provide:b.dDg,useClass:b.dDg,deps:[b.R0b]},{provide:ne,useClass:ne,deps:[G,b.R0b]},{provide:e.JF,useClass:O,deps:[]}];let V=(()=>{class It{constructor(Et){if(Et)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Et){return{ngModule:It,providers:[{provide:b.AFp,useValue:Et.appId},{provide:I,useExisting:b.AFp},m]}}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(It,12))},It.\u0275mod=b.oAB({type:It}),It.\u0275inj=b.cJS({providers:H,imports:[e.ez,b.hGG]}),It})(),ae=(()=>{class It{constructor(Et){this._doc=Et}getTitle(){return this._doc.title}setTitle(Et){this._doc.title=Et||""}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function Ae(){return new ae((0,b.LFG)(e.K0))}(),Bt},providedIn:"root"}),It})();"undefined"!=typeof window&&window;let ct=(()=>{class It{}return It.\u0275fac=function(Et){return new(Et||It)},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new(Et||It):b.LFG(xt),Bt},providedIn:"root"}),It})(),xt=(()=>{class It extends ct{constructor(Et){super(),this._doc=Et}sanitize(Et,Bt){if(null==Bt)return null;switch(Et){case b.q3G.NONE:return Bt;case b.q3G.HTML:return(0,b.qzn)(Bt,"HTML")?(0,b.z3N)(Bt):(0,b.EiD)(this._doc,String(Bt)).toString();case b.q3G.STYLE:return(0,b.qzn)(Bt,"Style")?(0,b.z3N)(Bt):Bt;case b.q3G.SCRIPT:if((0,b.qzn)(Bt,"Script"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a script context");case b.q3G.URL:return(0,b.yhl)(Bt),(0,b.qzn)(Bt,"URL")?(0,b.z3N)(Bt):(0,b.mCW)(String(Bt));case b.q3G.RESOURCE_URL:if((0,b.qzn)(Bt,"ResourceURL"))return(0,b.z3N)(Bt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Et} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Et){return(0,b.JVY)(Et)}bypassSecurityTrustStyle(Et){return(0,b.L6k)(Et)}bypassSecurityTrustScript(Et){return(0,b.eBb)(Et)}bypassSecurityTrustUrl(Et){return(0,b.LAX)(Et)}bypassSecurityTrustResourceUrl(Et){return(0,b.pB0)(Et)}}return It.\u0275fac=function(Et){return new(Et||It)(b.LFG(e.K0))},It.\u0275prov=b.Yz7({token:It,factory:function(Et){let Bt=null;return Bt=Et?new Et:function bt(It){return new xt(It.get(e.K0))}(b.LFG(b.zs3)),Bt},providedIn:"root"}),It})()},11735:($e,_e,p)=>{"use strict";p.d(_e,{gz:()=>Dt,m2:()=>W,OD:()=>Be,GZ:()=>Kr,wN:()=>at,F0:()=>Zi,rH:()=>Hn,yS:()=>ln,Bz:()=>ko,lC:()=>Gn});var e=p(5e3),b=p(5254),_=p(21086),w=p(591),g=p(36053),A=p(56498),E=p(84450),C=p(61221),I=p(88514),P=p(68896),m=p(71762),L=p(8929),O=p(92198),G=p(92821),ne=p(34907),ge=p(47314),J=p(35379),oe=p(24850),Re=p(87545),T=p(72986),j=p(1059),Y=p(92014),q=p(27221),te=p(21406),ue=p(87224),de=p(61709),Le=p(22868),Ue=p(74327),ze=p(40537),le=p(89146),je=p(69808);class ye{constructor(se,$){this.id=se,this.url=$}}class Be extends ye{constructor(se,$,Fe="imperative",it=null){super(se,$),this.navigationTrigger=Fe,this.restoredState=it}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class W extends ye{constructor(se,$,Fe){super(se,$),this.urlAfterRedirects=Fe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class R extends ye{constructor(se,$,Fe){super(se,$),this.reason=Fe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class me extends ye{constructor(se,$,Fe){super(se,$),this.error=Fe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class be extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ie extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pe extends ye{constructor(se,$,Fe,it,_t){super(se,$),this.urlAfterRedirects=Fe,this.state=it,this.shouldActivate=_t}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Se extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xe extends ye{constructor(se,$,Fe,it){super(se,$),this.urlAfterRedirects=Fe,this.state=it}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Je{constructor(se){this.route=se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nt{constructor(se){this.route=se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ve{constructor(se){this.snapshot=se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class X{constructor(se){this.snapshot=se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z{constructor(se){this.snapshot=se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{constructor(se){this.snapshot=se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class D{constructor(se,$,Fe){this.routerEvent=se,this.position=$,this.anchor=Fe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const H="primary";class V{constructor(se){this.params=se||{}}has(se){return Object.prototype.hasOwnProperty.call(this.params,se)}get(se){if(this.has(se)){const $=this.params[se];return Array.isArray($)?$[0]:$}return null}getAll(se){if(this.has(se)){const $=this.params[se];return Array.isArray($)?$:[$]}return[]}get keys(){return Object.keys(this.params)}}function xe(Ce){return new V(Ce)}const Qe="ngNavigationCancelingError";function Te(Ce){const se=Error("NavigationCancelingError: "+Ce);return se[Qe]=!0,se}function ae(Ce,se,$){const Fe=$.path.split("/");if(Fe.length>Ce.length||"full"===$.pathMatch&&(se.hasChildren()||Fe.lengthFe[_t]===it)}return Ce===se}function l(Ce){return Array.prototype.concat.apply([],Ce)}function s(Ce){return Ce.length>0?Ce[Ce.length-1]:null}function t(Ce,se){for(const $ in Ce)Ce.hasOwnProperty($)&&se(Ce[$],$)}function n(Ce){return(0,e.CqO)(Ce)?Ce:(0,e.QGY)(Ce)?(0,b.D)(Promise.resolve(Ce)):(0,_.of)(Ce)}const c={exact:function At(Ce,se,$){if(!k(Ce.segments,se.segments)||!mt(Ce.segments,se.segments,$)||Ce.numberOfChildren!==se.numberOfChildren)return!1;for(const Fe in se.children)if(!Ce.children[Fe]||!At(Ce.children[Fe],se.children[Fe],$))return!1;return!0},subset:lt},h={exact:function We(Ce,se){return o(Ce,se)},subset:function Ht(Ce,se){return Object.keys(se).length<=Object.keys(Ce).length&&Object.keys(se).every($=>d(Ce[$],se[$]))},ignored:()=>!0};function x(Ce,se,$){return c[$.paths](Ce.root,se.root,$.matrixParams)&&h[$.queryParams](Ce.queryParams,se.queryParams)&&!("exact"===$.fragment&&Ce.fragment!==se.fragment)}function lt(Ce,se,$){return Ut(Ce,se,se.segments,$)}function Ut(Ce,se,$,Fe){if(Ce.segments.length>$.length){const it=Ce.segments.slice(0,$.length);return!(!k(it,$)||se.hasChildren()||!mt(it,$,Fe))}if(Ce.segments.length===$.length){if(!k(Ce.segments,$)||!mt(Ce.segments,$,Fe))return!1;for(const it in se.children)if(!Ce.children[it]||!lt(Ce.children[it],se.children[it],Fe))return!1;return!0}{const it=$.slice(0,Ce.segments.length),_t=$.slice(Ce.segments.length);return!!(k(Ce.segments,it)&&mt(Ce.segments,it,Fe)&&Ce.children[H])&&Ut(Ce.children[H],se,_t,Fe)}}function mt(Ce,se,$){return se.every((Fe,it)=>h[$](Ce[it].parameters,Fe.parameters))}class Lt{constructor(se,$,Fe){this.root=se,this.queryParams=$,this.fragment=Fe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return ct.serialize(this)}}class Ee{constructor(se,$){this.segments=se,this.children=$,this.parent=null,t($,(Fe,it)=>Fe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class Ge{constructor(se,$){this.path=se,this.parameters=$}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return ai(this)}}function k(Ce,se){return Ce.length===se.length&&Ce.every(($,Fe)=>$.path===se[Fe].path)}class ce{}class He{parse(se){const $=new rn(se);return new Lt($.parseRootSegment(),$.parseQueryParams(),$.parseFragment())}serialize(se){const $=`/${xt(se.root,!0)}`,Fe=function bi(Ce){const se=Object.keys(Ce).map($=>{const Fe=Ce[$];return Array.isArray(Fe)?Fe.map(it=>`${It($)}=${It(it)}`).join("&"):`${It($)}=${It(Fe)}`}).filter($=>!!$);return se.length?`?${se.join("&")}`:""}(se.queryParams);return`${$}${Fe}${"string"==typeof se.fragment?`#${function Rt(Ce){return encodeURI(Ce)}(se.fragment)}`:""}`}}const ct=new He;function bt(Ce){return Ce.segments.map(se=>ai(se)).join("/")}function xt(Ce,se){if(!Ce.hasChildren())return bt(Ce);if(se){const $=Ce.children[H]?xt(Ce.children[H],!1):"",Fe=[];return t(Ce.children,(it,_t)=>{_t!==H&&Fe.push(`${_t}:${xt(it,!1)}`)}),Fe.length>0?`${$}(${Fe.join("//")})`:$}{const $=function ie(Ce,se){let $=[];return t(Ce.children,(Fe,it)=>{it===H&&($=$.concat(se(Fe,it)))}),t(Ce.children,(Fe,it)=>{it!==H&&($=$.concat(se(Fe,it)))}),$}(Ce,(Fe,it)=>it===H?[xt(Ce.children[H],!1)]:[`${it}:${xt(Fe,!1)}`]);return 1===Object.keys(Ce.children).length&&null!=Ce.children[H]?`${bt(Ce)}/${$[0]}`:`${bt(Ce)}/(${$.join("//")})`}}function Yt(Ce){return encodeURIComponent(Ce).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(Ce){return Yt(Ce).replace(/%3B/gi,";")}function Et(Ce){return Yt(Ce).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bt(Ce){return decodeURIComponent(Ce)}function Jt(Ce){return Bt(Ce.replace(/\+/g,"%20"))}function ai(Ce){return`${Et(Ce.path)}${function mi(Ce){return Object.keys(Ce).map(se=>`;${Et(se)}=${Et(Ce[se])}`).join("")}(Ce.parameters)}`}const yi=/^[^\/()?;=#]+/;function Wi(Ce){const se=Ce.match(yi);return se?se[0]:""}const gn=/^[^=?&#]+/,Ki=/^[^&#]+/;class rn{constructor(se){this.url=se,this.remaining=se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ee([],{}):new Ee([],this.parseChildren())}parseQueryParams(){const se={};if(this.consumeOptional("?"))do{this.parseQueryParam(se)}while(this.consumeOptional("&"));return se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const se=[];for(this.peekStartsWith("(")||se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),se.push(this.parseSegment());let $={};this.peekStartsWith("/(")&&(this.capture("/"),$=this.parseParens(!0));let Fe={};return this.peekStartsWith("(")&&(Fe=this.parseParens(!1)),(se.length>0||Object.keys($).length>0)&&(Fe[H]=new Ee(se,$)),Fe}parseSegment(){const se=Wi(this.remaining);if(""===se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(se),new Ge(Bt(se),this.parseMatrixParams())}parseMatrixParams(){const se={};for(;this.consumeOptional(";");)this.parseParam(se);return se}parseParam(se){const $=Wi(this.remaining);if(!$)return;this.capture($);let Fe="";if(this.consumeOptional("=")){const it=Wi(this.remaining);it&&(Fe=it,this.capture(Fe))}se[Bt($)]=Bt(Fe)}parseQueryParam(se){const $=function cn(Ce){const se=Ce.match(gn);return se?se[0]:""}(this.remaining);if(!$)return;this.capture($);let Fe="";if(this.consumeOptional("=")){const Pt=function Tn(Ce){const se=Ce.match(Ki);return se?se[0]:""}(this.remaining);Pt&&(Fe=Pt,this.capture(Fe))}const it=Jt($),_t=Jt(Fe);if(se.hasOwnProperty(it)){let Pt=se[it];Array.isArray(Pt)||(Pt=[Pt],se[it]=Pt),Pt.push(_t)}else se[it]=_t}parseParens(se){const $={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Fe=Wi(this.remaining),it=this.remaining[Fe.length];if("/"!==it&&")"!==it&&";"!==it)throw new Error(`Cannot parse url '${this.url}'`);let _t;Fe.indexOf(":")>-1?(_t=Fe.substr(0,Fe.indexOf(":")),this.capture(_t),this.capture(":")):se&&(_t=H);const Pt=this.parseChildren();$[_t]=1===Object.keys(Pt).length?Pt[H]:new Ee([],Pt),this.consumeOptional("//")}return $}peekStartsWith(se){return this.remaining.startsWith(se)}consumeOptional(se){return!!this.peekStartsWith(se)&&(this.remaining=this.remaining.substring(se.length),!0)}capture(se){if(!this.consumeOptional(se))throw new Error(`Expected "${se}".`)}}class st{constructor(se){this._root=se}get root(){return this._root.value}parent(se){const $=this.pathFromRoot(se);return $.length>1?$[$.length-2]:null}children(se){const $=St(se,this._root);return $?$.children.map(Fe=>Fe.value):[]}firstChild(se){const $=St(se,this._root);return $&&$.children.length>0?$.children[0].value:null}siblings(se){const $=ot(se,this._root);return $.length<2?[]:$[$.length-2].children.map(it=>it.value).filter(it=>it!==se)}pathFromRoot(se){return ot(se,this._root).map($=>$.value)}}function St(Ce,se){if(Ce===se.value)return se;for(const $ of se.children){const Fe=St(Ce,$);if(Fe)return Fe}return null}function ot(Ce,se){if(Ce===se.value)return[se];for(const $ of se.children){const Fe=ot(Ce,$);if(Fe.length)return Fe.unshift(se),Fe}return[]}class Ke{constructor(se,$){this.value=se,this.children=$}toString(){return`TreeNode(${this.value})`}}function vt(Ce){const se={};return Ce&&Ce.children.forEach($=>se[$.value.outlet]=$),se}class F extends st{constructor(se,$){super(se),this.snapshot=$,$i(this,se)}toString(){return this.snapshot.toString()}}function Ye(Ce,se){const $=function gt(Ce,se){const Pt=new Di([],{},{},"",{},H,se,null,Ce.root,-1,{});return new wi("",new Ke(Pt,[]))}(Ce,se),Fe=new w.X([new Ge("",{})]),it=new w.X({}),_t=new w.X({}),Pt=new w.X({}),Ft=new w.X(""),$t=new Dt(Fe,it,Pt,Ft,_t,H,se,$.root);return $t.snapshot=$.root,new F(new Ke($t,[]),$)}class Dt{constructor(se,$,Fe,it,_t,Pt,Ft,$t){this.url=se,this.params=$,this.queryParams=Fe,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this._futureSnapshot=$t}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,oe.U)(se=>xe(se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,oe.U)(se=>xe(se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ri(Ce,se="emptyOnly"){const $=Ce.pathFromRoot;let Fe=0;if("always"!==se)for(Fe=$.length-1;Fe>=1;){const it=$[Fe],_t=$[Fe-1];if(it.routeConfig&&""===it.routeConfig.path)Fe--;else{if(_t.component)break;Fe--}}return function ti(Ce){return Ce.reduce((se,$)=>({params:Object.assign(Object.assign({},se.params),$.params),data:Object.assign(Object.assign({},se.data),$.data),resolve:Object.assign(Object.assign({},se.resolve),$._resolvedData)}),{params:{},data:{},resolve:{}})}($.slice(Fe))}class Di{constructor(se,$,Fe,it,_t,Pt,Ft,$t,Ai,Yi,xi){this.url=se,this.params=$,this.queryParams=Fe,this.fragment=it,this.data=_t,this.outlet=Pt,this.component=Ft,this.routeConfig=$t,this._urlSegment=Ai,this._lastPathIndex=Yi,this._resolve=xi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Fe=>Fe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wi extends st{constructor(se,$){super($),this.url=se,$i(this,$)}toString(){return qi(this._root)}}function $i(Ce,se){se.value._routerState=Ce,se.children.forEach($=>$i(Ce,$))}function qi(Ce){const se=Ce.children.length>0?` { ${Ce.children.map(qi).join(", ")} } `:"";return`${Ce.value}${se}`}function Fi(Ce){if(Ce.snapshot){const se=Ce.snapshot,$=Ce._futureSnapshot;Ce.snapshot=$,o(se.queryParams,$.queryParams)||Ce.queryParams.next($.queryParams),se.fragment!==$.fragment&&Ce.fragment.next($.fragment),o(se.params,$.params)||Ce.params.next($.params),function i(Ce,se){if(Ce.length!==se.length)return!1;for(let $=0;$o($.parameters,se[Fe].parameters))}(Ce.url,se.url);return $&&!(!Ce.parent!=!se.parent)&&(!Ce.parent||Ji(Ce.parent,se.parent))}function Ni(Ce,se,$){if($&&Ce.shouldReuseRoute(se.value,$.value.snapshot)){const Fe=$.value;Fe._futureSnapshot=se.value;const it=function Ri(Ce,se,$){return se.children.map(Fe=>{for(const it of $.children)if(Ce.shouldReuseRoute(Fe.value,it.value.snapshot))return Ni(Ce,Fe,it);return Ni(Ce,Fe)})}(Ce,se,$);return new Ke(Fe,it)}{if(Ce.shouldAttach(se.value)){const _t=Ce.retrieve(se.value);if(null!==_t){const Pt=_t.route;return Pt.value._futureSnapshot=se.value,Pt.children=se.children.map(Ft=>Ni(Ce,Ft)),Pt}}const Fe=function sn(Ce){return new Dt(new w.X(Ce.url),new w.X(Ce.params),new w.X(Ce.queryParams),new w.X(Ce.fragment),new w.X(Ce.data),Ce.outlet,Ce.component,Ce)}(se.value),it=se.children.map(_t=>Ni(Ce,_t));return new Ke(Fe,it)}}function en(Ce){return"object"==typeof Ce&&null!=Ce&&!Ce.outlets&&!Ce.segmentPath}function an(Ce){return"object"==typeof Ce&&null!=Ce&&Ce.outlets}function dn(Ce,se,$,Fe,it){let _t={};return Fe&&t(Fe,(Pt,Ft)=>{_t[Ft]=Array.isArray(Pt)?Pt.map($t=>`${$t}`):`${Pt}`}),new Lt($.root===Ce?se:wn($.root,Ce,se),_t,it)}function wn(Ce,se,$){const Fe={};return t(Ce.children,(it,_t)=>{Fe[_t]=it===se?$:wn(it,se,$)}),new Ee(Ce.segments,Fe)}class xn{constructor(se,$,Fe){if(this.isAbsolute=se,this.numberOfDoubleDots=$,this.commands=Fe,se&&Fe.length>0&&en(Fe[0]))throw new Error("Root segment cannot have matrix parameters");const it=Fe.find(an);if(it&&it!==s(Fe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kn{constructor(se,$,Fe){this.segmentGroup=se,this.processChildren=$,this.index=Fe}}function rt(Ce,se,$){if(Ce||(Ce=new Ee([],{})),0===Ce.segments.length&&Ce.hasChildren())return kt(Ce,se,$);const Fe=function Ze(Ce,se,$){let Fe=0,it=se;const _t={match:!1,pathIndex:0,commandIndex:0};for(;it=$.length)return _t;const Pt=Ce.segments[it],Ft=$[Fe];if(an(Ft))break;const $t=`${Ft}`,Ai=Fe<$.length-1?$[Fe+1]:null;if(it>0&&void 0===$t)break;if($t&&Ai&&"object"==typeof Ai&&void 0===Ai.outlets){if(!jt($t,Ai,Pt))return _t;Fe+=2}else{if(!jt($t,{},Pt))return _t;Fe++}it++}return{match:!0,pathIndex:it,commandIndex:Fe}}(Ce,se,$),it=$.slice(Fe.commandIndex);if(Fe.match&&Fe.pathIndex{"string"==typeof _t&&(_t=[_t]),null!==_t&&(it[Pt]=rt(Ce.children[Pt],se,_t))}),t(Ce.children,(_t,Pt)=>{void 0===Fe[Pt]&&(it[Pt]=_t)}),new Ee(Ce.segments,it)}}function Ot(Ce,se,$){const Fe=Ce.segments.slice(0,se);let it=0;for(;it<$.length;){const _t=$[it];if(an(_t)){const $t=qe(_t.outlets);return new Ee(Fe,$t)}if(0===it&&en($[0])){Fe.push(new Ge(Ce.segments[se].path,Tt($[0]))),it++;continue}const Pt=an(_t)?_t.outlets[H]:`${_t}`,Ft=it<$.length-1?$[it+1]:null;Pt&&Ft&&en(Ft)?(Fe.push(new Ge(Pt,Tt(Ft))),it+=2):(Fe.push(new Ge(Pt,{})),it++)}return new Ee(Fe,{})}function qe(Ce){const se={};return t(Ce,($,Fe)=>{"string"==typeof $&&($=[$]),null!==$&&(se[Fe]=Ot(new Ee([],{}),0,$))}),se}function Tt(Ce){const se={};return t(Ce,($,Fe)=>se[Fe]=`${$}`),se}function jt(Ce,se,$){return Ce==$.path&&o(se,$.parameters)}class vi{constructor(se,$,Fe,it){this.routeReuseStrategy=se,this.futureState=$,this.currState=Fe,this.forwardEvent=it}activate(se){const $=this.futureState._root,Fe=this.currState?this.currState._root:null;this.deactivateChildRoutes($,Fe,se),Fi(this.futureState.root),this.activateChildRoutes($,Fe,se)}deactivateChildRoutes(se,$,Fe){const it=vt($);se.children.forEach(_t=>{const Pt=_t.value.outlet;this.deactivateRoutes(_t,it[Pt],Fe),delete it[Pt]}),t(it,(_t,Pt)=>{this.deactivateRouteAndItsChildren(_t,Fe)})}deactivateRoutes(se,$,Fe){const it=se.value,_t=$?$.value:null;if(it===_t)if(it.component){const Pt=Fe.getContext(it.outlet);Pt&&this.deactivateChildRoutes(se,$,Pt.children)}else this.deactivateChildRoutes(se,$,Fe);else _t&&this.deactivateRouteAndItsChildren($,Fe)}deactivateRouteAndItsChildren(se,$){se.value.component&&this.routeReuseStrategy.shouldDetach(se.value.snapshot)?this.detachAndStoreRouteSubtree(se,$):this.deactivateRouteAndOutlet(se,$)}detachAndStoreRouteSubtree(se,$){const Fe=$.getContext(se.value.outlet),it=Fe&&se.value.component?Fe.children:$,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);if(Fe&&Fe.outlet){const Pt=Fe.outlet.detach(),Ft=Fe.children.onOutletDeactivated();this.routeReuseStrategy.store(se.value.snapshot,{componentRef:Pt,route:se,contexts:Ft})}}deactivateRouteAndOutlet(se,$){const Fe=$.getContext(se.value.outlet),it=Fe&&se.value.component?Fe.children:$,_t=vt(se);for(const Pt of Object.keys(_t))this.deactivateRouteAndItsChildren(_t[Pt],it);Fe&&Fe.outlet&&(Fe.outlet.deactivate(),Fe.children.onOutletDeactivated(),Fe.attachRef=null,Fe.resolver=null,Fe.route=null)}activateChildRoutes(se,$,Fe){const it=vt($);se.children.forEach(_t=>{this.activateRoutes(_t,it[_t.value.outlet],Fe),this.forwardEvent(new Q(_t.value.snapshot))}),se.children.length&&this.forwardEvent(new X(se.value.snapshot))}activateRoutes(se,$,Fe){const it=se.value,_t=$?$.value:null;if(Fi(it),it===_t)if(it.component){const Pt=Fe.getOrCreateContext(it.outlet);this.activateChildRoutes(se,$,Pt.children)}else this.activateChildRoutes(se,$,Fe);else if(it.component){const Pt=Fe.getOrCreateContext(it.outlet);if(this.routeReuseStrategy.shouldAttach(it.snapshot)){const Ft=this.routeReuseStrategy.retrieve(it.snapshot);this.routeReuseStrategy.store(it.snapshot,null),Pt.children.onOutletReAttached(Ft.contexts),Pt.attachRef=Ft.componentRef,Pt.route=Ft.route.value,Pt.outlet&&Pt.outlet.attach(Ft.componentRef,Ft.route.value),Fi(Ft.route.value),this.activateChildRoutes(se,null,Pt.children)}else{const Ft=function Ui(Ce){for(let se=Ce.parent;se;se=se.parent){const $=se.routeConfig;if($&&$._loadedConfig)return $._loadedConfig;if($&&$.component)return null}return null}(it.snapshot),$t=Ft?Ft.module.componentFactoryResolver:null;Pt.attachRef=null,Pt.route=it,Pt.resolver=$t,Pt.outlet&&Pt.outlet.activateWith(it,$t),this.activateChildRoutes(se,null,Pt.children)}}else this.activateChildRoutes(se,null,Fe)}}class Li{constructor(se,$){this.routes=se,this.module=$}}function hn(Ce){return"function"==typeof Ce}function Vn(Ce){return Ce instanceof Lt}const Zn=Symbol("INITIAL_VALUE");function En(){return(0,Re.w)(Ce=>(0,g.aj)(Ce.map(se=>se.pipe((0,T.q)(1),(0,j.O)(Zn)))).pipe((0,Y.R)((se,$)=>{let Fe=!1;return $.reduce((it,_t,Pt)=>it!==Zn?it:(_t===Zn&&(Fe=!0),Fe||!1!==_t&&Pt!==$.length-1&&!Vn(_t)?it:_t),se)},Zn),(0,O.h)(se=>se!==Zn),(0,oe.U)(se=>Vn(se)?se:!0===se),(0,T.q)(1)))}class ur{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Mn,this.attachRef=null}}class Mn{constructor(){this.contexts=new Map}onChildOutletCreated(se,$){const Fe=this.getOrCreateContext(se);Fe.outlet=$,this.contexts.set(se,Fe)}onChildOutletDestroyed(se){const $=this.getContext(se);$&&($.outlet=null,$.attachRef=null)}onOutletDeactivated(){const se=this.contexts;return this.contexts=new Map,se}onOutletReAttached(se){this.contexts=se}getOrCreateContext(se){let $=this.getContext(se);return $||($=new ur,this.contexts.set(se,$)),$}getContext(se){return this.contexts.get(se)||null}}let Gn=(()=>{class Ce{constructor($,Fe,it,_t,Pt){this.parentContexts=$,this.location=Fe,this.resolver=it,this.changeDetector=Pt,this.activated=null,this._activatedRoute=null,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.name=_t||H,$.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const $=this.parentContexts.getContext(this.name);$&&$.route&&($.attachRef?this.attach($.attachRef,$.route):this.activateWith($.route,$.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const $=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit($.instance),$}attach($,Fe){this.activated=$,this._activatedRoute=Fe,this.location.insert($.hostView),this.attachEvents.emit($.instance)}deactivate(){if(this.activated){const $=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit($)}}activateWith($,Fe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=$;const Pt=(Fe=Fe||this.resolver).resolveComponentFactory($._futureSnapshot.routeConfig.component),Ft=this.parentContexts.getOrCreateContext(this.name).children,$t=new sr($,Ft,this.location.injector);this.activated=this.location.createComponent(Pt,this.location.length,$t),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Mn),e.Y36(e.s_b),e.Y36(e._Vd),e.$8M("name"),e.Y36(e.sBO))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),Ce})();class sr{constructor(se,$,Fe){this.route=se,this.childContexts=$,this.parent=Fe}get(se,$){return se===Dt?this.route:se===Mn?this.childContexts:this.parent.get(se,$)}}let ar=(()=>{class Ce{}return Ce.\u0275fac=function($){return new($||Ce)},Ce.\u0275cmp=e.Xpm({type:Ce,selectors:[["ng-component"]],decls:1,vars:0,template:function($,Fe){1&$&&e._UZ(0,"router-outlet")},directives:[Gn],encapsulation:2}),Ce})();function Un(Ce,se=""){for(let $=0;$yn(Fe)===se);return $.push(...Ce.filter(Fe=>yn(Fe)!==se)),$}const $n={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function or(Ce,se,$){var Fe;if(""===se.path)return"full"===se.pathMatch&&(Ce.hasChildren()||$.length>0)?Object.assign({},$n):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const _t=(se.matcher||ae)($,Ce,se);if(!_t)return Object.assign({},$n);const Pt={};t(_t.posParams,($t,Ai)=>{Pt[Ai]=$t.path});const Ft=_t.consumed.length>0?Object.assign(Object.assign({},Pt),_t.consumed[_t.consumed.length-1].parameters):Pt;return{matched:!0,consumedSegments:_t.consumed,lastChild:_t.consumed.length,parameters:Ft,positionalParamSegments:null!==(Fe=_t.posParams)&&void 0!==Fe?Fe:{}}}function zn(Ce,se,$,Fe,it="corrected"){if($.length>0&&function N(Ce,se,$){return $.some(Fe=>Pe(Ce,se,Fe)&&yn(Fe)!==H)}(Ce,$,Fe)){const Pt=new Ee(se,function ft(Ce,se,$,Fe){const it={};it[H]=Fe,Fe._sourceSegment=Ce,Fe._segmentIndexShift=se.length;for(const _t of $)if(""===_t.path&&yn(_t)!==H){const Pt=new Ee([],{});Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,it[yn(_t)]=Pt}return it}(Ce,se,Fe,new Ee($,Ce.children)));return Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:[]}}if(0===$.length&&function Z(Ce,se,$){return $.some(Fe=>Pe(Ce,se,Fe))}(Ce,$,Fe)){const Pt=new Ee(Ce.segments,function lr(Ce,se,$,Fe,it,_t){const Pt={};for(const Ft of Fe)if(Pe(Ce,$,Ft)&&!it[yn(Ft)]){const $t=new Ee([],{});$t._sourceSegment=Ce,$t._segmentIndexShift="legacy"===_t?Ce.segments.length:se.length,Pt[yn(Ft)]=$t}return Object.assign(Object.assign({},it),Pt)}(Ce,se,$,Fe,Ce.children,it));return Pt._sourceSegment=Ce,Pt._segmentIndexShift=se.length,{segmentGroup:Pt,slicedSegments:$}}const _t=new Ee(Ce.segments,Ce.children);return _t._sourceSegment=Ce,_t._segmentIndexShift=se.length,{segmentGroup:_t,slicedSegments:$}}function Pe(Ce,se,$){return(!(Ce.hasChildren()||se.length>0)||"full"!==$.pathMatch)&&""===$.path}function ht(Ce,se,$,Fe){return!!(yn(Ce)===Fe||Fe!==H&&Pe(se,$,Ce))&&("**"===Ce.path||or(se,Ce,$).matched)}function Ct(Ce,se,$){return 0===se.length&&!Ce.children[$]}class ee{constructor(se){this.segmentGroup=se||null}}class Oe{constructor(se){this.urlTree=se}}function he(Ce){return new A.y(se=>se.error(new ee(Ce)))}function tt(Ce){return new A.y(se=>se.error(new Oe(Ce)))}function yt(Ce){return new A.y(se=>se.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Ce}'`)))}class ii{constructor(se,$,Fe,it,_t){this.configLoader=$,this.urlSerializer=Fe,this.urlTree=it,this.config=_t,this.allowRedirects=!0,this.ngModule=se.get(e.h0i)}apply(){const se=zn(this.urlTree.root,[],[],this.config).segmentGroup,$=new Ee(se.segments,se.children);return this.expandSegmentGroup(this.ngModule,this.config,$,H).pipe((0,oe.U)(_t=>this.createUrlTree(ui(_t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,q.K)(_t=>{if(_t instanceof Oe)return this.allowRedirects=!1,this.match(_t.urlTree);throw _t instanceof ee?this.noMatchError(_t):_t}))}match(se){return this.expandSegmentGroup(this.ngModule,this.config,se.root,H).pipe((0,oe.U)(it=>this.createUrlTree(ui(it),se.queryParams,se.fragment))).pipe((0,q.K)(it=>{throw it instanceof ee?this.noMatchError(it):it}))}noMatchError(se){return new Error(`Cannot match any routes. URL Segment: '${se.segmentGroup}'`)}createUrlTree(se,$,Fe){const it=se.segments.length>0?new Ee([],{[H]:se}):se;return new Lt(it,$,Fe)}expandSegmentGroup(se,$,Fe,it){return 0===Fe.segments.length&&Fe.hasChildren()?this.expandChildren(se,$,Fe).pipe((0,oe.U)(_t=>new Ee([],_t))):this.expandSegment(se,Fe,$,Fe.segments,it,!0)}expandChildren(se,$,Fe){const it=[];for(const _t of Object.keys(Fe.children))"primary"===_t?it.unshift(_t):it.push(_t);return(0,b.D)(it).pipe((0,te.b)(_t=>{const Pt=Fe.children[_t],Ft=Cn($,_t);return this.expandSegmentGroup(se,Ft,Pt,_t).pipe((0,oe.U)($t=>({segment:$t,outlet:_t})))}),(0,Y.R)((_t,Pt)=>(_t[Pt.outlet]=Pt.segment,_t),{}),function Me(Ce,se){const $=arguments.length>=2;return Fe=>Fe.pipe(Ce?(0,O.h)((it,_t)=>Ce(it,_t,Fe)):J.y,(0,G.h)(1),$?(0,ge.d)(se):(0,ne.T)(()=>new E.K))}())}expandSegment(se,$,Fe,it,_t,Pt){return(0,b.D)(Fe).pipe((0,te.b)(Ft=>this.expandSegmentAgainstRoute(se,$,Fe,Ft,it,_t,Pt).pipe((0,q.K)(Ai=>{if(Ai instanceof ee)return(0,_.of)(null);throw Ai}))),(0,ue.P)(Ft=>!!Ft),(0,q.K)((Ft,$t)=>{if(Ft instanceof E.K||"EmptyError"===Ft.name){if(Ct($,it,_t))return(0,_.of)(new Ee([],{}));throw new ee($)}throw Ft}))}expandSegmentAgainstRoute(se,$,Fe,it,_t,Pt,Ft){return ht(it,$,_t,Pt)?void 0===it.redirectTo?this.matchSegmentAgainstRoute(se,$,it,_t,Pt):Ft&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt):he($):he($)}expandSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt){return"**"===it.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(se,Fe,it,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(se,$,Fe,it){const _t=this.applyRedirectCommands([],Fe.redirectTo,{});return Fe.redirectTo.startsWith("/")?tt(_t):this.lineralizeSegments(Fe,_t).pipe((0,de.zg)(Pt=>{const Ft=new Ee(Pt,{});return this.expandSegment(se,Ft,$,Pt,it,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(se,$,Fe,it,_t,Pt){const{matched:Ft,consumedSegments:$t,lastChild:Ai,positionalParamSegments:Yi}=or($,it,_t);if(!Ft)return he($);const xi=this.applyRedirectCommands($t,it.redirectTo,Yi);return it.redirectTo.startsWith("/")?tt(xi):this.lineralizeSegments(it,xi).pipe((0,de.zg)(nn=>this.expandSegment(se,$,Fe,nn.concat(_t.slice(Ai)),Pt,!1)))}matchSegmentAgainstRoute(se,$,Fe,it,_t){if("**"===Fe.path)return Fe.loadChildren?(Fe._loadedConfig?(0,_.of)(Fe._loadedConfig):this.configLoader.load(se.injector,Fe)).pipe((0,oe.U)(nn=>(Fe._loadedConfig=nn,new Ee(it,{})))):(0,_.of)(new Ee(it,{}));const{matched:Pt,consumedSegments:Ft,lastChild:$t}=or($,Fe,it);if(!Pt)return he($);const Ai=it.slice($t);return this.getChildConfig(se,Fe,it).pipe((0,de.zg)(xi=>{const nn=xi.module,on=xi.routes,{segmentGroup:os,slicedSegments:Cr}=zn($,Ft,Ai,on),vr=new Ee(os.segments,os.children);if(0===Cr.length&&vr.hasChildren())return this.expandChildren(nn,on,vr).pipe((0,oe.U)(Xr=>new Ee(Ft,Xr)));if(0===on.length&&0===Cr.length)return(0,_.of)(new Ee(Ft,{}));const Mr=yn(Fe)===_t;return this.expandSegment(nn,vr,on,Cr,Mr?H:_t,!0).pipe((0,oe.U)(Sr=>new Ee(Ft.concat(Sr.segments),Sr.children)))}))}getChildConfig(se,$,Fe){return $.children?(0,_.of)(new Li($.children,se)):$.loadChildren?void 0!==$._loadedConfig?(0,_.of)($._loadedConfig):this.runCanLoadGuards(se.injector,$,Fe).pipe((0,de.zg)(it=>it?this.configLoader.load(se.injector,$).pipe((0,oe.U)(_t=>($._loadedConfig=_t,_t))):function Gt(Ce){return new A.y(se=>se.error(Te(`Cannot load children because the guard of the route "path: '${Ce.path}'" returned false`)))}($))):(0,_.of)(new Li([],se))}runCanLoadGuards(se,$,Fe){const it=$.canLoad;if(!it||0===it.length)return(0,_.of)(!0);const _t=it.map(Pt=>{const Ft=se.get(Pt);let $t;if(function dr(Ce){return Ce&&hn(Ce.canLoad)}(Ft))$t=Ft.canLoad($,Fe);else{if(!hn(Ft))throw new Error("Invalid CanLoad guard");$t=Ft($,Fe)}return n($t)});return(0,_.of)(_t).pipe(En(),(0,Le.b)(Pt=>{if(!Vn(Pt))return;const Ft=Te(`Redirecting to "${this.urlSerializer.serialize(Pt)}"`);throw Ft.url=Pt,Ft}),(0,oe.U)(Pt=>!0===Pt))}lineralizeSegments(se,$){let Fe=[],it=$.root;for(;;){if(Fe=Fe.concat(it.segments),0===it.numberOfChildren)return(0,_.of)(Fe);if(it.numberOfChildren>1||!it.children[H])return yt(se.redirectTo);it=it.children[H]}}applyRedirectCommands(se,$,Fe){return this.applyRedirectCreatreUrlTree($,this.urlSerializer.parse($),se,Fe)}applyRedirectCreatreUrlTree(se,$,Fe,it){const _t=this.createSegmentGroup(se,$.root,Fe,it);return new Lt(_t,this.createQueryParams($.queryParams,this.urlTree.queryParams),$.fragment)}createQueryParams(se,$){const Fe={};return t(se,(it,_t)=>{if("string"==typeof it&&it.startsWith(":")){const Ft=it.substring(1);Fe[_t]=$[Ft]}else Fe[_t]=it}),Fe}createSegmentGroup(se,$,Fe,it){const _t=this.createSegments(se,$.segments,Fe,it);let Pt={};return t($.children,(Ft,$t)=>{Pt[$t]=this.createSegmentGroup(se,Ft,Fe,it)}),new Ee(_t,Pt)}createSegments(se,$,Fe,it){return $.map(_t=>_t.path.startsWith(":")?this.findPosParam(se,_t,it):this.findOrReturn(_t,Fe))}findPosParam(se,$,Fe){const it=Fe[$.path.substring(1)];if(!it)throw new Error(`Cannot redirect to '${se}'. Cannot find '${$.path}'.`);return it}findOrReturn(se,$){let Fe=0;for(const it of $){if(it.path===se.path)return $.splice(Fe),it;Fe++}return se}}function ui(Ce){const se={};for(const Fe of Object.keys(Ce.children)){const _t=ui(Ce.children[Fe]);(_t.segments.length>0||_t.hasChildren())&&(se[Fe]=_t)}return function di(Ce){if(1===Ce.numberOfChildren&&Ce.children[H]){const se=Ce.children[H];return new Ee(Ce.segments.concat(se.segments),se.children)}return Ce}(new Ee(Ce.segments,se))}class Ti{constructor(se){this.path=se,this.route=this.path[this.path.length-1]}}class Hi{constructor(se,$){this.component=se,this.route=$}}function Ne(Ce,se,$){const Fe=Ce._root;return Zt(Fe,se?se._root:null,$,[Fe.value])}function we(Ce,se,$){const Fe=function ut(Ce){if(!Ce)return null;for(let se=Ce.parent;se;se=se.parent){const $=se.routeConfig;if($&&$._loadedConfig)return $._loadedConfig}return null}(se);return(Fe?Fe.module.injector:$).get(Ce)}function Zt(Ce,se,$,Fe,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=vt(se);return Ce.children.forEach(Pt=>{(function hi(Ce,se,$,Fe,it={canDeactivateChecks:[],canActivateChecks:[]}){const _t=Ce.value,Pt=se?se.value:null,Ft=$?$.getContext(Ce.value.outlet):null;if(Pt&&_t.routeConfig===Pt.routeConfig){const $t=function ji(Ce,se,$){if("function"==typeof $)return $(Ce,se);switch($){case"pathParamsChange":return!k(Ce.url,se.url);case"pathParamsOrQueryParamsChange":return!k(Ce.url,se.url)||!o(Ce.queryParams,se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ji(Ce,se)||!o(Ce.queryParams,se.queryParams);default:return!Ji(Ce,se)}}(Pt,_t,_t.routeConfig.runGuardsAndResolvers);$t?it.canActivateChecks.push(new Ti(Fe)):(_t.data=Pt.data,_t._resolvedData=Pt._resolvedData),Zt(Ce,se,_t.component?Ft?Ft.children:null:$,Fe,it),$t&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&it.canDeactivateChecks.push(new Hi(Ft.outlet.component,Pt))}else Pt&&tn(se,Ft,it),it.canActivateChecks.push(new Ti(Fe)),Zt(Ce,null,_t.component?Ft?Ft.children:null:$,Fe,it)})(Pt,_t[Pt.value.outlet],$,Fe.concat([Pt.value]),it),delete _t[Pt.value.outlet]}),t(_t,(Pt,Ft)=>tn(Pt,$.getContext(Ft),it)),it}function tn(Ce,se,$){const Fe=vt(Ce),it=Ce.value;t(Fe,(_t,Pt)=>{tn(_t,it.component?se?se.children.getContext(Pt):null:se,$)}),$.canDeactivateChecks.push(new Hi(it.component&&se&&se.outlet&&se.outlet.isActivated?se.outlet.component:null,it))}class Vi{}function pn(Ce){return new A.y(se=>se.error(Ce))}class Pn{constructor(se,$,Fe,it,_t,Pt){this.rootComponentType=se,this.config=$,this.urlTree=Fe,this.url=it,this.paramsInheritanceStrategy=_t,this.relativeLinkResolution=Pt}recognize(){const se=zn(this.urlTree.root,[],[],this.config.filter(Pt=>void 0===Pt.redirectTo),this.relativeLinkResolution).segmentGroup,$=this.processSegmentGroup(this.config,se,H);if(null===$)return null;const Fe=new Di([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},H,this.rootComponentType,null,this.urlTree.root,-1,{}),it=new Ke(Fe,$),_t=new wi(this.url,it);return this.inheritParamsAndData(_t._root),_t}inheritParamsAndData(se){const $=se.value,Fe=ri($,this.paramsInheritanceStrategy);$.params=Object.freeze(Fe.params),$.data=Object.freeze(Fe.data),se.children.forEach(it=>this.inheritParamsAndData(it))}processSegmentGroup(se,$,Fe){return 0===$.segments.length&&$.hasChildren()?this.processChildren(se,$):this.processSegment(se,$,$.segments,Fe)}processChildren(se,$){const Fe=[];for(const _t of Object.keys($.children)){const Pt=$.children[_t],Ft=Cn(se,_t),$t=this.processSegmentGroup(Ft,Pt,_t);if(null===$t)return null;Fe.push(...$t)}const it=wr(Fe);return function Yn(Ce){Ce.sort((se,$)=>se.value.outlet===H?-1:$.value.outlet===H?1:se.value.outlet.localeCompare($.value.outlet))}(it),it}processSegment(se,$,Fe,it){for(const _t of se){const Pt=this.processSegmentAgainstRoute(_t,$,Fe,it);if(null!==Pt)return Pt}return Ct($,Fe,it)?[]:null}processSegmentAgainstRoute(se,$,Fe,it){if(se.redirectTo||!ht(se,$,Fe,it))return null;let _t,Pt=[],Ft=[];if("**"===se.path){const on=Fe.length>0?s(Fe).parameters:{};_t=new Di(Fe,on,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn($),Sn($)+Fe.length,er(se))}else{const on=or($,se,Fe);if(!on.matched)return null;Pt=on.consumedSegments,Ft=Fe.slice(on.lastChild),_t=new Di(Pt,on.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Xn(se),yn(se),se.component,se,mn($),Sn($)+Pt.length,er(se))}const $t=function fn(Ce){return Ce.children?Ce.children:Ce.loadChildren?Ce._loadedConfig.routes:[]}(se),{segmentGroup:Ai,slicedSegments:Yi}=zn($,Pt,Ft,$t.filter(on=>void 0===on.redirectTo),this.relativeLinkResolution);if(0===Yi.length&&Ai.hasChildren()){const on=this.processChildren($t,Ai);return null===on?null:[new Ke(_t,on)]}if(0===$t.length&&0===Yi.length)return[new Ke(_t,[])];const xi=yn(se)===it,nn=this.processSegment($t,Ai,Yi,xi?H:it);return null===nn?null:[new Ke(_t,nn)]}}function $r(Ce){const se=Ce.value.routeConfig;return se&&""===se.path&&void 0===se.redirectTo}function wr(Ce){const se=[],$=new Set;for(const Fe of Ce){if(!$r(Fe)){se.push(Fe);continue}const it=se.find(_t=>Fe.value.routeConfig===_t.value.routeConfig);void 0!==it?(it.children.push(...Fe.children),$.add(it)):se.push(Fe)}for(const Fe of $){const it=wr(Fe.children);se.push(new Ke(Fe.value,it))}return se.filter(Fe=>!$.has(Fe))}function mn(Ce){let se=Ce;for(;se._sourceSegment;)se=se._sourceSegment;return se}function Sn(Ce){let se=Ce,$=se._segmentIndexShift?se._segmentIndexShift:0;for(;se._sourceSegment;)se=se._sourceSegment,$+=se._segmentIndexShift?se._segmentIndexShift:0;return $-1}function Xn(Ce){return Ce.data||{}}function er(Ce){return Ce.resolve||{}}function _s(Ce){return[...Object.keys(Ce),...Object.getOwnPropertySymbols(Ce)]}function fe(Ce){return(0,Re.w)(se=>{const $=Ce(se);return $?(0,b.D)($).pipe((0,oe.U)(()=>se)):(0,_.of)(se)})}class at{}class pt extends class ke{shouldDetach(se){return!1}store(se,$){}shouldAttach(se){return!1}retrieve(se){return null}shouldReuseRoute(se,$){return se.routeConfig===$.routeConfig}}{}const Vt=new e.OlP("ROUTES");class qt{constructor(se,$,Fe,it){this.injector=se,this.compiler=$,this.onLoadStartListener=Fe,this.onLoadEndListener=it}load(se,$){if($._loader$)return $._loader$;this.onLoadStartListener&&this.onLoadStartListener($);const it=this.loadModuleFactory($.loadChildren).pipe((0,oe.U)(_t=>{this.onLoadEndListener&&this.onLoadEndListener($);const Pt=_t.create(se);return new Li(l(Pt.injector.get(Vt,void 0,e.XFs.Self|e.XFs.Optional)).map(In),Pt)}),(0,q.K)(_t=>{throw $._loader$=void 0,_t}));return $._loader$=new m.c(it,()=>new L.xQ).pipe((0,Ue.x)()),$._loader$}loadModuleFactory(se){return n(se()).pipe((0,de.zg)($=>$ instanceof e.YKP?(0,_.of)($):(0,b.D)(this.compiler.compileModuleAsync($))))}}class pi{shouldProcessUrl(se){return!0}extract(se){return se}merge(se,$){return se}}function oi(Ce){throw Ce}function Si(Ce,se,$){return se.parse("/")}function Gi(Ce,se){return(0,_.of)(null)}const An={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Zi=(()=>{class Ce{constructor($,Fe,it,_t,Pt,Ft,$t){this.rootComponentType=$,this.urlSerializer=Fe,this.rootContexts=it,this.location=_t,this.config=$t,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new L.xQ,this.errorHandler=oi,this.malformedUriErrorHandler=Si,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gi,afterPreactivation:Gi},this.urlHandlingStrategy=new pi,this.routeReuseStrategy=new pt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Pt.get(e.h0i),this.console=Pt.get(e.c2e);const xi=Pt.get(e.R0b);this.isNgZoneEnabled=xi instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig($t),this.currentUrlTree=function a(){return new Lt(new Ee([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new qt(Pt,Ft,nn=>this.triggerEvent(new Je(nn)),nn=>this.triggerEvent(new nt(nn))),this.routerState=Ye(this.currentUrlTree,this.rootComponentType),this.transitions=new w.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var $;return null===($=this.location.getState())||void 0===$?void 0:$.\u0275routerPageId}setupNavigations($){const Fe=this.events;return $.pipe((0,O.h)(it=>0!==it.id),(0,oe.U)(it=>Object.assign(Object.assign({},it),{extractedUrl:this.urlHandlingStrategy.extract(it.rawUrl)})),(0,Re.w)(it=>{let _t=!1,Pt=!1;return(0,_.of)(it).pipe((0,Le.b)(Ft=>{this.currentNavigation={id:Ft.id,initialUrl:Ft.currentRawUrl,extractedUrl:Ft.extractedUrl,trigger:Ft.source,extras:Ft.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Re.w)(Ft=>{const $t=this.browserUrlTree.toString(),Ai=!this.navigated||Ft.extractedUrl.toString()!==$t||$t!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Ai)&&this.urlHandlingStrategy.shouldProcessUrl(Ft.rawUrl))return Pi(Ft.source)&&(this.browserUrlTree=Ft.extractedUrl),(0,_.of)(Ft).pipe((0,Re.w)(xi=>{const nn=this.transitions.getValue();return Fe.next(new Be(xi.id,this.serializeUrl(xi.extractedUrl),xi.source,xi.restoredState)),nn!==this.transitions.getValue()?P.E:Promise.resolve(xi)}),function _i(Ce,se,$,Fe){return(0,Re.w)(it=>function Wt(Ce,se,$,Fe,it){return new ii(Ce,se,$,Fe,it).apply()}(Ce,se,$,it.extractedUrl,Fe).pipe((0,oe.U)(_t=>Object.assign(Object.assign({},it),{urlAfterRedirects:_t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Le.b)(xi=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:xi.urlAfterRedirects})}),function fr(Ce,se,$,Fe,it){return(0,de.zg)(_t=>function vn(Ce,se,$,Fe,it="emptyOnly",_t="legacy"){try{const Pt=new Pn(Ce,se,$,Fe,it,_t).recognize();return null===Pt?pn(new Vi):(0,_.of)(Pt)}catch(Pt){return pn(Pt)}}(Ce,se,_t.urlAfterRedirects,$(_t.urlAfterRedirects),Fe,it).pipe((0,oe.U)(Pt=>Object.assign(Object.assign({},_t),{targetSnapshot:Pt}))))}(this.rootComponentType,this.config,xi=>this.serializeUrl(xi),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Le.b)(xi=>{if("eager"===this.urlUpdateStrategy){if(!xi.extras.skipLocationChange){const on=this.urlHandlingStrategy.merge(xi.urlAfterRedirects,xi.rawUrl);this.setBrowserUrl(on,xi)}this.browserUrlTree=xi.urlAfterRedirects}const nn=new be(xi.id,this.serializeUrl(xi.extractedUrl),this.serializeUrl(xi.urlAfterRedirects),xi.targetSnapshot);Fe.next(nn)}));if(Ai&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:nn,extractedUrl:on,source:os,restoredState:Cr,extras:vr}=Ft,Mr=new Be(nn,this.serializeUrl(on),os,Cr);Fe.next(Mr);const ls=Ye(on,this.rootComponentType).snapshot;return(0,_.of)(Object.assign(Object.assign({},Ft),{targetSnapshot:ls,urlAfterRedirects:on,extras:Object.assign(Object.assign({},vr),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Ft.rawUrl,Ft.resolve(null),P.E}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.beforePreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,Le.b)(Ft=>{const $t=new Ie(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot);this.triggerEvent($t)}),(0,oe.U)(Ft=>Object.assign(Object.assign({},Ft),{guards:Ne(Ft.targetSnapshot,Ft.currentSnapshot,this.rootContexts)})),function Kn(Ce,se){return(0,de.zg)($=>{const{targetSnapshot:Fe,currentSnapshot:it,guards:{canActivateChecks:_t,canDeactivateChecks:Pt}}=$;return 0===Pt.length&&0===_t.length?(0,_.of)(Object.assign(Object.assign({},$),{guardsResult:!0})):function Wn(Ce,se,$,Fe){return(0,b.D)(Ce).pipe((0,de.zg)(it=>function gi(Ce,se,$,Fe,it){const _t=se&&se.routeConfig?se.routeConfig.canDeactivate:null;if(!_t||0===_t.length)return(0,_.of)(!0);const Pt=_t.map(Ft=>{const $t=we(Ft,se,it);let Ai;if(function rr(Ce){return Ce&&hn(Ce.canDeactivate)}($t))Ai=n($t.canDeactivate(Ce,se,$,Fe));else{if(!hn($t))throw new Error("Invalid CanDeactivate guard");Ai=n($t(Ce,se,$,Fe))}return Ai.pipe((0,ue.P)())});return(0,_.of)(Pt).pipe(En())}(it.component,it.route,$,se,Fe)),(0,ue.P)(it=>!0!==it,!0))}(Pt,Fe,it,Ce).pipe((0,de.zg)(Ft=>Ft&&function cr(Ce){return"boolean"==typeof Ce}(Ft)?function pr(Ce,se,$,Fe){return(0,b.D)(se).pipe((0,te.b)(it=>(0,C.z)(function Xt(Ce,se){return null!==Ce&&se&&se(new Ve(Ce)),(0,_.of)(!0)}(it.route.parent,Fe),function Qr(Ce,se){return null!==Ce&&se&&se(new z(Ce)),(0,_.of)(!0)}(it.route,Fe),function Ei(Ce,se,$){const Fe=se[se.length-1],_t=se.slice(0,se.length-1).reverse().map(Pt=>function De(Ce){const se=Ce.routeConfig?Ce.routeConfig.canActivateChild:null;return se&&0!==se.length?{node:Ce,guards:se}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,I.P)(()=>{const Ft=Pt.guards.map($t=>{const Ai=we($t,Pt.node,$);let Yi;if(function Lr(Ce){return Ce&&hn(Ce.canActivateChild)}(Ai))Yi=n(Ai.canActivateChild(Fe,Ce));else{if(!hn(Ai))throw new Error("Invalid CanActivateChild guard");Yi=n(Ai(Fe,Ce))}return Yi.pipe((0,ue.P)())});return(0,_.of)(Ft).pipe(En())}));return(0,_.of)(_t).pipe(En())}(Ce,it.path,$),function si(Ce,se,$){const Fe=se.routeConfig?se.routeConfig.canActivate:null;if(!Fe||0===Fe.length)return(0,_.of)(!0);const it=Fe.map(_t=>(0,I.P)(()=>{const Pt=we(_t,se,$);let Ft;if(function Qn(Ce){return Ce&&hn(Ce.canActivate)}(Pt))Ft=n(Pt.canActivate(se,Ce));else{if(!hn(Pt))throw new Error("Invalid CanActivate guard");Ft=n(Pt(se,Ce))}return Ft.pipe((0,ue.P)())}));return(0,_.of)(it).pipe(En())}(Ce,it.route,$))),(0,ue.P)(it=>!0!==it,!0))}(Fe,_t,Ce,se):(0,_.of)(Ft)),(0,oe.U)(Ft=>Object.assign(Object.assign({},$),{guardsResult:Ft})))})}(this.ngModule.injector,Ft=>this.triggerEvent(Ft)),(0,Le.b)(Ft=>{if(Vn(Ft.guardsResult)){const Ai=Te(`Redirecting to "${this.serializeUrl(Ft.guardsResult)}"`);throw Ai.url=Ft.guardsResult,Ai}const $t=new pe(Ft.id,this.serializeUrl(Ft.extractedUrl),this.serializeUrl(Ft.urlAfterRedirects),Ft.targetSnapshot,!!Ft.guardsResult);this.triggerEvent($t)}),(0,O.h)(Ft=>!!Ft.guardsResult||(this.restoreHistory(Ft),this.cancelNavigationTransition(Ft,""),!1)),fe(Ft=>{if(Ft.guards.canActivateChecks.length)return(0,_.of)(Ft).pipe((0,Le.b)($t=>{const Ai=new Se($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}),(0,Re.w)($t=>{let Ai=!1;return(0,_.of)($t).pipe(function aa(Ce,se){return(0,de.zg)($=>{const{targetSnapshot:Fe,guards:{canActivateChecks:it}}=$;if(!it.length)return(0,_.of)($);let _t=0;return(0,b.D)(it).pipe((0,te.b)(Pt=>function gs(Ce,se,$,Fe){return function oa(Ce,se,$,Fe){const it=_s(Ce);if(0===it.length)return(0,_.of)({});const _t={};return(0,b.D)(it).pipe((0,de.zg)(Pt=>function As(Ce,se,$,Fe){const it=we(Ce,se,Fe);return n(it.resolve?it.resolve(se,$):it(se,$))}(Ce[Pt],se,$,Fe).pipe((0,Le.b)(Ft=>{_t[Pt]=Ft}))),(0,G.h)(1),(0,de.zg)(()=>_s(_t).length===it.length?(0,_.of)(_t):P.E))}(Ce._resolve,Ce,se,Fe).pipe((0,oe.U)(_t=>(Ce._resolvedData=_t,Ce.data=Object.assign(Object.assign({},Ce.data),ri(Ce,$).resolve),null)))}(Pt.route,Fe,Ce,se)),(0,Le.b)(()=>_t++),(0,G.h)(1),(0,de.zg)(Pt=>_t===it.length?(0,_.of)($):P.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Le.b)({next:()=>Ai=!0,complete:()=>{Ai||(this.restoreHistory($t),this.cancelNavigationTransition($t,"At least one route resolver didn't emit any value."))}}))}),(0,Le.b)($t=>{const Ai=new Xe($t.id,this.serializeUrl($t.extractedUrl),this.serializeUrl($t.urlAfterRedirects),$t.targetSnapshot);this.triggerEvent(Ai)}))}),fe(Ft=>{const{targetSnapshot:$t,id:Ai,extractedUrl:Yi,rawUrl:xi,extras:{skipLocationChange:nn,replaceUrl:on}}=Ft;return this.hooks.afterPreactivation($t,{navigationId:Ai,appliedUrlTree:Yi,rawUrlTree:xi,skipLocationChange:!!nn,replaceUrl:!!on})}),(0,oe.U)(Ft=>{const $t=function _n(Ce,se,$){const Fe=Ni(Ce,se._root,$?$._root:void 0);return new F(Fe,se)}(this.routeReuseStrategy,Ft.targetSnapshot,Ft.currentRouterState);return Object.assign(Object.assign({},Ft),{targetRouterState:$t})}),(0,Le.b)(Ft=>{this.currentUrlTree=Ft.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Ft.urlAfterRedirects,Ft.rawUrl),this.routerState=Ft.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Ft.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Ft),this.browserUrlTree=Ft.urlAfterRedirects)}),((Ce,se,$)=>(0,oe.U)(Fe=>(new vi(se,Fe.targetRouterState,Fe.currentRouterState,$).activate(Ce),Fe)))(this.rootContexts,this.routeReuseStrategy,Ft=>this.triggerEvent(Ft)),(0,Le.b)({next(){_t=!0},complete(){_t=!0}}),(0,ze.x)(()=>{var Ft;_t||Pt||this.cancelNavigationTransition(it,`Navigation ID ${it.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id)===it.id&&(this.currentNavigation=null)}),(0,q.K)(Ft=>{if(Pt=!0,function Ae(Ce){return Ce&&Ce[Qe]}(Ft)){const $t=Vn(Ft.url);$t||(this.navigated=!0,this.restoreHistory(it,!0));const Ai=new R(it.id,this.serializeUrl(it.extractedUrl),Ft.message);Fe.next(Ai),$t?setTimeout(()=>{const Yi=this.urlHandlingStrategy.merge(Ft.url,this.rawUrlTree),xi={skipLocationChange:it.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Pi(it.source)};this.scheduleNavigation(Yi,"imperative",null,xi,{resolve:it.resolve,reject:it.reject,promise:it.promise})},0):it.resolve(!1)}else{this.restoreHistory(it,!0);const $t=new me(it.id,this.serializeUrl(it.extractedUrl),Ft);Fe.next($t);try{it.resolve(this.errorHandler(Ft))}catch(Ai){it.reject(Ai)}}return P.E}))}))}resetRootComponentType($){this.rootComponentType=$,this.routerState.root.component=this.rootComponentType}setTransition($){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),$))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe($=>{const Fe="popstate"===$.type?"popstate":"hashchange";"popstate"===Fe&&setTimeout(()=>{var it;const _t={replaceUrl:!0},Pt=(null===(it=$.state)||void 0===it?void 0:it.navigationId)?$.state:null;if(Pt){const $t=Object.assign({},Pt);delete $t.navigationId,delete $t.\u0275routerPageId,0!==Object.keys($t).length&&(_t.state=$t)}const Ft=this.parseUrl($.url);this.scheduleNavigation(Ft,Fe,Pt,_t)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent($){this.events.next($)}resetConfig($){Un($),this.config=$.map(In),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree($,Fe={}){const{relativeTo:it,queryParams:_t,fragment:Pt,queryParamsHandling:Ft,preserveFragment:$t}=Fe,Ai=it||this.routerState.root,Yi=$t?this.currentUrlTree.fragment:Pt;let xi=null;switch(Ft){case"merge":xi=Object.assign(Object.assign({},this.currentUrlTree.queryParams),_t);break;case"preserve":xi=this.currentUrlTree.queryParams;break;default:xi=_t||null}return null!==xi&&(xi=this.removeEmptyProps(xi)),function Xi(Ce,se,$,Fe,it){if(0===$.length)return dn(se.root,se.root,se,Fe,it);const _t=function Oi(Ce){if("string"==typeof Ce[0]&&1===Ce.length&&"/"===Ce[0])return new xn(!0,0,Ce);let se=0,$=!1;const Fe=Ce.reduce((it,_t,Pt)=>{if("object"==typeof _t&&null!=_t){if(_t.outlets){const Ft={};return t(_t.outlets,($t,Ai)=>{Ft[Ai]="string"==typeof $t?$t.split("/"):$t}),[...it,{outlets:Ft}]}if(_t.segmentPath)return[...it,_t.segmentPath]}return"string"!=typeof _t?[...it,_t]:0===Pt?(_t.split("/").forEach((Ft,$t)=>{0==$t&&"."===Ft||(0==$t&&""===Ft?$=!0:".."===Ft?se++:""!=Ft&&it.push(Ft))}),it):[...it,_t]},[]);return new xn($,se,Fe)}($);if(_t.toRoot())return dn(se.root,new Ee([],{}),se,Fe,it);const Pt=function Nn(Ce,se,$){if(Ce.isAbsolute)return new kn(se.root,!0,0);if(-1===$.snapshot._lastPathIndex){const _t=$.snapshot._urlSegment;return new kn(_t,_t===se.root,0)}const Fe=en(Ce.commands[0])?0:1;return function Mt(Ce,se,$){let Fe=Ce,it=se,_t=$;for(;_t>it;){if(_t-=it,Fe=Fe.parent,!Fe)throw new Error("Invalid number of '../'");it=Fe.segments.length}return new kn(Fe,!1,it-_t)}($.snapshot._urlSegment,$.snapshot._lastPathIndex+Fe,Ce.numberOfDoubleDots)}(_t,se,Ce),Ft=Pt.processChildren?kt(Pt.segmentGroup,Pt.index,_t.commands):rt(Pt.segmentGroup,Pt.index,_t.commands);return dn(Pt.segmentGroup,Ft,se,Fe,it)}(Ai,this.currentUrlTree,$,xi,null!=Yi?Yi:null)}navigateByUrl($,Fe={skipLocationChange:!1}){const it=Vn($)?$:this.parseUrl($),_t=this.urlHandlingStrategy.merge(it,this.rawUrlTree);return this.scheduleNavigation(_t,"imperative",null,Fe)}navigate($,Fe={skipLocationChange:!1}){return function Bi(Ce){for(let se=0;se{const _t=$[it];return null!=_t&&(Fe[it]=_t),Fe},{})}processNavigations(){this.navigations.subscribe($=>{this.navigated=!0,this.lastSuccessfulId=$.id,this.currentPageId=$.targetPageId,this.events.next(new W($.id,this.serializeUrl($.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,$.resolve(!0)},$=>{this.console.warn(`Unhandled Navigation Error: ${$}`)})}scheduleNavigation($,Fe,it,_t,Pt){var Ft,$t,Ai;if(this.disposed)return Promise.resolve(!1);const Yi=this.transitions.value,xi=Pi(Fe)&&Yi&&!Pi(Yi.source),nn=Yi.rawUrl.toString()===$.toString(),on=Yi.id===(null===(Ft=this.currentNavigation)||void 0===Ft?void 0:Ft.id);if(xi&&nn&&on)return Promise.resolve(!0);let Cr,vr,Mr;Pt?(Cr=Pt.resolve,vr=Pt.reject,Mr=Pt.promise):Mr=new Promise((Xr,Es)=>{Cr=Xr,vr=Es});const ls=++this.navigationId;let Sr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(it=this.location.getState()),Sr=it&&it.\u0275routerPageId?it.\u0275routerPageId:_t.replaceUrl||_t.skipLocationChange?null!==($t=this.browserPageId)&&void 0!==$t?$t:0:(null!==(Ai=this.browserPageId)&&void 0!==Ai?Ai:0)+1):Sr=0,this.setTransition({id:ls,targetPageId:Sr,source:Fe,restoredState:it,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:$,extras:_t,resolve:Cr,reject:vr,promise:Mr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Mr.catch(Xr=>Promise.reject(Xr))}setBrowserUrl($,Fe){const it=this.urlSerializer.serialize($),_t=Object.assign(Object.assign({},Fe.extras.state),this.generateNgRouterState(Fe.id,Fe.targetPageId));this.location.isCurrentPathEqualTo(it)||Fe.extras.replaceUrl?this.location.replaceState(it,"",_t):this.location.go(it,"",_t)}restoreHistory($,Fe=!1){var it,_t;if("computed"===this.canceledNavigationResolution){const Pt=this.currentPageId-$.targetPageId;"popstate"!==$.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(it=this.currentNavigation)||void 0===it?void 0:it.finalUrl)||0===Pt?this.currentUrlTree===(null===(_t=this.currentNavigation)||void 0===_t?void 0:_t.finalUrl)&&0===Pt&&(this.resetState($),this.browserUrlTree=$.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Pt)}else"replace"===this.canceledNavigationResolution&&(Fe&&this.resetState($),this.resetUrlToCurrentUrlTree())}resetState($){this.routerState=$.currentRouterState,this.currentUrlTree=$.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,$.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition($,Fe){const it=new R($.id,this.serializeUrl($.extractedUrl),Fe);this.triggerEvent(it),$.resolve(!1)}generateNgRouterState($,Fe){return"computed"===this.canceledNavigationResolution?{navigationId:$,\u0275routerPageId:Fe}:{navigationId:$}}}return Ce.\u0275fac=function($){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function Pi(Ce){return"imperative"!==Ce}let Hn=(()=>{class Ce{constructor($,Fe,it,_t,Pt){this.router=$,this.route=Fe,this.tabIndexAttribute=it,this.renderer=_t,this.el=Pt,this.commands=null,this.onChanges=new L.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl($){if(null!=this.tabIndexAttribute)return;const Fe=this.renderer,it=this.el.nativeElement;null!==$?Fe.setAttribute(it,"tabindex",$):Fe.removeAttribute(it,"tabindex")}ngOnChanges($){this.onChanges.next(this)}set routerLink($){null!=$?(this.commands=Array.isArray($)?$:[$],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const $={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,$),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zi(this.preserveFragment)})}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Zi),e.Y36(Dt),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function($,Fe){1&$&&e.NdJ("click",function(){return Fe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})(),ln=(()=>{class Ce{constructor($,Fe,it){this.router=$,this.route=Fe,this.locationStrategy=it,this.commands=null,this.href=null,this.onChanges=new L.xQ,this.subscription=$.events.subscribe(_t=>{_t instanceof W&&this.updateTargetUrlAndHref()})}set routerLink($){this.commands=null!=$?Array.isArray($)?$:[$]:null}ngOnChanges($){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick($,Fe,it,_t,Pt){if(0!==$||Fe||it||_t||Pt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Ft={skipLocationChange:zi(this.skipLocationChange),replaceUrl:zi(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Ft),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zi(this.preserveFragment)})}}return Ce.\u0275fac=function($){return new($||Ce)(e.Y36(Zi),e.Y36(Dt),e.Y36(je.S$))},Ce.\u0275dir=e.lG2({type:Ce,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function($,Fe){1&$&&e.NdJ("click",function(_t){return Fe.onClick(_t.button,_t.ctrlKey,_t.shiftKey,_t.altKey,_t.metaKey)}),2&$&&e.uIk("target",Fe.target)("href",Fe.href,e.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[e.TTD]}),Ce})();function zi(Ce){return""===Ce||!!Ce}class Wa{}class Kr{preload(se,$){return(0,_.of)(null)}}let is=(()=>{class Ce{constructor($,Fe,it,_t){this.router=$,this.injector=it,this.preloadingStrategy=_t,this.loader=new qt(it,Fe,$t=>$.triggerEvent(new Je($t)),$t=>$.triggerEvent(new nt($t)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,O.h)($=>$ instanceof W),(0,te.b)(()=>this.preload())).subscribe(()=>{})}preload(){const $=this.injector.get(e.h0i);return this.processRoutes($,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes($,Fe){const it=[];for(const _t of Fe)if(_t.loadChildren&&!_t.canLoad&&_t._loadedConfig){const Pt=_t._loadedConfig;it.push(this.processRoutes(Pt.module,Pt.routes))}else _t.loadChildren&&!_t.canLoad?it.push(this.preloadConfig($,_t)):_t.children&&it.push(this.processRoutes($,_t.children));return(0,b.D)(it).pipe((0,le.J)(),(0,oe.U)(_t=>{}))}preloadConfig($,Fe){return this.preloadingStrategy.preload(Fe,()=>(Fe._loadedConfig?(0,_.of)(Fe._loadedConfig):this.loader.load($.injector,Fe)).pipe((0,de.zg)(_t=>(Fe._loadedConfig=_t,this.processRoutes(_t.module,_t.routes)))))}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(Zi),e.LFG(e.Sil),e.LFG(e.zs3),e.LFG(Wa))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ns=(()=>{class Ce{constructor($,Fe,it={}){this.router=$,this.viewportScroller=Fe,this.options=it,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},it.scrollPositionRestoration=it.scrollPositionRestoration||"disabled",it.anchorScrolling=it.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe($=>{$ instanceof Be?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=$.navigationTrigger,this.restoredId=$.restoredState?$.restoredState.navigationId:0):$ instanceof W&&(this.lastId=$.id,this.scheduleScrollEvent($,this.router.parseUrl($.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe($=>{$ instanceof D&&($.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition($.position):$.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor($.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent($,Fe){this.router.triggerEvent(new D($,"popstate"===this.lastSource?this.store[this.restoredId]:null,Fe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return Ce.\u0275fac=function($){e.$Z()},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Wr=new e.OlP("ROUTER_CONFIGURATION"),xr=new e.OlP("ROUTER_FORROOT_GUARD"),rs=[je.Ye,{provide:ce,useClass:He},{provide:Zi,useFactory:function dd(Ce,se,$,Fe,it,_t,Pt={},Ft,$t){const Ai=new Zi(null,Ce,se,$,Fe,it,l(_t));return Ft&&(Ai.urlHandlingStrategy=Ft),$t&&(Ai.routeReuseStrategy=$t),function ud(Ce,se){Ce.errorHandler&&(se.errorHandler=Ce.errorHandler),Ce.malformedUriErrorHandler&&(se.malformedUriErrorHandler=Ce.malformedUriErrorHandler),Ce.onSameUrlNavigation&&(se.onSameUrlNavigation=Ce.onSameUrlNavigation),Ce.paramsInheritanceStrategy&&(se.paramsInheritanceStrategy=Ce.paramsInheritanceStrategy),Ce.relativeLinkResolution&&(se.relativeLinkResolution=Ce.relativeLinkResolution),Ce.urlUpdateStrategy&&(se.urlUpdateStrategy=Ce.urlUpdateStrategy),Ce.canceledNavigationResolution&&(se.canceledNavigationResolution=Ce.canceledNavigationResolution)}(Pt,Ai),Pt.enableTracing&&Ai.events.subscribe(Yi=>{var xi,nn;null===(xi=console.group)||void 0===xi||xi.call(console,`Router Event: ${Yi.constructor.name}`),console.log(Yi.toString()),console.log(Yi),null===(nn=console.groupEnd)||void 0===nn||nn.call(console)}),Ai},deps:[ce,Mn,je.Ye,e.zs3,e.Sil,Vt,Wr,[class ni{},new e.FiY],[at,new e.FiY]]},Mn,{provide:Dt,useFactory:function Cs(Ce){return Ce.routerState.root},deps:[Zi]},is,Kr,class bs{preload(se,$){return $().pipe((0,q.K)(()=>(0,_.of)(null)))}},{provide:Wr,useValue:{enableTracing:!1}}];function Bo(){return new e.PXZ("Router",Zi)}let ko=(()=>{class Ce{constructor($,Fe){}static forRoot($,Fe){return{ngModule:Ce,providers:[rs,Ya($),{provide:xr,useFactory:No,deps:[[Zi,new e.FiY,new e.tp0]]},{provide:Wr,useValue:Fe||{}},{provide:je.S$,useFactory:la,deps:[je.lw,[new e.tBr(je.mr),new e.FiY],Wr]},{provide:ns,useFactory:ss,deps:[Zi,je.EM,Wr]},{provide:Wa,useExisting:Fe&&Fe.preloadingStrategy?Fe.preloadingStrategy:Kr},{provide:e.PXZ,multi:!0,useFactory:Bo},[vs,{provide:e.ip1,multi:!0,useFactory:ca,deps:[vs]},{provide:da,useFactory:Ts,deps:[vs]},{provide:e.tb,multi:!0,useExisting:da}]]}}static forChild($){return{ngModule:Ce,providers:[Ya($)]}}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(xr,8),e.LFG(Zi,8))},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({}),Ce})();function ss(Ce,se,$){return $.scrollOffset&&se.setOffset($.scrollOffset),new ns(Ce,se,$)}function la(Ce,se,$={}){return $.useHash?new je.Do(Ce,se):new je.b0(Ce,se)}function No(Ce){return"guarded"}function Ya(Ce){return[{provide:e.deG,multi:!0,useValue:Ce},{provide:Vt,multi:!0,useValue:Ce}]}let vs=(()=>{class Ce{constructor($){this.injector=$,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new L.xQ}appInitializer(){return this.injector.get(je.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let Fe=null;const it=new Promise(Ft=>Fe=Ft),_t=this.injector.get(Zi),Pt=this.injector.get(Wr);return"disabled"===Pt.initialNavigation?(_t.setUpLocationChangeListener(),Fe(!0)):"enabled"===Pt.initialNavigation||"enabledBlocking"===Pt.initialNavigation?(_t.hooks.afterPreactivation=()=>this.initNavigation?(0,_.of)(null):(this.initNavigation=!0,Fe(!0),this.resultOfPreactivationDone),_t.initialNavigation()):Fe(!0),it})}bootstrapListener($){const Fe=this.injector.get(Wr),it=this.injector.get(is),_t=this.injector.get(ns),Pt=this.injector.get(Zi),Ft=this.injector.get(e.z2F);$===Ft.components[0]&&(("enabledNonBlocking"===Fe.initialNavigation||void 0===Fe.initialNavigation)&&Pt.initialNavigation(),it.setUpPreloading(),_t.init(),Pt.resetRootComponentType(Ft.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return Ce.\u0275fac=function($){return new($||Ce)(e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();function ca(Ce){return Ce.appInitializer.bind(Ce)}function Ts(Ce){return Ce.bootstrapListener.bind(Ce)}const da=new e.OlP("Router Initializer")},51062:($e,_e,p)=>{"use strict";p.d(_e,{Zw:()=>L,aw:()=>je,X$:()=>le,sK:()=>Ue});var e=p(5e3),b=p(21086),_=p(54715),w=p(30567),g=p(61221),A=p(88514),E=p(72986),C=p(5154),I=p(24850),P=p(21406),m=p(87545);class L{}let O=(()=>{class ye extends L{getTranslation(W){return(0,b.of)({})}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class G{}let ne=(()=>{class ye{handle(W){return W.key}}return ye.\u0275fac=function(W){return new(W||ye)},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();function ge(ye,Be){if(ye===Be)return!0;if(null===ye||null===Be)return!1;if(ye!=ye&&Be!=Be)return!0;let me,be,Ie,W=typeof ye;if(W==typeof Be&&"object"==W){if(!Array.isArray(ye)){if(Array.isArray(Be))return!1;for(be in Ie=Object.create(null),ye){if(!ge(ye[be],Be[be]))return!1;Ie[be]=!0}for(be in Be)if(!(be in Ie)&&void 0!==Be[be])return!1;return!0}if(!Array.isArray(Be))return!1;if((me=ye.length)==Be.length){for(be=0;be{Me(Be[R])?R in ye?W[R]=oe(ye[R],Be[R]):Object.assign(W,{[R]:Be[R]}):Object.assign(W,{[R]:Be[R]})}),W}class Re{}let T=(()=>{class ye extends Re{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(W,R){let me;return me="string"==typeof W?this.interpolateString(W,R):"function"==typeof W?this.interpolateFunction(W,R):W,me}getValue(W,R){let me="string"==typeof R?R.split("."):[R];R="";do{R+=me.shift(),!J(W)||!J(W[R])||"object"!=typeof W[R]&&me.length?me.length?R+=".":W=void 0:(W=W[R],R="")}while(me.length);return W}interpolateFunction(W,R){return W(R)}interpolateString(W,R){return R?W.replace(this.templateMatcher,(me,be)=>{let Ie=this.getValue(R,be);return J(Ie)?Ie:me}):W}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class j{}let Y=(()=>{class ye extends j{compile(W,R){return W}compileTranslations(W,R){return W}}return ye.\u0275fac=function(){let Be;return function(R){return(Be||(Be=e.n5z(ye)))(R||ye)}}(),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})();class q{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new e.vpe,this.onLangChange=new e.vpe,this.onDefaultLangChange=new e.vpe}}const te=new e.OlP("USE_STORE"),ue=new e.OlP("USE_DEFAULT_LANG"),de=new e.OlP("DEFAULT_LANGUAGE"),Le=new e.OlP("USE_EXTEND");let Ue=(()=>{class ye{constructor(W,R,me,be,Ie,pe=!0,Se=!1,Xe=!1,Je){this.store=W,this.currentLoader=R,this.compiler=me,this.parser=be,this.missingTranslationHandler=Ie,this.useDefaultLang=pe,this.isolate=Se,this.extend=Xe,this.pending=!1,this._onTranslationChange=new e.vpe,this._onLangChange=new e.vpe,this._onDefaultLangChange=new e.vpe,this._langs=[],this._translations={},this._translationRequests={},Je&&this.setDefaultLang(Je)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(W){this.isolate?this._defaultLang=W:this.store.defaultLang=W}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(W){this.isolate?this._currentLang=W:this.store.currentLang=W}get langs(){return this.isolate?this._langs:this.store.langs}set langs(W){this.isolate?this._langs=W:this.store.langs=W}get translations(){return this.isolate?this._translations:this.store.translations}set translations(W){this.isolate?this._translations=W:this.store.translations=W}setDefaultLang(W){if(W===this.defaultLang)return;let R=this.retrieveTranslations(W);void 0!==R?(null==this.defaultLang&&(this.defaultLang=W),R.pipe((0,E.q)(1)).subscribe(me=>{this.changeDefaultLang(W)})):this.changeDefaultLang(W)}getDefaultLang(){return this.defaultLang}use(W){if(W===this.currentLang)return(0,b.of)(this.translations[W]);let R=this.retrieveTranslations(W);return void 0!==R?(this.currentLang||(this.currentLang=W),R.pipe((0,E.q)(1)).subscribe(me=>{this.changeLang(W)}),R):(this.changeLang(W),(0,b.of)(this.translations[W]))}retrieveTranslations(W){let R;return(void 0===this.translations[W]||this.extend)&&(this._translationRequests[W]=this._translationRequests[W]||this.getTranslation(W),R=this._translationRequests[W]),R}getTranslation(W){this.pending=!0;const R=this.currentLoader.getTranslation(W).pipe((0,C.d)(1),(0,E.q)(1));return this.loadingTranslations=R.pipe((0,I.U)(me=>this.compiler.compileTranslations(me,W)),(0,C.d)(1),(0,E.q)(1)),this.loadingTranslations.subscribe({next:me=>{this.translations[W]=this.extend&&this.translations[W]?Object.assign(Object.assign({},me),this.translations[W]):me,this.updateLangs(),this.pending=!1},error:me=>{this.pending=!1}}),R}setTranslation(W,R,me=!1){R=this.compiler.compileTranslations(R,W),this.translations[W]=(me||this.extend)&&this.translations[W]?oe(this.translations[W],R):R,this.updateLangs(),this.onTranslationChange.emit({lang:W,translations:this.translations[W]})}getLangs(){return this.langs}addLangs(W){W.forEach(R=>{-1===this.langs.indexOf(R)&&this.langs.push(R)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(W,R,me){let be;if(R instanceof Array){let Ie={},pe=!1;for(let Se of R)Ie[Se]=this.getParsedResult(W,Se,me),(0,_.b)(Ie[Se])&&(pe=!0);if(pe){const Se=R.map(Xe=>(0,_.b)(Ie[Xe])?Ie[Xe]:(0,b.of)(Ie[Xe]));return(0,w.D)(Se).pipe((0,I.U)(Xe=>{let Je={};return Xe.forEach((nt,Ve)=>{Je[R[Ve]]=nt}),Je}))}return Ie}if(W&&(be=this.parser.interpolate(this.parser.getValue(W,R),me)),void 0===be&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(be=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],R),me)),void 0===be){let Ie={key:R,translateService:this};void 0!==me&&(Ie.interpolateParams=me),be=this.missingTranslationHandler.handle(Ie)}return void 0!==be?be:R}get(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,P.b)(me=>(me=this.getParsedResult(me,W,R),(0,_.b)(me)?me:(0,b.of)(me))));{let me=this.getParsedResult(this.translations[this.currentLang],W,R);return(0,_.b)(me)?me:(0,b.of)(me)}}getStreamOnTranslationChange(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(W,R)),this.onTranslationChange.pipe((0,m.w)(me=>{const be=this.getParsedResult(me.translations,W,R);return"function"==typeof be.subscribe?be:(0,b.of)(be)})))}stream(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');return(0,g.z)((0,A.P)(()=>this.get(W,R)),this.onLangChange.pipe((0,m.w)(me=>{const be=this.getParsedResult(me.translations,W,R);return(0,_.b)(be)?be:(0,b.of)(be)})))}instant(W,R){if(!J(W)||!W.length)throw new Error('Parameter "key" required');let me=this.getParsedResult(this.translations[this.currentLang],W,R);if((0,_.b)(me)){if(W instanceof Array){let be={};return W.forEach((Ie,pe)=>{be[W[pe]]=W[pe]}),be}return W}return me}set(W,R,me=this.currentLang){this.translations[me][W]=this.compiler.compile(R,me),this.updateLangs(),this.onTranslationChange.emit({lang:me,translations:this.translations[me]})}changeLang(W){this.currentLang=W,this.onLangChange.emit({lang:W,translations:this.translations[W]}),null==this.defaultLang&&this.changeDefaultLang(W)}changeDefaultLang(W){this.defaultLang=W,this.onDefaultLangChange.emit({lang:W,translations:this.translations[W]})}reloadLang(W){return this.resetLang(W),this.getTranslation(W)}resetLang(W){this._translationRequests[W]=void 0,this.translations[W]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let W=window.navigator.languages?window.navigator.languages[0]:null;return W=W||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==W?(-1!==W.indexOf("-")&&(W=W.split("-")[0]),-1!==W.indexOf("_")&&(W=W.split("_")[0]),W):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let W=window.navigator.languages?window.navigator.languages[0]:null;return W=W||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,W}}return ye.\u0275fac=function(W){return new(W||ye)(e.LFG(q),e.LFG(L),e.LFG(j),e.LFG(Re),e.LFG(G),e.LFG(ue),e.LFG(te),e.LFG(Le),e.LFG(de))},ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),le=(()=>{class ye{constructor(W,R){this.translate=W,this._ref=R,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(W,R,me){let be=Ie=>{this.value=void 0!==Ie?Ie:W,this.lastKey=W,this._ref.markForCheck()};if(me){let Ie=this.translate.getParsedResult(me,W,R);(0,_.b)(Ie.subscribe)?Ie.subscribe(be):be(Ie)}this.translate.get(W,R).subscribe(be)}transform(W,...R){if(!W||!W.length)return W;if(ge(W,this.lastKey)&&ge(R,this.lastParams))return this.value;let me;if(J(R[0])&&R.length)if("string"==typeof R[0]&&R[0].length){let be=R[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{me=JSON.parse(be)}catch(Ie){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${R[0]}`)}}else"object"==typeof R[0]&&!Array.isArray(R[0])&&(me=R[0]);return this.lastKey=W,this.lastParams=R,this.updateValue(W,me),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(be=>{this.lastKey&&be.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(W,me,be.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(be=>{this.lastKey&&(this.lastKey=null,this.updateValue(W,me,be.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(W,me))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return ye.\u0275fac=function(W){return new(W||ye)(e.Y36(Ue,16),e.Y36(e.sBO,16))},ye.\u0275pipe=e.Yjl({name:"translate",type:ye,pure:!1}),ye.\u0275prov=e.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),je=(()=>{class ye{static forRoot(W={}){return{ngModule:ye,providers:[W.loader||{provide:L,useClass:O},W.compiler||{provide:j,useClass:Y},W.parser||{provide:Re,useClass:T},W.missingTranslationHandler||{provide:G,useClass:ne},q,{provide:te,useValue:W.isolate},{provide:ue,useValue:W.useDefaultLang},{provide:Le,useValue:W.extend},{provide:de,useValue:W.defaultLanguage},Ue]}}static forChild(W={}){return{ngModule:ye,providers:[W.loader||{provide:L,useClass:O},W.compiler||{provide:j,useClass:Y},W.parser||{provide:Re,useClass:T},W.missingTranslationHandler||{provide:G,useClass:ne},{provide:te,useValue:W.isolate},{provide:ue,useValue:W.useDefaultLang},{provide:Le,useValue:W.extend},{provide:de,useValue:W.defaultLanguage},Ue]}}}return ye.\u0275fac=function(W){return new(W||ye)},ye.\u0275mod=e.oAB({type:ye}),ye.\u0275inj=e.cJS({}),ye})()},86114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(69808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(40520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(70655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(21086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(61946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(61737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(36053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(36787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(92198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(22868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(80013),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(87545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(87224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(27221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(46227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(72986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(61709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class $e extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return $e.\u0275fac=function(){let _e;return function(e){return(_e||(_e=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z($e)))(e||$e)}}(),$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class $e{constructor(){this.data=new Map}getItem(p){return this.data.get(p)}removeItem(p){this.data.delete(p)}setItem(p,e){this.data.set(p,e)}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class ReceivedTokens{}class OAuthEvent{constructor(_e){this.type=_e}}class OAuthSuccessEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthInfoEvent extends OAuthEvent{constructor(_e,p=null){super(_e),this.info=p}}class OAuthErrorEvent extends OAuthEvent{constructor(_e,p,e=null){super(_e),this.reason=p,this.params=e}}function b64DecodeUnicode($e){const _e=$e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(_e).split("").map(function(p){return"%"+("00"+p.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode($e){return btoa($e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(_e){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=p=>{location.href=p},_e&&Object.assign(this,_e)}}class WebHttpUrlEncodingCodec{encodeKey(_e){return encodeURIComponent(_e)}encodeValue(_e){return encodeURIComponent(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(_e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let p=this.inferHashAlgorithm(_e.idTokenHeader),e=yield this.calcHash(_e.accessToken,p),_=base64UrlEncode(e.substr(0,e.length/2)),w=_e.idTokenClaims.at_hash.replace(/=/g,"");return _!==w&&(console.error("exptected at_hash: "+_),console.error("actual at_hash: "+w)),_===w})}inferHashAlgorithm(_e){let p=_e.alg;if(!p.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+p);return"sha-"+p.substr(2)}}let UrlHelperService=(()=>{class $e{getHashFragmentParams(p){let e=p||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const b=e.indexOf("?");return e=e.substr(b>-1?b+1:1),this.parseQueryString(e)}parseQueryString(p){const e={};let b,_,w,g,A,E,C;if(null===p)return e;b=p.split("&");for(let I=0;I>6,_[g++]=128|63&A):A<55296||A>=57344?(_[g++]=224|A>>12,_[g++]=128|A>>6&63,_[g++]=128|63&A):(A=65536+((1023&A)<<10|1023&$e.charCodeAt(++e)),_[g++]=240|A>>18,_[g++]=128|A>>12&63,_[g++]=128|A>>6&63,_[g++]=128|63&A);$e=_}else{if("object"!==b)throw new Error(ERROR);if(null===$e)throw new Error(ERROR);if(ARRAY_BUFFER&&$e.constructor===ArrayBuffer)$e=new Uint8Array($e);else if(!(Array.isArray($e)||ARRAY_BUFFER&&ArrayBuffer.isView($e)))throw new Error(ERROR)}$e.length>64&&($e=new Sha256(_e,!0).update($e).array());var E=[],C=[];for(e=0;e<64;++e){var I=$e[e]||0;E[e]=92^I,C[e]=54^I}Sha256.call(this,_e,p),this.update(C),this.oKeyPad=E,this.inner=!0,this.sharedMemory=p}Sha256.prototype.update=function($e){if(!this.finalized){var _e,p=typeof $e;if("string"!==p){if("object"!==p)throw new Error(ERROR);if(null===$e)throw new Error(ERROR);if(ARRAY_BUFFER&&$e.constructor===ArrayBuffer)$e=new Uint8Array($e);else if(!(Array.isArray($e)||ARRAY_BUFFER&&ArrayBuffer.isView($e)))throw new Error(ERROR);_e=!0}for(var e,_,b=0,w=$e.length,g=this.blocks;b>2]|=$e[b]<>2]|=e<>2]|=(192|e>>6)<>2]|=(128|63&e)<=57344?(g[_>>2]|=(224|e>>12)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<>2]|=(240|e>>18)<>2]|=(128|e>>12&63)<>2]|=(128|e>>6&63)<>2]|=(128|63&e)<=64?(this.block=g[16],this.start=_-64,this.hash(),this.hashed=!0):this.start=_}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $e=this.blocks,_e=this.lastByteIndex;$e[16]=this.block,$e[_e>>2]|=EXTRA[3&_e],this.block=$e[16],_e>=56&&(this.hashed||this.hash(),$e[0]=this.block,$e[16]=$e[1]=$e[2]=$e[3]=$e[4]=$e[5]=$e[6]=$e[7]=$e[8]=$e[9]=$e[10]=$e[11]=$e[12]=$e[13]=$e[14]=$e[15]=0),$e[14]=this.hBytes<<3|this.bytes>>>29,$e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var E,m,G,ne,ge,J,$e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=this.blocks;for(E=16;E<64;++E)A[E]=A[E-16]+(((m=A[E-15])>>>7|m<<25)^(m>>>18|m<<14)^m>>>3)+A[E-7]+(((m=A[E-2])>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)<<0;for(J=_e&p,E=0;E<64;E+=4)this.first?(this.is224?(G=300032,g=(m=A[0]-1413257819)-150054599<<0,e=m+24177077<<0):(G=704751109,g=(m=A[0]-210244248)-1521486534<<0,e=m+143694565<<0),this.first=!1):(g=e+(m=g+((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&_^~b&w)+K[E]+A[E])<<0,e=m+((($e>>>2|$e<<30)^($e>>>13|$e<<19)^($e>>>22|$e<<10))+((G=$e&_e)^$e&p^J))<<0),w=p+(m=w+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&_)+K[E+1]+A[E+1])<<0,p=m+(((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+((ne=e&$e)^e&_e^G))<<0,_=_e+(m=_+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&g^~w&b)+K[E+2]+A[E+2])<<0,_e=m+(((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+((ge=p&e)^p&$e^ne))<<0,b=$e+(m=b+((_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&w^~_&g)+K[E+3]+A[E+3])<<0,$e=m+(((_e>>>2|_e<<30)^(_e>>>13|_e<<19)^(_e>>>22|_e<<10))+((J=_e&p)^_e&e^ge))<<0;this.h0=this.h0+$e<<0,this.h1=this.h1+_e<<0,this.h2=this.h2+p<<0,this.h3=this.h3+e<<0,this.h4=this.h4+b<<0,this.h5=this.h5+_<<0,this.h6=this.h6+w<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var $e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=HEX_CHARS[$e>>28&15]+HEX_CHARS[$e>>24&15]+HEX_CHARS[$e>>20&15]+HEX_CHARS[$e>>16&15]+HEX_CHARS[$e>>12&15]+HEX_CHARS[$e>>8&15]+HEX_CHARS[$e>>4&15]+HEX_CHARS[15&$e]+HEX_CHARS[_e>>28&15]+HEX_CHARS[_e>>24&15]+HEX_CHARS[_e>>20&15]+HEX_CHARS[_e>>16&15]+HEX_CHARS[_e>>12&15]+HEX_CHARS[_e>>8&15]+HEX_CHARS[_e>>4&15]+HEX_CHARS[15&_e]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[b>>28&15]+HEX_CHARS[b>>24&15]+HEX_CHARS[b>>20&15]+HEX_CHARS[b>>16&15]+HEX_CHARS[b>>12&15]+HEX_CHARS[b>>8&15]+HEX_CHARS[b>>4&15]+HEX_CHARS[15&b]+HEX_CHARS[_>>28&15]+HEX_CHARS[_>>24&15]+HEX_CHARS[_>>20&15]+HEX_CHARS[_>>16&15]+HEX_CHARS[_>>12&15]+HEX_CHARS[_>>8&15]+HEX_CHARS[_>>4&15]+HEX_CHARS[15&_]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w];return this.is224||(A+=HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]),A},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var $e=this.h0,_e=this.h1,p=this.h2,e=this.h3,b=this.h4,_=this.h5,w=this.h6,g=this.h7,A=[$e>>24&255,$e>>16&255,$e>>8&255,255&$e,_e>>24&255,_e>>16&255,_e>>8&255,255&_e,p>>24&255,p>>16&255,p>>8&255,255&p,e>>24&255,e>>16&255,e>>8&255,255&e,b>>24&255,b>>16&255,b>>8&255,255&b,_>>24&255,_>>16&255,_>>8&255,255&_,w>>24&255,w>>16&255,w>>8&255,255&w];return this.is224||A.push(g>>24&255,g>>16&255,g>>8&255,255&g),A},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var $e=new ArrayBuffer(this.is224?28:32),_e=new DataView($e);return _e.setUint32(0,this.h0),_e.setUint32(4,this.h1),_e.setUint32(8,this.h2),_e.setUint32(12,this.h3),_e.setUint32(16,this.h4),_e.setUint32(20,this.h5),_e.setUint32(24,this.h6),this.is224||_e.setUint32(28,this.h7),$e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var $e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8($e){if("string"!=typeof $e)throw new TypeError("expected string");var _e,p=$e,e=new Uint8Array(p.length);for(_e=0;_e{class $e{calcHash(p,e){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(p)))})}toHashString2(p){let e="";for(let b of p)e+=String.fromCharCode(b);return e}toHashString(p){const e=new Uint8Array(p);let b="";for(let _ of e)b+=String.fromCharCode(_);return b}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),OAuthService=(()=>{class $e extends AuthConfig{constructor(p,e,b,_,w,g,A,E,C,I){var P;super(),this.ngZone=p,this.http=e,this.config=w,this.urlHelper=g,this.logger=A,this.crypto=E,this.dateTimeService=I,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=C,w||(w={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),_&&(this.tokenValidationHandler=_),w&&this.configure(w);try{b?this.setStorage(b):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(m){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",m)}if(this.checkLocalStorageAccessable()){const m=null===(P=null==window?void 0:window.navigator)||void 0===P?void 0:P.userAgent;((null==m?void 0:m.includes("MSIE "))||(null==m?void 0:m.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const p="test";try{return void 0!==window.localStorage&&(localStorage.setItem(p,p),localStorage.removeItem(p),!0)}catch(e){return!1}}configure(p){Object.assign(this,new AuthConfig,p),this.config=Object.assign({},new AuthConfig,p),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(p={},e,b=!0){let _=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(w=>{"token_received"===w.type?_=!0:"logout"===w.type&&(_=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_expires"===w.type&&(null==e||"any"===e||w.info===e)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(w=>{_&&this.refreshInternal(p,b).catch(g=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(p,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(p,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(p=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(p))}loadDiscoveryDocumentAndLogin(p=null){return this.loadDiscoveryDocumentAndTryLogin(p=p||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof p.state?p.state:""),!1))}debug(...p){this.showDebugInformation&&this.logger.debug.apply(this.logger,p)}validateUrlFromDiscoveryDocument(p){const e=[],b=this.validateUrlForHttps(p),_=this.validateUrlAgainstIssuer(p);return b||e.push("https for all urls required. Also for urls received by discovery."),_||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(p){if(!p)return!0;const e=p.toLowerCase();return!(!1!==this.requireHttps&&(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(p,e){if(!p)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(p))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(p){return!this.strictDiscoveryDocumentValidation||!p||p.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"token_received"===p.type)).subscribe(p=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const p=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),b=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}setupIdTokenTimer(){const p=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),b=this.calcTimeout(e,p);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(b)).subscribe(_=>{this.ngZone.run(()=>{this.eventsSubject.next(_)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(p,e){const b=this.dateTimeService.now();return Math.max(0,(e-p)*this.timeoutFactor-(b-p))}setStorage(p){this._storage=p,this.configChanged()}loadDiscoveryDocument(p=null){return new Promise((e,b)=>{p||((p=this.issuer||"").endsWith("/")||(p+="/"),p+=".well-known/openid-configuration"),this.validateUrlForHttps(p)?this.http.get(p).subscribe(_=>{if(!this.validateDiscoveryDocument(_))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void b("discovery_document_validation_error");this.loginUrl=_.authorization_endpoint,this.logoutUrl=_.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=_.grant_types_supported,this.issuer=_.issuer,this.tokenEndpoint=_.token_endpoint,this.userinfoEndpoint=_.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=_.jwks_uri,this.sessionCheckIFrameUrl=_.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(_),this.revocationEndpoint=_.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(w=>{const A=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:_,jwks:w});this.eventsSubject.next(A),e(A)}).catch(w=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",w)),b(w)})},_=>{this.logger.error("error loading discovery document",_),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",_)),b(_)}):b("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((p,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(b=>{this.jwks=b,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),p(b)},b=>{this.logger.error("error loading jwks",b),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",b)),e(b)}):p(null)})}validateDiscoveryDocument(p){let e;return this.skipIssuerCheck||p.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(p.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(p.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(p.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!p.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+p.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(p,e,b).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((p,e)=>{const b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:b,observe:"response",responseType:"text"}).subscribe(_=>{if(this.debug("userinfo received",JSON.stringify(_)),_.headers.get("content-type").startsWith("application/json")){let w=JSON.parse(_.body);const g=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!g.sub||w.sub!==g.sub))return void e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");w=Object.assign({},g,w),this._storage.setItem("id_token_claims_obj",JSON.stringify(w)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p({info:w})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),p(JSON.parse(_.body))},_=>{this.logger.error("error loading user info",_),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",_)),e(_)})})}fetchTokenUsingPasswordFlow(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:p,password:e},b)}fetchTokenUsingGrant(p,e,b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let _=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",p).set("scope",this.scope);if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(_=_.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(_=_.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))_=_.set(w,this.customQueryParams[w]);for(const w of Object.keys(e))_=_.set(w,e[w]);return b=b.set("Content-Type","application/x-www-form-urlencoded"),new Promise((w,g)=>{this.http.post(this.tokenEndpoint,_,{headers:b}).subscribe(A=>{this.debug("tokenResponse",A),this.storeAccessTokenResponse(A.access_token,A.refresh_token,A.expires_in||this.fallbackAccessTokenExpirationTimeInSec,A.scope,this.extractRecognizedCustomParameters(A)),this.oidc&&A.id_token&&this.processIdToken(A.id_token,A.access_token).then(E=>{this.storeIdToken(E),w(A)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),w(A)},A=>{this.logger.error("Error performing ${grantType} flow",A),this.eventsSubject.next(new OAuthErrorEvent("token_error",A)),g(A)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((p,e)=>{let b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),_=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const w=btoa(`${this.clientId}:${this.dummyClientSecret}`);_=_.set("Authorization","Basic "+w)}if(this.useHttpBasicAuth||(b=b.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(b=b.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const w of Object.getOwnPropertyNames(this.customQueryParams))b=b.set(w,this.customQueryParams[w]);this.http.post(this.tokenEndpoint,b,{headers:_}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(w=>w.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(w.id_token,w.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(g=>this.storeIdToken(g)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(g=>w)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(w))).subscribe(w=>{this.debug("refresh tokenResponse",w),this.storeAccessTokenResponse(w.access_token,w.refresh_token,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,w.scope,this.extractRecognizedCustomParameters(w)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),p(w)},w=>{this.logger.error("Error refreshing token",w),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",w)),e(w)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=p=>{const e=this.processMessageEventMessage(p);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(b=>this.debug("tryLogin during silent refresh failed",b))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(p={},e=!0){const b=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(p.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const _=this.document.getElementById(this.silentRefreshIFrameName);_&&this.document.body.removeChild(_),this.silentRefreshSubject=b.sub;const w=this.document.createElement("iframe");w.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,p).then(I=>{w.setAttribute("src",I),this.silentRefreshShowIFrame||(w.style.display="none"),this.document.body.appendChild(w)});const A=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>I instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),E=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(I=>"token_received"===I.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),C=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([A,E,C]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>{if(I instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===I.type||(I=new OAuthErrorEvent("silent_refresh_error",I)),this.eventsSubject.next(I),I;return"token_received"===I.type&&(I=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(I)),I})).toPromise()}initImplicitFlowInPopup(p){return this.initLoginFlowInPopup(p)}initLoginFlowInPopup(p){return p=p||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((b,_)=>{let A,g=null;p.windowRef?p.windowRef&&!p.windowRef.closed&&(g=p.windowRef,g.location.href=e):g=window.open(e,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(p));const E=L=>{this.tryLogin({customHashFragment:L,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{I(),b(!0)},O=>{I(),_(O)})};g?A=window.setInterval(()=>{(!g||g.closed)&&(I(),_(new OAuthErrorEvent("popup_closed",{})))},500):_(new OAuthErrorEvent("popup_blocked",{}));const I=()=>{window.clearInterval(A),window.removeEventListener("storage",m),window.removeEventListener("message",P),null!==g&&g.close(),g=null},P=L=>{const O=this.processMessageEventMessage(L);O&&null!==O?(window.removeEventListener("storage",m),E(O)):console.log("false event firing")},m=L=>{"auth_hash"===L.key&&(window.removeEventListener("message",P),E(L.newValue))};window.addEventListener("message",P),window.addEventListener("storage",m)}))}calculatePopupFeatures(p){const e=p.height||470,b=p.width||500,_=window.screenLeft+(window.outerWidth-b)/2;return`location=no,toolbar=no,width=${b},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${_}`}processMessageEventMessage(p){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!p||!p.data||"string"!=typeof p.data)return;const b=p.data;return b.startsWith(e)?"#"+b.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=p=>{const e=p.origin.toLowerCase(),b=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),b.startsWith(e)){switch(p.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",p)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",b,"event",p)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(p=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(p=>{this.debug("token refresh after session change worked")}).catch(p=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"silently_refreshed"===p.type||"silent_refresh_timeout"===p.type||"silent_refresh_error"===p.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(p=>{"silently_refreshed"!==p.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const p=this.document.getElementById(this.sessionCheckIFrameName);p&&this.document.body.removeChild(p);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const p=this.document.getElementById(this.sessionCheckIFrameName);p||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),p.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(p="",e="",b="",_=!1,w={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const g=this;let A;A=b||this.redirectUri;const E=yield this.createAndSaveNonce();if(p=p?E+this.config.nonceStateSeparator+encodeURIComponent(p):E,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const C=g.loginUrl.indexOf("?")>-1?"&":"?";let I=g.scope;this.oidc&&!I.match(/(^|\s)openid($|\s)/)&&(I="openid "+I);let P=g.loginUrl+C+"response_type="+encodeURIComponent(g.responseType)+"&client_id="+encodeURIComponent(g.clientId)+"&state="+encodeURIComponent(p)+"&redirect_uri="+encodeURIComponent(A)+"&scope="+encodeURIComponent(I);if(this.responseType.includes("code")&&!this.disablePKCE){const[m,L]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",L):this._storage.setItem("PKCE_verifier",L),P+="&code_challenge="+m,P+="&code_challenge_method=S256"}e&&(P+="&login_hint="+encodeURIComponent(e)),g.resource&&(P+="&resource="+encodeURIComponent(g.resource)),g.oidc&&(P+="&nonce="+encodeURIComponent(E)),_&&(P+="&prompt=none");for(const m of Object.keys(w))P+="&"+encodeURIComponent(m)+"="+encodeURIComponent(w[m]);if(this.customQueryParams)for(const m of Object.getOwnPropertyNames(this.customQueryParams))P+="&"+m+"="+encodeURIComponent(this.customQueryParams[m]);return P})}initImplicitFlowInternal(p="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initImplicitFlow",w),this.inImplicitFlow=!1})}initImplicitFlow(p="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(p,e):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(b=>"discovery_document_loaded"===b.type)).subscribe(b=>this.initImplicitFlowInternal(p,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(p){const e=this;if(p.onTokenReceived){const b={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};p.onTokenReceived(b)}}storeAccessTokenResponse(p,e,b,_,w){if(this._storage.setItem("access_token",p),_&&!Array.isArray(_)?this._storage.setItem("granted_scopes",JSON.stringify(_.split(" "))):_&&Array.isArray(_)&&this._storage.setItem("granted_scopes",JSON.stringify(_)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),b){const g=1e3*b,E=this.dateTimeService.new().getTime()+g;this._storage.setItem("expires_at",""+E)}e&&this._storage.setItem("refresh_token",e),w&&w.forEach((g,A)=>{this._storage.setItem(A,g)})}tryLogin(p=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(p).then(e=>!0):this.tryLoginImplicitFlow(p)}parseQueryString(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):{}}tryLoginCodeFlow(p=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const e=(p=p||{}).customHashFragment?p.customHashFragment.substring(1):window.location.search,b=this.getCodePartsFromUrl(e),_=b.code,w=b.state,g=b.session_state;if(!p.preventClearHashAfterLogin){const C=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,C)}let[A,E]=this.parseState(w);if(this.state=E,b.error){this.debug("error trying to login"),this.handleLoginError(p,b);const C=new OAuthErrorEvent("code_error",{},b);return this.eventsSubject.next(C),Promise.reject(C)}if(!p.disableNonceCheck){if(!A)return this.saveRequestedRoute(),Promise.resolve();if(!p.disableOAuth2StateCheck&&!this.validateNonce(A)){const I=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(I),Promise.reject(I)}return this.storeSessionState(g),_&&(yield this.getTokenFromCode(_,p),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const p=this._storage.getItem("requested_route");p&&history.replaceState(null,"",window.location.origin+p)}getCodePartsFromUrl(p){return p&&0!==p.length?("?"===p.charAt(0)&&(p=p.substr(1)),this.urlHelper.parseQueryString(p)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(p,e){let b=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",p).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let _;_=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),_?b=b.set("code_verifier",_):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(b,e)}fetchAndProcessToken(p,e){e=e||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let b=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const _=btoa(`${this.clientId}:${this.dummyClientSecret}`);b=b.set("Authorization","Basic "+_)}return this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),new Promise((_,w)=>{if(this.customQueryParams)for(let g of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(g,this.customQueryParams[g]);this.http.post(this.tokenEndpoint,p,{headers:b}).subscribe(g=>{this.debug("refresh tokenResponse",g),this.storeAccessTokenResponse(g.access_token,g.refresh_token,g.expires_in||this.fallbackAccessTokenExpirationTimeInSec,g.scope,this.extractRecognizedCustomParameters(g)),this.oidc&&g.id_token?this.processIdToken(g.id_token,g.access_token,e.disableNonceCheck).then(A=>{this.storeIdToken(A),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g)}).catch(A=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",A)),console.error("Error validating tokens"),console.error(A),w(A)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),_(g))},g=>{console.error("Error getting token",g),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",g)),w(g)})})}tryLoginImplicitFlow(p=null){let e;e=(p=p||{}).customHashFragment?this.urlHelper.getHashFragmentParams(p.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const b=e.state;let[_,w]=this.parseState(b);if(this.state=w,e.error){this.debug("error trying to login"),this.handleLoginError(p,e);const I=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(I),Promise.reject(I)}const g=e.access_token,A=e.id_token,E=e.session_state,C=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!g||this.requestAccessToken&&!p.disableOAuth2StateCheck&&!b||this.oidc&&!A)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!E&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!p.disableNonceCheck&&!this.validateNonce(_)){const P=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(P),Promise.reject(P)}return this.requestAccessToken&&this.storeAccessTokenResponse(g,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,C),this.oidc?this.processIdToken(A,g,p.disableNonceCheck).then(I=>p.validationHandler?p.validationHandler({accessToken:g,idClaims:I.idTokenClaims,idToken:I.idToken,state:b}).then(P=>I):I).then(I=>(this.storeIdToken(I),this.storeSessionState(E),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(p),this.inImplicitFlow=!1,!0)).catch(I=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",I)),this.logger.error("Error validating tokens"),this.logger.error(I),Promise.reject(I))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(p),Promise.resolve(!0))}parseState(p){let e=p,b="";if(p){const _=p.indexOf(this.config.nonceStateSeparator);_>-1&&(e=p.substr(0,_),b=p.substr(_+this.config.nonceStateSeparator.length))}return[e,b]}validateNonce(p){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===p||(console.error("Validating access_token failed, wrong state/nonce.",e,p),!1)}storeIdToken(p){this._storage.setItem("id_token",p.idToken),this._storage.setItem("id_token_claims_obj",p.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+p.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(p){this._storage.setItem("session_state",p)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(p,e){p.onLoginError&&p.onLoginError(e),this.clearHashAfterLogin&&!p.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(p=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:p}processIdToken(p,e,b=!1){const _=p.split("."),g=b64DecodeUnicode(this.padBase64(_[0])),A=JSON.parse(g),C=b64DecodeUnicode(this.padBase64(_[1])),I=JSON.parse(C);let P;if(P=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(I.aud)){if(I.aud.every(ge=>ge!==this.clientId)){const ge="Wrong audience: "+I.aud.join(",");return this.logger.warn(ge),Promise.reject(ge)}}else if(I.aud!==this.clientId){const ge="Wrong audience: "+I.aud;return this.logger.warn(ge),Promise.reject(ge)}if(!I.sub){const ge="No sub claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==I.sub){const ge=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${I.sub}`;return this.logger.warn(ge),Promise.reject(ge)}if(!I.iat){const ge="No iat claim in id_token";return this.logger.warn(ge),Promise.reject(ge)}if(!this.skipIssuerCheck&&I.iss!==this.issuer){const ge="Wrong issuer: "+I.iss;return this.logger.warn(ge),Promise.reject(ge)}if(!b&&I.nonce!==P){const ge="Wrong nonce: "+I.nonce;return this.logger.warn(ge),Promise.reject(ge)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!I.at_hash){const ge="An at_hash is needed!";return this.logger.warn(ge),Promise.reject(ge)}const m=this.dateTimeService.now(),L=1e3*I.iat,O=1e3*I.exp,G=this.getClockSkewInMsec();if(L-G>=m||O+G<=m){const ge="Token has expired";return console.error(ge),console.error({now:m,issuedAtMSec:L,expiresAtMSec:O}),Promise.reject(ge)}const ne={accessToken:e,idToken:p,jwks:this.jwks,idTokenClaims:I,idTokenHeader:A,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(ge=>({idToken:p,idTokenClaims:I,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:O})):this.checkAtHash(ne).then(ge=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ge){const J="Wrong at_hash";return this.logger.warn(J),Promise.reject(J)}return this.checkSignature(ne).then(J=>{const oe={idToken:p,idTokenClaims:I,idTokenClaimsJson:C,idTokenHeader:A,idTokenHeaderJson:g,idTokenExpiresAt:O};return this.disableAtHashCheck?oe:this.checkAtHash(ne).then(Re=>{if(this.requestAccessToken&&!Re){const T="Wrong at_hash";return this.logger.warn(T),Promise.reject(T)}return oe})})})}getIdentityClaims(){const p=this._storage.getItem("id_token_claims_obj");return p?JSON.parse(p):null}getGrantedScopes(){const p=this._storage.getItem("granted_scopes");return p?JSON.parse(p):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(p){for(;p.length%4!=0;)p+="=";return p}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const p=this._storage.getItem("expires_at"),e=this.dateTimeService.new();return!(p&&parseInt(p,10)=0&&null!==this._storage.getItem(p)?JSON.parse(this._storage.getItem(p)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(p={},e=""){let b=!1;"boolean"==typeof p&&(b=p,p={});const _=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>this._storage.removeItem(g)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||b||!_&&!this.postLogoutRedirectUri)return;let w;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)w=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(_)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});_&&(g=g.set("id_token_hint",_));const A=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";A&&(g=g.set("post_logout_redirect_uri",A),e&&(g=g.set("state",e)));for(let E in p)g=g.set(E,p[E]);w=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+g.toString()}this.config.openUri(w)}createAndSaveNonce(){const p=this;return this.createNonce().then(function(e){return p.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):p._storage.setItem("nonce",e),e})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const p=this.document.getElementById(this.silentRefreshIFrameName);p&&p.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(p=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let b=45,_="";const w="undefined"==typeof self?null:self.crypto||self.msCrypto;if(w){let g=new Uint8Array(b);w.getRandomValues(g),g.map||(g.map=Array.prototype.map),g=g.map(A=>e.charCodeAt(A%e.length)),_=String.fromCharCode.apply(null,g)}else for(;0"discovery_document_loaded"===b.type)).subscribe(b=>this.initCodeFlowInternal(p,e))}initCodeFlowInternal(p="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let b={},_=null;"string"==typeof e?_=e:"object"==typeof e&&(b=e),this.createLoginUrl(p,_,null,!1,b).then(this.config.openUri).catch(w=>{console.error("Error in initAuthorizationCodeFlow"),console.error(w)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const p=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(p,"sha-256")),p]})}extractRecognizedCustomParameters(p){let e=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(b=>{p[b]&&e.set(b,JSON.stringify(p[b]))}),e}revokeTokenAndLogout(p={},e=!1){let b=this.revocationEndpoint,_=this.getAccessToken(),w=this.getRefreshToken();if(!_)return;let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),A=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);A=A.set("Authorization","Basic "+E)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const E of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(E,this.customQueryParams[E]);return new Promise((E,C)=>{let I,P;if(_){let m=g.set("token",_).set("token_type_hint","access_token");I=this.http.post(b,m,{headers:A})}else I=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(w){let m=g.set("token",w).set("token_type_hint","refresh_token");P=this.http.post(b,m,{headers:A})}else P=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);e&&(I=I.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m))),P=P.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(m=>0===m.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(m)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([I,P]).subscribe(m=>{this.logOut(p),E(m),this.logger.info("Token successfully revoked")},m=>{this.logger.error("Error revoking token",m),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",m)),C(m)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return $e.\u0275fac=function(p){return new(p||$e)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(_e){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(_e)}}let DefaultOAuthInterceptor=(()=>{class $e{constructor(p,e,b){this.oAuthService=p,this.errorHandler=e,this.moduleConfig=b}checkUrl(p){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(p):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>p.toLowerCase().startsWith(e.toLowerCase()))}intercept(p,e){const b=p.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(b)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>!!w)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(w=>"token_received"===w.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(w=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(w=>{if(w){const A=p.headers.set("Authorization","Bearer "+w);p=p.clone({headers:A})}return e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(g=>this.errorHandler.handleError(g)))})):e.handle(p).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(w=>this.errorHandler.handleError(w))):e.handle(p)}}return $e.\u0275fac=function(p){return new(p||$e)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},$e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:$e,factory:$e.\u0275fac}),$e})();class NullValidationHandler{validateSignature(_e){return Promise.resolve(null)}validateAtHash(_e){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class $e{static forRoot(p=null,e=NullValidationHandler){return{ngModule:$e,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:e},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:p},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return $e.\u0275fac=function(p){return new(p||$e)},$e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:$e}),$e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),$e})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},43586:($e,_e,p)=>{"use strict";p.d(_e,{nu:()=>pe,Co:()=>Xe});var e=p(5e3),b=p(93075),_=p(90508),w=p(74107),g=p(67322),A=p(91159),E=p(591),C=p(21086),I=p(36053),P=p(8929),m=p(87545),L=p(24850),O=p(1059),G=p(40943),ne=p(7625),ge=p(72986),J=p(92198),Me=p(22868),oe=p(53435),Re=p(15664),T=p(77446),j=p(20773),Y=p(47423),q=p(25245),te=p(69808),ue=p(29772);const de=["searchSelectInput"],Le=["innerSelectSearch"];function Ue(Je,nt){if(1&Je){const Ve=e.EpF();e.TgZ(0,"mat-checkbox",9),e.NdJ("change",function(z){return e.CHM(Ve),e.oxw()._emitSelectAllBooleanToParent(z.checked)}),e.qZA()}if(2&Je){const Ve=e.oxw();e.Q6J("color",null==Ve.matFormField?null:Ve.matFormField.color)("checked",Ve.toggleAllCheckboxChecked)("indeterminate",Ve.toggleAllCheckboxIndeterminate)("matTooltip",Ve.toggleAllCheckboxTooltipMessage)("matTooltipPosition",Ve.toogleAllCheckboxTooltipPosition)}}function ze(Je,nt){1&Je&&e._UZ(0,"mat-spinner",10)}function le(Je,nt){1&Je&&e.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function je(Je,nt){1&Je&&(e.TgZ(0,"mat-icon"),e._uU(1,"close"),e.qZA())}function ye(Je,nt){if(1&Je){const Ve=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){return e.CHM(Ve),e.oxw()._reset(!0)}),e.YNc(1,le,1,0,"ng-content",12),e.YNc(2,je,2,0,"ng-template",null,13,e.W1O),e.qZA()}if(2&Je){const Ve=e.MAs(3),X=e.oxw();e.xp6(1),e.Q6J("ngIf",X.clearIcon)("ngIfElse",Ve)}}function Be(Je,nt){if(1&Je&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&Je){const Ve=e.oxw();e.xp6(1),e.hij(" ",Ve.noEntriesFoundLabel,"\n")}}const W=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]]],R=function(Je,nt){return{"mat-select-search-inner-multiple":Je,"mat-select-search-inner-toggle-all":nt}},me=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]"];let be=(()=>{class Je{}return Je.\u0275fac=function(Ve){return new(Ve||Je)},Je.\u0275dir=e.lG2({type:Je,selectors:[["","ngxMatSelectSearchClear",""]]}),Je})(),pe=(()=>{class Je{constructor(Ve,X,z,Q=null,D,H=null){this.matSelect=Ve,this.changeDetectorRef=X,this._viewportRuler=z,this.matOption=Q,this.liveAnnouncer=D,this.matFormField=H,this.placeholderLabel="Suche",this.type="text",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new e.vpe,this.onTouched=V=>{},this._options$=new E.X(null),this.optionsList$=this._options$.pipe((0,m.w)(V=>V?V.changes.pipe((0,L.U)(xe=>xe.toArray()),(0,O.O)(V.toArray())):(0,C.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,L.U)(V=>V?V.length:0)),this._formControl=new b.NI(""),this._showNoEntriesFound$=(0,I.aj)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,L.U)(([V,xe])=>this.noEntriesFoundLabel&&V&&xe===this.getOptionsLengthOffset())),this._onDestroy=new P.xQ}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(Ve){this._options$.next(Ve)}get _options(){return this._options$.getValue()}ngOnInit(){const Ve="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(Ve):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,Ve]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[Ve]=!0):this.matSelect.panelClass=Ve,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe((0,G.g)(1),(0,ne.R)(this._onDestroy)).subscribe(X=>{X?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,ge.q)(1)).pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let X=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const z=this._options.toArray(),Q=z[this.getOptionsLengthOffset()],D=this.matSelect._keyManager;D&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(X,Q)||!D.activeItem||!z.find(V=>this.matSelect.compareWith(V,D.activeItem)))&&D.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),X=Q})})}),this._showNoEntriesFound$.pipe((0,ne.R)(this._onDestroy)).subscribe(X=>{this.matOption&&(X?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,ne.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(Ve){this.toggleAll.emit(Ve)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(Ve){(Ve.key&&1===Ve.key.length||Ve.keyCode>=A.A&&Ve.keyCode<=A.Z||Ve.keyCode>=A.xE&&Ve.keyCode<=A.aO||Ve.keyCode===A.L_||this.preventHomeEndKeyPropagation&&(Ve.keyCode===A.Sd||Ve.keyCode===A.uR))&&Ve.stopPropagation(),this.matSelect.multiple&&Ve.key&&Ve.keyCode===A.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&Ve.keyCode===A.hY&&this.value&&(this._reset(!0),Ve.stopPropagation())}_handleKeyup(Ve){if(Ve.keyCode===A.LH||Ve.keyCode===A.JH){const X=this.matSelect._getAriaActiveDescendant(),z=this._options.toArray().findIndex(Q=>Q.id===X);if(-1!==z){const Q=this._options.toArray()[z];this.liveAnnouncer.announce(Q.viewValue+" "+this.getAriaIndex(z)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(Ve){return 0===this.getOptionsLengthOffset()?Ve+1:Ve}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(Ve){this._lastExternalInputValue=Ve,this._formControl.setValue(Ve),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(Ve){this._formControl.valueChanges.pipe((0,J.h)(X=>X!==this._lastExternalInputValue),(0,Me.b)(()=>this._lastExternalInputValue=void 0),(0,ne.R)(this._onDestroy)).subscribe(Ve)}registerOnTouched(Ve){this.onTouched=Ve}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const Ve=this.matSelect.panel.nativeElement,X=Ve.scrollTop;this.searchSelectInput.nativeElement.focus(),Ve.scrollTop=X}_reset(Ve){this._formControl.setValue(""),Ve&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,ne.R)(this._onDestroy)).subscribe(Ve=>{let X=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!Ve||!Array.isArray(Ve))&&(Ve=[]);const z=this.matSelect.options.map(Q=>Q.value);this.previousSelectedValues.forEach(Q=>{!Ve.some(D=>this.matSelect.compareWith(D,Q))&&!z.some(D=>this.matSelect.compareWith(D,Q))&&(Ve.push(Q),X=!0)})}this.previousSelectedValues=Ve,X&&this.matSelect._onChange(Ve)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const Ve=this.getMatOptionHeight(),X=this.matSelect._keyManager.activeItemIndex||0,z=(0,_.CB)(X,this.matSelect.options,this.matSelect.optionGroups),Q=(this.matOption?-1:0)+z+X,D=this.matSelect.panel.nativeElement.scrollTop,H=this.innerSelectSearch.nativeElement.offsetHeight,V=Math.floor((256-H)/Ve),xe=Math.round((D+H)/Ve)-1;xe>=Q?this.matSelect.panel.nativeElement.scrollTop=Q*Ve:xe+V<=Q&&(this.matSelect.panel.nativeElement.scrollTop=(Q+1)*Ve-(256-H))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let X,Ve=this.innerSelectSearch.nativeElement;for(;Ve=Ve.parentElement;)if(Ve.classList.contains("mat-select-panel")){X=Ve;break}X&&(this.innerSelectSearch.nativeElement.style.width=X.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return Je.\u0275fac=function(Ve){return new(Ve||Je)(e.Y36(w.gD),e.Y36(e.sBO),e.Y36(oe.rL),e.Y36(_.ey,8),e.Y36(Re.Kd),e.Y36(g.KE,8))},Je.\u0275cmp=e.Xpm({type:Je,selectors:[["ngx-mat-select-search"]],contentQueries:function(Ve,X,z){if(1&Ve&&e.Suo(z,be,5),2&Ve){let Q;e.iGM(Q=e.CRH())&&(X.clearIcon=Q.first)}},viewQuery:function(Ve,X){if(1&Ve&&(e.Gf(de,7,e.SBq),e.Gf(Le,7,e.SBq)),2&Ve){let z;e.iGM(z=e.CRH())&&(X.searchSelectInput=z.first),e.iGM(z=e.CRH())&&(X.innerSelectSearch=z.first)}},hostVars:2,hostBindings:function(Ve,X){2&Ve&&e.ekj("mat-select-search-inside-mat-option",X.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[e._Bn([{provide:b.JU,useExisting:(0,e.Gpc)(()=>Je),multi:!0}])],ngContentSelectors:me,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[1,"mat-select-search-no-entries-found"]],template:function(Ve,X){1&Ve&&(e.F$t(W),e._UZ(0,"input",0),e.TgZ(1,"div",1,2),e.YNc(3,Ue,1,5,"mat-checkbox",3),e.TgZ(4,"input",4,5),e.NdJ("keydown",function(Q){return X._handleKeydown(Q)})("keyup",function(Q){return X._handleKeyup(Q)})("blur",function(){return X.onBlur()}),e.qZA(),e.YNc(6,ze,1,0,"mat-spinner",6),e.YNc(7,ye,4,2,"button",7),e.Hsn(8),e.qZA(),e.YNc(9,Be,2,1,"div",8),e.ALo(10,"async")),2&Ve&&(e.xp6(1),e.Q6J("ngClass",e.WLB(11,R,X.matSelect.multiple,X._isToggleAllCheckboxVisible())),e.xp6(2),e.Q6J("ngIf",X._isToggleAllCheckboxVisible()),e.xp6(1),e.Q6J("type",X.type)("formControl",X._formControl)("placeholder",X.placeholderLabel),e.uIk("aria-label",X.ariaLabel),e.xp6(2),e.Q6J("ngIf",X.searching),e.xp6(1),e.Q6J("ngIf",!X.hideClearSearchButton&&X.value&&!X.searching),e.xp6(2),e.Q6J("ngIf",e.lcZ(10,9,X._showNoEntriesFound$)))},directives:[T.oG,j.$g,Y.lW,q.Hw,te.mk,te.O5,ue.gM,b.Fj,b.JJ,b.oH],pipes:[te.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),Je})(),Xe=(()=>{class Je{}return Je.\u0275fac=function(Ve){return new(Ve||Je)},Je.\u0275mod=e.oAB({type:Je}),Je.\u0275inj=e.cJS({imports:[[te.ez,b.UX,Y.ot,T.p9,q.Ps,j.Cq,ue.AV]]}),Je})()},4147:$e=>{"use strict";$e.exports={i8:"8.1.1"}}},$e=>{$e($e.s=9193)}]); \ No newline at end of file diff --git a/dist/apps/admin-gui/runtime.cd84902192e61532.js b/dist/apps/admin-gui/runtime.ac3da4b8ce0c22cb.js similarity index 79% rename from dist/apps/admin-gui/runtime.cd84902192e61532.js rename to dist/apps/admin-gui/runtime.ac3da4b8ce0c22cb.js index c6ce1fed0..9a136fb2e 100644 --- a/dist/apps/admin-gui/runtime.cd84902192e61532.js +++ b/dist/apps/admin-gui/runtime.ac3da4b8ce0c22cb.js @@ -1 +1 @@ -(()=>{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(p=>r.O[p](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{142:"ce313870b35cf285",243:"6d3d1f3024f100ed",357:"b680344f1c9676d6",417:"e549ef1f1f337e2f",462:"885ced9d1174fe3f",493:"2871d9551d589868",641:"e4764992bfd886ec",858:"579436d87302657d",958:"4cd11592a5992446"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(b);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(p)),_)return _(p)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),b=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+b+")",d.name="ChunkLoadError",d.type=s,d.request=b,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(b=>0!==e[b])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);c{"use strict";var e,g={},v={};function r(e){var n=v[e];if(void 0!==n)return n.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=g,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(l=!1,o0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},(()=>{var n,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,f){if(1&f&&(t=this(t)),8&f||"object"==typeof t&&t&&(4&f&&t.__esModule||16&f&&"function"==typeof t.then))return t;var o=Object.create(null);r.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var a=2&f&&t;"object"==typeof a&&!~n.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach(l=>i[l]=()=>t[l]);return i.default=()=>t,r.d(o,i),o}})(),r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{124:"0687c18e03ce09ed",142:"353dd9fd9ab325a1",243:"918a8ea46ff9a066",323:"5833c53045eb42df",357:"a2d2d7ce0e6f40ec",493:"2871d9551d589868",641:"e4764992bfd886ec",858:"60ce41446720aef0",958:"d83855b556c5f154"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="admin-gui:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,l;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),_)return _(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((c,s)=>i=e[f]=[c,s]);o.push(i[2]=a);var l=r.p+r.u(f),d=new Error;r.l(l,c=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=c&&("load"===c.type?"missing":c.type),p=c&&c.target&&c.target.src;d.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,i[1](d)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var d,u,[i,a,l]=o,c=0;if(i.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(l)var s=l(r)}for(f&&f(o);cPasswordReset - + - + diff --git a/dist/apps/password-reset/main.30345ae2ef301935.js b/dist/apps/password-reset/main.30345ae2ef301935.js new file mode 100644 index 000000000..9503459a8 --- /dev/null +++ b/dist/apps/password-reset/main.30345ae2ef301935.js @@ -0,0 +1 @@ +(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{4163:(z,W,E)=>{"use strict";var T=E(9808),p=E(5e3);class B extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends B{static makeCurrent(){(0,T.HT)(new j)}onAndCancel(r,e,t){return r.addEventListener(e,t,!1),()=>{r.removeEventListener(e,t,!1)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.parentNode&&r.parentNode.removeChild(r)}createElement(r,e){return(e=e||this.getDefaultDocument()).createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return"window"===e?window:"document"===e?r:"body"===e?r.body:null}getBaseHref(r){const e=function O(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function $(o){Y=Y||document.createElement("a"),Y.setAttribute("href",o);const r=Y.pathname;return"/"===r.charAt(0)?r:`/${r}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return(0,T.Mx)(document.cookie,r)}}let Y,I=null;const G=new p.OlP("TRANSITION_ID"),L=[{provide:p.ip1,useFactory:function F(o,r,e){return()=>{e.get(p.CZH).donePromise.then(()=>{const t=(0,T.q)(),s=r.querySelectorAll(`style[ng-transition="${o}"]`);for(let l=0;l{const l=r.findTestabilityInTree(t,s);if(null==l)throw new Error("Could not find testability for element.");return l},p.dqk.getAllAngularTestabilities=()=>r.getAllTestabilities(),p.dqk.getAllAngularRootElements=()=>r.getAllRootElements(),p.dqk.frameworkStabilizers||(p.dqk.frameworkStabilizers=[]),p.dqk.frameworkStabilizers.push(t=>{const s=p.dqk.getAllAngularTestabilities();let l=s.length,c=!1;const n=function(i){c=c||i,l--,0==l&&t(c)};s.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(r,e,t){if(null==e)return null;const s=r.getTestability(e);return null!=s?s:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(r,e.host,!0):this.findTestabilityInTree(r,e.parentElement,!0):null}}let Q=(()=>{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new p.OlP("EventManagerPlugins");let re=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let l=0;l{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),xe=(()=>{class o extends le{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(l=>{const c=this._doc.createElement("style");c.textContent=l,s.push(t.appendChild(c))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ae),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ae))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();function Ae(o){(0,T.q)().remove(o)}const Be={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/"},mt=/%COMP%/g;function he(o,r,e){for(let t=0;t{if("__ngUnwrap__"===r)return o;!1===o(r)&&(r.preventDefault(),r.returnValue=!1)}}let we=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ce(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case p.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Vi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case p.ifc.ShadowDom:return new Ge(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=he(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(re),p.LFG(xe),p.LFG(p.AFp))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class ce{constructor(r){this.eventManager=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(r,e){return e?document.createElementNS(Be[e]||e,r):document.createElement(r)}createComment(r){return document.createComment(r)}createText(r){return document.createTextNode(r)}appendChild(r,e){r.appendChild(e)}insertBefore(r,e,t){r&&r.insertBefore(e,t)}removeChild(r,e){r&&r.removeChild(e)}selectRootElement(r,e){let t="string"==typeof r?document.querySelector(r):r;if(!t)throw new Error(`The selector "${r}" did not match any elements`);return e||(t.textContent=""),t}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,t,s){if(s){e=s+":"+e;const l=Be[s];l?r.setAttributeNS(l,e,t):r.setAttribute(e,t)}else r.setAttribute(e,t)}removeAttribute(r,e,t){if(t){const s=Be[t];s?r.removeAttributeNS(s,e):r.removeAttribute(`${t}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,t,s){s&(p.JOm.DashCase|p.JOm.Important)?r.style.setProperty(e,t,s&p.JOm.Important?"important":""):r.style[e]=t}removeStyle(r,e,t){t&p.JOm.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,t){r[e]=t}setValue(r,e){r.nodeValue=e}listen(r,e,t){return"string"==typeof r?this.eventManager.addGlobalEventListener(r,e,fe(t)):this.eventManager.addEventListener(r,e,fe(t))}}class Vi extends ce{constructor(r,e,t,s){super(r),this.component=t;const l=he(s+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Xe(o){return"_ngcontent-%COMP%".replace(mt,o)}(s+"-"+t.id),this.hostAttr=function oe(o){return"_nghost-%COMP%".replace(mt,o)}(s+"-"+t.id)}applyToHost(r){super.setAttribute(r,this.hostAttr,"")}createElement(r,e){const t=super.createElement(r,e);return super.setAttribute(t,this.contentAttr,""),t}}class Ge extends ce{constructor(r,e,t,s){super(r),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=he(s.id,s.styles,[]);for(let c=0;c{class o extends ne{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const wn=["alt","control","meta","shift"],or={"\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"},Vt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Er={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let vn=(()=>{class o extends ne{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const l=o.parseEventName(t),c=o.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,c))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const l=o._normalizeKey(t.pop());let c="";if(wn.forEach(i=>{const a=t.indexOf(i);a>-1&&(t.splice(a,1),c+=i+".")}),c+=l,0!=t.length||0===l.length)return null;const n={};return n.domEventName=s,n.fullKey=c,n}static getEventFullKey(e){let t="",s=function oi(o){let r=o.key;if(null==r){if(r=o.keyIdentifier,null==r)return"Unidentified";r.startsWith("U+")&&(r=String.fromCharCode(parseInt(r.substring(2),16)),3===o.location&&Vt.hasOwnProperty(r)&&(r=Vt[r]))}return or[r]||r}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),wn.forEach(l=>{l!=s&&Er[l](e)&&(t+=l+".")}),t+=s,t}static eventCallback(e,t,s){return l=>{o.getEventFullKey(l)===e&&s.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const Sr=(0,p.eFA)(p._c5,"browser",[{provide:p.Lbi,useValue:T.bD},{provide:p.g9A,useValue:function lr(){j.makeCurrent(),U.init()},multi:!0},{provide:T.K0,useFactory:function Ka(){return(0,p.RDi)(document),document},deps:[]}]),cr=[{provide:p.zSh,useValue:"root"},{provide:p.qLn,useFactory:function Ja(){return new p.qLn},deps:[]},{provide:ie,useClass:it,multi:!0,deps:[T.K0,p.R0b,p.Lbi]},{provide:ie,useClass:vn,multi:!0,deps:[T.K0]},{provide:we,useClass:we,deps:[re,xe,p.AFp]},{provide:p.FYo,useExisting:we},{provide:le,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:p.dDg,useClass:p.dDg,deps:[p.R0b]},{provide:re,useClass:re,deps:[ie,p.R0b]},{provide:T.JF,useClass:Q,deps:[]}];let Mr=(()=>{class o{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:o,providers:[{provide:p.AFp,useValue:e.appId},{provide:G,useExisting:p.AFp},L]}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(o,12))},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:cr,imports:[T.ez,p.hGG]}),o})(),Bi=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function _i(){return new Bi((0,p.LFG)(T.K0))}(),t},providedIn:"root"}),o})();"undefined"!=typeof window&&window;let Tn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):p.LFG(ra),t},providedIn:"root"}),o})(),ra=(()=>{class o extends Tn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case p.q3G.NONE:return t;case p.q3G.HTML:return(0,p.qzn)(t,"HTML")?(0,p.z3N)(t):(0,p.EiD)(this._doc,String(t)).toString();case p.q3G.STYLE:return(0,p.qzn)(t,"Style")?(0,p.z3N)(t):t;case p.q3G.SCRIPT:if((0,p.qzn)(t,"Script"))return(0,p.z3N)(t);throw new Error("unsafe value used in a script context");case p.q3G.URL:return(0,p.yhl)(t),(0,p.qzn)(t,"URL")?(0,p.z3N)(t):(0,p.mCW)(String(t));case p.q3G.RESOURCE_URL:if((0,p.qzn)(t,"ResourceURL"))return(0,p.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,p.JVY)(e)}bypassSecurityTrustStyle(e){return(0,p.L6k)(e)}bypassSecurityTrustScript(e){return(0,p.eBb)(e)}bypassSecurityTrustUrl(e){return(0,p.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,p.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function jl(o){return new ra(o.get(T.K0))}(p.LFG(p.zs3)),t},providedIn:"root"}),o})();var y=E(520);class Ot{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}const Ft=new p.OlP("basePath");class je{constructor(r={}){this.apiKeys=r.apiKeys,this.username=r.username,this.password=r.password,this.accessToken=r.accessToken,this.basePath=r.basePath,this.withCredentials=r.withCredentials,this.encoder=r.encoder,this.credentials=r.credentials?r.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}selectHeaderAccept(r){if(0===r.length)return;const e=r.find(t=>this.isJsonMime(t));return void 0===e?r[0]:e}isJsonMime(r){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==r&&(e.test(r)||"application/json-patch+json"===r.toLowerCase())}lookupCredential(r){const e=this.credentials[r];return"function"==typeof e?e():e}}let En=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=s?`${s}.${l}`:l));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}convertAttributeToUnique(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}createAttributeDefinition(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}deleteAttributeDefinition(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}deleteAttributeDefinitions(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAllAttributeDefinitions(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,s,l,c,n,i,a,d,u,g,b="body",D=!1,q){let se=new y.LE({encoder:this.encoder});null!=e&&(se=this.addToHttpParams(se,e,"attributeName")),null!=t&&(se=this.addToHttpParams(se,t,"attributeId")),null!=s&&(se=this.addToHttpParams(se,s,"facility")),null!=l&&(se=this.addToHttpParams(se,l,"user")),null!=c&&(se=this.addToHttpParams(se,c,"vo")),null!=n&&(se=this.addToHttpParams(se,n,"resource")),null!=i&&(se=this.addToHttpParams(se,i,"member")),null!=a&&(se=this.addToHttpParams(se,a,"group")),null!=d&&(se=this.addToHttpParams(se,d,"host")),null!=u&&(se=this.addToHttpParams(se,u,"userExtSource")),null!=g&&(se=this.addToHttpParams(se,g,"key"));let rt,De=this.defaultHeaders;rt=this.configuration.lookupCredential("BasicAuth"),rt&&(De=De.set("Authorization","Basic "+rt)),rt=this.configuration.lookupCredential("BearerAuth"),rt&&(De=De.set("Authorization","Bearer "+rt));let Qe=q&&q.httpHeaderAccept;void 0===Qe&&(Qe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Qe&&(De=De.set("Accept",Qe));let At=q&&q.context;void 0===At&&(At=new y.qT);let Nn="json";return Qe&&(Nn=Qe.startsWith("text")?"text":this.configuration.isJsonMime(Qe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:At,params:se,responseType:Nn,withCredentials:this.configuration.withCredentials,headers:De,observe:b,reportProgress:D})}getAttributeDefinitionById(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionByName(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionsByNamespace(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributePolicyCollections(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeRights(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributesDefinitionWithRights(e,t,s,l,c,n,i,a,d="body",u=!1,g){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=s&&(b=this.addToHttpParams(b,s,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=c&&(b=this.addToHttpParams(b,c,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=a&&(b=this.addToHttpParams(b,a,"userExtSource"));let q,D=this.defaultHeaders;q=this.configuration.lookupCredential("BasicAuth"),q&&(D=D.set("Authorization","Basic "+q)),q=this.configuration.lookupCredential("BearerAuth"),q&&(D=D.set("Authorization","Bearer "+q));let se=g&&g.httpHeaderAccept;void 0===se&&(se=this.configuration.selectHeaderAccept(["application/json"])),void 0!==se&&(D=D.set("Accept",se));let De=g&&g.context;void 0===De&&(De=new y.qT);let rt="json";return se&&(rt=se.startsWith("text")?"text":this.configuration.isJsonMime(se)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:De,params:b,responseType:rt,withCredentials:this.configuration.withCredentials,headers:D,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesByName(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesWithKeys(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getEntitylessKeys(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getFacilityAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getFacilityAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"facility")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"user")),null!=l&&(a=this.addToHttpParams(a,l,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getFacilityUserAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupResourceAttributeById(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getGroupResourceAttributeByName(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getGroupResourceAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getHostAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getHostAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getHostAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getHostAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getLogins(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAndUserAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getMemberAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getMemberAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(q=>{a=this.addToHttpParams(a,q,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberGroupAttributeById(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberGroupAttributeByName(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberGroupAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getMemberGroupAttributesByNames(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(q=>{a=this.addToHttpParams(a,q,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getMemberResourceAttributeById(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAttributeByName(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getMemberResourceAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacility(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacilityService(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesHostService(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesMember(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesMemberGroupResourceService(e,t,s,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"group")),null!=l&&(d=this.addToHttpParams(d,l,"member")),null!=c&&(d=this.addToHttpParams(d,c,"workWithUserAttributes"));let g,u=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(u=u.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(u=u.set("Authorization","Bearer "+g));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=a&&a.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getRequiredAttributesMemberResourceService(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"service")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),null!=s&&(a=this.addToHttpParams(a,s,"member")),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getRequiredAttributesResource(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesResourceService(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesResourceServices(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesUserFacility(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getRequiredAttributesVoService(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getResourceAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getResourceAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getResourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getResourceAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getResourceGroupAndGroupAttributesByNames(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(q=>{a=this.addToHttpParams(a,q,"attrNames[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getResourceGroupAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"resource")),null!=t&&(a=this.addToHttpParams(a,t,"group")),null!=s&&(a=this.addToHttpParams(a,s,"member")),l&&l.forEach(q=>{a=this.addToHttpParams(a,q,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSourceAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSourceAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserFacilityAttributeById(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getUserFacilityAttributeByName(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getUserFacilityAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getVoAttributeById(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getVoAttributeByName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getVoAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVoAttributesByNames(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=s&&(u=this.addToHttpParams(u,s,"group")),null!=l&&(u=this.addToHttpParams(u,l,"user")),null!=c&&(u=this.addToHttpParams(u,c,"member")),n&&n.forEach(De=>{u=this.addToHttpParams(u,De,"attributes[]")});let b,g=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(g=g.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(g=g.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(g=g.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:g,observe:i,reportProgress:a})}removeAttributesForFacilityResourceUserMember(e,t,s,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"user")),null!=l&&(d=this.addToHttpParams(d,l,"member")),c&&c.forEach(se=>{d=this.addToHttpParams(d,se,"attributes[]")});let g,u=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(u=u.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(u=u.set("Authorization","Bearer "+g));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=a&&a.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeFacilityAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeFacilityAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeGroupAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeGroupAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeGroupResourceAttribute(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeGroupResourceAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"group")),null!=t&&(a=this.addToHttpParams(a,t,"resource")),s&&s.forEach(q=>{a=this.addToHttpParams(a,q,"attributes[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeHostAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeHostAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeMemberAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeMemberAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttribute(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"member")),null!=t&&(a=this.addToHttpParams(a,t,"group")),s&&s.forEach(q=>{a=this.addToHttpParams(a,q,"attributes[]")}),null!=l&&(a=this.addToHttpParams(a,l,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}removeMemberResourceAttribute(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeMemberResourceAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeResourceAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeResourceAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUesAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUserAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUserAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUserExtSourceAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUserFacilityAttribute(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeUserFacilityAttributes(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}removeVoAttribute(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeVoAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}setAttributePolicyCollections(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setAttributeRights(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setEntitylessAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setFacilityAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setFacilityAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setFacilityResourceGroupUserMemberAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setFacilityResourceUserMemberAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setFacilityUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setGroupAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setGroupAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setGroupResourceAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setGroupResourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setHostAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setHostAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberGroupAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberGroupAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberGroupWithUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberResourceAndUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberResourceAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberResourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setMemberWithUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setResourceAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setResourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setResourceGroupAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setResourceGroupWithGroupAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserExtSourceAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserExtSourceAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserFacilityAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setUserFacilityAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setVoAttribute(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setVoAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}updateAttributeDefinition(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Ft,8),p.LFG(je,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wi=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=s?`${s}.${l}`:l));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}getAuthzRichAdmins(e,t,s,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=s&&(u=this.addToHttpParams(u,s,"complementaryObjectName")),l&&l.forEach(De=>{u=this.addToHttpParams(u,De,"specificAttributes")}),null!=c&&(u=this.addToHttpParams(u,c,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,g=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(g=g.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(g=g.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(g=g.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:g,observe:i,reportProgress:a})}getFacilitiesWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupRoleNames(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupRoles(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getLoggedUser(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getPerunPrincipal(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserRoleNames(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserRoles(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsInRoles(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}isFacilityAdmin(e,t="body",s=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isGroupAdmin(e,t="body",s=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isPerunAdmin(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",s=!1,l){let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}keepAlive(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}setRoleWithUserComplementaryObject(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}unsetRoleWithGroupComplementaryObject(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}unsetRoleWithUserComplementaryObject(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Ft,8),p.LFG(je,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bi=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=s?`${s}.${l}`:l));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"memberId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVo(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}sentMessageToRTWithVoQueue(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"voId")),null!=t&&(a=this.addToHttpParams(a,t,"queue")),null!=s&&(a=this.addToHttpParams(a,s,"subject")),null!=l&&(a=this.addToHttpParams(a,l,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Ft,8),p.LFG(je,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Mn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=s?`${s}.${l}`:l));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}addUserExtSource(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}anonymizeUser(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"token")),null!=t&&(i=this.addToHttpParams(i,t,"password")),null!=s&&(i=this.addToHttpParams(i,s,"lang"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}changePasswordForLogin(e,t,s,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"login")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=l&&(d=this.addToHttpParams(d,l,"oldPassword")),null!=c&&(d=this.addToHttpParams(d,c,"checkOldPassword"));let g,u=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(u=u.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(u=u.set("Authorization","Bearer "+g));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=a&&a.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}changePasswordForUser(e,t,s,l,c,n="body",i=!1,a){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=l&&(d=this.addToHttpParams(d,l,"oldPassword")),null!=c&&(d=this.addToHttpParams(d,c,"checkOldPassword"));let g,u=this.defaultHeaders;g=this.configuration.lookupCredential("BasicAuth"),g&&(u=u.set("Authorization","Basic "+g)),g=this.configuration.lookupCredential("BearerAuth"),g&&(u=u.set("Authorization","Bearer "+g));let b=a&&a.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=a&&a.context;void 0===D&&(D=new y.qT);let q="json";return b&&(q=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:D,params:d,responseType:q,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}checkPasswordResetRequestByTokenIsValid(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}checkPasswordStrength(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"password")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}createAlternativePassword(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"user")),null!=t&&(a=this.addToHttpParams(a,t,"description")),null!=s&&(a=this.addToHttpParams(a,s,"loginNamespace")),null!=l&&(a=this.addToHttpParams(a,l,"password"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}createServiceUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}deleteAlternativePassword(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}deletePasswordForLogin(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}deletePasswordForUser(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}deleteUser(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}findRichUsers(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}findRichUsersWithAttributes(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}findUsers(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}generateAccountForName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAssignedRichResourcesForUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsForFacilityWhereUserIsActive(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getPendingPreferredEmailChanges(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserExtSources(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserWithAttributes(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersByIds(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithAttributesByIds(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithoutVoWithAttributes(e,t="body",s=!1,l){let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSpecificUsersByUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSponsorsForMember(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,s,l,c="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let a=new y.LE({encoder:this.encoder});null!=e&&(a=this.addToHttpParams(a,e,"vo")),null!=t&&(a=this.addToHttpParams(a,t,"extSourceName")),null!=s&&(a=this.addToHttpParams(a,s,"extLogin")),l&&l.forEach(q=>{a=this.addToHttpParams(a,q,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let g=i&&i.httpHeaderAccept;void 0===g&&(g=this.configuration.selectHeaderAccept(["application/json"])),void 0!==g&&(d=d.set("Accept",g));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return g&&(D=g.startsWith("text")?"text":this.configuration.isJsonMime(g)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:a,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:c,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserById(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSourceById(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}getUserExtSources(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourcesByIds(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsers(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let c=new y.LE({encoder:this.encoder});e&&e.forEach(g=>{c=this.addToHttpParams(c,g,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersBySpecificUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersPage(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}getVosWhereUserIsAdmin(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsMember(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isLoginAvailable(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}loginExist(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeSpecificUserOwner(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}removeUserExtSource(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}requestPreferredEmailChange(e,t,s,l,c,n,i="body",a=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=s&&(u=this.addToHttpParams(u,s,"lang")),null!=l&&(u=this.addToHttpParams(u,l,"linkPath")),null!=c&&(u=this.addToHttpParams(u,c,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,g=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(g=g.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(g=g.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(g=g.set("Accept",D));let q=d&&d.context;void 0===q&&(q=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:q,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:g,observe:i,reportProgress:a})}reservePasswordForLogin(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"login")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}reservePasswordForUser(e,t,s,l="body",c=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,a=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(a=a.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(a=a.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(a=a.set("Accept",u));let g=n&&n.context;void 0===g&&(g=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:g,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:a,observe:l,reportProgress:c})}reserveRandomPassword(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}updateUser(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,c=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(c=c.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(c=c.set("Authorization","Bearer "+n));let i=l&&l.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(c=c.set("Accept",i));let a=l&&l.context;void 0===a&&(a=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(c=c.set("Content-Type",u));let g="json";return i&&(g=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:a,responseType:g,withCredentials:this.configuration.withCredentials,headers:c,observe:t,reportProgress:s})}updateUserExtSourceLastAccess(e,t="body",s=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let c=new y.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let a=l&&l.httpHeaderAccept;void 0===a&&(a=this.configuration.selectHeaderAccept(["application/json"])),void 0!==a&&(n=n.set("Accept",a));let d=l&&l.context;void 0===d&&(d=new y.qT);let u="json";return a&&(u=a.startsWith("text")?"text":this.configuration.isJsonMime(a)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:c,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}validatePasswordForLogin(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}validatePasswordForUser(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,s="body",l=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let a,i=this.defaultHeaders;a=this.configuration.lookupCredential("BasicAuth"),a&&(i=i.set("Authorization","Basic "+a)),a=this.configuration.lookupCredential("BearerAuth"),a&&(i=i.set("Authorization","Bearer "+a));let d=c&&c.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=c&&c.context;void 0===u&&(u=new y.qT);let g="json";return d&&(g=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:g,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:l})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Ft,8),p.LFG(je,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),et=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=s?`${s}.${l}`:l));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,s){let c,l=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(l=l.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(l=l.set("Authorization","Bearer "+c));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(l=l.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let a="json";return n&&(a=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:a,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Ft,8),p.LFG(je,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Bf=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:je,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(o,12),p.LFG(y.eN,8))},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[],imports:[[]]}),o})();var st=(()=>{return(o=st||(st={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.GROUPOBSERVER="GROUPOBSERVER",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",o.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",o.UNKNOWN="UNKNOWN",o.MEMBERSHIP="MEMBERSHIP",st;var o})();let Of=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const s=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const n of s)l=l.concat(n.perunRoles);const c=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,c)}principalHasRole(e,t,s){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(s.toString()))}canManageFacilities(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER,st.FACILITYADMIN,st.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(st.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(st.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(st.PERUNADMIN,st.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(st.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOOBSERVER,st.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const l=new Map;this.setRolesAuthorization(t,e,l);for(const c of l.values())if(c.readAuth||c.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const l of e){let c=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){c=c.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const D of Object.keys(b.entitiesToManage))i="User"===D?[D].concat(i):i.concat(D);break}const a=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(c,a),u=this.resolveAuthorization(n,a);s.set(l,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const s of e){let l=!0;for(const c of Object.keys(s)){const n=s[c];if(null===n)this.principalRoles.has(c)||(l=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(c,n,i)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let l=s.beanName;switch(s.beanName.startsWith("Rich")&&(l=s.beanName.substring(4)),t[l]?t[l].push(s.id):t[l]=[s.id],l){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const c=s.shift();if(t.has(c))continue;const n=this.getPerunPolicy(c);if(!n)return[];t.set(c,n),s=s.concat(n.includePolicies)}const l=[];for(const c of t.values())l.push(c);return l}voCustomSort(e){for(let t=0;t{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const s=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,dn.k)(s)?t(...s):t(s))):new yi.y(s=>{eu(o,r,function l(c){s.next(arguments.length>1?Array.prototype.slice.call(arguments):c)},s,e)})}function eu(o,r,e,t,s){let l;if(function tu(o){return o&&"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener}(o)){const c=o;o.addEventListener(r,e,s),l=()=>c.removeEventListener(r,e,s)}else if(function co(o){return o&&"function"==typeof o.on&&"function"==typeof o.off}(o)){const c=o;o.on(r,e),l=()=>c.off(r,e)}else if(function Wl(o){return o&&"function"==typeof o.addListener&&"function"==typeof o.removeListener}(o)){const c=o;o.addListener(r,e),l=()=>c.removeListener(r,e)}else{if(!o||!o.length)throw new TypeError("Invalid event target");for(let c=0,n=o.length;c0?super.requestAsyncId(r,e,t):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(()=>r.flush(null))))}recycleAsyncId(r,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(r,e,t);0===r.actions.length&&(cancelAnimationFrame(e),r.scheduled=void 0)}});let Ql=1;const Lf=Promise.resolve(),is={};function ns(o){return o in is&&(delete is[o],!0)}const uo={setImmediate(o){const r=Ql++;return is[r]=!0,Lf.then(()=>ns(r)&&o()),r},clearImmediate(o){ns(o)}},H=new class jt extends wi.v{flush(r){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,s=-1,l=e.length;r=r||e.shift();do{if(t=r.execute(r.state,r.delay))break}while(++s0?super.requestAsyncId(r,e,t):(r.actions.push(this),r.scheduled||(r.scheduled=uo.setImmediate(r.flush.bind(r,null))))}recycleAsyncId(r,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(r,e,t);0===r.actions.length&&(uo.clearImmediate(e),r.scheduled=void 0)}});var k=E(353),M=E(826),V=E(9054);class de{constructor(r){this.durationSelector=r}call(r,e){return e.subscribe(new me(r,this.durationSelector))}}class me extends M.L{constructor(r,e){super(r),this.durationSelector=e,this.hasValue=!1}_next(r){if(this.value=r,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(r)}catch(s){return this.destination.error(s)}const t=(0,V.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:r,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(r))}notifyNext(r,e,t,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Oe(o){return!(0,dn.k)(o)&&o-parseFloat(o)+1>=0}var Dt=E(2866);function Tt(o=0,r,e){let t=-1;return Oe(r)?t=Number(r)<1?1:Number(r):(0,Dt.K)(r)&&(e=r),(0,Dt.K)(e)||(e=k.P),new yi.y(s=>{const l=Oe(o)?o:+o-e.now();return e.schedule(ht,l,{index:0,period:t,subscriber:s})})}function ht(o){const{index:r,period:e,subscriber:t}=o;if(t.next(r),!t.closed){if(-1===e)return t.complete();o.index=r+1,this.schedule(o,e)}}function _t(o,r=k.P){return function X(o){return function(e){return e.lift(new de(o))}}(()=>Tt(o,r))}var bt=E(2198);let kt;try{kt="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(o){kt=!1}let vi,Je=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!kt)&&"undefined"!=typeof CSS&&!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}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.Lbi))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})();const qe=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Rr(){if(vi)return vi;if("object"!=typeof document||!document)return vi=new Set(qe),vi;let o=document.createElement("input");return vi=new Set(qe.filter(r=>(o.setAttribute("type",r),o.type===r))),vi}let kr,ca,Ct;function Ji(o){return function ho(){if(null==kr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kr=!0}))}finally{kr=kr||!1}return kr}()?o:!!o.capture}function rC(){if(null==ca){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ca=!1,ca;if("scrollBehavior"in document.documentElement.style)ca=!0;else{const o=Element.prototype.scrollTo;ca=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return ca}function Gt(o){if(function jf(){if(null==Ct){const o="undefined"!=typeof document?document.head:null;Ct=!(!o||!o.createShadowRoot&&!o.attachShadow)}return Ct}()){const r=o.getRootNode?o.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&r instanceof ShadowRoot)return r}return null}function Jl(){let o="undefined"!=typeof document&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const r=o.shadowRoot.activeElement;if(r===o)break;o=r}return o}function Pi(o){return o.composedPath?o.composedPath()[0]:o.target}function un(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const ru=new p.OlP("cdk-dir-doc",{providedIn:"root",factory:function au(){return(0,p.f3M)(T.K0)}}),Cx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let hn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new p.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function aC(o){const r=(null==o?void 0:o.toLowerCase())||"";return"auto"===r&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?Cx.test(navigator.language)?"rtl":"ltr":"rtl"===r?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(ru,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ti=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),Nf=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new yi.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(_t(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,bt.h)(l=>!l||s.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Lt(t),l=e.getElementRef().nativeElement;do{if(s==l)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>lo(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.R0b),p.LFG(Je),p.LFG(T.K0,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),da=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new He.xQ,this._changeListener=l=>{this._change.next(l)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,l=s.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(_t(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je),p.LFG(p.R0b),p.LFG(T.K0,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Un=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),ua=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[ti,Yi,Un],ti,Un]}),o})();class Nt{attach(r){return this._attachedHost=r,r.attach(this)}detach(){let r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(r){this._attachedHost=r}}class go extends Nt{constructor(r,e,t,s){super(),this.component=r,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class du extends Nt{constructor(r,e,t){super(),this.templateRef=r,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(r,e=this.context){return this.context=e,super.attach(r)}detach(){return this.context=void 0,super.detach()}}class qf extends Nt{constructor(r){super(),this.element=r instanceof p.SBq?r.nativeElement:r}}class uu{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(r){return r instanceof go?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof du?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof qf?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class hC extends uu{constructor(r,e,t,s,l){super(),this.outletElement=r,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=c=>{const n=c.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=c,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=l}attachComponentPortal(r){const t=(r.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(r.component);let s;return r.viewContainerRef?(s=r.viewContainerRef.createComponent(t,r.viewContainerRef.length,r.injector||r.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(r.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=r,s}attachTemplatePortal(r){let e=r.viewContainerRef,t=e.createEmbeddedView(r.templateRef,r.context);return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=r,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(r){return r.hostView.rootNodes[0]}}let Kl=(()=>{class o extends uu{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new p.vpe,this.attachDomPortal=l=>{const c=l.element,n=this._document.createComment("dom-portal");l.setAttachedHost(this),c.parentNode.insertBefore(n,c),this._getRootNode().appendChild(c),this._attachedPortal=l,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(c,n)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),c=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]),super.setDisposeFn(()=>c.destroy()),this._attachedPortal=e,this._attachedRef=c,this.attached.emit(c),c}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p._Vd),p.Y36(p.s_b),p.Y36(T.K0))},o.\u0275dir=p.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.qOj]}),o})(),rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})();var zt=E(2654),Wn=E(6787),Yt=E(2986);function pt(o){return r=>r.lift(new gu(o))}class gu{constructor(r){this.notifier=r}call(r,e){const t=new fC(r),s=(0,V.D)(t,this.notifier);return s&&!t.seenValue?(t.add(s),e.subscribe(t)):t}}class fC extends M.L{constructor(r){super(r),this.seenValue=!1}notifyNext(r,e,t,s,l){this.seenValue=!0,this.complete()}notifyComplete(){}}const Uf=rC();class Tx{constructor(r,e){this._viewportRuler=r,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const r=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=r.style.left||"",this._previousHTMLStyles.top=r.style.top||"",r.style.left=Qt(-this._previousScrollPosition.left),r.style.top=Qt(-this._previousScrollPosition.top),r.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const r=this._document.documentElement,t=r.style,s=this._document.body.style,l=t.scrollBehavior||"",c=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,r.classList.remove("cdk-global-scrollblock"),Uf&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Uf&&(t.scrollBehavior=l,s.scrollBehavior=c)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Zl{constructor(r,e,t,s){this._scrollDispatcher=r,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(r){this._overlayRef=r}enable(){if(this._scrollSubscription)return;const r=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=r.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=r.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mu{enable(){}disable(){}attach(){}}function mo(o,r){return r.some(e=>o.bottome.bottom||o.righte.right)}function _o(o,r){return r.some(e=>o.tope.bottom||o.lefte.right)}class Wf{constructor(r,e,t,s){this._scrollDispatcher=r,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(r){this._overlayRef=r}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();mo(e,[{width:t,height:s,bottom:s,right:t,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 $f=(()=>{class o{constructor(e,t,s,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new mu,this.close=c=>new Zl(this._scrollDispatcher,this._ngZone,this._viewportRuler,c),this.block=()=>new Tx(this._viewportRuler,this._document),this.reposition=c=>new Wf(this._scrollDispatcher,this._viewportRuler,this._ngZone,c),this._document=l}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Nf),p.LFG(da),p.LFG(p.R0b),p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Br{constructor(r){if(this.scrollStrategy=new mu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,r){const e=Object.keys(r);for(const t of e)void 0!==r[t]&&(this[t]=r[t])}}}class _u{constructor(r,e){this.connectionPair=r,this.scrollableViewProperties=e}}class Qf{constructor(r,e,t,s,l,c,n,i,a){this._portalOutlet=r,this._host=e,this._pane=t,this._config=s,this._ngZone=l,this._keyboardDispatcher=c,this._document=n,this._location=i,this._outsideClickDispatcher=a,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=zt.w.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(r){let e=this._portalOutlet.attach(r);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Yt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const r=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),r}dispose(){var r;const e=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),null===(r=this._host)||void 0===r||r.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(r){r!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=r,this.hasAttached()&&(r.attach(this),this.updatePosition()))}updateSize(r){this._config=Object.assign(Object.assign({},this._config),r),this._updateElementSize()}setDirection(r){this._config=Object.assign(Object.assign({},this._config),{direction:r}),this._updateElementDirection()}addPanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!0)}removePanelClass(r){this._pane&&this._toggleClasses(this._pane,r,!1)}getDirection(){const r=this._config.direction;return r?"string"==typeof r?r:r.value:"ltr"}updateScrollStrategy(r){r!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=r,this.hasAttached()&&(r.attach(this),r.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const r=this._pane.style;r.width=Qt(this._config.width),r.height=Qt(this._config.height),r.minWidth=Qt(this._config.minWidth),r.minHeight=Qt(this._config.minHeight),r.maxWidth=Qt(this._config.maxWidth),r.maxHeight=Qt(this._config.maxHeight)}_togglePointerEvents(r){this._pane.style.pointerEvents=r?"":"none"}_attachBackdrop(){const r="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(r)})}):this._backdropElement.classList.add(r)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const r=this._backdropElement;if(!r)return;let e;const t=()=>{r&&(r.removeEventListener("click",this._backdropClickHandler),r.removeEventListener("transitionend",t),this._disposeBackdrop(r)),this._config.backdropClass&&this._toggleClasses(r,this._config.backdropClass,!1),clearTimeout(e)};r.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{r.addEventListener("transitionend",t)}),r.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(r,e,t){const s=so(e||[]).filter(l=>!!l);s.length&&(t?r.classList.add(...s):r.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const r=this._ngZone.onStable.pipe(pt((0,Wn.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()),r.unsubscribe())})})}_disposeScrollStrategy(){const r=this._scrollStrategy;r&&(r.disable(),r.detach&&r.detach())}_disposeBackdrop(r){r&&(r.remove(),this._backdropElement===r&&(this._backdropElement=null))}}let Xl=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||un()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{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 r=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,l=[];let c;for(let n of this._preferredPositions){let i=this._getOriginPoint(r,s,n),a=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(a,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,a,t)?l.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!c||c.overlayFit.visibleAreai&&(i=d,n=a)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(c.position,c.originPoint);this._applyPosition(c.position,c.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ur(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Yf),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,e)}else this.apply()}withScrollableContainers(r){return this._scrollables=r,this}withPositions(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(r){return this._viewportMargin=r,this}withFlexibleDimensions(r=!0){return this._hasFlexibleDimensions=r,this}withGrowAfterOpen(r=!0){return this._growAfterOpen=r,this}withPush(r=!0){return this._canPush=r,this}withLockedPosition(r=!0){return this._positionLocked=r,this}setOrigin(r){return this._origin=r,this}withDefaultOffsetX(r){return this._offsetX=r,this}withDefaultOffsetY(r){return this._offsetY=r,this}withTransformOriginOn(r){return this._transformOriginSelector=r,this}_getOriginPoint(r,e,t){let s,l;if("center"==t.originX)s=r.left+r.width/2;else{const c=this._isRtl()?r.right:r.left,n=this._isRtl()?r.left:r.right;s="start"==t.originX?c:n}return e.left<0&&(s-=e.left),l="center"==t.originY?r.top+r.height/2:"top"==t.originY?r.top:r.bottom,e.top<0&&(l-=e.top),{x:s,y:l}}_getOverlayPoint(r,e,t){let s,l;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:r.x+s,y:r.y+l}}_getOverlayFit(r,e,t,s){const l=yo(e);let{x:c,y:n}=r,i=this._getOffset(s,"x"),a=this._getOffset(s,"y");i&&(c+=i),a&&(n+=a);let g=0-n,b=n+l.height-t.height,D=this._subtractOverflows(l.width,0-c,c+l.width-t.width),q=this._subtractOverflows(l.height,g,b),se=D*q;return{visibleArea:se,isCompletelyWithinViewport:l.width*l.height===se,fitsInViewportVertically:q===l.height,fitsInViewportHorizontally:D==l.width}}_canFitWithFlexibleDimensions(r,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,l=t.right-e.x,c=ec(this._overlayRef.getConfig().minHeight),n=ec(this._overlayRef.getConfig().minWidth),a=r.fitsInViewportHorizontally||null!=n&&n<=l;return(r.fitsInViewportVertically||null!=c&&c<=s)&&a}return!1}_pushOverlayOnScreen(r,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};const s=yo(e),l=this._viewportRect,c=Math.max(r.x+s.width-l.width,0),n=Math.max(r.y+s.height-l.height,0),i=Math.max(l.top-t.top-r.y,0),a=Math.max(l.left-t.left-r.x,0);let d=0,u=0;return d=s.width<=l.width?a||-c:r.xD&&!this._isInitialRender&&!this._growAfterOpen&&(c=r.y-D/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)g=t.width-r.x+this._viewportMargin,d=r.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=r.x,d=t.right-r.x;else{const b=Math.min(t.right-r.x+t.left,r.x),D=this._lastBoundingBoxSize.width;d=2*b,u=r.x-b,d>D&&!this._isInitialRender&&!this._growAfterOpen&&(u=r.x-D/2)}return{top:c,left:u,bottom:n,right:g,width:d,height:l}}_setBoundingBoxStyles(r,e){const t=this._calculateBoundingBoxRect(r,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,c=this._overlayRef.getConfig().maxWidth;s.height=Qt(t.height),s.top=Qt(t.top),s.bottom=Qt(t.bottom),s.width=Qt(t.width),s.left=Qt(t.left),s.right=Qt(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(s.maxHeight=Qt(l)),c&&(s.maxWidth=Qt(c))}this._lastBoundingBoxSize=t,ur(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ur(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ur(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(r,e){const t={},s=this._hasExactPosition(),l=this._hasFlexibleDimensions,c=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ur(t,this._getExactOverlayY(e,r,d)),ur(t,this._getExactOverlayX(e,r,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),a=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),a&&(n+=`translateY(${a}px)`),t.transform=n.trim(),c.maxHeight&&(s?t.maxHeight=Qt(c.maxHeight):l&&(t.maxHeight="")),c.maxWidth&&(s?t.maxWidth=Qt(c.maxWidth):l&&(t.maxWidth="")),ur(this._pane.style,t)}_getExactOverlayY(r,e,t){let s={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===r.overlayY?s.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":s.top=Qt(l.y),s}_getExactOverlayX(r,e,t){let c,s={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,r);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),c=this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left","right"===c?s.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":s.left=Qt(l.x),s}_getScrollVisibility(){const r=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_o(r,t),isOriginOutsideView:mo(r,t),isOverlayClipped:_o(e,t),isOverlayOutsideView:mo(e,t)}}_subtractOverflows(r,...e){return e.reduce((t,s)=>t-Math.max(s,0),r)}_getNarrowedViewportRect(){const r=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+r-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:r-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(r,e){return"x"===e?null==r.offsetX?this._offsetX:r.offsetX:null==r.offsetY?this._offsetY:r.offsetY}_validatePositions(){}_addPanelClasses(r){this._pane&&so(r).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(r=>{this._pane.classList.remove(r)}),this._appliedPanelClasses=[])}_getOriginRect(){const r=this._origin;if(r instanceof p.SBq)return r.nativeElement.getBoundingClientRect();if(r instanceof Element)return r.getBoundingClientRect();const e=r.width||0,t=r.height||0;return{top:r.y,bottom:r.y+t,left:r.x,right:r.x+e,height:t,width:e}}}function ur(o,r){for(let e in r)r.hasOwnProperty(e)&&(o[e]=r[e]);return o}function ec(o){if("number"!=typeof o&&null!=o){const[r,e]=o.split(gC);return e&&"px"!==e?null:parseFloat(r)}return o||null}function yo(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const wo="cdk-global-overlay-wrapper";class mC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(r){const e=r.getConfig();this._overlayRef=r,this._width&&!e.width&&r.updateSize({width:this._width}),this._height&&!e.height&&r.updateSize({height:this._height}),r.hostElement.classList.add(wo),this._isDisposed=!1}top(r=""){return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}left(r=""){return this._rightOffset="",this._leftOffset=r,this._justifyContent="flex-start",this}bottom(r=""){return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}right(r=""){return this._leftOffset="",this._rightOffset=r,this._justifyContent="flex-end",this}width(r=""){return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}height(r=""){return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}centerHorizontally(r=""){return this.left(r),this._justifyContent="center",this}centerVertically(r=""){return this.top(r),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:l,maxWidth:c,maxHeight:n}=t,i=!("100%"!==s&&"100vw"!==s||c&&"100%"!==c&&"100vw"!==c),a=!("100%"!==l&&"100vh"!==l||n&&"100%"!==n&&"100vh"!==n);r.position=this._cssPosition,r.marginLeft=i?"0":this._leftOffset,r.marginTop=a?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=this._rightOffset,i?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=a?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const r=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(wo),t.justifyContent=t.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}let Jf=(()=>{class o{constructor(e,t,s,l){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=l}global(){return new mC}flexibleConnectedTo(e){return new Co(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(da),p.LFG(T.K0),p.LFG(Je),p.LFG(Xl))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Cu=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Kf=(()=>{class o extends Cu{constructor(e){super(e),this._keydownListener=t=>{const s=this._attachedOverlays;for(let l=s.length-1;l>-1;l--)if(s[l]._keydownEvents.observers.length>0){s[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zf=(()=>{class o extends Cu{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Pi(s)},this._clickListener=s=>{const l=Pi(s),c="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const a=n[i];if(!(a._outsidePointerEvents.observers.length<1)&&a.hasAttached()){if(a.overlayElement.contains(l)||a.overlayElement.contains(c))break;a._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0),p.LFG(Je))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_C=0,$n=(()=>{class o{constructor(e,t,s,l,c,n,i,a,d,u,g){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=l,this._keyboardDispatcher=c,this._injector=n,this._ngZone=i,this._document=a,this._directionality=d,this._location=u,this._outsideClickDispatcher=g}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),l=this._createPortalOutlet(s),c=new Br(e);return c.direction=c.direction||this._directionality.value,new Qf(l,t,s,c,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+_C++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(p.z2F)),new hC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG($f),p.LFG(Xl),p.LFG(p._Vd),p.LFG(Jf),p.LFG(Kf),p.LFG(p.zs3),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(hn),p.LFG(T.Ye),p.LFG(Zf))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const as={provide:new p.OlP("cdk-connected-overlay-scroll-strategy"),deps:[$n],useFactory:function Xf(o){return()=>o.scrollStrategies.reposition()}};let ss=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[$n,as],imports:[[ti,rs,ua],ua]}),o})();var fa=E(5279);class ai extends He.xQ{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){const e=super._subscribe(r);return e&&!e.closed&&r.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new fa.N;return this._value}next(r){super.next(this._value=r)}}function pr(o,...r){return r.length?r.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var It=E(2868),ma=E(13),_a=E(3489);function Mu(o){return r=>r.lift(new hg(o))}class hg{constructor(r){this.total=r}call(r,e){return e.subscribe(new g0(r,this.total))}}class g0 extends _a.L{constructor(r,e){super(r),this.total=e,this.count=0}_next(r){++this.count>this.total&&this.destination.next(r)}}class _0{constructor(r,e){this.compare=r,this.keySelector=e}call(r,e){return e.subscribe(new Hu(r,this.compare,this.keySelector))}}class Hu extends _a.L{constructor(r,e,t){super(r),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(r,e){return r===e}_next(r){let e;try{const{keySelector:s}=this;e=s?s(r):r}catch(s){return this.destination.error(s)}let t=!1;if(this.hasKey)try{const{compare:s}=this;t=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;t||(this.key=e,this.destination.next(r))}}let uc=(()=>{class o{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Du=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Lt(e);return new yi.y(s=>{const c=this._observeElement(t).subscribe(s);return()=>{c.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,s=this._mutationObserverFactory.create(l=>t.next(l));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(uc))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),pg=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new p.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=cn(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ma.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Du),p.Y36(p.SBq),p.Y36(p.R0b))},o.\u0275dir=p.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),hc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[uc]}),o})();function pc(o,r){return(o.getAttribute(r)||"").match(/\S+/g)||[]}const Ru="cdk-describedby-message",ba="cdk-describedby-host";let ku=0,Iu=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+ku++,this._document=e}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const l=Vu(t,s);"string"!=typeof t?(Ut(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,s){var l;if(!t||!this._isElementNode(e))return;const c=Vu(t,s);if(this._isElementDescribedByMessage(e,c)&&this._removeMessageReference(e,c),"string"==typeof t){const n=this._messageRegistry.get(c);n&&0===n.referenceCount&&this._deleteMessageElement(c)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${ba}="${this._id}"]`);for(let s=0;s0!=s.indexOf(Ru));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function LC(o,r,e){const t=pc(o,r);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(r,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ba,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function jC(o,r,e){const s=pc(o,r).filter(l=>l!=e.trim());s.length?o.setAttribute(r,s.join(" ")):o.removeAttribute(r)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ba)}_isElementDescribedByMessage(e,t){const s=pc(e,"aria-describedby"),l=this._messageRegistry.get(t),c=l&&l.messageElement.id;return!!c&&-1!=s.indexOf(c)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!s||l&&l.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0),p.LFG(Je))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Vu(o,r){return"string"==typeof o?`${r||""}/${o}`:o}function Ut(o){o.id||(o.id=`${Ru}-${ku++}`)}class ko extends class fg{constructor(r){this._items=r,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=zt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,r instanceof p.n_E&&r.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(r){return this._skipPredicateFn=r,this}withWrap(r=!0){return this._wrap=r,this}withVerticalOrientation(r=!0){return this._vertical=r,this}withHorizontalOrientation(r){return this._horizontal=r,this}withAllowedModifierKeys(r){return this._allowedModifierKeys=r,this}withTypeAhead(r=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,It.b)(e=>this._pressedLetters.push(e)),(0,ma.b)(r),(0,bt.h)(()=>this._pressedLetters.length>0),(0,tt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!r[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||pr(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],r.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(r){const e=this._getItemsArray(),t="number"==typeof r?r:e.indexOf(r),s=e[t];this._activeItem=null==s?null:s,this._activeItemIndex=t}_setActiveItemByDelta(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}_setActiveInWrapMode(r){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+r*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}_setActiveItemByIndex(r,e){const t=this._getItemsArray();if(t[r]){for(;this._skipPredicateFn(t[r]);)if(!t[r+=e])return;this.setActiveItem(r)}}_getItemsArray(){return this._items instanceof p.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(r){return this._origin=r,this}setActiveItem(r){super.setActiveItem(r),this.activeItem&&this.activeItem.focus(this._origin)}}let gg=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function GC(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function zC(o){try{return o.frameElement}catch(r){return null}}(function xi(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===fc(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),l=fc(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function mg(o){let r=o.nodeName.toLowerCase(),e="input"===r&&o.type;return"text"===e||"password"===e||"select"===r||"textarea"===r}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==l:"video"===s?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function _g(o){return!function UC(o){return function w0(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function qC(o){let r=o.nodeName.toLowerCase();return"input"===r||"select"===r||"button"===r||"textarea"===r}(o)||function y0(o){return function Io(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||Ai(o))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ai(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let r=o.getAttribute("tabindex");return!(!r||isNaN(parseInt(r,10)))}function fc(o){if(!Ai(o))return null;const r=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(r)?-1:r}class Vo{constructor(r,e,t,s,l=!1){this._element=r,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}destroy(){const r=this._startAnchor,e=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(r)))})}focusFirstTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(r)))})}focusLastTabbableElementWhenReady(r){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(r)))})}_getRegionBoundary(r){const e=this._element.querySelectorAll(`[cdk-focus-region-${r}], [cdkFocusRegion${r}], [cdk-focus-${r}]`);return"start"==r?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(r){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(r),!!t}return e.focus(r),!0}return this.focusFirstTabbableElement(r)}focusFirstTabbableElement(r){const e=this._getRegionBoundary("start");return e&&e.focus(r),!!e}focusLastTabbableElement(r){const e=this._getRegionBoundary("end");return e&&e.focus(r),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;const e=r.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}_toggleAnchorTabIndex(r,e){r?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}_executeOnStable(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe((0,Yt.q)(1)).subscribe(r)}}let Bu=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Vo(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(gg),p.LFG(p.R0b),p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Bo(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function gc(o){const r=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!r||-1!==r.identifier||null!=r.radiusX&&1!==r.radiusX||null!=r.radiusY&&1!==r.radiusY)}const QC=new p.OlP("cdk-input-modality-detector-options"),Ou={ignoreKeys:[18,17,224,91,16]},cs=Ji({passive:!0,capture:!0});let Fu=(()=>{class o{constructor(e,t,s,l){this._platform=e,this._mostRecentTarget=null,this._modality=new ai(null),this._lastTouchMs=0,this._onKeydown=c=>{var n,i;(null===(i=null===(n=this._options)||void 0===n?void 0:n.ignoreKeys)||void 0===i?void 0:i.some(a=>a===c.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Pi(c))},this._onMousedown=c=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Bo(c)?"keyboard":"mouse"),this._mostRecentTarget=Pi(c))},this._onTouchstart=c=>{gc(c)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Pi(c))},this._options=Object.assign(Object.assign({},Ou),l),this.modalityDetected=this._modality.pipe(Mu(1)),this.modalityChanged=this.modalityDetected.pipe(function m0(o,r){return e=>e.lift(new _0(o,r))}()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,cs),s.addEventListener("mousedown",this._onMousedown,cs),s.addEventListener("touchstart",this._onTouchstart,cs)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,cs),document.removeEventListener("mousedown",this._onMousedown,cs),document.removeEventListener("touchstart",this._onTouchstart,cs))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je),p.LFG(p.R0b),p.LFG(T.K0),p.LFG(QC,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const JC=new p.OlP("cdk-focus-monitor-default-options"),_c=Ji({passive:!0,capture:!0});let fr=(()=>{class o{constructor(e,t,s,l,c){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,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 He.xQ,this._rootNodeFocusAndBlurListener=n=>{const i=Pi(n),a="focus"===n.type?this._onFocus:this._onBlur;for(let d=i;d;d=d.parentElement)a.call(this,n,d)},this._document=l,this._detectionMode=(null==c?void 0:c.detectionMode)||0}monitor(e,t=!1){const s=Lt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const l=Gt(s)||this._getDocument(),c=this._elementInfo.get(s);if(c)return t&&(c.checkChildren=!0),c.subject;const n={checkChildren:t,subject:new He.xQ,rootNode:l};return this._elementInfo.set(s,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Lt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const l=Lt(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),l=Pi(e);!s||!s.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,_c),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,_c)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_c),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_c),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,l)=>{(l===e||s.checkChildren&&l.contains(e))&&t.push([l,s])}),t}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.R0b),p.LFG(Je),p.LFG(Fu),p.LFG(T.K0,8),p.LFG(JC,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Cg="cdk-high-contrast-black-on-white",yg="cdk-high-contrast-white-on-black",Lu="cdk-high-contrast-active";let wg=(()=>{class o{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Lu),e.remove(Cg),e.remove(yg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Lu),e.add(Cg)):2===t&&(e.add(Lu),e.add(yg))}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je),p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),bc=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(wg))},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Yi,hc]]}),o})();var Cc=E(9146);function ds(...o){return function ZC(){return(0,Cc.J)(1)}()((0,ke.of)(...o))}function hi(...o){const r=o[o.length-1];return(0,Dt.K)(r)?(o.pop(),e=>ds(o,e,r)):e=>ds(o,e)}class Dn{}const Fr="*";function Wt(o,r){return{type:7,name:o,definitions:r,options:{}}}function St(o,r=null){return{type:4,styles:r,timings:o}}function yc(o,r=null){return{type:2,steps:o,options:r}}function Re(o){return{type:6,styles:o,offset:null}}function dt(o,r,e){return{type:0,name:o,styles:r,options:e}}function Lr(o){return{type:5,steps:o}}function ft(o,r,e=null){return{type:1,expr:o,animation:r,options:e}}function ty(o){Promise.resolve(null).then(o)}class Qn{constructor(r=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=r+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}onStart(r){this._onStartFns.push(r)}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ty(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(r=>r()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(r){this._position=this.totalTime?r*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class vc{constructor(r){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=r;let e=0,t=0,s=0;const l=this.players.length;0==l?ty(()=>this._onFinish()):this.players.forEach(c=>{c.onDone(()=>{++e==l&&this._onFinish()}),c.onDestroy(()=>{++t==l&&this._onDestroy()}),c.onStart(()=>{++s==l&&this._onStart()})}),this.totalTime=this.players.reduce((c,n)=>Math.max(c,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(r=>r()),this._onDoneFns=[])}init(){this.players.forEach(r=>r.init())}onStart(r){this._onStartFns.push(r)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(r=>r()),this._onStartFns=[])}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(r=>r.play())}pause(){this.players.forEach(r=>r.pause())}restart(){this.players.forEach(r=>r.restart())}finish(){this._onFinish(),this.players.forEach(r=>r.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(r=>r.destroy()),this._onDestroyFns.forEach(r=>r()),this._onDestroyFns=[])}reset(){this.players.forEach(r=>r.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(r){const e=r*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const r=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=r?r.getPosition():0}beforeDestroy(){this.players.forEach(r=>{r.beforeDestroy&&r.beforeDestroy()})}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function iy(){return"undefined"!=typeof window&&void 0!==window.document}function Oo(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function jr(o){switch(o.length){case 0:return new Qn;case 1:return o[0];default:return new vc(o)}}function Ag(o,r,e,t,s={},l={}){const c=[],n=[];let i=-1,a=null;if(t.forEach(d=>{const u=d.offset,g=u==i,b=g&&a||{};Object.keys(d).forEach(D=>{let q=D,se=d[D];if("offset"!==D)switch(q=r.normalizePropertyName(q,c),se){case"!":se=s[D];break;case Fr:se=l[D];break;default:se=r.normalizeStyleValue(D,q,se,c)}b[q]=se}),g||n.push(b),a=b,i=u}),c.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${c.join(d)}`)}return n}function Nu(o,r,e,t){switch(r){case"start":o.onStart(()=>t(e&&zu(e,"start",o)));break;case"done":o.onDone(()=>t(e&&zu(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&zu(e,"destroy",o)))}}function zu(o,r,e){const t=e.totalTime,l=Gu(o.element,o.triggerName,o.fromState,o.toState,r||o.phaseName,null==t?o.totalTime:t,!!e.disabled),c=o._data;return null!=c&&(l._data=c),l}function Gu(o,r,e,t,s="",l=0,c){return{element:o,triggerName:r,fromState:e,toState:t,phaseName:s,totalTime:l,disabled:!!c}}function Ki(o,r,e){let t;return o instanceof Map?(t=o.get(r),t||o.set(r,t=e)):(t=o[r],t||(t=o[r]=e)),t}function qu(o){const r=o.indexOf(":");return[o.substring(1,r),o.substr(r+1)]}let Fo=(o,r)=>!1,Uu=(o,r,e)=>[];(Oo()||"undefined"!=typeof Element)&&(Fo=iy()?(o,r)=>{for(;r&&r!==document.documentElement;){if(r===o)return!0;r=r.parentNode||r.host}return!1}:(o,r)=>o.contains(r),Uu=(o,r,e)=>{if(e)return Array.from(o.querySelectorAll(r));const t=o.querySelector(r);return t?[t]:[]});let Ca=null,Wu=!1;function $u(o){Ca||(Ca=function ya(){return"undefined"!=typeof document?document.body:null}()||{},Wu=!!Ca.style&&"WebkitAppearance"in Ca.style);let r=!0;return Ca.style&&!function ny(o){return"ebkit"==o.substring(1,6)}(o)&&(r=o in Ca.style,!r&&Wu&&(r="Webkit"+o.charAt(0).toUpperCase()+o.substr(1)in Ca.style)),r}const Qu=Fo,Yu=Uu;let Lo=(()=>{class o{validateStyleProperty(e){return $u(e)}matchesElement(e,t){return!1}containsElement(e,t){return Qu(e,t)}query(e,t,s){return Yu(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,l,c,n=[],i){return new Qn(s,l)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),Ju=(()=>{class o{}return o.NOOP=new Lo,o})();const jo="ng-enter",No="ng-leave",wa="ng-trigger",va=".ng-trigger",Zu="ng-animating",zo=".ng-animating";function Nr(o){if("number"==typeof o)return o;const r=o.match(/^(-?[\.\d]+)(m?s)/);return!r||r.length<2?0:Go(parseFloat(r[1]),r[2])}function Go(o,r){return"s"===r?1e3*o:o}function zr(o,r,e){return o.hasOwnProperty("duration")?o:function ry(o,r,e){let s,l=0,c="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return r.push(`The provided timing value "${o}" is invalid.`),{duration:0,delay:0,easing:""};s=Go(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(l=Go(parseFloat(i),n[4]));const a=n[5];a&&(c=a)}else s=o;if(!e){let n=!1,i=r.length;s<0&&(r.push("Duration values below 0 are not allowed for this animation step."),n=!0),l<0&&(r.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&r.splice(i,0,`The provided timing value "${o}" is invalid.`)}return{duration:s,delay:l,easing:c}}(o,r,e)}function Aa(o,r={}){return Object.keys(o).forEach(e=>{r[e]=o[e]}),r}function Gr(o,r,e={}){if(r)for(let t in o)e[t]=o[t];else Aa(o,e);return e}function Xu(o,r,e){return e?r+":"+e+";":""}function xc(o){let r="";for(let e=0;e{const s=Sc(t);e&&!e.hasOwnProperty(t)&&(e[t]=o.style[s]),o.style[s]=r[t]}),Oo()&&xc(o))}function us(o,r){o.style&&(Object.keys(r).forEach(e=>{const t=Sc(e);o.style[t]=""}),Oo()&&xc(o))}function hs(o){return Array.isArray(o)?1==o.length?o[0]:yc(o):o}const Tc=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mg(o){let r=[];if("string"==typeof o){let e;for(;e=Tc.exec(o);)r.push(e[1]);Tc.lastIndex=0}return r}function Ec(o,r,e){const t=o.toString(),s=t.replace(Tc,(l,c)=>{let n=r[c];return r.hasOwnProperty(c)||(e.push(`Please provide a value for the animation param ${c}`),n=""),n.toString()});return s==t?o:s}function ji(o){const r=[];let e=o.next();for(;!e.done;)r.push(e.value),e=o.next();return r}const sy=/-+([a-z0-9])/g;function Sc(o){return o.replace(sy,(...r)=>r[1].toUpperCase())}function oy(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Zi(o,r,e){switch(r.type){case 7:return o.visitTrigger(r,e);case 0:return o.visitState(r,e);case 1:return o.visitTransition(r,e);case 2:return o.visitSequence(r,e);case 3:return o.visitGroup(r,e);case 4:return o.visitAnimate(r,e);case 5:return o.visitKeyframes(r,e);case 6:return o.visitStyle(r,e);case 8:return o.visitReference(r,e);case 9:return o.visitAnimateChild(r,e);case 10:return o.visitAnimateRef(r,e);case 11:return o.visitQuery(r,e);case 12:return o.visitStagger(r,e);default:throw new Error(`Unable to resolve animation metadata node #${r.type}`)}}function eh(o,r){return window.getComputedStyle(o)[r]}function dy(o,r){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function uy(o,r,e){if(":"==o[0]){const i=function Ze(o,r){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void r.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${o}" is not supported`),r;const s=t[1],l=t[2],c=t[3];r.push(th(s,c));"<"==l[0]&&!("*"==s&&"*"==c)&&r.push(th(c,s))}(t,e,r)):e.push(o),e}const qo=new Set(["true","1"]),Uo=new Set(["false","0"]);function th(o,r){const e=qo.has(o)||Uo.has(o),t=qo.has(r)||Uo.has(r);return(s,l)=>{let c="*"==o||o==s,n="*"==r||r==l;return!c&&e&&"boolean"==typeof s&&(c=s?qo.has(o):Uo.has(o)),!n&&t&&"boolean"==typeof l&&(n=l?qo.has(r):Uo.has(r)),c&&n}}const Rn=new RegExp("s*:selfs*,?","g");function Hc(o,r,e){return new ih(o).build(r,e)}class ih{constructor(r){this._driver=r}build(r,e){const t=new Dg(e);return this._resetContextStyleTimingState(t),Zi(this,hs(r),t)}_resetContextStyleTimingState(r){r.currentQuerySelector="",r.collectedStyles={},r.collectedStyles[""]={},r.currentTime=0}visitTrigger(r,e){let t=e.queryCount=0,s=e.depCount=0;const l=[],c=[];return"@"==r.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),r.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,a=i.name;a.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,l.push(this.visitState(i,e))}),i.name=a}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,s+=i.depCount,c.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:r.name,states:l,transitions:c,queryCount:t,depCount:s,options:null}}visitState(r,e){const t=this.visitStyle(r.styles,e),s=r.options&&r.options.params||null;if(t.containsDynamicStyles){const l=new Set,c=s||{};if(t.styles.forEach(n=>{if(ah(n)){const i=n;Object.keys(i).forEach(a=>{Mg(i[a]).forEach(d=>{c.hasOwnProperty(d)||l.add(d)})})}}),l.size){const n=ji(l.values());e.errors.push(`state("${r.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:r.name,style:t,options:s?{params:s}:null}}visitTransition(r,e){e.queryCount=0,e.depCount=0;const t=Zi(this,hs(r.animation),e);return{type:1,matchers:dy(r.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ps(r.options)}}visitSequence(r,e){return{type:2,steps:r.steps.map(t=>Zi(this,t,e)),options:ps(r.options)}}visitGroup(r,e){const t=e.currentTime;let s=0;const l=r.steps.map(c=>{e.currentTime=t;const n=Zi(this,c,e);return s=Math.max(s,e.currentTime),n});return e.currentTime=s,{type:3,steps:l,options:ps(r.options)}}visitAnimate(r,e){const t=function Pg(o,r){let e=null;if(o.hasOwnProperty("duration"))e=o;else if("number"==typeof o)return fs(zr(o,r).duration,0,"");const t=o;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=fs(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||zr(t,r),fs(e.duration,e.delay,e.easing)}(r.timings,e.errors);e.currentAnimateTimings=t;let s,l=r.styles?r.styles:Re({});if(5==l.type)s=this.visitKeyframes(l,e);else{let c=r.styles,n=!1;if(!c){n=!0;const a={};t.easing&&(a.easing=t.easing),c=Re(a)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(c,e);i.isEmptyStep=n,s=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(r,e){const t=this._makeStyleAst(r,e);return this._validateStyleAst(t,e),t}_makeStyleAst(r,e){const t=[];Array.isArray(r.styles)?r.styles.forEach(c=>{"string"==typeof c?c==Fr?t.push(c):e.errors.push(`The provided style string value ${c} is not allowed.`):t.push(c)}):t.push(r.styles);let s=!1,l=null;return t.forEach(c=>{if(ah(c)){const n=c,i=n.easing;if(i&&(l=i,delete n.easing),!s)for(let a in n)if(n[a].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:t,easing:l,offset:r.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(r,e){const t=e.currentAnimateTimings;let s=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),r.styles.forEach(c=>{"string"!=typeof c&&Object.keys(c).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],a=i[n];let d=!0;a&&(l!=s&&l>=a.startTime&&s<=a.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${s}ms"`),d=!1),l=a.startTime),d&&(i[n]={startTime:l,endTime:s}),e.options&&function ay(o,r,e){const t=r.params||{},s=Mg(o);s.length&&s.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(c[n],e.options,e.errors)})})}visitKeyframes(r,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const c=[];let n=!1,i=!1,a=0;const d=r.steps.map(De=>{const rt=this._makeStyleAst(De,e);let Qe=null!=rt.offset?rt.offset:function rh(o){if("string"==typeof o)return null;let r=null;if(Array.isArray(o))o.forEach(e=>{if(ah(e)&&e.hasOwnProperty("offset")){const t=e;r=parseFloat(t.offset),delete t.offset}});else if(ah(o)&&o.hasOwnProperty("offset")){const e=o;r=parseFloat(e.offset),delete e.offset}return r}(rt.styles),At=0;return null!=Qe&&(l++,At=rt.offset=Qe),i=i||At<0||At>1,n=n||At0&&l{const Qe=g>0?rt==b?1:g*rt:c[rt],At=Qe*se;e.currentTime=D+q.delay+At,q.duration=At,this._validateStyleAst(De,e),De.offset=Qe,t.styles.push(De)}),t}visitReference(r,e){return{type:8,animation:Zi(this,hs(r.animation),e),options:ps(r.options)}}visitAnimateChild(r,e){return e.depCount++,{type:9,options:ps(r.options)}}visitAnimateRef(r,e){return{type:10,animation:this.visitReference(r.animation,e),options:ps(r.options)}}visitQuery(r,e){const t=e.currentQuerySelector,s=r.options||{};e.queryCount++,e.currentQuery=r;const[l,c]=function mr(o){const r=!!o.split(/\s*,\s*/).find(e=>":self"==e);return r&&(o=o.replace(Rn,"")),o=o.replace(/@\*/g,va).replace(/@\w+/g,e=>va+"-"+e.substr(1)).replace(/:animating/g,zo),[o,r]}(r.selector);e.currentQuerySelector=t.length?t+" "+l:l,Ki(e.collectedStyles,e.currentQuerySelector,{});const n=Zi(this,hs(r.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:s.limit||0,optional:!!s.optional,includeSelf:c,animation:n,originalSelector:r.selector,options:ps(r.options)}}visitStagger(r,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===r.timings?{duration:0,delay:0,easing:"full"}:zr(r.timings,e.errors,!0);return{type:12,animation:Zi(this,hs(r.animation),e),timings:t,options:null}}}class Dg{constructor(r){this.errors=r,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function ah(o){return!Array.isArray(o)&&"object"==typeof o}function ps(o){return o?(o=Aa(o)).params&&(o.params=function nh(o){return o?Aa(o):null}(o.params)):o={},o}function fs(o,r,e){return{duration:o,delay:r,easing:e}}function gs(o,r,e,t,s,l,c=null,n=!1){return{type:1,element:o,keyframes:r,preStyleProps:e,postStyleProps:t,duration:s,delay:l,totalTime:s+l,easing:c,subTimeline:n}}class ms{constructor(){this._map=new Map}get(r){return this._map.get(r)||[]}append(r,e){let t=this._map.get(r);t||this._map.set(r,t=[]),t.push(...e)}has(r){return this._map.has(r)}clear(){this._map.clear()}}const P0=new RegExp(":enter","g"),py=new RegExp(":leave","g");function lh(o,r,e,t,s,l={},c={},n,i,a=[]){return(new fy).buildKeyframes(o,r,e,t,s,l,c,n,i,a)}class fy{buildKeyframes(r,e,t,s,l,c,n,i,a,d=[]){a=a||new ms;const u=new Rg(r,e,a,s,l,d,[]);u.options=i,u.currentTimeline.setStyles([c],null,u.errors,i),Zi(this,t,u);const g=u.timelines.filter(b=>b.containsAnimation());if(Object.keys(n).length){let b;for(let D=g.length-1;D>=0;D--){const q=g[D];if(q.element===e){b=q;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([n],null,u.errors,i)}return g.length?g.map(b=>b.buildKeyframes()):[gs(e,[],[],[],0,0,"",!1)]}visitTrigger(r,e){}visitState(r,e){}visitTransition(r,e){}visitAnimateChild(r,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(r.options),l=e.currentTimeline.currentTime,c=this._visitSubInstructions(t,s,s.options);l!=c&&e.transformIntoNewTimeline(c)}e.previousNode=r}visitAnimateRef(r,e){const t=e.createSubContext(r.options);t.transformIntoNewTimeline(),this.visitReference(r.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=r}_visitSubInstructions(r,e,t){let l=e.currentTimeline.currentTime;const c=null!=t.duration?Nr(t.duration):null,n=null!=t.delay?Nr(t.delay):null;return 0!==c&&r.forEach(i=>{const a=e.appendInstructionToTimeline(i,c,n);l=Math.max(l,a.duration+a.delay)}),l}visitReference(r,e){e.updateOptions(r.options,!0),Zi(this,r.animation,e),e.previousNode=r}visitSequence(r,e){const t=e.subContextCount;let s=e;const l=r.options;if(l&&(l.params||l.delay)&&(s=e.createSubContext(l),s.transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=$o);const c=Nr(l.delay);s.delayNextStep(c)}r.steps.length&&(r.steps.forEach(c=>Zi(this,c,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=r}visitGroup(r,e){const t=[];let s=e.currentTimeline.currentTime;const l=r.options&&r.options.delay?Nr(r.options.delay):0;r.steps.forEach(c=>{const n=e.createSubContext(r.options);l&&n.delayNextStep(l),Zi(this,c,n),s=Math.max(s,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(c=>e.currentTimeline.mergeTimelineCollectedStyles(c)),e.transformIntoNewTimeline(s),e.previousNode=r}_visitTiming(r,e){if(r.dynamic){const t=r.strValue;return zr(e.params?Ec(t,e.params,e.errors):t,e.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}visitAnimate(r,e){const t=e.currentAnimateTimings=this._visitTiming(r.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const l=r.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=r}visitStyle(r,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=s&&s.easing||r.easing;r.isEmptyStep?t.applyEmptyStep(l):t.setStyles(r.styles,l,e.errors,e.options),e.previousNode=r}visitKeyframes(r,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,l=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,r.styles.forEach(i=>{n.forwardTime((i.offset||0)*l),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(s+l),e.previousNode=r}visitQuery(r,e){const t=e.currentTimeline.currentTime,s=r.options||{},l=s.delay?Nr(s.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$o);let c=t;const n=e.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((a,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(r.options,a);l&&u.delayNextStep(l),a===e.element&&(i=u.currentTimeline),Zi(this,r.animation,u),u.currentTimeline.applyStylesToKeyframe(),c=Math.max(c,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(c),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=r}visitStagger(r,e){const t=e.parentContext,s=e.currentTimeline,l=r.timings,c=Math.abs(l.duration),n=c*(e.currentQueryTotal-1);let i=c*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Zi(this,r.animation,e),e.previousNode=r,t.currentStaggerTime=s.currentTime-u+(s.startTime-t.currentTimeline.startTime)}}const $o={};class Rg{constructor(r,e,t,s,l,c,n,i){this._driver=r,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=l,this.errors=c,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$o,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Dc(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(r,e){if(!r)return;const t=r;let s=this.options;null!=t.duration&&(s.duration=Nr(t.duration)),null!=t.delay&&(s.delay=Nr(t.delay));const l=t.params;if(l){let c=s.params;c||(c=this.options.params={}),Object.keys(l).forEach(n=>{(!e||!c.hasOwnProperty(n))&&(c[n]=Ec(l[n],c,this.errors))})}}_copyOptions(){const r={};if(this.options){const e=this.options.params;if(e){const t=r.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return r}createSubContext(r=null,e,t){const s=e||this.element,l=new Rg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(r),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(r){return this.previousNode=$o,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(r,e,t){const s={duration:null!=e?e:r.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+r.delay,easing:""},l=new R0(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,s,r.stretchStartingKeyframe);return this.timelines.push(l),s}incrementTime(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}delayNextStep(r){r>0&&this.currentTimeline.delayNextStep(r)}invokeQuery(r,e,t,s,l,c){let n=[];if(s&&n.push(this.element),r.length>0){r=(r=r.replace(P0,"."+this._enterClassName)).replace(py,"."+this._leaveClassName);let a=this._driver.query(this.element,r,1!=t);0!==t&&(a=t<0?a.slice(a.length+t,a.length):a.slice(0,t)),n.push(...a)}return!l&&0==n.length&&c.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),n}}class Dc{constructor(r,e,t,s){this._driver=r,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(r){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+r),e&&this.snapshotCurrentStyles()):this.startTime+=r}fork(r,e){return this.applyStylesToKeyframe(),new Dc(this._driver,r,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}_updateStyle(r,e){this._localTimelineStyles[r]=e,this._globalTimelineStyles[r]=e,this._styleSummary[r]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(r){r&&(this._previousKeyframe.easing=r),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fr,this._currentKeyframe[e]=Fr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(r,e,t,s){e&&(this._previousKeyframe.easing=e);const l=s&&s.params||{},c=function kg(o,r){const e={};let t;return o.forEach(s=>{"*"===s?(t=t||Object.keys(r),t.forEach(l=>{e[l]=Fr})):Gr(s,!1,e)}),e}(r,this._globalTimelineStyles);Object.keys(c).forEach(n=>{const i=Ec(c[n],l,t);this._pendingStyles[n]=i,this._localTimelineStyles.hasOwnProperty(n)||(this._backFill[n]=this._globalTimelineStyles.hasOwnProperty(n)?this._globalTimelineStyles[n]:Fr),this._updateStyle(n,i)})}applyStylesToKeyframe(){const r=this._pendingStyles,e=Object.keys(r);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=r[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(r=>{const e=this._localTimelineStyles[r];this._pendingStyles[r]=e,this._updateStyle(r,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const r=[];for(let e in this._currentKeyframe)r.push(e);return r}mergeTimelineCollectedStyles(r){Object.keys(r._styleSummary).forEach(e=>{const t=this._styleSummary[e],s=r._styleSummary[e];(!t||s.time>t.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const r=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((n,i)=>{const a=Gr(n,!0);Object.keys(a).forEach(d=>{const u=a[d];"!"==u?r.add(d):u==Fr&&e.add(d)}),t||(a.offset=i/this.duration),s.push(a)});const l=r.size?ji(r.values()):[],c=e.size?ji(e.values()):[];if(t){const n=s[0],i=Aa(n);n.offset=0,i.offset=1,s=[n,i]}return gs(this.element,s,l,c,this.duration,this.startTime,this.easing,!1)}}class R0 extends Dc{constructor(r,e,t,s,l,c,n=!1){super(r,e,c.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=l,this._stretchStartingKeyframe=n,this.timings={duration:c.duration,delay:c.delay,easing:c.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let r=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],c=t+e,n=e/c,i=Gr(r[0],!1);i.offset=0,l.push(i);const a=Gr(r[0],!1);a.offset=ch(n),l.push(a);const d=r.length-1;for(let u=1;u<=d;u++){let g=Gr(r[u],!1);g.offset=ch((e+g.offset*t)/c),l.push(g)}t=c,e=0,s="",r=l}return gs(this.element,r,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function ch(o,r=3){const e=Math.pow(10,r-1);return Math.round(o*e)/e}class Qo{}class I0 extends Qo{normalizePropertyName(r,e){return Sc(r)}normalizeStyleValue(r,e,t,s){let l="";const c=t.toString().trim();if(V0[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&s.push(`Please provide a CSS unit value for ${r}:${t}`)}return c+l}}const V0=(()=>function B0(o){const r={};return o.forEach(e=>r[e]=!0),r}("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".split(",")))();function gy(o,r,e,t,s,l,c,n,i,a,d,u,g){return{type:0,element:o,triggerName:r,isRemovalTransition:s,fromState:e,fromStyles:l,toState:t,toStyles:c,timelines:n,queriedElements:i,preStyleProps:a,postStyleProps:d,totalTime:u,errors:g}}const Ig={};class my{constructor(r,e,t){this._triggerName=r,this.ast=e,this._stateStyles=t}match(r,e,t,s){return function O0(o,r,e,t,s){return o.some(l=>l(r,e,t,s))}(this.ast.matchers,r,e,t,s)}buildStyles(r,e,t){const s=this._stateStyles["*"],l=this._stateStyles[r],c=s?s.buildStyles(e,t):{};return l?l.buildStyles(e,t):c}build(r,e,t,s,l,c,n,i,a,d){const u=[],g=this.ast.options&&this.ast.options.params||Ig,D=this.buildStyles(t,n&&n.params||Ig,u),q=i&&i.params||Ig,se=this.buildStyles(s,q,u),De=new Set,rt=new Map,Qe=new Map,At="void"===s,Nn={params:Object.assign(Object.assign({},g),q)},sr=d?[]:lh(r,e,this.ast.animation,l,c,D,se,Nn,a,u);let nn=0;if(sr.forEach(Qa=>{nn=Math.max(Qa.duration+Qa.delay,nn)}),u.length)return gy(e,this._triggerName,t,s,At,D,se,[],[],rt,Qe,nn,u);sr.forEach(Qa=>{const Ya=Qa.element,uM=Ki(rt,Ya,{});Qa.preStyleProps.forEach(Bl=>uM[Bl]=!0);const Rf=Ki(Qe,Ya,{});Qa.postStyleProps.forEach(Bl=>Rf[Bl]=!0),Ya!==e&&De.add(Ya)});const $a=ji(De.values());return gy(e,this._triggerName,t,s,At,D,se,sr,$a,rt,Qe,nn)}}class F0{constructor(r,e,t){this.styles=r,this.defaultParams=e,this.normalizer=t}buildStyles(r,e){const t={},s=Aa(this.defaultParams);return Object.keys(r).forEach(l=>{const c=r[l];null!=c&&(s[l]=c)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const c=l;Object.keys(c).forEach(n=>{let i=c[n];i.length>1&&(i=Ec(i,s,e));const a=this.normalizer.normalizePropertyName(n,e);i=this.normalizer.normalizeStyleValue(n,a,i,e),t[a]=i})}}),t}}class qr{constructor(r,e,t){this.name=r,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new F0(s.style,s.options&&s.options.params||{},t)}),Vg(this.states,"true","1"),Vg(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new my(r,s,this.states))}),this.fallbackTransition=function dh(o,r,e){return new my(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(c,n)=>!0],options:null,queryCount:0,depCount:0},r)}(r,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(r,e,t,s){return this.transitionFactories.find(c=>c.match(r,e,t,s))||null}matchStyles(r,e,t){return this.fallbackTransition.buildStyles(r,e,t)}}function Vg(o,r,e){o.hasOwnProperty(r)?o.hasOwnProperty(e)||(o[e]=o[r]):o.hasOwnProperty(e)&&(o[r]=o[e])}const Bg=new ms;class uh{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(r,e){const t=[],s=Hc(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[r]=s}_buildPlayer(r,e,t){const s=r.element,l=Ag(0,this._normalizer,0,r.keyframes,e,t);return this._driver.animate(s,l,r.duration,r.delay,r.easing,[],!0)}create(r,e,t={}){const s=[],l=this._animations[r];let c;const n=new Map;if(l?(c=lh(this._driver,e,l,jo,No,{},{},t,Bg,s),c.forEach(d=>{const u=Ki(n,d.element,{});d.postStyleProps.forEach(g=>u[g]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),c=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);n.forEach((d,u)=>{Object.keys(d).forEach(g=>{d[g]=this._driver.computeStyle(u,g,Fr)})});const a=jr(c.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[r]=a,a.onDestroy(()=>this.destroy(r)),this.players.push(a),a}destroy(r){const e=this._getPlayer(r);e.destroy(),delete this._playersById[r];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(r){const e=this._playersById[r];if(!e)throw new Error(`Unable to find the timeline player referenced by ${r}`);return e}listen(r,e,t,s){const l=Gu(e,"","","");return Nu(this._getPlayer(r),t,l,s),()=>{}}command(r,e,t,s){if("register"==t)return void this.register(r,s[0]);if("create"==t)return void this.create(r,e,s[0]||{});const l=this._getPlayer(r);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(r)}}}const hh="ng-animate-queued",fh="ng-animate-disabled",gh=[],Fg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class mh{constructor(r,e=""){this.namespaceId=e;const t=r&&r.hasOwnProperty("value");if(this.value=function by(o){return null!=o?o:null}(t?r.value:r),t){const l=Aa(r);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(r){const e=r.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const _r="void",Wr=new mh(_r);class _h{constructor(r,e,t){this.id=r,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+r,Ri(e,this._hostClassName)}listen(r,e,t,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function jg(o){return"start"==o||"done"==o}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=Ki(this._elementListeners,r,[]),c={name:e,phase:t,callback:s};l.push(c);const n=Ki(this._engine.statesByElement,r,{});return n.hasOwnProperty(e)||(Ri(r,wa),Ri(r,wa+"-"+e),n[e]=Wr),()=>{this._engine.afterFlush(()=>{const i=l.indexOf(c);i>=0&&l.splice(i,1),this._triggers[e]||delete n[e]})}}register(r,e){return!this._triggers[r]&&(this._triggers[r]=e,!0)}_getTrigger(r){const e=this._triggers[r];if(!e)throw new Error(`The provided animation trigger "${r}" has not been registered!`);return e}trigger(r,e,t,s=!0){const l=this._getTrigger(e),c=new xa(this.id,e,r);let n=this._engine.statesByElement.get(r);n||(Ri(r,wa),Ri(r,wa+"-"+e),this._engine.statesByElement.set(r,n={}));let i=n[e];const a=new mh(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&a.absorbOptions(i.options),n[e]=a,i||(i=Wr),a.value!==_r&&i.value===a.value){if(!function zg(o,r){const e=Object.keys(o),t=Object.keys(r);if(e.length!=t.length)return!1;for(let s=0;s{us(r,se),Pn(r,De)})}return}const g=Ki(this._engine.playersByElement,r,[]);g.forEach(q=>{q.namespaceId==this.id&&q.triggerName==e&&q.queued&&q.destroy()});let b=l.matchTransition(i.value,a.value,r,a.params),D=!1;if(!b){if(!s)return;b=l.fallbackTransition,D=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:e,transition:b,fromState:i,toState:a,player:c,isFallbackTransition:D}),D||(Ri(r,hh),c.onStart(()=>{Cs(r,hh)})),c.onDone(()=>{let q=this.players.indexOf(c);q>=0&&this.players.splice(q,1);const se=this._engine.playersByElement.get(r);if(se){let De=se.indexOf(c);De>=0&&se.splice(De,1)}}),this.players.push(c),g.push(c),c}deregister(r){delete this._triggers[r],this._engine.statesByElement.forEach((e,t)=>{delete e[r]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=r))})}clearElementCache(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);const e=this._engine.playersByElement.get(r);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(r))}_signalRemovalForInnerTriggers(r,e){const t=this._engine.driver.query(r,va,!0);t.forEach(s=>{if(s[fn])return;const l=this._engine.fetchNamespacesByElement(s);l.size?l.forEach(c=>c.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(r,e,t,s){const l=this._engine.statesByElement.get(r),c=new Map;if(l){const n=[];if(Object.keys(l).forEach(i=>{if(c.set(i,l[i].value),this._triggers[i]){const a=this.trigger(r,i,_r,s);a&&n.push(a)}}),n.length)return this._engine.markElementAsRemoved(this.id,r,!0,e,c),t&&jr(n).onDone(()=>this._engine.processLeaveNode(r)),!0}return!1}prepareLeaveAnimationListeners(r){const e=this._elementListeners.get(r),t=this._engine.statesByElement.get(r);if(e&&t){const s=new Set;e.forEach(l=>{const c=l.name;if(s.has(c))return;s.add(c);const i=this._triggers[c].fallbackTransition,a=t[c]||Wr,d=new mh(_r),u=new xa(this.id,c,r);this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:c,transition:i,fromState:a,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(r,e){const t=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,e),this.triggerLeaveAnimation(r,e,!0))return;let s=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(r):[];if(l&&l.length)s=!0;else{let c=r;for(;c=c.parentNode;)if(t.statesByElement.get(c)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(r),s)t.markElementAsRemoved(this.id,r,!1,e);else{const l=r[fn];(!l||l===Fg)&&(t.afterFlush(()=>this.clearElementCache(r)),t.destroyInnerAnimations(r),t._onRemovalComplete(r,e))}}insertNode(r,e){Ri(r,this._hostClassName)}drainQueuedTransitions(r){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const l=t.element,c=this._elementListeners.get(l);c&&c.forEach(n=>{if(n.name==t.triggerName){const i=Gu(l,t.triggerName,t.fromState.value,t.toState.value);i._data=r,Nu(t.player,n.phase,i,n.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const l=t.transition.ast.depCount,c=s.transition.ast.depCount;return 0==l||0==c?l-c:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(r){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,r)}elementContainsData(r){let e=!1;return this._elementListeners.has(r)&&(e=!0),e=!!this._queue.find(t=>t.element===r)||e,e}}class _s{constructor(r,e,t){this.bodyNode=r,this.driver=e,this._normalizer=t,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=(s,l)=>{}}_onRemovalComplete(r,e){this.onRemovalComplete(r,e)}get queuedPlayers(){const r=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&r.push(t)})}),r}createNamespace(r,e){const t=new _h(r,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[r]=t}_balanceNamespaceList(r,e){const t=this._namespaceList.length-1;if(t>=0){let s=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,r),s=!0;break}s||this._namespaceList.splice(0,0,r)}else this._namespaceList.push(r);return this.namespacesByHostElement.set(e,r),r}register(r,e){let t=this._namespaceLookup[r];return t||(t=this.createNamespace(r,e)),t}registerTrigger(r,e,t){let s=this._namespaceLookup[r];s&&s.register(e,t)&&this.totalAnimations++}destroy(r,e){if(!r)return;const t=this._fetchNamespace(r);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[r];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(r){return this._namespaceLookup[r]}fetchNamespacesByElement(r){const e=new Set,t=this.statesByElement.get(r);if(t){const s=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(c,1)}if(r){const c=this._fetchNamespace(r);c&&c.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(r){this.collectedEnterElements.push(r)}markElementAsDisabled(r,e){e?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Ri(r,fh)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),Cs(r,fh))}removeNode(r,e,t,s){if(Yo(e)){const l=r?this._fetchNamespace(r):null;if(l?l.removeNode(e,s):this.markElementAsRemoved(r,e,!1,s),t){const c=this.namespacesByHostElement.get(e);c&&c.id!==r&&c.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(r,e,t,s,l){this.collectedLeaveElements.push(e),e[fn]={namespaceId:r,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(r,e,t,s,l){return Yo(e)?this._fetchNamespace(r).listen(e,t,s,l):()=>{}}_buildInstruction(r,e,t,s,l){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,t,s,r.fromState.options,r.toState.options,e,l)}destroyInnerAnimations(r){let e=this.driver.query(r,va,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(r,zo,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(r){const e=this.playersByElement.get(r);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(r){const e=this.playersByQueriedElement.get(r);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(r=>{if(this.players.length)return jr(this.players).onDone(()=>r());r()})}processLeaveNode(r){var e;const t=r[fn];if(t&&t.setForRemoval){if(r[fn]=Fg,t.namespaceId){this.destroyInnerAnimations(r);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(r)}this._onRemovalComplete(r,t.setForRemoval)}(null===(e=r.classList)||void 0===e?void 0:e.contains(fh))&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(r=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?jr(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(r){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${r.join("\n")}`)}_flushAnimations(r,e){const t=new ms,s=[],l=new Map,c=[],n=new Map,i=new Map,a=new Map,d=new Set;this.disabledNodes.forEach(Fe=>{d.add(Fe);const Ue=this.driver.query(Fe,".ng-animate-queued",!0);for(let $e=0;$e{const $e=jo+q++;D.set(Ue,$e),Fe.forEach(Mt=>Ri(Mt,$e))});const se=[],De=new Set,rt=new Set;for(let Fe=0;FeDe.add(Mt)):rt.add(Ue))}const Qe=new Map,At=bh(g,Array.from(De));At.forEach((Fe,Ue)=>{const $e=No+q++;Qe.set(Ue,$e),Fe.forEach(Mt=>Ri(Mt,$e))}),r.push(()=>{b.forEach((Fe,Ue)=>{const $e=D.get(Ue);Fe.forEach(Mt=>Cs(Mt,$e))}),At.forEach((Fe,Ue)=>{const $e=Qe.get(Ue);Fe.forEach(Mt=>Cs(Mt,$e))}),se.forEach(Fe=>{this.processLeaveNode(Fe)})});const Nn=[],sr=[];for(let Fe=this._namespaceList.length-1;Fe>=0;Fe--)this._namespaceList[Fe].drainQueuedTransitions(e).forEach($e=>{const Mt=$e.player,Hi=$e.element;if(Nn.push(Mt),this.collectedEnterElements.length){const rn=Hi[fn];if(rn&&rn.setForMove){if(rn.previousTriggersValues&&rn.previousTriggersValues.has($e.triggerName)){const Ol=rn.previousTriggersValues.get($e.triggerName),Xs=this.statesByElement.get($e.element);Xs&&Xs[$e.triggerName]&&(Xs[$e.triggerName].value=Ol)}return void Mt.destroy()}}const na=!u||!this.driver.containsElement(u,Hi),zn=Qe.get(Hi),Zs=D.get(Hi),Kt=this._buildInstruction($e,t,Zs,zn,na);if(Kt.errors&&Kt.errors.length)return void sr.push(Kt);if(na)return Mt.onStart(()=>us(Hi,Kt.fromStyles)),Mt.onDestroy(()=>Pn(Hi,Kt.toStyles)),void s.push(Mt);if($e.isFallbackTransition)return Mt.onStart(()=>us(Hi,Kt.fromStyles)),Mt.onDestroy(()=>Pn(Hi,Kt.toStyles)),void s.push(Mt);const fM=[];Kt.timelines.forEach(rn=>{rn.stretchStartingKeyframe=!0,this.disabledNodes.has(rn.element)||fM.push(rn)}),Kt.timelines=fM,t.append(Hi,Kt.timelines),c.push({instruction:Kt,player:Mt,element:Hi}),Kt.queriedElements.forEach(rn=>Ki(n,rn,[]).push(Mt)),Kt.preStyleProps.forEach((rn,Ol)=>{const Xs=Object.keys(rn);if(Xs.length){let Fl=i.get(Ol);Fl||i.set(Ol,Fl=new Set),Xs.forEach(bx=>Fl.add(bx))}}),Kt.postStyleProps.forEach((rn,Ol)=>{const Xs=Object.keys(rn);let Fl=a.get(Ol);Fl||a.set(Ol,Fl=new Set),Xs.forEach(bx=>Fl.add(bx))})});if(sr.length){const Fe=[];sr.forEach(Ue=>{Fe.push(`@${Ue.triggerName} has failed due to:\n`),Ue.errors.forEach($e=>Fe.push(`- ${$e}\n`))}),Nn.forEach(Ue=>Ue.destroy()),this.reportError(Fe)}const nn=new Map,$a=new Map;c.forEach(Fe=>{const Ue=Fe.element;t.has(Ue)&&($a.set(Ue,Ue),this._beforeAnimationBuild(Fe.player.namespaceId,Fe.instruction,nn))}),s.forEach(Fe=>{const Ue=Fe.element;this._getPreviousPlayers(Ue,!1,Fe.namespaceId,Fe.triggerName,null).forEach(Mt=>{Ki(nn,Ue,[]).push(Mt),Mt.destroy()})});const Qa=se.filter(Fe=>Gg(Fe,i,a)),Ya=new Map;Rc(Ya,this.driver,rt,a,Fr).forEach(Fe=>{Gg(Fe,i,a)&&Qa.push(Fe)});const Rf=new Map;b.forEach((Fe,Ue)=>{Rc(Rf,this.driver,new Set(Fe),i,"!")}),Qa.forEach(Fe=>{const Ue=Ya.get(Fe),$e=Rf.get(Fe);Ya.set(Fe,Object.assign(Object.assign({},Ue),$e))});const Bl=[],hM=[],pM={};c.forEach(Fe=>{const{element:Ue,player:$e,instruction:Mt}=Fe;if(t.has(Ue)){if(d.has(Ue))return $e.onDestroy(()=>Pn(Ue,Mt.toStyles)),$e.disabled=!0,$e.overrideTotalTime(Mt.totalTime),void s.push($e);let Hi=pM;if($a.size>1){let zn=Ue;const Zs=[];for(;zn=zn.parentNode;){const Kt=$a.get(zn);if(Kt){Hi=Kt;break}Zs.push(zn)}Zs.forEach(Kt=>$a.set(Kt,Hi))}const na=this._buildAnimation($e.namespaceId,Mt,nn,l,Rf,Ya);if($e.setRealPlayer(na),Hi===pM)Bl.push($e);else{const zn=this.playersByElement.get(Hi);zn&&zn.length&&($e.parentPlayer=jr(zn)),s.push($e)}}else us(Ue,Mt.fromStyles),$e.onDestroy(()=>Pn(Ue,Mt.toStyles)),hM.push($e),d.has(Ue)&&s.push($e)}),hM.forEach(Fe=>{const Ue=l.get(Fe.element);if(Ue&&Ue.length){const $e=jr(Ue);Fe.setRealPlayer($e)}}),s.forEach(Fe=>{Fe.parentPlayer?Fe.syncPlayerEvents(Fe.parentPlayer):Fe.destroy()});for(let Fe=0;Fe!na.destroyed);Hi.length?Ng(this,Ue,Hi):this.processLeaveNode(Ue)}return se.length=0,Bl.forEach(Fe=>{this.players.push(Fe),Fe.onDone(()=>{Fe.destroy();const Ue=this.players.indexOf(Fe);this.players.splice(Ue,1)}),Fe.play()}),Bl}elementContainsData(r,e){let t=!1;const s=e[fn];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(r).elementContainsData(e)||t}afterFlush(r){this._flushFns.push(r)}afterFlushAnimationsDone(r){this._whenQuietFns.push(r)}_getPreviousPlayers(r,e,t,s,l){let c=[];if(e){const n=this.playersByQueriedElement.get(r);n&&(c=n)}else{const n=this.playersByElement.get(r);if(n){const i=!l||l==_r;n.forEach(a=>{a.queued||!i&&a.triggerName!=s||c.push(a)})}}return(t||s)&&(c=c.filter(n=>!(t&&t!=n.namespaceId||s&&s!=n.triggerName))),c}_beforeAnimationBuild(r,e,t){const l=e.element,c=e.isRemovalTransition?void 0:r,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const a=i.element,d=a!==l,u=Ki(t,a,[]);this._getPreviousPlayers(a,d,c,n,e.toState).forEach(b=>{const D=b.getRealPlayer();D.beforeDestroy&&D.beforeDestroy(),b.destroy(),u.push(b)})}us(l,e.fromStyles)}_buildAnimation(r,e,t,s,l,c){const n=e.triggerName,i=e.element,a=[],d=new Set,u=new Set,g=e.timelines.map(D=>{const q=D.element;d.add(q);const se=q[fn];if(se&&se.removedBeforeQueried)return new Qn(D.duration,D.delay);const De=q!==i,rt=function j0(o){const r=[];return Ch(o,r),r}((t.get(q)||gh).map(nn=>nn.getRealPlayer())).filter(nn=>!!nn.element&&nn.element===q),Qe=l.get(q),At=c.get(q),Nn=Ag(0,this._normalizer,0,D.keyframes,Qe,At),sr=this._buildPlayer(D,Nn,rt);if(D.subTimeline&&s&&u.add(q),De){const nn=new xa(r,n,q);nn.setRealPlayer(sr),a.push(nn)}return sr});a.forEach(D=>{Ki(this.playersByQueriedElement,D.element,[]).push(D),D.onDone(()=>function bs(o,r,e){let t;if(o instanceof Map){if(t=o.get(r),t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(r)}}else if(t=o[r],t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&delete o[r]}return t}(this.playersByQueriedElement,D.element,D))}),d.forEach(D=>Ri(D,Zu));const b=jr(g);return b.onDestroy(()=>{d.forEach(D=>Cs(D,Zu)),Pn(i,e.toStyles)}),u.forEach(D=>{Ki(s,D,[]).push(b)}),b}_buildPlayer(r,e,t){return e.length>0?this.driver.animate(r.element,e,r.duration,r.delay,r.easing,t):new Qn(r.duration,r.delay)}}class xa{constructor(r,e,t){this.namespaceId=r,this.triggerName=e,this.element=t,this._player=new Qn,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(r){this._containsRealPlayer||(this._player=r,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Nu(r,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(r){this.totalTime=r}syncPlayerEvents(r){const e=this._player;e.triggerCallback&&r.onStart(()=>e.triggerCallback("start")),r.onDone(()=>this.finish()),r.onDestroy(()=>this.destroy())}_queueEvent(r,e){Ki(this._queuedCallbacks,r,[]).push(e)}onDone(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}onStart(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}onDestroy(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}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(r){this.queued||this._player.setPosition(r)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(r){const e=this._player;e.triggerCallback&&e.triggerCallback(r)}}function Yo(o){return o&&1===o.nodeType}function Pc(o,r){const e=o.style.display;return o.style.display=null!=r?r:"none",e}function Rc(o,r,e,t,s){const l=[];e.forEach(i=>l.push(Pc(i)));const c=[];t.forEach((i,a)=>{const d={};i.forEach(u=>{const g=d[u]=r.computeStyle(a,u,s);(!g||0==g.length)&&(a[fn]=Lg,c.push(a))}),o.set(a,d)});let n=0;return e.forEach(i=>Pc(i,l[n++])),c}function bh(o,r){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==r.length)return e;const s=new Set(r),l=new Map;function c(n){if(!n)return 1;let i=l.get(n);if(i)return i;const a=n.parentNode;return i=e.has(a)?a:s.has(a)?1:c(a),l.set(n,i),i}return r.forEach(n=>{const i=c(n);1!==i&&e.get(i).push(n)}),e}function Ri(o,r){var e;null===(e=o.classList)||void 0===e||e.add(r)}function Cs(o,r){var e;null===(e=o.classList)||void 0===e||e.remove(r)}function Ng(o,r,e){jr(e).onDone(()=>o.processLeaveNode(r))}function Ch(o,r){for(let e=0;es.add(l)):r.set(o,t),e.delete(o),!0}class Jo{constructor(r,e,t){this.bodyNode=r,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,l)=>{},this._transitionEngine=new _s(r,e,t),this._timelineEngine=new uh(r,e,t),this._transitionEngine.onRemovalComplete=(s,l)=>this.onRemovalComplete(s,l)}registerTrigger(r,e,t,s,l){const c=r+"-"+s;let n=this._triggerCache[c];if(!n){const i=[],a=Hc(this._driver,l,i);if(i.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${i.join("\n - ")}`);n=function L0(o,r,e){return new qr(o,r,e)}(s,a,this._normalizer),this._triggerCache[c]=n}this._transitionEngine.registerTrigger(e,s,n)}register(r,e){this._transitionEngine.register(r,e)}destroy(r,e){this._transitionEngine.destroy(r,e)}onInsert(r,e,t,s){this._transitionEngine.insertNode(r,e,t,s)}onRemove(r,e,t,s){this._transitionEngine.removeNode(r,e,s||!1,t)}disableAnimations(r,e){this._transitionEngine.markElementAsDisabled(r,e)}process(r,e,t,s){if("@"==t.charAt(0)){const[l,c]=qu(t);this._timelineEngine.command(l,e,c,s)}else this._transitionEngine.trigger(r,e,t,s)}listen(r,e,t,s,l){if("@"==t.charAt(0)){const[c,n]=qu(t);return this._timelineEngine.listen(c,e,n,l)}return this._transitionEngine.listen(r,e,t,s,l)}flush(r=-1){this._transitionEngine.flush(r)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let yy=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let l=o.initialStylesByElement.get(e);l||o.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Pn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pn(this._element,this._initialStyles),this._endStyles&&(Pn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(us(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(us(this._element,this._endStyles),this._endStyles=null),Pn(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function ki(o){let r=null;const e=Object.keys(o);for(let t=0;tr()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const r=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,r,this.options),this._finalKeyframe=r.length?r[r.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(r,e,t){return r.animate(e,t)}onStart(r){this._onStartFns.push(r)}onDone(r){this._onDoneFns.push(r)}onDestroy(r){this._onDestroyFns.push(r)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(r=>r()),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}_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(r=>r()),this._onDestroyFns=[])}setPosition(r){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=r*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const r={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(r[t]=this._finished?e[t]:eh(this.element,t))})}this.currentSnapshot=r}triggerCallback(r){const e="start"==r?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class N0{validateStyleProperty(r){return $u(r)}matchesElement(r,e){return!1}containsElement(r,e){return Qu(r,e)}query(r,e,t){return Yu(r,e,t)}computeStyle(r,e,t){return window.getComputedStyle(r)[e]}animate(r,e,t,s,l,c=[]){const i={duration:t,delay:s,fill:0==s?"both":"forwards"};l&&(i.easing=l);const a={},d=c.filter(g=>g instanceof qg);(function ly(o,r){return 0===o||0===r})(t,s)&&d.forEach(g=>{let b=g.currentSnapshot;Object.keys(b).forEach(D=>a[D]=b[D])}),e=function cy(o,r,e){const t=Object.keys(e);if(t.length&&r.length){let l=r[0],c=[];if(t.forEach(n=>{l.hasOwnProperty(n)||c.push(n),l[n]=e[n]}),c.length)for(var s=1;sGr(g,!1)),a);const u=function Cy(o,r){let e=null,t=null;return Array.isArray(r)&&r.length?(e=ki(r[0]),r.length>1&&(t=ki(r[r.length-1]))):r&&(e=ki(r)),e||t?new yy(o,e,t):null}(r,e);return new qg(r,e,i,u)}}let z0=(()=>{class o extends Dn{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:p.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?yc(e):e;return Wg(this._renderer,null,t,"register",[s]),new Ug(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.FYo),p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class Ug extends class H0{}{constructor(r,e){super(),this._id=r,this._renderer=e}create(r,e){return new G0(this._id,r,e||{},this._renderer)}}class G0{constructor(r,e,t,s){this.id=r,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(r,e){return this._renderer.listen(this.element,`@@${this.id}:${r}`,e)}_command(r,...e){return Wg(this._renderer,this.element,this.id,r,e)}onDone(r){this._listen("done",r)}onStart(r){this._listen("start",r)}onDestroy(r){this._listen("destroy",r)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(r){this._command("setPosition",r)}getPosition(){var r,e;return null!==(e=null===(r=this._renderer.engine.players[+this.id])||void 0===r?void 0:r.getPosition())&&void 0!==e?e:0}}function Wg(o,r,e,t,s){return o.setProperty(r,`@@${e}:${t}`,s)}const yh="@.disabled";let vy=(()=>{class o{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,c)=>{const n=null==c?void 0:c.parentNode(l);n&&c.removeChild(n,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(l);return d||(d=new $g("",l,this.engine),this._rendererCache.set(l,d)),d}const c=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(c,n,e,d.name,d)};return t.data.animation.forEach(i),new Ay(this,n,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[c,n]=l;c(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}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()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.FYo),p.LFG(Jo),p.LFG(p.R0b))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class $g{constructor(r,e,t){this.namespaceId=r,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(r,e){return this.delegate.createElement(r,e)}createComment(r){return this.delegate.createComment(r)}createText(r){return this.delegate.createText(r)}appendChild(r,e){this.delegate.appendChild(r,e),this.engine.onInsert(this.namespaceId,e,r,!1)}insertBefore(r,e,t,s=!0){this.delegate.insertBefore(r,e,t),this.engine.onInsert(this.namespaceId,e,r,s)}removeChild(r,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(r,e){return this.delegate.selectRootElement(r,e)}parentNode(r){return this.delegate.parentNode(r)}nextSibling(r){return this.delegate.nextSibling(r)}setAttribute(r,e,t,s){this.delegate.setAttribute(r,e,t,s)}removeAttribute(r,e,t){this.delegate.removeAttribute(r,e,t)}addClass(r,e){this.delegate.addClass(r,e)}removeClass(r,e){this.delegate.removeClass(r,e)}setStyle(r,e,t,s){this.delegate.setStyle(r,e,t,s)}removeStyle(r,e,t){this.delegate.removeStyle(r,e,t)}setProperty(r,e,t){"@"==e.charAt(0)&&e==yh?this.disableAnimations(r,!!t):this.delegate.setProperty(r,e,t)}setValue(r,e){this.delegate.setValue(r,e)}listen(r,e,t){return this.delegate.listen(r,e,t)}disableAnimations(r,e){this.engine.disableAnimations(r,e)}}class Ay extends $g{constructor(r,e,t,s){super(e,t,s),this.factory=r,this.namespaceId=e}setProperty(r,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==yh?this.disableAnimations(r,t=void 0===t||!!t):this.engine.process(this.namespaceId,r,e.substr(1),t):this.delegate.setProperty(r,e,t)}listen(r,e,t){if("@"==e.charAt(0)){const s=function Qg(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(r);let l=e.substr(1),c="";return"@"!=l.charAt(0)&&([l,c]=function xy(o){const r=o.indexOf(".");return[o.substring(0,r),o.substr(r+1)]}(l)),this.engine.listen(this.namespaceId,s,l,c,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(r,e,t)}}let Yg=(()=>{class o extends Jo{constructor(e,t,s){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0),p.LFG(Ju),p.LFG(Qo))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const Ni=new p.OlP("AnimationModuleType"),wh=[{provide:Dn,useClass:z0},{provide:Qo,useFactory:function Ty(){return new I0}},{provide:Jo,useClass:Yg},{provide:p.FYo,useFactory:function Ey(o,r,e){return new vy(o,r,e)},deps:[we,Jo,p.R0b]}],Jg=[{provide:Ju,useFactory:()=>new N0},{provide:Ni,useValue:"BrowserAnimations"},...wh],Yn=[{provide:Ju,useClass:Lo},{provide:Ni,useValue:"NoopAnimations"},...wh];let vh=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?Yn:Jg}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:Jg,imports:[Mr]}),o})();const kc=new p.OlP("mat-sanity-checks",{providedIn:"root",factory:function Hy(){return!0}});let Ne=(()=>{class o{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!un()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(wg),p.LFG(kc,8),p.LFG(T.K0))},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[ti],ti]}),o})();function ws(o){return class extends o{constructor(...r){super(...r),this._disabled=!1}get disabled(){return this._disabled}set disabled(r){this._disabled=Ke(r)}}}function $r(o,r){return class extends o{constructor(...e){super(...e),this.defaultColor=r,this.color=r}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Qr(o){return class extends o{constructor(...r){super(...r),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(r){this._disableRipple=Ke(r)}}}function Dy(o){return class extends o{constructor(...r){super(...r),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const r=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==r&&(this.errorState=l,this.stateChanges.next())}}}const em=new p.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function tm(){return(0,p.f3M)(p.soG)}});class gn{constructor(){this._localeChanges=new He.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(r){return this.isDateInstance(r)&&this.isValid(r)?r:null}deserialize(r){return null==r||this.isDateInstance(r)&&this.isValid(r)?r:this.invalid()}setLocale(r){this.locale=r,this._localeChanges.next()}compareDate(r,e){return this.getYear(r)-this.getYear(e)||this.getMonth(r)-this.getMonth(e)||this.getDate(r)-this.getDate(e)}sameDate(r,e){if(r&&e){let t=this.isValid(r),s=this.isValid(e);return t&&s?!this.compareDate(r,e):t==s}return r==e}clampDate(r,e,t){return e&&this.compareDate(r,e)<0?e:t&&this.compareDate(r,t)>0?t:r}}const Ko=new p.OlP("mat-date-formats"),im=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function kn(o,r){const e=Array(o);for(let t=0;t{class o extends gn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return kn(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return kn(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return kn(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let l=this._createDateWithOverflow(e,t,s);return l.getMonth(),l}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(im.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const l=new Date;return l.setFullYear(e,t,s),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(em,8),p.LFG(Je))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const Py={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ry=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[{provide:gn,useClass:Zo}],imports:[[Yi]]}),o})(),ky=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[{provide:Ko,useValue:Py}],imports:[[Ry]]}),o})(),vs=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),As=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne],Ne]}),o})();class rm{constructor(r,e,t){this._renderer=r,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Th={enterDuration:225,exitDuration:150},Eh=Ji({passive:!0}),Ic=["mousedown","touchstart"],sm=["mouseup","mouseleave","touchend","touchcancel"];class om{constructor(r,e,t,s){this._target=r,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Lt(t))}fadeInRipple(r,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},Th),t.animation);t.centered&&(r=s.left+s.width/2,e=s.top+s.height/2);const c=t.radius||function xs(o,r,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),s=Math.max(Math.abs(r-e.top),Math.abs(r-e.bottom));return Math.sqrt(t*t+s*s)}(r,e,s),n=r-s.left,i=e-s.top,a=l.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-c+"px",d.style.top=i-c+"px",d.style.height=2*c+"px",d.style.width=2*c+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${a}ms`,this._containerElement.appendChild(d),function lm(o){window.getComputedStyle(o).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new rm(this,d,t);return u.state=0,this._activeRipples.add(u),t.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const g=u===this._mostRecentTransientRipple;u.state=1,!t.persistent&&(!g||!this._isPointerDown)&&u.fadeOut()},a),u}fadeOutRipple(r){const e=this._activeRipples.delete(r);if(r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=r.element,s=Object.assign(Object.assign({},Th),r.config.animation);t.style.transitionDuration=`${s.exitDuration}ms`,t.style.opacity="0",r.state=2,this._runTimeoutOutsideZone(()=>{r.state=3,t.remove()},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(r=>r.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(r=>{r.config.persistent||r.fadeOut()})}setupTriggerEvents(r){const e=Lt(r);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ic))}handleEvent(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sm),this._pointerUpEventsRegistered=!0)}_onMousedown(r){const e=Bo(r),t=this._lastTouchStartEvent&&Date.now(){!r.config.persistent&&(1===r.state||r.config.terminateOnPointerUp&&0===r.state)&&r.fadeOut()}))}_runTimeoutOutsideZone(r,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(r,e))}_registerEvents(r){this._ngZone.runOutsideAngular(()=>{r.forEach(e=>{this._triggerElement.addEventListener(e,this,Eh)})})}_removeTriggerEvents(){this._triggerElement&&(Ic.forEach(r=>{this._triggerElement.removeEventListener(r,this,Eh)}),this._pointerUpEventsRegistered&&sm.forEach(r=>{this._triggerElement.removeEventListener(r,this,Eh)}))}}const Sh=new p.OlP("mat-ripple-global-options");let Yr=(()=>{class o{constructor(e,t,s,l,c){this._elementRef=e,this._animationMode=c,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new om(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Je),p.Y36(Sh,8),p.Y36(Ni,8))},o.\u0275dir=p.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&p.ekj("mat-ripple-unbounded",t.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"]}),o})(),mn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne,Yi],Ne]}),o})(),Mh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne]]}),o})(),Hh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[mn,T.ez,Ne,Mh]]}),o})();var Ti=E(5254),Ea=E(8896);function Es(o){return new yi.y(r=>{let e;try{e=o()}catch(s){return void r.error(s)}return(e?(0,Ti.D)(e):(0,Ea.c)()).subscribe(r)})}function Fy(o,r){}class Vc{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const iT={dialogContainer:Wt("dialogContainer",[dt("void, exit",Re({opacity:0,transform:"scale(0.7)"})),dt("enter",Re({transform:"none"})),ft("* => enter",St("150ms cubic-bezier(0, 0, 0.2, 1)",Re({transform:"none",opacity:1}))),ft("* => void, * => exit",St("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Re({opacity:0})))])};let Dh=(()=>{class o extends uu{constructor(e,t,s,l,c,n,i,a){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=s,this._config=c,this._interactivityChecker=n,this._ngZone=i,this._focusMonitor=a,this._animationStateChanged=new p.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=c.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Jl(),s=this._elementRef.nativeElement;(!t||t===this._document.body||t===s||s.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Jl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Jl();return e===t||e.contains(t)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(Bu),p.Y36(p.sBO),p.Y36(T.K0,8),p.Y36(Vc),p.Y36(gg),p.Y36(p.R0b),p.Y36(fr))},o.\u0275dir=p.lG2({type:o,viewQuery:function(e,t){if(1&e&&p.Gf(Kl,7),2&e){let s;p.iGM(s=p.CRH())&&(t._portalOutlet=s.first)}},features:[p.qOj]}),o})(),Ly=(()=>{class o extends Dh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&p.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(p.Ikx("id",t._id),p.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),p.d8E("@dialogContainer",t._state))},features:[p.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&p.YNc(0,Fy,0,0,"ng-template",0)},directives:[Kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[iT.dialogContainer]}}),o})(),dm=0;class Ss{constructor(r,e,t="mat-dialog-"+dm++){this._overlayRef=r,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,bt.h)(s=>"opened"===s.state),(0,Yt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,bt.h)(s=>"closed"===s.state),(0,Yt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),r.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),r.keydownEvents().pipe((0,bt.h)(s=>27===s.keyCode&&!this.disableClose&&!pr(s))).subscribe(s=>{s.preventDefault(),jy(this,"keyboard")}),r.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():jy(this,"mouse")})}close(r){this._result=r,this._containerInstance._animationStateChanged.pipe((0,bt.h)(e=>"closing"===e.state),(0,Yt.q)(1)).subscribe(e=>{this._beforeClosed.next(r),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(r){let e=this._getPositionStrategy();return r&&(r.left||r.right)?r.left?e.left(r.left):e.right(r.right):e.centerHorizontally(),r&&(r.top||r.bottom)?r.top?e.top(r.top):e.bottom(r.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(r="",e=""){return this._overlayRef.updateSize({width:r,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(r){return this._overlayRef.addPanelClass(r),this}removePanelClass(r){return this._overlayRef.removePanelClass(r),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function jy(o,r,e){return void 0!==o._containerInstance&&(o._containerInstance._closeInteractionType=r),o.close(e)}const Vn=new p.OlP("MatDialogData"),nT=new p.OlP("mat-dialog-default-options"),Ny=new p.OlP("mat-dialog-scroll-strategy"),hm={provide:Ny,deps:[$n],useFactory:function um(o){return()=>o.scrollStrategies.block()}};let Gy=(()=>{class o{constructor(e,t,s,l,c,n,i,a,d,u){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=l,this._overlayContainer=c,this._dialogRefConstructor=i,this._dialogContainerType=a,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Es(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function pm(o,r){return Object.assign(Object.assign({},r),o)}(t,this._defaultOptions||new Vc),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const s=this._createOverlay(t),l=this._attachDialogContainer(s,t);if("NoopAnimations"!==this._animationMode){const n=l._animationStateChanged.subscribe(i=>{"opening"===i.state&&(this._dialogAnimatingOpen=!0),"opened"===i.state&&(this._dialogAnimatingOpen=!1,n.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new zt.w),this._animationStateSubscriptions.add(n)}const c=this._attachDialogContent(e,l,s,t);return this._lastDialogRef=c,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(c),c.afterClosed().subscribe(()=>this._removeOpenDialog(c)),this.afterOpened.next(c),l._initializeWithAttachedContent(),c}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Br({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=p.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:Vc,useValue:t}]}),c=new go(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(c).instance}_attachDialogContent(e,t,s,l){const c=new this._dialogRefConstructor(s,t,l.id);if(e instanceof p.Rgc)t.attachTemplatePortal(new du(e,null,{$implicit:l.data,dialogRef:c}));else{const n=this._createInjector(l,c,t),i=t.attachComponentPortal(new go(e,l.viewContainerRef,n));c.componentInstance=i.instance}return c.updateSize(l.width,l.height).updatePosition(l.position),c}_createInjector(e,t,s){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,c=[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(hn,null,p.XFs.Optional))&&c.push({provide:hn,useValue:{value:e.direction,change:(0,ke.of)()}}),p.zs3.create({parent:l||this._injector,providers:c})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,l)=>{s?l.setAttribute("aria-hidden",s):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){let l=t[s];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){p.$Z()},o.\u0275dir=p.lG2({type:o}),o})(),Ms=(()=>{class o extends Gy{constructor(e,t,s,l,c,n,i,a){super(e,t,l,n,i,c,Ss,Ly,Vn,a)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG($n),p.LFG(p.zs3),p.LFG(T.Ye,8),p.LFG(nT,8),p.LFG(Ny),p.LFG(o,12),p.LFG(Xl),p.LFG(Ni,8))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),Ph=0,Bc=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Ph++}ngOnInit(){this._dialogRef||(this._dialogRef=function qy(o,r){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?r.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ss,8),p.Y36(p.SBq),p.Y36(Ms))},o.\u0275dir=p.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&p.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),Rh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),fm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),o})(),Oc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[Ms,hm],imports:[[ss,rs,Ne],Ne]}),o})();function Jn(o){return!!o&&(o instanceof yi.y||"function"==typeof o.lift&&"function"==typeof o.subscribe)}var Uy=E(7830);function Hs(...o){if(1===o.length){const r=o[0];if((0,dn.k)(r))return br(r,null);if((0,Uy.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){const e=Object.keys(r);return br(e.map(t=>r[t]),e)}}if("function"==typeof o[o.length-1]){const r=o.pop();return br(o=1===o.length&&(0,dn.k)(o[0])?o[0]:o,null).pipe((0,tt.U)(e=>r(...e)))}return br(o,null)}function br(o,r){return new yi.y(e=>{const t=o.length;if(0===t)return void e.complete();const s=new Array(t);let l=0,c=0;for(let n=0;n{a||(a=!0,c++),s[n]=d},error:d=>e.error(d),complete:()=>{l++,(l===t||!a)&&(c===t&&e.next(r?r.reduce((d,u,g)=>(d[u]=s[g],d),{}):s),e.complete())}}))}})}const $y=new class tl extends wi.v{}(class Wy extends la.o{constructor(r,e){super(r,e),this.scheduler=r,this.work=e}schedule(r,e=0){return e>0?super.schedule(r,e):(this.delay=e,this.state=r,this.scheduler.flush(this),this)}execute(r,e){return e>0||this.closed?super.execute(r,e):this._execute(r,e)}requestAsyncId(r,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(r,e,t):r.flush(this)}});var kh=E(9312);class Jr extends _a.L{constructor(r,e,t=0){super(r),this.scheduler=e,this.delay=t}static dispatch(r){const{notification:e,destination:t}=r;e.observe(t),this.unsubscribe()}scheduleMessage(r){this.destination.add(this.scheduler.schedule(Jr.dispatch,this.delay,new Ei(r,this.destination)))}_next(r){this.scheduleMessage(kh.P.createNext(r))}_error(r){this.scheduleMessage(kh.P.createError(r)),this.unsubscribe()}_complete(){this.scheduleMessage(kh.P.createComplete()),this.unsubscribe()}}class Ei{constructor(r,e){this.notification=r,this.destination=e}}var Sa=E(5283);class Fc extends He.xQ{constructor(r=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=r<1?1:r,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(r){const e=this._events;e.push(r),e.length>this._bufferSize&&e.shift(),super.next(r)}nextTimeWindow(r){this._events.push(new _n(this._getNow(),r)),this._trimBufferThenGetEvents(),super.next(r)}_subscribe(r){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,l=t.length;let c;if(this.closed)throw new fa.N;if(this.isStopped||this.hasError?c=zt.w.EMPTY:(this.observers.push(r),c=new Sa.W(this,r)),s&&r.add(r=new Jr(r,s)),e)for(let n=0;ne&&(c=Math.max(c,l-e)),c>0&&s.splice(0,c),s}}class _n{constructor(r,e){this.time=r,this.value=e}}function Lc(o,r,e){let t;return t=o&&"object"==typeof o?o:{bufferSize:o,windowTime:r,refCount:!1,scheduler:e},s=>s.lift(function Ds({bufferSize:o=Number.POSITIVE_INFINITY,windowTime:r=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let s,c,l=0,n=!1,i=!1;return function(d){l++,(!s||n)&&(n=!1,s=new Fc(o,r,t),c=d.subscribe({next(g){s.next(g)},error(g){n=!0,s.error(g)},complete(){i=!0,c=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{l--,u.unsubscribe(),c&&!i&&e&&0===l&&(c.unsubscribe(),c=void 0,s=void 0)})}}(t))}var Bn=E(1406),pi=E(7545);class Zn{}let Ma=(()=>{class o extends Zn{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class Kr{}let Ha=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();function Cr(o,r){if(o===r)return!0;if(null===o||null===r)return!1;if(o!=o&&r!=r)return!0;let s,l,c,e=typeof o;if(e==typeof r&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(r))return!1;for(l in c=Object.create(null),o){if(!Cr(o[l],r[l]))return!1;c[l]=!0}for(l in r)if(!(l in c)&&void 0!==r[l])return!1;return!0}if(!Array.isArray(r))return!1;if((s=o.length)==r.length){for(l=0;l{jc(r[t])?t in o?e[t]=Ih(o[t],r[t]):Object.assign(e,{[t]:r[t]}):Object.assign(e,{[t]:r[t]})}),e}class il{}let Vh=(()=>{class o extends il{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!Xi(e)||!Xi(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,l)=>{let c=this.getValue(t,l);return Xi(c)?c:s}):e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class nl{}let Bh=(()=>{class o extends nl{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();class Oh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new p.vpe,this.onLangChange=new p.vpe,this.onDefaultLangChange=new p.vpe}}const Nc=new p.OlP("USE_STORE"),zc=new p.OlP("USE_DEFAULT_LANG"),Fh=new p.OlP("DEFAULT_LANGUAGE"),Gc=new p.OlP("USE_EXTEND");let bn=(()=>{class o{constructor(e,t,s,l,c,n=!0,i=!1,a=!1,d){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=l,this.missingTranslationHandler=c,this.useDefaultLang=n,this.isolate=i,this.extend=a,this.pending=!1,this._onTranslationChange=new p.vpe,this._onLangChange=new p.vpe,this._onDefaultLangChange=new p.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Yt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Yt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Lc(1),(0,Yt.q)(1));return this.loadingTranslations=t.pipe((0,tt.U)(s=>this.compiler.compileTranslations(s,e)),Lc(1),(0,Yt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Ih(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let l;if(t instanceof Array){let c={},n=!1;for(let i of t)c[i]=this.getParsedResult(e,i,s),Jn(c[i])&&(n=!0);return n?Hs(t.map(a=>Jn(c[a])?c[a]:(0,ke.of)(c[a]))).pipe((0,tt.U)(a=>{let d={};return a.forEach((u,g)=>{d[t[g]]=u}),d})):c}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),s)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),void 0===l){let c={key:t,translateService:this};void 0!==s&&(c.interpolateParams=s),l=this.missingTranslationHandler.handle(c)}return void 0!==l?l:t}get(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Bn.b)(s=>Jn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Jn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return ds(Es(()=>this.get(e,t)),this.onTranslationChange.pipe((0,pi.w)(s=>{const l=this.getParsedResult(s.translations,e,t);return"function"==typeof l.subscribe?l:(0,ke.of)(l)})))}stream(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return ds(Es(()=>this.get(e,t)),this.onLangChange.pipe((0,pi.w)(s=>{const l=this.getParsedResult(s.translations,e,t);return Jn(l)?l:(0,ke.of)(l)})))}instant(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Jn(s)){if(e instanceof Array){let l={};return e.forEach((c,n)=>{l[e[n]]=e[n]}),l}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Oh),p.LFG(Zn),p.LFG(nl),p.LFG(il),p.LFG(Kr),p.LFG(zc),p.LFG(Nc),p.LFG(Gc),p.LFG(Fh))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),Zr=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let l=c=>{this.value=void 0!==c?c:e,this.lastKey=e,this._ref.markForCheck()};if(s){let c=this.translate.getParsedResult(s,e,t);Jn(c.subscribe)?c.subscribe(l):l(c)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Cr(e,this.lastKey)&&Cr(t,this.lastParams))return this.value;let s;if(Xi(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(l)}catch(c){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(bn,16),p.Y36(p.sBO,16))},o.\u0275pipe=p.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),rl=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:nl,useClass:Bh},e.parser||{provide:il,useClass:Vh},e.missingTranslationHandler||{provide:Kr,useClass:Ha},Oh,{provide:Nc,useValue:e.isolate},{provide:zc,useValue:e.useDefaultLang},{provide:Gc,useValue:e.extend},{provide:Fh,useValue:e.defaultLanguage},bn]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:nl,useClass:Bh},e.parser||{provide:il,useClass:Vh},e.missingTranslationHandler||{provide:Kr,useClass:Ha},{provide:Nc,useValue:e.isolate},{provide:zc,useValue:e.useDefaultLang},{provide:Gc,useValue:e.extend},{provide:Fh,useValue:e.defaultLanguage},bn]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),Yy=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ss))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(p.TgZ(0,"h2",0),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&e&&(p.xp6(1),p.hij(" ",p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Rh],pipes:[Zr],styles:[""]}),o})();const mm=["mat-button",""],Jy=["*"],Xy=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],aT=$r(ws(Qr(class{constructor(o){this._elementRef=o}})));let qc=(()=>{class o extends aT{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Xy)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(fr),p.Y36(Ni,8))},o.\u0275cmp=p.Xpm({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&p.Gf(Yr,5),2&e){let s;p.iGM(s=p.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(p.uIk("disabled",t.disabled||null),p.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[p.qOj],attrs:mm,ngContentSelectors:Jy,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"span",0),p.Hsn(1),p.qZA(),p._UZ(2,"span",1),p._UZ(3,"span",2)),2&e&&(p.xp6(2),p.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),p.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Yr],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),o})(),On=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[mn,Ne],Ne]}),o})();const ew=["connectionContainer"],sT=["inputContainer"],oT=["label"];function lT(o,r){1&o&&(p.ynx(0),p.TgZ(1,"div",14),p._UZ(2,"div",15),p._UZ(3,"div",16),p._UZ(4,"div",17),p.qZA(),p.TgZ(5,"div",18),p._UZ(6,"div",15),p._UZ(7,"div",16),p._UZ(8,"div",17),p.qZA(),p.BQk())}function tw(o,r){if(1&o){const e=p.EpF();p.TgZ(0,"div",19),p.NdJ("cdkObserveContent",function(){return p.CHM(e),p.oxw().updateOutlineGap()}),p.Hsn(1,1),p.qZA()}if(2&o){const e=p.oxw();p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function bm(o,r){if(1&o&&(p.ynx(0),p.Hsn(1,2),p.TgZ(2,"span"),p._uU(3),p.qZA(),p.BQk()),2&o){const e=p.oxw(2);p.xp6(3),p.Oqu(e._control.placeholder)}}function cT(o,r){1&o&&p.Hsn(0,3,["*ngSwitchCase","true"])}function iw(o,r){1&o&&(p.TgZ(0,"span",23),p._uU(1," *"),p.qZA())}function Ps(o,r){if(1&o){const e=p.EpF();p.TgZ(0,"label",20,21),p.NdJ("cdkObserveContent",function(){return p.CHM(e),p.oxw().updateOutlineGap()}),p.YNc(2,bm,4,1,"ng-container",12),p.YNc(3,cT,1,0,"ng-content",12),p.YNc(4,iw,2,0,"span",22),p.qZA()}if(2&o){const e=p.oxw();p.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),p.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),p.uIk("for",e._control.id)("aria-owns",e._control.id),p.xp6(2),p.Q6J("ngSwitchCase",!1),p.xp6(1),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function nw(o,r){1&o&&(p.TgZ(0,"div",24),p.Hsn(1,4),p.qZA())}function Cm(o,r){if(1&o&&(p.TgZ(0,"div",25),p._UZ(1,"span",26),p.qZA()),2&o){const e=p.oxw();p.xp6(1),p.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function rw(o,r){if(1&o&&(p.TgZ(0,"div"),p.Hsn(1,5),p.qZA()),2&o){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState)}}function ym(o,r){if(1&o&&(p.TgZ(0,"div",30),p._uU(1),p.qZA()),2&o){const e=p.oxw(2);p.Q6J("id",e._hintLabelId),p.xp6(1),p.Oqu(e.hintLabel)}}function Uc(o,r){if(1&o&&(p.TgZ(0,"div",27),p.YNc(1,ym,2,2,"div",28),p.Hsn(2,6),p._UZ(3,"div",29),p.Hsn(4,7),p.qZA()),2&o){const e=p.oxw();p.Q6J("@transitionMessages",e._subscriptAnimationState),p.xp6(1),p.Q6J("ngIf",e.hintLabel)}}const aw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let sw=0;const vm=new p.OlP("MatError");let Am=(()=>{class o{constructor(e,t){this.id="mat-error-"+sw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(p.$8M("aria-live"),p.Y36(p.SBq))},o.\u0275dir=p.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("id",t.id)},inputs:{id:"id"},features:[p._Bn([{provide:vm,useExisting:o}])]}),o})();const ow={transitionMessages:Wt("transitionMessages",[dt("enter",Re({opacity:1,transform:"translateY(0%)"})),ft("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),St("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Wc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o}),o})(),xm=0;const $c=new p.OlP("MatHint");let uT=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+xm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(p.uIk("id",t.id)("align",null),p.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[p._Bn([{provide:$c,useExisting:o}])]}),o})(),Rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["mat-label"]]}),o})(),dw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const hT=new p.OlP("MatPrefix"),Lh=new p.OlP("MatSuffix");let jh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["","matSuffix",""]],features:[p._Bn([{provide:Lh,useExisting:o}])]}),o})(),Yc=0;const Nh=$r(class{constructor(o){this._elementRef=o}},"primary"),Tm=new p.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Em=new p.OlP("MatFormField");let Sm=(()=>{class o extends Nh{constructor(e,t,s,l,c,n,i){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=l,this._platform=c,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Yc++,this._labelId="mat-form-field-label-"+Yc++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ke(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(hi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(pt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(pt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Wn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(pt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,lo(this._label.nativeElement,"transitionend").pipe((0,Yt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,s=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${s}, ${l}`);for(let u=0;u0?.75*D+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,Ne,hc],Ne]}),o})();const Om={provide:new p.OlP("mat-select-scroll-strategy"),deps:[$n],useFactory:function Bm(o){return()=>o.scrollStrategies.reposition()}};let Kc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[Om],imports:[[T.ez,ss,Hh,Ne],Un,yr,Hh,Ne]}),o})();var ii=E(6053);const Fm=new Set;let ks,Lm=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):jm}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Ew(o){if(!Fm.has(o))try{ks||(ks=document.createElement("style"),ks.setAttribute("type","text/css"),document.head.appendChild(ks)),ks.sheet&&(ks.sheet.insertRule(`@media ${o} {body{ }}`,0),Fm.add(o))}catch(r){console.error(r)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function jm(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let Nm=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Da(so(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Da(so(e)).map(c=>this._registerQuery(c).observable);let l=(0,ii.aj)(s);return l=ds(l.pipe((0,Yt.q)(1)),l.pipe(Mu(1),(0,ma.b)(0))),l.pipe((0,tt.U)(c=>{const n={matches:!1,breakpoints:{}};return c.forEach(({matches:i,query:a})=>{n.matches=n.matches||i,n.breakpoints[a]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new yi.y(c=>{const n=i=>this._zone.run(()=>c.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hi(t),(0,tt.U)(({matches:c})=>({query:e,matches:c})),pt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Lm),p.LFG(p.R0b))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Da(o){return o.map(r=>r.split(",")).reduce((r,e)=>r.concat(e)).map(r=>r.trim())}const Mw={tooltipState:Wt("state",[dt("initial, void, hidden",Re({opacity:0,transform:"scale(0)"})),dt("visible",Re({transform:"scale(1)"})),ft("* => visible",St("200ms cubic-bezier(0, 0, 0.2, 1)",Lr([Re({opacity:0,transform:"scale(0)",offset:0}),Re({opacity:.5,transform:"scale(0.99)",offset:.5}),Re({opacity:1,transform:"scale(1)",offset:1})]))),ft("* => hidden",St("100ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:0})))])},qh="tooltip-panel",Hw=Ji({passive:!0}),Fn=new p.OlP("mat-tooltip-scroll-strategy"),Pw={provide:Fn,deps:[$n],useFactory:function Dw(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Xn=new p.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Ln(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let jn=(()=>{class o{constructor(e,t,s,l,c,n,i,a,d,u,g,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=l,this._ngZone=c,this._platform=n,this._ariaDescriber=i,this._focusMonitor=a,this._dir=u,this._defaultOptions=g,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.xQ,this._scrollStrategy=d,this._document=b,g&&(g.position&&(this.position=g.position),g.touchGestures&&(this.touchGestures=g.touchGestures)),u.change.pipe(pt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ke(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=cn(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=cn(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Hw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new go(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(pt(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${qh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pt(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(pt(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!pr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),l.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),l.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:l,y:c}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:l,originY:c}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:l,y:c}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:l,overlayY:c}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Yt.q)(1),pt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:l}=e;let c;if(c="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===l?"above":"below",c!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${qh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+c)}this._currentPosition=c}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Hw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){p.$Z()},o.\u0275dir=p.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),qm=(()=>{class o extends jn{constructor(e,t,s,l,c,n,i,a,d,u,g,b){super(e,t,s,l,c,n,i,a,d,u,g,b),this._tooltipComponent=Rw}}return o.\u0275fac=function(e){return new(e||o)(p.Y36($n),p.Y36(p.SBq),p.Y36(Nf),p.Y36(p.s_b),p.Y36(p.R0b),p.Y36(Je),p.Y36(Iu),p.Y36(fr),p.Y36(Fn),p.Y36(hn,8),p.Y36(Xn,8),p.Y36(T.K0))},o.\u0275dir=p.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[p.qOj]}),o})(),Um=(()=>{class o{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.sBO))},o.\u0275dir=p.lG2({type:o}),o})(),Rw=(()=>{class o extends Um{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.sBO),p.Y36(Nm))},o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&p.Udp("zoom","visible"===t._visibility?1:null)},features:[p.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(p.TgZ(0,"div",0),p.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),p.ALo(1,"async"),p._uU(2),p.qZA()),2&e){let s;p.ekj("mat-tooltip-handset",null==(s=p.lcZ(1,5,t._isHandset))?null:s.matches),p.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),p.xp6(2),p.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Mw.tooltipState]},changeDetection:0}),o})(),Is=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[Pw],imports:[[bc,T.ez,ss,Ne],Ne,Un]}),o})(),$h=(()=>{class o{constructor(){this.changes=new He.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const l=e*t;return`${l+1} \u2013 ${l<(s=Math.max(s,0))?Math.min(l+t,s):l+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const $m={provide:$h,deps:[[new p.FiY,new p.tp0,$h]],useFactory:function Wm(o){return o||new $h}};let Vs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[$m],imports:[[T.ez,On,Kc,Is,Ne]]}),o})();var Jh=E(943);const Ym=["mat-menu-item",""];function Jm(o,r){1&o&&(p.O4$(),p.TgZ(0,"svg",2),p._UZ(1,"polygon",3),p.qZA())}const Kh=["*"];function Km(o,r){if(1&o){const e=p.EpF();p.TgZ(0,"div",0),p.NdJ("keydown",function(s){return p.CHM(e),p.oxw()._handleKeydown(s)})("click",function(){return p.CHM(e),p.oxw().closed.emit("click")})("@transformMenu.start",function(s){return p.CHM(e),p.oxw()._onAnimationStart(s)})("@transformMenu.done",function(s){return p.CHM(e),p.oxw()._onAnimationDone(s)}),p.TgZ(1,"div",1),p.Hsn(2),p.qZA(),p.qZA()}if(2&o){const e=p.oxw();p.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),p.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const al={transformMenu:Wt("transformMenu",[dt("void",Re({opacity:0,transform:"scale(0.8)"})),ft("void => enter",St("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1)"}))),ft("* => void",St("100ms 25ms linear",Re({opacity:0})))]),fadeInItems:Wt("fadeInItems",[dt("showing",Re({opacity:1})),ft("void => *",[Re({opacity:0}),St("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Lw=new p.OlP("MatMenuContent"),Zh=new p.OlP("MAT_MENU_PANEL"),jw=Qr(ws(class{}));let Xc=(()=>{class o extends jw{constructor(e,t,s,l,c){var n;super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=l,this._changeDetectorRef=c,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(n=null==l?void 0:l.addItem)||void 0===n||n.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),s=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class o{constructor(e,t,s){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new p.n_E,this._tabSubscription=zt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new p.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+zw++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ke(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ke(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ko(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(e=>(0,Wn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(t=>(0,Wn.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:pr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Yt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(c=>c.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(hi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Zm))},o.\u0275dir=p.lG2({type:o,contentQueries:function(e,t,s){if(1&e&&(p.Suo(s,Lw,5),p.Suo(s,Xc,5),p.Suo(s,Xc,4)),2&e){let l;p.iGM(l=p.CRH())&&(t.lazyContent=l.first),p.iGM(l=p.CRH())&&(t._allItems=l),p.iGM(l=p.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&p.Gf(p.Rgc,5),2&e){let s;p.iGM(s=p.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),Gw=(()=>{class o extends sl{constructor(e,t,s){super(e,t,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(Zm))},o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&p.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[p._Bn([{provide:Zh,useExisting:o}]),p.qOj],ngContentSelectors:Kh,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(p.F$t(),p.YNc(0,Km,3,6,"ng-template"))},directives:[T.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[al.transformMenu,al.fadeInItems]},changeDetection:0}),o})();const Xm=new p.OlP("mat-menu-scroll-strategy"),e_={provide:Xm,deps:[$n],useFactory:function qw(o){return()=>o.scrollStrategies.reposition()}},ep=Ji({passive:!0});let t_=(()=>{class o{constructor(e,t,s,l,c,n,i,a){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=n,this._dir=i,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=zt.w.EMPTY,this._hoverSubscription=zt.w.EMPTY,this._menuCloseSubscription=zt.w.EMPTY,this._handleTouchStart=d=>{gc(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new p.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new p.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=l,this._parentMaterialMenu=c instanceof sl?c:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,ep),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ep),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),s=t.positionStrategy;this._setPosition(s),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof sl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(pt(this.menu.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof sl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,bt.h)(s=>"void"===s.toState),(0,Yt.q)(1),pt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,c]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[l,c],[a,d]=[t,s],u=0;this.triggersSubmenu()?(d=t="before"===this.menu.xPosition?"start":"end",s=a="end"===t?"start":"end",u="bottom"===l?8:-8):this.menu.overlapTrigger||(n="top"===l?"bottom":"top",i="top"===c?"bottom":"top"),e.withPositions([{originX:t,originY:n,overlayX:a,overlayY:l,offsetY:u},{originX:s,originY:n,overlayX:d,overlayY:l,offsetY:u},{originX:t,originY:i,overlayX:a,overlayY:c,offsetY:-u},{originX:s,originY:i,overlayX:d,overlayY:c,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,bt.h)(c=>c!==this._menuItemInstance),(0,bt.h)(()=>this._menuOpen)):(0,ke.of)();return(0,Wn.T)(e,s,l,t)}_handleMousedown(e){Bo(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,bt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Jh.g)(0,H)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof sl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Yt.q)(1),(0,Jh.g)(0,H),pt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new du(this.menu.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(p.Y36($n),p.Y36(p.SBq),p.Y36(p.s_b),p.Y36(Xm),p.Y36(Zh,8),p.Y36(Xc,10),p.Y36(hn,8),p.Y36(fr))},o.\u0275dir=p.lG2({type:o,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&p.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&p.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),o})(),i_=(()=>{class o extends t_{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275dir=p.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[p.qOj]}),o})(),ol=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[e_],imports:[[T.ez,Ne,mn,ss],Un,Ne]}),o})();var ll=E(1737),zi=E(7221);function ed(o){return r=>r.lift(new tp(o))}class tp{constructor(r){this.callback=r}call(r,e){return e.subscribe(new ip(r,this.callback))}}class ip extends _a.L{constructor(r,e){super(r),this.add(new zt.w(e))}}var Pa=E(2474);const Uw=["*"];let td;function id(o){var r;return(null===(r=function Bs(){if(void 0===td&&(td=null,"undefined"!=typeof window)){const o=window;void 0!==o.trustedTypes&&(td=o.trustedTypes.createPolicy("angular#components",{createHTML:r=>r}))}return td}())||void 0===r?void 0:r.createHTML(o))||o}function nd(o){return Error(`Unable to find icon with the name "${o}"`)}function np(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function rp(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Os{constructor(r,e,t){this.url=r,this.svgText=e,this.options=t}}let ze=(()=>{class o{constructor(e,t,s,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,l){return this._addSvgIconConfig(e,t,new Os(s,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,l){const c=this._sanitizer.sanitize(p.q3G.HTML,s);if(!c)throw rp(s);const n=id(c);return this._addSvgIconConfig(e,t,new Os("",n,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new Os(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const l=this._sanitizer.sanitize(p.q3G.HTML,t);if(!l)throw rp(t);const c=id(l);return this._addSvgIconSetConfig(e,new Os("",c,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(p.q3G.RESOURCE_URL,e);if(!t)throw np(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(rd(s)):this._loadSvgIconFromConfig(new Os(e,null)).pipe((0,It.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,tt.U)(l=>rd(l)))}getNamedSvgIcon(e,t=""){const s=cl(t,e);let l=this._svgIconConfigs.get(s);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(s,l),this._getSvgFromConfig(l);const c=this._iconSetConfigs.get(t);return c?this._getSvgFromIconSetConfigs(e,c):(0,ll._)(nd(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(rd(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,tt.U)(t=>rd(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):Hs(t.filter(c=>!c.svgText).map(c=>this._loadSvgIconSetFromConfig(c).pipe((0,zi.K)(n=>{const a=`Loading icon set URL: ${this._sanitizer.sanitize(p.q3G.RESOURCE_URL,c.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(a)),(0,ke.of)(null)})))).pipe((0,tt.U)(()=>{const c=this._extractIconWithNameFromAnySet(e,t);if(!c)throw nd(e);return c}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const l=t[s];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const c=this._svgElementFromConfig(l),n=this._extractSvgIconFromSet(c,e,l.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t),(0,tt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const c=l.cloneNode(!0);if(c.removeAttribute("id"),"svg"===c.nodeName.toLowerCase())return this._setSvgAttributes(c,s);if("symbol"===c.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(c),s);const n=this._svgElementFromString(id(""));return n.appendChild(c),this._setSvgAttributes(n,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(id("")),s=e.attributes;for(let l=0;lid(d)),ed(()=>this._inProgressUrlFetches.delete(n)),(0,Pa.B)());return this._inProgressUrlFetches.set(n,a),a}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(cl(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sr?r.pathname+r.search:""}}}),Qw=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n_=Qw.map(o=>`[${o}]`).join(", "),Yw=/^url\(['"]?#(.*?)['"]?\)$/;let ap=(()=>{class o extends ad{constructor(e,t,s,l,c){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=c,this._inline=!1,this._currentIconFetch=zt.w.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ke(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let l=0;l{s.forEach(c=>{l.setAttribute(c.name,`url('${e}#${c.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(n_),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const n=t[l],i=n.getAttribute(c),a=i?i.match(Yw):null;if(a){let d=s.get(n);d||(d=[],s.set(n,d)),d.push({name:c,value:a[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,Yt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${l.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(ze),p.$8M("aria-hidden"),p.Y36(sd),p.Y36(p.qLn))},o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(p.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),p.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[p.qOj],ngContentSelectors:Uw,decls:1,vars:0,template:function(e,t){1&e&&(p.F$t(),p.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),o})(),er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne],Ne]}),o})(),r_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[],imports:[[Vs,ol,er,On,rl,T.ez]]}),o})();function Fs(){const o=new Vc;return o.disableClose=!0,o.autoFocus=!1,o}E(9441),new Intl.Collator("cs",{numeric:!0});class c_{static passwordMatchValidator(r){const e=r.get("passwordCtrl").value,t=r.get("passwordAgainCtrl").value;return r.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(r){return e=>{if(!e.value)return null;let t=0;for(const s of r)t+=s.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}var lp=E(4450),lv=E(1762);function d_(o,r){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new cv(o,r,e))}}class cv{constructor(r,e,t=!1){this.accumulator=r,this.seed=e,this.hasSeed=t}call(r,e){return e.subscribe(new cp(r,this.accumulator,this.seed,this.hasSeed))}}class cp extends _a.L{constructor(r,e,t,s){super(r),this.accumulator=e,this._seed=t,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(r){this.hasSeed=!0,this._seed=r}_next(r){if(this.hasSeed)return this._tryNext(r);this.seed=r,this.destination.next(r)}_tryNext(r){const e=this.index++;let t;try{t=this.accumulator(this.seed,r,e)}catch(s){this.destination.error(s)}this.seed=t,this.destination.next(t)}}var dv=E(4231);function dd(o){return function(e){return 0===o?(0,Ea.c)():e.lift(new uv(o))}}class uv{constructor(r){if(this.total=r,this.total<0)throw new dv.W}call(r,e){return e.subscribe(new hv(r,this.total))}}class hv extends _a.L{constructor(r,e){super(r),this.total=e,this.ring=new Array,this.count=0}_next(r){const e=this.ring,t=this.total,s=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,s=this.ring;for(let l=0;lo.length||"full"===e.pathMatch&&(r.hasChildren()||t.lengtht[l]===s)}return o===r}function Tv(o){return Array.prototype.concat.apply([],o)}function mp(o){return o.length>0?o[o.length-1]:null}function fi(o,r){for(const e in o)o.hasOwnProperty(e)&&r(o[e],e)}function ir(o){return(0,p.CqO)(o)?o:(0,p.QGY)(o)?(0,Ti.D)(Promise.resolve(o)):(0,ke.of)(o)}const __={exact:function zs(o,r,e){if(!Gs(o.segments,r.segments)||!fd(o.segments,r.segments,e)||o.numberOfChildren!==r.numberOfChildren)return!1;for(const t in r.children)if(!o.children[t]||!zs(o.children[t],r.children[t],e))return!1;return!0},subset:_p},b_={exact:function pd(o,r){return qi(o,r)},subset:function Sv(o,r){return Object.keys(r).length<=Object.keys(o).length&&Object.keys(r).every(e=>m_(o[e],r[e]))},ignored:()=>!0};function hd(o,r,e){return __[e.paths](o.root,r.root,e.matrixParams)&&b_[e.queryParams](o.queryParams,r.queryParams)&&!("exact"===e.fragment&&o.fragment!==r.fragment)}function _p(o,r,e){return bp(o,r,r.segments,e)}function bp(o,r,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!Gs(s,e)||r.hasChildren()||!fd(s,e,t))}if(o.segments.length===e.length){if(!Gs(o.segments,e)||!fd(o.segments,e,t))return!1;for(const s in r.children)if(!o.children[s]||!_p(o.children[s],r.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),l=e.slice(o.segments.length);return!!(Gs(o.segments,s)&&fd(o.segments,s,t)&&o.children[ut])&&bp(o.children[ut],r,l,t)}}function fd(o,r,e){return r.every((t,s)=>b_[e](o[s].parameters,t.parameters))}class ka{constructor(r,e,t){this.root=r,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return y_.serialize(this)}}class yt{constructor(r,e){this.segments=r,this.children=e,this.parent=null,fi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wr(this)}}class Ia{constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return bd(this)}}function Gs(o,r){return o.length===r.length&&o.every((e,t)=>e.path===r[t].path)}class C_{}class Va{parse(r){const e=new Bv(r);return new ka(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){const e=`/${gd(r.root,!0)}`,t=function w_(o){const r=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${md(e)}=${md(s)}`).join("&"):`${md(e)}=${md(t)}`}).filter(e=>!!e);return r.length?`?${r.join("&")}`:""}(r.queryParams);return`${e}${t}${"string"==typeof r.fragment?`#${function aE(o){return encodeURI(o)}(r.fragment)}`:""}`}}const y_=new Va;function wr(o){return o.segments.map(r=>bd(r)).join("/")}function gd(o,r){if(!o.hasChildren())return wr(o);if(r){const e=o.children[ut]?gd(o.children[ut],!1):"",t=[];return fi(o.children,(s,l)=>{l!==ut&&t.push(`${l}:${gd(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Hv(o,r){let e=[];return fi(o.children,(t,s)=>{s===ut&&(e=e.concat(r(t,s)))}),fi(o.children,(t,s)=>{s!==ut&&(e=e.concat(r(t,s)))}),e}(o,(t,s)=>s===ut?[gd(o.children[ut],!1)]:[`${s}:${gd(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[ut]?`${wr(o)}/${e[0]}`:`${wr(o)}/(${e.join("//")})`}}function Cp(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function md(o){return Cp(o).replace(/%3B/gi,";")}function _d(o){return Cp(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yp(o){return decodeURIComponent(o)}function wp(o){return yp(o.replace(/\+/g,"%20"))}function bd(o){return`${_d(o.path)}${function Dv(o){return Object.keys(o).map(r=>`;${_d(r)}=${_d(o[r])}`).join("")}(o.parameters)}`}const Pv=/^[^\/()?;=#]+/;function Cd(o){const r=o.match(Pv);return r?r[0]:""}const Rv=/^[^=?&#]+/,Iv=/^[^&#]+/;class Bv{constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new yt([],{}):new yt([],this.parseChildren())}parseQueryParams(){const r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(t[ut]=new yt(r,e)),t}parseSegment(){const r=Cd(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(r),new Ia(yp(r),this.parseMatrixParams())}parseMatrixParams(){const r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){const e=Cd(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=Cd(this.remaining);s&&(t=s,this.capture(t))}r[yp(e)]=yp(t)}parseQueryParam(r){const e=function kv(o){const r=o.match(Rv);return r?r[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const c=function Vv(o){const r=o.match(Iv);return r?r[0]:""}(this.remaining);c&&(t=c,this.capture(t))}const s=wp(e),l=wp(t);if(r.hasOwnProperty(s)){let c=r[s];Array.isArray(c)||(c=[c],r[s]=c),c.push(l)}else r[s]=l}parseParens(r){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Cd(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):r&&(l=ut);const c=this.parseChildren();e[l]=1===Object.keys(c).length?c[ut]:new yt([],c),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}capture(r){if(!this.consumeOptional(r))throw new Error(`Expected "${r}".`)}}class v_{constructor(r){this._root=r}get root(){return this._root.value}parent(r){const e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){const e=Ba(r,this._root);return e?e.children.map(t=>t.value):[]}firstChild(r){const e=Ba(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){const e=yd(r,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==r)}pathFromRoot(r){return yd(r,this._root).map(e=>e.value)}}function Ba(o,r){if(o===r.value)return r;for(const e of r.children){const t=Ba(o,e);if(t)return t}return null}function yd(o,r){if(o===r.value)return[r];for(const e of r.children){const t=yd(o,e);if(t.length)return t.unshift(r),t}return[]}class nr{constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oa(o){const r={};return o&&o.children.forEach(e=>r[e.value.outlet]=e),r}class vp extends v_{constructor(r,e){super(r),this.snapshot=e,Tp(this,r)}toString(){return this.snapshot.toString()}}function Ap(o,r){const e=function A_(o,r){const c=new pl([],{},{},"",{},ut,r,null,o.root,-1,{});return new T_("",new nr(c,[]))}(o,r),t=new ai([new Ia("",{})]),s=new ai({}),l=new ai({}),c=new ai({}),n=new ai(""),i=new Xr(t,s,c,n,l,ut,r,e.root);return i.snapshot=e.root,new vp(new nr(i,[]),e)}class Xr{constructor(r,e,t,s,l,c,n,i){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=l,this.outlet=c,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,tt.U)(r=>Ra(r)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,tt.U)(r=>Ra(r)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function xp(o,r="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==r)for(t=e.length-1;t>=1;){const s=e[t],l=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(l.component)break;t--}}return function x_(o){return o.reduce((r,e)=>({params:Object.assign(Object.assign({},r.params),e.params),data:Object.assign(Object.assign({},r.data),e.data),resolve:Object.assign(Object.assign({},r.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class pl{constructor(r,e,t,s,l,c,n,i,a,d,u){this.url=r,this.params=e,this.queryParams=t,this.fragment=s,this.data=l,this.outlet=c,this.component=n,this.routeConfig=i,this._urlSegment=a,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class T_ extends v_{constructor(r,e){super(e),this.url=r,Tp(this,e)}toString(){return qs(this._root)}}function Tp(o,r){r.value._routerState=o,r.children.forEach(e=>Tp(o,e))}function qs(o){const r=o.children.length>0?` { ${o.children.map(qs).join(", ")} } `:"";return`${o.value}${r}`}function Ep(o){if(o.snapshot){const r=o.snapshot,e=o._futureSnapshot;o.snapshot=e,qi(r.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),r.fragment!==e.fragment&&o.fragment.next(e.fragment),qi(r.params,e.params)||o.params.next(e.params),function Ns(o,r){if(o.length!==r.length)return!1;for(let e=0;eqi(e.parameters,r[t].parameters))}(o.url,r.url);return e&&!(!o.parent!=!r.parent)&&(!o.parent||fl(o.parent,r.parent))}function gl(o,r,e){if(e&&o.shouldReuseRoute(r.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=r.value;const s=function wd(o,r,e){return r.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return gl(o,t,s);return gl(o,t)})}(o,r,e);return new nr(t,s)}{if(o.shouldAttach(r.value)){const l=o.retrieve(r.value);if(null!==l){const c=l.route;return c.value._futureSnapshot=r.value,c.children=r.children.map(n=>gl(o,n)),c}}const t=function ml(o){return new Xr(new ai(o.url),new ai(o.params),new ai(o.queryParams),new ai(o.fragment),new ai(o.data),o.outlet,o.component,o)}(r.value),s=r.children.map(l=>gl(o,l));return new nr(t,s)}}function vd(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function _l(o){return"object"==typeof o&&null!=o&&o.outlets}function Us(o,r,e,t,s){let l={};return t&&fi(t,(c,n)=>{l[n]=Array.isArray(c)?c.map(i=>`${i}`):`${c}`}),new ka(e.root===o?r:bl(e.root,o,r),l,s)}function bl(o,r,e){const t={};return fi(o.children,(s,l)=>{t[l]=s===r?e:bl(s,r,e)}),new yt(o.segments,t)}class E_{constructor(r,e,t){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=t,r&&t.length>0&&vd(t[0]))throw new Error("Root segment cannot have matrix parameters");const s=t.find(_l);if(s&&s!==mp(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ad{constructor(r,e,t){this.segmentGroup=r,this.processChildren=e,this.index=t}}function H_(o,r,e){if(o||(o=new yt([],{})),0===o.segments.length&&o.hasChildren())return xd(o,r,e);const t=function sE(o,r,e){let t=0,s=r;const l={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return l;const c=o.segments[s],n=e[t];if(_l(n))break;const i=`${n}`,a=t0&&void 0===i)break;if(i&&a&&"object"==typeof a&&void 0===a.outlets){if(!Td(i,a,c))return l;t+=2}else{if(!Td(i,{},c))return l;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,r,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(s[c]=H_(o.children[c],r,l))}),fi(o.children,(l,c)=>{void 0===t[c]&&(s[c]=l)}),new yt(o.segments,s)}}function Cl(o,r,e){const t=o.segments.slice(0,r);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(r[t]=Cl(new yt([],{}),0,e))}),r}function Hp(o){const r={};return fi(o,(e,t)=>r[t]=`${e}`),r}function Td(o,r,e){return o==e.path&&qi(r,e.parameters)}class Lv{constructor(r,e,t,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(r){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,r),Ep(this.futureState.root),this.activateChildRoutes(e,t,r)}deactivateChildRoutes(r,e,t){const s=Oa(e);r.children.forEach(l=>{const c=l.value.outlet;this.deactivateRoutes(l,s[c],t),delete s[c]}),fi(s,(l,c)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(r,e,t){const s=r.value,l=e?e.value:null;if(s===l)if(s.component){const c=t.getContext(s.outlet);c&&this.deactivateChildRoutes(r,e,c.children)}else this.deactivateChildRoutes(r,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,l=Oa(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],s);if(t&&t.outlet){const c=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:c,route:r,contexts:n})}}deactivateRouteAndOutlet(r,e){const t=e.getContext(r.value.outlet),s=t&&r.value.component?t.children:e,l=Oa(r);for(const c of Object.keys(l))this.deactivateRouteAndItsChildren(l[c],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(r,e,t){const s=Oa(e);r.children.forEach(l=>{this.activateRoutes(l,s[l.value.outlet],t),this.forwardEvent(new f_(l.value.snapshot))}),r.children.length&&this.forwardEvent(new fp(r.value.snapshot))}activateRoutes(r,e,t){const s=r.value,l=e?e.value:null;if(Ep(s),s===l)if(s.component){const c=t.getOrCreateContext(s.outlet);this.activateChildRoutes(r,e,c.children)}else this.activateChildRoutes(r,e,t);else if(s.component){const c=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const n=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),c.children.onOutletReAttached(n.contexts),c.attachRef=n.componentRef,c.route=n.route.value,c.outlet&&c.outlet.attach(n.componentRef,n.route.value),Ep(n.route.value),this.activateChildRoutes(r,null,c.children)}else{const n=function jv(o){for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;c.attachRef=null,c.route=s,c.resolver=i,c.outlet&&c.outlet.activateWith(s,i),this.activateChildRoutes(r,null,c.children)}}else this.activateChildRoutes(r,null,t)}}class Pp{constructor(r,e){this.routes=r,this.module=e}}function ea(o){return"function"==typeof o}function vr(o){return o instanceof ka}const yl=Symbol("INITIAL_VALUE");function Ws(){return(0,pi.w)(o=>(0,ii.aj)(o.map(r=>r.pipe((0,Yt.q)(1),hi(yl)))).pipe(d_((r,e)=>{let t=!1;return e.reduce((s,l,c)=>s!==yl?s:(l===yl&&(t=!0),t||!1!==l&&c!==e.length-1&&!vr(l)?s:l),r)},yl),(0,bt.h)(r=>r!==yl),(0,tt.U)(r=>vr(r)?r:!0===r),(0,Yt.q)(1)))}class V_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new wl,this.attachRef=null}}class wl{constructor(){this.contexts=new Map}onChildOutletCreated(r,e){const t=this.getOrCreateContext(r);t.outlet=e,this.contexts.set(r,t)}onChildOutletDestroyed(r){const e=this.getContext(r);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const r=this.contexts;return this.contexts=new Map,r}onOutletReAttached(r){this.contexts=r}getOrCreateContext(r){let e=this.getContext(r);return e||(e=new V_,this.contexts.set(r,e)),e}getContext(r){return this.contexts.get(r)||null}}let Rp=(()=>{class o{constructor(e,t,s,l,c){this.parentContexts=e,this.location=t,this.resolver=s,this.changeDetector=c,this.activated=null,this._activatedRoute=null,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.attachEvents=new p.vpe,this.detachEvents=new p.vpe,this.name=l||ut,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const c=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Nv(e,n,this.location.injector);this.activated=this.location.createComponent(c,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(wl),p.Y36(p.s_b),p.Y36(p._Vd),p.$8M("name"),p.Y36(p.sBO))},o.\u0275dir=p.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class Nv{constructor(r,e,t){this.route=r,this.childContexts=e,this.parent=t}get(r,e){return r===Xr?this.route:r===wl?this.childContexts:this.parent.get(r,e)}}let Si=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=p.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&p._UZ(0,"router-outlet")},directives:[Rp],encapsulation:2}),o})();function Fa(o,r=""){for(let e=0;eMi(t)===r);return e.push(...o.filter(t=>Mi(t)!==r)),e}const Ed={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Sd(o,r,e){var t;if(""===r.path)return"full"===r.pathMatch&&(o.hasChildren()||e.length>0)?Object.assign({},Ed):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(r.matcher||xv)(e,o,r);if(!l)return Object.assign({},Ed);const c={};fi(l.posParams,(i,a)=>{c[a]=i.path});const n=l.consumed.length>0?Object.assign(Object.assign({},c),l.consumed[l.consumed.length-1].parameters):c;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:n,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function vl(o,r,e,t,s="corrected"){if(e.length>0&&function kp(o,r,e){return e.some(t=>Al(o,r,t)&&Mi(t)!==ut)}(o,e,t)){const c=new yt(r,function Uv(o,r,e,t){const s={};s[ut]=t,t._sourceSegment=o,t._segmentIndexShift=r.length;for(const l of e)if(""===l.path&&Mi(l)!==ut){const c=new yt([],{});c._sourceSegment=o,c._segmentIndexShift=r.length,s[Mi(l)]=c}return s}(o,r,t,new yt(e,o.children)));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:[]}}if(0===e.length&&function F_(o,r,e){return e.some(t=>Al(o,r,t))}(o,e,t)){const c=new yt(o.segments,function qv(o,r,e,t,s,l){const c={};for(const n of t)if(Al(o,e,n)&&!s[Mi(n)]){const i=new yt([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===l?o.segments.length:r.length,c[Mi(n)]=i}return Object.assign(Object.assign({},s),c)}(o,r,e,t,o.children,s));return c._sourceSegment=o,c._segmentIndexShift=r.length,{segmentGroup:c,slicedSegments:e}}const l=new yt(o.segments,o.children);return l._sourceSegment=o,l._segmentIndexShift=r.length,{segmentGroup:l,slicedSegments:e}}function Al(o,r,e){return(!(o.hasChildren()||r.length>0)||"full"!==e.pathMatch)&&""===e.path}function xl(o,r,e,t){return!!(Mi(o)===t||t!==ut&&Al(r,e,o))&&("**"===o.path||Sd(r,o,e).matched)}function Md(o,r,e){return 0===r.length&&!o.children[e]}class Hd{constructor(r){this.segmentGroup=r||null}}class Ip{constructor(r){this.urlTree=r}}function Dd(o){return new yi.y(r=>r.error(new Hd(o)))}function Vp(o){return new yi.y(r=>r.error(new Ip(o)))}function Pd(o){return new yi.y(r=>r.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${o}'`)))}class Bp{constructor(r,e,t,s,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=l,this.allowRedirects=!0,this.ngModule=r.get(p.h0i)}apply(){const r=vl(this.urlTree.root,[],[],this.config).segmentGroup,e=new yt(r.segments,r.children);return this.expandSegmentGroup(this.ngModule,this.config,e,ut).pipe((0,tt.U)(l=>this.createUrlTree(j_(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zi.K)(l=>{if(l instanceof Ip)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Hd?this.noMatchError(l):l}))}match(r){return this.expandSegmentGroup(this.ngModule,this.config,r.root,ut).pipe((0,tt.U)(s=>this.createUrlTree(j_(s),r.queryParams,r.fragment))).pipe((0,zi.K)(s=>{throw s instanceof Hd?this.noMatchError(s):s}))}noMatchError(r){return new Error(`Cannot match any routes. URL Segment: '${r.segmentGroup}'`)}createUrlTree(r,e,t){const s=r.segments.length>0?new yt([],{[ut]:r}):r;return new ka(s,e,t)}expandSegmentGroup(r,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(r,e,t).pipe((0,tt.U)(l=>new yt([],l))):this.expandSegment(r,t,e,t.segments,s,!0)}expandChildren(r,e,t){const s=[];for(const l of Object.keys(t.children))"primary"===l?s.unshift(l):s.push(l);return(0,Ti.D)(s).pipe((0,Bn.b)(l=>{const c=t.children[l],n=O_(e,l);return this.expandSegmentGroup(r,n,c,l).pipe((0,tt.U)(i=>({segment:i,outlet:l})))}),d_((l,c)=>(l[c.outlet]=c.segment,l),{}),function mv(o,r){const e=arguments.length>=2;return t=>t.pipe(o?(0,bt.h)((s,l)=>o(s,l,t)):gv.y,dd(1),e?(0,fv.d)(r):(0,pv.T)(()=>new lp.K))}())}expandSegment(r,e,t,s,l,c){return(0,Ti.D)(t).pipe((0,Bn.b)(n=>this.expandSegmentAgainstRoute(r,e,t,n,s,l,c).pipe((0,zi.K)(a=>{if(a instanceof Hd)return(0,ke.of)(null);throw a}))),(0,Ls.P)(n=>!!n),(0,zi.K)((n,i)=>{if(n instanceof lp.K||"EmptyError"===n.name){if(Md(e,s,l))return(0,ke.of)(new yt([],{}));throw new Hd(e)}throw n}))}expandSegmentAgainstRoute(r,e,t,s,l,c,n){return xl(s,e,l,c)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(r,e,s,l,c):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,e,t,s,l,c):Dd(e):Dd(e)}expandSegmentAgainstRouteUsingRedirect(r,e,t,s,l,c){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,t,s,c):this.expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,l,c)}expandWildCardWithParamsAgainstRouteUsingRedirect(r,e,t,s){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Vp(l):this.lineralizeSegments(t,l).pipe((0,Gi.zg)(c=>{const n=new yt(c,{});return this.expandSegment(r,n,e,c,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(r,e,t,s,l,c){const{matched:n,consumedSegments:i,lastChild:a,positionalParamSegments:d}=Sd(e,s,l);if(!n)return Dd(e);const u=this.applyRedirectCommands(i,s.redirectTo,d);return s.redirectTo.startsWith("/")?Vp(u):this.lineralizeSegments(s,u).pipe((0,Gi.zg)(g=>this.expandSegment(r,e,t,g.concat(l.slice(a)),c,!1)))}matchSegmentAgainstRoute(r,e,t,s,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.configLoader.load(r.injector,t)).pipe((0,tt.U)(g=>(t._loadedConfig=g,new yt(s,{})))):(0,ke.of)(new yt(s,{}));const{matched:c,consumedSegments:n,lastChild:i}=Sd(e,t,s);if(!c)return Dd(e);const a=s.slice(i);return this.getChildConfig(r,t,s).pipe((0,Gi.zg)(u=>{const g=u.module,b=u.routes,{segmentGroup:D,slicedSegments:q}=vl(e,n,a,b),se=new yt(D.segments,D.children);if(0===q.length&&se.hasChildren())return this.expandChildren(g,b,se).pipe((0,tt.U)(At=>new yt(n,At)));if(0===b.length&&0===q.length)return(0,ke.of)(new yt(n,{}));const De=Mi(t)===l;return this.expandSegment(g,se,b,q,De?ut:l,!0).pipe((0,tt.U)(Qe=>new yt(n.concat(Qe.segments),Qe.children)))}))}getChildConfig(r,e,t){return e.children?(0,ke.of)(new Pp(e.children,r)):e.loadChildren?void 0!==e._loadedConfig?(0,ke.of)(e._loadedConfig):this.runCanLoadGuards(r.injector,e,t).pipe((0,Gi.zg)(s=>s?this.configLoader.load(r.injector,e).pipe((0,tt.U)(l=>(e._loadedConfig=l,l))):function L_(o){return new yi.y(r=>r.error(gp(`Cannot load children because the guard of the route "path: '${o.path}'" returned false`)))}(e))):(0,ke.of)(new Pp([],r))}runCanLoadGuards(r,e,t){const s=e.canLoad;if(!s||0===s.length)return(0,ke.of)(!0);const l=s.map(c=>{const n=r.get(c);let i;if(function P_(o){return o&&ea(o.canLoad)}(n))i=n.canLoad(e,t);else{if(!ea(n))throw new Error("Invalid CanLoad guard");i=n(e,t)}return ir(i)});return(0,ke.of)(l).pipe(Ws(),(0,It.b)(c=>{if(!vr(c))return;const n=gp(`Redirecting to "${this.urlSerializer.serialize(c)}"`);throw n.url=c,n}),(0,tt.U)(c=>!0===c))}lineralizeSegments(r,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[ut])return Pd(r.redirectTo);s=s.children[ut]}}applyRedirectCommands(r,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),r,t)}applyRedirectCreatreUrlTree(r,e,t,s){const l=this.createSegmentGroup(r,e.root,t,s);return new ka(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){const t={};return fi(r,(s,l)=>{if("string"==typeof s&&s.startsWith(":")){const n=s.substring(1);t[l]=e[n]}else t[l]=s}),t}createSegmentGroup(r,e,t,s){const l=this.createSegments(r,e.segments,t,s);let c={};return fi(e.children,(n,i)=>{c[i]=this.createSegmentGroup(r,n,t,s)}),new yt(l,c)}createSegments(r,e,t,s){return e.map(l=>l.path.startsWith(":")?this.findPosParam(r,l,s):this.findOrReturn(l,t))}findPosParam(r,e,t){const s=t[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${r}'. Cannot find '${e.path}'.`);return s}findOrReturn(r,e){let t=0;for(const s of e){if(s.path===r.path)return e.splice(t),s;t++}return r}}function j_(o){const r={};for(const t of Object.keys(o.children)){const l=j_(o.children[t]);(l.segments.length>0||l.hasChildren())&&(r[t]=l)}return function Op(o){if(1===o.numberOfChildren&&o.children[ut]){const r=o.children[ut];return new yt(o.segments.concat(r.segments),r.children)}return o}(new yt(o.segments,r))}class N_{constructor(r){this.path=r,this.route=this.path[this.path.length-1]}}class Tl{constructor(r,e){this.component=r,this.route=e}}function z_(o,r,e){const t=o._root;return Sl(t,r?r._root:null,e,[t.value])}function El(o,r,e){const t=function G_(o){if(!o)return null;for(let r=o.parent;r;r=r.parent){const e=r.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(r);return(t?t.module.injector:e).get(o)}function Sl(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=Oa(r);return o.children.forEach(c=>{(function Yv(o,r,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=o.value,c=r?r.value:null,n=e?e.getContext(o.value.outlet):null;if(c&&l.routeConfig===c.routeConfig){const i=function q_(o,r,e){if("function"==typeof e)return e(o,r);switch(e){case"pathParamsChange":return!Gs(o.url,r.url);case"pathParamsOrQueryParamsChange":return!Gs(o.url,r.url)||!qi(o.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fl(o,r)||!qi(o.queryParams,r.queryParams);default:return!fl(o,r)}}(c,l,l.routeConfig.runGuardsAndResolvers);i?s.canActivateChecks.push(new N_(t)):(l.data=c.data,l._resolvedData=c._resolvedData),Sl(o,r,l.component?n?n.children:null:e,t,s),i&&n&&n.outlet&&n.outlet.isActivated&&s.canDeactivateChecks.push(new Tl(n.outlet.component,c))}else c&&Ml(r,n,s),s.canActivateChecks.push(new N_(t)),Sl(o,null,l.component?n?n.children:null:e,t,s)})(c,l[c.value.outlet],e,t.concat([c.value]),s),delete l[c.value.outlet]}),fi(l,(c,n)=>Ml(c,e.getContext(n),s)),s}function Ml(o,r,e){const t=Oa(o),s=o.value;fi(t,(l,c)=>{Ml(l,s.component?r?r.children.getContext(c):null:r,e)}),e.canDeactivateChecks.push(new Tl(s.component&&r&&r.outlet&&r.outlet.isActivated?r.outlet.component:null,s))}class lE{}function Zv(o){return new yi.y(r=>r.error(o))}class dE{constructor(r,e,t,s,l,c){this.rootComponentType=r,this.config=e,this.urlTree=t,this.url=s,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=c}recognize(){const r=vl(this.urlTree.root,[],[],this.config.filter(c=>void 0===c.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,r,ut);if(null===e)return null;const t=new pl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ut,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new nr(t,e),l=new T_(this.url,s);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(r){const e=r.value,t=xp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),r.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(r,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(r,e):this.processSegment(r,e,e.segments,t)}processChildren(r,e){const t=[];for(const l of Object.keys(e.children)){const c=e.children[l],n=O_(r,l),i=this.processSegmentGroup(n,c,l);if(null===i)return null;t.push(...i)}const s=Xv(t);return function uE(o){o.sort((r,e)=>r.value.outlet===ut?-1:e.value.outlet===ut?1:r.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(r,e,t,s){for(const l of r){const c=this.processSegmentAgainstRoute(l,e,t,s);if(null!==c)return c}return Md(e,t,s)?[]:null}processSegmentAgainstRoute(r,e,t,s){if(r.redirectTo||!xl(r,e,t,s))return null;let l,c=[],n=[];if("**"===r.path){const b=t.length>0?mp(t).parameters:{};l=new pl(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(r),Mi(r),r.component,r,eA(e),Rd(e)+t.length,Lp(r))}else{const b=Sd(e,r,t);if(!b.matched)return null;c=b.consumedSegments,n=t.slice(b.lastChild),l=new pl(c,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(r),Mi(r),r.component,r,eA(e),Rd(e)+c.length,Lp(r))}const i=function hE(o){return o.children?o.children:o.loadChildren?o._loadedConfig.routes:[]}(r),{segmentGroup:a,slicedSegments:d}=vl(e,c,n,i.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===d.length&&a.hasChildren()){const b=this.processChildren(i,a);return null===b?null:[new nr(l,b)]}if(0===i.length&&0===d.length)return[new nr(l,[])];const u=Mi(r)===s,g=this.processSegment(i,a,d,u?ut:s);return null===g?null:[new nr(l,g)]}}function pE(o){const r=o.value.routeConfig;return r&&""===r.path&&void 0===r.redirectTo}function Xv(o){const r=[],e=new Set;for(const t of o){if(!pE(t)){r.push(t);continue}const s=r.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):r.push(t)}for(const t of e){const s=Xv(t.children);r.push(new nr(t.value,s))}return r.filter(t=>!e.has(t))}function eA(o){let r=o;for(;r._sourceSegment;)r=r._sourceSegment;return r}function Rd(o){let r=o,e=r._segmentIndexShift?r._segmentIndexShift:0;for(;r._sourceSegment;)r=r._sourceSegment,e+=r._segmentIndexShift?r._segmentIndexShift:0;return e-1}function La(o){return o.data||{}}function Lp(o){return o.resolve||{}}function Np(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}function Z_(o){return(0,pi.w)(r=>{const e=o(r);return e?(0,Ti.D)(e).pipe((0,tt.U)(()=>r)):(0,ke.of)(r)})}class eb extends class kd{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}}{}const tb=new p.OlP("ROUTES");class nA{constructor(r,e,t,s){this.injector=r,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=s}load(r,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe((0,tt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const c=l.create(r);return new Pp(Tv(c.injector.get(tb,void 0,p.XFs.Self|p.XFs.Optional)).map(B_),c)}),(0,zi.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new lv.c(s,()=>new He.xQ).pipe((0,u_.x)()),e._loader$}loadModuleFactory(r){return ir(r()).pipe((0,Gi.zg)(e=>e instanceof p.YKP?(0,ke.of)(e):(0,Ti.D)(this.compiler.compileModuleAsync(e))))}}class rA{shouldProcessUrl(r){return!0}extract(r){return r}merge(r,e){return r}}function zp(o){throw o}function aA(o,r,e){return r.parse("/")}function sA(o,r){return(0,ke.of)(null)}const oA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gp={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ii=(()=>{class o{constructor(e,t,s,l,c,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=l,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=zp,this.malformedUriErrorHandler=aA,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sA,afterPreactivation:sA},this.urlHandlingStrategy=new rA,this.routeReuseStrategy=new eb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=c.get(p.h0i),this.console=c.get(p.c2e);const u=c.get(p.R0b);this.isNgZoneEnabled=u instanceof p.R0b&&p.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function Ev(){return new ka(new yt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new nA(c,n,g=>this.triggerEvent(new ud(g)),g=>this.triggerEvent(new p_(g))),this.routerState=Ap(this.currentUrlTree,this.rootComponentType),this.transitions=new ai({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,bt.h)(s=>0!==s.id),(0,tt.U)(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,pi.w)(s=>{let l=!1,c=!1;return(0,ke.of)(s).pipe((0,It.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.currentRawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,pi.w)(n=>{const i=this.browserUrlTree.toString(),a=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return Id(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,ke.of)(n).pipe((0,pi.w)(u=>{const g=this.transitions.getValue();return t.next(new dp(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),g!==this.transitions.getValue()?Ea.E:Promise.resolve(u)}),function $v(o,r,e,t){return(0,pi.w)(s=>function Wv(o,r,e,t,s){return new Bp(o,r,e,t,s).apply()}(o,r,e,s.extractedUrl,t).pipe((0,tt.U)(l=>Object.assign(Object.assign({},s),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,It.b)(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function tA(o,r,e,t,s){return(0,Gi.zg)(l=>function cE(o,r,e,t,s="emptyOnly",l="legacy"){try{const c=new dE(o,r,e,t,s,l).recognize();return null===c?Zv(new lE):(0,ke.of)(c)}catch(c){return Zv(c)}}(o,r,l.urlAfterRedirects,e(l.urlAfterRedirects),t,s).pipe((0,tt.U)(c=>Object.assign(Object.assign({},l),{targetSnapshot:c}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,It.b)(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const g=new bv(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(g)}));if(a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:g,extractedUrl:b,source:D,restoredState:q,extras:se}=n,De=new dp(g,this.serializeUrl(b),D,q);t.next(De);const rt=Ap(b,this.rootComponentType).snapshot;return(0,ke.of)(Object.assign(Object.assign({},n),{targetSnapshot:rt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},se),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ea.E}),Z_(n=>{const{targetSnapshot:i,id:a,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:g,replaceUrl:b}}=n;return this.hooks.beforePreactivation(i,{navigationId:a,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!g,replaceUrl:!!b})}),(0,It.b)(n=>{const i=new Cv(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,tt.U)(n=>Object.assign(Object.assign({},n),{guards:z_(n.targetSnapshot,n.currentSnapshot,this.rootContexts)})),function U_(o,r){return(0,Gi.zg)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:l,canDeactivateChecks:c}}=e;return 0===c.length&&0===l.length?(0,ke.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function W_(o,r,e,t){return(0,Ti.D)(o).pipe((0,Gi.zg)(s=>function Y_(o,r,e,t,s){const l=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,ke.of)(!0);const c=l.map(n=>{const i=El(n,r,s);let a;if(function I_(o){return o&&ea(o.canDeactivate)}(i))a=ir(i.canDeactivate(o,r,e,t));else{if(!ea(i))throw new Error("Invalid CanDeactivate guard");a=ir(i(o,r,e,t))}return a.pipe((0,Ls.P)())});return(0,ke.of)(c).pipe(Ws())}(s.component,s.route,e,r,t)),(0,Ls.P)(s=>!0!==s,!0))}(c,t,s,o).pipe((0,Gi.zg)(n=>n&&function D_(o){return"boolean"==typeof o}(n)?function $_(o,r,e,t){return(0,Ti.D)(r).pipe((0,Bn.b)(s=>ds(function Jv(o,r){return null!==o&&r&&r(new yv(o)),(0,ke.of)(!0)}(s.route.parent,t),function Q_(o,r){return null!==o&&r&&r(new wv(o)),(0,ke.of)(!0)}(s.route,t),function oE(o,r,e){const t=r[r.length-1],l=r.slice(0,r.length-1).reverse().map(c=>function Qv(o){const r=o.routeConfig?o.routeConfig.canActivateChild:null;return r&&0!==r.length?{node:o,guards:r}:null}(c)).filter(c=>null!==c).map(c=>Es(()=>{const n=c.guards.map(i=>{const a=El(i,c.node,e);let d;if(function k_(o){return o&&ea(o.canActivateChild)}(a))d=ir(a.canActivateChild(t,o));else{if(!ea(a))throw new Error("Invalid CanActivateChild guard");d=ir(a(t,o))}return d.pipe((0,Ls.P)())});return(0,ke.of)(n).pipe(Ws())}));return(0,ke.of)(l).pipe(Ws())}(o,s.path,e),function Kv(o,r,e){const t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(l=>Es(()=>{const c=El(l,r,e);let n;if(function R_(o){return o&&ea(o.canActivate)}(c))n=ir(c.canActivate(r,o));else{if(!ea(c))throw new Error("Invalid CanActivate guard");n=ir(c(r,o))}return n.pipe((0,Ls.P)())}));return(0,ke.of)(s).pipe(Ws())}(o,s.route,e))),(0,Ls.P)(s=>!0!==s,!0))}(t,l,o,r):(0,ke.of)(n)),(0,tt.U)(n=>Object.assign(Object.assign({},e),{guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,It.b)(n=>{if(vr(n.guardsResult)){const a=gp(`Redirecting to "${this.serializeUrl(n.guardsResult)}"`);throw a.url=n.guardsResult,a}const i=new hp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,bt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,""),!1)),Z_(n=>{if(n.guards.canActivateChecks.length)return(0,ke.of)(n).pipe((0,It.b)(i=>{const a=new pp(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}),(0,pi.w)(i=>{let a=!1;return(0,ke.of)(i).pipe(function iA(o,r){return(0,Gi.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let l=0;return(0,Ti.D)(s).pipe((0,Bn.b)(c=>function jp(o,r,e,t){return function J_(o,r,e,t){const s=Np(o);if(0===s.length)return(0,ke.of)({});const l={};return(0,Ti.D)(s).pipe((0,Gi.zg)(c=>function K_(o,r,e,t){const s=El(o,r,t);return ir(s.resolve?s.resolve(r,e):s(r,e))}(o[c],r,e,t).pipe((0,It.b)(n=>{l[c]=n}))),dd(1),(0,Gi.zg)(()=>Np(l).length===s.length?(0,ke.of)(l):Ea.E))}(o._resolve,o,r,t).pipe((0,tt.U)(l=>(o._resolvedData=l,o.data=Object.assign(Object.assign({},o.data),xp(o,e).resolve),null)))}(c.route,t,o,r)),(0,It.b)(()=>l++),dd(1),(0,Gi.zg)(c=>l===s.length?(0,ke.of)(e):Ea.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,It.b)({next:()=>a=!0,complete:()=>{a||(this.restoreHistory(i),this.cancelNavigationTransition(i,"At least one route resolver didn't emit any value."))}}))}),(0,It.b)(i=>{const a=new h_(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(a)}))}),Z_(n=>{const{targetSnapshot:i,id:a,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:g,replaceUrl:b}}=n;return this.hooks.afterPreactivation(i,{navigationId:a,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!g,replaceUrl:!!b})}),(0,tt.U)(n=>{const i=function rr(o,r,e){const t=gl(o,r._root,e?e._root:void 0);return new vp(t,r)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return Object.assign(Object.assign({},n),{targetRouterState:i})}),(0,It.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,r,e)=>(0,tt.U)(t=>(new Lv(r,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,It.b)({next(){l=!0},complete(){l=!0}}),ed(()=>{var n;l||c||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`),(null===(n=this.currentNavigation)||void 0===n?void 0:n.id)===s.id&&(this.currentNavigation=null)}),(0,zi.K)(n=>{if(c=!0,function hl(o){return o&&o[Av]}(n)){const i=vr(n.url);i||(this.navigated=!0,this.restoreHistory(s,!0));const a=new up(s.id,this.serializeUrl(s.extractedUrl),n.message);t.next(a),i?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Id(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const i=new _v(s.id,this.serializeUrl(s.extractedUrl),n);t.next(i);try{s.resolve(this.errorHandler(n))}catch(a){s.reject(a)}}return Ea.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var s;const l={replaceUrl:!0},c=(null===(s=e.state)||void 0===s?void 0:s.navigationId)?e.state:null;if(c){const i=Object.assign({},c);delete i.navigationId,delete i.\u0275routerPageId,0!==Object.keys(i).length&&(l.state=i)}const n=this.parseUrl(e.url);this.scheduleNavigation(n,t,c,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Fa(e),this.config=e.map(B_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:l,fragment:c,queryParamsHandling:n,preserveFragment:i}=t,a=s||this.routerState.root,d=i?this.currentUrlTree.fragment:c;let u=null;switch(n){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=l||null}return null!==u&&(u=this.removeEmptyProps(u)),function Ov(o,r,e,t,s){if(0===e.length)return Us(r.root,r.root,r,t,s);const l=function Fv(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new E_(!0,0,o);let r=0,e=!1;const t=o.reduce((s,l,c)=>{if("object"==typeof l&&null!=l){if(l.outlets){const n={};return fi(l.outlets,(i,a)=>{n[a]="string"==typeof i?i.split("/"):i}),[...s,{outlets:n}]}if(l.segmentPath)return[...s,l.segmentPath]}return"string"!=typeof l?[...s,l]:0===c?(l.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?r++:""!=n&&s.push(n))}),s):[...s,l]},[]);return new E_(e,r,t)}(e);if(l.toRoot())return Us(r.root,new yt([],{}),r,t,s);const c=function S_(o,r,e){if(o.isAbsolute)return new Ad(r.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new Ad(l,l===r.root,0)}const t=vd(o.commands[0])?0:1;return function Sp(o,r,e){let t=o,s=r,l=e;for(;l>s;){if(l-=s,t=t.parent,!t)throw new Error("Invalid number of '../'");s=t.segments.length}return new Ad(t,!1,s-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,o.numberOfDoubleDots)}(l,r,o),n=c.processChildren?xd(c.segmentGroup,c.index,l.commands):H_(c.segmentGroup,c.index,l.commands);return Us(c.segmentGroup,n,r,t,s)}(a,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=vr(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function en(o){for(let r=0;r{const l=e[s];return null!=l&&(t[s]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new js(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,l,c){var n,i,a;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Id(t)&&d&&!Id(d.source),g=d.rawUrl.toString()===e.toString(),b=d.id===(null===(n=this.currentNavigation)||void 0===n?void 0:n.id);if(u&&g&&b)return Promise.resolve(!0);let q,se,De;c?(q=c.resolve,se=c.reject,De=c.promise):De=new Promise((At,Nn)=>{q=At,se=Nn});const rt=++this.navigationId;let Qe;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),Qe=s&&s.\u0275routerPageId?s.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(a=this.browserPageId)&&void 0!==a?a:0)+1):Qe=0,this.setTransition({id:rt,targetPageId:Qe,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:q,reject:se,promise:De,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),De.catch(At=>Promise.reject(At))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",l):this.location.go(s,"",l)}restoreHistory(e,t=!1){var s,l;if("computed"===this.canceledNavigationResolution){const c=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===c?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===c&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(c)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const s=new up(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){p.$Z()},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();function Id(o){return"imperative"!==o}class Wp{}class $p{preload(r,e){return(0,ke.of)(null)}}let Qp=(()=>{class o{constructor(e,t,s,l){this.router=e,this.injector=s,this.preloadingStrategy=l,this.loader=new nA(s,t,i=>e.triggerEvent(new ud(i)),i=>e.triggerEvent(new p_(i)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,bt.h)(e=>e instanceof js),(0,Bn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(p.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const c=l._loadedConfig;s.push(this.processRoutes(c.module,c.routes))}else l.loadChildren&&!l.canLoad?s.push(this.preloadConfig(e,l)):l.children&&s.push(this.processRoutes(e,l.children));return(0,Ti.D)(s).pipe((0,Cc.J)(),(0,tt.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,Gi.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Ii),p.LFG(p.Sil),p.LFG(p.zs3),p.LFG(Wp))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),Yp=(()=>{class o{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof dp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof js&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof g_&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new g_(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){p.$Z()},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const Ar=new p.OlP("ROUTER_CONFIGURATION"),Cn=new p.OlP("ROUTER_FORROOT_GUARD"),cA=[T.Ye,{provide:C_,useClass:Va},{provide:Ii,useFactory:function hA(o,r,e,t,s,l,c={},n,i){const a=new Ii(null,o,r,e,t,s,Tv(l));return n&&(a.urlHandlingStrategy=n),i&&(a.routeReuseStrategy=i),function _E(o,r){o.errorHandler&&(r.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(r.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(r.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(r.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(r.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(r.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(r.canceledNavigationResolution=o.canceledNavigationResolution)}(c,a),c.enableTracing&&a.events.subscribe(d=>{var u,g;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(g=console.groupEnd)||void 0===g||g.call(console)}),a},deps:[C_,wl,T.Ye,p.zs3,p.Sil,tb,Ar,[class fE{},new p.FiY],[class X_{},new p.FiY]]},wl,{provide:Xr,useFactory:function rb(o){return o.routerState.root},deps:[Ii]},Qp,$p,class lA{preload(r,e){return e().pipe((0,zi.K)(()=>(0,ke.of)(null)))}},{provide:Ar,useValue:{enableTracing:!1}}];function mE(){return new p.PXZ("Router",Ii)}let Jp=(()=>{class o{constructor(e,t){}static forRoot(e,t){return{ngModule:o,providers:[cA,Kp(e),{provide:Cn,useFactory:uA,deps:[[Ii,new p.FiY,new p.tp0]]},{provide:Ar,useValue:t||{}},{provide:T.S$,useFactory:dA,deps:[T.lw,[new p.tBr(T.mr),new p.FiY],Ar]},{provide:Yp,useFactory:nb,deps:[Ii,T.EM,Ar]},{provide:Wp,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:$p},{provide:p.PXZ,multi:!0,useFactory:mE},[Vd,{provide:p.ip1,multi:!0,useFactory:pA,deps:[Vd]},{provide:Zp,useFactory:fA,deps:[Vd]},{provide:p.tb,multi:!0,useExisting:Zp}]]}}static forChild(e){return{ngModule:o,providers:[Kp(e)]}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Cn,8),p.LFG(Ii,8))},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})();function nb(o,r,e){return e.scrollOffset&&r.setOffset(e.scrollOffset),new Yp(o,r,e)}function dA(o,r,e={}){return e.useHash?new T.Do(o,r):new T.b0(o,r)}function uA(o){return"guarded"}function Kp(o){return[{provide:p.deG,multi:!0,useValue:o},{provide:tb,multi:!0,useValue:o}]}let Vd=(()=>{class o{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const s=new Promise(n=>t=n),l=this.injector.get(Ii),c=this.injector.get(Ar);return"disabled"===c.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===c.initialNavigation||"enabledBlocking"===c.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,ke.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),s})}bootstrapListener(e){const t=this.injector.get(Ar),s=this.injector.get(Qp),l=this.injector.get(Yp),c=this.injector.get(Ii),n=this.injector.get(p.z2F);e===n.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&c.initialNavigation(),s.setUpPreloading(),l.init(),c.resetRootComponentType(n.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.zs3))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();function pA(o){return o.appInitializer.bind(o)}function fA(o){return o.bootstrapListener.bind(o)}const Zp=new p.OlP("Router Initializer");var Bd=E(6114);let Xp=(()=>{class o{constructor(e,t,s,l,c){this.injector=e,this.store=t,this.dialog=s,this.route=l,this.oauthService=c,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(Ii),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),c=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(c.prompt="consent"),sessionStorage.getItem("mfa_route")&&(c.acr_values="https://refeds.org/profile/mfa",c.prompt="login",c.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,customQueryParams:c}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let s=null;return e.forEach(l=>{const c=l.split("=");"idpFilter"===c[0]&&t[c[1]]&&(this.filterShortname=c[1],s=t[c[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,bt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let l=[];s&&(l=s.split("&"));const c={};return l.forEach(n=>{const i=n.split("=");c[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),c.idpFilter&&(this.filterShortname=String(c.idpFilter)),this.router.navigate([t],{queryParams:c,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,bt.h)(e=>e instanceof js)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(s=>!!s||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,c)=>c("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.zs3),p.LFG(Di),p.LFG(Ms),p.LFG(Xr),p.LFG(Bd.Ct))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ef=(()=>{class o{constructor(e,t,s,l,c,n){this.authService=e,this.storeService=t,this.authResolver=s,this.authzService=l,this.dialog=c,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Fs();this.dialog.open(Yy,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const s of e){const l=s.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Xp),p.LFG(Di),p.LFG(Of),p.LFG(Wi),p.LFG(Ms),p.LFG(Ii))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mA=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(ze),p.LFG(Tn))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),_A=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ss))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.TgZ(6,"div",2),p.TgZ(7,"div",3),p.TgZ(8,"button",4),p.NdJ("click",function(){return t.close()}),p._uU(9),p.ALo(10,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(1),p.Oqu(p.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),p.xp6(3),p.hij(" ",p.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),p.xp6(5),p.hij(" ",p.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Bc,Rh,fm,qc],pipes:[Zr],styles:[""]}),o})(),bA=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),sb=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new p.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,l,c){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===l&&void 0!==s?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(bn))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),tf=(()=>{class o{constructor(e,t,s,l,c,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=l,this.dialog=c,this.initAuthService=n}intercept(e,t){const s=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Fs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(_A,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ed(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),c="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,It.b)(n=>{n instanceof y.Zn&&c&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,ll._)(n):l?void this.notificator.showRPCError(i):(0,ll._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let s;console.error(e);const l=e.error;if(l.errorId&&(s=l),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Xp),p.LFG(bA),p.LFG(sb),p.LFG(Di),p.LFG(Ms),p.LFG(ef))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})(),CA=(()=>{class o{constructor(e,t,s,l){this.http=e,this.notificator=t,this.authService=s,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,zi.K)(l=>this.formatErrors(l,s,null,t)))}put(e,t={},s=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);return this.http.put(l,c,{headers:this.getHeaders()}).pipe((0,zi.K)(n=>this.formatErrors(n,l,c,s)))}post(e,t={},s=!0){const l=`${this.getApiUrl()}${e}`,c=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,c,{headers:n}).pipe((0,zi.K)(i=>this.formatErrors(i,l,c,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,zi.K)(l=>this.formatErrors(l,s,null,t)))}formatErrors(e,t,s,l){const c=e.error;return c.call=t,c.payload=s,l&&this.notificator.showRPCError(e.error),(0,ll._)(c)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(sb),p.LFG(Xp),p.LFG(Di))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ob=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),s=navigator.languages.map(n=>n.split("-")[0]),l=location.search.substring(1).split("&");let c=null;for(const n of l){const i=n.split("=");"lang"===i[0]&&(c=i[1])}return c&&t.includes(c)?c:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Xr),p.LFG(Di))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const CE=["*",[["mat-toolbar-row"]]],yE=["*","mat-toolbar-row"],wE=$r(class{constructor(o){this._elementRef=o}});let yA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),o})(),Od=(()=>{class o extends wE{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(Je),p.Y36(T.K0))},o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&p.Suo(s,yA,5),2&e){let l;p.iGM(l=p.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&p.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[p.qOj],ngContentSelectors:yE,decls:2,vars:0,template:function(e,t){1&e&&(p.F$t(CE),p.Hsn(0),p.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),o})(),lb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne],Ne]}),o})();function cb(o,r){1&o&&(p.TgZ(0,"div",10),p.TgZ(1,"span",11),p._uU(2," ~ \u{1f5f2}\xa0 "),p.qZA(),p.TgZ(3,"span",12),p._uU(4," DEVEL "),p.qZA(),p.TgZ(5,"span",11),p._uU(6," \xa0\u{1f5f2} ~ "),p.qZA(),p.qZA())}const ja=function(o){return{background:o}},Fd=function(o){return{color:o}};let nf=(()=>{class o{constructor(e,t,s,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=l,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Di),p.Y36(Tn),p.Y36(ob),p.Y36(bn))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(p.TgZ(0,"mat-toolbar",0),p.TgZ(1,"div",1),p._UZ(2,"a",2),p.TgZ(3,"p",3),p._uU(4),p.qZA(),p.qZA(),p.YNc(5,cb,7,0,"div",4),p.TgZ(6,"div",5),p.TgZ(7,"button",6),p.TgZ(8,"mat-icon",7),p._uU(9," language "),p.qZA(),p.qZA(),p.TgZ(10,"mat-menu",null,8),p.TgZ(12,"button",9),p.NdJ("click",function(){return t.changeLanguage()}),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.qZA(),p.qZA(),p.qZA()),2&e){const s=p.MAs(11);p.Q6J("ngStyle",p.VKq(11,ja,t.bgColor)),p.xp6(2),p.Q6J("innerHTML",t.logo,p.oJD),p.xp6(1),p.Q6J("ngStyle",p.VKq(13,Fd,t.textColor)),p.xp6(1),p.Oqu(t.label),p.xp6(1),p.Q6J("ngIf",t.isDevel),p.xp6(1),p.Q6J("ngStyle",p.VKq(15,Fd,t.textColor)),p.xp6(1),p.Q6J("matMenuTriggerFor",s),p.xp6(1),p.Q6J("ngStyle",p.VKq(17,Fd,t.iconColor)),p.xp6(5),p.hij(" ",p.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[Od,T.PC,T.O5,qc,i_,ap,Gw,Xc],pipes:[Zr],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),o})(),Ld=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.Qsj),p.Y36(p.SBq))},o.\u0275dir=p.lG2({type:o}),o})(),Na=(()=>{class o extends Ld{}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275dir=p.lG2({type:o,features:[p.qOj]}),o})();const gi=new p.OlP("NgValueAccessor"),AE={provide:gi,useExisting:(0,p.Gpc)(()=>jd),multi:!0},TE=new p.OlP("CompositionEventMode");let jd=(()=>{class o extends Ld{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xE(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.Qsj),p.Y36(p.SBq),p.Y36(TE,8))},o.\u0275dir=p.lG2({type:o,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(e,t){1&e&&p.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[p._Bn([AE]),p.qOj]}),o})();function xr(o){return null==o||0===o.length}function db(o){return null!=o&&"number"==typeof o.length}const si=new p.OlP("NgValidators"),ta=new p.OlP("NgAsyncValidators"),wA=/^(?=.{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 Qs{static min(r){return function af(o){return r=>{if(xr(r.value)||xr(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e{if(xr(r.value)||xr(o))return null;const e=parseFloat(r.value);return!isNaN(e)&&e>o?{max:{max:o,actual:r.value}}:null}}(r)}static required(r){return ub(r)}static requiredTrue(r){return function hb(o){return!0===o.value?null:{required:!0}}(r)}static email(r){return function lf(o){return xr(o.value)||wA.test(o.value)?null:{email:!0}}(r)}static minLength(r){return function Rl(o){return r=>xr(r.value)||!db(r.value)?null:r.value.lengthdb(r.value)&&r.value.length>o?{maxlength:{requiredLength:o,actualLength:r.value.length}}:null}(r)}static pattern(r){return function cf(o){if(!o)return za;let r,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),r=new RegExp(e)):(e=o.toString(),r=o),t=>{if(xr(t.value))return null;const s=t.value;return r.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(r)}static nullValidator(r){return null}static compose(r){return bb(r)}static composeAsync(r){return Cb(r)}}function ub(o){return xr(o.value)?{required:!0}:null}function za(o){return null}function pb(o){return null!=o}function fb(o){const r=(0,p.QGY)(o)?(0,Ti.D)(o):o;return(0,p.CqO)(r),r}function gb(o){let r={};return o.forEach(e=>{r=null!=e?Object.assign(Object.assign({},r),e):r}),0===Object.keys(r).length?null:r}function mb(o,r){return r.map(e=>e(o))}function _b(o){return o.map(r=>function EE(o){return!o.validate}(r)?r:e=>r.validate(e))}function bb(o){if(!o)return null;const r=o.filter(pb);return 0==r.length?null:function(e){return gb(mb(e,r))}}function df(o){return null!=o?bb(_b(o)):null}function Cb(o){if(!o)return null;const r=o.filter(pb);return 0==r.length?null:function(e){return Hs(mb(e,r).map(fb)).pipe((0,tt.U)(gb))}}function uf(o){return null!=o?Cb(_b(o)):null}function yb(o,r){return null===o?[r]:Array.isArray(o)?[...o,r]:[o,r]}function wb(o){return o._rawValidators}function vb(o){return o._rawAsyncValidators}function Ab(o){return o?Array.isArray(o)?o:[o]:[]}function hf(o,r){return Array.isArray(o)?o.includes(r):o===r}function AA(o,r){const e=Ab(r);return Ab(o).forEach(s=>{hf(e,s)||e.push(s)}),e}function xA(o,r){return Ab(r).filter(e=>!hf(o,e))}class TA{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(r){this._rawValidators=r||[],this._composedValidatorFn=df(this._rawValidators)}_setAsyncValidators(r){this._rawAsyncValidators=r||[],this._composedAsyncValidatorFn=uf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(r){this._onDestroyCallbacks.push(r)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(r=>r()),this._onDestroyCallbacks=[]}reset(r){this.control&&this.control.reset(r)}hasError(r,e){return!!this.control&&this.control.hasError(r,e)}getError(r,e){return this.control?this.control.getError(r,e):null}}class ar extends TA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ui extends TA{get formDirective(){return null}get path(){return null}}class EA{constructor(r){this._cd=r}is(r){var e,t,s;return"submitted"===r?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===s?void 0:s[r])}}let h=(()=>{class o extends EA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(ar,2))},o.\u0275dir=p.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[p.qOj]}),o})(),f=(()=>{class o extends EA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ui,10))},o.\u0275dir=p.lG2({type:o,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&p.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[p.qOj]}),o})();function ge(o,r){return[...r.path,o]}function Le(o,r){Tr(o,r),r.valueAccessor.writeValue(o.value),function pf(o,r){r.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Nd(o,r)})}(o,r),function gf(o,r){const e=(t,s)=>{r.valueAccessor.writeValue(t),s&&r.viewToModelUpdate(t)};o.registerOnChange(e),r._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,r),function ff(o,r){r.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Nd(o,r),"submit"!==o.updateOn&&o.markAsTouched()})}(o,r),function tn(o,r){if(r.valueAccessor.setDisabledState){const e=t=>{r.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),r._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,r)}function ot(o,r,e=!0){const t=()=>{};r.valueAccessor&&(r.valueAccessor.registerOnChange(t),r.valueAccessor.registerOnTouched(t)),Ys(o,r),o&&(r._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function vt(o,r){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(r)})}function Tr(o,r){const e=wb(o);null!==r.validator?o.setValidators(yb(e,r.validator)):"function"==typeof e&&o.setValidators([e]);const t=vb(o);null!==r.asyncValidator?o.setAsyncValidators(yb(t,r.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();vt(r._rawValidators,s),vt(r._rawAsyncValidators,s)}function Ys(o,r){let e=!1;if(null!==o){if(null!==r.validator){const s=wb(o);if(Array.isArray(s)&&s.length>0){const l=s.filter(c=>c!==r.validator);l.length!==s.length&&(e=!0,o.setValidators(l))}}if(null!==r.asyncValidator){const s=vb(o);if(Array.isArray(s)&&s.length>0){const l=s.filter(c=>c!==r.asyncValidator);l.length!==s.length&&(e=!0,o.setAsyncValidators(l))}}}const t=()=>{};return vt(r._rawValidators,t),vt(r._rawAsyncValidators,t),e}function Nd(o,r){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),r.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function zd(o,r){Tr(o,r)}function SA(o,r){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(r,e.currentValue)}function SE(o,r){o._syncPendingControls(),r.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function MA(o,r){if(!r)return null;let e,t,s;return Array.isArray(r),r.forEach(l=>{l.constructor===jd?e=l:function FM(o){return Object.getPrototypeOf(o.constructor)===Na}(l)?t=l:s=l}),s||t||e||null}function HA(o,r){const e=o.indexOf(r);e>-1&&o.splice(e,1)}const bf="VALID",Tb="INVALID",Gd="PENDING",Cf="DISABLED";function PA(o){return(Eb(o)?o.validators:o)||null}function ME(o){return Array.isArray(o)?df(o):o||null}function RA(o,r){return(Eb(r)?r.asyncValidators:o)||null}function HE(o){return Array.isArray(o)?uf(o):o||null}function Eb(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}const kA=o=>o instanceof yf,Sb=o=>o instanceof Mb,DE=o=>o instanceof IE;function PE(o){return kA(o)?o.value:o.getRawValue()}function RE(o,r){const e=Sb(o),t=o.controls;if(!(e?Object.keys(t):t).length)throw new p.vHH(1e3,"");if(!t[r])throw new p.vHH(1001,"")}function kE(o,r){Sb(o),o._forEachChild((t,s)=>{if(void 0===r[s])throw new p.vHH(1002,"")})}class IA{constructor(r,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=r,this._rawAsyncValidators=e,this._composedValidatorFn=ME(this._rawValidators),this._composedAsyncValidatorFn=HE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(r){this._rawValidators=this._composedValidatorFn=r}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}get parent(){return this._parent}get valid(){return this.status===bf}get invalid(){return this.status===Tb}get pending(){return this.status==Gd}get disabled(){return this.status===Cf}get enabled(){return this.status!==Cf}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(r){this._rawValidators=r,this._composedValidatorFn=ME(r)}setAsyncValidators(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=HE(r)}addValidators(r){this.setValidators(AA(r,this._rawValidators))}addAsyncValidators(r){this.setAsyncValidators(AA(r,this._rawAsyncValidators))}removeValidators(r){this.setValidators(xA(r,this._rawValidators))}removeAsyncValidators(r){this.setAsyncValidators(xA(r,this._rawAsyncValidators))}hasValidator(r){return hf(this._rawValidators,r)}hasAsyncValidator(r){return hf(this._rawAsyncValidators,r)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(r={}){this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(r=>r.markAllAsTouched())}markAsUntouched(r={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}markAsDirty(r={}){this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}markAsPristine(r={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}markAsPending(r={}){this.status=Gd,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}disable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=Cf,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(r={}){const e=this._parentMarkedDirty(r.onlySelf);this.status=bf,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(r){this._parent=r}updateValueAndValidity(r={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===bf||this.status===Gd)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}_updateTreeValidity(r={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(r)),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Cf:bf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(r){if(this.asyncValidator){this.status=Gd,this._hasOwnPendingAsyncValidator=!0;const e=fb(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:r})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(r,e={}){this.errors=r,this._updateControlsErrors(!1!==e.emitEvent)}get(r){return function LM(o,r,e){if(null==r||(Array.isArray(r)||(r=r.split(e)),Array.isArray(r)&&0===r.length))return null;let t=o;return r.forEach(s=>{t=Sb(t)?t.controls.hasOwnProperty(s)?t.controls[s]:null:DE(t)&&t.at(s)||null}),t}(this,r,".")}getError(r,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[r]:null}hasError(r,e){return!!this.getError(r,e)}get root(){let r=this;for(;r._parent;)r=r._parent;return r}_updateControlsErrors(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}_initObservables(){this.valueChanges=new p.vpe,this.statusChanges=new p.vpe}_calculateStatus(){return this._allControlsDisabled()?Cf:this.errors?Tb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Gd)?Gd:this._anyControlsHaveStatus(Tb)?Tb:bf}_anyControlsHaveStatus(r){return this._anyControls(e=>e.status===r)}_anyControlsDirty(){return this._anyControls(r=>r.dirty)}_anyControlsTouched(){return this._anyControls(r=>r.touched)}_updatePristine(r={}){this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}_updateTouched(r={}){this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}_isBoxedValue(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}_registerOnCollectionChange(r){this._onCollectionChange=r}_setUpdateStrategy(r){Eb(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}_parentMarkedDirty(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class yf extends IA{constructor(r=null,e,t){super(PA(e),RA(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(r),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Eb(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(r)?r.value:r)}setValue(r,e={}){this.value=this._pendingValue=r,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(r,e={}){this.setValue(r,e)}reset(r=this.defaultValue,e={}){this._applyFormState(r),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(r){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(r){this._onChange.push(r)}_unregisterOnChange(r){HA(this._onChange,r)}registerOnDisabledChange(r){this._onDisabledChange.push(r)}_unregisterOnDisabledChange(r){HA(this._onDisabledChange,r)}_forEachChild(r){}_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(r){this._isBoxedValue(r)?(this.value=this._pendingValue=r.value,r.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=r}}class Mb extends IA{constructor(r,e,t){super(PA(e),RA(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(r,e){return this.controls[r]?this.controls[r]:(this.controls[r]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(r,e,t={}){this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),delete this.controls[r],e&&this.registerControl(r,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(r){return this.controls.hasOwnProperty(r)&&this.controls[r].enabled}setValue(r,e={}){kE(this,r),Object.keys(r).forEach(t=>{RE(this,t),this.controls[t].setValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(Object.keys(r).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(r[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r={},e={}){this._forEachChild((t,s)=>{t.reset(r[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(r,e,t)=>(r[t]=PE(e),r))}_syncPendingControls(){let r=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&r(t,e)})}_setUpControls(){this._forEachChild(r=>{r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(r){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&r(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(r,e,t)=>((e.enabled||this.disabled)&&(r[t]=e.value),r))}_reduceChildren(r,e){let t=r;return this._forEachChild((s,l)=>{t=e(t,s,l)}),t}_allControlsDisabled(){for(const r of Object.keys(this.controls))if(this.controls[r].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class IE extends IA{constructor(r,e,t){super(PA(e),RA(t,e)),this.controls=r,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(r){return this.controls[r]}push(r,e={}){this.controls.push(r),this._registerControl(r),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(r,e,t={}){this.controls.splice(r,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(r,e={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(r,e,t={}){this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(r,e={}){kE(this,r),r.forEach((t,s)=>{RE(this,s),this.at(s).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(r,e={}){null!=r&&(r.forEach((t,s)=>{this.at(s)&&this.at(s).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(r=[],e={}){this._forEachChild((t,s)=>{t.reset(r[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(r=>PE(r))}clear(r={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:r.emitEvent}))}_syncPendingControls(){let r=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return r&&this.updateValueAndValidity({onlySelf:!0}),r}_forEachChild(r){this.controls.forEach((e,t)=>{r(e,t)})}_updateValue(){this.value=this.controls.filter(r=>r.enabled||this.disabled).map(r=>r.value)}_anyControls(r){return this.controls.some(e=>e.enabled&&r(e))}_setUpControls(){this._forEachChild(r=>this._registerControl(r))}_allControlsDisabled(){for(const r of this.controls)if(r.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(r){r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange)}}const jM={provide:Ui,useExisting:(0,p.Gpc)(()=>vf)},wf=(()=>Promise.resolve(null))();let vf=(()=>{class o extends Ui{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new p.vpe,this.form=new Mb({},df(e),uf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){wf.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Le(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){wf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){wf.then(()=>{const t=this._findContainer(e.path),s=new Mb({});zd(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){wf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){wf.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,SE(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(si,10),p.Y36(ta,10))},o.\u0275dir=p.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([jM]),p.qOj]}),o})();const zM={provide:ar,useExisting:(0,p.Gpc)(()=>VA)},OE=(()=>Promise.resolve(null))();let VA=(()=>{class o extends ar{constructor(e,t,s,l,c){super(),this._changeDetectorRef=c,this.control=new yf,this._registered=!1,this.update=new p.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),SA(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Le(this.control,this),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(e){OE.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=""===t||t&&"false"!==t;OE.then(()=>{var l;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?ge(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ui,9),p.Y36(si,10),p.Y36(ta,10),p.Y36(gi,10),p.Y36(p.sBO,8))},o.\u0275dir=p.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p._Bn([zM]),p.qOj,p.TTD]}),o})(),LE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})();const BA=new p.OlP("NgModelWithFormControlWarning"),YM={provide:Ui,useExisting:(0,p.Gpc)(()=>kl)};let kl=(()=>{class o extends Ui{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ys(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Le(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){ot(e.control||null,e,!1),HA(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,SE(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(ot(t||null,e),kA(s)&&(Le(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);zd(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function mf(o,r){return Ys(o,r)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Tr(this.form,this),this._oldForm&&Ys(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(si,10),p.Y36(ta,10))},o.\u0275dir=p.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&p.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p._Bn([YM]),p.qOj,p.TTD]}),o})();const ZM={provide:ar,useExisting:(0,p.Gpc)(()=>LA)};let LA=(()=>{class o extends ar{constructor(e,t,s,l,c){super(),this._ngModelWarningConfig=c,this._added=!1,this.update=new p.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),SA(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ge(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(p.Y36(Ui,13),p.Y36(si,10),p.Y36(ta,10),p.Y36(gi,10),p.Y36(BA,8))},o.\u0275dir=p.lG2({type:o,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[p._Bn([ZM]),p.qOj,p.TTD]}),o})(),Il=(()=>{class o{constructor(){this._validator=za}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):za,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=p.lG2({type:o,features:[p.TTD]}),o})();const lH={provide:si,useExisting:(0,p.Gpc)(()=>Af),multi:!0};let Af=(()=>{class o extends Il{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function aH(o){return null!=o&&!1!==o&&"false"!=`${o}`}(e),this.createValidator=e=>ub}enabled(e){return e}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275dir=p.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&p.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[p._Bn([lH]),p.qOj]}),o})(),eS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[LE]]}),o})(),zA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[eS]}),o})(),qd=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:BA,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[eS]}),o})(),gH=(()=>{class o{group(e,t=null){const s=this._reduceControls(e);let n,l=null,c=null;return null!=t&&(function fH(o){return void 0!==o.asyncValidators||void 0!==o.validators||void 0!==o.updateOn}(t)?(l=null!=t.validators?t.validators:null,c=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,c=null!=t.asyncValidator?t.asyncValidator:null)),new Mb(s,{asyncValidators:c,updateOn:n,validators:l})}control(e,t,s){return new yf(e,t,s)}array(e,t,s){const l=e.map(c=>this._createControl(c));return new IE(l,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return kA(e)||Sb(e)||DE(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:qd}),o})();const tS=Ji({passive:!0});let mH=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ea.E;const t=Lt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const l=new He.xQ,c="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(c)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(c)&&(t.classList.remove(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!1}))):(t.classList.add(c),this._ngZone.run(()=>l.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,tS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",n,tS)}}),l}stopMonitoring(e){const t=Lt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(Je),p.LFG(p.R0b))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),iS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Yi]]}),o})();const nS=new p.OlP("MAT_INPUT_VALUE_ACCESSOR"),_H=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let bH=0;const CH=Dy(class{constructor(o,r,e,t){this._defaultErrorStateMatcher=o,this._parentForm=r,this._parentFormGroup=e,this.ngControl=t}});let rS=(()=>{class o extends CH{constructor(e,t,s,l,c,n,i,a,d,u){super(n,l,c,s),this._elementRef=e,this._platform=t,this._autofillMonitor=a,this._formField=u,this._uid="mat-input-"+bH++,this.focused=!1,this.stateChanges=new He.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(D=>Rr().has(D));const g=this._elementRef.nativeElement,b=g.nodeName.toLowerCase();this._inputValueAccessor=i||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",D=>{const q=D.target;!q.value&&0===q.selectionStart&&0===q.selectionEnd&&(q.setSelectionRange(1,1),q.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ke(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,s,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(s=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===s?void 0:s.hasValidator(Qs.required))&&void 0!==l&&l}set required(e){this._required=Ke(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Rr().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ke(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const s=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=s,s?l.setAttribute("placeholder",s):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){_H.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(Je),p.Y36(ar,10),p.Y36(vf,8),p.Y36(kl,8),p.Y36(vs),p.Y36(nS,10),p.Y36(mH),p.Y36(p.R0b),p.Y36(Em,8))},o.\u0275dir=p.lG2({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&p.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(p.Ikx("disabled",t.disabled)("required",t.required),p.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),p.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[p._Bn([{provide:Wc,useExisting:o}]),p.qOj,p.TTD]}),o})(),Db=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[vs],imports:[[iS,yr,Ne],iS,yr]}),o})();function yH(o,r){if(1&o&&(p.O4$(),p._UZ(0,"circle",4)),2&o){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function wH(o,r){if(1&o&&(p.O4$(),p._UZ(0,"circle",4)),2&o){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function vH(o,r){if(1&o&&(p.O4$(),p._UZ(0,"circle",4)),2&o){const e=p.oxw(),t=p.MAs(1);p.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}function AH(o,r){if(1&o&&(p.O4$(),p._UZ(0,"circle",4)),2&o){const e=p.oxw(),t=p.MAs(1);p.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),p.uIk("r",e._getCircleRadius())}}const EH=$r(class{constructor(o){this._elementRef=o}},"primary"),aS=new p.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function SH(){return{diameter:100}}});class Ga extends EH{constructor(r,e,t,s,l,c,n,i){super(r),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=zt.w.EMPTY,this.mode="determinate";const a=Ga._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(t.head)||a.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&c&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>c.markForCheck())}))}get diameter(){return this._diameter}set diameter(r){this._diameter=cn(r),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(r){this._strokeWidth=cn(r)}get value(){return"determinate"===this.mode?this._value:0}set value(r){this._value=Math.max(0,Math.min(100,cn(r)))}ngOnInit(){const r=this._elementRef.nativeElement;this._styleRoot=Gt(r)||this._document.head,this._attachStyleNode(),r.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const r=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${r} ${r}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(r){var e;const t=50*(null!==(e=r.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const r=this._styleRoot,e=this._diameter,t=Ga._diameters;let s=t.get(r);if(!s||!s.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),r.appendChild(l),s||(s=new Set,t.set(r,s)),s.add(e)}}_getAnimationText(){const r=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*r).replace(/END_VALUE/g,""+.2*r).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Ga._diameters=new WeakMap,Ga.\u0275fac=function(r){return new(r||Ga)(p.Y36(p.SBq),p.Y36(Je),p.Y36(T.K0,8),p.Y36(Ni,8),p.Y36(aS),p.Y36(p.sBO),p.Y36(da),p.Y36(p.R0b))},Ga.\u0275cmp=p.Xpm({type:Ga,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(r,e){2&r&&(p.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(r,e){1&r&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,yH,1,11,"circle",2),p.YNc(3,wH,1,9,"circle",3),p.qZA()),2&r&&(p.Udp("width",e.diameter,"px")("height",e.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===e.mode),p.uIk("viewBox",e._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let sS=(()=>{class o extends Ga{constructor(e,t,s,l,c,n,i,a){super(e,t,s,l,c,n,i,a),this.mode="indeterminate"}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(p.SBq),p.Y36(Je),p.Y36(T.K0,8),p.Y36(Ni,8),p.Y36(aS),p.Y36(p.sBO),p.Y36(da),p.Y36(p.R0b))},o.\u0275cmp=p.Xpm({type:o,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(p.Udp("width",t.diameter,"px")("height",t.diameter,"px"),p.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[p.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(p.O4$(),p.TgZ(0,"svg",0,1),p.YNc(2,vH,1,11,"circle",2),p.YNc(3,AH,1,9,"circle",3),p.qZA()),2&e&&(p.Udp("width",t.diameter,"px")("height",t.diameter,"px"),p.Q6J("ngSwitch","indeterminate"===t.mode),p.uIk("viewBox",t._getViewBox()),p.xp6(2),p.Q6J("ngSwitchCase",!0),p.xp6(1),p.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),o})(),xf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne,T.ez],Ne]}),o})(),qA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[er,T.ez]]}),o})(),HH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[],imports:[[T.ez,yr,Is,qd,Db,rl,xf,er,qA]]}),o})();class DH{isErrorState(r){return!(!(null==r?void 0:r.invalid)||!(null==r?void 0:r.dirty))}}const PH=(o,r,e,t=500)=>s=>Tt(t).pipe((0,pi.w)(()=>(e.dontHandleErrorForNext(),o&&"No namespace"!==o?r.checkPasswordStrength(s.value,o):(0,ke.of)(null))),(0,tt.U)(()=>null),(0,zi.K)(l=>{const c=l.error,n={backendError:c.message.substring(c.message.indexOf(":")+1)};return(0,ke.of)(n)}));function RH(o,r){1&o&&(p.TgZ(0,"mat-icon",2),p._uU(1," info "),p.qZA())}function kH(o,r){1&o&&(p.TgZ(0,"mat-icon",2),p._uU(1," warning "),p.qZA())}function IH(o,r){1&o&&(p.TgZ(0,"mat-icon",2),p._uU(1," dangerous "),p.qZA())}function VH(o,r){1&o&&(p.TgZ(0,"mat-icon",2),p._uU(1," check_circle "),p.qZA())}const BH=["*"];let UA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:BH,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(p.F$t(),p.TgZ(0,"div",0),p.YNc(1,RH,2,0,"mat-icon",1),p.YNc(2,kH,2,0,"mat-icon",1),p.YNc(3,IH,2,0,"mat-icon",1),p.YNc(4,VH,2,0,"mat-icon",1),p.Hsn(5),p.qZA()),2&e&&(p.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","info"===t.alert_type),p.xp6(1),p.Q6J("ngIf","warn"===t.alert_type),p.xp6(1),p.Q6J("ngIf","error"===t.alert_type),p.xp6(1),p.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,ap],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})();function OH(o,r){1&o&&p._UZ(0,"mat-spinner",12),2&o&&p.Q6J("diameter",18)}function FH(o,r){if(1&o&&(p.TgZ(0,"mat-icon",13),p._uU(1," error "),p.qZA()),2&o){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function LH(o,r){1&o&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&o&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function jH(o,r){if(1&o&&(p.TgZ(0,"mat-error",14),p._uU(1),p.qZA()),2&o){const e=p.oxw();p.Q6J("matTooltip",e.getErrorTooltip()),p.xp6(1),p.Oqu(e.getErrorTooltip())}}function NH(o,r){1&o&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&o&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function zH(o,r){1&o&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&o&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let GH=(()=>{class o{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new DH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const s=e.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);this.language=null!==(t=null==s?void 0:s.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(bn),p.Y36(Mn),p.Y36(Di))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[p.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(p.TgZ(0,"div",0),p.TgZ(1,"mat-form-field",1),p._UZ(2,"input",2),p.ALo(3,"translate"),p.YNc(4,OH,1,1,"mat-spinner",3),p.TgZ(5,"mat-icon",4),p.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),p._uU(6),p.qZA(),p.YNc(7,FH,2,2,"mat-icon",5),p.YNc(8,LH,3,3,"mat-error",6),p.YNc(9,jH,2,2,"mat-error",7),p.qZA(),p.TgZ(10,"mat-form-field",8),p.TgZ(11,"mat-label"),p._uU(12),p.ALo(13,"translate"),p.qZA(),p._UZ(14,"input",9),p.TgZ(15,"mat-icon",4),p.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),p._uU(16),p.qZA(),p.YNc(17,NH,3,3,"mat-error",6),p.YNc(18,zH,3,3,"mat-error",6),p.qZA(),p.TgZ(19,"perun-web-apps-alert",10),p._UZ(20,"div",11),p.qZA(),p.qZA()),2&e&&(p.Q6J("formGroup",t.formGroup),p.xp6(1),p.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),p.xp6(1),p.s9C("placeholder",p.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),p.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),p.xp6(2),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),p.xp6(2),p.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),p.xp6(3),p.Oqu(p.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),p.xp6(2),p.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),p.xp6(2),p.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),p.xp6(1),p.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),p.xp6(2),p.Q6J("innerHTML",t.passwordRequirement,p.oJD))},directives:[f,kl,Sm,qm,rS,jd,h,LA,Af,T.O5,sS,jh,ap,Am,Rs,UA],pipes:[Zr],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),o})();function qH(o,r){if(1&o&&p._UZ(0,"perun-web-apps-password-form",4),2&o){const e=p.oxw();p.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function UH(o,r){if(1&o){const e=p.EpF();p.TgZ(0,"div"),p.TgZ(1,"button",5),p.NdJ("click",function(){return p.CHM(e),p.oxw().onSubmit()}),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()}if(2&o){const e=p.oxw();p.xp6(1),p.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),p.xp6(1),p.hij(" ",p.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function WH(o,r){if(1&o&&(p.TgZ(0,"div",6),p.TgZ(1,"perun-web-apps-alert",7),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&o){const e=p.oxw();p.xp6(2),p.hij(" ",p.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function $H(o,r){1&o&&p._UZ(0,"mat-spinner",8)}let QH=(()=>{class o{constructor(e,t,s,l,c){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=l,this._formBuilder=c,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new yf("",Qs.required,[PH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new yf("",Qs.required)},{validators:c_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Di),p.Y36(bn),p.Y36(bA),p.Y36(Mn),p.Y36(gH))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(p.YNc(0,qH,1,3,"perun-web-apps-password-form",0),p.YNc(1,UH,4,4,"div",1),p.YNc(2,WH,4,3,"div",2),p.YNc(3,$H,1,0,"mat-spinner",3)),2&e&&(p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",!t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.success&&!t.loading),p.xp6(1),p.Q6J("ngIf",t.loading))},directives:[T.O5,GH,f,kl,qc,UA,sS],pipes:[Zr],styles:[""]}),o})(),YH=(()=>{class o{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(bn))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(p.TgZ(0,"perun-web-apps-alert",0),p._UZ(1,"div",1),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.invalidRequestMessage,p.oJD))},directives:[UA],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})();function JH(o,r){if(1&o&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9),p.TgZ(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&o){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function KH(o,r){if(1&o&&(p.O4$(),p.kcU(),p.TgZ(0,"p",9),p.TgZ(1,"em"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.qZA()),2&o){const e=p.oxw();p.xp6(2),p.AsE("",p.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function ZH(o,r){if(1&o&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-password-reset-form",10)),2&o){const e=p.oxw();p.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function XH(o,r){1&o&&(p.O4$(),p.kcU(),p._UZ(0,"perun-web-apps-invalid-request-alert"))}let eD=(()=>{class o{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Di),p.Y36(Tn))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"div",0),p.TgZ(2,"div",1),p.TgZ(3,"h1"),p._uU(4),p.ALo(5,"translate"),p.qZA(),p.O4$(),p.TgZ(6,"svg",2),p.TgZ(7,"g",3),p._UZ(8,"path",4),p._UZ(9,"path",5),p.qZA(),p.qZA(),p.qZA(),p.YNc(10,JH,4,4,"p",6),p.YNc(11,KH,4,4,"p",6),p.YNc(12,ZH,1,5,"perun-web-apps-password-reset-form",7),p.YNc(13,XH,1,0,"perun-web-apps-invalid-request-alert",8),p.qZA()),2&e&&(p.xp6(1),p.Q6J("innerHTML",t.passwordResetLogo,p.oJD),p.xp6(3),p.hij(" ",p.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),p.xp6(6),p.Q6J("ngIf",t.login),p.xp6(1),p.Q6J("ngIf",t.namespace),p.xp6(1),p.Q6J("ngIf",t.validToken||t.authWithoutToken),p.xp6(1),p.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},directives:[T.O5,QH,YH],pipes:[Zr],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),o})();function tD(o,r){1&o&&(p.TgZ(0,"mat-error"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&o&&(p.xp6(1),p.Oqu(p.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let iD=(()=>{class o{constructor(e,t,s,l,c){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=l,this.storeService=c,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ss),p.Y36(bn),p.Y36(sb),p.Y36(bi),p.Y36(Di))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(p.TgZ(0,"h1",0),p._uU(1),p.ALo(2,"translate"),p.qZA(),p.TgZ(3,"div",1),p.TgZ(4,"mat-form-field"),p.TgZ(5,"mat-label"),p._uU(6),p.ALo(7,"translate"),p.qZA(),p.TgZ(8,"input",2,3),p.NdJ("ngModelChange",function(l){return t.subject=l}),p.qZA(),p.YNc(10,tD,3,3,"mat-error",4),p.qZA(),p.TgZ(11,"mat-form-field"),p.TgZ(12,"mat-label"),p._uU(13),p.ALo(14,"translate"),p.qZA(),p.TgZ(15,"textarea",5),p.NdJ("ngModelChange",function(l){return t.message=l}),p.ALo(16,"translate"),p._uU(17," "),p.qZA(),p.TgZ(18,"mat-hint"),p._uU(19),p.ALo(20,"translate"),p.qZA(),p.qZA(),p.qZA(),p.TgZ(21,"div",6),p.TgZ(22,"div",7),p.TgZ(23,"button",8),p.NdJ("click",function(){return t.close()}),p._uU(24),p.ALo(25,"translate"),p.qZA(),p.TgZ(26,"button",9),p.NdJ("click",function(){return t.sendBugReport()}),p._uU(27),p.ALo(28,"translate"),p.qZA(),p.qZA(),p.qZA()),2&e){const s=p.MAs(9);p.xp6(1),p.Oqu(p.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),p.xp6(5),p.Oqu(p.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),p.xp6(2),p.Q6J("ngModel",t.subject),p.xp6(2),p.Q6J("ngIf",s.invalid),p.xp6(3),p.Oqu(p.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),p.xp6(2),p.s9C("placeholder",p.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),p.Q6J("ngModel",t.message),p.xp6(4),p.Oqu(p.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),p.xp6(5),p.hij(" ",p.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),p.xp6(2),p.Q6J("disabled",s.invalid),p.xp6(1),p.hij(" ",p.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Bc,Rh,Sm,Rs,rS,jd,Af,h,VA,T.O5,Am,uT,fm,qc],pipes:[Zr],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),nD=(()=>{class o{transform(e,t,s){return e[`${s}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=p.Yjl({name:"localisedText",type:o,pure:!0}),o})(),rD=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=p.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),aD=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=p.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function sD(o,r){if(1&o&&(p.TgZ(0,"a",13),p.ALo(1,"localisedLink"),p._UZ(2,"img",14),p.ALo(3,"footerLogoPath"),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,2,e,t.language),p.LSH),p.xp6(2),p.s9C("src",p.lcZ(3,5,e.logo),p.LSH)}}function oD(o,r){if(1&o&&(p.TgZ(0,"span"),p._UZ(1,"img",14),p.ALo(2,"footerLogoPath"),p.qZA()),2&o){const e=p.oxw().$implicit;p.xp6(1),p.s9C("src",p.lcZ(2,1,e.logo),p.LSH)}}function lD(o,r){if(1&o&&(p.TgZ(0,"div"),p.YNc(1,sD,4,7,"a",11),p.ALo(2,"localisedLink"),p.YNc(3,oD,3,3,"span",12),p.ALo(4,"localisedLink"),p.qZA()),2&o){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",p.xi3(2,2,e,t.language)),p.xp6(2),p.Q6J("ngIf",!p.xi3(4,5,e,t.language))}}const cD=function(o){return{"min-height":o}};function dD(o,r){if(1&o&&(p.TgZ(0,"div",10),p.YNc(1,lD,5,8,"div",5),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,cD,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}const Js=function(o){return{color:o}};function uD(o,r){if(1&o&&(p.TgZ(0,"i",20),p._uU(1),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(2,Js,t.linksTextColor)),p.xp6(1),p.hij(" ",e.icon," ")}}function hD(o,r){if(1&o){const e=p.EpF();p.TgZ(0,"span",21),p.NdJ("click",function(){p.CHM(e);const s=p.oxw().$implicit;return p.oxw(3).openDialog(s.dialog)}),p._uU(1),p.ALo(2,"localisedText"),p.qZA()}if(2&o){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,Js,t.linksTextColor)),p.xp6(1),p.hij("",p.Dn7(2,2,e,t.language,"label")," ")}}function pD(o,r){if(1&o&&(p.TgZ(0,"a",22),p.ALo(1,"localisedLink"),p._uU(2),p.ALo(3,"localisedText"),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("href",p.xi3(1,3,e,t.language),p.LSH)("ngStyle",p.VKq(10,Js,t.linksTextColor)),p.xp6(2),p.Oqu(p.Dn7(3,6,e,t.language,"label"))}}function fD(o,r){if(1&o&&(p.TgZ(0,"span",10),p._uU(1),p.ALo(2,"localisedText"),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw(3);p.Q6J("ngStyle",p.VKq(6,Js,t.linksTextColor)),p.xp6(1),p.Oqu(p.Dn7(2,2,e,t.language,"label"))}}function gD(o,r){if(1&o&&(p.TgZ(0,"div",16),p.YNc(1,uD,2,4,"i",17),p.YNc(2,hD,3,8,"span",18),p.YNc(3,pD,4,12,"a",19),p.ALo(4,"localisedLink"),p.YNc(5,fD,3,8,"span",9),p.ALo(6,"localisedLink"),p.qZA()),2&o){const e=r.$implicit,t=p.oxw(3);p.xp6(1),p.Q6J("ngIf",e.icon),p.xp6(1),p.Q6J("ngIf",e.dialog),p.xp6(1),p.Q6J("ngIf",p.xi3(4,4,e,t.language)&&!e.dialog),p.xp6(2),p.Q6J("ngIf",!p.xi3(6,7,e,t.language)&&!e.dialog)}}const mD=function(o){return{height:o}};function _D(o,r){if(1&o&&(p.TgZ(0,"div",10),p.YNc(1,gD,7,10,"div",15),p.qZA()),2&o){const e=p.oxw().$implicit,t=p.oxw();p.Q6J("ngStyle",p.VKq(2,mD,t.columnContentHeight+"px")),p.xp6(1),p.Q6J("ngForOf",e.elements)}}function bD(o,r){if(1&o&&(p.TgZ(0,"div",7),p.TgZ(1,"h6",8),p._uU(2),p.ALo(3,"localisedText"),p.qZA(),p.YNc(4,dD,2,4,"div",9),p.YNc(5,_D,2,4,"div",9),p.qZA()),2&o){const e=r.$implicit,t=p.oxw();p.ekj("my-auto",t.containsLogos),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,Js,t.headersTextColor)),p.xp6(1),p.hij(" ",p.Dn7(3,6,e,t.language,"title")," "),p.xp6(2),p.Q6J("ngIf",e.logos),p.xp6(1),p.Q6J("ngIf",e.elements&&!e.logos)}}function CD(o,r){if(1&o&&(p.TgZ(0,"span"),p.TgZ(1,"a",6),p._uU(2),p.qZA(),p.qZA()),2&o){const e=r.$implicit,t=r.index,s=p.oxw();p.xp6(1),p.Q6J("href",e.url,p.LSH)("ngStyle",p.VKq(3,Js,s.copyrightTextColor)),p.xp6(1),p.Oqu(t?", "+e.name:e.name)}}const yD=function(o){return{background:o}};let wD=(()=>{class o{constructor(e,t,s){this.storeService=e,this.translateService=t,this.dialog=s,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Fs();"reportIssue"===e&&(t.width="550px",this.dialog.open(iD,t))}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Di),p.Y36(bn),p.Y36(Ms))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(p.TgZ(0,"footer",0),p.TgZ(1,"div",1),p.YNc(2,bD,6,12,"div",2),p.qZA(),p._UZ(3,"hr",3),p.TgZ(4,"div",4),p._uU(5),p.YNc(6,CD,3,5,"span",5),p._uU(7," Version "),p.TgZ(8,"a",6),p._uU(9),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.Q6J("ngStyle",p.VKq(8,yD,t.bgColor)),p.xp6(2),p.Q6J("ngForOf",t.footerColumns),p.xp6(2),p.Q6J("ngStyle",p.VKq(10,Js,t.copyrightTextColor)),p.xp6(1),p.hij(" \xa9 ",t.currentYear," Copyright: "),p.xp6(1),p.Q6J("ngForOf",t.copyrightItems),p.xp6(2),p.Q6J("href",t.githubRepository,p.LSH)("ngStyle",p.VKq(12,Js,t.copyrightTextColor)),p.xp6(1),p.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[nD,rD,aD],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),o})();const vD=["footer"],AD=function(o){return{background:o}},xD=function(o){return{"min-height":o}};let TD=(()=>{class o{constructor(e,t,s,l,c,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=l,this.store=c,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",t),t.includes("token")?(this.token=this.parseQueryParams("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const l=s.find(c=>c.friendlyNameParameter===this.namespace);this.login=l?String(l.value):""}))}parseQueryParams(e,t){const s=t.split("&");for(const l of s){const[c,n]=l.split("=");if(c.includes(e))return n}}ngAfterViewInit(){var e,t,s,l;const c=null!==(l=null===(s=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===s?void 0:s.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+c+"px)",this.changeDetector.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(p.Y36(Ms),p.Y36(Mn),p.Y36(ob),p.Y36(bn),p.Y36(Di),p.Y36(En),p.Y36(p.sBO))},o.\u0275cmp=p.Xpm({type:o,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&p.Gf(vD,5),2&e){let s;p.iGM(s=p.CRH())&&(t.footer=s.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(p.TgZ(0,"div"),p._UZ(1,"perun-web-apps-header",0),p.TgZ(2,"div",1),p.TgZ(3,"div",2),p._UZ(4,"perun-web-apps-password-reset-page",3),p.qZA(),p.TgZ(5,"div",null,4),p._UZ(7,"perun-web-apps-footer"),p.qZA(),p.qZA(),p.qZA()),2&e&&(p.xp6(2),p.Q6J("ngStyle",p.VKq(8,AD,t.contentBackgroundColor)),p.xp6(1),p.Q6J("ngStyle",p.VKq(10,xD,t.contentHeight)),p.xp6(1),p.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},directives:[nf,T.PC,eD,wD],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),o})();class ED{constructor(r,e="/assets/i18n/",t=".json"){this.http=r,this.prefix=e,this.suffix=t}getTranslation(r){return this.http.get(`${this.prefix}${r}${this.suffix}`)}}let SD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,Oc,On,rl]]}),o})();const MD=[];let HD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Jp.forRoot(MD,{relativeLinkResolution:"legacy"}),T.ez],Jp]}),o})(),DD=(()=>{class o{constructor(e,t,s,l,c){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=l,this.utilsService=c}initializeColors(e,t){return new Promise(s=>{t.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c)}),e.forEach(l=>{const c=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,c),this.setEntityTheme(l.entity,c)}),s()})}setEntityTheme(e,t){const s=function PD(o){return[yn(tinycolor(o).lighten(52),"50"),yn(tinycolor(o).lighten(37),"100"),yn(tinycolor(o).lighten(26),"200"),yn(tinycolor(o).lighten(12),"300"),yn(tinycolor(o).lighten(6),"400"),yn(tinycolor(o),"500"),yn(tinycolor(o).darken(6),"600"),yn(tinycolor(o).darken(12),"700"),yn(tinycolor(o).darken(18),"800"),yn(tinycolor(o).darken(24),"900"),yn(tinycolor(o).lighten(50).saturate(30),"A100"),yn(tinycolor(o).lighten(30).saturate(30),"A200"),yn(tinycolor(o).lighten(10).saturate(15),"A400"),yn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const l of s){const i=`--${e}-theme-primary-contrast-${l.name}`,a=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(i,a)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var s;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(s=null==t?void 0:t.brandings)||void 0===s?void 0:s[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(y.eN),p.LFG(Di),p.LFG(Wi),p.LFG(Bi),p.LFG(et))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function yn(o,r){const e=tinycolor(o),t=e.toRgb();return{name:r,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let RD=(()=>{class o{constructor(e,t,s){this.initAuthService=e,this.appConfigService=t,this.location=s}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(ef),p.LFG(DD),p.LFG(T.Ye))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const kD=new p.OlP("perun-api-service");let oS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne],Ne]}),o})(),dS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),Pb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[mn,Ne,hc,dS],Ne,dS]}),o})(),WA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[Ne],Ne]}),o})(),UD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),hS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,Ne,UD,rs]]}),o})(),fS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[As,Ne],As,Ne]}),o})(),QD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[ti]]}),o})(),$A=(()=>{class o{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const aP={provide:$A,deps:[[new p.FiY,new p.tp0,$A]],useFactory:function rP(o){return o||new $A}};let mS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[aP,vs],imports:[[Ne,T.ez,rs,On,QD,er,mn],Ne]}),o})(),yP=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[ua]]}),o})(),zb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[yP,Ne],Ne]}),o})(),$P=(()=>{class o{constructor(){this.changes=new He.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const JP={provide:new p.OlP("mat-datepicker-scroll-strategy"),deps:[$n],useFactory:function YP(o){return()=>o.scrollStrategies.reposition()}};let ax=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[$P,JP],imports:[[T.ez,On,ss,bc,rs,Ne],Un]}),o})(),RS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,Ne,Yi,Un],Un,Ne]}),o})(),IS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[As,mn,Ne,Mh,T.ez],As,Ne,Mh,WA]}),o})(),sx=(()=>{class o{constructor(){this.changes=new He.xQ}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const mR={provide:sx,deps:[[new p.FiY,new p.tp0,sx]],useFactory:function gR(o){return o||new sx}};let ox=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[mR],imports:[[T.ez,Ne]]}),o})(),wR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,Ne,rs,mn,hc,bc],Ne]}),o})(),VS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),BS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[VS,mn,Ne,hc],VS,Ne]}),o})(),OS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,oS,WA,hS,On,fS,Pb,er,zb,Oc,xf,yr,Db,ua,zA,qd,mS,ax,ky,RS,IS,ol,lb,ox,Vs,Is,Kc,mn,zb,BS],oS,WA,hS,On,fS,Pb,er,zb,Oc,xf,yr,Db,ua,zA,qd,mS,ax,ky,RS,IS,ol,lb,ox,Vs,Is,Kc,mn,wR,BS]}),o})();const NS=new p.OlP("mat-chips-default-options");let $R=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[vs,{provide:NS,useValue:{separatorKeyCodes:[13]}}],imports:[[Ne]]}),o})();function YR(o){const{subscriber:r,counter:e,period:t}=o;r.next(e),this.schedule({subscriber:r,counter:e+1,period:t},t)}function cx(o,r,e){for(let t in r)if(r.hasOwnProperty(t)){const s=r[t];s?o.setProperty(t,s,(null==e?void 0:e.has(t))?"important":""):o.removeProperty(t)}return o}function Yd(o,r){const e=r?"":"none";cx(o.style,{"touch-action":r?"":"none","-webkit-user-drag":r?"":"none","-webkit-tap-highlight-color":r?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zS(o,r,e){cx(o.style,{position:r?"":"fixed",top:r?"":"0",opacity:r?"":"0",left:r?"":"-999em"},e)}function Wb(o,r){return r&&"none"!=r?o+" "+r:o}function GS(o){const r=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*r}function dx(o,r){return o.getPropertyValue(r).split(",").map(t=>t.trim())}function ux(o){const r=o.getBoundingClientRect();return{top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height,x:r.x,y:r.y}}function hx(o,r,e){const{top:t,bottom:s,left:l,right:c}=o;return e>=t&&e<=s&&r>=l&&r<=c}function Mf(o,r,e){o.top+=r,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function qS(o,r,e,t){const{top:s,right:l,bottom:c,left:n,width:i,height:a}=o,d=i*r,u=a*r;return t>s-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ux(e)})})}handleScroll(r){const e=Pi(r),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let l,c;if(e===this._document){const a=this._viewportRuler.getViewportScrollPosition();l=a.top,c=a.left}else l=e.scrollTop,c=e.scrollLeft;const n=s.top-l,i=s.left-c;return this.positions.forEach((a,d)=>{a.clientRect&&e!==d&&e.contains(d)&&Mf(a.clientRect,n,i)}),s.top=l,s.left=c,{top:n,left:i}}}function WS(o){const r=o.cloneNode(!0),e=r.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();r.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const i=this._handles.find(a=>n.target&&(n.target===a||a.contains(n.target)));i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),D=this._dropContainer;if(!b)return void this._endDragSequence(n);(!D||!D.isDragging()&&!D.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),n.preventDefault();const a=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(a),this._dropContainer)this._updateActiveDropContainer(a,i);else{const d=this._activeTransform;d.x=a.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=a.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:a,event:n,distance:this._getDragDistance(a),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this.withRootElement(r).withParent(e.parentDragRef||null),this._parentPositions=new US(t,l),c.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(r){const e=Ke(r);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Yd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(r){this._handles=r.map(t=>Lt(t)),this._handles.forEach(t=>Yd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(r){return this._previewTemplate=r,this}withPlaceholderTemplate(r){return this._placeholderTemplate=r,this}withRootElement(r){const e=Lt(r);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,KS),e.addEventListener("touchstart",this._pointerDown,JS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(r){return this._boundaryElement=r?Lt(r):null,this._resizeSubscription.unsubscribe(),r&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(r){return this._parentDragRef=r,this}dispose(){var r,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(r=this._rootElement)||void 0===r||r.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(r){!this._disabledHandles.has(r)&&this._handles.indexOf(r)>-1&&(this._disabledHandles.add(r),Yd(r,!0))}enableHandle(r){this._disabledHandles.has(r)&&(this._disabledHandles.delete(r),Yd(r,this.disabled))}withDirection(r){return this._direction=r,this}_withDropContainer(r){this._dropContainer=r}getFreeDragPosition(){const r=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:r.x,y:r.y}}setFreeDragPosition(r){return this._activeTransform={x:0,y:0},this._passiveTransform.x=r.x,this._passiveTransform.y=r.y,this._dropContainer||this._applyRootElementTransform(r.x,r.y),this}withPreviewContainer(r){return this._previewContainer=r,this}_sortFromLastPointerPosition(){const r=this._lastKnownPointerPosition;r&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(r),r)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var r,e;null===(r=this._preview)||void 0===r||r.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var r,e;null===(r=this._placeholder)||void 0===r||r.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(r){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(r),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(r);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(r){Hf(r)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),c=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();s.insertBefore(c,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),zS(t,!1,px),this._document.body.appendChild(s.replaceChild(l,t)),this._getPreviewInsertionPoint(s,n).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(r,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Hf(e),l=!s&&0!==e.button,c=this._rootElement,n=Pi(e),i=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),a=s?gc(e):Bo(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||i||a)return;if(this._handles.length){const g=c.style;this._rootElementTapHighlight=g.webkitTapHighlightColor||"",g.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(g=>this._updateOnScroll(g)),this._boundaryElement&&(this._boundaryRect=ux(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(r,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(r){zS(this._rootElement,!0,px),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(r),l=this._getDragDistance(s),c=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:l,dropPoint:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:c,distance:l,dropPoint:s}),e.drop(this,t,this._initialIndex,this._initialContainer,c,l,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:r,y:e},{x:t,y:s}){let l=this._initialContainer._getSiblingContainerFromPosition(this,r,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(r,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,r,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,r,e,this._pointerDirectionDelta),this._applyPreviewTransform(r-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const r=this._previewTemplate,e=this.previewClass,t=r?r.template:null;let s;if(t&&r){const l=r.matchSize?this._rootElement.getBoundingClientRect():null,c=r.viewContainer.createEmbeddedView(t,r.context);c.detectChanges(),s=XS(c,this._document),this._previewRef=c,r.matchSize?eM(s,l):s.style.transform=$b(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;s=WS(l),eM(s,l.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return cx(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},px),Yd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>s.classList.add(l)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const r=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(r.left,r.top);const e=function JR(o){const r=getComputedStyle(o),e=dx(r,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const s=e.indexOf(t),l=dx(r,"transition-duration"),c=dx(r,"transition-delay");return GS(l[s])+GS(c[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=c=>{var n;(!c||Pi(c)===this._preview&&"transform"===c.propertyName)&&(null===(n=this._preview)||void 0===n||n.removeEventListener("transitionend",s),t(),clearTimeout(l))},l=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const r=this._placeholderTemplate,e=r?r.template:null;let t;return e?(this._placeholderRef=r.viewContainer.createEmbeddedView(e,r.context),this._placeholderRef.detectChanges(),t=XS(this._placeholderRef,this._document)):t=WS(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(r,e){const t=this._rootElement.getBoundingClientRect(),s=r===this._rootElement?null:r,l=s?s.getBoundingClientRect():t,c=Hf(e)?e.targetTouches[0]:e,n=this._getViewportScrollPosition();return{x:l.left-t.left+(c.pageX-l.left-n.left),y:l.top-t.top+(c.pageY-l.top-n.top)}}_getPointerPositionOnPage(r){const e=this._getViewportScrollPosition(),t=Hf(r)?r.touches[0]||r.changedTouches[0]||{pageX:0,pageY:0}:r,s=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const c=this._ownerSVGElement.getScreenCTM();if(c){const n=this._ownerSVGElement.createSVGPoint();return n.x=s,n.y=l,n.matrixTransform(c.inverse())}}return{x:s,y:l}}_getConstrainedPointerPosition(r){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(r,this):r;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:c}=this._pickupPositionInElement,n=this._boundaryRect,i=this._previewRect,a=n.top+c,d=n.bottom-(i.height-c);t=ZS(t,n.left+l,n.right-(i.width-l)),s=ZS(s,a,d)}return{x:t,y:s}}_updatePointerDirectionDelta(r){const{x:e,y:t}=r,s=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,c=Math.abs(e-l.x),n=Math.abs(t-l.y);return c>this._config.pointerDirectionChangeThreshold&&(s.x=e>l.x?1:-1,l.x=e),n>this._config.pointerDirectionChangeThreshold&&(s.y=t>l.y?1:-1,l.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const r=this._handles.length>0||!this.isDragging();r!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=r,Yd(this._rootElement,r))}_removeRootElementListeners(r){r.removeEventListener("mousedown",this._pointerDown,KS),r.removeEventListener("touchstart",this._pointerDown,JS)}_applyRootElementTransform(r,e){const t=$b(r,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=Wb(t,this._initialTransform)}_applyPreviewTransform(r,e){var t;const s=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=$b(r,e);this._preview.style.transform=Wb(l,s)}_getDragDistance(r){const e=this._pickupPositionOnPage;return e?{x:r.x-e.x,y:r.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:r,y:e}=this._passiveTransform;if(0===r&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===s.width&&0===s.height)return;const l=t.left-s.left,c=s.right-t.right,n=t.top-s.top,i=s.bottom-t.bottom;t.width>s.width?(l>0&&(r+=l),c>0&&(r-=c)):r=0,t.height>s.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(r!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:r})}_getDragStartDelay(r){const e=this.dragStartDelay;return"number"==typeof e?e:Hf(r)?e.touch:e?e.mouse:0}_updateOnScroll(r){const e=this._parentPositions.handleScroll(r);if(e){const t=Pi(r);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Mf(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const r=this._parentPositions.positions.get(this._document);return r?r.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Gt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(r,e){const t=this._previewContainer||"global";if("parent"===t)return r;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Lt(t)}}function $b(o,r){return`translate3d(${Math.round(o)}px, ${Math.round(r)}px, 0)`}function ZS(o,r,e){return Math.max(r,Math.min(e,o))}function Hf(o){return"t"===o.type[0]}function XS(o,r){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===r.ELEMENT_NODE)return e[0];const t=r.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function eM(o,r){o.style.width=`${r.width}px`,o.style.height=`${r.height}px`,o.style.transform=$b(r.left,r.top)}function Df(o,r){return Math.max(0,Math.min(r,o))}class tk{constructor(r,e,t,s,l){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=l,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=zt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function QR(o=0,r=k.P){return(!Oe(o)||o<0)&&(o=0),(!r||"function"!=typeof r.schedule)&&(r=k.P),new yi.y(e=>(e.add(r.schedule(YR,o,{subscriber:e,counter:0,period:o})),e))}(0,nu).pipe(pt(this._stopScrollTimers)).subscribe(()=>{const c=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?c.scrollBy(0,-n):2===this._verticalScrollDirection&&c.scrollBy(0,n),1===this._horizontalScrollDirection?c.scrollBy(-n,0):2===this._horizontalScrollDirection&&c.scrollBy(n,0)})},this.element=Lt(r),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new US(t,l)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(r,e,t,s){let l;this._draggingStarted(),null==s?(l=this.sortingDisabled?this._draggables.indexOf(r):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(r,e,t))):l=s;const c=this._activeDraggables,n=c.indexOf(r),i=r.getPlaceholderElement();let a=c[l];if(a===r&&(a=c[l+1]),!a&&(null==l||-1===l||l-1&&c.splice(n,1),a&&!this._dragDropRegistry.isDragging(a)){const d=a.getRootElement();d.parentElement.insertBefore(i,d),c.splice(l,0,r)}else Lt(this.element).appendChild(i),c.push(r);i.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:r,container:this,currentIndex:this.getItemIndex(r)})}exit(r){this._reset(),this.exited.next({item:r,container:this})}drop(r,e,t,s,l,c,n){this._reset(),this.dropped.next({item:r,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:l,distance:c,dropPoint:n})}withItems(r){const e=this._draggables;return this._draggables=r,r.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===r.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(r){return this._direction=r,this}connectedTo(r){return this._siblings=r.slice(),this}withOrientation(r){return this._orientation=r,this}withScrollableParents(r){const e=Lt(this.element);return this._scrollableElements=-1===r.indexOf(e)?[e,...r]:r.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(r){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===r):this._draggables.indexOf(r)}isReceiving(){return this._activeSiblings.size>0}_sortItem(r,e,t,s){if(this.sortingDisabled||!this._clientRect||!qS(this._clientRect,.05,e,t))return;const l=this._itemPositions,c=this._getItemIndexFromPointerPosition(r,e,t,s);if(-1===c&&l.length>0)return;const n="horizontal"===this._orientation,i=l.findIndex(se=>se.drag===r),a=l[c],u=a.clientRect,g=i>c?1:-1,b=this._getItemOffsetPx(l[i].clientRect,u,g),D=this._getSiblingOffsetPx(i,l,g),q=l.slice();(function ek(o,r,e){const t=Df(r,o.length-1),s=Df(e,o.length-1);if(t===s)return;const l=o[t],c=s{if(q[De]===se)return;const rt=se.drag===r,Qe=rt?b:D,At=rt?r.getPlaceholderElement():se.drag.getRootElement();se.offset+=Qe,n?(At.style.transform=Wb(`translate3d(${Math.round(se.offset)}px, 0, 0)`,se.initialTransform),Mf(se.clientRect,0,Qe)):(At.style.transform=Wb(`translate3d(0, ${Math.round(se.offset)}px, 0)`,se.initialTransform),Mf(se.clientRect,Qe,0))}),this._previousSwap.overlaps=hx(u,e,t),this._previousSwap.drag=a.drag,this._previousSwap.delta=n?s.x:s.y}_startScrollingIfNecessary(r,e){if(this.autoScrollDisabled)return;let t,s=0,l=0;if(this._parentPositions.positions.forEach((c,n)=>{n===this._document||!c.clientRect||t||qS(c.clientRect,.05,r,e)&&([s,l]=function ik(o,r,e,t){const s=nM(r,t),l=rM(r,e);let c=0,n=0;if(s){const i=o.scrollTop;1===s?i>0&&(c=1):o.scrollHeight-i>o.clientHeight&&(c=2)}if(l){const i=o.scrollLeft;1===l?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[c,n]}(n,c.clientRect,r,e),(s||l)&&(t=n))}),!s&&!l){const{width:c,height:n}=this._viewportRuler.getViewportSize(),i={width:c,height:n,top:0,right:c,bottom:n,left:0};s=nM(i,e),l=rM(i,r),t=window}t&&(s!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=l,this._scrollNode=t,(s||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const r=Lt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=r.msScrollSnapType||r.scrollSnapType||"",r.scrollSnapType=r.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const r=Lt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(r).clientRect}_cacheItemPositions(){const r="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:ux(t)}}).sort((e,t)=>r?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const r=Lt(this.element).style;r.scrollSnapType=r.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const s=e.getRootElement();if(s){const l=null===(t=this._itemPositions.find(c=>c.drag===e))||void 0===t?void 0:t.initialTransform;s.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(r,e,t){const s="horizontal"===this._orientation,l=e[r].clientRect,c=e[r+-1*t];let n=l[s?"width":"height"]*t;if(c){const i=s?"left":"top",a=s?"right":"bottom";-1===t?n-=c.clientRect[i]-l[a]:n+=l[i]-c.clientRect[a]}return n}_getItemOffsetPx(r,e,t){const s="horizontal"===this._orientation;let l=s?e.left-r.left:e.top-r.top;return-1===t&&(l+=s?e.width-r.width:e.height-r.height),l}_shouldEnterAsFirstChild(r,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const c=t[t.length-1].clientRect;return s?r>=c.right:e>=c.bottom}{const c=t[0].clientRect;return s?r<=c.left:e<=c.top}}_getItemIndexFromPointerPosition(r,e,t,s){const l="horizontal"===this._orientation,c=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===r)return!1;if(s){const a=l?s.x:s.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&a===this._previousSwap.delta)return!1}return l?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&ts._canReceive(r,e,t))}_canReceive(r,e,t){if(!this._clientRect||!hx(this._clientRect,e,t)||!this.enterPredicate(r,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const l=Lt(this.element);return s===l||l.contains(s)}_startReceiving(r,e){const t=this._activeSiblings;!t.has(r)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(r),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(r){this._activeSiblings.delete(r),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(r=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(r);e&&(this._itemPositions.forEach(({clientRect:t})=>{Mf(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const r=Gt(Lt(this.element));this._cachedShadowRoot=r||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const r=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,r))}}function nM(o,r){const{top:e,bottom:t,height:s}=o,l=.05*s;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}function rM(o,r){const{left:e,right:t,width:s}=o,l=.05*s;return r>=e-l&&r<=e+l?1:r>=t-l&&r<=t+l?2:0}const Qb=Ji({passive:!1,capture:!0});let nk=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Qb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Qb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Qb}),s||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:Qb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,c)=>{this._document.addEventListener(c,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new yi.y(s=>this._ngZone.runOutsideAngular(()=>{const c=n=>{this._activeDragInstances.length&&s.next(n)};return e.addEventListener("scroll",c,!0),()=>{e.removeEventListener("scroll",c,!0)}}))),(0,Wn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(p.R0b),p.LFG(T.K0))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const rk={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ak=(()=>{class o{constructor(e,t,s,l){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=l}createDrag(e,t=rk){return new XR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new tk(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(T.K0),p.LFG(p.R0b),p.LFG(da),p.LFG(nk))},o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),sk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[ak],imports:[Un]}),o})(),ok=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez]]}),o})(),lk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),pk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({}),o})(),wk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[pk,Ne],Ne]}),o})(),Ik=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[mn,Ne],Ne]}),o})(),Ok=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({imports:[[T.ez,qd,On,Pb,er,xf,Is]]}),o})(),Fk=(()=>{class o extends Zo{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let r;return function(t){return(r||(r=p.n5z(o)))(t||o)}}(),o.\u0275prov=p.Yz7({token:o,factory:o.\u0275fac}),o})();const Lk={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let jk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=p.oAB({type:o}),o.\u0275inj=p.cJS({providers:[{provide:gn,useClass:Fk},{provide:Ko,useValue:Lk}],imports:[[T.ez,Pb,zb,zA,$R,sk,rl,Jp,ox,Vs,xf,qA,er,ol,On,Is,yr,qd,Db,mn,ok,lk,wk,ax,Ik,Hh,Kc,Ok,ua,Oc,r_,OS]]}),o})();const jI={provide:y.TP,useExisting:(0,p.Gpc)(()=>tf),multi:!0};function NI(o){return new ED(o,"./assets/i18n/",".json")}function zI(o){const r={basePath:o.get("api_url")};return new je(r)}const GI=o=>()=>o.loadConfigs();let qI=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(p.LFG(mA),p.LFG(bn))},o.\u0275mod=p.oAB({type:o,bootstrap:[TD]}),o.\u0275inj=p.cJS({providers:[mA,{provide:p.ip1,useFactory:GI,multi:!0,deps:[RD]},{provide:je,useFactory:zI,deps:[Di]},tf,jI,{provide:kD,useClass:CA},{provide:Bd.Hy,useFactory:()=>localStorage}],imports:[[Mr,rl.forRoot({loader:{provide:Zn,useFactory:NI,deps:[y.eN]}}),vh,er,SD,Bf,y.JF,HD,OS,qA,HH,Bd.zr.forRoot(),jk]]}),o})();(0,p.G48)(),Sr().bootstrapModule(qI).catch(o=>console.error(o))},1302:function(z,W,E){var T;!function(p,B){var j={};!function(p){"use strict";p.__esModule=!0,p.digestLength=32,p.blockSize=64;var B=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function j(Q,ie,re,ne,le){for(var xe,Ae,Be,mt,wt,We,mi,Ht,Xe,oe,he,fe,ue;le>=64;){for(xe=ie[0],Ae=ie[1],Be=ie[2],mt=ie[3],wt=ie[4],We=ie[5],mi=ie[6],Ht=ie[7],oe=0;oe<16;oe++)Q[oe]=(255&re[he=ne+4*oe])<<24|(255&re[he+1])<<16|(255&re[he+2])<<8|255&re[he+3];for(oe=16;oe<64;oe++)Q[oe]=((fe=((Xe=Q[oe-2])>>>17|Xe<<15)^(Xe>>>19|Xe<<13)^Xe>>>10)+Q[oe-7]|0)+((ue=((Xe=Q[oe-15])>>>7|Xe<<25)^(Xe>>>18|Xe<<14)^Xe>>>3)+Q[oe-16]|0);for(oe=0;oe<64;oe++)fe=(((wt>>>6|wt<<26)^(wt>>>11|wt<<21)^(wt>>>25|wt<<7))+(wt&We^~wt&mi)|0)+(Ht+(B[oe]+Q[oe]|0)|0)|0,ue=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Ae^xe&Be^Ae&Be)|0,Ht=mi,mi=We,We=wt,wt=mt+fe|0,mt=Be,Be=Ae,Ae=xe,xe=fe+ue|0;ie[0]+=xe,ie[1]+=Ae,ie[2]+=Be,ie[3]+=mt,ie[4]+=wt,ie[5]+=We,ie[6]+=mi,ie[7]+=Ht,ne+=64,le-=64}return ne}var I=function(){function Q(){this.digestLength=p.digestLength,this.blockSize=p.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return Q.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},Q.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;64===this.bufferLength&&(j(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(ne=j(this.temp,this.state,ie,ne,re),re%=64);re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;return this},Q.prototype.finish=function(ie){if(!this.finished){var re=this.bytesHashed,ne=this.bufferLength,le=re/536870912|0,xe=re<<3,Ae=re%64<56?64:128;this.buffer[ne]=128;for(var Be=ne+1;Be>>24&255,this.buffer[Ae-7]=le>>>16&255,this.buffer[Ae-6]=le>>>8&255,this.buffer[Ae-5]=le>>>0&255,this.buffer[Ae-4]=xe>>>24&255,this.buffer[Ae-3]=xe>>>16&255,this.buffer[Ae-2]=xe>>>8&255,this.buffer[Ae-1]=xe>>>0&255,j(this.temp,this.state,this.buffer,0,Ae),this.finished=!0}for(Be=0;Be<8;Be++)ie[4*Be+0]=this.state[Be]>>>24&255,ie[4*Be+1]=this.state[Be]>>>16&255,ie[4*Be+2]=this.state[Be]>>>8&255,ie[4*Be+3]=this.state[Be]>>>0&255;return this},Q.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},Q.prototype._saveState=function(ie){for(var re=0;rethis.blockSize)(new I).update(ie).finish(re).clean();else for(var ne=0;ne1&&ie.update(Q),re&&ie.update(re),ie.update(ne),ie.finish(Q),ne[0]++}p.HMAC=O,p.hash=Y,p.default=Y,p.hmac=$;var F=new Uint8Array(p.digestLength);p.hkdf=function L(Q,ie,re,ne){void 0===ie&&(ie=F),void 0===ne&&(ne=32);for(var le=new Uint8Array([1]),xe=$(ie,Q),Ae=new O(xe),Be=new Uint8Array(Ae.digestLength),mt=Be.length,wt=new Uint8Array(ne),We=0;We>>24&255,Ae[1]=mi>>>16&255,Ae[2]=mi>>>8&255,Ae[3]=mi>>>0&255,le.reset(),le.update(ie),le.update(Ae),le.finish(mt);for(var Ht=0;Ht=L.status}function O(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(U){var L=document.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(L)}}var Y="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,$=Y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=Y.saveAs||("object"!=typeof window||window!==Y?function(){}:"download"in HTMLAnchorElement.prototype&&!$?function(F,L,U){var Q=Y.URL||Y.webkitURL,ie=document.createElement("a");ie.download=L=L||F.name||"download",ie.rel="noopener","string"==typeof F?(ie.href=F,ie.origin===location.origin?O(ie):I(ie.href)?j(F,L,U):O(ie,ie.target="_blank")):(ie.href=Q.createObjectURL(F),setTimeout(function(){Q.revokeObjectURL(ie.href)},4e4),setTimeout(function(){O(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(F,L,U){if(L=L||F.name||"download","string"!=typeof F)navigator.msSaveOrOpenBlob(function B(F,L){return void 0===L?L={autoBom:!1}:"object"!=typeof L&&(console.warn("Deprecated: Expected third argument to be a object"),L={autoBom:!L}),L.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\ufeff",F],{type:F.type}):F}(F,U),L);else if(I(F))j(F,L,U);else{var Q=document.createElement("a");Q.href=F,Q.target="_blank",setTimeout(function(){O(Q)})}}:function(F,L,U,Q){if((Q=Q||open("","_blank"))&&(Q.document.title=Q.document.body.innerText="downloading..."),"string"==typeof F)return j(F,L,U);var ie="application/octet-stream"===F.type,re=/constructor/i.test(Y.HTMLElement)||Y.safari,ne=/CriOS\/[\d]+/.test(navigator.userAgent);if((ne||ie&&re||$)&&"undefined"!=typeof FileReader){var le=new FileReader;le.onloadend=function(){var Be=le.result;Be=ne?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),Q?Q.location.href=Be:location=Be,Q=null},le.readAsDataURL(F)}else{var xe=Y.URL||Y.webkitURL,Ae=xe.createObjectURL(F);Q?Q.location=Ae:location.href=Ae,Q=null,setTimeout(function(){xe.revokeObjectURL(Ae)},4e4)}});Y.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=p)},1869:(z,W,E)=>{"use strict";E.d(W,{d:()=>p});var T=E(3489);class p extends T.L{constructor(j,I,O){super(),this.parent=j,this.outerValue=I,this.outerIndex=O,this.index=0}_next(j){this.parent.notifyNext(this.outerValue,j,this.outerIndex,this.index++,this)}_error(j){this.parent.notifyError(j,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,W,E)=>{"use strict";E.d(W,{P:()=>I});var T=E(8896),p=E(1086),B=E(1737);class I{constructor(Y,$,G){this.kind=Y,this.value=$,this.error=G,this.hasValue="N"===Y}observe(Y){switch(this.kind){case"N":return Y.next&&Y.next(this.value);case"E":return Y.error&&Y.error(this.error);case"C":return Y.complete&&Y.complete()}}do(Y,$,G){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return $&&$(this.error);case"C":return G&&G()}}accept(Y,$,G){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,$,G)}toObservable(){switch(this.kind){case"N":return(0,p.of)(this.value);case"E":return(0,B._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new I("N",Y):I.undefinedValueNotification}static createError(Y){return new I("E",void 0,Y)}static createComplete(){return I.completeNotification}}I.completeNotification=new I("C"),I.undefinedValueNotification=new I("N",void 0)},2916:(z,W,E)=>{"use strict";E.d(W,{y:()=>L});var T=E(3489),B=E(7668),j=E(3292),O=E(3821),Y=E(5379);var F=E(2830);let L=(()=>{class Q{constructor(re){this._isScalar=!1,re&&(this._subscribe=re)}lift(re){const ne=new Q;return ne.source=this,ne.operator=re,ne}subscribe(re,ne,le){const{operator:xe}=this,Ae=function I(Q,ie,re){if(Q){if(Q instanceof T.L)return Q;if(Q[B.b])return Q[B.b]()}return Q||ie||re?new T.L(Q,ie,re):new T.L(j.c)}(re,ne,le);if(Ae.add(xe?xe.call(Ae,this.source):this.source||F.v.useDeprecatedSynchronousErrorHandling&&!Ae.syncErrorThrowable?this._subscribe(Ae):this._trySubscribe(Ae)),F.v.useDeprecatedSynchronousErrorHandling&&Ae.syncErrorThrowable&&(Ae.syncErrorThrowable=!1,Ae.syncErrorThrown))throw Ae.syncErrorValue;return Ae}_trySubscribe(re){try{return this._subscribe(re)}catch(ne){F.v.useDeprecatedSynchronousErrorHandling&&(re.syncErrorThrown=!0,re.syncErrorValue=ne),function p(Q){for(;Q;){const{closed:ie,destination:re,isStopped:ne}=Q;if(ie||ne)return!1;Q=re&&re instanceof T.L?re:null}return!0}(re)?re.error(ne):console.warn(ne)}}forEach(re,ne){return new(ne=U(ne))((le,xe)=>{let Ae;Ae=this.subscribe(Be=>{try{re(Be)}catch(mt){xe(mt),Ae&&Ae.unsubscribe()}},xe,le)})}_subscribe(re){const{source:ne}=this;return ne&&ne.subscribe(re)}[O.L](){return this}pipe(...re){return 0===re.length?this:function G(Q){return 0===Q.length?Y.y:1===Q.length?Q[0]:function(re){return Q.reduce((ne,le)=>le(ne),re)}}(re)(this)}toPromise(re){return new(re=U(re))((ne,le)=>{let xe;this.subscribe(Ae=>xe=Ae,Ae=>le(Ae),()=>ne(xe))})}}return Q.create=ie=>new Q(ie),Q})();function U(Q){if(Q||(Q=F.v.Promise||Promise),!Q)throw new Error("no Promise impl found");return Q}},3292:(z,W,E)=>{"use strict";E.d(W,{c:()=>B});var T=E(2830),p=E(2782);const B={closed:!0,next(j){},error(j){if(T.v.useDeprecatedSynchronousErrorHandling)throw j;(0,p.z)(j)},complete(){}}},826:(z,W,E)=>{"use strict";E.d(W,{L:()=>p});var T=E(3489);class p extends T.L{notifyNext(j,I,O,Y,$){this.destination.next(I)}notifyError(j,I){this.destination.error(j)}notifyComplete(j){this.destination.complete()}}},8929:(z,W,E)=>{"use strict";E.d(W,{Yc:()=>Y,xQ:()=>$});var T=E(2916),p=E(3489),B=E(2654),j=E(5279),I=E(5283),O=E(7668);class Y extends p.L{constructor(L){super(L),this.destination=L}}let $=(()=>{class F extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new Y(this)}lift(U){const Q=new G(this,this);return Q.operator=U,Q}next(U){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:Q}=this,ie=Q.length,re=Q.slice();for(let ne=0;nenew G(L,U),F})();class G extends ${constructor(L,U){super(),this.destination=L,this.source=U}next(L){const{destination:U}=this;U&&U.next&&U.next(L)}error(L){const{destination:U}=this;U&&U.error&&this.destination.error(L)}complete(){const{destination:L}=this;L&&L.complete&&this.destination.complete()}_subscribe(L){const{source:U}=this;return U?this.source.subscribe(L):B.w.EMPTY}}},5283:(z,W,E)=>{"use strict";E.d(W,{W:()=>p});var T=E(2654);class p extends T.w{constructor(j,I){super(),this.subject=j,this.subscriber=I,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,I=j.observers;if(this.subject=null,!I||0===I.length||j.isStopped||j.closed)return;const O=I.indexOf(this.subscriber);-1!==O&&I.splice(O,1)}}},3489:(z,W,E)=>{"use strict";E.d(W,{L:()=>Y});var T=E(7043),p=E(3292),B=E(2654),j=E(7668),I=E(2830),O=E(2782);class Y extends B.w{constructor(F,L,U){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=p.c;break;case 1:if(!F){this.destination=p.c;break}if("object"==typeof F){F instanceof Y?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new $(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new $(this,F,L,U)}}[j.b](){return this}static create(F,L,U){const Q=new Y(F,L,U);return Q.syncErrorThrowable=!1,Q}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class $ extends Y{constructor(F,L,U,Q){super(),this._parentSubscriber=F;let ie,re=this;(0,T.m)(L)?ie=L:L&&(ie=L.next,U=L.error,Q=L.complete,L!==p.c&&(re=Object.create(L),(0,T.m)(re.unsubscribe)&&this.add(re.unsubscribe.bind(re)),re.unsubscribe=this.unsubscribe.bind(this))),this._context=re,this._next=ie,this._error=U,this._complete=Q}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:L}=this;I.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:L}=this,{useDeprecatedSynchronousErrorHandling:U}=I.v;if(this._error)U&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(L.syncErrorThrowable)U?(L.syncErrorValue=F,L.syncErrorThrown=!0):(0,O.z)(F),this.unsubscribe();else{if(this.unsubscribe(),U)throw F;(0,O.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const L=()=>this._complete.call(this._context);I.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,L),this.unsubscribe()):(this.__tryOrUnsub(L),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,L){try{F.call(this._context,L)}catch(U){if(this.unsubscribe(),I.v.useDeprecatedSynchronousErrorHandling)throw U;(0,O.z)(U)}}__tryOrSetError(F,L,U){if(!I.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,U)}catch(Q){return I.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=Q,F.syncErrorThrown=!0,!0):((0,O.z)(Q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},2654:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(6688),p=E(7830),B=E(7043);const I=(()=>{function $(G){return Error.call(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((F,L)=>`${L+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G,this}return $.prototype=Object.create(Error.prototype),$})();class O{constructor(G){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,G&&(this._unsubscribe=G)}unsubscribe(){let G;if(this.closed)return;let{_parentOrParents:F,_unsubscribe:L,_subscriptions:U}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof O)F.remove(this);else if(null!==F)for(let Q=0;QG.concat(F instanceof I?F.errors:F),[])}O.EMPTY=(($=new O).closed=!0,$)},2830:(z,W,E)=>{"use strict";E.d(W,{v:()=>p});let T=!1;const p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(B){if(B){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=B},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,W,E)=>{"use strict";E.d(W,{c:()=>I,N:()=>O});var T=E(8929),p=E(2916),B=E(2654),j=E(4327);class I extends p.y{constructor(L,U){super(),this.source=L,this.subjectFactory=U,this._refCount=0,this._isComplete=!1}_subscribe(L){return this.getSubject().subscribe(L)}getSubject(){const L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let L=this._connection;return L||(this._isComplete=!1,L=this._connection=new B.w,L.add(this.source.subscribe(new Y(this.getSubject(),this))),L.closed&&(this._connection=null,L=B.w.EMPTY)),L}refCount(){return(0,j.x)()(this)}}const O=(()=>{const F=I.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:F._subscribe},_isComplete:{value:F._isComplete,writable:!0},getSubject:{value:F.getSubject},connect:{value:F.connect},refCount:{value:F.refCount}}})();class Y extends T.Yc{constructor(L,U){super(L),this.connectable=U}_error(L){this._unsubscribe(),super._error(L)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const L=this.connectable;if(L){this.connectable=null;const U=L._connection;L._refCount=0,L._subject=null,L._connection=null,U&&U.unsubscribe()}}}},6053:(z,W,E)=>{"use strict";E.d(W,{aj:()=>Y});var T=E(2866),p=E(6688),B=E(826),j=E(9054),I=E(3009);const O={};function Y(...F){let L=null,U=null;return(0,T.K)(F[F.length-1])&&(U=F.pop()),"function"==typeof F[F.length-1]&&(L=F.pop()),1===F.length&&(0,p.k)(F[0])&&(F=F[0]),(0,I.n)(F,U).lift(new $(L))}class ${constructor(L){this.resultSelector=L}call(L,U){return U.subscribe(new G(L,this.resultSelector))}}class G extends B.L{constructor(L,U){super(L),this.resultSelector=U,this.active=0,this.values=[],this.observables=[]}_next(L){this.values.push(O),this.observables.push(L)}_complete(){const L=this.observables,U=L.length;if(0===U)this.destination.complete();else{this.active=U,this.toRespond=U;for(let Q=0;Q{"use strict";E.d(W,{E:()=>p,c:()=>B});var T=E(2916);const p=new T.y(I=>I.complete());function B(I){return I?function j(I){return new T.y(O=>I.schedule(()=>O.complete()))}(I):p}},5254:(z,W,E)=>{"use strict";E.d(W,{D:()=>re});var T=E(2916),p=E(9249),B=E(2654),j=E(3821),Y=E(6454),$=E(5430),L=E(8955),U=E(8515);function re(ne,le){return le?function ie(ne,le){if(null!=ne){if(function F(ne){return ne&&"function"==typeof ne[j.L]}(ne))return function I(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>{const Be=ne[j.L]();Ae.add(Be.subscribe({next(mt){Ae.add(le.schedule(()=>xe.next(mt)))},error(mt){Ae.add(le.schedule(()=>xe.error(mt)))},complete(){Ae.add(le.schedule(()=>xe.complete()))}}))})),Ae})}(ne,le);if((0,L.t)(ne))return function O(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>ne.then(Be=>{Ae.add(le.schedule(()=>{xe.next(Be),Ae.add(le.schedule(()=>xe.complete()))}))},Be=>{Ae.add(le.schedule(()=>xe.error(Be)))}))),Ae})}(ne,le);if((0,U.z)(ne))return(0,Y.r)(ne,le);if(function Q(ne){return ne&&"function"==typeof ne[$.hZ]}(ne)||"string"==typeof ne)return function G(ne,le){if(!ne)throw new Error("Iterable cannot be null");return new T.y(xe=>{const Ae=new B.w;let Be;return Ae.add(()=>{Be&&"function"==typeof Be.return&&Be.return()}),Ae.add(le.schedule(()=>{Be=ne[$.hZ](),Ae.add(le.schedule(function(){if(xe.closed)return;let mt,wt;try{const We=Be.next();mt=We.value,wt=We.done}catch(We){return void xe.error(We)}wt?xe.complete():(xe.next(mt),this.schedule())}))})),Ae})}(ne,le)}throw new TypeError((null!==ne&&typeof ne||ne)+" is not observable")}(ne,le):ne instanceof T.y?ne:new T.y((0,p.s)(ne))}},3009:(z,W,E)=>{"use strict";E.d(W,{n:()=>j});var T=E(2916),p=E(3650),B=E(6454);function j(I,O){return O?(0,B.r)(I,O):new T.y((0,p.V)(I))}},6787:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var T=E(2916),p=E(2866),B=E(9146),j=E(3009);function I(...O){let Y=Number.POSITIVE_INFINITY,$=null,G=O[O.length-1];return(0,p.K)(G)?($=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(Y=O.pop())):"number"==typeof G&&(Y=O.pop()),null===$&&1===O.length&&O[0]instanceof T.y?O[0]:(0,B.J)(Y)((0,j.n)(O,$))}},1086:(z,W,E)=>{"use strict";E.d(W,{of:()=>j});var T=E(2866),p=E(3009),B=E(6454);function j(...I){let O=I[I.length-1];return(0,T.K)(O)?(I.pop(),(0,B.r)(I,O)):(0,p.n)(I)}},1946:(z,W,E)=>{"use strict";E.d(W,{S3:()=>I});var T=E(6688),p=E(3009),B=E(826),j=E(9054);function I(...$){if(1===$.length){if(!(0,T.k)($[0]))return $[0];$=$[0]}return(0,p.n)($,void 0).lift(new O)}class O{call(G,F){return F.subscribe(new Y(G))}}class Y extends B.L{constructor(G){super(G),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(G){this.observables.push(G)}_complete(){const G=this.observables,F=G.length;if(0===F)this.destination.complete();else{for(let L=0;L{"use strict";E.d(W,{_:()=>p});var T=E(2916);function p(j,I){return new T.y(I?O=>I.schedule(B,0,{error:j,subscriber:O}):O=>O.error(j))}function B({error:j,subscriber:I}){I.error(j)}},7221:(z,W,E)=>{"use strict";E.d(W,{K:()=>j});var T=E(826),p=E(1869),B=E(9054);function j(Y){return function(G){const F=new I(Y),L=G.lift(F);return F.caught=L}}class I{constructor($){this.selector=$}call($,G){return G.subscribe(new O($,this.selector,this.caught))}}class O extends T.L{constructor($,G,F){super($),this.selector=G,this.caught=F}error($){if(!this.isStopped){let G;try{G=this.selector($,this.caught)}catch(U){return void super.error(U)}this._unsubscribeAndRecycle();const F=new p.d(this,void 0,void 0);this.add(F);const L=(0,B.D)(this,G,void 0,void 0,F);L!==F&&this.add(L)}}}},1406:(z,W,E)=>{"use strict";E.d(W,{b:()=>p});var T=E(1709);function p(B,j){return(0,T.zg)(B,j,1)}},13:(z,W,E)=>{"use strict";E.d(W,{b:()=>B});var T=E(3489),p=E(353);function B(Y,$=p.P){return G=>G.lift(new j(Y,$))}class j{constructor($,G){this.dueTime=$,this.scheduler=G}call($,G){return G.subscribe(new I($,this.dueTime,this.scheduler))}}class I extends T.L{constructor($,G,F){super($),this.dueTime=G,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next($){this.clearDebounce(),this.lastValue=$,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:$}=this;this.lastValue=null,this.hasValue=!1,this.destination.next($)}}clearDebounce(){const $=this.debouncedSubscription;null!==$&&(this.remove($),$.unsubscribe(),this.debouncedSubscription=null)}}function O(Y){Y.debouncedNext()}},7314:(z,W,E)=>{"use strict";E.d(W,{d:()=>p});var T=E(3489);function p(I=null){return O=>O.lift(new B(I))}class B{constructor(O){this.defaultValue=O}call(O,Y){return Y.subscribe(new j(O,this.defaultValue))}}class j extends T.L{constructor(O,Y){super(O),this.defaultValue=Y,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,W,E)=>{"use strict";E.d(W,{g:()=>I});var T=E(353),p=E(2697),B=E(3489),j=E(9312);function I(G,F=T.P){const U=(0,p.J)(G)?+G-F.now():Math.abs(G);return Q=>Q.lift(new O(U,F))}class O{constructor(F,L){this.delay=F,this.scheduler=L}call(F,L){return L.subscribe(new Y(F,this.delay,this.scheduler))}}class Y extends B.L{constructor(F,L,U){super(F),this.delay=L,this.scheduler=U,this.queue=[],this.active=!1,this.errored=!1}static dispatch(F){const L=F.source,U=L.queue,Q=F.scheduler,ie=F.destination;for(;U.length>0&&U[0].time-Q.now()<=0;)U.shift().notification.observe(ie);if(U.length>0){const re=Math.max(0,U[0].time-Q.now());this.schedule(F,re)}else this.unsubscribe(),L.active=!1}_schedule(F){this.active=!0,this.destination.add(F.schedule(Y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:F}))}scheduleNotification(F){if(!0===this.errored)return;const L=this.scheduler,U=new $(L.now()+this.delay,F);this.queue.push(U),!1===this.active&&this._schedule(L)}_next(F){this.scheduleNotification(j.P.createNext(F))}_error(F){this.errored=!0,this.queue=[],this.destination.error(F),this.unsubscribe()}_complete(){this.scheduleNotification(j.P.createComplete()),this.unsubscribe()}}class ${constructor(F,L){this.time=F,this.notification=L}}},2198:(z,W,E)=>{"use strict";E.d(W,{h:()=>p});var T=E(3489);function p(I,O){return function($){return $.lift(new B(I,O))}}class B{constructor(O,Y){this.predicate=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.predicate,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.predicate=Y,this.thisArg=$,this.count=0}_next(O){let Y;try{Y=this.predicate.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}Y&&this.destination.next(O)}}},7224:(z,W,E)=>{"use strict";E.d(W,{P:()=>Y});var T=E(4450),p=E(2198),B=E(2986),j=E(7314),I=E(4907),O=E(5379);function Y($,G){const F=arguments.length>=2;return L=>L.pipe($?(0,p.h)((U,Q)=>$(U,Q,L)):O.y,(0,B.q)(1),F?(0,j.d)(G):(0,I.T)(()=>new T.K))}},4850:(z,W,E)=>{"use strict";E.d(W,{U:()=>p});var T=E(3489);function p(I,O){return function($){if("function"!=typeof I)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return $.lift(new B(I,O))}}class B{constructor(O,Y){this.project=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.project,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.project=Y,this.count=0,this.thisArg=$||this}_next(O){let Y;try{Y=this.project.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}this.destination.next(Y)}}},9146:(z,W,E)=>{"use strict";E.d(W,{J:()=>B});var T=E(1709),p=E(5379);function B(j=Number.POSITIVE_INFINITY){return(0,T.zg)(p.y,j)}},1709:(z,W,E)=>{"use strict";E.d(W,{zg:()=>O});var T=E(9054),p=E(826),B=E(1869),j=E(4850),I=E(5254);function O(G,F,L=Number.POSITIVE_INFINITY){return"function"==typeof F?U=>U.pipe(O((Q,ie)=>(0,I.D)(G(Q,ie)).pipe((0,j.U)((re,ne)=>F(Q,re,ie,ne))),L)):("number"==typeof F&&(L=F),U=>U.lift(new Y(G,L)))}class Y{constructor(F,L=Number.POSITIVE_INFINITY){this.project=F,this.concurrent=L}call(F,L){return L.subscribe(new $(F,this.project,this.concurrent))}}class $ extends p.L{constructor(F,L,U=Number.POSITIVE_INFINITY){super(F),this.project=L,this.concurrent=U,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(F){this.active0?this._next(L.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,W,E)=>{"use strict";E.d(W,{x:()=>p});var T=E(3489);function p(){return function(O){return O.lift(new B(O))}}class B{constructor(O){this.connectable=O}call(O,Y){const{connectable:$}=this;$._refCount++;const G=new j(O,$),F=Y.subscribe(G);return G.closed||(G.connection=$.connect()),F}}class j extends T.L{constructor(O,Y){super(O),this.connectable=Y}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const Y=O._refCount;if(Y<=0)return void(this.connection=null);if(O._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:$}=this,G=O._connection;this.connection=null,G&&(!$||G===$)&&G.unsubscribe()}}},2474:(z,W,E)=>{"use strict";E.d(W,{B:()=>Y});var T=E(1762);class B{constructor(G,F){this.subjectFactory=G,this.selector=F}call(G,F){const{selector:L}=this,U=this.subjectFactory(),Q=L(U).subscribe(G);return Q.add(F.subscribe(U)),Q}}var j=E(4327),I=E(8929);function O(){return new I.xQ}function Y(){return $=>(0,j.x)()(function p($,G){return function(L){let U;if(U="function"==typeof $?$:function(){return $},"function"==typeof G)return L.lift(new B(U,G));const Q=Object.create(L,T.N);return Q.source=L,Q.subjectFactory=U,Q}}(O)($))}},7545:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(826),p=E(1869),B=E(9054),j=E(4850),I=E(5254);function O(G,F){return"function"==typeof F?L=>L.pipe(O((U,Q)=>(0,I.D)(G(U,Q)).pipe((0,j.U)((ie,re)=>F(U,ie,Q,re))))):L=>L.lift(new Y(G))}class Y{constructor(F){this.project=F}call(F,L){return L.subscribe(new $(F,this.project))}}class $ extends T.L{constructor(F,L){super(F),this.project=L,this.index=0}_next(F){let L;const U=this.index++;try{L=this.project(F,U)}catch(Q){return void this.destination.error(Q)}this._innerSub(L,F,U)}_innerSub(F,L,U){const Q=this.innerSubscription;Q&&Q.unsubscribe();const ie=new p.d(this,L,U),re=this.destination;re.add(ie),this.innerSubscription=(0,B.D)(this,F,void 0,void 0,ie),this.innerSubscription!==ie&&re.add(this.innerSubscription)}_complete(){const{innerSubscription:F}=this;(!F||F.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(F){this.destination.remove(F),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(F,L,U,Q,ie){this.destination.next(L)}}},2986:(z,W,E)=>{"use strict";E.d(W,{q:()=>j});var T=E(3489),p=E(4231),B=E(8896);function j(Y){return $=>0===Y?(0,B.c)():$.lift(new I(Y))}class I{constructor($){if(this.total=$,this.total<0)throw new p.W}call($,G){return G.subscribe(new O($,this.total))}}class O extends T.L{constructor($,G){super($),this.total=G,this.count=0}_next($){const G=this.total,F=++this.count;F<=G&&(this.destination.next($),F===G&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,W,E)=>{"use strict";E.d(W,{b:()=>j});var T=E(3489);function p(){}var B=E(7043);function j(Y,$,G){return function(L){return L.lift(new I(Y,$,G))}}class I{constructor($,G,F){this.nextOrObserver=$,this.error=G,this.complete=F}call($,G){return G.subscribe(new O($,this.nextOrObserver,this.error,this.complete))}}class O extends T.L{constructor($,G,F,L){super($),this._tapNext=p,this._tapError=p,this._tapComplete=p,this._tapError=F||p,this._tapComplete=L||p,(0,B.m)(G)?(this._context=this,this._tapNext=G):G&&(this._context=G,this._tapNext=G.next||p,this._tapError=G.error||p,this._tapComplete=G.complete||p)}_next($){try{this._tapNext.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.next($)}_error($){try{this._tapError.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.error($)}_complete(){try{this._tapComplete.call(this._context)}catch($){return void this.destination.error($)}return this.destination.complete()}}},4907:(z,W,E)=>{"use strict";E.d(W,{T:()=>B});var T=E(4450),p=E(3489);function B(Y=O){return $=>$.lift(new j(Y))}class j{constructor($){this.errorFactory=$}call($,G){return G.subscribe(new I($,this.errorFactory))}}class I extends p.L{constructor($,G){super($),this.errorFactory=G,this.hasValue=!1}_next($){this.hasValue=!0,this.destination.next($)}_complete(){if(this.hasValue)return this.destination.complete();{let $;try{$=this.errorFactory()}catch(G){$=G}this.destination.error($)}}}function O(){return new T.K}},6227:(z,W,E)=>{"use strict";E.d(W,{V:()=>L});var T=E(353);const B=(()=>{function U(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return U.prototype=Object.create(Error.prototype),U})();var j=E(2697),I=E(826),O=E(9054);class ${constructor(Q,ie,re,ne){this.waitFor=Q,this.absoluteTimeout=ie,this.withObservable=re,this.scheduler=ne}call(Q,ie){return ie.subscribe(new G(Q,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class G extends I.L{constructor(Q,ie,re,ne,le){super(Q),this.absoluteTimeout=ie,this.waitFor=re,this.withObservable=ne,this.scheduler=le,this.action=null,this.scheduleTimeout()}static dispatchTimeout(Q){const{withObservable:ie}=Q;Q._unsubscribeAndRecycle(),Q.add((0,O.D)(Q,ie))}scheduleTimeout(){const{action:Q}=this;Q?this.action=Q.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(G.dispatchTimeout,this.waitFor,this))}_next(Q){this.absoluteTimeout||this.scheduleTimeout(),super._next(Q)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var F=E(1737);function L(U,Q=T.P){return function Y(U,Q,ie=T.P){return re=>{let ne=(0,j.J)(U),le=ne?+U-ie.now():Math.abs(U);return re.lift(new $(le,ne,Q,ie))}}(U,(0,F._)(new B),Q)}},6454:(z,W,E)=>{"use strict";E.d(W,{r:()=>B});var T=E(2916),p=E(2654);function B(j,I){return new T.y(O=>{const Y=new p.w;let $=0;return Y.add(I.schedule(function(){$!==j.length?(O.next(j[$++]),O.closed||Y.add(this.schedule())):O.complete()})),Y})}},6686:(z,W,E)=>{"use strict";E.d(W,{o:()=>B});var T=E(2654);class p extends T.w{constructor(I,O){super()}schedule(I,O=0){return this}}class B extends p{constructor(I,O){super(I,O),this.scheduler=I,this.work=O,this.pending=!1}schedule(I,O=0){if(this.closed)return this;this.state=I;const Y=this.id,$=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId($,Y,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId($,this.id,O),this}requestAsyncId(I,O,Y=0){return setInterval(I.flush.bind(I,this),Y)}recycleAsyncId(I,O,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return O;clearInterval(O)}execute(I,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(I,O);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,O){let $,Y=!1;try{this.work(I)}catch(G){Y=!0,$=!!G&&G||new Error(G)}if(Y)return this.unsubscribe(),$}_unsubscribe(){const I=this.id,O=this.scheduler,Y=O.actions,$=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&Y.splice($,1),null!=I&&(this.id=this.recycleAsyncId(O,I,null)),this.delay=null}}},2268:(z,W,E)=>{"use strict";E.d(W,{v:()=>p});let T=(()=>{class B{constructor(I,O=B.now){this.SchedulerAction=I,this.now=O}schedule(I,O=0,Y){return new this.SchedulerAction(this,I).schedule(Y,O)}}return B.now=()=>Date.now(),B})();class p extends T{constructor(j,I=T.now){super(j,()=>p.delegate&&p.delegate!==this?p.delegate.now():I()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,I=0,O){return p.delegate&&p.delegate!==this?p.delegate.schedule(j,I,O):super.schedule(j,I,O)}flush(j){const{actions:I}=this;if(this.active)return void I.push(j);let O;this.active=!0;do{if(O=j.execute(j.state,j.delay))break}while(j=I.shift());if(this.active=!1,O){for(;j=I.shift();)j.unsubscribe();throw O}}}},353:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var T=E(6686);const B=new(E(2268).v)(T.o)},5430:(z,W,E)=>{"use strict";E.d(W,{hZ:()=>p});const p=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,W,E)=>{"use strict";E.d(W,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,W,E)=>{"use strict";E.d(W,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,W,E)=>{"use strict";E.d(W,{W:()=>p});const p=(()=>{function B(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return B.prototype=Object.create(Error.prototype),B})()},4450:(z,W,E)=>{"use strict";E.d(W,{K:()=>p});const p=(()=>{function B(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return B.prototype=Object.create(Error.prototype),B})()},5279:(z,W,E)=>{"use strict";E.d(W,{N:()=>p});const p=(()=>{function B(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return B.prototype=Object.create(Error.prototype),B})()},2782:(z,W,E)=>{"use strict";function T(p){setTimeout(()=>{throw p},0)}E.d(W,{z:()=>T})},5379:(z,W,E)=>{"use strict";function T(p){return p}E.d(W,{y:()=>T})},6688:(z,W,E)=>{"use strict";E.d(W,{k:()=>T});const T=Array.isArray||(p=>p&&"number"==typeof p.length)},8515:(z,W,E)=>{"use strict";E.d(W,{z:()=>T});const T=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2697:(z,W,E)=>{"use strict";function T(p){return p instanceof Date&&!isNaN(+p)}E.d(W,{J:()=>T})},7043:(z,W,E)=>{"use strict";function T(p){return"function"==typeof p}E.d(W,{m:()=>T})},7830:(z,W,E)=>{"use strict";function T(p){return null!==p&&"object"==typeof p}E.d(W,{K:()=>T})},8955:(z,W,E)=>{"use strict";function T(p){return!!p&&"function"!=typeof p.subscribe&&"function"==typeof p.then}E.d(W,{t:()=>T})},2866:(z,W,E)=>{"use strict";function T(p){return p&&"function"==typeof p.schedule}E.d(W,{K:()=>T})},9249:(z,W,E)=>{"use strict";E.d(W,{s:()=>L});var T=E(3650),p=E(2782),j=E(5430),O=E(3821),$=E(8515),G=E(8955),F=E(7830);const L=U=>{if(U&&"function"==typeof U[O.L])return(U=>Q=>{const ie=U[O.L]();if("function"!=typeof ie.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ie.subscribe(Q)})(U);if((0,$.z)(U))return(0,T.V)(U);if((0,G.t)(U))return(U=>Q=>(U.then(ie=>{Q.closed||(Q.next(ie),Q.complete())},ie=>Q.error(ie)).then(null,p.z),Q))(U);if(U&&"function"==typeof U[j.hZ])return(U=>Q=>{const ie=U[j.hZ]();for(;;){const re=ie.next();if(re.done){Q.complete();break}if(Q.next(re.value),Q.closed)break}return"function"==typeof ie.return&&Q.add(()=>{ie.return&&ie.return()}),Q})(U);{const ie=`You provided ${(0,F.K)(U)?"an invalid object":`'${U}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ie)}}},3650:(z,W,E)=>{"use strict";E.d(W,{V:()=>T});const T=p=>B=>{for(let j=0,I=p.length;j{"use strict";E.d(W,{D:()=>j});var T=E(1869),p=E(9249),B=E(2916);function j(I,O,Y,$,G=new T.d(I,Y,$)){if(!G.closed)return O instanceof B.y?O.subscribe(G):(0,p.s)(O)(G)}},655:(z,W,E)=>{"use strict";function $(oe,he,fe,ue){return new(fe||(fe=Promise))(function(ce,nt){function Et(it){try{Ge(ue.next(it))}catch(wn){nt(wn)}}function Vi(it){try{Ge(ue.throw(it))}catch(wn){nt(wn)}}function Ge(it){it.done?ce(it.value):function we(ce){return ce instanceof fe?ce:new fe(function(nt){nt(ce)})}(it.value).then(Et,Vi)}Ge((ue=ue.apply(oe,he||[])).next())})}E.d(W,{mG:()=>$})},9808:(z,W,E)=>{"use strict";E.d(W,{mr:()=>Ae,Ov:()=>Vf,ez:()=>Wl,K0:()=>Y,Do:()=>mt,V_:()=>F,Ye:()=>wt,S$:()=>le,mk:()=>Pr,sg:()=>Ci,O5:()=>$i,PC:()=>Zd,RF:()=>Fi,n9:()=>Qi,b0:()=>Be,lw:()=>$,EM:()=>is,JF:()=>jt,NF:()=>wi,w_:()=>O,bD:()=>co,q:()=>B,Mx:()=>ao,HT:()=>I});var T=E(5e3);let p=null;function B(){return p}function I(H){p||(p=H)}class O{}const Y=new T.OlP("DocumentToken");let $=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function G(){return(0,T.LFG)(L)}()},providedIn:"platform"}),H})();const F=new T.OlP("Location Initialized");let L=(()=>{class H extends ${constructor(M){super(),this._doc=M,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",M,!1),()=>V.removeEventListener("popstate",M)}onHashChange(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",M,!1),()=>V.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,V,X){U()?this._history.pushState(M,V,X):this.location.hash=X}replaceState(M,V,X){U()?this._history.replaceState(M,V,X):this.location.hash=X}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(Y))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function Q(){return new L((0,T.LFG)(Y))}()},providedIn:"platform"}),H})();function U(){return!!window.history.pushState}function ie(H,k){if(0==H.length)return k;if(0==k.length)return H;let M=0;return H.endsWith("/")&&M++,k.startsWith("/")&&M++,2==M?H+k.substring(1):1==M?H+k:H+"/"+k}function re(H){const k=H.match(/#|\?|$/),M=k&&k.index||H.length;return H.slice(0,M-("/"===H[M-1]?1:0))+H.slice(M)}function ne(H){return H&&"?"!==H[0]?"?"+H:H}let le=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function xe(H){const k=(0,T.LFG)(Y).location;return new Be((0,T.LFG)($),k&&k.origin||"")}()},providedIn:"root"}),H})();const Ae=new T.OlP("appBaseHref");let Be=(()=>{class H extends le{constructor(M,V){if(super(),this._platformLocation=M,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}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 ie(this._baseHref,M)}path(M=!1){const V=this._platformLocation.pathname+ne(this._platformLocation.search),X=this._platformLocation.hash;return X&&M?`${V}${X}`:V}pushState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),mt=(()=>{class H extends le{constructor(M,V){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}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}path(M=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(M){const V=ie(this._baseHref,M);return V.length>0?"#"+V:V}pushState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),wt=(()=>{class H{constructor(M,V){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=M;const X=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=re(Ht(X)),this._platformStrategy.onPopState(de=>{this._subject.emit({url:this.path(!0),pop:!0,state:de.state,type:de.type})})}path(M=!1){return this.normalize(this._platformStrategy.path(M))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(M,V=""){return this.path()==this.normalize(M+ne(V))}normalize(M){return H.stripTrailingSlash(function mi(H,k){return H&&k.startsWith(H)?k.substring(H.length):k}(this._baseHref,Ht(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._platformStrategy.prepareExternalUrl(M)}go(M,V="",X=null){this._platformStrategy.pushState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}replaceState(M,V="",X=null){this._platformStrategy.replaceState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformStrategy).historyGo)||void 0===X||X.call(V,M)}onUrlChange(M){this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(M="",V){this._urlChangeListeners.forEach(X=>X(M,V))}subscribe(M,V,X){return this._subject.subscribe({next:M,error:V,complete:X})}}return H.normalizeQueryParams=ne,H.joinWithSlash=ie,H.stripTrailingSlash=re,H.\u0275fac=function(M){return new(M||H)(T.LFG(le),T.LFG($))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function We(){return new wt((0,T.LFG)(le),(0,T.LFG)($))}()},providedIn:"root"}),H})();function Ht(H){return H.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Zero=0]="Zero",he[he.One=1]="One",he[he.Two=2]="Two",he[he.Few=3]="Few",he[he.Many=4]="Many",he[he.Other=5]="Other",he))();const cr=T.kL8;class Bt{}let Mn=(()=>{class H extends Bt{constructor(M){super(),this.locale=M}getPluralCategory(M,V){switch(cr(V||this.locale)(M)){case he.Zero:return"zero";case he.One:return"one";case he.Two:return"two";case he.Few:return"few";case he.Many:return"many";default:return"other"}}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(T.soG))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();function ao(H,k){k=encodeURIComponent(k);for(const M of H.split(";")){const V=M.indexOf("="),[X,de]=-1==V?[M,""]:[M.slice(0,V),M.slice(V+1)];if(X.trim()===k)return decodeURIComponent(de)}return null}let Pr=(()=>{class H{constructor(M,V,X,de){this._iterableDiffers=M,this._keyValueDiffers=V,this._ngEl=X,this._renderer=de,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(M){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof M?M.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(M){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof M?M.split(/\s+/):M,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const M=this._iterableDiffer.diff(this._rawClass);M&&this._applyIterableChanges(M)}else if(this._keyValueDiffer){const M=this._keyValueDiffer.diff(this._rawClass);M&&this._applyKeyValueChanges(M)}}_applyKeyValueChanges(M){M.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(M){M.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(V.item)}`);this._toggleClass(V.item,!0)}),M.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!0)):Object.keys(M).forEach(V=>this._toggleClass(V,!!M[V])))}_removeClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!1)):Object.keys(M).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(M,V){(M=M.trim())&&M.split(/\s+/g).forEach(X=>{V?this._renderer.addClass(this._ngEl.nativeElement,X):this._renderer.removeClass(this._ngEl.nativeElement,X)})}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),H})();class sa{constructor(k,M,V,X){this.$implicit=k,this.ngForOf=M,this.index=V,this.count=X}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 Ci=(()=>{class H{constructor(M,V,X){this._viewContainer=M,this._template=V,this._differs=X,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}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 V=this._viewContainer;M.forEachOperation((X,de,me)=>{if(null==X.previousIndex)V.createEmbeddedView(this._template,new sa(X.item,this._ngForOf,-1,-1),null===me?void 0:me);else if(null==me)V.remove(null===de?void 0:de);else if(null!==de){const Oe=V.get(de);V.move(Oe,me),oa(Oe,X)}});for(let X=0,de=V.length;X{oa(V.get(X.currentIndex),X)})}static ngTemplateContextGuard(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),H})();function oa(H,k){H.context.$implicit=k.item}let $i=(()=>{class H{constructor(M,V){this._viewContainer=M,this._context=new Rt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Kd("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Kd("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,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),H})();class Rt{constructor(){this.$implicit=null,this.ngIf=null}}function Kd(H,k){if(k&&!k.createEmbeddedView)throw new Error(`${H} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class zl{constructor(k,M){this._viewContainerRef=k,this._templateRef=M,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Fi=(()=>{class H{constructor(){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||(this._defaultViews=[]),this._defaultViews.push(M)}_matchCase(M){const V=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(M){if(this._defaultViews&&M!==this._defaultUsed){this._defaultUsed=M;for(let V=0;V{class H{constructor(M,V,X){this.ngSwitch=X,X._addCase(),this._view=new zl(M,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Fi,9))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),H})(),Zd=(()=>{class H{constructor(M,V,X){this._ngEl=M,this._differs=V,this._renderer=X,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,V){const[X,de]=M.split(".");null!=(V=null!=V&&de?`${V}${de}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,X,V):this._renderer.removeStyle(this._ngEl.nativeElement,X)}_applyChanges(M){M.forEachRemovedItem(V=>this._setStyle(V.key,null)),M.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),M.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),H})();class Xb{createSubscription(k,M){return k.subscribe({next:M,error:V=>{throw V}})}dispose(k){k.unsubscribe()}onDestroy(k){k.unsubscribe()}}class eC{createSubscription(k,M){return k.then(M,V=>{throw V})}dispose(k){}onDestroy(k){}}const tC=new eC,iC=new Xb;let Vf=(()=>{class H{constructor(M){this._ref=M,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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,V=>this._updateLatestValue(M,V))}_selectStrategy(M){if((0,T.QGY)(M))return tC;if((0,T.F4k)(M))return iC;throw function ln(H,k){return new T.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,V){M===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.sBO,16))},H.\u0275pipe=T.Yjl({name:"async",type:H,pure:!1}),H})(),Wl=(()=>{class H{}return H.\u0275fac=function(M){return new(M||H)},H.\u0275mod=T.oAB({type:H}),H.\u0275inj=T.cJS({providers:[{provide:Bt,useClass:Mn}]}),H})();const co="browser";function wi(H){return H===co}let is=(()=>{class H{}return H.\u0275prov=(0,T.Yz7)({token:H,providedIn:"root",factory:()=>new ns((0,T.LFG)(Y),window)}),H})();class ns{constructor(k,M){this.document=k,this.window=M,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const M=function Yl(H,k){const M=H.getElementById(k)||H.getElementsByName(k)[0];if(M)return M;if("function"==typeof H.createTreeWalker&&H.body&&(H.body.createShadowRoot||H.body.attachShadow)){const V=H.createTreeWalker(H.body,NodeFilter.SHOW_ELEMENT);let X=V.currentNode;for(;X;){const de=X.shadowRoot;if(de){const me=de.getElementById(k)||de.querySelector(`[name="${k}"]`);if(me)return me}X=V.nextNode()}}return null}(this.document,k);M&&(this.scrollToElement(M),M.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const M=this.window.history;M&&M.scrollRestoration&&(M.scrollRestoration=k)}}scrollToElement(k){const M=k.getBoundingClientRect(),V=M.left+this.window.pageXOffset,X=M.top+this.window.pageYOffset,de=this.offset();this.window.scrollTo(V-de[0],X-de[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=uo(this.window.history)||uo(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch(k){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(k){return!1}}}function uo(H){return Object.getOwnPropertyDescriptor(H,"scrollRestoration")}class jt{}},520:(z,W,E)=>{"use strict";E.d(W,{TP:()=>Et,eN:()=>ce,JF:()=>_i,qT:()=>Ae,WM:()=>F,LE:()=>le,Zn:()=>fe});var T=E(9808),p=E(5e3),B=E(1086),j=E(2916),I=E(1406),O=E(2198),Y=E(4850);class ${}class G{}class F{constructor(ee){this.normalizedNames=new Map,this.lazyUpdate=null,ee?this.lazyInit="string"==typeof ee?()=>{this.headers=new Map,ee.split("\n").forEach(te=>{const ye=te.indexOf(":");if(ye>0){const Ce=te.slice(0,ye),Me=Ce.toLowerCase(),Ee=te.slice(ye+1).trim();this.maybeSetNormalizedName(Ce,Me),this.headers.has(Me)?this.headers.get(Me).push(Ee):this.headers.set(Me,[Ee])}})}:()=>{this.headers=new Map,Object.keys(ee).forEach(te=>{let ye=ee[te];const Ce=te.toLowerCase();"string"==typeof ye&&(ye=[ye]),ye.length>0&&(this.headers.set(Ce,ye),this.maybeSetNormalizedName(te,Ce))})}:this.headers=new Map}has(ee){return this.init(),this.headers.has(ee.toLowerCase())}get(ee){this.init();const te=this.headers.get(ee.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ee){return this.init(),this.headers.get(ee.toLowerCase())||null}append(ee,te){return this.clone({name:ee,value:te,op:"a"})}set(ee,te){return this.clone({name:ee,value:te,op:"s"})}delete(ee,te){return this.clone({name:ee,value:te,op:"d"})}maybeSetNormalizedName(ee,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ee)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ee=>this.applyUpdate(ee)),this.lazyUpdate=null))}copyFrom(ee){ee.init(),Array.from(ee.headers.keys()).forEach(te=>{this.headers.set(te,ee.headers.get(te)),this.normalizedNames.set(te,ee.normalizedNames.get(te))})}clone(ee){const te=new F;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ee]),te}applyUpdate(ee){const te=ee.name.toLowerCase();switch(ee.op){case"a":case"s":let ye=ee.value;if("string"==typeof ye&&(ye=[ye]),0===ye.length)return;this.maybeSetNormalizedName(ee.name,te);const Ce=("a"===ee.op?this.headers.get(te):void 0)||[];Ce.push(...ye),this.headers.set(te,Ce);break;case"d":const Me=ee.value;if(Me){let Ee=this.headers.get(te);if(!Ee)return;Ee=Ee.filter(Ve=>-1===Me.indexOf(Ve)),0===Ee.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ee)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ee){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ee(this.normalizedNames.get(te),this.headers.get(te)))}}class L{encodeKey(ee){return re(ee)}encodeValue(ee){return re(ee)}decodeKey(ee){return decodeURIComponent(ee)}decodeValue(ee){return decodeURIComponent(ee)}}const Q=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function re(_e){return encodeURIComponent(_e).replace(Q,(ee,te)=>{var ye;return null!==(ye=ie[te])&&void 0!==ye?ye:ee})}function ne(_e){return`${_e}`}class le{constructor(ee={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ee.encoder||new L,ee.fromString){if(ee.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function U(_e,ee){const te=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(Ce=>{const Me=Ce.indexOf("="),[Ee,Ve]=-1==Me?[ee.decodeKey(Ce),""]:[ee.decodeKey(Ce.slice(0,Me)),ee.decodeValue(Ce.slice(Me+1))],gt=te.get(Ee)||[];gt.push(Ve),te.set(Ee,gt)}),te}(ee.fromString,this.encoder)}else ee.fromObject?(this.map=new Map,Object.keys(ee.fromObject).forEach(te=>{const ye=ee.fromObject[te];this.map.set(te,Array.isArray(ye)?ye:[ye])})):this.map=null}has(ee){return this.init(),this.map.has(ee)}get(ee){this.init();const te=this.map.get(ee);return te?te[0]:null}getAll(ee){return this.init(),this.map.get(ee)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ee,te){return this.clone({param:ee,value:te,op:"a"})}appendAll(ee){const te=[];return Object.keys(ee).forEach(ye=>{const Ce=ee[ye];Array.isArray(Ce)?Ce.forEach(Me=>{te.push({param:ye,value:Me,op:"a"})}):te.push({param:ye,value:Ce,op:"a"})}),this.clone(te)}set(ee,te){return this.clone({param:ee,value:te,op:"s"})}delete(ee,te){return this.clone({param:ee,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ee=>{const te=this.encoder.encodeKey(ee);return this.map.get(ee).map(ye=>te+"="+this.encoder.encodeValue(ye)).join("&")}).filter(ee=>""!==ee).join("&")}clone(ee){const te=new le({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ee),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ee=>this.map.set(ee,this.cloneFrom.map.get(ee))),this.updates.forEach(ee=>{switch(ee.op){case"a":case"s":const te=("a"===ee.op?this.map.get(ee.param):void 0)||[];te.push(ne(ee.value)),this.map.set(ee.param,te);break;case"d":if(void 0===ee.value){this.map.delete(ee.param);break}{let ye=this.map.get(ee.param)||[];const Ce=ye.indexOf(ne(ee.value));-1!==Ce&&ye.splice(Ce,1),ye.length>0?this.map.set(ee.param,ye):this.map.delete(ee.param)}}}),this.cloneFrom=this.updates=null)}}class Ae{constructor(){this.map=new Map}set(ee,te){return this.map.set(ee,te),this}get(ee){return this.map.has(ee)||this.map.set(ee,ee.defaultValue()),this.map.get(ee)}delete(ee){return this.map.delete(ee),this}has(ee){return this.map.has(ee)}keys(){return this.map.keys()}}function mt(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function wt(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function We(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class Ht{constructor(ee,te,ye,Ce){let Me;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ee.toUpperCase(),function Be(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==ye?ye:null,Me=Ce):Me=ye,Me&&(this.reportProgress=!!Me.reportProgress,this.withCredentials=!!Me.withCredentials,Me.responseType&&(this.responseType=Me.responseType),Me.headers&&(this.headers=Me.headers),Me.context&&(this.context=Me.context),Me.params&&(this.params=Me.params)),this.headers||(this.headers=new F),this.context||(this.context=new Ae),this.params){const Ee=this.params.toString();if(0===Ee.length)this.urlWithParams=te;else{const Ve=te.indexOf("?");this.urlWithParams=te+(-1===Ve?"?":VeXt.set(ct,ee.setHeaders[ct]),Zt)),ee.setParams&&(lt=Object.keys(ee.setParams).reduce((Xt,ct)=>Xt.set(ct,ee.setParams[ct]),lt)),new Ht(ye,Ce,Ee,{params:lt,headers:Zt,context:Gn,reportProgress:gt,responseType:Me,withCredentials:Ve})}}var Xe=(()=>((Xe=Xe||{})[Xe.Sent=0]="Sent",Xe[Xe.UploadProgress=1]="UploadProgress",Xe[Xe.ResponseHeader=2]="ResponseHeader",Xe[Xe.DownloadProgress=3]="DownloadProgress",Xe[Xe.Response=4]="Response",Xe[Xe.User=5]="User",Xe))();class oe{constructor(ee,te=200,ye="OK"){this.headers=ee.headers||new F,this.status=void 0!==ee.status?ee.status:te,this.statusText=ee.statusText||ye,this.url=ee.url||null,this.ok=this.status>=200&&this.status<300}}class he extends oe{constructor(ee={}){super(ee),this.type=Xe.ResponseHeader}clone(ee={}){return new he({headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class fe extends oe{constructor(ee={}){super(ee),this.type=Xe.Response,this.body=void 0!==ee.body?ee.body:null}clone(ee={}){return new fe({body:void 0!==ee.body?ee.body:this.body,headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class ue extends oe{constructor(ee){super(ee,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ee.url||"(unknown url)"}`:`Http failure response for ${ee.url||"(unknown url)"}: ${ee.status} ${ee.statusText}`,this.error=ee.error||null}}function we(_e,ee){return{body:ee,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let ce=(()=>{class _e{constructor(te){this.handler=te}request(te,ye,Ce={}){let Me;if(te instanceof Ht)Me=te;else{let gt,Zt;gt=Ce.headers instanceof F?Ce.headers:new F(Ce.headers),Ce.params&&(Zt=Ce.params instanceof le?Ce.params:new le({fromObject:Ce.params})),Me=new Ht(te,ye,void 0!==Ce.body?Ce.body:null,{headers:gt,context:Ce.context,params:Zt,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ee=(0,B.of)(Me).pipe((0,I.b)(gt=>this.handler.handle(gt)));if(te instanceof Ht||"events"===Ce.observe)return Ee;const Ve=Ee.pipe((0,O.h)(gt=>gt instanceof fe));switch(Ce.observe||"body"){case"body":switch(Me.responseType){case"arraybuffer":return Ve.pipe((0,Y.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return gt.body}));case"blob":return Ve.pipe((0,Y.U)(gt=>{if(null!==gt.body&&!(gt.body instanceof Blob))throw new Error("Response is not a Blob.");return gt.body}));case"text":return Ve.pipe((0,Y.U)(gt=>{if(null!==gt.body&&"string"!=typeof gt.body)throw new Error("Response is not a string.");return gt.body}));default:return Ve.pipe((0,Y.U)(gt=>gt.body))}case"response":return Ve;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(te,ye={}){return this.request("DELETE",te,ye)}get(te,ye={}){return this.request("GET",te,ye)}head(te,ye={}){return this.request("HEAD",te,ye)}jsonp(te,ye){return this.request("JSONP",te,{params:(new le).append(ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ye={}){return this.request("OPTIONS",te,ye)}patch(te,ye,Ce={}){return this.request("PATCH",te,we(Ce,ye))}post(te,ye,Ce={}){return this.request("POST",te,we(Ce,ye))}put(te,ye,Ce={}){return this.request("PUT",te,we(Ce,ye))}}return _e.\u0275fac=function(te){return new(te||_e)(p.LFG($))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class nt{constructor(ee,te){this.next=ee,this.interceptor=te}handle(ee){return this.interceptor.intercept(ee,this.next)}}const Et=new p.OlP("HTTP_INTERCEPTORS");let Vi=(()=>{class _e{intercept(te,ye){return ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const vn=/^\)\]\}',?\n/;let lr=(()=>{class _e{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(ye=>{const Ce=this.xhrFactory.build();if(Ce.open(te.method,te.urlWithParams),te.withCredentials&&(Ce.withCredentials=!0),te.headers.forEach((ct,Pe)=>Ce.setRequestHeader(ct,Pe.join(","))),te.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const ct=te.detectContentTypeHeader();null!==ct&&Ce.setRequestHeader("Content-Type",ct)}if(te.responseType){const ct=te.responseType.toLowerCase();Ce.responseType="json"!==ct?ct:"text"}const Me=te.serializeBody();let Ee=null;const Ve=()=>{if(null!==Ee)return Ee;const ct=Ce.statusText||"OK",Pe=new F(Ce.getAllResponseHeaders()),an=function oi(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(Ce)||te.url;return Ee=new he({headers:Pe,status:Ce.status,statusText:ct,url:an}),Ee},gt=()=>{let{headers:ct,status:Pe,statusText:an,url:xt}=Ve(),ri=null;204!==Pe&&(ri=void 0===Ce.response?Ce.responseText:Ce.response),0===Pe&&(Pe=ri?200:0);let An=Pe>=200&&Pe<300;if("json"===te.responseType&&"string"==typeof ri){const sn=ri;ri=ri.replace(vn,"");try{ri=""!==ri?JSON.parse(ri):null}catch(xn){ri=sn,An&&(An=!1,ri={error:xn,text:ri})}}An?(ye.next(new fe({body:ri,headers:ct,status:Pe,statusText:an,url:xt||void 0})),ye.complete()):ye.error(new ue({error:ri,headers:ct,status:Pe,statusText:an,url:xt||void 0}))},Zt=ct=>{const{url:Pe}=Ve(),an=new ue({error:ct,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:Pe||void 0});ye.error(an)};let lt=!1;const Gn=ct=>{lt||(ye.next(Ve()),lt=!0);let Pe={type:Xe.DownloadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),"text"===te.responseType&&!!Ce.responseText&&(Pe.partialText=Ce.responseText),ye.next(Pe)},Xt=ct=>{let Pe={type:Xe.UploadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),ye.next(Pe)};return Ce.addEventListener("load",gt),Ce.addEventListener("error",Zt),Ce.addEventListener("timeout",Zt),Ce.addEventListener("abort",Zt),te.reportProgress&&(Ce.addEventListener("progress",Gn),null!==Me&&Ce.upload&&Ce.upload.addEventListener("progress",Xt)),Ce.send(Me),ye.next({type:Xe.Sent}),()=>{Ce.removeEventListener("error",Zt),Ce.removeEventListener("abort",Zt),Ce.removeEventListener("load",gt),Ce.removeEventListener("timeout",Zt),te.reportProgress&&(Ce.removeEventListener("progress",Gn),null!==Me&&Ce.upload&&Ce.upload.removeEventListener("progress",Xt)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return _e.\u0275fac=function(te){return new(te||_e)(p.LFG(T.JF))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const Ja=new p.OlP("XSRF_COOKIE_NAME"),Ka=new p.OlP("XSRF_HEADER_NAME");class Za{}let Sr=(()=>{class _e{constructor(te,ye,Ce){this.doc=te,this.platform=ye,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return _e.\u0275fac=function(te){return new(te||_e)(p.LFG(T.K0),p.LFG(p.Lbi),p.LFG(Ja))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),cr=(()=>{class _e{constructor(te,ye){this.tokenService=te,this.headerName=ye}intercept(te,ye){const Ce=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return ye.handle(te);const Me=this.tokenService.getToken();return null!==Me&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,Me)})),ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(p.LFG(Za),p.LFG(Ka))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Mr=(()=>{class _e{constructor(te,ye){this.backend=te,this.injector=ye,this.chain=null}handle(te){if(null===this.chain){const ye=this.injector.get(Et,[]);this.chain=ye.reduceRight((Ce,Me)=>new nt(Ce,Me),this.backend)}return this.chain.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(p.LFG(G),p.LFG(p.zs3))},_e.\u0275prov=p.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),eo=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:cr,useClass:Vi}]}}static withOptions(te={}){return{ngModule:_e,providers:[te.cookieName?{provide:Ja,useValue:te.cookieName}:[],te.headerName?{provide:Ka,useValue:te.headerName}:[]]}}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=p.oAB({type:_e}),_e.\u0275inj=p.cJS({providers:[cr,{provide:Et,useExisting:cr,multi:!0},{provide:Za,useClass:Sr},{provide:Ja,useValue:"XSRF-TOKEN"},{provide:Ka,useValue:"X-XSRF-TOKEN"}]}),_e})(),_i=(()=>{class _e{}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=p.oAB({type:_e}),_e.\u0275inj=p.cJS({providers:[ce,{provide:$,useClass:Mr},lr,{provide:G,useExisting:lr}],imports:[[eo.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},5e3:(z,W,E)=>{"use strict";E.d(W,{deG:()=>yC,tb:()=>K_,AFp:()=>Lp,ip1:()=>Rd,CZH:()=>La,hGG:()=>vb,z2F:()=>Dl,sBO:()=>CA,Sil:()=>zp,_Vd:()=>hl,EJc:()=>eb,SBq:()=>qi,qLn:()=>mc,vpe:()=>rr,tBr:()=>cc,XFs:()=>Ye,OlP:()=>qt,zs3:()=>In,ZZ4:()=>Rl,aQg:()=>za,soG:()=>kd,YKP:()=>y_,h0i:()=>Va,PXZ:()=>dA,R0b:()=>en,FiY:()=>os,Lbi:()=>Np,g9A:()=>J_,n_E:()=>wd,Qsj:()=>rE,FYo:()=>mp,JOm:()=>gr,q3G:()=>Ut,tp0:()=>Mo,Rgc:()=>ml,dDg:()=>$p,GfV:()=>__,s_b:()=>bl,ifc:()=>Me,eFA:()=>Kp,G48:()=>_A,Gpc:()=>L,f3M:()=>Nx,_c5:()=>_b,VLi:()=>gE,c2e:()=>X_,zSh:()=>xh,wAp:()=>ze,vHH:()=>re,EiD:()=>ku,mCW:()=>Ro,qzn:()=>Po,JVY:()=>a0,pB0:()=>c0,eBb:()=>o0,L6k:()=>s0,LAX:()=>l0,cg1:()=>nd,kL8:()=>np,yhl:()=>OC,dqk:()=>lt,sIi:()=>tl,CqO:()=>fw,QGY:()=>zh,F4k:()=>Hm,RDi:()=>uo,AaK:()=>$,z3N:()=>Or,qOj:()=>Ph,TTD:()=>tt,_Bn:()=>f_,xp6:()=>qo,uIk:()=>Lc,ekj:()=>Gm,Suo:()=>k_,Xpm:()=>io,lG2:()=>Ot,Yz7:()=>Vt,cJS:()=>vn,oAB:()=>ra,Yjl:()=>Ft,Y36:()=>Qc,_UZ:()=>Tm,GkF:()=>hw,BQk:()=>Mm,ynx:()=>yr,qZA:()=>Nh,TgZ:()=>Jc,EpF:()=>pw,n5z:()=>ss,Ikx:()=>tp,LFG:()=>ui,$8M:()=>tc,$Z:()=>Lh,NdJ:()=>Dm,CRH:()=>I_,kcU:()=>qf,O4$:()=>go,oxw:()=>_w,ALo:()=>A_,lcZ:()=>xp,xi3:()=>x_,Dn7:()=>pl,Hsn:()=>Gh,F$t:()=>bw,Q6J:()=>jh,s9C:()=>km,VKq:()=>w_,iGM:()=>P_,MAs:()=>Qy,CHM:()=>jf,oJD:()=>fg,LSH:()=>ko,Udp:()=>Uh,WFA:()=>Pm,d8E:()=>ip,YNc:()=>Gc,_uU:()=>Ow,Oqu:()=>Qm,hij:()=>Yh,AsE:()=>Vs,Gf:()=>R_});var T=E(8929),p=E(2654),B=E(2916),j=E(6787),I=E(2474);function O(h){for(let f in h)if(h[f]===O)return f;throw Error("Could not find renamed property on target object.")}function Y(h,f){for(const m in f)f.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=f[m])}function $(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map($).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const f=h.toString();if(null==f)return""+f;const m=f.indexOf("\n");return-1===m?f:f.substring(0,m)}function G(h,f){return null==h||""===h?null===f?"":f:null==f||""===f?h:h+" "+f}const F=O({__forward_ref__:O});function L(h){return h.__forward_ref__=L,h.toString=function(){return $(this())},h}function U(h){return Q(h)?h():h}function Q(h){return"function"==typeof h&&h.hasOwnProperty(F)&&h.__forward_ref__===L}class re extends Error{constructor(f,m){super(function ne(h,f){return`NG0${Math.abs(h)}${f?": "+f:""}`}(f,m)),this.code=f}}function le(h){return"string"==typeof h?h:null==h?"":String(h)}function xe(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():le(h)}function wt(h,f){const m=f?` in ${f}`:"";throw new re(-201,`No provider for ${xe(h)} found${m}`)}function Ge(h,f){null==h&&function it(h,f,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${f} <=Actual]`))}(f,h,null,"!=")}function Vt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function vn(h){return{providers:h.providers||[],imports:h.imports||[]}}function oi(h){return lr(h,Sr)||lr(h,Mr)}function lr(h,f){return h.hasOwnProperty(f)?h[f]:null}function Za(h){return h&&(h.hasOwnProperty(cr)||h.hasOwnProperty(Jd))?h[cr]:null}const Sr=O({\u0275prov:O}),cr=O({\u0275inj:O}),Mr=O({ngInjectableDef:O}),Jd=O({ngInjectorDef:O});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let eo;function Bi(h){const f=eo;return eo=h,f}function to(h,f,m){const _=oi(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==f?f:void wt($(h),"Injector")}function ee(h){return{toString:h}.toString()}var te=(()=>((te=te||{})[te.OnPush=0]="OnPush",te[te.Default=1]="Default",te))(),Me=(()=>{return(h=Me||(Me={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Me;var h})();const Ee="undefined"!=typeof globalThis&&globalThis,Ve="undefined"!=typeof window&&window,gt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lt=Ee||"undefined"!=typeof global&&global||Ve||gt,ct={},Pe=[],an=O({\u0275cmp:O}),xt=O({\u0275dir:O}),ri=O({\u0275pipe:O}),An=O({\u0275mod:O}),sn=O({\u0275fac:O}),xn=O({__NG_ELEMENT_ID__:O});let kf=0;function io(h){return ee(()=>{const m={},_={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===te.OnPush,directiveDefs:null,pipeDefs:null,selectors:h.selectors||Pe,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Me.Emulated,id:"c",styles:h.styles||Pe,_:null,setInput:null,schemas:h.schemas||null,tView:null},C=h.directives,w=h.features,v=h.pipes;return _.id+=kf++,_.inputs=y(h.inputs,m),_.outputs=y(h.outputs),w&&w.forEach(x=>x(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(Xa):null,_.pipeDefs=v?()=>("function"==typeof v?v():v).map(Tn):null,_})}function Xa(h){return li(h)||function je(h){return h[xt]||null}(h)}function Tn(h){return function En(h){return h[ri]||null}(h)}const jl={};function ra(h){return ee(()=>{const f={type:h.type,bootstrap:h.bootstrap||Pe,declarations:h.declarations||Pe,imports:h.imports||Pe,exports:h.exports||Pe,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null};return null!=h.id&&(jl[h.id]=h.type),f})}function y(h,f){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,f&&(f[C]=w)}return m}const Ot=io;function Ft(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,onDestroy:h.type.prototype.ngOnDestroy||null}}function li(h){return h[an]||null}function di(h,f){const m=h[An]||null;if(!m&&!0===f)throw new Error(`Type ${$(h)} does not have '\u0275mod' property.`);return m}function Fi(h){return Array.isArray(h)&&"object"==typeof h[1]}function Qi(h){return Array.isArray(h)&&!0===h[1]}function Gl(h){return 0!=(8&h.flags)}function ql(h){return 2==(2&h.flags)}function ts(h){return 1==(1&h.flags)}function on(h){return null!==h.template}function Zd(h){return 0!=(512&h[2])}function dn(h,f){return h.hasOwnProperty(sn)?h[sn]:null}class Xd{constructor(f,m,_){this.previousValue=f,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function tt(){return oo}function oo(h){return h.type.prototype.ngOnChanges&&(h.setInput=eu),lo}function lo(){const h=co(this),f=null==h?void 0:h.current;if(f){const m=h.previous;if(m===ct)h.previous=f;else for(let _ in f)m[_]=f[_];h.current=null,this.ngOnChanges(f)}}function eu(h,f,m,_){const C=co(h)||function tu(h,f){return h[Wl]=f}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,x=this.declaredInputs[m],S=v[x];w[x]=new Xd(S&&S.currentValue,f,v===ct),h[_]=f}tt.ngInherit=!0;const Wl="__ngSimpleChanges__";function co(h){return h[Wl]||null}let ns;function uo(h){ns=h}function Yl(){return void 0!==ns?ns:"undefined"!=typeof document?document:void 0}function jt(h){return!!h.listen}const H={createRenderer:(h,f)=>Yl()};function M(h){for(;Array.isArray(h);)h=h[0];return h}function de(h,f){return M(f[h])}function me(h,f){return M(f[h.index])}function Dt(h,f){return h.data[f]}function Tt(h,f){return h[f]}function ht(h,f){const m=f[h];return Fi(m)?m:m[0]}function _t(h){return 4==(4&h[2])}function bt(h){return 128==(128&h[2])}function Je(h,f){return null==f?null:h[f]}function Yi(h){h[18]=0}function vi(h,f){h[5]+=f;let m=h,_=h[3];for(;null!==_&&(1===f&&1===m[5]||-1===f&&0===m[5]);)_[5]+=f,m=_,_=_[3]}const qe={lFrame:Un(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function po(){return qe.bindingsEnabled}function be(){return qe.lFrame.lView}function Ct(){return qe.lFrame.tView}function jf(h){return qe.lFrame.contextLView=h,h[8]}function Gt(){let h=Jl();for(;null!==h&&64===h.type;)h=h.parent;return h}function Jl(){return qe.lFrame.currentTNode}function un(h,f){const m=qe.lFrame;m.currentTNode=h,m.isParent=f}function ru(){return qe.lFrame.isParent}function au(){qe.lFrame.isParent=!1}function hn(){return qe.isInCheckNoChangesMode}function su(h){qe.isInCheckNoChangesMode=h}function ti(){const h=qe.lFrame;let f=h.bindingRootIndex;return-1===f&&(f=h.bindingRootIndex=h.tView.bindingStartIndex),f}function fo(){return qe.lFrame.bindingIndex++}function Vr(h){const f=qe.lFrame,m=f.bindingIndex;return f.bindingIndex=f.bindingIndex+h,m}function lC(h,f){const m=qe.lFrame;m.bindingIndex=m.bindingRootIndex=h,zf(f)}function zf(h){qe.lFrame.currentDirectiveIndex=h}function ou(h){const f=qe.lFrame.currentDirectiveIndex;return-1===f?null:h[f]}function da(){return qe.lFrame.currentQueryIndex}function Gf(h){qe.lFrame.currentQueryIndex=h}function wx(h){const f=h[1];return 2===f.type?f.declTNode:1===f.type?h[6]:null}function cC(h,f,m){if(m&Ye.SkipSelf){let C=f,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=wx(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;f=C,h=w}const _=qe.lFrame=dC();return _.currentTNode=f,_.lView=h,!0}function lu(h){const f=dC(),m=h[1];qe.lFrame=f,f.currentTNode=m.firstChild,f.lView=h,f.tView=m,f.contextLView=h,f.bindingIndex=m.bindingStartIndex,f.inI18n=!1}function dC(){const h=qe.lFrame,f=null===h?null:h.child;return null===f?Un(h):f}function Un(h){const f={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:h,child:null,inI18n:!1};return null!==h&&(h.child=f),f}function ua(){const h=qe.lFrame;return qe.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const uC=ua;function cu(){const h=ua();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function Li(){return qe.lFrame.selectedIndex}function ha(h){qe.lFrame.selectedIndex=h}function Nt(){const h=qe.lFrame;return Dt(h.tView,h.selectedIndex)}function go(){qe.lFrame.currentNamespace="svg"}function qf(){!function uu(){qe.lFrame.currentNamespace=null}()}function hu(h,f){for(let m=f.directiveStart,_=f.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:x,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),x&&((h.contentHooks||(h.contentHooks=[])).push(m,x),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,x)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function pu(h,f,m){pC(h,f,3,m)}function fu(h,f,m,_){(3&h[2])===m&&pC(h,f,m,_)}function Kl(h,f){let m=h[2];(3&m)===f&&(m&=2047,m+=1,h[2]=m)}function pC(h,f,m,_){const w=null!=_?_:-1,v=f.length-1;let x=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else f[S]<0&&(h[18]+=65536),(x>11>16&&(3&h[2])===f){h[2]+=2048;try{w.call(x)}finally{}}}else try{w.call(x)}finally{}}class zt{constructor(f,m,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function Zl(h,f,m){const _=jt(h);let C=0;for(;Cf){v=w-1;break}}}for(;w>16}(h),_=f;for(;m>0;)_=_[15],m--;return _}let _u=!0;function bu(h){const f=_u;return _u=h,f}let Yf=0;function Co(h,f){const m=ec(h,f);if(-1!==m)return m;const _=f[1];_.firstCreatePass&&(h.injectorIndex=f.length,ur(_.data,h),ur(f,null),ur(_.blueprint,null));const C=yo(h,f),w=h.injectorIndex;if($f(C)){const v=Br(C),x=bo(C,f),S=x[1].data;for(let P=0;P<8;P++)f[w+P]=x[v+P]|S[v+P]}return f[w+8]=C,w}function ur(h,f){h.push(0,0,0,0,0,0,0,0,f)}function ec(h,f){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===f[h.injectorIndex+8]?-1:h.injectorIndex}function yo(h,f){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=f;for(;null!==C;){const w=C[1],v=w.type;if(_=2===v?w.declTNode:1===v?C[6]:null,null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function wo(h,f,m){!function gC(h,f,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(xn)&&(_=m[xn]),null==_&&(_=m[xn]=Yf++);const C=255&_;f.data[h+(C>>5)]|=1<=0?255&f:_C:f}(m);if("function"==typeof w){if(!cC(f,h,_))return _&Ye.Host?Jf(C,m,_):Cu(f,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;wt(m)}finally{uC()}}else if("number"==typeof w){let v=null,x=ec(h,f),S=-1,P=_&Ye.Host?f[16][6]:null;for((-1===x||_&Ye.SkipSelf)&&(S=-1===x?yo(h,f):f[x+8],-1!==S&&Xf(_,!1)?(v=f[1],x=Br(S),f=bo(S,f)):x=-1);-1!==x;){const R=f[1];if(bC(w,x,R.data)){const N=$n(x,f,m,v,_,P);if(N!==Zf)return N}S=f[x+8],-1!==S&&Xf(_,f[1].data[x+8]===P)&&bC(w,x,f)?(v=R,x=Br(S),f=bo(S,f)):x=-1}}}return Cu(f,m,_,C)}const Zf={};function _C(){return new as(Gt(),be())}function $n(h,f,m,_,C,w){const v=f[1],x=v.data[h+8],R=yu(x,v,m,null==_?ql(x)&&_u:_!=v&&0!=(3&x.type),C&Ye.Host&&w===x);return null!==R?vo(f,v,R,x):Zf}function yu(h,f,m,_,C){const w=h.providerIndexes,v=f.data,x=1048575&w,S=h.directiveStart,R=w>>20,J=C?x+R:h.directiveEnd;for(let ae=_?x:x+R;ae=S&&pe.type===m)return ae}if(C){const ae=v[S];if(ae&&on(ae)&&ae.type===m)return S}return null}function vo(h,f,m,_){let C=h[m];const w=f.data;if(function Wn(h){return h instanceof zt}(C)){const v=C;v.resolving&&function Ae(h,f){const m=f?`. Dependency path: ${f.join(" > ")} > ${h}`:"";throw new re(-200,`Circular dependency in DI detected for ${h}${m}`)}(xe(w[m]));const x=bu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Bi(v.injectImpl):null;cC(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),f.firstCreatePass&&m>=_.directiveStart&&function hC(h,f,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=f.type.prototype;if(_){const v=oo(f);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],f)}finally{null!==S&&Bi(S),bu(x),v.resolving=!1,uC()}}return C}function bC(h,f,m){return!!(m[f+(h>>5)]&1<{const f=h.prototype.constructor,m=f[sn]||eg(f),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[sn]||eg(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function eg(h){return Q(h)?()=>{const f=eg(U(h));return f&&f()}:dn(h)}function tc(h){return function mC(h,f){if("class"===f)return h.classes;if("style"===f)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(mu(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===f)return m[C+1];C+=2}}}return null}(Gt(),h)}const ai="__parameters__";function xo(h,f,m){return ee(()=>{const _=function nc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(f);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return x.annotation=v,x;function x(S,P,R){const N=S.hasOwnProperty(ai)?S[ai]:Object.defineProperty(S,ai,{value:[]})[ai];for(;N.length<=R;)N.push(null);return(N[R]=N[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class qt{constructor(f,m){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Vt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const yC=new qt("AnalyzeForEntryComponents");function Hn(h,f){void 0===f&&(f=h);for(let m=0;mArray.isArray(m)?hr(m,f):f(m))}function rg(h,f,m){f>=h.length?h.push(m):h.splice(f,0,m)}function rc(h,f){return f>=h.length-1?h.pop():h.splice(f,1)[0]}function ac(h,f){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function Px(h,f,m,_){let C=h.length;if(C==f)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>f;)h[C]=h[C-2],C--;h[f]=m,h[f+1]=_}}(h,_,f,m)),_}function vu(h,f){const m=So(h,f);if(m>=0)return h[1|m]}function So(h,f){return function AC(h,f,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<f?C=w:_=w+1}return~(C<({token:h})),-1),os=lc(xo("Optional"),8),Mo=lc(xo("SkipSelf"),4);let Eu,Su;function Do(h){var f;return(null===(f=function dg(){if(void 0===Eu&&(Eu=null,lt.trustedTypes))try{Eu=lt.trustedTypes.createPolicy("angular",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return Eu}())||void 0===f?void 0:f.createHTML(h))||h}function IC(h){var f;return(null===(f=function ug(){if(void 0===Su&&(Su=null,lt.trustedTypes))try{Su=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return Su}())||void 0===f?void 0:f.createHTML(h))||h}class ls{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Xx extends ls{getTypeName(){return"HTML"}}class e0 extends ls{getTypeName(){return"Style"}}class t0 extends ls{getTypeName(){return"Script"}}class n0 extends ls{getTypeName(){return"URL"}}class r0 extends ls{getTypeName(){return"ResourceURL"}}function Or(h){return h instanceof ls?h.changingThisBreaksApplicationSecurity:h}function Po(h,f){const m=OC(h);if(null!=m&&m!==f){if("ResourceURL"===m&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===f}function OC(h){return h instanceof ls&&h.getTypeName()||null}function a0(h){return new Xx(h)}function s0(h){return new e0(h)}function o0(h){return new t0(h)}function l0(h){return new n0(h)}function c0(h){return new r0(h)}class d0{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const m=(new window.DOMParser).parseFromString(Do(f),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(f):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class u0{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(f){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Do(f),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Do(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const m=f.attributes;for(let C=m.length-1;0Ro(f.trim())).join(", ")),this.buf.push(" ",v,'="',Ru(S),'"')}var h;return this.buf.push(">"),!0}endElement(f){const m=f.nodeName.toLowerCase();Hu.hasOwnProperty(m)&&!_a.hasOwnProperty(m)&&(this.buf.push(""))}chars(f){this.buf.push(Ru(f))}checkClobberedElement(f,m){if(m&&(f.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return m}}const pc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b0=/([^\#-~ |!])/g;function Ru(h){return h.replace(/&/g,"&").replace(pc,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(b0,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let ba;function ku(h,f){let m=null;try{ba=ba||function FC(h){const f=new u0(h);return function h0(){try{return!!(new window.DOMParser).parseFromString(Do(""),"text/html")}catch(h){return!1}}()?new d0(f):f}(h);let _=f?String(f):"";m=ba.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=ba.getInertBodyElement(_)}while(_!==w);return Do((new jC).sanitizeChildren(Iu(m)||m))}finally{if(m){const _=Iu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Iu(h){return"content"in h&&function Vu(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var Ut=(()=>((Ut=Ut||{})[Ut.NONE=0]="NONE",Ut[Ut.HTML=1]="HTML",Ut[Ut.STYLE=2]="STYLE",Ut[Ut.SCRIPT=3]="SCRIPT",Ut[Ut.URL=4]="URL",Ut[Ut.RESOURCE_URL=5]="RESOURCE_URL",Ut))();function fg(h){const f=Io();return f?IC(f.sanitize(Ut.HTML,h)||""):Po(h,"HTML")?IC(Or(h)):ku(Yl(),le(h))}function ko(h){const f=Io();return f?f.sanitize(Ut.URL,h)||"":Po(h,"URL")?Or(h):Ro(le(h))}function Io(){const h=be();return h&&h[12]}const _g="__ngContext__";function xi(h,f){h[_g]=f}function Bu(h){const f=function Vo(h){return h[_g]||null}(h);return f?Array.isArray(f)?f:f.lView:null}function Fu(h){return h.ngOriginalError}function YC(h,...f){h.error(...f)}class mc{constructor(){this._console=console}handleError(f){const m=this._findOriginalError(f),_=function E0(h){return h&&h.ngErrorLogger||YC}(f);_(this._console,"ERROR",f),m&&_(this._console,"ORIGINAL ERROR",m)}_findOriginalError(f){let m=f&&Fu(f);for(;m&&Fu(m);)m=Fu(m);return m||null}}const bc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(lt))();function Dn(h){return h instanceof Function?h():h}var gr=(()=>((gr=gr||{})[gr.Important=1]="Important",gr[gr.DashCase=2]="DashCase",gr))();function Re(h,f){return undefined(h,f)}function ft(h){const f=h[3];return Qi(f)?f[3]:f}function vg(h){return ey(h[13])}function wc(h){return ey(h[4])}function ey(h){for(;null!==h&&!Qi(h);)h=h[4];return h}function Qn(h,f,m,_,C){if(null!=_){let w,v=!1;Qi(_)?w=_:Fi(_)&&(v=!0,_=_[0]);const x=M(_);0===h&&null!==m?null==C?Qu(f,m,x):ya(f,m,x,C||null,!0):1===h&&null!==m?ya(f,m,x,C||null,!0):2===h?function Nr(h,f,m){const _=Lo(h,f);_&&function D0(h,f,m,_){jt(h)?h.removeChild(f,m,_):f.removeChild(m)}(h,_,f,m)}(f,x,v):3===h&&f.destroyNode(x),null!=w&&function Sg(h,f,m,_,C){const w=m[7];w!==M(m)&&Qn(f,h,_,w,C);for(let x=10;x0&&(h[m-1][4]=_[4]);const w=rc(h,10+f);!function jr(h,f){zr(h,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Uu(h,f){if(!(256&f[2])){const m=f[11];jt(m)&&m.destroyNode&&zr(h,f,m,3,null,null),function zu(h){let f=h[13];if(!f)return xg(h[1],h);for(;f;){let m=null;if(Fi(f))m=f[13];else{const _=f[10];_&&(m=_)}if(!m){for(;f&&!f[4]&&f!==h;)Fi(f)&&xg(f[1],f),f=f[3];null===f&&(f=h),Fi(f)&&xg(f[1],f),m=f&&f[4]}f=m}}(f)}}function xg(h,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function Ca(h,f){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)_[w]();f[7]=null}}(h,f),1===f[1].type&&jt(f[11])&&f[11].destroy();const m=f[17];if(null!==m&&Qi(f[3])){m!==f[3]&&qu(m,f);const _=f[19];null!==_&&_.detachView(h)}}}function Wu(h,f,m){return function $u(h,f,m){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===Me.None||C===Me.Emulated)return null}return me(_,m)}(h,f.parent,m)}function ya(h,f,m,_,C){jt(h)?h.insertBefore(f,m,_,C):f.insertBefore(m,_,C)}function Qu(h,f,m){jt(h)?h.appendChild(f,m):f.appendChild(m)}function Yu(h,f,m,_,C){null!==_?ya(h,f,m,_,C):Qu(h,f,m)}function Lo(h,f){return jt(h)?h.parentNode(f):f.parentNode}function Tg(h,f,m){return Eg(h,f,m)}let Eg=function Ku(h,f,m){return 40&h.type?me(h,m):null};function wa(h,f,m,_){const C=Wu(h,_,f),w=f[11],x=Tg(_.parent||f[6],_,f);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[N+1].toLowerCase();const ae=8&_?J:null;if(ae&&-1!==Pn(ae,P,0)||2&_&&P!==J){if(ji(_))return!1;v=!0}}}}else{if(!v&&!ji(_)&&!ji(S))return!1;if(v&&ji(S))continue;v=!1,_=S|1&_}}return ji(_)||v}function ji(h){return 0==(1&h)}function sy(h,f,m,_){if(null===f)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+x+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!ji(v)&&(f+=eh(w,C),C=""),_=v,w=w||!ji(_);m++}return""!==C&&(f+=eh(w,C)),f}const Ze={};function qo(h){Uo(Ct(),be(),Li()+h,hn())}function Uo(h,f,m,_){if(!_)if(3==(3&f[2])){const w=h.preOrderCheckHooks;null!==w&&pu(f,w,m)}else{const w=h.preOrderHooks;null!==w&&fu(f,w,0,m)}ha(m)}function Wo(h,f){return h<<17|f<<2}function Rn(h){return h>>17&32767}function ih(h){return 2|h}function mr(h){return(131068&h)>>2}function nh(h,f){return-131069&h|f<<2}function rh(h){return 1|h}function Lg(h,f){const m=h.contentQueries;if(null!==m)for(let _=0;_20&&Uo(h,f,20,hn()),m(_,C)}finally{ha(w)}}function jg(h,f,m){if(Gl(f)){const C=f.directiveEnd;for(let w=f.directiveStart;w0;){const m=h[--f];if("number"==typeof m&&m<0)return m}return 0})(x)!=S&&x.push(S),x.push(_,C,v)}}function Qg(h,f){null!==h.hostBindings&&h.hostBindings(1,f)}function Yg(h,f){f.flags|=2,(h.components||(h.components=[])).push(f.index)}function Ey(h,f,m){if(m){if(f.exportAs)for(let _=0;_0&&Ah(m)}}function Ah(h){for(let _=vg(h);null!==_;_=wc(_))for(let C=10;C<_.length;C++){const w=_[C];if(1024&w[2]){const v=w[1];bs(v,w,v.template,w[8])}else w[5]>0&&Ah(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&Ah(C)}}function My(h,f){const m=ht(f,h),_=m[1];(function Hy(h,f){for(let m=f.length;mPromise.resolve(null))();function em(h){return h[7]||(h[7]=[])}function tm(h){return h.cleanup||(h.cleanup=[])}function gn(h,f,m){return(null===h||on(h))&&(m=function V(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[f.index])),m[11]}function Ko(h,f){const m=h[9],_=m?m.get(mc,null):null;_&&_.handleError(f)}function im(h,f,m,_,C){for(let w=0;wthis.processProvider(x,f,m)),hr([f],x=>this.processInjectorType(x,[],w)),this.records.set(nm,xs(void 0,this));const v=this.records.get(xh);this.scope=null!=v?v.value:null,this.source=C||("object"==typeof f?null:$(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,m=sc,_=Ye.Default){this.assertNotDestroyed();const C=EC(this),w=Bi(void 0);try{if(!(_&Ye.SkipSelf)){let x=this.records.get(f);if(void 0===x){const S=function Z0(h){return"function"==typeof h||"object"==typeof h&&h instanceof qt}(f)&&oi(f);x=S&&this.injectableDefInScope(S)?xs(Ic(f),Xo):null,this.records.set(f,x)}if(null!=x)return this.hydrate(f,x)}return(_&Ye.Self?rm():this.parent).get(f,m=_&Ye.Optional&&m===sc?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[xu]=v[xu]||[]).unshift($(f)),C)throw v;return function MC(h,f,m,_){const C=h[xu];throw f[TC]&&C.unshift(f[TC]),h.message=function HC(h,f,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.substr(2):h;let C=$(f);if(Array.isArray(f))C=f.map($).join(" -> ");else if("object"==typeof f){let w=[];for(let v in f)if(f.hasOwnProperty(v)){let x=f[v];w.push(v+":"+("string"==typeof x?JSON.stringify(x):$(x)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(Ox,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[xu]=null,h}(v,f,"R3InjectorError",this.source)}throw v}finally{Bi(w),EC(C)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((_,C)=>f.push($(C))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processInjectorType(f,m,_){if(!(f=U(f)))return!1;let C=Za(f);const w=null==C&&f.ngModule||void 0,v=void 0===w?f:w,x=-1!==_.indexOf(v);if(void 0!==w&&(C=Za(w)),null==C)return!1;if(null!=C.imports&&!x){let R;_.push(v);try{hr(C.imports,N=>{this.processInjectorType(N,m,_)&&(void 0===R&&(R=[]),R.push(N))})}finally{}if(void 0!==R)for(let N=0;Nthis.processProvider(pe,J,ae||Pe))}}this.injectorDefTypes.add(v);const S=dn(v)||(()=>new v);this.records.set(v,xs(S,Xo));const P=C.providers;if(null!=P&&!x){const R=f;hr(P,N=>this.processProvider(N,R,P))}return void 0!==w&&void 0!==f.providers}processProvider(f,m,_){let C=Ts(f=U(f))?f:U(f&&f.provide);const w=function om(h,f,m){return Sh(h)?xs(void 0,h.useValue):xs(lm(h),Xo)}(f);if(Ts(f)||!0!==f.multi)this.records.get(C);else{let v=this.records.get(C);v||(v=xs(void 0,Xo,!0),v.factory=()=>lg(v.multi),this.records.set(C,v)),C=f,v.multi.push(f)}this.records.set(C,w)}hydrate(f,m){return m.value===Xo&&(m.value=el,m.value=m.factory()),"object"==typeof m.value&&m.value&&function K0(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(f){if(!f.providedIn)return!1;const m=U(f.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Ic(h){const f=oi(h),m=null!==f?f.factory:dn(h);if(null!==m)return m;if(h instanceof qt)throw new re(204,!1);if(h instanceof Function)return function sm(h){const f=h.length;if(f>0)throw ac(f,"?"),new re(204,!1);const m=function Ja(h){const f=h&&(h[Sr]||h[Mr]);if(f){const m=function Ka(h){if(h.hasOwnProperty("name"))return h.name;const f=(""+h).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),f}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new re(204,!1)}function lm(h,f,m){let _;if(Ts(h)){const C=U(h);return dn(C)||Ic(C)}if(Sh(h))_=()=>U(h.useValue);else if(function mn(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...lg(h.deps||[]));else if(function Yr(h){return!(!h||!h.useExisting)}(h))_=()=>ui(U(h.useExisting));else{const C=U(h&&(h.useClass||h.provide));if(!function J0(h){return!!h.deps}(h))return dn(C)||Ic(C);_=()=>new C(...lg(h.deps))}return _}function xs(h,f,m=!1){return{factory:h,value:f,multi:m?[]:void 0}}function Sh(h){return null!==h&&"object"==typeof h&&Lx in h}function Ts(h){return"function"==typeof h}let In=(()=>{class h{static create(m,_){var C;if(Array.isArray(m))return Th({name:""},_,m,"");{const w=null!==(C=m.name)&&void 0!==C?C:"";return Th({name:w},m.parent,m.providers,w)}}}return h.THROW_IF_NOT_FOUND=sc,h.NULL=new vs,h.\u0275prov=Vt({token:h,providedIn:"any",factory:()=>ui(nm)}),h.__NG_ELEMENT_ID__=-1,h})();function Gy(h,f){hu(Bu(h)[1],Gt())}function Ph(h){let f=function pm(h){return Object.getPrototypeOf(h.prototype).constructor}(h.type),m=!0;const _=[h];for(;f;){let C;if(on(h))C=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new re(903,"");C=f.\u0275dir}if(C){if(m){_.push(C);const v=h;v.inputs=Bc(h.inputs),v.declaredInputs=Bc(h.declaredInputs),v.outputs=Bc(h.outputs);const x=C.hostBindings;x&&qy(h,x);const S=C.viewQuery,P=C.contentQueries;if(S&&Rh(h,S),P&&fm(h,P),Y(h.inputs,C.inputs),Y(h.declaredInputs,C.declaredInputs),Y(h.outputs,C.outputs),on(C)&&C.data.animation){const R=h.data;R.animation=(R.animation||[]).concat(C.data.animation)}}const w=C.features;if(w)for(let v=0;v=0;_--){const C=h[_];C.hostVars=f+=C.hostVars,C.hostAttrs=_o(C.hostAttrs,m=_o(m,C.hostAttrs))}}(_)}function Bc(h){return h===ct?{}:h===Pe?[]:h}function Rh(h,f){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{f(_,C),m(_,C)}:f}function fm(h,f){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{f(_,C,w),m(_,C,w)}:f}function qy(h,f){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{f(_,C),m(_,C)}:f}let Hs=null;function br(){if(!Hs){const h=lt.Symbol;if(h&&h.iterator)Hs=h.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mx(M(ot[_.index])):_.index;if(jt(m)){let ot=null;if(!x&&S&&(ot=function pT(h,f,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?x[S]:null}"string"==typeof v&&(w+=2)}return null}(h,f,C,_.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=w,ot.__ngLastListenerFn__=w,ae=!1;else{w=Rm(_,f,N,w,!1);const vt=m.listen(Ie,C,w);J.push(w,vt),R&&R.push(C,Le,ge,ge+1)}}else w=Rm(_,f,N,w,!0),Ie.addEventListener(C,w,v),J.push(w),R&&R.push(C,Le,ge,v)}else w=Rm(_,f,N,w,!1);const pe=_.outputs;let ve;if(ae&&null!==pe&&(ve=pe[C])){const Te=ve.length;if(Te)for(let Ie=0;Ie0;)f=f[15],h--;return f}(h,qe.lFrame.contextLView))[8]}(h)}function fT(h,f){let m=null;const _=function oy(h){const f=h.attrs;if(null!=f){const m=f.indexOf(5);if(0==(1&m))return f[m+1]}return null}(h);for(let C=0;C=0}function Uh(h,f,m){return Ln(h,f,m,!1),Uh}function Gm(h,f){return Ln(h,f,null,!0),Gm}function Ln(h,f,m,_){const C=be(),w=Ct(),v=Vr(2);w.firstUpdatePass&&function Um(h,f,m,_){const C=h.data;if(null===C[m+1]){const w=C[Li()],v=function qm(h,f){return f>=h.expandoStartIndex}(h,m);(function Bw(h,f){return 0!=(h.flags&(f?16:32))})(w,_)&&null===f&&!v&&(f=!1),f=function Rw(h,f,m,_){const C=ou(h);let w=_?f.residualClasses:f.residualStyles;if(null===C)0===(_?f.classBindings:f.styleBindings)&&(m=Zc(m=Wh(null,h,f,m,_),f.attrs,_),w=null);else{const v=f.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Wh(C,h,f,m,_),null===w){let S=function Is(h,f,m){const _=m?f.classBindings:f.styleBindings;if(0!==mr(_))return h[Rn(_)]}(h,f,_);void 0!==S&&Array.isArray(S)&&(S=Wh(null,h,f,S[1],_),S=Zc(S,f.attrs,_),function kw(h,f,m,_){h[Rn(m?f.classBindings:f.styleBindings)]=_}(h,f,_,S))}else w=function Iw(h,f,m){let _;const C=f.directiveEnd;for(let w=1+f.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Rn(h[x+1]);h[_+1]=Wo(J,x),0!==J&&(h[J+1]=nh(h[J+1],_)),h[x+1]=function Hg(h,f){return 131071&h|f<<17}(h[x+1],_)}else h[_+1]=Wo(x,0),0!==x&&(h[x+1]=nh(h[x+1],_)),x=_;else h[_+1]=Wo(S,0),0===x?x=_:h[S+1]=nh(h[S+1],_),S=_;P&&(h[_+1]=ih(h[_+1])),xw(h,R,_,!0),xw(h,R,_,!1),function mT(h,f,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof f&&So(w,f)>=0&&(m[_+1]=rh(m[_+1]))}(f,R,h,_,w),v=Wo(x,S),w?f.classBindings=v:f.styleBindings=v}(C,w,f,m,v,_)}}(w,h,v,_),f!==Ze&&Ei(C,v,f)&&function Wm(h,f,m,_,C,w,v,x){if(!(3&f.type))return;const S=h.data,P=S[x+1];Qh(function Dg(h){return 1==(1&h)}(P)?$m(S,f,m,C,mr(P),v):void 0)||(Qh(w)||function Hc(h){return 2==(2&h)}(P)&&(w=$m(S,null,m,C,x,v)),function Gr(h,f,m,_,C){const w=jt(h);if(f)C?w?h.addClass(m,_):m.classList.add(_):w?h.removeClass(m,_):m.classList.remove(_);else{let v=-1===_.indexOf("-")?void 0:gr.DashCase;if(null==C)w?h.removeStyle(m,_,v):m.style.removeProperty(_);else{const x="string"==typeof C&&C.endsWith("!important");x&&(C=C.slice(0,-10),v|=gr.Important),w?h.setStyle(m,_,C,v):m.style.setProperty(_,C,x?"important":"")}}}(_,v,de(Li(),m),C,w))}(w,w.data[Li()],C,C[11],h,C[v+1]=function CT(h,f){return null==h||("string"==typeof f?h+=f:"object"==typeof h&&(h=$(Or(h)))),h}(f,m),_,v)}function Wh(h,f,m,_,C){let w=null;const v=m.directiveEnd;let x=m.directiveStylingLast;for(-1===x?x=m.directiveStart:x++;x0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,N=null===R;let J=m[C+1];J===Ze&&(J=N?Pe:void 0);let ae=N?vu(J,_):R===_?J:void 0;if(P&&!Qh(ae)&&(ae=vu(S,_)),Qh(ae)&&(x=ae,v))return x;const pe=h[C+1];C=v?Rn(pe):mr(pe)}if(null!==f){let S=w?f.residualClasses:f.residualStyles;null!=S&&(x=vu(S,_))}return x}function Qh(h){return void 0!==h}function Ow(h,f=""){const m=be(),_=Ct(),C=h+20,w=_.firstCreatePass?Wr(_,C,1,f,null):_.data[C],v=m[C]=function vc(h,f){return jt(h)?h.createText(f):h.createTextNode(f)}(m[11],f);wa(_,m,v,w),un(w,!1)}function Qm(h){return Yh("",h,""),Qm}function Yh(h,f,m){const _=be(),C=Bn(_,h,f,m);return C!==Ze&&kn(_,Li(),C),Yh}function Vs(h,f,m,_,C){const w=be(),v=pi(w,h,f,m,_,C);return v!==Ze&&kn(w,Li(),v),Vs}function tp(h,f,m){const _=be();return Ei(_,fo(),f)&&ki(Ct(),Nt(),_,h,f,_[11],m,!0),tp}function ip(h,f,m){const _=be();if(Ei(_,fo(),f)){const w=Ct(),v=Nt();ki(w,v,_,h,f,gn(ou(w.data),v,_),m,!0)}return ip}const Pa=void 0;var td=["en",[["a","p"],["AM","PM"],Pa],[["AM","PM"],Pa,Pa],[["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"]],Pa,[["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"]],Pa,[["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}",Pa,"{1} 'at' {0}",Pa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Uw(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let Bs={};function nd(h){const f=function Ww(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=rp(f);if(m)return m;const _=f.split("-")[0];if(m=rp(_),m)return m;if("en"===_)return td;throw new Error(`Missing locale data for the locale "${h}".`)}function np(h){return nd(h)[ze.PluralCase]}function rp(h){return h in Bs||(Bs[h]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[h]),Bs[h]}var ze=(()=>((ze=ze||{})[ze.LocaleId=0]="LocaleId",ze[ze.DayPeriodsFormat=1]="DayPeriodsFormat",ze[ze.DayPeriodsStandalone=2]="DayPeriodsStandalone",ze[ze.DaysFormat=3]="DaysFormat",ze[ze.DaysStandalone=4]="DaysStandalone",ze[ze.MonthsFormat=5]="MonthsFormat",ze[ze.MonthsStandalone=6]="MonthsStandalone",ze[ze.Eras=7]="Eras",ze[ze.FirstDayOfWeek=8]="FirstDayOfWeek",ze[ze.WeekendRange=9]="WeekendRange",ze[ze.DateFormat=10]="DateFormat",ze[ze.TimeFormat=11]="TimeFormat",ze[ze.DateTimeFormat=12]="DateTimeFormat",ze[ze.NumberSymbols=13]="NumberSymbols",ze[ze.NumberFormats=14]="NumberFormats",ze[ze.CurrencyCode=15]="CurrencyCode",ze[ze.CurrencySymbol=16]="CurrencySymbol",ze[ze.CurrencyName=17]="CurrencyName",ze[ze.Currencies=18]="Currencies",ze[ze.Directionality=19]="Directionality",ze[ze.PluralCase=20]="PluralCase",ze[ze.ExtraData=21]="ExtraData",ze))();const cl="en-US";let n_=cl;function hp(h,f,m,_,C){if(h=U(h),Array.isArray(h))for(let w=0;w>20;if(Ts(h)||!h.multi){const ae=new zt(S,C,Qc),pe=ud(x,f,C?R:R+J,N);-1===pe?(wo(Co(P,v),w,x),pp(w,h,f.length),f.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(ae),v.push(ae)):(m[pe]=ae,v[pe]=ae)}else{const ae=ud(x,f,R+J,N),pe=ud(x,f,R,R+J),ve=ae>=0&&m[ae],Te=pe>=0&&m[pe];if(C&&!Te||!C&&!ve){wo(Co(P,v),w,x);const Ie=function wv(h,f,m,_,C){const w=new zt(h,m,Qc);return w.multi=[],w.index=f,w.componentProviders=0,h_(w,C,_&&!m),w}(C?yv:p_,m.length,C,_,S);!C&&Te&&(m[pe].providerFactory=Ie),pp(w,h,f.length,0),f.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Ie),v.push(Ie)}else pp(w,h,ae>-1?ae:pe,h_(m[C?pe:ae],S,!C&&_));!C&&_&&Te&&m[pe].componentProviders++}}}function pp(h,f,m,_){const C=Ts(f),w=function Mh(h){return!!h.useClass}(f);if(C||w){const S=(w?U(f.useClass):f).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&f.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function h_(h,f,m){return m&&h.componentProviders++,h.multi.push(f)-1}function ud(h,f,m,_){for(let C=m;C<_;C++)if(f[C]===h)return C;return-1}function p_(h,f,m,_){return fp(this.multi,[])}function yv(h,f,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,x=vo(m,m[1],this.providerFactory.index,_);w=x.slice(0,v),fp(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function Cv(h,f,m){const _=Ct();if(_.firstCreatePass){const C=on(h);hp(m,_.data,_.blueprint,C,!0),hp(f,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,f)}}class ut{}class gp{resolveComponentFactory(f){throw function vv(h){const f=Error(`No component factory found for ${$(h)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=h,f}(f)}}let hl=(()=>{class h{}return h.NULL=new gp,h})();function xv(){return Ns(Gt(),be())}function Ns(h,f){return new qi(me(h,f))}let qi=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=xv,h})();function m_(h){return h instanceof qi?h.nativeElement:h}class mp{}let rE=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function ir(){const h=be(),m=ht(Gt().index,h);return function fi(h){return h[11]}(Fi(m)?m:h)}(),h})(),Ev=(()=>{class h{}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:()=>null}),h})();class __{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const b_=new __("13.2.2"),hd={};function pd(h,f,m,_,C=!1){for(;null!==m;){const w=f[m.index];if(null!==w&&_.push(M(w)),Qi(w))for(let x=10;x-1&&(Fo(f,_),rc(m,_))}this._attachedToViewContainer=!1}Uu(this._lView[1],this._lView)}onDestroy(f){zg(this._lView[1],this._lView,null,f)}markForCheck(){Ne(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Xg(this._lView[1],this._lView,this.context)}checkNoChanges(){!function $r(h,f,m){su(!0);try{Xg(h,f,m)}finally{su(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Nu(h,f){zr(h,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new re(902,"");this._appRef=f}}class Sv extends zs{constructor(f){super(f),this._view=f}detectChanges(){ws(this._view)}checkNoChanges(){!function Qr(h){su(!0);try{ws(h)}finally{su(!1)}}(this._view)}get context(){return null}}class _p extends hl{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const m=li(f);return new Ia(m,this.ngModule)}}function bp(h){const f=[];for(let m in h)h.hasOwnProperty(m)&&f.push({propName:h[m],templateName:m});return f}const ka=new qt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>bc});class Ia extends ut{constructor(f,m){super(),this.componentDef=f,this.ngModule=m,this.componentType=f.type,this.selector=function dy(h){return h.map(Mc).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return bp(this.componentDef.inputs)}get outputs(){return bp(this.componentDef.outputs)}create(f,m,_,C){const w=(C=C||this.ngModule)?function yt(h,f){return{get:(m,_,C)=>{const w=h.get(m,hd,C);return w!==hd||_===hd?w:f.get(m,_,C)}}}(f,C.injector):f,v=w.get(mp,H),x=w.get(Ev,null),S=v.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",R=_?function Ch(h,f,m){if(jt(h))return h.selectRootElement(f,m===Me.ShadowDom);let _="string"==typeof f?h.querySelector(f):f;return _.textContent="",_}(S,_,this.componentDef.encapsulation):Oo(v.createRenderer(null,this.componentDef),P,function fd(h){const f=h.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(P)),N=this.componentDef.onPush?576:528,J=function hm(h,f){return{components:[],scheduler:h||bc,clean:Y0,playerHandler:f||null,flags:0}}(),ae=Ri(0,null,null,1,0,null,null,null,null,null),pe=_r(null,ae,J,N,null,null,v,S,x,w);let ve,Te;lu(pe);try{const Ie=function zy(h,f,m,_,C,w){const v=m[1];m[20]=h;const S=Wr(v,20,2,"#host",null),P=S.mergedAttrs=f.hostAttrs;null!==P&&(Zo(S,P,!0),null!==h&&(Zl(C,h,P),null!==S.classes&&xc(C,h,S.classes),null!==S.styles&&Xu(C,h,S.styles)));const R=_.createRenderer(h,f),N=_r(m,bh(f),null,f.onPush?64:16,m[20],S,_,R,w||null,null);return v.firstCreatePass&&(wo(Co(S,m),v,f.type),Yg(v,S),Ni(S,m.length,1)),kc(m,N),m[20]=N}(R,this.componentDef,pe,v,S);if(R)if(_)Zl(S,R,["ng-version",b_.full]);else{const{attrs:ge,classes:Le}=function uy(h){const f=[],m=[];let _=1,C=2;for(;_0&&xc(S,R,Le.join(" "))}if(Te=Dt(ae,20),void 0!==m){const ge=Te.projection=[];for(let Le=0;LeS(v,f)),f.contentQueries){const S=Gt();f.contentQueries(1,v,S.directiveStart)}const x=Gt();return!w.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(ha(x.index),yh(m[1],x,0,x.directiveStart,x.directiveEnd,f),Qg(f,v)),v}(Ie,this.componentDef,pe,J,[Gy]),xa(ae,pe,null)}finally{cu()}return new Hv(this.componentType,ve,Ns(Te,pe),pe,Te)}}class Hv extends class g_{}{constructor(f,m,_,C,w){super(),this.location=_,this._rootLView=C,this._tNode=w,this.instance=m,this.hostView=this.changeDetectorRef=new Sv(C),this.componentType=f}get injector(){return new as(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class Va{}class y_{}const wr=new Map;class wp extends Va{constructor(f,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new _p(this);const _=di(f);this._bootstrapComponents=Dn(_.bootstrap),this._r3Injector=am(f,m,[{provide:Va,useValue:this},{provide:hl,useValue:this.componentFactoryResolver}],$(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,m=In.THROW_IF_NOT_FOUND,_=Ye.Default){return f===In||f===Va||f===nm?this:this._r3Injector.get(f,m,_)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class bd extends y_{constructor(f){super(),this.moduleType=f,null!==di(f)&&function md(h){const f=new Set;!function m(_){const C=di(_,!0),w=C.id;null!==w&&(function Cp(h,f,m){if(f&&f!==m)throw new Error(`Duplicate module registered for ${h} - ${$(f)} vs ${$(f.name)}`)}(w,wr.get(w),_),wr.set(w,_));const v=Dn(C.imports);for(const x of v)f.has(x)||(f.add(x),m(x))}(h)}(f)}create(f){return new wp(this.moduleType,f)}}function w_(h,f,m,_){return yd(be(),ti(),h,f,m,_)}function Ba(h,f){const m=h[f];return m===Ze?void 0:m}function yd(h,f,m,_,C,w){const v=f+m;return Ei(h,v,C)?Kn(h,v+1,w?_.call(w,C):_(C)):Ba(h,v+1)}function Oa(h,f,m,_,C,w,v,x){const S=f+m;return function Fc(h,f,m,_,C){const w=Sa(h,f,m,_);return Ei(h,f+2,C)||w}(h,S,C,w,v)?Kn(h,S+3,x?_.call(x,C,w,v):_(C,w,v)):Ba(h,S+3)}function A_(h,f){const m=Ct();let _;const C=h+20;m.firstCreatePass?(_=function Xr(h,f){if(f)for(let m=f.length-1;m>=0;m--){const _=f[m];if(h===_.name)return _}}(f,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=dn(_.type)),v=Bi(Qc);try{const x=bu(!1),S=w();return bu(x),function bn(h,f,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),f[m]=_}(m,be(),C,S),S}finally{Bi(v)}}function xp(h,f,m){const _=h+20,C=be(),w=Tt(C,_);return qs(C,_)?yd(C,ti(),f,w.transform,m,w):w.transform(m)}function x_(h,f,m,_){const C=h+20,w=be(),v=Tt(w,C);return qs(w,C)?function nr(h,f,m,_,C,w,v){const x=f+m;return Sa(h,x,C,w)?Kn(h,x+2,v?_.call(v,C,w):_(C,w)):Ba(h,x+2)}(w,ti(),f,v.transform,m,_,v):v.transform(m,_)}function pl(h,f,m,_,C){const w=h+20,v=be(),x=Tt(v,w);return qs(v,w)?Oa(v,ti(),f,x.transform,m,_,C,x):x.transform(m,_,C)}function qs(h,f){return h[1].data[f].pure}function fl(h){return f=>{setTimeout(h,void 0,f)}}const rr=class Ep extends T.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,m,_){var C,w,v;let x=f,S=m||(()=>null),P=_;if(f&&"object"==typeof f){const N=f;x=null===(C=N.next)||void 0===C?void 0:C.bind(N),S=null===(w=N.error)||void 0===w?void 0:w.bind(N),P=null===(v=N.complete)||void 0===v?void 0:v.bind(N)}this.__isAsync&&(S=fl(S),x&&(x=fl(x)),P&&(P=fl(P)));const R=super.subscribe({next:x,error:S,complete:P});return f instanceof p.w&&f.add(R),R}};function gl(){return this._results[br()]()}class wd{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=br(),_=wd.prototype;_[m]||(_[m]=gl)}get changes(){return this._changes||(this._changes=new rr)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,m){return this._results.reduce(f,m)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,m){const _=this;_.dirty=!1;const C=Hn(f);(this._changesDetected=!function Hx(h,f,m){if(h.length!==f.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=_l,h})();const Ov=ml,vd=class extends Ov{constructor(f,m,_){super(),this._declarationLView=f,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(f){const m=this._declarationTContainer.tViews,_=_r(this._declarationLView,m,f,16,null,m.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(_[19]=w.createEmbeddedView(m)),xa(m,_,f),new zs(_)}};function _l(){return Us(Gt(),be())}function Us(h,f){return 4&h.type?new vd(f,h,Ns(h,f)):null}let bl=(()=>{class h{}return h.__NG_ELEMENT_ID__=E_,h})();function E_(){return M_(Gt(),be())}const Fv=bl,Ad=class extends Fv{constructor(f,m,_){super(),this._lContainer=f,this._hostTNode=m,this._hostLView=_}get element(){return Ns(this._hostTNode,this._hostLView)}get injector(){return new as(this._hostTNode,this._hostLView)}get parentInjector(){const f=yo(this._hostTNode,this._hostLView);if($f(f)){const m=bo(f,this._hostLView),_=Br(f);return new as(m[1].data[_+8],m)}return new as(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const m=S_(this._lContainer);return null!==m&&m[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,m,_){const C=f.createEmbeddedView(m||{});return this.insert(C,_),C}createComponent(f,m,_,C,w){const v=f&&!function ga(h){return"function"==typeof h}(f);let x;if(v)x=m;else{const N=m||{};x=N.index,_=N.injector,C=N.projectableNodes,w=N.ngModuleRef}const S=v?f:new Ia(li(f)),P=_||this.parentInjector;if(!w&&null==S.ngModule&&P){const N=P.get(Va,null);N&&(w=N)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,x),R}insert(f,m){const _=f._lView,C=_[1];if(function kt(h){return Qi(h[3])}(_)){const R=this.indexOf(f);if(-1!==R)this.detach(R);else{const N=_[3],J=new Ad(N,N[6],N[3]);J.detach(J.indexOf(f))}}const w=this._adjustIndex(m),v=this._lContainer;!function Gu(h,f,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=f),_0)_.push(v[x/2]);else{const P=w[x+1],R=f[-S];for(let N=10;N{class h{constructor(m){this.appInits=m,this.resolve=Fp,this.reject=Fp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:x,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(ui(Rd,8))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Lp=new qt("AppId"),iA={provide:Lp,useFactory:function tA(){return`${jp()}${jp()}${jp()}`},deps:[]};function jp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const J_=new qt("Platform Initializer"),Np=new qt("Platform ID"),K_=new qt("appBootstrapListener");let X_=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const kd=new qt("LocaleId"),eb=new qt("DefaultCurrencyCode");class rA{constructor(f,m){this.ngModuleFactory=f,this.componentFactories=m}}let zp=(()=>{class h{compileModuleSync(m){return new bd(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Dn(di(m).declarations).reduce((v,x)=>{const S=li(x);return S&&v.push(new Ia(S)),v},[]);return new rA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const oA=(()=>Promise.resolve(0))();function Gp(h){"undefined"==typeof Zone?oA.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class en{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function Ii(){let h=lt.requestAnimationFrame,f=lt.cancelAnimationFrame;if("undefined"!=typeof Zone&&h&&f){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function $s(h){const f=()=>{!function qp(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(lt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Up(h),h.isCheckStableRunning=!0,Hl(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Up(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,x)=>{try{return ib(h),m.invokeTask(C,w,v,x)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&f(),Wp(h)}},onInvoke:(m,_,C,w,v,x,S)=>{try{return ib(h),m.invoke(C,w,v,x,S)}finally{h.shouldCoalesceRunChangeDetection&&f(),Wp(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,Up(h),Hl(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!en.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(en.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,m,_){return this._inner.run(f,m,_)}runTask(f,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,f,Id,Fp,Fp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(f,m,_){return this._inner.runGuarded(f,m,_)}runOutsideAngular(f){return this._outer.run(f)}}const Id={};function Hl(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Up(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function ib(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Wp(h){h._nesting--,Hl(h)}class lA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(f,m,_){return f.apply(m,_)}runGuarded(f,m,_){return f.apply(m,_)}runOutsideAngular(f){return f()}runTask(f,m,_,C){return f.apply(m,_)}}let $p=(()=>{class h{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{en.assertNotInAngularZone(),Gp(()=>{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())Gp(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!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(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(ui(en))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})(),Qp=(()=>{class h{constructor(){this._applications=new Map,Ar.addToWindow(this)}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return Ar.findTestabilityInTree(this,m,_)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();class Yp{addToWindow(f){}findTestabilityInTree(f,m,_){return null}}function gE(h){Ar=h}let Cn,Ar=new Yp;const nb=new qt("AllowMultipleToken");class dA{constructor(f,m){this.name=f,this.token=m}}function Kp(h,f,m=[]){const _=`Platform: ${f}`,C=new qt(_);return(w=[])=>{let v=rb();if(!v||v.injector.get(nb,!1))if(h)h(m.concat(w).concat({provide:C,useValue:!0}));else{const x=m.concat(w).concat({provide:C,useValue:!0},{provide:xh,useValue:"platform"});!function uA(h){if(Cn&&!Cn.destroyed&&!Cn.injector.get(nb,!1))throw new re(400,"");Cn=h.get(Vd);const f=h.get(J_,null);f&&f.forEach(m=>m())}(In.create({providers:x,name:_}))}return function hA(h){const f=rb();if(!f)throw new re(401,"");return f}()}}function rb(){return Cn&&!Cn.destroyed?Cn:null}let Vd=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const x=function pA(h,f){let m;return m="noop"===h?new lA:("zone.js"===h?void 0:h)||new en({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),m}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),S=[{provide:en,useValue:x}];return x.run(()=>{const P=In.create({providers:S,parent:this.injector,name:m.moduleType.name}),R=m.create(P),N=R.injector.get(mc,null);if(!N)throw new re(402,"");return x.runOutsideAngular(()=>{const J=x.onError.subscribe({next:ae=>{N.handleError(ae)}});R.onDestroy(()=>{ab(this._modules,R),J.unsubscribe()})}),function fA(h,f,m){try{const _=m();return zh(_)?_.catch(C=>{throw f.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw f.runOutsideAngular(()=>h.handleError(_)),_}}(N,x,()=>{const J=R.injector.get(La);return J.runInitializers(),J.donePromise.then(()=>(function Yw(h){Ge(h,"Expected localeId to be defined"),"string"==typeof h&&(n_=h.toLowerCase().replace(/_/g,"-"))}(R.injector.get(kd,cl)||cl),this._moduleDoBootstrap(R),R))})})}bootstrapModule(m,_=[]){const C=Zp({},_);return function cA(h,f,m){const _=new bd(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Dl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new re(403,"");m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,"");this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(ui(In))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function Zp(h,f){return Array.isArray(f)?f.reduce(Zp,h):Object.assign(Object.assign({},h),f)}let Dl=(()=>{class h{constructor(m,_,C,w,v){this._zone=m,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=w,this._initStatus=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new B.y(P=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{P.next(this._stable),P.complete()})}),S=new B.y(P=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{en.assertNotInAngularZone(),Gp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,P.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{en.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{P.next(!1)}))});return()=>{R.unsubscribe(),N.unsubscribe()}});this.isStable=(0,j.T)(x,S.pipe((0,I.B)()))}bootstrap(m,_){if(!this._initStatus.done)throw new re(405,"");let C;C=m instanceof ut?m:this._componentFactoryResolver.resolveComponentFactory(m),this.componentTypes.push(C.componentType);const w=function Jp(h){return h.isBoundToModule}(C)?void 0:this._injector.get(Va),x=C.create(In.NULL,[],_||C.selector,w),S=x.location.nativeElement,P=x.injector.get($p,null),R=P&&x.injector.get(Qp);return P&&R&&R.registerApplication(S,P),x.onDestroy(()=>{this.detachView(x.hostView),ab(this.components,x),R&&R.unregisterApplication(S)}),this._loadComponent(x),x}tick(){if(this._runningTick)throw new re(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;ab(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(K_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return h.\u0275fac=function(m){return new(m||h)(ui(en),ui(In),ui(mc),ui(hl),ui(La))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function ab(h,f){const m=h.indexOf(f);m>-1&&h.splice(m,1)}let ef=!0;function _A(){ef=!1}let CA=(()=>{class h{}return h.__NG_ELEMENT_ID__=bE,h})();function bE(h){return function ob(h,f,m){if(ql(h)&&!m){const _=ht(h.index,f);return new zs(_,_)}return 47&h.type?new zs(f[16],f):null}(Gt(),be(),16==(16&h))}class xr{constructor(){}supports(f){return tl(f)}create(f){return new si(f)}}const db=(h,f)=>f;class si{constructor(f){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=f||db}forEachItem(f){let m;for(m=this._itHead;null!==m;m=m._next)f(m)}forEachOperation(f){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,x),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,x,v,C)),Object.is(m.item,x)||this._addIdentityChange(m,x)):(m=this._mismatch(m,x,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,m,_,C){let w;return null===f?w=this._itTail:(w=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._reinsertAfter(f,w,C)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(f.item,m)||this._addIdentityChange(f,m),this._moveAfter(f,w,C)):f=this._addAfter(new ta(m,_),w,C),f}_verifyReinsertion(f,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?f=this._reinsertAfter(w,f._prev,C):f.currentIndex!=C&&(f.currentIndex=C,this._addToMoves(f,C)),f}_truncate(f){for(;null!==f;){const m=f._next;this._addToRemovals(this._unlink(f)),f=m}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(f,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const C=f._prevRemoved,w=f._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(f,m,_),this._addToMoves(f,_),f}_moveAfter(f,m,_){return this._unlink(f),this._insertAfter(f,m,_),this._addToMoves(f,_),f}_addAfter(f,m,_){return this._insertAfter(f,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,m,_){const C=null===m?this._itHead:m._next;return f._next=C,f._prev=m,null===C?this._itTail=f:C._prev=f,null===m?this._itHead=f:m._next=f,null===this._linkedRecords&&(this._linkedRecords=new Qs),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const m=f._prev,_=f._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,f}_addToMoves(f,m){return f.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Qs),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,m){return f.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class ta{constructor(f,m){this.item=f,this.trackById=m,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 wA{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const m=f._prevDup,_=f._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class Qs{constructor(){this.map=new Map}put(f){const m=f.trackById;let _=this.map.get(m);_||(_=new wA,this.map.set(m,_)),_.add(f)}get(f,m){const C=this.map.get(f);return C?C.get(f,m):null}remove(f){const m=f.trackById;return this.map.get(m).remove(f)&&this.map.delete(m),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function af(h,f,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,m){if(f){const _=f._prev;return m._next=f,m._prev=_,f._prev=m,_&&(_._next=m),f===this._mapHead&&(this._mapHead=m),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(f,m){if(this._records.has(f)){const C=this._records.get(f);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new hb(f);return this._records.set(f,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,m){Object.is(m,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=m,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,m){f instanceof Map?f.forEach(m):Object.keys(f).forEach(_=>m(f[_],_))}}class hb{constructor(f){this.key=f,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 lf(){return new Rl([new xr])}let Rl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||lf()),deps:[[h,new Mo,new os]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:lf}),h})();function cf(){return new za([new sf])}let za=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||cf()),deps:[[h,new Mo,new os]]}}find(m){const _=this.factories.find(w=>w.supports(m));if(_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:cf}),h})();const pb=[new sf],gb=new Rl([new xr]),mb=new za(pb),_b=Kp(null,"core",[{provide:Np,useValue:"unknown"},{provide:Vd,deps:[In]},{provide:Qp,deps:[]},{provide:X_,deps:[]}]),yb=[{provide:Dl,useClass:Dl,deps:[en,In,mc,hl,La]},{provide:ka,deps:[en],useFactory:function wb(h){let f=[];return h.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(m){f.push(m)}}},{provide:La,useClass:La,deps:[[new os,Rd]]},{provide:zp,useClass:zp,deps:[]},iA,{provide:Rl,useFactory:function bb(){return gb},deps:[]},{provide:za,useFactory:function df(){return mb},deps:[]},{provide:kd,useFactory:function Cb(h){return h||function uf(){return"undefined"!=typeof $localize&&$localize.locale||cl}()},deps:[[new cc(kd),new os,new Mo]]},{provide:eb,useValue:"USD"}];let vb=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(ui(Dl))},h.\u0275mod=ra({type:h}),h.\u0275inj=vn({providers:yb}),h})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService,Hy:()=>OAuthStorage});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let W;return function(T){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,T){this.data.set(E,T)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(W,E,T=null){super(W),this.reason=E,this.params=T}}function b64DecodeUnicode(z){const W=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let E=this.inferHashAlgorithm(W.idTokenHeader),T=yield this.calcHash(W.accessToken,E),B=base64UrlEncode(T.substr(0,T.length/2)),j=W.idTokenClaims.at_hash.replace(/=/g,"");return B!==j&&(console.error("exptected at_hash: "+B),console.error("actual at_hash: "+j)),B===j})}inferHashAlgorithm(W){let E=W.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(E){let T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const p=T.indexOf("?");return T=T.substr(p>-1?p+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let p,B,j,I,O,Y,$;if(null===E)return T;p=E.split("&");for(let G=0;G>6,B[I++]=128|63&O):O<55296||O>=57344?(B[I++]=224|O>>12,B[I++]=128|O>>6&63,B[I++]=128|63&O):(O=65536+((1023&O)<<10|1023&z.charCodeAt(++T)),B[I++]=240|O>>18,B[I++]=128|O>>12&63,B[I++]=128|O>>6&63,B[I++]=128|63&O);z=B}else{if("object"!==p)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(W,!0).update(z).array());var Y=[],$=[];for(T=0;T<64;++T){var G=z[T]||0;Y[T]=92^G,$[T]=54^G}Sha256.call(this,W,E),this.update($),this.oKeyPad=Y,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(z){if(!this.finalized){var W,E=typeof z;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);W=!0}for(var T,B,p=0,j=z.length,I=this.blocks;p>2]|=z[p]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[B>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,W=this.lastByteIndex;z[16]=this.block,z[W>>2]|=EXTRA[3&W],this.block=z[16],W>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Y,L,ie,re,ne,le,z=this.h0,W=this.h1,E=this.h2,T=this.h3,p=this.h4,B=this.h5,j=this.h6,I=this.h7,O=this.blocks;for(Y=16;Y<64;++Y)O[Y]=O[Y-16]+(((L=O[Y-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+O[Y-7]+(((L=O[Y-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)<<0;for(le=W&E,Y=0;Y<64;Y+=4)this.first?(this.is224?(ie=300032,I=(L=O[0]-1413257819)-150054599<<0,T=L+24177077<<0):(ie=704751109,I=(L=O[0]-210244248)-1521486534<<0,T=L+143694565<<0),this.first=!1):(I=T+(L=I+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&B^~p&j)+K[Y]+O[Y])<<0,T=L+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ie=z&W)^z&E^le))<<0),j=E+(L=j+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&p^~I&B)+K[Y+1]+O[Y+1])<<0,E=L+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&z)^T&W^ie))<<0,B=W+(L=B+((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&I^~j&p)+K[Y+2]+O[Y+2])<<0,W=L+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((ne=E&T)^E&z^re))<<0,p=z+(L=p+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&j^~B&I)+K[Y+3]+O[Y+3])<<0,z=L+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((le=W&E)^W&T^ne))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+p<<0,this.h5=this.h5+B<<0,this.h6=this.h6+j<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,p=this.h4,B=this.h5,j=this.h6,I=this.h7,O=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>4&15]+HEX_CHARS[15&p]+HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j];return this.is224||(O+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,p=this.h4,B=this.h5,j=this.h6,I=this.h7,O=[z>>24&255,z>>16&255,z>>8&255,255&z,W>>24&255,W>>16&255,W>>8&255,255&W,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T,p>>24&255,p>>16&255,p>>8&255,255&p,B>>24&255,B>>16&255,B>>8&255,255&B,j>>24&255,j>>16&255,j>>8&255,255&j];return this.is224||O.push(I>>24&255,I>>16&255,I>>8&255,255&I),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),W=new DataView(z);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var W,E=z,T=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})}toHashString2(E){let T="";for(let p of E)T+=String.fromCharCode(p);return T}toHashString(E){const T=new Uint8Array(E);let p="";for(let B of T)p+=String.fromCharCode(B);return p}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(E,T,p,B,j,I,O,Y,$,G){var F;super(),this.ngZone=E,this.http=T,this.config=j,this.urlHelper=I,this.logger=O,this.crypto=Y,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=$,j||(j={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),B&&(this.tokenValidationHandler=B),j&&this.configure(j);try{p?this.setStorage(p):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(L){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",L)}if(this.checkLocalStorageAccessable()){const L=null===(F=null==window?void 0:window.navigator)||void 0===F?void 0:F.userAgent;((null==L?void 0:L.includes("MSIE "))||(null==L?void 0:L.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const E="test";try{return void 0!==window.localStorage&&(localStorage.setItem(E,E),localStorage.removeItem(E),!0)}catch(T){return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},T,p=!0){let B=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(j=>{"token_received"===j.type?B=!0:"logout"===j.type&&(B=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_expires"===j.type&&(null==T||"any"===T||j.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(j=>{B&&this.refreshInternal(E,p).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const T=[],p=this.validateUrlForHttps(E),B=this.validateUrlAgainstIssuer(E);return p||T.push("https for all urls required. Also for urls received by discovery."),B||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(E){if(!E)return!0;const T=E.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,T){if(!E)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),p=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),p=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(p)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,T){const p=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(p-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,p)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(B=>{if(!this.validateDiscoveryDocument(B))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void p("discovery_document_validation_error");this.loginUrl=B.authorization_endpoint,this.logoutUrl=B.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=B.grant_types_supported,this.issuer=B.issuer,this.tokenEndpoint=B.token_endpoint,this.userinfoEndpoint=B.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=B.jwks_uri,this.sessionCheckIFrameUrl=B.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(B),this.revocationEndpoint=B.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(j=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:B,jwks:j});this.eventsSubject.next(O),T(O)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",j)),p(j)})},B=>{this.logger.error("error loading discovery document",B),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",B)),p(B)}):p("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(p=>{this.jwks=p,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(p)},p=>{this.logger.error("error loading jwks",p),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",p)),T(p)}):E(null)})}validateDiscoveryDocument(E){let T;return this.skipIssuerCheck||E.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,p).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,T)=>{const p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:p,observe:"response",responseType:"text"}).subscribe(B=>{if(this.debug("userinfo received",JSON.stringify(B)),B.headers.get("content-type").startsWith("application/json")){let j=JSON.parse(B.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||j.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");j=Object.assign({},I,j),this._storage.setItem("id_token_claims_obj",JSON.stringify(j)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:j})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(B.body))},B=>{this.logger.error("error loading user info",B),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",B)),T(B)})})}fetchTokenUsingPasswordFlow(E,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},p)}fetchTokenUsingGrant(E,T,p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(j,this.customQueryParams[j]);for(const j of Object.keys(T))B=B.set(j,T[j]);return p=p.set("Content-Type","application/x-www-form-urlencoded"),new Promise((j,I)=>{this.http.post(this.tokenEndpoint,B,{headers:p}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(Y=>{this.storeIdToken(Y),j(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),j(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),I(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),B=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);B=B.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(p=p.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(p=p.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))p=p.set(j,this.customQueryParams[j]);this.http.post(this.tokenEndpoint,p,{headers:B}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(j=>j.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(j.id_token,j.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>j)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(j))).subscribe(j=>{this.debug("refresh tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(j)},j=>{this.logger.error("Error refreshing token",j),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",j)),T(j)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const T=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(p=>this.debug("tryLogin during silent refresh failed",p))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const p=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const B=this.document.getElementById(this.silentRefreshIFrameName);B&&this.document.body.removeChild(B),this.silentRefreshSubject=p.sub;const j=this.document.createElement("iframe");j.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(G=>{j.setAttribute("src",G),this.silentRefreshShowIFrame||(j.style.display="none"),this.document.body.appendChild(j)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),$=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([O,Y,$]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((p,B)=>{let O,I=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(I=E.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Y=U=>{this.tryLogin({customHashFragment:U,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),p(!0)},Q=>{G(),B(Q)})};I?O=window.setInterval(()=>{(!I||I.closed)&&(G(),B(new OAuthErrorEvent("popup_closed",{})))},500):B(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(O),window.removeEventListener("storage",L),window.removeEventListener("message",F),null!==I&&I.close(),I=null},F=U=>{const Q=this.processMessageEventMessage(U);Q&&null!==Q?(window.removeEventListener("storage",L),Y(Q)):console.log("false event firing")},L=U=>{"auth_hash"===U.key&&(window.removeEventListener("message",F),Y(U.newValue))};window.addEventListener("message",F),window.addEventListener("storage",L)}))}calculatePopupFeatures(E){const T=E.height||470,p=E.width||500,B=window.screenLeft+(window.outerWidth-p)/2;return`location=no,toolbar=no,width=${p},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${B}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const p=E.data;return p.startsWith(T)?"#"+p.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const T=E.origin.toLowerCase(),p=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),p.startsWith(T)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",p,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(E="",T="",p="",B=!1,j={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const I=this;let O;O=p||this.redirectUri;const Y=yield this.createAndSaveNonce();if(E=E?Y+this.config.nonceStateSeparator+encodeURIComponent(E):Y,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const $=I.loginUrl.indexOf("?")>-1?"&":"?";let G=I.scope;this.oidc&&!G.match(/(^|\s)openid($|\s)/)&&(G="openid "+G);let F=I.loginUrl+$+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(O)+"&scope="+encodeURIComponent(G);if(this.responseType.includes("code")&&!this.disablePKCE){const[L,U]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",U):this._storage.setItem("PKCE_verifier",U),F+="&code_challenge="+L,F+="&code_challenge_method=S256"}T&&(F+="&login_hint="+encodeURIComponent(T)),I.resource&&(F+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(F+="&nonce="+encodeURIComponent(Y)),B&&(F+="&prompt=none");for(const L of Object.keys(j))F+="&"+encodeURIComponent(L)+"="+encodeURIComponent(j[L]);if(this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))F+="&"+L+"="+encodeURIComponent(this.customQueryParams[L]);return F})}initImplicitFlowInternal(E="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(p=T),this.createLoginUrl(E,B,null,!1,p).then(this.config.openUri).catch(j=>{console.error("Error in initImplicitFlow",j),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(p=>"discovery_document_loaded"===p.type)).subscribe(p=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const p={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(p)}}storeAccessTokenResponse(E,T,p,B,j){if(this._storage.setItem("access_token",E),B&&!Array.isArray(B)?this._storage.setItem("granted_scopes",JSON.stringify(B.split(" "))):B&&Array.isArray(B)&&this._storage.setItem("granted_scopes",JSON.stringify(B)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),p){const I=1e3*p,Y=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+Y)}T&&this._storage.setItem("refresh_token",T),j&&j.forEach((I,O)=>{this._storage.setItem(O,I)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(T=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,p=this.getCodePartsFromUrl(T),B=p.code,j=p.state,I=p.session_state;if(!E.preventClearHashAfterLogin){const $=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,$)}let[O,Y]=this.parseState(j);if(this.state=Y,p.error){this.debug("error trying to login"),this.handleLoginError(E,p);const $=new OAuthErrorEvent("code_error",{},p);return this.eventsSubject.next($),Promise.reject($)}if(!E.disableNonceCheck){if(!O)return this.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!this.validateNonce(O)){const G=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(G),Promise.reject(G)}return this.storeSessionState(I),B&&(yield this.getTokenFromCode(B,E),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,T){let p=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let B;B=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),B?p=p.set("code_verifier",B):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(p,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let p=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);p=p.set("Authorization","Basic "+B)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((B,j)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,E,{headers:p}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),j(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),j(I)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const p=T.state;let[B,j]=this.parseState(p);if(this.state=j,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,O=T.id_token,Y=T.session_state,$=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!p||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Y&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(B)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,$),this.oidc?this.processIdToken(O,I,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:p}).then(F=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(Y),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,p="";if(E){const B=E.indexOf(this.config.nonceStateSeparator);B>-1&&(T=E.substr(0,B),p=E.substr(B+this.config.nonceStateSeparator.length))}return[T,p]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===E||(console.error("Validating access_token failed, wrong state/nonce.",T,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,T){E.onLoginError&&E.onLoginError(T),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,T,p=!1){const B=E.split("."),I=b64DecodeUnicode(this.padBase64(B[0])),O=JSON.parse(I),$=b64DecodeUnicode(this.padBase64(B[1])),G=JSON.parse($);let F;if(F=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(ne=>ne!==this.clientId)){const ne="Wrong audience: "+G.aud.join(",");return this.logger.warn(ne),Promise.reject(ne)}}else if(G.aud!==this.clientId){const ne="Wrong audience: "+G.aud;return this.logger.warn(ne),Promise.reject(ne)}if(!G.sub){const ne="No sub claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const ne=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(ne),Promise.reject(ne)}if(!G.iat){const ne="No iat claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const ne="Wrong issuer: "+G.iss;return this.logger.warn(ne),Promise.reject(ne)}if(!p&&G.nonce!==F){const ne="Wrong nonce: "+G.nonce;return this.logger.warn(ne),Promise.reject(ne)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const ne="An at_hash is needed!";return this.logger.warn(ne),Promise.reject(ne)}const L=this.dateTimeService.now(),U=1e3*G.iat,Q=1e3*G.exp,ie=this.getClockSkewInMsec();if(U-ie>=L||Q+ie<=L){const ne="Token has expired";return console.error(ne),console.error({now:L,issuedAtMSec:U,expiresAtMSec:Q}),Promise.reject(ne)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(ne=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q})):this.checkAtHash(re).then(ne=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ne){const le="Wrong at_hash";return this.logger.warn(le),Promise.reject(le)}return this.checkSignature(re).then(le=>{const Ae={idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q};return this.disableAtHashCheck?Ae:this.checkAtHash(re).then(Be=>{if(this.requestAccessToken&&!Be){const mt="Wrong at_hash";return this.logger.warn(mt),Promise.reject(mt)}return Ae})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},T=""){let p=!1;"boolean"==typeof E&&(p=E,E={});const B=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||p||!B&&!this.postLogoutRedirectUri)return;let j;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)j=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(B)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});B&&(I=I.set("id_token_hint",B));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(I=I.set("post_logout_redirect_uri",O),T&&(I=I.set("state",T)));for(let Y in E)I=I.set(Y,E[Y]);j=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(j)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):E._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let p=45,B="";const j="undefined"==typeof self?null:self.crypto||self.msCrypto;if(j){let I=new Uint8Array(p);j.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(O=>T.charCodeAt(O%T.length)),B=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===p.type)).subscribe(p=>this.initCodeFlowInternal(E,T))}initCodeFlowInternal(E="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let p={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(p=T),this.createLoginUrl(E,B,null,!1,p).then(this.config.openUri).catch(j=>{console.error("Error in initAuthorizationCodeFlow"),console.error(j)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const E=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(E,"sha-256")),E]})}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(p=>{E[p]&&T.set(p,JSON.stringify(E[p]))}),T}revokeTokenAndLogout(E={},T=!1){let p=this.revocationEndpoint,B=this.getAccessToken(),j=this.getRefreshToken();if(!B)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Y=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+Y)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Y of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(Y,this.customQueryParams[Y]);return new Promise((Y,$)=>{let G,F;if(B){let L=I.set("token",B).set("token_type_hint","access_token");G=this.http.post(p,L,{headers:O})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(j){let L=I.set("token",j).set("token_type_hint","refresh_token");F=this.http.post(p,L,{headers:O})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([G,F]).subscribe(L=>{this.logOut(E),Y(L),this.logger.info("Token successfully revoked")},L=>{this.logger.error("Error revoking token",L),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",L)),$(L)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(E,T,p){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=p}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>E.toLowerCase().startsWith(T.toLowerCase()))}intercept(E,T){const p=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(p)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>!!j)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(j=>{if(j){const O=E.headers.set("Authorization","Bearer "+j);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>this.errorHandler.handleError(j))):T.handle(E)}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,T=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},4147:z=>{"use strict";z.exports={i8:"8.2.0"}}},z=>{z(z.s=4163)}]); \ No newline at end of file diff --git a/dist/apps/password-reset/main.b03a5193014b43e7.js b/dist/apps/password-reset/main.b03a5193014b43e7.js deleted file mode 100644 index fc6f3bb98..000000000 --- a/dist/apps/password-reset/main.b03a5193014b43e7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpassword_reset=self.webpackChunkpassword_reset||[]).push([[179],{2342:(z,W,E)=>{"use strict";var T=E(9808),g=E(5e3);class B extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends B{static makeCurrent(){(0,T.HT)(new j)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function O(){return I=I||document.querySelector("base"),I?I.getAttribute("href"):null}();return null==e?null:function $(o){Y=Y||document.createElement("a"),Y.setAttribute("href",o);const a=Y.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){I=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let Y,I=null;const G=new g.OlP("TRANSITION_ID"),L=[{provide:g.ip1,useFactory:function F(o,a,e){return()=>{e.get(g.CZH).donePromise.then(()=>{const t=(0,T.q)(),s=a.querySelectorAll(`style[ng-transition="${o}"]`);for(let c=0;c{const c=a.findTestabilityInTree(t,s);if(null==c)throw new Error("Could not find testability for element.");return c},g.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),g.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),g.dqk.frameworkStabilizers||(g.dqk.frameworkStabilizers=[]),g.dqk.frameworkStabilizers.push(t=>{const s=g.dqk.getAllAngularTestabilities();let c=s.length,l=!1;const n=function(i){l=l||i,c--,0==c&&t(l)};s.forEach(function(i){i.whenStable(n)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const s=a.getTestability(e);return null!=s?s:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let Q=(()=>{class o{build(){return new XMLHttpRequest}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const ie=new g.OlP("EventManagerPlugins");let re=(()=>{class o{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(s=>s.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,s){return this._findPluginFor(t).addEventListener(e,t,s)}addGlobalEventListener(e,t,s){return this._findPluginFor(t).addGlobalEventListener(e,t,s)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const s=this._plugins;for(let c=0;c{class o{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),t.add(s))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),xe=(()=>{class o extends le{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,s){e.forEach(c=>{const l=this._doc.createElement("style");l.textContent=c,s.push(t.appendChild(l))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Ae),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,s)=>{this._addStylesToHost(e,s,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Ae))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Ae(o){(0,T.q)().remove(o)}const Be={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/"},ft=/%COMP%/g;function he(o,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return o;!1===o(a)&&(a.preventDefault(),a.returnValue=!1)}}let we=(()=>{class o{constructor(e,t,s){this.eventManager=e,this.sharedStylesHost=t,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new ce(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case g.ifc.Emulated:{let s=this.rendererByCompId.get(t.id);return s||(s=new Bi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,s)),s.applyToHost(e),s}case 1:case g.ifc.ShadowDom:return new ze(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const s=he(t.id,t.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(re),g.LFG(xe),g.LFG(g.AFp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class ce{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Be[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&a.insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,s){if(s){e=s+":"+e;const c=Be[s];c?a.setAttributeNS(c,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const s=Be[t];s?a.removeAttributeNS(s,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,s){s&(g.JOm.DashCase|g.JOm.Important)?a.style.setProperty(e,t,s&g.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&g.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,pe(t)):this.eventManager.addEventListener(a,e,pe(t))}}class Bi extends ce{constructor(a,e,t,s){super(a),this.component=t;const c=he(s+"-"+t.id,t.styles,[]);e.addStyles(c),this.contentAttr=function Ze(o){return"_ngcontent-%COMP%".replace(ft,o)}(s+"-"+t.id),this.hostAttr=function oe(o){return"_nghost-%COMP%".replace(ft,o)}(s+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class ze extends ce{constructor(a,e,t,s){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=he(s.id,s.styles,[]);for(let l=0;l{class o extends ne{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,s){return e.addEventListener(t,s,!1),()=>this.removeEventListener(e,t,s)}removeEventListener(e,t,s){return e.removeEventListener(t,s)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const yn=["alt","control","meta","shift"],or={"\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"},Vt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Er={alt:o=>o.altKey,control:o=>o.ctrlKey,meta:o=>o.metaKey,shift:o=>o.shiftKey};let wn=(()=>{class o extends ne{constructor(e){super(e)}supports(e){return null!=o.parseEventName(e)}addEventListener(e,t,s){const c=o.parseEventName(t),l=o.eventCallback(c.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,c.domEventName,l))}static parseEventName(e){const t=e.toLowerCase().split("."),s=t.shift();if(0===t.length||"keydown"!==s&&"keyup"!==s)return null;const c=o._normalizeKey(t.pop());let l="";if(yn.forEach(i=>{const r=t.indexOf(i);r>-1&&(t.splice(r,1),l+=i+".")}),l+=c,0!=t.length||0===c.length)return null;const n={};return n.domEventName=s,n.fullKey=l,n}static getEventFullKey(e){let t="",s=function si(o){let a=o.key;if(null==a){if(a=o.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===o.location&&Vt.hasOwnProperty(a)&&(a=Vt[a]))}return or[a]||a}(e);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),yn.forEach(c=>{c!=s&&Er[c](e)&&(t+=c+".")}),t+=s,t}static eventCallback(e,t,s){return c=>{o.getEventFullKey(c)===e&&s.runGuarded(()=>t(c))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Sr=(0,g.eFA)(g._c5,"browser",[{provide:g.Lbi,useValue:T.bD},{provide:g.g9A,useValue:function lr(){j.makeCurrent(),q.init()},multi:!0},{provide:T.K0,useFactory:function Ya(){return(0,g.RDi)(document),document},deps:[]}]),cr=[{provide:g.zSh,useValue:"root"},{provide:g.qLn,useFactory:function Qa(){return new g.qLn},deps:[]},{provide:ie,useClass:tt,multi:!0,deps:[T.K0,g.R0b,g.Lbi]},{provide:ie,useClass:wn,multi:!0,deps:[T.K0]},{provide:we,useClass:we,deps:[re,xe,g.AFp]},{provide:g.FYo,useExisting:we},{provide:le,useExisting:xe},{provide:xe,useClass:xe,deps:[T.K0]},{provide:g.dDg,useClass:g.dDg,deps:[g.R0b]},{provide:re,useClass:re,deps:[ie,g.R0b]},{provide:T.JF,useClass:Q,deps:[]}];let Mr=(()=>{class o{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:o,providers:[{provide:g.AFp,useValue:e.appId},{provide:G,useExisting:g.AFp},L]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:cr,imports:[T.ez,g.hGG]}),o})(),Oi=(()=>{class o{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function mi(){return new Oi((0,g.LFG)(T.K0))}(),t},providedIn:"root"}),o})();"undefined"!=typeof window&&window;let xn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new(e||o):g.LFG(ia),t},providedIn:"root"}),o})(),ia=(()=>{class o extends xn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case g.q3G.NONE:return t;case g.q3G.HTML:return(0,g.qzn)(t,"HTML")?(0,g.z3N)(t):(0,g.EiD)(this._doc,String(t)).toString();case g.q3G.STYLE:return(0,g.qzn)(t,"Style")?(0,g.z3N)(t):t;case g.q3G.SCRIPT:if((0,g.qzn)(t,"Script"))return(0,g.z3N)(t);throw new Error("unsafe value used in a script context");case g.q3G.URL:return(0,g.yhl)(t),(0,g.qzn)(t,"URL")?(0,g.z3N)(t):(0,g.mCW)(String(t));case g.q3G.RESOURCE_URL:if((0,g.qzn)(t,"ResourceURL"))return(0,g.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,g.JVY)(e)}bypassSecurityTrustStyle(e){return(0,g.L6k)(e)}bypassSecurityTrustScript(e){return(0,g.eBb)(e)}bypassSecurityTrustUrl(e){return(0,g.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,g.pB0)(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:function(e){let t=null;return t=e?new e:function jl(o){return new ia(o.get(T.K0))}(g.LFG(g.zs3)),t},providedIn:"root"}),o})();var y=E(520);class Ot{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const Ft=new g.OlP("basePath");class je{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Tn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(c=>e=this.addToHttpParamsRecursive(e,c,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}convertAttributeToNonunique(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}convertAttributeToUnique(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}createAttributeDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAttributeDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attribute"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}deleteAttributeDefinitions(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"attributes[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAllAttributeDefinitions(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAttribute(e,t,s,c,l,n,i,r,d,u,f,b="body",D=!1,U){let se=new y.LE({encoder:this.encoder});null!=e&&(se=this.addToHttpParams(se,e,"attributeName")),null!=t&&(se=this.addToHttpParams(se,t,"attributeId")),null!=s&&(se=this.addToHttpParams(se,s,"facility")),null!=c&&(se=this.addToHttpParams(se,c,"user")),null!=l&&(se=this.addToHttpParams(se,l,"vo")),null!=n&&(se=this.addToHttpParams(se,n,"resource")),null!=i&&(se=this.addToHttpParams(se,i,"member")),null!=r&&(se=this.addToHttpParams(se,r,"group")),null!=d&&(se=this.addToHttpParams(se,d,"host")),null!=u&&(se=this.addToHttpParams(se,u,"userExtSource")),null!=f&&(se=this.addToHttpParams(se,f,"key"));let rt,De=this.defaultHeaders;rt=this.configuration.lookupCredential("BasicAuth"),rt&&(De=De.set("Authorization","Basic "+rt)),rt=this.configuration.lookupCredential("BearerAuth"),rt&&(De=De.set("Authorization","Bearer "+rt));let Qe=U&&U.httpHeaderAccept;void 0===Qe&&(Qe=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Qe&&(De=De.set("Accept",Qe));let vt=U&&U.context;void 0===vt&&(vt=new y.qT);let jn="json";return Qe&&(jn=Qe.startsWith("text")?"text":this.configuration.isJsonMime(Qe)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:vt,params:se,responseType:jn,withCredentials:this.configuration.withCredentials,headers:De,observe:b,reportProgress:D})}getAttributeDefinitionById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeDefinitionsByNamespace(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"namespace"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeModulesDependenciesForAttributeGraphText(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"format")),null!=t&&(n=this.addToHttpParams(n,t,"attrName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAttributeModulesDependenciesGraphText(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"format"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributePolicyCollections(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributeRights(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAttributesDefinitionWithRights(e,t,s,c,l,n,i,r,d="body",u=!1,f){let b=new y.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=s&&(b=this.addToHttpParams(b,s,"vo")),null!=c&&(b=this.addToHttpParams(b,c,"group")),null!=l&&(b=this.addToHttpParams(b,l,"resource")),null!=n&&(b=this.addToHttpParams(b,n,"facility")),null!=i&&(b=this.addToHttpParams(b,i,"host")),null!=r&&(b=this.addToHttpParams(b,r,"userExtSource"));let U,D=this.defaultHeaders;U=this.configuration.lookupCredential("BasicAuth"),U&&(D=D.set("Authorization","Basic "+U)),U=this.configuration.lookupCredential("BearerAuth"),U&&(D=D.set("Authorization","Bearer "+U));let se=f&&f.httpHeaderAccept;void 0===se&&(se=this.configuration.selectHeaderAccept(["application/json"])),void 0!==se&&(D=D.set("Accept",se));let De=f&&f.context;void 0===De&&(De=new y.qT);let rt="json";return se&&(rt=se.startsWith("text")?"text":this.configuration.isJsonMime(se)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:De,params:b,responseType:rt,withCredentials:this.configuration.withCredentials,headers:D,observe:d,reportProgress:u})}getEntitylessAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessAttributesByKey(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"key"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesByName(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attrName"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getEntitylessAttributesWithKeys(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attrName")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"keys[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getEntitylessKeys(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"attributeDefinition"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getFacilityAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getFacilityResourceUserMemberAttributes(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==s)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==c)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"facility")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"user")),null!=c&&(r=this.addToHttpParams(r,c,"member"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getFacilityUserAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"user"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupResourceAttributeById(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributeByName(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getGroupResourceAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getHostAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"host"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getHostAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLogins(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAndUserAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAndUserAttributesByNames(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"member"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getMemberAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAndUserAttributesByNames(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberGroupAttributeById(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributeByName(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberGroupAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getMemberGroupAttributesByNames(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attrNames[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAndUserFacilityAttributesByNames(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getMemberResourceAttributeById(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributeByName(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getMemberResourceAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"service"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacility(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesFacilityService(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesFacilityServices(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesGroupResourceService(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"service")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"group"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesHostService(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"host"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"workWithUserAttributes"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesMemberGroup(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberGroupResourceService(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==s)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==c)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"group")),null!=c&&(d=this.addToHttpParams(d,c,"member")),null!=l&&(d=this.addToHttpParams(d,l,"workWithUserAttributes"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}getRequiredAttributesMemberGroupService(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesMemberResource(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getRequiredAttributesMemberResourceService(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"service")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),null!=s&&(r=this.addToHttpParams(r,s,"member")),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getRequiredAttributesResource(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesResourceService(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesResourceServices(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let n=new y.LE({encoder:this.encoder});e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"services[]")}),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRequiredAttributesUserFacility(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getRequiredAttributesVoService(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"service")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"resource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getResourceAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupAndGroupAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==s)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"resource")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"workWithGroupAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getResourceGroupAndGroupAttributesByNames(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==s)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getResourceGroupAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"group"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getResourceGroupMemberAttributesByNames(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==s)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==c)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"resource")),null!=t&&(r=this.addToHttpParams(r,t,"group")),null!=s&&(r=this.addToHttpParams(r,s,"member")),c&&c.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserFacilityAttributeById(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==s)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeId"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributeByName(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==s)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attributeName"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getUserFacilityAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeById(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeId"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributeByName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attributeName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getVoAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVoAttributesByNames(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeAttributesForFacilityResourceGroupUserMember(e,t,s,c,l,n,i="body",r=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==c)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==n)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=s&&(u=this.addToHttpParams(u,s,"group")),null!=c&&(u=this.addToHttpParams(u,c,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),n&&n.forEach(De=>{u=this.addToHttpParams(u,De,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}removeAttributesForFacilityResourceUserMember(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==s)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==c)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility")),null!=t&&(d=this.addToHttpParams(d,t,"resource")),null!=s&&(d=this.addToHttpParams(d,s,"user")),null!=c&&(d=this.addToHttpParams(d,c,"member")),l&&l.forEach(se=>{d=this.addToHttpParams(d,se,"attributes[]")});let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}removeEntitylessAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"key")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeFacilityAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"facility")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"group")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeGroupResourceAttribute(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"group")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==c)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"group")),null!=t&&(r=this.addToHttpParams(r,t,"resource")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithGroupAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeHostAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeHostAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"host")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeMemberAttributesWorkWithUserAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),t&&t.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")}),null!=s&&(i=this.addToHttpParams(i,s,"workWithUserAttributes"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttribute(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"group")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==c)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"member")),null!=t&&(r=this.addToHttpParams(r,t,"group")),s&&s.forEach(U=>{r=this.addToHttpParams(r,U,"attributes[]")}),null!=c&&(r=this.addToHttpParams(r,c,"workWithUserAttributes"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}removeMemberResourceAttribute(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeMemberResourceAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"member")),null!=t&&(i=this.addToHttpParams(i,t,"resource")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeResourceAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeResourceAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"resource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUesAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSourceAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"userExtSource")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserFacilityAttribute(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==s)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),null!=s&&(i=this.addToHttpParams(i,s,"attribute"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeUserFacilityAttributes(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"facility")),s&&s.forEach(D=>{i=this.addToHttpParams(i,D,"attributes[]")});let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}removeVoAttribute(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),null!=t&&(n=this.addToHttpParams(n,t,"attribute"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeVoAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"vo")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attributes[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}setAttributePolicyCollections(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setAttributeRights(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setEntitylessAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceGroupUserMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityResourceUserMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setFacilityUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setGroupResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setHostAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberGroupWithUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAndUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setMemberWithUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setResourceGroupWithGroupAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserExtSourceAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setUserFacilityAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttribute(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setVoAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateAttributeDefinition(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Wi=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(c=>e=this.addToHttpParamsRecursive(e,c,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAllPolicies(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"role")),null!=t&&(i=this.addToHttpParams(i,t,"complementaryObjectId")),null!=s&&(i=this.addToHttpParams(i,s,"complementaryObjectName"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}getAuthzRichAdmins(e,t,s,c,l,n,i="body",r=!1,d){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==s)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==c)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"role")),null!=t&&(u=this.addToHttpParams(u,t,"complementaryObjectId")),null!=s&&(u=this.addToHttpParams(u,s,"complementaryObjectName")),c&&c.forEach(De=>{u=this.addToHttpParams(u,De,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=n&&(u=this.addToHttpParams(u,n,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}getFacilitiesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"groupId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getLoggedUser(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getPerunPrincipal(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSecurityTeamsWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserRoleNames(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserRoles(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userId"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsInRoles(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let n=new y.LE({encoder:this.encoder});null!=t&&(n=this.addToHttpParams(n,t,"user")),e&&e.forEach(b=>{n=this.addToHttpParams(n,b,"roles[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}isFacilityAdmin(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"facility"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isGroupAdmin(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"group"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isPerunAdmin(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}isVoAdmin(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"vo"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}keepAlive(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}setRoleWithUserComplementaryObject(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithGroupComplementaryObject(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}unsetRoleWithUserComplementaryObject(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),_i=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(c=>e=this.addToHttpParamsRecursive(e,c,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}sentMessageToRTWithMemberQueue(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"memberId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}sentMessageToRTWithQueue(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"queue")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVo(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==s)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"voId")),null!=t&&(i=this.addToHttpParams(i,t,"subject")),null!=s&&(i=this.addToHttpParams(i,s,"text"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}sentMessageToRTWithVoQueue(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==s)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==c)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"voId")),null!=t&&(r=this.addToHttpParams(r,t,"queue")),null!=s&&(r=this.addToHttpParams(r,s,"subject")),null!=c&&(r=this.addToHttpParams(r,c,"text"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Sn=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(c=>e=this.addToHttpParamsRecursive(e,c,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}addSpecificUserOwner(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}addUserExtSource(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}anonymizeUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}changeNonAuthzPasswordByToken(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"token")),null!=t&&(i=this.addToHttpParams(i,t,"password")),null!=s&&(i=this.addToHttpParams(i,s,"lang"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}changePasswordForLogin(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"login")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}changePasswordForUser(e,t,s,c,l,n="body",i=!1,r){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==s)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let d=new y.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user")),null!=t&&(d=this.addToHttpParams(d,t,"namespace")),null!=s&&(d=this.addToHttpParams(d,s,"newPassword")),null!=c&&(d=this.addToHttpParams(d,c,"oldPassword")),null!=l&&(d=this.addToHttpParams(d,l,"checkOldPassword"));let f,u=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(u=u.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(u=u.set("Authorization","Bearer "+f));let b=r&&r.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(u=u.set("Accept",b));let D=r&&r.context;void 0===D&&(D=new y.qT);let U="json";return b&&(U=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:D,params:d,responseType:U,withCredentials:this.configuration.withCredentials,headers:u,observe:n,reportProgress:i})}checkPasswordResetRequestByTokenIsValid(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"token"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}checkPasswordStrength(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"password")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}createAlternativePassword(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==s)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==c)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"user")),null!=t&&(r=this.addToHttpParams(r,t,"description")),null!=s&&(r=this.addToHttpParams(r,s,"loginNamespace")),null!=c&&(r=this.addToHttpParams(r,c,"password"));let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}createServiceUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}deleteAlternativePassword(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==s)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"loginNamespace")),null!=s&&(i=this.addToHttpParams(i,s,"passwordId"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}deletePasswordForLogin(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deletePasswordForUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}deleteUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"force"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findRichUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}findRichUsersWithAttributes(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"searchString")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrsNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}findUsers(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"searchString"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}generateAccountForName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"namespace")),null!=t&&(n=this.addToHttpParams(n,t,"name"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getAllRichUsersWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"includedSpecificUsers"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getAssignedRichResourcesForUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getGroupsForFacilityWhereUserIsActive(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"facility"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsForResourceWhereUserIsActive(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"resource"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsInVoWhereUserIsAdmin(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"vo"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getGroupsWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getPendingPreferredEmailChanges(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUserWithAttributes(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithAttributesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getRichUsersWithoutVoWithAttributes(e,t="body",s=!1,c){let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"attrsNames[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSpecificUsersByUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getSponsorsForMember(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"member")),t&&t.forEach(b=>{n=this.addToHttpParams(n,b,"attrNames[]")});let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getSponsorsForMemberByVoAndLogin(e,t,s,c,l="body",n=!1,i){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==s)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let r=new y.LE({encoder:this.encoder});null!=e&&(r=this.addToHttpParams(r,e,"vo")),null!=t&&(r=this.addToHttpParams(r,t,"extSourceName")),null!=s&&(r=this.addToHttpParams(r,s,"extLogin")),c&&c.forEach(U=>{r=this.addToHttpParams(r,U,"attrNames[]")});let u,d=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(d=d.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(d=d.set("Authorization","Bearer "+u));let f=i&&i.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(d=d.set("Accept",f));let b=i&&i.context;void 0===b&&(b=new y.qT);let D="json";return f&&(D=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:r,responseType:D,withCredentials:this.configuration.withCredentials,headers:d,observe:l,reportProgress:n})}getUserByExtSourceNameAndExtLogin(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extLogin")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceName"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"id"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByExtLoginAndExtSourceName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"extSourceName")),null!=t&&(n=this.addToHttpParams(n,t,"extSourceLogin"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceById(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeId")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"attributeName")),null!=t&&(n=this.addToHttpParams(n,t,"attributeValue"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}getUserExtSources(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUserExtSourcesByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsers(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getUsersByIds(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let l=new y.LE({encoder:this.encoder});e&&e.forEach(f=>{l=this.addToHttpParams(l,f,"ids[]")});let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersBySpecificUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"specificUser"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getUsersPage(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}getVosWhereUserIsAdmin(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}getVosWhereUserIsMember(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"user"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}isLoginAvailable(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"loginNamespace")),null!=t&&(n=this.addToHttpParams(n,t,"login"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}loginExist(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeSpecificUserOwner(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"specificUser"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}removeUserExtSource(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"userExtSource")),null!=s&&(i=this.addToHttpParams(i,s,"force"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}requestPreferredEmailChange(e,t,s,c,l,n,i="body",r=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let u=new y.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"email")),null!=s&&(u=this.addToHttpParams(u,s,"lang")),null!=c&&(u=this.addToHttpParams(u,c,"linkPath")),null!=l&&(u=this.addToHttpParams(u,l,"customUrl")),null!=n&&(u=this.addToHttpParams(u,n,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let D=d&&d.httpHeaderAccept;void 0===D&&(D=this.configuration.selectHeaderAccept(["application/json"])),void 0!==D&&(f=f.set("Accept",D));let U=d&&d.context;void 0===U&&(U=new y.qT);let se="json";return D&&(se=D.startsWith("text")?"text":this.configuration.isJsonMime(D)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:U,params:u,responseType:se,withCredentials:this.configuration.withCredentials,headers:f,observe:i,reportProgress:r})}reservePasswordForLogin(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"login")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reservePasswordForUser(e,t,s,c="body",l=!1,n){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==s)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let i=new y.LE({encoder:this.encoder});null!=e&&(i=this.addToHttpParams(i,e,"user")),null!=t&&(i=this.addToHttpParams(i,t,"namespace")),null!=s&&(i=this.addToHttpParams(i,s,"password"));let d,r=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(r=r.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(r=r.set("Authorization","Bearer "+d));let u=n&&n.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(r=r.set("Accept",u));let f=n&&n.context;void 0===f&&(f=new y.qT);let b="json";return u&&(b=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:i,responseType:b,withCredentials:this.configuration.withCredentials,headers:r,observe:c,reportProgress:l})}reserveRandomPassword(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}updateUser(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let n,l=this.defaultHeaders;n=this.configuration.lookupCredential("BasicAuth"),n&&(l=l.set("Authorization","Basic "+n)),n=this.configuration.lookupCredential("BearerAuth"),n&&(l=l.set("Authorization","Bearer "+n));let i=c&&c.httpHeaderAccept;void 0===i&&(i=this.configuration.selectHeaderAccept(["application/json"])),void 0!==i&&(l=l.set("Accept",i));let r=c&&c.context;void 0===r&&(r=new y.qT);const u=this.configuration.selectHeaderContentType(["application/json"]);void 0!==u&&(l=l.set("Content-Type",u));let f="json";return i&&(f=i.startsWith("text")?"text":this.configuration.isJsonMime(i)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:r,responseType:f,withCredentials:this.configuration.withCredentials,headers:l,observe:t,reportProgress:s})}updateUserExtSourceLastAccess(e,t="body",s=!1,c){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let l=new y.LE({encoder:this.encoder});null!=e&&(l=this.addToHttpParams(l,e,"userExtSource"));let i,n=this.defaultHeaders;i=this.configuration.lookupCredential("BasicAuth"),i&&(n=n.set("Authorization","Basic "+i)),i=this.configuration.lookupCredential("BearerAuth"),i&&(n=n.set("Authorization","Bearer "+i));let r=c&&c.httpHeaderAccept;void 0===r&&(r=this.configuration.selectHeaderAccept(["application/json"])),void 0!==r&&(n=n.set("Accept",r));let d=c&&c.context;void 0===d&&(d=new y.qT);let u="json";return r&&(u=r.startsWith("text")?"text":this.configuration.isJsonMime(r)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:d,params:l,responseType:u,withCredentials:this.configuration.withCredentials,headers:n,observe:t,reportProgress:s})}validatePasswordForLogin(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"login")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePasswordForUser(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"user")),null!=t&&(n=this.addToHttpParams(n,t,"namespace"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}validatePreferredEmailChangeWithToken(e,t,s="body",c=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let n=new y.LE({encoder:this.encoder});null!=e&&(n=this.addToHttpParams(n,e,"token")),null!=t&&(n=this.addToHttpParams(n,t,"u"));let r,i=this.defaultHeaders;r=this.configuration.lookupCredential("BasicAuth"),r&&(i=i.set("Authorization","Basic "+r)),r=this.configuration.lookupCredential("BearerAuth"),r&&(i=i.set("Authorization","Bearer "+r));let d=l&&l.httpHeaderAccept;void 0===d&&(d=this.configuration.selectHeaderAccept(["application/json"])),void 0!==d&&(i=i.set("Accept",d));let u=l&&l.context;void 0===u&&(u=new y.qT);let f="json";return d&&(f=d.startsWith("text")?"text":this.configuration.isJsonMime(d)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:u,params:n,responseType:f,withCredentials:this.configuration.withCredentials,headers:i,observe:s,reportProgress:c})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xe=(()=>{class o{constructor(e,t,s){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new y.WM,this.configuration=new je,s&&(this.configuration=s),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Ot}addToHttpParams(e,t,s){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,s):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,s){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(c=>e=this.addToHttpParamsRecursive(e,c,s));else if(t instanceof Date){if(null==s)throw Error("key may not be null if value is Date");e=e.append(s,t.toISOString().substr(0,10))}else Object.keys(t).forEach(c=>e=this.addToHttpParamsRecursive(e,t[c],null!=s?`${s}.${c}`:c));else{if(null==s)throw Error("key may not be null if value is not object or array");e=e.append(s,t)}return e}getAppsConfig(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,s){let l,c=this.defaultHeaders;l=this.configuration.lookupCredential("BasicAuth"),l&&(c=c.set("Authorization","Basic "+l)),l=this.configuration.lookupCredential("BearerAuth"),l&&(c=c.set("Authorization","Bearer "+l));let n=s&&s.httpHeaderAccept;void 0===n&&(n=this.configuration.selectHeaderAccept(["application/json"])),void 0!==n&&(c=c.set("Accept",n));let i=s&&s.context;void 0===i&&(i=new y.qT);let r="json";return n&&(r=n.startsWith("text")?"text":this.configuration.isJsonMime(n)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:i,responseType:r,withCredentials:this.configuration.withCredentials,headers:c,observe:e,reportProgress:t})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Ft,8),g.LFG(je,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Of=(()=>{class o{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:o,providers:[{provide:je,useFactory:e}]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(o,12),g.LFG(y.eN,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[]]}),o})();var st=(()=>{return(o=st||(st={})).PERUNADMIN="PERUNADMIN",o.PERUNOBSERVER="PERUNOBSERVER",o.VOADMIN="VOADMIN",o.GROUPADMIN="GROUPADMIN",o.SELF="SELF",o.FACILITYADMIN="FACILITYADMIN",o.FACILITIYOBSERVER="FACILITYOBSERVER",o.RESOURCEADMIN="RESOURCEADMIN",o.RESOURCESELFSERVICE="RESOURCESELFSERVICE",o.REGISTRAR="REGISTRAR",o.ENGINE="ENGINE",o.RPC="RPC",o.NOTIFICATIONS="NOTIFICATIONS",o.SERVICEUSER="SERVICEUSER",o.SPONSOR="SPONSOR",o.VOOBSERVER="VOOBSERVER",o.TOPGROUPCREATOR="TOPGROUPCREATOR",o.SECURITYADMIN="SECURITYADMIN",o.CABINETADMIN="CABINETADMIN",o.UNKNOWNROLENAME="UNKNOWNROLENAME",st;var o})();let Ff=(()=>{class o{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const s=this.fetchPolicyWithAllIncludedPolicies(e);let c=[];for(const n of s)c=c.concat(n.perunRoles);const l=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(c,l)}principalHasRole(e,t,s){let c=t;return t.startsWith("Rich")&&(c=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][c])&&this.principal.roles[e][c].includes(Number(s.toString()))}canManageFacilities(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER,st.FACILITYADMIN,st.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(st.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(st.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(st.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(st.PERUNADMIN,st.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(st.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(st.PERUNADMIN,st.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(st.PERUNADMIN,st.VOOBSERVER,st.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(st.PERUNADMIN,st.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(s=>{this.allRolesManagementRules=s,e()},s=>t(s))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(s=>{s.primaryObject===t&&e.push(s.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let s=e.beanName;s.startsWith("Rich")&&(s=s.substring(4)),this.assignAvailableRoles(t,s);const c=new Map;this.setRolesAuthorization(t,e,c);for(const l of c.values())if(l.readAuth||l.manageAuth)return!0;return!1}setRolesAuthorization(e,t,s){for(const c of e){let l=[],n=[],i=[];for(const b of this.allRolesManagementRules)if(b.roleName===c){l=l.concat(b.privilegedRolesToRead),n=n.concat(b.privilegedRolesToManage);for(const D of Object.keys(b.entitiesToManage))i="User"===D?[D].concat(i):i.concat(D);break}const r=this.fetchAllRelatedObjects([t]),d=this.resolveAuthorization(l,r),u=this.resolveAuthorization(n,r);s.set(c,{readAuth:d,manageAuth:u,modes:i})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const s of e){let c=!0;for(const l of Object.keys(s)){const n=s[l];if(null===n)this.principalRoles.has(l)||(c=!1);else if(t[n]){for(const i of t[n])if(!this.principalHasRole(l,n,i)){c=!1;break}}else c=!1;if(!c)break}if(c)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const s of e){let c=s.beanName;switch(s.beanName.startsWith("Rich")&&(c=s.beanName.substring(4)),t[c]?t[c].push(s.id):t[c]=[s.id],c){case"Member":t.User?t.User.push(s.userId):t.User=[s.userId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId];break;case"Resource":t.Facility?t.Facility.push(s.facilityId):t.Facility=[s.facilityId],t.Vo?t.Vo.push(s.voId):t.Vo=[s.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let s=[];for(s.push(e);0!==s.length;){const l=s.shift();if(t.has(l))continue;const n=this.getPerunPolicy(l);if(!n)return[];t.set(l,n),s=s.concat(n.includePolicies)}const c=[];for(const l of t.values())c.push(l);return c}voCustomSort(e){for(let t=0;t{class o{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const s=this.instanceConfig.brandings[this.branding];for(let c=0;c(0,cn.k)(s)?t(...s):t(s))):new Ci.y(s=>{Kd(o,a,function c(l){s.next(arguments.length>1?Array.prototype.slice.call(arguments):l)},s,e)})}function Kd(o,a,e,t,s){let c;if(function Zd(o){return o&&"function"==typeof o.addEventListener&&"function"==typeof o.removeEventListener}(o)){const l=o;o.addEventListener(a,e,s),c=()=>l.removeEventListener(a,e,s)}else if(function ro(o){return o&&"function"==typeof o.on&&"function"==typeof o.off}(o)){const l=o;o.on(a,e),c=()=>l.off(a,e)}else if(function Wl(o){return o&&"function"==typeof o.addListener&&"function"==typeof o.removeListener}(o)){const l=o;o.addListener(a,e),c=()=>l.removeListener(a,e)}else{if(!o||!o.length)throw new TypeError("Invalid event target");for(let l=0,n=o.length;l0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ql=1;const jf=Promise.resolve(),es={};function ts(o){return o in es&&(delete es[o],!0)}const ao={setImmediate(o){const a=Ql++;return es[a]=!0,jf.then(()=>ts(a)&&o()),a},clearImmediate(o){ts(o)}},H=new class jt extends yi.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,s=-1,c=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++s0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=ao.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(ao.clearImmediate(e),a.scheduled=void 0)}});var k=E(353),M=E(826),V=E(9054);class de{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new me(a,this.durationSelector))}}class me extends M.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:s}=this;e=s(a)}catch(s){return this.destination.error(s)}const t=(0,V.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,s){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Oe(o){return!(0,cn.k)(o)&&o-parseFloat(o)+1>=0}var Mt=E(2866);function xt(o=0,a,e){let t=-1;return Oe(a)?t=Number(a)<1?1:Number(a):(0,Mt.K)(a)&&(e=a),(0,Mt.K)(e)||(e=k.P),new Ci.y(s=>{const c=Oe(o)?o:+o-e.now();return e.schedule(ut,c,{index:0,period:t,subscriber:s})})}function ut(o){const{index:a,period:e,subscriber:t}=o;if(t.next(a),!t.closed){if(-1===e)return t.complete();o.index=a+1,this.schedule(o,e)}}function gt(o,a=k.P){return function X(o){return function(e){return e.lift(new de(o))}}(()=>xt(o,a))}var mt=E(2198);let kt;try{kt="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(o){kt=!1}let wi,Je=(()=>{class o{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!kt)&&"undefined"!=typeof CSS&&!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}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.Lbi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Yi=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const Ge=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Rr(){if(wi)return wi;if("object"!=typeof document||!document)return wi=new Set(Ge),wi;let o=document.createElement("input");return wi=new Set(Ge.filter(a=>(o.setAttribute("type",a),o.type===a))),wi}let kr,oa,_t;function dn(o){return function so(){if(null==kr&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>kr=!0}))}finally{kr=kr||!1}return kr}()?o:!!o.capture}function tC(){if(null==oa){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return oa=!1,oa;if("scrollBehavior"in document.documentElement.style)oa=!0;else{const o=Element.prototype.scrollTo;oa=!!o&&!/\{\s*\[native code\]\s*\}/.test(o.toString())}}return oa}function Gt(o){if(function Nf(){if(null==_t){const o="undefined"!=typeof document?document.head:null;_t=!(!o||!o.createShadowRoot&&!o.attachShadow)}return _t}()){const a=o.getRootNode?o.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Jl(){let o="undefined"!=typeof document&&document?document.activeElement:null;for(;o&&o.shadowRoot;){const a=o.shadowRoot.activeElement;if(a===o)break;o=a}return o}function Di(o){return o.composedPath?o.composedPath()[0]:o.target}function un(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const tu=new g.OlP("cdk-dir-doc",{providedIn:"root",factory:function iu(){return(0,g.f3M)(T.K0)}}),wx=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let hn=(()=>{class o{constructor(e){if(this.value="ltr",this.change=new g.vpe,e){const s=e.documentElement?e.documentElement.dir:null;this.value=function iC(o){const a=(null==o?void 0:o.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wx.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(tu,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ti=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),zf=(()=>{class o{constructor(e,t,s){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ci.y(t=>{this._globalSubscription||this._addGlobalListener();const s=e>0?this._scrolled.pipe(gt(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,ke.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const s=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,mt.h)(c=>!c||s.indexOf(c)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((s,c)=>{this._scrollableContainsElement(c,e)&&t.push(c)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let s=Lt(t),c=e.getElementRef().nativeElement;do{if(s==c)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>no(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.R0b),g.LFG(Je),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),la=(()=>{class o{constructor(e,t,s){this._platform=e,this._change=new He.xQ,this._changeListener=c=>{this._change.next(c)},this._document=s,t.runOutsideAngular(()=>{if(e.isBrowser){const c=this._getWindow();c.addEventListener("resize",this._changeListener),c.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:s}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+s,right:e.left+t,height:s,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),s=e.documentElement,c=s.getBoundingClientRect();return{top:-c.top||e.body.scrollTop||t.scrollY||s.scrollTop||0,left:-c.left||e.body.scrollLeft||t.scrollX||s.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(gt(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Un=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ca=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti,Yi,Un],ti,Un]}),o})();class Nt{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class co extends Nt{constructor(a,e,t,s){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=s}}class ou extends Nt{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class qf extends Nt{constructor(a){super(),this.element=a instanceof g.SBq?a.nativeElement:a}}class lu{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof co?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof ou?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof qf?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class cC extends lu{constructor(a,e,t,s,c){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=s,this.attachDomPortal=l=>{const n=l.element,i=this._document.createComment("dom-portal");n.parentNode.insertBefore(i,n),this.outletElement.appendChild(n),this._attachedPortal=l,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})},this._document=c}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let s;return a.viewContainerRef?(s=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>s.destroy())):(s=t.create(a.injector||this._defaultInjector),this._appRef.attachView(s.hostView),this.setDisposeFn(()=>{this._appRef.detachView(s.hostView),s.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(s)),this._attachedPortal=a,s}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context);return t.rootNodes.forEach(s=>this.outletElement.appendChild(s)),t.detectChanges(),this.setDisposeFn(()=>{let s=e.indexOf(t);-1!==s&&e.remove(s)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let Kl=(()=>{class o extends lu{constructor(e,t,s){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new g.vpe,this.attachDomPortal=c=>{const l=c.element,n=this._document.createComment("dom-portal");c.setAttachedHost(this),l.parentNode.insertBefore(n,l),this._getRootNode().appendChild(l),this._attachedPortal=c,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(l,n)})},this._document=s}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,c=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),l=t.createComponent(c,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(l.hostView.rootNodes[0]),super.setDisposeFn(()=>l.destroy()),this._attachedPortal=e,this._attachedRef=l,this.attached.emit(l),l}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g._Vd),g.Y36(g.s_b),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[g.qOj]}),o})(),uo=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();var zt=E(2654),qn=E(6787),Qt=E(2986);function ht(o){return a=>a.lift(new hu(o))}class hu{constructor(a){this.notifier=a}call(a,e){const t=new uC(a),s=(0,V.D)(t,this.notifier);return s&&!t.seenValue?(t.add(s),e.subscribe(t)):t}}class uC extends M.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,s,c){this.seenValue=!0,this.complete()}notifyComplete(){}}const Wf=tC();class Sx{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=$t(-this._previousScrollPosition.left),a.style.top=$t(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,s=this._document.body.style,c=t.scrollBehavior||"",l=s.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Wf&&(t.scrollBehavior=s.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Wf&&(t.scrollBehavior=c,s.scrollBehavior=l)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Zl{constructor(a,e,t,s){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class pu{enable(){}disable(){}attach(){}}function ho(o,a){return a.some(e=>o.bottome.bottom||o.righte.right)}function po(o,a){return a.some(e=>o.tope.bottom||o.lefte.right)}class $f{constructor(a,e,t,s){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=s,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:s}=this._viewportRuler.getViewportSize();ho(e,[{width:t,height:s,bottom:s,right:t,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 Qf=(()=>{class o{constructor(e,t,s,c){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=s,this.noop=()=>new pu,this.close=l=>new Zl(this._scrollDispatcher,this._ngZone,this._viewportRuler,l),this.block=()=>new Sx(this._viewportRuler,this._document),this.reposition=l=>new $f(this._scrollDispatcher,this._viewportRuler,this._ngZone,l),this._document=c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(zf),g.LFG(la),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class Br{constructor(a){if(this.scrollStrategy=new pu,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class fu{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class Yf{constructor(a,e,t,s,c,l,n,i,r){this._portalOutlet=a,this._host=e,this._pane=t,this._config=s,this._ngZone=c,this._keyboardDispatcher=l,this._document=n,this._location=i,this._outsideClickDispatcher=r,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=zt.w.EMPTY,this._backdropClickHandler=d=>this._backdropClick.next(d),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Qt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=$t(this._config.width),a.height=$t(this._config.height),a.minWidth=$t(this._config.minWidth),a.minHeight=$t(this._config.minHeight),a.maxWidth=$t(this._config.maxWidth),a.maxHeight=$t(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const s=to(e||[]).filter(c=>!!c);s.length&&(t?a.classList.add(...s):a.classList.remove(...s))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(ht((0,qn.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Xl=(()=>{class o{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||un()){const s=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let c=0;c{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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,s=this._containerRect,c=[];let l;for(let n of this._preferredPositions){let i=this._getOriginPoint(a,s,n),r=this._getOverlayPoint(i,e,n),d=this._getOverlayFit(r,e,t,n);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(n,i);this._canFitWithFlexibleDimensions(d,r,t)?c.push({position:n,origin:i,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(i,n)}):(!l||l.overlayFit.visibleAreai&&(i=d,n=r)}return this._isPushed=!1,void this._applyPosition(n.position,n.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(l.position,l.originPoint);this._applyPosition(l.position,l.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ur(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Jf),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let s,c;if("center"==t.originX)s=a.left+a.width/2;else{const l=this._isRtl()?a.right:a.left,n=this._isRtl()?a.left:a.right;s="start"==t.originX?l:n}return e.left<0&&(s-=e.left),c="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(c-=e.top),{x:s,y:c}}_getOverlayPoint(a,e,t){let s,c;return s="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,c="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+s,y:a.y+c}}_getOverlayFit(a,e,t,s){const c=mo(e);let{x:l,y:n}=a,i=this._getOffset(s,"x"),r=this._getOffset(s,"y");i&&(l+=i),r&&(n+=r);let f=0-n,b=n+c.height-t.height,D=this._subtractOverflows(c.width,0-l,l+c.width-t.width),U=this._subtractOverflows(c.height,f,b),se=D*U;return{visibleArea:se,isCompletelyWithinViewport:c.width*c.height===se,fitsInViewportVertically:U===c.height,fitsInViewportHorizontally:D==c.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const s=t.bottom-e.y,c=t.right-e.x,l=ec(this._overlayRef.getConfig().minHeight),n=ec(this._overlayRef.getConfig().minWidth),r=a.fitsInViewportHorizontally||null!=n&&n<=c;return(a.fitsInViewportVertically||null!=l&&l<=s)&&r}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const s=mo(e),c=this._viewportRect,l=Math.max(a.x+s.width-c.width,0),n=Math.max(a.y+s.height-c.height,0),i=Math.max(c.top-t.top-a.y,0),r=Math.max(c.left-t.left-a.x,0);let d=0,u=0;return d=s.width<=c.width?r||-l:a.xD&&!this._isInitialRender&&!this._growAfterOpen&&(l=a.y-D/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)f=t.width-a.x+this._viewportMargin,d=a.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)u=a.x,d=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),D=this._lastBoundingBoxSize.width;d=2*b,u=a.x-b,d>D&&!this._isInitialRender&&!this._growAfterOpen&&(u=a.x-D/2)}return{top:l,left:u,bottom:n,right:f,width:d,height:c}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const c=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;s.height=$t(t.height),s.top=$t(t.top),s.bottom=$t(t.bottom),s.width=$t(t.width),s.left=$t(t.left),s.right=$t(t.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",c&&(s.maxHeight=$t(c)),l&&(s.maxWidth=$t(l))}this._lastBoundingBoxSize=t,ur(this._boundingBox.style,s)}_resetBoundingBoxStyles(){ur(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ur(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},s=this._hasExactPosition(),c=this._hasFlexibleDimensions,l=this._overlayRef.getConfig();if(s){const d=this._viewportRuler.getViewportScrollPosition();ur(t,this._getExactOverlayY(e,a,d)),ur(t,this._getExactOverlayX(e,a,d))}else t.position="static";let n="",i=this._getOffset(e,"x"),r=this._getOffset(e,"y");i&&(n+=`translateX(${i}px) `),r&&(n+=`translateY(${r}px)`),t.transform=n.trim(),l.maxHeight&&(s?t.maxHeight=$t(l.maxHeight):c&&(t.maxHeight="")),l.maxWidth&&(s?t.maxWidth=$t(l.maxWidth):c&&(t.maxWidth="")),ur(this._pane.style,t)}_getExactOverlayY(a,e,t){let s={top:"",bottom:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),"bottom"===a.overlayY?s.bottom=this._document.documentElement.clientHeight-(c.y+this._overlayRect.height)+"px":s.top=$t(c.y),s}_getExactOverlayX(a,e,t){let l,s={left:"",right:""},c=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(c=this._pushOverlayOnScreen(c,this._overlayRect,t)),l=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===l?s.right=this._document.documentElement.clientWidth-(c.x+this._overlayRect.width)+"px":s.left=$t(c.x),s}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(s=>s.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:po(a,t),isOriginOutsideView:ho(a,t),isOverlayClipped:po(e,t),isOverlayOutsideView:ho(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,s)=>t-Math.max(s,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&to(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof g.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ur(o,a){for(let e in a)a.hasOwnProperty(e)&&(o[e]=a[e]);return o}function ec(o){if("number"!=typeof o&&null!=o){const[a,e]=o.split(hC);return e&&"px"!==e?null:parseFloat(a)}return o||null}function mo(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const _o="cdk-global-overlay-wrapper";class pC{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(_o),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:s,height:c,maxWidth:l,maxHeight:n}=t,i=!("100%"!==s&&"100vw"!==s||l&&"100%"!==l&&"100vw"!==l),r=!("100%"!==c&&"100vh"!==c||n&&"100%"!==n&&"100vh"!==n);a.position=this._cssPosition,a.marginLeft=i?"0":this._leftOffset,a.marginTop=r?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,i?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=r?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(_o),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Kf=(()=>{class o{constructor(e,t,s,c){this._viewportRuler=e,this._document=t,this._platform=s,this._overlayContainer=c}global(){return new pC}flexibleConnectedTo(e){return new go(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(la),g.LFG(T.K0),g.LFG(Je),g.LFG(Xl))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),mu=(()=>{class o{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Zf=(()=>{class o extends mu{constructor(e){super(e),this._keydownListener=t=>{const s=this._attachedOverlays;for(let c=s.length-1;c>-1;c--)if(s[c]._keydownEvents.observers.length>0){s[c]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xf=(()=>{class o extends mu{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Di(s)},this._clickListener=s=>{const c=Di(s),l="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:c;this._pointerDownEventTarget=null;const n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const r=n[i];if(!(r._outsidePointerEvents.observers.length<1)&&r.hasAttached()){if(r.overlayElement.contains(c)||r.overlayElement.contains(l))break;r._outsidePointerEvents.next(s)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fC=0,Wn=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=s,this._positionBuilder=c,this._keyboardDispatcher=l,this._injector=n,this._ngZone=i,this._document=r,this._directionality=d,this._location=u,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),s=this._createPaneElement(t),c=this._createPortalOutlet(s),l=new Br(e);return l.direction=l.direction||this._directionality.value,new Yf(c,t,s,l,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+fC++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new cC(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Qf),g.LFG(Xl),g.LFG(g._Vd),g.LFG(Kf),g.LFG(Zf),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(hn),g.LFG(T.Ye),g.LFG(Xf))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const is={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[Wn],useFactory:function eg(o){return()=>o.scrollStrategies.reposition()}};let ns=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Wn,is],imports:[[ti,uo,ca],ca]}),o})();var ha=E(5279);class ai extends He.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const e=super._subscribe(a);return e&&!e.closed&&a.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ha.N;return this._value}next(a){super.next(this._value=a)}}function pr(o,...a){return a.length?a.some(e=>o[e]):o.altKey||o.shiftKey||o.ctrlKey||o.metaKey}var It=E(2868),fa=E(13),ga=E(3489);function Tu(o){return a=>a.lift(new pg(o))}class pg{constructor(a){this.total=a}call(a,e){return e.subscribe(new _0(a,this.total))}}class _0 extends ga.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}class C0{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new Eu(a,this.compare,this.keySelector))}}class Eu extends ga.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:s}=this;e=s?s(a):a}catch(s){return this.destination.error(s)}let t=!1;if(this.hasKey)try{const{compare:s}=this;t=s(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let uc=(()=>{class o{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Su=(()=>{class o{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Lt(e);return new Ci.y(s=>{const l=this._observeElement(t).subscribe(s);return()=>{l.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,s=this._mutationObserverFactory.create(c=>t.next(c));s&&s.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:s,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:s}=this._observedElements.get(e);t&&t.disconnect(),s.complete(),this._observedElements.delete(e)}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(uc))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),BC=(()=>{class o{constructor(e,t,s){this._contentObserver=e,this._elementRef=t,this._ngZone=s,this.event=new g.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=ln(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,fa.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Su),g.Y36(g.SBq),g.Y36(g.R0b))},o.\u0275dir=g.lG2({type:o,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),o})(),fg=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[uc]}),o})();function hc(o,a){return(o.getAttribute(a)||"").match(/\S+/g)||[]}const Hu="cdk-describedby-message",ma="cdk-describedby-host";let Du=0,Pu=(()=>{class o{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Du++,this._document=e}describe(e,t,s){if(!this._canBeDescribed(e,t))return;const c=Ru(t,s);"string"!=typeof t?(qt(t),this._messageRegistry.set(c,{messageElement:t,referenceCount:0})):this._messageRegistry.has(c)||this._createMessageElement(t,s),this._isElementDescribedByMessage(e,c)||this._addMessageReference(e,c)}removeDescription(e,t,s){var c;if(!t||!this._isElementNode(e))return;const l=Ru(t,s);if(this._isElementDescribedByMessage(e,l)&&this._removeMessageReference(e,l),"string"==typeof t){const n=this._messageRegistry.get(l);n&&0===n.referenceCount&&this._deleteMessageElement(l)}0===(null===(c=this._messagesContainer)||void 0===c?void 0:c.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${ma}="${this._id}"]`);for(let s=0;s0!=s.indexOf(Hu));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const s=this._messageRegistry.get(t);(function OC(o,a,e){const t=hc(o,a);t.some(s=>s.trim()==e.trim())||(t.push(e.trim()),o.setAttribute(a,t.join(" ")))})(e,"aria-describedby",s.messageElement.id),e.setAttribute(ma,this._id),s.referenceCount++}_removeMessageReference(e,t){const s=this._messageRegistry.get(t);s.referenceCount--,function FC(o,a,e){const s=hc(o,a).filter(c=>c!=e.trim());s.length?o.setAttribute(a,s.join(" ")):o.removeAttribute(a)}(e,"aria-describedby",s.messageElement.id),e.removeAttribute(ma)}_isElementDescribedByMessage(e,t){const s=hc(e,"aria-describedby"),c=this._messageRegistry.get(t),l=c&&c.messageElement.id;return!!l&&-1!=s.indexOf(l)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const s=null==t?"":`${t}`.trim(),c=e.getAttribute("aria-label");return!(!s||c&&c.trim()===s)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ru(o,a){return"string"==typeof o?`${a||""}/${o}`:o}function qt(o){o.id||(o.id=`${Hu}-${Du++}`)}class Ho extends class gg{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=zt.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof g.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const s=e.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,It.b)(e=>this._pressedLetters.push(e)),(0,fa.b)(a),(0,mt.h)(()=>this._pressedLetters.length>0),(0,et.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let s=1;s!a[c]||this._allowedModifierKeys.indexOf(c)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&s){this.setNextItemActive();break}return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&s){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&s){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}return;default:return void((s||pr(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a),s=e[t];this._activeItem=null==s?null:s,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const s=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof g.n_E?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let mg=(()=>{class o{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function NC(o){return!!(o.offsetWidth||o.offsetHeight||"function"==typeof o.getClientRects&&o.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function jC(o){try{return o.frameElement}catch(a){return null}}(function Ai(o){return o.ownerDocument&&o.ownerDocument.defaultView||window}(e));if(t&&(-1===pc(t)||!this.isVisible(t)))return!1;let s=e.nodeName.toLowerCase(),c=pc(e);return e.hasAttribute("contenteditable")?-1!==c:!("iframe"===s||"object"===s||this._platform.WEBKIT&&this._platform.IOS&&!function _g(o){let a=o.nodeName.toLowerCase(),e="input"===a&&o.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===s?!!e.hasAttribute("controls")&&-1!==c:"video"===s?-1!==c&&(null!==c||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function bg(o){return!function GC(o){return function A0(o){return"input"==o.nodeName.toLowerCase()}(o)&&"hidden"==o.type}(o)&&(function zC(o){let a=o.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(o)||function v0(o){return function Do(o){return"a"==o.nodeName.toLowerCase()}(o)&&o.hasAttribute("href")}(o)||o.hasAttribute("contenteditable")||vi(o))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function vi(o){if(!o.hasAttribute("tabindex")||void 0===o.tabIndex)return!1;let a=o.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function pc(o){if(!vi(o))return null;const a=parseInt(o.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class Po{constructor(a,e,t,s,c=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,c||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const s=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(s)return s}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(a)}}let ku=(()=>{class o{constructor(e,t,s){this._checker=e,this._ngZone=t,this._document=s}create(e,t=!1){return new Po(e,this._checker,this._ngZone,this._document,t)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(mg),g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Ro(o){return 0===o.buttons||0===o.offsetX&&0===o.offsetY}function fc(o){const a=o.touches&&o.touches[0]||o.changedTouches&&o.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const WC=new g.OlP("cdk-input-modality-detector-options"),Iu={ignoreKeys:[18,17,224,91,16]},ss=dn({passive:!0,capture:!0});let Vu=(()=>{class o{constructor(e,t,s,c){this._platform=e,this._mostRecentTarget=null,this._modality=new ai(null),this._lastTouchMs=0,this._onKeydown=l=>{var n,i;(null===(i=null===(n=this._options)||void 0===n?void 0:n.ignoreKeys)||void 0===i?void 0:i.some(r=>r===l.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Di(l))},this._onMousedown=l=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ro(l)?"keyboard":"mouse"),this._mostRecentTarget=Di(l))},this._onTouchstart=l=>{fc(l)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Di(l))},this._options=Object.assign(Object.assign({},Iu),c),this.modalityDetected=this._modality.pipe(Tu(1)),this.modalityChanged=this.modalityDetected.pipe(function b0(o,a){return e=>e.lift(new C0(o,a))}()),e.isBrowser&&t.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,ss),s.addEventListener("mousedown",this._onMousedown,ss),s.addEventListener("touchstart",this._onTouchstart,ss)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ss),document.removeEventListener("mousedown",this._onMousedown,ss),document.removeEventListener("touchstart",this._onTouchstart,ss))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(g.R0b),g.LFG(T.K0),g.LFG(WC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const QC=new g.OlP("cdk-focus-monitor-default-options"),mc=dn({passive:!0,capture:!0});let Fr=(()=>{class o{constructor(e,t,s,c,l){this._ngZone=e,this._platform=t,this._inputModalityDetector=s,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 He.xQ,this._rootNodeFocusAndBlurListener=n=>{const i=Di(n),r="focus"===n.type?this._onFocus:this._onBlur;for(let d=i;d;d=d.parentElement)r.call(this,n,d)},this._document=c,this._detectionMode=(null==l?void 0:l.detectionMode)||0}monitor(e,t=!1){const s=Lt(e);if(!this._platform.isBrowser||1!==s.nodeType)return(0,ke.of)(null);const c=Gt(s)||this._getDocument(),l=this._elementInfo.get(s);if(l)return t&&(l.checkChildren=!0),l.subject;const n={checkChildren:t,subject:new He.xQ,rootNode:c};return this._elementInfo.set(s,n),this._registerGlobalListeners(n),n.subject}stopMonitoring(e){const t=Lt(e),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(e,t,s){const c=Lt(e);c===this._getDocument().activeElement?this._getClosestElementsInfo(c).forEach(([n,i])=>this._originChanged(n,t,i)):(this._setOrigin(t),"function"==typeof c.focus&&c.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const s=this._elementInfo.get(t),c=Di(e);!s||!s.checkChildren&&t!==c||this._originChanged(t,this._getFocusOrigin(c),s)}_onBlur(e,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(s.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,mc),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,mc)}),this._rootNodeFocusListenerCount.set(t,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ht(this._stopInputModalityDetector)).subscribe(c=>{this._setOrigin(c,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,mc),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,mc),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,s){this._setClasses(e,t),this._emitOrigin(s.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((s,c)=>{(c===e||s.checkChildren&&c.contains(e))&&t.push([c,s])}),t}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.R0b),g.LFG(Je),g.LFG(Vu),g.LFG(T.K0,8),g.LFG(QC,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const yg="cdk-high-contrast-black-on-white",wg="cdk-high-contrast-white-on-black",Bu="cdk-high-contrast-active";let vg=(()=>{class o{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,s=t&&t.getComputedStyle?t.getComputedStyle(e):null,c=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),c){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Bu),e.remove(yg),e.remove(wg),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Bu),e.add(yg)):2===t&&(e.add(Bu),e.add(wg))}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Ou=(()=>{class o{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi,fg]]}),o})();var _c=E(9146);function os(...o){return function JC(){return(0,_c.J)(1)}()((0,ke.of)(...o))}function hi(...o){const a=o[o.length-1];return(0,Mt.K)(a)?(o.pop(),e=>os(o,e,a)):e=>os(o,e)}class Hn{}const Lr="*";function Jt(o,a){return{type:7,name:o,definitions:a,options:{}}}function Pt(o,a=null){return{type:4,styles:a,timings:o}}function bc(o,a=null){return{type:2,steps:o,options:a}}function Ve(o){return{type:6,styles:o,offset:null}}function bt(o,a,e){return{type:0,name:o,styles:a,options:e}}function jr(o){return{type:5,steps:o}}function wt(o,a,e=null){return{type:1,expr:o,animation:a,options:e}}function XC(o){Promise.resolve(null).then(o)}class $n{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){XC(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class yc{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,s=0;const c=this.players.length;0==c?XC(()=>this._onFinish()):this.players.forEach(l=>{l.onDone(()=>{++e==c&&this._onFinish()}),l.onDestroy(()=>{++t==c&&this._onDestroy()}),l.onStart(()=>{++s==c&&this._onStart()})}),this.totalTime=this.players.reduce((l,n)=>Math.max(l,n.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const s=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(s)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ey(){return"undefined"!=typeof window&&void 0!==window.document}function ko(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nr(o){switch(o.length){case 0:return new $n;case 1:return o[0];default:return new yc(o)}}function xg(o,a,e,t,s={},c={}){const l=[],n=[];let i=-1,r=null;if(t.forEach(d=>{const u=d.offset,f=u==i,b=f&&r||{};Object.keys(d).forEach(D=>{let U=D,se=d[D];if("offset"!==D)switch(U=a.normalizePropertyName(U,l),se){case"!":se=s[D];break;case Lr:se=c[D];break;default:se=a.normalizeStyleValue(D,U,se,l)}b[U]=se}),f||n.push(b),r=b,i=u}),l.length){const d="\n - ";throw new Error(`Unable to animate due to the following errors:${d}${l.join(d)}`)}return n}function Lu(o,a,e,t){switch(a){case"start":o.onStart(()=>t(e&&ju(e,"start",o)));break;case"done":o.onDone(()=>t(e&&ju(e,"done",o)));break;case"destroy":o.onDestroy(()=>t(e&&ju(e,"destroy",o)))}}function ju(o,a,e){const t=e.totalTime,c=Nu(o.element,o.triggerName,o.fromState,o.toState,a||o.phaseName,null==t?o.totalTime:t,!!e.disabled),l=o._data;return null!=l&&(c._data=l),c}function Nu(o,a,e,t,s="",c=0,l){return{element:o,triggerName:a,fromState:e,toState:t,phaseName:s,totalTime:c,disabled:!!l}}function Ji(o,a,e){let t;return o instanceof Map?(t=o.get(a),t||o.set(a,t=e)):(t=o[a],t||(t=o[a]=e)),t}function zu(o){const a=o.indexOf(":");return[o.substring(1,a),o.substr(a+1)]}let Io=(o,a)=>!1,Gu=(o,a,e)=>[];(ko()||"undefined"!=typeof Element)&&(Io=ey()?(o,a)=>{for(;a&&a!==document.documentElement;){if(a===o)return!0;a=a.parentNode||a.host}return!1}:(o,a)=>o.contains(a),Gu=(o,a,e)=>{if(e)return Array.from(o.querySelectorAll(a));const t=o.querySelector(a);return t?[t]:[]});let _a=null,Uu=!1;function qu(o){_a||(_a=function ba(){return"undefined"!=typeof document?document.body:null}()||{},Uu=!!_a.style&&"WebkitAppearance"in _a.style);let a=!0;return _a.style&&!function ty(o){return"ebkit"==o.substring(1,6)}(o)&&(a=o in _a.style,!a&&Uu&&(a="Webkit"+o.charAt(0).toUpperCase()+o.substr(1)in _a.style)),a}const Wu=Io,$u=Gu;let Vo=(()=>{class o{validateStyleProperty(e){return qu(e)}matchesElement(e,t){return!1}containsElement(e,t){return Wu(e,t)}query(e,t,s){return $u(e,t,s)}computeStyle(e,t,s){return s||""}animate(e,t,s,c,l,n=[],i){return new $n(s,c)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Qu=(()=>{class o{}return o.NOOP=new Vo,o})();const Bo="ng-enter",Oo="ng-leave",Ca="ng-trigger",ya=".ng-trigger",Ju="ng-animating",Fo=".ng-animating";function zr(o){if("number"==typeof o)return o;const a=o.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Lo(parseFloat(a[1]),a[2])}function Lo(o,a){return"s"===a?1e3*o:o}function Gr(o,a,e){return o.hasOwnProperty("duration")?o:function iy(o,a,e){let s,c=0,l="";if("string"==typeof o){const n=o.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return a.push(`The provided timing value "${o}" is invalid.`),{duration:0,delay:0,easing:""};s=Lo(parseFloat(n[1]),n[2]);const i=n[3];null!=i&&(c=Lo(parseFloat(i),n[4]));const r=n[5];r&&(l=r)}else s=o;if(!e){let n=!1,i=a.length;s<0&&(a.push("Duration values below 0 are not allowed for this animation step."),n=!0),c<0&&(a.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&a.splice(i,0,`The provided timing value "${o}" is invalid.`)}return{duration:s,delay:c,easing:l}}(o,a,e)}function wa(o,a={}){return Object.keys(o).forEach(e=>{a[e]=o[e]}),a}function Ur(o,a,e={}){if(a)for(let t in o)e[t]=o[t];else wa(o,e);return e}function Ku(o,a,e){return e?a+":"+e+";":""}function vc(o){let a="";for(let e=0;e{const s=Tc(t);e&&!e.hasOwnProperty(t)&&(e[t]=o.style[s]),o.style[s]=a[t]}),ko()&&vc(o))}function ls(o,a){o.style&&(Object.keys(a).forEach(e=>{const t=Tc(e);o.style[t]=""}),ko()&&vc(o))}function cs(o){return Array.isArray(o)?1==o.length?o[0]:bc(o):o}const Ac=new RegExp("{{\\s*(.+?)\\s*}}","g");function Hg(o){let a=[];if("string"==typeof o){let e;for(;e=Ac.exec(o);)a.push(e[1]);Ac.lastIndex=0}return a}function xc(o,a,e){const t=o.toString(),s=t.replace(Ac,(c,l)=>{let n=a[l];return a.hasOwnProperty(l)||(e.push(`Please provide a value for the animation param ${l}`),n=""),n.toString()});return s==t?o:s}function Ni(o){const a=[];let e=o.next();for(;!e.done;)a.push(e.value),e=o.next();return a}const ry=/-+([a-z0-9])/g;function Tc(o){return o.replace(ry,(...a)=>a[1].toUpperCase())}function ay(o){return o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ki(o,a,e){switch(a.type){case 7:return o.visitTrigger(a,e);case 0:return o.visitState(a,e);case 1:return o.visitTransition(a,e);case 2:return o.visitSequence(a,e);case 3:return o.visitGroup(a,e);case 4:return o.visitAnimate(a,e);case 5:return o.visitKeyframes(a,e);case 6:return o.visitStyle(a,e);case 8:return o.visitReference(a,e);case 9:return o.visitAnimateChild(a,e);case 10:return o.visitAnimateRef(a,e);case 11:return o.visitQuery(a,e);case 12:return o.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function Zu(o,a){return window.getComputedStyle(o)[a]}function ly(o,a){const e=[];return"string"==typeof o?o.split(/\s*,\s*/).forEach(t=>function cy(o,a,e){if(":"==o[0]){const i=function Ke(o,a){switch(o){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(o,e);if("function"==typeof i)return void a.push(i);o=i}const t=o.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${o}" is not supported`),a;const s=t[1],c=t[2],l=t[3];a.push(Xu(s,l));"<"==c[0]&&!("*"==s&&"*"==l)&&a.push(Xu(l,s))}(t,e,a)):e.push(o),e}const jo=new Set(["true","1"]),No=new Set(["false","0"]);function Xu(o,a){const e=jo.has(o)||No.has(o),t=jo.has(a)||No.has(a);return(s,c)=>{let l="*"==o||o==s,n="*"==a||a==c;return!l&&e&&"boolean"==typeof s&&(l=s?jo.has(o):No.has(o)),!n&&t&&"boolean"==typeof c&&(n=c?jo.has(a):No.has(a)),l&&n}}const Pn=new RegExp("s*:selfs*,?","g");function Sc(o,a,e){return new eh(o).build(a,e)}class eh{constructor(a){this._driver=a}build(a,e){const t=new Pg(e);return this._resetContextStyleTimingState(t),Ki(this,cs(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,s=e.depCount=0;const c=[],l=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(n=>{if(this._resetContextStyleTimingState(e),0==n.type){const i=n,r=i.name;r.toString().split(/\s*,\s*/).forEach(d=>{i.name=d,c.push(this.visitState(i,e))}),i.name=r}else if(1==n.type){const i=this.visitTransition(n,e);t+=i.queryCount,s+=i.depCount,l.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:c,transitions:l,queryCount:t,depCount:s,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),s=a.options&&a.options.params||null;if(t.containsDynamicStyles){const c=new Set,l=s||{};if(t.styles.forEach(n=>{if(nh(n)){const i=n;Object.keys(i).forEach(r=>{Hg(i[r]).forEach(d=>{l.hasOwnProperty(d)||c.add(d)})})}}),c.size){const n=Ni(c.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:a.name,style:t,options:s?{params:s}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Ki(this,cs(a.animation),e);return{type:1,matchers:ly(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Ki(this,t,e)),options:ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let s=0;const c=a.steps.map(l=>{e.currentTime=t;const n=Ki(this,l,e);return s=Math.max(s,e.currentTime),n});return e.currentTime=s,{type:3,steps:c,options:ds(a.options)}}visitAnimate(a,e){const t=function Rg(o,a){let e=null;if(o.hasOwnProperty("duration"))e=o;else if("number"==typeof o)return us(Gr(o,a).duration,0,"");const t=o;if(t.split(/\s+/).some(c=>"{"==c.charAt(0)&&"{"==c.charAt(1))){const c=us(0,0,"");return c.dynamic=!0,c.strValue=t,c}return e=e||Gr(t,a),us(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let s,c=a.styles?a.styles:Ve({});if(5==c.type)s=this.visitKeyframes(c,e);else{let l=a.styles,n=!1;if(!l){n=!0;const r={};t.easing&&(r.easing=t.easing),l=Ve(r)}e.currentTime+=t.duration+t.delay;const i=this.visitStyle(l,e);i.isEmptyStep=n,s=i}return e.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[];Array.isArray(a.styles)?a.styles.forEach(l=>{"string"==typeof l?l==Lr?t.push(l):e.errors.push(`The provided style string value ${l} is not allowed.`):t.push(l)}):t.push(a.styles);let s=!1,c=null;return t.forEach(l=>{if(nh(l)){const n=l,i=n.easing;if(i&&(c=i,delete n.easing),!s)for(let r in n)if(n[r].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:t,easing:c,offset:a.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let s=e.currentTime,c=e.currentTime;t&&c>0&&(c-=t.duration+t.delay),a.styles.forEach(l=>{"string"!=typeof l&&Object.keys(l).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],r=i[n];let d=!0;r&&(c!=s&&c>=r.startTime&&s<=r.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${r.startTime}ms" and "${r.endTime}ms" is also being animated in a parallel animation between the times of "${c}ms" and "${s}ms"`),d=!1),c=r.startTime),d&&(i[n]={startTime:c,endTime:s}),e.options&&function ny(o,a,e){const t=a.params||{},s=Hg(o);s.length&&s.forEach(c=>{t.hasOwnProperty(c)||e.push(`Unable to resolve the local animation param ${c} in the given list of values`)})}(l[n],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let c=0;const l=[];let n=!1,i=!1,r=0;const d=a.steps.map(De=>{const rt=this._makeStyleAst(De,e);let Qe=null!=rt.offset?rt.offset:function ih(o){if("string"==typeof o)return null;let a=null;if(Array.isArray(o))o.forEach(e=>{if(nh(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(nh(o)&&o.hasOwnProperty("offset")){const e=o;a=parseFloat(e.offset),delete e.offset}return a}(rt.styles),vt=0;return null!=Qe&&(c++,vt=rt.offset=Qe),i=i||vt<0||vt>1,n=n||vt0&&c{const Qe=f>0?rt==b?1:f*rt:l[rt],vt=Qe*se;e.currentTime=D+U.delay+vt,U.duration=vt,this._validateStyleAst(De,e),De.offset=Qe,t.styles.push(De)}),t}visitReference(a,e){return{type:8,animation:Ki(this,cs(a.animation),e),options:ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,s=a.options||{};e.queryCount++,e.currentQuery=a;const[c,l]=function gr(o){const a=!!o.split(/\s*,\s*/).find(e=>":self"==e);return a&&(o=o.replace(Pn,"")),o=o.replace(/@\*/g,ya).replace(/@\w+/g,e=>ya+"-"+e.substr(1)).replace(/:animating/g,Fo),[o,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+c:c,Ji(e.collectedStyles,e.currentQuerySelector,{});const n=Ki(this,cs(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:c,limit:s.limit||0,optional:!!s.optional,includeSelf:l,animation:n,originalSelector:a.selector,options:ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Gr(a.timings,e.errors,!0);return{type:12,animation:Ki(this,cs(a.animation),e),timings:t,options:null}}}class Pg{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function nh(o){return!Array.isArray(o)&&"object"==typeof o}function ds(o){return o?(o=wa(o)).params&&(o.params=function th(o){return o?wa(o):null}(o.params)):o={},o}function us(o,a,e){return{duration:o,delay:a,easing:e}}function hs(o,a,e,t,s,c,l=null,n=!1){return{type:1,element:o,keyframes:a,preStyleProps:e,postStyleProps:t,duration:s,delay:c,totalTime:s+c,easing:l,subTimeline:n}}class ps{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const k0=new RegExp(":enter","g"),uy=new RegExp(":leave","g");function sh(o,a,e,t,s,c={},l={},n,i,r=[]){return(new hy).buildKeyframes(o,a,e,t,s,c,l,n,i,r)}class hy{buildKeyframes(a,e,t,s,c,l,n,i,r,d=[]){r=r||new ps;const u=new kg(a,e,r,s,c,d,[]);u.options=i,u.currentTimeline.setStyles([l],null,u.errors,i),Ki(this,t,u);const f=u.timelines.filter(b=>b.containsAnimation());if(Object.keys(n).length){let b;for(let D=f.length-1;D>=0;D--){const U=f[D];if(U.element===e){b=U;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([n],null,u.errors,i)}return f.length?f.map(b=>b.buildKeyframes()):[hs(e,[],[],[],0,0,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const s=e.createSubContext(a.options),c=e.currentTimeline.currentTime,l=this._visitSubInstructions(t,s,s.options);c!=l&&e.transformIntoNewTimeline(l)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let c=e.currentTimeline.currentTime;const l=null!=t.duration?zr(t.duration):null,n=null!=t.delay?zr(t.delay):null;return 0!==l&&a.forEach(i=>{const r=e.appendInstructionToTimeline(i,l,n);c=Math.max(c,r.duration+r.delay)}),c}visitReference(a,e){e.updateOptions(a.options,!0),Ki(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let s=e;const c=a.options;if(c&&(c.params||c.delay)&&(s=e.createSubContext(c),s.transformIntoNewTimeline(),null!=c.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Go);const l=zr(c.delay);s.delayNextStep(l)}a.steps.length&&(a.steps.forEach(l=>Ki(this,l,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let s=e.currentTimeline.currentTime;const c=a.options&&a.options.delay?zr(a.options.delay):0;a.steps.forEach(l=>{const n=e.createSubContext(a.options);c&&n.delayNextStep(c),Ki(this,l,n),s=Math.max(s,n.currentTimeline.currentTime),t.push(n.currentTimeline)}),t.forEach(l=>e.currentTimeline.mergeTimelineCollectedStyles(l)),e.transformIntoNewTimeline(s),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Gr(e.params?xc(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),s=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),s.snapshotCurrentStyles());const c=a.style;5==c.type?this.visitKeyframes(c,e):(e.incrementTime(t.duration),this.visitStyle(c,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,s=e.currentAnimateTimings;!s&&t.getCurrentStyleProperties().length&&t.forwardFrame();const c=s&&s.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(c):t.setStyles(a.styles,c,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,s=e.currentTimeline.duration,c=t.duration,n=e.createSubContext().currentTimeline;n.easing=t.easing,a.styles.forEach(i=>{n.forwardTime((i.offset||0)*c),n.setStyles(i.styles,i.easing,e.errors,e.options),n.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(n),e.transformIntoNewTimeline(s+c),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,s=a.options||{},c=s.delay?zr(s.delay):0;c&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Go);let l=t;const n=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=n.length;let i=null;n.forEach((r,d)=>{e.currentQueryIndex=d;const u=e.createSubContext(a.options,r);c&&u.delayNextStep(c),r===e.element&&(i=u.currentTimeline),Ki(this,a.animation,u),u.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,u.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(l),i&&(e.currentTimeline.mergeTimelineCollectedStyles(i),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,s=e.currentTimeline,c=a.timings,l=Math.abs(c.duration),n=l*(e.currentQueryTotal-1);let i=l*e.currentQueryIndex;switch(c.duration<0?"reverse":c.easing){case"reverse":i=n-i;break;case"full":i=t.currentStaggerTime}const d=e.currentTimeline;i&&d.delayNextStep(i);const u=d.currentTime;Ki(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=s.currentTime-u+(s.startTime-t.currentTimeline.startTime)}}const Go={};class kg{constructor(a,e,t,s,c,l,n,i){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=c,this.errors=l,this.timelines=n,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Go,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Mc(this._driver,e,0),n.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let s=this.options;null!=t.duration&&(s.duration=zr(t.duration)),null!=t.delay&&(s.delay=zr(t.delay));const c=t.params;if(c){let l=s.params;l||(l=this.options.params={}),Object.keys(c).forEach(n=>{(!e||!l.hasOwnProperty(n))&&(l[n]=xc(c[n],l,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(s=>{t[s]=e[s]})}}return a}createSubContext(a=null,e,t){const s=e||this.element,c=new kg(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return c.previousNode=this.previousNode,c.currentAnimateTimings=this.currentAnimateTimings,c.options=this._copyOptions(),c.updateOptions(a),c.currentQueryIndex=this.currentQueryIndex,c.currentQueryTotal=this.currentQueryTotal,c.parentContext=this,this.subContextCount++,c}transformIntoNewTimeline(a){return this.previousNode=Go,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const s={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},c=new I0(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,s,a.stretchStartingKeyframe);return this.timelines.push(c),s}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,s,c,l){let n=[];if(s&&n.push(this.element),a.length>0){a=(a=a.replace(k0,"."+this._enterClassName)).replace(uy,"."+this._leaveClassName);let r=this._driver.query(this.element,a,1!=t);0!==t&&(r=t<0?r.slice(r.length+t,r.length):r.slice(0,t)),n.push(...r)}return!c&&0==n.length&&l.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),n}}class Mc{constructor(a,e,t,s){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new Mc(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Lr,this._currentKeyframe[e]=Lr}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,s){e&&(this._previousKeyframe.easing=e);const c=s&&s.params||{},l=function Ig(o,a){const e={};let t;return o.forEach(s=>{"*"===s?(t=t||Object.keys(a),t.forEach(c=>{e[c]=Lr})):Ur(s,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(l).forEach(n=>{const i=xc(l[n],c,t);this._pendingStyles[n]=i,this._localTimelineStyles.hasOwnProperty(n)||(this._backFill[n]=this._globalTimelineStyles.hasOwnProperty(n)?this._globalTimelineStyles[n]:Lr),this._updateStyle(n,i)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[a]=e,this._updateStyle(a,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],s=a._styleSummary[e];(!t||s.time>t.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((n,i)=>{const r=Ur(n,!0);Object.keys(r).forEach(d=>{const u=r[d];"!"==u?a.add(d):u==Lr&&e.add(d)}),t||(r.offset=i/this.duration),s.push(r)});const c=a.size?Ni(a.values()):[],l=e.size?Ni(e.values()):[];if(t){const n=s[0],i=wa(n);n.offset=0,i.offset=1,s=[n,i]}return hs(this.element,s,c,l,this.duration,this.startTime,this.easing,!1)}}class I0 extends Mc{constructor(a,e,t,s,c,l,n=!1){super(a,e,l.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=c,this._stretchStartingKeyframe=n,this.timings={duration:l.duration,delay:l.delay,easing:l.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const c=[],l=t+e,n=e/l,i=Ur(a[0],!1);i.offset=0,c.push(i);const r=Ur(a[0],!1);r.offset=oh(n),c.push(r);const d=a.length-1;for(let u=1;u<=d;u++){let f=Ur(a[u],!1);f.offset=oh((e+f.offset*t)/l),c.push(f)}t=l,e=0,s="",a=c}return hs(this.element,a,this.preStyleProps,this.postStyleProps,t,e,s,!0)}}function oh(o,a=3){const e=Math.pow(10,a-1);return Math.round(o*e)/e}class Uo{}class B0 extends Uo{normalizePropertyName(a,e){return Tc(a)}normalizeStyleValue(a,e,t,s){let c="";const l=t.toString().trim();if(O0[e]&&0!==t&&"0"!==t)if("number"==typeof t)c="px";else{const n=t.match(/^[+-]?[\d\.]+([a-z]*)$/);n&&0==n[1].length&&s.push(`Please provide a CSS unit value for ${a}:${t}`)}return l+c}}const O0=(()=>function F0(o){const a={};return o.forEach(e=>a[e]=!0),a}("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".split(",")))();function py(o,a,e,t,s,c,l,n,i,r,d,u,f){return{type:0,element:o,triggerName:a,isRemovalTransition:s,fromState:e,fromStyles:c,toState:t,toStyles:l,timelines:n,queriedElements:i,preStyleProps:r,postStyleProps:d,totalTime:u,errors:f}}const Vg={};class fy{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,s){return function L0(o,a,e,t,s){return o.some(c=>c(a,e,t,s))}(this.ast.matchers,a,e,t,s)}buildStyles(a,e,t){const s=this._stateStyles["*"],c=this._stateStyles[a],l=s?s.buildStyles(e,t):{};return c?c.buildStyles(e,t):l}build(a,e,t,s,c,l,n,i,r,d){const u=[],f=this.ast.options&&this.ast.options.params||Vg,D=this.buildStyles(t,n&&n.params||Vg,u),U=i&&i.params||Vg,se=this.buildStyles(s,U,u),De=new Set,rt=new Map,Qe=new Map,vt="void"===s,jn={params:Object.assign(Object.assign({},f),U)},sr=d?[]:sh(a,e,this.ast.animation,c,l,D,se,jn,r,u);let tn=0;if(sr.forEach(Wa=>{tn=Math.max(Wa.duration+Wa.delay,tn)}),u.length)return py(e,this._triggerName,t,s,vt,D,se,[],[],rt,Qe,tn,u);sr.forEach(Wa=>{const $a=Wa.element,cM=Ji(rt,$a,{});Wa.preStyleProps.forEach(Bl=>cM[Bl]=!0);const kf=Ji(Qe,$a,{});Wa.postStyleProps.forEach(Bl=>kf[Bl]=!0),$a!==e&&De.add($a)});const qa=Ni(De.values());return py(e,this._triggerName,t,s,vt,D,se,sr,qa,rt,Qe,tn)}}class j0{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},s=wa(this.defaultParams);return Object.keys(a).forEach(c=>{const l=a[c];null!=l&&(s[c]=l)}),this.styles.styles.forEach(c=>{if("string"!=typeof c){const l=c;Object.keys(l).forEach(n=>{let i=l[n];i.length>1&&(i=xc(i,s,e));const r=this.normalizer.normalizePropertyName(n,e);i=this.normalizer.normalizeStyleValue(n,r,i,e),t[r]=i})}}),t}}class qr{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(s=>{this.states[s.name]=new j0(s.style,s.options&&s.options.params||{},t)}),Bg(this.states,"true","1"),Bg(this.states,"false","0"),e.transitions.forEach(s=>{this.transitionFactories.push(new fy(a,s,this.states))}),this.fallbackTransition=function lh(o,a,e){return new fy(o,{type:1,animation:{type:2,steps:[],options:null},matchers:[(l,n)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,s){return this.transitionFactories.find(l=>l.match(a,e,t,s))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Bg(o,a,e){o.hasOwnProperty(a)?o.hasOwnProperty(e)||(o[e]=o[a]):o.hasOwnProperty(e)&&(o[a]=o[e])}const Og=new ps;class ch{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],s=Sc(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=s}_buildPlayer(a,e,t){const s=a.element,c=xg(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(s,c,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const s=[],c=this._animations[a];let l;const n=new Map;if(c?(l=sh(this._driver,e,c,Bo,Oo,{},{},t,Og,s),l.forEach(d=>{const u=Ji(n,d.element,{});d.postStyleProps.forEach(f=>u[f]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),l=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);n.forEach((d,u)=>{Object.keys(d).forEach(f=>{d[f]=this._driver.computeStyle(u,f,Lr)})});const r=Nr(l.map(d=>{const u=n.get(d.element);return this._buildPlayer(d,{},u)}));return this._playersById[a]=r,r.onDestroy(()=>this.destroy(a)),this.players.push(r),r}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,s){const c=Nu(e,"","","");return Lu(this._getPlayer(a),t,c,s),()=>{}}command(a,e,t,s){if("register"==t)return void this.register(a,s[0]);if("create"==t)return void this.create(a,e,s[0]||{});const c=this._getPlayer(a);switch(t){case"play":c.play();break;case"pause":c.pause();break;case"reset":c.reset();break;case"restart":c.restart();break;case"finish":c.finish();break;case"init":c.init();break;case"setPosition":c.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(a)}}}const dh="ng-animate-queued",hh="ng-animate-disabled",ph=[],Lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},fn="__ng_removed";class fh{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function my(o){return null!=o?o:null}(t?a.value:a),t){const c=wa(a);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(s=>{null==t[s]&&(t[s]=e[s])})}}}const mr="void",$r=new fh(mr);class gh{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Pi(e,this._hostClassName)}listen(a,e,t,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ng(o){return"start"==o||"done"==o}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const c=Ji(this._elementListeners,a,[]),l={name:e,phase:t,callback:s};c.push(l);const n=Ji(this._engine.statesByElement,a,{});return n.hasOwnProperty(e)||(Pi(a,Ca),Pi(a,Ca+"-"+e),n[e]=$r),()=>{this._engine.afterFlush(()=>{const i=c.indexOf(l);i>=0&&c.splice(i,1),this._triggers[e]||delete n[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,s=!0){const c=this._getTrigger(e),l=new va(this.id,e,a);let n=this._engine.statesByElement.get(a);n||(Pi(a,Ca),Pi(a,Ca+"-"+e),this._engine.statesByElement.set(a,n={}));let i=n[e];const r=new fh(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&i&&r.absorbOptions(i.options),n[e]=r,i||(i=$r),r.value!==mr&&i.value===r.value){if(!function Gg(o,a){const e=Object.keys(o),t=Object.keys(a);if(e.length!=t.length)return!1;for(let s=0;s{ls(a,se),Dn(a,De)})}return}const f=Ji(this._engine.playersByElement,a,[]);f.forEach(U=>{U.namespaceId==this.id&&U.triggerName==e&&U.queued&&U.destroy()});let b=c.matchTransition(i.value,r.value,a,r.params),D=!1;if(!b){if(!s)return;b=c.fallbackTransition,D=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:i,toState:r,player:l,isFallbackTransition:D}),D||(Pi(a,dh),l.onStart(()=>{ms(a,dh)})),l.onDone(()=>{let U=this.players.indexOf(l);U>=0&&this.players.splice(U,1);const se=this._engine.playersByElement.get(a);if(se){let De=se.indexOf(l);De>=0&&se.splice(De,1)}}),this.players.push(l),f.push(l),l}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[a]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(s=>s.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,ya,!0);t.forEach(s=>{if(s[fn])return;const c=this._engine.fetchNamespacesByElement(s);c.size?c.forEach(l=>l.triggerLeaveAnimation(s,e,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(a,e,t,s){const c=this._engine.statesByElement.get(a),l=new Map;if(c){const n=[];if(Object.keys(c).forEach(i=>{if(l.set(i,c[i].value),this._triggers[i]){const r=this.trigger(a,i,mr,s);r&&n.push(r)}}),n.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,l),t&&Nr(n).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const s=new Set;e.forEach(c=>{const l=c.name;if(s.has(l))return;s.add(l);const i=this._triggers[l].fallbackTransition,r=t[l]||$r,d=new fh(mr),u=new va(this.id,l,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:l,transition:i,fromState:r,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let s=!1;if(t.totalAnimations){const c=t.players.length?t.playersByQueriedElement.get(a):[];if(c&&c.length)s=!0;else{let l=a;for(;l=l.parentNode;)if(t.statesByElement.get(l)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(a),s)t.markElementAsRemoved(this.id,a,!1,e);else{const c=a[fn];(!c||c===Lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){Pi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const s=t.player;if(s.destroyed)return;const c=t.element,l=this._elementListeners.get(c);l&&l.forEach(n=>{if(n.name==t.triggerName){const i=Nu(c,t.triggerName,t.fromState.value,t.toState.value);i._data=a,Lu(t.player,n.phase,i,n.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(t)}),this._queue=[],e.sort((t,s)=>{const c=t.transition.ast.depCount,l=s.transition.ast.depCount;return 0==c||0==l?c-l:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class fs{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(s,c)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new gh(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList.length-1;if(t>=0){let s=!1;for(let c=t;c>=0;c--)if(this.driver.containsElement(this._namespaceList[c].hostElement,e)){this._namespaceList.splice(c+1,0,a),s=!0;break}s||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let s=this._namespaceLookup[a];s&&s.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t){const s=Object.keys(t);for(let c=0;c=0&&this.collectedLeaveElements.splice(l,1)}if(a){const l=this._fetchNamespace(a);l&&l.insertNode(e,t)}s&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Pi(a,hh)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),ms(a,hh))}removeNode(a,e,t,s){if(qo(e)){const c=a?this._fetchNamespace(a):null;if(c?c.removeNode(e,s):this.markElementAsRemoved(a,e,!1,s),t){const l=this.namespacesByHostElement.get(e);l&&l.id!==a&&l.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(a,e,t,s,c){this.collectedLeaveElements.push(e),e[fn]={namespaceId:a,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:c}}listen(a,e,t,s,c){return qo(e)?this._fetchNamespace(a).listen(e,t,s,c):()=>{}}_buildInstruction(a,e,t,s,c){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,s,a.fromState.options,a.toState.options,e,c)}destroyInnerAnimations(a){let e=this.driver.query(a,ya,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Fo,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Nr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[fn];if(t&&t.setForRemoval){if(a[fn]=Lg,t.namespaceId){this.destroyInnerAnimations(a);const s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(hh))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Nr(e).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new ps,s=[],c=new Map,l=[],n=new Map,i=new Map,r=new Map,d=new Set;this.disabledNodes.forEach(Fe=>{d.add(Fe);const qe=this.driver.query(Fe,".ng-animate-queued",!0);for(let $e=0;$e{const $e=Bo+U++;D.set(qe,$e),Fe.forEach(Et=>Pi(Et,$e))});const se=[],De=new Set,rt=new Set;for(let Fe=0;FeDe.add(Et)):rt.add(qe))}const Qe=new Map,vt=mh(f,Array.from(De));vt.forEach((Fe,qe)=>{const $e=Oo+U++;Qe.set(qe,$e),Fe.forEach(Et=>Pi(Et,$e))}),a.push(()=>{b.forEach((Fe,qe)=>{const $e=D.get(qe);Fe.forEach(Et=>ms(Et,$e))}),vt.forEach((Fe,qe)=>{const $e=Qe.get(qe);Fe.forEach(Et=>ms(Et,$e))}),se.forEach(Fe=>{this.processLeaveNode(Fe)})});const jn=[],sr=[];for(let Fe=this._namespaceList.length-1;Fe>=0;Fe--)this._namespaceList[Fe].drainQueuedTransitions(e).forEach($e=>{const Et=$e.player,Mi=$e.element;if(jn.push(Et),this.collectedEnterElements.length){const nn=Mi[fn];if(nn&&nn.setForMove){if(nn.previousTriggersValues&&nn.previousTriggersValues.has($e.triggerName)){const Ol=nn.previousTriggersValues.get($e.triggerName),Qs=this.statesByElement.get($e.element);Qs&&Qs[$e.triggerName]&&(Qs[$e.triggerName].value=Ol)}return void Et.destroy()}}const ta=!u||!this.driver.containsElement(u,Mi),Nn=Qe.get(Mi),$s=D.get(Mi),Kt=this._buildInstruction($e,t,$s,Nn,ta);if(Kt.errors&&Kt.errors.length)return void sr.push(Kt);if(ta)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);if($e.isFallbackTransition)return Et.onStart(()=>ls(Mi,Kt.fromStyles)),Et.onDestroy(()=>Dn(Mi,Kt.toStyles)),void s.push(Et);const hM=[];Kt.timelines.forEach(nn=>{nn.stretchStartingKeyframe=!0,this.disabledNodes.has(nn.element)||hM.push(nn)}),Kt.timelines=hM,t.append(Mi,Kt.timelines),l.push({instruction:Kt,player:Et,element:Mi}),Kt.queriedElements.forEach(nn=>Ji(n,nn,[]).push(Et)),Kt.preStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);if(Qs.length){let Fl=i.get(Ol);Fl||i.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))}}),Kt.postStyleProps.forEach((nn,Ol)=>{const Qs=Object.keys(nn);let Fl=r.get(Ol);Fl||r.set(Ol,Fl=new Set),Qs.forEach(yx=>Fl.add(yx))})});if(sr.length){const Fe=[];sr.forEach(qe=>{Fe.push(`@${qe.triggerName} has failed due to:\n`),qe.errors.forEach($e=>Fe.push(`- ${$e}\n`))}),jn.forEach(qe=>qe.destroy()),this.reportError(Fe)}const tn=new Map,qa=new Map;l.forEach(Fe=>{const qe=Fe.element;t.has(qe)&&(qa.set(qe,qe),this._beforeAnimationBuild(Fe.player.namespaceId,Fe.instruction,tn))}),s.forEach(Fe=>{const qe=Fe.element;this._getPreviousPlayers(qe,!1,Fe.namespaceId,Fe.triggerName,null).forEach(Et=>{Ji(tn,qe,[]).push(Et),Et.destroy()})});const Wa=se.filter(Fe=>Ug(Fe,i,r)),$a=new Map;Dc($a,this.driver,rt,r,Lr).forEach(Fe=>{Ug(Fe,i,r)&&Wa.push(Fe)});const kf=new Map;b.forEach((Fe,qe)=>{Dc(kf,this.driver,new Set(Fe),i,"!")}),Wa.forEach(Fe=>{const qe=$a.get(Fe),$e=kf.get(Fe);$a.set(Fe,Object.assign(Object.assign({},qe),$e))});const Bl=[],dM=[],uM={};l.forEach(Fe=>{const{element:qe,player:$e,instruction:Et}=Fe;if(t.has(qe)){if(d.has(qe))return $e.onDestroy(()=>Dn(qe,Et.toStyles)),$e.disabled=!0,$e.overrideTotalTime(Et.totalTime),void s.push($e);let Mi=uM;if(qa.size>1){let Nn=qe;const $s=[];for(;Nn=Nn.parentNode;){const Kt=qa.get(Nn);if(Kt){Mi=Kt;break}$s.push(Nn)}$s.forEach(Kt=>qa.set(Kt,Mi))}const ta=this._buildAnimation($e.namespaceId,Et,tn,c,kf,$a);if($e.setRealPlayer(ta),Mi===uM)Bl.push($e);else{const Nn=this.playersByElement.get(Mi);Nn&&Nn.length&&($e.parentPlayer=Nr(Nn)),s.push($e)}}else ls(qe,Et.fromStyles),$e.onDestroy(()=>Dn(qe,Et.toStyles)),dM.push($e),d.has(qe)&&s.push($e)}),dM.forEach(Fe=>{const qe=c.get(Fe.element);if(qe&&qe.length){const $e=Nr(qe);Fe.setRealPlayer($e)}}),s.forEach(Fe=>{Fe.parentPlayer?Fe.syncPlayerEvents(Fe.parentPlayer):Fe.destroy()});for(let Fe=0;Fe!ta.destroyed);Mi.length?zg(this,qe,Mi):this.processLeaveNode(qe)}return se.length=0,Bl.forEach(Fe=>{this.players.push(Fe),Fe.onDone(()=>{Fe.destroy();const qe=this.players.indexOf(Fe);this.players.splice(qe,1)}),Fe.play()}),Bl}elementContainsData(a,e){let t=!1;const s=e[fn];return s&&s.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,s,c){let l=[];if(e){const n=this.playersByQueriedElement.get(a);n&&(l=n)}else{const n=this.playersByElement.get(a);if(n){const i=!c||c==mr;n.forEach(r=>{r.queued||!i&&r.triggerName!=s||l.push(r)})}}return(t||s)&&(l=l.filter(n=>!(t&&t!=n.namespaceId||s&&s!=n.triggerName))),l}_beforeAnimationBuild(a,e,t){const c=e.element,l=e.isRemovalTransition?void 0:a,n=e.isRemovalTransition?void 0:e.triggerName;for(const i of e.timelines){const r=i.element,d=r!==c,u=Ji(t,r,[]);this._getPreviousPlayers(r,d,l,n,e.toState).forEach(b=>{const D=b.getRealPlayer();D.beforeDestroy&&D.beforeDestroy(),b.destroy(),u.push(b)})}ls(c,e.fromStyles)}_buildAnimation(a,e,t,s,c,l){const n=e.triggerName,i=e.element,r=[],d=new Set,u=new Set,f=e.timelines.map(D=>{const U=D.element;d.add(U);const se=U[fn];if(se&&se.removedBeforeQueried)return new $n(D.duration,D.delay);const De=U!==i,rt=function z0(o){const a=[];return _h(o,a),a}((t.get(U)||ph).map(tn=>tn.getRealPlayer())).filter(tn=>!!tn.element&&tn.element===U),Qe=c.get(U),vt=l.get(U),jn=xg(0,this._normalizer,0,D.keyframes,Qe,vt),sr=this._buildPlayer(D,jn,rt);if(D.subTimeline&&s&&u.add(U),De){const tn=new va(a,n,U);tn.setRealPlayer(sr),r.push(tn)}return sr});r.forEach(D=>{Ji(this.playersByQueriedElement,D.element,[]).push(D),D.onDone(()=>function gs(o,a,e){let t;if(o instanceof Map){if(t=o.get(a),t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&o.delete(a)}}else if(t=o[a],t){if(t.length){const s=t.indexOf(e);t.splice(s,1)}0==t.length&&delete o[a]}return t}(this.playersByQueriedElement,D.element,D))}),d.forEach(D=>Pi(D,Ju));const b=Nr(f);return b.onDestroy(()=>{d.forEach(D=>ms(D,Ju)),Dn(i,e.toStyles)}),u.forEach(D=>{Ji(s,D,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new $n(a.duration,a.delay)}}class va{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new $n,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Lu(a,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){Ji(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function qo(o){return o&&1===o.nodeType}function Hc(o,a){const e=o.style.display;return o.style.display=null!=a?a:"none",e}function Dc(o,a,e,t,s){const c=[];e.forEach(i=>c.push(Hc(i)));const l=[];t.forEach((i,r)=>{const d={};i.forEach(u=>{const f=d[u]=a.computeStyle(r,u,s);(!f||0==f.length)&&(r[fn]=jg,l.push(r))}),o.set(r,d)});let n=0;return e.forEach(i=>Hc(i,c[n++])),l}function mh(o,a){const e=new Map;if(o.forEach(n=>e.set(n,[])),0==a.length)return e;const s=new Set(a),c=new Map;function l(n){if(!n)return 1;let i=c.get(n);if(i)return i;const r=n.parentNode;return i=e.has(r)?r:s.has(r)?1:l(r),c.set(n,i),i}return a.forEach(n=>{const i=l(n);1!==i&&e.get(i).push(n)}),e}function Pi(o,a){var e;null===(e=o.classList)||void 0===e||e.add(a)}function ms(o,a){var e;null===(e=o.classList)||void 0===e||e.remove(a)}function zg(o,a,e){Nr(e).onDone(()=>o.processLeaveNode(a))}function _h(o,a){for(let e=0;es.add(c)):a.set(o,t),e.delete(o),!0}class Wo{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,c)=>{},this._transitionEngine=new fs(a,e,t),this._timelineEngine=new ch(a,e,t),this._transitionEngine.onRemovalComplete=(s,c)=>this.onRemovalComplete(s,c)}registerTrigger(a,e,t,s,c){const l=a+"-"+s;let n=this._triggerCache[l];if(!n){const i=[],r=Sc(this._driver,c,i);if(i.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${i.join("\n - ")}`);n=function N0(o,a,e){return new qr(o,a,e)}(s,r,this._normalizer),this._triggerCache[l]=n}this._transitionEngine.registerTrigger(e,s,n)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,s){this._transitionEngine.insertNode(a,e,t,s)}onRemove(a,e,t,s){this._transitionEngine.removeNode(a,e,s||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,s){if("@"==t.charAt(0)){const[c,l]=zu(t);this._timelineEngine.command(c,e,l,s)}else this._transitionEngine.trigger(a,e,t,s)}listen(a,e,t,s,c){if("@"==t.charAt(0)){const[l,n]=zu(t);return this._timelineEngine.listen(l,e,n,c)}return this._transitionEngine.listen(a,e,t,s,c)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let by=(()=>{class o{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let c=o.initialStylesByElement.get(e);c||o.initialStylesByElement.set(e,c={}),this._initialStyles=c}start(){this._state<1&&(this._startStyles&&Dn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Dn(this._element,this._initialStyles),this._endStyles&&(Dn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(o.initialStylesByElement.delete(this._element),this._startStyles&&(ls(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ls(this._element,this._endStyles),this._endStyles=null),Dn(this._element,this._initialStyles),this._state=3)}}return o.initialStylesByElement=new WeakMap,o})();function Ri(o){let a=null;const e=Object.keys(o);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:Zu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class G0{validateStyleProperty(a){return qu(a)}matchesElement(a,e){return!1}containsElement(a,e){return Wu(a,e)}query(a,e,t){return $u(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,s,c,l=[]){const i={duration:t,delay:s,fill:0==s?"both":"forwards"};c&&(i.easing=c);const r={},d=l.filter(f=>f instanceof qg);(function sy(o,a){return 0===o||0===a})(t,s)&&d.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(D=>r[D]=b[D])}),e=function oy(o,a,e){const t=Object.keys(e);if(t.length&&a.length){let c=a[0],l=[];if(t.forEach(n=>{c.hasOwnProperty(n)||l.push(n),c[n]=e[n]}),l.length)for(var s=1;sUr(f,!1)),r);const u=function _y(o,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=Ri(a[0]),a.length>1&&(t=Ri(a[a.length-1]))):a&&(e=Ri(a)),e||t?new by(o,e,t):null}(a,e);return new qg(a,e,i,u)}}let U0=(()=>{class o extends Hn{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:g.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(e)?bc(e):e;return $g(this._renderer,null,t,"register",[s]),new Wg(t,this._renderer)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.FYo),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Wg extends class P0{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new q0(this._id,a,e||{},this._renderer)}}class q0{constructor(a,e,t,s){this.id=a,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return $g(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function $g(o,a,e,t,s){return o.setProperty(a,`@@${e}:${t}`,s)}const bh="@.disabled";let yy=(()=>{class o{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(c,l)=>{const n=null==l?void 0:l.parentNode(c);n&&l.removeChild(n,c)}}createRenderer(e,t){const c=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let d=this._rendererCache.get(c);return d||(d=new Qg("",c,this.engine),this._rendererCache.set(c,d)),d}const l=t.id,n=t.id+"-"+this._currentId;this._currentId++,this.engine.register(n,e);const i=d=>{Array.isArray(d)?d.forEach(i):this.engine.registerTrigger(l,n,e,d.name,d)};return t.data.animation.forEach(i),new wy(this,n,c,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){e>=0&&et(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(c=>{const[l,n]=c;l(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,s]))}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()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.FYo),g.LFG(Wo),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Qg{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,s=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,s)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,s){this.delegate.setAttribute(a,e,t,s)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,s){this.delegate.setStyle(a,e,t,s)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==bh?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class wy extends Qg{constructor(a,e,t,s){super(e,t,s),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==bh?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const s=function Yg(o){switch(o){case"body":return document.body;case"document":return document;case"window":return window;default:return o}}(a);let c=e.substr(1),l="";return"@"!=c.charAt(0)&&([c,l]=function vy(o){const a=o.indexOf(".");return[o.substring(0,a),o.substr(a+1)]}(c)),this.engine.listen(this.namespaceId,s,c,l,n=>{this.factory.scheduleListenerCallback(n._data||-1,t,n)})}return this.delegate.listen(a,e,t)}}let Jg=(()=>{class o extends Wo{constructor(e,t,s){super(e.body,t,s)}ngOnDestroy(){this.flush()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(Qu),g.LFG(Uo))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Zi=new g.OlP("AnimationModuleType"),Ch=[{provide:Hn,useClass:U0},{provide:Uo,useFactory:function Ay(){return new B0}},{provide:Wo,useClass:Jg},{provide:g.FYo,useFactory:function xy(o,a,e){return new yy(o,a,e)},deps:[we,Wo,g.R0b]}],Kg=[{provide:Qu,useFactory:()=>new G0},{provide:Zi,useValue:"BrowserAnimations"},...Ch],Qn=[{provide:Qu,useClass:Vo},{provide:Zi,useValue:"NoopAnimations"},...Ch];let yh=(()=>{class o{static withConfig(e){return{ngModule:o,providers:e.disableAnimations?Qn:Kg}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:Kg,imports:[Mr]}),o})();const Pc=new g.OlP("mat-sanity-checks",{providedIn:"root",factory:function Sy(){return!0}});let Ue=(()=>{class o{constructor(e,t,s){this._sanityChecks=t,this._document=s,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!un()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(vg),g.LFG(Pc,8),g.LFG(T.K0))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti],ti]}),o})();function $o(o){return class extends o{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=it(a)}}}function Aa(o,a){return class extends o{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function xa(o){return class extends o{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=it(a)}}}function My(o){return class extends o{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,c=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);c!==a&&(this.errorState=c,this.stateChanges.next())}}}const tm=new g.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function im(){return(0,g.f3M)(g.soG)}});class gn{constructor(){this._localeChanges=new He.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),s=this.isValid(e);return t&&s?!this.compareDate(a,e):t==s}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const Qo=new g.OlP("mat-date-formats"),nm=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Rn(o,a){const e=Array(o);for(let t=0;t{class o extends gn{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Rn(12,s=>this._format(t,new Date(2017,s,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Rn(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Rn(7,s=>this._format(t,new Date(2017,0,s+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,s){let c=this._createDateWithOverflow(e,t,s);return c.getMonth(),c}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(s,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let s=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(s)!=((this.getMonth(e)+t)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(nm.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,s){const c=new Date;return c.setFullYear(e,t,s),c.setHours(0,0,0,0),c}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const s=new Date;return s.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),s.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(s)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(tm,8),g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const Hy={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Dy=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:Yo}],imports:[[Yi]]}),o})(),Py=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:Qo,useValue:Hy}],imports:[[Dy]]}),o})(),Cs=(()=>{class o{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ys=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})();class am{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ah={enterDuration:225,exitDuration:150},xh=dn({passive:!0}),Rc=["mousedown","touchstart"],om=["mouseup","mouseleave","touchend","touchcancel"];class lm{constructor(a,e,t,s){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Lt(t))}fadeInRipple(a,e,t={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),c=Object.assign(Object.assign({},Ah),t.animation);t.centered&&(a=s.left+s.width/2,e=s.top+s.height/2);const l=t.radius||function ws(o,a,e){const t=Math.max(Math.abs(o-e.left),Math.abs(o-e.right)),s=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+s*s)}(a,e,s),n=a-s.left,i=e-s.top,r=c.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=n-l+"px",d.style.top=i-l+"px",d.style.height=2*l+"px",d.style.width=2*l+"px",null!=t.color&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${r}ms`,this._containerElement.appendChild(d),function cm(o){window.getComputedStyle(o).getPropertyValue("opacity")}(d),d.style.transform="scale(1)";const u=new am(this,d,t);return u.state=0,this._activeRipples.add(u),t.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const f=u===this._mostRecentTransientRipple;u.state=1,!t.persistent&&(!f||!this._isPointerDown)&&u.fadeOut()},r),u}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,s=Object.assign(Object.assign({},Ah),a.config.animation);t.style.transitionDuration=`${s.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Lt(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Rc))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(om),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ro(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,xh)})})}_removeTriggerEvents(){this._triggerElement&&(Rc.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}),this._pointerUpEventsRegistered&&om.forEach(a=>{this._triggerElement.removeEventListener(a,this,xh)}))}}const Th=new g.OlP("mat-ripple-global-options");let Ta=(()=>{class o{constructor(e,t,s,c,l){this._elementRef=e,this._animationMode=l,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new lm(this,t,e,s)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,s){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Je),g.Y36(Th,8),g.Y36(Zi,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&g.ekj("mat-ripple-unbounded",t.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"]}),o})(),Yn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue,Yi],Ue]}),o})(),Eh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue]]}),o})(),Sh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,T.ez,Ue,Eh]]}),o})();var xi=E(5254),Ea=E(8896);function As(o){return new Ci.y(a=>{let e;try{e=o()}catch(s){return void a.error(s)}return(e?(0,xi.D)(e):(0,Ea.c)()).subscribe(a)})}function By(o,a){}class kc{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const rT={dialogContainer:Jt("dialogContainer",[bt("void, exit",Ve({opacity:0,transform:"scale(0.7)"})),bt("enter",Ve({transform:"none"})),wt("* => enter",Pt("150ms cubic-bezier(0, 0, 0.2, 1)",Ve({transform:"none",opacity:1}))),wt("* => void, * => exit",Pt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Ve({opacity:0})))])};let Mh=(()=>{class o extends lu{constructor(e,t,s,c,l,n,i,r){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=s,this._config=l,this._interactivityChecker=n,this._ngZone=i,this._focusMonitor=r,this._animationStateChanged=new g.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=d=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(d)),this._ariaLabelledBy=l.ariaLabelledBy||null,this._document=c}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let s=this._elementRef.nativeElement.querySelector(e);s&&this._forceFocus(s,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Jl(),s=this._elementRef.nativeElement;(!t||t===this._document.body||t===s||s.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Jl())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Jl();return e===t||e.contains(t)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(ku),g.Y36(g.sBO),g.Y36(T.K0,8),g.Y36(kc),g.Y36(mg),g.Y36(g.R0b),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,viewQuery:function(e,t){if(1&e&&g.Gf(Kl,7),2&e){let s;g.iGM(s=g.CRH())&&(t._portalOutlet=s.first)}},features:[g.qOj]}),o})(),Oy=(()=>{class o extends Mh{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&g.WFA("@dialogContainer.start",function(c){return t._onAnimationStart(c)})("@dialogContainer.done",function(c){return t._onAnimationDone(c)}),2&e&&(g.Ikx("id",t._id),g.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),g.d8E("@dialogContainer",t._state))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&g.YNc(0,By,0,0,"ng-template",0)},directives:[Kl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[rT.dialogContainer]}}),o})(),um=0;class xs{constructor(a,e,t="mat-dialog-"+um++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,mt.h)(s=>"opened"===s.state),(0,Qt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,mt.h)(s=>"closed"===s.state),(0,Qt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,mt.h)(s=>27===s.keyCode&&!this.disableClose&&!pr(s))).subscribe(s=>{s.preventDefault(),Fy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Fy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,mt.h)(e=>"closing"===e.state),(0,Qt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Fy(o,a,e){return void 0!==o._containerInstance&&(o._containerInstance._closeInteractionType=a),o.close(e)}const In=new g.OlP("MatDialogData"),aT=new g.OlP("mat-dialog-default-options"),Ly=new g.OlP("mat-dialog-scroll-strategy"),pm={provide:Ly,deps:[Wn],useFactory:function hm(o){return()=>o.scrollStrategies.block()}};let Ny=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u){this._overlay=e,this._injector=t,this._defaultOptions=s,this._parentDialog=c,this._overlayContainer=l,this._dialogRefConstructor=i,this._dialogContainerType=r,this._dialogDataToken=d,this._animationMode=u,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=As(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(hi(void 0))),this._scrollStrategy=n}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function fm(o,a){return Object.assign(Object.assign({},a),o)}(t,this._defaultOptions||new kc),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const s=this._createOverlay(t),c=this._attachDialogContainer(s,t);if("NoopAnimations"!==this._animationMode){const n=c._animationStateChanged.subscribe(i=>{"opening"===i.state&&(this._dialogAnimatingOpen=!0),"opened"===i.state&&(this._dialogAnimatingOpen=!1,n.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new zt.w),this._animationStateSubscriptions.add(n)}const l=this._attachDialogContent(e,c,s,t);return this._lastDialogRef=l,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(l),l.afterClosed().subscribe(()=>this._removeOpenDialog(l)),this.afterOpened.next(l),c._initializeWithAttachedContent(),l}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Br({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const c=g.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:kc,useValue:t}]}),l=new co(this._dialogContainerType,t.viewContainerRef,c,t.componentFactoryResolver);return e.attach(l).instance}_attachDialogContent(e,t,s,c){const l=new this._dialogRefConstructor(s,t,c.id);if(e instanceof g.Rgc)t.attachTemplatePortal(new ou(e,null,{$implicit:c.data,dialogRef:l}));else{const n=this._createInjector(c,l,t),i=t.attachComponentPortal(new co(e,c.viewContainerRef,n));l.componentInstance=i.instance}return l.updateSize(c.width,c.height).updatePosition(c.position),l}_createInjector(e,t,s){const c=e&&e.viewContainerRef&&e.viewContainerRef.injector,l=[{provide:this._dialogContainerType,useValue:s},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!c||!c.get(hn,null,g.XFs.Optional))&&l.push({provide:hn,useValue:{value:e.direction,change:(0,ke.of)()}}),g.zs3.create({parent:c||this._injector,providers:l})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let s=t.length-1;s>-1;s--){let c=t[s];c!==e&&"SCRIPT"!==c.nodeName&&"STYLE"!==c.nodeName&&!c.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(c,c.getAttribute("aria-hidden")),c.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o}),o})(),Ts=(()=>{class o extends Ny{constructor(e,t,s,c,l,n,i,r){super(e,t,c,n,i,l,xs,Oy,In,r)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Wn),g.LFG(g.zs3),g.LFG(T.Ye,8),g.LFG(aT,8),g.LFG(Ly),g.LFG(o,12),g.LFG(Xl),g.LFG(Zi,8))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Hh=0,Ic=(()=>{class o{constructor(e,t,s){this._dialogRef=e,this._elementRef=t,this._dialog=s,this.id="mat-dialog-title-"+Hh++}ngOnInit(){this._dialogRef||(this._dialogRef=function zy(o,a){let e=o.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs,8),g.Y36(g.SBq),g.Y36(Ts))},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&g.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),o})(),Dh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),o})(),gm=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),o})(),Vc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Ts,pm],imports:[[ns,uo,Ue],Ue]}),o})();function Jn(o){return!!o&&(o instanceof Ci.y||"function"==typeof o.lift&&"function"==typeof o.subscribe)}var Gy=E(7830);function Es(...o){if(1===o.length){const a=o[0];if((0,cn.k)(a))return _r(a,null);if((0,Gy.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return _r(e.map(t=>a[t]),e)}}if("function"==typeof o[o.length-1]){const a=o.pop();return _r(o=1===o.length&&(0,cn.k)(o[0])?o[0]:o,null).pipe((0,et.U)(e=>a(...e)))}return _r(o,null)}function _r(o,a){return new Ci.y(e=>{const t=o.length;if(0===t)return void e.complete();const s=new Array(t);let c=0,l=0;for(let n=0;n{r||(r=!0,l++),s[n]=d},error:d=>e.error(d),complete:()=>{c++,(c===t||!r)&&(l===t&&e.next(a?a.reduce((d,u,f)=>(d[u]=s[f],d),{}):s),e.complete())}}))}})}const qy=new class Zo extends yi.v{}(class Uy extends sa.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var Ph=E(9312);class Qr extends ga.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(Qr.dispatch,this.delay,new Ti(a,this.destination)))}_next(a){this.scheduleMessage(Ph.P.createNext(a))}_error(a){this.scheduleMessage(Ph.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(Ph.P.createComplete()),this.unsubscribe()}}class Ti{constructor(a,e){this.notification=a,this.destination=e}}var Sa=E(5283);class Bc extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new mn(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,c=t.length;let l;if(this.closed)throw new ha.N;if(this.isStopped||this.hasError?l=zt.w.EMPTY:(this.observers.push(a),l=new Sa.W(this,a)),s&&a.add(a=new Qr(a,s)),e)for(let n=0;ne&&(l=Math.max(l,c-e)),l>0&&s.splice(0,l),s}}class mn{constructor(a,e){this.time=a,this.value=e}}function Oc(o,a,e){let t;return t=o&&"object"==typeof o?o:{bufferSize:o,windowTime:a,refCount:!1,scheduler:e},s=>s.lift(function Ss({bufferSize:o=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let s,l,c=0,n=!1,i=!1;return function(d){c++,(!s||n)&&(n=!1,s=new Bc(o,a,t),l=d.subscribe({next(f){s.next(f)},error(f){n=!0,s.error(f)},complete(){i=!0,l=void 0,s.complete()}}));const u=s.subscribe(this);this.add(()=>{c--,u.unsubscribe(),l&&!i&&e&&0===c&&(l.unsubscribe(),l=void 0,s=void 0)})}}(t))}var Vn=E(1406),pi=E(7545);class Zn{}let Ma=(()=>{class o extends Zn{getTranslation(e){return(0,ke.of)({})}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Yr{}let Ha=(()=>{class o{handle(e){return e.key}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function br(o,a){if(o===a)return!0;if(null===o||null===a)return!1;if(o!=o&&a!=a)return!0;let s,c,l,e=typeof o;if(e==typeof a&&"object"==e){if(!Array.isArray(o)){if(Array.isArray(a))return!1;for(c in l=Object.create(null),o){if(!br(o[c],a[c]))return!1;l[c]=!0}for(c in a)if(!(c in l)&&void 0!==a[c])return!1;return!0}if(!Array.isArray(a))return!1;if((s=o.length)==a.length){for(c=0;c{Fc(a[t])?t in o?e[t]=Rh(o[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Xo{}let kh=(()=>{class o extends Xo{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let s;return s="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,s}getValue(e,t){let s="string"==typeof t?t.split("."):[t];t="";do{t+=s.shift(),!Xi(e)||!Xi(e[t])||"object"!=typeof e[t]&&s.length?s.length?t+=".":e=void 0:(e=e[t],t="")}while(s.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(s,c)=>{let l=this.getValue(t,c);return Xi(l)?l:s}):e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class el{}let Ih=(()=>{class o extends el{compile(e,t){return e}compileTranslations(e,t){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();class Vh{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new g.vpe,this.onLangChange=new g.vpe,this.onDefaultLangChange=new g.vpe}}const Lc=new g.OlP("USE_STORE"),jc=new g.OlP("USE_DEFAULT_LANG"),Bh=new g.OlP("DEFAULT_LANGUAGE"),Nc=new g.OlP("USE_EXTEND");let _n=(()=>{class o{constructor(e,t,s,c,l,n=!0,i=!1,r=!1,d){this.store=e,this.currentLoader=t,this.compiler=s,this.parser=c,this.missingTranslationHandler=l,this.useDefaultLang=n,this.isolate=i,this.extend=r,this.pending=!1,this._onTranslationChange=new g.vpe,this._onLangChange=new g.vpe,this._onDefaultLangChange=new g.vpe,this._langs=[],this._translations={},this._translationRequests={},d&&this.setDefaultLang(d)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Qt.q)(1)).subscribe(s=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,ke.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Qt.q)(1)).subscribe(s=>{this.changeLang(e)}),t):(this.changeLang(e),(0,ke.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Oc(1),(0,Qt.q)(1));return this.loadingTranslations=t.pipe((0,et.U)(s=>this.compiler.compileTranslations(s,e)),Oc(1),(0,Qt.q)(1)),this.loadingTranslations.subscribe({next:s=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},s),this.translations[e]):s,this.updateLangs(),this.pending=!1},error:s=>{this.pending=!1}}),t}setTranslation(e,t,s=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(s||this.extend)&&this.translations[e]?Rh(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,s){let c;if(t instanceof Array){let l={},n=!1;for(let i of t)l[i]=this.getParsedResult(e,i,s),Jn(l[i])&&(n=!0);return n?Es(t.map(r=>Jn(l[r])?l[r]:(0,ke.of)(l[r]))).pipe((0,et.U)(r=>{let d={};return r.forEach((u,f)=>{d[t[f]]=u}),d})):l}if(e&&(c=this.parser.interpolate(this.parser.getValue(e,t),s)),void 0===c&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(c=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),s)),void 0===c){let l={key:t,translateService:this};void 0!==s&&(l.interpolateParams=s),c=this.missingTranslationHandler.handle(l)}return void 0!==c?c:t}get(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Vn.b)(s=>Jn(s=this.getParsedResult(s,e,t))?s:(0,ke.of)(s)));{let s=this.getParsedResult(this.translations[this.currentLang],e,t);return Jn(s)?s:(0,ke.of)(s)}}getStreamOnTranslationChange(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onTranslationChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return"function"==typeof c.subscribe?c:(0,ke.of)(c)})))}stream(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');return os(As(()=>this.get(e,t)),this.onLangChange.pipe((0,pi.w)(s=>{const c=this.getParsedResult(s.translations,e,t);return Jn(c)?c:(0,ke.of)(c)})))}instant(e,t){if(!Xi(e)||!e.length)throw new Error('Parameter "key" required');let s=this.getParsedResult(this.translations[this.currentLang],e,t);if(Jn(s)){if(e instanceof Array){let c={};return e.forEach((l,n)=>{c[e[n]]=e[n]}),c}return e}return s}set(e,t,s=this.currentLang){this.translations[s][e]=this.compiler.compile(t,s),this.updateLangs(),this.onTranslationChange.emit({lang:s,translations:this.translations[s]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Vh),g.LFG(Zn),g.LFG(el),g.LFG(Xo),g.LFG(Yr),g.LFG(jc),g.LFG(Lc),g.LFG(Nc),g.LFG(Bh))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),Jr=(()=>{class o{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,s){let c=l=>{this.value=void 0!==l?l:e,this.lastKey=e,this._ref.markForCheck()};if(s){let l=this.translate.getParsedResult(s,e,t);Jn(l.subscribe)?l.subscribe(c):c(l)}this.translate.get(e,t).subscribe(c)}transform(e,...t){if(!e||!e.length)return e;if(br(e,this.lastKey)&&br(t,this.lastParams))return this.value;let s;if(Xi(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let c=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{s=JSON.parse(c)}catch(l){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(s=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,s),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(c=>{this.lastKey&&c.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(c=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s,c.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,s))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n,16),g.Y36(g.sBO,16))},o.\u0275pipe=g.Yjl({name:"translate",type:o,pure:!1}),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),tl=(()=>{class o{static forRoot(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},Vh,{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}static forChild(e={}){return{ngModule:o,providers:[e.loader||{provide:Zn,useClass:Ma},e.compiler||{provide:el,useClass:Ih},e.parser||{provide:Xo,useClass:kh},e.missingTranslationHandler||{provide:Yr,useClass:Ha},{provide:Lc,useValue:e.isolate},{provide:jc,useValue:e.useDefaultLang},{provide:Nc,useValue:e.extend},{provide:Bh,useValue:e.defaultLanguage},_n]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),$y=(()=>{class o{constructor(e){this.dialogRef=e}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(g.TgZ(0,"h2",0),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&e&&(g.xp6(1),g.hij(" ",g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[Dh],pipes:[Jr],styles:[""]}),o})();const _m=["mat-button",""],Qy=["*"],Ky=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],oT=Aa($o(xa(class{constructor(o){this._elementRef=o}})));let zc=(()=>{class o extends oT{constructor(e,t,s){super(e),this._focusMonitor=t,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const c of Ky)this._hasHostAttributes(c)&&this._getHostElement().classList.add(c);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Fr),g.Y36(Zi,8))},o.\u0275cmp=g.Xpm({type:o,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&g.Gf(Ta,5),2&e){let s;g.iGM(s=g.CRH())&&(t.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(g.uIk("disabled",t.disabled||null),g.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[g.qOj],attrs:_m,ngContentSelectors:Qy,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"span",0),g.Hsn(1),g.qZA(),g._UZ(2,"span",1),g._UZ(3,"span",2)),2&e&&(g.xp6(2),g.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),g.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Ta],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),o})(),Bn=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue],Ue]}),o})();const Zy=["connectionContainer"],lT=["inputContainer"],cT=["label"];function dT(o,a){1&o&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15),g._UZ(3,"div",16),g._UZ(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15),g._UZ(7,"div",16),g._UZ(8,"div",17),g.qZA(),g.BQk())}function Xy(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.Hsn(1,1),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Cm(o,a){if(1&o&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&o){const e=g.oxw(2);g.xp6(3),g.Oqu(e._control.placeholder)}}function uT(o,a){1&o&&g.Hsn(0,3,["*ngSwitchCase","true"])}function ew(o,a){1&o&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function Ms(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){return g.CHM(e),g.oxw().updateOutlineGap()}),g.YNc(2,Cm,4,1,"ng-container",12),g.YNc(3,uT,1,0,"ng-content",12),g.YNc(4,ew,2,0,"span",22),g.qZA()}if(2&o){const e=g.oxw();g.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),g.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),g.uIk("for",e._control.id)("aria-owns",e._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function tw(o,a){1&o&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function ym(o,a){if(1&o&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&o){const e=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function iw(o,a){if(1&o&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState)}}function wm(o,a){if(1&o&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&o){const e=g.oxw(2);g.Q6J("id",e._hintLabelId),g.xp6(1),g.Oqu(e.hintLabel)}}function Gc(o,a){if(1&o&&(g.TgZ(0,"div",27),g.YNc(1,wm,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&o){const e=g.oxw();g.Q6J("@transitionMessages",e._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",e.hintLabel)}}const nw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vm=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let rw=0;const Am=new g.OlP("MatError");let xm=(()=>{class o{constructor(e,t){this.id="mat-error-"+rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return o.\u0275fac=function(e){return new(e||o)(g.$8M("aria-live"),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&g.uIk("id",t.id)},inputs:{id:"id"},features:[g._Bn([{provide:Am,useExisting:o}])]}),o})();const aw={transitionMessages:Jt("transitionMessages",[bt("enter",Ve({opacity:1,transform:"translateY(0%)"})),wt("void => enter",[Ve({opacity:0,transform:"translateY(-5px)"}),Pt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Uc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o}),o})(),Tm=0;const qc=new g.OlP("MatHint");let pT=(()=>{class o{constructor(){this.align="start",this.id="mat-hint-"+Tm++}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(g.uIk("id",t.id)("align",null),g.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[g._Bn([{provide:qc,useExisting:o}])]}),o})(),Hs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-label"]]}),o})(),lw=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-placeholder"]]}),o})();const fT=new g.OlP("MatPrefix"),Oh=new g.OlP("MatSuffix");let Fh=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:Oh,useExisting:o}])]}),o})(),$c=0;const Lh=Aa(class{constructor(o){this._elementRef=o}},"primary"),Em=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Sm=new g.OlP("MatFormField");let Mm=(()=>{class o extends Lh{constructor(e,t,s,c,l,n,i){super(e),this._changeDetectorRef=t,this._dir=s,this._defaults=c,this._platform=l,this._ngZone=n,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+$c++,this._labelId="mat-form-field-label-"+$c++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==i,this.appearance=c&&c.appearance?c.appearance:"legacy",this._hideRequiredMarker=!(!c||null==c.hideRequiredMarker)&&c.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=it(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(hi(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(ht(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(ht(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,qn.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(hi(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(hi(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(ht(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,no(this._label.nativeElement,"transitionend").pipe((0,Qt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(c=>"start"===c.align):null,s=this._hintChildren?this._hintChildren.find(c=>"end"===c.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),s&&e.push(s.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,s=".mat-form-field-outline-start",c=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const d=t.querySelectorAll(`${s}, ${c}`);for(let u=0;u0?.75*D+10:0}for(let d=0;d{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,fg],Ue]}),o})();const Fm={provide:new g.OlP("mat-select-scroll-strategy"),deps:[Wn],useFactory:function Om(o){return()=>o.scrollStrategies.reposition()}};let Yc=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Fm],imports:[[T.ez,ns,Sh,Ue],Un,Cr,Sh,Ue]}),o})();var ii=E(6053);const Lm=new Set;let Ds,jm=(()=>{class o{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Nm}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function xw(o){if(!Lm.has(o))try{Ds||(Ds=document.createElement("style"),Ds.setAttribute("type","text/css"),document.head.appendChild(Ds)),Ds.sheet&&(Ds.sheet.insertRule(`@media ${o} {body{ }}`,0),Lm.add(o))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Nm(o){return{matches:"all"===o||""===o,media:o,addListener:()=>{},removeListener:()=>{}}}let zm=(()=>{class o{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Da(to(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){const s=Da(to(e)).map(l=>this._registerQuery(l).observable);let c=(0,ii.aj)(s);return c=os(c.pipe((0,Qt.q)(1)),c.pipe(Tu(1),(0,fa.b)(0))),c.pipe((0,et.U)(l=>{const n={matches:!1,breakpoints:{}};return l.forEach(({matches:i,query:r})=>{n.matches=n.matches||i,n.breakpoints[r]=i}),n}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),c={observable:new Ci.y(l=>{const n=i=>this._zone.run(()=>l.next(i));return t.addListener(n),()=>{t.removeListener(n)}}).pipe(hi(t),(0,et.U)(({matches:l})=>({query:e,matches:l})),ht(this._destroySubject)),mql:t};return this._queries.set(e,c),c}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(jm),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Da(o){return o.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const Ew={tooltipState:Jt("state",[bt("initial, void, hidden",Ve({opacity:0,transform:"scale(0)"})),bt("visible",Ve({transform:"scale(1)"})),wt("* => visible",Pt("200ms cubic-bezier(0, 0, 0.2, 1)",jr([Ve({opacity:0,transform:"scale(0)",offset:0}),Ve({opacity:.5,transform:"scale(0.99)",offset:.5}),Ve({opacity:1,transform:"scale(1)",offset:1})]))),wt("* => hidden",Pt("100ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:0})))])},zh="tooltip-panel",Sw=dn({passive:!0}),On=new g.OlP("mat-tooltip-scroll-strategy"),Hw={provide:On,deps:[Wn],useFactory:function Mw(o){return()=>o.scrollStrategies.reposition({scrollThrottle:20})}},Xn=new g.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function Fn(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ln=(()=>{class o{constructor(e,t,s,c,l,n,i,r,d,u,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=s,this._viewContainerRef=c,this._ngZone=l,this._platform=n,this._ariaDescriber=i,this._focusMonitor=r,this._dir=u,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.xQ,this._scrollStrategy=d,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),u.change.pipe(ht(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=it(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=ln(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=ln(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ht(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,s])=>{e.removeEventListener(t,s,Sw)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new co(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(ht(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${zh}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ht(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ht(this._destroyed)).subscribe(()=>{var s;return null===(s=this._tooltipInstance)||void 0===s?void 0:s._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(ht(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&27===s.keyCode&&!pr(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,s=this._getOrigin(),c=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},s.main),c.main)),this._addOffset(Object.assign(Object.assign({},s.fallback),c.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t||"below"==t?s={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={originX:"end",originY:"center"});const{x:c,y:l}=this._invertPosition(s.originX,s.originY);return{main:s,fallback:{originX:c,originY:l}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let s;"above"==t?s={overlayX:"center",overlayY:"bottom"}:"below"==t?s={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?s={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(s={overlayX:"start",overlayY:"center"});const{x:c,y:l}=this._invertPosition(s.overlayX,s.overlayY);return{main:s,fallback:{overlayX:c,overlayY:l}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Qt.q)(1),ht(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:s,originY:c}=e;let l;if(l="center"===t?this._dir&&"rtl"===this._dir.value?"end"===s?"left":"right":"start"===s?"left":"right":"bottom"===t&&"top"===c?"above":"below",l!==this._currentPosition){const n=this._overlayRef;if(n){const i=`${this._cssClassPrefix}-${zh}-`;n.removePanelClass(i+this._currentPosition),n.addPanelClass(i+l)}this._currentPosition=l}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,s])=>{this._elementRef.nativeElement.addEventListener(t,s,Sw)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),s=this._elementRef.nativeElement;t!==s&&!s.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,s=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(s.userSelect=s.msUserSelect=s.webkitUserSelect=s.MozUserSelect="none"),("on"===e||!t.draggable)&&(s.webkitUserDrag="none"),s.touchAction="none",s.webkitTapHighlightColor="transparent"}}}return o.\u0275fac=function(e){g.$Z()},o.\u0275dir=g.lG2({type:o,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),o})(),qm=(()=>{class o extends Ln{constructor(e,t,s,c,l,n,i,r,d,u,f,b){super(e,t,s,c,l,n,i,r,d,u,f,b),this._tooltipComponent=Dw}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(zf),g.Y36(g.s_b),g.Y36(g.R0b),g.Y36(Je),g.Y36(Pu),g.Y36(Fr),g.Y36(On),g.Y36(hn,8),g.Y36(Xn,8),g.Y36(T.K0))},o.\u0275dir=g.lG2({type:o,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[g.qOj]}),o})(),Wm=(()=>{class o{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o}),o})(),Dw=(()=>{class o extends Wm{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.sBO),g.Y36(zm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&g.Udp("zoom","visible"===t._visibility?1:null)},features:[g.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(g.TgZ(0,"div",0),g.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(c){return t._animationDone(c)}),g.ALo(1,"async"),g._uU(2),g.qZA()),2&e){let s;g.ekj("mat-tooltip-handset",null==(s=g.lcZ(1,5,t._isHandset))?null:s.matches),g.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),g.xp6(2),g.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Ew.tooltipState]},changeDetection:0}),o})(),Ps=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Hw],imports:[[Ou,T.ez,ns,Ue],Ue,Un]}),o})(),qh=(()=>{class o{constructor(){this.changes=new He.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,s)=>{if(0==s||0==t)return`0 of ${s}`;const c=e*t;return`${c+1} \u2013 ${c<(s=Math.max(s,0))?Math.min(c+t,s):c+t} of ${s}`}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const Qm={provide:qh,deps:[[new g.FiY,new g.tp0,qh]],useFactory:function $m(o){return o||new qh}};let Rs=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Qm],imports:[[T.ez,Bn,Yc,Ps,Ue]]}),o})();var Qh=E(943);const Jm=["mat-menu-item",""];function Km(o,a){1&o&&(g.O4$(),g.TgZ(0,"svg",2),g._UZ(1,"polygon",3),g.qZA())}const Yh=["*"];function Zm(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div",0),g.NdJ("keydown",function(s){return g.CHM(e),g.oxw()._handleKeydown(s)})("click",function(){return g.CHM(e),g.oxw().closed.emit("click")})("@transformMenu.start",function(s){return g.CHM(e),g.oxw()._onAnimationStart(s)})("@transformMenu.done",function(s){return g.CHM(e),g.oxw()._onAnimationDone(s)}),g.TgZ(1,"div",1),g.Hsn(2),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),g.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const il={transformMenu:Jt("transformMenu",[bt("void",Ve({opacity:0,transform:"scale(0.8)"})),wt("void => enter",Pt("120ms cubic-bezier(0, 0, 0.2, 1)",Ve({opacity:1,transform:"scale(1)"}))),wt("* => void",Pt("100ms 25ms linear",Ve({opacity:0})))]),fadeInItems:Jt("fadeInItems",[bt("showing",Ve({opacity:1})),wt("void => *",[Ve({opacity:0}),Pt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Ow=new g.OlP("MatMenuContent"),Jh=new g.OlP("MAT_MENU_PANEL"),Fw=xa($o(class{}));let Kc=(()=>{class o extends Fw{constructor(e,t,s,c,l){var n;super(),this._elementRef=e,this._focusMonitor=s,this._parentMenu=c,this._changeDetectorRef=l,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(n=null==c?void 0:c.addItem)||void 0===n||n.call(c,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),s=t.querySelectorAll("mat-icon, .material-icons");for(let c=0;c{class o{constructor(e,t,s){this._elementRef=e,this._ngZone=t,this._defaultOptions=s,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new g.n_E,this._tabSubscription=zt.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new g.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+jw++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=it(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=it(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(s=>{this._classList[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{this._classList[s]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ho(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(e=>(0,qn.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(hi(this._directDescendantItems),(0,pi.w)(t=>(0,qn.T)(...t.map(s=>s._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,s=this._keyManager;switch(t){case 27:pr(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&s.setFocusOrigin("keyboard"),void s.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Qt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let s=this._directDescendantItems.first._getHostElement().parentElement;for(;s;){if("menu"===s.getAttribute("role")){s.focus();break}s=s.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),s=`${this._elevationPrefix}${t}`,c=Object.keys(this._classList).find(l=>l.startsWith(this._elevationPrefix));(!c||c===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[s]=!0,this._previousElevation=s)}setPositionClasses(e=this.xPosition,t=this.yPosition){const s=this._classList;s["mat-menu-before"]="before"===e,s["mat-menu-after"]="after"===e,s["mat-menu-above"]="above"===t,s["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(hi(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275dir=g.lG2({type:o,contentQueries:function(e,t,s){if(1&e&&(g.Suo(s,Ow,5),g.Suo(s,Kc,5),g.Suo(s,Kc,4)),2&e){let c;g.iGM(c=g.CRH())&&(t.lazyContent=c.first),g.iGM(c=g.CRH())&&(t._allItems=c),g.iGM(c=g.CRH())&&(t.items=c)}},viewQuery:function(e,t){if(1&e&&g.Gf(g.Rgc,5),2&e){let s;g.iGM(s=g.CRH())&&(t.templateRef=s.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),o})(),Nw=(()=>{class o extends nl{constructor(e,t,s){super(e,t,s),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(Xm))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&g.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[g._Bn([{provide:Jh,useExisting:o}]),g.qOj],ngContentSelectors:Yh,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(g.F$t(),g.YNc(0,Zm,3,6,"ng-template"))},directives:[T.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[il.transformMenu,il.fadeInItems]},changeDetection:0}),o})();const e_=new g.OlP("mat-menu-scroll-strategy"),t_={provide:e_,deps:[Wn],useFactory:function zw(o){return()=>o.scrollStrategies.reposition()}},Zh=dn({passive:!0});let i_=(()=>{class o{constructor(e,t,s,c,l,n,i,r){this._overlay=e,this._element=t,this._viewContainerRef=s,this._menuItemInstance=n,this._dir=i,this._focusMonitor=r,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=zt.w.EMPTY,this._hoverSubscription=zt.w.EMPTY,this._menuCloseSubscription=zt.w.EMPTY,this._handleTouchStart=d=>{fc(d)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new g.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new g.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=l instanceof nl?l:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Zh),n&&(n._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Zh),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),s=t.positionStrategy;this._setPosition(s),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof nl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(ht(this.menu.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof nl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,mt.h)(s=>"void"===s.toState),(0,Qt.q)(1),ht(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Br({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,s]="before"===this.menu.xPosition?["end","start"]:["start","end"],[c,l]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[n,i]=[c,l],[r,d]=[t,s],u=0;this.triggersSubmenu()?(d=t="before"===this.menu.xPosition?"start":"end",s=r="end"===t?"start":"end",u="bottom"===c?8:-8):this.menu.overlapTrigger||(n="top"===c?"bottom":"top",i="top"===l?"bottom":"top"),e.withPositions([{originX:t,originY:n,overlayX:r,overlayY:c,offsetY:u},{originX:s,originY:n,overlayX:d,overlayY:c,offsetY:u},{originX:t,originY:i,overlayX:r,overlayY:l,offsetY:-u},{originX:s,originY:i,overlayX:d,overlayY:l,offsetY:-u}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),s=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,ke.of)(),c=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,mt.h)(l=>l!==this._menuItemInstance),(0,mt.h)(()=>this._menuOpen)):(0,ke.of)();return(0,qn.T)(e,s,c,t)}_handleMousedown(e){Ro(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,mt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,Qh.g)(0,H)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof nl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Qt.q)(1),(0,Qh.g)(0,H),ht(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new ou(this.menu.templateRef,this._viewContainerRef)),this._portal}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Wn),g.Y36(g.SBq),g.Y36(g.s_b),g.Y36(e_),g.Y36(Jh,8),g.Y36(Kc,10),g.Y36(hn,8),g.Y36(Fr))},o.\u0275dir=g.lG2({type:o,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&g.NdJ("click",function(c){return t._handleClick(c)})("mousedown",function(c){return t._handleMousedown(c)})("keydown",function(c){return t._handleKeydown(c)}),2&e&&g.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),o})(),n_=(()=>{class o extends i_{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[g.qOj]}),o})(),rl=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[t_],imports:[[T.ez,Ue,Yn,ns],Un,Ue]}),o})();var al=E(1737),zi=E(7221);function Zc(o){return a=>a.lift(new Xh(o))}class Xh{constructor(a){this.callback=a}call(a,e){return e.subscribe(new ep(a,this.callback))}}class ep extends ga.L{constructor(a,e){super(a),this.add(new zt.w(e))}}var Pa=E(2474);const Gw=["*"];let Xc;function ed(o){var a;return(null===(a=function ks(){if(void 0===Xc&&(Xc=null,"undefined"!=typeof window)){const o=window;void 0!==o.trustedTypes&&(Xc=o.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return Xc}())||void 0===a?void 0:a.createHTML(o))||o}function td(o){return Error(`Unable to find icon with the name "${o}"`)}function tp(o){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${o}".`)}function ip(o){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${o}".`)}class Is{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Ne=(()=>{class o{constructor(e,t,s,c){this._httpClient=e,this._sanitizer=t,this._errorHandler=c,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",this._document=s}addSvgIcon(e,t,s){return this.addSvgIconInNamespace("",e,t,s)}addSvgIconLiteral(e,t,s){return this.addSvgIconLiteralInNamespace("",e,t,s)}addSvgIconInNamespace(e,t,s,c){return this._addSvgIconConfig(e,t,new Is(s,null,c))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,s,c){const l=this._sanitizer.sanitize(g.q3G.HTML,s);if(!l)throw ip(s);const n=ed(l);return this._addSvgIconConfig(e,t,new Is("",n,c))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,s){return this._addSvgIconSetConfig(e,new Is(t,null,s))}addSvgIconSetLiteralInNamespace(e,t,s){const c=this._sanitizer.sanitize(g.q3G.HTML,t);if(!c)throw ip(t);const l=ed(c);return this._addSvgIconSetConfig(e,new Is("",l,s))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(g.q3G.RESOURCE_URL,e);if(!t)throw tp(e);const s=this._cachedIconsByUrl.get(t);return s?(0,ke.of)(id(s)):this._loadSvgIconFromConfig(new Is(e,null)).pipe((0,It.b)(c=>this._cachedIconsByUrl.set(t,c)),(0,et.U)(c=>id(c)))}getNamedSvgIcon(e,t=""){const s=sl(t,e);let c=this._svgIconConfigs.get(s);if(c)return this._getSvgFromConfig(c);if(c=this._getIconConfigFromResolvers(t,e),c)return this._svgIconConfigs.set(s,c),this._getSvgFromConfig(c);const l=this._iconSetConfigs.get(t);return l?this._getSvgFromIconSetConfigs(e,l):(0,al._)(td(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,ke.of)(id(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,et.U)(t=>id(t)))}_getSvgFromIconSetConfigs(e,t){const s=this._extractIconWithNameFromAnySet(e,t);return s?(0,ke.of)(s):Es(t.filter(l=>!l.svgText).map(l=>this._loadSvgIconSetFromConfig(l).pipe((0,zi.K)(n=>{const r=`Loading icon set URL: ${this._sanitizer.sanitize(g.q3G.RESOURCE_URL,l.url)} failed: ${n.message}`;return this._errorHandler.handleError(new Error(r)),(0,ke.of)(null)})))).pipe((0,et.U)(()=>{const l=this._extractIconWithNameFromAnySet(e,t);if(!l)throw td(e);return l}))}_extractIconWithNameFromAnySet(e,t){for(let s=t.length-1;s>=0;s--){const c=t[s];if(c.svgText&&c.svgText.toString().indexOf(e)>-1){const l=this._svgElementFromConfig(c),n=this._extractSvgIconFromSet(l,e,c.options);if(n)return n}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t),(0,et.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,ke.of)(null):this._fetchIcon(e).pipe((0,It.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,s){const c=e.querySelector(`[id="${t}"]`);if(!c)return null;const l=c.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,s);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),s);const n=this._svgElementFromString(ed(""));return n.appendChild(l),this._setSvgAttributes(n,s)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const s=t.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(e){const t=this._svgElementFromString(ed("")),s=e.attributes;for(let c=0;ced(d)),Zc(()=>this._inProgressUrlFetches.delete(n)),(0,Pa.B)());return this._inProgressUrlFetches.set(n,r),r}_addSvgIconConfig(e,t,s){return this._svgIconConfigs.set(sl(e,t),s),this}_addSvgIconSetConfig(e,t){const s=this._iconSetConfigs.get(e);return s?s.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let s=0;sa?a.pathname+a.search:""}}}),Ww=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],r_=Ww.map(o=>`[${o}]`).join(", "),$w=/^url\(['"]?#(.*?)['"]?\)$/;let np=(()=>{class o extends nd{constructor(e,t,s,c,l){super(e),this._iconRegistry=t,this._location=c,this._errorHandler=l,this._inline=!1,this._currentIconFetch=zt.w.EMPTY,s||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=it(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let c=0;c{s.forEach(l=>{c.setAttribute(l.name,`url('${e}#${l.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(r_),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let c=0;c{const n=t[c],i=n.getAttribute(l),r=i?i.match($w):null;if(r){let d=s.get(n);d||(d=[],s.set(n,d)),d.push({name:l,value:r[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,s]=this._splitIconName(e);t&&(this._svgNamespace=t),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,t).pipe((0,Qt.q)(1)).subscribe(c=>this._setSvgElement(c),c=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${s}! ${c.message}`))})}}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Ne),g.$8M("aria-hidden"),g.Y36(rd),g.Y36(g.qLn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(g.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),g.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[g.qOj],ngContentSelectors:Gw,decls:1,vars:0,template:function(e,t){1&e&&(g.F$t(),g.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),o})(),er=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),a_=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[Rs,rl,er,Bn,tl,T.ez]]}),o})();function Vs(){const o=new kc;return o.disableClose=!0,o.autoFocus=!1,o}E(9441),new Intl.Collator("cs",{numeric:!0});class d_{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const s of a)t+=s.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}var sp=E(4450),sv=E(1762);function u_(o,a){let e=!1;return arguments.length>=2&&(e=!0),function(s){return s.lift(new ov(o,a,e))}}class ov{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new op(a,this.accumulator,this.seed,this.hasSeed))}}class op extends ga.L{constructor(a,e,t,s){super(a),this.accumulator=e,this._seed=t,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(s){this.destination.error(s)}this.seed=t,this.destination.next(t)}}var lv=E(4231);function ld(o){return function(e){return 0===o?(0,Ea.c)():e.lift(new cv(o))}}class cv{constructor(a){if(this.total=a,this.total<0)throw new lv.W}call(a,e){return e.subscribe(new dv(a,this.total))}}class dv extends ga.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,s=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,s=this.ring;for(let c=0;co.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[c]===s)}return o===a}function Av(o){return Array.prototype.concat.apply([],o)}function fp(o){return o.length>0?o[o.length-1]:null}function fi(o,a){for(const e in o)o.hasOwnProperty(e)&&a(o[e],e)}function ir(o){return(0,g.CqO)(o)?o:(0,g.QGY)(o)?(0,xi.D)(Promise.resolve(o)):(0,ke.of)(o)}const b_={exact:function Ls(o,a,e){if(!js(o.segments,a.segments)||!hd(o.segments,a.segments,e)||o.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!o.children[t]||!Ls(o.children[t],a.children[t],e))return!1;return!0},subset:gp},C_={exact:function ud(o,a){return Ui(o,a)},subset:function Tv(o,a){return Object.keys(a).length<=Object.keys(o).length&&Object.keys(a).every(e=>__(o[e],a[e]))},ignored:()=>!0};function dd(o,a,e){return b_[e.paths](o.root,a.root,e.matrixParams)&&C_[e.queryParams](o.queryParams,a.queryParams)&&!("exact"===e.fragment&&o.fragment!==a.fragment)}function gp(o,a,e){return mp(o,a,a.segments,e)}function mp(o,a,e,t){if(o.segments.length>e.length){const s=o.segments.slice(0,e.length);return!(!js(s,e)||a.hasChildren()||!hd(s,e,t))}if(o.segments.length===e.length){if(!js(o.segments,e)||!hd(o.segments,e,t))return!1;for(const s in a.children)if(!o.children[s]||!gp(o.children[s],a.children[s],t))return!1;return!0}{const s=e.slice(0,o.segments.length),c=e.slice(o.segments.length);return!!(js(o.segments,s)&&hd(o.segments,s,t)&&o.children[dt])&&mp(o.children[dt],a,c,t)}}function hd(o,a,e){return a.every((t,s)=>C_[e](o[s].parameters,t.parameters))}class ka{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return w_.serialize(this)}}class Ct{constructor(a,e){this.segments=a,this.children=e,this.parent=null,fi(e,(t,s)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yr(this)}}class Ia{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ra(this.parameters)),this._parameterMap}toString(){return md(this)}}function js(o,a){return o.length===a.length&&o.every((e,t)=>e.path===a[t].path)}class y_{}class Va{parse(a){const e=new Iv(a);return new ka(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${pd(a.root,!0)}`,t=function v_(o){const a=Object.keys(o).map(e=>{const t=o[e];return Array.isArray(t)?t.map(s=>`${fd(e)}=${fd(s)}`).join("&"):`${fd(e)}=${fd(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function oE(o){return encodeURI(o)}(a.fragment)}`:""}`}}const w_=new Va;function yr(o){return o.segments.map(a=>md(a)).join("/")}function pd(o,a){if(!o.hasChildren())return yr(o);if(a){const e=o.children[dt]?pd(o.children[dt],!1):"",t=[];return fi(o.children,(s,c)=>{c!==dt&&t.push(`${c}:${pd(s,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Sv(o,a){let e=[];return fi(o.children,(t,s)=>{s===dt&&(e=e.concat(a(t,s)))}),fi(o.children,(t,s)=>{s!==dt&&(e=e.concat(a(t,s)))}),e}(o,(t,s)=>s===dt?[pd(o.children[dt],!1)]:[`${s}:${pd(t,!1)}`]);return 1===Object.keys(o.children).length&&null!=o.children[dt]?`${yr(o)}/${e[0]}`:`${yr(o)}/(${e.join("//")})`}}function _p(o){return encodeURIComponent(o).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fd(o){return _p(o).replace(/%3B/gi,";")}function gd(o){return _p(o).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bp(o){return decodeURIComponent(o)}function Cp(o){return bp(o.replace(/\+/g,"%20"))}function md(o){return`${gd(o.path)}${function Mv(o){return Object.keys(o).map(a=>`;${gd(a)}=${gd(o[a])}`).join("")}(o.parameters)}`}const Hv=/^[^\/()?;=#]+/;function _d(o){const a=o.match(Hv);return a?a[0]:""}const Dv=/^[^=?&#]+/,Rv=/^[^&#]+/;class Iv{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[dt]=new Ct(a,e)),t}parseSegment(){const a=_d(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new Ia(bp(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=_d(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const s=_d(this.remaining);s&&(t=s,this.capture(t))}a[bp(e)]=bp(t)}parseQueryParam(a){const e=function Pv(o){const a=o.match(Dv);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const l=function kv(o){const a=o.match(Rv);return a?a[0]:""}(this.remaining);l&&(t=l,this.capture(t))}const s=Cp(e),c=Cp(t);if(a.hasOwnProperty(s)){let l=a[s];Array.isArray(l)||(l=[l],a[s]=l),l.push(c)}else a[s]=c}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=_d(this.remaining),s=this.remaining[t.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let c;t.indexOf(":")>-1?(c=t.substr(0,t.indexOf(":")),this.capture(c),this.capture(":")):a&&(c=dt);const l=this.parseChildren();e[c]=1===Object.keys(l).length?l[dt]:new Ct([],l),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class A_{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Ba(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Ba(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=bd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(s=>s.value).filter(s=>s!==a)}pathFromRoot(a){return bd(a,this._root).map(e=>e.value)}}function Ba(o,a){if(o===a.value)return a;for(const e of a.children){const t=Ba(o,e);if(t)return t}return null}function bd(o,a){if(o===a.value)return[a];for(const e of a.children){const t=bd(o,e);if(t.length)return t.unshift(a),t}return[]}class nr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oa(o){const a={};return o&&o.children.forEach(e=>a[e.value.outlet]=e),a}class yp extends A_{constructor(a,e){super(a),this.snapshot=e,Ap(this,a)}toString(){return this.snapshot.toString()}}function wp(o,a){const e=function x_(o,a){const l=new dl([],{},{},"",{},dt,a,null,o.root,-1,{});return new E_("",new nr(l,[]))}(o,a),t=new ai([new Ia("",{})]),s=new ai({}),c=new ai({}),l=new ai({}),n=new ai(""),i=new Kr(t,s,l,n,c,dt,a,e.root);return i.snapshot=e.root,new yp(new nr(i,[]),e)}class Kr{constructor(a,e,t,s,c,l,n,i){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this._futureSnapshot=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,et.U)(a=>Ra(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,et.U)(a=>Ra(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function vp(o,a="emptyOnly"){const e=o.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const s=e[t],c=e[t-1];if(s.routeConfig&&""===s.routeConfig.path)t--;else{if(c.component)break;t--}}return function T_(o){return o.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class dl{constructor(a,e,t,s,c,l,n,i,r,d,u){this.url=a,this.params=e,this.queryParams=t,this.fragment=s,this.data=c,this.outlet=l,this.component=n,this.routeConfig=i,this._urlSegment=r,this._lastPathIndex=d,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ra(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ra(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class E_ extends A_{constructor(a,e){super(e),this.url=a,Ap(this,e)}toString(){return Ns(this._root)}}function Ap(o,a){a.value._routerState=o,a.children.forEach(e=>Ap(o,e))}function Ns(o){const a=o.children.length>0?` { ${o.children.map(Ns).join(", ")} } `:"";return`${o.value}${a}`}function xp(o){if(o.snapshot){const a=o.snapshot,e=o._futureSnapshot;o.snapshot=e,Ui(a.queryParams,e.queryParams)||o.queryParams.next(e.queryParams),a.fragment!==e.fragment&&o.fragment.next(e.fragment),Ui(a.params,e.params)||o.params.next(e.params),function Fs(o,a){if(o.length!==a.length)return!1;for(let e=0;eUi(e.parameters,a[t].parameters))}(o.url,a.url);return e&&!(!o.parent!=!a.parent)&&(!o.parent||ul(o.parent,a.parent))}function hl(o,a,e){if(e&&o.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const s=function Cd(o,a,e){return a.children.map(t=>{for(const s of e.children)if(o.shouldReuseRoute(t.value,s.value.snapshot))return hl(o,t,s);return hl(o,t)})}(o,a,e);return new nr(t,s)}{if(o.shouldAttach(a.value)){const c=o.retrieve(a.value);if(null!==c){const l=c.route;return l.value._futureSnapshot=a.value,l.children=a.children.map(n=>hl(o,n)),l}}const t=function pl(o){return new Kr(new ai(o.url),new ai(o.params),new ai(o.queryParams),new ai(o.fragment),new ai(o.data),o.outlet,o.component,o)}(a.value),s=a.children.map(c=>hl(o,c));return new nr(t,s)}}function yd(o){return"object"==typeof o&&null!=o&&!o.outlets&&!o.segmentPath}function fl(o){return"object"==typeof o&&null!=o&&o.outlets}function zs(o,a,e,t,s){let c={};return t&&fi(t,(l,n)=>{c[n]=Array.isArray(l)?l.map(i=>`${i}`):`${l}`}),new ka(e.root===o?a:gl(e.root,o,a),c,s)}function gl(o,a,e){const t={};return fi(o.children,(s,c)=>{t[c]=s===a?e:gl(s,a,e)}),new Ct(o.segments,t)}class S_{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&yd(t[0]))throw new Error("Root segment cannot have matrix parameters");const s=t.find(fl);if(s&&s!==fp(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wd{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function D_(o,a,e){if(o||(o=new Ct([],{})),0===o.segments.length&&o.hasChildren())return vd(o,a,e);const t=function lE(o,a,e){let t=0,s=a;const c={match:!1,pathIndex:0,commandIndex:0};for(;s=e.length)return c;const l=o.segments[s],n=e[t];if(fl(n))break;const i=`${n}`,r=t0&&void 0===i)break;if(i&&r&&"object"==typeof r&&void 0===r.outlets){if(!Ad(i,r,l))return c;t+=2}else{if(!Ad(i,{},l))return c;t++}s++}return{match:!0,pathIndex:s,commandIndex:t}}(o,a,e),s=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof c&&(c=[c]),null!==c&&(s[l]=D_(o.children[l],a,c))}),fi(o.children,(c,l)=>{void 0===t[l]&&(s[l]=c)}),new Ct(o.segments,s)}}function ml(o,a,e){const t=o.segments.slice(0,a);let s=0;for(;s{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=ml(new Ct([],{}),0,e))}),a}function Sp(o){const a={};return fi(o,(e,t)=>a[t]=`${e}`),a}function Ad(o,a,e){return o==e.path&&Ui(a,e.parameters)}class Ov{constructor(a,e,t,s){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=s}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),xp(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const s=Oa(e);a.children.forEach(c=>{const l=c.value.outlet;this.deactivateRoutes(c,s[l],t),delete s[l]}),fi(s,(c,l)=>{this.deactivateRouteAndItsChildren(c,t)})}deactivateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(s===c)if(s.component){const l=t.getContext(s.outlet);l&&this.deactivateChildRoutes(a,e,l.children)}else this.deactivateChildRoutes(a,e,t);else c&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],s);if(t&&t.outlet){const l=t.outlet.detach(),n=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:l,route:a,contexts:n})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),s=t&&a.value.component?t.children:e,c=Oa(a);for(const l of Object.keys(c))this.deactivateRouteAndItsChildren(c[l],s);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const s=Oa(e);a.children.forEach(c=>{this.activateRoutes(c,s[c.value.outlet],t),this.forwardEvent(new g_(c.value.snapshot))}),a.children.length&&this.forwardEvent(new hp(a.value.snapshot))}activateRoutes(a,e,t){const s=a.value,c=e?e.value:null;if(xp(s),s===c)if(s.component){const l=t.getOrCreateContext(s.outlet);this.activateChildRoutes(a,e,l.children)}else this.activateChildRoutes(a,e,t);else if(s.component){const l=t.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const n=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),l.children.onOutletReAttached(n.contexts),l.attachRef=n.componentRef,l.route=n.route.value,l.outlet&&l.outlet.attach(n.componentRef,n.route.value),xp(n.route.value),this.activateChildRoutes(a,null,l.children)}else{const n=function Fv(o){for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(s.snapshot),i=n?n.module.componentFactoryResolver:null;l.attachRef=null,l.route=s,l.resolver=i,l.outlet&&l.outlet.activateWith(s,i),this.activateChildRoutes(a,null,l.children)}}else this.activateChildRoutes(a,null,t)}}class Hp{constructor(a,e){this.routes=a,this.module=e}}function Zr(o){return"function"==typeof o}function wr(o){return o instanceof ka}const _l=Symbol("INITIAL_VALUE");function Gs(){return(0,pi.w)(o=>(0,ii.aj)(o.map(a=>a.pipe((0,Qt.q)(1),hi(_l)))).pipe(u_((a,e)=>{let t=!1;return e.reduce((s,c,l)=>s!==_l?s:(c===_l&&(t=!0),t||!1!==c&&l!==e.length-1&&!wr(c)?s:c),a)},_l),(0,mt.h)(a=>a!==_l),(0,et.U)(a=>wr(a)?a:!0===a),(0,Qt.q)(1)))}class B_{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new bl,this.attachRef=null}}class bl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new B_,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let Dp=(()=>{class o{constructor(e,t,s,c,l){this.parentContexts=e,this.location=t,this.resolver=s,this.changeDetector=l,this.activated=null,this._activatedRoute=null,this.activateEvents=new g.vpe,this.deactivateEvents=new g.vpe,this.attachEvents=new g.vpe,this.detachEvents=new g.vpe,this.name=c||dt,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const l=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,i=new Lv(e,n,this.location.injector);this.activated=this.location.createComponent(l,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(bl),g.Y36(g.s_b),g.Y36(g._Vd),g.$8M("name"),g.Y36(g.sBO))},o.\u0275dir=g.lG2({type:o,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),o})();class Lv{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===Kr?this.route:a===bl?this.childContexts:this.parent.get(a,e)}}let Ei=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&g._UZ(0,"router-outlet")},directives:[Dp],encapsulation:2}),o})();function Fa(o,a=""){for(let e=0;eSi(t)===a);return e.push(...o.filter(t=>Si(t)!==a)),e}const xd={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Td(o,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(o.hasChildren()||e.length>0)?Object.assign({},xd):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const c=(a.matcher||vv)(e,o,a);if(!c)return Object.assign({},xd);const l={};fi(c.posParams,(i,r)=>{l[r]=i.path});const n=c.consumed.length>0?Object.assign(Object.assign({},l),c.consumed[c.consumed.length-1].parameters):l;return{matched:!0,consumedSegments:c.consumed,lastChild:c.consumed.length,parameters:n,positionalParamSegments:null!==(t=c.posParams)&&void 0!==t?t:{}}}function Cl(o,a,e,t,s="corrected"){if(e.length>0&&function Pp(o,a,e){return e.some(t=>yl(o,a,t)&&Si(t)!==dt)}(o,e,t)){const l=new Ct(a,function Gv(o,a,e,t){const s={};s[dt]=t,t._sourceSegment=o,t._segmentIndexShift=a.length;for(const c of e)if(""===c.path&&Si(c)!==dt){const l=new Ct([],{});l._sourceSegment=o,l._segmentIndexShift=a.length,s[Si(c)]=l}return s}(o,a,t,new Ct(e,o.children)));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:[]}}if(0===e.length&&function L_(o,a,e){return e.some(t=>yl(o,a,t))}(o,e,t)){const l=new Ct(o.segments,function zv(o,a,e,t,s,c){const l={};for(const n of t)if(yl(o,e,n)&&!s[Si(n)]){const i=new Ct([],{});i._sourceSegment=o,i._segmentIndexShift="legacy"===c?o.segments.length:a.length,l[Si(n)]=i}return Object.assign(Object.assign({},s),l)}(o,a,e,t,o.children,s));return l._sourceSegment=o,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}const c=new Ct(o.segments,o.children);return c._sourceSegment=o,c._segmentIndexShift=a.length,{segmentGroup:c,slicedSegments:e}}function yl(o,a,e){return(!(o.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function wl(o,a,e,t){return!!(Si(o)===t||t!==dt&&yl(a,e,o))&&("**"===o.path||Td(a,o,e).matched)}function Ed(o,a,e){return 0===a.length&&!o.children[e]}class Sd{constructor(a){this.segmentGroup=a||null}}class Rp{constructor(a){this.urlTree=a}}function Md(o){return new Ci.y(a=>a.error(new Sd(o)))}function kp(o){return new Ci.y(a=>a.error(new Rp(o)))}function Hd(o){return new Ci.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${o}'`)))}class Ip{constructor(a,e,t,s,c){this.configLoader=e,this.urlSerializer=t,this.urlTree=s,this.config=c,this.allowRedirects=!0,this.ngModule=a.get(g.h0i)}apply(){const a=Cl(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,dt).pipe((0,et.U)(c=>this.createUrlTree(N_(c),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,zi.K)(c=>{if(c instanceof Rp)return this.allowRedirects=!1,this.match(c.urlTree);throw c instanceof Sd?this.noMatchError(c):c}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,dt).pipe((0,et.U)(s=>this.createUrlTree(N_(s),a.queryParams,a.fragment))).pipe((0,zi.K)(s=>{throw s instanceof Sd?this.noMatchError(s):s}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const s=a.segments.length>0?new Ct([],{[dt]:a}):a;return new ka(s,e,t)}expandSegmentGroup(a,e,t,s){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,et.U)(c=>new Ct([],c))):this.expandSegment(a,t,e,t.segments,s,!0)}expandChildren(a,e,t){const s=[];for(const c of Object.keys(t.children))"primary"===c?s.unshift(c):s.push(c);return(0,xi.D)(s).pipe((0,Vn.b)(c=>{const l=t.children[c],n=F_(e,c);return this.expandSegmentGroup(a,n,l,c).pipe((0,et.U)(i=>({segment:i,outlet:c})))}),u_((c,l)=>(c[l.outlet]=l.segment,c),{}),function fv(o,a){const e=arguments.length>=2;return t=>t.pipe(o?(0,mt.h)((s,c)=>o(s,c,t)):pv.y,ld(1),e?(0,hv.d)(a):(0,uv.T)(()=>new sp.K))}())}expandSegment(a,e,t,s,c,l){return(0,xi.D)(t).pipe((0,Vn.b)(n=>this.expandSegmentAgainstRoute(a,e,t,n,s,c,l).pipe((0,zi.K)(r=>{if(r instanceof Sd)return(0,ke.of)(null);throw r}))),(0,Bs.P)(n=>!!n),(0,zi.K)((n,i)=>{if(n instanceof sp.K||"EmptyError"===n.name){if(Ed(e,s,c))return(0,ke.of)(new Ct([],{}));throw new Sd(e)}throw n}))}expandSegmentAgainstRoute(a,e,t,s,c,l,n){return wl(s,e,c,l)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(a,e,s,c,l):n&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l):Md(e):Md(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,s,l):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,s){const c=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?kp(c):this.lineralizeSegments(t,c).pipe((0,Gi.zg)(l=>{const n=new Ct(l,{});return this.expandSegment(a,n,e,l,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,s,c,l){const{matched:n,consumedSegments:i,lastChild:r,positionalParamSegments:d}=Td(e,s,c);if(!n)return Md(e);const u=this.applyRedirectCommands(i,s.redirectTo,d);return s.redirectTo.startsWith("/")?kp(u):this.lineralizeSegments(s,u).pipe((0,Gi.zg)(f=>this.expandSegment(a,e,t,f.concat(c.slice(r)),l,!1)))}matchSegmentAgainstRoute(a,e,t,s,c){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,et.U)(f=>(t._loadedConfig=f,new Ct(s,{})))):(0,ke.of)(new Ct(s,{}));const{matched:l,consumedSegments:n,lastChild:i}=Td(e,t,s);if(!l)return Md(e);const r=s.slice(i);return this.getChildConfig(a,t,s).pipe((0,Gi.zg)(u=>{const f=u.module,b=u.routes,{segmentGroup:D,slicedSegments:U}=Cl(e,n,r,b),se=new Ct(D.segments,D.children);if(0===U.length&&se.hasChildren())return this.expandChildren(f,b,se).pipe((0,et.U)(vt=>new Ct(n,vt)));if(0===b.length&&0===U.length)return(0,ke.of)(new Ct(n,{}));const De=Si(t)===c;return this.expandSegment(f,se,b,U,De?dt:c,!0).pipe((0,et.U)(Qe=>new Ct(n.concat(Qe.segments),Qe.children)))}))}getChildConfig(a,e,t){return e.children?(0,ke.of)(new Hp(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,ke.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,Gi.zg)(s=>s?this.configLoader.load(a.injector,e).pipe((0,et.U)(c=>(e._loadedConfig=c,c))):function j_(o){return new Ci.y(a=>a.error(pp(`Cannot load children because the guard of the route "path: '${o.path}'" returned false`)))}(e))):(0,ke.of)(new Hp([],a))}runCanLoadGuards(a,e,t){const s=e.canLoad;if(!s||0===s.length)return(0,ke.of)(!0);const c=s.map(l=>{const n=a.get(l);let i;if(function R_(o){return o&&Zr(o.canLoad)}(n))i=n.canLoad(e,t);else{if(!Zr(n))throw new Error("Invalid CanLoad guard");i=n(e,t)}return ir(i)});return(0,ke.of)(c).pipe(Gs(),(0,It.b)(l=>{if(!wr(l))return;const n=pp(`Redirecting to "${this.urlSerializer.serialize(l)}"`);throw n.url=l,n}),(0,et.U)(l=>!0===l))}lineralizeSegments(a,e){let t=[],s=e.root;for(;;){if(t=t.concat(s.segments),0===s.numberOfChildren)return(0,ke.of)(t);if(s.numberOfChildren>1||!s.children[dt])return Hd(a.redirectTo);s=s.children[dt]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,s){const c=this.createSegmentGroup(a,e.root,t,s);return new ka(c,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return fi(a,(s,c)=>{if("string"==typeof s&&s.startsWith(":")){const n=s.substring(1);t[c]=e[n]}else t[c]=s}),t}createSegmentGroup(a,e,t,s){const c=this.createSegments(a,e.segments,t,s);let l={};return fi(e.children,(n,i)=>{l[i]=this.createSegmentGroup(a,n,t,s)}),new Ct(c,l)}createSegments(a,e,t,s){return e.map(c=>c.path.startsWith(":")?this.findPosParam(a,c,s):this.findOrReturn(c,t))}findPosParam(a,e,t){const s=t[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);return s}findOrReturn(a,e){let t=0;for(const s of e){if(s.path===a.path)return e.splice(t),s;t++}return a}}function N_(o){const a={};for(const t of Object.keys(o.children)){const c=N_(o.children[t]);(c.segments.length>0||c.hasChildren())&&(a[t]=c)}return function Vp(o){if(1===o.numberOfChildren&&o.children[dt]){const a=o.children[dt];return new Ct(o.segments.concat(a.segments),a.children)}return o}(new Ct(o.segments,a))}class z_{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class vl{constructor(a,e){this.component=a,this.route=e}}function G_(o,a,e){const t=o._root;return xl(t,a?a._root:null,e,[t.value])}function Al(o,a,e){const t=function U_(o){if(!o)return null;for(let a=o.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(o)}function xl(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=Oa(a);return o.children.forEach(l=>{(function $v(o,a,e,t,s={canDeactivateChecks:[],canActivateChecks:[]}){const c=o.value,l=a?a.value:null,n=e?e.getContext(o.value.outlet):null;if(l&&c.routeConfig===l.routeConfig){const i=function q_(o,a,e){if("function"==typeof e)return e(o,a);switch(e){case"pathParamsChange":return!js(o.url,a.url);case"pathParamsOrQueryParamsChange":return!js(o.url,a.url)||!Ui(o.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ul(o,a)||!Ui(o.queryParams,a.queryParams);default:return!ul(o,a)}}(l,c,c.routeConfig.runGuardsAndResolvers);i?s.canActivateChecks.push(new z_(t)):(c.data=l.data,c._resolvedData=l._resolvedData),xl(o,a,c.component?n?n.children:null:e,t,s),i&&n&&n.outlet&&n.outlet.isActivated&&s.canDeactivateChecks.push(new vl(n.outlet.component,l))}else l&&Tl(a,n,s),s.canActivateChecks.push(new z_(t)),xl(o,null,c.component?n?n.children:null:e,t,s)})(l,c[l.value.outlet],e,t.concat([l.value]),s),delete c[l.value.outlet]}),fi(c,(l,n)=>Tl(l,e.getContext(n),s)),s}function Tl(o,a,e){const t=Oa(o),s=o.value;fi(t,(c,l)=>{Tl(c,s.component?a?a.children.getContext(l):null:a,e)}),e.canDeactivateChecks.push(new vl(s.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,s))}class dE{}function Jv(o){return new Ci.y(a=>a.error(o))}class hE{constructor(a,e,t,s,c,l){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=s,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=l}recognize(){const a=Cl(this.urlTree.root,[],[],this.config.filter(l=>void 0===l.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,dt);if(null===e)return null;const t=new dl([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},dt,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new nr(t,e),c=new E_(this.url,s);return this.inheritParamsAndData(c._root),c}inheritParamsAndData(a){const e=a.value,t=vp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(a,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const c of Object.keys(e.children)){const l=e.children[c],n=F_(a,c),i=this.processSegmentGroup(n,l,c);if(null===i)return null;t.push(...i)}const s=Kv(t);return function pE(o){o.sort((a,e)=>a.value.outlet===dt?-1:e.value.outlet===dt?1:a.value.outlet.localeCompare(e.value.outlet))}(s),s}processSegment(a,e,t,s){for(const c of a){const l=this.processSegmentAgainstRoute(c,e,t,s);if(null!==l)return l}return Ed(e,t,s)?[]:null}processSegmentAgainstRoute(a,e,t,s){if(a.redirectTo||!wl(a,e,t,s))return null;let c,l=[],n=[];if("**"===a.path){const b=t.length>0?fp(t).parameters:{};c=new dl(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+t.length,Op(a))}else{const b=Td(e,a,t);if(!b.matched)return null;l=b.consumedSegments,n=t.slice(b.lastChild),c=new dl(l,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,La(a),Si(a),a.component,a,Zv(e),Dd(e)+l.length,Op(a))}const i=function fE(o){return o.children?o.children:o.loadChildren?o._loadedConfig.routes:[]}(a),{segmentGroup:r,slicedSegments:d}=Cl(e,l,n,i.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===d.length&&r.hasChildren()){const b=this.processChildren(i,r);return null===b?null:[new nr(c,b)]}if(0===i.length&&0===d.length)return[new nr(c,[])];const u=Si(a)===s,f=this.processSegment(i,r,d,u?dt:s);return null===f?null:[new nr(c,f)]}}function gE(o){const a=o.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Kv(o){const a=[],e=new Set;for(const t of o){if(!gE(t)){a.push(t);continue}const s=a.find(c=>t.value.routeConfig===c.value.routeConfig);void 0!==s?(s.children.push(...t.children),e.add(s)):a.push(t)}for(const t of e){const s=Kv(t.children);a.push(new nr(t.value,s))}return a.filter(t=>!e.has(t))}function Zv(o){let a=o;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Dd(o){let a=o,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function La(o){return o.data||{}}function Op(o){return o.resolve||{}}function Lp(o){return[...Object.keys(o),...Object.getOwnPropertySymbols(o)]}function X_(o){return(0,pi.w)(a=>{const e=o(a);return e?(0,xi.D)(e).pipe((0,et.U)(()=>a)):(0,ke.of)(a)})}class tb extends class Pd{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const ib=new g.OlP("ROUTES");class tA{constructor(a,e,t,s){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=s}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const s=this.loadModuleFactory(e.loadChildren).pipe((0,et.U)(c=>{this.onLoadEndListener&&this.onLoadEndListener(e);const l=c.create(a);return new Hp(Av(l.injector.get(ib,void 0,g.XFs.Self|g.XFs.Optional)).map(O_),l)}),(0,zi.K)(c=>{throw e._loader$=void 0,c}));return e._loader$=new sv.c(s,()=>new He.xQ).pipe((0,h_.x)()),e._loader$}loadModuleFactory(a){return ir(a()).pipe((0,Gi.zg)(e=>e instanceof g.YKP?(0,ke.of)(e):(0,xi.D)(this.compiler.compileModuleAsync(e))))}}class iA{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function jp(o){throw o}function nA(o,a,e){return a.parse("/")}function rA(o,a){return(0,ke.of)(null)}const aA={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Np={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ki=(()=>{class o{constructor(e,t,s,c,l,n,i){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=s,this.location=c,this.config=i,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=jp,this.malformedUriErrorHandler=nA,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rA,afterPreactivation:rA},this.urlHandlingStrategy=new iA,this.routeReuseStrategy=new tb,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=l.get(g.h0i),this.console=l.get(g.c2e);const u=l.get(g.R0b);this.isNgZoneEnabled=u instanceof g.R0b&&g.R0b.isInAngularZone(),this.resetConfig(i),this.currentUrlTree=function xv(){return new ka(new Ct([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tA(l,n,f=>this.triggerEvent(new cd(f)),f=>this.triggerEvent(new f_(f))),this.routerState=wp(this.currentUrlTree,this.rootComponentType),this.transitions=new ai({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,mt.h)(s=>0!==s.id),(0,et.U)(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),(0,pi.w)(s=>{let c=!1,l=!1;return(0,ke.of)(s).pipe((0,It.b)(n=>{this.currentNavigation={id:n.id,initialUrl:n.currentRawUrl,extractedUrl:n.extractedUrl,trigger:n.source,extras:n.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,pi.w)(n=>{const i=this.browserUrlTree.toString(),r=!this.navigated||n.extractedUrl.toString()!==i||i!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(n.rawUrl))return Rd(n.source)&&(this.browserUrlTree=n.extractedUrl),(0,ke.of)(n).pipe((0,pi.w)(u=>{const f=this.transitions.getValue();return t.next(new lp(u.id,this.serializeUrl(u.extractedUrl),u.source,u.restoredState)),f!==this.transitions.getValue()?Ea.E:Promise.resolve(u)}),function qv(o,a,e,t){return(0,pi.w)(s=>function Uv(o,a,e,t,s){return new Ip(o,a,e,t,s).apply()}(o,a,e,s.extractedUrl,t).pipe((0,et.U)(c=>Object.assign(Object.assign({},s),{urlAfterRedirects:c}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,It.b)(u=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:u.urlAfterRedirects})}),function Xv(o,a,e,t,s){return(0,Gi.zg)(c=>function uE(o,a,e,t,s="emptyOnly",c="legacy"){try{const l=new hE(o,a,e,t,s,c).recognize();return null===l?Jv(new dE):(0,ke.of)(l)}catch(l){return Jv(l)}}(o,a,c.urlAfterRedirects,e(c.urlAfterRedirects),t,s).pipe((0,et.U)(l=>Object.assign(Object.assign({},c),{targetSnapshot:l}))))}(this.rootComponentType,this.config,u=>this.serializeUrl(u),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,It.b)(u=>{if("eager"===this.urlUpdateStrategy){if(!u.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.setBrowserUrl(b,u)}this.browserUrlTree=u.urlAfterRedirects}const f=new mv(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);t.next(f)}));if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:D,restoredState:U,extras:se}=n,De=new lp(f,this.serializeUrl(b),D,U);t.next(De);const rt=wp(b,this.rootComponentType).snapshot;return(0,ke.of)(Object.assign(Object.assign({},n),{targetSnapshot:rt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},se),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=n.rawUrl,n.resolve(null),Ea.E}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.beforePreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,It.b)(n=>{const i=new _v(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot);this.triggerEvent(i)}),(0,et.U)(n=>Object.assign(Object.assign({},n),{guards:G_(n.targetSnapshot,n.currentSnapshot,this.rootContexts)})),function W_(o,a){return(0,Gi.zg)(e=>{const{targetSnapshot:t,currentSnapshot:s,guards:{canActivateChecks:c,canDeactivateChecks:l}}=e;return 0===l.length&&0===c.length?(0,ke.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function $_(o,a,e,t){return(0,xi.D)(o).pipe((0,Gi.zg)(s=>function J_(o,a,e,t,s){const c=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!c||0===c.length)return(0,ke.of)(!0);const l=c.map(n=>{const i=Al(n,a,s);let r;if(function V_(o){return o&&Zr(o.canDeactivate)}(i))r=ir(i.canDeactivate(o,a,e,t));else{if(!Zr(i))throw new Error("Invalid CanDeactivate guard");r=ir(i(o,a,e,t))}return r.pipe((0,Bs.P)())});return(0,ke.of)(l).pipe(Gs())}(s.component,s.route,e,a,t)),(0,Bs.P)(s=>!0!==s,!0))}(l,t,s,o).pipe((0,Gi.zg)(n=>n&&function P_(o){return"boolean"==typeof o}(n)?function Q_(o,a,e,t){return(0,xi.D)(a).pipe((0,Vn.b)(s=>os(function Qv(o,a){return null!==o&&a&&a(new bv(o)),(0,ke.of)(!0)}(s.route.parent,t),function Y_(o,a){return null!==o&&a&&a(new Cv(o)),(0,ke.of)(!0)}(s.route,t),function cE(o,a,e){const t=a[a.length-1],c=a.slice(0,a.length-1).reverse().map(l=>function Wv(o){const a=o.routeConfig?o.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:o,guards:a}:null}(l)).filter(l=>null!==l).map(l=>As(()=>{const n=l.guards.map(i=>{const r=Al(i,l.node,e);let d;if(function I_(o){return o&&Zr(o.canActivateChild)}(r))d=ir(r.canActivateChild(t,o));else{if(!Zr(r))throw new Error("Invalid CanActivateChild guard");d=ir(r(t,o))}return d.pipe((0,Bs.P)())});return(0,ke.of)(n).pipe(Gs())}));return(0,ke.of)(c).pipe(Gs())}(o,s.path,e),function Yv(o,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,ke.of)(!0);const s=t.map(c=>As(()=>{const l=Al(c,a,e);let n;if(function k_(o){return o&&Zr(o.canActivate)}(l))n=ir(l.canActivate(a,o));else{if(!Zr(l))throw new Error("Invalid CanActivate guard");n=ir(l(a,o))}return n.pipe((0,Bs.P)())}));return(0,ke.of)(s).pipe(Gs())}(o,s.route,e))),(0,Bs.P)(s=>!0!==s,!0))}(t,c,o,a):(0,ke.of)(n)),(0,et.U)(n=>Object.assign(Object.assign({},e),{guardsResult:n})))})}(this.ngModule.injector,n=>this.triggerEvent(n)),(0,It.b)(n=>{if(wr(n.guardsResult)){const r=pp(`Redirecting to "${this.serializeUrl(n.guardsResult)}"`);throw r.url=n.guardsResult,r}const i=new dp(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(n.urlAfterRedirects),n.targetSnapshot,!!n.guardsResult);this.triggerEvent(i)}),(0,mt.h)(n=>!!n.guardsResult||(this.restoreHistory(n),this.cancelNavigationTransition(n,""),!1)),X_(n=>{if(n.guards.canActivateChecks.length)return(0,ke.of)(n).pipe((0,It.b)(i=>{const r=new up(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}),(0,pi.w)(i=>{let r=!1;return(0,ke.of)(i).pipe(function eA(o,a){return(0,Gi.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:s}}=e;if(!s.length)return(0,ke.of)(e);let c=0;return(0,xi.D)(s).pipe((0,Vn.b)(l=>function Fp(o,a,e,t){return function K_(o,a,e,t){const s=Lp(o);if(0===s.length)return(0,ke.of)({});const c={};return(0,xi.D)(s).pipe((0,Gi.zg)(l=>function Z_(o,a,e,t){const s=Al(o,a,t);return ir(s.resolve?s.resolve(a,e):s(a,e))}(o[l],a,e,t).pipe((0,It.b)(n=>{c[l]=n}))),ld(1),(0,Gi.zg)(()=>Lp(c).length===s.length?(0,ke.of)(c):Ea.E))}(o._resolve,o,a,t).pipe((0,et.U)(c=>(o._resolvedData=c,o.data=Object.assign(Object.assign({},o.data),vp(o,e).resolve),null)))}(l.route,t,o,a)),(0,It.b)(()=>c++),ld(1),(0,Gi.zg)(l=>c===s.length?(0,ke.of)(e):Ea.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,It.b)({next:()=>r=!0,complete:()=>{r||(this.restoreHistory(i),this.cancelNavigationTransition(i,"At least one route resolver didn't emit any value."))}}))}),(0,It.b)(i=>{const r=new p_(i.id,this.serializeUrl(i.extractedUrl),this.serializeUrl(i.urlAfterRedirects),i.targetSnapshot);this.triggerEvent(r)}))}),X_(n=>{const{targetSnapshot:i,id:r,extractedUrl:d,rawUrl:u,extras:{skipLocationChange:f,replaceUrl:b}}=n;return this.hooks.afterPreactivation(i,{navigationId:r,appliedUrlTree:d,rawUrlTree:u,skipLocationChange:!!f,replaceUrl:!!b})}),(0,et.U)(n=>{const i=function rr(o,a,e){const t=hl(o,a._root,e?e._root:void 0);return new yp(t,a)}(this.routeReuseStrategy,n.targetSnapshot,n.currentRouterState);return Object.assign(Object.assign({},n),{targetRouterState:i})}),(0,It.b)(n=>{this.currentUrlTree=n.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(n.urlAfterRedirects,n.rawUrl),this.routerState=n.targetRouterState,"deferred"===this.urlUpdateStrategy&&(n.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,n),this.browserUrlTree=n.urlAfterRedirects)}),((o,a,e)=>(0,et.U)(t=>(new Ov(a,t.targetRouterState,t.currentRouterState,e).activate(o),t)))(this.rootContexts,this.routeReuseStrategy,n=>this.triggerEvent(n)),(0,It.b)({next(){c=!0},complete(){c=!0}}),Zc(()=>{var n;c||l||this.cancelNavigationTransition(s,`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`),(null===(n=this.currentNavigation)||void 0===n?void 0:n.id)===s.id&&(this.currentNavigation=null)}),(0,zi.K)(n=>{if(l=!0,function cl(o){return o&&o[wv]}(n)){const i=wr(n.url);i||(this.navigated=!0,this.restoreHistory(s,!0));const r=new cp(s.id,this.serializeUrl(s.extractedUrl),n.message);t.next(r),i?setTimeout(()=>{const d=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),u={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Rd(s.source)};this.scheduleNavigation(d,"imperative",null,u,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const i=new gv(s.id,this.serializeUrl(s.extractedUrl),n);t.next(i);try{s.resolve(this.errorHandler(n))}catch(r){s.reject(r)}}return Ea.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var s;const c={replaceUrl:!0},l=(null===(s=e.state)||void 0===s?void 0:s.navigationId)?e.state:null;if(l){const i=Object.assign({},l);delete i.navigationId,delete i.\u0275routerPageId,0!==Object.keys(i).length&&(c.state=i)}const n=this.parseUrl(e.url);this.scheduleNavigation(n,t,l,c)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Fa(e),this.config=e.map(O_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:s,queryParams:c,fragment:l,queryParamsHandling:n,preserveFragment:i}=t,r=s||this.routerState.root,d=i?this.currentUrlTree.fragment:l;let u=null;switch(n){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),c);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=c||null}return null!==u&&(u=this.removeEmptyProps(u)),function Vv(o,a,e,t,s){if(0===e.length)return zs(a.root,a.root,a,t,s);const c=function Bv(o){if("string"==typeof o[0]&&1===o.length&&"/"===o[0])return new S_(!0,0,o);let a=0,e=!1;const t=o.reduce((s,c,l)=>{if("object"==typeof c&&null!=c){if(c.outlets){const n={};return fi(c.outlets,(i,r)=>{n[r]="string"==typeof i?i.split("/"):i}),[...s,{outlets:n}]}if(c.segmentPath)return[...s,c.segmentPath]}return"string"!=typeof c?[...s,c]:0===l?(c.split("/").forEach((n,i)=>{0==i&&"."===n||(0==i&&""===n?e=!0:".."===n?a++:""!=n&&s.push(n))}),s):[...s,c]},[]);return new S_(e,a,t)}(e);if(c.toRoot())return zs(a.root,new Ct([],{}),a,t,s);const l=function M_(o,a,e){if(o.isAbsolute)return new wd(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const c=e.snapshot._urlSegment;return new wd(c,c===a.root,0)}const t=yd(o.commands[0])?0:1;return function Tp(o,a,e){let t=o,s=a,c=e;for(;c>s;){if(c-=s,t=t.parent,!t)throw new Error("Invalid number of '../'");s=t.segments.length}return new wd(t,!1,s-c)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,o.numberOfDoubleDots)}(c,a,o),n=l.processChildren?vd(l.segmentGroup,l.index,c.commands):D_(l.segmentGroup,l.index,c.commands);return zs(l.segmentGroup,n,a,t,s)}(r,this.currentUrlTree,e,u,null!=d?d:null)}navigateByUrl(e,t={skipLocationChange:!1}){const s=wr(e)?e:this.parseUrl(e),c=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(c,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function en(o){for(let a=0;a{const c=e[s];return null!=c&&(t[s]=c),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Os(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,s,c,l){var n,i,r;if(this.disposed)return Promise.resolve(!1);const d=this.transitions.value,u=Rd(t)&&d&&!Rd(d.source),f=d.rawUrl.toString()===e.toString(),b=d.id===(null===(n=this.currentNavigation)||void 0===n?void 0:n.id);if(u&&f&&b)return Promise.resolve(!0);let U,se,De;l?(U=l.resolve,se=l.reject,De=l.promise):De=new Promise((vt,jn)=>{U=vt,se=jn});const rt=++this.navigationId;let Qe;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),Qe=s&&s.\u0275routerPageId?s.\u0275routerPageId:c.replaceUrl||c.skipLocationChange?null!==(i=this.browserPageId)&&void 0!==i?i:0:(null!==(r=this.browserPageId)&&void 0!==r?r:0)+1):Qe=0,this.setTransition({id:rt,targetPageId:Qe,source:t,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:c,resolve:U,reject:se,promise:De,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),De.catch(vt=>Promise.reject(vt))}setBrowserUrl(e,t){const s=this.urlSerializer.serialize(e),c=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(s)||t.extras.replaceUrl?this.location.replaceState(s,"",c):this.location.go(s,"",c)}restoreHistory(e,t=!1){var s,c;if("computed"===this.canceledNavigationResolution){const l=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===l?this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl)&&0===l&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(l)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const s=new cp(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return o.\u0275fac=function(e){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function Rd(o){return"imperative"!==o}class Up{}class qp{preload(a,e){return(0,ke.of)(null)}}let Wp=(()=>{class o{constructor(e,t,s,c){this.router=e,this.injector=s,this.preloadingStrategy=c,this.loader=new tA(s,t,i=>e.triggerEvent(new cd(i)),i=>e.triggerEvent(new f_(i)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,mt.h)(e=>e instanceof Os),(0,Vn.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(g.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const s=[];for(const c of t)if(c.loadChildren&&!c.canLoad&&c._loadedConfig){const l=c._loadedConfig;s.push(this.processRoutes(l.module,l.routes))}else c.loadChildren&&!c.canLoad?s.push(this.preloadConfig(e,c)):c.children&&s.push(this.processRoutes(e,c.children));return(0,xi.D)(s).pipe((0,_c.J)(),(0,et.U)(c=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,ke.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,Gi.zg)(c=>(t._loadedConfig=c,this.processRoutes(c.module,c.routes)))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(ki),g.LFG(g.Sil),g.LFG(g.zs3),g.LFG(Up))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),$p=(()=>{class o{constructor(e,t,s={}){this.router=e,this.viewportScroller=t,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof lp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Os&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof m_&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new m_(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return o.\u0275fac=function(e){g.$Z()},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const vr=new g.OlP("ROUTER_CONFIGURATION"),bn=new g.OlP("ROUTER_FORROOT_GUARD"),oA=[T.Ye,{provide:y_,useClass:Va},{provide:ki,useFactory:function dA(o,a,e,t,s,c,l={},n,i){const r=new ki(null,o,a,e,t,s,Av(c));return n&&(r.urlHandlingStrategy=n),i&&(r.routeReuseStrategy=i),function CE(o,a){o.errorHandler&&(a.errorHandler=o.errorHandler),o.malformedUriErrorHandler&&(a.malformedUriErrorHandler=o.malformedUriErrorHandler),o.onSameUrlNavigation&&(a.onSameUrlNavigation=o.onSameUrlNavigation),o.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=o.paramsInheritanceStrategy),o.relativeLinkResolution&&(a.relativeLinkResolution=o.relativeLinkResolution),o.urlUpdateStrategy&&(a.urlUpdateStrategy=o.urlUpdateStrategy),o.canceledNavigationResolution&&(a.canceledNavigationResolution=o.canceledNavigationResolution)}(l,r),l.enableTracing&&r.events.subscribe(d=>{var u,f;null===(u=console.group)||void 0===u||u.call(console,`Router Event: ${d.constructor.name}`),console.log(d.toString()),console.log(d),null===(f=console.groupEnd)||void 0===f||f.call(console)}),r},deps:[y_,bl,T.Ye,g.zs3,g.Sil,ib,vr,[class mE{},new g.FiY],[class eb{},new g.FiY]]},bl,{provide:Kr,useFactory:function ab(o){return o.routerState.root},deps:[ki]},Wp,qp,class sA{preload(a,e){return e().pipe((0,zi.K)(()=>(0,ke.of)(null)))}},{provide:vr,useValue:{enableTracing:!1}}];function bE(){return new g.PXZ("Router",ki)}let Qp=(()=>{class o{constructor(e,t){}static forRoot(e,t){return{ngModule:o,providers:[oA,Yp(e),{provide:bn,useFactory:cA,deps:[[ki,new g.FiY,new g.tp0]]},{provide:vr,useValue:t||{}},{provide:T.S$,useFactory:lA,deps:[T.lw,[new g.tBr(T.mr),new g.FiY],vr]},{provide:$p,useFactory:rb,deps:[ki,T.EM,vr]},{provide:Up,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:qp},{provide:g.PXZ,multi:!0,useFactory:bE},[kd,{provide:g.ip1,multi:!0,useFactory:uA,deps:[kd]},{provide:Jp,useFactory:hA,deps:[kd]},{provide:g.tb,multi:!0,useExisting:Jp}]]}}static forChild(e){return{ngModule:o,providers:[Yp(e)]}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(bn,8),g.LFG(ki,8))},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();function rb(o,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new $p(o,a,e)}function lA(o,a,e={}){return e.useHash?new T.Do(o,a):new T.b0(o,a)}function cA(o){return"guarded"}function Yp(o){return[{provide:g.deG,multi:!0,useValue:o},{provide:ib,multi:!0,useValue:o}]}let kd=(()=>{class o{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const s=new Promise(n=>t=n),c=this.injector.get(ki),l=this.injector.get(vr);return"disabled"===l.initialNavigation?(c.setUpLocationChangeListener(),t(!0)):"enabled"===l.initialNavigation||"enabledBlocking"===l.initialNavigation?(c.hooks.afterPreactivation=()=>this.initNavigation?(0,ke.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),c.initialNavigation()):t(!0),s})}bootstrapListener(e){const t=this.injector.get(vr),s=this.injector.get(Wp),c=this.injector.get($p),l=this.injector.get(ki),n=this.injector.get(g.z2F);e===n.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&l.initialNavigation(),s.setUpPreloading(),c.init(),l.resetRootComponentType(n.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();function uA(o){return o.appInitializer.bind(o)}function hA(o){return o.bootstrapListener.bind(o)}const Jp=new g.OlP("Router Initializer");var Kp=E(6114);let Zp=(()=>{class o{constructor(e,t,s,c,l){this.injector=e,this.store=t,this.dialog=s,this.route=c,this.oauthService=l,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(ki),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(n=>{n.idpFilter&&(this.filterShortname=String(n.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),s=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(s.prompt="consent"),sessionStorage.getItem("mfa_route")&&(s.acr_values="https://refeds.org/profile/mfa",s.prompt="login",s.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:s}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let s=null;return e.forEach(c=>{const l=c.split("=");"idpFilter"===l[0]&&t[l[1]]&&(this.filterShortname=l[1],s=t[l[1]])}),t.default&&!s?(this.filterShortname="default",t.default):s}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,mt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const s=sessionStorage.getItem("auth:queryParams");let c=[];s&&(c=s.split("&"));const l={};return c.forEach(n=>{const i=n.split("=");l[i[0]]=i[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),l.idpFilter&&(this.filterShortname=String(l.idpFilter)),this.router.navigate([t],{queryParams:l,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,mt.h)(e=>e instanceof Os)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const s of t)if(e.startsWith(s))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(s=>!!s||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((c,l)=>l("Invalid path"))))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.zs3),g.LFG(Hi),g.LFG(Ts),g.LFG(Kr),g.LFG(Kp.Ct))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),Xp=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.storeService=t,this.authResolver=s,this.authzService=c,this.dialog=l,this.router=n,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Vs();this.dialog.open($y,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const s of e){const c=s.split("=");t[c[0]]=c[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(Hi),g.LFG(Ff),g.LFG(Wi),g.LFG(Ts),g.LFG(ki))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),fA=(()=>{class o{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Ne),g.LFG(xn))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),gA=(()=>{class o{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.TgZ(6,"div",2),g.TgZ(7,"div",3),g.TgZ(8,"button",4),g.NdJ("click",function(){return t.close()}),g._uU(9),g.ALo(10,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(1),g.Oqu(g.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),g.xp6(3),g.hij(" ",g.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),g.xp6(5),g.hij(" ",g.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Ic,Dh,gm,zc],pipes:[Jr],styles:[""]}),o})(),mA=(()=>{class o{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ob=(()=>{class o{constructor(e){this.translate=e,this.addNotification=new g.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,s,c,l){this.addNotification.emit({type:"error",error:t,description:s,title:e,actionText:void 0===c&&void 0!==s?this.getDefaultActionMessage():c,delay:this.defaultErrorDelayMs,icon:"error_outline",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,s,c){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===s&&void 0!==t?this.getDefaultActionMessage():s,delay:this.defaultSuccessDelayMs,icon:"done",action:c,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(_n))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ef=(()=>{class o{constructor(e,t,s,c,l,n){this.authService=e,this.apiRequestConfiguration=t,this.notificator=s,this.store=c,this.dialog=l,this.initAuthService=n}intercept(e,t){const s=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==s&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const n=Vs();n.width="450px",this.dialogRefSessionExpiration=this.dialog.open(gA,n),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{Zc(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const c=this.apiRequestConfiguration.shouldHandleError(),l="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,It.b)(n=>{n instanceof y.Zn&&l&&this.initAuthService.loadPrincipal()},n=>{const i=this.formatErrors(n,e);return void 0===i?(0,al._)(n):c?void this.notificator.showRPCError(i):(0,al._)(i)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let s;console.error(e);const c=e.error;if(c.errorId&&(s=c),void 0!==s)return s.urlWithParams=t.urlWithParams,s.call=t.url,s.payload=t.body,s}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Zp),g.LFG(mA),g.LFG(ob),g.LFG(Hi),g.LFG(Ts),g.LFG(Xp))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})(),_A=(()=>{class o{constructor(e,t,s,c){this.http=e,this.notificator=t,this.authService=s,this.storeService=c}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new y.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.get(s,{headers:this.getHeaders()}).pipe((0,zi.K)(c=>this.formatErrors(c,s,null,t)))}put(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);return this.http.put(c,l,{headers:this.getHeaders()}).pipe((0,zi.K)(n=>this.formatErrors(n,c,l,s)))}post(e,t={},s=!0){const c=`${this.getApiUrl()}${e}`,l=JSON.stringify(t);let n=this.getHeaders();return n=n.set("Content-Type","application/json; charset=utf-8"),this.http.post(c,l,{headers:n}).pipe((0,zi.K)(i=>this.formatErrors(i,c,l,s)))}delete(e,t=!0){const s=`${this.getApiUrl()}${e}`;return this.http.delete(s,{headers:this.getHeaders()}).pipe((0,zi.K)(c=>this.formatErrors(c,s,null,t)))}formatErrors(e,t,s,c){const l=e.error;return l.call=t,l.payload=s,c&&this.notificator.showRPCError(e.error),(0,al._)(l)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(ob),g.LFG(Zp),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),lb=(()=>{class o{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),s=navigator.languages.map(n=>n.split("-")[0]),c=location.search.substring(1).split("&");let l=null;for(const n of c){const i=n.split("=");"lang"===i[0]&&(l=i[1])}return l&&t.includes(l)?l:e&&t.includes(e)?e:s&&t.includes(s[0])?s[0]:"en"}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Kr),g.LFG(Hi))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const wE=["*",[["mat-toolbar-row"]]],vE=["*","mat-toolbar-row"],AE=Aa(class{constructor(o){this._elementRef=o}});let xE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),o})(),bA=(()=>{class o extends AE{constructor(e,t,s){super(e),this._platform=t,this._document=s}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-toolbar"]],contentQueries:function(e,t,s){if(1&e&&g.Suo(s,xE,5),2&e){let c;g.iGM(c=g.CRH())&&(t._toolbarRows=c)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&g.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[g.qOj],ngContentSelectors:vE,decls:2,vars:0,template:function(e,t){1&e&&(g.F$t(wE),g.Hsn(0),g.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),o})(),cb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})();function CA(o,a){1&o&&(g.TgZ(0,"div",10),g.TgZ(1,"span",11),g._uU(2," ~ \u{1f5f2}\xa0 "),g.qZA(),g.TgZ(3,"span",12),g._uU(4," DEVEL "),g.qZA(),g.TgZ(5,"span",11),g._uU(6," \xa0\u{1f5f2} ~ "),g.qZA(),g.qZA())}const db=function(o){return{background:o}},Ar=function(o){return{color:o}};let ub=(()=>{class o{constructor(e,t,s,c){this.storeService=e,this.sanitizer=t,this.preferredLangService=s,this.translateService=c,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.label=this.storeService.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`),this.isDevel=this.storeService.get("is_devel")}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}changeLanguage(){this.translateService.use("en"===this.translateService.currentLang?"cs":"en")}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn),g.Y36(lb),g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-header"]],decls:15,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],[1,"ml-3","mt-auto","mb-auto",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-language",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(g.TgZ(0,"mat-toolbar",0),g.TgZ(1,"div",1),g._UZ(2,"a",2),g.TgZ(3,"p",3),g._uU(4),g.qZA(),g.qZA(),g.YNc(5,CA,7,0,"div",4),g.TgZ(6,"div",5),g.TgZ(7,"button",6),g.TgZ(8,"mat-icon",7),g._uU(9," language "),g.qZA(),g.qZA(),g.TgZ(10,"mat-menu",null,8),g.TgZ(12,"button",9),g.NdJ("click",function(){return t.changeLanguage()}),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(11);g.Q6J("ngStyle",g.VKq(11,db,t.bgColor)),g.xp6(2),g.Q6J("innerHTML",t.logo,g.oJD),g.xp6(1),g.Q6J("ngStyle",g.VKq(13,Ar,t.textColor)),g.xp6(1),g.Oqu(t.label),g.xp6(1),g.Q6J("ngIf",t.isDevel),g.xp6(1),g.Q6J("ngStyle",g.VKq(15,Ar,t.textColor)),g.xp6(1),g.Q6J("matMenuTriggerFor",s),g.xp6(1),g.Q6J("ngStyle",g.VKq(17,Ar,t.iconColor)),g.xp6(5),g.hij(" ",g.lcZ(14,9,"HEADER.LANGUAGE")," ")}},directives:[bA,T.PC,T.O5,zc,n_,np,Nw,Kc],pipes:[Jr],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-language[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}"]}),o})(),Id=(()=>{class o{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.Qsj),g.Y36(g.SBq))},o.\u0275dir=g.lG2({type:o}),o})(),xr=(()=>{class o extends Id{}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,features:[g.qOj]}),o})();const qi=new g.OlP("NgValueAccessor"),Bd={provide:qi,useExisting:(0,g.Gpc)(()=>Od),multi:!0},EE=new g.OlP("CompositionEventMode");let Od=(()=>{class o extends Id{constructor(e,t,s){super(e,t),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function TE(){const o=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(o.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.Qsj),g.Y36(g.SBq),g.Y36(EE,8))},o.\u0275dir=g.lG2({type:o,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(e,t){1&e&&g.NdJ("input",function(c){return t._handleInput(c.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(c){return t._compositionEnd(c.target.value)})},features:[g._Bn([Bd]),g.qOj]}),o})();function ja(o){return null==o||0===o.length}function rf(o){return null!=o&&"number"==typeof o.length}const ci=new g.OlP("NgValidators"),Xr=new g.OlP("NgAsyncValidators"),yA=/^(?=.{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 Ml{static min(a){return function af(o){return a=>{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ja(a.value)||ja(o))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>o?{max:{max:o,actual:a.value}}:null}}(a)}static required(a){return lf(a)}static requiredTrue(a){return function hb(o){return!0===o.value?null:{required:!0}}(a)}static email(a){return function pb(o){return ja(o.value)||yA.test(o.value)?null:{email:!0}}(a)}static minLength(a){return function cf(o){return a=>ja(a.value)||!rf(a.value)?null:a.value.lengthrf(a.value)&&a.value.length>o?{maxlength:{requiredLength:o,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wA(o){if(!o)return Dl;let a,e;return"string"==typeof o?(e="","^"!==o.charAt(0)&&(e+="^"),e+=o,"$"!==o.charAt(o.length-1)&&(e+="$"),a=new RegExp(e)):(e=o.toString(),a=o),t=>{if(ja(t.value))return null;const s=t.value;return a.test(s)?null:{pattern:{requiredPattern:e,actualValue:s}}}}(a)}static nullValidator(a){return null}static compose(a){return _b(a)}static composeAsync(a){return bb(a)}}function lf(o){return ja(o.value)?{required:!0}:null}function Dl(o){return null}function Pl(o){return null!=o}function fb(o){const a=(0,g.QGY)(o)?(0,xi.D)(o):o;return(0,g.CqO)(a),a}function gb(o){let a={};return o.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function mb(o,a){return a.map(e=>e(o))}function AA(o){return o.map(a=>function vA(o){return!o.validate}(a)?a:e=>a.validate(e))}function _b(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return gb(mb(e,a))}}function df(o){return null!=o?_b(AA(o)):null}function bb(o){if(!o)return null;const a=o.filter(Pl);return 0==a.length?null:function(e){return Es(mb(e,a).map(fb)).pipe((0,et.U)(gb))}}function uf(o){return null!=o?bb(AA(o)):null}function Cb(o,a){return null===o?[a]:Array.isArray(o)?[...o,a]:[o,a]}function yb(o){return o._rawValidators}function wb(o){return o._rawAsyncValidators}function hf(o){return o?Array.isArray(o)?o:[o]:[]}function pf(o,a){return Array.isArray(o)?o.includes(a):o===a}function xA(o,a){const e=hf(a);return hf(o).forEach(s=>{pf(e,s)||e.push(s)}),e}function TA(o,a){return hf(a).filter(e=>!pf(o,e))}class EA{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(a){this._rawValidators=a||[],this._composedValidatorFn=df(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=uf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Tr extends EA{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ii extends EA{get formDirective(){return null}get path(){return null}}class SA{constructor(a){this._cd=a}is(a){var e,t,s;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(s=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===s?void 0:s[a])}}let vb=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Tr,2))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[g.qOj]}),o})(),h=(()=>{class o extends SA{constructor(e){super(e)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&g.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[g.qOj]}),o})();function Re(o,a){return[...a.path,o]}function ge(o,a){Vi(o,a),a.valueAccessor.writeValue(o.value),function ff(o,a){a.valueAccessor.registerOnChange(e=>{o._pendingValue=e,o._pendingChange=!0,o._pendingDirty=!0,"change"===o.updateOn&&Fd(o,a)})}(o,a),function mf(o,a){const e=(t,s)=>{a.valueAccessor.writeValue(t),s&&a.viewToModelUpdate(t)};o.registerOnChange(e),a._registerOnDestroy(()=>{o._unregisterOnChange(e)})}(o,a),function gf(o,a){a.valueAccessor.registerOnTouched(()=>{o._pendingTouched=!0,"blur"===o.updateOn&&o._pendingChange&&Fd(o,a),"submit"!==o.updateOn&&o.markAsTouched()})}(o,a),function Ht(o,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};o.registerOnDisabledChange(e),a._registerOnDestroy(()=>{o._unregisterOnDisabledChange(e)})}}(o,a)}function Le(o,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),ar(o,a),o&&(a._invokeOnDestroyCallbacks(),o._registerOnCollectionChange(()=>{}))}function ot(o,a){o.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Vi(o,a){const e=yb(o);null!==a.validator?o.setValidators(Cb(e,a.validator)):"function"==typeof e&&o.setValidators([e]);const t=wb(o);null!==a.asyncValidator?o.setAsyncValidators(Cb(t,a.asyncValidator)):"function"==typeof t&&o.setAsyncValidators([t]);const s=()=>o.updateValueAndValidity();ot(a._rawValidators,s),ot(a._rawAsyncValidators,s)}function ar(o,a){let e=!1;if(null!==o){if(null!==a.validator){const s=yb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.validator);c.length!==s.length&&(e=!0,o.setValidators(c))}}if(null!==a.asyncValidator){const s=wb(o);if(Array.isArray(s)&&s.length>0){const c=s.filter(l=>l!==a.asyncValidator);c.length!==s.length&&(e=!0,o.setAsyncValidators(c))}}}const t=()=>{};return ot(a._rawValidators,t),ot(a._rawAsyncValidators,t),e}function Fd(o,a){o._pendingDirty&&o.markAsDirty(),o.setValue(o._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(o._pendingValue),o._pendingChange=!1}function Ld(o,a){Vi(o,a)}function Rl(o,a){if(!o.hasOwnProperty("model"))return!1;const e=o.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function SE(o,a){o._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function MA(o,a){if(!a)return null;let e,t,s;return Array.isArray(a),a.forEach(c=>{c.constructor===Od?e=c:function VM(o){return Object.getPrototypeOf(o.constructor)===xr}(c)?t=c:s=c}),s||t||e||null}function HA(o,a){const e=o.indexOf(a);e>-1&&o.splice(e,1)}const Cf="VALID",xb="INVALID",jd="PENDING",yf="DISABLED";function PA(o){return(Tb(o)?o.validators:o)||null}function ME(o){return Array.isArray(o)?df(o):o||null}function RA(o,a){return(Tb(a)?a.asyncValidators:o)||null}function HE(o){return Array.isArray(o)?uf(o):o||null}function Tb(o){return null!=o&&!Array.isArray(o)&&"object"==typeof o}const kA=o=>o instanceof wf,Eb=o=>o instanceof Sb,DE=o=>o instanceof IE;function PE(o){return kA(o)?o.value:o.getRawValue()}function RE(o,a){const e=Eb(o),t=o.controls;if(!(e?Object.keys(t):t).length)throw new g.vHH(1e3,"");if(!t[a])throw new g.vHH(1001,"")}function kE(o,a){Eb(o),o._forEachChild((t,s)=>{if(void 0===a[s])throw new g.vHH(1002,"")})}class IA{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=ME(this._rawValidators),this._composedAsyncValidatorFn=HE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Cf}get invalid(){return this.status===xb}get pending(){return this.status==jd}get disabled(){return this.status===yf}get enabled(){return this.status!==yf}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=ME(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=HE(a)}addValidators(a){this.setValidators(xA(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(xA(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(TA(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(TA(a,this._rawAsyncValidators))}hasValidator(a){return pf(this._rawValidators,a)}hasAsyncValidator(a){return pf(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=jd,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=yf,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Cf,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Cf||this.status===jd)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?yf:Cf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=jd,this._hasOwnPendingAsyncValidator=!0;const e=fb(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){return function BM(o,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=o;return a.forEach(s=>{t=Eb(t)?t.controls.hasOwnProperty(s)?t.controls[s]:null:DE(t)&&t.at(s)||null}),t}(this,a,".")}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new g.vpe,this.statusChanges=new g.vpe}_calculateStatus(){return this._allControlsDisabled()?yf:this.errors?xb:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jd)?jd:this._anyControlsHaveStatus(xb)?xb:Cf}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Tb(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class wf extends IA{constructor(a=null,e,t){super(PA(e),RA(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Tb(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){HA(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){HA(this._onDisabledChange,a)}_forEachChild(a){}_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(a){this._isBoxedValue(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}}class Sb extends IA{constructor(a,e,t){super(PA(e),RA(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){kE(this,a),Object.keys(a).forEach(t=>{RE(this,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=PE(e),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((s,c)=>{t=e(t,s,c)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class IE extends IA{constructor(a,e,t){super(PA(e),RA(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[a]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){kE(this,a),a.forEach((t,s)=>{RE(this,s),this.at(s).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,s)=>{this.at(s)&&this.at(s).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,s)=>{t.reset(a[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>PE(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}}const OM={provide:Ii,useExisting:(0,g.Gpc)(()=>Af)},vf=(()=>Promise.resolve(null))();let Af=(()=>{class o extends Ii{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new g.vpe,this.form=new Sb({},df(e),uf(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){vf.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),ge(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path),s=new Sb({});Ld(s,e),t.registerControl(e.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){vf.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){vf.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,SE(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([OM]),g.qOj]}),o})();const LM={provide:Tr,useExisting:(0,g.Gpc)(()=>VA)},OE=(()=>Promise.resolve(null))();let VA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._changeDetectorRef=l,this.control=new wf,this._registered=!1,this.update=new g.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Rl(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){ge(this.control,this),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(e){OE.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,s=""===t||t&&"false"!==t;OE.then(()=>{var c;s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),null===(c=this._changeDetectorRef)||void 0===c||c.markForCheck()})}_getPath(e){return this._parent?Re(e,this._parent):[e]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,9),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(qi,10),g.Y36(g.sBO,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g._Bn([LM]),g.qOj,g.TTD]}),o})(),LE=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})();const BA=new g.OlP("NgModelWithFormControlWarning"),WM={provide:Ii,useExisting:(0,g.Gpc)(()=>kl)};let kl=(()=>{class o extends Ii{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new g.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ar(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return ge(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Le(e.control||null,e,!1),HA(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,SE(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,s=this.form.get(e.path);t!==s&&(Le(t||null,e),kA(s)&&(ge(s,e),e.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Ld(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function _f(o,a){return ar(o,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Vi(this.form,this),this._oldForm&&ar(this._oldForm,this)}_checkFormPresent(){}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(ci,10),g.Y36(Xr,10))},o.\u0275dir=g.lG2({type:o,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&g.NdJ("submit",function(c){return t.onSubmit(c)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[g._Bn([WM]),g.qOj,g.TTD]}),o})();const YM={provide:Tr,useExisting:(0,g.Gpc)(()=>LA)};let LA=(()=>{class o extends Tr{constructor(e,t,s,c,l){super(),this._ngModelWarningConfig=l,this._added=!1,this.update=new g.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(s),this.valueAccessor=MA(0,c)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Rl(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Re(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return o._ngModelWarningSentOnce=!1,o.\u0275fac=function(e){return new(e||o)(g.Y36(Ii,13),g.Y36(ci,10),g.Y36(Xr,10),g.Y36(qi,10),g.Y36(BA,8))},o.\u0275dir=g.lG2({type:o,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[g._Bn([YM]),g.qOj,g.TTD]}),o})(),Il=(()=>{class o{constructor(){this._validator=Dl}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Dl,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275dir=g.lG2({type:o,features:[g.TTD]}),o})();const aH={provide:ci,useExisting:(0,g.Gpc)(()=>xf),multi:!0};let xf=(()=>{class o extends Il{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function iH(o){return null!=o&&!1!==o&&"false"!=`${o}`}(e),this.createValidator=e=>lf}enabled(e){return e}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275dir=g.lG2({type:o,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&g.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[g._Bn([aH]),g.qOj]}),o})(),eS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[LE]]}),o})(),GA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),Nd=(()=>{class o{static withConfig(e){return{ngModule:o,providers:[{provide:BA,useValue:e.warnOnNgModelWithFormControl}]}}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[eS]}),o})(),hH=(()=>{class o{group(e,t=null){const s=this._reduceControls(e);let n,c=null,l=null;return null!=t&&(function uH(o){return void 0!==o.asyncValidators||void 0!==o.validators||void 0!==o.updateOn}(t)?(c=null!=t.validators?t.validators:null,l=null!=t.asyncValidators?t.asyncValidators:null,n=null!=t.updateOn?t.updateOn:void 0):(c=null!=t.validator?t.validator:null,l=null!=t.asyncValidator?t.asyncValidator:null)),new Sb(s,{asyncValidators:l,updateOn:n,validators:c})}control(e,t,s){return new wf(e,t,s)}array(e,t,s){const c=e.map(l=>this._createControl(l));return new IE(c,t,s)}_reduceControls(e){const t={};return Object.keys(e).forEach(s=>{t[s]=this._createControl(e[s])}),t}_createControl(e){return kA(e)||Eb(e)||DE(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:Nd}),o})();const tS=dn({passive:!0});let pH=(()=>{class o{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Ea.E;const t=Lt(e),s=this._monitoredElements.get(t);if(s)return s.subject;const c=new He.xQ,l="cdk-text-field-autofilled",n=i=>{"cdk-text-field-autofill-start"!==i.animationName||t.classList.contains(l)?"cdk-text-field-autofill-end"===i.animationName&&t.classList.contains(l)&&(t.classList.remove(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!1}))):(t.classList.add(l),this._ngZone.run(()=>c.next({target:i.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",n,tS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:c,unlisten:()=>{t.removeEventListener("animationstart",n,tS)}}),c}stopMonitoring(e){const t=Lt(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Je),g.LFG(g.R0b))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),iS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yi]]}),o})();const nS=new g.OlP("MAT_INPUT_VALUE_ACCESSOR"),fH=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let gH=0;const mH=My(class{constructor(o,a,e,t){this._defaultErrorStateMatcher=o,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let rS=(()=>{class o extends mH{constructor(e,t,s,c,l,n,i,r,d,u){super(n,c,l,s),this._elementRef=e,this._platform=t,this._autofillMonitor=r,this._formField=u,this._uid="mat-input-"+gH++,this.focused=!1,this.stateChanges=new He.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(D=>Rr().has(D));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=i||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&d.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",D=>{const U=D.target;!U.value&&0===U.selectionStart&&0===U.selectionEnd&&(U.setSelectionRange(1,1),U.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!u,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=it(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,s,c;return null!==(c=null!==(e=this._required)&&void 0!==e?e:null===(s=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===s?void 0:s.hasValidator(Ml.required))&&void 0!==c&&c}set required(e){this._required=it(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Rr().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=it(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const s=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(s!==this._previousPlaceholder){const c=this._elementRef.nativeElement;this._previousPlaceholder=s,s?c.setAttribute("placeholder",s):c.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){fH.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(Tr,10),g.Y36(Af,8),g.Y36(kl,8),g.Y36(Cs),g.Y36(nS,10),g.Y36(pH),g.Y36(g.R0b),g.Y36(Sm,8))},o.\u0275dir=g.lG2({type:o,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&g.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(g.Ikx("disabled",t.disabled)("required",t.required),g.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),g.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[g._Bn([{provide:Uc,useExisting:o}]),g.qOj,g.TTD]}),o})(),Mb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs],imports:[[iS,Cr,Ue],iS,Cr]}),o})();function _H(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function bH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function CH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}function yH(o,a){if(1&o&&(g.O4$(),g._UZ(0,"circle",4)),2&o){const e=g.oxw(),t=g.MAs(1);g.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),g.uIk("r",e._getCircleRadius())}}const AH=Aa(class{constructor(o){this._elementRef=o}},"primary"),aS=new g.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function xH(){return{diameter:100}}});class Na extends AH{constructor(a,e,t,s,c,l,n,i){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=zt.w.EMPTY,this.mode="determinate";const r=Na._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(t.head)||r.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===s&&!!c&&!c._forceAnimations,c&&(c.diameter&&(this.diameter=c.diameter),c.strokeWidth&&(this.strokeWidth=c.strokeWidth)),e.isBrowser&&e.SAFARI&&n&&l&&i&&(this._resizeSubscription=n.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>l.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=ln(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=ln(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,ln(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Gt(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Na._diameters;let s=t.get(a);if(!s||!s.has(e)){const c=this._document.createElement("style");c.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),c.textContent=this._getAnimationText(),a.appendChild(c),s||(s=new Set,t.set(a,s)),s.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Na._diameters=new WeakMap,Na.\u0275fac=function(a){return new(a||Na)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},Na.\u0275cmp=g.Xpm({type:Na,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(g.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[g.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,_H,1,11,"circle",2),g.YNc(3,bH,1,9,"circle",3),g.qZA()),2&a&&(g.Udp("width",e.diameter,"px")("height",e.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===e.mode),g.uIk("viewBox",e._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let sS=(()=>{class o extends Na{constructor(e,t,s,c,l,n,i,r){super(e,t,s,c,l,n,i,r),this.mode="indeterminate"}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(g.SBq),g.Y36(Je),g.Y36(T.K0,8),g.Y36(Zi,8),g.Y36(aS),g.Y36(g.sBO),g.Y36(la),g.Y36(g.R0b))},o.\u0275cmp=g.Xpm({type:o,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[g.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(g.O4$(),g.TgZ(0,"svg",0,1),g.YNc(2,CH,1,11,"circle",2),g.YNc(3,yH,1,9,"circle",3),g.qZA()),2&e&&(g.Udp("width",t.diameter,"px")("height",t.diameter,"px"),g.Q6J("ngSwitch","indeterminate"===t.mode),g.uIk("viewBox",t._getViewBox()),g.xp6(2),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),o})(),Tf=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue,T.ez],Ue]}),o})(),qA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[er,T.ez]]}),o})(),EH=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[],imports:[[T.ez,Cr,Ps,Nd,Mb,tl,Tf,er,qA]]}),o})();class SH{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const MH=(o,a,e,t=500)=>s=>xt(t).pipe((0,pi.w)(()=>(e.dontHandleErrorForNext(),o&&"No namespace"!==o?a.checkPasswordStrength(s.value,o):(0,ke.of)(null))),(0,et.U)(()=>null),(0,zi.K)(c=>{const l=c.error,n={backendError:l.message.substring(l.message.indexOf(":")+1)};return(0,ke.of)(n)}));function HH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," info "),g.qZA())}function DH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," warning "),g.qZA())}function PH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," dangerous "),g.qZA())}function RH(o,a){1&o&&(g.TgZ(0,"mat-icon",2),g._uU(1," check_circle "),g.qZA())}const kH=["*"];let WA=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:kH,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(g.F$t(),g.TgZ(0,"div",0),g.YNc(1,HH,2,0,"mat-icon",1),g.YNc(2,DH,2,0,"mat-icon",1),g.YNc(3,PH,2,0,"mat-icon",1),g.YNc(4,RH,2,0,"mat-icon",1),g.Hsn(5),g.qZA()),2&e&&(g.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","info"===t.alert_type),g.xp6(1),g.Q6J("ngIf","warn"===t.alert_type),g.xp6(1),g.Q6J("ngIf","error"===t.alert_type),g.xp6(1),g.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,np],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),o})();function IH(o,a){1&o&&g._UZ(0,"mat-spinner",12),2&o&&g.Q6J("diameter",18)}function VH(o,a){if(1&o&&(g.TgZ(0,"mat-icon",13),g._uU(1," error "),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function BH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function OH(o,a){if(1&o&&(g.TgZ(0,"mat-error",14),g._uU(1),g.qZA()),2&o){const e=g.oxw();g.Q6J("matTooltip",e.getErrorTooltip()),g.xp6(1),g.Oqu(e.getErrorTooltip())}}function FH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function LH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let jH=(()=>{class o{constructor(e,t,s){this.translator=e,this.usersManagerService=t,this.store=s,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new SH,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const s=e.userAttributes.find(c=>"preferredLanguage"===c.friendlyName);this.language=null!==(t=null==s?void 0:s.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n),g.Y36(Sn),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[g.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(g.TgZ(0,"div",0),g.TgZ(1,"mat-form-field",1),g._UZ(2,"input",2),g.ALo(3,"translate"),g.YNc(4,IH,1,1,"mat-spinner",3),g.TgZ(5,"mat-icon",4),g.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),g._uU(6),g.qZA(),g.YNc(7,VH,2,2,"mat-icon",5),g.YNc(8,BH,3,3,"mat-error",6),g.YNc(9,OH,2,2,"mat-error",7),g.qZA(),g.TgZ(10,"mat-form-field",8),g.TgZ(11,"mat-label"),g._uU(12),g.ALo(13,"translate"),g.qZA(),g._UZ(14,"input",9),g.TgZ(15,"mat-icon",4),g.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),g._uU(16),g.qZA(),g.YNc(17,FH,3,3,"mat-error",6),g.YNc(18,LH,3,3,"mat-error",6),g.qZA(),g.TgZ(19,"perun-web-apps-alert",10),g._UZ(20,"div",11),g.qZA(),g.qZA()),2&e&&(g.Q6J("formGroup",t.formGroup),g.xp6(1),g.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),g.xp6(1),g.s9C("placeholder",g.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),g.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),g.xp6(2),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),g.xp6(2),g.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),g.xp6(3),g.Oqu(g.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),g.xp6(2),g.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),g.xp6(2),g.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),g.xp6(1),g.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),g.xp6(2),g.Q6J("innerHTML",t.passwordRequirement,g.oJD))},directives:[h,kl,Mm,qm,rS,Od,vb,LA,xf,T.O5,sS,Fh,np,xm,Hs,WA],pipes:[Jr],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),o})();function NH(o,a){if(1&o&&g._UZ(0,"perun-web-apps-password-form",4),2&o){const e=g.oxw();g.Q6J("formGroup",e.newPasswdForm)("namespace",e.namespace)("language",e.language)}}function zH(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"div"),g.TgZ(1,"button",5),g.NdJ("click",function(){return g.CHM(e),g.oxw().onSubmit()}),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()}if(2&o){const e=g.oxw();g.xp6(1),g.Q6J("disabled",e.newPasswdForm.invalid||e.newPasswdForm.pending),g.xp6(1),g.hij(" ",g.lcZ(3,2,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_BUTTON":"PAGES.PWD_RESET_PAGE.ACTIVATION_BUTTON")," ")}}function GH(o,a){if(1&o&&(g.TgZ(0,"div",6),g.TgZ(1,"perun-web-apps-alert",7),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.hij(" ",g.lcZ(3,1,"reset"===e.mode?"PAGES.PWD_RESET_PAGE.RESET_SUCCESS":"PAGES.PWD_RESET_PAGE.ACTIVATION_SUCCESS")," ")}}function UH(o,a){1&o&&g._UZ(0,"mat-spinner",8)}let qH=(()=>{class o{constructor(e,t,s,c,l){this.storeService=e,this.translate=t,this.apiRequestConfiguration=s,this.usersService=c,this._formBuilder=l,this.loading=!1,this.success=!1,this.language="en"}ngOnInit(){this.loading=!0,this.translate.onLangChange.subscribe(e=>{this.language=e.lang}),this.newPasswdForm=this._formBuilder.group({passwordCtrl:new wf("",Ml.required,[MH(this.namespace,this.usersService,this.apiRequestConfiguration)]),passwordAgainCtrl:new wf("",Ml.required)},{validators:d_.passwordMatchValidator}),this.loading=!1}onSubmit(){this.loading=!0,this.authWithoutToken?this.usersService.changePasswordForLogin(this.login,this.namespace,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1}):this.usersService.changeNonAuthzPasswordByToken(this.token,this.newPasswdForm.get("passwordCtrl").value).subscribe(()=>{this.success=!0,this.loading=!1})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(mA),g.Y36(Sn),g.Y36(hH))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-form"]],inputs:{mode:"mode",namespace:"namespace",login:"login",token:"token",authWithoutToken:"authWithoutToken"},decls:4,vars:4,consts:[[3,"formGroup","namespace","language",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"formGroup","namespace","language"],["mat-flat-button","","color","accent",1,"mx-auto","d-block",3,"disabled","click"],[1,"mt-5"],["alert_type","success"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(g.YNc(0,NH,1,3,"perun-web-apps-password-form",0),g.YNc(1,zH,4,4,"div",1),g.YNc(2,GH,4,3,"div",2),g.YNc(3,UH,1,0,"mat-spinner",3)),2&e&&(g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",!t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.success&&!t.loading),g.xp6(1),g.Q6J("ngIf",t.loading))},directives:[T.O5,jH,h,kl,zc,WA,sS],pipes:[Jr],styles:[""]}),o})(),WH=(()=>{class o{constructor(e){this.translate=e}ngOnInit(){this.translate.onLangChange.subscribe(()=>{this.invalidRequestMessage=this.translate.instant("PAGES.PWD_RESET_PAGE.INVALID_REQUEST")})}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(_n))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-invalid-request-alert"]],decls:2,vars:1,consts:[["alert_type","info",1,"alert-wrap"],[3,"innerHTML"]],template:function(e,t){1&e&&(g.TgZ(0,"perun-web-apps-alert",0),g._UZ(1,"div",1),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.invalidRequestMessage,g.oJD))},directives:[WA],styles:[".alert-wrap[_ngcontent-%COMP%]{white-space:pre-wrap}"]}),o})();function $H(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.LOGIN"),": ",e.login,"")}}function QH(o,a){if(1&o&&(g.O4$(),g.kcU(),g.TgZ(0,"p",9),g.TgZ(1,"em"),g._uU(2),g.ALo(3,"translate"),g.qZA(),g.qZA()),2&o){const e=g.oxw();g.xp6(2),g.AsE("",g.lcZ(3,2,"PAGES.PWD_RESET_PAGE.NAMESPACE"),": ",e.namespace,"")}}function YH(o,a){if(1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-password-reset-form",10)),2&o){const e=g.oxw();g.Q6J("mode",e.mode)("namespace",e.namespace)("login",e.login)("token",e.token)("authWithoutToken",e.authWithoutToken)}}function JH(o,a){1&o&&(g.O4$(),g.kcU(),g._UZ(0,"perun-web-apps-invalid-request-alert"))}let KH=(()=>{class o{constructor(e,t){this.storeService=e,this.sanitizer=t}ngOnInit(){this.passwordResetLogo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("password_reset_logo"))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(xn))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-password-reset-page"]],inputs:{mode:"mode",token:"token",namespace:"namespace",login:"login",validToken:"validToken",authWithoutToken:"authWithoutToken"},decls:14,vars:8,consts:[[3,"innerHTML"],[1,"title-with-icon"],["xmlns","http://www.w3.org/2000/svg","width","30.000000pt","height","30.000000pt","viewBox","0 0 512.000000 512.000000","preserveAspectRatio","xMidYMid meet"],["transform","translate(0.000000,512.000000) scale(0.100000,-0.100000)","fill","#000000","stroke","none"],["d","M3530 5103 c-619 -30 -1162 -438 -1356 -1020 -115 -342 -107 -702 21-1035 l36 -92 -1100 -1101 c-605 -605 -1105 -1112 -1110 -1127 -8 -22 -5 -49 15 -125 116 -450 112 -436 146 -454 42 -22 513 -139 539 -134 16 4 122 103 287 268 144 145 262 265 262 267 4 51 29 293 32 295 2 2 70 10 151 18 200 19 193 13 213 213 8 81 17 150 19 152 2 2 67 10 145 18 77 7 149 18 159 23 37 20 44 44 60 194 l16 152 125 12 c69 6 136 12 150 12 18 1 98 75 320 296 l295 295 85 -33 c586 -230 1239 -83 1665 375 405 437 514 1079 275 1629 -122 280 -336 524 -606 690 -237 145 -559 226 -844 212z m201 -184 c307 -31 569 -152 790 -366 467 -452 542 -1155 182 -1697 -187 -280 -490 -487 -823 -561 -42 -9 -144 -19 -230 -22 -236 -8 -402 24 -613 119 -65 29 -96 38 -115 33 -17 -4 -139 -118 -332 -309 l-305 -304 -169 -16 c-224 -20 -214 -11 -233 -213 -8 -81 -16 -150 -18 -152 -2 -2 -68 -10 -147 -18 -148 -14 -182 -26 -197 -66 -5 -12 -15 -85 -22 -162 l-14 -140 -140 -14 c-77 -7 -149 -17 -162 -22 -41 -15 -51 -48 -68 -219 l-16 -165 -213 -213 -212 -213 -185 47 c-101 26 -185 49 -187 50 -2 1 -26 87 -53 191 l-49 188 1115 1115 c849 849 1115 1121 1115 1139 0 13 -18 62 -39 110 -40 90 -80 211 -103 316 -20 95 -17 400 5 505 55 255 171 473 354 661 250 257 570 397 934 408 26 0 93 -4 150 -10z"],["d","M3554 4120 c-201 -30 -366 -170 -424 -359 -14 -43 -20 -92 -20 -153 0 -389 394 -632 750 -461 78 38 189 151 227 233 158 336 -58 712 -427 743 -30 3 -78 1 -106 -3z m138 -181 c108 -23 190 -89 239 -192 37 -80 40 -177 7 -264 -30 -80 -112 -162 -193 -192 -121 -45 -270 -14 -358 75 -164 165 -121 440 83 544 72 37 142 46 222 29z"],["class","subtitle",4,"ngIf"],[3,"mode","namespace","login","token","authWithoutToken",4,"ngIf"],[4,"ngIf"],[1,"subtitle"],[3,"mode","namespace","login","token","authWithoutToken"]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g._UZ(1,"div",0),g.TgZ(2,"div",1),g.TgZ(3,"h1"),g._uU(4),g.ALo(5,"translate"),g.qZA(),g.O4$(),g.TgZ(6,"svg",2),g.TgZ(7,"g",3),g._UZ(8,"path",4),g._UZ(9,"path",5),g.qZA(),g.qZA(),g.qZA(),g.YNc(10,$H,4,4,"p",6),g.YNc(11,QH,4,4,"p",6),g.YNc(12,YH,1,5,"perun-web-apps-password-reset-form",7),g.YNc(13,JH,1,0,"perun-web-apps-invalid-request-alert",8),g.qZA()),2&e&&(g.xp6(1),g.Q6J("innerHTML",t.passwordResetLogo,g.oJD),g.xp6(3),g.hij(" ",g.lcZ(5,6,"reset"===t.mode?"PAGES.PWD_RESET_PAGE.TITLE_RESET":"PAGES.PWD_RESET_PAGE.TITLE_ACTIVATION")," "),g.xp6(6),g.Q6J("ngIf",t.login),g.xp6(1),g.Q6J("ngIf",t.namespace),g.xp6(1),g.Q6J("ngIf",t.validToken||t.authWithoutToken),g.xp6(1),g.Q6J("ngIf",!t.validToken&&!t.authWithoutToken))},directives:[T.O5,qH,WH],pipes:[Jr],styles:[".title-with-icon[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:space-between}.subtitle[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:10px}"]}),o})();function ZH(o,a){1&o&&(g.TgZ(0,"mat-error"),g._uU(1),g.ALo(2,"translate"),g.qZA()),2&o&&(g.xp6(1),g.Oqu(g.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let XH=(()=>{class o{constructor(e,t,s,c,l){this.dialogRef=e,this.translate=t,this.notificator=s,this.rtMessages=c,this.storeService=l,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",E(4147).i8)}close(){this.dialogRef.close()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(xs),g.Y36(_n),g.Y36(ob),g.Y36(_i),g.Y36(Hi))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(g.TgZ(0,"h1",0),g._uU(1),g.ALo(2,"translate"),g.qZA(),g.TgZ(3,"div",1),g.TgZ(4,"mat-form-field"),g.TgZ(5,"mat-label"),g._uU(6),g.ALo(7,"translate"),g.qZA(),g.TgZ(8,"input",2,3),g.NdJ("ngModelChange",function(c){return t.subject=c}),g.qZA(),g.YNc(10,ZH,3,3,"mat-error",4),g.qZA(),g.TgZ(11,"mat-form-field"),g.TgZ(12,"mat-label"),g._uU(13),g.ALo(14,"translate"),g.qZA(),g.TgZ(15,"textarea",5),g.NdJ("ngModelChange",function(c){return t.message=c}),g.ALo(16,"translate"),g._uU(17," "),g.qZA(),g.TgZ(18,"mat-hint"),g._uU(19),g.ALo(20,"translate"),g.qZA(),g.qZA(),g.qZA(),g.TgZ(21,"div",6),g.TgZ(22,"div",7),g.TgZ(23,"button",8),g.NdJ("click",function(){return t.close()}),g._uU(24),g.ALo(25,"translate"),g.qZA(),g.TgZ(26,"button",9),g.NdJ("click",function(){return t.sendBugReport()}),g._uU(27),g.ALo(28,"translate"),g.qZA(),g.qZA(),g.qZA()),2&e){const s=g.MAs(9);g.xp6(1),g.Oqu(g.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),g.xp6(5),g.Oqu(g.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),g.xp6(2),g.Q6J("ngModel",t.subject),g.xp6(2),g.Q6J("ngIf",s.invalid),g.xp6(3),g.Oqu(g.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),g.xp6(2),g.s9C("placeholder",g.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),g.Q6J("ngModel",t.message),g.xp6(4),g.Oqu(g.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),g.xp6(5),g.hij(" ",g.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),g.xp6(2),g.Q6J("disabled",s.invalid),g.xp6(1),g.hij(" ",g.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Ic,Dh,Mm,Hs,rS,Od,xf,vb,VA,T.O5,xm,pT,gm,zc],pipes:[Jr],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),o})(),eD=(()=>{class o{transform(e,t,s){return e[`${s}_${t}`]}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedText",type:o,pure:!0}),o})(),tD=(()=>{class o{transform(e,t){return e["link_"+t]||e.link_en}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"localisedLink",type:o,pure:!0}),o})(),iD=(()=>{class o{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275pipe=g.Yjl({name:"footerLogoPath",type:o,pure:!0}),o})();function nD(o,a){if(1&o&&(g.TgZ(0,"a",13),g.ALo(1,"localisedLink"),g._UZ(2,"img",14),g.ALo(3,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,2,e,t.language),g.LSH),g.xp6(2),g.s9C("src",g.lcZ(3,5,e.logo),g.LSH)}}function rD(o,a){if(1&o&&(g.TgZ(0,"span"),g._UZ(1,"img",14),g.ALo(2,"footerLogoPath"),g.qZA()),2&o){const e=g.oxw().$implicit;g.xp6(1),g.s9C("src",g.lcZ(2,1,e.logo),g.LSH)}}function aD(o,a){if(1&o&&(g.TgZ(0,"div"),g.YNc(1,nD,4,7,"a",11),g.ALo(2,"localisedLink"),g.YNc(3,rD,3,3,"span",12),g.ALo(4,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",g.xi3(2,2,e,t.language)),g.xp6(2),g.Q6J("ngIf",!g.xi3(4,5,e,t.language))}}const sD=function(o){return{"min-height":o}};function oD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,aD,5,8,"div",5),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,sD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}const qs=function(o){return{color:o}};function lD(o,a){if(1&o&&(g.TgZ(0,"i",20),g._uU(1),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(2,qs,t.linksTextColor)),g.xp6(1),g.hij(" ",e.icon," ")}}function cD(o,a){if(1&o){const e=g.EpF();g.TgZ(0,"span",21),g.NdJ("click",function(){g.CHM(e);const s=g.oxw().$implicit;return g.oxw(3).openDialog(s.dialog)}),g._uU(1),g.ALo(2,"localisedText"),g.qZA()}if(2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,qs,t.linksTextColor)),g.xp6(1),g.hij("",g.Dn7(2,2,e,t.language,"label")," ")}}function dD(o,a){if(1&o&&(g.TgZ(0,"a",22),g.ALo(1,"localisedLink"),g._uU(2),g.ALo(3,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("href",g.xi3(1,3,e,t.language),g.LSH)("ngStyle",g.VKq(10,qs,t.linksTextColor)),g.xp6(2),g.Oqu(g.Dn7(3,6,e,t.language,"label"))}}function uD(o,a){if(1&o&&(g.TgZ(0,"span",10),g._uU(1),g.ALo(2,"localisedText"),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw(3);g.Q6J("ngStyle",g.VKq(6,qs,t.linksTextColor)),g.xp6(1),g.Oqu(g.Dn7(2,2,e,t.language,"label"))}}function hD(o,a){if(1&o&&(g.TgZ(0,"div",16),g.YNc(1,lD,2,4,"i",17),g.YNc(2,cD,3,8,"span",18),g.YNc(3,dD,4,12,"a",19),g.ALo(4,"localisedLink"),g.YNc(5,uD,3,8,"span",9),g.ALo(6,"localisedLink"),g.qZA()),2&o){const e=a.$implicit,t=g.oxw(3);g.xp6(1),g.Q6J("ngIf",e.icon),g.xp6(1),g.Q6J("ngIf",e.dialog),g.xp6(1),g.Q6J("ngIf",g.xi3(4,4,e,t.language)&&!e.dialog),g.xp6(2),g.Q6J("ngIf",!g.xi3(6,7,e,t.language)&&!e.dialog)}}const pD=function(o){return{height:o}};function fD(o,a){if(1&o&&(g.TgZ(0,"div",10),g.YNc(1,hD,7,10,"div",15),g.qZA()),2&o){const e=g.oxw().$implicit,t=g.oxw();g.Q6J("ngStyle",g.VKq(2,pD,t.columnContentHeight+"px")),g.xp6(1),g.Q6J("ngForOf",e.elements)}}function gD(o,a){if(1&o&&(g.TgZ(0,"div",7),g.TgZ(1,"h6",8),g._uU(2),g.ALo(3,"localisedText"),g.qZA(),g.YNc(4,oD,2,4,"div",9),g.YNc(5,fD,2,4,"div",9),g.qZA()),2&o){const e=a.$implicit,t=g.oxw();g.ekj("my-auto",t.containsLogos),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,qs,t.headersTextColor)),g.xp6(1),g.hij(" ",g.Dn7(3,6,e,t.language,"title")," "),g.xp6(2),g.Q6J("ngIf",e.logos),g.xp6(1),g.Q6J("ngIf",e.elements&&!e.logos)}}function mD(o,a){if(1&o&&(g.TgZ(0,"span"),g.TgZ(1,"a",6),g._uU(2),g.qZA(),g.qZA()),2&o){const e=a.$implicit,t=a.index,s=g.oxw();g.xp6(1),g.Q6J("href",e.url,g.LSH)("ngStyle",g.VKq(3,qs,s.copyrightTextColor)),g.xp6(1),g.Oqu(t?", "+e.name:e.name)}}const _D=function(o){return{background:o}};let bD=(()=>{class o{constructor(e,t,s){this.storeService=e,this.translateService=t,this.dialog=s,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=E(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Vs();"reportIssue"===e&&(t.width="550px",this.dialog.open(XH,t))}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Hi),g.Y36(_n),g.Y36(Ts))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(g.TgZ(0,"footer",0),g.TgZ(1,"div",1),g.YNc(2,gD,6,12,"div",2),g.qZA(),g._UZ(3,"hr",3),g.TgZ(4,"div",4),g._uU(5),g.YNc(6,mD,3,5,"span",5),g._uU(7," Version "),g.TgZ(8,"a",6),g._uU(9),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.Q6J("ngStyle",g.VKq(8,_D,t.bgColor)),g.xp6(2),g.Q6J("ngForOf",t.footerColumns),g.xp6(2),g.Q6J("ngStyle",g.VKq(10,qs,t.copyrightTextColor)),g.xp6(1),g.hij(" \xa9 ",t.currentYear," Copyright: "),g.xp6(1),g.Q6J("ngForOf",t.copyrightItems),g.xp6(2),g.Q6J("href",t.githubRepository,g.LSH)("ngStyle",g.VKq(12,qs,t.copyrightTextColor)),g.xp6(1),g.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[eD,tD,iD],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),o})();const CD=["footer"],yD=function(o){return{background:o}},wD=function(o){return{"min-height":o}};let vD=(()=>{class o{constructor(e,t,s,c,l,n,i){this.dialog=e,this.usersService=t,this.preferredLangService=s,this.translateService=c,this.store=l,this.attributesManagerService=n,this.changeDetector=i,this.authWithoutToken=!1,this.contentHeight="calc(100vh - 84px)",this.contentBackgroundColor=this.store.get("theme","content_bg_color")}ngOnInit(){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e);const t=location.search.substr(1);this.mode=t.includes("activation")?"activation":"reset",this.namespace=this.parseQueryParams("namespace",t),t.includes("token")?(this.token=this.parseQueryParams("token",t),this.usersService.checkPasswordResetRequestByTokenIsValid(this.token).subscribe(()=>{this.validToken=!0},()=>{this.validToken=!1})):(this.authWithoutToken=!0,this.attributesManagerService.getLogins(this.store.getPerunPrincipal().userId).subscribe(s=>{const c=s.find(l=>l.friendlyNameParameter===this.namespace);this.login=c?String(c.value):""}))}parseQueryParams(e,t){const s=t.split("&");for(const c of s){const[l,n]=c.split("=");if(l.includes(e))return n}}ngAfterViewInit(){var e,t,s,c;const l=null!==(c=null===(s=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===s?void 0:s.toString())&&void 0!==c?c:"0";this.contentHeight="calc(100vh - 84px - "+l+"px)",this.changeDetector.detectChanges()}}return o.\u0275fac=function(e){return new(e||o)(g.Y36(Ts),g.Y36(Sn),g.Y36(lb),g.Y36(_n),g.Y36(Hi),g.Y36(Tn),g.Y36(g.sBO))},o.\u0275cmp=g.Xpm({type:o,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&g.Gf(CD,5),2&e){let s;g.iGM(s=g.CRH())&&(t.footer=s.first)}},decls:8,vars:12,consts:[["id","nav-menu"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],[3,"mode","token","namespace","login","validToken","authWithoutToken"],["footer",""]],template:function(e,t){1&e&&(g.TgZ(0,"div"),g._UZ(1,"perun-web-apps-header",0),g.TgZ(2,"div",1),g.TgZ(3,"div",2),g._UZ(4,"perun-web-apps-password-reset-page",3),g.qZA(),g.TgZ(5,"div",null,4),g._UZ(7,"perun-web-apps-footer"),g.qZA(),g.qZA(),g.qZA()),2&e&&(g.xp6(2),g.Q6J("ngStyle",g.VKq(8,yD,t.contentBackgroundColor)),g.xp6(1),g.Q6J("ngStyle",g.VKq(10,wD,t.contentHeight)),g.xp6(1),g.Q6J("mode",t.mode)("token",t.token)("namespace",t.namespace)("login",t.login)("validToken",t.validToken)("authWithoutToken",t.authWithoutToken))},directives:[ub,T.PC,KH,bD],styles:["#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}#content-inner[_ngcontent-%COMP%]{position:relative;padding-top:64px}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 450px){#content-wrap[_ngcontent-%COMP%]{max-width:400px;margin-left:auto;margin-right:auto}}"]}),o})();class AD{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let xD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Vc,Bn,tl]]}),o})();const TD=[];let ED=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Qp.forRoot(TD,{relativeLinkResolution:"legacy"}),T.ez],Qp]}),o})(),SD=(()=>{class o{constructor(e,t,s,c,l){this.http=e,this.storeService=t,this.authzSevice=s,this.titleService=c,this.utilsService=l}initializeColors(e,t){return new Promise(s=>{t.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l)}),e.forEach(c=>{const l=this.storeService.get("theme",c.configValue);document.documentElement.style.setProperty(c.cssVariable,l),this.setEntityTheme(c.entity,l)}),s()})}setEntityTheme(e,t){const s=function MD(o){return[Cn(tinycolor(o).lighten(52),"50"),Cn(tinycolor(o).lighten(37),"100"),Cn(tinycolor(o).lighten(26),"200"),Cn(tinycolor(o).lighten(12),"300"),Cn(tinycolor(o).lighten(6),"400"),Cn(tinycolor(o),"500"),Cn(tinycolor(o).darken(6),"600"),Cn(tinycolor(o).darken(12),"700"),Cn(tinycolor(o).darken(18),"800"),Cn(tinycolor(o).darken(24),"900"),Cn(tinycolor(o).lighten(50).saturate(30),"A100"),Cn(tinycolor(o).lighten(30).saturate(30),"A200"),Cn(tinycolor(o).lighten(10).saturate(15),"A400"),Cn(tinycolor(o).lighten(5).saturate(5),"A700")]}(t);for(const c of s){const i=`--${e}-theme-primary-contrast-${c.name}`,r=c.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${c.name}`,`${c.red},${c.green},${c.blue}`),document.documentElement.style.setProperty(i,r)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var s;this.storeService.setInstanceConfig(t);const c=document.location.hostname;(null===(s=null==t?void 0:t.brandings)||void 0===s?void 0:s[c])&&this.storeService.setBanding(c),e()},()=>{e()})})}getNoCacheHeaders(){return new y.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(s=>{this.storeService.setAppsConfig(s),e()},s=>t(s))})}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(y.eN),g.LFG(Hi),g.LFG(Wi),g.LFG(Oi),g.LFG(Xe))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();function Cn(o,a){const e=tinycolor(o),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let HD=(()=>{class o{constructor(e,t,s){this.initAuthService=e,this.appConfigService=t,this.location=s}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>location.search.substr(1).includes("token")?Promise.resolve(!0):this.initAuthService.verifyAuth()).catch(e=>{throw this.location.go("/"),location.reload(),e}).then(e=>e?location.search.substr(1).includes("token")?void 0:this.initAuthService.loadPrincipal():this.initAuthService.handleAuthStart())}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(Xp),g.LFG(SD),g.LFG(T.Ye))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const DD=new g.OlP("perun-api-service");let oS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),dS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),Hb=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue,fg,dS],Ue,dS]}),o})(),$A=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Ue],Ue]}),o})(),zD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),hS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,zD,uo]]}),o})(),fS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,Ue],ys,Ue]}),o})(),qD=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ti]]}),o})(),QA=(()=>{class o{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const iP={provide:QA,deps:[[new g.FiY,new g.tp0,QA]],useFactory:function tP(o){return o||new QA}};let mS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[iP,Cs],imports:[[Ue,T.ez,uo,Bn,qD,er,Yn],Ue]}),o})(),_P=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ca]]}),o})(),sx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[_P,Ue],Ue]}),o})(),UP=(()=>{class o{constructor(){this.changes=new He.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const $P={provide:new g.OlP("mat-datepicker-scroll-strategy"),deps:[Wn],useFactory:function WP(o){return()=>o.scrollStrategies.reposition()}};let ox=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[UP,$P],imports:[[T.ez,Bn,ns,Ou,uo,Ue],Un]}),o})(),RS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Ue,Yi,Un],Un,Ue]}),o})(),IS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[ys,Yn,Ue,Eh,T.ez],ys,Ue,Eh,$A]}),o})(),lx=(()=>{class o{constructor(){this.changes=new He.xQ}}return o.\u0275fac=function(e){return new(e||o)},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const pR={provide:lx,deps:[[new g.FiY,new g.tp0,lx]],useFactory:function hR(o){return o||new lx}};let cx=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[pR],imports:[[T.ez,Ue]]}),o})(),VS=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,GA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn],oS,$A,hS,Bn,fS,Hb,er,sx,Vc,Tf,Cr,Mb,ca,GA,Nd,mS,ox,Py,RS,IS,rl,cb,cx,Rs,Ps,Yc,Yn]}),o})();const LS=new g.OlP("mat-chips-default-options");let ER=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[Cs,{provide:LS,useValue:{separatorKeyCodes:[13]}}],imports:[[Ue]]}),o})();function MR(o){const{subscriber:a,counter:e,period:t}=o;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function ux(o,a,e){for(let t in a)if(a.hasOwnProperty(t)){const s=a[t];s?o.setProperty(t,s,(null==e?void 0:e.has(t))?"important":""):o.removeProperty(t)}return o}function Wd(o,a){const e=a?"":"none";ux(o.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function jS(o,a,e){ux(o.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function Gb(o,a){return a&&"none"!=a?o+" "+a:o}function NS(o){const a=o.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(o)*a}function hx(o,a){return o.getPropertyValue(a).split(",").map(t=>t.trim())}function px(o){const a=o.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function fx(o,a,e){const{top:t,bottom:s,left:c,right:l}=o;return e>=t&&e<=s&&a>=c&&a<=l}function Hf(o,a,e){o.top+=a,o.bottom=o.top+o.height,o.left+=e,o.right=o.left+o.width}function zS(o,a,e,t){const{top:s,right:c,bottom:l,left:n,width:i,height:r}=o,d=i*a,u=r*a;return t>s-u&&tn-d&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:px(e)})})}handleScroll(a){const e=Di(a),t=this.positions.get(e);if(!t)return null;const s=t.scrollPosition;let c,l;if(e===this._document){const r=this._viewportRuler.getViewportScrollPosition();c=r.top,l=r.left}else c=e.scrollTop,l=e.scrollLeft;const n=s.top-c,i=s.left-l;return this.positions.forEach((r,d)=>{r.clientRect&&e!==d&&e.contains(d)&&Hf(r.clientRect,n,i)}),s.top=c,s.left=l,{top:n,left:i}}}function US(o){const a=o.cloneNode(!0),e=a.querySelectorAll("[id]"),t=o.nodeName.toLowerCase();a.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const i=this._handles.find(r=>n.target&&(n.target===r||r.contains(n.target)));i&&!this._disabledHandles.has(i)&&!this.disabled&&this._initializeDragSequence(i,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)},this._pointerMove=n=>{const i=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging){if(Math.abs(i.x-this._pickupPositionOnPage.x)+Math.abs(i.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),D=this._dropContainer;if(!b)return void this._endDragSequence(n);(!D||!D.isDragging()&&!D.isReceiving())&&(n.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(n)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),n.preventDefault();const r=this._getConstrainedPointerPosition(i);if(this._hasMoved=!0,this._lastKnownPointerPosition=i,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,i);else{const d=this._activeTransform;d.x=r.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=r.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:n,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})},this._pointerUp=n=>{this._endDragSequence(n)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new GS(t,c),l.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=it(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>Wd(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Lt(t)),this._handles.forEach(t=>Wd(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Lt(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,YS),e.addEventListener("touchstart",this._pointerDown,QS)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Lt(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),Wd(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),Wd(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){Df(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,s=t.parentNode,c=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment(""),n=this._getShadowRoot();s.insertBefore(l,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),jS(t,!1,gx),this._document.body.appendChild(s.replaceChild(c,t)),this._getPreviewInsertionPoint(s,n).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),s=Df(e),c=!s&&0!==e.button,l=this._rootElement,n=Di(e),i=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),r=s?fc(e):Ro(e);if(n&&n.draggable&&"mousedown"===e.type&&e.preventDefault(),t||c||i||r)return;if(this._handles.length){const f=l.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=px(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,e);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){jS(this._rootElement,!0,gx),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),s=this._getPointerPositionOnPage(a),c=this._getDragDistance(s),l=e._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:c,dropPoint:s}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:l,distance:c,dropPoint:s}),e.drop(this,t,this._initialIndex,this._initialContainer,l,c,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:s}){let c=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!c&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(c=this._initialContainer),c&&c!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=c,this._dropContainer.enter(this,a,e,c===this._initialContainer&&c.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:c,currentIndex:c.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,s),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let s;if(t&&a){const c=a.matchSize?this._rootElement.getBoundingClientRect():null,l=a.viewContainer.createEmbeddedView(t,a.context);l.detectChanges(),s=KS(l,this._document),this._previewRef=l,a.matchSize?ZS(s,c):s.style.transform=Ub(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const c=this._rootElement;s=US(c),ZS(s,c.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return ux(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},gx),Wd(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(c=>s.classList.add(c)):s.classList.add(e)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function HR(o){const a=getComputedStyle(o),e=hx(a,"transition-property"),t=e.find(n=>"transform"===n||"all"===n);if(!t)return 0;const s=e.indexOf(t),c=hx(a,"transition-duration"),l=hx(a,"transition-delay");return NS(c[s])+NS(l[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const s=l=>{var n;(!l||Di(l)===this._preview&&"transform"===l.propertyName)&&(null===(n=this._preview)||void 0===n||n.removeEventListener("transitionend",s),t(),clearTimeout(c))},c=setTimeout(s,1.5*e);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=KS(this._placeholderRef,this._document)):t=US(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),s=a===this._rootElement?null:a,c=s?s.getBoundingClientRect():t,l=Df(e)?e.targetTouches[0]:e,n=this._getViewportScrollPosition();return{x:c.left-t.left+(l.pageX-c.left-n.left),y:c.top-t.top+(l.pageY-c.top-n.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=Df(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,s=t.pageX-e.left,c=t.pageY-e.top;if(this._ownerSVGElement){const l=this._ownerSVGElement.getScreenCTM();if(l){const n=this._ownerSVGElement.createSVGPoint();return n.x=s,n.y=c,n.matrixTransform(l.inverse())}}return{x:s,y:c}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:s}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:c,y:l}=this._pickupPositionInElement,n=this._boundaryRect,i=this._previewRect,r=n.top+l,d=n.bottom-(i.height-l);t=JS(t,n.left+c,n.right-(i.width-c)),s=JS(s,r,d)}return{x:t,y:s}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,s=this._pointerDirectionDelta,c=this._pointerPositionAtLastDirectionChange,l=Math.abs(e-c.x),n=Math.abs(t-c.y);return l>this._config.pointerDirectionChangeThreshold&&(s.x=e>c.x?1:-1,c.x=e),n>this._config.pointerDirectionChangeThreshold&&(s.y=t>c.y?1:-1,c.y=t),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,Wd(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,YS),a.removeEventListener("touchstart",this._pointerDown,QS)}_applyRootElementTransform(a,e){const t=Ub(a,e),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=Gb(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const s=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,c=Ub(a,e);this._preview.style.transform=Gb(c,s)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===s.width&&0===s.height)return;const c=t.left-s.left,l=s.right-t.right,n=t.top-s.top,i=s.bottom-t.bottom;t.width>s.width?(c>0&&(a+=c),l>0&&(a-=l)):a=0,t.height>s.height?(n>0&&(e+=n),i>0&&(e-=i)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:Df(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Di(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Hf(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Gt(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const s=this._document;return e||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return Lt(t)}}function Ub(o,a){return`translate3d(${Math.round(o)}px, ${Math.round(a)}px, 0)`}function JS(o,a,e){return Math.max(a,Math.min(e,o))}function Df(o){return"t"===o.type[0]}function KS(o,a){const e=o.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(s=>t.appendChild(s)),t}function ZS(o,a){o.style.width=`${a.width}px`,o.style.height=`${a.height}px`,o.style.transform=Ub(a.left,a.top)}function Pf(o,a){return Math.max(0,Math.min(a,o))}class IR{constructor(a,e,t,s,c){this._dragDropRegistry=e,this._ngZone=s,this._viewportRuler=c,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=zt.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function SR(o=0,a=k.P){return(!Oe(o)||o<0)&&(o=0),(!a||"function"!=typeof a.schedule)&&(a=k.P),new Ci.y(e=>(e.add(a.schedule(MR,o,{subscriber:e,counter:0,period:o})),e))}(0,eu).pipe(ht(this._stopScrollTimers)).subscribe(()=>{const l=this._scrollNode,n=this.autoScrollStep;1===this._verticalScrollDirection?l.scrollBy(0,-n):2===this._verticalScrollDirection&&l.scrollBy(0,n),1===this._horizontalScrollDirection?l.scrollBy(-n,0):2===this._horizontalScrollDirection&&l.scrollBy(n,0)})},this.element=Lt(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new GS(t,c)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,s){let c;this._draggingStarted(),null==s?(c=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===c&&(c=this._getItemIndexFromPointerPosition(a,e,t))):c=s;const l=this._activeDraggables,n=l.indexOf(a),i=a.getPlaceholderElement();let r=l[c];if(r===a&&(r=l[c+1]),!r&&(null==c||-1===c||c-1&&l.splice(n,1),r&&!this._dragDropRegistry.isDragging(r)){const d=r.getRootElement();d.parentElement.insertBefore(i,d),l.splice(c,0,a)}else Lt(this.element).appendChild(i),l.push(a);i.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,s,c,l,n){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:s,isPointerOverContainer:c,distance:l,dropPoint:n})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(s=>s.isDragging()).every(s=>-1===a.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Lt(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,s){if(this.sortingDisabled||!this._clientRect||!zS(this._clientRect,.05,e,t))return;const c=this._itemPositions,l=this._getItemIndexFromPointerPosition(a,e,t,s);if(-1===l&&c.length>0)return;const n="horizontal"===this._orientation,i=c.findIndex(se=>se.drag===a),r=c[l],u=r.clientRect,f=i>l?1:-1,b=this._getItemOffsetPx(c[i].clientRect,u,f),D=this._getSiblingOffsetPx(i,c,f),U=c.slice();(function kR(o,a,e){const t=Pf(a,o.length-1),s=Pf(e,o.length-1);if(t===s)return;const c=o[t],l=s{if(U[De]===se)return;const rt=se.drag===a,Qe=rt?b:D,vt=rt?a.getPlaceholderElement():se.drag.getRootElement();se.offset+=Qe,n?(vt.style.transform=Gb(`translate3d(${Math.round(se.offset)}px, 0, 0)`,se.initialTransform),Hf(se.clientRect,0,Qe)):(vt.style.transform=Gb(`translate3d(0, ${Math.round(se.offset)}px, 0)`,se.initialTransform),Hf(se.clientRect,Qe,0))}),this._previousSwap.overlaps=fx(u,e,t),this._previousSwap.drag=r.drag,this._previousSwap.delta=n?s.x:s.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,s=0,c=0;if(this._parentPositions.positions.forEach((l,n)=>{n===this._document||!l.clientRect||t||zS(l.clientRect,.05,a,e)&&([s,c]=function VR(o,a,e,t){const s=tM(a,t),c=iM(a,e);let l=0,n=0;if(s){const i=o.scrollTop;1===s?i>0&&(l=1):o.scrollHeight-i>o.clientHeight&&(l=2)}if(c){const i=o.scrollLeft;1===c?i>0&&(n=1):o.scrollWidth-i>o.clientWidth&&(n=2)}return[l,n]}(n,l.clientRect,a,e),(s||c)&&(t=n))}),!s&&!c){const{width:l,height:n}=this._viewportRuler.getViewportSize(),i={width:l,height:n,top:0,right:l,bottom:n,left:0};s=tM(i,e),c=iM(i,a),t=window}t&&(s!==this._verticalScrollDirection||c!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=c,this._scrollNode=t,(s||c)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Lt(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Lt(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_cacheItemPositions(){const a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:px(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Lt(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const s=e.getRootElement();if(s){const c=null===(t=this._itemPositions.find(l=>l.drag===e))||void 0===t?void 0:t.initialTransform;s.style.transform=c||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const s="horizontal"===this._orientation,c=e[a].clientRect,l=e[a+-1*t];let n=c[s?"width":"height"]*t;if(l){const i=s?"left":"top",r=s?"right":"bottom";-1===t?n-=l.clientRect[i]-c[r]:n+=c[i]-l.clientRect[r]}return n}_getItemOffsetPx(a,e,t){const s="horizontal"===this._orientation;let c=s?e.left-a.left:e.top-a.top;return-1===t&&(c+=s?e.width-a.width:e.height-a.height),c}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,s="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const l=t[t.length-1].clientRect;return s?a>=l.right:e>=l.bottom}{const l=t[0].clientRect;return s?a<=l.left:e<=l.top}}_getItemIndexFromPointerPosition(a,e,t,s){const c="horizontal"===this._orientation,l=this._itemPositions.findIndex(({drag:n,clientRect:i})=>{if(n===a)return!1;if(s){const r=c?s.x:s.y;if(n===this._previousSwap.drag&&this._previousSwap.overlaps&&r===this._previousSwap.delta)return!1}return c?e>=Math.floor(i.left)&&e=Math.floor(i.top)&&ts._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!fx(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const s=this._getShadowRoot().elementFromPoint(e,t);if(!s)return!1;const c=Lt(this.element);return s===c||c.contains(s)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&(this._itemPositions.forEach(({clientRect:t})=>{Hf(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Gt(Lt(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function tM(o,a){const{top:e,bottom:t,height:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}function iM(o,a){const{left:e,right:t,width:s}=o,c=.05*s;return a>=e-c&&a<=e+c?1:a>=t-c&&a<=t+c?2:0}const qb=dn({passive:!1,capture:!0});let BR=(()=>{class o{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,qb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,qb)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const s=t.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:c=>this.pointerUp.next(c),options:!0}).set("scroll",{handler:c=>this.scroll.next(c),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qb}),s||this._globalListeners.set("mousemove",{handler:c=>this.pointerMove.next(c),options:qb}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((c,l)=>{this._document.addEventListener(l,c.handler,c.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Ci.y(s=>this._ngZone.runOutsideAngular(()=>{const l=n=>{this._activeDragInstances.length&&s.next(n)};return e.addEventListener("scroll",l,!0),()=>{e.removeEventListener("scroll",l,!0)}}))),(0,qn.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(g.R0b),g.LFG(T.K0))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();const OR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let FR=(()=>{class o{constructor(e,t,s,c){this._document=e,this._ngZone=t,this._viewportRuler=s,this._dragDropRegistry=c}createDrag(e,t=OR){return new RR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new IR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(T.K0),g.LFG(g.R0b),g.LFG(la),g.LFG(BR))},o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),LR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[FR],imports:[Un]}),o})(),jR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez]]}),o})(),NR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),WR=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({}),o})(),ek=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[WR,Ue],Ue]}),o})(),pk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[Yn,Ue],Ue]}),o})(),mk=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({imports:[[T.ez,Nd,Bn,Hb,er,Tf,Ps]]}),o})(),_k=(()=>{class o extends Yo{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return o.\u0275fac=function(){let a;return function(t){return(a||(a=g.n5z(o)))(t||o)}}(),o.\u0275prov=g.Yz7({token:o,factory:o.\u0275fac}),o})();const bk={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Ck=(()=>{class o{}return o.\u0275fac=function(e){return new(e||o)},o.\u0275mod=g.oAB({type:o}),o.\u0275inj=g.cJS({providers:[{provide:gn,useClass:_k},{provide:Qo,useValue:bk}],imports:[[T.ez,Hb,sx,GA,ER,LR,tl,Qp,cx,Rs,Tf,qA,er,rl,Bn,Ps,Cr,Nd,Mb,Yn,jR,NR,ek,ox,pk,Sh,Yc,mk,ca,Vc,a_,VS]]}),o})();const CI={provide:y.TP,useExisting:(0,g.Gpc)(()=>ef),multi:!0};function yI(o){return new AD(o,"./assets/i18n/",".json")}function wI(o){const a={basePath:o.get("api_url")};return new je(a)}const vI=o=>()=>o.loadConfigs();let AI=(()=>{class o{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return o.\u0275fac=function(e){return new(e||o)(g.LFG(fA),g.LFG(_n))},o.\u0275mod=g.oAB({type:o,bootstrap:[vD]}),o.\u0275inj=g.cJS({providers:[fA,{provide:g.ip1,useFactory:vI,multi:!0,deps:[HD]},{provide:je,useFactory:wI,deps:[Hi]},ef,CI,{provide:DD,useClass:_A}],imports:[[Mr,tl.forRoot({loader:{provide:Zn,useFactory:yI,deps:[y.eN]}}),yh,er,xD,Of,y.JF,ED,VS,qA,EH,Kp.zr.forRoot(),Ck]]}),o})();(0,g.G48)(),Sr().bootstrapModule(AI).catch(o=>console.error(o))},1302:function(z,W,E){var T;!function(g,B){var j={};!function(g){"use strict";g.__esModule=!0,g.digestLength=32,g.blockSize=64;var B=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function j(Q,ie,re,ne,le){for(var xe,Ae,Be,ft,yt,We,gi,St,Ze,oe,he,pe,ue;le>=64;){for(xe=ie[0],Ae=ie[1],Be=ie[2],ft=ie[3],yt=ie[4],We=ie[5],gi=ie[6],St=ie[7],oe=0;oe<16;oe++)Q[oe]=(255&re[he=ne+4*oe])<<24|(255&re[he+1])<<16|(255&re[he+2])<<8|255&re[he+3];for(oe=16;oe<64;oe++)Q[oe]=((pe=((Ze=Q[oe-2])>>>17|Ze<<15)^(Ze>>>19|Ze<<13)^Ze>>>10)+Q[oe-7]|0)+((ue=((Ze=Q[oe-15])>>>7|Ze<<25)^(Ze>>>18|Ze<<14)^Ze>>>3)+Q[oe-16]|0);for(oe=0;oe<64;oe++)pe=(((yt>>>6|yt<<26)^(yt>>>11|yt<<21)^(yt>>>25|yt<<7))+(yt&We^~yt&gi)|0)+(St+(B[oe]+Q[oe]|0)|0)|0,ue=((xe>>>2|xe<<30)^(xe>>>13|xe<<19)^(xe>>>22|xe<<10))+(xe&Ae^xe&Be^Ae&Be)|0,St=gi,gi=We,We=yt,yt=ft+pe|0,ft=Be,Be=Ae,Ae=xe,xe=pe+ue|0;ie[0]+=xe,ie[1]+=Ae,ie[2]+=Be,ie[3]+=ft,ie[4]+=yt,ie[5]+=We,ie[6]+=gi,ie[7]+=St,ne+=64,le-=64}return ne}var I=function(){function Q(){this.digestLength=g.digestLength,this.blockSize=g.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return Q.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},Q.prototype.clean=function(){for(var ie=0;ie0){for(;this.bufferLength<64&&re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;64===this.bufferLength&&(j(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(re>=64&&(ne=j(this.temp,this.state,ie,ne,re),re%=64);re>0;)this.buffer[this.bufferLength++]=ie[ne++],re--;return this},Q.prototype.finish=function(ie){if(!this.finished){var re=this.bytesHashed,ne=this.bufferLength,le=re/536870912|0,xe=re<<3,Ae=re%64<56?64:128;this.buffer[ne]=128;for(var Be=ne+1;Be>>24&255,this.buffer[Ae-7]=le>>>16&255,this.buffer[Ae-6]=le>>>8&255,this.buffer[Ae-5]=le>>>0&255,this.buffer[Ae-4]=xe>>>24&255,this.buffer[Ae-3]=xe>>>16&255,this.buffer[Ae-2]=xe>>>8&255,this.buffer[Ae-1]=xe>>>0&255,j(this.temp,this.state,this.buffer,0,Ae),this.finished=!0}for(Be=0;Be<8;Be++)ie[4*Be+0]=this.state[Be]>>>24&255,ie[4*Be+1]=this.state[Be]>>>16&255,ie[4*Be+2]=this.state[Be]>>>8&255,ie[4*Be+3]=this.state[Be]>>>0&255;return this},Q.prototype.digest=function(){var ie=new Uint8Array(this.digestLength);return this.finish(ie),ie},Q.prototype._saveState=function(ie){for(var re=0;rethis.blockSize)(new I).update(ie).finish(re).clean();else for(var ne=0;ne1&&ie.update(Q),re&&ie.update(re),ie.update(ne),ie.finish(Q),ne[0]++}g.HMAC=O,g.hash=Y,g.default=Y,g.hmac=$;var F=new Uint8Array(g.digestLength);g.hkdf=function L(Q,ie,re,ne){void 0===ie&&(ie=F),void 0===ne&&(ne=32);for(var le=new Uint8Array([1]),xe=$(ie,Q),Ae=new O(xe),Be=new Uint8Array(Ae.digestLength),ft=Be.length,yt=new Uint8Array(ne),We=0;We>>24&255,Ae[1]=gi>>>16&255,Ae[2]=gi>>>8&255,Ae[3]=gi>>>0&255,le.reset(),le.update(ie),le.update(Ae),le.finish(ft);for(var St=0;St=L.status}function O(F){try{F.dispatchEvent(new MouseEvent("click"))}catch(q){var L=document.createEvent("MouseEvents");L.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),F.dispatchEvent(L)}}var Y="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,$=Y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),G=Y.saveAs||("object"!=typeof window||window!==Y?function(){}:"download"in HTMLAnchorElement.prototype&&!$?function(F,L,q){var Q=Y.URL||Y.webkitURL,ie=document.createElement("a");ie.download=L=L||F.name||"download",ie.rel="noopener","string"==typeof F?(ie.href=F,ie.origin===location.origin?O(ie):I(ie.href)?j(F,L,q):O(ie,ie.target="_blank")):(ie.href=Q.createObjectURL(F),setTimeout(function(){Q.revokeObjectURL(ie.href)},4e4),setTimeout(function(){O(ie)},0))}:"msSaveOrOpenBlob"in navigator?function(F,L,q){if(L=L||F.name||"download","string"!=typeof F)navigator.msSaveOrOpenBlob(function B(F,L){return void 0===L?L={autoBom:!1}:"object"!=typeof L&&(console.warn("Deprecated: Expected third argument to be a object"),L={autoBom:!L}),L.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(F.type)?new Blob(["\ufeff",F],{type:F.type}):F}(F,q),L);else if(I(F))j(F,L,q);else{var Q=document.createElement("a");Q.href=F,Q.target="_blank",setTimeout(function(){O(Q)})}}:function(F,L,q,Q){if((Q=Q||open("","_blank"))&&(Q.document.title=Q.document.body.innerText="downloading..."),"string"==typeof F)return j(F,L,q);var ie="application/octet-stream"===F.type,re=/constructor/i.test(Y.HTMLElement)||Y.safari,ne=/CriOS\/[\d]+/.test(navigator.userAgent);if((ne||ie&&re||$)&&"undefined"!=typeof FileReader){var le=new FileReader;le.onloadend=function(){var Be=le.result;Be=ne?Be:Be.replace(/^data:[^;]*;/,"data:attachment/file;"),Q?Q.location.href=Be:location=Be,Q=null},le.readAsDataURL(F)}else{var xe=Y.URL||Y.webkitURL,Ae=xe.createObjectURL(F);Q?Q.location=Ae:location.href=Ae,Q=null,setTimeout(function(){xe.revokeObjectURL(Ae)},4e4)}});Y.saveAs=G.saveAs=G,z.exports=G}.apply(W,[]))&&(z.exports=g)},1869:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);class g extends T.L{constructor(j,I,O){super(),this.parent=j,this.outerValue=I,this.outerIndex=O,this.index=0}_next(j){this.parent.notifyNext(this.outerValue,j,this.outerIndex,this.index++,this)}_error(j){this.parent.notifyError(j,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,W,E)=>{"use strict";E.d(W,{P:()=>I});var T=E(8896),g=E(1086),B=E(1737);class I{constructor(Y,$,G){this.kind=Y,this.value=$,this.error=G,this.hasValue="N"===Y}observe(Y){switch(this.kind){case"N":return Y.next&&Y.next(this.value);case"E":return Y.error&&Y.error(this.error);case"C":return Y.complete&&Y.complete()}}do(Y,$,G){switch(this.kind){case"N":return Y&&Y(this.value);case"E":return $&&$(this.error);case"C":return G&&G()}}accept(Y,$,G){return Y&&"function"==typeof Y.next?this.observe(Y):this.do(Y,$,G)}toObservable(){switch(this.kind){case"N":return(0,g.of)(this.value);case"E":return(0,B._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(Y){return void 0!==Y?new I("N",Y):I.undefinedValueNotification}static createError(Y){return new I("E",void 0,Y)}static createComplete(){return I.completeNotification}}I.completeNotification=new I("C"),I.undefinedValueNotification=new I("N",void 0)},2916:(z,W,E)=>{"use strict";E.d(W,{y:()=>L});var T=E(3489),B=E(7668),j=E(3292),O=E(3821),Y=E(5379);var F=E(2830);let L=(()=>{class Q{constructor(re){this._isScalar=!1,re&&(this._subscribe=re)}lift(re){const ne=new Q;return ne.source=this,ne.operator=re,ne}subscribe(re,ne,le){const{operator:xe}=this,Ae=function I(Q,ie,re){if(Q){if(Q instanceof T.L)return Q;if(Q[B.b])return Q[B.b]()}return Q||ie||re?new T.L(Q,ie,re):new T.L(j.c)}(re,ne,le);if(Ae.add(xe?xe.call(Ae,this.source):this.source||F.v.useDeprecatedSynchronousErrorHandling&&!Ae.syncErrorThrowable?this._subscribe(Ae):this._trySubscribe(Ae)),F.v.useDeprecatedSynchronousErrorHandling&&Ae.syncErrorThrowable&&(Ae.syncErrorThrowable=!1,Ae.syncErrorThrown))throw Ae.syncErrorValue;return Ae}_trySubscribe(re){try{return this._subscribe(re)}catch(ne){F.v.useDeprecatedSynchronousErrorHandling&&(re.syncErrorThrown=!0,re.syncErrorValue=ne),function g(Q){for(;Q;){const{closed:ie,destination:re,isStopped:ne}=Q;if(ie||ne)return!1;Q=re&&re instanceof T.L?re:null}return!0}(re)?re.error(ne):console.warn(ne)}}forEach(re,ne){return new(ne=q(ne))((le,xe)=>{let Ae;Ae=this.subscribe(Be=>{try{re(Be)}catch(ft){xe(ft),Ae&&Ae.unsubscribe()}},xe,le)})}_subscribe(re){const{source:ne}=this;return ne&&ne.subscribe(re)}[O.L](){return this}pipe(...re){return 0===re.length?this:function G(Q){return 0===Q.length?Y.y:1===Q.length?Q[0]:function(re){return Q.reduce((ne,le)=>le(ne),re)}}(re)(this)}toPromise(re){return new(re=q(re))((ne,le)=>{let xe;this.subscribe(Ae=>xe=Ae,Ae=>le(Ae),()=>ne(xe))})}}return Q.create=ie=>new Q(ie),Q})();function q(Q){if(Q||(Q=F.v.Promise||Promise),!Q)throw new Error("no Promise impl found");return Q}},3292:(z,W,E)=>{"use strict";E.d(W,{c:()=>B});var T=E(2830),g=E(2782);const B={closed:!0,next(j){},error(j){if(T.v.useDeprecatedSynchronousErrorHandling)throw j;(0,g.z)(j)},complete(){}}},826:(z,W,E)=>{"use strict";E.d(W,{L:()=>g});var T=E(3489);class g extends T.L{notifyNext(j,I,O,Y,$){this.destination.next(I)}notifyError(j,I){this.destination.error(j)}notifyComplete(j){this.destination.complete()}}},8929:(z,W,E)=>{"use strict";E.d(W,{Yc:()=>Y,xQ:()=>$});var T=E(2916),g=E(3489),B=E(2654),j=E(5279),I=E(5283),O=E(7668);class Y extends g.L{constructor(L){super(L),this.destination=L}}let $=(()=>{class F extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[O.b](){return new Y(this)}lift(q){const Q=new G(this,this);return Q.operator=q,Q}next(q){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:Q}=this,ie=Q.length,re=Q.slice();for(let ne=0;nenew G(L,q),F})();class G extends ${constructor(L,q){super(),this.destination=L,this.source=q}next(L){const{destination:q}=this;q&&q.next&&q.next(L)}error(L){const{destination:q}=this;q&&q.error&&this.destination.error(L)}complete(){const{destination:L}=this;L&&L.complete&&this.destination.complete()}_subscribe(L){const{source:q}=this;return q?this.source.subscribe(L):B.w.EMPTY}}},5283:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});var T=E(2654);class g extends T.w{constructor(j,I){super(),this.subject=j,this.subscriber=I,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,I=j.observers;if(this.subject=null,!I||0===I.length||j.isStopped||j.closed)return;const O=I.indexOf(this.subscriber);-1!==O&&I.splice(O,1)}}},3489:(z,W,E)=>{"use strict";E.d(W,{L:()=>Y});var T=E(7043),g=E(3292),B=E(2654),j=E(7668),I=E(2830),O=E(2782);class Y extends B.w{constructor(F,L,q){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=g.c;break;case 1:if(!F){this.destination=g.c;break}if("object"==typeof F){F instanceof Y?(this.syncErrorThrowable=F.syncErrorThrowable,this.destination=F,F.add(this)):(this.syncErrorThrowable=!0,this.destination=new $(this,F));break}default:this.syncErrorThrowable=!0,this.destination=new $(this,F,L,q)}}[j.b](){return this}static create(F,L,q){const Q=new Y(F,L,q);return Q.syncErrorThrowable=!1,Q}next(F){this.isStopped||this._next(F)}error(F){this.isStopped||(this.isStopped=!0,this._error(F))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(F){this.destination.next(F)}_error(F){this.destination.error(F),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:F}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=F,this}}class $ extends Y{constructor(F,L,q,Q){super(),this._parentSubscriber=F;let ie,re=this;(0,T.m)(L)?ie=L:L&&(ie=L.next,q=L.error,Q=L.complete,L!==g.c&&(re=Object.create(L),(0,T.m)(re.unsubscribe)&&this.add(re.unsubscribe.bind(re)),re.unsubscribe=this.unsubscribe.bind(this))),this._context=re,this._next=ie,this._error=q,this._complete=Q}next(F){if(!this.isStopped&&this._next){const{_parentSubscriber:L}=this;I.v.useDeprecatedSynchronousErrorHandling&&L.syncErrorThrowable?this.__tryOrSetError(L,this._next,F)&&this.unsubscribe():this.__tryOrUnsub(this._next,F)}}error(F){if(!this.isStopped){const{_parentSubscriber:L}=this,{useDeprecatedSynchronousErrorHandling:q}=I.v;if(this._error)q&&L.syncErrorThrowable?(this.__tryOrSetError(L,this._error,F),this.unsubscribe()):(this.__tryOrUnsub(this._error,F),this.unsubscribe());else if(L.syncErrorThrowable)q?(L.syncErrorValue=F,L.syncErrorThrown=!0):(0,O.z)(F),this.unsubscribe();else{if(this.unsubscribe(),q)throw F;(0,O.z)(F)}}}complete(){if(!this.isStopped){const{_parentSubscriber:F}=this;if(this._complete){const L=()=>this._complete.call(this._context);I.v.useDeprecatedSynchronousErrorHandling&&F.syncErrorThrowable?(this.__tryOrSetError(F,L),this.unsubscribe()):(this.__tryOrUnsub(L),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(F,L){try{F.call(this._context,L)}catch(q){if(this.unsubscribe(),I.v.useDeprecatedSynchronousErrorHandling)throw q;(0,O.z)(q)}}__tryOrSetError(F,L,q){if(!I.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{L.call(this._context,q)}catch(Q){return I.v.useDeprecatedSynchronousErrorHandling?(F.syncErrorValue=Q,F.syncErrorThrown=!0,!0):((0,O.z)(Q),!0)}return!1}_unsubscribe(){const{_parentSubscriber:F}=this;this._context=null,this._parentSubscriber=null,F.unsubscribe()}}},2654:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(6688),g=E(7830),B=E(7043);const I=(()=>{function $(G){return Error.call(this),this.message=G?`${G.length} errors occurred during unsubscription:\n${G.map((F,L)=>`${L+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=G,this}return $.prototype=Object.create(Error.prototype),$})();class O{constructor(G){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,G&&(this._unsubscribe=G)}unsubscribe(){let G;if(this.closed)return;let{_parentOrParents:F,_unsubscribe:L,_subscriptions:q}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,F instanceof O)F.remove(this);else if(null!==F)for(let Q=0;QG.concat(F instanceof I?F.errors:F),[])}O.EMPTY=(($=new O).closed=!0,$)},2830:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=!1;const g={Promise:void 0,set useDeprecatedSynchronousErrorHandling(B){if(B){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=B},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,W,E)=>{"use strict";E.d(W,{c:()=>I,N:()=>O});var T=E(8929),g=E(2916),B=E(2654),j=E(4327);class I extends g.y{constructor(L,q){super(),this.source=L,this.subjectFactory=q,this._refCount=0,this._isComplete=!1}_subscribe(L){return this.getSubject().subscribe(L)}getSubject(){const L=this._subject;return(!L||L.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let L=this._connection;return L||(this._isComplete=!1,L=this._connection=new B.w,L.add(this.source.subscribe(new Y(this.getSubject(),this))),L.closed&&(this._connection=null,L=B.w.EMPTY)),L}refCount(){return(0,j.x)()(this)}}const O=(()=>{const F=I.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:F._subscribe},_isComplete:{value:F._isComplete,writable:!0},getSubject:{value:F.getSubject},connect:{value:F.connect},refCount:{value:F.refCount}}})();class Y extends T.Yc{constructor(L,q){super(L),this.connectable=q}_error(L){this._unsubscribe(),super._error(L)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const L=this.connectable;if(L){this.connectable=null;const q=L._connection;L._refCount=0,L._subject=null,L._connection=null,q&&q.unsubscribe()}}}},6053:(z,W,E)=>{"use strict";E.d(W,{aj:()=>Y});var T=E(2866),g=E(6688),B=E(826),j=E(9054),I=E(3009);const O={};function Y(...F){let L=null,q=null;return(0,T.K)(F[F.length-1])&&(q=F.pop()),"function"==typeof F[F.length-1]&&(L=F.pop()),1===F.length&&(0,g.k)(F[0])&&(F=F[0]),(0,I.n)(F,q).lift(new $(L))}class ${constructor(L){this.resultSelector=L}call(L,q){return q.subscribe(new G(L,this.resultSelector))}}class G extends B.L{constructor(L,q){super(L),this.resultSelector=q,this.active=0,this.values=[],this.observables=[]}_next(L){this.values.push(O),this.observables.push(L)}_complete(){const L=this.observables,q=L.length;if(0===q)this.destination.complete();else{this.active=q,this.toRespond=q;for(let Q=0;Q{"use strict";E.d(W,{E:()=>g,c:()=>B});var T=E(2916);const g=new T.y(I=>I.complete());function B(I){return I?function j(I){return new T.y(O=>I.schedule(()=>O.complete()))}(I):g}},5254:(z,W,E)=>{"use strict";E.d(W,{D:()=>re});var T=E(2916),g=E(9249),B=E(2654),j=E(3821),Y=E(6454),$=E(5430),L=E(8955),q=E(8515);function re(ne,le){return le?function ie(ne,le){if(null!=ne){if(function F(ne){return ne&&"function"==typeof ne[j.L]}(ne))return function I(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>{const Be=ne[j.L]();Ae.add(Be.subscribe({next(ft){Ae.add(le.schedule(()=>xe.next(ft)))},error(ft){Ae.add(le.schedule(()=>xe.error(ft)))},complete(){Ae.add(le.schedule(()=>xe.complete()))}}))})),Ae})}(ne,le);if((0,L.t)(ne))return function O(ne,le){return new T.y(xe=>{const Ae=new B.w;return Ae.add(le.schedule(()=>ne.then(Be=>{Ae.add(le.schedule(()=>{xe.next(Be),Ae.add(le.schedule(()=>xe.complete()))}))},Be=>{Ae.add(le.schedule(()=>xe.error(Be)))}))),Ae})}(ne,le);if((0,q.z)(ne))return(0,Y.r)(ne,le);if(function Q(ne){return ne&&"function"==typeof ne[$.hZ]}(ne)||"string"==typeof ne)return function G(ne,le){if(!ne)throw new Error("Iterable cannot be null");return new T.y(xe=>{const Ae=new B.w;let Be;return Ae.add(()=>{Be&&"function"==typeof Be.return&&Be.return()}),Ae.add(le.schedule(()=>{Be=ne[$.hZ](),Ae.add(le.schedule(function(){if(xe.closed)return;let ft,yt;try{const We=Be.next();ft=We.value,yt=We.done}catch(We){return void xe.error(We)}yt?xe.complete():(xe.next(ft),this.schedule())}))})),Ae})}(ne,le)}throw new TypeError((null!==ne&&typeof ne||ne)+" is not observable")}(ne,le):ne instanceof T.y?ne:new T.y((0,g.s)(ne))}},3009:(z,W,E)=>{"use strict";E.d(W,{n:()=>j});var T=E(2916),g=E(3650),B=E(6454);function j(I,O){return O?(0,B.r)(I,O):new T.y((0,g.V)(I))}},6787:(z,W,E)=>{"use strict";E.d(W,{T:()=>I});var T=E(2916),g=E(2866),B=E(9146),j=E(3009);function I(...O){let Y=Number.POSITIVE_INFINITY,$=null,G=O[O.length-1];return(0,g.K)(G)?($=O.pop(),O.length>1&&"number"==typeof O[O.length-1]&&(Y=O.pop())):"number"==typeof G&&(Y=O.pop()),null===$&&1===O.length&&O[0]instanceof T.y?O[0]:(0,B.J)(Y)((0,j.n)(O,$))}},1086:(z,W,E)=>{"use strict";E.d(W,{of:()=>j});var T=E(2866),g=E(3009),B=E(6454);function j(...I){let O=I[I.length-1];return(0,T.K)(O)?(I.pop(),(0,B.r)(I,O)):(0,g.n)(I)}},1946:(z,W,E)=>{"use strict";E.d(W,{S3:()=>I});var T=E(6688),g=E(3009),B=E(826),j=E(9054);function I(...$){if(1===$.length){if(!(0,T.k)($[0]))return $[0];$=$[0]}return(0,g.n)($,void 0).lift(new O)}class O{call(G,F){return F.subscribe(new Y(G))}}class Y extends B.L{constructor(G){super(G),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(G){this.observables.push(G)}_complete(){const G=this.observables,F=G.length;if(0===F)this.destination.complete();else{for(let L=0;L{"use strict";E.d(W,{_:()=>g});var T=E(2916);function g(j,I){return new T.y(I?O=>I.schedule(B,0,{error:j,subscriber:O}):O=>O.error(j))}function B({error:j,subscriber:I}){I.error(j)}},7221:(z,W,E)=>{"use strict";E.d(W,{K:()=>j});var T=E(826),g=E(1869),B=E(9054);function j(Y){return function(G){const F=new I(Y),L=G.lift(F);return F.caught=L}}class I{constructor($){this.selector=$}call($,G){return G.subscribe(new O($,this.selector,this.caught))}}class O extends T.L{constructor($,G,F){super($),this.selector=G,this.caught=F}error($){if(!this.isStopped){let G;try{G=this.selector($,this.caught)}catch(q){return void super.error(q)}this._unsubscribeAndRecycle();const F=new g.d(this,void 0,void 0);this.add(F);const L=(0,B.D)(this,G,void 0,void 0,F);L!==F&&this.add(L)}}}},1406:(z,W,E)=>{"use strict";E.d(W,{b:()=>g});var T=E(1709);function g(B,j){return(0,T.zg)(B,j,1)}},13:(z,W,E)=>{"use strict";E.d(W,{b:()=>B});var T=E(3489),g=E(353);function B(Y,$=g.P){return G=>G.lift(new j(Y,$))}class j{constructor($,G){this.dueTime=$,this.scheduler=G}call($,G){return G.subscribe(new I($,this.dueTime,this.scheduler))}}class I extends T.L{constructor($,G,F){super($),this.dueTime=G,this.scheduler=F,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next($){this.clearDebounce(),this.lastValue=$,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(O,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:$}=this;this.lastValue=null,this.hasValue=!1,this.destination.next($)}}clearDebounce(){const $=this.debouncedSubscription;null!==$&&(this.remove($),$.unsubscribe(),this.debouncedSubscription=null)}}function O(Y){Y.debouncedNext()}},7314:(z,W,E)=>{"use strict";E.d(W,{d:()=>g});var T=E(3489);function g(I=null){return O=>O.lift(new B(I))}class B{constructor(O){this.defaultValue=O}call(O,Y){return Y.subscribe(new j(O,this.defaultValue))}}class j extends T.L{constructor(O,Y){super(O),this.defaultValue=Y,this.isEmpty=!0}_next(O){this.isEmpty=!1,this.destination.next(O)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,W,E)=>{"use strict";E.d(W,{g:()=>I});var T=E(353),g=E(2697),B=E(3489),j=E(9312);function I(G,F=T.P){const q=(0,g.J)(G)?+G-F.now():Math.abs(G);return Q=>Q.lift(new O(q,F))}class O{constructor(F,L){this.delay=F,this.scheduler=L}call(F,L){return L.subscribe(new Y(F,this.delay,this.scheduler))}}class Y extends B.L{constructor(F,L,q){super(F),this.delay=L,this.scheduler=q,this.queue=[],this.active=!1,this.errored=!1}static dispatch(F){const L=F.source,q=L.queue,Q=F.scheduler,ie=F.destination;for(;q.length>0&&q[0].time-Q.now()<=0;)q.shift().notification.observe(ie);if(q.length>0){const re=Math.max(0,q[0].time-Q.now());this.schedule(F,re)}else this.unsubscribe(),L.active=!1}_schedule(F){this.active=!0,this.destination.add(F.schedule(Y.dispatch,this.delay,{source:this,destination:this.destination,scheduler:F}))}scheduleNotification(F){if(!0===this.errored)return;const L=this.scheduler,q=new $(L.now()+this.delay,F);this.queue.push(q),!1===this.active&&this._schedule(L)}_next(F){this.scheduleNotification(j.P.createNext(F))}_error(F){this.errored=!0,this.queue=[],this.destination.error(F),this.unsubscribe()}_complete(){this.scheduleNotification(j.P.createComplete()),this.unsubscribe()}}class ${constructor(F,L){this.time=F,this.notification=L}}},2198:(z,W,E)=>{"use strict";E.d(W,{h:()=>g});var T=E(3489);function g(I,O){return function($){return $.lift(new B(I,O))}}class B{constructor(O,Y){this.predicate=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.predicate,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.predicate=Y,this.thisArg=$,this.count=0}_next(O){let Y;try{Y=this.predicate.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}Y&&this.destination.next(O)}}},7224:(z,W,E)=>{"use strict";E.d(W,{P:()=>Y});var T=E(4450),g=E(2198),B=E(2986),j=E(7314),I=E(4907),O=E(5379);function Y($,G){const F=arguments.length>=2;return L=>L.pipe($?(0,g.h)((q,Q)=>$(q,Q,L)):O.y,(0,B.q)(1),F?(0,j.d)(G):(0,I.T)(()=>new T.K))}},4850:(z,W,E)=>{"use strict";E.d(W,{U:()=>g});var T=E(3489);function g(I,O){return function($){if("function"!=typeof I)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return $.lift(new B(I,O))}}class B{constructor(O,Y){this.project=O,this.thisArg=Y}call(O,Y){return Y.subscribe(new j(O,this.project,this.thisArg))}}class j extends T.L{constructor(O,Y,$){super(O),this.project=Y,this.count=0,this.thisArg=$||this}_next(O){let Y;try{Y=this.project.call(this.thisArg,O,this.count++)}catch($){return void this.destination.error($)}this.destination.next(Y)}}},9146:(z,W,E)=>{"use strict";E.d(W,{J:()=>B});var T=E(1709),g=E(5379);function B(j=Number.POSITIVE_INFINITY){return(0,T.zg)(g.y,j)}},1709:(z,W,E)=>{"use strict";E.d(W,{zg:()=>O});var T=E(9054),g=E(826),B=E(1869),j=E(4850),I=E(5254);function O(G,F,L=Number.POSITIVE_INFINITY){return"function"==typeof F?q=>q.pipe(O((Q,ie)=>(0,I.D)(G(Q,ie)).pipe((0,j.U)((re,ne)=>F(Q,re,ie,ne))),L)):("number"==typeof F&&(L=F),q=>q.lift(new Y(G,L)))}class Y{constructor(F,L=Number.POSITIVE_INFINITY){this.project=F,this.concurrent=L}call(F,L){return L.subscribe(new $(F,this.project,this.concurrent))}}class $ extends g.L{constructor(F,L,q=Number.POSITIVE_INFINITY){super(F),this.project=L,this.concurrent=q,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(F){this.active0?this._next(L.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,W,E)=>{"use strict";E.d(W,{x:()=>g});var T=E(3489);function g(){return function(O){return O.lift(new B(O))}}class B{constructor(O){this.connectable=O}call(O,Y){const{connectable:$}=this;$._refCount++;const G=new j(O,$),F=Y.subscribe(G);return G.closed||(G.connection=$.connect()),F}}class j extends T.L{constructor(O,Y){super(O),this.connectable=Y}_unsubscribe(){const{connectable:O}=this;if(!O)return void(this.connection=null);this.connectable=null;const Y=O._refCount;if(Y<=0)return void(this.connection=null);if(O._refCount=Y-1,Y>1)return void(this.connection=null);const{connection:$}=this,G=O._connection;this.connection=null,G&&(!$||G===$)&&G.unsubscribe()}}},2474:(z,W,E)=>{"use strict";E.d(W,{B:()=>Y});var T=E(1762);class B{constructor(G,F){this.subjectFactory=G,this.selector=F}call(G,F){const{selector:L}=this,q=this.subjectFactory(),Q=L(q).subscribe(G);return Q.add(F.subscribe(q)),Q}}var j=E(4327),I=E(8929);function O(){return new I.xQ}function Y(){return $=>(0,j.x)()(function g($,G){return function(L){let q;if(q="function"==typeof $?$:function(){return $},"function"==typeof G)return L.lift(new B(q,G));const Q=Object.create(L,T.N);return Q.source=L,Q.subjectFactory=q,Q}}(O)($))}},7545:(z,W,E)=>{"use strict";E.d(W,{w:()=>O});var T=E(826),g=E(1869),B=E(9054),j=E(4850),I=E(5254);function O(G,F){return"function"==typeof F?L=>L.pipe(O((q,Q)=>(0,I.D)(G(q,Q)).pipe((0,j.U)((ie,re)=>F(q,ie,Q,re))))):L=>L.lift(new Y(G))}class Y{constructor(F){this.project=F}call(F,L){return L.subscribe(new $(F,this.project))}}class $ extends T.L{constructor(F,L){super(F),this.project=L,this.index=0}_next(F){let L;const q=this.index++;try{L=this.project(F,q)}catch(Q){return void this.destination.error(Q)}this._innerSub(L,F,q)}_innerSub(F,L,q){const Q=this.innerSubscription;Q&&Q.unsubscribe();const ie=new g.d(this,L,q),re=this.destination;re.add(ie),this.innerSubscription=(0,B.D)(this,F,void 0,void 0,ie),this.innerSubscription!==ie&&re.add(this.innerSubscription)}_complete(){const{innerSubscription:F}=this;(!F||F.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(F){this.destination.remove(F),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(F,L,q,Q,ie){this.destination.next(L)}}},2986:(z,W,E)=>{"use strict";E.d(W,{q:()=>j});var T=E(3489),g=E(4231),B=E(8896);function j(Y){return $=>0===Y?(0,B.c)():$.lift(new I(Y))}class I{constructor($){if(this.total=$,this.total<0)throw new g.W}call($,G){return G.subscribe(new O($,this.total))}}class O extends T.L{constructor($,G){super($),this.total=G,this.count=0}_next($){const G=this.total,F=++this.count;F<=G&&(this.destination.next($),F===G&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,W,E)=>{"use strict";E.d(W,{b:()=>j});var T=E(3489);function g(){}var B=E(7043);function j(Y,$,G){return function(L){return L.lift(new I(Y,$,G))}}class I{constructor($,G,F){this.nextOrObserver=$,this.error=G,this.complete=F}call($,G){return G.subscribe(new O($,this.nextOrObserver,this.error,this.complete))}}class O extends T.L{constructor($,G,F,L){super($),this._tapNext=g,this._tapError=g,this._tapComplete=g,this._tapError=F||g,this._tapComplete=L||g,(0,B.m)(G)?(this._context=this,this._tapNext=G):G&&(this._context=G,this._tapNext=G.next||g,this._tapError=G.error||g,this._tapComplete=G.complete||g)}_next($){try{this._tapNext.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.next($)}_error($){try{this._tapError.call(this._context,$)}catch(G){return void this.destination.error(G)}this.destination.error($)}_complete(){try{this._tapComplete.call(this._context)}catch($){return void this.destination.error($)}return this.destination.complete()}}},4907:(z,W,E)=>{"use strict";E.d(W,{T:()=>B});var T=E(4450),g=E(3489);function B(Y=O){return $=>$.lift(new j(Y))}class j{constructor($){this.errorFactory=$}call($,G){return G.subscribe(new I($,this.errorFactory))}}class I extends g.L{constructor($,G){super($),this.errorFactory=G,this.hasValue=!1}_next($){this.hasValue=!0,this.destination.next($)}_complete(){if(this.hasValue)return this.destination.complete();{let $;try{$=this.errorFactory()}catch(G){$=G}this.destination.error($)}}}function O(){return new T.K}},6227:(z,W,E)=>{"use strict";E.d(W,{V:()=>L});var T=E(353);const B=(()=>{function q(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return q.prototype=Object.create(Error.prototype),q})();var j=E(2697),I=E(826),O=E(9054);class ${constructor(Q,ie,re,ne){this.waitFor=Q,this.absoluteTimeout=ie,this.withObservable=re,this.scheduler=ne}call(Q,ie){return ie.subscribe(new G(Q,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class G extends I.L{constructor(Q,ie,re,ne,le){super(Q),this.absoluteTimeout=ie,this.waitFor=re,this.withObservable=ne,this.scheduler=le,this.action=null,this.scheduleTimeout()}static dispatchTimeout(Q){const{withObservable:ie}=Q;Q._unsubscribeAndRecycle(),Q.add((0,O.D)(Q,ie))}scheduleTimeout(){const{action:Q}=this;Q?this.action=Q.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(G.dispatchTimeout,this.waitFor,this))}_next(Q){this.absoluteTimeout||this.scheduleTimeout(),super._next(Q)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var F=E(1737);function L(q,Q=T.P){return function Y(q,Q,ie=T.P){return re=>{let ne=(0,j.J)(q),le=ne?+q-ie.now():Math.abs(q);return re.lift(new $(le,ne,Q,ie))}}(q,(0,F._)(new B),Q)}},6454:(z,W,E)=>{"use strict";E.d(W,{r:()=>B});var T=E(2916),g=E(2654);function B(j,I){return new T.y(O=>{const Y=new g.w;let $=0;return Y.add(I.schedule(function(){$!==j.length?(O.next(j[$++]),O.closed||Y.add(this.schedule())):O.complete()})),Y})}},6686:(z,W,E)=>{"use strict";E.d(W,{o:()=>B});var T=E(2654);class g extends T.w{constructor(I,O){super()}schedule(I,O=0){return this}}class B extends g{constructor(I,O){super(I,O),this.scheduler=I,this.work=O,this.pending=!1}schedule(I,O=0){if(this.closed)return this;this.state=I;const Y=this.id,$=this.scheduler;return null!=Y&&(this.id=this.recycleAsyncId($,Y,O)),this.pending=!0,this.delay=O,this.id=this.id||this.requestAsyncId($,this.id,O),this}requestAsyncId(I,O,Y=0){return setInterval(I.flush.bind(I,this),Y)}recycleAsyncId(I,O,Y=0){if(null!==Y&&this.delay===Y&&!1===this.pending)return O;clearInterval(O)}execute(I,O){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Y=this._execute(I,O);if(Y)return Y;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(I,O){let $,Y=!1;try{this.work(I)}catch(G){Y=!0,$=!!G&&G||new Error(G)}if(Y)return this.unsubscribe(),$}_unsubscribe(){const I=this.id,O=this.scheduler,Y=O.actions,$=Y.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==$&&Y.splice($,1),null!=I&&(this.id=this.recycleAsyncId(O,I,null)),this.delay=null}}},2268:(z,W,E)=>{"use strict";E.d(W,{v:()=>g});let T=(()=>{class B{constructor(I,O=B.now){this.SchedulerAction=I,this.now=O}schedule(I,O=0,Y){return new this.SchedulerAction(this,I).schedule(Y,O)}}return B.now=()=>Date.now(),B})();class g extends T{constructor(j,I=T.now){super(j,()=>g.delegate&&g.delegate!==this?g.delegate.now():I()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,I=0,O){return g.delegate&&g.delegate!==this?g.delegate.schedule(j,I,O):super.schedule(j,I,O)}flush(j){const{actions:I}=this;if(this.active)return void I.push(j);let O;this.active=!0;do{if(O=j.execute(j.state,j.delay))break}while(j=I.shift());if(this.active=!1,O){for(;j=I.shift();)j.unsubscribe();throw O}}}},353:(z,W,E)=>{"use strict";E.d(W,{P:()=>B});var T=E(6686);const B=new(E(2268).v)(T.o)},5430:(z,W,E)=>{"use strict";E.d(W,{hZ:()=>g});const g=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,W,E)=>{"use strict";E.d(W,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,W,E)=>{"use strict";E.d(W,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,W,E)=>{"use strict";E.d(W,{W:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return B.prototype=Object.create(Error.prototype),B})()},4450:(z,W,E)=>{"use strict";E.d(W,{K:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return B.prototype=Object.create(Error.prototype),B})()},5279:(z,W,E)=>{"use strict";E.d(W,{N:()=>g});const g=(()=>{function B(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return B.prototype=Object.create(Error.prototype),B})()},2782:(z,W,E)=>{"use strict";function T(g){setTimeout(()=>{throw g},0)}E.d(W,{z:()=>T})},5379:(z,W,E)=>{"use strict";function T(g){return g}E.d(W,{y:()=>T})},6688:(z,W,E)=>{"use strict";E.d(W,{k:()=>T});const T=Array.isArray||(g=>g&&"number"==typeof g.length)},8515:(z,W,E)=>{"use strict";E.d(W,{z:()=>T});const T=g=>g&&"number"==typeof g.length&&"function"!=typeof g},2697:(z,W,E)=>{"use strict";function T(g){return g instanceof Date&&!isNaN(+g)}E.d(W,{J:()=>T})},7043:(z,W,E)=>{"use strict";function T(g){return"function"==typeof g}E.d(W,{m:()=>T})},7830:(z,W,E)=>{"use strict";function T(g){return null!==g&&"object"==typeof g}E.d(W,{K:()=>T})},8955:(z,W,E)=>{"use strict";function T(g){return!!g&&"function"!=typeof g.subscribe&&"function"==typeof g.then}E.d(W,{t:()=>T})},2866:(z,W,E)=>{"use strict";function T(g){return g&&"function"==typeof g.schedule}E.d(W,{K:()=>T})},9249:(z,W,E)=>{"use strict";E.d(W,{s:()=>L});var T=E(3650),g=E(2782),j=E(5430),O=E(3821),$=E(8515),G=E(8955),F=E(7830);const L=q=>{if(q&&"function"==typeof q[O.L])return(q=>Q=>{const ie=q[O.L]();if("function"!=typeof ie.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ie.subscribe(Q)})(q);if((0,$.z)(q))return(0,T.V)(q);if((0,G.t)(q))return(q=>Q=>(q.then(ie=>{Q.closed||(Q.next(ie),Q.complete())},ie=>Q.error(ie)).then(null,g.z),Q))(q);if(q&&"function"==typeof q[j.hZ])return(q=>Q=>{const ie=q[j.hZ]();for(;;){const re=ie.next();if(re.done){Q.complete();break}if(Q.next(re.value),Q.closed)break}return"function"==typeof ie.return&&Q.add(()=>{ie.return&&ie.return()}),Q})(q);{const ie=`You provided ${(0,F.K)(q)?"an invalid object":`'${q}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ie)}}},3650:(z,W,E)=>{"use strict";E.d(W,{V:()=>T});const T=g=>B=>{for(let j=0,I=g.length;j{"use strict";E.d(W,{D:()=>j});var T=E(1869),g=E(9249),B=E(2916);function j(I,O,Y,$,G=new T.d(I,Y,$)){if(!G.closed)return O instanceof B.y?O.subscribe(G):(0,g.s)(O)(G)}},655:(z,W,E)=>{"use strict";function $(oe,he,pe,ue){return new(pe||(pe=Promise))(function(ce,nt){function Tt(tt){try{ze(ue.next(tt))}catch(yn){nt(yn)}}function Bi(tt){try{ze(ue.throw(tt))}catch(yn){nt(yn)}}function ze(tt){tt.done?ce(tt.value):function we(ce){return ce instanceof pe?ce:new pe(function(nt){nt(ce)})}(tt.value).then(Tt,Bi)}ze((ue=ue.apply(oe,he||[])).next())})}E.d(W,{mG:()=>$})},9808:(z,W,E)=>{"use strict";E.d(W,{mr:()=>Ae,Ov:()=>Bf,ez:()=>Wl,K0:()=>Y,Do:()=>ft,V_:()=>F,Ye:()=>yt,S$:()=>le,mk:()=>Pr,sg:()=>bi,O5:()=>$i,PC:()=>Yd,RF:()=>Li,n9:()=>Qi,b0:()=>Be,lw:()=>$,EM:()=>es,JF:()=>jt,NF:()=>yi,w_:()=>O,bD:()=>ro,q:()=>B,Mx:()=>eo,HT:()=>I});var T=E(5e3);let g=null;function B(){return g}function I(H){g||(g=H)}class O{}const Y=new T.OlP("DocumentToken");let $=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function G(){return(0,T.LFG)(L)}()},providedIn:"platform"}),H})();const F=new T.OlP("Location Initialized");let L=(()=>{class H extends ${constructor(M){super(),this._doc=M,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return B().getBaseHref(this._doc)}onPopState(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",M,!1),()=>V.removeEventListener("popstate",M)}onHashChange(M){const V=B().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",M,!1),()=>V.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,V,X){q()?this._history.pushState(M,V,X):this.location.hash=X}replaceState(M,V,X){q()?this._history.replaceState(M,V,X):this.location.hash=X}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(Y))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function Q(){return new L((0,T.LFG)(Y))}()},providedIn:"platform"}),H})();function q(){return!!window.history.pushState}function ie(H,k){if(0==H.length)return k;if(0==k.length)return H;let M=0;return H.endsWith("/")&&M++,k.startsWith("/")&&M++,2==M?H+k.substring(1):1==M?H+k:H+"/"+k}function re(H){const k=H.match(/#|\?|$/),M=k&&k.index||H.length;return H.slice(0,M-("/"===H[M-1]?1:0))+H.slice(M)}function ne(H){return H&&"?"!==H[0]?"?"+H:H}let le=(()=>{class H{historyGo(M){throw new Error("Not implemented")}}return H.\u0275fac=function(M){return new(M||H)},H.\u0275prov=T.Yz7({token:H,factory:function(){return function xe(H){const k=(0,T.LFG)(Y).location;return new Be((0,T.LFG)($),k&&k.origin||"")}()},providedIn:"root"}),H})();const Ae=new T.OlP("appBaseHref");let Be=(()=>{class H extends le{constructor(M,V){if(super(),this._platformLocation=M,this._removeListenerFns=[],null==V&&(V=this._platformLocation.getBaseHrefFromDOM()),null==V)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=V}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 ie(this._baseHref,M)}path(M=!1){const V=this._platformLocation.pathname+ne(this._platformLocation.search),X=this._platformLocation.hash;return X&&M?`${V}${X}`:V}pushState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){const me=this.prepareExternalUrl(X+ne(de));this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),ft=(()=>{class H extends le{constructor(M,V){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=V&&(this._baseHref=V)}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}path(M=!1){let V=this._platformLocation.hash;return null==V&&(V="#"),V.length>0?V.substring(1):V}prepareExternalUrl(M){const V=ie(this._baseHref,M);return V.length>0?"#"+V:V}pushState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.pushState(M,V,me)}replaceState(M,V,X,de){let me=this.prepareExternalUrl(X+ne(de));0==me.length&&(me=this._platformLocation.pathname),this._platformLocation.replaceState(M,V,me)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformLocation).historyGo)||void 0===X||X.call(V,M)}}return H.\u0275fac=function(M){return new(M||H)(T.LFG($),T.LFG(Ae,8))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})(),yt=(()=>{class H{constructor(M,V){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=M;const X=this._platformStrategy.getBaseHref();this._platformLocation=V,this._baseHref=re(St(X)),this._platformStrategy.onPopState(de=>{this._subject.emit({url:this.path(!0),pop:!0,state:de.state,type:de.type})})}path(M=!1){return this.normalize(this._platformStrategy.path(M))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(M,V=""){return this.path()==this.normalize(M+ne(V))}normalize(M){return H.stripTrailingSlash(function gi(H,k){return H&&k.startsWith(H)?k.substring(H.length):k}(this._baseHref,St(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._platformStrategy.prepareExternalUrl(M)}go(M,V="",X=null){this._platformStrategy.pushState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}replaceState(M,V="",X=null){this._platformStrategy.replaceState(X,"",M,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+ne(V)),X)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(M=0){var V,X;null===(X=(V=this._platformStrategy).historyGo)||void 0===X||X.call(V,M)}onUrlChange(M){this._urlChangeListeners.push(M),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}))}_notifyUrlChangeListeners(M="",V){this._urlChangeListeners.forEach(X=>X(M,V))}subscribe(M,V,X){return this._subject.subscribe({next:M,error:V,complete:X})}}return H.normalizeQueryParams=ne,H.joinWithSlash=ie,H.stripTrailingSlash=re,H.\u0275fac=function(M){return new(M||H)(T.LFG(le),T.LFG($))},H.\u0275prov=T.Yz7({token:H,factory:function(){return function We(){return new yt((0,T.LFG)(le),(0,T.LFG)($))}()},providedIn:"root"}),H})();function St(H){return H.replace(/\/index.html$/,"")}var he=(()=>((he=he||{})[he.Zero=0]="Zero",he[he.One=1]="One",he[he.Two=2]="Two",he[he.Few=3]="Few",he[he.Many=4]="Many",he[he.Other=5]="Other",he))();const cr=T.kL8;class Bt{}let Sn=(()=>{class H extends Bt{constructor(M){super(),this.locale=M}getPluralCategory(M,V){switch(cr(V||this.locale)(M)){case he.Zero:return"zero";case he.One:return"one";case he.Two:return"two";case he.Few:return"few";case he.Many:return"many";default:return"other"}}}return H.\u0275fac=function(M){return new(M||H)(T.LFG(T.soG))},H.\u0275prov=T.Yz7({token:H,factory:H.\u0275fac}),H})();function eo(H,k){k=encodeURIComponent(k);for(const M of H.split(";")){const V=M.indexOf("="),[X,de]=-1==V?[M,""]:[M.slice(0,V),M.slice(V+1)];if(X.trim()===k)return decodeURIComponent(de)}return null}let Pr=(()=>{class H{constructor(M,V,X,de){this._iterableDiffers=M,this._keyValueDiffers=V,this._ngEl=X,this._renderer=de,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(M){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof M?M.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(M){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof M?M.split(/\s+/):M,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const M=this._iterableDiffer.diff(this._rawClass);M&&this._applyIterableChanges(M)}else if(this._keyValueDiffer){const M=this._keyValueDiffer.diff(this._rawClass);M&&this._applyKeyValueChanges(M)}}_applyKeyValueChanges(M){M.forEachAddedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachChangedItem(V=>this._toggleClass(V.key,V.currentValue)),M.forEachRemovedItem(V=>{V.previousValue&&this._toggleClass(V.key,!1)})}_applyIterableChanges(M){M.forEachAddedItem(V=>{if("string"!=typeof V.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(V.item)}`);this._toggleClass(V.item,!0)}),M.forEachRemovedItem(V=>this._toggleClass(V.item,!1))}_applyClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!0)):Object.keys(M).forEach(V=>this._toggleClass(V,!!M[V])))}_removeClasses(M){M&&(Array.isArray(M)||M instanceof Set?M.forEach(V=>this._toggleClass(V,!1)):Object.keys(M).forEach(V=>this._toggleClass(V,!1)))}_toggleClass(M,V){(M=M.trim())&&M.split(/\s+/g).forEach(X=>{V?this._renderer.addClass(this._ngEl.nativeElement,X):this._renderer.removeClass(this._ngEl.nativeElement,X)})}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),H})();class ra{constructor(k,M,V,X){this.$implicit=k,this.ngForOf=M,this.index=V,this.count=X}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 bi=(()=>{class H{constructor(M,V,X){this._viewContainer=M,this._template=V,this._differs=X,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}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 V=this._viewContainer;M.forEachOperation((X,de,me)=>{if(null==X.previousIndex)V.createEmbeddedView(this._template,new ra(X.item,this._ngForOf,-1,-1),null===me?void 0:me);else if(null==me)V.remove(null===de?void 0:de);else if(null!==de){const Oe=V.get(de);V.move(Oe,me),aa(Oe,X)}});for(let X=0,de=V.length;X{aa(V.get(X.currentIndex),X)})}static ngTemplateContextGuard(M,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),H})();function aa(H,k){H.context.$implicit=k.item}let $i=(()=>{class H{constructor(M,V){this._viewContainer=M,this._context=new Rt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Qd("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Qd("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,V){return!0}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),H})();class Rt{constructor(){this.$implicit=null,this.ngIf=null}}function Qd(H,k){if(k&&!k.createEmbeddedView)throw new Error(`${H} must be a TemplateRef, but received '${(0,T.AaK)(k)}'.`)}class zl{constructor(k,M){this._viewContainerRef=k,this._templateRef=M,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(k){k&&!this._created?this.create():!k&&this._created&&this.destroy()}}let Li=(()=>{class H{constructor(){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||(this._defaultViews=[]),this._defaultViews.push(M)}_matchCase(M){const V=M==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(M){if(this._defaultViews&&M!==this._defaultUsed){this._defaultUsed=M;for(let V=0;V{class H{constructor(M,V,X){this.ngSwitch=X,X._addCase(),this._view=new zl(M,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(Li,9))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),H})(),Yd=(()=>{class H{constructor(M,V,X){this._ngEl=M,this._differs=V,this._renderer=X,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,V){const[X,de]=M.split(".");null!=(V=null!=V&&de?`${V}${de}`:V)?this._renderer.setStyle(this._ngEl.nativeElement,X,V):this._renderer.removeStyle(this._ngEl.nativeElement,X)}_applyChanges(M){M.forEachRemovedItem(V=>this._setStyle(V.key,null)),M.forEachAddedItem(V=>this._setStyle(V.key,V.currentValue)),M.forEachChangedItem(V=>this._setStyle(V.key,V.currentValue))}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},H.\u0275dir=T.lG2({type:H,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),H})();class Jb{createSubscription(k,M){return k.subscribe({next:M,error:V=>{throw V}})}dispose(k){k.unsubscribe()}onDestroy(k){k.unsubscribe()}}class Kb{createSubscription(k,M){return k.then(M,V=>{throw V})}dispose(k){}onDestroy(k){}}const Zb=new Kb,Xb=new Jb;let Bf=(()=>{class H{constructor(M){this._ref=M,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}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,V=>this._updateLatestValue(M,V))}_selectStrategy(M){if((0,T.QGY)(M))return Zb;if((0,T.F4k)(M))return Xb;throw function on(H,k){return new T.vHH(2100,"")}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,V){M===this._obj&&(this._latestValue=V,this._ref.markForCheck())}}return H.\u0275fac=function(M){return new(M||H)(T.Y36(T.sBO,16))},H.\u0275pipe=T.Yjl({name:"async",type:H,pure:!1}),H})(),Wl=(()=>{class H{}return H.\u0275fac=function(M){return new(M||H)},H.\u0275mod=T.oAB({type:H}),H.\u0275inj=T.cJS({providers:[{provide:Bt,useClass:Sn}]}),H})();const ro="browser";function yi(H){return H===ro}let es=(()=>{class H{}return H.\u0275prov=(0,T.Yz7)({token:H,providedIn:"root",factory:()=>new ts((0,T.LFG)(Y),window)}),H})();class ts{constructor(k,M){this.document=k,this.window=M,this.offset=()=>[0,0]}setOffset(k){this.offset=Array.isArray(k)?()=>k:k}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(k){this.supportsScrolling()&&this.window.scrollTo(k[0],k[1])}scrollToAnchor(k){if(!this.supportsScrolling())return;const M=function Yl(H,k){const M=H.getElementById(k)||H.getElementsByName(k)[0];if(M)return M;if("function"==typeof H.createTreeWalker&&H.body&&(H.body.createShadowRoot||H.body.attachShadow)){const V=H.createTreeWalker(H.body,NodeFilter.SHOW_ELEMENT);let X=V.currentNode;for(;X;){const de=X.shadowRoot;if(de){const me=de.getElementById(k)||de.querySelector(`[name="${k}"]`);if(me)return me}X=V.nextNode()}}return null}(this.document,k);M&&(this.scrollToElement(M),M.focus())}setHistoryScrollRestoration(k){if(this.supportScrollRestoration()){const M=this.window.history;M&&M.scrollRestoration&&(M.scrollRestoration=k)}}scrollToElement(k){const M=k.getBoundingClientRect(),V=M.left+this.window.pageXOffset,X=M.top+this.window.pageYOffset,de=this.offset();this.window.scrollTo(V-de[0],X-de[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const k=ao(this.window.history)||ao(Object.getPrototypeOf(this.window.history));return!(!k||!k.writable&&!k.set)}catch(k){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(k){return!1}}}function ao(H){return Object.getOwnPropertyDescriptor(H,"scrollRestoration")}class jt{}},520:(z,W,E)=>{"use strict";E.d(W,{TP:()=>Tt,eN:()=>ce,JF:()=>mi,qT:()=>Ae,WM:()=>F,LE:()=>le,Zn:()=>pe});var T=E(9808),g=E(5e3),B=E(1086),j=E(2916),I=E(1406),O=E(2198),Y=E(4850);class ${}class G{}class F{constructor(ee){this.normalizedNames=new Map,this.lazyUpdate=null,ee?this.lazyInit="string"==typeof ee?()=>{this.headers=new Map,ee.split("\n").forEach(te=>{const ye=te.indexOf(":");if(ye>0){const Ce=te.slice(0,ye),Me=Ce.toLowerCase(),Ee=te.slice(ye+1).trim();this.maybeSetNormalizedName(Ce,Me),this.headers.has(Me)?this.headers.get(Me).push(Ee):this.headers.set(Me,[Ee])}})}:()=>{this.headers=new Map,Object.keys(ee).forEach(te=>{let ye=ee[te];const Ce=te.toLowerCase();"string"==typeof ye&&(ye=[ye]),ye.length>0&&(this.headers.set(Ce,ye),this.maybeSetNormalizedName(te,Ce))})}:this.headers=new Map}has(ee){return this.init(),this.headers.has(ee.toLowerCase())}get(ee){this.init();const te=this.headers.get(ee.toLowerCase());return te&&te.length>0?te[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ee){return this.init(),this.headers.get(ee.toLowerCase())||null}append(ee,te){return this.clone({name:ee,value:te,op:"a"})}set(ee,te){return this.clone({name:ee,value:te,op:"s"})}delete(ee,te){return this.clone({name:ee,value:te,op:"d"})}maybeSetNormalizedName(ee,te){this.normalizedNames.has(te)||this.normalizedNames.set(te,ee)}init(){this.lazyInit&&(this.lazyInit instanceof F?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ee=>this.applyUpdate(ee)),this.lazyUpdate=null))}copyFrom(ee){ee.init(),Array.from(ee.headers.keys()).forEach(te=>{this.headers.set(te,ee.headers.get(te)),this.normalizedNames.set(te,ee.normalizedNames.get(te))})}clone(ee){const te=new F;return te.lazyInit=this.lazyInit&&this.lazyInit instanceof F?this.lazyInit:this,te.lazyUpdate=(this.lazyUpdate||[]).concat([ee]),te}applyUpdate(ee){const te=ee.name.toLowerCase();switch(ee.op){case"a":case"s":let ye=ee.value;if("string"==typeof ye&&(ye=[ye]),0===ye.length)return;this.maybeSetNormalizedName(ee.name,te);const Ce=("a"===ee.op?this.headers.get(te):void 0)||[];Ce.push(...ye),this.headers.set(te,Ce);break;case"d":const Me=ee.value;if(Me){let Ee=this.headers.get(te);if(!Ee)return;Ee=Ee.filter(Ie=>-1===Me.indexOf(Ie)),0===Ee.length?(this.headers.delete(te),this.normalizedNames.delete(te)):this.headers.set(te,Ee)}else this.headers.delete(te),this.normalizedNames.delete(te)}}forEach(ee){this.init(),Array.from(this.normalizedNames.keys()).forEach(te=>ee(this.normalizedNames.get(te),this.headers.get(te)))}}class L{encodeKey(ee){return re(ee)}encodeValue(ee){return re(ee)}decodeKey(ee){return decodeURIComponent(ee)}decodeValue(ee){return decodeURIComponent(ee)}}const Q=/%(\d[a-f0-9])/gi,ie={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function re(_e){return encodeURIComponent(_e).replace(Q,(ee,te)=>{var ye;return null!==(ye=ie[te])&&void 0!==ye?ye:ee})}function ne(_e){return`${_e}`}class le{constructor(ee={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ee.encoder||new L,ee.fromString){if(ee.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function q(_e,ee){const te=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(Ce=>{const Me=Ce.indexOf("="),[Ee,Ie]=-1==Me?[ee.decodeKey(Ce),""]:[ee.decodeKey(Ce.slice(0,Me)),ee.decodeValue(Ce.slice(Me+1))],pt=te.get(Ee)||[];pt.push(Ie),te.set(Ee,pt)}),te}(ee.fromString,this.encoder)}else ee.fromObject?(this.map=new Map,Object.keys(ee.fromObject).forEach(te=>{const ye=ee.fromObject[te];this.map.set(te,Array.isArray(ye)?ye:[ye])})):this.map=null}has(ee){return this.init(),this.map.has(ee)}get(ee){this.init();const te=this.map.get(ee);return te?te[0]:null}getAll(ee){return this.init(),this.map.get(ee)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ee,te){return this.clone({param:ee,value:te,op:"a"})}appendAll(ee){const te=[];return Object.keys(ee).forEach(ye=>{const Ce=ee[ye];Array.isArray(Ce)?Ce.forEach(Me=>{te.push({param:ye,value:Me,op:"a"})}):te.push({param:ye,value:Ce,op:"a"})}),this.clone(te)}set(ee,te){return this.clone({param:ee,value:te,op:"s"})}delete(ee,te){return this.clone({param:ee,value:te,op:"d"})}toString(){return this.init(),this.keys().map(ee=>{const te=this.encoder.encodeKey(ee);return this.map.get(ee).map(ye=>te+"="+this.encoder.encodeValue(ye)).join("&")}).filter(ee=>""!==ee).join("&")}clone(ee){const te=new le({encoder:this.encoder});return te.cloneFrom=this.cloneFrom||this,te.updates=(this.updates||[]).concat(ee),te}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ee=>this.map.set(ee,this.cloneFrom.map.get(ee))),this.updates.forEach(ee=>{switch(ee.op){case"a":case"s":const te=("a"===ee.op?this.map.get(ee.param):void 0)||[];te.push(ne(ee.value)),this.map.set(ee.param,te);break;case"d":if(void 0===ee.value){this.map.delete(ee.param);break}{let ye=this.map.get(ee.param)||[];const Ce=ye.indexOf(ne(ee.value));-1!==Ce&&ye.splice(Ce,1),ye.length>0?this.map.set(ee.param,ye):this.map.delete(ee.param)}}}),this.cloneFrom=this.updates=null)}}class Ae{constructor(){this.map=new Map}set(ee,te){return this.map.set(ee,te),this}get(ee){return this.map.has(ee)||this.map.set(ee,ee.defaultValue()),this.map.get(ee)}delete(ee){return this.map.delete(ee),this}has(ee){return this.map.has(ee)}keys(){return this.map.keys()}}function ft(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function yt(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function We(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class St{constructor(ee,te,ye,Ce){let Me;if(this.url=te,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ee.toUpperCase(),function Be(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ce?(this.body=void 0!==ye?ye:null,Me=Ce):Me=ye,Me&&(this.reportProgress=!!Me.reportProgress,this.withCredentials=!!Me.withCredentials,Me.responseType&&(this.responseType=Me.responseType),Me.headers&&(this.headers=Me.headers),Me.context&&(this.context=Me.context),Me.params&&(this.params=Me.params)),this.headers||(this.headers=new F),this.context||(this.context=new Ae),this.params){const Ee=this.params.toString();if(0===Ee.length)this.urlWithParams=te;else{const Ie=te.indexOf("?");this.urlWithParams=te+(-1===Ie?"?":IeXt.set(ct,ee.setHeaders[ct]),Zt)),ee.setParams&&(lt=Object.keys(ee.setParams).reduce((Xt,ct)=>Xt.set(ct,ee.setParams[ct]),lt)),new St(ye,Ce,Ee,{params:lt,headers:Zt,context:zn,reportProgress:pt,responseType:Me,withCredentials:Ie})}}var Ze=(()=>((Ze=Ze||{})[Ze.Sent=0]="Sent",Ze[Ze.UploadProgress=1]="UploadProgress",Ze[Ze.ResponseHeader=2]="ResponseHeader",Ze[Ze.DownloadProgress=3]="DownloadProgress",Ze[Ze.Response=4]="Response",Ze[Ze.User=5]="User",Ze))();class oe{constructor(ee,te=200,ye="OK"){this.headers=ee.headers||new F,this.status=void 0!==ee.status?ee.status:te,this.statusText=ee.statusText||ye,this.url=ee.url||null,this.ok=this.status>=200&&this.status<300}}class he extends oe{constructor(ee={}){super(ee),this.type=Ze.ResponseHeader}clone(ee={}){return new he({headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class pe extends oe{constructor(ee={}){super(ee),this.type=Ze.Response,this.body=void 0!==ee.body?ee.body:null}clone(ee={}){return new pe({body:void 0!==ee.body?ee.body:this.body,headers:ee.headers||this.headers,status:void 0!==ee.status?ee.status:this.status,statusText:ee.statusText||this.statusText,url:ee.url||this.url||void 0})}}class ue extends oe{constructor(ee){super(ee,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ee.url||"(unknown url)"}`:`Http failure response for ${ee.url||"(unknown url)"}: ${ee.status} ${ee.statusText}`,this.error=ee.error||null}}function we(_e,ee){return{body:ee,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let ce=(()=>{class _e{constructor(te){this.handler=te}request(te,ye,Ce={}){let Me;if(te instanceof St)Me=te;else{let pt,Zt;pt=Ce.headers instanceof F?Ce.headers:new F(Ce.headers),Ce.params&&(Zt=Ce.params instanceof le?Ce.params:new le({fromObject:Ce.params})),Me=new St(te,ye,void 0!==Ce.body?Ce.body:null,{headers:pt,context:Ce.context,params:Zt,reportProgress:Ce.reportProgress,responseType:Ce.responseType||"json",withCredentials:Ce.withCredentials})}const Ee=(0,B.of)(Me).pipe((0,I.b)(pt=>this.handler.handle(pt)));if(te instanceof St||"events"===Ce.observe)return Ee;const Ie=Ee.pipe((0,O.h)(pt=>pt instanceof pe));switch(Ce.observe||"body"){case"body":switch(Me.responseType){case"arraybuffer":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pt.body}));case"blob":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&!(pt.body instanceof Blob))throw new Error("Response is not a Blob.");return pt.body}));case"text":return Ie.pipe((0,Y.U)(pt=>{if(null!==pt.body&&"string"!=typeof pt.body)throw new Error("Response is not a string.");return pt.body}));default:return Ie.pipe((0,Y.U)(pt=>pt.body))}case"response":return Ie;default:throw new Error(`Unreachable: unhandled observe type ${Ce.observe}}`)}}delete(te,ye={}){return this.request("DELETE",te,ye)}get(te,ye={}){return this.request("GET",te,ye)}head(te,ye={}){return this.request("HEAD",te,ye)}jsonp(te,ye){return this.request("JSONP",te,{params:(new le).append(ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(te,ye={}){return this.request("OPTIONS",te,ye)}patch(te,ye,Ce={}){return this.request("PATCH",te,we(Ce,ye))}post(te,ye,Ce={}){return this.request("POST",te,we(Ce,ye))}put(te,ye,Ce={}){return this.request("PUT",te,we(Ce,ye))}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG($))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class nt{constructor(ee,te){this.next=ee,this.interceptor=te}handle(ee){return this.interceptor.intercept(ee,this.next)}}const Tt=new g.OlP("HTTP_INTERCEPTORS");let Bi=(()=>{class _e{intercept(te,ye){return ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const wn=/^\)\]\}',?\n/;let lr=(()=>{class _e{constructor(te){this.xhrFactory=te}handle(te){if("JSONP"===te.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(ye=>{const Ce=this.xhrFactory.build();if(Ce.open(te.method,te.urlWithParams),te.withCredentials&&(Ce.withCredentials=!0),te.headers.forEach((ct,Pe)=>Ce.setRequestHeader(ct,Pe.join(","))),te.headers.has("Accept")||Ce.setRequestHeader("Accept","application/json, text/plain, */*"),!te.headers.has("Content-Type")){const ct=te.detectContentTypeHeader();null!==ct&&Ce.setRequestHeader("Content-Type",ct)}if(te.responseType){const ct=te.responseType.toLowerCase();Ce.responseType="json"!==ct?ct:"text"}const Me=te.serializeBody();let Ee=null;const Ie=()=>{if(null!==Ee)return Ee;const ct=Ce.statusText||"OK",Pe=new F(Ce.getAllResponseHeaders()),rn=function si(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(Ce)||te.url;return Ee=new he({headers:Pe,status:Ce.status,statusText:ct,url:rn}),Ee},pt=()=>{let{headers:ct,status:Pe,statusText:rn,url:At}=Ie(),ri=null;204!==Pe&&(ri=void 0===Ce.response?Ce.responseText:Ce.response),0===Pe&&(Pe=ri?200:0);let vn=Pe>=200&&Pe<300;if("json"===te.responseType&&"string"==typeof ri){const an=ri;ri=ri.replace(wn,"");try{ri=""!==ri?JSON.parse(ri):null}catch(An){ri=an,vn&&(vn=!1,ri={error:An,text:ri})}}vn?(ye.next(new pe({body:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0})),ye.complete()):ye.error(new ue({error:ri,headers:ct,status:Pe,statusText:rn,url:At||void 0}))},Zt=ct=>{const{url:Pe}=Ie(),rn=new ue({error:ct,status:Ce.status||0,statusText:Ce.statusText||"Unknown Error",url:Pe||void 0});ye.error(rn)};let lt=!1;const zn=ct=>{lt||(ye.next(Ie()),lt=!0);let Pe={type:Ze.DownloadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),"text"===te.responseType&&!!Ce.responseText&&(Pe.partialText=Ce.responseText),ye.next(Pe)},Xt=ct=>{let Pe={type:Ze.UploadProgress,loaded:ct.loaded};ct.lengthComputable&&(Pe.total=ct.total),ye.next(Pe)};return Ce.addEventListener("load",pt),Ce.addEventListener("error",Zt),Ce.addEventListener("timeout",Zt),Ce.addEventListener("abort",Zt),te.reportProgress&&(Ce.addEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.addEventListener("progress",Xt)),Ce.send(Me),ye.next({type:Ze.Sent}),()=>{Ce.removeEventListener("error",Zt),Ce.removeEventListener("abort",Zt),Ce.removeEventListener("load",pt),Ce.removeEventListener("timeout",Zt),te.reportProgress&&(Ce.removeEventListener("progress",zn),null!==Me&&Ce.upload&&Ce.upload.removeEventListener("progress",Xt)),Ce.readyState!==Ce.DONE&&Ce.abort()}})}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.JF))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const Qa=new g.OlP("XSRF_COOKIE_NAME"),Ya=new g.OlP("XSRF_HEADER_NAME");class Ja{}let Sr=(()=>{class _e{constructor(te,ye,Ce){this.doc=te,this.platform=ye,this.cookieName=Ce,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const te=this.doc.cookie||"";return te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(te,this.cookieName),this.lastCookieString=te),this.lastToken}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(T.K0),g.LFG(g.Lbi),g.LFG(Qa))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),cr=(()=>{class _e{constructor(te,ye){this.tokenService=te,this.headerName=ye}intercept(te,ye){const Ce=te.url.toLowerCase();if("GET"===te.method||"HEAD"===te.method||Ce.startsWith("http://")||Ce.startsWith("https://"))return ye.handle(te);const Me=this.tokenService.getToken();return null!==Me&&!te.headers.has(this.headerName)&&(te=te.clone({headers:te.headers.set(this.headerName,Me)})),ye.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(Ja),g.LFG(Ya))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Mr=(()=>{class _e{constructor(te,ye){this.backend=te,this.injector=ye,this.chain=null}handle(te){if(null===this.chain){const ye=this.injector.get(Tt,[]);this.chain=ye.reduceRight((Ce,Me)=>new nt(Ce,Me),this.backend)}return this.chain.handle(te)}}return _e.\u0275fac=function(te){return new(te||_e)(g.LFG(G),g.LFG(g.zs3))},_e.\u0275prov=g.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Ys=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:cr,useClass:Bi}]}}static withOptions(te={}){return{ngModule:_e,providers:[te.cookieName?{provide:Qa,useValue:te.cookieName}:[],te.headerName?{provide:Ya,useValue:te.headerName}:[]]}}}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[cr,{provide:Tt,useExisting:cr,multi:!0},{provide:Ja,useClass:Sr},{provide:Qa,useValue:"XSRF-TOKEN"},{provide:Ya,useValue:"X-XSRF-TOKEN"}]}),_e})(),mi=(()=>{class _e{}return _e.\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=g.oAB({type:_e}),_e.\u0275inj=g.cJS({providers:[ce,{provide:$,useClass:Mr},lr,{provide:G,useExisting:lr}],imports:[[Ys.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},5e3:(z,W,E)=>{"use strict";E.d(W,{deG:()=>_C,tb:()=>Z_,AFp:()=>Op,ip1:()=>Dd,CZH:()=>La,hGG:()=>hf,z2F:()=>Sl,sBO:()=>_A,Sil:()=>jp,_Vd:()=>cl,EJc:()=>tb,SBq:()=>Ui,qLn:()=>gc,vpe:()=>rr,tBr:()=>cc,XFs:()=>Ye,OlP:()=>Ut,zs3:()=>kn,ZZ4:()=>Hl,aQg:()=>Pl,soG:()=>Pd,YKP:()=>w_,h0i:()=>Va,PXZ:()=>lA,R0b:()=>en,FiY:()=>rs,Lbi:()=>Lp,g9A:()=>K_,n_E:()=>Cd,Qsj:()=>sE,FYo:()=>fp,JOm:()=>fr,q3G:()=>qt,tp0:()=>xo,Rgc:()=>pl,dDg:()=>qp,GfV:()=>b_,s_b:()=>gl,ifc:()=>Me,eFA:()=>Yp,G48:()=>gA,Gpc:()=>L,f3M:()=>Gx,_c5:()=>_b,VLi:()=>_E,c2e:()=>eb,zSh:()=>vh,wAp:()=>Ne,vHH:()=>re,EiD:()=>Du,mCW:()=>Mo,qzn:()=>So,JVY:()=>o0,pB0:()=>u0,eBb:()=>c0,L6k:()=>l0,LAX:()=>d0,cg1:()=>td,kL8:()=>tp,yhl:()=>IC,dqk:()=>lt,sIi:()=>Zo,CqO:()=>hw,QGY:()=>jh,F4k:()=>Dm,RDi:()=>ao,AaK:()=>$,z3N:()=>Or,qOj:()=>Hh,TTD:()=>et,_Bn:()=>g_,xp6:()=>jo,uIk:()=>Oc,ekj:()=>Um,Suo:()=>I_,Xpm:()=>Ks,lG2:()=>Ot,Yz7:()=>Vt,cJS:()=>wn,oAB:()=>ia,Yjl:()=>Ft,Y36:()=>Wc,_UZ:()=>Em,GkF:()=>dw,BQk:()=>Hm,ynx:()=>Cr,qZA:()=>Lh,TgZ:()=>Qc,EpF:()=>uw,n5z:()=>ns,Ikx:()=>Xh,LFG:()=>ui,$8M:()=>tc,$Z:()=>Oh,NdJ:()=>Pm,CRH:()=>V_,kcU:()=>qf,O4$:()=>co,oxw:()=>gw,ALo:()=>x_,lcZ:()=>vp,xi3:()=>T_,Dn7:()=>dl,Hsn:()=>Nh,F$t:()=>mw,Q6J:()=>Fh,s9C:()=>Im,VKq:()=>v_,iGM:()=>R_,MAs:()=>Wy,CHM:()=>Nf,oJD:()=>gg,LSH:()=>Ho,Udp:()=>Gh,WFA:()=>Rm,d8E:()=>ep,YNc:()=>Nc,_uU:()=>Vw,Oqu:()=>Ym,hij:()=>$h,AsE:()=>Rs,Gf:()=>k_});var T=E(8929),g=E(2654),B=E(2916),j=E(6787),I=E(2474);function O(h){for(let p in h)if(h[p]===O)return p;throw Error("Could not find renamed property on target object.")}function Y(h,p){for(const m in p)p.hasOwnProperty(m)&&!h.hasOwnProperty(m)&&(h[m]=p[m])}function $(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map($).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const p=h.toString();if(null==p)return""+p;const m=p.indexOf("\n");return-1===m?p:p.substring(0,m)}function G(h,p){return null==h||""===h?null===p?"":p:null==p||""===p?h:h+" "+p}const F=O({__forward_ref__:O});function L(h){return h.__forward_ref__=L,h.toString=function(){return $(this())},h}function q(h){return Q(h)?h():h}function Q(h){return"function"==typeof h&&h.hasOwnProperty(F)&&h.__forward_ref__===L}class re extends Error{constructor(p,m){super(function ne(h,p){return`NG0${Math.abs(h)}${p?": "+p:""}`}(p,m)),this.code=p}}function le(h){return"string"==typeof h?h:null==h?"":String(h)}function xe(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():le(h)}function yt(h,p){const m=p?` in ${p}`:"";throw new re(-201,`No provider for ${xe(h)} found${m}`)}function ze(h,p){null==h&&function tt(h,p,m,_){throw new Error(`ASSERTION ERROR: ${h}`+(null==_?"":` [Expected=> ${m} ${_} ${p} <=Actual]`))}(p,h,null,"!=")}function Vt(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function wn(h){return{providers:h.providers||[],imports:h.imports||[]}}function si(h){return lr(h,Sr)||lr(h,Mr)}function lr(h,p){return h.hasOwnProperty(p)?h[p]:null}function Ja(h){return h&&(h.hasOwnProperty(cr)||h.hasOwnProperty($d))?h[cr]:null}const Sr=O({\u0275prov:O}),cr=O({\u0275inj:O}),Mr=O({ngInjectableDef:O}),$d=O({ngInjectorDef:O});var Ye=(()=>((Ye=Ye||{})[Ye.Default=0]="Default",Ye[Ye.Host=1]="Host",Ye[Ye.Self=2]="Self",Ye[Ye.SkipSelf=4]="SkipSelf",Ye[Ye.Optional=8]="Optional",Ye))();let Ys;function Oi(h){const p=Ys;return Ys=h,p}function Js(h,p,m){const _=si(h);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:m&Ye.Optional?null:void 0!==p?p:void yt($(h),"Injector")}function ee(h){return{toString:h}.toString()}var te=(()=>((te=te||{})[te.OnPush=0]="OnPush",te[te.Default=1]="Default",te))(),Me=(()=>{return(h=Me||(Me={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",Me;var h})();const Ee="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,lt=Ee||"undefined"!=typeof global&&global||Ie||pt,ct={},Pe=[],rn=O({\u0275cmp:O}),At=O({\u0275dir:O}),ri=O({\u0275pipe:O}),vn=O({\u0275mod:O}),an=O({\u0275fac:O}),An=O({__NG_ELEMENT_ID__:O});let If=0;function Ks(h){return ee(()=>{const m={},_={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:m,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===te.OnPush,directiveDefs:null,pipeDefs:null,selectors:h.selectors||Pe,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||Me.Emulated,id:"c",styles:h.styles||Pe,_:null,setInput:null,schemas:h.schemas||null,tView:null},C=h.directives,w=h.features,v=h.pipes;return _.id+=If++,_.inputs=y(h.inputs,m),_.outputs=y(h.outputs),w&&w.forEach(x=>x(_)),_.directiveDefs=C?()=>("function"==typeof C?C():C).map(Ka):null,_.pipeDefs=v?()=>("function"==typeof v?v():v).map(xn):null,_})}function Ka(h){return oi(h)||function je(h){return h[At]||null}(h)}function xn(h){return function Tn(h){return h[ri]||null}(h)}const jl={};function ia(h){return ee(()=>{const p={type:h.type,bootstrap:h.bootstrap||Pe,declarations:h.declarations||Pe,imports:h.imports||Pe,exports:h.exports||Pe,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null};return null!=h.id&&(jl[h.id]=h.type),p})}function y(h,p){if(null==h)return ct;const m={};for(const _ in h)if(h.hasOwnProperty(_)){let C=h[_],w=C;Array.isArray(C)&&(w=C[1],C=C[0]),m[C]=_,p&&(p[C]=w)}return m}const Ot=Ks;function Ft(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,onDestroy:h.type.prototype.ngOnDestroy||null}}function oi(h){return h[rn]||null}function di(h,p){const m=h[vn]||null;if(!m&&!0===p)throw new Error(`Type ${$(h)} does not have '\u0275mod' property.`);return m}function Li(h){return Array.isArray(h)&&"object"==typeof h[1]}function Qi(h){return Array.isArray(h)&&!0===h[1]}function Gl(h){return 0!=(8&h.flags)}function Ul(h){return 2==(2&h.flags)}function Xa(h){return 1==(1&h.flags)}function sn(h){return null!==h.template}function Yd(h){return 0!=(512&h[2])}function cn(h,p){return h.hasOwnProperty(an)?h[an]:null}class Jd{constructor(p,m,_){this.previousValue=p,this.currentValue=m,this.firstChange=_}isFirstChange(){return this.firstChange}}function et(){return io}function io(h){return h.type.prototype.ngOnChanges&&(h.setInput=Kd),no}function no(){const h=ro(this),p=null==h?void 0:h.current;if(p){const m=h.previous;if(m===ct)h.previous=p;else for(let _ in p)m[_]=p[_];h.current=null,this.ngOnChanges(p)}}function Kd(h,p,m,_){const C=ro(h)||function Zd(h,p){return h[Wl]=p}(h,{previous:ct,current:null}),w=C.current||(C.current={}),v=C.previous,x=this.declaredInputs[m],S=v[x];w[x]=new Jd(S&&S.currentValue,p,v===ct),h[_]=p}et.ngInherit=!0;const Wl="__ngSimpleChanges__";function ro(h){return h[Wl]||null}let ts;function ao(h){ts=h}function Yl(){return void 0!==ts?ts:"undefined"!=typeof document?document:void 0}function jt(h){return!!h.listen}const H={createRenderer:(h,p)=>Yl()};function M(h){for(;Array.isArray(h);)h=h[0];return h}function de(h,p){return M(p[h])}function me(h,p){return M(p[h.index])}function Mt(h,p){return h.data[p]}function xt(h,p){return h[p]}function ut(h,p){const m=p[h];return Li(m)?m:m[0]}function gt(h){return 4==(4&h[2])}function mt(h){return 128==(128&h[2])}function Je(h,p){return null==p?null:h[p]}function Yi(h){h[18]=0}function wi(h,p){h[5]+=p;let m=h,_=h[3];for(;null!==_&&(1===p&&1===m[5]||-1===p&&0===m[5]);)_[5]+=p,m=_,_=_[3]}const Ge={lFrame:Un(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function oo(){return Ge.bindingsEnabled}function be(){return Ge.lFrame.lView}function _t(){return Ge.lFrame.tView}function Nf(h){return Ge.lFrame.contextLView=h,h[8]}function Gt(){let h=Jl();for(;null!==h&&64===h.type;)h=h.parent;return h}function Jl(){return Ge.lFrame.currentTNode}function un(h,p){const m=Ge.lFrame;m.currentTNode=h,m.isParent=p}function tu(){return Ge.lFrame.isParent}function iu(){Ge.lFrame.isParent=!1}function hn(){return Ge.isInCheckNoChangesMode}function nu(h){Ge.isInCheckNoChangesMode=h}function ti(){const h=Ge.lFrame;let p=h.bindingRootIndex;return-1===p&&(p=h.bindingRootIndex=h.tView.bindingStartIndex),p}function lo(){return Ge.lFrame.bindingIndex++}function Vr(h){const p=Ge.lFrame,m=p.bindingIndex;return p.bindingIndex=p.bindingIndex+h,m}function aC(h,p){const m=Ge.lFrame;m.bindingIndex=m.bindingRootIndex=h,Gf(p)}function Gf(h){Ge.lFrame.currentDirectiveIndex=h}function ru(h){const p=Ge.lFrame.currentDirectiveIndex;return-1===p?null:h[p]}function la(){return Ge.lFrame.currentQueryIndex}function Uf(h){Ge.lFrame.currentQueryIndex=h}function Ax(h){const p=h[1];return 2===p.type?p.declTNode:1===p.type?h[6]:null}function sC(h,p,m){if(m&Ye.SkipSelf){let C=p,w=h;for(;!(C=C.parent,null!==C||m&Ye.Host||(C=Ax(w),null===C||(w=w[15],10&C.type))););if(null===C)return!1;p=C,h=w}const _=Ge.lFrame=oC();return _.currentTNode=p,_.lView=h,!0}function au(h){const p=oC(),m=h[1];Ge.lFrame=p,p.currentTNode=m.firstChild,p.lView=h,p.tView=m,p.contextLView=h,p.bindingIndex=m.bindingStartIndex,p.inI18n=!1}function oC(){const h=Ge.lFrame,p=null===h?null:h.child;return null===p?Un(h):p}function Un(h){const p={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:h,child:null,inI18n:!1};return null!==h&&(h.child=p),p}function ca(){const h=Ge.lFrame;return Ge.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const lC=ca;function su(){const h=ca();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function ji(){return Ge.lFrame.selectedIndex}function da(h){Ge.lFrame.selectedIndex=h}function Nt(){const h=Ge.lFrame;return Mt(h.tView,h.selectedIndex)}function co(){Ge.lFrame.currentNamespace="svg"}function qf(){!function lu(){Ge.lFrame.currentNamespace=null}()}function cu(h,p){for(let m=p.directiveStart,_=p.directiveEnd;m<_;m++){const w=h.data[m].type.prototype,{ngAfterContentInit:v,ngAfterContentChecked:x,ngAfterViewInit:S,ngAfterViewChecked:P,ngOnDestroy:R}=w;v&&(h.contentHooks||(h.contentHooks=[])).push(-m,v),x&&((h.contentHooks||(h.contentHooks=[])).push(m,x),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(m,x)),S&&(h.viewHooks||(h.viewHooks=[])).push(-m,S),P&&((h.viewHooks||(h.viewHooks=[])).push(m,P),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(m,P)),null!=R&&(h.destroyHooks||(h.destroyHooks=[])).push(m,R)}}function du(h,p,m){dC(h,p,3,m)}function uu(h,p,m,_){(3&h[2])===m&&dC(h,p,m,_)}function Kl(h,p){let m=h[2];(3&m)===p&&(m&=2047,m+=1,h[2]=m)}function dC(h,p,m,_){const w=null!=_?_:-1,v=p.length-1;let x=0;for(let S=void 0!==_?65535&h[18]:0;S=_)break}else p[S]<0&&(h[18]+=65536),(x>11>16&&(3&h[2])===p){h[2]+=2048;try{w.call(x)}finally{}}}else try{w.call(x)}finally{}}class zt{constructor(p,m,_){this.factory=p,this.resolving=!1,this.canSeeViewProviders=m,this.injectImpl=_}}function Zl(h,p,m){const _=jt(h);let C=0;for(;Cp){v=w-1;break}}}for(;w>16}(h),_=p;for(;m>0;)_=_[15],m--;return _}let fu=!0;function gu(h){const p=fu;return fu=h,p}let Jf=0;function go(h,p){const m=ec(h,p);if(-1!==m)return m;const _=p[1];_.firstCreatePass&&(h.injectorIndex=p.length,ur(_.data,h),ur(p,null),ur(_.blueprint,null));const C=mo(h,p),w=h.injectorIndex;if(Qf(C)){const v=Br(C),x=fo(C,p),S=x[1].data;for(let P=0;P<8;P++)p[w+P]=x[v+P]|S[v+P]}return p[w+8]=C,w}function ur(h,p){h.push(0,0,0,0,0,0,0,0,p)}function ec(h,p){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===p[h.injectorIndex+8]?-1:h.injectorIndex}function mo(h,p){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let m=0,_=null,C=p;for(;null!==C;){const w=C[1],v=w.type;if(_=2===v?w.declTNode:1===v?C[6]:null,null===_)return-1;if(m++,C=C[15],-1!==_.injectorIndex)return _.injectorIndex|m<<16}return-1}function _o(h,p,m){!function hC(h,p,m){let _;"string"==typeof m?_=m.charCodeAt(0)||0:m.hasOwnProperty(An)&&(_=m[An]),null==_&&(_=m[An]=Jf++);const C=255&_;p.data[h+(C>>5)]|=1<=0?255&p:fC:p}(m);if("function"==typeof w){if(!sC(p,h,_))return _&Ye.Host?Kf(C,m,_):mu(p,m,_,C);try{const v=w(_);if(null!=v||_&Ye.Optional)return v;yt(m)}finally{lC()}}else if("number"==typeof w){let v=null,x=ec(h,p),S=-1,P=_&Ye.Host?p[16][6]:null;for((-1===x||_&Ye.SkipSelf)&&(S=-1===x?mo(h,p):p[x+8],-1!==S&&eg(_,!1)?(v=p[1],x=Br(S),p=fo(S,p)):x=-1);-1!==x;){const R=p[1];if(gC(w,x,R.data)){const N=Wn(x,p,m,v,_,P);if(N!==Xf)return N}S=p[x+8],-1!==S&&eg(_,p[1].data[x+8]===P)&&gC(w,x,p)?(v=R,x=Br(S),p=fo(S,p)):x=-1}}}return mu(p,m,_,C)}const Xf={};function fC(){return new is(Gt(),be())}function Wn(h,p,m,_,C,w){const v=p[1],x=v.data[h+8],R=_u(x,v,m,null==_?Ul(x)&&fu:_!=v&&0!=(3&x.type),C&Ye.Host&&w===x);return null!==R?bo(p,v,R,x):Xf}function _u(h,p,m,_,C){const w=h.providerIndexes,v=p.data,x=1048575&w,S=h.directiveStart,R=w>>20,J=C?x+R:h.directiveEnd;for(let ae=_?x:x+R;ae=S&&fe.type===m)return ae}if(C){const ae=v[S];if(ae&&sn(ae)&&ae.type===m)return S}return null}function bo(h,p,m,_){let C=h[m];const w=p.data;if(function qn(h){return h instanceof zt}(C)){const v=C;v.resolving&&function Ae(h,p){const m=p?`. Dependency path: ${p.join(" > ")} > ${h}`:"";throw new re(-200,`Circular dependency in DI detected for ${h}${m}`)}(xe(w[m]));const x=gu(v.canSeeViewProviders);v.resolving=!0;const S=v.injectImpl?Oi(v.injectImpl):null;sC(h,_,Ye.Default);try{C=h[m]=v.factory(void 0,w,h,_),p.firstCreatePass&&m>=_.directiveStart&&function cC(h,p,m){const{ngOnChanges:_,ngOnInit:C,ngDoCheck:w}=p.type.prototype;if(_){const v=io(p);(m.preOrderHooks||(m.preOrderHooks=[])).push(h,v),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,v)}C&&(m.preOrderHooks||(m.preOrderHooks=[])).push(0-h,C),w&&((m.preOrderHooks||(m.preOrderHooks=[])).push(h,w),(m.preOrderCheckHooks||(m.preOrderCheckHooks=[])).push(h,w))}(m,w[m],p)}finally{null!==S&&Oi(S),gu(x),v.resolving=!1,lC()}}return C}function gC(h,p,m){return!!(m[p+(h>>5)]&1<{const p=h.prototype.constructor,m=p[an]||tg(p),_=Object.prototype;let C=Object.getPrototypeOf(h.prototype).constructor;for(;C&&C!==_;){const w=C[an]||tg(C);if(w&&w!==m)return w;C=Object.getPrototypeOf(C)}return w=>new w})}function tg(h){return Q(h)?()=>{const p=tg(q(h));return p&&p()}:cn(h)}function tc(h){return function pC(h,p){if("class"===p)return h.classes;if("style"===p)return h.styles;const m=h.attrs;if(m){const _=m.length;let C=0;for(;C<_;){const w=m[C];if(pu(w))break;if(0===w)C+=2;else if("number"==typeof w)for(C++;C<_&&"string"==typeof m[C];)C++;else{if(w===p)return m[C+1];C+=2}}}return null}(Gt(),h)}const ai="__parameters__";function yo(h,p,m){return ee(()=>{const _=function nc(h){return function(...m){if(h){const _=h(...m);for(const C in _)this[C]=_[C]}}}(p);function C(...w){if(this instanceof C)return _.apply(this,w),this;const v=new C(...w);return x.annotation=v,x;function x(S,P,R){const N=S.hasOwnProperty(ai)?S[ai]:Object.defineProperty(S,ai,{value:[]})[ai];for(;N.length<=R;)N.push(null);return(N[R]=N[R]||[]).push(v),S}}return m&&(C.prototype=Object.create(m.prototype)),C.prototype.ngMetadataName=h,C.annotationCls=C,C})}class Ut{constructor(p,m){this._desc=p,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof m?this.__NG_ELEMENT_ID__=m:void 0!==m&&(this.\u0275prov=Vt({token:this,providedIn:m.providedIn||"root",factory:m.factory}))}toString(){return`InjectionToken ${this._desc}`}}const _C=new Ut("AnalyzeForEntryComponents");function Mn(h,p){void 0===p&&(p=h);for(let m=0;mArray.isArray(m)?hr(m,p):p(m))}function ag(h,p,m){p>=h.length?h.push(m):h.splice(p,0,m)}function rc(h,p){return p>=h.length-1?h.pop():h.splice(p,1)[0]}function ac(h,p){const m=[];for(let _=0;_=0?h[1|_]=m:(_=~_,function kx(h,p,m,_){let C=h.length;if(C==p)h.push(m,_);else if(1===C)h.push(_,h[0]),h[0]=m;else{for(C--,h.push(h[C-1],h[C]);C>p;)h[C]=h[C-2],C--;h[p]=m,h[p+1]=_}}(h,_,p,m)),_}function Cu(h,p){const m=Ao(h,p);if(m>=0)return h[1|m]}function Ao(h,p){return function yC(h,p,m){let _=0,C=h.length>>m;for(;C!==_;){const w=_+(C-_>>1),v=h[w<p?C=w:_=w+1}return~(C<({token:h})),-1),rs=lc(yo("Optional"),8),xo=lc(yo("SkipSelf"),4);let Au,xu;function Eo(h){var p;return(null===(p=function ug(){if(void 0===Au&&(Au=null,lt.trustedTypes))try{Au=lt.trustedTypes.createPolicy("angular",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return Au}())||void 0===p?void 0:p.createHTML(h))||h}function PC(h){var p;return(null===(p=function hg(){if(void 0===xu&&(xu=null,lt.trustedTypes))try{xu=lt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch(h){}return xu}())||void 0===p?void 0:p.createHTML(h))||h}class as{constructor(p){this.changingThisBreaksApplicationSecurity=p}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class t0 extends as{getTypeName(){return"HTML"}}class n0 extends as{getTypeName(){return"Style"}}class r0 extends as{getTypeName(){return"Script"}}class a0 extends as{getTypeName(){return"URL"}}class s0 extends as{getTypeName(){return"ResourceURL"}}function Or(h){return h instanceof as?h.changingThisBreaksApplicationSecurity:h}function So(h,p){const m=IC(h);if(null!=m&&m!==p){if("ResourceURL"===m&&"URL"===p)return!0;throw new Error(`Required a safe ${p}, got a ${m} (see https://g.co/ng/security#xss)`)}return m===p}function IC(h){return h instanceof as&&h.getTypeName()||null}function o0(h){return new t0(h)}function l0(h){return new n0(h)}function c0(h){return new r0(h)}function d0(h){return new a0(h)}function u0(h){return new s0(h)}class h0{constructor(p){this.inertDocumentHelper=p}getInertBodyElement(p){p=""+p;try{const m=(new window.DOMParser).parseFromString(Eo(p),"text/html").body;return null===m?this.inertDocumentHelper.getInertBodyElement(p):(m.removeChild(m.firstChild),m)}catch(m){return null}}}class p0{constructor(p){if(this.defaultDoc=p,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const m=this.inertDocument.createElement("html");this.inertDocument.appendChild(m);const _=this.inertDocument.createElement("body");m.appendChild(_)}}getInertBodyElement(p){const m=this.inertDocument.createElement("template");if("content"in m)return m.innerHTML=Eo(p),m;const _=this.inertDocument.createElement("body");return _.innerHTML=Eo(p),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(p){const m=p.attributes;for(let C=m.length-1;0Mo(p.trim())).join(", ")),this.buf.push(" ",v,'="',Hu(S),'"')}var h;return this.buf.push(">"),!0}endElement(p){const m=p.nodeName.toLowerCase();Eu.hasOwnProperty(m)&&!ga.hasOwnProperty(m)&&(this.buf.push(""))}chars(p){this.buf.push(Hu(p))}checkClobberedElement(p,m){if(m&&(p.compareDocumentPosition(m)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${p.outerHTML}`);return m}}const hc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y0=/([^\#-~ |!])/g;function Hu(h){return h.replace(/&/g,"&").replace(hc,function(p){return"&#"+(1024*(p.charCodeAt(0)-55296)+(p.charCodeAt(1)-56320)+65536)+";"}).replace(y0,function(p){return"&#"+p.charCodeAt(0)+";"}).replace(//g,">")}let ma;function Du(h,p){let m=null;try{ma=ma||function VC(h){const p=new p0(h);return function f0(){try{return!!(new window.DOMParser).parseFromString(Eo(""),"text/html")}catch(h){return!1}}()?new h0(p):p}(h);let _=p?String(p):"";m=ma.getInertBodyElement(_);let C=5,w=_;do{if(0===C)throw new Error("Failed to sanitize html because the input is unstable");C--,_=w,w=m.innerHTML,m=ma.getInertBodyElement(_)}while(_!==w);return Eo((new FC).sanitizeChildren(Pu(m)||m))}finally{if(m){const _=Pu(m)||m;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Pu(h){return"content"in h&&function Ru(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var qt=(()=>((qt=qt||{})[qt.NONE=0]="NONE",qt[qt.HTML=1]="HTML",qt[qt.STYLE=2]="STYLE",qt[qt.SCRIPT=3]="SCRIPT",qt[qt.URL=4]="URL",qt[qt.RESOURCE_URL=5]="RESOURCE_URL",qt))();function gg(h){const p=Do();return p?PC(p.sanitize(qt.HTML,h)||""):So(h,"HTML")?PC(Or(h)):Du(Yl(),le(h))}function Ho(h){const p=Do();return p?p.sanitize(qt.URL,h)||"":So(h,"URL")?Or(h):Mo(le(h))}function Do(){const h=be();return h&&h[12]}const bg="__ngContext__";function Ai(h,p){h[bg]=p}function ku(h){const p=function Po(h){return h[bg]||null}(h);return p?Array.isArray(p)?p:p.lView:null}function Vu(h){return h.ngOriginalError}function $C(h,...p){h.error(...p)}class gc{constructor(){this._console=console}handleError(p){const m=this._findOriginalError(p),_=function M0(h){return h&&h.ngErrorLogger||$C}(p);_(this._console,"ERROR",p),m&&_(this._console,"ORIGINAL ERROR",m)}_findOriginalError(p){let m=p&&Vu(p);for(;m&&Vu(m);)m=Vu(m);return m||null}}const Ou=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(lt))();function Hn(h){return h instanceof Function?h():h}var fr=(()=>((fr=fr||{})[fr.Important=1]="Important",fr[fr.DashCase=2]="DashCase",fr))();function Ve(h,p){return undefined(h,p)}function wt(h){const p=h[3];return Qi(p)?p[3]:p}function Ag(h){return ZC(h[13])}function Cc(h){return ZC(h[4])}function ZC(h){for(;null!==h&&!Qi(h);)h=h[4];return h}function $n(h,p,m,_,C){if(null!=_){let w,v=!1;Qi(_)?w=_:Li(_)&&(v=!0,_=_[0]);const x=M(_);0===h&&null!==m?null==C?Wu(p,m,x):ba(p,m,x,C||null,!0):1===h&&null!==m?ba(p,m,x,C||null,!0):2===h?function zr(h,p,m){const _=Vo(h,p);_&&function R0(h,p,m,_){jt(h)?h.removeChild(p,m,_):p.removeChild(m)}(h,_,p,m)}(p,x,v):3===h&&p.destroyNode(x),null!=w&&function Mg(h,p,m,_,C){const w=m[7];w!==M(m)&&$n(p,h,_,w,C);for(let x=10;x0&&(h[m-1][4]=_[4]);const w=rc(h,10+p);!function Nr(h,p){Gr(h,p,p[11],2,null,null),p[0]=null,p[6]=null}(_[1],_);const v=w[19];null!==v&&v.detachView(w[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function Gu(h,p){if(!(256&p[2])){const m=p[11];jt(m)&&m.destroyNode&&Gr(h,p,m,3,null,null),function ju(h){let p=h[13];if(!p)return Tg(h[1],h);for(;p;){let m=null;if(Li(p))m=p[13];else{const _=p[10];_&&(m=_)}if(!m){for(;p&&!p[4]&&p!==h;)Li(p)&&Tg(p[1],p),p=p[3];null===p&&(p=h),Li(p)&&Tg(p[1],p),m=p&&p[4]}p=m}}(p)}}function Tg(h,p){if(!(256&p[2])){p[2]&=-129,p[2]|=256,function _a(h,p){let m;if(null!=h&&null!=(m=h.destroyHooks))for(let _=0;_=0?_[C=P]():_[C=-P].unsubscribe(),w+=2}else{const v=_[C=m[w+1]];m[w].call(v)}if(null!==_){for(let w=C+1;w<_.length;w++)_[w]();p[7]=null}}(h,p),1===p[1].type&&jt(p[11])&&p[11].destroy();const m=p[17];if(null!==m&&Qi(p[3])){m!==p[3]&&zu(m,p);const _=p[19];null!==_&&_.detachView(h)}}}function Uu(h,p,m){return function qu(h,p,m){let _=p;for(;null!==_&&40&_.type;)_=(p=_).parent;if(null===_)return m[0];if(2&_.flags){const C=h.data[_.directiveStart].encapsulation;if(C===Me.None||C===Me.Emulated)return null}return me(_,m)}(h,p.parent,m)}function ba(h,p,m,_,C){jt(h)?h.insertBefore(p,m,_,C):p.insertBefore(m,_,C)}function Wu(h,p,m){jt(h)?h.appendChild(p,m):p.appendChild(m)}function $u(h,p,m,_,C){null!==_?ba(h,p,m,_,C):Wu(h,p,m)}function Vo(h,p){return jt(h)?h.parentNode(p):p.parentNode}function Eg(h,p,m){return Sg(h,p,m)}let Sg=function Yu(h,p,m){return 40&h.type?me(h,m):null};function Ca(h,p,m,_){const C=Uu(h,_,p),w=p[11],x=Eg(_.parent||p[6],_,p);if(null!=C)if(Array.isArray(m))for(let S=0;Sw?"":C[N+1].toLowerCase();const ae=8&_?J:null;if(ae&&-1!==Dn(ae,P,0)||2&_&&P!==J){if(Ni(_))return!1;v=!0}}}}else{if(!v&&!Ni(_)&&!Ni(S))return!1;if(v&&Ni(S))continue;v=!1,_=S|1&_}}return Ni(_)||v}function Ni(h){return 0==(1&h)}function ry(h,p,m,_){if(null===p)return-1;let C=0;if(_||!m){let w=!1;for(;C-1)for(m++;m0?'="'+x+'"':"")+"]"}else 8&_?C+="."+v:4&_&&(C+=" "+v);else""!==C&&!Ni(v)&&(p+=Zu(w,C),C=""),_=v,w=w||!Ni(_);m++}return""!==C&&(p+=Zu(w,C)),p}const Ke={};function jo(h){No(_t(),be(),ji()+h,hn())}function No(h,p,m,_){if(!_)if(3==(3&p[2])){const w=h.preOrderCheckHooks;null!==w&&du(p,w,m)}else{const w=h.preOrderHooks;null!==w&&uu(p,w,0,m)}da(m)}function zo(h,p){return h<<17|p<<2}function Pn(h){return h>>17&32767}function eh(h){return 2|h}function gr(h){return(131068&h)>>2}function th(h,p){return-131069&h|p<<2}function ih(h){return 1|h}function jg(h,p){const m=h.contentQueries;if(null!==m)for(let _=0;_20&&No(h,p,20,hn()),m(_,C)}finally{da(w)}}function Ng(h,p,m){if(Gl(p)){const C=p.directiveEnd;for(let w=p.directiveStart;w0;){const m=h[--p];if("number"==typeof m&&m<0)return m}return 0})(x)!=S&&x.push(S),x.push(_,C,v)}}function Yg(h,p){null!==h.hostBindings&&h.hostBindings(1,p)}function Jg(h,p){p.flags|=2,(h.components||(h.components=[])).push(p.index)}function xy(h,p,m){if(m){if(p.exportAs)for(let _=0;_0&&wh(m)}}function wh(h){for(let _=Ag(h);null!==_;_=Cc(_))for(let C=10;C<_.length;C++){const w=_[C];if(1024&w[2]){const v=w[1];gs(v,w,v.template,w[8])}else w[5]>0&&wh(w)}const m=h[1].components;if(null!==m)for(let _=0;_0&&wh(C)}}function Ey(h,p){const m=ut(p,h),_=m[1];(function Sy(h,p){for(let m=p.length;mPromise.resolve(null))();function tm(h){return h[7]||(h[7]=[])}function im(h){return h.cleanup||(h.cleanup=[])}function gn(h,p,m){return(null===h||sn(h))&&(m=function V(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(m[p.index])),m[11]}function Qo(h,p){const m=h[9],_=m?m.get(gc,null):null;_&&_.handleError(p)}function nm(h,p,m,_,C){for(let w=0;wthis.processProvider(x,p,m)),hr([p],x=>this.processInjectorType(x,[],w)),this.records.set(rm,ws(void 0,this));const v=this.records.get(vh);this.scope=null!=v?v.value:null,this.source=C||("object"==typeof p?null:$(p))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(p=>p.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(p,m=sc,_=Ye.Default){this.assertNotDestroyed();const C=AC(this),w=Oi(void 0);try{if(!(_&Ye.SkipSelf)){let x=this.records.get(p);if(void 0===x){const S=function eT(h){return"function"==typeof h||"object"==typeof h&&h instanceof Ut}(p)&&si(p);x=S&&this.injectableDefInScope(S)?ws(Rc(p),Jo):null,this.records.set(p,x)}if(null!=x)return this.hydrate(p,x)}return(_&Ye.Self?am():this.parent).get(p,m=_&Ye.Optional&&m===sc?null:m)}catch(v){if("NullInjectorError"===v.name){if((v[wu]=v[wu]||[]).unshift($(p)),C)throw v;return function TC(h,p,m,_){const C=h[wu];throw p[vC]&&C.unshift(p[vC]),h.message=function EC(h,p,m,_=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.substr(2):h;let C=$(p);if(Array.isArray(p))C=p.map($).join(" -> ");else if("object"==typeof p){let w=[];for(let v in p)if(p.hasOwnProperty(v)){let x=p[v];w.push(v+":"+("string"==typeof x?JSON.stringify(x):$(x)))}C=`{${w.join(", ")}}`}return`${m}${_?"("+_+")":""}[${C}]: ${h.replace(Lx,"\n ")}`}("\n"+h.message,C,m,_),h.ngTokenPath=C,h[wu]=null,h}(v,p,"R3InjectorError",this.source)}throw v}finally{Oi(w),AC(C)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(p=>this.get(p))}toString(){const p=[];return this.records.forEach((_,C)=>p.push($(C))),`R3Injector[${p.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new re(205,!1)}processInjectorType(p,m,_){if(!(p=q(p)))return!1;let C=Ja(p);const w=null==C&&p.ngModule||void 0,v=void 0===w?p:w,x=-1!==_.indexOf(v);if(void 0!==w&&(C=Ja(w)),null==C)return!1;if(null!=C.imports&&!x){let R;_.push(v);try{hr(C.imports,N=>{this.processInjectorType(N,m,_)&&(void 0===R&&(R=[]),R.push(N))})}finally{}if(void 0!==R)for(let N=0;Nthis.processProvider(fe,J,ae||Pe))}}this.injectorDefTypes.add(v);const S=cn(v)||(()=>new v);this.records.set(v,ws(S,Jo));const P=C.providers;if(null!=P&&!x){const R=p;hr(P,N=>this.processProvider(N,R,P))}return void 0!==w&&void 0!==p.providers}processProvider(p,m,_){let C=vs(p=q(p))?p:q(p&&p.provide);const w=function lm(h,p,m){return Th(h)?ws(void 0,h.useValue):ws(cm(h),Jo)}(p);if(vs(p)||!0!==p.multi)this.records.get(C);else{let v=this.records.get(C);v||(v=ws(void 0,Jo,!0),v.factory=()=>cg(v.multi),this.records.set(C,v)),C=p,v.multi.push(p)}this.records.set(C,w)}hydrate(p,m){return m.value===Jo&&(m.value=Ko,m.value=m.factory()),"object"==typeof m.value&&m.value&&function X0(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(m.value)&&this.onDestroy.add(m.value),m.value}injectableDefInScope(p){if(!p.providedIn)return!1;const m=q(p.providedIn);return"string"==typeof m?"any"===m||m===this.scope:this.injectorDefTypes.has(m)}}function Rc(h){const p=si(h),m=null!==p?p.factory:cn(h);if(null!==m)return m;if(h instanceof Ut)throw new re(204,!1);if(h instanceof Function)return function om(h){const p=h.length;if(p>0)throw ac(p,"?"),new re(204,!1);const m=function Qa(h){const p=h&&(h[Sr]||h[Mr]);if(p){const m=function Ya(h){if(h.hasOwnProperty("name"))return h.name;const p=(""+h).match(/^function\s*([^\s(]+)/);return null===p?"":p[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${m}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${m}" class.`),p}return null}(h);return null!==m?()=>m.factory(h):()=>new h}(h);throw new re(204,!1)}function cm(h,p,m){let _;if(vs(h)){const C=q(h);return cn(C)||Rc(C)}if(Th(h))_=()=>q(h.useValue);else if(function Yn(h){return!(!h||!h.useFactory)}(h))_=()=>h.useFactory(...cg(h.deps||[]));else if(function Ta(h){return!(!h||!h.useExisting)}(h))_=()=>ui(q(h.useExisting));else{const C=q(h&&(h.useClass||h.provide));if(!function Z0(h){return!!h.deps}(h))return cn(C)||Rc(C);_=()=>new C(...cg(h.deps))}return _}function ws(h,p,m=!1){return{factory:h,value:p,multi:m?[]:void 0}}function Th(h){return null!==h&&"object"==typeof h&&Nx in h}function vs(h){return"function"==typeof h}let kn=(()=>{class h{static create(m,_){var C;if(Array.isArray(m))return Ah({name:""},_,m,"");{const w=null!==(C=m.name)&&void 0!==C?C:"";return Ah({name:w},m.parent,m.providers,w)}}}return h.THROW_IF_NOT_FOUND=sc,h.NULL=new Cs,h.\u0275prov=Vt({token:h,providedIn:"any",factory:()=>ui(rm)}),h.__NG_ELEMENT_ID__=-1,h})();function Ny(h,p){cu(ku(h)[1],Gt())}function Hh(h){let p=function fm(h){return Object.getPrototypeOf(h.prototype).constructor}(h.type),m=!0;const _=[h];for(;p;){let C;if(sn(h))C=p.\u0275cmp||p.\u0275dir;else{if(p.\u0275cmp)throw new re(903,"");C=p.\u0275dir}if(C){if(m){_.push(C);const v=h;v.inputs=Ic(h.inputs),v.declaredInputs=Ic(h.declaredInputs),v.outputs=Ic(h.outputs);const x=C.hostBindings;x&&zy(h,x);const S=C.viewQuery,P=C.contentQueries;if(S&&Dh(h,S),P&&gm(h,P),Y(h.inputs,C.inputs),Y(h.declaredInputs,C.declaredInputs),Y(h.outputs,C.outputs),sn(C)&&C.data.animation){const R=h.data;R.animation=(R.animation||[]).concat(C.data.animation)}}const w=C.features;if(w)for(let v=0;v=0;_--){const C=h[_];C.hostVars=p+=C.hostVars,C.hostAttrs=po(C.hostAttrs,m=po(m,C.hostAttrs))}}(_)}function Ic(h){return h===ct?{}:h===Pe?[]:h}function Dh(h,p){const m=h.viewQuery;h.viewQuery=m?(_,C)=>{p(_,C),m(_,C)}:p}function gm(h,p){const m=h.contentQueries;h.contentQueries=m?(_,C,w)=>{p(_,C,w),m(_,C,w)}:p}function zy(h,p){const m=h.hostBindings;h.hostBindings=m?(_,C)=>{p(_,C),m(_,C)}:p}let Es=null;function _r(){if(!Es){const h=lt.Symbol;if(h&&h.iterator)Es=h.iterator;else{const p=Object.getOwnPropertyNames(Map.prototype);for(let m=0;mx(M(ot[_.index])):_.index;if(jt(m)){let ot=null;if(!x&&S&&(ot=function gT(h,p,m,_){const C=h.cleanup;if(null!=C)for(let w=0;wS?x[S]:null}"string"==typeof v&&(w+=2)}return null}(h,p,C,_.index)),null!==ot)(ot.__ngLastListenerFn__||ot).__ngNextListenerFn__=w,ot.__ngLastListenerFn__=w,ae=!1;else{w=km(_,p,N,w,!1);const Ht=m.listen(Re,C,w);J.push(w,Ht),R&&R.push(C,Le,ge,ge+1)}}else w=km(_,p,N,w,!0),Re.addEventListener(C,w,v),J.push(w),R&&R.push(C,Le,ge,v)}else w=km(_,p,N,w,!1);const fe=_.outputs;let ve;if(ae&&null!==fe&&(ve=fe[C])){const Te=ve.length;if(Te)for(let Re=0;Re0;)p=p[15],h--;return p}(h,Ge.lFrame.contextLView))[8]}(h)}function mT(h,p){let m=null;const _=function ay(h){const p=h.attrs;if(null!=p){const m=p.indexOf(5);if(0==(1&m))return p[m+1]}return null}(h);for(let C=0;C=0}function Gh(h,p,m){return Fn(h,p,m,!1),Gh}function Um(h,p){return Fn(h,p,null,!0),Um}function Fn(h,p,m,_){const C=be(),w=_t(),v=Vr(2);w.firstUpdatePass&&function Wm(h,p,m,_){const C=h.data;if(null===C[m+1]){const w=C[ji()],v=function qm(h,p){return p>=h.expandoStartIndex}(h,m);(function Iw(h,p){return 0!=(h.flags&(p?16:32))})(w,_)&&null===p&&!v&&(p=!1),p=function Dw(h,p,m,_){const C=ru(h);let w=_?p.residualClasses:p.residualStyles;if(null===C)0===(_?p.classBindings:p.styleBindings)&&(m=Jc(m=Uh(null,h,p,m,_),p.attrs,_),w=null);else{const v=p.directiveStylingLast;if(-1===v||h[v]!==C)if(m=Uh(C,h,p,m,_),null===w){let S=function Ps(h,p,m){const _=m?p.classBindings:p.styleBindings;if(0!==gr(_))return h[Pn(_)]}(h,p,_);void 0!==S&&Array.isArray(S)&&(S=Uh(null,h,p,S[1],_),S=Jc(S,p.attrs,_),function Pw(h,p,m,_){h[Pn(m?p.classBindings:p.styleBindings)]=_}(h,p,_,S))}else w=function Rw(h,p,m){let _;const C=p.directiveEnd;for(let w=1+p.directiveStylingLast;w0)&&(P=!0)}else R=m;if(C)if(0!==S){const J=Pn(h[x+1]);h[_+1]=zo(J,x),0!==J&&(h[J+1]=th(h[J+1],_)),h[x+1]=function Dg(h,p){return 131071&h|p<<17}(h[x+1],_)}else h[_+1]=zo(x,0),0!==x&&(h[x+1]=th(h[x+1],_)),x=_;else h[_+1]=zo(S,0),0===x?x=_:h[S+1]=th(h[S+1],_),S=_;P&&(h[_+1]=eh(h[_+1])),vw(h,R,_,!0),vw(h,R,_,!1),function bT(h,p,m,_,C){const w=C?h.residualClasses:h.residualStyles;null!=w&&"string"==typeof p&&Ao(w,p)>=0&&(m[_+1]=ih(m[_+1]))}(p,R,h,_,w),v=zo(x,S),w?p.classBindings=v:p.styleBindings=v}(C,w,p,m,v,_)}}(w,h,v,_),p!==Ke&&Ti(C,v,p)&&function $m(h,p,m,_,C,w,v,x){if(!(3&p.type))return;const S=h.data,P=S[x+1];Wh(function Pg(h){return 1==(1&h)}(P)?Qm(S,p,m,C,gr(P),v):void 0)||(Wh(w)||function Sc(h){return 2==(2&h)}(P)&&(w=Qm(S,null,m,C,x,v)),function Ur(h,p,m,_,C){const w=jt(h);if(p)C?w?h.addClass(m,_):m.classList.add(_):w?h.removeClass(m,_):m.classList.remove(_);else{let v=-1===_.indexOf("-")?void 0:fr.DashCase;if(null==C)w?h.removeStyle(m,_,v):m.style.removeProperty(_);else{const x="string"==typeof C&&C.endsWith("!important");x&&(C=C.slice(0,-10),v|=fr.Important),w?h.setStyle(m,_,C,v):m.style.setProperty(_,C,x?"important":"")}}}(_,v,de(ji(),m),C,w))}(w,w.data[ji()],C,C[11],h,C[v+1]=function wT(h,p){return null==h||("string"==typeof p?h+=p:"object"==typeof h&&(h=$(Or(h)))),h}(p,m),_,v)}function Uh(h,p,m,_,C){let w=null;const v=m.directiveEnd;let x=m.directiveStylingLast;for(-1===x?x=m.directiveStart:x++;x0;){const S=h[C],P=Array.isArray(S),R=P?S[1]:S,N=null===R;let J=m[C+1];J===Ke&&(J=N?Pe:void 0);let ae=N?Cu(J,_):R===_?J:void 0;if(P&&!Wh(ae)&&(ae=Cu(S,_)),Wh(ae)&&(x=ae,v))return x;const fe=h[C+1];C=v?Pn(fe):gr(fe)}if(null!==p){let S=w?p.residualClasses:p.residualStyles;null!=S&&(x=Cu(S,_))}return x}function Wh(h){return void 0!==h}function Vw(h,p=""){const m=be(),_=_t(),C=h+20,w=_.firstCreatePass?$r(_,C,1,p,null):_.data[C],v=m[C]=function yc(h,p){return jt(h)?h.createText(p):h.createTextNode(p)}(m[11],p);Ca(_,m,v,w),un(w,!1)}function Ym(h){return $h("",h,""),Ym}function $h(h,p,m){const _=be(),C=Vn(_,h,p,m);return C!==Ke&&Rn(_,ji(),C),$h}function Rs(h,p,m,_,C){const w=be(),v=pi(w,h,p,m,_,C);return v!==Ke&&Rn(w,ji(),v),Rs}function Xh(h,p,m){const _=be();return Ti(_,lo(),p)&&Ri(_t(),Nt(),_,h,p,_[11],m,!0),Xh}function ep(h,p,m){const _=be();if(Ti(_,lo(),p)){const w=_t(),v=Nt();Ri(w,v,_,h,p,gn(ru(w.data),v,_),m,!0)}return ep}const Pa=void 0;var Xc=["en",[["a","p"],["AM","PM"],Pa],[["AM","PM"],Pa,Pa],[["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"]],Pa,[["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"]],Pa,[["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}",Pa,"{1} 'at' {0}",Pa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Gw(h){const m=Math.floor(Math.abs(h)),_=h.toString().replace(/^[^.]*\.?/,"").length;return 1===m&&0===_?1:5}];let ks={};function td(h){const p=function Uw(h){return h.toLowerCase().replace(/_/g,"-")}(h);let m=ip(p);if(m)return m;const _=p.split("-")[0];if(m=ip(_),m)return m;if("en"===_)return Xc;throw new Error(`Missing locale data for the locale "${h}".`)}function tp(h){return td(h)[Ne.PluralCase]}function ip(h){return h in ks||(ks[h]=lt.ng&<.ng.common&<.ng.common.locales&<.ng.common.locales[h]),ks[h]}var Ne=(()=>((Ne=Ne||{})[Ne.LocaleId=0]="LocaleId",Ne[Ne.DayPeriodsFormat=1]="DayPeriodsFormat",Ne[Ne.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ne[Ne.DaysFormat=3]="DaysFormat",Ne[Ne.DaysStandalone=4]="DaysStandalone",Ne[Ne.MonthsFormat=5]="MonthsFormat",Ne[Ne.MonthsStandalone=6]="MonthsStandalone",Ne[Ne.Eras=7]="Eras",Ne[Ne.FirstDayOfWeek=8]="FirstDayOfWeek",Ne[Ne.WeekendRange=9]="WeekendRange",Ne[Ne.DateFormat=10]="DateFormat",Ne[Ne.TimeFormat=11]="TimeFormat",Ne[Ne.DateTimeFormat=12]="DateTimeFormat",Ne[Ne.NumberSymbols=13]="NumberSymbols",Ne[Ne.NumberFormats=14]="NumberFormats",Ne[Ne.CurrencyCode=15]="CurrencyCode",Ne[Ne.CurrencySymbol=16]="CurrencySymbol",Ne[Ne.CurrencyName=17]="CurrencyName",Ne[Ne.Currencies=18]="Currencies",Ne[Ne.Directionality=19]="Directionality",Ne[Ne.PluralCase=20]="PluralCase",Ne[Ne.ExtraData=21]="ExtraData",Ne))();const sl="en-US";let r_=sl;function dp(h,p,m,_,C){if(h=q(h),Array.isArray(h))for(let w=0;w>20;if(vs(h)||!h.multi){const ae=new zt(S,C,Wc),fe=cd(x,p,C?R:R+J,N);-1===fe?(_o(go(P,v),w,x),up(w,h,p.length),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(ae),v.push(ae)):(m[fe]=ae,v[fe]=ae)}else{const ae=cd(x,p,R+J,N),fe=cd(x,p,R,R+J),ve=ae>=0&&m[ae],Te=fe>=0&&m[fe];if(C&&!Te||!C&&!ve){_o(go(P,v),w,x);const Re=function Cv(h,p,m,_,C){const w=new zt(h,m,Wc);return w.multi=[],w.index=p,w.componentProviders=0,p_(w,C,_&&!m),w}(C?bv:f_,m.length,C,_,S);!C&&Te&&(m[fe].providerFactory=Re),up(w,h,p.length,0),p.push(x),P.directiveStart++,P.directiveEnd++,C&&(P.providerIndexes+=1048576),m.push(Re),v.push(Re)}else up(w,h,ae>-1?ae:fe,p_(m[C?fe:ae],S,!C&&_));!C&&_&&Te&&m[fe].componentProviders++}}}function up(h,p,m,_){const C=vs(p),w=function Eh(h){return!!h.useClass}(p);if(C||w){const S=(w?q(p.useClass):p).prototype.ngOnDestroy;if(S){const P=h.destroyHooks||(h.destroyHooks=[]);if(!C&&p.multi){const R=P.indexOf(m);-1===R?P.push(m,[_,S]):P[R+1].push(_,S)}else P.push(m,S)}}}function p_(h,p,m){return m&&h.componentProviders++,h.multi.push(p)-1}function cd(h,p,m,_){for(let C=m;C<_;C++)if(p[C]===h)return C;return-1}function f_(h,p,m,_){return hp(this.multi,[])}function bv(h,p,m,_){const C=this.multi;let w;if(this.providerFactory){const v=this.providerFactory.componentProviders,x=bo(m,m[1],this.providerFactory.index,_);w=x.slice(0,v),hp(C,w);for(let S=v;S{m.providersResolver=(_,C)=>function _v(h,p,m){const _=_t();if(_.firstCreatePass){const C=sn(h);dp(m,_.data,_.blueprint,C,!0),dp(p,_.data,_.blueprint,C,!1)}}(_,C?C(h):h,p)}}class dt{}class pp{resolveComponentFactory(p){throw function yv(h){const p=Error(`No component factory found for ${$(h)}. Did you add it to @NgModule.entryComponents?`);return p.ngComponent=h,p}(p)}}let cl=(()=>{class h{}return h.NULL=new pp,h})();function vv(){return Fs(Gt(),be())}function Fs(h,p){return new Ui(me(h,p))}let Ui=(()=>{class h{constructor(m){this.nativeElement=m}}return h.__NG_ELEMENT_ID__=vv,h})();function __(h){return h instanceof Ui?h.nativeElement:h}class fp{}let sE=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function ir(){const h=be(),m=ut(Gt().index,h);return function fi(h){return h[11]}(Li(m)?m:h)}(),h})(),xv=(()=>{class h{}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:()=>null}),h})();class b_{constructor(p){this.full=p,this.major=p.split(".")[0],this.minor=p.split(".")[1],this.patch=p.split(".").slice(2).join(".")}}const C_=new b_("13.2.2"),dd={};function ud(h,p,m,_,C=!1){for(;null!==m;){const w=p[m.index];if(null!==w&&_.push(M(w)),Qi(w))for(let x=10;x-1&&(Io(p,_),rc(m,_))}this._attachedToViewContainer=!1}Gu(this._lView[1],this._lView)}onDestroy(p){Gg(this._lView[1],this._lView,null,p)}markForCheck(){Ue(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){em(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Aa(h,p,m){nu(!0);try{em(h,p,m)}finally{nu(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new re(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Lu(h,p){Gr(h,p,p[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(p){if(this._attachedToViewContainer)throw new re(902,"");this._appRef=p}}class Tv extends Ls{constructor(p){super(p),this._view=p}detectChanges(){$o(this._view)}checkNoChanges(){!function xa(h){nu(!0);try{$o(h)}finally{nu(!1)}}(this._view)}get context(){return null}}class gp extends cl{constructor(p){super(),this.ngModule=p}resolveComponentFactory(p){const m=oi(p);return new Ia(m,this.ngModule)}}function mp(h){const p=[];for(let m in h)h.hasOwnProperty(m)&&p.push({propName:h[m],templateName:m});return p}const ka=new Ut("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ou});class Ia extends dt{constructor(p,m){super(),this.componentDef=p,this.ngModule=m,this.componentType=p.type,this.selector=function ly(h){return h.map(Ec).join(",")}(p.selectors),this.ngContentSelectors=p.ngContentSelectors?p.ngContentSelectors:[],this.isBoundToModule=!!m}get inputs(){return mp(this.componentDef.inputs)}get outputs(){return mp(this.componentDef.outputs)}create(p,m,_,C){const w=(C=C||this.ngModule)?function Ct(h,p){return{get:(m,_,C)=>{const w=h.get(m,dd,C);return w!==dd||_===dd?w:p.get(m,_,C)}}}(p,C.injector):p,v=w.get(fp,H),x=w.get(xv,null),S=v.createRenderer(null,this.componentDef),P=this.componentDef.selectors[0][0]||"div",R=_?function _h(h,p,m){if(jt(h))return h.selectRootElement(p,m===Me.ShadowDom);let _="string"==typeof p?h.querySelector(p):p;return _.textContent="",_}(S,_,this.componentDef.encapsulation):ko(v.createRenderer(null,this.componentDef),P,function hd(h){const p=h.toLowerCase();return"svg"===p?"svg":"math"===p?"math":null}(P)),N=this.componentDef.onPush?576:528,J=function pm(h,p){return{components:[],scheduler:h||Ou,clean:K0,playerHandler:p||null,flags:0}}(),ae=Pi(0,null,null,1,0,null,null,null,null,null),fe=mr(null,ae,J,N,null,null,v,S,x,w);let ve,Te;au(fe);try{const Re=function jy(h,p,m,_,C,w){const v=m[1];m[20]=h;const S=$r(v,20,2,"#host",null),P=S.mergedAttrs=p.hostAttrs;null!==P&&(Yo(S,P,!0),null!==h&&(Zl(C,h,P),null!==S.classes&&vc(C,h,S.classes),null!==S.styles&&Ku(C,h,S.styles)));const R=_.createRenderer(h,p),N=mr(m,mh(p),null,p.onPush?64:16,m[20],S,_,R,w||null,null);return v.firstCreatePass&&(_o(go(S,m),v,p.type),Jg(v,S),Zi(S,m.length,1)),Pc(m,N),m[20]=N}(R,this.componentDef,fe,v,S);if(R)if(_)Zl(S,R,["ng-version",C_.full]);else{const{attrs:ge,classes:Le}=function cy(h){const p=[],m=[];let _=1,C=2;for(;_0&&vc(S,R,Le.join(" "))}if(Te=Mt(ae,20),void 0!==m){const ge=Te.projection=[];for(let Le=0;LeS(v,p)),p.contentQueries){const S=Gt();p.contentQueries(1,v,S.directiveStart)}const x=Gt();return!w.firstCreatePass||null===p.hostBindings&&null===p.hostAttrs||(da(x.index),bh(m[1],x,0,x.directiveStart,x.directiveEnd,p),Yg(p,v)),v}(Re,this.componentDef,fe,J,[Ny]),va(ae,fe,null)}finally{su()}return new Sv(this.componentType,ve,Fs(Te,fe),fe,Te)}}class Sv extends class m_{}{constructor(p,m,_,C,w){super(),this.location=_,this._rootLView=C,this._tNode=w,this.instance=m,this.hostView=this.changeDetectorRef=new Tv(C),this.componentType=p}get injector(){return new is(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(p){this.hostView.onDestroy(p)}}class Va{}class w_{}const yr=new Map;class Cp extends Va{constructor(p,m){super(),this._parent=m,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gp(this);const _=di(p);this._bootstrapComponents=Hn(_.bootstrap),this._r3Injector=sm(p,m,[{provide:Va,useValue:this},{provide:cl,useValue:this.componentFactoryResolver}],$(p)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(p)}get(p,m=kn.THROW_IF_NOT_FOUND,_=Ye.Default){return p===kn||p===Va||p===rm?this:this._r3Injector.get(p,m,_)}destroy(){const p=this._r3Injector;!p.destroyed&&p.destroy(),this.destroyCbs.forEach(m=>m()),this.destroyCbs=null}onDestroy(p){this.destroyCbs.push(p)}}class md extends w_{constructor(p){super(),this.moduleType=p,null!==di(p)&&function fd(h){const p=new Set;!function m(_){const C=di(_,!0),w=C.id;null!==w&&(function _p(h,p,m){if(p&&p!==m)throw new Error(`Duplicate module registered for ${h} - ${$(p)} vs ${$(p.name)}`)}(w,yr.get(w),_),yr.set(w,_));const v=Hn(C.imports);for(const x of v)p.has(x)||(p.add(x),m(x))}(h)}(p)}create(p){return new Cp(this.moduleType,p)}}function v_(h,p,m,_){return bd(be(),ti(),h,p,m,_)}function Ba(h,p){const m=h[p];return m===Ke?void 0:m}function bd(h,p,m,_,C,w){const v=p+m;return Ti(h,v,C)?Kn(h,v+1,w?_.call(w,C):_(C)):Ba(h,v+1)}function Oa(h,p,m,_,C,w,v,x){const S=p+m;return function Bc(h,p,m,_,C){const w=Sa(h,p,m,_);return Ti(h,p+2,C)||w}(h,S,C,w,v)?Kn(h,S+3,x?_.call(x,C,w,v):_(C,w,v)):Ba(h,S+3)}function x_(h,p){const m=_t();let _;const C=h+20;m.firstCreatePass?(_=function Kr(h,p){if(p)for(let m=p.length-1;m>=0;m--){const _=p[m];if(h===_.name)return _}}(p,m.pipeRegistry),m.data[C]=_,_.onDestroy&&(m.destroyHooks||(m.destroyHooks=[])).push(C,_.onDestroy)):_=m.data[C];const w=_.factory||(_.factory=cn(_.type)),v=Oi(Wc);try{const x=gu(!1),S=w();return gu(x),function _n(h,p,m,_){m>=h.data.length&&(h.data[m]=null,h.blueprint[m]=null),p[m]=_}(m,be(),C,S),S}finally{Oi(v)}}function vp(h,p,m){const _=h+20,C=be(),w=xt(C,_);return Ns(C,_)?bd(C,ti(),p,w.transform,m,w):w.transform(m)}function T_(h,p,m,_){const C=h+20,w=be(),v=xt(w,C);return Ns(w,C)?function nr(h,p,m,_,C,w,v){const x=p+m;return Sa(h,x,C,w)?Kn(h,x+2,v?_.call(v,C,w):_(C,w)):Ba(h,x+2)}(w,ti(),p,v.transform,m,_,v):v.transform(m,_)}function dl(h,p,m,_,C){const w=h+20,v=be(),x=xt(v,w);return Ns(v,w)?Oa(v,ti(),p,x.transform,m,_,C,x):x.transform(m,_,C)}function Ns(h,p){return h[1].data[p].pure}function ul(h){return p=>{setTimeout(h,void 0,p)}}const rr=class xp extends T.xQ{constructor(p=!1){super(),this.__isAsync=p}emit(p){super.next(p)}subscribe(p,m,_){var C,w,v;let x=p,S=m||(()=>null),P=_;if(p&&"object"==typeof p){const N=p;x=null===(C=N.next)||void 0===C?void 0:C.bind(N),S=null===(w=N.error)||void 0===w?void 0:w.bind(N),P=null===(v=N.complete)||void 0===v?void 0:v.bind(N)}this.__isAsync&&(S=ul(S),x&&(x=ul(x)),P&&(P=ul(P)));const R=super.subscribe({next:x,error:S,complete:P});return p instanceof g.w&&p.add(R),R}};function hl(){return this._results[_r()]()}class Cd{constructor(p=!1){this._emitDistinctChangesOnly=p,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const m=_r(),_=Cd.prototype;_[m]||(_[m]=hl)}get changes(){return this._changes||(this._changes=new rr)}get(p){return this._results[p]}map(p){return this._results.map(p)}filter(p){return this._results.filter(p)}find(p){return this._results.find(p)}reduce(p,m){return this._results.reduce(p,m)}forEach(p){this._results.forEach(p)}some(p){return this._results.some(p)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(p,m){const _=this;_.dirty=!1;const C=Mn(p);(this._changesDetected=!function Px(h,p,m){if(h.length!==p.length)return!1;for(let _=0;_{class h{}return h.__NG_ELEMENT_ID__=fl,h})();const Vv=pl,yd=class extends Vv{constructor(p,m,_){super(),this._declarationLView=p,this._declarationTContainer=m,this.elementRef=_}createEmbeddedView(p){const m=this._declarationTContainer.tViews,_=mr(this._declarationLView,m,p,16,null,m.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const w=this._declarationLView[19];return null!==w&&(_[19]=w.createEmbeddedView(m)),va(m,_,p),new Ls(_)}};function fl(){return zs(Gt(),be())}function zs(h,p){return 4&h.type?new yd(p,h,Fs(h,p)):null}let gl=(()=>{class h{}return h.__NG_ELEMENT_ID__=S_,h})();function S_(){return H_(Gt(),be())}const Bv=gl,wd=class extends Bv{constructor(p,m,_){super(),this._lContainer=p,this._hostTNode=m,this._hostLView=_}get element(){return Fs(this._hostTNode,this._hostLView)}get injector(){return new is(this._hostTNode,this._hostLView)}get parentInjector(){const p=mo(this._hostTNode,this._hostLView);if(Qf(p)){const m=fo(p,this._hostLView),_=Br(p);return new is(m[1].data[_+8],m)}return new is(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(p){const m=M_(this._lContainer);return null!==m&&m[p]||null}get length(){return this._lContainer.length-10}createEmbeddedView(p,m,_){const C=p.createEmbeddedView(m||{});return this.insert(C,_),C}createComponent(p,m,_,C,w){const v=p&&!function pa(h){return"function"==typeof h}(p);let x;if(v)x=m;else{const N=m||{};x=N.index,_=N.injector,C=N.projectableNodes,w=N.ngModuleRef}const S=v?p:new Ia(oi(p)),P=_||this.parentInjector;if(!w&&null==S.ngModule&&P){const N=P.get(Va,null);N&&(w=N)}const R=S.create(P,C,void 0,w);return this.insert(R.hostView,x),R}insert(p,m){const _=p._lView,C=_[1];if(function kt(h){return Qi(h[3])}(_)){const R=this.indexOf(p);if(-1!==R)this.detach(R);else{const N=_[3],J=new wd(N,N[6],N[3]);J.detach(J.indexOf(p))}}const w=this._adjustIndex(m),v=this._lContainer;!function Nu(h,p,m,_){const C=10+_,w=m.length;_>0&&(m[C-1][4]=p),_0)_.push(v[x/2]);else{const P=w[x+1],R=p[-S];for(let N=10;N{class h{constructor(m){this.appInits=m,this.resolve=Bp,this.reject=Bp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,C)=>{this.resolve=_,this.reject=C})}runInitializers(){if(this.initialized)return;const m=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let C=0;C{w.subscribe({complete:x,error:S})});m.push(v)}}Promise.all(m).then(()=>{_()}).catch(C=>{this.reject(C)}),0===m.length&&_(),this.initialized=!0}}return h.\u0275fac=function(m){return new(m||h)(ui(Dd,8))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Op=new Ut("AppId"),eA={provide:Op,useFactory:function Xv(){return`${Fp()}${Fp()}${Fp()}`},deps:[]};function Fp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const K_=new Ut("Platform Initializer"),Lp=new Ut("Platform ID"),Z_=new Ut("appBootstrapListener");let eb=(()=>{class h{log(m){console.log(m)}warn(m){console.warn(m)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const Pd=new Ut("LocaleId"),tb=new Ut("DefaultCurrencyCode");class iA{constructor(p,m){this.ngModuleFactory=p,this.componentFactories=m}}let jp=(()=>{class h{compileModuleSync(m){return new md(m)}compileModuleAsync(m){return Promise.resolve(this.compileModuleSync(m))}compileModuleAndAllComponentsSync(m){const _=this.compileModuleSync(m),w=Hn(di(m).declarations).reduce((v,x)=>{const S=oi(x);return S&&v.push(new Ia(S)),v},[]);return new iA(_,w)}compileModuleAndAllComponentsAsync(m){return Promise.resolve(this.compileModuleAndAllComponentsSync(m))}clearCache(){}clearCacheFor(m){}getModuleId(m){}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();const aA=(()=>Promise.resolve(0))();function Np(h){"undefined"==typeof Zone?aA.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class en{constructor({enableLongStackTrace:p=!1,shouldCoalesceEventChangeDetection:m=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new rr(!1),this.onMicrotaskEmpty=new rr(!1),this.onStable=new rr(!1),this.onError=new rr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const C=this;C._nesting=0,C._outer=C._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(C._inner=C._inner.fork(new Zone.TaskTrackingZoneSpec)),p&&Zone.longStackTraceZoneSpec&&(C._inner=C._inner.fork(Zone.longStackTraceZoneSpec)),C.shouldCoalesceEventChangeDetection=!_&&m,C.shouldCoalesceRunChangeDetection=_,C.lastRequestAnimationFrameId=-1,C.nativeRequestAnimationFrame=function ki(){let h=lt.requestAnimationFrame,p=lt.cancelAnimationFrame;if("undefined"!=typeof Zone&&h&&p){const m=h[Zone.__symbol__("OriginalDelegate")];m&&(h=m);const _=p[Zone.__symbol__("OriginalDelegate")];_&&(p=_)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:p}}().nativeRequestAnimationFrame,function Us(h){const p=()=>{!function zp(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(lt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,Gp(h),h.isCheckStableRunning=!0,El(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),Gp(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(m,_,C,w,v,x)=>{try{return nb(h),m.invokeTask(C,w,v,x)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===w.type||h.shouldCoalesceRunChangeDetection)&&p(),Up(h)}},onInvoke:(m,_,C,w,v,x,S)=>{try{return nb(h),m.invoke(C,w,v,x,S)}finally{h.shouldCoalesceRunChangeDetection&&p(),Up(h)}},onHasTask:(m,_,C,w)=>{m.hasTask(C,w),_===C&&("microTask"==w.change?(h._hasPendingMicrotasks=w.microTask,Gp(h),El(h)):"macroTask"==w.change&&(h.hasPendingMacrotasks=w.macroTask))},onHandleError:(m,_,C,w)=>(m.handleError(C,w),h.runOutsideAngular(()=>h.onError.emit(w)),!1)})}(C)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!en.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(en.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(p,m,_){return this._inner.run(p,m,_)}runTask(p,m,_,C){const w=this._inner,v=w.scheduleEventTask("NgZoneEvent: "+C,p,Rd,Bp,Bp);try{return w.runTask(v,m,_)}finally{w.cancelTask(v)}}runGuarded(p,m,_){return this._inner.runGuarded(p,m,_)}runOutsideAngular(p){return this._outer.run(p)}}const Rd={};function El(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function Gp(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function nb(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function Up(h){h._nesting--,El(h)}class sA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new rr,this.onMicrotaskEmpty=new rr,this.onStable=new rr,this.onError=new rr}run(p,m,_){return p.apply(m,_)}runGuarded(p,m,_){return p.apply(m,_)}runOutsideAngular(p){return p()}runTask(p,m,_,C){return p.apply(m,_)}}let qp=(()=>{class h{constructor(m){this._ngZone=m,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),m.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{en.assertNotInAngularZone(),Np(()=>{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())Np(()=>{for(;0!==this._callbacks.length;){let m=this._callbacks.pop();clearTimeout(m.timeoutId),m.doneCb(this._didWork)}this._didWork=!1});else{let m=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(m)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(m=>({source:m.source,creationLocation:m.creationLocation,data:m.data})):[]}addCallback(m,_,C){let w=-1;_&&_>0&&(w=setTimeout(()=>{this._callbacks=this._callbacks.filter(v=>v.timeoutId!==w),m(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:m,timeoutId:w,updateCb:C})}whenStable(m,_,C){if(C&&!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(m,_,C),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(m,_,C){return[]}}return h.\u0275fac=function(m){return new(m||h)(ui(en))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})(),Wp=(()=>{class h{constructor(){this._applications=new Map,vr.addToWindow(this)}registerApplication(m,_){this._applications.set(m,_)}unregisterApplication(m){this._applications.delete(m)}unregisterAllApplications(){this._applications.clear()}getTestability(m){return this._applications.get(m)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(m,_=!0){return vr.findTestabilityInTree(this,m,_)}}return h.\u0275fac=function(m){return new(m||h)},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();class $p{addToWindow(p){}findTestabilityInTree(p,m,_){return null}}function _E(h){vr=h}let bn,vr=new $p;const rb=new Ut("AllowMultipleToken");class lA{constructor(p,m){this.name=p,this.token=m}}function Yp(h,p,m=[]){const _=`Platform: ${p}`,C=new Ut(_);return(w=[])=>{let v=ab();if(!v||v.injector.get(rb,!1))if(h)h(m.concat(w).concat({provide:C,useValue:!0}));else{const x=m.concat(w).concat({provide:C,useValue:!0},{provide:vh,useValue:"platform"});!function cA(h){if(bn&&!bn.destroyed&&!bn.injector.get(rb,!1))throw new re(400,"");bn=h.get(kd);const p=h.get(K_,null);p&&p.forEach(m=>m())}(kn.create({providers:x,name:_}))}return function dA(h){const p=ab();if(!p)throw new re(401,"");return p}()}}function ab(){return bn&&!bn.destroyed?bn:null}let kd=(()=>{class h{constructor(m){this._injector=m,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(m,_){const x=function uA(h,p){let m;return m="noop"===h?new sA:("zone.js"===h?void 0:h)||new en({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==p?void 0:p.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==p?void 0:p.ngZoneRunCoalescing)}),m}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),S=[{provide:en,useValue:x}];return x.run(()=>{const P=kn.create({providers:S,parent:this.injector,name:m.moduleType.name}),R=m.create(P),N=R.injector.get(gc,null);if(!N)throw new re(402,"");return x.runOutsideAngular(()=>{const J=x.onError.subscribe({next:ae=>{N.handleError(ae)}});R.onDestroy(()=>{sb(this._modules,R),J.unsubscribe()})}),function hA(h,p,m){try{const _=m();return jh(_)?_.catch(C=>{throw p.runOutsideAngular(()=>h.handleError(C)),C}):_}catch(_){throw p.runOutsideAngular(()=>h.handleError(_)),_}}(N,x,()=>{const J=R.injector.get(La);return J.runInitializers(),J.donePromise.then(()=>(function $w(h){ze(h,"Expected localeId to be defined"),"string"==typeof h&&(r_=h.toLowerCase().replace(/_/g,"-"))}(R.injector.get(Pd,sl)||sl),this._moduleDoBootstrap(R),R))})})}bootstrapModule(m,_=[]){const C=Jp({},_);return function oA(h,p,m){const _=new md(m);return Promise.resolve(_)}(0,0,m).then(w=>this.bootstrapModuleFactory(w,C))}_moduleDoBootstrap(m){const _=m.injector.get(Sl);if(m._bootstrapComponents.length>0)m._bootstrapComponents.forEach(C=>_.bootstrap(C));else{if(!m.instance.ngDoBootstrap)throw new re(403,"");m.instance.ngDoBootstrap(_)}this._modules.push(m)}onDestroy(m){this._destroyListeners.push(m)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new re(404,"");this._modules.slice().forEach(m=>m.destroy()),this._destroyListeners.forEach(m=>m()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(m){return new(m||h)(ui(kn))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function Jp(h,p){return Array.isArray(p)?p.reduce(Jp,h):Object.assign(Object.assign({},h),p)}let Sl=(()=>{class h{constructor(m,_,C,w,v){this._zone=m,this._injector=_,this._exceptionHandler=C,this._componentFactoryResolver=w,this._initStatus=v,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const x=new B.y(P=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{P.next(this._stable),P.complete()})}),S=new B.y(P=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{en.assertNotInAngularZone(),Np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,P.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{en.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{P.next(!1)}))});return()=>{R.unsubscribe(),N.unsubscribe()}});this.isStable=(0,j.T)(x,S.pipe((0,I.B)()))}bootstrap(m,_){if(!this._initStatus.done)throw new re(405,"");let C;C=m instanceof dt?m:this._componentFactoryResolver.resolveComponentFactory(m),this.componentTypes.push(C.componentType);const w=function Qp(h){return h.isBoundToModule}(C)?void 0:this._injector.get(Va),x=C.create(kn.NULL,[],_||C.selector,w),S=x.location.nativeElement,P=x.injector.get(qp,null),R=P&&x.injector.get(Wp);return P&&R&&R.registerApplication(S,P),x.onDestroy(()=>{this.detachView(x.hostView),sb(this.components,x),R&&R.unregisterApplication(S)}),this._loadComponent(x),x}tick(){if(this._runningTick)throw new re(101,"");try{this._runningTick=!0;for(let m of this._views)m.detectChanges()}catch(m){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(m))}finally{this._runningTick=!1}}attachView(m){const _=m;this._views.push(_),_.attachToAppRef(this)}detachView(m){const _=m;sb(this._views,_),_.detachFromAppRef()}_loadComponent(m){this.attachView(m.hostView),this.tick(),this.components.push(m),this._injector.get(Z_,[]).concat(this._bootstrapListeners).forEach(C=>C(m))}ngOnDestroy(){this._views.slice().forEach(m=>m.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return h.\u0275fac=function(m){return new(m||h)(ui(en),ui(kn),ui(gc),ui(cl),ui(La))},h.\u0275prov=Vt({token:h,factory:h.\u0275fac}),h})();function sb(h,p){const m=h.indexOf(p);m>-1&&h.splice(m,1)}let Xp=!0;function gA(){Xp=!1}let _A=(()=>{class h{}return h.__NG_ELEMENT_ID__=yE,h})();function yE(h){return function lb(h,p,m){if(Ul(h)&&!m){const _=ut(h.index,p);return new Ls(_,_)}return 47&h.type?new Ls(p[16],p):null}(Gt(),be(),16==(16&h))}class rf{constructor(){}supports(p){return Zo(p)}create(p){return new Xr(p)}}const ci=(h,p)=>p;class Xr{constructor(p){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=p||ci}forEachItem(p){let m;for(m=this._itHead;null!==m;m=m._next)p(m)}forEachOperation(p){let m=this._itHead,_=this._removalsHead,C=0,w=null;for(;m||_;){const v=!_||m&&m.currentIndex{v=this._trackByFn(C,x),null!==m&&Object.is(m.trackById,v)?(_&&(m=this._verifyReinsertion(m,x,v,C)),Object.is(m.item,x)||this._addIdentityChange(m,x)):(m=this._mismatch(m,x,v,C),_=!0),m=m._next,C++}),this.length=C;return this._truncate(m),this.collection=p,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let p;for(p=this._previousItHead=this._itHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._additionsHead;null!==p;p=p._nextAdded)p.previousIndex=p.currentIndex;for(this._additionsHead=this._additionsTail=null,p=this._movesHead;null!==p;p=p._nextMoved)p.previousIndex=p.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(p,m,_,C){let w;return null===p?w=this._itTail:(w=p._prev,this._remove(p)),null!==(p=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._reinsertAfter(p,w,C)):null!==(p=null===this._linkedRecords?null:this._linkedRecords.get(_,C))?(Object.is(p.item,m)||this._addIdentityChange(p,m),this._moveAfter(p,w,C)):p=this._addAfter(new yA(m,_),w,C),p}_verifyReinsertion(p,m,_,C){let w=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==w?p=this._reinsertAfter(w,p._prev,C):p.currentIndex!=C&&(p.currentIndex=C,this._addToMoves(p,C)),p}_truncate(p){for(;null!==p;){const m=p._next;this._addToRemovals(this._unlink(p)),p=m}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(p,m,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(p);const C=p._prevRemoved,w=p._nextRemoved;return null===C?this._removalsHead=w:C._nextRemoved=w,null===w?this._removalsTail=C:w._prevRemoved=C,this._insertAfter(p,m,_),this._addToMoves(p,_),p}_moveAfter(p,m,_){return this._unlink(p),this._insertAfter(p,m,_),this._addToMoves(p,_),p}_addAfter(p,m,_){return this._insertAfter(p,m,_),this._additionsTail=null===this._additionsTail?this._additionsHead=p:this._additionsTail._nextAdded=p,p}_insertAfter(p,m,_){const C=null===m?this._itHead:m._next;return p._next=C,p._prev=m,null===C?this._itTail=p:C._prev=p,null===m?this._itHead=p:m._next=p,null===this._linkedRecords&&(this._linkedRecords=new af),this._linkedRecords.put(p),p.currentIndex=_,p}_remove(p){return this._addToRemovals(this._unlink(p))}_unlink(p){null!==this._linkedRecords&&this._linkedRecords.remove(p);const m=p._prev,_=p._next;return null===m?this._itHead=_:m._next=_,null===_?this._itTail=m:_._prev=m,p}_addToMoves(p,m){return p.previousIndex===m||(this._movesTail=null===this._movesTail?this._movesHead=p:this._movesTail._nextMoved=p),p}_addToRemovals(p){return null===this._unlinkedRecords&&(this._unlinkedRecords=new af),this._unlinkedRecords.put(p),p.currentIndex=null,p._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=p,p._prevRemoved=null):(p._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=p),p}_addIdentityChange(p,m){return p.item=m,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=p:this._identityChangesTail._nextIdentityChange=p,p}}class yA{constructor(p,m){this.item=p,this.trackById=m,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 Ml{constructor(){this._head=null,this._tail=null}add(p){null===this._head?(this._head=this._tail=p,p._nextDup=null,p._prevDup=null):(this._tail._nextDup=p,p._prevDup=this._tail,p._nextDup=null,this._tail=p)}get(p,m){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===m||m<=_.currentIndex)&&Object.is(_.trackById,p))return _;return null}remove(p){const m=p._prevDup,_=p._nextDup;return null===m?this._head=_:m._nextDup=_,null===_?this._tail=m:_._prevDup=m,null===this._head}}class af{constructor(){this.map=new Map}put(p){const m=p.trackById;let _=this.map.get(m);_||(_=new Ml,this.map.set(m,_)),_.add(p)}get(p,m){const C=this.map.get(p);return C?C.get(p,m):null}remove(p){const m=p.trackById;return this.map.get(m).remove(p)&&this.map.delete(m),p}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sf(h,p,m){const _=h.previousIndex;if(null===_)return _;let C=0;return m&&_{if(m&&m.key===C)this._maybeAddToChanges(m,_),this._appendAfter=m,m=m._next;else{const w=this._getOrCreateRecordForKey(C,_);m=this._insertBeforeOrAppend(m,w)}}),m){m._prev&&(m._prev._next=null),this._removalsHead=m;for(let _=m;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(p,m){if(p){const _=p._prev;return m._next=p,m._prev=_,p._prev=m,_&&(_._next=m),p===this._mapHead&&(this._mapHead=m),this._appendAfter=p,p}return this._appendAfter?(this._appendAfter._next=m,m._prev=this._appendAfter):this._mapHead=m,this._appendAfter=m,null}_getOrCreateRecordForKey(p,m){if(this._records.has(p)){const C=this._records.get(p);this._maybeAddToChanges(C,m);const w=C._prev,v=C._next;return w&&(w._next=v),v&&(v._prev=w),C._next=null,C._prev=null,C}const _=new pb(p);return this._records.set(p,_),_.currentValue=m,this._addToAdditions(_),_}_reset(){if(this.isDirty){let p;for(this._previousMapHead=this._mapHead,p=this._previousMapHead;null!==p;p=p._next)p._nextPrevious=p._next;for(p=this._changesHead;null!==p;p=p._nextChanged)p.previousValue=p.currentValue;for(p=this._additionsHead;null!=p;p=p._nextAdded)p.previousValue=p.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(p,m){Object.is(m,p.currentValue)||(p.previousValue=p.currentValue,p.currentValue=m,this._addToChanges(p))}_addToAdditions(p){null===this._additionsHead?this._additionsHead=this._additionsTail=p:(this._additionsTail._nextAdded=p,this._additionsTail=p)}_addToChanges(p){null===this._changesHead?this._changesHead=this._changesTail=p:(this._changesTail._nextChanged=p,this._changesTail=p)}_forEach(p,m){p instanceof Map?p.forEach(m):Object.keys(p).forEach(_=>m(p[_],_))}}class pb{constructor(p){this.key=p,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 cf(){return new Hl([new rf])}let Hl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(null!=_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||cf()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(C=>C.supports(m));if(null!=_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:cf}),h})();function Dl(){return new Pl([new lf])}let Pl=(()=>{class h{constructor(m){this.factories=m}static create(m,_){if(_){const C=_.factories.slice();m=m.concat(C)}return new h(m)}static extend(m){return{provide:h,useFactory:_=>h.create(m,_||Dl()),deps:[[h,new xo,new rs]]}}find(m){const _=this.factories.find(w=>w.supports(m));if(_)return _;throw new re(901,"")}}return h.\u0275prov=Vt({token:h,providedIn:"root",factory:Dl}),h})();const fb=[new lf],mb=new Hl([new rf]),vA=new Pl(fb),_b=Yp(null,"core",[{provide:Lp,useValue:"unknown"},{provide:kd,deps:[kn]},{provide:Wp,deps:[]},{provide:eb,deps:[]}]),yb=[{provide:Sl,useClass:Sl,deps:[en,kn,gc,cl,La]},{provide:ka,deps:[en],useFactory:function wb(h){let p=[];return h.onStable.subscribe(()=>{for(;p.length;)p.pop()()}),function(m){p.push(m)}}},{provide:La,useClass:La,deps:[[new rs,Dd]]},{provide:jp,useClass:jp,deps:[]},eA,{provide:Hl,useFactory:function df(){return mb},deps:[]},{provide:Pl,useFactory:function bb(){return vA},deps:[]},{provide:Pd,useFactory:function uf(h){return h||function Cb(){return"undefined"!=typeof $localize&&$localize.locale||sl}()},deps:[[new cc(Pd),new rs,new xo]]},{provide:tb,useValue:"USD"}];let hf=(()=>{class h{constructor(m){}}return h.\u0275fac=function(m){return new(m||h)(ui(Sl))},h.\u0275mod=ia({type:h}),h.\u0275inj=wn({providers:yb}),h})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let W;return function(T){return(W||(W=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(E){return this.data.get(E)}removeItem(E){this.data.delete(E)}setItem(E,T){this.data.set(E,T)}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(W){this.type=W}}class OAuthSuccessEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthInfoEvent extends OAuthEvent{constructor(W,E=null){super(W),this.info=E}}class OAuthErrorEvent extends OAuthEvent{constructor(W,E,T=null){super(W),this.reason=E,this.params=T}}function b64DecodeUnicode(z){const W=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(W).split("").map(function(E){return"%"+("00"+E.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(W){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=E=>{location.href=E},W&&Object.assign(this,W)}}class WebHttpUrlEncodingCodec{encodeKey(W){return encodeURIComponent(W)}encodeValue(W){return encodeURIComponent(W)}decodeKey(W){return decodeURIComponent(W)}decodeValue(W){return decodeURIComponent(W)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(W){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let E=this.inferHashAlgorithm(W.idTokenHeader),T=yield this.calcHash(W.accessToken,E),B=base64UrlEncode(T.substr(0,T.length/2)),j=W.idTokenClaims.at_hash.replace(/=/g,"");return B!==j&&(console.error("exptected at_hash: "+B),console.error("actual at_hash: "+j)),B===j})}inferHashAlgorithm(W){let E=W.alg;if(!E.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+E);return"sha-"+E.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(E){let T=E||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const g=T.indexOf("?");return T=T.substr(g>-1?g+1:1),this.parseQueryString(T)}parseQueryString(E){const T={};let g,B,j,I,O,Y,$;if(null===E)return T;g=E.split("&");for(let G=0;G>6,B[I++]=128|63&O):O<55296||O>=57344?(B[I++]=224|O>>12,B[I++]=128|O>>6&63,B[I++]=128|63&O):(O=65536+((1023&O)<<10|1023&z.charCodeAt(++T)),B[I++]=240|O>>18,B[I++]=128|O>>12&63,B[I++]=128|O>>6&63,B[I++]=128|63&O);z=B}else{if("object"!==g)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(W,!0).update(z).array());var Y=[],$=[];for(T=0;T<64;++T){var G=z[T]||0;Y[T]=92^G,$[T]=54^G}Sha256.call(this,W,E),this.update($),this.oKeyPad=Y,this.inner=!0,this.sharedMemory=E}Sha256.prototype.update=function(z){if(!this.finalized){var W,E=typeof z;if("string"!==E){if("object"!==E)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);W=!0}for(var T,B,g=0,j=z.length,I=this.blocks;g>2]|=z[g]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(I[B>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=I[16],this.start=B-64,this.hash(),this.hashed=!0):this.start=B}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,W=this.lastByteIndex;z[16]=this.block,z[W>>2]|=EXTRA[3&W],this.block=z[16],W>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var Y,L,ie,re,ne,le,z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=this.blocks;for(Y=16;Y<64;++Y)O[Y]=O[Y-16]+(((L=O[Y-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+O[Y-7]+(((L=O[Y-2])>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)<<0;for(le=W&E,Y=0;Y<64;Y+=4)this.first?(this.is224?(ie=300032,I=(L=O[0]-1413257819)-150054599<<0,T=L+24177077<<0):(ie=704751109,I=(L=O[0]-210244248)-1521486534<<0,T=L+143694565<<0),this.first=!1):(I=T+(L=I+((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&B^~g&j)+K[Y]+O[Y])<<0,T=L+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ie=z&W)^z&E^le))<<0),j=E+(L=j+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&g^~I&B)+K[Y+1]+O[Y+1])<<0,E=L+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((re=T&z)^T&W^ie))<<0,B=W+(L=B+((j>>>6|j<<26)^(j>>>11|j<<21)^(j>>>25|j<<7))+(j&I^~j&g)+K[Y+2]+O[Y+2])<<0,W=L+(((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+((ne=E&T)^E&z^re))<<0,g=z+(L=g+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&j^~B&I)+K[Y+3]+O[Y+3])<<0,z=L+(((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+((le=W&E)^W&T^ne))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+W<<0,this.h2=this.h2+E<<0,this.h3=this.h3+T<<0,this.h4=this.h4+g<<0,this.h5=this.h5+B<<0,this.h6=this.h6+j<<0,this.h7=this.h7+I<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[W>>28&15]+HEX_CHARS[W>>24&15]+HEX_CHARS[W>>20&15]+HEX_CHARS[W>>16&15]+HEX_CHARS[W>>12&15]+HEX_CHARS[W>>8&15]+HEX_CHARS[W>>4&15]+HEX_CHARS[15&W]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[15&g]+HEX_CHARS[B>>28&15]+HEX_CHARS[B>>24&15]+HEX_CHARS[B>>20&15]+HEX_CHARS[B>>16&15]+HEX_CHARS[B>>12&15]+HEX_CHARS[B>>8&15]+HEX_CHARS[B>>4&15]+HEX_CHARS[15&B]+HEX_CHARS[j>>28&15]+HEX_CHARS[j>>24&15]+HEX_CHARS[j>>20&15]+HEX_CHARS[j>>16&15]+HEX_CHARS[j>>12&15]+HEX_CHARS[j>>8&15]+HEX_CHARS[j>>4&15]+HEX_CHARS[15&j];return this.is224||(O+=HEX_CHARS[I>>28&15]+HEX_CHARS[I>>24&15]+HEX_CHARS[I>>20&15]+HEX_CHARS[I>>16&15]+HEX_CHARS[I>>12&15]+HEX_CHARS[I>>8&15]+HEX_CHARS[I>>4&15]+HEX_CHARS[15&I]),O},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,W=this.h1,E=this.h2,T=this.h3,g=this.h4,B=this.h5,j=this.h6,I=this.h7,O=[z>>24&255,z>>16&255,z>>8&255,255&z,W>>24&255,W>>16&255,W>>8&255,255&W,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T,g>>24&255,g>>16&255,g>>8&255,255&g,B>>24&255,B>>16&255,B>>8&255,255&B,j>>24&255,j>>16&255,j>>8&255,255&j];return this.is224||O.push(I>>24&255,I>>16&255,I>>8&255,255&I),O},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),W=new DataView(z);return W.setUint32(0,this.h0),W.setUint32(4,this.h1),W.setUint32(8,this.h2),W.setUint32(12,this.h3),W.setUint32(16,this.h4),W.setUint32(20,this.h5),W.setUint32(24,this.h6),this.is224||W.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var W,E=z,T=new Uint8Array(E.length);for(W=0;W{class z{calcHash(E,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(E)))})}toHashString2(E){let T="";for(let g of E)T+=String.fromCharCode(g);return T}toHashString(E){const T=new Uint8Array(E);let g="";for(let B of T)g+=String.fromCharCode(B);return g}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(E,T,g,B,j,I,O,Y,$,G){var F;super(),this.ngZone=E,this.http=T,this.config=j,this.urlHelper=I,this.logger=O,this.crypto=Y,this.dateTimeService=G,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=$,j||(j={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),B&&(this.tokenValidationHandler=B),j&&this.configure(j);try{g?this.setStorage(g):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(L){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",L)}if(this.checkLocalStorageAccessable()){const L=null===(F=null==window?void 0:window.navigator)||void 0===F?void 0:F.userAgent;((null==L?void 0:L.includes("MSIE "))||(null==L?void 0:L.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const E="test";try{return void 0!==window.localStorage&&(localStorage.setItem(E,E),localStorage.removeItem(E),!0)}catch(T){return!1}}configure(E){Object.assign(this,new AuthConfig,E),this.config=Object.assign({},new AuthConfig,E),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(E={},T,g=!0){let B=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(j=>{"token_received"===j.type?B=!0:"logout"===j.type&&(B=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_expires"===j.type&&(null==T||"any"===T||j.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(j=>{B&&this.refreshInternal(E,g).catch(I=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(E,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(E,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(E=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(E))}loadDiscoveryDocumentAndLogin(E=null){return this.loadDiscoveryDocumentAndTryLogin(E=E||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof E.state?E.state:""),!1))}debug(...E){this.showDebugInformation&&this.logger.debug.apply(this.logger,E)}validateUrlFromDiscoveryDocument(E){const T=[],g=this.validateUrlForHttps(E),B=this.validateUrlAgainstIssuer(E);return g||T.push("https for all urls required. Also for urls received by discovery."),B||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(E){if(!E)return!0;const T=E.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(E,T){if(!E)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(E))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(E){return!this.strictDiscoveryDocumentValidation||!E||E.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"token_received"===E.type)).subscribe(E=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const E=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),g=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}setupIdTokenTimer(){const E=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),g=this.calcTimeout(T,E);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(g)).subscribe(B=>{this.ngZone.run(()=>{this.eventsSubject.next(B)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(E,T){const g=this.dateTimeService.now();return Math.max(0,(T-E)*this.timeoutFactor-(g-E))}setStorage(E){this._storage=E,this.configChanged()}loadDiscoveryDocument(E=null){return new Promise((T,g)=>{E||((E=this.issuer||"").endsWith("/")||(E+="/"),E+=".well-known/openid-configuration"),this.validateUrlForHttps(E)?this.http.get(E).subscribe(B=>{if(!this.validateDiscoveryDocument(B))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void g("discovery_document_validation_error");this.loginUrl=B.authorization_endpoint,this.logoutUrl=B.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=B.grant_types_supported,this.issuer=B.issuer,this.tokenEndpoint=B.token_endpoint,this.userinfoEndpoint=B.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=B.jwks_uri,this.sessionCheckIFrameUrl=B.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(B),this.revocationEndpoint=B.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(j=>{const O=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:B,jwks:j});this.eventsSubject.next(O),T(O)}).catch(j=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",j)),g(j)})},B=>{this.logger.error("error loading discovery document",B),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",B)),g(B)}):g("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((E,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(g=>{this.jwks=g,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),E(g)},g=>{this.logger.error("error loading jwks",g),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",g)),T(g)}):E(null)})}validateDiscoveryDocument(E){let T;return this.skipIssuerCheck||E.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(E.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(E.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(E.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!E.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+E.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(E,T,g).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((E,T)=>{const g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:g,observe:"response",responseType:"text"}).subscribe(B=>{if(this.debug("userinfo received",JSON.stringify(B)),B.headers.get("content-type").startsWith("application/json")){let j=JSON.parse(B.body);const I=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!I.sub||j.sub!==I.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");j=Object.assign({},I,j),this._storage.setItem("id_token_claims_obj",JSON.stringify(j)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E({info:j})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),E(JSON.parse(B.body))},B=>{this.logger.error("error loading user info",B),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",B)),T(B)})})}fetchTokenUsingPasswordFlow(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:E,password:T},g)}fetchTokenUsingGrant(E,T,g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let B=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",E).set("scope",this.scope);if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(B=B.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(B=B.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))B=B.set(j,this.customQueryParams[j]);for(const j of Object.keys(T))B=B.set(j,T[j]);return g=g.set("Content-Type","application/x-www-form-urlencoded"),new Promise((j,I)=>{this.http.post(this.tokenEndpoint,B,{headers:g}).subscribe(O=>{this.debug("tokenResponse",O),this.storeAccessTokenResponse(O.access_token,O.refresh_token,O.expires_in||this.fallbackAccessTokenExpirationTimeInSec,O.scope,this.extractRecognizedCustomParameters(O)),this.oidc&&O.id_token&&this.processIdToken(O.id_token,O.access_token).then(Y=>{this.storeIdToken(Y),j(O)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),j(O)},O=>{this.logger.error("Error performing ${grantType} flow",O),this.eventsSubject.next(new OAuthErrorEvent("token_error",O)),I(O)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((E,T)=>{let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),B=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const j=btoa(`${this.clientId}:${this.dummyClientSecret}`);B=B.set("Authorization","Basic "+j)}if(this.useHttpBasicAuth||(g=g.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(g=g.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const j of Object.getOwnPropertyNames(this.customQueryParams))g=g.set(j,this.customQueryParams[j]);this.http.post(this.tokenEndpoint,g,{headers:B}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(j=>j.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(j.id_token,j.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(I=>this.storeIdToken(I)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(I=>j)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(j))).subscribe(j=>{this.debug("refresh tokenResponse",j),this.storeAccessTokenResponse(j.access_token,j.refresh_token,j.expires_in||this.fallbackAccessTokenExpirationTimeInSec,j.scope,this.extractRecognizedCustomParameters(j)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(j)},j=>{this.logger.error("Error refreshing token",j),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",j)),T(j)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=E=>{const T=this.processMessageEventMessage(E);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(g=>this.debug("tryLogin during silent refresh failed",g))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(E={},T=!0){const g=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(E.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const B=this.document.getElementById(this.silentRefreshIFrameName);B&&this.document.body.removeChild(B),this.silentRefreshSubject=g.sub;const j=this.document.createElement("iframe");j.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,E).then(G=>{j.setAttribute("src",G),this.silentRefreshShowIFrame||(j.style.display="none"),this.document.body.appendChild(j)});const O=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>G instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),Y=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(G=>"token_received"===G.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),$=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([O,Y,$]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(G=>{if(G instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===G.type||(G=new OAuthErrorEvent("silent_refresh_error",G)),this.eventsSubject.next(G),G;return"token_received"===G.type&&(G=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(G)),G})).toPromise()}initImplicitFlowInPopup(E){return this.initLoginFlowInPopup(E)}initLoginFlowInPopup(E){return E=E||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((g,B)=>{let O,I=null;E.windowRef?E.windowRef&&!E.windowRef.closed&&(I=E.windowRef,I.location.href=T):I=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(E));const Y=q=>{this.tryLogin({customHashFragment:q,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{G(),g(!0)},Q=>{G(),B(Q)})};I?O=window.setInterval(()=>{(!I||I.closed)&&(G(),B(new OAuthErrorEvent("popup_closed",{})))},500):B(new OAuthErrorEvent("popup_blocked",{}));const G=()=>{window.clearInterval(O),window.removeEventListener("storage",L),window.removeEventListener("message",F),null!==I&&I.close(),I=null},F=q=>{const Q=this.processMessageEventMessage(q);Q&&null!==Q?(window.removeEventListener("storage",L),Y(Q)):console.log("false event firing")},L=q=>{"auth_hash"===q.key&&(window.removeEventListener("message",F),Y(q.newValue))};window.addEventListener("message",F),window.addEventListener("storage",L)}))}calculatePopupFeatures(E){const T=E.height||470,g=E.width||500,B=window.screenLeft+(window.outerWidth-g)/2;return`location=no,toolbar=no,width=${g},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${B}`}processMessageEventMessage(E){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!E||!E.data||"string"!=typeof E.data)return;const g=E.data;return g.startsWith(T)?"#"+g.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=E=>{const T=E.origin.toLowerCase(),g=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),g.startsWith(T)){switch(E.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",E)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",g,"event",E)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(E=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(E=>{this.debug("token refresh after session change worked")}).catch(E=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(E=>"silently_refreshed"===E.type||"silent_refresh_timeout"===E.type||"silent_refresh_error"===E.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(E=>{"silently_refreshed"!==E.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const E=this.document.getElementById(this.sessionCheckIFrameName);E&&this.document.body.removeChild(E);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const E=this.document.getElementById(this.sessionCheckIFrameName);E||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),E.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(E="",T="",g="",B=!1,j={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const I=this;let O;O=g||this.redirectUri;const Y=yield this.createAndSaveNonce();if(E=E?Y+this.config.nonceStateSeparator+encodeURIComponent(E):Y,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const $=I.loginUrl.indexOf("?")>-1?"&":"?";let G=I.scope;this.oidc&&!G.match(/(^|\s)openid($|\s)/)&&(G="openid "+G);let F=I.loginUrl+$+"response_type="+encodeURIComponent(I.responseType)+"&client_id="+encodeURIComponent(I.clientId)+"&state="+encodeURIComponent(E)+"&redirect_uri="+encodeURIComponent(O)+"&scope="+encodeURIComponent(G);if(this.responseType.includes("code")&&!this.disablePKCE){const[L,q]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",q):this._storage.setItem("PKCE_verifier",q),F+="&code_challenge="+L,F+="&code_challenge_method=S256"}T&&(F+="&login_hint="+encodeURIComponent(T)),I.resource&&(F+="&resource="+encodeURIComponent(I.resource)),I.oidc&&(F+="&nonce="+encodeURIComponent(Y)),B&&(F+="&prompt=none");for(const L of Object.keys(j))F+="&"+encodeURIComponent(L)+"="+encodeURIComponent(j[L]);if(this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))F+="&"+L+"="+encodeURIComponent(this.customQueryParams[L]);return F})}initImplicitFlowInternal(E="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initImplicitFlow",j),this.inImplicitFlow=!1})}initImplicitFlow(E="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(E,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(g=>"discovery_document_loaded"===g.type)).subscribe(g=>this.initImplicitFlowInternal(E,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(E){const T=this;if(E.onTokenReceived){const g={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};E.onTokenReceived(g)}}storeAccessTokenResponse(E,T,g,B,j){if(this._storage.setItem("access_token",E),B&&!Array.isArray(B)?this._storage.setItem("granted_scopes",JSON.stringify(B.split(" "))):B&&Array.isArray(B)&&this._storage.setItem("granted_scopes",JSON.stringify(B)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),g){const I=1e3*g,Y=this.dateTimeService.new().getTime()+I;this._storage.setItem("expires_at",""+Y)}T&&this._storage.setItem("refresh_token",T),j&&j.forEach((I,O)=>{this._storage.setItem(O,I)})}tryLogin(E=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(E).then(T=>!0):this.tryLoginImplicitFlow(E)}parseQueryString(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):{}}tryLoginCodeFlow(E=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(E=E||{}).customHashFragment?E.customHashFragment.substring(1):window.location.search,g=this.getCodePartsFromUrl(T),B=g.code,j=g.state,I=g.session_state;if(!E.preventClearHashAfterLogin){const $=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,$)}let[O,Y]=this.parseState(j);if(this.state=Y,g.error){this.debug("error trying to login"),this.handleLoginError(E,g);const $=new OAuthErrorEvent("code_error",{},g);return this.eventsSubject.next($),Promise.reject($)}if(!E.disableNonceCheck){if(!O)return this.saveRequestedRoute(),Promise.resolve();if(!E.disableOAuth2StateCheck&&!this.validateNonce(O)){const G=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(G),Promise.reject(G)}return this.storeSessionState(I),B&&(yield this.getTokenFromCode(B,E),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const E=this._storage.getItem("requested_route");E&&history.replaceState(null,"",window.location.origin+E)}getCodePartsFromUrl(E){return E&&0!==E.length?("?"===E.charAt(0)&&(E=E.substr(1)),this.urlHelper.parseQueryString(E)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(E,T){let g=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",E).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let B;B=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),B?g=g.set("code_verifier",B):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(g,T)}fetchAndProcessToken(E,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let g=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const B=btoa(`${this.clientId}:${this.dummyClientSecret}`);g=g.set("Authorization","Basic "+B)}return this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),new Promise((B,j)=>{if(this.customQueryParams)for(let I of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(I,this.customQueryParams[I]);this.http.post(this.tokenEndpoint,E,{headers:g}).subscribe(I=>{this.debug("refresh tokenResponse",I),this.storeAccessTokenResponse(I.access_token,I.refresh_token,I.expires_in||this.fallbackAccessTokenExpirationTimeInSec,I.scope,this.extractRecognizedCustomParameters(I)),this.oidc&&I.id_token?this.processIdToken(I.id_token,I.access_token,T.disableNonceCheck).then(O=>{this.storeIdToken(O),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I)}).catch(O=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",O)),console.error("Error validating tokens"),console.error(O),j(O)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),B(I))},I=>{console.error("Error getting token",I),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",I)),j(I)})})}tryLoginImplicitFlow(E=null){let T;T=(E=E||{}).customHashFragment?this.urlHelper.getHashFragmentParams(E.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const g=T.state;let[B,j]=this.parseState(g);if(this.state=j,T.error){this.debug("error trying to login"),this.handleLoginError(E,T);const G=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(G),Promise.reject(G)}const I=T.access_token,O=T.id_token,Y=T.session_state,$=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!I||this.requestAccessToken&&!E.disableOAuth2StateCheck&&!g||this.oidc&&!O)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!Y&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!E.disableNonceCheck&&!this.validateNonce(B)){const F=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(F),Promise.reject(F)}return this.requestAccessToken&&this.storeAccessTokenResponse(I,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,$),this.oidc?this.processIdToken(O,I,E.disableNonceCheck).then(G=>E.validationHandler?E.validationHandler({accessToken:I,idClaims:G.idTokenClaims,idToken:G.idToken,state:g}).then(F=>G):G).then(G=>(this.storeIdToken(G),this.storeSessionState(Y),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(E),this.inImplicitFlow=!1,!0)).catch(G=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",G)),this.logger.error("Error validating tokens"),this.logger.error(G),Promise.reject(G))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(E),Promise.resolve(!0))}parseState(E){let T=E,g="";if(E){const B=E.indexOf(this.config.nonceStateSeparator);B>-1&&(T=E.substr(0,B),g=E.substr(B+this.config.nonceStateSeparator.length))}return[T,g]}validateNonce(E){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===E||(console.error("Validating access_token failed, wrong state/nonce.",T,E),!1)}storeIdToken(E){this._storage.setItem("id_token",E.idToken),this._storage.setItem("id_token_claims_obj",E.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+E.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(E){this._storage.setItem("session_state",E)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(E,T){E.onLoginError&&E.onLoginError(T),this.clearHashAfterLogin&&!E.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(E=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:E}processIdToken(E,T,g=!1){const B=E.split("."),I=b64DecodeUnicode(this.padBase64(B[0])),O=JSON.parse(I),$=b64DecodeUnicode(this.padBase64(B[1])),G=JSON.parse($);let F;if(F=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(G.aud)){if(G.aud.every(ne=>ne!==this.clientId)){const ne="Wrong audience: "+G.aud.join(",");return this.logger.warn(ne),Promise.reject(ne)}}else if(G.aud!==this.clientId){const ne="Wrong audience: "+G.aud;return this.logger.warn(ne),Promise.reject(ne)}if(!G.sub){const ne="No sub claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==G.sub){const ne=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${G.sub}`;return this.logger.warn(ne),Promise.reject(ne)}if(!G.iat){const ne="No iat claim in id_token";return this.logger.warn(ne),Promise.reject(ne)}if(!this.skipIssuerCheck&&G.iss!==this.issuer){const ne="Wrong issuer: "+G.iss;return this.logger.warn(ne),Promise.reject(ne)}if(!g&&G.nonce!==F){const ne="Wrong nonce: "+G.nonce;return this.logger.warn(ne),Promise.reject(ne)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!G.at_hash){const ne="An at_hash is needed!";return this.logger.warn(ne),Promise.reject(ne)}const L=this.dateTimeService.now(),q=1e3*G.iat,Q=1e3*G.exp,ie=this.getClockSkewInMsec();if(q-ie>=L||Q+ie<=L){const ne="Token has expired";return console.error(ne),console.error({now:L,issuedAtMSec:q,expiresAtMSec:Q}),Promise.reject(ne)}const re={accessToken:T,idToken:E,jwks:this.jwks,idTokenClaims:G,idTokenHeader:O,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(re).then(ne=>({idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q})):this.checkAtHash(re).then(ne=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!ne){const le="Wrong at_hash";return this.logger.warn(le),Promise.reject(le)}return this.checkSignature(re).then(le=>{const Ae={idToken:E,idTokenClaims:G,idTokenClaimsJson:$,idTokenHeader:O,idTokenHeaderJson:I,idTokenExpiresAt:Q};return this.disableAtHashCheck?Ae:this.checkAtHash(re).then(Be=>{if(this.requestAccessToken&&!Be){const ft="Wrong at_hash";return this.logger.warn(ft),Promise.reject(ft)}return Ae})})})}getIdentityClaims(){const E=this._storage.getItem("id_token_claims_obj");return E?JSON.parse(E):null}getGrantedScopes(){const E=this._storage.getItem("granted_scopes");return E?JSON.parse(E):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(E){for(;E.length%4!=0;)E+="=";return E}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const E=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(E&&parseInt(E,10)=0&&null!==this._storage.getItem(E)?JSON.parse(this._storage.getItem(E)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(E={},T=""){let g=!1;"boolean"==typeof E&&(g=E,E={});const B=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(I=>this._storage.removeItem(I)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||g||!B&&!this.postLogoutRedirectUri)return;let j;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)j=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(B)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});B&&(I=I.set("id_token_hint",B));const O=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";O&&(I=I.set("post_logout_redirect_uri",O),T&&(I=I.set("state",T)));for(let Y in E)I=I.set(Y,E[Y]);j=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+I.toString()}this.config.openUri(j)}createAndSaveNonce(){const E=this;return this.createNonce().then(function(T){return E.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):E._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const E=this.document.getElementById(this.silentRefreshIFrameName);E&&E.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(E=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let g=45,B="";const j="undefined"==typeof self?null:self.crypto||self.msCrypto;if(j){let I=new Uint8Array(g);j.getRandomValues(I),I.map||(I.map=Array.prototype.map),I=I.map(O=>T.charCodeAt(O%T.length)),B=String.fromCharCode.apply(null,I)}else for(;0"discovery_document_loaded"===g.type)).subscribe(g=>this.initCodeFlowInternal(E,T))}initCodeFlowInternal(E="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let g={},B=null;"string"==typeof T?B=T:"object"==typeof T&&(g=T),this.createLoginUrl(E,B,null,!1,g).then(this.config.openUri).catch(j=>{console.error("Error in initAuthorizationCodeFlow"),console.error(j)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const E=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(E,"sha-256")),E]})}extractRecognizedCustomParameters(E){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(g=>{E[g]&&T.set(g,JSON.stringify(E[g]))}),T}revokeTokenAndLogout(E={},T=!1){let g=this.revocationEndpoint,B=this.getAccessToken(),j=this.getRefreshToken();if(!B)return;let I=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),O=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const Y=btoa(`${this.clientId}:${this.dummyClientSecret}`);O=O.set("Authorization","Basic "+Y)}if(this.useHttpBasicAuth||(I=I.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(I=I.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const Y of Object.getOwnPropertyNames(this.customQueryParams))I=I.set(Y,this.customQueryParams[Y]);return new Promise((Y,$)=>{let G,F;if(B){let L=I.set("token",B).set("token_type_hint","access_token");G=this.http.post(g,L,{headers:O})}else G=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(j){let L=I.set("token",j).set("token_type_hint","refresh_token");F=this.http.post(g,L,{headers:O})}else F=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(G=G.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L))),F=F.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(L=>0===L.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(L)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([G,F]).subscribe(L=>{this.logOut(E),Y(L),this.logger.info("Token successfully revoked")},L=>{this.logger.error("Error revoking token",L),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",L)),$(L)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(W){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(W)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(E,T,g){this.oAuthService=E,this.errorHandler=T,this.moduleConfig=g}checkUrl(E){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(E):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>E.toLowerCase().startsWith(T.toLowerCase()))}intercept(E,T){const g=E.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(g)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>!!j)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(j=>{if(j){const O=E.headers.set("Authorization","Bearer "+j);E=E.clone({headers:O})}return T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(I=>this.errorHandler.handleError(I)))})):T.handle(E).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(j=>this.errorHandler.handleError(j))):T.handle(E)}}return z.\u0275fac=function(E){return new(E||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(W){return Promise.resolve(null)}validateAtHash(W){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(E=null,T=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:E},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(E){return new(E||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},4147:z=>{"use strict";z.exports={i8:"8.1.1"}}},z=>{z(z.s=2342)}]); \ No newline at end of file diff --git a/dist/apps/publications/index.html b/dist/apps/publications/index.html index ae21f4a79..6f62c8631 100644 --- a/dist/apps/publications/index.html +++ b/dist/apps/publications/index.html @@ -6,7 +6,7 @@ - + @@ -40,5 +40,5 @@ - + diff --git a/dist/apps/publications/main.383a3ab6468a7840.js b/dist/apps/publications/main.383a3ab6468a7840.js new file mode 100644 index 000000000..b609f3829 --- /dev/null +++ b/dist/apps/publications/main.383a3ab6468a7840.js @@ -0,0 +1 @@ +(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{6051:(z,G,x)=>{"use strict";var T=x(9808),i=x(5e3);class E extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends E{static makeCurrent(){(0,T.HT)(new M)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function V(n){L=L||document.createElement("a"),L.setAttribute("href",n);const a=L.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function Y(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(s){d=d||s,l--,0==l&&t(d)};r.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let te=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Oe=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Be(n){(0,T.q)().remove(n)}const Ze={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/"},It=/%COMP%/g;function _e(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new yi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=_e(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Oe),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Ze[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&a.insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Ze[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,we(t)):this.eventManager.addEventListener(a,e,we(t))}}class yi extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=_e(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function mt(n){return"_ngcontent-%COMP%".replace(It,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(It,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class tt extends ge{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=_e(r.id,r.styles,[]);for(let d=0;d{class n extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const On=["alt","control","meta","shift"],$e={"\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"},ri={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},xa={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Cn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(On.forEach(s=>{const c=t.indexOf(s);c>-1&&(t.splice(c,1),d+=s+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function Ni(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&ri.hasOwnProperty(a)&&(a=ri[a]))}return $e[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),On.forEach(l=>{l!=r&&xa[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ma=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:T.bD},{provide:i.g9A,useValue:function Xr(){M.makeCurrent(),X.init()},multi:!0},{provide:T.K0,useFactory:function Ys(){return(0,i.RDi)(document),document},deps:[]}]),ea=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Ns(){return new i.qLn},deps:[]},{provide:ce,useClass:ht,multi:!0,deps:[T.K0,i.R0b,i.Lbi]},{provide:ce,useClass:Cn,multi:!0,deps:[T.K0]},{provide:ke,useClass:ke,deps:[ne,Oe,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Oe},{provide:Oe,useClass:Oe,deps:[T.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:T.JF,useClass:te,deps:[]}];let Sa=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:ea,imports:[T.ez,i.hGG]}),n})(),Zt=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Bi(){return new Zt((0,i.LFG)(T.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(as),t},providedIn:"root"}),n})(),as=(()=>{class n extends Vn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function rs(n){return new as(n.get(T.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(520);class Re{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const oi=new i.OlP("basePath");class Ge{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Vi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"role")),null!=t&&(s=this.addToHttpParams(s,t,"complementaryObjectId")),null!=r&&(s=this.addToHttpParams(s,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,s="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Ue=>{h=this.addToHttpParams(h,Ue,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(f=f.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),li=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"yearSince")),null!=r&&(s=this.addToHttpParams(s,r,"yearTill")),null!=e&&(s=this.addToHttpParams(s,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,o,s,c,u,h="body",f=!1,b){let j=new w.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"title")),null!=t&&(j=this.addToHttpParams(j,t,"isbn")),null!=r&&(j=this.addToHttpParams(j,r,"doi")),null!=l&&(j=this.addToHttpParams(j,l,"id")),null!=d&&(j=this.addToHttpParams(j,d,"year")),null!=o&&(j=this.addToHttpParams(j,o,"category")),null!=s&&(j=this.addToHttpParams(j,s,"yearSince")),null!=c&&(j=this.addToHttpParams(j,c,"yearTill")),null!=u&&(j=this.addToHttpParams(j,u,"userId"));let pe,ie=this.defaultHeaders;pe=this.configuration.lookupCredential("BasicAuth"),pe&&(ie=ie.set("Authorization","Basic "+pe)),pe=this.configuration.lookupCredential("BearerAuth"),pe&&(ie=ie.set("Authorization","Bearer "+pe));let Ue=b&&b.httpHeaderAccept;void 0===Ue&&(Ue=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ue&&(ie=ie.set("Accept",Ue));let Tt=b&&b.context;void 0===Tt&&(Tt=new w.qT);let st="json";return Ue&&(st=Ue.startsWith("text")?"text":this.configuration.isJsonMime(Ue)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Tt,params:j,responseType:st,withCredentials:this.configuration.withCredentials,headers:ie,observe:h,reportProgress:f})}findSimilarPublications(e,t,r,l="body",d=!1,o){let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"title")),null!=t&&(s=this.addToHttpParams(s,t,"doi")),null!=r&&(s=this.addToHttpParams(s,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$t=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),tn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"queue")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"password")),null!=r&&(s=this.addToHttpParams(s,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}changePasswordForUser(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"password")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"loginNamespace")),null!=r&&(s=this.addToHttpParams(s,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ie=>{c=this.addToHttpParams(c,ie,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=s&&s.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return f&&(j=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"userExtSource")),null!=r&&(s=this.addToHttpParams(s,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,s="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(f=f.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:f,observe:s,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=o&&o.context;void 0===f&&(f=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return s&&(f=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:f,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ku=(()=>{class n{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:n,providers:[{provide:Ge,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[]]}),n})();var At=(()=>{return(n=At||(At={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",At;var n})();let aa=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const o of r)l=l.concat(o.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER,At.FACILITYADMIN,At.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(At.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(At.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(At.PERUNADMIN,At.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(At.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOOBSERVER,At.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],s=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const j of Object.keys(b.entitiesToManage))s="User"===j?[j].concat(s):s.concat(j);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l,{readAuth:u,manageAuth:h,modes:s})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const s of t[o])if(!this.principalHasRole(d,o,s)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,ur.c)()).subscribe(a)})}var Ws=x(1762),dt=x(4850),rn=x(7545),jt=x(2986),ls=x(2866);function Wt(...n){const a=n[n.length-1];return(0,ls.K)(a)?(n.pop(),e=>Tn(n,e,a)):e=>Tn(n,e)}var Yn=x(3489);function ql(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new xn(n,a,e))}}class xn{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new Gl(a,this.accumulator,this.seed,this.hasSeed))}}class Gl extends Yn.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var Un=x(7221),Er=x(1406),ci=x(4231);function sa(n){return function(e){return 0===n?(0,ur.c)():e.lift(new oa(n))}}class oa{constructor(a){if(this.total=a,this.total<0)throw new ci.W}call(a,e){return e.subscribe(new Wl(a,this.total))}}class Wl extends Yn.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Qe(n))}class Qe{constructor(a){this.callback=a}call(a,e){return e.subscribe(new Xt(a,this.callback))}}class Xt extends Yn.L{constructor(a,e){super(a),this.add(new he.w(e))}}class Rt{constructor(a,e){this.id=a,this.url=e}}class yt extends Rt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wt extends Rt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pi extends Rt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends Rt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class la extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hr extends Rt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class at extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cs extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Io{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $s{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Oo{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eh{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Js{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Me{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ye="primary";class Zl{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function gi(n){return new Zl(n)}const nd="ngNavigationCancelingError";function ds(n){const a=Error("NavigationCancelingError: "+n);return a[nd]=!0,a}function $l(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Bo(n){return Array.prototype.concat.apply([],n)}function Vo(n){return n.length>0?n[n.length-1]:null}function ui(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function pr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,Ne.of)(n)}const zn={exact:function jo(n,a,e){if(!La(n.segments,a.segments)||!us(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!jo(n.children[t],a.children[t],e))return!1;return!0},subset:Xs},th={exact:function kf(n,a){return Hr(n,a)},subset:function Ks(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>ai(n[e],a[e]))},ignored:()=>!0};function ad(n,a,e){return zn[e.paths](n.root,a.root,e.matrixParams)&&th[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function Xs(n,a,e){return sd(n,a,a.segments,e)}function sd(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!La(r,e)||a.hasChildren()||!us(r,e,t))}if(n.segments.length===e.length){if(!La(n.segments,e)||!us(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!Xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(La(n.segments,r)&&us(n.segments,r,t)&&n.children[Ye])&&sd(n.children[Ye],a,l,t)}}function us(n,a,e){return a.every((t,r)=>th[e](n[r].parameters,t.parameters))}class hs{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return Pf.serialize(this)}}class Lt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ui(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ql(this)}}class kr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return tr(this)}}function La(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class od{}class Fo{parse(a){const e=new Uo(a);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ui(a.root,!0)}`,t=function Yo(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${hi(e)}=${hi(r)}`).join("&"):`${hi(e)}=${hi(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function nh(n){return encodeURI(n)}(a.fragment)}`:""}`}}const Pf=new Fo;function Ql(n){return n.segments.map(a=>tr(a)).join("/")}function Ui(n,a){if(!n.hasChildren())return Ql(n);if(a){const e=n.children[Ye]?Ui(n.children[Ye],!1):"",t=[];return ui(n.children,(r,l)=>{l!==Ye&&t.push(`${l}:${Ui(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function ih(n,a){let e=[];return ui(n.children,(t,r)=>{r===Ye&&(e=e.concat(a(t,r)))}),ui(n.children,(t,r)=>{r!==Ye&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===Ye?[Ui(n.children[Ye],!1)]:[`${r}:${Ui(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ye]?`${Ql(n)}/${e[0]}`:`${Ql(n)}/(${e.join("//")})`}}function ca(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hi(n){return ca(n).replace(/%3B/gi,";")}function Kl(n){return ca(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function No(n){return decodeURIComponent(n)}function rh(n){return No(n.replace(/\+/g,"%20"))}function tr(n){return`${Kl(n.path)}${function ps(n){return Object.keys(n).map(a=>`;${Kl(a)}=${Kl(n[a])}`).join("")}(n.parameters)}`}const Xl=/^[^\/()?;=#]+/;function Ia(n){const a=n.match(Xl);return a?a[0]:""}const ec=/^[^=?&#]+/,Rf=/^[^&#]+/;class Uo{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[Ye]=new Lt(a,e)),t}parseSegment(){const a=Ia(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new kr(No(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Ia(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ia(this.remaining);r&&(t=r,this.capture(t))}a[No(e)]=No(t)}parseQueryParam(a){const e=function ah(n){const a=n.match(ec);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function da(n){const a=n.match(Rf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=rh(e),l=rh(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ia(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=Ye);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[Ye]:new Lt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class sh{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=ld(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=ld(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=fs(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return fs(a,this._root).map(e=>e.value)}}function ld(n,a){if(n===a.value)return a;for(const e of a.children){const t=ld(n,e);if(t)return t}return null}function fs(n,a){if(n===a.value)return[a];for(const e of a.children){const t=fs(n,e);if(t.length)return t.unshift(a),t}return[]}class fr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function eo(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class oh extends sh{constructor(a,e){super(a),this.snapshot=e,gs(this,a)}toString(){return this.snapshot.toString()}}function Lf(n,a){const e=function V_(n,a){const d=new ms([],{},{},"",{},Ye,a,null,n.root,-1,{});return new ud("",new fr(d,[]))}(n,a),t=new $i([new kr("",{})]),r=new $i({}),l=new $i({}),d=new $i({}),o=new $i(""),s=new yn(t,r,d,o,l,Ye,a,e.root);return s.snapshot=e.root,new oh(new fr(s,[]),e)}class yn{constructor(a,e,t,r,l,d,o,s){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,dt.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,dt.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cd(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function dd(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ms{constructor(a,e,t,r,l,d,o,s,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ud extends sh{constructor(a,e){super(e),this.url=a,gs(this,e)}toString(){return _s(this._root)}}function gs(n,a){a.value._routerState=n,a.children.forEach(e=>gs(n,e))}function _s(n){const a=n.children.length>0?` { ${n.children.map(_s).join(", ")} } `:"";return`${n.value}${a}`}function hd(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Hr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),Hr(a.params,e.params)||n.params.next(e.params),function rd(n,a){if(n.length!==a.length)return!1;for(let e=0;eHr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Oa(n.parent,a.parent))}function Ba(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function j_(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ba(n,t,r);return Ba(n,t)})}(n,a,e);return new fr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(o=>Ba(n,o)),d}}const t=function lh(n){return new yn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ba(n,l));return new fr(t,r)}}function zo(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function to(n){return"object"==typeof n&&null!=n&&n.outlets}function Va(n,a,e,t,r){let l={};return t&&ui(t,(d,o)=>{l[o]=Array.isArray(d)?d.map(s=>`${s}`):`${d}`}),new hs(e.root===n?a:bs(e.root,n,a),l,r)}function bs(n,a,e){const t={};return ui(n.children,(r,l)=>{t[l]=r===a?e:bs(r,a,e)}),new Lt(n.segments,t)}class ua{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&zo(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(to);if(r&&r!==Vo(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ws{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function gd(n,a,e){if(n||(n=new Lt([],{})),0===n.segments.length&&n.hasChildren())return qo(n,a,e);const t=function If(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(to(o))break;const s=`${o}`,c=t0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!dh(s,c,d))return l;t+=2}else{if(!dh(s,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=gd(n.children[d],a,l))}),ui(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Lt(n.segments,r)}}function _d(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=_d(new Lt([],{}),0,e))}),a}function no(n){const a={};return ui(n,(e,t)=>a[t]=`${e}`),a}function dh(n,a,e){return n==e.path&&Hr(a,e.parameters)}class hh{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),hd(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=eo(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ui(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:o})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=eo(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hf(l.value.snapshot))}),a.children.length&&this.forwardEvent(new eh(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(hd(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),hd(o.route.value),this.activateChildRoutes(a,null,d.children)}else{const o=function ro(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=o?o.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=s,d.outlet&&d.outlet.activateWith(r,s),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class ic{constructor(a,e){this.routes=a,this.module=e}}function Pr(n){return"function"==typeof n}function ir(n){return n instanceof hs}const Rr=Symbol("INITIAL_VALUE");function nc(){return(0,rn.w)(n=>(0,Ra.aj)(n.map(a=>a.pipe((0,jt.q)(1),Wt(Rr)))).pipe(ql((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==Rr?r:(l===Rr&&(t=!0),t||!1!==l&&d!==e.length-1&&!ir(l)?r:l),a)},Rr),(0,qt.h)(a=>a!==Rr),(0,dt.U)(a=>ir(a)?a:!0===a),(0,jt.q)(1)))}class Of{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null}}class si{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new Of,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let oo=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||Ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new F_(e,o,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(si),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class F_{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===yn?this.route:a===si?this.childContexts:this.parent.get(a,e)}}let Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[oo],encapsulation:2}),n})();function Vf(n,a=""){for(let e=0;eun(t)===a);return e.push(...n.filter(t=>un(t)!==a)),e}const ji={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function lo(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},ji):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||$l)(e,n,a);if(!l)return Object.assign({},ji);const d={};ui(l.posParams,(s,c)=>{d[c]=s.path});const o=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:o,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function ja(n,a,e,t,r="corrected"){if(e.length>0&&function nr(n,a,e){return e.some(t=>Go(n,a,t)&&un(t)!==Ye)}(n,e,t)){const d=new Lt(a,function Nf(n,a,e,t){const r={};r[Ye]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&un(l)!==Ye){const d=new Lt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[un(l)]=d}return r}(n,a,t,new Lt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mr(n,a,e){return e.some(t=>Go(n,a,t))}(n,e,t)){const d=new Lt(n.segments,function Ff(n,a,e,t,r,l){const d={};for(const o of t)if(Go(n,e,o)&&!r[un(o)]){const s=new Lt([],{});s._sourceSegment=n,s._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[un(o)]=s}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Lt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function Go(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Wo(n,a,e,t){return!!(un(n)===t||t!==Ye&&Go(a,e,n))&&("**"===n.path||lo(a,n,e).matched)}function co(n,a,e){return 0===a.length&&!n.children[e]}class qn{constructor(a){this.segmentGroup=a||null}}class Cd{constructor(a){this.urlTree=a}}function rc(n){return new ki.y(a=>a.error(new qn(n)))}function Yf(n){return new ki.y(a=>a.error(new Cd(n)))}function N_(n){return new ki.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class Ad{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=ja(this.urlTree.root,[],[],this.config).segmentGroup,e=new Lt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ye).pipe((0,dt.U)(l=>this.createUrlTree(Yt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Un.K)(l=>{if(l instanceof Cd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof qn?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,Ye).pipe((0,dt.U)(r=>this.createUrlTree(Yt(r),a.queryParams,a.fragment))).pipe((0,Un.K)(r=>{throw r instanceof qn?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Lt([],{[Ye]:a}):a;return new hs(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,dt.U)(l=>new Lt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,Er.b)(l=>{const d=t.children[l],o=jf(e,l);return this.expandSegmentGroup(a,o,d,l).pipe((0,dt.U)(s=>({segment:s,outlet:l})))}),ql((l,d)=>(l[d.outlet]=d.segment,l),{}),function B(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,qt.h)((r,l)=>n(r,l,t)):fi.y,sa(1),e?(0,Df.d)(a):(0,Zs.T)(()=>new id.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,Er.b)(o=>this.expandSegmentAgainstRoute(a,e,t,o,r,l,d).pipe((0,Un.K)(c=>{if(c instanceof qn)return(0,Ne.of)(null);throw c}))),(0,W.P)(o=>!!o),(0,Un.K)((o,s)=>{if(o instanceof id.K||"EmptyError"===o.name){if(co(e,r,l))return(0,Ne.of)(new Lt([],{}));throw new qn(e)}throw o}))}expandSegmentAgainstRoute(a,e,t,r,l,d,o){return Wo(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):rc(e):rc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Yf(l):this.lineralizeSegments(t,l).pipe((0,O.zg)(d=>{const o=new Lt(d,{});return this.expandSegment(a,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=lo(e,r,l);if(!o)return rc(e);const h=this.applyRedirectCommands(s,r.redirectTo,u);return r.redirectTo.startsWith("/")?Yf(h):this.lineralizeSegments(r,h).pipe((0,O.zg)(f=>this.expandSegment(a,e,t,f.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,dt.U)(f=>(t._loadedConfig=f,new Lt(r,{})))):(0,Ne.of)(new Lt(r,{}));const{matched:d,consumedSegments:o,lastChild:s}=lo(e,t,r);if(!d)return rc(e);const c=r.slice(s);return this.getChildConfig(a,t,r).pipe((0,O.zg)(h=>{const f=h.module,b=h.routes,{segmentGroup:j,slicedSegments:ie}=ja(e,o,c,b),pe=new Lt(j.segments,j.children);if(0===ie.length&&pe.hasChildren())return this.expandChildren(f,b,pe).pipe((0,dt.U)(zt=>new Lt(o,zt)));if(0===b.length&&0===ie.length)return(0,Ne.of)(new Lt(o,{}));const Ue=un(t)===l;return this.expandSegment(f,pe,b,ie,Ue?Ye:l,!0).pipe((0,dt.U)(st=>new Lt(o.concat(st.segments),st.children)))}))}getChildConfig(a,e,t){return e.children?(0,Ne.of)(new ic(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,Ne.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,O.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,dt.U)(l=>(e._loadedConfig=l,l))):function Pe(n){return new ki.y(a=>a.error(ds(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,Ne.of)(new ic([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,Ne.of)(!0);const l=r.map(d=>{const o=a.get(d);let s;if(function ao(n){return n&&Pr(n.canLoad)}(o))s=o.canLoad(e,t);else{if(!Pr(o))throw new Error("Invalid CanLoad guard");s=o(e,t)}return pr(s)});return(0,Ne.of)(l).pipe(nc(),(0,Q.b)(d=>{if(!ir(d))return;const o=ds(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw o.url=d,o}),(0,dt.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ne.of)(t);if(r.numberOfChildren>1||!r.children[Ye])return N_(a.redirectTo);r=r.children[Ye]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new hs(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ui(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ui(e.children,(o,s)=>{d[s]=this.createSegmentGroup(a,o,t,r)}),new Lt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}function Yt(n){const a={};for(const t of Object.keys(n.children)){const l=Yt(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Cs(n){if(1===n.numberOfChildren&&n.children[Ye]){const a=n.children[Ye];return new Lt(n.segments.concat(a.segments),a.children)}return n}(new Lt(n.segments,a))}class vd{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class uo{constructor(a,e){this.component=a,this.route=e}}function Uf(n,a,e){const t=n._root;return As(t,a?a._root:null,e,[t.value])}function ac(n,a,e){const t=function gh(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function As(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=eo(a);return n.children.forEach(d=>{(function rr(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const s=function Y_(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!La(n.url,a.url);case"pathParamsOrQueryParamsChange":return!La(n.url,a.url)||!Hr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oa(n,a)||!Hr(n.queryParams,a.queryParams);default:return!Oa(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);s?r.canActivateChecks.push(new vd(t)):(l.data=d.data,l._resolvedData=d._resolvedData),As(n,a,l.component?o?o.children:null:e,t,r),s&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new uo(o.outlet.component,d))}else d&&Lr(a,o,r),r.canActivateChecks.push(new vd(t)),As(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ui(l,(d,o)=>Lr(d,e.getContext(o),r)),r}function Lr(n,a,e){const t=eo(n),r=n.value;ui(t,(l,d)=>{Lr(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new uo(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Ir{}function yh(n){return new ki.y(a=>a.error(n))}class wh{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=ja(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,Ye);if(null===e)return null;const t=new ms([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fr(t,e),l=new ud(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=cd(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],o=jf(a,l),s=this.processSegmentGroup(o,d,l);if(null===s)return null;t.push(...s)}const r=Ch(t);return function Wf(n){n.sort((a,e)=>a.value.outlet===Ye?-1:e.value.outlet===Ye?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return co(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Wo(a,e,t,r))return null;let l,d=[],o=[];if("**"===a.path){const b=t.length>0?Vo(t).parameters:{};l=new ms(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fa(a),un(a),a.component,a,Ah(e),ho(e)+t.length,ha(a))}else{const b=lo(e,a,t);if(!b.matched)return null;d=b.consumedSegments,o=t.slice(b.lastChild),l=new ms(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Fa(a),un(a),a.component,a,Ah(e),ho(e)+d.length,ha(a))}const s=function xd(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=ja(e,d,o,s.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(s,c);return null===b?null:[new fr(l,b)]}if(0===s.length&&0===u.length)return[new fr(l,[])];const h=un(a)===r,f=this.processSegment(s,c,u,h?Ye:r);return null===f?null:[new fr(l,f)]}}function Jo(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Ch(n){const a=[],e=new Set;for(const t of n){if(!Jo(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=Ch(t.children);a.push(new fr(t.value,r))}return a.filter(t=>!e.has(t))}function Ah(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ho(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function Fa(n){return n.data||{}}function ha(n){return n.resolve||{}}function Qo(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Sd(n){return(0,rn.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,dt.U)(()=>a)):(0,Ne.of)(a)})}class Or extends class Mn{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ed=new i.OlP("ROUTES");class Jf{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,dt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new ic(Bo(d.injector.get(Ed,void 0,i.XFs.Self|i.XFs.Optional)).map(mh),d)}),(0,Un.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new Ws.c(r,()=>new Ee.xQ).pipe((0,re.x)()),e._loader$}loadModuleFactory(a){return pr(a()).pipe((0,O.zg)(e=>e instanceof i.YKP?(0,Ne.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class Qf{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function z_(n){throw n}function Dd(n,a,e){return a.parse("/")}function vs(n,a){return(0,Ne.of)(null)}const lc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ot={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let C=(()=>{class n{constructor(e,t,r,l,d,o,s){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.xQ,this.errorHandler=z_,this.malformedUriErrorHandler=Dd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vs,afterPreactivation:vs},this.urlHandlingStrategy=new Qf,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function Qs(){return new hs(new Lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jf(d,o,f=>this.triggerEvent(new Io(f)),f=>this.triggerEvent(new $s(f))),this.routerState=Lf(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,qt.h)(r=>0!==r.id),(0,dt.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,rn.w)(r=>{let l=!1,d=!1;return(0,Ne.of)(r).pipe((0,Q.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,rn.w)(o=>{const s=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return I(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,Ne.of)(o).pipe((0,rn.w)(h=>{const f=this.transitions.getValue();return t.next(new yt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?ur.E:Promise.resolve(h)}),function Zo(n,a,e,t){return(0,rn.w)(r=>function Gn(n,a,e,t,r){return new Ad(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,dt.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Q.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function po(n,a,e,t,r){return(0,O.zg)(l=>function Ji(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new wh(n,a,e,t,r,l).recognize();return null===d?yh(new Ir):(0,Ne.of)(d)}catch(d){return yh(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,dt.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Q.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new mi(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:j,restoredState:ie,extras:pe}=o,Ue=new yt(f,this.serializeUrl(b),j,ie);t.next(Ue);const Tt=Lf(b,this.rootComponentType).snapshot;return(0,Ne.of)(Object.assign(Object.assign({},o),{targetSnapshot:Tt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),ur.E}),Sd(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=o;return this.hooks.beforePreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,Q.b)(o=>{const s=new la(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,dt.U)(o=>Object.assign(Object.assign({},o),{guards:Uf(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function Td(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ne.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function sc(n,a,e,t){return(0,dn.D)(n).pipe((0,O.zg)(r=>function $o(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ne.of)(!0);const d=l.map(o=>{const s=ac(o,a,r);let c;if(function yd(n){return n&&Pr(n.canDeactivate)}(s))c=pr(s.canDeactivate(n,a,e,t));else{if(!Pr(s))throw new Error("Invalid CanDeactivate guard");c=pr(s(n,a,e,t))}return c.pipe((0,W.P)())});return(0,Ne.of)(d).pipe(nc())}(r.component,r.route,e,a,t)),(0,W.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,O.zg)(o=>o&&function bd(n){return"boolean"==typeof n}(o)?function _h(n,a,e,t){return(0,dn.D)(a).pipe((0,Er.b)(r=>Tn(function bh(n,a){return null!==n&&a&&a(new Oo(n)),(0,Ne.of)(!0)}(r.route.parent,t),function qf(n,a){return null!==n&&a&&a(new Js(n)),(0,Ne.of)(!0)}(r.route,t),function Gf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function zf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>er(()=>{const o=d.guards.map(s=>{const c=ac(s,d.node,e);let u;if(function ph(n){return n&&Pr(n.canActivateChild)}(c))u=pr(c.canActivateChild(t,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=pr(c(t,n))}return u.pipe((0,W.P)())});return(0,Ne.of)(o).pipe(nc())}));return(0,Ne.of)(l).pipe(nc())}(n,r.path,e),function oc(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ne.of)(!0);const r=t.map(l=>er(()=>{const d=ac(l,a,e);let o;if(function so(n){return n&&Pr(n.canActivate)}(d))o=pr(d.canActivate(a,n));else{if(!Pr(d))throw new Error("Invalid CanActivate guard");o=pr(d(a,n))}return o.pipe((0,W.P)())}));return(0,Ne.of)(r).pipe(nc())}(n,r.route,e))),(0,W.P)(r=>!0!==r,!0))}(t,l,n,a):(0,Ne.of)(o)),(0,dt.U)(o=>Object.assign(Object.assign({},e),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,Q.b)(o=>{if(ir(o.guardsResult)){const c=ds(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw c.url=o.guardsResult,c}const s=new hr(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),(0,qt.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),Sd(o=>{if(o.guards.canActivateChecks.length)return(0,Ne.of)(o).pipe((0,Q.b)(s=>{const c=new at(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),(0,rn.w)(s=>{let c=!1;return(0,Ne.of)(s).pipe(function Zf(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ne.of)(e);let l=0;return(0,dn.D)(r).pipe((0,Er.b)(d=>function vh(n,a,e,t){return function Md(n,a,e,t){const r=Qo(n);if(0===r.length)return(0,Ne.of)({});const l={};return(0,dn.D)(r).pipe((0,O.zg)(d=>function Th(n,a,e,t){const r=ac(n,a,t);return pr(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,Q.b)(o=>{l[d]=o}))),sa(1),(0,O.zg)(()=>Qo(l).length===r.length?(0,Ne.of)(l):ur.E))}(n._resolve,n,a,t).pipe((0,dt.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),cd(n,e).resolve),null)))}(d.route,t,n,a)),(0,Q.b)(()=>l++),sa(1),(0,O.zg)(d=>l===r.length?(0,Ne.of)(e):ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Q.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),(0,Q.b)(s=>{const c=new cs(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}))}),Sd(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=o;return this.hooks.afterPreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,dt.U)(o=>{const s=function pd(n,a,e){const t=Ba(n,a._root,e?e._root:void 0);return new oh(t,a)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),(0,Q.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,a,e)=>(0,dt.U)(t=>(new hh(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,Q.b)({next(){l=!0},complete(){l=!0}}),ve(()=>{var o;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===r.id&&(this.currentNavigation=null)}),(0,Un.K)(o=>{if(d=!0,function Dr(n){return n&&n[nd]}(o)){const s=ir(o.url);s||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Pi(r.id,this.serializeUrl(r.extractedUrl),o.message);t.next(c),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||I(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const s=new di(r.id,this.serializeUrl(r.extractedUrl),o);t.next(s);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const s=Object.assign({},d);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(l.state=s)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Vf(e),this.config=e.map(mh),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:o,preserveFragment:s}=t,c=r||this.routerState.root,u=s?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function ch(n,a,e,t,r){if(0===e.length)return Va(a.root,a.root,a,t,r);const l=function ys(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ua(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return ui(l.outlets,(s,c)=>{o[c]="string"==typeof s?s.split("/"):s}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?e=!0:".."===o?a++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new ua(e,a,t)}(e);if(l.toRoot())return Va(a.root,new Lt([],{}),a,t,r);const d=function io(n,a,e){if(n.isAbsolute)return new ws(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ws(l,l===a.root,0)}const t=zo(n.commands[0])?0:1;return function fd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ws(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),o=d.processChildren?qo(d.segmentGroup,d.index,l.commands):gd(d.segmentGroup,d.index,l.commands);return Va(d.segmentGroup,o,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=ir(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function H(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new wt(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var o,s,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=I(t)&&u&&!I(u.source),f=u.rawUrl.toString()===e.toString(),b=u.id===(null===(o=this.currentNavigation)||void 0===o?void 0:o.id);if(h&&f&&b)return Promise.resolve(!0);let ie,pe,Ue;d?(ie=d.resolve,pe=d.reject,Ue=d.promise):Ue=new Promise((zt,va)=>{ie=zt,pe=va});const Tt=++this.navigationId;let st;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),st=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):st=0,this.setTransition({id:Tt,targetPageId:st,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ie,reject:pe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(zt=>Promise.reject(zt))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const r=new Pi(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function I(n){return"imperative"!==n}let F=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new Ee.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),J=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Ee.xQ,this.subscription=e.events.subscribe(l=>{l instanceof wt&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.Y36(T.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function ae(n){return""===n||!!n}class vt{}class Ci{preload(a,e){return(0,Ne.of)(null)}}let Br=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new Jf(r,t,s=>e.triggerEvent(new Io(s)),s=>e.triggerEvent(new $s(s)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,qt.h)(e=>e instanceof wt),(0,Er.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,Gs.J)(),(0,dt.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,O.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(vt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Vr=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof yt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wt&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Me&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ko=new i.OlP("ROUTER_CONFIGURATION"),q_=new i.OlP("ROUTER_FORROOT_GUARD"),Ts=[T.Ye,{provide:od,useClass:Fo},{provide:C,useFactory:function KC(n,a,e,t,r,l,d={},o,s){const c=new C(null,n,a,e,t,r,Bo(l));return o&&(c.urlHandlingStrategy=o),s&&(c.routeReuseStrategy=s),function W_(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[od,si,T.Ye,i.zs3,i.Sil,Ed,Ko,[class xh{},new i.FiY],[class $f{},new i.FiY]]},si,{provide:yn,useFactory:function XC(n){return n.routerState.root},deps:[C]},Br,Ci,class Qt{preload(a,e){return e().pipe((0,Un.K)(()=>(0,Ne.of)(null)))}},{provide:Ko,useValue:{enableTracing:!1}}];function cc(){return new i.PXZ("Router",C)}let Hd=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[Ts,G_(e),{provide:q_,useFactory:QC,deps:[[C,new i.FiY,new i.tp0]]},{provide:Ko,useValue:t||{}},{provide:T.S$,useFactory:JC,deps:[T.lw,[new i.tBr(T.mr),new i.FiY],Ko]},{provide:Vr,useFactory:$C,deps:[C,T.EM,Ko]},{provide:vt,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Ci},{provide:i.PXZ,multi:!0,useFactory:cc},[Kf,{provide:i.ip1,multi:!0,useFactory:eA,deps:[Kf]},{provide:iA,useFactory:tA,deps:[Kf]},{provide:i.tb,multi:!0,useExisting:iA}]]}}static forChild(e){return{ngModule:n,providers:[G_(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(q_,8),i.LFG(C,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function $C(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Vr(n,a,e)}function JC(n,a,e={}){return e.useHash?new T.Do(n,a):new T.b0(n,a)}function QC(n){return"guarded"}function G_(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Ed,multi:!0,useValue:n}]}let Kf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ee.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(o=>t=o),l=this.injector.get(C),d=this.injector.get(Ko);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,Ne.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(Ko),r=this.injector.get(Br),l=this.injector.get(Vr),d=this.injector.get(C),o=this.injector.get(i.z2F);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function eA(n){return n.appInitializer.bind(n)}function tA(n){return n.bootstrapListener.bind(n)}const iA=new i.OlP("Router Initializer");let hn=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,em.k)(r)?t(...r):t(r))):new ki.y(r=>{rA(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function rA(n,a,e,t,r){let l;if(function aA(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function $_(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function _M(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,o=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Q_=1;const rm=Promise.resolve(),Sh={};function Fi(n){return n in Sh&&(delete Sh[n],!0)}const am={setImmediate(n){const a=Q_++;return Sh[a]=!0,rm.then(()=>Fi(a)&&n()),a},clearImmediate(n){Fi(n)}},om=new class K_ extends nm.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=am.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(am.clearImmediate(e),a.scheduled=void 0)}});var Eh=x(353),X_=x(826),eb=x(9054);class yM{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new wM(a,this.durationSelector))}}class wM extends X_.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,eb.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Xo(n){return!(0,em.k)(n)&&n-parseFloat(n)+1>=0}function Sn(n=0,a,e){let t=-1;return Xo(a)?t=Number(a)<1?1:Number(a):(0,ls.K)(a)&&(e=a),(0,ls.K)(e)||(e=Eh.P),new ki.y(r=>{const l=Xo(n)?n:+n-e.now();return e.schedule(lm,l,{index:0,period:t,subscriber:r})})}function lm(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function cm(n,a=Eh.P){return function oA(n){return function(e){return e.lift(new yM(n))}}(()=>Sn(n,a))}function Je(n){return a=>a.lift(new En(n))}class En{constructor(a){this.notifier=a}call(a,e){const t=new Rd(a),r=(0,eb.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Rd extends X_.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Ld;try{Ld="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ld=!1}let el,bi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Ld)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const tb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dm(){if(el)return el;if("object"!=typeof document||!document)return el=new Set(tb),el;let n=document.createElement("input");return el=new Set(tb.filter(a=>(n.setAttribute("type",a),n.type===a))),el}let Id,Dh,xs,Bd;function Na(n){return function ib(){if(null==Id&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Id=!0}))}finally{Id=Id||!1}return Id}()?n:!!n.capture}function nb(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Od(){if("object"!=typeof document||!document)return 0;if(null==Dh){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Dh=0,0===n.scrollLeft&&(n.scrollLeft=1,Dh=0===n.scrollLeft?1:2),n.remove()}return Dh}function Hh(n){if(function lA(){if(null==Bd){const n="undefined"!=typeof document?document.head:null;Bd=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Bd}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Ya(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function fa(n){return n.composedPath?n.composedPath()[0]:n.target}function um(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const cA=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function dA(){return(0,i.f3M)(T.K0)}}),uA=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Mi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function rb(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?uA.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cA,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),kh=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Ee.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ki.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(cm(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ne.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,qt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Qi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>pa(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ph=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Ee.xQ,this._elementScrolled=new ki.y(d=>this.ngZone.runOutsideAngular(()=>pa(this.elementRef.nativeElement,"scroll").pipe(Je(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=Od()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Od()?e.left=e.right:1==Od()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;nb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==Od()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==Od()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(kh),i.Y36(i.R0b),i.Y36(Mi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),za=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Ee.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[uc,dc,gr],uc,gr]}),n})();class Fd{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class il extends Fd{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class fo extends Fd{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class hm extends Fd{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class pm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof il?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof fo?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof hm?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class _A extends pm{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,s=this._document.createComment("dom-portal");o.parentNode.insertBefore(s,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(o,s)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context);return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let bA=(()=>{class n extends fo{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),qa=(()=>{class n extends pm{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),nl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Si=x(6787);class hb{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new pb(a,this.predicate,this.inclusive))}}class pb extends Yn.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function Ki(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const Lb=nb();class Ib{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=zi(-this._previousScrollPosition.left),a.style.top=zi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Lb&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lb&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class UA{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ar{enable(){}disable(){}attach(){}}function wm(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function Ob(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class s0{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();wm(e,[{width:t,height:r,bottom:r,right:t,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 o0=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new ar,this.close=d=>new UA(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Ib(this._viewportRuler,this._document),this.reposition=d=>new s0(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(kh),i.LFG(za),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class mc{constructor(a){if(this.scrollStrategy=new ar,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class Cm{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class qA{constructor(a,e,t,r,l,d,o,s,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=o,this._location=s,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Ee.xQ,this._attachments=new Ee.xQ,this._detachments=new Ee.xQ,this._locationChanges=he.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Ee.xQ,this._outsidePointerEvents=new Ee.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,jt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=zi(this._config.width),a.height=zi(this._config.height),a.minWidth=zi(this._config.minWidth),a.minHeight=zi(this._config.minHeight),a.maxWidth=zi(this._config.maxWidth),a.maxHeight=zi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=kd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(Je((0,Si.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Am=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||um()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let s=this._getOriginPoint(a,r,o),c=this._getOverlayPoint(s,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!d||d.overlayFit.visibleAreas&&(s=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ol(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vm),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,o=this._isRtl()?a.left:a.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=xm(e);let{x:d,y:o}=a,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(d+=s),c&&(o+=c);let f=0-o,b=o+l.height-t.height,j=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ie=this._subtractOverflows(l.height,f,b),pe=j*ie;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:ie===l.height,fitsInViewportHorizontally:j==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Bb(this._overlayRef.getConfig().minHeight),o=Bb(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=o&&o<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=xm(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),o=Math.max(a.y+r.height-l.height,0),s=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xj&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-j/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),j=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>j&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-j/2)}return{top:d,left:h,bottom:o,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=zi(t.height),r.top=zi(t.top),r.bottom=zi(t.bottom),r.width=zi(t.width),r.left=zi(t.left),r.right=zi(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=zi(l)),d&&(r.maxWidth=zi(d))}this._lastBoundingBoxSize=t,ol(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ol(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ol(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ol(t,this._getExactOverlayY(e,a,u)),ol(t,this._getExactOverlayX(e,a,u))}else t.position="static";let o="",s=this._getOffset(e,"x"),c=this._getOffset(e,"y");s&&(o+=`translateX(${s}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=zi(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=zi(d.maxWidth):l&&(t.maxWidth="")),ol(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=zi(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=zi(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ob(a,t),isOriginOutsideView:wm(a,t),isOverlayClipped:Ob(e,t),isOverlayOutsideView:wm(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&kd(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ol(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Bb(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(GA);return e&&"px"!==e?null:parseFloat(a)}return n||null}function xm(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mm="cdk-global-overlay-wrapper";class WA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Mm),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:o}=t,s=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o);a.position=this._cssPosition,a.marginLeft=s?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Mm),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let $a=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new WA}flexibleConnectedTo(e){return new Tm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(za),i.LFG(T.K0),i.LFG(bi),i.LFG(Am))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vh=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZA=(()=>{class n extends Vh{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$A=(()=>{class n extends Vh{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=fa(r)},this._clickListener=r=>{const l=fa(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const c=o[s];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d0=0,br=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new mc(e);return d.direction=d.direction||this._directionality.value,new qA(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+d0++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new _A(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(o0),i.LFG(Am),i.LFG(i._Vd),i.LFG($a),i.LFG(ZA),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(Mi),i.LFG(T.Ye),i.LFG($A))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const JA=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Vb=new i.OlP("cdk-connected-overlay-scroll-strategy");let jb=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),jh=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=he.w.EMPTY,this._attachSubscription=he.w.EMPTY,this._detachSubscription=he.w.EMPTY,this._positionSubscription=he.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new fo(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ie(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Ie(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Ie(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Ie(e)}get push(){return this._push}set push(e){this._push=Ie(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=JA);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Ki(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new mc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof jb?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function yA(n,a=!1){return e=>e.lift(new hb(n,a))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Vb),i.Y36(Mi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const KA={provide:Vb,deps:[br],useFactory:function QA(n){return()=>n.scrollStrategies.reposition()}};let _o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[br,KA],imports:[[uc,nl,tl],tl]}),n})();var ll=x(13);function Fh(n){return a=>a.lift(new Yb(n))}class Yb{constructor(a){this.total=a}call(a,e){return e.subscribe(new XA(a,this.total))}}class XA extends Yn.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function cl(n,a){return e=>e.lift(new Sm(n,a))}class Sm{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new u0(a,this.compare,this.keySelector))}}class u0 extends Yn.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let Ub=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Em=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Qi(e);return new ki.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qd=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Ie(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=_i(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ll.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Em),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ub]}),n})();function dl(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const qb="cdk-describedby-message",Hm="cdk-describedby-host";let Nh=0,km=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Nh++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Gd(t,r);"string"!=typeof t?(_c(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=Gd(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const o=this._messageRegistry.get(d);o&&0===o.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Hm}="${this._id}"]`);for(let r=0;r0!=r.indexOf(qb));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function zb(n,a,e){const t=dl(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Hm,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Es(n,a,e){const r=dl(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Hm)}_isElementDescribedByMessage(e,t){const r=dl(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gd(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function _c(n){n.id||(n.id=`${qb}-${Nh++}`)}class Gb{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.xQ,this._typeaheadSubscription=he.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee.xQ,this.change=new Ee.xQ,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Q.b)(e=>this._pressedLetters.push(e)),(0,ll.b)(a),(0,qt.h)(()=>this._pressedLetters.length>0),(0,dt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Ki(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a),r=e[t];this._activeItem=null==r?null:r,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Pm extends Gb{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class ul extends Gb{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Yh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Rm(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function tv(n){try{return n.frameElement}catch(a){return null}}(function av(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Jb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Jb(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function yc(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function rv(n){return!function nv(n){return function bc(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function iv(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function Wb(n){return function Zb(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||$b(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $b(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Jb(n){if(!$b(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class sv{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(a)}}let Lm=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new sv(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yh),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jr=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Ie(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Ie(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ya(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Uh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function zh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const uv=new i.OlP("cdk-input-modality-detector-options"),hv={ignoreKeys:[18,17,224,91,16]},Wd=Na({passive:!0,capture:!0});let Kb=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=d=>{var o,s;(null===(s=null===(o=this._options)||void 0===o?void 0:o.ignoreKeys)||void 0===s?void 0:s.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=fa(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Uh(d)?"keyboard":"mouse"),this._mostRecentTarget=fa(d))},this._onTouchstart=d=>{zh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=fa(d))},this._options=Object.assign(Object.assign({},hv),l),this.modalityDetected=this._modality.pipe(Fh(1)),this.modalityChanged=this.modalityDetected.pipe(cl()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Wd),r.addEventListener("mousedown",this._onMousedown,Wd),r.addEventListener("touchstart",this._onTouchstart,Wd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Wd),document.removeEventListener("mousedown",this._onMousedown,Wd),document.removeEventListener("touchstart",this._onTouchstart,Wd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(uv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pv=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function fv(){return null}}),p0=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let mv=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(o=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,o(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=r,this._ngZone=l,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(mv),i.Y36(Em),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const gv=new i.OlP("cdk-focus-monitor-default-options"),Zd=Na({passive:!0,capture:!0});let Wn=(()=>{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 Ee.xQ,this._rootNodeFocusAndBlurListener=o=>{const s=fa(o),c="focus"===o.type?this._onFocus:this._onBlur;for(let u=s;u;u=u.parentElement)c.call(this,o,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=Qi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ne.of)(null);const l=Hh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new Ee.xQ,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=Qi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Qi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,s])=>this._originChanged(o,t,s)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=fa(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Zd)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Zd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Zd),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(Kb),i.LFG(T.K0,8),i.LFG(gv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_v=(()=>{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Wn))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const Fr="cdk-high-contrast-black-on-white",bv="cdk-high-contrast-white-on-black",Xb="cdk-high-contrast-active";let Bm=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Xb),e.remove(Fr),e.remove(bv),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Xb),e.add(Fr)):2===t&&(e.add(Xb),e.add(bv))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc,gc]]}),n})();class Vm{}const bo="*";function ei(n,a){return{type:7,name:n,definitions:a,options:{}}}function ct(n,a=null){return{type:4,styles:a,timings:n}}function ey(n,a=null){return{type:3,steps:n,options:a}}function Gh(n,a=null){return{type:2,steps:n,options:a}}function He(n){return{type:6,styles:n,offset:null}}function Dt(n,a,e){return{type:0,name:n,styles:a,options:e}}function hl(n){return{type:5,steps:n}}function ft(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function ty(n=null){return{type:9,options:n}}function Dn(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function wc(n){Promise.resolve(null).then(n)}class $d{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){wc(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class iy{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?wc(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Ja(){return"undefined"!=typeof window&&void 0!==window.document}function pl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ri(n){switch(n.length){case 0:return new $d;case 1:return n[0];default:return new iy(n)}}function yo(n,a,e,t,r={},l={}){const d=[],o=[];let s=-1,c=null;if(t.forEach(u=>{const h=u.offset,f=h==s,b=f&&c||{};Object.keys(u).forEach(j=>{let ie=j,pe=u[j];if("offset"!==j)switch(ie=a.normalizePropertyName(ie,d),pe){case"!":pe=r[j];break;case bo:pe=l[j];break;default:pe=a.normalizeStyleValue(j,ie,pe,d)}b[ie]=pe}),f||o.push(b),c=b,s=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return o}function Cc(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&sr(e,"start",n)));break;case"done":n.onDone(()=>t(e&&sr(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&sr(e,"destroy",n)))}}function sr(n,a,e){const t=e.totalTime,l=Qd(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Qd(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function pn(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function fl(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let wo=(n,a)=>!1,ml=(n,a,e)=>[];(pl()||"undefined"!=typeof Element)&&(wo=Ja()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),ml=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Nr=null,gl=!1;function _l(n){Nr||(Nr=function ny(){return"undefined"!=typeof document?document.body:null}()||{},gl=!!Nr.style&&"WebkitAppearance"in Nr.style);let a=!0;return Nr.style&&!function Ac(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Nr.style,!a&&gl&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Nr.style)),a}const Fm=wo,Nm=ml;let Ym=(()=>{class n{validateStyleProperty(e){return _l(e)}matchesElement(e,t){return!1}containsElement(e,t){return Fm(e,t)}query(e,t,r){return Nm(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],s){return new $d(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{}return n.NOOP=new Ym,n})();const zm="ng-enter",Xd="ng-leave",Zh="ng-trigger",eu=".ng-trigger",qm="ng-animating",Gm=".ng-animating";function bl(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:$h(parseFloat(a[1]),a[2])}function $h(n,a){return"s"===a?1e3*n:n}function Jh(n,a,e){return n.hasOwnProperty("duration")?n:function sy(n,a,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=$h(parseFloat(o[1]),o[2]);const s=o[3];null!=s&&(l=$h(parseFloat(s),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,s=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),o=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),o=!0),o&&a.splice(s,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function vc(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function yl(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else vc(n,e);return e}function ly(n,a,e){return e?a+":"+e+";":""}function Qh(n){let a="";for(let e=0;e{const r=Co(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),pl()&&Qh(n))}function wl(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=Co(e);n.style[t]=""}),pl()&&Qh(n))}function Kh(n){return Array.isArray(n)?1==n.length?n[0]:Gh(n):n}const cy=new RegExp("{{\\s*(.+?)\\s*}}","g");function dy(n){let a=[];if("string"==typeof n){let e;for(;e=cy.exec(n);)a.push(e[1]);cy.lastIndex=0}return a}function tu(n,a,e){const t=n.toString(),r=t.replace(cy,(l,d)=>{let o=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),o=""),o.toString()});return r==t?n:r}function Wm(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const Cv=/-+([a-z0-9])/g;function Co(n){return n.replace(Cv,(...a)=>a[1].toUpperCase())}function Av(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function or(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function iu(n,a){return window.getComputedStyle(n)[a]}function hy(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function Tv(n,a,e){if(":"==n[0]){const s=function xv(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof s)return void a.push(s);n=s}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(py(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(py(d,r))}(t,e,a)):e.push(n),e}const ep=new Set(["true","1"]),tp=new Set(["false","0"]);function py(n,a){const e=ep.has(n)||tp.has(n),t=ep.has(a)||tp.has(a);return(r,l)=>{let d="*"==n||n==r,o="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?ep.has(n):tp.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?ep.has(a):tp.has(a)),d&&o}}const Mv=new RegExp("s*:selfs*,?","g");function ip(n,a,e){return new Jm(n).build(a,e)}class Jm{constructor(a){this._driver=a}build(a,e){const t=new Sv(e);return this._resetContextStyleTimingState(t),or(this,Kh(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const s=o,c=s.name;c.toString().split(/\s*,\s*/).forEach(u=>{s.name=u,l.push(this.visitState(s,e))}),s.name=c}else if(1==o.type){const s=this.visitTransition(o,e);t+=s.queryCount,r+=s.depCount,d.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};if(t.styles.forEach(o=>{if(Ao(o)){const s=o;Object.keys(s).forEach(c=>{dy(s[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const o=Wm(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${o.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=or(this,Kh(a.animation),e);return{type:1,matchers:hy(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>or(this,t,e)),options:Ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const o=or(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:Ds(a.options)}}visitAnimate(a,e){const t=function fy(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return nu(Jh(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=nu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||Jh(t,a),nu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:He({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=He(c)}e.currentTime+=t.duration+t.delay;const s=this.visitStyle(d,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==bo?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(Ao(d)){const o=d,s=o.easing;if(s&&(l=s,delete o.easing),!r)for(let c in o)if(o[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(o=>{if(!this._driver.validateStyleProperty(o))return void e.errors.push(`The provided animation property "${o}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],c=s[o];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${o}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(s[o]={startTime:l,endTime:r}),e.options&&function g0(n,a,e){const t=a.params||{},r=dy(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[o],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let o=!1,s=!1,c=0;const u=a.steps.map(Ue=>{const Tt=this._makeStyleAst(Ue,e);let st=null!=Tt.offset?Tt.offset:function b0(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(Ao(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(Ao(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(Tt.styles),zt=0;return null!=st&&(l++,zt=Tt.offset=st),s=s||zt<0||zt>1,o=o||zt0&&l{const st=f>0?Tt==b?1:f*Tt:d[Tt],zt=st*pe;e.currentTime=j+ie.delay+zt,ie.duration=zt,this._validateStyleAst(Ue,e),Ue.offset=st,t.styles.push(Ue)}),t}visitReference(a,e){return{type:8,animation:or(this,Kh(a.animation),e),options:Ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function _0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(Mv,"")),n=n.replace(/@\*/g,eu).replace(/@\w+/g,e=>eu+"-"+e.substr(1)).replace(/:animating/g,Gm),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,pn(e.collectedStyles,e.currentQuerySelector,{});const o=or(this,Kh(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:a.selector,options:Ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Jh(a.timings,e.errors,!0);return{type:12,animation:or(this,Kh(a.animation),e),timings:t,options:null}}}class Sv{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ao(n){return!Array.isArray(n)&&"object"==typeof n}function Ds(n){return n?(n=vc(n)).params&&(n.params=function Qm(n){return n?vc(n):null}(n.params)):n={},n}function nu(n,a,e){return{duration:n,delay:a,easing:e}}function Km(n,a,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Tc{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const y0=new RegExp(":enter","g"),eg=new RegExp(":leave","g");function ru(n,a,e,t,r,l={},d={},o,s,c=[]){return(new gy).buildKeyframes(n,a,e,t,r,l,d,o,s,c)}class gy{buildKeyframes(a,e,t,r,l,d,o,s,c,u=[]){c=c||new Tc;const h=new su(a,e,c,r,l,u,[]);h.options=s,h.currentTimeline.setStyles([d],null,h.errors,s),or(this,t,h);const f=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(o).length){let b;for(let j=f.length-1;j>=0;j--){const ie=f[j];if(ie.element===e){b=ie;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([o],null,h.errors,s)}return f.length?f.map(b=>b.buildKeyframes()):[Km(e,[],[],[],0,0,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?bl(t.duration):null,o=null!=t.delay?bl(t.delay):null;return 0!==d&&a.forEach(s=>{const c=e.appendInstructionToTimeline(s,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),or(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=au);const d=bl(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>or(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?bl(a.options.delay):0;a.steps.forEach(d=>{const o=e.createSubContext(a.options);l&&o.delayNextStep(l),or(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Jh(e.params?tu(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,a.styles.forEach(s=>{o.forwardTime((s.offset||0)*l),o.setStyles(s.styles,s.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?bl(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=au);let d=t;const o=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(s=h.currentTimeline),or(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let s=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":s=o-s;break;case"full":s=t.currentStaggerTime}const u=e.currentTimeline;s&&u.delayNextStep(s);const h=u.currentTime;or(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const au={};class su{constructor(a,e,t,r,l,d,o,s){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=au,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ou(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=bl(t.duration)),null!=t.delay&&(r.delay=bl(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=tu(l[o],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new su(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=au,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new _y(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let o=[];if(r&&o.push(this.element),a.length>0){a=(a=a.replace(y0,"."+this._enterClassName)).replace(eg,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class ou{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new ou(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||bo,this._currentKeyframe[e]=bo}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function tg(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=bo})):yl(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(o=>{const s=tu(d[o],l,t);this._pendingStyles[o]=s,this._localTimelineStyles.hasOwnProperty(o)||(this._backFill[o]=this._globalTimelineStyles.hasOwnProperty(o)?this._globalTimelineStyles[o]:bo),this._updateStyle(o,s)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[a]=e,this._updateStyle(a,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const c=yl(o,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==bo&&e.add(u)}),t||(c.offset=s/this.duration),r.push(c)});const l=a.size?Wm(a.values()):[],d=e.size?Wm(e.values()):[];if(t){const o=r[0],s=vc(o);o.offset=0,s.offset=1,r=[o,s]}return Km(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class _y extends ou{constructor(a,e,t,r,l,d,o=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,s=yl(a[0],!1);s.offset=0,l.push(s);const c=yl(a[0],!1);c.offset=np(o),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let f=yl(a[h],!1);f.offset=np((e+f.offset*t)/d),l.push(f)}t=d,e=0,r="",a=l}return Km(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function np(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class rp{}class ig extends rp{normalizePropertyName(a,e){return Co(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(by[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const by=(()=>function Hv(n){const a={};return n.forEach(e=>a[e]=!0),a}("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".split(",")))();function ng(n,a,e,t,r,l,d,o,s,c,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:s,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const ap={};class sp{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function rg(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,o,s,c,u){const h=[],f=this.ast.options&&this.ast.options.params||ap,j=this.buildStyles(t,o&&o.params||ap,h),ie=s&&s.params||ap,pe=this.buildStyles(r,ie,h),Ue=new Set,Tt=new Map,st=new Map,zt="void"===r,va={params:Object.assign(Object.assign({},f),ie)},ns=u?[]:ru(a,e,this.ast.animation,l,d,j,pe,va,c,h);let vr=0;if(ns.forEach(Fl=>{vr=Math.max(Fl.duration+Fl.delay,vr)}),h.length)return ng(e,this._triggerName,t,r,zt,j,pe,[],[],Tt,st,vr,h);ns.forEach(Fl=>{const Nl=Fl.element,BD=pn(Tt,Nl,{});Fl.preStyleProps.forEach(Zu=>BD[Zu]=!0);const B_=pn(st,Nl,{});Fl.postStyleProps.forEach(Zu=>B_[Zu]=!0),Nl!==e&&Ue.add(Nl)});const jl=Wm(Ue.values());return ng(e,this._triggerName,t,r,zt,j,pe,ns,jl,Tt,st,vr)}}class yy{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=vc(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(o=>{let s=d[o];s.length>1&&(s=tu(s,r,e));const c=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,c,s,e),t[c]=s})}}),t}}class Cy{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new yy(r.style,r.options&&r.options.params||{},t)}),ag(this.states,"true","1"),ag(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new sp(a,r,this.states))}),this.fallbackTransition=function Ay(n,a,e){return new sp(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function ag(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const vy=new Tc;class Ty{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=ip(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=yo(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const o=new Map;if(l?(d=ru(this._driver,e,l,zm,Xd,{},{},t,vy,r),d.forEach(u=>{const h=pn(o,u.element,{});u.postStyleProps.forEach(f=>h[f]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((u,h)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(h,f,bo)})});const c=Ri(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Qd(e,"","","");return Cc(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const sg="ng-animate-queued",og="ng-animate-disabled",on=[],lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ur="__ng_removed";class op{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function Sy(n){return null!=n?n:null}(t?a.value:a),t){const l=vc(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const lu="void",lp=new op(lu);class My{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,qi(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ey(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=pn(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const o=pn(this._engine.statesByElement,a,{});return o.hasOwnProperty(e)||(qi(a,Zh),qi(a,Zh+"-"+e),o[e]=lp),()=>{this._engine.afterFlush(()=>{const s=l.indexOf(d);s>=0&&l.splice(s,1),this._triggers[e]||delete o[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new cg(this.id,e,a);let o=this._engine.statesByElement.get(a);o||(qi(a,Zh),qi(a,Zh+"-"+e),this._engine.statesByElement.set(a,o={}));let s=o[e];const c=new op(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[e]=c,s||(s=lp),c.value!==lu&&s.value===c.value){if(!function ma(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{wl(a,pe),Yr(a,Ue)})}return}const f=pn(this._engine.playersByElement,a,[]);f.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==e&&ie.queued&&ie.destroy()});let b=l.matchTransition(s.value,c.value,a,c.params),j=!1;if(!b){if(!r)return;b=l.fallbackTransition,j=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:s,toState:c,player:d,isFallbackTransition:j}),j||(qi(a,sg),d.onStart(()=>{Mc(a,sg)})),d.onDone(()=>{let ie=this.players.indexOf(d);ie>=0&&this.players.splice(ie,1);const pe=this._engine.playersByElement.get(a);if(pe){let Ue=pe.indexOf(d);Ue>=0&&pe.splice(Ue,1)}}),this.players.push(d),f.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[a]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,eu,!0);t.forEach(r=>{if(r[Ur])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const o=[];if(Object.keys(l).forEach(s=>{if(d.set(s,l[s].value),this._triggers[s]){const c=this.trigger(a,s,lu,r);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Ri(o).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const s=this._triggers[d].fallbackTransition,c=t[d]||lp,u=new op(lu),h=new cg(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:s,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[Ur];(!l||l===lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){qi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const s=Qd(l,t.triggerName,t.fromState.value,t.toState.value);s._data=a,Cc(t.player,o.phase,s,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class xc{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new My(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),qi(a,og)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Mc(a,og))}removeNode(a,e,t,r){if(cp(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[Ur]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return cp(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,eu,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Gm,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ri(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[Ur];if(t&&t.setForRemoval){if(a[Ur]=lg,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(og))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ri(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Tc,r=[],l=new Map,d=[],o=new Map,s=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Xe=>{u.add(Xe);const lt=this.driver.query(Xe,".ng-animate-queued",!0);for(let ut=0;ut{const ut=zm+ie++;j.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))});const pe=[],Ue=new Set,Tt=new Set;for(let Xe=0;XeUe.add(Kt)):Tt.add(lt))}const st=new Map,zt=up(f,Array.from(Ue));zt.forEach((Xe,lt)=>{const ut=Xd+ie++;st.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))}),a.push(()=>{b.forEach((Xe,lt)=>{const ut=j.get(lt);Xe.forEach(Kt=>Mc(Kt,ut))}),zt.forEach((Xe,lt)=>{const ut=st.get(lt);Xe.forEach(Kt=>Mc(Kt,ut))}),pe.forEach(Xe=>{this.processLeaveNode(Xe)})});const va=[],ns=[];for(let Xe=this._namespaceList.length-1;Xe>=0;Xe--)this._namespaceList[Xe].drainQueuedTransitions(e).forEach(ut=>{const Kt=ut.player,In=ut.element;if(va.push(Kt),this.collectedEnterElements.length){const Tr=In[Ur];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(ut.triggerName)){const $u=Tr.previousTriggersValues.get(ut.triggerName),Xc=this.statesByElement.get(ut.element);Xc&&Xc[ut.triggerName]&&(Xc[ut.triggerName].value=$u)}return void Kt.destroy()}}const ko=!h||!this.driver.containsElement(h,In),Ta=st.get(In),Kc=j.get(In),Wi=this._buildInstruction(ut,t,Kc,Ta,ko);if(Wi.errors&&Wi.errors.length)return void ns.push(Wi);if(ko)return Kt.onStart(()=>wl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);if(ut.isFallbackTransition)return Kt.onStart(()=>wl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);const FD=[];Wi.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||FD.push(Tr)}),Wi.timelines=FD,t.append(In,Wi.timelines),d.push({instruction:Wi,player:Kt,element:In}),Wi.queriedElements.forEach(Tr=>pn(o,Tr,[]).push(Kt)),Wi.preStyleProps.forEach((Tr,$u)=>{const Xc=Object.keys(Tr);if(Xc.length){let Ju=s.get($u);Ju||s.set($u,Ju=new Set),Xc.forEach(fM=>Ju.add(fM))}}),Wi.postStyleProps.forEach((Tr,$u)=>{const Xc=Object.keys(Tr);let Ju=c.get($u);Ju||c.set($u,Ju=new Set),Xc.forEach(fM=>Ju.add(fM))})});if(ns.length){const Xe=[];ns.forEach(lt=>{Xe.push(`@${lt.triggerName} has failed due to:\n`),lt.errors.forEach(ut=>Xe.push(`- ${ut}\n`))}),va.forEach(lt=>lt.destroy()),this.reportError(Xe)}const vr=new Map,jl=new Map;d.forEach(Xe=>{const lt=Xe.element;t.has(lt)&&(jl.set(lt,lt),this._beforeAnimationBuild(Xe.player.namespaceId,Xe.instruction,vr))}),r.forEach(Xe=>{const lt=Xe.element;this._getPreviousPlayers(lt,!1,Xe.namespaceId,Xe.triggerName,null).forEach(Kt=>{pn(vr,lt,[]).push(Kt),Kt.destroy()})});const Fl=pe.filter(Xe=>dg(Xe,s,c)),Nl=new Map;dp(Nl,this.driver,Tt,c,bo).forEach(Xe=>{dg(Xe,s,c)&&Fl.push(Xe)});const B_=new Map;b.forEach((Xe,lt)=>{dp(B_,this.driver,new Set(Xe),s,"!")}),Fl.forEach(Xe=>{const lt=Nl.get(Xe),ut=B_.get(Xe);Nl.set(Xe,Object.assign(Object.assign({},lt),ut))});const Zu=[],VD=[],jD={};d.forEach(Xe=>{const{element:lt,player:ut,instruction:Kt}=Xe;if(t.has(lt)){if(u.has(lt))return ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ut.disabled=!0,ut.overrideTotalTime(Kt.totalTime),void r.push(ut);let In=jD;if(jl.size>1){let Ta=lt;const Kc=[];for(;Ta=Ta.parentNode;){const Wi=jl.get(Ta);if(Wi){In=Wi;break}Kc.push(Ta)}Kc.forEach(Wi=>jl.set(Wi,In))}const ko=this._buildAnimation(ut.namespaceId,Kt,vr,l,B_,Nl);if(ut.setRealPlayer(ko),In===jD)Zu.push(ut);else{const Ta=this.playersByElement.get(In);Ta&&Ta.length&&(ut.parentPlayer=Ri(Ta)),r.push(ut)}}else wl(lt,Kt.fromStyles),ut.onDestroy(()=>Yr(lt,Kt.toStyles)),VD.push(ut),u.has(lt)&&r.push(ut)}),VD.forEach(Xe=>{const lt=l.get(Xe.element);if(lt&<.length){const ut=Ri(lt);Xe.setRealPlayer(ut)}}),r.forEach(Xe=>{Xe.parentPlayer?Xe.syncPlayerEvents(Xe.parentPlayer):Xe.destroy()});for(let Xe=0;Xe!ko.destroyed);In.length?Dy(this,lt,In):this.processLeaveNode(lt)}return pe.length=0,Zu.forEach(Xe=>{this.players.push(Xe),Xe.onDone(()=>{Xe.destroy();const lt=this.players.indexOf(Xe);this.players.splice(lt,1)}),Xe.play()}),Zu}elementContainsData(a,e){let t=!1;const r=e[Ur];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let d=[];if(e){const o=this.playersByQueriedElement.get(a);o&&(d=o)}else{const o=this.playersByElement.get(a);if(o){const s=!l||l==lu;o.forEach(c=>{c.queued||!s&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const c=s.element,u=c!==l,h=pn(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const j=b.getRealPlayer();j.beforeDestroy&&j.beforeDestroy(),b.destroy(),h.push(b)})}wl(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const o=e.triggerName,s=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(j=>{const ie=j.element;u.add(ie);const pe=ie[Ur];if(pe&&pe.removedBeforeQueried)return new $d(j.duration,j.delay);const Ue=ie!==s,Tt=function Qa(n){const a=[];return zr(n,a),a}((t.get(ie)||on).map(vr=>vr.getRealPlayer())).filter(vr=>!!vr.element&&vr.element===ie),st=l.get(ie),zt=d.get(ie),va=yo(0,this._normalizer,0,j.keyframes,st,zt),ns=this._buildPlayer(j,va,Tt);if(j.subTimeline&&r&&h.add(ie),Ue){const vr=new cg(a,o,ie);vr.setRealPlayer(ns),c.push(vr)}return ns});c.forEach(j=>{pn(this.playersByQueriedElement,j.element,[]).push(j),j.onDone(()=>function Lv(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,j.element,j))}),u.forEach(j=>qi(j,qm));const b=Ri(f);return b.onDestroy(()=>{u.forEach(j=>Mc(j,qm)),Yr(s,e.toStyles)}),h.forEach(j=>{pn(r,j,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new $d(a.duration,a.delay)}}class cg{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new $d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Cc(a,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){pn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function cp(n){return n&&1===n.nodeType}function Iv(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function dp(n,a,e,t,r){const l=[];e.forEach(s=>l.push(Iv(s)));const d=[];t.forEach((s,c)=>{const u={};s.forEach(h=>{const f=u[h]=a.computeStyle(c,h,r);(!f||0==f.length)&&(c[Ur]=Rv,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(s=>Iv(s,l[o++])),d}function up(n,a){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(o){if(!o)return 1;let s=l.get(o);if(s)return s;const c=o.parentNode;return s=e.has(c)?c:r.has(c)?1:d(c),l.set(o,s),s}return a.forEach(o=>{const s=d(o);1!==s&&e.get(s).push(o)}),e}function qi(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function Mc(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function Dy(n,a,e){Ri(e).onDone(()=>n.processLeaveNode(a))}function zr(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class cu{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new xc(a,e,t),this._timelineEngine=new Ty(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let o=this._triggerCache[d];if(!o){const s=[],c=ip(this._driver,l,s);if(s.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${s.join("\n - ")}`);o=function wy(n,a,e){return new Cy(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,d]=fl(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=fl(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Bv=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(wl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wl(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ug(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:iu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class du{validateStyleProperty(a){return _l(a)}matchesElement(a,e){return!1}containsElement(a,e){return Fm(a,e)}query(a,e,t){return Nm(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const s={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(s.easing=l);const c={},u=d.filter(f=>f instanceof hp);(function uy(n,a){return 0===n||0===a})(t,r)&&u.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(j=>c[j]=b[j])}),e=function vv(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(o=>{l.hasOwnProperty(o)||d.push(o),l[o]=e[o]}),d.length)for(var r=1;ryl(f,!1)),c);const h=function Ov(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ug(a[0]),a.length>1&&(t=ug(a[a.length-1]))):a&&(e=ug(a)),e||t?new Bv(n,e,t):null}(a,e);return new hp(a,e,s,h)}}let jv=(()=>{class n extends Vm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Gh(e):e;return hg(this._renderer,null,t,"register",[r]),new Hy(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Hy extends class yv{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new Fv(this._id,a,e||{},this._renderer)}}class Fv{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return hg(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function hg(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const hu="@.disabled";let Nv=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const o=null==d?void 0:d.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new pg("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(s),new ky(this,o,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,o]=l;d(o)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(cu),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pg{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==hu?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class ky extends pg{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==hu?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function fg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function pp(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(a,e,t)}}let mg=(()=>{class n extends cu{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(Wh),i.LFG(rp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ai=new i.OlP("AnimationModuleType"),gg=[{provide:Vm,useClass:jv},{provide:rp,useFactory:function Py(){return new ig}},{provide:cu,useClass:mg},{provide:i.FYo,useFactory:function Ry(n,a,e){return new Nv(n,a,e)},deps:[ke,cu,i.R0b]}],_g=[{provide:Wh,useFactory:()=>new du},{provide:Ai,useValue:"BrowserAnimations"},...gg],Ly=[{provide:Wh,useClass:Ym},{provide:Ai,useValue:"NoopAnimations"},...gg];let Iy=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ly:_g}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:_g,imports:[Sa]}),n})();function Uv(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function zv(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const qv=["*"];let Gv=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Wv=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const $v=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Zv(){return!0}});let it=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!um()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm),i.LFG($v,8),i.LFG(T.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[uc],uc]}),n})();function qr(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Ie(a)}}}function ga(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function Gr(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Ie(a)}}}function vo(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?_i(e):this.defaultTabIndex}}}function fp(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new Ee.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function bg(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ki.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const To=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function By(){return(0,i.f3M)(i.soG)}});class vi{constructor(){this._localeChanges=new Ee.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const yr=new i.OlP("mat-date-formats"),Vy=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function mp(n,a){const e=Array(n);for(let t=0;t{class n extends vi{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return mp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return mp(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return mp(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Vy.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(To,8),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yg={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:vi,useClass:gp}],imports:[[dc]]}),n})(),jy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:yr,useValue:yg}],imports:[[Cl]]}),n})(),wr=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function bp(n,a,e){n.nativeElement.classList.toggle(a,e)}let pu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it],it]}),n})();class Fy{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Qv={enterDuration:225,exitDuration:150},wg=Na({passive:!0}),Ny=["mousedown","touchstart"],Yy=["mouseup","mouseleave","touchend","touchcancel"];class fu{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},Qv),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function yp(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),o=a-r.left,s=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=s-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Kv(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new Fy(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const f=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!f||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},Qv),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Qi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ny))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yy),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Uh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,wg)})})}_removeTriggerEvents(){this._triggerElement&&(Ny.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}),this._pointerUpEventsRegistered&&Yy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}))}}const mu=new i.OlP("mat-ripple-global-options");let Ut=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new fu(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bi),i.Y36(mu,8),i.Y36(Ai,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),_a=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it,dc],it]}),n})(),Cg=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Ag=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it]]}),n})();const Uy=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),vg=new i.OlP("MatOptgroup");let iT=0;class nT{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let gu=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+iT++,this.onSelectionChange=new i.vpe,this._stateChanges=new Ee.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Ie(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ki(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new nT(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),Sc=(()=>{class n extends gu{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Uy,8),i.Y36(vg,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:qv,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Uv,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,zv,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Cg,T.O5,Ut],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function zy(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[_a,T.ez,it,Ag]]}),n})();function qy(n,a){}class _u{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const Gy={dialogContainer:ei("dialogContainer",[Dt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Dt("enter",He({transform:"none"})),ft("* => enter",ct("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),ft("* => void, * => exit",ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let bu=(()=>{class n extends pm{constructor(e,t,r,l,d,o,s,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=o,this._ngZone=s,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Ya(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Ya())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Ya();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(i.sBO),i.Y36(T.K0,8),i.Y36(_u),i.Y36(Yh),i.Y36(i.R0b),i.Y36(Wn))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(qa,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),yu=(()=>{class n extends bu{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,qy,0,0,"ng-template",0)},directives:[qa],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Gy.dialogContainer]}}),n})(),aT=0;class Hn{constructor(a,e,t="mat-dialog-"+aT++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ee.xQ,this._afterClosed=new Ee.xQ,this._beforeClosed=new Ee.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,qt.h)(r=>"opened"===r.state),(0,jt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,qt.h)(r=>"closed"===r.state),(0,jt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,qt.h)(r=>27===r.keyCode&&!this.disableClose&&!Ki(r))).subscribe(r=>{r.preventDefault(),Wy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Wy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,qt.h)(e=>"closing"===e.state),(0,jt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Wy(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const Wr=new i.OlP("MatDialogData"),Zy=new i.OlP("mat-dialog-default-options"),Tg=new i.OlP("mat-dialog-scroll-strategy"),sT={provide:Tg,deps:[br],useFactory:function $y(n){return()=>n.scrollStrategies.block()}};let oT=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.xQ,this._afterOpenedAtThisLevel=new Ee.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=er(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wt(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function k0(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new _u),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const o=l._animationStateChanged.subscribe(s=>{"opening"===s.state&&(this._dialogAnimatingOpen=!0),"opened"===s.state&&(this._dialogAnimatingOpen=!1,o.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new he.w),this._animationStateSubscriptions.add(o)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new mc({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:_u,useValue:t}]}),d=new il(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new fo(e,null,{$implicit:l.data,dialogRef:d}));else{const o=this._createInjector(l,d,t),s=t.attachComponentPortal(new il(e,l.viewContainerRef,o));d.componentInstance=s.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(Mi,null,i.XFs.Optional))&&d.push({provide:Mi,useValue:{value:e.direction,change:(0,Ne.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),fn=(()=>{class n extends oT{constructor(e,t,r,l,d,o,s,c){super(e,t,l,o,s,d,Hn,yu,Wr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(br),i.LFG(i.zs3),i.LFG(T.Ye,8),i.LFG(Zy,8),i.LFG(Tg),i.LFG(n,12),i.LFG(Am),i.LFG(Ai,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),P0=0,lr=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+P0++}ngOnInit(){this._dialogRef||(this._dialogRef=function lT(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn,8),i.Y36(i.SBq),i.Y36(fn))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Cr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),wu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fn,sT],imports:[[_o,nl,it],it]}),n})();var Al=x(6114);let Cu=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(d.prompt="consent"),sessionStorage.getItem("mfa_route")&&(d.acr_values="https://refeds.org/profile/mfa",d.prompt="login",d.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,customQueryParams:d}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,qt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const s=o.split("=");d[s[0]]=s[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,qt.h)(e=>e instanceof wt)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(hn),i.LFG(fn),i.LFG(yn),i.LFG(Al.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ka(n){return!!n&&(n instanceof ki.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var cT=x(7830);function xg(...n){if(1===n.length){const a=n[0];if((0,em.k)(a))return wp(a,null);if((0,cT.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return wp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return wp(n=1===n.length&&(0,em.k)(n[0])?n[0]:n,null).pipe((0,dt.U)(e=>a(...e)))}return wp(n,null)}function wp(n,a){return new ki.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let o=0;o{c||(c=!0,d++),r[o]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,f)=>(u[h]=r[f],u),{}):r),e.complete())}}))}})}const uT=new class dT extends nm.v{}(class Jy extends im.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var xo=x(9312);class Cp extends Yn.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(Cp.dispatch,this.delay,new Ky(a,this.destination)))}_next(a){this.scheduleMessage(xo.P.createNext(a))}_error(a){this.scheduleMessage(xo.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(xo.P.createComplete()),this.unsubscribe()}}class Ky{constructor(a,e){this.notification=a,this.destination=e}}var hT=x(5283);class Xy extends Ee.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new pT(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new td.N;if(this.isStopped||this.hasError?d=he.w.EMPTY:(this.observers.push(a),d=new hT.W(this,a)),r&&a.add(a=new Cp(a,r)),e)for(let o=0;oe&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class pT{constructor(a,e){this.time=a,this.value=e}}function Ap(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function fT({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,o=!1,s=!1;return function(u){l++,(!r||o)&&(o=!1,r=new Xy(n,a,t),d=u.subscribe({next(f){r.next(f)},error(f){o=!0,r.error(f)},complete(){s=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!s&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class Dc{}let Mg=(()=>{class n extends Dc{getTranslation(e){return(0,Ne.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Sg{}let ew=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function vp(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!vp(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Eg(a[t])?t in n?e[t]=Dg(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class Tp{}let tw=(()=>{class n extends Tp{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Xa(e)||!Xa(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Xa(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class xp{}let iw=(()=>{class n extends xp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class nw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Hg=new i.OlP("USE_STORE"),kg=new i.OlP("USE_DEFAULT_LANG"),Pg=new i.OlP("DEFAULT_LANGUAGE"),Mp=new i.OlP("USE_EXTEND");let Li=(()=>{class n{constructor(e,t,r,l,d,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ne.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ne.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Ap(1),(0,jt.q)(1));return this.loadingTranslations=t.pipe((0,dt.U)(r=>this.compiler.compileTranslations(r,e)),Ap(1),(0,jt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Dg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},o=!1;for(let s of t)d[s]=this.getParsedResult(e,s,r),Ka(d[s])&&(o=!0);return o?xg(t.map(c=>Ka(d[c])?d[c]:(0,Ne.of)(d[c]))).pipe((0,dt.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Er.b)(r=>Ka(r=this.getParsedResult(r,e,t))?r:(0,Ne.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Ka(r)?r:(0,Ne.of)(r)}}getStreamOnTranslationChange(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(er(()=>this.get(e,t)),this.onTranslationChange.pipe((0,rn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ne.of)(l)})))}stream(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(er(()=>this.get(e,t)),this.onLangChange.pipe((0,rn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Ka(l)?l:(0,Ne.of)(l)})))}instant(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Ka(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nw),i.LFG(Dc),i.LFG(xp),i.LFG(Tp),i.LFG(Sg),i.LFG(kg),i.LFG(Hg),i.LFG(Mp),i.LFG(Pg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Ka(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(vp(e,this.lastKey)&&vp(t,this.lastParams))return this.value;let r;if(Xa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Hc=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Dc,useClass:Mg},e.compiler||{provide:xp,useClass:iw},e.parser||{provide:Tp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},nw,{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:Mp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Dc,useClass:Mg},e.compiler||{provide:xp,useClass:iw},e.parser||{provide:Tp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:Mp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),mT=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[kn],pipes:[Ct],styles:[""]}),n})();const gT=["mat-button",""],_T=["*"],aw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lg=ga(qr(Gr(class{constructor(n){this._elementRef=n}})));let Ft=(()=>{class n extends Lg{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of aw)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Wn),i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&i.Gf(Ut,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:gT,ngContentSelectors:_T,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Ut],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),Zr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[_a,it],it]}),n})();const bT=["connectionContainer"],sw=["inputContainer"],yT=["label"];function ow(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function wT(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function lw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function O0(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function CT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Au(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,lw,4,1,"ng-container",12),i.YNc(3,O0,1,0,"ng-content",12),i.YNc(4,CT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function AT(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function kc(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function vu(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function vT(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function B0(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,vT,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const cw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],TT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let xT=0;const dw=new i.OlP("MatError");let Hs=(()=>{class n{constructor(e,t){this.id="mat-error-"+xT++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:dw,useExisting:n}])]}),n})();const uw={transitionMessages:ei("transitionMessages",[Dt("enter",He({opacity:1,transform:"translateY(0%)"})),ft("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Tu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),MT=0;const Og=new i.OlP("MatHint");let pw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+MT++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:Og,useExisting:n}])]}),n})(),es=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),ST=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const ET=new i.OlP("MatPrefix"),mw=new i.OlP("MatSuffix");let gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:mw,useExisting:n}])]}),n})(),_w=0;const bw=ga(class{constructor(n){this._elementRef=n}},"primary"),Pc=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bg=new i.OlP("MatFormField");let Zn=(()=>{class n extends bw{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_w++,this._labelId="mat-form-field-label-"+_w++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==s,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Ie(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Wt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Je(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Si.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,pa(this._label.nativeElement,"transitionend").pipe((0,jt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*j+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,it,gc],it]}),n})();function xu(n){return n&&"function"==typeof n.connect}class Vg{applyChanges(a,e,t,r,l){a.forEachOperation((d,o,s)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,s);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==s?(e.remove(o),u=3):(c=e.get(o),e.move(c,s),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class Ii{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}}let Dp=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Mu=new i.OlP("_ViewRepeater");let yw=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),xl=(()=>{class n extends yw{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const $n=new i.OlP("NgValueAccessor"),PT={provide:$n,useExisting:(0,i.Gpc)(()=>Pn),multi:!0},Cw=new i.OlP("CompositionEventMode");let Pn=(()=>{class n extends yw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Su(){const n=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Cw,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([PT]),i.qOj]}),n})();function ks(n){return null==n||0===n.length}function jg(n){return null!=n&&"number"==typeof n.length}const Xi=new i.OlP("NgValidators"),Ps=new i.OlP("NgAsyncValidators"),RT=/^(?=.{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 Oi{static min(a){return function Fg(n){return a=>{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Aw(a)}static requiredTrue(a){return function vw(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Rc(n){return ks(n.value)||RT.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function Tw(n){return a=>ks(a.value)||!jg(a.value)?null:a.value.lengthjg(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function ba(n){if(!n)return kp;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(ks(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return Hu(a)}static composeAsync(a){return Sw(a)}}function Aw(n){return ks(n.value)?{required:!0}:null}function kp(n){return null}function Eu(n){return null!=n}function Lc(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function xw(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function Mw(n,a){return a.map(e=>e(n))}function Du(n){return n.map(a=>function LT(n){return!n.validate}(a)?a:e=>a.validate(e))}function Hu(n){if(!n)return null;const a=n.filter(Eu);return 0==a.length?null:function(e){return xw(Mw(e,a))}}function Yg(n){return null!=n?Hu(Du(n)):null}function Sw(n){if(!n)return null;const a=n.filter(Eu);return 0==a.length?null:function(e){return xg(Mw(e,a).map(Lc)).pipe((0,dt.U)(xw))}}function Pp(n){return null!=n?Sw(Du(n)):null}function Ug(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Rp(n){return n._rawValidators}function zg(n){return n._rawAsyncValidators}function qg(n){return n?Array.isArray(n)?n:[n]:[]}function Lp(n,a){return Array.isArray(n)?n.includes(a):n===a}function IT(n,a){const e=qg(a);return qg(n).forEach(r=>{Lp(e,r)||e.push(r)}),e}function Ip(n,a){return qg(a).filter(e=>!Lp(n,e))}class Op{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(a){this._rawValidators=a||[],this._composedValidatorFn=Yg(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Pp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class $r extends Op{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wn extends Op{get formDirective(){return null}get path(){return null}}class Bp{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let cr=(()=>{class n extends Bp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($r,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ew=(()=>{class n extends Bp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Gg(n,a){return[...a.path,n]}function Rs(n,a){Np(n,a),a.valueAccessor.writeValue(n.value),function UT(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Zg(n,a)})}(n,a),function Pw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function Wg(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Zg(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function YT(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function Fp(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Yp(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Bc(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Np(n,a){const e=Rp(n);null!==a.validator?n.setValidators(Ug(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=zg(n);null!==a.asyncValidator?n.setAsyncValidators(Ug(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Bc(a._rawValidators,r),Bc(a._rawAsyncValidators,r)}function Yp(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Rp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=zg(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Bc(a._rawValidators,t),Bc(a._rawAsyncValidators,t),e}function Zg(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function ku(n,a){Np(n,a)}function Jg(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function Pu(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Up(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===Pn?e=l:function Lw(n){return Object.getPrototypeOf(n.constructor)===xl}(l)?t=l:r=l}),r||t||e||null}function Qg(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const zp="VALID",qp="INVALID",Vc="PENDING",jc="DISABLED";function Kg(n){return(Wp(n)?n.validators:n)||null}function Xg(n){return Array.isArray(n)?Yg(n):n||null}function Gp(n,a){return(Wp(a)?a.asyncValidators:n)||null}function Bw(n){return Array.isArray(n)?Pp(n):n||null}function Wp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Zp=n=>n instanceof Ei,$p=n=>n instanceof a_,e_=n=>n instanceof s_;function t_(n){return Zp(n)?n.value:n.getRawValue()}function i_(n,a){const e=$p(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function n_(n,a){$p(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class r_{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Xg(this._rawValidators),this._composedAsyncValidatorFn=Bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===zp}get invalid(){return this.status===qp}get pending(){return this.status==Vc}get disabled(){return this.status===jc}get enabled(){return this.status!==jc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Xg(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Bw(a)}addValidators(a){this.setValidators(IT(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(IT(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Ip(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Ip(a,this._rawAsyncValidators))}hasValidator(a){return Lp(this._rawValidators,a)}hasAsyncValidator(a){return Lp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Vc,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=jc,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=zp,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zp||this.status===Vc)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?jc:zp}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Vc,this._hasOwnPendingAsyncValidator=!0;const e=Lc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){return function Ow(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=$p(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:e_(t)&&t.at(r)||null}),t}(this,a,".")}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?jc:this.errors?qp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vc)?Vc:this._anyControlsHaveStatus(qp)?qp:zp}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Wp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends r_{constructor(a=null,e,t){super(Kg(e),Gp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Wp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Qg(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Qg(this._onDisabledChange,a)}_forEachChild(a){}_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(a){this._isBoxedValue(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}}class a_ extends r_{constructor(a,e,t){super(Kg(e),Gp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){n_(this,a),Object.keys(a).forEach(t=>{i_(this,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=t_(e),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class s_ extends r_{constructor(a,e,t){super(Kg(e),Gp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[a]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){n_(this,a),a.forEach((t,r)=>{i_(this,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>t_(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}}const U0={provide:wn,useExisting:(0,i.Gpc)(()=>Fc)},Jp=(()=>Promise.resolve(null))();let Fc=(()=>{class n extends wn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new a_({},Yg(e),Pp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Jp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Rs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Jp.then(()=>{const t=this._findContainer(e.path),r=new a_({});ku(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Jp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,Pu(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xi,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([U0]),i.qOj]}),n})();const o_={provide:$r,useExisting:(0,i.Gpc)(()=>Sl)},Ml=(()=>Promise.resolve(null))();let Sl=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Ei,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Up(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Jg(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Rs(this.control,this),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(e){Ml.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=""===t||t&&"false"!==t;Ml.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Gg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,9),i.Y36(Xi,10),i.Y36(Ps,10),i.Y36($n,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([o_]),i.qOj,i.TTD]}),n})(),Vw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),l_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Fw=new i.OlP("NgModelWithFormControlWarning"),q0={provide:$r,useExisting:(0,i.Gpc)(()=>ya)};let ya=(()=>{class n extends $r{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Up(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Fp(t,this,!1),Rs(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Jg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Fp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(Xi,10),i.Y36(Ps,10),i.Y36($n,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([q0]),i.qOj,i.TTD]}),n})();const ZT={provide:wn,useExisting:(0,i.Gpc)(()=>Ls)};let Ls=(()=>{class n extends wn{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Rs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Fp(e.control||null,e,!1),Qg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,Pu(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(Fp(t||null,e),Zp(r)&&(Rs(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);ku(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function $g(n,a){return Yp(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Np(this.form,this),this._oldForm&&Yp(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xi,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([ZT]),i.qOj,i.TTD]}),n})();const Ar={provide:$r,useExisting:(0,i.Gpc)(()=>u_)};let u_=(()=>{class n extends $r{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Up(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Gg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,13),i.Y36(Xi,10),i.Y36(Ps,10),i.Y36($n,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Ar]),i.qOj,i.TTD]}),n})(),Nc=(()=>{class n{constructor(){this._validator=kp}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):kp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const Jw={provide:Xi,useExisting:(0,i.Gpc)(()=>Mo),multi:!0};let Mo=(()=>{class n extends Nc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function wa(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Aw}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Jw]),i.qOj]}),n})(),tC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[l_]]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),Vu=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Fw,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),sx=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let o,l=null,d=null;return null!=t&&(function nC(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new a_(r,{asyncValidators:d,updateOn:o,validators:l})}control(e,t,r){return new Ei(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new s_(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return Zp(e)||$p(e)||e_(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Vu}),n})();const ox=["trigger"],W0=["panel"];function Z0(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function $0(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function J0(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Q0(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,$0,2,1,"span",10),i.YNc(2,J0,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function lx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const nf=[[["mat-select-trigger"]],"*"],cx=["mat-select-trigger","*"],rC={transformPanelWrap:ei("transformPanelWrap",[ft("* => void",Dn("@transformPanel",[ty()],{optional:!0}))]),transformPanel:ei("transformPanel",[Dt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Dt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Dt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ft("void => *",ct("120ms cubic-bezier(0, 0, 0.2, 1)")),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))])};let rf=0;const hx=new i.OlP("mat-select-scroll-strategy"),X0=new i.OlP("MAT_SELECT_CONFIG"),aC={provide:hx,deps:[br],useFactory:function K0(n){return()=>n.scrollStrategies.reposition()}};class px{constructor(a,e){this.source=a,this.value=e}}const fx=Gr(vo(qr(fp(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),mx=new i.OlP("MatSelectTrigger");let sC=(()=>{class n extends fx{constructor(e,t,r,l,d,o,s,c,u,h,f,b,j,ie){var pe,Ue,Tt;super(d,l,s,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=j,this._defaultOptions=ie,this._panelOpen=!1,this._compareWith=(st,zt)=>st===zt,this._uid="mat-select-"+rf++,this._triggerAriaLabelledBy=null,this._destroy=new Ee.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+rf++,this._panelDoneAnimatingStream=new Ee.xQ,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Tt=null===(Ue=this._defaultOptions)||void 0===Ue?void 0:Ue.disableOptionCentering)&&void 0!==Tt&&Tt,this.ariaLabel="",this.optionSelectionChanges=er(()=>{const st=this.options;return st?st.changes.pipe(Wt(st),(0,rn.w)(()=>(0,Si.T)(...st.map(zt=>zt.onSelectionChange)))):this._ngZone.onStable.pipe((0,jt.q)(1),(0,rn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,qt.h)(st=>st),(0,dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,qt.h)(st=>!st),(0,dt.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ie?void 0:ie.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ie.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}set required(e){this._required=Ie(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Ie(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Ie(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_i(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ii(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(cl(),Je(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Je(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Wt(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Ki(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||Ki(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(o?s.select():s.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,jt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Pm(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Je(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Si.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Si.T)(...this.options.map(t=>t._stateChanges)).pipe(Je(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(za),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(wr),i.Y36(i.SBq),i.Y36(Mi,8),i.Y36(Fc,8),i.Y36(Ls,8),i.Y36(Bg,8),i.Y36($r,10),i.$8M("tabindex"),i.Y36(hx),i.Y36(mv),i.Y36(X0,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(ox,5),i.Gf(W0,5),i.Gf(jh,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),zc=(()=>{class n extends sC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=zy(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function rT(n,a,e,t){return ne+t?Math.max(0,n-t+a):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new px(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),s=e.right+d-t.width+(r?0:l);o>0?d+=o+8:s>0&&(d-=s+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*s-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=zy(o,this.options,this.optionGroups);const s=r/2;this._scrollTop=this._calculateOverlayScroll(o,s,d),this._offsetY=this._calculateOverlayOffsetY(o,s,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,mx,5),i.Suo(r,Sc,5),i.Suo(r,vg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Tu,useExisting:n},{provide:Uy,useExisting:n}]),i.qOj],ngContentSelectors:cx,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(nf),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Z0,2,1,"span",3),i.YNc(5,Q0,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,lx,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[jb,T.RF,T.n9,T.ED,jh,T.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[rC.transformPanelWrap,rC.transformPanel]},changeDetection:0}),n})(),Fu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[aC],imports:[[T.ez,_o,Ec,it],gr,Tl,Ec,it]}),n})();const oC=new Set;let Dl,af=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iS(n){if(!oC.has(n))try{Dl||(Dl=document.createElement("style"),Dl.setAttribute("type","text/css"),document.head.appendChild(Dl)),Dl.sheet&&(Dl.sheet.insertRule(`@media ${n} {body{ }}`,0),oC.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lC(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sf=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return cC(kd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=cC(kd(e)).map(d=>this._registerQuery(d).observable);let l=(0,Ra.aj)(r);return l=Tn(l.pipe((0,jt.q)(1)),l.pipe(Fh(1),(0,ll.b)(0))),l.pipe((0,dt.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:s,query:c})=>{o.matches=o.matches||s,o.breakpoints[c]=s}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new ki.y(d=>{const o=s=>this._zone.run(()=>d.next(s));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(Wt(t),(0,dt.U)(({matches:d})=>({query:e,matches:d})),Je(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(af),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cC(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const _x={tooltipState:ei("state",[Dt("initial, void, hidden",He({opacity:0,transform:"scale(0)"})),Dt("visible",He({transform:"scale(1)"})),ft("* => visible",ct("200ms cubic-bezier(0, 0, 0.2, 1)",hl([He({opacity:0,transform:"scale(0)",offset:0}),He({opacity:.5,transform:"scale(0.99)",offset:.5}),He({opacity:1,transform:"scale(1)",offset:1})]))),ft("* => hidden",ct("100ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:0})))])},dC="tooltip-panel",uC=Na({passive:!0}),hC=new i.OlP("mat-tooltip-scroll-strategy"),Cx={provide:hC,deps:[br],useFactory:function wx(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Ax=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function rS(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let aS=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ee.xQ,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Ie(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_i(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_i(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,uC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new il(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Je(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${dC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Ki(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1),Je(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const s=`${this._cssClassPrefix}-${dC}-`;o.removePanelClass(s+this._currentPosition),o.addPanelClass(s+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,uC)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),qc=(()=>{class n extends aS{constructor(e,t,r,l,d,o,s,c,u,h,f,b){super(e,t,r,l,d,o,s,c,u,h,f,b),this._tooltipComponent=oS}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(kh),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(bi),i.Y36(km),i.Y36(Wn),i.Y36(hC),i.Y36(Mi,8),i.Y36(Ax,8),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),sS=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Ee.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),oS=(()=>{class n extends sS{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(sf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[_x.tooltipState]},changeDetection:0}),n})(),Nu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cx],imports:[[qh,T.ez,_o,it],it,gr]}),n})();function lS(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function cS(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,lS,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dS(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uS(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,cS,3,6,"mat-form-field",14),i.YNc(4,dS,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function p(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function m(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let g=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y={provide:g,deps:[[new i.FiY,new i.tp0,g]],useFactory:function _(n){return n||new g}},k=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),R=qr(bg(class{}));let N=(()=>{class n extends R{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:s}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_i(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_i(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_i(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_i(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Ie(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Ie(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),q=(()=>{class n extends N{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(g),i.Y36(i.sBO),i.Y36(k,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,uS,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,p,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,m,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[Zn,zc,Sc,Ft,T.O5,T.sg,qc],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[y],imports:[[T.ez,Zr,Fu,Nu,it]]}),n})();var se=x(943);const ue=["mat-menu-item",""];function Ce(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Le=["*"];function Fe(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const We={transformMenu:ei("transformMenu",[Dt("void",He({opacity:0,transform:"scale(0.8)"})),ft("void => enter",ct("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))]),fadeInItems:ei("fadeInItems",[Dt("showing",He({opacity:1})),ft("void => *",[He({opacity:0}),ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Nt=new i.OlP("MatMenuContent"),Yu=new i.OlP("MAT_MENU_PANEL"),y_=Gr(qr(class{}));let Hl=(()=>{class n extends y_{constructor(e,t,r,l,d){var o;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new Ee.xQ,this._focused=new Ee.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(o=null==l?void 0:l.addItem)||void 0===o||o.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=he.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+C_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Ie(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Ie(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ul(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,rn.w)(e=>(0,Si.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,rn.w)(t=>(0,Si.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Ki(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Nt,5),i.Suo(r,Hl,5),i.Suo(r,Hl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),hS=(()=>{class n extends A_{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Yu,useExisting:n}]),i.qOj],ngContentSelectors:Le,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Fe,3,6,"ng-template"))},directives:[T.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),n})();const pS=new i.OlP("mat-menu-scroll-strategy"),mH={provide:pS,deps:[br],useFactory:function fH(n){return()=>n.scrollStrategies.reposition()}},mS=Na({passive:!0});let gH=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=he.w.EMPTY,this._hoverSubscription=he.w.EMPTY,this._menuCloseSubscription=he.w.EMPTY,this._handleTouchStart=u=>{zh(u)||(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=l,this._parentMaterialMenu=d instanceof A_?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,mS),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mS),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof A_&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Je(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof A_?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,qt.h)(r=>"void"===r.toState),(0,jt.q)(1),Je(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new mc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(o="top"===l?"bottom":"top",s="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:o,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:s,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:s,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ne.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,qt.h)(d=>d!==this._menuItemInstance),(0,qt.h)(()=>this._menuOpen)):(0,Ne.of)();return(0,Si.T)(e,r,l,t)}_handleMousedown(e){Uh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,qt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,se.g)(0,om)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof A_&&this.menu._isAnimating?this.menu._animationDone.pipe((0,jt.q)(1),(0,se.g)(0,om),Je(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new fo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pS),i.Y36(Yu,8),i.Y36(Hl,10),i.Y36(Mi,8),i.Y36(Wn))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),n})(),gS=(()=>{class n extends gH{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[mH],imports:[[T.ez,it,_a,_o],gr,it]}),n})();var _C=x(1737),_H=x(2474);const bH=["*"];let bC;function v_(n){var a;return(null===(a=function yH(){if(void 0===bC&&(bC=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(bC=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return bC}())||void 0===a?void 0:a.createHTML(n))||n}function _S(n){return Error(`Unable to find icon with the name "${n}"`)}function bS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function yS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Uu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let zu=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Uu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw yS(r);const o=v_(d);return this._addSvgIconConfig(e,t,new Uu("",o,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Uu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw yS(t);const d=v_(l);return this._addSvgIconSetConfig(e,new Uu("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw bS(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ne.of)(yC(r)):this._loadSvgIconFromConfig(new Uu(e,null)).pipe((0,Q.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,dt.U)(l=>yC(l)))}getNamedSvgIcon(e,t=""){const r=wS(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,_C._)(_S(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ne.of)(yC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,dt.U)(t=>yC(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ne.of)(r):xg(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Un.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ne.of)(null)})))).pipe((0,dt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw _S(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t),(0,dt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ne.of)(null):this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(v_(""));return o.appendChild(d),this._setSvgAttributes(o,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(v_("")),r=e.attributes;for(let l=0;lv_(u)),ve(()=>this._inProgressUrlFetches.delete(o)),(0,_H.B)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(wS(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),CS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],MH=CS.map(n=>`[${n}]`).join(", "),SH=/^url\(['"]?#(.*?)['"]?\)$/;let Gi=(()=>{class n extends vH{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=he.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Ie(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(MH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],s=o.getAttribute(d),c=s?s.match(SH):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,jt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(zu),i.$8M("aria-hidden"),i.Y36(TH),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:bH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),Wc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it],it]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[ee,gC,Wc,Zr,Hc,T.ez]]}),n})();var EH=x(655),DH=x(9441);const qu=[5,10,25,100];function vS(n){let a="";return null!==n.titleBefore&&(a+=n.titleBefore+" "),null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),null!==n.titleAfter&&(a+=n.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function Jn(){const n=new _u;return n.disableClose=!0,n.autoFocus=!1,n}const jH=new Intl.Collator("cs",{numeric:!0});function cf(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),s=e(d,t);return jH.compare(o,s)*("asc"===r?1:-1)}):n}function T_(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function df(n,a){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===a&&(e=t.value)}),e}function uf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(o=>{var s;d[o]=(null!==(s=e(l,o))&&void 0!==s?s:"").split('"').join("''").trim()}),t.push(d)}),t}function hf(n,a="csv",e="export"){if("csv"===a){const t=(s,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(s=>r.map(c=>JSON.stringify(s[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,DH.saveAs)(o,`${e}.${a}`)}}const xS="GUI_CONFIG.PREF_PAGE_SIZE.";let NH=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YH=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(xS+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(xS+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(NH))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),GH=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Ft,gS,Gi,hS,Hl],pipes:[Ct],styles:[""]}),n})();function WH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function ZH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const $H=["*"];let ts=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=qu,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(YH))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(q,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:$H,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,WH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,ZH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[q,T.O5,GH],styles:[""]}),n})(),xx=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Jn();this.dialog.open(mT,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Cu),i.LFG(hn),i.LFG(aa),i.LFG(Vi),i.LFG(fn),i.LFG(C))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SS=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zu),i.LFG(Vn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),JH=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[lr,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),QH=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ln=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ES=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const o=Jn();o.width="450px",this.dialogRefSessionExpiration=this.dialog.open(JH,o),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ve(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Q.b)(o=>{o instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},o=>{const s=this.formatErrors(o,e);return void 0===s?(0,_C._)(o):l?void this.notificator.showRPCError(s):(0,_C._)(s)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Cu),i.LFG(QH),i.LFG(Ln),i.LFG(hn),i.LFG(fn),i.LFG(xx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KH=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Un.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,Un.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,Un.K)(s=>this.formatErrors(s,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Un.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,_C._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Ln),i.LFG(Cu),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,o,s,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),o.sortData(o.filteredData,s).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const s=o.split("=");"lang"===s[0]&&(d=s[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();ei("openClose",[Dt("open",He({overflow:"hidden"})),Dt("closed",He({height:"0px",overflow:"hidden"})),ft("open <=> closed",[ct(".3s ease-in")])]);const e1=ei("flyInOut",[ft(":enter",[He({transform:"translateX(100%)"}),ct(".25s")]),ft(":leave",[ct(".5s",He({transform:"translateX(100%)"}))])]);ei("rollInOut",[ft(":enter",[He({height:"0px"}),ct(".25s")]),ft(":leave",[ct(".25s",He({height:"0px"}))])]),ei("routeAnimations",[ft("* => *",[He({position:"relative"}),Dn(":enter",[He({width:"100%",opacity:0})],{optional:!0}),Dn(":leave",[He({position:"absolute",width:"100%",opacity:1}),ct("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Dn(":enter",[He({position:"absolute",width:"100%",opacity:0}),ct("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),ei("tagsOpenClose",[Dt("open",He({})),Dt("closed",He({width:"0px",height:"0px"})),ft("open <=> closed",[ct(".3s ease-in")])]),ei("switchAnimations",[ft("true => false",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(-100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),ft("false => true",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),ei("slideInOutLeft",[ft(":enter",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[ct("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),ei("slideInOutRight",[ft(":enter",[He({transform:"translateX(100%)",position:"fixed"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let HS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez]]}),n})();function l1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function c1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function d1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function u1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const f1=ga(class{constructor(n){this._elementRef=n}},"primary"),kS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function m1(){return{diameter:100}}});class kl extends f1{constructor(a,e,t,r,l,d,o,s){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=he.w.EMPTY,this.mode="determinate";const c=kl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&s&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&s.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=_i(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=_i(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,_i(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Hh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=kl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}kl._diameters=new WeakMap,kl.\u0275fac=function(a){return new(a||kl)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Ai,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(za),i.Y36(i.R0b))},kl.\u0275cmp=i.Xpm({type:kl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,l1,1,11,"circle",2),i.YNc(3,c1,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let mn=(()=>{class n extends kl{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Ai,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(za),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,d1,1,11,"circle",2),i.YNc(3,u1,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),CC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it,T.ez],it]}),n})();const PS=Na({passive:!0});let _1=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ur.E;const t=Qi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Ee.xQ,d="cdk-text-field-autofilled",o=s=>{"cdk-text-field-autofill-start"!==s.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===s.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,PS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,PS)}}),l}stopMonitoring(e){const t=Qi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc]]}),n})();const LS=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),b1=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let y1=0;const w1=fp(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let is=(()=>{class n extends w1{constructor(e,t,r,l,d,o,s,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+y1++,this.focused=!1,this.stateChanges=new Ee.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(j=>dm().has(j));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=s||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",j=>{const ie=j.target;!ie.value&&0===ie.selectionStart&&0===ie.selectionEnd&&(ie.setSelectionRange(1,1),ie.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Ie(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}set required(e){this._required=Ie(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Ie(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){b1.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36($r,10),i.Y36(Fc,8),i.Y36(Ls,8),i.Y36(wr),i.Y36(LS,10),i.Y36(_1),i.Y36(i.R0b),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:Tu,useExisting:n}]),i.qOj,i.TTD]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr],imports:[[RS,Tl,it],RS,Tl]}),n})();function C1(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function A1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function v1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function T1(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,A1,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,v1,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let x1=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(tn),i.Y36(Wr),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,C1,1,0,"mat-spinner",1),i.YNc(4,T1,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[lr,T.O5,mn,kn,Zn,es,is,Pn,Mo,cr,Sl,Hs,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),M1=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Jn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(x1,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(fn),i.Y36(Wr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[lr,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})();const k1=[[["caption"]],[["colgroup"],["col"]]],P1=["caption","colgroup, col"];function Sx(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Ie(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const pf=new i.OlP("CDK_TABLE");let ff=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),mf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),vC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class O1{}const B1=Sx(O1);let Pl=(()=>{class n extends B1{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Ie(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ff,5),i.Suo(r,mf,5),i.Suo(r,vC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Ex{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Dx=(()=>{class n extends Ex{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Hx=(()=>{class n extends Ex{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class OS{constructor(){this.tasks=[],this.endTasks=[]}}const kx=new i.OlP("_COALESCED_STYLE_SCHEDULER");let BS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ee.xQ}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new OS,this._getScheduleObservable().pipe(Je(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new OS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,jt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Px=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof x_?e.headerCell.template:this instanceof M_?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class V1 extends Px{}const j1=Sx(V1);let x_=(()=>{class n extends j1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class F1 extends Px{}const N1=Sx(F1);let M_=(()=>{class n extends N1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),TC=(()=>{class n extends Px{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Rl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Rx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Rl],encapsulation:2}),n})(),Ix=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Rl],encapsulation:2}),n})(),xC=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const VS=["top","bottom","left","right"];class Y1{constructor(a,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,o=this._getCellWidths(l,r),s=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",j=f?"left":"right";for(const ie of a)for(let pe=0;pee[pe]?ie:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((ie,pe)=>t[pe+h]?ie:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],o=[],s=[];for(let u=0,h=0;u{var u,h;for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);VS.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of VS)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Ox=new i.OlP("CDK_SPL");let MC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),SC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),EC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),DC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),HC=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new Ee.xQ,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 $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Ie(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Ie(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Je(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),xu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,jt.q)(1),Je(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const s=o.shift();return s.dataIndex=t,s}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],xu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;xu(this.dataSource)?e=this.dataSource.connect(this):Ka(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ne.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Je(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Rl.mostRecentCellOutlet&&Rl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Y1(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,Ne.of)()).pipe(Je(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Mi,8),i.Y36(T.K0),i.Y36(bi),i.Y36(Mu),i.Y36(kx),i.Y36(za),i.Y36(Ox,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,Pl,5),i.Suo(r,TC,5),i.Suo(r,x_,5),i.Suo(r,M_,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(MC,7),i.Gf(SC,7),i.Gf(EC,7),i.Gf(DC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:pf,useExisting:n},{provide:Mu,useClass:Vg},{provide:kx,useClass:BS},{provide:Ox,useValue:null}])],ngContentSelectors:P1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(k1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function kC(n,a){return n.concat(Array.from(a))}let z1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[tl]]}),n})();const q1=[[["caption"]],[["colgroup"],["col"]]],G1=["caption","colgroup, col"];let So=(()=>{class n extends HC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Mu,useClass:Vg},{provide:HC,useExisting:n},{provide:pf,useExisting:n},{provide:kx,useClass:BS},{provide:Ox,useValue:null}]),i.qOj],ngContentSelectors:G1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(q1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),Is=(()=>{class n extends ff{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:ff,useExisting:n}]),i.qOj]}),n})(),Os=(()=>{class n extends mf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:mf,useExisting:n}]),i.qOj]}),n})(),Bs=(()=>{class n extends Pl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Pl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),Vs=(()=>{class n extends Dx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),js=(()=>{class n extends Hx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Ll=(()=>{class n extends x_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:x_,useExisting:n}]),i.qOj]}),n})(),Eo=(()=>{class n extends TC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:TC,useExisting:n}]),i.qOj]}),n})(),Il=(()=>{class n extends Rx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Rx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Rl],encapsulation:2}),n})(),Do=(()=>{class n extends Ix{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Ix,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Rl],encapsulation:2}),n})(),PC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[z1,it],it]}),n})();class Ol extends class nk extends class V0{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new Ee.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Xf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let s=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof s,h=typeof c;u!==h&&("number"===u&&(s+=""),"number"===h&&(c+=""));let f=0;return null!=s&&null!=c?s>c?f=1:s{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Si.T)(this._sort.sortChange,this._sort.initialized):(0,Ne.of)(null),t=this._paginator?(0,Si.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ne.of)(null),l=(0,Ra.aj)([this._data,this._filter]).pipe((0,dt.U)(([s])=>this._filterData(s))),d=(0,Ra.aj)([l,e]).pipe((0,dt.U)(([s])=>this._orderData(s))),o=(0,Ra.aj)([d,t]).pipe((0,dt.U)(([s])=>this._pageData(s)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=o.subscribe(s=>this._renderData.next(s))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function rk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function ak(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function sk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function ok(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const lk=["*"];let Fs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:lk,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,rk,2,0,"mat-icon",1),i.YNc(2,ak,2,0,"mat-icon",1),i.YNc(3,sk,2,0,"mat-icon",1),i.YNc(4,ok,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,Gi],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function ck(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function dk(n,a){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function uk(n,a){1&n&&i._UZ(0,"th",18)}function hk(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function pk(n,a){1&n&&i._UZ(0,"tr",20)}function fk(n,a){1&n&&i._UZ(0,"tr",21)}function mk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function gk(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,dk,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,uk,1,0,"th",12),i.YNc(8,hk,2,1,"td",13),i.BQk(),i.YNc(9,pk,1,0,"tr",14),i.YNc(10,fk,1,0,"tr",15),i.qZA(),i.YNc(11,mk,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function _k(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function bk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let FS=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Ol(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,ck,1,0,"mat-spinner",1),i.YNc(5,gk,12,8,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,_k,3,4,"button",5),i.YNc(11,bk,3,4,"button",6),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},directives:[lr,T.O5,mn,kn,So,Bs,Os,Vs,Is,js,Ll,Il,Eo,Do,Fs,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),Ek=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[lr,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function Lk(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function Ik(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let Ok=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Jn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(M1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function kH(n,a){return(0,EH.mG)(this,void 0,void 0,function*(){yield function PH(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,Lk,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,Ik,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[T.O5,Gi],pipes:[Ct],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function Bk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const Vk=function(n){return{top:n}};let jk=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,Bk,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,Vk,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[T.PC,T.sg,Ok],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[e1]}}),n})();const Fk=["*",[["mat-toolbar-row"]]],Nk=["*","mat-toolbar-row"],Yk=ga(class{constructor(n){this._elementRef=n}});let Uk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),zk=(()=>{class n extends Yk{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,Uk,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:Nk,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(Fk),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),YS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it],it]}),n})();function qk(n,a){1&n&&(i.TgZ(0,"div",13),i.TgZ(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA(),i.qZA())}const Gk=function(n){return{background:n}},RC=function(n){return{color:n}};let Wk=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Cu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA(),i.qZA(),i._UZ(5,"a",3),i._UZ(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.YNc(10,qk,7,0,"div",6),i.TgZ(11,"div",7),i.TgZ(12,"button",8),i.TgZ(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA(),i.qZA(),i.TgZ(17,"mat-menu",null,11),i.TgZ(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,Gk,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,RC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,RC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,RC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,RC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[zk,T.PC,Ft,Gi,J,F,T.O5,gS,hS,Hl],pipes:[Ct],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function US(n){return a=>a.lift(new Zk(n))}class Zk{constructor(a){this.value=a}call(a,e){return e.subscribe(new $k(a,this.value))}}class $k extends Yn.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const LC=["*"],Jk=["content"];function Qk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Kk(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Xk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],eP=["mat-drawer","mat-drawer-content","*"];function tP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function iP(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const nP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],rP=["mat-sidenav","mat-sidenav-content","*"],zS={transformDrawer:ei("transform",[Dt("open, open-instant",He({transform:"none",visibility:"visible"})),Dt("void",He({"box-shadow":"none",visibility:"hidden"})),ft("void => open-instant",ct("0ms")),ft("void <=> open, open-instant => void",ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},sP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function oP(){return!1}}),Bx=new i.OlP("MAT_DRAWER_CONTAINER");let IC=(()=>{class n extends Ph{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>GS)),i.Y36(i.SBq),i.Y36(kh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Ph,useExisting:n}]),i.qOj],ngContentSelectors:LC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),qS=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Ee.xQ,this._animationEnd=new Ee.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,qt.h)(u=>u),(0,dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,qt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),US(void 0)),this._closedStream=this.openedChange.pipe((0,qt.h)(u=>!u),(0,dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,qt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),US(void 0)),this._destroyed=new Ee.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new Ee.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{pa(this._elementRef.nativeElement,"keydown").pipe((0,qt.h)(u=>27===u.keyCode&&!this.disableClose&&!Ki(u)),Je(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(cl((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Ie(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Ie(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Ie(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,jt.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(Wn),i.Y36(bi),i.Y36(i.R0b),i.Y36(Yh),i.Y36(T.K0,8),i.Y36(Bx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Jk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:LC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Ph],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),GS=(()=>{class n{constructor(e,t,r,l,d,o=!1,s){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=s,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Ee.xQ,this._doCheckSubject=new Ee.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Ee.xQ,e&&e.change.pipe(Je(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Je(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Ie(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Ie(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Wt(this._allDrawers),Je(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ll.b)(10),Je(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,qt.h)(t=>t.fromState!==t.toState),Je(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Je(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Je(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Je((0,Si.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Mi,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(za),i.Y36(sP),i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,IC,5),i.Suo(r,qS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(IC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Bx,useExisting:n}])],ngContentSelectors:eP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Xk),i.YNc(0,Qk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Kk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[IC,T.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Vx=(()=>{class n extends IC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>ZS)),i.Y36(i.SBq),i.Y36(kh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Ph,useExisting:n}]),i.qOj],ngContentSelectors:LC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n extends qS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Ie(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=_i(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_i(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:LC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Ph],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),ZS=(()=>{class n extends GS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Vx,5),i.Suo(r,WS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Bx,useExisting:n}]),i.qOj],ngContentSelectors:rP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(nP),i.YNc(0,tP,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,iP,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[Vx,T.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,it,dc,gr],gr,it]}),n})(),lP=(()=>{class n{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(aa))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it],it]}),n})();const JS=["*"],dP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],uP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],gP=qr(Gr(class{})),_P=Gr(class{}),bP=new i.OlP("MatList"),QS=new i.OlP("MatNavList");let yP=(()=>{class n extends gP{constructor(){super(...arguments),this._stateChanges=new Ee.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:QS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),wP=(()=>{class n extends _P{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Ee.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Je(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Ie(e)}ngAfterContentInit(){!function _p(n,a,e="mat"){n.changes.pipe(Wt(n)).subscribe(({length:t})=>{bp(a,`${e}-2-line`,!1),bp(a,`${e}-3-line`,!1),bp(a,`${e}-multi-line`,!1),2===t||3===t?bp(a,`${e}-${t}-line`,!0):t>3&&bp(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(QS,8),i.Y36(bP,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KS,5),i.Suo(r,XS,5),i.Suo(r,Jv,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:uP,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(dP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Ut],encapsulation:2,changeDetection:0}),n})(),tE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[pu,_a,it,Ag,T.ez],pu,it,Ag,jx]}),n})();function MP(n,a){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function SP(n,a){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const EP=function(n){return{color:n}};function DP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().shouldHideMenu()}),i.YNc(1,MP,1,1,"mat-icon",3),i.YNc(2,SP,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,EP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let HP=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof wt&&(this.currentUrl=l.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(lP),i.Y36(hn),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,DP,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[yP,T.sg,wP,Ut,T.PC,F,T.O5,Gi],pipes:[Ct],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function kP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let PP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(tn),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,kP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[lr,kn,Zn,es,is,Pn,Mo,cr,Sl,T.O5,Hs,pw,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),RP=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),LP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),IP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function OP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function BP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function VP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,OP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,BP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const jP=function(n){return{"min-height":n}};function FP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,VP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,jP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const Zc=function(n){return{color:n}};function NP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,Zc,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function YP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Zc,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function UP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,Zc,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function zP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Zc,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,NP,2,4,"i",17),i.YNc(2,YP,3,8,"span",18),i.YNc(3,UP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,zP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const GP=function(n){return{height:n}};function WP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,qP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,GP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function ZP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,FP,2,4,"div",9),i.YNc(5,WP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,Zc,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function $P(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,Zc,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const JP=function(n){return{background:n}};let iE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Jn();"reportIssue"===e&&(t.width="550px",this.dialog.open(PP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Li),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,ZP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,$P,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,JP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,Zc,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,Zc,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[RP,LP,IP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();function QP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function KP(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function XP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const eR=function(n){return{color:n}};function tR(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,eR,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const iR=function(n,a){return{background:n,color:a}},nR=function(n,a){return{"min-height":n,"background-color":a}};let rR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Vn),i.Y36(XH),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,QP,2,1,"div",1),i.YNc(2,KP,3,1,"div",2),i.YNc(3,XP,2,1,"div",1),i.YNc(4,tR,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,iR,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,nR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[T.PC,T.O5,Gi,oo,iE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const aR=["footer"],nE=function(n){return{background:n}},sR=function(n){return{"min-height":n}};function oR(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container"),i.TgZ(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,nE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,nE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,sR,t.contentHeight))}}function lR(n,a){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let cR=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(xx),i.Y36(i.sBO),i.Y36(aa),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(aR,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,oR,12,13,"div",0),i.YNc(2,lR,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},directives:[jk,T.O5,Wk,ZS,WS,T.PC,HP,Vx,oo,iE,rR],pipes:[Ct],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();class dR{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let uR=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function hR(n){return[Qr(tinycolor(n).lighten(52),"50"),Qr(tinycolor(n).lighten(37),"100"),Qr(tinycolor(n).lighten(26),"200"),Qr(tinycolor(n).lighten(12),"300"),Qr(tinycolor(n).lighten(6),"400"),Qr(tinycolor(n),"500"),Qr(tinycolor(n).darken(6),"600"),Qr(tinycolor(n).darken(12),"700"),Qr(tinycolor(n).darken(18),"800"),Qr(tinycolor(n).darken(24),"900"),Qr(tinycolor(n).lighten(50).saturate(30),"A100"),Qr(tinycolor(n).lighten(30).saturate(30),"A200"),Qr(tinycolor(n).lighten(10).saturate(15),"A400"),Qr(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const s=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(s,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new w.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(hn),i.LFG(Vi),i.LFG(Zt),i.LFG(bt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Qr(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let pR=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xx),i.LFG(uR),i.LFG(T.Ye),i.LFG(Vi),i.LFG(aa))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fR=new i.OlP("perun-api-service");let mR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,wu,Zr,Hc]]}),n})();const gR=["*",[["mat-card-footer"]]],_R=["*","mat-card-footer"];let rE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),sE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:_R,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(gR),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n})(),oE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[it],it]}),n})();const bR=["input"],yR=function(n){return{enterDuration:n}},wR=["*"],CR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:lE});function lE(){return{color:"accent",clickAction:"check-indeterminate"}}let AR=0;const cE=lE(),vR={provide:$n,useExisting:(0,i.Gpc)(()=>$c),multi:!0};class TR{}const xR=vo(ga(Gr(qr(class{constructor(n){this._elementRef=n}}))));let $c=(()=>{class n extends xR{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++AR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||cE,this.color=this.defaultColor=this._options.color||cE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Ie(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Ie(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Ie(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new TR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Wn),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Ai,8),i.Y36(CR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(bR,5),i.Gf(Ut,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([vR]),i.qOj],ngContentSelectors:wR,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,yR,"NoopAnimations"===t._animationMode?0:150))}},directives:[Ut,qd],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),OC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[_a,it,gc,dE],it,dE]}),n})(),ER=0;const Fx=new i.OlP("CdkAccordion");let DR=(()=>{class n{constructor(){this._stateChanges=new Ee.xQ,this._openCloseAllActions=new Ee.xQ,this.id="cdk-accordion-"+ER++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Ie(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Fx,useExisting:n}]),i.TTD]}),n})(),HR=0,kR=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=he.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+HR++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Ie(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Ie(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fx,12),i.Y36(i.sBO),i.Y36(Dp))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Fx,useValue:void 0}])]}),n})(),PR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const RR=["body"];function LR(n,a){}const IR=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],OR=["mat-expansion-panel-header","*","mat-action-row"];function BR(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const VR=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],jR=["mat-panel-title","mat-panel-description","*"],Nx=new i.OlP("MAT_ACCORDION"),uE="225ms cubic-bezier(0.4,0.0,0.2,1)",hE={indicatorRotate:ei("indicatorRotate",[Dt("collapsed, void",He({transform:"rotate(0deg)"})),Dt("expanded",He({transform:"rotate(180deg)"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))]),bodyExpansion:ei("bodyExpansion",[Dt("collapsed, void",He({height:"0px",visibility:"hidden"})),Dt("expanded",He({height:"*",visibility:"visible"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))])};let FR=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),NR=0;const pE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let fE=(()=>{class n extends kR{constructor(e,t,r,l,d,o,s){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Ee.xQ,this._headerId="mat-expansion-panel-header-"+NR++,this._bodyAnimationDone=new Ee.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(cl((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Ie(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Wt(null),(0,qt.h)(()=>this.expanded&&!this._portal),(0,jt.q)(1)).subscribe(()=>{this._portal=new fo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Nx,12),i.Y36(i.sBO),i.Y36(Dp),i.Y36(i.s_b),i.Y36(T.K0),i.Y36(Ai,8),i.Y36(pE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,FR,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(RR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Nx,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:OR,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(IR),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,LR,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[qa],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hE.bodyExpansion]},changeDetection:0}),n})();class YR{}const UR=vo(YR);let mE=(()=>{class n extends UR{constructor(e,t,r,l,d,o,s){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=he.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,qt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):ur.E;this.tabIndex=parseInt(s||"")||0,this._parentChangeSubscription=(0,Si.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,qt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,qt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Ki(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fE,1),i.Y36(i.SBq),i.Y36(Wn),i.Y36(i.sBO),i.Y36(pE,8),i.Y36(Ai,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:jR,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(VR),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,BR,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[T.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hE.indicatorRotate]},changeDetection:0}),n})(),zR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),qR=(()=>{class n extends DR{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Ie(e)}ngAfterContentInit(){this._headers.changes.pipe(Wt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new ul(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,mE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Nx,useExisting:n}]),i.qOj]}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,it,PR,nl]]}),n})(),bE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[pu,it],pu,it]}),n})();function ZR(n,a){1&n&&i.Hsn(0)}const $R=["*"];let yE=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),wE=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),JR=0;const CE=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Yx=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Ie(e)}get optional(){return this._optional}set optional(e){this._optional=Ie(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Ie(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Ie(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>gf)),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wE,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:$R,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,ZR,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),gf=(()=>{class n{constructor(e,t,r,l){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Ee.xQ,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=JR++}get linear(){return this._linear}set linear(e){this._linear=Ie(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){var t;const r=_i(e);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Wt(this._steps),Je(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Wt(this._stepHeader),Je(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new ul(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ne.of)()).pipe(Wt(this._layoutDirection()),Je(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Ki(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=Ya();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),KR=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),XR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[uc]]}),n})();function eL(n,a){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function tL(n,a){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function iL(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function nL(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function rL(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function aL(n,a){if(1&n&&(i.ynx(0,9),i.YNc(1,tL,2,1,"span",10),i.YNc(2,iL,2,1,"span",11),i.YNc(3,nL,2,1,"span",11),i.YNc(4,rL,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function sL(n,a){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function oL(n,a){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function lL(n,a){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function cL(n,a){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function dL(n,a){}function uL(n,a){if(1&n&&(i.Hsn(0),i.YNc(1,dL,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const hL=["*"];function pL(n,a){1&n&&i._UZ(0,"div",9)}const AE=function(n,a){return{step:n,i:a}};function fL(n,a){if(1&n&&(i.ynx(0),i.GkF(1,7),i.YNc(2,pL,1,0,"div",8),i.BQk()),2&n){const e=a.$implicit,t=a.index,r=a.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,AE,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}function mL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",10),i.NdJ("@horizontalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.GkF(1,11),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",r._getAnimationDirection(t))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function gL(n,a){if(1&n&&(i.ynx(0),i.TgZ(1,"div",3),i.YNc(2,fL,3,6,"ng-container",4),i.qZA(),i.TgZ(3,"div",5),i.YNc(4,mL,2,5,"div",6),i.qZA(),i.BQk()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function _L(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.GkF(1,7),i.TgZ(2,"div",14),i.TgZ(3,"div",15),i.NdJ("@verticalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.TgZ(4,"div",16),i.GkF(5,11),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=a.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,AE,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",l._getAnimationDirection(t))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function bL(n,a){if(1&n&&(i.ynx(0),i.YNc(1,_L,6,12,"div",12),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function yL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",17),i.NdJ("click",function(){return i.CHM(e).step.select()})("keydown",function(r){return i.CHM(e),i.oxw()._onKeydown(r)}),i.qZA()}if(2&n){const e=a.step,t=a.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),i.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let BC=(()=>{class n extends wE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),VC=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const CL={provide:VC,deps:[[new i.FiY,new i.tp0,VC]],useFactory:function wL(n){return n||new VC}},AL=ga(class extends yE{constructor(a){super(a)}},"primary");let vE=(()=>{class n extends AL{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof BC?null:this.label}_templateLabel(){return this.label instanceof BC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(VC),i.Y36(Wn),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(i._UZ(0,"div",0),i.TgZ(1,"div"),i.TgZ(2,"div",1),i.YNc(3,eL,1,2,"ng-container",2),i.YNc(4,aL,5,4,"ng-container",3),i.qZA(),i.qZA(),i.TgZ(5,"div",4),i.YNc(6,sL,2,1,"div",5),i.YNc(7,oL,2,1,"div",5),i.YNc(8,lL,2,1,"div",6),i.YNc(9,cL,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},directives:[Gi,Ut,T.RF,T.n9,T.tP,T.ED,T.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),n})();const TE={horizontalStepTransition:ei("horizontalStepTransition",[Dt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Dt("current",He({transform:"none",visibility:"inherit"})),Dt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ft("* => *",ct("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:ei("verticalStepTransition",[Dt("previous",He({height:"0px",visibility:"hidden"})),Dt("next",He({height:"0px",visibility:"hidden"})),Dt("current",He({height:"*",visibility:"inherit"})),ft("* <=> current",ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let vL=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),TL=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),xE=(()=>{class n extends Yx{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=he.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,rn.w)(()=>this._stepper.selectionChange.pipe((0,dt.U)(e=>e.selectedStep===this),Wt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new fo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>SE)),i.Y36(wr,4),i.Y36(i.s_b),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,BC,5),i.Suo(r,TL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:wr,useExisting:n},{provide:Yx,useExisting:n}]),i.qOj],ngContentSelectors:hL,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,uL,2,1,"ng-template"))},directives:[qa],encapsulation:2,changeDetection:0}),n})(),ME=(()=>{class n extends gf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),xL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[i.qOj]}),n})(),ML=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[i.qOj]}),n})(),SE=(()=>{class n extends gf{constructor(e,t,r,l){super(e,t,r,l),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new Ee.xQ;const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(cl((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Je(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Mi,8),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xE,5),i.Suo(r,vL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(vE,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:gf,useExisting:n},{provide:xL,useExisting:n},{provide:ML,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,gL,5,2,"ng-container",1),i.YNc(2,bL,2,1,"ng-container",1),i.BQk(),i.YNc(3,yL,1,23,"ng-template",null,2,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},directives:[vE,T.RF,T.n9,T.sg,T.tP,T.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[TE.horizontalStepTransition,TE.verticalStepTransition]},changeDetection:0}),n})(),SL=(()=>{class n extends QR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),EL=(()=>{class n extends KR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),EE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[CL,wr],imports:[[it,T.ez,nl,Zr,XR,Wc,_a],it]}),n})();const DL=["mat-calendar-body",""];function HL(n,a){if(1&n&&(i.TgZ(0,"tr",2),i.TgZ(1,"td",3),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function kL(n,a){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function PL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",7),i.TgZ(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit;return i.oxw(2)._cellClicked(d,r)}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function RL(n,a){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,kL,2,6,"td",5),i.YNc(2,PL,5,47,"td",6),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function LL(n,a){if(1&n&&(i.TgZ(0,"th",5),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("aria-label",e.long),i.xp6(1),i.hij(" ",e.narrow," ")}}const IL=["*"];function OL(n,a){}function BL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("_userSelection",function(r){return i.CHM(e),i.oxw()._dateSelected(r)}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function VL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("monthSelected",function(r){return i.CHM(e),i.oxw()._monthSelectedInYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"month")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function jL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("yearSelected",function(r){return i.CHM(e),i.oxw()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"year")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function FL(n,a){}const NL=["button"];function YL(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const UL=[[["","matDatepickerToggleIcon",""]]],zL=["[matDatepickerToggleIcon]"];class Ux{constructor(a,e,t,r,l={},d=a,o){this.value=a,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=o}}let _f=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})}_isRangeStart(e){return zx(e,this.startValue,this.endValue)}_isRangeEnd(e){return qx(e,this.startValue,this.endValue)}_isInRange(e){return Gx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return zx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return qx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Gx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return zx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return qx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Gx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(DE(e)?t=e:DE(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:DL,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,HL,3,6,"tr",0),i.YNc(1,RL,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function DE(n){return"TD"===n.nodeName}function zx(n,a,e){return null!==e&&a!==e&&n=a&&n===e}function Gx(n,a,e,t){return t&&null!==a&&null!==e&&a!==e&&n>=a&&n<=e}class Kr{constructor(a,e){this.start=a,this.end=e}}let Jc=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Ee.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),qL=(()=>{class n extends Jc{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const HE={provide:Jc,deps:[[new i.FiY,new i.tp0,Jc],vi],useFactory:function WL(n,a){return n||new qL(a)}},jC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let kE=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Kr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._dateAdapter.getYear(this.activeDate),l=this._dateAdapter.getMonth(this.activeDate),d=this._dateAdapter.createDate(r,l,t);let o,s;this._selected instanceof Kr?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==t||s!==t)&&this.selectedChange.emit(d),this._userSelection.emit({value:d,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!Ki(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,o)=>({long:d,narrow:t[o]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Kr?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(yr,8),i.Y36(vi,8),i.Y36(Mi,8),i.Y36(jC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(_f,5),2&e){let r;i.iGM(r=i.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i.YNc(3,LL,2,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA(),i.qZA(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA(),i.qZA()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[_f,T.sg],encapsulation:2,changeDetection:0}),n})(),PE=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RE(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Kr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let r=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));this.selectedChange.emit(this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Ux(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Kr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const l=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Ux(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new Ee.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),KL=0,XL=(()=>{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+KL++,this.calendar.stateChanges.subscribe(()=>d.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-S_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):RE(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36((0,i.Gpc)(()=>$x)),i.Y36(vi,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:IL,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA(),i.qZA(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},directives:[Ft,Om],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new Ee.xQ,this._intlChanges=e.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Kr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new il(this.headerComponent||XL),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Kr||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(vi,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(kE,5),i.Gf(IE,5),i.Gf(PE,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([HE]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(i.YNc(0,OL,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,BL,1,8,"mat-month-view",2),i.YNc(3,VL,1,6,"mat-year-view",3),i.YNc(4,jL,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},directives:[kE,IE,PE,qa,_v,T.RF,T.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),n})();const OE={transformPanel:ei("transformPanel",[ft("void => enter-dropdown",ct("120ms cubic-bezier(0, 0, 0.2, 1)",hl([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),ft("void => enter-dialog",ct("150ms cubic-bezier(0, 0, 0.2, 1)",hl([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),ft("* => void",ct("100ms linear",He({opacity:0})))]),fadeInCalendar:ei("fadeInCalendar",[Dt("void",He({opacity:0})),Dt("enter",He({opacity:1})),ft("void => *",ct("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let eI=0;const BE=new i.OlP("mat-datepicker-scroll-strategy"),iI={provide:BE,deps:[br],useFactory:function tI(n){return()=>n.scrollStrategies.reposition()}},nI=ga(class{constructor(n){this._elementRef=n}});let rI=(()=>{class n extends nI{constructor(e,t,r,l,d,o){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new he.w,this._animationDone=new Ee.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Kr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Jc),i.Y36(vi),i.Y36(jC,8),i.Y36(E_))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf($x,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,FL,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA(),i.qZA()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},directives:[$x,Ft,jr,T.mk,qa],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[OE.transformPanel,OE.fadeInCalendar]},changeDetection:0}),n})(),VE=(()=>{class n{constructor(e,t,r,l,d,o,s){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=o,this._model=s,this._inputStateChanges=he.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+eI++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Ee.xQ,this._scrollStrategy=l}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Ie(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Ie(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Ie(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function gM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Ie(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof Tm&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Ya(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,jt.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,t;null===(t=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===t||t._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new il(rI,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new mc({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(l=>{l&&l.preventDefault(),this.close()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Si.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,qt.h)(t=>27===t.keyCode&&!Ki(t)||this.datepickerInput&&Ki(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(BE),i.Y36(vi,8),i.Y36(Mi,8),i.Y36(Jc))},n.\u0275dir=i.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),n})(),Jx=(()=>{class n extends VE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([HE,{provide:VE,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class FC{constructor(a,e){this.target=a,this.targetElement=e,this.value=this.target.value}}let aI=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Ee.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=he.w.EMPTY,this._localeSubscription=he.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMinDate();return!o||!d||this._dateAdapter.compareDate(o,d)<=0?null:{matDatepickerMin:{min:o,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMaxDate();return!o||!d||this._dateAdapter.compareDate(o,d)>=0?null:{matDatepickerMax:{max:o,actual:d}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Ie(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)),this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function sI(n,a){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!a.isDateInstance(r)||!a.isDateInstance(l))return!0;if(!a.sameDate(r,l))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new FC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new FC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vi,8),i.Y36(yr,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const oI={provide:$n,useExisting:(0,i.Gpc)(()=>D_),multi:!0},lI={provide:Xi,useExisting:(0,i.Gpc)(()=>D_),multi:!0};let D_=(()=>{class n extends aI{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=he.w.EMPTY,this._validator=Oi.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vi,8),i.Y36(yr,8),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([oI,lI,{provide:LS,useExisting:n}]),i.qOj]}),n})(),cI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),Qx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=he.w.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Ie(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,Ne.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ne.of)(),r=this.datepicker?(0,Si.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ne.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Si.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,cI,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(NL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:zL,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(i.F$t(UL),i.TgZ(0,"button",0,1),i.YNc(2,YL,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},directives:[Ft,T.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),Kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[E_,iI],imports:[[T.ez,Zr,_o,qh,nl,it],gr]}),n})();const dI=["mat-sort-header",""];function uI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const hI=["*"],Qc=Wv.ENTERING+" "+Gv.STANDARD_CURVE,bf={indicator:ei("indicator",[Dt("active-asc, asc",He({transform:"translateY(0px)"})),Dt("active-desc, desc",He({transform:"translateY(10px)"})),ft("active-asc <=> active-desc",ct(Qc))]),leftPointer:ei("leftPointer",[Dt("active-asc, asc",He({transform:"rotate(-45deg)"})),Dt("active-desc, desc",He({transform:"rotate(45deg)"})),ft("active-asc <=> active-desc",ct(Qc))]),rightPointer:ei("rightPointer",[Dt("active-asc, asc",He({transform:"rotate(45deg)"})),Dt("active-desc, desc",He({transform:"rotate(-45deg)"})),ft("active-asc <=> active-desc",ct(Qc))]),arrowOpacity:ei("arrowOpacity",[Dt("desc-to-active, asc-to-active, active",He({opacity:1})),Dt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),ft("* => asc, * => desc, * => active, * => hint, * => void",ct("0ms")),ft("* <=> *",ct(Qc))]),arrowPosition:ei("arrowPosition",[ft("* => desc-to-hint, * => desc-to-active",ct(Qc,hl([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-desc, * => active-to-desc",ct(Qc,hl([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),ft("* => asc-to-hint, * => asc-to-active",ct(Qc,hl([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-asc, * => active-to-asc",ct(Qc,hl([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Dt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Dt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:ei("allowChildren",[ft("* <=> *",[Dn("@*",ty(),{optional:!0})])])};let NC=(()=>{class n{constructor(){this.changes=new Ee.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fI={provide:NC,deps:[[new i.FiY,new i.tp0,NC]],useFactory:function pI(n){return n||new NC}},mI=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),gI=bg(qr(class{}));let Aa=(()=>{class n extends gI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ee.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ie(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let o=function _I(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(mI,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const bI=qr(class{});let yf=(()=>{class n extends bI{constructor(e,t,r,l,d,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Ie(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Si.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(NC),i.Y36(i.sBO),i.Y36(Aa,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Wn),i.Y36(i.SBq),i.Y36(km,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:dI,ngContentSelectors:hI,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,uI,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[T.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[bf.indicator,bf.leftPointer,bf.rightPointer,bf.arrowOpacity,bf.arrowPosition,bf.allowChildren]},changeDetection:0}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fI],imports:[[T.ez,it]]}),n})();function yI(n,a){1&n&&i.Hsn(0)}const jE=["*"];function wI(n,a){}const CI=function(n){return{animationDuration:n}},AI=function(n,a){return{value:n,params:a}},vI=["tabListContainer"],TI=["tabList"],xI=["tabListInner"],MI=["nextPaginator"],SI=["previousPaginator"],EI=["tabBodyWrapper"],DI=["tabHeader"];function HI(n,a){}function kI(n,a){if(1&n&&i.YNc(0,HI,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function PI(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function RI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,o=i.oxw(),s=i.MAs(1);return o._handleClick(l,s,d)})("cdkFocusChange",function(r){const d=i.CHM(e).index;return i.oxw()._tabFocusChanged(r,d)}),i.TgZ(1,"div",7),i.YNc(2,kI,1,1,"ng-template",8),i.YNc(3,PI,1,1,"ng-template",null,9,i.W1O),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function LI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){return i.CHM(e),i.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return i.CHM(e),i.oxw()._setTabBodyWrapperHeight(r)}),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const II=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function OI(){return a=>({left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"})}});let FE=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(II),i.Y36(Ai,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const NE=new i.OlP("MatTabContent");let BI=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:NE,useExisting:n}])]}),n})();const YE=new i.OlP("MatTabLabel"),UE=new i.OlP("MAT_TAB");let VI=(()=>{class n extends bA{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(UE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:YE,useExisting:n}]),i.qOj]}),n})();const jI=qr(class{}),zE=new i.OlP("MAT_TAB_GROUP");let qE=(()=>{class n extends jI{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new fo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(zE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,YE,5),i.Suo(r,NE,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t._implicitContent=r.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:UE,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:jE,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,yI,1,0,"ng-template"))},encapsulation:2}),n})();const FI={translateTab:ei("translateTab",[Dt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Dt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Dt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ft("* => left, * => right, left => center, right => center",ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ft("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ft("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let NI=(()=>{class n extends qa{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=he.w.EMPTY,this._leavingSub=he.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>GE)),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),YI=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=he.w.EMPTY,this._translateTabComplete=new Ee.xQ,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(cl((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Mi,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),GE=(()=>{class n extends YI{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Mi,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(qa,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,wI,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,AI,t._position,i.VKq(1,CI,t.animationDuration)))},directives:[NI],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[FI.translateTab]}}),n})();const WE=new i.OlP("MAT_TABS_CONFIG"),UI=qr(class{});let ZE=(()=>{class n extends UI{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const $E=Na({passive:!0});let GI=(()=>{class n{constructor(e,t,r,l,d,o,s){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{pa(e.nativeElement,"mouseleave").pipe(Je(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_i(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){pa(this._previousPaginator.nativeElement,"touchstart",$E).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),pa(this._nextPaginator.nativeElement,"touchstart",$E).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ne.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new ul(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,Si.T)(e,t,this._items.changes).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Je(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ki(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:d}=t.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=l,s=o+d):(s=this._tabListInner.nativeElement.offsetWidth-l,o=s-d);const c=this.scrollDistance,u=this.scrollDistance+r;ou&&(this.scrollDistance+=s-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_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 e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),Sn(650,100).pipe(Je((0,Si.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(za),i.Y36(Mi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Ai,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),WI=(()=>{class n extends GI{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Ie(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(za),i.Y36(Mi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Ai,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),ZI=(()=>{class n extends WI{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(za),i.Y36(Mi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,ZE,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(FE,7),i.Gf(vI,7),i.Gf(TI,7),i.Gf(xI,7),i.Gf(MI,5),i.Gf(SI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:jE,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA(),i.qZA(),i.TgZ(11,"div",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[Ut,qd,FE],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),n})(),$I=0;class JI{}const QI=ga(Gr(class{constructor(n){this._elementRef=n}}),"primary");let KI=(()=>{class n extends QI{constructor(e,t,r,l){var d;super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=he.w.EMPTY,this._tabLabelSubscription=he.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=$I++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=null!==(d=null==r?void 0:r.contentTabIndex)&&void 0!==d?d:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Ie(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_i(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=_i(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,l)=>r.isActive=l===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let r=0;r{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._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(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new JI;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Si.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(WE,8),i.Y36(Ai,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),XI=(()=>{class n extends KI{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(WE,8),i.Y36(Ai,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,qE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(EI,5),i.Gf(DI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:zE,useExisting:n}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,RI,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,LI,1,10,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},directives:[ZI,GE,T.sg,ZE,Ut,_v,T.mk,T.O5,qa],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})(),QE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,it,nl,_a,gc,qh],it]}),n})(),KE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[KE,_a,it,gc],KE,it]}),n})(),eD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,oE,jx,gE,Zr,bE,OC,Wc,PC,wu,CC,Tl,AC,tl,iC,Vu,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,Nu,Fu,_a,PC,XE],oE,jx,gE,Zr,bE,OC,Wc,PC,wu,CC,Tl,AC,tl,iC,Vu,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,Nu,Fu,_a,QE,XE]}),n})(),pO=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[lr,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),fO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),tD=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),YC=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function gO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function _O(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function bO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function yO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function wO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function AO(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,wO,4,3,"button",26),i.YNc(2,CO,4,3,"button",26),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function vO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function TO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function xO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function MO(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function SO(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,MO,4,3,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function EO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function DO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function HO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function kO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function PO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function RO(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function LO(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,RO,3,1,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function IO(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function OO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",25),i.TgZ(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showCite(l)})("mouseenter",function(){return i.CHM(e),i.oxw().buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw().buttonPressed=!1}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function BO(n,a){1&n&&i._UZ(0,"tr",31)}const iD=function(n,a){return[n,a]};function VO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,iD,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,iD,t.routerPath,e.id))}}function jO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let wf=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=qu,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(l=>r+=vS(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Ol(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Jn();t.width="500px",t.data=e,this.dialog.open(pO,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC),i.Y36(li),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,mO,2,3,"th",4),i.YNc(5,gO,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,_O,3,3,"th",7),i.YNc(8,bO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,yO,3,3,"th",7),i.YNc(11,AO,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,vO,3,3,"th",7),i.YNc(14,TO,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,xO,3,3,"th",7),i.YNc(17,SO,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,EO,3,3,"th",7),i.YNc(20,DO,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,HO,3,3,"th",7),i.YNc(23,kO,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,PO,3,3,"th",7),i.YNc(26,LO,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,IO,3,3,"th",16),i.YNc(29,OO,4,3,"td",8),i.BQk(),i.YNc(30,BO,1,0,"tr",17),i.YNc(31,VO,1,10,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(32,jO,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},directives:[ts,So,Aa,Bs,Os,Vs,$c,Is,js,yf,T.O5,Ft,qc,Gi,T.sg,Ll,Il,Eo,Do,tD,F,Fs],pipes:[Ct,YC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function FO(n,a){1&n&&i._UZ(0,"mat-spinner",7)}const NO=function(){return["id","title","year"]};function YO(n,a){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,NO))}}let eM=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,FO,1,0,"mat-spinner",2),i.YNc(5,YO,4,7,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[lr,T.O5,mn,kn,wf,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),Cf=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[Ft,qc,Gi],pipes:[Ct],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),n})();var Af=x(5439);const Wu=Af||x.t(Af,2),nD=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function zO(){return{useUtc:!1}}});function qO(n,a){const e=Array(n);for(let t=0;t{class n extends vi{constructor(e,t){super(),this._options=t,this.setLocale(e||Wu.locale())}setLocale(e){super.setLocale(e);let t=Wu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:qO(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,Wu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return Wu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return Wu.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?Wu.utc(e,t,r,l):Wu(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(To,8),i.LFG(nD,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),GO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:vi,useClass:H_,deps:[To,nD]}]}),n})(),rD=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1),i._UZ(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(7);return t.chosenYearHandler(t.startYear,d,o)}),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(15).open()}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5),i._UZ(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(15);return t.chosenYearHandler(t.endYear,d,o)}),i.qZA(),i.qZA()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},directives:[Zn,es,is,D_,Pn,cr,ya,Qx,gw,Jx],pipes:[Ct],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function WO(n,a){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const UC=Af,ZO={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let tM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ei,this.code=new Ei,this.startYear=new Ei(UC()),this.endYear=new Ei(UC())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,T.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,T.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Ei(UC()),this.endYear=new Ei(UC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:vi,useClass:H_,deps:[To]},{provide:yr,useValue:ZO}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1),i.TgZ(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,WO,2,2,"mat-option",8),i.qZA(),i.qZA(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Zn,is,Pn,cr,ya,es,zc,Sc,T.sg,rD,Ft,Gi],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function $O(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function JO(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let QO=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new Ii(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(zu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA(),i.TgZ(6,"div",4),i.TgZ(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA(),i.qZA(),i.YNc(12,$O,1,4,"perun-web-apps-publications-list",8),i.YNc(13,JO,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[Gi,Cf,Ft,tM,T.O5,wf,mn],pipes:[Ct],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function KO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function XO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",6),i.TgZ(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(7,KO,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function eB(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let tB=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new Ii(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,XO,8,5,"div",4),i.YNc(8,eB,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct],styles:[""]}),n})(),iB=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"div",4),i.TgZ(9,"mat-card",5),i.TgZ(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6),i.TgZ(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(20,"div",4),i.TgZ(21,"mat-card",5),i.TgZ(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6),i.TgZ(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Gi,sE,aE,rE,Ft],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}"]}),n})();const nB=["input"];let rB=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ei,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),pa(this.input.nativeElement,"keyup").pipe((0,dt.U)(e=>e.target.value),(0,ll.b)(500),cl()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(nB,7),2&e){let r;i.iGM(r=i.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},directives:[Zn,is,Pn,cr,ya,Hs],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function aB(n,a){1&n&&i._UZ(0,"th",20)}function sB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",21),i.TgZ(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function oB(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function lB(n,a){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function cB(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function dB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function uB(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function hB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function pB(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function fB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function mB(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function gB(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function _B(n,a){1&n&&i._UZ(0,"th",26)}function bB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onAddClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function yB(n,a){1&n&&i._UZ(0,"th",26)}function wB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onRemoveClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function CB(n,a){1&n&&i._UZ(0,"tr",29)}const aD=function(n){return["/authors",n]};function AB(n,a){if(1&n&&i._UZ(0,"tr",30),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,aD,e.id))("routerLink",t.disableRouting?null:i.VKq(6,aD,e.id))}}function vB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function TB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let iM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=qu,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function HH(n){let a="";return null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return vS(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){var r;switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:null!==(r=e.firstName)&&void 0!==r?r:"";case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Ol(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,aB,1,0,"th",4),i.YNc(5,sB,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,oB,3,3,"th",7),i.YNc(8,lB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,cB,3,3,"th",7),i.YNc(11,dB,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,uB,3,3,"th",7),i.YNc(14,hB,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,pB,3,3,"th",7),i.YNc(17,fB,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,mB,3,3,"th",7),i.YNc(20,gB,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,_B,1,0,"th",15),i.YNc(23,bB,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,yB,1,0,"th",15),i.YNc(26,wB,4,3,"td",8),i.BQk(),i.YNc(27,CB,1,0,"tr",17),i.YNc(28,AB,1,8,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,vB,3,3,"perun-web-apps-alert",19),i.YNc(30,TB,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},directives:[ts,So,Aa,Bs,Os,Vs,Is,js,$c,yf,Ft,Ll,Il,Eo,Do,tD,F,T.O5,Fs],pipes:[Ct,YC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function xB(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const MB=function(){return["id","name","organization","email","numberOfPublications"]};function SB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,MB))("filterValue",e.filterValue)("tableId",e.tableId)}}let EB=(()=>{class n{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,xB,1,0,"mat-spinner",6),i.YNc(10,SB,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,Cf,rB,T.O5,mn,iM],pipes:[Ct],styles:[""]}),n})();function DB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function HB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.qZA(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.qZA(),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let kB=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Ei(null,[Oi.required,Oi.pattern("^[\\w.-]+( [\\w.-]+)*$"),Oi.maxLength(128)]),this.rankCtrl=new Ei(null,[Oi.required,Oi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,DB,1,0,"mat-spinner",2),i.YNc(5,HB,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[lr,T.O5,mn,kn,Zn,is,Pn,Mo,cr,ya,Hs,Cr,Ft,qc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function PB(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function RB(n,a){1&n&&i._UZ(0,"th",14)}function LB(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function IB(n,a){1&n&&i._UZ(0,"tr",16)}function OB(n,a){1&n&&i._UZ(0,"tr",17)}function BB(n,a){if(1&n&&(i.TgZ(0,"div",6),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,RB,1,0,"th",10),i.YNc(10,LB,2,1,"td",11),i.BQk(),i.YNc(11,IB,1,0,"tr",12),i.YNc(12,OB,1,0,"tr",13),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function VB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",18),i.TgZ(1,"button",19),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let jB=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Ol(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,PB,1,0,"mat-spinner",2),i.YNc(5,BB,13,9,"div",3),i.YNc(6,VB,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[lr,T.O5,mn,kn,So,Bs,Os,Vs,Is,js,Ll,Il,Eo,Do,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function FB(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function NB(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let k_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ei}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,FB,2,4,"input",1),i.YNc(2,NB,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[Zn,T.O5,is,Pn,fO,cr,ya],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function YB(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function UB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.TgZ(11,"div",8),i.TgZ(12,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let zB=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ei(this.data.rank,[Oi.required,Oi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,YB,1,0,"mat-spinner",2),i.YNc(5,UB,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[lr,T.O5,mn,kn,Zn,is,Pn,Mo,cr,ya,Hs,Cr,Ft,qc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function qB(n,a){1&n&&i._UZ(0,"th",15)}function GB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function WB(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function ZB(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function $B(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function JB(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function QB(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function KB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().updateCategory(r)}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i.qZA()}}function XB(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,KB,3,0,"button",21),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function eV(n,a){1&n&&i._UZ(0,"tr",23)}function tV(n,a){1&n&&i._UZ(0,"tr",24)}function iV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let nV=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=qu,this.refreshTable=new i.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Ol(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Jn();t.width="400px",t.data=e,this.dialog.open(zB,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(aa),i.Y36(wC),i.Y36(fn),i.Y36(aa))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,qB,1,0,"th",4),i.YNc(5,GB,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,WB,3,3,"th",7),i.YNc(8,ZB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,$B,3,3,"th",7),i.YNc(11,JB,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,QB,3,3,"th",7),i.YNc(14,XB,3,2,"td",10),i.BQk(),i.YNc(15,eV,1,0,"tr",12),i.YNc(16,tV,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,iV,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},directives:[ts,So,Aa,Bs,Os,Vs,Is,js,$c,yf,T.O5,Ft,Gi,Ll,Il,Eo,Do,Fs],pipes:[Ct],styles:[""]}),n})();function rV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().addCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function aV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().removeCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function sV(n,a){1&n&&i._UZ(0,"mat-spinner",10)}const oV=function(){return["select","id","name","rank"]},lV=function(){return["name","rank"]};function cV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,oV):i.DdM(6,lV))("tableId",e.tableId)("selection",e.selected)}}let dV=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Ii(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Jn();e.width="400px",e.data={},this.dialog.open(kB,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Jn();e.width="400px",e.data=this.selected.selected,this.dialog.open(jB,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(fn),i.Y36(aa))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,rV,3,3,"button",3),i.YNc(6,aV,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,sV,1,0,"mat-spinner",6),i.YNc(9,cV,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},directives:[Cf,T.O5,Ft,k_,mn,nV],pipes:[Ct],styles:[""]}),n})();function uV(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function hV(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function pV(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function fV(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function mV(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function gV(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function _V(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function bV(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function yV(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function CV(n,a){1&n&&i._UZ(0,"tr",17)}function AV(n,a){1&n&&i._UZ(0,"tr",18)}function vV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let TV=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=qu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new Ol(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,uV,3,3,"th",4),i.YNc(5,hV,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,pV,3,3,"th",4),i.YNc(8,fV,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,mV,3,3,"th",4),i.YNc(11,gV,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,_V,3,3,"th",4),i.YNc(14,bV,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,yV,3,3,"th",4),i.YNc(17,wV,2,1,"td",7),i.BQk(),i.YNc(18,CV,1,0,"tr",11),i.YNc(19,AV,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,vV,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},directives:[ts,So,Aa,Bs,Os,Vs,yf,Is,js,Ll,Il,Eo,Do,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function xV(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function MV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let SV=(()=>{class n{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,xV,1,0,"mat-spinner",4),i.YNc(7,MV,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},directives:[Cf,k_,T.O5,mn,TV],pipes:[Ct],styles:[""]}),n})();function EV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function DV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6),i.TgZ(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(11,EV,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function HV(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let kV=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new Ii(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Jn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Mr),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,DV,12,11,"div",4),i.YNc(8,HV,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct,YC],styles:[""]}),n})();function PV(n,a){1&n&&i._UZ(0,"mat-spinner",2)}function RV(n,a){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function LV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.editing=!r.editing}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function IV(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function OV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,IV,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function BV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).save()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function VV(n,a){1&n&&i._UZ(0,"th",21)}function jV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij("",e.key,":")}}function FV(n,a){1&n&&i._UZ(0,"th",21)}function NV(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function YV(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function UV(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function zV(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function qV(n,a){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,zV,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function GV(n,a){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function WV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,qV,2,1,"span",1),i.YNc(2,GV,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function ZV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){return i.CHM(e),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27),i._UZ(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7);return i.oxw(4).chosenYearHandler(r,l)}),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function $V(n,a){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function JV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i.TgZ(1,"mat-select",31),i.YNc(2,$V,2,2,"mat-option",32),i.qZA(),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function QV(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function KV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,QV,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function XV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.isbn=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function ej(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.doi=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function tj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"textarea",36),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.main=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function ij(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZV,8,7,"mat-form-field",25),i.YNc(2,JV,3,2,"mat-form-field",1),i.YNc(3,KV,3,2,"mat-form-field",1),i.YNc(4,XV,2,1,"mat-form-field",6),i.YNc(5,ej,2,1,"mat-form-field",6),i.YNc(6,tj,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function nj(n,a){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,NV,10,9,"span",1),i.YNc(2,YV,3,4,"span",1),i.YNc(3,UV,2,1,"span",1),i.YNc(4,WV,3,2,"div",1),i.YNc(5,ij,7,6,"div",1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function rj(n,a){1&n&&i._UZ(0,"tr",37)}function aj(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"div",3),i.YNc(2,RV,2,1,"h3",4),i.YNc(3,LV,4,3,"button",5),i.YNc(4,OV,3,2,"mat-form-field",6),i.YNc(5,BV,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,VV,1,0,"th",10),i.YNc(9,jV,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,FV,1,0,"th",10),i.YNc(12,nj,6,5,"td",13),i.BQk(),i.YNc(13,rj,1,0,"tr",14),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const sD=Af,sj={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let oj=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new Ii(!0,[]),this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;el.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:vi,useClass:H_,deps:[To]},{provide:yr,useValue:sj}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,PV,1,0,"mat-spinner",0),i.YNc(2,aj,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,mn,Ft,qc,Gi,Zn,is,Pn,cr,ya,Hs,So,Bs,Os,Vs,Is,js,es,D_,Qx,gw,Jx,zc,T.sg,Sc,Sl,Eo,Do],pipes:[Ct,T.uU],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),n})();const lj=function(){return["id","name","organization","email","add"]};function cj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){return i.CHM(e),i.oxw(3).addAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,lj))}}function dj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function uj(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,cj,1,5,"perun-web-apps-authors-list",13),i.YNc(2,dj,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function hj(n,a){1&n&&i._UZ(0,"mat-spinner",17)}const pj=function(){return["id","name","organization","email","remove"]};function fj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){return i.CHM(e),i.oxw(3).removeAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,pj))}}function mj(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,fj,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function gj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function _j(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,uj,3,2,"div",6),i.YNc(2,hj,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,mj,2,1,"div",6),i.YNc(7,gj,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function bj(n,a){1&n&&i._UZ(0,"mat-spinner",17)}let yj=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new Ii(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ei("",[Oi.required,Oi.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"mat-form-field",3),i.TgZ(6,"label"),i.TgZ(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA(),i.qZA(),i.YNc(15,_j,8,7,"div",6),i.qZA(),i.YNc(16,bj,1,0,"mat-spinner",7),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[lr,kn,Zn,is,Pn,cr,ya,Hs,Ft,Gi,T.O5,iM,Fs,mn,Cr],pipes:[Ct],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function wj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function Cj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function Aj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const vj=function(){return["id","name","organization","email"]},Tj=function(){return["select","id","name","organization","email"]};function xj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,vj):i.DdM(6,Tj))}}let oD=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Jn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(yj,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Jn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(FS,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,wj,3,3,"button",1),i.YNc(2,Cj,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,Aj,1,0,"mat-spinner",4),i.YNc(5,xj,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,iM],pipes:[Ct],styles:[""]}),n})();function Mj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Sj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Ej(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function Dj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function Hj(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function kj(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function Pj(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function Rj(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.contact)}}function Lj(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function Ij(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.type)}}function Oj(n,a){1&n&&i._UZ(0,"tr",23)}function Bj(n,a){1&n&&i._UZ(0,"tr",24)}function Vj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function jj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let Fj=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Ii(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=qu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Ol(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(aa),i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,Mj,2,3,"th",4),i.YNc(5,Sj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Ej,3,3,"th",7),i.YNc(8,Dj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,Hj,3,3,"th",7),i.YNc(11,kj,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Pj,3,3,"th",7),i.YNc(14,Rj,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,Lj,3,3,"th",7),i.YNc(17,Ij,2,1,"td",10),i.BQk(),i.YNc(18,Oj,1,0,"tr",13),i.YNc(19,Bj,1,0,"tr",14),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,Vj,3,3,"perun-web-apps-alert",15),i.YNc(21,jj,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},directives:[ts,So,Aa,Bs,Os,Vs,$c,Is,js,yf,Ll,Il,Eo,Do,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function Nj(n,a){1&n&&i._UZ(0,"mat-spinner",4)}const Yj=function(){return["select","id","name","contact"]};function Uj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().filterValue=r}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8),i.TgZ(5,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,Yj))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let zj=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=o,this.cabinetManagerService=s,this.selected=new Ii(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Wr),i.Y36($t),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,Nj,1,0,"mat-spinner",2),i.YNc(5,Uj,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[lr,T.O5,mn,kn,k_,Fj,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function qj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function Gj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function Wj(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function Zj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function $j(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function Jj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function Qj(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function Kj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function Xj(n,a){1&n&&i._UZ(0,"tr",22)}function e2(n,a){1&n&&i._UZ(0,"tr",23)}function t2(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function n2(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let r2=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=qu,this.selection=new Ii(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new Ol(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(Aa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,qj,2,3,"th",4),i.YNc(5,Gj,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,Wj,3,3,"th",7),i.YNc(8,Zj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,$j,3,3,"th",7),i.YNc(11,Jj,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,Qj,3,3,"th",7),i.YNc(14,Kj,2,1,"td",10),i.BQk(),i.YNc(15,Xj,1,0,"tr",12),i.YNc(16,e2,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,t2,3,3,"perun-web-apps-alert",14),i.YNc(18,n2,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},directives:[ts,So,Aa,Bs,Os,Vs,$c,Is,js,yf,Ll,Il,Eo,Do,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function a2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function s2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function o2(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const l2=function(){return["id","name","createdBy"]},c2=function(){return["select","id","name","createdBy"]};function d2(n,a){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,l2):i.DdM(6,c2))("selection",e.selection)}}let lD=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Jn();e.width="800px",e.data=this.publication,this.dialog.open(zj,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Jn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(FS,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,a2,3,3,"button",1),i.YNc(2,s2,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,o2,1,0,"mat-spinner",4),i.YNc(5,d2,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,r2],pipes:[Ct],styles:[""]}),n})();function u2(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function h2(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function p2(n,a){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function f2(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function m2(n,a){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function g2(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function _2(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function b2(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function y2(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function w2(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function C2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){return i.CHM(e),i.oxw(2).refreshPublication()}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function A2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,h2,6,3,"h1",4),i.YNc(2,p2,5,3,"h1",4),i.YNc(3,f2,6,3,"h1",4),i.YNc(4,m2,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeLock()}),i.YNc(12,g2,3,3,"span",7),i.YNc(13,_2,2,0,"mat-icon",2),i.YNc(14,b2,3,3,"span",7),i.YNc(15,y2,2,0,"mat-icon",2),i.qZA(),i.qZA(),i.TgZ(16,"mat-card"),i.TgZ(17,"mat-card-content"),i.YNc(18,w2,1,0,"mat-spinner",1),i.YNc(19,C2,1,2,"perun-web-apps-publication-detail-list",8),i.qZA(),i.qZA(),i.TgZ(20,"mat-card",9),i.TgZ(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA(),i.qZA(),i.TgZ(26,"mat-card",9),i.TgZ(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let P_=(()=>{class n{constructor(e,t,r,l,d,o,s){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=o,this.translate=s,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Ii(!0,[]),this.selectionThanks=new Ii(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(zu),i.Y36(Vn),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,u2,1,0,"mat-spinner",1),i.YNc(2,A2,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},directives:[T.O5,mn,Gi,Ft,sE,rE,oj,aE,oD,lD],pipes:[Ct,YC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),nM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Wc,T.ez]]}),n})();const hD=new i.OlP("mat-chips-default-options");let I2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr,{provide:hD,useValue:{separatorKeyCodes:[13]}}],imports:[[it]]}),n})();function B2(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function aM(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function vf(n,a){const e=a?"":"none";aM(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function pD(n,a,e){aM(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function zC(n,a){return a&&"none"!=a?n+" "+a:n}function fD(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function sM(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function oM(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function lM(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function R_(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function mD(n,a,e,t){const{top:r,right:l,bottom:d,left:o,width:s,height:c}=n,u=s*a,h=c*a;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:oM(e)})})}handleScroll(a){const e=fa(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,s=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&R_(c.clientRect,o,s)}),r.top=l,r.left=d,{top:o,left:s}}}function _D(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const s=this._handles.find(c=>o.target&&(o.target===c||c.contains(o.target)));s&&!this._disabledHandles.has(s)&&!this.disabled&&this._initializeDragSequence(s,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const s=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(s.x-this._pickupPositionOnPage.x)+Math.abs(s.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),j=this._dropContainer;if(!b)return void this._endDragSequence(o);(!j||!j.isDragging()&&!j.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),o.preventDefault();const c=this._getConstrainedPointerPosition(s);if(this._hasMoved=!0,this._lastKnownPointerPosition=s,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,s);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new gD(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Ie(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>vf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Qi(t)),this._handles.forEach(t=>vf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Qi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,AD),e.addEventListener("touchstart",this._pointerDown,CD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Qi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),vf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),vf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){L_(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),pD(t,!1,cM),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=L_(e),l=!r&&0!==e.button,d=this._rootElement,o=fa(e),s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?zh(e):Uh(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||s||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=oM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){pD(this._rootElement,!0,cM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=TD(d,this._document),this._previewRef=d,a.matchSize?xD(r,l):r.style.transform=qC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=_D(l),xD(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return aM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},cM),vf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function V2(n){const a=getComputedStyle(n),e=sM(a,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=sM(a,"transition-duration"),d=sM(a,"transition-delay");return fD(l[r])+fD(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var o;(!d||fa(d)===this._preview&&"transform"===d.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=TD(this._placeholderRef,this._document)):t=_D(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=L_(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-o.left),y:l.top-t.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=L_(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,s=this._previewRect,c=o.top+d,u=o.bottom-(s.height-d);t=vD(t,o.left+l,o.right-(s.width-l)),r=vD(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,vf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,AD),a.removeEventListener("touchstart",this._pointerDown,CD)}_applyRootElementTransform(a,e){const t=qC(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=zC(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=qC(a,e);this._preview.style.transform=zC(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,o=t.top-r.top,s=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(o>0&&(e+=o),s>0&&(e-=s)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:L_(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=fa(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&R_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Hh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qi(t)}}function qC(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function vD(n,a,e){return Math.max(a,Math.min(e,n))}function L_(n){return"t"===n.type[0]}function TD(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function xD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=qC(a.left,a.top)}function I_(n,a){return Math.max(0,Math.min(a,n))}class U2{constructor(a,e,t,r,l){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=l,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.xQ,this.entered=new Ee.xQ,this.exited=new Ee.xQ,this.dropped=new Ee.xQ,this.sorted=new Ee.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=he.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function O2(n=0,a=Eh.P){return(!Xo(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Eh.P),new ki.y(e=>(e.add(a.schedule(B2,n,{subscriber:e,counter:0,period:n})),e))}(0,Pd).pipe(Je(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=Qi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new gD(t,l)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,o=d.indexOf(a),s=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(s,u),d.splice(l,0,a)}else Qi(this.element).appendChild(s),d.push(a);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,d,o){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Qi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!mD(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const o="horizontal"===this._orientation,s=l.findIndex(pe=>pe.drag===a),c=l[d],h=c.clientRect,f=s>d?1:-1,b=this._getItemOffsetPx(l[s].clientRect,h,f),j=this._getSiblingOffsetPx(s,l,f),ie=l.slice();(function Y2(n,a,e){const t=I_(a,n.length-1),r=I_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ie[Ue]===pe)return;const Tt=pe.drag===a,st=Tt?b:j,zt=Tt?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=st,o?(zt.style.transform=zC(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),R_(pe.clientRect,0,st)):(zt.style.transform=zC(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),R_(pe.clientRect,st,0))}),this._previousSwap.overlaps=lM(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||mD(d.clientRect,.05,a,e)&&([r,l]=function z2(n,a,e,t){const r=ED(a,t),l=DD(a,e);let d=0,o=0;if(r){const s=n.scrollTop;1===r?s>0&&(d=1):n.scrollHeight-s>n.clientHeight&&(d=2)}if(l){const s=n.scrollLeft;1===l?s>0&&(o=1):n.scrollWidth-s>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,a,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),s={width:d,height:o,top:0,right:d,bottom:o,left:0};r=ED(s,e),l=DD(s,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Qi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Qi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_cacheItemPositions(){const a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:oM(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Qi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let o=l[r?"width":"height"]*t;if(d){const s=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[s]-l[c]:o+=l[s]-d.clientRect[c]}return o}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:s})=>{if(o===a)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(s.left)&&e=Math.floor(s.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!lM(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Qi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&(this._itemPositions.forEach(({clientRect:t})=>{R_(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Hh(Qi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function ED(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function DD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const GC=Na({passive:!1,capture:!0});let q2=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ee.xQ,this.pointerUp=new Ee.xQ,this.scroll=new Ee.xQ,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,GC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,GC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:GC}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:GC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ki.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Si.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const G2={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let W2=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=G2){return new N2(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new U2(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(i.R0b),i.LFG(za),i.LFG(q2))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Z2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[W2],imports:[gr]}),n})(),$2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),eF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),lF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[eF,it],it]}),n})(),CF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[_a,it],it]}),n})(),TF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Vu,Zr,OC,Wc,CC,Nu]]}),n})(),xF=(()=>{class n extends gp{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const MF={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let RD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:vi,useClass:xF},{provide:yr,useValue:MF}],imports:[[T.ez,OC,PC,iC,I2,Z2,Hc,Hd,Xx,ee,CC,nM,Wc,gC,Zr,Nu,Tl,Vu,AC,_a,HS,$2,lF,Kx,CF,Ec,Fu,TF,tl,wu,AS,eD]]}),n})(),eN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Zr,Wc,Hd,RD,Hc,Tl,Vu,AC,nM]]}),n})(),tN=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cu),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Ft,Gi],pipes:[Ct],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function iN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let nN=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ei(null,[Oi.required]),this.passwordCtrl=new Ei(null,[Oi.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,iN,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[T.O5,Fs,Zn,es,is,Pn,Mo,cr,ya,Hs,Ft,Gi],pipes:[Ct],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})();function rN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function aN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function sN(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function oN(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function lN(n,a){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function cN(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function dN(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function uN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function hN(n,a){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function pN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",38),i.TgZ(1,"div",28),i.TgZ(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40),i.TgZ(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42),i.TgZ(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function fN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function mN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}const gN=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function _N(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1);return i.oxw(2).loadPublicationDetail(r,l)}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,gN))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function bN(n,a){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,mN,1,0,"mat-spinner",3),i.YNc(2,_N,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function yN(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function wN(n,a){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function CN(n,a){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,yN,1,1,"ng-template",44),i.YNc(2,wN,2,1,"ng-template",45),i.qZA())}function AN(n,a){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43),i.TgZ(2,"mat-tab"),i.YNc(3,fN,2,3,"ng-template",44),i.YNc(4,bN,3,2,"ng-template",45),i.qZA(),i.YNc(5,CN,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function vN(n,a){1&n&&(i.TgZ(0,"div",28),i.TgZ(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function TN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function xN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).redirect(["create-publication"])}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function MN(n,a){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,TN,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,xN,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function SN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function EN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function DN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function HN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,DN,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function kN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function PN(n,a){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,kN,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function RN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function LN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function IN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw().stepChanged(r)}),i.TgZ(1,"mat-step",7),i.YNc(2,aN,2,3,"ng-template",8),i.TgZ(3,"form",9),i.TgZ(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11),i.TgZ(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,sN,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){return i.CHM(e),i.MAs(22).open()}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16),i._UZ(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22);return i.oxw().chosenYearHandler(r,l)}),i.qZA(),i.YNc(23,oN,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field"),i.TgZ(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,lN,2,2,"mat-option",21),i.qZA(),i.YNc(28,cN,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field"),i.TgZ(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,dN,3,3,"mat-error",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(40,"div",25),i.TgZ(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(44,"mat-step",27),i.YNc(45,uN,2,3,"ng-template",8),i.TgZ(46,"form",28),i.TgZ(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,hN,5,3,"div",29),i.YNc(51,pN,16,12,"perun-web-apps-alert",30),i.YNc(52,AN,6,1,"mat-tab-group",14),i.YNc(53,vN,6,3,"div",29),i.qZA(),i.YNc(54,MN,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,SN,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,EN,1,0,"mat-spinner",3),i.YNc(61,HN,5,4,"div",14),i.YNc(62,PN,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,RN,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,LN,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,IN,1,0,"mat-spinner",3),i.TgZ(70,"div",25),i.TgZ(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.redirect(["all-publications",r.publication.id])}),i._uU(75),i.ALo(76,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const BN=Af,VN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let jN=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=o,this.storeService=s,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Ii(!0,[]),this.thanksSelection=new Ii(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!1],title:["",Oi.required],year:["",Oi.required],category:["",Oi.required],isbn:[""],doi:[""],cite:["",Oi.required]}),this.maxYear=BN(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){var e,t,r;this.innerLoading=!0;const l=null!==(e=this.publicationControl.get("title").value)&&void 0!==e?e:null,d=null!==(t=this.publicationControl.get("doi").value)&&void 0!==t?t:null,o=null!==(r=this.publicationControl.get("isbn").value)&&void 0!==r?r:null;this.cabinetService.findSimilarPublications(l,d,o).subscribe(s=>{this.similarPublications=s,this.filteredPublications=s,setTimeout(()=>{this.duplicateCheck=0===s.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(sx),i.Y36(li),i.Y36(fn),i.Y36(C),i.Y36(Ln),i.Y36(Li),i.Y36(hn),i.Y36(Mr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:vi,useClass:H_,deps:[To]},{provide:yr,useValue:VN}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,rN,1,0,"mat-spinner",3),i.YNc(8,ON,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,T.O5,mn,SE,xE,BC,Vw,Ew,Ls,$c,cr,u_,Zn,is,Pn,Mo,Hs,es,D_,Qx,gw,Jx,zc,T.sg,Sc,Ft,SL,Fc,Fs,XI,qE,VI,BI,wf,P_,EL,oD,lD],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function FN(n,a){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function NN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function YN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function UN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div"),i.TgZ(2,"mat-form-field",5),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){return i.CHM(e),i.oxw().selectPubSystem()}),i.YNc(7,FN,2,2,"mat-option",7),i.qZA(),i.qZA(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().searchPublications()}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.importPublications(r.selected.selected)}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().userAsAuthor=r}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.YNc(20,NN,3,3,"perun-web-apps-alert",12),i.YNc(21,YN,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function zN(n,a){1&n&&i._UZ(0,"mat-spinner",17)}function qN(n,a){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function GN(n,a){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function WN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index;return i.oxw(2).completePublication(l.id,d)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function ZN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(2).incompletePublication(r.id)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function $N(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22),i.TgZ(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).editPublication(l)}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,qN,3,3,"i",3),i.YNc(5,GN,2,0,"mat-icon",24),i.qZA(),i.qZA(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,WN,3,3,"button",20),i.YNc(9,ZN,3,3,"button",27),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function JN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).completeAllPublications()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function QN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).onSubmit()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function KN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,$N,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,JN,3,3,"button",20),i.qZA(),i.YNc(8,QN,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const OD=Af,XN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},eY=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:tN},{path:"service-access",component:nN},{path:"all-publications",component:QO},{path:"my-publications",component:tB},{path:"create-publication",component:iB},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,o){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ei,this.publications=[],this.selected=new Ii(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Ei(OD().subtract(1,"year")),this.endYear=new Ei(OD()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe(e=>{this.publications=e,this.loading=!1},()=>this.loading=!1)}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>this.loading=!1)}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Jn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(Ek,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(C),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:vi,useClass:H_,deps:[To]},{provide:yr,useValue:XN}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,UN,22,20,"div",3),i.YNc(8,zN,1,0,"mat-spinner",4),i.YNc(9,KN,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},directives:[Gi,T.O5,Zn,es,zc,cr,ya,T.sg,Sc,rD,Ft,$c,Sl,Fs,wf,mn,qR,fE,mE,zR,P_,qc],pipes:[Ct],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),n})()},{path:"create-publication/create",component:jN},{path:"authors",component:EB},{path:"authors/:authorId",component:kV},{path:"authors/:authorId/publication/:publicationId",component:P_},{path:"all-publications/:publicationId",component:P_},{path:"my-publications/:publicationId",component:P_},{path:"categories",component:dV},{path:"publication-systems",component:SV}];let tY=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Hd.forRoot(eY,{preloadingStrategy:Ci,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Hd]}),n})();const iY={provide:w.TP,useExisting:(0,i.Gpc)(()=>ES),multi:!0};function nY(n){return new dR(n,"./assets/i18n/",".json")}function rY(n){const a={basePath:n.get("api_url")};return new Ge(a)}const aY=n=>()=>n.loadConfigs();let sY=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(SS),i.LFG(Li))},n.\u0275mod=i.oAB({type:n,bootstrap:[cR]}),n.\u0275inj=i.cJS({providers:[SS,{provide:i.ip1,useFactory:aY,multi:!0,deps:[pR]},{provide:Ge,useFactory:rY,deps:[hn]},ES,iY,{provide:fR,useClass:KH},GO,{provide:Al.Hy,useFactory:()=>localStorage}],imports:[[Sa,Hc.forRoot({loader:{provide:Dc,useFactory:nY,deps:[w.eN]}}),Iy,eD,mR,Ku,w.JF,tY,nM,HS,eN,QE,AS,Al.zr.forRoot(),RD]]}),n})();(0,i.G48)(),Ma().bootstrapModule(sY).catch(n=>console.error(n))},1302:function(z,G,x){var T;!function(i,E){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(te,ce,ne,de,me){for(var Oe,Be,Ze,It,kt,Ke,en,xt,mt,fe,_e,we,ye;me>=64;){for(Oe=ce[0],Be=ce[1],Ze=ce[2],It=ce[3],kt=ce[4],Ke=ce[5],en=ce[6],xt=ce[7],fe=0;fe<16;fe++)te[fe]=(255&ne[_e=de+4*fe])<<24|(255&ne[_e+1])<<16|(255&ne[_e+2])<<8|255&ne[_e+3];for(fe=16;fe<64;fe++)te[fe]=((we=((mt=te[fe-2])>>>17|mt<<15)^(mt>>>19|mt<<13)^mt>>>10)+te[fe-7]|0)+((ye=((mt=te[fe-15])>>>7|mt<<25)^(mt>>>18|mt<<14)^mt>>>3)+te[fe-16]|0);for(fe=0;fe<64;fe++)we=(((kt>>>6|kt<<26)^(kt>>>11|kt<<21)^(kt>>>25|kt<<7))+(kt&Ke^~kt&en)|0)+(xt+(E[fe]+te[fe]|0)|0)|0,ye=((Oe>>>2|Oe<<30)^(Oe>>>13|Oe<<19)^(Oe>>>22|Oe<<10))+(Oe&Be^Oe&Ze^Be&Ze)|0,xt=en,en=Ke,Ke=kt,kt=It+we|0,It=Ze,Ze=Be,Be=Oe,Oe=we+ye|0;ce[0]+=Oe,ce[1]+=Be,ce[2]+=Ze,ce[3]+=It,ce[4]+=kt,ce[5]+=Ke,ce[6]+=en,ce[7]+=xt,de+=64,me-=64}return de}var S=function(){function te(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return te.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},te.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=M(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},te.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Oe=ne<<3,Be=ne%64<56?64:128;this.buffer[de]=128;for(var Ze=de+1;Ze>>24&255,this.buffer[Be-7]=me>>>16&255,this.buffer[Be-6]=me>>>8&255,this.buffer[Be-5]=me>>>0&255,this.buffer[Be-4]=Oe>>>24&255,this.buffer[Be-3]=Oe>>>16&255,this.buffer[Be-2]=Oe>>>8&255,this.buffer[Be-1]=Oe>>>0&255,M(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Ze=0;Ze<8;Ze++)ce[4*Ze+0]=this.state[Ze]>>>24&255,ce[4*Ze+1]=this.state[Ze]>>>16&255,ce[4*Ze+2]=this.state[Ze]>>>8&255,ce[4*Ze+3]=this.state[Ze]>>>0&255;return this},te.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},te.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(te),ne&&ce.update(ne),ce.update(de),ce.finish(te),de[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=V;var Y=new Uint8Array(i.digestLength);i.hkdf=function $(te,ce,ne,de){void 0===ce&&(ce=Y),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Oe=V(ce,te),Be=new P(Oe),Ze=new Uint8Array(Be.digestLength),It=Ze.length,kt=new Uint8Array(de),Ke=0;Ke>>24&255,Be[1]=en>>>16&255,Be[2]=en>>>8&255,Be[3]=en>>>0&255,me.reset(),me.update(ce),me.update(Be),me.finish(It);for(var xt=0;xt=$.status}function P(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent($)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,V=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!V?function(Y,$,X){var te=L.URL||L.webkitURL,ce=document.createElement("a");ce.download=$=$||Y.name||"download",ce.rel="noopener","string"==typeof Y?(ce.href=Y,ce.origin===location.origin?P(ce):S(ce.href)?M(Y,$,X):P(ce,ce.target="_blank")):(ce.href=te.createObjectURL(Y),setTimeout(function(){te.revokeObjectURL(ce.href)},4e4),setTimeout(function(){P(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,$,X){if($=$||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function E(Y,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,X),$);else if(S(Y))M(Y,$,X);else{var te=document.createElement("a");te.href=Y,te.target="_blank",setTimeout(function(){P(te)})}}:function(Y,$,X,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Y)return M(Y,$,X);var ce="application/octet-stream"===Y.type,ne=/constructor/i.test(L.HTMLElement)||L.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||V)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Ze=me.result;Ze=de?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Ze:location=Ze,te=null},me.readAsDataURL(Y)}else{var Oe=L.URL||L.webkitURL,Be=Oe.createObjectURL(Y);te?te.location=Be:location.href=Be,te=null,setTimeout(function(){Oe.revokeObjectURL(Be)},4e4)}});L.saveAs=U.saveAs=U,z.exports=U}.apply(G,[]))&&(z.exports=i)},7088:function(z,G,x){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(z,G,x){!function(T){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(L){return function(V,U,Y,$){var X=i(V),te=E[L][i(V)];return 2===X&&(te=te[U?0:1]),te.replace(/%d/i,V)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,V,U){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(z,G,x){!function(T){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%100>=11?4:5},M={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(V){return function(U,Y,$,X){var te=E(U),ce=M[V][E(U)];return 2===te&&(ce=ce[Y?0:1]),ce.replace(/%d/i,U)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(V){return"\u0645"===V},meridiem:function(V,U,Y){return V<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(U){return function(Y,$,X,te){var ce=M(Y),ne=S[U][M(Y)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,Y)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,Y,$){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(Y){return E[Y]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(Y){return i[Y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(z,G,x){!function(T){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,P){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(z,G,x){!function(T){"use strict";function E(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[L],+S)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(z,G,x){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(z,G,x){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(z,G,x){!function(T){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(z,G,x){!function(T){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function P(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function M(ne){return ne>9?M(ne%10):ne}var L=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],V=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:V,monthsShortRegex:V,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(M(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(z,G,x){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(z,G,x){!function(T){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(U){return U>1&&U<5&&1!=~~(U/10)}function L(U,Y,$,X){var te=U+" ";switch($){case"s":return Y||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return Y||X?te+(P(U)?"sekundy":"sekund"):te+"sekundami";case"m":return Y?"minuta":X?"minutu":"minutou";case"mm":return Y||X?te+(P(U)?"minuty":"minut"):te+"minutami";case"h":return Y?"hodina":X?"hodinu":"hodinou";case"hh":return Y||X?te+(P(U)?"hodiny":"hodin"):te+"hodinami";case"d":return Y||X?"den":"dnem";case"dd":return Y||X?te+(P(U)?"dny":"dn\xed"):te+"dny";case"M":return Y||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return Y||X?te+(P(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return Y||X?"rok":"rokem";case"yy":return Y||X?te+(P(U)?"roky":"let"):te+"lety"}}T.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(z,G,x){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(z,G,x){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(z,G,x){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(z,G,x){!function(T){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(z,G,x){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(M,S,P){return M>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(M,S){var P=this._calendarEl[M],L=S&&S.hours();return function i(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(P)&&(P=P.apply(S)),P.replace("{}",L%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(z,G,x){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(z,G,x){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(z,G,x){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(z,G,x){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(z,G,x){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(z,G,x){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(z,G,x){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(z,G,x){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(z,G,x){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,M,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?V[P][2]?V[P][2]:V[P][1]:L?V[P][0]:V[P][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(z,G,x){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(z,G,x){!function(T){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(z,G,x){!function(T){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,V,U,Y){var $="";switch(U){case"s":return Y?"muutaman sekunnin":"muutama sekunti";case"ss":$=Y?"sekunnin":"sekuntia";break;case"m":return Y?"minuutin":"minuutti";case"mm":$=Y?"minuutin":"minuuttia";break;case"h":return Y?"tunnin":"tunti";case"hh":$=Y?"tunnin":"tuntia";break;case"d":return Y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=Y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return Y?"kuukauden":"kuukausi";case"MM":$=Y?"kuukauden":"kuukautta";break;case"y":return Y?"vuoden":"vuosi";case"yy":$=Y?"vuoden":"vuotta"}return function S(L,V){return L<10?V?E[L]:i[L]:L}(L,Y)+" "+$}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(z,G,x){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(z,G,x){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(z,G,x){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(z,G,x){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(z,G,x){!function(T){"use strict";var M=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:M,monthsShortRegex:M,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(L,V){switch(V){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(z,G,x){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(z,G,x){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(z,G,x){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?V[P][0]:V[P][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?V[P][0]:V[P][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(z,G,x){!function(T){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(z,G,x){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,M,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:M,longMonthsParse:M,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(V){return E[V]})},postformat:function(L){return L.replace(/\d/g,function(V){return i[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,V){return 12===L&&(L=0),"\u0930\u093e\u0924"===V?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===V?L:"\u0926\u094b\u092a\u0939\u0930"===V?L>=10?L:L+12:"\u0936\u093e\u092e"===V?L+12:void 0},meridiem:function(L,V,U){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(z,G,x){!function(T){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,L,V,U){var Y=P;switch(V){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return Y+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return Y+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return Y+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return Y+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return Y+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return Y+(U||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,V){return P<12?!0===V?"de":"DE":!0===V?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(z,G,x){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(z,G,x){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"siang"===M?E>=11?E:E+12:"sore"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(z,G,x){!function(T){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,L,V){var U=S+" ";switch(L){case"s":return P||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(P||V?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(P||V?"m\xedn\xfatur":"m\xedn\xfatum"):P?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(P||V?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return P?"dagur":V?"dag":"degi";case"dd":return i(S)?P?U+"dagar":U+(V?"daga":"d\xf6gum"):P?U+"dagur":U+(V?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?U+"m\xe1nu\xf0ir":U+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?U+"m\xe1nu\xf0ur":U+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||V?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(P||V?"\xe1r":"\xe1rum"):U+(P||V?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(z,G,x){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(z,G,x){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(z,G,x){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,M){return"\u5143"===M[1]?1:parseInt(M[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,M,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,M){switch(M){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(z,G,x){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,M){return 12===E&&(E=0),"enjing"===M?E:"siyang"===M?E>=11?E:E+12:"sonten"===M||"ndalu"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(z,G,x){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(z,G,x){!function(T){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(z,G,x){!function(T){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(z,G,x){!function(T){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(z,G,x){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,M,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:M,monthsShort:M,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,V){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(z,G,x){!function(T){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(z,G,x){!function(T){"use strict";function i(L,V,U,Y){var $={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return V?$[U][0]:$[U][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var V=L%10;return S(0===V?L/10:V)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(z,G,x){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,M,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(z,G,x){!function(T){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function M(U,Y,$,X){return Y?P($)[0]:X?P($)[1]:P($)[2]}function S(U){return U%10==0||U>10&&U<20}function P(U){return i[U].split("_")}function L(U,Y,$,X){var te=U+" ";return 1===U?te+M(0,Y,$[0],X):Y?te+(S(U)?P($)[1]:P($)[0]):X?te+P($)[1]:te+(S(U)?P($)[1]:P($)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(U,Y,$,X){return Y?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(z,G,x){!function(T){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(V,U,Y){return Y?U%10==1&&U%100!=11?V[2]:V[3]:U%10==1&&U%100!=11?V[0]:V[1]}function M(V,U,Y){return V+" "+E(i[Y],V,U)}function S(V,U,Y){return E(i[Y],V,U)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(V,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(z,G,x){!function(T){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(z,G,x){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(z,G,x){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(z,G,x){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?E+12:E},meridiem:function(E,M,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(M){return"\u04ae\u0425"===M},meridiem:function(M,S,P){return M<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,V,U){var Y="";if(L)switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":Y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":Y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":Y="%d \u0924\u093e\u0938";break;case"d":Y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":Y="%d \u0926\u093f\u0935\u0938";break;case"M":Y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":Y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":Y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":Y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":Y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":Y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":Y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":Y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":Y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return Y.replace(/%d/i,P)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,V){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(z,G,x){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(z,G,x){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(z,G,x){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(z,G,x){!function(T){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(z,G,x){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(z,G,x){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(z,G,x){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(z,G,x){!function(T){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(z,G,x){!function(T){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function P(V,U,Y){var $=V+" ";switch(Y){case"ss":return $+(S(V)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return $+(S(V)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return $+(S(V)?"godziny":"godzin");case"ww":return $+(S(V)?"tygodnie":"tygodni");case"MM":return $+(S(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(V)?"lata":"lat")}}T.defineLocale("pl",{months:function(V,U){return V?/D MMMM/.test(U)?E[V.month()]:i[V.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(z,G,x){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(z,G,x){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(z,G,x){!function(T){"use strict";function i(M,S,P){var V=" ";return(M%100>=20||M>=100&&M%100==0)&&(V=" de "),M+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(z,G,x){!function(T){"use strict";function E(P,L,V){return"m"===V?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var V=P.split("_");return L%10==1&&L%100!=11?V[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?V[1]:V[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[V],+P)}var M=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,V){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(x(5439))},2525:function(z,G,x){!function(T){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(z,G,x){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(z,G,x){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,M,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(z,G,x){!function(T){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,V,U,Y){var $=L+" ";switch(U){case"s":return V||Y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||Y?$+(M(L)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return V?"min\xfata":Y?"min\xfatu":"min\xfatou";case"mm":return V||Y?$+(M(L)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return V?"hodina":Y?"hodinu":"hodinou";case"hh":return V||Y?$+(M(L)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return V||Y?"de\u0148":"d\u0148om";case"dd":return V||Y?$+(M(L)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return V||Y?"mesiac":"mesiacom";case"MM":return V||Y?$+(M(L)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return V||Y?"rok":"rokom";case"yy":return V||Y?$+(M(L)?"roky":"rokov"):$+"rokmi"}}T.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return V+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return V+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return V+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return V+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return V+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(z,G,x){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,M,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(z,G,x){!function(T){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+U}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(z,G,x){!function(T){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"jedna godina":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"godinu"===U?M+" godina":M+" "+U}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(z,G,x){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,M,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,M){return 12===E&&(E=0),"ekuseni"===M?E:"emini"===M?E>=11?E:E+12:"entsambama"===M||"ebusuku"===M?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(z,G,x){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(z,G,x){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(z,G,x){!function(T){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(z,G,x){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===M?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?E+12:void 0},meridiem:function(E,M,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(z,G,x){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(z,G,x){!function(T){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(z,G,x){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,M,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(z,G,x){!function(T){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(z,G,x){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(z,G,x){!function(T){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(V,U,Y,$){var X=function P(V){var U=Math.floor(V%1e3/100),Y=Math.floor(V%100/10),$=V%10,X="";return U>0&&(X+=i[U]+"vatlh"),Y>0&&(X+=(""!==X?" ":"")+i[Y]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(V);switch(Y){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==V.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function M(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?U.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(z,G,x){!function(T){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(M,S,P){return M<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(z,G,x){!function(T){"use strict";function E(M,S,P,L){var V={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?V[P][0]:V[P][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,P){return M>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(z,G,x){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(z,G,x){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(z,G,x){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(z,G,x){!function(T){"use strict";function E(L,V,U){return"m"===U?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,V){var U=L.split("_");return V%10==1&&V%100!=11?U[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?U[1]:U[2]}({ss:V?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:V?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[U],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function M(L,V){var U={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===L?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):L?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][L.day()]:U.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,V,U){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,V){switch(V){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(z,G,x){!function(T){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(z,G,x){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(z,G,x){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(z,G,x){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(z,G,x){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(z,G,x){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(z,G,x){(z=x.nmd(z)).exports=function(){"use strict";var T,de;function i(){return T.apply(null,arguments)}function M(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function P(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function L(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(P(C,H))return!1;return!0}function V(C){return void 0===C}function U(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function Y(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var F,I=[],J=C.length;for(F=0;F>>0;for(F=0;F0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-F.length)).toString().substr(1)+F}var tt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,On={},pi={};function $e(C,H,I,F){var J=F;"string"==typeof F&&(J=function(){return this[F]()}),C&&(pi[C]=J),H&&(pi[H[0]]=function(){return yi(J.apply(this,arguments),H[1],H[2])}),I&&(pi[I]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function ri(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function Cn(C,H){return C.isValid()?(H=Ni(H,C.localeData()),On[H]=On[H]||function xa(C){var I,F,H=C.match(tt);for(I=0,F=H.length;I=0&&ht.test(C);)C=C.replace(ht,F),ht.lastIndex=0,I-=1;return C}var Bi={};function Zt(C,H){var I=C.toLowerCase();Bi[I]=Bi[I+"s"]=Bi[H]=C}function ln(C){return"string"==typeof C?Bi[C]||Bi[C.toLowerCase()]:void 0}function Te(C){var I,F,H={};for(F in C)P(C,F)&&(I=ln(F))&&(H[I]=C[F]);return H}var le={};function oe(C,H){le[C]=H}function Se(C){return C%4==0&&C%100!=0||C%400==0}function Ve(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Ae(C){var H=+C,I=0;return 0!==H&&isFinite(H)&&(I=Ve(H)),I}function ze(C,H){return function(I){return null!=I?(Di(this,C,I),i.updateOffset(this,H),this):St(this,C)}}function St(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Di(C,H,I){C.isValid()&&!isNaN(I)&&("FullYear"===H&&Se(C.year())&&1===C.month()&&29===C.date()?(I=Ae(I),C._d["set"+(C._isUTC?"UTC":"")+H](I,C.month(),wi(I,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](I))}var w,Hi=/\d/,rt=/\d\d/,qe=/\d{3}/,An=/\d{4}/,Vt=/[+-]?\d{6}/,_t=/\d\d?/,Qn=/\d\d\d\d?/,Bn=/\d\d\d\d\d\d?/,vn=/\d{1,3}/,Yl=/\d{1,4}/,Ea=/[+-]?\d{1,6}/,ta=/\d+/,ia=/[+-]?\d+/,Vn=/Z|[+-]\d\d:?\d\d/gi,rs=/Z|[+-]\d\d(?::?\d\d)?/gi,zs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(C,H,I){w[C]=_e(H)?H:function(F,J){return F&&I?I:H}}function oi(C,H){return P(w,C)?w[C](H._strict,H._locale):new RegExp(function Zi(C){return Ge(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,F,J,ae){return I||F||J||ae}))}(C))}function Ge(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}w={};var Kn={};function gt(C,H){var I,J,F=H;for("string"==typeof C&&(C=[C]),U(H)&&(F=function(ae,be){be[H]=Ae(ae)}),J=C.length,I=0;I68?1900:2e3)};var _n=ze("FullYear",!0);function Lo(C,H,I,F,J,ae,be){var et;return C<100&&C>=0?(et=new Date(C+400,H,I,F,J,ae,be),isFinite(et.getFullYear())&&et.setFullYear(C)):et=new Date(C,H,I,F,J,ae,be),et}function Pa(C){var H,I;return C<100&&C>=0?((I=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function ra(C,H,I){var F=7+H-I;return-(7+Pa(C,0,F).getUTCDay()-H)%7+F-1}function Nn(C,H,I,F,J){var vt,Qt,et=1+7*(H-1)+(7+I-F)%7+ra(C,F,J);return et<=0?Qt=ka(vt=C-1)+et:et>ka(C)?(vt=C+1,Qt=et-ka(C)):(vt=C,Qt=et),{year:vt,dayOfYear:Qt}}function os(C,H,I){var ae,be,F=ra(C.year(),H,I),J=Math.floor((C.dayOfYear()-F-1)/7)+1;return J<1?ae=J+Sr(be=C.year()-1,H,I):J>Sr(C.year(),H,I)?(ae=J-Sr(C.year(),H,I),be=C.year()+1):(be=C.year(),ae=J),{week:ae,year:be}}function Sr(C,H,I){var F=ra(C,H,I),J=ra(C+1,H,I);return(ka(C)-F+J)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Zt("week","w"),Zt("isoWeek","W"),oe("week",5),oe("isoWeek",5),Re("w",_t),Re("ww",_t,rt),Re("W",_t),Re("WW",_t,rt),Vi(["w","ww","W","WW"],function(C,H,I,F){H[F.substr(0,1)]=Ae(C)});function At(C,H){return C.slice(H,7).concat(C.slice(0,H))}$e("d",0,"do","day"),$e("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),$e("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),$e("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Zt("day","d"),Zt("weekday","e"),Zt("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Re("d",_t),Re("e",_t),Re("E",_t),Re("dd",function(C,H){return H.weekdaysMinRegex(C)}),Re("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Re("dddd",function(C,H){return H.weekdaysRegex(C)}),Vi(["dd","ddd","dddd"],function(C,H,I,F){var J=I._locale.weekdaysParse(C,F,I._strict);null!=J?H.d=J:ne(I).invalidWeekday=C}),Vi(["d","e","E"],function(C,H,I,F){H[F]=Ae(C)});var aa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=zs,Ee=zs,td=zs;function id(C,H,I){var F,J,ae,be=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)ae=te([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(ae,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(ae,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(ae,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null}function rn(){function C(Ci,Br){return Br.length-Ci.length}var ae,be,et,vt,Qt,H=[],I=[],F=[],J=[];for(ae=0;ae<7;ae++)be=te([2e3,1]).day(ae),et=Ge(this.weekdaysMin(be,"")),vt=Ge(this.weekdaysShort(be,"")),Qt=Ge(this.weekdays(be,"")),H.push(et),I.push(vt),F.push(Qt),J.push(et),J.push(vt),J.push(Qt);H.sort(C),I.sort(C),F.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function jt(){return this.hours()%12||12}function Wt(C,H){$e(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Yn(C,H){return H._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,jt),$e("k",["kk",2],0,function ls(){return this.hours()||24}),$e("hmm",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)+yi(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+yi(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+yi(this.minutes(),2)+yi(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),Zt("hour","h"),oe("hour",13),Re("a",Yn),Re("A",Yn),Re("H",_t),Re("h",_t),Re("k",_t),Re("HH",_t,rt),Re("hh",_t,rt),Re("kk",_t,rt),Re("hmm",Qn),Re("hmmss",Bn),Re("Hmm",Qn),Re("Hmmss",Bn),gt(["H","HH"],3),gt(["k","kk"],function(C,H,I){var F=Ae(C);H[3]=24===F?0:F}),gt(["a","A"],function(C,H,I){I._isPm=I._locale.isPM(C),I._meridiem=C}),gt(["h","hh"],function(C,H,I){H[3]=Ae(C),ne(I).bigHour=!0}),gt("hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F)),ne(I).bigHour=!0}),gt("hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J)),ne(I).bigHour=!0}),gt("Hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F))}),gt("Hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J))});var Gl=ze("Hours",!0);var oa,Er={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:dr,monthsShort:ti,week:{dow:0,doy:6},weekdays:aa,weekdaysMin:dn,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ci={},sa={};function Wl(C,H){var I,F=Math.min(C.length,H.length);for(I=0;I0;){if(J=B(ae.slice(0,I).join("-")))return J;if(F&&F.length>=I&&Wl(ae,F)>=I-1)break;I--}H++}return oa}(C)}function ve(C){var H,I=C._a;return I&&-2===ne(C).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>wi(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var Qe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pi=/^\/?Date\((-?\d+)/i,di=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function la(C){var H,I,ae,be,et,vt,F=C._i,J=Qe.exec(F)||Xt.exec(F),Qt=yt.length,Ci=wt.length;if(J){for(ne(C).iso=!0,H=0,I=Qt;H7)&&(vt=!0)):(ae=C._locale._week.dow,be=C._locale._week.doy,Qt=os(ai(),ae,be),I=Js(H.gg,C._a[0],Qt.year),F=Js(H.w,Qt.week),null!=H.d?((J=H.d)<0||J>6)&&(vt=!0):null!=H.e?(J=H.e+ae,(H.e<0||H.e>6)&&(vt=!0)):J=ae),F<1||F>Sr(I,ae,be)?ne(C)._overflowWeeks=!0:null!=vt?ne(C)._overflowWeekday=!0:(et=Nn(I,F,J,ae,be),C._a[0]=et.year,C._dayOfYear=et.dayOfYear)}(C),null!=C._dayOfYear&&(be=Js(C._a[0],J[0]),(C._dayOfYear>ka(be)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),I=Pa(be,0,C._dayOfYear),C._a[1]=I.getUTCMonth(),C._a[2]=I.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=F[H]=J[H];for(;H<7;H++)C._a[H]=F[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Pa:Lo).apply(null,F),ae=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==ae&&(ne(C).weekdayMismatch=!0)}}function Zl(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var I,F,J,ae,be,Qt,Ci,H=""+C._i,et=H.length,vt=0;for(Ci=(J=Ni(C._f,C._locale).match(tt)||[]).length,I=0;I0&&ne(C).unusedInput.push(be),H=H.slice(H.indexOf(F)+F.length),vt+=F.length),pi[ae]?(F?ne(C).empty=!1:ne(C).unusedTokens.push(ae),li(ae,F,C)):C._strict&&!F&&ne(C).unusedTokens.push(ae);ne(C).charsLeftOver=et-vt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function gi(C,H,I){var F;return null==I?H:null!=C.meridiemHour?C.meridiemHour(H,I):(null!=C.isPM&&((F=C.isPM(I))&&H<12&&(H+=12),!F&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(Qt=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(Qt,C._a[0])),Me(C),ve(C)}else Oo(C);else la(C)}function $l(C){var H=C._i,I=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===I&&""===H?Oe({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Ke(H)?new kt(ve(H)):(Y(H)?C._d=H:M(I)?function nd(C){var H,I,F,J,ae,be,et=!1,vt=C._f.length;if(0===vt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Oe()});function bn(C,H){var I,F;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ai();for(I=H[0],F=1;F=0?new Date(C+400,H,I)-ws:new Date(C,H,I).valueOf()}function md(C,H,I){return C<100&&C>=0?Date.UTC(C+400,H,I)-ws:Date.UTC(C,H,I)}function oo(C,H){return H.erasAbbrRegex(C)}function fh(){var J,ae,C=[],H=[],I=[],F=[],be=this.eras();for(J=0,ae=be.length;J(ae=Sr(C,F,J))&&(H=ae),Nf.call(this,C,H,I,F,J))}function Nf(C,H,I,F,J){var ae=Nn(C,H,I,F,J),be=Pa(ae.year,0,ae.dayOfYear);return this.year(be.getUTCFullYear()),this.month(be.getUTCMonth()),this.date(be.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),Re("N",oo),Re("NN",oo),Re("NNN",oo),Re("NNNN",function F_(C,H){return H.erasNameRegex(C)}),Re("NNNNN",function Bf(C,H){return H.erasNarrowRegex(C)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,I,F){var J=I._locale.erasParse(C,F,I._strict);J?ne(I).era=J:ne(I).invalidEra=C}),Re("y",ta),Re("yy",ta),Re("yyy",ta),Re("yyyy",ta),Re("yo",function Vf(C,H){return H._eraYearOrdinalRegex||ta}),gt(["y","yy","yyy","yyyy"],0),gt(["yo"],function(C,H,I,F){var J;I._locale._eraYearOrdinalRegex&&(J=C.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),wd("gggg","weekYear"),wd("ggggg","weekYear"),wd("GGGG","isoWeekYear"),wd("GGGGG","isoWeekYear"),Zt("weekYear","gg"),Zt("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Re("G",ia),Re("g",ia),Re("GG",_t,rt),Re("gg",_t,rt),Re("GGGG",Yl,An),Re("gggg",Yl,An),Re("GGGGG",Ea,Vt),Re("ggggg",Ea,Vt),Vi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,I,F){H[F.substr(0,2)]=Ae(C)}),Vi(["gg","GG"],function(C,H,I,F){H[F]=i.parseTwoDigitYear(C)}),$e("Q",0,"Qo","quarter"),Zt("quarter","Q"),oe("quarter",7),Re("Q",Hi),gt("Q",function(C,H){H[1]=3*(Ae(C)-1)}),$e("D",["DD",2],"Do","date"),Zt("date","D"),oe("date",9),Re("D",_t),Re("DD",_t,rt),Re("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],2),gt("Do",function(C,H){H[2]=Ae(C.match(_t)[0])});var mr=ze("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Zt("dayOfYear","DDD"),oe("dayOfYear",4),Re("DDD",vn),Re("DDDD",qe),gt(["DDD","DDDD"],function(C,H,I){I._dayOfYear=Ae(C)}),$e("m",["mm",2],0,"minute"),Zt("minute","m"),oe("minute",14),Re("m",_t),Re("mm",_t,rt),gt(["m","mm"],4);var Wo=ze("Minutes",!1);$e("s",["ss",2],0,"second"),Zt("second","s"),oe("second",15),Re("s",_t),Re("ss",_t,rt),gt(["s","ss"],5);var qn,Cd,co=ze("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Zt("millisecond","ms"),oe("millisecond",16),Re("S",vn,Hi),Re("SS",vn,rt),Re("SSS",vn,qe),qn="SSSS";qn.length<=9;qn+="S")Re(qn,ta);function rc(C,H){H[6]=Ae(1e3*("0."+C))}for(qn="S";qn.length<=9;qn+="S")gt(qn,rc);Cd=ze("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var Pe=kt.prototype;function Cs(C){return C}Pe.add=ah,Pe.calendar=function eo(C,H){1===arguments.length&&(arguments[0]?Uo(arguments[0])?(C=arguments[0],H=void 0):fs(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var I=C||ai(),F=kr(I,this).startOf("day"),J=i.calendarFormat(this,F)||"sameElse",ae=H&&(_e(H[J])?H[J].call(this,I):H[J]);return this.format(ae||this.localeData().calendar(J,this,ai(I)))},Pe.clone=function oh(){return new kt(this)},Pe.diff=function ud(C,H,I){var F,J,ae;if(!this.isValid())return NaN;if(!(F=kr(C,this)).isValid())return NaN;switch(J=6e4*(F.utcOffset()-this.utcOffset()),H=ln(H)){case"year":ae=gs(this,F)/12;break;case"month":ae=gs(this,F);break;case"quarter":ae=gs(this,F)/3;break;case"second":ae=(this-F)/1e3;break;case"minute":ae=(this-F)/6e4;break;case"hour":ae=(this-F)/36e5;break;case"day":ae=(this-F-J)/864e5;break;case"week":ae=(this-F-J)/6048e5;break;default:ae=this-F}return I?ae:Ve(ae)},Pe.endOf=function qo(C){var H,I;if(void 0===(C=ln(C))||"millisecond"===C||!this.isValid())return this;switch(I=this._isUTC?md:fd,C){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ys-io(H+(this._isUTC?0:this.utcOffset()*ua),ys)-1;break;case"minute":H=this._d.valueOf(),H+=ua-io(H,ua)-1;break;case"second":H=this._d.valueOf(),H+=1e3-io(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Pe.format=function pd(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Cn(this,C);return this.localeData().postformat(H)},Pe.from=function Ba(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?tr({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.fromNow=function j_(C){return this.from(ai(),C)},Pe.to=function lh(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?tr({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.toNow=function ch(C){return this.to(ai(),C)},Pe.get=function Pt(C){return _e(this[C=ln(C)])?this[C]():this},Pe.invalidAt=function ic(){return ne(this).overflow},Pe.isAfter=function Lf(C,H){var I=Ke(C)?C:ai(C);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=ln(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?Cn(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Cn(I,"Z")):Cn(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pe.inspect=function Oa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,F,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+C+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+F+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pe.toJSON=function uh(){return this.isValid()?this.toISOString():null},Pe.toString=function _s(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pe.unix=function _d(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function If(){return this._d.valueOf()-6e4*(this._offset||0)},Pe.creationData=function Pr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pe.eraName=function so(){var C,H,I,F=this.localeData().eras();for(C=0,H=F.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pe.isLocal=function hi(){return!!this.isValid()&&!this._isUTC},Pe.isUtcOffset=function nh(){return!!this.isValid()&&this._isUTC},Pe.isUtc=Kl,Pe.isUTC=Kl,Pe.zoneAbbr=function Yf(){return this._isUTC?"UTC":""},Pe.zoneName=function N_(){return this._isUTC?"Coordinated Universal Time":""},Pe.dates=xt("dates accessor is deprecated. Use date instead.",mr),Pe.months=xt("months accessor is deprecated. Use month instead",Ha),Pe.years=xt("years accessor is deprecated. Use year instead",_n),Pe.zone=xt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function ih(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Pe.isDSTShifted=xt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function ca(){if(!V(this._isDSTShifted))return this._isDSTShifted;var H,C={};return It(C,this),(C=$l(C))._a?(H=C._isUTC?te(C._a):ai(C._a),this._isDSTShifted=this.isValid()&&function sd(C,H,I){var be,F=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),ae=0;for(be=0;be0):this._isDSTShifted=!1,this._isDSTShifted});var Yt=ke.prototype;function Zo(C,H,I,F){var J=re(),ae=te().set(F,H);return J[I](ae,C)}function vd(C,H,I){if(U(C)&&(H=C,C=void 0),C=C||"",null!=H)return Zo(C,H,I,"month");var F,J=[];for(F=0;F<12;F++)J[F]=Zo(C,F,I,"month");return J}function uo(C,H,I,F){"boolean"==typeof C?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=C,C=!1,U(H)&&(I=H,H=void 0),H=H||"");var be,J=re(),ae=C?J._week.dow:0,et=[];if(null!=I)return Zo(H,(I+ae)%7,F,"day");for(be=0;be<7;be++)et[be]=Zo(H,(be+ae)%7,F,"day");return et}Yt.calendar=function Gt(C,H,I){var F=this._calendar[C]||this._calendar.sameElse;return _e(F)?F.call(H,I):F},Yt.longDateFormat=function Ns(C){var H=this._longDateFormat[C],I=this._longDateFormat[C.toUpperCase()];return H||!I?H:(this._longDateFormat[C]=I.match(tt).map(function(F){return"MMMM"===F||"MM"===F||"DD"===F||"dddd"===F?F.slice(1):F}).join(""),this._longDateFormat[C])},Yt.invalidDate=function Us(){return this._invalidDate},Yt.ordinal=function Sa(C){return this._ordinal.replace("%d",C)},Yt.preparse=Cs,Yt.postformat=Cs,Yt.relativeTime=function pt(C,H,I,F){var J=this._relativeTime[I];return _e(J)?J(C,H,I,F):J.replace(/%d/i,C)},Yt.pastFuture=function Po(C,H){var I=this._relativeTime[C>0?"future":"past"];return _e(I)?I(H):I.replace(/%s/i,H)},Yt.set=function we(C){var H,I;for(I in C)P(C,I)&&(_e(H=C[I])?this[I]=H:this["_"+I]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yt.eras=function bd(C,H){var I,F,J,ae=this._eras||re("en")._eras;for(I=0,F=ae.length;I=0)return ae[F]},Yt.erasConvertYear=function ao(C,H){var I=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*I},Yt.erasAbbrRegex=function Of(C){return P(this,"_erasAbbrRegex")||fh.call(this),C?this._erasAbbrRegex:this._erasRegex},Yt.erasNameRegex=function nc(C){return P(this,"_erasNameRegex")||fh.call(this),C?this._erasNameRegex:this._erasRegex},Yt.erasNarrowRegex=function si(C){return P(this,"_erasNarrowRegex")||fh.call(this),C?this._erasNarrowRegex:this._erasRegex},Yt.months=function Ro(C,H){return C?M(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||na).test(H)?"format":"standalone"][C.month()]:M(this._months)?this._months:this._months.standalone},Yt.monthsShort=function Da(C,H){return C?M(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[na.test(H)?"format":"standalone"][C.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yt.monthsParse=function ss(C,H,I){var F,J,ae;if(this._monthsParseExact)return Ul.call(this,C,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),F=0;F<12;F++){if(J=te([2e3,F]),I&&!this._longMonthsParse[F]&&(this._longMonthsParse[F]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[F]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!I&&!this._monthsParse[F]&&(ae="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[F].test(C))return F;if(I&&"MMM"===H&&this._shortMonthsParse[F].test(C))return F;if(!I&&this._monthsParse[F].test(C))return F}},Yt.monthsRegex=function ii(C){return this._monthsParseExact?(P(this,"_monthsRegex")||zl.call(this),C?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=bt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Yt.monthsShortRegex=function jn(C){return this._monthsParseExact?(P(this,"_monthsRegex")||zl.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Mr),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Yt.week=function Tf(C){return os(C,this._week.dow,this._week.doy).week},Yt.firstDayOfYear=function Mf(){return this._week.doy},Yt.firstDayOfWeek=function xf(){return this._week.dow},Yt.weekdays=function $i(C,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?At(I,this._week.dow):C?I[C.day()]:I},Yt.weekdaysMin=function ki(C){return!0===C?At(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Yt.weekdaysShort=function Ra(C){return!0===C?At(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Yt.weekdaysParse=function Gs(C,H,I){var F,J,ae;if(this._weekdaysParseExact)return id.call(this,C,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(J=te([2e3,1]).day(F),I&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(ae="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[F].test(C))return F;if(I&&"ddd"===H&&this._shortWeekdaysParse[F].test(C))return F;if(I&&"dd"===H&&this._minWeekdaysParse[F].test(C))return F;if(!I&&this._weekdaysParse[F].test(C))return F}},Yt.weekdaysRegex=function er(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||rn.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Ne),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Yt.weekdaysShortRegex=function Ws(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||rn.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ee),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yt.weekdaysMinRegex=function dt(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||rn.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=td),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yt.isPM=function ql(C){return"p"===(C+"").toLowerCase().charAt(0)},Yt.meridiem=function Un(C,H,I){return C>11?I?"pm":"PM":I?"am":"AM"},W("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var H=C%10;return C+(1===Ae(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=xt("moment.lang is deprecated. Use moment.locale instead.",W),i.langData=xt("moment.langData is deprecated. Use moment.localeData instead.",re);var rr=Math.abs;function Lr(C,H,I,F){var J=tr(H,I);return C._milliseconds+=F*J._milliseconds,C._days+=F*J._days,C._months+=F*J._months,C._bubble()}function _h(C){return C<0?Math.floor(C):Math.ceil(C)}function bh(C){return 4800*C/146097}function oc(C){return 146097*C/4800}function Ir(C){return function(){return this.as(C)}}var yh=Ir("ms"),Ji=Ir("s"),wh=Ir("m"),Wf=Ir("h"),xd=Ir("d"),Jo=Ir("w"),Ch=Ir("M"),U_=Ir("Q"),Ah=Ir("y");function ha(C){return function(){return this.isValid()?this._data[C]:NaN}}var po=ha("milliseconds"),Zf=ha("seconds"),vh=ha("minutes"),Md=ha("hours"),Qo=ha("days"),Th=ha("months"),Sd=ha("years");var Mn=Math.round,Or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ed(C,H,I,F,J){return J.relativeTime(H||1,!!I,C,F)}var Dd=Math.abs;function vs(C){return(C>0)-(C<0)||+C}function lc(){if(!this.isValid())return this.localeData().invalidDate();var F,J,ae,be,vt,Qt,Ci,Br,C=Dd(this._milliseconds)/1e3,H=Dd(this._days),I=Dd(this._months),et=this.asSeconds();return et?(F=Ve(C/60),J=Ve(F/60),C%=60,F%=60,ae=Ve(I/12),I%=12,be=C?C.toFixed(3).replace(/\.?0+$/,""):"",vt=et<0?"-":"",Qt=vs(this._months)!==vs(et)?"-":"",Ci=vs(this._days)!==vs(et)?"-":"",Br=vs(this._milliseconds)!==vs(et)?"-":"",vt+"P"+(ae?Qt+ae+"Y":"")+(I?Qt+I+"M":"")+(H?Ci+H+"D":"")+(J||F||C?"T":"")+(J?Br+J+"H":"")+(F?Br+F+"M":"")+(C?Br+be+"S":"")):"P0D"}var Ot=jo.prototype;return Ot.isValid=function ad(){return this._isValid},Ot.abs=function Y_(){var C=this._data;return this._milliseconds=rr(this._milliseconds),this._days=rr(this._days),this._months=rr(this._months),C.milliseconds=rr(C.milliseconds),C.seconds=rr(C.seconds),C.minutes=rr(C.minutes),C.hours=rr(C.hours),C.months=rr(C.months),C.years=rr(C.years),this},Ot.add=function Td(C,H){return Lr(this,C,H,1)},Ot.subtract=function sc(C,H){return Lr(this,C,H,-1)},Ot.as=function Gf(C){if(!this.isValid())return NaN;var H,I,F=this._milliseconds;if("month"===(C=ln(C))||"quarter"===C||"year"===C)switch(H=this._days+F/864e5,I=this._months+bh(H),C){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(oc(this._months)),C){case"week":return H/7+F/6048e5;case"day":return H+F/864e5;case"hour":return 24*H+F/36e5;case"minute":return 1440*H+F/6e4;case"second":return 86400*H+F/1e3;case"millisecond":return Math.floor(864e5*H)+F;default:throw new Error("Unknown unit "+C)}},Ot.asMilliseconds=yh,Ot.asSeconds=Ji,Ot.asMinutes=wh,Ot.asHours=Wf,Ot.asDays=xd,Ot.asWeeks=Jo,Ot.asMonths=Ch,Ot.asQuarters=U_,Ot.asYears=Ah,Ot.valueOf=function $o(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ae(this._months/12):NaN},Ot._bubble=function qf(){var J,ae,be,et,vt,C=this._milliseconds,H=this._days,I=this._months,F=this._data;return C>=0&&H>=0&&I>=0||C<=0&&H<=0&&I<=0||(C+=864e5*_h(oc(I)+H),H=0,I=0),F.milliseconds=C%1e3,J=Ve(C/1e3),F.seconds=J%60,ae=Ve(J/60),F.minutes=ae%60,be=Ve(ae/60),F.hours=be%24,H+=Ve(be/24),I+=vt=Ve(bh(H)),H-=_h(oc(vt)),et=Ve(I/12),I%=12,F.days=H,F.months=I,F.years=et,this},Ot.clone=function ho(){return tr(this)},Ot.get=function Fa(C){return C=ln(C),this.isValid()?this[C+"s"]():NaN},Ot.milliseconds=po,Ot.seconds=Zf,Ot.minutes=vh,Ot.hours=Md,Ot.days=Qo,Ot.weeks=function $f(){return Ve(this.days()/7)},Ot.months=Th,Ot.years=Sd,Ot.humanize=function z_(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,ae,I=!1,F=Or;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(I=C),"object"==typeof H&&(F=Object.assign({},Or,H),null!=H.s&&null==H.ss&&(F.ss=H.s-1)),ae=function Jf(C,H,I,F){var J=tr(C).abs(),ae=Mn(J.as("s")),be=Mn(J.as("m")),et=Mn(J.as("h")),vt=Mn(J.as("d")),Qt=Mn(J.as("M")),Ci=Mn(J.as("w")),Br=Mn(J.as("y")),Vr=ae<=I.ss&&["s",ae]||ae0,Vr[4]=F,Ed.apply(null,Vr)}(this,!I,F,J=this.localeData()),I&&(ae=J.pastFuture(+this,ae)),J.postformat(ae)},Ot.toISOString=lc,Ot.toString=lc,Ot.toJSON=lc,Ot.locale=zo,Ot.localeData=Va,Ot.toIsoString=xt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lc),Ot.lang=to,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),Re("x",ia),Re("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(C,H,I){I._d=new Date(1e3*parseFloat(C))}),gt("x",function(C,H,I){I._d=new Date(Ae(C))}),i.version="2.29.2",function E(C){T=C}(ai),i.fn=Pe,i.min=function ui(){return bn("isBefore",[].slice.call(arguments,0))},i.max=function pr(){return bn("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=te,i.unix=function Gn(C){return ai(1e3*C)},i.months=function Uf(C,H){return vd(C,H,"months")},i.isDate=Y,i.locale=W,i.invalid=Oe,i.duration=tr,i.isMoment=Ke,i.weekdays=function ac(C,H,I){return uo(C,H,I,"weekdays")},i.parseZone=function Ad(){return ai.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Ks,i.monthsShort=function zf(C,H){return vd(C,H,"monthsShort")},i.weekdaysMin=function As(C,H,I){return uo(C,H,I,"weekdaysMin")},i.defineLocale=O,i.updateLocale=function Q(C,H){if(null!=H){var I,F,J=Er;null!=ci[C]&&null!=ci[C].parentLocale?ci[C].set(ye(ci[C]._config,H)):(null!=(F=B(C))&&(J=F._config),H=ye(J,H),null==F&&(H.abbr=C),(I=new ke(H)).parentLocale=ci[C],ci[C]=I),W(C)}else null!=ci[C]&&(null!=ci[C].parentLocale?(ci[C]=ci[C].parentLocale,C===W()&&W(C)):null!=ci[C]&&delete ci[C]);return ci[C]},i.locales=function he(){return ge(ci)},i.weekdaysShort=function gh(C,H,I){return uo(C,H,I,"weekdaysShort")},i.normalizeUnits=ln,i.relativeTimeRounding=function xh(C){return void 0===C?Mn:"function"==typeof C&&(Mn=C,!0)},i.relativeTimeThreshold=function Qf(C,H){return void 0!==Or[C]&&(void 0===H?Or[C]:(Or[C]=H,"s"===C&&(Or.ss=H-1),!0))},i.calendarFormat=function fr(C,H){var I=C.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Pe,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},1869:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);class i extends T.L{constructor(M,S,P){super(),this.parent=M,this.outerValue=S,this.outerIndex=P,this.index=0}_next(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}_error(M){this.parent.notifyError(M,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,G,x)=>{"use strict";x.d(G,{P:()=>S});var T=x(8896),i=x(1086),E=x(1737);class S{constructor(L,V,U){this.kind=L,this.value=V,this.error=U,this.hasValue="N"===L}observe(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}do(L,V,U){switch(this.kind){case"N":return L&&L(this.value);case"E":return V&&V(this.error);case"C":return U&&U()}}accept(L,V,U){return L&&"function"==typeof L.next?this.observe(L):this.do(L,V,U)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(L){return void 0!==L?new S("N",L):S.undefinedValueNotification}static createError(L){return new S("E",void 0,L)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(z,G,x)=>{"use strict";x.d(G,{y:()=>$});var T=x(3489),E=x(7668),M=x(3292),P=x(3821),L=x(5379);var Y=x(2830);let $=(()=>{class te{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new te;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Oe}=this,Be=function S(te,ce,ne){if(te){if(te instanceof T.L)return te;if(te[E.b])return te[E.b]()}return te||ce||ne?new T.L(te,ce,ne):new T.L(M.c)}(ne,de,me);if(Be.add(Oe?Oe.call(Be,this.source):this.source||Y.v.useDeprecatedSynchronousErrorHandling&&!Be.syncErrorThrowable?this._subscribe(Be):this._trySubscribe(Be)),Y.v.useDeprecatedSynchronousErrorHandling&&Be.syncErrorThrowable&&(Be.syncErrorThrowable=!1,Be.syncErrorThrown))throw Be.syncErrorValue;return Be}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){Y.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(te){for(;te;){const{closed:ce,destination:ne,isStopped:de}=te;if(ce||de)return!1;te=ne&&ne instanceof T.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Oe)=>{let Be;Be=this.subscribe(Ze=>{try{ne(Ze)}catch(It){Oe(It),Be&&Be.unsubscribe()}},Oe,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[P.L](){return this}pipe(...ne){return 0===ne.length?this:function U(te){return 0===te.length?L.y:1===te.length?te[0]:function(ne){return te.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Oe;this.subscribe(Be=>Oe=Be,Be=>me(Be),()=>de(Oe))})}}return te.create=ce=>new te(ce),te})();function X(te){if(te||(te=Y.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},3292:(z,G,x)=>{"use strict";x.d(G,{c:()=>E});var T=x(2830),i=x(2782);const E={closed:!0,next(M){},error(M){if(T.v.useDeprecatedSynchronousErrorHandling)throw M;(0,i.z)(M)},complete(){}}},826:(z,G,x)=>{"use strict";x.d(G,{L:()=>i});var T=x(3489);class i extends T.L{notifyNext(M,S,P,L,V){this.destination.next(S)}notifyError(M,S){this.destination.error(M)}notifyComplete(M){this.destination.complete()}}},8929:(z,G,x)=>{"use strict";x.d(G,{Yc:()=>L,xQ:()=>V});var T=x(2916),i=x(3489),E=x(2654),M=x(5279),S=x(5283),P=x(7668);class L extends i.L{constructor($){super($),this.destination=$}}let V=(()=>{class Y extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[P.b](){return new L(this)}lift(X){const te=new U(this,this);return te.operator=X,te}next(X){if(this.closed)throw new M.N;if(!this.isStopped){const{observers:te}=this,ce=te.length,ne=te.slice();for(let de=0;denew U($,X),Y})();class U extends V{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});var T=x(2654);class i extends T.w{constructor(M,S){super(),this.subject=M,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const M=this.subject,S=M.observers;if(this.subject=null,!S||0===S.length||M.isStopped||M.closed)return;const P=S.indexOf(this.subscriber);-1!==P&&S.splice(P,1)}}},3489:(z,G,x)=>{"use strict";x.d(G,{L:()=>L});var T=x(7043),i=x(3292),E=x(2654),M=x(7668),S=x(2830),P=x(2782);class L extends E.w{constructor(Y,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!Y){this.destination=i.c;break}if("object"==typeof Y){Y instanceof L?(this.syncErrorThrowable=Y.syncErrorThrowable,this.destination=Y,Y.add(this)):(this.syncErrorThrowable=!0,this.destination=new V(this,Y));break}default:this.syncErrorThrowable=!0,this.destination=new V(this,Y,$,X)}}[M.b](){return this}static create(Y,$,X){const te=new L(Y,$,X);return te.syncErrorThrowable=!1,te}next(Y){this.isStopped||this._next(Y)}error(Y){this.isStopped||(this.isStopped=!0,this._error(Y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Y){this.destination.next(Y)}_error(Y){this.destination.error(Y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Y,this}}class V extends L{constructor(Y,$,X,te){super(),this._parentSubscriber=Y;let ce,ne=this;(0,T.m)($)?ce=$:$&&(ce=$.next,X=$.error,te=$.complete,$!==i.c&&(ne=Object.create($),(0,T.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=te}next(Y){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,Y)&&this.unsubscribe():this.__tryOrUnsub(this._next,Y)}}error(Y){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,Y),this.unsubscribe()):(this.__tryOrUnsub(this._error,Y),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=Y,$.syncErrorThrown=!0):(0,P.z)(Y),this.unsubscribe();else{if(this.unsubscribe(),X)throw Y;(0,P.z)(Y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Y}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Y,$){try{Y.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,P.z)(X)}}__tryOrSetError(Y,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(te){return S.v.useDeprecatedSynchronousErrorHandling?(Y.syncErrorValue=te,Y.syncErrorThrown=!0,!0):((0,P.z)(te),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Y}=this;this._context=null,this._parentSubscriber=null,Y.unsubscribe()}}},2654:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(6688),i=x(7830),E=x(7043);const S=(()=>{function V(U){return Error.call(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((Y,$)=>`${$+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U,this}return V.prototype=Object.create(Error.prototype),V})();class P{constructor(U){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,U&&(this._unsubscribe=U)}unsubscribe(){let U;if(this.closed)return;let{_parentOrParents:Y,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Y instanceof P)Y.remove(this);else if(null!==Y)for(let te=0;teU.concat(Y instanceof S?Y.errors:Y),[])}P.EMPTY=((V=new P).closed=!0,V)},2830:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const M=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+M.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=E},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,G,x)=>{"use strict";x.d(G,{c:()=>S,N:()=>P});var T=x(8929),i=x(2916),E=x(2654),M=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new L(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,M.x)()(this)}}const P=(()=>{const Y=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}}})();class L extends T.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(z,G,x)=>{"use strict";x.d(G,{aj:()=>L});var T=x(2866),i=x(6688),E=x(826),M=x(9054),S=x(3009);const P={};function L(...Y){let $=null,X=null;return(0,T.K)(Y[Y.length-1])&&(X=Y.pop()),"function"==typeof Y[Y.length-1]&&($=Y.pop()),1===Y.length&&(0,i.k)(Y[0])&&(Y=Y[0]),(0,S.n)(Y,X).lift(new V($))}class V{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new U($,this.resultSelector))}}class U extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(P),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let te=0;te{"use strict";x.d(G,{E:()=>i,c:()=>E});var T=x(2916);const i=new T.y(S=>S.complete());function E(S){return S?function M(S){return new T.y(P=>S.schedule(()=>P.complete()))}(S):i}},5254:(z,G,x)=>{"use strict";x.d(G,{D:()=>ne});var T=x(2916),i=x(9249),E=x(2654),M=x(3821),L=x(6454),V=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function Y(de){return de&&"function"==typeof de[M.L]}(de))return function S(de,me){return new T.y(Oe=>{const Be=new E.w;return Be.add(me.schedule(()=>{const Ze=de[M.L]();Be.add(Ze.subscribe({next(It){Be.add(me.schedule(()=>Oe.next(It)))},error(It){Be.add(me.schedule(()=>Oe.error(It)))},complete(){Be.add(me.schedule(()=>Oe.complete()))}}))})),Be})}(de,me);if((0,$.t)(de))return function P(de,me){return new T.y(Oe=>{const Be=new E.w;return Be.add(me.schedule(()=>de.then(Ze=>{Be.add(me.schedule(()=>{Oe.next(Ze),Be.add(me.schedule(()=>Oe.complete()))}))},Ze=>{Be.add(me.schedule(()=>Oe.error(Ze)))}))),Be})}(de,me);if((0,X.z)(de))return(0,L.r)(de,me);if(function te(de){return de&&"function"==typeof de[V.hZ]}(de)||"string"==typeof de)return function U(de,me){if(!de)throw new Error("Iterable cannot be null");return new T.y(Oe=>{const Be=new E.w;let Ze;return Be.add(()=>{Ze&&"function"==typeof Ze.return&&Ze.return()}),Be.add(me.schedule(()=>{Ze=de[V.hZ](),Be.add(me.schedule(function(){if(Oe.closed)return;let It,kt;try{const Ke=Ze.next();It=Ke.value,kt=Ke.done}catch(Ke){return void Oe.error(Ke)}kt?Oe.complete():(Oe.next(It),this.schedule())}))})),Be})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof T.y?de:new T.y((0,i.s)(de))}},3009:(z,G,x)=>{"use strict";x.d(G,{n:()=>M});var T=x(2916),i=x(3650),E=x(6454);function M(S,P){return P?(0,E.r)(S,P):new T.y((0,i.V)(S))}},6787:(z,G,x)=>{"use strict";x.d(G,{T:()=>S});var T=x(2916),i=x(2866),E=x(9146),M=x(3009);function S(...P){let L=Number.POSITIVE_INFINITY,V=null,U=P[P.length-1];return(0,i.K)(U)?(V=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(L=P.pop())):"number"==typeof U&&(L=P.pop()),null===V&&1===P.length&&P[0]instanceof T.y?P[0]:(0,E.J)(L)((0,M.n)(P,V))}},1086:(z,G,x)=>{"use strict";x.d(G,{of:()=>M});var T=x(2866),i=x(3009),E=x(6454);function M(...S){let P=S[S.length-1];return(0,T.K)(P)?(S.pop(),(0,E.r)(S,P)):(0,i.n)(S)}},1946:(z,G,x)=>{"use strict";x.d(G,{S3:()=>S});var T=x(6688),i=x(3009),E=x(826),M=x(9054);function S(...V){if(1===V.length){if(!(0,T.k)(V[0]))return V[0];V=V[0]}return(0,i.n)(V,void 0).lift(new P)}class P{call(U,Y){return Y.subscribe(new L(U))}}class L extends E.L{constructor(U){super(U),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(U){this.observables.push(U)}_complete(){const U=this.observables,Y=U.length;if(0===Y)this.destination.complete();else{for(let $=0;${"use strict";x.d(G,{_:()=>i});var T=x(2916);function i(M,S){return new T.y(S?P=>S.schedule(E,0,{error:M,subscriber:P}):P=>P.error(M))}function E({error:M,subscriber:S}){S.error(M)}},7221:(z,G,x)=>{"use strict";x.d(G,{K:()=>M});var T=x(826),i=x(1869),E=x(9054);function M(L){return function(U){const Y=new S(L),$=U.lift(Y);return Y.caught=$}}class S{constructor(V){this.selector=V}call(V,U){return U.subscribe(new P(V,this.selector,this.caught))}}class P extends T.L{constructor(V,U,Y){super(V),this.selector=U,this.caught=Y}error(V){if(!this.isStopped){let U;try{U=this.selector(V,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const Y=new i.d(this,void 0,void 0);this.add(Y);const $=(0,E.D)(this,U,void 0,void 0,Y);$!==Y&&this.add($)}}}},1406:(z,G,x)=>{"use strict";x.d(G,{b:()=>i});var T=x(1709);function i(E,M){return(0,T.zg)(E,M,1)}},13:(z,G,x)=>{"use strict";x.d(G,{b:()=>E});var T=x(3489),i=x(353);function E(L,V=i.P){return U=>U.lift(new M(L,V))}class M{constructor(V,U){this.dueTime=V,this.scheduler=U}call(V,U){return U.subscribe(new S(V,this.dueTime,this.scheduler))}}class S extends T.L{constructor(V,U,Y){super(V),this.dueTime=U,this.scheduler=Y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(V){this.clearDebounce(),this.lastValue=V,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:V}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(V)}}clearDebounce(){const V=this.debouncedSubscription;null!==V&&(this.remove(V),V.unsubscribe(),this.debouncedSubscription=null)}}function P(L){L.debouncedNext()}},7314:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);function i(S=null){return P=>P.lift(new E(S))}class E{constructor(P){this.defaultValue=P}call(P,L){return L.subscribe(new M(P,this.defaultValue))}}class M extends T.L{constructor(P,L){super(P),this.defaultValue=L,this.isEmpty=!0}_next(P){this.isEmpty=!1,this.destination.next(P)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,G,x)=>{"use strict";x.d(G,{g:()=>S});var T=x(353),i=x(2697),E=x(3489),M=x(9312);function S(U,Y=T.P){const X=(0,i.J)(U)?+U-Y.now():Math.abs(U);return te=>te.lift(new P(X,Y))}class P{constructor(Y,$){this.delay=Y,this.scheduler=$}call(Y,$){return $.subscribe(new L(Y,this.delay,this.scheduler))}}class L extends E.L{constructor(Y,$,X){super(Y),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Y){const $=Y.source,X=$.queue,te=Y.scheduler,ce=Y.destination;for(;X.length>0&&X[0].time-te.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-te.now());this.schedule(Y,ne)}else this.unsubscribe(),$.active=!1}_schedule(Y){this.active=!0,this.destination.add(Y.schedule(L.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Y}))}scheduleNotification(Y){if(!0===this.errored)return;const $=this.scheduler,X=new V($.now()+this.delay,Y);this.queue.push(X),!1===this.active&&this._schedule($)}_next(Y){this.scheduleNotification(M.P.createNext(Y))}_error(Y){this.errored=!0,this.queue=[],this.destination.error(Y),this.unsubscribe()}_complete(){this.scheduleNotification(M.P.createComplete()),this.unsubscribe()}}class V{constructor(Y,$){this.time=Y,this.notification=$}}},2198:(z,G,x)=>{"use strict";x.d(G,{h:()=>i});var T=x(3489);function i(S,P){return function(V){return V.lift(new E(S,P))}}class E{constructor(P,L){this.predicate=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.predicate,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.predicate=L,this.thisArg=V,this.count=0}_next(P){let L;try{L=this.predicate.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}L&&this.destination.next(P)}}},7224:(z,G,x)=>{"use strict";x.d(G,{P:()=>L});var T=x(4450),i=x(2198),E=x(2986),M=x(7314),S=x(4907),P=x(5379);function L(V,U){const Y=arguments.length>=2;return $=>$.pipe(V?(0,i.h)((X,te)=>V(X,te,$)):P.y,(0,E.q)(1),Y?(0,M.d)(U):(0,S.T)(()=>new T.K))}},4850:(z,G,x)=>{"use strict";x.d(G,{U:()=>i});var T=x(3489);function i(S,P){return function(V){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return V.lift(new E(S,P))}}class E{constructor(P,L){this.project=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.project,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.project=L,this.count=0,this.thisArg=V||this}_next(P){let L;try{L=this.project.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}this.destination.next(L)}}},9146:(z,G,x)=>{"use strict";x.d(G,{J:()=>E});var T=x(1709),i=x(5379);function E(M=Number.POSITIVE_INFINITY){return(0,T.zg)(i.y,M)}},1709:(z,G,x)=>{"use strict";x.d(G,{zg:()=>P});var T=x(9054),i=x(826),E=x(1869),M=x(4850),S=x(5254);function P(U,Y,$=Number.POSITIVE_INFINITY){return"function"==typeof Y?X=>X.pipe(P((te,ce)=>(0,S.D)(U(te,ce)).pipe((0,M.U)((ne,de)=>Y(te,ne,ce,de))),$)):("number"==typeof Y&&($=Y),X=>X.lift(new L(U,$)))}class L{constructor(Y,$=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=$}call(Y,$){return $.subscribe(new V(Y,this.project,this.concurrent))}}class V extends i.L{constructor(Y,$,X=Number.POSITIVE_INFINITY){super(Y),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,G,x)=>{"use strict";x.d(G,{x:()=>i});var T=x(3489);function i(){return function(P){return P.lift(new E(P))}}class E{constructor(P){this.connectable=P}call(P,L){const{connectable:V}=this;V._refCount++;const U=new M(P,V),Y=L.subscribe(U);return U.closed||(U.connection=V.connect()),Y}}class M extends T.L{constructor(P,L){super(P),this.connectable=L}_unsubscribe(){const{connectable:P}=this;if(!P)return void(this.connection=null);this.connectable=null;const L=P._refCount;if(L<=0)return void(this.connection=null);if(P._refCount=L-1,L>1)return void(this.connection=null);const{connection:V}=this,U=P._connection;this.connection=null,U&&(!V||U===V)&&U.unsubscribe()}}},2474:(z,G,x)=>{"use strict";x.d(G,{B:()=>L});var T=x(1762);class E{constructor(U,Y){this.subjectFactory=U,this.selector=Y}call(U,Y){const{selector:$}=this,X=this.subjectFactory(),te=$(X).subscribe(U);return te.add(Y.subscribe(X)),te}}var M=x(4327),S=x(8929);function P(){return new S.xQ}function L(){return V=>(0,M.x)()(function i(V,U){return function($){let X;if(X="function"==typeof V?V:function(){return V},"function"==typeof U)return $.lift(new E(X,U));const te=Object.create($,T.N);return te.source=$,te.subjectFactory=X,te}}(P)(V))}},7545:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(826),i=x(1869),E=x(9054),M=x(4850),S=x(5254);function P(U,Y){return"function"==typeof Y?$=>$.pipe(P((X,te)=>(0,S.D)(U(X,te)).pipe((0,M.U)((ce,ne)=>Y(X,ce,te,ne))))):$=>$.lift(new L(U))}class L{constructor(Y){this.project=Y}call(Y,$){return $.subscribe(new V(Y,this.project))}}class V extends T.L{constructor(Y,$){super(Y),this.project=$,this.index=0}_next(Y){let $;const X=this.index++;try{$=this.project(Y,X)}catch(te){return void this.destination.error(te)}this._innerSub($,Y,X)}_innerSub(Y,$,X){const te=this.innerSubscription;te&&te.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,Y,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:Y}=this;(!Y||Y.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(Y){this.destination.remove(Y),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(Y,$,X,te,ce){this.destination.next($)}}},2986:(z,G,x)=>{"use strict";x.d(G,{q:()=>M});var T=x(3489),i=x(4231),E=x(8896);function M(L){return V=>0===L?(0,E.c)():V.lift(new S(L))}class S{constructor(V){if(this.total=V,this.total<0)throw new i.W}call(V,U){return U.subscribe(new P(V,this.total))}}class P extends T.L{constructor(V,U){super(V),this.total=U,this.count=0}_next(V){const U=this.total,Y=++this.count;Y<=U&&(this.destination.next(V),Y===U&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,G,x)=>{"use strict";x.d(G,{b:()=>M});var T=x(3489);function i(){}var E=x(7043);function M(L,V,U){return function($){return $.lift(new S(L,V,U))}}class S{constructor(V,U,Y){this.nextOrObserver=V,this.error=U,this.complete=Y}call(V,U){return U.subscribe(new P(V,this.nextOrObserver,this.error,this.complete))}}class P extends T.L{constructor(V,U,Y,$){super(V),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=Y||i,this._tapComplete=$||i,(0,E.m)(U)?(this._context=this,this._tapNext=U):U&&(this._context=U,this._tapNext=U.next||i,this._tapError=U.error||i,this._tapComplete=U.complete||i)}_next(V){try{this._tapNext.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.next(V)}_error(V){try{this._tapError.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.error(V)}_complete(){try{this._tapComplete.call(this._context)}catch(V){return void this.destination.error(V)}return this.destination.complete()}}},4907:(z,G,x)=>{"use strict";x.d(G,{T:()=>E});var T=x(4450),i=x(3489);function E(L=P){return V=>V.lift(new M(L))}class M{constructor(V){this.errorFactory=V}call(V,U){return U.subscribe(new S(V,this.errorFactory))}}class S extends i.L{constructor(V,U){super(V),this.errorFactory=U,this.hasValue=!1}_next(V){this.hasValue=!0,this.destination.next(V)}_complete(){if(this.hasValue)return this.destination.complete();{let V;try{V=this.errorFactory()}catch(U){V=U}this.destination.error(V)}}}function P(){return new T.K}},6227:(z,G,x)=>{"use strict";x.d(G,{V:()=>$});var T=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var M=x(2697),S=x(826),P=x(9054);class V{constructor(te,ce,ne,de){this.waitFor=te,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(te,ce){return ce.subscribe(new U(te,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class U extends S.L{constructor(te,ce,ne,de,me){super(te),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(te){const{withObservable:ce}=te;te._unsubscribeAndRecycle(),te.add((0,P.D)(te,ce))}scheduleTimeout(){const{action:te}=this;te?this.action=te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(U.dispatchTimeout,this.waitFor,this))}_next(te){this.absoluteTimeout||this.scheduleTimeout(),super._next(te)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var Y=x(1737);function $(X,te=T.P){return function L(X,te,ce=T.P){return ne=>{let de=(0,M.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new V(me,de,te,ce))}}(X,(0,Y._)(new E),te)}},6454:(z,G,x)=>{"use strict";x.d(G,{r:()=>E});var T=x(2916),i=x(2654);function E(M,S){return new T.y(P=>{const L=new i.w;let V=0;return L.add(S.schedule(function(){V!==M.length?(P.next(M[V++]),P.closed||L.add(this.schedule())):P.complete()})),L})}},6686:(z,G,x)=>{"use strict";x.d(G,{o:()=>E});var T=x(2654);class i extends T.w{constructor(S,P){super()}schedule(S,P=0){return this}}class E extends i{constructor(S,P){super(S,P),this.scheduler=S,this.work=P,this.pending=!1}schedule(S,P=0){if(this.closed)return this;this.state=S;const L=this.id,V=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(V,L,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(V,this.id,P),this}requestAsyncId(S,P,L=0){return setInterval(S.flush.bind(S,this),L)}recycleAsyncId(S,P,L=0){if(null!==L&&this.delay===L&&!1===this.pending)return P;clearInterval(P)}execute(S,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const L=this._execute(S,P);if(L)return L;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,P){let V,L=!1;try{this.work(S)}catch(U){L=!0,V=!!U&&U||new Error(U)}if(L)return this.unsubscribe(),V}_unsubscribe(){const S=this.id,P=this.scheduler,L=P.actions,V=L.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==V&&L.splice(V,1),null!=S&&(this.id=this.recycleAsyncId(P,S,null)),this.delay=null}}},2268:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=(()=>{class E{constructor(S,P=E.now){this.SchedulerAction=S,this.now=P}schedule(S,P=0,L){return new this.SchedulerAction(this,S).schedule(L,P)}}return E.now=()=>Date.now(),E})();class i extends T{constructor(M,S=T.now){super(M,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(M,S=0,P){return i.delegate&&i.delegate!==this?i.delegate.schedule(M,S,P):super.schedule(M,S,P)}flush(M){const{actions:S}=this;if(this.active)return void S.push(M);let P;this.active=!0;do{if(P=M.execute(M.state,M.delay))break}while(M=S.shift());if(this.active=!1,P){for(;M=S.shift();)M.unsubscribe();throw P}}}},353:(z,G,x)=>{"use strict";x.d(G,{P:()=>E});var T=x(6686);const E=new(x(2268).v)(T.o)},5430:(z,G,x)=>{"use strict";x.d(G,{hZ:()=>i});const i=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,G,x)=>{"use strict";x.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,G,x)=>{"use strict";x.d(G,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(z,G,x)=>{"use strict";x.d(G,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(z,G,x)=>{"use strict";x.d(G,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(z,G,x)=>{"use strict";function T(i){setTimeout(()=>{throw i},0)}x.d(G,{z:()=>T})},5379:(z,G,x)=>{"use strict";function T(i){return i}x.d(G,{y:()=>T})},6688:(z,G,x)=>{"use strict";x.d(G,{k:()=>T});const T=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(z,G,x)=>{"use strict";x.d(G,{z:()=>T});const T=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(z,G,x)=>{"use strict";function T(i){return i instanceof Date&&!isNaN(+i)}x.d(G,{J:()=>T})},7043:(z,G,x)=>{"use strict";function T(i){return"function"==typeof i}x.d(G,{m:()=>T})},7830:(z,G,x)=>{"use strict";function T(i){return null!==i&&"object"==typeof i}x.d(G,{K:()=>T})},8955:(z,G,x)=>{"use strict";function T(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(G,{t:()=>T})},2866:(z,G,x)=>{"use strict";function T(i){return i&&"function"==typeof i.schedule}x.d(G,{K:()=>T})},9249:(z,G,x)=>{"use strict";x.d(G,{s:()=>$});var T=x(3650),i=x(2782),M=x(5430),P=x(3821),V=x(8515),U=x(8955),Y=x(7830);const $=X=>{if(X&&"function"==typeof X[P.L])return(X=>te=>{const ce=X[P.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(te)})(X);if((0,V.z)(X))return(0,T.V)(X);if((0,U.t)(X))return(X=>te=>(X.then(ce=>{te.closed||(te.next(ce),te.complete())},ce=>te.error(ce)).then(null,i.z),te))(X);if(X&&"function"==typeof X[M.hZ])return(X=>te=>{const ce=X[M.hZ]();for(;;){const ne=ce.next();if(ne.done){te.complete();break}if(te.next(ne.value),te.closed)break}return"function"==typeof ce.return&&te.add(()=>{ce.return&&ce.return()}),te})(X);{const ce=`You provided ${(0,Y.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(z,G,x)=>{"use strict";x.d(G,{V:()=>T});const T=i=>E=>{for(let M=0,S=i.length;M{"use strict";x.d(G,{D:()=>M});var T=x(1869),i=x(9249),E=x(2916);function M(S,P,L,V,U=new T.d(S,L,V)){if(!U.closed)return P instanceof E.y?P.subscribe(U):(0,i.s)(P)(U)}},6700:(z,G,x)=>{var T={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":3165,"./hy-am.js":3165,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":4486,"./th.js":4486,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(M){var S=E(M);return x(S)}function E(M){if(!x.o(T,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return T[M]}i.keys=function(){return Object.keys(T)},i.resolve=E,z.exports=i,i.id=6700},655:(z,G,x)=>{"use strict";function V(fe,_e,we,ye){return new(we||(we=Promise))(function(ge,Mt){function Gt(ht){try{tt(ye.next(ht))}catch(On){Mt(On)}}function yi(ht){try{tt(ye.throw(ht))}catch(On){Mt(On)}}function tt(ht){ht.done?ge(ht.value):function ke(ge){return ge instanceof we?ge:new we(function(Mt){Mt(ge)})}(ht.value).then(Gt,yi)}tt((ye=ye.apply(fe,_e||[])).next())})}x.d(G,{mG:()=>V})},9808:(z,G,x)=>{"use strict";x.d(G,{mr:()=>Be,Ov:()=>Qu,ez:()=>jt,K0:()=>L,uU:()=>Ne,Do:()=>It,V_:()=>Y,Ye:()=>kt,S$:()=>me,mk:()=>Da,sg:()=>nn,O5:()=>jn,PC:()=>os,RF:()=>_n,n9:()=>Fn,ED:()=>Lo,tP:()=>Sr,b0:()=>Ze,lw:()=>V,EM:()=>sa,JF:()=>fi,p6:()=>St,NF:()=>xn,w_:()=>P,bD:()=>ls,q:()=>E,Mx:()=>Ro,HT:()=>S});var T=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class P{}const L=new T.OlP("DocumentToken");let V=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function U(){return(0,T.LFG)($)}()},providedIn:"platform"}),B})();const Y=new T.OlP("Location Initialized");let $=(()=>{class B extends V{constructor(O){super(),this._doc=O,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",O,!1),()=>Q.removeEventListener("popstate",O)}onHashChange(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",O,!1),()=>Q.removeEventListener("hashchange",O)}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(O){this.location.pathname=O}pushState(O,Q,re){X()?this._history.pushState(O,Q,re):this.location.hash=re}replaceState(O,Q,re){X()?this._history.replaceState(O,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(L))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function te(){return new $((0,T.LFG)(L))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,W){if(0==B.length)return W;if(0==W.length)return B;let O=0;return B.endsWith("/")&&O++,W.startsWith("/")&&O++,2==O?B+W.substring(1):1==O?B+W:B+"/"+W}function ne(B){const W=B.match(/#|\?|$/),O=W&&W.index||B.length;return B.slice(0,O-("/"===B[O-1]?1:0))+B.slice(O)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Oe(B){const W=(0,T.LFG)(L).location;return new Ze((0,T.LFG)(V),W&&W.origin||"")}()},providedIn:"root"}),B})();const Be=new T.OlP("appBaseHref");let Ze=(()=>{class B extends me{constructor(O,Q){if(super(),this._platformLocation=O,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return ce(this._baseHref,O)}path(O=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&O?`${Q}${re}`:Q}pushState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),It=(()=>{class B extends me{constructor(O,Q){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(O){const Q=ce(this._baseHref,O);return Q.length>0?"#"+Q:Q}pushState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),kt=(()=>{class B{constructor(O,Q){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=O;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(xt(re)),this._platformStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}path(O=!1){return this.normalize(this._platformStrategy.path(O))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(O,Q=""){return this.path()==this.normalize(O+de(Q))}normalize(O){return B.stripTrailingSlash(function en(B,W){return B&&W.startsWith(B)?W.substring(B.length):W}(this._baseHref,xt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._platformStrategy.prepareExternalUrl(O)}go(O,Q="",re=null){this._platformStrategy.pushState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}replaceState(O,Q="",re=null){this._platformStrategy.replaceState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,O)}onUrlChange(O){this._urlChangeListeners.push(O),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(O="",Q){this._urlChangeListeners.forEach(re=>re(O,Q))}subscribe(O,Q,re){return this._subject.subscribe({next:O,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(O){return new(O||B)(T.LFG(me),T.LFG(V))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ke(){return new kt((0,T.LFG)(me),(0,T.LFG)(V))}()},providedIn:"root"}),B})();function xt(B){return B.replace(/\/index.html$/,"")}var _e=(()=>((_e=_e||{})[_e.Zero=0]="Zero",_e[_e.One=1]="One",_e[_e.Two=2]="Two",_e[_e.Few=3]="Few",_e[_e.Many=4]="Many",_e[_e.Other=5]="Other",_e))(),we=(()=>((we=we||{})[we.Format=0]="Format",we[we.Standalone=1]="Standalone",we))(),ye=(()=>((ye=ye||{})[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short",ye))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function ri(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateFormat],W)}function xa(B,W){return Bi((0,T.cg1)(B)[T.wAp.TimeFormat],W)}function Cn(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateTimeFormat],W)}function Ni(B,W){const O=(0,T.cg1)(B),Q=O[T.wAp.NumberSymbols][W];if(void 0===Q){if(W===ge.CurrencyDecimal)return O[T.wAp.NumberSymbols][ge.Decimal];if(W===ge.CurrencyGroup)return O[T.wAp.NumberSymbols][ge.Group]}return Q}const ea=T.kL8;function Sa(B){if(!B[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bi(B,W){for(let O=W;O>-1;O--)if(void 0!==B[O])return B[O];throw new Error("Locale data API: locale data undefined")}function Zt(B){const[W,O]=B.split(":");return{hours:+W,minutes:+O}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},Se=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),Ae=(()=>((Ae=Ae||{})[Ae.FullYear=0]="FullYear",Ae[Ae.Month=1]="Month",Ae[Ae.Date=2]="Date",Ae[Ae.Hours=3]="Hours",Ae[Ae.Minutes=4]="Minutes",Ae[Ae.Seconds=5]="Seconds",Ae[Ae.FractionalSeconds=6]="FractionalSeconds",Ae[Ae.Day=7]="Day",Ae))(),ze=(()=>((ze=ze||{})[ze.DayPeriods=0]="DayPeriods",ze[ze.Days=1]="Days",ze[ze.Months=2]="Months",ze[ze.Eras=3]="Eras",ze))();function St(B,W,O,Q){let re=function Re(B){if(Zi(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,he=1,ve=1]=B.split("-").map(Qe=>+Qe);return Di(re,he-1,ve)}const O=parseFloat(B);if(!isNaN(B-O))return new Date(O);let Q;if(Q=B.match(oe))return function oi(B){const W=new Date(0);let O=0,Q=0;const re=B[8]?W.setUTCFullYear:W.setFullYear,he=B[8]?W.setUTCHours:W.setHours;B[9]&&(O=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(W,Number(B[1]),Number(B[2])-1,Number(B[3]));const ve=Number(B[4]||0)-O,Qe=Number(B[5]||0)-Q,Xt=Number(B[6]||0),Rt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return he.call(W,ve,Qe,Xt,Rt),W}(Q)}const W=new Date(B);if(!Zi(W))throw new Error(`Unable to convert "${B}" into a date`);return W}(B);W=Pt(O,W)||W;let Qe,ve=[];for(;W;){if(Qe=Se.exec(W),!Qe){ve.push(W);break}{ve=ve.concat(Qe.slice(1));const yt=ve.pop();if(!yt)break;W=yt}}let Xt=re.getTimezoneOffset();Q&&(Xt=as(Q,Xt),re=function w(B,W,O){const Q=O?-1:1,re=B.getTimezoneOffset();return function zs(B,W){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+W),B}(B,Q*(as(W,re)-re))}(re,Q,!0));let Rt="";return ve.forEach(yt=>{const wt=function rs(B){if(Vn[B])return Vn[B];let W;switch(B){case"G":case"GG":case"GGG":W=Vt(ze.Eras,ye.Abbreviated);break;case"GGGG":W=Vt(ze.Eras,ye.Wide);break;case"GGGGG":W=Vt(ze.Eras,ye.Narrow);break;case"y":W=qe(Ae.FullYear,1,0,!1,!0);break;case"yy":W=qe(Ae.FullYear,2,0,!0,!0);break;case"yyy":W=qe(Ae.FullYear,3,0,!1,!0);break;case"yyyy":W=qe(Ae.FullYear,4,0,!1,!0);break;case"Y":W=ia(1);break;case"YY":W=ia(2,!0);break;case"YYY":W=ia(3);break;case"YYYY":W=ia(4);break;case"M":case"L":W=qe(Ae.Month,1,1);break;case"MM":case"LL":W=qe(Ae.Month,2,1);break;case"MMM":W=Vt(ze.Months,ye.Abbreviated);break;case"MMMM":W=Vt(ze.Months,ye.Wide);break;case"MMMMM":W=Vt(ze.Months,ye.Narrow);break;case"LLL":W=Vt(ze.Months,ye.Abbreviated,we.Standalone);break;case"LLLL":W=Vt(ze.Months,ye.Wide,we.Standalone);break;case"LLLLL":W=Vt(ze.Months,ye.Narrow,we.Standalone);break;case"w":W=ta(1);break;case"ww":W=ta(2);break;case"W":W=ta(1,!0);break;case"d":W=qe(Ae.Date,1);break;case"dd":W=qe(Ae.Date,2);break;case"c":case"cc":W=qe(Ae.Day,1);break;case"ccc":W=Vt(ze.Days,ye.Abbreviated,we.Standalone);break;case"cccc":W=Vt(ze.Days,ye.Wide,we.Standalone);break;case"ccccc":W=Vt(ze.Days,ye.Narrow,we.Standalone);break;case"cccccc":W=Vt(ze.Days,ye.Short,we.Standalone);break;case"E":case"EE":case"EEE":W=Vt(ze.Days,ye.Abbreviated);break;case"EEEE":W=Vt(ze.Days,ye.Wide);break;case"EEEEE":W=Vt(ze.Days,ye.Narrow);break;case"EEEEEE":W=Vt(ze.Days,ye.Short);break;case"a":case"aa":case"aaa":W=Vt(ze.DayPeriods,ye.Abbreviated);break;case"aaaa":W=Vt(ze.DayPeriods,ye.Wide);break;case"aaaaa":W=Vt(ze.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Standalone,!0);break;case"bbbb":W=Vt(ze.DayPeriods,ye.Wide,we.Standalone,!0);break;case"bbbbb":W=Vt(ze.DayPeriods,ye.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Format,!0);break;case"BBBB":W=Vt(ze.DayPeriods,ye.Wide,we.Format,!0);break;case"BBBBB":W=Vt(ze.DayPeriods,ye.Narrow,we.Format,!0);break;case"h":W=qe(Ae.Hours,1,-12);break;case"hh":W=qe(Ae.Hours,2,-12);break;case"H":W=qe(Ae.Hours,1);break;case"HH":W=qe(Ae.Hours,2);break;case"m":W=qe(Ae.Minutes,1);break;case"mm":W=qe(Ae.Minutes,2);break;case"s":W=qe(Ae.Seconds,1);break;case"ss":W=qe(Ae.Seconds,2);break;case"S":W=qe(Ae.FractionalSeconds,1);break;case"SS":W=qe(Ae.FractionalSeconds,2);break;case"SSS":W=qe(Ae.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":W=Qn(Ve.Short);break;case"ZZZZZ":W=Qn(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":W=Qn(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":W=Qn(Ve.Long);break;default:return null}return Vn[B]=W,W}(yt);Rt+=wt?wt(re,O,Xt):"''"===yt?"'":yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Rt}function Di(B,W,O){const Q=new Date(0);return Q.setFullYear(B,W,O),Q.setHours(0,0,0),Q}function Pt(B,W){const O=function Gt(B){return(0,T.cg1)(B)[T.wAp.LocaleId]}(B);if(De[O]=De[O]||{},De[O][W])return De[O][W];let Q="";switch(W){case"shortDate":Q=ri(B,ke.Short);break;case"mediumDate":Q=ri(B,ke.Medium);break;case"longDate":Q=ri(B,ke.Long);break;case"fullDate":Q=ri(B,ke.Full);break;case"shortTime":Q=xa(B,ke.Short);break;case"mediumTime":Q=xa(B,ke.Medium);break;case"longTime":Q=xa(B,ke.Long);break;case"fullTime":Q=xa(B,ke.Full);break;case"short":const re=Pt(B,"shortTime"),he=Pt(B,"shortDate");Q=xr(Cn(B,ke.Short),[re,he]);break;case"medium":const ve=Pt(B,"mediumTime"),Qe=Pt(B,"mediumDate");Q=xr(Cn(B,ke.Medium),[ve,Qe]);break;case"long":const Xt=Pt(B,"longTime"),Rt=Pt(B,"longDate");Q=xr(Cn(B,ke.Long),[Xt,Rt]);break;case"full":const yt=Pt(B,"fullTime"),wt=Pt(B,"fullDate");Q=xr(Cn(B,ke.Full),[yt,wt])}return Q&&(De[O][W]=Q),Q}function xr(B,W){return W&&(B=B.replace(/\{([^}]+)}/g,function(O,Q){return null!=W&&Q in W?W[Q]:O})),B}function Hi(B,W,O="-",Q,re){let he="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,he=O));let ve=String(B);for(;ve.length0||Qe>-O)&&(Qe+=O),B===Ae.Hours)0===Qe&&-12===O&&(Qe=12);else if(B===Ae.FractionalSeconds)return function rt(B,W){return Hi(B,3).substr(0,W)}(Qe,W);const Xt=Ni(ve,ge.MinusSign);return Hi(Qe,W,Xt,Q,re)}}function Vt(B,W,O=we.Format,Q=!1){return function(re,he){return function _t(B,W,O,Q,re,he){switch(O){case ze.Months:return function ht(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.MonthsFormat],Q[T.wAp.MonthsStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getMonth()];case ze.Days:return function tt(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.DaysFormat],Q[T.wAp.DaysStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getDay()];case ze.DayPeriods:const ve=B.getHours(),Qe=B.getMinutes();if(he){const Rt=function ed(B){const W=(0,T.cg1)(B);return Sa(W),(W[T.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Zt(Q):[Zt(Q[0]),Zt(Q[1])])}(W),yt=function pt(B,W,O){const Q=(0,T.cg1)(B);Sa(Q);const he=Bi([Q[T.wAp.ExtraData][0],Q[T.wAp.ExtraData][1]],W)||[];return Bi(he,O)||[]}(W,re,Q),wt=Rt.findIndex(Pi=>{if(Array.isArray(Pi)){const[di,mi]=Pi,la=ve>=di.hours&&Qe>=di.minutes,hr=ve0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Ve.Short:return(re>=0?"+":"")+Hi(ve,2,he)+Hi(Math.abs(re%60),2,he);case Ve.ShortGMT:return"GMT"+(re>=0?"+":"")+Hi(ve,1,he);case Ve.Long:return"GMT"+(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);case Ve.Extended:return 0===Q?"Z":(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);default:throw new Error(`Unknown zone width "${B}"`)}}}function Ea(B){return Di(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function ta(B,W=!1){return function(O,Q){let re;if(W){const he=new Date(O.getFullYear(),O.getMonth(),1).getDay()-1,ve=O.getDate();re=1+Math.floor((ve+he)/7)}else{const he=Ea(O),ve=function Yl(B){const W=Di(B,0,1).getDay();return Di(B,0,1+(W<=4?4:11)-W)}(he.getFullYear()),Qe=he.getTime()-ve.getTime();re=1+Math.round(Qe/6048e5)}return Hi(re,B,Ni(Q,ge.MinusSign))}}function ia(B,W=!1){return function(O,Q){return Hi(Ea(O).getFullYear(),B,Ni(Q,ge.MinusSign),W)}}const Vn={};function as(B,W){B=B.replace(/:/g,"");const O=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(O)?W:O}function Zi(B){return B instanceof Date&&!isNaN(B.valueOf())}class ti{}let Mr=(()=>{class B extends ti{constructor(O){super(),this.locale=O}getPluralCategory(O,Q){switch(ea(Q||this.locale)(O)){case _e.Zero:return"zero";case _e.One:return"one";case _e.Two:return"two";case _e.Few:return"few";case _e.Many:return"many";default:return"other"}}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(T.soG))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})();function Ro(B,W){W=encodeURIComponent(W);for(const O of B.split(";")){const Q=O.indexOf("="),[re,he]=-1==Q?[O,""]:[O.slice(0,Q),O.slice(Q+1)];if(re.trim()===W)return decodeURIComponent(he)}return null}let Da=(()=>{class B{constructor(O,Q,re,he){this._iterableDiffers=O,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=he,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(O){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof O?O.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(O){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof O?O.split(/\s+/):O,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const O=this._iterableDiffer.diff(this._rawClass);O&&this._applyIterableChanges(O)}else if(this._keyValueDiffer){const O=this._keyValueDiffer.diff(this._rawClass);O&&this._applyKeyValueChanges(O)}}_applyKeyValueChanges(O){O.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(O){O.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),O.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!!O[Q])))}_removeClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(O,Q){(O=O.trim())&&O.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class ss{constructor(W,O,Q,re){this.$implicit=W,this.ngForOf=O,this.index=Q,this.count=re}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 nn=(()=>{class B{constructor(O,Q,re){this._viewContainer=O,this._template=Q,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const Q=this._viewContainer;O.forEachOperation((re,he,ve)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new ss(re.item,this._ngForOf,-1,-1),null===ve?void 0:ve);else if(null==ve)Q.remove(null===he?void 0:he);else if(null!==he){const Qe=Q.get(he);Q.move(Qe,ve),Ha(Qe,re)}});for(let re=0,he=Q.length;re{Ha(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ha(B,W){B.context.$implicit=W.item}let jn=(()=>{class B{constructor(O,Q){this._viewContainer=O,this._context=new ii,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){zl("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){zl("ngIfElse",O),this._elseTemplateRef=O,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(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class ii{constructor(){this.$implicit=null,this.ngIf=null}}function zl(B,W){if(W&&!W.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,T.AaK)(W)}'.`)}class ka{constructor(W,O){this._viewContainerRef=W,this._templateRef=O,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 _n=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(O){this._ngSwitch=O,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(O){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(O)}_matchCase(O){const Q=O==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(O){if(this._defaultViews&&O!==this._defaultUsed){this._defaultUsed=O;for(let Q=0;Q{class B{constructor(O,Q,re){this.ngSwitch=re,re._addCase(),this._view=new ka(O,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Lo=(()=>{class B{constructor(O,Q,re){re._addDefault(new ka(O,Q))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),os=(()=>{class B{constructor(O,Q,re){this._ngEl=O,this._differs=Q,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(O){this._ngStyle=O,!this._differ&&O&&(this._differ=this._differs.find(O).create())}ngDoCheck(){if(this._differ){const O=this._differ.diff(this._ngStyle);O&&this._applyChanges(O)}}_setStyle(O,Q){const[re,he]=O.split(".");null!=(Q=null!=Q&&he?`${Q}${he}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(O){O.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),O.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})(),Sr=(()=>{class B{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(O){if(O.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&O.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[T.TTD]}),B})();function Xn(B,W){return new T.vHH(2100,"")}class xf{createSubscription(W,O){return W.subscribe({next:O,error:Q=>{throw Q}})}dispose(W){W.unsubscribe()}onDestroy(W){W.unsubscribe()}}class Mf{createSubscription(W,O){return W.then(O,Q=>{throw Q})}dispose(W){}onDestroy(W){}}const Sf=new Mf,Ef=new xf;let Qu=(()=>{class B{constructor(O){this._ref=O,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(O){return this._obj?O!==this._obj?(this._dispose(),this.transform(O)):this._latestValue:(O&&this._subscribe(O),this._latestValue)}_subscribe(O){this._obj=O,this._strategy=this._selectStrategy(O),this._subscription=this._strategy.createSubscription(O,Q=>this._updateLatestValue(O,Q))}_selectStrategy(O){if((0,T.QGY)(O))return Sf;if((0,T.F4k)(O))return Ef;throw Xn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(O,Q){O===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.sBO,16))},B.\u0275pipe=T.Yjl({name:"async",type:B,pure:!1}),B})();const dn=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ne=(()=>{class B{constructor(O,Q){this.locale=O,this.defaultTimezone=Q}transform(O,Q="mediumDate",re,he){var ve;if(null==O||""===O||O!=O)return null;try{return St(O,Q,he||this.locale,null!==(ve=null!=re?re:this.defaultTimezone)&&void 0!==ve?ve:void 0)}catch(Qe){throw Xn()}}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.soG,16),T.Y36(dn,24))},B.\u0275pipe=T.Yjl({name:"date",type:B,pure:!0}),B})(),jt=(()=>{class B{}return B.\u0275fac=function(O){return new(O||B)},B.\u0275mod=T.oAB({type:B}),B.\u0275inj=T.cJS({providers:[{provide:ti,useClass:Mr}]}),B})();const ls="browser";function xn(B){return B===ls}let sa=(()=>{class B{}return B.\u0275prov=(0,T.Yz7)({token:B,providedIn:"root",factory:()=>new oa((0,T.LFG)(L),window)}),B})();class oa{constructor(W,O){this.document=W,this.window=O,this.offset=()=>[0,0]}setOffset(W){this.offset=Array.isArray(W)?()=>W:W}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(W){this.supportsScrolling()&&this.window.scrollTo(W[0],W[1])}scrollToAnchor(W){if(!this.supportsScrolling())return;const O=function Zs(B,W){const O=B.getElementById(W)||B.getElementsByName(W)[0];if(O)return O;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const he=re.shadowRoot;if(he){const ve=he.getElementById(W)||he.querySelector(`[name="${W}"]`);if(ve)return ve}re=Q.nextNode()}}return null}(this.document,W);O&&(this.scrollToElement(O),O.focus())}setHistoryScrollRestoration(W){if(this.supportScrollRestoration()){const O=this.window.history;O&&O.scrollRestoration&&(O.scrollRestoration=W)}}scrollToElement(W){const O=W.getBoundingClientRect(),Q=O.left+this.window.pageXOffset,re=O.top+this.window.pageYOffset,he=this.offset();this.window.scrollTo(Q-he[0],re-he[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const W=Wl(this.window.history)||Wl(Object.getPrototypeOf(this.window.history));return!(!W||!W.writable&&!W.set)}catch(W){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(W){return!1}}}function Wl(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class fi{}},520:(z,G,x)=>{"use strict";x.d(G,{TP:()=>Gt,eN:()=>ge,JF:()=>Bi,qT:()=>Be,WM:()=>Y,LE:()=>me,Zn:()=>we});var T=x(9808),i=x(5e3),E=x(1086),M=x(2916),S=x(1406),P=x(2198),L=x(4850);class V{}class U{}class Y{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(oe=>{const De=oe.indexOf(":");if(De>0){const Se=oe.slice(0,De),Ve=Se.toLowerCase(),Ae=oe.slice(De+1).trim();this.maybeSetNormalizedName(Se,Ve),this.headers.has(Ve)?this.headers.get(Ve).push(Ae):this.headers.set(Ve,[Ae])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(oe=>{let De=le[oe];const Se=oe.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(Se,De),this.maybeSetNormalizedName(oe,Se))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const oe=this.headers.get(le.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,oe){return this.clone({name:le,value:oe,op:"a"})}set(le,oe){return this.clone({name:le,value:oe,op:"s"})}delete(le,oe){return this.clone({name:le,value:oe,op:"d"})}maybeSetNormalizedName(le,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,le)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(oe=>{this.headers.set(oe,le.headers.get(oe)),this.normalizedNames.set(oe,le.normalizedNames.get(oe))})}clone(le){const oe=new Y;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),oe}applyUpdate(le){const oe=le.name.toLowerCase();switch(le.op){case"a":case"s":let De=le.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(le.name,oe);const Se=("a"===le.op?this.headers.get(oe):void 0)||[];Se.push(...De),this.headers.set(oe,Se);break;case"d":const Ve=le.value;if(Ve){let Ae=this.headers.get(oe);if(!Ae)return;Ae=Ae.filter(ze=>-1===Ve.indexOf(ze)),0===Ae.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,Ae)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>le(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(le){return ne(le)}encodeValue(le){return ne(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const te=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(te,(le,oe)=>{var De;return null!==(De=ce[oe])&&void 0!==De?De:le})}function de(Te){return`${Te}`}class me{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new $,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,le){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(Se=>{const Ve=Se.indexOf("="),[Ae,ze]=-1==Ve?[le.decodeKey(Se),""]:[le.decodeKey(Se.slice(0,Ve)),le.decodeValue(Se.slice(Ve+1))],St=oe.get(Ae)||[];St.push(ze),oe.set(Ae,St)}),oe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(oe=>{const De=le.fromObject[oe];this.map.set(oe,Array.isArray(De)?De:[De])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const oe=this.map.get(le);return oe?oe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,oe){return this.clone({param:le,value:oe,op:"a"})}appendAll(le){const oe=[];return Object.keys(le).forEach(De=>{const Se=le[De];Array.isArray(Se)?Se.forEach(Ve=>{oe.push({param:De,value:Ve,op:"a"})}):oe.push({param:De,value:Se,op:"a"})}),this.clone(oe)}set(le,oe){return this.clone({param:le,value:oe,op:"s"})}delete(le,oe){return this.clone({param:le,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const oe=this.encoder.encodeKey(le);return this.map.get(le).map(De=>oe+"="+this.encoder.encodeValue(De)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(le),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const oe=("a"===le.op?this.map.get(le.param):void 0)||[];oe.push(de(le.value)),this.map.set(le.param,oe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let De=this.map.get(le.param)||[];const Se=De.indexOf(de(le.value));-1!==Se&&De.splice(Se,1),De.length>0?this.map.set(le.param,De):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(le,oe){return this.map.set(le,oe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}has(le){return this.map.has(le)}keys(){return this.map.keys()}}function It(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function kt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Ke(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class xt{constructor(le,oe,De,Se){let Ve;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function Ze(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==De?De:null,Ve=Se):Ve=De,Ve&&(this.reportProgress=!!Ve.reportProgress,this.withCredentials=!!Ve.withCredentials,Ve.responseType&&(this.responseType=Ve.responseType),Ve.headers&&(this.headers=Ve.headers),Ve.context&&(this.context=Ve.context),Ve.params&&(this.params=Ve.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Be),this.params){const Ae=this.params.toString();if(0===Ae.length)this.urlWithParams=oe;else{const ze=oe.indexOf("?");this.urlWithParams=oe+(-1===ze?"?":zeHi.set(rt,le.setHeaders[rt]),Di)),le.setParams&&(Pt=Object.keys(le.setParams).reduce((Hi,rt)=>Hi.set(rt,le.setParams[rt]),Pt)),new xt(De,Se,Ae,{params:Pt,headers:Di,context:xr,reportProgress:St,responseType:Ve,withCredentials:ze})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class fe{constructor(le,oe=200,De="OK"){this.headers=le.headers||new Y,this.status=void 0!==le.status?le.status:oe,this.statusText=le.statusText||De,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends fe{constructor(le={}){super(le),this.type=mt.ResponseHeader}clone(le={}){return new _e({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class we extends fe{constructor(le={}){super(le),this.type=mt.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new we({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class ye extends fe{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function ke(Te,le){return{body:le,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,De,Se={}){let Ve;if(oe instanceof xt)Ve=oe;else{let St,Di;St=Se.headers instanceof Y?Se.headers:new Y(Se.headers),Se.params&&(Di=Se.params instanceof me?Se.params:new me({fromObject:Se.params})),Ve=new xt(oe,De,void 0!==Se.body?Se.body:null,{headers:St,context:Se.context,params:Di,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Ae=(0,E.of)(Ve).pipe((0,S.b)(St=>this.handler.handle(St)));if(oe instanceof xt||"events"===Se.observe)return Ae;const ze=Ae.pipe((0,P.h)(St=>St instanceof we));switch(Se.observe||"body"){case"body":switch(Ve.responseType){case"arraybuffer":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return ze.pipe((0,L.U)(St=>St.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(oe,De={}){return this.request("DELETE",oe,De)}get(oe,De={}){return this.request("GET",oe,De)}head(oe,De={}){return this.request("HEAD",oe,De)}jsonp(oe,De){return this.request("JSONP",oe,{params:(new me).append(De,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,De={}){return this.request("OPTIONS",oe,De)}patch(oe,De,Se={}){return this.request("PATCH",oe,ke(Se,De))}post(oe,De,Se={}){return this.request("POST",oe,ke(Se,De))}put(oe,De,Se={}){return this.request("PUT",oe,ke(Se,De))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(V))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Mt{constructor(le,oe){this.next=le,this.interceptor=oe}handle(le){return this.interceptor.intercept(le,this.next)}}const Gt=new i.OlP("HTTP_INTERCEPTORS");let yi=(()=>{class Te{intercept(oe,De){return De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Cn=/^\)\]\}',?\n/;let Xr=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(De=>{const Se=this.xhrFactory.build();if(Se.open(oe.method,oe.urlWithParams),oe.withCredentials&&(Se.withCredentials=!0),oe.headers.forEach((rt,qe)=>Se.setRequestHeader(rt,qe.join(","))),oe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const rt=oe.detectContentTypeHeader();null!==rt&&Se.setRequestHeader("Content-Type",rt)}if(oe.responseType){const rt=oe.responseType.toLowerCase();Se.responseType="json"!==rt?rt:"text"}const Ve=oe.serializeBody();let Ae=null;const ze=()=>{if(null!==Ae)return Ae;const rt=Se.statusText||"OK",qe=new Y(Se.getAllResponseHeaders()),An=function Ni(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(Se)||oe.url;return Ae=new _e({headers:qe,status:Se.status,statusText:rt,url:An}),Ae},St=()=>{let{headers:rt,status:qe,statusText:An,url:Vt}=ze(),_t=null;204!==qe&&(_t=void 0===Se.response?Se.responseText:Se.response),0===qe&&(qe=_t?200:0);let Qn=qe>=200&&qe<300;if("json"===oe.responseType&&"string"==typeof _t){const Bn=_t;_t=_t.replace(Cn,"");try{_t=""!==_t?JSON.parse(_t):null}catch(vn){_t=Bn,Qn&&(Qn=!1,_t={error:vn,text:_t})}}Qn?(De.next(new we({body:_t,headers:rt,status:qe,statusText:An,url:Vt||void 0})),De.complete()):De.error(new ye({error:_t,headers:rt,status:qe,statusText:An,url:Vt||void 0}))},Di=rt=>{const{url:qe}=ze(),An=new ye({error:rt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:qe||void 0});De.error(An)};let Pt=!1;const xr=rt=>{Pt||(De.next(ze()),Pt=!0);let qe={type:mt.DownloadProgress,loaded:rt.loaded};rt.lengthComputable&&(qe.total=rt.total),"text"===oe.responseType&&!!Se.responseText&&(qe.partialText=Se.responseText),De.next(qe)},Hi=rt=>{let qe={type:mt.UploadProgress,loaded:rt.loaded};rt.lengthComputable&&(qe.total=rt.total),De.next(qe)};return Se.addEventListener("load",St),Se.addEventListener("error",Di),Se.addEventListener("timeout",Di),Se.addEventListener("abort",Di),oe.reportProgress&&(Se.addEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.addEventListener("progress",Hi)),Se.send(Ve),De.next({type:mt.Sent}),()=>{Se.removeEventListener("error",Di),Se.removeEventListener("abort",Di),Se.removeEventListener("load",St),Se.removeEventListener("timeout",Di),oe.reportProgress&&(Se.removeEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.removeEventListener("progress",Hi)),Se.readyState!==Se.DONE&&Se.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Ns=new i.OlP("XSRF_COOKIE_NAME"),Ys=new i.OlP("XSRF_HEADER_NAME");class Us{}let Ma=(()=>{class Te{constructor(oe,De,Se){this.doc=oe,this.platform=De,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.K0),i.LFG(i.Lbi),i.LFG(Ns))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ea=(()=>{class Te{constructor(oe,De){this.tokenService=oe,this.headerName=De}intercept(oe,De){const Se=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||Se.startsWith("http://")||Se.startsWith("https://"))return De.handle(oe);const Ve=this.tokenService.getToken();return null!==Ve&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Ve)})),De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(Us),i.LFG(Ys))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Sa=(()=>{class Te{constructor(oe,De){this.backend=oe,this.injector=De,this.chain=null}handle(oe){if(null===this.chain){const De=this.injector.get(Gt,[]);this.chain=De.reduceRight((Se,Ve)=>new Mt(Se,Ve),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(U),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Po=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:ea,useClass:yi}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:Ns,useValue:oe.cookieName}:[],oe.headerName?{provide:Ys,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ea,{provide:Gt,useExisting:ea,multi:!0},{provide:Us,useClass:Ma},{provide:Ns,useValue:"XSRF-TOKEN"},{provide:Ys,useValue:"X-XSRF-TOKEN"}]}),Te})(),Bi=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:V,useClass:Sa},Xr,{provide:U,useExisting:Xr}],imports:[[Po.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(z,G,x)=>{"use strict";x.d(G,{deG:()=>oo,tb:()=>l_,AFp:()=>Sl,ip1:()=>o_,CZH:()=>Ml,hGG:()=>Ax,z2F:()=>Bu,sBO:()=>sx,Sil:()=>Ls,_Vd:()=>Au,EJc:()=>d_,SBq:()=>vu,qLn:()=>Ya,vpe:()=>ba,tBr:()=>ho,XFs:()=>pt,OlP:()=>si,zs3:()=>jr,ZZ4:()=>af,aQg:()=>sf,soG:()=>Xp,YKP:()=>bw,h0i:()=>vl,PXZ:()=>tx,R0b:()=>Ar,FiY:()=>Fa,Lbi:()=>WT,g9A:()=>jw,n_E:()=>Eu,Qsj:()=>TT,FYo:()=>cw,JOm:()=>Ms,q3G:()=>Fi,tp0:()=>po,Rgc:()=>Lc,dDg:()=>Ww,GfV:()=>uw,s_b:()=>Hu,ifc:()=>Ve,eFA:()=>Jw,G48:()=>tC,Gpc:()=>$,f3M:()=>Wf,_c5:()=>dC,VLi:()=>XT,c2e:()=>c_,zSh:()=>Gd,wAp:()=>ot,vHH:()=>ne,EiD:()=>Q_,mCW:()=>Mh,qzn:()=>cc,JVY:()=>$C,pB0:()=>KC,eBb:()=>QC,L6k:()=>JC,LAX:()=>G_,cg1:()=>_p,kL8:()=>pu,yhl:()=>Hd,dqk:()=>Pt,sIi:()=>wc,CqO:()=>_y,QGY:()=>su,F4k:()=>ou,RDi:()=>Wl,AaK:()=>V,z3N:()=>Ts,qOj:()=>ct,TTD:()=>er,_Bn:()=>sw,xp6:()=>xA,uIk:()=>Qd,Tol:()=>Dy,Gre:()=>Yv,ekj:()=>up,Suo:()=>Hw,Xpm:()=>Ea,lG2:()=>Re,Yz7:()=>ri,cJS:()=>Cn,oAB:()=>as,Yjl:()=>oi,Y36:()=>Ao,_UZ:()=>my,GkF:()=>gy,BQk:()=>ru,ynx:()=>eg,qZA:()=>Xm,TgZ:()=>Tc,EpF:()=>au,n5z:()=>ic,Ikx:()=>gp,LFG:()=>Ji,$8M:()=>bd,$Z:()=>fy,NdJ:()=>np,CRH:()=>OT,kcU:()=>No,O4$:()=>nh,oxw:()=>by,ALo:()=>Ps,lcZ:()=>Oi,xi3:()=>Fg,Dn7:()=>Ng,Hsn:()=>ap,F$t:()=>ng,Q6J:()=>Ds,s9C:()=>sp,DdM:()=>Ii,VKq:()=>HT,WLB:()=>Dp,iGM:()=>Dw,MAs:()=>eu,Jf7:()=>pA,CHM:()=>Zl,oJD:()=>am,LSH:()=>sm,Udp:()=>dp,WFA:()=>tg,d8E:()=>yg,YNc:()=>Xd,W1O:()=>kw,_uU:()=>ky,Oqu:()=>fg,hij:()=>pp,AsE:()=>mg,xDo:()=>Ai,Gf:()=>jp});var T=x(8929),i=x(2654),E=x(2916),M=x(6787),S=x(2474);function P(p){for(let m in p)if(p[m]===P)return m;throw Error("Could not find renamed property on target object.")}function L(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function V(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(V).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function U(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const Y=P({__forward_ref__:P});function $(p){return p.__forward_ref__=$,p.toString=function(){return V(this())},p}function X(p){return te(p)?p():p}function te(p){return"function"==typeof p&&p.hasOwnProperty(Y)&&p.__forward_ref__===$}class ne extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m:""}`}(m,g)),this.code=m}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Oe(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function kt(p,m){const g=m?` in ${m}`:"";throw new ne(-201,`No provider for ${Oe(p)} found${g}`)}function tt(p,m){null==p&&function ht(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Cn(p){return{providers:p.providers||[],imports:p.imports||[]}}function Ni(p){return Xr(p,Ma)||Xr(p,Sa)}function Xr(p,m){return p.hasOwnProperty(m)?p[m]:null}function Us(p){return p&&(p.hasOwnProperty(ea)||p.hasOwnProperty(ed))?p[ea]:null}const Ma=P({\u0275prov:P}),ea=P({\u0275inj:P}),Sa=P({ngInjectableDef:P}),ed=P({ngInjectorDef:P});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let Po;function Zt(p){const m=Po;return Po=p,m}function ln(p,m,g){const _=Ni(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&pt.Optional?null:void 0!==m?m:void kt(V(p),"Injector")}function le(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Ve=(()=>{return(p=Ve||(Ve={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Ve;var p})();const Ae="undefined"!=typeof globalThis&&globalThis,ze="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt=Ae||"undefined"!=typeof global&&global||ze||St,rt={},qe=[],An=P({\u0275cmp:P}),Vt=P({\u0275dir:P}),_t=P({\u0275pipe:P}),Qn=P({\u0275mod:P}),Bn=P({\u0275fac:P}),vn=P({__NG_ELEMENT_ID__:P});let Yl=0;function Ea(p){return le(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||qe,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Ve.Emulated,id:"c",styles:p.styles||qe,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=Yl++,_.inputs=w(p.inputs,g),_.outputs=w(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ia):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(Vn):null,_})}function ia(p){return Zi(p)||function Ge(p){return p[Vt]||null}(p)}function Vn(p){return function Kn(p){return p[_t]||null}(p)}const rs={};function as(p){return le(()=>{const m={type:p.type,bootstrap:p.bootstrap||qe,declarations:p.declarations||qe,imports:p.imports||qe,exports:p.exports||qe,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(rs[p.id]=p.type),m})}function w(p,m){if(null==p)return rt;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const Re=Ea;function oi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function Zi(p){return p[An]||null}function gt(p,m){const g=p[Qn]||null;if(!g&&!0===m)throw new Error(`Type ${V(p)} does not have '\u0275mod' property.`);return g}function _n(p){return Array.isArray(p)&&"object"==typeof p[1]}function Fn(p){return Array.isArray(p)&&!0===p[1]}function Lo(p){return 0!=(8&p.flags)}function Pa(p){return 2==(2&p.flags)}function ra(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function os(p){return 0!=(512&p[2])}function Tn(p,m){return p.hasOwnProperty(Bn)?p[Bn]:null}class ur{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function er(){return Ws}function Ws(p){return p.type.prototype.ngOnChanges&&(p.setInput=rn),dt}function dt(){const p=ls(this),m=null==p?void 0:p.current;if(m){const g=p.previous;if(g===rt)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function rn(p,m,g,_){const y=ls(p)||function Wt(p,m){return p[jt]=m}(p,{previous:rt,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],R=D[k];v[k]=new ur(R&&R.currentValue,m,D===rt),p[_]=m}er.ngInherit=!0;const jt="__ngSimpleChanges__";function ls(p){return p[jt]||null}let oa;function Wl(p){oa=p}function Zs(){return void 0!==oa?oa:"undefined"!=typeof document?document:void 0}function fi(p){return!!p.listen}const B={createRenderer:(p,m)=>Zs()};function O(p){for(;Array.isArray(p);)p=p[0];return p}function he(p,m){return O(m[p])}function ve(p,m){return O(m[p.index])}function Xt(p,m){return p.data[m]}function Rt(p,m){return p[m]}function yt(p,m){const g=m[p];return _n(g)?g:g[0]}function wt(p){return 4==(4&p[2])}function Pi(p){return 128==(128&p[2])}function mi(p,m){return null==m?null:p[m]}function la(p){p[18]=0}function hr(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const at={lFrame:La(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function eh(){return at.bindingsEnabled}function Me(){return at.lFrame.lView}function Ye(){return at.lFrame.tView}function Zl(p){return at.lFrame.contextLView=p,p[8]}function gi(){let p=nd();for(;null!==p&&64===p.type;)p=p.parent;return p}function nd(){return at.lFrame.currentTNode}function Dr(p,m){const g=at.lFrame;g.currentTNode=p,g.isParent=m}function $l(){return at.lFrame.isParent}function rd(){at.lFrame.isParent=!1}function Bo(){return at.isInCheckNoChangesMode}function Vo(p){at.isInCheckNoChangesMode=p}function bn(){const p=at.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function ui(){return at.lFrame.bindingIndex}function Qs(){return at.lFrame.bindingIndex++}function zn(p){const m=at.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function kf(p,m){const g=at.lFrame;g.bindingIndex=g.bindingRootIndex=p,Ks(m)}function Ks(p){at.lFrame.currentDirectiveIndex=p}function Xs(p){const m=at.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function sd(){return at.lFrame.currentQueryIndex}function us(p){at.lFrame.currentQueryIndex=p}function hs(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function Lt(p,m,g){if(g&pt.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&pt.Host||(y=hs(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=at.lFrame=Jl();return _.currentTNode=m,_.lView=p,!0}function kr(p){const m=Jl(),g=p[1];at.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Jl(){const p=at.lFrame,m=null===p?null:p.child;return null===m?La(p):m}function La(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function ih(){const p=at.lFrame;return at.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const od=ih;function Fo(){const p=ih();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ui(){return at.lFrame.selectedIndex}function ca(p){at.lFrame.selectedIndex=p}function hi(){const p=at.lFrame;return Xt(p.tView,p.selectedIndex)}function nh(){at.lFrame.currentNamespace="svg"}function No(){!function rh(){at.lFrame.currentNamespace=null}()}function Yo(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:N,ngOnDestroy:q}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),N&&((p.viewHooks||(p.viewHooks=[])).push(g,N),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,N)),null!=q&&(p.destroyHooks||(p.destroyHooks=[])).push(g,q)}}function Xl(p,m,g){ah(p,m,3,g)}function Ia(p,m,g,_){(3&p[2])===g&&ah(p,m,g,_)}function ec(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function ah(p,m,g,_){const v=null!=_?_:-1,D=m.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else m[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class Uo{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function yn(p,m,g){const _=fi(p);let y=0;for(;ym){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let pd=!0;function Ba(p){const m=pd;return pd=p,m}let zo=0;function Va(p,m){const g=ua(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,bs(_.data,p),bs(m,null),bs(_.blueprint,null));const y=ys(p,m),v=p.injectorIndex;if(gs(y)){const D=_s(y),k=Oa(y,m),R=k[1].data;for(let N=0;N<8;N++)m[v+N]=k[D+N]|R[D+N]}return m[v+8]=y,v}function bs(p,m){p.push(0,0,0,0,0,0,0,0,m)}function ua(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ys(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ws(p,m,g){!function to(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(vn)&&(_=g[vn]),null==_&&(_=g[vn]=zo++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:If:m}(g);if("function"==typeof v){if(!Lt(m,p,_))return _&pt.Host?fd(y,g,_):md(m,g,_,y);try{const D=v(_);if(null!=D||_&pt.Optional)return D;kt(g)}finally{od()}}else if("number"==typeof v){let D=null,k=ua(p,m),R=-1,N=_&pt.Host?m[16][6]:null;for((-1===k||_&pt.SkipSelf)&&(R=-1===k?ys(p,m):m[k+8],-1!==R&&hh(_,!1)?(D=m[1],k=_s(R),m=Oa(R,m)):k=-1);-1!==k;){const q=m[1];if(uh(v,k,q.data)){const ee=_d(k,m,g,D,_,N);if(ee!==qo)return ee}R=m[k+8],-1!==R&&hh(_,m[1].data[k+8]===N)&&uh(v,k,m)?(D=q,k=_s(R),m=Oa(R,m)):k=-1}}}return md(m,g,_,y)}const qo={};function If(){return new ro(gi(),Me())}function _d(p,m,g,_,y,v){const D=m[1],k=D.data[p+8],q=tc(k,D,g,null==_?Pa(k)&&pd:_!=D&&0!=(3&k.type),y&pt.Host&&v===k);return null!==q?no(m,D,q,k):qo}function tc(p,m,g,_,y){const v=p.providerIndexes,D=m.data,k=1048575&v,R=p.directiveStart,q=v>>20,se=y?k+q:p.directiveEnd;for(let ue=_?k:k+q;ue=R&&Ce.type===g)return ue}if(y){const ue=D[R];if(ue&&Nn(ue)&&ue.type===g)return R}return null}function no(p,m,g,_){let y=p[g];const v=m.data;if(function sh(p){return p instanceof Uo}(y)){const D=y;D.resolving&&function Be(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Oe(v[g]));const k=Ba(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?Zt(D.injectImpl):null;Lt(p,_,pt.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function ps(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=Ws(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==R&&Zt(R),Ba(k),D.resolving=!1,od()}}return y}function uh(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Bn]||Pr(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Bn]||Pr(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Pr(p){return te(p)?()=>{const m=Pr(X(p));return m&&m()}:Tn(p)}function bd(p){return function io(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(cd(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(gi(),p)}const ao="__parameters__";function Rr(p,m,g){return le(()=>{const _=function yd(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(R,N,q){const ee=R.hasOwnProperty(ao)?R[ao]:Object.defineProperty(R,ao,{value:[]})[ao];for(;ee.length<=q;)ee.push(null);return(ee[q]=ee[q]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class si{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const oo=new si("AnalyzeForEntryComponents");function nr(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?mr(g,m):m(g))}function Go(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function Wo(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function co(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function rc(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Ad(p,m){const g=Cs(p,m);if(g>=0)return p[1|g]}function Cs(p,m){return function Zo(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<({token:p})),-1),Fa=Jo(Rr("Optional"),8),po=Jo(Rr("SkipSelf"),4);let Ot,ae;function H(p){var m;return(null===(m=function C(){if(void 0===Ot&&(Ot=null,Pt.trustedTypes))try{Ot=Pt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return Ot}())||void 0===m?void 0:m.createHTML(p))||p}function et(p){var m;return(null===(m=function be(){if(void 0===ae&&(ae=null,Pt.trustedTypes))try{ae=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return ae}())||void 0===m?void 0:m.createHTML(p))||p}class Ci{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Br extends Ci{getTypeName(){return"HTML"}}class Vr extends Ci{getTypeName(){return"Style"}}class mM extends Ci{getTypeName(){return"Script"}}class Ko extends Ci{getTypeName(){return"URL"}}class q_ extends Ci{getTypeName(){return"ResourceURL"}}function Ts(p){return p instanceof Ci?p.changingThisBreaksApplicationSecurity:p}function cc(p,m){const g=Hd(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function Hd(p){return p instanceof Ci&&p.getTypeName()||null}function $C(p){return new Br(p)}function JC(p){return new Vr(p)}function QC(p){return new mM(p)}function G_(p){return new Ko(p)}function KC(p){return new q_(p)}class XC{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(H(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class Kf{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0Mh(m.trim())).join(", ")),this.buf.push(" ",D,'="',J_(R),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();tm.hasOwnProperty(g)&&!Xf.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(J_(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const sA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nm=/([^\#-~ |!])/g;function J_(p){return p.replace(/&/g,"&").replace(sA,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(nm,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Pd;function Q_(p,m){let g=null;try{Pd=Pd||function W_(p){const m=new Kf(p);return function eA(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new XC(m):m}(p);let _=m?String(m):"";g=Pd.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=Pd.getInertBodyElement(_)}while(_!==v);return H((new im).sanitizeChildren(rm(g)||g))}finally{if(g){const _=rm(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function rm(p){return"content"in p&&function Sh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Fi=(()=>((Fi=Fi||{})[Fi.NONE=0]="NONE",Fi[Fi.HTML=1]="HTML",Fi[Fi.STYLE=2]="STYLE",Fi[Fi.SCRIPT=3]="SCRIPT",Fi[Fi.URL=4]="URL",Fi[Fi.RESOURCE_URL=5]="RESOURCE_URL",Fi))();function am(p){const m=Xo();return m?et(m.sanitize(Fi.HTML,p)||""):cc(p,"HTML")?et(Ts(p)):Q_(Zs(),me(p))}function sm(p){const m=Xo();return m?m.sanitize(Fi.URL,p)||"":cc(p,"URL")?Ts(p):Mh(me(p))}function Xo(){const p=Me();return p&&p[12]}const Je="__ngContext__";function En(p,m){p[Je]=m}function Ld(p){const m=function Rd(p){return p[Je]||null}(p);return m?Array.isArray(m)?m:m.lView:null}function Bd(p){return p.ngOriginalError}function Hh(p,...m){p.error(...m)}class Ya{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m),_=function lA(p){return p&&p.ngErrorLogger||Hh}(m);_(this._console,"ERROR",m),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Bd(m);for(;g&&Bd(g);)g=Bd(g);return g||null}}const hA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function pA(p){return p.ownerDocument.defaultView}function Ua(p){return p instanceof Function?p():p}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function ob(p,m){return undefined(p,m)}function gr(p){const m=p[3];return Fn(m)?m[3]:m}function lb(p){return gA(p[13])}function cb(p){return gA(p[4])}function gA(p){for(;null!==p&&!Fn(p);)p=p[4];return p}function jd(p,m,g,_,y){if(null!=_){let v,D=!1;Fn(_)?v=_:_n(_)&&(D=!0,_=_[0]);const k=O(_);0===p&&null!==g?null==y?Rh(m,g,k):hc(m,g,k,y||null,!0):1===p&&null!==g?hc(m,g,k,y||null,!0):2===p?function Nd(p,m,g){const _=an(p,m);_&&function DM(p,m,g,_){fi(p)?p.removeChild(m,g,_):m.removeChild(g)}(p,_,m,g)}(m,k,D):3===p&&m.destroyNode(k),null!=v&&function HM(p,m,g,_,y){const v=g[7];v!==O(g)&&jd(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Wo(p,10+m);!function pm(p,m){_r(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function nl(p,m){if(!(256&m[2])){const g=m[11];fi(g)&&g.destroyNode&&_r(p,m,g,3,null,null),function SM(p){let m=p[13];if(!m)return ub(p[1],p);for(;m;){let g=null;if(_n(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)_n(m)&&ub(m[1],m),m=m[3];null===m&&(m=p),_n(m)&&ub(m[1],m),g=m&&m[4]}m=g}}(m)}}function ub(p,m){if(!(256&m[2])){m[2]&=-129,m[2]|=256,function yA(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=N]():_[y=-N].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();m[7]=null}}(p,m),1===m[1].type&&fi(m[11])&&m[11].destroy();const g=m[17];if(null!==g&&Fn(m[3])){g!==m[3]&&qa(g,m);const _=m[19];null!==_&&_.detachView(p)}}}function hb(p,m,g){return function pb(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Ve.None||y===Ve.Emulated)return null}return ve(_,g)}(p,m.parent,g)}function hc(p,m,g,_,y){fi(p)?p.insertBefore(m,g,_,y):m.insertBefore(g,_,y)}function Rh(p,m,g){fi(p)?p.appendChild(m,g):m.appendChild(g)}function fm(p,m,g,_,y){null!==_?hc(p,m,g,_,y):Rh(p,m,g)}function an(p,m){return fi(p)?p.parentNode(m):m.parentNode}function fb(p,m,g){return CA(p,m,g)}let CA=function mb(p,m,g){return 40&p.type?ve(p,g):null};function sn(p,m,g,_){const y=hb(p,_,m),v=m[11],k=fb(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[ee+1].toLowerCase();const ue=8&_?se:null;if(ue&&-1!==_b(ue,N,0)||2&_&&N!==se){if(Wa(_))return!1;D=!0}}}}else{if(!D&&!Wa(_)&&!Wa(R))return!1;if(D&&Wa(R))continue;D=!1,_=R|1&_}}return Wa(_)||D}function Wa(p){return 0==(1&p)}function IM(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Wa(D)&&(m+=Ih(v,y),y=""),_=D,v=v||!Wa(_);g++}return""!==y&&(m+=Ih(v,y)),m}const Et={};function xA(p){MA(Ye(),Me(),Ui()+p,Bo())}function MA(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Xl(m,v,g)}else{const v=p.preOrderHooks;null!==v&&Ia(m,v,0,g)}ca(g)}function gm(p,m){return p<<17|m<<2}function Za(p){return p>>17&32767}function yb(p){return 2|p}function go(p){return(131068&p)>>2}function wb(p,m){return-131069&p|m<<2}function Cb(p){return 1|p}function VA(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&MA(p,m,20,Bo()),g(_,y)}finally{ca(v)}}function FA(p,m,g){if(Lo(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,D)}}function vm(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Tm(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Bb(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&jh(g)}}function jh(p){for(let _=lb(p);null!==_;_=cb(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];zd(D,v,D.template,v[8])}else v[5]>0&&jh(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&jh(y)}}function QA(p,m){const g=yt(m,p),_=g[1];(function KA(p,m){for(let g=m.length;gPromise.resolve(null))();function Em(p){return p[7]||(p[7]=[])}function qd(p){return p.cleanup||(p.cleanup=[])}function gc(p,m,g){return(null===p||Nn(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Dm(p,m){const g=p[9],_=g?g.get(Ya,null):null;_&&_.handleError(m)}function zb(p,m,g,_,y){for(let v=0;vthis.processProvider(k,m,g)),mr([m],k=>this.processInjectorType(k,[],v)),this.records.set(Nh,bc(void 0,this));const D=this.records.get(Gd);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof m?null:V(m))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(m=>m.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(m,g=Lr,_=pt.Default){this.assertNotDestroyed();const y=Ir(this),v=Zt(void 0);try{if(!(_&pt.SkipSelf)){let k=this.records.get(m);if(void 0===k){const R=function Lm(p){return"function"==typeof p||"object"==typeof p&&p instanceof si}(m)&&Ni(m);k=R&&this.injectableDefInScope(R)?bc(Rm(m),_c):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&pt.Self?ul():this.parent).get(m,g=_&pt.Optional&&g===Lr?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[sc]=D[sc]||[]).unshift(V(m)),y)throw D;return function U_(p,m,g,_){const y=p[sc];throw m[oc]&&y.unshift(m[oc]),p.message=function Ah(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=V(m);if(Array.isArray(m))y=m.map(V).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let k=m[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):V(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(qf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[sc]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{Zt(v),Ir(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(m=>this.get(m))}toString(){const m=[];return this.records.forEach((_,y)=>m.push(V(y))),`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(m,g,_){if(!(m=X(m)))return!1;let y=Us(m);const v=null==y&&m.ngModule||void 0,D=void 0===v?m:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=Us(v)),null==y)return!1;if(null!=y.imports&&!k){let q;_.push(D);try{mr(y.imports,ee=>{this.processInjectorType(ee,g,_)&&(void 0===q&&(q=[]),q.push(ee))})}finally{}if(void 0!==q)for(let ee=0;eethis.processProvider(Ce,se,ue||qe))}}this.injectorDefTypes.add(D);const R=Tn(D)||(()=>new D);this.records.set(D,bc(R,_c));const N=y.providers;if(null!=N&&!k){const q=m;mr(N,ee=>this.processProvider(ee,q,N))}return void 0!==v&&void 0!==m.providers}processProvider(m,g,_){let y=yc(m=X(m))?m:X(m&&m.provide);const v=function nv(p,m,g){return Zb(p)?bc(void 0,p.useValue):bc(Wb(p),_c)}(m);if(yc(m)||!0!==m.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=bc(void 0,_c,!0),D.factory=()=>xd(D.multi),this.records.set(y,D)),y=m,D.multi.push(m)}this.records.set(y,v)}hydrate(m,g){return g.value===_c&&(g.value=Gb,g.value=g.factory()),"object"==typeof g.value&&g.value&&function sv(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=X(m.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function Rm(p){const m=Ni(p),g=null!==m?m.factory:Tn(p);if(null!==g)return g;if(p instanceof si)throw new ne(204,!1);if(p instanceof Function)return function iv(p){const m=p.length;if(m>0)throw co(m,"?"),new ne(204,!1);const g=function Ns(p){const m=p&&(p[Ma]||p[Sa]);if(m){const g=function Ys(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Wb(p,m,g){let _;if(yc(p)){const y=X(p);return Tn(y)||Rm(y)}if(Zb(p))_=()=>X(p.useValue);else if(function Jb(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...xd(p.deps||[]));else if(function $b(p){return!(!p||!p.useExisting)}(p))_=()=>Ji(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function av(p){return!!p.deps}(p))return Tn(y)||Rm(y);_=()=>new y(...xd(p.deps))}return _}function bc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function Zb(p){return null!==p&&"object"==typeof p&&Gf in p}function yc(p){return"function"==typeof p}let jr=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return ev({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return ev({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=Lr,p.NULL=new km,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Ji(Nh)}),p.__NG_ELEMENT_ID__=-1,p})();function yv(p,m){Yo(Ld(p)[1],gi())}function ct(p){let m=function ei(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;m;){let y;if(Nn(p))y=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new ne(903,"");y=m.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=Gh(p.inputs),D.declaredInputs=Gh(p.declaredInputs),D.outputs=Gh(p.outputs);const k=y.hostBindings;k&&hl(p,k);const R=y.viewQuery,N=y.contentQueries;if(R&&He(p,R),N&&Dt(p,N),L(p.inputs,y.inputs),L(p.declaredInputs,y.declaredInputs),L(p.outputs,y.outputs),Nn(y)&&y.data.animation){const q=p.data;q.animation=(q.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=ms(y.hostAttrs,g=ms(g,y.hostAttrs))}}(_)}function Gh(p){return p===rt?{}:p===qe?[]:p}function He(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Dt(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function hl(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let jm=null;function Dn(){if(!jm){const p=Pt.Symbol;if(p&&p.iterator)jm=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(O(Nt[_.index])):_.index;if(fi(g)){let Nt=null;if(!k&&R&&(Nt=function w0(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==Nt)(Nt.__ngLastListenerFn__||Nt).__ngNextListenerFn__=v,Nt.__ngLastListenerFn__=v,ue=!1;else{v=ig(_,m,ee,v,!1);const ni=g.listen(We,y,v);se.push(v,ni),q&&q.push(y,nt,xe,xe+1)}}else v=ig(_,m,ee,v,!0),We.addEventListener(y,v,D),se.push(v),q&&q.push(y,nt,xe,D)}else v=ig(_,m,ee,v,!1);const Ce=_.outputs;let Le;if(ue&&null!==Ce&&(Le=Ce[y])){const Fe=Le.length;if(Fe)for(let We=0;We0;)m=m[15],p--;return m}(p,at.lFrame.contextLView))[8]}(p)}function Hv(p,m){let g=null;const _=function OM(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const on={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lg(p){return p.substring(on.key,on.keyEnd)}function op(p,m){const g=on.textEnd;return g===m?-1:(m=on.keyEnd=function cg(p,m,g){for(;m32;)m++;return m}(p,on.key=m,g),xc(p,m,g))}function xc(p,m,g){for(;m=0;g=op(m,g))Gn(p,lg(m),!0)}function zr(p,m,g,_){const y=Me(),v=Ye(),D=zn(2);v.firstUpdatePass&&cu(v,p,D,_),m!==Et&&Ri(y,D,m)&&hg(v,v.data[Ui()],y,y[11],p,y[D+1]=function Nv(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=V(Ts(p)))),p}(m,g),_,D)}function ma(p,m,g,_){const y=Ye(),v=zn(2);y.firstUpdatePass&&cu(y,null,v,_);const D=Me();if(g!==Et&&Ri(D,v,g)){const k=y.data[Ui()];if(pg(k,_)&&!dg(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=U(R,g||"")),nu(y,k,D,g,_)}else!function Fv(p,m,g,_,y,v,D,k){y===Et&&(y=qe);let R=0,N=0,q=0=p.expandoStartIndex}function cu(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[Ui()],D=dg(p,g);pg(v,_)&&null===m&&!D&&(m=!1),m=function Ov(p,m,g,_){const y=Xs(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=du(g=hp(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=hp(y,p,m,g,_),null===v){let R=function Bv(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==go(_))return p[Za(_)]}(p,m,_);void 0!==R&&Array.isArray(R)&&(R=hp(null,p,m,R[1],_),R=du(R,m.attrs,_),function ug(p,m,g,_){p[Za(g?m.classBindings:m.styleBindings)]=_}(p,m,_,R))}else v=function Vv(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(N=!0)}else q=g;if(y)if(0!==R){const se=Za(p[k+1]);p[_+1]=gm(se,k),0!==se&&(p[se+1]=wb(p[se+1],_)),p[k+1]=function UM(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=gm(k,0),0!==k&&(p[k+1]=wb(p[k+1],_)),k=_;else p[_+1]=gm(R,0),0===k?k=_:p[R+1]=wb(p[R+1],_),R=_;N&&(p[_+1]=yb(p[_+1])),xy(p,q,_,!0),xy(p,q,_,!1),function kv(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&Cs(v,m)>=0&&(g[_+1]=Cb(g[_+1]))}(m,q,p,_,v),D=gm(k,R),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function hp(p,m,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],N=Array.isArray(R),q=N?R[1]:R,ee=null===q;let se=g[y+1];se===Et&&(se=ee?qe:void 0);let ue=ee?Ad(se,_):q===_?se:void 0;if(N&&!hu(ue)&&(ue=Ad(R,_)),hu(ue)&&(k=ue,D))return k;const Ce=p[y+1];y=D?Za(Ce):go(Ce)}if(null!==m){let R=v?m.residualClasses:m.residualStyles;null!=R&&(k=Ad(R,_))}return k}function hu(p){return void 0!==p}function pg(p,m){return 0!=(p.flags&(m?16:32))}function ky(p,m=""){const g=Me(),_=Ye(),y=p+20,v=_.firstCreatePass?Yd(_,y,1,m,null):_.data[y],D=g[y]=function Fd(p,m){return fi(p)?p.createText(m):p.createTextNode(m)}(g[11],m);sn(_,g,D,v),Dr(v,!1)}function fg(p){return pp("",p,""),fg}function pp(p,m,g){const _=Me(),y=fl(_,p,m,g);return y!==Et&&Es(_,Ui(),y),pp}function mg(p,m,g,_,y){const v=Me(),D=function wo(p,m,g,_,y,v){const k=yo(p,ui(),g,y);return zn(2),k?m+me(g)+_+me(y)+v:Et}(v,p,m,g,_,y);return D!==Et&&Es(v,Ui(),D),mg}function Ai(p,m,g,_,y,v,D,k,R,N,q){const ee=Me(),se=Ac(ee,p,m,g,_,y,v,D,k,R,N,q);return se!==Et&&Es(ee,Ui(),se),Ai}function Yv(p,m,g){ma(Gn,Qa,fl(Me(),p,m,g),!0)}function gp(p,m,g){const _=Me();return Ri(_,Qs(),m)&&ar(Ye(),hi(),_,p,m,_[11],g,!0),gp}function yg(p,m,g){const _=Me();if(Ri(_,Qs(),m)){const v=Ye(),D=hi();ar(v,D,_,p,m,gc(Xs(v.data),D,_),g,!0)}return yg}const Cl=void 0;var S0=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["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"]],Cl,[["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"]],Cl,[["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}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jy(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let wr={};function _p(p){const m=function wg(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=Fy(m);if(g)return g;const _=m.split("-")[0];if(g=Fy(_),g)return g;if("en"===_)return S0;throw new Error(`Missing locale data for the locale "${p}".`)}function pu(p){return _p(p)[ot.PluralCase]}function Fy(p){return p in wr||(wr[p]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[p]),wr[p]}var ot=(()=>((ot=ot||{})[ot.LocaleId=0]="LocaleId",ot[ot.DayPeriodsFormat=1]="DayPeriodsFormat",ot[ot.DayPeriodsStandalone=2]="DayPeriodsStandalone",ot[ot.DaysFormat=3]="DaysFormat",ot[ot.DaysStandalone=4]="DaysStandalone",ot[ot.MonthsFormat=5]="MonthsFormat",ot[ot.MonthsStandalone=6]="MonthsStandalone",ot[ot.Eras=7]="Eras",ot[ot.FirstDayOfWeek=8]="FirstDayOfWeek",ot[ot.WeekendRange=9]="WeekendRange",ot[ot.DateFormat=10]="DateFormat",ot[ot.TimeFormat=11]="TimeFormat",ot[ot.DateTimeFormat=12]="DateTimeFormat",ot[ot.NumberSymbols=13]="NumberSymbols",ot[ot.NumberFormats=14]="NumberFormats",ot[ot.CurrencyCode=15]="CurrencyCode",ot[ot.CurrencySymbol=16]="CurrencySymbol",ot[ot.CurrencyName=17]="CurrencyName",ot[ot.Currencies=18]="Currencies",ot[ot.Directionality=19]="Directionality",ot[ot.PluralCase=20]="PluralCase",ot[ot.ExtraData=21]="ExtraData",ot))();const fu="en-US";let Cg=fu;function rw(p,m,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(yc(p)||!p.multi){const ue=new Uo(R,y,Ao),Ce=Lg(k,m,y?q:q+se,ee);-1===Ce?(ws(Va(N,D),v,k),Rg(v,p,m.length),m.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(ue),D.push(ue)):(g[Ce]=ue,D[Ce]=ue)}else{const ue=Lg(k,m,q+se,ee),Ce=Lg(k,m,q,q+se),Le=ue>=0&&g[ue],Fe=Ce>=0&&g[Ce];if(y&&!Fe||!y&&!Le){ws(Va(N,D),v,k);const We=function bT(p,m,g,_,y){const v=new Uo(p,g,Ao);return v.multi=[],v.index=m,v.componentProviders=0,aw(v,y,_&&!g),v}(y?I0:Ft,g.length,y,_,R);!y&&Fe&&(g[Ce].providerFactory=We),Rg(v,p,m.length,0),m.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(We),D.push(We)}else Rg(v,p,ue>-1?ue:Ce,aw(g[y?Ce:ue],R,!y&&_));!y&&_&&Fe&&g[Ce].componentProviders++}}}function Rg(p,m,g,_){const y=yc(m),v=function rv(p){return!!p.useClass}(m);if(y||v){const R=(v?X(m.useClass):m).prototype.ngOnDestroy;if(R){const N=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const q=N.indexOf(g);-1===q?N.push(g,[_,R]):N[q+1].push(_,R)}else N.push(g,R)}}}function aw(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Lg(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function Ft(p,m,g,_){return Zr(this.multi,[])}function I0(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=no(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),Zr(y,v);for(let R=D;R{g.providersResolver=(_,y)=>function _T(p,m,g){const _=Ye();if(_.firstCreatePass){const y=Nn(p);rw(g,_.data,_.blueprint,y,!0),rw(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class ow{}class CT{resolveComponentFactory(m){throw function wT(p){const m=Error(`No component factory found for ${V(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Au=(()=>{class p{}return p.NULL=new CT,p})();function AT(){return kc(gi(),Me())}function kc(p,m){return new vu(ve(p,m))}let vu=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=AT,p})();function vT(p){return p instanceof vu?p.nativeElement:p}class cw{}let TT=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function dw(){const p=Me(),g=yt(gi().index,p);return function xT(p){return p[11]}(_n(g)?g:p)}(),p})(),Hs=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class uw{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const Tu=new uw("13.2.2"),hw={};function Ig(p,m,g,_,y=!1){for(;null!==g;){const v=m[g.index];if(null!==v&&_.push(O(v)),Fn(v))for(let k=10;k-1&&(db(m,_),Wo(g,_))}this._attachedToViewContainer=!1}nl(this._lView[1],this._lView)}onDestroy(m){Ki(this._lView[1],this._lView,null,m)}markForCheck(){Fb(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Fh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function XA(p,m,g){Vo(!0);try{Fh(p,m,g)}finally{Vo(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function _A(p,m){_r(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=m}}class MT extends Sp{constructor(m){super(m),this._view=m}detectChanges(){Yb(this._view)}checkNoChanges(){!function cl(p){Vo(!0);try{Yb(p)}finally{Vo(!1)}}(this._view)}get context(){return null}}class Og extends Au{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=Zi(m);return new fw(g,this.ngModule)}}function pw(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}const ST=new si("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>hA});class fw extends ow{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function NM(p){return p.map(FM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return pw(this.componentDef.inputs)}get outputs(){return pw(this.componentDef.outputs)}create(m,g,_,y){const v=(y=y||this.ngModule)?function ET(p,m){return{get:(g,_,y)=>{const v=p.get(g,hw,y);return v!==hw||_===hw?v:m.get(g,_,y)}}}(m,y.injector):m,D=v.get(cw,B),k=v.get(Hs,null),R=D.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",q=_?function Rb(p,m,g){if(fi(p))return p.selectRootElement(m,g===Ve.ShadowDom);let _="string"==typeof m?p.querySelector(m):m;return _.textContent="",_}(R,_,this.componentDef.encapsulation):hm(D.createRenderer(null,this.componentDef),N,function es(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(N)),ee=this.componentDef.onPush?576:528,se=function Vm(p,m){return{components:[],scheduler:p||hA,clean:Ub,playerHandler:m||null,flags:0}}(),ue=ym(0,null,null,1,0,null,null,null,null,null),Ce=Oh(null,ue,se,ee,null,null,D,R,k,v);let Le,Fe;kr(Ce);try{const We=function Bm(p,m,g,_,y,v){const D=g[1];g[20]=p;const R=Yd(D,20,2,"#host",null),N=R.mergedAttrs=m.hostAttrs;null!==N&&(dl(R,N,!0),null!==p&&(yn(y,p,N),null!==R.classes&&mm(y,p,R.classes),null!==R.styles&&AA(y,p,R.styles)));const q=_.createRenderer(p,m),ee=Oh(g,NA(m),null,m.onPush?64:16,g[20],R,_,q,v||null,null);return D.firstCreatePass&&(ws(Va(R,g),D,m.type),Tm(D,R),xm(R,g.length,1)),_o(g,ee),g[20]=ee}(q,this.componentDef,Ce,D,R);if(q)if(_)yn(R,q,["ng-version",Tu.full]);else{const{attrs:xe,classes:nt}=function YM(p){const m=[],g=[];let _=1,y=2;for(;_0&&mm(R,q,nt.join(" "))}if(Fe=Xt(ue,20),void 0!==g){const xe=Fe.projection=[];for(let nt=0;ntR(D,m)),m.contentQueries){const R=gi();m.contentQueries(1,D,R.directiveStart)}const k=gi();return!v.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(ca(k.index),zA(g[1],k,0,k.directiveStart,k.directiveEnd,m),vm(m,D)),D}(We,this.componentDef,Ce,se,[yv]),Bh(ue,Ce,null)}finally{Fo()}return new _w(this.componentType,Le,kc(Fe,Ce),Ce,Fe)}}class _w extends class yT{}{constructor(m,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new MT(y),this.componentType=m}get injector(){return new ro(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}class vl{}class bw{}const Pc=new Map;class Vg extends vl{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Og(this);const _=gt(m);this._bootstrapComponents=Ua(_.bootstrap),this._r3Injector=Yh(m,g,[{provide:vl,useValue:this},{provide:Au,useValue:this.componentFactoryResolver}],V(m)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(m)}get(m,g=jr.THROW_IF_NOT_FOUND,_=pt.Default){return m===jr||m===vl||m===Nh?this:this._r3Injector.get(m,g,_)}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Ep extends bw{constructor(m){super(),this.moduleType=m,null!==gt(m)&&function Tl(p){const m=new Set;!function g(_){const y=gt(_,!0),v=y.id;null!==v&&(function Zn(p,m,g){if(m&&m!==g)throw new Error(`Duplicate module registered for ${p} - ${V(m)} vs ${V(m.name)}`)}(v,Pc.get(v),_),Pc.set(v,_));const D=Ua(y.imports);for(const k of D)m.has(k)||(m.add(k),g(k))}(p)}(m)}create(m){return new Vg(this.moduleType,m)}}function Ii(p,m,g){const _=bn()+p,y=Me();return y[_]===Et?Ja(y,_,g?m.call(g):m()):function pl(p,m){return p[m]}(y,_)}function HT(p,m,g,_){return Cw(Me(),bn(),p,m,g,_)}function Dp(p,m,g,_,y){return Pn(Me(),bn(),p,m,g,_,y)}function Su(p,m){const g=p[m];return g===Et?void 0:g}function Cw(p,m,g,_,y,v){const D=m+g;return Ri(p,D,y)?Ja(p,D+1,v?_.call(v,y):_(y)):Su(p,D+1)}function Pn(p,m,g,_,y,v,D){const k=m+g;return yo(p,k,y,v)?Ja(p,k+2,D?_.call(D,y,v):_(y,v)):Su(p,k+2)}function ks(p,m,g,_,y,v,D,k){const R=m+g;return function Cc(p,m,g,_,y){const v=yo(p,m,g,_);return Ri(p,m+2,y)||v}(p,R,y,v,D)?Ja(p,R+3,k?_.call(k,y,v,D):_(y,v,D)):Su(p,R+3)}function Ps(p,m){const g=Ye();let _;const y=p+20;g.firstCreatePass?(_=function RT(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Tn(_.type)),D=Zt(Ao);try{const k=Ba(!1),R=v();return Ba(k),function Zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,Me(),y,R),R}finally{Zt(D)}}function Oi(p,m,g){const _=p+20,y=Me(),v=Rt(y,_);return Rc(y,_)?Cw(y,bn(),m,v.transform,g,v):v.transform(g)}function Fg(p,m,g,_){const y=p+20,v=Me(),D=Rt(v,y);return Rc(v,y)?Pn(v,bn(),m,D.transform,g,_,D):D.transform(g,_)}function Ng(p,m,g,_,y){const v=p+20,D=Me(),k=Rt(D,v);return Rc(D,v)?ks(D,bn(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function Rc(p,m){return p[1].data[m].pure}function Hp(p){return m=>{setTimeout(p,void 0,m)}}const ba=class Tw extends T.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){var y,v,D;let k=m,R=g||(()=>null),N=_;if(m&&"object"==typeof m){const ee=m;k=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),R=null===(v=ee.error)||void 0===v?void 0:v.bind(ee),N=null===(D=ee.complete)||void 0===D?void 0:D.bind(ee)}this.__isAsync&&(R=Hp(R),k&&(k=Hp(k)),N&&(N=Hp(N)));const q=super.subscribe({next:k,error:R,complete:N});return m instanceof i.w&&m.add(q),q}};function kp(){return this._results[Dn()]()}class Eu{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Dn(),_=Eu.prototype;_[g]||(_[g]=kp)}get changes(){return this._changes||(this._changes=new ba)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=nr(m);(this._changesDetected=!function Nf(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=LT,p})();const xw=Lc,Mw=class extends xw{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m){const g=this._declarationTContainer.tViews,_=Oh(this._declarationLView,g,m,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Bh(g,_,m),new Sp(_)}};function LT(){return Du(gi(),Me())}function Du(p,m){return 4&p.type?new Mw(m,p,kc(p,m)):null}let Hu=(()=>{class p{}return p.__NG_ELEMENT_ID__=Yg,p})();function Yg(){return zg(gi(),Me())}const Sw=Hu,Pp=class extends Sw{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return kc(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const m=ys(this._hostTNode,this._hostLView);if(gs(m)){const g=Oa(m,this._hostLView),_=_s(m);return new ro(g[1].data[_+8],g)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Ug(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){const y=m.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(m,g,_,y,v){const D=m&&!function ja(p){return"function"==typeof p}(m);let k;if(D)k=g;else{const ee=g||{};k=ee.index,_=ee.injector,y=ee.projectableNodes,v=ee.ngModuleRef}const R=D?m:new fw(Zi(m)),N=_||this.parentInjector;if(!v&&null==R.ngModule&&N){const ee=N.get(vl,null);ee&&(v=ee)}const q=R.create(N,y,void 0,v);return this.insert(q.hostView,k),q}insert(m,g){const _=m._lView,y=_[1];if(function di(p){return Fn(p[3])}(_)){const q=this.indexOf(m);if(-1!==q)this.detach(q);else{const ee=_[3],se=new Pp(ee,ee[6],ee[3]);se.detach(se.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function bA(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[k/2]);else{const N=v[k+1],q=m[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Qp,this.reject=Qp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Ji(o_,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Sl=new si("AppId"),GT={provide:Sl,useFactory:function Vw(){return`${Kp()}${Kp()}${Kp()}`},deps:[]};function Kp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const jw=new si("Platform Initializer"),WT=new si("Platform ID"),l_=new si("appBootstrapListener");let c_=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Xp=new si("LocaleId"),d_=new si("DefaultCurrencyCode");class ZT{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let Ls=(()=>{class p{compileModuleSync(g){return new Ep(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=Ua(gt(g).declarations).reduce((D,k)=>{const R=Zi(k);return R&&D.push(new fw(R)),D},[]);return new ZT(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const JT=(()=>Promise.resolve(0))();function Lu(p){"undefined"==typeof Zone?JT.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Ar{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ba(!1),this.onMicrotaskEmpty=new ba(!1),this.onStable=new ba(!1),this.onError=new ba(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Yw(){let p=Pt.requestAnimationFrame,m=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function QT(p){const m=()=>{!function Uw(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Pt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Iu(p),p.isCheckStableRunning=!0,h_(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Iu(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return zw(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),qw(p)}},onInvoke:(g,_,y,v,D,k,R)=>{try{return zw(p),g.invoke(y,v,D,k,R)}finally{p.shouldCoalesceRunChangeDetection&&m(),qw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Iu(p),h_(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,u_,Qp,Qp);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const u_={};function h_(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Iu(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function zw(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function qw(p){p._nesting--,h_(p)}class Gw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ba,this.onMicrotaskEmpty=new ba,this.onStable=new ba,this.onError=new ba}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}let Ww=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Ar.assertNotInAngularZone(),Lu(()=>{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())Lu(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),KT=(()=>{class p{constructor(){this._applications=new Map,ef.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return ef.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();class p_{addToWindow(m){}findTestabilityInTree(m,g,_){return null}}function XT(p){ef=p}let wa,ef=new p_;const f_=new si("AllowMultipleToken");class tx{constructor(m,g){this.name=m,this.token=g}}function Jw(p,m,g=[]){const _=`Platform: ${m}`,y=new si(_);return(v=[])=>{let D=Ou();if(!D||D.injector.get(f_,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:Gd,useValue:"platform"});!function $w(p){if(wa&&!wa.destroyed&&!wa.injector.get(f_,!1))throw new ne(400,"");wa=p.get(Qw);const m=p.get(jw,null);m&&m.forEach(g=>g())}(jr.create({providers:k,name:_}))}return function ix(p){const m=Ou();if(!m)throw new ne(401,"");return m}()}}function Ou(){return wa&&!wa.destroyed?wa:null}let Qw=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function Kw(p,m){let g;return g="noop"===p?new Gw:("zone.js"===p?void 0:p)||new Ar({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==m?void 0:m.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==m?void 0:m.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),R=[{provide:Ar,useValue:k}];return k.run(()=>{const N=jr.create({providers:R,parent:this.injector,name:g.moduleType.name}),q=g.create(N),ee=q.injector.get(Ya,null);if(!ee)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:ue=>{ee.handleError(ue)}});q.onDestroy(()=>{tf(this._modules,q),se.unsubscribe()})}),function nx(p,m,g){try{const _=g();return su(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(ee,k,()=>{const se=q.injector.get(Ml);return se.runInitializers(),se.donePromise.then(()=>(function Ag(p){tt(p,"Expected localeId to be defined"),"string"==typeof p&&(Cg=p.toLowerCase().replace(/_/g,"-"))}(q.injector.get(Xp,fu)||fu),this._moduleDoBootstrap(q),q))})})}bootstrapModule(g,_=[]){const y=m_({},_);return function Zw(p,m,g){const _=new Ep(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Bu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Ji(jr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function m_(p,m){return Array.isArray(m)?m.reduce(m_,p):Object.assign(Object.assign({},p),m)}let Bu=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(N=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{N.next(this._stable),N.complete()})}),R=new E.y(N=>{let q;this._zone.runOutsideAngular(()=>{q=this._zone.onStable.subscribe(()=>{Ar.assertNotInAngularZone(),Lu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,N.next(!0))})})});const ee=this._zone.onUnstable.subscribe(()=>{Ar.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{N.next(!1)}))});return()=>{q.unsubscribe(),ee.unsubscribe()}});this.isStable=(0,M.T)(k,R.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof ow?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function ex(p){return p.isBoundToModule}(y)?void 0:this._injector.get(vl),k=y.create(jr.NULL,[],_||y.selector,v),R=k.location.nativeElement,N=k.injector.get(Ww,null),q=N&&k.injector.get(KT);return N&&q&&q.registerApplication(R,N),k.onDestroy(()=>{this.detachView(k.hostView),tf(this.components,k),q&&q.unregisterApplication(R)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;tf(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(l_,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar),Ji(jr),Ji(Ya),Ji(Au),Ji(Ml))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function tf(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let rx=!0;function tC(){rx=!1}let sx=(()=>{class p{}return p.__NG_ELEMENT_ID__=G0,p})();function G0(p){return function ox(p,m,g){if(Pa(p)&&!g){const _=yt(p.index,m);return new Sp(_,_)}return 47&p.type?new Sp(m[16],m):null}(gi(),Me(),16==(16&p))}class aC{constructor(){}supports(m){return wc(m)}create(m){return new fx(m)}}const px=(p,m)=>m;class fx{constructor(m){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=m||px}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new mx(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new sC),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sC),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class mx{constructor(m,g){this.item=m,this.trackById=g,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 eS{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class sC{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new eS,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function zc(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new oC(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class oC{constructor(m){this.key=m,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 Dl(){return new af([new aC])}let af=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||Dl()),deps:[[p,new po,new Fa]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:Dl}),p})();function lC(){return new sf([new Fu])}let sf=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||lC()),deps:[[p,new po,new Fa]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:lC}),p})();const cC=[new Fu],_x=new af([new aC]),bx=new sf(cC),dC=Jw(null,"core",[{provide:WT,useValue:"unknown"},{provide:Qw,deps:[jr]},{provide:KT,deps:[]},{provide:c_,deps:[]}]),wx=[{provide:Bu,useClass:Bu,deps:[Ar,jr,Ya,Au,Ml]},{provide:ST,deps:[Ar],useFactory:function Cx(p){let m=[];return p.onStable.subscribe(()=>{for(;m.length;)m.pop()()}),function(g){m.push(g)}}},{provide:Ml,useClass:Ml,deps:[[new Fa,o_]]},{provide:Ls,useClass:Ls,deps:[]},GT,{provide:af,useFactory:function uC(){return _x},deps:[]},{provide:sf,useFactory:function yx(){return bx},deps:[]},{provide:Xp,useFactory:function nS(p){return p||function hC(){return"undefined"!=typeof $localize&&$localize.locale||fu}()},deps:[[new ho(Xp),new Fa,new po]]},{provide:d_,useValue:"USD"}];let Ax=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Ji(Bu))},p.\u0275mod=as({type:p}),p.\u0275inj=Cn({providers:wx}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService,Hy:()=>OAuthStorage});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(G,x,T=null){super(G),this.reason=x,this.params=T}}function b64DecodeUnicode(z){const G=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(G){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(G.idTokenHeader),T=yield this.calcHash(G.accessToken,x),E=base64UrlEncode(T.substr(0,T.length/2)),M=G.idTokenClaims.at_hash.replace(/=/g,"");return E!==M&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+M)),E===M})}inferHashAlgorithm(G){let x=G.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const i=T.indexOf("?");return T=T.substr(i>-1?i+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let i,E,M,S,P,L,V;if(null===x)return T;i=x.split("&");for(let U=0;U>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&z.charCodeAt(++T)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);z=E}else{if("object"!==i)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(G,!0).update(z).array());var L=[],V=[];for(T=0;T<64;++T){var U=z[T]||0;L[T]=92^U,V[T]=54^U}Sha256.call(this,G,x),this.update(V),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(z){if(!this.finalized){var G,x=typeof z;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);G=!0}for(var T,E,i=0,M=z.length,S=this.blocks;i>2]|=z[i]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(S[E>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,G=this.lastByteIndex;z[16]=this.block,z[G>>2]|=EXTRA[3&G],this.block=z[16],G>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,$,ce,ne,de,me,z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+((($=P[L-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+P[L-7]+((($=P[L-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=G&x,L=0;L<64;L+=4)this.first?(this.is224?(ce=300032,S=($=P[0]-1413257819)-150054599<<0,T=$+24177077<<0):(ce=704751109,S=($=P[0]-210244248)-1521486534<<0,T=$+143694565<<0),this.first=!1):(S=T+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&M)+K[L]+P[L])<<0,T=$+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ce=z&G)^z&x^me))<<0),M=x+($=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[L+1]+P[L+1])<<0,x=$+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ne=T&z)^T&G^ce))<<0,E=G+($=E+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,G=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&z^ne))<<0,i=z+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&M^~E&S)+K[L+3]+P[L+3])<<0,z=$+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((me=G&x)^G&T^de))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+G<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=[z>>24&255,z>>16&255,z>>8&255,255&z,G>>24&255,G>>16&255,G>>8&255,255&G,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),G=new DataView(z);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var G,x=z,T=new Uint8Array(x.length);for(G=0;G{class z{calcHash(x,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let T="";for(let i of x)T+=String.fromCharCode(i);return T}toHashString(x){const T=new Uint8Array(x);let i="";for(let E of T)i+=String.fromCharCode(E);return i}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(x,T,i,E,M,S,P,L,V,U){var Y;super(),this.ngZone=x,this.http=T,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=V,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),M&&this.configure(M);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(Y=null==window?void 0:window.navigator)||void 0===Y?void 0:Y.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(T){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?E=!0:"logout"===M.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==T||"any"===T||M.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||T.push("https for all urls required. Also for urls received by discovery."),E||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),i=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),i=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const i=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:M});this.eventsSubject.next(P),T(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),T(i)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),T(E)})})}fetchTokenUsingPasswordFlow(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},i)}fetchTokenUsingGrant(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(M,this.customQueryParams[M]);for(const M of Object.keys(T))E=E.set(M,T[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),M(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),T(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{M.setAttribute("src",U),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),V=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([P,L,V]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((i,E)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=T):S=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},te=>{U(),E(te)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(U(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(P),window.removeEventListener("storage",$),window.removeEventListener("message",Y),null!==S&&S.close(),S=null},Y=X=>{const te=this.processMessageEventMessage(X);te&&null!==te?(window.removeEventListener("storage",$),L(te)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",Y),L(X.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const T=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${E}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(T)?"#"+i.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",i="",E=!1,M={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let P;P=i||this.redirectUri;const L=yield this.createAndSaveNonce();if(x=x?L+this.config.nonceStateSeparator+encodeURIComponent(x):L,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const V=S.loginUrl.indexOf("?")>-1?"&":"?";let U=S.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let Y=S.loginUrl+V+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(P)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),Y+="&code_challenge="+$,Y+="&code_challenge_method=S256"}T&&(Y+="&login_hint="+encodeURIComponent(T)),S.resource&&(Y+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(Y+="&nonce="+encodeURIComponent(L)),E&&(Y+="&prompt=none");for(const $ of Object.keys(M))Y+="&"+encodeURIComponent($)+"="+encodeURIComponent(M[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))Y+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return Y})}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const i={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,T,i,E,M){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}T&&this._storage.setItem("refresh_token",T),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(T),E=i.code,M=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const V=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,V)}let[P,L]=this.parseState(M);if(this.state=L,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const V=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(V),Promise.reject(V)}if(!x.disableNonceCheck){if(!P)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(P)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,T.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),M(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const i=T.state;let[E,M]=this.parseState(i);if(this.state=M,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const S=T.access_token,P=T.id_token,L=T.session_state,V=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(E)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(Y=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(T=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[T,i]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),V=b64DecodeUnicode(this.padBase64(E[1])),U=JSON.parse(V);let Y;if(Y=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&U.nonce!==Y){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*U.iat,te=1e3*U.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||te+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:te}),Promise.reject(de)}const ne={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const Be={idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te};return this.disableAtHashCheck?Be:this.checkAtHash(ne).then(Ze=>{if(this.requestAccessToken&&!Ze){const It="Wrong at_hash";return this.logger.warn(It),Promise.reject(It)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),T&&(S=S.set("state",T)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const M="undefined"==typeof self?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>T.charCodeAt(P%T.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&T.set(i,JSON.stringify(x[i]))}),T}revokeTokenAndLogout(x={},T=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),M=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,V)=>{let U,Y;if(E){let $=S.set("token",E).set("token_type_hint","access_token");U=this.http.post(i,$,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let $=S.set("token",M).set("token_type_hint","refresh_token");Y=this.http.post(i,$,{headers:P})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([U,Y]).subscribe($=>{this.logOut(x),L($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),V($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(x){return new(x||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(x,T,i){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):T.handle(x)}}return z.\u0275fac=function(x){return new(x||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(x=null,T=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},4147:z=>{"use strict";z.exports={i8:"8.2.0"}}},z=>{z(z.s=6051)}]); \ No newline at end of file diff --git a/dist/apps/publications/main.7640ad2f3728e51f.js b/dist/apps/publications/main.7640ad2f3728e51f.js deleted file mode 100644 index dd9147ecb..000000000 --- a/dist/apps/publications/main.7640ad2f3728e51f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkpublications=self.webpackChunkpublications||[]).push([[179],{9636:(z,G,x)=>{"use strict";var T=x(9808),i=x(5e3);class E extends T.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends E{static makeCurrent(){(0,T.HT)(new M)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function P(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function V(n){L=L||document.createElement("a"),L.setAttribute("href",n);const a=L.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,T.Mx)(document.cookie,a)}}let L,S=null;const U=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function Y(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,T.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const o=function(s){d=d||s,l--,0==l&&t(d)};r.forEach(function(s){s.whenStable(o)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,T.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let te=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ie=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(Be),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(Be))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Be(n){(0,T.q)().remove(n)}const Ze={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/"},It=/%COMP%/g;function _e(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new yi(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new tt(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=_e(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ie),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Ze[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&a.insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Ze[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Ze[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,we(t)):this.eventManager.addEventListener(a,e,we(t))}}class yi extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=_e(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function mt(n){return"_ngcontent-%COMP%".replace(It,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(It,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class tt extends ge{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=_e(r.id,r.styles,[]);for(let d=0;d{class n extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const On=["alt","control","meta","shift"],$e={"\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"},ri={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},va={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let Cn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,T.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(On.forEach(s=>{const c=t.indexOf(s);c>-1&&(t.splice(c,1),d+=s+".")}),d+=l,0!=t.length||0===l.length)return null;const o={};return o.domEventName=r,o.fullKey=d,o}static getEventFullKey(e){let t="",r=function Ni(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&ri.hasOwnProperty(a)&&(a=ri[a]))}return $e[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),On.forEach(l=>{l!=r&&va[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Ta=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:T.bD},{provide:i.g9A,useValue:function Qr(){M.makeCurrent(),X.init()},multi:!0},{provide:T.K0,useFactory:function Ys(){return(0,i.RDi)(document),document},deps:[]}]),Kr=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function Ns(){return new i.qLn},deps:[]},{provide:ce,useClass:ht,multi:!0,deps:[T.K0,i.R0b,i.Lbi]},{provide:ce,useClass:Cn,multi:!0,deps:[T.K0]},{provide:ke,useClass:ke,deps:[ne,Ie,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ie},{provide:Ie,useClass:Ie,deps:[T.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:T.JF,useClass:te,deps:[]}];let xa=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:U,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Kr,imports:[T.ez,i.hGG]}),n})(),Zt=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Bi(){return new Zt((0,i.LFG)(T.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let Vn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(as),t},providedIn:"root"}),n})(),as=(()=>{class n extends Vn{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function rs(n){return new as(n.get(T.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var w=x(520);class Re{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const oi=new i.OlP("basePath");class Ge{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let Vi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"role")),null!=t&&(s=this.addToHttpParams(s,t,"complementaryObjectId")),null!=r&&(s=this.addToHttpParams(s,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,o,s="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Ue=>{h=this.addToHttpParams(h,Ue,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=o&&(h=this.addToHttpParams(h,o,"onlyDirectAdmins"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let o=new w.LE({encoder:this.encoder});null!=t&&(o=this.addToHttpParams(o,t,"user")),e&&e.forEach(b=>{o=this.addToHttpParams(o,b,"roles[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),li=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createAutorship(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAuthorship was null or undefined when calling createAutorship.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createAuthorship`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryCat(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategory was null or undefined when calling createCategoryCat.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/cat`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createCategoryNR(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateCategoryNR was null or undefined when calling createCategoryNR.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createCategory/n-r`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublication was null or undefined when calling createPublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createPublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreatePublicationSystem was null or undefined when calling createPublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createPublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateThanks was null or undefined when calling createThanks.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/createThanks`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAuthorship(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter publicationId was null or undefined when calling deleteAuthorship.");if(null==t)throw new Error("Required parameter userId was null or undefined when calling deleteAuthorship.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"publicationId")),null!=t&&(o=this.addToHttpParams(o,t,"userId"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteAuthorship`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteCategory.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteCategory`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublication.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deletePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deletePublicationSystem.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deletePublicationSystem`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}deleteThanks(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteThanks.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/cabinetManager/deleteThanks`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findAllAuthors(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAllAuthors`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}findAuthorsByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findAuthorsByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findAuthorsByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findExternalPublications(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling findExternalPublications.");if(null==t)throw new Error("Required parameter yearSince was null or undefined when calling findExternalPublications.");if(null==r)throw new Error("Required parameter yearTill was null or undefined when calling findExternalPublications.");if(null==l)throw new Error("Required parameter pubSysNamespace was null or undefined when calling findExternalPublications.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"yearSince")),null!=r&&(c=this.addToHttpParams(c,r,"yearTill")),null!=l&&(c=this.addToHttpParams(c,l,"pubSysNamespace"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findExternalPublications`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}findNewAuthors(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findNewAuthors.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findNewAuthors`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling findPublicationById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findPublicationsByFilter(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter userId was null or undefined when calling findPublicationsByFilter.");let s=new w.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"yearSince")),null!=r&&(s=this.addToHttpParams(s,r,"yearTill")),null!=e&&(s=this.addToHttpParams(s,e,"userId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByFilter`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findPublicationsByGUIFilter(e,t,r,l,d,o,s,c,u,h="body",m=!1,b){let j=new w.LE({encoder:this.encoder});null!=e&&(j=this.addToHttpParams(j,e,"title")),null!=t&&(j=this.addToHttpParams(j,t,"isbn")),null!=r&&(j=this.addToHttpParams(j,r,"doi")),null!=l&&(j=this.addToHttpParams(j,l,"id")),null!=d&&(j=this.addToHttpParams(j,d,"year")),null!=o&&(j=this.addToHttpParams(j,o,"category")),null!=s&&(j=this.addToHttpParams(j,s,"yearSince")),null!=c&&(j=this.addToHttpParams(j,c,"yearTill")),null!=u&&(j=this.addToHttpParams(j,u,"userId"));let pe,ie=this.defaultHeaders;pe=this.configuration.lookupCredential("BasicAuth"),pe&&(ie=ie.set("Authorization","Basic "+pe)),pe=this.configuration.lookupCredential("BearerAuth"),pe&&(ie=ie.set("Authorization","Bearer "+pe));let Ue=b&&b.httpHeaderAccept;void 0===Ue&&(Ue=this.configuration.selectHeaderAccept(["application/json"])),void 0!==Ue&&(ie=ie.set("Accept",Ue));let Tt=b&&b.context;void 0===Tt&&(Tt=new w.qT);let at="json";return Ue&&(at=Ue.startsWith("text")?"text":this.configuration.isJsonMime(Ue)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findPublicationsByGUIFilter`,{context:Tt,params:j,responseType:at,withCredentials:this.configuration.withCredentials,headers:ie,observe:h,reportProgress:m})}findSimilarPublications(e,t,r,l="body",d=!1,o){let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"title")),null!=t&&(s=this.addToHttpParams(s,t,"doi")),null!=r&&(s=this.addToHttpParams(s,r,"isbn"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/findSimilarPublications`,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCategories(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getCategories`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPublicationSystems(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getPublicationSystems`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getRank(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRank.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRank`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichThanksByPublicationId(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichThanksByPublicationId.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/cabinetManager/getRichThanksByPublicationId`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}lockPublications(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputLockPublications was null or undefined when calling lockPublications.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/lockPublications`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateCategory(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateCategory was null or undefined when calling updateCategory.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updateCategory`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublication was null or undefined when calling updatePublication.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublication`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updatePublicationSystem(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdatePublicationSystem was null or undefined when calling updatePublicationSystem.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/cabinetManager/updatePublicationSystem`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$t=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}createOwner(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateOwner was null or undefined when calling createOwner.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/ownersManager/createOwner`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter owner was null or undefined when calling deleteOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"owner")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/ownersManager/deleteOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllOwners(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwners`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getOwnerById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getOwnerById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getOwnerByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter owner was null or undefined when calling getOwnerByName.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"owner"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/ownersManager/getOwnerByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),en=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"queue")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"voId")),null!=t&&(s=this.addToHttpParams(s,t,"subject")),null!=r&&(s=this.addToHttpParams(s,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mr=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"password")),null!=r&&(s=this.addToHttpParams(s,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}changePasswordForUser(e,t,r,l,d,o="body",s=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new w.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let m,h=this.defaultHeaders;m=this.configuration.lookupCredential("BasicAuth"),m&&(h=h.set("Authorization","Basic "+m)),m=this.configuration.lookupCredential("BearerAuth"),m&&(h=h.set("Authorization","Bearer "+m));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let j=c&&c.context;void 0===j&&(j=new w.qT);let ie="json";return b&&(ie=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:j,params:u,responseType:ie,withCredentials:this.configuration.withCredentials,headers:h,observe:o,reportProgress:s})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"password")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"loginNamespace")),null!=r&&(s=this.addToHttpParams(s,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"force"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"searchString")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrsNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"namespace")),null!=t&&(o=this.addToHttpParams(o,t,"name"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"resource"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"vo"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"attrsNames[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(b=>{o=this.addToHttpParams(o,b,"attrNames[]")});let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",o=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new w.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ie=>{c=this.addToHttpParams(c,ie,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let m=s&&s.httpHeaderAccept;void 0===m&&(m=this.configuration.selectHeaderAccept(["application/json"])),void 0!==m&&(u=u.set("Accept",m));let b=s&&s.context;void 0===b&&(b=new w.qT);let j="json";return m&&(j=m.startsWith("text")?"text":this.configuration.isJsonMime(m)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:j,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:o})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extLogin")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceName"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"extSourceName")),null!=t&&(o=this.addToHttpParams(o,t,"extSourceLogin"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeId")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"attributeName")),null!=t&&(o=this.addToHttpParams(o,t,"attributeValue"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new w.LE({encoder:this.encoder});e&&e.forEach(m=>{d=this.addToHttpParams(d,m,"ids[]")});let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"loginNamespace")),null!=t&&(o=this.addToHttpParams(o,t,"login"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"specificUser"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"userExtSource")),null!=r&&(s=this.addToHttpParams(s,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,o,s="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new w.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=o&&(h=this.addToHttpParams(h,o,"idpFilter"));let b,m=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(m=m.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(m=m.set("Authorization","Bearer "+b));let j=u&&u.httpHeaderAccept;void 0===j&&(j=this.configuration.selectHeaderAccept(["application/json"])),void 0!==j&&(m=m.set("Accept",j));let ie=u&&u.context;void 0===ie&&(ie=new w.qT);let pe="json";return j&&(pe=j.startsWith("text")?"text":this.configuration.isJsonMime(j)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ie,params:h,responseType:pe,withCredentials:this.configuration.withCredentials,headers:m,observe:s,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let s=new w.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace")),null!=r&&(s=this.addToHttpParams(s,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=o&&o.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let m=o&&o.context;void 0===m&&(m=new w.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:m,params:s,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let o,d=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(d=d.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(d=d.set("Authorization","Bearer "+o));let s=l&&l.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(d=d.set("Accept",s));let c=l&&l.context;void 0===c&&(c=new w.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let m="json";return s&&(m=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:m,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new w.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let s,o=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(o=o.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(o=o.set("Authorization","Bearer "+s));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(o=o.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new w.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:o,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let o=new w.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"u"));let c,s=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(s=s.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(s=s.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(s=s.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new w.qT);let m="json";return u&&(m=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:o,responseType:m,withCredentials:this.configuration.withCredentials,headers:s,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new w.WM,this.configuration=new Ge,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Re}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let o=r&&r.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(l=l.set("Accept",o));let s=r&&r.context;void 0===s&&(s=new w.qT);let c="json";return o&&(c=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:s,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(oi,8),i.LFG(Ge,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ju=(()=>{class n{constructor(e,t){if(e)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!t)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(e){return{ngModule:n,providers:[{provide:Ge,useFactory:e}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12),i.LFG(w.eN,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[]]}),n})();var At=(()=>{return(n=At||(At={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",At;var n})();let na=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const o of r)l=l.concat(o.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER,At.FACILITYADMIN,At.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(At.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(At.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(At.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(At.PERUNADMIN,At.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(At.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(At.PERUNADMIN,At.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(At.PERUNADMIN,At.VOOBSERVER,At.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(At.PERUNADMIN,At.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],o=[],s=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),o=o.concat(b.privilegedRolesToManage);for(const j of Object.keys(b.entitiesToManage))s="User"===j?[j].concat(s):s.concat(j);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(o,c);r.set(l,{readAuth:u,manageAuth:h,modes:s})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const o=r[d];if(null===o)this.principalRoles.has(d)||(l=!1);else if(t[o]){for(const s of t[o])if(!this.principalHasRole(d,o,s)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const o=this.getPerunPolicy(d);if(!o)return[];t.set(d,o),r=r.concat(o.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,ur.c)()).subscribe(a)})}var Ws=x(1762),dt=x(4850),nn=x(7545),jt=x(2986),ls=x(2866);function Wt(...n){const a=n[n.length-1];return(0,ls.K)(a)?(n.pop(),e=>Tn(n,e,a)):e=>Tn(n,e)}var Yn=x(3489);function zl(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new xn(n,a,e))}}class xn{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new ql(a,this.accumulator,this.seed,this.hasSeed))}}class ql extends Yn.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var Un=x(7221),Er=x(1406),ci=x(4231);function ra(n){return function(e){return 0===n?(0,ur.c)():e.lift(new aa(n))}}class aa{constructor(a){if(this.total=a,this.total<0)throw new ci.W}call(a,e){return e.subscribe(new Gl(a,this.total))}}class Gl extends Yn.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Qe(n))}class Qe{constructor(a){this.callback=a}call(a,e){return e.subscribe(new Xt(a,this.callback))}}class Xt extends Yn.L{constructor(a,e){super(a),this.add(new he.w(e))}}class Rt{constructor(a,e){this.id=a,this.url=e}}class yt extends Rt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class wt extends Rt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Pi extends Rt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends Rt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mi extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hr extends Rt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class rt extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cs extends Rt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lo{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $s{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Io{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ku{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Js{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hf{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Me{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ye="primary";class Wl{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function gi(n){return new Wl(n)}const id="ngNavigationCancelingError";function ds(n){const a=Error("NavigationCancelingError: "+n);return a[id]=!0,a}function Zl(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Oo(n){return Array.prototype.concat.apply([],n)}function Bo(n){return n.length>0?n[n.length-1]:null}function ui(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function pr(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,Ne.of)(n)}const zn={exact:function Vo(n,a,e){if(!Pa(n.segments,a.segments)||!us(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Vo(n.children[t],a.children[t],e))return!1;return!0},subset:Xs},Xu={exact:function kf(n,a){return Hr(n,a)},subset:function Ks(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>ai(n[e],a[e]))},ignored:()=>!0};function rd(n,a,e){return zn[e.paths](n.root,a.root,e.matrixParams)&&Xu[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function Xs(n,a,e){return ad(n,a,a.segments,e)}function ad(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Pa(r,e)||a.hasChildren()||!us(r,e,t))}if(n.segments.length===e.length){if(!Pa(n.segments,e)||!us(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!Xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Pa(n.segments,r)&&us(n.segments,r,t)&&n.children[Ye])&&ad(n.children[Ye],a,l,t)}}function us(n,a,e){return a.every((t,r)=>Xu[e](n[r].parameters,t.parameters))}class hs{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return Pf.serialize(this)}}class Lt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ui(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Jl(this)}}class kr{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=gi(this.parameters)),this._parameterMap}toString(){return Xn(this)}}function Pa(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class sd{}class jo{parse(a){const e=new Yo(a);return new hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${Ui(a.root,!0)}`,t=function No(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${hi(e)}=${hi(r)}`).join("&"):`${hi(e)}=${hi(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function th(n){return encodeURI(n)}(a.fragment)}`:""}`}}const Pf=new jo;function Jl(n){return n.segments.map(a=>Xn(a)).join("/")}function Ui(n,a){if(!n.hasChildren())return Jl(n);if(a){const e=n.children[Ye]?Ui(n.children[Ye],!1):"",t=[];return ui(n.children,(r,l)=>{l!==Ye&&t.push(`${l}:${Ui(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function eh(n,a){let e=[];return ui(n.children,(t,r)=>{r===Ye&&(e=e.concat(a(t,r)))}),ui(n.children,(t,r)=>{r!==Ye&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===Ye?[Ui(n.children[Ye],!1)]:[`${r}:${Ui(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ye]?`${Jl(n)}/${e[0]}`:`${Jl(n)}/(${e.join("//")})`}}function oa(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function hi(n){return oa(n).replace(/%3B/gi,";")}function Ql(n){return oa(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fo(n){return decodeURIComponent(n)}function ih(n){return Fo(n.replace(/\+/g,"%20"))}function Xn(n){return`${Ql(n.path)}${function ps(n){return Object.keys(n).map(a=>`;${Ql(a)}=${Ql(n[a])}`).join("")}(n.parameters)}`}const Kl=/^[^\/()?;=#]+/;function Ra(n){const a=n.match(Kl);return a?a[0]:""}const Xl=/^[^=?&#]+/,Rf=/^[^&#]+/;class Yo{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Lt([],{}):new Lt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[Ye]=new Lt(a,e)),t}parseSegment(){const a=Ra(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new kr(Fo(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Ra(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ra(this.remaining);r&&(t=r,this.capture(t))}a[Fo(e)]=Fo(t)}parseQueryParam(a){const e=function nh(n){const a=n.match(Xl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function la(n){const a=n.match(Rf);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=ih(e),l=ih(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ra(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=Ye);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[Ye]:new Lt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class rh{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=od(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=od(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=fs(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return fs(a,this._root).map(e=>e.value)}}function od(n,a){if(n===a.value)return a;for(const e of a.children){const t=od(n,e);if(t)return t}return null}function fs(n,a){if(n===a.value)return[a];for(const e of a.children){const t=fs(n,e);if(t.length)return t.unshift(a),t}return[]}class fr{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function eo(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class ah extends rh{constructor(a,e){super(a),this.snapshot=e,gs(this,a)}toString(){return this.snapshot.toString()}}function Lf(n,a){const e=function V_(n,a){const d=new ms([],{},{},"",{},Ye,a,null,n.root,-1,{});return new dd("",new fr(d,[]))}(n,a),t=new $i([new kr("",{})]),r=new $i({}),l=new $i({}),d=new $i({}),o=new $i(""),s=new yn(t,r,d,o,l,Ye,a,e.root);return s.snapshot=e.root,new ah(new fr(s,[]),e)}class yn{constructor(a,e,t,r,l,d,o,s){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this._futureSnapshot=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,dt.U)(a=>gi(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,dt.U)(a=>gi(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ld(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function cd(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ms{constructor(a,e,t,r,l,d,o,s,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=o,this.routeConfig=s,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dd extends rh{constructor(a,e){super(e),this.url=a,gs(this,e)}toString(){return _s(this._root)}}function gs(n,a){a.value._routerState=n,a.children.forEach(e=>gs(n,e))}function _s(n){const a=n.children.length>0?` { ${n.children.map(_s).join(", ")} } `:"";return`${n.value}${a}`}function ud(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Hr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),Hr(a.params,e.params)||n.params.next(e.params),function nd(n,a){if(n.length!==a.length)return!1;for(let e=0;eHr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||La(n.parent,a.parent))}function Ia(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function j_(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ia(n,t,r);return Ia(n,t)})}(n,a,e);return new fr(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(o=>Ia(n,o)),d}}const t=function sh(n){return new yn(new $i(n.url),new $i(n.params),new $i(n.queryParams),new $i(n.fragment),new $i(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ia(n,l));return new fr(t,r)}}function Uo(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function to(n){return"object"==typeof n&&null!=n&&n.outlets}function Oa(n,a,e,t,r){let l={};return t&&ui(t,(d,o)=>{l[o]=Array.isArray(d)?d.map(s=>`${s}`):`${d}`}),new hs(e.root===n?a:bs(e.root,n,a),l,r)}function bs(n,a,e){const t={};return ui(n.children,(r,l)=>{t[l]=r===a?e:bs(r,a,e)}),new Lt(n.segments,t)}class ca{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&Uo(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(to);if(r&&r!==Bo(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ws{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function md(n,a,e){if(n||(n=new Lt([],{})),0===n.segments.length&&n.hasChildren())return zo(n,a,e);const t=function If(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],o=e[t];if(to(o))break;const s=`${o}`,c=t0&&void 0===s)break;if(s&&c&&"object"==typeof c&&void 0===c.outlets){if(!lh(s,c,d))return l;t+=2}else{if(!lh(s,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=md(n.children[d],a,l))}),ui(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Lt(n.segments,r)}}function gd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=gd(new Lt([],{}),0,e))}),a}function no(n){const a={};return ui(n,(e,t)=>a[t]=`${e}`),a}function lh(n,a,e){return n==e.path&&Hr(a,e.parameters)}class dh{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),ud(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=eo(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ui(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:o})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=eo(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=eo(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new Hf(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ku(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(ud(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(o.contexts),d.attachRef=o.componentRef,d.route=o.route.value,d.outlet&&d.outlet.attach(o.componentRef,o.route.value),ud(o.route.value),this.activateChildRoutes(a,null,d.children)}else{const o=function ro(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),s=o?o.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=s,d.outlet&&d.outlet.activateWith(r,s),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class tc{constructor(a,e){this.routes=a,this.module=e}}function Pr(n){return"function"==typeof n}function er(n){return n instanceof hs}const Rr=Symbol("INITIAL_VALUE");function ic(){return(0,nn.w)(n=>(0,ka.aj)(n.map(a=>a.pipe((0,jt.q)(1),Wt(Rr)))).pipe(zl((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==Rr?r:(l===Rr&&(t=!0),t||!1!==l&&d!==e.length-1&&!er(l)?r:l),a)},Rr),(0,zt.h)(a=>a!==Rr),(0,dt.U)(a=>er(a)?a:!0===a),(0,jt.q)(1)))}class Of{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new si,this.attachRef=null}}class si{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new Of,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let oo=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||Ye,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,s=new F_(e,o,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(si),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class F_{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===yn?this.route:a===si?this.childContexts:this.parent.get(a,e)}}let Bf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[oo],encapsulation:2}),n})();function Vf(n,a=""){for(let e=0;eun(t)===a);return e.push(...n.filter(t=>un(t)!==a)),e}const ji={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function lo(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},ji):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||Zl)(e,n,a);if(!l)return Object.assign({},ji);const d={};ui(l.posParams,(s,c)=>{d[c]=s.path});const o=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:o,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Ba(n,a,e,t,r="corrected"){if(e.length>0&&function tr(n,a,e){return e.some(t=>qo(n,a,t)&&un(t)!==Ye)}(n,e,t)){const d=new Lt(a,function Nf(n,a,e,t){const r={};r[Ye]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&un(l)!==Ye){const d=new Lt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[un(l)]=d}return r}(n,a,t,new Lt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function mr(n,a,e){return e.some(t=>qo(n,a,t))}(n,e,t)){const d=new Lt(n.segments,function Ff(n,a,e,t,r,l){const d={};for(const o of t)if(qo(n,e,o)&&!r[un(o)]){const s=new Lt([],{});s._sourceSegment=n,s._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[un(o)]=s}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Lt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qo(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Go(n,a,e,t){return!!(un(n)===t||t!==Ye&&qo(a,e,n))&&("**"===n.path||lo(a,n,e).matched)}function co(n,a,e){return 0===a.length&&!n.children[e]}class qn{constructor(a){this.segmentGroup=a||null}}class wd{constructor(a){this.urlTree=a}}function nc(n){return new ki.y(a=>a.error(new qn(n)))}function Yf(n){return new ki.y(a=>a.error(new wd(n)))}function N_(n){return new ki.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class Cd{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Ba(this.urlTree.root,[],[],this.config).segmentGroup,e=new Lt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,Ye).pipe((0,dt.U)(l=>this.createUrlTree(Yt(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Un.K)(l=>{if(l instanceof wd)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof qn?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,Ye).pipe((0,dt.U)(r=>this.createUrlTree(Yt(r),a.queryParams,a.fragment))).pipe((0,Un.K)(r=>{throw r instanceof qn?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Lt([],{[Ye]:a}):a;return new hs(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,dt.U)(l=>new Lt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,Er.b)(l=>{const d=t.children[l],o=jf(e,l);return this.expandSegmentGroup(a,o,d,l).pipe((0,dt.U)(s=>({segment:s,outlet:l})))}),zl((l,d)=>(l[d.outlet]=d.segment,l),{}),function B(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,zt.h)((r,l)=>n(r,l,t)):fi.y,ra(1),e?(0,Df.d)(a):(0,Zs.T)(()=>new td.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,Er.b)(o=>this.expandSegmentAgainstRoute(a,e,t,o,r,l,d).pipe((0,Un.K)(c=>{if(c instanceof qn)return(0,Ne.of)(null);throw c}))),(0,W.P)(o=>!!o),(0,Un.K)((o,s)=>{if(o instanceof td.K||"EmptyError"===o.name){if(co(e,r,l))return(0,Ne.of)(new Lt([],{}));throw new qn(e)}throw o}))}expandSegmentAgainstRoute(a,e,t,r,l,d,o){return Go(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):nc(e):nc(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?Yf(l):this.lineralizeSegments(t,l).pipe((0,O.zg)(d=>{const o=new Lt(d,{});return this.expandSegment(a,o,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:o,consumedSegments:s,lastChild:c,positionalParamSegments:u}=lo(e,r,l);if(!o)return nc(e);const h=this.applyRedirectCommands(s,r.redirectTo,u);return r.redirectTo.startsWith("/")?Yf(h):this.lineralizeSegments(r,h).pipe((0,O.zg)(m=>this.expandSegment(a,e,t,m.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,dt.U)(m=>(t._loadedConfig=m,new Lt(r,{})))):(0,Ne.of)(new Lt(r,{}));const{matched:d,consumedSegments:o,lastChild:s}=lo(e,t,r);if(!d)return nc(e);const c=r.slice(s);return this.getChildConfig(a,t,r).pipe((0,O.zg)(h=>{const m=h.module,b=h.routes,{segmentGroup:j,slicedSegments:ie}=Ba(e,o,c,b),pe=new Lt(j.segments,j.children);if(0===ie.length&&pe.hasChildren())return this.expandChildren(m,b,pe).pipe((0,dt.U)(Ut=>new Lt(o,Ut)));if(0===b.length&&0===ie.length)return(0,Ne.of)(new Lt(o,{}));const Ue=un(t)===l;return this.expandSegment(m,pe,b,ie,Ue?Ye:l,!0).pipe((0,dt.U)(at=>new Lt(o.concat(at.segments),at.children)))}))}getChildConfig(a,e,t){return e.children?(0,Ne.of)(new tc(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,Ne.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,O.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,dt.U)(l=>(e._loadedConfig=l,l))):function Pe(n){return new ki.y(a=>a.error(ds(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,Ne.of)(new tc([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,Ne.of)(!0);const l=r.map(d=>{const o=a.get(d);let s;if(function ao(n){return n&&Pr(n.canLoad)}(o))s=o.canLoad(e,t);else{if(!Pr(o))throw new Error("Invalid CanLoad guard");s=o(e,t)}return pr(s)});return(0,Ne.of)(l).pipe(ic(),(0,Q.b)(d=>{if(!er(d))return;const o=ds(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw o.url=d,o}),(0,dt.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,Ne.of)(t);if(r.numberOfChildren>1||!r.children[Ye])return N_(a.redirectTo);r=r.children[Ye]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new hs(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ui(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const o=r.substring(1);t[l]=e[o]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ui(e.children,(o,s)=>{d[s]=this.createSegmentGroup(a,o,t,r)}),new Lt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}function Yt(n){const a={};for(const t of Object.keys(n.children)){const l=Yt(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Cs(n){if(1===n.numberOfChildren&&n.children[Ye]){const a=n.children[Ye];return new Lt(n.segments.concat(a.segments),a.children)}return n}(new Lt(n.segments,a))}class Ad{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class uo{constructor(a,e){this.component=a,this.route=e}}function Uf(n,a,e){const t=n._root;return As(t,a?a._root:null,e,[t.value])}function rc(n,a,e){const t=function fh(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function As(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=eo(a);return n.children.forEach(d=>{(function ir(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,o=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const s=function Y_(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Pa(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Pa(n.url,a.url)||!Hr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!La(n,a)||!Hr(n.queryParams,a.queryParams);default:return!La(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);s?r.canActivateChecks.push(new Ad(t)):(l.data=d.data,l._resolvedData=d._resolvedData),As(n,a,l.component?o?o.children:null:e,t,r),s&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new uo(o.outlet.component,d))}else d&&Lr(a,o,r),r.canActivateChecks.push(new Ad(t)),As(n,null,l.component?o?o.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ui(l,(d,o)=>Lr(d,e.getContext(o),r)),r}function Lr(n,a,e){const t=eo(n),r=n.value;ui(t,(l,d)=>{Lr(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new uo(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Ir{}function _h(n){return new ki.y(a=>a.error(n))}class bh{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Ba(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,Ye);if(null===e)return null;const t=new ms([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ye,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new fr(t,e),l=new dd(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ld(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],o=jf(a,l),s=this.processSegmentGroup(o,d,l);if(null===s)return null;t.push(...s)}const r=yh(t);return function Wf(n){n.sort((a,e)=>a.value.outlet===Ye?-1:e.value.outlet===Ye?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return co(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Go(a,e,t,r))return null;let l,d=[],o=[];if("**"===a.path){const b=t.length>0?Bo(t).parameters:{};l=new ms(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Va(a),un(a),a.component,a,wh(e),ho(e)+t.length,da(a))}else{const b=lo(e,a,t);if(!b.matched)return null;d=b.consumedSegments,o=t.slice(b.lastChild),l=new ms(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Va(a),un(a),a.component,a,wh(e),ho(e)+d.length,da(a))}const s=function Td(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Ba(e,d,o,s.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(s,c);return null===b?null:[new fr(l,b)]}if(0===s.length&&0===u.length)return[new fr(l,[])];const h=un(a)===r,m=this.processSegment(s,c,u,h?Ye:r);return null===m?null:[new fr(l,m)]}}function $o(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function yh(n){const a=[],e=new Set;for(const t of n){if(!$o(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=yh(t.children);a.push(new fr(t.value,r))}return a.filter(t=>!e.has(t))}function wh(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function ho(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function Va(n){return n.data||{}}function da(n){return n.resolve||{}}function Jo(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Md(n){return(0,nn.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,dt.U)(()=>a)):(0,Ne.of)(a)})}class Or extends class Mn{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Sd=new i.OlP("ROUTES");class Jf{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,dt.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new tc(Oo(d.injector.get(Sd,void 0,i.XFs.Self|i.XFs.Optional)).map(ph),d)}),(0,Un.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new Ws.c(r,()=>new Ee.xQ).pipe((0,re.x)()),e._loader$}loadModuleFactory(a){return pr(a()).pipe((0,O.zg)(e=>e instanceof i.YKP?(0,Ne.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class Qf{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function z_(n){throw n}function Ed(n,a,e){return a.parse("/")}function vs(n,a){return(0,Ne.of)(null)}const oc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ot={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let C=(()=>{class n{constructor(e,t,r,l,d,o,s){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ee.xQ,this.errorHandler=z_,this.malformedUriErrorHandler=Ed,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:vs,afterPreactivation:vs},this.urlHandlingStrategy=new Qf,this.routeReuseStrategy=new Or,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(s),this.currentUrlTree=function Qs(){return new hs(new Lt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Jf(d,o,m=>this.triggerEvent(new Lo(m)),m=>this.triggerEvent(new $s(m))),this.routerState=Lf(this.currentUrlTree,this.rootComponentType),this.transitions=new $i({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,zt.h)(r=>0!==r.id),(0,dt.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,nn.w)(r=>{let l=!1,d=!1;return(0,Ne.of)(r).pipe((0,Q.b)(o=>{this.currentNavigation={id:o.id,initialUrl:o.currentRawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,nn.w)(o=>{const s=this.browserUrlTree.toString(),c=!this.navigated||o.extractedUrl.toString()!==s||s!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return I(o.source)&&(this.browserUrlTree=o.extractedUrl),(0,Ne.of)(o).pipe((0,nn.w)(h=>{const m=this.transitions.getValue();return t.next(new yt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),m!==this.transitions.getValue()?ur.E:Promise.resolve(h)}),function Wo(n,a,e,t){return(0,nn.w)(r=>function Gn(n,a,e,t,r){return new Cd(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,dt.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,Q.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function po(n,a,e,t,r){return(0,O.zg)(l=>function Ji(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new bh(n,a,e,t,r,l).recognize();return null===d?_h(new Ir):(0,Ne.of)(d)}catch(d){return _h(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,dt.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,Q.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const m=new mi(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(m)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:m,extractedUrl:b,source:j,restoredState:ie,extras:pe}=o,Ue=new yt(m,this.serializeUrl(b),j,ie);t.next(Ue);const Tt=Lf(b,this.rootComponentType).snapshot;return(0,Ne.of)(Object.assign(Object.assign({},o),{targetSnapshot:Tt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},pe),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=o.rawUrl,o.resolve(null),ur.E}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.beforePreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,Q.b)(o=>{const s=new sa(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(s)}),(0,dt.U)(o=>Object.assign(Object.assign({},o),{guards:Uf(o.targetSnapshot,o.currentSnapshot,this.rootContexts)})),function vd(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,Ne.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function ac(n,a,e,t){return(0,dn.D)(n).pipe((0,O.zg)(r=>function Zo(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,Ne.of)(!0);const d=l.map(o=>{const s=rc(o,a,r);let c;if(function bd(n){return n&&Pr(n.canDeactivate)}(s))c=pr(s.canDeactivate(n,a,e,t));else{if(!Pr(s))throw new Error("Invalid CanDeactivate guard");c=pr(s(n,a,e,t))}return c.pipe((0,W.P)())});return(0,Ne.of)(d).pipe(ic())}(r.component,r.route,e,a,t)),(0,W.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,O.zg)(o=>o&&function _d(n){return"boolean"==typeof n}(o)?function mh(n,a,e,t){return(0,dn.D)(a).pipe((0,Er.b)(r=>Tn(function gh(n,a){return null!==n&&a&&a(new Io(n)),(0,Ne.of)(!0)}(r.route.parent,t),function qf(n,a){return null!==n&&a&&a(new Js(n)),(0,Ne.of)(!0)}(r.route,t),function Gf(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function zf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>Kn(()=>{const o=d.guards.map(s=>{const c=rc(s,d.node,e);let u;if(function uh(n){return n&&Pr(n.canActivateChild)}(c))u=pr(c.canActivateChild(t,n));else{if(!Pr(c))throw new Error("Invalid CanActivateChild guard");u=pr(c(t,n))}return u.pipe((0,W.P)())});return(0,Ne.of)(o).pipe(ic())}));return(0,Ne.of)(l).pipe(ic())}(n,r.path,e),function sc(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,Ne.of)(!0);const r=t.map(l=>Kn(()=>{const d=rc(l,a,e);let o;if(function so(n){return n&&Pr(n.canActivate)}(d))o=pr(d.canActivate(a,n));else{if(!Pr(d))throw new Error("Invalid CanActivate guard");o=pr(d(a,n))}return o.pipe((0,W.P)())}));return(0,Ne.of)(r).pipe(ic())}(n,r.route,e))),(0,W.P)(r=>!0!==r,!0))}(t,l,n,a):(0,Ne.of)(o)),(0,dt.U)(o=>Object.assign(Object.assign({},e),{guardsResult:o})))})}(this.ngModule.injector,o=>this.triggerEvent(o)),(0,Q.b)(o=>{if(er(o.guardsResult)){const c=ds(`Redirecting to "${this.serializeUrl(o.guardsResult)}"`);throw c.url=o.guardsResult,c}const s=new hr(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.triggerEvent(s)}),(0,zt.h)(o=>!!o.guardsResult||(this.restoreHistory(o),this.cancelNavigationTransition(o,""),!1)),Md(o=>{if(o.guards.canActivateChecks.length)return(0,Ne.of)(o).pipe((0,Q.b)(s=>{const c=new rt(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}),(0,nn.w)(s=>{let c=!1;return(0,Ne.of)(s).pipe(function Zf(n,a){return(0,O.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,Ne.of)(e);let l=0;return(0,dn.D)(r).pipe((0,Er.b)(d=>function Ch(n,a,e,t){return function xd(n,a,e,t){const r=Jo(n);if(0===r.length)return(0,Ne.of)({});const l={};return(0,dn.D)(r).pipe((0,O.zg)(d=>function Ah(n,a,e,t){const r=rc(n,a,t);return pr(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,Q.b)(o=>{l[d]=o}))),ra(1),(0,O.zg)(()=>Jo(l).length===r.length?(0,Ne.of)(l):ur.E))}(n._resolve,n,a,t).pipe((0,dt.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ld(n,e).resolve),null)))}(d.route,t,n,a)),(0,Q.b)(()=>l++),ra(1),(0,O.zg)(d=>l===r.length?(0,Ne.of)(e):ur.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,Q.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(s),this.cancelNavigationTransition(s,"At least one route resolver didn't emit any value."))}}))}),(0,Q.b)(s=>{const c=new cs(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(c)}))}),Md(o=>{const{targetSnapshot:s,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:m,replaceUrl:b}}=o;return this.hooks.afterPreactivation(s,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!m,replaceUrl:!!b})}),(0,dt.U)(o=>{const s=function hd(n,a,e){const t=Ia(n,a._root,e?e._root:void 0);return new ah(t,a)}(this.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return Object.assign(Object.assign({},o),{targetRouterState:s})}),(0,Q.b)(o=>{this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects)}),((n,a,e)=>(0,dt.U)(t=>(new dh(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,o=>this.triggerEvent(o)),(0,Q.b)({next(){l=!0},complete(){l=!0}}),ve(()=>{var o;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(o=this.currentNavigation)||void 0===o?void 0:o.id)===r.id&&(this.currentNavigation=null)}),(0,Un.K)(o=>{if(d=!0,function Dr(n){return n&&n[id]}(o)){const s=er(o.url);s||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Pi(r.id,this.serializeUrl(r.extractedUrl),o.message);t.next(c),s?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(o.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||I(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const s=new di(r.id,this.serializeUrl(r.extractedUrl),o);t.next(s);try{r.resolve(this.errorHandler(o))}catch(c){r.reject(c)}}return ur.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const s=Object.assign({},d);delete s.navigationId,delete s.\u0275routerPageId,0!==Object.keys(s).length&&(l.state=s)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Vf(e),this.config=e.map(ph),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:o,preserveFragment:s}=t,c=r||this.routerState.root,u=s?this.currentUrlTree.fragment:d;let h=null;switch(o){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function oh(n,a,e,t,r){if(0===e.length)return Oa(a.root,a.root,a,t,r);const l=function ys(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ca(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const o={};return ui(l.outlets,(s,c)=>{o[c]="string"==typeof s?s.split("/"):s}),[...r,{outlets:o}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((o,s)=>{0==s&&"."===o||(0==s&&""===o?e=!0:".."===o?a++:""!=o&&r.push(o))}),r):[...r,l]},[]);return new ca(e,a,t)}(e);if(l.toRoot())return Oa(a.root,new Lt([],{}),a,t,r);const d=function io(n,a,e){if(n.isAbsolute)return new ws(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ws(l,l===a.root,0)}const t=Uo(n.commands[0])?0:1;return function pd(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ws(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),o=d.processChildren?zo(d.segmentGroup,d.index,l.commands):md(d.segmentGroup,d.index,l.commands);return Oa(d.segmentGroup,o,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=er(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function H(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new wt(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var o,s,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=I(t)&&u&&!I(u.source),m=u.rawUrl.toString()===e.toString(),b=u.id===(null===(o=this.currentNavigation)||void 0===o?void 0:o.id);if(h&&m&&b)return Promise.resolve(!0);let ie,pe,Ue;d?(ie=d.resolve,pe=d.reject,Ue=d.promise):Ue=new Promise((Ut,Ca)=>{ie=Ut,pe=Ca});const Tt=++this.navigationId;let at;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),at=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(s=this.browserPageId)&&void 0!==s?s:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):at=0,this.setTransition({id:Tt,targetPageId:at,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ie,reject:pe,promise:Ue,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ue.catch(Ut=>Promise.reject(Ut))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const r=new Pi(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function I(n){return"imperative"!==n}let F=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new Ee.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),J=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new Ee.xQ,this.subscription=e.events.subscribe(l=>{l instanceof wt&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const o={skipLocationChange:ae(this.skipLocationChange),replaceUrl:ae(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ae(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C),i.Y36(yn),i.Y36(T.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function ae(n){return""===n||!!n}class vt{}class Ci{preload(a,e){return(0,Ne.of)(null)}}let Br=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new Jf(r,t,s=>e.triggerEvent(new Lo(s)),s=>e.triggerEvent(new $s(s)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,zt.h)(e=>e instanceof wt),(0,Er.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,Gs.J)(),(0,dt.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,Ne.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,O.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(C),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(vt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Vr=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof yt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof wt&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Me&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Me(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Qo=new i.OlP("ROUTER_CONFIGURATION"),q_=new i.OlP("ROUTER_FORROOT_GUARD"),Ts=[T.Ye,{provide:sd,useClass:jo},{provide:C,useFactory:function QC(n,a,e,t,r,l,d={},o,s){const c=new C(null,n,a,e,t,r,Oo(l));return o&&(c.urlHandlingStrategy=o),s&&(c.routeReuseStrategy=s),function W_(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,m;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(m=console.groupEnd)||void 0===m||m.call(console)}),c},deps:[sd,si,T.Ye,i.zs3,i.Sil,Sd,Qo,[class vh{},new i.FiY],[class $f{},new i.FiY]]},si,{provide:yn,useFactory:function KC(n){return n.routerState.root},deps:[C]},Br,Ci,class Qt{preload(a,e){return e().pipe((0,Un.K)(()=>(0,Ne.of)(null)))}},{provide:Qo,useValue:{enableTracing:!1}}];function lc(){return new i.PXZ("Router",C)}let Dd=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[Ts,G_(e),{provide:q_,useFactory:JC,deps:[[C,new i.FiY,new i.tp0]]},{provide:Qo,useValue:t||{}},{provide:T.S$,useFactory:$C,deps:[T.lw,[new i.tBr(T.mr),new i.FiY],Qo]},{provide:Vr,useFactory:ZC,deps:[C,T.EM,Qo]},{provide:vt,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:Ci},{provide:i.PXZ,multi:!0,useFactory:lc},[Kf,{provide:i.ip1,multi:!0,useFactory:XC,deps:[Kf]},{provide:tA,useFactory:eA,deps:[Kf]},{provide:i.tb,multi:!0,useExisting:tA}]]}}static forChild(e){return{ngModule:n,providers:[G_(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(q_,8),i.LFG(C,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function ZC(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Vr(n,a,e)}function $C(n,a,e={}){return e.useHash?new T.Do(n,a):new T.b0(n,a)}function JC(n){return"guarded"}function G_(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Sd,multi:!0,useValue:n}]}let Kf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Ee.xQ}appInitializer(){return this.injector.get(T.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(o=>t=o),l=this.injector.get(C),d=this.injector.get(Qo);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,Ne.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(Qo),r=this.injector.get(Br),l=this.injector.get(Vr),d=this.injector.get(C),o=this.injector.get(i.z2F);e===o.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function XC(n){return n.appInitializer.bind(n)}function eA(n){return n.bootstrapListener.bind(n)}const tA=new i.OlP("Router Initializer");let hn=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,em.k)(r)?t(...r):t(r))):new ki.y(r=>{nA(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function nA(n,a,e,t,r){let l;if(function rA(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function $_(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function _M(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,o=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Q_=1;const rm=Promise.resolve(),xh={};function Fi(n){return n in xh&&(delete xh[n],!0)}const am={setImmediate(n){const a=Q_++;return xh[a]=!0,rm.then(()=>Fi(a)&&n()),a},clearImmediate(n){Fi(n)}},om=new class K_ extends nm.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=am.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(am.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),X_=x(826),eb=x(9054);class yM{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new wM(a,this.durationSelector))}}class wM extends X_.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,eb.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Ko(n){return!(0,em.k)(n)&&n-parseFloat(n)+1>=0}function Sn(n=0,a,e){let t=-1;return Ko(a)?t=Number(a)<1?1:Number(a):(0,ls.K)(a)&&(e=a),(0,ls.K)(e)||(e=Mh.P),new ki.y(r=>{const l=Ko(n)?n:+n-e.now();return e.schedule(lm,l,{index:0,period:t,subscriber:r})})}function lm(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function cm(n,a=Mh.P){return function sA(n){return function(e){return e.lift(new yM(n))}}(()=>Sn(n,a))}function Je(n){return a=>a.lift(new En(n))}class En{constructor(a){this.notifier=a}call(a,e){const t=new Pd(a),r=(0,eb.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Pd extends X_.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Rd;try{Rd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Rd=!1}let Xo,bi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,T.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&&!Rd)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const tb=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function dm(){if(Xo)return Xo;if("object"!=typeof document||!document)return Xo=new Set(tb),Xo;let n=document.createElement("input");return Xo=new Set(tb.filter(a=>(n.setAttribute("type",a),n.type===a))),Xo}let Ld,Sh,xs,Od;function ja(n){return function ib(){if(null==Ld&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ld=!0}))}finally{Ld=Ld||!1}return Ld}()?n:!!n.capture}function nb(){if(null==xs){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return xs=!1,xs;if("scrollBehavior"in document.documentElement.style)xs=!0;else{const n=Element.prototype.scrollTo;xs=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return xs}function Id(){if("object"!=typeof document||!document)return 0;if(null==Sh){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Sh=0,0===n.scrollLeft&&(n.scrollLeft=1,Sh=0===n.scrollLeft?1:2),n.remove()}return Sh}function Eh(n){if(function oA(){if(null==Od){const n="undefined"!=typeof document?document.head:null;Od=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Od}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Fa(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function ha(n){return n.composedPath?n.composedPath()[0]:n.target}function um(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const lA=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function cA(){return(0,i.f3M)(T.K0)}}),dA=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let xi=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function rb(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?dA.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lA,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Dh=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new Ee.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new ki.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(cm(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Ne.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,zt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=Qi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>ua(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hh=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new Ee.xQ,this._elementScrolled=new ki.y(d=>this.ngZone.runOutsideAngular(()=>ua(this.elementRef.nativeElement,"scroll").pipe(Je(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=Id()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==Id()?e.left=e.right:1==Id()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;nb()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==Id()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==Id()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ya=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new Ee.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(cm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),el=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc,cc,gr],dc,gr]}),n})();class jd{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class tl extends jd{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class fo extends jd{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class hm extends jd{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class pm{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof tl?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof fo?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof hm?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class gA extends pm{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const o=d.element,s=this._document.createComment("dom-portal");o.parentNode.insertBefore(s,o),this.outletElement.appendChild(o),this._attachedPortal=d,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(o,s)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context);return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let _A=(()=>{class n extends fo{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.qOj]}),n})(),Ua=(()=>{class n extends pm{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,o=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(o,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(d,o)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),il=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Mi=x(6787);class hb{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new pb(a,this.predicate,this.inclusive))}}class pb extends Yn.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function Ki(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const Lb=nb();class Ib{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=zi(-this._previousScrollPosition.left),a.style.top=zi(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),Lb&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Lb&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class YA{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class nr{enable(){}disable(){}attach(){}}function wm(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function Ob(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class s0{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();wm(e,[{width:t,height:r,bottom:r,right:t,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 o0=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new nr,this.close=d=>new YA(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Ib(this._viewportRuler,this._document),this.reposition=d=>new s0(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Dh),i.LFG(Ya),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class fc{constructor(a){if(this.scrollStrategy=new nr,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class Cm{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class zA{constructor(a,e,t,r,l,d,o,s,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=o,this._location=s,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Ee.xQ,this._attachments=new Ee.xQ,this._detachments=new Ee.xQ,this._locationChanges=he.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new Ee.xQ,this._outsidePointerEvents=new Ee.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,jt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=zi(this._config.width),a.height=zi(this._config.height),a.minWidth=zi(this._config.minWidth),a.minHeight=zi(this._config.minHeight),a.maxWidth=zi(this._config.maxWidth),a.maxHeight=zi(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Hd(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(Je((0,Mi.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let Am=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||um()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let o of this._preferredPositions){let s=this._getOriginPoint(a,r,o),c=this._getOverlayPoint(s,e,o),u=this._getOverlayFit(c,e,t,o);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!d||d.overlayFit.visibleAreas&&(s=u,o=c)}return this._isPushed=!1,void this._applyPosition(o.position,o.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&sl(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(vm),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,o=this._isRtl()?a.left:a.right;r="start"==t.originX?d:o}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=xm(e);let{x:d,y:o}=a,s=this._getOffset(r,"x"),c=this._getOffset(r,"y");s&&(d+=s),c&&(o+=c);let m=0-o,b=o+l.height-t.height,j=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ie=this._subtractOverflows(l.height,m,b),pe=j*ie;return{visibleArea:pe,isCompletelyWithinViewport:l.width*l.height===pe,fitsInViewportVertically:ie===l.height,fitsInViewportHorizontally:j==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Bb(this._overlayRef.getConfig().minHeight),o=Bb(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=o&&o<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=xm(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),o=Math.max(a.y+r.height-l.height,0),s=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xj&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-j/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)m=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),j=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>j&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-j/2)}return{top:d,left:h,bottom:o,right:m,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=zi(t.height),r.top=zi(t.top),r.bottom=zi(t.bottom),r.width=zi(t.width),r.left=zi(t.left),r.right=zi(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=zi(l)),d&&(r.maxWidth=zi(d))}this._lastBoundingBoxSize=t,sl(this._boundingBox.style,r)}_resetBoundingBoxStyles(){sl(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){sl(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();sl(t,this._getExactOverlayY(e,a,u)),sl(t,this._getExactOverlayX(e,a,u))}else t.position="static";let o="",s=this._getOffset(e,"x"),c=this._getOffset(e,"y");s&&(o+=`translateX(${s}px) `),c&&(o+=`translateY(${c}px)`),t.transform=o.trim(),d.maxHeight&&(r?t.maxHeight=zi(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=zi(d.maxWidth):l&&(t.maxWidth="")),sl(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=zi(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=zi(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Ob(a,t),isOriginOutsideView:wm(a,t),isOverlayClipped:Ob(e,t),isOverlayOutsideView:wm(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Hd(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function sl(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Bb(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(qA);return e&&"px"!==e?null:parseFloat(a)}return n||null}function xm(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const Mm="cdk-global-overlay-wrapper";class GA{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(Mm),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:o}=t,s=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||o&&"100%"!==o&&"100vh"!==o);a.position=this._cssPosition,a.marginLeft=s?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,s?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(Mm),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let Wa=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new GA}flexibleConnectedTo(e){return new Tm(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ya),i.LFG(T.K0),i.LFG(bi),i.LFG(Am))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WA=(()=>{class n extends Oh{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZA=(()=>{class n extends Oh{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=ha(r)},this._clickListener=r=>{const l=ha(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const o=this._attachedOverlays.slice();for(let s=o.length-1;s>-1;s--){const c=o[s];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),d0=0,br=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=o,this._ngZone=s,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=m}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new fc(e);return d.direction=d.direction||this._directionality.value,new zA(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+d0++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new gA(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(o0),i.LFG(Am),i.LFG(i._Vd),i.LFG(Wa),i.LFG(WA),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(xi),i.LFG(T.Ye),i.LFG(ZA))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const $A=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Vb=new i.OlP("cdk-connected-overlay-scroll-strategy");let jb=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Bh=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=he.w.EMPTY,this._attachSubscription=he.w.EMPTY,this._detachSubscription=he.w.EMPTY,this._positionSubscription=he.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new fo(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=Oe(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=Oe(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=Oe(e)}get push(){return this._push}set push(e){this._push=Oe(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=$A);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Ki(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new fc({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof jb?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function bA(n,a=!1){return e=>e.lift(new hb(n,a))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Vb),i.Y36(xi,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const QA={provide:Vb,deps:[br],useFactory:function JA(n){return()=>n.scrollStrategies.reposition()}};let _o=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[br,QA],imports:[[dc,il,el],el]}),n})();var ol=x(13);function Vh(n){return a=>a.lift(new Yb(n))}class Yb{constructor(a){this.total=a}call(a,e){return e.subscribe(new KA(a,this.total))}}class KA extends Yn.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function ll(n,a){return e=>e.lift(new Sm(n,a))}class Sm{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new u0(a,this.compare,this.keySelector))}}class u0 extends Yn.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let Ub=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Em=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=Qi(e);return new ki.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new Ee.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ub))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=_i(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,ol.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Em),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),zd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ub]}),n})();function cl(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const qb="cdk-describedby-message",Hm="cdk-describedby-host";let Fh=0,km=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+Fh++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=qd(t,r);"string"!=typeof t?(mc(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=qd(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const o=this._messageRegistry.get(d);o&&0===o.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Hm}="${this._id}"]`);for(let r=0;r0!=r.indexOf(qb));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function zb(n,a,e){const t=cl(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Hm,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Es(n,a,e){const r=cl(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Hm)}_isElementDescribedByMessage(e,t){const r=cl(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function qd(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function mc(n){n.id||(n.id=`${qb}-${Fh++}`)}class Gb{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee.xQ,this._typeaheadSubscription=he.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Ee.xQ,this.change=new Ee.xQ,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Q.b)(e=>this._pressedLetters.push(e)),(0,ol.b)(a),(0,zt.h)(()=>this._pressedLetters.length>0),(0,dt.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Ki(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a),r=e[t];this._activeItem=null==r?null:r,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Pm extends Gb{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class dl extends Gb{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let Nh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function Rm(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function ev(n){try{return n.frameElement}catch(a){return null}}(function rv(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Jb(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Jb(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _c(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function nv(n){return!function iv(n){return function gc(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function tv(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function Wb(n){return function Zb(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||$b(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $b(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Jb(n){if(!$b(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class av{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(a)}}let Lm=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new av(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Nh),i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jr=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._focusTrapFactory=t,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(e){this.focusTrap.enabled=Oe(e)}get autoCapture(){return this._autoCapture}set autoCapture(e){this._autoCapture=Oe(e)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(e){const t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Fa(),this.focusTrap.focusInitialElementWhenReady()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[i.TTD]}),n})();function Yh(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Uh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const dv=new i.OlP("cdk-input-modality-detector-options"),uv={ignoreKeys:[18,17,224,91,16]},Gd=ja({passive:!0,capture:!0});let Kb=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new $i(null),this._lastTouchMs=0,this._onKeydown=d=>{var o,s;(null===(s=null===(o=this._options)||void 0===o?void 0:o.ignoreKeys)||void 0===s?void 0:s.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=ha(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Yh(d)?"keyboard":"mouse"),this._mostRecentTarget=ha(d))},this._onTouchstart=d=>{Uh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ha(d))},this._options=Object.assign(Object.assign({},uv),l),this.modalityDetected=this._modality.pipe(Vh(1)),this.modalityChanged=this.modalityDetected.pipe(ll()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Gd),r.addEventListener("mousedown",this._onMousedown,Gd),r.addEventListener("touchstart",this._onTouchstart,Gd)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Gd),document.removeEventListener("mousedown",this._onMousedown,Gd),document.removeEventListener("touchstart",this._onTouchstart,Gd))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(dv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const hv=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function pv(){return null}}),p0=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let fv=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(o=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,o(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l){this._elementRef=e,this._liveAnnouncer=t,this._contentObserver=r,this._ngZone=l,this._politeness="polite"}get politeness(){return this._politeness}set politeness(e){this._politeness="off"===e||"assertive"===e?e:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(fv),i.Y36(Em),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),n})();const mv=new i.OlP("cdk-focus-monitor-default-options"),Wd=ja({passive:!0,capture:!0});let rr=(()=>{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 Ee.xQ,this._rootNodeFocusAndBlurListener=o=>{const s=ha(o),c="focus"===o.type?this._onFocus:this._onBlur;for(let u=s;u;u=u.parentElement)c.call(this,o,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=Qi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,Ne.of)(null);const l=Eh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const o={checkChildren:t,subject:new Ee.xQ,rootNode:l};return this._elementInfo.set(r,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(e){const t=Qi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=Qi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([o,s])=>this._originChanged(o,t,s)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=ha(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wd),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wd)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Je(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wd),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wd),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(bi),i.LFG(Kb),i.LFG(T.K0,8),i.LFG(mv,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),gv=(()=>{class n{constructor(e,t){this._elementRef=e,this._focusMonitor=t,this.cdkFocusChange=new i.vpe}ngAfterViewInit(){const e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),n})();const Fr="cdk-high-contrast-black-on-white",_v="cdk-high-contrast-white-on-black",Xb="cdk-high-contrast-active";let Bm=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Xb),e.remove(Fr),e.remove(_v),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Xb),e.add(Fr)):2===t&&(e.add(Xb),e.add(_v))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc,zd]]}),n})();class Vm{}const bo="*";function ei(n,a){return{type:7,name:n,definitions:a,options:{}}}function ct(n,a=null){return{type:4,styles:a,timings:n}}function ey(n,a=null){return{type:3,steps:n,options:a}}function qh(n,a=null){return{type:2,steps:n,options:a}}function He(n){return{type:6,styles:n,offset:null}}function Dt(n,a,e){return{type:0,name:n,styles:a,options:e}}function ul(n){return{type:5,steps:n}}function ft(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function ty(n=null){return{type:9,options:n}}function Dn(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function bc(n){Promise.resolve(null).then(n)}class Zd{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){bc(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class iy{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?bc(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,o)=>Math.max(d,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Za(){return"undefined"!=typeof window&&void 0!==window.document}function hl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Ri(n){switch(n.length){case 0:return new Zd;case 1:return n[0];default:return new iy(n)}}function yo(n,a,e,t,r={},l={}){const d=[],o=[];let s=-1,c=null;if(t.forEach(u=>{const h=u.offset,m=h==s,b=m&&c||{};Object.keys(u).forEach(j=>{let ie=j,pe=u[j];if("offset"!==j)switch(ie=a.normalizePropertyName(ie,d),pe){case"!":pe=r[j];break;case bo:pe=l[j];break;default:pe=a.normalizeStyleValue(j,ie,pe,d)}b[ie]=pe}),m||o.push(b),c=b,s=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return o}function yc(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&ar(e,"start",n)));break;case"done":n.onDone(()=>t(e&&ar(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&ar(e,"destroy",n)))}}function ar(n,a,e){const t=e.totalTime,l=Jd(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Jd(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function pn(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function pl(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let wo=(n,a)=>!1,fl=(n,a,e)=>[];(hl()||"undefined"!=typeof Element)&&(wo=Za()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),fl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Nr=null,ml=!1;function gl(n){Nr||(Nr=function ny(){return"undefined"!=typeof document?document.body:null}()||{},ml=!!Nr.style&&"WebkitAppearance"in Nr.style);let a=!0;return Nr.style&&!function wc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Nr.style,!a&&ml&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Nr.style)),a}const Fm=wo,Nm=fl;let Ym=(()=>{class n{validateStyleProperty(e){return gl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Fm(e,t)}query(e,t,r){return Nm(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,o=[],s){return new Zd(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Gh=(()=>{class n{}return n.NOOP=new Ym,n})();const zm="ng-enter",Kd="ng-leave",Wh="ng-trigger",Xd=".ng-trigger",qm="ng-animating",Gm=".ng-animating";function _l(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:Zh(parseFloat(a[1]),a[2])}function Zh(n,a){return"s"===a?1e3*n:n}function $h(n,a,e){return n.hasOwnProperty("duration")?n:function sy(n,a,e){let r,l=0,d="";if("string"==typeof n){const o=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=Zh(parseFloat(o[1]),o[2]);const s=o[3];null!=s&&(l=Zh(parseFloat(s),o[4]));const c=o[5];c&&(d=c)}else r=n;if(!e){let o=!1,s=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),o=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),o=!0),o&&a.splice(s,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Cc(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function bl(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Cc(n,e);return e}function ly(n,a,e){return e?a+":"+e+";":""}function Jh(n){let a="";for(let e=0;e{const r=Co(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),hl()&&Jh(n))}function yl(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=Co(e);n.style[t]=""}),hl()&&Jh(n))}function Qh(n){return Array.isArray(n)?1==n.length?n[0]:qh(n):n}const cy=new RegExp("{{\\s*(.+?)\\s*}}","g");function dy(n){let a=[];if("string"==typeof n){let e;for(;e=cy.exec(n);)a.push(e[1]);cy.lastIndex=0}return a}function eu(n,a,e){const t=n.toString(),r=t.replace(cy,(l,d)=>{let o=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),o=""),o.toString()});return r==t?n:r}function Wm(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const wv=/-+([a-z0-9])/g;function Co(n){return n.replace(wv,(...a)=>a[1].toUpperCase())}function Cv(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function sr(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function tu(n,a){return window.getComputedStyle(n)[a]}function hy(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function vv(n,a,e){if(":"==n[0]){const s=function Tv(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof s)return void a.push(s);n=s}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(py(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(py(d,r))}(t,e,a)):e.push(n),e}const Xh=new Set(["true","1"]),ep=new Set(["false","0"]);function py(n,a){const e=Xh.has(n)||ep.has(n),t=Xh.has(a)||ep.has(a);return(r,l)=>{let d="*"==n||n==r,o="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Xh.has(n):ep.has(n)),!o&&t&&"boolean"==typeof l&&(o=l?Xh.has(a):ep.has(a)),d&&o}}const xv=new RegExp("s*:selfs*,?","g");function tp(n,a,e){return new Jm(n).build(a,e)}class Jm{constructor(a){this._driver=a}build(a,e){const t=new Mv(e);return this._resetContextStyleTimingState(t),sr(this,Qh(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(o=>{if(this._resetContextStyleTimingState(e),0==o.type){const s=o,c=s.name;c.toString().split(/\s*,\s*/).forEach(u=>{s.name=u,l.push(this.visitState(s,e))}),s.name=c}else if(1==o.type){const s=this.visitTransition(o,e);t+=s.queryCount,r+=s.depCount,d.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};if(t.styles.forEach(o=>{if(Ao(o)){const s=o;Object.keys(s).forEach(c=>{dy(s[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const o=Wm(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${o.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=sr(this,Qh(a.animation),e);return{type:1,matchers:hy(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Ds(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>sr(this,t,e)),options:Ds(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const o=sr(this,d,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:l,options:Ds(a.options)}}visitAnimate(a,e){const t=function fy(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return iu($h(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=iu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||$h(t,a),iu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:He({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,o=!1;if(!d){o=!0;const c={};t.easing&&(c.easing=t.easing),d=He(c)}e.currentTime+=t.duration+t.delay;const s=this.visitStyle(d,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==bo?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(Ao(d)){const o=d,s=o.easing;if(s&&(l=s,delete o.easing),!r)for(let c in o)if(o[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(o=>{if(!this._driver.validateStyleProperty(o))return void e.errors.push(`The provided animation property "${o}" is not a supported CSS property for animations`);const s=e.collectedStyles[e.currentQuerySelector],c=s[o];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${o}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(s[o]={startTime:l,endTime:r}),e.options&&function g0(n,a,e){const t=a.params||{},r=dy(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[o],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let o=!1,s=!1,c=0;const u=a.steps.map(Ue=>{const Tt=this._makeStyleAst(Ue,e);let at=null!=Tt.offset?Tt.offset:function b0(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(Ao(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(Ao(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(Tt.styles),Ut=0;return null!=at&&(l++,Ut=Tt.offset=at),s=s||Ut<0||Ut>1,o=o||Ut0&&l{const at=m>0?Tt==b?1:m*Tt:d[Tt],Ut=at*pe;e.currentTime=j+ie.delay+Ut,ie.duration=Ut,this._validateStyleAst(Ue,e),Ue.offset=at,t.styles.push(Ue)}),t}visitReference(a,e){return{type:8,animation:sr(this,Qh(a.animation),e),options:Ds(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Ds(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Ds(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function _0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(xv,"")),n=n.replace(/@\*/g,Xd).replace(/@\w+/g,e=>Xd+"-"+e.substr(1)).replace(/:animating/g,Gm),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,pn(e.collectedStyles,e.currentQuerySelector,{});const o=sr(this,Qh(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:o,originalSelector:a.selector,options:Ds(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:$h(a.timings,e.errors,!0);return{type:12,animation:sr(this,Qh(a.animation),e),timings:t,options:null}}}class Mv{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ao(n){return!Array.isArray(n)&&"object"==typeof n}function Ds(n){return n?(n=Cc(n)).params&&(n.params=function Qm(n){return n?Cc(n):null}(n.params)):n={},n}function iu(n,a,e){return{duration:n,delay:a,easing:e}}function Km(n,a,e,t,r,l,d=null,o=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:o}}class Ac{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const y0=new RegExp(":enter","g"),eg=new RegExp(":leave","g");function nu(n,a,e,t,r,l={},d={},o,s,c=[]){return(new gy).buildKeyframes(n,a,e,t,r,l,d,o,s,c)}class gy{buildKeyframes(a,e,t,r,l,d,o,s,c,u=[]){c=c||new Ac;const h=new au(a,e,c,r,l,u,[]);h.options=s,h.currentTimeline.setStyles([d],null,h.errors,s),sr(this,t,h);const m=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(o).length){let b;for(let j=m.length-1;j>=0;j--){const ie=m[j];if(ie.element===e){b=ie;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([o],null,h.errors,s)}return m.length?m.map(b=>b.buildKeyframes()):[Km(e,[],[],[],0,0,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?_l(t.duration):null,o=null!=t.delay?_l(t.delay):null;return 0!==d&&a.forEach(s=>{const c=e.appendInstructionToTimeline(s,d,o);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),sr(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ru);const d=_l(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>sr(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?_l(a.options.delay):0;a.steps.forEach(d=>{const o=e.createSubContext(a.options);l&&o.delayNextStep(l),sr(this,d,o),r=Math.max(r,o.currentTimeline.currentTime),t.push(o.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return $h(e.params?eu(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,o=e.createSubContext().currentTimeline;o.easing=t.easing,a.styles.forEach(s=>{o.forwardTime((s.offset||0)*l),o.setStyles(s.styles,s.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?_l(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ru);let d=t;const o=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let s=null;o.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(s=h.currentTimeline),sr(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),s&&(e.currentTimeline.mergeTimelineCollectedStyles(s),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),o=d*(e.currentQueryTotal-1);let s=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":s=o-s;break;case"full":s=t.currentStaggerTime}const u=e.currentTimeline;s&&u.delayNextStep(s);const h=u.currentTime;sr(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ru={};class au{constructor(a,e,t,r,l,d,o,s){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new su(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=_l(t.duration)),null!=t.delay&&(r.delay=_l(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(o=>{(!e||!d.hasOwnProperty(o))&&(d[o]=eu(l[o],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new au(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new _y(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let o=[];if(r&&o.push(this.element),a.length>0){a=(a=a.replace(y0,"."+this._enterClassName)).replace(eg,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),o.push(...c)}return!l&&0==o.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class su{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new su(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||bo,this._currentKeyframe[e]=bo}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function tg(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=bo})):bl(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(o=>{const s=eu(d[o],l,t);this._pendingStyles[o]=s,this._localTimelineStyles.hasOwnProperty(o)||(this._backFill[o]=this._globalTimelineStyles.hasOwnProperty(o)?this._globalTimelineStyles[o]:bo),this._updateStyle(o,s)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[a]=e,this._updateStyle(a,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const c=bl(o,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==bo&&e.add(u)}),t||(c.offset=s/this.duration),r.push(c)});const l=a.size?Wm(a.values()):[],d=e.size?Wm(e.values()):[];if(t){const o=r[0],s=Cc(o);o.offset=0,s.offset=1,r=[o,s]}return Km(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class _y extends su{constructor(a,e,t,r,l,d,o=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=o,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,o=e/d,s=bl(a[0],!1);s.offset=0,l.push(s);const c=bl(a[0],!1);c.offset=ip(o),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let m=bl(a[h],!1);m.offset=ip((e+m.offset*t)/d),l.push(m)}t=d,e=0,r="",a=l}return Km(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function ip(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class np{}class ig extends np{normalizePropertyName(a,e){return Co(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(by[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const o=t.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const by=(()=>function Dv(n){const a={};return n.forEach(e=>a[e]=!0),a}("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".split(",")))();function ng(n,a,e,t,r,l,d,o,s,c,u,h,m){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:o,queriedElements:s,preStyleProps:c,postStyleProps:u,totalTime:h,errors:m}}const rp={};class ap{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function rg(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,o,s,c,u){const h=[],m=this.ast.options&&this.ast.options.params||rp,j=this.buildStyles(t,o&&o.params||rp,h),ie=s&&s.params||rp,pe=this.buildStyles(r,ie,h),Ue=new Set,Tt=new Map,at=new Map,Ut="void"===r,Ca={params:Object.assign(Object.assign({},m),ie)},ns=u?[]:nu(a,e,this.ast.animation,l,d,j,pe,Ca,c,h);let vr=0;if(ns.forEach(jl=>{vr=Math.max(jl.duration+jl.delay,vr)}),h.length)return ng(e,this._triggerName,t,r,Ut,j,pe,[],[],Tt,at,vr,h);ns.forEach(jl=>{const Fl=jl.element,LD=pn(Tt,Fl,{});jl.preStyleProps.forEach(Gu=>LD[Gu]=!0);const B_=pn(at,Fl,{});jl.postStyleProps.forEach(Gu=>B_[Gu]=!0),Fl!==e&&Ue.add(Fl)});const Vl=Wm(Ue.values());return ng(e,this._triggerName,t,r,Ut,j,pe,ns,Vl,Tt,at,vr)}}class yy{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Cc(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(o=>{let s=d[o];s.length>1&&(s=eu(s,r,e));const c=this.normalizer.normalizePropertyName(o,e);s=this.normalizer.normalizeStyleValue(o,c,s,e),t[c]=s})}}),t}}class Cy{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new yy(r.style,r.options&&r.options.params||{},t)}),ag(this.states,"true","1"),ag(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new ap(a,r,this.states))}),this.fallbackTransition=function Ay(n,a,e){return new ap(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,o)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function ag(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const vy=new Ac;class Ty{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=tp(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=yo(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const o=new Map;if(l?(d=nu(this._driver,e,l,zm,Kd,{},{},t,vy,r),d.forEach(u=>{const h=pn(o,u.element,{});u.postStyleProps.forEach(m=>h[m]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);o.forEach((u,h)=>{Object.keys(u).forEach(m=>{u[m]=this._driver.computeStyle(h,m,bo)})});const c=Ri(d.map(u=>{const h=o.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Jd(e,"","","");return yc(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const sg="ng-animate-queued",og="ng-animate-disabled",sn=[],lg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pv={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ur="__ng_removed";class sp{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function Sy(n){return null!=n?n:null}(t?a.value:a),t){const l=Cc(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const ou="void",op=new sp(ou);class My{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,qi(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function Ey(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=pn(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const o=pn(this._engine.statesByElement,a,{});return o.hasOwnProperty(e)||(qi(a,Wh),qi(a,Wh+"-"+e),o[e]=op),()=>{this._engine.afterFlush(()=>{const s=l.indexOf(d);s>=0&&l.splice(s,1),this._triggers[e]||delete o[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new cg(this.id,e,a);let o=this._engine.statesByElement.get(a);o||(qi(a,Wh),qi(a,Wh+"-"+e),this._engine.statesByElement.set(a,o={}));let s=o[e];const c=new sp(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&s&&c.absorbOptions(s.options),o[e]=c,s||(s=op),c.value!==ou&&s.value===c.value){if(!function pa(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{yl(a,pe),Yr(a,Ue)})}return}const m=pn(this._engine.playersByElement,a,[]);m.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==e&&ie.queued&&ie.destroy()});let b=l.matchTransition(s.value,c.value,a,c.params),j=!1;if(!b){if(!r)return;b=l.fallbackTransition,j=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:s,toState:c,player:d,isFallbackTransition:j}),j||(qi(a,sg),d.onStart(()=>{Tc(a,sg)})),d.onDone(()=>{let ie=this.players.indexOf(d);ie>=0&&this.players.splice(ie,1);const pe=this._engine.playersByElement.get(a);if(pe){let Ue=pe.indexOf(d);Ue>=0&&pe.splice(Ue,1)}}),this.players.push(d),m.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[a]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,Xd,!0);t.forEach(r=>{if(r[Ur])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const o=[];if(Object.keys(l).forEach(s=>{if(d.set(s,l[s].value),this._triggers[s]){const c=this.trigger(a,s,ou,r);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Ri(o).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const s=this._triggers[d].fallbackTransition,c=t[d]||op,u=new sp(ou),h=new cg(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:s,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[Ur];(!l||l===lg)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){qi(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(o=>{if(o.name==t.triggerName){const s=Jd(l,t.triggerName,t.fromState.value,t.toState.value);s._data=a,yc(t.player,o.phase,s,o.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class vc{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new My(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),qi(a,og)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),Tc(a,og))}removeNode(a,e,t,r){if(lp(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[Ur]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return lp(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Xd,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Gm,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Ri(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[Ur];if(t&&t.setForRemoval){if(a[Ur]=lg,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(og))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Ri(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Ac,r=[],l=new Map,d=[],o=new Map,s=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Xe=>{u.add(Xe);const lt=this.driver.query(Xe,".ng-animate-queued",!0);for(let ut=0;ut{const ut=zm+ie++;j.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))});const pe=[],Ue=new Set,Tt=new Set;for(let Xe=0;XeUe.add(Kt)):Tt.add(lt))}const at=new Map,Ut=dp(m,Array.from(Ue));Ut.forEach((Xe,lt)=>{const ut=Kd+ie++;at.set(lt,ut),Xe.forEach(Kt=>qi(Kt,ut))}),a.push(()=>{b.forEach((Xe,lt)=>{const ut=j.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),Ut.forEach((Xe,lt)=>{const ut=at.get(lt);Xe.forEach(Kt=>Tc(Kt,ut))}),pe.forEach(Xe=>{this.processLeaveNode(Xe)})});const Ca=[],ns=[];for(let Xe=this._namespaceList.length-1;Xe>=0;Xe--)this._namespaceList[Xe].drainQueuedTransitions(e).forEach(ut=>{const Kt=ut.player,In=ut.element;if(Ca.push(Kt),this.collectedEnterElements.length){const Tr=In[Ur];if(Tr&&Tr.setForMove){if(Tr.previousTriggersValues&&Tr.previousTriggersValues.has(ut.triggerName)){const Wu=Tr.previousTriggersValues.get(ut.triggerName),Kc=this.statesByElement.get(ut.element);Kc&&Kc[ut.triggerName]&&(Kc[ut.triggerName].value=Wu)}return void Kt.destroy()}}const Ho=!h||!this.driver.containsElement(h,In),Aa=at.get(In),Qc=j.get(In),Wi=this._buildInstruction(ut,t,Qc,Aa,Ho);if(Wi.errors&&Wi.errors.length)return void ns.push(Wi);if(Ho)return Kt.onStart(()=>yl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);if(ut.isFallbackTransition)return Kt.onStart(()=>yl(In,Wi.fromStyles)),Kt.onDestroy(()=>Yr(In,Wi.toStyles)),void r.push(Kt);const BD=[];Wi.timelines.forEach(Tr=>{Tr.stretchStartingKeyframe=!0,this.disabledNodes.has(Tr.element)||BD.push(Tr)}),Wi.timelines=BD,t.append(In,Wi.timelines),d.push({instruction:Wi,player:Kt,element:In}),Wi.queriedElements.forEach(Tr=>pn(o,Tr,[]).push(Kt)),Wi.preStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);if(Kc.length){let Zu=s.get(Wu);Zu||s.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))}}),Wi.postStyleProps.forEach((Tr,Wu)=>{const Kc=Object.keys(Tr);let Zu=c.get(Wu);Zu||c.set(Wu,Zu=new Set),Kc.forEach(fM=>Zu.add(fM))})});if(ns.length){const Xe=[];ns.forEach(lt=>{Xe.push(`@${lt.triggerName} has failed due to:\n`),lt.errors.forEach(ut=>Xe.push(`- ${ut}\n`))}),Ca.forEach(lt=>lt.destroy()),this.reportError(Xe)}const vr=new Map,Vl=new Map;d.forEach(Xe=>{const lt=Xe.element;t.has(lt)&&(Vl.set(lt,lt),this._beforeAnimationBuild(Xe.player.namespaceId,Xe.instruction,vr))}),r.forEach(Xe=>{const lt=Xe.element;this._getPreviousPlayers(lt,!1,Xe.namespaceId,Xe.triggerName,null).forEach(Kt=>{pn(vr,lt,[]).push(Kt),Kt.destroy()})});const jl=pe.filter(Xe=>dg(Xe,s,c)),Fl=new Map;cp(Fl,this.driver,Tt,c,bo).forEach(Xe=>{dg(Xe,s,c)&&jl.push(Xe)});const B_=new Map;b.forEach((Xe,lt)=>{cp(B_,this.driver,new Set(Xe),s,"!")}),jl.forEach(Xe=>{const lt=Fl.get(Xe),ut=B_.get(Xe);Fl.set(Xe,Object.assign(Object.assign({},lt),ut))});const Gu=[],ID=[],OD={};d.forEach(Xe=>{const{element:lt,player:ut,instruction:Kt}=Xe;if(t.has(lt)){if(u.has(lt))return ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ut.disabled=!0,ut.overrideTotalTime(Kt.totalTime),void r.push(ut);let In=OD;if(Vl.size>1){let Aa=lt;const Qc=[];for(;Aa=Aa.parentNode;){const Wi=Vl.get(Aa);if(Wi){In=Wi;break}Qc.push(Aa)}Qc.forEach(Wi=>Vl.set(Wi,In))}const Ho=this._buildAnimation(ut.namespaceId,Kt,vr,l,B_,Fl);if(ut.setRealPlayer(Ho),In===OD)Gu.push(ut);else{const Aa=this.playersByElement.get(In);Aa&&Aa.length&&(ut.parentPlayer=Ri(Aa)),r.push(ut)}}else yl(lt,Kt.fromStyles),ut.onDestroy(()=>Yr(lt,Kt.toStyles)),ID.push(ut),u.has(lt)&&r.push(ut)}),ID.forEach(Xe=>{const lt=l.get(Xe.element);if(lt&<.length){const ut=Ri(lt);Xe.setRealPlayer(ut)}}),r.forEach(Xe=>{Xe.parentPlayer?Xe.syncPlayerEvents(Xe.parentPlayer):Xe.destroy()});for(let Xe=0;Xe!Ho.destroyed);In.length?Dy(this,lt,In):this.processLeaveNode(lt)}return pe.length=0,Gu.forEach(Xe=>{this.players.push(Xe),Xe.onDone(()=>{Xe.destroy();const lt=this.players.indexOf(Xe);this.players.splice(lt,1)}),Xe.play()}),Gu}elementContainsData(a,e){let t=!1;const r=e[Ur];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let d=[];if(e){const o=this.playersByQueriedElement.get(a);o&&(d=o)}else{const o=this.playersByElement.get(a);if(o){const s=!l||l==ou;o.forEach(c=>{c.queued||!s&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(o=>!(t&&t!=o.namespaceId||r&&r!=o.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const c=s.element,u=c!==l,h=pn(t,c,[]);this._getPreviousPlayers(c,u,d,o,e.toState).forEach(b=>{const j=b.getRealPlayer();j.beforeDestroy&&j.beforeDestroy(),b.destroy(),h.push(b)})}yl(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const o=e.triggerName,s=e.element,c=[],u=new Set,h=new Set,m=e.timelines.map(j=>{const ie=j.element;u.add(ie);const pe=ie[Ur];if(pe&&pe.removedBeforeQueried)return new Zd(j.duration,j.delay);const Ue=ie!==s,Tt=function $a(n){const a=[];return zr(n,a),a}((t.get(ie)||sn).map(vr=>vr.getRealPlayer())).filter(vr=>!!vr.element&&vr.element===ie),at=l.get(ie),Ut=d.get(ie),Ca=yo(0,this._normalizer,0,j.keyframes,at,Ut),ns=this._buildPlayer(j,Ca,Tt);if(j.subTimeline&&r&&h.add(ie),Ue){const vr=new cg(a,o,ie);vr.setRealPlayer(ns),c.push(vr)}return ns});c.forEach(j=>{pn(this.playersByQueriedElement,j.element,[]).push(j),j.onDone(()=>function Rv(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,j.element,j))}),u.forEach(j=>qi(j,qm));const b=Ri(m);return b.onDestroy(()=>{u.forEach(j=>Tc(j,qm)),Yr(s,e.toStyles)}),h.forEach(j=>{pn(r,j,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new Zd(a.duration,a.delay)}}class cg{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new Zd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>yc(a,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){pn(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function lp(n){return n&&1===n.nodeType}function Lv(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function cp(n,a,e,t,r){const l=[];e.forEach(s=>l.push(Lv(s)));const d=[];t.forEach((s,c)=>{const u={};s.forEach(h=>{const m=u[h]=a.computeStyle(c,h,r);(!m||0==m.length)&&(c[Ur]=Pv,d.push(c))}),n.set(c,u)});let o=0;return e.forEach(s=>Lv(s,l[o++])),d}function dp(n,a){const e=new Map;if(n.forEach(o=>e.set(o,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(o){if(!o)return 1;let s=l.get(o);if(s)return s;const c=o.parentNode;return s=e.has(c)?c:r.has(c)?1:d(c),l.set(o,s),s}return a.forEach(o=>{const s=d(o);1!==s&&e.get(s).push(o)}),e}function qi(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function Tc(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function Dy(n,a,e){Ri(e).onDone(()=>n.processLeaveNode(a))}function zr(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class lu{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new vc(a,e,t),this._timelineEngine=new Ty(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let o=this._triggerCache[d];if(!o){const s=[],c=tp(this._driver,l,s);if(s.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${s.join("\n - ")}`);o=function wy(n,a,e){return new Cy(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=o}this._transitionEngine.registerTrigger(e,r,o)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,d]=pl(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,o]=pl(t);return this._timelineEngine.listen(d,e,o,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Ov=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&Yr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Yr(this._element,this._initialStyles),this._endStyles&&(Yr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(yl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(yl(this._element,this._endStyles),this._endStyles=null),Yr(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function ug(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:tu(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class cu{validateStyleProperty(a){return gl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Fm(a,e)}query(a,e,t){return Nm(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const s={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(s.easing=l);const c={},u=d.filter(m=>m instanceof up);(function uy(n,a){return 0===n||0===a})(t,r)&&u.forEach(m=>{let b=m.currentSnapshot;Object.keys(b).forEach(j=>c[j]=b[j])}),e=function Av(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(o=>{l.hasOwnProperty(o)||d.push(o),l[o]=e[o]}),d.length)for(var r=1;rbl(m,!1)),c);const h=function Iv(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=ug(a[0]),a.length>1&&(t=ug(a[a.length-1]))):a&&(e=ug(a)),e||t?new Ov(n,e,t):null}(a,e);return new up(a,e,s,h)}}let Vv=(()=>{class n extends Vm{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?qh(e):e;return hg(this._renderer,null,t,"register",[r]),new Hy(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Hy extends class bv{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new jv(this._id,a,e||{},this._renderer)}}class jv{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return hg(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function hg(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const uu="@.disabled";let Fv=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const o=null==d?void 0:d.parentNode(l);o&&d.removeChild(o,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new pg("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);const s=u=>{Array.isArray(u)?u.forEach(s):this.engine.registerTrigger(d,o,e,u.name,u)};return t.data.animation.forEach(s),new ky(this,o,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,o]=l;d(o)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(lu),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class pg{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==uu?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class ky extends pg{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==uu?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function fg(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function hp(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,o=>{this.factory.scheduleListenerCallback(o._data||-1,t,o)})}return this.delegate.listen(a,e,t)}}let mg=(()=>{class n extends lu{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(Gh),i.LFG(np))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Si=new i.OlP("AnimationModuleType"),gg=[{provide:Vm,useClass:Vv},{provide:np,useFactory:function Py(){return new ig}},{provide:lu,useClass:mg},{provide:i.FYo,useFactory:function Ry(n,a,e){return new Fv(n,a,e)},deps:[ke,lu,i.R0b]}],_g=[{provide:Gh,useFactory:()=>new cu},{provide:Si,useValue:"BrowserAnimations"},...gg],Ly=[{provide:Gh,useClass:Ym},{provide:Si,useValue:"NoopAnimations"},...gg];let Iy=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?Ly:_g}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:_g,imports:[xa]}),n})();function Yv(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function Uv(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const zv=["*"];let qv=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),Gv=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const Zv=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function Wv(){return!0}});let st=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!um()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Bm),i.LFG(Zv,8),i.LFG(T.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc],dc]}),n})();function fa(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=Oe(a)}}}function Ja(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function ma(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=Oe(a)}}}function wl(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?_i(e):this.defaultTabIndex}}}function pp(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new Ee.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function bg(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new ki.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const vo=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function By(){return(0,i.f3M)(i.soG)}});class Ai{constructor(){this._localeChanges=new Ee.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const yr=new i.OlP("mat-date-formats"),Vy=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function fp(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return fp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return fp(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return fp(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(Vy.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vo,8),i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yg={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:mp}],imports:[[cc]]}),n})(),jy=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:yr,useValue:yg}],imports:[[Cl]]}),n})(),wr=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function _p(n,a,e){n.nativeElement.classList.toggle(a,e)}let hu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();class Fy{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Jv={enterDuration:225,exitDuration:150},wg=ja({passive:!0}),Ny=["mousedown","touchstart"],Yy=["mouseup","mouseleave","touchend","touchcancel"];class pu{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Qi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},Jv),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function bp(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),o=a-r.left,s=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=o-d+"px",u.style.top=s-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function Qv(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new Fy(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const m=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!m||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},Jv),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=Qi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Ny))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Yy),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Yh(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,wg)})})}_removeTriggerEvents(){this._triggerElement&&(Ny.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}),this._pointerUpEventsRegistered&&Yy.forEach(a=>{this._triggerElement.removeEventListener(a,this,wg)}))}}const fu=new i.OlP("mat-ripple-global-options");let qt=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new pu(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(bi),i.Y36(fu,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,cc],st]}),n})(),Cg=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),Ag=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st]]}),n})();const Uy=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),vg=new i.OlP("MatOptgroup");let tT=0;class iT{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let mu=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+tT++,this.onSelectionChange=new i.vpe,this._stateChanges=new Ee.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=Oe(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Ki(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new iT(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),xc=(()=>{class n extends mu{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Uy,8),i.Y36(vg,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:zv,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Yv,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,Uv,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[Cg,T.O5,qt],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function zy(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;d{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,T.ez,st,Ag]]}),n})();function qy(n,a){}class gu{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const Gy={dialogContainer:ei("dialogContainer",[Dt("void, exit",He({opacity:0,transform:"scale(0.7)"})),Dt("enter",He({transform:"none"})),ft("* => enter",ct("150ms cubic-bezier(0, 0, 0.2, 1)",He({transform:"none",opacity:1}))),ft("* => void, * => exit",ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",He({opacity:0})))])};let _u=(()=>{class n extends pm{constructor(e,t,r,l,d,o,s,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=o,this._ngZone=s,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Fa(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Fa())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Fa();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(i.sBO),i.Y36(T.K0,8),i.Y36(gu),i.Y36(Nh),i.Y36(i.R0b),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Ua,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),bu=(()=>{class n extends _u{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,qy,0,0,"ng-template",0)},directives:[Ua],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Gy.dialogContainer]}}),n})(),rT=0;class Hn{constructor(a,e,t="mat-dialog-"+rT++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Ee.xQ,this._afterClosed=new Ee.xQ,this._beforeClosed=new Ee.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,zt.h)(r=>"opened"===r.state),(0,jt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,zt.h)(r=>"closed"===r.state),(0,jt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,zt.h)(r=>27===r.keyCode&&!this.disableClose&&!Ki(r))).subscribe(r=>{r.preventDefault(),Wy(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Wy(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,zt.h)(e=>"closing"===e.state),(0,jt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Wy(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const qr=new i.OlP("MatDialogData"),Zy=new i.OlP("mat-dialog-default-options"),Tg=new i.OlP("mat-dialog-scroll-strategy"),aT={provide:Tg,deps:[br],useFactory:function $y(n){return()=>n.scrollStrategies.block()}};let sT=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=s,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Ee.xQ,this._afterOpenedAtThisLevel=new Ee.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=Kn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Wt(void 0))),this._scrollStrategy=o}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function k0(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new gu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const o=l._animationStateChanged.subscribe(s=>{"opening"===s.state&&(this._dialogAnimatingOpen=!0),"opened"===s.state&&(this._dialogAnimatingOpen=!1,o.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new he.w),this._animationStateSubscriptions.add(o)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new fc({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:gu,useValue:t}]}),d=new tl(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new fo(e,null,{$implicit:l.data,dialogRef:d}));else{const o=this._createInjector(l,d,t),s=t.attachComponentPortal(new tl(e,l.viewContainerRef,o));d.componentInstance=s.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(xi,null,i.XFs.Optional))&&d.push({provide:xi,useValue:{value:e.direction,change:(0,Ne.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),fn=(()=>{class n extends sT{constructor(e,t,r,l,d,o,s,c){super(e,t,l,o,s,d,Hn,bu,qr,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(br),i.LFG(i.zs3),i.LFG(T.Ye,8),i.LFG(Zy,8),i.LFG(Tg),i.LFG(n,12),i.LFG(Am),i.LFG(Si,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),P0=0,or=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+P0++}ngOnInit(){this._dialogRef||(this._dialogRef=function oT(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn,8),i.Y36(i.SBq),i.Y36(fn))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),kn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Cr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),yu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fn,aT],imports:[[_o,il,st],st]}),n})();var Sc=x(6114);let wu=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(C),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(o=>{o.idpFilter&&(this.filterShortname=String(o.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,zt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(o=>{const s=o.split("=");d[s[0]]=s[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,zt.h)(e=>e instanceof wt)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(hn),i.LFG(fn),i.LFG(yn),i.LFG(Sc.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ka(n){return!!n&&(n instanceof ki.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var lT=x(7830);function xg(...n){if(1===n.length){const a=n[0];if((0,em.k)(a))return yp(a,null);if((0,lT.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return yp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return yp(n=1===n.length&&(0,em.k)(n[0])?n[0]:n,null).pipe((0,dt.U)(e=>a(...e)))}return yp(n,null)}function yp(n,a){return new ki.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let o=0;o{c||(c=!0,d++),r[o]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,m)=>(u[h]=r[m],u),{}):r),e.complete())}}))}})}const dT=new class cT extends nm.v{}(class Jy extends im.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var To=x(9312);class wp extends Yn.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(wp.dispatch,this.delay,new Ky(a,this.destination)))}_next(a){this.scheduleMessage(To.P.createNext(a))}_error(a){this.scheduleMessage(To.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(To.P.createComplete()),this.unsubscribe()}}class Ky{constructor(a,e){this.notification=a,this.destination=e}}var uT=x(5283);class Xy extends Ee.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new hT(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new ed.N;if(this.isStopped||this.hasError?d=he.w.EMPTY:(this.observers.push(a),d=new uT.W(this,a)),r&&a.add(a=new wp(a,r)),e)for(let o=0;oe&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class hT{constructor(a,e){this.time=a,this.value=e}}function Cp(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function pT({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,o=!1,s=!1;return function(u){l++,(!r||o)&&(o=!1,r=new Xy(n,a,t),d=u.subscribe({next(m){r.next(m)},error(m){o=!0,r.error(m)},complete(){s=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!s&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class Ec{}let Mg=(()=>{class n extends Ec{getTranslation(e){return(0,Ne.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Sg{}let ew=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function Ap(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!Ap(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Eg(a[t])?t in n?e[t]=Dg(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class vp{}let tw=(()=>{class n extends vp{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Xa(e)||!Xa(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Xa(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Tp{}let iw=(()=>{class n extends Tp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class nw{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const Hg=new i.OlP("USE_STORE"),kg=new i.OlP("USE_DEFAULT_LANG"),Pg=new i.OlP("DEFAULT_LANGUAGE"),xp=new i.OlP("USE_EXTEND");let Li=(()=>{class n{constructor(e,t,r,l,d,o=!0,s=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=o,this.isolate=s,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,Ne.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,jt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,Ne.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Cp(1),(0,jt.q)(1));return this.loadingTranslations=t.pipe((0,dt.U)(r=>this.compiler.compileTranslations(r,e)),Cp(1),(0,jt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Dg(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},o=!1;for(let s of t)d[s]=this.getParsedResult(e,s,r),Ka(d[s])&&(o=!0);return o?xg(t.map(c=>Ka(d[c])?d[c]:(0,Ne.of)(d[c]))).pipe((0,dt.U)(c=>{let u={};return c.forEach((h,m)=>{u[t[m]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Er.b)(r=>Ka(r=this.getParsedResult(r,e,t))?r:(0,Ne.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return Ka(r)?r:(0,Ne.of)(r)}}getStreamOnTranslationChange(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onTranslationChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,Ne.of)(l)})))}stream(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');return Tn(Kn(()=>this.get(e,t)),this.onLangChange.pipe((0,nn.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return Ka(l)?l:(0,Ne.of)(l)})))}instant(e,t){if(!Xa(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(Ka(r)){if(e instanceof Array){let l={};return e.forEach((d,o)=>{l[e[o]]=e[o]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nw),i.LFG(Ec),i.LFG(Tp),i.LFG(vp),i.LFG(Sg),i.LFG(kg),i.LFG(Hg),i.LFG(xp),i.LFG(Pg))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ct=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);Ka(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(Ap(e,this.lastKey)&&Ap(t,this.lastParams))return this.value;let r;if(Xa(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Dc=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},nw,{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:Ec,useClass:Mg},e.compiler||{provide:Tp,useClass:iw},e.parser||{provide:vp,useClass:tw},e.missingTranslationHandler||{provide:Sg,useClass:ew},{provide:Hg,useValue:e.isolate},{provide:kg,useValue:e.useDefaultLang},{provide:xp,useValue:e.extend},{provide:Pg,useValue:e.defaultLanguage},Li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),fT=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[kn],pipes:[Ct],styles:[""]}),n})();const mT=["mat-button",""],gT=["*"],aw=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Lg=Ja(fa(ma(class{constructor(n){this._elementRef=n}})));let Ft=(()=>{class n extends Lg{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of aw)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(rr),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&i.Gf(qt,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:mT,ngContentSelectors:gT,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[qt],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),Gr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st],st]}),n})();const _T=["connectionContainer"],sw=["inputContainer"],bT=["label"];function ow(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function yT(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function lw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function O0(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function wT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Cu(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,lw,4,1,"ng-container",12),i.YNc(3,O0,1,0,"ng-content",12),i.YNc(4,wT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function CT(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function Hc(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Au(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function AT(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function B0(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,AT,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const cw=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],vT=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let TT=0;const dw=new i.OlP("MatError");let Hs=(()=>{class n{constructor(e,t){this.id="mat-error-"+TT++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:dw,useExisting:n}])]}),n})();const uw={transitionMessages:ei("transitionMessages",[Dt("enter",He({opacity:1,transform:"translateY(0%)"})),ft("void => enter",[He({opacity:0,transform:"translateY(-5px)"}),ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),xT=0;const Og=new i.OlP("MatHint");let pw=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+xT++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:Og,useExisting:n}])]}),n})(),es=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),MT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const ST=new i.OlP("MatPrefix"),mw=new i.OlP("MatSuffix");let gw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:mw,useExisting:n}])]}),n})(),_w=0;const bw=Ja(class{constructor(n){this._elementRef=n}},"primary"),kc=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bg=new i.OlP("MatFormField");let Wn=(()=>{class n extends bw{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+_w++,this._labelId="mat-form-field-label-"+_w++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==s,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Oe(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(Wt(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Je(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Je(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Mi.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Wt(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Wt(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Je(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,ua(this._label.nativeElement,"transitionend").pipe((0,jt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*j+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,zd],st]}),n})();function Tu(n){return n&&"function"==typeof n.connect}class Vg{applyChanges(a,e,t,r,l){a.forEachOperation((d,o,s)=>{let c,u;if(null==d.previousIndex){const h=t(d,o,s);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==s?(e.remove(o),u=3):(c=e.get(o),e.move(c,s),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class Ii{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Ee.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}}let Ep=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xu=new i.OlP("_ViewRepeater");let yw=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),Tl=(()=>{class n extends yw{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const lr=new i.OlP("NgValueAccessor"),kT={provide:lr,useExisting:(0,i.Gpc)(()=>Pn),multi:!0},Cw=new i.OlP("CompositionEventMode");let Pn=(()=>{class n extends yw{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mu(){const n=(0,T.q)()?(0,T.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Cw,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([kT]),i.qOj]}),n})();function ks(n){return null==n||0===n.length}function jg(n){return null!=n&&"number"==typeof n.length}const on=new i.OlP("NgValidators"),Ps=new i.OlP("NgAsyncValidators"),PT=/^(?=.{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 Oi{static min(a){return function Fg(n){return a=>{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(ks(a.value)||ks(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Aw(a)}static requiredTrue(a){return function vw(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Pc(n){return ks(n.value)||PT.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function Tw(n){return a=>ks(a.value)||!jg(a.value)?null:a.value.lengthjg(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function ga(n){if(!n)return Hp;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(ks(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return Du(a)}static composeAsync(a){return Sw(a)}}function Aw(n){return ks(n.value)?{required:!0}:null}function Hp(n){return null}function Su(n){return null!=n}function Rc(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function xw(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function Mw(n,a){return a.map(e=>e(n))}function Eu(n){return n.map(a=>function RT(n){return!n.validate}(a)?a:e=>a.validate(e))}function Du(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xw(Mw(e,a))}}function Yg(n){return null!=n?Du(Eu(n)):null}function Sw(n){if(!n)return null;const a=n.filter(Su);return 0==a.length?null:function(e){return xg(Mw(e,a).map(Rc)).pipe((0,dt.U)(xw))}}function kp(n){return null!=n?Sw(Eu(n)):null}function Ug(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Pp(n){return n._rawValidators}function zg(n){return n._rawAsyncValidators}function qg(n){return n?Array.isArray(n)?n:[n]:[]}function Rp(n,a){return Array.isArray(n)?n.includes(a):n===a}function LT(n,a){const e=qg(a);return qg(n).forEach(r=>{Rp(e,r)||e.push(r)}),e}function Lp(n,a){return qg(a).filter(e=>!Rp(n,e))}class Ip{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(a){this._rawValidators=a||[],this._composedValidatorFn=Yg(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=kp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Wr extends Ip{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wn extends Ip{get formDirective(){return null}get path(){return null}}class Op{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let cr=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wr,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ew=(()=>{class n extends Op{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Gg(n,a){return[...a.path,n]}function Rs(n,a){Fp(n,a),a.valueAccessor.writeValue(n.value),function YT(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Zg(n,a)})}(n,a),function Pw(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function Wg(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Zg(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function NT(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function jp(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Np(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Oc(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Fp(n,a){const e=Pp(n);null!==a.validator?n.setValidators(Ug(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=zg(n);null!==a.asyncValidator?n.setAsyncValidators(Ug(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Oc(a._rawValidators,r),Oc(a._rawAsyncValidators,r)}function Np(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Pp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=zg(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Oc(a._rawValidators,t),Oc(a._rawAsyncValidators,t),e}function Zg(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Hu(n,a){Fp(n,a)}function Jg(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function ku(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Yp(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===Pn?e=l:function Lw(n){return Object.getPrototypeOf(n.constructor)===Tl}(l)?t=l:r=l}),r||t||e||null}function Qg(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const Up="VALID",zp="INVALID",Bc="PENDING",Vc="DISABLED";function Kg(n){return(Gp(n)?n.validators:n)||null}function Xg(n){return Array.isArray(n)?Yg(n):n||null}function qp(n,a){return(Gp(a)?a.asyncValidators:n)||null}function Bw(n){return Array.isArray(n)?kp(n):n||null}function Gp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Wp=n=>n instanceof Ei,Zp=n=>n instanceof a_,e_=n=>n instanceof s_;function t_(n){return Wp(n)?n.value:n.getRawValue()}function i_(n,a){const e=Zp(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function n_(n,a){Zp(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class r_{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Xg(this._rawValidators),this._composedAsyncValidatorFn=Bw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Up}get invalid(){return this.status===zp}get pending(){return this.status==Bc}get disabled(){return this.status===Vc}get enabled(){return this.status!==Vc}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Xg(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Bw(a)}addValidators(a){this.setValidators(LT(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(LT(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Lp(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Lp(a,this._rawAsyncValidators))}hasValidator(a){return Rp(this._rawValidators,a)}hasAsyncValidator(a){return Rp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=Bc,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Vc,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Up,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Up||this.status===Bc)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vc:Up}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=Bc,this._hasOwnPendingAsyncValidator=!0;const e=Rc(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){return function Ow(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Zp(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:e_(t)&&t.at(r)||null}),t}(this,a,".")}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Vc:this.errors?zp:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Bc)?Bc:this._anyControlsHaveStatus(zp)?zp:Up}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Gp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends r_{constructor(a=null,e,t){super(Kg(e),qp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Gp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Qg(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Qg(this._onDisabledChange,a)}_forEachChild(a){}_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(a){this._isBoxedValue(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}}class a_ extends r_{constructor(a,e,t){super(Kg(e),qp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){n_(this,a),Object.keys(a).forEach(t=>{i_(this,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=t_(e),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class s_ extends r_{constructor(a,e,t){super(Kg(e),qp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[a]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){n_(this,a),a.forEach((t,r)=>{i_(this,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>t_(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}}const U0={provide:wn,useExisting:(0,i.Gpc)(()=>jc)},$p=(()=>Promise.resolve(null))();let jc=(()=>{class n extends wn{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new a_({},Yg(e),kp(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){$p.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Rs(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path),r=new a_({});Hu(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){$p.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){$p.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,ku(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([U0]),i.qOj]}),n})();const o_={provide:Wr,useExisting:(0,i.Gpc)(()=>Ml)},xl=(()=>Promise.resolve(null))();let Ml=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Ei,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Jg(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Rs(this.control,this),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(e){xl.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=""===t||t&&"false"!==t;xl.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Gg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,9),i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([o_]),i.qOj,i.TTD]}),n})(),Vw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),l_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Fw=new i.OlP("NgModelWithFormControlWarning"),q0={provide:Wr,useExisting:(0,i.Gpc)(()=>_a)};let _a=(()=>{class n extends Wr{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Yp(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&jp(t,this,!1),Rs(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Jg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&jp(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([q0]),i.qOj,i.TTD]}),n})();const WT={provide:wn,useExisting:(0,i.Gpc)(()=>Ls)};let Ls=(()=>{class n extends wn{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Np(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Rs(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){jp(e.control||null,e,!1),Qg(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,ku(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(jp(t||null,e),Wp(r)&&(Rs(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Hu(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function $g(n,a){return Np(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fp(this.form,this),this._oldForm&&Np(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(on,10),i.Y36(Ps,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([WT]),i.qOj,i.TTD]}),n})();const Ar={provide:Wr,useExisting:(0,i.Gpc)(()=>u_)};let u_=(()=>{class n extends Wr{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=Yp(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Jg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Gg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(wn,13),i.Y36(on,10),i.Y36(Ps,10),i.Y36(lr,10),i.Y36(Fw,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([Ar]),i.qOj,i.TTD]}),n})(),Fc=(()=>{class n{constructor(){this._validator=Hp}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Hp,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const Jw={provide:on,useExisting:(0,i.Gpc)(()=>xo),multi:!0};let xo=(()=>{class n extends Fc{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function ba(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Aw}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([Jw]),i.qOj]}),n})(),tC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[l_]]}),n})(),iC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),Ou=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Fw,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[tC]}),n})(),ax=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let o,l=null,d=null;return null!=t&&(function nC(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,o=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new a_(r,{asyncValidators:d,updateOn:o,validators:l})}control(e,t,r){return new Ei(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new s_(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return Wp(e)||Zp(e)||e_(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ou}),n})();const sx=["trigger"],W0=["panel"];function Z0(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function $0(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function J0(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function Q0(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,$0,2,1,"span",10),i.YNc(2,J0,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function ox(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const nf=[[["mat-select-trigger"]],"*"],lx=["mat-select-trigger","*"],rC={transformPanelWrap:ei("transformPanelWrap",[ft("* => void",Dn("@transformPanel",[ty()],{optional:!0}))]),transformPanel:ei("transformPanel",[Dt("void",He({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Dt("showing",He({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Dt("showing-multiple",He({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),ft("void => *",ct("120ms cubic-bezier(0, 0, 0.2, 1)")),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))])};let rf=0;const ux=new i.OlP("mat-select-scroll-strategy"),X0=new i.OlP("MAT_SELECT_CONFIG"),aC={provide:ux,deps:[br],useFactory:function K0(n){return()=>n.scrollStrategies.reposition()}};class hx{constructor(a,e){this.source=a,this.value=e}}const px=ma(wl(fa(pp(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),fx=new i.OlP("MatSelectTrigger");let sC=(()=>{class n extends px{constructor(e,t,r,l,d,o,s,c,u,h,m,b,j,ie){var pe,Ue,Tt;super(d,l,s,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=o,this._parentFormField=u,this._liveAnnouncer=j,this._defaultOptions=ie,this._panelOpen=!1,this._compareWith=(at,Ut)=>at===Ut,this._uid="mat-select-"+rf++,this._triggerAriaLabelledBy=null,this._destroy=new Ee.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+rf++,this._panelDoneAnimatingStream=new Ee.xQ,this._overlayPanelClass=(null===(pe=this._defaultOptions)||void 0===pe?void 0:pe.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(Tt=null===(Ue=this._defaultOptions)||void 0===Ue?void 0:Ue.disableOptionCentering)&&void 0!==Tt&&Tt,this.ariaLabel="",this.optionSelectionChanges=Kn(()=>{const at=this.options;return at?at.changes.pipe(Wt(at),(0,nn.w)(()=>(0,Mi.T)(...at.map(Ut=>Ut.onSelectionChange)))):this._ngZone.onStable.pipe((0,jt.q)(1),(0,nn.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,zt.h)(at=>at),(0,dt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,zt.h)(at=>!at),(0,dt.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ie?void 0:ie.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ie.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(m)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}set required(e){this._required=Oe(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=Oe(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=Oe(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=_i(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new Ii(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(ll(),Je(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Je(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Wt(null),Je(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Ki(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const o=this.selected;d.onKeydown(e);const s=this.selected;s&&o!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||Ki(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const o=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(o?s.select():s.deselect())})}else{const o=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==o&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,jt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Pm(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Je(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Mi.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Je(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Mi.T)(...this.options.map(t=>t._stateChanges)).pipe(Je(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ya),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(wr),i.Y36(i.SBq),i.Y36(xi,8),i.Y36(jc,8),i.Y36(Ls,8),i.Y36(Bg,8),i.Y36(Wr,10),i.$8M("tabindex"),i.Y36(ux),i.Y36(fv),i.Y36(X0,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(sx,5),i.Gf(W0,5),i.Gf(Bh,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Uc=(()=>{class n extends sC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Je(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=zy(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:function nT(n,a,e,t){return ne+t?Math.max(0,n-t+a):e}((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new hx(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const o=0-(e.left+d-(r?l:0)),s=e.right+d-t.width+(r?0:l);o>0?d+=o+8:s>0&&(d-=s+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,o=Math.floor(256/l);let s;return this.disableOptionCentering?0:(s=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-o))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*s-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-o-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):o>l?this._adjustPanelDown(o,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let o;o=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),o+=zy(o,this.options,this.optionGroups);const s=r/2;this._scrollTop=this._calculateOverlayScroll(o,s,d),this._offsetY=this._calculateOverlayOffsetY(o,s,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,fx,5),i.Suo(r,xc,5),i.Suo(r,vg,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:vu,useExisting:n},{provide:Uy,useExisting:n}]),i.qOj],ngContentSelectors:lx,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(nf),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,Z0,2,1,"span",3),i.YNc(5,Q0,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,ox,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[jb,T.RF,T.n9,T.ED,Bh,T.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[rC.transformPanelWrap,rC.transformPanel]},changeDetection:0}),n})(),Vu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[aC],imports:[[T.ez,_o,Mc,st],gr,vl,Mc,st]}),n})();const oC=new Set;let El,af=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lC}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function iS(n){if(!oC.has(n))try{El||(El=document.createElement("style"),El.setAttribute("type","text/css"),document.head.appendChild(El)),El.sheet&&(El.sheet.insertRule(`@media ${n} {body{ }}`,0),oC.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function lC(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let sf=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new Ee.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return cC(Hd(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=cC(Hd(e)).map(d=>this._registerQuery(d).observable);let l=(0,ka.aj)(r);return l=Tn(l.pipe((0,jt.q)(1)),l.pipe(Vh(1),(0,ol.b)(0))),l.pipe((0,dt.U)(d=>{const o={matches:!1,breakpoints:{}};return d.forEach(({matches:s,query:c})=>{o.matches=o.matches||s,o.breakpoints[c]=s}),o}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new ki.y(d=>{const o=s=>this._zone.run(()=>d.next(s));return t.addListener(o),()=>{t.removeListener(o)}}).pipe(Wt(t),(0,dt.U)(({matches:d})=>({query:e,matches:d})),Je(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(af),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function cC(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const gx={tooltipState:ei("state",[Dt("initial, void, hidden",He({opacity:0,transform:"scale(0)"})),Dt("visible",He({transform:"scale(1)"})),ft("* => visible",ct("200ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0)",offset:0}),He({opacity:.5,transform:"scale(0.99)",offset:.5}),He({opacity:1,transform:"scale(1)",offset:1})]))),ft("* => hidden",ct("100ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:0})))])},dC="tooltip-panel",uC=ja({passive:!0}),hC=new i.OlP("mat-tooltip-scroll-strategy"),wx={provide:hC,deps:[br],useFactory:function yx(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},Cx=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function rS(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let aS=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=o,this._ariaDescriber=s,this._focusMonitor=c,this._dir=h,this._defaultOptions=m,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new Ee.xQ,this._scrollStrategy=u,this._document=b,m&&(m.position&&(this.position=m.position),m.touchGestures&&(this.touchGestures=m.touchGestures)),h.change.pipe(Je(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=_i(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=_i(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Je(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,uC)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new tl(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(Je(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${dC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Je(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Je(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Je(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Ki(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1),Je(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const o=this._overlayRef;if(o){const s=`${this._cssClassPrefix}-${dC}-`;o.removePanelClass(s+this._currentPosition),o.addPanelClass(s+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,uC)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),zc=(()=>{class n extends aS{constructor(e,t,r,l,d,o,s,c,u,h,m,b){super(e,t,r,l,d,o,s,c,u,h,m,b),this._tooltipComponent=oS}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(bi),i.Y36(km),i.Y36(rr),i.Y36(hC),i.Y36(xi,8),i.Y36(Cx,8),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),sS=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new Ee.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),oS=(()=>{class n extends sS{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(sf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[T.mk],pipes:[T.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[gx.tooltipState]},changeDetection:0}),n})(),ju=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[zh,T.ez,_o,st],st,gr]}),n})();function lS(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function cS(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,lS,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function dS(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function uS(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,cS,3,6,"mat-form-field",14),i.YNc(4,dS,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function p(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function f(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let g=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const y={provide:g,deps:[[new i.FiY,new i.tp0,g]],useFactory:function _(n){return n||new g}},k=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),R=fa(bg(class{}));let N=(()=>{class n extends R{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:o,showFirstLastButtons:s}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=o&&(this._hidePageSize=o),null!=s&&(this._showFirstLastButtons=s)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(_i(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=_i(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(_i(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>_i(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=Oe(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=Oe(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),q=(()=>{class n extends N{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(g),i.Y36(i.sBO),i.Y36(k,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,uS,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,p,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,f,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[Wn,Uc,xc,Ft,T.O5,T.sg,zc],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),ee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[y],imports:[[T.ez,Gr,Vu,ju,st]]}),n})();var se=x(943);const ue=["mat-menu-item",""];function Ce(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const Le=["*"];function Fe(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const We={transformMenu:ei("transformMenu",[Dt("void",He({opacity:0,transform:"scale(0.8)"})),ft("void => enter",ct("120ms cubic-bezier(0, 0, 0.2, 1)",He({opacity:1,transform:"scale(1)"}))),ft("* => void",ct("100ms 25ms linear",He({opacity:0})))]),fadeInItems:ei("fadeInItems",[Dt("showing",He({opacity:1})),ft("void => *",[He({opacity:0}),ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Nt=new i.OlP("MatMenuContent"),Fu=new i.OlP("MAT_MENU_PANEL"),y_=ma(fa(class{}));let Dl=(()=>{class n extends y_{constructor(e,t,r,l,d){var o;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new Ee.xQ,this._focused=new Ee.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(o=null==l?void 0:l.addItem)||void 0===o||o.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=he.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Ee.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+C_++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=Oe(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=Oe(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new dl(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(e=>(0,Mi.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Wt(this._directDescendantItems),(0,nn.w)(t=>(0,Mi.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Ki(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Wt(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Nt,5),i.Suo(r,Dl,5),i.Suo(r,Dl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),hS=(()=>{class n extends A_{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(lf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Fu,useExisting:n}]),i.qOj],ngContentSelectors:Le,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Fe,3,6,"ng-template"))},directives:[T.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[We.transformMenu,We.fadeInItems]},changeDetection:0}),n})();const pS=new i.OlP("mat-menu-scroll-strategy"),hH={provide:pS,deps:[br],useFactory:function uH(n){return()=>n.scrollStrategies.reposition()}},mS=ja({passive:!0});let pH=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=he.w.EMPTY,this._hoverSubscription=he.w.EMPTY,this._menuCloseSubscription=he.w.EMPTY,this._handleTouchStart=u=>{Uh(u)||(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=l,this._parentMaterialMenu=d instanceof A_?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,mS),o&&(o._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,mS),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof A_&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Je(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof A_?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,zt.h)(r=>"void"===r.toState),(0,jt.q)(1),Je(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new fc({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[o,s]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(o="top"===l?"bottom":"top",s="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:o,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:o,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:s,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:s,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Ne.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,zt.h)(d=>d!==this._menuItemInstance),(0,zt.h)(()=>this._menuOpen)):(0,Ne.of)();return(0,Mi.T)(e,r,l,t)}_handleMousedown(e){Yh(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,zt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,se.g)(0,om)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof A_&&this.menu._isAnimating?this.menu._animationDone.pipe((0,jt.q)(1),(0,se.g)(0,om),Je(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new fo(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(pS),i.Y36(Fu,8),i.Y36(Dl,10),i.Y36(xi,8),i.Y36(rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),n})(),gS=(()=>{class n extends pH{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[hH],imports:[[T.ez,st,Qa,_o],gr,st]}),n})();var _C=x(1737),fH=x(2474);const mH=["*"];let bC;function v_(n){var a;return(null===(a=function gH(){if(void 0===bC&&(bC=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(bC=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return bC}())||void 0===a?void 0:a.createHTML(n))||n}function _S(n){return Error(`Unable to find icon with the name "${n}"`)}function bS(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function yS(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Nu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let Yu=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Nu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw yS(r);const o=v_(d);return this._addSvgIconConfig(e,t,new Nu("",o,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Nu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw yS(t);const d=v_(l);return this._addSvgIconSetConfig(e,new Nu("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw bS(e);const r=this._cachedIconsByUrl.get(t);return r?(0,Ne.of)(yC(r)):this._loadSvgIconFromConfig(new Nu(e,null)).pipe((0,Q.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,dt.U)(l=>yC(l)))}getNamedSvgIcon(e,t=""){const r=wS(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,_C._)(_S(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,Ne.of)(yC(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,dt.U)(t=>yC(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,Ne.of)(r):xg(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Un.K)(o=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),(0,Ne.of)(null)})))).pipe((0,dt.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw _S(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),o=this._extractSvgIconFromSet(d,e,l.options);if(o)return o}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t),(0,dt.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,Ne.of)(null):this._fetchIcon(e).pipe((0,Q.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const o=this._svgElementFromString(v_(""));return o.appendChild(d),this._setSvgAttributes(o,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(v_("")),r=e.attributes;for(let l=0;lv_(u)),ve(()=>this._inProgressUrlFetches.delete(o)),(0,fH.B)());return this._inProgressUrlFetches.set(o,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(wS(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),CS=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],vH=CS.map(n=>`[${n}]`).join(", "),TH=/^url\(['"]?#(.*?)['"]?\)$/;let Gi=(()=>{class n extends wH{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=he.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=Oe(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(vH),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const o=t[l],s=o.getAttribute(d),c=s?s.match(TH):null;if(c){let u=r.get(o);u||(u=[],r.set(o,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,jt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Yu),i.$8M("aria-hidden"),i.Y36(CH),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:mH,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),Gc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})(),AS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[ee,gC,Gc,Gr,Dc,T.ez]]}),n})();var xH=x(655),MH=x(9441);const Uu=[5,10,25,100];function vS(n){let a="";return null!==n.titleBefore&&(a+=n.titleBefore+" "),null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),null!==n.titleAfter&&(a+=n.titleAfter+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}function Zn(){const n=new gu;return n.disableClose=!0,n.autoFocus=!1,n}const OH=new Intl.Collator("cs",{numeric:!0});function cf(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const o=e(l,t),s=e(d,t);return OH.compare(o,s)*("asc"===r?1:-1)}):n}function T_(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function df(n,a){let e="";return n.attributes&&n.attributes.forEach(t=>{t.friendlyName===a&&(e=t.value)}),e}function uf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(o=>{var s;d[o]=(null!==(s=e(l,o))&&void 0!==s?s:"").split('"').join("''").trim()}),t.push(d)}),t}function hf(n,a="csv",e="export"){if("csv"===a){const t=(s,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(s=>r.map(c=>JSON.stringify(s[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),o=new Blob([d],{type:"text/csv"});(0,MH.saveAs)(o,`${e}.${a}`)}}const xS="GUI_CONFIG.PREF_PAGE_SIZE.";let VH=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jH=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(xS+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(xS+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VH))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),UH=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Ft,gS,Gi,hS,Dl],pipes:[Ct],styles:[""]}),n})();function zH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function qH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const GH=["*"];let ts=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=Uu,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(jH))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(q,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:GH,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,zH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,qH,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[q,T.O5,UH],styles:[""]}),n})(),Tx=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=o,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Zn();this.dialog.open(fT,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(hn),i.LFG(na),i.LFG(Vi),i.LFG(fn),i.LFG(C))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),SS=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Yu),i.LFG(Vn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),WH=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),ZH=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ln=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ES=(()=>{class n{constructor(e,t,r,l,d,o){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=o}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const o=Zn();o.width="450px",this.dialogRefSessionExpiration=this.dialog.open(WH,o),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ve(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,Q.b)(o=>{o instanceof w.Zn&&d&&this.initAuthService.loadPrincipal()},o=>{const s=this.formatErrors(o,e);return void 0===s?(0,_C._)(o):l?void this.notificator.showRPCError(s):(0,_C._)(s)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(wu),i.LFG(ZH),i.LFG(Ln),i.LFG(hn),i.LFG(fn),i.LFG(Tx))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),DS=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$H=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new w.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Un.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,Un.K)(o=>this.formatErrors(o,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let o=this.getHeaders();return o=o.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:o}).pipe((0,Un.K)(s=>this.formatErrors(s,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Un.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,_C._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(Ln),i.LFG(wu),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,o,s,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?o.data.length:o.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),o.sortData(o.filteredData,s).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(o=>o.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const o of l){const s=o.split("=");"lang"===s[0]&&(d=s[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(yn),i.LFG(hn))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();ei("openClose",[Dt("open",He({overflow:"hidden"})),Dt("closed",He({height:"0px",overflow:"hidden"})),ft("open <=> closed",[ct(".3s ease-in")])]);const QH=ei("flyInOut",[ft(":enter",[He({transform:"translateX(100%)"}),ct(".25s")]),ft(":leave",[ct(".5s",He({transform:"translateX(100%)"}))])]);ei("rollInOut",[ft(":enter",[He({height:"0px"}),ct(".25s")]),ft(":leave",[ct(".25s",He({height:"0px"}))])]),ei("routeAnimations",[ft("* => *",[He({position:"relative"}),Dn(":enter",[He({width:"100%",opacity:0})],{optional:!0}),Dn(":leave",[He({position:"absolute",width:"100%",opacity:1}),ct("0.15s",He({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Dn(":enter",[He({position:"absolute",width:"100%",opacity:0}),ct("0.15s",He({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),ei("tagsOpenClose",[Dt("open",He({})),Dt("closed",He({width:"0px",height:"0px"})),ft("open <=> closed",[ct(".3s ease-in")])]),ei("switchAnimations",[ft("true => false",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(-100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(100%)"}))],{optional:!0})])]),ft("false => true",[Dn(":enter, :leave",He({})),ey([Dn(":enter",[He({transform:"translateX(100%)"}),ct("1s ease-in-out",He({transform:"translateX(0%)"}))],{optional:!0}),Dn(":leave",[He({transform:"translateX(0%)",position:"absolute"}),ct("1s ease-in-out",He({transform:"translateX(-100%)"}))],{optional:!0})])])]),ei("slideInOutLeft",[ft(":enter",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[ct("0.5s ease-in",He({transform:"translateX(-100%)"}))])]),ei("slideInOutRight",[ft(":enter",[He({transform:"translateX(100%)",position:"fixed"}),ct("0.5s ease-in",He({transform:"translateX(0%)"}))]),ft(":leave",[He({transform:"translateX(-100%)",position:"relative"}),ct("0.5s ease-in",He({transform:"translateX(100%)"}))])]);let HS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez]]}),n})();function a1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function s1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function o1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function l1(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const u1=Ja(class{constructor(n){this._elementRef=n}},"primary"),kS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function h1(){return{diameter:100}}});class Hl extends u1{constructor(a,e,t,r,l,d,o,s){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=he.w.EMPTY,this.mode="determinate";const c=Hl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&o&&d&&s&&(this._resizeSubscription=o.change(150).subscribe(()=>{"indeterminate"===this.mode&&s.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=_i(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=_i(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,_i(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Eh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Hl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Hl._diameters=new WeakMap,Hl.\u0275fac=function(a){return new(a||Hl)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Ya),i.Y36(i.R0b))},Hl.\u0275cmp=i.Xpm({type:Hl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,a1,1,11,"circle",2),i.YNc(3,s1,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let mn=(()=>{class n extends Hl{constructor(e,t,r,l,d,o,s,c){super(e,t,r,l,d,o,s,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0,8),i.Y36(Si,8),i.Y36(kS),i.Y36(i.sBO),i.Y36(Ya),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,o1,1,11,"circle",2),i.YNc(3,l1,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[T.RF,T.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),CC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st,T.ez],st]}),n})();const PS=ja({passive:!0});let f1=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return ur.E;const t=Qi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new Ee.xQ,d="cdk-text-field-autofilled",o=s=>{"cdk-text-field-autofill-start"!==s.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===s.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:s.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",o,PS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",o,PS)}}),l}stopMonitoring(e){const t=Qi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(bi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),RS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cc]]}),n})();const LS=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),m1=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g1=0;const _1=pp(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let is=(()=>{class n extends _1{constructor(e,t,r,l,d,o,s,c,u,h){super(o,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+g1++,this.focused=!1,this.stateChanges=new Ee.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(j=>dm().has(j));const m=this._elementRef.nativeElement,b=m.nodeName.toLowerCase();this._inputValueAccessor=s||m,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",j=>{const ie=j.target;!ie.value&&0===ie.selectionStart&&0===ie.selectionEnd&&(ie.setSelectionRange(1,1),ie.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=m.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=Oe(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Oi.required))&&void 0!==l&&l}set required(e){this._required=Oe(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&dm().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Oe(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){m1.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(Wr,10),i.Y36(jc,8),i.Y36(Ls,8),i.Y36(wr),i.Y36(LS,10),i.Y36(f1),i.Y36(i.R0b),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:vu,useExisting:n}]),i.qOj,i.TTD]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr],imports:[[RS,vl,st],RS,vl]}),n})();function b1(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function y1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function w1(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function C1(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,y1,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,w1,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let A1=(()=>{class n{constructor(e,t,r,l,d,o){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=o,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(en),i.Y36(qr),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,b1,1,0,"mat-spinner",1),i.YNc(4,C1,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[or,T.O5,mn,kn,Wn,es,is,Pn,xo,cr,Ml,Hs,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),v1=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Zn();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(A1,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(fn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})();const E1=[[["caption"]],[["colgroup"],["col"]]],D1=["caption","colgroup, col"];function Mx(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=Oe(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const pf=new i.OlP("CDK_TABLE");let ff=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),mf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),vC=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class R1{}const L1=Mx(R1);let kl=(()=>{class n extends L1{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=Oe(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ff,5),i.Suo(r,mf,5),i.Suo(r,vC,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class Sx{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let Ex=(()=>{class n extends Sx{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),Dx=(()=>{class n extends Sx{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(kl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class OS{constructor(){this.tasks=[],this.endTasks=[]}}const Hx=new i.OlP("_COALESCED_STYLE_SCHEDULER");let BS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new Ee.xQ}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new OS,this._getScheduleObservable().pipe(Je(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new OS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,jt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),kx=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof x_?e.headerCell.template:this instanceof M_?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class I1 extends kx{}const O1=Mx(I1);let x_=(()=>{class n extends O1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class B1 extends kx{}const V1=Mx(B1);let M_=(()=>{class n extends V1{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),TC=(()=>{class n extends kx{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(pf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Pl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),Px=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Lx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),xC=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const VS=["top","bottom","left","right"];class j1{constructor(a,e,t,r,l=!0,d=!0,o){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=o,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(m=>m)&&!t.some(m=>m))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,o=this._getCellWidths(l,r),s=this._getStickyStartColumnPositions(o,e),c=this._getStickyEndColumnPositions(o,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const m="rtl"===this.direction,b=m?"right":"left",j=m?"left":"right";for(const ie of a)for(let pe=0;pee[pe]?ie:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:o.slice(h).map((ie,pe)=>t[pe+h]?ie:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],o=[],s=[];for(let u=0,h=0;u{var u,h;for(let m=0;m{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);VS.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of VS)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const Ix=new i.OlP("CDK_SPL");let MC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),SC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),EC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),DC=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),HC=(()=>{class n{constructor(e,t,r,l,d,o,s,c,u,h,m,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=s,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=m,this._ngZone=b,this._onDestroy=new Ee.xQ,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 $i({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=Oe(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=Oe(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(Je(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Tu(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,jt.q)(1),Je(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let o=0;o{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const o=r&&r.has(d)?r.get(d):[];if(o.length){const s=o.shift();return s.dataIndex=t,s}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),kC(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=kC(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=kC(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=kC(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,o)=>d||!!o.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Tu(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Tu(this.dataSource)?e=this.dataSource.connect(this):Ka(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,Ne.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(Je(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(o=>this._columnDefsByName.get(o)),l=r.map(o=>o.sticky),d=r.map(o=>o.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Pl.mostRecentCellOutlet&&Pl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new j1(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,Ne.of)()).pipe(Je(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(xi,8),i.Y36(T.K0),i.Y36(bi),i.Y36(xu),i.Y36(Hx),i.Y36(Ya),i.Y36(Ix,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,kl,5),i.Suo(r,TC,5),i.Suo(r,x_,5),i.Suo(r,M_,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(MC,7),i.Gf(SC,7),i.Gf(EC,7),i.Gf(DC,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:pf,useExisting:n},{provide:xu,useClass:Vg},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}])],ngContentSelectors:D1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(E1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function kC(n,a){return n.concat(Array.from(a))}let N1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[el]]}),n})();const Y1=[[["caption"]],[["colgroup"],["col"]]],U1=["caption","colgroup, col"];let Mo=(()=>{class n extends HC{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:xu,useClass:Vg},{provide:HC,useExisting:n},{provide:pf,useExisting:n},{provide:Hx,useClass:BS},{provide:Ix,useValue:null}]),i.qOj],ngContentSelectors:U1,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(Y1),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[SC,MC,DC,EC],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),Is=(()=>{class n extends ff{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:ff,useExisting:n}]),i.qOj]}),n})(),Os=(()=>{class n extends mf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:mf,useExisting:n}]),i.qOj]}),n})(),Bs=(()=>{class n extends kl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:kl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),Vs=(()=>{class n extends Ex{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),js=(()=>{class n extends Dx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Rl=(()=>{class n extends x_{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:x_,useExisting:n}]),i.qOj]}),n})(),So=(()=>{class n extends TC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:TC,useExisting:n}]),i.qOj]}),n})(),Ll=(()=>{class n extends Px{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:Px,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Eo=(()=>{class n extends Lx{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:Lx,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Pl],encapsulation:2}),n})(),Ox=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[N1,st],st]}),n})();class Il extends class ek extends class V0{}{constructor(a=[]){super(),this._renderData=new $i([]),this._filter=new $i(""),this._internalPageChanges=new Ee.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Xf(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,o)=>{let s=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(o,r);const u=typeof s,h=typeof c;u!==h&&("number"===u&&(s+=""),"number"===h&&(c+=""));let m=0;return null!=s&&null!=c?s>c?m=1:s{const r=Object.keys(e).reduce((d,o)=>d+e[o]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new $i(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Mi.T)(this._sort.sortChange,this._sort.initialized):(0,Ne.of)(null),t=this._paginator?(0,Mi.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,Ne.of)(null),l=(0,ka.aj)([this._data,this._filter]).pipe((0,dt.U)(([s])=>this._filterData(s))),d=(0,ka.aj)([l,e]).pipe((0,dt.U)(([s])=>this._orderData(s))),o=(0,ka.aj)([d,t]).pipe((0,dt.U)(([s])=>this._pageData(s)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=o.subscribe(s=>this._renderData.next(s))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function tk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function ik(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function nk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function rk(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const ak=["*"];let Fs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:ak,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,tk,2,0,"mat-icon",1),i.YNc(2,ik,2,0,"mat-icon",1),i.YNc(3,nk,2,0,"mat-icon",1),i.YNc(4,rk,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[T.O5,Gi],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function sk(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function ok(n,a){1&n&&(i.TgZ(0,"div",17),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.ASK")," "))}function lk(n,a){1&n&&i._UZ(0,"th",18)}function ck(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function dk(n,a){1&n&&i._UZ(0,"tr",20)}function uk(n,a){1&n&&i._UZ(0,"tr",21)}function hk(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",22),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("alert_type","warn"),i.xp6(1),i.hij(" ",i.lcZ(2,2,e.data.alert)," ")}}function pk(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,ok,3,3,"div",9),i.TgZ(5,"table",10),i.ynx(6,11),i.YNc(7,lk,1,0,"th",12),i.YNc(8,ck,2,1,"td",13),i.BQk(),i.YNc(9,dk,1,0,"tr",14),i.YNc(10,uk,1,0,"tr",15),i.qZA(),i.YNc(11,hk,3,4,"perun-web-apps-alert",16),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,e.data.description)," "),i.xp6(2),i.Q6J("ngIf",e.data.showAsk),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(1),i.Q6J("ngIf",e.data.alert)}}function fk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.REMOVE_BUTTON")," ")}}function mk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",24),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(2,2,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.SUBMIT_BUTTON")," ")}}let FS=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["name"],this.loading=!1}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Il(this.data.items)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-items-dialog"]],decls:12,vars:13,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","class","ml-2","color","warn",3,"disabled","click",4,"ngIf"],["mat-flat-button","","class","ml-2","color","accent",3,"disabled","click",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],["class","font-weight-bold",4,"ngIf"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"alert_type",4,"ngIf"],[1,"font-weight-bold"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],[3,"alert_type"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,sk,1,0,"mat-spinner",1),i.YNc(5,pk,12,8,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.YNc(10,fk,3,4,"button",5),i.YNc(11,mk,3,4,"button",6),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,9,t.data.title)),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,11,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_REMOVE_ITEMS_DIALOG.CANCEL_BUTTON")," "),i.xp6(2),i.Q6J("ngIf","remove"===t.data.type),i.xp6(1),i.Q6J("ngIf","confirmation"===t.data.type))},directives:[or,T.O5,mn,kn,Mo,Bs,Os,Vs,Is,js,Rl,Ll,So,Eo,Fs,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),xk=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.theme=this.data.theme,this.message=this.data.message}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-universal-confirmation-dialog"]],decls:11,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"button",2),i.NdJ("click",function(){return t.onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",3),i.NdJ("click",function(){return t.onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.Oqu(i.lcZ(3,6,t.message)),i.xp6(4),i.hij(" ",i.lcZ(7,8,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(10,10,"SHARED_LIB.PERUN.COMPONENTS.UNIVERSAL_CONFIRMATION_DIALOG.SUBMIT_BUTTON")," "))},directives:[or,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function kk(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function Pk(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let Rk=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Zn();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(v1,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function EH(n,a){return(0,xH.mG)(this,void 0,void 0,function*(){yield function DH(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,kk,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,Pk,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[T.O5,Gi],pipes:[Ct],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function Lk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const Ik=function(n){return{top:n}};let Ok=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ln),i.Y36(DS))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,Lk,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,Ik,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[T.PC,T.sg,Rk],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:initial;bottom:0}}"],data:{animation:[QH]}}),n})();const Bk=["*",[["mat-toolbar-row"]]],Vk=["*","mat-toolbar-row"],jk=Ja(class{constructor(n){this._elementRef=n}});let Fk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),Nk=(()=>{class n extends jk{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(bi),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,Fk,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:Vk,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(Bk),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),YS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();function Yk(n,a){1&n&&(i.TgZ(0,"div",13),i.TgZ(1,"span",14),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",15),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",14),i._uU(6," \xa0\u{1f5f2} ~ "),i.qZA(),i.qZA())}const Uk=function(n){return{background:n}},PC=function(n){return{color:n}};let zk=(()=>{class n{constructor(e,t,r){this.storeService=e,this.authService=t,this.sanitizer=r,this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.principal=this.storeService.getPerunPrincipal(),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo"))}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(wu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{sideNav:"sideNav"},decls:22,vars:29,consts:[[1,"header-container","mat-elevation-z3",3,"ngStyle"],[2,"display","flex","flex-direction","row"],["mat-icon-button","",1,"mt-auto","mb-auto",3,"ngStyle","click"],["routerLink","/all-publications",1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white","routerLink","/all-publications",1,"mt-auto","mb-auto","router-icon","ml-2","mr-4"],[1,"mt-auto","mb-auto","page-subtitle",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"ngStyle"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline"],["menu","matMenu"],["mat-menu-item","",3,"click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){if(1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.sideNav.toggle()}),i.TgZ(3,"mat-icon"),i._uU(4,"menu"),i.qZA(),i.qZA(),i._UZ(5,"a",3),i._UZ(6,"mat-icon",4),i.TgZ(7,"p",5),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.YNc(10,Yk,7,0,"div",6),i.TgZ(11,"div",7),i.TgZ(12,"button",8),i.TgZ(13,"mat-icon",9),i._uU(14," person "),i.qZA(),i.TgZ(15,"span",10),i._uU(16),i.qZA(),i.qZA(),i.TgZ(17,"mat-menu",null,11),i.TgZ(19,"button",12),i.NdJ("click",function(){return t.onLogOut()}),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(18);i.Q6J("ngStyle",i.VKq(19,Uk,t.bgColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(21,PC,t.iconColor)),i.xp6(3),i.Q6J("innerHTML",t.logo,i.oJD),i.xp6(2),i.Q6J("ngStyle",i.VKq(23,PC,t.textColor)),i.xp6(1),i.hij(" ",i.lcZ(9,15,"HEADER.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("ngStyle",i.VKq(25,PC,t.textColor)),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(27,PC,t.iconColor)),i.xp6(3),i.xDo(" ",t.principal.user.titleBefore," ",t.principal.user.firstName," ",t.principal.user.middleName," ",t.principal.user.lastName," ",t.principal.user.titleAfter," "),i.xp6(4),i.Oqu(i.lcZ(21,17,"HEADER.LOGOUT"))}},directives:[Nk,T.PC,Ft,Gi,J,F,T.O5,gS,hS,Dl],pipes:[Ct],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;display:flex;justify-content:space-between;margin-left:8px;padding:0}#nav-devel-info[_ngcontent-%COMP%]{font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function US(n){return a=>a.lift(new qk(n))}class qk{constructor(a){this.value=a}call(a,e){return e.subscribe(new Gk(a,this.value))}}class Gk extends Yn.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const RC=["*"],Wk=["content"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Qk=["mat-drawer","mat-drawer-content","*"];function Kk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Xk(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const eP=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tP=["mat-sidenav","mat-sidenav-content","*"],zS={transformDrawer:ei("transform",[Dt("open, open-instant",He({transform:"none",visibility:"visible"})),Dt("void",He({"box-shadow":"none",visibility:"hidden"})),ft("void => open-instant",ct("0ms")),ft("void <=> open, open-instant => void",ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},nP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function rP(){return!1}}),Bx=new i.OlP("MAT_DRAWER_CONTAINER");let LC=(()=>{class n extends Hh{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>GS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),qS=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=o,this._doc=s,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new Ee.xQ,this._animationEnd=new Ee.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,zt.h)(u=>u),(0,dt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),US(void 0)),this._closedStream=this.openedChange.pipe((0,zt.h)(u=>!u),(0,dt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,zt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),US(void 0)),this._destroyed=new Ee.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new Ee.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{ua(this._elementRef.nativeElement,"keydown").pipe((0,zt.h)(u=>27===u.keyCode&&!this.disableClose&&!Ki(u)),Je(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(ll((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:m}=u;(0===m.indexOf("open")&&"void"===h||"void"===m&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Oe(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=Oe(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(Oe(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,jt.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Lm),i.Y36(rr),i.Y36(bi),i.Y36(i.R0b),i.Y36(Nh),i.Y36(T.K0,8),i.Y36(Bx,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Wk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),GS=(()=>{class n{constructor(e,t,r,l,d,o=!1,s){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=s,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new Ee.xQ,this._doCheckSubject=new Ee.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new Ee.xQ,e&&e.change.pipe(Je(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(Je(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Oe(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Oe(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Wt(this._allDrawers),Je(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Wt(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ol.b)(10),Je(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,zt.h)(t=>t.fromState!==t.toState),Je(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Je(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(Je(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,jt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Je((0,Mi.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ya),i.Y36(nP),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,LC,5),i.Suo(r,qS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(LC,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:Bx,useExisting:n}])],ngContentSelectors:Qk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[LC,T.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),Vx=(()=>{class n extends LC{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>ZS)),i.Y36(i.SBq),i.Y36(Dh),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Hh,useExisting:n}]),i.qOj],ngContentSelectors:RC,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n extends qS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Oe(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=_i(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=_i(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:RC,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Hh],encapsulation:2,data:{animation:[zS.transformDrawer]},changeDetection:0}),n})(),ZS=(()=>{class n extends GS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,Vx,5),i.Suo(r,WS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:Bx,useExisting:n}]),i.qOj],ngContentSelectors:tP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(eP),i.YNc(0,Kk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Xk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[Vx,T.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,cc,gr],gr,st]}),n})(),aP=(()=>{class n{constructor(e){this.authResolver=e}getSideMenuItems(){const e=[];return this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.ALL_PUBLICATIONS",icon:"perun-publications-white",isSVG:!0,link:"/all-publications",activatedRegex:"^/all-publications",tabName:"all-publications"}),e.push({label:"MENU_ITEMS.MY_PUBLICATIONS",icon:"local_library",link:"/my-publications",activatedRegex:"^/my-publications",tabName:"my-publications"}),e.push({label:"MENU_ITEMS.CREATE_PUBLICATION",icon:"add_box",link:"/create-publication",activatedRegex:"^/create-publication",tabName:"create-publication"}),this.authResolver.isCabinetAdmin()&&e.push({label:"MENU_ITEMS.AUTHORS",icon:"assignment_ind",link:"/authors",activatedRegex:"^/authors",tabName:"authors"}),e.push({label:"MENU_ITEMS.CATEGORIES",icon:"all_inbox",link:"/categories",activatedRegex:"^/categories$",tabName:"categories"}),e.push({label:"MENU_ITEMS.PUBLICATION_SYSTEMS",icon:"assignment",link:"/publication-systems",activatedRegex:"^/publication-systems$",tabName:"publication-systems"}),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const JS=["*"],oP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],lP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],pP=fa(ma(class{})),fP=ma(class{}),mP=new i.OlP("MatList"),QS=new i.OlP("MatNavList");let gP=(()=>{class n extends pP{constructor(){super(...arguments),this._stateChanges=new Ee.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:QS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:JS,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),XS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),_P=(()=>{class n extends fP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new Ee.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Je(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=Oe(e)}ngAfterContentInit(){!function gp(n,a,e="mat"){n.changes.pipe(Wt(n)).subscribe(({length:t})=>{_p(a,`${e}-2-line`,!1),_p(a,`${e}-3-line`,!1),_p(a,`${e}-multi-line`,!1),2===t||3===t?_p(a,`${e}-${t}-line`,!0):t>3&&_p(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(QS,8),i.Y36(mP,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KS,5),i.Suo(r,XS,5),i.Suo(r,$v,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:lP,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(oP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[qt],encapsulation:2,changeDetection:0}),n})(),tE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,Qa,st,Ag,T.ez],hu,st,Ag,jx]}),n})();function vP(n,a){if(1&n&&i._UZ(0,"mat-icon",6),2&n){const e=i.oxw().$implicit;i.Q6J("svgIcon",e.icon)}}function TP(n,a){if(1&n&&(i.TgZ(0,"mat-icon"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Oqu(e.icon)}}const xP=function(n){return{color:n}};function MP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().shouldHideMenu()}),i.YNc(1,vP,1,1,"mat-icon",3),i.YNc(2,TP,2,1,"mat-icon",4),i.TgZ(3,"span",5),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.link),i.Q6J("ngStyle",i.VKq(10,xP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(1),i.Q6J("ngIf",e.isSVG),i.xp6(1),i.Q6J("ngIf",!e.isSVG),i.xp6(2),i.Oqu(i.lcZ(5,8,e.label))}}let SP=(()=>{class n{constructor(e,t,r){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.items=[],this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(l=>{l instanceof wt&&(this.currentUrl=l.url)})}ngOnInit(){this.items=this.sideMenuItemService.getSideMenuItems()}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(aP),i.Y36(hn),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],["class","perun-icon",3,"svgIcon",4,"ngIf"],[4,"ngIf"],[1,"nav-caption","ml-3"],[1,"perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,MP,6,12,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[gP,T.sg,_P,qt,T.PC,F,T.O5,Gi],pipes:[Ct],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function EP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let DP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Li),i.Y36(Ln),i.Y36(en),i.Y36(hn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,EP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[or,kn,Wn,es,is,Pn,xo,cr,Ml,T.O5,Hs,pw,Cr,Ft],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),HP=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})(),kP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),PP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function RP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function LP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,RP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,LP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const OP=function(n){return{"min-height":n}};function BP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,IP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,OP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const Wc=function(n){return{color:n}};function VP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,Wc,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function jP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function FP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,Wc,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function NP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,Wc,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function YP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,VP,2,4,"i",17),i.YNc(2,jP,3,8,"span",18),i.YNc(3,FP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,NP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const UP=function(n){return{height:n}};function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,YP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,UP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,BP,2,4,"div",9),i.YNc(5,zP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,Wc,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function GP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,Wc,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const WP=function(n){return{background:n}};let iE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Zn();"reportIssue"===e&&(t.width="550px",this.dialog.open(DP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Li),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,qP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,GP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,WP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,Wc,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,Wc,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[T.PC,T.sg,T.O5],pipes:[HP,kP,PP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-moz-fit-content;height:fit-content}"]}),n})();function ZP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function $P(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function JP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const QP=function(n){return{color:n}};function KP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,QP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const XP=function(n,a){return{background:n,color:a}},eR=function(n,a){return{"min-height":n,"background-color":a}};let tR=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Vn),i.Y36(JH),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,ZP,2,1,"div",1),i.YNc(2,$P,3,1,"div",2),i.YNc(3,JP,2,1,"div",1),i.YNc(4,KP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,XP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,eR,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[T.PC,T.O5,Gi,oo,iE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const iR=["footer"],nE=function(n){return{background:n}},nR=function(n){return{"min-height":n}};function rR(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-header",1),i.TgZ(2,"mat-sidenav-container"),i.TgZ(3,"mat-sidenav",2,3),i._UZ(5,"perun-web-apps-side-menu",4),i.qZA(),i.TgZ(6,"mat-sidenav-content",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",null,7),i._UZ(11,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=i.MAs(4),t=i.oxw();i.xp6(1),i.Q6J("sideNav",e),i.xp6(2),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(7,nE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(9,nE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,nR,t.contentHeight))}}function aR(n,a){1&n&&(i.TgZ(0,"div"),i._UZ(1,"perun-web-apps-login-screen-base",8),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Q6J("application","publications")("headerTitle",i.lcZ(2,2,"HEADER.TITLE")))}let sR=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.initAuth=t,this.changeDetector=r,this.authResolver=l,this.router=d,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 64px)"}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.isLoginScreenShow=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout");const e=location.pathname;!this.authResolver.isCabinetAdmin()&&("/"===e||e.includes("/all-publications"))&&this.router.navigate(["my-publications"])}isMobile(){return window.innerWidth<=n.minWidth}setContentHeight(e){this.contentHeight="calc(100vh - 84px - "+String(e)+"px)",this.changeDetector.detectChanges()}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(hn),i.Y36(Tx),i.Y36(i.sBO),i.Y36(na),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(iR,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:3,vars:2,consts:[[4,"ngIf"],["id","nav-menu",3,"sideNav"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i._UZ(0,"perun-web-apps-notificator"),i.YNc(1,rR,12,13,"div",0),i.YNc(2,aR,3,4,"div",0)),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.isLoginScreenShow&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShow||t.isServiceAccess||t.isServiceLogin()))},directives:[Ok,T.O5,zk,ZS,WS,T.PC,SP,Vx,oo,iE,tR],pipes:[Ct],styles:["#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}#content-inner[_ngcontent-%COMP%]{position:relative;overflow-x:hidden;padding-top:64px;min-height:calc(100vh - 128px)}#nav-menu[_ngcontent-%COMP%]{top:0;background:#102027;position:fixed;width:100%;z-index:999;height:64px;max-height:64px}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();class oR{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let lR=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function cR(n){return[$r(tinycolor(n).lighten(52),"50"),$r(tinycolor(n).lighten(37),"100"),$r(tinycolor(n).lighten(26),"200"),$r(tinycolor(n).lighten(12),"300"),$r(tinycolor(n).lighten(6),"400"),$r(tinycolor(n),"500"),$r(tinycolor(n).darken(6),"600"),$r(tinycolor(n).darken(12),"700"),$r(tinycolor(n).darken(18),"800"),$r(tinycolor(n).darken(24),"900"),$r(tinycolor(n).lighten(50).saturate(30),"A100"),$r(tinycolor(n).lighten(30).saturate(30),"A200"),$r(tinycolor(n).lighten(10).saturate(15),"A400"),$r(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const s=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(s,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new w.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.eN),i.LFG(hn),i.LFG(Vi),i.LFG(Zt),i.LFG(bt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $r(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let dR=(()=>{class n{constructor(e,t,r,l,d){this.initAuthService=e,this.appConfigService=t,this.location=r,this.authzSevice=l,this.guiAuthResolver=d,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}loadConfigs(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.loadPolicies()):this.initAuthService.handleAuthStart())}loadPolicies(){return new Promise((e,t)=>{this.authzSevice.getAllPolicies().subscribe(r=>{this.guiAuthResolver.setPerunPolicies(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Tx),i.LFG(lR),i.LFG(T.Ye),i.LFG(Vi),i.LFG(na))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uR=new i.OlP("perun-api-service");let hR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,yu,Gr,Dc]]}),n})();const pR=["*",[["mat-card-footer"]]],fR=["*","mat-card-footer"];let rE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),n})(),aE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),n})(),sE=(()=>{class n{constructor(e){this._animationMode=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)},exportAs:["matCard"],ngContentSelectors:fR,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(pR),i.Hsn(0),i.Hsn(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px;display:block;overflow:hidden}.mat-card-image img{width:100%}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions:not(.mat-card-actions-align-end) .mat-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-raised-button:first-child,.mat-card-actions:not(.mat-card-actions-align-end) .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-actions-align-end .mat-button:last-child,.mat-card-actions-align-end .mat-raised-button:last-child,.mat-card-actions-align-end .mat-stroked-button:last-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),n})(),oE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[st],st]}),n})();const mR=["input"],gR=function(n){return{enterDuration:n}},_R=["*"],bR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:lE});function lE(){return{color:"accent",clickAction:"check-indeterminate"}}let yR=0;const cE=lE(),wR={provide:lr,useExisting:(0,i.Gpc)(()=>Zc),multi:!0};class CR{}const AR=wl(Ja(ma(fa(class{constructor(n){this._elementRef=n}}))));let Zc=(()=>{class n extends AR{constructor(e,t,r,l,d,o,s){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=o,this._options=s,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++yR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||cE,this.color=this.defaultColor=this._options.color||cE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=Oe(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=Oe(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=Oe(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new CR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Si,8),i.Y36(bR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(mR,5),i.Gf(qt,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([wR]),i.qOj],ngContentSelectors:_R,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,gR,"NoopAnimations"===t._animationMode?0:150))}},directives:[qt,jh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),dE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),IC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st,zd,dE],st,dE]}),n})(),xR=0;const Fx=new i.OlP("CdkAccordion");let MR=(()=>{class n{constructor(){this._stateChanges=new Ee.xQ,this._openCloseAllActions=new Ee.xQ,this.id="cdk-accordion-"+xR++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Oe(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Fx,useExisting:n}]),i.TTD]}),n})(),SR=0,ER=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=he.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+SR++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Oe(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fx,12),i.Y36(i.sBO),i.Y36(Ep))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Fx,useValue:void 0}])]}),n})(),DR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const HR=["body"];function kR(n,a){}const PR=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],RR=["mat-expansion-panel-header","*","mat-action-row"];function LR(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const IR=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],OR=["mat-panel-title","mat-panel-description","*"],Nx=new i.OlP("MAT_ACCORDION"),uE="225ms cubic-bezier(0.4,0.0,0.2,1)",hE={indicatorRotate:ei("indicatorRotate",[Dt("collapsed, void",He({transform:"rotate(0deg)"})),Dt("expanded",He({transform:"rotate(180deg)"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))]),bodyExpansion:ei("bodyExpansion",[Dt("collapsed, void",He({height:"0px",visibility:"hidden"})),Dt("expanded",He({height:"*",visibility:"visible"})),ft("expanded <=> collapsed, void => collapsed",ct(uE))])};let BR=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),VR=0;const pE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let fE=(()=>{class n extends ER{constructor(e,t,r,l,d,o,s){super(e,t,r),this._viewContainerRef=l,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new Ee.xQ,this._headerId="mat-expansion-panel-header-"+VR++,this._bodyAnimationDone=new Ee.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(ll((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Wt(null),(0,zt.h)(()=>this.expanded&&!this._portal),(0,jt.q)(1)).subscribe(()=>{this._portal=new fo(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Nx,12),i.Y36(i.sBO),i.Y36(Ep),i.Y36(i.s_b),i.Y36(T.K0),i.Y36(Si,8),i.Y36(pE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,BR,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(HR,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Nx,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:RR,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(PR),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,kR,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Ua],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[hE.bodyExpansion]},changeDetection:0}),n})();class jR{}const FR=wl(jR);let mE=(()=>{class n extends FR{constructor(e,t,r,l,d,o,s){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=o,this._parentChangeSubscription=he.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,zt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):ur.E;this.tabIndex=parseInt(s||"")||0,this._parentChangeSubscription=(0,Mi.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,zt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,zt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Ki(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fE,1),i.Y36(i.SBq),i.Y36(rr),i.Y36(i.sBO),i.Y36(pE,8),i.Y36(Si,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:OR,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(IR),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,LR,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[T.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[hE.indicatorRotate]},changeDetection:0}),n})(),NR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),YR=(()=>{class n extends MR{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Oe(e)}ngAfterContentInit(){this._headers.changes.pipe(Wt(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new dl(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,mE,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Nx,useExisting:n}]),i.qOj]}),n})(),gE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,DR,il]]}),n})(),bE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[hu,st],hu,st]}),n})();function qR(n,a){1&n&&i.Hsn(0)}const GR=["*"];let yE=(()=>{class n{constructor(e){this._elementRef=e}focus(){this._elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),n})(),wE=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkStepLabel",""]]}),n})(),WR=0;const CE=new i.OlP("STEPPER_GLOBAL_OPTIONS");let Yx=(()=>{class n{constructor(e,t){this._stepper=e,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=t||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(e){this._editable=Oe(e)}get optional(){return this._optional}set optional(e){this._optional=Oe(e)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=Oe(e)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(e){this._customError=Oe(e)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){var e;return null!==(e=this._stepperOptions.showError)&&void 0!==e?e:null!=this._customError}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>gf)),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-step"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,wE,5),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:GR,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,qR,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),n})(),gf=(()=>{class n{constructor(e,t,r,l){this._dir=e,this._changeDetectorRef=t,this._elementRef=r,this._destroyed=new Ee.xQ,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this._orientation="horizontal",this._groupId=WR++}get linear(){return this._linear}set linear(e){this._linear=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){var t;const r=_i(e);this.steps&&this._steps?(this._isValidIndex(r),null===(t=this.selected)||void 0===t||t._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===e)}ngAfterContentInit(){this._steps.changes.pipe(Wt(this._steps),Je(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe(Wt(this._stepHeader),Je(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,r)=>t._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new dl(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,Ne.of)()).pipe(Wt(this._layoutDirection()),Je(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`cdk-step-label-${this._groupId}-${e}`}_getStepContentId(e){return`cdk-step-content-${this._groupId}-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){const t=e-this._selectedIndex;return t<0?"rtl"===this._layoutDirection()?"next":"previous":t>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(e,t="number"){const r=this.steps.toArray()[e],l=this._isCurrentStep(e);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,l):this._getGuidelineLogic(r,l,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?"error":!e.completed||t?"number":e.editable?"edit":"done"}_getGuidelineLogic(e,t,r="number"){return e._showError()&&e.hasError&&!t?"error":e.completed&&!t?"done":e.completed&&t?r:e.editable&&t?"edit":r}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){const t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e),this._selectedIndex=e,this._stateChanged()}_onKeydown(e){const t=Ki(e),r=e.keyCode,l=this._keyManager;null==l.activeItemIndex||t||32!==r&&13!==r?l.onKeydown(e):(this.selectedIndex=l.activeItemIndex,e.preventDefault())}_anyControlsInvalidOrPending(e){return!!(this._linear&&e>=0)&&this.steps.toArray().slice(0,e).some(t=>{const r=t.stepControl;return(r?r.invalid||r.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const e=this._elementRef.nativeElement,t=Fa();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e{class n{constructor(e){this._stepper=e,this.type="submit"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.next()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),$R=(()=>{class n{constructor(e){this._stepper=e,this.type="button"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gf))},n.\u0275dir=i.lG2({type:n,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._stepper.previous()}),2&e&&i.Ikx("type",t.type)},inputs:{type:"type"}}),n})(),JR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[dc]]}),n})();function QR(n,a){if(1&n&&i.GkF(0,8),2&n){const e=i.oxw();i.Q6J("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function KR(n,a){if(1&n&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function XR(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.completedLabel)}}function eL(n,a){if(1&n&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._intl.editableLabel)}}function tL(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e._getDefaultTextForState(e.state))}}function iL(n,a){if(1&n&&(i.ynx(0,9),i.YNc(1,KR,2,1,"span",10),i.YNc(2,XR,2,1,"span",11),i.YNc(3,eL,2,1,"span",11),i.YNc(4,tL,2,1,"mat-icon",12),i.BQk()),2&n){const e=i.oxw();i.Q6J("ngSwitch",e.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===e.state),i.xp6(1),i.Q6J("ngIf","edit"===e.state)}}function nL(n,a){if(1&n&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",e._templateLabel().template)}}function rL(n,a){if(1&n&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.label)}}function aL(n,a){if(1&n&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e._intl.optionalLabel)}}function sL(n,a){if(1&n&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.errorMessage)}}function oL(n,a){}function lL(n,a){if(1&n&&(i.Hsn(0),i.YNc(1,oL,0,0,"ng-template",0)),2&n){const e=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",e._portal)}}const cL=["*"];function dL(n,a){1&n&&i._UZ(0,"div",9)}const AE=function(n,a){return{step:n,i:a}};function uL(n,a){if(1&n&&(i.ynx(0),i.GkF(1,7),i.YNc(2,dL,1,0,"div",8),i.BQk()),2&n){const e=a.$implicit,t=a.index,r=a.last;i.oxw(2);const l=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",l)("ngTemplateOutletContext",i.WLB(3,AE,e,t)),i.xp6(1),i.Q6J("ngIf",!r)}}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",10),i.NdJ("@horizontalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.GkF(1,11),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("@horizontalStepTransition",r._getAnimationDirection(t))("id",r._getStepContentId(t)),i.uIk("aria-labelledby",r._getStepLabelId(t))("aria-expanded",r.selectedIndex===t),i.xp6(1),i.Q6J("ngTemplateOutlet",e.content)}}function pL(n,a){if(1&n&&(i.ynx(0),i.TgZ(1,"div",3),i.YNc(2,uL,3,6,"ng-container",4),i.qZA(),i.TgZ(3,"div",5),i.YNc(4,hL,2,5,"div",6),i.qZA(),i.BQk()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngForOf",e.steps),i.xp6(2),i.Q6J("ngForOf",e.steps)}}function fL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.GkF(1,7),i.TgZ(2,"div",14),i.TgZ(3,"div",15),i.NdJ("@verticalStepTransition.done",function(r){return i.CHM(e),i.oxw(2)._animationDone.next(r)}),i.TgZ(4,"div",16),i.GkF(5,11),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=a.last,l=i.oxw(2),d=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",d)("ngTemplateOutletContext",i.WLB(9,AE,e,t)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!r),i.xp6(1),i.Q6J("@verticalStepTransition",l._getAnimationDirection(t))("id",l._getStepContentId(t)),i.uIk("aria-labelledby",l._getStepLabelId(t))("aria-expanded",l.selectedIndex===t),i.xp6(2),i.Q6J("ngTemplateOutlet",e.content)}}function mL(n,a){if(1&n&&(i.ynx(0),i.YNc(1,fL,6,12,"div",12),i.BQk()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.steps)}}function gL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-step-header",17),i.NdJ("click",function(){return i.CHM(e).step.select()})("keydown",function(r){return i.CHM(e),i.oxw()._onKeydown(r)}),i.qZA()}if(2&n){const e=a.step,t=a.i,r=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===r.orientation)("mat-vertical-stepper-header","vertical"===r.orientation),i.Q6J("tabIndex",r._getFocusIndex()===t?0:-1)("id",r._getStepLabelId(t))("index",t)("state",r._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",r.selectedIndex===t)("active",r._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",r._iconOverrides)("disableRipple",r.disableRipple||!r._stepIsNavigable(t,e))("color",e.color||r.color),i.uIk("aria-posinset",t+1)("aria-setsize",r.steps.length)("aria-controls",r._getStepContentId(t))("aria-selected",r.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",!r._stepIsNavigable(t,e)||null)}}let OC=(()=>{class n extends wE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matStepLabel",""]],features:[i.qOj]}),n})(),BC=(()=>{class n{constructor(){this.changes=new Ee.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const bL={provide:BC,deps:[[new i.FiY,new i.tp0,BC]],useFactory:function _L(n){return n||new BC}},yL=Ja(class extends yE{constructor(a){super(a)}},"primary");let vE=(()=>{class n extends yL{constructor(e,t,r,l){super(r),this._intl=e,this._focusMonitor=t,this._intlSubscription=e.changes.subscribe(()=>l.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof OC?null:this.label}_templateLabel(){return this.label instanceof OC?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return"number"==e?`${this.index+1}`:"edit"==e?"create":"error"==e?"warning":e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(BC),i.Y36(rr),i.Y36(i.SBq),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(e,t){1&e&&(i._UZ(0,"div",0),i.TgZ(1,"div"),i.TgZ(2,"div",1),i.YNc(3,QR,1,2,"ng-container",2),i.YNc(4,iL,5,4,"ng-container",3),i.qZA(),i.qZA(),i.TgZ(5,"div",4),i.YNc(6,nL,2,1,"div",5),i.YNc(7,rL,2,1,"div",5),i.YNc(8,aL,2,1,"div",6),i.YNc(9,sL,2,1,"div",7),i.qZA()),2&e&&(i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",t.state," mat-step-icon"),i.ekj("mat-step-icon-selected",t.selected),i.xp6(1),i.Q6J("ngSwitch",!(!t.iconOverrides||!t.iconOverrides[t.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",t.active)("mat-step-label-selected",t.selected)("mat-step-label-error","error"==t.state),i.xp6(1),i.Q6J("ngIf",t._templateLabel()),i.xp6(1),i.Q6J("ngIf",t._stringLabel()),i.xp6(1),i.Q6J("ngIf",t.optional&&"error"!=t.state),i.xp6(1),i.Q6J("ngIf","error"==t.state))},directives:[Gi,qt,T.RF,T.n9,T.tP,T.ED,T.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),n})();const TE={horizontalStepTransition:ei("horizontalStepTransition",[Dt("previous",He({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Dt("current",He({transform:"none",visibility:"inherit"})),Dt("next",He({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),ft("* => *",ct("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:ei("verticalStepTransition",[Dt("previous",He({height:"0px",visibility:"hidden"})),Dt("next",He({height:"0px",visibility:"hidden"})),Dt("current",He({height:"*",visibility:"inherit"})),ft("* <=> current",ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let wL=(()=>{class n{constructor(e){this.templateRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),n})(),CL=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matStepContent",""]]}),n})(),xE=(()=>{class n extends Yx{constructor(e,t,r,l){super(e,l),this._errorStateMatcher=t,this._viewContainerRef=r,this._isSelected=he.w.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,nn.w)(()=>this._stepper.selectionChange.pipe((0,dt.U)(e=>e.selectedStep===this),Wt(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new fo(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){return this._errorStateMatcher.isErrorState(e,t)||!!(e&&e.invalid&&this.interacted)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36((0,i.Gpc)(()=>SE)),i.Y36(wr,4),i.Y36(i.s_b),i.Y36(CE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-step"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,OC,5),i.Suo(r,CL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.stepLabel=l.first),i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:wr,useExisting:n},{provide:Yx,useExisting:n}]),i.qOj],ngContentSelectors:cL,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,lL,2,1,"ng-template"))},directives:[Ua],encapsulation:2,changeDetection:0}),n})(),ME=(()=>{class n extends gf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),AL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-horizontal-stepper"]],features:[i.qOj]}),n})(),vL=(()=>{class n extends ME{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-vertical-stepper"]],features:[i.qOj]}),n})(),SE=(()=>{class n extends gf{constructor(e,t,r,l){super(e,t,r,l),this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new Ee.xQ;const d=r.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===d?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(Je(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(ll((e,t)=>e.fromState===t.fromState&&e.toState===t.toState),Je(this._destroyed)).subscribe(e=>{"current"===e.toState&&this.animationDone.emit()})}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xi,8),i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(T.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xE,5),i.Suo(r,wL,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._steps=l),i.iGM(l=i.CRH())&&(t._icons=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(vE,5),2&e){let r;i.iGM(r=i.CRH())&&(t._stepHeader=r)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(e,t){2&e&&(i.uIk("aria-orientation",t.orientation),i.ekj("mat-stepper-horizontal","horizontal"===t.orientation)("mat-stepper-vertical","vertical"===t.orientation)("mat-stepper-label-position-end","horizontal"===t.orientation&&"end"==t.labelPosition)("mat-stepper-label-position-bottom","horizontal"===t.orientation&&"bottom"==t.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:gf,useExisting:n},{provide:AL,useExisting:n},{provide:vL,useExisting:n}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(e,t){1&e&&(i.ynx(0,0),i.YNc(1,pL,5,2,"ng-container",1),i.YNc(2,mL,2,1,"ng-container",1),i.BQk(),i.YNc(3,gL,1,23,"ng-template",null,2,i.W1O)),2&e&&(i.Q6J("ngSwitch",t.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},directives:[vE,T.RF,T.n9,T.sg,T.tP,T.O5],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[TE.horizontalStepTransition,TE.verticalStepTransition]},changeDetection:0}),n})(),TL=(()=>{class n extends ZR{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),xL=(()=>{class n extends $R{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("type",t.type)},inputs:{type:"type"},features:[i.qOj]}),n})(),EE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[bL,wr],imports:[[st,T.ez,il,Gr,JR,Gc,Qa],st]}),n})();const ML=["mat-calendar-body",""];function SL(n,a){if(1&n&&(i.TgZ(0,"tr",2),i.TgZ(1,"td",3),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e.numCols),i.xp6(1),i.hij(" ",e.label," ")}}function EL(n,a){if(1&n&&(i.TgZ(0,"td",3),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),i.uIk("colspan",e._firstRowOffset),i.xp6(1),i.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function DL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",7),i.TgZ(1,"button",8),i.NdJ("click",function(r){const d=i.CHM(e).$implicit;return i.oxw(2)._cellClicked(d,r)}),i.TgZ(2,"div",9),i._uU(3),i.qZA(),i._UZ(4,"div",10),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw().index,l=i.oxw();i.Udp("width",l._cellWidth)("padding-top",l._cellPadding)("padding-bottom",l._cellPadding),i.uIk("data-mat-row",r)("data-mat-col",t),i.xp6(1),i.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",l._isActiveCell(r,t))("mat-calendar-body-range-start",l._isRangeStart(e.compareValue))("mat-calendar-body-range-end",l._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",l._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",l._isComparisonBridgeStart(e.compareValue,r,t))("mat-calendar-body-comparison-bridge-end",l._isComparisonBridgeEnd(e.compareValue,r,t))("mat-calendar-body-comparison-start",l._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",l._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",l._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",l._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",l._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",l._isInPreview(e.compareValue)),i.Q6J("ngClass",e.cssClasses)("tabindex",l._isActiveCell(r,t)?0:-1),i.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",l._isSelected(e.compareValue))("aria-current",l.todayValue===e.compareValue?"date":null),i.xp6(1),i.ekj("mat-calendar-body-selected",l._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",l._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",l.todayValue===e.compareValue),i.xp6(1),i.hij(" ",e.displayValue," ")}}function HL(n,a){if(1&n&&(i.TgZ(0,"tr",4),i.YNc(1,EL,2,6,"td",5),i.YNc(2,DL,5,47,"td",6),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("ngIf",0===t&&r._firstRowOffset),i.xp6(1),i.Q6J("ngForOf",e)}}function kL(n,a){if(1&n&&(i.TgZ(0,"th",5),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.uIk("aria-label",e.long),i.xp6(1),i.hij(" ",e.narrow," ")}}const PL=["*"];function RL(n,a){}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-month-view",5),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("_userSelection",function(r){return i.CHM(e),i.oxw()._dateSelected(r)}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-year-view",6),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("monthSelected",function(r){return i.CHM(e),i.oxw()._monthSelectedInYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"month")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function OL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-multi-year-view",7),i.NdJ("activeDateChange",function(r){return i.CHM(e),i.oxw().activeDate=r})("yearSelected",function(r){return i.CHM(e),i.oxw()._yearSelectedInMultiYearView(r)})("selectedChange",function(r){return i.CHM(e),i.oxw()._goToDateInView(r,"year")}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function BL(n,a){}const VL=["button"];function jL(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"path",4),i.qZA())}const FL=[[["","matDatepickerToggleIcon",""]]],NL=["[matDatepickerToggleIcon]"];class Ux{constructor(a,e,t,r,l={},d=a,o){this.value=a,this.displayValue=e,this.ariaLabel=t,this.enabled=r,this.cssClasses=l,this.compareValue=d,this.rawValue=o}}let _f=(()=>{class n{constructor(e,t){this._elementRef=e,this._ngZone=t,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new i.vpe,this.previewChange=new i.vpe,this._enterHandler=r=>{if(this._skipNextFocus&&"focus"===r.type)this._skipNextFocus=!1;else if(r.target&&this.isRange){const l=this._getCellFromElement(r.target);l&&this._ngZone.run(()=>this.previewChange.emit({value:l.enabled?l:null,event:r}))}},this._leaveHandler=r=>{null!==this.previewEnd&&this.isRange&&r.target&&this._getCellFromElement(r.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:r}))},t.runOutsideAngular(()=>{const r=e.nativeElement;r.addEventListener("mouseenter",this._enterHandler,!0),r.addEventListener("focus",this._enterHandler,!0),r.addEventListener("mouseleave",this._leaveHandler,!0),r.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const t=e.numCols,{rows:r,numCols:l}=this;(e.rows||t)&&(this._firstRowOffset=r&&r.length&&r[0].length?l-r[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/l+"%"),(t||!this._cellWidth)&&(this._cellWidth=100/l+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,t){let r=e*this.numCols+t;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})})}_isRangeStart(e){return zx(e,this.startValue,this.endValue)}_isRangeEnd(e){return qx(e,this.startValue,this.endValue)}_isInRange(e){return Gx(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return zx(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let l=this.rows[t][r-1];if(!l){const d=this.rows[t-1];l=d&&d[d.length-1]}return l&&!this._isRangeEnd(l.compareValue)}_isComparisonBridgeEnd(e,t,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let l=this.rows[t][r+1];if(!l){const d=this.rows[t+1];l=d&&d[0]}return l&&!this._isRangeStart(l.compareValue)}_isComparisonEnd(e){return qx(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Gx(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return zx(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return qx(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Gx(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let t;if(DE(e)?t=e:DE(e.parentNode)&&(t=e.parentNode),t){const r=t.getAttribute("data-mat-row"),l=t.getAttribute("data-mat-col");if(r&&l)return this.rows[parseInt(r)][parseInt(l)]}return null}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[i.TTD],attrs:ML,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,t){1&e&&(i.YNc(0,SL,3,6,"tr",0),i.YNc(1,HL,3,2,"tr",1)),2&e&&(i.Q6J("ngIf",t._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),n})();function DE(n){return"TD"===n.nodeName}function zx(n,a,e){return null!==e&&a!==e&&n=a&&n===e}function Gx(n,a,e,t){return t&&null!==a&&null!==e&&a!==e&&n>=a&&n<=e}class Jr{constructor(a,e){this.start=a,this.end=e}}let $c=(()=>{class n{constructor(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new Ee.xQ,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,t){const r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),YL=(()=>{class n extends $c{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new n(this._adapter);return e.updateSelection(this.selection,this),e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ai))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const HE={provide:$c,deps:[[new i.FiY,new i.tp0,$c],Ai],useFactory:function zL(n,a){return n||new YL(a)}},VC=new i.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let kE=(()=>{class n{constructor(e,t,r,l,d){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rangeStrategy=d,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this._userSelection=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const t=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnChanges(e){const t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const t=e.value,r=this._dateAdapter.getYear(this.activeDate),l=this._dateAdapter.getMonth(this.activeDate),d=this._dateAdapter.createDate(r,l,t);let o,s;this._selected instanceof Jr?(o=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):o=s=this._getDateInCurrentMonth(this._selected),(o!==t||s!==t)&&this.selectedChange.emit(d),this._userSelection.emit({value:d,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case 27:return void(null!=this._previewEnd&&!Ki(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_previewChanged({event:e,value:t}){if(this._rangeStrategy){const l=this._rangeStrategy.createPreview(t?t.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(l.start),this._previewEnd=this._getCellCompareValue(l.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow");let l=this._dateAdapter.getDayOfWeekNames("long").map((d,o)=>({long:d,narrow:t[o]}));this._weekdays=l.slice(e).concat(l.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,l=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){const t=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),l=this._dateAdapter.getDate(e);return new Date(t,r,l).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof Jr?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(yr,8),i.Y36(Ai,8),i.Y36(xi,8),i.Y36(VC,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-month-view"]],viewQuery:function(e,t){if(1&e&&i.Gf(_f,5),2&e){let r;i.iGM(r=i.CRH())&&(t._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[i.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"]],template:function(e,t){1&e&&(i.TgZ(0,"table",0),i.TgZ(1,"thead",1),i.TgZ(2,"tr"),i.YNc(3,kL,2,2,"th",2),i.qZA(),i.TgZ(4,"tr"),i._UZ(5,"th",3),i.qZA(),i.qZA(),i.TgZ(6,"tbody",4),i.NdJ("selectedValueChange",function(l){return t._dateSelected(l)})("previewChange",function(l){return t._previewChanged(l)})("keyup",function(l){return t._handleCalendarBodyKeyup(l)})("keydown",function(l){return t._handleCalendarBodyKeydown(l)}),i.qZA(),i.qZA()),2&e&&(i.xp6(3),i.Q6J("ngForOf",t._weekdays),i.xp6(3),i.Q6J("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[_f,T.sg],encapsulation:2,changeDetection:0}),n})(),PE=(()=>{class n{constructor(e,t,r){this._changeDetectorRef=e,this._dateAdapter=t,this._dir=r,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),RE(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,l=[];r<24;r++)l.push(t+r),4==l.length&&(this._years.push(l.map(d=>this._createCellForYear(d))),l=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));let r=this._dateAdapter.getMonth(this.activeDate),l=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,r,1));this.selectedChange.emit(this._dateAdapter.createDate(t,r,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return S_(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(e){const t=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(t),l=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Ux(e,r,r,this._shouldEnableYear(e),l)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class n{constructor(e,t,r,l){this._changeDetectorRef=e,this._dateFormats=t,this._dateAdapter=r,this._dir=l,this._rerenderSubscription=he.w.EMPTY,this.selectedChange=new i.vpe,this.monthSelected=new i.vpe,this.activeDateChange=new i.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate;const r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Wt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const t=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(r);const l=this._dateAdapter.getNumDaysInMonth(r);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),l)))}_handleCalendarBodyKeydown(e){const t=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}_handleCalendarBodyKeyup(e){(32===e.keyCode||13===e.keyCode)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_createCellForMonth(e,t){const r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),l=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),d=this.dateClass?this.dateClass(r,"year"):void 0;return new Ux(e,t.toLocaleUpperCase(),l,this._shouldEnableMonth(e),d)}_shouldEnableMonth(e){const t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(let l=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(l)==e;l=this._dateAdapter.addCalendarDays(l,1))if(this.dateFilter(l))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){const r=this._dateAdapter.getYear(this.maxDate),l=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&t>l}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){const r=this._dateAdapter.getYear(this.minDate),l=this._dateAdapter.getMonth(this.minDate);return e{class n{constructor(){this.changes=new Ee.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),$L=0,JL=(()=>{class n{constructor(e,t,r,l,d){this._intl=e,this.calendar=t,this._dateAdapter=r,this._dateFormats=l,this._buttonDescriptionId="mat-calendar-button-"+$L++,this.calendar.stateChanges.subscribe(()=>d.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-S_(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=t+24-1,l=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),d=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return this._intl.formatYearRange(l,d)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):RE(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36((0,i.Gpc)(()=>$x)),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:PL,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"button",2),i.NdJ("click",function(){return t.currentPeriodClicked()}),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.O4$(),i.TgZ(5,"svg",3),i._UZ(6,"polygon",4),i.qZA(),i.qZA(),i.kcU(),i._UZ(7,"div",5),i.Hsn(8),i.TgZ(9,"button",6),i.NdJ("click",function(){return t.previousClicked()}),i.qZA(),i.TgZ(10,"button",7),i.NdJ("click",function(){return t.nextClicked()}),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.uIk("aria-label",t.periodButtonLabel)("aria-describedby",t._buttonDescriptionId),i.xp6(1),i.uIk("id",t._buttonDescriptionId),i.xp6(1),i.Oqu(t.periodButtonText),i.xp6(1),i.ekj("mat-calendar-invert","month"!==t.calendar.currentView),i.xp6(4),i.Q6J("disabled",!t.previousEnabled()),i.uIk("aria-label",t.prevButtonLabel),i.xp6(1),i.Q6J("disabled",!t.nextEnabled()),i.uIk("aria-label",t.nextButtonLabel))},directives:[Ft,Om],encapsulation:2,changeDetection:0}),n})(),$x=(()=>{class n{constructor(e,t,r,l){this._dateAdapter=t,this._dateFormats=r,this._changeDetectorRef=l,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new i.vpe,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this._userSelection=new i.vpe,this.stateChanges=new Ee.xQ,this._intlChanges=e.changes.subscribe(()=>{l.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof Jr?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}ngAfterContentInit(){this._calendarHeaderPortal=new tl(this.headerComponent||JL),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){const r=this._getCurrentViewComponent();r&&(this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const t=e.value;(this.selected instanceof Jr||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-calendar"]],viewQuery:function(e,t){if(1&e&&(i.Gf(kE,5),i.Gf(IE,5),i.Gf(PE,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.monthView=r.first),i.iGM(r=i.CRH())&&(t.yearView=r.first),i.iGM(r=i.CRH())&&(t.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[i._Bn([HE]),i.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(i.YNc(0,RL,0,0,"ng-template",0),i.TgZ(1,"div",1),i.YNc(2,LL,1,8,"mat-month-view",2),i.YNc(3,IL,1,6,"mat-year-view",3),i.YNc(4,OL,1,6,"mat-multi-year-view",4),i.qZA()),2&e&&(i.Q6J("cdkPortalOutlet",t._calendarHeaderPortal),i.xp6(1),i.Q6J("ngSwitch",t.currentView),i.xp6(1),i.Q6J("ngSwitchCase","month"),i.xp6(1),i.Q6J("ngSwitchCase","year"),i.xp6(1),i.Q6J("ngSwitchCase","multi-year"))},directives:[kE,IE,PE,Ua,gv,T.RF,T.n9],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),n})();const OE={transformPanel:ei("transformPanel",[ft("void => enter-dropdown",ct("120ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(1, 0.8)"}),He({opacity:1,transform:"scale(1, 1)"})]))),ft("void => enter-dialog",ct("150ms cubic-bezier(0, 0, 0.2, 1)",ul([He({opacity:0,transform:"scale(0.7)"}),He({transform:"none",opacity:1})]))),ft("* => void",ct("100ms linear",He({opacity:0})))]),fadeInCalendar:ei("fadeInCalendar",[Dt("void",He({opacity:0})),Dt("enter",He({opacity:1})),ft("void => *",ct("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let QL=0;const BE=new i.OlP("mat-datepicker-scroll-strategy"),XL={provide:BE,deps:[br],useFactory:function KL(n){return()=>n.scrollStrategies.reposition()}},eI=Ja(class{constructor(n){this._elementRef=n}});let tI=(()=>{class n extends eI{constructor(e,t,r,l,d,o){super(e),this._changeDetectorRef=t,this._globalModel=r,this._dateAdapter=l,this._rangeSelectionStrategy=d,this._subscriptions=new he.w,this._animationDone=new Ee.xQ,this._actionsPortal=null,this._closeButtonText=o.closeCalendarLabel}ngOnInit(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const t=this._model.selection,r=e.value,l=t instanceof Jr;if(l&&this._rangeSelectionStrategy){const d=this._rangeSelectionStrategy.selectionFinished(r,t,e.event);this._model.updateSelection(d,this)}else r&&(l||!this._dateAdapter.sameDate(r,t))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36($c),i.Y36(Ai),i.Y36(VC,8),i.Y36(E_))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){if(1&e&&i.Gf($x,5),2&e){let r;i.iGM(r=i.CRH())&&(t._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&i.WFA("@transformPanel.done",function(){return t._animationDone.next()}),2&e&&(i.d8E("@transformPanel",t._animationState),i.ekj("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[i.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-calendar",1),i.NdJ("yearSelected",function(l){return t.datepicker._selectYear(l)})("monthSelected",function(l){return t.datepicker._selectMonth(l)})("viewChanged",function(l){return t.datepicker._viewChanged(l)})("_userSelection",function(l){return t._handleUserSelection(l)}),i.qZA(),i.YNc(2,BL,0,0,"ng-template",2),i.TgZ(3,"button",3),i.NdJ("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),i._uU(4),i.qZA(),i.qZA()),2&e){let r;i.ekj("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),i.uIk("aria-modal",!0)("aria-labelledby",null!==(r=t._dialogLabelId)&&void 0!==r?r:void 0),i.xp6(1),i.Q6J("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter"),i.xp6(1),i.Q6J("cdkPortalOutlet",t._actionsPortal),i.xp6(1),i.ekj("cdk-visually-hidden",!t._closeButtonFocused),i.Q6J("color",t.color||"primary"),i.xp6(1),i.Oqu(t._closeButtonText)}},directives:[$x,Ft,jr,T.mk,Ua],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[OE.transformPanel,OE.fadeInCalendar]},changeDetection:0}),n})(),VE=(()=>{class n{constructor(e,t,r,l,d,o,s){this._overlay=e,this._ngZone=t,this._viewContainerRef=r,this._dateAdapter=d,this._dir=o,this._model=s,this._inputStateChanges=he.w.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new i.vpe,this.monthSelected=new i.vpe,this.viewChanged=new i.vpe(!0),this.openedStream=new i.vpe,this.closedStream=new i.vpe,this._opened=!1,this.id="mat-datepicker-"+QL++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new Ee.xQ,this._scrollStrategy=l}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=Oe(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const t=Oe(e);t!==this._disabled&&(this._disabled=t,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=Oe(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=function gM(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e)}get opened(){return this._opened}set opened(e){Oe(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){const r=this._overlayRef.getConfig().positionStrategy;r instanceof Tm&&(this._setConnectedPositions(r),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Fa(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const t=this._componentRef.instance;t._startExitAnimation(),t._animationDone.pipe((0,jt.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){var e,t;null===(t=null===(e=this._componentRef)||void 0===e?void 0:e.instance)||void 0===t||t._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._actionsPortal=this._actionsPortal,e._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const e=this.touchUi,t=new tl(tI,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new fc({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(r).subscribe(l=>{l&&l.preventDefault(),this.close()}),this._componentRef=r.attach(t),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,jt.q)(1)).subscribe(()=>r.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const t="end"===this.xPosition?"end":"start",r="start"===t?"end":"start",l="above"===this.yPosition?"bottom":"top",d="top"===l?"bottom":"top";return e.withPositions([{originX:t,originY:d,overlayX:t,overlayY:l},{originX:t,originY:l,overlayX:t,overlayY:d},{originX:r,originY:d,overlayX:r,overlayY:l},{originX:r,originY:l,overlayX:r,overlayY:d}])}_getCloseStream(e){return(0,Mi.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,zt.h)(t=>27===t.keyCode&&!Ki(t)||this.datepickerInput&&Ki(t,"altKey")&&38===t.keyCode)))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(br),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(BE),i.Y36(Ai,8),i.Y36(xi,8),i.Y36($c))},n.\u0275dir=i.lG2({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[i.TTD]}),n})(),Jx=(()=>{class n extends VE{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[i._Bn([HE,{provide:VE,useExisting:n}]),i.qOj],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),n})();class jC{constructor(a,e){this.target=a,this.targetElement=e,this.value=this.target.value}}let iI=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dateAdapter=t,this._dateFormats=r,this.dateChange=new i.vpe,this.dateInput=new i.vpe,this.stateChanges=new Ee.xQ,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=he.w.EMPTY,this._localeSubscription=he.w.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value));return!d||this._matchesFilter(d)?null:{matDatepickerFilter:!0}},this._minValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMinDate();return!o||!d||this._dateAdapter.compareDate(o,d)<=0?null:{matDatepickerMin:{min:o,actual:d}}},this._maxValidator=l=>{const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(l.value)),o=this._getMaxDate();return!o||!d||this._dateAdapter.compareDate(o,d)>=0?null:{matDatepickerMax:{max:o,actual:d}}},this._lastValueValid=!1,this._localeSubscription=t.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const t=Oe(e),r=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&r.blur&&r.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){const r=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(r),this._cvaOnChange(r),this._onTouched(),this._formatValue(r),this.dateInput.emit(new jC(this,this._elementRef.nativeElement)),this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){(function nI(n,a){const e=Object.keys(n);for(let t of e){const{previousValue:r,currentValue:l}=n[t];if(!a.isDateInstance(r)||!a.isDateInstance(l))return!0;if(!a.sameDate(r,l))return!0}return!1})(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const t=this._lastValueValid;let r=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r),this._dateAdapter.sameDate(r,this.value)?(e&&!this.value&&this._cvaOnChange(r),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(r),this._cvaOnChange(r),this.dateInput.emit(new jC(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new jC(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const t=this._getDateFilter();return!t||t(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(yr,8))},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[i.TTD]}),n})();const rI={provide:lr,useExisting:(0,i.Gpc)(()=>D_),multi:!0},aI={provide:on,useExisting:(0,i.Gpc)(()=>D_),multi:!0};let D_=(()=>{class n extends iI{constructor(e,t,r,l){super(e,t,r),this._formField=l,this._closedSubscription=he.w.EMPTY,this._validator=Oi.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}get max(){return this._max}set max(e){const t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ai,8),i.Y36(yr,8),i.Y36(Bg,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t._onInput(l.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(l){return t._onKeydown(l)}),2&e&&(i.Ikx("disabled",t.disabled),i.uIk("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[i._Bn([rI,aI,{provide:LS,useExisting:n}]),i.qOj]}),n})(),sI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matDatepickerToggleIcon",""]]}),n})(),Qx=(()=>{class n{constructor(e,t,r){this._intl=e,this._changeDetectorRef=t,this._stateChanges=he.w.EMPTY;const l=Number(r);this.tabIndex=l||0===l?l:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=Oe(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,Ne.of)(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Ne.of)(),r=this.datepicker?(0,Mi.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Ne.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,Mi.T)(this._intl.changes,e,t,r).subscribe(()=>this._changeDetectorRef.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(E_),i.Y36(i.sBO),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,sI,5),2&e){let l;i.iGM(l=i.CRH())&&(t._customIcon=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(VL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._open(l)}),2&e&&(i.uIk("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),i.ekj("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[i.TTD],ngContentSelectors:NL,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(i.F$t(FL),i.TgZ(0,"button",0,1),i.YNc(2,jL,2,0,"svg",2),i.Hsn(3),i.qZA()),2&e&&(i.Q6J("disabled",t.disabled)("disableRipple",t.disableRipple),i.uIk("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),i.xp6(2),i.Q6J("ngIf",!t._customIcon))},directives:[Ft,T.O5],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),Kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[E_,XL],imports:[[T.ez,Gr,_o,zh,il,st],gr]}),n})();const oI=["mat-sort-header",""];function lI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const cI=["*"],Jc=Gv.ENTERING+" "+qv.STANDARD_CURVE,bf={indicator:ei("indicator",[Dt("active-asc, asc",He({transform:"translateY(0px)"})),Dt("active-desc, desc",He({transform:"translateY(10px)"})),ft("active-asc <=> active-desc",ct(Jc))]),leftPointer:ei("leftPointer",[Dt("active-asc, asc",He({transform:"rotate(-45deg)"})),Dt("active-desc, desc",He({transform:"rotate(45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),rightPointer:ei("rightPointer",[Dt("active-asc, asc",He({transform:"rotate(45deg)"})),Dt("active-desc, desc",He({transform:"rotate(-45deg)"})),ft("active-asc <=> active-desc",ct(Jc))]),arrowOpacity:ei("arrowOpacity",[Dt("desc-to-active, asc-to-active, active",He({opacity:1})),Dt("desc-to-hint, asc-to-hint, hint",He({opacity:.54})),Dt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",He({opacity:0})),ft("* => asc, * => desc, * => active, * => hint, * => void",ct("0ms")),ft("* <=> *",ct(Jc))]),arrowPosition:ei("arrowPosition",[ft("* => desc-to-hint, * => desc-to-active",ct(Jc,ul([He({transform:"translateY(-25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-desc, * => active-to-desc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(25%)"})]))),ft("* => asc-to-hint, * => asc-to-active",ct(Jc,ul([He({transform:"translateY(25%)"}),He({transform:"translateY(0)"})]))),ft("* => hint-to-asc, * => active-to-asc",ct(Jc,ul([He({transform:"translateY(0)"}),He({transform:"translateY(-25%)"})]))),Dt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",He({transform:"translateY(0)"})),Dt("hint-to-desc, active-to-desc, desc",He({transform:"translateY(-25%)"})),Dt("hint-to-asc, active-to-asc, asc",He({transform:"translateY(25%)"}))]),allowChildren:ei("allowChildren",[ft("* <=> *",[Dn("@*",ty(),{optional:!0})])])};let FC=(()=>{class n{constructor(){this.changes=new Ee.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uI={provide:FC,deps:[[new i.FiY,new i.tp0,FC]],useFactory:function dI(n){return n||new FC}},hI=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),pI=bg(fa(class{}));let wa=(()=>{class n extends pI{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new Ee.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let o=function fI(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),s=o.indexOf(this.direction)+1;return s>=o.length&&(s=0),o[s]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hI,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const mI=fa(class{});let yf=(()=>{class n extends mI{constructor(e,t,r,l,d,o,s){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=o,this._ariaDescriber=s,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=Oe(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Mi.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(FC),i.Y36(i.sBO),i.Y36(wa,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(rr),i.Y36(i.SBq),i.Y36(km,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:oI,ngContentSelectors:cI,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,lI,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[T.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[bf.indicator,bf.leftPointer,bf.rightPointer,bf.arrowOpacity,bf.arrowPosition,bf.allowChildren]},changeDetection:0}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uI],imports:[[T.ez,st]]}),n})(),jE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Qa],oE,jx,gE,Gr,bE,IC,Gc,Ox,yu,CC,vl,AC,el,iC,Ou,EE,Kx,jy,$S,tE,gC,YS,Xx,ee,ju,Vu,Qa]}),n})(),gI=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.publication=this.data}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-cite-dialog"]],decls:10,vars:7,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["mat-dialog-actions",""],["mat-stroked-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i._uU(5),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.SHOW_CITE.TITLE")),i.xp6(3),i.hij(" ",t.publication.main," "),i.xp6(3),i.hij(" ",i.lcZ(9,5,"DIALOGS.SHOW_CITE.OK")," "))},directives:[or,kn,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),_I=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),FE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),NC=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})();function bI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",20),i.TgZ(1,"mat-checkbox",21),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function yI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"mat-checkbox",23),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function wI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_ID")," "))}function CI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function AI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_LOCK")," "))}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.LOCKED"))}function TI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",27),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().lockOrUnlockPublication(r)})("mouseenter",function(){return i.CHM(e),i.oxw(2).buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw(2).buttonPressed=!1}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon"),i._uU(3,"lock_open"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATIONS_LIST.UNLOCKED"))}function xI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,vI,4,3,"button",26),i.YNc(2,TI,4,3,"button",26),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.locked),i.xp6(1),i.Q6J("ngIf",!e.locked)}}function MI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_TITLE")," "))}function SI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.title," ")}}function EI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_REPORTED_BY")," "))}function DI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"userFullName"),i._UZ(3,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e),"")}}function HI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,DI,4,3,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.authors)}}function kI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_YEAR")," "))}function PI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.year," ")}}function RI(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CATEGORY")," "))}function LI(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.categoryName," ")}}function II(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_THANKEDTO")," "))}function OI(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i._UZ(2,"br"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.ownerName,"")}}function BI(n,a){if(1&n&&(i.TgZ(0,"td",25),i.YNc(1,OI,3,1,"span",28),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngForOf",e.thanks)}}function VI(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"PUBLICATIONS_LIST.TABLE_CITE")))}function jI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",25),i.TgZ(1,"button",30),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showCite(l)})("mouseenter",function(){return i.CHM(e),i.oxw().buttonPressed=!0})("mouseleave",function(){return i.CHM(e),i.oxw().buttonPressed=!1}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"PUBLICATIONS_LIST.SHOW_CITE")," "))}function FI(n,a){1&n&&i._UZ(0,"tr",31)}const NE=function(n,a){return[n,a]};function NI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.disabledRouting&&d.openInTab&&!d.buttonPressed?d.emitPublication(l):null}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disabledRouting||t.buttonPressed?null:i.WLB(4,NE,t.routerPath,e.id))("routerLink",t.disabledRouting||t.buttonPressed?null:i.WLB(7,NE,t.routerPath,e.id))}}function YI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",33),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATIONS_LIST.NO_PUBLICATIONS_FOUND"),"\n"))}let wf=(()=>{class n{constructor(e,t,r,l,d){this.tableCheckbox=e,this.cabinetService=t,this.dialog=r,this.notificator=l,this.translate=d,this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","lock","title","reportedBy","year","category","thankedTo","cite"],this.pageSizeOptions=Uu,this.disabledRouting=!1,this.openInTab=!1,this.allowAlert=!0,this.publicationSelector=new i.vpe,this.buttonPressed=!1,d.get("PUBLICATIONS_LIST.CHANGE_LOCK_SUCCESS").subscribe(o=>this.changeLockMessage=o),d.get("PUBLICATIONS_LIST.LOCKED").subscribe(o=>this.locked=o),d.get("PUBLICATIONS_LIST.UNLOCKED").subscribe(o=>this.unlocked=o)}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"lock":return String(e.locked);case"title":return e.title;case"reportedBy":{let r="";return e.authors.forEach(l=>r+=vS(l)+";"),r.slice(0,-1)}case"year":return e.year.toString();case"category":return e.categoryName;case"thankedTo":{let r="";return e.thanks.forEach(l=>r+=l.ownerName+";"),r.slice(0,-1)}default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.publications),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,"",this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,"",this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}itemSelectionToggle(e){this.selection.toggle(e)}showCite(e){const t=Zn();t.width="500px",t.data=e,this.dialog.open(gI,t)}lockOrUnlockPublication(e){this.cabinetService.lockPublications({publications:[this.createPublication(e)],lock:!e.locked}).subscribe(()=>{this.notificator.showSuccess(e.locked?this.changeLockMessage+this.unlocked:this.changeLockMessage+this.locked),e.locked=!e.locked})}emitPublication(e){this.publicationSelector.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}createPublication(e){return{id:e.id,beanName:e.beanName,externalId:e.externalId,publicationSystemId:e.publicationSystemId,categoryId:e.categoryId,createdBy:e.createdBy,createdDate:e.createdDate,doi:e.doi,isbn:e.isbn,locked:e.locked,main:e.main,rank:e.rank,title:e.title,year:e.year}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC),i.Y36(li),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publications-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publications:"publications",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",pageSizeOptions:"pageSizeOptions",routerPath:"routerPath",disabledRouting:"disabledRouting",openInTab:"openInTab",allowAlert:"allowAlert"},outputs:{publicationSelector:"publicationSelector"},features:[i.TTD],decls:33,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","title","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","lock"],["matColumnDef","title"],["matColumnDef","reportedBy"],["matColumnDef","year"],["matColumnDef","category"],["matColumnDef","thankedTo"],["matColumnDef","cite"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer","click",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave",4,"ngIf"],["mat-icon-button","",3,"matTooltip","click","mouseenter","mouseleave"],[4,"ngFor","ngForOf"],["mat-header-cell",""],["mat-stroked-button","",3,"click","mouseenter","mouseleave"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,bI,2,3,"th",4),i.YNc(5,yI,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,wI,3,3,"th",7),i.YNc(8,CI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,3,3,"th",7),i.YNc(11,xI,3,2,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,MI,3,3,"th",7),i.YNc(14,SI,2,1,"td",8),i.BQk(),i.ynx(15,11),i.YNc(16,EI,3,3,"th",7),i.YNc(17,HI,2,1,"td",8),i.BQk(),i.ynx(18,12),i.YNc(19,kI,3,3,"th",7),i.YNc(20,PI,2,1,"td",8),i.BQk(),i.ynx(21,13),i.YNc(22,RI,3,3,"th",7),i.YNc(23,LI,2,1,"td",8),i.BQk(),i.ynx(24,14),i.YNc(25,II,3,3,"th",7),i.YNc(26,BI,2,1,"td",8),i.BQk(),i.ynx(27,15),i.YNc(28,VI,3,3,"th",16),i.YNc(29,jI,4,3,"td",8),i.BQk(),i.YNc(30,FI,1,0,"tr",17),i.YNc(31,NI,1,10,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(32,YI,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publications.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(28),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.publications.length&&t.allowAlert))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,T.O5,Ft,zc,Gi,T.sg,Rl,Ll,So,Eo,FE,F,Fs],pipes:[Ct,NC],styles:[".mat-column-title[_ngcontent-%COMP%]{width:40%}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function UI(n,a){1&n&&i._UZ(0,"mat-spinner",7)}const zI=function(){return["id","title","year"]};function qI(n,a){if(1&n&&(i.TgZ(0,"div",8),i._uU(1),i.ALo(2,"translate"),i._UZ(3,"perun-web-apps-publications-list",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,4,"DIALOGS.REMOVE_PUBLICATION.WARNING")," "),i.xp6(2),i.Q6J("publications",e.publications)("routerPath",null)("displayedColumns",i.DdM(6,zI))}}let eM=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetService=d,this.loading=!1}ngOnInit(){this.publications=this.data}cancel(){this.dialogRef.close()}remove(){this.loading=!0,this.cabinetService.deletePublication(this.publications.pop().id).subscribe(()=>{this.publications.length<=0?this.translate.get("DIALOGS.REMOVE_PUBLICATION.REMOVE_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.remove()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-publication-dialog"]],decls:13,vars:12,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"publications","routerPath","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,UI,1,0,"mat-spinner",2),i.YNc(5,qI,4,7,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.remove()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"DIALOGS.REMOVE_PUBLICATION.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,8,"DIALOGS.REMOVE_PUBLICATION.CANCEL")," "),i.xp6(2),i.Q6J("disabled",t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"DIALOGS.REMOVE_PUBLICATION.REMOVE")," "))},directives:[or,T.O5,mn,kn,wf,Cr,Ft],pipes:[Ct],styles:[""]}),n})(),Cf=(()=>{class n{constructor(){this.refresh=new i.vpe}onClickbutton(e){this.refresh.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-refresh-button"]],inputs:{disabled:"disabled"},outputs:{refresh:"refresh"},decls:3,vars:5,consts:[["mat-stroked-button","","data-cy","refresh-button",1,"mr-2",3,"disabled","matTooltip","click"],[1,"center-icon","perun-icon",3,"svgIcon"]],template:function(e,t){1&e&&(i.TgZ(0,"button",0),i.NdJ("click",function(l){return t.onClickbutton(l)}),i.ALo(1,"translate"),i._UZ(2,"mat-icon",1),i.qZA()),2&e&&(i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.REFRESH_BUTTON")),i.Q6J("disabled",t.disabled),i.xp6(2),i.s9C("svgIcon",t.disabled?"perun-refresh-disabled":"perun-refresh-enabled"))},directives:[Ft,zc,Gi],pipes:[Ct],styles:[".center-icon[_ngcontent-%COMP%]{display:inline-flex}.perun-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{fill:currentColor}.perun-icon[_ngcontent-%COMP%] polygon[_ngcontent-%COMP%]{fill:currentColor}"]}),n})();var Af=x(5439);const qu=Af||x.t(Af,2),YE=new i.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function WI(){return{useUtc:!1}}});function ZI(n,a){const e=Array(n);for(let t=0;t{class n extends Ai{constructor(e,t){super(),this._options=t,this.setLocale(e||qu.locale())}setLocale(e){super.setLocale(e);let t=qu.localeData(e);this._localeData={firstDayOfWeek:t.firstDayOfWeek(),longMonths:t.months(),shortMonths:t.monthsShort(),dates:ZI(31,r=>this.createDate(2017,0,r+1).format("D")),longDaysOfWeek:t.weekdays(),shortDaysOfWeek:t.weekdaysShort(),narrowDaysOfWeek:t.weekdaysMin()}}getYear(e){return this.clone(e).year()}getMonth(e){return this.clone(e).month()}getDate(e){return this.clone(e).date()}getDayOfWeek(e){return this.clone(e).day()}getMonthNames(e){return"long"==e?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(e){return"long"==e?this._localeData.longDaysOfWeek:"short"==e?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(e){return this.clone(e).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(e){return this.clone(e).daysInMonth()}clone(e){return e.clone().locale(this.locale)}createDate(e,t,r){const l=this._createMoment({year:e,month:t,date:r}).locale(this.locale);return l.isValid(),l}today(){return this._createMoment().locale(this.locale)}parse(e,t){return e&&"string"==typeof e?this._createMoment(e,t,this.locale):e?this._createMoment(e).locale(this.locale):null}format(e,t){return e=this.clone(e),this.isValid(e),e.format(t)}addCalendarYears(e,t){return this.clone(e).add({years:t})}addCalendarMonths(e,t){return this.clone(e).add({months:t})}addCalendarDays(e,t){return this.clone(e).add({days:t})}toIso8601(e){return this.clone(e).format()}deserialize(e){let t;if(e instanceof Date)t=this._createMoment(e).locale(this.locale);else if(this.isDateInstance(e))return this.clone(e);if("string"==typeof e){if(!e)return null;t=this._createMoment(e,qu.ISO_8601).locale(this.locale)}return t&&this.isValid(t)?this._createMoment(t).locale(this.locale):super.deserialize(e)}isDateInstance(e){return qu.isMoment(e)}isValid(e){return this.clone(e).isValid()}invalid(){return qu.invalid()}_createMoment(e,t,r){const{strict:l,useUtc:d}=this._options||{};return d?qu.utc(e,t,r,l):qu(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(vo,8),i.LFG(YE,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$I=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:H_,deps:[vo,YE]}]}),n})(),UE=(()=>{class n{ngOnInit(){this.endMaxYear=new Date,this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value}chosenYearHandler(e,t,r){e.setValue(t),this.startMaxYear=this.endYear.value,this.endMinYear=this.startYear.value,r.close()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-year-range"]],inputs:{startYear:"startYear",endYear:"endYear"},decls:16,vars:15,consts:[[1,"year-field","mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"matDatepicker","max","formControl"],["matSuffix","",3,"for"],["startView","multi-year","panelClass","example-month-picker",3,"yearSelected"],["sdp",""],["matInput","",3,"matDatepicker","min","max","formControl"],["edp",""]],template:function(e,t){if(1&e){const r=i.EpF();i.TgZ(0,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",1),i._UZ(5,"mat-datepicker-toggle",2),i.TgZ(6,"mat-datepicker",3,4),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(7);return t.chosenYearHandler(t.startYear,d,o)}),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field",0),i.NdJ("click",function(){return i.CHM(r),i.MAs(15).open()}),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._UZ(12,"input",5),i._UZ(13,"mat-datepicker-toggle",2),i.TgZ(14,"mat-datepicker",3,6),i.NdJ("yearSelected",function(d){i.CHM(r);const o=i.MAs(15);return t.chosenYearHandler(t.endYear,d,o)}),i.qZA(),i.qZA()}if(2&e){const r=i.MAs(7),l=i.MAs(15);i.xp6(2),i.Oqu(i.lcZ(3,11,"PUBLICATION_FILTER.START_YEAR")),i.xp6(2),i.Q6J("matDatepicker",r)("max",t.startMaxYear)("formControl",t.startYear),i.xp6(1),i.Q6J("for",r),i.xp6(5),i.Oqu(i.lcZ(11,13,"PUBLICATION_FILTER.END_YEAR")),i.xp6(2),i.Q6J("matDatepicker",l)("min",t.endMinYear)("max",t.endMaxYear)("formControl",t.endYear),i.xp6(1),i.Q6J("for",l)}},directives:[Wn,es,is,D_,Pn,cr,_a,Qx,gw,Jx],pipes:[Ct],styles:[".year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function JI(n,a){if(1&n&&(i.TgZ(0,"mat-option",12),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}const YC=Af,QI={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let tM=(()=>{class n{constructor(e){this.cabinetService=e,this.filteredPublication=new i.vpe,this.title=new Ei,this.code=new Ei,this.startYear=new Ei(YC()),this.endYear=new Ei(YC())}ngOnInit(){this.title.setValue(""),this.code.setValue(""),this.selectedCategory="no_value",this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.selectedMode="isbn/issn"})}filter(){const e=this.code.value,t={title:this.title.value,isbnissn:"isbn/issn"===this.selectedMode?e:null,doi:"doi"===this.selectedMode?e:null,category:"no_value"!==this.selectedCategory?this.selectedCategory.id:null,startYear:(0,T.p6)(this.startYear.value,"yyyy","en-GB"),endYear:(0,T.p6)(this.endYear.value,"yyyy","en-GB")};this.filteredPublication.emit(t)}clearFilter(){this.title.setValue(""),this.code.setValue(""),this.selectedMode="isbn/issn",this.selectedCategory="no_value",this.startYear=new Ei(YC()),this.endYear=new Ei(YC()),this.filteredPublication.emit({title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-filter"]],outputs:{filteredPublication:"filteredPublication"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:QI}])],decls:38,vars:34,consts:[[1,"mt-2"],[1,"filter-field","mr-2"],["matInput","",3,"formControl","placeholder"],[3,"value","valueChange"],["value","isbn/issn"],["value","doi"],[1,"year-field","mr-2"],["value","no_value"],[3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"mr-2",3,"click"],["mat-stroked-button","",3,"click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-form-field",1),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedMode=l}),i.TgZ(9,"mat-option",4),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"mat-option",5),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",6),i._UZ(16,"input",2),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"mat-form-field",1),i.TgZ(19,"mat-label"),i._uU(20),i.ALo(21,"translate"),i.qZA(),i.TgZ(22,"mat-select",3),i.NdJ("valueChange",function(l){return t.selectedCategory=l}),i.TgZ(23,"mat-option",7),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.YNc(26,JI,2,2,"mat-option",8),i.qZA(),i.qZA(),i._UZ(27,"perun-web-apps-year-range",9),i.TgZ(28,"button",10),i.NdJ("click",function(){return t.filter()}),i.TgZ(29,"mat-icon"),i._uU(30,"search"),i.qZA(),i._uU(31),i.ALo(32,"translate"),i.qZA(),i.TgZ(33,"button",11),i.NdJ("click",function(){return t.clearFilter()}),i.TgZ(34,"mat-icon"),i._uU(35,"search_off"),i.qZA(),i._uU(36),i.ALo(37,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.s9C("placeholder",i.lcZ(3,16,"PUBLICATION_FILTER.TITLE_PLACEHOLDER")),i.Q6J("formControl",t.title),i.xp6(4),i.Oqu(i.lcZ(7,18,"PUBLICATION_FILTER.SELECT_MODE")),i.xp6(2),i.Q6J("value",t.selectedMode),i.xp6(2),i.Oqu(i.lcZ(11,20,"PUBLICATION_FILTER.ISBN/ISSN")),i.xp6(3),i.Oqu(i.lcZ(14,22,"PUBLICATION_FILTER.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(17,24,"PUBLICATION_FILTER.CODE_PLACEHOLDER")),i.Q6J("formControl",t.code),i.xp6(4),i.Oqu(i.lcZ(21,26,"PUBLICATION_FILTER.SELECT_CATEGORY")),i.xp6(2),i.Q6J("value",t.selectedCategory),i.xp6(2),i.Oqu(i.lcZ(25,28,"PUBLICATION_FILTER.NO_CATEGORY_SELECTED")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("startYear",t.startYear)("endYear",t.endYear),i.xp6(4),i.hij(" ",i.lcZ(32,30,"PUBLICATION_FILTER.FILTER")," "),i.xp6(5),i.hij(" ",i.lcZ(37,32,"PUBLICATION_FILTER.CLEAR_FILTER")," "))},directives:[Wn,is,Pn,cr,_a,es,Uc,xc,T.sg,UE,Ft,Gi],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:250px!important;width:100%!important;min-width:initial!important}.disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.year-field[_ngcontent-%COMP%]{max-width:80px!important;width:100%!important;min-width:initial!important}"]}),n})();function KI(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",10),2&n){const e=i.oxw();i.Q6J("publications",e.publications)("selection",e.selected)("routerPath","/all-publications")("tableId",e.tableId)}}function XI(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let eO=(()=>{class n{constructor(e,t,r,l,d){this.route=e,this.cabinetService=t,this.dialog=r,this.matIconRegistry=l,this.domSanitizer=d,this.selected=new Ii(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null},this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.refreshTable()}removePublication(){const e=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,null).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Yu),i.Y36(Vn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-all-publications-page"]],decls:14,vars:9,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],["svgIcon","publications",1,"publications-icon"],[1,"ml-3","mt-1"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","routerPath","tableId",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publications","selection","routerPath","tableId"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._UZ(2,"mat-icon",2),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA(),i.TgZ(6,"div",4),i.TgZ(7,"perun-web-apps-refresh-button",5),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"button",6),i.NdJ("click",function(){return t.removePublication()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"perun-web-apps-publication-filter",7),i.NdJ("filteredPublication",function(l){return t.filterPublication(l)}),i.qZA(),i.qZA(),i.YNc(12,KI,1,4,"perun-web-apps-publications-list",8),i.YNc(13,XI,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,5,"ALL_PUBLICATIONS.TITLE")),i.xp6(4),i.Q6J("disabled",0===t.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(10,7,"ALL_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[Gi,Cf,Ft,tM,T.O5,wf,mn],pipes:[Ct],styles:[".publications-icon[_ngcontent-%COMP%]{height:32px;width:32px}"]}),n})();function tO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/my-publications")}}function iO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",6),i.TgZ(2,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(3,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(7,tO,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(5,3,"MY_PUBLICATIONS.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function nO(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let rO=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.dialog=r,this.authResolver=l,this.selected=new Ii(!0,[]),this.tableId="68",this.filter={title:null,isbnissn:null,doi:null,category:null,startYear:null,endYear:null}}ngOnInit(){this.initLoading=!0,this.authResolver.getPerunPrincipal().subscribe(e=>{this.authorId=e.userId,this.initLoading=!1,this.refreshTable()})}removePublication(){const e=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(this.filter.title,null,null,null,null,this.filter.category,+this.filter.startYear,+this.filter.endYear,this.authorId).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.filter=e,this.refreshTable()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(fn),i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-my-publications-page"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-4"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"local_library"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,iO,8,5,"div",4),i.YNc(8,nO,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"MY_PUBLICATIONS.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct],styles:[""]}),n})(),aO=(()=>{class n{constructor(e){this.router=e}importPublications(){this.router.navigate(["create-publication","import"])}createPublication(){this.router.navigate(["create-publication","create"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-publication-page"]],decls:32,vars:21,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[1,"card-container"],[1,"align-cards"],[1,"mat-elevation-z3"],[1,"d-flex","flex-column"],["mat-flat-button","","color","accent",1,"align-self-end","action-button",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"div",4),i.TgZ(9,"mat-card",5),i.TgZ(10,"mat-card-title"),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"mat-card-content",6),i.TgZ(14,"div"),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"button",7),i.NdJ("click",function(){return t.importPublications()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.TgZ(20,"div",4),i.TgZ(21,"mat-card",5),i.TgZ(22,"mat-card-title"),i._uU(23),i.ALo(24,"translate"),i.qZA(),i.TgZ(25,"mat-card-content",6),i.TgZ(26,"div"),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.TgZ(29,"button",7),i.NdJ("click",function(){return t.createPublication()}),i._uU(30),i.ALo(31,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,7,"CREATE_PUBLICATION.TITLE")," "),i.xp6(6),i.hij(" ",i.lcZ(12,9,"CREATE_PUBLICATION.IMPORT_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(16,11,"CREATE_PUBLICATION.IMPORT_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(19,13,"CREATE_PUBLICATION.IMPORT")," "),i.xp6(5),i.hij(" ",i.lcZ(24,15,"CREATE_PUBLICATION.CREATE_TITLE")," "),i.xp6(4),i.hij(" ",i.lcZ(28,17,"CREATE_PUBLICATION.CREATE_HINT")," "),i.xp6(3),i.hij(" ",i.lcZ(31,19,"CREATE_PUBLICATION.CREATE")," "))},directives:[Gi,sE,aE,rE,Ft],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.card-container[_ngcontent-%COMP%]{margin:0 -1rem}.align-cards[_ngcontent-%COMP%]{margin:1rem;display:inline-block;vertical-align:top;max-width:250px;max-height:200px}"]}),n})();const sO=["input"];let oO=(()=>{class n{constructor(){this.autoFocus=!1,this.control=new Ei,this.filter=new i.vpe}ngOnInit(){this.autoFocus&&this.input.nativeElement.focus(),ua(this.input.nativeElement,"keyup").pipe((0,dt.U)(e=>e.target.value),(0,ol.b)(500),ll()).subscribe(e=>{this.control.invalid||this.filter.emit(e)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-debounce-filter"]],viewQuery:function(e,t){if(1&e&&i.Gf(sO,7),2&e){let r;i.iGM(r=i.CRH())&&(t.input=r.first)}},inputs:{placeholder:"placeholder",autoFocus:"autoFocus",control:"control",error:"error"},outputs:{filter:"filter"},decls:6,vars:5,consts:[[1,"filter-field","mr-2"],["matInput","",3,"placeholder","formControl"],["input",""]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i._UZ(1,"input",1,2),i.ALo(3,"translate"),i.TgZ(4,"mat-error"),i._uU(5),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.s9C("placeholder",i.lcZ(3,3,t.placeholder)),i.Q6J("formControl",t.control),i.xp6(4),i.hij(" ",t.error," "))},directives:[Wn,is,Pn,cr,_a,Hs],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:auto!important}"]}),n})();function lO(n,a){1&n&&i._UZ(0,"th",20)}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",21),i.TgZ(1,"mat-checkbox",22),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function dO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"AUTHORS_LIST.ID")))}function uO(n,a){if(1&n&&(i.TgZ(0,"td",24),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function hO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NAME")," "))}function pO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"userFullName"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,e))}}function fO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.ORGANIZATION")," "))}function mO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"organization"))}}function gO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.EMAIL")," "))}function _O(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Oqu(t.parseAttribute(e,"preferredMail"))}}function bO(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NUMBER_OF_PUBLICATIONS")," "))}function yO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.authorships.length.toString())}}function wO(n,a){1&n&&i._UZ(0,"th",26)}function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",27),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onAddClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.ADD")," "))}function AO(n,a){1&n&&i._UZ(0,"th",26)}function vO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",24),i.TgZ(1,"button",28),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().onRemoveClick(l)}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.qZA()}2&n&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"AUTHORS_LIST.REMOVE")," "))}function TO(n,a){1&n&&i._UZ(0,"tr",29)}const zE=function(n){return["/authors",n]};function xO(n,a){if(1&n&&i._UZ(0,"tr",30),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.VKq(4,zE,e.id))("routerLink",t.disableRouting?null:i.VKq(6,zE,e.id))}}function MO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function SO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",31),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"AUTHORS_LIST.NO_AUTHORS"),"\n"))}let iM=(()=>{class n{constructor(){this.authors=[],this.displayedColumns=["select","id","name","organization","email","numberOfPublications","add","remove"],this.disableRouting=!1,this.pageSizeOptions=Uu,this.addAuthor=new i.vpe,this.removeAuthor=new i.vpe}set matSort(e){this.sort=e,this.setDataSource()}static getFilterDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return function SH(n){let a="";return null!==n.firstName&&(a+=n.firstName+" "),null!==n.middleName&&(a+=n.middleName+" "),null!==n.lastName&&(a+=n.lastName+" "),a.endsWith(" ")&&(a=a.substring(0,a.length-1)),a}(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getExportDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return vS(e);case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}static getSortDataForColumn(e,t){var r;switch(t){case"id":return e.id.toString();case"name":return e.lastName?e.lastName:null!==(r=e.firstName)&&void 0!==r?r:"";case"organization":return df(e,"organization");case"email":return df(e,"preferredMail");case"numberOfPublications":return e.authorships.length.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.authors),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}parseAttribute(e,t){let r="";return e.attributes&&e.attributes.forEach(l=>{l.friendlyName===t&&(r=l.value)}),r}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`}onAddClick(e){this.addAuthor.emit(e)}onRemoveClick(e){this.removeAuthor.emit(e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getFilterDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getSortDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{authors:"authors",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",disableRouting:"disableRouting",reloadTable:"reloadTable",selection:"selection",pageSizeOptions:"pageSizeOptions"},outputs:{addAuthor:"addAuthor",removeAuthor:"removeAuthor"},features:[i.TTD],decls:31,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","organization"],["matColumnDef","email"],["matColumnDef","numberOfPublications"],["matColumnDef","add"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","remove"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"perunWebAppsMiddleClickRouterLink","routerLink","cursor-pointer",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell",""],["color","accent","mat-flat-button","",1,"ml-2",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,lO,1,0,"th",4),i.YNc(5,cO,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,dO,3,3,"th",7),i.YNc(8,uO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,hO,3,3,"th",7),i.YNc(11,pO,3,3,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,fO,3,3,"th",7),i.YNc(14,mO,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,gO,3,3,"th",7),i.YNc(17,_O,2,1,"td",10),i.BQk(),i.ynx(18,13),i.YNc(19,bO,3,3,"th",7),i.YNc(20,yO,2,1,"td",10),i.BQk(),i.ynx(21,14),i.YNc(22,wO,1,0,"th",15),i.YNc(23,CO,4,3,"td",8),i.BQk(),i.ynx(24,16),i.YNc(25,AO,1,0,"th",15),i.YNc(26,vO,4,3,"td",8),i.BQk(),i.YNc(27,TO,1,0,"tr",17),i.YNc(28,xO,1,8,"tr",18),i.qZA(),i.qZA(),i.qZA(),i.YNc(29,MO,3,3,"perun-web-apps-alert",19),i.YNc(30,SO,3,3,"perun-web-apps-alert",19)),2&e&&(i.Q6J("hidden",0===t.authors.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(25),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.authors.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.authors.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Is,js,Zc,yf,Ft,Rl,Ll,So,Eo,FE,F,T.O5,Fs],pipes:[Ct,NC],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();function EO(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const DO=function(){return["id","name","organization","email","numberOfPublications"]};function HO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.authors)("displayedColumns",i.DdM(4,DO))("filterValue",e.filterValue)("tableId",e.tableId)}}let kO=(()=>{class n{constructor(e){this.cabinetService=e,this.filterValue="",this.tableId="67"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetService.findAllAuthors().subscribe(e=>{this.authors=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-authors-page"]],decls:11,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","displayedColumns","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"authors","displayedColumns","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"perun-web-apps-refresh-button",4),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(8,"perun-web-apps-debounce-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(9,EO,1,0,"mat-spinner",6),i.YNc(10,HO,1,5,"perun-web-apps-authors-list",7),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,4,"AUTHORS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","AUTHORS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,Cf,oO,T.O5,mn,iM],pipes:[Ct],styles:[""]}),n})();function PO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"mat-form-field"),i._UZ(9,"input",6),i.ALo(10,"translate"),i.TgZ(11,"mat-error"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.qZA(),i.TgZ(14,"p",7),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.qZA(),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"div",10),i.ALo(22,"translate"),i.TgZ(23,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,12,"DIALOGS.ADD_CATEGORY.NAME")),i.Q6J("formControl",e.nameCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,14,"DIALOGS.ADD_CATEGORY.FILL_NAME")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(10,16,"DIALOGS.ADD_CATEGORY.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(13,18,"DIALOGS.ADD_CATEGORY.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(16,20,"DIALOGS.ADD_CATEGORY.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(20,22,"DIALOGS.ADD_CATEGORY.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(22,24,"DIALOGS.ADD_CATEGORY.TOOLTIP")),i.Q6J("matTooltipDisabled",e.nameCtrl.valid&&e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.nameCtrl.invalid||e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,26,"DIALOGS.ADD_CATEGORY.CREATE")," ")}}let LO=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.notificator=t,this.cabinetManagerService=r,this.translate=l,l.get("DIALOGS.ADD_CATEGORY.SUCCESS").subscribe(d=>this.successMessage=d)}ngOnInit(){this.nameCtrl=new Ei(null,[Oi.required,Oi.pattern("^[\\w.-]+( [\\w.-]+)*$"),Oi.maxLength(128)]),this.rankCtrl=new Ei(null,[Oi.required,Oi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.cabinetManagerService.createCategoryCat({category:{id:0,beanName:"Category",name:this.nameCtrl.value,rank:this.rankCtrl.value}}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-category-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,PO,1,0,"mat-spinner",2),i.YNc(5,RO,26,28,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Wn,is,Pn,xo,cr,_a,Hs,Cr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function IO(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function OO(n,a){1&n&&i._UZ(0,"th",14)}function BO(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function VO(n,a){1&n&&i._UZ(0,"tr",16)}function jO(n,a){1&n&&i._UZ(0,"tr",17)}function FO(n,a){if(1&n&&(i.TgZ(0,"div",6),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",7),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"table",8),i.ynx(8,9),i.YNc(9,OO,1,0,"th",10),i.YNc(10,BO,2,1,"td",11),i.BQk(),i.YNc(11,VO,1,0,"tr",12),i.YNc(12,jO,1,0,"tr",13),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,"DIALOGS.REMOVE_CATEGORY.DESCRIPTION")," "),i.xp6(3),i.hij(" ",i.lcZ(6,7,"DIALOGS.REMOVE_CATEGORY.ASK")," "),i.xp6(2),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function NO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",18),i.TgZ(1,"button",19),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"DIALOGS.REMOVE_CATEGORY.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"DIALOGS.REMOVE_CATEGORY.DELETE")," ")}}let YO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.translate=l,this.cabinetManagerService=d,this.displayedColumns=["name"],this.categories=[]}ngOnInit(){this.dataSource=new Il(this.data),this.categories=this.data}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.categories.length?this.cabinetManagerService.deleteCategory(this.categories.pop().id).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):this.translate.get("DIALOGS.REMOVE_CATEGORY.SUCCESS").subscribe(e=>{this.loading=!1,this.notificator.showSuccess(e),this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-category-dialog"]],decls:7,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,IO,1,0,"mat-spinner",2),i.YNc(5,FO,13,9,"div",3),i.YNc(6,NO,7,7,"div",4),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"DIALOGS.REMOVE_CATEGORY.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Mo,Bs,Os,Vs,Is,js,Rl,Ll,So,Eo,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function UO(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function zO(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let k_=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Ei}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,UO,2,4,"input",1),i.YNc(2,zO,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[Wn,T.O5,is,Pn,_I,cr,_a],pipes:[Ct],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:initial!important}"]}),n})();function qO(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function GO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field"),i._UZ(3,"input",6),i.ALo(4,"translate"),i.TgZ(5,"mat-error"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.TgZ(8,"p",7),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.TgZ(11,"div",8),i.TgZ(12,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"div",10),i.ALo(16,"translate"),i.TgZ(17,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.s9C("placeholder",i.lcZ(4,9,"DIALOGS.UPDATE_RANK.RANK")),i.Q6J("formControl",e.rankCtrl),i.xp6(3),i.hij(" ",i.lcZ(7,11,"DIALOGS.UPDATE_RANK.FILL_RANK")," "),i.xp6(3),i.Oqu(i.lcZ(10,13,"DIALOGS.UPDATE_RANK.RANK_HINT")),i.xp6(4),i.hij(" ",i.lcZ(14,15,"DIALOGS.UPDATE_RANK.CANCEL")," "),i.xp6(2),i.s9C("matTooltip",i.lcZ(16,17,"DIALOGS.UPDATE_RANK.TOOLTIP")),i.Q6J("matTooltipDisabled",e.rankCtrl.valid),i.xp6(2),i.Q6J("disabled",e.rankCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(19,19,"DIALOGS.UPDATE_RANK.UPDATE")," ")}}let WO=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetManagerService=l,this.translate=d,this.categoryName="",d.get("DIALOGS.UPDATE_RANK.SUCCESS").subscribe(o=>this.successMessage=o)}ngOnInit(){this.categoryName=this.data.name,this.rankCtrl=new Ei(this.data.rank,[Oi.required,Oi.pattern("^[0-9]+(\\.[0-9])?$")])}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.rank=this.rankCtrl.value,this.cabinetManagerService.updateCategory({category:this.data}).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-update-rank-dialog"]],decls:6,vars:6,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"placeholder","formControl"],[1,"mt-2"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,qO,1,0,"mat-spinner",2),i.YNc(5,GO,20,21,"div",3),i.qZA()),2&e&&(i.xp6(2),i.AsE("",i.lcZ(3,4,"DIALOGS.UPDATE_RANK.TITLE"),"",t.categoryName,""),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,Wn,is,Pn,xo,cr,_a,Hs,Cr,Ft,zc],pipes:[Ct],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function ZO(n,a){1&n&&i._UZ(0,"th",15)}function $O(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.ID")," "))}function QO(n,a){if(1&n&&(i.TgZ(0,"td",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function KO(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.NAME")," "))}function XO(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function eB(n,a){1&n&&(i.TgZ(0,"th",18),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_LIST.RANK")," "))}function tB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",22),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().updateCategory(r)}),i.TgZ(1,"mat-icon"),i._uU(2,"edit"),i.qZA(),i.qZA()}}function iB(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.YNc(2,tB,3,0,"button",21),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.hij(" ",e.rank," "),i.xp6(1),i.Q6J("ngIf",t.editAuth)}}function nB(n,a){1&n&&i._UZ(0,"tr",23)}function rB(n,a){1&n&&i._UZ(0,"tr",24)}function aB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.NO_FILTER_RESULTS"),"\n"))}let sB=(()=>{class n{constructor(e,t,r,l){this.guiAuthResolver=e,this.tableCheckbox=t,this.dialog=r,this.authResolver=l,this.categories=[],this.selection=new Ii(!0,[]),this.displayedColumns=["select","id","name","rank"],this.pageSizeOptions=Uu,this.refreshTable=new i.vpe,this.editAuth=!1}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"rank":return e.rank.toString();default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.categories),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}ngAfterViewInit(){this.editAuth=this.authResolver.isCabinetAdmin(),this.dataSource.paginator=this.child.paginator}itemSelectionToggle(e){this.selection.toggle(e)}updateCategory(e){const t=Zn();t.width="400px",t.data=e,this.dialog.open(WO,t).afterClosed().subscribe(l=>{l&&this.refreshTable.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{categories:"categories",selection:"selection",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},outputs:{refreshTable:"refreshTable"},features:[i.TTD],decls:18,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","rank"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-icon-button","",3,"click",4,"ngIf"],["mat-icon-button","",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZO,1,0,"th",4),i.YNc(5,$O,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JO,3,3,"th",7),i.YNc(8,QO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KO,3,3,"th",7),i.YNc(11,XO,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,eB,3,3,"th",7),i.YNc(14,iB,3,2,"td",10),i.BQk(),i.YNc(15,nB,1,0,"tr",12),i.YNc(16,rB,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,aB,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.categories.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.categories.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Is,js,Zc,yf,T.O5,Ft,Gi,Rl,Ll,So,Eo,Fs],pipes:[Ct],styles:[""]}),n})();function oB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().addCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CATEGORIES_PAGE.CREATE")," "))}function lB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().removeCategory()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",!e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"CATEGORIES_PAGE.REMOVE")," ")}}function cB(n,a){1&n&&i._UZ(0,"mat-spinner",10)}const dB=function(){return["select","id","name","rank"]},uB=function(){return["name","rank"]};function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-categories-list",11),i.NdJ("refreshTable",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("categories",e.categories)("filterValue",e.filterValue)("displayedColumns",e.removeAuth?i.DdM(5,dB):i.DdM(6,uB))("tableId",e.tableId)("selection",e.selected)}}let pB=(()=>{class n{constructor(e,t,r){this.cabinetManagerService=e,this.dialog=t,this.guiAuthResolver=r,this.categories=[],this.selected=new Ii(!0,[]),this.filterValue="",this.tableId="5"}ngOnInit(){this.setAuth(),this.refreshTable()}setAuth(){this.removeAuth=this.guiAuthResolver.isAuthorized("deleteCategory_Category_policy",[]),this.addAuth=this.guiAuthResolver.isAuthorized("createCategory_Category_policy",[])}refreshTable(){this.loading=!0,this.cabinetManagerService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}applyFilter(e){this.filterValue=e}addCategory(){const e=Zn();e.width="400px",e.data={},this.dialog.open(LO,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}removeCategory(){const e=Zn();e.width="400px",e.data=this.selected.selected,this.dialog.open(YO,e).afterClosed().subscribe(r=>{r&&(this.selected.clear(),this.refreshTable())})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(fn),i.Y36(na))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-categories-page"]],decls:10,vars:8,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"categories","filterValue","displayedColumns","tableId","selection","refreshTable"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.YNc(5,oB,3,3,"button",3),i.YNc(6,lB,3,4,"button",4),i.TgZ(7,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(8,cB,1,0,"mat-spinner",6),i.YNc(9,hB,1,7,"perun-web-apps-categories-list",7),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,6,"CATEGORIES_PAGE.TITLE")),i.xp6(3),i.Q6J("ngIf",t.addAuth),i.xp6(1),i.Q6J("ngIf",t.removeAuth),i.xp6(1),i.Q6J("placeholder","CATEGORIES_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.categories&&!t.loading))},directives:[Cf,T.O5,Ft,k_,mn,sB],pipes:[Ct],styles:[""]}),n})();function fB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.ID")," "))}function mB(n,a){if(1&n&&(i.TgZ(0,"td",15),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function gB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.FRIENDLY_NAME")," "))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyName)}}function bB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.LOGIN_NAMESPACE")," "))}function yB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ","empty"===e.loginNamespace?"":e.loginNamespace," ")}}function wB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.URL")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.url?"":e.url)}}function AB(n,a){1&n&&(i.TgZ(0,"th",14),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_SYSTEMS_LIST.TYPE")," "))}function vB(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu("empty"===e.type?"":e.type)}}function TB(n,a){1&n&&i._UZ(0,"tr",17)}function xB(n,a){1&n&&i._UZ(0,"tr",18)}function MB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}let SB=(()=>{class n{constructor(){this.publicationSystems=[],this.displayedColumns=["id","friendlyName","loginNamespace","url","type"],this.pageSizeOptions=Uu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"friendlyName":return e.friendlyName;case"url":return e.url;case"loginNamespace":return e.loginNamespace;case"type":return e.type;default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.publicationSystems),this.setDataSource(),this.dataSource.filter=this.filterValue}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{publicationSystems:"publicationSystems",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","friendlyName"],["mat-cell","",4,"matCellDef"],["matColumnDef","loginNamespace"],["matColumnDef","url"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,fB,3,3,"th",4),i.YNc(5,mB,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,gB,3,3,"th",4),i.YNc(8,_B,2,1,"td",7),i.BQk(),i.ynx(9,8),i.YNc(10,bB,3,3,"th",4),i.YNc(11,yB,2,1,"td",7),i.BQk(),i.ynx(12,9),i.YNc(13,wB,3,3,"th",4),i.YNc(14,CB,2,1,"td",7),i.BQk(),i.ynx(15,10),i.YNc(16,AB,3,3,"th",4),i.YNc(17,vB,2,1,"td",7),i.BQk(),i.YNc(18,TB,1,0,"tr",11),i.YNc(19,xB,1,0,"tr",12),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,MB,3,3,"perun-web-apps-alert",13)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.publicationSystems.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.publicationSystems.length))},directives:[ts,Mo,wa,Bs,Os,Vs,yf,Is,js,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function EB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function DB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publication-systems-list",7),2&n){const e=i.oxw();i.Q6J("publicationSystems",e.publicationSystems)("filterValue",e.filterValue)("tableId",e.tableId)}}let HB=(()=>{class n{constructor(e){this.cabinetManagerService=e,this.publicationSystems=[],this.filterValue="",this.tableId="5"}ngOnInit(){this.refreshTable()}refreshTable(){this.loading=!0,this.cabinetManagerService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e,this.loading=!1})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-systems-page"]],decls:8,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle"],[3,"refresh"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"publicationSystems","filterValue","tableId",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"publicationSystems","filterValue","tableId"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"perun-web-apps-refresh-button",2),i.NdJ("refresh",function(){return t.refreshTable()}),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(6,EB,1,0,"mat-spinner",4),i.YNc(7,DB,1,3,"perun-web-apps-publication-systems-list",5),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,4,"PUBLICATION_SYSTEMS_PAGE.TITLE")),i.xp6(3),i.Q6J("placeholder","PUBLICATION_SYSTEMS_PAGE.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.publicationSystems&&!t.loading))},directives:[Cf,k_,T.O5,mn,SB],pipes:[Ct],styles:[""]}),n})();function kB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",11),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("selection",e.selected)("tableId",e.tableId)("routerPath","/authors/"+e.author.id+"/publication")}}function PB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h5"),i._uU(2),i.ALo(3,"userFullName"),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"div",6),i.TgZ(6,"perun-web-apps-refresh-button",7),i.NdJ("refresh",function(){return i.CHM(e),i.oxw().refreshTable()}),i.qZA(),i.TgZ(7,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().removePublication()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"perun-web-apps-publication-filter",9),i.NdJ("filteredPublication",function(r){return i.CHM(e),i.oxw().filterPublication(r)}),i.qZA(),i.qZA(),i.YNc(11,kB,1,4,"perun-web-apps-publications-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.AsE("",i.lcZ(3,5,e.author),"",i.lcZ(4,7,"AUTHOR_DETAIL.TITLE"),""),i.xp6(5),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,9,"AUTHOR_DETAIL.REMOVE")," "),i.xp6(3),i.Q6J("ngIf",!e.loading)}}function RB(n,a){1&n&&i._UZ(0,"mat-spinner",12)}let LB=(()=>{class n{constructor(e,t,r,l){this.route=e,this.cabinetService=t,this.userService=r,this.dialog=l,this.selected=new Ii(!0,[]),this.tableId="68"}ngOnInit(){this.initLoading=!0,this.route.params.subscribe(e=>{const t=Number(e.authorId);this.userService.getUserById(t).subscribe(r=>{this.author=r,this.initLoading=!1,this.refreshTable()})})}removePublication(){const e=Zn();e.width="500px",e.data=this.selected.selected,this.dialog.open(eM,e).afterClosed().subscribe(r=>{r&&this.refreshTable()})}refreshTable(){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(null,null,null,null,null,null,null,null,this.author.id).subscribe(e=>{this.publications=e,this.loading=!1})}filterPublication(e){this.loading=!0,this.selected.clear(),this.cabinetService.findPublicationsByGUIFilter(e.title,null,null,null,null,e.category,+e.startYear,+e.endYear,this.author.id).subscribe(t=>{this.publications=t,this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Mr),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-author-detail"]],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"title-icon"],[1,"ml-3","mt-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mt-3"],[3,"refresh"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[3,"filteredPublication"],[3,"publications","selection","tableId","routerPath",4,"ngIf"],[3,"publications","selection","tableId","routerPath"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"mat-icon",2),i._uU(3,"assignment_ind"),i.qZA(),i.TgZ(4,"span",3),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,PB,12,11,"div",4),i.YNc(8,RB,1,0,"mat-spinner",5),i.qZA()),2&e&&(i.xp6(5),i.Oqu(i.lcZ(6,3,"AUTHORS_PAGE.TITLE")),i.xp6(2),i.Q6J("ngIf",!t.initLoading),i.xp6(1),i.Q6J("ngIf",t.loading||t.initLoading))},directives:[Gi,T.O5,Cf,Ft,tM,wf,mn],pipes:[Ct,NC],styles:[""]}),n})();function IB(n,a){1&n&&i._UZ(0,"mat-spinner",2)}function OB(n,a){if(1&n&&(i.TgZ(0,"h3",15),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.publication.title)}}function BB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.editing=!r.editing}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"edit"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"PUBLICATION_DETAIL.LIST.EDIT"))}function VB(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.EMPTY_ERROR")," "))}function jB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field",18),i._UZ(1,"textarea",19),i.YNc(2,VB,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("formControl",e.titleControl),i.xp6(1),i.Q6J("ngIf",e.titleControl.invalid)}}function FB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",20),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).save()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",17),i._uU(3,"save"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,2,"PUBLICATION_DETAIL.LIST.SAVE")),i.Q6J("disabled",e.titleControl.invalid)}}function NB(n,a){1&n&&i._UZ(0,"th",21)}function YB(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij("",e.key,":")}}function UB(n,a){1&n&&i._UZ(0,"th",21)}function zB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.TgZ(2,"span",24),i._uU(3),i.ALo(4,"translate"),i.qZA(),i._uU(5),i.TgZ(6,"span",24),i._uU(7),i.ALo(8,"translate"),i.qZA(),i._uU(9),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(2);i.xp6(1),i.hij(" ",e.value," / "),i.xp6(2),i.hij("",i.lcZ(4,5,"PUBLICATION_DETAIL.LIST.EXT_ID"),":"),i.xp6(2),i.hij(" ",t.publication.externalId," "),i.xp6(2),i.hij("",i.lcZ(8,7,"PUBLICATION_DETAIL.LIST.SYSTEM"),":"),i.xp6(2),i.hij(" ",t.publication.pubSystemName," ")}}function qB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.value,"dd/MM/yyyy")," ")}}function GB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function WB(n,a){if(1&n&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&n){const e=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",e.value," ")}}function ZB(n,a){if(1&n&&(i.TgZ(0,"span"),i.YNc(1,WB,2,1,"span",1),i.qZA()),2&n){const e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf","Id / Origin"!==e.key&&"Create date"!==e.key&&"Created by"!==e.key)}}function $B(n,a){1&n&&(i.TgZ(0,"span"),i._uU(1," - "),i.qZA())}function JB(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,ZB,2,1,"span",1),i.YNc(2,$B,2,0,"span",1),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",null!==e.value&&""!==e.value),i.xp6(1),i.Q6J("ngIf",null===e.value||""===e.value)}}function QB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",26),i.NdJ("click",function(){return i.CHM(e),i.MAs(7).open()}),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",27),i._UZ(5,"mat-datepicker-toggle",28),i.TgZ(6,"mat-datepicker",29,30),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(7);return i.oxw(4).chosenYearHandler(r,l)}),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(7),t=i.oxw(4);i.xp6(2),i.Oqu(i.lcZ(3,5,"PUBLICATION_DETAIL.LIST.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e)("formControl",t.yearControl),i.xp6(1),i.Q6J("for",e)}}function KB(n,a){if(1&n&&(i.TgZ(0,"mat-option",33),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e.name),i.xp6(1),i.hij(" ",e.name," ")}}function XB(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i.TgZ(1,"mat-select",31),i.YNc(2,KB,2,2,"mat-option",32),i.qZA(),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.categoryControl),i.xp6(1),i.Q6J("ngForOf",e.categories)}}function eV(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LIST.RANK_ERROR")," "))}function tV(n,a){if(1&n&&(i.TgZ(0,"mat-form-field"),i._UZ(1,"input",34),i.YNc(2,eV,3,3,"mat-error",1),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("formControl",e.rankControl),i.xp6(1),i.Q6J("ngIf",e.rankControl.invalid)}}function iV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.isbn=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.isbn)}}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"input",35),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.doi=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.doi)}}function rV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",18),i.TgZ(1,"textarea",36),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(4).publication.main=r}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("ngModel",e.publication.main)}}function aV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,QB,8,7,"mat-form-field",25),i.YNc(2,XB,3,2,"mat-form-field",1),i.YNc(3,tV,3,2,"mat-form-field",1),i.YNc(4,iV,2,1,"mat-form-field",6),i.YNc(5,nV,2,1,"mat-form-field",6),i.YNc(6,rV,2,1,"mat-form-field",6),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf","Year"===e.key),i.xp6(1),i.Q6J("ngIf","Category"===e.key),i.xp6(1),i.Q6J("ngIf","Rank"===e.key),i.xp6(1),i.Q6J("ngIf","ISBN / ISSN"===e.key),i.xp6(1),i.Q6J("ngIf","DOI"===e.key),i.xp6(1),i.Q6J("ngIf","Full cite"===e.key)}}function sV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.YNc(1,zB,10,9,"span",1),i.YNc(2,qB,3,4,"span",1),i.YNc(3,GB,2,1,"span",1),i.YNc(4,JB,3,2,"div",1),i.YNc(5,aV,7,6,"div",1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(1),i.Q6J("ngIf","Id / Origin"===e.key),i.xp6(1),i.Q6J("ngIf","Create date"===e.key),i.xp6(1),i.Q6J("ngIf","Created by"===e.key),i.xp6(1),i.Q6J("ngIf",!t.editing),i.xp6(1),i.Q6J("ngIf",t.editing)}}function oV(n,a){1&n&&i._UZ(0,"tr",37)}function lV(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"div",3),i.YNc(2,OB,2,1,"h3",4),i.YNc(3,BB,4,3,"button",5),i.YNc(4,jB,3,2,"mat-form-field",6),i.YNc(5,FB,4,4,"button",7),i.qZA(),i.TgZ(6,"table",8),i.ynx(7,9),i.YNc(8,NB,1,0,"th",10),i.YNc(9,YB,2,1,"td",11),i.BQk(),i.ynx(10,12),i.YNc(11,UB,1,0,"th",10),i.YNc(12,sV,6,5,"td",13),i.BQk(),i.YNc(13,oV,1,0,"tr",14),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Q6J("ngIf",!e.editing),i.xp6(1),i.Q6J("ngIf",!e.editing&&!e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("ngIf",e.editing),i.xp6(1),i.Q6J("dataSource",e.dataSource),i.xp6(7),i.Q6J("matRowDefColumns",e.displayedColumns)}}const qE=Af,cV={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let dV=(()=>{class n{constructor(e,t,r){this.cabinetService=e,this.notificator=t,this.translate=r,this.categories=[],this.edited=new i.vpe,this.loading=!1,this.dataSource=null,this.displayedColumns=["key","value"],this.isChanging=new Ii(!0,[]),this.map=[],this.editing=!1}ngOnInit(){this.loading=!0,this.keys=["Id / Origin","Year","Category","Rank","ISBN / ISSN","DOI","Full cite","Created by","Create date"],this.values=[this.publication.id.toString(),this.publication.year.toString(),this.publication.categoryName,this.publication.rank.toString(),this.publication.isbn,this.publication.doi,this.publication.main,this.publication.createdBy,this.publication.createdDate];for(let e=0;el.name===this.categoryControl.value).id,t=this.yearControl.value.year();this.cabinetService.updatePublication({publication:{id:this.publication.id,beanName:this.publication.beanName,externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.titleControl.value,year:t,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:e,rank:this.rankControl.value,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(l=>{this.notificator.showSuccess(l),this.edited.emit(!0),this.loading=!1})},()=>this.loading=!1)}chosenYearHandler(e,t){const r=this.yearControl.value;r.year(e.year()),this.yearControl.setValue(r),t.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail-list"]],inputs:{publication:"publication",categories:"categories"},outputs:{edited:"edited"},features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:cV}])],decls:3,vars:2,consts:[["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"d-flex"],["class","bigger-font w-75 mr-2",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["class","w-75",4,"ngIf"],["class","ml-auto","mat-icon-button","","matTooltipPosition","above",3,"disabled","matTooltip","click",4,"ngIf"],["mat-table","",1,"w-100","layout",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","",4,"matHeaderCellDef"],["class","font-weight-bold","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-cell","",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"bigger-font","w-75","mr-2"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"matTooltip","click"],[1,"big-icon"],[1,"w-75"],["matInput","",1,"bigger-font","fix-height",3,"formControl"],["mat-icon-button","","matTooltipPosition","above",1,"ml-auto",3,"disabled","matTooltip","click"],["mat-header-cell",""],["mat-cell","",1,"font-weight-bold"],["mat-cell",""],[1,"bold"],["class","mr-2",3,"click",4,"ngIf"],[1,"mr-2",3,"click"],["matInput","","readonly","",1,"disable",3,"max","matDatepicker","formControl"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["matInput","",3,"formControl"],["matInput","",3,"ngModel","ngModelChange"],["matInput","",1,"fix-height",3,"ngModel","ngModelChange"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,IB,1,0,"mat-spinner",0),i.YNc(2,lV,14,6,"div",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,mn,Ft,zc,Gi,Wn,is,Pn,cr,_a,Hs,Mo,Bs,Os,Vs,Is,js,es,D_,Qx,gw,Jx,Uc,T.sg,xc,Ml,So,Eo],pipes:[Ct,T.uU],styles:[".disable[_ngcontent-%COMP%]{cursor:not-allowed;pointer-events:none}.bigger-font[_ngcontent-%COMP%]{font-size:1.5rem}.bold[_ngcontent-%COMP%]{font-weight:700}.big-icon[_ngcontent-%COMP%]{font-size:40px}.fix-height[_ngcontent-%COMP%]{min-height:6ch}.layout[_ngcontent-%COMP%]{table-layout:fixed}"]}),n})();const uV=function(){return["id","name","organization","email","add"]};function hV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",15),i.NdJ("addAuthor",function(r){return i.CHM(e),i.oxw(3).addAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("authors",e.authors)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(4,uV))}}function pV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.SEARCH_INFO")," "))}function fV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,hV,1,5,"perun-web-apps-authors-list",13),i.YNc(2,pV,3,3,"perun-web-apps-alert",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.firstSearchDone)}}function mV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}const gV=function(){return["id","name","organization","email","remove"]};function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-authors-list",19),i.NdJ("removeAuthor",function(r){return i.CHM(e),i.oxw(3).removeAuthor(r)}),i.qZA()}if(2&n){const e=i.oxw(3);i.Q6J("reloadTable",e.reloadTable)("authors",e.authorsToAdd)("disableRouting",!0)("tableId",e.tableIdAuthors)("displayedColumns",i.DdM(5,gV))}}function bV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,_V,1,6,"perun-web-apps-authors-list",18),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",e.firstSearchDone)}}function yV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"DIALOGS.ADD_AUTHORS.NO_AUTHORS_TO_ADD")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,fV,3,2,"div",6),i.YNc(2,mV,1,0,"mat-spinner",7),i.TgZ(3,"h2",11),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,bV,2,1,"div",6),i.YNc(7,yV,3,3,"perun-web-apps-alert",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.searchLoading),i.xp6(1),i.Q6J("ngIf",e.searchLoading),i.xp6(2),i.hij(" ",i.lcZ(5,5,"DIALOGS.ADD_AUTHORS.AUTHORS_TO_ADD")," "),i.xp6(2),i.Q6J("ngIf",e.firstSearchDone&&0!==e.authorsToAdd.length),i.xp6(1),i.Q6J("ngIf",0===e.authorsToAdd.length)}}function CV(n,a){1&n&&i._UZ(0,"mat-spinner",17)}let AV=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.notificator=r,this.cabinetService=l,this.translate=d,this.loading=!1,this.searchLoading=!1,this.firstSearchDone=!1,this.authors=[],this.alreadyAddedAuthors=[],this.authorsToAdd=[],this.tableIdAuthors="67",this.selection=new Ii(!1,[]),this.reloadTable=!1,d.get("DIALOGS.ADD_AUTHORS.SUCCESS_MESSAGE").subscribe(o=>this.successMessage=o),this.publicationId=t.publicationId,this.alreadyAddedAuthors=t.alreadyAddedAuthors}ngOnInit(){this.searchControl=new Ei("",[Oi.required,Oi.pattern(".*[\\S]+.*")])}onSearchByString(){this.searchLoading=!0;const e=[...this.alreadyAddedAuthors,...this.authorsToAdd];this.cabinetService.findNewAuthors(this.searchControl.value).subscribe(t=>{t=t.filter(r=>!e.map(l=>l.id).includes(r.id)),this.authors=t,this.firstSearchDone=!0,this.searchLoading=!1},()=>{this.searchLoading=!1})}onAdd(){if(this.loading=!0,this.authorsToAdd.length){const e=this.authorsToAdd.pop();this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publicationId,userId:e.id}}).subscribe(()=>{this.onAdd()},()=>this.loading=!1)}else this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}addAuthor(e){this.authors=this.authors.filter(t=>t!==e),this.authorsToAdd.push(e),this.reloadTable=!this.reloadTable}removeAuthor(e){this.authorsToAdd=this.authorsToAdd.filter(t=>t!==e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36(Ln),i.Y36(li),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors-dialog"]],decls:24,vars:20,consts:[[1,"user-theme"],["mat-dialog-title",""],["mat-dialog-content",""],[1,"mr-2","adjust-width"],["matInput","","autocomplete","false",3,"placeholder","formControl","keyup.enter"],["mat-flat-button","","color","accent",1,"mr-2",3,"disabled","click"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["mat-dialog-title","",1,"top-margin"],["alert_type","warn",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor",4,"ngIf"],["alert_type","info",4,"ngIf"],[3,"authors","disableRouting","tableId","displayedColumns","addAuthor"],["alert_type","info"],[1,"ml-auto","mr-auto"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor",4,"ngIf"],[3,"reloadTable","authors","disableRouting","tableId","displayedColumns","removeAuthor"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"mat-form-field",3),i.TgZ(6,"label"),i.TgZ(7,"input",4),i.NdJ("keyup.enter",function(){return t.onSearchByString()}),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-error"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return t.onSearchByString()}),i.TgZ(13,"mat-icon"),i._uU(14,"search"),i.qZA(),i.qZA(),i.YNc(15,wV,8,7,"div",6),i.qZA(),i.YNc(16,CV,1,0,"mat-spinner",7),i.TgZ(17,"div",8),i.TgZ(18,"button",9),i.NdJ("click",function(){return t.onCancel()}),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.TgZ(21,"button",10),i.NdJ("click",function(){return t.onAdd()}),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,10,"DIALOGS.ADD_AUTHORS.TITLE")),i.xp6(5),i.s9C("placeholder",i.lcZ(8,12,"DIALOGS.ADD_AUTHORS.SEARCH_PLACEHOLDER")),i.Q6J("formControl",t.searchControl),i.xp6(3),i.hij(" ",i.lcZ(11,14,"DIALOGS.ADD_AUTHORS.EMPTY_SEARCH_MESSAGE")," "),i.xp6(2),i.Q6J("disabled",t.searchLoading||""===t.searchControl.value.trim()),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(3),i.hij(" ",i.lcZ(20,16,"DIALOGS.ADD_AUTHORS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===t.authorsToAdd.length||t.loading),i.xp6(1),i.hij(" ",i.lcZ(23,18,"DIALOGS.ADD_AUTHORS.ADD")," "))},directives:[or,kn,Wn,is,Pn,cr,_a,Hs,Ft,Gi,T.O5,iM,Fs,mn,Cr],pipes:[Ct],styles:[".top-margin[_ngcontent-%COMP%]{margin-top:15px}.adjust-width[_ngcontent-%COMP%]{width:300px}"]}),n})();function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function TV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveAuthors()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length||e.publication.locked),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function xV(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const MV=function(){return["id","name","organization","email"]},SV=function(){return["select","id","name","organization","email"]};function EV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-authors-list",9),2&n){const e=i.oxw();i.Q6J("authors",e.publication.authors)("selection",e.selection)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,MV):i.DdM(6,SV))}}let GE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),this.filterValue="",this.loading=!1,this.tableId="67"}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findAuthorsByPublicationId(this.publication.id).subscribe(e=>{this.publication.authors=e,this.selection.clear(),this.loading=!1})}onAddAuthors(){const e=Zn();e.width="800px",e.data={publicationId:this.publication.id,alreadyAddedAuthors:this.publication.authors},this.dialog.open(AV,e).afterClosed().subscribe(r=>{r&&(this.selection.clear(),this.refresh())})}onRemoveAuthors(){const e=Zn();e.width="800px",e.data={items:this.selection.selected.map(r=>`${r.titleBefore?r.titleBefore:""} ${r.firstName?r.firstName:""} ${r.lastName?r.lastName:""} ${r.titleAfter?r.titleAfter:""}`),title:"DIALOGS.REMOVE_AUTHORS.TITLE",description:"DIALOGS.REMOVE_AUTHORS.DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(FS,e).afterClosed().subscribe(r=>{r&&this.removeAuthors(this.selection.selected)})}removeAuthors(e){if(this.loading=!0,e.length){const t=e.pop();this.cabinetService.deleteAuthorship(this.publication.id,t.id).subscribe(()=>{this.removeAuthors(e)},()=>this.loading=!1)}else this.notificator.showSuccess(this.translate.instant("DIALOGS.REMOVE_AUTHORS.SUCCESS_MESSAGE")),this.selection.clear(),this.refresh()}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-authors"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"authors","selection","filterValue","tableId","displayedColumns",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"authors","selection","filterValue","tableId","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,vV,3,3,"button",1),i.YNc(2,TV,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,xV,1,0,"mat-spinner",4),i.YNc(5,EV,1,7,"perun-web-apps-authors-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,iM],pipes:[Ct],styles:[""]}),n})();function DV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",16),i.TgZ(1,"mat-checkbox",17),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function HV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function kV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.ID")," "))}function PV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.id," ")}}function RV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NAME")," "))}function LV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function IV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.CONTACT")," "))}function OV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.contact)}}function BV(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.TYPE")," "))}function VV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.type)}}function jV(n,a){1&n&&i._UZ(0,"tr",23)}function FV(n,a){1&n&&i._UZ(0,"tr",24)}function NV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_OWNERS"),"\n"))}function YV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.OWNERS_LIST.NO_FILTER_OWNERS"),"\n"))}let UV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.owners=[],this.selection=new Ii(!0,[]),this.filterValue="",this.displayedColumns=["select","id","name","contact","type"],this.pageSizeOptions=Uu}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"name":return e.name;case"contact":return e.contact;case"type":return e.type;default:return""}}ngAfterViewInit(){this.setDataSource()}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Il(this.owners),this.setDataSource()}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(na),i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-owners-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{owners:"owners",selection:"selection",tableId:"tableId",filterValue:"filterValue",displayedColumns:"displayedColumns"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","contact"],["matColumnDef","type"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,DV,2,3,"th",4),i.YNc(5,HV,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,kV,3,3,"th",7),i.YNc(8,PV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,RV,3,3,"th",7),i.YNc(11,LV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,IV,3,3,"th",7),i.YNc(14,OV,2,1,"td",10),i.BQk(),i.ynx(15,12),i.YNc(16,BV,3,3,"th",7),i.YNc(17,VV,2,1,"td",10),i.BQk(),i.YNc(18,jV,1,0,"tr",13),i.YNc(19,FV,1,0,"tr",14),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,NV,3,3,"perun-web-apps-alert",15),i.YNc(21,YV,3,3,"perun-web-apps-alert",15)),2&e&&(i.Q6J("hidden",0===t.owners.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.owners.length),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length&&t.owners.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function zV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}const qV=function(){return["select","id","name","contact"]};function GV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"perun-web-apps-immediate-filter",6),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().filterValue=r}),i.qZA(),i._UZ(3,"perun-web-apps-owners-list",7),i.qZA(),i.TgZ(4,"div",8),i.TgZ(5,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Q6J("placeholder","DIALOGS.ADD_THANKS.FILTER"),i.xp6(1),i.Q6J("owners",e.owners)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",i.DdM(13,qV))("selection",e.selected),i.xp6(3),i.hij(" ",i.lcZ(7,9,"DIALOGS.ADD_THANKS.CANCEL")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length||e.loading),i.xp6(1),i.hij(" ",i.lcZ(10,11,"DIALOGS.ADD_THANKS.ADD")," ")}}let WV=(()=>{class n{constructor(e,t,r,l,d,o,s){this.dialogRef=e,this.data=t,this.ownersManagerService=r,this.storeService=l,this.notificator=d,this.translate=o,this.cabinetManagerService=s,this.selected=new Ii(!0,[]),this.tableId="73"}ngOnInit(){this.loading=!0;const e=this.storeService.get("allowed_owners_for_thanks");this.ownersManagerService.getAllOwners().subscribe(t=>{this.owners=0!==e.length?t.filter(r=>e.includes(r.id)):t,this.owners=this.owners.filter(r=>!this.data.thanks.map(l=>l.ownerId).includes(r.id)),this.loading=!1})}onCancel(){this.dialogRef.close()}onSubmit(){this.loading=!0,0===this.selected.selected.length?this.translate.get("DIALOGS.ADD_THANKS.SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.dialogRef.close(!0)}):this.cabinetManagerService.createThanks({thanks:{publicationId:this.data.id,ownerId:this.selected.selected.pop().id,createdBy:this.storeService.getPerunPrincipal().actor,createdByUid:this.storeService.getPerunPrincipal().userId,createdDate:Date.now().toString(),id:0,beanName:"Thanks"}}).subscribe(()=>{this.onSubmit()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hn),i.Y36(qr),i.Y36($t),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks-dialog"]],decls:6,vars:5,consts:[[1,"user-theme"],["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[3,"placeholder","filter"],[3,"owners","filterValue","tableId","displayedColumns","selection"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,zV,1,0,"mat-spinner",2),i.YNc(5,GV,11,14,"div",3),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,3,"DIALOGS.ADD_THANKS.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[or,T.O5,mn,kn,k_,UV,Cr,Ft],pipes:[Ct],styles:[""]}),n})();function ZV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function $V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,o=i.oxw();return r?o.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function JV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"THANKS_LIST.ID")))}function QV(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerId)}}function KV(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NAME")," "))}function XV(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.ownerName)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.CREATED_BY")," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.createdBy)}}function ij(n,a){1&n&&i._UZ(0,"tr",22)}function nj(n,a){1&n&&i._UZ(0,"tr",23)}function rj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function aj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",24),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"THANKS_LIST.NO_THANKS"),"\n"))}let sj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.thanks=[],this.filterValue="",this.displayedColumns=["select","id","name","createdBy"],this.pageSizeOptions=Uu,this.selection=new Ii(!0,[])}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.ownerId.toString();case"name":return e.ownerName;default:return e[t]}}ngOnChanges(){this.dataSource=new Il(this.thanks),this.setDataSource(),this.dataSource.filter=this.filterValue}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}exportData(e){hf(uf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>T_(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>cf(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-thanks-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ts,7),i.Gf(wa,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{thanks:"thanks",filterValue:"filterValue",tableId:"tableId",displayedColumns:"displayedColumns",pageSizeOptions:"pageSizeOptions",selection:"selection"},features:[i.TTD],decls:19,vars:9,consts:[[1,"card","mt-2",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,ZV,2,3,"th",4),i.YNc(5,$V,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,JV,3,3,"th",7),i.YNc(8,QV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,KV,3,3,"th",7),i.YNc(11,XV,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,ej,3,3,"th",7),i.YNc(14,tj,2,1,"td",10),i.BQk(),i.YNc(15,ij,1,0,"tr",12),i.YNc(16,nj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,rj,3,3,"perun-web-apps-alert",14),i.YNc(18,aj,3,3,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.thanks.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0!==t.thanks.length&&0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("ngIf",0===t.thanks.length))},directives:[ts,Mo,wa,Bs,Os,Vs,Zc,Is,js,yf,Rl,Ll,So,Eo,T.O5,Fs],pipes:[Ct],styles:[""]}),n})();function oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.ADD")," "))}function lj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onRemoveThanks()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("disabled",0===e.selection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(2,2,"PUBLICATION_DETAIL.REMOVE")," ")}}function cj(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const dj=function(){return["id","name","createdBy"]},uj=function(){return["select","id","name","createdBy"]};function hj(n,a){if(1&n&&i._UZ(0,"perun-web-apps-thanks-list",9),2&n){const e=i.oxw();i.Q6J("thanks",e.publication.thanks)("filterValue",e.filterValue)("tableId",e.tableId)("displayedColumns",e.publication.locked?i.DdM(5,dj):i.DdM(6,uj))("selection",e.selection)}}let WE=(()=>{class n{constructor(e,t,r,l){this.dialog=e,this.cabinetService=t,this.notificator=r,this.translate=l,this.selection=new Ii(!0,[]),this.tableId="70",this.loading=!1,this.filterValue=""}ngOnInit(){this.refresh()}refresh(){this.loading=!0,this.cabinetService.findPublicationById(this.publication.id).subscribe(e=>{this.publication=e,this.selection.clear(),this.loading=!1})}onAddThanks(){const e=Zn();e.width="800px",e.data=this.publication,this.dialog.open(WV,e).afterClosed().subscribe(r=>{r&&this.refresh()})}onRemoveThanks(){const e=Zn();e.width="450px",e.data={items:this.selection.selected.map(r=>r.ownerName),title:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_TITLE",description:"PUBLICATION_DETAIL.REMOVE_THANKS_DIALOG_DESCRIPTION",theme:"user-theme",type:"remove",showAsk:!0},this.dialog.open(FS,e).afterClosed().subscribe(r=>{r&&(this.loading=!0,this.removeThank())})}removeThank(){0===this.selection.selected.length?this.translate.get("PUBLICATION_DETAIL.REMOVE_THANKS_SUCCESS").subscribe(e=>{this.notificator.showSuccess(e),this.refresh()}):this.cabinetService.deleteThanks(this.selection.selected.pop().id).subscribe(()=>{this.removeThank()})}applyFilter(e){this.filterValue=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(fn),i.Y36(li),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-thanks"]],inputs:{publication:"publication",selection:"selection"},decls:6,vars:5,consts:[[1,"'user-theme'"],["mat-flat-button","","color","accent","class","mr-2 action-button",3,"click",4,"ngIf"],["mat-flat-button","","color","warn","class","mr-2",3,"disabled","click",4,"ngIf"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[3,"thanks","filterValue","tableId","displayedColumns","selection",4,"ngIf"],["mat-flat-button","","color","accent",1,"mr-2","action-button",3,"click"],["mat-flat-button","","color","warn",1,"mr-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],[3,"thanks","filterValue","tableId","displayedColumns","selection"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,oj,3,3,"button",1),i.YNc(2,lj,3,4,"button",2),i.TgZ(3,"perun-web-apps-immediate-filter",3),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.qZA(),i.YNc(4,cj,1,0,"mat-spinner",4),i.YNc(5,hj,1,7,"perun-web-apps-thanks-list",5),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("ngIf",!t.publication.locked),i.xp6(1),i.Q6J("placeholder","PUBLICATION_DETAIL.FILTER"),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[T.O5,Ft,k_,mn,sj],pipes:[Ct],styles:[""]}),n})();function pj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function fj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"assignment_ind"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"AUTHORS_PAGE.TITLE")," "))}function mj(n,a){1&n&&(i.TgZ(0,"h1",11),i._UZ(1,"mat-icon",13),i.TgZ(2,"span",14),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.Oqu(i.lcZ(4,1,"ALL_PUBLICATIONS.TITLE")))}function gj(n,a){1&n&&(i.TgZ(0,"h1",11),i.TgZ(1,"span"),i.TgZ(2,"mat-icon",12),i._uU(3,"local_library"),i.qZA(),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"MY_PUBLICATIONS.TITLE")," "))}function _j(n,a){if(1&n&&(i.TgZ(0,"h5",15),i._uU(1),i.ALo(2,"userFullName"),i.ALo(3,"translate"),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,e.mainAuthor),"",i.lcZ(3,4,"AUTHOR_DETAIL.TITLE")," ")}}function bj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.LOCKED")," "))}function yj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock "),i.qZA())}function wj(n,a){1&n&&(i.TgZ(0,"span",16),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"PUBLICATION_DETAIL.UNLOCKED")," "))}function Cj(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1," lock_open "),i.qZA())}function Aj(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function vj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publication-detail-list",17),i.NdJ("edited",function(){return i.CHM(e),i.oxw(2).refreshPublication()}),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("categories",e.categories)}}function Tj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.YNc(1,fj,6,3,"h1",4),i.YNc(2,mj,5,3,"h1",4),i.YNc(3,gj,6,3,"h1",4),i.YNc(4,_j,4,6,"h5",5),i.TgZ(5,"h5"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"h6"),i._uU(9),i.ALo(10,"translate"),i.TgZ(11,"button",6),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeLock()}),i.YNc(12,bj,3,3,"span",7),i.YNc(13,yj,2,0,"mat-icon",2),i.YNc(14,wj,3,3,"span",7),i.YNc(15,Cj,2,0,"mat-icon",2),i.qZA(),i.qZA(),i.TgZ(16,"mat-card"),i.TgZ(17,"mat-card-content"),i.YNc(18,Aj,1,0,"mat-spinner",1),i.YNc(19,vj,1,2,"perun-web-apps-publication-detail-list",8),i.qZA(),i.qZA(),i.TgZ(20,"mat-card",9),i.TgZ(21,"mat-card-title"),i._uU(22),i.ALo(23,"translate"),i.qZA(),i.TgZ(24,"mat-card-content"),i._UZ(25,"perun-web-apps-add-authors",10),i.qZA(),i.qZA(),i.TgZ(26,"mat-card",9),i.TgZ(27,"mat-card-title"),i._uU(28),i.ALo(29,"translate"),i.qZA(),i.TgZ(30,"mat-card-content"),i._UZ(31,"perun-web-apps-add-thanks",10),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf","authors"===e.mode),i.xp6(1),i.Q6J("ngIf","all"===e.mode),i.xp6(1),i.Q6J("ngIf","my"===e.mode),i.xp6(1),i.Q6J("ngIf",void 0!==e.mainAuthor),i.xp6(2),i.Oqu(i.lcZ(7,18,"PUBLICATION_DETAIL.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(10,20,"PUBLICATION_DETAIL.LOCK_INFO")," "),i.xp6(3),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(1),i.Q6J("ngIf",!e.publication.locked),i.xp6(3),i.Q6J("ngIf",e.loading||e.pubLoading),i.xp6(1),i.Q6J("ngIf",!e.pubLoading&&!e.loading),i.xp6(3),i.hij(" ",i.lcZ(23,22,"PUBLICATION_DETAIL.AUTHORS")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionAuthors),i.xp6(3),i.hij(" ",i.lcZ(29,24,"PUBLICATION_DETAIL.ACKNOWLEDGEMENT")," "),i.xp6(3),i.Q6J("publication",e.publication)("selection",e.selectionThanks)}}let P_=(()=>{class n{constructor(e,t,r,l,d,o,s){this.route=e,this.cabinetService=t,this.matIconRegistry=r,this.domSanitizer=l,this.dialog=d,this.notificator=o,this.translate=s,this.loading=!1,this.pubLoading=!1,this.initLoading=!1,this.selectionAuthors=new Ii(!0,[]),this.selectionThanks=new Ii(!0,[]),this.matIconRegistry.addSvgIcon("publications",this.domSanitizer.bypassSecurityTrustResourceUrl("../../assets/img/publications-dark.svg"))}ngOnInit(){this.initLoading=!0,this.publicationId?(this.setMode(),this.loadAllData()):this.route.params.subscribe(e=>{this.publicationId=Number(e.publicationId),this.mainAuthorId=Number(e.authorId),this.setMode(),this.loadAllData()})}setMode(){const e=location.pathname;this.mode=e.includes("my")?"my":e.includes("all")?"all":e.includes("import")?"import":e.includes("create")?"create":"authors"}loadAllData(){this.loading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.cabinetService.getCategories().subscribe(t=>{this.categories=t,this.loading=!1,this.initLoading=!1})})}refreshPublication(){this.pubLoading=!0,this.cabinetService.findPublicationById(this.publicationId).subscribe(e=>{this.publication=e,this.pubLoading=!1})}changeLock(){this.pubLoading=!0,this.cabinetService.lockPublications({publications:[{id:this.publication.id,beanName:"Publication",externalId:this.publication.externalId,publicationSystemId:this.publication.publicationSystemId,title:this.publication.title,year:this.publication.year,main:this.publication.main,isbn:this.publication.isbn,doi:this.publication.doi,categoryId:this.publication.categoryId,rank:this.publication.rank,locked:this.publication.locked,createdBy:this.publication.createdBy,createdDate:this.publication.createdDate}],lock:!this.publication.locked}).subscribe(()=>{this.translate.get("PUBLICATION_DETAIL.CHANGE_PUBLICATION_SUCCESS").subscribe(t=>{this.notificator.showSuccess(t),this.refreshPublication()})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(yn),i.Y36(li),i.Y36(Yu),i.Y36(Vn),i.Y36(fn),i.Y36(Ln),i.Y36(Li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-publication-detail"]],inputs:{publicationId:"publicationId"},decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["class","page-subtitle d-flex",4,"ngIf"],["class","mb-2",4,"ngIf"],["mat-stroked-button","",1,"ml-2",3,"click"],["class","font-weight-bold",4,"ngIf"],[3,"publication","categories","edited",4,"ngIf"],[1,"mt-4"],[3,"publication","selection"],[1,"page-subtitle","d-flex"],[1,"title-icon","align-icon","mr-3"],["svgIcon","publications",1,"icon-size"],[1,"ml-3","mt-1"],[1,"mb-2"],[1,"font-weight-bold"],[3,"publication","categories","edited"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pj,1,0,"mat-spinner",1),i.YNc(2,Tj,32,26,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.initLoading),i.xp6(1),i.Q6J("ngIf",!t.initLoading))},directives:[T.O5,mn,Gi,Ft,sE,rE,dV,aE,GE,WE],pipes:[Ct,NC],styles:[".icon-size[_ngcontent-%COMP%]{width:32px;height:32px}.align-icon[_ngcontent-%COMP%]{vertical-align:text-top}"]}),n})(),nM=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Gc,T.ez]]}),n})();const QE=new i.OlP("mat-chips-default-options");let Bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wr,{provide:QE,useValue:{separatorKeyCodes:[13]}}],imports:[[st]]}),n})();function jj(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function aM(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function vf(n,a){const e=a?"":"none";aM(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function KE(n,a,e){aM(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function UC(n,a){return a&&"none"!=a?n+" "+a:n}function XE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function sM(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function oM(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function lM(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function R_(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function eD(n,a,e,t){const{top:r,right:l,bottom:d,left:o,width:s,height:c}=n,u=s*a,h=c*a;return t>r-h&&to-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:oM(e)})})}handleScroll(a){const e=ha(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const o=r.top-l,s=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&R_(c.clientRect,o,s)}),r.top=l,r.left=d,{top:o,left:s}}}function iD(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const s=this._handles.find(c=>o.target&&(o.target===c||c.contains(o.target)));s&&!this._disabledHandles.has(s)&&!this.disabled&&this._initializeDragSequence(s,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)},this._pointerMove=o=>{const s=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging){if(Math.abs(s.x-this._pickupPositionOnPage.x)+Math.abs(s.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),j=this._dropContainer;if(!b)return void this._endDragSequence(o);(!j||!j.isDragging()&&!j.isReceiving())&&(o.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(o)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),o.preventDefault();const c=this._getConstrainedPointerPosition(s);if(this._hasMoved=!0,this._lastKnownPointerPosition=s,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,s);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:o,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=o=>{this._endDragSequence(o)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new tD(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=Oe(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>vf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>Qi(t)),this._handles.forEach(t=>vf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=Qi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,oD),e.addEventListener("touchstart",this._pointerDown,sD)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?Qi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),vf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),vf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){L_(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),o=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),KE(t,!1,cM),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,o).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=L_(e),l=!r&&0!==e.button,d=this._rootElement,o=ha(e),s=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Uh(e):Yh(e);if(o&&o.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||s||c)return;if(this._handles.length){const m=d.style;this._rootElementTapHighlight=m.webkitTapHighlightColor||"",m.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(m=>this._updateOnScroll(m)),this._boundaryElement&&(this._boundaryRect=oM(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){KE(this._rootElement,!0,cM),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=cD(d,this._document),this._previewRef=d,a.matchSize?dD(r,l):r.style.transform=zC(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=iD(l),dD(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return aM(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},cM),vf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function Fj(n){const a=getComputedStyle(n),e=sM(a,"transition-property"),t=e.find(o=>"transform"===o||"all"===o);if(!t)return 0;const r=e.indexOf(t),l=sM(a,"transition-duration"),d=sM(a,"transition-delay");return XE(l[r])+XE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var o;(!d||ha(d)===this._preview&&"transform"===d.propertyName)&&(null===(o=this._preview)||void 0===o||o.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=cD(this._placeholderRef,this._document)):t=iD(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=L_(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-o.left),y:l.top-t.top+(d.pageY-l.top-o.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=L_(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const o=this._ownerSVGElement.createSVGPoint();return o.x=r,o.y=l,o.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,o=this._boundaryRect,s=this._previewRect,c=o.top+d,u=o.bottom-(s.height-d);t=lD(t,o.left+l,o.right-(s.width-l)),r=lD(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),o=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),o>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,vf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,oD),a.removeEventListener("touchstart",this._pointerDown,sD)}_applyRootElementTransform(a,e){const t=zC(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=UC(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=zC(a,e);this._preview.style.transform=UC(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,o=t.top-r.top,s=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(o>0&&(e+=o),s>0&&(e-=s)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:L_(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=ha(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&R_(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Eh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return Qi(t)}}function zC(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function lD(n,a,e){return Math.max(a,Math.min(e,n))}function L_(n){return"t"===n.type[0]}function cD(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function dD(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=zC(a.left,a.top)}function I_(n,a){return Math.max(0,Math.min(a,n))}class qj{constructor(a,e,t,r,l){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=l,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new Ee.xQ,this.entered=new Ee.xQ,this.exited=new Ee.xQ,this.dropped=new Ee.xQ,this.sorted=new Ee.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=he.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Ee.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function Vj(n=0,a=Mh.P){return(!Ko(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new ki.y(e=>(e.add(a.schedule(jj,n,{subscriber:e,counter:0,period:n})),e))}(0,kd).pipe(Je(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,o=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-o):2===this._verticalScrollDirection&&d.scrollBy(0,o),1===this._horizontalScrollDirection?d.scrollBy(-o,0):2===this._horizontalScrollDirection&&d.scrollBy(o,0)})},this.element=Qi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new tD(t,l)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,o=d.indexOf(a),s=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(o,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(s,u),d.splice(l,0,a)}else Qi(this.element).appendChild(s),d.push(a);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,d,o){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:o})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=Qi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!eD(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const o="horizontal"===this._orientation,s=l.findIndex(pe=>pe.drag===a),c=l[d],h=c.clientRect,m=s>d?1:-1,b=this._getItemOffsetPx(l[s].clientRect,h,m),j=this._getSiblingOffsetPx(s,l,m),ie=l.slice();(function zj(n,a,e){const t=I_(a,n.length-1),r=I_(e,n.length-1);if(t===r)return;const l=n[t],d=r{if(ie[Ue]===pe)return;const Tt=pe.drag===a,at=Tt?b:j,Ut=Tt?a.getPlaceholderElement():pe.drag.getRootElement();pe.offset+=at,o?(Ut.style.transform=UC(`translate3d(${Math.round(pe.offset)}px, 0, 0)`,pe.initialTransform),R_(pe.clientRect,0,at)):(Ut.style.transform=UC(`translate3d(0, ${Math.round(pe.offset)}px, 0)`,pe.initialTransform),R_(pe.clientRect,at,0))}),this._previousSwap.overlaps=lM(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,o)=>{o===this._document||!d.clientRect||t||eD(d.clientRect,.05,a,e)&&([r,l]=function Gj(n,a,e,t){const r=pD(a,t),l=fD(a,e);let d=0,o=0;if(r){const s=n.scrollTop;1===r?s>0&&(d=1):n.scrollHeight-s>n.clientHeight&&(d=2)}if(l){const s=n.scrollLeft;1===l?s>0&&(o=1):n.scrollWidth-s>n.clientWidth&&(o=2)}return[d,o]}(o,d.clientRect,a,e),(r||l)&&(t=o))}),!r&&!l){const{width:d,height:o}=this._viewportRuler.getViewportSize(),s={width:d,height:o,top:0,right:d,bottom:o,left:0};r=pD(s,e),l=fD(s,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=Qi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=Qi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_cacheItemPositions(){const a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:oM(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=Qi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let o=l[r?"width":"height"]*t;if(d){const s=r?"left":"top",c=r?"right":"bottom";-1===t?o-=d.clientRect[s]-l[c]:o+=l[s]-d.clientRect[c]}return o}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:o,clientRect:s})=>{if(o===a)return!1;if(r){const c=l?r.x:r.y;if(o===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(s.left)&&e=Math.floor(s.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!lM(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=Qi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&(this._itemPositions.forEach(({clientRect:t})=>{R_(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Eh(Qi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function pD(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function fD(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const qC=ja({passive:!1,capture:!0});let Wj=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Ee.xQ,this.pointerUp=new Ee.xQ,this.scroll=new Ee.xQ,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,qC)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,qC)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:qC}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:qC}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new ki.y(r=>this._ngZone.runOutsideAngular(()=>{const d=o=>{this._activeDragInstances.length&&r.next(o)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Mi.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(T.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Zj={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let $j=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=Zj){return new Uj(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new qj(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(T.K0),i.LFG(i.R0b),i.LFG(Ya),i.LFG(Wj))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$j],imports:[gr]}),n})(),Qj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),n2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),u2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[n2,st],st]}),n})(),T2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa,st],st]}),n})(),S2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Ou,Gr,IC,Gc,CC,ju]]}),n})(),E2=(()=>{class n extends mp{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const D2={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let bD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:Ai,useClass:E2},{provide:yr,useValue:D2}],imports:[[T.ez,IC,Ox,iC,Bj,Jj,Dc,Dd,Xx,ee,CC,nM,Gc,gC,Gr,ju,vl,Ou,AC,Qa,HS,Qj,u2,Kx,T2,Mc,Vu,S2,el,yu,AS,jE]]}),n})(),nF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,Gr,Gc,Dd,bD,Dc,vl,Ou,AC,nM]]}),n})(),rF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(wu),i.Y36(C))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Ft,Gi],pipes:[Ct],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function aF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let sF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Ei(null,[Oi.required]),this.passwordCtrl=new Ei(null,[Oi.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Vi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,aF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[T.O5,Fs,Wn,es,is,Pn,xo,cr,_a,Hs,Ft,Gi],pipes:[Ct],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})();function oF(n,a){1&n&&i.Hsn(0)}const CD=["*"];function lF(n,a){}const cF=function(n){return{animationDuration:n}},dF=function(n,a){return{value:n,params:a}},uF=["tabListContainer"],hF=["tabList"],pF=["tabListInner"],fF=["nextPaginator"],mF=["previousPaginator"],gF=["tabBodyWrapper"],_F=["tabHeader"];function bF(n,a){}function yF(n,a){if(1&n&&i.YNc(0,bF,0,0,"ng-template",10),2&n){const e=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",e.templateLabel)}}function wF(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw().$implicit;i.Oqu(e.textLabel)}}function CF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",6),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index,o=i.oxw(),s=i.MAs(1);return o._handleClick(l,s,d)})("cdkFocusChange",function(r){const d=i.CHM(e).index;return i.oxw()._tabFocusChanged(r,d)}),i.TgZ(1,"div",7),i.YNc(2,yF,1,1,"ng-template",8),i.YNc(3,wF,1,1,"ng-template",null,9,i.W1O),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.MAs(4),l=i.oxw();i.ekj("mat-tab-label-active",l.selectedIndex===t),i.Q6J("id",l._getTabLabelId(t))("ngClass",e.labelClass)("disabled",e.disabled)("matRippleDisabled",e.disabled||l.disableRipple),i.uIk("tabIndex",l._getTabIndex(e,t))("aria-posinset",t+1)("aria-setsize",l._tabs.length)("aria-controls",l._getTabContentId(t))("aria-selected",l.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),i.xp6(2),i.Q6J("ngIf",e.templateLabel)("ngIfElse",r)}}function AF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){return i.CHM(e),i.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(r){return i.CHM(e),i.oxw()._setTabBodyWrapperHeight(r)}),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.ekj("mat-tab-body-active",r.selectedIndex===t),i.Q6J("id",r._getTabContentId(t))("ngClass",e.bodyClass)("content",e.content)("position",e.position)("origin",e.origin)("animationDuration",r.animationDuration),i.uIk("tabindex",null!=r.contentTabIndex&&r.selectedIndex===t?r.contentTabIndex:null)("aria-labelledby",r._getTabLabelId(t))}}const vF=new i.OlP("MatInkBarPositioner",{providedIn:"root",factory:function TF(){return a=>({left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"})}});let AD=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._ngZone=t,this._inkBarPositioner=r,this._animationMode=l}alignToElement(e){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(e))}):this._setStyles(e)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(e){const t=this._inkBarPositioner(e),r=this._elementRef.nativeElement;r.style.left=t.left,r.style.width=t.width}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(vF),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)}}),n})();const vD=new i.OlP("MatTabContent");let xF=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:vD,useExisting:n}])]}),n})();const TD=new i.OlP("MatTabLabel"),xD=new i.OlP("MAT_TAB");let MF=(()=>{class n extends _A{constructor(e,t,r){super(e,t),this._closestTab=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(xD,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:TD,useExisting:n}]),i.qOj]}),n})();const SF=fa(class{}),MD=new i.OlP("MAT_TAB_GROUP");let SD=(()=>{class n extends SF{constructor(e,t){super(),this._viewContainerRef=e,this._closestTabGroup=t,this.textLabel="",this._contentPortal=null,this._stateChanges=new Ee.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}get content(){return this._contentPortal}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new fo(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(MD,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,TD,5),i.Suo(r,vD,7,i.Rgc)),2&e){let l;i.iGM(l=i.CRH())&&(t.templateLabel=l.first),i.iGM(l=i.CRH())&&(t._explicitContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,7),2&e){let r;i.iGM(r=i.CRH())&&(t._implicitContent=r.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:xD,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:CD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.YNc(0,oF,1,0,"ng-template"))},encapsulation:2}),n})();const EF={translateTab:ei("translateTab",[Dt("center, void, left-origin-center, right-origin-center",He({transform:"none"})),Dt("left",He({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Dt("right",He({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),ft("* => left, * => right, left => center, right => center",ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),ft("void => left-origin-center",[He({transform:"translate3d(-100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),ft("void => right-origin-center",[He({transform:"translate3d(100%, 0, 0)"}),ct("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let DF=(()=>{class n extends Ua{constructor(e,t,r,l){super(e,t,l),this._host=r,this._centeringSub=he.w.EMPTY,this._leavingSub=he.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Wt(this._host._isCenterPosition(this._host._position))).subscribe(e=>{e&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>ED)),i.Y36(T.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabBodyHost",""]],features:[i.qOj]}),n})(),HF=(()=>{class n{constructor(e,t,r){this._elementRef=e,this._dir=t,this._dirChangeSubscription=he.w.EMPTY,this._translateTabComplete=new Ee.xQ,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",t&&(this._dirChangeSubscription=t.change.subscribe(l=>{this._computePositionAnimationState(l),r.markForCheck()})),this._translateTabComplete.pipe(ll((l,d)=>l.fromState===d.fromState&&l.toState===d.toState)).subscribe(l=>{this._isCenterPosition(l.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(l.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(e){this._positionIndex=e,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(e){const t=this._isCenterPosition(e.toState);this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(e){return"center"==e||"left-origin-center"==e||"right-origin-center"==e}_computePositionAnimationState(e=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==e?"left":"right":this._positionIndex>0?"ltr"==e?"right":"left":"center"}_computePositionFromOrigin(e){const t=this._getLayoutDirection();return"ltr"==t&&e<=0||"rtl"==t&&e>0?"left-origin-center":"right-origin-center"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),n})(),ED=(()=>{class n extends HF{constructor(e,t,r){super(e,t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi,8),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,t){if(1&e&&i.Gf(Ua,5),2&e){let r;i.iGM(r=i.CRH())&&(t._portalHost=r.first)}},hostAttrs:[1,"mat-tab-body"],features:[i.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(e,t){1&e&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(l){return t._onTranslateTabStarted(l)})("@translateTab.done",function(l){return t._translateTabComplete.next(l)}),i.YNc(2,lF,0,0,"ng-template",2),i.qZA()),2&e&&i.Q6J("@translateTab",i.WLB(3,dF,t._position,i.VKq(1,cF,t.animationDuration)))},directives:[DF],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[EF.translateTab]}}),n})();const DD=new i.OlP("MAT_TABS_CONFIG"),kF=fa(class{});let HD=(()=>{class n extends kF{constructor(e){super(),this.elementRef=e}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,t){2&e&&(i.uIk("aria-disabled",!!t.disabled),i.ekj("mat-tab-disabled",t.disabled))},inputs:{disabled:"disabled"},features:[i.qOj]}),n})();const kD=ja({passive:!0});let LF=(()=>{class n{constructor(e,t,r,l,d,o,s){this._elementRef=e,this._changeDetectorRef=t,this._viewportRuler=r,this._dir=l,this._ngZone=d,this._platform=o,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Ee.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Ee.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,d.runOutsideAngular(()=>{ua(e.nativeElement,"mouseleave").pipe(Je(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){e=_i(e),this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}ngAfterViewInit(){ua(this._previousPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),ua(this._nextPaginator.nativeElement,"touchstart",kD).pipe(Je(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const e=this._dir?this._dir.change:(0,Ne.of)("ltr"),t=this._viewportRuler.change(150),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new dl(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(r):r(),(0,Mi.T)(e,t,this._items.changes).pipe(Je(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(r)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Je(this._destroyed)).subscribe(l=>{this.indexFocused.emit(l),this._setTabFocus(l)})}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._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Ki(e))switch(e.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e));break;default:this._keyManager.onKeydown(e)}}_onContentChanges(){const e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",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(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){if(!this._items)return!0;const t=this._items?this._items.toArray()[e]:null;return!!t&&!t.disabled}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();const t=this._tabListContainer.nativeElement;t.scrollLeft="ltr"==this._getLayoutDirection()?0:t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const e=this.scrollDistance,t="ltr"===this._getLayoutDirection()?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){return this._scrollTo(this._scrollDistance+("before"==e?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;const t=this._items?this._items.toArray()[e]:null;if(!t)return;const r=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:l,offsetWidth:d}=t.elementRef.nativeElement;let o,s;"ltr"==this._getLayoutDirection()?(o=l,s=o+d):(s=this._tabListInner.nativeElement.offsetWidth-l,o=s-d);const c=this.scrollDistance,u=this.scrollDistance+r;ou&&(this.scrollDistance+=s-u+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const e=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e}}_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 e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&null!=t.button&&0!==t.button||(this._stopInterval(),Sn(650,100).pipe(Je((0,Mi.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:r,distance:l}=this._scrollHeader(e);(0===l||l>=r)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disablePagination:"disablePagination"}}),n})(),IF=(()=>{class n extends LF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Oe(e)}_itemSelected(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{disableRipple:"disableRipple"},features:[i.qOj]}),n})(),OF=(()=>{class n extends IF{constructor(e,t,r,l,d,o,s){super(e,t,r,l,d,o,s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Ya),i.Y36(xi,8),i.Y36(i.R0b),i.Y36(bi),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,HD,4),2&e){let l;i.iGM(l=i.CRH())&&(t._items=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(AD,7),i.Gf(uF,7),i.Gf(hF,7),i.Gf(pF,7),i.Gf(fF,5),i.Gf(mF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inkBar=r.first),i.iGM(r=i.CRH())&&(t._tabListContainer=r.first),i.iGM(r=i.CRH())&&(t._tabList=r.first),i.iGM(r=i.CRH())&&(t._tabListInner=r.first),i.iGM(r=i.CRH())&&(t._nextPaginator=r.first),i.iGM(r=i.CRH())&&(t._previousPaginator=r.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-header-pagination-controls-enabled",t._showPaginationControls)("mat-tab-header-rtl","rtl"==t._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:CD,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t._handlePaginatorClick("before")})("mousedown",function(l){return t._handlePaginatorPress("before",l)})("touchend",function(){return t._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(l){return t._handleKeydown(l)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return t._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA(),i._UZ(10,"mat-ink-bar"),i.qZA(),i.qZA(),i.TgZ(11,"div",9,10),i.NdJ("mousedown",function(l){return t._handlePaginatorPress("after",l)})("click",function(){return t._handlePaginatorClick("after")})("touchend",function(){return t._stopInterval()}),i._UZ(13,"div",2),i.qZA()),2&e&&(i.ekj("mat-tab-header-pagination-disabled",t._disableScrollBefore),i.Q6J("matRippleDisabled",t._disableScrollBefore||t.disableRipple),i.xp6(5),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(6),i.ekj("mat-tab-header-pagination-disabled",t._disableScrollAfter),i.Q6J("matRippleDisabled",t._disableScrollAfter||t.disableRipple))},directives:[qt,jh,AD],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-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:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),n})(),BF=0;class VF{}const jF=Ja(ma(class{constructor(n){this._elementRef=n}}),"primary");let FF=(()=>{class n extends jF{constructor(e,t,r,l){var d;super(e),this._changeDetectorRef=t,this._animationMode=l,this._tabs=new i.n_E,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=he.w.EMPTY,this._tabLabelSubscription=he.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=BF++,this.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",this.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,this.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,this.contentTabIndex=null!==(d=null==r?void 0:r.contentTabIndex)&&void 0!==d?d:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(e){this._dynamicHeight=Oe(e)}get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=_i(e,null)}get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e+"")?e+"ms":e}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=_i(e,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(e){const t=this._elementRef.nativeElement;t.classList.remove(`mat-background-${this.backgroundColor}`),e&&t.classList.add(`mat-background-${e}`),this._backgroundColor=e}ngAfterContentChecked(){const e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){const t=null==this._selectedIndex;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));const r=this._tabBodyWrapper.nativeElement;r.style.minHeight=r.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((r,l)=>r.isActive=l===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,r)=>{t.position=r-e,null!=this._selectedIndex&&0==t.position&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let r=0;r{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._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(e){const t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){const t=new VF;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Mi.T)(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e){return`mat-tab-label-${this._groupId}-${e}`}_getTabContentId(e){return`mat-tab-content-${this._groupId}-${e}`}_setTabBodyWrapperHeight(e){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){const e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this.animationDone.emit()}_handleClick(e,t,r){e.disabled||(this.selectedIndex=t.focusIndex=r)}_getTabIndex(e,t){return e.disabled?null:this.selectedIndex===t?0:-1}_tabFocusChanged(e,t){e&&"mouse"!==e&&"touch"!==e&&(this._tabHeader.focusIndex=t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275dir=i.lG2({type:n,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[i.qOj]}),n})(),NF=(()=>{class n extends FF{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(DD,8),i.Y36(Si,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,SD,5),2&e){let l;i.iGM(l=i.CRH())&&(t._allTabs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gF,5),i.Gf(_F,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._tabBodyWrapper=r.first),i.iGM(r=i.CRH())&&(t._tabHeader=r.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-tab-group-dynamic-height",t.dynamicHeight)("mat-tab-group-inverted-header","below"===t.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[i._Bn([{provide:MD,useExisting:n}]),i.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(l){return t._focusChanged(l)})("selectFocusedIndex",function(l){return t.selectedIndex=l}),i.YNc(2,CF,5,15,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.YNc(5,AF,1,10,"mat-tab-body",5),i.qZA()),2&e&&(i.Q6J("selectedIndex",t.selectedIndex||0)("disableRipple",t.disableRipple)("disablePagination",t.disablePagination),i.xp6(2),i.Q6J("ngForOf",t._tabs),i.xp6(1),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode),i.xp6(2),i.Q6J("ngForOf",t._tabs))},directives:[OF,ED,T.sg,HD,qt,gv,T.mk,T.O5,Ua],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),n})(),YF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[T.ez,st,il,Qa,zd,zh],st]}),n})();function UF(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function zF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.PUBLICATION"))}function qF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function GF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function WF(n,a){if(1&n&&(i.TgZ(0,"mat-option",36),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function ZF(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function $F(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.REQUIRED_ERROR")," "))}function JF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK")," ")}function QF(n,a){1&n&&(i.TgZ(0,"div",28),i._UZ(1,"mat-spinner",5),i.TgZ(2,"h5",37),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.hij(" ",i.lcZ(4,1,"CREATE_SINGLE_PUBLICATION.CHECK_PERFORM")," "))}function KF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",38),i.TgZ(1,"div",28),i.TgZ(2,"span",39),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"span",40),i.TgZ(7,"mat-icon",41),i._uU(8,"fiber_manual_record"),i.qZA(),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"span",42),i.TgZ(12,"mat-icon",41),i._uU(13,"fiber_manual_record"),i.qZA(),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA(),i.qZA()),2&n&&(i.xp6(3),i.AsE(" ",i.lcZ(4,4,"CREATE_SINGLE_PUBLICATION.SIMILAR_FOUND"),". ",i.lcZ(5,6,"CREATE_SINGLE_PUBLICATION.CHECK_BELOW"),". "),i.xp6(6),i.hij(" ",i.lcZ(10,8,"CREATE_SINGLE_PUBLICATION.IS_BELOW")," "),i.xp6(5),i.hij(" ",i.lcZ(15,10,"CREATE_SINGLE_PUBLICATION.NOT_BELOW")," "))}function XF(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.Oqu(i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.CHECK"))}function eN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}const tN=function(){return["id","lock","title","reportedBy","year","category","thankedTo","cite"]};function iN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-publications-list",48),i.NdJ("publicationSelector",function(r){i.CHM(e),i.oxw(2);const l=i.MAs(1);return i.oxw(2).loadPublicationDetail(r,l)}),i.qZA()}if(2&n){const e=i.oxw(4);i.Q6J("displayedColumns",i.DdM(4,tN))("disabledRouting",!0)("openInTab",!0)("publications",e.filteredPublications)}}function nN(n,a){if(1&n&&(i.TgZ(0,"div",46),i.YNc(1,eN,1,0,"mat-spinner",3),i.YNc(2,iN,1,5,"perun-web-apps-publications-list",47),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function rN(n,a){if(1&n&&i._uU(0),2&n){const e=i.oxw(4);i.Oqu(e.selectedPubTitle)}}function aN(n,a){if(1&n&&(i.TgZ(0,"div",49),i._UZ(1,"perun-web-apps-publication-detail",50),i.qZA()),2&n){const e=i.oxw(4);i.xp6(1),i.Q6J("publicationId",e.selectedPubId)}}function sN(n,a){1&n&&(i.TgZ(0,"mat-tab"),i.YNc(1,rN,1,1,"ng-template",44),i.YNc(2,aN,2,1,"ng-template",45),i.qZA())}function oN(n,a){if(1&n&&(i.TgZ(0,"mat-tab-group",null,43),i.TgZ(2,"mat-tab"),i.YNc(3,XF,2,3,"ng-template",44),i.YNc(4,nN,3,2,"ng-template",45),i.qZA(),i.YNc(5,sN,3,0,"mat-tab",14),i.qZA()),2&n){const e=i.oxw(2);i.xp6(5),i.Q6J("ngIf",null!==e.selectedPubId)}}function lN(n,a){1&n&&(i.TgZ(0,"div",28),i.TgZ(1,"mat-icon",51),i._uU(2,"check_circle"),i.qZA(),i.TgZ(3,"h5",52),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,"CREATE_SINGLE_PUBLICATION.NO_SIMILAR")," "))}function cN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function dN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",57),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).redirect(["create-publication"])}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.RETURN")," "))}function uN(n,a){if(1&n&&(i.TgZ(0,"div",53),i.YNc(1,cN,3,3,"button",54),i.TgZ(2,"button",55),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.YNc(5,dN,3,3,"button",56),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,3,"CREATE_SINGLE_PUBLICATION.CREATE")," "),i.xp6(2),i.Q6J("ngIf",!e.duplicateCheck)}}function hN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.AUTHORS")," ")}function pN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function fN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-authors",59),2&n){const e=i.oxw(3);i.Q6J("publication",e.publication)("selection",e.authorsSelection)}}function mN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",58),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,fN,1,2,"perun-web-apps-add-authors",33),i.qZA()),2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,2,"CREATE_SINGLE_PUBLICATION.PUB_CREATED")),i.xp6(2),i.Q6J("ngIf",null!==e.publication)}}function gN(n,a){1&n&&(i.TgZ(0,"button",34),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CREATE_SINGLE_PUBLICATION.PREV")," "))}function _N(n,a){if(1&n&&(i.TgZ(0,"div",25),i.YNc(1,gN,3,3,"button",54),i.TgZ(2,"button",60),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!e.duplicateCheck),i.xp6(2),i.hij(" ",i.lcZ(4,2,"CREATE_SINGLE_PUBLICATION.NEXT")," ")}}function bN(n,a){1&n&&(i._uU(0),i.ALo(1,"translate")),2&n&&i.hij(" ",i.lcZ(1,1,"CREATE_SINGLE_PUBLICATION.THANKS")," ")}function yN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-add-thanks",59),2&n){const e=i.oxw(2);i.Q6J("publication",e.publication)("selection",e.thanksSelection)}}function wN(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function CN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-horizontal-stepper",6),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw().stepChanged(r)}),i.TgZ(1,"mat-step",7),i.YNc(2,zF,2,3,"ng-template",8),i.TgZ(3,"form",9),i.TgZ(4,"h5",10),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",11),i.TgZ(8,"mat-checkbox",12),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.TgZ(11,"mat-form-field"),i._UZ(12,"input",13),i.ALo(13,"translate"),i.YNc(14,qF,3,3,"mat-error",14),i.qZA(),i.TgZ(15,"mat-form-field",15),i.NdJ("click",function(){return i.CHM(e),i.MAs(22).open()}),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",16),i._UZ(20,"mat-datepicker-toggle",17),i.TgZ(21,"mat-datepicker",18,19),i.NdJ("yearSelected",function(r){i.CHM(e);const l=i.MAs(22);return i.oxw().chosenYearHandler(r,l)}),i.qZA(),i.YNc(23,GF,3,3,"mat-error",14),i.qZA(),i.TgZ(24,"mat-form-field"),i.TgZ(25,"mat-select",20),i.ALo(26,"translate"),i.YNc(27,WF,2,2,"mat-option",21),i.qZA(),i.YNc(28,ZF,3,3,"mat-error",14),i.qZA(),i.TgZ(29,"mat-form-field"),i._UZ(30,"input",22),i.ALo(31,"translate"),i.qZA(),i.TgZ(32,"mat-form-field"),i._UZ(33,"input",23),i.ALo(34,"translate"),i.qZA(),i.TgZ(35,"mat-form-field"),i.TgZ(36,"textarea",24),i.ALo(37,"translate"),i._uU(38," "),i.qZA(),i.YNc(39,$F,3,3,"mat-error",14),i.qZA(),i.qZA(),i.qZA(),i.TgZ(40,"div",25),i.TgZ(41,"button",26),i._uU(42),i.ALo(43,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(44,"mat-step",27),i.YNc(45,JF,2,3,"ng-template",8),i.TgZ(46,"form",28),i.TgZ(47,"h5",10),i._uU(48),i.ALo(49,"translate"),i.qZA(),i.YNc(50,QF,5,3,"div",29),i.YNc(51,KF,16,12,"perun-web-apps-alert",30),i.YNc(52,oN,6,1,"mat-tab-group",14),i.YNc(53,lN,6,3,"div",29),i.qZA(),i.YNc(54,uN,6,5,"div",31),i.qZA(),i.TgZ(55,"mat-step"),i.YNc(56,hN,2,3,"ng-template",8),i.TgZ(57,"h5",10),i._uU(58),i.ALo(59,"translate"),i.qZA(),i.YNc(60,pN,1,0,"mat-spinner",3),i.YNc(61,mN,5,4,"div",14),i.YNc(62,_N,5,4,"div",32),i.qZA(),i.TgZ(63,"mat-step"),i.YNc(64,bN,2,3,"ng-template",8),i.TgZ(65,"h5",10),i._uU(66),i.ALo(67,"translate"),i.qZA(),i.YNc(68,yN,1,2,"perun-web-apps-add-thanks",33),i.YNc(69,wN,1,0,"mat-spinner",3),i.TgZ(70,"div",25),i.TgZ(71,"button",34),i._uU(72),i.ALo(73,"translate"),i.qZA(),i.TgZ(74,"button",35),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.redirect(["all-publications",r.publication.id])}),i._uU(75),i.ALo(76,"translate"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(22),t=i.oxw();i.xp6(1),i.Q6J("editable",!t.duplicateCheck)("stepControl",t.publicationControl),i.xp6(2),i.Q6J("formGroup",t.publicationControl),i.xp6(2),i.hij(" ",i.lcZ(6,37,"CREATE_SINGLE_PUBLICATION.PUB_INFO")," "),i.xp6(4),i.hij(" ",i.lcZ(10,39,"CREATE_SINGLE_PUBLICATION.ADD_MYSELF")," "),i.xp6(3),i.s9C("placeholder",i.lcZ(13,41,"CREATE_SINGLE_PUBLICATION.SET_TITLE")),i.xp6(2),i.Q6J("ngIf",t.publicationControl.hasError("required","title")),i.xp6(3),i.Oqu(i.lcZ(18,43,"CREATE_SINGLE_PUBLICATION.YEAR")),i.xp6(2),i.Q6J("max",t.maxYear)("matDatepicker",e),i.xp6(1),i.Q6J("for",e),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","year")),i.xp6(2),i.s9C("placeholder",i.lcZ(26,45,"CREATE_SINGLE_PUBLICATION.CATEGORY")),i.xp6(2),i.Q6J("ngForOf",t.categories),i.xp6(1),i.Q6J("ngIf",t.publicationControl.hasError("required","category")),i.xp6(2),i.s9C("placeholder",i.lcZ(31,47,"CREATE_SINGLE_PUBLICATION.ISBN")),i.xp6(3),i.s9C("placeholder",i.lcZ(34,49,"CREATE_SINGLE_PUBLICATION.DOI")),i.xp6(3),i.s9C("placeholder",i.lcZ(37,51,"CREATE_SINGLE_PUBLICATION.CITE")),i.xp6(3),i.Q6J("ngIf",t.publicationControl.hasError("required","cite")),i.xp6(2),i.Q6J("disabled",t.publicationControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(43,53,"CREATE_SINGLE_PUBLICATION.NEXT")," "),i.xp6(2),i.Q6J("editable",!t.duplicateCheck),i.xp6(4),i.hij(" ",i.lcZ(49,55,"CREATE_SINGLE_PUBLICATION.SIMILARITY_CHECK")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&!t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading&&t.duplicateCheck),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(59,57,"CREATE_SINGLE_PUBLICATION.ADD_AUTHORS")," "),i.xp6(2),i.Q6J("ngIf",t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(1),i.Q6J("ngIf",!t.innerLoading),i.xp6(4),i.hij(" ",i.lcZ(67,59,"CREATE_SINGLE_PUBLICATION.ADD_THANKS")," "),i.xp6(2),i.Q6J("ngIf",null!==t.publication),i.xp6(1),i.Q6J("ngIf",t.innerLoading),i.xp6(3),i.hij(" ",i.lcZ(73,61,"CREATE_SINGLE_PUBLICATION.PREV")," "),i.xp6(3),i.hij(" ",i.lcZ(76,63,"CREATE_SINGLE_PUBLICATION.FINISH")," ")}}const AN=Af,vN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};let TN=(()=>{class n{constructor(e,t,r,l,d,o,s,c){this.formBuilder=e,this.cabinetService=t,this.dialog=r,this.router=l,this.notificator=d,this.translate=o,this.storeService=s,this.userService=c,this.similarPublications=[],this.filteredPublications=[],this.categories=[],this.publication=null,this.authorsSelection=new Ii(!0,[]),this.thanksSelection=new Ii(!0,[]),this.innerLoading=!1,this.loading=!1,this.duplicateCheck=!1,this.selectedPubId=null,this.selectedPubTitle=""}ngOnInit(){this.loading=!0,this.publicationControl=this.formBuilder.group({addAuthor:[!1],title:["",Oi.required],year:["",Oi.required],category:["",Oi.required],isbn:[""],doi:[""],cite:["",Oi.required]}),this.maxYear=AN(),this.cabinetService.getCategories().subscribe(e=>{this.categories=e,this.loading=!1})}chosenYearHandler(e,t){this.publicationControl.get("year").setValue(e),t.close()}createTimeout(){setTimeout(()=>{this.notificator.showSuccess(this.translate.instant("CREATE_SINGLE_PUBLICATION.SUCCESS")),this.duplicateCheck=!0,this.innerLoading=!1},1e3)}createPublication(){this.innerLoading=!0,this.duplicateCheck=!0;const e={publication:{id:0,beanName:"Publication",title:this.publicationControl.get("title").value,categoryId:this.publicationControl.get("category").value.id,year:this.publicationControl.get("year").value.year(),isbn:this.publicationControl.get("isbn").value,doi:this.publicationControl.get("doi").value,main:this.publicationControl.get("cite").value}};this.userService.getRichUserWithAttributes(this.storeService.getPerunPrincipal().userId).subscribe(t=>{const r=t.userAttributes.filter(l=>"preferredMail"===l.friendlyName);0!==r.length&&(e.publication.createdBy=r[0].value),this.cabinetService.createPublication(e).subscribe(l=>{this.publication=l,this.publicationControl.get("addAuthor").value?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:this.publication.id,userId:t.id}}).subscribe(()=>{this.createTimeout()},()=>this.innerLoading=!1):this.createTimeout()},()=>this.innerLoading=!1)},()=>this.innerLoading=!1)}similarCheck(){var e,t,r;this.innerLoading=!0;const l=null!==(e=this.publicationControl.get("title").value)&&void 0!==e?e:null,d=null!==(t=this.publicationControl.get("doi").value)&&void 0!==t?t:null,o=null!==(r=this.publicationControl.get("isbn").value)&&void 0!==r?r:null;this.cabinetService.findSimilarPublications(l,d,o).subscribe(s=>{this.similarPublications=s,this.filteredPublications=s,setTimeout(()=>{this.duplicateCheck=0===s.length,this.innerLoading=!1},2e3)})}stepChanged(e){1===e.selectedIndex&&this.similarCheck(),2===e.selectedIndex&&null===this.publication&&this.createPublication()}redirect(e){this.router.navigate(e)}loadPublicationDetail(e,t){this.selectedPubId=e.id,this.selectedPubTitle=e.title,t.selectedIndex=1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ax),i.Y36(li),i.Y36(fn),i.Y36(C),i.Y36(Ln),i.Y36(Li),i.Y36(hn),i.Y36(Mr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-create-single-publication-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:vN}])],decls:9,vars:5,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],["class","ml-auto mr-auto",4,"ngIf"],["linear","True",3,"selectionChange",4,"ngIf"],[1,"ml-auto","mr-auto"],["linear","True",3,"selectionChange"],[3,"editable","stepControl"],["matStepLabel",""],[3,"formGroup"],[1,"mt-2"],[1,"dialog-container","w-50"],["labelPosition","before","formControlName","addAuthor",1,"mt-3"],["matInput","","formControlName","title","required","",3,"placeholder"],[4,"ngIf"],[3,"click"],["matInput","","required","","formControlName","year","readonly","",1,"disable",3,"max","matDatepicker"],["matSuffix","",3,"for"],["startView","multi-year",3,"yearSelected"],["sdp",""],["required","","formControlName","category",3,"placeholder"],[3,"value",4,"ngFor","ngForOf"],["matInput","","formControlName","isbn",3,"placeholder"],["matInput","","formControlName","doi",3,"placeholder"],["matInput","","formControlName","cite","required","",3,"placeholder"],[1,"mt-1"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-auto",3,"disabled"],[3,"editable"],[1,"flex-container"],["class","flex-container",4,"ngIf"],["class","w-100","alert_type","warn",4,"ngIf"],["class","mt-3",4,"ngIf"],["class","mt-1",4,"ngIf"],[3,"publication","selection",4,"ngIf"],["mat-stroked-button","","type","button","matStepperPrevious","",1,"ml-auto"],["mat-flat-button","","type","button","color","accent",1,"ml-2",3,"click"],[3,"value"],[1,"ml-auto","mr-auto","mt-1","font-weight-bold"],["alert_type","warn",1,"w-100"],[1,"font-weight-bold"],[1,"mt-2","ml-3"],[1,"dot-icon"],[1,"ml-3"],["similarPublicationTabs",""],["matTabLabel",""],["matTabContent",""],[1,"flex-container","mb-2"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector",4,"ngIf"],[3,"displayedColumns","disabledRouting","openInTab","publications","publicationSelector"],[1,"mt-4"],[3,"publicationId"],[1,"ml-auto","mr-auto","passed-icon"],[1,"ml-auto","mr-auto","font-weight-bold"],[1,"mt-3"],["class","ml-auto","mat-stroked-button","","type","button","matStepperPrevious","",4,"ngIf"],["mat-flat-button","","color","accent","type","button","matStepperNext","",1,"ml-2"],["class","ml-2","mat-stroked-button","","type","button",3,"click",4,"ngIf"],["mat-stroked-button","","type","button",1,"ml-2",3,"click"],["alert_type","info"],[3,"publication","selection"],["mat-stroked-button","","type","button","matStepperNext","",1,"ml-2"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,UF,1,0,"mat-spinner",3),i.YNc(8,CN,77,65,"mat-horizontal-stepper",4),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,3,"CREATE_SINGLE_PUBLICATION.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Gi,T.O5,mn,SE,xE,OC,Vw,Ew,Ls,Zc,cr,u_,Wn,is,Pn,xo,Hs,es,D_,Qx,gw,Jx,Uc,T.sg,xc,Ft,TL,jc,Fs,NF,SD,MF,xF,wf,P_,xL,GE,WE],pipes:[Ct],styles:[".add-icon[_ngcontent-%COMP%]{font-size:32px;vertical-align:text-top}.dot-icon[_ngcontent-%COMP%]{font-size:small;vertical-align:-1px}.passed-icon[_ngcontent-%COMP%]{font-size:130px;color:#288619;margin-bottom:130px;padding-right:120px}.flex-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",14),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e.friendlyName)}}function MN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.INFO")," "))}function SN(n,a){if(1&n&&i._UZ(0,"perun-web-apps-publications-list",16),2&n){const e=i.oxw(2);i.Q6J("publications",e.publications)("displayedColumns",e.displayedColumns)("selection",e.selected)("tableId",e.tableId)("disabledRouting",!0)("allowAlert",e.firstSearchDone)}}function EN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div"),i.TgZ(2,"mat-form-field",5),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"mat-select",6),i.NdJ("closed",function(){return i.CHM(e),i.oxw().selectPubSystem()}),i.YNc(7,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i._UZ(8,"perun-web-apps-year-range",8),i.TgZ(9,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().searchPublications()}),i.TgZ(10,"mat-icon"),i._uU(11,"search"),i.qZA(),i._uU(12),i.ALo(13,"translate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.importPublications(r.selected.selected)}),i._uU(15),i.ALo(16,"translate"),i.qZA(),i.TgZ(17,"mat-checkbox",11),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().userAsAuthor=r}),i._uU(18),i.ALo(19,"translate"),i.qZA(),i.qZA(),i.YNc(20,MN,3,3,"perun-web-apps-alert",12),i.YNc(21,SN,1,6,"perun-web-apps-publications-list",13),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,12,"IMPORT_PUBLICATIONS.EXT_PUB_SYSTEM")),i.xp6(2),i.Q6J("formControl",e.pubSystem),i.xp6(1),i.Q6J("ngForOf",e.publicationSystems),i.xp6(1),i.Q6J("startYear",e.startYear)("endYear",e.endYear),i.xp6(4),i.hij(" ",i.lcZ(13,14,"IMPORT_PUBLICATIONS.SEARCH")," "),i.xp6(2),i.Q6J("disabled",0===e.selected.selected.length),i.xp6(1),i.hij(" ",i.lcZ(16,16,"IMPORT_PUBLICATIONS.IMPORT")," "),i.xp6(2),i.Q6J("ngModel",e.userAsAuthor),i.xp6(1),i.hij(" ",i.lcZ(19,18,"IMPORT_PUBLICATIONS.ADD_MYSELF")," "),i.xp6(2),i.Q6J("ngIf",!e.firstSearchDone),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function DN(n,a){1&n&&i._UZ(0,"mat-spinner",17)}function HN(n,a){1&n&&(i.TgZ(0,"i"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED")," "))}function kN(n,a){1&n&&(i.TgZ(0,"mat-icon",28),i._uU(1,"check_circle"),i.qZA())}function PN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(),l=r.$implicit,d=r.index;return i.oxw(2).completePublication(l.id,d)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECKED_BUTTON")," "))}function RN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(2).incompletePublication(r.id)}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.NOT_CHECKED_BUTTON")," "))}function LN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",22),i.TgZ(1,"mat-expansion-panel-header",23),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).editPublication(l)}),i.TgZ(2,"mat-panel-title"),i._uU(3),i.YNc(4,HN,3,3,"i",3),i.YNc(5,kN,2,0,"mat-icon",24),i.qZA(),i.qZA(),i._UZ(6,"perun-web-apps-publication-detail",25),i.TgZ(7,"div",26),i.YNc(8,PN,3,3,"button",20),i.YNc(9,RN,3,3,"button",27),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw(2);i.Q6J("expanded",r.indexExpanded===t),i.xp6(3),i.hij(" ",e.title," "),i.xp6(1),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("publicationId",e.id),i.xp6(2),i.Q6J("ngIf",!r.completePublications.includes(e.id)),i.xp6(1),i.Q6J("ngIf",r.completePublications.includes(e.id))}}function IN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).completeAllPublications()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"IMPORT_PUBLICATIONS.CHECK_ALL")," "))}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",31),i.ALo(1,"translate"),i.TgZ(2,"button",32),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).onSubmit()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.s9C("matTooltip",i.lcZ(1,4,"IMPORT_PUBLICATIONS.SUBMIT_TOOLTIP")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",e.completePublications.length===e.importedPublications.length),i.xp6(3),i.hij(" ",i.lcZ(4,6,"IMPORT_PUBLICATIONS.FINISH")," ")}}function BN(n,a){if(1&n&&(i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-alert",15),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-accordion"),i.YNc(5,LN,10,7,"mat-expansion-panel",18),i.qZA(),i.TgZ(6,"div",19),i.YNc(7,IN,3,3,"button",20),i.qZA(),i.YNc(8,ON,5,8,"div",21),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,4,"IMPORT_PUBLICATIONS.IMPORTED_INFO")," "),i.xp6(3),i.Q6J("ngForOf",e.importedPublications),i.xp6(2),i.Q6J("ngIf",e.completePublications.length!==e.importedPublications.length),i.xp6(1),i.Q6J("ngIf",e.completePublications.length===e.importedPublications.length)}}const RD=Af,VN={parse:{dateInput:"YYYY"},display:{dateInput:"YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},jN=[{path:"",redirectTo:"all-publications",pathMatch:"full"},{path:"login",component:rF},{path:"service-access",component:sF},{path:"all-publications",component:eO},{path:"my-publications",component:rO},{path:"create-publication",component:aO},{path:"create-publication/import",component:(()=>{class n{constructor(e,t,r,l,d,o){this.cabinetService=e,this.storeService=t,this.notificator=r,this.translate=l,this.router=d,this.dialog=o,this.loading=!1,this.publicationSystems=[],this.pubSystem=new Ei,this.publications=[],this.selected=new Ii(!0,[]),this.tableId="74",this.displayedColumns=["select","id","lock","title","reportedBy","year","category"],this.userAsAuthor=!0,this.importedPublications=[],this.importDone=!1,this.completePublications=[]}ngOnInit(){this.loading=!0,this.firstSearchDone=!1,this.userId=this.storeService.getPerunPrincipal().user.id,this.startYear=new Ei(RD().subtract(1,"year")),this.endYear=new Ei(RD()),this.cabinetService.getPublicationSystems().subscribe(e=>{this.publicationSystems=e.filter(t=>"INTERNAL"!==t.friendlyName),this.pubSystem.setValue(this.publicationSystems[0]),this.pubSystemNamespace=this.pubSystem.value.loginNamespace,this.loading=!1})}selectPubSystem(){this.pubSystemNamespace=this.pubSystem.value.loginNamespace}searchPublications(){this.loading=!0,this.firstSearchDone=!0,this.cabinetService.findExternalPublications(this.storeService.getPerunPrincipal().user.id,this.startYear.value.year(),this.endYear.value.year(),this.pubSystemNamespace).subscribe(e=>{this.publications=e,this.loading=!1},()=>this.loading=!1)}importPublications(e){if(this.loading=!0,0===e.length)return this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SUCCESS")),this.importDone=!0,this.indexExpanded=0,void(this.loading=!1);const t=e.shift();this.cabinetService.createPublication({publication:{id:0,beanName:"Publication",title:t.title,categoryId:t.categoryId,year:t.year,isbn:t.isbn,doi:t.doi,main:t.main}}).subscribe(l=>{this.userAsAuthor?this.cabinetService.createAutorship({authorship:{id:0,beanName:"Authorship",publicationId:l.id,userId:this.userId}}).subscribe(()=>{this.importedPublications.push(l),this.importPublications(e)},()=>this.loading=!1):(this.importedPublications.push(l),this.importPublications(e))},()=>this.loading=!1)}editPublication(e){this.indexExpanded=e===this.indexExpanded?-1:e}completePublication(e,t){this.completePublications.includes(e)||this.completePublications.push(e),this.indexExpanded=t!==this.importedPublications.length-1?t+1:-1}incompletePublication(e){this.completePublications.includes(e)&&(this.completePublications=this.completePublications.filter(t=>t!==e)),this.indexExpanded=-1}completeAllPublications(){const e=Zn();e.width="500px",e.data={theme:"user-theme",message:this.translate.instant("IMPORT_PUBLICATIONS.CHECK_ALL_MESSAGE")},this.dialog.open(xk,e).afterClosed().subscribe(r=>{r&&this.onSubmit()})}onSubmit(){this.notificator.showSuccess(this.translate.instant("IMPORT_PUBLICATIONS.SHOW_FINISH")),this.router.navigate(["/my-publications"])}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(hn),i.Y36(Ln),i.Y36(Li),i.Y36(C),i.Y36(fn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-import-publications-page"]],features:[i._Bn([{provide:Ai,useClass:H_,deps:[vo]},{provide:yr,useValue:VN}])],decls:10,vars:6,consts:[[1,"user-theme"],[1,"page-subtitle","d-flex"],[1,"add-icon","mr-1"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"input-width-300","mr-2"],[3,"formControl","closed"],["class","group-theme",3,"value",4,"ngFor","ngForOf"],[3,"startYear","endYear"],["mat-stroked-button","",1,"left-space",3,"click"],["mat-flat-button","","color","accent",1,"left-space",3,"disabled","click"],[1,"mt-3","left-space",3,"ngModel","ngModelChange"],["alert_type","info",4,"ngIf"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert",4,"ngIf"],[1,"group-theme",3,"value"],["alert_type","info"],[3,"publications","displayedColumns","selection","tableId","disabledRouting","allowAlert"],[1,"ml-auto","mr-auto"],[3,"expanded",4,"ngFor","ngForOf"],[1,"right-button"],["mat-flat-button","","class","width-100","color","accent",3,"click",4,"ngIf"],["class","right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"ngIf"],[3,"expanded"],[3,"click"],["color","accent","class","checked-icon",4,"ngIf"],[3,"publicationId"],[1,"fit-content"],["mat-stroked-button","","class","width-100",3,"click",4,"ngIf"],["color","accent",1,"checked-icon"],["mat-flat-button","","color","accent",1,"width-100",3,"click"],["mat-stroked-button","",1,"width-100",3,"click"],[1,"right-button",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["mat-flat-button","","color","accent",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i.TgZ(2,"span"),i.TgZ(3,"mat-icon",2),i._uU(4,"add_box"),i.qZA(),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.YNc(7,EN,22,20,"div",3),i.YNc(8,DN,1,0,"mat-spinner",4),i.YNc(9,BN,9,6,"div",3),i.qZA()),2&e&&(i.xp6(5),i.hij(" ",i.lcZ(6,4,"IMPORT_PUBLICATIONS.TITLE")," "),i.xp6(2),i.Q6J("ngIf",!t.importDone),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",t.importDone))},directives:[Gi,T.O5,Wn,es,Uc,cr,_a,T.sg,xc,UE,Ft,Zc,Ml,Fs,wf,mn,YR,fE,mE,NR,P_,zc],pipes:[Ct],styles:[".input-width-300[_ngcontent-%COMP%]{width:300px}.left-space[_ngcontent-%COMP%]{margin-left:10px}mat-panel-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:5px}.checked-icon[_ngcontent-%COMP%]{vertical-align:middle;margin-left:5px}.right-button[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:20px;margin-left:auto;margin-right:0}.fit-content[_ngcontent-%COMP%]{width:-moz-fit-content;width:fit-content;margin-top:15px}.width-100[_ngcontent-%COMP%]{width:100%}"]}),n})()},{path:"create-publication/create",component:TN},{path:"authors",component:kO},{path:"authors/:authorId",component:LB},{path:"authors/:authorId/publication/:publicationId",component:P_},{path:"all-publications/:publicationId",component:P_},{path:"my-publications/:publicationId",component:P_},{path:"categories",component:pB},{path:"publication-systems",component:HB}];let FN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Dd.forRoot(jN,{preloadingStrategy:Ci,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})],Dd]}),n})();const NN={provide:w.TP,useExisting:(0,i.Gpc)(()=>ES),multi:!0};function YN(n){return new oR(n,"./assets/i18n/",".json")}function UN(n){const a={basePath:n.get("api_url")};return new Ge(a)}const zN=n=>()=>n.loadConfigs();let qN=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(SS),i.LFG(Li))},n.\u0275mod=i.oAB({type:n,bootstrap:[sR]}),n.\u0275inj=i.cJS({providers:[SS,{provide:i.ip1,useFactory:zN,multi:!0,deps:[dR]},{provide:Ge,useFactory:UN,deps:[hn]},ES,NN,{provide:uR,useClass:$H},$I],imports:[[xa,Dc.forRoot({loader:{provide:Ec,useFactory:YN,deps:[w.eN]}}),Iy,jE,hR,Ju,w.JF,FN,nM,HS,nF,YF,AS,Sc.zr.forRoot(),bD]]}),n})();(0,i.G48)(),Ta().bootstrapModule(qN).catch(n=>console.error(n))},1302:function(z,G,x){var T;!function(i,E){var M={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function M(te,ce,ne,de,me){for(var Ie,Be,Ze,It,kt,Ke,Xi,xt,mt,fe,_e,we,ye;me>=64;){for(Ie=ce[0],Be=ce[1],Ze=ce[2],It=ce[3],kt=ce[4],Ke=ce[5],Xi=ce[6],xt=ce[7],fe=0;fe<16;fe++)te[fe]=(255&ne[_e=de+4*fe])<<24|(255&ne[_e+1])<<16|(255&ne[_e+2])<<8|255&ne[_e+3];for(fe=16;fe<64;fe++)te[fe]=((we=((mt=te[fe-2])>>>17|mt<<15)^(mt>>>19|mt<<13)^mt>>>10)+te[fe-7]|0)+((ye=((mt=te[fe-15])>>>7|mt<<25)^(mt>>>18|mt<<14)^mt>>>3)+te[fe-16]|0);for(fe=0;fe<64;fe++)we=(((kt>>>6|kt<<26)^(kt>>>11|kt<<21)^(kt>>>25|kt<<7))+(kt&Ke^~kt&Xi)|0)+(xt+(E[fe]+te[fe]|0)|0)|0,ye=((Ie>>>2|Ie<<30)^(Ie>>>13|Ie<<19)^(Ie>>>22|Ie<<10))+(Ie&Be^Ie&Ze^Be&Ze)|0,xt=Xi,Xi=Ke,Ke=kt,kt=It+we|0,It=Ze,Ze=Be,Be=Ie,Ie=we+ye|0;ce[0]+=Ie,ce[1]+=Be,ce[2]+=Ze,ce[3]+=It,ce[4]+=kt,ce[5]+=Ke,ce[6]+=Xi,ce[7]+=xt,de+=64,me-=64}return de}var S=function(){function te(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return te.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},te.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(M(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=M(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},te.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ie=ne<<3,Be=ne%64<56?64:128;this.buffer[de]=128;for(var Ze=de+1;Ze>>24&255,this.buffer[Be-7]=me>>>16&255,this.buffer[Be-6]=me>>>8&255,this.buffer[Be-5]=me>>>0&255,this.buffer[Be-4]=Ie>>>24&255,this.buffer[Be-3]=Ie>>>16&255,this.buffer[Be-2]=Ie>>>8&255,this.buffer[Be-1]=Ie>>>0&255,M(this.temp,this.state,this.buffer,0,Be),this.finished=!0}for(Ze=0;Ze<8;Ze++)ce[4*Ze+0]=this.state[Ze]>>>24&255,ce[4*Ze+1]=this.state[Ze]>>>16&255,ce[4*Ze+2]=this.state[Ze]>>>8&255,ce[4*Ze+3]=this.state[Ze]>>>0&255;return this},te.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},te.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(te),ne&&ce.update(ne),ce.update(de),ce.finish(te),de[0]++}i.HMAC=P,i.hash=L,i.default=L,i.hmac=V;var Y=new Uint8Array(i.digestLength);i.hkdf=function $(te,ce,ne,de){void 0===ce&&(ce=Y),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ie=V(ce,te),Be=new P(Ie),Ze=new Uint8Array(Be.digestLength),It=Ze.length,kt=new Uint8Array(de),Ke=0;Ke>>24&255,Be[1]=Xi>>>16&255,Be[2]=Xi>>>8&255,Be[3]=Xi>>>0&255,me.reset(),me.update(ce),me.update(Be),me.finish(It);for(var xt=0;xt=$.status}function P(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent($)}}var L="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,V=L.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),U=L.saveAs||("object"!=typeof window||window!==L?function(){}:"download"in HTMLAnchorElement.prototype&&!V?function(Y,$,X){var te=L.URL||L.webkitURL,ce=document.createElement("a");ce.download=$=$||Y.name||"download",ce.rel="noopener","string"==typeof Y?(ce.href=Y,ce.origin===location.origin?P(ce):S(ce.href)?M(Y,$,X):P(ce,ce.target="_blank")):(ce.href=te.createObjectURL(Y),setTimeout(function(){te.revokeObjectURL(ce.href)},4e4),setTimeout(function(){P(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,$,X){if($=$||Y.name||"download","string"!=typeof Y)navigator.msSaveOrOpenBlob(function E(Y,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\ufeff",Y],{type:Y.type}):Y}(Y,X),$);else if(S(Y))M(Y,$,X);else{var te=document.createElement("a");te.href=Y,te.target="_blank",setTimeout(function(){P(te)})}}:function(Y,$,X,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),"string"==typeof Y)return M(Y,$,X);var ce="application/octet-stream"===Y.type,ne=/constructor/i.test(L.HTMLElement)||L.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||V)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Ze=me.result;Ze=de?Ze:Ze.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Ze:location=Ze,te=null},me.readAsDataURL(Y)}else{var Ie=L.URL||L.webkitURL,Be=Ie.createObjectURL(Y);te?te.location=Be:location.href=Be,te=null,setTimeout(function(){Ie.revokeObjectURL(Be)},4e4)}});L.saveAs=U.saveAs=U,z.exports=U}.apply(G,[]))&&(z.exports=i)},7088:function(z,G,x){!function(T){"use strict";T.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(z,G,x){!function(T){"use strict";var i=function(L){return 0===L?0:1===L?1:2===L?2:L%100>=3&&L%100<=10?3:L%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},M=function(L){return function(V,U,Y,$){var X=i(V),te=E[L][i(V)];return 2===X&&(te=te[U?0:1]),te.replace(/%d/i,V)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(L){return"\u0645"===L},meridiem:function(L,V,U){return L<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:M("s"),ss:M("s"),m:M("m"),mm:M("m"),h:M("h"),hh:M("h"),d:M("d"),dd:M("d"),M:M("M"),MM:M("M"),y:M("y"),yy:M("y")},postformat:function(L){return L.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(z,G,x){!function(T){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(V){return 0===V?0:1===V?1:2===V?2:V%100>=3&&V%100<=10?3:V%100>=11?4:5},M={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(V){return function(U,Y,$,X){var te=E(U),ce=M[V][E(U)];return 2===te&&(ce=ce[Y?0:1]),ce.replace(/%d/i,U)}},P=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar-ly",{months:P,monthsShort:P,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(V){return"\u0645"===V},meridiem:function(V,U,Y){return V<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(V){return V.replace(/\u060c/g,",")},postformat:function(V){return V.replace(/\d/g,function(U){return i[U]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};T.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(z,G,x){!function(T){"use strict";T.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=function(U){return 0===U?0:1===U?1:2===U?2:U%100>=3&&U%100<=10?3:U%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},P=function(U){return function(Y,$,X,te){var ce=M(Y),ne=S[U][M(Y)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,Y)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];T.defineLocale("ar",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,Y,$){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:P("s"),ss:P("s"),m:P("m"),mm:P("m"),h:P("h"),hh:P("h"),d:P("d"),dd:P("d"),M:P("M"),MM:P("M"),y:P("y"),yy:P("y")},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(Y){return E[Y]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(Y){return i[Y]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(z,G,x){!function(T){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};T.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(M){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(M)},meridiem:function(M,S,P){return M<4?"gec\u0259":M<12?"s\u0259h\u0259r":M<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(M){if(0===M)return M+"-\u0131nc\u0131";var S=M%10;return M+(i[S]||i[M%100-S]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(z,G,x){!function(T){"use strict";function E(S,P,L){return"m"===L?P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===L?P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,P){var L=S.split("_");return P%10==1&&P%100!=11?L[0]:P%10>=2&&P%10<=4&&(P%100<10||P%100>=20)?L[1]:L[2]}({ss:P?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:P?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:P?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[L],+S)}T.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,P,L){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,P){switch(P){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(z,G,x){!function(T){"use strict";T.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(z,G,x){!function(T){"use strict";T.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P?S<4?S:S+12:"\u09ad\u09cb\u09b0"===P||"\u09b8\u0995\u09be\u09b2"===P?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===P?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===P||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(z,G,x){!function(T){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};T.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===P&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===P&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(z,G,x){!function(T){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};T.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===P&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===P&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===P?S+12:S},meridiem:function(S,P,L){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(z,G,x){!function(T){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function P(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function M(ne){return ne>9?M(ne%10):ne}var L=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],V=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];T.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:V,monthsShortRegex:V,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:L,longMonthsParse:L,shortMonthsParse:L,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(M(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}T.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(z,G,x){!function(T){"use strict";T.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(z,G,x){!function(T){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),M=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function P(U){return U>1&&U<5&&1!=~~(U/10)}function L(U,Y,$,X){var te=U+" ";switch($){case"s":return Y||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return Y||X?te+(P(U)?"sekundy":"sekund"):te+"sekundami";case"m":return Y?"minuta":X?"minutu":"minutou";case"mm":return Y||X?te+(P(U)?"minuty":"minut"):te+"minutami";case"h":return Y?"hodina":X?"hodinu":"hodinou";case"hh":return Y||X?te+(P(U)?"hodiny":"hodin"):te+"hodinami";case"d":return Y||X?"den":"dnem";case"dd":return Y||X?te+(P(U)?"dny":"dn\xed"):te+"dny";case"M":return Y||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return Y||X?te+(P(U)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return Y||X?"rok":"rokem";case"yy":return Y||X?te+(P(U)?"roky":"let"):te+"lety"}}T.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:L,ss:L,m:L,mm:L,h:L,hh:L,d:L,dd:L,M:L,MM:L,y:L,yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(z,G,x){!function(T){"use strict";T.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(z,G,x){!function(T){"use strict";T.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(z,G,x){!function(T){"use strict";T.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[M+" Tage",M+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[M+" Monate",M+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[M+" Jahre",M+" Jahren"]};return S?V[P][0]:V[P][1]}T.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(z,G,x){!function(T){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];T.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,P,L){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(z,G,x){!function(T){"use strict";T.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(M,S){return M?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[M.month()]:this._monthsNominativeEl[M.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(M,S,P){return M>11?P?"\u03bc\u03bc":"\u039c\u039c":P?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(M){return"\u03bc"===(M+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(M,S){var P=this._calendarEl[M],L=S&&S.hours();return function i(M){return"undefined"!=typeof Function&&M instanceof Function||"[object Function]"===Object.prototype.toString.call(M)}(P)&&(P=P.apply(S)),P.replace("{}",L%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(z,G,x){!function(T){"use strict";T.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(z,G,x){!function(T){"use strict";T.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9998:function(z,G,x){!function(T){"use strict";T.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(z,G,x){!function(T){"use strict";T.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(z,G,x){!function(T){"use strict";T.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")}})}(x(5439))},9615:function(z,G,x){!function(T){"use strict";T.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(z,G,x){!function(T){"use strict";T.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(z,G,x){!function(T){"use strict";T.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(z,G,x){!function(T){"use strict";T.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,M,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(z,G,x){!function(T){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),M=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;T.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[M+"sekundi",M+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[M+" minuti",M+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[M+" tunni",M+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[M+" kuu",M+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[M+" aasta",M+" aastat"]};return S?V[P][2]?V[P][2]:V[P][1]:L?V[P][0]:V[P][1]}T.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(z,G,x){!function(T){"use strict";T.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(z,G,x){!function(T){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};T.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,P,L){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(P){return E[P]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(z,G,x){!function(T){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function M(L,V,U,Y){var $="";switch(U){case"s":return Y?"muutaman sekunnin":"muutama sekunti";case"ss":$=Y?"sekunnin":"sekuntia";break;case"m":return Y?"minuutin":"minuutti";case"mm":$=Y?"minuutin":"minuuttia";break;case"h":return Y?"tunnin":"tunti";case"hh":$=Y?"tunnin":"tuntia";break;case"d":return Y?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=Y?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return Y?"kuukauden":"kuukausi";case"MM":$=Y?"kuukauden":"kuukautta";break;case"y":return Y?"vuoden":"vuosi";case"yy":$=Y?"vuoden":"vuotta"}return function S(L,V){return L<10?V?E[L]:i[L]:L}(L,Y)+" "+$}T.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(z,G,x){!function(T){"use strict";T.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(z,G,x){!function(T){"use strict";T.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(z,G,x){!function(T){"use strict";T.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(z,G,x){!function(T){"use strict";T.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,M){switch(M){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(z,G,x){!function(T){"use strict";var M=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];T.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:M,monthsShortRegex:M,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(L,V){switch(V){case"D":return L+(1===L?"er":"");default:case"M":case"Q":case"DDD":case"d":return L+(1===L?"er":"e");case"w":case"W":return L+(1===L?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");T.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,P){return S?/-MMM-/.test(P)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(z,G,x){!function(T){"use strict";T.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(z,G,x){!function(T){"use strict";T.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(V){return V+(1===V?"d":V%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(z,G,x){!function(T){"use strict";T.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[M+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",M+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[M+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",M+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[M+" \u0935\u0930\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[M+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",M+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[M+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",M+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[M+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",M+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return L?V[P][0]:V[P][1]}T.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(M,S){return"D"===S?M+"\u0935\u0947\u0930":M},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0930\u093e\u0924\u0940"===S?M<4?M:M+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?M:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?M>12?M:M+12:"\u0938\u093e\u0902\u091c\u0947"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0930\u093e\u0924\u0940":M<12?"\u0938\u0915\u093e\u0933\u0940\u0902":M<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":M<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V={s:["thoddea sekondamni","thodde sekond"],ss:[M+" sekondamni",M+" sekond"],m:["eka mintan","ek minut"],mm:[M+" mintamni",M+" mintam"],h:["eka voran","ek vor"],hh:[M+" voramni",M+" voram"],d:["eka disan","ek dis"],dd:[M+" disamni",M+" dis"],M:["eka mhoinean","ek mhoino"],MM:[M+" mhoineamni",M+" mhoine"],y:["eka vorsan","ek voros"],yy:[M+" vorsamni",M+" vorsam"]};return L?V[P][0]:V[P][1]}T.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(M,S){return"D"===S?M+"er":M},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(M,S){return 12===M&&(M=0),"rati"===S?M<4?M:M+12:"sokallim"===S?M:"donparam"===S?M>12?M:M+12:"sanje"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"rati":M<12?"sokallim":M<16?"donparam":M<20?"sanje":"rati"}})}(x(5439))},2641:function(z,G,x){!function(T){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};T.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===P?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===P?S:"\u0aac\u0aaa\u0acb\u0ab0"===P?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(z,G,x){!function(T){"use strict";T.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,M,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},M=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];T.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:M,longMonthsParse:M,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(V){return E[V]})},postformat:function(L){return L.replace(/\d/g,function(V){return i[V]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(L,V){return 12===L&&(L=0),"\u0930\u093e\u0924"===V?L<4?L:L+12:"\u0938\u0941\u092c\u0939"===V?L:"\u0926\u094b\u092a\u0939\u0930"===V?L>=10?L:L+12:"\u0936\u093e\u092e"===V?L+12:void 0},meridiem:function(L,V,U){return L<4?"\u0930\u093e\u0924":L<10?"\u0938\u0941\u092c\u0939":L<17?"\u0926\u094b\u092a\u0939\u0930":L<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(z,G,x){!function(T){"use strict";function i(M,S,P){var L=M+" ";switch(P){case"ss":return L+(1===M?"sekunda":2===M||3===M||4===M?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return L+(1===M?"minuta":2===M||3===M||4===M?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return L+(1===M?"sat":2===M||3===M||4===M?"sata":"sati");case"dd":return L+(1===M?"dan":"dana");case"MM":return L+(1===M?"mjesec":2===M||3===M||4===M?"mjeseca":"mjeseci");case"yy":return L+(1===M?"godina":2===M||3===M||4===M?"godine":"godina")}}T.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(z,G,x){!function(T){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(P,L,V,U){var Y=P;switch(V){case"s":return U||L?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return Y+(U||L)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(U||L?" perc":" perce");case"mm":return Y+(U||L?" perc":" perce");case"h":return"egy"+(U||L?" \xf3ra":" \xf3r\xe1ja");case"hh":return Y+(U||L?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(U||L?" nap":" napja");case"dd":return Y+(U||L?" nap":" napja");case"M":return"egy"+(U||L?" h\xf3nap":" h\xf3napja");case"MM":return Y+(U||L?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(U||L?" \xe9v":" \xe9ve");case"yy":return Y+(U||L?" \xe9v":" \xe9ve")}return""}function M(P){return(P?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}T.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(P){return"u"===P.charAt(1).toLowerCase()},meridiem:function(P,L,V){return P<12?!0===V?"de":"DE":!0===V?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return M.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return M.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(z,G,x){!function(T){"use strict";T.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,M){switch(M){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(z,G,x){!function(T){"use strict";T.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"siang"===M?E>=11?E:E+12:"sore"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(z,G,x){!function(T){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,P,L,V){var U=S+" ";switch(L){case"s":return P||V?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?U+(P||V?"sek\xfandur":"sek\xfandum"):U+"sek\xfanda";case"m":return P?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?U+(P||V?"m\xedn\xfatur":"m\xedn\xfatum"):P?U+"m\xedn\xfata":U+"m\xedn\xfatu";case"hh":return i(S)?U+(P||V?"klukkustundir":"klukkustundum"):U+"klukkustund";case"d":return P?"dagur":V?"dag":"degi";case"dd":return i(S)?P?U+"dagar":U+(V?"daga":"d\xf6gum"):P?U+"dagur":U+(V?"dag":"degi");case"M":return P?"m\xe1nu\xf0ur":V?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?P?U+"m\xe1nu\xf0ir":U+(V?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):P?U+"m\xe1nu\xf0ur":U+(V?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return P||V?"\xe1r":"\xe1ri";case"yy":return i(S)?U+(P||V?"\xe1r":"\xe1rum"):U+(P||V?"\xe1r":"\xe1ri")}}T.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(z,G,x){!function(T){"use strict";T.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(z,G,x){!function(T){"use strict";T.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(z,G,x){!function(T){"use strict";T.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,M){return"\u5143"===M[1]?1:parseInt(M[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,M,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,M){switch(M){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(z,G,x){!function(T){"use strict";T.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,M){return 12===E&&(E=0),"enjing"===M?E:"siyang"===M?E>=11?E:E+12:"sonten"===M||"ndalu"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(z,G,x){!function(T){"use strict";T.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(M,S,P){return"\u10d8"===P?S+"\u10e8\u10d8":S+P+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(z,G,x){!function(T){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};T.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(z,G,x){!function(T){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};T.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,P,L){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(z,G,x){!function(T){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};T.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===P?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===P?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===P?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(z,G,x){!function(T){"use strict";T.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,M,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(z,G,x){!function(T){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},M=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];T.defineLocale("ku",{months:M,monthsShort:M,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(P){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(P)},meridiem:function(P,L,V){return P<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(P){return P.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(z,G,x){!function(T){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};T.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(z,G,x){!function(T){"use strict";function i(L,V,U,Y){var $={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return V?$[U][0]:$[U][1]}function S(L){if(L=parseInt(L,10),isNaN(L))return!1;if(L<0)return!0;if(L<10)return 4<=L&&L<=7;if(L<100){var V=L%10;return S(0===V?L/10:V)}if(L<1e4){for(;L>=10;)L/=10;return S(L)}return S(L/=1e3)}T.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(L){return S(L.substr(0,L.indexOf(" ")))?"a "+L:"an "+L},past:function M(L){return S(L.substr(0,L.indexOf(" ")))?"viru "+L:"virun "+L},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(z,G,x){!function(T){"use strict";T.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,M,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(z,G,x){!function(T){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function M(U,Y,$,X){return Y?P($)[0]:X?P($)[1]:P($)[2]}function S(U){return U%10==0||U>10&&U<20}function P(U){return i[U].split("_")}function L(U,Y,$,X){var te=U+" ";return 1===U?te+M(0,Y,$[0],X):Y?te+(S(U)?P($)[1]:P($)[0]):X?te+P($)[1]:te+(S(U)?P($)[1]:P($)[2])}T.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(U,Y,$,X){return Y?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:L,m:M,mm:L,h:M,hh:L,d:M,dd:L,M,MM:L,y:M,yy:L},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(U){return U+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(z,G,x){!function(T){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(V,U,Y){return Y?U%10==1&&U%100!=11?V[2]:V[3]:U%10==1&&U%100!=11?V[0]:V[1]}function M(V,U,Y){return V+" "+E(i[Y],V,U)}function S(V,U,Y){return E(i[Y],V,U)}T.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function P(V,U){return U?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:M,m:S,mm:M,h:S,hh:M,d:S,dd:M,M:S,MM:M,y:S,yy:M},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(z,G,x){!function(T){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(M,S){return 1===M?S[0]:M>=2&&M<=4?S[1]:S[2]},translate:function(M,S,P){var L=i.words[P];return 1===P.length?S?L[0]:L[1]:M+" "+i.correctGrammaticalCase(M,L)}};T.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(z,G,x){!function(T){"use strict";T.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(z,G,x){!function(T){"use strict";T.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var M=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===M?E+"-\u0432\u0438":2===M?E+"-\u0440\u0438":7===M||8===M?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(z,G,x){!function(T){"use strict";T.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===M&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===M||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===M?E+12:E},meridiem:function(E,M,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){switch(P){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return M+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return M+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return M+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return M+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return M+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return M+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return M}}T.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(M){return"\u04ae\u0425"===M},meridiem:function(M,S,P){return M<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(M,S){switch(S){case"d":case"D":case"DDD":return M+" \u04e9\u0434\u04e9\u0440";default:return M}}})}(x(5439))},6184:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function M(P,L,V,U){var Y="";if(L)switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":Y="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":Y="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":Y="%d \u0924\u093e\u0938";break;case"d":Y="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":Y="%d \u0926\u093f\u0935\u0938";break;case"M":Y="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":Y="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u0947"}else switch(V){case"s":Y="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":Y="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":Y="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":Y="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":Y="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":Y="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":Y="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":Y="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":Y="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":Y="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":Y="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":Y="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return Y.replace(/%d/i,P)}T.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:M,ss:M,m:M,mm:M,h:M,hh:M,d:M,dd:M,M,MM:M,y:M,yy:M},preparse:function(P){return P.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(P){return P.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(P,L){return 12===P&&(P=0),"\u092a\u0939\u093e\u091f\u0947"===L||"\u0938\u0915\u093e\u0933\u0940"===L?P:"\u0926\u0941\u092a\u093e\u0930\u0940"===L||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===L||"\u0930\u093e\u0924\u094d\u0930\u0940"===L?P>=12?P:P+12:void 0},meridiem:function(P,L,V){return P>=0&&P<6?"\u092a\u0939\u093e\u091f\u0947":P<12?"\u0938\u0915\u093e\u0933\u0940":P<17?"\u0926\u0941\u092a\u093e\u0930\u0940":P<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(z,G,x){!function(T){"use strict";T.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(z,G,x){!function(T){"use strict";T.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,M){return 12===E&&(E=0),"pagi"===M?E:"tengahari"===M?E>=11?E:E+12:"petang"===M||"malam"===M?E+12:void 0},meridiem:function(E,M,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(z,G,x){!function(T){"use strict";T.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(z,G,x){!function(T){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};T.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(z,G,x){!function(T){"use strict";T.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(z,G,x){!function(T){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};T.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===P?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===P?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===P?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===P?S+12:void 0},meridiem:function(S,P,L){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(z,G,x){!function(T){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),M=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;T.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(L,V){return L?/-MMM-/.test(V)?E[L.month()]:i[L.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(L){return L+(1===L||8===L||L>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(z,G,x){!function(T){"use strict";T.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(z,G,x){!function(T){"use strict";T.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,M){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===M||"W"===M)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(z,G,x){!function(T){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};T.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,P){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===P?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===P?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===P?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===P?S+12:void 0},meridiem:function(S,P,L){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(z,G,x){!function(T){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),M=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(V){return V%10<5&&V%10>1&&~~(V/10)%10!=1}function P(V,U,Y){var $=V+" ";switch(Y){case"ss":return $+(S(V)?"sekundy":"sekund");case"m":return U?"minuta":"minut\u0119";case"mm":return $+(S(V)?"minuty":"minut");case"h":return U?"godzina":"godzin\u0119";case"hh":return $+(S(V)?"godziny":"godzin");case"ww":return $+(S(V)?"tygodnie":"tygodni");case"MM":return $+(S(V)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(V)?"lata":"lat")}}T.defineLocale("pl",{months:function(V,U){return V?/D MMMM/.test(U)?E[V.month()]:i[V.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:P,m:P,mm:P,h:P,hh:P,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:P,M:"miesi\u0105c",MM:P,y:"rok",yy:P},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(z,G,x){!function(T){"use strict";T.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(z,G,x){!function(T){"use strict";T.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(z,G,x){!function(T){"use strict";function i(M,S,P){var V=" ";return(M%100>=20||M>=100&&M%100==0)&&(V=" de "),M+V+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[P]}T.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(z,G,x){!function(T){"use strict";function E(P,L,V){return"m"===V?L?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":P+" "+function i(P,L){var V=P.split("_");return L%10==1&&L%100!=11?V[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?V[1]:V[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[V],+P)}var M=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];T.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:M,longMonthsParse:M,shortMonthsParse:M,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(P){if(P.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(P){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(P)},meridiem:function(P,L,V){return P<4?"\u043d\u043e\u0447\u0438":P<12?"\u0443\u0442\u0440\u0430":P<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(P,L){switch(L){case"M":case"d":case"DDD":return P+"-\u0439";case"D":return P+"-\u0433\u043e";case"w":case"W":return P+"-\u044f";default:return P}},week:{dow:1,doy:4}})}(x(5439))},2525:function(z,G,x){!function(T){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];T.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(z,G,x){!function(T){"use strict";T.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(z,G,x){!function(T){"use strict";T.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,M,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(z,G,x){!function(T){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function M(L){return L>1&&L<5}function S(L,V,U,Y){var $=L+" ";switch(U){case"s":return V||Y?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return V||Y?$+(M(L)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return V?"min\xfata":Y?"min\xfatu":"min\xfatou";case"mm":return V||Y?$+(M(L)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return V?"hodina":Y?"hodinu":"hodinou";case"hh":return V||Y?$+(M(L)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return V||Y?"de\u0148":"d\u0148om";case"dd":return V||Y?$+(M(L)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return V||Y?"mesiac":"mesiacom";case"MM":return V||Y?$+(M(L)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return V||Y?"rok":"rokom";case"yy":return V||Y?$+(M(L)?"roky":"rokov"):$+"rokmi"}}T.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(z,G,x){!function(T){"use strict";function i(M,S,P,L){var V=M+" ";switch(P){case"s":return S||L?"nekaj sekund":"nekaj sekundami";case"ss":return V+(1===M?S?"sekundo":"sekundi":2===M?S||L?"sekundi":"sekundah":M<5?S||L?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return V+(1===M?S?"minuta":"minuto":2===M?S||L?"minuti":"minutama":M<5?S||L?"minute":"minutami":S||L?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return V+(1===M?S?"ura":"uro":2===M?S||L?"uri":"urama":M<5?S||L?"ure":"urami":S||L?"ur":"urami");case"d":return S||L?"en dan":"enim dnem";case"dd":return V+(1===M?S||L?"dan":"dnem":2===M?S||L?"dni":"dnevoma":S||L?"dni":"dnevi");case"M":return S||L?"en mesec":"enim mesecem";case"MM":return V+(1===M?S||L?"mesec":"mesecem":2===M?S||L?"meseca":"mesecema":M<5?S||L?"mesece":"meseci":S||L?"mesecev":"meseci");case"y":return S||L?"eno leto":"enim letom";case"yy":return V+(1===M?S||L?"leto":"letom":2===M?S||L?"leti":"letoma":M<5?S||L?"leta":"leti":S||L?"let":"leti")}}T.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(z,G,x){!function(T){"use strict";T.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,M,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(z,G,x){!function(T){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===U?M+" \u0433\u043e\u0434\u0438\u043d\u0430":M+" "+U}};T.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(z,G,x){!function(T){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(M,S){return M%10>=1&&M%10<=4&&(M%100<10||M%100>=20)?M%10==1?S[0]:S[1]:S[2]},translate:function(M,S,P,L){var V=i.words[P];if(1===P.length)return"y"===P&&S?"jedna godina":L||S?V[0]:V[1];const U=i.correctGrammaticalCase(M,V);return"yy"===P&&S&&"godinu"===U?M+" godina":M+" "+U}};T.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(z,G,x){!function(T){"use strict";T.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,M,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,M){return 12===E&&(E=0),"ekuseni"===M?E:"emini"===M?E>=11?E:E+12:"entsambama"===M||"ebusuku"===M?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(z,G,x){!function(T){"use strict";T.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?":e":1===M||2===M?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(z,G,x){!function(T){"use strict";T.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(z,G,x){!function(T){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};T.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(P){return E[P]})},postformat:function(S){return S.replace(/\d/g,function(P){return i[P]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,P,L){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,P){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===P?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===P||"\u0b95\u0bbe\u0bb2\u0bc8"===P||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===P&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(z,G,x){!function(T){"use strict";T.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===M?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===M?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===M?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===M?E+12:void 0},meridiem:function(E,M,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(z,G,x){!function(T){"use strict";T.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(z,G,x){!function(T){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};T.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(M,S){return 12===M&&(M=0),"\u0448\u0430\u0431"===S?M<4?M:M+12:"\u0441\u0443\u0431\u04b3"===S?M:"\u0440\u04ef\u0437"===S?M>=11?M:M+12:"\u0431\u0435\u0433\u043e\u04b3"===S?M+12:void 0},meridiem:function(M,S,P){return M<4?"\u0448\u0430\u0431":M<11?"\u0441\u0443\u0431\u04b3":M<16?"\u0440\u04ef\u0437":M<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(M){return M+(i[M]||i[M%10]||i[M>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(z,G,x){!function(T){"use strict";T.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,M,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(z,G,x){!function(T){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};T.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'unjy";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(z,G,x){!function(T){"use strict";T.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(z,G,x){!function(T){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(V,U,Y,$){var X=function P(V){var U=Math.floor(V%1e3/100),Y=Math.floor(V%100/10),$=V%10,X="";return U>0&&(X+=i[U]+"vatlh"),Y>0&&(X+=(""!==X?" ":"")+i[Y]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(V);switch(Y){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}T.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"leS":-1!==V.indexOf("jar")?U.slice(0,-3)+"waQ":-1!==V.indexOf("DIS")?U.slice(0,-3)+"nem":U+" pIq"},past:function M(V){var U=V;return-1!==V.indexOf("jaj")?U.slice(0,-3)+"Hu\u2019":-1!==V.indexOf("jar")?U.slice(0,-3)+"wen":-1!==V.indexOf("DIS")?U.slice(0,-3)+"ben":U+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(z,G,x){!function(T){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};T.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(M,S,P){return M<12?P?"\xf6\xf6":"\xd6\xd6":P?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(M){return"\xf6s"===M||"\xd6S"===M},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(M,S){switch(S){case"d":case"D":case"Do":case"DD":return M;default:if(0===M)return M+"'\u0131nc\u0131";var P=M%10;return M+(i[P]||i[M%100-P]||i[M>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(z,G,x){!function(T){"use strict";function E(M,S,P,L){var V={s:["viensas secunds","'iensas secunds"],ss:[M+" secunds",M+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[M+" m\xeduts",M+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[M+" \xfeoras",M+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[M+" ziuas",M+" ziuas"],M:["'n mes","'iens mes"],MM:[M+" mesen",M+" mesen"],y:["'n ar","'iens ar"],yy:[M+" ars",M+" ars"]};return L||S?V[P][0]:V[P][1]}T.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(M){return"d'o"===M.toLowerCase()},meridiem:function(M,S,P){return M>11?P?"d'o":"D'O":P?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(z,G,x){!function(T){"use strict";T.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(z,G,x){!function(T){"use strict";T.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(z,G,x){!function(T){"use strict";T.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===M||"\u0633\u06d5\u06be\u06d5\u0631"===M||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===M?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===M||"\u0643\u06d5\u0686"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":P<900?"\u0633\u06d5\u06be\u06d5\u0631":P<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":P<1230?"\u0686\u06c8\u0634":P<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(z,G,x){!function(T){"use strict";function E(L,V,U){return"m"===U?V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===U?V?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":L+" "+function i(L,V){var U=L.split("_");return V%10==1&&V%100!=11?U[0]:V%10>=2&&V%10<=4&&(V%100<10||V%100>=20)?U[1]:U[2]}({ss:V?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:V?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:V?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[U],+L)}function S(L){return function(){return L+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}T.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function M(L,V){var U={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===L?U.nominative.slice(1,7).concat(U.nominative.slice(0,1)):L?U[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(V)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(V)?"genitive":"nominative"][L.day()]:U.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(L)},meridiem:function(L,V,U){return L<4?"\u043d\u043e\u0447\u0456":L<12?"\u0440\u0430\u043d\u043a\u0443":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(L,V){switch(V){case"M":case"d":case"DDD":case"w":case"W":return L+"-\u0439";case"D":return L+"-\u0433\u043e";default:return L}},week:{dow:1,doy:7}})}(x(5439))},6077:function(z,G,x){!function(T){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];T.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,P,L){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(z,G,x){!function(T){"use strict";T.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(z,G,x){!function(T){"use strict";T.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(z,G,x){!function(T){"use strict";T.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,M,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(z,G,x){!function(T){"use strict";T.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var M=E%10;return E+(1==~~(E%100/10)?"th":1===M?"st":2===M?"nd":3===M?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(z,G,x){!function(T){"use strict";T.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:E>=11?E:E+12},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1200?"\u4e0a\u5348":1200===P?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(z,G,x){!function(T){"use strict";T.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,M){return 12===E&&(E=0),"\u51cc\u6668"===M||"\u65e9\u4e0a"===M||"\u4e0a\u5348"===M?E:"\u4e2d\u5348"===M?E>=11?E:E+12:"\u4e0b\u5348"===M||"\u665a\u4e0a"===M?E+12:void 0},meridiem:function(E,M,S){var P=100*E+M;return P<600?"\u51cc\u6668":P<900?"\u65e9\u4e0a":P<1130?"\u4e0a\u5348":P<1230?"\u4e2d\u5348":P<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,M){switch(M){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(z,G,x){(z=x.nmd(z)).exports=function(){"use strict";var T,de;function i(){return T.apply(null,arguments)}function M(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function P(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function L(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(P(C,H))return!1;return!0}function V(C){return void 0===C}function U(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function Y(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var F,I=[],J=C.length;for(F=0;F>>0;for(F=0;F0)for(I=0;I=0?I?"+":"":"-")+Math.pow(10,Math.max(0,H-F.length)).toString().substr(1)+F}var tt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ht=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,On={},pi={};function $e(C,H,I,F){var J=F;"string"==typeof F&&(J=function(){return this[F]()}),C&&(pi[C]=J),H&&(pi[H[0]]=function(){return yi(J.apply(this,arguments),H[1],H[2])}),I&&(pi[I]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function ri(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function Cn(C,H){return C.isValid()?(H=Ni(H,C.localeData()),On[H]=On[H]||function va(C){var I,F,H=C.match(tt);for(I=0,F=H.length;I=0&&ht.test(C);)C=C.replace(ht,F),ht.lastIndex=0,I-=1;return C}var Bi={};function Zt(C,H){var I=C.toLowerCase();Bi[I]=Bi[I+"s"]=Bi[H]=C}function ln(C){return"string"==typeof C?Bi[C]||Bi[C.toLowerCase()]:void 0}function Te(C){var I,F,H={};for(F in C)P(C,F)&&(I=ln(F))&&(H[I]=C[F]);return H}var le={};function oe(C,H){le[C]=H}function Se(C){return C%4==0&&C%100!=0||C%400==0}function Ve(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Ae(C){var H=+C,I=0;return 0!==H&&isFinite(H)&&(I=Ve(H)),I}function ze(C,H){return function(I){return null!=I?(Di(this,C,I),i.updateOffset(this,H),this):St(this,C)}}function St(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Di(C,H,I){C.isValid()&&!isNaN(I)&&("FullYear"===H&&Se(C.year())&&1===C.month()&&29===C.date()?(I=Ae(I),C._d["set"+(C._isUTC?"UTC":"")+H](I,C.month(),wi(I,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](I))}var w,Hi=/\d/,nt=/\d\d/,qe=/\d{3}/,An=/\d{4}/,Vt=/[+-]?\d{6}/,_t=/\d\d?/,$n=/\d\d\d\d?/,Bn=/\d\d\d\d\d\d?/,vn=/\d{1,3}/,Nl=/\d{1,4}/,Ma=/[+-]?\d{1,6}/,Xr=/\d+/,ea=/[+-]?\d+/,Vn=/Z|[+-]\d\d:?\d\d/gi,rs=/Z|[+-]\d\d(?::?\d\d)?/gi,zs=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(C,H,I){w[C]=_e(H)?H:function(F,J){return F&&I?I:H}}function oi(C,H){return P(w,C)?w[C](H._strict,H._locale):new RegExp(function Zi(C){return Ge(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,I,F,J,ae){return I||F||J||ae}))}(C))}function Ge(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}w={};var Jn={};function gt(C,H){var I,J,F=H;for("string"==typeof C&&(C=[C]),U(H)&&(F=function(ae,be){be[H]=Ae(ae)}),J=C.length,I=0;I68?1900:2e3)};var _n=ze("FullYear",!0);function Ro(C,H,I,F,J,ae,be){var et;return C<100&&C>=0?(et=new Date(C+400,H,I,F,J,ae,be),isFinite(et.getFullYear())&&et.setFullYear(C)):et=new Date(C,H,I,F,J,ae,be),et}function Ha(C){var H,I;return C<100&&C>=0?((I=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,I)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function ia(C,H,I){var F=7+H-I;return-(7+Ha(C,0,F).getUTCDay()-H)%7+F-1}function Nn(C,H,I,F,J){var vt,Qt,et=1+7*(H-1)+(7+I-F)%7+ia(C,F,J);return et<=0?Qt=Da(vt=C-1)+et:et>Da(C)?(vt=C+1,Qt=et-Da(C)):(vt=C,Qt=et),{year:vt,dayOfYear:Qt}}function os(C,H,I){var ae,be,F=ia(C.year(),H,I),J=Math.floor((C.dayOfYear()-F-1)/7)+1;return J<1?ae=J+Sr(be=C.year()-1,H,I):J>Sr(C.year(),H,I)?(ae=J-Sr(C.year(),H,I),be=C.year()+1):(be=C.year(),ae=J),{week:ae,year:be}}function Sr(C,H,I){var F=ia(C,H,I),J=ia(C+1,H,I);return(Da(C)-F+J)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Zt("week","w"),Zt("isoWeek","W"),oe("week",5),oe("isoWeek",5),Re("w",_t),Re("ww",_t,nt),Re("W",_t),Re("WW",_t,nt),Vi(["w","ww","W","WW"],function(C,H,I,F){H[F.substr(0,1)]=Ae(C)});function At(C,H){return C.slice(H,7).concat(C.slice(0,H))}$e("d",0,"do","day"),$e("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),$e("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),$e("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Zt("day","d"),Zt("weekday","e"),Zt("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Re("d",_t),Re("e",_t),Re("E",_t),Re("dd",function(C,H){return H.weekdaysMinRegex(C)}),Re("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Re("dddd",function(C,H){return H.weekdaysRegex(C)}),Vi(["dd","ddd","dddd"],function(C,H,I,F){var J=I._locale.weekdaysParse(C,F,I._strict);null!=J?H.d=J:ne(I).invalidWeekday=C}),Vi(["d","e","E"],function(C,H,I,F){H[F]=Ae(C)});var na="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),zt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ne=zs,Ee=zs,ed=zs;function td(C,H,I){var F,J,ae,be=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],F=0;F<7;++F)ae=te([2e3,1]).day(F),this._minWeekdaysParse[F]=this.weekdaysMin(ae,"").toLocaleLowerCase(),this._shortWeekdaysParse[F]=this.weekdaysShort(ae,"").toLocaleLowerCase(),this._weekdaysParse[F]=this.weekdays(ae,"").toLocaleLowerCase();return I?"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"dddd"===H?-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:"ddd"===H?-1!==(J=Jt.call(this._shortWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._minWeekdaysParse,be))?J:null:-1!==(J=Jt.call(this._minWeekdaysParse,be))||-1!==(J=Jt.call(this._weekdaysParse,be))||-1!==(J=Jt.call(this._shortWeekdaysParse,be))?J:null}function nn(){function C(Ci,Br){return Br.length-Ci.length}var ae,be,et,vt,Qt,H=[],I=[],F=[],J=[];for(ae=0;ae<7;ae++)be=te([2e3,1]).day(ae),et=Ge(this.weekdaysMin(be,"")),vt=Ge(this.weekdaysShort(be,"")),Qt=Ge(this.weekdays(be,"")),H.push(et),I.push(vt),F.push(Qt),J.push(et),J.push(vt),J.push(Qt);H.sort(C),I.sort(C),F.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+F.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+I.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function jt(){return this.hours()%12||12}function Wt(C,H){$e(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Yn(C,H){return H._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,jt),$e("k",["kk",2],0,function ls(){return this.hours()||24}),$e("hmm",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+jt.apply(this)+yi(this.minutes(),2)+yi(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+yi(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+yi(this.minutes(),2)+yi(this.seconds(),2)}),Wt("a",!0),Wt("A",!1),Zt("hour","h"),oe("hour",13),Re("a",Yn),Re("A",Yn),Re("H",_t),Re("h",_t),Re("k",_t),Re("HH",_t,nt),Re("hh",_t,nt),Re("kk",_t,nt),Re("hmm",$n),Re("hmmss",Bn),Re("Hmm",$n),Re("Hmmss",Bn),gt(["H","HH"],3),gt(["k","kk"],function(C,H,I){var F=Ae(C);H[3]=24===F?0:F}),gt(["a","A"],function(C,H,I){I._isPm=I._locale.isPM(C),I._meridiem=C}),gt(["h","hh"],function(C,H,I){H[3]=Ae(C),ne(I).bigHour=!0}),gt("hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F)),ne(I).bigHour=!0}),gt("hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J)),ne(I).bigHour=!0}),gt("Hmm",function(C,H,I){var F=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F))}),gt("Hmmss",function(C,H,I){var F=C.length-4,J=C.length-2;H[3]=Ae(C.substr(0,F)),H[4]=Ae(C.substr(F,2)),H[5]=Ae(C.substr(J))});var ql=ze("Hours",!0);var aa,Er={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:dr,monthsShort:ti,week:{dow:0,doy:6},weekdays:na,weekdaysMin:dn,weekdaysShort:zt,meridiemParse:/[ap]\.?m?\.?/i},ci={},ra={};function Gl(C,H){var I,F=Math.min(C.length,H.length);for(I=0;I0;){if(J=B(ae.slice(0,I).join("-")))return J;if(F&&F.length>=I&&Gl(ae,F)>=I-1)break;I--}H++}return aa}(C)}function ve(C){var H,I=C._a;return I&&-2===ne(C).overflow&&(H=I[1]<0||I[1]>11?1:I[2]<1||I[2]>wi(I[0],I[1])?2:I[3]<0||I[3]>24||24===I[3]&&(0!==I[4]||0!==I[5]||0!==I[6])?3:I[4]<0||I[4]>59?4:I[5]<0||I[5]>59?5:I[6]<0||I[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var Qe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Pi=/^\/?Date\((-?\d+)/i,di=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,mi={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function sa(C){var H,I,ae,be,et,vt,F=C._i,J=Qe.exec(F)||Xt.exec(F),Qt=yt.length,Ci=wt.length;if(J){for(ne(C).iso=!0,H=0,I=Qt;H7)&&(vt=!0)):(ae=C._locale._week.dow,be=C._locale._week.doy,Qt=os(ai(),ae,be),I=Js(H.gg,C._a[0],Qt.year),F=Js(H.w,Qt.week),null!=H.d?((J=H.d)<0||J>6)&&(vt=!0):null!=H.e?(J=H.e+ae,(H.e<0||H.e>6)&&(vt=!0)):J=ae),F<1||F>Sr(I,ae,be)?ne(C)._overflowWeeks=!0:null!=vt?ne(C)._overflowWeekday=!0:(et=Nn(I,F,J,ae,be),C._a[0]=et.year,C._dayOfYear=et.dayOfYear)}(C),null!=C._dayOfYear&&(be=Js(C._a[0],J[0]),(C._dayOfYear>Da(be)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),I=Ha(be,0,C._dayOfYear),C._a[1]=I.getUTCMonth(),C._a[2]=I.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=F[H]=J[H];for(;H<7;H++)C._a[H]=F[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Ha:Ro).apply(null,F),ae=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==ae&&(ne(C).weekdayMismatch=!0)}}function Wl(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var I,F,J,ae,be,Qt,Ci,H=""+C._i,et=H.length,vt=0;for(Ci=(J=Ni(C._f,C._locale).match(tt)||[]).length,I=0;I0&&ne(C).unusedInput.push(be),H=H.slice(H.indexOf(F)+F.length),vt+=F.length),pi[ae]?(F?ne(C).empty=!1:ne(C).unusedTokens.push(ae),li(ae,F,C)):C._strict&&!F&&ne(C).unusedTokens.push(ae);ne(C).charsLeftOver=et-vt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function gi(C,H,I){var F;return null==I?H:null!=C.meridiemHour?C.meridiemHour(H,I):(null!=C.isPM&&((F=C.isPM(I))&&H<12&&(H+=12),!F&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(Qt=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(Qt,C._a[0])),Me(C),ve(C)}else Io(C);else sa(C)}function Zl(C){var H=C._i,I=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===I&&""===H?Ie({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Ke(H)?new kt(ve(H)):(Y(H)?C._d=H:M(I)?function id(C){var H,I,F,J,ae,be,et=!1,vt=C._f.length;if(0===vt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ie()});function bn(C,H){var I,F;if(1===H.length&&M(H[0])&&(H=H[0]),!H.length)return ai();for(I=H[0],F=1;F=0?new Date(C+400,H,I)-ws:new Date(C,H,I).valueOf()}function fd(C,H,I){return C<100&&C>=0?Date.UTC(C+400,H,I)-ws:Date.UTC(C,H,I)}function oo(C,H){return H.erasAbbrRegex(C)}function hh(){var J,ae,C=[],H=[],I=[],F=[],be=this.eras();for(J=0,ae=be.length;J(ae=Sr(C,F,J))&&(H=ae),Nf.call(this,C,H,I,F,J))}function Nf(C,H,I,F,J){var ae=Nn(C,H,I,F,J),be=Ha(ae.year,0,ae.dayOfYear);return this.year(be.getUTCFullYear()),this.month(be.getUTCMonth()),this.date(be.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),Re("N",oo),Re("NN",oo),Re("NNN",oo),Re("NNNN",function F_(C,H){return H.erasNameRegex(C)}),Re("NNNNN",function Bf(C,H){return H.erasNarrowRegex(C)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,I,F){var J=I._locale.erasParse(C,F,I._strict);J?ne(I).era=J:ne(I).invalidEra=C}),Re("y",Xr),Re("yy",Xr),Re("yyy",Xr),Re("yyyy",Xr),Re("yo",function Vf(C,H){return H._eraYearOrdinalRegex||Xr}),gt(["y","yy","yyy","yyyy"],0),gt(["yo"],function(C,H,I,F){var J;I._locale._eraYearOrdinalRegex&&(J=C.match(I._locale._eraYearOrdinalRegex)),H[0]=I._locale.eraYearOrdinalParse?I._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yd("gggg","weekYear"),yd("ggggg","weekYear"),yd("GGGG","isoWeekYear"),yd("GGGGG","isoWeekYear"),Zt("weekYear","gg"),Zt("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Re("G",ea),Re("g",ea),Re("GG",_t,nt),Re("gg",_t,nt),Re("GGGG",Nl,An),Re("gggg",Nl,An),Re("GGGGG",Ma,Vt),Re("ggggg",Ma,Vt),Vi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,I,F){H[F.substr(0,2)]=Ae(C)}),Vi(["gg","GG"],function(C,H,I,F){H[F]=i.parseTwoDigitYear(C)}),$e("Q",0,"Qo","quarter"),Zt("quarter","Q"),oe("quarter",7),Re("Q",Hi),gt("Q",function(C,H){H[1]=3*(Ae(C)-1)}),$e("D",["DD",2],"Do","date"),Zt("date","D"),oe("date",9),Re("D",_t),Re("DD",_t,nt),Re("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],2),gt("Do",function(C,H){H[2]=Ae(C.match(_t)[0])});var mr=ze("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Zt("dayOfYear","DDD"),oe("dayOfYear",4),Re("DDD",vn),Re("DDDD",qe),gt(["DDD","DDDD"],function(C,H,I){I._dayOfYear=Ae(C)}),$e("m",["mm",2],0,"minute"),Zt("minute","m"),oe("minute",14),Re("m",_t),Re("mm",_t,nt),gt(["m","mm"],4);var Go=ze("Minutes",!1);$e("s",["ss",2],0,"second"),Zt("second","s"),oe("second",15),Re("s",_t),Re("ss",_t,nt),gt(["s","ss"],5);var qn,wd,co=ze("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Zt("millisecond","ms"),oe("millisecond",16),Re("S",vn,Hi),Re("SS",vn,nt),Re("SSS",vn,qe),qn="SSSS";qn.length<=9;qn+="S")Re(qn,Xr);function nc(C,H){H[6]=Ae(1e3*("0."+C))}for(qn="S";qn.length<=9;qn+="S")gt(qn,nc);wd=ze("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var Pe=kt.prototype;function Cs(C){return C}Pe.add=nh,Pe.calendar=function eo(C,H){1===arguments.length&&(arguments[0]?Yo(arguments[0])?(C=arguments[0],H=void 0):fs(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var I=C||ai(),F=kr(I,this).startOf("day"),J=i.calendarFormat(this,F)||"sameElse",ae=H&&(_e(H[J])?H[J].call(this,I):H[J]);return this.format(ae||this.localeData().calendar(J,this,ai(I)))},Pe.clone=function ah(){return new kt(this)},Pe.diff=function dd(C,H,I){var F,J,ae;if(!this.isValid())return NaN;if(!(F=kr(C,this)).isValid())return NaN;switch(J=6e4*(F.utcOffset()-this.utcOffset()),H=ln(H)){case"year":ae=gs(this,F)/12;break;case"month":ae=gs(this,F);break;case"quarter":ae=gs(this,F)/3;break;case"second":ae=(this-F)/1e3;break;case"minute":ae=(this-F)/6e4;break;case"hour":ae=(this-F)/36e5;break;case"day":ae=(this-F-J)/864e5;break;case"week":ae=(this-F-J)/6048e5;break;default:ae=this-F}return I?ae:Ve(ae)},Pe.endOf=function zo(C){var H,I;if(void 0===(C=ln(C))||"millisecond"===C||!this.isValid())return this;switch(I=this._isUTC?fd:pd,C){case"year":H=I(this.year()+1,0,1)-1;break;case"quarter":H=I(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=I(this.year(),this.month()+1,1)-1;break;case"week":H=I(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=I(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=I(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ys-io(H+(this._isUTC?0:this.utcOffset()*ca),ys)-1;break;case"minute":H=this._d.valueOf(),H+=ca-io(H,ca)-1;break;case"second":H=this._d.valueOf(),H+=1e3-io(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Pe.format=function hd(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=Cn(this,C);return this.localeData().postformat(H)},Pe.from=function Ia(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.fromNow=function j_(C){return this.from(ai(),C)},Pe.to=function sh(C,H){return this.isValid()&&(Ke(C)&&C.isValid()||ai(C).isValid())?Xn({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Pe.toNow=function oh(C){return this.to(ai(),C)},Pe.get=function Pt(C){return _e(this[C=ln(C)])?this[C]():this},Pe.invalidAt=function tc(){return ne(this).overflow},Pe.isAfter=function Lf(C,H){var I=Ke(C)?C:ai(C);return!(!this.isValid()||!I.isValid())&&("millisecond"===(H=ln(H)||"millisecond")?this.valueOf()>I.valueOf():I.valueOf()9999?Cn(I,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_e(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Cn(I,"Z")):Cn(I,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pe.inspect=function La(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var I,F,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),I="["+C+'("]',F=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(I+F+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pe.toJSON=function ch(){return this.isValid()?this.toISOString():null},Pe.toString=function _s(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pe.unix=function gd(){return Math.floor(this.valueOf()/1e3)},Pe.valueOf=function If(){return this._d.valueOf()-6e4*(this._offset||0)},Pe.creationData=function Pr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pe.eraName=function so(){var C,H,I,F=this.localeData().eras();for(C=0,H=F.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pe.isLocal=function hi(){return!!this.isValid()&&!this._isUTC},Pe.isUtcOffset=function th(){return!!this.isValid()&&this._isUTC},Pe.isUtc=Ql,Pe.isUTC=Ql,Pe.zoneAbbr=function Yf(){return this._isUTC?"UTC":""},Pe.zoneName=function N_(){return this._isUTC?"Coordinated Universal Time":""},Pe.dates=xt("dates accessor is deprecated. Use date instead.",mr),Pe.months=xt("months accessor is deprecated. Use month instead",Ea),Pe.years=xt("years accessor is deprecated. Use year instead",_n),Pe.zone=xt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function eh(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Pe.isDSTShifted=xt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function oa(){if(!V(this._isDSTShifted))return this._isDSTShifted;var H,C={};return It(C,this),(C=Zl(C))._a?(H=C._isUTC?te(C._a):ai(C._a),this._isDSTShifted=this.isValid()&&function ad(C,H,I){var be,F=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),ae=0;for(be=0;be0):this._isDSTShifted=!1,this._isDSTShifted});var Yt=ke.prototype;function Wo(C,H,I,F){var J=re(),ae=te().set(F,H);return J[I](ae,C)}function Ad(C,H,I){if(U(C)&&(H=C,C=void 0),C=C||"",null!=H)return Wo(C,H,I,"month");var F,J=[];for(F=0;F<12;F++)J[F]=Wo(C,F,I,"month");return J}function uo(C,H,I,F){"boolean"==typeof C?(U(H)&&(I=H,H=void 0),H=H||""):(I=H=C,C=!1,U(H)&&(I=H,H=void 0),H=H||"");var be,J=re(),ae=C?J._week.dow:0,et=[];if(null!=I)return Wo(H,(I+ae)%7,F,"day");for(be=0;be<7;be++)et[be]=Wo(H,(be+ae)%7,F,"day");return et}Yt.calendar=function Gt(C,H,I){var F=this._calendar[C]||this._calendar.sameElse;return _e(F)?F.call(H,I):F},Yt.longDateFormat=function Ns(C){var H=this._longDateFormat[C],I=this._longDateFormat[C.toUpperCase()];return H||!I?H:(this._longDateFormat[C]=I.match(tt).map(function(F){return"MMMM"===F||"MM"===F||"DD"===F||"dddd"===F?F.slice(1):F}).join(""),this._longDateFormat[C])},Yt.invalidDate=function Us(){return this._invalidDate},Yt.ordinal=function xa(C){return this._ordinal.replace("%d",C)},Yt.preparse=Cs,Yt.postformat=Cs,Yt.relativeTime=function pt(C,H,I,F){var J=this._relativeTime[I];return _e(J)?J(C,H,I,F):J.replace(/%d/i,C)},Yt.pastFuture=function ko(C,H){var I=this._relativeTime[C>0?"future":"past"];return _e(I)?I(H):I.replace(/%s/i,H)},Yt.set=function we(C){var H,I;for(I in C)P(C,I)&&(_e(H=C[I])?this[I]=H:this["_"+I]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Yt.eras=function _d(C,H){var I,F,J,ae=this._eras||re("en")._eras;for(I=0,F=ae.length;I=0)return ae[F]},Yt.erasConvertYear=function ao(C,H){var I=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*I},Yt.erasAbbrRegex=function Of(C){return P(this,"_erasAbbrRegex")||hh.call(this),C?this._erasAbbrRegex:this._erasRegex},Yt.erasNameRegex=function ic(C){return P(this,"_erasNameRegex")||hh.call(this),C?this._erasNameRegex:this._erasRegex},Yt.erasNarrowRegex=function si(C){return P(this,"_erasNarrowRegex")||hh.call(this),C?this._erasNarrowRegex:this._erasRegex},Yt.months=function Po(C,H){return C?M(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ta).test(H)?"format":"standalone"][C.month()]:M(this._months)?this._months:this._months.standalone},Yt.monthsShort=function Sa(C,H){return C?M(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ta.test(H)?"format":"standalone"][C.month()]:M(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Yt.monthsParse=function ss(C,H,I){var F,J,ae;if(this._monthsParseExact)return Yl.call(this,C,H,I);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),F=0;F<12;F++){if(J=te([2e3,F]),I&&!this._longMonthsParse[F]&&(this._longMonthsParse[F]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[F]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!I&&!this._monthsParse[F]&&(ae="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"MMMM"===H&&this._longMonthsParse[F].test(C))return F;if(I&&"MMM"===H&&this._shortMonthsParse[F].test(C))return F;if(!I&&this._monthsParse[F].test(C))return F}},Yt.monthsRegex=function ii(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=bt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Yt.monthsShortRegex=function jn(C){return this._monthsParseExact?(P(this,"_monthsRegex")||Ul.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=Mr),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Yt.week=function Tf(C){return os(C,this._week.dow,this._week.doy).week},Yt.firstDayOfYear=function Mf(){return this._week.doy},Yt.firstDayOfWeek=function xf(){return this._week.dow},Yt.weekdays=function $i(C,H){var I=M(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?At(I,this._week.dow):C?I[C.day()]:I},Yt.weekdaysMin=function ki(C){return!0===C?At(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Yt.weekdaysShort=function ka(C){return!0===C?At(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Yt.weekdaysParse=function Gs(C,H,I){var F,J,ae;if(this._weekdaysParseExact)return td.call(this,C,H,I);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),F=0;F<7;F++){if(J=te([2e3,1]).day(F),I&&!this._fullWeekdaysParse[F]&&(this._fullWeekdaysParse[F]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[F]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[F]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[F]||(ae="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[F]=new RegExp(ae.replace(".",""),"i")),I&&"dddd"===H&&this._fullWeekdaysParse[F].test(C))return F;if(I&&"ddd"===H&&this._shortWeekdaysParse[F].test(C))return F;if(I&&"dd"===H&&this._minWeekdaysParse[F].test(C))return F;if(!I&&this._weekdaysParse[F].test(C))return F}},Yt.weekdaysRegex=function Kn(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=Ne),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Yt.weekdaysShortRegex=function Ws(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ee),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Yt.weekdaysMinRegex=function dt(C){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||nn.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ed),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Yt.isPM=function zl(C){return"p"===(C+"").toLowerCase().charAt(0)},Yt.meridiem=function Un(C,H,I){return C>11?I?"pm":"PM":I?"am":"AM"},W("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var H=C%10;return C+(1===Ae(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=xt("moment.lang is deprecated. Use moment.locale instead.",W),i.langData=xt("moment.langData is deprecated. Use moment.localeData instead.",re);var ir=Math.abs;function Lr(C,H,I,F){var J=Xn(H,I);return C._milliseconds+=F*J._milliseconds,C._days+=F*J._days,C._months+=F*J._months,C._bubble()}function mh(C){return C<0?Math.floor(C):Math.ceil(C)}function gh(C){return 4800*C/146097}function sc(C){return 146097*C/4800}function Ir(C){return function(){return this.as(C)}}var _h=Ir("ms"),Ji=Ir("s"),bh=Ir("m"),Wf=Ir("h"),Td=Ir("d"),$o=Ir("w"),yh=Ir("M"),U_=Ir("Q"),wh=Ir("y");function da(C){return function(){return this.isValid()?this._data[C]:NaN}}var po=da("milliseconds"),Zf=da("seconds"),Ch=da("minutes"),xd=da("hours"),Jo=da("days"),Ah=da("months"),Md=da("years");var Mn=Math.round,Or={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Sd(C,H,I,F,J){return J.relativeTime(H||1,!!I,C,F)}var Ed=Math.abs;function vs(C){return(C>0)-(C<0)||+C}function oc(){if(!this.isValid())return this.localeData().invalidDate();var F,J,ae,be,vt,Qt,Ci,Br,C=Ed(this._milliseconds)/1e3,H=Ed(this._days),I=Ed(this._months),et=this.asSeconds();return et?(F=Ve(C/60),J=Ve(F/60),C%=60,F%=60,ae=Ve(I/12),I%=12,be=C?C.toFixed(3).replace(/\.?0+$/,""):"",vt=et<0?"-":"",Qt=vs(this._months)!==vs(et)?"-":"",Ci=vs(this._days)!==vs(et)?"-":"",Br=vs(this._milliseconds)!==vs(et)?"-":"",vt+"P"+(ae?Qt+ae+"Y":"")+(I?Qt+I+"M":"")+(H?Ci+H+"D":"")+(J||F||C?"T":"")+(J?Br+J+"H":"")+(F?Br+F+"M":"")+(C?Br+be+"S":"")):"P0D"}var Ot=Vo.prototype;return Ot.isValid=function rd(){return this._isValid},Ot.abs=function Y_(){var C=this._data;return this._milliseconds=ir(this._milliseconds),this._days=ir(this._days),this._months=ir(this._months),C.milliseconds=ir(C.milliseconds),C.seconds=ir(C.seconds),C.minutes=ir(C.minutes),C.hours=ir(C.hours),C.months=ir(C.months),C.years=ir(C.years),this},Ot.add=function vd(C,H){return Lr(this,C,H,1)},Ot.subtract=function ac(C,H){return Lr(this,C,H,-1)},Ot.as=function Gf(C){if(!this.isValid())return NaN;var H,I,F=this._milliseconds;if("month"===(C=ln(C))||"quarter"===C||"year"===C)switch(H=this._days+F/864e5,I=this._months+gh(H),C){case"month":return I;case"quarter":return I/3;case"year":return I/12}else switch(H=this._days+Math.round(sc(this._months)),C){case"week":return H/7+F/6048e5;case"day":return H+F/864e5;case"hour":return 24*H+F/36e5;case"minute":return 1440*H+F/6e4;case"second":return 86400*H+F/1e3;case"millisecond":return Math.floor(864e5*H)+F;default:throw new Error("Unknown unit "+C)}},Ot.asMilliseconds=_h,Ot.asSeconds=Ji,Ot.asMinutes=bh,Ot.asHours=Wf,Ot.asDays=Td,Ot.asWeeks=$o,Ot.asMonths=yh,Ot.asQuarters=U_,Ot.asYears=wh,Ot.valueOf=function Zo(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Ae(this._months/12):NaN},Ot._bubble=function qf(){var J,ae,be,et,vt,C=this._milliseconds,H=this._days,I=this._months,F=this._data;return C>=0&&H>=0&&I>=0||C<=0&&H<=0&&I<=0||(C+=864e5*mh(sc(I)+H),H=0,I=0),F.milliseconds=C%1e3,J=Ve(C/1e3),F.seconds=J%60,ae=Ve(J/60),F.minutes=ae%60,be=Ve(ae/60),F.hours=be%24,H+=Ve(be/24),I+=vt=Ve(gh(H)),H-=mh(sc(vt)),et=Ve(I/12),I%=12,F.days=H,F.months=I,F.years=et,this},Ot.clone=function ho(){return Xn(this)},Ot.get=function Va(C){return C=ln(C),this.isValid()?this[C+"s"]():NaN},Ot.milliseconds=po,Ot.seconds=Zf,Ot.minutes=Ch,Ot.hours=xd,Ot.days=Jo,Ot.weeks=function $f(){return Ve(this.days()/7)},Ot.months=Ah,Ot.years=Md,Ot.humanize=function z_(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,ae,I=!1,F=Or;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(I=C),"object"==typeof H&&(F=Object.assign({},Or,H),null!=H.s&&null==H.ss&&(F.ss=H.s-1)),ae=function Jf(C,H,I,F){var J=Xn(C).abs(),ae=Mn(J.as("s")),be=Mn(J.as("m")),et=Mn(J.as("h")),vt=Mn(J.as("d")),Qt=Mn(J.as("M")),Ci=Mn(J.as("w")),Br=Mn(J.as("y")),Vr=ae<=I.ss&&["s",ae]||ae0,Vr[4]=F,Sd.apply(null,Vr)}(this,!I,F,J=this.localeData()),I&&(ae=J.pastFuture(+this,ae)),J.postformat(ae)},Ot.toISOString=oc,Ot.toString=oc,Ot.toJSON=oc,Ot.locale=Uo,Ot.localeData=Oa,Ot.toIsoString=xt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",oc),Ot.lang=to,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),Re("x",ea),Re("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(C,H,I){I._d=new Date(1e3*parseFloat(C))}),gt("x",function(C,H,I){I._d=new Date(Ae(C))}),i.version="2.29.2",function E(C){T=C}(ai),i.fn=Pe,i.min=function ui(){return bn("isBefore",[].slice.call(arguments,0))},i.max=function pr(){return bn("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=te,i.unix=function Gn(C){return ai(1e3*C)},i.months=function Uf(C,H){return Ad(C,H,"months")},i.isDate=Y,i.locale=W,i.invalid=Ie,i.duration=Xn,i.isMoment=Ke,i.weekdays=function rc(C,H,I){return uo(C,H,I,"weekdays")},i.parseZone=function Cd(){return ai.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Ks,i.monthsShort=function zf(C,H){return Ad(C,H,"monthsShort")},i.weekdaysMin=function As(C,H,I){return uo(C,H,I,"weekdaysMin")},i.defineLocale=O,i.updateLocale=function Q(C,H){if(null!=H){var I,F,J=Er;null!=ci[C]&&null!=ci[C].parentLocale?ci[C].set(ye(ci[C]._config,H)):(null!=(F=B(C))&&(J=F._config),H=ye(J,H),null==F&&(H.abbr=C),(I=new ke(H)).parentLocale=ci[C],ci[C]=I),W(C)}else null!=ci[C]&&(null!=ci[C].parentLocale?(ci[C]=ci[C].parentLocale,C===W()&&W(C)):null!=ci[C]&&delete ci[C]);return ci[C]},i.locales=function he(){return ge(ci)},i.weekdaysShort=function fh(C,H,I){return uo(C,H,I,"weekdaysShort")},i.normalizeUnits=ln,i.relativeTimeRounding=function vh(C){return void 0===C?Mn:"function"==typeof C&&(Mn=C,!0)},i.relativeTimeThreshold=function Qf(C,H){return void 0!==Or[C]&&(void 0===H?Or[C]:(Or[C]=H,"s"===C&&(Or.ss=H-1),!0))},i.calendarFormat=function fr(C,H){var I=C.diff(H,"days",!0);return I<-6?"sameElse":I<-1?"lastWeek":I<0?"lastDay":I<1?"sameDay":I<2?"nextDay":I<7?"nextWeek":"sameElse"},i.prototype=Pe,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},1869:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);class i extends T.L{constructor(M,S,P){super(),this.parent=M,this.outerValue=S,this.outerIndex=P,this.index=0}_next(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this.index++,this)}_error(M){this.parent.notifyError(M,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(z,G,x)=>{"use strict";x.d(G,{P:()=>S});var T=x(8896),i=x(1086),E=x(1737);class S{constructor(L,V,U){this.kind=L,this.value=V,this.error=U,this.hasValue="N"===L}observe(L){switch(this.kind){case"N":return L.next&&L.next(this.value);case"E":return L.error&&L.error(this.error);case"C":return L.complete&&L.complete()}}do(L,V,U){switch(this.kind){case"N":return L&&L(this.value);case"E":return V&&V(this.error);case"C":return U&&U()}}accept(L,V,U){return L&&"function"==typeof L.next?this.observe(L):this.do(L,V,U)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,T.c)()}throw new Error("unexpected notification kind value")}static createNext(L){return void 0!==L?new S("N",L):S.undefinedValueNotification}static createError(L){return new S("E",void 0,L)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(z,G,x)=>{"use strict";x.d(G,{y:()=>$});var T=x(3489),E=x(7668),M=x(3292),P=x(3821),L=x(5379);var Y=x(2830);let $=(()=>{class te{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new te;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ie}=this,Be=function S(te,ce,ne){if(te){if(te instanceof T.L)return te;if(te[E.b])return te[E.b]()}return te||ce||ne?new T.L(te,ce,ne):new T.L(M.c)}(ne,de,me);if(Be.add(Ie?Ie.call(Be,this.source):this.source||Y.v.useDeprecatedSynchronousErrorHandling&&!Be.syncErrorThrowable?this._subscribe(Be):this._trySubscribe(Be)),Y.v.useDeprecatedSynchronousErrorHandling&&Be.syncErrorThrowable&&(Be.syncErrorThrowable=!1,Be.syncErrorThrown))throw Be.syncErrorValue;return Be}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){Y.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(te){for(;te;){const{closed:ce,destination:ne,isStopped:de}=te;if(ce||de)return!1;te=ne&&ne instanceof T.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ie)=>{let Be;Be=this.subscribe(Ze=>{try{ne(Ze)}catch(It){Ie(It),Be&&Be.unsubscribe()}},Ie,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[P.L](){return this}pipe(...ne){return 0===ne.length?this:function U(te){return 0===te.length?L.y:1===te.length?te[0]:function(ne){return te.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ie;this.subscribe(Be=>Ie=Be,Be=>me(Be),()=>de(Ie))})}}return te.create=ce=>new te(ce),te})();function X(te){if(te||(te=Y.v.Promise||Promise),!te)throw new Error("no Promise impl found");return te}},3292:(z,G,x)=>{"use strict";x.d(G,{c:()=>E});var T=x(2830),i=x(2782);const E={closed:!0,next(M){},error(M){if(T.v.useDeprecatedSynchronousErrorHandling)throw M;(0,i.z)(M)},complete(){}}},826:(z,G,x)=>{"use strict";x.d(G,{L:()=>i});var T=x(3489);class i extends T.L{notifyNext(M,S,P,L,V){this.destination.next(S)}notifyError(M,S){this.destination.error(M)}notifyComplete(M){this.destination.complete()}}},8929:(z,G,x)=>{"use strict";x.d(G,{Yc:()=>L,xQ:()=>V});var T=x(2916),i=x(3489),E=x(2654),M=x(5279),S=x(5283),P=x(7668);class L extends i.L{constructor($){super($),this.destination=$}}let V=(()=>{class Y extends T.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[P.b](){return new L(this)}lift(X){const te=new U(this,this);return te.operator=X,te}next(X){if(this.closed)throw new M.N;if(!this.isStopped){const{observers:te}=this,ce=te.length,ne=te.slice();for(let de=0;denew U($,X),Y})();class U extends V{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});var T=x(2654);class i extends T.w{constructor(M,S){super(),this.subject=M,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const M=this.subject,S=M.observers;if(this.subject=null,!S||0===S.length||M.isStopped||M.closed)return;const P=S.indexOf(this.subscriber);-1!==P&&S.splice(P,1)}}},3489:(z,G,x)=>{"use strict";x.d(G,{L:()=>L});var T=x(7043),i=x(3292),E=x(2654),M=x(7668),S=x(2830),P=x(2782);class L extends E.w{constructor(Y,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!Y){this.destination=i.c;break}if("object"==typeof Y){Y instanceof L?(this.syncErrorThrowable=Y.syncErrorThrowable,this.destination=Y,Y.add(this)):(this.syncErrorThrowable=!0,this.destination=new V(this,Y));break}default:this.syncErrorThrowable=!0,this.destination=new V(this,Y,$,X)}}[M.b](){return this}static create(Y,$,X){const te=new L(Y,$,X);return te.syncErrorThrowable=!1,te}next(Y){this.isStopped||this._next(Y)}error(Y){this.isStopped||(this.isStopped=!0,this._error(Y))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Y){this.destination.next(Y)}_error(Y){this.destination.error(Y),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Y}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Y,this}}class V extends L{constructor(Y,$,X,te){super(),this._parentSubscriber=Y;let ce,ne=this;(0,T.m)($)?ce=$:$&&(ce=$.next,X=$.error,te=$.complete,$!==i.c&&(ne=Object.create($),(0,T.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=te}next(Y){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,Y)&&this.unsubscribe():this.__tryOrUnsub(this._next,Y)}}error(Y){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,Y),this.unsubscribe()):(this.__tryOrUnsub(this._error,Y),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=Y,$.syncErrorThrown=!0):(0,P.z)(Y),this.unsubscribe();else{if(this.unsubscribe(),X)throw Y;(0,P.z)(Y)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Y}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&Y.syncErrorThrowable?(this.__tryOrSetError(Y,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Y,$){try{Y.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,P.z)(X)}}__tryOrSetError(Y,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(te){return S.v.useDeprecatedSynchronousErrorHandling?(Y.syncErrorValue=te,Y.syncErrorThrown=!0,!0):((0,P.z)(te),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Y}=this;this._context=null,this._parentSubscriber=null,Y.unsubscribe()}}},2654:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(6688),i=x(7830),E=x(7043);const S=(()=>{function V(U){return Error.call(this),this.message=U?`${U.length} errors occurred during unsubscription:\n${U.map((Y,$)=>`${$+1}) ${Y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=U,this}return V.prototype=Object.create(Error.prototype),V})();class P{constructor(U){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,U&&(this._unsubscribe=U)}unsubscribe(){let U;if(this.closed)return;let{_parentOrParents:Y,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Y instanceof P)Y.remove(this);else if(null!==Y)for(let te=0;teU.concat(Y instanceof S?Y.errors:Y),[])}P.EMPTY=((V=new P).closed=!0,V)},2830:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const M=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+M.stack)}else T&&console.log("RxJS: Back to a better error behavior. Thank you. <3");T=E},get useDeprecatedSynchronousErrorHandling(){return T}}},1762:(z,G,x)=>{"use strict";x.d(G,{c:()=>S,N:()=>P});var T=x(8929),i=x(2916),E=x(2654),M=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new L(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,M.x)()(this)}}const P=(()=>{const Y=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Y._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}}})();class L extends T.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(z,G,x)=>{"use strict";x.d(G,{aj:()=>L});var T=x(2866),i=x(6688),E=x(826),M=x(9054),S=x(3009);const P={};function L(...Y){let $=null,X=null;return(0,T.K)(Y[Y.length-1])&&(X=Y.pop()),"function"==typeof Y[Y.length-1]&&($=Y.pop()),1===Y.length&&(0,i.k)(Y[0])&&(Y=Y[0]),(0,S.n)(Y,X).lift(new V($))}class V{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new U($,this.resultSelector))}}class U extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(P),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let te=0;te{"use strict";x.d(G,{E:()=>i,c:()=>E});var T=x(2916);const i=new T.y(S=>S.complete());function E(S){return S?function M(S){return new T.y(P=>S.schedule(()=>P.complete()))}(S):i}},5254:(z,G,x)=>{"use strict";x.d(G,{D:()=>ne});var T=x(2916),i=x(9249),E=x(2654),M=x(3821),L=x(6454),V=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function Y(de){return de&&"function"==typeof de[M.L]}(de))return function S(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>{const Ze=de[M.L]();Be.add(Ze.subscribe({next(It){Be.add(me.schedule(()=>Ie.next(It)))},error(It){Be.add(me.schedule(()=>Ie.error(It)))},complete(){Be.add(me.schedule(()=>Ie.complete()))}}))})),Be})}(de,me);if((0,$.t)(de))return function P(de,me){return new T.y(Ie=>{const Be=new E.w;return Be.add(me.schedule(()=>de.then(Ze=>{Be.add(me.schedule(()=>{Ie.next(Ze),Be.add(me.schedule(()=>Ie.complete()))}))},Ze=>{Be.add(me.schedule(()=>Ie.error(Ze)))}))),Be})}(de,me);if((0,X.z)(de))return(0,L.r)(de,me);if(function te(de){return de&&"function"==typeof de[V.hZ]}(de)||"string"==typeof de)return function U(de,me){if(!de)throw new Error("Iterable cannot be null");return new T.y(Ie=>{const Be=new E.w;let Ze;return Be.add(()=>{Ze&&"function"==typeof Ze.return&&Ze.return()}),Be.add(me.schedule(()=>{Ze=de[V.hZ](),Be.add(me.schedule(function(){if(Ie.closed)return;let It,kt;try{const Ke=Ze.next();It=Ke.value,kt=Ke.done}catch(Ke){return void Ie.error(Ke)}kt?Ie.complete():(Ie.next(It),this.schedule())}))})),Be})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof T.y?de:new T.y((0,i.s)(de))}},3009:(z,G,x)=>{"use strict";x.d(G,{n:()=>M});var T=x(2916),i=x(3650),E=x(6454);function M(S,P){return P?(0,E.r)(S,P):new T.y((0,i.V)(S))}},6787:(z,G,x)=>{"use strict";x.d(G,{T:()=>S});var T=x(2916),i=x(2866),E=x(9146),M=x(3009);function S(...P){let L=Number.POSITIVE_INFINITY,V=null,U=P[P.length-1];return(0,i.K)(U)?(V=P.pop(),P.length>1&&"number"==typeof P[P.length-1]&&(L=P.pop())):"number"==typeof U&&(L=P.pop()),null===V&&1===P.length&&P[0]instanceof T.y?P[0]:(0,E.J)(L)((0,M.n)(P,V))}},1086:(z,G,x)=>{"use strict";x.d(G,{of:()=>M});var T=x(2866),i=x(3009),E=x(6454);function M(...S){let P=S[S.length-1];return(0,T.K)(P)?(S.pop(),(0,E.r)(S,P)):(0,i.n)(S)}},1946:(z,G,x)=>{"use strict";x.d(G,{S3:()=>S});var T=x(6688),i=x(3009),E=x(826),M=x(9054);function S(...V){if(1===V.length){if(!(0,T.k)(V[0]))return V[0];V=V[0]}return(0,i.n)(V,void 0).lift(new P)}class P{call(U,Y){return Y.subscribe(new L(U))}}class L extends E.L{constructor(U){super(U),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(U){this.observables.push(U)}_complete(){const U=this.observables,Y=U.length;if(0===Y)this.destination.complete();else{for(let $=0;${"use strict";x.d(G,{_:()=>i});var T=x(2916);function i(M,S){return new T.y(S?P=>S.schedule(E,0,{error:M,subscriber:P}):P=>P.error(M))}function E({error:M,subscriber:S}){S.error(M)}},7221:(z,G,x)=>{"use strict";x.d(G,{K:()=>M});var T=x(826),i=x(1869),E=x(9054);function M(L){return function(U){const Y=new S(L),$=U.lift(Y);return Y.caught=$}}class S{constructor(V){this.selector=V}call(V,U){return U.subscribe(new P(V,this.selector,this.caught))}}class P extends T.L{constructor(V,U,Y){super(V),this.selector=U,this.caught=Y}error(V){if(!this.isStopped){let U;try{U=this.selector(V,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const Y=new i.d(this,void 0,void 0);this.add(Y);const $=(0,E.D)(this,U,void 0,void 0,Y);$!==Y&&this.add($)}}}},1406:(z,G,x)=>{"use strict";x.d(G,{b:()=>i});var T=x(1709);function i(E,M){return(0,T.zg)(E,M,1)}},13:(z,G,x)=>{"use strict";x.d(G,{b:()=>E});var T=x(3489),i=x(353);function E(L,V=i.P){return U=>U.lift(new M(L,V))}class M{constructor(V,U){this.dueTime=V,this.scheduler=U}call(V,U){return U.subscribe(new S(V,this.dueTime,this.scheduler))}}class S extends T.L{constructor(V,U,Y){super(V),this.dueTime=U,this.scheduler=Y,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(V){this.clearDebounce(),this.lastValue=V,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(P,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:V}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(V)}}clearDebounce(){const V=this.debouncedSubscription;null!==V&&(this.remove(V),V.unsubscribe(),this.debouncedSubscription=null)}}function P(L){L.debouncedNext()}},7314:(z,G,x)=>{"use strict";x.d(G,{d:()=>i});var T=x(3489);function i(S=null){return P=>P.lift(new E(S))}class E{constructor(P){this.defaultValue=P}call(P,L){return L.subscribe(new M(P,this.defaultValue))}}class M extends T.L{constructor(P,L){super(P),this.defaultValue=L,this.isEmpty=!0}_next(P){this.isEmpty=!1,this.destination.next(P)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(z,G,x)=>{"use strict";x.d(G,{g:()=>S});var T=x(353),i=x(2697),E=x(3489),M=x(9312);function S(U,Y=T.P){const X=(0,i.J)(U)?+U-Y.now():Math.abs(U);return te=>te.lift(new P(X,Y))}class P{constructor(Y,$){this.delay=Y,this.scheduler=$}call(Y,$){return $.subscribe(new L(Y,this.delay,this.scheduler))}}class L extends E.L{constructor(Y,$,X){super(Y),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(Y){const $=Y.source,X=$.queue,te=Y.scheduler,ce=Y.destination;for(;X.length>0&&X[0].time-te.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-te.now());this.schedule(Y,ne)}else this.unsubscribe(),$.active=!1}_schedule(Y){this.active=!0,this.destination.add(Y.schedule(L.dispatch,this.delay,{source:this,destination:this.destination,scheduler:Y}))}scheduleNotification(Y){if(!0===this.errored)return;const $=this.scheduler,X=new V($.now()+this.delay,Y);this.queue.push(X),!1===this.active&&this._schedule($)}_next(Y){this.scheduleNotification(M.P.createNext(Y))}_error(Y){this.errored=!0,this.queue=[],this.destination.error(Y),this.unsubscribe()}_complete(){this.scheduleNotification(M.P.createComplete()),this.unsubscribe()}}class V{constructor(Y,$){this.time=Y,this.notification=$}}},2198:(z,G,x)=>{"use strict";x.d(G,{h:()=>i});var T=x(3489);function i(S,P){return function(V){return V.lift(new E(S,P))}}class E{constructor(P,L){this.predicate=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.predicate,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.predicate=L,this.thisArg=V,this.count=0}_next(P){let L;try{L=this.predicate.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}L&&this.destination.next(P)}}},7224:(z,G,x)=>{"use strict";x.d(G,{P:()=>L});var T=x(4450),i=x(2198),E=x(2986),M=x(7314),S=x(4907),P=x(5379);function L(V,U){const Y=arguments.length>=2;return $=>$.pipe(V?(0,i.h)((X,te)=>V(X,te,$)):P.y,(0,E.q)(1),Y?(0,M.d)(U):(0,S.T)(()=>new T.K))}},4850:(z,G,x)=>{"use strict";x.d(G,{U:()=>i});var T=x(3489);function i(S,P){return function(V){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return V.lift(new E(S,P))}}class E{constructor(P,L){this.project=P,this.thisArg=L}call(P,L){return L.subscribe(new M(P,this.project,this.thisArg))}}class M extends T.L{constructor(P,L,V){super(P),this.project=L,this.count=0,this.thisArg=V||this}_next(P){let L;try{L=this.project.call(this.thisArg,P,this.count++)}catch(V){return void this.destination.error(V)}this.destination.next(L)}}},9146:(z,G,x)=>{"use strict";x.d(G,{J:()=>E});var T=x(1709),i=x(5379);function E(M=Number.POSITIVE_INFINITY){return(0,T.zg)(i.y,M)}},1709:(z,G,x)=>{"use strict";x.d(G,{zg:()=>P});var T=x(9054),i=x(826),E=x(1869),M=x(4850),S=x(5254);function P(U,Y,$=Number.POSITIVE_INFINITY){return"function"==typeof Y?X=>X.pipe(P((te,ce)=>(0,S.D)(U(te,ce)).pipe((0,M.U)((ne,de)=>Y(te,ne,ce,de))),$)):("number"==typeof Y&&($=Y),X=>X.lift(new L(U,$)))}class L{constructor(Y,$=Number.POSITIVE_INFINITY){this.project=Y,this.concurrent=$}call(Y,$){return $.subscribe(new V(Y,this.project,this.concurrent))}}class V extends i.L{constructor(Y,$,X=Number.POSITIVE_INFINITY){super(Y),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(Y){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(z,G,x)=>{"use strict";x.d(G,{x:()=>i});var T=x(3489);function i(){return function(P){return P.lift(new E(P))}}class E{constructor(P){this.connectable=P}call(P,L){const{connectable:V}=this;V._refCount++;const U=new M(P,V),Y=L.subscribe(U);return U.closed||(U.connection=V.connect()),Y}}class M extends T.L{constructor(P,L){super(P),this.connectable=L}_unsubscribe(){const{connectable:P}=this;if(!P)return void(this.connection=null);this.connectable=null;const L=P._refCount;if(L<=0)return void(this.connection=null);if(P._refCount=L-1,L>1)return void(this.connection=null);const{connection:V}=this,U=P._connection;this.connection=null,U&&(!V||U===V)&&U.unsubscribe()}}},2474:(z,G,x)=>{"use strict";x.d(G,{B:()=>L});var T=x(1762);class E{constructor(U,Y){this.subjectFactory=U,this.selector=Y}call(U,Y){const{selector:$}=this,X=this.subjectFactory(),te=$(X).subscribe(U);return te.add(Y.subscribe(X)),te}}var M=x(4327),S=x(8929);function P(){return new S.xQ}function L(){return V=>(0,M.x)()(function i(V,U){return function($){let X;if(X="function"==typeof V?V:function(){return V},"function"==typeof U)return $.lift(new E(X,U));const te=Object.create($,T.N);return te.source=$,te.subjectFactory=X,te}}(P)(V))}},7545:(z,G,x)=>{"use strict";x.d(G,{w:()=>P});var T=x(826),i=x(1869),E=x(9054),M=x(4850),S=x(5254);function P(U,Y){return"function"==typeof Y?$=>$.pipe(P((X,te)=>(0,S.D)(U(X,te)).pipe((0,M.U)((ce,ne)=>Y(X,ce,te,ne))))):$=>$.lift(new L(U))}class L{constructor(Y){this.project=Y}call(Y,$){return $.subscribe(new V(Y,this.project))}}class V extends T.L{constructor(Y,$){super(Y),this.project=$,this.index=0}_next(Y){let $;const X=this.index++;try{$=this.project(Y,X)}catch(te){return void this.destination.error(te)}this._innerSub($,Y,X)}_innerSub(Y,$,X){const te=this.innerSubscription;te&&te.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,Y,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:Y}=this;(!Y||Y.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(Y){this.destination.remove(Y),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(Y,$,X,te,ce){this.destination.next($)}}},2986:(z,G,x)=>{"use strict";x.d(G,{q:()=>M});var T=x(3489),i=x(4231),E=x(8896);function M(L){return V=>0===L?(0,E.c)():V.lift(new S(L))}class S{constructor(V){if(this.total=V,this.total<0)throw new i.W}call(V,U){return U.subscribe(new P(V,this.total))}}class P extends T.L{constructor(V,U){super(V),this.total=U,this.count=0}_next(V){const U=this.total,Y=++this.count;Y<=U&&(this.destination.next(V),Y===U&&(this.destination.complete(),this.unsubscribe()))}}},2868:(z,G,x)=>{"use strict";x.d(G,{b:()=>M});var T=x(3489);function i(){}var E=x(7043);function M(L,V,U){return function($){return $.lift(new S(L,V,U))}}class S{constructor(V,U,Y){this.nextOrObserver=V,this.error=U,this.complete=Y}call(V,U){return U.subscribe(new P(V,this.nextOrObserver,this.error,this.complete))}}class P extends T.L{constructor(V,U,Y,$){super(V),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=Y||i,this._tapComplete=$||i,(0,E.m)(U)?(this._context=this,this._tapNext=U):U&&(this._context=U,this._tapNext=U.next||i,this._tapError=U.error||i,this._tapComplete=U.complete||i)}_next(V){try{this._tapNext.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.next(V)}_error(V){try{this._tapError.call(this._context,V)}catch(U){return void this.destination.error(U)}this.destination.error(V)}_complete(){try{this._tapComplete.call(this._context)}catch(V){return void this.destination.error(V)}return this.destination.complete()}}},4907:(z,G,x)=>{"use strict";x.d(G,{T:()=>E});var T=x(4450),i=x(3489);function E(L=P){return V=>V.lift(new M(L))}class M{constructor(V){this.errorFactory=V}call(V,U){return U.subscribe(new S(V,this.errorFactory))}}class S extends i.L{constructor(V,U){super(V),this.errorFactory=U,this.hasValue=!1}_next(V){this.hasValue=!0,this.destination.next(V)}_complete(){if(this.hasValue)return this.destination.complete();{let V;try{V=this.errorFactory()}catch(U){V=U}this.destination.error(V)}}}function P(){return new T.K}},6227:(z,G,x)=>{"use strict";x.d(G,{V:()=>$});var T=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var M=x(2697),S=x(826),P=x(9054);class V{constructor(te,ce,ne,de){this.waitFor=te,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(te,ce){return ce.subscribe(new U(te,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class U extends S.L{constructor(te,ce,ne,de,me){super(te),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(te){const{withObservable:ce}=te;te._unsubscribeAndRecycle(),te.add((0,P.D)(te,ce))}scheduleTimeout(){const{action:te}=this;te?this.action=te.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(U.dispatchTimeout,this.waitFor,this))}_next(te){this.absoluteTimeout||this.scheduleTimeout(),super._next(te)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var Y=x(1737);function $(X,te=T.P){return function L(X,te,ce=T.P){return ne=>{let de=(0,M.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new V(me,de,te,ce))}}(X,(0,Y._)(new E),te)}},6454:(z,G,x)=>{"use strict";x.d(G,{r:()=>E});var T=x(2916),i=x(2654);function E(M,S){return new T.y(P=>{const L=new i.w;let V=0;return L.add(S.schedule(function(){V!==M.length?(P.next(M[V++]),P.closed||L.add(this.schedule())):P.complete()})),L})}},6686:(z,G,x)=>{"use strict";x.d(G,{o:()=>E});var T=x(2654);class i extends T.w{constructor(S,P){super()}schedule(S,P=0){return this}}class E extends i{constructor(S,P){super(S,P),this.scheduler=S,this.work=P,this.pending=!1}schedule(S,P=0){if(this.closed)return this;this.state=S;const L=this.id,V=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(V,L,P)),this.pending=!0,this.delay=P,this.id=this.id||this.requestAsyncId(V,this.id,P),this}requestAsyncId(S,P,L=0){return setInterval(S.flush.bind(S,this),L)}recycleAsyncId(S,P,L=0){if(null!==L&&this.delay===L&&!1===this.pending)return P;clearInterval(P)}execute(S,P){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const L=this._execute(S,P);if(L)return L;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,P){let V,L=!1;try{this.work(S)}catch(U){L=!0,V=!!U&&U||new Error(U)}if(L)return this.unsubscribe(),V}_unsubscribe(){const S=this.id,P=this.scheduler,L=P.actions,V=L.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==V&&L.splice(V,1),null!=S&&(this.id=this.recycleAsyncId(P,S,null)),this.delay=null}}},2268:(z,G,x)=>{"use strict";x.d(G,{v:()=>i});let T=(()=>{class E{constructor(S,P=E.now){this.SchedulerAction=S,this.now=P}schedule(S,P=0,L){return new this.SchedulerAction(this,S).schedule(L,P)}}return E.now=()=>Date.now(),E})();class i extends T{constructor(M,S=T.now){super(M,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(M,S=0,P){return i.delegate&&i.delegate!==this?i.delegate.schedule(M,S,P):super.schedule(M,S,P)}flush(M){const{actions:S}=this;if(this.active)return void S.push(M);let P;this.active=!0;do{if(P=M.execute(M.state,M.delay))break}while(M=S.shift());if(this.active=!1,P){for(;M=S.shift();)M.unsubscribe();throw P}}}},353:(z,G,x)=>{"use strict";x.d(G,{P:()=>E});var T=x(6686);const E=new(x(2268).v)(T.o)},5430:(z,G,x)=>{"use strict";x.d(G,{hZ:()=>i});const i=function T(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(z,G,x)=>{"use strict";x.d(G,{L:()=>T});const T="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(z,G,x)=>{"use strict";x.d(G,{b:()=>T});const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(z,G,x)=>{"use strict";x.d(G,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(z,G,x)=>{"use strict";x.d(G,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(z,G,x)=>{"use strict";x.d(G,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(z,G,x)=>{"use strict";function T(i){setTimeout(()=>{throw i},0)}x.d(G,{z:()=>T})},5379:(z,G,x)=>{"use strict";function T(i){return i}x.d(G,{y:()=>T})},6688:(z,G,x)=>{"use strict";x.d(G,{k:()=>T});const T=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(z,G,x)=>{"use strict";x.d(G,{z:()=>T});const T=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(z,G,x)=>{"use strict";function T(i){return i instanceof Date&&!isNaN(+i)}x.d(G,{J:()=>T})},7043:(z,G,x)=>{"use strict";function T(i){return"function"==typeof i}x.d(G,{m:()=>T})},7830:(z,G,x)=>{"use strict";function T(i){return null!==i&&"object"==typeof i}x.d(G,{K:()=>T})},8955:(z,G,x)=>{"use strict";function T(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(G,{t:()=>T})},2866:(z,G,x)=>{"use strict";function T(i){return i&&"function"==typeof i.schedule}x.d(G,{K:()=>T})},9249:(z,G,x)=>{"use strict";x.d(G,{s:()=>$});var T=x(3650),i=x(2782),M=x(5430),P=x(3821),V=x(8515),U=x(8955),Y=x(7830);const $=X=>{if(X&&"function"==typeof X[P.L])return(X=>te=>{const ce=X[P.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(te)})(X);if((0,V.z)(X))return(0,T.V)(X);if((0,U.t)(X))return(X=>te=>(X.then(ce=>{te.closed||(te.next(ce),te.complete())},ce=>te.error(ce)).then(null,i.z),te))(X);if(X&&"function"==typeof X[M.hZ])return(X=>te=>{const ce=X[M.hZ]();for(;;){const ne=ce.next();if(ne.done){te.complete();break}if(te.next(ne.value),te.closed)break}return"function"==typeof ce.return&&te.add(()=>{ce.return&&ce.return()}),te})(X);{const ce=`You provided ${(0,Y.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(z,G,x)=>{"use strict";x.d(G,{V:()=>T});const T=i=>E=>{for(let M=0,S=i.length;M{"use strict";x.d(G,{D:()=>M});var T=x(1869),i=x(9249),E=x(2916);function M(S,P,L,V,U=new T.d(S,L,V)){if(!U.closed)return P instanceof E.y?P.subscribe(U):(0,i.s)(P)(U)}},6700:(z,G,x)=>{var T={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":3165,"./hy-am.js":3165,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":4486,"./th.js":4486,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(M){var S=E(M);return x(S)}function E(M){if(!x.o(T,M)){var S=new Error("Cannot find module '"+M+"'");throw S.code="MODULE_NOT_FOUND",S}return T[M]}i.keys=function(){return Object.keys(T)},i.resolve=E,z.exports=i,i.id=6700},655:(z,G,x)=>{"use strict";function V(fe,_e,we,ye){return new(we||(we=Promise))(function(ge,Mt){function Gt(ht){try{tt(ye.next(ht))}catch(On){Mt(On)}}function yi(ht){try{tt(ye.throw(ht))}catch(On){Mt(On)}}function tt(ht){ht.done?ge(ht.value):function ke(ge){return ge instanceof we?ge:new we(function(Mt){Mt(ge)})}(ht.value).then(Gt,yi)}tt((ye=ye.apply(fe,_e||[])).next())})}x.d(G,{mG:()=>V})},9808:(z,G,x)=>{"use strict";x.d(G,{mr:()=>Be,Ov:()=>$u,ez:()=>jt,K0:()=>L,uU:()=>Ne,Do:()=>It,V_:()=>Y,Ye:()=>kt,S$:()=>me,mk:()=>Sa,sg:()=>tn,O5:()=>jn,PC:()=>os,RF:()=>_n,n9:()=>Fn,ED:()=>Ro,tP:()=>Sr,b0:()=>Ze,lw:()=>V,EM:()=>ra,JF:()=>fi,p6:()=>St,NF:()=>xn,w_:()=>P,bD:()=>ls,q:()=>E,Mx:()=>Po,HT:()=>S});var T=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class P{}const L=new T.OlP("DocumentToken");let V=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function U(){return(0,T.LFG)($)}()},providedIn:"platform"}),B})();const Y=new T.OlP("Location Initialized");let $=(()=>{class B extends V{constructor(O){super(),this._doc=O,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",O,!1),()=>Q.removeEventListener("popstate",O)}onHashChange(O){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",O,!1),()=>Q.removeEventListener("hashchange",O)}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(O){this.location.pathname=O}pushState(O,Q,re){X()?this._history.pushState(O,Q,re):this.location.hash=re}replaceState(O,Q,re){X()?this._history.replaceState(O,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(L))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function te(){return new $((0,T.LFG)(L))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,W){if(0==B.length)return W;if(0==W.length)return B;let O=0;return B.endsWith("/")&&O++,W.startsWith("/")&&O++,2==O?B+W.substring(1):1==O?B+W:B+"/"+W}function ne(B){const W=B.match(/#|\?|$/),O=W&&W.index||B.length;return B.slice(0,O-("/"===B[O-1]?1:0))+B.slice(O)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(O){throw new Error("Not implemented")}}return B.\u0275fac=function(O){return new(O||B)},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ie(B){const W=(0,T.LFG)(L).location;return new Ze((0,T.LFG)(V),W&&W.origin||"")}()},providedIn:"root"}),B})();const Be=new T.OlP("appBaseHref");let Ze=(()=>{class B extends me{constructor(O,Q){if(super(),this._platformLocation=O,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return ce(this._baseHref,O)}path(O=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&O?`${Q}${re}`:Q}pushState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){const ve=this.prepareExternalUrl(re+de(he));this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),It=(()=>{class B extends me{constructor(O,Q){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(O){const Q=ce(this._baseHref,O);return Q.length>0?"#"+Q:Q}pushState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.pushState(O,Q,ve)}replaceState(O,Q,re,he){let ve=this.prepareExternalUrl(re+de(he));0==ve.length&&(ve=this._platformLocation.pathname),this._platformLocation.replaceState(O,Q,ve)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,O)}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(V),T.LFG(Be,8))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})(),kt=(()=>{class B{constructor(O,Q){this._subject=new T.vpe,this._urlChangeListeners=[],this._platformStrategy=O;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(xt(re)),this._platformStrategy.onPopState(he=>{this._subject.emit({url:this.path(!0),pop:!0,state:he.state,type:he.type})})}path(O=!1){return this.normalize(this._platformStrategy.path(O))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(O,Q=""){return this.path()==this.normalize(O+de(Q))}normalize(O){return B.stripTrailingSlash(function Xi(B,W){return B&&W.startsWith(B)?W.substring(B.length):W}(this._baseHref,xt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._platformStrategy.prepareExternalUrl(O)}go(O,Q="",re=null){this._platformStrategy.pushState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}replaceState(O,Q="",re=null){this._platformStrategy.replaceState(re,"",O,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(O=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,O)}onUrlChange(O){this._urlChangeListeners.push(O),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(O="",Q){this._urlChangeListeners.forEach(re=>re(O,Q))}subscribe(O,Q,re){return this._subject.subscribe({next:O,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(O){return new(O||B)(T.LFG(me),T.LFG(V))},B.\u0275prov=T.Yz7({token:B,factory:function(){return function Ke(){return new kt((0,T.LFG)(me),(0,T.LFG)(V))}()},providedIn:"root"}),B})();function xt(B){return B.replace(/\/index.html$/,"")}var _e=(()=>((_e=_e||{})[_e.Zero=0]="Zero",_e[_e.One=1]="One",_e[_e.Two=2]="Two",_e[_e.Few=3]="Few",_e[_e.Many=4]="Many",_e[_e.Other=5]="Other",_e))(),we=(()=>((we=we||{})[we.Format=0]="Format",we[we.Standalone=1]="Standalone",we))(),ye=(()=>((ye=ye||{})[ye.Narrow=0]="Narrow",ye[ye.Abbreviated=1]="Abbreviated",ye[ye.Wide=2]="Wide",ye[ye.Short=3]="Short",ye))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function ri(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateFormat],W)}function va(B,W){return Bi((0,T.cg1)(B)[T.wAp.TimeFormat],W)}function Cn(B,W){return Bi((0,T.cg1)(B)[T.wAp.DateTimeFormat],W)}function Ni(B,W){const O=(0,T.cg1)(B),Q=O[T.wAp.NumberSymbols][W];if(void 0===Q){if(W===ge.CurrencyDecimal)return O[T.wAp.NumberSymbols][ge.Decimal];if(W===ge.CurrencyGroup)return O[T.wAp.NumberSymbols][ge.Group]}return Q}const Kr=T.kL8;function xa(B){if(!B[T.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[T.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Bi(B,W){for(let O=W;O>-1;O--)if(void 0!==B[O])return B[O];throw new Error("Locale data API: locale data undefined")}function Zt(B){const[W,O]=B.split(":");return{hours:+W,minutes:+O}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,De={},Se=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),Ae=(()=>((Ae=Ae||{})[Ae.FullYear=0]="FullYear",Ae[Ae.Month=1]="Month",Ae[Ae.Date=2]="Date",Ae[Ae.Hours=3]="Hours",Ae[Ae.Minutes=4]="Minutes",Ae[Ae.Seconds=5]="Seconds",Ae[Ae.FractionalSeconds=6]="FractionalSeconds",Ae[Ae.Day=7]="Day",Ae))(),ze=(()=>((ze=ze||{})[ze.DayPeriods=0]="DayPeriods",ze[ze.Days=1]="Days",ze[ze.Months=2]="Months",ze[ze.Eras=3]="Eras",ze))();function St(B,W,O,Q){let re=function Re(B){if(Zi(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,he=1,ve=1]=B.split("-").map(Qe=>+Qe);return Di(re,he-1,ve)}const O=parseFloat(B);if(!isNaN(B-O))return new Date(O);let Q;if(Q=B.match(oe))return function oi(B){const W=new Date(0);let O=0,Q=0;const re=B[8]?W.setUTCFullYear:W.setFullYear,he=B[8]?W.setUTCHours:W.setHours;B[9]&&(O=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(W,Number(B[1]),Number(B[2])-1,Number(B[3]));const ve=Number(B[4]||0)-O,Qe=Number(B[5]||0)-Q,Xt=Number(B[6]||0),Rt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return he.call(W,ve,Qe,Xt,Rt),W}(Q)}const W=new Date(B);if(!Zi(W))throw new Error(`Unable to convert "${B}" into a date`);return W}(B);W=Pt(O,W)||W;let Qe,ve=[];for(;W;){if(Qe=Se.exec(W),!Qe){ve.push(W);break}{ve=ve.concat(Qe.slice(1));const yt=ve.pop();if(!yt)break;W=yt}}let Xt=re.getTimezoneOffset();Q&&(Xt=as(Q,Xt),re=function w(B,W,O){const Q=O?-1:1,re=B.getTimezoneOffset();return function zs(B,W){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+W),B}(B,Q*(as(W,re)-re))}(re,Q,!0));let Rt="";return ve.forEach(yt=>{const wt=function rs(B){if(Vn[B])return Vn[B];let W;switch(B){case"G":case"GG":case"GGG":W=Vt(ze.Eras,ye.Abbreviated);break;case"GGGG":W=Vt(ze.Eras,ye.Wide);break;case"GGGGG":W=Vt(ze.Eras,ye.Narrow);break;case"y":W=qe(Ae.FullYear,1,0,!1,!0);break;case"yy":W=qe(Ae.FullYear,2,0,!0,!0);break;case"yyy":W=qe(Ae.FullYear,3,0,!1,!0);break;case"yyyy":W=qe(Ae.FullYear,4,0,!1,!0);break;case"Y":W=ea(1);break;case"YY":W=ea(2,!0);break;case"YYY":W=ea(3);break;case"YYYY":W=ea(4);break;case"M":case"L":W=qe(Ae.Month,1,1);break;case"MM":case"LL":W=qe(Ae.Month,2,1);break;case"MMM":W=Vt(ze.Months,ye.Abbreviated);break;case"MMMM":W=Vt(ze.Months,ye.Wide);break;case"MMMMM":W=Vt(ze.Months,ye.Narrow);break;case"LLL":W=Vt(ze.Months,ye.Abbreviated,we.Standalone);break;case"LLLL":W=Vt(ze.Months,ye.Wide,we.Standalone);break;case"LLLLL":W=Vt(ze.Months,ye.Narrow,we.Standalone);break;case"w":W=Xr(1);break;case"ww":W=Xr(2);break;case"W":W=Xr(1,!0);break;case"d":W=qe(Ae.Date,1);break;case"dd":W=qe(Ae.Date,2);break;case"c":case"cc":W=qe(Ae.Day,1);break;case"ccc":W=Vt(ze.Days,ye.Abbreviated,we.Standalone);break;case"cccc":W=Vt(ze.Days,ye.Wide,we.Standalone);break;case"ccccc":W=Vt(ze.Days,ye.Narrow,we.Standalone);break;case"cccccc":W=Vt(ze.Days,ye.Short,we.Standalone);break;case"E":case"EE":case"EEE":W=Vt(ze.Days,ye.Abbreviated);break;case"EEEE":W=Vt(ze.Days,ye.Wide);break;case"EEEEE":W=Vt(ze.Days,ye.Narrow);break;case"EEEEEE":W=Vt(ze.Days,ye.Short);break;case"a":case"aa":case"aaa":W=Vt(ze.DayPeriods,ye.Abbreviated);break;case"aaaa":W=Vt(ze.DayPeriods,ye.Wide);break;case"aaaaa":W=Vt(ze.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Standalone,!0);break;case"bbbb":W=Vt(ze.DayPeriods,ye.Wide,we.Standalone,!0);break;case"bbbbb":W=Vt(ze.DayPeriods,ye.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":W=Vt(ze.DayPeriods,ye.Abbreviated,we.Format,!0);break;case"BBBB":W=Vt(ze.DayPeriods,ye.Wide,we.Format,!0);break;case"BBBBB":W=Vt(ze.DayPeriods,ye.Narrow,we.Format,!0);break;case"h":W=qe(Ae.Hours,1,-12);break;case"hh":W=qe(Ae.Hours,2,-12);break;case"H":W=qe(Ae.Hours,1);break;case"HH":W=qe(Ae.Hours,2);break;case"m":W=qe(Ae.Minutes,1);break;case"mm":W=qe(Ae.Minutes,2);break;case"s":W=qe(Ae.Seconds,1);break;case"ss":W=qe(Ae.Seconds,2);break;case"S":W=qe(Ae.FractionalSeconds,1);break;case"SS":W=qe(Ae.FractionalSeconds,2);break;case"SSS":W=qe(Ae.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":W=$n(Ve.Short);break;case"ZZZZZ":W=$n(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":W=$n(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":W=$n(Ve.Long);break;default:return null}return Vn[B]=W,W}(yt);Rt+=wt?wt(re,O,Xt):"''"===yt?"'":yt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Rt}function Di(B,W,O){const Q=new Date(0);return Q.setFullYear(B,W,O),Q.setHours(0,0,0),Q}function Pt(B,W){const O=function Gt(B){return(0,T.cg1)(B)[T.wAp.LocaleId]}(B);if(De[O]=De[O]||{},De[O][W])return De[O][W];let Q="";switch(W){case"shortDate":Q=ri(B,ke.Short);break;case"mediumDate":Q=ri(B,ke.Medium);break;case"longDate":Q=ri(B,ke.Long);break;case"fullDate":Q=ri(B,ke.Full);break;case"shortTime":Q=va(B,ke.Short);break;case"mediumTime":Q=va(B,ke.Medium);break;case"longTime":Q=va(B,ke.Long);break;case"fullTime":Q=va(B,ke.Full);break;case"short":const re=Pt(B,"shortTime"),he=Pt(B,"shortDate");Q=xr(Cn(B,ke.Short),[re,he]);break;case"medium":const ve=Pt(B,"mediumTime"),Qe=Pt(B,"mediumDate");Q=xr(Cn(B,ke.Medium),[ve,Qe]);break;case"long":const Xt=Pt(B,"longTime"),Rt=Pt(B,"longDate");Q=xr(Cn(B,ke.Long),[Xt,Rt]);break;case"full":const yt=Pt(B,"fullTime"),wt=Pt(B,"fullDate");Q=xr(Cn(B,ke.Full),[yt,wt])}return Q&&(De[O][W]=Q),Q}function xr(B,W){return W&&(B=B.replace(/\{([^}]+)}/g,function(O,Q){return null!=W&&Q in W?W[Q]:O})),B}function Hi(B,W,O="-",Q,re){let he="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,he=O));let ve=String(B);for(;ve.length0||Qe>-O)&&(Qe+=O),B===Ae.Hours)0===Qe&&-12===O&&(Qe=12);else if(B===Ae.FractionalSeconds)return function nt(B,W){return Hi(B,3).substr(0,W)}(Qe,W);const Xt=Ni(ve,ge.MinusSign);return Hi(Qe,W,Xt,Q,re)}}function Vt(B,W,O=we.Format,Q=!1){return function(re,he){return function _t(B,W,O,Q,re,he){switch(O){case ze.Months:return function ht(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.MonthsFormat],Q[T.wAp.MonthsStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getMonth()];case ze.Days:return function tt(B,W,O){const Q=(0,T.cg1)(B),he=Bi([Q[T.wAp.DaysFormat],Q[T.wAp.DaysStandalone]],W);return Bi(he,O)}(W,re,Q)[B.getDay()];case ze.DayPeriods:const ve=B.getHours(),Qe=B.getMinutes();if(he){const Rt=function Xc(B){const W=(0,T.cg1)(B);return xa(W),(W[T.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?Zt(Q):[Zt(Q[0]),Zt(Q[1])])}(W),yt=function pt(B,W,O){const Q=(0,T.cg1)(B);xa(Q);const he=Bi([Q[T.wAp.ExtraData][0],Q[T.wAp.ExtraData][1]],W)||[];return Bi(he,O)||[]}(W,re,Q),wt=Rt.findIndex(Pi=>{if(Array.isArray(Pi)){const[di,mi]=Pi,sa=ve>=di.hours&&Qe>=di.minutes,hr=ve0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Ve.Short:return(re>=0?"+":"")+Hi(ve,2,he)+Hi(Math.abs(re%60),2,he);case Ve.ShortGMT:return"GMT"+(re>=0?"+":"")+Hi(ve,1,he);case Ve.Long:return"GMT"+(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);case Ve.Extended:return 0===Q?"Z":(re>=0?"+":"")+Hi(ve,2,he)+":"+Hi(Math.abs(re%60),2,he);default:throw new Error(`Unknown zone width "${B}"`)}}}function Ma(B){return Di(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function Xr(B,W=!1){return function(O,Q){let re;if(W){const he=new Date(O.getFullYear(),O.getMonth(),1).getDay()-1,ve=O.getDate();re=1+Math.floor((ve+he)/7)}else{const he=Ma(O),ve=function Nl(B){const W=Di(B,0,1).getDay();return Di(B,0,1+(W<=4?4:11)-W)}(he.getFullYear()),Qe=he.getTime()-ve.getTime();re=1+Math.round(Qe/6048e5)}return Hi(re,B,Ni(Q,ge.MinusSign))}}function ea(B,W=!1){return function(O,Q){return Hi(Ma(O).getFullYear(),B,Ni(Q,ge.MinusSign),W)}}const Vn={};function as(B,W){B=B.replace(/:/g,"");const O=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(O)?W:O}function Zi(B){return B instanceof Date&&!isNaN(B.valueOf())}class ti{}let Mr=(()=>{class B extends ti{constructor(O){super(),this.locale=O}getPluralCategory(O,Q){switch(Kr(Q||this.locale)(O)){case _e.Zero:return"zero";case _e.One:return"one";case _e.Two:return"two";case _e.Few:return"few";case _e.Many:return"many";default:return"other"}}}return B.\u0275fac=function(O){return new(O||B)(T.LFG(T.soG))},B.\u0275prov=T.Yz7({token:B,factory:B.\u0275fac}),B})();function Po(B,W){W=encodeURIComponent(W);for(const O of B.split(";")){const Q=O.indexOf("="),[re,he]=-1==Q?[O,""]:[O.slice(0,Q),O.slice(Q+1)];if(re.trim()===W)return decodeURIComponent(he)}return null}let Sa=(()=>{class B{constructor(O,Q,re,he){this._iterableDiffers=O,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=he,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(O){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof O?O.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(O){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof O?O.split(/\s+/):O,this._rawClass&&((0,T.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const O=this._iterableDiffer.diff(this._rawClass);O&&this._applyIterableChanges(O)}else if(this._keyValueDiffer){const O=this._keyValueDiffer.diff(this._rawClass);O&&this._applyKeyValueChanges(O)}}_applyKeyValueChanges(O){O.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),O.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(O){O.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,T.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),O.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!!O[Q])))}_removeClasses(O){O&&(Array.isArray(O)||O instanceof Set?O.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(O).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(O,Q){(O=O.trim())&&O.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.ZZ4),T.Y36(T.aQg),T.Y36(T.SBq),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class ss{constructor(W,O,Q,re){this.$implicit=W,this.ngForOf=O,this.index=Q,this.count=re}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 tn=(()=>{class B{constructor(O,Q,re){this._viewContainer=O,this._template=Q,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const Q=this._viewContainer;O.forEachOperation((re,he,ve)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new ss(re.item,this._ngForOf,-1,-1),null===ve?void 0:ve);else if(null==ve)Q.remove(null===he?void 0:he);else if(null!==he){const Qe=Q.get(he);Q.move(Qe,ve),Ea(Qe,re)}});for(let re=0,he=Q.length;re{Ea(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(T.ZZ4))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ea(B,W){B.context.$implicit=W.item}let jn=(()=>{class B{constructor(O,Q){this._viewContainer=O,this._context=new ii,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ul("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ul("ngIfElse",O),this._elseTemplateRef=O,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(O,Q){return!0}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class ii{constructor(){this.$implicit=null,this.ngIf=null}}function Ul(B,W){if(W&&!W.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,T.AaK)(W)}'.`)}class Da{constructor(W,O){this._viewContainerRef=W,this._templateRef=O,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 _n=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(O){this._ngSwitch=O,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(O){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(O)}_matchCase(O){const Q=O==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(O){if(this._defaultViews&&O!==this._defaultUsed){this._defaultUsed=O;for(let Q=0;Q{class B{constructor(O,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Da(O,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Ro=(()=>{class B{constructor(O,Q,re){re._addDefault(new Da(O,Q))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b),T.Y36(T.Rgc),T.Y36(_n,9))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),os=(()=>{class B{constructor(O,Q,re){this._ngEl=O,this._differs=Q,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(O){this._ngStyle=O,!this._differ&&O&&(this._differ=this._differs.find(O).create())}ngDoCheck(){if(this._differ){const O=this._differ.diff(this._ngStyle);O&&this._applyChanges(O)}}_setStyle(O,Q){const[re,he]=O.split(".");null!=(Q=null!=Q&&he?`${Q}${he}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(O){O.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),O.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),O.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.SBq),T.Y36(T.aQg),T.Y36(T.Qsj))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})(),Sr=(()=>{class B{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(O){if(O.ngTemplateOutlet){const Q=this._viewContainerRef;this._viewRef&&Q.remove(Q.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?Q.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&O.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.s_b))},B.\u0275dir=T.lG2({type:B,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[T.TTD]}),B})();function Qn(B,W){return new T.vHH(2100,"")}class xf{createSubscription(W,O){return W.subscribe({next:O,error:Q=>{throw Q}})}dispose(W){W.unsubscribe()}onDestroy(W){W.unsubscribe()}}class Mf{createSubscription(W,O){return W.then(O,Q=>{throw Q})}dispose(W){}onDestroy(W){}}const Sf=new Mf,Ef=new xf;let $u=(()=>{class B{constructor(O){this._ref=O,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(O){return this._obj?O!==this._obj?(this._dispose(),this.transform(O)):this._latestValue:(O&&this._subscribe(O),this._latestValue)}_subscribe(O){this._obj=O,this._strategy=this._selectStrategy(O),this._subscription=this._strategy.createSubscription(O,Q=>this._updateLatestValue(O,Q))}_selectStrategy(O){if((0,T.QGY)(O))return Sf;if((0,T.F4k)(O))return Ef;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(O,Q){O===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.sBO,16))},B.\u0275pipe=T.Yjl({name:"async",type:B,pure:!1}),B})();const dn=new T.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Ne=(()=>{class B{constructor(O,Q){this.locale=O,this.defaultTimezone=Q}transform(O,Q="mediumDate",re,he){var ve;if(null==O||""===O||O!=O)return null;try{return St(O,Q,he||this.locale,null!==(ve=null!=re?re:this.defaultTimezone)&&void 0!==ve?ve:void 0)}catch(Qe){throw Qn()}}}return B.\u0275fac=function(O){return new(O||B)(T.Y36(T.soG,16),T.Y36(dn,24))},B.\u0275pipe=T.Yjl({name:"date",type:B,pure:!0}),B})(),jt=(()=>{class B{}return B.\u0275fac=function(O){return new(O||B)},B.\u0275mod=T.oAB({type:B}),B.\u0275inj=T.cJS({providers:[{provide:ti,useClass:Mr}]}),B})();const ls="browser";function xn(B){return B===ls}let ra=(()=>{class B{}return B.\u0275prov=(0,T.Yz7)({token:B,providedIn:"root",factory:()=>new aa((0,T.LFG)(L),window)}),B})();class aa{constructor(W,O){this.document=W,this.window=O,this.offset=()=>[0,0]}setOffset(W){this.offset=Array.isArray(W)?()=>W:W}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(W){this.supportsScrolling()&&this.window.scrollTo(W[0],W[1])}scrollToAnchor(W){if(!this.supportsScrolling())return;const O=function Zs(B,W){const O=B.getElementById(W)||B.getElementsByName(W)[0];if(O)return O;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const he=re.shadowRoot;if(he){const ve=he.getElementById(W)||he.querySelector(`[name="${W}"]`);if(ve)return ve}re=Q.nextNode()}}return null}(this.document,W);O&&(this.scrollToElement(O),O.focus())}setHistoryScrollRestoration(W){if(this.supportScrollRestoration()){const O=this.window.history;O&&O.scrollRestoration&&(O.scrollRestoration=W)}}scrollToElement(W){const O=W.getBoundingClientRect(),Q=O.left+this.window.pageXOffset,re=O.top+this.window.pageYOffset,he=this.offset();this.window.scrollTo(Q-he[0],re-he[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const W=Gl(this.window.history)||Gl(Object.getPrototypeOf(this.window.history));return!(!W||!W.writable&&!W.set)}catch(W){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(W){return!1}}}function Gl(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class fi{}},520:(z,G,x)=>{"use strict";x.d(G,{TP:()=>Gt,eN:()=>ge,JF:()=>Bi,qT:()=>Be,WM:()=>Y,LE:()=>me,Zn:()=>we});var T=x(9808),i=x(5e3),E=x(1086),M=x(2916),S=x(1406),P=x(2198),L=x(4850);class V{}class U{}class Y{constructor(le){this.normalizedNames=new Map,this.lazyUpdate=null,le?this.lazyInit="string"==typeof le?()=>{this.headers=new Map,le.split("\n").forEach(oe=>{const De=oe.indexOf(":");if(De>0){const Se=oe.slice(0,De),Ve=Se.toLowerCase(),Ae=oe.slice(De+1).trim();this.maybeSetNormalizedName(Se,Ve),this.headers.has(Ve)?this.headers.get(Ve).push(Ae):this.headers.set(Ve,[Ae])}})}:()=>{this.headers=new Map,Object.keys(le).forEach(oe=>{let De=le[oe];const Se=oe.toLowerCase();"string"==typeof De&&(De=[De]),De.length>0&&(this.headers.set(Se,De),this.maybeSetNormalizedName(oe,Se))})}:this.headers=new Map}has(le){return this.init(),this.headers.has(le.toLowerCase())}get(le){this.init();const oe=this.headers.get(le.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(le){return this.init(),this.headers.get(le.toLowerCase())||null}append(le,oe){return this.clone({name:le,value:oe,op:"a"})}set(le,oe){return this.clone({name:le,value:oe,op:"s"})}delete(le,oe){return this.clone({name:le,value:oe,op:"d"})}maybeSetNormalizedName(le,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,le)}init(){this.lazyInit&&(this.lazyInit instanceof Y?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(le=>this.applyUpdate(le)),this.lazyUpdate=null))}copyFrom(le){le.init(),Array.from(le.headers.keys()).forEach(oe=>{this.headers.set(oe,le.headers.get(oe)),this.normalizedNames.set(oe,le.normalizedNames.get(oe))})}clone(le){const oe=new Y;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof Y?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([le]),oe}applyUpdate(le){const oe=le.name.toLowerCase();switch(le.op){case"a":case"s":let De=le.value;if("string"==typeof De&&(De=[De]),0===De.length)return;this.maybeSetNormalizedName(le.name,oe);const Se=("a"===le.op?this.headers.get(oe):void 0)||[];Se.push(...De),this.headers.set(oe,Se);break;case"d":const Ve=le.value;if(Ve){let Ae=this.headers.get(oe);if(!Ae)return;Ae=Ae.filter(ze=>-1===Ve.indexOf(ze)),0===Ae.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,Ae)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>le(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(le){return ne(le)}encodeValue(le){return ne(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const te=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(te,(le,oe)=>{var De;return null!==(De=ce[oe])&&void 0!==De?De:le})}function de(Te){return`${Te}`}class me{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new $,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,le){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(Se=>{const Ve=Se.indexOf("="),[Ae,ze]=-1==Ve?[le.decodeKey(Se),""]:[le.decodeKey(Se.slice(0,Ve)),le.decodeValue(Se.slice(Ve+1))],St=oe.get(Ae)||[];St.push(ze),oe.set(Ae,St)}),oe}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(oe=>{const De=le.fromObject[oe];this.map.set(oe,Array.isArray(De)?De:[De])})):this.map=null}has(le){return this.init(),this.map.has(le)}get(le){this.init();const oe=this.map.get(le);return oe?oe[0]:null}getAll(le){return this.init(),this.map.get(le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(le,oe){return this.clone({param:le,value:oe,op:"a"})}appendAll(le){const oe=[];return Object.keys(le).forEach(De=>{const Se=le[De];Array.isArray(Se)?Se.forEach(Ve=>{oe.push({param:De,value:Ve,op:"a"})}):oe.push({param:De,value:Se,op:"a"})}),this.clone(oe)}set(le,oe){return this.clone({param:le,value:oe,op:"s"})}delete(le,oe){return this.clone({param:le,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(le=>{const oe=this.encoder.encodeKey(le);return this.map.get(le).map(De=>oe+"="+this.encoder.encodeValue(De)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(le),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(le=>this.map.set(le,this.cloneFrom.map.get(le))),this.updates.forEach(le=>{switch(le.op){case"a":case"s":const oe=("a"===le.op?this.map.get(le.param):void 0)||[];oe.push(de(le.value)),this.map.set(le.param,oe);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let De=this.map.get(le.param)||[];const Se=De.indexOf(de(le.value));-1!==Se&&De.splice(Se,1),De.length>0?this.map.set(le.param,De):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class Be{constructor(){this.map=new Map}set(le,oe){return this.map.set(le,oe),this}get(le){return this.map.has(le)||this.map.set(le,le.defaultValue()),this.map.get(le)}delete(le){return this.map.delete(le),this}has(le){return this.map.has(le)}keys(){return this.map.keys()}}function It(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function kt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Ke(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class xt{constructor(le,oe,De,Se){let Ve;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function Ze(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Se?(this.body=void 0!==De?De:null,Ve=Se):Ve=De,Ve&&(this.reportProgress=!!Ve.reportProgress,this.withCredentials=!!Ve.withCredentials,Ve.responseType&&(this.responseType=Ve.responseType),Ve.headers&&(this.headers=Ve.headers),Ve.context&&(this.context=Ve.context),Ve.params&&(this.params=Ve.params)),this.headers||(this.headers=new Y),this.context||(this.context=new Be),this.params){const Ae=this.params.toString();if(0===Ae.length)this.urlWithParams=oe;else{const ze=oe.indexOf("?");this.urlWithParams=oe+(-1===ze?"?":zeHi.set(nt,le.setHeaders[nt]),Di)),le.setParams&&(Pt=Object.keys(le.setParams).reduce((Hi,nt)=>Hi.set(nt,le.setParams[nt]),Pt)),new xt(De,Se,Ae,{params:Pt,headers:Di,context:xr,reportProgress:St,responseType:Ve,withCredentials:ze})}}var mt=(()=>((mt=mt||{})[mt.Sent=0]="Sent",mt[mt.UploadProgress=1]="UploadProgress",mt[mt.ResponseHeader=2]="ResponseHeader",mt[mt.DownloadProgress=3]="DownloadProgress",mt[mt.Response=4]="Response",mt[mt.User=5]="User",mt))();class fe{constructor(le,oe=200,De="OK"){this.headers=le.headers||new Y,this.status=void 0!==le.status?le.status:oe,this.statusText=le.statusText||De,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends fe{constructor(le={}){super(le),this.type=mt.ResponseHeader}clone(le={}){return new _e({headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class we extends fe{constructor(le={}){super(le),this.type=mt.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new we({body:void 0!==le.body?le.body:this.body,headers:le.headers||this.headers,status:void 0!==le.status?le.status:this.status,statusText:le.statusText||this.statusText,url:le.url||this.url||void 0})}}class ye extends fe{constructor(le){super(le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${le.url||"(unknown url)"}`:`Http failure response for ${le.url||"(unknown url)"}: ${le.status} ${le.statusText}`,this.error=le.error||null}}function ke(Te,le){return{body:le,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,De,Se={}){let Ve;if(oe instanceof xt)Ve=oe;else{let St,Di;St=Se.headers instanceof Y?Se.headers:new Y(Se.headers),Se.params&&(Di=Se.params instanceof me?Se.params:new me({fromObject:Se.params})),Ve=new xt(oe,De,void 0!==Se.body?Se.body:null,{headers:St,context:Se.context,params:Di,reportProgress:Se.reportProgress,responseType:Se.responseType||"json",withCredentials:Se.withCredentials})}const Ae=(0,E.of)(Ve).pipe((0,S.b)(St=>this.handler.handle(St)));if(oe instanceof xt||"events"===Se.observe)return Ae;const ze=Ae.pipe((0,P.h)(St=>St instanceof we));switch(Se.observe||"body"){case"body":switch(Ve.responseType){case"arraybuffer":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return St.body}));case"blob":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&!(St.body instanceof Blob))throw new Error("Response is not a Blob.");return St.body}));case"text":return ze.pipe((0,L.U)(St=>{if(null!==St.body&&"string"!=typeof St.body)throw new Error("Response is not a string.");return St.body}));default:return ze.pipe((0,L.U)(St=>St.body))}case"response":return ze;default:throw new Error(`Unreachable: unhandled observe type ${Se.observe}}`)}}delete(oe,De={}){return this.request("DELETE",oe,De)}get(oe,De={}){return this.request("GET",oe,De)}head(oe,De={}){return this.request("HEAD",oe,De)}jsonp(oe,De){return this.request("JSONP",oe,{params:(new me).append(De,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,De={}){return this.request("OPTIONS",oe,De)}patch(oe,De,Se={}){return this.request("PATCH",oe,ke(Se,De))}post(oe,De,Se={}){return this.request("POST",oe,ke(Se,De))}put(oe,De,Se={}){return this.request("PUT",oe,ke(Se,De))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(V))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Mt{constructor(le,oe){this.next=le,this.interceptor=oe}handle(le){return this.interceptor.intercept(le,this.next)}}const Gt=new i.OlP("HTTP_INTERCEPTORS");let yi=(()=>{class Te{intercept(oe,De){return De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Cn=/^\)\]\}',?\n/;let Qr=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(De=>{const Se=this.xhrFactory.build();if(Se.open(oe.method,oe.urlWithParams),oe.withCredentials&&(Se.withCredentials=!0),oe.headers.forEach((nt,qe)=>Se.setRequestHeader(nt,qe.join(","))),oe.headers.has("Accept")||Se.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const nt=oe.detectContentTypeHeader();null!==nt&&Se.setRequestHeader("Content-Type",nt)}if(oe.responseType){const nt=oe.responseType.toLowerCase();Se.responseType="json"!==nt?nt:"text"}const Ve=oe.serializeBody();let Ae=null;const ze=()=>{if(null!==Ae)return Ae;const nt=Se.statusText||"OK",qe=new Y(Se.getAllResponseHeaders()),An=function Ni(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(Se)||oe.url;return Ae=new _e({headers:qe,status:Se.status,statusText:nt,url:An}),Ae},St=()=>{let{headers:nt,status:qe,statusText:An,url:Vt}=ze(),_t=null;204!==qe&&(_t=void 0===Se.response?Se.responseText:Se.response),0===qe&&(qe=_t?200:0);let $n=qe>=200&&qe<300;if("json"===oe.responseType&&"string"==typeof _t){const Bn=_t;_t=_t.replace(Cn,"");try{_t=""!==_t?JSON.parse(_t):null}catch(vn){_t=Bn,$n&&($n=!1,_t={error:vn,text:_t})}}$n?(De.next(new we({body:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0})),De.complete()):De.error(new ye({error:_t,headers:nt,status:qe,statusText:An,url:Vt||void 0}))},Di=nt=>{const{url:qe}=ze(),An=new ye({error:nt,status:Se.status||0,statusText:Se.statusText||"Unknown Error",url:qe||void 0});De.error(An)};let Pt=!1;const xr=nt=>{Pt||(De.next(ze()),Pt=!0);let qe={type:mt.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),"text"===oe.responseType&&!!Se.responseText&&(qe.partialText=Se.responseText),De.next(qe)},Hi=nt=>{let qe={type:mt.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(qe.total=nt.total),De.next(qe)};return Se.addEventListener("load",St),Se.addEventListener("error",Di),Se.addEventListener("timeout",Di),Se.addEventListener("abort",Di),oe.reportProgress&&(Se.addEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.addEventListener("progress",Hi)),Se.send(Ve),De.next({type:mt.Sent}),()=>{Se.removeEventListener("error",Di),Se.removeEventListener("abort",Di),Se.removeEventListener("load",St),Se.removeEventListener("timeout",Di),oe.reportProgress&&(Se.removeEventListener("progress",xr),null!==Ve&&Se.upload&&Se.upload.removeEventListener("progress",Hi)),Se.readyState!==Se.DONE&&Se.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Ns=new i.OlP("XSRF_COOKIE_NAME"),Ys=new i.OlP("XSRF_HEADER_NAME");class Us{}let Ta=(()=>{class Te{constructor(oe,De,Se){this.doc=oe,this.platform=De,this.cookieName=Se,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,T.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(T.K0),i.LFG(i.Lbi),i.LFG(Ns))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Kr=(()=>{class Te{constructor(oe,De){this.tokenService=oe,this.headerName=De}intercept(oe,De){const Se=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||Se.startsWith("http://")||Se.startsWith("https://"))return De.handle(oe);const Ve=this.tokenService.getToken();return null!==Ve&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Ve)})),De.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(Us),i.LFG(Ys))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),xa=(()=>{class Te{constructor(oe,De){this.backend=oe,this.injector=De,this.chain=null}handle(oe){if(null===this.chain){const De=this.injector.get(Gt,[]);this.chain=De.reduceRight((Se,Ve)=>new Mt(Se,Ve),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(U),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ko=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Kr,useClass:yi}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:Ns,useValue:oe.cookieName}:[],oe.headerName?{provide:Ys,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Kr,{provide:Gt,useExisting:Kr,multi:!0},{provide:Us,useClass:Ta},{provide:Ns,useValue:"XSRF-TOKEN"},{provide:Ys,useValue:"X-XSRF-TOKEN"}]}),Te})(),Bi=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:V,useClass:xa},Qr,{provide:U,useExisting:Qr}],imports:[[ko.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(z,G,x)=>{"use strict";x.d(G,{deG:()=>oo,tb:()=>l_,AFp:()=>Ml,ip1:()=>o_,CZH:()=>xl,hGG:()=>Cx,z2F:()=>Iu,sBO:()=>ax,Sil:()=>Ls,_Vd:()=>Cu,EJc:()=>d_,SBq:()=>Au,qLn:()=>Fa,vpe:()=>ga,tBr:()=>ho,XFs:()=>pt,OlP:()=>si,zs3:()=>jr,ZZ4:()=>af,aQg:()=>sf,soG:()=>Kp,YKP:()=>bw,h0i:()=>Al,PXZ:()=>ex,R0b:()=>Ar,FiY:()=>Va,Lbi:()=>GT,g9A:()=>jw,n_E:()=>Su,Qsj:()=>vT,FYo:()=>cw,JOm:()=>Ms,q3G:()=>Fi,tp0:()=>po,Rgc:()=>Rc,dDg:()=>Ww,GfV:()=>uw,s_b:()=>Du,ifc:()=>Ve,eFA:()=>Jw,G48:()=>tC,Gpc:()=>$,f3M:()=>Wf,_c5:()=>dC,VLi:()=>KT,c2e:()=>c_,zSh:()=>qd,wAp:()=>ot,vHH:()=>ne,EiD:()=>Q_,mCW:()=>Th,qzn:()=>lc,JVY:()=>ZC,pB0:()=>QC,eBb:()=>JC,L6k:()=>$C,LAX:()=>G_,cg1:()=>gp,kL8:()=>hu,yhl:()=>Dd,dqk:()=>Pt,sIi:()=>bc,CqO:()=>_y,QGY:()=>au,F4k:()=>su,RDi:()=>Gl,AaK:()=>V,z3N:()=>Ts,qOj:()=>ct,TTD:()=>Kn,_Bn:()=>sw,xp6:()=>TA,uIk:()=>Jd,Tol:()=>Dy,Gre:()=>Nv,ekj:()=>dp,Suo:()=>Hw,Xpm:()=>Ma,lG2:()=>Re,Yz7:()=>ri,cJS:()=>Cn,oAB:()=>as,Yjl:()=>oi,Y36:()=>Ao,_UZ:()=>my,GkF:()=>gy,BQk:()=>nu,ynx:()=>eg,qZA:()=>Xm,TgZ:()=>Ac,EpF:()=>ru,n5z:()=>tc,Ikx:()=>mp,LFG:()=>Ji,$8M:()=>_d,$Z:()=>fy,NdJ:()=>ip,CRH:()=>IT,kcU:()=>Fo,O4$:()=>th,oxw:()=>by,ALo:()=>Ps,lcZ:()=>Oi,xi3:()=>Fg,Dn7:()=>Ng,Hsn:()=>rp,F$t:()=>ng,Q6J:()=>Ds,s9C:()=>ap,DdM:()=>Ii,VKq:()=>DT,WLB:()=>Ep,iGM:()=>Dw,MAs:()=>Xd,Jf7:()=>hA,CHM:()=>Wl,oJD:()=>am,LSH:()=>sm,Udp:()=>cp,WFA:()=>tg,d8E:()=>yg,YNc:()=>Kd,W1O:()=>kw,_uU:()=>ky,Oqu:()=>fg,hij:()=>hp,AsE:()=>mg,xDo:()=>Si,Gf:()=>Vp});var T=x(8929),i=x(2654),E=x(2916),M=x(6787),S=x(2474);function P(p){for(let f in p)if(p[f]===P)return f;throw Error("Could not find renamed property on target object.")}function L(p,f){for(const g in f)f.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=f[g])}function V(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(V).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const f=p.toString();if(null==f)return""+f;const g=f.indexOf("\n");return-1===g?f:f.substring(0,g)}function U(p,f){return null==p||""===p?null===f?"":f:null==f||""===f?p:p+" "+f}const Y=P({__forward_ref__:P});function $(p){return p.__forward_ref__=$,p.toString=function(){return V(this())},p}function X(p){return te(p)?p():p}function te(p){return"function"==typeof p&&p.hasOwnProperty(Y)&&p.__forward_ref__===$}class ne extends Error{constructor(f,g){super(function de(p,f){return`NG0${Math.abs(p)}${f?": "+f:""}`}(f,g)),this.code=f}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ie(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function kt(p,f){const g=f?` in ${f}`:"";throw new ne(-201,`No provider for ${Ie(p)} found${g}`)}function tt(p,f){null==p&&function ht(p,f,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${f} <=Actual]`))}(f,p,null,"!=")}function ri(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function Cn(p){return{providers:p.providers||[],imports:p.imports||[]}}function Ni(p){return Qr(p,Ta)||Qr(p,xa)}function Qr(p,f){return p.hasOwnProperty(f)?p[f]:null}function Us(p){return p&&(p.hasOwnProperty(Kr)||p.hasOwnProperty(Xc))?p[Kr]:null}const Ta=P({\u0275prov:P}),Kr=P({\u0275inj:P}),xa=P({ngInjectableDef:P}),Xc=P({ngInjectorDef:P});var pt=(()=>((pt=pt||{})[pt.Default=0]="Default",pt[pt.Host=1]="Host",pt[pt.Self=2]="Self",pt[pt.SkipSelf=4]="SkipSelf",pt[pt.Optional=8]="Optional",pt))();let ko;function Zt(p){const f=ko;return ko=p,f}function ln(p,f,g){const _=Ni(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&pt.Optional?null:void 0!==f?f:void kt(V(p),"Injector")}function le(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Ve=(()=>{return(p=Ve||(Ve={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Ve;var p})();const Ae="undefined"!=typeof globalThis&&globalThis,ze="undefined"!=typeof window&&window,St="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Pt=Ae||"undefined"!=typeof global&&global||ze||St,nt={},qe=[],An=P({\u0275cmp:P}),Vt=P({\u0275dir:P}),_t=P({\u0275pipe:P}),$n=P({\u0275mod:P}),Bn=P({\u0275fac:P}),vn=P({__NG_ELEMENT_ID__:P});let Nl=0;function Ma(p){return le(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||qe,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Ve.Emulated,id:"c",styles:p.styles||qe,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=Nl++,_.inputs=w(p.inputs,g),_.outputs=w(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ea):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(Vn):null,_})}function ea(p){return Zi(p)||function Ge(p){return p[Vt]||null}(p)}function Vn(p){return function Jn(p){return p[_t]||null}(p)}const rs={};function as(p){return le(()=>{const f={type:p.type,bootstrap:p.bootstrap||qe,declarations:p.declarations||qe,imports:p.imports||qe,exports:p.exports||qe,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(rs[p.id]=p.type),f})}function w(p,f){if(null==p)return nt;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,f&&(f[y]=v)}return g}const Re=Ma;function oi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function Zi(p){return p[An]||null}function gt(p,f){const g=p[$n]||null;if(!g&&!0===f)throw new Error(`Type ${V(p)} does not have '\u0275mod' property.`);return g}function _n(p){return Array.isArray(p)&&"object"==typeof p[1]}function Fn(p){return Array.isArray(p)&&!0===p[1]}function Ro(p){return 0!=(8&p.flags)}function Ha(p){return 2==(2&p.flags)}function ia(p){return 1==(1&p.flags)}function Nn(p){return null!==p.template}function os(p){return 0!=(512&p[2])}function Tn(p,f){return p.hasOwnProperty(Bn)?p[Bn]:null}class ur{constructor(f,g,_){this.previousValue=f,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Kn(){return Ws}function Ws(p){return p.type.prototype.ngOnChanges&&(p.setInput=nn),dt}function dt(){const p=ls(this),f=null==p?void 0:p.current;if(f){const g=p.previous;if(g===nt)p.previous=f;else for(let _ in f)g[_]=f[_];p.current=null,this.ngOnChanges(f)}}function nn(p,f,g,_){const y=ls(p)||function Wt(p,f){return p[jt]=f}(p,{previous:nt,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],R=D[k];v[k]=new ur(R&&R.currentValue,f,D===nt),p[_]=f}Kn.ngInherit=!0;const jt="__ngSimpleChanges__";function ls(p){return p[jt]||null}let aa;function Gl(p){aa=p}function Zs(){return void 0!==aa?aa:"undefined"!=typeof document?document:void 0}function fi(p){return!!p.listen}const B={createRenderer:(p,f)=>Zs()};function O(p){for(;Array.isArray(p);)p=p[0];return p}function he(p,f){return O(f[p])}function ve(p,f){return O(f[p.index])}function Xt(p,f){return p.data[f]}function Rt(p,f){return p[f]}function yt(p,f){const g=f[p];return _n(g)?g:g[0]}function wt(p){return 4==(4&p[2])}function Pi(p){return 128==(128&p[2])}function mi(p,f){return null==f?null:p[f]}function sa(p){p[18]=0}function hr(p,f){p[5]+=f;let g=p,_=p[3];for(;null!==_&&(1===f&&1===g[5]||-1===f&&0===g[5]);)_[5]+=f,g=_,_=_[3]}const rt={lFrame:Pa(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ku(){return rt.bindingsEnabled}function Me(){return rt.lFrame.lView}function Ye(){return rt.lFrame.tView}function Wl(p){return rt.lFrame.contextLView=p,p[8]}function gi(){let p=id();for(;null!==p&&64===p.type;)p=p.parent;return p}function id(){return rt.lFrame.currentTNode}function Dr(p,f){const g=rt.lFrame;g.currentTNode=p,g.isParent=f}function Zl(){return rt.lFrame.isParent}function nd(){rt.lFrame.isParent=!1}function Oo(){return rt.isInCheckNoChangesMode}function Bo(p){rt.isInCheckNoChangesMode=p}function bn(){const p=rt.lFrame;let f=p.bindingRootIndex;return-1===f&&(f=p.bindingRootIndex=p.tView.bindingStartIndex),f}function ui(){return rt.lFrame.bindingIndex}function Qs(){return rt.lFrame.bindingIndex++}function zn(p){const f=rt.lFrame,g=f.bindingIndex;return f.bindingIndex=f.bindingIndex+p,g}function kf(p,f){const g=rt.lFrame;g.bindingIndex=g.bindingRootIndex=p,Ks(f)}function Ks(p){rt.lFrame.currentDirectiveIndex=p}function Xs(p){const f=rt.lFrame.currentDirectiveIndex;return-1===f?null:p[f]}function ad(){return rt.lFrame.currentQueryIndex}function us(p){rt.lFrame.currentQueryIndex=p}function hs(p){const f=p[1];return 2===f.type?f.declTNode:1===f.type?p[6]:null}function Lt(p,f,g){if(g&pt.SkipSelf){let y=f,v=p;for(;!(y=y.parent,null!==y||g&pt.Host||(y=hs(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;f=y,p=v}const _=rt.lFrame=$l();return _.currentTNode=f,_.lView=p,!0}function kr(p){const f=$l(),g=p[1];rt.lFrame=f,f.currentTNode=g.firstChild,f.lView=p,f.tView=g,f.contextLView=p,f.bindingIndex=g.bindingStartIndex,f.inI18n=!1}function $l(){const p=rt.lFrame,f=null===p?null:p.child;return null===f?Pa(p):f}function Pa(p){const f={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:p,child:null,inI18n:!1};return null!==p&&(p.child=f),f}function eh(){const p=rt.lFrame;return rt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const sd=eh;function jo(){const p=eh();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Ui(){return rt.lFrame.selectedIndex}function oa(p){rt.lFrame.selectedIndex=p}function hi(){const p=rt.lFrame;return Xt(p.tView,p.selectedIndex)}function th(){rt.lFrame.currentNamespace="svg"}function Fo(){!function ih(){rt.lFrame.currentNamespace=null}()}function No(p,f){for(let g=f.directiveStart,_=f.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:R,ngAfterViewChecked:N,ngOnDestroy:q}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),R&&(p.viewHooks||(p.viewHooks=[])).push(-g,R),N&&((p.viewHooks||(p.viewHooks=[])).push(g,N),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,N)),null!=q&&(p.destroyHooks||(p.destroyHooks=[])).push(g,q)}}function Kl(p,f,g){nh(p,f,3,g)}function Ra(p,f,g,_){(3&p[2])===g&&nh(p,f,g,_)}function Xl(p,f){let g=p[2];(3&g)===f&&(g&=2047,g+=1,p[2]=g)}function nh(p,f,g,_){const v=null!=_?_:-1,D=f.length-1;let k=0;for(let R=void 0!==_?65535&p[18]:0;R=_)break}else f[R]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===f){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class Yo{constructor(f,g,_){this.factory=f,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function yn(p,f,g){const _=fi(p);let y=0;for(;yf){D=v-1;break}}}for(;v>16}(p),_=f;for(;g>0;)_=_[15],g--;return _}let hd=!0;function Ia(p){const f=hd;return hd=p,f}let Uo=0;function Oa(p,f){const g=ca(p,f);if(-1!==g)return g;const _=f[1];_.firstCreatePass&&(p.injectorIndex=f.length,bs(_.data,p),bs(f,null),bs(_.blueprint,null));const y=ys(p,f),v=p.injectorIndex;if(gs(y)){const D=_s(y),k=La(y,f),R=k[1].data;for(let N=0;N<8;N++)f[v+N]=k[D+N]|R[D+N]}return f[v+8]=y,v}function bs(p,f){p.push(0,0,0,0,0,0,0,0,f)}function ca(p,f){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===f[p.injectorIndex+8]?-1:p.injectorIndex}function ys(p,f){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=f;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function ws(p,f,g){!function to(p,f,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(vn)&&(_=g[vn]),null==_&&(_=g[vn]=Uo++);const y=255&_;f.data[p+(y>>5)]|=1<=0?255&f:If:f}(g);if("function"==typeof v){if(!Lt(f,p,_))return _&pt.Host?pd(y,g,_):fd(f,g,_,y);try{const D=v(_);if(null!=D||_&pt.Optional)return D;kt(g)}finally{sd()}}else if("number"==typeof v){let D=null,k=ca(p,f),R=-1,N=_&pt.Host?f[16][6]:null;for((-1===k||_&pt.SkipSelf)&&(R=-1===k?ys(p,f):f[k+8],-1!==R&&dh(_,!1)?(D=f[1],k=_s(R),f=La(R,f)):k=-1);-1!==k;){const q=f[1];if(ch(v,k,q.data)){const ee=gd(k,f,g,D,_,N);if(ee!==zo)return ee}R=f[k+8],-1!==R&&dh(_,f[1].data[k+8]===N)&&ch(v,k,f)?(D=q,k=_s(R),f=La(R,f)):k=-1}}}return fd(f,g,_,y)}const zo={};function If(){return new ro(gi(),Me())}function gd(p,f,g,_,y,v){const D=f[1],k=D.data[p+8],q=ec(k,D,g,null==_?Ha(k)&&hd:_!=D&&0!=(3&k.type),y&pt.Host&&v===k);return null!==q?no(f,D,q,k):zo}function ec(p,f,g,_,y){const v=p.providerIndexes,D=f.data,k=1048575&v,R=p.directiveStart,q=v>>20,se=y?k+q:p.directiveEnd;for(let ue=_?k:k+q;ue=R&&Ce.type===g)return ue}if(y){const ue=D[R];if(ue&&Nn(ue)&&ue.type===g)return R}return null}function no(p,f,g,_){let y=p[g];const v=f.data;if(function rh(p){return p instanceof Yo}(y)){const D=y;D.resolving&&function Be(p,f){const g=f?`. Dependency path: ${f.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ie(v[g]));const k=Ia(D.canSeeViewProviders);D.resolving=!0;const R=D.injectImpl?Zt(D.injectImpl):null;Lt(p,_,pt.Default);try{y=p[g]=D.factory(void 0,v,p,_),f.firstCreatePass&&g>=_.directiveStart&&function ps(p,f,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=f.type.prototype;if(_){const D=Ws(f);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],f)}finally{null!==R&&Zt(R),Ia(k),D.resolving=!1,sd()}}return y}function ch(p,f,g){return!!(g[f+(p>>5)]&1<{const f=p.prototype.constructor,g=f[Bn]||Pr(f),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Bn]||Pr(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Pr(p){return te(p)?()=>{const f=Pr(X(p));return f&&f()}:Tn(p)}function _d(p){return function io(p,f){if("class"===f)return p.classes;if("style"===f)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ld(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===f)return g[y+1];y+=2}}}return null}(gi(),p)}const ao="__parameters__";function Rr(p,f,g){return le(()=>{const _=function bd(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(f);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(R,N,q){const ee=R.hasOwnProperty(ao)?R[ao]:Object.defineProperty(R,ao,{value:[]})[ao];for(;ee.length<=q;)ee.push(null);return(ee[q]=ee[q]||[]).push(D),R}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class si{constructor(f,g){this._desc=f,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=ri({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const oo=new si("AnalyzeForEntryComponents");function tr(p,f){void 0===f&&(f=p);for(let g=0;gArray.isArray(g)?mr(g,f):f(g))}function qo(p,f,g){f>=p.length?p.push(g):p.splice(f,0,g)}function Go(p,f){return f>=p.length-1?p.pop():p.splice(f,1)[0]}function co(p,f){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function nc(p,f,g,_){let y=p.length;if(y==f)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>f;)p[y]=p[y-2],y--;p[f]=g,p[f+1]=_}}(p,_,f,g)),_}function Cd(p,f){const g=Cs(p,f);if(g>=0)return p[1|g]}function Cs(p,f){return function Wo(p,f,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<f?y=v:_=v+1}return~(y<({token:p})),-1),Va=$o(Rr("Optional"),8),po=$o(Rr("SkipSelf"),4);let Ot,ae;function H(p){var f;return(null===(f=function C(){if(void 0===Ot&&(Ot=null,Pt.trustedTypes))try{Ot=Pt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return Ot}())||void 0===f?void 0:f.createHTML(p))||p}function et(p){var f;return(null===(f=function be(){if(void 0===ae&&(ae=null,Pt.trustedTypes))try{ae=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return ae}())||void 0===f?void 0:f.createHTML(p))||p}class Ci{constructor(f){this.changingThisBreaksApplicationSecurity=f}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Br extends Ci{getTypeName(){return"HTML"}}class Vr extends Ci{getTypeName(){return"Style"}}class mM extends Ci{getTypeName(){return"Script"}}class Qo extends Ci{getTypeName(){return"URL"}}class q_ extends Ci{getTypeName(){return"ResourceURL"}}function Ts(p){return p instanceof Ci?p.changingThisBreaksApplicationSecurity:p}function lc(p,f){const g=Dd(p);if(null!=g&&g!==f){if("ResourceURL"===g&&"URL"===f)return!0;throw new Error(`Required a safe ${f}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===f}function Dd(p){return p instanceof Ci&&p.getTypeName()||null}function ZC(p){return new Br(p)}function $C(p){return new Vr(p)}function JC(p){return new mM(p)}function G_(p){return new Qo(p)}function QC(p){return new q_(p)}class KC{constructor(f){this.inertDocumentHelper=f}getInertBodyElement(f){f=""+f;try{const g=(new window.DOMParser).parseFromString(H(f),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(f):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class Kf{constructor(f){if(this.defaultDoc=f,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(f){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(f),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(f),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(f){const g=f.attributes;for(let y=g.length-1;0Th(f.trim())).join(", ")),this.buf.push(" ",D,'="',J_(R),'"')}var p;return this.buf.push(">"),!0}endElement(f){const g=f.nodeName.toLowerCase();tm.hasOwnProperty(g)&&!Xf.hasOwnProperty(g)&&(this.buf.push(""))}chars(f){this.buf.push(J_(f))}checkClobberedElement(f,g){if(g&&(f.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${f.outerHTML}`);return g}}const aA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nm=/([^\#-~ |!])/g;function J_(p){return p.replace(/&/g,"&").replace(aA,function(f){return"&#"+(1024*(f.charCodeAt(0)-55296)+(f.charCodeAt(1)-56320)+65536)+";"}).replace(nm,function(f){return"&#"+f.charCodeAt(0)+";"}).replace(//g,">")}let kd;function Q_(p,f){let g=null;try{kd=kd||function W_(p){const f=new Kf(p);return function XC(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new KC(f):f}(p);let _=f?String(f):"";g=kd.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=kd.getInertBodyElement(_)}while(_!==v);return H((new im).sanitizeChildren(rm(g)||g))}finally{if(g){const _=rm(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function rm(p){return"content"in p&&function xh(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Fi=(()=>((Fi=Fi||{})[Fi.NONE=0]="NONE",Fi[Fi.HTML=1]="HTML",Fi[Fi.STYLE=2]="STYLE",Fi[Fi.SCRIPT=3]="SCRIPT",Fi[Fi.URL=4]="URL",Fi[Fi.RESOURCE_URL=5]="RESOURCE_URL",Fi))();function am(p){const f=Ko();return f?et(f.sanitize(Fi.HTML,p)||""):lc(p,"HTML")?et(Ts(p)):Q_(Zs(),me(p))}function sm(p){const f=Ko();return f?f.sanitize(Fi.URL,p)||"":lc(p,"URL")?Ts(p):Th(me(p))}function Ko(){const p=Me();return p&&p[12]}const Je="__ngContext__";function En(p,f){p[Je]=f}function Rd(p){const f=function Pd(p){return p[Je]||null}(p);return f?Array.isArray(f)?f:f.lView:null}function Od(p){return p.ngOriginalError}function Eh(p,...f){p.error(...f)}class Fa{constructor(){this._console=console}handleError(f){const g=this._findOriginalError(f),_=function oA(p){return p&&p.ngErrorLogger||Eh}(f);_(this._console,"ERROR",f),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(f){let g=f&&Od(f);for(;g&&Od(g);)g=Od(g);return g||null}}const uA=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Pt))();function hA(p){return p.ownerDocument.defaultView}function Na(p){return p instanceof Function?p():p}var Ms=(()=>((Ms=Ms||{})[Ms.Important=1]="Important",Ms[Ms.DashCase=2]="DashCase",Ms))();function ob(p,f){return undefined(p,f)}function gr(p){const f=p[3];return Fn(f)?f[3]:f}function lb(p){return mA(p[13])}function cb(p){return mA(p[4])}function mA(p){for(;null!==p&&!Fn(p);)p=p[4];return p}function Vd(p,f,g,_,y){if(null!=_){let v,D=!1;Fn(_)?v=_:_n(_)&&(D=!0,_=_[0]);const k=O(_);0===p&&null!==g?null==y?kh(f,g,k):uc(f,g,k,y||null,!0):1===p&&null!==g?uc(f,g,k,y||null,!0):2===p?function Fd(p,f,g){const _=rn(p,f);_&&function DM(p,f,g,_){fi(p)?p.removeChild(f,g,_):f.removeChild(g)}(p,_,f,g)}(f,k,D):3===p&&f.destroyNode(k),null!=v&&function HM(p,f,g,_,y){const v=g[7];v!==O(g)&&Vd(f,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=Go(p,10+f);!function pm(p,f){_r(p,f,f[11],2,null,null),f[0]=null,f[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function il(p,f){if(!(256&f[2])){const g=f[11];fi(g)&&g.destroyNode&&_r(p,f,g,3,null,null),function SM(p){let f=p[13];if(!f)return ub(p[1],p);for(;f;){let g=null;if(_n(f))g=f[13];else{const _=f[10];_&&(g=_)}if(!g){for(;f&&!f[4]&&f!==p;)_n(f)&&ub(f[1],f),f=f[3];null===f&&(f=p),_n(f)&&ub(f[1],f),g=f&&f[4]}f=g}}(f)}}function ub(p,f){if(!(256&f[2])){f[2]&=-129,f[2]|=256,function bA(p,f){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=N]():_[y=-N].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();f[7]=null}}(p,f),1===f[1].type&&fi(f[11])&&f[11].destroy();const g=f[17];if(null!==g&&Fn(f[3])){g!==f[3]&&Ua(g,f);const _=f[19];null!==_&&_.detachView(p)}}}function hb(p,f,g){return function pb(p,f,g){let _=f;for(;null!==_&&40&_.type;)_=(f=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Ve.None||y===Ve.Emulated)return null}return ve(_,g)}(p,f.parent,g)}function uc(p,f,g,_,y){fi(p)?p.insertBefore(f,g,_,y):f.insertBefore(g,_,y)}function kh(p,f,g){fi(p)?p.appendChild(f,g):f.appendChild(g)}function fm(p,f,g,_,y){null!==_?uc(p,f,g,_,y):kh(p,f,g)}function rn(p,f){return fi(p)?p.parentNode(f):f.parentNode}function fb(p,f,g){return wA(p,f,g)}let wA=function mb(p,f,g){return 40&p.type?ve(p,g):null};function an(p,f,g,_){const y=hb(p,_,f),v=f[11],k=fb(_.parent||f[6],_,f);if(null!=y)if(Array.isArray(g))for(let R=0;Rv?"":y[ee+1].toLowerCase();const ue=8&_?se:null;if(ue&&-1!==_b(ue,N,0)||2&_&&N!==se){if(qa(_))return!1;D=!0}}}}else{if(!D&&!qa(_)&&!qa(R))return!1;if(D&&qa(R))continue;D=!1,_=R|1&_}}return qa(_)||D}function qa(p){return 0==(1&p)}function IM(p,f,g,_){if(null===f)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!qa(D)&&(f+=Rh(v,y),y=""),_=D,v=v||!qa(_);g++}return""!==y&&(f+=Rh(v,y)),f}const Et={};function TA(p){xA(Ye(),Me(),Ui()+p,Oo())}function xA(p,f,g,_){if(!_)if(3==(3&f[2])){const v=p.preOrderCheckHooks;null!==v&&Kl(f,v,g)}else{const v=p.preOrderHooks;null!==v&&Ra(f,v,0,g)}oa(g)}function gm(p,f){return p<<17|f<<2}function Ga(p){return p>>17&32767}function yb(p){return 2|p}function go(p){return(131068&p)>>2}function wb(p,f){return-131069&p|f<<2}function Cb(p){return 1|p}function BA(p,f){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&xA(p,f,20,Oo()),g(_,y)}finally{oa(v)}}function jA(p,f,g){if(Ro(f)){const y=f.directiveEnd;for(let v=f.directiveStart;v0;){const g=p[--f];if("number"==typeof g&&g<0)return g}return 0})(k)!=R&&k.push(R),k.push(_,y,D)}}function vm(p,f){null!==p.hostBindings&&p.hostBindings(1,f)}function Tm(p,f){f.flags|=2,(p.components||(p.components=[])).push(f.index)}function Bb(p,f,g){if(g){if(f.exportAs)for(let _=0;_0&&Bh(g)}}function Bh(p){for(let _=lb(p);null!==_;_=cb(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Ud(D,v,D.template,v[8])}else v[5]>0&&Bh(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&Bh(y)}}function JA(p,f){const g=yt(f,p),_=g[1];(function QA(p,f){for(let g=f.length;gPromise.resolve(null))();function Em(p){return p[7]||(p[7]=[])}function jh(p){return p.cleanup||(p.cleanup=[])}function zd(p,f,g){return(null===p||Nn(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[f.index])),g[11]}function Dm(p,f){const g=p[9],_=g?g.get(Fa,null):null;_&&_.handleError(f)}function zb(p,f,g,_,y){for(let v=0;vthis.processProvider(k,f,g)),mr([f],k=>this.processInjectorType(k,[],v)),this.records.set(Fh,gc(void 0,this));const D=this.records.get(qd);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof f?null:V(f))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(f=>f.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(f,g=Lr,_=pt.Default){this.assertNotDestroyed();const y=Ir(this),v=Zt(void 0);try{if(!(_&pt.SkipSelf)){let k=this.records.get(f);if(void 0===k){const R=function Lm(p){return"function"==typeof p||"object"==typeof p&&p instanceof si}(f)&&Ni(f);k=R&&this.injectableDefInScope(R)?gc(Rm(f),mc):null,this.records.set(f,k)}if(null!=k)return this.hydrate(f,k)}return(_&pt.Self?dl():this.parent).get(f,g=_&pt.Optional&&g===Lr?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[ac]=D[ac]||[]).unshift(V(f)),y)throw D;return function U_(p,f,g,_){const y=p[ac];throw f[sc]&&y.unshift(f[sc]),p.message=function wh(p,f,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=V(f);if(Array.isArray(f))y=f.map(V).join(" -> ");else if("object"==typeof f){let v=[];for(let D in f)if(f.hasOwnProperty(D)){let k=f[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):V(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(qf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[ac]=null,p}(D,f,"R3InjectorError",this.source)}throw D}finally{Zt(v),Ir(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(f=>this.get(f))}toString(){const f=[];return this.records.forEach((_,y)=>f.push(V(y))),`R3Injector[${f.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(f,g,_){if(!(f=X(f)))return!1;let y=Us(f);const v=null==y&&f.ngModule||void 0,D=void 0===v?f:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=Us(v)),null==y)return!1;if(null!=y.imports&&!k){let q;_.push(D);try{mr(y.imports,ee=>{this.processInjectorType(ee,g,_)&&(void 0===q&&(q=[]),q.push(ee))})}finally{}if(void 0!==q)for(let ee=0;eethis.processProvider(Ce,se,ue||qe))}}this.injectorDefTypes.add(D);const R=Tn(D)||(()=>new D);this.records.set(D,gc(R,mc));const N=y.providers;if(null!=N&&!k){const q=f;mr(N,ee=>this.processProvider(ee,q,N))}return void 0!==v&&void 0!==f.providers}processProvider(f,g,_){let y=_c(f=X(f))?f:X(f&&f.provide);const v=function iv(p,f,g){return Zb(p)?gc(void 0,p.useValue):gc(Wb(p),mc)}(f);if(_c(f)||!0!==f.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=gc(void 0,mc,!0),D.factory=()=>Td(D.multi),this.records.set(y,D)),y=f,D.multi.push(f)}this.records.set(y,v)}hydrate(f,g){return g.value===mc&&(g.value=Gb,g.value=g.factory()),"object"==typeof g.value&&g.value&&function av(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(f){if(!f.providedIn)return!1;const g=X(f.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function Rm(p){const f=Ni(p),g=null!==f?f.factory:Tn(p);if(null!==g)return g;if(p instanceof si)throw new ne(204,!1);if(p instanceof Function)return function tv(p){const f=p.length;if(f>0)throw co(f,"?"),new ne(204,!1);const g=function Ns(p){const f=p&&(p[Ta]||p[xa]);if(f){const g=function Ys(p){if(p.hasOwnProperty("name"))return p.name;const f=(""+p).match(/^function\s*([^\s(]+)/);return null===f?"":f[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),f}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Wb(p,f,g){let _;if(_c(p)){const y=X(p);return Tn(y)||Rm(y)}if(Zb(p))_=()=>X(p.useValue);else if(function Jb(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Td(p.deps||[]));else if(function $b(p){return!(!p||!p.useExisting)}(p))_=()=>Ji(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function rv(p){return!!p.deps}(p))return Tn(y)||Rm(y);_=()=>new y(...Td(p.deps))}return _}function gc(p,f,g=!1){return{factory:p,value:f,multi:g?[]:void 0}}function Zb(p){return null!==p&&"object"==typeof p&&Gf in p}function _c(p){return"function"==typeof p}let jr=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return XA({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return XA({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=Lr,p.NULL=new km,p.\u0275prov=ri({token:p,providedIn:"any",factory:()=>Ji(Fh)}),p.__NG_ELEMENT_ID__=-1,p})();function bv(p,f){No(Rd(p)[1],gi())}function ct(p){let f=function ei(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;f;){let y;if(Nn(p))y=f.\u0275cmp||f.\u0275dir;else{if(f.\u0275cmp)throw new ne(903,"");y=f.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=qh(p.inputs),D.declaredInputs=qh(p.declaredInputs),D.outputs=qh(p.outputs);const k=y.hostBindings;k&&ul(p,k);const R=y.viewQuery,N=y.contentQueries;if(R&&He(p,R),N&&Dt(p,N),L(p.inputs,y.inputs),L(p.declaredInputs,y.declaredInputs),L(p.outputs,y.outputs),Nn(y)&&y.data.animation){const q=p.data;q.animation=(q.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=f+=y.hostVars,y.hostAttrs=ms(y.hostAttrs,g=ms(g,y.hostAttrs))}}(_)}function qh(p){return p===nt?{}:p===qe?[]:p}function He(p,f){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{f(_,y),g(_,y)}:f}function Dt(p,f){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{f(_,y,v),g(_,y,v)}:f}function ul(p,f){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{f(_,y),g(_,y)}:f}let jm=null;function Dn(){if(!jm){const p=Pt.Symbol;if(p&&p.iterator)jm=p.iterator;else{const f=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(O(Nt[_.index])):_.index;if(fi(g)){let Nt=null;if(!k&&R&&(Nt=function w0(p,f,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vR?k[R]:null}"string"==typeof D&&(v+=2)}return null}(p,f,y,_.index)),null!==Nt)(Nt.__ngLastListenerFn__||Nt).__ngNextListenerFn__=v,Nt.__ngLastListenerFn__=v,ue=!1;else{v=ig(_,f,ee,v,!1);const ni=g.listen(We,y,v);se.push(v,ni),q&&q.push(y,it,xe,xe+1)}}else v=ig(_,f,ee,v,!0),We.addEventListener(y,v,D),se.push(v),q&&q.push(y,it,xe,D)}else v=ig(_,f,ee,v,!1);const Ce=_.outputs;let Le;if(ue&&null!==Ce&&(Le=Ce[y])){const Fe=Le.length;if(Fe)for(let We=0;We0;)f=f[15],p--;return f}(p,rt.lFrame.contextLView))[8]}(p)}function Dv(p,f){let g=null;const _=function OM(p){const f=p.attrs;if(null!=f){const g=f.indexOf(5);if(0==(1&g))return f[g+1]}return null}(p);for(let y=0;y=0}const sn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lg(p){return p.substring(sn.key,sn.keyEnd)}function sp(p,f){const g=sn.textEnd;return g===f?-1:(f=sn.keyEnd=function cg(p,f,g){for(;f32;)f++;return f}(p,sn.key=f,g),vc(p,f,g))}function vc(p,f,g){for(;f=0;g=sp(f,g))Gn(p,lg(f),!0)}function zr(p,f,g,_){const y=Me(),v=Ye(),D=zn(2);v.firstUpdatePass&&lu(v,p,D,_),f!==Et&&Ri(y,D,f)&&hg(v,v.data[Ui()],y,y[11],p,y[D+1]=function Fv(p,f){return null==p||("string"==typeof f?p+=f:"object"==typeof p&&(p=V(Ts(p)))),p}(f,g),_,D)}function pa(p,f,g,_){const y=Ye(),v=zn(2);y.firstUpdatePass&&lu(y,null,v,_);const D=Me();if(g!==Et&&Ri(D,v,g)){const k=y.data[Ui()];if(pg(k,_)&&!dg(y,v)){let R=_?k.classesWithoutHost:k.stylesWithoutHost;null!==R&&(g=U(R,g||"")),iu(y,k,D,g,_)}else!function jv(p,f,g,_,y,v,D,k){y===Et&&(y=qe);let R=0,N=0,q=0=p.expandoStartIndex}function lu(p,f,g,_){const y=p.data;if(null===y[g+1]){const v=y[Ui()],D=dg(p,g);pg(v,_)&&null===f&&!D&&(f=!1),f=function Iv(p,f,g,_){const y=Xs(p);let v=_?f.residualClasses:f.residualStyles;if(null===y)0===(_?f.classBindings:f.styleBindings)&&(g=cu(g=up(null,p,f,g,_),f.attrs,_),v=null);else{const D=f.directiveStylingLast;if(-1===D||p[D]!==y)if(g=up(y,p,f,g,_),null===v){let R=function Ov(p,f,g){const _=g?f.classBindings:f.styleBindings;if(0!==go(_))return p[Ga(_)]}(p,f,_);void 0!==R&&Array.isArray(R)&&(R=up(null,p,f,R[1],_),R=cu(R,f.attrs,_),function ug(p,f,g,_){p[Ga(g?f.classBindings:f.styleBindings)]=_}(p,f,_,R))}else v=function Bv(p,f,g){let _;const y=f.directiveEnd;for(let v=1+f.directiveStylingLast;v0)&&(N=!0)}else q=g;if(y)if(0!==R){const se=Ga(p[k+1]);p[_+1]=gm(se,k),0!==se&&(p[se+1]=wb(p[se+1],_)),p[k+1]=function UM(p,f){return 131071&p|f<<17}(p[k+1],_)}else p[_+1]=gm(k,0),0!==k&&(p[k+1]=wb(p[k+1],_)),k=_;else p[_+1]=gm(R,0),0===k?k=_:p[R+1]=wb(p[R+1],_),R=_;N&&(p[_+1]=yb(p[_+1])),xy(p,q,_,!0),xy(p,q,_,!1),function Hv(p,f,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof f&&Cs(v,f)>=0&&(g[_+1]=Cb(g[_+1]))}(f,q,p,_,v),D=gm(k,R),v?f.classBindings=D:f.styleBindings=D}(y,v,f,g,D,_)}}function up(p,f,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const R=p[y],N=Array.isArray(R),q=N?R[1]:R,ee=null===q;let se=g[y+1];se===Et&&(se=ee?qe:void 0);let ue=ee?Cd(se,_):q===_?se:void 0;if(N&&!uu(ue)&&(ue=Cd(R,_)),uu(ue)&&(k=ue,D))return k;const Ce=p[y+1];y=D?Ga(Ce):go(Ce)}if(null!==f){let R=v?f.residualClasses:f.residualStyles;null!=R&&(k=Cd(R,_))}return k}function uu(p){return void 0!==p}function pg(p,f){return 0!=(p.flags&(f?16:32))}function ky(p,f=""){const g=Me(),_=Ye(),y=p+20,v=_.firstCreatePass?Nd(_,y,1,f,null):_.data[y],D=g[y]=function jd(p,f){return fi(p)?p.createText(f):p.createTextNode(f)}(g[11],f);an(_,g,D,v),Dr(v,!1)}function fg(p){return hp("",p,""),fg}function hp(p,f,g){const _=Me(),y=pl(_,p,f,g);return y!==Et&&Es(_,Ui(),y),hp}function mg(p,f,g,_,y){const v=Me(),D=function wo(p,f,g,_,y,v){const k=yo(p,ui(),g,y);return zn(2),k?f+me(g)+_+me(y)+v:Et}(v,p,f,g,_,y);return D!==Et&&Es(v,Ui(),D),mg}function Si(p,f,g,_,y,v,D,k,R,N,q){const ee=Me(),se=wc(ee,p,f,g,_,y,v,D,k,R,N,q);return se!==Et&&Es(ee,Ui(),se),Si}function Nv(p,f,g){pa(Gn,$a,pl(Me(),p,f,g),!0)}function mp(p,f,g){const _=Me();return Ri(_,Qs(),f)&&nr(Ye(),hi(),_,p,f,_[11],g,!0),mp}function yg(p,f,g){const _=Me();if(Ri(_,Qs(),f)){const v=Ye(),D=hi();nr(v,D,_,p,f,zd(Xs(v.data),D,_),g,!0)}return yg}const Cl=void 0;var S0=["en",[["a","p"],["AM","PM"],Cl],[["AM","PM"],Cl,Cl],[["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"]],Cl,[["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"]],Cl,[["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}",Cl,"{1} 'at' {0}",Cl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function jy(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let wr={};function gp(p){const f=function wg(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=Fy(f);if(g)return g;const _=f.split("-")[0];if(g=Fy(_),g)return g;if("en"===_)return S0;throw new Error(`Missing locale data for the locale "${p}".`)}function hu(p){return gp(p)[ot.PluralCase]}function Fy(p){return p in wr||(wr[p]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[p]),wr[p]}var ot=(()=>((ot=ot||{})[ot.LocaleId=0]="LocaleId",ot[ot.DayPeriodsFormat=1]="DayPeriodsFormat",ot[ot.DayPeriodsStandalone=2]="DayPeriodsStandalone",ot[ot.DaysFormat=3]="DaysFormat",ot[ot.DaysStandalone=4]="DaysStandalone",ot[ot.MonthsFormat=5]="MonthsFormat",ot[ot.MonthsStandalone=6]="MonthsStandalone",ot[ot.Eras=7]="Eras",ot[ot.FirstDayOfWeek=8]="FirstDayOfWeek",ot[ot.WeekendRange=9]="WeekendRange",ot[ot.DateFormat=10]="DateFormat",ot[ot.TimeFormat=11]="TimeFormat",ot[ot.DateTimeFormat=12]="DateTimeFormat",ot[ot.NumberSymbols=13]="NumberSymbols",ot[ot.NumberFormats=14]="NumberFormats",ot[ot.CurrencyCode=15]="CurrencyCode",ot[ot.CurrencySymbol=16]="CurrencySymbol",ot[ot.CurrencyName=17]="CurrencyName",ot[ot.Currencies=18]="Currencies",ot[ot.Directionality=19]="Directionality",ot[ot.PluralCase=20]="PluralCase",ot[ot.ExtraData=21]="ExtraData",ot))();const pu="en-US";let Cg=pu;function rw(p,f,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(_c(p)||!p.multi){const ue=new Yo(R,y,Ao),Ce=Lg(k,f,y?q:q+se,ee);-1===Ce?(ws(Oa(N,D),v,k),Rg(v,p,f.length),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(ue),D.push(ue)):(g[Ce]=ue,D[Ce]=ue)}else{const ue=Lg(k,f,q+se,ee),Ce=Lg(k,f,q,q+se),Le=ue>=0&&g[ue],Fe=Ce>=0&&g[Ce];if(y&&!Fe||!y&&!Le){ws(Oa(N,D),v,k);const We=function _T(p,f,g,_,y){const v=new Yo(p,g,Ao);return v.multi=[],v.index=f,v.componentProviders=0,aw(v,y,_&&!g),v}(y?I0:Ft,g.length,y,_,R);!y&&Fe&&(g[Ce].providerFactory=We),Rg(v,p,f.length,0),f.push(k),N.directiveStart++,N.directiveEnd++,y&&(N.providerIndexes+=1048576),g.push(We),D.push(We)}else Rg(v,p,ue>-1?ue:Ce,aw(g[y?Ce:ue],R,!y&&_));!y&&_&&Fe&&g[Ce].componentProviders++}}}function Rg(p,f,g,_){const y=_c(f),v=function nv(p){return!!p.useClass}(f);if(y||v){const R=(v?X(f.useClass):f).prototype.ngOnDestroy;if(R){const N=p.destroyHooks||(p.destroyHooks=[]);if(!y&&f.multi){const q=N.indexOf(g);-1===q?N.push(g,[_,R]):N[q+1].push(_,R)}else N.push(g,R)}}}function aw(p,f,g){return g&&p.componentProviders++,p.multi.push(f)-1}function Lg(p,f,g,_){for(let y=g;y<_;y++)if(f[y]===p)return y;return-1}function Ft(p,f,g,_){return Gr(this.multi,[])}function I0(p,f,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=no(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),Gr(y,v);for(let R=D;R{g.providersResolver=(_,y)=>function gT(p,f,g){const _=Ye();if(_.firstCreatePass){const y=Nn(p);rw(g,_.data,_.blueprint,y,!0),rw(f,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,f)}}class ow{}class wT{resolveComponentFactory(f){throw function yT(p){const f=Error(`No component factory found for ${V(p)}. Did you add it to @NgModule.entryComponents?`);return f.ngComponent=p,f}(f)}}let Cu=(()=>{class p{}return p.NULL=new wT,p})();function CT(){return Hc(gi(),Me())}function Hc(p,f){return new Au(ve(p,f))}let Au=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=CT,p})();function AT(p){return p instanceof Au?p.nativeElement:p}class cw{}let vT=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function dw(){const p=Me(),g=yt(gi().index,p);return function TT(p){return p[11]}(_n(g)?g:p)}(),p})(),Hs=(()=>{class p{}return p.\u0275prov=ri({token:p,providedIn:"root",factory:()=>null}),p})();class uw{constructor(f){this.full=f,this.major=f.split(".")[0],this.minor=f.split(".")[1],this.patch=f.split(".").slice(2).join(".")}}const vu=new uw("13.2.2"),hw={};function Ig(p,f,g,_,y=!1){for(;null!==g;){const v=f[g.index];if(null!==v&&_.push(O(v)),Fn(v))for(let k=10;k-1&&(db(f,_),Go(g,_))}this._attachedToViewContainer=!1}il(this._lView[1],this._lView)}onDestroy(f){Ki(this._lView[1],this._lView,null,f)}markForCheck(){Fb(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Vh(this._lView[1],this._lView,this.context)}checkNoChanges(){!function KA(p,f,g){Bo(!0);try{Vh(p,f,g)}finally{Bo(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function gA(p,f){_r(p,f,f[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(f){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=f}}class xT extends Mp{constructor(f){super(f),this._view=f}detectChanges(){Yb(this._view)}checkNoChanges(){!function ll(p){Bo(!0);try{Yb(p)}finally{Bo(!1)}}(this._view)}get context(){return null}}class Og extends Cu{constructor(f){super(),this.ngModule=f}resolveComponentFactory(f){const g=Zi(f);return new fw(g,this.ngModule)}}function pw(p){const f=[];for(let g in p)p.hasOwnProperty(g)&&f.push({propName:p[g],templateName:g});return f}const MT=new si("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>uA});class fw extends ow{constructor(f,g){super(),this.componentDef=f,this.ngModule=g,this.componentType=f.type,this.selector=function NM(p){return p.map(FM).join(",")}(f.selectors),this.ngContentSelectors=f.ngContentSelectors?f.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return pw(this.componentDef.inputs)}get outputs(){return pw(this.componentDef.outputs)}create(f,g,_,y){const v=(y=y||this.ngModule)?function ST(p,f){return{get:(g,_,y)=>{const v=p.get(g,hw,y);return v!==hw||_===hw?v:f.get(g,_,y)}}}(f,y.injector):f,D=v.get(cw,B),k=v.get(Hs,null),R=D.createRenderer(null,this.componentDef),N=this.componentDef.selectors[0][0]||"div",q=_?function Rb(p,f,g){if(fi(p))return p.selectRootElement(f,g===Ve.ShadowDom);let _="string"==typeof f?p.querySelector(f):f;return _.textContent="",_}(R,_,this.componentDef.encapsulation):hm(D.createRenderer(null,this.componentDef),N,function es(p){const f=p.toLowerCase();return"svg"===f?"svg":"math"===f?"math":null}(N)),ee=this.componentDef.onPush?576:528,se=function Vm(p,f){return{components:[],scheduler:p||uA,clean:Ub,playerHandler:f||null,flags:0}}(),ue=ym(0,null,null,1,0,null,null,null,null,null),Ce=Lh(null,ue,se,ee,null,null,D,R,k,v);let Le,Fe;kr(Ce);try{const We=function Bm(p,f,g,_,y,v){const D=g[1];g[20]=p;const R=Nd(D,20,2,"#host",null),N=R.mergedAttrs=f.hostAttrs;null!==N&&(cl(R,N,!0),null!==p&&(yn(y,p,N),null!==R.classes&&mm(y,p,R.classes),null!==R.styles&&CA(y,p,R.styles)));const q=_.createRenderer(p,f),ee=Lh(g,FA(f),null,f.onPush?64:16,g[20],R,_,q,v||null,null);return D.firstCreatePass&&(ws(Oa(R,g),D,f.type),Tm(D,R),xm(R,g.length,1)),_o(g,ee),g[20]=ee}(q,this.componentDef,Ce,D,R);if(q)if(_)yn(R,q,["ng-version",vu.full]);else{const{attrs:xe,classes:it}=function YM(p){const f=[],g=[];let _=1,y=2;for(;_0&&mm(R,q,it.join(" "))}if(Fe=Xt(ue,20),void 0!==g){const xe=Fe.projection=[];for(let it=0;itR(D,f)),f.contentQueries){const R=gi();f.contentQueries(1,D,R.directiveStart)}const k=gi();return!v.firstCreatePass||null===f.hostBindings&&null===f.hostAttrs||(oa(k.index),UA(g[1],k,0,k.directiveStart,k.directiveEnd,f),vm(f,D)),D}(We,this.componentDef,Ce,se,[bv]),Ih(ue,Ce,null)}finally{jo()}return new _w(this.componentType,Le,Hc(Fe,Ce),Ce,Fe)}}class _w extends class bT{}{constructor(f,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new xT(y),this.componentType=f}get injector(){return new ro(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(f){this.hostView.onDestroy(f)}}class Al{}class bw{}const kc=new Map;class Vg extends Al{constructor(f,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Og(this);const _=gt(f);this._bootstrapComponents=Na(_.bootstrap),this._r3Injector=Nh(f,g,[{provide:Al,useValue:this},{provide:Cu,useValue:this.componentFactoryResolver}],V(f)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(f)}get(f,g=jr.THROW_IF_NOT_FOUND,_=pt.Default){return f===jr||f===Al||f===Fh?this:this._r3Injector.get(f,g,_)}destroy(){const f=this._r3Injector;!f.destroyed&&f.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(f){this.destroyCbs.push(f)}}class Sp extends bw{constructor(f){super(),this.moduleType=f,null!==gt(f)&&function vl(p){const f=new Set;!function g(_){const y=gt(_,!0),v=y.id;null!==v&&(function Wn(p,f,g){if(f&&f!==g)throw new Error(`Duplicate module registered for ${p} - ${V(f)} vs ${V(f.name)}`)}(v,kc.get(v),_),kc.set(v,_));const D=Na(y.imports);for(const k of D)f.has(k)||(f.add(k),g(k))}(p)}(f)}create(f){return new Vg(this.moduleType,f)}}function Ii(p,f,g){const _=bn()+p,y=Me();return y[_]===Et?Za(y,_,g?f.call(g):f()):function hl(p,f){return p[f]}(y,_)}function DT(p,f,g,_){return Cw(Me(),bn(),p,f,g,_)}function Ep(p,f,g,_,y){return Pn(Me(),bn(),p,f,g,_,y)}function Mu(p,f){const g=p[f];return g===Et?void 0:g}function Cw(p,f,g,_,y,v){const D=f+g;return Ri(p,D,y)?Za(p,D+1,v?_.call(v,y):_(y)):Mu(p,D+1)}function Pn(p,f,g,_,y,v,D){const k=f+g;return yo(p,k,y,v)?Za(p,k+2,D?_.call(D,y,v):_(y,v)):Mu(p,k+2)}function ks(p,f,g,_,y,v,D,k){const R=f+g;return function yc(p,f,g,_,y){const v=yo(p,f,g,_);return Ri(p,f+2,y)||v}(p,R,y,v,D)?Za(p,R+3,k?_.call(k,y,v,D):_(y,v,D)):Mu(p,R+3)}function Ps(p,f){const g=Ye();let _;const y=p+20;g.firstCreatePass?(_=function PT(p,f){if(f)for(let g=f.length-1;g>=0;g--){const _=f[g];if(p===_.name)return _}}(f,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Tn(_.type)),D=Zt(Ao);try{const k=Ia(!1),R=v();return Ia(k),function Wh(p,f,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),f[g]=_}(g,Me(),y,R),R}finally{Zt(D)}}function Oi(p,f,g){const _=p+20,y=Me(),v=Rt(y,_);return Pc(y,_)?Cw(y,bn(),f,v.transform,g,v):v.transform(g)}function Fg(p,f,g,_){const y=p+20,v=Me(),D=Rt(v,y);return Pc(v,y)?Pn(v,bn(),f,D.transform,g,_,D):D.transform(g,_)}function Ng(p,f,g,_,y){const v=p+20,D=Me(),k=Rt(D,v);return Pc(D,v)?ks(D,bn(),f,k.transform,g,_,y,k):k.transform(g,_,y)}function Pc(p,f){return p[1].data[f].pure}function Dp(p){return f=>{setTimeout(p,void 0,f)}}const ga=class Tw extends T.xQ{constructor(f=!1){super(),this.__isAsync=f}emit(f){super.next(f)}subscribe(f,g,_){var y,v,D;let k=f,R=g||(()=>null),N=_;if(f&&"object"==typeof f){const ee=f;k=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),R=null===(v=ee.error)||void 0===v?void 0:v.bind(ee),N=null===(D=ee.complete)||void 0===D?void 0:D.bind(ee)}this.__isAsync&&(R=Dp(R),k&&(k=Dp(k)),N&&(N=Dp(N)));const q=super.subscribe({next:k,error:R,complete:N});return f instanceof i.w&&f.add(q),q}};function Hp(){return this._results[Dn()]()}class Su{constructor(f=!1){this._emitDistinctChangesOnly=f,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Dn(),_=Su.prototype;_[g]||(_[g]=Hp)}get changes(){return this._changes||(this._changes=new ga)}get(f){return this._results[f]}map(f){return this._results.map(f)}filter(f){return this._results.filter(f)}find(f){return this._results.find(f)}reduce(f,g){return this._results.reduce(f,g)}forEach(f){this._results.forEach(f)}some(f){return this._results.some(f)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(f,g){const _=this;_.dirty=!1;const y=tr(f);(this._changesDetected=!function Nf(p,f,g){if(p.length!==f.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=RT,p})();const xw=Rc,Mw=class extends xw{constructor(f,g,_){super(),this._declarationLView=f,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(f){const g=this._declarationTContainer.tViews,_=Lh(this._declarationLView,g,f,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Ih(g,_,f),new Mp(_)}};function RT(){return Eu(gi(),Me())}function Eu(p,f){return 4&p.type?new Mw(f,p,Hc(p,f)):null}let Du=(()=>{class p{}return p.__NG_ELEMENT_ID__=Yg,p})();function Yg(){return zg(gi(),Me())}const Sw=Du,kp=class extends Sw{constructor(f,g,_){super(),this._lContainer=f,this._hostTNode=g,this._hostLView=_}get element(){return Hc(this._hostTNode,this._hostLView)}get injector(){return new ro(this._hostTNode,this._hostLView)}get parentInjector(){const f=ys(this._hostTNode,this._hostLView);if(gs(f)){const g=La(f,this._hostLView),_=_s(f);return new ro(g[1].data[_+8],g)}return new ro(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(f){const g=Ug(this._lContainer);return null!==g&&g[f]||null}get length(){return this._lContainer.length-10}createEmbeddedView(f,g,_){const y=f.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(f,g,_,y,v){const D=f&&!function Ba(p){return"function"==typeof p}(f);let k;if(D)k=g;else{const ee=g||{};k=ee.index,_=ee.injector,y=ee.projectableNodes,v=ee.ngModuleRef}const R=D?f:new fw(Zi(f)),N=_||this.parentInjector;if(!v&&null==R.ngModule&&N){const ee=N.get(Al,null);ee&&(v=ee)}const q=R.create(N,y,void 0,v);return this.insert(q.hostView,k),q}insert(f,g){const _=f._lView,y=_[1];if(function di(p){return Fn(p[3])}(_)){const q=this.indexOf(f);if(-1!==q)this.detach(q);else{const ee=_[3],se=new kp(ee,ee[6],ee[3]);se.detach(se.indexOf(f))}}const v=this._adjustIndex(g),D=this._lContainer;!function _A(p,f,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=f),_0)_.push(D[k/2]);else{const N=v[k+1],q=f[-R];for(let ee=10;ee{class p{constructor(g){this.appInits=g,this.resolve=Jp,this.reject=Jp,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:R})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(Ji(o_,8))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Ml=new si("AppId"),qT={provide:Ml,useFactory:function Vw(){return`${Qp()}${Qp()}${Qp()}`},deps:[]};function Qp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const jw=new si("Platform Initializer"),GT=new si("Platform ID"),l_=new si("appBootstrapListener");let c_=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const Kp=new si("LocaleId"),d_=new si("DefaultCurrencyCode");class WT{constructor(f,g){this.ngModuleFactory=f,this.componentFactories=g}}let Ls=(()=>{class p{compileModuleSync(g){return new Sp(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=Na(gt(g).declarations).reduce((D,k)=>{const R=Zi(k);return R&&D.push(new fw(R)),D},[]);return new WT(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();const $T=(()=>Promise.resolve(0))();function Ru(p){"undefined"==typeof Zone?$T.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Ar{constructor({enableLongStackTrace:f=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ga(!1),this.onMicrotaskEmpty=new ga(!1),this.onStable=new ga(!1),this.onError=new ga(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),f&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function Yw(){let p=Pt.requestAnimationFrame,f=Pt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&f){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=f[Zone.__symbol__("OriginalDelegate")];_&&(f=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:f}}().nativeRequestAnimationFrame,function JT(p){const f=()=>{!function Uw(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Pt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Lu(p),p.isCheckStableRunning=!0,h_(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Lu(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return zw(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&f(),qw(p)}},onInvoke:(g,_,y,v,D,k,R)=>{try{return zw(p),g.invoke(y,v,D,k,R)}finally{p.shouldCoalesceRunChangeDetection&&f(),qw(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Lu(p),h_(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ar.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ar.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(f,g,_){return this._inner.run(f,g,_)}runTask(f,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,f,u_,Jp,Jp);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(f,g,_){return this._inner.runGuarded(f,g,_)}runOutsideAngular(f){return this._outer.run(f)}}const u_={};function h_(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Lu(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function zw(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function qw(p){p._nesting--,h_(p)}class Gw{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ga,this.onMicrotaskEmpty=new ga,this.onStable=new ga,this.onError=new ga}run(f,g,_){return f.apply(g,_)}runGuarded(f,g,_){return f.apply(g,_)}runOutsideAngular(f){return f()}runTask(f,g,_,y){return f.apply(g,_)}}let Ww=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Ar.assertNotInAngularZone(),Ru(()=>{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())Ru(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})(),QT=(()=>{class p{constructor(){this._applications=new Map,Xp.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return Xp.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();class p_{addToWindow(f){}findTestabilityInTree(f,g,_){return null}}function KT(p){Xp=p}let ba,Xp=new p_;const f_=new si("AllowMultipleToken");class ex{constructor(f,g){this.name=f,this.token=g}}function Jw(p,f,g=[]){const _=`Platform: ${f}`,y=new si(_);return(v=[])=>{let D=ef();if(!D||D.injector.get(f_,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:qd,useValue:"platform"});!function $w(p){if(ba&&!ba.destroyed&&!ba.injector.get(f_,!1))throw new ne(400,"");ba=p.get(Qw);const f=p.get(jw,null);f&&f.forEach(g=>g())}(jr.create({providers:k,name:_}))}return function tx(p){const f=ef();if(!f)throw new ne(401,"");return f}()}}function ef(){return ba&&!ba.destroyed?ba:null}let Qw=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function Kw(p,f){let g;return g="noop"===p?new Gw:("zone.js"===p?void 0:p)||new Ar({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==f?void 0:f.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==f?void 0:f.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),R=[{provide:Ar,useValue:k}];return k.run(()=>{const N=jr.create({providers:R,parent:this.injector,name:g.moduleType.name}),q=g.create(N),ee=q.injector.get(Fa,null);if(!ee)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:ue=>{ee.handleError(ue)}});q.onDestroy(()=>{tf(this._modules,q),se.unsubscribe()})}),function ix(p,f,g){try{const _=g();return au(_)?_.catch(y=>{throw f.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw f.runOutsideAngular(()=>p.handleError(_)),_}}(ee,k,()=>{const se=q.injector.get(xl);return se.runInitializers(),se.donePromise.then(()=>(function Ag(p){tt(p,"Expected localeId to be defined"),"string"==typeof p&&(Cg=p.toLowerCase().replace(/_/g,"-"))}(q.injector.get(Kp,pu)||pu),this._moduleDoBootstrap(q),q))})})}bootstrapModule(g,_=[]){const y=m_({},_);return function Zw(p,f,g){const _=new Sp(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(Iu);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(Ji(jr))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function m_(p,f){return Array.isArray(f)?f.reduce(m_,p):Object.assign(Object.assign({},p),f)}let Iu=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(N=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{N.next(this._stable),N.complete()})}),R=new E.y(N=>{let q;this._zone.runOutsideAngular(()=>{q=this._zone.onStable.subscribe(()=>{Ar.assertNotInAngularZone(),Ru(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,N.next(!0))})})});const ee=this._zone.onUnstable.subscribe(()=>{Ar.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{N.next(!1)}))});return()=>{q.unsubscribe(),ee.unsubscribe()}});this.isStable=(0,M.T)(k,R.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof ow?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function XT(p){return p.isBoundToModule}(y)?void 0:this._injector.get(Al),k=y.create(jr.NULL,[],_||y.selector,v),R=k.location.nativeElement,N=k.injector.get(Ww,null),q=N&&k.injector.get(QT);return N&&q&&q.registerApplication(R,N),k.onDestroy(()=>{this.detachView(k.hostView),tf(this.components,k),q&&q.unregisterApplication(R)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;tf(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(l_,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(Ji(Ar),Ji(jr),Ji(Fa),Ji(Cu),Ji(xl))},p.\u0275prov=ri({token:p,factory:p.\u0275fac}),p})();function tf(p,f){const g=p.indexOf(f);g>-1&&p.splice(g,1)}let nx=!0;function tC(){nx=!1}let ax=(()=>{class p{}return p.__NG_ELEMENT_ID__=G0,p})();function G0(p){return function sx(p,f,g){if(Ha(p)&&!g){const _=yt(p.index,f);return new Mp(_,_)}return 47&p.type?new Mp(f[16],f):null}(gi(),Me(),16==(16&p))}class aC{constructor(){}supports(f){return bc(f)}create(f){return new px(f)}}const hx=(p,f)=>f;class px{constructor(f){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=f||hx}forEachItem(f){let g;for(g=this._itHead;null!==g;g=g._next)f(g)}forEachOperation(f){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=f,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let f;for(f=this._previousItHead=this._itHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._additionsHead;null!==f;f=f._nextAdded)f.previousIndex=f.currentIndex;for(this._additionsHead=this._additionsTail=null,f=this._movesHead;null!==f;f=f._nextMoved)f.previousIndex=f.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(f,g,_,y){let v;return null===f?v=this._itTail:(v=f._prev,this._remove(f)),null!==(f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._reinsertAfter(f,v,y)):null!==(f=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(f.item,g)||this._addIdentityChange(f,g),this._moveAfter(f,v,y)):f=this._addAfter(new fx(g,_),v,y),f}_verifyReinsertion(f,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?f=this._reinsertAfter(v,f._prev,y):f.currentIndex!=y&&(f.currentIndex=y,this._addToMoves(f,y)),f}_truncate(f){for(;null!==f;){const g=f._next;this._addToRemovals(this._unlink(f)),f=g}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(f,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(f);const y=f._prevRemoved,v=f._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(f,g,_),this._addToMoves(f,_),f}_moveAfter(f,g,_){return this._unlink(f),this._insertAfter(f,g,_),this._addToMoves(f,_),f}_addAfter(f,g,_){return this._insertAfter(f,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=f:this._additionsTail._nextAdded=f,f}_insertAfter(f,g,_){const y=null===g?this._itHead:g._next;return f._next=y,f._prev=g,null===y?this._itTail=f:y._prev=f,null===g?this._itHead=f:g._next=f,null===this._linkedRecords&&(this._linkedRecords=new sC),this._linkedRecords.put(f),f.currentIndex=_,f}_remove(f){return this._addToRemovals(this._unlink(f))}_unlink(f){null!==this._linkedRecords&&this._linkedRecords.remove(f);const g=f._prev,_=f._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,f}_addToMoves(f,g){return f.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=f:this._movesTail._nextMoved=f),f}_addToRemovals(f){return null===this._unlinkedRecords&&(this._unlinkedRecords=new sC),this._unlinkedRecords.put(f),f.currentIndex=null,f._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=f,f._prevRemoved=null):(f._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=f),f}_addIdentityChange(f,g){return f.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=f:this._identityChangesTail._nextIdentityChange=f,f}}class fx{constructor(f,g){this.item=f,this.trackById=g,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 eS{constructor(){this._head=null,this._tail=null}add(f){null===this._head?(this._head=this._tail=f,f._nextDup=null,f._prevDup=null):(this._tail._nextDup=f,f._prevDup=this._tail,f._nextDup=null,this._tail=f)}get(f,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,f))return _;return null}remove(f){const g=f._prevDup,_=f._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class sC{constructor(){this.map=new Map}put(f){const g=f.trackById;let _=this.map.get(g);_||(_=new eS,this.map.set(g,_)),_.add(f)}get(f,g){const y=this.map.get(f);return y?y.get(f,g):null}remove(f){const g=f.trackById;return this.map.get(g).remove(f)&&this.map.delete(g),f}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Uc(p,f,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(f,g){if(f){const _=f._prev;return g._next=f,g._prev=_,f._prev=g,_&&(_._next=g),f===this._mapHead&&(this._mapHead=g),this._appendAfter=f,f}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(f,g){if(this._records.has(f)){const y=this._records.get(f);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new oC(f);return this._records.set(f,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let f;for(this._previousMapHead=this._mapHead,f=this._previousMapHead;null!==f;f=f._next)f._nextPrevious=f._next;for(f=this._changesHead;null!==f;f=f._nextChanged)f.previousValue=f.currentValue;for(f=this._additionsHead;null!=f;f=f._nextAdded)f.previousValue=f.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(f,g){Object.is(g,f.currentValue)||(f.previousValue=f.currentValue,f.currentValue=g,this._addToChanges(f))}_addToAdditions(f){null===this._additionsHead?this._additionsHead=this._additionsTail=f:(this._additionsTail._nextAdded=f,this._additionsTail=f)}_addToChanges(f){null===this._changesHead?this._changesHead=this._changesTail=f:(this._changesTail._nextChanged=f,this._changesTail=f)}_forEach(f,g){f instanceof Map?f.forEach(g):Object.keys(f).forEach(_=>g(f[_],_))}}class oC{constructor(f){this.key=f,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 El(){return new af([new aC])}let af=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||El()),deps:[[p,new po,new Va]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:El}),p})();function lC(){return new sf([new Vu])}let sf=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||lC()),deps:[[p,new po,new Va]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=ri({token:p,providedIn:"root",factory:lC}),p})();const cC=[new Vu],gx=new af([new aC]),_x=new sf(cC),dC=Jw(null,"core",[{provide:GT,useValue:"unknown"},{provide:Qw,deps:[jr]},{provide:QT,deps:[]},{provide:c_,deps:[]}]),yx=[{provide:Iu,useClass:Iu,deps:[Ar,jr,Fa,Cu,xl]},{provide:MT,deps:[Ar],useFactory:function wx(p){let f=[];return p.onStable.subscribe(()=>{for(;f.length;)f.pop()()}),function(g){f.push(g)}}},{provide:xl,useClass:xl,deps:[[new Va,o_]]},{provide:Ls,useClass:Ls,deps:[]},qT,{provide:af,useFactory:function uC(){return gx},deps:[]},{provide:sf,useFactory:function bx(){return _x},deps:[]},{provide:Kp,useFactory:function nS(p){return p||function hC(){return"undefined"!=typeof $localize&&$localize.locale||pu}()},deps:[[new ho(Kp),new Va,new po]]},{provide:d_,useValue:"USD"}];let Cx=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(Ji(Iu))},p.\u0275mod=as({type:p}),p.\u0275inj=Cn({providers:yx}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class z extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return z.\u0275fac=function(){let G;return function(T){return(G||(G=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(z)))(T||z)}}(),z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class z{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,T){this.data.set(x,T)}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class ReceivedTokens{}class OAuthEvent{constructor(G){this.type=G}}class OAuthSuccessEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(G,x=null){super(G),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(G,x,T=null){super(G),this.reason=x,this.params=T}}function b64DecodeUnicode(z){const G=z.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(G).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(z){return btoa(z).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(G){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},G&&Object.assign(this,G)}}class WebHttpUrlEncodingCodec{encodeKey(G){return encodeURIComponent(G)}encodeValue(G){return encodeURIComponent(G)}decodeKey(G){return decodeURIComponent(G)}decodeValue(G){return decodeURIComponent(G)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(G){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(G.idTokenHeader),T=yield this.calcHash(G.accessToken,x),E=base64UrlEncode(T.substr(0,T.length/2)),M=G.idTokenClaims.at_hash.replace(/=/g,"");return E!==M&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+M)),E===M})}inferHashAlgorithm(G){let x=G.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class z{getHashFragmentParams(x){let T=x||window.location.hash;if(T=decodeURIComponent(T),0!==T.indexOf("#"))return{};const i=T.indexOf("?");return T=T.substr(i>-1?i+1:1),this.parseQueryString(T)}parseQueryString(x){const T={};let i,E,M,S,P,L,V;if(null===x)return T;i=x.split("&");for(let U=0;U>6,E[S++]=128|63&P):P<55296||P>=57344?(E[S++]=224|P>>12,E[S++]=128|P>>6&63,E[S++]=128|63&P):(P=65536+((1023&P)<<10|1023&z.charCodeAt(++T)),E[S++]=240|P>>18,E[S++]=128|P>>12&63,E[S++]=128|P>>6&63,E[S++]=128|63&P);z=E}else{if("object"!==i)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR)}z.length>64&&(z=new Sha256(G,!0).update(z).array());var L=[],V=[];for(T=0;T<64;++T){var U=z[T]||0;L[T]=92^U,V[T]=54^U}Sha256.call(this,G,x),this.update(V),this.oKeyPad=L,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(z){if(!this.finalized){var G,x=typeof z;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===z)throw new Error(ERROR);if(ARRAY_BUFFER&&z.constructor===ArrayBuffer)z=new Uint8Array(z);else if(!(Array.isArray(z)||ARRAY_BUFFER&&ArrayBuffer.isView(z)))throw new Error(ERROR);G=!0}for(var T,E,i=0,M=z.length,S=this.blocks;i>2]|=z[i]<>2]|=T<>2]|=(192|T>>6)<>2]|=(128|63&T)<=57344?(S[E>>2]|=(224|T>>12)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<>2]|=(240|T>>18)<>2]|=(128|T>>12&63)<>2]|=(128|T>>6&63)<>2]|=(128|63&T)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var z=this.blocks,G=this.lastByteIndex;z[16]=this.block,z[G>>2]|=EXTRA[3&G],this.block=z[16],G>=56&&(this.hashed||this.hash(),z[0]=this.block,z[16]=z[1]=z[2]=z[3]=z[4]=z[5]=z[6]=z[7]=z[8]=z[9]=z[10]=z[11]=z[12]=z[13]=z[14]=z[15]=0),z[14]=this.hBytes<<3|this.bytes>>>29,z[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var L,$,ce,ne,de,me,z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=this.blocks;for(L=16;L<64;++L)P[L]=P[L-16]+((($=P[L-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+P[L-7]+((($=P[L-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=G&x,L=0;L<64;L+=4)this.first?(this.is224?(ce=300032,S=($=P[0]-1413257819)-150054599<<0,T=$+24177077<<0):(ce=704751109,S=($=P[0]-210244248)-1521486534<<0,T=$+143694565<<0),this.first=!1):(S=T+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&M)+K[L]+P[L])<<0,T=$+(((z>>>2|z<<30)^(z>>>13|z<<19)^(z>>>22|z<<10))+((ce=z&G)^z&x^me))<<0),M=x+($=M+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[L+1]+P[L+1])<<0,x=$+(((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+((ne=T&z)^T&G^ce))<<0,E=G+($=E+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&S^~M&i)+K[L+2]+P[L+2])<<0,G=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&T)^x&z^ne))<<0,i=z+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&M^~E&S)+K[L+3]+P[L+3])<<0,z=$+(((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+((me=G&x)^G&T^de))<<0;this.h0=this.h0+z<<0,this.h1=this.h1+G<<0,this.h2=this.h2+x<<0,this.h3=this.h3+T<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+M<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=HEX_CHARS[z>>28&15]+HEX_CHARS[z>>24&15]+HEX_CHARS[z>>20&15]+HEX_CHARS[z>>16&15]+HEX_CHARS[z>>12&15]+HEX_CHARS[z>>8&15]+HEX_CHARS[z>>4&15]+HEX_CHARS[15&z]+HEX_CHARS[G>>28&15]+HEX_CHARS[G>>24&15]+HEX_CHARS[G>>20&15]+HEX_CHARS[G>>16&15]+HEX_CHARS[G>>12&15]+HEX_CHARS[G>>8&15]+HEX_CHARS[G>>4&15]+HEX_CHARS[15&G]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[M>>28&15]+HEX_CHARS[M>>24&15]+HEX_CHARS[M>>20&15]+HEX_CHARS[M>>16&15]+HEX_CHARS[M>>12&15]+HEX_CHARS[M>>8&15]+HEX_CHARS[M>>4&15]+HEX_CHARS[15&M];return this.is224||(P+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),P},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var z=this.h0,G=this.h1,x=this.h2,T=this.h3,i=this.h4,E=this.h5,M=this.h6,S=this.h7,P=[z>>24&255,z>>16&255,z>>8&255,255&z,G>>24&255,G>>16&255,G>>8&255,255&G,x>>24&255,x>>16&255,x>>8&255,255&x,T>>24&255,T>>16&255,T>>8&255,255&T,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,M>>24&255,M>>16&255,M>>8&255,255&M];return this.is224||P.push(S>>24&255,S>>16&255,S>>8&255,255&S),P},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var z=new ArrayBuffer(this.is224?28:32),G=new DataView(z);return G.setUint32(0,this.h0),G.setUint32(4,this.h1),G.setUint32(8,this.h2),G.setUint32(12,this.h3),G.setUint32(16,this.h4),G.setUint32(20,this.h5),G.setUint32(24,this.h6),this.is224||G.setUint32(28,this.h7),z},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var z=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(z),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(z){if("string"!=typeof z)throw new TypeError("expected string");var G,x=z,T=new Uint8Array(x.length);for(G=0;G{class z{calcHash(x,T){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let T="";for(let i of x)T+=String.fromCharCode(i);return T}toHashString(x){const T=new Uint8Array(x);let i="";for(let E of T)i+=String.fromCharCode(E);return i}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})(),OAuthService=(()=>{class z extends AuthConfig{constructor(x,T,i,E,M,S,P,L,V,U){var Y;super(),this.ngZone=x,this.http=T,this.config=M,this.urlHelper=S,this.logger=P,this.crypto=L,this.dateTimeService=U,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=V,M||(M={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),M&&this.configure(M);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(Y=null==window?void 0:window.navigator)||void 0===Y?void 0:Y.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(T){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},T,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(M=>{"token_received"===M.type?E=!0:"logout"===M.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_expires"===M.type&&(null==T||"any"===T||M.info===T)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(M=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,T){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,T):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(T=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(T=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const T=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||T.push("https for all urls required. Also for urls received by discovery."),E||T.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),T}validateUrlForHttps(x){if(!x)return!0;const T=x.toLowerCase();return!(!1!==this.requireHttps&&(!T.match(/^http:\/\/localhost($|[:\/])/)&&!T.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||T.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,T){if(!x)throw new Error(`'${T}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${T}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),T=this.getAccessTokenStoredAt(),i=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),T=this.getIdTokenStoredAt(),i=this.calcTimeout(T,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,T){const i=this.dateTimeService.now();return Math.max(0,(T-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((T,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(M=>{const P=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:M});this.eventsSubject.next(P),T(P)}).catch(M=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",M)),i(M)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,T)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),T(i)}):x(null)})}validateDiscoveryDocument(x){let T;return this.skipIssuerCheck||x.issuer===this.issuer?(T=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),T.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),T.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.token_endpoint),T.length>0&&this.logger.error("error validating token_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),T.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",T),T=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),T.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",T),!1):(T=this.validateUrlFromDiscoveryDocument(x.jwks_uri),T.length>0?(this.logger.error("error validating jwks_uri in discovery document",T),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,T,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,T)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let M=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||M.sub!==S.sub))return void T("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");M=Object.assign({},S,M),this._storage.setItem("id_token_claims_obj",JSON.stringify(M)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:M})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),T(E)})})}fetchTokenUsingPasswordFlow(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:T},i)}fetchTokenUsingGrant(x,T,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(M,this.customQueryParams[M]);for(const M of Object.keys(T))E=E.set(M,T[M]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((M,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(P=>{this.debug("tokenResponse",P),this.storeAccessTokenResponse(P.access_token,P.refresh_token,P.expires_in||this.fallbackAccessTokenExpirationTimeInSec,P.scope,this.extractRecognizedCustomParameters(P)),this.oidc&&P.id_token&&this.processIdToken(P.id_token,P.access_token).then(L=>{this.storeIdToken(L),M(P)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),M(P)},P=>{this.logger.error("Error performing ${grantType} flow",P),this.eventsSubject.next(new OAuthErrorEvent("token_error",P)),S(P)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,T)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const M=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+M)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const M of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(M,this.customQueryParams[M]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(M=>M.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(M.id_token,M.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>M)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(M))).subscribe(M=>{this.debug("refresh tokenResponse",M),this.storeAccessTokenResponse(M.access_token,M.refresh_token,M.expires_in||this.fallbackAccessTokenExpirationTimeInSec,M.scope,this.extractRecognizedCustomParameters(M)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(M)},M=>{this.logger.error("Error refreshing token",M),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",M)),T(M)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const T=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:T,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},T=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const M=this.document.createElement("iframe");M.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,T,x).then(U=>{M.setAttribute("src",U),this.silentRefreshShowIFrame||(M.style.display="none"),this.document.body.appendChild(M)});const P=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>U instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(U=>"token_received"===U.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),V=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([P,L,V]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(U=>{if(U instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===U.type||(U=new OAuthErrorEvent("silent_refresh_error",U)),this.eventsSubject.next(U),U;return"token_received"===U.type&&(U=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(U)),U})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(T=>new Promise((i,E)=>{let P,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=T):S=window.open(T,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const L=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{U(),i(!0)},te=>{U(),E(te)})};S?P=window.setInterval(()=>{(!S||S.closed)&&(U(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const U=()=>{window.clearInterval(P),window.removeEventListener("storage",$),window.removeEventListener("message",Y),null!==S&&S.close(),S=null},Y=X=>{const te=this.processMessageEventMessage(X);te&&null!==te?(window.removeEventListener("storage",$),L(te)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",Y),L(X.newValue))};window.addEventListener("message",Y),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const T=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${T},top=${window.screenTop+(window.outerHeight-T)/2},left=${E}`}processMessageEventMessage(x){let T="#";if(this.silentRefreshMessagePrefix&&(T+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(T)?"#"+i.substr(T.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const T=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(T)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",T,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const T=this.document.createElement("iframe");T.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),T.setAttribute("src",this.sessionCheckIFrameUrl),T.style.display="none",this.document.body.appendChild(T),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const T=this.getSessionState();T||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+T,this.issuer)}createLoginUrl(x="",T="",i="",E=!1,M={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let P;P=i||this.redirectUri;const L=yield this.createAndSaveNonce();if(x=x?L+this.config.nonceStateSeparator+encodeURIComponent(x):L,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const V=S.loginUrl.indexOf("?")>-1?"&":"?";let U=S.scope;this.oidc&&!U.match(/(^|\s)openid($|\s)/)&&(U="openid "+U);let Y=S.loginUrl+V+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(P)+"&scope="+encodeURIComponent(U);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),Y+="&code_challenge="+$,Y+="&code_challenge_method=S256"}T&&(Y+="&login_hint="+encodeURIComponent(T)),S.resource&&(Y+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(Y+="&nonce="+encodeURIComponent(L)),E&&(Y+="&prompt=none");for(const $ of Object.keys(M))Y+="&"+encodeURIComponent($)+"="+encodeURIComponent(M[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))Y+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return Y})}initImplicitFlowInternal(x="",T=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initImplicitFlow",M),this.inImplicitFlow=!1})}initImplicitFlow(x="",T=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,T):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,T))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const T=this;if(x.onTokenReceived){const i={idClaims:T.getIdentityClaims(),idToken:T.getIdToken(),accessToken:T.getAccessToken(),state:T.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,T,i,E,M){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,L=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+L)}T&&this._storage.setItem("refresh_token",T),M&&M.forEach((S,P)=>{this._storage.setItem(P,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(T=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const T=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(T),E=i.code,M=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const V=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,V)}let[P,L]=this.parseState(M);if(this.state=L,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const V=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(V),Promise.reject(V)}if(!x.disableNonceCheck){if(!P)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(P)){const U=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(U),Promise.reject(U)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,T){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",T.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,T)}fetchAndProcessToken(x,T){T=T||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,M)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,T.disableNonceCheck).then(P=>{this.storeIdToken(P),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(P=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",P)),console.error("Error validating tokens"),console.error(P),M(P)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),M(S)})})}tryLoginImplicitFlow(x=null){let T;T=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",T);const i=T.state;let[E,M]=this.parseState(i);if(this.state=M,T.error){this.debug("error trying to login"),this.handleLoginError(x,T);const U=new OAuthErrorEvent("token_error",{},T);return this.eventsSubject.next(U),Promise.reject(U)}const S=T.access_token,P=T.id_token,L=T.session_state,V=T.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!P)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!L&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(E)){const Y=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(Y),Promise.reject(Y)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,V),this.oidc?this.processIdToken(P,S,x.disableNonceCheck).then(U=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:U.idTokenClaims,idToken:U.idToken,state:i}).then(Y=>U):U).then(U=>(this.storeIdToken(U),this.storeSessionState(L),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(U=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",U)),this.logger.error("Error validating tokens"),this.logger.error(U),Promise.reject(U))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let T=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(T=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[T,i]}validateNonce(x){let T;return T=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),T===x||(console.error("Validating access_token failed, wrong state/nonce.",T,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,T){x.onLoginError&&x.onLoginError(T),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,T,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),P=JSON.parse(S),V=b64DecodeUnicode(this.padBase64(E[1])),U=JSON.parse(V);let Y;if(Y=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(U.aud)){if(U.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+U.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(U.aud!==this.clientId){const de="Wrong audience: "+U.aud;return this.logger.warn(de),Promise.reject(de)}if(!U.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==U.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${U.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!U.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&U.iss!==this.issuer){const de="Wrong issuer: "+U.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&U.nonce!==Y){const de="Wrong nonce: "+U.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!U.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*U.iat,te=1e3*U.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||te+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:te}),Promise.reject(de)}const ne={accessToken:T,idToken:x,jwks:this.jwks,idTokenClaims:U,idTokenHeader:P,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const Be={idToken:x,idTokenClaims:U,idTokenClaimsJson:V,idTokenHeader:P,idTokenHeaderJson:S,idTokenExpiresAt:te};return this.disableAtHashCheck?Be:this.checkAtHash(ne).then(Ze=>{if(this.requestAccessToken&&!Ze){const It="Wrong at_hash";return this.logger.warn(It),Promise.reject(It)}return Be})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),T=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},T=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let M;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)M=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const P=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";P&&(S=S.set("post_logout_redirect_uri",P),T&&(S=S.set("state",T)));for(let L in x)S=S.set(L,x[L]);M=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(M)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(T){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",T):x._storage.setItem("nonce",T),T})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const T=this.document.getElementById(this.sessionCheckIFrameName);T&&T.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const M="undefined"==typeof self?null:self.crypto||self.msCrypto;if(M){let S=new Uint8Array(i);M.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(P=>T.charCodeAt(P%T.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,T))}initCodeFlowInternal(x="",T={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof T?E=T:"object"==typeof T&&(i=T),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(M=>{console.error("Error in initAuthorizationCodeFlow"),console.error(M)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let T=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&T.set(i,JSON.stringify(x[i]))}),T}revokeTokenAndLogout(x={},T=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),M=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),P=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const L=btoa(`${this.clientId}:${this.dummyClientSecret}`);P=P.set("Authorization","Basic "+L)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const L of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(L,this.customQueryParams[L]);return new Promise((L,V)=>{let U,Y;if(E){let $=S.set("token",E).set("token_type_hint","access_token");U=this.http.post(i,$,{headers:P})}else U=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(M){let $=S.set("token",M).set("token_type_hint","refresh_token");Y=this.http.post(i,$,{headers:P})}else Y=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);T&&(U=U.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),Y=Y.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([U,Y]).subscribe($=>{this.logOut(x),L($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),V($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return z.\u0275fac=function(x){return new(x||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(G){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(G)}}let DefaultOAuthInterceptor=(()=>{class z{constructor(x,T,i){this.oAuthService=x,this.errorHandler=T,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(T=>x.toLowerCase().startsWith(T.toLowerCase()))}intercept(x,T){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>!!M)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(M=>"token_received"===M.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(M=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(M=>{if(M){const P=x.headers.set("Authorization","Bearer "+M);x=x.clone({headers:P})}return T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):T.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(M=>this.errorHandler.handleError(M))):T.handle(x)}}return z.\u0275fac=function(x){return new(x||z)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},z.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:z,factory:z.\u0275fac}),z})();class NullValidationHandler{validateSignature(G){return Promise.resolve(null)}validateAtHash(G){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class z{static forRoot(x=null,T=NullValidationHandler){return{ngModule:z,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:T},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return z.\u0275fac=function(x){return new(x||z)},z.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:z}),z.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),z})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},4147:z=>{"use strict";z.exports={i8:"8.1.1"}}},z=>{z(z.s=9636)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/assets/i18n/cs.json b/dist/apps/user-profile/assets/i18n/cs.json index d34236c3c..a547012c4 100644 --- a/dist/apps/user-profile/assets/i18n/cs.json +++ b/dist/apps/user-profile/assets/i18n/cs.json @@ -242,6 +242,12 @@ "ADD": "Uložit obrázek", "IMG_TOO_LONG": "Zvolený obrázek se nepodařilo zmenšit na cílovou velikost. Prosím zvolte jiný obrázek.", "DELAY_INFO": "Změna bezpečnostního obrázku se projeví většinou do 5 minut, v ojedinělých případech může propagace změny trvat několik hodin." + }, + "ACTIVATE_LOCAL_ACCOUNT": { + "TITLE": "Aktivovat účet", + "ACTIVATE": "Aktivovat", + "CANCEL": "Zrušit", + "SUCCESS": "Účet byl úspěšně aktivován" } }, "ALERTS": { diff --git a/dist/apps/user-profile/assets/i18n/en.json b/dist/apps/user-profile/assets/i18n/en.json index ef8cdd64b..6a04d8df1 100644 --- a/dist/apps/user-profile/assets/i18n/en.json +++ b/dist/apps/user-profile/assets/i18n/en.json @@ -242,6 +242,12 @@ "ADD": "Save image", "IMG_TOO_LONG": "Your image could not be resized to fit. Please try a different one.", "DELAY_INFO": "New security image usually becomes effective in 5 minutes, in rare cases it might take a couple of hours." + }, + "ACTIVATE_LOCAL_ACCOUNT": { + "TITLE": "Activate account", + "ACTIVATE": "Activate", + "CANCEL": "Cancel", + "SUCCESS": "Account was successfully activated" } }, "ALERTS": { diff --git a/dist/apps/user-profile/index.html b/dist/apps/user-profile/index.html index 00616ba4d..36e3202bc 100644 --- a/dist/apps/user-profile/index.html +++ b/dist/apps/user-profile/index.html @@ -5,7 +5,7 @@ User Profile - + @@ -13,5 +13,5 @@
- + diff --git a/dist/apps/user-profile/main.7167d2d0c01dcd4a.js b/dist/apps/user-profile/main.7167d2d0c01dcd4a.js deleted file mode 100644 index 74db33b02..000000000 --- a/dist/apps/user-profile/main.7167d2d0c01dcd4a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{6396:(Y,U,x)=>{"use strict";var w=x(9808),i=x(5e3);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends E{static makeCurrent(){(0,w.HT)(new T)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function L(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function N(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const j=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function q(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const s=function(o){d=d||o,l--,0==l&&t(d)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let ie=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ne=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(ze),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ze))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function ze(n){(0,w.q)().remove(n)}const Je={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/"},vt=/%COMP%/g;function Ae(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let ke=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Ci(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new st(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=Ae(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ne),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Je[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&a.insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Je[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Je[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,Ce(t)):this.eventManager.addEventListener(a,e,Ce(t))}}class Ci extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=Ae(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function yt(n){return"_ngcontent-%COMP%".replace(vt,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(vt,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class st extends ge{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Ae(r.id,r.styles,[]);for(let d=0;d{class n extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const kn=["alt","control","meta","shift"],Ke={"\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"},di={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},hr={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let sn=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(kn.forEach(o=>{const c=t.indexOf(o);c>-1&&(t.splice(c,1),d+=o+".")}),d+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=d,s}static getEventFullKey(e){let t="",r=function pi(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&di.hasOwnProperty(a)&&(a=di[a]))}return Ke[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kn.forEach(l=>{l!=r&&hr[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Fr=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function Ut(){T.makeCurrent(),X.init()},multi:!0},{provide:w.K0,useFactory:function la(){return(0,i.RDi)(document),document},deps:[]}]),Pn=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function on(){return new i.qLn},deps:[]},{provide:ce,useClass:bt,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ce,useClass:sn,multi:!0,deps:[w.K0]},{provide:ke,useClass:ke,deps:[ne,Ne,i.AFp]},{provide:i.FYo,useExisting:ke},{provide:me,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[w.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:w.JF,useClass:ie,deps:[]}];let ue=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:j,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Pn,imports:[w.ez,i.hGG]}),n})(),it=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ue(){return new it((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let fr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(gs),t},providedIn:"root"}),n})(),gs=(()=>{class n extends fr{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function ms(n){return new gs(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=x(520);class Be{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const vi=new i.OlP("basePath");class Xe{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let ni=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,d,s,o,c,u,h,f,b="body",V=!1,ee){let he=new M.LE({encoder:this.encoder});null!=e&&(he=this.addToHttpParams(he,e,"attributeName")),null!=t&&(he=this.addToHttpParams(he,t,"attributeId")),null!=r&&(he=this.addToHttpParams(he,r,"facility")),null!=l&&(he=this.addToHttpParams(he,l,"user")),null!=d&&(he=this.addToHttpParams(he,d,"vo")),null!=s&&(he=this.addToHttpParams(he,s,"resource")),null!=o&&(he=this.addToHttpParams(he,o,"member")),null!=c&&(he=this.addToHttpParams(he,c,"group")),null!=u&&(he=this.addToHttpParams(he,u,"host")),null!=h&&(he=this.addToHttpParams(he,h,"userExtSource")),null!=f&&(he=this.addToHttpParams(he,f,"key"));let gt,Oe=this.defaultHeaders;gt=this.configuration.lookupCredential("BasicAuth"),gt&&(Oe=Oe.set("Authorization","Basic "+gt)),gt=this.configuration.lookupCredential("BearerAuth"),gt&&(Oe=Oe.set("Authorization","Bearer "+gt));let dt=ee&&ee.httpHeaderAccept;void 0===dt&&(dt=this.configuration.selectHeaderAccept(["application/json"])),void 0!==dt&&(Oe=Oe.set("Accept",dt));let Kt=ee&&ee.context;void 0===Kt&&(Kt=new M.qT);let Pa="json";return dt&&(Pa=dt.startsWith("text")?"text":this.configuration.isJsonMime(dt)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Kt,params:he,responseType:Pa,withCredentials:this.configuration.withCredentials,headers:Oe,observe:b,reportProgress:V})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,d,s,o,c,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=d&&(b=this.addToHttpParams(b,d,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=c&&(b=this.addToHttpParams(b,c,"userExtSource"));let ee,V=this.defaultHeaders;ee=this.configuration.lookupCredential("BasicAuth"),ee&&(V=V.set("Authorization","Basic "+ee)),ee=this.configuration.lookupCredential("BearerAuth"),ee&&(V=V.set("Authorization","Bearer "+ee));let he=f&&f.httpHeaderAccept;void 0===he&&(he=this.configuration.selectHeaderAccept(["application/json"])),void 0!==he&&(V=V.set("Accept",he));let Oe=f&&f.context;void 0===Oe&&(Oe=new M.qT);let gt="json";return he&&(gt=he.startsWith("text")?"text":this.configuration.isJsonMime(he)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Oe,params:b,responseType:gt,withCredentials:this.configuration.withCredentials,headers:V,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=l&&(c=this.addToHttpParams(c,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesHostService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=d&&(u=this.addToHttpParams(u,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberResourceService(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}removeAttributesForFacilityResourceUserMember(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberResourceAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeResourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeUserFacilityAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeVoAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Wi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ei=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Di=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}createGroupWithVoNameDescription(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deleteGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"members[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupUnions(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Mt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCompleteRichMembersForGroup(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attrsNames[]")}),d&&d.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedStatuses[]")}),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}findCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getAllMembers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"allowedStatuses[]")}),l&&l.forEach(he=>{u=this.addToHttpParams(u,he,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attrsNames[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}moveMembership(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeSponsor(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"namespace")),null!=r&&(c=this.addToHttpParams(c,r,"emailAttributeURN")),null!=l&&(c=this.addToHttpParams(c,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=d&&(u=this.addToHttpParams(u,d,"baseUrl"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}setStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateSponsorshipValidity(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ri=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let c=new M.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"voId")),null!=l&&(c=this.addToHttpParams(c,l,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendInvitationForGroup(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=d&&(u=this.addToHttpParams(u,d,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",d=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sendInvitationToExistingUser(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}addAdminToGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"groups[]")}),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}assignGroupToResource(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(he=>{u=this.addToHttpParams(u,he,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let u=new M.LE({encoder:this.encoder});e&&e.forEach(he=>{u=this.addToHttpParams(u,he,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResource(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"facility")),null!=r&&(c=this.addToHttpParams(c,r,"name")),null!=l&&(c=this.addToHttpParams(c,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourcesWhereUserIsAdmin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRichAdmins(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"specificAttributes")}),null!=r&&(c=this.addToHttpParams(c,r,"allUserAttributes")),null!=l&&(c=this.addToHttpParams(c,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"password")),null!=r&&(o=this.addToHttpParams(o,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}changePasswordForUser(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"password")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Dt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),_s=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCandidatesForGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCompleteCandidatesForVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=d&&(u=this.addToHttpParams(u,d,"onlyDirectAdmins"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Bt=(()=>{return(n=Bt||(Bt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",Bt;var n})();let ys=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER,Bt.FACILITYADMIN,Bt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Bt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Bt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Bt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Bt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.VOOBSERVER,Bt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Bt.PERUNADMIN,Bt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))o="User"===V?[V].concat(o):o.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(s,c);r.set(l,{readAuth:u,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const s=r[d];if(null===s)this.principalRoles.has(d)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(d,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const s=this.getPerunPolicy(d);if(!s)return[];t.set(d,s),r=r.concat(s.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,dn.D)(e):(0,Mn.c)()).subscribe(a)})}var ws=x(1762),ut=x(4850),Ui=x(7545),Zt=x(2986),za=x(2866);function _i(...n){const a=n[n.length-1];return(0,za.K)(a)?(n.pop(),e=>Ms(n,e,a)):e=>Ms(n,e)}var Sr=x(3489);function Cs(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Md(n,a,e))}}class Md{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new Fn(a,this.accumulator,this.seed,this.hasSeed))}}class Fn extends Sr.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var wn=x(7221),vs=x(1406),Jo=x(4231);function bi(n){return function(e){return 0===n?(0,Mn.c)():e.lift(new Ts(n))}}class Ts{constructor(a){if(this.total=a,this.total<0)throw new Jo.W}call(a,e){return e.subscribe(new ga(a,this.total))}}class ga extends Sr.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Se(n))}class Se{constructor(a){this.callback=a}call(a,e){return e.subscribe(new nt(a,this.callback))}}class nt extends Sr.L{constructor(a,e){super(a),this.add(new re.w(e))}}class Yt{constructor(a,e){this.id=a,this.url=e}}class Xt extends Yt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class At extends Yt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ft extends Yt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Gi extends Yt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ti extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ki extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _a extends Yt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Er extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mt extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fa{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qo{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xo{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ko{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yu{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ao{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Wu{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class $t{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ba(n){return new $t(n)}const Zi="ngNavigationCancelingError";function dc(n){const a=Error("NavigationCancelingError: "+n);return a[Zi]=!0,a}function qr(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function Mi(n){return Array.prototype.concat.apply([],n)}function tl(n){return n.length>0?n[n.length-1]:null}function ei(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function un(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,dn.D)(Promise.resolve(n)):(0,$e.of)(n)}const so={exact:function Ju(n,a,e){if(!Wr(n.segments,a.segments)||!il(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Ju(n.children[t],a.children[t],e))return!1;return!0},subset:xs},jn={exact:function $u(n,a){return gr(n,a)},subset:function hc(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>Uu(n[e],a[e]))},ignored:()=>!0};function Zu(n,a,e){return so[e.paths](n.root,a.root,e.matrixParams)&&jn[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function xs(n,a,e){return oo(n,a,a.segments,e)}function oo(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Wr(r,e)||a.hasChildren()||!il(r,e,t))}if(n.segments.length===e.length){if(!Wr(n.segments,e)||!il(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!xs(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Wr(n.segments,r)&&il(n.segments,r,t)&&n.children[be])&&oo(n.children[be],a,l,t)}}function il(n,a,e){return a.every((t,r)=>jn[e](n[r].parameters,t.parameters))}class Yr{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return pc.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ei(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fc(this)}}class ja{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ba(this.parameters)),this._parameterMap}toString(){return Xu(this)}}function Wr(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class Cd{}class vd{parse(a){const e=new Aa(a);return new Yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${nl(a.root,!0)}`,t=function Ss(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Dr(e)}=${Dr(r)}`).join("&"):`${Dr(e)}=${Dr(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Oi(n){return encodeURI(n)}(a.fragment)}`:""}`}}const pc=new vd;function fc(n){return n.segments.map(a=>Xu(a)).join("/")}function nl(n,a){if(!n.hasChildren())return fc(n);if(a){const e=n.children[be]?nl(n.children[be],!1):"",t=[];return ei(n.children,(r,l)=>{l!==be&&t.push(`${l}:${nl(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function Qu(n,a){let e=[];return ei(n.children,(t,r)=>{r===be&&(e=e.concat(a(t,r)))}),ei(n.children,(t,r)=>{r!==be&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===be?[nl(n.children[be],!1)]:[`${r}:${nl(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${fc(n)}/${e[0]}`:`${fc(n)}/(${e.join("//")})`}}function xn(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dr(n){return xn(n).replace(/%3B/gi,";")}function mc(n){return xn(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rl(n){return decodeURIComponent(n)}function Td(n){return rl(n.replace(/\+/g,"%20"))}function Xu(n){return`${mc(n.path)}${function Hr(n){return Object.keys(n).map(a=>`;${mc(a)}=${mc(n[a])}`).join("")}(n.parameters)}`}const al=/^[^\/()?;=#]+/;function Es(n){const a=n.match(al);return a?a[0]:""}const sl=/^[^=?&#]+/,Ku=/^[^&#]+/;class Aa{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[be]=new Wt(a,e)),t}parseSegment(){const a=Es(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new ja(rl(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Es(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Es(this.remaining);r&&(t=r,this.capture(t))}a[rl(e)]=rl(t)}parseQueryParam(a){const e=function gc(n){const a=n.match(sl);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function wf(n){const a=n.match(Ku);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Td(e),l=Td(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Es(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=be);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[be]:new Wt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class co{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=xd(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=xd(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Sd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return Sd(a,this._root).map(e=>e.value)}}function xd(n,a){if(n===a.value)return a;for(const e of a.children){const t=xd(n,e);if(t)return t}return null}function Sd(n,a){if(n===a.value)return[a];for(const e of a.children){const t=Sd(n,e);if(t.length)return t.unshift(a),t}return[]}class ir{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function qa(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class eh extends co{constructor(a,e){super(a),this.snapshot=e,_c(this,a)}toString(){return this.snapshot.toString()}}function th(n,a){const e=function P1(n,a){const d=new uo([],{},{},"",{},be,a,null,n.root,-1,{});return new ll("",new ir(d,[]))}(n,a),t=new Ki([new ja("",{})]),r=new Ki({}),l=new Ki({}),d=new Ki({}),s=new Ki(""),o=new nr(t,r,d,s,l,be,a,e.root);return o.snapshot=e.root,new eh(new ir(o,[]),e)}class nr{constructor(a,e,t,r,l,d,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ut.U)(a=>ba(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ut.U)(a=>ba(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ol(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function ih(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class uo{constructor(a,e,t,r,l,d,s,o,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=o,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ll extends co{constructor(a,e){super(e),this.url=a,_c(this,e)}toString(){return ho(this._root)}}function _c(n,a){a.value._routerState=n,a.children.forEach(e=>_c(n,e))}function ho(n){const a=n.children.length>0?` { ${n.children.map(ho).join(", ")} } `:"";return`${n.value}${a}`}function Ya(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,gr(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),gr(a.params,e.params)||n.params.next(e.params),function uc(n,a){if(n.length!==a.length)return!1;for(let e=0;egr(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Ed(n.parent,a.parent))}function Ds(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function bc(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Ds(n,t,r);return Ds(n,t)})}(n,a,e);return new ir(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(s=>Ds(n,s)),d}}const t=function R1(n){return new nr(new Ki(n.url),new Ki(n.params),new Ki(n.queryParams),new Ki(n.fragment),new Ki(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Ds(n,l));return new ir(t,r)}}function cl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function fo(n){return"object"==typeof n&&null!=n&&n.outlets}function Ac(n,a,e,t,r){let l={};return t&&ei(t,(d,s)=>{l[s]=Array.isArray(d)?d.map(o=>`${o}`):`${d}`}),new Yr(e.root===n?a:Hs(e.root,n,a),l,r)}function Hs(n,a,e){const t={};return ei(n.children,(r,l)=>{t[l]=r===a?e:Hs(r,a,e)}),new Wt(n.segments,t)}class Ls{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&cl(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(fo);if(r&&r!==tl(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ya{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function yc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return ul(n,a,e);const t=function rh(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(fo(s))break;const o=`${s}`,c=t0&&void 0===o)break;if(o&&c&&"object"==typeof c&&void 0===c.outlets){if(!go(o,c,d))return l;t+=2}else{if(!go(o,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=yc(n.children[d],a,l))}),ei(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Wt(n.segments,r)}}function Hd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=Hd(new Wt([],{}),0,e))}),a}function hl(n){const a={};return ei(n,(e,t)=>a[t]=`${e}`),a}function go(n,a,e){return n==e.path&&gr(a,e.parameters)}class ah{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Ya(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=qa(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ei(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=qa(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=qa(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new ao(l.value.snapshot))}),a.children.length&&this.forwardEvent(new Ko(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(Ya(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(s.contexts),d.attachRef=s.componentRef,d.route=s.route.value,d.outlet&&d.outlet.attach(s.componentRef,s.route.value),Ya(s.route.value),this.activateChildRoutes(a,null,d.children)}else{const s=function sh(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),o=s?s.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=o,d.outlet&&d.outlet.activateWith(r,o),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Ua{constructor(a,e){this.routes=a,this.module=e}}function Ma(n){return"function"==typeof n}function wa(n){return n instanceof Yr}const ks=Symbol("INITIAL_VALUE");function Ur(){return(0,Ui.w)(n=>(0,io.aj)(n.map(a=>a.pipe((0,Zt.q)(1),_i(ks)))).pipe(Cs((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==ks?r:(l===ks&&(t=!0),t||!1!==l&&d!==e.length-1&&!wa(l)?r:l),a)},ks),(0,jt.h)(a=>a!==ks),(0,ut.U)(a=>wa(a)?a:!0===a),(0,Zt.q)(1)))}class O1{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new pl,this.attachRef=null}}class pl{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new O1,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let hi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new kd(e,s,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(pl),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class kd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===nr?this.route:a===pl?this.childContexts:this.parent.get(a,e)}}let Tf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],encapsulation:2}),n})();function xf(n,a=""){for(let e=0;eLr(t)===a);return e.push(...n.filter(t=>Lr(t)!==a)),e}const Sf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ii(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},Sf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||qr)(e,n,a);if(!l)return Object.assign({},Sf);const d={};ei(l.posParams,(o,c)=>{d[c]=o.path});const s=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function Mo(n,a,e,t,r="corrected"){if(e.length>0&&function Df(n,a,e){return e.some(t=>qn(n,a,t)&&Lr(t)!==be)}(n,e,t)){const d=new Wt(a,function Ef(n,a,e,t){const r={};r[be]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Lr(l)!==be){const d=new Wt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[Lr(l)]=d}return r}(n,a,t,new Wt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function _r(n,a,e){return e.some(t=>qn(n,a,t))}(n,e,t)){const d=new Wt(n.segments,function ml(n,a,e,t,r,l){const d={};for(const s of t)if(qn(n,e,s)&&!r[Lr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[Lr(s)]=o}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qn(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Pd(n,a,e,t){return!!(Lr(n)===t||t!==be&&qn(a,e,n))&&("**"===n.path||Ii(a,n,e).matched)}function gl(n,a,e){return 0===a.length&&!n.children[e]}class Ca{constructor(a){this.segmentGroup=a||null}}class Gr{constructor(a){this.urlTree=a}}function _l(n){return new Ri.y(a=>a.error(new Ca(n)))}function ch(n){return new Ri.y(a=>a.error(new Gr(n)))}function B1(n){return new Ri.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class rr{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=Mo(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe((0,ut.U)(l=>this.createUrlTree(va(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,wn.K)(l=>{if(l instanceof Gr)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ca?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,be).pipe((0,ut.U)(r=>this.createUrlTree(va(r),a.queryParams,a.fragment))).pipe((0,wn.K)(r=>{throw r instanceof Ca?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Wt([],{[be]:a}):a;return new Yr(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ut.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,dn.D)(r).pipe((0,vs.b)(l=>{const d=t.children[l],s=yo(e,l);return this.expandSegmentGroup(a,s,d,l).pipe((0,ut.U)(o=>({segment:o,outlet:l})))}),Cs((l,d)=>(l[d.outlet]=d.segment,l),{}),function Li(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,jt.h)((r,l)=>n(r,l,t)):Mf.y,bi(1),e?(0,ro.d)(a):(0,cc.T)(()=>new no.K))}())}expandSegment(a,e,t,r,l,d){return(0,dn.D)(t).pipe((0,vs.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,d).pipe((0,wn.K)(c=>{if(c instanceof Ca)return(0,$e.of)(null);throw c}))),(0,B.P)(s=>!!s),(0,wn.K)((s,o)=>{if(s instanceof no.K||"EmptyError"===s.name){if(gl(e,r,l))return(0,$e.of)(new Wt([],{}));throw new Ca(e)}throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,d,s){return Pd(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):_l(e):_l(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?ch(l):this.lineralizeSegments(t,l).pipe((0,G.zg)(d=>{const s=new Wt(d,{});return this.expandSegment(a,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:s,consumedSegments:o,lastChild:c,positionalParamSegments:u}=Ii(e,r,l);if(!s)return _l(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?ch(h):this.lineralizeSegments(r,h).pipe((0,G.zg)(f=>this.expandSegment(a,e,t,f.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,ut.U)(f=>(t._loadedConfig=f,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}));const{matched:d,consumedSegments:s,lastChild:o}=Ii(e,t,r);if(!d)return _l(e);const c=r.slice(o);return this.getChildConfig(a,t,r).pipe((0,G.zg)(h=>{const f=h.module,b=h.routes,{segmentGroup:V,slicedSegments:ee}=Mo(e,s,c,b),he=new Wt(V.segments,V.children);if(0===ee.length&&he.hasChildren())return this.expandChildren(f,b,he).pipe((0,ut.U)(Kt=>new Wt(s,Kt)));if(0===b.length&&0===ee.length)return(0,$e.of)(new Wt(s,{}));const Oe=Lr(t)===l;return this.expandSegment(f,he,b,ee,Oe?be:l,!0).pipe((0,ut.U)(dt=>new Wt(s.concat(dt.segments),dt.children)))}))}getChildConfig(a,e,t){return e.children?(0,$e.of)(new Ua(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,$e.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,G.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,ut.U)(l=>(e._loadedConfig=l,l))):function N1(n){return new Ri.y(a=>a.error(dc(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,$e.of)(new Ua([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(d=>{const s=a.get(d);let o;if(function _o(n){return n&&Ma(n.canLoad)}(s))o=s.canLoad(e,t);else{if(!Ma(s))throw new Error("Invalid CanLoad guard");o=s(e,t)}return un(o)});return(0,$e.of)(l).pipe(Ur(),(0,I.b)(d=>{if(!wa(d))return;const s=dc(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw s.url=d,s}),(0,ut.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[be])return B1(a.redirectTo);r=r.children[be]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new Yr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ei(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ei(e.children,(s,o)=>{d[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}function va(n){const a={};for(const t of Object.keys(n.children)){const l=va(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Rd(n){if(1===n.numberOfChildren&&n.children[be]){const a=n.children[be];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}class wo{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class bl{constructor(a,e){this.component=a,this.route=e}}function Od(n,a,e){const t=n._root;return Co(t,a?a._root:null,e,[t.value])}function Mc(n,a,e){const t=function Lf(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function Co(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=qa(a);return n.children.forEach(d=>{(function Id(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const o=function br(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Wr(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Wr(n.url,a.url)||!gr(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ed(n,a)||!gr(n.queryParams,a.queryParams);default:return!Ed(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new wo(t)):(l.data=d.data,l._resolvedData=d._resolvedData),Co(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new bl(s.outlet.component,d))}else d&&wc(a,s,r),r.canActivateChecks.push(new wo(t)),Co(n,null,l.component?s?s.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ei(l,(d,s)=>wc(d,e.getContext(s),r)),r}function wc(n,a,e){const t=qa(n),r=n.value;ei(t,(l,d)=>{wc(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new bl(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Al{}function kr(n){return new Ri.y(a=>a.error(n))}class hn{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=Mo(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,be);if(null===e)return null;const t=new uo([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ir(t,e),l=new ll(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=ol(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],s=yo(a,l),o=this.processSegmentGroup(s,d,l);if(null===o)return null;t.push(...o)}const r=To(t);return function hh(n){n.sort((a,e)=>a.value.outlet===be?-1:e.value.outlet===be?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return gl(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Pd(a,e,t,r))return null;let l,d=[],s=[];if("**"===a.path){const b=t.length>0?tl(t).parameters:{};l=new uo(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+t.length,Ga(a))}else{const b=Ii(e,a,t);if(!b.matched)return null;d=b.consumedSegments,s=t.slice(b.lastChild),l=new uo(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,xo(a),Lr(a),a.component,a,ph(e),fh(e)+d.length,Ga(a))}const o=function Of(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=Mo(e,d,s,o.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(o,c);return null===b?null:[new ir(l,b)]}if(0===o.length&&0===u.length)return[new ir(l,[])];const h=Lr(a)===r,f=this.processSegment(o,c,u,h?be:r);return null===f?null:[new ir(l,f)]}}function Nd(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function To(n){const a=[],e=new Set;for(const t of n){if(!Nd(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=To(t.children);a.push(new ir(t.value,r))}return a.filter(t=>!e.has(t))}function ph(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function fh(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function xo(n){return n.data||{}}function Ga(n){return n.resolve||{}}function Tc(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Sc(n){return(0,Ui.w)(a=>{const e=n(a);return e?(0,dn.D)(e).pipe((0,ut.U)(()=>a)):(0,$e.of)(a)})}class Yn extends class Nf{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const Ar=new i.OlP("ROUTES");class gh{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,ut.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new Ua(Mi(d.injector.get(Ar,void 0,i.XFs.Self|i.XFs.Optional)).map(fl),d)}),(0,wn.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new ws.c(r,()=>new He.xQ).pipe((0,Q.x)()),e._loader$}loadModuleFactory(a){return un(a()).pipe((0,G.zg)(e=>e instanceof i.YKP?(0,$e.of)(e):(0,dn.D)(this.compiler.compileModuleAsync(e))))}}class _h{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function Vf(n){throw n}function F1(n,a,e){return a.parse("/")}function Ec(n,a){return(0,$e.of)(null)}const Eo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Dc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let rt=(()=>{class n{constructor(e,t,r,l,d,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=Vf,this.malformedUriErrorHandler=F1,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ec,afterPreactivation:Ec},this.urlHandlingStrategy=new _h,this.routeReuseStrategy=new Yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function Gu(){return new Yr(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new gh(d,s,f=>this.triggerEvent(new Fa(f)),f=>this.triggerEvent(new Qo(f))),this.routerState=th(this.currentUrlTree,this.rootComponentType),this.transitions=new Ki({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,jt.h)(r=>0!==r.id),(0,ut.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,Ui.w)(r=>{let l=!1,d=!1;return(0,$e.of)(r).pipe((0,I.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Ui.w)(s=>{const o=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return H(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,Ui.w)(h=>{const f=this.transitions.getValue();return t.next(new Xt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?Mn.E:Promise.resolve(h)}),function ti(n,a,e,t){return(0,Ui.w)(r=>function Ie(n,a,e,t,r){return new rr(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,ut.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function Za(n,a,e,t,r){return(0,G.zg)(l=>function Rf(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new hn(n,a,e,t,r,l).recognize();return null===d?kr(new Al):(0,$e.of)(d)}catch(d){return kr(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,ut.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new Ti(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:ee,extras:he}=s,Oe=new Xt(f,this.serializeUrl(b),V,ee);t.next(Oe);const gt=th(b,this.rootComponentType).snapshot;return(0,$e.of)(Object.assign(Object.assign({},s),{targetSnapshot:gt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),Mn.E}),Sc(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.beforePreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,I.b)(s=>{const o=new ki(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,ut.U)(s=>Object.assign(Object.assign({},s),{guards:Od(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function vo(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,$e.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Bd(n,a,e,t){return(0,dn.D)(n).pipe((0,G.zg)(r=>function Pf(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const d=l.map(s=>{const o=Mc(s,a,r);let c;if(function oh(n){return n&&Ma(n.canDeactivate)}(o))c=un(o.canDeactivate(n,a,e,t));else{if(!Ma(o))throw new Error("Invalid CanDeactivate guard");c=un(o(n,a,e,t))}return c.pipe((0,B.P)())});return(0,$e.of)(d).pipe(Ur())}(r.component,r.route,e,a,t)),(0,B.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,G.zg)(s=>s&&function Ld(n){return"boolean"==typeof n}(s)?function Cc(n,a,e,t){return(0,dn.D)(a).pipe((0,vs.b)(r=>Ms(function kf(n,a){return null!==n&&a&&a(new Xo(n)),(0,$e.of)(!0)}(r.route.parent,t),function dh(n,a){return null!==n&&a&&a(new Yu(n)),(0,$e.of)(!0)}(r.route,t),function vc(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function Hf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>ma(()=>{const s=d.guards.map(o=>{const c=Mc(o,d.node,e);let u;if(function Ao(n){return n&&Ma(n.canActivateChild)}(c))u=un(c.canActivateChild(t,n));else{if(!Ma(c))throw new Error("Invalid CanActivateChild guard");u=un(c(t,n))}return u.pipe((0,B.P)())});return(0,$e.of)(s).pipe(Ur())}));return(0,$e.of)(l).pipe(Ur())}(n,r.path,e),function uh(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>ma(()=>{const d=Mc(l,a,e);let s;if(function bo(n){return n&&Ma(n.canActivate)}(d))s=un(d.canActivate(a,n));else{if(!Ma(d))throw new Error("Invalid CanActivate guard");s=un(d(a,n))}return s.pipe((0,B.P)())}));return(0,$e.of)(r).pipe(Ur())}(n,r.route,e))),(0,B.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,ut.U)(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,I.b)(s=>{if(wa(s.guardsResult)){const c=dc(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw c.url=s.guardsResult,c}const o=new _a(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,jt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),Sc(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,I.b)(o=>{const c=new Er(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}),(0,Ui.w)(o=>{let c=!1;return(0,$e.of)(o).pipe(function So(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,dn.D)(r).pipe((0,vs.b)(d=>function If(n,a,e,t){return function mh(n,a,e,t){const r=Tc(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,dn.D)(r).pipe((0,G.zg)(d=>function xc(n,a,e,t){const r=Mc(n,a,t);return un(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,I.b)(s=>{l[d]=s}))),bi(1),(0,G.zg)(()=>Tc(l).length===r.length?(0,$e.of)(l):Mn.E))}(n._resolve,n,a,t).pipe((0,ut.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),ol(n,e).resolve),null)))}(d.route,t,n,a)),(0,I.b)(()=>l++),bi(1),(0,G.zg)(d=>l===r.length?(0,$e.of)(e):Mn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(o),this.cancelNavigationTransition(o,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(o=>{const c=new mt(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}))}),Sc(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.afterPreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,ut.U)(s=>{const o=function po(n,a,e){const t=Ds(n,a._root,e?e._root:void 0);return new eh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:o})}),(0,I.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,ut.U)(t=>(new ah(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,I.b)({next(){l=!0},complete(){l=!0}}),ye(()=>{var s;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,wn.K)(s=>{if(d=!0,function el(n){return n&&n[Zi]}(s)){const o=wa(s.url);o||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Ft(r.id,this.serializeUrl(r.extractedUrl),s.message);t.next(c),o?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||H(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new Gi(r.id,this.serializeUrl(r.extractedUrl),s);t.next(o);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return Mn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const o=Object.assign({},d);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){xf(e),this.config=e.map(fl),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:s,preserveFragment:o}=t,c=r||this.routerState.root,u=o?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function nh(n,a,e,t,r){if(0===e.length)return Ac(a.root,a.root,a,t,r);const l=function Wa(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new Ls(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ei(l.outlets,(o,c)=>{s[c]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new Ls(e,a,t)}(e);if(l.toRoot())return Ac(a.root,new Wt([],{}),a,t,r);const d=function dl(n,a,e){if(n.isAbsolute)return new ya(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ya(l,l===a.root,0)}const t=cl(n.commands[0])?0:1;return function mo(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ya(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),s=d.processChildren?ul(d.segmentGroup,d.index,l.commands):yc(d.segmentGroup,d.index,l.commands);return Ac(d.segmentGroup,s,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=wa(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function C(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new At(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var s,o,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=H(t)&&u&&!H(u.source),f=u.rawUrl.toString()===e.toString(),b=u.id===(null===(s=this.currentNavigation)||void 0===s?void 0:s.id);if(h&&f&&b)return Promise.resolve(!0);let ee,he,Oe;d?(ee=d.resolve,he=d.reject,Oe=d.promise):Oe=new Promise((Kt,Pa)=>{ee=Kt,he=Pa});const gt=++this.navigationId;let dt;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),dt=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):dt=0,this.setTransition({id:gt,targetPageId:dt,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ee,reject:he,promise:Oe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Oe.catch(Kt=>Promise.reject(Kt))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const r=new Ft(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function H(n){return"imperative"!==n}let O=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new He.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:J(this.skipLocationChange),replaceUrl:J(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),z=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new He.xQ,this.subscription=e.events.subscribe(l=>{l instanceof At&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:J(this.skipLocationChange),replaceUrl:J(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:J(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function J(n){return""===n||!!n}class ot{}class kt{preload(a,e){return e().pipe((0,wn.K)(()=>(0,$e.of)(null)))}}class ai{preload(a,e){return(0,$e.of)(null)}}let Bi=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new gh(r,t,o=>e.triggerEvent(new Fa(o)),o=>e.triggerEvent(new Qo(o)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,jt.h)(e=>e instanceof At),(0,vs.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,dn.D)(r).pipe((0,$o.J)(),(0,ut.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,G.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rt),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(ot))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Pr=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Xt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof At&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Wu&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Wu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const yl=new i.OlP("ROUTER_CONFIGURATION"),j1=new i.OlP("ROUTER_FORROOT_GUARD"),WA=[w.Ye,{provide:Cd,useClass:vd},{provide:rt,useFactory:function ZA(n,a,e,t,r,l,d={},s,o){const c=new rt(null,n,a,e,t,r,Mi(l));return s&&(c.urlHandlingStrategy=s),o&&(c.routeReuseStrategy=o),function $A(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[Cd,pl,w.Ye,i.zs3,i.Sil,Ar,yl,[class z1{},new i.FiY],[class Bf{},new i.FiY]]},pl,{provide:nr,useFactory:function W1(n){return n.routerState.root},deps:[rt]},Bi,ai,kt,{provide:yl,useValue:{enableTracing:!1}}];function Rs(){return new i.PXZ("Router",rt)}let Os=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[WA,Y1(e),{provide:j1,useFactory:GA,deps:[[rt,new i.FiY,new i.tp0]]},{provide:yl,useValue:t||{}},{provide:w.S$,useFactory:UA,deps:[w.lw,[new i.tBr(w.mr),new i.FiY],yl]},{provide:Pr,useFactory:q1,deps:[rt,w.EM,yl]},{provide:ot,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:ai},{provide:i.PXZ,multi:!0,useFactory:Rs},[zf,{provide:i.ip1,multi:!0,useFactory:JA,deps:[zf]},{provide:U1,useFactory:QA,deps:[zf]},{provide:i.tb,multi:!0,useExisting:U1}]]}}static forChild(e){return{ngModule:n,providers:[Y1(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(j1,8),i.LFG(rt,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function q1(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Pr(n,a,e)}function UA(n,a,e={}){return e.useHash?new w.Do(n,a):new w.b0(n,a)}function GA(n){return"guarded"}function Y1(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:Ar,multi:!0,useValue:n}]}let zf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(w.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(s=>t=s),l=this.injector.get(rt),d=this.injector.get(yl);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,$e.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(yl),r=this.injector.get(Bi),l=this.injector.get(Pr),d=this.injector.get(rt),s=this.injector.get(i.z2F);e===s.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function JA(n){return n.appInitializer.bind(n)}function QA(n){return n.bootstrapListener.bind(n)}const U1=new i.OlP("Router Initializer");let zt=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,Ff.k)(r)?t(...r):t(r))):new Ri.y(r=>{bh(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function bh(n,a,e,t,r){let l;if(function Z1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function jv(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function Fv(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,s=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let Ah=1;const $1=Promise.resolve(),kc={};function J1(n){return n in kc&&(delete kc[n],!0)}const $i={setImmediate(n){const a=Ah++;return kc[a]=!0,$1.then(()=>J1(a)&&n()),a},clearImmediate(n){J1(n)}},yh=new class Wf extends qf.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=$i.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&($i.clearImmediate(e),a.scheduled=void 0)}});var Mh=x(353),Q1=x(826),X1=x(9054);class ny{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new qv(a,this.durationSelector))}}class qv extends Q1.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,X1.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function K1(n){return!(0,Ff.k)(n)&&n-parseFloat(n)+1>=0}function Pc(n=0,a,e){let t=-1;return K1(a)?t=Number(a)<1?1:Number(a):(0,za.K)(a)&&(e=a),(0,za.K)(e)||(e=Mh.P),new Ri.y(r=>{const l=K1(n)?n:+n-e.now();return e.schedule(ar,l,{index:0,period:t,subscriber:r})})}function ar(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function Vd(n,a=Mh.P){return function iy(n){return function(e){return e.lift(new ny(n))}}(()=>Pc(n,a))}function tt(n){return a=>a.lift(new eg(n))}class eg{constructor(a){this.notifier=a}call(a,e){const t=new Wn(a),r=(0,X1.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Wn extends Q1.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Ml;try{Ml="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Ml=!1}let Oc,xi=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!Ml)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Rc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Uf=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function tg(){if(Oc)return Oc;if("object"!=typeof document||!document)return Oc=new Set(Uf),Oc;let n=document.createElement("input");return Oc=new Set(Uf.filter(a=>(n.setAttribute("type",a),n.type===a))),Oc}let Ic,wh,wl,Gf;function $a(n){return function ry(){if(null==Ic&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ic=!0}))}finally{Ic=Ic||!1}return Ic}()?n:!!n.capture}function Ch(){if(null==wl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return wl=!1,wl;if("scrollBehavior"in document.documentElement.style)wl=!0;else{const n=Element.prototype.scrollTo;wl=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return wl}function zd(){if("object"!=typeof document||!document)return 0;if(null==wh){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),wh=0,0===n.scrollLeft&&(n.scrollLeft=1,wh=0===n.scrollLeft?1:2),n.remove()}return wh}function vh(n){if(function Zf(){if(null==Gf){const n="undefined"!=typeof document?document.head:null;Gf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Gf}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function $f(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function Un(n){return n.composedPath?n.composedPath()[0]:n.target}function Jf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const ay=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function sy(){return(0,i.f3M)(w.K0)}}),oy=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Cn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function ly(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?oy.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ay,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Cl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sr=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ri.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Vd(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,jt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=zi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ta(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Th=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new He.xQ,this._elementScrolled=new Ri.y(d=>this.ngZone.runOutsideAngular(()=>Ta(this.elementRef.nativeElement,"scroll").pipe(tt(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=zd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==zd()?e.left=e.right:1==zd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;Ch()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==zd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==zd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Ja=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new He.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Vd(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Qa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl,Rc,xa],Cl,xa]}),n})();class Do{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Nc extends Do{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class vl extends Do{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class fy extends Do{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class Fd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Nc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof vl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof fy?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class my extends Fd{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context);return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let Qf=(()=>{class n extends Fd{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(s,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(d,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Si=x(6787);class Ay{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new sg(a,this.predicate,this.inclusive))}}class sg extends Sr.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function vn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const c0=Ch();class $y{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=en(-this._previousScrollPosition.left),a.style.top=en(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),c0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),c0&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Qy{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Cg{enable(){}disable(){}attach(){}}function or(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function vg(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class Xy{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();or(e,[{width:t,height:r,bottom:r,right:t,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 DT=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new Cg,this.close=d=>new Qy(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new $y(this._viewportRuler,this._document),this.reposition=d=>new Xy(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sr),i.LFG(Ja),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Hh{constructor(a){if(this.scrollStrategy=new Cg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class eM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class iM{constructor(a,e,t,r,l,d,s,o,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=s,this._location=o,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=re.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Zt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=en(this._config.width),a.height=en(this._config.height),a.minWidth=en(this._config.minWidth),a.minHeight=en(this._config.minHeight),a.maxWidth=en(this._config.maxWidth),a.maxHeight=en(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=Lc(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(tt((0,Si.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let d0=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Jf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),c=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!d||d.overlayFit.visibleAreao&&(o=u,s=c)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ko(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(xg),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=Dg(e);let{x:d,y:s}=a,o=this._getOffset(r,"x"),c=this._getOffset(r,"y");o&&(d+=o),c&&(s+=c);let f=0-s,b=s+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=V*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Eg(this._overlayRef.getConfig().minHeight),s=Eg(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=Dg(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),V=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=en(t.height),r.top=en(t.top),r.bottom=en(t.bottom),r.width=en(t.width),r.left=en(t.left),r.right=en(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=en(l)),d&&(r.maxWidth=en(d))}this._lastBoundingBoxSize=t,ko(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ko(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ko(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();ko(t,this._getExactOverlayY(e,a,u)),ko(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=en(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=en(d.maxWidth):l&&(t.maxWidth="")),ko(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=en(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=en(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vg(a,t),isOriginOutsideView:or(a,t),isOverlayClipped:vg(e,t),isOverlayOutsideView:or(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&Lc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function ko(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Eg(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Sg);return e&&"px"!==e?null:parseFloat(a)}return n||null}function Dg(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const u0="cdk-global-overlay-wrapper";class Hg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(u0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s);a.position=this._cssPosition,a.marginLeft=o?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,o?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(u0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let rM=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Hg}flexibleConnectedTo(e){return new nM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Ja),i.LFG(w.K0),i.LFG(xi),i.LFG(d0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sa=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),h0=(()=>{class n extends Sa{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),aM=(()=>{class n extends Sa{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Un(r)},this._clickListener=r=>{const l=Un(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const s=this._attachedOverlays.slice();for(let o=s.length-1;o>-1;o--){const c=s[o];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=0,Zr=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=o,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Hh(e);return d.direction=d.direction||this._directionality.value,new iM(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+sM++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new my(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(DT),i.LFG(d0),i.LFG(i._Vd),i.LFG(rM),i.LFG(h0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(Cn),i.LFG(w.Ye),i.LFG(aM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Lg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],kg=new i.OlP("cdk-connected-overlay-scroll-strategy");let Pg=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Rg=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.w.EMPTY,this._attachSubscription=re.w.EMPTY,this._detachSubscription=re.w.EMPTY,this._positionSubscription=re.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new vl(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Lg);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!vn(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Hh({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Pg?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function by(n,a=!1){return e=>e.lift(new Ay(n,a))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(kg),i.Y36(Cn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const oM={provide:kg,deps:[Zr],useFactory:function p0(n){return()=>n.scrollStrategies.reposition()}};let zc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Zr,oM],imports:[[Cl,Tl,Qa],Qa]}),n})();var kh=x(13);function Ph(n){return a=>a.lift(new m0(n))}class m0{constructor(a){this.total=a}call(a,e){return e.subscribe(new Og(a,this.total))}}class Og extends Sr.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function Rh(n,a){return e=>e.lift(new lM(n,a))}class lM{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new g0(a,this.compare,this.keySelector))}}class g0 extends Sr.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let cM=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=zi(e);return new Ri.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=oi(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,kh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dM),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),Wd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[cM]}),n})();function $r(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Ng="cdk-describedby-message",Ih="cdk-describedby-host";let uM=0,Bh=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+uM++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Nh(t,r);"string"!=typeof t?(Vh(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=Nh(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const s=this._messageRegistry.get(d);s&&0===s.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Ih}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Ng));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function Ig(n,a,e){const t=$r(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Ih,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function Bg(n,a,e){const r=$r(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Ih)}_isElementDescribedByMessage(e,t){const r=$r(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Nh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function Vh(n){n.id||(n.id=`${Ng}-${uM++}`)}class Fc{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=re.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(e=>this._pressedLetters.push(e)),(0,kh.b)(a),(0,jt.h)(()=>this._pressedLetters.length>0),(0,ut.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||vn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a),r=e[t];this._activeItem=null==r?null:r,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Vg extends Fc{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class jc extends Fc{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let zh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function pM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function zg(n){try{return n.frameElement}catch(a){return null}}(function _M(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===jg(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=jg(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function gM(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Yc(n){return!function fM(n){return function Fg(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function A0(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function mM(n){return function qc(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||y0(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function y0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function jg(n){if(!y0(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class bM{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(a)}}let qg=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new bM(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zh),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ud(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Fh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const wM=new i.OlP("cdk-input-modality-detector-options"),CM={ignoreKeys:[18,17,224,91,16]},Dl=$a({passive:!0,capture:!0});let LT=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=d=>{var s,o;(null===(o=null===(s=this._options)||void 0===s?void 0:s.ignoreKeys)||void 0===o?void 0:o.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ud(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{Fh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options=Object.assign(Object.assign({},CM),l),this.modalityDetected=this._modality.pipe(Ph(1)),this.modalityChanged=this.modalityDetected.pipe(Rh()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Dl),r.addEventListener("mousedown",this._onMousedown,Dl),r.addEventListener("touchstart",this._onTouchstart,Dl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Dl),document.removeEventListener("mousedown",this._onMousedown,Dl),document.removeEventListener("touchstart",this._onTouchstart,Dl))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(wM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ug=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function vM(){return null}}),TM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let kT=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(s=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,s(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 He.xQ,this._rootNodeFocusAndBlurListener=s=>{const o=Un(s),c="focus"===s.type?this._onFocus:this._onBlur;for(let u=o;u;u=u.parentElement)c.call(this,s,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=zi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=vh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new He.xQ,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=zi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=zi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=Un(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,jh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,jh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(tt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(xi),i.LFG(LT),i.LFG(w.K0,8),i.LFG(M0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const SM="cdk-high-contrast-black-on-white",Jr="cdk-high-contrast-white-on-black",Gg="cdk-high-contrast-active";let EM=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Gg),e.remove(SM),e.remove(Jr),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Gg),e.add(SM)):2===t&&(e.add(Gg),e.add(Jr))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w0=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(EM))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc,Wd]]}),n})();class C0{}const Fs="*";function wi(n,a){return{type:7,name:n,definitions:a,options:{}}}function Ct(n,a=null){return{type:4,styles:a,timings:n}}function qh(n,a=null){return{type:3,steps:n,options:a}}function $g(n,a=null){return{type:2,steps:n,options:a}}function Re(n){return{type:6,styles:n,offset:null}}function Nt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Hl(n){return{type:5,steps:n}}function Ht(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function Jg(n=null){return{type:9,options:n}}function yr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function Qg(n){Promise.resolve(null).then(n)}class js{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Qg(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Xg{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?Qg(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,s)=>Math.max(d,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function T0(){return"undefined"!=typeof window&&void 0!==window.document}function Qr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xr(n){switch(n.length){case 0:return new js;case 1:return n[0];default:return new Xg(n)}}function In(n,a,e,t,r={},l={}){const d=[],s=[];let o=-1,c=null;if(t.forEach(u=>{const h=u.offset,f=h==o,b=f&&c||{};Object.keys(u).forEach(V=>{let ee=V,he=u[V];if("offset"!==V)switch(ee=a.normalizePropertyName(ee,d),he){case"!":he=r[V];break;case Fs:he=l[V];break;default:he=a.normalizeStyleValue(V,ee,he,d)}b[ee]=he}),f||s.push(b),c=b,o=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return s}function qs(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&Wc(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Wc(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&Wc(e,"destroy",n)))}}function Wc(n,a,e){const t=e.totalTime,l=Mr(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function Mr(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function lr(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function Ll(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let Po=(n,a)=>!1,kl=(n,a,e)=>[];(Qr()||"undefined"!=typeof Element)&&(Po=T0()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),kl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Kr=null,Pl=!1;function Rl(n){Kr||(Kr=function Gc(){return"undefined"!=typeof document?document.body:null}()||{},Pl=!!Kr.style&&"WebkitAppearance"in Kr.style);let a=!0;return Kr.style&&!function Uc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Kr.style,!a&&Pl&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Kr.style)),a}const Yh=Po,x0=kl;let S0=(()=>{class n{validateStyleProperty(e){return Rl(e)}matchesElement(e,t){return!1}containsElement(e,t){return Yh(e,t)}query(e,t,r){return x0(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],o){return new js(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Wh=(()=>{class n{}return n.NOOP=new S0,n})();const Uh="ng-enter",Gh="ng-leave",$d="ng-trigger",Zh=".ng-trigger",D0="ng-animating",$h=".ng-animating";function Ol(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:H0(parseFloat(a[1]),a[2])}function H0(n,a){return"s"===a?1e3*n:n}function Jd(n,a,e){return n.hasOwnProperty("duration")?n:function HM(n,a,e){let r,l=0,d="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=H0(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=H0(parseFloat(o),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),s=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&a.splice(o,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Il(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function Ro(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Il(n,e);return e}function LM(n,a,e){return e?a+":"+e+";":""}function i_(n){let a="";for(let e=0;e{const r=L0(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),Qr()&&i_(n))}function Ys(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=L0(e);n.style[t]=""}),Qr()&&i_(n))}function Qd(n){return Array.isArray(n)?1==n.length?n[0]:$g(n):n}const n_=new RegExp("{{\\s*(.+?)\\s*}}","g");function kM(n){let a=[];if("string"==typeof n){let e;for(;e=n_.exec(n);)a.push(e[1]);n_.lastIndex=0}return a}function Jh(n,a,e){const t=n.toString(),r=t.replace(n_,(l,d)=>{let s=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),s=""),s.toString()});return r==t?n:r}function Xd(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const IT=/-+([a-z0-9])/g;function L0(n){return n.replace(IT,(...a)=>a[1].toUpperCase())}function Zc(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Or(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function k0(n,a){return window.getComputedStyle(n)[a]}function RM(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function a_(n,a,e){if(":"==n[0]){const o=function OM(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(s_(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(s_(d,r))}(t,e,a)):e.push(n),e}const Qh=new Set(["true","1"]),Xh=new Set(["false","0"]);function s_(n,a){const e=Qh.has(n)||Xh.has(n),t=Qh.has(a)||Xh.has(a);return(r,l)=>{let d="*"==n||n==r,s="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?Qh.has(n):Xh.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?Qh.has(a):Xh.has(a)),d&&s}}const l_=new RegExp("s*:selfs*,?","g");function P0(n,a,e){return new c_(n).build(a,e)}class c_{constructor(a){this._driver=a}build(a,e){const t=new I0(e);return this._resetContextStyleTimingState(t),Or(this,Qd(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,c=o.name;c.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=c}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,d.push(o)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};if(t.styles.forEach(s=>{if(B0(s)){const o=s;Object.keys(o).forEach(c=>{kM(o[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const s=Xd(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${s.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Or(this,Qd(a.animation),e);return{type:1,matchers:RM(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Oo(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Or(this,t,e)),options:Oo(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const s=Or(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Oo(a.options)}}visitAnimate(a,e){const t=function Kd(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return eu(Jd(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=eu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||Jd(t,a),eu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Re({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Re(c)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(d,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==Fs?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(B0(d)){const s=d,o=s.easing;if(o&&(l=o,delete s.easing),!r)for(let c in s)if(s[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(s=>{if(!this._driver.validateStyleProperty(s))return void e.errors.push(`The provided animation property "${s}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],c=o[s];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${s}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(o[s]={startTime:l,endTime:r}),e.options&&function OT(n,a,e){const t=a.params||{},r=kM(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[s],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let s=!1,o=!1,c=0;const u=a.steps.map(Oe=>{const gt=this._makeStyleAst(Oe,e);let dt=null!=gt.offset?gt.offset:function IM(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(B0(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(B0(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(gt.styles),Kt=0;return null!=dt&&(l++,Kt=gt.offset=dt),o=o||Kt<0||Kt>1,s=s||Kt0&&l{const dt=f>0?gt==b?1:f*gt:d[gt],Kt=dt*he;e.currentTime=V+ee.delay+Kt,ee.duration=Kt,this._validateStyleAst(Oe,e),Oe.offset=dt,t.styles.push(Oe)}),t}visitReference(a,e){return{type:8,animation:Or(this,Qd(a.animation),e),options:Oo(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Oo(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Oo(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function O0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(l_,"")),n=n.replace(/@\*/g,Zh).replace(/@\w+/g,e=>Zh+"-"+e.substr(1)).replace(/:animating/g,$h),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,lr(e.collectedStyles,e.currentQuerySelector,{});const s=Or(this,Qd(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:s,originalSelector:a.selector,options:Oo(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Jd(a.timings,e.errors,!0);return{type:12,animation:Or(this,Qd(a.animation),e),timings:t,options:null}}}class I0{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function B0(n){return!Array.isArray(n)&&"object"==typeof n}function Oo(n){return n?(n=Il(n)).params&&(n.params=function BT(n){return n?Il(n):null}(n.params)):n={},n}function eu(n,a,e){return{duration:n,delay:a,easing:e}}function tu(n,a,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class Kh{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const d_=new RegExp(":enter","g"),BM=new RegExp(":leave","g");function iu(n,a,e,t,r,l={},d={},s,o,c=[]){return(new z0).buildKeyframes(n,a,e,t,r,l,d,s,o,c)}class z0{buildKeyframes(a,e,t,r,l,d,s,o,c,u=[]){c=c||new Kh;const h=new ep(a,e,c,r,l,u,[]);h.options=o,h.currentTimeline.setStyles([d],null,h.errors,o),Or(this,t,h);const f=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(s).length){let b;for(let V=f.length-1;V>=0;V--){const ee=f[V];if(ee.element===e){b=ee;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([s],null,h.errors,o)}return f.length?f.map(b=>b.buildKeyframes()):[tu(e,[],[],[],0,0,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?Ol(t.duration):null,s=null!=t.delay?Ol(t.delay):null;return 0!==d&&a.forEach(o=>{const c=e.appendInstructionToTimeline(o,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Or(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nu);const d=Ol(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Or(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Ol(a.options.delay):0;a.steps.forEach(d=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Or(this,d,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Jd(e.params?Jh(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?Ol(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=nu);let d=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(o=h.currentTimeline),Or(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let o=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Or(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const nu={};class ep{constructor(a,e,t,r,l,d,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new $c(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=Ol(t.duration)),null!=t.delay&&(r.delay=Ol(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!d.hasOwnProperty(s))&&(d[s]=Jh(l[s],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new ep(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=nu,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new u_(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(d_,"."+this._enterClassName)).replace(BM,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!l&&0==s.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class $c{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new $c(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Fs,this._currentKeyframe[e]=Fs}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function j0(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=Fs})):Ro(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(s=>{const o=Jh(d[s],l,t);this._pendingStyles[s]=o,this._localTimelineStyles.hasOwnProperty(s)||(this._backFill[s]=this._globalTimelineStyles.hasOwnProperty(s)?this._globalTimelineStyles[s]:Fs),this._updateStyle(s,o)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[a]=e,this._updateStyle(a,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const c=Ro(s,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==Fs&&e.add(u)}),t||(c.offset=o/this.duration),r.push(c)});const l=a.size?Xd(a.values()):[],d=e.size?Xd(e.values()):[];if(t){const s=r[0],o=Il(s);s.offset=0,o.offset=1,r=[s,o]}return tu(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class u_ extends $c{constructor(a,e,t,r,l,d,s=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,o=Ro(a[0],!1);o.offset=0,l.push(o);const c=Ro(a[0],!1);c.offset=F0(s),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let f=Ro(a[h],!1);f.offset=F0((e+f.offset*t)/d),l.push(f)}t=d,e=0,r="",a=l}return tu(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function F0(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class q0{}class p_ extends q0{normalizePropertyName(a,e){return L0(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(Y0[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const Y0=(()=>function f_(n){const a={};return n.forEach(e=>a[e]=!0),a}("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".split(",")))();function m_(n,a,e,t,r,l,d,s,o,c,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:o,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const tp={};class W0{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function U0(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,s,o,c,u){const h=[],f=this.ast.options&&this.ast.options.params||tp,V=this.buildStyles(t,s&&s.params||tp,h),ee=o&&o.params||tp,he=this.buildStyles(r,ee,h),Oe=new Set,gt=new Map,dt=new Map,Kt="void"===r,Pa={params:Object.assign(Object.assign({},f),ee)},fs=u?[]:iu(a,e,this.ast.animation,l,d,V,he,Pa,c,h);let Vr=0;if(fs.forEach(rc=>{Vr=Math.max(rc.duration+rc.delay,Vr)}),h.length)return m_(e,this._triggerName,t,r,Kt,V,he,[],[],gt,dt,Vr,h);fs.forEach(rc=>{const ac=rc.element,mD=lr(gt,ac,{});rc.preStyleProps.forEach(zu=>mD[zu]=!0);const k1=lr(dt,ac,{});rc.postStyleProps.forEach(zu=>k1[zu]=!0),ac!==e&&Oe.add(ac)});const nc=Xd(Oe.values());return m_(e,this._triggerName,t,r,Kt,V,he,fs,nc,gt,dt,Vr)}}class ip{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Il(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(s=>{let o=d[s];o.length>1&&(o=Jh(o,r,e));const c=this.normalizer.normalizePropertyName(s,e);o=this.normalizer.normalizeStyleValue(s,c,o,e),t[c]=o})}}),t}}class g_{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new ip(r.style,r.options&&r.options.params||{},t)}),Z0(this.states,"true","1"),Z0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new W0(a,r,this.states))}),this.fallbackTransition=function __(n,a,e){return new W0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Z0(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const b_=new Kh;class A_{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=P0(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=In(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const s=new Map;if(l?(d=iu(this._driver,e,l,Uh,Gh,{},{},t,b_,r),d.forEach(u=>{const h=lr(s,u.element,{});u.postStyleProps.forEach(f=>h[f]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);s.forEach((u,h)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(h,f,Fs)})});const c=Xr(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=Mr(e,"","","");return qs(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const $0="ng-animate-queued",M_="ng-animate-disabled",FM=[],pn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},C_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ta="__ng_removed";class J0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function qM(n){return null!=n?n:null}(t?a.value:a),t){const l=Il(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Jc="void",Q0=new J0(Jc);class v_{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,wr(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function YM(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=lr(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const s=lr(this._engine.statesByElement,a,{});return s.hasOwnProperty(e)||(wr(a,$d),wr(a,$d+"-"+e),s[e]=Q0),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(d);o>=0&&l.splice(o,1),this._triggers[e]||delete s[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new Io(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(wr(a,$d),wr(a,$d+"-"+e),this._engine.statesByElement.set(a,s={}));let o=s[e];const c=new J0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&c.absorbOptions(o.options),s[e]=c,o||(o=Q0),c.value!==Jc&&o.value===c.value){if(!function Ha(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ys(a,he),ea(a,Oe)})}return}const f=lr(this._engine.playersByElement,a,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(o.value,c.value,a,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:c,player:d,isFallbackTransition:V}),V||(wr(a,$0),d.onStart(()=>{cr(a,$0)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(a);if(he){let Oe=he.indexOf(d);Oe>=0&&he.splice(Oe,1)}}),this.players.push(d),f.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[a]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,Zh,!0);t.forEach(r=>{if(r[ta])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const s=[];if(Object.keys(l).forEach(o=>{if(d.set(o,l[o].value),this._triggers[o]){const c=this.trigger(a,o,Jc,r);c&&s.push(c)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Xr(s).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const o=this._triggers[d].fallbackTransition,c=t[d]||Q0,u=new J0(Jc),h=new Io(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:o,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[ta];(!l||l===pn)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){wr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(s=>{if(s.name==t.triggerName){const o=Mr(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,qs(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class T_{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new v_(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),wr(a,M_)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),cr(a,M_))}removeNode(a,e,t,r){if(ru(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[ta]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return ru(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Zh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,$h,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[ta];if(t&&t.setForRemoval){if(a[ta]=pn,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(M_))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xr(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new Kh,r=[],l=new Map,d=[],s=new Map,o=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(at=>{u.add(at);const _t=this.driver.query(at,".ng-animate-queued",!0);for(let wt=0;wt<_t.length;wt++)u.add(_t[wt])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),b=np(f,this.collectedEnterElements),V=new Map;let ee=0;b.forEach((at,_t)=>{const wt=Uh+ee++;V.set(_t,wt),at.forEach(ci=>wr(ci,wt))});const he=[],Oe=new Set,gt=new Set;for(let at=0;atOe.add(ci)):gt.add(_t))}const dt=new Map,Kt=np(f,Array.from(Oe));Kt.forEach((at,_t)=>{const wt=Gh+ee++;dt.set(_t,wt),at.forEach(ci=>wr(ci,wt))}),a.push(()=>{b.forEach((at,_t)=>{const wt=V.get(_t);at.forEach(ci=>cr(ci,wt))}),Kt.forEach((at,_t)=>{const wt=dt.get(_t);at.forEach(ci=>cr(ci,wt))}),he.forEach(at=>{this.processLeaveNode(at)})});const Pa=[],fs=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(wt=>{const ci=wt.player,Qn=wt.element;if(Pa.push(ci),this.collectedEnterElements.length){const zr=Qn[ta];if(zr&&zr.setForMove){if(zr.previousTriggersValues&&zr.previousTriggersValues.has(wt.triggerName)){const Fu=zr.previousTriggersValues.get(wt.triggerName),bd=this.statesByElement.get(wt.element);bd&&bd[wt.triggerName]&&(bd[wt.triggerName].value=Fu)}return void ci.destroy()}}const Uo=!h||!this.driver.containsElement(h,Qn),Ra=dt.get(Qn),_d=V.get(Qn),an=this._buildInstruction(wt,t,_d,Ra,Uo);if(an.errors&&an.errors.length)return void fs.push(an);if(Uo)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);if(wt.isFallbackTransition)return ci.onStart(()=>Ys(Qn,an.fromStyles)),ci.onDestroy(()=>ea(Qn,an.toStyles)),void r.push(ci);const bD=[];an.timelines.forEach(zr=>{zr.stretchStartingKeyframe=!0,this.disabledNodes.has(zr.element)||bD.push(zr)}),an.timelines=bD,t.append(Qn,an.timelines),d.push({instruction:an,player:ci,element:Qn}),an.queriedElements.forEach(zr=>lr(s,zr,[]).push(ci)),an.preStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);if(bd.length){let ju=o.get(Fu);ju||o.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))}}),an.postStyleProps.forEach((zr,Fu)=>{const bd=Object.keys(zr);let ju=c.get(Fu);ju||c.set(Fu,ju=new Set),bd.forEach(Iv=>ju.add(Iv))})});if(fs.length){const at=[];fs.forEach(_t=>{at.push(`@${_t.triggerName} has failed due to:\n`),_t.errors.forEach(wt=>at.push(`- ${wt}\n`))}),Pa.forEach(_t=>_t.destroy()),this.reportError(at)}const Vr=new Map,nc=new Map;d.forEach(at=>{const _t=at.element;t.has(_t)&&(nc.set(_t,_t),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Vr))}),r.forEach(at=>{const _t=at.element;this._getPreviousPlayers(_t,!1,at.namespaceId,at.triggerName,null).forEach(ci=>{lr(Vr,_t,[]).push(ci),ci.destroy()})});const rc=he.filter(at=>ia(at,o,c)),ac=new Map;WM(ac,this.driver,gt,c,Fs).forEach(at=>{ia(at,o,c)&&rc.push(at)});const k1=new Map;b.forEach((at,_t)=>{WM(k1,this.driver,new Set(at),o,"!")}),rc.forEach(at=>{const _t=ac.get(at),wt=k1.get(at);ac.set(at,Object.assign(Object.assign({},_t),wt))});const zu=[],gD=[],_D={};d.forEach(at=>{const{element:_t,player:wt,instruction:ci}=at;if(t.has(_t)){if(u.has(_t))return wt.onDestroy(()=>ea(_t,ci.toStyles)),wt.disabled=!0,wt.overrideTotalTime(ci.totalTime),void r.push(wt);let Qn=_D;if(nc.size>1){let Ra=_t;const _d=[];for(;Ra=Ra.parentNode;){const an=nc.get(Ra);if(an){Qn=an;break}_d.push(Ra)}_d.forEach(an=>nc.set(an,Qn))}const Uo=this._buildAnimation(wt.namespaceId,ci,Vr,l,k1,ac);if(wt.setRealPlayer(Uo),Qn===_D)zu.push(wt);else{const Ra=this.playersByElement.get(Qn);Ra&&Ra.length&&(wt.parentPlayer=Xr(Ra)),r.push(wt)}}else Ys(_t,ci.fromStyles),wt.onDestroy(()=>ea(_t,ci.toStyles)),gD.push(wt),u.has(_t)&&r.push(wt)}),gD.forEach(at=>{const _t=l.get(at.element);if(_t&&_t.length){const wt=Xr(_t);at.setRealPlayer(wt)}}),r.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Uo.destroyed);Qn.length?UM(this,_t,Qn):this.processLeaveNode(_t)}return he.length=0,zu.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const _t=this.players.indexOf(at);this.players.splice(_t,1)}),at.play()}),zu}elementContainsData(a,e){let t=!1;const r=e[ta];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(d=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==Jc;s.forEach(c=>{c.queued||!o&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const c=o.element,u=c!==l,h=lr(t,c,[]);this._getPreviousPlayers(c,u,d,s,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}Ys(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const s=e.triggerName,o=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ta];if(he&&he.removedBeforeQueried)return new js(V.duration,V.delay);const Oe=ee!==o,gt=function x_(n){const a=[];return Da(n,a),a}((t.get(ee)||FM).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===ee),dt=l.get(ee),Kt=d.get(ee),Pa=In(0,this._normalizer,0,V.keyframes,dt,Kt),fs=this._buildPlayer(V,Pa,gt);if(V.subTimeline&&r&&h.add(ee),Oe){const Vr=new Io(a,s,ee);Vr.setRealPlayer(fs),c.push(Vr)}return fs});c.forEach(V=>{lr(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function jM(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>wr(V,D0));const b=Xr(f);return b.onDestroy(()=>{u.forEach(V=>cr(V,D0)),ea(o,e.toStyles)}),h.forEach(V=>{lr(r,V,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new js(a.duration,a.delay)}}class Io{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new js,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>qs(a,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){lr(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function ru(n){return n&&1===n.nodeType}function X0(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function WM(n,a,e,t,r){const l=[];e.forEach(o=>l.push(X0(o)));const d=[];t.forEach((o,c)=>{const u={};o.forEach(h=>{const f=u[h]=a.computeStyle(c,h,r);(!f||0==f.length)&&(c[ta]=C_,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(o=>X0(o,l[s++])),d}function np(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(s){if(!s)return 1;let o=l.get(s);if(o)return o;const c=s.parentNode;return o=e.has(c)?c:r.has(c)?1:d(c),l.set(s,o),o}return a.forEach(s=>{const o=d(s);1!==o&&e.get(o).push(s)}),e}function wr(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function cr(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function UM(n,a,e){Xr(e).onDone(()=>n.processLeaveNode(a))}function Da(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class au{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new T_(a,e,t),this._timelineEngine=new A_(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let s=this._triggerCache[d];if(!s){const o=[],c=P0(this._driver,l,o);if(o.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${o.join("\n - ")}`);s=function G0(n,a,e){return new g_(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,d]=Ll(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=Ll(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let GM=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ea(this._element,this._initialStyles),this._endStyles&&(ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ys(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ys(this._element,this._endStyles),this._endStyles=null),ea(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function K0(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:k0(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class em{validateStyleProperty(a){return Rl(a)}matchesElement(a,e){return!1}containsElement(a,e){return Yh(a,e)}query(a,e,t){return x0(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const c={},u=d.filter(f=>f instanceof E_);(function PM(n,a){return 0===n||0===a})(t,r)&&u.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(V=>c[V]=b[V])}),e=function r_(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(s=>{l.hasOwnProperty(s)||d.push(s),l[s]=e[s]}),d.length)for(var r=1;rRo(f,!1)),c);const h=function S_(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=K0(a[0]),a.length>1&&(t=K0(a[a.length-1]))):a&&(e=K0(a)),e||t?new GM(n,e,t):null}(a,e);return new E_(a,e,o,h)}}let su=(()=>{class n extends C0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$g(e):e;return H_(this._renderer,null,t,"register",[r]),new $M(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class $M extends class Zg{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new D_(this._id,a,e||{},this._renderer)}}class D_{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return H_(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function H_(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const tm="@.disabled";let rp=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const s=null==d?void 0:d.parentNode(l);s&&d.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new L_("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(o),new k_(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,s]=l;d(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(au),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class L_{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==tm?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class k_ extends L_{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==tm?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function P_(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function im(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}let ap=(()=>{class n extends au{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Wh),i.LFG(q0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Bn=new i.OlP("AnimationModuleType"),sp=[{provide:C0,useClass:su},{provide:q0,useFactory:function nm(){return new p_}},{provide:au,useClass:ap},{provide:i.FYo,useFactory:function R_(n,a,e){return new rp(n,a,e)},deps:[ke,au,i.R0b]}],rm=[{provide:Wh,useFactory:()=>new em},{provide:Bn,useValue:"BrowserAnimations"},...sp],O_=[{provide:Wh,useClass:S0},{provide:Bn,useValue:"NoopAnimations"},...sp];let I_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?O_:rm}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:rm,imports:[ue]}),n})();function XM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function KM(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const ew=["*"];let tw=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),iw=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const rw=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function nw(){return!0}});let ht=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Jf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(EM),i.LFG(rw,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl],Cl]}),n})();function ts(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function Bo(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function na(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Nl(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?oi(e):this.defaultTabIndex}}}function op(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function am(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ri.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const N_=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function V_(){return(0,i.f3M)(i.soG)}});class ra{constructor(){this._localeChanges=new He.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const lu=new i.OlP("mat-date-formats"),z_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lp(n,a){const e=Array(n);for(let t=0;t{class n extends ra{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return lp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lp(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return lp(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(z_.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(N_,8),i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const om={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let lm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:sm}],imports:[[Rc]]}),n})(),No=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:lu,useValue:om}],imports:[[lm]]}),n})(),Qc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Vl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function zl(n,a,e){n.nativeElement.classList.toggle(a,e)}let cm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();class F_{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const dm={enterDuration:225,exitDuration:150},pt=$a({passive:!0}),j_=["mousedown","touchstart"],q_=["mouseup","mouseleave","touchend","touchcancel"];class Y_{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=zi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},dm),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function sw(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),s=a-r.left,o=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-d+"px",u.style.top=o-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function cp(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new F_(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const f=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!f||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},dm),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=zi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(j_))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(q_),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Ud(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,pt)})})}_removeTriggerEvents(){this._triggerElement&&(j_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}),this._pointerUpEventsRegistered&&q_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}))}}const cu=new i.OlP("mat-ripple-global-options");let Gn=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new Y_(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(Bn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),ii=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,Rc],ht]}),n})(),ow=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),dp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht]]}),n})();const um=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),up=new i.OlP("MatOptgroup");let uw=0;class W_{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let hw=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+uw++,this.onSelectionChange=new i.vpe,this._stateChanges=new He.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=je(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!vn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new W_(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),La=(()=>{class n extends hw{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(um,8),i.Y36(up,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:ew,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,XM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,KM,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[ow,w.O5,Gn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function hm(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;de+t?Math.max(0,n-t+a):e}let du=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,w.ez,ht,dp]]}),n})();function hp(n,a){}class uu{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const G_={dialogContainer:wi("dialogContainer",[Nt("void, exit",Re({opacity:0,transform:"scale(0.7)"})),Nt("enter",Re({transform:"none"})),Ht("* => enter",Ct("150ms cubic-bezier(0, 0, 0.2, 1)",Re({transform:"none",opacity:1}))),Ht("* => void, * => exit",Ct("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Re({opacity:0})))])};let fw=(()=>{class n extends Fd{constructor(e,t,r,l,d,s,o,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=s,this._ngZone=o,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=$f(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=$f())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=$f();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(i.sBO),i.Y36(w.K0,8),i.Y36(uu),i.Y36(zh),i.Y36(i.R0b),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(Qf,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),hu=(()=>{class n extends fw{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,hp,0,0,"ng-template",0)},directives:[Qf],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[G_.dialogContainer]}}),n})(),pu=0;class Fi{constructor(a,e,t="mat-dialog-"+pu++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,jt.h)(r=>"opened"===r.state),(0,Zt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,jt.h)(r=>"closed"===r.state),(0,Zt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,jt.h)(r=>27===r.keyCode&&!this.disableClose&&!vn(r))).subscribe(r=>{r.preventDefault(),Z_(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Z_(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,jt.h)(e=>"closing"===e.state),(0,Zt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Z_(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const Sn=new i.OlP("MatDialogData"),$_=new i.OlP("mat-dialog-default-options"),pm=new i.OlP("mat-dialog-scroll-strategy"),J_={provide:pm,deps:[Zr],useFactory:function gw(n){return()=>n.scrollStrategies.block()}};let _w=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=o,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=ma(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_i(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function UT(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new uu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const s=l._animationStateChanged.subscribe(o=>{"opening"===o.state&&(this._dialogAnimatingOpen=!0),"opened"===o.state&&(this._dialogAnimatingOpen=!1,s.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new re.w),this._animationStateSubscriptions.add(s)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Hh({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:uu,useValue:t}]}),d=new Nc(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new vl(e,null,{$implicit:l.data,dialogRef:d}));else{const s=this._createInjector(l,d,t),o=t.attachComponentPortal(new Nc(e,l.viewContainerRef,s));d.componentInstance=o.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(Cn,null,i.XFs.Optional))&&d.push({provide:Cn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),Ji=(()=>{class n extends _w{constructor(e,t,r,l,d,s,o,c){super(e,t,l,s,o,d,Fi,hu,Sn,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zr),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG($_,8),i.LFG(pm),i.LFG(n,12),i.LFG(d0),i.LFG(Bn,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),GT=0,En=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+GT++}ngOnInit(){this._dialogRef||(this._dialogRef=function bw(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi,8),i.Y36(i.SBq),i.Y36(Ji))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),fn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),ji=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),pp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Ji,J_],imports:[[zc,Tl,ht],ht]}),n})();var fp=x(6114);let ka=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(rt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),r=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(r.prompt="consent"),sessionStorage.getItem("mfa_route")&&(r.acr_values="https://refeds.org/profile/mfa",r.prompt="login",r.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,customQueryParams:r}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>localStorage.setItem("refresh_token",this.oauthService.getRefreshToken())).then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,jt.h)(t=>"token_expires"===t.type)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const o=s.split("=");d[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")?(sessionStorage.setItem("refresh_token",localStorage.getItem("refresh_token")),this.oauthService.loadDiscoveryDocument().then(()=>this.refreshAndStoreToken()).then(()=>Promise.resolve()).catch(()=>Promise.resolve())):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(e=>(localStorage.setItem("refresh_token",e.refresh_token),!0),()=>!1)}verifyAuthentication(e,t){return this.tryRefreshToken().then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(zt),i.LFG(Ji),i.LFG(nr),i.LFG(fp.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function is(n){return!!n&&(n instanceof Ri.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var Aw=x(7830);function fm(...n){if(1===n.length){const a=n[0];if((0,Ff.k)(a))return mp(a,null);if((0,Aw.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return mp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return mp(n=1===n.length&&(0,Ff.k)(n[0])?n[0]:n,null).pipe((0,ut.U)(e=>a(...e)))}return mp(n,null)}function mp(n,a){return new Ri.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let s=0;s{c||(c=!0,d++),r[s]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,f)=>(u[h]=r[f],u),{}):r),e.complete())}}))}})}const Mw=new class Q_ extends qf.v{}(class yw extends jf.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var mm=x(9312);class mu extends Sr.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(mu.dispatch,this.delay,new Cw(a,this.destination)))}_next(a){this.scheduleMessage(mm.P.createNext(a))}_error(a){this.scheduleMessage(mm.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(mm.P.createComplete()),this.unsubscribe()}}class Cw{constructor(a,e){this.notification=a,this.destination=e}}var X_=x(5283);class vw extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new K_(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new Ad.N;if(this.isStopped||this.hasError?d=re.w.EMPTY:(this.observers.push(a),d=new X_.W(this,a)),r&&a.add(a=new mu(a,r)),e)for(let s=0;se&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class K_{constructor(a,e){this.time=a,this.value=e}}function eb(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function gm({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,s=!1,o=!1;return function(u){l++,(!r||s)&&(s=!1,r=new vw(n,a,t),d=u.subscribe({next(f){r.next(f)},error(f){s=!0,r.error(f)},complete(){o=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!o&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class gu{}let _m=(()=>{class n extends gu{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class gp{}let tb=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function _p(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!_p(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{_u(a[t])?t in n?e[t]=ib(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class bu{}let nb=(()=>{class n extends bu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Vo(e)||!Vo(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Vo(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class bp{}let rb=(()=>{class n extends bp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ab{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const bm=new i.OlP("USE_STORE"),Am=new i.OlP("USE_DEFAULT_LANG"),ym=new i.OlP("DEFAULT_LANGUAGE"),Mm=new i.OlP("USE_EXTEND");let li=(()=>{class n{constructor(e,t,r,l,d,s=!0,o=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=o,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(eb(1),(0,Zt.q)(1));return this.loadingTranslations=t.pipe((0,ut.U)(r=>this.compiler.compileTranslations(r,e)),eb(1),(0,Zt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?ib(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},s=!1;for(let o of t)d[o]=this.getParsedResult(e,o,r),is(d[o])&&(s=!0);return s?fm(t.map(c=>is(d[c])?d[c]:(0,$e.of)(d[c]))).pipe((0,ut.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,vs.b)(r=>is(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return is(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onTranslationChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');return Ms(ma(()=>this.get(e,t)),this.onLangChange.pipe((0,Ui.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return is(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Vo(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(is(r)){if(e instanceof Array){let l={};return e.forEach((d,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ab),i.LFG(gu),i.LFG(bp),i.LFG(bu),i.LFG(gp),i.LFG(Am),i.LFG(bm),i.LFG(Mm),i.LFG(ym))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);is(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(_p(e,this.lastKey)&&_p(t,this.lastParams))return this.value;let r;if(Vo(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ap=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},ab,{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:gu,useClass:_m},e.compiler||{provide:bp,useClass:rb},e.parser||{provide:bu,useClass:nb},e.missingTranslationHandler||{provide:gp,useClass:tb},{provide:bm,useValue:e.isolate},{provide:Am,useValue:e.useDefaultLang},{provide:Mm,useValue:e.extend},{provide:ym,useValue:e.defaultLanguage},li]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sb=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[fn],pipes:[lt],styles:[""]}),n})();const xw=["mat-button",""],Sw=["*"],Cm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],ob=Bo(ts(na(class{constructor(n){this._elementRef=n}})));let Pt=(()=>{class n extends ob{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Cm)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&i.Gf(Gn,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:xw,ngContentSelectors:Sw,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Gn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),ns=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();const vm=["connectionContainer"],Ew=["inputContainer"],lb=["label"];function Dw(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function cb(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Hw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function db(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function JT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function Lw(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,Hw,4,1,"ng-container",12),i.YNc(3,db,1,0,"ng-content",12),i.YNc(4,JT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function Au(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function kw(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function Xc(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function yu(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function Pw(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,yu,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const QT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ub=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Rw=0;const hb=new i.OlP("MatError");let Fl=(()=>{class n{constructor(e,t){this.id="mat-error-"+Rw++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:hb,useExisting:n}])]}),n})();const Ow={transitionMessages:wi("transitionMessages",[Nt("enter",Re({opacity:1,transform:"translateY(0%)"})),Ht("void => enter",[Re({opacity:0,transform:"translateY(-5px)"}),Ct("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Kc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),Mu=0;const fb=new i.OlP("MatHint");let mb=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+Mu++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:fb,useExisting:n}])]}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Iw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Bw=new i.OlP("MatPrefix"),yp=new i.OlP("MatSuffix");let gb=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:yp,useExisting:n}])]}),n})(),Nw=0;const ed=Bo(class{constructor(n){this._elementRef=n}},"primary"),bb=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),as=new i.OlP("MatFormField");let mn=(()=>{class n extends ed{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Nw++,this._labelId="mat-form-field-label-"+Nw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(_i(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Si.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_i(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_i(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ta(this._label.nativeElement,"transitionend").pipe((0,Zt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Wd],ht]}),n})();function xm(n){return n&&"function"==typeof n.connect}class jw{applyChanges(a,e,t,r,l){a.forEachOperation((d,s,o)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,o);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==o?(e.remove(s),u=3):(c=e.get(s),e.move(c,o),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class tn{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new He.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}}let Mp=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const td=new i.OlP("_ViewRepeater");let Ab=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),jl=(()=>{class n extends Ab{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Zn=new i.OlP("NgValueAccessor"),Ww={provide:Zn,useExisting:(0,i.Gpc)(()=>nn),multi:!0},wu=new i.OlP("CompositionEventMode");let nn=(()=>{class n extends Ab{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Uw(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(wu,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([Ww]),i.qOj]}),n})();function Us(n){return null==n||0===n.length}function Em(n){return null!=n&&"number"==typeof n.length}const gn=new i.OlP("NgValidators"),Gs=new i.OlP("NgAsyncValidators"),Mb=/^(?=.{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 Dn{static min(a){return function Dm(n){return a=>{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Lm(a)}static requiredTrue(a){return function wb(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function Cb(n){return Us(n.value)||Mb.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function id(n){return a=>Us(a.value)||!Em(a.value)?null:a.value.lengthEm(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function wp(n){if(!n)return Ir;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Us(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return vu(a)}static composeAsync(a){return Eb(a)}}function Lm(n){return Us(n.value)?{required:!0}:null}function Ir(n){return null}function Tb(n){return null!=n}function Cu(n){const a=(0,i.QGY)(n)?(0,dn.D)(n):n;return(0,i.CqO)(a),a}function nd(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function xb(n,a){return a.map(e=>e(n))}function Sb(n){return n.map(a=>function Gw(n){return!n.validate}(a)?a:e=>a.validate(e))}function vu(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return nd(xb(e,a))}}function rd(n){return null!=n?vu(Sb(n)):null}function Eb(n){if(!n)return null;const a=n.filter(Tb);return 0==a.length?null:function(e){return fm(xb(e,a).map(Cu)).pipe((0,ut.U)(nd))}}function km(n){return null!=n?Eb(Sb(n)):null}function Pm(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Rm(n){return n._rawValidators}function Cp(n){return n._rawAsyncValidators}function vp(n){return n?Array.isArray(n)?n:[n]:[]}function Tp(n,a){return Array.isArray(n)?n.includes(a):n===a}function Db(n,a){const e=vp(a);return vp(n).forEach(r=>{Tp(e,r)||e.push(r)}),e}function Zw(n,a){return vp(a).filter(e=>!Tp(n,e))}class xp{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(a){this._rawValidators=a||[],this._composedValidatorFn=rd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=km(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Br extends xp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $n extends xp{get formDirective(){return null}get path(){return null}}class Sp{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let _n=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Br,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Ep=(()=>{class n extends Sp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Hp(n,a){return[...a.path,n]}function Lp(n,a){Nm(n,a),a.valueAccessor.writeValue(n.value),function eC(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Pp(n,a)})}(n,a),function Rb(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function tC(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Pp(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function Bm(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function zo(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),xu(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function kp(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function Nm(n,a){const e=Rm(n);null!==a.validator?n.setValidators(Pm(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=Cp(n);null!==a.asyncValidator?n.setAsyncValidators(Pm(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();kp(a._rawValidators,r),kp(a._rawAsyncValidators,r)}function xu(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Rm(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=Cp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return kp(a._rawValidators,t),kp(a._rawAsyncValidators,t),e}function Pp(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Vm(n,a){Nm(n,a)}function Op(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function zm(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function sd(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===nn?e=l:function iC(n){return Object.getPrototypeOf(n.constructor)===jl}(l)?t=l:r=l}),r||t||e||null}function Ip(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const ql="VALID",Fm="INVALID",od="PENDING",Eu="DISABLED";function Bp(n){return(Vp(n)?n.validators:n)||null}function Bb(n){return Array.isArray(n)?rd(n):n||null}function Np(n,a){return(Vp(a)?a.asyncValidators:n)||null}function jm(n){return Array.isArray(n)?km(n):n||null}function Vp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const qm=n=>n instanceof Cr,Du=n=>n instanceof Fp,Nb=n=>n instanceof nC;function Ym(n){return qm(n)?n.value:n.getRawValue()}function Wm(n,a){const e=Du(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function Um(n,a){Du(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class zp{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=Bb(this._rawValidators),this._composedAsyncValidatorFn=jm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===ql}get invalid(){return this.status===Fm}get pending(){return this.status==od}get disabled(){return this.status===Eu}get enabled(){return this.status!==Eu}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=Bb(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=jm(a)}addValidators(a){this.setValidators(Db(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(Db(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators(Zw(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators(Zw(a,this._rawAsyncValidators))}hasValidator(a){return Tp(this._rawValidators,a)}hasAsyncValidator(a){return Tp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=od,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Eu,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=ql,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ql||this.status===od)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Eu:ql}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=od,this._hasOwnPendingAsyncValidator=!0;const e=Cu(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){return function Ib(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Du(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:Nb(t)&&t.at(r)||null}),t}(this,a,".")}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?Eu:this.errors?Fm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(od)?od:this._anyControlsHaveStatus(Fm)?Fm:ql}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){Vp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Cr extends zp{constructor(a=null,e,t){super(Bp(e),Np(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Vp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Ip(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Ip(this._onDisabledChange,a)}_forEachChild(a){}_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(a){this._isBoxedValue(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}}class Fp extends zp{constructor(a,e,t){super(Bp(e),Np(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){Um(this,a),Object.keys(a).forEach(t=>{Wm(this,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=Ym(e),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class nC extends zp{constructor(a,e,t){super(Bp(e),Np(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[a]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Um(this,a),a.forEach((t,r)=>{Wm(this,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>Ym(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}}const Vb={provide:$n,useExisting:(0,i.Gpc)(()=>ld)},jp=(()=>Promise.resolve(null))();let ld=(()=>{class n extends $n{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new Fp({},rd(e),km(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Lp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path),r=new Fp({});Vm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){jp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,zm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([Vb]),i.qOj]}),n})();const sx={provide:Br,useExisting:(0,i.Gpc)(()=>ur)},qp=(()=>Promise.resolve(null))();let ur=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new Cr,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Op(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Lp(this.control,this),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(e){qp.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=""===t||t&&"false"!==t;qp.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Hp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,9),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([sx]),i.qOj,i.TTD]}),n})(),Yp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const aC={provide:Zn,useExisting:(0,i.Gpc)(()=>Wp),multi:!0};let Wp=(()=>{class n extends jl{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([aC]),i.qOj]}),n})(),Zm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Up=new i.OlP("NgModelWithFormControlWarning"),ox={provide:Br,useExisting:(0,i.Gpc)(()=>ss)};let ss=(()=>{class n extends Br{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=sd(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&zo(t,this,!1),Lp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Op(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&zo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([ox]),i.qOj,i.TTD]}),n})();const lx={provide:$n,useExisting:(0,i.Gpc)(()=>Fo)};let Fo=(()=>{class n extends $n{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(xu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return Lp(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){zo(e.control||null,e,!1),Ip(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,zm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(zo(t||null,e),qm(r)&&(Lp(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Vm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Rp(n,a){return xu(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Nm(this.form,this),this._oldForm&&xu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([lx]),i.qOj,i.TTD]}),n})();const lC={provide:Br,useExisting:(0,i.Gpc)(()=>Jn)};let Jn=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=sd(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Op(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Hp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36($n,13),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Up,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([lC]),i.qOj,i.TTD]}),n})(),Yl=(()=>{class n{constructor(){this._validator=Ir}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Ir,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const fC={provide:gn,useExisting:(0,i.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class n extends Yl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function t1(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Lm}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([fC]),i.qOj]}),n})(),bC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Zm]]}),n})(),Jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),dd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Up,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[bC]}),n})(),Qb=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let s,l=null,d=null;return null!=t&&(function hx(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new Fp(r,{asyncValidators:d,updateOn:s,validators:l})}control(e,t,r){return new Cr(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new nC(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return qm(e)||Du(e)||Nb(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:dd}),n})();const AC=["trigger"],yC=["panel"];function fx(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function mx(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function gx(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function _x(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,mx,2,1,"span",10),i.YNc(2,gx,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function bx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const MC=[[["mat-select-trigger"]],"*"],Qp=["mat-select-trigger","*"],Xb={transformPanelWrap:wi("transformPanelWrap",[Ht("* => void",yr("@transformPanel",[Jg()],{optional:!0}))]),transformPanel:wi("transformPanel",[Nt("void",Re({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Nt("showing",Re({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Nt("showing-multiple",Re({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ht("void => *",Ct("120ms cubic-bezier(0, 0, 0.2, 1)")),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))])};let o1=0;const vC=new i.OlP("mat-select-scroll-strategy"),Mx=new i.OlP("MAT_SELECT_CONFIG"),wx={provide:vC,deps:[Zr],useFactory:function yx(n){return()=>n.scrollStrategies.reposition()}};class Kb{constructor(a,e){this.source=a,this.value=e}}const TC=na(Nl(ts(op(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),xC=new i.OlP("MatSelectTrigger");let SC=(()=>{class n extends TC{constructor(e,t,r,l,d,s,o,c,u,h,f,b,V,ee){var he,Oe,gt;super(d,l,o,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(dt,Kt)=>dt===Kt,this._uid="mat-select-"+o1++,this._triggerAriaLabelledBy=null,this._destroy=new He.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+o1++,this._panelDoneAnimatingStream=new He.xQ,this._overlayPanelClass=(null===(he=this._defaultOptions)||void 0===he?void 0:he.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(gt=null===(Oe=this._defaultOptions)||void 0===Oe?void 0:Oe.disableOptionCentering)&&void 0!==gt&>,this.ariaLabel="",this.optionSelectionChanges=ma(()=>{const dt=this.options;return dt?dt.changes.pipe(_i(dt),(0,Ui.w)(()=>(0,Si.T)(...dt.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,jt.h)(dt=>dt),(0,ut.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,jt.h)(dt=>!dt),(0,ut.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ee?void 0:ee.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=oi(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new tn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Rh(),tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(tt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(_i(null),tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!vn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||vn(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Zt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new Vg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(tt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Si.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(tt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Si.T)(...this.options.map(t=>t._stateChanges)).pipe(tt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ja),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Qc),i.Y36(i.SBq),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(as,8),i.Y36(Br,10),i.$8M("tabindex"),i.Y36(vC),i.Y36(kT),i.Y36(Mx,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(AC,5),i.Gf(yC,5),i.Gf(Rg,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),ku=(()=>{class n extends SC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=hm(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:U_((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new Kb(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const s=0-(e.left+d-(r?l:0)),o=e.right+d-t.width+(r?0:l);s>0?d+=s+8:o>0&&(d-=o+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=hm(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,d),this._offsetY=this._calculateOverlayOffsetY(s,o,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,xC,5),i.Suo(r,La,5),i.Suo(r,up,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:Kc,useExisting:n},{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:Qp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(MC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,fx,2,1,"span",3),i.YNc(5,_x,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,bx,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Pg,w.RF,w.n9,w.ED,Rg,w.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[Xb.transformPanelWrap,Xb.transformPanel]},changeDetection:0}),n})(),hd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[wx],imports:[[w.ez,zc,du,ht],xa,Ws,du,ht]}),n})();const eA=new Set;let pd,tA=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function Kp(n){if(!eA.has(n))try{pd||(pd=document.createElement("style"),pd.setAttribute("type","text/css"),document.head.appendChild(pd)),pd.sheet&&(pd.sheet.insertRule(`@media ${n} {body{ }}`,0),eA.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function vx(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let iA=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Pu(Lc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Pu(Lc(e)).map(d=>this._registerQuery(d).observable);let l=(0,io.aj)(r);return l=Ms(l.pipe((0,Zt.q)(1)),l.pipe(Ph(1),(0,kh.b)(0))),l.pipe((0,ut.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:o,query:c})=>{s.matches=s.matches||o,s.breakpoints[c]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Ri.y(d=>{const s=o=>this._zone.run(()=>d.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(_i(t),(0,ut.U)(({matches:d})=>({query:e,matches:d})),tt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(tA),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Pu(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const HC={tooltipState:wi("state",[Nt("initial, void, hidden",Re({opacity:0,transform:"scale(0)"})),Nt("visible",Re({transform:"scale(1)"})),Ht("* => visible",Ct("200ms cubic-bezier(0, 0, 0.2, 1)",Hl([Re({opacity:0,transform:"scale(0)",offset:0}),Re({opacity:.5,transform:"scale(0.99)",offset:.5}),Re({opacity:1,transform:"scale(1)",offset:1})]))),Ht("* => hidden",Ct("100ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:0})))])},kC="tooltip-panel",nA=$a({passive:!0}),rA=new i.OlP("mat-tooltip-scroll-strategy"),OC={provide:rA,deps:[Zr],useFactory:function RC(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},IC=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function BC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Sx=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=s,this._ariaDescriber=o,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.xQ,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=oi(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=oi(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,nA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Nc(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(tt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${kC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(tt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(tt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!vn(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1),tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${kC}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,nA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),vr=(()=>{class n extends Sx{constructor(e,t,r,l,d,s,o,c,u,h,f,b){super(e,t,r,l,d,s,o,c,u,h,f,b),this._tooltipComponent=Dx}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(xi),i.Y36(Bh),i.Y36(Rr),i.Y36(rA),i.Y36(Cn,8),i.Y36(IC,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Ex=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),Dx=(()=>{class n extends Ex{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(iA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[w.mk],pipes:[w.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[HC.tooltipState]},changeDetection:0}),n})(),Ru=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[OC],imports:[[w0,w.ez,zc,ht],ht,xa]}),n})();function NC(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function Hx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,NC,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function Lx(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function kx(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,Hx,3,6,"mat-form-field",14),i.YNc(4,Lx,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Px(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function p(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let m=(()=>{class n{constructor(){this.changes=new He.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _={provide:m,deps:[[new i.FiY,new i.tp0,m]],useFactory:function g(n){return n||new m}},D=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),k=ts(am(class{}));let P=(()=>{class n extends k{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(oi(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=oi(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(oi(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>oi(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),F=(()=>{class n extends P{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(m),i.Y36(i.sBO),i.Y36(D,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,kx,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,Px,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,p,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[mn,ku,La,Pt,w.O5,w.sg,vr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),W=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_],imports:[[w.ez,ns,hd,Ru,ht]]}),n})();var te=x(943);const se=["mat-menu-item",""];function pe(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const ve=["*"];function Ve(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ye={transformMenu:wi("transformMenu",[Nt("void",Re({opacity:0,transform:"scale(0.8)"})),Ht("void => enter",Ct("120ms cubic-bezier(0, 0, 0.2, 1)",Re({opacity:1,transform:"scale(1)"}))),Ht("* => void",Ct("100ms 25ms linear",Re({opacity:0})))]),fadeInItems:wi("fadeInItems",[Nt("showing",Re({opacity:1})),Ht("void => *",[Re({opacity:0}),Ct("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},ct=new i.OlP("MatMenuContent"),Ou=new i.OlP("MAT_MENU_PANEL"),c1=na(ts(class{}));let Gl=(()=>{class n extends c1{constructor(e,t,r,l,d){var s;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==l?void 0:l.addItem)||void 0===s||s.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=re.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+u1++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new jc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,Ui.w)(t=>(0,Si.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:vn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(_i(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ct,5),i.Suo(r,Gl,5),i.Suo(r,Gl,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Rx=(()=>{class n extends Zl{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(ef))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Ou,useExisting:n}]),i.qOj],ngContentSelectors:ve,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Ve,3,6,"ng-template"))},directives:[w.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Ye.transformMenu,Ye.fadeInItems]},changeDetection:0}),n})();const Ox=new i.OlP("mat-menu-scroll-strategy"),YD={provide:Ox,deps:[Zr],useFactory:function qD(n){return()=>n.scrollStrategies.reposition()}},Bx=$a({passive:!0});let WD=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.w.EMPTY,this._hoverSubscription=re.w.EMPTY,this._menuCloseSubscription=re.w.EMPTY,this._handleTouchStart=u=>{Fh(u)||(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=l,this._parentMaterialMenu=d instanceof Zl?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Bx),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Bx),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Zl&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(tt(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Zl?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,jt.h)(r=>"void"===r.toState),(0,Zt.q)(1),tt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Hh({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(s="top"===l?"bottom":"top",o="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:s,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:o,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:o,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,jt.h)(d=>d!==this._menuItemInstance),(0,jt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Si.T)(e,r,l,t)}_handleMousedown(e){Ud(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,jt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,te.g)(0,yh)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Zl&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Zt.q)(1),(0,te.g)(0,yh),tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new vl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Ox),i.Y36(Ou,8),i.Y36(Gl,10),i.Y36(Cn,8),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),n})(),Nx=(()=>{class n extends WD{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),h1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[YD],imports:[[w.ez,ht,ii,zc],xa,ht]}),n})();var oA=x(1737),UD=x(2474);const GD=["*"];let lA;function p1(n){var a;return(null===(a=function ZD(){if(void 0===lA&&(lA=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(lA=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return lA}())||void 0===a?void 0:a.createHTML(n))||n}function Vx(n){return Error(`Unable to find icon with the name "${n}"`)}function zx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function Fx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Iu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let f1=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Iu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw Fx(r);const s=p1(d);return this._addSvgIconConfig(e,t,new Iu("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Iu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw Fx(t);const d=p1(l);return this._addSvgIconSetConfig(e,new Iu("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw zx(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(cA(r)):this._loadSvgIconFromConfig(new Iu(e,null)).pipe((0,I.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ut.U)(l=>cA(l)))}getNamedSvgIcon(e,t=""){const r=jx(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,oA._)(Vx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(cA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ut.U)(t=>cA(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):fm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,wn.K)(s=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),(0,$e.of)(null)})))).pipe((0,ut.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw Vx(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(d,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t),(0,ut.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const s=this._svgElementFromString(p1(""));return s.appendChild(d),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(p1("")),r=e.attributes;for(let l=0;lp1(u)),ye(()=>this._inProgressUrlFetches.delete(s)),(0,UD.B)());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(jx(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),qx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],t2=qx.map(n=>`[${n}]`).join(", "),n2=/^url\(['"]?#(.*?)['"]?\)$/;let bn=(()=>{class n extends XD{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=re.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(t2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(d),c=o?o.match(n2):null;if(c){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,Zt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(f1),i.$8M("aria-hidden"),i.Y36(KD),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:GD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),$l=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),Yx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[W,h1,$l,ns,Ap,w.ez]]}),n})();var r2=x(655),a2=x(9441);const tf=[5,10,25,100];function Pi(){const n=new uu;return n.disableClose=!0,n.autoFocus=!1,n}function Bu(n){return"virt"===n.namespace.split(":")[4]}const m2=new Intl.Collator("cs",{numeric:!0});function m1(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),o=e(d,t);return m2.compare(s,o)*("asc"===r?1:-1)}):n}function g1(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function nf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(s=>{var o;d[s]=(null!==(o=e(l,s))&&void 0!==o?o:"").split('"').join("''").trim()}),t.push(d)}),t}function rf(n,a="csv",e="export"){if("csv"===a){const t=(o,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(o=>r.map(c=>JSON.stringify(o[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),s=new Blob([d],{type:"text/csv"});(0,a2.saveAs)(s,`${e}.${a}`)}}const Ux="GUI_CONFIG.PREF_PAGE_SIZE.";let _2=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),b2=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Ux+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Ux+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_2))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),A2=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[Pt,Nx,bn,Rx,Gl],pipes:[lt],styles:[""]}),n})();function y2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function M2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const w2=["*"];let os=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=tf,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(b2))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(F,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:w2,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,y2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,M2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[F,w.O5,A2],styles:[""]}),n})();class C2{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let VC=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Pi();this.dialog.open(sb,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(zt),i.LFG(ys),i.LFG(Wi),i.LFG(Ji),i.LFG(rt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gx=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(f1),i.LFG(fr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),v2=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})(),dA=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(li))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zx=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=Pi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(v2,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ye(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,I.b)(s=>{s instanceof M.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,oA._)(s):l?void this.notificator.showRPCError(o):(0,oA._)(o)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ka),i.LFG(dA),i.LFG(Tr),i.LFG(zt),i.LFG(Ji),i.LFG(VC))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$x=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),T2=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,wn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,wn.K)(s=>this.formatErrors(s,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:s}).pipe((0,wn.K)(o=>this.formatErrors(o,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,wn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,oA._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(Tr),i.LFG(ka),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,o,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,o).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(d=o[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nr),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jC=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),d=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();wi("openClose",[Nt("open",Re({overflow:"hidden"})),Nt("closed",Re({height:"0px",overflow:"hidden"})),Ht("open <=> closed",[Ct(".3s ease-in")])]);const x2=wi("flyInOut",[Ht(":enter",[Re({transform:"translateX(100%)"}),Ct(".25s")]),Ht(":leave",[Ct(".5s",Re({transform:"translateX(100%)"}))])]);wi("rollInOut",[Ht(":enter",[Re({height:"0px"}),Ct(".25s")]),Ht(":leave",[Ct(".25s",Re({height:"0px"}))])]),wi("routeAnimations",[Ht("* => *",[Re({position:"relative"}),yr(":enter",[Re({width:"100%",opacity:0})],{optional:!0}),yr(":leave",[Re({position:"absolute",width:"100%",opacity:1}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),yr(":enter",[Re({position:"absolute",width:"100%",opacity:0}),Ct("0.15s",Re({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),wi("tagsOpenClose",[Nt("open",Re({})),Nt("closed",Re({width:"0px",height:"0px"})),Ht("open <=> closed",[Ct(".3s ease-in")])]),wi("switchAnimations",[Ht("true => false",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(-100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(100%)"}))],{optional:!0})])]),Ht("false => true",[yr(":enter, :leave",Re({})),qh([yr(":enter",[Re({transform:"translateX(100%)"}),Ct("1s ease-in-out",Re({transform:"translateX(0%)"}))],{optional:!0}),yr(":leave",[Re({transform:"translateX(0%)",position:"absolute"}),Ct("1s ease-in-out",Re({transform:"translateX(-100%)"}))],{optional:!0})])])]),wi("slideInOutLeft",[Ht(":enter",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Ct("0.5s ease-in",Re({transform:"translateX(-100%)"}))])]),wi("slideInOutRight",[Ht(":enter",[Re({transform:"translateX(100%)",position:"fixed"}),Ct("0.5s ease-in",Re({transform:"translateX(0%)"}))]),Ht(":leave",[Re({transform:"translateX(-100%)",position:"relative"}),Ct("0.5s ease-in",Re({transform:"translateX(100%)"}))])]);let Jx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez]]}),n})(),uA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),si=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li,16),i.Y36(zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();class S2{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const E2=(n,a,e,t=500)=>r=>Pc(t).pipe((0,Ui.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength(r.value,n):(0,$e.of)(null))),(0,ut.U)(()=>null),(0,wn.K)(l=>{const d=l.error,s={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,$e.of)(s)})),Qx=$a({passive:!0});let D2=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return Mn.E;const t=zi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new He.xQ,d="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,Qx),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,Qx)}}),l}stopMonitoring(e){const t=zi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(xi),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new He.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=oi(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=oi(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Ta(this._getWindow(),"resize").pipe(Vd(16),tt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,d=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const s=e.scrollHeight-4;return e.classList.remove(d),l&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),d=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),Xx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Rc]]}),n})();const Kx=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),H2=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let L2=0;const k2=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let Hn=(()=>{class n extends k2{constructor(e,t,r,l,d,s,o,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+L2++,this.focused=!1,this.stateChanges=new He.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>tg().has(V));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&tg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){H2.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(Br,10),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Kx,10),i.Y36(D2),i.Y36(i.R0b),i.Y36(as,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj,i.TTD]}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc],imports:[[Xx,Ws,ht],Xx,Ws]}),n})();function P2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function R2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function O2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function I2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const V2=Bo(class{constructor(n){this._elementRef=n}},"primary"),eS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function z2(){return{diameter:100}}});class Jl extends V2{constructor(a,e,t,r,l,d,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=re.w.EMPTY,this.mode="determinate";const c=Jl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=oi(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=oi(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,oi(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=vh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Jl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Jl._diameters=new WeakMap,Jl.\u0275fac=function(a){return new(a||Jl)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},Jl.\u0275cmp=i.Xpm({type:Jl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,P2,1,11,"circle",2),i.YNc(3,R2,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let Ln=(()=>{class n extends Jl{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(eS),i.Y36(i.sBO),i.Y36(Ja),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,O2,1,11,"circle",2),i.YNc(3,I2,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),b1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht,w.ez],ht]}),n})();function j2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function q2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function Y2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function W2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const U2=["*"];let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:U2,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,j2,2,0,"mat-icon",1),i.YNc(2,q2,2,0,"mat-icon",1),i.YNc(3,Y2,2,0,"mat-icon",1),i.YNc(4,W2,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[w.O5,bn],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function G2(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function Z2(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function $2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function J2(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function Q2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function X2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let K2=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new S2,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);this.language=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Hi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,G2,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,Z2,2,2,"mat-icon",5),i.YNc(8,$2,3,3,"mat-error",6),i.YNc(9,J2,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8),i.TgZ(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,Q2,3,3,"mat-error",6),i.YNc(18,X2,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA(),i.qZA()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},directives:[Ep,Fo,mn,vr,Hn,nn,_n,Jn,Nr,w.O5,Ln,gb,bn,Fl,rs,Nn],pipes:[lt],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),n})();function sH(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function oH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function lH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function cH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,oH,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,lH,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let dH=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(Sn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,sH,1,0,"mat-spinner",1),i.YNc(4,cH,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[En,w.O5,Ln,fn,mn,rs,Hn,nn,Nr,_n,ur,Fl,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),uH=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Pi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(dH,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Ji),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();const hH=[[["caption"]],[["colgroup"],["col"]]],pH=["caption","colgroup, col"];function YC(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const af=new i.OlP("CDK_TABLE");let sf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),lf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),pA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class _H{}const bH=YC(_H);let Ql=(()=>{class n extends bH{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,sf,5),i.Suo(r,lf,5),i.Suo(r,pA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class WC{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let UC=(()=>{class n extends WC{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),GC=(()=>{class n extends WC{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ql),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class iS{constructor(){this.tasks=[],this.endTasks=[]}}const ZC=new i.OlP("_COALESCED_STYLE_SCHEDULER");let nS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.xQ}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new iS,this._getScheduleObservable().pipe(tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new iS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,dn.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Zt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$C=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof A1?e.headerCell.template:this instanceof y1?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class AH extends $C{}const yH=YC(AH);let A1=(()=>{class n extends yH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class MH extends $C{}const wH=YC(MH);let y1=(()=>{class n extends wH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),fA=(()=>{class n extends $C{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(af,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Xl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),JC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),XC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),mA=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const rS=["top","bottom","left","right"];class CH{constructor(a,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const ee of a)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],s=[],o=[];for(let u=0,h=0;u{var u,h;for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);rS.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of rS)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const KC=new i.OlP("CDK_SPL");let gA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),_A=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),bA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),AA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),yA=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=o,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.xQ,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 Ki({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),xm(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Zt.q)(1),tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(d)?r.get(d):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),MA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=MA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=MA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=MA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,s)=>d||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],xm(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;xm(this.dataSource)?e=this.dataSource.connect(this):is(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(tt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),d=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Xl.mostRecentCellOutlet&&Xl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new CH(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,$e.of)()).pipe(tt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(Cn,8),i.Y36(w.K0),i.Y36(xi),i.Y36(td),i.Y36(ZC),i.Y36(Ja),i.Y36(KC,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,mA,5),i.Suo(r,Ql,5),i.Suo(r,fA,5),i.Suo(r,A1,5),i.Suo(r,y1,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(gA,7),i.Gf(_A,7),i.Gf(bA,7),i.Gf(AA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:af,useExisting:n},{provide:td,useClass:jw},{provide:ZC,useClass:nS},{provide:KC,useValue:null}])],ngContentSelectors:pH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(hH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function MA(n,a){return n.concat(Array.from(a))}let TH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qa]]}),n})();const xH=[[["caption"]],[["colgroup"],["col"]]],SH=["caption","colgroup, col"];let Zs=(()=>{class n extends yA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:td,useClass:jw},{provide:yA,useExisting:n},{provide:af,useExisting:n},{provide:ZC,useClass:nS},{provide:KC,useValue:null}]),i.qOj],ngContentSelectors:SH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(xH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[_A,gA,AA,bA],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),ls=(()=>{class n extends sf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:sf,useExisting:n}]),i.qOj]}),n})(),cs=(()=>{class n extends lf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:lf,useExisting:n}]),i.qOj]}),n})(),ds=(()=>{class n extends Ql{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Ql,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),us=(()=>{class n extends UC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),hs=(()=>{class n extends GC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),$s=(()=>{class n extends A1{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:A1,useExisting:n}]),i.qOj]}),n})(),Js=(()=>{class n extends fA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:fA,useExisting:n}]),i.qOj]}),n})(),Qs=(()=>{class n extends JC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:JC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),Xs=(()=>{class n extends XC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:XC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Xl],encapsulation:2}),n})(),wA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[TH,ht],ht]}),n})();class qo extends class NH extends class zw{}{constructor(a=[]){super(),this._renderData=new Ki([]),this._filter=new Ki(""),this._internalPageChanges=new He.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Hc(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,s)=>{let o=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof c;u!==h&&("number"===u&&(o+=""),"number"===h&&(c+=""));let f=0;return null!=o&&null!=c?o>c?f=1:o{const r=Object.keys(e).reduce((d,s)=>d+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Ki(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Si.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Si.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,io.aj)([this._data,this._filter]).pipe((0,ut.U)(([o])=>this._filterData(o))),d=(0,io.aj)([l,e]).pipe((0,ut.U)(([o])=>this._orderData(o))),s=(0,io.aj)([d,t]).pipe((0,ut.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function VH(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function zH(n,a){1&n&&i._UZ(0,"th",15)}function FH(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function jH(n,a){1&n&&i._UZ(0,"tr",17)}function qH(n,a){1&n&&i._UZ(0,"tr",18)}function YH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i.TgZ(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,zH,1,0,"th",8),i.YNc(13,FH,2,1,"td",9),i.BQk(),i.YNc(14,jH,1,0,"tr",10),i.YNc(15,qH,1,0,"tr",11),i.qZA(),i.qZA(),i.TgZ(16,"div",12),i.TgZ(17,"button",13),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let WH=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=d,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new qo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi),i.Y36(li),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,VH,1,0,"mat-spinner",1),i.YNc(6,YH,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();class UH{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch(t){}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let GH=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new UH(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ZH=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let ev=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const l=()=>{const d=r.copy();d||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(d)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(GH),i.Y36(i.R0b),i.Y36(ZH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),sS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),CA=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.TgZ(3,"textarea",2),i._uU(4),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[En,fn,hA,Hn,ji,Pt,ev],pipes:[lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),$H=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,mn,hA,Hn,nn,_n,ur,ji,Pt],pipes:[lt],styles:[""]}),n})(),JH=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA(),i.qZA(),i.TgZ(9,"div",3),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[En,fn,ji,Pt],pipes:[lt],styles:[""]}),n})();function QH(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function XH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let KH=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=d,this.authService=s,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new Cr(null,[Dn.required,Dn.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,d)=>l===d.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(li),i.Y36(Tr),i.Y36(Hi),i.Y36(ka))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,QH,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3),i.TgZ(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,XH,4,5,"mat-error",5),i.qZA(),i.qZA(),i.TgZ(12,"div",6),i.TgZ(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[En,fn,w.O5,Nn,mn,Hn,nn,Nr,_n,ss,Fl,ji,Pt],pipes:[lt,si],styles:[""]}),n})(),lL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[En,fn,Nn,ji,Pt],pipes:[lt],styles:[""]}),n})();function cL(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function dL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5),i.TgZ(1,"div",6),i.TgZ(2,"mat-form-field"),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.showOldPassword=!r.showOldPassword}),i._uU(8),i.qZA(),i.YNc(9,cL,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function uL(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function hL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"div",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().close()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){return i.CHM(e),i.oxw().changePassword()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let pL=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=d,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",Dn.required],passwordCtrl:["",Dn.required,[E2(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:C2.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Qb),i.Y36(Hi),i.Y36(dA),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,dL,11,9,"form",2),i.YNc(5,uL,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,hL,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,fn,w.O5,Yp,Ep,Fo,mn,rs,nn,Hn,_n,Jn,Nr,bn,gb,Fl,K2,Ln,ji,Pt],pipes:[lt],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),n})();const fL=["input"],mL=function(n){return{enterDuration:n}},gL=["*"],_L=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function bL(){return{color:"accent"}}});let lS=0;const AL={provide:Zn,useExisting:(0,i.Gpc)(()=>uS),multi:!0};class cS{constructor(a,e){this.source=a,this.value=e}}const dS=new i.OlP("MatRadioGroup");let yL=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+lS++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new cS(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),uS=(()=>{class n extends yL{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,hS,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([AL,{provide:dS,useExisting:n}]),i.qOj]}),n})();class ML{constructor(a){this._elementRef=a}}const wL=na(Nl(ML));let CL=(()=>{class n extends wL{constructor(e,t,r,l,d,s,o,c){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=d,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++lS,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,c&&(this.tabIndex=oi(c,0)),this._removeUniqueSelectionListener=d.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new cS(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(fL,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[i.qOj]}),n})(),hS=(()=>{class n extends CL{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(dS,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(Mp),i.Y36(Bn,8),i.Y36(_L,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.qOj],ngContentSelectors:gL,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA(),i.qZA(),i.TgZ(9,"span",9),i.TgZ(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA(),i.qZA()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,mL,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[Gn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),pS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht],ht]}),n})();function vL(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function TL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function xL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function SL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(2).asyncValidation=r}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function EL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function DL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function HL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"p"),i.TgZ(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p"),i.TgZ(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,TL,3,3,"span",9),i.YNc(19,xL,3,3,"span",9),i.YNc(20,SL,10,12,"mat-radio-group",10),i.YNc(21,EL,3,3,"span",9),i.YNc(22,DL,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function LL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let kL=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(fi),i.Y36(Di))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,vL,1,0,"mat-spinner",1),i.YNc(5,HL,23,17,"div",2),i.YNc(6,LL,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,uS,_n,ur,hS,ji,Pt],pipes:[lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function PL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function RL(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let OL=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Pi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(uH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function s2(n,a){return(0,r2.mG)(this,void 0,void 0,function*(){yield function o2(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,PL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,RL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[w.O5,bn],pipes:[lt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function IL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const BL=function(n){return{top:n}};let NL=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36($x))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,IL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,BL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[w.PC,w.sg,OL],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[x2]}}),n})();const VL=["*",[["mat-toolbar-row"]]],zL=["*","mat-toolbar-row"],FL=Bo(class{constructor(n){this._elementRef=n}});let jL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),qL=(()=>{class n extends FL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(xi),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,jL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:zL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(VL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),tv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();function fS(n){for(let a in n){let e=n[a]||"";switch(a){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+a]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+a]=isNaN(+e)?"0":e}}return n}const iv="inline",vA=["row","column","row-reverse","column-reverse"];function mS(n){let[a,e,t]=function gS(n){var a;n=null!==(a=null==n?void 0:n.toLowerCase())&&void 0!==a?a:"";let[e,t,r]=n.split(" ");return vA.find(l=>l===e)||(e=vA[0]),t===iv&&(t=r!==iv?r:"",r=iv),[e,YL(t),!!r]}(n);return function WL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function YL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const GL={provide:i.tb,useFactory:function UL(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${_S}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${_S}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},_S="flex-layout-";let nv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[GL]}),n})();class Nu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new Nu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let ZL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let l="";if(r){const d=r.get(t);("number"==typeof d||"string"==typeof d)&&(l=d+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const rv={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Ks=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>rv}),cf=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),av=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function bS(n,a){return n=n?n.clone():new Nu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class An{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let qi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:fS(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:fS(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,w.NF)(this._platformId)?e.style.getPropertyValue(t):function $L(n,a){var e;return null!==(e=AS(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],d=Array.isArray(l)?l:[l];d.sort();for(let s of d)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):JL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ZL),i.LFG(cf),i.LFG(i.Lbi),i.LFG(Ks))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=AS(n);t[a]=null!=e?e:"",function QL(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function AS(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const d=l.indexOf(":");if(-1===d)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,d).trim()]=l.substr(d+1).trim()}}}return a}function w1(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function XL(n,a){return(n.priority||0)-(a.priority||0)}let sv=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Ki(new Nu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;const r=this.registry.get(e);return null!==(t=null==r?void 0:r.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,jt.h)(d=>!t||e.indexOf(d.mediaQuery)>-1)),l=new Ri.y(d=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(c=>{d.next(c)}),this.source.next(o)}d.complete()});return(0,Si.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function KL(n,a){const e=n.filter(t=>!yS[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(l=>yS[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const d=o=>{this._zone.run(()=>this.source.next(new Nu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(d),this.pendingRemoveListenerFns.push(()=>s.removeListener(d)),this.registry.set(l,s)),s.matches&&r.push(new Nu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function ek(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const yS={},tk=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],MS="(orientation: portrait) and (max-width: 599.98px)",wS="(orientation: landscape) and (max-width: 959.98px)",CS="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",vS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",TS="(orientation: portrait) and (min-width: 840px)",xS="(orientation: landscape) and (min-width: 1280px)",ec={HANDSET:`${MS}, ${wS}`,TABLET:`${CS} , ${vS}`,WEB:`${TS}, ${xS} `,HANDSET_PORTRAIT:`${MS}`,TABLET_PORTRAIT:`${CS} `,WEB_PORTRAIT:`${TS}`,HANDSET_LANDSCAPE:`${wS}`,TABLET_LANDSCAPE:`${vS}`,WEB_LANDSCAPE:`${xS}`},ik=[{alias:"handset",priority:2e3,mediaQuery:ec.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:ec.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:ec.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:ec.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:ec.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:ec.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:ec.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:ec.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:ec.WEB_PORTRAIT,overlapping:!0}],nk=/(\.|-|_)/g;function rk(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const lk=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(av),a=(0,i.f3M)(Ks),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function ok(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function Kl(n,...a){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function sk(n){return n.forEach(a=>{a.suffix||(a.suffix=function ak(n){return n.replace(nk,"|").split("|").map(rk).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:tk).concat(a.addOrientationBps?ik:[]),e)}});let ov=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(XL)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=null==e?void 0:e.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);return l||(l=null!==(r=this.items.find(t))&&void 0!==r?r:null,this.findByMap.set(e,l)),null!=l?l:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const df="print",ck={alias:df,mediaQuery:df,priority:1e3};let dk=(()=>{class n{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new uk,this.deactivations=[]}withPrintQuery(e){return[...e,df]}isPrintEvent(e){return e.mediaQuery.startsWith(df)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(w1)}updateEvent(e){var t;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(t=null==r?void 0:r.mediaQuery)&&void 0!==t?t:""),bS(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Nu(!0,df))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const l=this.formerActivations&&this.formerActivations.includes(r),d=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||d)&&(this.deactivations.push(r),this.deactivations.sort(w1))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(Ks),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class uk{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(ck),a.sort(w1),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function hk(n){var a;return null!==(a=null==n?void 0:n.mediaQuery.startsWith(df))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let Qi=(()=>{class n{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new He.xQ,this.observeActivations()}get activatedAlias(){var e,t;return null!==(t=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==t?t:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=bS(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(w1),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(w1),this.updateStyles())}}init(e,t,r,l,d=[]){SS(this.updateMap,e,t,r),SS(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,d)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const d=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(d)return d.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){var d;let s=this.elementMap.get(e);if(s){const c=(null!==(d=s.get(l))&&void 0!==d?d:new Map).set(t,r);s.set(l,c),this.elementMap.set(e,s)}else s=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,s);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,jt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((d,s)=>{this.updateElement(t,s,d),r.delete(s)}),r.forEach(d=>{if(l=this.getActivatedValues(e,d),l){const s=l.get(d);this.updateElement(t,d,s)}else this.clearElement(t,d)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const d=l.get(t);d&&(d(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,d)=>r.delete(d)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((d,s)=>this.updateElement(e,s,d)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Si.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,I.b)(this.hook.interceptEvents(this)),(0,jt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sv),i.LFG(ov),i.LFG(dk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function SS(n,a,e,t){var r;if(void 0!==t){const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let rn=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new He.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let d=this.styleCache.get(e);(!d||!l)&&(d=r.buildStyles(e,t),l&&this.styleCache.set(e,d)),this.mru=Object.assign({},d),this.applyStyleToElement(d),r.sideEffect(e,d,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,l]=this.styler.getFlowDirection(e);if(!l&&t){const d=mS(r);this.styler.applyStyleToElements(d,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(An),i.Y36(qi),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class Sk{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function LS(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function PS(n){const[a,...e]=n.split(":");return new Sk(a,e.join(":"))}function RS(n,a){return a.key&&(n[a.key]=a.value),n}let Hk=(()=>{class n extends rn{constructor(e,t,r,l,d,s,o,c,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,d,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(LS(e)){case"string":return OS(function Ek(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return OS(e,t);default:return function kS(n,a){let e=[];return"set"===LS(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function Dk(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(Qi),i.Y36(fr),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(cf),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Lk=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let xA=(()=>{class n extends Hk{constructor(){super(...arguments),this.inputs=Lk}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.qOj]}),n})();function OS(n,a){return n.map(PS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(RS,{})}let IS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})();const cv=function(n){return{color:n}};function kk(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA(),i.qZA()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,cv,e.iconColor))}}function Pk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().onLogOut()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let Rk=(()=>{class n{constructor(e,t,r,l){this.authService=e,this.authzResolverService=t,this.notificator=r,this.translateService=l}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(Wi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(i.YNc(0,kk,4,7,"button",0),i.TgZ(1,"mat-menu",null,1),i.TgZ(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"button",3),i.TgZ(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.TgZ(9,"span",5),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"mat-menu",null,6),i.YNc(13,Pk,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(12);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,cv,t.iconColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,cv,t.textColor)),i.xp6(1),i.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},directives:[w.O5,Pt,Nx,vr,bn,w.PC,Rx,Gl],pipes:[lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const BS=function(n){return{color:n}};function Ok(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onToggleSidenav()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,BS,e.iconColor))}}function Ik(n,a){1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA(),i.qZA())}const Bk=function(n){return{background:n}},Nk=function(){return[]},Vk=function(){return["/"]};let zk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(li),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.YNc(2,Ok,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA(),i.qZA(),i.YNc(6,Ik,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,Bk,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,Nk):i.DdM(16,Vk)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,BS,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[qL,w.PC,xA,w.O5,Pt,bn,z,Rk],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function NS(n){return a=>a.lift(new Fk(n))}class Fk{constructor(a){this.value=a}call(a,e){return e.subscribe(new jk(a,this.value))}}class jk extends Sr.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const SA=["*"],qk=["content"];function Yk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Wk(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const Uk=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Gk=["mat-drawer","mat-drawer-content","*"];function Zk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function $k(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Jk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],Qk=["mat-sidenav","mat-sidenav-content","*"],VS={transformDrawer:wi("transform",[Nt("open, open-instant",Re({transform:"none",visibility:"visible"})),Nt("void",Re({"box-shadow":"none",visibility:"hidden"})),Ht("void => open-instant",Ct("0ms")),Ht("void <=> open, open-instant => void",Ct("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Kk=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function eP(){return!1}}),dv=new i.OlP("MAT_DRAWER_CONTAINER");let EA=(()=>{class n extends Th{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>FS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),zS=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=o,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new He.xQ,this._animationEnd=new He.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,jt.h)(u=>u),(0,ut.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),NS(void 0)),this._closedStream=this.openedChange.pipe((0,jt.h)(u=>!u),(0,ut.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),NS(void 0)),this._destroyed=new He.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new He.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ta(this._elementRef.nativeElement,"keydown").pipe((0,jt.h)(u=>27===u.keyCode&&!this.disableClose&&!vn(u)),tt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Rh((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=je(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Zt.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qg),i.Y36(Rr),i.Y36(xi),i.Y36(i.R0b),i.Y36(zh),i.Y36(w.K0,8),i.Y36(dv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(qk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),FS=(()=>{class n{constructor(e,t,r,l,d,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new He.xQ,this._doCheckSubject=new He.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new He.xQ,e&&e.change.pipe(tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(_i(this._allDrawers),tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(_i(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,kh.b)(10),tt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,jt.h)(t=>t.fromState!==t.toState),tt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(tt((0,Si.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Cn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Ja),i.Y36(Kk),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,EA,5),i.Suo(r,zS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(EA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:dv,useExisting:n}])],ngContentSelectors:Gk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Uk),i.YNc(0,Yk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Wk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[EA,w.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),uv=(()=>{class n extends EA{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>qS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Th,useExisting:n}]),i.qOj],ngContentSelectors:SA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),jS=(()=>{class n extends zS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=oi(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=oi(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:SA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Th],encapsulation:2,data:{animation:[VS.transformDrawer]},changeDetection:0}),n})(),qS=(()=>{class n extends FS{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,uv,5),i.Suo(r,jS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:dv,useExisting:n}]),i.qOj],ngContentSelectors:Qk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Jk),i.YNc(0,Zk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,$k,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[uv,w.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,Rc,xa],xa,ht]}),n})(),tP=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(l=>{const d={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{var c;d[`label_${o}`]=null!==(c=String(l[`label_${o}`]))&&void 0!==c?c:l.label_en}),t.push(d)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})();const fv=["*"],iP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],nP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],WS=ts(na(class{})),lP=na(class{}),US=new i.OlP("MatList"),GS=new i.OlP("MatNavList");let cP=(()=>{class n extends WS{constructor(){super(...arguments),this._stateChanges=new He.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:GS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),mv=(()=>{class n extends WS{constructor(e){super(),this._elementRef=e,this._stateChanges=new He.xQ,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:US,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:fv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),ZS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),$S=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),DA=(()=>{class n extends lP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new He.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(tt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function aw(n,a,e="mat"){n.changes.pipe(_i(n)).subscribe(({length:t})=>{zl(a,`${e}-2-line`,!1),zl(a,`${e}-3-line`,!1),zl(a,`${e}-multi-line`,!1),2===t||3===t?zl(a,`${e}-${t}-line`,!0):t>3&&zl(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(GS,8),i.Y36(US,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,ZS,5),i.Suo(r,$S,5),i.Suo(r,Vl,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:nP,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(iP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Gn],encapsulation:2,changeDetection:0}),n})(),gv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ii,ht,dp,w.ez],cm,ht,dp,pv]}),n})(),QS=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})();const mP=function(n){return{color:n}};function gP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return l.external?d.goToURL(l.link):d.shouldHideMenu()}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,mP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let _P=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof At&&(this.currentUrl=d.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(tP),i.Y36(zt),i.Y36(rt),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,gP,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[cP,w.sg,DA,Gn,w.PC,xA,O,bn],pipes:[QS,lt,si],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function bP(n,a){if(1&n&&(i.TgZ(0,"span",1),i.TgZ(1,"a",2),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let AP=(()=>{class n{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(l=>{const d=l.snapshot.url.map(o=>o.path).join("/");""!==d&&(t+=`/${d}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,bP,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},directives:[w.sg,z],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),n})();function yP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let MP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(li),i.Y36(Tr),i.Y36(cn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,yP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[En,fn,mn,rs,Hn,nn,Nr,_n,ur,w.O5,Fl,mb,ji,Pt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),wP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),CP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function vP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function TP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function xP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,vP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,TP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const SP=function(n){return{"min-height":n}};function EP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,xP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,SP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const md=function(n){return{color:n}};function DP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,md,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function HP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function LP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,md,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function kP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,md,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function PP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,DP,2,4,"i",17),i.YNc(2,HP,3,8,"span",18),i.YNc(3,LP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,kP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const RP=function(n){return{height:n}};function OP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,PP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,RP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function IP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,EP,2,4,"div",9),i.YNc(5,OP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,md,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function BP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,md,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const NP=function(n){return{background:n}};let XS=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Pi();"reportIssue"===e&&(t.width="550px",this.dialog.open(MP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(li),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,IP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,BP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,NP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,md,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,md,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[w.PC,w.sg,w.O5],pipes:[QS,wP,CP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();function VP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function zP(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function FP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const jP=function(n){return{color:n}};function qP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,jP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const YP=function(n,a){return{background:n,color:a}},WP=function(n,a){return{"min-height":n,"background-color":a}};let UP=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(fr),i.Y36(FC),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,VP,2,1,"div",1),i.YNc(2,zP,3,1,"div",2),i.YNc(3,FP,2,1,"div",1),i.YNc(4,qP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,YP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,WP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[w.PC,w.O5,bn,hi,XS],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const GP=["footer"],KS=function(n){return{background:n}},ZP=function(n){return{"min-height":n}};function $P(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2),i.TgZ(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){return i.CHM(e),i.MAs(5).toggle()}),i.qZA(),i.TgZ(3,"mat-sidenav-container"),i.TgZ(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7),i.TgZ(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs"),i._UZ(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,KS,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,KS,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,ZP,t.contentHeight))}}function JP(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let QP=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=d,this.preferredLangService=s,this.titleService=o,this.document=c,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.find(s=>"preferredLanguage"===s.friendlyName),l=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:null,d=this.preferredLangService.getPreferredLanguage(l);this.translateService.use(d)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(li),i.Y36(VC),i.Y36(i.sBO),i.Y36(FC),i.Y36(it),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(GP,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i.YNc(0,$P,14,12,"ng-template",0),i.YNc(1,JP,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[w.O5,NL,zk,qS,jS,w.PC,xA,_P,uv,AP,hi,XS,UP],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();var XP=x(1158);function KP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index;return i.oxw().removeValue(r)}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA(),i.qZA()}}function eR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9),i.TgZ(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw();return d.readonly&&d.attribute.displayName&&d.showValue(d.keys[l],d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().keys[d]=r}),i.qZA(),i.qZA(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().values[d]=r}),i.qZA(),i.qZA(),i.YNc(7,KP,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function tR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function iR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function nR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(1,tR,2,0,"mat-icon",17),i.YNc(2,iR,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function rR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw().addValue()}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA(),i.qZA()}}let aR=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Bu(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[Yp,Ep,ld,w.sg,mn,Hn,nn,Nr,_n,ur,w.O5,Pt,bn,vr],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),n})();const sR=["input"],oR=function(n){return{enterDuration:n}},lR=["*"],cR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:eE});function eE(){return{color:"accent",clickAction:"check-indeterminate"}}let dR=0;const tE=eE(),uR={provide:Zn,useExisting:(0,i.Gpc)(()=>tc),multi:!0};class hR{}const pR=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let tc=(()=>{class n extends pR{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++dR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||tE,this.color=this.defaultColor=this._options.color||tE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=je(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new hR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Bn,8),i.Y36(cR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(sR,5),i.Gf(Gn,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([uR]),i.qOj],ngContentSelectors:lR,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,oR,"NoopAnimations"===t._animationMode?0:150))}},directives:[Gn,Oh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),iE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),C1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ii,ht,Wd,iE],ht,iE]}),n})(),_v=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function gR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()})("ngModelChange",function(r){return i.CHM(e),i.oxw().attribute.value=r}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function _R(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let bR=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,gR,2,4,"mat-checkbox",0),i.YNc(2,_R,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},directives:[w.O5,tc,_n,ur,rs],pipes:[_v],styles:[""]}),n})();function yR(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function bv(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function uf(n,a){const e=a?"":"none";bv(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function nE(n,a,e){bv(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function HA(n,a){return a&&"none"!=a?n+" "+a:n}function rE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function Av(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function yv(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function Mv(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function v1(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function aE(n,a,e,t){const{top:r,right:l,bottom:d,left:s,width:o,height:c}=n,u=o*a,h=c*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:yv(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,o=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&v1(c.clientRect,s,o)}),r.top=l,r.left=d,{top:s,left:o}}}function oE(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._handles.find(c=>s.target&&(s.target===c||c.contains(s.target)));o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),V=this._dropContainer;if(!b)return void this._endDragSequence(s);(!V||!V.isDragging()&&!V.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),s.preventDefault();const c=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,o);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:s,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new sE(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>uf(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>zi(t)),this._handles.forEach(t=>uf(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=zi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,hE),e.addEventListener("touchstart",this._pointerDown,uE)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?zi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),uf(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),uf(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){T1(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),nE(t,!1,wv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=T1(e),l=!r&&0!==e.button,d=this._rootElement,s=Un(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Fh(e):Ud(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=yv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){nE(this._rootElement,!0,wv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=fE(d,this._document),this._previewRef=d,a.matchSize?mE(r,l):r.style.transform=LA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=oE(l),mE(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return bv(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wv),uf(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function MR(n){const a=getComputedStyle(n),e=Av(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=Av(a,"transition-duration"),d=Av(a,"transition-delay");return rE(l[r])+rE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var s;(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=fE(this._placeholderRef,this._document)):t=oE(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=T1(e)?e.targetTouches[0]:e,s=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-s.left),y:l.top-t.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=T1(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,c=s.top+d,u=s.bottom-(o.height-d);t=pE(t,s.left+l,s.right-(o.width-l)),r=pE(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),s=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,uf(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,hE),a.removeEventListener("touchstart",this._pointerDown,uE)}_applyRootElementTransform(a,e){const t=LA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=HA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=LA(a,e);this._preview.style.transform=HA(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,s=t.top-r.top,o=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(s>0&&(e+=s),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:T1(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Un(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&v1(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=vh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return zi(t)}}function LA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function pE(n,a,e){return Math.max(a,Math.min(e,n))}function T1(n){return"t"===n.type[0]}function fE(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function mE(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=LA(a.left,a.top)}function gE(n,a,e){const t=x1(a,n.length-1),r=x1(e,n.length-1);if(t===r)return;const l=n[t],d=r!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=re.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function AR(n=0,a=Mh.P){return(!K1(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=Mh.P),new Ri.y(e=>(e.add(a.schedule(yR,n,{subscriber:e,counter:0,period:n})),e))}(0,Yf).pipe(tt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-s):2===this._verticalScrollDirection&&d.scrollBy(0,s),1===this._horizontalScrollDirection?d.scrollBy(-s,0):2===this._horizontalScrollDirection&&d.scrollBy(s,0)})},this.element=zi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new sE(t,l)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,s=d.indexOf(a),o=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(o,u),d.splice(l,0,a)}else zi(this.element).appendChild(o),d.push(a);o.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,d,s){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=zi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!aE(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const s="horizontal"===this._orientation,o=l.findIndex(he=>he.drag===a),c=l[d],h=c.clientRect,f=o>d?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),V=this._getSiblingOffsetPx(o,l,f),ee=l.slice();gE(l,o,d),this.sorted.next({previousIndex:o,currentIndex:d,container:this,item:a}),l.forEach((he,Oe)=>{if(ee[Oe]===he)return;const gt=he.drag===a,dt=gt?b:V,Kt=gt?a.getPlaceholderElement():he.drag.getRootElement();he.offset+=dt,s?(Kt.style.transform=HA(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),v1(he.clientRect,0,dt)):(Kt.style.transform=HA(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),v1(he.clientRect,dt,0))}),this._previousSwap.overlaps=Mv(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||aE(d.clientRect,.05,a,e)&&([r,l]=function xR(n,a,e,t){const r=AE(a,t),l=yE(a,e);let d=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(d=1):n.scrollHeight-o>n.clientHeight&&(d=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),o={width:d,height:s,top:0,right:d,bottom:s,left:0};r=AE(o,e),l=yE(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=zi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=zi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_cacheItemPositions(){const a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:yv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=zi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let s=l[r?"width":"height"]*t;if(d){const o=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[o]-l[c]:s+=l[o]-d.clientRect[c]}return s}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const c=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!Mv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=zi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&(this._itemPositions.forEach(({clientRect:t})=>{v1(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=vh(zi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function AE(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function yE(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const kA=$a({passive:!1,capture:!0});let SR=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,kA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,kA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:kA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:kA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Ri.y(r=>this._ngZone.runOutsideAngular(()=>{const d=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Si.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ER={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Cv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=ER){return new vR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new TR(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Ja),i.LFG(SR))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ME=new i.OlP("CDK_DRAG_PARENT"),wE=new i.OlP("CdkDropListGroup"),CE=new i.OlP("CDK_DRAG_CONFIG");let DR=0;const vE=new i.OlP("CdkDropList");let HR=(()=>{class n{constructor(e,t,r,l,d,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=d,this._group=s,this._destroyed=new He.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+DR++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(_i(this._dir.value),tt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=Lc(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(d=>d.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=oi(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:d,listOrientation:s}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=l&&l,this.autoScrollDisabled=null!=d&&d,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Cv),i.Y36(i.sBO),i.Y36(sr),i.Y36(Cn,8),i.Y36(wE,12),i.Y36(CE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i._Bn([{provide:wE,useValue:void 0},{provide:vE,useExisting:n}])]}),n})();const TE=new i.OlP("CdkDragHandle"),LR=new i.OlP("CdkDragPlaceholder"),kR=new i.OlP("CdkDragPreview");let RR=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=d,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new He.xQ,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Ri.y(b=>{const V=this._dragRef.moved.pipe((0,ut.U)(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(b);return()=>{V.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Zt.q)(1),tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):null===(e=t.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):zi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,d=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:oi(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(d).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,Zt.q)(1)).subscribe(()=>{var t;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(t=n._dragInstances.find(l=>l.element.nativeElement===r))||void 0===t?void 0:t._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:d,boundaryElement:s,draggingDisabled:o,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=o&&o,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),d&&(this.previewClass=d),s&&(this.boundaryElement=s),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(_i(this._handles),(0,I.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,Ui.w)(e=>(0,Si.T)(...e.map(t=>t._stateChanges.pipe(_i(t))))),tt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vE,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(CE,8),i.Y36(Cn,8),i.Y36(Cv),i.Y36(i.sBO),i.Y36(TE,10),i.Y36(ME,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,kR,5),i.Suo(r,LR,5),i.Suo(r,TE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i._Bn([{provide:ME,useExisting:n}]),i.TTD]}),n})(),OR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cv],imports:[xa]}),n})();const IR=["*"],xE=new i.OlP("MatChipRemove"),SE=new i.OlP("MatChipAvatar"),EE=new i.OlP("MatChipTrailingIcon");class BR{constructor(a){this._elementRef=a}}const NR=Nl(Bo(na(BR),"primary"),-1);let PA=(()=>{class n extends NR{constructor(e,t,r,l,d,s,o,c){super(e),this._ngZone=t,this._changeDetectorRef=d,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new He.xQ,this._onBlur=new He.xQ,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new Y_(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(xi),i.Y36(cu,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SE,5),i.Suo(r,EE,5),i.Suo(r,xE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const DE=new i.OlP("mat-chips-default-options");let jR=0,HE=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+jR++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!vn(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!vn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(DE))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.TTD]}),n})();const qR=op(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let YR=0;class WR{constructor(a,e){this.source=a,this.value=e}}let LE=(()=>{class n extends qR{constructor(e,t,r,l,d,s,o){super(s,l,d,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new He.xQ,this._uid="mat-chip-list-"+YR++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(Dn.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Si.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Si.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Si.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Si.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new jc(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(tt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(_i(null),tt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new tn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(l=>null!=l.value&&this._compareWith(l.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new WR(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Cn,8),i.Y36(ld,8),i.Y36(Fo,8),i.Y36(Qc),i.Y36(Br,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,PA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:Kc,useExisting:n}]),i.qOj],ngContentSelectors:IR,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),n})(),UR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Qc,{provide:DE,useValue:{separatorKeyCodes:[13]}}],imports:[[ht]]}),n})();function GR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){return i.CHM(e),i.oxw(2).dragDisabled=!1}),i._uU(1,"drag_indicator"),i.qZA()}}function ZR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().edit(r)}),i._uU(1,"edit"),i.qZA()}}function $R(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().remove(r)}),i._uU(1,"cancel"),i.qZA()}}function JR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.remove(l),d._sendEventToParent()}),i.YNc(1,GR,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)}),i._uU(3),i.qZA(),i.YNc(4,ZR,2,0,"mat-icon",7),i.YNc(5,$R,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function QR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function XR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function KR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"span",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(3,QR,2,0,"mat-icon",15),i.YNc(4,XR,2,0,"mat-icon",15),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function eO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12),i.TgZ(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){return i.CHM(e),i.oxw().add(r)})("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let tO=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!Bu(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=Pi();t.width="400px",t.data={name:e},this.dialog.open(JH,t).afterClosed().subscribe(l=>{if(l){const d=this.attribute.value.indexOf(e);this.attribute.value.splice(d,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,gE(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=Pi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open($H,r).afterClosed().subscribe(d=>{d&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,JR,6,9,"mat-chip",2),i.YNc(4,KR,5,4,"div",3),i.YNc(5,eO,2,3,"mat-form-field",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[LE,HR,w.sg,PA,RR,w.O5,bn,vr,Pt,mn,Hn,HE],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),iO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(CA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,nn,_n,ur],pipes:[_v],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),nO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=Bu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=Pi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(CA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Hn,Wp,nn,_n,ur],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const rO=["map"];function aO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function sO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function oO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function lO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let vv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(rO,5),2&e){let r;i.iGM(r=i.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,aO,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,sO,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,oO,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,lO,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,cO,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[w.O5,bR,tO,aR,iO,nO],styles:[""]}),n})();function dO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function uO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeLanguage(l)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function hO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",14),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentLang=r}),i.YNc(2,uO,4,6,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function pO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeEmail()}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function fO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeTimeZone(l)}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",19),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentTimezone=r}),i.YNc(2,fO,2,2,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function gO(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function _O(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function bO(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,gO,2,0,"p",20),i.YNc(2,_O,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function AO(n,a){if(1&n&&(i.TgZ(0,"tr"),i.TgZ(1,"td",7),i.TgZ(2,"div",8),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"td",9),i.YNc(5,hO,3,2,"mat-form-field",10),i.YNc(6,pO,6,2,"div",11),i.YNc(7,mO,3,2,"mat-form-field",10),i.YNc(8,bO,3,2,"div",12),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function yO(n,a){if(1&n&&(i.TgZ(0,"table",4),i.TgZ(1,"tbody"),i.TgZ(2,"tr"),i.TgZ(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA(),i.qZA(),i.YNc(9,AO,9,6,"tr",6),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let MO=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=d,this.route=s,this.router=o,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=XP.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=Pi();l.width="600px",this.dialog.open(lL,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{var r,l,d,s,o;this.fullName=(new uA).transform(t);const c=t.userAttributes.find(ee=>"preferredMail"===ee.friendlyName);this.email=null!==(r=null==c?void 0:c.value)&&void 0!==r?r:"-",this.languageAttribute=t.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);const u=null!==(d=null===(l=this.languageAttribute)||void 0===l?void 0:l.value)&&void 0!==d?d:null,h=this.preferredLangService.getPreferredLanguage(u);this.translateService.use(h),this.currentLang=h,this.timezoneAttribute=t.userAttributes.find(ee=>"timezone"===ee.friendlyName),this.currentTimezone=null!==(o=null===(s=this.timezoneAttribute)||void 0===s?void 0:s.value)&&void 0!==o?o:"-";const f=this.storeService.get("profile_page_attributes");let b=0;const V=this.storeService.get("supported_languages");f.forEach(ee=>{const he=t.userAttributes.find(Oe=>Oe.friendlyName===ee.friendly_name);he?(b++,this.addAttribute(he,ee,V)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${ee.is_virtual?"virt":"def"}:${ee.friendly_name}`).subscribe(Oe=>{this.addAttribute(Oe,ee,V),b++,this.loading=b!==f.length}),this.loading=b!==f.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=Pi();e.width="350px",e.data={userId:this.userId},this.dialog.open(KH,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{var t;this.email=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"-"})}addAttribute(e,t,r){var l,d;const s={attribute:e};for(const o of r)s[`displayName_${o}`]=(null===(l=null==t?void 0:t[`display_name_${o}`])||void 0===l?void 0:l.length)?t[`display_name_${o}`]:e.displayName,s[`tooltip_${o}`]=null!==(d=t[`tooltip_${o}`])&&void 0!==d?d:"";this.additionalAttributes.push(s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(li),i.Y36(Ji),i.Y36(Wi),i.Y36(ni),i.Y36(Hi),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(zt),i.Y36(dA),i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,dO,1,0,"mat-spinner",1),i.YNc(2,yO,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,vr,w.RF,w.n9,mn,ku,La,Pt,bn,w.ED,vv],pipes:[lt,si,w.gd],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),n})();const wO=["mat-sort-header",""];function CO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const vO=["*"],gd=iw.ENTERING+" "+tw.STANDARD_CURVE,hf={indicator:wi("indicator",[Nt("active-asc, asc",Re({transform:"translateY(0px)"})),Nt("active-desc, desc",Re({transform:"translateY(10px)"})),Ht("active-asc <=> active-desc",Ct(gd))]),leftPointer:wi("leftPointer",[Nt("active-asc, asc",Re({transform:"rotate(-45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),rightPointer:wi("rightPointer",[Nt("active-asc, asc",Re({transform:"rotate(45deg)"})),Nt("active-desc, desc",Re({transform:"rotate(-45deg)"})),Ht("active-asc <=> active-desc",Ct(gd))]),arrowOpacity:wi("arrowOpacity",[Nt("desc-to-active, asc-to-active, active",Re({opacity:1})),Nt("desc-to-hint, asc-to-hint, hint",Re({opacity:.54})),Nt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Re({opacity:0})),Ht("* => asc, * => desc, * => active, * => hint, * => void",Ct("0ms")),Ht("* <=> *",Ct(gd))]),arrowPosition:wi("arrowPosition",[Ht("* => desc-to-hint, * => desc-to-active",Ct(gd,Hl([Re({transform:"translateY(-25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-desc, * => active-to-desc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(25%)"})]))),Ht("* => asc-to-hint, * => asc-to-active",Ct(gd,Hl([Re({transform:"translateY(25%)"}),Re({transform:"translateY(0)"})]))),Ht("* => hint-to-asc, * => active-to-asc",Ct(gd,Hl([Re({transform:"translateY(0)"}),Re({transform:"translateY(-25%)"})]))),Nt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Re({transform:"translateY(0)"})),Nt("hint-to-desc, active-to-desc, desc",Re({transform:"translateY(-25%)"})),Nt("hint-to-asc, active-to-asc, asc",Re({transform:"translateY(25%)"}))]),allowChildren:wi("allowChildren",[Ht("* <=> *",[yr("@*",Jg(),{optional:!0})])])};let RA=(()=>{class n{constructor(){this.changes=new He.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xO={provide:RA,deps:[[new i.FiY,new i.tp0,RA]],useFactory:function TO(n){return n||new RA}},SO=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),EO=am(ts(class{}));let ps=(()=>{class n extends EO{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new He.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let s=function DO(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(SO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const HO=ts(class{});let S1=(()=>{class n extends HO{constructor(e,t,r,l,d,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Si.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(RA),i.Y36(i.sBO),i.Y36(ps,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Rr),i.Y36(i.SBq),i.Y36(Bh,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:wO,ngContentSelectors:vO,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,CO,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[hf.indicator,hf.leftPointer,hf.rightPointer,hf.arrowOpacity,hf.arrowPosition,hf.allowChildren]},changeDetection:0}),n})(),OA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[xO],imports:[[w.ez,ht]]}),n})(),LO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),kE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),kO=(()=>{class n{transform(e){var t;const r=e.find(l=>"mail"===l.friendlyName);return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"N/A"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function PO(n,a){1&n&&i._UZ(0,"th",18)}function RO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function OO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function IO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function BO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function NO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function VO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function zO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function FO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function jO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function qO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function YO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function WO(n,a){1&n&&i._UZ(0,"tr",26)}const PE=function(n,a){return["/admin","users",n,"identities",a]};function UO(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,PE,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,PE,t.userId,e.userExtSource.id))}}function GO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function ZO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let $O=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new tn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(l=>"mail"===l.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new qo(this.userExtSources),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nr),i.Y36(ys))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,PO,1,0,"th",4),i.YNc(5,RO,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,OO,4,5,"th",7),i.YNc(8,IO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,BO,4,5,"th",10),i.YNc(11,NO,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,VO,4,5,"th",7),i.YNc(14,zO,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,FO,4,5,"th",7),i.YNc(17,jO,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,qO,4,5,"th",7),i.YNc(20,YO,3,4,"td",14),i.BQk(),i.YNc(21,WO,1,0,"tr",15),i.YNc(22,UO,1,12,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,GO,3,3,"perun-web-apps-alert",17),i.YNc(24,ZO,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,vr,tc,S1,$s,Qs,Js,Xs,kE,O,w.O5,Nn],pipes:[lt,si,kO,w.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),n})();function JO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function QO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.removeIdentity(r.certSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function XO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw().addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.removeIdentity(r.idpSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",7),i.YNc(14,QO,14,22,"div",2),i.TgZ(15,"h1",8),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"customTranslate"),i.TgZ(19,"mat-icon",9),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i._uU(22," info_outline "),i.qZA(),i.qZA(),i._UZ(23,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,17,i.lcZ(4,19,"IDENTITIES.IDP"))),i.xp6(4),i.hij(" ",i.lcZ(7,21,i.lcZ(8,23,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,25,i.lcZ(12,27,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(17,29,i.lcZ(18,31,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(20,33,i.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let KO=(()=>{class n{constructor(e,t,r,l,d){this.usersManagerService=e,this.storage=t,this.registrarManagerService=r,this.dialog=l,this.attributesManagerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new tn(!0,[]),this.certSelection=new tn(!0,[]),this.otherSelection=new tn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(l=>{(null==l?void 0:l.value)?(r.userExtSource.extSource.name=l.value,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(d=>{t--,(null==d?void 0:d.value)&&(r.userExtSource.extSource.name=d.value),this.loading=0!==t,this.addToList(r)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${(null==t?void 0:t.endsWith("X509"))?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}removeIdentity(e){const t=Pi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(WH,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(ri),i.Y36(Ji),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,JO,1,0,"mat-spinner",1),i.YNc(2,XO,24,37,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,Pt,$O,bn,vr],pipes:[lt,si],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const eI=["panel"];function tI(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const iI=["*"];let nI=0;class rI{constructor(a,e){this.source=a,this.option=e}}const aI=na(class{}),RE=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function sI(){return{autoActiveFirstOption:!1}}});let oI=(()=>{class n extends aI{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=re.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+nI++,this.inertGroups=(null==l?void 0:l.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}set classList(e){this._classList=e&&e.length?function Vv(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Vg(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new rI(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(RE),i.Y36(xi))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(eI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),lI=(()=>{class n extends oI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,up,5),i.Suo(r,La,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:um,useExisting:n}]),i.qOj],ngContentSelectors:iI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,tI,3,4,"ng-template"))},directives:[w.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const OE=new i.OlP("mat-autocomplete-scroll-strategy"),dI={provide:OE,deps:[Zr],useFactory:function cI(n){return()=>n.scrollStrategies.reposition()}},uI={provide:Zn,useExisting:(0,i.Gpc)(()=>IE),multi:!0};let hI=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=d,this._dir=o,this._formField=c,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new He.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ma(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(_i(b),(0,Ui.w)(()=>(0,Si.T)(...b.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe((0,Zt.q)(1),(0,Ui.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Si.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,jt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,jt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,ut.U)(e=>e instanceof W_?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Si.T)(Ta(this._document,"click"),Ta(this._document,"auxclick"),Ta(this._document,"touchend")).pipe((0,jt.h)(e=>{const t=Un(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode;if(27===t&&!vn(e)&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!vn(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,l=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):l&&this._canOpen()&&this.openPanel(),(l||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,Zt.q)(1)),t=this.autocomplete.options.changes.pipe((0,I.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,Si.T)(e,t).pipe((0,Ui.w)(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,Zt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=t?t:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const t=e&&e.source;t&&(this._clearPreviousSelectedOption(t),this._setTriggerValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){var e;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new vl(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(l=>{(27===l.keyCode&&!vn(l)||38===l.keyCode&&vn(l,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),l.stopPropagation(),l.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Hh({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let d;d="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=hm(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const d=l._getHostElement(),s=U_(d.offsetTop,d.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(OE),i.Y36(Cn,8),i.Y36(as,9),i.Y36(w.K0,8),i.Y36(Ja),i.Y36(RE,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),IE=(()=>{class n extends hI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[i._Bn([uI]),i.qOj]}),n})(),pI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[dI],imports:[[zc,du,ht,w.ez],xa,du,ht]}),n})(),fI=(()=>{class n{transform(e){var t;return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function mI(n,a){1&n&&i._UZ(0,"th",17)}function gI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function _I(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function bI(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function AI(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function yI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function MI(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function wI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function CI(n,a){1&n&&i._UZ(0,"th",20)}function vI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().extend(l)}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function TI(n,a){1&n&&i._UZ(0,"tr",25)}function xI(n,a){1&n&&i._UZ(0,"tr",26)}function SI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let BE=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new tn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){var r,l;switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return null!==(l=null===(r=null==e?void 0:e.expirationAttribute)||void 0===r?void 0:r.value)&&void 0!==l?l:"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new qo(this.members),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,mI,1,0,"th",4),i.YNc(5,gI,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,_I,4,5,"th",7),i.YNc(8,bI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,AI,4,5,"th",7),i.YNc(11,yI,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,MI,4,5,"th",12),i.YNc(14,wI,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,CI,1,0,"th",7),i.YNc(17,vI,6,8,"td",10),i.BQk(),i.YNc(18,TI,1,0,"tr",14),i.YNc(19,xI,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,SI,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[os,Zs,ps,ds,cs,us,ls,hs,tc,S1,Pt,$s,Qs,Js,Xs,w.O5,Nn],pipes:[fI,lt,si],styles:[""]}),n})();function EI(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function DI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){return i.CHM(e),i.oxw().filterByVo(r)}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,EI,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function HI(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function LI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const kI=function(){return["name","description","expirationAttribute","extend"]};function PI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw().extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,kI))}}const RI=function(){return["name","description"]};function OI(n,a){if(1&n&&(i.TgZ(0,"div",18),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,RI))}}let II=(()=>{class n{constructor(e,t,r,l,d,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=d,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new Cr,this.selection=new tn(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(_i(""),(0,ut.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(l=>{t--,this.groupService.getMemberGroups(l).subscribe(d=>{e+=d.length,this.loading=0===e&&0!==t,d.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(d=>{this.adminMemberships.push({entity:d,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(l=>{let d=l.length;this.loading=0!==d,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{d--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==d})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(d=>d.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(Di),i.Y36(zt),i.Y36(_s),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,DI,15,19,"mat-form-field",2),i.YNc(6,HI,1,0,"mat-spinner",3),i.YNc(7,LI,4,5,"perun-web-apps-alert",4),i.YNc(8,PI,6,9,"div",5),i.YNc(9,OI,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[w.O5,mn,rs,Hn,nn,IE,_n,ss,lI,La,w.sg,Ln,Nn,BE],pipes:[lt,si,w.Ov],styles:[""]}),n})();function BI(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function NI(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let pf=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new Cr}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,BI,2,4,"input",1),i.YNc(2,NI,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[mn,w.O5,Hn,nn,LO,_n,ss],pipes:[lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})(),VI=0;const Tv=new i.OlP("CdkAccordion");let zI=(()=>{class n{constructor(){this._stateChanges=new He.xQ,this._openCloseAllActions=new He.xQ,this.id="cdk-accordion-"+VI++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:Tv,useExisting:n}]),i.TTD]}),n})(),FI=0,jI=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=re.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+FI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tv,12),i.Y36(i.sBO),i.Y36(Mp))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:Tv,useValue:void 0}])]}),n})(),qI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const YI=["body"];function WI(n,a){}const UI=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],GI=["mat-expansion-panel-header","*","mat-action-row"];function ZI(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const $I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],JI=["mat-panel-title","mat-panel-description","*"],xv=new i.OlP("MAT_ACCORDION"),NE="225ms cubic-bezier(0.4,0.0,0.2,1)",VE={indicatorRotate:wi("indicatorRotate",[Nt("collapsed, void",Re({transform:"rotate(0deg)"})),Nt("expanded",Re({transform:"rotate(180deg)"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))]),bodyExpansion:wi("bodyExpansion",[Nt("collapsed, void",Re({height:"0px",visibility:"hidden"})),Nt("expanded",Re({height:"*",visibility:"visible"})),Ht("expanded <=> collapsed, void => collapsed",Ct(NE))])};let E1=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),QI=0;const zE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let D1=(()=>{class n extends jI{constructor(e,t,r,l,d,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new He.xQ,this._headerId="mat-expansion-panel-header-"+QI++,this._bodyAnimationDone=new He.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(Rh((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(_i(null),(0,jt.h)(()=>this.expanded&&!this._portal),(0,Zt.q)(1)).subscribe(()=>{this._portal=new vl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xv,12),i.Y36(i.sBO),i.Y36(Mp),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(Bn,8),i.Y36(zE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,E1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(YI,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:xv,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:GI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t(UI),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,WI,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[Qf],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[VE.bodyExpansion]},changeDetection:0}),n})();class XI{}const KI=Nl(XI);let H1=(()=>{class n extends KI{constructor(e,t,r,l,d,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=re.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,jt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):Mn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Si.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,jt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,jt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:vn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(D1,1),i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.Y36(zE,8),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:JI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t($I),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,ZI,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[VE.indicatorRotate]},changeDetection:0}),n})(),IA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),BA=(()=>{class n extends zI{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(_i(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new jc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,H1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:xv,useExisting:n}]),i.qOj]}),n})(),Sv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ht,qI,Tl]]}),n})();function eB(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let tB=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&i.YNc(0,eB,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[w.O5,bn,vr],pipes:[lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function iB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function nB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function rB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function aB(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA(),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let sB=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.statusChange=new i.vpe}changeStatus(){const e=Pi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(kL,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,iB,4,3,"span",1),i.YNc(2,nB,4,3,"span",1),i.YNc(3,rB,4,4,"span",1),i.YNc(4,aB,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},directives:[w.O5,vr,bn],pipes:[lt],styles:[""]}),n})(),oB=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),lB=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function cB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24),i.TgZ(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function dB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26),i.TgZ(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function uB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function hB(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function pB(n,a){1&n&&i._UZ(0,"th",31)}function fB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function mB(n,a){1&n&&i._UZ(0,"th",31)}function gB(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function _B(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,gB,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function bB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function AB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function yB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function MB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function wB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function CB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function vB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function TB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32),i.TgZ(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){return i.CHM(e),i.oxw().disabledRouting=!0})("mouseleave",function(){i.CHM(e);const r=i.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return i.CHM(e),i.oxw().refreshTable.emit()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function xB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function SB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function EB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function DB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function HB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function LB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function kB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function PB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function RB(n,a){1&n&&i._UZ(0,"tr",37)}const OB=function(n){return[n]};function IB(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,OB,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function BB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function NB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let VB=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new tn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=tf,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let d="";return e.resourceTags.forEach(function(s){d=d.concat(s.tagName)}),d}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new qo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>m1(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,cB,2,3,"th",4),i.YNc(5,dB,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,uB,3,3,"th",7),i.YNc(8,hB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,pB,1,0,"th",10),i.YNc(11,fB,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,mB,1,0,"th",10),i.YNc(14,_B,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,bB,3,3,"th",7),i.YNc(17,AB,2,1,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,yB,3,3,"th",7),i.YNc(20,MB,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,wB,3,3,"th",7),i.YNc(23,CB,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,vB,3,3,"th",7),i.YNc(26,TB,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,xB,3,3,"th",7),i.YNc(29,SB,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,EB,3,3,"th",7),i.YNc(32,DB,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,HB,3,3,"th",7),i.YNc(35,LB,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,kB,3,3,"th",7),i.YNc(38,PB,2,1,"td",11),i.BQk(),i.YNc(39,RB,1,0,"tr",21),i.YNc(40,IB,3,14,"tr",22),i.qZA(),i.qZA(),i.qZA(),i.YNc(41,BB,3,3,"perun-web-apps-alert",23),i.YNc(42,NB,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,vr,S1,tB,w.O5,bn,sB,$s,Qs,Js,Xs,kE,O,Nn],pipes:[lt,oB,lB],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})();function zB(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const FB=function(){return["name","description"]};function jB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,FB))("disableRouting",!0)}}function qB(n,a){if(1&n&&(i.YNc(0,zB,1,0,"mat-spinner",6),i.YNc(1,jB,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function YB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,qB,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let WB=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,YB,5,1,"mat-expansion-panel",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,VB],pipes:[lt,si],styles:[""]}),n})();function UB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilter(r)}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function GB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const ZB=function(){return["name","expirationAttribute","extend"]};function $B(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw(2).extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,ZB))}}function JB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function QB(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,$B,2,5,"div",9),i.YNc(6,JB,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function XB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const KB=function(){return["name"]};function e3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,KB))}}function t3(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,XB,4,5,"perun-web-apps-alert",10),i.YNc(6,e3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let n3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new tn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const d=r.find(s=>s.voId===l.id);d?this.membersService.getRichMemberWithAttributes(d.id).subscribe(s=>{const o=s.memberAttributes.find(c=>"membershipExpiration"===c.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(Mt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,UB,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,GB,1,0,"mat-spinner",3),i.YNc(7,QB,7,7,"div",4),i.YNc(8,t3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,pf,Ln,BE,Nn],pipes:[lt,si],styles:[""]}),n})(),r3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},directives:[hi],styles:[""]}),n})(),a3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA(),i.qZA(),i.TgZ(11,"div",3),i.TgZ(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[En,fn,ji,Pt,ev],pipes:[lt,si],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function s3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function o3(n,a){1&n&&i._UZ(0,"th",16)}function l3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function c3(n,a){1&n&&i._UZ(0,"tr",18)}function d3(n,a){1&n&&i._UZ(0,"tr",19)}function u3(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,o3,1,0,"th",12),i.YNc(12,l3,2,1,"td",13),i.BQk(),i.YNc(13,c3,1,0,"tr",14),i.YNc(14,d3,1,0,"tr",15),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let h3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new qo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,s3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,u3,15,13,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function p3(n,a){1&n&&i._UZ(0,"th",12)}function f3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13),i.TgZ(1,"mat-checkbox",14),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function m3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function g3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function _3(n,a){1&n&&i._UZ(0,"tr",17)}function b3(n,a){1&n&&i._UZ(0,"tr",18)}function A3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let FE=(()=>{class n{constructor(){this.values=[],this.selection=new tn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new qo(this.values),this.setDataSource()}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(os,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,p3,1,0,"th",4),i.YNc(5,f3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,m3,2,1,"th",7),i.YNc(8,g3,2,1,"td",8),i.BQk(),i.YNc(9,_3,1,0,"tr",9),i.YNc(10,b3,1,0,"tr",10),i.qZA(),i.qZA(),i.qZA(),i.YNc(11,A3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},directives:[os,Zs,ds,cs,us,ls,hs,tc,$s,Qs,Js,Xs,w.O5,Nn],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function y3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function M3(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let w3=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=d,this.altPasswordCtrl=new Cr(null,[Dn.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new tn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",e).subscribe(()=>{const t=Pi();t.width="600px",t.data={password:e},this.dialog.open(a3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const d=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*d);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=Pi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(h3,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,y3,1,4,"perun-web-apps-string-list",8),i.YNc(27,M3,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[mn,Hn,nn,_n,ss,Pt,Nn,w.O5,FE,Ln],pipes:[lt,si],styles:[""]}),n})();function C3(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let v3=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-list"),i.YNc(1,C3,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[mv,w.sg,DA,Gn,O,bn],pipes:[lt,si],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),T3=(()=>{class n extends An{buildStyles(e,{display:t}){const r=mS(e);return Object.assign(Object.assign({},r),{display:"none"===t?t:r.display})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const x3=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let S3=(()=>{class n extends rn{constructor(e,t,r,l,d){super(e,r,t,l),this._config=d,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=qE.get(l))&&void 0!==t?t:new Map,qE.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(T3),i.Y36(Qi),i.Y36(Ks))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),jE=(()=>{class n extends S3{constructor(){super(...arguments),this.inputs=x3}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const qE=new Map;let sN=(()=>{class n extends An{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const oN=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let lN=(()=>{class n extends rn{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=cN,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(qi),i.Y36(sN),i.Y36(Qi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const cN=new Map;let UE=(()=>{class n extends lN{constructor(){super(...arguments),this.inputs=oN}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),GE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv,Cl]]}),n})();function xN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let SN=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=d,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",d.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new Cr(null,[Dn.required]),this.newValueControl=new Cr(null,[Dn.required,Dn.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new uA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(cn),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"div"),i.TgZ(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA(),i.qZA(),i.TgZ(12,"div"),i.TgZ(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA(),i.qZA(),i.TgZ(19,"div",3),i.TgZ(20,"mat-form-field"),i.TgZ(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,xN,2,2,"mat-option",7),i.qZA(),i.qZA(),i.TgZ(27,"div"),i.TgZ(28,"mat-form-field",8),i.TgZ(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(33,"div",10),i.TgZ(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[En,jE,UE,mn,Hn,Wp,nn,Nr,_n,ss,ku,w.sg,La,ji,Pt],pipes:[lt,si],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),n})();function EN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function DN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function HN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"p"),i.TgZ(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit;return i.oxw().requestChangeQuota(l,r)}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function LN(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function kN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(4).getResAttributes(l.id)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,HN,15,16,"div",7),i.YNc(5,LN,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function PN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,kN,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function RN(n,a){if(1&n&&(i.YNc(0,EN,1,0,"mat-spinner",5),i.YNc(1,DN,4,5,"perun-web-apps-alert",6),i.YNc(2,PN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMembersResources(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,RN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let IN=(()=>{class n{constructor(e,t,r,l,d,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.dialog=s,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getResourceAttributes(d.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(d),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=Pi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(SN,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(Ji))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,ON,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,Pt],pipes:[lt,si],styles:[""]}),n})();function BN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function NN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function VN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw(4).deselectResource()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeSelectedResource(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"div",10),i.TgZ(5,"mat-checkbox",11),i.NdJ("change",function(){return i.CHM(e),i.oxw(4).setOptOut()}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function zN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,VN,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function FN(n,a){if(1&n&&(i.YNc(0,BN,1,0,"mat-spinner",5),i.YNc(1,NN,4,5,"perun-web-apps-alert",6),i.YNc(2,zN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function jN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw().deselectVo()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw().changeSelectedVo(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,FN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let qN=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.route=s,this.router=o,this.notificator=c,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t,this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"})}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,d.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(d.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const c=s.find(u=>"optOutMailingList"===u.friendlyName);c&&"true"!==(null==o?void 0:o.value)&&(this.optOuts.push({resource:d.id,member:t.id,attribute:c}),this.resources.push(d),this.selectedResource===d.name&&(this.getOptOutAttribute(d),this.changeSelectedResource(d))),this.loading=0!==l})})})})})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Hi),i.Y36(Mt),i.Y36(fi),i.Y36(ni),i.Y36(nr),i.Y36(rt),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,jN,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[pf,BA,w.sg,D1,H1,IA,E1,w.O5,Ln,Nn,tc],pipes:[lt,si],styles:[""]}),n})();function YN(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function WN(n,a){1&n&&i._UZ(0,"th",17)}function UN(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function GN(n,a){1&n&&i._UZ(0,"tr",19)}function ZN(n,a){1&n&&i._UZ(0,"tr",20)}function $N(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,WN,1,0,"th",13),i.YNc(3,UN,2,1,"td",14),i.BQk(),i.YNc(4,GN,1,0,"tr",15),i.YNc(5,ZN,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function JN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"div",5),i.TgZ(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,$N,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8),i.TgZ(10,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let VA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new qo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){var e,t;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let r=null!==(t=null===(e=this.data.attribute)||void 0===e?void 0:e.value)&&void 0!==t?t:[];void 0!==this.data.valueIndex?r.splice(this.data.valueIndex,1):r=r.filter(l=>!this.data.values.find(d=>d===l)),this.data.attribute.value=r}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,YN,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,JN,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,Zs,ds,cs,us,ls,hs,$s,Qs,Js,Xs,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function QN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function XN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeValue()}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function KN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item"),i.TgZ(1,"mat-form-field",7),i.TgZ(2,"mat-select",8),i.NdJ("valueChange",function(r){const d=i.CHM(e).index;return i.oxw(2).shells[d]=r}),i.YNc(3,XN,2,2,"mat-option",9),i.qZA(),i.qZA(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).removeShell(l)}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function eV(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,KN,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let tV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=Pi();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{var t,r;this.prefShellsAttribute=e,this.shells=null!==(r=null===(t=this.prefShellsAttribute)||void 0===t?void 0:t.value)&&void 0!==r?r:[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,QN,4,5,"perun-web-apps-alert",3),i.YNc(13,eV,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Nn,Pt,w.O5,mv,w.sg,DA,mn,ku,La],pipes:[lt,si],styles:[""]}),n})();function iV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function nV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field",6),i.TgZ(3,"label",6),i._UZ(4,"input",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(5,"div",8),i.TgZ(6,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let rV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new Cr(null,Dn.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{var t;const r=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:[];r.push(this.inputControl.value),e.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,iV,1,0,"mat-spinner",2),i.YNc(6,nV,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[En,w.O5,Ln,fn,mn,Hn,nn,Nr,_n,ss,ji,Pt],pipes:[lt,si],styles:[""]}),n})();function aV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.TgZ(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().addGroupName(l)}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index;return i.oxw().removeGroupName(l,d)}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let sV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(d=>this.alertText=d),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new tn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{var r;const l=null!==(r=null==t?void 0:t.value)&&void 0!==r?r:[];this.groupNames.set(e,l),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=Pi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(rV,r).afterClosed().subscribe(d=>{d&&this.getAttribute(e)})}removeGroupName(e,t){const r=Pi();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,r).afterClosed().subscribe(d=>{d&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,aV,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},directives:[w.sg,Pt,FE],pipes:[lt,si],styles:[""]}),n})();function oV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function lV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function cV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let dV=(()=>{class n{constructor(e,t,r,l,d){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=d,d.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),d.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),d.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new Cr("",[Dn.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,e,"samba-du",this.sambaControl.value).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Hi),i.Y36(Tr),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,oV,4,5,"perun-web-apps-alert",1),i.YNc(5,lV,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2),i.TgZ(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA(),i.qZA(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,cV,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},directives:[w.O5,Nn,mn,Hn,nn,_n,ss,Pt,vr,bn],pipes:[lt,si],styles:[""]}),n})();function uV(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Yo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new Cr(null,[Dn.required,Dn.pattern(Yo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){var a,e;const t=null!==(e=null===(a=this.data.attribute)||void 0===a?void 0:a.value)&&void 0!==e?e:[],r=this.sshControl.value;t.includes(r)||t.push(r),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}Yo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Yo.sshKeyPattern="^("+Yo.allowedSshKeys.join("|")+").+$",Yo.\u0275fac=function(a){return new(a||Yo)(i.Y36(Fi),i.Y36(Sn),i.Y36(ni))},Yo.\u0275cmp=i.Xpm({type:Yo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,uV,4,5,"mat-error",4),i.qZA(),i.qZA(),i.TgZ(11,"div",5),i.TgZ(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[En,fn,mn,Hn,hA,nn,Nr,_n,ss,w.O5,Fl,ji,Pt],pipes:[lt,si],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let hV=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Fi),i.Y36(Sn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"textarea",1),i._uU(2),i.qZA(),i.qZA(),i.TgZ(3,"mat-dialog-actions"),i.TgZ(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},directives:[Hn,hA,ji,Pt],pipes:[lt,si],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function pV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA(),i.qZA(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!1)}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function fV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",9),i.TgZ(4,"mat-icon"),i._uU(5," file_copy "),i.qZA(),i.qZA(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!0)}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let mV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new tn(!1,[]),this.selectionAdmin=new tn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(d=>this.alertText=d),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=Pi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Yo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=Pi();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,r).afterClosed().subscribe(d=>{d&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=Pi();t.width="600px",t.data={value:e},this.dialog.open(hV,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ni),i.Y36(Ji),i.Y36(li))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,pV,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,fV,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},directives:[Pt,mv,w.sg,DA,Gn,ev,vr,bn],pipes:[lt,si],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})(),gV=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function bV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function AV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function yV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function MV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function wV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.TgZ(1,"div",24),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function CV(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function vV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23),i.TgZ(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit;return i.oxw().onValueChange(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function TV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function xV(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function SV(n,a){1&n&&i._UZ(0,"tr",27)}function EV(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function DV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function HV(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let LV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new tn(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!Bu(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new qo(function d2(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ys),i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7),i.Gf(vv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,_V,2,3,"th",4),i.YNc(5,bV,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,AV,3,3,"th",7),i.YNc(8,yV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,MV,3,3,"th",7),i.YNc(11,wV,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,CV,3,3,"th",12),i.YNc(14,vV,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,TV,3,3,"th",7),i.YNc(17,xV,2,1,"td",10),i.BQk(),i.YNc(18,SV,1,0,"tr",14),i.YNc(19,EV,2,5,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,DV,3,3,"perun-web-apps-alert",16),i.YNc(21,HV,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,vr,vv,$s,Qs,Js,Xs,w.O5,Nn],pipes:[_v,gV,lt],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),n})();function kV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function PV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function RV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function OV(n,a){if(1&n&&(i.YNc(0,PV,1,0,"mat-spinner",3),i.YNc(1,RV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function IV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function BV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function NV(n,a){if(1&n&&(i.YNc(0,IV,1,0,"mat-spinner",3),i.YNc(1,BV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function VV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(2).getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA(),i.YNc(6,NV,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function zV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion"),i.TgZ(1,"mat-expansion-panel",6),i.NdJ("opened",function(){return i.CHM(e),i.oxw().getUserData()}),i.TgZ(2,"mat-expansion-panel-header"),i.TgZ(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA(),i.YNc(7,OV,2,2,"ng-template",7),i.qZA(),i.YNc(8,VV,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let FV=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new uA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(Mt),i.Y36(ni),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,kV,1,0,"mat-spinner",3),i.YNc(9,zV,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},directives:[pf,w.O5,Ln,BA,D1,H1,IA,E1,LV,w.sg],pipes:[lt,si],styles:[""]}),n})(),jV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})(),Ev=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[$l,w.ez]]}),n})(),GV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GV,ht],ht]}),n})(),uz=(()=>{class n{constructor(){this.changes=new He.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const fz={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Zr],useFactory:function pz(n){return()=>n.scrollStrategies.reposition()}};let Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[uz,fz],imports:[[w.ez,ns,zc,w0,Tl,ht],xa]}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,dd,ns,C1,$l,b1,Ru]]}),n})(),Rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ht],ht]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[cm,ht],cm,ht]}),n})(),vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Cl]]}),n})(),Ov=(()=>{class n{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Oz={provide:Ov,deps:[[new i.FiY,new i.tp0,Ov]],useFactory:function Rz(n){return n||new Ov}};let eD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Oz,Qc],imports:[[ht,w.ez,Tl,ns,vz,$l,ii],ht]}),n})(),Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii],Rv,pv,Sv,ns,XE,C1,$l,wA,pp,b1,Ws,_1,Qa,Jp,dd,eD,Pv,No,hv,gv,h1,tv,OA,W,Ru,hd,ii]}),n})(),Bz=(()=>{class n extends sm{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Nz={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let tD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:Bz},{provide:lu,useValue:Nz}],imports:[[w.ez,C1,wA,Jp,UR,OR,Ap,Os,OA,W,b1,Ev,$l,h1,ns,Ru,Ws,dd,_1,ii,Jx,sS,tz,Pv,pS,du,hd,Mz,Qa,pp,Yx,Iz]]}),n})();function Vz(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function zz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function Fz(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function jz(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function qz(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function Yz(n,a){1&n&&i._UZ(0,"th",16)}function Wz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().resetPassword(l.friendlyNameParameter)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function Uz(n,a){1&n&&i._UZ(0,"th",16)}function Gz(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().changePassword(l)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function Zz(n,a){1&n&&i._UZ(0,"tr",22)}function $z(n,a){1&n&&i._UZ(0,"tr",23)}let Jz=(()=>{class n{constructor(e,t,r,l,d,s){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=d,this.otherApplicationService=s,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(e=>{const t=this.nameSpaces.map(d=>{const s=d.split(":");return s[s.length-1]});this.logins=e.filter(d=>t.includes(d.friendlyNameParameter)),this.dataSource=new qo(e);const l=this.route.snapshot.queryParamMap.get("namespace");if(l){const d=this.logins.find(s=>s.friendlyNameParameter===l);d&&this.changePassword(d)}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=Pi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(pL,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ni),i.Y36(zt),i.Y36(Ji),i.Y36(nr),i.Y36(rt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Vz,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"table",5),i.ynx(9,6),i.YNc(10,zz,4,5,"th",7),i.YNc(11,Fz,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,jz,4,5,"th",7),i.YNc(14,qz,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,Yz,1,0,"th",7),i.YNc(17,Wz,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,Uz,1,0,"th",7),i.YNc(20,Gz,5,6,"td",12),i.BQk(),i.YNc(21,Zz,1,0,"tr",14),i.YNc(22,$z,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},directives:[w.O5,Nn,Zs,ps,ds,cs,us,ls,hs,Pt,$s,Qs,Js,Xs],pipes:[lt,si],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function pF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function fF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function mF(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function gF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let bF=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){var t,r,l;const d=null!==(r=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0])&&void 0!==r?r:null===(l=e.target)||void 0===l?void 0:l.files[0],o=new FileReader;d.type.match(/image-*/)?(o.onload=this._handleReaderLoaded.bind(this),this.imageType=d.type,o.readAsDataURL(d)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{d(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},d=s=>new Promise((o,c)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const V=h.getContext("2d");V.drawImage(u,0,0,f,b);const ee=V.canvas.toDataURL();o(ee)},u.onerror=h=>c(h)});l()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function c(f,b,V,ee){ee.beginPath(),ee.rect(20*f,20*b,20,20),ee.fillStyle="rgb("+V.join(",")+")",ee.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),V=function u(){const f=[];for(let b=0;b<3;b++){const V=Math.floor(256*Math.random()),ee=Math.max(120,V),he=Math.min(200,ee);f.push(he)}return f}();for(let ee=0;ee({disableToggleValue:!1})});let TF=0;const xF={provide:Zn,useExisting:(0,i.Gpc)(()=>rD),multi:!0};class SF{constructor(a,e){this.source=a,this.checked=e}}const EF=Nl(Bo(na(ts(class{constructor(n){this._elementRef=n}}))));let rD=(()=>{class n extends EF{constructor(e,t,r,l,d,s){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=d,this._onChange=o=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++TF,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=d.color||"accent",this._noopAnimations="NoopAnimations"===s}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new SF(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36(vF),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(i.Gf(AF,5),i.Gf(yF,5),i.Gf(MF,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._thumbEl=r.first),i.iGM(r=i.CRH())&&(t._thumbBarEl=r.first),i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i._Bn([xF]),i.qOj],ngContentSelectors:CF,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2,3),i.TgZ(4,"input",4,5),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(12);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(2),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,wF,t._noopAnimations?0:150))}},directives:[Gn,Oh],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),aD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),LF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[aD,ii,ht,Wd],aD,ht]}),n})();const kF=["toggle"];function PF(n,a){if(1&n&&(i.TgZ(0,"div"),i._UZ(1,"img",12),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("src",e.imageSrc,i.LSH)}}function RF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"h1",2),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.YNc(9,PF,2,1,"div",9),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onAddImg()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",11),i.NdJ("click",function(){return i.CHM(e),i.oxw().onDeleteImg()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,6,i.lcZ(4,8,"AUTHENTICATION.TITLE"))),i.xp6(4),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"AUTHENTICATION.ANTI_PHISHING_INFO"))),i.xp6(3),i.Q6J("ngIf",e.imageSrc&&e.imageSrc.length),i.xp6(2),i.hij(" ",i.lcZ(12,14,i.lcZ(13,16,"AUTHENTICATION.NEW_IMG"))," "),i.xp6(3),i.Q6J("disabled",!e.imgAtt||!e.imgAtt.value),i.xp6(1),i.hij(" ",i.lcZ(16,18,i.lcZ(17,20,"AUTHENTICATION.DELETE_IMG"))," ")}}function OF(n,a){1&n&&i._UZ(0,"mat-spinner",13)}let IF=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=d,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.mfaAvailable=!1,this.mfaApiUrl="",this.loadingMfa=!1,this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(c=>this.removeDialogDescription=c),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(c=>this.saveImgSuccess=c),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(c=>this.removeImgSuccess=c)}ngAfterViewInit(){this.toggle.change.subscribe(e=>{this.reAuthenticate(e.checked)})}ngOnInit(){this.loadingMfa=!0,this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.mfaApiUrl=this.store.get("mfa","api_url"),fetch(this.mfaApiUrl+"mfaAvailable",{method:"GET",headers:{Authorization:"Bearer "+this.oauthService.getIdToken()}}).then(e=>e.text()).then(e=>{this.mfaAvailable="true"===e,this.mfaAvailable?this.loadMfa():this.loadingMfa=!1}).catch(e=>{console.error(e),this.loadingMfa=!1}),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}onAddImg(){const e=Pi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(bF,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}reAuthenticate(e){sessionStorage.setItem("enforce_mfa",e.toString()),sessionStorage.setItem("mfa_route","/profile/settings/auth"),localStorage.removeItem("refresh_token"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}enableMfa(e){const t=this.oauthService.getIdToken(),l=`${this.mfaApiUrl}mfaEnforced`,d=`value=${String(e)}`;return fetch(l,{method:"PUT",body:d,headers:{Authorization:`Bearer ${t}`}})}onDeleteImg(){const e=Pi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(VA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");this.enableMfa("true"===t).then(r=>{r.ok&&"true"===t&&this.toggle.toggle(),this.loadingMfa=!1}).catch(r=>{console.error(r),this.loadingMfa=!1})}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(r=>{r.value&&this.toggle.toggle(),this.loadingMfa=!1},r=>{console.error(r),this.loadingMfa=!1})}sessionStorage.getItem("mfa_route")&&(sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ji),i.Y36(ni),i.Y36(zt),i.Y36(li),i.Y36(fp.Ct),i.Y36(ka),i.Y36(Tr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(kF,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:19,vars:23,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["matTooltipPosition","right",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"disabled"],["toggle",""],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,RF,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"span",3),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.TgZ(9,"mat-slide-toggle",4,5),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i._UZ(14,"br"),i.TgZ(15,"button",6),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.qZA(),i.YNc(18,OF,1,0,"mat-spinner",7)),2&e&&(i.Q6J("hidden",t.loadingMfa||t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,9,i.lcZ(5,11,"AUTHENTICATION.MFA"))),i.xp6(3),i.Q6J("matTooltip",i.lcZ(7,13,i.lcZ(8,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(i.lcZ(12,17,i.lcZ(13,19,"AUTHENTICATION.MFA_TOGGLE"))),i.xp6(5),i.hij(" ",i.lcZ(17,21,"AUTHENTICATION.MFA_INFO")," "),i.xp6(2),i.Q6J("ngIf",t.loadingMfa||t.loadingImg))},directives:[w.O5,Pt,vr,rD,Ln],pipes:[lt,si],styles:[""]}),n})(),BF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ns,$l,Os,tD,Ap,Ws,dd,_1,Ev]]}),n})(),NF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ka),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[Pt,bn],pipes:[lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function VF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let zF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new Cr(null,[Dn.required]),this.passwordCtrl=new Cr(null,[Dn.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Wi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,VF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[w.O5,Nn,mn,rs,Hn,nn,Nr,_n,ss,Fl,Pt,bn],pipes:[lt],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),FF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})();function jF(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function qF(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function YF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,qF,2,1,"li",7),i.qZA(),i.qZA(),i.TgZ(13,"div",0),i.TgZ(14,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().rejectConsent()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().grantConsent()}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let WF=(()=>{class n{constructor(e,t,r,l,d,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=d,this.router=s,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Tr),i.Y36(li),i.Y36(Ei),i.Y36(nr),i.Y36(dA),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,jF,1,0,"mat-spinner",2),i.YNc(3,YF,22,22,"div",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,Ln,w.sg,Pt],pipes:[lt,si],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function UF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function GF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function ZF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let $F=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(i.YNc(0,UF,7,5,"span",0),i.YNc(1,GF,7,5,"span",0),i.YNc(2,ZF,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},directives:[w.O5,bn],pipes:[lt,si],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function JF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function QF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function XF(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function KF(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function ej(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function tj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function ij(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function nj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function rj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function aj(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function sj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().rejectConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function oj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().grantConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function lj(n,a){if(1&n&&(i.TgZ(0,"td",20),i.TgZ(1,"div",22),i.TgZ(2,"div",23),i.YNc(3,ij,4,5,"div",24),i.YNc(4,nj,4,5,"div",24),i.YNc(5,rj,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,aj,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,sj,4,5,"button",27),i.YNc(10,oj,4,5,"button",28),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function cj(n,a){1&n&&i._UZ(0,"tr",31)}function dj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.expandedConsent=d.expandedConsent===l?null:l}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function uj(n,a){1&n&&i._UZ(0,"tr",33)}function hj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function pj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const fj=function(){return["expandedDetail"]};let mj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new tn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=tf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new qo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){rf(nf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>g1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>m1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(os,7),i.Gf(ps,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,JF,2,2,"th",4),i.YNc(5,QF,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,XF,4,5,"th",7),i.YNc(8,KF,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,ej,4,5,"th",7),i.YNc(11,tj,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,lj,11,8,"td",8),i.BQk(),i.YNc(14,cj,1,0,"tr",11),i.YNc(15,dj,1,2,"tr",12),i.YNc(16,uj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,hj,4,5,"perun-web-apps-alert",14),i.YNc(18,pj,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,fj)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[os,Zs,ps,ds,cs,us,tc,ls,hs,S1,$F,w.O5,w.sg,Pt,$s,Qs,Js,Xs,Nn],pipes:[lt,si],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[wi("detailExpand",[Nt("collapsed",Re({height:"0px",minHeight:"0"})),Nt("expanded",Re({height:"*"})),Ht("expanded <=> collapsed",Ct("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const sD=function(){return["status","name"]};function gj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterUnsigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,sD))}}function _j(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterSigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,sD))}}function bj(n,a){1&n&&i._UZ(0,"mat-spinner",9)}function yj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"button",3),i.NdJ("click",function(){const l=i.CHM(e).ngIf;return i.oxw().openPwdReset(!l.exists)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.ngIf;i.xp6(2),i.hij(" ",i.lcZ(3,1,i.lcZ(4,3,e.exists?"LOCAL_ACCOUNT.CHANGE_PWD":"LOCAL_ACCOUNT.ACTIVATE"))," ")}}const Mj=function(n){return{exists:n}},wj=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:NF},{path:"service-access",component:zF},{path:"profile",component:jV,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:MO,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:KO,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:II,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:WB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:n3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:FV,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:FF,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=d,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{var t;const r=null!==(t=this.unsignedConsents.find(d=>d.id===e))&&void 0!==t?t:this.signedConsents.find(d=>d.id===e);this.moveConsent(r);const l=this.translate.instant("GRANTED"===r.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");r.status="REVOKED",this.notificator.showSuccess(l+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{var t;const r=null!==(t=this.unsignedConsents.find(l=>l.id===e))&&void 0!==t?t:this.signedConsents.find(l=>l.id===e);this.moveConsent(r),r.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(Tr),i.Y36(li),i.Y36(zt),i.Y36(Ei))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,gj,9,15,"div",2),i.YNc(6,_j,9,15,"div",2),i.YNc(7,bj,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[w.O5,pf,mj,Ln],pipes:[lt,si],styles:[""]}),n})(),data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:WF,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:r3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:v3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:w3,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:IF,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:IN,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r){this.userService=e,this.store=t,this.appUrlService=r,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.store.getPerunPrincipal().userId,this.namespace)}openPwdReset(e){let t=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);t+="&"+(e?"activation":"reset")+"=true",window.open(t,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Hi),i.Y36(zt),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,yj,5,5,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Mj,i.lcZ(9,11,t.loginExists$))))},directives:[w.O5,Pt],pipes:[lt,si,w.Ov],styles:[""]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:qN,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:tV,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:sV,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:dV,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:mV,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:Jz,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Cj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Os.forRoot(wj,{preloadingStrategy:kt,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),n})();class vj{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let Tj=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function xj(n){return[oa(tinycolor(n).lighten(52),"50"),oa(tinycolor(n).lighten(37),"100"),oa(tinycolor(n).lighten(26),"200"),oa(tinycolor(n).lighten(12),"300"),oa(tinycolor(n).lighten(6),"400"),oa(tinycolor(n),"500"),oa(tinycolor(n).darken(6),"600"),oa(tinycolor(n).darken(12),"700"),oa(tinycolor(n).darken(18),"800"),oa(tinycolor(n).darken(24),"900"),oa(tinycolor(n).lighten(50).saturate(30),"A100"),oa(tinycolor(n).lighten(30).saturate(30),"A200"),oa(tinycolor(n).lighten(10).saturate(15),"A400"),oa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new M.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt),i.LFG(Wi),i.LFG(it),i.LFG(Dt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let Sj=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(VC),i.LFG(Tj),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[nv]]}),n})(),J4=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0},{provide:cf,useValue:!0}]:[{provide:Ks,useValue:Object.assign(Object.assign({},rv),e)},{provide:av,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(cf),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[GE,IS,fD],GE,IS,fD]}),n})();const Q4=new i.OlP("perun-api-service"),X4={provide:M.TP,useExisting:(0,i.Gpc)(()=>Zx),multi:!0};function K4(n){return new vj(n,"./assets/i18n/",".json")}function eq(n){const a={basePath:n.get("api_url")};return new Xe(a)}const tq=n=>()=>n.initialize();let iq=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Gx),i.LFG(li))},n.\u0275mod=i.oAB({type:n,bootstrap:[QP]}),n.\u0275inj=i.cJS({providers:[Gx,{provide:i.ip1,useFactory:tq,multi:!0,deps:[Sj]},{provide:Xe,useFactory:eq,deps:[zt]},uA,Zx,X4,{provide:Q4,useClass:T2},it],imports:[[ue,I_,M.JF,Ap.forRoot({loader:{provide:gu,useFactory:K4,deps:[M.eN]}}),Cj,$l,hv,gv,Os,ns,J4,tv,tD,Ev,Sv,Ws,hd,pp,wA,_1,dd,C1,W,b1,OA,Rv,sS,Jx,pI,ii,Ru,LF,pS,Jp,BF,Yx,h1,fp.zr.forRoot()]]}),n})();(0,i.G48)(),Fr().bootstrapModule(iq).catch(n=>console.error(n))},1302:function(Y,U,x){var w;!function(i,E){var T={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function T(ie,ce,ne,de,me){for(var Ne,ze,Je,vt,Rt,Qe,Yi,St,yt,fe,Ae,Ce,Me;me>=64;){for(Ne=ce[0],ze=ce[1],Je=ce[2],vt=ce[3],Rt=ce[4],Qe=ce[5],Yi=ce[6],St=ce[7],fe=0;fe<16;fe++)ie[fe]=(255&ne[Ae=de+4*fe])<<24|(255&ne[Ae+1])<<16|(255&ne[Ae+2])<<8|255&ne[Ae+3];for(fe=16;fe<64;fe++)ie[fe]=((Ce=((yt=ie[fe-2])>>>17|yt<<15)^(yt>>>19|yt<<13)^yt>>>10)+ie[fe-7]|0)+((Me=((yt=ie[fe-15])>>>7|yt<<25)^(yt>>>18|yt<<14)^yt>>>3)+ie[fe-16]|0);for(fe=0;fe<64;fe++)Ce=(((Rt>>>6|Rt<<26)^(Rt>>>11|Rt<<21)^(Rt>>>25|Rt<<7))+(Rt&Qe^~Rt&Yi)|0)+(St+(E[fe]+ie[fe]|0)|0)|0,Me=((Ne>>>2|Ne<<30)^(Ne>>>13|Ne<<19)^(Ne>>>22|Ne<<10))+(Ne&ze^Ne&Je^ze&Je)|0,St=Yi,Yi=Qe,Qe=Rt,Rt=vt+Ce|0,vt=Je,Je=ze,ze=Ne,Ne=Ce+Me|0;ce[0]+=Ne,ce[1]+=ze,ce[2]+=Je,ce[3]+=vt,ce[4]+=Rt,ce[5]+=Qe,ce[6]+=Yi,ce[7]+=St,de+=64,me-=64}return de}var S=function(){function ie(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ie.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ie.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(T(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=T(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},ie.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ne=ne<<3,ze=ne%64<56?64:128;this.buffer[de]=128;for(var Je=de+1;Je>>24&255,this.buffer[ze-7]=me>>>16&255,this.buffer[ze-6]=me>>>8&255,this.buffer[ze-5]=me>>>0&255,this.buffer[ze-4]=Ne>>>24&255,this.buffer[ze-3]=Ne>>>16&255,this.buffer[ze-2]=Ne>>>8&255,this.buffer[ze-1]=Ne>>>0&255,T(this.temp,this.state,this.buffer,0,ze),this.finished=!0}for(Je=0;Je<8;Je++)ce[4*Je+0]=this.state[Je]>>>24&255,ce[4*Je+1]=this.state[Je]>>>16&255,ce[4*Je+2]=this.state[Je]>>>8&255,ce[4*Je+3]=this.state[Je]>>>0&255;return this},ie.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},ie.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(ie),ne&&ce.update(ne),ce.update(de),ce.finish(ie),de[0]++}i.HMAC=L,i.hash=R,i.default=R,i.hmac=N;var q=new Uint8Array(i.digestLength);i.hkdf=function $(ie,ce,ne,de){void 0===ce&&(ce=q),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ne=N(ce,ie),ze=new L(Ne),Je=new Uint8Array(ze.digestLength),vt=Je.length,Rt=new Uint8Array(de),Qe=0;Qe>>24&255,ze[1]=Yi>>>16&255,ze[2]=Yi>>>8&255,ze[3]=Yi>>>0&255,me.reset(),me.update(ce),me.update(ze),me.finish(vt);for(var St=0;St=$.status}function L(q){try{q.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),q.dispatchEvent($)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,N=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),j=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!N?function(q,$,X){var ie=R.URL||R.webkitURL,ce=document.createElement("a");ce.download=$=$||q.name||"download",ce.rel="noopener","string"==typeof q?(ce.href=q,ce.origin===location.origin?L(ce):S(ce.href)?T(q,$,X):L(ce,ce.target="_blank")):(ce.href=ie.createObjectURL(q),setTimeout(function(){ie.revokeObjectURL(ce.href)},4e4),setTimeout(function(){L(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(q,$,X){if($=$||q.name||"download","string"!=typeof q)navigator.msSaveOrOpenBlob(function E(q,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(q.type)?new Blob(["\ufeff",q],{type:q.type}):q}(q,X),$);else if(S(q))T(q,$,X);else{var ie=document.createElement("a");ie.href=q,ie.target="_blank",setTimeout(function(){L(ie)})}}:function(q,$,X,ie){if((ie=ie||open("","_blank"))&&(ie.document.title=ie.document.body.innerText="downloading..."),"string"==typeof q)return T(q,$,X);var ce="application/octet-stream"===q.type,ne=/constructor/i.test(R.HTMLElement)||R.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||N)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Je=me.result;Je=de?Je:Je.replace(/^data:[^;]*;/,"data:attachment/file;"),ie?ie.location.href=Je:location=Je,ie=null},me.readAsDataURL(q)}else{var Ne=R.URL||R.webkitURL,ze=Ne.createObjectURL(q);ie?ie.location=ze:location.href=ze,ie=null,setTimeout(function(){Ne.revokeObjectURL(ze)},4e4)}});R.saveAs=j.saveAs=j,Y.exports=j}.apply(U,[]))&&(Y.exports=i)},1158:(Y,U,x)=>{(Y.exports=x(7867)).tz.load(x(1128))},7867:function(Y,U,x){var w,i,E;!function(T,S){"use strict";Y.exports?Y.exports=S(x(5439)):(i=[x(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(U,i):w)&&(Y.exports=E))}(0,function(T){"use strict";void 0===T.version&&T.default&&(T=T.default);var $,L={},R={},N={},j={},q={};(!T||"string"!=typeof T.version)&&pi("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var X=T.version.split("."),ie=+X[0],ce=+X[1];function ne(ue){return ue>96?ue-87:ue>64?ue-29:ue-48}function de(ue){var Le=0,_e=ue.split("."),We=_e[0],Ue=_e[1]||"",it=1,Te=0,ae=1;for(45===ue.charCodeAt(0)&&(Le=1,ae=-1);Le= 2.6.0. You are using Moment.js "+T.version+". See momentjs.com"),vt.prototype={_set:function(ue){this.name=ue.name,this.abbrs=ue.abbrs,this.untils=ue.untils,this.offsets=ue.offsets,this.population=ue.population},_index:function(ue){var We,Le=+ue,_e=this.untils;for(We=0;We<_e.length;We++)if(Le<_e[We])return We},countries:function(){var ue=this.name;return Object.keys(N).filter(function(Le){return-1!==N[Le].zones.indexOf(ue)})},parse:function(ue){var it,Qt,Te,ae,Le=+ue,_e=this.offsets,We=this.untils,Ue=We.length-1;for(ae=0;aeTe&&Ut.moveInvalidForward&&(it=Te),Le3){var Le=j[ge(ue)];if(Le)return Le;pi("Moment Timezone found "+ue+" from the Intl api, but did not have that data loaded.")}}catch(oe){}var Qt,Te,ae,_e=function yt(){var We,Ue,it,ue=(new Date).getFullYear()-2,Le=new Qe(new Date(ue,0,1)),_e=[Le];for(it=1;it<48;it++)(Ue=new Qe(new Date(ue,it,1))).offset!==Le.offset&&(We=St(Le,Ue),_e.push(We),_e.push(new Qe(new Date(We.at+6e4)))),Le=Ue;for(it=0;it<4;it++)_e.push(new Qe(new Date(ue+it,0,1))),_e.push(new Qe(new Date(ue+it,6,1)));return _e}(),We=_e.length,Ue=function Ce(ue){var Ue,it,Qt,Le=ue.length,_e={},We=[];for(Ue=0;Ue0?it[0].zone.name:void 0}()),$},Ut.names=function Ci(){var ue,Le=[];for(ue in j)j.hasOwnProperty(ue)&&(L[ue]||L[R[ue]])&&j[ue]&&Le.push(j[ue]);return Le.sort()},Ut.Zone=vt,Ut.unpack=Je,Ut.unpackBase60=de,Ut.needsOffset=sn,Ut.moveInvalidForward=!0,Ut.moveAmbiguousForward=!1,Ut.countries=function st(){return Object.keys(N)},Ut.zonesForCountry=function Ke(ue,Le){if(!(ue=function yi(ue){return ue=ue.toUpperCase(),N[ue]||null}(ue)))return null;var _e=ue.zones.sort();return Le?_e.map(function(We){return{name:We,offset:Lt(We).utcOffset(new Date)}}):_e};var on=T.fn;function la(ue){return function(){return this._z?this._z.abbr(this):ue.call(this)}}function ca(ue){return function(){return this._z=null,ue.apply(this,arguments)}}T.tz=Ut,T.defaultZone=null,T.updateOffset=function(ue,Le){var We,_e=T.defaultZone;if(void 0===ue._z&&(_e&&sn(ue)&&!ue._isUTC&&(ue._d=T.utc(ue._a)._d,ue.utc().add(_e.parse(ue),"minutes")),ue._z=_e),ue._z)if(We=ue._z.utcOffset(ue),Math.abs(We)<16&&(We/=60),void 0!==ue.utcOffset){var Ue=ue._z;ue.utcOffset(-We,Le),ue._z=Ue}else ue.zone(We,Le)},on.tz=function(ue,Le){if(ue){if("string"!=typeof ue)throw new Error("Time zone name must be a string, got "+ue+" ["+typeof ue+"]");return this._z=Lt(ue),this._z?T.updateOffset(this,Le):pi("Moment Timezone has no data for "+ue+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},on.zoneName=la(on.zoneName),on.zoneAbbr=la(on.zoneAbbr),on.utc=ca(on.utc),on.local=ca(on.local),on.utcOffset=function Fr(ue){return function(){return arguments.length>0&&(this._z=null),ue.apply(this,arguments)}}(on.utcOffset),T.tz.setDefault=function(ue){return(ie<2||2===ie&&ce<9)&&pi("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+T.version+"."),T.defaultZone=ue?Lt(ue):null,T};var Pn=T.momentProperties;return"[object Array]"===Object.prototype.toString.call(Pn)?(Pn.push("_z"),Pn.push("_a")):Pn&&(Pn._z=null),T})},7088:function(Y,U,x){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},T=function(R){return function(N,j,q,$){var X=i(N),ie=E[R][i(N)];return 2===X&&(ie=ie[j?0:1]),ie.replace(/%d/i,N)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(R){return"\u0645"===R},meridiem:function(R,N,j){return R<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:T("s"),ss:T("s"),m:T("m"),mm:T("m"),h:T("h"),hh:T("h"),d:T("d"),dd:T("d"),M:T("M"),MM:T("M"),y:T("y"),yy:T("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(Y,U,x){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(N){return 0===N?0:1===N?1:2===N?2:N%100>=3&&N%100<=10?3:N%100>=11?4:5},T={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(N){return function(j,q,$,X){var ie=E(j),ce=T[N][E(j)];return 2===ie&&(ce=ce[q?0:1]),ce.replace(/%d/i,j)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(N){return"\u0645"===N},meridiem:function(N,j,q){return N<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(N){return N.replace(/\u060c/g,",")},postformat:function(N){return N.replace(/\d/g,function(j){return i[j]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(j){return function(q,$,X,ie){var ce=T(q),ne=S[j][T(q)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,q)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(j){return"\u0645"===j},meridiem:function(j,q,$){return j<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(j){return j.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return E[q]}).replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(T){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(T)},meridiem:function(T,S,L){return T<4?"gec\u0259":T<12?"s\u0259h\u0259r":T<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(T){if(0===T)return T+"-\u0131nc\u0131";var S=T%10;return T+(i[S]||i[T%100-S]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,U,x){!function(w){"use strict";function E(S,L,R){return"m"===R?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,L){var R=S.split("_");return L%10==1&&L%100!=11?R[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?R[1]:R[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[R],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,L,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,U,x){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L?S<4?S:S+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,U,x){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,U,x){!function(w){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function L(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function T(ne){return ne>9?T(ne%10):ne}var R=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],N=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ie=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ie,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ie,monthsRegex:N,monthsShortRegex:N,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(T(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,U,x){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),T=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function L(j){return j>1&&j<5&&1!=~~(j/10)}function R(j,q,$,X){var ie=j+" ";switch($){case"s":return q||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return q||X?ie+(L(j)?"sekundy":"sekund"):ie+"sekundami";case"m":return q?"minuta":X?"minutu":"minutou";case"mm":return q||X?ie+(L(j)?"minuty":"minut"):ie+"minutami";case"h":return q?"hodina":X?"hodinu":"hodinou";case"hh":return q||X?ie+(L(j)?"hodiny":"hodin"):ie+"hodinami";case"d":return q||X?"den":"dnem";case"dd":return q||X?ie+(L(j)?"dny":"dn\xed"):ie+"dny";case"M":return q||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return q||X?ie+(L(j)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ie+"m\u011bs\xedci";case"y":return q||X?"rok":"rokem";case"yy":return q||X?ie+(L(j)?"roky":"let"):ie+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,U,x){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(Y,U,x){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,U,x){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,L,R){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,U,x){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(T,S){return T?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[T.month()]:this._monthsNominativeEl[T.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(T,S,L){return T>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(T){return"\u03bc"===(T+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(T,S){var L=this._calendarEl[T],R=S&&S.hours();return function i(T){return"undefined"!=typeof Function&&T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}(L)&&(L=L.apply(S)),L.replace("{}",R%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,T,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[T+"sekundi",T+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[T+" minuti",T+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[T+" tunni",T+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[T+" kuu",T+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[T+" aasta",T+" aastat"]};return S?N[L][2]?N[L][2]:N[L][1]:R?N[L][0]:N[L][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,U,x){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(Y,U,x){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,L,R){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,U,x){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function T(R,N,j,q){var $="";switch(j){case"s":return q?"muutaman sekunnin":"muutama sekunti";case"ss":$=q?"sekunnin":"sekuntia";break;case"m":return q?"minuutin":"minuutti";case"mm":$=q?"minuutin":"minuuttia";break;case"h":return q?"tunnin":"tunti";case"hh":$=q?"tunnin":"tuntia";break;case"d":return q?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=q?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return q?"kuukauden":"kuukausi";case"MM":$=q?"kuukauden":"kuukautta";break;case"y":return q?"vuoden":"vuosi";case"yy":$=q?"vuoden":"vuotta"}return function S(R,N){return R<10?N?E[R]:i[R]:R}(R,q)+" "+$}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,U,x){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(Y,U,x){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(w){"use strict";var T=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(R,N){switch(N){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,L){return S?/-MMM-/.test(L)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,U,x){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[T+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",T+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[T+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",T+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[T+" \u0935\u0930\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[T+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",T+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[T+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",T+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[T+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?N[L][0]:N[L][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(T,S){return"D"===S?T+"\u0935\u0947\u0930":T},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(T,S){return 12===T&&(T=0),"\u0930\u093e\u0924\u0940"===S?T<4?T:T+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?T:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?T>12?T:T+12:"\u0938\u093e\u0902\u091c\u0947"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0930\u093e\u0924\u0940":T<12?"\u0938\u0915\u093e\u0933\u0940\u0902":T<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":T<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["thoddea sekondamni","thodde sekond"],ss:[T+" sekondamni",T+" sekond"],m:["eka mintan","ek minut"],mm:[T+" mintamni",T+" mintam"],h:["eka voran","ek vor"],hh:[T+" voramni",T+" voram"],d:["eka disan","ek dis"],dd:[T+" disamni",T+" dis"],M:["eka mhoinean","ek mhoino"],MM:[T+" mhoineamni",T+" mhoine"],y:["eka vorsan","ek voros"],yy:[T+" vorsamni",T+" vorsam"]};return R?N[L][0]:N[L][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(T,S){return"D"===S?T+"er":T},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(T,S){return 12===T&&(T=0),"rati"===S?T<4?T:T+12:"sokallim"===S?T:"donparam"===S?T>12?T:T+12:"sanje"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"rati":T<12?"sokallim":T<16?"donparam":T<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===L?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?S:"\u0aac\u0aaa\u0acb\u0ab0"===L?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,U,x){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,T,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},T=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:T,longMonthsParse:T,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(N){return E[N]})},postformat:function(R){return R.replace(/\d/g,function(N){return i[N]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,N){return 12===R&&(R=0),"\u0930\u093e\u0924"===N?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===N?R:"\u0926\u094b\u092a\u0939\u0930"===N?R>=10?R:R+12:"\u0936\u093e\u092e"===N?R+12:void 0},meridiem:function(R,N,j){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,U,x){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(L,R,N,j){var q=L;switch(N){case"s":return j||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return q+(j||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(j||R?" perc":" perce");case"mm":return q+(j||R?" perc":" perce");case"h":return"egy"+(j||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return q+(j||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(j||R?" nap":" napja");case"dd":return q+(j||R?" nap":" napja");case"M":return"egy"+(j||R?" h\xf3nap":" h\xf3napja");case"MM":return q+(j||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(j||R?" \xe9v":" \xe9ve");case"yy":return q+(j||R?" \xe9v":" \xe9ve")}return""}function T(L){return(L?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,R,N){return L<12?!0===N?"de":"DE":!0===N?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return T.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return T.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(Y,U,x){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,T){switch(T){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"siang"===T?E>=11?E:E+12:"sore"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(Y,U,x){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,L,R,N){var j=S+" ";switch(R){case"s":return L||N?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?j+(L||N?"sek\xfandur":"sek\xfandum"):j+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?j+(L||N?"m\xedn\xfatur":"m\xedn\xfatum"):L?j+"m\xedn\xfata":j+"m\xedn\xfatu";case"hh":return i(S)?j+(L||N?"klukkustundir":"klukkustundum"):j+"klukkustund";case"d":return L?"dagur":N?"dag":"degi";case"dd":return i(S)?L?j+"dagar":j+(N?"daga":"d\xf6gum"):L?j+"dagur":j+(N?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":N?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?L?j+"m\xe1nu\xf0ir":j+(N?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?j+"m\xe1nu\xf0ur":j+(N?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||N?"\xe1r":"\xe1ri";case"yy":return i(S)?j+(L||N?"\xe1r":"\xe1rum"):j+(L||N?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(Y,U,x){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(Y,U,x){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,T){return"\u5143"===T[1]?1:parseInt(T[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,T,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,T){switch(T){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(Y,U,x){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,T){return 12===E&&(E=0),"enjing"===T?E:"siyang"===T?E>=11?E:E+12:"sonten"===T||"ndalu"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(Y,U,x){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(T,S,L){return"\u10d8"===L?S+"\u10e8\u10d8":S+L+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,U,x){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,L,R){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,U,x){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,T,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:T,monthsShort:T,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,R,N){return L<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,U,x){!function(w){"use strict";function i(R,N,j,q){var $={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return N?$[j][0]:$[j][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var N=R%10;return S(0===N?R/10:N)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function T(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,U,x){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,T,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(Y,U,x){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function T(j,q,$,X){return q?L($)[0]:X?L($)[1]:L($)[2]}function S(j){return j%10==0||j>10&&j<20}function L(j){return i[j].split("_")}function R(j,q,$,X){var ie=j+" ";return 1===j?ie+T(0,q,$[0],X):q?ie+(S(j)?L($)[1]:L($)[0]):X?ie+L($)[1]:ie+(S(j)?L($)[1]:L($)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(j,q,$,X){return q?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:T,mm:R,h:T,hh:R,d:T,dd:R,M:T,MM:R,y:T,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(j){return j+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(N,j,q){return q?j%10==1&&j%100!=11?N[2]:N[3]:j%10==1&&j%100!=11?N[0]:N[1]}function T(N,j,q){return N+" "+E(i[q],N,j)}function S(N,j,q){return E(i[q],N,j)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function L(N,j){return j?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:T,m:S,mm:T,h:S,hh:T,d:S,dd:T,M:S,MM:T,y:S,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(T,S){return 1===T?S[0]:T>=2&&T<=4?S[1]:S[2]},translate:function(T,S,L){var R=i.words[L];return 1===L.length?S?R[0]:R[1]:T+" "+i.correctGrammaticalCase(T,R)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,U,x){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(Y,U,x){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,T){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===T&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===T||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===T?E+12:E},meridiem:function(E,T,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){switch(L){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return T+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return T+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return T+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return T+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return T+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return T+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return T}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(T){return"\u04ae\u0425"===T},meridiem:function(T,S,L){return T<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(T,S){switch(S){case"d":case"D":case"DDD":return T+" \u04e9\u0434\u04e9\u0440";default:return T}}})}(x(5439))},6184:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function T(L,R,N,j){var q="";if(R)switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":q="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":q="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":q="%d \u0924\u093e\u0938";break;case"d":q="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":q="%d \u0926\u093f\u0935\u0938";break;case"M":q="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":q="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u0947"}else switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":q="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":q="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":q="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":q="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":q="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":q="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":q="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return q.replace(/%d/i,L)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(L,R){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?L>=12?L:L+12:void 0},meridiem:function(L,R,N){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,U,x){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(Y,U,x){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(Y,U,x){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(Y,U,x){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===L?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===L?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===L?S+12:void 0},meridiem:function(S,L,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,U,x){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(Y,U,x){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===L?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===L?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,U,x){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),T=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(N){return N%10<5&&N%10>1&&~~(N/10)%10!=1}function L(N,j,q){var $=N+" ";switch(q){case"ss":return $+(S(N)?"sekundy":"sekund");case"m":return j?"minuta":"minut\u0119";case"mm":return $+(S(N)?"minuty":"minut");case"h":return j?"godzina":"godzin\u0119";case"hh":return $+(S(N)?"godziny":"godzin");case"ww":return $+(S(N)?"tygodnie":"tygodni");case"MM":return $+(S(N)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(N)?"lata":"lat")}}w.defineLocale("pl",{months:function(N,j){return N?/D MMMM/.test(j)?E[N.month()]:i[N.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,U,x){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(Y,U,x){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var N=" ";return(T%100>=20||T>=100&&T%100==0)&&(N=" de "),T+N+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,U,x){!function(w){"use strict";function E(L,R,N){return"m"===N?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function i(L,R){var N=L.split("_");return R%10==1&&R%100!=11?N[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?N[1]:N[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[N],+L)}var T=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,R,N){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,R){switch(R){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,U,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,U,x){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(Y,U,x){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,T,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(Y,U,x){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function T(R){return R>1&&R<5}function S(R,N,j,q){var $=R+" ";switch(j){case"s":return N||q?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return N||q?$+(T(R)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return N?"min\xfata":q?"min\xfatu":"min\xfatou";case"mm":return N||q?$+(T(R)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return N?"hodina":q?"hodinu":"hodinou";case"hh":return N||q?$+(T(R)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return N||q?"de\u0148":"d\u0148om";case"dd":return N||q?$+(T(R)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return N||q?"mesiac":"mesiacom";case"MM":return N||q?$+(T(R)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return N||q?"rok":"rokom";case"yy":return N||q?$+(T(R)?"roky":"rokov"):$+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N=T+" ";switch(L){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return N+(1===T?S?"sekundo":"sekundi":2===T?S||R?"sekundi":"sekundah":T<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return N+(1===T?S?"minuta":"minuto":2===T?S||R?"minuti":"minutama":T<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return N+(1===T?S?"ura":"uro":2===T?S||R?"uri":"urama":T<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return N+(1===T?S||R?"dan":"dnem":2===T?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return N+(1===T?S||R?"mesec":"mesecem":2===T?S||R?"meseca":"mesecema":T<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return N+(1===T?S||R?"leto":"letom":2===T?S||R?"leti":"letoma":T<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,U,x){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,T,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===j?T+" \u0433\u043e\u0434\u0438\u043d\u0430":T+" "+j}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"jedna godina":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"godinu"===j?T+" godina":T+" "+j}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,U,x){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,T,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,T){return 12===E&&(E=0),"ekuseni"===T?E:"emini"===T?E>=11?E:E+12:"entsambama"===T||"ebusuku"===T?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?":e":1===T||2===T?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(Y,U,x){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,L,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,L){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,U,x){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===T?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===T?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===T?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===T?E+12:void 0},meridiem:function(E,T,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,U,x){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(T,S){return 12===T&&(T=0),"\u0448\u0430\u0431"===S?T<4?T:T+12:"\u0441\u0443\u0431\u04b3"===S?T:"\u0440\u04ef\u0437"===S?T>=11?T:T+12:"\u0431\u0435\u0433\u043e\u04b3"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0448\u0430\u0431":T<11?"\u0441\u0443\u0431\u04b3":T<16?"\u0440\u04ef\u0437":T<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(Y,U,x){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,T,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(Y,U,x){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'unjy";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,U,x){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(N,j,q,$){var X=function L(N){var j=Math.floor(N%1e3/100),q=Math.floor(N%100/10),$=N%10,X="";return j>0&&(X+=i[j]+"vatlh"),q>0&&(X+=(""!==X?" ":"")+i[q]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(N);switch(q){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"leS":-1!==N.indexOf("jar")?j.slice(0,-3)+"waQ":-1!==N.indexOf("DIS")?j.slice(0,-3)+"nem":j+" pIq"},past:function T(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"Hu\u2019":-1!==N.indexOf("jar")?j.slice(0,-3)+"wen":-1!==N.indexOf("DIS")?j.slice(0,-3)+"ben":j+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,U,x){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(T,S,L){return T<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(T){return"\xf6s"===T||"\xd6S"===T},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'\u0131nc\u0131";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,U,x){!function(w){"use strict";function E(T,S,L,R){var N={s:["viensas secunds","'iensas secunds"],ss:[T+" secunds",T+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[T+" m\xeduts",T+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[T+" \xfeoras",T+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[T+" ziuas",T+" ziuas"],M:["'n mes","'iens mes"],MM:[T+" mesen",T+" mesen"],y:["'n ar","'iens ar"],yy:[T+" ars",T+" ars"]};return R||S?N[L][0]:N[L][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(T){return"d'o"===T.toLowerCase()},meridiem:function(T,S,L){return T>11?L?"d'o":"D'O":L?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(Y,U,x){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(Y,U,x){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===T||"\u0633\u06d5\u06be\u06d5\u0631"===T||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===T?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===T||"\u0643\u06d5\u0686"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(w){"use strict";function E(R,N,j){return"m"===j?N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===j?N?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,N){var j=R.split("_");return N%10==1&&N%100!=11?j[0]:N%10>=2&&N%10<=4&&(N%100<10||N%100>=20)?j[1]:j[2]}({ss:N?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:N?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[j],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function T(R,N){var j={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===R?j.nominative.slice(1,7).concat(j.nominative.slice(0,1)):R?j[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(N)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(N)?"genitive":"nominative"][R.day()]:j.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,N,j){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,N){switch(N){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,U,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,U,x){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(Y,U,x){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(Y,U,x){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(Y,U,x){(Y=x.nmd(Y)).exports=function(){"use strict";var w,de;function i(){return w.apply(null,arguments)}function T(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function L(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function R(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(L(C,H))return!1;return!0}function N(C){return void 0===C}function j(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function q(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var z,O=[],J=C.length;for(z=0;z>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kn={},yi={};function Ke(C,H,O,z){var J=z;"string"==typeof z&&(J=function(){return this[z]()}),C&&(yi[C]=J),H&&(yi[H[0]]=function(){return Ci(J.apply(this,arguments),H[1],H[2])}),O&&(yi[O]=function(){return this.localeData().ordinal(J.apply(this,arguments),C)})}function di(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function sn(C,H){return C.isValid()?(H=pi(H,C.localeData()),kn[H]=kn[H]||function hr(C){var O,z,H=C.match(st);for(O=0,z=H.length;O=0&&bt.test(C);)C=C.replace(bt,z),bt.lastIndex=0,O-=1;return C}var Ue={};function it(C,H){var O=C.toLowerCase();Ue[O]=Ue[O+"s"]=Ue[H]=C}function Qt(C){return"string"==typeof C?Ue[C]||Ue[C.toLowerCase()]:void 0}function Te(C){var O,z,H={};for(z in C)L(C,z)&&(O=Qt(z))&&(H[O]=C[z]);return H}var ae={};function oe(C,H){ae[C]=H}function De(C){return C%4==0&&C%100!=0||C%400==0}function Fe(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function xe(C){var H=+C,O=0;return 0!==H&&isFinite(H)&&(O=Fe(H)),O}function Ge(C,H){return function(O){return null!=O?(Ni(this,C,O),i.updateOffset(this,H),this):It(this,C)}}function It(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function Ni(C,H,O){C.isValid()&&!isNaN(O)&&("FullYear"===H&&De(C.year())&&1===C.month()&&29===C.date()?(O=xe(O),C._d["set"+(C._isUTC?"UTC":"")+H](O,C.month(),fi(O,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](O))}var M,Vi=/\d/,ft=/\d\d/,Ze=/\d{3}/,Vn=/\d{4}/,Gt=/[+-]?\d{6}/,Et=/\d\d?/,pr=/\d\d\d\d?/,Xn=/\d\d\d\d\d\d?/,zn=/\d{1,3}/,sc=/\d{1,4}/,Oa=/[+-]?\d{1,6}/,da=/\d+/,ua=/[+-]?\d+/,fr=/Z|[+-]\d\d:?\d\d/gi,ms=/Z|[+-]\d\d(?::?\d\d)?/gi,eo=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Be(C,H,O){M[C]=Ae(H)?H:function(z,J){return z&&O?O:H}}function vi(C,H){return L(M,C)?M[C](H._strict,H._locale):new RegExp(function ln(C){return Xe(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,J,le){return O||z||J||le}))}(C))}function Xe(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}M={};var ni={};function xt(C,H){var O,J,z=H;for("string"==typeof C&&(C=[C]),j(H)&&(z=function(le,we){we[H]=xe(le)}),J=C.length,O=0;O68?1900:2e3)};var On=Ge("FullYear",!0);function Zo(C,H,O,z,J,le,we){var ot;return C<100&&C>=0?(ot=new Date(C+400,H,O,z,J,le,we),isFinite(ot.getFullYear())&&ot.setFullYear(C)):ot=new Date(C,H,O,z,J,le,we),ot}function Va(C){var H,O;return C<100&&C>=0?((O=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function pa(C,H,O){var z=7+H-O;return-(7+Va(C,0,z).getUTCDay()-H)%7+z-1}function tr(C,H,O,z,J){var kt,ai,ot=1+7*(H-1)+(7+O-z)%7+pa(C,z,J);return ot<=0?ai=Na(kt=C-1)+ot:ot>Na(C)?(kt=C+1,ai=ot-Na(C)):(kt=C,ai=ot),{year:kt,dayOfYear:ai}}function As(C,H,O){var le,we,z=pa(C.year(),H,O),J=Math.floor((C.dayOfYear()-z-1)/7)+1;return J<1?le=J+fa(we=C.year()-1,H,O):J>fa(C.year(),H,O)?(le=J-fa(C.year(),H,O),we=C.year()+1):(we=C.year(),le=J),{week:le,year:we}}function fa(C,H,O){var z=pa(C,H,O),J=pa(C+1,H,O);return(Na(C)-z+J)/7}Ke("w",["ww",2],"wo","week"),Ke("W",["WW",2],"Wo","isoWeek"),it("week","w"),it("isoWeek","W"),oe("week",5),oe("isoWeek",5),Be("w",Et),Be("ww",Et,ft),Be("W",Et),Be("WW",Et,ft),Wi(["w","ww","W","WW"],function(C,H,O,z){H[z.substr(0,1)]=xe(C)});function ys(C,H){return C.slice(H,7).concat(C.slice(0,H))}Ke("d",0,"do","day"),Ke("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),Ke("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),Ke("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),Ke("e",0,0,"weekday"),Ke("E",0,0,"isoWeekday"),it("day","d"),it("weekday","e"),it("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Be("d",Et),Be("e",Et),Be("E",Et),Be("dd",function(C,H){return H.weekdaysMinRegex(C)}),Be("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Be("dddd",function(C,H){return H.weekdaysRegex(C)}),Wi(["dd","ddd","dddd"],function(C,H,O,z){var J=O._locale.weekdaysParse(C,z,O._strict);null!=J?H.d=J:ne(O).invalidWeekday=C}),Wi(["d","e","E"],function(C,H,O,z){H[z]=xe(C)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=eo,Ad=eo,Ki=eo;function $o(C,H,O){var z,J,le,we=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)le=ie([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(le,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(le,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(le,"").toLocaleLowerCase();return O?"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"dddd"===H?-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:"ddd"===H?-1!==(J=ri.call(this._shortWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._minWeekdaysParse,we))?J:null:-1!==(J=ri.call(this._minWeekdaysParse,we))||-1!==(J=ri.call(this._weekdaysParse,we))||-1!==(J=ri.call(this._shortWeekdaysParse,we))?J:null}function Zt(){function C(Bi,Pr){return Pr.length-Bi.length}var le,we,ot,kt,ai,H=[],O=[],z=[],J=[];for(le=0;le<7;le++)we=ie([2e3,1]).day(le),ot=Xe(this.weekdaysMin(we,"")),kt=Xe(this.weekdaysShort(we,"")),ai=Xe(this.weekdays(we,"")),H.push(ot),O.push(kt),z.push(ai),J.push(ot),J.push(kt),J.push(ai);H.sort(C),O.sort(C),z.sort(C),J.sort(C),this._weekdaysRegex=new RegExp("^("+J.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function za(){return this.hours()%12||12}function Sr(C,H){Ke(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function Cs(C,H){return H._meridiemParse}Ke("H",["HH",2],0,"hour"),Ke("h",["hh",2],0,za),Ke("k",["kk",2],0,function _i(){return this.hours()||24}),Ke("hmm",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)}),Ke("hmmss",0,0,function(){return""+za.apply(this)+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Ke("Hmm",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)}),Ke("Hmmss",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Sr("a",!0),Sr("A",!1),it("hour","h"),oe("hour",13),Be("a",Cs),Be("A",Cs),Be("H",Et),Be("h",Et),Be("k",Et),Be("HH",Et,ft),Be("hh",Et,ft),Be("kk",Et,ft),Be("hmm",pr),Be("hmmss",Xn),Be("Hmm",pr),Be("Hmmss",Xn),xt(["H","HH"],3),xt(["k","kk"],function(C,H,O){var z=xe(C);H[3]=24===z?0:z}),xt(["a","A"],function(C,H,O){O._isPm=O._locale.isPM(C),O._meridiem=C}),xt(["h","hh"],function(C,H,O){H[3]=xe(C),ne(O).bigHour=!0}),xt("hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z)),ne(O).bigHour=!0}),xt("hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J)),ne(O).bigHour=!0}),xt("Hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z))}),xt("Hmmss",function(C,H,O){var z=C.length-4,J=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(J))});var wn=Ge("Hours",!0);var ga,Jo={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xr,monthsShort:mi,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:$e,weekdaysShort:dn,meridiemParse:/[ap]\.?m?\.?/i},bi={},Ts={};function cc(C,H){var O,z=Math.min(C.length,H.length);for(O=0;O0;){if(J=B(le.slice(0,O).join("-")))return J;if(z&&z.length>=O&&cc(le,z)>=O-1)break;O--}H++}return ga}(C)}function Se(C){var H,O=C._a;return O&&-2===ne(C).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>fi(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var nt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xt=/Z|[+-]\d\d(?::?\d\d)?/,At=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Gi=/^\/?Date\((-?\d+)/i,Ti=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ki={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _a(C){var H,O,le,we,ot,kt,z=C._i,J=nt.exec(z)||Yt.exec(z),ai=At.length,Bi=Ft.length;if(J){for(ne(C).iso=!0,H=0,O=ai;H7)&&(kt=!0)):(le=C._locale._week.dow,we=C._locale._week.doy,ai=As(Mi(),le,we),O=ao(H.gg,C._a[0],ai.year),z=ao(H.w,ai.week),null!=H.d?((J=H.d)<0||J>6)&&(kt=!0):null!=H.e?(J=H.e+le,(H.e<0||H.e>6)&&(kt=!0)):J=le),z<1||z>fa(O,le,we)?ne(C)._overflowWeeks=!0:null!=kt?ne(C)._overflowWeekday=!0:(ot=tr(O,z,J,le,we),C._a[0]=ot.year,C._dayOfYear=ot.dayOfYear)}(C),null!=C._dayOfYear&&(we=ao(C._a[0],J[0]),(C._dayOfYear>Na(we)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),O=Va(we,0,C._dayOfYear),C._a[1]=O.getUTCMonth(),C._a[2]=O.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=z[H]=J[H];for(;H<7;H++)C._a[H]=z[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?Va:Zo).apply(null,z),le=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==le&&(ne(C).weekdayMismatch=!0)}}function ba(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var O,z,J,le,we,ai,Bi,H=""+C._i,ot=H.length,kt=0;for(Bi=(J=pi(C._f,C._locale).match(st)||[]).length,O=0;O0&&ne(C).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),kt+=z.length),yi[le]?(z?ne(C).empty=!1:ne(C).unusedTokens.push(le),Go(le,z,C)):C._strict&&!z&&ne(C).unusedTokens.push(le);ne(C).charsLeftOver=ot-kt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function Zi(C,H,O){var z;return null==O?H:null!=C.meridiemHour?C.meridiemHour(H,O):(null!=C.isPM&&((z=C.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(ai=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(ai,C._a[0])),be(C),Se(C)}else Ko(C);else _a(C)}function uc(C){var H=C._i,O=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===O&&""===H?Ne({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Qe(H)?new Rt(Se(H)):(q(H)?C._d=H:T(O)?function dc(C){var H,O,z,J,le,we,ot=!1,kt=C._f.length;if(0===kt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(J=0;Jthis?this:C:Ne()});function ei(C,H){var O,z;if(1===H.length&&T(H[0])&&(H=H[0]),!H.length)return Mi();for(O=H[0],z=1;z=0?new Date(C+400,H,O)-dl:new Date(C,H,O).valueOf()}function yc(C,H,O){return C<100&&C>=0?Date.UTC(C+400,H,O)-dl:Date.UTC(C,H,O)}function kd(C,H){return H.erasAbbrRegex(C)}function lh(){var J,le,C=[],H=[],O=[],z=[],we=this.eras();for(J=0,le=we.length;J(le=fa(C,z,J))&&(H=le),Df.call(this,C,H,O,z,J))}function Df(C,H,O,z,J){var le=tr(C,H,O,z,J),we=Va(le.year,0,le.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ke("N",0,0,"eraAbbr"),Ke("NN",0,0,"eraAbbr"),Ke("NNN",0,0,"eraAbbr"),Ke("NNNN",0,0,"eraName"),Ke("NNNNN",0,0,"eraNarrow"),Ke("y",["y",1],"yo","eraYear"),Ke("y",["yy",2],0,"eraYear"),Ke("y",["yyy",3],0,"eraYear"),Ke("y",["yyyy",4],0,"eraYear"),Be("N",kd),Be("NN",kd),Be("NNN",kd),Be("NNNN",function Tf(C,H){return H.erasNameRegex(C)}),Be("NNNNN",function xf(C,H){return H.erasNarrowRegex(C)}),xt(["N","NN","NNN","NNNN","NNNNN"],function(C,H,O,z){var J=O._locale.erasParse(C,z,O._strict);J?ne(O).era=J:ne(O).invalidEra=C}),Be("y",da),Be("yy",da),Be("yyy",da),Be("yyyy",da),Be("yo",function I1(C,H){return H._eraYearOrdinalRegex||da}),xt(["y","yy","yyy","yyyy"],0),xt(["yo"],function(C,H,O,z){var J;O._locale._eraYearOrdinalRegex&&(J=C.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(C,J):parseInt(C,10)}),Ke(0,["gg",2],0,function(){return this.weekYear()%100}),Ke(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fl("gggg","weekYear"),fl("ggggg","weekYear"),fl("GGGG","isoWeekYear"),fl("GGGGG","isoWeekYear"),it("weekYear","gg"),it("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Be("G",ua),Be("g",ua),Be("GG",Et,ft),Be("gg",Et,ft),Be("GGGG",sc,Vn),Be("gggg",sc,Vn),Be("GGGGG",Oa,Gt),Be("ggggg",Oa,Gt),Wi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,O,z){H[z.substr(0,2)]=xe(C)}),Wi(["gg","GG"],function(C,H,O,z){H[z]=i.parseTwoDigitYear(C)}),Ke("Q",0,"Qo","quarter"),it("quarter","Q"),oe("quarter",7),Be("Q",Vi),xt("Q",function(C,H){H[1]=3*(xe(C)-1)}),Ke("D",["DD",2],"Do","date"),it("date","D"),oe("date",9),Be("D",Et),Be("DD",Et,ft),Be("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),xt(["D","DD"],2),xt("Do",function(C,H){H[2]=xe(C.match(Et)[0])});var qn=Ge("Date",!0);Ke("DDD",["DDDD",3],"DDDo","dayOfYear"),it("dayOfYear","DDD"),oe("dayOfYear",4),Be("DDD",zn),Be("DDDD",Ze),xt(["DDD","DDDD"],function(C,H,O){O._dayOfYear=xe(C)}),Ke("m",["mm",2],0,"minute"),it("minute","m"),oe("minute",14),Be("m",Et),Be("mm",Et,ft),xt(["m","mm"],4);var gl=Ge("Minutes",!1);Ke("s",["ss",2],0,"second"),it("second","s"),oe("second",15),Be("s",Et),Be("ss",Et,ft),xt(["s","ss"],5);var Gr,_l,Ca=Ge("Seconds",!1);for(Ke("S",0,0,function(){return~~(this.millisecond()/100)}),Ke(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ke(0,["SSS",3],0,"millisecond"),Ke(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ke(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ke(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ke(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ke(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ke(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),it("millisecond","ms"),oe("millisecond",16),Be("S",zn,Vi),Be("SS",zn,ft),Be("SSS",zn,Ze),Gr="SSSS";Gr.length<=9;Gr+="S")Be(Gr,da);function ch(C,H){H[6]=xe(1e3*("0."+C))}for(Gr="S";Gr.length<=9;Gr+="S")xt(Gr,ch);_l=Ge("Milliseconds",!1),Ke("z",0,0,"zoneAbbr"),Ke("zz",0,0,"zoneName");var Ie=Rt.prototype;function va(C){return C}Ie.add=Ku,Ie.calendar=function eh(C,H){1===arguments.length&&(arguments[0]?co(arguments[0])?(C=arguments[0],H=void 0):ir(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var O=C||Mi(),z=lo(O,this).startOf("day"),J=i.calendarFormat(this,z)||"sameElse",le=H&&(Ae(H[J])?H[J].call(this,O):H[J]);return this.format(le||this.localeData().calendar(J,this,Mi(O)))},Ie.clone=function th(){return new Rt(this)},Ie.diff=function _c(C,H,O){var z,J,le;if(!this.isValid())return NaN;if(!(z=lo(C,this)).isValid())return NaN;switch(J=6e4*(z.utcOffset()-this.utcOffset()),H=Qt(H)){case"year":le=ho(this,z)/12;break;case"month":le=ho(this,z);break;case"quarter":le=ho(this,z)/3;break;case"second":le=(this-z)/1e3;break;case"minute":le=(this-z)/6e4;break;case"hour":le=(this-z)/36e5;break;case"day":le=(this-z-J)/864e5;break;case"week":le=(this-z-J)/6048e5;break;default:le=this-z}return O?le:Fe(le)},Ie.endOf=function rh(C){var H,O;if(void 0===(C=Qt(C))||"millisecond"===C||!this.isValid())return this;switch(O=this._isUTC?yc:Dd,C){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ya-mo(H+(this._isUTC?0:this.utcOffset()*Wa),ya)-1;break;case"minute":H=this._d.valueOf(),H+=Wa-mo(H,Wa)-1;break;case"second":H=this._d.valueOf(),H+=1e3-mo(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ie.format=function Ds(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=sn(this,C);return this.localeData().postformat(H)},Ie.from=function bc(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.fromNow=function R1(C){return this.from(Mi(),C)},Ie.to=function nh(C,H){return this.isValid()&&(Qe(C)&&C.isValid()||Mi(C).isValid())?Hr({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.toNow=function cl(C){return this.to(Mi(),C)},Ie.get=function Vt(C){return Ae(this[C=Qt(C)])?this[C]():this},Ie.invalidAt=function Ma(){return ne(this).overflow},Ie.isAfter=function P1(C,H){var O=Qe(C)?C:Mi(C);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Qt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?sn(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ae(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",sn(O,"Z")):sn(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.inspect=function po(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+C+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ie.toJSON=function ah(){return this.isValid()?this.toISOString():null},Ie.toString=function Ya(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function Cf(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function Hd(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function Ld(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.eraName=function Ao(){var C,H,O,z=this.localeData().eras();for(C=0,H=z.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function Oi(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function mc(){return!!this.isValid()&&this._isUTC},Ie.isUtc=rl,Ie.isUTC=rl,Ie.zoneAbbr=function B1(){return this._isUTC?"UTC":""},Ie.zoneName=function N1(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=St("dates accessor is deprecated. Use date instead.",qn),Ie.months=St("months accessor is deprecated. Use month instead",Ba),Ie.years=St("years accessor is deprecated. Use year instead",On),Ie.zone=St("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Cd(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Ie.isDSTShifted=St("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Dr(){if(!N(this._isDSTShifted))return this._isDSTShifted;var H,C={};return vt(C,this),(C=uc(C))._a?(H=C._isUTC?ie(C._a):Mi(C._a),this._isDSTShifted=this.isValid()&&function il(C,H,O){var we,z=Math.min(C.length,H.length),J=Math.abs(C.length-H.length),le=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var ti=ke.prototype;function wo(C,H,O,z){var J=re(),le=ie().set(z,H);return J[O](le,C)}function bl(C,H,O){if(j(C)&&(H=C,C=void 0),C=C||"",null!=H)return wo(C,H,O,"month");var z,J=[];for(z=0;z<12;z++)J[z]=wo(C,z,O,"month");return J}function Od(C,H,O,z){"boolean"==typeof C?(j(H)&&(O=H,H=void 0),H=H||""):(O=H=C,C=!1,j(H)&&(O=H,H=void 0),H=H||"");var we,J=re(),le=C?J._week.dow:0,ot=[];if(null!=O)return wo(H,(O+le)%7,z,"day");for(we=0;we<7;we++)ot[we]=wo(H,(we+le)%7,z,"day");return ot}ti.calendar=function Lt(C,H,O){var z=this._calendar[C]||this._calendar.sameElse;return Ae(z)?z.call(H,O):z},ti.longDateFormat=function on(C){var H=this._longDateFormat[C],O=this._longDateFormat[C.toUpperCase()];return H||!O?H:(this._longDateFormat[C]=O.match(st).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[C])},ti.invalidDate=function ca(){return this._invalidDate},ti.ordinal=function ue(C){return this._ordinal.replace("%d",C)},ti.preparse=va,ti.postformat=va,ti.relativeTime=function _e(C,H,O,z){var J=this._relativeTime[O];return Ae(J)?J(C,H,O,z):J.replace(/%d/i,C)},ti.pastFuture=function We(C,H){var O=this._relativeTime[C>0?"future":"past"];return Ae(O)?O(H):O.replace(/%s/i,H)},ti.set=function Ce(C){var H,O;for(O in C)L(C,O)&&(Ae(H=C[O])?this[O]=H:this["_"+O]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ti.eras=function wa(C,H){var O,z,J,le=this._eras||re("en")._eras;for(O=0,z=le.length;O=0)return le[z]},ti.erasConvertYear=function bo(C,H){var O=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*O},ti.erasAbbrRegex=function pl(C){return L(this,"_erasAbbrRegex")||lh.call(this),C?this._erasAbbrRegex:this._erasRegex},ti.erasNameRegex=function O1(C){return L(this,"_erasNameRegex")||lh.call(this),C?this._erasNameRegex:this._erasRegex},ti.erasNarrowRegex=function hi(C){return L(this,"_erasNarrowRegex")||lh.call(this),C?this._erasNarrowRegex:this._erasRegex},ti.months=function _s(C,H){return C?T(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ha).test(H)?"format":"standalone"][C.month()]:T(this._months)?this._months:this._months.standalone},ti.monthsShort=function Ia(C,H){return C?T(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ha.test(H)?"format":"standalone"][C.month()]:T(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ti.monthsParse=function bs(C,H,O){var z,J,le;if(this._monthsParseExact)return oc.call(this,C,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(J=ie([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(J,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(J,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(le="^"+this.months(J,"")+"|^"+this.monthsShort(J,""),this._monthsParse[z]=new RegExp(le.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(C))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(C))return z;if(!O&&this._monthsParse[z].test(C))return z}},ti.monthsRegex=function gi(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Dt),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},ti.monthsShortRegex=function Kn(C){return this._monthsParseExact?(L(this,"_monthsRegex")||lc.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=Hi),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},ti.week=function gf(C){return As(C,this._week.dow,this._week.doy).week},ti.firstDayOfYear=function bf(){return this._week.doy},ti.firstDayOfWeek=function _f(){return this._week.dow},ti.weekdays=function io(C,H){var O=T(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?ys(O,this._week.dow):C?O[C.day()]:O},ti.weekdaysMin=function no(C){return!0===C?ys(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},ti.weekdaysShort=function Ri(C){return!0===C?ys(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},ti.weekdaysParse=function yd(C,H,O){var z,J,le;if(this._weekdaysParseExact)return $o.call(this,C,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(J=ie([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(J,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(J,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(J,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(le="^"+this.weekdays(J,"")+"|^"+this.weekdaysShort(J,"")+"|^"+this.weekdaysMin(J,""),this._weekdaysParse[z]=new RegExp(le.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(C))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(C))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(C))return z;if(!O&&this._weekdaysParse[z].test(C))return z}},ti.weekdaysRegex=function ws(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},ti.weekdaysShortRegex=function ut(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ad),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ti.weekdaysMinRegex=function Ui(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ki),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ti.isPM=function Md(C){return"p"===(C+"").toLowerCase().charAt(0)},ti.meridiem=function vs(C,H,O){return C>11?O?"pm":"PM":O?"am":"AM"},G("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var H=C%10;return C+(1===xe(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=St("moment.lang is deprecated. Use moment.locale instead.",G),i.langData=St("moment.langData is deprecated. Use moment.localeData instead.",re);var br=Math.abs;function vo(C,H,O,z){var J=Hr(H,O);return C._milliseconds+=z*J._milliseconds,C._days+=z*J._days,C._months+=z*J._months,C._bubble()}function dh(C){return C<0?Math.floor(C):Math.ceil(C)}function uh(C){return 4800*C/146097}function vc(C){return 146097*C/4800}function kr(C){return function(){return this.as(C)}}var Rf=kr("ms"),hn=kr("s"),hh=kr("m"),Of=kr("h"),Nd=kr("d"),To=kr("w"),V1=kr("M"),ph=kr("Q"),fh=kr("y");function Za(C){return function(){return this.isValid()?this._data[C]:NaN}}var So=Za("milliseconds"),If=Za("seconds"),mh=Za("minutes"),Tc=Za("hours"),xc=Za("days"),Sc=Za("months"),Bf=Za("years");var Yn=Math.round,Ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gh(C,H,O,z,J){return J.relativeTime(H||1,!!O,C,z)}var Ec=Math.abs;function Eo(C){return(C>0)-(C<0)||+C}function Dc(){if(!this.isValid())return this.localeData().invalidDate();var z,J,le,we,kt,ai,Bi,Pr,C=Ec(this._milliseconds)/1e3,H=Ec(this._days),O=Ec(this._months),ot=this.asSeconds();return ot?(z=Fe(C/60),J=Fe(z/60),C%=60,z%=60,le=Fe(O/12),O%=12,we=C?C.toFixed(3).replace(/\.?0+$/,""):"",kt=ot<0?"-":"",ai=Eo(this._months)!==Eo(ot)?"-":"",Bi=Eo(this._days)!==Eo(ot)?"-":"",Pr=Eo(this._milliseconds)!==Eo(ot)?"-":"",kt+"P"+(le?ai+le+"Y":"")+(O?ai+O+"M":"")+(H?Bi+H+"D":"")+(J||z||C?"T":"")+(J?Pr+J+"H":"")+(z?Pr+z+"M":"")+(C?Pr+we+"S":"")):"P0D"}var rt=hc.prototype;return rt.isValid=function $u(){return this._isValid},rt.abs=function wc(){var C=this._data;return this._milliseconds=br(this._milliseconds),this._days=br(this._days),this._months=br(this._months),C.milliseconds=br(C.milliseconds),C.seconds=br(C.seconds),C.minutes=br(C.minutes),C.hours=br(C.hours),C.months=br(C.months),C.years=br(C.years),this},rt.add=function Bd(C,H){return vo(this,C,H,1)},rt.subtract=function Cc(C,H){return vo(this,C,H,-1)},rt.as=function Pf(C){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(C=Qt(C))||"quarter"===C||"year"===C)switch(H=this._days+z/864e5,O=this._months+uh(H),C){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(vc(this._months)),C){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+C)}},rt.asMilliseconds=Rf,rt.asSeconds=hn,rt.asMinutes=hh,rt.asHours=Of,rt.asDays=Nd,rt.asWeeks=To,rt.asMonths=V1,rt.asQuarters=ph,rt.asYears=fh,rt.valueOf=function Al(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xe(this._months/12):NaN},rt._bubble=function kf(){var J,le,we,ot,kt,C=this._milliseconds,H=this._days,O=this._months,z=this._data;return C>=0&&H>=0&&O>=0||C<=0&&H<=0&&O<=0||(C+=864e5*dh(vc(O)+H),H=0,O=0),z.milliseconds=C%1e3,J=Fe(C/1e3),z.seconds=J%60,le=Fe(J/60),z.minutes=le%60,we=Fe(le/60),z.hours=we%24,H+=Fe(we/24),O+=kt=Fe(uh(H)),H-=dh(vc(kt)),ot=Fe(O/12),O%=12,z.days=H,z.months=O,z.years=ot,this},rt.clone=function xo(){return Hr(this)},rt.get=function Ga(C){return C=Qt(C),this.isValid()?this[C+"s"]():NaN},rt.milliseconds=So,rt.seconds=If,rt.minutes=mh,rt.hours=Tc,rt.days=xc,rt.weeks=function Nf(){return Fe(this.days()/7)},rt.months=Sc,rt.years=Bf,rt.humanize=function F1(C,H){if(!this.isValid())return this.localeData().invalidDate();var J,le,O=!1,z=Ar;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(O=C),"object"==typeof H&&(z=Object.assign({},Ar,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),le=function z1(C,H,O,z){var J=Hr(C).abs(),le=Yn(J.as("s")),we=Yn(J.as("m")),ot=Yn(J.as("h")),kt=Yn(J.as("d")),ai=Yn(J.as("M")),Bi=Yn(J.as("w")),Pr=Yn(J.as("y")),Ps=le<=O.ss&&["s",le]||le0,Ps[4]=z,gh.apply(null,Ps)}(this,!O,z,J=this.localeData()),O&&(le=J.pastFuture(+this,le)),J.postformat(le)},rt.toISOString=Dc,rt.toString=Dc,rt.toJSON=Dc,rt.locale=fo,rt.localeData=Hs,rt.toIsoString=St("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dc),rt.lang=Ac,Ke("X",0,0,"unix"),Ke("x",0,0,"valueOf"),Be("x",ua),Be("X",/[+-]?\d+(\.\d{1,3})?/),xt("X",function(C,H,O){O._d=new Date(1e3*parseFloat(C))}),xt("x",function(C,H,O){O._d=new Date(xe(C))}),i.version="2.29.2",function E(C){w=C}(Mi),i.fn=Ie,i.min=function un(){return ei("isBefore",[].slice.call(arguments,0))},i.max=function Gu(){return ei("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=ie,i.unix=function rr(C){return Mi(1e3*C)},i.months=function Hf(C,H){return bl(C,H,"months")},i.isDate=q,i.locale=G,i.invalid=Ne,i.duration=Hr,i.isMoment=Qe,i.weekdays=function Lf(C,H,O){return Od(C,H,O,"weekdays")},i.parseZone=function Rd(){return Mi.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=xs,i.monthsShort=function Mc(C,H){return bl(C,H,"monthsShort")},i.weekdaysMin=function Id(C,H,O){return Od(C,H,O,"weekdaysMin")},i.defineLocale=I,i.updateLocale=function Q(C,H){if(null!=H){var O,z,J=Jo;null!=bi[C]&&null!=bi[C].parentLocale?bi[C].set(Me(bi[C]._config,H)):(null!=(z=B(C))&&(J=z._config),H=Me(J,H),null==z&&(H.abbr=C),(O=new ke(H)).parentLocale=bi[C],bi[C]=O),G(C)}else null!=bi[C]&&(null!=bi[C].parentLocale?(bi[C]=bi[C].parentLocale,C===G()&&G(C)):null!=bi[C]&&delete bi[C]);return bi[C]},i.locales=function ye(){return ge(bi)},i.weekdaysShort=function Co(C,H,O){return Od(C,H,O,"weekdaysShort")},i.normalizeUnits=Qt,i.relativeTimeRounding=function _h(C){return void 0===C?Yn:"function"==typeof C&&(Yn=C,!0)},i.relativeTimeThreshold=function Vf(C,H){return void 0!==Ar[C]&&(void 0===H?Ar[C]:(Ar[C]=H,"s"===C&&(Ar.ss=H-1),!0))},i.calendarFormat=function qa(C,H){var O=C.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Ie,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},1869:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);class i extends w.L{constructor(T,S,L){super(),this.parent=T,this.outerValue=S,this.outerIndex=L,this.index=0}_next(T){this.parent.notifyNext(this.outerValue,T,this.outerIndex,this.index++,this)}_error(T){this.parent.notifyError(T,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(Y,U,x)=>{"use strict";x.d(U,{P:()=>S});var w=x(8896),i=x(1086),E=x(1737);class S{constructor(R,N,j){this.kind=R,this.value=N,this.error=j,this.hasValue="N"===R}observe(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}do(R,N,j){switch(this.kind){case"N":return R&&R(this.value);case"E":return N&&N(this.error);case"C":return j&&j()}}accept(R,N,j){return R&&"function"==typeof R.next?this.observe(R):this.do(R,N,j)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,w.c)()}throw new Error("unexpected notification kind value")}static createNext(R){return void 0!==R?new S("N",R):S.undefinedValueNotification}static createError(R){return new S("E",void 0,R)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(Y,U,x)=>{"use strict";x.d(U,{y:()=>$});var w=x(3489),E=x(7668),T=x(3292),L=x(3821),R=x(5379);var q=x(2830);let $=(()=>{class ie{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new ie;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ne}=this,ze=function S(ie,ce,ne){if(ie){if(ie instanceof w.L)return ie;if(ie[E.b])return ie[E.b]()}return ie||ce||ne?new w.L(ie,ce,ne):new w.L(T.c)}(ne,de,me);if(ze.add(Ne?Ne.call(ze,this.source):this.source||q.v.useDeprecatedSynchronousErrorHandling&&!ze.syncErrorThrowable?this._subscribe(ze):this._trySubscribe(ze)),q.v.useDeprecatedSynchronousErrorHandling&&ze.syncErrorThrowable&&(ze.syncErrorThrowable=!1,ze.syncErrorThrown))throw ze.syncErrorValue;return ze}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){q.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(ie){for(;ie;){const{closed:ce,destination:ne,isStopped:de}=ie;if(ce||de)return!1;ie=ne&&ne instanceof w.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ne)=>{let ze;ze=this.subscribe(Je=>{try{ne(Je)}catch(vt){Ne(vt),ze&&ze.unsubscribe()}},Ne,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[L.L](){return this}pipe(...ne){return 0===ne.length?this:function j(ie){return 0===ie.length?R.y:1===ie.length?ie[0]:function(ne){return ie.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ne;this.subscribe(ze=>Ne=ze,ze=>me(ze),()=>de(Ne))})}}return ie.create=ce=>new ie(ce),ie})();function X(ie){if(ie||(ie=q.v.Promise||Promise),!ie)throw new Error("no Promise impl found");return ie}},3292:(Y,U,x)=>{"use strict";x.d(U,{c:()=>E});var w=x(2830),i=x(2782);const E={closed:!0,next(T){},error(T){if(w.v.useDeprecatedSynchronousErrorHandling)throw T;(0,i.z)(T)},complete(){}}},826:(Y,U,x)=>{"use strict";x.d(U,{L:()=>i});var w=x(3489);class i extends w.L{notifyNext(T,S,L,R,N){this.destination.next(S)}notifyError(T,S){this.destination.error(T)}notifyComplete(T){this.destination.complete()}}},8929:(Y,U,x)=>{"use strict";x.d(U,{Yc:()=>R,xQ:()=>N});var w=x(2916),i=x(3489),E=x(2654),T=x(5279),S=x(5283),L=x(7668);class R extends i.L{constructor($){super($),this.destination=$}}let N=(()=>{class q extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new R(this)}lift(X){const ie=new j(this,this);return ie.operator=X,ie}next(X){if(this.closed)throw new T.N;if(!this.isStopped){const{observers:ie}=this,ce=ie.length,ne=ie.slice();for(let de=0;denew j($,X),q})();class j extends N{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});var w=x(2654);class i extends w.w{constructor(T,S){super(),this.subject=T,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const T=this.subject,S=T.observers;if(this.subject=null,!S||0===S.length||T.isStopped||T.closed)return;const L=S.indexOf(this.subscriber);-1!==L&&S.splice(L,1)}}},3489:(Y,U,x)=>{"use strict";x.d(U,{L:()=>R});var w=x(7043),i=x(3292),E=x(2654),T=x(7668),S=x(2830),L=x(2782);class R extends E.w{constructor(q,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!q){this.destination=i.c;break}if("object"==typeof q){q instanceof R?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new N(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new N(this,q,$,X)}}[T.b](){return this}static create(q,$,X){const ie=new R(q,$,X);return ie.syncErrorThrowable=!1,ie}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class N extends R{constructor(q,$,X,ie){super(),this._parentSubscriber=q;let ce,ne=this;(0,w.m)($)?ce=$:$&&(ce=$.next,X=$.error,ie=$.complete,$!==i.c&&(ne=Object.create($),(0,w.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=ie}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=q,$.syncErrorThrown=!0):(0,L.z)(q),this.unsubscribe();else{if(this.unsubscribe(),X)throw q;(0,L.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,$){try{q.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,L.z)(X)}}__tryOrSetError(q,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(ie){return S.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ie,q.syncErrorThrown=!0,!0):((0,L.z)(ie),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},2654:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(6688),i=x(7830),E=x(7043);const S=(()=>{function N(j){return Error.call(this),this.message=j?`${j.length} errors occurred during unsubscription:\n${j.map((q,$)=>`${$+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=j,this}return N.prototype=Object.create(Error.prototype),N})();class L{constructor(j){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,j&&(this._unsubscribe=j)}unsubscribe(){let j;if(this.closed)return;let{_parentOrParents:q,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof L)q.remove(this);else if(null!==q)for(let ie=0;iej.concat(q instanceof S?q.errors:q),[])}L.EMPTY=((N=new L).closed=!0,N)},2830:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const T=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+T.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=E},get useDeprecatedSynchronousErrorHandling(){return w}}},1762:(Y,U,x)=>{"use strict";x.d(U,{c:()=>S,N:()=>L});var w=x(8929),i=x(2916),E=x(2654),T=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new R(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,T.x)()(this)}}const L=(()=>{const q=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class R extends w.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(Y,U,x)=>{"use strict";x.d(U,{aj:()=>R});var w=x(2866),i=x(6688),E=x(826),T=x(9054),S=x(3009);const L={};function R(...q){let $=null,X=null;return(0,w.K)(q[q.length-1])&&(X=q.pop()),"function"==typeof q[q.length-1]&&($=q.pop()),1===q.length&&(0,i.k)(q[0])&&(q=q[0]),(0,S.n)(q,X).lift(new N($))}class N{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new j($,this.resultSelector))}}class j extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(L),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let ie=0;ie{"use strict";x.d(U,{E:()=>i,c:()=>E});var w=x(2916);const i=new w.y(S=>S.complete());function E(S){return S?function T(S){return new w.y(L=>S.schedule(()=>L.complete()))}(S):i}},5254:(Y,U,x)=>{"use strict";x.d(U,{D:()=>ne});var w=x(2916),i=x(9249),E=x(2654),T=x(3821),R=x(6454),N=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function q(de){return de&&"function"==typeof de[T.L]}(de))return function S(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>{const Je=de[T.L]();ze.add(Je.subscribe({next(vt){ze.add(me.schedule(()=>Ne.next(vt)))},error(vt){ze.add(me.schedule(()=>Ne.error(vt)))},complete(){ze.add(me.schedule(()=>Ne.complete()))}}))})),ze})}(de,me);if((0,$.t)(de))return function L(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>de.then(Je=>{ze.add(me.schedule(()=>{Ne.next(Je),ze.add(me.schedule(()=>Ne.complete()))}))},Je=>{ze.add(me.schedule(()=>Ne.error(Je)))}))),ze})}(de,me);if((0,X.z)(de))return(0,R.r)(de,me);if(function ie(de){return de&&"function"==typeof de[N.hZ]}(de)||"string"==typeof de)return function j(de,me){if(!de)throw new Error("Iterable cannot be null");return new w.y(Ne=>{const ze=new E.w;let Je;return ze.add(()=>{Je&&"function"==typeof Je.return&&Je.return()}),ze.add(me.schedule(()=>{Je=de[N.hZ](),ze.add(me.schedule(function(){if(Ne.closed)return;let vt,Rt;try{const Qe=Je.next();vt=Qe.value,Rt=Qe.done}catch(Qe){return void Ne.error(Qe)}Rt?Ne.complete():(Ne.next(vt),this.schedule())}))})),ze})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof w.y?de:new w.y((0,i.s)(de))}},3009:(Y,U,x)=>{"use strict";x.d(U,{n:()=>T});var w=x(2916),i=x(3650),E=x(6454);function T(S,L){return L?(0,E.r)(S,L):new w.y((0,i.V)(S))}},6787:(Y,U,x)=>{"use strict";x.d(U,{T:()=>S});var w=x(2916),i=x(2866),E=x(9146),T=x(3009);function S(...L){let R=Number.POSITIVE_INFINITY,N=null,j=L[L.length-1];return(0,i.K)(j)?(N=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(R=L.pop())):"number"==typeof j&&(R=L.pop()),null===N&&1===L.length&&L[0]instanceof w.y?L[0]:(0,E.J)(R)((0,T.n)(L,N))}},1086:(Y,U,x)=>{"use strict";x.d(U,{of:()=>T});var w=x(2866),i=x(3009),E=x(6454);function T(...S){let L=S[S.length-1];return(0,w.K)(L)?(S.pop(),(0,E.r)(S,L)):(0,i.n)(S)}},1946:(Y,U,x)=>{"use strict";x.d(U,{S3:()=>S});var w=x(6688),i=x(3009),E=x(826),T=x(9054);function S(...N){if(1===N.length){if(!(0,w.k)(N[0]))return N[0];N=N[0]}return(0,i.n)(N,void 0).lift(new L)}class L{call(j,q){return q.subscribe(new R(j))}}class R extends E.L{constructor(j){super(j),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(j){this.observables.push(j)}_complete(){const j=this.observables,q=j.length;if(0===q)this.destination.complete();else{for(let $=0;${"use strict";x.d(U,{_:()=>i});var w=x(2916);function i(T,S){return new w.y(S?L=>S.schedule(E,0,{error:T,subscriber:L}):L=>L.error(T))}function E({error:T,subscriber:S}){S.error(T)}},7221:(Y,U,x)=>{"use strict";x.d(U,{K:()=>T});var w=x(826),i=x(1869),E=x(9054);function T(R){return function(j){const q=new S(R),$=j.lift(q);return q.caught=$}}class S{constructor(N){this.selector=N}call(N,j){return j.subscribe(new L(N,this.selector,this.caught))}}class L extends w.L{constructor(N,j,q){super(N),this.selector=j,this.caught=q}error(N){if(!this.isStopped){let j;try{j=this.selector(N,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const q=new i.d(this,void 0,void 0);this.add(q);const $=(0,E.D)(this,j,void 0,void 0,q);$!==q&&this.add($)}}}},1406:(Y,U,x)=>{"use strict";x.d(U,{b:()=>i});var w=x(1709);function i(E,T){return(0,w.zg)(E,T,1)}},13:(Y,U,x)=>{"use strict";x.d(U,{b:()=>E});var w=x(3489),i=x(353);function E(R,N=i.P){return j=>j.lift(new T(R,N))}class T{constructor(N,j){this.dueTime=N,this.scheduler=j}call(N,j){return j.subscribe(new S(N,this.dueTime,this.scheduler))}}class S extends w.L{constructor(N,j,q){super(N),this.dueTime=j,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(N){this.clearDebounce(),this.lastValue=N,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:N}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(N)}}clearDebounce(){const N=this.debouncedSubscription;null!==N&&(this.remove(N),N.unsubscribe(),this.debouncedSubscription=null)}}function L(R){R.debouncedNext()}},7314:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);function i(S=null){return L=>L.lift(new E(S))}class E{constructor(L){this.defaultValue=L}call(L,R){return R.subscribe(new T(L,this.defaultValue))}}class T extends w.L{constructor(L,R){super(L),this.defaultValue=R,this.isEmpty=!0}_next(L){this.isEmpty=!1,this.destination.next(L)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(Y,U,x)=>{"use strict";x.d(U,{g:()=>S});var w=x(353),i=x(2697),E=x(3489),T=x(9312);function S(j,q=w.P){const X=(0,i.J)(j)?+j-q.now():Math.abs(j);return ie=>ie.lift(new L(X,q))}class L{constructor(q,$){this.delay=q,this.scheduler=$}call(q,$){return $.subscribe(new R(q,this.delay,this.scheduler))}}class R extends E.L{constructor(q,$,X){super(q),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const $=q.source,X=$.queue,ie=q.scheduler,ce=q.destination;for(;X.length>0&&X[0].time-ie.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-ie.now());this.schedule(q,ne)}else this.unsubscribe(),$.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(R.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const $=this.scheduler,X=new N($.now()+this.delay,q);this.queue.push(X),!1===this.active&&this._schedule($)}_next(q){this.scheduleNotification(T.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(T.P.createComplete()),this.unsubscribe()}}class N{constructor(q,$){this.time=q,this.notification=$}}},2198:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var w=x(3489);function i(S,L){return function(N){return N.lift(new E(S,L))}}class E{constructor(L,R){this.predicate=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.predicate,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.predicate=R,this.thisArg=N,this.count=0}_next(L){let R;try{R=this.predicate.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}R&&this.destination.next(L)}}},7224:(Y,U,x)=>{"use strict";x.d(U,{P:()=>R});var w=x(4450),i=x(2198),E=x(2986),T=x(7314),S=x(4907),L=x(5379);function R(N,j){const q=arguments.length>=2;return $=>$.pipe(N?(0,i.h)((X,ie)=>N(X,ie,$)):L.y,(0,E.q)(1),q?(0,T.d)(j):(0,S.T)(()=>new w.K))}},4850:(Y,U,x)=>{"use strict";x.d(U,{U:()=>i});var w=x(3489);function i(S,L){return function(N){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return N.lift(new E(S,L))}}class E{constructor(L,R){this.project=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.project,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.project=R,this.count=0,this.thisArg=N||this}_next(L){let R;try{R=this.project.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(R)}}},9146:(Y,U,x)=>{"use strict";x.d(U,{J:()=>E});var w=x(1709),i=x(5379);function E(T=Number.POSITIVE_INFINITY){return(0,w.zg)(i.y,T)}},1709:(Y,U,x)=>{"use strict";x.d(U,{zg:()=>L});var w=x(9054),i=x(826),E=x(1869),T=x(4850),S=x(5254);function L(j,q,$=Number.POSITIVE_INFINITY){return"function"==typeof q?X=>X.pipe(L((ie,ce)=>(0,S.D)(j(ie,ce)).pipe((0,T.U)((ne,de)=>q(ie,ne,ce,de))),$)):("number"==typeof q&&($=q),X=>X.lift(new R(j,$)))}class R{constructor(q,$=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=$}call(q,$){return $.subscribe(new N(q,this.project,this.concurrent))}}class N extends i.L{constructor(q,$,X=Number.POSITIVE_INFINITY){super(q),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var w=x(3489);function i(){return function(L){return L.lift(new E(L))}}class E{constructor(L){this.connectable=L}call(L,R){const{connectable:N}=this;N._refCount++;const j=new T(L,N),q=R.subscribe(j);return j.closed||(j.connection=N.connect()),q}}class T extends w.L{constructor(L,R){super(L),this.connectable=R}_unsubscribe(){const{connectable:L}=this;if(!L)return void(this.connection=null);this.connectable=null;const R=L._refCount;if(R<=0)return void(this.connection=null);if(L._refCount=R-1,R>1)return void(this.connection=null);const{connection:N}=this,j=L._connection;this.connection=null,j&&(!N||j===N)&&j.unsubscribe()}}},2474:(Y,U,x)=>{"use strict";x.d(U,{B:()=>R});var w=x(1762);class E{constructor(j,q){this.subjectFactory=j,this.selector=q}call(j,q){const{selector:$}=this,X=this.subjectFactory(),ie=$(X).subscribe(j);return ie.add(q.subscribe(X)),ie}}var T=x(4327),S=x(8929);function L(){return new S.xQ}function R(){return N=>(0,T.x)()(function i(N,j){return function($){let X;if(X="function"==typeof N?N:function(){return N},"function"==typeof j)return $.lift(new E(X,j));const ie=Object.create($,w.N);return ie.source=$,ie.subjectFactory=X,ie}}(L)(N))}},7545:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(826),i=x(1869),E=x(9054),T=x(4850),S=x(5254);function L(j,q){return"function"==typeof q?$=>$.pipe(L((X,ie)=>(0,S.D)(j(X,ie)).pipe((0,T.U)((ce,ne)=>q(X,ce,ie,ne))))):$=>$.lift(new R(j))}class R{constructor(q){this.project=q}call(q,$){return $.subscribe(new N(q,this.project))}}class N extends w.L{constructor(q,$){super(q),this.project=$,this.index=0}_next(q){let $;const X=this.index++;try{$=this.project(q,X)}catch(ie){return void this.destination.error(ie)}this._innerSub($,q,X)}_innerSub(q,$,X){const ie=this.innerSubscription;ie&&ie.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,q,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:q}=this;(!q||q.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(q){this.destination.remove(q),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(q,$,X,ie,ce){this.destination.next($)}}},2986:(Y,U,x)=>{"use strict";x.d(U,{q:()=>T});var w=x(3489),i=x(4231),E=x(8896);function T(R){return N=>0===R?(0,E.c)():N.lift(new S(R))}class S{constructor(N){if(this.total=N,this.total<0)throw new i.W}call(N,j){return j.subscribe(new L(N,this.total))}}class L extends w.L{constructor(N,j){super(N),this.total=j,this.count=0}_next(N){const j=this.total,q=++this.count;q<=j&&(this.destination.next(N),q===j&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Y,U,x)=>{"use strict";x.d(U,{b:()=>T});var w=x(3489);function i(){}var E=x(7043);function T(R,N,j){return function($){return $.lift(new S(R,N,j))}}class S{constructor(N,j,q){this.nextOrObserver=N,this.error=j,this.complete=q}call(N,j){return j.subscribe(new L(N,this.nextOrObserver,this.error,this.complete))}}class L extends w.L{constructor(N,j,q,$){super(N),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=q||i,this._tapComplete=$||i,(0,E.m)(j)?(this._context=this,this._tapNext=j):j&&(this._context=j,this._tapNext=j.next||i,this._tapError=j.error||i,this._tapComplete=j.complete||i)}_next(N){try{this._tapNext.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.next(N)}_error(N){try{this._tapError.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.error(N)}_complete(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}},4907:(Y,U,x)=>{"use strict";x.d(U,{T:()=>E});var w=x(4450),i=x(3489);function E(R=L){return N=>N.lift(new T(R))}class T{constructor(N){this.errorFactory=N}call(N,j){return j.subscribe(new S(N,this.errorFactory))}}class S extends i.L{constructor(N,j){super(N),this.errorFactory=j,this.hasValue=!1}_next(N){this.hasValue=!0,this.destination.next(N)}_complete(){if(this.hasValue)return this.destination.complete();{let N;try{N=this.errorFactory()}catch(j){N=j}this.destination.error(N)}}}function L(){return new w.K}},6227:(Y,U,x)=>{"use strict";x.d(U,{V:()=>$});var w=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var T=x(2697),S=x(826),L=x(9054);class N{constructor(ie,ce,ne,de){this.waitFor=ie,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(ie,ce){return ce.subscribe(new j(ie,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class j extends S.L{constructor(ie,ce,ne,de,me){super(ie),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(ie){const{withObservable:ce}=ie;ie._unsubscribeAndRecycle(),ie.add((0,L.D)(ie,ce))}scheduleTimeout(){const{action:ie}=this;ie?this.action=ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(j.dispatchTimeout,this.waitFor,this))}_next(ie){this.absoluteTimeout||this.scheduleTimeout(),super._next(ie)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var q=x(1737);function $(X,ie=w.P){return function R(X,ie,ce=w.P){return ne=>{let de=(0,T.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new N(me,de,ie,ce))}}(X,(0,q._)(new E),ie)}},6454:(Y,U,x)=>{"use strict";x.d(U,{r:()=>E});var w=x(2916),i=x(2654);function E(T,S){return new w.y(L=>{const R=new i.w;let N=0;return R.add(S.schedule(function(){N!==T.length?(L.next(T[N++]),L.closed||R.add(this.schedule())):L.complete()})),R})}},6686:(Y,U,x)=>{"use strict";x.d(U,{o:()=>E});var w=x(2654);class i extends w.w{constructor(S,L){super()}schedule(S,L=0){return this}}class E extends i{constructor(S,L){super(S,L),this.scheduler=S,this.work=L,this.pending=!1}schedule(S,L=0){if(this.closed)return this;this.state=S;const R=this.id,N=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(N,R,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(N,this.id,L),this}requestAsyncId(S,L,R=0){return setInterval(S.flush.bind(S,this),R)}recycleAsyncId(S,L,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return L;clearInterval(L)}execute(S,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(S,L);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,L){let N,R=!1;try{this.work(S)}catch(j){R=!0,N=!!j&&j||new Error(j)}if(R)return this.unsubscribe(),N}_unsubscribe(){const S=this.id,L=this.scheduler,R=L.actions,N=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==N&&R.splice(N,1),null!=S&&(this.id=this.recycleAsyncId(L,S,null)),this.delay=null}}},2268:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=(()=>{class E{constructor(S,L=E.now){this.SchedulerAction=S,this.now=L}schedule(S,L=0,R){return new this.SchedulerAction(this,S).schedule(R,L)}}return E.now=()=>Date.now(),E})();class i extends w{constructor(T,S=w.now){super(T,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(T,S=0,L){return i.delegate&&i.delegate!==this?i.delegate.schedule(T,S,L):super.schedule(T,S,L)}flush(T){const{actions:S}=this;if(this.active)return void S.push(T);let L;this.active=!0;do{if(L=T.execute(T.state,T.delay))break}while(T=S.shift());if(this.active=!1,L){for(;T=S.shift();)T.unsubscribe();throw L}}}},353:(Y,U,x)=>{"use strict";x.d(U,{P:()=>E});var w=x(6686);const E=new(x(2268).v)(w.o)},5430:(Y,U,x)=>{"use strict";x.d(U,{hZ:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Y,U,x)=>{"use strict";x.d(U,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Y,U,x)=>{"use strict";x.d(U,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(Y,U,x)=>{"use strict";x.d(U,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(Y,U,x)=>{"use strict";function w(i){setTimeout(()=>{throw i},0)}x.d(U,{z:()=>w})},5379:(Y,U,x)=>{"use strict";function w(i){return i}x.d(U,{y:()=>w})},6688:(Y,U,x)=>{"use strict";x.d(U,{k:()=>w});const w=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(Y,U,x)=>{"use strict";x.d(U,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(Y,U,x)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(+i)}x.d(U,{J:()=>w})},7043:(Y,U,x)=>{"use strict";function w(i){return"function"==typeof i}x.d(U,{m:()=>w})},7830:(Y,U,x)=>{"use strict";function w(i){return null!==i&&"object"==typeof i}x.d(U,{K:()=>w})},8955:(Y,U,x)=>{"use strict";function w(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(U,{t:()=>w})},2866:(Y,U,x)=>{"use strict";function w(i){return i&&"function"==typeof i.schedule}x.d(U,{K:()=>w})},9249:(Y,U,x)=>{"use strict";x.d(U,{s:()=>$});var w=x(3650),i=x(2782),T=x(5430),L=x(3821),N=x(8515),j=x(8955),q=x(7830);const $=X=>{if(X&&"function"==typeof X[L.L])return(X=>ie=>{const ce=X[L.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(ie)})(X);if((0,N.z)(X))return(0,w.V)(X);if((0,j.t)(X))return(X=>ie=>(X.then(ce=>{ie.closed||(ie.next(ce),ie.complete())},ce=>ie.error(ce)).then(null,i.z),ie))(X);if(X&&"function"==typeof X[T.hZ])return(X=>ie=>{const ce=X[T.hZ]();for(;;){const ne=ce.next();if(ne.done){ie.complete();break}if(ie.next(ne.value),ie.closed)break}return"function"==typeof ce.return&&ie.add(()=>{ce.return&&ce.return()}),ie})(X);{const ce=`You provided ${(0,q.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(Y,U,x)=>{"use strict";x.d(U,{V:()=>w});const w=i=>E=>{for(let T=0,S=i.length;T{"use strict";x.d(U,{D:()=>T});var w=x(1869),i=x(9249),E=x(2916);function T(S,L,R,N,j=new w.d(S,R,N)){if(!j.closed)return L instanceof E.y?L.subscribe(j):(0,i.s)(L)(j)}},6700:(Y,U,x)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":3165,"./hy-am.js":3165,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":4486,"./th.js":4486,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(T){var S=E(T);return x(S)}function E(T){if(!x.o(w,T)){var S=new Error("Cannot find module '"+T+"'");throw S.code="MODULE_NOT_FOUND",S}return w[T]}i.keys=function(){return Object.keys(w)},i.resolve=E,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function N(fe,Ae,Ce,Me){return new(Ce||(Ce=Promise))(function(ge,Tt){function Lt(bt){try{st(Me.next(bt))}catch(kn){Tt(kn)}}function Ci(bt){try{st(Me.throw(bt))}catch(kn){Tt(kn)}}function st(bt){bt.done?ge(bt.value):function ke(ge){return ge instanceof Ce?ge:new Ce(function(Tt){Tt(ge)})}(bt.value).then(Lt,Ci)}st((Me=Me.apply(fe,Ae||[])).next())})}x.d(U,{mG:()=>N})},9808:(Y,U,x)=>{"use strict";x.d(U,{mr:()=>ze,Ov:()=>qu,ez:()=>za,K0:()=>R,uU:()=>He,Do:()=>vt,V_:()=>q,Ye:()=>Rt,S$:()=>me,mk:()=>Ia,sg:()=>yn,O5:()=>Kn,PC:()=>As,RF:()=>On,n9:()=>er,ED:()=>Zo,b0:()=>Je,lw:()=>N,gd:()=>dn,EM:()=>Ts,JF:()=>Li,NF:()=>Fn,PM:()=>wn,w_:()=>L,bD:()=>_i,q:()=>E,Mx:()=>_s,HT:()=>S});var w=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class L{}const R=new w.OlP("DocumentToken");let N=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function j(){return(0,w.LFG)($)}()},providedIn:"platform"}),B})();const q=new w.OlP("Location Initialized");let $=(()=>{class B extends N{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("popstate",I,!1),()=>Q.removeEventListener("popstate",I)}onHashChange(I){const Q=E().getGlobalEventTarget(this._doc,"window");return Q.addEventListener("hashchange",I,!1),()=>Q.removeEventListener("hashchange",I)}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(I){this.location.pathname=I}pushState(I,Q,re){X()?this._history.pushState(I,Q,re):this.location.hash=re}replaceState(I,Q,re){X()?this._history.replaceState(I,Q,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(R))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function ie(){return new $((0,w.LFG)(R))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,G){if(0==B.length)return G;if(0==G.length)return B;let I=0;return B.endsWith("/")&&I++,G.startsWith("/")&&I++,2==I?B+G.substring(1):1==I?B+G:B+"/"+G}function ne(B){const G=B.match(/#|\?|$/),I=G&&G.index||B.length;return B.slice(0,I-("/"===B[I-1]?1:0))+B.slice(I)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Ne(B){const G=(0,w.LFG)(R).location;return new Je((0,w.LFG)(N),G&&G.origin||"")}()},providedIn:"root"}),B})();const ze=new w.OlP("appBaseHref");let Je=(()=>{class B extends me{constructor(I,Q){if(super(),this._platformLocation=I,this._removeListenerFns=[],null==Q&&(Q=this._platformLocation.getBaseHrefFromDOM()),null==Q)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=Q}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ce(this._baseHref,I)}path(I=!1){const Q=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&I?`${Q}${re}`:Q}pushState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),vt=(()=>{class B extends me{constructor(I,Q){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=Q&&(this._baseHref=Q)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let Q=this._platformLocation.hash;return null==Q&&(Q="#"),Q.length>0?Q.substring(1):Q}prepareExternalUrl(I){const Q=ce(this._baseHref,I);return Q.length>0?"#"+Q:Q}pushState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.pushState(I,Q,Se)}replaceState(I,Q,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.replaceState(I,Q,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformLocation).historyGo)||void 0===re||re.call(Q,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),Rt=(()=>{class B{constructor(I,Q){this._subject=new w.vpe,this._urlChangeListeners=[],this._platformStrategy=I;const re=this._platformStrategy.getBaseHref();this._platformLocation=Q,this._baseHref=ne(St(re)),this._platformStrategy.onPopState(ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:ye.state,type:ye.type})})}path(I=!1){return this.normalize(this._platformStrategy.path(I))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(I,Q=""){return this.path()==this.normalize(I+de(Q))}normalize(I){return B.stripTrailingSlash(function Yi(B,G){return B&&G.startsWith(B)?G.substring(B.length):G}(this._baseHref,St(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._platformStrategy.prepareExternalUrl(I)}go(I,Q="",re=null){this._platformStrategy.pushState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}replaceState(I,Q="",re=null){this._platformStrategy.replaceState(re,"",I,Q),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(Q)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(I=0){var Q,re;null===(re=(Q=this._platformStrategy).historyGo)||void 0===re||re.call(Q,I)}onUrlChange(I){this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Q=>{this._notifyUrlChangeListeners(Q.url,Q.state)}))}_notifyUrlChangeListeners(I="",Q){this._urlChangeListeners.forEach(re=>re(I,Q))}subscribe(I,Q,re){return this._subject.subscribe({next:I,error:Q,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(I){return new(I||B)(w.LFG(me),w.LFG(N))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Qe(){return new Rt((0,w.LFG)(me),(0,w.LFG)(N))}()},providedIn:"root"}),B})();function St(B){return B.replace(/\/index.html$/,"")}var Ae=(()=>((Ae=Ae||{})[Ae.Zero=0]="Zero",Ae[Ae.One=1]="One",Ae[Ae.Two=2]="Two",Ae[Ae.Few=3]="Few",Ae[Ae.Many=4]="Many",Ae[Ae.Other=5]="Other",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Format=0]="Format",Ce[Ce.Standalone=1]="Standalone",Ce))(),Me=(()=>((Me=Me||{})[Me.Narrow=0]="Narrow",Me[Me.Abbreviated=1]="Abbreviated",Me[Me.Wide=2]="Wide",Me[Me.Short=3]="Short",Me))(),ke=(()=>((ke=ke||{})[ke.Short=0]="Short",ke[ke.Medium=1]="Medium",ke[ke.Long=2]="Long",ke[ke.Full=3]="Full",ke))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function di(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateFormat],G)}function hr(B,G){return Ue((0,w.cg1)(B)[w.wAp.TimeFormat],G)}function sn(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateTimeFormat],G)}function pi(B,G){const I=(0,w.cg1)(B),Q=I[w.wAp.NumberSymbols][G];if(void 0===Q){if(G===ge.CurrencyDecimal)return I[w.wAp.NumberSymbols][ge.Decimal];if(G===ge.CurrencyGroup)return I[w.wAp.NumberSymbols][ge.Group]}return Q}const Pn=w.kL8;function ue(B){if(!B[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(B,G){for(let I=G;I>-1;I--)if(void 0!==B[I])return B[I];throw new Error("Locale data API: locale data undefined")}function it(B){const[G,I]=B.split(":");return{hours:+G,minutes:+I}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pe={},De=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Fe=(()=>((Fe=Fe||{})[Fe.Short=0]="Short",Fe[Fe.ShortGMT=1]="ShortGMT",Fe[Fe.Long=2]="Long",Fe[Fe.Extended=3]="Extended",Fe))(),xe=(()=>((xe=xe||{})[xe.FullYear=0]="FullYear",xe[xe.Month=1]="Month",xe[xe.Date=2]="Date",xe[xe.Hours=3]="Hours",xe[xe.Minutes=4]="Minutes",xe[xe.Seconds=5]="Seconds",xe[xe.FractionalSeconds=6]="FractionalSeconds",xe[xe.Day=7]="Day",xe))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function It(B,G,I,Q){let re=function Be(B){if(ln(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,ye=1,Se=1]=B.split("-").map(nt=>+nt);return Ni(re,ye-1,Se)}const I=parseFloat(B);if(!isNaN(B-I))return new Date(I);let Q;if(Q=B.match(oe))return function vi(B){const G=new Date(0);let I=0,Q=0;const re=B[8]?G.setUTCFullYear:G.setFullYear,ye=B[8]?G.setUTCHours:G.setHours;B[9]&&(I=Number(B[9]+B[10]),Q=Number(B[9]+B[11])),re.call(G,Number(B[1]),Number(B[2])-1,Number(B[3]));const Se=Number(B[4]||0)-I,nt=Number(B[5]||0)-Q,Yt=Number(B[6]||0),Xt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return ye.call(G,Se,nt,Yt,Xt),G}(Q)}const G=new Date(B);if(!ln(G))throw new Error(`Unable to convert "${B}" into a date`);return G}(B);G=Vt(I,G)||G;let nt,Se=[];for(;G;){if(nt=De.exec(G),!nt){Se.push(G);break}{Se=Se.concat(nt.slice(1));const At=Se.pop();if(!At)break;G=At}}let Yt=re.getTimezoneOffset();Q&&(Yt=gs(Q,Yt),re=function M(B,G,I){const Q=I?-1:1,re=B.getTimezoneOffset();return function eo(B,G){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+G),B}(B,Q*(gs(G,re)-re))}(re,Q,!0));let Xt="";return Se.forEach(At=>{const Ft=function ms(B){if(fr[B])return fr[B];let G;switch(B){case"G":case"GG":case"GGG":G=Gt(Ge.Eras,Me.Abbreviated);break;case"GGGG":G=Gt(Ge.Eras,Me.Wide);break;case"GGGGG":G=Gt(Ge.Eras,Me.Narrow);break;case"y":G=Ze(xe.FullYear,1,0,!1,!0);break;case"yy":G=Ze(xe.FullYear,2,0,!0,!0);break;case"yyy":G=Ze(xe.FullYear,3,0,!1,!0);break;case"yyyy":G=Ze(xe.FullYear,4,0,!1,!0);break;case"Y":G=ua(1);break;case"YY":G=ua(2,!0);break;case"YYY":G=ua(3);break;case"YYYY":G=ua(4);break;case"M":case"L":G=Ze(xe.Month,1,1);break;case"MM":case"LL":G=Ze(xe.Month,2,1);break;case"MMM":G=Gt(Ge.Months,Me.Abbreviated);break;case"MMMM":G=Gt(Ge.Months,Me.Wide);break;case"MMMMM":G=Gt(Ge.Months,Me.Narrow);break;case"LLL":G=Gt(Ge.Months,Me.Abbreviated,Ce.Standalone);break;case"LLLL":G=Gt(Ge.Months,Me.Wide,Ce.Standalone);break;case"LLLLL":G=Gt(Ge.Months,Me.Narrow,Ce.Standalone);break;case"w":G=da(1);break;case"ww":G=da(2);break;case"W":G=da(1,!0);break;case"d":G=Ze(xe.Date,1);break;case"dd":G=Ze(xe.Date,2);break;case"c":case"cc":G=Ze(xe.Day,1);break;case"ccc":G=Gt(Ge.Days,Me.Abbreviated,Ce.Standalone);break;case"cccc":G=Gt(Ge.Days,Me.Wide,Ce.Standalone);break;case"ccccc":G=Gt(Ge.Days,Me.Narrow,Ce.Standalone);break;case"cccccc":G=Gt(Ge.Days,Me.Short,Ce.Standalone);break;case"E":case"EE":case"EEE":G=Gt(Ge.Days,Me.Abbreviated);break;case"EEEE":G=Gt(Ge.Days,Me.Wide);break;case"EEEEE":G=Gt(Ge.Days,Me.Narrow);break;case"EEEEEE":G=Gt(Ge.Days,Me.Short);break;case"a":case"aa":case"aaa":G=Gt(Ge.DayPeriods,Me.Abbreviated);break;case"aaaa":G=Gt(Ge.DayPeriods,Me.Wide);break;case"aaaaa":G=Gt(Ge.DayPeriods,Me.Narrow);break;case"b":case"bb":case"bbb":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Standalone,!0);break;case"bbbb":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Standalone,!0);break;case"bbbbb":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Standalone,!0);break;case"B":case"BB":case"BBB":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Format,!0);break;case"BBBB":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Format,!0);break;case"BBBBB":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Format,!0);break;case"h":G=Ze(xe.Hours,1,-12);break;case"hh":G=Ze(xe.Hours,2,-12);break;case"H":G=Ze(xe.Hours,1);break;case"HH":G=Ze(xe.Hours,2);break;case"m":G=Ze(xe.Minutes,1);break;case"mm":G=Ze(xe.Minutes,2);break;case"s":G=Ze(xe.Seconds,1);break;case"ss":G=Ze(xe.Seconds,2);break;case"S":G=Ze(xe.FractionalSeconds,1);break;case"SS":G=Ze(xe.FractionalSeconds,2);break;case"SSS":G=Ze(xe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":G=pr(Fe.Short);break;case"ZZZZZ":G=pr(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":G=pr(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":G=pr(Fe.Long);break;default:return null}return fr[B]=G,G}(At);Xt+=Ft?Ft(re,I,Yt):"''"===At?"'":At.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xt}function Ni(B,G,I){const Q=new Date(0);return Q.setFullYear(B,G,I),Q.setHours(0,0,0),Q}function Vt(B,G){const I=function Lt(B){return(0,w.cg1)(B)[w.wAp.LocaleId]}(B);if(Pe[I]=Pe[I]||{},Pe[I][G])return Pe[I][G];let Q="";switch(G){case"shortDate":Q=di(B,ke.Short);break;case"mediumDate":Q=di(B,ke.Medium);break;case"longDate":Q=di(B,ke.Long);break;case"fullDate":Q=di(B,ke.Full);break;case"shortTime":Q=hr(B,ke.Short);break;case"mediumTime":Q=hr(B,ke.Medium);break;case"longTime":Q=hr(B,ke.Long);break;case"fullTime":Q=hr(B,ke.Full);break;case"short":const re=Vt(B,"shortTime"),ye=Vt(B,"shortDate");Q=jr(sn(B,ke.Short),[re,ye]);break;case"medium":const Se=Vt(B,"mediumTime"),nt=Vt(B,"mediumDate");Q=jr(sn(B,ke.Medium),[Se,nt]);break;case"long":const Yt=Vt(B,"longTime"),Xt=Vt(B,"longDate");Q=jr(sn(B,ke.Long),[Yt,Xt]);break;case"full":const At=Vt(B,"fullTime"),Ft=Vt(B,"fullDate");Q=jr(sn(B,ke.Full),[At,Ft])}return Q&&(Pe[I][G]=Q),Q}function jr(B,G){return G&&(B=B.replace(/\{([^}]+)}/g,function(I,Q){return null!=G&&Q in G?G[Q]:I})),B}function Vi(B,G,I="-",Q,re){let ye="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,ye=I));let Se=String(B);for(;Se.length0||nt>-I)&&(nt+=I),B===xe.Hours)0===nt&&-12===I&&(nt=12);else if(B===xe.FractionalSeconds)return function ft(B,G){return Vi(B,3).substr(0,G)}(nt,G);const Yt=pi(Se,ge.MinusSign);return Vi(nt,G,Yt,Q,re)}}function Gt(B,G,I=Ce.Format,Q=!1){return function(re,ye){return function Et(B,G,I,Q,re,ye){switch(I){case Ge.Months:return function bt(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.MonthsFormat],Q[w.wAp.MonthsStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getMonth()];case Ge.Days:return function st(B,G,I){const Q=(0,w.cg1)(B),ye=Ue([Q[w.wAp.DaysFormat],Q[w.wAp.DaysStandalone]],G);return Ue(ye,I)}(G,re,Q)[B.getDay()];case Ge.DayPeriods:const Se=B.getHours(),nt=B.getMinutes();if(ye){const Xt=function Le(B){const G=(0,w.cg1)(B);return ue(G),(G[w.wAp.ExtraData][2]||[]).map(Q=>"string"==typeof Q?it(Q):[it(Q[0]),it(Q[1])])}(G),At=function _e(B,G,I){const Q=(0,w.cg1)(B);ue(Q);const ye=Ue([Q[w.wAp.ExtraData][0],Q[w.wAp.ExtraData][1]],G)||[];return Ue(ye,I)||[]}(G,re,Q),Ft=Xt.findIndex(Gi=>{if(Array.isArray(Gi)){const[Ti,ki]=Gi,_a=Se>=Ti.hours&&nt>=Ti.minutes,Er=Se0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Fe.Short:return(re>=0?"+":"")+Vi(Se,2,ye)+Vi(Math.abs(re%60),2,ye);case Fe.ShortGMT:return"GMT"+(re>=0?"+":"")+Vi(Se,1,ye);case Fe.Long:return"GMT"+(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);case Fe.Extended:return 0===Q?"Z":(re>=0?"+":"")+Vi(Se,2,ye)+":"+Vi(Math.abs(re%60),2,ye);default:throw new Error(`Unknown zone width "${B}"`)}}}function Oa(B){return Ni(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function da(B,G=!1){return function(I,Q){let re;if(G){const ye=new Date(I.getFullYear(),I.getMonth(),1).getDay()-1,Se=I.getDate();re=1+Math.floor((Se+ye)/7)}else{const ye=Oa(I),Se=function sc(B){const G=Ni(B,0,1).getDay();return Ni(B,0,1+(G<=4?4:11)-G)}(ye.getFullYear()),nt=ye.getTime()-Se.getTime();re=1+Math.round(nt/6048e5)}return Vi(re,B,pi(Q,ge.MinusSign))}}function ua(B,G=!1){return function(I,Q){return Vi(Oa(I).getFullYear(),B,pi(Q,ge.MinusSign),G)}}const fr={};function gs(B,G){B=B.replace(/:/g,"");const I=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(I)?G:I}function ln(B){return B instanceof Date&&!isNaN(B.valueOf())}class mi{}let Hi=(()=>{class B extends mi{constructor(I){super(),this.locale=I}getPluralCategory(I,Q){switch(Pn(Q||this.locale)(I)){case Ae.Zero:return"zero";case Ae.One:return"one";case Ae.Two:return"two";case Ae.Few:return"few";case Ae.Many:return"many";default:return"other"}}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(w.soG))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})();function _s(B,G){G=encodeURIComponent(G);for(const I of B.split(";")){const Q=I.indexOf("="),[re,ye]=-1==Q?[I,""]:[I.slice(0,Q),I.slice(Q+1)];if(re.trim()===G)return decodeURIComponent(ye)}return null}let Ia=(()=>{class B{constructor(I,Q,re,ye){this._iterableDiffers=I,this._keyValueDiffers=Q,this._ngEl=re,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._toggleClass(Q.key,Q.currentValue)),I.forEachRemovedItem(Q=>{Q.previousValue&&this._toggleClass(Q.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(Q=>{if("string"!=typeof Q.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(Q.item)}`);this._toggleClass(Q.item,!0)}),I.forEachRemovedItem(Q=>this._toggleClass(Q.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!0)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!!I[Q])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(Q=>this._toggleClass(Q,!1)):Object.keys(I).forEach(Q=>this._toggleClass(Q,!1)))}_toggleClass(I,Q){(I=I.trim())&&I.split(/\s+/g).forEach(re=>{Q?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class bs{constructor(G,I,Q,re){this.$implicit=G,this.ngForOf=I,this.index=Q,this.count=re}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 yn=(()=>{class B{constructor(I,Q,re){this._viewContainer=I,this._template=Q,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const Q=this._viewContainer;I.forEachOperation((re,ye,Se)=>{if(null==re.previousIndex)Q.createEmbeddedView(this._template,new bs(re.item,this._ngForOf,-1,-1),null===Se?void 0:Se);else if(null==Se)Q.remove(null===ye?void 0:ye);else if(null!==ye){const nt=Q.get(ye);Q.move(nt,Se),Ba(nt,re)}});for(let re=0,ye=Q.length;re{Ba(Q.get(re.currentIndex),re)})}static ngTemplateContextGuard(I,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Ba(B,G){B.context.$implicit=G.item}let Kn=(()=>{class B{constructor(I,Q){this._viewContainer=I,this._context=new gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Q}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){lc("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){lc("ngIfElse",I),this._elseTemplateRef=I,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(I,Q){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class gi{constructor(){this.$implicit=null,this.ngIf=null}}function lc(B,G){if(G&&!G.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,w.AaK)(G)}'.`)}class Na{constructor(G,I){this._viewContainerRef=G,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(G){G&&!this._created?this.create():!G&&this._created&&this.destroy()}}let On=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const Q=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Q,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Q}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let Q=0;Q{class B{constructor(I,Q,re){this.ngSwitch=re,re._addCase(),this._view=new Na(I,Q)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Zo=(()=>{class B{constructor(I,Q,re){re._addDefault(new Na(I,Q))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),As=(()=>{class B{constructor(I,Q,re){this._ngEl=I,this._differs=Q,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,Q){const[re,ye]=I.split(".");null!=(Q=null!=Q&&ye?`${Q}${ye}`:Q)?this._renderer.setStyle(this._ngEl.nativeElement,re,Q):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(I){I.forEachRemovedItem(Q=>this._setStyle(Q.key,null)),I.forEachAddedItem(Q=>this._setStyle(Q.key,Q.currentValue)),I.forEachChangedItem(Q=>this._setStyle(Q.key,Q.currentValue))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})();function mr(B,G){return new w.vHH(2100,"")}class _f{createSubscription(G,I){return G.subscribe({next:I,error:Q=>{throw Q}})}dispose(G){G.unsubscribe()}onDestroy(G){G.unsubscribe()}}class bf{createSubscription(G,I){return G.then(I,Q=>{throw Q})}dispose(G){}onDestroy(G){}}const Af=new bf,yf=new _f;let qu=(()=>{class B{constructor(I){this._ref=I,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,Q=>this._updateLatestValue(I,Q))}_selectStrategy(I){if((0,w.QGY)(I))return Af;if((0,w.F4k)(I))return yf;throw mr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,Q){I===this._obj&&(this._latestValue=Q,this._ref.markForCheck())}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.sBO,16))},B.\u0275pipe=w.Yjl({name:"async",type:B,pure:!1}),B})(),dn=(()=>{class B{transform(I){if(null==I)return null;if("string"!=typeof I)throw mr();return I.toUpperCase()}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275pipe=w.Yjl({name:"uppercase",type:B,pure:!0}),B})();const $e=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let He=(()=>{class B{constructor(I,Q){this.locale=I,this.defaultTimezone=Q}transform(I,Q="mediumDate",re,ye){var Se;if(null==I||""===I||I!=I)return null;try{return It(I,Q,ye||this.locale,null!==(Se=null!=re?re:this.defaultTimezone)&&void 0!==Se?Se:void 0)}catch(nt){throw mr()}}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.soG,16),w.Y36($e,24))},B.\u0275pipe=w.Yjl({name:"date",type:B,pure:!0}),B})(),za=(()=>{class B{}return B.\u0275fac=function(I){return new(I||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({providers:[{provide:mi,useClass:Hi}]}),B})();const _i="browser";function Fn(B){return B===_i}function wn(B){return"server"===B}let Ts=(()=>{class B{}return B.\u0275prov=(0,w.Yz7)({token:B,providedIn:"root",factory:()=>new ga((0,w.LFG)(R),window)}),B})();class ga{constructor(G,I){this.document=G,this.window=I,this.offset=()=>[0,0]}setOffset(G){this.offset=Array.isArray(G)?()=>G:G}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(G){this.supportsScrolling()&&this.window.scrollTo(G[0],G[1])}scrollToAnchor(G){if(!this.supportsScrolling())return;const I=function ro(B,G){const I=B.getElementById(G)||B.getElementsByName(G)[0];if(I)return I;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const Q=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=Q.currentNode;for(;re;){const ye=re.shadowRoot;if(ye){const Se=ye.getElementById(G)||ye.querySelector(`[name="${G}"]`);if(Se)return Se}re=Q.nextNode()}}return null}(this.document,G);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(G){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=G)}}scrollToElement(G){const I=G.getBoundingClientRect(),Q=I.left+this.window.pageXOffset,re=I.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo(Q-ye[0],re-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const G=cc(this.window.history)||cc(Object.getPrototypeOf(this.window.history));return!(!G||!G.writable&&!G.set)}catch(G){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(G){return!1}}}function cc(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class Li{}},520:(Y,U,x)=>{"use strict";x.d(U,{TP:()=>Lt,eN:()=>ge,JF:()=>Ue,qT:()=>ze,WM:()=>q,LE:()=>me,Zn:()=>Ce});var w=x(9808),i=x(5e3),E=x(1086),T=x(2916),S=x(1406),L=x(2198),R=x(4850);class N{}class j{}class q{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(oe=>{const Pe=oe.indexOf(":");if(Pe>0){const De=oe.slice(0,Pe),Fe=De.toLowerCase(),xe=oe.slice(Pe+1).trim();this.maybeSetNormalizedName(De,Fe),this.headers.has(Fe)?this.headers.get(Fe).push(xe):this.headers.set(Fe,[xe])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(oe=>{let Pe=ae[oe];const De=oe.toLowerCase();"string"==typeof Pe&&(Pe=[Pe]),Pe.length>0&&(this.headers.set(De,Pe),this.maybeSetNormalizedName(oe,De))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const oe=this.headers.get(ae.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,oe){return this.clone({name:ae,value:oe,op:"a"})}set(ae,oe){return this.clone({name:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({name:ae,value:oe,op:"d"})}maybeSetNormalizedName(ae,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,ae)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(oe=>{this.headers.set(oe,ae.headers.get(oe)),this.normalizedNames.set(oe,ae.normalizedNames.get(oe))})}clone(ae){const oe=new q;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),oe}applyUpdate(ae){const oe=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let Pe=ae.value;if("string"==typeof Pe&&(Pe=[Pe]),0===Pe.length)return;this.maybeSetNormalizedName(ae.name,oe);const De=("a"===ae.op?this.headers.get(oe):void 0)||[];De.push(...Pe),this.headers.set(oe,De);break;case"d":const Fe=ae.value;if(Fe){let xe=this.headers.get(oe);if(!xe)return;xe=xe.filter(Ge=>-1===Fe.indexOf(Ge)),0===xe.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,xe)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>ae(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(ae){return ne(ae)}encodeValue(ae){return ne(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const ie=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(ie,(ae,oe)=>{var Pe;return null!==(Pe=ce[oe])&&void 0!==Pe?Pe:ae})}function de(Te){return`${Te}`}class me{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new $,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,ae){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(De=>{const Fe=De.indexOf("="),[xe,Ge]=-1==Fe?[ae.decodeKey(De),""]:[ae.decodeKey(De.slice(0,Fe)),ae.decodeValue(De.slice(Fe+1))],It=oe.get(xe)||[];It.push(Ge),oe.set(xe,It)}),oe}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(oe=>{const Pe=ae.fromObject[oe];this.map.set(oe,Array.isArray(Pe)?Pe:[Pe])})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const oe=this.map.get(ae);return oe?oe[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,oe){return this.clone({param:ae,value:oe,op:"a"})}appendAll(ae){const oe=[];return Object.keys(ae).forEach(Pe=>{const De=ae[Pe];Array.isArray(De)?De.forEach(Fe=>{oe.push({param:Pe,value:Fe,op:"a"})}):oe.push({param:Pe,value:De,op:"a"})}),this.clone(oe)}set(ae,oe){return this.clone({param:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({param:ae,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const oe=this.encoder.encodeKey(ae);return this.map.get(ae).map(Pe=>oe+"="+this.encoder.encodeValue(Pe)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(ae),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const oe=("a"===ae.op?this.map.get(ae.param):void 0)||[];oe.push(de(ae.value)),this.map.set(ae.param,oe);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let Pe=this.map.get(ae.param)||[];const De=Pe.indexOf(de(ae.value));-1!==De&&Pe.splice(De,1),Pe.length>0?this.map.set(ae.param,Pe):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class ze{constructor(){this.map=new Map}set(ae,oe){return this.map.set(ae,oe),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function vt(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function Rt(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Qe(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class St{constructor(ae,oe,Pe,De){let Fe;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Je(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==Pe?Pe:null,Fe=De):Fe=Pe,Fe&&(this.reportProgress=!!Fe.reportProgress,this.withCredentials=!!Fe.withCredentials,Fe.responseType&&(this.responseType=Fe.responseType),Fe.headers&&(this.headers=Fe.headers),Fe.context&&(this.context=Fe.context),Fe.params&&(this.params=Fe.params)),this.headers||(this.headers=new q),this.context||(this.context=new ze),this.params){const xe=this.params.toString();if(0===xe.length)this.urlWithParams=oe;else{const Ge=oe.indexOf("?");this.urlWithParams=oe+(-1===Ge?"?":GeVi.set(ft,ae.setHeaders[ft]),Ni)),ae.setParams&&(Vt=Object.keys(ae.setParams).reduce((Vi,ft)=>Vi.set(ft,ae.setParams[ft]),Vt)),new St(Pe,De,xe,{params:Vt,headers:Ni,context:jr,reportProgress:It,responseType:Fe,withCredentials:Ge})}}var yt=(()=>((yt=yt||{})[yt.Sent=0]="Sent",yt[yt.UploadProgress=1]="UploadProgress",yt[yt.ResponseHeader=2]="ResponseHeader",yt[yt.DownloadProgress=3]="DownloadProgress",yt[yt.Response=4]="Response",yt[yt.User=5]="User",yt))();class fe{constructor(ae,oe=200,Pe="OK"){this.headers=ae.headers||new q,this.status=void 0!==ae.status?ae.status:oe,this.statusText=ae.statusText||Pe,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends fe{constructor(ae={}){super(ae),this.type=yt.ResponseHeader}clone(ae={}){return new Ae({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends fe{constructor(ae={}){super(ae),this.type=yt.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Me extends fe{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function ke(Te,ae){return{body:ae,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,Pe,De={}){let Fe;if(oe instanceof St)Fe=oe;else{let It,Ni;It=De.headers instanceof q?De.headers:new q(De.headers),De.params&&(Ni=De.params instanceof me?De.params:new me({fromObject:De.params})),Fe=new St(oe,Pe,void 0!==De.body?De.body:null,{headers:It,context:De.context,params:Ni,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const xe=(0,E.of)(Fe).pipe((0,S.b)(It=>this.handler.handle(It)));if(oe instanceof St||"events"===De.observe)return xe;const Ge=xe.pipe((0,L.h)(It=>It instanceof Ce));switch(De.observe||"body"){case"body":switch(Fe.responseType){case"arraybuffer":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return It.body}));case"blob":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&!(It.body instanceof Blob))throw new Error("Response is not a Blob.");return It.body}));case"text":return Ge.pipe((0,R.U)(It=>{if(null!==It.body&&"string"!=typeof It.body)throw new Error("Response is not a string.");return It.body}));default:return Ge.pipe((0,R.U)(It=>It.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(oe,Pe={}){return this.request("DELETE",oe,Pe)}get(oe,Pe={}){return this.request("GET",oe,Pe)}head(oe,Pe={}){return this.request("HEAD",oe,Pe)}jsonp(oe,Pe){return this.request("JSONP",oe,{params:(new me).append(Pe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,Pe={}){return this.request("OPTIONS",oe,Pe)}patch(oe,Pe,De={}){return this.request("PATCH",oe,ke(De,Pe))}post(oe,Pe,De={}){return this.request("POST",oe,ke(De,Pe))}put(oe,Pe,De={}){return this.request("PUT",oe,ke(De,Pe))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(N))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class Tt{constructor(ae,oe){this.next=ae,this.interceptor=oe}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Lt=new i.OlP("HTTP_INTERCEPTORS");let Ci=(()=>{class Te{intercept(oe,Pe){return Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const sn=/^\)\]\}',?\n/;let Ut=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Pe=>{const De=this.xhrFactory.build();if(De.open(oe.method,oe.urlWithParams),oe.withCredentials&&(De.withCredentials=!0),oe.headers.forEach((ft,Ze)=>De.setRequestHeader(ft,Ze.join(","))),oe.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const ft=oe.detectContentTypeHeader();null!==ft&&De.setRequestHeader("Content-Type",ft)}if(oe.responseType){const ft=oe.responseType.toLowerCase();De.responseType="json"!==ft?ft:"text"}const Fe=oe.serializeBody();let xe=null;const Ge=()=>{if(null!==xe)return xe;const ft=De.statusText||"OK",Ze=new q(De.getAllResponseHeaders()),Vn=function pi(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(De)||oe.url;return xe=new Ae({headers:Ze,status:De.status,statusText:ft,url:Vn}),xe},It=()=>{let{headers:ft,status:Ze,statusText:Vn,url:Gt}=Ge(),Et=null;204!==Ze&&(Et=void 0===De.response?De.responseText:De.response),0===Ze&&(Ze=Et?200:0);let pr=Ze>=200&&Ze<300;if("json"===oe.responseType&&"string"==typeof Et){const Xn=Et;Et=Et.replace(sn,"");try{Et=""!==Et?JSON.parse(Et):null}catch(zn){Et=Xn,pr&&(pr=!1,Et={error:zn,text:Et})}}pr?(Pe.next(new Ce({body:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0})),Pe.complete()):Pe.error(new Me({error:Et,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0}))},Ni=ft=>{const{url:Ze}=Ge(),Vn=new Me({error:ft,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Ze||void 0});Pe.error(Vn)};let Vt=!1;const jr=ft=>{Vt||(Pe.next(Ge()),Vt=!0);let Ze={type:yt.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),"text"===oe.responseType&&!!De.responseText&&(Ze.partialText=De.responseText),Pe.next(Ze)},Vi=ft=>{let Ze={type:yt.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),Pe.next(Ze)};return De.addEventListener("load",It),De.addEventListener("error",Ni),De.addEventListener("timeout",Ni),De.addEventListener("abort",Ni),oe.reportProgress&&(De.addEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.addEventListener("progress",Vi)),De.send(Fe),Pe.next({type:yt.Sent}),()=>{De.removeEventListener("error",Ni),De.removeEventListener("abort",Ni),De.removeEventListener("load",It),De.removeEventListener("timeout",Ni),oe.reportProgress&&(De.removeEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.removeEventListener("progress",Vi)),De.readyState!==De.DONE&&De.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const on=new i.OlP("XSRF_COOKIE_NAME"),la=new i.OlP("XSRF_HEADER_NAME");class ca{}let Fr=(()=>{class Te{constructor(oe,Pe,De){this.doc=oe,this.platform=Pe,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(on))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Pn=(()=>{class Te{constructor(oe,Pe){this.tokenService=oe,this.headerName=Pe}intercept(oe,Pe){const De=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||De.startsWith("http://")||De.startsWith("https://"))return Pe.handle(oe);const Fe=this.tokenService.getToken();return null!==Fe&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Fe)})),Pe.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(ca),i.LFG(la))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ue=(()=>{class Te{constructor(oe,Pe){this.backend=oe,this.injector=Pe,this.chain=null}handle(oe){if(null===this.chain){const Pe=this.injector.get(Lt,[]);this.chain=Pe.reduceRight((De,Fe)=>new Tt(De,Fe),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(j),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),We=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Pn,useClass:Ci}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:on,useValue:oe.cookieName}:[],oe.headerName?{provide:la,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Pn,{provide:Lt,useExisting:Pn,multi:!0},{provide:ca,useClass:Fr},{provide:on,useValue:"XSRF-TOKEN"},{provide:la,useValue:"X-XSRF-TOKEN"}]}),Te})(),Ue=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:N,useClass:ue},Ut,{provide:j,useExisting:Ut}],imports:[[We.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(Y,U,x)=>{"use strict";x.d(U,{deG:()=>kd,tb:()=>zb,AFp:()=>Yp,ip1:()=>qp,CZH:()=>ur,hGG:()=>BC,z2F:()=>cd,sBO:()=>px,Sil:()=>$m,_Vd:()=>Au,EJc:()=>Up,SBq:()=>yu,qLn:()=>Un,vpe:()=>Ir,tBr:()=>xo,XFs:()=>_e,OlP:()=>hi,zs3:()=>Ea,ZZ4:()=>Kp,aQg:()=>Pu,soG:()=>Lu,YKP:()=>bb,h0i:()=>ed,PXZ:()=>Ub,R0b:()=>Jn,FiY:()=>Ga,Lbi:()=>Zm,g9A:()=>sC,n_E:()=>Cu,Qsj:()=>Rw,FYo:()=>ub,JOm:()=>Is,q3G:()=>$i,tp0:()=>So,Rgc:()=>nd,dDg:()=>hC,GfV:()=>Kc,s_b:()=>rd,ifc:()=>Fe,eFA:()=>Gb,G48:()=>Jp,Gpc:()=>$,f3M:()=>Of,_c5:()=>nA,VLi:()=>qb,c2e:()=>Fb,zSh:()=>Vh,wAp:()=>pt,vHH:()=>ne,EiD:()=>$1,mCW:()=>zt,qzn:()=>Os,JVY:()=>UA,pB0:()=>$A,eBb:()=>Y1,L6k:()=>GA,LAX:()=>ZA,cg1:()=>zl,kL8:()=>F_,yhl:()=>q1,dqk:()=>Vt,sIi:()=>js,CqO:()=>F0,QGY:()=>$c,F4k:()=>u_,RDi:()=>cc,AaK:()=>N,z3N:()=>Rs,qOj:()=>qh,TTD:()=>ws,_Bn:()=>lb,xp6:()=>ky,uIk:()=>lr,Q2q:()=>Yh,Tol:()=>x_,Gre:()=>QM,ekj:()=>wr,Suo:()=>$w,Xpm:()=>Oa,lG2:()=>Be,Yz7:()=>di,cJS:()=>sn,oAB:()=>gs,Yjl:()=>vi,Y36:()=>Kd,_UZ:()=>d_,GkF:()=>nu,BQk:()=>z0,ynx:()=>iu,qZA:()=>V0,TgZ:()=>N0,EpF:()=>ep,n5z:()=>Ma,Ikx:()=>om,LFG:()=>hn,$8M:()=>wa,$Z:()=>Oo,NdJ:()=>j0,CRH:()=>Jw,kcU:()=>Td,O4$:()=>mc,oxw:()=>f_,ALo:()=>Mb,lcZ:()=>Dm,xi3:()=>Hm,Dn7:()=>Lm,Hsn:()=>W0,F$t:()=>tp,Q6J:()=>eu,s9C:()=>U0,MGl:()=>ip,hYB:()=>G0,DdM:()=>qw,VKq:()=>Mp,WLB:()=>td,iGM:()=>Dp,MAs:()=>D0,Jf7:()=>dy,CHM:()=>ba,oJD:()=>ey,LSH:()=>Wf,Udp:()=>np,WFA:()=>h_,d8E:()=>lm,YNc:()=>$d,_uU:()=>P_,Oqu:()=>im,hij:()=>ap,AsE:()=>nm,xDo:()=>sp,Gf:()=>Lb});var w=x(8929),i=x(2654),E=x(2916),T=x(6787),S=x(2474);function L(p){for(let m in p)if(p[m]===L)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function N(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(N).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function j(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const q=L({__forward_ref__:L});function $(p){return p.__forward_ref__=$,p.toString=function(){return N(this())},p}function X(p){return ie(p)?p():p}function ie(p){return"function"==typeof p&&p.hasOwnProperty(q)&&p.__forward_ref__===$}class ne extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m:""}`}(m,g)),this.code=m}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ne(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function Rt(p,m){const g=m?` in ${m}`:"";throw new ne(-201,`No provider for ${Ne(p)} found${g}`)}function st(p,m){null==p&&function bt(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function di(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function sn(p){return{providers:p.providers||[],imports:p.imports||[]}}function pi(p){return Ut(p,Fr)||Ut(p,ue)}function Ut(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(Pn)||p.hasOwnProperty(Le))?p[Pn]:null}const Fr=L({\u0275prov:L}),Pn=L({\u0275inj:L}),ue=L({ngInjectableDef:L}),Le=L({ngInjectorDef:L});var _e=(()=>((_e=_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))();let We;function it(p){const m=We;return We=p,m}function Qt(p,m,g){const _=pi(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&_e.Optional?null:void 0!==m?m:void Rt(N(p),"Injector")}function ae(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Fe=(()=>{return(p=Fe||(Fe={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Fe;var p})();const xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,It="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt=xe||"undefined"!=typeof global&&global||Ge||It,ft={},Ze=[],Vn=L({\u0275cmp:L}),Gt=L({\u0275dir:L}),Et=L({\u0275pipe:L}),pr=L({\u0275mod:L}),Xn=L({\u0275fac:L}),zn=L({__NG_ELEMENT_ID__:L});let sc=0;function Oa(p){return ae(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||Ze,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Fe.Emulated,id:"c",styles:p.styles||Ze,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=sc++,_.inputs=M(p.inputs,g),_.outputs=M(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ua):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(fr):null,_})}function ua(p){return ln(p)||function Xe(p){return p[Gt]||null}(p)}function fr(p){return function ni(p){return p[Et]||null}(p)}const ms={};function gs(p){return ae(()=>{const m={type:p.type,bootstrap:p.bootstrap||Ze,declarations:p.declarations||Ze,imports:p.imports||Ze,exports:p.exports||Ze,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(ms[p.id]=p.type),m})}function M(p,m){if(null==p)return ft;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const Be=Oa;function vi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function ln(p){return p[Vn]||null}function xt(p,m){const g=p[pr]||null;if(!g&&!0===m)throw new Error(`Type ${N(p)} does not have '\u0275mod' property.`);return g}function On(p){return Array.isArray(p)&&"object"==typeof p[1]}function er(p){return Array.isArray(p)&&!0===p[1]}function Zo(p){return 0!=(8&p.flags)}function Va(p){return 2==(2&p.flags)}function pa(p){return 1==(1&p.flags)}function tr(p){return null!==p.template}function As(p){return 0!=(512&p[2])}function Mn(p,m){return p.hasOwnProperty(Xn)?p[Xn]:null}class ma{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function ws(){return ut}function ut(p){return p.type.prototype.ngOnChanges&&(p.setInput=Zt),Ui}function Ui(){const p=_i(this),m=null==p?void 0:p.current;if(m){const g=p.previous;if(g===ft)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Zt(p,m,g,_){const y=_i(p)||function Sr(p,m){return p[za]=m}(p,{previous:ft,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],P=D[k];v[k]=new ma(P&&P.currentValue,m,D===ft),p[_]=m}ws.ngInherit=!0;const za="__ngSimpleChanges__";function _i(p){return p[za]||null}let ga;function cc(p){ga=p}function ro(){return void 0!==ga?ga:"undefined"!=typeof document?document:void 0}function Li(p){return!!p.listen}const B={createRenderer:(p,m)=>ro()};function I(p){for(;Array.isArray(p);)p=p[0];return p}function ye(p,m){return I(m[p])}function Se(p,m){return I(m[p.index])}function Yt(p,m){return p.data[m]}function Xt(p,m){return p[m]}function At(p,m){const g=m[p];return On(g)?g:g[0]}function Ft(p){return 4==(4&p[2])}function Gi(p){return 128==(128&p[2])}function ki(p,m){return null==m?null:p[m]}function _a(p){p[18]=0}function Er(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const mt={lFrame:Qu(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Yu(){return mt.bindingsEnabled}function be(){return mt.lFrame.lView}function $t(){return mt.lFrame.tView}function ba(p){return mt.lFrame.contextLView=p,p[8]}function Zi(){let p=dc();for(;null!==p&&64===p.type;)p=p.parent;return p}function dc(){return mt.lFrame.currentTNode}function qr(p,m){const g=mt.lFrame;g.currentTNode=p,g.isParent=m}function uc(){return mt.lFrame.isParent}function gr(){mt.lFrame.isParent=!1}function tl(){return mt.isInCheckNoChangesMode}function wd(p){mt.isInCheckNoChangesMode=p}function ei(){const p=mt.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function un(){return mt.lFrame.bindingIndex}function so(){return mt.lFrame.bindingIndex++}function jn(p){const m=mt.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Ju(p,m){const g=mt.lFrame;g.bindingIndex=g.bindingRootIndex=p,xs(m)}function xs(p){mt.lFrame.currentDirectiveIndex=p}function oo(p){const m=mt.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function il(){return mt.lFrame.currentQueryIndex}function Yr(p){mt.lFrame.currentQueryIndex=p}function Wt(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function ja(p,m,g){if(g&_e.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&_e.Host||(y=Wt(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=mt.lFrame=Wr();return _.currentTNode=m,_.lView=p,!0}function lo(p){const m=Wr(),g=p[1];mt.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Wr(){const p=mt.lFrame,m=null===p?null:p.child;return null===m?Qu(p):m}function Qu(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function Cd(){const p=mt.lFrame;return mt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const vd=Cd;function pc(){const p=Cd();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function xn(){return mt.lFrame.selectedIndex}function Dr(p){mt.lFrame.selectedIndex=p}function Oi(){const p=mt.lFrame;return Yt(p.tView,p.selectedIndex)}function mc(){mt.lFrame.currentNamespace="svg"}function Td(){!function Xu(){mt.lFrame.currentNamespace=null}()}function al(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:P,ngAfterViewChecked:F,ngOnDestroy:W}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),P&&(p.viewHooks||(p.viewHooks=[])).push(-g,P),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Es(p,m,g){Ku(p,m,3,g)}function sl(p,m,g,_){(3&p[2])===g&&Ku(p,m,g,_)}function gc(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function Ku(p,m,g,_){const v=null!=_?_:-1,D=m.length-1;let k=0;for(let P=void 0!==_?65535&p[18]:0;P=_)break}else m[P]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class co{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function ol(p,m,g){const _=Li(p);let y=0;for(;ym){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Ds=!0;function bc(p){const m=Ds;return Ds=p,m}let fo=0;function Hs(p,m){const g=Wa(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,Ls(_.data,p),Ls(m,null),Ls(_.blueprint,null));const y=ya(p,m),v=p.injectorIndex;if(ho(y)){const D=Ya(y),k=po(y,m),P=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[D+F]|P[D+F]}return m[v+8]=y,v}function Ls(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Wa(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ya(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function dl(p,m,g){!function Ac(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(zn)&&(_=g[zn]),null==_&&(_=g[zn]=fo++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:Hd:m}(g);if("function"==typeof v){if(!ja(m,p,_))return _&_e.Host?Dd(y,g,_):yc(m,g,_,y);try{const D=v(_);if(null!=D||_&_e.Optional)return D;Rt(g)}finally{vd()}}else if("number"==typeof v){let D=null,k=Wa(p,m),P=-1,F=_&_e.Host?m[16][6]:null;for((-1===k||_&_e.SkipSelf)&&(P=-1===k?ya(p,m):m[k+8],-1!==P&&sh(_,!1)?(D=m[1],k=Ya(P),m=po(P,m)):k=-1);-1!==k;){const W=m[1];if(ah(v,k,W.data)){const te=Cf(k,m,g,D,_,F);if(te!==rh)return te}P=m[k+8],-1!==P&&sh(_,m[1].data[k+8]===F)&&ah(v,k,m)?(D=W,k=Ya(P),m=po(P,m)):k=-1}}}return yc(m,g,_,y)}const rh={};function Hd(){return new Ua(Zi(),be())}function Cf(p,m,g,_,y,v){const D=m[1],k=D.data[p+8],W=hl(k,D,g,null==_?Va(k)&&Ds:_!=D&&0!=(3&k.type),y&_e.Host&&v===k);return null!==W?go(m,D,W,k):rh}function hl(p,m,g,_,y){const v=p.providerIndexes,D=m.data,k=1048575&v,P=p.directiveStart,W=v>>20,se=y?k+W:p.directiveEnd;for(let pe=_?k:k+W;pe=P&&ve.type===g)return pe}if(y){const pe=D[P];if(pe&&tr(pe)&&pe.type===g)return P}return null}function go(p,m,g,_){let y=p[g];const v=m.data;if(function xd(p){return p instanceof co}(y)){const D=y;D.resolving&&function ze(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ne(v[g]));const k=bc(D.canSeeViewProviders);D.resolving=!0;const P=D.injectImpl?it(D.injectImpl):null;ja(p,_,_e.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Ss(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=ut(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==P&&it(P),bc(k),D.resolving=!1,vd()}}return y}function ah(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Xn]||Ld(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Xn]||Ld(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Ld(p){return ie(p)?()=>{const m=Ld(X(p));return m&&m()}:Mn(p)}function wa(p){return function mo(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ih(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}(Zi(),p)}const bo="__parameters__";function Ur(p,m,g){return ae(()=>{const _=function ks(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(P,F,W){const te=P.hasOwnProperty(bo)?P[bo]:Object.defineProperty(P,bo,{value:[]})[bo];for(;te.length<=W;)te.push(null);return(te[W]=te[W]||[]).push(D),P}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class hi{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=di({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const kd=new hi("AnalyzeForEntryComponents");function _r(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?qn(g,m):m(g))}function Pd(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function gl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ca(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function ch(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Rd(p,m){const g=va(p,m);if(g>=0)return p[1|g]}function va(p,m){return function wo(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<({token:p})),-1),Ga=To(Ur("Optional"),8),So=To(Ur("SkipSelf"),4);let rt,le;function H(p){var m;return(null===(m=function C(){if(void 0===rt&&(rt=null,Vt.trustedTypes))try{rt=Vt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return rt}())||void 0===m?void 0:m.createHTML(p))||p}function ot(p){var m;return(null===(m=function we(){if(void 0===le&&(le=null,Vt.trustedTypes))try{le=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return le}())||void 0===m?void 0:m.createHTML(p))||p}class Bi{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pr extends Bi{getTypeName(){return"HTML"}}class Ps extends Bi{getTypeName(){return"Style"}}class yl extends Bi{getTypeName(){return"Script"}}class j1 extends Bi{getTypeName(){return"URL"}}class WA extends Bi{getTypeName(){return"ResourceURL"}}function Rs(p){return p instanceof Bi?p.changingThisBreaksApplicationSecurity:p}function Os(p,m){const g=q1(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function q1(p){return p instanceof Bi&&p.getTypeName()||null}function UA(p){return new Pr(p)}function GA(p){return new Ps(p)}function Y1(p){return new yl(p)}function ZA(p){return new j1(p)}function $A(p){return new WA(p)}class zf{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(H(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class JA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0zt(m.trim())).join(", ")),this.buf.push(" ",D,'="',Yf(P),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();G1.hasOwnProperty(g)&&!Lc.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Yf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const qf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KA=/([^\#-~ |!])/g;function Yf(p){return p.replace(/&/g,"&").replace(qf,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(KA,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let Ah;function $1(p,m){let g=null;try{Ah=Ah||function W1(p){const m=new JA(p);return function QA(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new zf(m):m}(p);let _=m?String(m):"";g=Ah.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=Ah.getInertBodyElement(_)}while(_!==v);return H((new XA).sanitizeChildren(kc(g)||g))}finally{if(g){const _=kc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function kc(p){return"content"in p&&function J1(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var $i=(()=>(($i=$i||{})[$i.NONE=0]="NONE",$i[$i.HTML=1]="HTML",$i[$i.STYLE=2]="STYLE",$i[$i.SCRIPT=3]="SCRIPT",$i[$i.URL=4]="URL",$i[$i.RESOURCE_URL=5]="RESOURCE_URL",$i))();function ey(p){const m=Pc();return m?ot(m.sanitize($i.HTML,p)||""):Os(p,"HTML")?ot(Rs(p)):$1(ro(),me(p))}function Wf(p){const m=Pc();return m?m.sanitize($i.URL,p)||"":Os(p,"URL")?Rs(p):zt(me(p))}function Pc(){const p=be();return p&&p[12]}const eg="__ngContext__";function Wn(p,m){p[eg]=m}function xi(p){const m=function Ml(p){return p[eg]||null}(p);return m?Array.isArray(m)?m:m.lView:null}function Zf(p){return p.ngOriginalError}function $f(p,...m){p.error(...m)}class Un{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m),_=function vh(p){return p&&p.ngErrorLogger||$f}(m);_(this._console,"ERROR",m),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Zf(m);for(;g&&Zf(g);)g=Zf(g);return g||null}}const cy=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function dy(p){return p.ownerDocument.defaultView}function sr(p){return p instanceof Function?p():p}var Is=(()=>((Is=Is||{})[Is.Important=1]="Important",Is[Is.DashCase=2]="DashCase",Is))();function ng(p,m){return undefined(p,m)}function Qa(p){const m=p[3];return er(m)?m[3]:m}function rg(p){return py(p[13])}function ag(p){return py(p[4])}function py(p){for(;null!==p&&!er(p);)p=p[4];return p}function Do(p,m,g,_,y){if(null!=_){let v,D=!1;er(_)?v=_:On(_)&&(D=!0,_=_[0]);const k=I(_);0===p&&null!==g?null==y?xh(m,g,k):Bs(m,g,k,y||null,!0):1===p&&null!==g?Bs(m,g,k,y||null,!0):2===p?function jd(p,m,g){const _=Sh(p,m);_&&function Xa(p,m,g,_){Li(p)?p.removeChild(m,g,_):m.removeChild(g)}(p,_,m,g)}(m,k,D):3===p&&m.destroyNode(k),null!=v&&function tT(p,m,g,_,y){const v=g[7];v!==I(g)&&Do(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=gl(p,10+m);!function Qv(p,m){Ho(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function _y(p,m){if(!(256&m[2])){const g=m[11];Li(g)&&g.destroyNode&&Ho(p,m,g,3,null,null),function Kv(p){let m=p[13];if(!m)return Si(p[1],p);for(;m;){let g=null;if(On(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)On(m)&&Si(m[1],m),m=m[3];null===m&&(m=p),On(m)&&Si(m[1],m),g=m&&m[4]}m=g}}(m)}}function Si(p,m){if(!(256&m[2])){m[2]&=-129,m[2]|=256,function Ay(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();m[7]=null}}(p,m),1===m[1].type&&Li(m[11])&&m[11].destroy();const g=m[17];if(null!==g&&er(m[3])){g!==m[3]&&gy(g,m);const _=m[19];null!==_&&_.detachView(p)}}}function sg(p,m,g){return function yy(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Fe.None||y===Fe.Emulated)return null}return Se(_,g)}(p,m.parent,g)}function Bs(p,m,g,_,y){Li(p)?p.insertBefore(m,g,_,y):m.insertBefore(g,_,y)}function xh(p,m,g){Li(p)?p.appendChild(m,g):m.appendChild(g)}function My(p,m,g,_,y){null!==_?Bs(p,m,g,_,y):xh(p,m,g)}function Sh(p,m){return Li(p)?p.parentNode(m):m.parentNode}function og(p,m,g){return vy(p,m,g)}let vy=function Cy(p,m,g){return 40&p.type?Se(p,g):null};function Xf(p,m,g,_){const y=sg(p,_,m),v=m[11],k=og(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let P=0;Pv?"":y[te+1].toLowerCase();const pe=8&_?se:null;if(pe&&-1!==xy(pe,F,0)||2&_&&F!==se){if(Ka(_))return!1;D=!0}}}}else{if(!D&&!Ka(_)&&!Ka(P))return!1;if(D&&Ka(P))continue;D=!1,_=P|1&_}}return Ka(_)||D}function Ka(p){return 0==(1&p)}function Dy(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Ka(D)&&(m+=Ly(v,y),y=""),_=D,v=v||!Ka(_);g++}return""!==y&&(m+=Ly(v,y)),m}const Ot={};function ky(p){Py($t(),be(),xn()+p,tl())}function Py(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Es(m,v,g)}else{const v=p.preOrderHooks;null!==v&&sl(m,v,0,g)}Dr(g)}function r0(p,m){return p<<17|m<<2}function es(p){return p>>17&32767}function dg(p){return 2|p}function Lo(p){return(131068&p)>>2}function ug(p,m){return-131069&p|m<<2}function hg(p){return 1|p}function Yy(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&Py(p,m,20,tl()),g(_,y)}finally{Dr(v)}}function Uy(p,m,g){if(Zo(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=P&&k.push(P),k.push(_,y,D)}}function Sg(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function ko(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function Dg(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&p0(g)}}function p0(p){for(let _=rg(p);null!==_;_=ag(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];Vc(D,v,D.template,v[8])}else v[5]>0&&p0(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&p0(y)}}function oM(p,m){const g=At(m,p),_=g[1];(function zc(p,m){for(let g=m.length;gPromise.resolve(null))();function Oh(p){return p[7]||(p[7]=[])}function Wd(p){return p.cleanup||(p.cleanup=[])}function _0(p,m,g){return(null===p||tr(p))&&(g=function Q(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Ig(p,m){const g=p[9],_=g?g.get(Un,null):null;_&&_.handleError(m)}function Bg(p,m,g,_,y){for(let v=0;vthis.processProvider(k,m,g)),qn([m],k=>this.processInjectorType(k,[],v)),this.records.set(Bh,qc(void 0,this));const D=this.records.get(Vh);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof m?null:N(m))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(m=>m.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(m,g=vo,_=_e.Default){this.assertNotDestroyed();const y=kr(this),v=it(void 0);try{if(!(_&_e.SkipSelf)){let k=this.records.get(m);if(void 0===k){const P=function HT(p){return"function"==typeof p||"object"==typeof p&&p instanceof hi}(m)&&pi(m);k=P&&this.injectableDefInScope(P)?qc(A0(m),Fc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&_e.Self?hM():this.parent).get(m,g=_&_e.Optional&&g===vo?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[Cc]=D[Cc]||[]).unshift(N(m)),y)throw D;return function ph(p,m,g,_){const y=p[Cc];throw m[vc]&&y.unshift(m[vc]),p.message=function fh(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=N(m);if(Array.isArray(m))y=m.map(N).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let k=m[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):N(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(kf,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[Cc]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{it(v),kr(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(m=>this.get(m))}toString(){const m=[];return this.records.forEach((_,y)=>m.push(N(y))),`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(m,g,_){if(!(m=X(m)))return!1;let y=ca(m);const v=null==y&&m.ngModule||void 0,D=void 0===v?m:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=ca(v)),null==y)return!1;if(null!=y.imports&&!k){let W;_.push(D);try{qn(y.imports,te=>{this.processInjectorType(te,g,_)&&(void 0===W&&(W=[]),W.push(te))})}finally{}if(void 0!==W)for(let te=0;tethis.processProvider(ve,se,pe||Ze))}}this.injectorDefTypes.add(D);const P=Mn(D)||(()=>new D);this.records.set(D,qc(P,Fc));const F=y.providers;if(null!=F&&!k){const W=m;qn(F,te=>this.processProvider(te,W,F))}return void 0!==v&&void 0!==m.providers}processProvider(m,g,_){let y=Yc(m=X(m))?m:X(m&&m.provide);const v=function mM(p,m,g){return y0(p)?qc(void 0,p.useValue):qc(Fg(p),Fc)}(m);if(Yc(m)||!0!==m.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=qc(void 0,Fc,!0),D.factory=()=>Nd(D.multi),this.records.set(y,D)),y=m,D.multi.push(m)}this.records.set(y,v)}hydrate(m,g){return g.value===Fc&&(g.value=Vg,g.value=g.factory()),"object"==typeof g.value&&g.value&&function qg(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=X(m.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function A0(p){const m=pi(p),g=null!==m?m.factory:Mn(p);if(null!==g)return g;if(p instanceof hi)throw new ne(204,!1);if(p instanceof Function)return function fM(p){const m=p.length;if(m>0)throw Ca(m,"?"),new ne(204,!1);const g=function on(p){const m=p&&(p[Fr]||p[ue]);if(m){const g=function la(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Fg(p,m,g){let _;if(Yc(p)){const y=X(p);return Mn(y)||A0(y)}if(y0(p))_=()=>X(p.useValue);else if(function gM(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...Nd(p.deps||[]));else if(function jg(p){return!(!p||!p.useExisting)}(p))_=()=>hn(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function bM(p){return!!p.deps}(p))return Mn(y)||A0(y);_=()=>new y(...Nd(p.deps))}return _}function qc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function y0(p){return null!==p&&"object"==typeof p&&Pf in p}function Yc(p){return"function"==typeof p}let Ea=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return zh({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return zh({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=vo,p.NULL=new Nh,p.\u0275prov=di({token:p,providedIn:"any",factory:()=>hn(Bh)}),p.__NG_ELEMENT_ID__=-1,p})();function Fs(p,m){al(xi(p)[1],Zi())}function qh(p){let m=function Ct(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;m;){let y;if(tr(p))y=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new ne(903,"");y=m.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=Re(p.inputs),D.declaredInputs=Re(p.declaredInputs),D.outputs=Re(p.outputs);const k=y.hostBindings;k&&Ht(p,k);const P=y.viewQuery,F=y.contentQueries;if(P&&Nt(p,P),F&&Hl(p,F),R(p.inputs,y.inputs),R(p.declaredInputs,y.declaredInputs),R(p.outputs,y.outputs),tr(y)&&y.data.animation){const W=p.data;W.animation=(W.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=ll(y.hostAttrs,g=ll(g,y.hostAttrs))}}(_)}function Re(p){return p===ft?{}:p===Ze?[]:p}function Nt(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Hl(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function Ht(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let yr=null;function Gd(){if(!yr){const p=Vt.Symbol;if(p&&p.iterator)yr=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(I(Jt[_.index])):_.index;if(Li(g)){let Jt=null;if(!k&&P&&(Jt=function q0(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vP?k[P]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==Jt)(Jt.__ngLastListenerFn__||Jt).__ngNextListenerFn__=v,Jt.__ngLastListenerFn__=v,pe=!1;else{v=Y0(_,m,te,v,!1);const Ai=g.listen(et,y,v);se.push(v,Ai),W&&W.push(y,ct,Ee,Ee+1)}}else v=Y0(_,m,te,v,!0),et.addEventListener(y,v,D),se.push(v),W&&W.push(y,ct,Ee,D)}else v=Y0(_,m,te,v,!1);const ve=_.outputs;let Ve;if(pe&&null!==ve&&(Ve=ve[y])){const Ye=Ve.length;if(Ye)for(let et=0;et0;)m=m[15],p--;return m}(p,mt.lFrame.contextLView))[8]}(p)}function m_(p,m){let g=null;const _=function sT(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const pn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C_(p){return p.substring(pn.key,pn.keyEnd)}function Jc(p,m){const g=pn.textEnd;return g===m?-1:(m=pn.keyEnd=function jM(p,m,g){for(;m32;)m++;return m}(p,pn.key=m,g),Io(p,m,g))}function Io(p,m,g){for(;m=0;g=Jc(m,g))rr(p,C_(m),!0)}function Ha(p,m,g,_){const y=be(),v=$t(),D=jn(2);v.firstUpdatePass&&S_(v,p,D,_),m!==Ot&&In(y,D,m)&&ou(v,v.data[xn()],y,y[11],p,y[D+1]=function L_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=N(Rs(p)))),p}(m,g),_,D)}function ia(p,m,g,_){const y=$t(),v=jn(2);y.firstUpdatePass&&S_(y,null,v,_);const D=be();if(g!==Ot&&In(D,v,g)){const k=y.data[xn()];if(k_(k,_)&&!au(y,v)){let P=_?k.classesWithoutHost:k.stylesWithoutHost;null!==P&&(g=j(P,g||"")),tu(y,k,D,g,_)}else!function H_(p,m,g,_,y,v,D,k){y===Ot&&(y=Ze);let P=0,F=0,W=0=p.expandoStartIndex}function S_(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[xn()],D=au(p,g);k_(v,_)&&null===m&&!D&&(m=!1),m=function GM(p,m,g,_){const y=oo(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=su(g=em(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=em(y,p,m,g,_),null===v){let P=function K0(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Lo(_))return p[es(_)]}(p,m,_);void 0!==P&&Array.isArray(P)&&(P=em(null,p,m,P[1],_),P=su(P,m.attrs,_),function ZM(p,m,g,_){p[es(g?m.classBindings:m.styleBindings)]=_}(p,m,_,P))}else v=function E_(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else W=g;if(y)if(0!==P){const se=es(p[k+1]);p[_+1]=r0(se,k),0!==se&&(p[se+1]=ug(p[se+1],_)),p[k+1]=function hT(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=r0(k,0),0!==k&&(p[k+1]=ug(p[k+1],_)),k=_;else p[_+1]=r0(P,0),0===k?k=_:p[P+1]=ug(p[P+1],_),P=_;F&&(p[_+1]=dg(p[_+1])),w_(p,W,_,!0),w_(p,W,_,!1),function zM(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&va(v,m)>=0&&(g[_+1]=hg(g[_+1]))}(m,W,p,_,v),D=r0(k,P),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function em(p,m,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const P=p[y],F=Array.isArray(P),W=F?P[1]:P,te=null===W;let se=g[y+1];se===Ot&&(se=te?Ze:void 0);let pe=te?Rd(se,_):W===_?se:void 0;if(F&&!rp(pe)&&(pe=Rd(P,_)),rp(pe)&&(k=pe,D))return k;const ve=p[y+1];y=D?es(ve):Lo(ve)}if(null!==m){let P=v?m.residualClasses:m.residualStyles;null!=P&&(k=Rd(P,_))}return k}function rp(p){return void 0!==p}function k_(p,m){return 0!=(p.flags&(m?16:32))}function P_(p,m=""){const g=be(),_=$t(),y=p+20,v=_.firstCreatePass?qd(_,y,1,m,null):_.data[y],D=g[y]=function Nc(p,m){return Li(p)?p.createText(m):p.createTextNode(m)}(g[11],m);Xf(_,g,D,v),qr(v,!1)}function im(p){return ap("",p,""),im}function ap(p,m,g){const _=be(),y=Po(_,p,m,g);return y!==Ot&&$r(_,xn(),y),ap}function nm(p,m,g,_,y){const v=be(),D=kl(v,p,m,g,_,y);return D!==Ot&&$r(v,xn(),D),nm}function sp(p,m,g,_,y,v,D,k,P,F,W){const te=be(),se=Kr(te,p,m,g,_,y,v,D,k,P,F,W);return se!==Ot&&$r(te,xn(),se),sp}function QM(p,m,g){ia(rr,Da,Po(be(),p,m,g),!0)}function om(p,m,g){const _=be();return In(_,so(),m)&&or($t(),Oi(),_,p,m,_[11],g,!0),om}function lm(p,m,g){const _=be();if(In(_,so(),m)){const v=$t(),D=Oi();or(v,D,_,p,m,_0(oo(v.data),D,_),g,!0)}return lm}const No=void 0;var Qc=["en",[["a","p"],["AM","PM"],No],[["AM","PM"],No,No],[["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"]],No,[["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"]],No,[["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}",No,"{1} 'at' {0}",No],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function qT(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let Vl={};function zl(p){const m=function j_(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=dm(m);if(g)return g;const _=m.split("-")[0];if(g=dm(_),g)return g;if("en"===_)return Qc;throw new Error(`Missing locale data for the locale "${p}".`)}function F_(p){return zl(p)[pt.PluralCase]}function dm(p){return p in Vl||(Vl[p]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[p]),Vl[p]}var pt=(()=>((pt=pt||{})[pt.LocaleId=0]="LocaleId",pt[pt.DayPeriodsFormat=1]="DayPeriodsFormat",pt[pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",pt[pt.DaysFormat=3]="DaysFormat",pt[pt.DaysStandalone=4]="DaysStandalone",pt[pt.MonthsFormat=5]="MonthsFormat",pt[pt.MonthsStandalone=6]="MonthsStandalone",pt[pt.Eras=7]="Eras",pt[pt.FirstDayOfWeek=8]="FirstDayOfWeek",pt[pt.WeekendRange=9]="WeekendRange",pt[pt.DateFormat=10]="DateFormat",pt[pt.TimeFormat=11]="TimeFormat",pt[pt.DateTimeFormat=12]="DateTimeFormat",pt[pt.NumberSymbols=13]="NumberSymbols",pt[pt.NumberFormats=14]="NumberFormats",pt[pt.CurrencyCode=15]="CurrencyCode",pt[pt.CurrencySymbol=16]="CurrencySymbol",pt[pt.CurrencyName=17]="CurrencyName",pt[pt.Currencies=18]="Currencies",pt[pt.Directionality=19]="Directionality",pt[pt.PluralCase=20]="PluralCase",pt[pt.ExtraData=21]="ExtraData",pt))();const cp="en-US";let dp=cp;function wm(p,m,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(Yc(p)||!p.multi){const pe=new co(P,y,Kd),ve=Pt(k,m,y?W:W+se,te);-1===ve?(dl(Hs(F,D),v,k),Cm(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),D.push(pe)):(g[ve]=pe,D[ve]=pe)}else{const pe=Pt(k,m,W+se,te),ve=Pt(k,m,W,W+se),Ve=pe>=0&&g[pe],Ye=ve>=0&&g[ve];if(y&&!Ye||!y&&!Ve){dl(Hs(F,D),v,k);const et=function Ew(p,m,g,_,y){const v=new co(p,g,Kd);return v.multi=[],v.index=m,v.componentProviders=0,ob(v,y,_&&!g),v}(y?ns:$T,g.length,y,_,P);!y&&Ye&&(g[ve].providerFactory=et),Cm(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(et),D.push(et)}else Cm(v,p,pe>-1?pe:ve,ob(g[y?ve:pe],P,!y&&_));!y&&_&&Ye&&g[ve].componentProviders++}}}function Cm(p,m,g,_){const y=Yc(m),v=function _M(p){return!!p.useClass}(m);if(y||v){const P=(v?X(m.useClass):m).prototype.ngOnDestroy;if(P){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=F.indexOf(g);-1===W?F.push(g,[_,P]):F[W+1].push(_,P)}else F.push(g,P)}}}function ob(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function Pt(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function $T(p,m,g,_){return vm(this.multi,[])}function ns(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=go(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),vm(y,v);for(let P=D;P{g.providersResolver=(_,y)=>function ZT(p,m,g){const _=$t();if(_.firstCreatePass){const y=tr(p);wm(g,_.data,_.blueprint,y,!0),wm(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class cb{}class Lw{resolveComponentFactory(m){throw function Hw(p){const m=Error(`No component factory found for ${N(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let Au=(()=>{class p{}return p.NULL=new Lw,p})();function kw(){return Xc(Zi(),be())}function Xc(p,m){return new yu(Se(p,m))}let yu=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=kw,p})();function Pw(p){return p instanceof yu?p.nativeElement:p}class ub{}let Rw=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function Fl(){const p=be(),g=At(Zi().index,p);return function hb(p){return p[11]}(On(g)?g:p)}(),p})(),Ow=(()=>{class p{}return p.\u0275prov=di({token:p,providedIn:"root",factory:()=>null}),p})();class Kc{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const XT=new Kc("13.2.2"),pb={};function Tm(p,m,g,_,y=!1){for(;null!==g;){const v=m[g.index];if(null!==v&&_.push(I(v)),er(v))for(let k=10;k-1&&(Tl(m,_),gl(g,_))}this._attachedToViewContainer=!1}_y(this._lView[1],this._lView)}onDestroy(m){c0(this._lView[1],this._lView,null,m)}markForCheck(){Lh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){m0(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Rh(p,m,g){wd(!0);try{m0(p,m,g)}finally{wd(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xv(p,m){Ho(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=m}}class fb extends Mu{constructor(m){super(m),this._view=m}detectChanges(){Og(this._view)}checkNoChanges(){!function lM(p){wd(!0);try{Og(p)}finally{wd(!1)}}(this._view)}get context(){return null}}class mb extends Au{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=ln(m);return new yp(g,this.ngModule)}}function rs(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}const Bw=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>cy});class yp extends cb{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function dT(p){return p.map(cT).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return rs(this.componentDef.inputs)}get outputs(){return rs(this.componentDef.outputs)}create(m,g,_,y){const v=(y=y||this.ngModule)?function KT(p,m){return{get:(g,_,y)=>{const v=p.get(g,pb,y);return v!==pb||_===pb?v:m.get(g,_,y)}}}(m,y.injector):m,D=v.get(ub,B),k=v.get(Ow,null),P=D.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",W=_?function vn(p,m,g){if(Li(p))return p.selectRootElement(m,g===Fe.ShadowDom);let _="string"==typeof m?p.querySelector(m):m;return _.textContent="",_}(P,_,this.componentDef.encapsulation):Fd(D.createRenderer(null,this.componentDef),F,function Iw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(F)),te=this.componentDef.onPush?576:528,se=function Zg(p,m){return{components:[],scheduler:p||cy,clean:dM,playerHandler:m||null,flags:0}}(),pe=l0(0,null,null,1,0,null,null,null,null,null),ve=Eh(null,pe,se,te,null,null,D,P,k,v);let Ve,Ye;lo(ve);try{const et=function w0(p,m,g,_,y,v){const D=g[1];g[20]=p;const P=qd(D,20,2,"#host",null),F=P.mergedAttrs=m.hostAttrs;null!==F&&(b0(P,F,!0),null!==p&&(ol(y,p,F),null!==P.classes&&t0(y,p,P.classes),null!==P.styles&&cg(y,p,P.styles)));const W=_.createRenderer(p,m),te=Eh(g,Gy(m),null,m.onPush?64:16,g[20],P,_,W,v||null,null);return D.firstCreatePass&&(dl(Hs(P,g),D,m.type),ko(D,P),u0(P,g.length,1)),f0(g,te),g[20]=te}(W,this.componentDef,ve,D,P);if(W)if(_)ol(P,W,["ng-version",XT.full]);else{const{attrs:Ee,classes:ct}=function uT(p){const m=[],g=[];let _=1,y=2;for(;_0&&t0(P,W,ct.join(" "))}if(Ye=Yt(pe,20),void 0!==g){const Ee=Ye.projection=[];for(let ct=0;ctP(D,m)),m.contentQueries){const P=Zi();m.contentQueries(1,D,P.directiveStart)}const k=Zi();return!v.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(Dr(k.index),tM(g[1],k,0,k.directiveStart,k.directiveEnd,m),Sg(m,D)),D}(et,this.componentDef,ve,se,[Fs]),Dh(pe,ve,null)}finally{pc()}return new Vw(this.componentType,Ve,Xc(Ye,ve),ve,Ye)}}class Vw extends class Dw{}{constructor(m,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new fb(y),this.componentType=m}get injector(){return new Ua(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}class ed{}class bb{}const as=new Map;class Sm extends ed{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mb(this);const _=xt(m);this._bootstrapComponents=sr(_.bootstrap),this._r3Injector=zg(m,g,[{provide:ed,useValue:this},{provide:Au,useValue:this.componentFactoryResolver}],N(m)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(m)}get(m,g=Ea.THROW_IF_NOT_FOUND,_=_e.Default){return m===Ea||m===ed||m===Bh?this:this._r3Injector.get(m,g,_)}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class tn extends bb{constructor(m){super(),this.moduleType=m,null!==xt(m)&&function zw(p){const m=new Set;!function g(_){const y=xt(_,!0),v=y.id;null!==v&&(function Ws(p,m,g){if(m&&m!==g)throw new Error(`Duplicate module registered for ${p} - ${N(m)} vs ${N(m.name)}`)}(v,as.get(v),_),as.set(v,_));const D=sr(y.imports);for(const k of D)m.has(k)||(m.add(k),g(k))}(p)}(m)}create(m){return new Sm(this.moduleType,m)}}function qw(p,m,g){const _=ei()+p,y=be();return y[_]===Ot?Qr(y,_,g?m.call(g):m()):function Xr(p,m){return p[m]}(y,_)}function Mp(p,m,g,_){return nn(be(),ei(),p,m,g,_)}function td(p,m,g,_,y){return Us(be(),ei(),p,m,g,_,y)}function wu(p,m){const g=p[m];return g===Ot?void 0:g}function nn(p,m,g,_,y,v){const D=m+g;return In(p,D,y)?Qr(p,D+1,v?_.call(v,y):_(y)):wu(p,D+1)}function Us(p,m,g,_,y,v,D){const k=m+g;return qs(p,k,y,v)?Qr(p,k+2,D?_.call(D,y,v):_(y,v)):wu(p,k+2)}function Em(p,m,g,_,y,v,D,k){const P=m+g;return function Wc(p,m,g,_,y){const v=qs(p,m,g,_);return In(p,m+2,y)||v}(p,P,y,v,D)?Qr(p,P+3,k?_.call(k,y,v,D):_(y,v,D)):wu(p,P+3)}function Mb(p,m){const g=$t();let _;const y=p+20;g.firstCreatePass?(_=function Dn(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=Mn(_.type)),D=it(Kd);try{const k=bc(!1),P=v();return bc(k),function Zh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,be(),y,P),P}finally{it(D)}}function Dm(p,m,g){const _=p+20,y=be(),v=Xt(y,_);return id(y,_)?nn(y,ei(),m,v.transform,g,v):v.transform(g)}function Hm(p,m,g,_){const y=p+20,v=be(),D=Xt(v,y);return id(v,y)?Us(v,ei(),m,D.transform,g,_,D):D.transform(g,_)}function Lm(p,m,g,_,y){const v=p+20,D=be(),k=Xt(D,v);return id(D,v)?Em(D,ei(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function id(p,m){return p[1].data[m].pure}function wp(p){return m=>{setTimeout(p,void 0,m)}}const Ir=class vb extends w.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){var y,v,D;let k=m,P=g||(()=>null),F=_;if(m&&"object"==typeof m){const te=m;k=null===(y=te.next)||void 0===y?void 0:y.bind(te),P=null===(v=te.error)||void 0===v?void 0:v.bind(te),F=null===(D=te.complete)||void 0===D?void 0:D.bind(te)}this.__isAsync&&(P=wp(P),k&&(k=wp(k)),F&&(F=wp(F)));const W=super.subscribe({next:k,error:P,complete:F});return m instanceof i.w&&m.add(W),W}};function Tb(){return this._results[Gd()]()}class Cu{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Gd(),_=Cu.prototype;_[g]||(_[g]=Tb)}get changes(){return this._changes||(this._changes=new Ir)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=_r(m);(this._changesDetected=!function Df(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Sb,p})();const xb=nd,Gw=class extends xb{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m){const g=this._declarationTContainer.tViews,_=Eh(this._declarationLView,g,m,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),Dh(g,_,m),new Mu(_)}};function Sb(){return vu(Zi(),be())}function vu(p,m){return 4&p.type?new Gw(m,p,Xc(p,m)):null}let rd=(()=>{class p{}return p.__NG_ELEMENT_ID__=Eb,p})();function Eb(){return vp(Zi(),be())}const km=rd,Pm=class extends km{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return Xc(this._hostTNode,this._hostLView)}get injector(){return new Ua(this._hostTNode,this._hostLView)}get parentInjector(){const m=ya(this._hostTNode,this._hostLView);if(ho(m)){const g=po(m,this._hostLView),_=Ya(m);return new Ua(g[1].data[_+8],g)}return new Ua(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Rm(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){const y=m.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(m,g,_,y,v){const D=m&&!function ml(p){return"function"==typeof p}(m);let k;if(D)k=g;else{const te=g||{};k=te.index,_=te.injector,y=te.projectableNodes,v=te.ngModuleRef}const P=D?m:new yp(ln(m)),F=_||this.parentInjector;if(!v&&null==P.ngModule&&F){const te=F.get(ed,null);te&&(v=te)}const W=P.create(F,y,void 0,v);return this.insert(W.hostView,k),W}insert(m,g){const _=m._lView,y=_[1];if(function Ti(p){return er(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const te=_[3],se=new Pm(te,te[6],te[3]);se.detach(se.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function eT(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[k/2]);else{const F=v[k+1],W=m[-P];for(let te=10;te{class p{constructor(g){this.appInits=g,this.resolve=Hu,this.reject=Hu,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:P})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(hn(qp,8))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Yp=new hi("AppId"),Wp={provide:Yp,useFactory:function aC(){return`${Gm()}${Gm()}${Gm()}`},deps:[]};function Gm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sC=new hi("Platform Initializer"),Zm=new hi("Platform ID"),zb=new hi("appBootstrapListener");let Fb=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Lu=new hi("LocaleId"),Up=new hi("DefaultCurrencyCode");class Fo{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let $m=(()=>{class p{compileModuleSync(g){return new tn(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=sr(xt(g).declarations).reduce((D,k)=>{const P=ln(k);return P&&D.push(new yp(P)),D},[]);return new Fo(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Qm=(()=>Promise.resolve(0))();function Gp(p){"undefined"==typeof Zone?Qm.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Jn{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ir(!1),this.onMicrotaskEmpty=new Ir(!1),this.onStable=new Ir(!1),this.onError=new Ir(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function lC(){let p=Vt.requestAnimationFrame,m=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function Xm(p){const m=()=>{!function dC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Vt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,Km(p),p.isCheckStableRunning=!0,Zp(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),Km(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return jb(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),e1(p)}},onInvoke:(g,_,y,v,D,k,P)=>{try{return jb(p),g.invoke(y,v,D,k,P)}finally{p.shouldCoalesceRunChangeDetection&&m(),e1(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,Km(p),Zp(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Jn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Jn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,cC,Hu,Hu);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const cC={};function Zp(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function Km(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function jb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function e1(p){p._nesting--,Zp(p)}class uC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ir,this.onMicrotaskEmpty=new Ir,this.onStable=new Ir,this.onError=new Ir}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}let hC=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Jn.assertNotInAngularZone(),Gp(()=>{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())Gp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})(),$p=(()=>{class p{constructor(){this._applications=new Map,t1.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return t1.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();class pC{addToWindow(m){}findTestabilityInTree(m,g,_){return null}}function qb(p){t1=p}let aa,t1=new pC;const Wb=new hi("AllowMultipleToken");class Ub{constructor(m,g){this.name=m,this.token=g}}function Gb(p,m,g=[]){const _=`Platform: ${m}`,y=new hi(_);return(v=[])=>{let D=Zb();if(!D||D.injector.get(Wb,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:Vh,useValue:"platform"});!function fC(p){if(aa&&!aa.destroyed&&!aa.injector.get(Wb,!1))throw new ne(400,"");aa=p.get(r1);const m=p.get(sC,null);m&&m.forEach(g=>g())}(Ea.create({providers:k,name:_}))}return function Nr(p){const m=Zb();if(!m)throw new ne(401,"");return m}()}}function Zb(){return aa&&!aa.destroyed?aa:null}let r1=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function mC(p,m){let g;return g="noop"===p?new uC:("zone.js"===p?void 0:p)||new Jn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==m?void 0:m.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==m?void 0:m.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),P=[{provide:Jn,useValue:k}];return k.run(()=>{const F=Ea.create({providers:P,parent:this.injector,name:g.moduleType.name}),W=g.create(F),te=W.injector.get(Un,null);if(!te)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:pe=>{te.handleError(pe)}});W.onDestroy(()=>{a1(this._modules,W),se.unsubscribe()})}),function $b(p,m,g){try{const _=g();return $c(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(te,k,()=>{const se=W.injector.get(ur);return se.runInitializers(),se.donePromise.then(()=>(function um(p){st(p,"Expected localeId to be defined"),"string"==typeof p&&(dp=p.toLowerCase().replace(/_/g,"-"))}(W.injector.get(Lu,cp)||cp),this._moduleDoBootstrap(W),W))})})}bootstrapModule(g,_=[]){const y=Jb({},_);return function Yl(p,m,g){const _=new tn(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(cd);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(hn(Ea))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function Jb(p,m){return Array.isArray(m)?m.reduce(Jb,p):Object.assign(Object.assign({},p),m)}let cd=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(F=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{F.next(this._stable),F.complete()})}),P=new E.y(F=>{let W;this._zone.runOutsideAngular(()=>{W=this._zone.onStable.subscribe(()=>{Jn.assertNotInAngularZone(),Gp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,F.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{Jn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{F.next(!1)}))});return()=>{W.unsubscribe(),te.unsubscribe()}});this.isStable=(0,T.T)(k,P.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof cb?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function Yb(p){return p.isBoundToModule}(y)?void 0:this._injector.get(ed),k=y.create(Ea.NULL,[],_||y.selector,v),P=k.location.nativeElement,F=k.injector.get(hC,null),W=F&&k.injector.get($p);return F&&W&&W.registerApplication(P,F),k.onDestroy(()=>{this.detachView(k.hostView),a1(this.components,k),W&&W.unregisterApplication(P)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;a1(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(zb,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(hn(Jn),hn(Ea),hn(Un),hn(Au),hn(ur))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function a1(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let gC=!0;function Jp(){gC=!1}let px=(()=>{class p{}return p.__NG_ELEMENT_ID__=AC,p})();function AC(p){return function yC(p,m,g){if(Va(p)&&!g){const _=At(p.index,m);return new Mu(_,_)}return 47&p.type?new Mu(m[16],m):null}(Zi(),be(),16==(16&p))}class Kb{constructor(){}supports(m){return js(m)}create(m){return new xC(m)}}const TC=(p,m)=>m;class xC{constructor(m){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=m||TC}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new Cx(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new ku),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ku),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Cx{constructor(m,g){this.item=m,this.trackById=g,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 SC{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class ku{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new SC,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hd(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new pd(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class pd{constructor(m){this.key=m,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 tA(){return new Kp([new Kb])}let Kp=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||tA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:tA}),p})();function iA(){return new Pu([new EC])}let Pu=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||iA()),deps:[[p,new So,new Ga]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:iA}),p})();const DC=[new EC],LC=new Kp([new Kb]),Tx=new Pu(DC),nA=Gb(null,"core",[{provide:Zm,useValue:"unknown"},{provide:r1,deps:[Ea]},{provide:$p,deps:[]},{provide:Fb,deps:[]}]),OC=[{provide:cd,useClass:cd,deps:[Jn,Ea,Un,Au,ur]},{provide:Bw,deps:[Jn],useFactory:function IC(p){let m=[];return p.onStable.subscribe(()=>{for(;m.length;)m.pop()()}),function(g){m.push(g)}}},{provide:ur,useClass:ur,deps:[[new Ga,qp]]},{provide:$m,useClass:$m,deps:[]},Wp,{provide:Kp,useFactory:function PC(){return LC},deps:[]},{provide:Pu,useFactory:function xx(){return Tx},deps:[]},{provide:Lu,useFactory:function rA(p){return p||function RC(){return"undefined"!=typeof $localize&&$localize.locale||cp}()},deps:[[new xo(Lu),new Ga,new So]]},{provide:Up,useValue:"USD"}];let BC=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(hn(cd))},p.\u0275mod=gs({type:p}),p.\u0275inj=sn({providers:OC}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let U;return function(w){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(w||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,w){this.data.set(x,w)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(U,x,w=null){super(U),this.reason=x,this.params=w}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(U.idTokenHeader),w=yield this.calcHash(U.accessToken,x),E=base64UrlEncode(w.substr(0,w.length/2)),T=U.idTokenClaims.at_hash.replace(/=/g,"");return E!==T&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+T)),E===T})}inferHashAlgorithm(U){let x=U.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let w=x||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(x){const w={};let i,E,T,S,L,R,N;if(null===x)return w;i=x.split("&");for(let j=0;j>6,E[S++]=128|63&L):L<55296||L>=57344?(E[S++]=224|L>>12,E[S++]=128|L>>6&63,E[S++]=128|63&L):(L=65536+((1023&L)<<10|1023&Y.charCodeAt(++w)),E[S++]=240|L>>18,E[S++]=128|L>>12&63,E[S++]=128|L>>6&63,E[S++]=128|63&L);Y=E}else{if("object"!==i)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(U,!0).update(Y).array());var R=[],N=[];for(w=0;w<64;++w){var j=Y[w]||0;R[w]=92^j,N[w]=54^j}Sha256.call(this,U,x),this.update(N),this.oKeyPad=R,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var U,x=typeof Y;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);U=!0}for(var w,E,i=0,T=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var R,$,ce,ne,de,me,Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=this.blocks;for(R=16;R<64;++R)L[R]=L[R-16]+((($=L[R-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+L[R-7]+((($=L[R-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=U&x,R=0;R<64;R+=4)this.first?(this.is224?(ce=300032,S=($=L[0]-1413257819)-150054599<<0,w=$+24177077<<0):(ce=704751109,S=($=L[0]-210244248)-1521486534<<0,w=$+143694565<<0),this.first=!1):(S=w+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&T)+K[R]+L[R])<<0,w=$+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((ce=Y&U)^Y&x^me))<<0),T=x+($=T+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+L[R+1])<<0,x=$+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ne=w&Y)^w&U^ce))<<0,E=U+($=E+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&S^~T&i)+K[R+2]+L[R+2])<<0,U=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&w)^x&Y^ne))<<0,i=Y+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&T^~E&S)+K[R+3]+L[R+3])<<0,Y=$+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((me=U&x)^U&w^de))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+T<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T];return this.is224||(L+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),L},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,x>>24&255,x>>16&255,x>>8&255,255&x,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T];return this.is224||L.push(S>>24&255,S>>16&255,S>>8&255,255&S),L},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var U,x=Y,w=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,w){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let w="";for(let i of x)w+=String.fromCharCode(i);return w}toHashString(x){const w=new Uint8Array(x);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,w,i,E,T,S,L,R,N,j){var q;super(),this.ngZone=x,this.http=w,this.config=T,this.urlHelper=S,this.logger=L,this.crypto=R,this.dateTimeService=j,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=N,T||(T={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),T&&this.configure(T);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(q=null==window?void 0:window.navigator)||void 0===q?void 0:q.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(w){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(T=>{"token_received"===T.type?E=!0:"logout"===T.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_expires"===T.type&&(null==w||"any"===w||T.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(T=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const w=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(x){if(!x)return!0;const w=x.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,w){if(!x)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,w){const i=this.dateTimeService.now();return Math.max(0,(w-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((w,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(T=>{const L=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:T});this.eventsSubject.next(L),w(L)}).catch(T=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),i(T)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):x(null)})}validateDiscoveryDocument(x){let w;return this.skipIssuerCheck||x.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let T=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||T.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");T=Object.assign({},S,T),this._storage.setItem("id_token_claims_obj",JSON.stringify(T)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:T})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:w},i)}fetchTokenUsingGrant(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(T,this.customQueryParams[T]);for(const T of Object.keys(w))E=E.set(T,w[T]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((T,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(L=>{this.debug("tokenResponse",L),this.storeAccessTokenResponse(L.access_token,L.refresh_token,L.expires_in||this.fallbackAccessTokenExpirationTimeInSec,L.scope,this.extractRecognizedCustomParameters(L)),this.oidc&&L.id_token&&this.processIdToken(L.id_token,L.access_token).then(R=>{this.storeIdToken(R),T(L)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),T(L)},L=>{this.logger.error("Error performing ${grantType} flow",L),this.eventsSubject.next(new OAuthErrorEvent("token_error",L)),S(L)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(T,this.customQueryParams[T]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(T=>T.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(T.id_token,T.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>T)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(T))).subscribe(T=>{this.debug("refresh tokenResponse",T),this.storeAccessTokenResponse(T.access_token,T.refresh_token,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T.scope,this.extractRecognizedCustomParameters(T)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(T)},T=>{this.logger.error("Error refreshing token",T),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",T)),w(T)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const w=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const T=this.document.createElement("iframe");T.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,x).then(j=>{T.setAttribute("src",j),this.silentRefreshShowIFrame||(T.style.display="none"),this.document.body.appendChild(T)});const L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>j instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),N=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([L,R,N]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>{if(j instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===j.type||(j=new OAuthErrorEvent("silent_refresh_error",j)),this.eventsSubject.next(j),j;return"token_received"===j.type&&(j=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(j)),j})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let L,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const R=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{j(),i(!0)},ie=>{j(),E(ie)})};S?L=window.setInterval(()=>{(!S||S.closed)&&(j(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const j=()=>{window.clearInterval(L),window.removeEventListener("storage",$),window.removeEventListener("message",q),null!==S&&S.close(),S=null},q=X=>{const ie=this.processMessageEventMessage(X);ie&&null!==ie?(window.removeEventListener("storage",$),R(ie)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",q),R(X.newValue))};window.addEventListener("message",q),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const w=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(x){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const w=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(x="",w="",i="",E=!1,T={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let L;L=i||this.redirectUri;const R=yield this.createAndSaveNonce();if(x=x?R+this.config.nonceStateSeparator+encodeURIComponent(x):R,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const N=S.loginUrl.indexOf("?")>-1?"&":"?";let j=S.scope;this.oidc&&!j.match(/(^|\s)openid($|\s)/)&&(j="openid "+j);let q=S.loginUrl+N+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(j);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),q+="&code_challenge="+$,q+="&code_challenge_method=S256"}w&&(q+="&login_hint="+encodeURIComponent(w)),S.resource&&(q+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(q+="&nonce="+encodeURIComponent(R)),E&&(q+="&prompt=none");for(const $ of Object.keys(T))q+="&"+encodeURIComponent($)+"="+encodeURIComponent(T[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))q+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return q})}initImplicitFlowInternal(x="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initImplicitFlow",T),this.inImplicitFlow=!1})}initImplicitFlow(x="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const w=this;if(x.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,w,i,E,T){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),T&&T.forEach((S,L)=>{this._storage.setItem(L,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(w=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const w=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(w),E=i.code,T=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const N=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,N)}let[L,R]=this.parseState(T);if(this.state=R,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const N=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(N),Promise.reject(N)}if(!x.disableNonceCheck){if(!L)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(L)){const j=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(j),Promise.reject(j)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(x,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,T)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(L=>{this.storeIdToken(L),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(L=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",L)),console.error("Error validating tokens"),console.error(L),T(L)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),T(S)})})}tryLoginImplicitFlow(x=null){let w;w=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,T]=this.parseState(i);if(this.state=T,w.error){this.debug("error trying to login"),this.handleLoginError(x,w);const j=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(j),Promise.reject(j)}const S=w.access_token,L=w.id_token,R=w.session_state,N=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!L)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(E)){const q=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(q),Promise.reject(q)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N),this.oidc?this.processIdToken(L,S,x.disableNonceCheck).then(j=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:j.idTokenClaims,idToken:j.idToken,state:i}).then(q=>j):j).then(j=>(this.storeIdToken(j),this.storeSessionState(R),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(j=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),this.logger.error("Error validating tokens"),this.logger.error(j),Promise.reject(j))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let w=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(w=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(x){let w;return w=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===x||(console.error("Validating access_token failed, wrong state/nonce.",w,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,w){x.onLoginError&&x.onLoginError(w),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,w,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),L=JSON.parse(S),N=b64DecodeUnicode(this.padBase64(E[1])),j=JSON.parse(N);let q;if(q=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(j.aud)){if(j.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+j.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(j.aud!==this.clientId){const de="Wrong audience: "+j.aud;return this.logger.warn(de),Promise.reject(de)}if(!j.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==j.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${j.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!j.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&j.iss!==this.issuer){const de="Wrong issuer: "+j.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&j.nonce!==q){const de="Wrong nonce: "+j.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!j.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*j.iat,ie=1e3*j.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||ie+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:ie}),Promise.reject(de)}const ne={accessToken:w,idToken:x,jwks:this.jwks,idTokenClaims:j,idTokenHeader:L,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const ze={idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie};return this.disableAtHashCheck?ze:this.checkAtHash(ne).then(Je=>{if(this.requestAccessToken&&!Je){const vt="Wrong at_hash";return this.logger.warn(vt),Promise.reject(vt)}return ze})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},w=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let T;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)T=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const L=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";L&&(S=S.set("post_logout_redirect_uri",L),w&&(S=S.set("state",w)));for(let R in x)S=S.set(R,x[R]);T=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(T)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(w){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",w):x._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const T="undefined"==typeof self?null:self.crypto||self.msCrypto;if(T){let S=new Uint8Array(i);T.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(L=>w.charCodeAt(L%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,w))}initCodeFlowInternal(x="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initAuthorizationCodeFlow"),console.error(T)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&w.set(i,JSON.stringify(x[i]))}),w}revokeTokenAndLogout(x={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),T=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,N)=>{let j,q;if(E){let $=S.set("token",E).set("token_type_hint","access_token");j=this.http.post(i,$,{headers:L})}else j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(T){let $=S.set("token",T).set("token_type_hint","refresh_token");q=this.http.post(i,$,{headers:L})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(j=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([j,q]).subscribe($=>{this.logOut(x),R($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),N($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,w,i){this.oAuthService=x,this.errorHandler=w,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>x.toLowerCase().startsWith(w.toLowerCase()))}intercept(x,w){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>!!T)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(T=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(T=>{if(T){const L=x.headers.set("Authorization","Bearer "+T);x=x.clone({headers:L})}return w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>this.errorHandler.handleError(T))):w.handle(x)}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,w=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},1128:Y=>{"use strict";Y.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:Y=>{"use strict";Y.exports={i8:"8.1.1"}}},Y=>{Y(Y.s=6396)}]); \ No newline at end of file diff --git a/dist/apps/user-profile/main.d2f67836e03a932b.js b/dist/apps/user-profile/main.d2f67836e03a932b.js new file mode 100644 index 000000000..803faba92 --- /dev/null +++ b/dist/apps/user-profile/main.d2f67836e03a932b.js @@ -0,0 +1 @@ +(self.webpackChunkuser_profile=self.webpackChunkuser_profile||[]).push([[179],{941:(Y,U,x)=>{"use strict";var w=x(9808),i=x(5e3);class E extends w.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class T extends E{static makeCurrent(){(0,w.HT)(new T)}onAndCancel(a,e,t){return a.addEventListener(e,t,!1),()=>{a.removeEventListener(e,t,!1)}}dispatchEvent(a,e){a.dispatchEvent(e)}remove(a){a.parentNode&&a.parentNode.removeChild(a)}createElement(a,e){return(e=e||this.getDefaultDocument()).createElement(a)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(a){return a.nodeType===Node.ELEMENT_NODE}isShadowRoot(a){return a instanceof DocumentFragment}getGlobalEventTarget(a,e){return"window"===e?window:"document"===e?a:"body"===e?a.body:null}getBaseHref(a){const e=function L(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==e?null:function N(n){R=R||document.createElement("a"),R.setAttribute("href",n);const a=R.pathname;return"/"===a.charAt(0)?a:`/${a}`}(e)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(a){return(0,w.Mx)(document.cookie,a)}}let R,S=null;const j=new i.OlP("TRANSITION_ID"),$=[{provide:i.ip1,useFactory:function q(n,a,e){return()=>{e.get(i.CZH).donePromise.then(()=>{const t=(0,w.q)(),r=a.querySelectorAll(`style[ng-transition="${n}"]`);for(let l=0;l{const l=a.findTestabilityInTree(t,r);if(null==l)throw new Error("Could not find testability for element.");return l},i.dqk.getAllAngularTestabilities=()=>a.getAllTestabilities(),i.dqk.getAllAngularRootElements=()=>a.getAllRootElements(),i.dqk.frameworkStabilizers||(i.dqk.frameworkStabilizers=[]),i.dqk.frameworkStabilizers.push(t=>{const r=i.dqk.getAllAngularTestabilities();let l=r.length,d=!1;const s=function(o){d=d||o,l--,0==l&&t(d)};r.forEach(function(o){o.whenStable(s)})})}findTestabilityInTree(a,e,t){if(null==e)return null;const r=a.getTestability(e);return null!=r?r:t?(0,w.q)().isShadowRoot(e)?this.findTestabilityInTree(a,e.host,!0):this.findTestabilityInTree(a,e.parentElement,!0):null}}let ie=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const ce=new i.OlP("EventManagerPlugins");let ne=(()=>{class n{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}addGlobalEventListener(e,t,r){return this._findPluginFor(t).addGlobalEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const r=this._plugins;for(let l=0;l{class n{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),t.add(r))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Ne=(()=>{class n extends me{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,t,r){e.forEach(l=>{const d=this._doc.createElement("style");d.textContent=l,r.push(t.appendChild(d))})}addHost(e){const t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}removeHost(e){const t=this._hostNodes.get(e);t&&t.forEach(ze),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((t,r)=>{this._addStylesToHost(e,r,t)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(ze))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function ze(n){(0,w.q)().remove(n)}const Qe={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/"},Tt=/%COMP%/g;function Ae(n,a,e){for(let t=0;t{if("__ngUnwrap__"===a)return n;!1===n(a)&&(a.preventDefault(),a.returnValue=!1)}}let Pe=(()=>{class n{constructor(e,t,r){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ge(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ifc.Emulated:{let r=this.rendererByCompId.get(t.id);return r||(r=new Ci(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,r)),r.applyToHost(e),r}case 1:case i.ifc.ShadowDom:return new st(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const r=Ae(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ne),i.LFG(Ne),i.LFG(i.AFp))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class ge{constructor(a){this.eventManager=a,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(a,e){return e?document.createElementNS(Qe[e]||e,a):document.createElement(a)}createComment(a){return document.createComment(a)}createText(a){return document.createTextNode(a)}appendChild(a,e){a.appendChild(e)}insertBefore(a,e,t){a&&a.insertBefore(e,t)}removeChild(a,e){a&&a.removeChild(e)}selectRootElement(a,e){let t="string"==typeof a?document.querySelector(a):a;if(!t)throw new Error(`The selector "${a}" did not match any elements`);return e||(t.textContent=""),t}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,e,t,r){if(r){e=r+":"+e;const l=Qe[r];l?a.setAttributeNS(l,e,t):a.setAttribute(e,t)}else a.setAttribute(e,t)}removeAttribute(a,e,t){if(t){const r=Qe[t];r?a.removeAttributeNS(r,e):a.removeAttribute(`${t}:${e}`)}else a.removeAttribute(e)}addClass(a,e){a.classList.add(e)}removeClass(a,e){a.classList.remove(e)}setStyle(a,e,t,r){r&(i.JOm.DashCase|i.JOm.Important)?a.style.setProperty(e,t,r&i.JOm.Important?"important":""):a.style[e]=t}removeStyle(a,e,t){t&i.JOm.DashCase?a.style.removeProperty(e):a.style[e]=""}setProperty(a,e,t){a[e]=t}setValue(a,e){a.nodeValue=e}listen(a,e,t){return"string"==typeof a?this.eventManager.addGlobalEventListener(a,e,Ce(t)):this.eventManager.addEventListener(a,e,Ce(t))}}class Ci extends ge{constructor(a,e,t,r){super(a),this.component=t;const l=Ae(r+"-"+t.id,t.styles,[]);e.addStyles(l),this.contentAttr=function Mt(n){return"_ngcontent-%COMP%".replace(Tt,n)}(r+"-"+t.id),this.hostAttr=function fe(n){return"_nghost-%COMP%".replace(Tt,n)}(r+"-"+t.id)}applyToHost(a){super.setAttribute(a,this.hostAttr,"")}createElement(a,e){const t=super.createElement(a,e);return super.setAttribute(t,this.contentAttr,""),t}}class st extends ge{constructor(a,e,t,r){super(a),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Ae(r.id,r.styles,[]);for(let d=0;d{class n extends de{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const kn=["alt","control","meta","shift"],Ke={"\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"},di={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},pr={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let on=(()=>{class n extends de{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,t,r){const l=n.parseEventName(t),d=n.eventCallback(l.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,w.q)().onAndCancel(e,l.domEventName,d))}static parseEventName(e){const t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;const l=n._normalizeKey(t.pop());let d="";if(kn.forEach(o=>{const c=t.indexOf(o);c>-1&&(t.splice(c,1),d+=o+".")}),d+=l,0!=t.length||0===l.length)return null;const s={};return s.domEventName=r,s.fullKey=d,s}static getEventFullKey(e){let t="",r=function pi(n){let a=n.key;if(null==a){if(a=n.keyIdentifier,null==a)return"Unidentified";a.startsWith("U+")&&(a=String.fromCharCode(parseInt(a.substring(2),16)),3===n.location&&di.hasOwnProperty(a)&&(a=di[a]))}return Ke[a]||a}(e);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),kn.forEach(l=>{l!=r&&pr[l](e)&&(t+=l+".")}),t+=r,t}static eventCallback(e,t,r){return l=>{n.getEventFullKey(l)===e&&r.runGuarded(()=>t(l))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Fr=(0,i.eFA)(i._c5,"browser",[{provide:i.Lbi,useValue:w.bD},{provide:i.g9A,useValue:function Ut(){T.makeCurrent(),X.init()},multi:!0},{provide:w.K0,useFactory:function la(){return(0,i.RDi)(document),document},deps:[]}]),Pn=[{provide:i.zSh,useValue:"root"},{provide:i.qLn,useFactory:function ln(){return new i.qLn},deps:[]},{provide:ce,useClass:bt,multi:!0,deps:[w.K0,i.R0b,i.Lbi]},{provide:ce,useClass:on,multi:!0,deps:[w.K0]},{provide:Pe,useClass:Pe,deps:[ne,Ne,i.AFp]},{provide:i.FYo,useExisting:Pe},{provide:me,useExisting:Ne},{provide:Ne,useClass:Ne,deps:[w.K0]},{provide:i.dDg,useClass:i.dDg,deps:[i.R0b]},{provide:ne,useClass:ne,deps:[ce,i.R0b]},{provide:w.JF,useClass:ie,deps:[]}];let ue=(()=>{class n{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:n,providers:[{provide:i.AFp,useValue:e.appId},{provide:j,useExisting:i.AFp},$]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(n,12))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:Pn,imports:[w.ez,i.hGG]}),n})(),it=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function Ue(){return new it((0,i.LFG)(w.K0))}(),t},providedIn:"root"}),n})();"undefined"!=typeof window&&window;let mr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new(e||n):i.LFG(_s),t},providedIn:"root"}),n})(),_s=(()=>{class n extends mr{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.q3G.NONE:return t;case i.q3G.HTML:return(0,i.qzn)(t,"HTML")?(0,i.z3N)(t):(0,i.EiD)(this._doc,String(t)).toString();case i.q3G.STYLE:return(0,i.qzn)(t,"Style")?(0,i.z3N)(t):t;case i.q3G.SCRIPT:if((0,i.qzn)(t,"Script"))return(0,i.z3N)(t);throw new Error("unsafe value used in a script context");case i.q3G.URL:return(0,i.yhl)(t),(0,i.qzn)(t,"URL")?(0,i.z3N)(t):(0,i.mCW)(String(t));case i.q3G.RESOURCE_URL:if((0,i.qzn)(t,"ResourceURL"))return(0,i.z3N)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return(0,i.JVY)(e)}bypassSecurityTrustStyle(e){return(0,i.L6k)(e)}bypassSecurityTrustScript(e){return(0,i.eBb)(e)}bypassSecurityTrustUrl(e){return(0,i.LAX)(e)}bypassSecurityTrustResourceUrl(e){return(0,i.pB0)(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:function(e){let t=null;return t=e?new e:function gs(n){return new _s(n.get(w.K0))}(i.LFG(i.zs3)),t},providedIn:"root"}),n})();var M=x(520);class Be{encodeKey(a){return encodeURIComponent(a)}encodeValue(a){return encodeURIComponent(a)}decodeKey(a){return decodeURIComponent(a)}decodeValue(a){return decodeURIComponent(a)}}const vi=new i.OlP("basePath");class Xe{constructor(a={}){this.apiKeys=a.apiKeys,this.username=a.username,this.password=a.password,this.accessToken=a.accessToken,this.basePath=a.basePath,this.withCredentials=a.withCredentials,this.encoder=a.encoder,this.credentials=a.credentials?a.credentials:{},this.credentials.BasicAuth||(this.credentials.BasicAuth=()=>this.username||this.password?btoa(this.username+":"+this.password):void 0),this.credentials.BearerAuth||(this.credentials.BearerAuth=()=>"function"==typeof this.accessToken?this.accessToken():this.accessToken)}selectHeaderContentType(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}selectHeaderAccept(a){if(0===a.length)return;const e=a.find(t=>this.isJsonMime(t));return void 0===e?a[0]:e}isJsonMime(a){const e=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==a&&(e.test(a)||"application/json-patch+json"===a.toLowerCase())}lookupCredential(a){const e=this.credentials[a];return"function"==typeof e?e():e}}let ri=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}convertAttributeToNonunique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToNonunique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToNonunique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}convertAttributeToUnique(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling convertAttributeToUnique.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/convertAttributeToUnique`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateAttributeDefinition was null or undefined when calling createAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/createAttribute`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attribute was null or undefined when calling deleteAttributeDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attribute"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttribute`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAttributeDefinitions(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributes was null or undefined when calling deleteAttributeDefinitions.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attributes[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/deleteAttributes`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAttributeDefinitions(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinition`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAttribute(e,t,r,l,d,s,o,c,u,h,f,b="body",V=!1,ee){let he=new M.LE({encoder:this.encoder});null!=e&&(he=this.addToHttpParams(he,e,"attributeName")),null!=t&&(he=this.addToHttpParams(he,t,"attributeId")),null!=r&&(he=this.addToHttpParams(he,r,"facility")),null!=l&&(he=this.addToHttpParams(he,l,"user")),null!=d&&(he=this.addToHttpParams(he,d,"vo")),null!=s&&(he=this.addToHttpParams(he,s,"resource")),null!=o&&(he=this.addToHttpParams(he,o,"member")),null!=c&&(he=this.addToHttpParams(he,c,"group")),null!=u&&(he=this.addToHttpParams(he,u,"host")),null!=h&&(he=this.addToHttpParams(he,h,"userExtSource")),null!=f&&(he=this.addToHttpParams(he,f,"key"));let gt,Oe=this.defaultHeaders;gt=this.configuration.lookupCredential("BasicAuth"),gt&&(Oe=Oe.set("Authorization","Basic "+gt)),gt=this.configuration.lookupCredential("BearerAuth"),gt&&(Oe=Oe.set("Authorization","Bearer "+gt));let ut=ee&&ee.httpHeaderAccept;void 0===ut&&(ut=this.configuration.selectHeaderAccept(["application/json"])),void 0!==ut&&(Oe=Oe.set("Accept",ut));let Kt=ee&&ee.context;void 0===Kt&&(Kt=new M.qT);let Ra="json";return ut&&(Ra=ut.startsWith("text")?"text":this.configuration.isJsonMime(ut)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/any`,{context:Kt,params:he,responseType:Ra,withCredentials:this.configuration.withCredentials,headers:Oe,observe:b,reportProgress:V})}getAttributeDefinitionById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getAttributeDefinitionById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinitionById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getAttributeDefinitionByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeDefinitionsByNamespace(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling getAttributeDefinitionsByNamespace.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"namespace"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributesDefinitionByNamespace`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeModulesDependenciesForAttributeGraphText(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");if(null==t)throw new Error("Required parameter attrName was null or undefined when calling getAttributeModulesDependenciesForAttributeGraphText.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"format")),null!=t&&(s=this.addToHttpParams(s,t,"attrName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText/for-attribute`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAttributeModulesDependenciesGraphText(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter format was null or undefined when calling getAttributeModulesDependenciesGraphText.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"format"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeModulesDependenciesGraphText`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributePolicyCollections.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributePolicyCollections`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getAttributeRights.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributeRights`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAttributesDefinitionWithRights(e,t,r,l,d,s,o,c,u="body",h=!1,f){let b=new M.LE({encoder:this.encoder});null!=e&&(b=this.addToHttpParams(b,e,"member")),null!=t&&(b=this.addToHttpParams(b,t,"user")),null!=r&&(b=this.addToHttpParams(b,r,"vo")),null!=l&&(b=this.addToHttpParams(b,l,"group")),null!=d&&(b=this.addToHttpParams(b,d,"resource")),null!=s&&(b=this.addToHttpParams(b,s,"facility")),null!=o&&(b=this.addToHttpParams(b,o,"host")),null!=c&&(b=this.addToHttpParams(b,c,"userExtSource"));let ee,V=this.defaultHeaders;ee=this.configuration.lookupCredential("BasicAuth"),ee&&(V=V.set("Authorization","Basic "+ee)),ee=this.configuration.lookupCredential("BearerAuth"),ee&&(V=V.set("Authorization","Bearer "+ee));let he=f&&f.httpHeaderAccept;void 0===he&&(he=this.configuration.selectHeaderAccept(["application/json"])),void 0!==he&&(V=V.set("Accept",he));let Oe=f&&f.context;void 0===Oe&&(Oe=new M.qT);let gt="json";return he&&(gt=he.startsWith("text")?"text":this.configuration.isJsonMime(he)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/attributesManager/getAttributesDefinitionWithRights`,{context:Oe,params:b,responseType:gt,withCredentials:this.configuration.withCredentials,headers:V,observe:u,reportProgress:h})}getEntitylessAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getEntitylessAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-entityless`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessAttributesByKey(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter key was null or undefined when calling getEntitylessAttributesByKey.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"key"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/key`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attrName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEntitylessAttributesWithKeys(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attrName was null or undefined when calling getEntitylessAttributesWithKeys.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attrName")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"keys[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessAttributesWithKeys`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEntitylessKeys(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attributeDefinition was null or undefined when calling getEntitylessKeys.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"attributeDefinition"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getEntitylessKeys`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getFacilityAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getFacilityAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFacilityAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getFacilityAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacilityResourceUserMemberAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getFacilityResourceUserMemberAttributes.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getFacilityResourceUserMemberAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"facility")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"user")),null!=l&&(c=this.addToHttpParams(c,l,"member"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-r-u-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getFacilityUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getFacilityUserAttributes.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getFacilityUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/f-u`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getGroupAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getGroupAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/g-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupResourceAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getGroupResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getGroupResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-group-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/group-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getHostAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getHostAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-host`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"host"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getHostAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling getHostAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getHostAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/h-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLogins(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getLogins.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getLogins`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAndUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributes.");if(null==t)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-wu`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAndUserAttributesByNames(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberAndUserAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getMemberAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getMemberAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAndUserAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAndUserAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberGroupAndUserAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberGroupAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeById.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberGroupAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributeByName.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberGroupAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroupAttributesByNames(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getMemberGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberGroupAttributesByNames.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-g-names`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-wu`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAndUserFacilityAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling getMemberResourceAndUserFacilityAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r-names-wu`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getMemberResourceAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeById.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getMemberResourceAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributeByName.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getMemberResourceAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-member-resource`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getMemberResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/m-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesDefinition.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributesDefinition`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/f`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesFacilityService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesFacilityService.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesFacilityServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesFacilityServices.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesFacilityServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesGroupResourceService(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesGroupResourceService.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"service")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesHostService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesHostService.");if(null==t)throw new Error("Required parameter host was null or undefined when calling getRequiredAttributesHostService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"host"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-h`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"workWithUserAttributes"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesMemberGroup(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-g`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberGroupResourceService(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");if(null==l)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupResourceService.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"service")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"group")),null!=l&&(u=this.addToHttpParams(u,l,"member")),null!=d&&(u=this.addToHttpParams(u,d,"workWithUserAttributes"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-g-m`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getRequiredAttributesMemberGroupService(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getRequiredAttributesMemberGroupService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberGroupService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-g-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesMemberResource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/m-r`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRequiredAttributesMemberResourceService(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesMemberResourceService.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getRequiredAttributesMemberResourceService.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"service")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),null!=r&&(c=this.addToHttpParams(c,r,"member")),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r-m`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRequiredAttributesResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesResourceService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesResourceService.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesResourceServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter services was null or undefined when calling getRequiredAttributesResourceServices.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getRequiredAttributesResourceServices.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/ss-r`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRequiredAttributesUserFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRequiredAttributesUserFacility.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getRequiredAttributesUserFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/u-f`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRequiredAttributesVoService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter service was null or undefined when calling getRequiredAttributesVoService.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getRequiredAttributesVoService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"service")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getRequiredAttributes/s-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getResourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getResourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getResourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupAndGroupAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributes.");if(null==r)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"resource")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"workWithGroupAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-wg`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourceGroupAndGroupAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling getResourceGroupAndGroupAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-names-wg`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getResourceGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceGroupMemberAttributesByNames(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==r)throw new Error("Required parameter member was null or undefined when calling getResourceGroupMemberAttributesByNames.");if(null==l)throw new Error("Required parameter attrNames was null or undefined when calling getResourceGroupMemberAttributesByNames.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),null!=t&&(c=this.addToHttpParams(c,t,"group")),null!=r&&(c=this.addToHttpParams(c,r,"member")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/r-g-m-names`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/u-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-ues`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getUserExtSourceAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/ues-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserFacilityAttributeById(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeById.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeById.");if(null==r)throw new Error("Required parameter attributeId was null or undefined when calling getUserFacilityAttributeById.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributeByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributeByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributeByName.");if(null==r)throw new Error("Required parameter attributeName was null or undefined when calling getUserFacilityAttributeByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attributeName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-user_facility`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getUserFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getUserFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/user-facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeById.");if(null==t)throw new Error("Required parameter attributeId was null or undefined when calling getVoAttributeById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/id-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributeByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributeByName.");if(null==t)throw new Error("Required parameter attributeName was null or undefined when calling getVoAttributeByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attributeName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttribute/name-vo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getVoAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/attributesManager/getAttributes/vo-names`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeAttributesForFacilityResourceGroupUserMember(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==r)throw new Error("Required parameter group was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==l)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==d)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");if(null==s)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceGroupUserMember.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"facility")),null!=t&&(h=this.addToHttpParams(h,t,"resource")),null!=r&&(h=this.addToHttpParams(h,r,"group")),null!=l&&(h=this.addToHttpParams(h,l,"user")),null!=d&&(h=this.addToHttpParams(h,d,"member")),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attributes[]")});let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-g-u-m`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}removeAttributesForFacilityResourceUserMember(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==r)throw new Error("Required parameter user was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==l)throw new Error("Required parameter member was null or undefined when calling removeAttributesForFacilityResourceUserMember.");if(null==d)throw new Error("Required parameter attributes was null or undefined when calling removeAttributesForFacilityResourceUserMember.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"facility")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"user")),null!=l&&(u=this.addToHttpParams(u,l,"member")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attributes[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f-r-u-m`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}removeEntitylessAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter key was null or undefined when calling removeEntitylessAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeEntitylessAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"key")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/e`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeFacilityAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeFacilityAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling removeFacilityAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeFacilityAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/f`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeGroupAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeGroupAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupResourceAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeGroupResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeGroupResourceAttributesWorkWithGroupAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");if(null==l)throw new Error("Required parameter workWithGroupAttributes was null or undefined when calling removeGroupResourceAttributesWorkWithGroupAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithGroupAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/g-r-workWithGroupAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeHostAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeHostAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeHostAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter host was null or undefined when calling removeHostAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeHostAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"host")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/h`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeMemberAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMemberAttributesWorkWithUserAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberAttributesWorkWithUserAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")}),null!=r&&(o=this.addToHttpParams(o,r,"workWithUserAttributes"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-workWithUserAttributes`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttribute.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberGroupAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberGroupAttributesWorkWithUserAttributes(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");if(null==l)throw new Error("Required parameter workWithUserAttributes was null or undefined when calling removeMemberGroupAttributesWorkWithUserAttributes.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"group")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attributes[]")}),null!=l&&(c=this.addToHttpParams(c,l,"workWithUserAttributes"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-g-workWithUserAttributes`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}removeMemberResourceAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttribute.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeMemberResourceAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeMemberResourceAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeMemberResourceAttributes.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeMemberResourceAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeMemberResourceAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/m-r`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeResourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeResourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeResourceAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/r`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUesAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUesAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUesAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeUserAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSourceAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSourceAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeUserExtSourceAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userExtSource")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/ues`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserFacilityAttribute(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttribute.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttribute.");if(null==r)throw new Error("Required parameter attribute was null or undefined when calling removeUserFacilityAttribute.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"attribute"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeUserFacilityAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserFacilityAttributes.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling removeUserFacilityAttributes.");if(null==r)throw new Error("Required parameter attributes was null or undefined when calling removeUserFacilityAttributes.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attributes[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/u-f`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeVoAttribute(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttribute.");if(null==t)throw new Error("Required parameter attribute was null or undefined when calling removeVoAttribute.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"attribute"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttribute/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAttributes.");if(null==t)throw new Error("Required parameter attributes was null or undefined when calling removeVoAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attributes[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/attributesManager/removeAttributes/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setAttributePolicyCollections(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributePolicyCollections was null or undefined when calling setAttributePolicyCollections.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributePolicyCollections`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setAttributeRights(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeRights was null or undefined when calling setAttributeRights.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributeRights`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setEntitylessAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputEntitylessAttribute was null or undefined when calling setEntitylessAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/entityless`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttribute was null or undefined when calling setFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityAttributes was null or undefined when calling setFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceGroupUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceGroupUserMemberAttributes was null or undefined when calling setFacilityResourceGroupUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-g-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityResourceUserMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityResourceUserMemberAttributes was null or undefined when calling setFacilityResourceUserMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-r-u-m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setFacilityUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetFacilityUserAttributes was null or undefined when calling setFacilityUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/f-u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttribute was null or undefined when calling setGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupAttributes was null or undefined when calling setGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttribute was null or undefined when calling setGroupResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setGroupResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetGroupResourceAttributes was null or undefined when calling setGroupResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/group-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttribute was null or undefined when calling setHostAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/host`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setHostAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetHostAttributes was null or undefined when calling setHostAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/h`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttribute was null or undefined when calling setMemberAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberAttributes was null or undefined when calling setMemberAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttribute was null or undefined when calling setMemberGroupAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupAttributes was null or undefined when calling setMemberGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberGroupWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberGroupWithUserAttributes was null or undefined when calling setMemberGroupWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-g-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAndUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAndUserAttributes was null or undefined when calling setMemberResourceAndUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttribute was null or undefined when calling setMemberResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/member-resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberResourceAttributes was null or undefined when calling setMemberResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setMemberWithUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetMemberWithUserAttributes was null or undefined when calling setMemberWithUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/m-wu`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttribute was null or undefined when calling setResourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/resource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceAttributes was null or undefined when calling setResourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupAttributes was null or undefined when calling setResourceGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setResourceGroupWithGroupAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetResourceGroupWithGroupAttributes was null or undefined when calling setResourceGroupWithGroupAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/r-g-wg`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttribute was null or undefined when calling setUserAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserAttributes was null or undefined when calling setUserAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttribute was null or undefined when calling setUserExtSourceAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/userExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserExtSourceAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserExtSourceAttributes was null or undefined when calling setUserExtSourceAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/ues`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttribute was null or undefined when calling setUserFacilityAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setUserFacilityAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetUserFacilityAttributes was null or undefined when calling setUserFacilityAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/facility-user`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttribute(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttribute was null or undefined when calling setVoAttribute.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttribute/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setVoAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoAttributes was null or undefined when calling setVoAttributes.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/setAttributes/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateAttributeDefinition(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAttributeDefinition was null or undefined when calling updateAttributeDefinition.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/attributesManager/updateAttributeDefinition`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Gi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAllPolicies(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllPolicies`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllRolesManagementRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAllRolesManagementRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAuthzAdminGroups(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzAdminGroups.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzAdminGroups.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzAdminGroups.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"role")),null!=t&&(o=this.addToHttpParams(o,t,"complementaryObjectId")),null!=r&&(o=this.addToHttpParams(o,r,"complementaryObjectName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getAdminGroups`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getAuthzRichAdmins(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter role was null or undefined when calling getAuthzRichAdmins.");if(null==t)throw new Error("Required parameter complementaryObjectId was null or undefined when calling getAuthzRichAdmins.");if(null==r)throw new Error("Required parameter complementaryObjectName was null or undefined when calling getAuthzRichAdmins.");if(null==l)throw new Error("Required parameter specificAttributes was null or undefined when calling getAuthzRichAdmins.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"role")),null!=t&&(h=this.addToHttpParams(h,t,"complementaryObjectId")),null!=r&&(h=this.addToHttpParams(h,r,"complementaryObjectName")),l&&l.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"specificAttributes")}),null!=d&&(h=this.addToHttpParams(h,d,"allUserAttributes")),null!=s&&(h=this.addToHttpParams(h,s,"onlyDirectAdmins"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getRichAdmins`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}getFacilitiesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getFacilitiesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getFacilitiesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getGroupRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"groupId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/getGroupRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getGroupsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getGroupsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getLoggedUser(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getLoggedUser`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMembersWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getMembersWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getMembersWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getPerunPrincipal(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPerunPrincipal`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPrincipalRoleNames(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getPrincipalRoleNames`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getResourcesWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getResourcesWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSecurityTeamsWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getSecurityTeamsWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getSecurityTeamsWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserRoleNames(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserRoleNames.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoleNames`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserRoles(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userId was null or undefined when calling getUserRoles.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getUserRoles`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsInRoles(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter roles was null or undefined when calling getVosWhereUserIsInRoles.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"user")),e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"roles[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/getVosWhereUserIsInRoles`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isFacilityAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isFacilityAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isGroupAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isGroupAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isPerunAdmin(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/isPerunAdmin`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}isVoAdmin(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/urlinjsonout/authzResolver/isVoAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}keepAlive(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/keepAlive`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}loadAuthorizationComponents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/authzResolver/loadAuthorizationComponents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}setRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithGroupComplementaryObject was null or undefined when calling setRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter SetRoleWithUserComplementaryObject was null or undefined when calling setRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/setRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithGroupComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithGroupComplementaryObject was null or undefined when calling unsetRoleWithGroupComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/g-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unsetRoleWithUserComplementaryObject(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter UnsetRoleWithUserComplementaryObject was null or undefined when calling unsetRoleWithUserComplementaryObject.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/authzResolver/unsetRole/u-co`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Di=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}changeConsentStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter consent was null or undefined when calling changeConsentStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling changeConsentStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consent")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/changeConsentStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}evaluateConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling evaluateConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForConsentHub`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}evaluateConsentsForService(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter service was null or undefined when calling evaluateConsentsForService.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"service"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/consentsManager/evaluateConsentsForService`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllConsentHubs(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsentHubs`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllConsents(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getAllConsents`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getConsentById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentForUserAndConsentHub(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentForUserAndConsentHub.");if(null==r)throw new Error("Required parameter status was null or undefined when calling getConsentForUserAndConsentHub.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"consentHub")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentForUserAndConsentHub`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getConsentHubByFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getConsentHubByFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"facility"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getConsentHubById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentHubByName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter name was null or undefined when calling getConsentHubByName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"name"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentHubByName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHub.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"consentHub"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForConsentHubWithStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForConsentHubWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForConsentHubWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"consentHub")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForConsentHub/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getConsentsForUserAndConsentHub(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserAndConsentHub.");if(null==t)throw new Error("Required parameter consentHub was null or undefined when calling getConsentsForUserAndConsentHub.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"consentHub"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUserAndConsentHub`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getConsentsForUserWithStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getConsentsForUserWithStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getConsentsForUserWithStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/consentsManager/getConsentsForUser/id-s`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateConsentHub(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateConsentHub was null or undefined when calling updateConsentHub.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/consentsManager/updateConsentHub`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Hi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling addMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling addMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling addMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/addMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling allowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling allowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/allowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}canExtendMembershipInGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling canExtendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/canExtendMembershipInGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupUnion(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling createGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling createGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createGroupWithParentGroupNameDescription(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter parentGroup was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithParentGroupNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithParentGroupNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"parentGroup")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/pg-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}createGroupWithVoNameDescription(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createGroupWithVoNameDescription.");if(null==t)throw new Error("Required parameter name was null or undefined when calling createGroupWithVoNameDescription.");if(null==r)throw new Error("Required parameter description was null or undefined when calling createGroupWithVoNameDescription.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"name")),null!=r&&(o=this.addToHttpParams(o,r,"description"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/createGroup/v-n-d`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deleteGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/deleteGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteGroups was null or undefined when calling deleteGroups.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/deleteGroups`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}disallowGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling disallowGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling disallowGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/disallowGroupToHierarchicalVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}extendMembershipInGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembershipInGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling extendMembershipInGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/extendMembershipInGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}forceAllSubGroupsSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceAllSubGroupsSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceAllSubGroupsSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupStructureSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupStructureSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupStructureSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}forceGroupSynchronization(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling forceGroupSynchronization.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/forceGroupSynchronization`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllAllowedGroupsToHierarchicalVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllAllowedGroupsToHierarchicalVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllGroupsFromAllVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllGroups/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroups.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichSubGroupsWithGroupAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAllRichSubGroupsWithGroupAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllRichSubGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getGroupById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupByName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupByName.");if(null==t)throw new Error("Required parameter name was null or undefined when calling getGroupByName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupByName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMemberById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMemberById.");if(null==t)throw new Error("Required parameter member was null or undefined when calling getGroupMemberById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMemberById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByGroupStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByGroupStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByGroupStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupMembersCountsByVoStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupMembersCountsByVoStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupMembersCountsByVoStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupRichMembersByIds(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupRichMembersByIds.");if(null==t)throw new Error("Required parameter members was null or undefined when calling getGroupRichMembersByIds.");if(null==r)throw new Error("Required parameter attrNames was null or undefined when calling getGroupRichMembersByIds.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"members[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupRichMembersByIds`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getGroupUnions(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupUnions.");if(null==t)throw new Error("Required parameter reverseDirection was null or undefined when calling getGroupUnions.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"reverseDirection"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupUnions`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getGroupsByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getGroupsByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedGroups was null or undefined when calling getGroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getGroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getIndirectMembershipPaths(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getIndirectMembershipPaths.");if(null==t)throw new Error("Required parameter group was null or undefined when calling getIndirectMembershipPaths.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getIndirectMembershipPaths`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMemberGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberRichGroupsWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getMemberRichGroupsWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getMemberRichGroupsWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichGroupByIdWithAttributesByNames(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groupId was null or undefined when calling getRichGroupByIdWithAttributesByNames.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"groupId")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getRichGroupByIdWithAttributesByNames`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSubgroupsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedSubgroups was null or undefined when calling getSubgroupsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/getSubgroupsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVoAllAllowedGroupsToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling getVoAllAllowedGroupsToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/getAllAllowedGroupsToHierarchicalVo/v-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isAllowedGroupToHierarchicalVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling isAllowedGroupToHierarchicalVo.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling isAllowedGroupToHierarchicalVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isAllowedGroupToHierarchicalVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}isGroupMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling isGroupMember.");if(null==t)throw new Error("Required parameter group was null or undefined when calling isGroupMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/groupsManager/isGroupMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}moveGroupWithDestinationGroupMovingGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter movingGroup was null or undefined when calling moveGroupWithDestinationGroupMovingGroup.");let s=new M.LE({encoder:this.encoder});null!=t&&(s=this.addToHttpParams(s,t,"destinationGroup")),null!=e&&(s=this.addToHttpParams(s,e,"movingGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/moveGroup/dg-mg`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupUnion(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resultGroup was null or undefined when calling removeGroupUnion.");if(null==t)throw new Error("Required parameter operandGroup was null or undefined when calling removeGroupUnion.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resultGroup")),null!=t&&(s=this.addToHttpParams(s,t,"operandGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeGroupUnion`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeMember.");if(null==t)throw new Error("Required parameter member was null or undefined when calling removeMember.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMember`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeMembers.");if(null==t)throw new Error("Required parameter members was null or undefined when calling removeMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"members[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/removeMembers`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setGroupsMemberStatus(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling setGroupsMemberStatus.");if(null==t)throw new Error("Required parameter group was null or undefined when calling setGroupsMemberStatus.");if(null==r)throw new Error("Required parameter status was null or undefined when calling setGroupsMemberStatus.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"group")),null!=r&&(o=this.addToHttpParams(o,r,"status"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/groupsManager/setGroupsMemberStatus`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateGroup was null or undefined when calling updateGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/groupsManager/updateGroup`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wt=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}canExtendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling canExtendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/canExtendMembership`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createMemberForCandidate(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForCandidate was null or undefined when calling createMemberForCandidate.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/c`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberForUser was null or undefined when calling createMemberForUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/u`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createMemberFromExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateMemberFromExtSource was null or undefined when calling createMemberFromExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createMember/extSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSpecificMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSpecificMember was null or undefined when calling createSpecificMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSpecificMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMember was null or undefined when calling createSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMember/withFullName`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMembers was null or undefined when calling createSponsoredMembers.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembers`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createSponsoredMembersFromCSV(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateSponsoredMemberFromCSV was null or undefined when calling createSponsoredMembersFromCSV.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/createSponsoredMembersFromCSV`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling deleteMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter members was null or undefined when calling deleteMembers.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"members[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/deleteMembers`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}extendMembership(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling extendMembership.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/extendMembership`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findCompleteRichMembersByAttributes(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersByAttributes.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersByAttributes.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")}),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/attrs`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCompleteRichMembersForGroup(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForGroup.");if(null==l)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling findCompleteRichMembersForGroup.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"group")),t&&t.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"attrsNames[]")}),d&&d.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedStatuses[]")}),s&&s.forEach(Oe=>{h=this.addToHttpParams(h,Oe,"allowedGroupStatuses[]")}),null!=r&&(h=this.addToHttpParams(h,r,"searchString")),null!=l&&(h=this.addToHttpParams(h,l,"lookingInParentGroup"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/g`,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}findCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}findMembersInVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findMembersInVo.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findMembersInVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findMembersInVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findSponsoredCompleteRichMembersForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==t)throw new Error("Required parameter attrsNames was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling findSponsoredCompleteRichMembersForVo.");if(null==l)throw new Error("Required parameter onlySponsored was null or undefined when calling findSponsoredCompleteRichMembersForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),null!=r&&(c=this.addToHttpParams(c,r,"searchString")),null!=l&&(c=this.addToHttpParams(c,l,"onlySponsored"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/findCompleteRichMembers/v-sponsored`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getAllMembers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllMembers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllNamespacesRules(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllNamespacesRules`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getAllSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getAllSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getAllSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getCompleteRichMembersForGroup(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroup.");if(null==t)throw new Error("Required parameter lookingInParentGroup was null or undefined when calling getCompleteRichMembersForGroup.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"allowedStatuses[]")}),l&&l.forEach(he=>{u=this.addToHttpParams(u,he,"allowedGroupStatuses[]")}),null!=t&&(u=this.addToHttpParams(u,t,"lookingInParentGroup")),d&&d.forEach(he=>{u=this.addToHttpParams(u,he,"attrsNames[]")});let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getCompleteRichMembersForGroupResource(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==r)throw new Error("Required parameter attrsNames was null or undefined when calling getCompleteRichMembersForGroupResource.");if(null==l)throw new Error("Required parameter allowedStatuses was null or undefined when calling getCompleteRichMembersForGroupResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),null!=t&&(c=this.addToHttpParams(c,t,"resource")),r&&r.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrsNames[]")}),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"allowedStatuses[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/g-r`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getCompleteRichMembersForVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteRichMembersForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"allowedStatuses[]")}),r&&r.forEach(V=>{o=this.addToHttpParams(o,V,"attrsNames[]")});let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getCompleteRichMembers/v`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberByExtSourceNameAndExtLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extLogin was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");if(null==r)throw new Error("Required parameter extSourceName was null or undefined when calling getMemberByExtSourceNameAndExtLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"extLogin")),null!=r&&(o=this.addToHttpParams(o,r,"extSourceName"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByExtSourceNameAndExtLogin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getMemberById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getMemberById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberByUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberByUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getMemberByUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMemberByUser`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembers(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembers.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembers`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getMembersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getMembersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getMembersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersCount(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersCount.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMembersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedMembers was null or undefined when calling getMembersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/getMembersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getMembersWithStatusCount(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMembersWithStatusCount.");if(null==t)throw new Error("Required parameter status was null or undefined when calling getMembersWithStatusCount.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getMembersCount/status`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMemberWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichMemberWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMemberWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichMembersByIds(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichMembersByIds.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"ids[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersByIds`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getRichMembersNoUserAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichMembersNoUserAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getRichMembersNoUserAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembers/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsoredMembersAndTheirSponsors(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsoredMembersAndTheirSponsors.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getSponsoredMembersAndTheirSponsors.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsoredMembersAndTheirSponsors`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsByMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsByVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsByVo.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsByVo.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsByVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/membersManager/getSponsors/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}moveMembership(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling moveMembership.");if(null==t)throw new Error("Required parameter sourceUser was null or undefined when calling moveMembership.");if(null==r)throw new Error("Required parameter targetUser was null or undefined when calling moveMembership.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"sourceUser")),null!=r&&(o=this.addToHttpParams(o,r,"targetUser"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/moveMembership`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}removeSponsor(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeSponsor.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling removeSponsor.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"sponsor"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/removeSponsor`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendAccountActivationLinkEmail(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendAccountActivationLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendAccountActivationLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendAccountActivationLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendAccountActivationLinkEmail.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"member")),null!=t&&(c=this.addToHttpParams(c,t,"namespace")),null!=r&&(c=this.addToHttpParams(c,r,"emailAttributeURN")),null!=l&&(c=this.addToHttpParams(c,l,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendAccountActivationLinkEmail`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendPasswordResetLinkEmail(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter member was null or undefined when calling sendPasswordResetLinkEmail.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling sendPasswordResetLinkEmail.");if(null==r)throw new Error("Required parameter emailAttributeURN was null or undefined when calling sendPasswordResetLinkEmail.");if(null==l)throw new Error("Required parameter language was null or undefined when calling sendPasswordResetLinkEmail.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"member")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"emailAttributeURN")),null!=l&&(u=this.addToHttpParams(u,l,"language")),null!=d&&(u=this.addToHttpParams(u,d,"baseUrl"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sendPasswordResetLinkEmail`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}setSponsoredMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSponsoredMember was null or undefined when calling setSponsoredMember.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/membersManager/setSponsoredMember`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSponsorshipForMember(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter sponsoredMember was null or undefined when calling setSponsorshipForMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling setSponsorshipForMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"sponsoredMember")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setSponsorshipForMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}setStatus(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling setStatus.");if(null==t)throw new Error("Required parameter status was null or undefined when calling setStatus.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"status"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/setStatus`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sponsorMember(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling sponsorMember.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling sponsorMember.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/sponsorMember`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}updateSponsorshipValidity(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter member was null or undefined when calling updateSponsorshipValidity.");if(null==t)throw new Error("Required parameter sponsor was null or undefined when calling updateSponsorshipValidity.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"member")),null!=t&&(o=this.addToHttpParams(o,t,"sponsor")),null!=r&&(o=this.addToHttpParams(o,r,"validityTo"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/updateSponsorshipValidity`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}validateMemberAsync(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling validateMemberAsync.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/membersManager/validateMemberAsync`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),dn=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}sentMessageToRTWithMemberQueue(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter memberId was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithMemberQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithMemberQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"memberId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/m-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sentMessageToRTWithQueue(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithQueue.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithQueue.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithQueue.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"queue")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/q`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVo.");if(null==t)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVo.");if(null==r)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"voId")),null!=t&&(o=this.addToHttpParams(o,t,"subject")),null!=r&&(o=this.addToHttpParams(o,r,"text"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sentMessageToRTWithVoQueue(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter voId was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==t)throw new Error("Required parameter queue was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==r)throw new Error("Required parameter subject was null or undefined when calling sentMessageToRTWithVoQueue.");if(null==l)throw new Error("Required parameter text was null or undefined when calling sentMessageToRTWithVoQueue.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"voId")),null!=t&&(c=this.addToHttpParams(c,t,"queue")),null!=r&&(c=this.addToHttpParams(c,r,"subject")),null!=l&&(c=this.addToHttpParams(c,l,"text"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/rtMessagesManager/sentMessageToRT/v-q`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ai=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addApplicationMailForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForGroup was null or undefined when calling addApplicationMailForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/g`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addApplicationMailForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAddApplicationMailForVo was null or undefined when calling addApplicationMailForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/addApplicationMail/v`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}addGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling addGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/addGroupsToAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}approveApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling approveApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/approveApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkForSimilarUsersWithAuthInfo(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/checkForSimilarUsers/authInfo`,null,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}consolidateIdentityUsingToken(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling consolidateIdentityUsingToken.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/consolidateIdentityUsingToken`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}copyFormFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyFormFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyForm/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromGroupToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromGroup")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/groupToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToGroup(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyMailsFromVoToVo(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"fromVo")),null!=t&&(s=this.addToHttpParams(s,t,"toVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/copyMails/voToVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createApplicationFormInGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling createApplicationFormInGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/group`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}createApplicationFormInVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createApplicationFormInVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/createApplicationForm/vo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling deleteApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteApplicationMailForGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deleteApplicationMailForGroup.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteApplicationMailForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteApplicationMailForVo.");if(null==t)throw new Error("Required parameter id was null or undefined when calling deleteApplicationMailForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"id"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteApplicationMail/v`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteGroupsFromAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter groups was null or undefined when calling deleteGroupsFromAutoRegistration.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"groups[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/deleteGroupsFromAutoRegistration`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationDataById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getApplicationDataById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationDataById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationMailsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationMailsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationMailsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationMails/v`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getApplicationsForGroup(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter group was null or undefined when calling getApplicationsForGroup.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"group")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForGroup`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getApplicationsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForMember`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getApplicationsForVo(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getApplicationsForVo.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"state[]")}),null!=r&&(c=this.addToHttpParams(c,r,"dateFrom")),null!=l&&(c=this.addToHttpParams(c,l,"dateTo"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationsForVo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getApplicationsPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedApplications was null or undefined when calling getApplicationsPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/getApplicationsPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getConsolidatorToken(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getConsolidatorToken`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForGroupWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getFormItemsForGroupWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/group-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getFormItemsForVoWithType(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getFormItemsForVoWithType.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"type"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getFormItems/vo-type`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getGroupApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/group`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsToAutoRegistration(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getGroupsToAutoRegistration.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getGroupsToAutoRegistration`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoApplicationForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoApplicationForm.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/registrarManager/getApplicationForm/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}rejectApplication(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling rejectApplication.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),null!=t&&(s=this.addToHttpParams(s,t,"reason"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/rejectApplication`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendInvitation(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitation.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitation.");let c=new M.LE({encoder:this.encoder});null!=r&&(c=this.addToHttpParams(c,r,"voId")),null!=l&&(c=this.addToHttpParams(c,l,"name")),null!=e&&(c=this.addToHttpParams(c,e,"email")),null!=t&&(c=this.addToHttpParams(c,t,"language"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}sendInvitationForGroup(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter email was null or undefined when calling sendInvitationForGroup.");if(null==t)throw new Error("Required parameter language was null or undefined when calling sendInvitationForGroup.");let u=new M.LE({encoder:this.encoder});null!=r&&(u=this.addToHttpParams(u,r,"voId")),null!=l&&(u=this.addToHttpParams(u,l,"groupId")),null!=d&&(u=this.addToHttpParams(u,d,"name")),null!=e&&(u=this.addToHttpParams(u,e,"email")),null!=t&&(u=this.addToHttpParams(u,t,"language"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/g`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}sendInvitationGroupToExistingUser(e,t,r,l="body",d=!1,s){let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"userId")),null!=t&&(o=this.addToHttpParams(o,t,"voId")),null!=r&&(o=this.addToHttpParams(o,r,"groupId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u-g`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}sendInvitationToExistingUser(e,t,r="body",l=!1,d){let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"userId")),null!=t&&(s=this.addToHttpParams(s,t,"voId"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/sendInvitation/u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}sendMessage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSendMessage was null or undefined when calling sendMessage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/sendMessage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}setSendingEnabled(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetSendingEnabled was null or undefined when calling setSendingEnabled.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/setSendingEnabled`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}submitApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSubmitApplication was null or undefined when calling submitApplication.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/submitApplication`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateApplicationMail(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateApplicationMail was null or undefined when calling updateApplicationMail.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateApplicationMail`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateForm(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateForm was null or undefined when calling updateForm.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateForm`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemData was null or undefined when calling updateFormItemData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsData(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputFormItemsData was null or undefined when calling updateFormItemsData.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItemsData`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForGroup was null or undefined when calling updateFormItemsForGroup.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/group`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateFormItemsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateFormItemsForVo was null or undefined when calling updateFormItemsForVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/registrarManager/updateFormItems/vo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}verifyApplication(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling verifyApplication.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/registrarManager/verifyApplication`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fi=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}activateGroupResourceAssignment(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling activateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling activateGroupResourceAssignment.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),null!=t&&(o=this.addToHttpParams(o,t,"resource")),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/activateGroupResourceAssignment`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}addAdminToGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addAdminToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addAdminToUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addAdminToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addAdminToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling addResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addResourceSelfServiceUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling addResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/addResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}allowGroupsToResources(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter groups was null or undefined when calling allowGroupsToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling allowGroupsToResources.");let o=new M.LE({encoder:this.encoder});e&&e.forEach(V=>{o=this.addToHttpParams(o,V,"groups[]")}),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"resources[]")}),null!=r&&(o=this.addToHttpParams(o,r,"async"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/allowGroupsToResources`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}assignGroupToResource(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupToResource.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupToResources(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter group was null or undefined when calling assignGroupToResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling assignGroupToResources.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"group")),t&&t.forEach(he=>{u=this.addToHttpParams(u,he,"resources[]")}),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupToResources`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignGroupsToResource(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter groups was null or undefined when calling assignGroupsToResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling assignGroupsToResource.");let u=new M.LE({encoder:this.encoder});e&&e.forEach(he=>{u=this.addToHttpParams(u,he,"groups[]")}),null!=t&&(u=this.addToHttpParams(u,t,"resource")),null!=r&&(u=this.addToHttpParams(u,r,"async")),null!=l&&(u=this.addToHttpParams(u,l,"assignInactive")),null!=d&&(u=this.addToHttpParams(u,d,"autoAssignSubgroups"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignGroupsToResource`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}assignResourceTagToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputAssignResourceTagToResource was null or undefined when calling assignResourceTagToResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/assignResourceTagToResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}assignService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling assignService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling assignServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}assignServicesPackage(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling assignServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling assignServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/assignServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}copyResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCopyResource was null or undefined when calling copyResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/copyResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResource(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling createResource.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling createResource.");if(null==r)throw new Error("Required parameter name was null or undefined when calling createResource.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"facility")),null!=r&&(c=this.addToHttpParams(c,r,"name")),null!=l&&(c=this.addToHttpParams(c,l,"description"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResource`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createResourceTagWithResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateResourceTagWithResourceTag was null or undefined when calling createResourceTagWithResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/createResourceTag/resourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}createResourceTagWithTagName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter tagName was null or undefined when calling createResourceTagWithTagName.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling createResourceTagWithTagName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"tagName")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/createResourceTag/tagName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deactivateGroupResourceAssignment(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling deactivateGroupResourceAssignment.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling deactivateGroupResourceAssignment.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deactivateGroupResourceAssignment`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteAllResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResources`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteAllResourcesTagsForVo`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling deleteResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/deleteResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}deleteResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputDeleteResourceTag was null or undefined when calling deleteResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/deleteResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAdminGroups(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdminGroups.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdminGroups`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAdmins(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAdmins.");if(null==t)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getAdmins.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"onlyDirectAdmins"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAdmins`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllResourcesByResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetAllResourcesByResourceTag was null or undefined when calling getAllResourcesByResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesByResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getAllResourcesTagsForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllResourcesTagsForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesTagsForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getAllResourcesTagsForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllResourcesTagsForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllResourcesWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAllResourcesWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/all`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAllowedResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAllowedUsersOfResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAllowedUsersOfResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAllowedUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"member"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedMembersWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedMembersWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedMembersWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedResourcesWithStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedResourcesWithStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedResourcesWithStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichMembers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedRichMembers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichMembers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithGroup(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter group was null or undefined when calling getAssignedRichResourcesWithGroup.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"group"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/g`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/m`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesWithMemberService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getAssignedRichResourcesWithMemberService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling getAssignedRichResourcesWithMemberService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedRichResources/s-m`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAssignedServicesToResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getAssignedServicesToResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getAssignedServices`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getBansForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getBansForResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getBansForResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBansForResource`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getEnrichedResourceById(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedResourceById.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"id")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourceById`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForFacility(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getEnrichedResourcesForFacility.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"facility")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForFacility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getEnrichedResourcesForVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getEnrichedResourcesForVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getEnrichedResourcesForVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getFacility(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getFacility.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getFacility`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getGroupAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getGroupAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceAssignments(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling getResourceAssignments.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceAssignments`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBan(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getResourceBan.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getResourceBan.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBan`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourceByName(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourceByName.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getResourceByName.");if(null==r)throw new Error("Required parameter name was null or undefined when calling getResourceByName.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"facility")),null!=r&&(o=this.addToHttpParams(o,r,"name"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourceByName`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesCountForAll(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/all`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getResourcesCountForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesCountForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesCount/vo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getResourcesFromVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter user was null or undefined when calling getResourcesFromVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/fromVo`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getResourcesWhereGroupIsAdmin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereGroupIsAdmin.");if(null==r)throw new Error("Required parameter group was null or undefined when calling getResourcesWhereGroupIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"group"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin/group`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getResourcesWhereUserIsAdmin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter facility was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getResourcesWhereUserIsAdmin.");if(null==r)throw new Error("Required parameter user was null or undefined when calling getResourcesWhereUserIsAdmin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"facility")),null!=t&&(o=this.addToHttpParams(o,t,"vo")),null!=r&&(o=this.addToHttpParams(o,r,"user"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getResourcesWhereUserIsAdmin`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getRichAdmins(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getRichAdmins.");if(null==t)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdmins.");if(null==r)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdmins.");if(null==l)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdmins.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"resource")),t&&t.forEach(ee=>{c=this.addToHttpParams(c,ee,"specificAttributes")}),null!=r&&(c=this.addToHttpParams(c,r,"allUserAttributes")),null!=l&&(c=this.addToHttpParams(c,l,"onlyDirectAdmins"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichAdmins`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getRichResourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getRichResourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichResources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichResourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichResourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getRichResourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling getVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/resourcesManager/getVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeAllResourceTagsFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeAllResourceTagsFromResource.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"resource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAllResourcesTagFromResource`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeBanByMemberAndResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeBanByMemberAndResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeBanByMemberAndResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/member-resource-id`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupAdminResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeGroupAdminResource.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeGroupAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-g`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupFromResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupFromResources(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling removeGroupFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling removeGroupFromResources.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeGroupsFromResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling removeGroupsFromResource.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling removeGroupsFromResource.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeGroupsFromResource`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeResourceBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeBan/id`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeResourceSelfServiceGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceGroup.");if(null==t)throw new Error("Required parameter group was null or undefined when calling removeResourceSelfServiceGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"group"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceGroup`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceSelfServiceUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeResourceSelfServiceUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeResourceSelfServiceUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeResourceSelfServiceUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeResourceTagFromResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputRemoveResourceTagFromResource was null or undefined when calling removeResourceTagFromResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/removeResourceTagFromResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}removeService(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeService.");if(null==t)throw new Error("Required parameter service was null or undefined when calling removeService.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"service"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeService`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServices(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServices.");if(null==t)throw new Error("Required parameter services was null or undefined when calling removeServices.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"services[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServices`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeServicesPackage(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeServicesPackage.");if(null==t)throw new Error("Required parameter servicesPackage was null or undefined when calling removeServicesPackage.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"servicesPackage"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeServicesPackage`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserAdminResource(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter resource was null or undefined when calling removeUserAdminResource.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeUserAdminResource.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"resource")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/removeAdmin/r-u`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}setResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetBan was null or undefined when calling setResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}unallowGroupsFromResources(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter groups was null or undefined when calling unallowGroupsFromResources.");if(null==t)throw new Error("Required parameter resources was null or undefined when calling unallowGroupsFromResources.");let s=new M.LE({encoder:this.encoder});e&&e.forEach(b=>{s=this.addToHttpParams(s,b,"groups[]")}),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"resources[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/resourcesManager/unallowGroupsFromResources`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateResource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResource was null or undefined when calling updateResource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateBan was null or undefined when calling updateResourceBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateResourceTag(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateResourceTag was null or undefined when calling updateResourceTag.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/resourcesManager/updateResourceTag`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ti=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling addSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling addSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/addSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addUserExtSource(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter AddUserExtSourceInput was null or undefined when calling addUserExtSource.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/addUserExtSource`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}anonymizeUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling anonymizeUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/anonymizeUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}changeNonAuthzPasswordByToken(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter token was null or undefined when calling changeNonAuthzPasswordByToken.");if(null==t)throw new Error("Required parameter password was null or undefined when calling changeNonAuthzPasswordByToken.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"token")),null!=t&&(o=this.addToHttpParams(o,t,"password")),null!=r&&(o=this.addToHttpParams(o,r,"lang"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changeNonAuthzPassword/token`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}changePasswordForLogin(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter login was null or undefined when calling changePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForLogin.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForLogin.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"login")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/login`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}changePasswordForUser(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter user was null or undefined when calling changePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling changePasswordForUser.");if(null==r)throw new Error("Required parameter newPassword was null or undefined when calling changePasswordForUser.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"user")),null!=t&&(u=this.addToHttpParams(u,t,"namespace")),null!=r&&(u=this.addToHttpParams(u,r,"newPassword")),null!=l&&(u=this.addToHttpParams(u,l,"oldPassword")),null!=d&&(u=this.addToHttpParams(u,d,"checkOldPassword"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/changePassword/user`,null,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}checkPasswordResetRequestByTokenIsValid(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter token was null or undefined when calling checkPasswordResetRequestByTokenIsValid.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"token"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordResetRequestIsValid/token`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}checkPasswordStrength(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter password was null or undefined when calling checkPasswordStrength.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling checkPasswordStrength.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"password")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/checkPasswordStrength`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createAlternativePassword(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter user was null or undefined when calling createAlternativePassword.");if(null==t)throw new Error("Required parameter description was null or undefined when calling createAlternativePassword.");if(null==r)throw new Error("Required parameter loginNamespace was null or undefined when calling createAlternativePassword.");if(null==l)throw new Error("Required parameter password was null or undefined when calling createAlternativePassword.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"user")),null!=t&&(c=this.addToHttpParams(c,t,"description")),null!=r&&(c=this.addToHttpParams(c,r,"loginNamespace")),null!=l&&(c=this.addToHttpParams(c,l,"password"));let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/createAlternativePassword`,null,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}createServiceUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateServiceUser was null or undefined when calling createServiceUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/createServiceUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteAlternativePassword(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteAlternativePassword.");if(null==t)throw new Error("Required parameter loginNamespace was null or undefined when calling deleteAlternativePassword.");if(null==r)throw new Error("Required parameter passwordId was null or undefined when calling deleteAlternativePassword.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"loginNamespace")),null!=r&&(o=this.addToHttpParams(o,r,"passwordId"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteAlternativePassword`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}deletePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling deletePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deletePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deletePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling deletePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deletePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}deleteUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling deleteUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/deleteUser`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findRichUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}findRichUsersWithAttributes(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findRichUsersWithAttributes.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"searchString")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrsNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findRichUsersWithAttributes`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findUsers(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter searchString was null or undefined when calling findUsers.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"searchString"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/findUsers`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}generateAccountForName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter namespace was null or undefined when calling generateAccountForName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"namespace")),null!=t&&(s=this.addToHttpParams(s,t,"name"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/generateAccount/name`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllRichUsersWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter includedSpecificUsers was null or undefined when calling getAllRichUsersWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"includedSpecificUsers"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAllRichUsersWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getAssignedRichResourcesForUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getAssignedRichResourcesForUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getAssignedRichResources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getGroupsForFacilityWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");if(null==t)throw new Error("Required parameter facility was null or undefined when calling getGroupsForFacilityWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"facility"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/facility`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsForResourceWhereUserIsActive(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsForResourceWhereUserIsActive.");if(null==t)throw new Error("Required parameter resource was null or undefined when calling getGroupsForResourceWhereUserIsActive.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"resource"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsActive/resource`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsInVoWhereUserIsAdmin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");if(null==t)throw new Error("Required parameter vo was null or undefined when calling getGroupsInVoWhereUserIsAdmin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"vo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u-v`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getGroupsWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getGroupsWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getGroupsWhereUserIsAdmin/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getPendingPreferredEmailChanges(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getPendingPreferredEmailChanges.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getPendingPreferredEmailChanges`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserExtSources/u`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUserWithAttributes(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getRichUserWithAttributes.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUserWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithAttributesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getRichUsersWithAttributesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithAttributesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichUsersWithoutVoWithAttributes(e,t="body",r=!1,l){let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"attrsNames[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getRichUsersWithoutVoWithAttributes`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSpecificUsersByUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getSpecificUsersByUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSpecificUsersByUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getSponsorsForMember(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter member was null or undefined when calling getSponsorsForMember.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"member")),t&&t.forEach(b=>{s=this.addToHttpParams(s,b,"attrNames[]")});let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/member`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getSponsorsForMemberByVoAndLogin(e,t,r,l,d="body",s=!1,o){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getSponsorsForMemberByVoAndLogin.");if(null==r)throw new Error("Required parameter extLogin was null or undefined when calling getSponsorsForMemberByVoAndLogin.");let c=new M.LE({encoder:this.encoder});null!=e&&(c=this.addToHttpParams(c,e,"vo")),null!=t&&(c=this.addToHttpParams(c,t,"extSourceName")),null!=r&&(c=this.addToHttpParams(c,r,"extLogin")),l&&l.forEach(ee=>{c=this.addToHttpParams(c,ee,"attrNames[]")});let h,u=this.defaultHeaders;h=this.configuration.lookupCredential("BasicAuth"),h&&(u=u.set("Authorization","Basic "+h)),h=this.configuration.lookupCredential("BearerAuth"),h&&(u=u.set("Authorization","Bearer "+h));let f=o&&o.httpHeaderAccept;void 0===f&&(f=this.configuration.selectHeaderAccept(["application/json"])),void 0!==f&&(u=u.set("Accept",f));let b=o&&o.context;void 0===b&&(b=new M.qT);let V="json";return f&&(V=f.startsWith("text")?"text":this.configuration.isJsonMime(f)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getSponsorsForMember/vo`,{context:b,params:c,responseType:V,withCredentials:this.configuration.withCredentials,headers:u,observe:d,reportProgress:s})}getUserByExtSourceNameAndExtLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extLogin was null or undefined when calling getUserByExtSourceNameAndExtLogin.");if(null==t)throw new Error("Required parameter extSourceName was null or undefined when calling getUserByExtSourceNameAndExtLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extLogin")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserByExtSourceNameAndExtLogin`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getUserById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByExtLoginAndExtSourceName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter extSourceName was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");if(null==t)throw new Error("Required parameter extSourceLogin was null or undefined when calling getUserExtSourceByExtLoginAndExtSourceName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"extSourceName")),null!=t&&(s=this.addToHttpParams(s,t,"extSourceLogin"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByExtLoginAndExtSourceName`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling getUserExtSourceById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourceByUniqueAttributeValueAndAttributeId(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeId was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeId.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeId")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/id`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSourceByUniqueAttributeValueAndAttributeName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter attributeName was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");if(null==t)throw new Error("Required parameter attributeValue was null or undefined when calling getUserExtSourceByUniqueAttributeValueAndAttributeName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"attributeName")),null!=t&&(s=this.addToHttpParams(s,t,"attributeValue"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourceByUniqueAttributeValue/name`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getUserExtSources(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getUserExtSources.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSources`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUserExtSourcesByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUserExtSourcesByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUserExtSourcesByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsers(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsers`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getUsersByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getUsersByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersBySpecificUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter specificUser was null or undefined when calling getUsersBySpecificUser.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"specificUser"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getUsersBySpecificUser`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getUsersPage(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputGetPaginatedUsers was null or undefined when calling getUsersPage.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/getUsersPage`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}getVosWhereUserIsAdmin(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsAdmin.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsAdmin`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosWhereUserIsMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter user was null or undefined when calling getVosWhereUserIsMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"user"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/usersManager/getVosWhereUserIsMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}isLoginAvailable(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter loginNamespace was null or undefined when calling isLoginAvailable.");if(null==t)throw new Error("Required parameter login was null or undefined when calling isLoginAvailable.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"loginNamespace")),null!=t&&(s=this.addToHttpParams(s,t,"login"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/isLoginAvailable`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}loginExist(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling loginExist.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling loginExist.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/loginExist`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSpecificUserOwner(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeSpecificUserOwner.");if(null==t)throw new Error("Required parameter specificUser was null or undefined when calling removeSpecificUserOwner.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"specificUser"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeSpecificUserOwner`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeUserExtSource(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling removeUserExtSource.");if(null==t)throw new Error("Required parameter userExtSource was null or undefined when calling removeUserExtSource.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"userExtSource")),null!=r&&(o=this.addToHttpParams(o,r,"force"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/removeUserExtSource`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}requestPreferredEmailChange(e,t,r,l,d,s,o="body",c=!1,u){if(null==e)throw new Error("Required parameter user was null or undefined when calling requestPreferredEmailChange.");if(null==t)throw new Error("Required parameter email was null or undefined when calling requestPreferredEmailChange.");let h=new M.LE({encoder:this.encoder});null!=e&&(h=this.addToHttpParams(h,e,"user")),null!=t&&(h=this.addToHttpParams(h,t,"email")),null!=r&&(h=this.addToHttpParams(h,r,"lang")),null!=l&&(h=this.addToHttpParams(h,l,"linkPath")),null!=d&&(h=this.addToHttpParams(h,d,"customUrl")),null!=s&&(h=this.addToHttpParams(h,s,"idpFilter"));let b,f=this.defaultHeaders;b=this.configuration.lookupCredential("BasicAuth"),b&&(f=f.set("Authorization","Basic "+b)),b=this.configuration.lookupCredential("BearerAuth"),b&&(f=f.set("Authorization","Bearer "+b));let V=u&&u.httpHeaderAccept;void 0===V&&(V=this.configuration.selectHeaderAccept(["application/json"])),void 0!==V&&(f=f.set("Accept",V));let ee=u&&u.context;void 0===ee&&(ee=new M.qT);let he="json";return V&&(he=V.startsWith("text")?"text":this.configuration.isJsonMime(V)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/requestPreferredEmailChange`,null,{context:ee,params:h,responseType:he,withCredentials:this.configuration.withCredentials,headers:f,observe:o,reportProgress:c})}reservePasswordForLogin(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter login was null or undefined when calling reservePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForLogin.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForLogin.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"login")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/login`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reservePasswordForUser(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter user was null or undefined when calling reservePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reservePasswordForUser.");if(null==r)throw new Error("Required parameter password was null or undefined when calling reservePasswordForUser.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"user")),null!=t&&(o=this.addToHttpParams(o,t,"namespace")),null!=r&&(o=this.addToHttpParams(o,r,"password"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reservePassword/user`,null,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}reserveRandomPassword(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling reserveRandomPassword.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling reserveRandomPassword.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/reserveRandomPassword`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}updateUser(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateUser was null or undefined when calling updateUser.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/usersManager/updateUser`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateUserExtSourceLastAccess(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter userExtSource was null or undefined when calling updateUserExtSourceLastAccess.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"userExtSource"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/updateUserExtSourceLastAccess`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}validatePasswordForLogin(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter login was null or undefined when calling validatePasswordForLogin.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForLogin.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"login")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/login`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePasswordForUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter user was null or undefined when calling validatePasswordForUser.");if(null==t)throw new Error("Required parameter namespace was null or undefined when calling validatePasswordForUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"user")),null!=t&&(s=this.addToHttpParams(s,t,"namespace"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePassword/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}validatePreferredEmailChangeWithToken(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter token was null or undefined when calling validatePreferredEmailChangeWithToken.");if(null==t)throw new Error("Required parameter u was null or undefined when calling validatePreferredEmailChangeWithToken.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"token")),null!=t&&(s=this.addToHttpParams(s,t,"u"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/usersManager/validatePreferredEmailChange`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ht=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}getAppsConfig(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getAppsConfig`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getGuiConfiguration(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getGuiConfiguration`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunRPCVersion(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["text/plain"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatistics(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatistics`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunStatus(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunStatus`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getPerunSystemTimeInMillis(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/utils/getPerunSystemTimeInMillis`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bs=(()=>{class n{constructor(e,t,r){this.httpClient=e,this.basePath="https://perun.cesnet.cz/krb/rpc",this.defaultHeaders=new M.WM,this.configuration=new Xe,r&&(this.configuration=r),"string"!=typeof this.configuration.basePath&&("string"!=typeof t&&(t=this.basePath),this.configuration.basePath=t),this.encoder=this.configuration.encoder||new Be}addToHttpParams(e,t,r){return"object"!=typeof t||t instanceof Date?this.addToHttpParamsRecursive(e,t,r):this.addToHttpParamsRecursive(e,t)}addToHttpParamsRecursive(e,t,r){if(null==t)return e;if("object"==typeof t)if(Array.isArray(t))t.forEach(l=>e=this.addToHttpParamsRecursive(e,l,r));else if(t instanceof Date){if(null==r)throw Error("key may not be null if value is Date");e=e.append(r,t.toISOString().substr(0,10))}else Object.keys(t).forEach(l=>e=this.addToHttpParamsRecursive(e,t[l],null!=r?`${r}.${l}`:l));else{if(null==r)throw Error("key may not be null if value is not object or array");e=e.append(r,t)}return e}addMemberVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling addMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addSponsorRoleToGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addSponsorRoleToUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addSponsorRoleToUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addSponsorRoleToUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling addVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}addVoAdminUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling addVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling addVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/addAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithName(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter name was null or undefined when calling createVoWithName.");if(null==t)throw new Error("Required parameter shortName was null or undefined when calling createVoWithName.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"name")),null!=t&&(s=this.addToHttpParams(s,t,"shortName"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/createVo/withName`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}createVoWithVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputCreateVoWithVo was null or undefined when calling createVoWithVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/createVo/withVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}deleteVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling deleteVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"force"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/deleteVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}findCandidates(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter id was null or undefined when calling findCandidates.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidates.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"id")),null!=t&&(o=this.addToHttpParams(o,t,"searchString")),null!=r&&(o=this.addToHttpParams(o,r,"maxNumOfResults"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}findCandidatesForGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter group was null or undefined when calling findCandidatesForGroup.");if(null==t)throw new Error("Required parameter searchString was null or undefined when calling findCandidatesForGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"group")),null!=t&&(s=this.addToHttpParams(s,t,"searchString"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/findCandidates/forGroup`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getAllVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAllVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getCompleteCandidatesForGroup(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter group was null or undefined when calling getCompleteCandidatesForGroup.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForGroup.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForGroup.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"group")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forGroup`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getCompleteCandidatesForVo(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getCompleteCandidatesForVo.");if(null==t)throw new Error("Required parameter attrNames was null or undefined when calling getCompleteCandidatesForVo.");if(null==r)throw new Error("Required parameter searchString was null or undefined when calling getCompleteCandidatesForVo.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),t&&t.forEach(V=>{o=this.addToHttpParams(o,V,"attrNames[]")}),null!=r&&(o=this.addToHttpParams(o,r,"searchString"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getCompleteCandidates/forVo`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getEnrichedVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getEnrichedVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMemberVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getMemberVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getMemberVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getMyEnrichedVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getEnrichedVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getMyVos(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVos`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}getParentVos(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getParentVos.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getParentVos`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getRichAdminsForVo(e,t,r,l,d,s="body",o=!1,c){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getRichAdminsForVo.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getRichAdminsForVo.");if(null==r)throw new Error("Required parameter specificAttributes was null or undefined when calling getRichAdminsForVo.");if(null==l)throw new Error("Required parameter allUserAttributes was null or undefined when calling getRichAdminsForVo.");if(null==d)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getRichAdminsForVo.");let u=new M.LE({encoder:this.encoder});null!=e&&(u=this.addToHttpParams(u,e,"vo")),null!=t&&(u=this.addToHttpParams(u,t,"role")),r&&r.forEach(he=>{u=this.addToHttpParams(u,he,"specificAttributes")}),null!=l&&(u=this.addToHttpParams(u,l,"allUserAttributes")),null!=d&&(u=this.addToHttpParams(u,d,"onlyDirectAdmins"));let f,h=this.defaultHeaders;f=this.configuration.lookupCredential("BasicAuth"),f&&(h=h.set("Authorization","Basic "+f)),f=this.configuration.lookupCredential("BearerAuth"),f&&(h=h.set("Authorization","Bearer "+f));let b=c&&c.httpHeaderAccept;void 0===b&&(b=this.configuration.selectHeaderAccept(["application/json"])),void 0!==b&&(h=h.set("Accept",b));let V=c&&c.context;void 0===V&&(V=new M.qT);let ee="json";return b&&(ee=b.startsWith("text")?"text":this.configuration.isJsonMime(b)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getRichAdmins`,{context:V,params:u,responseType:ee,withCredentials:this.configuration.withCredentials,headers:h,observe:s,reportProgress:o})}getVoAdminGroups(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminGroups.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminGroups.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"role"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdminGroups`,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}getVoAdminUsers(e,t,r,l="body",d=!1,s){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoAdminUsers.");if(null==t)throw new Error("Required parameter role was null or undefined when calling getVoAdminUsers.");if(null==r)throw new Error("Required parameter onlyDirectAdmins was null or undefined when calling getVoAdminUsers.");let o=new M.LE({encoder:this.encoder});null!=e&&(o=this.addToHttpParams(o,e,"vo")),null!=t&&(o=this.addToHttpParams(o,t,"role")),null!=r&&(o=this.addToHttpParams(o,r,"onlyDirectAdmins"));let u,c=this.defaultHeaders;u=this.configuration.lookupCredential("BasicAuth"),u&&(c=c.set("Authorization","Basic "+u)),u=this.configuration.lookupCredential("BearerAuth"),u&&(c=c.set("Authorization","Bearer "+u));let h=s&&s.httpHeaderAccept;void 0===h&&(h=this.configuration.selectHeaderAccept(["application/json"])),void 0!==h&&(c=c.set("Accept",h));let f=s&&s.context;void 0===f&&(f=new M.qT);let b="json";return h&&(b=h.startsWith("text")?"text":this.configuration.isJsonMime(h)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getAdmins`,{context:f,params:o,responseType:b,withCredentials:this.configuration.withCredentials,headers:c,observe:l,reportProgress:d})}getVoBanById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling getVoBanById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling getVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBanForMember`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoBansForVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoBansForVo.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getBansForVo`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoById(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter id was null or undefined when calling getVoById.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"id"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoById`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoByShortName(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter shortName was null or undefined when calling getVoByShortName.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"shortName"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoByShortName`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVoMembersCountsByStatus(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter vo was null or undefined when calling getVoMembersCountsByStatus.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"vo"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVoMembersCountsByStatus`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosByIds(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter ids was null or undefined when calling getVosByIds.");let d=new M.LE({encoder:this.encoder});e&&e.forEach(f=>{d=this.addToHttpParams(d,f,"ids[]")});let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosByIds`,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}getVosCount(e="body",t=!1,r){let d,l=this.defaultHeaders;d=this.configuration.lookupCredential("BasicAuth"),d&&(l=l.set("Authorization","Basic "+d)),d=this.configuration.lookupCredential("BearerAuth"),d&&(l=l.set("Authorization","Bearer "+d));let s=r&&r.httpHeaderAccept;void 0===s&&(s=this.configuration.selectHeaderAccept(["application/json"])),void 0!==s&&(l=l.set("Accept",s));let o=r&&r.context;void 0===o&&(o=new M.qT);let c="json";return s&&(c=s.startsWith("text")?"text":this.configuration.isJsonMime(s)?"json":"blob"),this.httpClient.get(`${this.configuration.basePath}/json/vosManager/getVosCount`,{context:o,responseType:c,withCredentials:this.configuration.withCredentials,headers:l,observe:e,reportProgress:t})}removeMemberVo(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeMemberVo.");if(null==t)throw new Error("Required parameter memberVo was null or undefined when calling removeMemberVo.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"memberVo"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeMemberVo`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeSponsorRoleFromGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeSponsorRoleFromUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeSponsorRoleFromUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeSponsorRoleFromUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeSponsorRole/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminGroup(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminGroup.");if(null==t)throw new Error("Required parameter authorizedGroup was null or undefined when calling removeVoAdminGroup.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"authorizedGroup"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/group`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoAdminUser(e,t,r="body",l=!1,d){if(null==e)throw new Error("Required parameter vo was null or undefined when calling removeVoAdminUser.");if(null==t)throw new Error("Required parameter user was null or undefined when calling removeVoAdminUser.");let s=new M.LE({encoder:this.encoder});null!=e&&(s=this.addToHttpParams(s,e,"vo")),null!=t&&(s=this.addToHttpParams(s,t,"user"));let c,o=this.defaultHeaders;c=this.configuration.lookupCredential("BasicAuth"),c&&(o=o.set("Authorization","Basic "+c)),c=this.configuration.lookupCredential("BearerAuth"),c&&(o=o.set("Authorization","Bearer "+c));let u=d&&d.httpHeaderAccept;void 0===u&&(u=this.configuration.selectHeaderAccept(["application/json"])),void 0!==u&&(o=o.set("Accept",u));let h=d&&d.context;void 0===h&&(h=new M.qT);let f="json";return u&&(f=u.startsWith("text")?"text":this.configuration.isJsonMime(u)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeAdmin/user`,null,{context:h,params:s,responseType:f,withCredentials:this.configuration.withCredentials,headers:o,observe:r,reportProgress:l})}removeVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter banId was null or undefined when calling removeVoBan.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"banId"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBan`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}removeVoBanForMember(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter member was null or undefined when calling removeVoBanForMember.");let d=new M.LE({encoder:this.encoder});null!=e&&(d=this.addToHttpParams(d,e,"member"));let o,s=this.defaultHeaders;o=this.configuration.lookupCredential("BasicAuth"),o&&(s=s.set("Authorization","Basic "+o)),o=this.configuration.lookupCredential("BearerAuth"),o&&(s=s.set("Authorization","Bearer "+o));let c=l&&l.httpHeaderAccept;void 0===c&&(c=this.configuration.selectHeaderAccept(["application/json"])),void 0!==c&&(s=s.set("Accept",c));let u=l&&l.context;void 0===u&&(u=new M.qT);let h="json";return c&&(h=c.startsWith("text")?"text":this.configuration.isJsonMime(c)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/urlinjsonout/vosManager/removeBanForMember`,null,{context:u,params:d,responseType:h,withCredentials:this.configuration.withCredentials,headers:s,observe:t,reportProgress:r})}setVoBan(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputSetVoBan was null or undefined when calling setVoBan.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/setBan`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}updateVo(e,t="body",r=!1,l){if(null==e)throw new Error("Required parameter InputUpdateVo was null or undefined when calling updateVo.");let s,d=this.defaultHeaders;s=this.configuration.lookupCredential("BasicAuth"),s&&(d=d.set("Authorization","Basic "+s)),s=this.configuration.lookupCredential("BearerAuth"),s&&(d=d.set("Authorization","Bearer "+s));let o=l&&l.httpHeaderAccept;void 0===o&&(o=this.configuration.selectHeaderAccept(["application/json"])),void 0!==o&&(d=d.set("Accept",o));let c=l&&l.context;void 0===c&&(c=new M.qT);const h=this.configuration.selectHeaderContentType(["application/json"]);void 0!==h&&(d=d.set("Content-Type",h));let f="json";return o&&(f=o.startsWith("text")?"text":this.configuration.isJsonMime(o)?"json":"blob"),this.httpClient.post(`${this.configuration.basePath}/json/vosManager/updateVo`,e,{context:c,responseType:f,withCredentials:this.configuration.withCredentials,headers:d,observe:t,reportProgress:r})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(vi,8),i.LFG(Xe,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Nt=(()=>{return(n=Nt||(Nt={})).PERUNADMIN="PERUNADMIN",n.PERUNOBSERVER="PERUNOBSERVER",n.VOADMIN="VOADMIN",n.GROUPADMIN="GROUPADMIN",n.GROUPOBSERVER="GROUPOBSERVER",n.SELF="SELF",n.FACILITYADMIN="FACILITYADMIN",n.FACILITIYOBSERVER="FACILITYOBSERVER",n.RESOURCEADMIN="RESOURCEADMIN",n.RESOURCESELFSERVICE="RESOURCESELFSERVICE",n.REGISTRAR="REGISTRAR",n.ENGINE="ENGINE",n.RPC="RPC",n.NOTIFICATIONS="NOTIFICATIONS",n.SERVICEUSER="SERVICEUSER",n.SPONSOR="SPONSOR",n.VOOBSERVER="VOOBSERVER",n.TOPGROUPCREATOR="TOPGROUPCREATOR",n.SECURITYADMIN="SECURITYADMIN",n.CABINETADMIN="CABINETADMIN",n.UNKNOWNROLENAME="UNKNOWNROLENAME",n.AUDITCONSUMERADMIN="AUDITCONSUMERADMIN",n.UNKNOWN="UNKNOWN",n.MEMBERSHIP="MEMBERSHIP",Nt;var n})();let Ms=(()=>{class n{constructor(e){this.authzSevice=e,this.principalRoles=new Set,this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}init(e){this.principal=e,this.initData(e)}setPerunPolicies(e){this.perunPolicies=e}getPerunPolicies(){return this.perunPolicies}isAuthorized(e,t){if(null===this.principal.roles)return!1;const r=this.fetchPolicyWithAllIncludedPolicies(e);let l=[];for(const s of r)l=l.concat(s.perunRoles);const d=this.fetchAllRelatedObjects(t);return this.resolveAuthorization(l,d)}principalHasRole(e,t,r){let l=t;return t.startsWith("Rich")&&(l=t.substring(4)),!(!this.principal.roles[e]||!this.principal.roles[e][l])&&this.principal.roles[e][l].includes(Number(r.toString()))}canManageFacilities(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.PERUNOBSERVER,Nt.FACILITYADMIN,Nt.FACILITIYOBSERVER)}isPerunAdmin(){return this.principalRoles.has(Nt.PERUNADMIN)}isPerunAdminOrObserver(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.PERUNOBSERVER)}isVoAdmin(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.VOADMIN)}isThisVoAdminOrObserver(e){return this.editableVos.includes(Number(e.toString()))||this.observableVos.includes(Number(e.toString()))||this.hasAtLeastOne(Nt.PERUNADMIN,Nt.PERUNOBSERVER)}isThisVoAdmin(e){return this.editableVos.includes(e)||this.principalRoles.has(Nt.PERUNADMIN)}isGroupAdmin(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.GROUPADMIN)}isOnlySponsor(){return this.hasAtLeastOne(Nt.SPONSOR)}isThisGroupAdmin(e){return this.editableGroups.includes(e)||this.principalRoles.has(Nt.PERUNADMIN)}isGroupAdminInThisVo(e){return this.hasGroupInTheseVos.includes(e)}isFacilityAdmin(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.FACILITYADMIN)}isThisFacilityAdmin(e){return this.editableFacilities.includes(e)||this.principalRoles.has(Nt.PERUNADMIN)}isResourceAdmin(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.RESOURCEADMIN)}isTopGroupCreator(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.TOPGROUPCREATOR)}isTopGroupCreatorOnly(){return this.hasAtLeastOne(Nt.TOPGROUPCREATOR)}isCabinetAdmin(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.CABINETADMIN)}isVoObserver(){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.VOOBSERVER,Nt.PERUNOBSERVER)}isThisVoObserver(e){return this.hasAtLeastOne(Nt.PERUNADMIN,Nt.PERUNOBSERVER)||this.observableVos.includes(e)}getMemberIds(){return this.members}loadRolesManagementRules(){return new Promise((e,t)=>{this.authzSevice.getAllRolesManagementRules().subscribe(r=>{this.allRolesManagementRules=r,e()},r=>t(r))})}assignAvailableRoles(e,t){this.allRolesManagementRules.forEach(r=>{r.primaryObject===t&&e.push(r.roleName)}),e.sort(),"Vo"===t&&this.voCustomSort(e)}isManagerPagePrivileged(e){const t=[];let r=e.beanName;r.startsWith("Rich")&&(r=r.substring(4)),this.assignAvailableRoles(t,r);const l=new Map;this.setRolesAuthorization(t,e,l);for(const d of l.values())if(d.readAuth||d.manageAuth)return!0;return!1}setRolesAuthorization(e,t,r){for(const l of e){let d=[],s=[],o=[];for(const b of this.allRolesManagementRules)if(b.roleName===l){d=d.concat(b.privilegedRolesToRead),s=s.concat(b.privilegedRolesToManage);for(const V of Object.keys(b.entitiesToManage))o="User"===V?[V].concat(o):o.concat(V);break}const c=this.fetchAllRelatedObjects([t]),u=this.resolveAuthorization(d,c),h=this.resolveAuthorization(s,c);r.set(l,{readAuth:u,manageAuth:h,modes:o})}}initializeVariables(){this.principalRoles.clear(),this.editableFacilities=[],this.editableVos=[],this.members=[],this.editableGroups=[],this.observableVos=[],this.hasGroupInTheseVos=[]}getPrimaryObjectOfRole(e){for(const t of this.allRolesManagementRules)if(t.roleName===e)return t.primaryObject;return""}resolveAuthorization(e,t){for(const r of e){let l=!0;for(const d of Object.keys(r)){const s=r[d];if(null===s)this.principalRoles.has(d)||(l=!1);else if(t[s]){for(const o of t[s])if(!this.principalHasRole(d,s,o)){l=!1;break}}else l=!1;if(!l)break}if(l)return!0}return!1}getPerunPolicy(e){for(const t of this.perunPolicies)if(t.policyName===e)return t;return null}fetchAllRelatedObjects(e){const t={};for(const r of e){let l=r.beanName;switch(r.beanName.startsWith("Rich")&&(l=r.beanName.substring(4)),t[l]?t[l].push(r.id):t[l]=[r.id],l){case"Member":t.User?t.User.push(r.userId):t.User=[r.userId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Group":case"ResourceTag":t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId];break;case"Resource":t.Facility?t.Facility.push(r.facilityId):t.Facility=[r.facilityId],t.Vo?t.Vo.push(r.voId):t.Vo=[r.voId]}}return t}fetchPolicyWithAllIncludedPolicies(e){const t=new Map;let r=[];for(r.push(e);0!==r.length;){const d=r.shift();if(t.has(d))continue;const s=this.getPerunPolicy(d);if(!s)return[];t.set(d,s),r=r.concat(s.includePolicies)}const l=[];for(const d of t.values())l.push(d);return l}voCustomSort(e){for(let t=0;t{let e;try{e=n()}catch(r){return void a.error(r)}return(e?(0,un.D)(e):(0,wn.c)()).subscribe(a)})}var Cs=x(1762),ht=x(4850),ji=x(7545),Zt=x(2986),Fa=x(2866);function _i(...n){const a=n[n.length-1];return(0,Fa.K)(a)?(n.pop(),e=>ws(n,e,a)):e=>ws(n,e)}var Sr=x(3489);function vs(n,a){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new Cd(n,a,e))}}class Cd{constructor(a,e,t=!1){this.accumulator=a,this.seed=e,this.hasSeed=t}call(a,e){return e.subscribe(new Fn(a,this.accumulator,this.seed,this.hasSeed))}}class Fn extends Sr.L{constructor(a,e,t,r){super(a),this.accumulator=e,this._seed=t,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const e=this.index++;let t;try{t=this.accumulator(this.seed,a,e)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}}var Cn=x(7221),Ts=x(1406),Xo=x(4231);function bi(n){return function(e){return 0===n?(0,wn.c)():e.lift(new xs(n))}}class xs{constructor(a){if(this.total=a,this.total<0)throw new Xo.W}call(a,e){return e.subscribe(new ga(a,this.total))}}class ga extends Sr.L{constructor(a,e){super(a),this.total=e,this.ring=new Array,this.count=0}_next(a){const e=this.ring,t=this.total,r=this.count++;e.length0){const t=this.count>=this.total?this.total:this.count,r=this.ring;for(let l=0;la.lift(new Se(n))}class Se{constructor(a){this.callback=a}call(a,e){return e.subscribe(new nt(a,this.callback))}}class nt extends Sr.L{constructor(a,e){super(a),this.add(new re.w(e))}}class Yt{constructor(a,e){this.id=a,this.url=e}}class Xt extends Yt{constructor(a,e,t="imperative",r=null){super(a,e),this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class At extends Yt{constructor(a,e,t){super(a,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Ft extends Yt{constructor(a,e,t){super(a,e),this.reason=t}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Zi extends Yt{constructor(a,e,t){super(a,e),this.error=t}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class xi extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ki extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _a extends Yt{constructor(a,e,t,r,l){super(a,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=l}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Er extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mt extends Yt{constructor(a,e,t,r){super(a,e),this.urlAfterRedirects=t,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ja{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ko{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class el{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tl{constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gu{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class so{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zu{constructor(a,e,t){this.routerEvent=a,this.position=e,this.anchor=t}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const be="primary";class $t{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e[0]:e}return null}getAll(a){if(this.has(a)){const e=this.params[a];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function ba(n){return new $t(n)}const $i="ngNavigationCancelingError";function uc(n){const a=Error("NavigationCancelingError: "+n);return a[$i]=!0,a}function qr(n,a,e){const t=e.path.split("/");if(t.length>n.length||"full"===e.pathMatch&&(a.hasChildren()||t.lengtht[l]===r)}return n===a}function wi(n){return Array.prototype.concat.apply([],n)}function nl(n){return n.length>0?n[n.length-1]:null}function ei(n,a){for(const e in n)n.hasOwnProperty(e)&&a(n[e],e)}function hn(n){return(0,i.CqO)(n)?n:(0,i.QGY)(n)?(0,un.D)(Promise.resolve(n)):(0,$e.of)(n)}const oo={exact:function Ku(n,a,e){if(!Wr(n.segments,a.segments)||!rl(n.segments,a.segments,e)||n.numberOfChildren!==a.numberOfChildren)return!1;for(const t in a.children)if(!n.children[t]||!Ku(n.children[t],a.children[t],e))return!1;return!0},subset:Ss},jn={exact:function Xu(n,a){return _r(n,a)},subset:function pc(n,a){return Object.keys(a).length<=Object.keys(n).length&&Object.keys(a).every(e=>$u(n[e],a[e]))},ignored:()=>!0};function Ju(n,a,e){return oo[e.paths](n.root,a.root,e.matrixParams)&&jn[e.queryParams](n.queryParams,a.queryParams)&&!("exact"===e.fragment&&n.fragment!==a.fragment)}function Ss(n,a,e){return lo(n,a,a.segments,e)}function lo(n,a,e,t){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Wr(r,e)||a.hasChildren()||!rl(r,e,t))}if(n.segments.length===e.length){if(!Wr(n.segments,e)||!rl(n.segments,e,t))return!1;for(const r in a.children)if(!n.children[r]||!Ss(n.children[r],a.children[r],t))return!1;return!0}{const r=e.slice(0,n.segments.length),l=e.slice(n.segments.length);return!!(Wr(n.segments,r)&&rl(n.segments,r,t)&&n.children[be])&&lo(n.children[be],a,l,t)}}function rl(n,a,e){return a.every((t,r)=>jn[e](n[r].parameters,t.parameters))}class Yr{constructor(a,e,t){this.root=a,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return fc.serialize(this)}}class Wt{constructor(a,e){this.segments=a,this.children=e,this.parent=null,ei(e,(t,r)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return mc(this)}}class qa{constructor(a,e){this.path=a,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ba(this.parameters)),this._parameterMap}toString(){return th(this)}}function Wr(n,a){return n.length===a.length&&n.every((e,t)=>e.path===a[t].path)}class Td{}class xd{parse(a){const e=new Aa(a);return new Yr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(a){const e=`/${al(a.root,!0)}`,t=function Es(n){const a=Object.keys(n).map(e=>{const t=n[e];return Array.isArray(t)?t.map(r=>`${Dr(e)}=${Dr(r)}`).join("&"):`${Dr(e)}=${Dr(t)}`}).filter(e=>!!e);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${e}${t}${"string"==typeof a.fragment?`#${function Oi(n){return encodeURI(n)}(a.fragment)}`:""}`}}const fc=new xd;function mc(n){return n.segments.map(a=>th(a)).join("/")}function al(n,a){if(!n.hasChildren())return mc(n);if(a){const e=n.children[be]?al(n.children[be],!1):"",t=[];return ei(n.children,(r,l)=>{l!==be&&t.push(`${l}:${al(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}{const e=function eh(n,a){let e=[];return ei(n.children,(t,r)=>{r===be&&(e=e.concat(a(t,r)))}),ei(n.children,(t,r)=>{r!==be&&(e=e.concat(a(t,r)))}),e}(n,(t,r)=>r===be?[al(n.children[be],!1)]:[`${r}:${al(t,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[be]?`${mc(n)}/${e[0]}`:`${mc(n)}/(${e.join("//")})`}}function Hn(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dr(n){return Hn(n).replace(/%3B/gi,";")}function gc(n){return Hn(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function sl(n){return decodeURIComponent(n)}function Sd(n){return sl(n.replace(/\+/g,"%20"))}function th(n){return`${gc(n.path)}${function Hr(n){return Object.keys(n).map(a=>`;${gc(a)}=${gc(n[a])}`).join("")}(n.parameters)}`}const ol=/^[^\/()?;=#]+/;function Ds(n){const a=n.match(ol);return a?a[0]:""}const ll=/^[^=?&#]+/,ih=/^[^&#]+/;class Aa{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Wt([],{}):new Wt([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(a.length>0||Object.keys(e).length>0)&&(t[be]=new Wt(a,e)),t}parseSegment(){const a=Ds(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new qa(sl(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const e=Ds(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const r=Ds(this.remaining);r&&(t=r,this.capture(t))}a[sl(e)]=sl(t)}parseQueryParam(a){const e=function _c(n){const a=n.match(ll);return a?a[0]:""}(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){const d=function Tf(n){const a=n.match(ih);return a?a[0]:""}(this.remaining);d&&(t=d,this.capture(t))}const r=Sd(e),l=Sd(t);if(a.hasOwnProperty(r)){let d=a[r];Array.isArray(d)||(d=[d],a[r]=d),d.push(l)}else a[r]=l}parseParens(a){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const t=Ds(this.remaining),r=this.remaining[t.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let l;t.indexOf(":")>-1?(l=t.substr(0,t.indexOf(":")),this.capture(l),this.capture(":")):a&&(l=be);const d=this.parseChildren();e[l]=1===Object.keys(d).length?d[be]:new Wt([],d),this.consumeOptional("//")}return e}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class uo{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const e=this.pathFromRoot(a);return e.length>1?e[e.length-2]:null}children(a){const e=Ed(a,this._root);return e?e.children.map(t=>t.value):[]}firstChild(a){const e=Ed(a,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(a){const e=Dd(a,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==a)}pathFromRoot(a){return Dd(a,this._root).map(e=>e.value)}}function Ed(n,a){if(n===a.value)return a;for(const e of a.children){const t=Ed(n,e);if(t)return t}return null}function Dd(n,a){if(n===a.value)return[a];for(const e of a.children){const t=Dd(n,e);if(t.length)return t.unshift(a),t}return[]}class ir{constructor(a,e){this.value=a,this.children=e}toString(){return`TreeNode(${this.value})`}}function Ya(n){const a={};return n&&n.children.forEach(e=>a[e.value.outlet]=e),a}class nh extends uo{constructor(a,e){super(a),this.snapshot=e,bc(this,a)}toString(){return this.snapshot.toString()}}function rh(n,a){const e=function I1(n,a){const d=new ho([],{},{},"",{},be,a,null,n.root,-1,{});return new dl("",new ir(d,[]))}(n,a),t=new Ki([new qa("",{})]),r=new Ki({}),l=new Ki({}),d=new Ki({}),s=new Ki(""),o=new nr(t,r,d,s,l,be,a,e.root);return o.snapshot=e.root,new nh(new ir(o,[]),e)}class nr{constructor(a,e,t,r,l,d,s,o){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this._futureSnapshot=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ht.U)(a=>ba(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ht.U)(a=>ba(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cl(n,a="emptyOnly"){const e=n.pathFromRoot;let t=0;if("always"!==a)for(t=e.length-1;t>=1;){const r=e[t],l=e[t-1];if(r.routeConfig&&""===r.routeConfig.path)t--;else{if(l.component)break;t--}}return function ah(n){return n.reduce((a,e)=>({params:Object.assign(Object.assign({},a.params),e.params),data:Object.assign(Object.assign({},a.data),e.data),resolve:Object.assign(Object.assign({},a.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(e.slice(t))}class ho{constructor(a,e,t,r,l,d,s,o,c,u,h){this.url=a,this.params=e,this.queryParams=t,this.fragment=r,this.data=l,this.outlet=d,this.component=s,this.routeConfig=o,this._urlSegment=c,this._lastPathIndex=u,this._resolve=h}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ba(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ba(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dl extends uo{constructor(a,e){super(e),this.url=a,bc(this,e)}toString(){return po(this._root)}}function bc(n,a){a.value._routerState=n,a.children.forEach(e=>bc(n,e))}function po(n){const a=n.children.length>0?` { ${n.children.map(po).join(", ")} } `:"";return`${n.value}${a}`}function Wa(n){if(n.snapshot){const a=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_r(a.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),a.fragment!==e.fragment&&n.fragment.next(e.fragment),_r(a.params,e.params)||n.params.next(e.params),function hc(n,a){if(n.length!==a.length)return!1;for(let e=0;e_r(e.parameters,a[t].parameters))}(n.url,a.url);return e&&!(!n.parent!=!a.parent)&&(!n.parent||Hd(n.parent,a.parent))}function Hs(n,a,e){if(e&&n.shouldReuseRoute(a.value,e.value.snapshot)){const t=e.value;t._futureSnapshot=a.value;const r=function Ac(n,a,e){return a.children.map(t=>{for(const r of e.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return Hs(n,t,r);return Hs(n,t)})}(n,a,e);return new ir(t,r)}{if(n.shouldAttach(a.value)){const l=n.retrieve(a.value);if(null!==l){const d=l.route;return d.value._futureSnapshot=a.value,d.children=a.children.map(s=>Hs(n,s)),d}}const t=function B1(n){return new nr(new Ki(n.url),new Ki(n.params),new Ki(n.queryParams),new Ki(n.fragment),new Ki(n.data),n.outlet,n.component,n)}(a.value),r=a.children.map(l=>Hs(n,l));return new ir(t,r)}}function ul(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function mo(n){return"object"==typeof n&&null!=n&&n.outlets}function yc(n,a,e,t,r){let l={};return t&&ei(t,(d,s)=>{l[s]=Array.isArray(d)?d.map(o=>`${o}`):`${d}`}),new Yr(e.root===n?a:Ls(e.root,n,a),l,r)}function Ls(n,a,e){const t={};return ei(n.children,(r,l)=>{t[l]=r===a?e:Ls(r,a,e)}),new Wt(n.segments,t)}class ks{constructor(a,e,t){if(this.isAbsolute=a,this.numberOfDoubleDots=e,this.commands=t,a&&t.length>0&&ul(t[0]))throw new Error("Root segment cannot have matrix parameters");const r=t.find(mo);if(r&&r!==nl(t))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ya{constructor(a,e,t){this.segmentGroup=a,this.processChildren=e,this.index=t}}function Mc(n,a,e){if(n||(n=new Wt([],{})),0===n.segments.length&&n.hasChildren())return pl(n,a,e);const t=function oh(n,a,e){let t=0,r=a;const l={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return l;const d=n.segments[r],s=e[t];if(mo(s))break;const o=`${s}`,c=t0&&void 0===o)break;if(o&&c&&"object"==typeof c&&void 0===c.outlets){if(!_o(o,c,d))return l;t+=2}else{if(!_o(o,{},d))return l;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}(n,a,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndex{"string"==typeof l&&(l=[l]),null!==l&&(r[d]=Mc(n.children[d],a,l))}),ei(n.children,(l,d)=>{void 0===t[d]&&(r[d]=l)}),new Wt(n.segments,r)}}function kd(n,a,e){const t=n.segments.slice(0,a);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(a[t]=kd(new Wt([],{}),0,e))}),a}function fl(n){const a={};return ei(n,(e,t)=>a[t]=`${e}`),a}function _o(n,a,e){return n==e.path&&_r(a,e.parameters)}class lh{constructor(a,e,t,r){this.routeReuseStrategy=a,this.futureState=e,this.currState=t,this.forwardEvent=r}activate(a){const e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,a),Wa(this.futureState.root),this.activateChildRoutes(e,t,a)}deactivateChildRoutes(a,e,t){const r=Ya(e);a.children.forEach(l=>{const d=l.value.outlet;this.deactivateRoutes(l,r[d],t),delete r[d]}),ei(r,(l,d)=>{this.deactivateRouteAndItsChildren(l,t)})}deactivateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(r===l)if(r.component){const d=t.getContext(r.outlet);d&&this.deactivateChildRoutes(a,e,d.children)}else this.deactivateChildRoutes(a,e,t);else l&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(a,e){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,e):this.deactivateRouteAndOutlet(a,e)}detachAndStoreRouteSubtree(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Ya(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);if(t&&t.outlet){const d=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:d,route:a,contexts:s})}}deactivateRouteAndOutlet(a,e){const t=e.getContext(a.value.outlet),r=t&&a.value.component?t.children:e,l=Ya(a);for(const d of Object.keys(l))this.deactivateRouteAndItsChildren(l[d],r);t&&t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated(),t.attachRef=null,t.resolver=null,t.route=null)}activateChildRoutes(a,e,t){const r=Ya(e);a.children.forEach(l=>{this.activateRoutes(l,r[l.value.outlet],t),this.forwardEvent(new so(l.value.snapshot))}),a.children.length&&this.forwardEvent(new tl(a.value.snapshot))}activateRoutes(a,e,t){const r=a.value,l=e?e.value:null;if(Wa(r),r===l)if(r.component){const d=t.getOrCreateContext(r.outlet);this.activateChildRoutes(a,e,d.children)}else this.activateChildRoutes(a,e,t);else if(r.component){const d=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),d.children.onOutletReAttached(s.contexts),d.attachRef=s.componentRef,d.route=s.route.value,d.outlet&&d.outlet.attach(s.componentRef,s.route.value),Wa(s.route.value),this.activateChildRoutes(a,null,d.children)}else{const s=function ch(n){for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),o=s?s.module.componentFactoryResolver:null;d.attachRef=null,d.route=r,d.resolver=o,d.outlet&&d.outlet.activateWith(r,o),this.activateChildRoutes(a,null,d.children)}}else this.activateChildRoutes(a,null,t)}}class Ga{constructor(a,e){this.routes=a,this.module=e}}function Ma(n){return"function"==typeof n}function wa(n){return n instanceof Yr}const Ps=Symbol("INITIAL_VALUE");function Ur(){return(0,ji.w)(n=>(0,no.aj)(n.map(a=>a.pipe((0,Zt.q)(1),_i(Ps)))).pipe(vs((a,e)=>{let t=!1;return e.reduce((r,l,d)=>r!==Ps?r:(l===Ps&&(t=!0),t||!1!==l&&d!==e.length-1&&!wa(l)?r:l),a)},Ps),(0,jt.h)(a=>a!==Ps),(0,ht.U)(a=>wa(a)?a:!0===a),(0,Zt.q)(1)))}class N1{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ml,this.attachRef=null}}class ml{constructor(){this.contexts=new Map}onChildOutletCreated(a,e){const t=this.getOrCreateContext(a);t.outlet=e,this.contexts.set(a,t)}onChildOutletDestroyed(a){const e=this.getContext(a);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let e=this.getContext(a);return e||(e=new N1,this.contexts.set(a,e)),e}getContext(a){return this.contexts.get(a)||null}}let hi=(()=>{class n{constructor(e,t,r,l,d){this.parentContexts=e,this.location=t,this.resolver=r,this.changeDetector=d,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.vpe,this.deactivateEvents=new i.vpe,this.attachEvents=new i.vpe,this.detachEvents=new i.vpe,this.name=l||be,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const d=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new Rd(e,s,this.location.injector);this.activated=this.location.createComponent(d,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ml),i.Y36(i.s_b),i.Y36(i._Vd),i.$8M("name"),i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),n})();class Rd{constructor(a,e,t){this.route=a,this.childContexts=e,this.parent=t}get(a,e){return a===nr?this.route:a===ml?this.childContexts:this.parent.get(a,e)}}let Ef=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],encapsulation:2}),n})();function Df(n,a=""){for(let e=0;eLr(t)===a);return e.push(...n.filter(t=>Lr(t)!==a)),e}const Hf={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ii(n,a,e){var t;if(""===a.path)return"full"===a.pathMatch&&(n.hasChildren()||e.length>0)?Object.assign({},Hf):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const l=(a.matcher||qr)(e,n,a);if(!l)return Object.assign({},Hf);const d={};ei(l.posParams,(o,c)=>{d[c]=o.path});const s=l.consumed.length>0?Object.assign(Object.assign({},d),l.consumed[l.consumed.length-1].parameters):d;return{matched:!0,consumedSegments:l.consumed,lastChild:l.consumed.length,parameters:s,positionalParamSegments:null!==(t=l.posParams)&&void 0!==t?t:{}}}function wo(n,a,e,t,r="corrected"){if(e.length>0&&function kf(n,a,e){return e.some(t=>qn(n,a,t)&&Lr(t)!==be)}(n,e,t)){const d=new Wt(a,function Lf(n,a,e,t){const r={};r[be]=t,t._sourceSegment=n,t._segmentIndexShift=a.length;for(const l of e)if(""===l.path&&Lr(l)!==be){const d=new Wt([],{});d._sourceSegment=n,d._segmentIndexShift=a.length,r[Lr(l)]=d}return r}(n,a,t,new Wt(e,n.children)));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:[]}}if(0===e.length&&function br(n,a,e){return e.some(t=>qn(n,a,t))}(n,e,t)){const d=new Wt(n.segments,function _l(n,a,e,t,r,l){const d={};for(const s of t)if(qn(n,e,s)&&!r[Lr(s)]){const o=new Wt([],{});o._sourceSegment=n,o._segmentIndexShift="legacy"===l?n.segments.length:a.length,d[Lr(s)]=o}return Object.assign(Object.assign({},r),d)}(n,a,e,t,n.children,r));return d._sourceSegment=n,d._segmentIndexShift=a.length,{segmentGroup:d,slicedSegments:e}}const l=new Wt(n.segments,n.children);return l._sourceSegment=n,l._segmentIndexShift=a.length,{segmentGroup:l,slicedSegments:e}}function qn(n,a,e){return(!(n.hasChildren()||a.length>0)||"full"!==e.pathMatch)&&""===e.path}function Od(n,a,e,t){return!!(Lr(n)===t||t!==be&&qn(a,e,n))&&("**"===n.path||Ii(a,n,e).matched)}function bl(n,a,e){return 0===a.length&&!n.children[e]}class Ca{constructor(a){this.segmentGroup=a||null}}class Gr{constructor(a){this.urlTree=a}}function Al(n){return new Ri.y(a=>a.error(new Ca(n)))}function hh(n){return new Ri.y(a=>a.error(new Gr(n)))}function z1(n){return new Ri.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class rr{constructor(a,e,t,r,l){this.configLoader=e,this.urlSerializer=t,this.urlTree=r,this.config=l,this.allowRedirects=!0,this.ngModule=a.get(i.h0i)}apply(){const a=wo(this.urlTree.root,[],[],this.config).segmentGroup,e=new Wt(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,e,be).pipe((0,ht.U)(l=>this.createUrlTree(va(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,Cn.K)(l=>{if(l instanceof Gr)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof Ca?this.noMatchError(l):l}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,be).pipe((0,ht.U)(r=>this.createUrlTree(va(r),a.queryParams,a.fragment))).pipe((0,Cn.K)(r=>{throw r instanceof Ca?this.noMatchError(r):r}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,e,t){const r=a.segments.length>0?new Wt([],{[be]:a}):a;return new Yr(r,e,t)}expandSegmentGroup(a,e,t,r){return 0===t.segments.length&&t.hasChildren()?this.expandChildren(a,e,t).pipe((0,ht.U)(l=>new Wt([],l))):this.expandSegment(a,t,e,t.segments,r,!0)}expandChildren(a,e,t){const r=[];for(const l of Object.keys(t.children))"primary"===l?r.unshift(l):r.push(l);return(0,un.D)(r).pipe((0,Ts.b)(l=>{const d=t.children[l],s=Mo(e,l);return this.expandSegmentGroup(a,s,d,l).pipe((0,ht.U)(o=>({segment:o,outlet:l})))}),vs((l,d)=>(l[d.outlet]=d.segment,l),{}),function Li(n,a){const e=arguments.length>=2;return t=>t.pipe(n?(0,jt.h)((r,l)=>n(r,l,t)):vf.y,bi(1),e?(0,ao.d)(a):(0,dc.T)(()=>new ro.K))}())}expandSegment(a,e,t,r,l,d){return(0,un.D)(t).pipe((0,Ts.b)(s=>this.expandSegmentAgainstRoute(a,e,t,s,r,l,d).pipe((0,Cn.K)(c=>{if(c instanceof Ca)return(0,$e.of)(null);throw c}))),(0,B.P)(s=>!!s),(0,Cn.K)((s,o)=>{if(s instanceof ro.K||"EmptyError"===s.name){if(bl(e,r,l))return(0,$e.of)(new Wt([],{}));throw new Ca(e)}throw s}))}expandSegmentAgainstRoute(a,e,t,r,l,d,s){return Od(r,e,l,d)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(a,e,r,l,d):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d):Al(e):Al(e)}expandSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,t,r,d):this.expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,e,t,r){const l=this.applyRedirectCommands([],t.redirectTo,{});return t.redirectTo.startsWith("/")?hh(l):this.lineralizeSegments(t,l).pipe((0,G.zg)(d=>{const s=new Wt(d,{});return this.expandSegment(a,s,e,d,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,e,t,r,l,d){const{matched:s,consumedSegments:o,lastChild:c,positionalParamSegments:u}=Ii(e,r,l);if(!s)return Al(e);const h=this.applyRedirectCommands(o,r.redirectTo,u);return r.redirectTo.startsWith("/")?hh(h):this.lineralizeSegments(r,h).pipe((0,G.zg)(f=>this.expandSegment(a,e,t,f.concat(l.slice(c)),d,!1)))}matchSegmentAgainstRoute(a,e,t,r,l){if("**"===t.path)return t.loadChildren?(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.configLoader.load(a.injector,t)).pipe((0,ht.U)(f=>(t._loadedConfig=f,new Wt(r,{})))):(0,$e.of)(new Wt(r,{}));const{matched:d,consumedSegments:s,lastChild:o}=Ii(e,t,r);if(!d)return Al(e);const c=r.slice(o);return this.getChildConfig(a,t,r).pipe((0,G.zg)(h=>{const f=h.module,b=h.routes,{segmentGroup:V,slicedSegments:ee}=wo(e,s,c,b),he=new Wt(V.segments,V.children);if(0===ee.length&&he.hasChildren())return this.expandChildren(f,b,he).pipe((0,ht.U)(Kt=>new Wt(s,Kt)));if(0===b.length&&0===ee.length)return(0,$e.of)(new Wt(s,{}));const Oe=Lr(t)===l;return this.expandSegment(f,he,b,ee,Oe?be:l,!0).pipe((0,ht.U)(ut=>new Wt(s.concat(ut.segments),ut.children)))}))}getChildConfig(a,e,t){return e.children?(0,$e.of)(new Ga(e.children,a)):e.loadChildren?void 0!==e._loadedConfig?(0,$e.of)(e._loadedConfig):this.runCanLoadGuards(a.injector,e,t).pipe((0,G.zg)(r=>r?this.configLoader.load(a.injector,e).pipe((0,ht.U)(l=>(e._loadedConfig=l,l))):function F1(n){return new Ri.y(a=>a.error(uc(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(e))):(0,$e.of)(new Ga([],a))}runCanLoadGuards(a,e,t){const r=e.canLoad;if(!r||0===r.length)return(0,$e.of)(!0);const l=r.map(d=>{const s=a.get(d);let o;if(function bo(n){return n&&Ma(n.canLoad)}(s))o=s.canLoad(e,t);else{if(!Ma(s))throw new Error("Invalid CanLoad guard");o=s(e,t)}return hn(o)});return(0,$e.of)(l).pipe(Ur(),(0,I.b)(d=>{if(!wa(d))return;const s=uc(`Redirecting to "${this.urlSerializer.serialize(d)}"`);throw s.url=d,s}),(0,ht.U)(d=>!0===d))}lineralizeSegments(a,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),0===r.numberOfChildren)return(0,$e.of)(t);if(r.numberOfChildren>1||!r.children[be])return z1(a.redirectTo);r=r.children[be]}}applyRedirectCommands(a,e,t){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),a,t)}applyRedirectCreatreUrlTree(a,e,t,r){const l=this.createSegmentGroup(a,e.root,t,r);return new Yr(l,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(a,e){const t={};return ei(a,(r,l)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);t[l]=e[s]}else t[l]=r}),t}createSegmentGroup(a,e,t,r){const l=this.createSegments(a,e.segments,t,r);let d={};return ei(e.children,(s,o)=>{d[o]=this.createSegmentGroup(a,s,t,r)}),new Wt(l,d)}createSegments(a,e,t,r){return e.map(l=>l.path.startsWith(":")?this.findPosParam(a,l,r):this.findOrReturn(l,t))}findPosParam(a,e,t){const r=t[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${a}'. Cannot find '${e.path}'.`);return r}findOrReturn(a,e){let t=0;for(const r of e){if(r.path===a.path)return e.splice(t),r;t++}return a}}function va(n){const a={};for(const t of Object.keys(n.children)){const l=va(n.children[t]);(l.segments.length>0||l.hasChildren())&&(a[t]=l)}return function Id(n){if(1===n.numberOfChildren&&n.children[be]){const a=n.children[be];return new Wt(n.segments.concat(a.segments),a.children)}return n}(new Wt(n.segments,a))}class Co{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class yl{constructor(a,e){this.component=a,this.route=e}}function Bd(n,a,e){const t=n._root;return vo(t,a?a._root:null,e,[t.value])}function wc(n,a,e){const t=function Rf(n){if(!n)return null;for(let a=n.parent;a;a=a.parent){const e=a.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(a);return(t?t.module.injector:e).get(n)}function vo(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=Ya(a);return n.children.forEach(d=>{(function Nd(n,a,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){const l=n.value,d=a?a.value:null,s=e?e.getContext(n.value.outlet):null;if(d&&l.routeConfig===d.routeConfig){const o=function Ar(n,a,e){if("function"==typeof e)return e(n,a);switch(e){case"pathParamsChange":return!Wr(n.url,a.url);case"pathParamsOrQueryParamsChange":return!Wr(n.url,a.url)||!_r(n.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hd(n,a)||!_r(n.queryParams,a.queryParams);default:return!Hd(n,a)}}(d,l,l.routeConfig.runGuardsAndResolvers);o?r.canActivateChecks.push(new Co(t)):(l.data=d.data,l._resolvedData=d._resolvedData),vo(n,a,l.component?s?s.children:null:e,t,r),o&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new yl(s.outlet.component,d))}else d&&Cc(a,s,r),r.canActivateChecks.push(new Co(t)),vo(n,null,l.component?s?s.children:null:e,t,r)})(d,l[d.value.outlet],e,t.concat([d.value]),r),delete l[d.value.outlet]}),ei(l,(d,s)=>Cc(d,e.getContext(s),r)),r}function Cc(n,a,e){const t=Ya(n),r=n.value;ei(t,(l,d)=>{Cc(l,r.component?a?a.children.getContext(d):null:a,e)}),e.canDeactivateChecks.push(new yl(r.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,r))}class Ml{}function kr(n){return new Ri.y(a=>a.error(n))}class pn{constructor(a,e,t,r,l,d){this.rootComponentType=a,this.config=e,this.urlTree=t,this.url=r,this.paramsInheritanceStrategy=l,this.relativeLinkResolution=d}recognize(){const a=wo(this.urlTree.root,[],[],this.config.filter(d=>void 0===d.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,a,be);if(null===e)return null;const t=new ho([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new ir(t,e),l=new dl(this.url,r);return this.inheritParamsAndData(l._root),l}inheritParamsAndData(a){const e=a.value,t=cl(e,this.paramsInheritanceStrategy);e.params=Object.freeze(t.params),e.data=Object.freeze(t.data),a.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(a,e,t){return 0===e.segments.length&&e.hasChildren()?this.processChildren(a,e):this.processSegment(a,e,e.segments,t)}processChildren(a,e){const t=[];for(const l of Object.keys(e.children)){const d=e.children[l],s=Mo(a,l),o=this.processSegmentGroup(s,d,l);if(null===o)return null;t.push(...o)}const r=xo(t);return function mh(n){n.sort((a,e)=>a.value.outlet===be?-1:e.value.outlet===be?1:a.value.outlet.localeCompare(e.value.outlet))}(r),r}processSegment(a,e,t,r){for(const l of a){const d=this.processSegmentAgainstRoute(l,e,t,r);if(null!==d)return d}return bl(e,t,r)?[]:null}processSegmentAgainstRoute(a,e,t,r){if(a.redirectTo||!Od(a,e,t,r))return null;let l,d=[],s=[];if("**"===a.path){const b=t.length>0?nl(t).parameters:{};l=new ho(t,b,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,So(a),Lr(a),a.component,a,gh(e),_h(e)+t.length,Za(a))}else{const b=Ii(e,a,t);if(!b.matched)return null;d=b.consumedSegments,s=t.slice(b.lastChild),l=new ho(d,b.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,So(a),Lr(a),a.component,a,gh(e),_h(e)+d.length,Za(a))}const o=function Nf(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(a),{segmentGroup:c,slicedSegments:u}=wo(e,d,s,o.filter(b=>void 0===b.redirectTo),this.relativeLinkResolution);if(0===u.length&&c.hasChildren()){const b=this.processChildren(o,c);return null===b?null:[new ir(l,b)]}if(0===o.length&&0===u.length)return[new ir(l,[])];const h=Lr(a)===r,f=this.processSegment(o,c,u,h?be:r);return null===f?null:[new ir(l,f)]}}function zd(n){const a=n.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function xo(n){const a=[],e=new Set;for(const t of n){if(!zd(t)){a.push(t);continue}const r=a.find(l=>t.value.routeConfig===l.value.routeConfig);void 0!==r?(r.children.push(...t.children),e.add(r)):a.push(t)}for(const t of e){const r=xo(t.children);a.push(new ir(t.value,r))}return a.filter(t=>!e.has(t))}function gh(n){let a=n;for(;a._sourceSegment;)a=a._sourceSegment;return a}function _h(n){let a=n,e=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,e+=a._segmentIndexShift?a._segmentIndexShift:0;return e-1}function So(n){return n.data||{}}function Za(n){return n.resolve||{}}function xc(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}function Ec(n){return(0,ji.w)(a=>{const e=n(a);return e?(0,un.D)(e).pipe((0,ht.U)(()=>a)):(0,$e.of)(a)})}class Yn extends class Ff{shouldDetach(a){return!1}store(a,e){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,e){return a.routeConfig===e.routeConfig}}{}const yr=new i.OlP("ROUTES");class Ah{constructor(a,e,t,r){this.injector=a,this.compiler=e,this.onLoadStartListener=t,this.onLoadEndListener=r}load(a,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const r=this.loadModuleFactory(e.loadChildren).pipe((0,ht.U)(l=>{this.onLoadEndListener&&this.onLoadEndListener(e);const d=l.create(a);return new Ga(wi(d.injector.get(yr,void 0,i.XFs.Self|i.XFs.Optional)).map(gl),d)}),(0,Cn.K)(l=>{throw e._loader$=void 0,l}));return e._loader$=new Cs.c(r,()=>new He.xQ).pipe((0,J.x)()),e._loader$}loadModuleFactory(a){return hn(a()).pipe((0,G.zg)(e=>e instanceof i.YKP?(0,$e.of)(e):(0,un.D)(this.compiler.compileModuleAsync(e))))}}class yh{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,e){return a}}function jf(n){throw n}function Y1(n,a,e){return a.parse("/")}function Dc(n,a){return(0,$e.of)(null)}const Do={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Hc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let rt=(()=>{class n{constructor(e,t,r,l,d,s,o){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=r,this.location=l,this.config=o,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new He.xQ,this.errorHandler=jf,this.malformedUriErrorHandler=Y1,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Dc,afterPreactivation:Dc},this.urlHandlingStrategy=new yh,this.routeReuseStrategy=new Yn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=d.get(i.h0i),this.console=d.get(i.c2e);const h=d.get(i.R0b);this.isNgZoneEnabled=h instanceof i.R0b&&i.R0b.isInAngularZone(),this.resetConfig(o),this.currentUrlTree=function Qu(){return new Yr(new Wt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ah(d,s,f=>this.triggerEvent(new ja(f)),f=>this.triggerEvent(new Ko(f))),this.routerState=rh(this.currentUrlTree,this.rootComponentType),this.transitions=new Ki({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var e;return null===(e=this.location.getState())||void 0===e?void 0:e.\u0275routerPageId}setupNavigations(e){const t=this.events;return e.pipe((0,jt.h)(r=>0!==r.id),(0,ht.U)(r=>Object.assign(Object.assign({},r),{extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),(0,ji.w)(r=>{let l=!1,d=!1;return(0,$e.of)(r).pipe((0,I.b)(s=>{this.currentNavigation={id:s.id,initialUrl:s.currentRawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,ji.w)(s=>{const o=this.browserUrlTree.toString(),c=!this.navigated||s.extractedUrl.toString()!==o||o!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return H(s.source)&&(this.browserUrlTree=s.extractedUrl),(0,$e.of)(s).pipe((0,ji.w)(h=>{const f=this.transitions.getValue();return t.next(new Xt(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),f!==this.transitions.getValue()?wn.E:Promise.resolve(h)}),function ii(n,a,e,t){return(0,ji.w)(r=>function Ie(n,a,e,t,r){return new rr(n,a,e,t,r).apply()}(n,a,e,r.extractedUrl,t).pipe((0,ht.U)(l=>Object.assign(Object.assign({},r),{urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,I.b)(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function $a(n,a,e,t,r){return(0,G.zg)(l=>function Bf(n,a,e,t,r="emptyOnly",l="legacy"){try{const d=new pn(n,a,e,t,r,l).recognize();return null===d?kr(new Ml):(0,$e.of)(d)}catch(d){return kr(d)}}(n,a,l.urlAfterRedirects,e(l.urlAfterRedirects),t,r).pipe((0,ht.U)(d=>Object.assign(Object.assign({},l),{targetSnapshot:d}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,I.b)(h=>{if("eager"===this.urlUpdateStrategy){if(!h.extras.skipLocationChange){const b=this.urlHandlingStrategy.merge(h.urlAfterRedirects,h.rawUrl);this.setBrowserUrl(b,h)}this.browserUrlTree=h.urlAfterRedirects}const f=new xi(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);t.next(f)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:b,source:V,restoredState:ee,extras:he}=s,Oe=new Xt(f,this.serializeUrl(b),V,ee);t.next(Oe);const gt=rh(b,this.rootComponentType).snapshot;return(0,$e.of)(Object.assign(Object.assign({},s),{targetSnapshot:gt,urlAfterRedirects:b,extras:Object.assign(Object.assign({},he),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=s.rawUrl,s.resolve(null),wn.E}),Ec(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.beforePreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,I.b)(s=>{const o=new ki(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot);this.triggerEvent(o)}),(0,ht.U)(s=>Object.assign(Object.assign({},s),{guards:Bd(s.targetSnapshot,s.currentSnapshot,this.rootContexts)})),function To(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:l,canDeactivateChecks:d}}=e;return 0===d.length&&0===l.length?(0,$e.of)(Object.assign(Object.assign({},e),{guardsResult:!0})):function Vd(n,a,e,t){return(0,un.D)(n).pipe((0,G.zg)(r=>function If(n,a,e,t,r){const l=a&&a.routeConfig?a.routeConfig.canDeactivate:null;if(!l||0===l.length)return(0,$e.of)(!0);const d=l.map(s=>{const o=wc(s,a,r);let c;if(function dh(n){return n&&Ma(n.canDeactivate)}(o))c=hn(o.canDeactivate(n,a,e,t));else{if(!Ma(o))throw new Error("Invalid CanDeactivate guard");c=hn(o(n,a,e,t))}return c.pipe((0,B.P)())});return(0,$e.of)(d).pipe(Ur())}(r.component,r.route,e,a,t)),(0,B.P)(r=>!0!==r,!0))}(d,t,r,n).pipe((0,G.zg)(s=>s&&function Pd(n){return"boolean"==typeof n}(s)?function vc(n,a,e,t){return(0,un.D)(a).pipe((0,Ts.b)(r=>ws(function Of(n,a){return null!==n&&a&&a(new el(n)),(0,$e.of)(!0)}(r.route.parent,t),function ph(n,a){return null!==n&&a&&a(new Gu(n)),(0,$e.of)(!0)}(r.route,t),function Tc(n,a,e){const t=a[a.length-1],l=a.slice(0,a.length-1).reverse().map(d=>function Pf(n){const a=n.routeConfig?n.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:n,guards:a}:null}(d)).filter(d=>null!==d).map(d=>ma(()=>{const s=d.guards.map(o=>{const c=wc(o,d.node,e);let u;if(function yo(n){return n&&Ma(n.canActivateChild)}(c))u=hn(c.canActivateChild(t,n));else{if(!Ma(c))throw new Error("Invalid CanActivateChild guard");u=hn(c(t,n))}return u.pipe((0,B.P)())});return(0,$e.of)(s).pipe(Ur())}));return(0,$e.of)(l).pipe(Ur())}(n,r.path,e),function fh(n,a,e){const t=a.routeConfig?a.routeConfig.canActivate:null;if(!t||0===t.length)return(0,$e.of)(!0);const r=t.map(l=>ma(()=>{const d=wc(l,a,e);let s;if(function Ao(n){return n&&Ma(n.canActivate)}(d))s=hn(d.canActivate(a,n));else{if(!Ma(d))throw new Error("Invalid CanActivate guard");s=hn(d(a,n))}return s.pipe((0,B.P)())}));return(0,$e.of)(r).pipe(Ur())}(n,r.route,e))),(0,B.P)(r=>!0!==r,!0))}(t,l,n,a):(0,$e.of)(s)),(0,ht.U)(s=>Object.assign(Object.assign({},e),{guardsResult:s})))})}(this.ngModule.injector,s=>this.triggerEvent(s)),(0,I.b)(s=>{if(wa(s.guardsResult)){const c=uc(`Redirecting to "${this.serializeUrl(s.guardsResult)}"`);throw c.url=s.guardsResult,c}const o=new _a(s.id,this.serializeUrl(s.extractedUrl),this.serializeUrl(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.triggerEvent(o)}),(0,jt.h)(s=>!!s.guardsResult||(this.restoreHistory(s),this.cancelNavigationTransition(s,""),!1)),Ec(s=>{if(s.guards.canActivateChecks.length)return(0,$e.of)(s).pipe((0,I.b)(o=>{const c=new Er(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}),(0,ji.w)(o=>{let c=!1;return(0,$e.of)(o).pipe(function Eo(n,a){return(0,G.zg)(e=>{const{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return(0,$e.of)(e);let l=0;return(0,un.D)(r).pipe((0,Ts.b)(d=>function Vf(n,a,e,t){return function bh(n,a,e,t){const r=xc(n);if(0===r.length)return(0,$e.of)({});const l={};return(0,un.D)(r).pipe((0,G.zg)(d=>function Sc(n,a,e,t){const r=wc(n,a,t);return hn(r.resolve?r.resolve(a,e):r(a,e))}(n[d],a,e,t).pipe((0,I.b)(s=>{l[d]=s}))),bi(1),(0,G.zg)(()=>xc(l).length===r.length?(0,$e.of)(l):wn.E))}(n._resolve,n,a,t).pipe((0,ht.U)(l=>(n._resolvedData=l,n.data=Object.assign(Object.assign({},n.data),cl(n,e).resolve),null)))}(d.route,t,n,a)),(0,I.b)(()=>l++),bi(1),(0,G.zg)(d=>l===r.length?(0,$e.of)(e):wn.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,I.b)({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(o),this.cancelNavigationTransition(o,"At least one route resolver didn't emit any value."))}}))}),(0,I.b)(o=>{const c=new mt(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.triggerEvent(c)}))}),Ec(s=>{const{targetSnapshot:o,id:c,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:f,replaceUrl:b}}=s;return this.hooks.afterPreactivation(o,{navigationId:c,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!f,replaceUrl:!!b})}),(0,ht.U)(s=>{const o=function fo(n,a,e){const t=Hs(n,a._root,e?e._root:void 0);return new nh(t,a)}(this.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return Object.assign(Object.assign({},s),{targetRouterState:o})}),(0,I.b)(s=>{this.currentUrlTree=s.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),this.routerState=s.targetRouterState,"deferred"===this.urlUpdateStrategy&&(s.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,s),this.browserUrlTree=s.urlAfterRedirects)}),((n,a,e)=>(0,ht.U)(t=>(new lh(a,t.targetRouterState,t.currentRouterState,e).activate(n),t)))(this.rootContexts,this.routeReuseStrategy,s=>this.triggerEvent(s)),(0,I.b)({next(){l=!0},complete(){l=!0}}),ye(()=>{var s;l||d||this.cancelNavigationTransition(r,`Navigation ID ${r.id} is not equal to the current navigation id ${this.navigationId}`),(null===(s=this.currentNavigation)||void 0===s?void 0:s.id)===r.id&&(this.currentNavigation=null)}),(0,Cn.K)(s=>{if(d=!0,function il(n){return n&&n[$i]}(s)){const o=wa(s.url);o||(this.navigated=!0,this.restoreHistory(r,!0));const c=new Ft(r.id,this.serializeUrl(r.extractedUrl),s.message);t.next(c),o?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(s.url,this.rawUrlTree),h={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||H(r.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:r.resolve,reject:r.reject,promise:r.promise})},0):r.resolve(!1)}else{this.restoreHistory(r,!0);const o=new Zi(r.id,this.serializeUrl(r.extractedUrl),s);t.next(o);try{r.resolve(this.errorHandler(s))}catch(c){r.reject(c)}}return wn.E}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const t="popstate"===e.type?"popstate":"hashchange";"popstate"===t&&setTimeout(()=>{var r;const l={replaceUrl:!0},d=(null===(r=e.state)||void 0===r?void 0:r.navigationId)?e.state:null;if(d){const o=Object.assign({},d);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(l.state=o)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,t,d,l)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){Df(e),this.config=e.map(gl),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,t={}){const{relativeTo:r,queryParams:l,fragment:d,queryParamsHandling:s,preserveFragment:o}=t,c=r||this.routerState.root,u=o?this.currentUrlTree.fragment:d;let h=null;switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),l);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=l||null}return null!==h&&(h=this.removeEmptyProps(h)),function sh(n,a,e,t,r){if(0===e.length)return yc(a.root,a.root,a,t,r);const l=function Ua(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new ks(!0,0,n);let a=0,e=!1;const t=n.reduce((r,l,d)=>{if("object"==typeof l&&null!=l){if(l.outlets){const s={};return ei(l.outlets,(o,c)=>{s[c]="string"==typeof o?o.split("/"):o}),[...r,{outlets:s}]}if(l.segmentPath)return[...r,l.segmentPath]}return"string"!=typeof l?[...r,l]:0===d?(l.split("/").forEach((s,o)=>{0==o&&"."===s||(0==o&&""===s?e=!0:".."===s?a++:""!=s&&r.push(s))}),r):[...r,l]},[]);return new ks(e,a,t)}(e);if(l.toRoot())return yc(a.root,new Wt([],{}),a,t,r);const d=function hl(n,a,e){if(n.isAbsolute)return new ya(a.root,!0,0);if(-1===e.snapshot._lastPathIndex){const l=e.snapshot._urlSegment;return new ya(l,l===a.root,0)}const t=ul(n.commands[0])?0:1;return function go(n,a,e){let t=n,r=a,l=e;for(;l>r;){if(l-=r,t=t.parent,!t)throw new Error("Invalid number of '../'");r=t.segments.length}return new ya(t,!1,r-l)}(e.snapshot._urlSegment,e.snapshot._lastPathIndex+t,n.numberOfDoubleDots)}(l,a,n),s=d.processChildren?pl(d.segmentGroup,d.index,l.commands):Mc(d.segmentGroup,d.index,l.commands);return yc(d.segmentGroup,s,a,t,r)}(c,this.currentUrlTree,e,h,null!=u?u:null)}navigateByUrl(e,t={skipLocationChange:!1}){const r=wa(e)?e:this.parseUrl(e),l=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function C(n){for(let a=0;a{const l=e[r];return null!=l&&(t[r]=l),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new At(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,t,r,l,d){var s,o,c;if(this.disposed)return Promise.resolve(!1);const u=this.transitions.value,h=H(t)&&u&&!H(u.source),f=u.rawUrl.toString()===e.toString(),b=u.id===(null===(s=this.currentNavigation)||void 0===s?void 0:s.id);if(h&&f&&b)return Promise.resolve(!0);let ee,he,Oe;d?(ee=d.resolve,he=d.reject,Oe=d.promise):Oe=new Promise((Kt,Ra)=>{ee=Kt,he=Ra});const gt=++this.navigationId;let ut;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),ut=r&&r.\u0275routerPageId?r.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):ut=0,this.setTransition({id:gt,targetPageId:ut,source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:l,resolve:ee,reject:he,promise:Oe,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Oe.catch(Kt=>Promise.reject(Kt))}setBrowserUrl(e,t){const r=this.urlSerializer.serialize(e),l=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl?this.location.replaceState(r,"",l):this.location.go(r,"",l)}restoreHistory(e,t=!1){var r,l;if("computed"===this.canceledNavigationResolution){const d=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(r=this.currentNavigation)||void 0===r?void 0:r.finalUrl)||0===d?this.currentUrlTree===(null===(l=this.currentNavigation)||void 0===l?void 0:l.finalUrl)&&0===d&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(d)}else"replace"===this.canceledNavigationResolution&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,t){const r=new Ft(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(r),e.resolve(!1)}generateNgRouterState(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function H(n){return"imperative"!==n}let O=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=l,this.el=d,this.commands=null,this.onChanges=new He.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){if(null!=this.tabIndexAttribute)return;const t=this.renderer,r=this.el.nativeElement;null!==e?t.setAttribute(r,"tabindex",e):t.removeAttribute(r,"tabindex")}ngOnChanges(e){this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const e={skipLocationChange:Q(this.skipLocationChange),replaceUrl:Q(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Q(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.$8M("tabindex"),i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})(),z=(()=>{class n{constructor(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=null,this.href=null,this.onChanges=new He.xQ,this.subscription=e.events.subscribe(l=>{l instanceof At&&this.updateTargetUrlAndHref()})}set routerLink(e){this.commands=null!=e?Array.isArray(e)?e:[e]:null}ngOnChanges(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(e,t,r,l,d){if(0!==e||t||r||l||d||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const s={skipLocationChange:Q(this.skipLocationChange),replaceUrl:Q(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,s),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Q(this.preserveFragment)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(w.S$))},n.\u0275dir=i.lG2({type:n,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&e&&i.uIk("target",t.target)("href",t.href,i.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[i.TTD]}),n})();function Q(n){return""===n||!!n}class ot{}class Rt{preload(a,e){return e().pipe((0,Cn.K)(()=>(0,$e.of)(null)))}}class si{preload(a,e){return(0,$e.of)(null)}}let Bi=(()=>{class n{constructor(e,t,r,l){this.router=e,this.injector=r,this.preloadingStrategy=l,this.loader=new Ah(r,t,o=>e.triggerEvent(new ja(o)),o=>e.triggerEvent(new Ko(o)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,jt.h)(e=>e instanceof At),(0,Ts.b)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.h0i);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){const r=[];for(const l of t)if(l.loadChildren&&!l.canLoad&&l._loadedConfig){const d=l._loadedConfig;r.push(this.processRoutes(d.module,d.routes))}else l.loadChildren&&!l.canLoad?r.push(this.preloadConfig(e,l)):l.children&&r.push(this.processRoutes(e,l.children));return(0,un.D)(r).pipe((0,Jo.J)(),(0,ht.U)(l=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>(t._loadedConfig?(0,$e.of)(t._loadedConfig):this.loader.load(e.injector,t)).pipe((0,G.zg)(l=>(t._loadedConfig=l,this.processRoutes(l.module,l.routes)))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(rt),i.LFG(i.Sil),i.LFG(i.zs3),i.LFG(ot))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Pr=(()=>{class n{constructor(e,t,r={}){this.router=e,this.viewportScroller=t,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Xt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof At&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Zu&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new Zu(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const wl=new i.OlP("ROUTER_CONFIGURATION"),W1=new i.OlP("ROUTER_FORROOT_GUARD"),UA=[w.Ye,{provide:Td,useClass:xd},{provide:rt,useFactory:function $A(n,a,e,t,r,l,d={},s,o){const c=new rt(null,n,a,e,t,r,wi(l));return s&&(c.urlHandlingStrategy=s),o&&(c.routeReuseStrategy=o),function QA(n,a){n.errorHandler&&(a.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(a.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(a.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(a.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(a.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(a.canceledNavigationResolution=n.canceledNavigationResolution)}(d,c),d.enableTracing&&c.events.subscribe(u=>{var h,f;null===(h=console.group)||void 0===h||h.call(console,`Router Event: ${u.constructor.name}`),console.log(u.toString()),console.log(u),null===(f=console.groupEnd)||void 0===f||f.call(console)}),c},deps:[Td,ml,w.Ye,i.zs3,i.Sil,yr,wl,[class q1{},new i.FiY],[class zf{},new i.FiY]]},ml,{provide:nr,useFactory:function Z1(n){return n.routerState.root},deps:[rt]},Bi,si,Rt,{provide:wl,useValue:{enableTracing:!1}}];function Os(){return new i.PXZ("Router",rt)}let Is=(()=>{class n{constructor(e,t){}static forRoot(e,t){return{ngModule:n,providers:[UA,G1(e),{provide:W1,useFactory:ZA,deps:[[rt,new i.FiY,new i.tp0]]},{provide:wl,useValue:t||{}},{provide:w.S$,useFactory:GA,deps:[w.lw,[new i.tBr(w.mr),new i.FiY],wl]},{provide:Pr,useFactory:U1,deps:[rt,w.EM,wl]},{provide:ot,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:si},{provide:i.PXZ,multi:!0,useFactory:Os},[qf,{provide:i.ip1,multi:!0,useFactory:JA,deps:[qf]},{provide:$1,useFactory:XA,deps:[qf]},{provide:i.tb,multi:!0,useExisting:$1}]]}}static forChild(e){return{ngModule:n,providers:[G1(e)]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(W1,8),i.LFG(rt,8))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();function U1(n,a,e){return e.scrollOffset&&a.setOffset(e.scrollOffset),new Pr(n,a,e)}function GA(n,a,e={}){return e.useHash?new w.Do(n,a):new w.b0(n,a)}function ZA(n){return"guarded"}function G1(n){return[{provide:i.deG,multi:!0,useValue:n},{provide:yr,multi:!0,useValue:n}]}let qf=(()=>{class n{constructor(e){this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new He.xQ}appInitializer(){return this.injector.get(w.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const r=new Promise(s=>t=s),l=this.injector.get(rt),d=this.injector.get(wl);return"disabled"===d.initialNavigation?(l.setUpLocationChangeListener(),t(!0)):"enabled"===d.initialNavigation||"enabledBlocking"===d.initialNavigation?(l.hooks.afterPreactivation=()=>this.initNavigation?(0,$e.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),l.initialNavigation()):t(!0),r})}bootstrapListener(e){const t=this.injector.get(wl),r=this.injector.get(Bi),l=this.injector.get(Pr),d=this.injector.get(rt),s=this.injector.get(i.z2F);e===s.components[0]&&(("enabledNonBlocking"===t.initialNavigation||void 0===t.initialNavigation)&&d.initialNavigation(),r.setUpPreloading(),l.init(),d.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function JA(n){return n.appInitializer.bind(n)}function XA(n){return n.bootstrapListener.bind(n)}const $1=new i.OlP("Router Initializer");let zt=(()=>{class n{constructor(){this.branding=""}setInstanceConfig(e){this.instanceConfig=e}setDefaultConfig(e){this.defaultConfig=e}getAppsConfig(){return this.appsConfig}setAppsConfig(e){this.appsConfig=e}setPerunPrincipal(e){this.principal=e}getPerunPrincipal(){return this.principal}getInitialPageId(){return this.initialPageId}setInitialPageId(e){this.initialPageId=e}getLoginAttributeNames(){return this.get("login_namespace_attributes")}getMemberProfileAttributeNames(){return this.get("member_profile_attributes_friendly_names")}setBanding(e){this.branding=e}skipOidc(){return this.get("skip_oidc")}get(...e){let t;if(""!==this.branding){const r=this.instanceConfig.brandings[this.branding];for(let l=0;l(0,Yf.k)(r)?t(...r):t(r))):new Ri.y(r=>{Mh(n,a,function l(d){r.next(arguments.length>1?Array.prototype.slice.call(arguments):d)},r,e)})}function Mh(n,a,e,t,r){let l;if(function J1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const d=n;n.addEventListener(a,e,r),l=()=>d.removeEventListener(a,e,r)}else if(function qv(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const d=n;n.on(a,e),l=()=>d.off(a,e)}else if(function jv(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const d=n;n.addListener(a,e),l=()=>d.removeListener(a,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let d=0,s=n.length;d0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=requestAnimationFrame(()=>a.flush(null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(cancelAnimationFrame(e),a.scheduled=void 0)}});let wh=1;const X1=Promise.resolve(),Pc={};function K1(n){return n in Pc&&(delete Pc[n],!0)}const Qi={setImmediate(n){const a=wh++;return Pc[a]=!0,X1.then(()=>K1(a)&&n()),a},clearImmediate(n){K1(n)}},Ch=new class Zf extends Uf.v{flush(a){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let t,r=-1,l=e.length;a=a||e.shift();do{if(t=a.execute(a.state,a.delay))break}while(++r0?super.requestAsyncId(a,e,t):(a.actions.push(this),a.scheduled||(a.scheduled=Qi.setImmediate(a.flush.bind(a,null))))}recycleAsyncId(a,e,t=0){if(null!==t&&t>0||null===t&&this.delay>0)return super.recycleAsyncId(a,e,t);0===a.actions.length&&(Qi.clearImmediate(e),a.scheduled=void 0)}});var vh=x(353),eg=x(826),tg=x(9054);class ry{constructor(a){this.durationSelector=a}call(a,e){return e.subscribe(new Yv(a,this.durationSelector))}}class Yv extends eg.L{constructor(a,e){super(a),this.durationSelector=e,this.hasValue=!1}_next(a){if(this.value=a,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(a)}catch(r){return this.destination.error(r)}const t=(0,tg.D)(this,e);!t||t.closed?this.clearThrottle():this.add(this.throttled=t)}}clearThrottle(){const{value:a,hasValue:e,throttled:t}=this;t&&(this.remove(t),this.throttled=null,t.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(a))}notifyNext(a,e,t,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function ig(n){return!(0,Yf.k)(n)&&n-parseFloat(n)+1>=0}function Rc(n=0,a,e){let t=-1;return ig(a)?t=Number(a)<1?1:Number(a):(0,Fa.K)(a)&&(e=a),(0,Fa.K)(e)||(e=vh.P),new Ri.y(r=>{const l=ig(n)?n:+n-e.now();return e.schedule(ar,l,{index:0,period:t,subscriber:r})})}function ar(n){const{index:a,period:e,subscriber:t}=n;if(t.next(a),!t.closed){if(-1===e)return t.complete();n.index=a+1,this.schedule(n,e)}}function Fd(n,a=vh.P){return function ny(n){return function(e){return e.lift(new ry(n))}}(()=>Rc(n,a))}function tt(n){return a=>a.lift(new ng(n))}class ng{constructor(a){this.notifier=a}call(a,e){const t=new Wn(a),r=(0,tg.D)(t,this.notifier);return r&&!t.seenValue?(t.add(r),e.subscribe(t)):t}}class Wn extends eg.L{constructor(a){super(a),this.seenValue=!1}notifyNext(a,e,t,r,l){this.seenValue=!0,this.complete()}notifyComplete(){}}let Cl;try{Cl="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){Cl=!1}let Ic,Si=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?(0,w.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&&!Cl)&&"undefined"!=typeof CSS&&!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}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.Lbi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const $f=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function rg(){if(Ic)return Ic;if("object"!=typeof document||!document)return Ic=new Set($f),Ic;let n=document.createElement("input");return Ic=new Set($f.filter(a=>(n.setAttribute("type",a),n.type===a))),Ic}let Bc,Th,vl,Qf;function xa(n){return function ay(){if(null==Bc&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Bc=!0}))}finally{Bc=Bc||!1}return Bc}()?n:!!n.capture}function xh(){if(null==vl){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return vl=!1,vl;if("scrollBehavior"in document.documentElement.style)vl=!0;else{const n=Element.prototype.scrollTo;vl=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return vl}function jd(){if("object"!=typeof document||!document)return 0;if(null==Th){const n=document.createElement("div"),a=n.style;n.dir="rtl",a.width="1px",a.overflow="auto",a.visibility="hidden",a.pointerEvents="none",a.position="absolute";const e=document.createElement("div"),t=e.style;t.width="2px",t.height="1px",n.appendChild(e),document.body.appendChild(n),Th=0,0===n.scrollLeft&&(n.scrollLeft=1,Th=0===n.scrollLeft?1:2),n.remove()}return Th}function Sh(n){if(function Jf(){if(null==Qf){const n="undefined"!=typeof document?document.head:null;Qf=!(!n||!n.createShadowRoot&&!n.attachShadow)}return Qf}()){const a=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&a instanceof ShadowRoot)return a}return null}function Xf(){let n="undefined"!=typeof document&&document?document.activeElement:null;for(;n&&n.shadowRoot;){const a=n.shadowRoot.activeElement;if(a===n)break;n=a}return n}function Un(n){return n.composedPath?n.composedPath()[0]:n.target}function Kf(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}const sy=new i.OlP("cdk-dir-doc",{providedIn:"root",factory:function oy(){return(0,i.f3M)(w.K0)}}),ly=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let vn=(()=>{class n{constructor(e){if(this.value="ltr",this.change=new i.vpe,e){const r=e.documentElement?e.documentElement.dir:null;this.value=function cy(n){const a=(null==n?void 0:n.toLowerCase())||"";return"auto"===a&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?ly.test(navigator.language)?"rtl":"ltr":"rtl"===a?"rtl":"ltr"}((e.body?e.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sy,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Tl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),sr=(()=>{class n{constructor(e,t,r){this._ngZone=e,this._platform=t,this._scrolled=new He.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new Ri.y(t=>{this._globalSubscription||this._addGlobalListener();const r=e>0?this._scrolled.pipe(Fd(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,$e.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const r=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe((0,jt.h)(l=>!l||r.indexOf(l)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((r,l)=>{this._scrollableContainsElement(l,e)&&t.push(l)}),t}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(e,t){let r=qi(t),l=e.getElementRef().nativeElement;do{if(r==l)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ta(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Si),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Eh=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.scrollDispatcher=t,this.ngZone=r,this.dir=l,this._destroyed=new He.xQ,this._elementScrolled=new Ri.y(d=>this.ngZone.runOutsideAngular(()=>Ta(this.elementRef.nativeElement,"scroll").pipe(tt(this._destroyed)).subscribe(d)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){const t=this.elementRef.nativeElement,r=this.dir&&"rtl"==this.dir.value;null==e.left&&(e.left=r?e.end:e.start),null==e.right&&(e.right=r?e.start:e.end),null!=e.bottom&&(e.top=t.scrollHeight-t.clientHeight-e.bottom),r&&0!=jd()?(null!=e.left&&(e.right=t.scrollWidth-t.clientWidth-e.left),2==jd()?e.left=e.right:1==jd()&&(e.left=e.right?-e.right:e.right)):null!=e.right&&(e.left=t.scrollWidth-t.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){const t=this.elementRef.nativeElement;xh()?t.scrollTo(e):(null!=e.top&&(t.scrollTop=e.top),null!=e.left&&(t.scrollLeft=e.left))}measureScrollOffset(e){const t="left",r="right",l=this.elementRef.nativeElement;if("top"==e)return l.scrollTop;if("bottom"==e)return l.scrollHeight-l.clientHeight-l.scrollTop;const d=this.dir&&"rtl"==this.dir.value;return"start"==e?e=d?r:t:"end"==e&&(e=d?t:r),d&&2==jd()?e==t?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:d&&1==jd()?e==t?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:e==t?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b),i.Y36(vn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),n})(),Qa=(()=>{class n{constructor(e,t,r){this._platform=e,this._change=new He.xQ,this._changeListener=l=>{this._change.next(l)},this._document=r,t.runOutsideAngular(()=>{if(e.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+t,height:r,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,t=this._getWindow(),r=e.documentElement,l=r.getBoundingClientRect();return{top:-l.top||e.body.scrollTop||t.scrollY||r.scrollTop||0,left:-l.left||e.body.scrollLeft||t.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(Fd(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si),i.LFG(i.R0b),i.LFG(w.K0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Sa=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Ja=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Tl,Oc,Sa],Tl,Sa]}),n})();class Ho{attach(a){return this._attachedHost=a,a.attach(this)}detach(){let a=this._attachedHost;null!=a&&(this._attachedHost=null,a.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(a){this._attachedHost=a}}class Vc extends Ho{constructor(a,e,t,r){super(),this.component=a,this.viewContainerRef=e,this.injector=t,this.componentFactoryResolver=r}}class xl extends Ho{constructor(a,e,t){super(),this.templateRef=a,this.viewContainerRef=e,this.context=t}get origin(){return this.templateRef.elementRef}attach(a,e=this.context){return this.context=e,super.attach(a)}detach(){return this.context=void 0,super.detach()}}class my extends Ho{constructor(a){super(),this.element=a instanceof i.SBq?a.nativeElement:a}}class qd{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(a){return a instanceof Vc?(this._attachedPortal=a,this.attachComponentPortal(a)):a instanceof xl?(this._attachedPortal=a,this.attachTemplatePortal(a)):this.attachDomPortal&&a instanceof my?(this._attachedPortal=a,this.attachDomPortal(a)):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(a){this._disposeFn=a}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class gy extends qd{constructor(a,e,t,r,l){super(),this.outletElement=a,this._componentFactoryResolver=e,this._appRef=t,this._defaultInjector=r,this.attachDomPortal=d=>{const s=d.element,o=this._document.createComment("dom-portal");s.parentNode.insertBefore(o,s),this.outletElement.appendChild(s),this._attachedPortal=d,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(s,o)})},this._document=l}attachComponentPortal(a){const t=(a.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(a.component);let r;return a.viewContainerRef?(r=a.viewContainerRef.createComponent(t,a.viewContainerRef.length,a.injector||a.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=t.create(a.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=a,r}attachTemplatePortal(a){let e=a.viewContainerRef,t=e.createEmbeddedView(a.templateRef,a.context);return t.rootNodes.forEach(r=>this.outletElement.appendChild(r)),t.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(t);-1!==r&&e.remove(r)}),this._attachedPortal=a,t}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(a){return a.hostView.rootNodes[0]}}let e0=(()=>{class n extends qd{constructor(e,t,r){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new i.vpe,this.attachDomPortal=l=>{const d=l.element,s=this._document.createComment("dom-portal");l.setAttachedHost(this),d.parentNode.insertBefore(s,d),this._getRootNode().appendChild(d),this._attachedPortal=l,super.setDisposeFn(()=>{s.parentNode&&s.parentNode.replaceChild(d,s)})},this._document=r}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,l=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),d=t.createComponent(l,t.length,e.injector||t.injector);return t!==this._viewContainerRef&&this._getRootNode().appendChild(d.hostView.rootNodes[0]),super.setDisposeFn(()=>d.destroy()),this._attachedPortal=e,this._attachedRef=d,this.attached.emit(d),d}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}_getRootNode(){const e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.qOj]}),n})(),Lo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();var Ei=x(6787);class yy{constructor(a,e){this.predicate=a,this.inclusive=e}call(a,e){return e.subscribe(new cg(a,this.predicate,this.inclusive))}}class cg extends Sr.L{constructor(a,e,t){super(a),this.predicate=e,this.inclusive=t,this.index=0}_next(a){const e=this.destination;let t;try{t=this.predicate(a,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(a,t)}nextOrComplete(a,e){const t=this.destination;Boolean(e)?t.next(a):(this.inclusive&&t.next(a),t.complete())}}function Tn(n,...a){return a.length?a.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}const h0=xh();class Qy{constructor(a,e){this._viewportRuler=a,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const a=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=a.style.left||"",this._previousHTMLStyles.top=a.style.top||"",a.style.left=en(-this._previousScrollPosition.left),a.style.top=en(-this._previousScrollPosition.top),a.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const a=this._document.documentElement,t=a.style,r=this._document.body.style,l=t.scrollBehavior||"",d=r.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,a.classList.remove("cdk-global-scrollblock"),h0&&(t.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),h0&&(t.scrollBehavior=l,r.scrollBehavior=d)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}class Xy{constructor(a,e,t,r){this._scrollDispatcher=a,this._ngZone=e,this._viewportRuler=t,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(a){this._overlayRef=a}enable(){if(this._scrollSubscription)return;const a=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=a.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=a.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class xg{enable(){}disable(){}attach(){}}function or(n,a){return a.some(e=>n.bottome.bottom||n.righte.right)}function Sg(n,a){return a.some(e=>n.tope.bottom||n.lefte.right)}class Ky{constructor(a,e,t,r){this._scrollDispatcher=a,this._viewportRuler=e,this._ngZone=t,this._config=r,this._scrollSubscription=null}attach(a){this._overlayRef=a}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 e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:r}=this._viewportRuler.getViewportSize();or(e,[{width:t,height:r,bottom:r,right:t,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 HT=(()=>{class n{constructor(e,t,r,l){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=r,this.noop=()=>new xg,this.close=d=>new Xy(this._scrollDispatcher,this._ngZone,this._viewportRuler,d),this.block=()=>new Qy(this._viewportRuler,this._document),this.reposition=d=>new Ky(this._scrollDispatcher,this._viewportRuler,this._ngZone,d),this._document=l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(sr),i.LFG(Qa),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class Ph{constructor(a){if(this.scrollStrategy=new xg,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,a){const e=Object.keys(a);for(const t of e)void 0!==a[t]&&(this[t]=a[t])}}}class tM{constructor(a,e){this.connectionPair=a,this.scrollableViewProperties=e}}class nM{constructor(a,e,t,r,l,d,s,o,c){this._portalOutlet=a,this._host=e,this._pane=t,this._config=r,this._ngZone=l,this._keyboardDispatcher=d,this._document=s,this._location=o,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new He.xQ,this._attachments=new He.xQ,this._detachments=new He.xQ,this._locationChanges=re.w.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new He.xQ,this._outsidePointerEvents=new He.xQ,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(a){let e=this._portalOutlet.attach(a);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Zt.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),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const a=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),a}dispose(){var a;const e=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),null===(a=this._host)||void 0===a||a.remove(),this._previousHostParent=this._pane=this._host=null,e&&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(a){a!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=a,this.hasAttached()&&(a.attach(this),this.updatePosition()))}updateSize(a){this._config=Object.assign(Object.assign({},this._config),a),this._updateElementSize()}setDirection(a){this._config=Object.assign(Object.assign({},this._config),{direction:a}),this._updateElementDirection()}addPanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!0)}removePanelClass(a){this._pane&&this._toggleClasses(this._pane,a,!1)}getDirection(){const a=this._config.direction;return a?"string"==typeof a?a:a.value:"ltr"}updateScrollStrategy(a){a!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=a,this.hasAttached()&&(a.attach(this),a.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const a=this._pane.style;a.width=en(this._config.width),a.height=en(this._config.height),a.minWidth=en(this._config.minWidth),a.minHeight=en(this._config.minHeight),a.maxWidth=en(this._config.maxWidth),a.maxHeight=en(this._config.maxHeight)}_togglePointerEvents(a){this._pane.style.pointerEvents=a?"":"none"}_attachBackdrop(){const a="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),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),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(a)})}):this._backdropElement.classList.add(a)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const a=this._backdropElement;if(!a)return;let e;const t=()=>{a&&(a.removeEventListener("click",this._backdropClickHandler),a.removeEventListener("transitionend",t),this._disposeBackdrop(a)),this._config.backdropClass&&this._toggleClasses(a,this._config.backdropClass,!1),clearTimeout(e)};a.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{a.addEventListener("transitionend",t)}),a.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(t,500))}_toggleClasses(a,e,t){const r=kc(e||[]).filter(l=>!!l);r.length&&(t?a.classList.add(...r):a.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const a=this._ngZone.onStable.pipe(tt((0,Ei.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()),a.unsubscribe())})})}_disposeScrollStrategy(){const a=this._scrollStrategy;a&&(a.disable(),a.detach&&a.detach())}_disposeBackdrop(a){a&&(a.remove(),this._backdropElement===a&&(this._backdropElement=null))}}let p0=(()=>{class n{constructor(e,t){this._platform=t,this._document=e}ngOnDestroy(){var e;null===(e=this._containerElement)||void 0===e||e.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e="cdk-overlay-container";if(this._platform.isBrowser||Kf()){const r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let l=0;l{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 a=this._originRect,e=this._overlayRect,t=this._viewportRect,r=this._containerRect,l=[];let d;for(let s of this._preferredPositions){let o=this._getOriginPoint(a,r,s),c=this._getOverlayPoint(o,e,s),u=this._getOverlayFit(c,e,t,s);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(u,c,t)?l.push({position:s,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!d||d.overlayFit.visibleAreao&&(o=u,s=c)}return this._isPushed=!1,void this._applyPosition(s.position,s.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(d.position,d.originPoint);this._applyPosition(d.position,d.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ro(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Dg),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const a=this._lastPosition;if(a){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._getOriginPoint(this._originRect,this._containerRect,a);this._applyPosition(a,e)}else this.apply()}withScrollableContainers(a){return this._scrollables=a,this}withPositions(a){return this._preferredPositions=a,-1===a.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(a){return this._viewportMargin=a,this}withFlexibleDimensions(a=!0){return this._hasFlexibleDimensions=a,this}withGrowAfterOpen(a=!0){return this._growAfterOpen=a,this}withPush(a=!0){return this._canPush=a,this}withLockedPosition(a=!0){return this._positionLocked=a,this}setOrigin(a){return this._origin=a,this}withDefaultOffsetX(a){return this._offsetX=a,this}withDefaultOffsetY(a){return this._offsetY=a,this}withTransformOriginOn(a){return this._transformOriginSelector=a,this}_getOriginPoint(a,e,t){let r,l;if("center"==t.originX)r=a.left+a.width/2;else{const d=this._isRtl()?a.right:a.left,s=this._isRtl()?a.left:a.right;r="start"==t.originX?d:s}return e.left<0&&(r-=e.left),l="center"==t.originY?a.top+a.height/2:"top"==t.originY?a.top:a.bottom,e.top<0&&(l-=e.top),{x:r,y:l}}_getOverlayPoint(a,e,t){let r,l;return r="center"==t.overlayX?-e.width/2:"start"===t.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,l="center"==t.overlayY?-e.height/2:"top"==t.overlayY?0:-e.height,{x:a.x+r,y:a.y+l}}_getOverlayFit(a,e,t,r){const l=kg(e);let{x:d,y:s}=a,o=this._getOffset(r,"x"),c=this._getOffset(r,"y");o&&(d+=o),c&&(s+=c);let f=0-s,b=s+l.height-t.height,V=this._subtractOverflows(l.width,0-d,d+l.width-t.width),ee=this._subtractOverflows(l.height,f,b),he=V*ee;return{visibleArea:he,isCompletelyWithinViewport:l.width*l.height===he,fitsInViewportVertically:ee===l.height,fitsInViewportHorizontally:V==l.width}}_canFitWithFlexibleDimensions(a,e,t){if(this._hasFlexibleDimensions){const r=t.bottom-e.y,l=t.right-e.x,d=Lg(this._overlayRef.getConfig().minHeight),s=Lg(this._overlayRef.getConfig().minWidth),c=a.fitsInViewportHorizontally||null!=s&&s<=l;return(a.fitsInViewportVertically||null!=d&&d<=r)&&c}return!1}_pushOverlayOnScreen(a,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};const r=kg(e),l=this._viewportRect,d=Math.max(a.x+r.width-l.width,0),s=Math.max(a.y+r.height-l.height,0),o=Math.max(l.top-t.top-a.y,0),c=Math.max(l.left-t.left-a.x,0);let u=0,h=0;return u=r.width<=l.width?c||-d:a.xV&&!this._isInitialRender&&!this._growAfterOpen&&(d=a.y-V/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)f=t.width-a.x+this._viewportMargin,u=a.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)h=a.x,u=t.right-a.x;else{const b=Math.min(t.right-a.x+t.left,a.x),V=this._lastBoundingBoxSize.width;u=2*b,h=a.x-b,u>V&&!this._isInitialRender&&!this._growAfterOpen&&(h=a.x-V/2)}return{top:d,left:h,bottom:s,right:f,width:u,height:l}}_setBoundingBoxStyles(a,e){const t=this._calculateBoundingBoxRect(a,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const l=this._overlayRef.getConfig().maxHeight,d=this._overlayRef.getConfig().maxWidth;r.height=en(t.height),r.top=en(t.top),r.bottom=en(t.bottom),r.width=en(t.width),r.left=en(t.left),r.right=en(t.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",l&&(r.maxHeight=en(l)),d&&(r.maxWidth=en(d))}this._lastBoundingBoxSize=t,Ro(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ro(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ro(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(a,e){const t={},r=this._hasExactPosition(),l=this._hasFlexibleDimensions,d=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ro(t,this._getExactOverlayY(e,a,u)),Ro(t,this._getExactOverlayX(e,a,u))}else t.position="static";let s="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(s+=`translateX(${o}px) `),c&&(s+=`translateY(${c}px)`),t.transform=s.trim(),d.maxHeight&&(r?t.maxHeight=en(d.maxHeight):l&&(t.maxHeight="")),d.maxWidth&&(r?t.maxWidth=en(d.maxWidth):l&&(t.maxWidth="")),Ro(this._pane.style,t)}_getExactOverlayY(a,e,t){let r={top:"",bottom:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),"bottom"===a.overlayY?r.bottom=this._document.documentElement.clientHeight-(l.y+this._overlayRect.height)+"px":r.top=en(l.y),r}_getExactOverlayX(a,e,t){let d,r={left:"",right:""},l=this._getOverlayPoint(e,this._overlayRect,a);return this._isPushed&&(l=this._pushOverlayOnScreen(l,this._overlayRect,t)),d=this._isRtl()?"end"===a.overlayX?"left":"right":"end"===a.overlayX?"right":"left","right"===d?r.right=this._document.documentElement.clientWidth-(l.x+this._overlayRect.width)+"px":r.left=en(l.x),r}_getScrollVisibility(){const a=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Sg(a,t),isOriginOutsideView:or(a,t),isOverlayClipped:Sg(e,t),isOverlayOutsideView:or(e,t)}}_subtractOverflows(a,...e){return e.reduce((t,r)=>t-Math.max(r,0),a)}_getNarrowedViewportRect(){const a=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+a-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:a-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(a,e){return"x"===e?null==a.offsetX?this._offsetX:a.offsetX:null==a.offsetY?this._offsetY:a.offsetY}_validatePositions(){}_addPanelClasses(a){this._pane&&kc(a).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(a=>{this._pane.classList.remove(a)}),this._appliedPanelClasses=[])}_getOriginRect(){const a=this._origin;if(a instanceof i.SBq)return a.nativeElement.getBoundingClientRect();if(a instanceof Element)return a.getBoundingClientRect();const e=a.width||0,t=a.height||0;return{top:a.y,bottom:a.y+t,left:a.x,right:a.x+e,height:t,width:e}}}function Ro(n,a){for(let e in a)a.hasOwnProperty(e)&&(n[e]=a[e]);return n}function Lg(n){if("number"!=typeof n&&null!=n){const[a,e]=n.split(Hg);return e&&"px"!==e?null:parseFloat(a)}return n||null}function kg(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const f0="cdk-global-overlay-wrapper";class Pg{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(a){const e=a.getConfig();this._overlayRef=a,this._width&&!e.width&&a.updateSize({width:this._width}),this._height&&!e.height&&a.updateSize({height:this._height}),a.hostElement.classList.add(f0),this._isDisposed=!1}top(a=""){return this._bottomOffset="",this._topOffset=a,this._alignItems="flex-start",this}left(a=""){return this._rightOffset="",this._leftOffset=a,this._justifyContent="flex-start",this}bottom(a=""){return this._topOffset="",this._bottomOffset=a,this._alignItems="flex-end",this}right(a=""){return this._leftOffset="",this._rightOffset=a,this._justifyContent="flex-end",this}width(a=""){return this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a,this}height(a=""){return this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a,this}centerHorizontally(a=""){return this.left(a),this._justifyContent="center",this}centerVertically(a=""){return this.top(a),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:r,height:l,maxWidth:d,maxHeight:s}=t,o=!("100%"!==r&&"100vw"!==r||d&&"100%"!==d&&"100vw"!==d),c=!("100%"!==l&&"100vh"!==l||s&&"100%"!==s&&"100vh"!==s);a.position=this._cssPosition,a.marginLeft=o?"0":this._leftOffset,a.marginTop=c?"0":this._topOffset,a.marginBottom=this._bottomOffset,a.marginRight=this._rightOffset,o?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const a=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(f0),t.justifyContent=t.alignItems=a.marginTop=a.marginBottom=a.marginLeft=a.marginRight=a.position="",this._overlayRef=null,this._isDisposed=!0}}let aM=(()=>{class n{constructor(e,t,r,l){this._viewportRuler=e,this._document=t,this._platform=r,this._overlayContainer=l}global(){return new Pg}flexibleConnectedTo(e){return new rM(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qa),i.LFG(w.K0),i.LFG(Si),i.LFG(p0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ea=(()=>{class n{constructor(e){this._attachedOverlays=[],this._document=e}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),m0=(()=>{class n extends Ea{constructor(e){super(e),this._keydownListener=t=>{const r=this._attachedOverlays;for(let l=r.length-1;l>-1;l--)if(r[l]._keydownEvents.observers.length>0){r[l]._keydownEvents.next(t);break}}}add(e){super.add(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),sM=(()=>{class n extends Ea{constructor(e,t){super(e),this._platform=t,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Un(r)},this._clickListener=r=>{const l=Un(r),d="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:l;this._pointerDownEventTarget=null;const s=this._attachedOverlays.slice();for(let o=s.length-1;o>-1;o--){const c=s[o];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(l)||c.overlayElement.contains(d))break;c._outsidePointerEvents.next(r)}}}}add(e){if(super.add(e),!this._isAttached){const t=this._document.body;t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const e=this._document.body;e.removeEventListener("pointerdown",this._pointerDownListener,!0),e.removeEventListener("click",this._clickListener,!0),e.removeEventListener("auxclick",this._clickListener,!0),e.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(e.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Si))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),oM=0,Zr=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=r,this._positionBuilder=l,this._keyboardDispatcher=d,this._injector=s,this._ngZone=o,this._document=c,this._directionality=u,this._location=h,this._outsideClickDispatcher=f}create(e){const t=this._createHostElement(),r=this._createPaneElement(t),l=this._createPortalOutlet(r),d=new Ph(e);return d.direction=d.direction||this._directionality.value,new nM(l,t,r,d,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+oM++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new gy(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(HT),i.LFG(p0),i.LFG(i._Vd),i.LFG(aM),i.LFG(m0),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(vn),i.LFG(w.Ye),i.LFG(sM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Rg=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Og=new i.OlP("cdk-connected-overlay-scroll-strategy");let Ig=(()=>{class n{constructor(e){this.elementRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),n})(),Bg=(()=>{class n{constructor(e,t,r,l,d){this._overlay=e,this._dir=d,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=re.w.EMPTY,this._attachSubscription=re.w.EMPTY,this._detachSubscription=re.w.EMPTY,this._positionSubscription=re.w.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new i.vpe,this.positionChange=new i.vpe,this.attach=new i.vpe,this.detach=new i.vpe,this.overlayKeydown=new i.vpe,this.overlayOutsideClick=new i.vpe,this._templatePortal=new xl(t,r),this._scrollStrategyFactory=l,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}get lockPosition(){return this._lockPosition}set lockPosition(e){this._lockPosition=je(e)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(e){this._flexibleDimensions=je(e)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(e){this._growAfterOpen=je(e)}get push(){return this._push}set push(e){this._push=je(e)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Rg);const e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),27===t.keyCode&&!this.disableClose&&!Tn(t)&&(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Ph({direction:this._dir,positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){const t=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const e=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(e),e}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ig?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Ay(n,a=!1){return e=>e.lift(new yy(n,a))}(()=>this.positionChange.observers.length>0)).subscribe(e=>{this.positionChange.emit(e),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Og),i.Y36(vn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[i.TTD]}),n})();const lM={provide:Og,deps:[Zr],useFactory:function g0(n){return()=>n.scrollStrategies.reposition()}};let Fc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Zr,lM],imports:[[Tl,Lo,Ja],Ja]}),n})();var Oh=x(13);function Ih(n){return a=>a.lift(new b0(n))}class b0{constructor(a){this.total=a}call(a,e){return e.subscribe(new Ng(a,this.total))}}class Ng extends Sr.L{constructor(a,e){super(a),this.total=e,this.count=0}_next(a){++this.count>this.total&&this.destination.next(a)}}function Bh(n,a){return e=>e.lift(new cM(n,a))}class cM{constructor(a,e){this.compare=a,this.keySelector=e}call(a,e){return e.subscribe(new A0(a,this.compare,this.keySelector))}}class A0 extends Sr.L{constructor(a,e,t){super(a),this.keySelector=t,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(a,e){return a===e}_next(a){let e;try{const{keySelector:r}=this;e=r?r(a):a}catch(r){return this.destination.error(r)}let t=!1;if(this.hasKey)try{const{compare:r}=this;t=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;t||(this.key=e,this.destination.next(a))}}let dM=(()=>{class n{create(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),uM=(()=>{class n{constructor(e){this._mutationObserverFactory=e,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){const t=qi(e);return new Ri.y(r=>{const d=this._observeElement(t).subscribe(r);return()=>{d.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{const t=new He.xQ,r=this._mutationObserverFactory.create(l=>t.next(l));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:t,count:1})}return this._observedElements.get(e).stream}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){const{observer:t,stream:r}=this._observedElements.get(e);t&&t.disconnect(),r.complete(),this._observedElements.delete(e)}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(dM))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Nh=(()=>{class n{constructor(e,t,r){this._contentObserver=e,this._elementRef=t,this._ngZone=r,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(e){this._debounce=li(e),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?e.pipe((0,Oh.b)(this.debounce)):e).subscribe(this.event)})}_unsubscribe(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(uM),i.Y36(i.SBq),i.Y36(i.R0b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),jc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[dM]}),n})();function $r(n,a){return(n.getAttribute(a)||"").match(/\S+/g)||[]}const Fg="cdk-describedby-message",Vh="cdk-describedby-host";let hM=0,zh=(()=>{class n{constructor(e,t){this._platform=t,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+hM++,this._document=e}describe(e,t,r){if(!this._canBeDescribed(e,t))return;const l=Fh(t,r);"string"!=typeof t?(jh(t),this._messageRegistry.set(l,{messageElement:t,referenceCount:0})):this._messageRegistry.has(l)||this._createMessageElement(t,r),this._isElementDescribedByMessage(e,l)||this._addMessageReference(e,l)}removeDescription(e,t,r){var l;if(!t||!this._isElementNode(e))return;const d=Fh(t,r);if(this._isElementDescribedByMessage(e,d)&&this._removeMessageReference(e,d),"string"==typeof t){const s=this._messageRegistry.get(d);s&&0===s.referenceCount&&this._deleteMessageElement(d)}0===(null===(l=this._messagesContainer)||void 0===l?void 0:l.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var e;const t=this._document.querySelectorAll(`[${Vh}="${this._id}"]`);for(let r=0;r0!=r.indexOf(Fg));e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){const r=this._messageRegistry.get(t);(function Vg(n,a,e){const t=$r(n,a);t.some(r=>r.trim()==e.trim())||(t.push(e.trim()),n.setAttribute(a,t.join(" ")))})(e,"aria-describedby",r.messageElement.id),e.setAttribute(Vh,this._id),r.referenceCount++}_removeMessageReference(e,t){const r=this._messageRegistry.get(t);r.referenceCount--,function zg(n,a,e){const r=$r(n,a).filter(l=>l!=e.trim());r.length?n.setAttribute(a,r.join(" ")):n.removeAttribute(a)}(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Vh)}_isElementDescribedByMessage(e,t){const r=$r(e,"aria-describedby"),l=this._messageRegistry.get(t),d=l&&l.messageElement.id;return!!d&&-1!=r.indexOf(d)}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;const r=null==t?"":`${t}`.trim(),l=e.getAttribute("aria-label");return!(!r||l&&l.trim()===r)}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(Si))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Fh(n,a){return"string"==typeof n?`${a||""}/${n}`:n}function jh(n){n.id||(n.id=`${Fg}-${hM++}`)}class qc{constructor(a){this._items=a,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new He.xQ,this._typeaheadSubscription=re.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new He.xQ,this.change=new He.xQ,a instanceof i.n_E&&a.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(a){return this._skipPredicateFn=a,this}withWrap(a=!0){return this._wrap=a,this}withVerticalOrientation(a=!0){return this._vertical=a,this}withHorizontalOrientation(a){return this._horizontal=a,this}withAllowedModifierKeys(a){return this._allowedModifierKeys=a,this}withTypeAhead(a=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,I.b)(e=>this._pressedLetters.push(e)),(0,Oh.b)(a),(0,jt.h)(()=>this._pressedLetters.length>0),(0,ht.U)(()=>this._pressedLetters.join(""))).subscribe(e=>{const t=this._getItemsArray();for(let r=1;r!a[l]||this._allowedModifierKeys.indexOf(l)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Tn(a,"shiftKey"))&&(a.key&&1===a.key.length?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],a.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(a){const e=this._getItemsArray(),t="number"==typeof a?a:e.indexOf(a),r=e[t];this._activeItem=null==r?null:r,this._activeItemIndex=t}_setActiveItemByDelta(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)}_setActiveInWrapMode(a){const e=this._getItemsArray();for(let t=1;t<=e.length;t++){const r=(this._activeItemIndex+a*t+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(a){this._setActiveItemByIndex(this._activeItemIndex+a,a)}_setActiveItemByIndex(a,e){const t=this._getItemsArray();if(t[a]){for(;this._skipPredicateFn(t[a]);)if(!t[a+=e])return;this.setActiveItem(a)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class jg extends qc{setActiveItem(a){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(a),this.activeItem&&this.activeItem.setActiveStyles()}}class Yc extends qc{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(a){return this._origin=a,this}setActiveItem(a){super.setActiveItem(a),this.activeItem&&this.activeItem.focus(this._origin)}}let qh=(()=>{class n{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function fM(n){return!!(n.offsetWidth||n.offsetHeight||"function"==typeof n.getClientRects&&n.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function qg(n){try{return n.frameElement}catch(a){return null}}(function bM(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}(e));if(t&&(-1===Wg(t)||!this.isVisible(t)))return!1;let r=e.nodeName.toLowerCase(),l=Wg(e);return e.hasAttribute("contenteditable")?-1!==l:!("iframe"===r||"object"===r||this._platform.WEBKIT&&this._platform.IOS&&!function _M(n){let a=n.nodeName.toLowerCase(),e="input"===a&&n.type;return"text"===e||"password"===e||"select"===a||"textarea"===a}(e))&&("audio"===r?!!e.hasAttribute("controls")&&-1!==l:"video"===r?-1!==l&&(null!==l||this._platform.FIREFOX||e.hasAttribute("controls")):e.tabIndex>=0)}isFocusable(e,t){return function Uc(n){return!function mM(n){return function Yg(n){return"input"==n.nodeName.toLowerCase()}(n)&&"hidden"==n.type}(n)&&(function w0(n){let a=n.nodeName.toLowerCase();return"input"===a||"select"===a||"button"===a||"textarea"===a}(n)||function gM(n){return function Wc(n){return"a"==n.nodeName.toLowerCase()}(n)&&n.hasAttribute("href")}(n)||n.hasAttribute("contenteditable")||C0(n))}(e)&&!this.isDisabled(e)&&((null==t?void 0:t.ignoreVisibility)||this.isVisible(e))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function C0(n){if(!n.hasAttribute("tabindex")||void 0===n.tabIndex)return!1;let a=n.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))}function Wg(n){if(!C0(n))return null;const a=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(a)?-1:a}class AM{constructor(a,e,t,r,l=!1){this._element=a,this._checker=e,this._ngZone=t,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,l||this.attachAnchors()}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}destroy(){const a=this._startAnchor,e=this._endAnchor;a&&(a.removeEventListener("focus",this.startAnchorListener),a.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.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(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(a)))})}focusFirstTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(a)))})}focusLastTabbableElementWhenReady(a){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(a)))})}_getRegionBoundary(a){const e=this._element.querySelectorAll(`[cdk-focus-region-${a}], [cdkFocusRegion${a}], [cdk-focus-${a}]`);return"start"==a?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(a){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){const t=this._getFirstTabbableElement(e);return null==t||t.focus(a),!!t}return e.focus(a),!0}return this.focusFirstTabbableElement(a)}focusFirstTabbableElement(a){const e=this._getRegionBoundary("start");return e&&e.focus(a),!!e}focusLastTabbableElement(a){const e=this._getRegionBoundary("end");return e&&e.focus(a),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(a){if(this._checker.isFocusable(a)&&this._checker.isTabbable(a))return a;const e=a.children;for(let t=0;t=0;t--){const r=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(r)return r}return null}_createAnchor(){const a=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,a),a.classList.add("cdk-visually-hidden"),a.classList.add("cdk-focus-trap-anchor"),a.setAttribute("aria-hidden","true"),a}_toggleAnchorTabIndex(a,e){a?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(a){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(a,this._startAnchor),this._toggleAnchorTabIndex(a,this._endAnchor))}_executeOnStable(a){this._ngZone.isStable?a():this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(a)}}let Ug=(()=>{class n{constructor(e,t,r){this._checker=e,this._ngZone=t,this._document=r}create(e,t=!1){return new AM(e,this._checker,this._ngZone,this._document,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(qh),i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Gd(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}function Yh(n){const a=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!a||-1!==a.identifier||null!=a.radiusX&&1!==a.radiusX||null!=a.radiusY&&1!==a.radiusY)}const CM=new i.OlP("cdk-input-modality-detector-options"),vM={ignoreKeys:[18,17,224,91,16]},Hl=xa({passive:!0,capture:!0});let kT=(()=>{class n{constructor(e,t,r,l){this._platform=e,this._mostRecentTarget=null,this._modality=new Ki(null),this._lastTouchMs=0,this._onKeydown=d=>{var s,o;(null===(o=null===(s=this._options)||void 0===s?void 0:s.ignoreKeys)||void 0===o?void 0:o.some(c=>c===d.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Un(d))},this._onMousedown=d=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Gd(d)?"keyboard":"mouse"),this._mostRecentTarget=Un(d))},this._onTouchstart=d=>{Yh(d)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Un(d))},this._options=Object.assign(Object.assign({},vM),l),this.modalityDetected=this._modality.pipe(Ih(1)),this.modalityChanged=this.modalityDetected.pipe(Bh()),e.isBrowser&&t.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,Hl),r.addEventListener("mousedown",this._onMousedown,Hl),r.addEventListener("touchstart",this._onTouchstart,Hl)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Hl),document.removeEventListener("mousedown",this._onMousedown,Hl),document.removeEventListener("touchstart",this._onTouchstart,Hl))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si),i.LFG(i.R0b),i.LFG(w.K0),i.LFG(CM,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $g=new i.OlP("liveAnnouncerElement",{providedIn:"root",factory:function TM(){return null}}),xM=new i.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let PT=(()=>{class n{constructor(e,t,r,l){this._ngZone=t,this._defaultOptions=l,this._document=r,this._liveElement=e||this._createLiveElement()}announce(e,...t){const r=this._defaultOptions;let l,d;return 1===t.length&&"number"==typeof t[0]?d=t[0]:[l,d]=t,this.clear(),clearTimeout(this._previousTimeout),l||(l=r&&r.politeness?r.politeness:"polite"),null==d&&r&&(d=r.duration),this._liveElement.setAttribute("aria-live",l),this._ngZone.runOutsideAngular(()=>new Promise(s=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,s(),"number"==typeof d&&(this._previousTimeout=setTimeout(()=>this.clear(),d))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var e;clearTimeout(this._previousTimeout),null===(e=this._liveElement)||void 0===e||e.remove(),this._liveElement=null}_createLiveElement(){const e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let l=0;l{class n{constructor(e,t,r,l,d){this._ngZone=e,this._platform=t,this._inputModalityDetector=r,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 He.xQ,this._rootNodeFocusAndBlurListener=s=>{const o=Un(s),c="focus"===s.type?this._onFocus:this._onBlur;for(let u=o;u;u=u.parentElement)c.call(this,s,u)},this._document=l,this._detectionMode=(null==d?void 0:d.detectionMode)||0}monitor(e,t=!1){const r=qi(e);if(!this._platform.isBrowser||1!==r.nodeType)return(0,$e.of)(null);const l=Sh(r)||this._getDocument(),d=this._elementInfo.get(r);if(d)return t&&(d.checkChildren=!0),d.subject;const s={checkChildren:t,subject:new He.xQ,rootNode:l};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){const t=qi(e),r=this._elementInfo.get(t);r&&(r.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(r))}focusVia(e,t,r){const l=qi(e);l===this._getDocument().activeElement?this._getClosestElementsInfo(l).forEach(([s,o])=>this._originChanged(s,t,o)):(this._setOrigin(t),"function"==typeof l.focus&&l.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused","touch"===t),e.classList.toggle("cdk-keyboard-focused","keyboard"===t),e.classList.toggle("cdk-mouse-focused","mouse"===t),e.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=e,this._originFromTouchInteraction="touch"===e&&t,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(e,t){const r=this._elementInfo.get(t),l=Un(e);!r||!r.checkChildren&&t!==l||this._originChanged(t,this._getFocusOrigin(l),r)}_onBlur(e,t){const r=this._elementInfo.get(t);!r||r.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(r.subject,null))}_emitOrigin(e,t){this._ngZone.run(()=>e.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;const t=e.rootNode,r=this._rootNodeFocusListenerCount.get(t)||0;r||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wh),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wh)}),this._rootNodeFocusListenerCount.set(t,r+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(tt(this._stopInputModalityDetector)).subscribe(l=>{this._setOrigin(l,!0)}))}_removeGlobalListeners(e){const t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const r=this._rootNodeFocusListenerCount.get(t);r>1?this._rootNodeFocusListenerCount.set(t,r-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wh),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wh),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,r){this._setClasses(e,t),this._emitOrigin(r.subject,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){const t=[];return this._elementInfo.forEach((r,l)=>{(l===e||r.checkChildren&&l.contains(e))&&t.push([l,r])}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(Si),i.LFG(kT),i.LFG(w.K0,8),i.LFG(v0,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const EM="cdk-high-contrast-black-on-white",Qr="cdk-high-contrast-white-on-black",Qg="cdk-high-contrast-active";let DM=(()=>{class n{constructor(e,t){this._platform=e,this._document=t}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);const t=this._document.defaultView||window,r=t&&t.getComputedStyle?t.getComputedStyle(e):null,l=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),l){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const e=this._document.body.classList;e.remove(Qg),e.remove(EM),e.remove(Qr),this._hasCheckedHighContrastMode=!0;const t=this.getHighContrastMode();1===t?(e.add(Qg),e.add(EM)):2===t&&(e.add(Qg),e.add(Qr))}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Uh=(()=>{class n{constructor(e){e._applyBodyHighContrastModeCssClasses()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(DM))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Oc,jc]]}),n})();class T0{}const js="*";function Ai(n,a){return{type:7,name:n,definitions:a,options:{}}}function yt(n,a=null){return{type:4,styles:a,timings:n}}function Gh(n,a=null){return{type:3,steps:n,options:a}}function Xg(n,a=null){return{type:2,steps:n,options:a}}function Le(n){return{type:6,styles:n,offset:null}}function Lt(n,a,e){return{type:0,name:n,styles:a,options:e}}function Ll(n){return{type:5,steps:n}}function Ct(n,a,e=null){return{type:1,expr:n,animation:a,options:e}}function Kg(n=null){return{type:9,options:n}}function Mr(n,a,e=null){return{type:11,selector:n,animation:a,options:e}}function e_(n){Promise.resolve(null).then(n)}class qs{constructor(a=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=a+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){e_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(a=>a()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(a){this._position=this.totalTime?a*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class t_{constructor(a){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=a;let e=0,t=0,r=0;const l=this.players.length;0==l?e_(()=>this._onFinish()):this.players.forEach(d=>{d.onDone(()=>{++e==l&&this._onFinish()}),d.onDestroy(()=>{++t==l&&this._onDestroy()}),d.onStart(()=>{++r==l&&this._onStart()})}),this.totalTime=this.players.reduce((d,s)=>Math.max(d,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(a=>a()),this._onDoneFns=[])}init(){this.players.forEach(a=>a.init())}onStart(a){this._onStartFns.push(a)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(a=>a()),this._onStartFns=[])}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(a=>a.play())}pause(){this.players.forEach(a=>a.pause())}restart(){this.players.forEach(a=>a.restart())}finish(){this._onFinish(),this.players.forEach(a=>a.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(a=>a.destroy()),this._onDestroyFns.forEach(a=>a()),this._onDestroyFns=[])}reset(){this.players.forEach(a=>a.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(a){const e=a*this.totalTime;this.players.forEach(t=>{const r=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(r)})}getPosition(){const a=this.players.reduce((e,t)=>null===e||t.totalTime>e.totalTime?t:e,null);return null!=a?a.getPosition():0}beforeDestroy(){this.players.forEach(a=>{a.beforeDestroy&&a.beforeDestroy()})}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function S0(){return"undefined"!=typeof window&&void 0!==window.document}function Jr(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Xr(n){switch(n.length){case 0:return new qs;case 1:return n[0];default:return new t_(n)}}function In(n,a,e,t,r={},l={}){const d=[],s=[];let o=-1,c=null;if(t.forEach(u=>{const h=u.offset,f=h==o,b=f&&c||{};Object.keys(u).forEach(V=>{let ee=V,he=u[V];if("offset"!==V)switch(ee=a.normalizePropertyName(ee,d),he){case"!":he=r[V];break;case js:he=l[V];break;default:he=a.normalizeStyleValue(V,ee,he,d)}b[ee]=he}),f||s.push(b),c=b,o=h}),d.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${d.join(u)}`)}return s}function Ys(n,a,e,t){switch(a){case"start":n.onStart(()=>t(e&&Gc(e,"start",n)));break;case"done":n.onDone(()=>t(e&&Gc(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&Gc(e,"destroy",n)))}}function Gc(n,a,e){const t=e.totalTime,l=wr(n.element,n.triggerName,n.fromState,n.toState,a||n.phaseName,null==t?n.totalTime:t,!!e.disabled),d=n._data;return null!=d&&(l._data=d),l}function wr(n,a,e,t,r="",l=0,d){return{element:n,triggerName:a,fromState:e,toState:t,phaseName:r,totalTime:l,disabled:!!d}}function lr(n,a,e){let t;return n instanceof Map?(t=n.get(a),t||n.set(a,t=e)):(t=n[a],t||(t=n[a]=e)),t}function kl(n){const a=n.indexOf(":");return[n.substring(1,a),n.substr(a+1)]}let Oo=(n,a)=>!1,Pl=(n,a,e)=>[];(Jr()||"undefined"!=typeof Element)&&(Oo=S0()?(n,a)=>{for(;a&&a!==document.documentElement;){if(a===n)return!0;a=a.parentNode||a.host}return!1}:(n,a)=>n.contains(a),Pl=(n,a,e)=>{if(e)return Array.from(n.querySelectorAll(a));const t=n.querySelector(a);return t?[t]:[]});let Kr=null,Rl=!1;function Ol(n){Kr||(Kr=function $c(){return"undefined"!=typeof document?document.body:null}()||{},Rl=!!Kr.style&&"WebkitAppearance"in Kr.style);let a=!0;return Kr.style&&!function Zc(n){return"ebkit"==n.substring(1,6)}(n)&&(a=n in Kr.style,!a&&Rl&&(a="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Kr.style)),a}const Zh=Oo,E0=Pl;let D0=(()=>{class n{validateStyleProperty(e){return Ol(e)}matchesElement(e,t){return!1}containsElement(e,t){return Zh(e,t)}query(e,t,r){return E0(e,t,r)}computeStyle(e,t,r){return r||""}animate(e,t,r,l,d,s=[],o){return new qs(r,l)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),$h=(()=>{class n{}return n.NOOP=new D0,n})();const Qh="ng-enter",Jh="ng-leave",Qd="ng-trigger",Xh=".ng-trigger",L0="ng-animating",Kh=".ng-animating";function Il(n){if("number"==typeof n)return n;const a=n.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:k0(parseFloat(a[1]),a[2])}function k0(n,a){return"s"===a?1e3*n:n}function Jd(n,a,e){return n.hasOwnProperty("duration")?n:function LM(n,a,e){let r,l=0,d="";if("string"==typeof n){const s=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return a.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};r=k0(parseFloat(s[1]),s[2]);const o=s[3];null!=o&&(l=k0(parseFloat(o),s[4]));const c=s[5];c&&(d=c)}else r=n;if(!e){let s=!1,o=a.length;r<0&&(a.push("Duration values below 0 are not allowed for this animation step."),s=!0),l<0&&(a.push("Delay values below 0 are not allowed for this animation step."),s=!0),s&&a.splice(o,0,`The provided timing value "${n}" is invalid.`)}return{duration:r,delay:l,easing:d}}(n,a,e)}function Bl(n,a={}){return Object.keys(n).forEach(e=>{a[e]=n[e]}),a}function Io(n,a,e={}){if(a)for(let t in n)e[t]=n[t];else Bl(n,e);return e}function kM(n,a,e){return e?a+":"+e+";":""}function a_(n){let a="";for(let e=0;e{const r=P0(t);e&&!e.hasOwnProperty(t)&&(e[t]=n.style[r]),n.style[r]=a[t]}),Jr()&&a_(n))}function Ws(n,a){n.style&&(Object.keys(a).forEach(e=>{const t=P0(e);n.style[t]=""}),Jr()&&a_(n))}function Xd(n){return Array.isArray(n)?1==n.length?n[0]:Xg(n):n}const s_=new RegExp("{{\\s*(.+?)\\s*}}","g");function PM(n){let a=[];if("string"==typeof n){let e;for(;e=s_.exec(n);)a.push(e[1]);s_.lastIndex=0}return a}function ep(n,a,e){const t=n.toString(),r=t.replace(s_,(l,d)=>{let s=a[d];return a.hasOwnProperty(d)||(e.push(`Please provide a value for the animation param ${d}`),s=""),s.toString()});return r==t?n:r}function Kd(n){const a=[];let e=n.next();for(;!e.done;)a.push(e.value),e=n.next();return a}const BT=/-+([a-z0-9])/g;function P0(n){return n.replace(BT,(...a)=>a[1].toUpperCase())}function Qc(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Or(n,a,e){switch(a.type){case 7:return n.visitTrigger(a,e);case 0:return n.visitState(a,e);case 1:return n.visitTransition(a,e);case 2:return n.visitSequence(a,e);case 3:return n.visitGroup(a,e);case 4:return n.visitAnimate(a,e);case 5:return n.visitKeyframes(a,e);case 6:return n.visitStyle(a,e);case 8:return n.visitReference(a,e);case 9:return n.visitAnimateChild(a,e);case 10:return n.visitAnimateRef(a,e);case 11:return n.visitQuery(a,e);case 12:return n.visitStagger(a,e);default:throw new Error(`Unable to resolve animation metadata node #${a.type}`)}}function R0(n,a){return window.getComputedStyle(n)[a]}function OM(n,a){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(t=>function l_(n,a,e){if(":"==n[0]){const o=function IM(n,a){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}(n,e);if("function"==typeof o)return void a.push(o);n=o}const t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==t||t.length<4)return e.push(`The provided transition expression "${n}" is not supported`),a;const r=t[1],l=t[2],d=t[3];a.push(c_(r,d));"<"==l[0]&&!("*"==r&&"*"==d)&&a.push(c_(d,r))}(t,e,a)):e.push(n),e}const tp=new Set(["true","1"]),ip=new Set(["false","0"]);function c_(n,a){const e=tp.has(n)||ip.has(n),t=tp.has(a)||ip.has(a);return(r,l)=>{let d="*"==n||n==r,s="*"==a||a==l;return!d&&e&&"boolean"==typeof r&&(d=r?tp.has(n):ip.has(n)),!s&&t&&"boolean"==typeof l&&(s=l?tp.has(a):ip.has(a)),d&&s}}const u_=new RegExp("s*:selfs*,?","g");function O0(n,a,e){return new h_(n).build(a,e)}class h_{constructor(a){this._driver=a}build(a,e){const t=new N0(e);return this._resetContextStyleTimingState(t),Or(this,Xd(a),t)}_resetContextStyleTimingState(a){a.currentQuerySelector="",a.collectedStyles={},a.collectedStyles[""]={},a.currentTime=0}visitTrigger(a,e){let t=e.queryCount=0,r=e.depCount=0;const l=[],d=[];return"@"==a.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),a.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),0==s.type){const o=s,c=o.name;c.toString().split(/\s*,\s*/).forEach(u=>{o.name=u,l.push(this.visitState(o,e))}),o.name=c}else if(1==s.type){const o=this.visitTransition(s,e);t+=o.queryCount,r+=o.depCount,d.push(o)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:a.name,states:l,transitions:d,queryCount:t,depCount:r,options:null}}visitState(a,e){const t=this.visitStyle(a.styles,e),r=a.options&&a.options.params||null;if(t.containsDynamicStyles){const l=new Set,d=r||{};if(t.styles.forEach(s=>{if(V0(s)){const o=s;Object.keys(o).forEach(c=>{PM(o[c]).forEach(u=>{d.hasOwnProperty(u)||l.add(u)})})}}),l.size){const s=Kd(l.values());e.errors.push(`state("${a.name}", ...) must define default values for all the following style substitutions: ${s.join(", ")}`)}}return{type:0,name:a.name,style:t,options:r?{params:r}:null}}visitTransition(a,e){e.queryCount=0,e.depCount=0;const t=Or(this,Xd(a.animation),e);return{type:1,matchers:OM(a.expr,e.errors),animation:t,queryCount:e.queryCount,depCount:e.depCount,options:Bo(a.options)}}visitSequence(a,e){return{type:2,steps:a.steps.map(t=>Or(this,t,e)),options:Bo(a.options)}}visitGroup(a,e){const t=e.currentTime;let r=0;const l=a.steps.map(d=>{e.currentTime=t;const s=Or(this,d,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:l,options:Bo(a.options)}}visitAnimate(a,e){const t=function eu(n,a){let e=null;if(n.hasOwnProperty("duration"))e=n;else if("number"==typeof n)return tu(Jd(n,a).duration,0,"");const t=n;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=tu(0,0,"");return l.dynamic=!0,l.strValue=t,l}return e=e||Jd(t,a),tu(e.duration,e.delay,e.easing)}(a.timings,e.errors);e.currentAnimateTimings=t;let r,l=a.styles?a.styles:Le({});if(5==l.type)r=this.visitKeyframes(l,e);else{let d=a.styles,s=!1;if(!d){s=!0;const c={};t.easing&&(c.easing=t.easing),d=Le(c)}e.currentTime+=t.duration+t.delay;const o=this.visitStyle(d,e);o.isEmptyStep=s,r=o}return e.currentAnimateTimings=null,{type:4,timings:t,style:r,options:null}}visitStyle(a,e){const t=this._makeStyleAst(a,e);return this._validateStyleAst(t,e),t}_makeStyleAst(a,e){const t=[];Array.isArray(a.styles)?a.styles.forEach(d=>{"string"==typeof d?d==js?t.push(d):e.errors.push(`The provided style string value ${d} is not allowed.`):t.push(d)}):t.push(a.styles);let r=!1,l=null;return t.forEach(d=>{if(V0(d)){const s=d,o=s.easing;if(o&&(l=o,delete s.easing),!r)for(let c in s)if(s[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:t,easing:l,offset:a.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(a,e){const t=e.currentAnimateTimings;let r=e.currentTime,l=e.currentTime;t&&l>0&&(l-=t.duration+t.delay),a.styles.forEach(d=>{"string"!=typeof d&&Object.keys(d).forEach(s=>{if(!this._driver.validateStyleProperty(s))return void e.errors.push(`The provided animation property "${s}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],c=o[s];let u=!0;c&&(l!=r&&l>=c.startTime&&r<=c.endTime&&(e.errors.push(`The CSS property "${s}" that exists between the times of "${c.startTime}ms" and "${c.endTime}ms" is also being animated in a parallel animation between the times of "${l}ms" and "${r}ms"`),u=!1),l=c.startTime),u&&(o[s]={startTime:l,endTime:r}),e.options&&function IT(n,a,e){const t=a.params||{},r=PM(n);r.length&&r.forEach(l=>{t.hasOwnProperty(l)||e.push(`Unable to resolve the local animation param ${l} in the given list of values`)})}(d[s],e.options,e.errors)})})}visitKeyframes(a,e){const t={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),t;let l=0;const d=[];let s=!1,o=!1,c=0;const u=a.steps.map(Oe=>{const gt=this._makeStyleAst(Oe,e);let ut=null!=gt.offset?gt.offset:function BM(n){if("string"==typeof n)return null;let a=null;if(Array.isArray(n))n.forEach(e=>{if(V0(e)&&e.hasOwnProperty("offset")){const t=e;a=parseFloat(t.offset),delete t.offset}});else if(V0(n)&&n.hasOwnProperty("offset")){const e=n;a=parseFloat(e.offset),delete e.offset}return a}(gt.styles),Kt=0;return null!=ut&&(l++,Kt=gt.offset=ut),o=o||Kt<0||Kt>1,s=s||Kt0&&l{const ut=f>0?gt==b?1:f*gt:d[gt],Kt=ut*he;e.currentTime=V+ee.delay+Kt,ee.duration=Kt,this._validateStyleAst(Oe,e),Oe.offset=ut,t.styles.push(Oe)}),t}visitReference(a,e){return{type:8,animation:Or(this,Xd(a.animation),e),options:Bo(a.options)}}visitAnimateChild(a,e){return e.depCount++,{type:9,options:Bo(a.options)}}visitAnimateRef(a,e){return{type:10,animation:this.visitReference(a.animation,e),options:Bo(a.options)}}visitQuery(a,e){const t=e.currentQuerySelector,r=a.options||{};e.queryCount++,e.currentQuery=a;const[l,d]=function B0(n){const a=!!n.split(/\s*,\s*/).find(e=>":self"==e);return a&&(n=n.replace(u_,"")),n=n.replace(/@\*/g,Xh).replace(/@\w+/g,e=>Xh+"-"+e.substr(1)).replace(/:animating/g,Kh),[n,a]}(a.selector);e.currentQuerySelector=t.length?t+" "+l:l,lr(e.collectedStyles,e.currentQuerySelector,{});const s=Or(this,Xd(a.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:11,selector:l,limit:r.limit||0,optional:!!r.optional,includeSelf:d,animation:s,originalSelector:a.selector,options:Bo(a.options)}}visitStagger(a,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const t="full"===a.timings?{duration:0,delay:0,easing:"full"}:Jd(a.timings,e.errors,!0);return{type:12,animation:Or(this,Xd(a.animation),e),timings:t,options:null}}}class N0{constructor(a){this.errors=a,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function V0(n){return!Array.isArray(n)&&"object"==typeof n}function Bo(n){return n?(n=Bl(n)).params&&(n.params=function NT(n){return n?Bl(n):null}(n.params)):n={},n}function tu(n,a,e){return{duration:n,delay:a,easing:e}}function iu(n,a,e,t,r,l,d=null,s=!1){return{type:1,element:n,keyframes:a,preStyleProps:e,postStyleProps:t,duration:r,delay:l,totalTime:r+l,easing:d,subTimeline:s}}class np{constructor(){this._map=new Map}get(a){return this._map.get(a)||[]}append(a,e){let t=this._map.get(a);t||this._map.set(a,t=[]),t.push(...e)}has(a){return this._map.has(a)}clear(){this._map.clear()}}const p_=new RegExp(":enter","g"),NM=new RegExp(":leave","g");function nu(n,a,e,t,r,l={},d={},s,o,c=[]){return(new j0).buildKeyframes(n,a,e,t,r,l,d,s,o,c)}class j0{buildKeyframes(a,e,t,r,l,d,s,o,c,u=[]){c=c||new np;const h=new rp(a,e,c,r,l,u,[]);h.options=o,h.currentTimeline.setStyles([d],null,h.errors,o),Or(this,t,h);const f=h.timelines.filter(b=>b.containsAnimation());if(Object.keys(s).length){let b;for(let V=f.length-1;V>=0;V--){const ee=f[V];if(ee.element===e){b=ee;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([s],null,h.errors,o)}return f.length?f.map(b=>b.buildKeyframes()):[iu(e,[],[],[],0,0,"",!1)]}visitTrigger(a,e){}visitState(a,e){}visitTransition(a,e){}visitAnimateChild(a,e){const t=e.subInstructions.get(e.element);if(t){const r=e.createSubContext(a.options),l=e.currentTimeline.currentTime,d=this._visitSubInstructions(t,r,r.options);l!=d&&e.transformIntoNewTimeline(d)}e.previousNode=a}visitAnimateRef(a,e){const t=e.createSubContext(a.options);t.transformIntoNewTimeline(),this.visitReference(a.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=a}_visitSubInstructions(a,e,t){let l=e.currentTimeline.currentTime;const d=null!=t.duration?Il(t.duration):null,s=null!=t.delay?Il(t.delay):null;return 0!==d&&a.forEach(o=>{const c=e.appendInstructionToTimeline(o,d,s);l=Math.max(l,c.duration+c.delay)}),l}visitReference(a,e){e.updateOptions(a.options,!0),Or(this,a.animation,e),e.previousNode=a}visitSequence(a,e){const t=e.subContextCount;let r=e;const l=a.options;if(l&&(l.params||l.delay)&&(r=e.createSubContext(l),r.transformIntoNewTimeline(),null!=l.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ru);const d=Il(l.delay);r.delayNextStep(d)}a.steps.length&&(a.steps.forEach(d=>Or(this,d,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>t&&r.transformIntoNewTimeline()),e.previousNode=a}visitGroup(a,e){const t=[];let r=e.currentTimeline.currentTime;const l=a.options&&a.options.delay?Il(a.options.delay):0;a.steps.forEach(d=>{const s=e.createSubContext(a.options);l&&s.delayNextStep(l),Or(this,d,s),r=Math.max(r,s.currentTimeline.currentTime),t.push(s.currentTimeline)}),t.forEach(d=>e.currentTimeline.mergeTimelineCollectedStyles(d)),e.transformIntoNewTimeline(r),e.previousNode=a}_visitTiming(a,e){if(a.dynamic){const t=a.strValue;return Jd(e.params?ep(t,e.params,e.errors):t,e.errors)}return{duration:a.duration,delay:a.delay,easing:a.easing}}visitAnimate(a,e){const t=e.currentAnimateTimings=this._visitTiming(a.timings,e),r=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),r.snapshotCurrentStyles());const l=a.style;5==l.type?this.visitKeyframes(l,e):(e.incrementTime(t.duration),this.visitStyle(l,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=a}visitStyle(a,e){const t=e.currentTimeline,r=e.currentAnimateTimings;!r&&t.getCurrentStyleProperties().length&&t.forwardFrame();const l=r&&r.easing||a.easing;a.isEmptyStep?t.applyEmptyStep(l):t.setStyles(a.styles,l,e.errors,e.options),e.previousNode=a}visitKeyframes(a,e){const t=e.currentAnimateTimings,r=e.currentTimeline.duration,l=t.duration,s=e.createSubContext().currentTimeline;s.easing=t.easing,a.styles.forEach(o=>{s.forwardTime((o.offset||0)*l),s.setStyles(o.styles,o.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+l),e.previousNode=a}visitQuery(a,e){const t=e.currentTimeline.currentTime,r=a.options||{},l=r.delay?Il(r.delay):0;l&&(6===e.previousNode.type||0==t&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ru);let d=t;const s=e.invokeQuery(a.selector,a.originalSelector,a.limit,a.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let o=null;s.forEach((c,u)=>{e.currentQueryIndex=u;const h=e.createSubContext(a.options,c);l&&h.delayNextStep(l),c===e.element&&(o=h.currentTimeline),Or(this,a.animation,h),h.currentTimeline.applyStylesToKeyframe(),d=Math.max(d,h.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(d),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=a}visitStagger(a,e){const t=e.parentContext,r=e.currentTimeline,l=a.timings,d=Math.abs(l.duration),s=d*(e.currentQueryTotal-1);let o=d*e.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":o=s-o;break;case"full":o=t.currentStaggerTime}const u=e.currentTimeline;o&&u.delayNextStep(o);const h=u.currentTime;Or(this,a.animation,e),e.previousNode=a,t.currentStaggerTime=r.currentTime-h+(r.startTime-t.currentTimeline.startTime)}}const ru={};class rp{constructor(a,e,t,r,l,d,s,o){this._driver=a,this.element=e,this.subInstructions=t,this._enterClassName=r,this._leaveClassName=l,this.errors=d,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new Jc(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(a,e){if(!a)return;const t=a;let r=this.options;null!=t.duration&&(r.duration=Il(t.duration)),null!=t.delay&&(r.delay=Il(t.delay));const l=t.params;if(l){let d=r.params;d||(d=this.options.params={}),Object.keys(l).forEach(s=>{(!e||!d.hasOwnProperty(s))&&(d[s]=ep(l[s],d,this.errors))})}}_copyOptions(){const a={};if(this.options){const e=this.options.params;if(e){const t=a.params={};Object.keys(e).forEach(r=>{t[r]=e[r]})}}return a}createSubContext(a=null,e,t){const r=e||this.element,l=new rp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,t||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(a),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(a){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,a),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(a,e,t){const r={duration:null!=e?e:a.duration,delay:this.currentTimeline.currentTime+(null!=t?t:0)+a.delay,easing:""},l=new f_(this._driver,a.element,a.keyframes,a.preStyleProps,a.postStyleProps,r,a.stretchStartingKeyframe);return this.timelines.push(l),r}incrementTime(a){this.currentTimeline.forwardTime(this.currentTimeline.duration+a)}delayNextStep(a){a>0&&this.currentTimeline.delayNextStep(a)}invokeQuery(a,e,t,r,l,d){let s=[];if(r&&s.push(this.element),a.length>0){a=(a=a.replace(p_,"."+this._enterClassName)).replace(NM,"."+this._leaveClassName);let c=this._driver.query(this.element,a,1!=t);0!==t&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),s.push(...c)}return!l&&0==s.length&&d.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class Jc{constructor(a,e,t,r){this._driver=a,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(a){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+a),e&&this.snapshotCurrentStyles()):this.startTime+=a}fork(a,e){return this.applyStylesToKeyframe(),new Jc(this._driver,a,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(a){this.applyStylesToKeyframe(),this.duration=a,this._loadKeyframe()}_updateStyle(a,e){this._localTimelineStyles[a]=e,this._globalTimelineStyles[a]=e,this._styleSummary[a]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(a){a&&(this._previousKeyframe.easing=a),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||js,this._currentKeyframe[e]=js}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(a,e,t,r){e&&(this._previousKeyframe.easing=e);const l=r&&r.params||{},d=function Y0(n,a){const e={};let t;return n.forEach(r=>{"*"===r?(t=t||Object.keys(a),t.forEach(l=>{e[l]=js})):Io(r,!1,e)}),e}(a,this._globalTimelineStyles);Object.keys(d).forEach(s=>{const o=ep(d[s],l,t);this._pendingStyles[s]=o,this._localTimelineStyles.hasOwnProperty(s)||(this._backFill[s]=this._globalTimelineStyles.hasOwnProperty(s)?this._globalTimelineStyles[s]:js),this._updateStyle(s,o)})}applyStylesToKeyframe(){const a=this._pendingStyles,e=Object.keys(a);0!=e.length&&(this._pendingStyles={},e.forEach(t=>{this._currentKeyframe[t]=a[t]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(a=>{const e=this._localTimelineStyles[a];this._pendingStyles[a]=e,this._updateStyle(a,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const a=[];for(let e in this._currentKeyframe)a.push(e);return a}mergeTimelineCollectedStyles(a){Object.keys(a._styleSummary).forEach(e=>{const t=this._styleSummary[e],r=a._styleSummary[e];(!t||r.time>t.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const a=new Set,e=new Set,t=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,o)=>{const c=Io(s,!0);Object.keys(c).forEach(u=>{const h=c[u];"!"==h?a.add(u):h==js&&e.add(u)}),t||(c.offset=o/this.duration),r.push(c)});const l=a.size?Kd(a.values()):[],d=e.size?Kd(e.values()):[];if(t){const s=r[0],o=Bl(s);s.offset=0,o.offset=1,r=[s,o]}return iu(this.element,r,l,d,this.duration,this.startTime,this.easing,!1)}}class f_ extends Jc{constructor(a,e,t,r,l,d,s=!1){super(a,e,d.delay),this.keyframes=t,this.preStyleProps=r,this.postStyleProps=l,this._stretchStartingKeyframe=s,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let a=this.keyframes,{delay:e,duration:t,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const l=[],d=t+e,s=e/d,o=Io(a[0],!1);o.offset=0,l.push(o);const c=Io(a[0],!1);c.offset=q0(s),l.push(c);const u=a.length-1;for(let h=1;h<=u;h++){let f=Io(a[h],!1);f.offset=q0((e+f.offset*t)/d),l.push(f)}t=d,e=0,r="",a=l}return iu(this.element,a,this.preStyleProps,this.postStyleProps,t,e,r,!0)}}function q0(n,a=3){const e=Math.pow(10,a-1);return Math.round(n*e)/e}class W0{}class g_ extends W0{normalizePropertyName(a,e){return P0(a)}normalizeStyleValue(a,e,t,r){let l="";const d=t.toString().trim();if(U0[e]&&0!==t&&"0"!==t)if("number"==typeof t)l="px";else{const s=t.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push(`Please provide a CSS unit value for ${a}:${t}`)}return d+l}}const U0=(()=>function __(n){const a={};return n.forEach(e=>a[e]=!0),a}("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".split(",")))();function b_(n,a,e,t,r,l,d,s,o,c,u,h,f){return{type:0,element:n,triggerName:a,isRemovalTransition:r,fromState:e,fromStyles:l,toState:t,toStyles:d,timelines:s,queriedElements:o,preStyleProps:c,postStyleProps:u,totalTime:h,errors:f}}const ap={};class G0{constructor(a,e,t){this._triggerName=a,this.ast=e,this._stateStyles=t}match(a,e,t,r){return function Z0(n,a,e,t,r){return n.some(l=>l(a,e,t,r))}(this.ast.matchers,a,e,t,r)}buildStyles(a,e,t){const r=this._stateStyles["*"],l=this._stateStyles[a],d=r?r.buildStyles(e,t):{};return l?l.buildStyles(e,t):d}build(a,e,t,r,l,d,s,o,c,u){const h=[],f=this.ast.options&&this.ast.options.params||ap,V=this.buildStyles(t,s&&s.params||ap,h),ee=o&&o.params||ap,he=this.buildStyles(r,ee,h),Oe=new Set,gt=new Map,ut=new Map,Kt="void"===r,Ra={params:Object.assign(Object.assign({},f),ee)},ms=u?[]:nu(a,e,this.ast.animation,l,d,V,he,Ra,c,h);let Vr=0;if(ms.forEach(ac=>{Vr=Math.max(ac.duration+ac.delay,Vr)}),h.length)return b_(e,this._triggerName,t,r,Kt,V,he,[],[],gt,ut,Vr,h);ms.forEach(ac=>{const sc=ac.element,yD=lr(gt,sc,{});ac.preStyleProps.forEach(qu=>yD[qu]=!0);const O1=lr(ut,sc,{});ac.postStyleProps.forEach(qu=>O1[qu]=!0),sc!==e&&Oe.add(sc)});const rc=Kd(Oe.values());return b_(e,this._triggerName,t,r,Kt,V,he,ms,rc,gt,ut,Vr)}}class sp{constructor(a,e,t){this.styles=a,this.defaultParams=e,this.normalizer=t}buildStyles(a,e){const t={},r=Bl(this.defaultParams);return Object.keys(a).forEach(l=>{const d=a[l];null!=d&&(r[l]=d)}),this.styles.styles.forEach(l=>{if("string"!=typeof l){const d=l;Object.keys(d).forEach(s=>{let o=d[s];o.length>1&&(o=ep(o,r,e));const c=this.normalizer.normalizePropertyName(s,e);o=this.normalizer.normalizeStyleValue(s,c,o,e),t[c]=o})}}),t}}class A_{constructor(a,e,t){this.name=a,this.ast=e,this._normalizer=t,this.transitionFactories=[],this.states={},e.states.forEach(r=>{this.states[r.name]=new sp(r.style,r.options&&r.options.params||{},t)}),Q0(this.states,"true","1"),Q0(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new G0(a,r,this.states))}),this.fallbackTransition=function y_(n,a,e){return new G0(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(d,s)=>!0],options:null,queryCount:0,depCount:0},a)}(a,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(a,e,t,r){return this.transitionFactories.find(d=>d.match(a,e,t,r))||null}matchStyles(a,e,t){return this.fallbackTransition.buildStyles(a,e,t)}}function Q0(n,a,e){n.hasOwnProperty(a)?n.hasOwnProperty(e)||(n[e]=n[a]):n.hasOwnProperty(e)&&(n[a]=n[e])}const M_=new np;class w_{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}register(a,e){const t=[],r=O0(this._driver,e,t);if(t.length)throw new Error(`Unable to build the animation due to the following errors: ${t.join("\n")}`);this._animations[a]=r}_buildPlayer(a,e,t){const r=a.element,l=In(0,this._normalizer,0,a.keyframes,e,t);return this._driver.animate(r,l,a.duration,a.delay,a.easing,[],!0)}create(a,e,t={}){const r=[],l=this._animations[a];let d;const s=new Map;if(l?(d=nu(this._driver,e,l,Qh,Jh,{},{},t,M_,r),d.forEach(u=>{const h=lr(s,u.element,{});u.postStyleProps.forEach(f=>h[f]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),d=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);s.forEach((u,h)=>{Object.keys(u).forEach(f=>{u[f]=this._driver.computeStyle(h,f,js)})});const c=Xr(d.map(u=>{const h=s.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[a]=c,c.onDestroy(()=>this.destroy(a)),this.players.push(c),c}destroy(a){const e=this._getPlayer(a);e.destroy(),delete this._playersById[a];const t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(a){const e=this._playersById[a];if(!e)throw new Error(`Unable to find the timeline player referenced by ${a}`);return e}listen(a,e,t,r){const l=wr(e,"","","");return Ys(this._getPlayer(a),t,l,r),()=>{}}command(a,e,t,r){if("register"==t)return void this.register(a,r[0]);if("create"==t)return void this.create(a,e,r[0]||{});const l=this._getPlayer(a);switch(t){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(a)}}}const J0="ng-animate-queued",v_="ng-animate-disabled",jM=[],fn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},x_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ta="__ng_removed";class X0{constructor(a,e=""){this.namespaceId=e;const t=a&&a.hasOwnProperty("value");if(this.value=function YM(n){return null!=n?n:null}(t?a.value:a),t){const l=Bl(a);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(a){const e=a.params;if(e){const t=this.options.params;Object.keys(e).forEach(r=>{null==t[r]&&(t[r]=e[r])})}}}const Xc="void",K0=new X0(Xc);class S_{constructor(a,e,t){this.id=a,this.hostElement=e,this._engine=t,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+a,Cr(e,this._hostClassName)}listen(a,e,t,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${t}" because the animation trigger "${e}" doesn't exist!`);if(null==t||0==t.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if(!function WM(n){return"start"==n||"done"==n}(t))throw new Error(`The provided animation trigger event "${t}" for the animation trigger "${e}" is not supported!`);const l=lr(this._elementListeners,a,[]),d={name:e,phase:t,callback:r};l.push(d);const s=lr(this._engine.statesByElement,a,{});return s.hasOwnProperty(e)||(Cr(a,Qd),Cr(a,Qd+"-"+e),s[e]=K0),()=>{this._engine.afterFlush(()=>{const o=l.indexOf(d);o>=0&&l.splice(o,1),this._triggers[e]||delete s[e]})}}register(a,e){return!this._triggers[a]&&(this._triggers[a]=e,!0)}_getTrigger(a){const e=this._triggers[a];if(!e)throw new Error(`The provided animation trigger "${a}" has not been registered!`);return e}trigger(a,e,t,r=!0){const l=this._getTrigger(e),d=new No(this.id,e,a);let s=this._engine.statesByElement.get(a);s||(Cr(a,Qd),Cr(a,Qd+"-"+e),this._engine.statesByElement.set(a,s={}));let o=s[e];const c=new X0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&o&&c.absorbOptions(o.options),s[e]=c,o||(o=K0),c.value!==Xc&&o.value===c.value){if(!function La(n,a){const e=Object.keys(n),t=Object.keys(a);if(e.length!=t.length)return!1;for(let r=0;r{Ws(a,he),ea(a,Oe)})}return}const f=lr(this._engine.playersByElement,a,[]);f.forEach(ee=>{ee.namespaceId==this.id&&ee.triggerName==e&&ee.queued&&ee.destroy()});let b=l.matchTransition(o.value,c.value,a,c.params),V=!1;if(!b){if(!r)return;b=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:e,transition:b,fromState:o,toState:c,player:d,isFallbackTransition:V}),V||(Cr(a,J0),d.onStart(()=>{cr(a,J0)})),d.onDone(()=>{let ee=this.players.indexOf(d);ee>=0&&this.players.splice(ee,1);const he=this._engine.playersByElement.get(a);if(he){let Oe=he.indexOf(d);Oe>=0&&he.splice(Oe,1)}}),this.players.push(d),f.push(d),d}deregister(a){delete this._triggers[a],this._engine.statesByElement.forEach((e,t)=>{delete e[a]}),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(r=>r.name!=a))})}clearElementCache(a){this._engine.statesByElement.delete(a),this._elementListeners.delete(a);const e=this._engine.playersByElement.get(a);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(a))}_signalRemovalForInnerTriggers(a,e){const t=this._engine.driver.query(a,Xh,!0);t.forEach(r=>{if(r[ta])return;const l=this._engine.fetchNamespacesByElement(r);l.size?l.forEach(d=>d.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(a,e,t,r){const l=this._engine.statesByElement.get(a),d=new Map;if(l){const s=[];if(Object.keys(l).forEach(o=>{if(d.set(o,l[o].value),this._triggers[o]){const c=this.trigger(a,o,Xc,r);c&&s.push(c)}}),s.length)return this._engine.markElementAsRemoved(this.id,a,!0,e,d),t&&Xr(s).onDone(()=>this._engine.processLeaveNode(a)),!0}return!1}prepareLeaveAnimationListeners(a){const e=this._elementListeners.get(a),t=this._engine.statesByElement.get(a);if(e&&t){const r=new Set;e.forEach(l=>{const d=l.name;if(r.has(d))return;r.add(d);const o=this._triggers[d].fallbackTransition,c=t[d]||K0,u=new X0(Xc),h=new No(this.id,d,a);this._engine.totalQueuedPlayers++,this._queue.push({element:a,triggerName:d,transition:o,fromState:c,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(a,e){const t=this._engine;if(a.childElementCount&&this._signalRemovalForInnerTriggers(a,e),this.triggerLeaveAnimation(a,e,!0))return;let r=!1;if(t.totalAnimations){const l=t.players.length?t.playersByQueriedElement.get(a):[];if(l&&l.length)r=!0;else{let d=a;for(;d=d.parentNode;)if(t.statesByElement.get(d)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(a),r)t.markElementAsRemoved(this.id,a,!1,e);else{const l=a[ta];(!l||l===fn)&&(t.afterFlush(()=>this.clearElementCache(a)),t.destroyInnerAnimations(a),t._onRemovalComplete(a,e))}}insertNode(a,e){Cr(a,this._hostClassName)}drainQueuedTransitions(a){const e=[];return this._queue.forEach(t=>{const r=t.player;if(r.destroyed)return;const l=t.element,d=this._elementListeners.get(l);d&&d.forEach(s=>{if(s.name==t.triggerName){const o=wr(l,t.triggerName,t.fromState.value,t.toState.value);o._data=a,Ys(t.player,s.phase,o,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(t)}),this._queue=[],e.sort((t,r)=>{const l=t.transition.ast.depCount,d=r.transition.ast.depCount;return 0==l||0==d?l-d:this._engine.driver.containsElement(t.element,r.element)?1:-1})}destroy(a){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,a)}elementContainsData(a){let e=!1;return this._elementListeners.has(a)&&(e=!0),e=!!this._queue.find(t=>t.element===a)||e,e}}class E_{constructor(a,e,t){this.bodyNode=a,this.driver=e,this._normalizer=t,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=(r,l)=>{}}_onRemovalComplete(a,e){this.onRemovalComplete(a,e)}get queuedPlayers(){const a=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&a.push(t)})}),a}createNamespace(a,e){const t=new S_(a,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[a]=t}_balanceNamespaceList(a,e){const t=this._namespaceList.length-1;if(t>=0){let r=!1;for(let l=t;l>=0;l--)if(this.driver.containsElement(this._namespaceList[l].hostElement,e)){this._namespaceList.splice(l+1,0,a),r=!0;break}r||this._namespaceList.splice(0,0,a)}else this._namespaceList.push(a);return this.namespacesByHostElement.set(e,a),a}register(a,e){let t=this._namespaceLookup[a];return t||(t=this.createNamespace(a,e)),t}registerTrigger(a,e,t){let r=this._namespaceLookup[a];r&&r.register(e,t)&&this.totalAnimations++}destroy(a,e){if(!a)return;const t=this._fetchNamespace(a);this.afterFlush(()=>{this.namespacesByHostElement.delete(t.hostElement),delete this._namespaceLookup[a];const r=this._namespaceList.indexOf(t);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>t.destroy(e))}_fetchNamespace(a){return this._namespaceLookup[a]}fetchNamespacesByElement(a){const e=new Set,t=this.statesByElement.get(a);if(t){const r=Object.keys(t);for(let l=0;l=0&&this.collectedLeaveElements.splice(d,1)}if(a){const d=this._fetchNamespace(a);d&&d.insertNode(e,t)}r&&this.collectEnterElement(e)}collectEnterElement(a){this.collectedEnterElements.push(a)}markElementAsDisabled(a,e){e?this.disabledNodes.has(a)||(this.disabledNodes.add(a),Cr(a,v_)):this.disabledNodes.has(a)&&(this.disabledNodes.delete(a),cr(a,v_))}removeNode(a,e,t,r){if(au(e)){const l=a?this._fetchNamespace(a):null;if(l?l.removeNode(e,r):this.markElementAsRemoved(a,e,!1,r),t){const d=this.namespacesByHostElement.get(e);d&&d.id!==a&&d.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(a,e,t,r,l){this.collectedLeaveElements.push(e),e[ta]={namespaceId:a,setForRemoval:r,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:l}}listen(a,e,t,r,l){return au(e)?this._fetchNamespace(a).listen(e,t,r,l):()=>{}}_buildInstruction(a,e,t,r,l){return a.transition.build(this.driver,a.element,a.fromState.value,a.toState.value,t,r,a.fromState.options,a.toState.options,e,l)}destroyInnerAnimations(a){let e=this.driver.query(a,Xh,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(a,Kh,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(a){const e=this.playersByElement.get(a);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(a){const e=this.playersByQueriedElement.get(a);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(a=>{if(this.players.length)return Xr(this.players).onDone(()=>a());a()})}processLeaveNode(a){var e;const t=a[ta];if(t&&t.setForRemoval){if(a[ta]=fn,t.namespaceId){this.destroyInnerAnimations(a);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(a)}this._onRemovalComplete(a,t.setForRemoval)}(null===(e=a.classList)||void 0===e?void 0:e.contains(v_))&&this.markElementAsDisabled(a,!1),this.driver.query(a,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(a=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,r)=>this._balanceNamespaceList(t,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Xr(e).onDone(()=>{t.forEach(r=>r())}):t.forEach(r=>r())}}reportError(a){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${a.join("\n")}`)}_flushAnimations(a,e){const t=new np,r=[],l=new Map,d=[],s=new Map,o=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(at=>{u.add(at);const _t=this.driver.query(at,".ng-animate-queued",!0);for(let vt=0;vt<_t.length;vt++)u.add(_t[vt])});const h=this.bodyNode,f=Array.from(this.statesByElement.keys()),b=op(f,this.collectedEnterElements),V=new Map;let ee=0;b.forEach((at,_t)=>{const vt=Qh+ee++;V.set(_t,vt),at.forEach(ci=>Cr(ci,vt))});const he=[],Oe=new Set,gt=new Set;for(let at=0;atOe.add(ci)):gt.add(_t))}const ut=new Map,Kt=op(f,Array.from(Oe));Kt.forEach((at,_t)=>{const vt=Jh+ee++;ut.set(_t,vt),at.forEach(ci=>Cr(ci,vt))}),a.push(()=>{b.forEach((at,_t)=>{const vt=V.get(_t);at.forEach(ci=>cr(ci,vt))}),Kt.forEach((at,_t)=>{const vt=ut.get(_t);at.forEach(ci=>cr(ci,vt))}),he.forEach(at=>{this.processLeaveNode(at)})});const Ra=[],ms=[];for(let at=this._namespaceList.length-1;at>=0;at--)this._namespaceList[at].drainQueuedTransitions(e).forEach(vt=>{const ci=vt.player,Jn=vt.element;if(Ra.push(ci),this.collectedEnterElements.length){const zr=Jn[ta];if(zr&&zr.setForMove){if(zr.previousTriggersValues&&zr.previousTriggersValues.has(vt.triggerName)){const Yu=zr.previousTriggersValues.get(vt.triggerName),yd=this.statesByElement.get(vt.element);yd&&yd[vt.triggerName]&&(yd[vt.triggerName].value=Yu)}return void ci.destroy()}}const Zo=!h||!this.driver.containsElement(h,Jn),Oa=ut.get(Jn),Ad=V.get(Jn),sn=this._buildInstruction(vt,t,Ad,Oa,Zo);if(sn.errors&&sn.errors.length)return void ms.push(sn);if(Zo)return ci.onStart(()=>Ws(Jn,sn.fromStyles)),ci.onDestroy(()=>ea(Jn,sn.toStyles)),void r.push(ci);if(vt.isFallbackTransition)return ci.onStart(()=>Ws(Jn,sn.fromStyles)),ci.onDestroy(()=>ea(Jn,sn.toStyles)),void r.push(ci);const CD=[];sn.timelines.forEach(zr=>{zr.stretchStartingKeyframe=!0,this.disabledNodes.has(zr.element)||CD.push(zr)}),sn.timelines=CD,t.append(Jn,sn.timelines),d.push({instruction:sn,player:ci,element:Jn}),sn.queriedElements.forEach(zr=>lr(s,zr,[]).push(ci)),sn.preStyleProps.forEach((zr,Yu)=>{const yd=Object.keys(zr);if(yd.length){let Wu=o.get(Yu);Wu||o.set(Yu,Wu=new Set),yd.forEach(Bv=>Wu.add(Bv))}}),sn.postStyleProps.forEach((zr,Yu)=>{const yd=Object.keys(zr);let Wu=c.get(Yu);Wu||c.set(Yu,Wu=new Set),yd.forEach(Bv=>Wu.add(Bv))})});if(ms.length){const at=[];ms.forEach(_t=>{at.push(`@${_t.triggerName} has failed due to:\n`),_t.errors.forEach(vt=>at.push(`- ${vt}\n`))}),Ra.forEach(_t=>_t.destroy()),this.reportError(at)}const Vr=new Map,rc=new Map;d.forEach(at=>{const _t=at.element;t.has(_t)&&(rc.set(_t,_t),this._beforeAnimationBuild(at.player.namespaceId,at.instruction,Vr))}),r.forEach(at=>{const _t=at.element;this._getPreviousPlayers(_t,!1,at.namespaceId,at.triggerName,null).forEach(ci=>{lr(Vr,_t,[]).push(ci),ci.destroy()})});const ac=he.filter(at=>ia(at,o,c)),sc=new Map;UM(sc,this.driver,gt,c,js).forEach(at=>{ia(at,o,c)&&ac.push(at)});const O1=new Map;b.forEach((at,_t)=>{UM(O1,this.driver,new Set(at),o,"!")}),ac.forEach(at=>{const _t=sc.get(at),vt=O1.get(at);sc.set(at,Object.assign(Object.assign({},_t),vt))});const qu=[],MD=[],wD={};d.forEach(at=>{const{element:_t,player:vt,instruction:ci}=at;if(t.has(_t)){if(u.has(_t))return vt.onDestroy(()=>ea(_t,ci.toStyles)),vt.disabled=!0,vt.overrideTotalTime(ci.totalTime),void r.push(vt);let Jn=wD;if(rc.size>1){let Oa=_t;const Ad=[];for(;Oa=Oa.parentNode;){const sn=rc.get(Oa);if(sn){Jn=sn;break}Ad.push(Oa)}Ad.forEach(sn=>rc.set(sn,Jn))}const Zo=this._buildAnimation(vt.namespaceId,ci,Vr,l,O1,sc);if(vt.setRealPlayer(Zo),Jn===wD)qu.push(vt);else{const Oa=this.playersByElement.get(Jn);Oa&&Oa.length&&(vt.parentPlayer=Xr(Oa)),r.push(vt)}}else Ws(_t,ci.fromStyles),vt.onDestroy(()=>ea(_t,ci.toStyles)),MD.push(vt),u.has(_t)&&r.push(vt)}),MD.forEach(at=>{const _t=l.get(at.element);if(_t&&_t.length){const vt=Xr(_t);at.setRealPlayer(vt)}}),r.forEach(at=>{at.parentPlayer?at.syncPlayerEvents(at.parentPlayer):at.destroy()});for(let at=0;at!Zo.destroyed);Jn.length?GM(this,_t,Jn):this.processLeaveNode(_t)}return he.length=0,qu.forEach(at=>{this.players.push(at),at.onDone(()=>{at.destroy();const _t=this.players.indexOf(at);this.players.splice(_t,1)}),at.play()}),qu}elementContainsData(a,e){let t=!1;const r=e[ta];return r&&r.setForRemoval&&(t=!0),this.playersByElement.has(e)&&(t=!0),this.playersByQueriedElement.has(e)&&(t=!0),this.statesByElement.has(e)&&(t=!0),this._fetchNamespace(a).elementContainsData(e)||t}afterFlush(a){this._flushFns.push(a)}afterFlushAnimationsDone(a){this._whenQuietFns.push(a)}_getPreviousPlayers(a,e,t,r,l){let d=[];if(e){const s=this.playersByQueriedElement.get(a);s&&(d=s)}else{const s=this.playersByElement.get(a);if(s){const o=!l||l==Xc;s.forEach(c=>{c.queued||!o&&c.triggerName!=r||d.push(c)})}}return(t||r)&&(d=d.filter(s=>!(t&&t!=s.namespaceId||r&&r!=s.triggerName))),d}_beforeAnimationBuild(a,e,t){const l=e.element,d=e.isRemovalTransition?void 0:a,s=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const c=o.element,u=c!==l,h=lr(t,c,[]);this._getPreviousPlayers(c,u,d,s,e.toState).forEach(b=>{const V=b.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),b.destroy(),h.push(b)})}Ws(l,e.fromStyles)}_buildAnimation(a,e,t,r,l,d){const s=e.triggerName,o=e.element,c=[],u=new Set,h=new Set,f=e.timelines.map(V=>{const ee=V.element;u.add(ee);const he=ee[ta];if(he&&he.removedBeforeQueried)return new qs(V.duration,V.delay);const Oe=ee!==o,gt=function D_(n){const a=[];return Ha(n,a),a}((t.get(ee)||jM).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===ee),ut=l.get(ee),Kt=d.get(ee),Ra=In(0,this._normalizer,0,V.keyframes,ut,Kt),ms=this._buildPlayer(V,Ra,gt);if(V.subTimeline&&r&&h.add(ee),Oe){const Vr=new No(a,s,ee);Vr.setRealPlayer(ms),c.push(Vr)}return ms});c.forEach(V=>{lr(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function qM(n,a,e){let t;if(n instanceof Map){if(t=n.get(a),t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&n.delete(a)}}else if(t=n[a],t){if(t.length){const r=t.indexOf(e);t.splice(r,1)}0==t.length&&delete n[a]}return t}(this.playersByQueriedElement,V.element,V))}),u.forEach(V=>Cr(V,L0));const b=Xr(f);return b.onDestroy(()=>{u.forEach(V=>cr(V,L0)),ea(o,e.toStyles)}),h.forEach(V=>{lr(r,V,[]).push(b)}),b}_buildPlayer(a,e,t){return e.length>0?this.driver.animate(a.element,e,a.duration,a.delay,a.easing,t):new qs(a.duration,a.delay)}}class No{constructor(a,e,t){this.namespaceId=a,this.triggerName=e,this.element=t,this._player=new qs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(a){this._containsRealPlayer||(this._player=a,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(t=>Ys(a,e,void 0,t))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(a.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(a){this.totalTime=a}syncPlayerEvents(a){const e=this._player;e.triggerCallback&&a.onStart(()=>e.triggerCallback("start")),a.onDone(()=>this.finish()),a.onDestroy(()=>this.destroy())}_queueEvent(a,e){lr(this._queuedCallbacks,a,[]).push(e)}onDone(a){this.queued&&this._queueEvent("done",a),this._player.onDone(a)}onStart(a){this.queued&&this._queueEvent("start",a),this._player.onStart(a)}onDestroy(a){this.queued&&this._queueEvent("destroy",a),this._player.onDestroy(a)}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(a){this.queued||this._player.setPosition(a)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(a){const e=this._player;e.triggerCallback&&e.triggerCallback(a)}}function au(n){return n&&1===n.nodeType}function em(n,a){const e=n.style.display;return n.style.display=null!=a?a:"none",e}function UM(n,a,e,t,r){const l=[];e.forEach(o=>l.push(em(o)));const d=[];t.forEach((o,c)=>{const u={};o.forEach(h=>{const f=u[h]=a.computeStyle(c,h,r);(!f||0==f.length)&&(c[ta]=x_,d.push(c))}),n.set(c,u)});let s=0;return e.forEach(o=>em(o,l[s++])),d}function op(n,a){const e=new Map;if(n.forEach(s=>e.set(s,[])),0==a.length)return e;const r=new Set(a),l=new Map;function d(s){if(!s)return 1;let o=l.get(s);if(o)return o;const c=s.parentNode;return o=e.has(c)?c:r.has(c)?1:d(c),l.set(s,o),o}return a.forEach(s=>{const o=d(s);1!==o&&e.get(o).push(s)}),e}function Cr(n,a){var e;null===(e=n.classList)||void 0===e||e.add(a)}function cr(n,a){var e;null===(e=n.classList)||void 0===e||e.remove(a)}function GM(n,a,e){Xr(e).onDone(()=>n.processLeaveNode(a))}function Ha(n,a){for(let e=0;er.add(l)):a.set(n,t),e.delete(n),!0}class su{constructor(a,e,t){this.bodyNode=a,this._driver=e,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(r,l)=>{},this._transitionEngine=new E_(a,e,t),this._timelineEngine=new w_(a,e,t),this._transitionEngine.onRemovalComplete=(r,l)=>this.onRemovalComplete(r,l)}registerTrigger(a,e,t,r,l){const d=a+"-"+r;let s=this._triggerCache[d];if(!s){const o=[],c=O0(this._driver,l,o);if(o.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${o.join("\n - ")}`);s=function $0(n,a,e){return new A_(n,a,e)}(r,c,this._normalizer),this._triggerCache[d]=s}this._transitionEngine.registerTrigger(e,r,s)}register(a,e){this._transitionEngine.register(a,e)}destroy(a,e){this._transitionEngine.destroy(a,e)}onInsert(a,e,t,r){this._transitionEngine.insertNode(a,e,t,r)}onRemove(a,e,t,r){this._transitionEngine.removeNode(a,e,r||!1,t)}disableAnimations(a,e){this._transitionEngine.markElementAsDisabled(a,e)}process(a,e,t,r){if("@"==t.charAt(0)){const[l,d]=kl(t);this._timelineEngine.command(l,e,d,r)}else this._transitionEngine.trigger(a,e,t,r)}listen(a,e,t,r,l){if("@"==t.charAt(0)){const[d,s]=kl(t);return this._timelineEngine.listen(d,e,s,l)}return this._transitionEngine.listen(a,e,t,r,l)}flush(a=-1){this._transitionEngine.flush(a)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ZM=(()=>{class n{constructor(e,t,r){this._element=e,this._startStyles=t,this._endStyles=r,this._state=0;let l=n.initialStylesByElement.get(e);l||n.initialStylesByElement.set(e,l={}),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&ea(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ea(this._element,this._initialStyles),this._endStyles&&(ea(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ws(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ws(this._element,this._endStyles),this._endStyles=null),ea(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function tm(n){let a=null;const e=Object.keys(n);for(let t=0;ta()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const a=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,a,this.options),this._finalKeyframe=a.length?a[a.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(a,e,t){return a.animate(e,t)}onStart(a){this._onStartFns.push(a)}onDone(a){this._onDoneFns.push(a)}onDestroy(a){this._onDestroyFns.push(a)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(a=>a()),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}_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(a=>a()),this._onDestroyFns=[])}setPosition(a){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=a*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const a={};if(this.hasStarted()){const e=this._finalKeyframe;Object.keys(e).forEach(t=>{"offset"!=t&&(a[t]=this._finished?e[t]:R0(this.element,t))})}this.currentSnapshot=a}triggerCallback(a){const e="start"==a?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class im{validateStyleProperty(a){return Ol(a)}matchesElement(a,e){return!1}containsElement(a,e){return Zh(a,e)}query(a,e,t){return E0(a,e,t)}computeStyle(a,e,t){return window.getComputedStyle(a)[e]}animate(a,e,t,r,l,d=[]){const o={duration:t,delay:r,fill:0==r?"both":"forwards"};l&&(o.easing=l);const c={},u=d.filter(f=>f instanceof L_);(function RM(n,a){return 0===n||0===a})(t,r)&&u.forEach(f=>{let b=f.currentSnapshot;Object.keys(b).forEach(V=>c[V]=b[V])}),e=function o_(n,a,e){const t=Object.keys(e);if(t.length&&a.length){let l=a[0],d=[];if(t.forEach(s=>{l.hasOwnProperty(s)||d.push(s),l[s]=e[s]}),d.length)for(var r=1;rIo(f,!1)),c);const h=function H_(n,a){let e=null,t=null;return Array.isArray(a)&&a.length?(e=tm(a[0]),a.length>1&&(t=tm(a[a.length-1]))):a&&(e=tm(a)),e||t?new ZM(n,e,t):null}(a,e);return new L_(a,e,o,h)}}let ou=(()=>{class n extends T0{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:i.ifc.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?Xg(e):e;return P_(this._renderer,null,t,"register",[r]),new QM(t,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class QM extends class Jg{}{constructor(a,e){super(),this._id=a,this._renderer=e}create(a,e){return new k_(this._id,a,e||{},this._renderer)}}class k_{constructor(a,e,t,r){this.id=a,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",t)}_listen(a,e){return this._renderer.listen(this.element,`@@${this.id}:${a}`,e)}_command(a,...e){return P_(this._renderer,this.element,this.id,a,e)}onDone(a){this._listen("done",a)}onStart(a){this._listen("start",a)}onDestroy(a){this._listen("destroy",a)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(a){this._command("setPosition",a)}getPosition(){var a,e;return null!==(e=null===(a=this._renderer.engine.players[+this.id])||void 0===a?void 0:a.getPosition())&&void 0!==e?e:0}}function P_(n,a,e,t,r){return n.setProperty(a,`@@${e}:${t}`,r)}const nm="@.disabled";let lp=(()=>{class n{constructor(e,t,r){this.delegate=e,this.engine=t,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(l,d)=>{const s=null==d?void 0:d.parentNode(l);s&&d.removeChild(s,l)}}createRenderer(e,t){const l=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let u=this._rendererCache.get(l);return u||(u=new R_("",l,this.engine),this._rendererCache.set(l,u)),u}const d=t.id,s=t.id+"-"+this._currentId;this._currentId++,this.engine.register(s,e);const o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(d,s,e,u.name,u)};return t.data.animation.forEach(o),new O_(this,s,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,r){e>=0&&et(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[d,s]=l;d(s)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,r]))}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()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.FYo),i.LFG(su),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class R_{constructor(a,e,t){this.namespaceId=a,this.delegate=e,this.engine=t,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(a,e){return this.delegate.createElement(a,e)}createComment(a){return this.delegate.createComment(a)}createText(a){return this.delegate.createText(a)}appendChild(a,e){this.delegate.appendChild(a,e),this.engine.onInsert(this.namespaceId,e,a,!1)}insertBefore(a,e,t,r=!0){this.delegate.insertBefore(a,e,t),this.engine.onInsert(this.namespaceId,e,a,r)}removeChild(a,e,t){this.engine.onRemove(this.namespaceId,e,this.delegate,t)}selectRootElement(a,e){return this.delegate.selectRootElement(a,e)}parentNode(a){return this.delegate.parentNode(a)}nextSibling(a){return this.delegate.nextSibling(a)}setAttribute(a,e,t,r){this.delegate.setAttribute(a,e,t,r)}removeAttribute(a,e,t){this.delegate.removeAttribute(a,e,t)}addClass(a,e){this.delegate.addClass(a,e)}removeClass(a,e){this.delegate.removeClass(a,e)}setStyle(a,e,t,r){this.delegate.setStyle(a,e,t,r)}removeStyle(a,e,t){this.delegate.removeStyle(a,e,t)}setProperty(a,e,t){"@"==e.charAt(0)&&e==nm?this.disableAnimations(a,!!t):this.delegate.setProperty(a,e,t)}setValue(a,e){this.delegate.setValue(a,e)}listen(a,e,t){return this.delegate.listen(a,e,t)}disableAnimations(a,e){this.engine.disableAnimations(a,e)}}class O_ extends R_{constructor(a,e,t,r){super(e,t,r),this.factory=a,this.namespaceId=e}setProperty(a,e,t){"@"==e.charAt(0)?"."==e.charAt(1)&&e==nm?this.disableAnimations(a,t=void 0===t||!!t):this.engine.process(this.namespaceId,a,e.substr(1),t):this.delegate.setProperty(a,e,t)}listen(a,e,t){if("@"==e.charAt(0)){const r=function I_(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(a);let l=e.substr(1),d="";return"@"!=l.charAt(0)&&([l,d]=function rm(n){const a=n.indexOf(".");return[n.substring(0,a),n.substr(a+1)]}(l)),this.engine.listen(this.namespaceId,r,l,d,s=>{this.factory.scheduleListenerCallback(s._data||-1,t,s)})}return this.delegate.listen(a,e,t)}}let cp=(()=>{class n extends su{constructor(e,t,r){super(e.body,t,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG($h),i.LFG(W0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const Bn=new i.OlP("AnimationModuleType"),dp=[{provide:T0,useClass:ou},{provide:W0,useFactory:function am(){return new g_}},{provide:su,useClass:cp},{provide:i.FYo,useFactory:function B_(n,a,e){return new lp(n,a,e)},deps:[Pe,su,i.R0b]}],sm=[{provide:$h,useFactory:()=>new im},{provide:Bn,useValue:"BrowserAnimations"},...dp],N_=[{provide:$h,useClass:D0},{provide:Bn,useValue:"NoopAnimations"},...dp];let V_=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?N_:sm}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:sm,imports:[ue]}),n})();function KM(n,a){if(1&n&&i._UZ(0,"mat-pseudo-checkbox",4),2&n){const e=i.oxw();i.Q6J("state",e.selected?"checked":"unchecked")("disabled",e.disabled)}}function ew(n,a){if(1&n&&(i.TgZ(0,"span",5),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij("(",e.group.label,")")}}const tw=["*"];let iw=(()=>{class n{}return n.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",n.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",n.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",n.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",n})(),nw=(()=>{class n{}return n.COMPLEX="375ms",n.ENTERING="225ms",n.EXITING="195ms",n})();const aw=new i.OlP("mat-sanity-checks",{providedIn:"root",factory:function rw(){return!0}});let ct=(()=>{class n{constructor(e,t,r){this._sanityChecks=t,this._document=r,this._hasDoneGlobalChecks=!1,e._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(e){return!Kf()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(DM),i.LFG(aw,8),i.LFG(w.K0))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Tl],Tl]}),n})();function ts(n){return class extends n{constructor(...a){super(...a),this._disabled=!1}get disabled(){return this._disabled}set disabled(a){this._disabled=je(a)}}}function Vo(n,a){return class extends n{constructor(...e){super(...e),this.defaultColor=a,this.color=a}get color(){return this._color}set color(e){const t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}}}function na(n){return class extends n{constructor(...a){super(...a),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(a){this._disableRipple=je(a)}}}function Vl(n,a=0){return class extends n{constructor(...e){super(...e),this._tabIndex=a,this.defaultTabIndex=a}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=null!=e?li(e):this.defaultTabIndex}}}function up(n){return class extends n{constructor(...a){super(...a),this.stateChanges=new He.xQ,this.errorState=!1}updateErrorState(){const a=this.errorState,l=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);l!==a&&(this.errorState=l,this.stateChanges.next())}}}function om(n){return class extends n{constructor(...a){super(...a),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ri.y(e=>{this._isInitialized?this._notifySubscriber(e):this._pendingSubscribers.push(e)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(a){a.next(),a.complete()}}}const F_=new i.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function j_(){return(0,i.f3M)(i.soG)}});class ra{constructor(){this._localeChanges=new He.xQ,this.localeChanges=this._localeChanges}getValidDateOrNull(a){return this.isDateInstance(a)&&this.isValid(a)?a:null}deserialize(a){return null==a||this.isDateInstance(a)&&this.isValid(a)?a:this.invalid()}setLocale(a){this.locale=a,this._localeChanges.next()}compareDate(a,e){return this.getYear(a)-this.getYear(e)||this.getMonth(a)-this.getMonth(e)||this.getDate(a)-this.getDate(e)}sameDate(a,e){if(a&&e){let t=this.isValid(a),r=this.isValid(e);return t&&r?!this.compareDate(a,e):t==r}return a==e}clampDate(a,e,t){return e&&this.compareDate(a,e)<0?e:t&&this.compareDate(a,t)>0?t:a}}const cu=new i.OlP("mat-date-formats"),q_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function hp(n,a){const e=Array(n);for(let t=0;t{class n extends ra{constructor(e,t){super(),this.useUtcForDisplay=!1,super.setLocale(e)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){const t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return hp(12,r=>this._format(t,new Date(2017,r,1)))}getDateNames(){const e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return hp(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){const t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return hp(7,r=>this._format(t,new Date(2017,0,r+1)))}getYearName(e){const t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,r){let l=this._createDateWithOverflow(e,t,r);return l.getMonth(),l}today(){return new Date}parse(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");const r=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},t),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,12*t)}addCalendarMonths(e,t){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+t)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if("string"==typeof e){if(!e)return null;if(q_.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(e,t,r){const l=new Date;return l.setFullYear(e,t,r),l.setHours(0,0,0,0),l}_2digit(e){return("00"+e).slice(-2)}_format(e,t){const r=new Date;return r.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),r.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(r)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(F_,8),i.LFG(Si))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const cm={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let dm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:lm}],imports:[[Oc]]}),n})(),zo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:cu,useValue:cm}],imports:[[dm]]}),n})(),Kc=(()=>{class n{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),zl=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),n})();function Fl(n,a,e){n.nativeElement.classList.toggle(a,e)}let um=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct],ct]}),n})();class Y_{constructor(a,e,t){this._renderer=a,this.element=e,this.config=t,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const hm={enterDuration:225,exitDuration:150},pt=xa({passive:!0}),W_=["mousedown","touchstart"],U_=["mouseup","mouseleave","touchend","touchcancel"];class G_{constructor(a,e,t,r){this._target=a,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=qi(t))}fadeInRipple(a,e,t={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),l=Object.assign(Object.assign({},hm),t.animation);t.centered&&(a=r.left+r.width/2,e=r.top+r.height/2);const d=t.radius||function ow(n,a,e){const t=Math.max(Math.abs(n-e.left),Math.abs(n-e.right)),r=Math.max(Math.abs(a-e.top),Math.abs(a-e.bottom));return Math.sqrt(t*t+r*r)}(a,e,r),s=a-r.left,o=e-r.top,c=l.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-d+"px",u.style.top=o-d+"px",u.style.height=2*d+"px",u.style.width=2*d+"px",null!=t.color&&(u.style.backgroundColor=t.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function pp(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new Y_(this,u,t);return h.state=0,this._activeRipples.add(h),t.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const f=h===this._mostRecentTransientRipple;h.state=1,!t.persistent&&(!f||!this._isPointerDown)&&h.fadeOut()},c),h}fadeOutRipple(a){const e=this._activeRipples.delete(a);if(a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const t=a.element,r=Object.assign(Object.assign({},hm),a.config.animation);t.style.transitionDuration=`${r.exitDuration}ms`,t.style.opacity="0",a.state=2,this._runTimeoutOutsideZone(()=>{a.state=3,t.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(a=>a.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(a=>{a.config.persistent||a.fadeOut()})}setupTriggerEvents(a){const e=qi(a);!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(W_))}handleEvent(a){"mousedown"===a.type?this._onMousedown(a):"touchstart"===a.type?this._onTouchStart(a):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(U_),this._pointerUpEventsRegistered=!0)}_onMousedown(a){const e=Gd(a),t=this._lastTouchStartEvent&&Date.now(){!a.config.persistent&&(1===a.state||a.config.terminateOnPointerUp&&0===a.state)&&a.fadeOut()}))}_runTimeoutOutsideZone(a,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(a,e))}_registerEvents(a){this._ngZone.runOutsideAngular(()=>{a.forEach(e=>{this._triggerElement.addEventListener(e,this,pt)})})}_removeTriggerEvents(){this._triggerElement&&(W_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}),this._pointerUpEventsRegistered&&U_.forEach(a=>{this._triggerElement.removeEventListener(a,this,pt)}))}}const du=new i.OlP("mat-ripple-global-options");let Gn=(()=>{class n{constructor(e,t,r,l,d){this._elementRef=e,this._animationMode=d,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=l||{},this._rippleRenderer=new G_(this,t,e,r)}get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}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:Object.assign(Object.assign(Object.assign({},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(e,t=0,r){return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Si),i.Y36(du,8),i.Y36(Bn,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-ripple-unbounded",t.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"]}),n})(),ti=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct,Oc],ct]}),n})(),lw=(()=>{class n{constructor(e){this._animationMode=e,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(e,t){2&e&&i.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===t.state)("mat-pseudo-checkbox-checked","checked"===t.state)("mat-pseudo-checkbox-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(e,t){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),fp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct]]}),n})();const pm=new i.OlP("MAT_OPTION_PARENT_COMPONENT"),mp=new i.OlP("MatOptgroup");let hw=0;class Z_{constructor(a,e=!1){this.source=a,this.isUserInput=e}}let pw=(()=>{class n{constructor(e,t,r,l){this._element=e,this._changeDetectorRef=t,this._parent=r,this.group=l,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+hw++,this.onSelectionChange=new i.vpe,this._stateChanges=new He.xQ}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=je(e)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(e,t){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(13===e.keyCode||32===e.keyCode)&&!Tn(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue=e,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Z_(this,e))}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),ka=(()=>{class n extends pw{constructor(e,t,r,l){super(e,t,r,l)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(pm,8),i.Y36(mp,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._selectViaInteraction()})("keydown",function(l){return t._handleKeydown(l)}),2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",t._getTabIndex())("aria-selected",t._getAriaSelected())("aria-disabled",t.disabled.toString()),i.ekj("mat-selected",t.selected)("mat-option-multiple",t.multiple)("mat-active",t.active)("mat-option-disabled",t.disabled))},exportAs:["matOption"],features:[i.qOj],ngContentSelectors:tw,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,KM,1,2,"mat-pseudo-checkbox",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,ew,2,1,"span",2),i._UZ(4,"div",3)),2&e&&(i.Q6J("ngIf",t.multiple),i.xp6(3),i.Q6J("ngIf",t.group&&t.group._inert),i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t.disabled||t.disableRipple))},directives:[lw,w.O5,Gn],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})();function fm(n,a,e){if(e.length){let t=a.toArray(),r=e.toArray(),l=0;for(let d=0;de+t?Math.max(0,n-t+a):e}let uu=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ti,w.ez,ct,fp]]}),n})();function gp(n,a){}class hu{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.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const Q_={dialogContainer:Ai("dialogContainer",[Lt("void, exit",Le({opacity:0,transform:"scale(0.7)"})),Lt("enter",Le({transform:"none"})),Ct("* => enter",yt("150ms cubic-bezier(0, 0, 0.2, 1)",Le({transform:"none",opacity:1}))),Ct("* => void, * => exit",yt("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Le({opacity:0})))])};let mw=(()=>{class n extends qd{constructor(e,t,r,l,d,s,o,c){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=r,this._config=d,this._interactivityChecker=s,this._ngZone=o,this._focusMonitor=c,this._animationStateChanged=new i.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=u=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(u)),this._ariaLabelledBy=d.ariaLabelledBy||null,this._document=l}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_trapFocus(){const e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{t||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 e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){const t=Xf(),r=this._elementRef.nativeElement;(!t||t===this._document.body||t===r||r.contains(t))&&(this._focusMonitor?(this._focusMonitor.focusVia(e,this._closeInteractionType),this._closeInteractionType=null):e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=Xf())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const e=this._elementRef.nativeElement,t=Xf();return e===t||e.contains(t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ug),i.Y36(i.sBO),i.Y36(w.K0,8),i.Y36(hu),i.Y36(qh),i.Y36(i.R0b),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(e0,7),2&e){let r;i.iGM(r=i.CRH())&&(t._portalOutlet=r.first)}},features:[i.qOj]}),n})(),pu=(()=>{class n extends mw{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:e,totalTime:t}){"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:t}))}_onAnimationStart({toState:e,totalTime:t}){"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:t}):("exit"===e||"void"===e)&&this._animationStateChanged.next({state:"closing",totalTime:t})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&i.WFA("@dialogContainer.start",function(l){return t._onAnimationStart(l)})("@dialogContainer.done",function(l){return t._onAnimationDone(l)}),2&e&&(i.Ikx("id",t._id),i.uIk("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),i.d8E("@dialogContainer",t._state))},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&i.YNc(0,gp,0,0,"ng-template",0)},directives:[e0],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[Q_.dialogContainer]}}),n})(),fu=0;class Ni{constructor(a,e,t="mat-dialog-"+fu++){this._overlayRef=a,this._containerInstance=e,this.id=t,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new He.xQ,this._afterClosed=new He.xQ,this._beforeClosed=new He.xQ,this._state=0,e._id=t,e._animationStateChanged.pipe((0,jt.h)(r=>"opened"===r.state),(0,Zt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe((0,jt.h)(r=>"closed"===r.state),(0,Zt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),a.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),a.keydownEvents().pipe((0,jt.h)(r=>27===r.keyCode&&!this.disableClose&&!Tn(r))).subscribe(r=>{r.preventDefault(),J_(this,"keyboard")}),a.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():J_(this,"mouse")})}close(a){this._result=a,this._containerInstance._animationStateChanged.pipe((0,jt.h)(e=>"closing"===e.state),(0,Zt.q)(1)).subscribe(e=>{this._beforeClosed.next(a),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(a){let e=this._getPositionStrategy();return a&&(a.left||a.right)?a.left?e.left(a.left):e.right(a.right):e.centerHorizontally(),a&&(a.top||a.bottom)?a.top?e.top(a.top):e.bottom(a.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(a="",e=""){return this._overlayRef.updateSize({width:a,height:e}),this._overlayRef.updatePosition(),this}addPanelClass(a){return this._overlayRef.addPanelClass(a),this}removePanelClass(a){return this._overlayRef.removePanelClass(a),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function J_(n,a,e){return void 0!==n._containerInstance&&(n._containerInstance._closeInteractionType=a),n.close(e)}const xn=new i.OlP("MatDialogData"),X_=new i.OlP("mat-dialog-default-options"),mm=new i.OlP("mat-dialog-scroll-strategy"),K_={provide:mm,deps:[Zr],useFactory:function _w(n){return()=>n.scrollStrategies.block()}};let bw=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h){this._overlay=e,this._injector=t,this._defaultOptions=r,this._parentDialog=l,this._overlayContainer=d,this._dialogRefConstructor=o,this._dialogContainerType=c,this._dialogDataToken=u,this._animationMode=h,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new He.xQ,this._afterOpenedAtThisLevel=new He.xQ,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=ma(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(_i(void 0))),this._scrollStrategy=s}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(e,t){if(t=function GT(n,a){return Object.assign(Object.assign({},a),n)}(t,this._defaultOptions||new hu),t.id&&this.getDialogById(t.id),this._dialogAnimatingOpen)return this._lastDialogRef;const r=this._createOverlay(t),l=this._attachDialogContainer(r,t);if("NoopAnimations"!==this._animationMode){const s=l._animationStateChanged.subscribe(o=>{"opening"===o.state&&(this._dialogAnimatingOpen=!0),"opened"===o.state&&(this._dialogAnimatingOpen=!1,s.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new re.w),this._animationStateSubscriptions.add(s)}const d=this._attachDialogContent(e,l,r,t);return this._lastDialogRef=d,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(d),d.afterClosed().subscribe(()=>this._removeOpenDialog(d)),this.afterOpened.next(d),l._initializeWithAttachedContent(),d}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new Ph({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const l=i.zs3.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:hu,useValue:t}]}),d=new Vc(this._dialogContainerType,t.viewContainerRef,l,t.componentFactoryResolver);return e.attach(d).instance}_attachDialogContent(e,t,r,l){const d=new this._dialogRefConstructor(r,t,l.id);if(e instanceof i.Rgc)t.attachTemplatePortal(new xl(e,null,{$implicit:l.data,dialogRef:d}));else{const s=this._createInjector(l,d,t),o=t.attachComponentPortal(new Vc(e,l.viewContainerRef,s));d.componentInstance=o.instance}return d.updateSize(l.width,l.height).updatePosition(l.position),d}_createInjector(e,t,r){const l=e&&e.viewContainerRef&&e.viewContainerRef.injector,d=[{provide:this._dialogContainerType,useValue:r},{provide:this._dialogDataToken,useValue:e.data},{provide:this._dialogRefConstructor,useValue:t}];return e.direction&&(!l||!l.get(vn,null,i.XFs.Optional))&&d.push({provide:vn,useValue:{value:e.direction,change:(0,$e.of)()}}),i.zs3.create({parent:l||this._injector,providers:d})}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,l)=>{r?l.setAttribute("aria-hidden",r):l.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let r=t.length-1;r>-1;r--){let l=t[r];l!==e&&"SCRIPT"!==l.nodeName&&"STYLE"!==l.nodeName&&!l.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(l,l.getAttribute("aria-hidden")),l.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n}),n})(),Yi=(()=>{class n extends bw{constructor(e,t,r,l,d,s,o,c){super(e,t,l,s,o,d,Ni,pu,xn,c)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Zr),i.LFG(i.zs3),i.LFG(w.Ye,8),i.LFG(X_,8),i.LFG(mm),i.LFG(n,12),i.LFG(p0),i.LFG(Bn,8))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),ZT=0,Sn=(()=>{class n{constructor(e,t,r){this._dialogRef=e,this._elementRef=t,this._dialog=r,this.id="mat-dialog-title-"+ZT++}ngOnInit(){this._dialogRef||(this._dialogRef=function Aw(n,a){let e=n.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-dialog-container");)e=e.parentElement;return e?a.find(t=>t.id===e.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const e=this._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=this.id)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni,8),i.Y36(i.SBq),i.Y36(Yi))},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(e,t){2&e&&i.Ikx("id",t.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),n})(),tn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),n})(),Vi=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),n})(),_p=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Yi,K_],imports:[[Fc,Lo,ct],ct]}),n})();var mu=x(6114);let Pa=(()=>{class n{constructor(e,t,r,l,d){this.injector=e,this.store=t,this.dialog=r,this.route=l,this.oauthService=d,this.loggedIn=!1,setTimeout(()=>{this.router=this.injector.get(rt),this.startIdpFilterKeeper()}),this.route.queryParams.subscribe(s=>{s.idpFilter&&(this.filterShortname=String(s.idpFilter))})}getClientConfig(){const e=this.setIdpFilter(),l=.5+.25*Math.random(),d=e?{acr_values:e}:{};return this.store.get("oidc_client","oauth_scopes").split(" ").includes("offline_access")&&this.store.get("oidc_client","oauth_offline_access_consent_prompt")&&(d.prompt="consent"),sessionStorage.getItem("mfa_route")&&(d.acr_values="https://refeds.org/profile/mfa",d.prompt="login",d.max_age="0"),{requestAccessToken:!0,issuer:this.store.get("oidc_client","oauth_authority"),clientId:this.store.get("oidc_client","oauth_client_id"),redirectUri:this.store.get("oidc_client","oauth_redirect_uri"),postLogoutRedirectUri:this.store.get("oidc_client","oauth_post_logout_redirect_uri"),responseType:this.store.get("oidc_client","oauth_response_type"),scope:this.store.get("oidc_client","oauth_scopes"),clockSkewInSec:1,timeoutFactor:l,customQueryParams:d}}setIdpFilter(){const e=location.search.substring(1).split("&");this.filterShortname=null;const t=this.store.get("oidc_client","filters");if(!t)return null;let r=null;return e.forEach(l=>{const d=l.split("=");"idpFilter"===d[0]&&t[d[1]]&&(this.filterShortname=d[1],r=t[d[1]])}),t.default&&!r?(this.filterShortname="default",t.default):r}loadConfigData(){this.oauthService.configure(this.getClientConfig())}verifyAuth(){const e=location.pathname,t=location.search.substring(1);return"/api-callback"===e?this.handleAuthCallback().then(()=>this.startRefreshToken()).then(()=>this.redirectToOriginDestination()):this.verifyAuthentication(e,t).then(()=>this.startRefreshToken())}startRefreshToken(){return this.isLoggedInPromise().then(e=>!!e&&(this.oauthService.events.pipe((0,jt.h)(t=>"token_expires"===t.type&&"access_token"===t.info)).subscribe(()=>{this.refreshAndStoreToken()}),!0))}logout(){sessionStorage.getItem("baPrincipal")?(sessionStorage.removeItem("baPrincipal"),sessionStorage.removeItem("basicUsername"),sessionStorage.removeItem("basicPassword"),sessionStorage.setItem("baLogout","true"),this.router.navigate(["/service-access"])):(localStorage.removeItem("refresh_token"),this.oauthService.logOut())}isLoggedInPromise(){return Promise.resolve(this.isLoggedIn())}isLoggedIn(){return this.oauthService.hasValidAccessToken()}getAuthorizationHeaderValue(){return this.oauthService.hasValidAccessToken()?"Bearer "+this.oauthService.getAccessToken():""}startAuthentication(){this.oauthService.loadDiscoveryDocumentAndLogin()}handleAuthCallback(){return this.oauthService.loadDiscoveryDocumentAndTryLogin()}redirectToOriginDestination(){const e=sessionStorage.getItem("mfa_route");if(e)return this.router.navigate([e],{replaceUrl:!0});let t=sessionStorage.getItem("auth:redirect");const r=sessionStorage.getItem("auth:queryParams");let l=[];r&&(l=r.split("&"));const d={};return l.forEach(s=>{const o=s.split("=");d[o[0]]=o[1]}),(!t||"/login"===t)&&(t="/"),sessionStorage.removeItem("auth:redirect"),sessionStorage.removeItem("auth:queryParams"),d.idpFilter&&(this.filterShortname=String(d.idpFilter)),this.router.navigate([t],{queryParams:d,replaceUrl:!0})}getIdpFilter(){return this.filterShortname}startIdpFilterKeeper(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{const e={idpFilter:this.getIdpFilter()};this.router.navigate([],{relativeTo:this.route,queryParams:"default"===e.idpFilter?{}:e,queryParamsHandling:"merge",replaceUrl:!0})})}isPotentiallyValidPath(e){const t=["/home","/organizations","/facilities","/myProfile","/admin","/login","/service-access","/profile"];if("/"===e)return!0;for(const r of t)if(e.startsWith(r))return!0;return!1}tryRefreshToken(){return localStorage.getItem("refresh_token")&&!this.isLoggedIn()?this.refreshAndStoreToken().then(()=>Promise.resolve()).catch(()=>Promise.resolve()):Promise.resolve()}refreshAndStoreToken(){return this.oauthService.refreshToken().then(()=>!0,()=>!1)}verifyAuthentication(e,t){return this.oauthService.loadDiscoveryDocument().then(()=>this.tryRefreshToken()).then(()=>this.isLoggedInPromise()).then(r=>!!r||(this.isPotentiallyValidPath(e)?(sessionStorage.setItem("auth:redirect",e),sessionStorage.setItem("auth:queryParams",t),!1):new Promise((l,d)=>d("Invalid path"))))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.zs3),i.LFG(zt),i.LFG(Yi),i.LFG(nr),i.LFG(mu.Ct))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function is(n){return!!n&&(n instanceof Ri.y||"function"==typeof n.lift&&"function"==typeof n.subscribe)}var yw=x(7830);function gm(...n){if(1===n.length){const a=n[0];if((0,Yf.k)(a))return bp(a,null);if((0,yw.K)(a)&&Object.getPrototypeOf(a)===Object.prototype){const e=Object.keys(a);return bp(e.map(t=>a[t]),e)}}if("function"==typeof n[n.length-1]){const a=n.pop();return bp(n=1===n.length&&(0,Yf.k)(n[0])?n[0]:n,null).pipe((0,ht.U)(e=>a(...e)))}return bp(n,null)}function bp(n,a){return new Ri.y(e=>{const t=n.length;if(0===t)return void e.complete();const r=new Array(t);let l=0,d=0;for(let s=0;s{c||(c=!0,d++),r[s]=u},error:u=>e.error(u),complete:()=>{l++,(l===t||!c)&&(d===t&&e.next(a?a.reduce((u,h,f)=>(u[h]=r[f],u),{}):r),e.complete())}}))}})}const ww=new class eb extends Uf.v{}(class Mw extends Wf.o{constructor(a,e){super(a,e),this.scheduler=a,this.work=e}schedule(a,e=0){return e>0?super.schedule(a,e):(this.delay=e,this.state=a,this.scheduler.flush(this),this)}execute(a,e){return e>0||this.closed?super.execute(a,e):this._execute(a,e)}requestAsyncId(a,e,t=0){return null!==t&&t>0||null===t&&this.delay>0?super.requestAsyncId(a,e,t):a.flush(this)}});var _m=x(9312);class _u extends Sr.L{constructor(a,e,t=0){super(a),this.scheduler=e,this.delay=t}static dispatch(a){const{notification:e,destination:t}=a;e.observe(t),this.unsubscribe()}scheduleMessage(a){this.destination.add(this.scheduler.schedule(_u.dispatch,this.delay,new vw(a,this.destination)))}_next(a){this.scheduleMessage(_m.P.createNext(a))}_error(a){this.scheduleMessage(_m.P.createError(a)),this.unsubscribe()}_complete(){this.scheduleMessage(_m.P.createComplete()),this.unsubscribe()}}class vw{constructor(a,e){this.notification=a,this.destination=e}}var tb=x(5283);class Tw extends He.xQ{constructor(a=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,t){super(),this.scheduler=t,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=a<1?1:a,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(a){const e=this._events;e.push(a),e.length>this._bufferSize&&e.shift(),super.next(a)}nextTimeWindow(a){this._events.push(new ib(this._getNow(),a)),this._trimBufferThenGetEvents(),super.next(a)}_subscribe(a){const e=this._infiniteTimeWindow,t=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,l=t.length;let d;if(this.closed)throw new Md.N;if(this.isStopped||this.hasError?d=re.w.EMPTY:(this.observers.push(a),d=new tb.W(this,a)),r&&a.add(a=new _u(a,r)),e)for(let s=0;se&&(d=Math.max(d,l-e)),d>0&&r.splice(0,d),r}}class ib{constructor(a,e){this.time=a,this.value=e}}function nb(n,a,e){let t;return t=n&&"object"==typeof n?n:{bufferSize:n,windowTime:a,refCount:!1,scheduler:e},r=>r.lift(function bm({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:a=Number.POSITIVE_INFINITY,refCount:e,scheduler:t}){let r,d,l=0,s=!1,o=!1;return function(u){l++,(!r||s)&&(s=!1,r=new Tw(n,a,t),d=u.subscribe({next(f){r.next(f)},error(f){s=!0,r.error(f)},complete(){o=!0,d=void 0,r.complete()}}));const h=r.subscribe(this);this.add(()=>{l--,h.unsubscribe(),d&&!o&&e&&0===l&&(d.unsubscribe(),d=void 0,r=void 0)})}}(t))}class bu{}let Am=(()=>{class n extends bu{getTranslation(e){return(0,$e.of)({})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Ap{}let rb=(()=>{class n{handle(e){return e.key}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();function yp(n,a){if(n===a)return!0;if(null===n||null===a)return!1;if(n!=n&&a!=a)return!0;let r,l,d,e=typeof n;if(e==typeof a&&"object"==e){if(!Array.isArray(n)){if(Array.isArray(a))return!1;for(l in d=Object.create(null),n){if(!yp(n[l],a[l]))return!1;d[l]=!0}for(l in a)if(!(l in d)&&void 0!==a[l])return!1;return!0}if(!Array.isArray(a))return!1;if((r=n.length)==a.length){for(l=0;l{Au(a[t])?t in n?e[t]=ab(n[t],a[t]):Object.assign(e,{[t]:a[t]}):Object.assign(e,{[t]:a[t]})}),e}class yu{}let sb=(()=>{class n extends yu{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let r;return r="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,r}getValue(e,t){let r="string"==typeof t?t.split("."):[t];t="";do{t+=r.shift(),!Fo(e)||!Fo(e[t])||"object"!=typeof e[t]&&r.length?r.length?t+=".":e=void 0:(e=e[t],t="")}while(r.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(r,l)=>{let d=this.getValue(t,l);return Fo(d)?d:r}):e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class Mp{}let ob=(()=>{class n extends Mp{compile(e,t){return e}compileTranslations(e,t){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();class lb{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new i.vpe,this.onLangChange=new i.vpe,this.onDefaultLangChange=new i.vpe}}const ym=new i.OlP("USE_STORE"),Mm=new i.OlP("USE_DEFAULT_LANG"),wm=new i.OlP("DEFAULT_LANGUAGE"),Cm=new i.OlP("USE_EXTEND");let oi=(()=>{class n{constructor(e,t,r,l,d,s=!0,o=!1,c=!1,u){this.store=e,this.currentLoader=t,this.compiler=r,this.parser=l,this.missingTranslationHandler=d,this.useDefaultLang=s,this.isolate=o,this.extend=c,this.pending=!1,this._onTranslationChange=new i.vpe,this._onLangChange=new i.vpe,this._onDefaultLangChange=new i.vpe,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(null==this.defaultLang&&(this.defaultLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return(0,$e.of)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe((0,Zt.q)(1)).subscribe(r=>{this.changeLang(e)}),t):(this.changeLang(e),(0,$e.of)(this.translations[e]))}retrieveTranslations(e){let t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(nb(1),(0,Zt.q)(1));return this.loadingTranslations=t.pipe((0,ht.U)(r=>this.compiler.compileTranslations(r,e)),nb(1),(0,Zt.q)(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),t}setTranslation(e,t,r=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=(r||this.extend)&&this.translations[e]?ab(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,r){let l;if(t instanceof Array){let d={},s=!1;for(let o of t)d[o]=this.getParsedResult(e,o,r),is(d[o])&&(s=!0);return s?gm(t.map(c=>is(d[c])?d[c]:(0,$e.of)(d[c]))).pipe((0,ht.U)(c=>{let u={};return c.forEach((h,f)=>{u[t[f]]=h}),u})):d}if(e&&(l=this.parser.interpolate(this.parser.getValue(e,t),r)),void 0===l&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(l=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),r)),void 0===l){let d={key:t,translateService:this};void 0!==r&&(d.interpolateParams=r),l=this.missingTranslationHandler.handle(d)}return void 0!==l?l:t}get(e,t){if(!Fo(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Ts.b)(r=>is(r=this.getParsedResult(r,e,t))?r:(0,$e.of)(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,t);return is(r)?r:(0,$e.of)(r)}}getStreamOnTranslationChange(e,t){if(!Fo(e)||!e.length)throw new Error('Parameter "key" required');return ws(ma(()=>this.get(e,t)),this.onTranslationChange.pipe((0,ji.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return"function"==typeof l.subscribe?l:(0,$e.of)(l)})))}stream(e,t){if(!Fo(e)||!e.length)throw new Error('Parameter "key" required');return ws(ma(()=>this.get(e,t)),this.onLangChange.pipe((0,ji.w)(r=>{const l=this.getParsedResult(r.translations,e,t);return is(l)?l:(0,$e.of)(l)})))}instant(e,t){if(!Fo(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,t);if(is(r)){if(e instanceof Array){let l={};return e.forEach((d,s)=>{l[e[s]]=e[s]}),l}return e}return r}set(e,t,r=this.currentLang){this.translations[r][e]=this.compiler.compile(t,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==e?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lb),i.LFG(bu),i.LFG(Mp),i.LFG(yu),i.LFG(Ap),i.LFG(Mm),i.LFG(ym),i.LFG(Cm),i.LFG(wm))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),lt=(()=>{class n{constructor(e,t){this.translate=e,this._ref=t,this.value="",this.lastKey=null,this.lastParams=[]}updateValue(e,t,r){let l=d=>{this.value=void 0!==d?d:e,this.lastKey=e,this._ref.markForCheck()};if(r){let d=this.translate.getParsedResult(r,e,t);is(d.subscribe)?d.subscribe(l):l(d)}this.translate.get(e,t).subscribe(l)}transform(e,...t){if(!e||!e.length)return e;if(yp(e,this.lastKey)&&yp(t,this.lastParams))return this.value;let r;if(Fo(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let l=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{r=JSON.parse(l)}catch(d){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${t[0]}`)}}else"object"==typeof t[0]&&!Array.isArray(t[0])&&(r=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,r),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(l=>{this.lastKey&&l.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(l=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r,l.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,r))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(oi,16),i.Y36(i.sBO,16))},n.\u0275pipe=i.Yjl({name:"translate",type:n,pure:!1}),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Mu=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[e.loader||{provide:bu,useClass:Am},e.compiler||{provide:Mp,useClass:ob},e.parser||{provide:yu,useClass:sb},e.missingTranslationHandler||{provide:Ap,useClass:rb},lb,{provide:ym,useValue:e.isolate},{provide:Mm,useValue:e.useDefaultLang},{provide:Cm,useValue:e.extend},{provide:wm,useValue:e.defaultLanguage},oi]}}static forChild(e={}){return{ngModule:n,providers:[e.loader||{provide:bu,useClass:Am},e.compiler||{provide:Mp,useClass:ob},e.parser||{provide:yu,useClass:sb},e.missingTranslationHandler||{provide:Ap,useClass:rb},{provide:ym,useValue:e.isolate},{provide:Mm,useValue:e.useDefaultLang},{provide:Cm,useValue:e.extend},{provide:wm,useValue:e.defaultLanguage},oi]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),cb=(()=>{class n{constructor(e){this.dialogRef=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-dont-exist-dialog"]],decls:3,vars:3,consts:[["mat-dialog-content","",1,"mt-2","mb-2"]],template:function(e,t){1&e&&(i.TgZ(0,"h2",0),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.USER_DONT_EXIST.TITLE"),"\n"))},directives:[tn],pipes:[lt],styles:[""]}),n})();const Sw=["mat-button",""],Ew=["*"],Tm=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],db=Vo(ts(na(class{constructor(n){this._elementRef=n}})));let kt=(()=>{class n extends db{constructor(e,t,r){super(e),this._focusMonitor=t,this._animationMode=r,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const l of Tm)this._hasHostAttributes(l)&&this._getHostElement().classList.add(l);e.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...e){return e.some(t=>this._getHostElement().hasAttribute(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){if(1&e&&i.Gf(Gn,5),2&e){let r;i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(e,t){2&e&&(i.uIk("disabled",t.disabled||null),i.ekj("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-button-disabled",t.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.qOj],attrs:Sw,ngContentSelectors:Ew,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"span",0),i.Hsn(1),i.qZA(),i._UZ(2,"span",1),i._UZ(3,"span",2)),2&e&&(i.xp6(2),i.ekj("mat-button-ripple-round",t.isRoundButton||t.isIconButton),i.Q6J("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Gn],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),ns=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ti,ct],ct]}),n})();const xm=["connectionContainer"],Dw=["inputContainer"],ub=["label"];function Hw(n,a){1&n&&(i.ynx(0),i.TgZ(1,"div",14),i._UZ(2,"div",15),i._UZ(3,"div",16),i._UZ(4,"div",17),i.qZA(),i.TgZ(5,"div",18),i._UZ(6,"div",15),i._UZ(7,"div",16),i._UZ(8,"div",17),i.qZA(),i.BQk())}function hb(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",19),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.Hsn(1,1),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)}}function Lw(n,a){if(1&n&&(i.ynx(0),i.Hsn(1,2),i.TgZ(2,"span"),i._uU(3),i.qZA(),i.BQk()),2&n){const e=i.oxw(2);i.xp6(3),i.Oqu(e._control.placeholder)}}function pb(n,a){1&n&&i.Hsn(0,3,["*ngSwitchCase","true"])}function JT(n,a){1&n&&(i.TgZ(0,"span",23),i._uU(1," *"),i.qZA())}function kw(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"label",20,21),i.NdJ("cdkObserveContent",function(){return i.CHM(e),i.oxw().updateOutlineGap()}),i.YNc(2,Lw,4,1,"ng-container",12),i.YNc(3,pb,1,0,"ng-content",12),i.YNc(4,JT,2,0,"span",22),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-form-field-empty",e._control.empty&&!e._shouldAlwaysFloat())("mat-accent","accent"==e.color)("mat-warn","warn"==e.color),i.Q6J("cdkObserveContentDisabled","outline"!=e.appearance)("id",e._labelId)("ngSwitch",e._hasLabel()),i.uIk("for",e._control.id)("aria-owns",e._control.id),i.xp6(2),i.Q6J("ngSwitchCase",!1),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngIf",!e.hideRequiredMarker&&e._control.required&&!e._control.disabled)}}function wu(n,a){1&n&&(i.TgZ(0,"div",24),i.Hsn(1,4),i.qZA())}function Pw(n,a){if(1&n&&(i.TgZ(0,"div",25),i._UZ(1,"span",26),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.ekj("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)}}function ed(n,a){if(1&n&&(i.TgZ(0,"div"),i.Hsn(1,5),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState)}}function Cu(n,a){if(1&n&&(i.TgZ(0,"div",30),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("id",e._hintLabelId),i.xp6(1),i.Oqu(e.hintLabel)}}function Rw(n,a){if(1&n&&(i.TgZ(0,"div",27),i.YNc(1,Cu,2,2,"div",28),i.Hsn(2,6),i._UZ(3,"div",29),i.Hsn(4,7),i.qZA()),2&n){const e=i.oxw();i.Q6J("@transitionMessages",e._subscriptAnimationState),i.xp6(1),i.Q6J("ngIf",e.hintLabel)}}const XT=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],fb=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Ow=0;const mb=new i.OlP("MatError");let jl=(()=>{class n{constructor(e,t){this.id="mat-error-"+Ow++,e||t.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(e){return new(e||n)(i.$8M("aria-live"),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("id",t.id)},inputs:{id:"id"},features:[i._Bn([{provide:mb,useExisting:n}])]}),n})();const Iw={transitionMessages:Ai("transitionMessages",[Lt("enter",Le({opacity:1,transform:"translateY(0%)"})),Ct("void => enter",[Le({opacity:0,transform:"translateY(-5px)"}),yt("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let td=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n}),n})(),vu=0;const _b=new i.OlP("MatHint");let bb=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+vu++}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id)("align",null),i.ekj("mat-form-field-hint-end","end"===t.align))},inputs:{align:"align",id:"id"},features:[i._Bn([{provide:_b,useExisting:n}])]}),n})(),rs=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-label"]]}),n})(),Bw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-placeholder"]]}),n})();const Nw=new i.OlP("MatPrefix"),wp=new i.OlP("MatSuffix");let Ab=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","matSuffix",""]],features:[i._Bn([{provide:wp,useExisting:n}])]}),n})(),Vw=0;const id=Vo(class{constructor(n){this._elementRef=n}},"primary"),Mb=new i.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),as=new i.OlP("MatFormField");let mn=(()=>{class n extends id{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._dir=r,this._defaults=l,this._platform=d,this._ngZone=s,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new He.xQ,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Vw++,this._labelId="mat-form-field-label-"+Vw++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,this.appearance=l&&l.appearance?l.appearance:"legacy",this._hideRequiredMarker=!(!l||null==l.hideRequiredMarker)&&l.hideRequiredMarker}get appearance(){return this._appearance}set appearance(e){const t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=je(e)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(e){this._explicitFormFieldControl=e}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${e.controlType}`),e.stateChanges.pipe(_i(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(tt(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(tt(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,Ei.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_i(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_i(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(e){const t=this._control?this._control.ngControl:null;return t&&t[e]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Ta(this._label.nativeElement,"transitionend").pipe((0,Zt.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&e.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const t=this._hintChildren?this._hintChildren.find(l=>"start"===l.align):null,r=this._hintChildren?this._hintChildren.find(l=>"end"===l.align):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),r&&e.push(r.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_validateControlChild(){}updateOutlineGap(){const e=this._label?this._label.nativeElement:null,t=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",l=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!e||!e.children.length||!e.textContent.trim()){const u=t.querySelectorAll(`${r}, ${l}`);for(let h=0;h0?.75*V+10:0}for(let u=0;u{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ct,jc],ct]}),n})();function Em(n){return n&&"function"==typeof n.connect}class qw{applyChanges(a,e,t,r,l){a.forEachOperation((d,s,o)=>{let c,u;if(null==d.previousIndex){const h=t(d,s,o);c=e.createEmbeddedView(h.templateRef,h.context,h.index),u=1}else null==o?(e.remove(s),u=3):(c=e.get(s),e.move(c,o),u=2);l&&l({context:null==c?void 0:c.context,operation:u,record:d})})}detach(){}}class nn{constructor(a=!1,e,t=!0){this._multiple=a,this._emitChanges=t,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new He.xQ,e&&e.length&&(a?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...a){this._verifyValueAssignment(a),a.forEach(e=>this._markSelected(e)),this._emitChangeEvent()}deselect(...a){this._verifyValueAssignment(a),a.forEach(e=>this._unmarkSelected(e)),this._emitChangeEvent()}toggle(a){this.isSelected(a)?this.deselect(a):this.select(a)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(a){return this._selection.has(a)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(a){this._multiple&&this.selected&&this._selected.sort(a)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(a){this.isSelected(a)||(this._multiple||this._unmarkAll(),this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))}_unmarkSelected(a){this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))}_unmarkAll(){this.isEmpty()||this._selection.forEach(a=>this._unmarkSelected(a))}_verifyValueAssignment(a){}}let Cp=(()=>{class n{constructor(){this._listeners=[]}notify(e,t){for(let r of this._listeners)r(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const nd=new i.OlP("_ViewRepeater");let wb=(()=>{class n{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n}),n})(),ql=(()=>{class n extends wb{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Zn=new i.OlP("NgValueAccessor"),Uw={provide:Zn,useExisting:(0,i.Gpc)(()=>rn),multi:!0},Tu=new i.OlP("CompositionEventMode");let rn=(()=>{class n extends wb{constructor(e,t,r){super(e,t),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Gw(){const n=(0,w.q)()?(0,w.q)().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",null==e?"":e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(Tu,8))},n.\u0275dir=i.lG2({type:n,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(e,t){1&e&&i.NdJ("input",function(l){return t._handleInput(l.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(l){return t._compositionEnd(l.target.value)})},features:[i._Bn([Uw]),i.qOj]}),n})();function Us(n){return null==n||0===n.length}function Hm(n){return null!=n&&"number"==typeof n.length}const gn=new i.OlP("NgValidators"),Gs=new i.OlP("NgAsyncValidators"),vb=/^(?=.{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 _n{static min(a){return function Lm(n){return a=>{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e{if(Us(a.value)||Us(n))return null;const e=parseFloat(a.value);return!isNaN(e)&&e>n?{max:{max:n,actual:a.value}}:null}}(a)}static required(a){return Pm(a)}static requiredTrue(a){return function Tb(n){return!0===n.value?null:{required:!0}}(a)}static email(a){return function xb(n){return Us(n.value)||vb.test(n.value)?null:{email:!0}}(a)}static minLength(a){return function rd(n){return a=>Us(a.value)||!Hm(a.value)?null:a.value.lengthHm(a.value)&&a.value.length>n?{maxlength:{requiredLength:n,actualLength:a.value.length}}:null}(a)}static pattern(a){return function vp(n){if(!n)return Ir;let a,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),a=new RegExp(e)):(e=n.toString(),a=n),t=>{if(Us(t.value))return null;const r=t.value;return a.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(a)}static nullValidator(a){return null}static compose(a){return Su(a)}static composeAsync(a){return Lb(a)}}function Pm(n){return Us(n.value)?{required:!0}:null}function Ir(n){return null}function Eb(n){return null!=n}function xu(n){const a=(0,i.QGY)(n)?(0,un.D)(n):n;return(0,i.CqO)(a),a}function ad(n){let a={};return n.forEach(e=>{a=null!=e?Object.assign(Object.assign({},a),e):a}),0===Object.keys(a).length?null:a}function Db(n,a){return a.map(e=>e(n))}function Hb(n){return n.map(a=>function Zw(n){return!n.validate}(a)?a:e=>a.validate(e))}function Su(n){if(!n)return null;const a=n.filter(Eb);return 0==a.length?null:function(e){return ad(Db(e,a))}}function sd(n){return null!=n?Su(Hb(n)):null}function Lb(n){if(!n)return null;const a=n.filter(Eb);return 0==a.length?null:function(e){return gm(Db(e,a).map(xu)).pipe((0,ht.U)(ad))}}function Rm(n){return null!=n?Lb(Hb(n)):null}function Om(n,a){return null===n?[a]:Array.isArray(n)?[...n,a]:[n,a]}function Im(n){return n._rawValidators}function Tp(n){return n._rawAsyncValidators}function xp(n){return n?Array.isArray(n)?n:[n]:[]}function Sp(n,a){return Array.isArray(n)?n.includes(a):n===a}function kb(n,a){const e=xp(a);return xp(n).forEach(r=>{Sp(e,r)||e.push(r)}),e}function $w(n,a){return xp(a).filter(e=>!Sp(n,e))}class Ep{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(a){this._rawValidators=a||[],this._composedValidatorFn=sd(this._rawValidators)}_setAsyncValidators(a){this._rawAsyncValidators=a||[],this._composedAsyncValidatorFn=Rm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(a){this._onDestroyCallbacks.push(a)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(a=>a()),this._onDestroyCallbacks=[]}reset(a){this.control&&this.control.reset(a)}hasError(a,e){return!!this.control&&this.control.hasError(a,e)}getError(a,e){return this.control?this.control.getError(a,e):null}}class Br extends Ep{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class $n extends Ep{get formDirective(){return null}get path(){return null}}class Dp{constructor(a){this._cd=a}is(a){var e,t,r;return"submitted"===a?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(r=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===r?void 0:r[a])}}let bn=(()=>{class n extends Dp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Br,2))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[i.qOj]}),n})(),Eu=(()=>{class n extends Dp{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,t){2&e&&i.ekj("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))("ng-submitted",t.is("submitted"))},features:[i.qOj]}),n})();function Lp(n,a){return[...a.path,n]}function kp(n,a){zm(n,a),a.valueAccessor.writeValue(n.value),function tC(n,a){a.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Rp(n,a)})}(n,a),function Bb(n,a){const e=(t,r)=>{a.valueAccessor.writeValue(t),r&&a.viewToModelUpdate(t)};n.registerOnChange(e),a._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,a),function iC(n,a){a.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Rp(n,a),"submit"!==n.updateOn&&n.markAsTouched()})}(n,a),function Vm(n,a){if(a.valueAccessor.setDisabledState){const e=t=>{a.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),a._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,a)}function jo(n,a,e=!0){const t=()=>{};a.valueAccessor&&(a.valueAccessor.registerOnChange(t),a.valueAccessor.registerOnTouched(t)),Hu(n,a),n&&(a._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function Pp(n,a){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(a)})}function zm(n,a){const e=Im(n);null!==a.validator?n.setValidators(Om(e,a.validator)):"function"==typeof e&&n.setValidators([e]);const t=Tp(n);null!==a.asyncValidator?n.setAsyncValidators(Om(t,a.asyncValidator)):"function"==typeof t&&n.setAsyncValidators([t]);const r=()=>n.updateValueAndValidity();Pp(a._rawValidators,r),Pp(a._rawAsyncValidators,r)}function Hu(n,a){let e=!1;if(null!==n){if(null!==a.validator){const r=Im(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.validator);l.length!==r.length&&(e=!0,n.setValidators(l))}}if(null!==a.asyncValidator){const r=Tp(n);if(Array.isArray(r)&&r.length>0){const l=r.filter(d=>d!==a.asyncValidator);l.length!==r.length&&(e=!0,n.setAsyncValidators(l))}}}const t=()=>{};return Pp(a._rawValidators,t),Pp(a._rawAsyncValidators,t),e}function Rp(n,a){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),a.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Fm(n,a){zm(n,a)}function Ip(n,a){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(a,e.currentValue)}function jm(n,a){n._syncPendingControls(),a.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ld(n,a){if(!a)return null;let e,t,r;return Array.isArray(a),a.forEach(l=>{l.constructor===rn?e=l:function nC(n){return Object.getPrototypeOf(n.constructor)===ql}(l)?t=l:r=l}),r||t||e||null}function Bp(n,a){const e=n.indexOf(a);e>-1&&n.splice(e,1)}const Yl="VALID",qm="INVALID",cd="PENDING",ku="DISABLED";function Np(n){return(zp(n)?n.validators:n)||null}function zb(n){return Array.isArray(n)?sd(n):n||null}function Vp(n,a){return(zp(a)?a.asyncValidators:n)||null}function Ym(n){return Array.isArray(n)?Rm(n):n||null}function zp(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Wm=n=>n instanceof vr,Pu=n=>n instanceof jp,Fb=n=>n instanceof rC;function Um(n){return Wm(n)?n.value:n.getRawValue()}function Gm(n,a){const e=Pu(n),t=n.controls;if(!(e?Object.keys(t):t).length)throw new i.vHH(1e3,"");if(!t[a])throw new i.vHH(1001,"")}function Zm(n,a){Pu(n),n._forEachChild((t,r)=>{if(void 0===a[r])throw new i.vHH(1002,"")})}class Fp{constructor(a,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=a,this._rawAsyncValidators=e,this._composedValidatorFn=zb(this._rawValidators),this._composedAsyncValidatorFn=Ym(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(a){this._rawValidators=this._composedValidatorFn=a}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(a){this._rawAsyncValidators=this._composedAsyncValidatorFn=a}get parent(){return this._parent}get valid(){return this.status===Yl}get invalid(){return this.status===qm}get pending(){return this.status==cd}get disabled(){return this.status===ku}get enabled(){return this.status!==ku}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(a){this._rawValidators=a,this._composedValidatorFn=zb(a)}setAsyncValidators(a){this._rawAsyncValidators=a,this._composedAsyncValidatorFn=Ym(a)}addValidators(a){this.setValidators(kb(a,this._rawValidators))}addAsyncValidators(a){this.setAsyncValidators(kb(a,this._rawAsyncValidators))}removeValidators(a){this.setValidators($w(a,this._rawValidators))}removeAsyncValidators(a){this.setAsyncValidators($w(a,this._rawAsyncValidators))}hasValidator(a){return Sp(this._rawValidators,a)}hasAsyncValidator(a){return Sp(this._rawAsyncValidators,a)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(a={}){this.touched=!0,this._parent&&!a.onlySelf&&this._parent.markAsTouched(a)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(a=>a.markAllAsTouched())}markAsUntouched(a={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}markAsDirty(a={}){this.pristine=!1,this._parent&&!a.onlySelf&&this._parent.markAsDirty(a)}markAsPristine(a={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}markAsPending(a={}){this.status=cd,!1!==a.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!a.onlySelf&&this._parent.markAsPending(a)}disable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=ku,this.errors=null,this._forEachChild(t=>{t.disable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this._updateValue(),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(a={}){const e=this._parentMarkedDirty(a.onlySelf);this.status=Yl,this._forEachChild(t=>{t.enable(Object.assign(Object.assign({},a),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},a),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(a){this._parent&&!a.onlySelf&&(this._parent.updateValueAndValidity(a),a.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(a){this._parent=a}updateValueAndValidity(a={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yl||this.status===cd)&&this._runAsyncValidator(a.emitEvent)),!1!==a.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!a.onlySelf&&this._parent.updateValueAndValidity(a)}_updateTreeValidity(a={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(a)),this.updateValueAndValidity({onlySelf:!0,emitEvent:a.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ku:Yl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(a){if(this.asyncValidator){this.status=cd,this._hasOwnPendingAsyncValidator=!0;const e=xu(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:a})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(a,e={}){this.errors=a,this._updateControlsErrors(!1!==e.emitEvent)}get(a){return function Vb(n,a,e){if(null==a||(Array.isArray(a)||(a=a.split(e)),Array.isArray(a)&&0===a.length))return null;let t=n;return a.forEach(r=>{t=Pu(t)?t.controls.hasOwnProperty(r)?t.controls[r]:null:Fb(t)&&t.at(r)||null}),t}(this,a,".")}getError(a,e){const t=e?this.get(e):this;return t&&t.errors?t.errors[a]:null}hasError(a,e){return!!this.getError(a,e)}get root(){let a=this;for(;a._parent;)a=a._parent;return a}_updateControlsErrors(a){this.status=this._calculateStatus(),a&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(a)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?ku:this.errors?qm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(cd)?cd:this._anyControlsHaveStatus(qm)?qm:Yl}_anyControlsHaveStatus(a){return this._anyControls(e=>e.status===a)}_anyControlsDirty(){return this._anyControls(a=>a.dirty)}_anyControlsTouched(){return this._anyControls(a=>a.touched)}_updatePristine(a={}){this.pristine=!this._anyControlsDirty(),this._parent&&!a.onlySelf&&this._parent._updatePristine(a)}_updateTouched(a={}){this.touched=this._anyControlsTouched(),this._parent&&!a.onlySelf&&this._parent._updateTouched(a)}_isBoxedValue(a){return"object"==typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a}_registerOnCollectionChange(a){this._onCollectionChange=a}_setUpdateStrategy(a){zp(a)&&null!=a.updateOn&&(this._updateOn=a.updateOn)}_parentMarkedDirty(a){return!a&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class vr extends Fp{constructor(a=null,e,t){super(Np(e),Vp(t,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(a),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),zp(e)&&e.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(a)?a.value:a)}setValue(a,e={}){this.value=this._pendingValue=a,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(a,e={}){this.setValue(a,e)}reset(a=this.defaultValue,e={}){this._applyFormState(a),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(a){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(a){this._onChange.push(a)}_unregisterOnChange(a){Bp(this._onChange,a)}registerOnDisabledChange(a){this._onDisabledChange.push(a)}_unregisterOnDisabledChange(a){Bp(this._onDisabledChange,a)}_forEachChild(a){}_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(a){this._isBoxedValue(a)?(this.value=this._pendingValue=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=a}}class jp extends Fp{constructor(a,e,t){super(Np(e),Vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(a,e){return this.controls[a]?this.controls[a]:(this.controls[a]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(a,e,t={}){this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),delete this.controls[a],e&&this.registerControl(a,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled}setValue(a,e={}){Zm(this,a),Object.keys(a).forEach(t=>{Gm(this,t),this.controls[t].setValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(Object.keys(a).forEach(t=>{this.controls[t]&&this.controls[t].patchValue(a[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a={},e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(a,e,t)=>(a[t]=Um(e),a))}_syncPendingControls(){let a=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){Object.keys(this.controls).forEach(e=>{const t=this.controls[e];t&&a(t,e)})}_setUpControls(){this._forEachChild(a=>{a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(a){for(const e of Object.keys(this.controls)){const t=this.controls[e];if(this.contains(e)&&a(t))return!0}return!1}_reduceValue(){return this._reduceChildren({},(a,e,t)=>((e.enabled||this.disabled)&&(a[t]=e.value),a))}_reduceChildren(a,e){let t=a;return this._forEachChild((r,l)=>{t=e(t,r,l)}),t}_allControlsDisabled(){for(const a of Object.keys(this.controls))if(this.controls[a].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class rC extends Fp{constructor(a,e,t){super(Np(e),Vp(t,e)),this.controls=a,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(a){return this.controls[a]}push(a,e={}){this.controls.push(a),this._registerControl(a),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(a,e,t={}){this.controls.splice(a,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(a,e={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(a,e,t={}){this.controls[a]&&this.controls[a]._registerOnCollectionChange(()=>{}),this.controls.splice(a,1),e&&(this.controls.splice(a,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(a,e={}){Zm(this,a),a.forEach((t,r)=>{Gm(this,r),this.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(a,e={}){null!=a&&(a.forEach((t,r)=>{this.at(r)&&this.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(a=[],e={}){this._forEachChild((t,r)=>{t.reset(a[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(a=>Um(a))}clear(a={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:a.emitEvent}))}_syncPendingControls(){let a=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return a&&this.updateValueAndValidity({onlySelf:!0}),a}_forEachChild(a){this.controls.forEach((e,t)=>{a(e,t)})}_updateValue(){this.value=this.controls.filter(a=>a.enabled||this.disabled).map(a=>a.value)}_anyControls(a){return this.controls.some(e=>e.enabled&&a(e))}_setUpControls(){this._forEachChild(a=>this._registerControl(a))}_allControlsDisabled(){for(const a of this.controls)if(a.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(a){a.setParent(this),a._registerOnCollectionChange(this._onCollectionChange)}}const jb={provide:$n,useExisting:(0,i.Gpc)(()=>dd)},qp=(()=>Promise.resolve(null))();let dd=(()=>{class n extends $n{constructor(e,t){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.vpe,this.form=new jp({},sd(e),Rm(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){qp.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),kp(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){qp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){qp.then(()=>{const t=this._findContainer(e.path),r=new jp({});Fm(r,e),t.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){qp.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){qp.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,jm(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([jb]),i.qOj]}),n})();const ox={provide:Br,useExisting:(0,i.Gpc)(()=>ur)},Yp=(()=>Promise.resolve(null))();let ur=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._changeDetectorRef=d,this.control=new vr,this._registered=!1,this.update=new i.vpe,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=ld(0,l)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Ip(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){kp(this.control,this),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(e){Yp.then(()=>{var t;this.control.setValue(e,{emitViewToModelChange:!1}),null===(t=this._changeDetectorRef)||void 0===t||t.markForCheck()})}_updateDisabled(e){const t=e.isDisabled.currentValue,r=""===t||t&&"false"!==t;Yp.then(()=>{var l;r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck()})}_getPath(e){return this._parent?Lp(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36($n,9),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(i.sBO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([ox]),i.qOj,i.TTD]}),n})(),Wp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})();const sC={provide:Zn,useExisting:(0,i.Gpc)(()=>Up),multi:!0};let Up=(()=>{class n extends ql{writeValue(e){this.setProperty("value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&i.NdJ("input",function(l){return t.onChange(l.target.value)})("blur",function(){return t.onTouched()})},features:[i._Bn([sC]),i.qOj]}),n})(),Qm=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const Gp=new i.OlP("NgModelWithFormControlWarning"),lx={provide:Br,useExisting:(0,i.Gpc)(()=>os)};let os=(()=>{class n extends Br{constructor(e,t,r,l){super(),this._ngModelWarningConfig=l,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ld(0,r)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&jo(t,this,!1),kp(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ip(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&jo(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Gp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([lx]),i.qOj,i.TTD]}),n})();const cx={provide:$n,useExisting:(0,i.Gpc)(()=>Zs)};let Zs=(()=>{class n extends $n{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return kp(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){jo(e.control||null,e,!1),Bp(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,jm(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,r=this.form.get(e.path);t!==r&&(jo(t||null,e),Wm(r)&&(kp(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);Fm(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function Op(n,a){return Hu(n,a)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){zm(this.form,this),this._oldForm&&Hu(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(gn,10),i.Y36(Gs,10))},n.\u0275dir=i.lG2({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&i.NdJ("submit",function(l){return t.onSubmit(l)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([cx]),i.qOj,i.TTD]}),n})();const cC={provide:Br,useExisting:(0,i.Gpc)(()=>Qn)};let Qn=(()=>{class n extends Br{constructor(e,t,r,l,d){super(),this._ngModelWarningConfig=d,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(r),this.valueAccessor=ld(0,l)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),Ip(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Lp(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(i.Y36($n,13),i.Y36(gn,10),i.Y36(Gs,10),i.Y36(Zn,10),i.Y36(Gp,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([cC]),i.qOj,i.TTD]}),n})(),Wl=(()=>{class n{constructor(){this._validator=Ir}ngOnChanges(e){if(this.inputName in e){const t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):Ir,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();const mC={provide:gn,useExisting:(0,i.Gpc)(()=>Nr),multi:!0};let Nr=(()=>{class n extends Wl{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e=>function r1(n){return null!=n&&!1!==n&&"false"!=`${n}`}(e),this.createValidator=e=>Pm}enabled(e){return e}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&i.uIk("required",t._enabled?"":null)},inputs:{required:"required"},features:[i._Bn([mC]),i.qOj]}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Qm]]}),n})(),Jp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[AC]}),n})(),Ul=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Gp,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[AC]}),n})(),c1=(()=>{class n{group(e,t=null){const r=this._reduceControls(e);let s,l=null,d=null;return null!=t&&(function px(n){return void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn}(t)?(l=null!=t.validators?t.validators:null,d=null!=t.asyncValidators?t.asyncValidators:null,s=null!=t.updateOn?t.updateOn:void 0):(l=null!=t.validator?t.validator:null,d=null!=t.asyncValidator?t.asyncValidator:null)),new jp(r,{asyncValidators:d,updateOn:s,validators:l})}control(e,t,r){return new vr(e,t,r)}array(e,t,r){const l=e.map(d=>this._createControl(d));return new rC(l,t,r)}_reduceControls(e){const t={};return Object.keys(e).forEach(r=>{t[r]=this._createControl(e[r])}),t}_createControl(e){return Wm(e)||Pu(e)||Fb(e)?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:Ul}),n})();const yC=["trigger"],MC=["panel"];function mx(n,a){if(1&n&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.placeholder)}}function gx(n,a){if(1&n&&(i.TgZ(0,"span",12),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.triggerValue)}}function _x(n,a){1&n&&i.Hsn(0,0,["*ngSwitchCase","true"])}function bx(n,a){if(1&n&&(i.TgZ(0,"span",9),i.YNc(1,gx,2,1,"span",10),i.YNc(2,_x,1,0,"ng-content",11),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngSwitch",!!e.customTrigger),i.xp6(2),i.Q6J("ngSwitchCase",!0)}}function Ax(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",13),i.TgZ(1,"div",14,15),i.NdJ("@transformPanel.done",function(r){return i.CHM(e),i.oxw()._panelDoneAnimatingStream.next(r.toState)})("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)}),i.Hsn(3,1),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@transformPanelWrap",void 0),i.xp6(1),i.Gre("mat-select-panel ",e._getPanelTheme(),""),i.Udp("transform-origin",e._transformOrigin)("font-size",e._triggerFontSize,"px"),i.Q6J("ngClass",e.panelClass)("@transformPanel",e.multiple?"showing-multiple":"showing"),i.uIk("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}const wC=[[["mat-select-trigger"]],"*"],Xp=["mat-select-trigger","*"],eA={transformPanelWrap:Ai("transformPanelWrap",[Ct("* => void",Mr("@transformPanel",[Kg()],{optional:!0}))]),transformPanel:Ai("transformPanel",[Lt("void",Le({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Lt("showing",Le({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Lt("showing-multiple",Le({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ct("void => *",yt("120ms cubic-bezier(0, 0, 0.2, 1)")),Ct("* => void",yt("100ms 25ms linear",Le({opacity:0})))])};let d1=0;const TC=new i.OlP("mat-select-scroll-strategy"),wx=new i.OlP("MAT_SELECT_CONFIG"),Cx={provide:TC,deps:[Zr],useFactory:function Mx(n){return()=>n.scrollStrategies.reposition()}};class tA{constructor(a,e){this.source=a,this.value=e}}const xC=na(Vl(ts(up(class{constructor(n,a,e,t,r){this._elementRef=n,this._defaultErrorStateMatcher=a,this._parentForm=e,this._parentFormGroup=t,this.ngControl=r}})))),SC=new i.OlP("MatSelectTrigger");let EC=(()=>{class n extends xC{constructor(e,t,r,l,d,s,o,c,u,h,f,b,V,ee){var he,Oe,gt;super(d,l,o,c,h),this._viewportRuler=e,this._changeDetectorRef=t,this._ngZone=r,this._dir=s,this._parentFormField=u,this._liveAnnouncer=V,this._defaultOptions=ee,this._panelOpen=!1,this._compareWith=(ut,Kt)=>ut===Kt,this._uid="mat-select-"+d1++,this._triggerAriaLabelledBy=null,this._destroy=new He.xQ,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+d1++,this._panelDoneAnimatingStream=new He.xQ,this._overlayPanelClass=(null===(he=this._defaultOptions)||void 0===he?void 0:he.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(gt=null===(Oe=this._defaultOptions)||void 0===Oe?void 0:Oe.disableOptionCentering)&&void 0!==gt&>,this.ariaLabel="",this.optionSelectionChanges=ma(()=>{const ut=this.options;return ut?ut.changes.pipe(_i(ut),(0,ji.w)(()=>(0,Ei.T)(...ut.map(Kt=>Kt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Zt.q)(1),(0,ji.w)(()=>this.optionSelectionChanges))}),this.openedChange=new i.vpe,this._openedStream=this.openedChange.pipe((0,jt.h)(ut=>ut),(0,ht.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,jt.h)(ut=>!ut),(0,ht.U)(()=>{})),this.selectionChange=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==ee?void 0:ee.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=ee.typeaheadDebounceInterval),this._scrollStrategyFactory=b,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(f)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(_n.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(e){this._disableOptionCentering=je(e)}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){(e!==this._value||this._multiple&&Array.isArray(e))&&(this.options&&this._setSelectionByValue(e),this._value=e)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(e){this._typeaheadDebounceInterval=li(e)}get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new nn(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Bh(),tt(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(tt(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(_i(null),tt(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const e=this._getTriggerAriaLabelledby();if(e!==this._triggerAriaLabelledBy){const t=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?t.setAttribute("aria-labelledby",e):t.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(e){e.disabled&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(e){this.value=e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){const t=e.keyCode,r=40===t||38===t||37===t||39===t,l=13===t||32===t,d=this._keyManager;if(!d.isTyping()&&l&&!Tn(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){const s=this.selected;d.onKeydown(e);const o=this.selected;o&&s!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}}_handleOpenKeydown(e){const t=this._keyManager,r=e.keyCode,l=40===r||38===r,d=t.isTyping();if(l&&e.altKey)e.preventDefault(),this.close();else if(d||13!==r&&32!==r||!t.activeItem||Tn(e))if(!d&&this._multiple&&65===r&&e.ctrlKey){e.preventDefault();const s=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(s?o.select():o.deselect())})}else{const s=t.activeItemIndex;t.onKeydown(e),this._multiple&&l&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}else e.preventDefault(),t.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,Zt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectValue(t)),this._sortValues();else{const t=this._selectValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(e){const t=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return null!=r.value&&this._compareWith(r.value,e)}catch(l){return!1}});return t&&this._selectionModel.select(t),t}_initKeyManager(){this._keyManager=new jg(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(tt(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const e=(0,Ei.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(tt(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ei.T)(...this.options.map(t=>t._stateChanges)).pipe(tt(e)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(e,t){const r=this._selectionModel.isSelected(e);null!=e.value||this._multiple?(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())):(e.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(e.value)),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const e=this.options.toArray();this._selectionModel.sort((t,r)=>this.sortComparator?this.sortComparator(t,r,e):e.indexOf(t)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let t=null;t=this.multiple?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var e;return!this._panelOpen&&!this.disabled&&(null===(e=this.options)||void 0===e?void 0:e.length)>0}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();return this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var e;if(this.ariaLabel)return null;const t=null===(e=this._parentFormField)||void 0===e?void 0:e.getLabelId();let r=(t?t+" ":"")+this._valueId;return this.ariaLabelledby&&(r+=" "+this.ariaLabelledby),r}_panelDoneAnimating(e){this.openedChange.emit(e)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Qa),i.Y36(i.sBO),i.Y36(i.R0b),i.Y36(Kc),i.Y36(i.SBq),i.Y36(vn,8),i.Y36(dd,8),i.Y36(Zs,8),i.Y36(as,8),i.Y36(Br,10),i.$8M("tabindex"),i.Y36(TC),i.Y36(PT),i.Y36(wx,8))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(yC,5),i.Gf(MC,5),i.Gf(Bg,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.trigger=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first),i.iGM(r=i.CRH())&&(t._overlayDir=r.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[i.qOj,i.TTD]}),n})(),Iu=(()=>{class n extends EC{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(e,t,r){const l=this._getItemHeight();return Math.min(Math.max(0,l*e-t+l/2),r)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(tt(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(e){const t=fm(e,this.options,this.optionGroups),r=this._getItemHeight();this.panel.nativeElement.scrollTop=0===e&&1===t?0:$_((e+t)*r,r,this.panel.nativeElement.scrollTop,256)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(e){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(e)}_getChangeEvent(e){return new tA(this,e)}_calculateOverlayOffsetX(){const e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),t=this._viewportRuler.getViewportSize(),r=this._isRtl(),l=this.multiple?56:32;let d;if(this.multiple)d=40;else if(this.disableOptionCentering)d=16;else{let c=this._selectionModel.selected[0]||this.options.first;d=c&&c.group?32:16}r||(d*=-1);const s=0-(e.left+d-(r?l:0)),o=e.right+d-t.width+(r?0:l);s>0?d+=s+8:o>0&&(d-=o+8),this._overlayDir.offsetX=Math.round(d),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(e,t,r){const l=this._getItemHeight(),d=(l-this._triggerRect.height)/2,s=Math.floor(256/l);let o;return this.disableOptionCentering?0:(o=0===this._scrollTop?e*l:this._scrollTop===r?(e-(this._getItemCount()-s))*l+(l-(this._getItemCount()*l-256)%l):t-l/2,Math.round(-1*o-d))}_checkOverlayWithinViewport(e){const t=this._getItemHeight(),r=this._viewportRuler.getViewportSize(),l=this._triggerRect.top-8,d=r.height-this._triggerRect.bottom-8,s=Math.abs(this._offsetY),c=Math.min(this._getItemCount()*t,256)-s-this._triggerRect.height;c>d?this._adjustPanelUp(c,d):s>l?this._adjustPanelDown(s,l,e):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(e,t){const r=Math.round(e-t);this._scrollTop-=r,this._offsetY-=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(e,t,r){const l=Math.round(e-t);if(this._scrollTop+=l,this._offsetY+=l,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=r)return this._scrollTop=r,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const e=this._getItemHeight(),t=this._getItemCount(),r=Math.min(t*e,256),d=t*e-r;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=fm(s,this.options,this.optionGroups);const o=r/2;this._scrollTop=this._calculateOverlayScroll(s,o,d),this._offsetY=this._calculateOverlayOffsetY(s,o,d),this._checkOverlayWithinViewport(d)}_getOriginBasedOnOption(){const e=this._getItemHeight(),t=(e-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-t+e/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-select"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,SC,5),i.Suo(r,ka,5),i.Suo(r,mp,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.customTrigger=l.first),i.iGM(l=i.CRH())&&(t.options=l),i.iGM(l=i.CRH())&&(t.optionGroups=l)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t._onFocus()})("blur",function(){return t._onBlur()}),2&e&&(i.uIk("id",t.id)("tabindex",t.tabIndex)("aria-controls",t.panelOpen?t.id+"-panel":null)("aria-expanded",t.panelOpen)("aria-label",t.ariaLabel||null)("aria-required",t.required.toString())("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-describedby",t._ariaDescribedby||null)("aria-activedescendant",t._getAriaActiveDescendant()),i.ekj("mat-select-disabled",t.disabled)("mat-select-invalid",t.errorState)("mat-select-required",t.required)("mat-select-empty",t.empty)("mat-select-multiple",t.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[i._Bn([{provide:td,useExisting:n},{provide:pm,useExisting:n}]),i.qOj],ngContentSelectors:Xp,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(e,t){if(1&e&&(i.F$t(wC),i.TgZ(0,"div",0,1),i.NdJ("click",function(){return t.toggle()}),i.TgZ(3,"div",2),i.YNc(4,mx,2,1,"span",3),i.YNc(5,bx,3,2,"span",4),i.qZA(),i.TgZ(6,"div",5),i._UZ(7,"div",6),i.qZA(),i.qZA(),i.YNc(8,Ax,4,14,"ng-template",7),i.NdJ("backdropClick",function(){return t.close()})("attach",function(){return t._onAttached()})("detach",function(){return t.close()})),2&e){const r=i.MAs(1);i.uIk("aria-owns",t.panelOpen?t.id+"-panel":null),i.xp6(3),i.Q6J("ngSwitch",t.empty),i.uIk("id",t._valueId),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("cdkConnectedOverlayPanelClass",t._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",t._scrollStrategy)("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",t.panelOpen)("cdkConnectedOverlayPositions",t._positions)("cdkConnectedOverlayMinWidth",null==t._triggerRect?null:t._triggerRect.width)("cdkConnectedOverlayOffsetY",t._offsetY)}},directives:[Ig,w.RF,w.n9,w.ED,Bg,w.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;opacity:0}\n'],encapsulation:2,data:{animation:[eA.transformPanelWrap,eA.transformPanel]},changeDetection:0}),n})(),pd=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Cx],imports:[[w.ez,Fc,uu,ct],Sa,ss,uu,ct]}),n})();const iA=new Set;let fd,nA=(()=>{class n{constructor(e){this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tx}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&function ef(n){if(!iA.has(n))try{fd||(fd=document.createElement("style"),fd.setAttribute("type","text/css"),document.head.appendChild(fd)),fd.sheet&&(fd.sheet.insertRule(`@media ${n} {body{ }}`,0),iA.add(n))}catch(a){console.error(a)}}(e),this._matchMedia(e)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Tx(n){return{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{}}}let rA=(()=>{class n{constructor(e,t){this._mediaMatcher=e,this._zone=t,this._queries=new Map,this._destroySubject=new He.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Bu(kc(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){const r=Bu(kc(e)).map(d=>this._registerQuery(d).observable);let l=(0,no.aj)(r);return l=ws(l.pipe((0,Zt.q)(1)),l.pipe(Ih(1),(0,Oh.b)(0))),l.pipe((0,ht.U)(d=>{const s={matches:!1,breakpoints:{}};return d.forEach(({matches:o,query:c})=>{s.matches=s.matches||o,s.breakpoints[c]=o}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);const t=this._mediaMatcher.matchMedia(e),l={observable:new Ri.y(d=>{const s=o=>this._zone.run(()=>d.next(o));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(_i(t),(0,ht.U)(({matches:d})=>({query:e,matches:d})),tt(this._destroySubject)),mql:t};return this._queries.set(e,l),l}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nA),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Bu(n){return n.map(a=>a.split(",")).reduce((a,e)=>a.concat(e)).map(a=>a.trim())}const LC={tooltipState:Ai("state",[Lt("initial, void, hidden",Le({opacity:0,transform:"scale(0)"})),Lt("visible",Le({transform:"scale(1)"})),Ct("* => visible",yt("200ms cubic-bezier(0, 0, 0.2, 1)",Ll([Le({opacity:0,transform:"scale(0)",offset:0}),Le({opacity:.5,transform:"scale(0.99)",offset:.5}),Le({opacity:1,transform:"scale(1)",offset:1})]))),Ct("* => hidden",yt("100ms cubic-bezier(0, 0, 0.2, 1)",Le({opacity:0})))])},PC="tooltip-panel",aA=xa({passive:!0}),sA=new i.OlP("mat-tooltip-scroll-strategy"),IC={provide:sA,deps:[Zr],useFactory:function OC(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},BC=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function NC(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let Ex=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._overlay=e,this._elementRef=t,this._scrollDispatcher=r,this._viewContainerRef=l,this._ngZone=d,this._platform=s,this._ariaDescriber=o,this._focusMonitor=c,this._dir=h,this._defaultOptions=f,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new He.xQ,this._scrollStrategy=u,this._document=b,f&&(f.position&&(this.position=f.position),f.touchGestures&&(this.touchGestures=f.touchGestures)),h.change.pipe(tt(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(e){var t;e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(t=this._tooltipInstance)||void 0===t||t.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=li(e)}get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=li(e)}get message(){return this._message}set message(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=e?String(e).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(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(tt(this._destroyed)).subscribe(e=>{e?"keyboard"===e&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const e=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,r])=>{e.removeEventListener(t,r,aA)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const t=this._createOverlay();this._detach(),this._portal=this._portal||new Vc(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=t.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}hide(e=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(e)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),t=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return t.positionChanges.pipe(tt(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:t,panelClass:`${this._cssClassPrefix}-${PC}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(tt(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(tt(this._destroyed)).subscribe(()=>{var r;return null===(r=this._tooltipInstance)||void 0===r?void 0:r._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(tt(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&27===r.keyCode&&!Tn(r)&&(r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){const t=e.getConfig().positionStrategy,r=this._getOrigin(),l=this._getOverlayPosition();t.withPositions([this._addOffset(Object.assign(Object.assign({},r.main),l.main)),this._addOffset(Object.assign(Object.assign({},r.fallback),l.fallback))])}_addOffset(e){return e}_getOrigin(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t||"below"==t?r={originX:"center",originY:"above"==t?"top":"bottom"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={originX:"start",originY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={originX:"end",originY:"center"});const{x:l,y:d}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:l,originY:d}}}_getOverlayPosition(){const e=!this._dir||"ltr"==this._dir.value,t=this.position;let r;"above"==t?r={overlayX:"center",overlayY:"bottom"}:"below"==t?r={overlayX:"center",overlayY:"top"}:"before"==t||"left"==t&&e||"right"==t&&!e?r={overlayX:"end",overlayY:"center"}:("after"==t||"right"==t&&e||"left"==t&&!e)&&(r={overlayX:"start",overlayY:"center"});const{x:l,y:d}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:l,overlayY:d}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1),tt(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return"above"===this.position||"below"===this.position?"top"===t?t="bottom":"bottom"===t&&(t="top"):"end"===e?e="start":"start"===e&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){const{overlayY:t,originX:r,originY:l}=e;let d;if(d="center"===t?this._dir&&"rtl"===this._dir.value?"end"===r?"left":"right":"start"===r?"left":"right":"bottom"===t&&"top"===l?"above":"below",d!==this._currentPosition){const s=this._overlayRef;if(s){const o=`${this._cssClassPrefix}-${PC}-`;s.removePanelClass(o+this._currentPosition),s.addPanelClass(o+d)}this._currentPosition=d}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",()=>this.hide()],["wheel",t=>this._wheelListener(t)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const t=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,r])=>{this._elementRef.nativeElement.addEventListener(t,r,aA)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){const t=this._document.elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;t!==r&&!r.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){const e=this.touchGestures;if("off"!==e){const t=this._elementRef.nativeElement,r=t.style;("on"===e||"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName)&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),("on"===e||!t.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),Tr=(()=>{class n extends Ex{constructor(e,t,r,l,d,s,o,c,u,h,f,b){super(e,t,r,l,d,s,o,c,u,h,f,b),this._tooltipComponent=Hx}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(Si),i.Y36(zh),i.Y36(Rr),i.Y36(sA),i.Y36(vn,8),i.Y36(BC,8),i.Y36(w.K0))},n.\u0275dir=i.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[i.qOj]}),n})(),Dx=(()=>{class n{constructor(e){this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new He.xQ}show(e){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},e)}hide(e){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},e)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(e){const t=e.toState;"hidden"===t&&!this.isVisible()&&this._onHide.next(),("visible"===t||"hidden"===t)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n}),n})(),Hx=(()=>{class n extends Dx{constructor(e,t){super(e),this._breakpointObserver=t,this._isHandset=this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(rA))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,t){2&e&&i.Udp("zoom","visible"===t._visibility?1:null)},features:[i.qOj],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.NdJ("@state.start",function(){return t._animationStart()})("@state.done",function(l){return t._animationDone(l)}),i.ALo(1,"async"),i._uU(2),i.qZA()),2&e){let r;i.ekj("mat-tooltip-handset",null==(r=i.lcZ(1,5,t._isHandset))?null:r.matches),i.Q6J("ngClass",t.tooltipClass)("@state",t._visibility),i.xp6(2),i.Oqu(t.message)}},directives:[w.mk],pipes:[w.Ov],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[LC.tooltipState]},changeDetection:0}),n})(),md=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[IC],imports:[[Uh,w.ez,Fc,ct],ct,Sa]}),n})();function VC(n,a){if(1&n&&(i.TgZ(0,"mat-option",19),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function Lx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",16),i.TgZ(1,"mat-select",17),i.NdJ("selectionChange",function(r){return i.CHM(e),i.oxw(2)._changePageSize(r.value)}),i.YNc(2,VC,2,2,"mat-option",18),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("appearance",e._formFieldAppearance)("color",e.color),i.xp6(1),i.Q6J("value",e.pageSize)("disabled",e.disabled)("aria-label",e._intl.itemsPerPageLabel),i.xp6(1),i.Q6J("ngForOf",e._displayedPageSizeOptions)}}function kx(n,a){if(1&n&&(i.TgZ(0,"div",20),i._uU(1),i.qZA()),2&n){const e=i.oxw(2);i.xp6(1),i.Oqu(e.pageSize)}}function Px(n,a){if(1&n&&(i.TgZ(0,"div",12),i.TgZ(1,"div",13),i._uU(2),i.qZA(),i.YNc(3,Lx,3,6,"mat-form-field",14),i.YNc(4,kx,2,1,"div",15),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e._intl.itemsPerPageLabel," "),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length>1),i.xp6(1),i.Q6J("ngIf",e._displayedPageSizeOptions.length<=1)}}function Rx(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",21),i.NdJ("click",function(){return i.CHM(e),i.oxw().firstPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",22),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),i.uIk("aria-label",e._intl.firstPageLabel)}}function p(n,a){if(1&n){const e=i.EpF();i.O4$(),i.kcU(),i.TgZ(0,"button",23),i.NdJ("click",function(){return i.CHM(e),i.oxw().lastPage()}),i.O4$(),i.TgZ(1,"svg",7),i._UZ(2,"path",24),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),i.uIk("aria-label",e._intl.lastPageLabel)}}let m=(()=>{class n{constructor(){this.changes=new He.xQ,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(e,t,r)=>{if(0==r||0==t)return`0 of ${r}`;const l=e*t;return`${l+1} \u2013 ${l<(r=Math.max(r,0))?Math.min(l+t,r):l+t} of ${r}`}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _={provide:m,deps:[[new i.FiY,new i.tp0,m]],useFactory:function g(n){return n||new m}},D=new i.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),k=ts(om(class{}));let P=(()=>{class n extends k{constructor(e,t,r){if(super(),this._intl=e,this._changeDetectorRef=t,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new i.vpe,this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),r){const{pageSize:l,pageSizeOptions:d,hidePageSize:s,showFirstLastButtons:o}=r;null!=l&&(this._pageSize=l),null!=d&&(this._pageSizeOptions=d),null!=s&&(this._hidePageSize=s),null!=o&&(this._showFirstLastButtons=o)}}get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(li(e),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(e){this._length=li(e),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(li(e),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(t=>li(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(e){this._hidePageSize=je(e)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(e){this._showFirstLastButtons=je(e)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(e)}previousPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(e)}firstPage(){if(!this.hasPreviousPage())return;const e=this.pageIndex;this.pageIndex=0,this._emitPageEvent(e)}lastPage(){if(!this.hasNextPage())return;const e=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(e)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const e=this.getNumberOfPages()-1;return this.pageIndexe-t),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[i.qOj]}),n})(),F=(()=>{class n extends P{constructor(e,t,r){super(e,t,r),r&&null!=r.formFieldAppearance&&(this._formFieldAppearance=r.formFieldAppearance)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(m),i.Y36(i.sBO),i.Y36(D,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[i.qOj],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,Px,5,3,"div",2),i.TgZ(3,"div",3),i.TgZ(4,"div",4),i._uU(5),i.qZA(),i.YNc(6,Rx,3,5,"button",5),i.TgZ(7,"button",6),i.NdJ("click",function(){return t.previousPage()}),i.O4$(),i.TgZ(8,"svg",7),i._UZ(9,"path",8),i.qZA(),i.qZA(),i.kcU(),i.TgZ(10,"button",9),i.NdJ("click",function(){return t.nextPage()}),i.O4$(),i.TgZ(11,"svg",7),i._UZ(12,"path",10),i.qZA(),i.qZA(),i.YNc(13,p,3,5,"button",11),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",!t.hidePageSize),i.xp6(3),i.hij(" ",t._intl.getRangeLabel(t.pageIndex,t.pageSize,t.length)," "),i.xp6(1),i.Q6J("ngIf",t.showFirstLastButtons),i.xp6(1),i.Q6J("matTooltip",t._intl.previousPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),i.uIk("aria-label",t._intl.previousPageLabel),i.xp6(3),i.Q6J("matTooltip",t._intl.nextPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),i.uIk("aria-label",t._intl.nextPageLabel),i.xp6(3),i.Q6J("ngIf",t.showFirstLastButtons))},directives:[mn,Iu,ka,kt,w.O5,w.sg,Tr],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),n})(),W=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[_],imports:[[w.ez,ns,pd,md,ct]]}),n})();var te=x(943);const se=["mat-menu-item",""];function pe(n,a){1&n&&(i.O4$(),i.TgZ(0,"svg",2),i._UZ(1,"polygon",3),i.qZA())}const ve=["*"];function Ve(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(r){return i.CHM(e),i.oxw()._handleKeydown(r)})("click",function(){return i.CHM(e),i.oxw().closed.emit("click")})("@transformMenu.start",function(r){return i.CHM(e),i.oxw()._onAnimationStart(r)})("@transformMenu.done",function(r){return i.CHM(e),i.oxw()._onAnimationDone(r)}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("id",e.panelId)("ngClass",e._classList)("@transformMenu",e._panelAnimationState),i.uIk("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}const Ye={transformMenu:Ai("transformMenu",[Lt("void",Le({opacity:0,transform:"scale(0.8)"})),Ct("void => enter",yt("120ms cubic-bezier(0, 0, 0.2, 1)",Le({opacity:1,transform:"scale(1)"}))),Ct("* => void",yt("100ms 25ms linear",Le({opacity:0})))]),fadeInItems:Ai("fadeInItems",[Lt("showing",Le({opacity:1})),Ct("void => *",[Le({opacity:0}),yt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},dt=new i.OlP("MatMenuContent"),Nu=new i.OlP("MAT_MENU_PANEL"),h1=na(ts(class{}));let $l=(()=>{class n extends h1{constructor(e,t,r,l,d){var s;super(),this._elementRef=e,this._focusMonitor=r,this._parentMenu=l,this._changeDetectorRef=d,this.role="menuitem",this._hovered=new He.xQ,this._focused=new He.xQ,this._highlighted=!1,this._triggersSubmenu=!1,null===(s=null==l?void 0:l.addItem)||void 0===s||s.call(l,this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),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(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var e;const t=this._elementRef.nativeElement.cloneNode(!0),r=t.querySelectorAll("mat-icon, .material-icons");for(let l=0;l{class n{constructor(e,t,r){this._elementRef=e,this._ngZone=t,this._defaultOptions=r,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new i.n_E,this._tabSubscription=re.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new He.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+f1++}get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(e){this._overlapTrigger=je(e)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(e){this._hasBackdrop=je(e)}set panelClass(e){const t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(r=>{this._classList[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{this._classList[r]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Yc(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,ji.w)(e=>(0,Ei.T)(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(_i(this._directDescendantItems),(0,ji.w)(t=>(0,Ei.T)(...t.map(r=>r._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){const t=e.keyCode,r=this._keyManager;switch(t){case 27:Tn(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===t||40===t)&&r.setFocusOrigin("keyboard"),void r.onKeydown(e)}e.stopPropagation()}focusFirstItem(e="program"){this.lazyContent?this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>this._focusFirstItem(e)):this._focusFirstItem(e)}_focusFirstItem(e){const t=this._keyManager;if(t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&this._directDescendantItems.length){let r=this._directDescendantItems.first._getHostElement().parentElement;for(;r;){if("menu"===r.getAttribute("role")){r.focus();break}r=r.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){const t=Math.min(this._baseElevation+e,24),r=`${this._elevationPrefix}${t}`,l=Object.keys(this._classList).find(d=>d.startsWith(this._elevationPrefix));(!l||l===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[r]=!0,this._previousElevation=r)}setPositionClasses(e=this.xPosition,t=this.yPosition){const r=this._classList;r["mat-menu-before"]="before"===e,r["mat-menu-after"]="after"===e,r["mat-menu-above"]="above"===t,r["mat-menu-below"]="below"===t}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,"enter"===e.toState&&0===this._keyManager.activeItemIndex&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(_i(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(tf))},n.\u0275dir=i.lG2({type:n,contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,dt,5),i.Suo(r,$l,5),i.Suo(r,$l,4)),2&e){let l;i.iGM(l=i.CRH())&&(t.lazyContent=l.first),i.iGM(l=i.CRH())&&(t._allItems=l),i.iGM(l=i.CRH())&&(t.items=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(i.Rgc,5),2&e){let r;i.iGM(r=i.CRH())&&(t.templateRef=r.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),n})(),Ox=(()=>{class n extends Ql{constructor(e,t,r){super(e,t,r),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(tf))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(e,t){2&e&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[i._Bn([{provide:Nu,useExisting:n}]),i.qOj],ngContentSelectors:ve,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,Ve,3,6,"ng-template"))},directives:[w.mk],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[Ye.transformMenu,Ye.fadeInItems]},changeDetection:0}),n})();const Ix=new i.OlP("mat-menu-scroll-strategy"),$D={provide:Ix,deps:[Zr],useFactory:function ZD(n){return()=>n.scrollStrategies.reposition()}},Nx=xa({passive:!0});let QD=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._overlay=e,this._element=t,this._viewContainerRef=r,this._menuItemInstance=s,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=re.w.EMPTY,this._hoverSubscription=re.w.EMPTY,this._menuCloseSubscription=re.w.EMPTY,this._handleTouchStart=u=>{Yh(u)||(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=l,this._parentMaterialMenu=d instanceof Ql?d:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,Nx),s&&(s._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),("click"===t||"tab"===t)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Nx),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)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const e=this._createOverlay(),t=e.getConfig(),r=t.positionStrategy;this._setPosition(r),t.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Ql&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(tt(this.menu.close)).subscribe(()=>{r.withLockedPosition(!1).reapplyLastPosition(),r.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){var e;null===(e=this._overlayRef)||void 0===e||e.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===e||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Ql?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe((0,jt.h)(r=>"void"===r.toState),(0,Zt.q)(1),tt(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let e=0,t=this.menu.parentMenu;for(;t;)e++,t=t.parentMenu;this.menu.setElevation(e)}}_setIsMenuOpen(e){this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Ph({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e){this.menu.setPositionClasses&&e.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(e){let[t,r]="before"===this.menu.xPosition?["end","start"]:["start","end"],[l,d]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[s,o]=[l,d],[c,u]=[t,r],h=0;this.triggersSubmenu()?(u=t="before"===this.menu.xPosition?"start":"end",r=c="end"===t?"start":"end",h="bottom"===l?8:-8):this.menu.overlapTrigger||(s="top"===l?"bottom":"top",o="top"===d?"bottom":"top"),e.withPositions([{originX:t,originY:s,overlayX:c,overlayY:l,offsetY:h},{originX:r,originY:s,overlayX:u,overlayY:l,offsetY:h},{originX:t,originY:o,overlayX:c,overlayY:d,offsetY:-h},{originX:r,originY:o,overlayX:u,overlayY:d,offsetY:-h}])}_menuClosingActions(){const e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),r=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,$e.of)(),l=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,jt.h)(d=>d!==this._menuItemInstance),(0,jt.h)(()=>this._menuOpen)):(0,$e.of)();return(0,Ei.T)(e,r,l,t)}_handleMousedown(e){Gd(e)||(this._openedBy=0===e.button?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){const t=e.keyCode;(13===t||32===t)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===t&&"ltr"===this.dir||37===t&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,jt.h)(e=>e===this._menuItemInstance&&!e.disabled),(0,te.g)(0,Ch)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ql&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Zt.q)(1),(0,te.g)(0,Ch),tt(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new xl(this.menu.templateRef,this._viewContainerRef)),this._portal}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Zr),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(Ix),i.Y36(Nu,8),i.Y36($l,10),i.Y36(vn,8),i.Y36(Rr))},n.\u0275dir=i.lG2({type:n,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("mousedown",function(l){return t._handleMousedown(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("aria-expanded",t.menuOpen||null)("aria-controls",t.menuOpen?t.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"}}),n})(),Vx=(()=>{class n extends QD{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[i.qOj]}),n})(),m1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[$D],imports:[[w.ez,ct,ti,Fc],Sa,ct]}),n})();var cA=x(1737),JD=x(2474);const XD=["*"];let dA;function g1(n){var a;return(null===(a=function KD(){if(void 0===dA&&(dA=null,"undefined"!=typeof window)){const n=window;void 0!==n.trustedTypes&&(dA=n.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return dA}())||void 0===a?void 0:a.createHTML(n))||n}function zx(n){return Error(`Unable to find icon with the name "${n}"`)}function Fx(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function jx(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Vu{constructor(a,e,t){this.url=a,this.svgText=e,this.options=t}}let _1=(()=>{class n{constructor(e,t,r,l){this._httpClient=e,this._sanitizer=t,this._errorHandler=l,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",this._document=r}addSvgIcon(e,t,r){return this.addSvgIconInNamespace("",e,t,r)}addSvgIconLiteral(e,t,r){return this.addSvgIconLiteralInNamespace("",e,t,r)}addSvgIconInNamespace(e,t,r,l){return this._addSvgIconConfig(e,t,new Vu(r,null,l))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,r,l){const d=this._sanitizer.sanitize(i.q3G.HTML,r);if(!d)throw jx(r);const s=g1(d);return this._addSvgIconConfig(e,t,new Vu("",s,l))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,r){return this._addSvgIconSetConfig(e,new Vu(t,null,r))}addSvgIconSetLiteralInNamespace(e,t,r){const l=this._sanitizer.sanitize(i.q3G.HTML,t);if(!l)throw jx(t);const d=g1(l);return this._addSvgIconSetConfig(e,new Vu("",d,r))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){const t=this._sanitizer.sanitize(i.q3G.RESOURCE_URL,e);if(!t)throw Fx(e);const r=this._cachedIconsByUrl.get(t);return r?(0,$e.of)(uA(r)):this._loadSvgIconFromConfig(new Vu(e,null)).pipe((0,I.b)(l=>this._cachedIconsByUrl.set(t,l)),(0,ht.U)(l=>uA(l)))}getNamedSvgIcon(e,t=""){const r=qx(t,e);let l=this._svgIconConfigs.get(r);if(l)return this._getSvgFromConfig(l);if(l=this._getIconConfigFromResolvers(t,e),l)return this._svgIconConfigs.set(r,l),this._getSvgFromConfig(l);const d=this._iconSetConfigs.get(t);return d?this._getSvgFromIconSetConfigs(e,d):(0,cA._)(zx(r))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?(0,$e.of)(uA(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe((0,ht.U)(t=>uA(t)))}_getSvgFromIconSetConfigs(e,t){const r=this._extractIconWithNameFromAnySet(e,t);return r?(0,$e.of)(r):gm(t.filter(d=>!d.svgText).map(d=>this._loadSvgIconSetFromConfig(d).pipe((0,Cn.K)(s=>{const c=`Loading icon set URL: ${this._sanitizer.sanitize(i.q3G.RESOURCE_URL,d.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(c)),(0,$e.of)(null)})))).pipe((0,ht.U)(()=>{const d=this._extractIconWithNameFromAnySet(e,t);if(!d)throw zx(e);return d}))}_extractIconWithNameFromAnySet(e,t){for(let r=t.length-1;r>=0;r--){const l=t[r];if(l.svgText&&l.svgText.toString().indexOf(e)>-1){const d=this._svgElementFromConfig(l),s=this._extractSvgIconFromSet(d,e,l.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t),(0,ht.U)(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?(0,$e.of)(null):this._fetchIcon(e).pipe((0,I.b)(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,r){const l=e.querySelector(`[id="${t}"]`);if(!l)return null;const d=l.cloneNode(!0);if(d.removeAttribute("id"),"svg"===d.nodeName.toLowerCase())return this._setSvgAttributes(d,r);if("symbol"===d.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(d),r);const s=this._svgElementFromString(g1(""));return s.appendChild(d),this._setSvgAttributes(s,r)}_svgElementFromString(e){const t=this._document.createElement("DIV");t.innerHTML=e;const r=t.querySelector("svg");if(!r)throw Error(" tag not found");return r}_toSvgElement(e){const t=this._svgElementFromString(g1("")),r=e.attributes;for(let l=0;lg1(u)),ye(()=>this._inProgressUrlFetches.delete(s)),(0,JD.B)());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,t,r){return this._svgIconConfigs.set(qx(e,t),r),this}_addSvgIconSetConfig(e,t){const r=this._iconSetConfigs.get(e);return r?r.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){const t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let r=0;ra?a.pathname+a.search:""}}}),Yx=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],o2=Yx.map(n=>`[${n}]`).join(", "),l2=/^url\(['"]?#(.*?)['"]?\)$/;let An=(()=>{class n extends r2{constructor(e,t,r,l,d){super(e),this._iconRegistry=t,this._location=l,this._errorHandler=d,this._inline=!1,this._currentIconFetch=re.w.EMPTY,r||e.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(e){this._inline=je(e)}get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}get fontSet(){return this._fontSet}set fontSet(e){const t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(e){const t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_splitIconName(e){if(!e)return["",""];const t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const e=this._elementsWithExternalReferences;if(e&&e.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();const t=e.querySelectorAll("style");for(let l=0;l{r.forEach(d=>{l.setAttribute(d.name,`url('${e}#${d.value}')`)})})}_cacheChildrenWithExternalReferences(e){const t=e.querySelectorAll(o2),r=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let l=0;l{const s=t[l],o=s.getAttribute(d),c=o?o.match(l2):null;if(c){let u=r.get(s);u||(u=[],r.set(s,u)),u.push({name:d,value:c[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){const[t,r]=this._splitIconName(e);t&&(this._svgNamespace=t),r&&(this._svgName=r),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(r,t).pipe((0,Zt.q)(1)).subscribe(l=>this._setSvgElement(l),l=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${r}! ${l.message}`))})}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(_1),i.$8M("aria-hidden"),i.Y36(a2),i.Y36(i.qLn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("data-mat-icon-type",t._usingFontIcon()?"font":"svg")("data-mat-icon-name",t._svgName||t.fontIcon)("data-mat-icon-namespace",t._svgNamespace||t.fontSet),i.ekj("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.qOj],ngContentSelectors:XD,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[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}\n"],encapsulation:2,changeDetection:0}),n})(),Yo=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct],ct]}),n})(),Wx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[W,m1,Yo,ns,Mu,w.ez]]}),n})();var c2=x(655),d2=x(9441);const nf=[5,10,25,100];function Pi(){const n=new hu;return n.disableClose=!0,n.autoFocus=!1,n}function zu(n){return"virt"===n.namespace.split(":")[4]}const y2=new Intl.Collator("cs",{numeric:!0});function b1(n,a,e){const t=a.active,r=a.direction;return t&&""!==r?n.sort((l,d)=>{const s=e(l,t),o=e(d,t);return y2.compare(s,o)*("asc"===r?1:-1)}):n}function A1(n,a,e,t,r){a=a.toLowerCase();let l="";return e.forEach(d=>{l+=";"+t(n,d)}),r&&(l+=";"+t(n,"uuid")),l.toLowerCase().includes(a)}function rf(n,a,e){const t=[],r=["checkbox","select","edit","menu","cite","extend","recent"];return a=a.filter(l=>!r.includes(l)),n.forEach(l=>{const d={};a.forEach(s=>{var o;d[s]=(null!==(o=e(l,s))&&void 0!==o?o:"").split('"').join("''").trim()}),t.push(d)}),t}function af(n,a="csv",e="export"){if("csv"===a){const t=(o,c)=>null===c?"":c,r=Object.keys(n[0]),l=n.map(o=>r.map(c=>JSON.stringify(o[c],t)).join(","));l.unshift(r.join(",").split(" ").join("_").split('"').join("''"));const d=l.join("\r\n"),s=new Blob([d],{type:"text/csv"});(0,d2.saveAs)(s,`${e}.${a}`)}}function Ux(n,a){return n.name.toLowerCase()>a.name.toLowerCase()?1:n.name.toLowerCase()===a.name.toLowerCase()?0:-1}const Zx="GUI_CONFIG.PREF_PAGE_SIZE.";let w2=(()=>{class n{getString(e){return localStorage.getItem(e)}getNumber(e){return parseInt(localStorage.getItem(e),10)}setNumber(e,t){localStorage.setItem(e,t.toString())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C2=(()=>{class n{constructor(e){this.guiConfigService=e}getTablePageSize(e){const t=this.guiConfigService.getNumber(Zx+e);if(!isNaN(t))return t;const r=this.guiConfigService.getNumber("GUI_CONFIG.PREF_PAGE_SIZE");return isNaN(r)?10:r}setTablePageSize(e,t){this.guiConfigService.setNumber(Zx+e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w2))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),v2=(()=>{class n{constructor(){this.exportData=new i.vpe}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-options"]],outputs:{exportData:"exportData"},decls:13,vars:5,consts:[[1,"position-right"],["mat-icon-button","",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor"],["exportOptions","matMenu"],["mat-menu-item","",3,"click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"button",1),i.TgZ(2,"mat-icon"),i._uU(3,"more_vert"),i.qZA(),i.qZA(),i.TgZ(4,"mat-menu",null,2),i.TgZ(6,"button",3),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.qZA(),i.TgZ(9,"mat-menu",null,4),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.exportData.emit("csv")}),i._uU(12,"Csv"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(5),l=i.MAs(10);i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(5),i.Q6J("matMenuTriggerFor",l),i.xp6(1),i.hij(" ",i.lcZ(8,3,"SHARED_LIB.PERUN.COMPONENTS.TABLE_OPTIONS.EXPORT_TO_FILE")," ")}},directives:[kt,Vx,An,Ox,$l],pipes:[lt],styles:[""]}),n})();function T2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}function x2(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-table-options",6),i.NdJ("exportData",function(r){return i.CHM(e),i.oxw().exportData.emit(r)}),i.qZA()}}const S2=["*"];let ls=(()=>{class n{constructor(e){this.tableConfigService=e,this.hideExport=!1,this.pageSizeOptions=nf,this.dataLength=0,this.exportData=new i.vpe,this.pageSize=5}set matPaginator(e){this.paginator=e}ngOnInit(){this.pageSize=this.tableConfigService.getTablePageSize(this.tableId),null===this.pageSizeOptions&&(this.pageSize=5)}pageChangedTop(e){this.pageSize=e.pageSize,this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}pageChangedBottom(e){this.paginator.pageSize=e.pageSize,this.paginator.pageIndex=e.pageIndex,this.paginator.page.emit(e),this.pageSize=e.pageSize,this.tableId&&this.tableConfigService.setTablePageSize(this.tableId,e.pageSize)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(C2))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-table-wrapper"]],viewQuery:function(e,t){if(1&e&&i.Gf(F,7),2&e){let r;i.iGM(r=i.CRH())&&(t.matPaginator=r.first)}},inputs:{hideExport:"hideExport",pageSizeOptions:"pageSizeOptions",dataLength:"dataLength",tableId:"tableId"},outputs:{exportData:"exportData"},ngContentSelectors:S2,decls:9,vars:9,consts:[[1,"card-body","pt-0"],[1,"row","justify-content-end","align-items-center"],[3,"length","pageSizeOptions","pageSize","page"],[3,"exportData",4,"ngIf"],[1,"overflow-auto","border-top"],[3,"length","pageIndex","pageSizeOptions","pageSize","page"],[3,"exportData"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"mat-paginator",2),i.NdJ("page",function(l){return t.pageChangedTop(l)}),i.qZA(),i.YNc(3,T2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.TgZ(4,"div",4),i.Hsn(5),i.qZA(),i.TgZ(6,"div",1),i.TgZ(7,"mat-paginator",5),i.NdJ("page",function(l){return t.pageChangedBottom(l)}),i.qZA(),i.YNc(8,x2,1,0,"perun-web-apps-table-options",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("length",t.dataLength)("pageSizeOptions",t.pageSizeOptions)("pageSize",t.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport),i.xp6(4),i.Q6J("length",t.paginator.length)("pageIndex",t.paginator.pageIndex)("pageSizeOptions",t.paginator.pageSizeOptions)("pageSize",t.paginator.pageSize),i.xp6(1),i.Q6J("ngIf",!t.hideExport))},directives:[F,w.O5,v2],styles:[""]}),n})();class $x{static passwordMatchValidator(a){const e=a.get("passwordCtrl").value,t=a.get("passwordAgainCtrl").value;return a.get("passwordAgainCtrl").setErrors(e!==t?{noPasswordMatch:!0}:null),null}static patternValidator(a){return e=>{if(!e.value)return null;let t=0;for(const r of a)t+=r.test(e.value)?1:0;return t>=3?null:{isWeak:!0}}}}let zC=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.storeService=t,this.authResolver=r,this.authzService=l,this.dialog=d,this.router=s,this.loginScreenShown=!1,this.serviceAccess=!1,this.serviceAccessLoginScreen=!1}setLoginScreen(e){this.loginScreenShown=e}isLoginScreenShown(){return this.loginScreenShown}isServiceAccess(){return this.serviceAccess}isServiceAccessLoginScreenShown(){return this.serviceAccessLoginScreen}verifyAuth(){return sessionStorage.getItem("baPrincipal")?(this.serviceAccess=!0,"/service-access"===location.pathname?this.router.navigate([]).then(()=>!0):this.router.navigate([location.pathname]).then(()=>!0)):(this.authService.loadConfigData(),this.storeService.skipOidc()?new Promise(e=>e(!0)):this.authService.verifyAuth())}startAuth(){return this.authService.startAuthentication(),Promise.resolve()}loadPrincipal(){return this.authzService.getPerunPrincipal().toPromise().then(e=>{if(null===e.user){const t=Pi();this.dialog.open(cb,t)}else{this.storeService.setPerunPrincipal(e),this.authResolver.init(e);const t=localStorage.getItem("routeAuthGuard");t&&(localStorage.removeItem("routeAuthGuard"),this.router.navigate([t]))}})}handleAuthStart(){if("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))return this.serviceAccess=!0,this.serviceAccessLoginScreen=!0,new Promise(e=>{e()});if(this.storeService.get("auto_auth_redirect"))return localStorage.setItem("routeAuthGuard",window.location.pathname),this.startAuth().then(()=>new Promise(()=>{}));{this.setLoginScreen(!0),localStorage.setItem("routeAuthGuard",window.location.pathname);const e=location.search.substr(1).split("&"),t={};for(const r of e){const l=r.split("=");t[l[0]]=l[1]}return void this.router.navigate(["login"],{queryParams:t,queryParamsHandling:"merge"})}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pa),i.LFG(zt),i.LFG(Ms),i.LFG(Gi),i.LFG(Yi),i.LFG(rt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Qx=(()=>{class n{constructor(e,t){this.matIconRegistry=e,this.domSanitizer=t,this.customIcons=[{url:"assets/img/PerunWebImages/refresh_tab-black.svg",name:"perun-refresh-enabled"},{url:"assets/img/PerunWebImages/refresh_tab-grey.svg",name:"perun-refresh-disabled"},{url:"assets/img/PerunWebImages/manage_facility_white.svg",name:"perun-manage-facility"},{url:"assets/img/PerunWebImages/vo-white.svg",name:"perun-vo"},{url:"assets/img/PerunWebImages/user-white.svg",name:"perun-user"},{url:"assets/img/PerunWebImages/perun_admin-white.svg",name:"perun-perun-admin"},{url:"assets/img/PerunWebImages/group-white.svg",name:"perun-group"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/preview-white.svg",name:"perun-preview"},{url:"assets/img/PerunWebImages/module_dependencies.svg",name:"perun-module-dependencies"},{url:"assets/img/PerunWebImages/user_destination_relationship.svg",name:"perun-user-destination-relationship"},{url:"assets/img/PerunWebImages/settings2-white.svg",name:"perun-settings2"},{url:"assets/img/PerunWebImages/attributes-white.svg",name:"perun-attributes"},{url:"assets/img/PerunWebImages/applications-white.svg",name:"perun-applications"},{url:"assets/img/PerunWebImages/manager-white.svg",name:"perun-manager"},{url:"assets/img/PerunWebImages/application_form-white.svg",name:"perun-application-form"},{url:"assets/img/PerunWebImages/notification-white.svg",name:"perun-notification"},{url:"assets/img/PerunWebImages/invite_member-white.svg",name:"perun-invite-member"},{url:"assets/img/PerunWebImages/service_identity-white.svg",name:"perun-service-identity"},{url:"assets/img/PerunWebImages/service_identity-black.svg",name:"perun-service-identity-black"},{url:"assets/img/PerunWebImages/create1-white.svg",name:"perun-create1"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource"},{url:"assets/img/PerunWebImages/resource_tags-white.svg",name:"perun-resource-tags"},{url:"assets/img/PerunWebImages/resources_state-white.svg",name:"perun-resources-state"},{url:"assets/img/PerunWebImages/external_sources-white.svg",name:"perun-external-sources"},{url:"assets/img/PerunWebImages/vo-dark.svg",name:"perun-vo-black"},{url:"assets/img/PerunWebImages/group-dark.svg",name:"perun-group-black"},{url:"assets/img/PerunWebImages/facility-dark.svg",name:"perun-facility-black"},{url:"assets/img/publications.svg",name:"perun-publications-white"},{url:"assets/img/PerunWebImages/owner-grey.svg",name:"perun-owner-grey"},{url:"assets/img/PerunWebImages/settings1-blue.svg",name:"perun-settings1"},{url:"assets/img/PerunWebImages/service_destination-blue.svg",name:"perun-service_destination"},{url:"assets/img/PerunWebImages/host-blue.svg",name:"perun-hosts"},{url:"assets/img/PerunWebImages/home.svg",name:"perun-home-white"},{url:"assets/img/PerunWebImages/security_admin-blue.svg",name:"perun-security-teams"},{url:"assets/img/PerunWebImages/black_list-white.svg",name:"perun-black-list"},{url:"assets/img/PerunWebImages/facility-white.svg",name:"perun-facility-white"},{url:"assets/img/PerunWebImages/resource-white.svg",name:"perun-resource-white"},{url:"assets/img/PerunWebImages/service-white.svg",name:"perun-service"},{url:"assets/img/PerunWebImages/resource-black.svg",name:"perun-resource-black"},{url:"assets/img/PerunWebImages/service_status-grey.svg",name:"perun-service-status"},{url:"assets/img/PerunWebImages/user-dark.svg",name:"perun-user-dark"},{url:"assets/img/PerunWebImages/statistics-blue.svg",name:"perun-statistics"},{url:"assets/img/PerunWebImages/audit_log-blue.svg",name:"perun-audit-log"},{url:"assets/img/PerunWebImages/contact-grey.svg",name:"perun-identity"},{url:"assets/img/PerunWebImages/roles.svg",name:"perun-roles"},{url:"assets/img/PerunWebImages/consent-white.svg",name:"perun-consent-hubs"},{url:"assets/img/PerunWebImages/hierarchical_vo-black.svg",name:"perun-hierarchical-vo"},{url:"assets/img/PerunWebImages/searcher-blue.svg",name:"perun-searcher"},{url:"assets/img/PerunWebImages/propagation-blue.svg",name:"perun-hierarchical-inclusion"}]}registerPerunRefreshIcon(){this.customIcons.forEach(e=>{this.matIconRegistry.addSvgIcon(e.name,this.domSanitizer.bypassSecurityTrustResourceUrl(e.url))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(_1),i.LFG(mr))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),E2=(()=>{class n{constructor(e){this.dialogRef=e}close(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-session-expiration-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["color","accent","mat-flat-button","",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"div",2),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.close()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.TITLE")),i.xp6(3),i.hij(" ",i.lcZ(5,5,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.DESCRIPTION"),"\n"),i.xp6(5),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.SESSION_EXPIRATION.SIGN_IN")," "))},directives:[Sn,tn,Vi,kt],pipes:[lt],styles:[""]}),n})(),y1=(()=>{class n{constructor(){this.handleNextError=!0}dontHandleErrorForNext(){this.handleNextError=!1}shouldHandleError(){const e=this.handleNextError;return this.handleNextError=!0,e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),hr=(()=>{class n{constructor(e){this.translate=e,this.addNotification=new i.vpe,this.defaultErrorDelayMs=5e3,this.defaultSuccessDelayMs=3e3}getDefaultActionMessage(){return void 0===this.defaultAction?this.defaultAction=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_ACTION"):this.defaultAction}getDefaultRpcMessage(){return void 0===this.defaultRpcMessage?this.defaultRpcMessage=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DEFAULT_RPC_ERROR_MESSAGE"):this.defaultRpcMessage}showRPCError(e,t=this.getDefaultRpcMessage()){this.showError("PrivilegeException"===e.name?this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.PRIVILEGE_EXCEPTION"):void 0===e.name?t:t+"\n"+e.name,e,e.message)}showRouteError(){const e=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_ERROR"),t=this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.ROUTE_DENIED_DESC");this.showError(e,null,t)}showError(e,t,r,l,d){this.addNotification.emit({type:"error",error:t,description:r,title:e,actionText:void 0===l&&void 0!==r?this.getDefaultActionMessage():l,delay:this.defaultErrorDelayMs,icon:"error_outline",action:d,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}showSuccess(e,t,r,l){this.addNotification.emit({type:"success",description:t,title:e,actionText:void 0===r&&void 0!==t?this.getDefaultActionMessage():r,delay:this.defaultSuccessDelayMs,icon:"done",action:l,timeStamp:`${(new Date).getHours()}:${(new Date).getMinutes()}`})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(oi))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Jx=(()=>{class n{constructor(e,t,r,l,d,s){this.authService=e,this.apiRequestConfiguration=t,this.notificator=r,this.store=l,this.dialog=d,this.initAuthService=s}intercept(e,t){const r=this.store.get("api_url");if(e.url.includes("i18n")&&(e=e.clone({setHeaders:{"Cache-control":"no-cache, must-revalidate"}})),void 0!==r&&this.isCallToPerunApi(e.url)&&!this.store.skipOidc()&&!this.authService.isLoggedIn()&&!this.initAuthService.isServiceAccess()&&!this.dialogRefSessionExpiration){const s=Pi();s.width="450px",this.dialogRefSessionExpiration=this.dialog.open(E2,s),this.dialogRefSessionExpiration.afterClosed().subscribe(()=>{ye(()=>this.dialogRefSessionExpiration=void 0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.startAuthentication()})}this.initAuthService.isServiceAccess()?e=e.clone({setHeaders:{Authorization:"Basic "+btoa(sessionStorage.getItem("basicUsername")+":"+sessionStorage.getItem("basicPassword"))}}):this.isCallToPerunApi(e.url)&&(e=e.clone({setHeaders:{Authorization:this.authService.getAuthorizationHeaderValue()}}));const l=this.apiRequestConfiguration.shouldHandleError(),d="POST"===e.method&&!this.store.skipOidc()&&this.isCallToPerunApi(e.url);return t.handle(e).pipe((0,I.b)(s=>{s instanceof M.Zn&&d&&this.initAuthService.loadPrincipal()},s=>{const o=this.formatErrors(s,e);return void 0===o?(0,cA._)(s):l?void this.notificator.showRPCError(o):(0,cA._)(o)}))}isCallToPerunApi(e){return e.startsWith(this.store.get("api_url"))}formatErrors(e,t){let r;console.error(e);const l=e.error;if(l.errorId&&(r=l),void 0!==r)return r.urlWithParams=t.urlWithParams,r.call=t.url,r.payload=t.body,r}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Pa),i.LFG(y1),i.LFG(hr),i.LFG(zt),i.LFG(Yi),i.LFG(zC))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),Xx=(()=>{class n{constructor(){this.newNotificationsCount=0,this.notificationData=[]}storeNotification(e){this.newNotificationsCount++,this.notificationData.push(e)}getNotifications(){return this.notificationData.reverse()}clearNotifications(){this.notificationData=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),D2=(()=>{class n{constructor(e,t,r,l){this.http=e,this.notificator=t,this.authService=r,this.storeService=l}getApiUrl(){return void 0===this.api_url&&(this.api_url=this.storeService.get("api_url")),this.api_url+"/"}getHeaders(){let e=new M.WM;return e=e.set("Authorization",this.authService.getAuthorizationHeaderValue()),e}get(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.get(r,{headers:this.getHeaders()}).pipe((0,Cn.K)(l=>this.formatErrors(l,r,null,t)))}put(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);return this.http.put(l,d,{headers:this.getHeaders()}).pipe((0,Cn.K)(s=>this.formatErrors(s,l,d,r)))}post(e,t={},r=!0){const l=`${this.getApiUrl()}${e}`,d=JSON.stringify(t);let s=this.getHeaders();return s=s.set("Content-Type","application/json; charset=utf-8"),this.http.post(l,d,{headers:s}).pipe((0,Cn.K)(o=>this.formatErrors(o,l,d,r)))}delete(e,t=!0){const r=`${this.getApiUrl()}${e}`;return this.http.delete(r,{headers:this.getHeaders()}).pipe((0,Cn.K)(l=>this.formatErrors(l,r,null,t)))}formatErrors(e,t,r,l){const d=e.error;return d.call=t,d.payload=r,l&&this.notificator.showRPCError(e.error),(0,cA._)(d)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(hr),i.LFG(Pa),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),FC=(()=>{class n{isAllSelectedWithDisabledCheckbox(e,t,r,l,d,s,o,c){return this.numSelected=e,this.numCanBeSelected=0,this.pageStart=d*r,this.pageEnd=this.pageStart+r,this.pageIterator=0,this.dataLength=""===t?s.data.length:s.filteredData.length,l||(this.modulo=this.dataLength%r,this.pageEnd=0===this.modulo?this.pageStart+r:this.pageStart+this.modulo),s.sortData(s.filteredData,o).forEach(u=>{this.pageStart<=this.pageIterator&&this.pageIterator{c?u(h)&&this.pageStart<=this.pageIterator&&this.pageIterator{class n{constructor(e,t){this.route=e,this.store=t}getPreferredLanguage(e){const t=this.store.get("supported_languages"),r=navigator.languages.map(s=>s.split("-")[0]),l=location.search.substring(1).split("&");let d=null;for(const s of l){const o=s.split("=");"lang"===o[0]&&(d=o[1])}return d&&t.includes(d)?d:e&&t.includes(e)?e:r&&t.includes(r[0])?r[0]:"en"}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(nr),i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qC=(()=>{class n{constructor(e){this.storeService=e}static getBrandContainingDomain(e,t){for(const r of e)if(r.newApps.admin===t||r.newApps.profile===t||r.newApps.pwdReset===t)return r;return e[0]}getUrlForOtherApplication(e,t){const l=window.location.href.split("/"),d=l[0]+"//"+l[2],s=n.getBrandContainingDomain(this.storeService.getAppsConfig().brands,d);let o;if(s.newApps[e])o=s.newApps[e],"pwdReset"===e&&(o+=`?login-namespace=${t}`);else switch(o=s.oldGuiDomain+"/fed",e){case"admin":o+="/gui/";break;case"profile":o+="/profile/";break;case"pwdReset":o+=`/pwd-reset/?login-namespace=${t}`}return o}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();Ai("openClose",[Lt("open",Le({overflow:"hidden"})),Lt("closed",Le({height:"0px",overflow:"hidden"})),Ct("open <=> closed",[yt(".3s ease-in")])]);const H2=Ai("flyInOut",[Ct(":enter",[Le({transform:"translateX(100%)"}),yt(".25s")]),Ct(":leave",[yt(".5s",Le({transform:"translateX(100%)"}))])]);Ai("rollInOut",[Ct(":enter",[Le({height:"0px"}),yt(".25s")]),Ct(":leave",[yt(".25s",Le({height:"0px"}))])]),Ai("routeAnimations",[Ct("* => *",[Le({position:"relative"}),Mr(":enter",[Le({width:"100%",opacity:0})],{optional:!0}),Mr(":leave",[Le({position:"absolute",width:"100%",opacity:1}),yt("0.15s",Le({position:"absolute",width:"100%",opacity:0}))],{optional:!0}),Mr(":enter",[Le({position:"absolute",width:"100%",opacity:0}),yt("0.15s",Le({position:"absolute",width:"100%",opacity:1}))],{optional:!0})])]),Ai("tagsOpenClose",[Lt("open",Le({})),Lt("closed",Le({width:"0px",height:"0px"})),Ct("open <=> closed",[yt(".3s ease-in")])]),Ai("switchAnimations",[Ct("true => false",[Mr(":enter, :leave",Le({})),Gh([Mr(":enter",[Le({transform:"translateX(-100%)"}),yt("1s ease-in-out",Le({transform:"translateX(0%)"}))],{optional:!0}),Mr(":leave",[Le({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Le({transform:"translateX(100%)"}))],{optional:!0})])]),Ct("false => true",[Mr(":enter, :leave",Le({})),Gh([Mr(":enter",[Le({transform:"translateX(100%)"}),yt("1s ease-in-out",Le({transform:"translateX(0%)"}))],{optional:!0}),Mr(":leave",[Le({transform:"translateX(0%)",position:"absolute"}),yt("1s ease-in-out",Le({transform:"translateX(-100%)"}))],{optional:!0})])])]),Ai("slideInOutLeft",[Ct(":enter",[Le({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Le({transform:"translateX(0%)"}))]),Ct(":leave",[yt("0.5s ease-in",Le({transform:"translateX(-100%)"}))])]),Ai("slideInOutRight",[Ct(":enter",[Le({transform:"translateX(100%)",position:"fixed"}),yt("0.5s ease-in",Le({transform:"translateX(0%)"}))]),Ct(":leave",[Le({transform:"translateX(-100%)",position:"relative"}),yt("0.5s ease-in",Le({transform:"translateX(100%)"}))])]);let Kx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez]]}),n})(),hA=(()=>{class n{transform(e){return[e.titleBefore,e.firstName,e.middleName,e.lastName,e.titleAfter].join(" ")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"userFullName",type:n,pure:!0}),n})(),ni=(()=>{class n{constructor(e,t){this.translate=e,this.storage=t}transform(e,t="en"){const r=this.storage.get("custom_labels");if(r)for(const l of r)if(l.label===e)return l[t];return e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(oi,16),i.Y36(zt,16))},n.\u0275pipe=i.Yjl({name:"customTranslate",type:n,pure:!0}),n})();const eS=xa({passive:!0});let L2=(()=>{class n{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return wn.E;const t=qi(e),r=this._monitoredElements.get(t);if(r)return r.subject;const l=new He.xQ,d="cdk-text-field-autofilled",s=o=>{"cdk-text-field-autofill-start"!==o.animationName||t.classList.contains(d)?"cdk-text-field-autofill-end"===o.animationName&&t.classList.contains(d)&&(t.classList.remove(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!1}))):(t.classList.add(d),this._ngZone.run(()=>l.next({target:o.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",s,eS),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:l,unlisten:()=>{t.removeEventListener("animationstart",s,eS)}}),l}stopMonitoring(e){const t=qi(e),r=this._monitoredElements.get(t);r&&(r.unlisten(),r.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Si),i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),pA=(()=>{class n{constructor(e,t,r,l){this._elementRef=e,this._platform=t,this._ngZone=r,this._destroyed=new He.xQ,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=d=>{this._hasFocus="focus"===d.type},this._document=l,this._textareaElement=this._elementRef.nativeElement}get minRows(){return this._minRows}set minRows(e){this._minRows=li(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=li(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){e=je(e),this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_setMinHeight(){const e=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){const e=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{Ta(this._getWindow(),"resize").pipe(Fd(16),tt(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",e.style.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const e=this._textareaElement,t=e.style.marginBottom||"",r=this._platform.FIREFOX,l=r&&this._hasFocus,d=r?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";l&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(d);const s=e.scrollHeight-4;return e.classList.remove(d),l&&(e.style.marginBottom=t),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const t=this._elementRef.nativeElement,r=t.value;if(!e&&this._minRows===this._previousMinRows&&r===this._previousValue)return;const l=this._measureScrollHeight(),d=Math.max(l,this._cachedPlaceholderHeight||0);t.style.height=`${d}px`,this._ngZone.runOutsideAngular(()=>{"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=r,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(e){const{selectionStart:t,selectionEnd:r}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si),i.Y36(i.R0b),i.Y36(w.K0,8))},n.\u0275dir=i.lG2({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(e,t){1&e&&i.NdJ("input",function(){return t._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]}),n})(),tS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Oc]]}),n})();const iS=new i.OlP("MAT_INPUT_VALUE_ACCESSOR"),k2=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let P2=0;const R2=up(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let Ln=(()=>{class n extends R2{constructor(e,t,r,l,d,s,o,c,u,h){super(s,l,d,r),this._elementRef=e,this._platform=t,this._autofillMonitor=c,this._formField=h,this._uid="mat-input-"+P2++,this.focused=!1,this.stateChanges=new He.xQ,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(V=>rg().has(V));const f=this._elementRef.nativeElement,b=f.nodeName.toLowerCase();this._inputValueAccessor=o||f,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&u.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",V=>{const ee=V.target;!ee.value&&0===ee.selectionStart&&0===ee.selectionEnd&&(ee.setSelectionRange(1,1),ee.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===b,this._isTextarea="textarea"===b,this._isInFormField=!!h,this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(_n.required))&&void 0!==l&&l}set required(e){this._required=je(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&rg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=je(e)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var e,t;const r=(null===(t=null===(e=this._formField)||void 0===e?void 0:e._hideControlPlaceholder)||void 0===t?void 0:t.call(e))?null:this.placeholder;if(r!==this._previousPlaceholder){const l=this._elementRef.nativeElement;this._previousPlaceholder=r,r?l.setAttribute("placeholder",r):l.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_validateType(){k2.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si),i.Y36(Br,10),i.Y36(dd,8),i.Y36(Zs,8),i.Y36(Kc),i.Y36(iS,10),i.Y36(L2),i.Y36(i.R0b),i.Y36(as,8))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._focusChanged(!0)})("blur",function(){return t._focusChanged(!1)})("input",function(){return t._onInput()}),2&e&&(i.Ikx("disabled",t.disabled)("required",t.required),i.uIk("id",t.id)("data-placeholder",t.placeholder)("name",t.name||null)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-invalid",t.empty&&t.required?null:t.errorState)("aria-required",t.required),i.ekj("mat-input-server",t._isServer)("mat-native-select-inline",t._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[i._Bn([{provide:td,useExisting:n}]),i.qOj,i.TTD]}),n})(),sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Kc],imports:[[tS,ss,ct],tS,ss]}),n})();function O2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function I2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function B2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+e._spinnerAnimationLabel)("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}function N2(n,a){if(1&n&&(i.O4$(),i._UZ(0,"circle",4)),2&n){const e=i.oxw(),t=i.MAs(1);i.Udp("stroke-dashoffset",e._getStrokeDashOffset(),"px")("stroke-dasharray",e._getStrokeCircumference(),"px")("stroke-width",e._getCircleStrokeWidth(),"%")("transform-origin",e._getCircleTransformOrigin(t)),i.uIk("r",e._getCircleRadius())}}const F2=Vo(class{constructor(n){this._elementRef=n}},"primary"),nS=new i.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function j2(){return{diameter:100}}});class Jl extends F2{constructor(a,e,t,r,l,d,s,o){super(a),this._document=t,this._diameter=100,this._value=0,this._resizeSubscription=re.w.EMPTY,this.mode="determinate";const c=Jl._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),c.has(t.head)||c.set(t.head,new Set([100])),this._noopAnimations="NoopAnimations"===r&&!!l&&!l._forceAnimations,l&&(l.diameter&&(this.diameter=l.diameter),l.strokeWidth&&(this.strokeWidth=l.strokeWidth)),e.isBrowser&&e.SAFARI&&s&&d&&o&&(this._resizeSubscription=s.change(150).subscribe(()=>{"indeterminate"===this.mode&&o.run(()=>d.markForCheck())}))}get diameter(){return this._diameter}set diameter(a){this._diameter=li(a),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(a){this._strokeWidth=li(a)}get value(){return"determinate"===this.mode?this._value:0}set value(a){this._value=Math.max(0,Math.min(100,li(a)))}ngOnInit(){const a=this._elementRef.nativeElement;this._styleRoot=Sh(a)||this._document.head,this._attachStyleNode(),a.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const a=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${a} ${a}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(a){var e;const t=50*(null!==(e=a.currentScale)&&void 0!==e?e:1);return`${t}% ${t}%`}_attachStyleNode(){const a=this._styleRoot,e=this._diameter,t=Jl._diameters;let r=t.get(a);if(!r||!r.has(e)){const l=this._document.createElement("style");l.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),l.textContent=this._getAnimationText(),a.appendChild(l),r||(r=new Set,t.set(a,r)),r.add(e)}}_getAnimationText(){const a=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*a).replace(/END_VALUE/g,""+.2*a).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Jl._diameters=new WeakMap,Jl.\u0275fac=function(a){return new(a||Jl)(i.Y36(i.SBq),i.Y36(Si),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(nS),i.Y36(i.sBO),i.Y36(Qa),i.Y36(i.R0b))},Jl.\u0275cmp=i.Xpm({type:Jl,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(a,e){2&a&&(i.uIk("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.ekj("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(a,e){1&a&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,O2,1,11,"circle",2),i.YNc(3,I2,1,9,"circle",3),i.qZA()),2&a&&(i.Udp("width",e.diameter,"px")("height",e.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===e.mode),i.uIk("viewBox",e._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0});let En=(()=>{class n extends Jl{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c),this.mode="indeterminate"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si),i.Y36(w.K0,8),i.Y36(Bn,8),i.Y36(nS),i.Y36(i.sBO),i.Y36(Qa),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(e,t){2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.ekj("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color"},features:[i.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(i.O4$(),i.TgZ(0,"svg",0,1),i.YNc(2,B2,1,11,"circle",2),i.YNc(3,N2,1,9,"circle",3),i.qZA()),2&e&&(i.Udp("width",t.diameter,"px")("height",t.diameter,"px"),i.Q6J("ngSwitch","indeterminate"===t.mode),i.uIk("viewBox",t._getViewBox()),i.xp6(2),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},directives:[w.RF,w.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}\n"],encapsulation:2,changeDetection:0}),n})(),lf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct,w.ez],ct]}),n})(),fA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Yo,w.ez]]}),n})(),Y2=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[],imports:[[w.ez,ss,md,Ul,sf,Mu,lf,Yo,fA]]}),n})();class W2{isErrorState(a){return!(!(null==a?void 0:a.invalid)||!(null==a?void 0:a.dirty))}}const rS=(n,a,e,t=500)=>r=>Rc(t).pipe((0,ji.w)(()=>(e.dontHandleErrorForNext(),n&&"No namespace"!==n?a.checkPasswordStrength(r.value,n):(0,$e.of)(null))),(0,ht.U)(()=>null),(0,Cn.K)(l=>{const d=l.error,s={backendError:d.message.substring(d.message.indexOf(":")+1)};return(0,$e.of)(s)}));function U2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," info "),i.qZA())}function G2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," warning "),i.qZA())}function Z2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," dangerous "),i.qZA())}function $2(n,a){1&n&&(i.TgZ(0,"mat-icon",2),i._uU(1," check_circle "),i.qZA())}const Q2=["*"];let Nn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-alert"]],inputs:{alert_type:"alert_type"},ngContentSelectors:Q2,decls:6,vars:12,consts:[[1,"perun-alert","d-flex","align-items-flex-start"],["class","perun-alert-icon",4,"ngIf"],[1,"perun-alert-icon"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,U2,2,0,"mat-icon",1),i.YNc(2,G2,2,0,"mat-icon",1),i.YNc(3,Z2,2,0,"mat-icon",1),i.YNc(4,$2,2,0,"mat-icon",1),i.Hsn(5),i.qZA()),2&e&&(i.ekj("warn-alert","warn"===t.alert_type)("error-alert","error"===t.alert_type)("success-alert","success"===t.alert_type)("info-alert","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","info"===t.alert_type),i.xp6(1),i.Q6J("ngIf","warn"===t.alert_type),i.xp6(1),i.Q6J("ngIf","error"===t.alert_type),i.xp6(1),i.Q6J("ngIf","success"===t.alert_type))},directives:[w.O5,An],styles:[".perun-alert[_ngcontent-%COMP%]{position:relative;padding:.75rem 1.25rem;margin-top:1rem;margin-bottom:1rem}.perun-alert.info-alert[_ngcontent-%COMP%]{font-style:italic;color:gray;text-align:left;border:1px #b3b3b3 solid;border-radius:10px}.perun-alert.warn-alert[_ngcontent-%COMP%]{font-weight:700;text-align:left;border:1px #ececec solid;border-radius:10px;background-color:#ececec}.perun-alert-icon[_ngcontent-%COMP%]{padding-right:2rem}.perun-alert.error-alert[_ngcontent-%COMP%]{text-align:left;border:1px #fedcda solid;border-radius:10px;background-color:#fedcda}.perun-alert.success-alert[_ngcontent-%COMP%]{text-align:left;border:1px #d7ffd7 solid;border-radius:10px;background-color:#d7ffd7}"]}),n})();function J2(n,a){1&n&&i._UZ(0,"mat-spinner",12),2&n&&i.Q6J("diameter",18)}function X2(n,a){if(1&n&&(i.TgZ(0,"mat-icon",13),i._uU(1," error "),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip())("matTooltipDisabled",!e.formGroup.get("passwordCtrl").hasError("backendError"))}}function K2(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function eH(n,a){if(1&n&&(i.TgZ(0,"mat-error",14),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("matTooltip",e.getErrorTooltip()),i.xp6(1),i.Oqu(e.getErrorTooltip())}}function tH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.FIELD_EMPTY")))}function iH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PWD_DONT_MATCH")))}let aS=(()=>{class n{constructor(e,t,r){this.translator=e,this.usersManagerService=t,this.store=r,this.passwordRequired=!0,this.tooltipPwdViaEmail=!1,this.multiLanguage=!1,this.language="en",this.passwordRequirement=null,this.showNewPassword=!1,this.showPasswordConfirm=!1,this.passwordStateMatcher=new W2,this.allPasswordRequirements=this.store.get("password_requirements_help")}ngOnInit(){window.location.href.includes("/profile")?this.usersManagerService.getRichUserWithAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.userAttributes.find(l=>"preferredLanguage"===l.friendlyName);this.language=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"en","en"!==this.language&&(this.allPasswordRequirements=this.store.get(`password_requirements_help_${this.language}`)),this.changeHelp()}):this.changeHelp()}ngOnChanges(){this.allPasswordRequirements=this.store.get("en"!==this.language?`password_requirements_help_${this.language}`:"password_requirements_help"),this.changeHelp()}getPasswordDisabledTooltip(){return this.translator.instant(this.tooltipPwdViaEmail?"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_VIA_EMAIL":"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.TOOLTIP_PASSWORD_DISABLED")}getErrorTooltip(){let e=this.formGroup.get("passwordCtrl").getError("backendError");return e&&(e=e.replace(":null","")),e}changeHelp(){this.passwordRequirement=this.allPasswordRequirements.find(e=>e.split(":")[0]===this.namespace),this.passwordRequirement=void 0===this.passwordRequirement?this.allPasswordRequirements.find(e=>"default"===e.split(":")[0]).split(/:(.+)/)[1]:this.passwordRequirement.split(/:(.+)/)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(oi),i.Y36(Ti),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-form"]],inputs:{formGroup:"formGroup",passwordRequired:"passwordRequired",tooltipPwdViaEmail:"tooltipPwdViaEmail",namespace:"namespace",multiLanguage:"multiLanguage",language:"language"},features:[i.TTD],decls:21,vars:23,consts:[[3,"formGroup"],["matTooltipPosition","left",1,"max-width",3,"matTooltip","matTooltipDisabled"],["matInput","","formControlName","passwordCtrl",3,"type","required","errorStateMatcher","placeholder"],["matSuffix","","class","input-spinner",3,"diameter",4,"ngIf"],["matSuffix","",3,"click"],["color","warn","matSuffix","","class","error-icon",3,"matTooltip","matTooltipDisabled",4,"ngIf"],[4,"ngIf"],["matTooltipPosition","after",3,"matTooltip",4,"ngIf"],[1,"max-width"],["matInput","","formControlName","passwordAgainCtrl",3,"type","required"],["alert_type","info"],[3,"innerHTML"],["matSuffix","",1,"input-spinner",3,"diameter"],["color","warn","matSuffix","",1,"error-icon",3,"matTooltip","matTooltipDisabled"],["matTooltipPosition","after",3,"matTooltip"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"mat-form-field",1),i._UZ(2,"input",2),i.ALo(3,"translate"),i.YNc(4,J2,1,1,"mat-spinner",3),i.TgZ(5,"mat-icon",4),i.NdJ("click",function(){return t.showNewPassword=!t.showNewPassword}),i._uU(6),i.qZA(),i.YNc(7,X2,2,2,"mat-icon",5),i.YNc(8,K2,3,3,"mat-error",6),i.YNc(9,eH,2,2,"mat-error",7),i.qZA(),i.TgZ(10,"mat-form-field",8),i.TgZ(11,"mat-label"),i._uU(12),i.ALo(13,"translate"),i.qZA(),i._UZ(14,"input",9),i.TgZ(15,"mat-icon",4),i.NdJ("click",function(){return t.showPasswordConfirm=!t.showPasswordConfirm}),i._uU(16),i.qZA(),i.YNc(17,tH,3,3,"mat-error",6),i.YNc(18,iH,3,3,"mat-error",6),i.qZA(),i.TgZ(19,"perun-web-apps-alert",10),i._UZ(20,"div",11),i.qZA(),i.qZA()),2&e&&(i.Q6J("formGroup",t.formGroup),i.xp6(1),i.Q6J("matTooltip",t.getPasswordDisabledTooltip())("matTooltipDisabled",t.formGroup.get("passwordCtrl").enabled),i.xp6(1),i.s9C("placeholder",i.lcZ(3,19,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD")),i.Q6J("type",t.showNewPassword?"text":"password")("required",t.passwordRequired)("errorStateMatcher",t.passwordStateMatcher),i.xp6(2),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").pending),i.xp6(2),i.hij(" ",t.showNewPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").dirty&&null!==t.formGroup.get("passwordCtrl").errors),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordCtrl").hasError("backendError")),i.xp6(3),i.Oqu(i.lcZ(13,21,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_FORM_FIELD.PASSWORD_AGAIN")),i.xp6(2),i.Q6J("type",t.showPasswordConfirm?"text":"password")("required",t.passwordRequired),i.xp6(2),i.hij(" ",t.showPasswordConfirm?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("required")),i.xp6(1),i.Q6J("ngIf",t.formGroup.get("passwordAgainCtrl").hasError("noPasswordMatch")),i.xp6(2),i.Q6J("innerHTML",t.passwordRequirement,i.oJD))},directives:[Eu,Zs,mn,Tr,Ln,rn,bn,Qn,Nr,w.O5,En,Ab,An,jl,rs,Nn],pipes:[lt],styles:[".max-width[_ngcontent-%COMP%]{width:100%!important}.input-spinner[_ngcontent-%COMP%]{float:right;margin-left:5px}.error-icon[_ngcontent-%COMP%]{margin-left:5px}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper, [_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}[_nghost-%COMP%] .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}"]}),n})();function cH(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function dH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_ERROR")))}function uH(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_ERROR")))}function hH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",8),i.TgZ(1,"mat-form-field"),i.TgZ(2,"mat-label"),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"input",9,10),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().subject=r}),i.qZA(),i.YNc(7,dH,3,3,"mat-error",11),i.qZA(),i.TgZ(8,"mat-form-field"),i.TgZ(9,"mat-label"),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.TgZ(12,"textarea",12,13),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw().message=r}),i.ALo(14,"translate"),i._uU(15," "),i.qZA(),i.YNc(16,uH,3,3,"mat-error",11),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(6),t=i.MAs(13),r=i.oxw();i.xp6(3),i.Oqu(i.lcZ(4,7,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT")),i.xp6(2),i.Q6J("ngModel",r.subject),i.xp6(2),i.Q6J("ngIf",e.invalid),i.xp6(3),i.Oqu(i.lcZ(11,9,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(14,11,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",r.message),i.xp6(4),i.Q6J("ngIf",t.invalid)}}let pH=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.data=d,this.storeService=s,this.message="",this.subject="",this.methodRegexp=/(\w+\/\w+)$/g,this.loading=!1}ngOnInit(){var e,t;(null===(t=null===(e=this.data)||void 0===e?void 0:e.error)||void 0===t?void 0:t.errorId)&&(this.subject="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUBJECT_VALUE"),this.parseMethod(this.data.error.call)," (",this.data.error.errorId,")"))}sendBugReport(){this.loading=!0,this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>{const t="".concat(this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS1"),e.ticketNumber.toString(),this.translate.instant("SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SUCCESS2"));this.notificator.showSuccess(t)}),this.dialogRef.close()},()=>{this.loading=!1,this.dialogRef.afterClosed().subscribe(()=>{})})}getFullEmailBody(){const e=this.storeService.get("config");let t=this.message+"\n------------------------\nTechnical details:\n\n"+this.data.error.errorId;if(t=t.concat(this.data.error.type?" "+this.data.error.type+"\n":"\n"),t=t.concat(this.data.error.message,"\n","Perun instance: ",e,"\n","Request:\n",this.data.error.urlWithParams,"\n\n"),this.data.error.payload){const r=/"password":".+?"/;let l=JSON.stringify(this.data.error.payload);l=l.replace(r,'"password":"####"'),t=t.concat("Payload:\n"+l+"\n\n")}return t=t.concat("Sent from new Perun Gui, version: ",x(4147).i8),t.split("\n").join("\n ")}parseMethod(e){return e&&this.methodRegexp.exec(e)[1]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(oi),i.Y36(hr),i.Y36(dn),i.Y36(xn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-bug-report-dialog"]],decls:13,vars:12,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["class","dialog-container","mat-dialog-content","",4,"ngIf"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","","required","",3,"ngModel","placeholder","ngModelChange"],["messageModel","ngModel"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.YNc(3,cH,1,0,"mat-spinner",1),i.YNc(4,hH,17,13,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"div",4),i.TgZ(7,"button",5),i.NdJ("click",function(){return t.dialogRef.close()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",6),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.TITLE")),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(4),i.hij(" ",i.lcZ(9,8,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.CANCEL")," "),i.xp6(2),i.Q6J("disabled",""===t.message||""===t.subject||t.loading),i.xp6(1),i.hij(" ",i.lcZ(12,10,"SHARED_LIB.PERUN.COMPONENTS.BUG_REPORT.SEND")," "))},directives:[Sn,w.O5,En,tn,mn,rs,Ln,rn,Nr,bn,ur,jl,Vi,kt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),fH=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.dialog=t,this.data=r}onCloseClick(){this.dialogRef.close()}onBugReportClick(){this.dialogRef.afterClosed().subscribe(()=>{const e=Pi();e.width="550px",e.data={error:this.data.error},e.autoFocus=!1,this.dialog.open(pH,e)}),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(Yi),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"hidden","click"],["autofocus","","mat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i._uU(3),i.qZA(),i.TgZ(4,"div",2),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onBugReportClick()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return t.onCloseClick()}),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.data.title),i.xp6(2),i.hij(" ",t.data.description,"\n"),i.xp6(3),i.Q6J("hidden","error"!==t.data.type),i.xp6(1),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_BUG_REPORT")," "),i.xp6(3),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.NOTIFICATOR.NOTIFICATION.DIALOG_CLOSE")," "))},directives:[Sn,tn,Vi,kt],pipes:[lt],styles:[""]}),n})();const mH=[[["caption"]],[["colgroup"],["col"]]],gH=["caption","colgroup, col"];function WC(n){return class extends n{constructor(...a){super(...a),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(a){const e=this._sticky;this._sticky=je(a),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const a=this._hasStickyChanged;return this._hasStickyChanged=!1,a}resetStickyChanged(){this._hasStickyChanged=!1}}}const cf=new i.OlP("CDK_TABLE");let df=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellDef",""]]}),n})(),uf=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderCellDef",""]]}),n})(),mA=(()=>{class n{constructor(e){this.template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterCellDef",""]]}),n})();class yH{}const MH=WC(yH);let Xl=(()=>{class n extends MH{constructor(e){super(),this._table=e,this._stickyEnd=!1}get name(){return this._name}set name(e){this._setNameInput(e)}get stickyEnd(){return this._stickyEnd}set stickyEnd(e){const t=this._stickyEnd;this._stickyEnd=je(e),this._hasStickyChanged=t!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(cf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,df,5),i.Suo(r,uf,5),i.Suo(r,mA,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.cell=l.first),i.iGM(l=i.CRH())&&(t.headerCell=l.first),i.iGM(l=i.CRH())&&(t.footerCell=l.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})();class UC{constructor(a,e){e.nativeElement.classList.add(...a._columnCssClassName)}}let GC=(()=>{class n extends UC{constructor(e,t){super(e,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]}),n})(),ZC=(()=>{class n extends UC{constructor(e,t){var r;if(super(e,t),1===(null===(r=e._table)||void 0===r?void 0:r._elementRef.nativeElement.nodeType)){const l=e._table._elementRef.nativeElement.getAttribute("role");t.nativeElement.setAttribute("role","grid"===l||"treegrid"===l?"gridcell":"cell")}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Xl),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]}),n})();class oS{constructor(){this.tasks=[],this.endTasks=[]}}const $C=new i.OlP("_COALESCED_STYLE_SCHEDULER");let lS=(()=>{class n{constructor(e){this._ngZone=e,this._currentSchedule=null,this._destroyed=new He.xQ}schedule(e){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(e)}scheduleEnd(e){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new oS,this._getScheduleObservable().pipe(tt(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const e=this._currentSchedule;this._currentSchedule=new oS;for(const t of e.tasks)t();for(const t of e.endTasks)t()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,un.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,Zt.q)(1))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})(),QC=(()=>{class n{constructor(e,t){this.template=e,this._differs=t}ngOnChanges(e){if(!this._columnsDiffer){const t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof M1?e.headerCell.template:this instanceof w1?e.footerCell.template:e.cell.template}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class wH extends QC{}const CH=WC(wH);let M1=(()=>{class n extends CH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(cf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})();class vH extends QC{}const TH=WC(vH);let w1=(()=>{class n extends TH{constructor(e,t,r){super(e,t),this._table=r}ngOnChanges(e){super.ngOnChanges(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(cf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]}),n})(),gA=(()=>{class n extends QC{constructor(e,t,r){super(e,t),this._table=r}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(cf,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]}),n})(),Kl=(()=>{class n{constructor(e){this._viewContainer=e,n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}}return n.mostRecentCellOutlet=null,n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCellOutlet",""]]}),n})(),JC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Kl],encapsulation:2}),n})(),KC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Kl],encapsulation:2}),n})(),_A=(()=>{class n{constructor(e){this.templateRef=e,this._contentClassName="cdk-no-data-row"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","cdkNoDataRow",""]]}),n})();const cS=["top","bottom","left","right"];class xH{constructor(a,e,t,r,l=!0,d=!0,s){this._isNativeHtmlTable=a,this._stickCellCss=e,this.direction=t,this._coalescedStyleScheduler=r,this._isBrowser=l,this._needsPositionStickyOnElement=d,this._positionListener=s,this._cachedCellWidths=[],this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(a,e){const t=[];for(const r of a)if(r.nodeType===r.ELEMENT_NODE){t.push(r);for(let l=0;l{for(const r of t)this._removeStickyStyle(r,e)})}updateStickyColumns(a,e,t,r=!0){if(!a.length||!this._isBrowser||!e.some(f=>f)&&!t.some(f=>f))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const l=a[0],d=l.children.length,s=this._getCellWidths(l,r),o=this._getStickyStartColumnPositions(s,e),c=this._getStickyEndColumnPositions(s,t),u=e.lastIndexOf(!0),h=t.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const f="rtl"===this.direction,b=f?"right":"left",V=f?"left":"right";for(const ee of a)for(let he=0;hee[he]?ee:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===h?[]:s.slice(h).map((ee,he)=>t[he+h]?ee:null).reverse()}))})}stickRows(a,e,t){if(!this._isBrowser)return;const r="bottom"===t?a.slice().reverse():a,l="bottom"===t?e.slice().reverse():e,d=[],s=[],o=[];for(let u=0,h=0;u{var u,h;for(let f=0;f{e.some(r=>!r)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1)})}_removeStickyStyle(a,e){for(const r of e)a.style[r]="",a.classList.remove(this._borderCellCss[r]);cS.some(r=>-1===e.indexOf(r)&&a.style[r])?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}_addStickyStyle(a,e,t,r){a.classList.add(this._stickCellCss),r&&a.classList.add(this._borderCellCss[e]),a.style[e]=`${t}px`,a.style.zIndex=this._getCalculatedZIndex(a),this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(a){const e={top:100,bottom:10,left:1,right:1};let t=0;for(const r of cS)a.style[r]&&(t+=e[r]);return t?`${t}`:""}_getCellWidths(a,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const t=[],r=a.children;for(let l=0;l0;l--)e[l]&&(t[l]=r,r+=a[l]);return t}}const ev=new i.OlP("CDK_SPL");let bA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","rowOutlet",""]]}),n})(),AA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","headerRowOutlet",""]]}),n})(),yA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","footerRowOutlet",""]]}),n})(),MA=(()=>{class n{constructor(e,t){this.viewContainer=e,this.elementRef=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.s_b),i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","noDataRowOutlet",""]]}),n})(),wA=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f,b){this._differs=e,this._changeDetectorRef=t,this._elementRef=r,this._dir=d,this._platform=o,this._viewRepeater=c,this._coalescedStyleScheduler=u,this._viewportRuler=h,this._stickyPositioningListener=f,this._ngZone=b,this._onDestroy=new He.xQ,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 Ki({start:0,end:Number.MAX_VALUE}),l||this._elementRef.nativeElement.setAttribute("role","table"),this._document=s,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=je(e),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=je(e),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((e,t)=>this.trackBy?this.trackBy(t.dataIndex,t.data):t),this._viewportRuler.change().pipe(tt(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,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(e=>{e.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Em(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const e=this._dataDiffer.diff(this._renderRows);if(!e)return this._updateNoDataRow(),void this.contentChanged.next();const t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(r,l,d)=>this._getEmbeddedViewArgs(r.item,d),r=>r.item.data,r=>{1===r.operation&&r.context&&this._renderCellTemplateForItem(r.record.item.rowDef,r.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(r=>{t.get(r.currentIndex).context.$implicit=r.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,Zt.q)(1),tt(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){const e=this._getRenderedRows(this._headerRowOutlet),r=this._elementRef.nativeElement.querySelector("thead");r&&(r.style.display=e.length?"":"none");const l=this._headerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,l,"top"),this._headerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyFooterRowStyles(){const e=this._getRenderedRows(this._footerRowOutlet),r=this._elementRef.nativeElement.querySelector("tfoot");r&&(r.style.display=e.length?"":"none");const l=this._footerRowDefs.map(d=>d.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,l,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,l),this._footerRowDefs.forEach(d=>d.resetStickyChanged())}updateStickyColumnStyles(){const e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),r=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...r],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((l,d)=>{this._addStickyColumnStyles([l],this._headerRowDefs[d])}),this._rowDefs.forEach(l=>{const d=[];for(let s=0;s{this._addStickyColumnStyles([l],this._footerRowDefs[d])}),Array.from(this._columnDefsByName.values()).forEach(l=>l.resetStickyChanged())}_getAllRenderRows(){const e=[],t=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=0;r{const s=r&&r.has(d)?r.get(d):[];if(s.length){const o=s.shift();return o.dataIndex=t,o}return{data:e,rowDef:d,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),CA(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=CA(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=CA(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=CA(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){const e=(d,s)=>d||!!s.getColumnsDiff(),t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();const r=this._headerRowDefs.reduce(e,!1);r&&this._forceRenderHeaderRows();const l=this._footerRowDefs.reduce(e,!1);return l&&this._forceRenderFooterRows(),t||r||l}_switchDataSource(e){this._data=[],Em(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;Em(this.dataSource)?e=this.dataSource.connect(this):is(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=(0,$e.of)(this.dataSource)),this._renderChangeSubscription=e.pipe(tt(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){const r=Array.from(t.columns||[]).map(s=>this._columnDefsByName.get(s)),l=r.map(s=>s.sticky),d=r.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,l,d,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){const t=[];for(let r=0;r!l.when||l.when(t,e));else{let l=this._rowDefs.find(d=>d.when&&d.when(t,e))||this._defaultRowDef;l&&r.push(l)}return r}_getEmbeddedViewArgs(e,t){return{templateRef:e.rowDef.template,context:{$implicit:e.data},index:t}}_renderRow(e,t,r,l={}){const d=e.viewContainer.createEmbeddedView(t.template,l,r);return this._renderCellTemplateForItem(t,l),d}_renderCellTemplateForItem(e,t){for(let r of this._getCellTemplates(e))Kl.mostRecentCellOutlet&&Kl.mostRecentCellOutlet._viewContainer.createEmbeddedView(r,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const e=this._rowOutlet.viewContainer;for(let t=0,r=e.length;t{const r=this._columnDefsByName.get(t);return e.extractCellTemplate(r)}):[]}_applyNativeTableSections(){const e=this._document.createDocumentFragment(),t=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const r of t){const l=this._document.createElement(r.tag);l.setAttribute("role","rowgroup");for(const d of r.outlets)l.appendChild(d.elementRef.nativeElement);e.appendChild(l)}this._elementRef.nativeElement.appendChild(e)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const e=(t,r)=>t||r.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new xH(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,$e.of)()).pipe(tt(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){const e=this._customNoDataRow||this._noDataRow;if(!e)return;const t=0===this._rowOutlet.viewContainer.length;if(t===this._isShowingNoDataRow)return;const r=this._noDataRowOutlet.viewContainer;if(t){const l=r.createEmbeddedView(e.templateRef),d=l.rootNodes[0];1===l.rootNodes.length&&(null==d?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(e._contentClassName))}else r.clear();this._isShowingNoDataRow=t}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(vn,8),i.Y36(w.K0),i.Y36(Si),i.Y36(nd),i.Y36($C),i.Y36(Qa),i.Y36(ev,12),i.Y36(i.R0b,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,_A,5),i.Suo(r,Xl,5),i.Suo(r,gA,5),i.Suo(r,M1,5),i.Suo(r,w1,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._noDataRow=l.first),i.iGM(l=i.CRH())&&(t._contentColumnDefs=l),i.iGM(l=i.CRH())&&(t._contentRowDefs=l),i.iGM(l=i.CRH())&&(t._contentHeaderRowDefs=l),i.iGM(l=i.CRH())&&(t._contentFooterRowDefs=l)}},viewQuery:function(e,t){if(1&e&&(i.Gf(bA,7),i.Gf(AA,7),i.Gf(yA,7),i.Gf(MA,7)),2&e){let r;i.iGM(r=i.CRH())&&(t._rowOutlet=r.first),i.iGM(r=i.CRH())&&(t._headerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._footerRowOutlet=r.first),i.iGM(r=i.CRH())&&(t._noDataRowOutlet=r.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("cdk-table-fixed-layout",t.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:cf,useExisting:n},{provide:nd,useClass:qw},{provide:$C,useClass:lS},{provide:ev,useValue:null}])],ngContentSelectors:gH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(mH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[AA,bA,MA,yA],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})();function CA(n,a){return n.concat(Array.from(a))}let EH=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Ja]]}),n})();const DH=[[["caption"]],[["colgroup"],["col"]]],HH=["caption","colgroup, col"];let $s=(()=>{class n extends wA{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-table-fixed-layout",t.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:nd,useClass:qw},{provide:wA,useExisting:n},{provide:cf,useExisting:n},{provide:$C,useClass:lS},{provide:ev,useValue:null}]),i.qOj],ngContentSelectors:HH,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(e,t){1&e&&(i.F$t(DH),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0),i.GkF(3,1),i.GkF(4,2),i.GkF(5,3))},directives:[AA,bA,MA,yA],styles:["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}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),n})(),cs=(()=>{class n extends df{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:df,useExisting:n}]),i.qOj]}),n})(),ds=(()=>{class n extends uf{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:uf,useExisting:n}]),i.qOj]}),n})(),us=(()=>{class n extends Xl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:Xl,useExisting:n},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:n}]),i.qOj]}),n})(),hs=(()=>{class n extends GC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.qOj]}),n})(),ps=(()=>{class n extends ZC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.qOj]}),n})(),Qs=(()=>{class n extends M1{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:M1,useExisting:n}]),i.qOj]}),n})(),Js=(()=>{class n extends gA{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:gA,useExisting:n}]),i.qOj]}),n})(),Xs=(()=>{class n extends JC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:JC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Kl],encapsulation:2}),n})(),Ks=(()=>{class n extends KC{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i._Bn([{provide:KC,useExisting:n}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(e,t){1&e&&i.GkF(0,0)},directives:[Kl],encapsulation:2}),n})(),C1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[EH,ct],ct]}),n})();class Wo extends class FH extends class Fw{}{constructor(a=[]){super(),this._renderData=new Ki([]),this._filter=new Ki(""),this._internalPageChanges=new He.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(e,t)=>{const r=e[t];if(Lc(r)){const l=Number(r);return l<9007199254740991?l:r}return r},this.sortData=(e,t)=>{const r=t.active,l=t.direction;return r&&""!=l?e.sort((d,s)=>{let o=this.sortingDataAccessor(d,r),c=this.sortingDataAccessor(s,r);const u=typeof o,h=typeof c;u!==h&&("number"===u&&(o+=""),"number"===h&&(c+=""));let f=0;return null!=o&&null!=c?o>c?f=1:o{const r=Object.keys(e).reduce((d,s)=>d+e[s]+"\u25ec","").toLowerCase(),l=t.trim().toLowerCase();return-1!=r.indexOf(l)},this._data=new Ki(a),this._updateChangeSubscription()}get data(){return this._data.value}set data(a){a=Array.isArray(a)?a:[],this._data.next(a),this._renderChangesSubscription||this._filterData(a)}get filter(){return this._filter.value}set filter(a){this._filter.next(a),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(a){this._sort=a,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(a){this._paginator=a,this._updateChangeSubscription()}_updateChangeSubscription(){var a;const e=this._sort?(0,Ei.T)(this._sort.sortChange,this._sort.initialized):(0,$e.of)(null),t=this._paginator?(0,Ei.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,$e.of)(null),l=(0,no.aj)([this._data,this._filter]).pipe((0,ht.U)(([o])=>this._filterData(o))),d=(0,no.aj)([l,e]).pipe((0,ht.U)(([o])=>this._orderData(o))),s=(0,no.aj)([d,t]).pipe((0,ht.U)(([o])=>this._pageData(o)));null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=s.subscribe(o=>this._renderData.next(o))}_filterData(a){return this.filteredData=null==this.filter||""===this.filter?a:a.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(a){return this.sort?this.sortData(a.slice(),this.sort):a}_pageData(a){if(!this.paginator)return a;const e=this.paginator.pageIndex*this.paginator.pageSize;return a.slice(e,e+this.paginator.pageSize)}_updatePaginator(a){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=a,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,r=Math.min(e.pageIndex,t);r!==e.pageIndex&&(e.pageIndex=r,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var a;null===(a=this._renderChangesSubscription)||void 0===a||a.unsubscribe(),this._renderChangesSubscription=null}}{}function jH(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function qH(n,a){1&n&&i._UZ(0,"th",15)}function YH(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function WH(n,a){1&n&&i._UZ(0,"tr",17)}function UH(n,a){1&n&&i._UZ(0,"tr",18)}function GH(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i.TgZ(2,"p"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"div",5),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"table",6),i.ynx(11,7),i.YNc(12,qH,1,0,"th",8),i.YNc(13,YH,2,1,"td",9),i.BQk(),i.YNc(14,WH,1,0,"tr",10),i.YNc(15,UH,1,0,"tr",11),i.qZA(),i.qZA(),i.TgZ(16,"div",12),i.TgZ(17,"button",13),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.TgZ(21,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(22),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,7,i.lcZ(5,9,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(8,11,i.lcZ(9,13,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns),i.xp6(3),i.hij(" ",i.lcZ(19,15,i.lcZ(20,17,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(23,19,i.lcZ(24,21,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.REMOVE"))," ")}}let ZH=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.translate=l,this.notificator=d,this.force=!1,this.displayedColumns=["name"],l.get("SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.theme=this.data.theme,this.dataSource=new Wo(this.data.extSources)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.data.extSources.length?this.usersManagerService.removeUserExtSource(this.data.userId,this.data.extSources.pop().userExtSource.id,this.force).subscribe(()=>{this.onSubmit()},()=>this.loading=!1):(this.loading=!1,this.data.showSuccess&&this.notificator.showSuccess(this.successMessage),this.dialogRef.close(!0))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(Ti),i.Y36(oi),i.Y36(hr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-user-ext-source-dialog"]],decls:7,vars:10,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["class","font-weight-bolder","mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div"),i.YNc(5,jH,1,0,"mat-spinner",1),i.YNc(6,GH,25,23,"div",2),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.REMOVE_USER_EXT_SOURCE.TITLE")),"\n"),i.xp6(3),i.Tol(t.theme),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Sn,w.O5,En,tn,$s,us,ds,hs,cs,ps,Qs,Xs,Js,Ks,Vi,kt],pipes:[lt,ni],styles:[""]}),n})();class $H{constructor(a,e){this._document=e;const t=this._textarea=this._document.createElement("textarea"),r=t.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",t.setAttribute("aria-hidden","true"),t.value=a,this._document.body.appendChild(t)}copy(){const a=this._textarea;let e=!1;try{if(a){const t=this._document.activeElement;a.select(),a.setSelectionRange(0,a.value.length),e=this._document.execCommand("copy"),t&&t.focus()}}catch(t){}return e}destroy(){const a=this._textarea;a&&(a.remove(),this._textarea=void 0)}}let QH=(()=>{class n{constructor(e){this._document=e}copy(e){const t=this.beginCopy(e),r=t.copy();return t.destroy(),r}beginCopy(e){return new $H(e,this._document)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JH=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let tv=(()=>{class n{constructor(e,t,r){this._clipboard=e,this._ngZone=t,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,r&&null!=r.attempts&&(this.attempts=r.attempts)}copy(e=this.attempts){if(e>1){let t=e;const r=this._clipboard.beginCopy(this.text);this._pending.add(r);const l=()=>{const d=r.copy();d||!--t||this._destroyed?(this._currentTimeout=null,this._pending.delete(r),r.destroy(),this.copied.emit(d)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(l,1))};l()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(e=>e.destroy()),this._pending.clear(),this._destroyed=!0}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(QH),i.Y36(i.R0b),i.Y36(JH,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),n})(),uS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),vA=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.value=this.data.value,this.title=this.data.title}onCancel(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-value-dialog"]],decls:12,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","overflow-hidden"],["cdkTextareaAutosize","","matInput","","readonly","",1,"w-100","display-fix"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.TgZ(3,"textarea",2),i._uU(4),i.qZA(),i.qZA(),i.TgZ(5,"div",3),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.onCancel()}),i._uU(7),i.ALo(8,"translate"),i.qZA(),i.TgZ(9,"button",5),i._uU(10),i.ALo(11,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(3),i.Oqu(t.value),i.xp6(3),i.hij(" ",i.lcZ(8,5,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.CLOSE")," "),i.xp6(2),i.Q6J("cdkCopyToClipboard",t.value),i.xp6(1),i.hij(" ",i.lcZ(11,7,"SHARED_LIB.PERUN.COMPONENTS.SHOW_VALUE.COPY")," "))},directives:[Sn,tn,pA,Ln,Vi,kt,tv],pipes:[lt],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}"]}),n})(),XH=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.attributeValue=""}ngOnInit(){this.attributeValue=this.data.attribute.value[this.data.index]}cancel(){this.dialogRef.close()}submit(){this.data.attribute.value[this.data.index]=this.attributeValue,this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-edit-dialog"]],decls:13,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["cdkTextareaAutosize","true","matInput","",3,"ngModel","ngModelChange"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"textarea",2),i.NdJ("ngModelChange",function(l){return t.attributeValue=l}),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.TgZ(10,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.TITLE"),"\n"),i.xp6(4),i.Q6J("ngModel",t.attributeValue),i.xp6(3),i.hij(" ",i.lcZ(9,6,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(12,8,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.EDIT_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sn,tn,mn,pA,Ln,rn,bn,ur,Vi,kt],pipes:[lt],styles:[""]}),n})(),KH=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}cancel(){this.dialogRef.close()}submit(){this.dialogRef.close(!0)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list-delete-dialog"]],decls:16,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],[1,"mt-2","font-weight-bold"],["mat-dialog-actions","",1,"d-flex"],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h5",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"div"),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"div",2),i._uU(8),i.qZA(),i.qZA(),i.TgZ(9,"div",3),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(11),i.ALo(12,"translate"),i.qZA(),i.TgZ(13,"button",5),i.NdJ("click",function(){return t.submit()}),i._uU(14),i.ALo(15,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.TITLE"),"\n"),i.xp6(4),i.hij(" ",i.lcZ(6,7,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.DESCRIPTION")," "),i.xp6(3),i.hij(" ",t.data.name," "),i.xp6(3),i.hij(" ",i.lcZ(12,9,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.CANCEL_BUTTON")," "),i.xp6(3),i.hij(" ",i.lcZ(15,11,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTE_VALUE_LIST.DELETE_DIALOG.SUBMIT_BUTTON")," "))},directives:[Sn,tn,Vi,kt],pipes:[lt],styles:[""]}),n})();function eL(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.pendingEmailsMessage)}}function tL(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.CHANGE_EMAIL.EMAIL_ERROR"))))}let iL=(()=>{class n{constructor(e,t,r,l,d,s){this.dialogRef=e,this.data=t,this.translate=r,this.notificator=l,this.usersManagerService=d,this.authService=s,this.pendingMails=[],r.get("DIALOGS.CHANGE_EMAIL.SUCCESS").subscribe(o=>this.successMessage=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_BEGIN").subscribe(o=>this.pendingEmailsMessageStart=o),r.get("DIALOGS.CHANGE_EMAIL.PENDING_MAILS_END").subscribe(o=>this.pendingEmailsMessageEnd=o)}ngOnInit(){this.emailControl=new vr(null,[_n.required,_n.pattern(/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i)]),this.usersManagerService.getPendingPreferredEmailChanges(this.data.userId).subscribe(e=>{this.pendingMails=e.filter((r,l,d)=>l===d.indexOf(r));let t="";this.pendingMails.forEach(r=>t+=`${r===this.pendingMails[0]?"":", "}${r}`),this.pendingEmailsMessage=this.pendingEmailsMessageStart+t+this.pendingEmailsMessageEnd})}onCancel(){this.dialogRef.close()}onSubmit(){const t=window.location.href.split("/");this.usersManagerService.requestPreferredEmailChange(this.data.userId,this.emailControl.value,this.translate.currentLang,"",t[0]+"//"+t[2],this.authService.getIdpFilter()).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(oi),i.Y36(hr),i.Y36(Ti),i.Y36(Pa))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-email-dialog"]],decls:21,vars:24,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],["alert_type","warn",4,"ngIf"],[1,"w-100"],["matInput","","required","",3,"placeholder","formControl"],[4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,eL,2,1,"perun-web-apps-alert",2),i.TgZ(6,"mat-form-field",3),i.TgZ(7,"label",3),i._UZ(8,"input",4),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.YNc(11,tL,4,5,"mat-error",5),i.qZA(),i.qZA(),i.TgZ(12,"div",6),i.TgZ(13,"button",7),i.NdJ("click",function(){return t.onCancel()}),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"button",8),i.NdJ("click",function(){return t.onSubmit()}),i._uU(18),i.ALo(19,"translate"),i.ALo(20,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"DIALOGS.CHANGE_EMAIL.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.pendingMails.length),i.xp6(3),i.s9C("placeholder",i.lcZ(9,12,i.lcZ(10,14,"DIALOGS.CHANGE_EMAIL.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.emailControl),i.xp6(3),i.Q6J("ngIf",t.emailControl.invalid),i.xp6(3),i.hij(" ",i.lcZ(15,16,i.lcZ(16,18,"DIALOGS.CHANGE_EMAIL.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!t.emailControl.valid),i.xp6(1),i.hij(" ",i.lcZ(19,20,i.lcZ(20,22,"DIALOGS.CHANGE_EMAIL.CHANGE"))," "))},directives:[Sn,tn,w.O5,Nn,mn,Ln,rn,Nr,bn,os,jl,Vi,kt],pipes:[lt,ni],styles:[""]}),n})(),uL=(()=>{class n{constructor(e,t){this.dialogRef=e,this.router=t}onClose(){this.router.navigate([]),this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-mail-change-failed-dialog"]],decls:11,vars:9,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["alert_type","error"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"perun-web-apps-alert",2),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA(),i.TgZ(7,"div",3),i.TgZ(8,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(9),i.ALo(10,"translate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,3,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.TITLE"),"\n"),i.xp6(4),i.Oqu(i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.INFO")),i.xp6(4),i.hij(" ",i.lcZ(10,7,"SHARED_LIB.PERUN.COMPONENTS.MAIL_CHANGE_FAILED_DIALOG.CLOSE")," "))},directives:[Sn,tn,Nn,Vi,kt],pipes:[lt],styles:[""]}),n})();function hL(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.FIELD_EMPTY")))}function pL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"form",5),i.TgZ(1,"div",6),i.TgZ(2,"mat-form-field"),i.TgZ(3,"mat-label"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"input",7),i.TgZ(7,"mat-icon",8),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.showOldPassword=!r.showOldPassword}),i._uU(8),i.qZA(),i.YNc(9,hL,3,3,"mat-error",9),i.qZA(),i._UZ(10,"perun-web-apps-password-form",10),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("formGroup",e.formGroup),i.xp6(4),i.Oqu(i.lcZ(5,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.OLD_PASSWORD")),i.xp6(2),i.Q6J("type",e.showOldPassword?"text":"password"),i.xp6(2),i.hij(" ",e.showOldPassword?"visibility_off":"visibility"," "),i.xp6(1),i.Q6J("ngIf",e.oldPwd.hasError("required")),i.xp6(1),i.Q6J("formGroup",e.formGroup)("namespace",e.data.namespace)}}function fL(n,a){1&n&&i._UZ(0,"mat-spinner",11)}function mL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"div",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().close()}),i._uU(3),i.ALo(4,"translate"),i.qZA(),i.TgZ(5,"button",15),i.NdJ("click",function(){return i.CHM(e),i.oxw().changePassword()}),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",i.lcZ(4,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.formGroup.invalid||e.formGroup.pending),i.xp6(1),i.hij(" ",i.lcZ(7,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.CHANGE")," ")}}let gL=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialogRef=e,this.data=t,this._formBuilder=r,this.usersManagerService=l,this.apiRequestConfiguration=d,this.notificator=s,this.translate=o,this.showOldPassword=!1,o.get("SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.SUCCESS").subscribe(c=>this.successMessage=c)}ngOnInit(){this.formGroup=this._formBuilder.group({oldPasswordCtrl:["",_n.required],passwordCtrl:["",_n.required,[rS(this.data.namespace,this.usersManagerService,this.apiRequestConfiguration)]],passwordAgainCtrl:[""]},{validators:$x.passwordMatchValidator}),this.oldPwd=this.formGroup.get("oldPasswordCtrl"),this.newPwd=this.formGroup.get("passwordCtrl"),this.newPwdAgain=this.formGroup.get("passwordAgainCtrl")}close(){this.dialogRef.close(!1)}changePassword(){this.loading=!0,this.usersManagerService.changePasswordForLogin(this.data.login,this.data.namespace,this.newPwd.value,this.oldPwd.value,!0).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(c1),i.Y36(Ti),i.Y36(y1),i.Y36(hr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-password-dialog"]],decls:7,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[3,"formGroup"],[1,"display-flex"],["formControlName","oldPasswordCtrl","matInput","","required","",3,"type"],["matSuffix","",3,"click"],[4,"ngIf"],[3,"formGroup","namespace"],[1,"ml-auto","mr-auto"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["color","accent","mat-flat-button","",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.YNc(4,pL,11,9,"form",2),i.YNc(5,fL,1,0,"mat-spinner",3),i.qZA(),i.YNc(6,mL,8,7,"div",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_PASSWORD_DIALOG.TITLE")),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Sn,tn,w.O5,Wp,Eu,Zs,mn,rs,rn,Ln,bn,Qn,Nr,An,Ab,jl,aS,En,Vi,kt],pipes:[lt],styles:[".display-flex[_ngcontent-%COMP%]{display:flex;flex-direction:column}.white-space-pre[_ngcontent-%COMP%]{white-space:pre}mat-icon[_ngcontent-%COMP%]:hover{cursor:default}"]}),n})();const _L=["input"],bL=function(n){return{enterDuration:n}},AL=["*"],yL=new i.OlP("mat-radio-default-options",{providedIn:"root",factory:function ML(){return{color:"accent"}}});let pS=0;const wL={provide:Zn,useExisting:(0,i.Gpc)(()=>gS),multi:!0};class fS{constructor(a,e){this.source=a,this.value=e}}const mS=new i.OlP("MatRadioGroup");let CL=(()=>{class n{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+pS++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.vpe}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=je(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new fS(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO))},n.\u0275dir=i.lG2({type:n,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),n})(),gS=(()=>{class n extends CL{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-radio-group"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,_S,5),2&e){let l;i.iGM(l=i.CRH())&&(t._radios=l)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i._Bn([wL,{provide:mS,useExisting:n}]),i.qOj]}),n})();class vL{constructor(a){this._elementRef=a}}const TL=na(Vl(vL));let xL=(()=>{class n extends TL{constructor(e,t,r,l,d,s,o,c){super(t),this._changeDetector=r,this._focusMonitor=l,this._radioDispatcher=d,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++pS,this.id=this._uniqueId,this.change=new i.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations="NoopAnimations"===s,c&&(this.tabIndex=li(c,0)),this._removeUniqueSelectionListener=d.listen((u,h)=>{u!==this.id&&h===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=je(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(je(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=je(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new fS(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}return n.\u0275fac=function(e){i.$Z()},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&i.Gf(_L,5),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[i.qOj]}),n})(),_S=(()=>{class n extends xL{constructor(e,t,r,l,d,s,o,c){super(e,t,r,l,d,s,o,c)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(mS,8),i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(Cp),i.Y36(Bn,8),i.Y36(yL,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t._inputElement.nativeElement.focus()}),2&e&&(i.uIk("tabindex",null)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.ekj("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable",t._noopAnimations)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.qOj],ngContentSelectors:AL,decls:13,vars:20,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i._UZ(3,"span",3),i._UZ(4,"span",4),i.TgZ(5,"input",5,6),i.NdJ("change",function(l){return t._onInputInteraction(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(7,"span",7),i._UZ(8,"span",8),i.qZA(),i.qZA(),i.TgZ(9,"span",9),i.TgZ(10,"span",10),i._uU(11,"\xa0"),i.qZA(),i.Hsn(12),i.qZA(),i.qZA()),2&e){const r=i.MAs(1);i.uIk("for",t.inputId),i.xp6(5),i.Q6J("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),i.uIk("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,bL,t._noopAnimations?0:150)),i.xp6(2),i.ekj("mat-radio-label-before","before"==t.labelPosition)}},directives:[Gn],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),n})(),bS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ti,ct],ct]}),n})();function SL(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function EL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ACTIVE_HINT")," "))}function DL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.INACTIVE_HINT")," "))}function HL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-radio-group",12),i.NdJ("ngModelChange",function(r){return i.CHM(e),i.oxw(2).asyncValidation=r}),i.TgZ(1,"span",13),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"mat-radio-button",14),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.TgZ(7,"mat-radio-button",14),i._uU(8),i.ALo(9,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.Q6J("ngModel",e.asyncValidation),i.xp6(2),i.hij(" ",i.lcZ(3,6,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.VALIDATE")," : "),i.xp6(2),i.Q6J("value",!1),i.xp6(1),i.hij(" ",i.lcZ(6,8,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC")," "),i.xp6(2),i.Q6J("value",!0),i.xp6(1),i.hij(" ",i.lcZ(9,10,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC")," ")}}function LL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.SYNC_HINT")," "))}function kL(n,a){1&n&&(i.TgZ(0,"span",11),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.ASYNC_HINT")," "))}function PL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"p",6),i._uU(2),i.TgZ(3,"span",7),i._uU(4),i.qZA(),i._uU(5),i.TgZ(6,"span",7),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"p"),i.TgZ(9,"strong",8),i._uU(10),i.ALo(11,"translate"),i.qZA(),i._uU(12),i.qZA(),i.TgZ(13,"p"),i.TgZ(14,"strong",8),i._uU(15),i.ALo(16,"translate"),i.qZA(),i._uU(17),i.qZA(),i.YNc(18,EL,3,3,"span",9),i.YNc(19,DL,3,3,"span",9),i.YNc(20,HL,10,12,"mat-radio-group",10),i.YNc(21,LL,3,3,"span",9),i.YNc(22,kL,3,3,"span",9),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",e.group.name," "),i.xp6(2),i.hij("#",e.group.id,""),i.xp6(1),i.hij(" - ",e.resource.name," "),i.xp6(2),i.hij("#",e.resource.id,""),i.xp6(3),i.hij(" ",i.lcZ(11,13,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CURRENT")," : "),i.xp6(2),i.hij(" ",e.status," "),i.xp6(3),i.hij(" ",i.lcZ(16,15,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.NEW")," : "),i.xp6(2),i.hij(" ",e.getReversedStatus()," "),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf","ACTIVE"===e.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===e.status||"FAILED"===e.status),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!1===e.asyncValidation),i.xp6(1),i.Q6J("ngIf",("INACTIVE"===e.status||"FAILED"===e.status)&&!0===e.asyncValidation)}}function RL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",15),i.TgZ(1,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.TgZ(4,"button",17),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(5),i.ALo(6,"translate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.CANCEL")," "),i.xp6(2),i.Q6J("disabled",e.loading),i.xp6(1),i.hij(" ",i.lcZ(6,5,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG."+("ACTIVE"===e.status?"DEACTIVATE":"ACTIVATE"))," ")}}let OL=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.resourceService=r,this.groupService=l,this.loading=!1,this.asyncValidation=!1,this.resource=null,this.group=null}ngOnInit(){this.loading=!0,this.status=this.data.status,this.theme=this.data.theme,this.resourceService.getResourceById(this.data.resourceId).subscribe(e=>{this.resource=e,this.groupService.getGroupById(this.data.groupId).subscribe(t=>{this.group=t,this.loading=!1},()=>this.loading=!1)},()=>this.loading=!1)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,"ACTIVE"===this.status?this.resourceService.deactivateGroupResourceAssignment(this.data.groupId,this.data.resourceId).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1):this.resourceService.activateGroupResourceAssignment(this.data.groupId,this.data.resourceId,this.asyncValidation).subscribe(()=>{this.dialogRef.close(!0),this.loading=!1},()=>this.loading=!1)}getReversedStatus(){return"ACTIVE"===this.status?"INACTIVE":"ACTIVE"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(fi),i.Y36(Hi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-change-group-resource-assigment-dialog"]],decls:7,vars:9,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","",4,"ngIf"],["mat-dialog-actions","",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"mb-4"],[1,"text-muted","id-font"],[1,"mr-2"],["class","text-muted",4,"ngIf"],["class","d-flex flex-column mt-3",3,"ngModel","ngModelChange",4,"ngIf"],[1,"text-muted"],[1,"d-flex","flex-column","mt-3",3,"ngModel","ngModelChange"],[1,"font-weight-bold"],[3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"h1",0),i._uU(2),i.ALo(3,"translate"),i.qZA(),i.YNc(4,SL,1,0,"mat-spinner",1),i.YNc(5,PL,23,17,"div",2),i.YNc(6,RL,7,7,"div",3),i.qZA()),2&e&&(i.Tol(t.theme),i.xp6(2),i.hij(" ",i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.CHANGE_GROUP_RESOURCE_ASSIGMENT_DIALOG.TITLE")," "),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Sn,w.O5,En,tn,gS,bn,ur,_S,Vi,kt],pipes:[lt],styles:[".id-font[_ngcontent-%COMP%]{font-size:1rem}"]}),n})();function IL(n,a){if(1&n&&(i.TgZ(0,"div",5),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(e.data.icon)}}function BL(n,a){if(1&n&&(i.TgZ(0,"div",6),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.showTimestamp()," ")}}let NL=(()=>{class n{constructor(e,t){this.dialog=e,this.notificationStorageService=t,this.newNotification=!1,this.closeNotification=new i.vpe,this.alreadyPressed=!1,this.alreadyClosed=!1,this.waiting=!1}doAction(){if(this.newNotification&&(this.alreadyPressed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,void 0!==this.data.action)this.data.action();else{const e=Pi();e.width="550px",e.data=this.data,e.autoFocus=!1,this.dialog.open(fH,e).afterClosed().subscribe(()=>{this.closeSelf()})}}closeSelf(){this.inDialog||(this.newNotification&&(this.alreadyClosed=!0),this.notificationStorageService.newNotificationsCount&&this.notificationStorageService.newNotificationsCount--,this.closeNotification.emit())}ngOnInit(){!function u2(n,a){return(0,c2.mG)(this,void 0,void 0,function*(){yield function h2(n){return new Promise(a=>setTimeout(a,n))}(n),a()})}(this.data.delay,()=>{!this.alreadyClosed&&!this.waiting&&this.closeSelf()})}showTimestamp(){const[e,t]=this.data.timeStamp.split(":");return t.length<2?e+":0"+t:this.data.timeStamp}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi),i.Y36(Xx))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notification"]],inputs:{data:"data",inDialog:"inDialog",newNotification:"newNotification"},outputs:{closeNotification:"closeNotification"},decls:9,vars:14,consts:[[1,"notification-container",3,"click"],["class","notification-icon",4,"ngIf"],[1,"notification-text","clickable"],["class","ml-auto mr-5 mt-auto mb-auto",4,"ngIf"],[1,"notification-action","mt-auto","mb-auto",3,"hidden","click"],[1,"notification-icon"],[1,"ml-auto","mr-5","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"div",0),i.NdJ("click",function(){return t.alreadyClosed||t.waiting?"":t.closeSelf()}),i.YNc(2,IL,3,1,"div",1),i.TgZ(3,"div",2),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,BL,2,1,"div",3),i.TgZ(7,"div",4),i.NdJ("click",function(){return t.waiting=!0,t.doAction()}),i._uU(8),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Gre("notification ",t.inDialog?"":"mat-elevation-z7",""),i.ekj("error","error"===t.data.type)("success","success"===t.data.type),i.xp6(2),i.Q6J("ngIf",null!==t.data.icon),i.xp6(2),i.hij(" ",i.lcZ(5,12,t.data.title)," "),i.xp6(2),i.Q6J("ngIf",t.inDialog),i.xp6(1),i.Q6J("hidden",t.alreadyPressed),i.xp6(1),i.hij(" ",t.data.actionText," "))},directives:[w.O5,An],pipes:[lt],styles:[".notification[_ngcontent-%COMP%]{width:450px;margin-bottom:16px;display:flex;flex-direction:row;justify-content:space-between;color:#fff}.notification-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;padding:16px}.notification-text[_ngcontent-%COMP%]{font-size:1.1em}.notification-action[_ngcontent-%COMP%]{margin-left:auto;text-decoration:underline;cursor:pointer}@media (max-width: 768px){.notification[_ngcontent-%COMP%]{width:100%}}.notification.error[_ngcontent-%COMP%]{background-color:#d32f2f}.notification.success[_ngcontent-%COMP%]{background-color:#288619}.notification-icon[_ngcontent-%COMP%]{padding-right:8px;color:#fff}"]}),n})();function VL(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-notification",2),i.NdJ("closeNotification",function(){const l=i.CHM(e).index;return i.oxw().removeNotification(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("@flyInOut",void 0),i.xp6(1),i.Q6J("data",e)("newNotification",!0)}}const zL=function(n){return{top:n}};let FL=(()=>{class n{constructor(e,t){this.notificator=e,this.notificationStorageService=t,this.displayWarning=!1,this.minWidth=992,this.notifications=[],this.mobileView=!1,this.notificator.addNotification.subscribe(r=>{this.processNotification(r)}),this.getScreenSize()}getScreenSize(){this.mobileView=window.innerWidth<=this.minWidth}getNotificatorTop(){return this.mobileView?"initial":this.displayWarning?"112px":"64px"}removeNotification(e){this.notifications.splice(e,1)}processNotification(e){this.notifications.push(e),this.notificationStorageService.storeNotification(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hr),i.Y36(Xx))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-notificator"]],hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},inputs:{displayWarning:"displayWarning"},decls:2,vars:4,consts:[["id","notificator",3,"ngStyle"],[4,"ngFor","ngForOf"],[3,"data","newNotification","closeNotification"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,VL,2,3,"div",1),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(2,zL,t.getNotificatorTop())),i.xp6(1),i.Q6J("ngForOf",t.notifications))},directives:[w.PC,w.sg,NL],styles:["#notificator[_ngcontent-%COMP%]{position:fixed;right:0;z-index:1001;padding:8px}@media (max-width: 768px){#notificator[_ngcontent-%COMP%]{width:100%;top:auto;top:initial;bottom:0}}"],data:{animation:[H2]}}),n})();const jL=["*",[["mat-toolbar-row"]]],qL=["*","mat-toolbar-row"],YL=Vo(class{constructor(n){this._elementRef=n}});let WL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),n})(),UL=(()=>{class n extends YL{constructor(e,t,r){super(e),this._platform=t,this._document=r}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Si),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-toolbar"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,WL,5),2&e){let l;i.iGM(l=i.CRH())&&(t._toolbarRows=l)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("mat-toolbar-multiple-rows",t._toolbarRows.length>0)("mat-toolbar-single-row",0===t._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.qOj],ngContentSelectors:qL,decls:2,vars:0,template:function(e,t){1&e&&(i.F$t(jL),i.Hsn(0),i.Hsn(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct],ct]}),n})();function AS(n){for(let a in n){let e=n[a]||"";switch(a){case"display":n.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":n["-webkit-"+a]=e;break;case"flex-direction":e=e||"row",n["-webkit-flex-direction"]=e,n["flex-direction"]=e;break;case"order":n.order=n["-webkit-"+a]=isNaN(+e)?"0":e}}return n}const nv="inline",TA=["row","column","row-reverse","column-reverse"];function yS(n){let[a,e,t]=function MS(n){var a;n=null!==(a=null==n?void 0:n.toLowerCase())&&void 0!==a?a:"";let[e,t,r]=n.split(" ");return TA.find(l=>l===e)||(e=TA[0]),t===nv&&(t=r!==nv?r:"",r=nv),[e,GL(t),!!r]}(n);return function ZL(n,a=null,e=!1){return{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n,"flex-wrap":a||null}}(a,e,t)}function GL(n){if(n)switch(n.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":n="wrap-reverse";break;case"no":case"none":case"nowrap":n="nowrap";break;default:n="wrap"}return n}const QL={provide:i.tb,useFactory:function $L(n,a){return()=>{if((0,w.NF)(a)){const e=Array.from(n.querySelectorAll(`[class*=${wS}]`)),t=/\bflex-layout-.+?\b/g;e.forEach(r=>{r.classList.contains(`${wS}ssr`)&&r.parentNode?r.parentNode.removeChild(r):r.className.replace(t,"")})}}},deps:[w.K0,i.Lbi],multi:!0},wS="flex-layout-";let rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[QL]}),n})();class Fu{constructor(a=!1,e="all",t="",r="",l=0){this.matches=a,this.mediaQuery=e,this.mqAlias=t,this.suffix=r,this.priority=l,this.property=""}clone(){return new Fu(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let JL=(()=>{class n{constructor(){this.stylesheet=new Map}addStyleToElement(e,t,r){const l=this.stylesheet.get(e);l?l.set(t,r):this.stylesheet.set(e,new Map([[t,r]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(e,t){const r=this.stylesheet.get(e);let l="";if(r){const d=r.get(t);("number"==typeof d||"string"==typeof d)&&(l=d+"")}return l}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const av={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},eo=new i.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>av}),hf=new i.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),sv=new i.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function CS(n,a){return n=n?n.clone():new Fu,a&&(n.mqAlias=a.alias,n.mediaQuery=a.mediaQuery,n.suffix=a.suffix,n.priority=a.priority),n}class yn{constructor(){this.shouldCache=!0}sideEffect(a,e,t){}}let Wi=(()=>{class n{constructor(e,t,r,l){this._serverStylesheet=e,this._serverModuleLoaded=t,this._platformId=r,this.layoutConfig=l}applyStyleToElement(e,t,r=null){let l={};"string"==typeof t&&(l[t]=r,t=l),l=this.layoutConfig.disableVendorPrefixes?t:AS(t),this._applyMultiValueStyleToElement(l,e)}applyStyleToElements(e,t=[]){const r=this.layoutConfig.disableVendorPrefixes?e:AS(e);t.forEach(l=>{this._applyMultiValueStyleToElement(r,l)})}getFlowDirection(e){const t="flex-direction";let r=this.lookupStyle(e,t);return[r||"row",this.lookupInlineStyle(e,t)||(0,w.PM)(this._platformId)&&this._serverModuleLoaded?r:""]}hasWrap(e){return"wrap"===this.lookupStyle(e,"flex-wrap")}lookupAttributeValue(e,t){var r;return null!==(r=e.getAttribute(t))&&void 0!==r?r:""}lookupInlineStyle(e,t){return(0,w.NF)(this._platformId)?e.style.getPropertyValue(t):function XL(n,a){var e;return null!==(e=vS(n)[a])&&void 0!==e?e:""}(e,t)}lookupStyle(e,t,r=!1){let l="";return e&&((l=this.lookupInlineStyle(e,t))||((0,w.NF)(this._platformId)?r||(l=getComputedStyle(e).getPropertyValue(t)):this._serverModuleLoaded&&(l=this._serverStylesheet.getStyleForElement(e,t)))),l?l.trim():""}_applyMultiValueStyleToElement(e,t){Object.keys(e).sort().forEach(r=>{const l=e[r],d=Array.isArray(l)?l:[l];d.sort();for(let s of d)s=s?s+"":"",(0,w.NF)(this._platformId)||!this._serverModuleLoaded?(0,w.NF)(this._platformId)?t.style.setProperty(r,s):KL(t,r,s):this._serverStylesheet.addStyleToElement(t,r,s)})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(JL),i.LFG(hf),i.LFG(i.Lbi),i.LFG(eo))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function KL(n,a,e){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const t=vS(n);t[a]=null!=e?e:"",function ek(n,a){let e="";for(const t in a)a[t]&&(e+=`${t}:${a[t]};`);n.setAttribute("style",e)}(n,t)}function vS(n){const a={},e=n.getAttribute("style");if(e){const t=e.split(/;+/g);for(let r=0;r0){const d=l.indexOf(":");if(-1===d)throw new Error(`Invalid CSS style: ${l}`);a[l.substr(0,d).trim()]=l.substr(d+1).trim()}}}return a}function T1(n,a){return(a&&a.priority||0)-(n&&n.priority||0)}function tk(n,a){return(n.priority||0)-(a.priority||0)}let ov=(()=>{class n{constructor(e,t,r){this._zone=e,this._platformId=t,this._document=r,this.source=new Ki(new Fu(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const e=[];return this.registry.forEach((t,r)=>{t.matches&&e.push(r)}),e}isActive(e){var t;const r=this.registry.get(e);return null!==(t=null==r?void 0:r.matches)&&void 0!==t?t:this.registerQuery(e).some(l=>l.matches)}observe(e,t=!1){if(e&&e.length){const r=this._observable$.pipe((0,jt.h)(d=>!t||e.indexOf(d.mediaQuery)>-1)),l=new Ri.y(d=>{const s=this.registerQuery(e);if(s.length){const o=s.pop();s.forEach(c=>{d.next(c)}),this.source.next(o)}d.complete()});return(0,Ei.T)(l,r)}return this._observable$}registerQuery(e){const t=Array.isArray(e)?e:[e],r=[];return function ik(n,a){const e=n.filter(t=>!TS[t]);if(e.length>0){const t=e.join(", ");try{const r=a.createElement("style");r.setAttribute("type","text/css"),r.styleSheet||r.appendChild(a.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),a.head.appendChild(r),e.forEach(l=>TS[l]=r)}catch(r){console.error(r)}}}(t,this._document),t.forEach(l=>{const d=o=>{this._zone.run(()=>this.source.next(new Fu(o.matches,l)))};let s=this.registry.get(l);s||(s=this.buildMQL(l),s.addListener(d),this.pendingRemoveListenerFns.push(()=>s.removeListener(d)),this.registry.set(l,s)),s.matches&&r.push(new Fu(!0,l))}),r}ngOnDestroy(){let e;for(;e=this.pendingRemoveListenerFns.pop();)e()}buildMQL(e){return function nk(n,a){return a&&window.matchMedia("all").addListener?window.matchMedia(n):{matches:"all"===n||""===n,media:n,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(e,(0,w.NF)(this._platformId))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(i.Lbi),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const TS={},rk=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],xS="(orientation: portrait) and (max-width: 599.98px)",SS="(orientation: landscape) and (max-width: 959.98px)",ES="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",DS="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",HS="(orientation: portrait) and (min-width: 840px)",LS="(orientation: landscape) and (min-width: 1280px)",tc={HANDSET:`${xS}, ${SS}`,TABLET:`${ES} , ${DS}`,WEB:`${HS}, ${LS} `,HANDSET_PORTRAIT:`${xS}`,TABLET_PORTRAIT:`${ES} `,WEB_PORTRAIT:`${HS}`,HANDSET_LANDSCAPE:`${SS}`,TABLET_LANDSCAPE:`${DS}`,WEB_LANDSCAPE:`${LS}`},ak=[{alias:"handset",priority:2e3,mediaQuery:tc.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:tc.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:tc.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:tc.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:tc.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:tc.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:tc.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:tc.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:tc.WEB_PORTRAIT,overlapping:!0}],sk=/(\.|-|_)/g;function ok(n){let a=n.length>0?n.charAt(0):"",e=n.length>1?n.slice(1):"";return a.toUpperCase()+e}const uk=new i.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const n=(0,i.f3M)(sv),a=(0,i.f3M)(eo),e=[].concat.apply([],(n||[]).map(r=>Array.isArray(r)?r:[r]));return function dk(n,a=[]){const e={};return n.forEach(t=>{e[t.alias]=t}),a.forEach(t=>{e[t.alias]?function ec(n,...a){if(null==n)throw TypeError("Cannot convert undefined or null to object");for(let e of a)if(null!=e)for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(e[t.alias],t):e[t.alias]=t}),function ck(n){return n.forEach(a=>{a.suffix||(a.suffix=function lk(n){return n.replace(sk,"|").split("|").map(ok).join("")}(a.alias),a.overlapping=!!a.overlapping)}),n}(Object.keys(e).map(t=>e[t]))}((a.disableDefaultBps?[]:rk).concat(a.addOrientationBps?ak:[]),e)}});let lv=(()=>{class n{constructor(e){this.findByMap=new Map,this.items=[...e].sort(tk)}findByAlias(e){return e?this.findWithPredicate(e,t=>t.alias===e):null}findByQuery(e){return this.findWithPredicate(e,t=>t.mediaQuery===e)}get overlappings(){return this.items.filter(e=>e.overlapping)}get aliases(){return this.items.map(e=>e.alias)}get suffixes(){return this.items.map(e=>{var t;return null!==(t=null==e?void 0:e.suffix)&&void 0!==t?t:""})}findWithPredicate(e,t){var r;let l=this.findByMap.get(e);return l||(l=null!==(r=this.items.find(t))&&void 0!==r?r:null,this.findByMap.set(e,l)),null!=l?l:null}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(uk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const pf="print",hk={alias:pf,mediaQuery:pf,priority:1e3};let pk=(()=>{class n{constructor(e,t,r){this.breakpoints=e,this.layoutConfig=t,this._document=r,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new fk,this.deactivations=[]}withPrintQuery(e){return[...e,pf]}isPrintEvent(e){return e.mediaQuery.startsWith(pf)}get printAlias(){var e;return[...null!==(e=this.layoutConfig.printWithBreakpoints)&&void 0!==e?e:[]]}get printBreakPoints(){return this.printAlias.map(e=>this.breakpoints.findByAlias(e)).filter(e=>null!==e)}getEventBreakpoints({mediaQuery:e}){const t=this.breakpoints.findByQuery(e);return(t?[...this.printBreakPoints,t]:this.printBreakPoints).sort(T1)}updateEvent(e){var t;let r=this.breakpoints.findByQuery(e.mediaQuery);return this.isPrintEvent(e)&&(r=this.getEventBreakpoints(e)[0],e.mediaQuery=null!==(t=null==r?void 0:r.mediaQuery)&&void 0!==t?t:""),CS(e,r)}registerBeforeAfterPrintHooks(e){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const t=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(e,this.getEventBreakpoints(new Fu(!0,pf))),e.updateStyles())},r=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(e),e.updateStyles())};this._document.defaultView.addEventListener("beforeprint",t),this._document.defaultView.addEventListener("afterprint",r),this.beforePrintEventListeners.push(t),this.afterPrintEventListeners.push(r)}interceptEvents(e){return t=>{this.isPrintEvent(t)?t.matches&&!this.isPrinting?(this.startPrinting(e,this.getEventBreakpoints(t)),e.updateStyles()):!t.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(e),e.updateStyles()):this.collectActivations(e,t)}}blockPropagation(){return e=>!(this.isPrinting||this.isPrintEvent(e))}startPrinting(e,t){this.isPrinting=!0,this.formerActivations=e.activatedBreakpoints,e.activatedBreakpoints=this.queue.addPrintBreakpoints(t)}stopPrinting(e){e.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(e,t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!t.matches){const r=this.breakpoints.findByQuery(t.mediaQuery);if(r){const l=this.formerActivations&&this.formerActivations.includes(r),d=!this.formerActivations&&e.activatedBreakpoints.includes(r);(l||d)&&(this.deactivations.push(r),this.deactivations.sort(T1))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("beforeprint",e)),this.afterPrintEventListeners.forEach(e=>this._document.defaultView.removeEventListener("afterprint",e)))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(lv),i.LFG(eo),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class fk{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(a){return a.push(hk),a.sort(T1),a.forEach(e=>this.addBreakpoint(e)),this.printBreakpoints}addBreakpoint(a){a&&void 0===this.printBreakpoints.find(t=>t.mediaQuery===a.mediaQuery)&&(this.printBreakpoints=function mk(n){var a;return null!==(a=null==n?void 0:n.mediaQuery.startsWith(pf))&&void 0!==a&&a}(a)?[a,...this.printBreakpoints]:[...this.printBreakpoints,a])}clear(){this.printBreakpoints=[]}}let Ji=(()=>{class n{constructor(e,t,r){this.matchMedia=e,this.breakpoints=t,this.hook=r,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new He.xQ,this.observeActivations()}get activatedAlias(){var e,t;return null!==(t=null===(e=this.activatedBreakpoints[0])||void 0===e?void 0:e.alias)&&void 0!==t?t:""}set activatedBreakpoints(e){this._activatedBreakpoints=[...e]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(e){this._useFallbacks=e}onMediaChange(e){const t=this.findByQuery(e.mediaQuery);if(t){e=CS(e,t);const r=this.activatedBreakpoints.indexOf(t);e.matches&&-1===r?(this._activatedBreakpoints.push(t),this._activatedBreakpoints.sort(T1),this.updateStyles()):!e.matches&&-1!==r&&(this._activatedBreakpoints.splice(r,1),this._activatedBreakpoints.sort(T1),this.updateStyles())}}init(e,t,r,l,d=[]){kS(this.updateMap,e,t,r),kS(this.clearMap,e,t,l),this.buildElementKeyMap(e,t),this.watchExtraTriggers(e,t,d)}getValue(e,t,r){const l=this.elementMap.get(e);if(l){const d=void 0!==r?l.get(r):this.getActivatedValues(l,t);if(d)return d.get(t)}}hasValue(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);if(l)return void 0!==l.get(t)||!1}return!1}setValue(e,t,r,l){var d;let s=this.elementMap.get(e);if(s){const c=(null!==(d=s.get(l))&&void 0!==d?d:new Map).set(t,r);s.set(l,c),this.elementMap.set(e,s)}else s=(new Map).set(l,(new Map).set(t,r)),this.elementMap.set(e,s);const o=this.getValue(e,t);void 0!==o&&this.updateElement(e,t,o)}trackValue(e,t){return this.subject.asObservable().pipe((0,jt.h)(r=>r.element===e&&r.key===t))}updateStyles(){this.elementMap.forEach((e,t)=>{const r=new Set(this.elementKeyMap.get(t));let l=this.getActivatedValues(e);l&&l.forEach((d,s)=>{this.updateElement(t,s,d),r.delete(s)}),r.forEach(d=>{if(l=this.getActivatedValues(e,d),l){const s=l.get(d);this.updateElement(t,d,s)}else this.clearElement(t,d)})})}clearElement(e,t){const r=this.clearMap.get(e);if(r){const l=r.get(t);l&&(l(),this.subject.next({element:e,key:t,value:""}))}}updateElement(e,t,r){const l=this.updateMap.get(e);if(l){const d=l.get(t);d&&(d(r),this.subject.next({element:e,key:t,value:r}))}}releaseElement(e){const t=this.watcherMap.get(e);t&&(t.forEach(l=>l.unsubscribe()),this.watcherMap.delete(e));const r=this.elementMap.get(e);r&&(r.forEach((l,d)=>r.delete(d)),this.elementMap.delete(e))}triggerUpdate(e,t){const r=this.elementMap.get(e);if(r){const l=this.getActivatedValues(r,t);l&&(t?this.updateElement(e,t,l.get(t)):l.forEach((d,s)=>this.updateElement(e,s,d)))}}buildElementKeyMap(e,t){let r=this.elementKeyMap.get(e);r||(r=new Set,this.elementKeyMap.set(e,r)),r.add(t)}watchExtraTriggers(e,t,r){if(r&&r.length){let l=this.watcherMap.get(e);if(l||(l=new Map,this.watcherMap.set(e,l)),!l.get(t)){const s=(0,Ei.T)(...r).subscribe(()=>{const o=this.getValue(e,t);this.updateElement(e,t,o)});l.set(t,s)}}}findByQuery(e){return this.breakpoints.findByQuery(e)}getActivatedValues(e,t){for(let l=0;lt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(e)).pipe((0,I.b)(this.hook.interceptEvents(this)),(0,jt.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(ov),i.LFG(lv),i.LFG(pk))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function kS(n,a,e,t){var r;if(void 0!==t){const l=null!==(r=n.get(a))&&void 0!==r?r:new Map;l.set(e,t),n.set(a,l)}}let an=(()=>{class n{constructor(e,t,r,l){this.elementRef=e,this.styleBuilder=t,this.styler=r,this.marshal=l,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new He.xQ,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,this.marshal.activatedAlias)}ngOnChanges(e){Object.keys(e).forEach(t=>{if(-1!==this.inputs.indexOf(t)){const r=t.split(".").slice(1).join(".");this.setValue(e[t].currentValue,r)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(e=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),e)}addStyles(e,t){const r=this.styleBuilder,l=r.shouldCache;let d=this.styleCache.get(e);(!d||!l)&&(d=r.buildStyles(e,t),l&&this.styleCache.set(e,d)),this.mru=Object.assign({},d),this.applyStyleToElement(d),r.sideEffect(e,d,t)}clearStyles(){Object.keys(this.mru).forEach(e=>{this.mru[e]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(e,t=!1){if(e){const[r,l]=this.styler.getFlowDirection(e);if(!l&&t){const d=yS(r);this.styler.applyStyleToElements(d,[e])}return r.trim()}return"row"}hasWrap(e){return this.styler.hasWrap(e)}applyStyleToElement(e,t,r=this.nativeElement){this.styler.applyStyleToElement(r,e,t)}setValue(e,t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,e,t)}updateWithValue(e){this.currentValue!==e&&(this.addStyles(e),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(yn),i.Y36(Wi),i.Y36(Ji))},n.\u0275dir=i.lG2({type:n,features:[i.TTD]}),n})();class Hk{constructor(a,e,t=!0){this.key=a,this.value=e,this.key=t?a.replace(/['"]/g,"").trim():a.trim(),this.value=t?e.replace(/['"]/g,"").trim():e.trim(),this.value=this.value.replace(/;/,"")}}function IS(n){let a=typeof n;return"object"===a?n.constructor===Array?"array":n.constructor===Set?"set":"object":a}function NS(n){const[a,...e]=n.split(":");return new Hk(a,e.join(":"))}function VS(n,a){return a.key&&(n[a.key]=a.value),n}let Pk=(()=>{class n extends an{constructor(e,t,r,l,d,s,o,c,u){var h;super(e,null,t,r),this.sanitizer=l,this.ngStyleInstance=o,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.PC(e,d,s)),this.init();const f=null!==(h=this.nativeElement.getAttribute("style"))&&void 0!==h?h:"";this.fallbackStyles=this.buildStyleMap(f),this.isServer=c&&(0,w.PM)(u)}updateWithValue(e){const t=this.buildStyleMap(e);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),t),this.isServer&&this.applyStyleToElement(t),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(e){const t=r=>{var l;return null!==(l=this.sanitizer.sanitize(i.q3G.STYLE,r))&&void 0!==l?l:""};if(e)switch(IS(e)){case"string":return zS(function Lk(n,a=";"){return String(n).trim().split(a).map(e=>e.trim()).filter(e=>""!==e)}(e),t);case"array":return zS(e,t);default:return function BS(n,a){let e=[];return"set"===IS(n)?n.forEach(t=>e.push(t)):Object.keys(n).forEach(t=>{e.push(`${t}:${n[t]}`)}),function kk(n,a){return n.map(NS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(VS,{})}(e,a)}(e,t)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Wi),i.Y36(Ji),i.Y36(mr),i.Y36(i.aQg),i.Y36(i.Qsj),i.Y36(w.PC,10),i.Y36(hf),i.Y36(i.Lbi))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const Rk=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let SA=(()=>{class n extends Pk{constructor(){super(...arguments),this.inputs=Rk}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[i.qOj]}),n})();function zS(n,a){return n.map(NS).filter(t=>!!t).map(t=>(a&&(t.value=a(t.value)),t)).reduce(VS,{})}let FS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[rv]]}),n})();const dv=function(n){return{color:n}};function Ok(n,a){if(1&n&&(i.TgZ(0,"button",8),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3," apps "),i.qZA(),i.qZA()),2&n){const e=i.oxw(),t=i.MAs(2);i.Q6J("matMenuTriggerFor",t)("matTooltip",i.lcZ(1,3,"NAV.OTHER_APPLICATIONS")),i.xp6(2),i.Q6J("ngStyle",i.VKq(5,dv,e.iconColor))}}function Ik(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",2),i.NdJ("click",function(){return i.CHM(e),i.oxw().onLogOut()}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"NAV.LOGOUT")," "))}let Bk=(()=>{class n{constructor(e,t,r,l){this.authService=e,this.authzResolverService=t,this.notificator=r,this.translateService=l}redirectToUrl(){window.open(this.url,"_blank")}onLogOut(){this.authService.logout()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pa),i.Y36(Gi),i.Y36(hr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header-menu"]],inputs:{user:"user",iconColor:"iconColor",textColor:"textColor",logoutEnabled:"logoutEnabled",url:"url",label:"label"},decls:14,vars:15,consts:[["mat-icon-button","",3,"matMenuTriggerFor","matTooltip",4,"ngIf"],["appsMenu","matMenu"],["mat-menu-item","",3,"click"],["mat-button","",3,"matMenuTriggerFor"],[3,"ngStyle"],[1,"d-none","d-lg-inline",3,"ngStyle"],["menu","matMenu"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"]],template:function(e,t){if(1&e&&(i.YNc(0,Ok,4,7,"button",0),i.TgZ(1,"mat-menu",null,1),i.TgZ(3,"button",2),i.NdJ("click",function(){return t.redirectToUrl()}),i.TgZ(4,"span"),i._uU(5),i.qZA(),i.qZA(),i.qZA(),i.TgZ(6,"button",3),i.TgZ(7,"mat-icon",4),i._uU(8," person "),i.qZA(),i.TgZ(9,"span",5),i._uU(10),i.qZA(),i.qZA(),i.TgZ(11,"mat-menu",null,6),i.YNc(13,Ik,3,3,"button",7),i.qZA()),2&e){const r=i.MAs(12);i.Q6J("ngIf",t.url),i.xp6(5),i.Oqu(t.label),i.xp6(1),i.Q6J("matMenuTriggerFor",r),i.xp6(1),i.Q6J("ngStyle",i.VKq(11,dv,t.iconColor)),i.xp6(2),i.Q6J("ngStyle",i.VKq(13,dv,t.textColor)),i.xp6(1),i.xDo(" ",t.user.titleBefore," ",t.user.firstName," ",t.user.middleName," ",t.user.lastName," ",t.user.titleAfter," "),i.xp6(3),i.Q6J("ngIf",t.logoutEnabled)}},directives:[w.O5,kt,Vx,Tr,An,w.PC,Ox,$l],pipes:[lt],styles:["@media (max-width: 991px){.no-left-padding[_ngcontent-%COMP%]{padding-left:0}}"]}),n})();const jS=function(n){return{color:n}};function Nk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",7),i.NdJ("click",function(){return i.CHM(e),i.oxw().onToggleSidenav()}),i.TgZ(1,"mat-icon"),i._uU(2,"menu"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(1,jS,e.iconColor))}}function Vk(n,a){1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"span",9),i._uU(2," ~ \u{1f5f2}\xa0 "),i.qZA(),i.TgZ(3,"span",10),i._uU(4," DEVEL "),i.qZA(),i.TgZ(5,"span",9),i._uU(6," \u{1f5f2} ~ "),i.qZA(),i.qZA())}const zk=function(n){return{background:n}},Fk=function(){return[]},jk=function(){return["/"]};let qk=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.translate=r,this.otherApplicationService=l,this.sidenavToggle=new i.vpe,this.hideToggle=!1,this.disableLogo=!1,this.label=this.storeService.get("header_label_en"),this.logoutEnabled=this.storeService.get("log_out_enabled"),this.adminLabel=this.storeService.get("admin_gui_label_en"),this.principal=this.storeService.getPerunPrincipal(),this.bgColor=this.storeService.get("theme","nav_bg_color"),this.textColor=this.storeService.get("theme","nav_text_color"),this.iconColor=this.storeService.get("theme","nav_icon_color"),this.isDevel=!1,this.activeLink=!1,this.onToggleSidenav=()=>{this.sidenavToggle.emit()}}ngOnInit(){this.isDevel=this.storeService.get("is_devel"),this.translate.onLangChange.subscribe(e=>{this.label=this.storeService.get(`header_label_${e.lang}`),this.adminLabel=this.storeService.get(`admin_gui_label_${e.lang}`)}),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.isLinkToGuiActive()}isLinkToGuiActive(){this.linkRoles=this.storeService.get("link_to_admin_gui_by_roles");for(const e in this.storeService.getPerunPrincipal().roles)this.linkRoles.includes(e)&&(this.activeLink=!0);this.activeLink&&(this.adminGuiUrl=this.otherApplicationService.getUrlForOtherApplication("admin"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(mr),i.Y36(oi),i.Y36(qC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-header"]],inputs:{hideToggle:"hideToggle",disableLogo:"disableLogo"},outputs:{sidenavToggle:"sidenavToggle"},decls:8,vars:19,consts:[[1,"sticky-top","header-container","mat-elevation-z3",3,"ngStyle"],["id","nav-menu-icons"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click",4,"ngIf"],["queryParamsHandling","merge",1,"logo-container","mt-auto","mb-auto",3,"innerHTML","routerLink"],[1,"ml-3","mt-auto","mb-auto","hide-label",3,"ngStyle"],["id","nav-devel-info",4,"ngIf"],["id","nav-menu-user-info",3,"url","label","user","logoutEnabled","iconColor","textColor"],["aria-label","Menu","mat-icon-button","",3,"ngStyle","click"],["id","nav-devel-info"],[1,"text-warning"],[1,"text-danger"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-toolbar",0),i.TgZ(1,"div",1),i.YNc(2,Nk,3,3,"button",2),i._UZ(3,"a",3),i.TgZ(4,"p",4),i._uU(5),i.qZA(),i.qZA(),i.YNc(6,Vk,7,0,"div",5),i._UZ(7,"perun-web-apps-header-menu",6),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(13,zk,t.bgColor)),i.xp6(2),i.Q6J("ngIf",!t.hideToggle),i.xp6(1),i.Q6J("innerHTML",t.logo,i.oJD)("routerLink",t.disableLogo?i.DdM(15,Fk):i.DdM(16,jk)),i.xp6(1),i.Q6J("ngStyle",i.VKq(17,jS,t.textColor)),i.xp6(1),i.Oqu(t.label),i.xp6(1),i.Q6J("ngIf",t.isDevel),i.xp6(1),i.Q6J("url",t.adminGuiUrl)("label",t.adminLabel)("user",t.principal.user)("logoutEnabled",t.logoutEnabled)("iconColor",t.iconColor)("textColor",t.textColor))},directives:[UL,w.PC,SA,w.O5,kt,An,z,Bk],styles:[".header-container[_ngcontent-%COMP%]{height:64px!important;padding:0 0 0 8px;z-index:999}#nav-menu-user-info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-right:16px;margin-left:auto;margin-right:0}@media (max-width: 570px){.hide-label[_ngcontent-%COMP%]{display:none}}#nav-devel-info[_ngcontent-%COMP%]{margin-left:auto;font-weight:500;font-size:1.4rem;display:flex;align-items:center;font-family:Roboto,Helvetica Neue,sans-serif}#nav-menu-icons[_ngcontent-%COMP%]{display:flex;flex-direction:row}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();function qS(n){return a=>a.lift(new Yk(n))}class Yk{constructor(a){this.value=a}call(a,e){return e.subscribe(new Wk(a,this.value))}}class Wk extends Sr.L{constructor(a,e){super(a),this.value=e}_next(a){this.destination.next(this.value)}}const EA=["*"],Uk=["content"];function Gk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Zk(n,a){1&n&&(i.TgZ(0,"mat-drawer-content"),i.Hsn(1,2),i.qZA())}const $k=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Qk=["mat-drawer","mat-drawer-content","*"];function Jk(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.NdJ("click",function(){return i.CHM(e),i.oxw()._onBackdropClicked()}),i.qZA()}if(2&n){const e=i.oxw();i.ekj("mat-drawer-shown",e._isShowingBackdrop())}}function Xk(n,a){1&n&&(i.TgZ(0,"mat-sidenav-content"),i.Hsn(1,2),i.qZA())}const Kk=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],eP=["mat-sidenav","mat-sidenav-content","*"],YS={transformDrawer:Ai("transform",[Lt("open, open-instant",Le({transform:"none",visibility:"visible"})),Lt("void",Le({"box-shadow":"none",visibility:"hidden"})),Ct("void => open-instant",yt("0ms")),Ct("void <=> open, open-instant => void",yt("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},iP=new i.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function nP(){return!1}}),uv=new i.OlP("MAT_DRAWER_CONTAINER");let DA=(()=>{class n extends Eh{constructor(e,t,r,l,d){super(r,l,d),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>US)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Eh,useExisting:n}]),i.qOj],ngContentSelectors:EA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),WS=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=r,this._platform=l,this._ngZone=d,this._interactivityChecker=s,this._doc=o,this._container=c,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new He.xQ,this._animationEnd=new He.xQ,this._animationState="void",this.openedChange=new i.vpe(!0),this._openedStream=this.openedChange.pipe((0,jt.h)(u=>u),(0,ht.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&0===u.toState.indexOf("open")),qS(void 0)),this._closedStream=this.openedChange.pipe((0,jt.h)(u=>!u),(0,ht.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,jt.h)(u=>u.fromState!==u.toState&&"void"===u.toState),qS(void 0)),this._destroyed=new He.xQ,this.onPositionChanged=new i.vpe,this._modeChanged=new He.xQ,this.openedChange.subscribe(u=>{u?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{Ta(this._elementRef.nativeElement,"keydown").pipe((0,jt.h)(u=>27===u.keyCode&&!this.disableClose&&!Tn(u)),tt(this._destroyed)).subscribe(u=>this._ngZone.run(()=>{this.close(),u.stopPropagation(),u.preventDefault()}))}),this._animationEnd.pipe(Bh((u,h)=>u.fromState===h.fromState&&u.toState===h.toState)).subscribe(u=>{const{fromState:h,toState:f}=u;(0===f.indexOf("open")&&"void"===h||"void"===f&&0===h.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=je(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"===this.mode?"dialog":"first-tabbable":e}set autoFocus(e){("true"===e||"false"===e||null==e)&&(e=je(e)),this._autoFocus=e}get opened(){return this._opened}set opened(e){this.toggle(je(e))}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{e.addEventListener("blur",()=>e.removeAttribute("tabindex")),e.addEventListener("mousedown",()=>e.removeAttribute("tabindex"))})),e.focus(t)}_focusByCssSelector(e,t){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,t)}_takeFocus(){if(!this._focusTrap)return;const e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(t=>{!t&&"function"==typeof this._elementRef.nativeElement.focus&&e.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(e){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var e;this._focusTrap&&this._focusTrap.destroy(),null===(e=this._anchor)||void 0===e||e.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);const r=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),r}_setOpen(e,t,r){return this._opened=e,e?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",t&&this._restoreFocus(r)),this._updateFocusTrapState(),new Promise(l=>{this.openedChange.pipe((0,Zt.q)(1)).subscribe(d=>l(d?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(e){const t=this._elementRef.nativeElement,r=t.parentNode;"end"===e?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),r.insertBefore(this._anchor,t)),r.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Ug),i.Y36(Rr),i.Y36(Si),i.Y36(i.R0b),i.Y36(qh),i.Y36(w.K0,8),i.Y36(uv,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer"]],viewQuery:function(e,t){if(1&e&&i.Gf(Uk,5),2&e){let r;i.iGM(r=i.CRH())&&(t._content=r.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&i.WFA("@transform.start",function(l){return t._animationStarted.next(l)})("@transform.done",function(l){return t._animationEnd.next(l)}),2&e&&(i.uIk("align",null),i.d8E("@transform",t._animationState),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:EA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Eh],encapsulation:2,data:{animation:[YS.transformDrawer]},changeDetection:0}),n})(),US=(()=>{class n{constructor(e,t,r,l,d,s=!1,o){this._dir=e,this._element=t,this._ngZone=r,this._changeDetectorRef=l,this._animationMode=o,this._drawers=new i.n_E,this.backdropClick=new i.vpe,this._destroyed=new He.xQ,this._doCheckSubject=new He.xQ,this._contentMargins={left:null,right:null},this._contentMarginChanges=new He.xQ,e&&e.change.pipe(tt(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),d.change().pipe(tt(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=s}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=je(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:je(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(_i(this._allDrawers),tt(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(_i(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Oh.b)(10),tt(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const r=this._left._getWidth();e+=r,t-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const r=this._right._getWidth();t+=r,e-=r}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe((0,jt.h)(t=>t.fromState!==t.toState),tt(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(tt(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){!e||e.onPositionChanged.pipe(tt(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,Zt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(tt((0,Ei.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,r="mat-drawer-container-has-open";e?t.add(r):t.remove(r)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?this._end=e:this._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(vn,8),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(Qa),i.Y36(iP),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,DA,5),i.Suo(r,WS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},viewQuery:function(e,t){if(1&e&&i.Gf(DA,5),2&e){let r;i.iGM(r=i.CRH())&&(t._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i._Bn([{provide:uv,useExisting:n}])],ngContentSelectors:Qk,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t($k),i.YNc(0,Gk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Zk,2,0,"mat-drawer-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[DA,w.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),hv=(()=>{class n extends DA{constructor(e,t,r,l,d){super(e,t,r,l,d)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36((0,i.Gpc)(()=>ZS)),i.Y36(i.SBq),i.Y36(sr),i.Y36(i.R0b))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&i.Udp("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[i._Bn([{provide:Eh,useExisting:n}]),i.qOj],ngContentSelectors:EA,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),n})(),GS=(()=>{class n extends WS{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=je(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=li(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=li(e)}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(i.uIk("align",null),i.Udp("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),i.ekj("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.qOj],ngContentSelectors:EA,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA())},directives:[Eh],encapsulation:2,data:{animation:[YS.transformDrawer]},changeDetection:0}),n})(),ZS=(()=>{class n extends US{}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,hv,5),i.Suo(r,GS,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._content=l.first),i.iGM(l=i.CRH())&&(t._allDrawers=l)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[i._Bn([{provide:uv,useExisting:n}]),i.qOj],ngContentSelectors:eP,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(i.F$t(Kk),i.YNc(0,Jk,1,2,"div",0),i.Hsn(1),i.Hsn(2,1),i.YNc(3,Xk,2,0,"mat-sidenav-content",1)),2&e&&(i.Q6J("ngIf",t.hasBackdrop),i.xp6(3),i.Q6J("ngIf",!t._content))},directives:[hv,w.O5],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0}),n})(),pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ct,Oc,Sa],Sa,ct]}),n})(),rP=(()=>{class n{constructor(e){this.store=e}getSideMenuItems(){const e=this.store.get("displayed_tabs"),t=[];return e.forEach(l=>{switch(l){case"profile":t.push({label:"MENU_ITEMS.PROFILE",icon:"account_box",link:"/profile",activatedRegex:"^/profile$",tabName:"profile"});break;case"identities":t.push({label:"MENU_ITEMS.IDENTITIES",icon:"remove_red_eye",link:"/profile/identities",activatedRegex:"^/profile/identities$",tabName:"identities"});break;case"services":t.push({label:"MENU_ITEMS.SERVICES",icon:"build",link:"/profile/services",activatedRegex:"^/profile/services$",tabName:"services"});break;case"groups":t.push({label:"MENU_ITEMS.GROUPS",icon:"group",link:"/profile/groups",activatedRegex:"^/profile/groups$",tabName:"groups"});break;case"vos":t.push({label:"MENU_ITEMS.VOS",icon:"account_balance",link:"/profile/organizations",activatedRegex:"^/profile/organizations$",tabName:"vos"});break;case"privacy":t.push({label:"MENU_ITEMS.PRIVACY",icon:"vpn_key",link:"/profile/privacy",activatedRegex:"^/profile/privacy$",tabName:"privacy"});break;case"consents":t.push({label:"MENU_ITEMS.CONSENTS",icon:"fact_check",link:"/profile/consents",activatedRegex:"^/profile/consents",tabName:"consents"});break;case"settings":t.push({label:"MENU_ITEMS.SETTINGS",icon:"settings",link:"/profile/settings",activatedRegex:"^/profile/settings",tabName:"settings"})}}),this.store.get("external_services").forEach(l=>{const d={icon:"insert_link",link:l.url,activatedRegex:"^/profile/external",tabName:"external",external:!0};this.store.get("supported_languages").forEach(o=>{var c;d[`label_${o}`]=null!==(c=String(l[`label_${o}`]))&&void 0!==c?c:l.label_en}),t.push(d)}),t}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zt))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),fv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct],ct]}),n})();const mv=["*"],aP=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],sP=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],QS=ts(na(class{})),uP=na(class{}),JS=new i.OlP("MatList"),XS=new i.OlP("MatNavList");let hP=(()=>{class n extends QS{constructor(){super(...arguments),this._stateChanges=new He.xQ}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[i._Bn([{provide:XS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:mv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),gv=(()=>{class n extends QS{constructor(e){super(),this._elementRef=e,this._stateChanges=new He.xQ,"action-list"===this._getListType()&&e.nativeElement.classList.add("mat-action-list")}_getListType(){const e=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===e?"list":"mat-action-list"===e?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[i._Bn([{provide:JS,useExisting:n}]),i.qOj,i.TTD],ngContentSelectors:mv,decls:1,vars:0,template:function(e,t){1&e&&(i.F$t(),i.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{display:block;top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px;z-index:1}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),n})(),KS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),n})(),eE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),n})(),HA=(()=>{class n extends uP{constructor(e,t,r,l){super(),this._element=e,this._isInteractiveList=!1,this._destroyed=new He.xQ,this._disabled=!1,this._isInteractiveList=!!(r||l&&"action-list"===l._getListType()),this._list=r||l;const d=this._getHostElement();"button"===d.nodeName.toLowerCase()&&!d.hasAttribute("type")&&d.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(tt(this._destroyed)).subscribe(()=>{t.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(e){this._disabled=je(e)}ngAfterContentInit(){!function sw(n,a,e="mat"){n.changes.pipe(_i(n)).subscribe(({length:t})=>{Fl(a,`${e}-2-line`,!1),Fl(a,`${e}-3-line`,!1),Fl(a,`${e}-multi-line`,!1),2===t||3===t?Fl(a,`${e}-${t}-line`,!0):t>3&&Fl(a,`${e}-multi-line`,!0)})}(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(XS,8),i.Y36(JS,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,KS,5),i.Suo(r,eE,5),i.Suo(r,zl,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._avatar=l.first),i.iGM(l=i.CRH())&&(t._icon=l.first),i.iGM(l=i.CRH())&&(t._lines=l)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-list-item-disabled",t.disabled)("mat-list-item-avatar",t._avatar||t._icon)("mat-list-item-with-avatar",t._avatar||t._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.qOj],ngContentSelectors:sP,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(e,t){1&e&&(i.F$t(aP),i.TgZ(0,"span",0),i._UZ(1,"span",1),i.Hsn(2),i.TgZ(3,"span",2),i.Hsn(4,1),i.qZA(),i.Hsn(5,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("matRippleTrigger",t._getHostElement())("matRippleDisabled",t._isRippleDisabled()))},directives:[Gn],encapsulation:2,changeDetection:0}),n})(),_v=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[um,ti,ct,fp,w.ez],um,ct,fp,fv]}),n})(),iE=(()=>{class n{transform(e,t,r){return e[`${r}_${t}`]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedText",type:n,pure:!0}),n})();const bP=function(n){return{color:n}};function AP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",2),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return l.external?d.goToURL(l.link):d.shouldHideMenu()}),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"span",3),i._uU(4),i.ALo(5,"localisedText"),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("activated",t.isActive(e.activatedRegex)),i.s9C("routerLink",e.external?null:e.link),i.Q6J("ngStyle",i.VKq(16,bP,t.textColor))("matRippleColor","rgba(255, 255, 255, 0.1)"),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(e.external?i.Dn7(5,7,e,t.lang,"label"):i.lcZ(6,11,i.xi3(7,13,e.label,t.lang)))}}let yP=(()=>{class n{constructor(e,t,r,l){this.sideMenuItemService=e,this.storeService=t,this.router=r,this.translateService=l,this.items=[],this.lang="en",this.textColor=this.storeService.get("theme","sidemenu_text_color"),this.currentUrl=r.url,r.events.subscribe(d=>{d instanceof At&&(this.currentUrl=d.url)})}ngOnInit(){this.translateService.onLangChange.subscribe(t=>{const{lang:r}=t;this.lang=r});const e=this.storeService.get("displayed_tabs");this.items=this.sideMenuItemService.getSideMenuItems(),this.items=this.items.filter(t=>e.includes(t.tabName))}isActive(e){return new RegExp(e).test(this.currentUrl)}shouldHideMenu(){"over"===this.sideNav.mode&&this.sideNav.close()}goToURL(e){window.open(e,"_blank")}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rP),i.Y36(zt),i.Y36(rt),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-side-menu"]],inputs:{sideNav:"sideNav"},decls:2,vars:1,consts:[[1,"pt-0"],["mat-ripple","","class","side-menu-item-height","queryParamsHandling","merge",3,"activated","ngStyle","matRippleColor","routerLink","click",4,"ngFor","ngForOf"],["mat-ripple","","queryParamsHandling","merge",1,"side-menu-item-height",3,"ngStyle","matRippleColor","routerLink","click"],[1,"nav-caption","ml-3"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-nav-list",0),i.YNc(1,AP,8,18,"mat-list-item",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[hP,w.sg,HA,Gn,w.PC,SA,O,An],pipes:[iE,lt,ni],styles:[".nav-caption[_ngcontent-%COMP%]{display:inline-block;padding-left:6px}.side-menu-item-height[_ngcontent-%COMP%]{height:40px!important}mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important}.activated[_ngcontent-%COMP%]{background:var(--side-active)!important;color:var(--side-text-active)!important}"]}),n})();function MP(n,a){if(1&n&&(i.TgZ(0,"span",1),i.TgZ(1,"a",2),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("routerLink",e.routerLink),i.xp6(1),i.Oqu(e.label)}}let wP=(()=>{class n{constructor(e,t,r){this.router=e,this.activatedRoute=t,this.translate=r,this.home={label:"Home",routerLink:"profile"},this.menuItems=[]}ngOnInit(){this.router.events.pipe((0,jt.h)(e=>e instanceof At)).subscribe(()=>{this.menuItems=[],this.createBreadcrumbs(this.activatedRoute.root)})}createBreadcrumbs(e,t=""){const r=e.children;0===r.length||"service-access"===r[0].snapshot.routeConfig.path||r.forEach(l=>{const d=l.snapshot.url.map(o=>o.path).join("/");""!==d&&(t+=`/${d}`);const s=this.translate.instant(l.snapshot.data[n.ROUTE_DATA_BREADCRUMB]);return s&&(!this.menuItems[this.menuItems.length-1]||s!==this.menuItems[this.menuItems.length-1].label)&&this.menuItems.push({label:s,routerLink:t}),this.createBreadcrumbs(l,t)})}}return n.ROUTE_DATA_BREADCRUMB="breadcrumb",n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(nr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-breadcrumbs"]],decls:1,vars:1,consts:[["class","custom-breadcrumb",4,"ngFor","ngForOf"],[1,"custom-breadcrumb"],["queryParamsHandling","merge",1,"breadcrumb-text",3,"routerLink"]],template:function(e,t){1&e&&i.YNc(0,MP,3,2,"span",0),2&e&&i.Q6J("ngForOf",t.menuItems)},directives:[w.sg,z],styles:['.custom-breadcrumb[_ngcontent-%COMP%]{display:inline-block}.custom-breadcrumb[_ngcontent-%COMP%]:first-child:before{display:none}.custom-breadcrumb[_ngcontent-%COMP%]:before{content:">";vertical-align:center;display:inline-block;margin:0 10px 10px 8px;-webkit-font-smoothing:antialiased}.breadcrumb-text[_ngcontent-%COMP%]{text-decoration:none!important;color:#2c2c2c}']}),n})();function CP(n,a){1&n&&(i.TgZ(0,"mat-error"),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT_ERROR")))}let vP=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.translate=t,this.notificator=r,this.rtMessages=l,this.storeService=d,this.message="",this.subject="",this.instanceName=""}ngOnInit(){this.instanceName=this.storeService.get("config")}sendBugReport(){this.rtMessages.sentMessageToRTWithQueue("perun",this.subject,this.getFullEmailBody()).subscribe(e=>{this.dialogRef.afterClosed().subscribe(()=>this.notificator.showSuccess(this.translate.instant("DIALOGS.REPORT_ISSUE.SUCCESS")+String(e.ticketNumber))),this.dialogRef.close()})}getFullEmailBody(){return this.message.concat("\n ","------------------------\n ","Perun instance: ",this.instanceName,"\n ","Sended from new Perun Gui, version: ",x(4147).i8)}close(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(oi),i.Y36(hr),i.Y36(dn),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-report-issue-dialog"]],decls:29,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container"],["matInput","","required","","type","text",3,"ngModel","ngModelChange"],["subjectModel","ngModel"],[4,"ngIf"],["matInput","",3,"placeholder","ngModel","ngModelChange"],["mat-dialog-actions",""],[1,"ml-auto"],["mat-button","",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){if(1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.qZA(),i.TgZ(3,"div",1),i.TgZ(4,"mat-form-field"),i.TgZ(5,"mat-label"),i._uU(6),i.ALo(7,"translate"),i.qZA(),i.TgZ(8,"input",2,3),i.NdJ("ngModelChange",function(l){return t.subject=l}),i.qZA(),i.YNc(10,CP,3,3,"mat-error",4),i.qZA(),i.TgZ(11,"mat-form-field"),i.TgZ(12,"mat-label"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.TgZ(15,"textarea",5),i.NdJ("ngModelChange",function(l){return t.message=l}),i.ALo(16,"translate"),i._uU(17," "),i.qZA(),i.TgZ(18,"mat-hint"),i._uU(19),i.ALo(20,"translate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(21,"div",6),i.TgZ(22,"div",7),i.TgZ(23,"button",8),i.NdJ("click",function(){return t.close()}),i._uU(24),i.ALo(25,"translate"),i.qZA(),i.TgZ(26,"button",9),i.NdJ("click",function(){return t.sendBugReport()}),i._uU(27),i.ALo(28,"translate"),i.qZA(),i.qZA(),i.qZA()),2&e){const r=i.MAs(9);i.xp6(1),i.Oqu(i.lcZ(2,11,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.TITLE")),i.xp6(5),i.Oqu(i.lcZ(7,13,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SUBJECT")),i.xp6(2),i.Q6J("ngModel",t.subject),i.xp6(2),i.Q6J("ngIf",r.invalid),i.xp6(3),i.Oqu(i.lcZ(14,15,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE")),i.xp6(2),i.s9C("placeholder",i.lcZ(16,17,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_PLACEHOLDER")),i.Q6J("ngModel",t.message),i.xp6(4),i.Oqu(i.lcZ(20,19,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.MESSAGE_HINT")),i.xp6(5),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.CANCEL")," "),i.xp6(2),i.Q6J("disabled",r.invalid),i.xp6(1),i.hij(" ",i.lcZ(28,23,"SHARED_LIB.PERUN.COMPONENTS.REPORT_ISSUE.SEND")," ")}},directives:[Sn,tn,mn,rs,Ln,rn,Nr,bn,ur,w.O5,jl,bb,Vi,kt],pipes:[lt],styles:[".dialog-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]}),n})(),TP=(()=>{class n{transform(e,t){return e["link_"+t]||e.link_en}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"localisedLink",type:n,pure:!0}),n})(),xP=(()=>{class n{transform(e){return e.includes("/")?e:"/assets/config/"+e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"footerLogoPath",type:n,pure:!0}),n})();function SP(n,a){if(1&n&&(i.TgZ(0,"a",13),i.ALo(1,"localisedLink"),i._UZ(2,"img",14),i.ALo(3,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,2,e,t.language),i.LSH),i.xp6(2),i.s9C("src",i.lcZ(3,5,e.logo),i.LSH)}}function EP(n,a){if(1&n&&(i.TgZ(0,"span"),i._UZ(1,"img",14),i.ALo(2,"footerLogoPath"),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.s9C("src",i.lcZ(2,1,e.logo),i.LSH)}}function DP(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,SP,4,7,"a",11),i.ALo(2,"localisedLink"),i.YNc(3,EP,3,3,"span",12),i.ALo(4,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",i.xi3(2,2,e,t.language)),i.xp6(2),i.Q6J("ngIf",!i.xi3(4,5,e,t.language))}}const HP=function(n){return{"min-height":n}};function LP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,DP,5,8,"div",5),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,HP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}const _d=function(n){return{color:n}};function kP(n,a){if(1&n&&(i.TgZ(0,"i",20),i._uU(1),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(2,_d,t.linksTextColor)),i.xp6(1),i.hij(" ",e.icon," ")}}function PP(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",21),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw(3).openDialog(r.dialog)}),i._uU(1),i.ALo(2,"localisedText"),i.qZA()}if(2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,_d,t.linksTextColor)),i.xp6(1),i.hij("",i.Dn7(2,2,e,t.language,"label")," ")}}function RP(n,a){if(1&n&&(i.TgZ(0,"a",22),i.ALo(1,"localisedLink"),i._uU(2),i.ALo(3,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("href",i.xi3(1,3,e,t.language),i.LSH)("ngStyle",i.VKq(10,_d,t.linksTextColor)),i.xp6(2),i.Oqu(i.Dn7(3,6,e,t.language,"label"))}}function OP(n,a){if(1&n&&(i.TgZ(0,"span",10),i._uU(1),i.ALo(2,"localisedText"),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw(3);i.Q6J("ngStyle",i.VKq(6,_d,t.linksTextColor)),i.xp6(1),i.Oqu(i.Dn7(2,2,e,t.language,"label"))}}function IP(n,a){if(1&n&&(i.TgZ(0,"div",16),i.YNc(1,kP,2,4,"i",17),i.YNc(2,PP,3,8,"span",18),i.YNc(3,RP,4,12,"a",19),i.ALo(4,"localisedLink"),i.YNc(5,OP,3,8,"span",9),i.ALo(6,"localisedLink"),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(3);i.xp6(1),i.Q6J("ngIf",e.icon),i.xp6(1),i.Q6J("ngIf",e.dialog),i.xp6(1),i.Q6J("ngIf",i.xi3(4,4,e,t.language)&&!e.dialog),i.xp6(2),i.Q6J("ngIf",!i.xi3(6,7,e,t.language)&&!e.dialog)}}const BP=function(n){return{height:n}};function NP(n,a){if(1&n&&(i.TgZ(0,"div",10),i.YNc(1,IP,7,10,"div",15),i.qZA()),2&n){const e=i.oxw().$implicit,t=i.oxw();i.Q6J("ngStyle",i.VKq(2,BP,t.columnContentHeight+"px")),i.xp6(1),i.Q6J("ngForOf",e.elements)}}function VP(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h6",8),i._uU(2),i.ALo(3,"localisedText"),i.qZA(),i.YNc(4,LP,2,4,"div",9),i.YNc(5,NP,2,4,"div",9),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.ekj("my-auto",t.containsLogos),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,_d,t.headersTextColor)),i.xp6(1),i.hij(" ",i.Dn7(3,6,e,t.language,"title")," "),i.xp6(2),i.Q6J("ngIf",e.logos),i.xp6(1),i.Q6J("ngIf",e.elements&&!e.logos)}}function zP(n,a){if(1&n&&(i.TgZ(0,"span"),i.TgZ(1,"a",6),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(1),i.Q6J("href",e.url,i.LSH)("ngStyle",i.VKq(3,_d,r.copyrightTextColor)),i.xp6(1),i.Oqu(t?", "+e.name:e.name)}}const FP=function(n){return{background:n}};let nE=(()=>{class n{constructor(e,t,r){this.storeService=e,this.translateService=t,this.dialog=r,this.copyrightTextColor=this.storeService.get("theme","footer_copyright_text_color"),this.footerColumns=[],this.copyrightItems=[],this.currentYear=(new Date).getFullYear(),this.containsLogos=!1,this.headersTextColor=this.storeService.get("theme","footer_headers_text_color"),this.linksTextColor=this.storeService.get("theme","footer_links_text_color"),this.githubRepository=this.storeService.get("footer","github_releases"),this.iconColor=this.storeService.get("theme","footer_icon_color"),this.bgColor=this.storeService.get("theme","footer_bg_color"),this.version="",this.language="en",this.columnContentHeight=0}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{this.language=e.lang}),this.version=x(4147).i8,this.footerColumns=this.storeService.get("footer","columns");for(const e of this.footerColumns)e.logos?this.containsLogos=!0:25*e.elements.length>this.columnContentHeight&&(this.columnContentHeight=25*e.elements.length);this.copyrightItems=this.storeService.get("footer","copyright_items")}openDialog(e){const t=Pi();"reportIssue"===e&&(t.width="550px",this.dialog.open(vP,t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(oi),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-footer"]],decls:10,vars:14,consts:[[1,"footer-container",3,"ngStyle"],[1,"footer-columns-container"],["class","footer-col mx-auto",3,"my-auto",4,"ngFor","ngForOf"],[1,"my-0","mt-3"],[1,"font-fix","text-center",3,"ngStyle"],[4,"ngFor","ngForOf"],["target","_blank",1,"text-decoration-none",3,"href","ngStyle"],[1,"footer-col","mx-auto"],[1,"font-weight-bold",3,"ngStyle"],[3,"ngStyle",4,"ngIf"],[3,"ngStyle"],[3,"href",4,"ngIf"],[4,"ngIf"],[3,"href"],["alt","image",3,"src"],["class","row-height",4,"ngFor","ngForOf"],[1,"row-height"],["class","material-icons align-bottom mr-1",3,"ngStyle",4,"ngIf"],["id","clickable",3,"ngStyle","click",4,"ngIf"],["target","_blank",3,"href","ngStyle",4,"ngIf"],[1,"material-icons","align-bottom","mr-1",3,"ngStyle"],["id","clickable",3,"ngStyle","click"],["target","_blank",3,"href","ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"footer",0),i.TgZ(1,"div",1),i.YNc(2,VP,6,12,"div",2),i.qZA(),i._UZ(3,"hr",3),i.TgZ(4,"div",4),i._uU(5),i.YNc(6,zP,3,5,"span",5),i._uU(7," Version "),i.TgZ(8,"a",6),i._uU(9),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.VKq(8,FP,t.bgColor)),i.xp6(2),i.Q6J("ngForOf",t.footerColumns),i.xp6(2),i.Q6J("ngStyle",i.VKq(10,_d,t.copyrightTextColor)),i.xp6(1),i.hij(" \xa9 ",t.currentYear," Copyright: "),i.xp6(1),i.Q6J("ngForOf",t.copyrightItems),i.xp6(2),i.Q6J("href",t.githubRepository,i.LSH)("ngStyle",i.VKq(12,_d,t.copyrightTextColor)),i.xp6(1),i.Oqu(t.version))},directives:[w.PC,w.sg,w.O5],pipes:[iE,TP,xP],styles:["a[_ngcontent-%COMP%]{text-decoration:none}.font-fix[_ngcontent-%COMP%]{font-size:.8rem}.row-height[_ngcontent-%COMP%]{height:25px!important}.footer-col[_ngcontent-%COMP%]{padding-top:35px;white-space:nowrap;text-align:center}.wrap-content[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#clickable[_ngcontent-%COMP%]{cursor:pointer}.footer-columns-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-direction:column}@media (min-width: 768px){.footer-columns-container[_ngcontent-%COMP%]{flex-direction:row}}.footer-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}"]}),n})();function jP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"div",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function qP(n,a){if(1&n&&(i.TgZ(0,"div",10),i._UZ(1,"div",11),i._UZ(2,"mat-icon",12),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}function YP(n,a){if(1&n&&(i.TgZ(0,"div",8),i._UZ(1,"a",9),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("innerHTML",e.logo,i.oJD)}}const WP=function(n){return{color:n}};function UP(n,a){if(1&n&&(i.TgZ(0,"p",13),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.Q6J("ngStyle",i.VKq(2,WP,e.textColor)),i.xp6(1),i.hij(" ",e.headerTitle," ")}}const GP=function(n,a){return{background:n,color:a}},ZP=function(n,a){return{"min-height":n,"background-color":a}};let $P=(()=>{class n{constructor(e,t,r,l){this.storeService=e,this.sanitizer=t,this.preferredLangService=r,this.translateService=l,this.contentBackgroundColor=this.storeService.get("theme","content_bg_color")}ngOnInit(){if(this.headerBackgroundColor=this.storeService.get("theme","nav_bg_color"),this.headerTextColor=this.storeService.get("theme","nav_text_color"),this.logo=this.sanitizer.bypassSecurityTrustHtml(this.storeService.get("logo")),this.textColor=this.headerTitle?this.storeService.get("theme","header_text_color"):"","user-profile"===this.application){const e=this.preferredLangService.getPreferredLanguage(null);this.translateService.use(e)}}getContentInnerMinHeight(){return"calc((100vh - 64px) + 0px)"}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(mr),i.Y36(jC),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-base"]],inputs:{application:"application",headerTitle:"headerTitle"},decls:11,vars:12,consts:[["id","login-nav",1,"mat-elevation-z3",3,"ngStyle"],["class","mt-auto mb-auto",4,"ngIf"],["style"," display: flex; flex-direction: row;",4,"ngIf"],["class","ml-3 mt-auto mb-auto page-subtitle",3,"ngStyle",4,"ngIf"],["id","content"],["id","content-inner",3,"ngStyle"],["id","content-wrap"],["id","footer"],[1,"mt-auto","mb-auto"],[1,"logo-container",3,"innerHTML"],[2,"display","flex","flex-direction","row"],[1,"logo-container","mt-auto","mb-auto",3,"innerHTML"],["svgIcon","perun-publications-white",1,"mt-auto","mb-auto","router-icon","ml-2","mr-2"],[1,"ml-3","mt-auto","mb-auto","page-subtitle",3,"ngStyle"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,jP,2,1,"div",1),i.YNc(2,qP,3,1,"div",2),i.YNc(3,YP,2,1,"div",1),i.YNc(4,UP,2,4,"p",3),i.qZA(),i.TgZ(5,"div",4),i.TgZ(6,"div",5),i.TgZ(7,"div",6),i._UZ(8,"router-outlet"),i.qZA(),i.TgZ(9,"div",7),i._UZ(10,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.Q6J("ngStyle",i.WLB(6,GP,t.headerBackgroundColor,t.headerTextColor)),i.xp6(1),i.Q6J("ngIf","admin-gui"===t.application),i.xp6(1),i.Q6J("ngIf","publications"===t.application),i.xp6(1),i.Q6J("ngIf","user-profile"===t.application),i.xp6(1),i.Q6J("ngIf",!!t.headerTitle),i.xp6(2),i.Q6J("ngStyle",i.WLB(9,ZP,t.getContentInnerMinHeight(),t.contentBackgroundColor)))},directives:[w.PC,w.O5,An,hi,nE],styles:["#login-nav[_ngcontent-%COMP%]{position:fixed;width:100%;z-index:999;display:flex;height:64px;max-height:64px;top:0}#footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}#content[_ngcontent-%COMP%]{width:100%;min-height:calc(100vh - 64px);margin-top:64px}#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:250px;padding-top:10px}@media (max-width: 768px){#content-wrap[_ngcontent-%COMP%]{padding-bottom:500px}}.router-icon[_ngcontent-%COMP%]{height:2.5rem;width:2.5rem;cursor:pointer;outline:0}.page-subtitle[_ngcontent-%COMP%]{margin-bottom:1rem;font-size:1.5rem}.logo-container[_ngcontent-%COMP%]{padding:0 8px}.logo-container[_ngcontent-%COMP%] img, .logo-container[_ngcontent-%COMP%] svg{max-height:50px}"]}),n})();const QP=["footer"],rE=function(n){return{background:n}},JP=function(n){return{"min-height":n}};function XP(n,a){if(1&n){const e=i.EpF();i._UZ(0,"perun-web-apps-notificator"),i.TgZ(1,"div",2),i.TgZ(2,"perun-web-apps-header",3),i.NdJ("sidenavToggle",function(){return i.CHM(e),i.MAs(5).toggle()}),i.qZA(),i.TgZ(3,"mat-sidenav-container"),i.TgZ(4,"mat-sidenav",4,5),i._UZ(6,"perun-web-apps-side-menu",6),i.qZA(),i.TgZ(7,"mat-sidenav-content",7),i.TgZ(8,"div",8),i._UZ(9,"perun-web-apps-breadcrumbs"),i._UZ(10,"router-outlet"),i.qZA(),i.TgZ(11,"div",null,9),i._UZ(13,"perun-web-apps-footer"),i.qZA(),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(5),t=i.oxw();i.xp6(4),i.Q6J("mode",t.sidebarMode)("ngStyle",i.VKq(6,rE,t.sideMenuBgColor))("opened",!t.isMobile()),i.xp6(2),i.Q6J("sideNav",e),i.xp6(1),i.Q6J("ngStyle",i.VKq(8,rE,t.contentBackgroundColor)),i.xp6(1),i.Q6J("ngStyle",i.VKq(10,JP,t.contentHeight))}}function KP(n,a){if(1&n&&i._UZ(0,"perun-web-apps-login-screen-base",10),2&n){const e=i.oxw();i.Q6J("application","user-profile")("headerTitle",e.headerLabel)}}let eR=(()=>{class n{constructor(e,t,r,l,d,s,o,c){this.store=e,this.attributesManagerService=t,this.translateService=r,this.initAuth=l,this.changeDetector=d,this.preferredLangService=s,this.titleService=o,this.document=c,this.sidebarMode="side",this.sideMenuBgColor=this.store.get("theme","sidemenu_bg_color"),this.contentBackgroundColor=this.store.get("theme","content_bg_color"),this.contentHeight="calc(100vh - 84px)",this.headerLabel=this.store.get("header_label_en"),this.getScreenSize()}getScreenSize(){this.sidebarMode=this.isMobile()?"over":"side"}ngOnInit(){this.translateService.onLangChange.subscribe(e=>{const t=this.store.get("document_title",e.lang);this.titleService.setTitle(t),this.document.documentElement.lang=e.lang}),this.isLoginScreenShown=this.initAuth.isLoginScreenShown(),this.isServiceAccess=this.initAuth.isServiceAccessLoginScreenShown(),sessionStorage.removeItem("baLogout"),this.isLoginScreenShown?this.headerLabel=this.store.get(`header_label_${this.preferredLangService.getPreferredLanguage(null)}`):this.isServiceAccess||this.attributesManagerService.getUserAttributes(this.store.getPerunPrincipal().userId).subscribe(e=>{var t;const r=e.find(s=>"preferredLanguage"===s.friendlyName),l=null!==(t=null==r?void 0:r.value)&&void 0!==t?t:null,d=this.preferredLangService.getPreferredLanguage(l);this.translateService.use(d)})}isMobile(){return window.innerWidth<=n.minWidth}isServiceLogin(){return!!sessionStorage.getItem("baLogout")}ngAfterViewInit(){var e,t,r,l;const d=null!==(l=null===(r=null===(t=null===(e=this.footer)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.offsetHeight)||void 0===r?void 0:r.toString())&&void 0!==l?l:"0";this.contentHeight="calc(100vh - 84px - "+d+"px)",this.changeDetector.detectChanges()}}return n.minWidth=992,n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ri),i.Y36(oi),i.Y36(zC),i.Y36(i.sBO),i.Y36(jC),i.Y36(it),i.Y36(w.K0))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-root"]],viewQuery:function(e,t){if(1&e&&i.Gf(QP,5),2&e){let r;i.iGM(r=i.CRH())&&(t.footer=r.first)}},hostBindings:function(e,t){1&e&&i.NdJ("resize",function(l){return t.getScreenSize(l)},!1,i.Jf7)},decls:2,vars:2,consts:[[3,"ngIf"],[3,"application","headerTitle",4,"ngIf"],[1,"app-min-width"],[3,"sidenavToggle"],["fixedInViewport","","fixedTopGap","64",1,"side-menu-size",3,"mode","ngStyle","opened"],["sidenav",""],[1,"overflow-hidden",3,"sideNav"],["id","content-inner",3,"ngStyle"],["id","content-wrap",3,"ngStyle"],["footer",""],[3,"application","headerTitle"]],template:function(e,t){1&e&&(i.YNc(0,XP,14,12,"ng-template",0),i.YNc(1,KP,1,2,"perun-web-apps-login-screen-base",1)),2&e&&(i.Q6J("ngIf",!t.isLoginScreenShown&&!t.isServiceAccess&&!t.isServiceLogin()),i.xp6(1),i.Q6J("ngIf",t.isLoginScreenShown||t.isServiceAccess||t.isServiceLogin()))},directives:[w.O5,FL,qk,ZS,GS,w.PC,SA,yP,hv,wP,hi,nE,$P],styles:["#content-inner[_ngcontent-%COMP%]{position:relative}#content-wrap[_ngcontent-%COMP%]{padding-bottom:25px;padding-top:10px;margin:10px}@media (min-width: 600px){#content-wrap[_ngcontent-%COMP%]{padding-left:25px;padding-right:25px}}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}.side-menu-size[_ngcontent-%COMP%]{width:300px;height:auto}"]}),n})();var tR=x(1158);function iR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",15),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().index;return i.oxw().removeValue(r)}),i.TgZ(1,"mat-icon"),i._uU(2," indeterminate_check_box "),i.qZA(),i.qZA()}}function nR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",9),i.TgZ(1,"mat-form-field",10),i._UZ(2,"label",11),i.TgZ(3,"input",12),i.NdJ("click",function(){const l=i.CHM(e).index,d=i.oxw();return d.readonly&&d.attribute.displayName&&d.showValue(d.keys[l],d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().keys[d]=r}),i.qZA(),i.qZA(),i.TgZ(4,"mat-form-field",10),i._UZ(5,"label",11),i.TgZ(6,"input",13),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)})("ngModelChange",function(r){const d=i.CHM(e).index;return i.oxw().values[d]=r}),i.qZA(),i.qZA(),i.YNc(7,iR,3,0,"button",14),i.qZA()}if(2&n){const e=a.index,t=i.oxw();i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-key-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.hYB("id","",t.attribute.id,"-key-",e,""),i.MGl("name","key-",e,""),i.Q6J("ngModel",t.keys[e])("readonly",t.readonly),i.xp6(1),i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.hYB("for","",t.attribute.id,"-value-",e,""),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.MGl("name","value-",e,""),i.hYB("id","",t.attribute.id,"-value-",e,""),i.Q6J("readonly",t.readonly)("ngModel",t.values[e]),i.xp6(1),i.Q6J("ngIf",!t.readonly)}}function rR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function aR(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function sR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",16),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(1,rR,2,0,"mat-icon",17),i.YNc(2,aR,2,0,"mat-icon",17),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function oR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw().addValue()}),i.TgZ(1,"mat-icon"),i._uU(2," add_box "),i.qZA(),i.qZA()}}let lR=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.keys=[],this.values=[],this.defaultItemsShown=3,this.showMore=!1}ngOnInit(){if(this.attribute.value){const e=new Map(Object.entries(this.attribute.value));for(const[t,r]of e.entries())this.keys.push(t),this.values.push(r)}this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=zu(this.attribute))}customTrackBy(e){return e}addValue(){this.keys.push(""),this.values.push(""),this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())}removeValue(e){this.keys.splice(e,1),this.values.splice(e,1)}updateAttribute(){const e={};for(let t=0;tt.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[Wp,Eu,dd,w.sg,mn,Ln,rn,Nr,bn,ur,w.O5,kt,An,Tr],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}.input-margin[_ngcontent-%COMP%]{margin-bottom:-30px}.btn-margin[_ngcontent-%COMP%]{margin-top:10px}"]}),n})();const cR=["input"],dR=function(n){return{enterDuration:n}},uR=["*"],hR=new i.OlP("mat-checkbox-default-options",{providedIn:"root",factory:aE});function aE(){return{color:"accent",clickAction:"check-indeterminate"}}let pR=0;const sE=aE(),fR={provide:Zn,useExisting:(0,i.Gpc)(()=>ic),multi:!0};class mR{}const gR=Vl(Vo(na(ts(class{constructor(n){this._elementRef=n}}))));let ic=(()=>{class n extends gR{constructor(e,t,r,l,d,s,o){super(e),this._changeDetectorRef=t,this._focusMonitor=r,this._ngZone=l,this._animationMode=s,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++pR,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new i.vpe,this.indeterminateChange=new i.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||sE,this.color=this.defaultColor=this._options.color||sE.color,this.tabIndex=parseInt(d)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(e){this._required=je(e)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){const t=je(e);t!==this.disabled&&(this._disabled=t,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=e!=this._indeterminate;this._indeterminate=je(e),t&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(e){let t=this._currentCheckState,r=this._elementRef.nativeElement;if(t!==e&&(this._currentAnimationClass.length>0&&r.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){r.classList.add(this._currentAnimationClass);const l=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{r.classList.remove(l)},1e3)})}}_emitChangeEvent(){const e=new mR;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked}_onInputClick(e){var t;const r=null===(t=this._options)||void 0===t?void 0:t.clickAction;e.stopPropagation(),this.disabled||"noop"===r?!this.disabled&&"noop"===r&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==r&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(e,t){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}_onInteractionEvent(e){e.stopPropagation()}_getAnimationClassForCheckStateTransition(e,t){if("NoopAnimations"===this._animationMode)return"";let r="";switch(e){case 0:if(1===t)r="unchecked-checked";else{if(3!=t)return"";r="unchecked-indeterminate"}break;case 2:r=1===t?"unchecked-checked":"unchecked-indeterminate";break;case 1:r=2===t?"checked-unchecked":"checked-indeterminate";break;case 3:r=1===t?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${r}`}_syncIndeterminate(e){const t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Rr),i.Y36(i.R0b),i.$8M("tabindex"),i.Y36(Bn,8),i.Y36(hR,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-checkbox"]],viewQuery:function(e,t){if(1&e&&(i.Gf(cR,5),i.Gf(Gn,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._inputElement=r.first),i.iGM(r=i.CRH())&&(t.ripple=r.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null),i.ekj("mat-checkbox-indeterminate",t.indeterminate)("mat-checkbox-checked",t.checked)("mat-checkbox-disabled",t.disabled)("mat-checkbox-label-before","before"==t.labelPosition)("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[i._Bn([fR]),i.qOj],ngContentSelectors:uR,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2),i.TgZ(3,"input",3,4),i.NdJ("change",function(l){return t._onInteractionEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(5,"span",5),i._UZ(6,"span",6),i.qZA(),i._UZ(7,"span",7),i.TgZ(8,"span",8),i.O4$(),i.TgZ(9,"svg",9),i._UZ(10,"path",10),i.qZA(),i.kcU(),i._UZ(11,"span",11),i.qZA(),i.qZA(),i.TgZ(12,"span",12,13),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(14,"span",14),i._uU(15,"\xa0"),i.qZA(),i.Hsn(16),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(13);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-checkbox-inner-container-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(1),i.Q6J("id",t.inputId)("required",t.required)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex),i.uIk("value",t.value)("name",t.name)("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby)("aria-checked",t._getAriaChecked())("aria-describedby",t.ariaDescribedby),i.xp6(2),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",i.VKq(19,dR,"NoopAnimations"===t._animationMode?0:150))}},directives:[Gn,Nh],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}\n"],encapsulation:2,changeDetection:0}),n})(),oE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),x1=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ti,ct,jc,oE],ct,oE]}),n})(),bv=(()=>{class n{transform(e){return e.replace(/\s/g,"-").toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"multiWordDataCy",type:n,pure:!0}),n})();function AR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-checkbox",2),i.NdJ("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()})("ngModelChange",function(r){return i.CHM(e),i.oxw().attribute.value=r}),i.ALo(1,"multiWordDataCy"),i.qZA()}if(2&n){const e=i.oxw();i.Q2q("data-cy","",i.lcZ(1,2,e.attribute.displayName),"-value"),i.Q6J("ngModel",e.attribute.value)}}function yR(n,a){if(1&n&&(i.TgZ(0,"mat-label"),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.attribute.value)}}let MR=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=zu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-boolean"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:2,consts:[[3,"ngModel","change","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"ngModel","change","ngModelChange"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,AR,2,4,"mat-checkbox",0),i.YNc(2,yR,2,1,"mat-label",1),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",!t.readonly),i.xp6(1),i.Q6J("ngIf",t.readonly))},directives:[w.O5,ic,bn,ur,rs],pipes:[bv],styles:[""]}),n})();function CR(n){const{subscriber:a,counter:e,period:t}=n;a.next(e),this.schedule({subscriber:a,counter:e+1,period:t},t)}function Av(n,a,e){for(let t in a)if(a.hasOwnProperty(t)){const r=a[t];r?n.setProperty(t,r,(null==e?void 0:e.has(t))?"important":""):n.removeProperty(t)}return n}function ff(n,a){const e=a?"":"none";Av(n.style,{"touch-action":a?"":"none","-webkit-user-drag":a?"":"none","-webkit-tap-highlight-color":a?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function lE(n,a,e){Av(n.style,{position:a?"":"fixed",top:a?"":"0",opacity:a?"":"0",left:a?"":"-999em"},e)}function LA(n,a){return a&&"none"!=a?n+" "+a:n}function cE(n){const a=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*a}function yv(n,a){return n.getPropertyValue(a).split(",").map(t=>t.trim())}function Mv(n){const a=n.getBoundingClientRect();return{top:a.top,right:a.right,bottom:a.bottom,left:a.left,width:a.width,height:a.height,x:a.x,y:a.y}}function wv(n,a,e){const{top:t,bottom:r,left:l,right:d}=n;return e>=t&&e<=r&&a>=l&&a<=d}function S1(n,a,e){n.top+=a,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function dE(n,a,e,t){const{top:r,right:l,bottom:d,left:s,width:o,height:c}=n,u=o*a,h=c*a;return t>r-h&&ts-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Mv(e)})})}handleScroll(a){const e=Un(a),t=this.positions.get(e);if(!t)return null;const r=t.scrollPosition;let l,d;if(e===this._document){const c=this._viewportRuler.getViewportScrollPosition();l=c.top,d=c.left}else l=e.scrollTop,d=e.scrollLeft;const s=r.top-l,o=r.left-d;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&S1(c.clientRect,s,o)}),r.top=l,r.left=d,{top:s,left:o}}}function hE(n){const a=n.cloneNode(!0),e=a.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();a.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const o=this._handles.find(c=>s.target&&(s.target===c||c.contains(s.target)));o&&!this._disabledHandles.has(o)&&!this.disabled&&this._initializeDragSequence(o,s)}else this.disabled||this._initializeDragSequence(this._rootElement,s)},this._pointerMove=s=>{const o=this._getPointerPositionOnPage(s);if(!this._hasStartedDragging){if(Math.abs(o.x-this._pickupPositionOnPage.x)+Math.abs(o.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(s),V=this._dropContainer;if(!b)return void this._endDragSequence(s);(!V||!V.isDragging()&&!V.isReceiving())&&(s.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(s)))}return}this._boundaryElement&&(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),s.preventDefault();const c=this._getConstrainedPointerPosition(o);if(this._hasMoved=!0,this._lastKnownPointerPosition=o,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,o);else{const u=this._activeTransform;u.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,u.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(u.x,u.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:s,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=s=>{this._endDragSequence(s)},this.withRootElement(a).withParent(e.parentDragRef||null),this._parentPositions=new uE(t,l),d.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(a){const e=je(a);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>ff(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(a){this._handles=a.map(t=>qi(t)),this._handles.forEach(t=>ff(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(a){return this._previewTemplate=a,this}withPlaceholderTemplate(a){return this._placeholderTemplate=a,this}withRootElement(a){const e=qi(a);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,_E),e.addEventListener("touchstart",this._pointerDown,gE)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(a){return this._boundaryElement=a?qi(a):null,this._resizeSubscription.unsubscribe(),a&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(a){return this._parentDragRef=a,this}dispose(){var a,e;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(a=this._rootElement)||void 0===a||a.remove()),null===(e=this._anchor)||void 0===e||e.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(a){!this._disabledHandles.has(a)&&this._handles.indexOf(a)>-1&&(this._disabledHandles.add(a),ff(a,!0))}enableHandle(a){this._disabledHandles.has(a)&&(this._disabledHandles.delete(a),ff(a,this.disabled))}withDirection(a){return this._direction=a,this}_withDropContainer(a){this._dropContainer=a}getFreeDragPosition(){const a=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:a.x,y:a.y}}setFreeDragPosition(a){return this._activeTransform={x:0,y:0},this._passiveTransform.x=a.x,this._passiveTransform.y=a.y,this._dropContainer||this._applyRootElementTransform(a.x,a.y),this}withPreviewContainer(a){return this._previewContainer=a,this}_sortFromLastPointerPosition(){const a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var a,e;null===(a=this._preview)||void 0===a||a.remove(),null===(e=this._previewRef)||void 0===e||e.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var a,e;null===(a=this._placeholder)||void 0===a||a.remove(),null===(e=this._placeholderRef)||void 0===e||e.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(a){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(a),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(a);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(a){E1(a)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,r=t.parentNode,l=this._placeholder=this._createPlaceholderElement(),d=this._anchor=this._anchor||this._document.createComment(""),s=this._getShadowRoot();r.insertBefore(d,t),this._initialTransform=t.style.transform||"",this._preview=this._createPreviewElement(),lE(t,!1,Cv),this._document.body.appendChild(r.replaceChild(l,t)),this._getPreviewInsertionPoint(r,s).appendChild(this._preview),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(a,e){this._parentDragRef&&e.stopPropagation();const t=this.isDragging(),r=E1(e),l=!r&&0!==e.button,d=this._rootElement,s=Un(e),o=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?Yh(e):Gd(e);if(s&&s.draggable&&"mousedown"===e.type&&e.preventDefault(),t||l||o||c)return;if(this._handles.length){const f=d.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=Mv(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(a,e);const h=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:h.x,y:h.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(a){lE(this._rootElement,!0,Cv),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,t=e.getItemIndex(this),r=this._getPointerPositionOnPage(a),l=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:l,dropPoint:r}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:l,dropPoint:r}),e.drop(this,t,this._initialIndex,this._initialContainer,d,l,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:a,y:e},{x:t,y:r}){let l=this._initialContainer._getSiblingContainerFromPosition(this,a,e);!l&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(a,e)&&(l=this._initialContainer),l&&l!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=l,this._dropContainer.enter(this,a,e,l===this._initialContainer&&l.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:l,currentIndex:l.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,r),this._dropContainer._sortItem(this,a,e,this._pointerDirectionDelta),this._applyPreviewTransform(a-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const a=this._previewTemplate,e=this.previewClass,t=a?a.template:null;let r;if(t&&a){const l=a.matchSize?this._rootElement.getBoundingClientRect():null,d=a.viewContainer.createEmbeddedView(t,a.context);d.detectChanges(),r=AE(d,this._document),this._previewRef=d,a.matchSize?yE(r,l):r.style.transform=kA(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const l=this._rootElement;r=hE(l),yE(r,l.getBoundingClientRect()),this._initialTransform&&(r.style.transform=this._initialTransform)}return Av(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Cv),ff(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(l=>r.classList.add(l)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const a=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(a.left,a.top);const e=function vR(n){const a=getComputedStyle(n),e=yv(a,"transition-property"),t=e.find(s=>"transform"===s||"all"===s);if(!t)return 0;const r=e.indexOf(t),l=yv(a,"transition-duration"),d=yv(a,"transition-delay");return cE(l[r])+cE(d[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const r=d=>{var s;(!d||Un(d)===this._preview&&"transform"===d.propertyName)&&(null===(s=this._preview)||void 0===s||s.removeEventListener("transitionend",r),t(),clearTimeout(l))},l=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const a=this._placeholderTemplate,e=a?a.template:null;let t;return e?(this._placeholderRef=a.viewContainer.createEmbeddedView(e,a.context),this._placeholderRef.detectChanges(),t=AE(this._placeholderRef,this._document)):t=hE(this._rootElement),t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(a,e){const t=this._rootElement.getBoundingClientRect(),r=a===this._rootElement?null:a,l=r?r.getBoundingClientRect():t,d=E1(e)?e.targetTouches[0]:e,s=this._getViewportScrollPosition();return{x:l.left-t.left+(d.pageX-l.left-s.left),y:l.top-t.top+(d.pageY-l.top-s.top)}}_getPointerPositionOnPage(a){const e=this._getViewportScrollPosition(),t=E1(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a,r=t.pageX-e.left,l=t.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const s=this._ownerSVGElement.createSVGPoint();return s.x=r,s.y=l,s.matrixTransform(d.inverse())}}return{x:r,y:l}}_getConstrainedPointerPosition(a){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:t,y:r}=this.constrainPosition?this.constrainPosition(a,this):a;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(t=this._pickupPositionOnPage.x),this._boundaryRect){const{x:l,y:d}=this._pickupPositionInElement,s=this._boundaryRect,o=this._previewRect,c=s.top+d,u=s.bottom-(o.height-d);t=bE(t,s.left+l,s.right-(o.width-l)),r=bE(r,c,u)}return{x:t,y:r}}_updatePointerDirectionDelta(a){const{x:e,y:t}=a,r=this._pointerDirectionDelta,l=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-l.x),s=Math.abs(t-l.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>l.x?1:-1,l.x=e),s>this._config.pointerDirectionChangeThreshold&&(r.y=t>l.y?1:-1,l.y=t),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,ff(this._rootElement,a))}_removeRootElementListeners(a){a.removeEventListener("mousedown",this._pointerDown,_E),a.removeEventListener("touchstart",this._pointerDown,gE)}_applyRootElementTransform(a,e){const t=kA(a,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=LA(t,this._initialTransform)}_applyPreviewTransform(a,e){var t;const r=(null===(t=this._previewTemplate)||void 0===t?void 0:t.template)?void 0:this._initialTransform,l=kA(a,e);this._preview.style.transform=LA(l,r)}_getDragDistance(a){const e=this._pickupPositionOnPage;return e?{x:a.x-e.x,y:a.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:a,y:e}=this._passiveTransform;if(0===a&&0===e||this.isDragging()||!this._boundaryElement)return;const t=this._boundaryElement.getBoundingClientRect(),r=this._rootElement.getBoundingClientRect();if(0===t.width&&0===t.height||0===r.width&&0===r.height)return;const l=t.left-r.left,d=r.right-t.right,s=t.top-r.top,o=r.bottom-t.bottom;t.width>r.width?(l>0&&(a+=l),d>0&&(a-=d)):a=0,t.height>r.height?(s>0&&(e+=s),o>0&&(e-=o)):e=0,(a!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:a})}_getDragStartDelay(a){const e=this.dragStartDelay;return"number"==typeof e?e:E1(a)?e.touch:e?e.mouse:0}_updateOnScroll(a){const e=this._parentPositions.handleScroll(a);if(e){const t=Un(a);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&S1(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const a=this._parentPositions.positions.get(this._document);return a?a.scrollPosition:this._viewportRuler.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Sh(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(a,e){const t=this._previewContainer||"global";if("parent"===t)return a;if("global"===t){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return qi(t)}}function kA(n,a){return`translate3d(${Math.round(n)}px, ${Math.round(a)}px, 0)`}function bE(n,a,e){return Math.max(a,Math.min(e,n))}function E1(n){return"t"===n.type[0]}function AE(n,a){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===a.ELEMENT_NODE)return e[0];const t=a.createElement("div");return e.forEach(r=>t.appendChild(r)),t}function yE(n,a){n.style.width=`${a.width}px`,n.style.height=`${a.height}px`,n.style.transform=kA(a.left,a.top)}function ME(n,a,e){const t=D1(a,n.length-1),r=D1(e,n.length-1);if(t===r)return;const l=n[t],d=r!0,this.sortPredicate=()=>!0,this.beforeStarted=new He.xQ,this.entered=new He.xQ,this.exited=new He.xQ,this.dropped=new He.xQ,this.sorted=new He.xQ,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=re.w.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new He.xQ,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function wR(n=0,a=vh.P){return(!ig(n)||n<0)&&(n=0),(!a||"function"!=typeof a.schedule)&&(a=vh.P),new Ri.y(e=>(e.add(a.schedule(CR,n,{subscriber:e,counter:0,period:n})),e))}(0,Gf).pipe(tt(this._stopScrollTimers)).subscribe(()=>{const d=this._scrollNode,s=this.autoScrollStep;1===this._verticalScrollDirection?d.scrollBy(0,-s):2===this._verticalScrollDirection&&d.scrollBy(0,s),1===this._horizontalScrollDirection?d.scrollBy(-s,0):2===this._horizontalScrollDirection&&d.scrollBy(s,0)})},this.element=qi(a),this._document=t,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new uE(t,l)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(a,e,t,r){let l;this._draggingStarted(),null==r?(l=this.sortingDisabled?this._draggables.indexOf(a):-1,-1===l&&(l=this._getItemIndexFromPointerPosition(a,e,t))):l=r;const d=this._activeDraggables,s=d.indexOf(a),o=a.getPlaceholderElement();let c=d[l];if(c===a&&(c=d[l+1]),!c&&(null==l||-1===l||l-1&&d.splice(s,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(o,u),d.splice(l,0,a)}else qi(this.element).appendChild(o),d.push(a);o.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})}exit(a){this._reset(),this.exited.next({item:a,container:this})}drop(a,e,t,r,l,d,s){this._reset(),this.dropped.next({item:a,currentIndex:e,previousIndex:t,container:this,previousContainer:r,isPointerOverContainer:l,distance:d,dropPoint:s})}withItems(a){const e=this._draggables;return this._draggables=a,a.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===a.indexOf(r))?this._reset():this._cacheItems()),this}withDirection(a){return this._direction=a,this}connectedTo(a){return this._siblings=a.slice(),this}withOrientation(a){return this._orientation=a,this}withScrollableParents(a){const e=qi(this.element);return this._scrollableElements=-1===a.indexOf(e)?[e,...a]:a.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(a){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===a):this._draggables.indexOf(a)}isReceiving(){return this._activeSiblings.size>0}_sortItem(a,e,t,r){if(this.sortingDisabled||!this._clientRect||!dE(this._clientRect,.05,e,t))return;const l=this._itemPositions,d=this._getItemIndexFromPointerPosition(a,e,t,r);if(-1===d&&l.length>0)return;const s="horizontal"===this._orientation,o=l.findIndex(he=>he.drag===a),c=l[d],h=c.clientRect,f=o>d?1:-1,b=this._getItemOffsetPx(l[o].clientRect,h,f),V=this._getSiblingOffsetPx(o,l,f),ee=l.slice();ME(l,o,d),this.sorted.next({previousIndex:o,currentIndex:d,container:this,item:a}),l.forEach((he,Oe)=>{if(ee[Oe]===he)return;const gt=he.drag===a,ut=gt?b:V,Kt=gt?a.getPlaceholderElement():he.drag.getRootElement();he.offset+=ut,s?(Kt.style.transform=LA(`translate3d(${Math.round(he.offset)}px, 0, 0)`,he.initialTransform),S1(he.clientRect,0,ut)):(Kt.style.transform=LA(`translate3d(0, ${Math.round(he.offset)}px, 0)`,he.initialTransform),S1(he.clientRect,ut,0))}),this._previousSwap.overlaps=wv(h,e,t),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?r.x:r.y}_startScrollingIfNecessary(a,e){if(this.autoScrollDisabled)return;let t,r=0,l=0;if(this._parentPositions.positions.forEach((d,s)=>{s===this._document||!d.clientRect||t||dE(d.clientRect,.05,a,e)&&([r,l]=function DR(n,a,e,t){const r=vE(a,t),l=TE(a,e);let d=0,s=0;if(r){const o=n.scrollTop;1===r?o>0&&(d=1):n.scrollHeight-o>n.clientHeight&&(d=2)}if(l){const o=n.scrollLeft;1===l?o>0&&(s=1):n.scrollWidth-o>n.clientWidth&&(s=2)}return[d,s]}(s,d.clientRect,a,e),(r||l)&&(t=s))}),!r&&!l){const{width:d,height:s}=this._viewportRuler.getViewportSize(),o={width:d,height:s,top:0,right:d,bottom:s,left:0};r=vE(o,e),l=TE(o,a),t=window}t&&(r!==this._verticalScrollDirection||l!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=l,this._scrollNode=t,(r||l)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const a=qi(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"",a.scrollSnapType=a.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const a=qi(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(a).clientRect}_cacheItemPositions(){const a="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:Mv(t)}}).sort((e,t)=>a?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_reset(){this._isDragging=!1;const a=qi(this.element).style;a.scrollSnapType=a.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{var t;const r=e.getRootElement();if(r){const l=null===(t=this._itemPositions.find(d=>d.drag===e))||void 0===t?void 0:t.initialTransform;r.style.transform=l||""}}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(a,e,t){const r="horizontal"===this._orientation,l=e[a].clientRect,d=e[a+-1*t];let s=l[r?"width":"height"]*t;if(d){const o=r?"left":"top",c=r?"right":"bottom";-1===t?s-=d.clientRect[o]-l[c]:s+=l[o]-d.clientRect[c]}return s}_getItemOffsetPx(a,e,t){const r="horizontal"===this._orientation;let l=r?e.left-a.left:e.top-a.top;return-1===t&&(l+=r?e.width-a.width:e.height-a.height),l}_shouldEnterAsFirstChild(a,e){if(!this._activeDraggables.length)return!1;const t=this._itemPositions,r="horizontal"===this._orientation;if(t[0].drag!==this._activeDraggables[0]){const d=t[t.length-1].clientRect;return r?a>=d.right:e>=d.bottom}{const d=t[0].clientRect;return r?a<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(a,e,t,r){const l="horizontal"===this._orientation,d=this._itemPositions.findIndex(({drag:s,clientRect:o})=>{if(s===a)return!1;if(r){const c=l?r.x:r.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return l?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&tr._canReceive(a,e,t))}_canReceive(a,e,t){if(!this._clientRect||!wv(this._clientRect,e,t)||!this.enterPredicate(a,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,t);if(!r)return!1;const l=qi(this.element);return r===l||l.contains(r)}_startReceiving(a,e){const t=this._activeSiblings;!t.has(a)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(t.add(a),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(a){this._activeSiblings.delete(a),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(a=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(a);e&&(this._itemPositions.forEach(({clientRect:t})=>{S1(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const a=Sh(qi(this.element));this._cachedShadowRoot=a||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const a=this._activeDraggables.filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,a))}}function vE(n,a){const{top:e,bottom:t,height:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}function TE(n,a){const{left:e,right:t,width:r}=n,l=.05*r;return a>=e-l&&a<=e+l?1:a>=t-l&&a<=t+l?2:0}const PA=xa({passive:!1,capture:!0});let HR=(()=>{class n{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new He.xQ,this.pointerUp=new He.xQ,this.scroll=new He.xQ,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,PA)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,PA)}startDragging(e,t){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=t.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:l=>this.pointerUp.next(l),options:!0}).set("scroll",{handler:l=>this.scroll.next(l),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:PA}),r||this._globalListeners.set("mousemove",{handler:l=>this.pointerMove.next(l),options:PA}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((l,d)=>{this._document.addEventListener(d,l.handler,l.options)})})}}stopDragging(e){const t=this._activeDragInstances.indexOf(e);t>-1&&(this._activeDragInstances.splice(t,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const t=[this.scroll];return e&&e!==this._document&&t.push(new Ri.y(r=>this._ngZone.runOutsideAngular(()=>{const d=s=>{this._activeDragInstances.length&&r.next(s)};return e.addEventListener("scroll",d,!0),()=>{e.removeEventListener("scroll",d,!0)}}))),(0,Ei.T)(...t)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(i.R0b),i.LFG(w.K0))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LR={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let vv=(()=>{class n{constructor(e,t,r,l){this._document=e,this._ngZone=t,this._viewportRuler=r,this._dragDropRegistry=l}createDrag(e,t=LR){return new SR(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new ER(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(w.K0),i.LFG(i.R0b),i.LFG(Qa),i.LFG(HR))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const xE=new i.OlP("CDK_DRAG_PARENT"),SE=new i.OlP("CdkDropListGroup"),EE=new i.OlP("CDK_DRAG_CONFIG");let kR=0;const DE=new i.OlP("CdkDropList");let PR=(()=>{class n{constructor(e,t,r,l,d,s,o){this.element=e,this._changeDetectorRef=r,this._scrollDispatcher=l,this._dir=d,this._group=s,this._destroyed=new He.xQ,this.connectedTo=[],this.id="cdk-drop-list-"+kR++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.sorted=new i.vpe,this._unsortedItems=new Set,this._dropListRef=t.createDropList(e),this._dropListRef.data=this,o&&this._assignDefaults(o),this._dropListRef.enterPredicate=(c,u)=>this.enterPredicate(c.data,u.data),this._dropListRef.sortPredicate=(c,u,h)=>this.sortPredicate(c,u.data,h.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),n._dropLists.push(this),s&&s._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=je(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=n._dropLists.indexOf(this);e>-1&&n._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(_i(this._dir.value),tt(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{const t=kc(this.connectedTo).map(r=>"string"==typeof r?n._dropLists.find(d=>d.id===r):r);if(this._group&&this._group._items.forEach(r=>{-1===t.indexOf(r)&&t.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(l=>l.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=je(this.sortingDisabled),e.autoScrollDisabled=je(this.autoScrollDisabled),e.autoScrollStep=li(this.autoScrollStep,2),e.connectedTo(t.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:r,sortingDisabled:l,listAutoScrollDisabled:d,listOrientation:s}=e;this.disabled=null!=r&&r,this.sortingDisabled=null!=l&&l,this.autoScrollDisabled=null!=d&&d,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return n._dropLists=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(vv),i.Y36(i.sBO),i.Y36(sr),i.Y36(vn,8),i.Y36(SE,12),i.Y36(EE,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.uIk("id",t.id),i.ekj("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i._Bn([{provide:SE,useValue:void 0},{provide:DE,useExisting:n}])]}),n})();const HE=new i.OlP("CdkDragHandle"),RR=new i.OlP("CdkDragPlaceholder"),OR=new i.OlP("CdkDragPreview");let BR=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.element=e,this.dropContainer=t,this._ngZone=l,this._viewContainerRef=d,this._dir=o,this._changeDetectorRef=u,this._selfHandle=h,this._parentDrag=f,this._destroyed=new He.xQ,this.started=new i.vpe,this.released=new i.vpe,this.ended=new i.vpe,this.entered=new i.vpe,this.exited=new i.vpe,this.dropped=new i.vpe,this.moved=new Ri.y(b=>{const V=this._dragRef.moved.pipe((0,ht.U)(ee=>({source:this,pointerPosition:ee.pointerPosition,event:ee.event,delta:ee.delta,distance:ee.distance}))).subscribe(b);return()=>{V.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:s&&null!=s.dragStartThreshold?s.dragStartThreshold:5,pointerDirectionChangeThreshold:s&&null!=s.pointerDirectionChangeThreshold?s.pointerDirectionChangeThreshold:5,zIndex:null==s?void 0:s.zIndex}),this._dragRef.data=this,n._dragInstances.push(this),s&&this._assignDefaults(s),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=je(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Zt.q)(1),tt(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(e){const t=e.rootElementSelector,r=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const e=n._dragInstances.indexOf(this);e>-1&&n._dragInstances.splice(e,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var e;const t=this.element.nativeElement;let r=t;this.rootElementSelector&&(r=void 0!==t.closest?t.closest(this.rootElementSelector):null===(e=t.parentElement)||void 0===e?void 0:e.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||t)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):qi(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,r=this.dragStartDelay,l=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,d=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof r&&r?r:li(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(l).withPreviewTemplate(d).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe((0,Zt.q)(1)).subscribe(()=>{var t;if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let r=this.element.nativeElement.parentElement;for(;r;){if(r.classList.contains("cdk-drag")){e.withParent((null===(t=n._dragInstances.find(l=>l.element.nativeElement===r))||void 0===t?void 0:t._dragRef)||null);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:r,constrainPosition:l,previewClass:d,boundaryElement:s,draggingDisabled:o,rootElementSelector:c,previewContainer:u}=e;this.disabled=null!=o&&o,this.dragStartDelay=r||0,t&&(this.lockAxis=t),l&&(this.constrainPosition=l),d&&(this.previewClass=d),s&&(this.boundaryElement=s),c&&(this.rootElementSelector=c),u&&(this.previewContainer=u)}_setupHandlesListener(){this._handles.changes.pipe(_i(this._handles),(0,I.b)(e=>{const t=e.filter(r=>r._parentDrag===this).map(r=>r.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),(0,ji.w)(e=>(0,Ei.T)(...e.map(t=>t._stateChanges.pipe(_i(t))))),tt(this._destroyed)).subscribe(e=>{const t=this._dragRef,r=e.element.nativeElement;e.disabled?t.disableHandle(r):t.enableHandle(r)})}}return n._dragInstances=[],n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(DE,12),i.Y36(w.K0),i.Y36(i.R0b),i.Y36(i.s_b),i.Y36(EE,8),i.Y36(vn,8),i.Y36(vv),i.Y36(i.sBO),i.Y36(HE,10),i.Y36(xE,12))},n.\u0275dir=i.lG2({type:n,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,OR,5),i.Suo(r,RR,5),i.Suo(r,HE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t._previewTemplate=l.first),i.iGM(l=i.CRH())&&(t._placeholderTemplate=l.first),i.iGM(l=i.CRH())&&(t._handles=l)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.ekj("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i._Bn([{provide:xE,useExisting:n}]),i.TTD]}),n})(),NR=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[vv],imports:[Sa]}),n})();const VR=["*"],LE=new i.OlP("MatChipRemove"),kE=new i.OlP("MatChipAvatar"),PE=new i.OlP("MatChipTrailingIcon");class zR{constructor(a){this._elementRef=a}}const FR=Vl(Vo(na(zR),"primary"),-1);let RA=(()=>{class n extends FR{constructor(e,t,r,l,d,s,o,c){super(e),this._ngZone=t,this._changeDetectorRef=d,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new He.xQ,this._onBlur=new He.xQ,this.selectionChange=new i.vpe,this.destroyed=new i.vpe,this.removed=new i.vpe,this._addHostClassName(),this._chipRippleTarget=s.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new G_(this,t,this._chipRippleTarget,r),this._chipRipple.setupTriggerEvents(e),this.rippleConfig=l||{},this._animationsDisabled="NoopAnimations"===o,this.tabIndex=null!=c&&parseInt(c)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(e){const t=je(e);t!==this._selected&&(this._selected=t,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(e){this._value=e}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(e){this._selectable=je(e)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(e){this._disabled=je(e)}get removable(){return this._removable}set removable(e){this._removable=je(e)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const e="mat-basic-chip",t=this._elementRef.nativeElement;t.hasAttribute(e)||t.tagName.toLowerCase()===e?t.classList.add(e):t.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(e=!1){return this._selected=!this.selected,this._dispatchSelectionChange(e),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(e){this.disabled&&e.preventDefault()}_handleKeydown(e){if(!this.disabled)switch(e.keyCode){case 46:case 8:this.remove(),e.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),e.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,Zt.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(e=!1){this.selectionChange.emit({source:this,isUserInput:e,selected:this._selected})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Si),i.Y36(du,8),i.Y36(i.sBO),i.Y36(w.K0),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275dir=i.lG2({type:n,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,kE,5),i.Suo(r,PE,5),i.Suo(r,LE,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.avatar=l.first),i.iGM(l=i.CRH())&&(t.trailingIcon=l.first),i.iGM(l=i.CRH())&&(t.removeIcon=l.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(e,t){1&e&&i.NdJ("click",function(l){return t._handleClick(l)})("keydown",function(l){return t._handleKeydown(l)})("focus",function(){return t.focus()})("blur",function(){return t._blur()}),2&e&&(i.uIk("tabindex",t.disabled?null:t.tabIndex)("disabled",t.disabled||null)("aria-disabled",t.disabled.toString())("aria-selected",t.ariaSelected),i.ekj("mat-chip-selected",t.selected)("mat-chip-with-avatar",t.avatar)("mat-chip-with-trailing-icon",t.trailingIcon||t.removeIcon)("mat-chip-disabled",t.disabled)("_mat-animation-noopable",t._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[i.qOj]}),n})();const RE=new i.OlP("mat-chips-default-options");let WR=0,OE=(()=>{class n{constructor(e,t){this._elementRef=e,this._defaultOptions=t,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new i.vpe,this.placeholder="",this.id="mat-chip-list-input-"+WR++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(e){e&&(this._chipList=e,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(e){this._addOnBlur=je(e)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(e){this._disabled=je(e)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(e){if(e){if(9===e.keyCode&&!Tn(e,"shiftKey")&&this._chipList._allowFocusEscape(),8===e.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void e.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(e)}_keyup(e){!this._focusLastChipOnBackspace&&8===e.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,e.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(e){!this.inputElement.value&&!!e&&this._chipList._keydown(e),(!e||this._isSeparatorKey(e))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==e||e.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(e){this.inputElement.focus(e)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(e){return!Tn(e)&&new Set(this.separatorKeyCodes).has(e.keyCode)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(RE))},n.\u0275dir=i.lG2({type:n,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(e,t){1&e&&i.NdJ("keydown",function(l){return t._keydown(l)})("keyup",function(l){return t._keyup(l)})("blur",function(){return t._blur()})("focus",function(){return t._focus()})("input",function(){return t._onInput()}),2&e&&(i.Ikx("id",t.id),i.uIk("disabled",t.disabled||null)("placeholder",t.placeholder||null)("aria-invalid",t._chipList&&t._chipList.ngControl?t._chipList.ngControl.invalid:null)("aria-required",t._chipList&&t._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[i.TTD]}),n})();const UR=up(class{constructor(n,a,e,t){this._defaultErrorStateMatcher=n,this._parentForm=a,this._parentFormGroup=e,this.ngControl=t}});let GR=0;class ZR{constructor(a,e){this.source=a,this.value=e}}let IE=(()=>{class n extends UR{constructor(e,t,r,l,d,s,o){super(s,l,d,o),this._elementRef=e,this._changeDetectorRef=t,this._dir=r,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new He.xQ,this._uid="mat-chip-list-"+GR++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(c,u)=>c===u,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new i.vpe,this.valueChange=new i.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var e,t;return this.multiple?(null===(e=this._selectionModel)||void 0===e?void 0:e.selected)||[]:null===(t=this._selectionModel)||void 0===t?void 0:t.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(e){this._multiple=je(e),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this.writeValue(e),this._value=e}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var e,t,r,l;return null!==(l=null!==(e=this._required)&&void 0!==e?e:null===(r=null===(t=this.ngControl)||void 0===t?void 0:t.control)||void 0===r?void 0:r.hasValidator(_n.required))&&void 0!==l&&l}set required(e){this._required=je(e),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(e){this._disabled=je(e),this._syncChipsState()}get selectable(){return this._selectable}set selectable(e){this._selectable=je(e),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(e){this._userTabIndex=e,this._tabIndex=e}get chipSelectionChanges(){return(0,Ei.T)(...this.chips.map(e=>e.selectionChange))}get chipFocusChanges(){return(0,Ei.T)(...this.chips.map(e=>e._onFocus))}get chipBlurChanges(){return(0,Ei.T)(...this.chips.map(e=>e._onBlur))}get chipRemoveChanges(){return(0,Ei.T)(...this.chips.map(e=>e.destroyed))}ngAfterContentInit(){this._keyManager=new Yc(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(tt(this._destroyed)).subscribe(e=>this._keyManager.withHorizontalOrientation(e)),this._keyManager.tabOut.pipe(tt(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(_i(null),tt(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new nn(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(e){this._chipInput=e,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",e.id)}setDescribedByIds(e){this._ariaDescribedby=e.join(" ")}writeValue(e){this.chips&&this._setSelectionByValue(e,!1)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this.stateChanges.next()}onContainerClick(e){this._originatesFromChip(e)||this.focus()}focus(e){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(e),this.stateChanges.next()))}_focusInput(e){this._chipInput&&this._chipInput.focus(e)}_keydown(e){const t=e.target;t&&t.classList.contains("mat-chip")&&(this._keyManager.onKeydown(e),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const e=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(e)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(e){return e>=0&&er.deselect()),Array.isArray(e))e.forEach(r=>this._selectValue(r,t)),this._sortValues();else{const r=this._selectValue(e,t);r&&t&&this._keyManager.setActiveItem(r)}}_selectValue(e,t=!0){const r=this.chips.find(l=>null!=l.value&&this._compareWith(l.value,e));return r&&(t?r.selectViaInteraction():r.select(),this._selectionModel.select(r)),r}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(e){this._selectionModel.clear(),this.chips.forEach(t=>{t!==e&&t.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(e=>{e.selected&&this._selectionModel.select(e)}),this.stateChanges.next())}_propagateChanges(e){let t=null;t=Array.isArray(this.selected)?this.selected.map(r=>r.value):this.selected?this.selected.value:e,this._value=t,this.change.emit(new ZR(this,t)),this.valueChange.emit(t),this._onChange(t),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(e=>{e.source.selected?this._selectionModel.select(e.source):this._selectionModel.deselect(e.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),e.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(e=>{let t=this.chips.toArray().indexOf(e.chip);this._isValidIndex(t)&&this._keyManager.updateActiveItem(t),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(e=>{const t=e.chip,r=this.chips.toArray().indexOf(e.chip);this._isValidIndex(r)&&t._hasFocus&&(this._lastDestroyedChipIndex=r)})}_originatesFromChip(e){let t=e.target;for(;t&&t!==this._elementRef.nativeElement;){if(t.classList.contains("mat-chip"))return!0;t=t.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(e=>e._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(e=>{e._chipListDisabled=this._disabled,e._chipListMultiple=this.multiple})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(vn,8),i.Y36(dd,8),i.Y36(Zs,8),i.Y36(Kc),i.Y36(Br,10))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-chip-list"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,RA,5),2&e){let l;i.iGM(l=i.CRH())&&(t.chips=l)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("focus",function(){return t.focus()})("blur",function(){return t._blur()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.Ikx("id",t._uid),i.uIk("tabindex",t.disabled?null:t._tabIndex)("aria-describedby",t._ariaDescribedby||null)("aria-required",t.role?t.required:null)("aria-disabled",t.disabled.toString())("aria-invalid",t.errorState)("aria-multiselectable",t.multiple)("role",t.role)("aria-orientation",t.ariaOrientation),i.ekj("mat-chip-list-disabled",t.disabled)("mat-chip-list-invalid",t.errorState)("mat-chip-list-required",t.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[i._Bn([{provide:td,useExisting:n}]),i.qOj],ngContentSelectors:VR,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),n})(),$R=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Kc,{provide:RE,useValue:{separatorKeyCodes:[13]}}],imports:[[ct]]}),n})();function QR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",9),i.NdJ("mousedown",function(){return i.CHM(e),i.oxw(2).dragDisabled=!1}),i._uU(1,"drag_indicator"),i.qZA()}}function JR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",10),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().edit(r)}),i._uU(1,"edit"),i.qZA()}}function XR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-icon",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().remove(r)}),i._uU(1,"cancel"),i.qZA()}}function KR(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-chip",4),i.NdJ("removed",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.remove(l),d._sendEventToParent()}),i.YNc(1,QR,2,0,"mat-icon",5),i.TgZ(2,"div",6),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.readonly&&void 0!==d.attribute.displayName&&d.showValue(l,d.attribute.displayName)}),i._uU(3),i.qZA(),i.YNc(4,JR,2,0,"mat-icon",7),i.YNc(5,XR,2,0,"mat-icon",8),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("selectable",t.selectable)("cdkDragData",e)("removable",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.displayName),i.xp6(1),i.hij(" ",e," "),i.xp6(1),i.Q6J("ngIf",t.removable),i.xp6(1),i.Q6J("ngIf",t.removable)}}function eO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"more_horiz"),i.qZA())}function tO(n,a){1&n&&(i.TgZ(0,"mat-icon"),i._uU(1,"keyboard_arrow_up"),i.qZA())}function iO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",12),i.TgZ(1,"span",13),i.TgZ(2,"button",14),i.NdJ("click",function(){return i.CHM(e),i.oxw().onShowChange()}),i.YNc(3,eO,2,0,"mat-icon",15),i.YNc(4,tO,2,0,"mat-icon",15),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("matTooltip",e.showMore?"Show less":"Show more")("matTooltipPosition","above"),i.xp6(2),i.Q6J("ngIf",!e.showMore),i.xp6(1),i.Q6J("ngIf",e.showMore)}}function nO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",12),i.TgZ(1,"input",16),i.NdJ("matChipInputTokenEnd",function(r){return i.CHM(e),i.oxw().add(r)})("change",function(){return i.CHM(e),i.oxw()._sendEventToParent()}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(),t=i.MAs(2);i.xp6(1),i.Q6J("matChipInputFor",t)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}}let rO=(()=>{class n{constructor(e,t){this.dialog=e,this.changeDetector=t,this.readonly=!1,this.sendEventToParent=new i.vpe,this.selectable=!1,this.removable=!0,this.addOnBlur=!0,this.dragDisabled=!0,this.separatorKeysCodes=[13,188],this.values=[],this.showMore=!1,this.defaultItemsShown=5}ngOnInit(){this.removable=!zu(this.attribute)&&!this.readonly,null==this.attribute.value&&(this.attribute.value=[]),this.values=this.attribute.value,this.itemsShown=this.readonly?this.values.length:this.defaultItemsShown,this.showMore=this.readonly,this.readonly||(this.readonly=zu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}add(e){const t=e.input,r=e.value;(r||"").trim()&&(this.attribute.value.push(r.trim()),this.values=this.attribute.value,this.values.length>this.defaultItemsShown&&(this.showMore=!0,this.setItemsShown())),t&&(t.value=""),this.sendEventToParent.emit()}remove(e){const t=Pi();t.width="400px",t.data={name:e},this.dialog.open(KH,t).afterClosed().subscribe(l=>{if(l){const d=this.attribute.value.indexOf(e);this.attribute.value.splice(d,1),this.values=this.attribute.value,this.sendEventToParent.emit(),this.changeDetector.detectChanges()}})}drop(e){this.dragDisabled=!0,ME(this.attribute.value,e.previousIndex,e.currentIndex),this.values=this.attribute.value}edit(e){const t=this.attribute.value.indexOf(e),r=Pi();r.width="600px",r.data={attribute:this.attribute,index:t},this.dialog.open(XH,r).afterClosed().subscribe(d=>{d&&(this.values=this.attribute.value,this.sendEventToParent.emit())})}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(vA,r)}setItemsShown(){this.itemsShown=this.showMore?this.values.length:this.defaultItemsShown}onShowChange(){this.showMore=!this.showMore,this.setItemsShown()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi),i.Y36(i.sBO))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-list"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:6,vars:4,consts:[["cdkDropList","","cdkDropListOrientation","vertical",1,"mat-chip-list-stacked",3,"cdkDropListDisabled","cdkDropListDropped"],["chipList",""],["class","chip-word-break","cdkDrag","",3,"selectable","cdkDragData","removable","removed",4,"ngFor","ngForOf"],["class","w-100",4,"ngIf"],["cdkDrag","",1,"chip-word-break",3,"selectable","cdkDragData","removable","removed"],["class","handle-icon",3,"mousedown",4,"ngIf"],[1,"chip-text","overflow-ellipsis",3,"click"],["class","edit-delete-icon ml-2",3,"click",4,"ngIf"],["class","edit-delete-icon",3,"click",4,"ngIf"],[1,"handle-icon",3,"mousedown"],[1,"edit-delete-icon","ml-2",3,"click"],[1,"edit-delete-icon",3,"click"],[1,"w-100"],[3,"matTooltip","matTooltipPosition"],["mat-icon-button","",1,"ml-auto",3,"click"],[4,"ngIf"],["matInput","","placeholder","New value",1,"w-100","m-0",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd","change"]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.TgZ(1,"mat-chip-list",0,1),i.NdJ("cdkDropListDropped",function(l){return t.drop(l),t._sendEventToParent()}),i.YNc(3,KR,6,9,"mat-chip",2),i.YNc(4,iO,5,4,"div",3),i.YNc(5,nO,2,3,"mat-form-field",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Q6J("cdkDropListDisabled",t.dragDisabled),i.xp6(2),i.Q6J("ngForOf",t.values.slice(0,t.itemsShown)),i.xp6(1),i.Q6J("ngIf",t.values.length>t.defaultItemsShown),i.xp6(1),i.Q6J("ngIf",!t.readonly))},directives:[IE,PR,w.sg,RA,BR,w.O5,An,Tr,kt,mn,Ln,OE],styles:[".chip-word-break[_ngcontent-%COMP%]{word-break:break-all}.chip-text[_ngcontent-%COMP%]{display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden}.mat-chip-list[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{width:auto;min-width:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.chip-word-break[_ngcontent-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.example-box[_ngcontent-%COMP%]:last-child{border:none}.edit-delete-icon[_ngcontent-%COMP%]{font-size:18px;justify-content:center;align-items:center;display:flex}.handle-icon[_ngcontent-%COMP%]{font-size:22px;justify-content:center;align-items:center;display:flex;margin-right:4px}.mat-standard-chip[_ngcontent-%COMP%]{padding:7px 5px}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),aO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.value=this.attribute.value,this.readonly||(this.readonly=zu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e,t){const r=Pi();r.width="350px",r.data={value:e,title:t},this.dialog.open(vA,r)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-string"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:3,vars:8,consts:[[1,"w-100",3,"appearance"],["matInput","","type","text",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.value&&t.showValue(t.value,t.attribute.displayName)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.ALo(2,"multiWordDataCy"),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.value),i.Q2q("data-cy","",i.lcZ(2,6,t.attribute.displayName),"-value"),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Ln,rn,bn,ur],pipes:[bv],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.overflow-ellipsis[_ngcontent-%COMP%]{text-overflow:ellipsis}"]}),n})(),sO=(()=>{class n{constructor(e){this.dialog=e,this.readonly=!1,this.sendEventToParent=new i.vpe}ngOnInit(){this.readonly||(this.readonly=zu(this.attribute))}_sendEventToParent(){this.sendEventToParent.emit()}showValue(e){const t=Pi();t.width="350px",t.data={value:e.value,title:e.displayName},this.dialog.open(vA,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value-integer"]],inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent:"sendEventToParent"},decls:2,vars:5,consts:[[1,"w-100",3,"appearance"],["matInput","","type","number",1,"overflow-ellipsis",3,"readonly","ngModel","click","ngModelChange","keydown"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.TgZ(1,"input",1),i.NdJ("click",function(){return t.readonly&&void 0!==t.attribute.value&&t.showValue(t.attribute)})("ngModelChange",function(l){return t.attribute.value=l})("keydown",function(){return t._sendEventToParent()}),i.qZA(),i.qZA()),2&e&&(i.s9C("appearance",t.readonly?"none":"standard"),i.xp6(1),i.ekj("cursor-pointer",t.readonly&&void 0!==t.attribute.value),i.Q6J("readonly",t.readonly)("ngModel",t.attribute.value))},directives:[mn,Ln,Up,rn,bn,ur],styles:[".cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})();const oO=["map"];function lO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-boolean",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function cO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-list",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function dO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value-map",4,5),2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function uO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-string",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}function hO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-attribute-value-integer",3),i.NdJ("sendEventToParent",function(){return i.CHM(e),i.oxw()._sendEventToParent2()}),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("attribute",e.attribute)("readonly",e.readonly)}}let Tv=(()=>{class n{constructor(){this.readonly=!1,this.sendEventToParent2=new i.vpe}updateMapAttribute(){"java.util.LinkedHashMap"===this.attribute.type&&this.mapComponent.updateAttribute()}_sendEventToParent2(){this.sendEventToParent2.emit()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attribute-value"]],viewQuery:function(e,t){if(1&e&&i.Gf(oO,5),2&e){let r;i.iGM(r=i.CRH())&&(t.mapComponent=r.first)}},inputs:{attribute:"attribute",readonly:"readonly"},outputs:{sendEventToParent2:"sendEventToParent2"},decls:7,vars:5,consts:[[3,"attribute","readonly","sendEventToParent",4,"ngIf"],[3,"click"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly","sendEventToParent"],[3,"attribute","readonly"],["map",""]],template:function(e,t){1&e&&(i.TgZ(0,"div"),i.YNc(1,lO,1,2,"perun-web-apps-attribute-value-boolean",0),i.YNc(2,cO,1,2,"perun-web-apps-attribute-value-list",0),i.TgZ(3,"div",1),i.NdJ("click",function(){return t._sendEventToParent2()}),i.YNc(4,dO,2,2,"perun-web-apps-attribute-value-map",2),i.qZA(),i.YNc(5,uO,1,2,"perun-web-apps-attribute-value-string",0),i.YNc(6,hO,1,2,"perun-web-apps-attribute-value-integer",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","java.lang.Boolean"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.util.ArrayList"===t.attribute.type),i.xp6(2),i.Q6J("ngIf","java.util.LinkedHashMap"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.String"===t.attribute.type||"java.lang.LargeString"===t.attribute.type),i.xp6(1),i.Q6J("ngIf","java.lang.Integer"===t.attribute.type))},directives:[w.O5,MR,rO,lR,aO,sO],styles:[""]}),n})();function pO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function fO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeLanguage(l)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"uppercase"),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",i.lcZ(2,2,i.lcZ(3,4,"SHARED_LIB.LANGUAGES."+e))," ")}}function mO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",14),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentLang=r}),i.YNc(2,fO,4,6,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentLang),i.xp6(1),i.Q6J("ngForOf",e.languages)}}function gO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"a",17),i._uU(2),i.qZA(),i.TgZ(3,"button",18),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeEmail()}),i.TgZ(4,"mat-icon"),i._uU(5," edit "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.MGl("href","mailto:",e.email,"",i.LSH),i.xp6(1),i.Oqu(e.email)}}function _O(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",16),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeTimeZone(l)}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e," ")}}function bO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",13),i.TgZ(1,"mat-select",19),i.NdJ("valueChange",function(r){return i.CHM(e),i.oxw(3).currentTimezone=r}),i.YNc(2,_O,2,2,"mat-option",15),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("value",e.currentTimezone),i.xp6(1),i.Q6J("ngForOf",e.timeZones)}}function AO(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1,"-"),i.qZA())}function yO(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attribute-value",22),2&n){const e=i.oxw(2).$implicit;i.Q6J("attribute",e.attribute)("readonly",!0)}}function MO(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,AO,2,0,"p",20),i.YNc(2,yO,1,2,"perun-web-apps-attribute-value",21),i.qZA()),2&n){const e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",!e.attribute.value),i.xp6(1),i.Q6J("ngIf",e.attribute.value)}}function wO(n,a){if(1&n&&(i.TgZ(0,"tr"),i.TgZ(1,"td",7),i.TgZ(2,"div",8),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"td",9),i.YNc(5,mO,3,2,"mat-form-field",10),i.YNc(6,gO,6,2,"div",11),i.YNc(7,bO,3,2,"mat-form-field",10),i.YNc(8,MO,3,2,"div",12),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw(2);i.xp6(2),i.Q6J("matTooltip",e["tooltip_"+t.currentLang]),i.xp6(1),i.hij(" ",e["displayName_"+t.currentLang]," "),i.xp6(1),i.Q6J("ngSwitch",e.attribute.friendlyName),i.xp6(1),i.Q6J("ngSwitchCase","preferredLanguage"),i.xp6(1),i.Q6J("ngSwitchCase","preferredMail"),i.xp6(1),i.Q6J("ngSwitchCase","timezone")}}function CO(n,a){if(1&n&&(i.TgZ(0,"table",4),i.TgZ(1,"tbody"),i.TgZ(2,"tr"),i.TgZ(3,"td",5),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"td"),i._uU(8),i.qZA(),i.qZA(),i.YNc(9,wO,9,6,"tr",6),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(4),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,"PROFILE_PAGE.NAME"))),i.xp6(4),i.Oqu(e.fullName),i.xp6(1),i.Q6J("ngForOf",e.additionalAttributes)}}let vO=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this.translateService=e,this.dialog=t,this.authzResolverService=r,this.attributesManagerService=l,this.usersManagerService=d,this.route=s,this.router=o,this.notificator=c,this.storeService=u,this.apiRequestConfiguration=h,this.preferredLangService=f,this.currentLang="en",this.languages=this.storeService.get("supported_languages"),this.timeZones=tR.tz.names().filter(b=>!b.startsWith("Etc/")),this.additionalAttributes=[],this.email="",this.fullName="",this.organization="",this.currentTimezone="",e.get("PROFILE_PAGE.MAIL_CHANGE_SUCCESS").subscribe(b=>this.successMessage=b)}ngOnInit(){const e=this.route.snapshot.queryParamMap,t=e.get("token"),r=e.get("u");this.loading=!0,t&&r?(this.apiRequestConfiguration.dontHandleErrorForNext(),this.usersManagerService.validatePreferredEmailChangeWithToken(t,Number.parseInt(r,10)).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.router.navigate([],{replaceUrl:!0}),this.getData()},()=>{const l=Pi();l.width="600px",this.dialog.open(uL,l).afterClosed().subscribe(()=>{this.getData()})})):this.getData()}getData(){this.authzResolverService.getPerunPrincipal().subscribe(e=>{this.userId=e.userId,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(t=>{var r,l,d,s,o;this.fullName=(new hA).transform(t);const c=t.userAttributes.find(ee=>"preferredMail"===ee.friendlyName);this.email=null!==(r=null==c?void 0:c.value)&&void 0!==r?r:"-",this.languageAttribute=t.userAttributes.find(ee=>"preferredLanguage"===ee.friendlyName);const u=null!==(d=null===(l=this.languageAttribute)||void 0===l?void 0:l.value)&&void 0!==d?d:null,h=this.preferredLangService.getPreferredLanguage(u);this.translateService.use(h),this.currentLang=h,this.timezoneAttribute=t.userAttributes.find(ee=>"timezone"===ee.friendlyName),this.currentTimezone=null!==(o=null===(s=this.timezoneAttribute)||void 0===s?void 0:s.value)&&void 0!==o?o:"-";const f=this.storeService.get("profile_page_attributes");let b=0;const V=this.storeService.get("supported_languages");f.forEach(ee=>{const he=t.userAttributes.find(Oe=>Oe.friendlyName===ee.friendly_name);he?(b++,this.addAttribute(he,ee,V)):this.attributesManagerService.getAttributeDefinitionByName(`urn:perun:user:attribute-def:${ee.is_virtual?"virt":"def"}:${ee.friendly_name}`).subscribe(Oe=>{this.addAttribute(Oe,ee,V),b++,this.loading=b!==f.length}),this.loading=b!==f.length})})})}changeLanguage(e){this.currentLang=e,this.translateService.use(this.currentLang),this.languageAttribute?this.setLanguage():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:preferredLanguage").subscribe(t=>{this.languageAttribute=t,this.setLanguage()})}setLanguage(){this.languageAttribute.value=this.currentLang,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.languageAttribute}).subscribe(()=>{this.router.navigate([],{queryParams:{lang:null},queryParamsHandling:"merge"})})}changeTimeZone(e){this.currentTimezone=e,this.timezoneAttribute?this.setTimeZone():this.attributesManagerService.getAttributeDefinitionByName("urn:perun:user:attribute-def:def:timezone").subscribe(t=>{this.timezoneAttribute=t,this.setTimeZone()})}setTimeZone(){this.timezoneAttribute.value=this.currentTimezone,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.timezoneAttribute}).subscribe(()=>{})}changeEmail(){const e=Pi();e.width="350px",e.data={userId:this.userId},this.dialog.open(iL,e).afterClosed().subscribe(r=>{r&&this.getEmail()})}getEmail(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredMail").subscribe(e=>{var t;this.email=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"-"})}addAttribute(e,t,r){var l,d;const s={attribute:e};for(const o of r)s[`displayName_${o}`]=(null===(l=null==t?void 0:t[`display_name_${o}`])||void 0===l?void 0:l.length)?t[`display_name_${o}`]:e.displayName,s[`tooltip_${o}`]=null!==(d=t[`tooltip_${o}`])&&void 0!==d?d:"";this.additionalAttributes.push(s)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(oi),i.Y36(Yi),i.Y36(Gi),i.Y36(ri),i.Y36(Ti),i.Y36(nr),i.Y36(rt),i.Y36(hr),i.Y36(zt),i.Y36(y1),i.Y36(jC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-profile-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","mt-3 word-break-all",4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"mt-3","word-break-all"],[1,"font-weight-bold"],[4,"ngFor","ngForOf"],[1,"font-weight-bold","att-name-width"],["matTooltipPosition","above",3,"matTooltip"],[1,"w-100",3,"ngSwitch"],["class","center-self",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"center-self"],[1,"mb-auto",3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],[3,"value","click"],[1,"center-self",3,"href"],["mat-icon-button","",1,"ml-2",3,"click"],[3,"value","valueChange"],[4,"ngIf"],[3,"attribute","readonly",4,"ngIf"],[3,"attribute","readonly"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,pO,1,0,"mat-spinner",1),i.YNc(2,CO,10,7,"table",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,En,w.sg,Tr,w.RF,w.n9,mn,Iu,ka,kt,An,w.ED,Tv],pipes:[lt,ni,w.gd],styles:[".center-self[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.word-break-all[_ngcontent-%COMP%]{word-break:break-all}td[_ngcontent-%COMP%]{padding-right:1rem!important}.att-name-width[_ngcontent-%COMP%]{min-width:200px}"]}),n})();const TO=["mat-sort-header",""];function xO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",3),i.NdJ("@arrowPosition.start",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return i.CHM(e),i.oxw()._disableViewStateAnimation=!1}),i._UZ(1,"div",4),i.TgZ(2,"div",5),i._UZ(3,"div",6),i._UZ(4,"div",7),i._UZ(5,"div",8),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.Q6J("@arrowOpacity",e._getArrowViewState())("@arrowPosition",e._getArrowViewState())("@allowChildren",e._getArrowDirectionState()),i.xp6(2),i.Q6J("@indicator",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@leftPointer",e._getArrowDirectionState()),i.xp6(1),i.Q6J("@rightPointer",e._getArrowDirectionState())}}const SO=["*"],bd=nw.ENTERING+" "+iw.STANDARD_CURVE,mf={indicator:Ai("indicator",[Lt("active-asc, asc",Le({transform:"translateY(0px)"})),Lt("active-desc, desc",Le({transform:"translateY(10px)"})),Ct("active-asc <=> active-desc",yt(bd))]),leftPointer:Ai("leftPointer",[Lt("active-asc, asc",Le({transform:"rotate(-45deg)"})),Lt("active-desc, desc",Le({transform:"rotate(45deg)"})),Ct("active-asc <=> active-desc",yt(bd))]),rightPointer:Ai("rightPointer",[Lt("active-asc, asc",Le({transform:"rotate(45deg)"})),Lt("active-desc, desc",Le({transform:"rotate(-45deg)"})),Ct("active-asc <=> active-desc",yt(bd))]),arrowOpacity:Ai("arrowOpacity",[Lt("desc-to-active, asc-to-active, active",Le({opacity:1})),Lt("desc-to-hint, asc-to-hint, hint",Le({opacity:.54})),Lt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Le({opacity:0})),Ct("* => asc, * => desc, * => active, * => hint, * => void",yt("0ms")),Ct("* <=> *",yt(bd))]),arrowPosition:Ai("arrowPosition",[Ct("* => desc-to-hint, * => desc-to-active",yt(bd,Ll([Le({transform:"translateY(-25%)"}),Le({transform:"translateY(0)"})]))),Ct("* => hint-to-desc, * => active-to-desc",yt(bd,Ll([Le({transform:"translateY(0)"}),Le({transform:"translateY(25%)"})]))),Ct("* => asc-to-hint, * => asc-to-active",yt(bd,Ll([Le({transform:"translateY(25%)"}),Le({transform:"translateY(0)"})]))),Ct("* => hint-to-asc, * => active-to-asc",yt(bd,Ll([Le({transform:"translateY(0)"}),Le({transform:"translateY(-25%)"})]))),Lt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Le({transform:"translateY(0)"})),Lt("hint-to-desc, active-to-desc, desc",Le({transform:"translateY(-25%)"})),Lt("hint-to-asc, active-to-asc, asc",Le({transform:"translateY(25%)"}))]),allowChildren:Ai("allowChildren",[Ct("* <=> *",[Mr("@*",Kg(),{optional:!0})])])};let OA=(()=>{class n{constructor(){this.changes=new He.xQ}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const DO={provide:OA,deps:[[new i.FiY,new i.tp0,OA]],useFactory:function EO(n){return n||new OA}},HO=new i.OlP("MAT_SORT_DEFAULT_OPTIONS"),LO=om(ts(class{}));let fs=(()=>{class n extends LO{constructor(e){super(),this._defaultOptions=e,this.sortables=new Map,this._stateChanges=new He.xQ,this.start="asc",this._direction="",this.sortChange=new i.vpe}get direction(){return this._direction}set direction(e){this._direction=e}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){var t,r,l;if(!e)return"";const d=null!==(r=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==r?r:!!(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableClear);let s=function kO(n,a){let e=["asc","desc"];return"desc"==n&&e.reverse(),a||e.push(""),e}(e.start||this.start,d),o=s.indexOf(this.direction)+1;return o>=s.length&&(o=0),s[o]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(HO,8))},n.\u0275dir=i.lG2({type:n,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.qOj,i.TTD]}),n})();const PO=ts(class{});let H1=(()=>{class n extends PO{constructor(e,t,r,l,d,s,o){super(),this._intl=e,this._changeDetectorRef=t,this._sort=r,this._columnDef=l,this._focusMonitor=d,this._elementRef=s,this._ariaDescriber=o,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}get disableClear(){return this._disableClear}set disableClear(e){this._disableClear=je(e)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{const t=!!e;t!==this._showIndicatorHint&&(this._setIndicatorHintVisible(t),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(e){!this._isDisabled()&&(32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const e=this._viewState.fromState;return(e?`${e}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){var t,r;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(r=this._ariaDescriber)||void 0===r||r.describe(this._sortButton,e)),this._sortActionDescription=e}_handleStateChanges(){this._rerenderSubscription=(0,Ei.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(OA),i.Y36(i.sBO),i.Y36(fs,8),i.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),i.Y36(Rr),i.Y36(i.SBq),i.Y36(zh,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._handleClick()})("keydown",function(l){return t._handleKeydown(l)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(i.uIk("aria-sort",t._getAriaSortAttribute()),i.ekj("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[i.qOj],attrs:TO,ngContentSelectors:SO,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(i.F$t(),i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,xO,6,6,"div",2),i.qZA()),2&e&&(i.ekj("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),i.uIk("tabindex",t._isDisabled()?null:0),i.xp6(3),i.Q6J("ngIf",t._renderArrow()))},directives:[w.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[mf.indicator,mf.leftPointer,mf.rightPointer,mf.arrowOpacity,mf.arrowPosition,mf.allowChildren]},changeDetection:0}),n})(),IA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[DO],imports:[[w.ez,ct]]}),n})(),RO=(()=>{class n{constructor(e){this.elementRef=e}ngOnInit(){this.elementRef.nativeElement.focus()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq))},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsAutoFocus",""]]}),n})(),BE=(()=>{class n{onClick(e){if(1===e.button&&null!=this.perunWebAppsMiddleClickRouterLink){const t=this.perunWebAppsMiddleClickRouterLink.join("/"),r=location.search;window.open(t+r)}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["","perunWebAppsMiddleClickRouterLink",""]],hostBindings:function(e,t){1&e&&i.NdJ("mouseup",function(l){return t.onClick(l)})},inputs:{perunWebAppsMiddleClickRouterLink:"perunWebAppsMiddleClickRouterLink"}}),n})(),OO=(()=>{class n{transform(e){var t;const r=e.find(l=>"mail"===l.friendlyName);return null!==(t=null==r?void 0:r.value)&&void 0!==t?t:"N/A"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getMailFromAttributes",type:n,pure:!0}),n})();function IO(n,a){1&n&&i._UZ(0,"th",18)}function BO(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"span",20),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.TgZ(4,"mat-checkbox",21),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,6,i.lcZ(3,8,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.CANNOT_BE_DELETED_TOOLTIP"))),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!e.userExtSource.persistent),i.xp6(3),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",e.userExtSource.persistent)}}function NO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.ID"))," "))}function VO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.id," ")}}function zO(n,a){1&n&&(i.TgZ(0,"th",24),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.MAIL"))," "))}function FO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.ALo(2,"getMailFromAttributes"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.attributes)," ")}}function jO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.extSourceNameHeader?e.extSourceNameHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.EXT_SOURCE_NAME"))," ")}}function qO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.extSource.name," ")}}function YO(n,a){if(1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,e.loginHeader?e.loginHeader:"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LOGIN"))," ")}}function WO(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.userExtSource.login," ")}}function UO(n,a){1&n&&(i.TgZ(0,"th",22),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.LAST_ACCESS"))," "))}function GO(n,a){if(1&n&&(i.TgZ(0,"td",25),i._uU(1),i.ALo(2,"date"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.xi3(2,1,e.userExtSource.lastAccess,"d.M.y H:mm:ss")," ")}}function ZO(n,a){1&n&&i._UZ(0,"tr",26)}const NE=function(n,a){return["/admin","users",n,"identities",a]};function $O(n,a){if(1&n&&i._UZ(0,"tr",27),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disableRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",t.disableRouting?null:i.WLB(6,NE,t.userId,e.userExtSource.id))("routerLink",t.disableRouting?null:i.WLB(9,NE,t.userId,e.userExtSource.id))}}function QO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function JO(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",28),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.USER_EXT_SOURCES_LIST.NO_IDENTITIES")),"\n"))}let XO=(()=>{class n{constructor(e,t){this.route=e,this.authResolver=t,this.selection=new nn,this.filterValue="",this.displayedColumns=["select","id","mail","extSourceName","login","lastAccess"],this.pageSizeOptions=nf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"id":return e.userExtSource.id.toString();case"mail":{const r=e.attributes.find(l=>"mail"===l.friendlyName);return r?r.value:"N/A"}case"extSourceName":return e.userExtSource.extSource.name;case"login":return e.userExtSource.login;case"lastAccess":return e.userExtSource.lastAccess.split(".")[0];default:return e[t]}}ngOnInit(){this.disableRouting||this.route.parent.params.subscribe(e=>{this.userId=Number(e.userId)}),this.setDataSource()}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Wo(this.userExtSources),this.setDataSource()}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>A1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>b1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e.userExtSource)?"deselect":"select"} row ${e.userExtSource.id+1}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(nr),i.Y36(Ms))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-user-ext-sources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{userExtSources:"userExtSources",selection:"selection",filterValue:"filterValue",displayedColumns:"displayedColumns",tableId:"tableId",extSourceNameHeader:"extSourceNameHeader",loginHeader:"loginHeader",disableRouting:"disableRouting"},features:[i.TTD],decls:25,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","lastAccess","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["class","truncate","mat-cell","",4,"matCellDef"],["matColumnDef","mail"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","extSourceName"],["matColumnDef","login"],["matColumnDef","lastAccess",1,"pl-3"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"truncate"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,IO,1,0,"th",4),i.YNc(5,BO,5,10,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,NO,4,5,"th",7),i.YNc(8,VO,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,zO,4,5,"th",10),i.YNc(11,FO,3,3,"td",8),i.BQk(),i.ynx(12,11),i.YNc(13,jO,4,5,"th",7),i.YNc(14,qO,2,1,"td",8),i.BQk(),i.ynx(15,12),i.YNc(16,YO,4,5,"th",7),i.YNc(17,WO,2,1,"td",8),i.BQk(),i.ynx(18,13),i.YNc(19,UO,4,5,"th",7),i.YNc(20,GO,3,4,"td",14),i.BQk(),i.YNc(21,ZO,1,0,"tr",15),i.YNc(22,$O,1,12,"tr",16),i.qZA(),i.qZA(),i.qZA(),i.YNc(23,QO,3,3,"perun-web-apps-alert",17),i.YNc(24,JO,4,5,"perun-web-apps-alert",17)),2&e&&(i.Q6J("hidden",0===t.userExtSources.length||0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(19),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.userExtSources.length),i.xp6(1),i.Q6J("ngIf",0===t.userExtSources.length))},directives:[ls,$s,fs,us,ds,hs,cs,ps,Tr,ic,H1,Qs,Xs,Js,Ks,BE,O,w.O5,Nn],pipes:[lt,ni,OO,w.uU],styles:[".static-column-size[_ngcontent-%COMP%]{width:80px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:10rem}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.disable-outline[_ngcontent-%COMP%]{outline:none!important}"]}),n})();function KO(n,a){1&n&&i._UZ(0,"mat-spinner",3)}function eI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw(2);return r.removeIdentity(r.certSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",11),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(2),i.Oqu(i.lcZ(3,10,i.lcZ(4,12,"IDENTITIES.CERT"))),i.xp6(4),i.hij(" ",i.lcZ(7,14,i.lcZ(8,16,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.certSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,18,i.lcZ(12,20,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.certExtSources)("selection",e.certSelection)("extSourceNameHeader",e.extSourceNameCert)("loginHeader",e.loginCert)("displayedColumns",e.displayedColumnsCert)("disableRouting",!0)}}function tI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"button",5),i.NdJ("click",function(){return i.CHM(e),i.oxw().addIdentity()}),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"button",6),i.NdJ("click",function(){i.CHM(e);const r=i.oxw();return r.removeIdentity(r.idpSelection)}),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i._UZ(13,"perun-web-apps-user-ext-sources-list",7),i.YNc(14,eI,14,22,"div",2),i.TgZ(15,"h1",8),i._uU(16),i.ALo(17,"translate"),i.ALo(18,"customTranslate"),i.TgZ(19,"mat-icon",9),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i._uU(22," info_outline "),i.qZA(),i.qZA(),i._UZ(23,"perun-web-apps-user-ext-sources-list",10),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,17,i.lcZ(4,19,"IDENTITIES.IDP"))),i.xp6(4),i.hij(" ",i.lcZ(7,21,i.lcZ(8,23,"IDENTITIES.ADD"))," "),i.xp6(3),i.Q6J("disabled",0===e.idpSelection.selected.length),i.xp6(1),i.hij(" ",i.lcZ(11,25,i.lcZ(12,27,"IDENTITIES.REMOVE"))," "),i.xp6(3),i.Q6J("userExtSources",e.idpExtSources)("selection",e.idpSelection)("displayedColumns",e.displayedColumnsIdp)("loginHeader",e.loginIdp)("disableRouting",!0),i.xp6(1),i.Q6J("ngIf",e.displayCertificates),i.xp6(2),i.hij(" ",i.lcZ(17,29,i.lcZ(18,31,"IDENTITIES.OTHER"))," "),i.xp6(3),i.Q6J("matTooltip",i.lcZ(20,33,i.lcZ(21,35,"IDENTITIES.OTHER_TOOLTIP"))),i.xp6(4),i.Q6J("userExtSources",e.otherExtSources)("selection",e.otherSelection)("extSourceNameHeader",e.extSourceNameOther)("displayedColumns",e.displayedColumnsOther)("disableRouting",!0)}}let iI=(()=>{class n{constructor(e,t,r,l,d){this.usersManagerService=e,this.storage=t,this.registrarManagerService=r,this.dialog=l,this.attributesManagerService=d,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.idpSelection=new nn(!0,[]),this.certSelection=new nn(!0,[]),this.otherSelection=new nn(!0,[]),this.loginIdp="IDENTITIES.LOGIN_IDP",this.extSourceNameCert="IDENTITIES.EXT_SOURCE_NAME_CERT",this.loginCert="IDENTITIES.LOGIN_CERT",this.extSourceNameOther="IDENTITIES.EXT_SOURCE_NAME_OTHER",this.displayedColumnsIdp=["select","extSourceName","login","lastAccess"],this.displayedColumnsCert=["select","extSourceName","login","lastAccess"],this.displayedColumnsOther=["extSourceName","login","lastAccess"]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.displayCertificates=this.storage.get("display_identity_certificates"),this.refreshTables()}refreshTables(){this.loading=!0,this.idpExtSources=[],this.certExtSources=[],this.otherExtSources=[],this.usersManagerService.getRichUserExtSources(this.userId).subscribe(e=>{let t=e.length;e.forEach(r=>{this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:sourceIdPName").subscribe(l=>{(null==l?void 0:l.value)?(r.userExtSource.extSource.name=l.value,t--,this.loading=0!==t,this.addToList(r)):this.attributesManagerService.getUserExtSourceAttributeByName(r.userExtSource.id,"urn:perun:ues:attribute-def:def:IdPOrganizationName").subscribe(d=>{t--,(null==d?void 0:d.value)&&(r.userExtSource.extSource.name=d.value),this.loading=0!==t,this.addToList(r)})})})})}addIdentity(){this.registrarManagerService.getConsolidatorToken().subscribe(e=>{const t=this.storage.getPerunPrincipal().extSourceType,r=this.storage.get("consolidator_base_url");window.location.href=`${r}${(null==t?void 0:t.endsWith("X509"))?"cert":"fed"}-ic/ic/?target_url=${window.location.href}&token=${e}`})}removeIdentity(e){const t=Pi();t.width="600px",t.data={theme:"user-theme",userId:this.userId,extSources:e.selected},this.dialog.open(ZH,t).afterClosed().subscribe(l=>{l&&(e.clear(),this.refreshTables())})}addToList(e){e.userExtSource.extSource.type.endsWith("Idp")?this.idpExtSources.push(e):e.userExtSource.extSource.type.endsWith("X509")?this.certExtSources.push(e):this.otherExtSources.push(e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(zt),i.Y36(ai),i.Y36(Yi),i.Y36(ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-identities-page"]],decls:3,vars:2,consts:[[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["color","warn","mat-flat-button","",1,"ml-2",3,"disabled","click"],[3,"userExtSources","selection","displayedColumns","loginHeader","disableRouting"],[1,"page-title","mt-5"],["matTooltipPosition","above",1,"center-icon",3,"matTooltip"],[3,"userExtSources","selection","extSourceNameHeader","displayedColumns","disableRouting"],[3,"userExtSources","selection","extSourceNameHeader","loginHeader","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,KO,1,0,"mat-spinner",1),i.YNc(2,tI,24,37,"div",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,En,kt,XO,An,Tr],pipes:[lt,ni],styles:[".center-icon[_ngcontent-%COMP%]{vertical-align:middle;transform:scale(.8)}"]}),n})();const nI=["panel"];function rI(n,a){if(1&n&&(i.TgZ(0,"div",0,1),i.Hsn(2),i.qZA()),2&n){const e=a.id,t=i.oxw();i.Q6J("id",t.id)("ngClass",t._classList),i.uIk("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby(e))}}const aI=["*"];let sI=0;class oI{constructor(a,e){this.source=a,this.option=e}}const lI=na(class{}),VE=new i.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function cI(){return{autoActiveFirstOption:!1}}});let dI=(()=>{class n extends lI{constructor(e,t,r,l){super(),this._changeDetectorRef=e,this._elementRef=t,this._activeOptionChanges=re.w.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new i.vpe,this.opened=new i.vpe,this.closed=new i.vpe,this.optionActivated=new i.vpe,this._classList={},this.id="mat-autocomplete-"+sI++,this.inertGroups=(null==l?void 0:l.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(e){this._autoActiveFirstOption=je(e)}set classList(e){this._classList=e&&e.length?function zv(n,a=/\s+/){const e=[];if(null!=n){const t=Array.isArray(n)?n:`${n}`.split(a);for(const r of t){const l=`${r}`.trim();l&&e.push(l)}}return e}(e).reduce((t,r)=>(t[r]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new jg(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){const t=new oI(this,e);this.optionSelected.emit(t)}_getPanelAriaLabelledby(e){return this.ariaLabel?null:this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}_setVisibilityClasses(e){e[this._visibleClass]=this.showPanel,e[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(VE),i.Y36(Si))},n.\u0275dir=i.lG2({type:n,viewQuery:function(e,t){if(1&e&&(i.Gf(i.Rgc,7),i.Gf(nI,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.template=r.first),i.iGM(r=i.CRH())&&(t.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[i.qOj]}),n})(),uI=(()=>{class n extends dI{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(e,t,r){if(1&e&&(i.Suo(r,mp,5),i.Suo(r,ka,5)),2&e){let l;i.iGM(l=i.CRH())&&(t.optionGroups=l),i.iGM(l=i.CRH())&&(t.options=l)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[i._Bn([{provide:pm,useExisting:n}]),i.qOj],ngContentSelectors:aI,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(e,t){1&e&&(i.F$t(),i.YNc(0,rI,3,4,"ng-template"))},directives:[w.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const zE=new i.OlP("mat-autocomplete-scroll-strategy"),pI={provide:zE,deps:[Zr],useFactory:function hI(n){return()=>n.scrollStrategies.reposition()}},fI={provide:Zn,useExisting:(0,i.Gpc)(()=>FE),multi:!0};let mI=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u,h,f){this._element=e,this._overlay=t,this._viewContainerRef=r,this._zone=l,this._changeDetectorRef=d,this._dir=o,this._formField=c,this._document=u,this._viewportRuler=h,this._defaults=f,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=re.w.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new He.xQ,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=ma(()=>{const b=this.autocomplete?this.autocomplete.options:null;return b?b.changes.pipe(_i(b),(0,ji.w)(()=>(0,Ei.T)(...b.map(V=>V.onSelectionChange)))):this._zone.onStable.pipe((0,Zt.q)(1),(0,ji.w)(()=>this.optionSelections))}),this._scrollStrategy=s}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(e){this._autocompleteDisabled=je(e)}ngAfterViewInit(){const e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(()=>e.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const e=this._getWindow();void 0!==e&&e.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ei.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,jt.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,jt.h)(()=>this._overlayAttached)):(0,$e.of)()).pipe((0,ht.U)(e=>e instanceof Z_?e:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ei.T)(Ta(this._document,"click"),Ta(this._document,"auxclick"),Ta(this._document,"touchend")).pipe((0,jt.h)(e=>{const t=Un(e),r=this._formField?this._formField._elementRef.nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&t!==this._element.nativeElement&&(!r||!r.contains(t))&&(!l||!l.contains(t))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(t)}))}writeValue(e){Promise.resolve().then(()=>this._setTriggerValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){const t=e.keyCode;if(27===t&&!Tn(e)&&e.preventDefault(),this.activeOption&&13===t&&this.panelOpen&&!Tn(e))this.activeOption._selectViaInteraction(),this._resetActiveItem(),e.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,l=38===t||40===t;this.panelOpen||9===t?this.autocomplete._keyManager.onKeydown(e):l&&this._canOpen()&&this.openPanel(),(l||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(e){let t=e.target,r=t.value;"number"===t.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===e.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(e=!1){this._formField&&"auto"===this._formField.floatLabel&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const e=this._zone.onStable.pipe((0,Zt.q)(1)),t=this.autocomplete.options.changes.pipe((0,I.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,te.g)(0));return(0,Ei.T)(e,t).pipe((0,ji.w)(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),(0,Zt.q)(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(e){const t=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(e):e,r=null!=t?t:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(e){const t=e&&e.source;t&&(this._clearPreviousSelectedOption(t),this._setTriggerValue(t.value),this._onChange(t.value),this.autocomplete._emitSelectEvent(t),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(e){this.autocomplete.options.forEach(t=>{t!==e&&t.selected&&t.deselect()})}_attachOverlay(){var e;let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new xl(this.autocomplete.template,this._viewContainerRef,{id:null===(e=this._formField)||void 0===e?void 0:e.getLabelId()}),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(l=>{(27===l.keyCode&&!Tn(l)||38===l.keyCode&&Tn(l,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),l.stopPropagation(),l.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var e;return new Ph({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(e=this._defaults)||void 0===e?void 0:e.overlayPanelClass})}_getOverlayPosition(){const e=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){const t=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,l=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let d;d="above"===this.position?l:"below"===this.position?t:[...t,...l],e.withPositions(d)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const e=this.autocomplete;e.autoActiveFirstOption?e._keyManager.setFirstItemActive():e._keyManager.setActiveItem(-1)}_canOpen(){const e=this._element.nativeElement;return!e.readOnly&&!e.disabled&&!this._autocompleteDisabled}_getWindow(){var e;return(null===(e=this._document)||void 0===e?void 0:e.defaultView)||window}_scrollToOption(e){const t=this.autocomplete,r=fm(e,t.options,t.optionGroups);if(0===e&&1===r)t._setScrollTop(0);else if(t.panel){const l=t.options.toArray()[e];if(l){const d=l._getHostElement(),s=$_(d.offsetTop,d.offsetHeight,t._getScrollTop(),t.panel.nativeElement.offsetHeight);t._setScrollTop(s)}}}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Zr),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(i.sBO),i.Y36(zE),i.Y36(vn,8),i.Y36(as,9),i.Y36(w.K0,8),i.Y36(Qa),i.Y36(VE,8))},n.\u0275dir=i.lG2({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[i.TTD]}),n})(),FE=(()=>{class n extends mI{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(e,t){1&e&&i.NdJ("focusin",function(){return t._handleFocus()})("blur",function(){return t._onTouched()})("input",function(l){return t._handleInput(l)})("keydown",function(l){return t._handleKeydown(l)}),2&e&&i.uIk("autocomplete",t.autocompleteAttribute)("role",t.autocompleteDisabled?null:"combobox")("aria-autocomplete",t.autocompleteDisabled?null:"list")("aria-activedescendant",t.panelOpen&&t.activeOption?t.activeOption.id:null)("aria-expanded",t.autocompleteDisabled?null:t.panelOpen.toString())("aria-owns",t.autocompleteDisabled||!t.panelOpen||null==t.autocomplete?null:t.autocomplete.id)("aria-haspopup",!t.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[i._Bn([fI]),i.qOj]}),n})(),gI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[pI],imports:[[Fc,uu,ct,w.ez],Sa,uu,ct]}),n})(),_I=(()=>{class n{transform(e){var t;return null!==(t=null==e?void 0:e.value)&&void 0!==t?t:"never"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"validateExpiration",type:n,pure:!0}),n})();function bI(n,a){1&n&&i._UZ(0,"th",17)}function AI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",18),i.TgZ(1,"mat-checkbox",19),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.ALo(2,"validateExpiration"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled","never"===i.lcZ(2,3,e.expirationAttribute))}}function yI(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NAME"))," "))}function MI(n,a){if(1&n&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.name)}}function wI(n,a){1&n&&(i.TgZ(0,"th",20),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.DESCRIPTION"))," "))}function CI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.entity.description)}}function vI(n,a){1&n&&(i.TgZ(0,"th",23),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.EXPIRATION"))," "))}function TI(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.ALo(2,"validateExpiration"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.expirationAttribute)," ")}}function xI(n,a){1&n&&i._UZ(0,"th",20)}function SI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",22),i.TgZ(1,"button",24),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().extend(l)}),i.ALo(2,"validateExpiration"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(1),i.Q6J("disabled","never"===i.lcZ(2,2,e.expirationAttribute)),i.xp6(2),i.hij(" ",i.lcZ(4,4,i.lcZ(5,6,"MEMBERSHIP_LIST.EXTEND"))," ")}}function EI(n,a){1&n&&i._UZ(0,"tr",25)}function DI(n,a){1&n&&i._UZ(0,"tr",26)}function HI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",27),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"MEMBERSHIP_LIST.NO_MEMBERSHIPS"))))}let jE=(()=>{class n{constructor(){this.members=[],this.searchString="",this.selection=new nn(!1,[]),this.displayedColumns=["checkbox","name","description","expirationAttribute","extend"],this.filterValue="",this.extendMembership=new i.vpe,this.pageSizeOptions=nf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){var r,l;switch(t){case"name":return e.entity.name;case"description":return"description"in e.entity?e.entity.description:"";case"expirationAttribute":return null!==(l=null===(r=null==e?void 0:e.expirationAttribute)||void 0===r?void 0:r.value)&&void 0!==l?l:"never";default:return""}}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}ngOnChanges(){this.dataSource=new Wo(this.members),this.setDataSource()}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>A1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>b1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}checkboxLabel(e){return`${this.selection.isSelected(e)?"deselect":"select"} row ${e.entity.id+1}`}extend(e){this.extendMembership.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-membership-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{members:"members",searchString:"searchString",selection:"selection",displayedColumns:"displayedColumns",tableId:"tableId",filterValue:"filterValue"},outputs:{extendMembership:"extendMembership"},features:[i.TTD],decls:21,vars:8,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","expirationAttribute","matSortDirection","desc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","checkbox"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","static-column-size","mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["matColumnDef","expirationAttribute"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","extend"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["mat-header-cell","","mat-sort-header",""],["color","accent","mat-flat-button","",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,bI,1,0,"th",4),i.YNc(5,AI,3,5,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,yI,4,5,"th",7),i.YNc(8,MI,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,wI,4,5,"th",7),i.YNc(11,CI,2,1,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,vI,4,5,"th",12),i.YNc(14,TI,3,3,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,xI,1,0,"th",7),i.YNc(17,SI,6,8,"td",10),i.BQk(),i.YNc(18,EI,1,0,"tr",14),i.YNc(19,DI,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,HI,4,5,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",!t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",!t.dataSource.filteredData.length))},directives:[ls,$s,fs,us,ds,hs,cs,ps,ic,H1,kt,Qs,Xs,Js,Ks,w.O5,Nn],pipes:[_I,lt,ni],styles:[""]}),n})();function LI(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.hij(" ",e.name," ")}}function kI(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-form-field",7),i.TgZ(1,"mat-label"),i._uU(2),i.ALo(3,"translate"),i.qZA(),i._UZ(4,"input",8),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.TgZ(7,"mat-autocomplete",9,10),i.NdJ("optionSelected",function(r){return i.CHM(e),i.oxw().filterByVo(r)}),i.TgZ(9,"mat-option",11),i._uU(10),i.ALo(11,"translate"),i.ALo(12,"customTranslate"),i.qZA(),i.YNc(13,LI,2,2,"mat-option",12),i.ALo(14,"async"),i.qZA(),i.qZA()}if(2&n){const e=i.MAs(8),t=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,7,"GROUPS.SELECT_VO")),i.xp6(2),i.s9C("placeholder",i.lcZ(5,9,i.lcZ(6,11,"GROUPS.SELECT_VO"))),i.Q6J("formControl",t.myControl)("matAutocomplete",e),i.xp6(3),i.Q6J("displayWith",t.displayFn),i.xp6(3),i.Oqu(i.lcZ(11,13,i.lcZ(12,15,"GROUPS.ALL"))),i.xp6(3),i.Q6J("ngForOf",i.lcZ(14,17,t.filteredVos))}}function PI(n,a){1&n&&i._UZ(0,"mat-spinner",14)}function RI(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",15),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"GROUPS.NO_GROUPS"))))}const OI=function(){return["name","description","expirationAttribute","extend"]};function II(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-membership-list",17),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw().extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,4,i.lcZ(4,6,"GROUPS.MEMBER_GROUPS"))),i.xp6(3),i.Q6J("members",e.userMemberships)("selection",e.selection)("displayedColumns",i.DdM(8,OI))}}const BI=function(){return["name","description"]};function NI(n,a){if(1&n&&(i.TgZ(0,"div",18),i.TgZ(1,"h4",16),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i._UZ(5,"perun-web-apps-membership-list",19),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"GROUPS.ADMINS_GROUPS"))),i.xp6(3),i.Q6J("members",e.adminMemberships)("displayedColumns",i.DdM(7,BI))}}let VI=(()=>{class n{constructor(e,t,r,l,d,s){this.usersService=e,this.memberService=t,this.groupService=r,this.store=l,this.vosManagerService=d,this.attributesManagerService=s,this.loading=!1,this.vos=[],this.myControl=new vr,this.selection=new nn(!1,[]),this.displayedColumns=["id","name"],this.userMemberships=[],this.adminMemberships=[]}ngOnInit(){this.loading=!0,this.userId=this.store.getPerunPrincipal().userId,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=this.myControl.valueChanges.pipe(_i(""),(0,ht.U)(t=>this._filter(t))),this.getAllGroups()})}getAllGroups(){this.loading=!0;let e=0,t=0;this.userMemberships=[],this.adminMemberships=[];const r=this.store.getPerunPrincipal().roles.SELF.Member;r.length?t=r.length:this.loading=!1,r.forEach(l=>{t--,this.groupService.getMemberGroups(l).subscribe(d=>{e+=d.length,this.loading=0===e&&0!==t,d.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(l,s.id).subscribe(o=>{e--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==e})})})}),this.usersService.getGroupsWhereUserIsAdmin(this.userId).subscribe(l=>{l.forEach(d=>{this.adminMemberships.push({entity:d,expirationAttribute:null})})})}displayFn(e){return e?e.name:null}filterByVo(e){if("all"===e.option.value)this.getAllGroups();else{this.userMemberships=[],this.adminMemberships=[],this.loading=!0;const t=e.option.value;this.memberService.getMemberByUser(t.id,this.userId).subscribe(r=>{this.groupService.getMemberGroups(r.id).subscribe(l=>{let d=l.length;this.loading=0!==d,l.forEach(s=>{this.attributesManagerService.getMemberGroupAttributes(r.id,s.id).subscribe(o=>{d--,this.userMemberships.push({entity:s,expirationAttribute:o.find(c=>"groupMembershipExpiration"===c.friendlyName)}),this.loading=0!==d})})})}),this.usersService.getGroupsInVoWhereUserIsAdmin(this.userId,t.id).subscribe(r=>{r.forEach(l=>{this.adminMemberships.push({entity:l,expirationAttribute:null})})})}}extendMembership(e){const t=this.store.get("registrar_base_url"),r=e.entity,l=this.vos.find(d=>d.id===r.voId).shortName;window.location.href=`${t}?vo=${l}&group=${e.entity.shortName}`}_filter(e){const t="string"==typeof e?e.toLowerCase():e.name.toLowerCase();return this.vos.filter(r=>r.name.toLowerCase().includes(t))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(wt),i.Y36(Hi),i.Y36(zt),i.Y36(bs),i.Y36(ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-groups-page"]],decls:10,vars:10,consts:[[1,"page-title","pt-2"],[1,"user-theme"],["class","mr-2 w-75",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["class","mt-5",4,"ngIf"],[1,"mr-2","w-75"],["type","text","aria-label","Assignee","matInput","",3,"placeholder","formControl","matAutocomplete"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],["value","all"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mr-auto","ml-auto"],["alert_type","warn"],[1,"page-subtitle"],[3,"members","selection","displayedColumns","extendMembership"],[1,"mt-5"],[3,"members","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,kI,15,19,"mat-form-field",2),i.YNc(6,PI,1,0,"mat-spinner",3),i.YNc(7,RI,4,5,"perun-web-apps-alert",4),i.YNc(8,II,6,9,"div",5),i.YNc(9,NI,6,8,"div",6),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"GROUPS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.userMemberships.length&&!t.adminMemberships.length&&!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.userMemberships.length),i.xp6(1),i.Q6J("ngIf",!t.loading&&0!==t.adminMemberships.length))},directives:[w.O5,mn,rs,Ln,rn,FE,bn,os,uI,ka,w.sg,En,Nn,jE],pipes:[lt,ni,w.Ov],styles:[""]}),n})();function zI(n,a){if(1&n&&(i._UZ(0,"input",3),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}function FI(n,a){if(1&n&&(i._UZ(0,"input",4),i.ALo(1,"translate")),2&n){const e=i.oxw();i.s9C("placeholder",i.lcZ(1,2,e.placeholder)),i.Q6J("formControl",e.formControl)}}let gf=(()=>{class n{constructor(){this.filter=new i.vpe,this.autoFocus=!1,this.formControl=new vr}ngOnInit(){this.formControl.valueChanges.subscribe(e=>{let t=e.trim();t=t.toLowerCase(),this.filter.emit(t)})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-immediate-filter"]],inputs:{placeholder:"placeholder",autoFocus:"autoFocus"},outputs:{filter:"filter"},decls:3,vars:2,consts:[[1,"filter-field","mr-2"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder",4,"ngIf"],["matInput","",3,"formControl","placeholder",4,"ngIf"],["matInput","","perunWebAppsAutoFocus","","data-cy","auto-focused-filter",3,"formControl","placeholder"],["matInput","",3,"formControl","placeholder"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-form-field",0),i.YNc(1,zI,2,4,"input",1),i.YNc(2,FI,2,4,"input",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf",t.autoFocus),i.xp6(1),i.Q6J("ngIf",!t.autoFocus))},directives:[mn,w.O5,Ln,rn,RO,bn,os],pipes:[lt],styles:[".filter-field[_ngcontent-%COMP%]{max-width:350px!important;width:100%!important;min-width:0!important;min-width:initial!important}"]}),n})(),jI=0;const xv=new i.OlP("CdkAccordion");let qI=(()=>{class n{constructor(){this._stateChanges=new He.xQ,this._openCloseAllActions=new He.xQ,this.id="cdk-accordion-"+jI++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=je(e)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i._Bn([{provide:xv,useExisting:n}]),i.TTD]}),n})(),YI=0,WI=(()=>{class n{constructor(e,t,r){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=r,this._openCloseAllSubscription=re.w.EMPTY,this.closed=new i.vpe,this.opened=new i.vpe,this.destroyed=new i.vpe,this.expandedChange=new i.vpe,this.id="cdk-accordion-child-"+YI++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,d)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===d&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=je(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=je(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(xv,12),i.Y36(i.sBO),i.Y36(Cp))},n.\u0275dir=i.lG2({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i._Bn([{provide:xv,useValue:void 0}])]}),n})(),UI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})();const GI=["body"];function ZI(n,a){}const $I=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],QI=["mat-expansion-panel-header","*","mat-action-row"];function JI(n,a){if(1&n&&i._UZ(0,"span",2),2&n){const e=i.oxw();i.Q6J("@indicatorRotate",e._getExpandedState())}}const XI=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],KI=["mat-panel-title","mat-panel-description","*"],Sv=new i.OlP("MAT_ACCORDION"),qE="225ms cubic-bezier(0.4,0.0,0.2,1)",YE={indicatorRotate:Ai("indicatorRotate",[Lt("collapsed, void",Le({transform:"rotate(0deg)"})),Lt("expanded",Le({transform:"rotate(180deg)"})),Ct("expanded <=> collapsed, void => collapsed",yt(qE))]),bodyExpansion:Ai("bodyExpansion",[Lt("collapsed, void",Le({height:"0px",visibility:"hidden"})),Lt("expanded",Le({height:"*",visibility:"visible"})),Ct("expanded <=> collapsed, void => collapsed",yt(qE))])};let L1=(()=>{class n{constructor(e){this._template=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.Rgc))},n.\u0275dir=i.lG2({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]}),n})(),eB=0;const WE=new i.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let k1=(()=>{class n extends WI{constructor(e,t,r,l,d,s,o){super(e,t,r),this._viewContainerRef=l,this._animationMode=s,this._hideToggle=!1,this.afterExpand=new i.vpe,this.afterCollapse=new i.vpe,this._inputChanges=new He.xQ,this._headerId="mat-expansion-panel-header-"+eB++,this._bodyAnimationDone=new He.xQ,this.accordion=e,this._document=d,this._bodyAnimationDone.pipe(Bh((c,u)=>c.fromState===u.fromState&&c.toState===u.toState)).subscribe(c=>{"void"!==c.fromState&&("expanded"===c.toState?this.afterExpand.emit():"collapsed"===c.toState&&this.afterCollapse.emit())}),o&&(this.hideToggle=o.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=je(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(_i(null),(0,jt.h)(()=>this.expanded&&!this._portal),(0,Zt.q)(1)).subscribe(()=>{this._portal=new xl(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Sv,12),i.Y36(i.sBO),i.Y36(Cp),i.Y36(i.s_b),i.Y36(w.K0),i.Y36(Bn,8),i.Y36(WE,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,L1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._lazyContent=l.first)}},viewQuery:function(e,t){if(1&e&&i.Gf(GI,5),2&e){let r;i.iGM(r=i.CRH())&&(t._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.ekj("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i._Bn([{provide:Sv,useValue:void 0}]),i.qOj,i.TTD],ngContentSelectors:QI,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.F$t($I),i.Hsn(0),i.TgZ(1,"div",0,1),i.NdJ("@bodyExpansion.done",function(l){return t._bodyAnimationDone.next(l)}),i.TgZ(3,"div",2),i.Hsn(4,1),i.YNc(5,ZI,0,0,"ng-template",3),i.qZA(),i.Hsn(6,2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("@bodyExpansion",t._getExpandedState())("id",t.id),i.uIk("aria-labelledby",t._headerId),i.xp6(4),i.Q6J("cdkPortalOutlet",t._portal))},directives:[e0],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[YE.bodyExpansion]},changeDetection:0}),n})();class tB{}const iB=Vl(tB);let P1=(()=>{class n extends iB{constructor(e,t,r,l,d,s,o){super(),this.panel=e,this._element=t,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=s,this._parentChangeSubscription=re.w.EMPTY;const c=e.accordion?e.accordion._stateChanges.pipe((0,jt.h)(u=>!(!u.hideToggle&&!u.togglePosition))):wn.E;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=(0,Ei.T)(e.opened,e.closed,c,e._inputChanges.pipe((0,jt.h)(u=>!!(u.hideToggle||u.disabled||u.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe((0,jt.h)(()=>e._containsFocus())).subscribe(()=>r.focusVia(t,"program")),d&&(this.expandedHeight=d.expandedHeight,this.collapsedHeight=d.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Tn(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(k1,1),i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.Y36(WE,8),i.Y36(Bn,8),i.$8M("tabindex"))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.NdJ("click",function(){return t._toggle()})("keydown",function(l){return t._keydown(l)}),2&e&&(i.uIk("id",t.panel._headerId)("tabindex",t.tabIndex)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Udp("height",t._getHeaderHeight()),i.ekj("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[i.qOj],ngContentSelectors:KI,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.F$t(XI),i.TgZ(0,"span",0),i.Hsn(1),i.Hsn(2,1),i.Hsn(3,2),i.qZA(),i.YNc(4,JI,1,1,"span",1)),2&e&&(i.xp6(4),i.Q6J("ngIf",t._showToggle()))},directives:[w.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true])::before,.cdk-high-contrast-active .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true])::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;border:3px solid;border-radius:4px;content:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[YE.indicatorRotate]},changeDetection:0}),n})(),BA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=i.lG2({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),n})(),NA=(()=>{class n extends qI{constructor(){super(...arguments),this._ownHeaders=new i.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=je(e)}ngAfterContentInit(){this._headers.changes.pipe(_i(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Yc(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["mat-accordion"]],contentQueries:function(e,t,r){if(1&e&&i.Suo(r,P1,5),2&e){let l;i.iGM(l=i.CRH())&&(t._headers=l)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.ekj("mat-accordion-multi",t.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i._Bn([{provide:Sv,useExisting:n}]),i.qOj]}),n})(),Ev=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ct,UI,Lo]]}),n})();function nB(n,a){1&n&&(i.TgZ(0,"mat-icon",1),i.ALo(1,"translate"),i._uU(2," visibility\n"),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RECENTLY_VIEWED_ICON.RECENT"))}let rB=(()=>{class n{constructor(){this.recentIds=[]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-recently-viewed-icon"]],inputs:{recentIds:"recentIds",id:"id"},decls:1,vars:1,consts:[["class","align-bottom disabled-icon",3,"matTooltip",4,"ngIf"],[1,"align-bottom","disabled-icon",3,"matTooltip"]],template:function(e,t){1&e&&i.YNc(0,nB,3,3,"mat-icon",0),2&e&&i.Q6J("ngIf",t.recentIds.indexOf(t.id)>-1)},directives:[w.O5,An,Tr],pipes:[lt],styles:[".disabled-icon[_ngcontent-%COMP%]{color:#00000042}"]}),n})();function aB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",4),i._uU(3,"check_circle_outline"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.ACTIVE"))}function sB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",5),i._uU(3,"block"),i.qZA(),i.qZA()}2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.INACTIVE"))}function oB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"span",3),i.NdJ("click",function(){return i.CHM(e),i.oxw().changeStatus()}),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",6),i._uU(3,"report"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.hYB("matTooltip","",i.lcZ(1,2,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.FAILED"),": ",e.failureCause,"")}}function lB(n,a){1&n&&(i.TgZ(0,"span",7),i.ALo(1,"translate"),i.TgZ(2,"mat-icon",8),i._uU(3,"autorenew"),i.qZA(),i.qZA()),2&n&&i.s9C("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.GROUP_RESOURCE_STATUS.PROCESSING"))}let cB=(()=>{class n{constructor(e){this.dialog=e,this.status="",this.statusChange=new i.vpe}changeStatus(){const e=Pi();e.width="500px",e.data={theme:this.theme,status:this.status,groupId:this.groupId,resourceId:this.resourceId},this.dialog.open(OL,e).afterClosed().subscribe(r=>{r&&this.statusChange.emit()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-group-resource-status"]],inputs:{status:"status",groupId:"groupId",resourceId:"resourceId",theme:"theme",failureCause:"failureCause"},outputs:{statusChange:"statusChange"},decls:5,vars:4,consts:[[1,"flex-container"],["matTooltipPosition","above",3,"matTooltip","click",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip","click"],[1,"green"],[1,"grey"],[1,"red"],["matTooltipPosition","above",3,"matTooltip"],[1,"black"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,aB,4,3,"span",1),i.YNc(2,sB,4,3,"span",1),i.YNc(3,oB,4,4,"span",1),i.YNc(4,lB,4,3,"span",2),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngIf","ACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","INACTIVE"===t.status),i.xp6(1),i.Q6J("ngIf","FAILED"===t.status),i.xp6(1),i.Q6J("ngIf","PROCESSING"===t.status))},directives:[w.O5,Tr,An],pipes:[lt],styles:[""]}),n})(),dB=(()=>{class n{transform(e){if(null==e)return null;let r="";return e.forEach(function(l){r=r.concat(l.tagName)}),r}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"resourceTagsToString",type:n,pure:!0}),n})(),uB=(()=>{class n{transform(e,t){return t?`/organizations/${e.voId}/resources/${e.id}`:`/facilities/${e.facilityId}/resources/${e.id}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"getResourceRoute",type:n,pure:!0}),n})();function hB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",24),i.TgZ(1,"mat-checkbox",25),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("aria-label",e.checkboxLabel())("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function pB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",26),i.TgZ(1,"span",27),i.ALo(2,"translate"),i.TgZ(3,"mat-checkbox",28),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.itemSelectionToggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",i.lcZ(2,7,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE")),i.Q6J("matTooltipPosition","above")("matTooltipDisabled",!t.disableSelect(e)),i.xp6(2),i.Q2q("data-cy","",e.name,"-checkbox"),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))("disabled",t.disableSelect(e))}}function fB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_ID")," "))}function mB(n,a){if(1&n&&(i.TgZ(0,"td",30),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function gB(n,a){1&n&&i._UZ(0,"th",31)}function _B(n,a){if(1&n&&(i.TgZ(0,"td",32),i._UZ(1,"perun-web-apps-recently-viewed-icon",33),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("recentIds",t.recentIds)("id",e.id)}}function bB(n,a){1&n&&i._UZ(0,"th",31)}function AB(n,a){1&n&&(i.TgZ(0,"mat-icon",35),i.ALo(1,"translate"),i._uU(2,"account_tree"),i.qZA()),2&n&&i.Q6J("matTooltip",i.lcZ(1,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.INDIRECT_RESOURCE"))}function yB(n,a){if(1&n&&(i.TgZ(0,"td",32),i.YNc(1,AB,3,3,"mat-icon",34),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("ngIf",e.sourceGroupId)}}function MB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_NAME")," "))}function wB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.name)}}function CB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_NAME")," "))}function vB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.vo.name)}}function TB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_VO_ID")," "))}function xB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.voId)}}function SB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_GROUP_RESOURCE_STATUS")," "))}function EB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",32),i.TgZ(1,"perun-web-apps-group-resource-status",36),i.NdJ("mouseenter",function(){return i.CHM(e),i.oxw().disabledRouting=!0})("mouseleave",function(){i.CHM(e);const r=i.oxw();return r.disabledRouting=r.disableRouting})("statusChange",function(){return i.CHM(e),i.oxw().refreshTable.emit()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("theme","group-theme")("resourceId",e.id)("groupId",t.groupId)("failureCause",e.failureCause)("status",e.status)}}function DB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_NAME")," "))}function HB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facility.name)}}function LB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_FACILITY_ID")," "))}function kB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.facilityId)}}function PB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_TAGS")," "))}function RB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.ALo(2,"resourceTagsToString"),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,e.resourceTags)," ")}}function OB(n,a){1&n&&(i.TgZ(0,"th",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.TABLE_RESOURCE_DESCRIPTION")," "))}function IB(n,a){if(1&n&&(i.TgZ(0,"td",32),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function BB(n,a){1&n&&i._UZ(0,"tr",37)}const NB=function(n){return[n]};function VB(n,a){if(1&n&&(i._UZ(0,"tr",38),i.ALo(1,"getResourceRoute"),i.ALo(2,"getResourceRoute")),2&n){const e=a.$implicit,t=i.oxw();i.ekj("cursor-pointer",!t.disableRouting)("disable-outline",t.disabledRouting),i.Q6J("perunWebAppsMiddleClickRouterLink",i.VKq(12,NB,t.disabledRouting?null:i.xi3(1,6,e,t.routingVo)))("routerLink",t.disabledRouting?null:i.xi3(2,9,e,t.routingVo))}}function zB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function FB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",39),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.RESOURCES_LIST.NO_RESOURCES_WARNING"),"\n"))}let jB=(()=>{class n{constructor(e,t){this.guiAuthResolver=e,this.tableCheckbox=t,this.resources=[],this.selection=new nn(!0,[]),this.disableRouting=!1,this.routingVo=!1,this.displayedColumns=["select","id","recent","indirectResourceAssigment","name","vo","voId","status","facility","facilityId","tags","description"],this.pageSizeOptions=nf,this.groupId=null,this.resourcesToDisableCheckbox=new Set,this.refreshTable=new i.vpe,this.allSelected=new i.vpe,this.removeAuth=!1,this.addAuth=!1,this.getDataForColumnFun=(r,l)=>n.getDataForColumn(r,l,this.recentIds),this.canBeSelected=r=>!this.disableSelect(r)}set matSort(e){this.sort=e}static getDataForColumn(e,t,r){switch(t){case"id":return e.id.toString();case"vo":return e.vo.name;case"name":return e.name;case"facility":return e.facility.name;case"description":return e.description;case"recent":return r&&r.includes(e.id)?"#".repeat(r.indexOf(e.id)):e.name;case"tags":{if(!e.resourceTags)return e[t];let d="";return e.resourceTags.forEach(function(s){d=d.concat(s.tagName)}),d}case"status":return e.status;case"uuid":return e.uuid;default:return e[t]}}ngOnInit(){this.disabledRouting=this.disableRouting}ngOnChanges(){this.guiAuthResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.setDataSource(),this.setAuth()}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,this.getDataForColumnFun),e)}setDataSource(){this.dataSource||(this.dataSource=new Wo,this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filterPredicate=(e,t)=>A1(e,t,this.displayedColumns,this.getDataForColumnFun,!0),this.dataSource.sortData=(e,t)=>b1(e,t,this.getDataForColumnFun)),this.dataSource.filter=this.filterValue,this.dataSource.data=this.resources}isAllSelected(){const e=this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,this.canBeSelected);return this.allSelected.emit(e),e}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,this.canBeSelected),this.setAuth()}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}setAuth(){const e=this.groupToResource?[this.groupToResource]:[];this.removeAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("removeGroupFromResources_Group_List_policy",e.concat([r])),!0),this.addAuth=this.selection.selected.reduce((t,r)=>t&&this.guiAuthResolver.isAuthorized("assignGroupToResources_Group_List_policy",e.concat([r])),!0)}itemSelectionToggle(e){this.selection.toggle(e),this.setAuth()}disableSelect(e){return this.resourcesToDisableCheckbox.has(e.id)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ms),i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-resources-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{resources:"resources",selection:"selection",filterValue:"filterValue",disableRouting:"disableRouting",routingVo:"routingVo",displayedColumns:"displayedColumns",groupToResource:"groupToResource",pageSizeOptions:"pageSizeOptions",recentIds:"recentIds",groupId:"groupId",resourcesToDisableCheckbox:"resourcesToDisableCheckbox",tableId:"tableId"},outputs:{refreshTable:"refreshTable",allSelected:"allSelected"},features:[i.TTD],decls:43,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"dataLength","tableId","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","recent","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","recent"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","indirectResourceAssigment"],["matColumnDef","name"],["matColumnDef","vo"],["matColumnDef","voId"],["matColumnDef","status"],["matColumnDef","facility"],["matColumnDef","facilityId"],["matColumnDef","tags"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",3,"cursor-pointer","disable-outline","perunWebAppsMiddleClickRouterLink","routerLink",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"aria-label","checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],[3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["color","primary",3,"aria-label","checked","disabled","change","click"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-header-cell",""],["mat-cell",""],[3,"recentIds","id"],["matTooltipPosition","above",3,"matTooltip",4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[3,"theme","resourceId","groupId","failureCause","status","mouseenter","mouseleave","statusChange"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"perunWebAppsMiddleClickRouterLink","routerLink"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,hB,2,3,"th",4),i.YNc(5,pB,4,9,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,fB,3,3,"th",7),i.YNc(8,mB,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,gB,1,0,"th",10),i.YNc(11,_B,2,2,"td",11),i.BQk(),i.ynx(12,12),i.YNc(13,bB,1,0,"th",10),i.YNc(14,yB,2,1,"td",11),i.BQk(),i.ynx(15,13),i.YNc(16,MB,3,3,"th",7),i.YNc(17,wB,2,1,"td",11),i.BQk(),i.ynx(18,14),i.YNc(19,CB,3,3,"th",7),i.YNc(20,vB,2,1,"td",11),i.BQk(),i.ynx(21,15),i.YNc(22,TB,3,3,"th",7),i.YNc(23,xB,2,1,"td",11),i.BQk(),i.ynx(24,16),i.YNc(25,SB,3,3,"th",7),i.YNc(26,EB,2,5,"td",11),i.BQk(),i.ynx(27,17),i.YNc(28,DB,3,3,"th",7),i.YNc(29,HB,2,1,"td",11),i.BQk(),i.ynx(30,18),i.YNc(31,LB,3,3,"th",7),i.YNc(32,kB,2,1,"td",11),i.BQk(),i.ynx(33,19),i.YNc(34,PB,3,3,"th",7),i.YNc(35,RB,3,3,"td",11),i.BQk(),i.ynx(36,20),i.YNc(37,OB,3,3,"th",7),i.YNc(38,IB,2,1,"td",11),i.BQk(),i.YNc(39,BB,1,0,"tr",21),i.YNc(40,VB,3,14,"tr",22),i.qZA(),i.qZA(),i.qZA(),i.YNc(41,zB,3,3,"perun-web-apps-alert",23),i.YNc(42,FB,3,3,"perun-web-apps-alert",23)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length||0===t.resources.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length)("tableId",t.tableId)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(37),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.resources.length),i.xp6(1),i.Q6J("ngIf",0===t.resources.length))},directives:[ls,$s,fs,us,ds,hs,ic,cs,ps,Tr,H1,rB,w.O5,An,cB,Qs,Xs,Js,Ks,BE,O,Nn],pipes:[lt,dB,uB],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.filter-input[_ngcontent-%COMP%]{width:300px!important}.disable-outline[_ngcontent-%COMP%]{outline:none!important}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important}"]}),n})();function qB(n,a){1&n&&i._UZ(0,"mat-spinner",8)}const YB=function(){return["name","description"]};function WB(n,a){if(1&n&&i._UZ(0,"perun-web-apps-resources-list",9),2&n){const e=i.oxw(3);i.Q6J("resources",e.resources)("displayedColumns",i.DdM(3,YB))("disableRouting",!0)}}function UB(n,a){if(1&n&&(i.YNc(0,qB,1,0,"mat-spinner",6),i.YNc(1,WB,1,4,"perun-web-apps-resources-list",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",!e.loading)}}function GB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",4),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,UB,2,2,"ng-template",5),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let ZB=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersManagerService=t,this.resourcesManagerService=r,this.storage=l,this.resources=[],this.filteredVos=[]}ngOnInit(){this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMemberData(e){this.loading=!0,this.membersManagerService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{this.resources=r,this.loading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(wt),i.Y36(fi),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-services-page"]],decls:10,vars:11,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],[3,"resources","displayedColumns","disableRouting",4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"resources","displayedColumns","disableRouting"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"mat-accordion"),i.YNc(9,GB,5,1,"mat-expansion-panel",3),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"SERVICES.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,7,i.lcZ(7,9,"SERVICES.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[gf,NA,w.sg,k1,P1,BA,L1,w.O5,En,jB],pipes:[lt,ni],styles:[""]}),n})();function $B(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilter(r)}),i.qZA()}2&n&&i.Q6J("placeholder","ORGANIZATIONS.FILTER")}function QB(n,a){1&n&&i._UZ(0,"mat-spinner",6)}const JB=function(){return["name","expirationAttribute","extend"]};function XB(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"perun-web-apps-membership-list",11),i.NdJ("extendMembership",function(r){return i.CHM(e),i.oxw(2).extendMembership(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(2);i.xp6(1),i.Q6J("members",e.userMemberships)("selection",e.selection)("filterValue",e.filterValue)("displayedColumns",i.DdM(4,JB))}}function KB(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}function e3(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,XB,2,5,"div",9),i.YNc(6,KB,4,5,"perun-web-apps-alert",10),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_MEMBER"))),i.xp6(3),i.Q6J("ngIf",0!==e.userMemberships.length),i.xp6(1),i.Q6J("ngIf",0===e.userMemberships.length)}}function t3(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"ORGANIZATIONS.NO_VOS_ALERT"))))}const n3=function(){return["name"]};function r3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-membership-list",14),2&n){const e=i.oxw(2);i.Q6J("members",e.adminMemberships)("filterValue",e.filterValue)("displayedColumns",i.DdM(3,n3))}}function a3(n,a){if(1&n&&(i.TgZ(0,"div",7),i.TgZ(1,"h1",8),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.YNc(5,t3,4,5,"perun-web-apps-alert",10),i.YNc(6,r3,1,4,"perun-web-apps-membership-list",13),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.Oqu(i.lcZ(3,3,i.lcZ(4,5,"ORGANIZATIONS.IS_ADMIN"))),i.xp6(3),i.Q6J("ngIf",!e.adminMemberships.length),i.xp6(1),i.Q6J("ngIf",e.adminMemberships.length)}}let s3=(()=>{class n{constructor(e,t,r){this.usersService=e,this.store=t,this.membersService=r,this.filterValue="",this.selection=new nn(!1,[]),this.userMemberships=[],this.adminMemberships=[],this.vosCount=0}ngOnInit(){this.principal=this.store.getPerunPrincipal(),this.userId=this.principal.user.id,this.refreshTable()}refreshTable(){this.loading=!0,this.usersService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.usersService.getVosWhereUserIsAdmin(this.userId).subscribe(t=>{this.vosCount=e.length+t.length,this.fillMemberships(e,this.userMemberships),this.fillMemberships(t,this.adminMemberships)})})}applyFilter(e){this.filterValue=e}isEverythingLoaded(){this.vosCount--,this.loading=0!==this.vosCount}extendMembership(e){const t=this.store.get("registrar_base_url");window.location.href=`${t}?vo=${e.entity.shortName}`}fillMemberships(e,t){this.membersService.getMembersByUser(this.userId).subscribe(r=>{e.forEach(l=>{const d=r.find(s=>s.voId===l.id);d?this.membersService.getRichMemberWithAttributes(d.id).subscribe(s=>{const o=s.memberAttributes.find(c=>"membershipExpiration"===c.friendlyName);t.push({entity:l,expirationAttribute:o}),this.isEverythingLoaded()}):(t.push({entity:l,expirationAttribute:null}),this.isEverythingLoaded())})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(zt),i.Y36(wt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-vos-page"]],decls:9,vars:9,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter",4,"ngIf"],["class","mr-auto ml-auto",4,"ngIf"],["class","mt-5",4,"ngIf"],[3,"placeholder","filter"],[1,"mr-auto","ml-auto"],[1,"mt-5"],[1,"page-subtitle"],[4,"ngIf"],["alert_type","warn",4,"ngIf"],[3,"members","selection","filterValue","displayedColumns","extendMembership"],["alert_type","warn"],[3,"members","filterValue","displayedColumns",4,"ngIf"],[3,"members","filterValue","displayedColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,$B,1,1,"perun-web-apps-immediate-filter",2),i.YNc(6,QB,1,0,"mat-spinner",3),i.YNc(7,e3,7,7,"div",4),i.YNc(8,a3,7,7,"div",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"ORGANIZATIONS.TITLE"))),i.xp6(4),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,gf,En,jE,Nn],pipes:[lt,ni],styles:[""]}),n})(),o3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-page"]],decls:2,vars:0,consts:[[1,"user-theme"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i._UZ(1,"router-outlet"),i.qZA())},directives:[hi],styles:[""]}),n})(),l3=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t,this.password=""}ngOnInit(){this.password=this.data.password}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-generated-password-dialog"]],decls:20,vars:22,consts:[["mat-dialog-title","",1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],["disabled","",1,"center-text",3,"value"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"cdkCopyToClipboard"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"p"),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"label"),i._UZ(10,"input",2),i.qZA(),i.qZA(),i.TgZ(11,"div",3),i.TgZ(12,"button",4),i.NdJ("click",function(){return t.onClose()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",5),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.SHOW_PASSWORD.TITLE")),"\n"),i.xp6(5),i.Oqu(i.lcZ(7,10,i.lcZ(8,12,"DIALOGS.SHOW_PASSWORD.LABEL"))),i.xp6(4),i.Q6J("value",t.password),i.xp6(3),i.hij(" ",i.lcZ(14,14,i.lcZ(15,16,"DIALOGS.SHOW_PASSWORD.CLOSE"))," "),i.xp6(3),i.Q6J("cdkCopyToClipboard",t.password),i.xp6(1),i.hij(" ",i.lcZ(18,18,i.lcZ(19,20,"DIALOGS.SHOW_PASSWORD.COPY"))," "))},directives:[Sn,tn,Vi,kt,tv],pipes:[lt,ni],styles:[".center-text[_ngcontent-%COMP%]{text-align:center}"]}),n})();function c3(n,a){1&n&&i._UZ(0,"mat-spinner",7)}function d3(n,a){1&n&&i._UZ(0,"th",16)}function u3(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function h3(n,a){1&n&&i._UZ(0,"tr",18)}function p3(n,a){1&n&&i._UZ(0,"tr",19)}function f3(n,a){if(1&n&&(i.TgZ(0,"div",8),i.TgZ(1,"p"),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",9),i._uU(6),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.qZA(),i.TgZ(9,"table",10),i.ynx(10,11),i.YNc(11,d3,1,0,"th",12),i.YNc(12,u3,2,1,"td",13),i.BQk(),i.YNc(13,h3,1,0,"tr",14),i.YNc(14,p3,1,0,"tr",15),i.qZA(),i.qZA()),2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,5,i.lcZ(4,7,"DIALOGS.REMOVE_ALT_PASSWORD.DESCRIPTION"))," "),i.xp6(4),i.hij(" ",i.lcZ(7,9,i.lcZ(8,11,"DIALOGS.REMOVE_ALT_PASSWORD.ASK"))," "),i.xp6(3),i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}let m3=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.usersManagerService=r,this.displayedColumns=["description"]}ngOnInit(){this.dataSource=new Wo(this.data.description)}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.usersManagerService.deleteAlternativePassword(this.data.userId,"einfra",this.data.passwordId).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(Ti))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-alt-password-dialog"]],decls:16,vars:17,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"user-theme"],[1,"font-weight-bold"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","description"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,c3,1,0,"mat-spinner",2),i.qZA(),i.YNc(6,f3,15,13,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"button",5),i.NdJ("click",function(){return t.onCancel()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"button",6),i.NdJ("click",function(){return t.onSubmit()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"DIALOGS.REMOVE_ALT_PASSWORD.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(10,9,i.lcZ(11,11,"DIALOGS.REMOVE_ALT_PASSWORD.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(14,13,i.lcZ(15,15,"DIALOGS.REMOVE_ALT_PASSWORD.REMOVE"))," "))},directives:[Sn,w.O5,En,tn,$s,us,ds,hs,cs,ps,Qs,Xs,Js,Ks,Vi,kt],pipes:[lt,ni],styles:[""]}),n})();function g3(n,a){1&n&&i._UZ(0,"th",12)}function _3(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",13),i.TgZ(1,"mat-checkbox",14),i.NdJ("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null})("click",function(r){return r.stopPropagation()}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("aria-label",t.checkboxLabel(e))("checked",t.selection.isSelected(e))}}function b3(n,a){if(1&n&&(i.TgZ(0,"th",15),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Oqu(e.headerColumnText)}}function A3(n,a){if(1&n&&(i.TgZ(0,"td",16),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function y3(n,a){1&n&&i._UZ(0,"tr",17)}function M3(n,a){1&n&&i._UZ(0,"tr",18)}function w3(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",19),i._uU(1),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",e.alertText,"\n")}}let UE=(()=>{class n{constructor(){this.values=[],this.selection=new nn(!1,[]),this.alertText="",this.headerColumnText="",this.displayedColumns=["select","value"]}static getExportDataForColumn(e){return e}ngOnChanges(){this.values=this.values?this.values:[],this.dataSource=new Wo(this.values),this.setDataSource()}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,n.getExportDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator)}checkboxLabel(e){return(this.selection.isSelected(e)?"deselect":"select")+" row"}ngAfterViewInit(){this.setDataSource()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-string-list"]],viewQuery:function(e,t){if(1&e&&i.Gf(ls,7),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first)}},inputs:{values:"values",selection:"selection",alertText:"alertText",headerColumnText:"headerColumnText"},features:[i.TTD],decls:12,vars:6,consts:[[1,"card","mt-2",3,"hidden"],[3,"dataLength","exportData"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["class","static-column-size align-checkbox","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","pl-3","mat-header-cell","",4,"matHeaderCellDef"],["class","truncate pl-3","mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"aria-label","checked","change","click"],["mat-header-cell","",1,"pl-3"],["mat-cell","",1,"truncate","pl-3"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,g3,1,0,"th",4),i.YNc(5,_3,2,2,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,b3,2,1,"th",7),i.YNc(8,A3,2,1,"td",8),i.BQk(),i.YNc(9,y3,1,0,"tr",9),i.YNc(10,M3,1,0,"tr",10),i.qZA(),i.qZA(),i.qZA(),i.YNc(11,w3,2,1,"perun-web-apps-alert",11)),2&e&&(i.Q6J("hidden",!t.values.length),i.xp6(1),i.Q6J("dataLength",t.dataSource.filteredData.length),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(7),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.values.length))},directives:[ls,$s,us,ds,hs,cs,ps,ic,Qs,Xs,Js,Ks,w.O5,Nn],styles:[".static-column-size[_ngcontent-%COMP%]{width:20px!important}.truncate[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;max-width:100px}"]}),n})();function C3(n,a){if(1&n&&i._UZ(0,"perun-web-apps-string-list",10),2&n){const e=i.oxw();i.Q6J("values",e.displayedValues)("selection",e.selection)("alertText",e.alertText)("headerColumnText",e.headerColumnText)}}function v3(n,a){1&n&&i._UZ(0,"mat-spinner",11)}let T3=(()=>{class n{constructor(e,t,r,l,d){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.usersManagerService=d,this.altPasswordCtrl=new vr(null,[_n.required]),this.userId=this.store.getPerunPrincipal().userId,this.passwordDescriptions=new Set,this.displayedValues=[],this.selection=new nn(!1,[]),l.get("ALT_PASSWORDS.REMOVE_DIALOG_DESCRIPTION").subscribe(s=>this.removeDialogDescription=s),l.get("ALT_PASSWORDS.REMOVE_DIALOG_TITLE").subscribe(s=>this.removeDialogTitle=s),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(s=>this.alertText=s),l.get("ALT_PASSWORDS.HEADER_COLUMN").subscribe(s=>this.headerColumnText=s)}ngOnInit(){this.getAltPasswords()}createPassword(){const e=this.generatePassword();this.usersManagerService.createAlternativePassword(this.userId,this.altPasswordCtrl.value,"einfra",e).subscribe(()=>{const t=Pi();t.width="600px",t.data={password:e},this.dialog.open(l3,t),this.getAltPasswords(),this.altPasswordCtrl.setValue("")})}generatePassword(){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%&/=?_.,:;\\-";let r="",l=0;const d=t.length;for(;l<16;++l)r+=t.charAt(Math.random()*d);return r.match("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")||this.generatePassword(),r}alreadyContainsValue(e){return this.passwordDescriptions.has(e)}removeAltPasswords(){const e=Pi();e.width="600px",e.data={description:this.selection.selected,passwordId:this.altPasswordsAttributeValue.get(this.selection.selected[0]),userId:this.userId},this.dialog.open(m3,e).afterClosed().subscribe(r=>{r&&(this.getAltPasswords(),this.selection.clear())})}getAltPasswords(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:einfra").subscribe(e=>{if(e.value){this.altPasswordsAttributeValue=new Map(Object.entries(e.value));const t=this.altPasswordsAttributeValue.keys();this.passwordDescriptions=new Set(t),this.displayedValues=Array.from(this.passwordDescriptions.values())}else this.displayedValues=[];this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ri),i.Y36(Yi),i.Y36(oi),i.Y36(Ti))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-alternative-passwords"]],decls:28,vars:35,consts:[[1,"ml-3"],[1,"page-title"],[1,"input-width"],["matInput","","type","text",3,"placeholder","formControl"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],["alert_type","info"],[1,"page-subtitle"],["mat-flat-button","","color","warn",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText",4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[3,"values","selection","alertText","headerColumnText"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"h1",1),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"input",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(10,"button",4),i.NdJ("click",function(){return t.createPassword()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"perun-web-apps-alert",5),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"h1",6),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",7),i.NdJ("click",function(){return t.removeAltPasswords()}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.YNc(26,C3,1,4,"perun-web-apps-string-list",8),i.YNc(27,v3,1,0,"mat-spinner",9),i.qZA()),2&e&&(i.xp6(2),i.Oqu(i.lcZ(3,11,i.lcZ(4,13,"ALT_PASSWORDS.TITLE_GENERATE"))),i.xp6(5),i.s9C("placeholder",i.lcZ(8,15,i.lcZ(9,17,"ALT_PASSWORDS.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.altPasswordCtrl),i.xp6(3),i.Q6J("disabled",!t.altPasswordCtrl.valid||t.alreadyContainsValue(t.altPasswordCtrl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,19,i.lcZ(13,21,"ALT_PASSWORDS.GENERATE"))," "),i.xp6(4),i.Oqu(i.lcZ(16,23,i.lcZ(17,25,"ALT_PASSWORDS.EXAMPLE_DESCRIPTIONS"))),i.xp6(4),i.Oqu(i.lcZ(20,27,i.lcZ(21,29,"ALT_PASSWORDS.TITLE_PASSWORDS"))),i.xp6(3),i.Q6J("disabled",t.selection.isEmpty()),i.xp6(1),i.hij(" ",i.lcZ(24,31,i.lcZ(25,33,"ALT_PASSWORDS.REMOVE"))," "),i.xp6(3),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[mn,Ln,rn,bn,os,kt,Nn,w.O5,UE,En],pipes:[lt,ni],styles:[""]}),n})();function x3(n,a){if(1&n&&(i.TgZ(0,"mat-list-item",1),i.TgZ(1,"mat-icon"),i._uU(2),i.qZA(),i.TgZ(3,"p",2),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n){const e=a.$implicit;i.Q6J("routerLink",e.url),i.xp6(2),i.Oqu(e.icon),i.xp6(2),i.Oqu(i.lcZ(5,3,i.lcZ(6,5,e.label)))}}let S3=(()=>{class n{constructor(e){this.storeService=e,this.items=[]}ngOnInit(){this.initItems();const e=this.storeService.get("displayed_tabs");this.items=this.items.filter(t=>e.includes(t.tabName))}initItems(){this.items=[{icon:"lock_open",url:"/profile/settings/altPasswords",label:"SETTINGS.ALTERNATIVE_PASSWORDS",tabName:"alt_passwords"},{icon:"admin_panel_settings",url:"/profile/settings/auth",label:"SETTINGS.AUTHENTICATION",tabName:"auth"},{icon:"storage",url:"/profile/settings/dataQuotas",label:"SETTINGS.DATA_QUOTAS",tabName:"data_quotas"},{icon:"face",url:"/profile/settings/localAccount",label:"SETTINGS.LOCAL_ACCOUNT",tabName:"local_acc"},{icon:"unsubscribe",url:"/profile/settings/mailingLists",label:"SETTINGS.MAILING_LISTS",tabName:"opt_out"},{icon:"chevron_right",url:"/profile/settings/prefShells",label:"SETTINGS.PREFERRED_SHELLS",tabName:"pref_shells"},{icon:"group",url:"/profile/settings/prefGroupNames",label:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES",tabName:"pref_group_names"},{icon:"lock_open",url:"/profile/settings/sambaPassword",label:"SETTINGS.SAMBA_PASSWORD",tabName:"samba"},{icon:"vpn_key",url:"/profile/settings/sshKeys",label:"SETTINGS.SSH_KEYS",tabName:"ssh_keys"},{icon:"lock",url:"/profile/settings/passwordReset",label:"SETTINGS.PASSWORD_RESET",tabName:"password_reset"}]}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-overview"]],decls:2,vars:1,consts:[["matRipple","","queryParamsHandling","merge",3,"routerLink",4,"ngFor","ngForOf"],["matRipple","","queryParamsHandling","merge",3,"routerLink"],[1,"ml-2","mt-auto","mb-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"mat-list"),i.YNc(1,x3,7,7,"mat-list-item",0),i.qZA()),2&e&&(i.xp6(1),i.Q6J("ngForOf",t.items))},directives:[gv,w.sg,HA,Gn,O,An],pipes:[lt,ni],styles:["mat-list-item[_ngcontent-%COMP%]:hover{background:var(--side-hover)!important;color:var(--side-text-active)!important;cursor:pointer}"]}),n})(),E3=(()=>{class n extends yn{buildStyles(e,{display:t}){const r=yS(e);return Object.assign(Object.assign({},r),{display:"none"===t?t:r.display})}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const D3=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let H3=(()=>{class n extends an{constructor(e,t,r,l,d){super(e,r,t,l),this._config=d,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(e){var t;const l=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(t=ZE.get(l))&&void 0!==t?t:new Map,ZE.set(l,this.styleCache),this.currentValue!==e&&(this.addStyles(e,{display:l}),this.currentValue=e)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Wi),i.Y36(E3),i.Y36(Ji),i.Y36(eo))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})(),GE=(()=>{class n extends H3{constructor(){super(...arguments),this.inputs=D3}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[i.qOj]}),n})();const ZE=new Map;let cN=(()=>{class n extends yn{buildStyles(e){const t={};switch(e=e||"stretch"){case"start":t["align-self"]="flex-start";break;case"end":t["align-self"]="flex-end";break;default:t["align-self"]=e}return t}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const dN=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];let uN=(()=>{class n extends an{constructor(e,t,r,l){super(e,r,t,l),this.DIRECTIVE_KEY="flex-align",this.styleCache=hN,this.init()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Wi),i.Y36(cN),i.Y36(Ji))},n.\u0275dir=i.lG2({type:n,features:[i.qOj]}),n})();const hN=new Map;let JE=(()=>{class n extends uN{constructor(){super(...arguments),this.inputs=dN}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275dir=i.lG2({type:n,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm":"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[i.qOj]}),n})(),XE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[rv,Tl]]}),n})();function DN(n,a){if(1&n&&(i.TgZ(0,"mat-option",13),i._uU(1),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.Q6J("value",t.selectedUnit),i.xp6(1),i.hij(" ",e," ")}}let HN=(()=>{class n{constructor(e,t,r,l,d){this.dialogRef=e,this.data=t,this.rtMessagesService=r,this.notificator=l,this.translate=d,this.resource="",this.currentQuota="",this.units=["MiB","GiB","TiB"],this.selectedUnit="GiB",d.get("DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SUCCESS").subscribe(s=>this.successMessage=s)}ngOnInit(){this.resource=this.data.resource.name,this.currentQuota=this.data.currentQuota,this.reasonControl=new vr(null,[_n.required]),this.newValueControl=new vr(null,[_n.required,_n.pattern("[1-9][0-9]*")])}onCancel(){this.dialogRef.close()}onSubmit(){const r=`QUOTA CHANGE REQUEST\u21b5 \u21b5 User: ${(new hA).transform(this.data.user)} (user ID: ${this.data.user.id})\u21b5 VO: ${this.data.vo.shortName} / ${this.data.vo.name} (vo ID: ${this.data.vo.id})\u21b5 Resource: ${this.data.resource.name} (resource ID: ${this.data.resource.id})\u21b5 Data quota\u21b5 Requested quota: ${this.newValueControl.value}\u21b5 Reason: ${this.reasonControl.value}\u21b5 \u21b5 \u21b5 -------------------------------------\u21b5 Sent from Perun GUI`;this.rtMessagesService.sentMessageToRTWithVo(this.data.vo.id,"QUOTA: Change request",r).subscribe(()=>{this.notificator.showSuccess(this.successMessage),this.dialogRef.close()})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(dn),i.Y36(hr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-request-change-data-quota-dialog"]],decls:42,vars:42,consts:[["mat-dialog-title","",1,"mb-3"],[1,"user-theme"],[1,"column-size"],["fxLayout","row","fxFlexAlign","center center"],[1,"label-width"],["matInput","","required","","type","number",3,"placeholder","formControl"],[1,"select-width","mt-auto","mb-auto","ml-2",3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[1,"form-width"],["matInput","","required","","rows","4",3,"placeholder","formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[3,"value"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"div"),i.TgZ(6,"p",2),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"p"),i._uU(11),i.qZA(),i.qZA(),i.TgZ(12,"div"),i.TgZ(13,"p",2),i._uU(14),i.ALo(15,"translate"),i.ALo(16,"customTranslate"),i.qZA(),i.TgZ(17,"p"),i._uU(18),i.qZA(),i.qZA(),i.TgZ(19,"div",3),i.TgZ(20,"mat-form-field"),i.TgZ(21,"label",4),i._UZ(22,"input",5),i.ALo(23,"translate"),i.ALo(24,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(25,"mat-select",6),i.NdJ("valueChange",function(l){return t.selectedUnit=l}),i.YNc(26,DN,2,2,"mat-option",7),i.qZA(),i.qZA(),i.TgZ(27,"div"),i.TgZ(28,"mat-form-field",8),i.TgZ(29,"label",4),i._UZ(30,"textarea",9),i.ALo(31,"translate"),i.ALo(32,"customTranslate"),i.qZA(),i.qZA(),i.qZA(),i.TgZ(33,"div",10),i.TgZ(34,"button",11),i.NdJ("click",function(){return t.onCancel()}),i._uU(35),i.ALo(36,"translate"),i.ALo(37,"customTranslate"),i.qZA(),i.TgZ(38,"button",12),i.NdJ("click",function(){return t.onSubmit()}),i._uU(39),i.ALo(40,"translate"),i.ALo(41,"customTranslate"),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,14,i.lcZ(3,16,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.TITLE")),"\n"),i.xp6(6),i.hij(" ",i.lcZ(8,18,i.lcZ(9,20,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.RESOURCE"))," "),i.xp6(4),i.Oqu(t.resource),i.xp6(3),i.hij(" ",i.lcZ(15,22,i.lcZ(16,24,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CURRENT_QUOTA"))," "),i.xp6(4),i.Oqu(t.currentQuota),i.xp6(4),i.s9C("placeholder",i.lcZ(23,26,i.lcZ(24,28,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REQUESTED_QUOTA"))),i.Q6J("formControl",t.newValueControl),i.xp6(3),i.Q6J("value",t.selectedUnit),i.xp6(1),i.Q6J("ngForOf",t.units),i.xp6(4),i.s9C("placeholder",i.lcZ(31,30,i.lcZ(32,32,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.REASON"))),i.Q6J("formControl",t.reasonControl),i.xp6(5),i.hij(" ",i.lcZ(36,34,i.lcZ(37,36,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.reasonControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(40,38,i.lcZ(41,40,"DIALOGS.REQUEST_DATA_QUOTA_CHANGE.SEND"))," "))},directives:[Sn,GE,JE,mn,Ln,Up,rn,Nr,bn,os,Iu,w.sg,ka,Vi,kt],pipes:[lt,ni],styles:[".column-size[_ngcontent-%COMP%]{width:10rem!important;font-weight:700}.form-width[_ngcontent-%COMP%]{width:100%;overflow:hidden}.label-width[_ngcontent-%COMP%]{width:100%}.select-width[_ngcontent-%COMP%]{width:4rem}.mat-input-underline.mat-form-field-underline[_ngcontent-%COMP%], .mat-input-ripple.mat-form-field-ripple[_ngcontent-%COMP%]{display:none}"]}),n})();function LN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function kN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function PN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"p"),i.TgZ(2,"strong"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i._uU(6),i.qZA(),i.TgZ(7,"p",10),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",11),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit,l=i.oxw(3).$implicit;return i.oxw().requestChangeQuota(l,r)}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=i.oxw(5);i.xp6(3),i.Oqu(i.lcZ(4,4,i.lcZ(5,6,"DATA_QUOTAS.QUOTA"))),i.xp6(3),i.hij(" ",e.quotasMarkup," "),i.xp6(2),i.Oqu(i.lcZ(9,8,i.lcZ(10,10,"DATA_QUOTAS.QUOTA_INFO"))),i.xp6(4),i.hij(" ",i.lcZ(13,12,i.lcZ(14,14,"DATA_QUOTAS.CHANGE"))," ")}}function RN(n,a){1&n&&(i.TgZ(0,"p"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DATA_QUOTAS.NO_QUOTAS"))))}function ON(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(4).getResAttributes(l.id)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,PN,15,16,"div",7),i.YNc(5,RN,4,5,"p",7),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.xp6(3),i.hij(" ",e.name," "),i.xp6(1),i.Q6J("ngIf",t.defaultQuota),i.xp6(1),i.Q6J("ngIf",!t.defaultQuota)}}function IN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,ON,6,3,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function BN(n,a){if(1&n&&(i.YNc(0,LN,1,0,"mat-spinner",5),i.YNc(1,kN,4,5,"perun-web-apps-alert",6),i.YNc(2,IN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function NN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw().getMembersResources(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,BN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.hij(" ",e.name," ")}}let VN=(()=>{class n{constructor(e,t,r,l,d,s){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.dialog=s,this.vos=[],this.resources=[],this.quotasMarkup="",this.filteredVos=[]}ngOnInit(){this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(e=>{this.vos=e,this.filteredVos=e})}getMembersResources(e){this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getResourceAttributes(d.id).subscribe(s=>{l--,s.find(o=>"defaultDataQuotas"===o.friendlyName)&&this.resources.push(d),this.loading=0!==l})})})})}getResAttributes(e){this.attributesManagerService.getResourceAttributes(e).subscribe(t=>{let r=t.find(l=>"dataQuotas"===l.friendlyName);if(null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.currentQuota=l[0]}else this.currentQuota="";if(r=t.find(l=>"defaultDataQuotas"===l.friendlyName),null==r?void 0:r.value){const l=Object.entries(r.value).map(d=>String(d[1]));this.defaultQuota=l[0]}else this.defaultQuota="";this.currentQuota||(this.currentQuota=this.defaultQuota),this.parseMarkup()})}requestChangeQuota(e,t){const r=Pi();r.width="400px",r.data={vo:e,resource:t,user:this.user,currentQuota:this.quotasMarkup},this.dialog.open(HN,r)}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}parseMarkup(){let e="";e+=this.currentQuota,e+=` (default: ${this.defaultQuota})`,e=e.split(":").join(" : ").split("K").join(" KiB").split("M").join(" MiB").split("G").join(" GiB").split("T").join(" TiB").split("E").join(" EiB"),this.quotasMarkup=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Ti),i.Y36(wt),i.Y36(fi),i.Y36(ri),i.Y36(Yi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-data-quotas"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"opened",4,"ngFor","ngForOf"],[3,"opened"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[2,"color","gray"],["mat-flat-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,NN,5,1,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DATA_QUOTAS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"DATA_QUOTAS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[gf,NA,w.sg,k1,P1,BA,L1,w.O5,En,Nn,kt],pipes:[lt,ni],styles:[""]}),n})();function zN(n,a){1&n&&i._UZ(0,"mat-spinner",8)}function FN(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",9),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"OPT_OUT_MAILING_LISTS.NO_MAILING_LISTS_ALERT"))))}function jN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw(4).deselectResource()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw(4).changeSelectedResource(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.TgZ(4,"div",10),i.TgZ(5,"mat-checkbox",11),i.NdJ("change",function(){return i.CHM(e),i.oxw(4).setOptOut()}),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw(4);i.Q6J("expanded",e.name===t.selectedResource),i.xp6(3),i.hij(" ",e.name," "),i.xp6(2),i.Q6J("checked",t.optOutAttribute&&null!==t.optOutAttribute.value),i.xp6(2),i.Oqu(i.lcZ(8,4,i.lcZ(9,6,"OPT_OUT_MAILING_LISTS.OPT_OUT_LABEL")))}}function qN(n,a){if(1&n&&(i.TgZ(0,"mat-accordion"),i.YNc(1,jN,10,8,"mat-expansion-panel",2),i.qZA()),2&n){const e=i.oxw(3);i.xp6(1),i.Q6J("ngForOf",e.resources)}}function YN(n,a){if(1&n&&(i.YNc(0,zN,1,0,"mat-spinner",5),i.YNc(1,FN,4,5,"perun-web-apps-alert",6),i.YNc(2,qN,2,1,"mat-accordion",7)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.loading),i.xp6(1),i.Q6J("ngIf",0===e.resources.length&&!e.loading),i.xp6(1),i.Q6J("ngIf",e.resources.length&&!e.loading)}}function WN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",3),i.NdJ("closed",function(){return i.CHM(e),i.oxw().deselectVo()})("afterExpand",function(){const l=i.CHM(e).$implicit;return i.oxw().changeSelectedVo(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,YN,3,3,"ng-template",4),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.Q6J("expanded",e.shortName===t.selectedVo),i.xp6(3),i.hij(" ",e.name," ")}}let UN=(()=>{class n{constructor(e,t,r,l,d,s,o,c,u){this.store=e,this.usersManagerService=t,this.membersService=r,this.resourcesManagerService=l,this.attributesManagerService=d,this.route=s,this.router=o,this.notificator=c,this.translate=u,this.vos=[],this.resources=[],this.optOuts=[],this.filteredVos=[],this.loading=!0,this.selectedVo=null,this.selectedResource=null}ngOnDestroy(){this.router.navigate([],{relativeTo:this.route,queryParams:{vo:null,resource:null},replaceUrl:!0})}ngOnInit(){this.route.queryParams.subscribe(e=>{this.selectedVo=String(e.vo),this.selectedResource=String(e.resource),this.changeOptOut=String(e.action),this.user=this.store.getPerunPrincipal().user,this.usersManagerService.getVosWhereUserIsMember(this.user.id).subscribe(t=>{if(this.vos=t.sort(Ux),this.filteredVos=t,void 0!==this.selectedResource){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&this.getMailingLists(r)}else if(void 0!==this.selectedVo){const r=this.vos.find(l=>l.shortName===this.selectedVo);r&&(this.getMailingLists(r),this.changeSelectedVo(r))}})}).unsubscribe()}changeSelectedResource(e){this.selectedResource!==e.name&&this.getOptOutAttribute(e),this.changeOptOut&&("subscribe"===this.changeOptOut?this.subscribe():"unsubscribe"===this.changeOptOut&&this.unsubscribe(),this.changeOptOut=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource,action:null},queryParamsHandling:"merge"})}changeSelectedVo(e){this.selectedVo!==e.shortName&&(this.getMailingLists(e),this.selectedResource=null),this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}getMailingLists(e){this.selectedVo=e.shortName,this.loading=!0,this.resources=[],this.membersService.getMemberByUser(e.id,this.user.id).subscribe(t=>{this.resourcesManagerService.getAssignedRichResourcesWithMember(t.id).subscribe(r=>{let l=r.length;l||(this.loading=!1),r.forEach(d=>{this.attributesManagerService.getRequiredAttributesMemberResource(t.id,d.id).subscribe(s=>{this.attributesManagerService.getResourceAttributeByName(d.id,"urn:perun:resource:attribute-def:def:disableMailingListOptOut").subscribe(o=>{l--;const c=s.find(u=>"optOutMailingList"===u.friendlyName);c&&"true"!==(null==o?void 0:o.value)&&(this.optOuts.push({resource:d.id,member:t.id,attribute:c}),this.resources.push(d),this.selectedResource===d.name&&(this.getOptOutAttribute(d),this.changeSelectedResource(d))),this.loading=0!==l})})})}),this.resources.sort(Ux)})}getOptOutAttribute(e){this.selectedResource=e.name,this.index=this.resources.indexOf(e),this.optOutAttribute=this.optOuts[this.index].attribute}unsubscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value="true",this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.UNSUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}subscribe(){const e=String(this.optOuts[this.index].attribute.value);this.optOuts[this.index].attribute.value=null,this.attributesManagerService.setMemberResourceAttribute(this.optOuts[this.index]).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("OPT_OUT_MAILING_LISTS.SUBSCRIBED")+this.selectedResource+".")},()=>{this.optOuts[this.index].attribute.value=e})}setOptOut(){this.optOutAttribute.value?this.subscribe():this.unsubscribe()}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}deselectVo(){this.loading=!0,this.selectedVo=null,this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}deselectResource(){this.selectedResource=null,this.router.navigate([],{relativeTo:this.route,queryParams:{vo:this.selectedVo,resource:this.selectedResource},queryParamsHandling:"merge"})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(Ti),i.Y36(wt),i.Y36(fi),i.Y36(ri),i.Y36(nr),i.Y36(rt),i.Y36(hr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-mailing-lists"]],decls:9,vars:11,consts:[[1,"page-title"],[3,"placeholder","filter"],[3,"expanded","closed","afterExpand",4,"ngFor","ngForOf"],[3,"expanded","closed","afterExpand"],["matExpansionPanelContent",""],["class","ml-auto mr-auto",4,"ngIf"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["alert_type","warn"],[1,"row"],[1,"ml-3","mr-2",3,"checked","change"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-immediate-filter",1),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"mat-accordion"),i.YNc(8,WN,5,2,"mat-expansion-panel",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"OPT_OUT_MAILING_LISTS.TITLE"))),i.xp6(3),i.Q6J("placeholder",i.lcZ(5,7,i.lcZ(6,9,"OPT_OUT_MAILING_LISTS.FILTER"))),i.xp6(4),i.Q6J("ngForOf",t.filteredVos))},directives:[gf,NA,w.sg,k1,P1,BA,L1,w.O5,En,Nn,ic],pipes:[lt,ni],styles:[""]}),n})();function GN(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function ZN(n,a){1&n&&i._UZ(0,"th",17)}function $N(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e)}}function QN(n,a){1&n&&i._UZ(0,"tr",19)}function JN(n,a){1&n&&i._UZ(0,"tr",20)}function XN(n,a){if(1&n&&(i.TgZ(0,"table",11),i.ynx(1,12),i.YNc(2,ZN,1,0,"th",13),i.YNc(3,$N,2,1,"td",14),i.BQk(),i.YNc(4,QN,1,0,"tr",15),i.YNc(5,JN,1,0,"tr",16),i.qZA()),2&n){const e=i.oxw(2);i.Q6J("dataSource",e.dataSource),i.xp6(4),i.Q6J("matHeaderRowDef",e.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",e.displayedColumns)}}function KN(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",1),i.TgZ(1,"div",5),i.TgZ(2,"p"),i._uU(3),i.qZA(),i.TgZ(4,"div",6),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,XN,6,3,"table",7),i.qZA(),i.TgZ(9,"div",8),i.TgZ(10,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.TgZ(14,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(3),i.hij(" ",e.description," "),i.xp6(2),i.hij(" ",i.lcZ(6,5,i.lcZ(7,7,"DIALOGS.REMOVE_STRING_VALUE.ASK"))," "),i.xp6(3),i.Q6J("ngIf",e.dataSource.data.length),i.xp6(3),i.hij(" ",i.lcZ(12,9,i.lcZ(13,11,"DIALOGS.REMOVE_STRING_VALUE.CANCEL"))," "),i.xp6(4),i.hij(" ",i.lcZ(16,13,i.lcZ(17,15,"DIALOGS.REMOVE_STRING_VALUE.REMOVE"))," ")}}let zA=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.displayedColumns=["name"]}ngOnInit(){this.dataSource=new Wo(this.data.values),this.description=this.data.description,this.title=this.data.title}onCancel(){this.dialogRef.close(!1)}onSubmit(){var e,t;if(this.loading=!0,this.data.doNotShowValues)this.data.attribute.value="";else{let r=null!==(t=null===(e=this.data.attribute)||void 0===e?void 0:e.value)&&void 0!==t?t:[];void 0!==this.data.valueIndex?r.splice(this.data.valueIndex,1):r=r.filter(l=>!this.data.values.find(d=>d===l)),this.data.attribute.value=r}this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-remove-string-value-dialog"]],decls:5,vars:3,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],["class","user-theme",4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content",""],[1,"font-weight-bold"],["class","w-100","mat-table","",3,"dataSource",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],["mat-table","",1,"w-100",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","","class","font-weight-bolder",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row","",1,"font-weight-bolder"],["mat-row",""]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.qZA(),i.TgZ(2,"div",1),i.YNc(3,GN,1,0,"mat-spinner",2),i.qZA(),i.YNc(4,KN,18,17,"div",3)),2&e&&(i.xp6(1),i.Oqu(t.title),i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Sn,w.O5,En,tn,$s,us,ds,hs,cs,ps,Qs,Xs,Js,Ks,Vi,kt],pipes:[lt,ni],styles:[""]}),n})();function eV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",5),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"PREFERRED_SHELLS.NO_SHELLS"))))}function tV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-option",11),i.NdJ("click",function(){return i.CHM(e),i.oxw(3).changeValue()}),i._uU(1),i.qZA()}if(2&n){const e=a.$implicit;i.Q6J("value",e),i.xp6(1),i.Oqu(e)}}function iV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item"),i.TgZ(1,"mat-form-field",7),i.TgZ(2,"mat-select",8),i.NdJ("valueChange",function(r){const d=i.CHM(e).index;return i.oxw(2).shells[d]=r}),i.YNc(3,tV,2,2,"mat-option",9),i.qZA(),i.qZA(),i.TgZ(4,"button",10),i.NdJ("click",function(){const l=i.CHM(e).index;return i.oxw(2).removeShell(l)}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.index,t=i.oxw(2);i.xp6(2),i.Q6J("value",t.shells[e]),i.xp6(1),i.Q6J("ngForOf",t.defaultShells),i.xp6(2),i.hij(" ",i.lcZ(6,3,i.lcZ(7,5,"PREFERRED_SHELLS.REMOVE_BUTTON"))," ")}}function nV(n,a){if(1&n&&(i.TgZ(0,"mat-list"),i.YNc(1,iV,8,7,"mat-list-item",6),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.shells)}}let rV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.defaultShells=["/bin/bash","/bin/csh","/bin/ksh","/bin/sh","/bin/zsh"],this.shells=[],l.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_SHELLS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e)}),this.getAttribute()}addShell(){this.shells.push("/bin/bash"),this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{})}removeShell(e){const t=Pi();t.width="600px",t.data={valueIndex:e,values:[this.shells[e]],attribute:this.prefShellsAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(zA,t).afterClosed().subscribe(l=>{l&&this.getAttribute()})}changeValue(){this.loading=!0,this.prefShellsAttribute.value=this.shells,this.attributesManagerService.setUserAttribute({user:this.userId,attribute:this.prefShellsAttribute}).subscribe(()=>{this.getAttribute()})}getAttribute(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:preferredShells").subscribe(e=>{var t,r;this.prefShellsAttribute=e,this.shells=null!==(r=null===(t=this.prefShellsAttribute)||void 0===t?void 0:t.value)&&void 0!==r?r:[],this.loading=!1})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ri),i.Y36(Yi),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-shells"]],decls:14,vars:17,consts:[[1,"page-title"],["alert_type","info"],["mat-flat-button","","color","accent",3,"click"],["alert_type","warn",4,"ngIf"],[4,"ngIf"],["alert_type","warn"],[4,"ngFor","ngForOf"],[1,"w-100"],[3,"value","valueChange"],[3,"value","click",4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"ml-2",3,"click"],[3,"value","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"perun-web-apps-alert",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",2),i.NdJ("click",function(){return t.addShell()}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.YNc(12,eV,4,5,"perun-web-apps-alert",3),i.YNc(13,nV,2,1,"mat-list",4)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,5,i.lcZ(3,7,"PREFERRED_SHELLS.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,9,i.lcZ(7,11,"PREFERRED_SHELLS.DESCRIPTION")),"\n"),i.xp6(4),i.hij(" ",i.lcZ(10,13,i.lcZ(11,15,"PREFERRED_SHELLS.NEW_BUTTON")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.loading&&0===t.shells.length),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Nn,kt,w.O5,gv,w.sg,HA,mn,Iu,ka],pipes:[lt,ni],styles:[""]}),n})();function aV(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function sV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",5),i.TgZ(2,"mat-form-field",6),i.TgZ(3,"label",6),i._UZ(4,"input",7),i.qZA(),i.qZA(),i.qZA(),i.TgZ(5,"div",8),i.TgZ(6,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().onCancel()}),i._uU(7),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.TgZ(10,"button",10),i.NdJ("click",function(){return i.CHM(e),i.oxw().onSubmit()}),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.Q6J("formControl",e.inputControl),i.xp6(3),i.hij(" ",i.lcZ(8,4,i.lcZ(9,6,"DIALOGS.ADD_UNIX_GROUP.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",!e.inputControl.valid||e.groups.includes(e.inputControl.value)),i.xp6(1),i.hij(" ",i.lcZ(12,8,i.lcZ(13,10,"DIALOGS.ADD_UNIX_GROUP.ADD"))," ")}}let oV=(()=>{class n{constructor(e,t,r){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.groups=[]}ngOnInit(){this.inputControl=new vr(null,_n.required),this.groups=this.data.groups}onCancel(){this.dialogRef.close(!1)}onSubmit(){this.loading=!0,this.attributesManagerService.getUserAttributeByName(this.data.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${this.data.namespace}`).subscribe(e=>{var t;const r=null!==(t=null==e?void 0:e.value)&&void 0!==t?t:[];r.push(this.inputControl.value),e.value=r,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:e}).subscribe(()=>{this.loading=!1,this.dialogRef.close(!0)})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(ri))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-add-unix-group-dialog"]],decls:7,vars:7,consts:[["mat-dialog-title",""],[1,"user-theme"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container"],[1,"w-100"],["matInput","","required","",1,"w-100",3,"formControl"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,aV,1,0,"mat-spinner",2),i.YNc(6,sV,14,12,"div",3),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"DIALOGS.ADD_UNIX_GROUP.TITLE"))),i.xp6(4),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[Sn,w.O5,En,tn,mn,Ln,rn,Nr,bn,os,Vi,kt],pipes:[lt,ni],styles:[""]}),n})();function lV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div",2),i.TgZ(1,"h4"),i._uU(2),i.qZA(),i.TgZ(3,"button",3),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().addGroupName(l)}),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.TgZ(7,"button",4),i.NdJ("click",function(){const r=i.CHM(e),l=r.$implicit,d=r.index;return i.oxw().removeGroupName(l,d)}),i._uU(8),i.ALo(9,"translate"),i.qZA(),i._UZ(10,"perun-web-apps-string-list",5),i.qZA()}if(2&n){const e=a.$implicit,t=a.index,r=i.oxw();i.xp6(2),i.Oqu(e),i.xp6(2),i.hij(" ",i.lcZ(5,8,i.lcZ(6,10,"PREFERRED_UNIX_GROUP_NAMES.NEW_BUTTON"))," "),i.xp6(3),i.Q6J("disabled",0===r.selectionList[t].selected.length),i.xp6(1),i.hij(" ",i.lcZ(9,12,"PREFERRED_UNIX_GROUP_NAMES.REMOVE_BUTTON")," "),i.xp6(2),i.Q6J("values",r.groupNames.get(e))("selection",r.selectionList[t])("alertText",r.alertText)("headerColumnText",r.headerColumnText)}}let cV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.namespaces=[],this.userId=this.store.getPerunPrincipal().userId,this.groupNames=new Map,this.groupNameAttributes=[],this.selectionList=[],l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(d=>this.alertText=d),l.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.namespaces=this.store.get("preferred_unix_group_names"),this.translateService.onLangChange.subscribe(()=>{this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_PREFERRED_UNIX_GROUPS").subscribe(e=>this.alertText=e),this.translateService.get("PREFERRED_UNIX_GROUP_NAMES.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.initSelection(),this.namespaces.forEach(e=>{this.getAttribute(e)})}initSelection(){this.namespaces.forEach(()=>{this.selectionList.push(new nn(!0,[]))})}getAttribute(e){this.attributesManagerService.getUserAttributeByName(this.userId,`urn:perun:user:attribute-def:def:preferredUnixGroupName-namespace:${e}`).subscribe(t=>{var r;const l=null!==(r=null==t?void 0:t.value)&&void 0!==r?r:[];this.groupNames.set(e,l),this.groupNameAttributes.push(t)})}addGroupName(e){const t=this.groupNames.get(e),r=Pi();r.width="400px",r.data={groups:t,namespace:e,userId:this.userId},this.dialog.open(oV,r).afterClosed().subscribe(d=>{d&&this.getAttribute(e)})}removeGroupName(e,t){const r=Pi();r.width="600px",r.data={values:this.selectionList[t].selected,attribute:this.groupNameAttributes[t],userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(zA,r).afterClosed().subscribe(d=>{d&&(this.selectionList[t].clear(),this.getAttribute(e))})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ri),i.Y36(Yi),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-preferred-unix-group-names"]],decls:5,vars:6,consts:[[1,"page-title"],["class","mt-4",4,"ngFor","ngForOf"],[1,"mt-4"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["mat-flat-button","","color","warn",1,"ml-2",3,"disabled","click"],[3,"values","selection","alertText","headerColumnText"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,lV,11,14,"div",1)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,2,i.lcZ(3,4,"PREFERRED_UNIX_GROUP_NAMES.TITLE"))),i.xp6(3),i.Q6J("ngForOf",t.namespaces))},directives:[w.sg,kt,UE],pipes:[lt,ni],styles:[""]}),n})();function dV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.NO_SAMBA")),"\n"))}function uV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",7),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"ALERTS.SAMBA_EXISTS")),"\n"))}function hV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SAMBA_PASSWORD.PASSWORD_VALIDATION"))))}let pV=(()=>{class n{constructor(e,t,r,l,d){this.attributesManagerService=e,this.store=t,this.usersManagerService=r,this.notificator=l,this.translate=d,d.get("SAMBA_PASSWORD.SUCCESS_MESSAGE").subscribe(s=>this.successMessage=s),d.get("SAMBA_PASSWORD.SHOW_PWD_TOOLTIP").subscribe(s=>this.showPwdTooltip=s),d.get("SAMBA_PASSWORD.HIDE_PWD_TOOLTIP").subscribe(s=>this.hidePwdTooltip=s)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.sambaControl=new vr("",[_n.pattern("((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])|(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%&/=?_.,:;\\-])).{3,}")]),this.getSambaAttribute()}setSambaPassword(){this.sambaAttribute.value=this.sambaControl.value;const e=(new Date).getTime().toString();this.usersManagerService.createAlternativePassword(this.userId,e,"samba-du",this.sambaControl.value).subscribe(()=>{this.sambaControl.setValue(""),this.getSambaAttribute(),this.notificator.showSuccess(this.successMessage)})}getSambaAttribute(){this.attributesManagerService.getUserAttributeByName(this.userId,"urn:perun:user:attribute-def:def:altPasswords:samba-du").subscribe(e=>{this.sambaExists=!!e.value,this.sambaAttribute=e})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ri),i.Y36(zt),i.Y36(Ti),i.Y36(hr),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-samba-password"]],decls:19,vars:23,consts:[[1,"page-title"],["alert_type","warn",4,"ngIf"],[1,"input-width"],["matInput","",3,"formControl","type","placeholder"],["disableRipple","","mat-icon-button","",3,"matTooltip","click"],["color","accent","mat-flat-button","",3,"disabled","click"],["alert_type","error",4,"ngIf"],["alert_type","warn"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,dV,4,5,"perun-web-apps-alert",1),i.YNc(5,uV,4,5,"perun-web-apps-alert",1),i.TgZ(6,"mat-form-field",2),i.TgZ(7,"label",2),i._UZ(8,"input",3),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.qZA(),i.TgZ(11,"button",4),i.NdJ("click",function(){return t.showPassword=!t.showPassword}),i.TgZ(12,"mat-icon"),i._uU(13),i.qZA(),i.qZA(),i.TgZ(14,"button",5),i.NdJ("click",function(){return t.setSambaPassword()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.YNc(18,hV,4,5,"perun-web-apps-alert",6)),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,11,i.lcZ(3,13,"SAMBA_PASSWORD.TITLE"))),i.xp6(3),i.Q6J("ngIf",!t.sambaExists),i.xp6(1),i.Q6J("ngIf",t.sambaExists),i.xp6(3),i.s9C("placeholder",i.lcZ(9,15,i.lcZ(10,17,"SAMBA_PASSWORD.INPUT_PLACEHOLDER"))),i.Q6J("formControl",t.sambaControl)("type",t.showPassword?"text":"password"),i.xp6(3),i.Q6J("matTooltip",t.showPassword?t.hidePwdTooltip:t.showPwdTooltip),i.xp6(2),i.Oqu(t.showPassword?"visibility_off":"visibility"),i.xp6(1),i.Q6J("disabled",0===t.sambaControl.value.length||t.sambaControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(16,19,i.lcZ(17,21,"SAMBA_PASSWORD.SET_PASSWORD")),"\n"),i.xp6(3),i.Q6J("ngIf",t.sambaControl.invalid))},directives:[w.O5,Nn,mn,Ln,rn,bn,os,kt,Tr,An],pipes:[lt,ni],styles:[""]}),n})();function fV(n,a){1&n&&(i.TgZ(0,"mat-error",8),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_SSH.INVALID_TYPE"))))}class Uo{constructor(a,e,t){this.dialogRef=a,this.data=e,this.attributesManagerService=t}ngOnInit(){this.sshControl=new vr(null,[_n.required,_n.pattern(Uo.sshKeyPattern)])}onCancel(){this.dialogRef.close(!1)}onSubmit(){var a,e;const t=null!==(e=null===(a=this.data.attribute)||void 0===a?void 0:a.value)&&void 0!==e?e:[],r=this.sshControl.value;t.includes(r)||t.push(r),this.data.attribute.value=t,this.attributesManagerService.setUserAttribute({user:this.data.userId,attribute:this.data.attribute}).subscribe(()=>{this.dialogRef.close(!0)},()=>{t.pop()})}}Uo.allowedSshKeys=["ssh-ed25519","ssh-ed25519-cert-v01@openssh.com","sk-ssh-ed25519@openssh.com","sk-ssh-ed25519-cert-v01@openssh.com","ssh-rsa","ssh-dss","ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","sk-ecdsa-sha2-nistp256@openssh.com","ssh-rsa-cert-v01@openssh.com","ssh-dss-cert-v01@openssh.com","ecdsa-sha2-nistp256-cert-v01@openssh.com","ecdsa-sha2-nistp384-cert-v01@openssh.com","ecdsa-sha2-nistp521-cert-v01@openssh.com","sk-ecdsa-sha2-nistp256-cert-v01@openssh.com"],Uo.sshKeyPattern="^("+Uo.allowedSshKeys.join("|")+").+$",Uo.\u0275fac=function(a){return new(a||Uo)(i.Y36(Ni),i.Y36(xn),i.Y36(ri))},Uo.\u0275cmp=i.Xpm({type:Uo,selectors:[["perun-web-apps-add-ssh-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"dialog-container","user-theme"],[1,"input-width"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","4",3,"placeholder","formControl"],["class","white-space-pre",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto",3,"click"],["mat-flat-button","","color","accent",1,"ml-2",3,"disabled","click"],[1,"white-space-pre"]],template:function(a,e){1&a&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"mat-form-field",2),i.TgZ(6,"label",2),i._UZ(7,"textarea",3),i.ALo(8,"translate"),i.ALo(9,"customTranslate"),i.qZA(),i.YNc(10,fV,4,5,"mat-error",4),i.qZA(),i.qZA(),i.TgZ(11,"div",5),i.TgZ(12,"button",6),i.NdJ("click",function(){return e.onCancel()}),i._uU(13),i.ALo(14,"translate"),i.ALo(15,"customTranslate"),i.qZA(),i.TgZ(16,"button",7),i.NdJ("click",function(){return e.onSubmit()}),i._uU(17),i.ALo(18,"translate"),i.ALo(19,"customTranslate"),i.qZA(),i.qZA()),2&a&&(i.xp6(1),i.Oqu(i.lcZ(2,7,i.lcZ(3,9,"DIALOGS.ADD_SSH.TITLE"))),i.xp6(6),i.s9C("placeholder",i.lcZ(8,11,i.lcZ(9,13,"DIALOGS.ADD_SSH.INPUT_PLACEHOLDER"))),i.Q6J("formControl",e.sshControl),i.xp6(3),i.Q6J("ngIf",e.sshControl.invalid&&e.sshControl.dirty),i.xp6(3),i.hij(" ",i.lcZ(14,15,i.lcZ(15,17,"DIALOGS.ADD_SSH.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",e.sshControl.invalid),i.xp6(1),i.hij(" ",i.lcZ(18,19,i.lcZ(19,21,"DIALOGS.ADD_SSH.ADD"))," "))},directives:[Sn,tn,mn,Ln,pA,rn,Nr,bn,os,w.O5,jl,Vi,kt],pipes:[lt,ni],styles:[".input-width{width:100%}.white-space-pre{white-space:pre-wrap}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper{padding-bottom:0}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-underline{position:static!important;position:initial!important;display:block;margin-top:-1px}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper,perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-ripple{position:static!important;position:initial!important;display:table}perun-web-apps-add-ssh-dialog .mat-form-field .mat-form-field-wrapper .mat-form-field-subscript-wrapper{min-height:calc(1em + 1px)}\n"],encapsulation:2});let mV=(()=>{class n{constructor(e,t){this.dialogRef=e,this.data=t}ngOnInit(){this.sshKey=this.data.value}onClose(){this.dialogRef.close()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-show-ssh-dialog"]],decls:8,vars:6,consts:[[1,"user-theme"],["matInput","","cdkTextareaAutosize","","readonly","",1,"w-100","display-fix"],["mat-flat-button","","color","warn",1,"ml-auto",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"textarea",1),i._uU(2),i.qZA(),i.qZA(),i.TgZ(3,"mat-dialog-actions"),i.TgZ(4,"button",2),i.NdJ("click",function(){return t.onClose()}),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Oqu(t.sshKey),i.xp6(3),i.hij(" ",i.lcZ(6,2,i.lcZ(7,4,"DIALOGS.SHOW_SSH.CLOSE"))," "))},directives:[Ln,pA,Vi,kt],pipes:[lt,ni],styles:[".display-fix[_ngcontent-%COMP%]{overflow:hidden;border:none}*[_ngcontent-%COMP%]:focus{outline:none}"]}),n})();function gV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"p",5),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",6),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.TgZ(6,"mat-icon"),i._uU(7," file_copy "),i.qZA(),i.qZA(),i.TgZ(8,"button",7),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!1)}),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"mat-icon"),i._uU(12," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.s9C("matTooltip",i.lcZ(4,4,i.lcZ(5,6,"SSH_KEYS.COPY_TOOLTIP"))),i.Q6J("cdkCopyToClipboard",e),i.xp6(5),i.s9C("matTooltip",i.lcZ(9,8,i.lcZ(10,10,"SSH_KEYS.REMOVE_TOOLTIP")))}}function _V(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-list-item",4),i.TgZ(1,"label",8),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().showWholeKey(l)}),i._uU(2),i.qZA(),i.TgZ(3,"button",9),i.TgZ(4,"mat-icon"),i._uU(5," file_copy "),i.qZA(),i.qZA(),i.TgZ(6,"button",10),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().removeKey(l,!0)}),i.TgZ(7,"mat-icon"),i._uU(8," delete "),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(2),i.Oqu(e),i.xp6(1),i.Q6J("cdkCopyToClipboard",e)}}let bV=(()=>{class n{constructor(e,t,r,l){this.store=e,this.attributesManagerService=t,this.dialog=r,this.translateService=l,this.adminKeys=[],this.userKeys=[],this.userUrn="urn:perun:user:attribute-def:def:sshPublicKey",this.adminUrn="urn:perun:user:attribute-def:def:sshPublicAdminKey",this.selection=new nn(!1,[]),this.selectionAdmin=new nn(!1,[]),l.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(d=>this.removeDialogDescription=d),l.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(d=>this.removeDialogTitle=d),l.get("ALERTS.NO_ALT_PASSWORDS").subscribe(d=>this.alertText=d),l.get("SSH_KEYS.HEADER_COLUMN").subscribe(d=>this.headerColumnText=d)}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.translateService.onLangChange.subscribe(()=>{this.translateService.get("SSH_KEYS.REMOVE_DIALOG_DESCRIPTION").subscribe(e=>this.removeDialogDescription=e),this.translateService.get("SSH_KEYS.REMOVE_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translateService.get("ALERTS.NO_ALT_PASSWORDS").subscribe(e=>this.alertText=e),this.translateService.get("SSH_KEYS.HEADER_COLUMN").subscribe(e=>this.headerColumnText=e)}),this.loading=!0,this.getUserSSH(),this.getAdminSSH()}addKey(e){const t=Pi();t.width="850px",t.data={attribute:e?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId},this.dialog.open(Uo,t).afterClosed().subscribe(l=>{l&&(e?this.getAdminSSH():this.getUserSSH())})}removeKey(e,t){const r=Pi();r.width="600px",r.data={values:[e],attribute:t?this.adminKeyAttribute:this.userKeyAttribute,userId:this.userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(zA,r).afterClosed().subscribe(d=>{d&&(this.loading=!0,t?(this.getAdminSSH(),this.selectionAdmin.clear()):(this.getUserSSH(),this.selection.clear()))})}getUserSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.userUrn).subscribe(e=>{this.userKeyAttribute=e,this.userKeys=e.value,this.loading=!1})}getAdminSSH(){this.attributesManagerService.getUserAttributeByName(this.userId,this.adminUrn).subscribe(e=>{this.adminKeyAttribute=e,this.adminKeys=e.value,this.loading=!1})}showWholeKey(e){const t=Pi();t.width="600px",t.data={value:e},this.dialog.open(mV,t)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(zt),i.Y36(ri),i.Y36(Yi),i.Y36(oi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-ssh-keys"]],decls:28,vars:32,consts:[[1,"page-title"],["mat-flat-button","","color","accent",1,"action-button",3,"click"],["class","dark-hover-list-item","matRipple","","style","width: auto",4,"ngFor","ngForOf"],[1,"page-title","mt-5"],["matRipple","",1,"dark-hover-list-item",2,"width","auto"],[1,"truncate","center-content","cursor-pointer",3,"click"],["color","accent","mat-icon-button","",1,"ml-auto","center-content",3,"cdkCopyToClipboard","matTooltip"],["color","warn","mat-icon-button","",1,"ml-2","center-content",3,"matTooltip","click"],[1,"truncate","center-content",3,"click"],["mat-icon-button","","color","accent",1,"ml-auto","center-content",3,"cdkCopyToClipboard"],["mat-icon-button","","color","warn",1,"ml-2","center-content",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"p"),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"button",1),i.NdJ("click",function(){return t.addKey(!1)}),i._uU(9),i.ALo(10,"translate"),i.ALo(11,"customTranslate"),i.qZA(),i.TgZ(12,"mat-list"),i.YNc(13,gV,13,12,"mat-list-item",2),i.qZA(),i.TgZ(14,"h1",3),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"p"),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.TgZ(22,"button",1),i.NdJ("click",function(){return t.addKey(!0)}),i._uU(23),i.ALo(24,"translate"),i.ALo(25,"customTranslate"),i.qZA(),i.TgZ(26,"mat-list"),i.YNc(27,_V,9,2,"mat-list-item",2),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,8,i.lcZ(3,10,"SSH_KEYS.SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(6,12,i.lcZ(7,14,"SSH_KEYS.SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(10,16,i.lcZ(11,18,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.userKeys),i.xp6(2),i.Oqu(i.lcZ(16,20,i.lcZ(17,22,"SSH_KEYS.ADMIN_SSH_KEYS_TITLE"))),i.xp6(4),i.Oqu(i.lcZ(20,24,i.lcZ(21,26,"SSH_KEYS.ADMIN_SSH_KEYS_DESCRIPTION"))),i.xp6(4),i.hij(" ",i.lcZ(24,28,i.lcZ(25,30,"SSH_KEYS.NEW_KEY")),"\n"),i.xp6(4),i.Q6J("ngForOf",t.adminKeys))},directives:[kt,gv,w.sg,HA,Gn,tv,Tr,An],pipes:[lt,ni],styles:[".truncate[_ngcontent-%COMP%]{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap}.center-content[_ngcontent-%COMP%]{margin-bottom:auto;margin-top:auto}label[_ngcontent-%COMP%]:hover, .cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),n})(),AV=(()=>{class n{transform(e){return"virt"===e.namespace.split(":")[4]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=i.Yjl({name:"isVirtualAttribute",type:n,pure:!0}),n})();function yV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())("aria-label",e.checkboxLabel())}}function MV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"mat-checkbox",20),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.ALo(2,"multiWordDataCy"),i.ALo(3,"isVirtualAttribute"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q2q("data-cy","",i.lcZ(2,4,e.displayName),"-checkbox"),i.Q6J("checked",t.selection.isSelected(e))("disabled",i.lcZ(3,6,e)||!e.writable)("aria-label",t.checkboxLabel(e))}}function wV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.ID")," "))}function CV(n,a){if(1&n&&(i.TgZ(0,"td",22),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.id)}}function vV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.NAME")," "))}function TV(n,a){if(1&n&&(i.TgZ(0,"td",23),i.TgZ(1,"div",24),i._uU(2),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.s9C("matTooltip",t.getAttributeFullName(e)),i.xp6(1),i.hij(" ",e.displayName," ")}}function xV(n,a){1&n&&(i.TgZ(0,"th",25),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.VALUE")," "))}function SV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",23),i.TgZ(1,"perun-web-apps-attribute-value",26),i.NdJ("sendEventToParent2",function(){const l=i.CHM(e).$implicit;return i.oxw().onValueChange(l)}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("attribute",e)("readonly",t.readonly||!e.writable)}}function EV(n,a){1&n&&(i.TgZ(0,"th",21),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DESCRIPTION")," "))}function DV(n,a){if(1&n&&(i.TgZ(0,"td",23),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.description)}}function HV(n,a){1&n&&i._UZ(0,"tr",27)}function LV(n,a){if(1&n&&(i._UZ(0,"tr",28),i.ALo(1,"translate")),2&n){const e=a.$implicit,t=i.oxw();i.s9C("matTooltip",i.lcZ(1,3,"SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.DISABLED_HINT")),i.Q6J("matTooltipPosition","before")("matTooltipDisabled",e.writable||t.readonly)}}function kV(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT"),"\n"))}function PV(n,a){if(1&n&&(i.TgZ(0,"perun-web-apps-alert",29),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.hij(" ",i.lcZ(2,1,e.emptyListText),"\n")}}let RV=(()=>{class n{constructor(e,t){this.authResolver=e,this.tableCheckbox=t,this.attributes=[],this.selection=new nn(!0,[]),this.displayedColumns=["select","id","displayName","value","description"],this.inDialog=!1,this.filterValue="",this.readonly=!1,this.hiddenColumns=[],this.emptyListText="SHARED_LIB.PERUN.COMPONENTS.ATTRIBUTES_LIST.EMPTY_SETTINGS",this.pageSizeOptions=nf}set matSort(e){this.sort=e,this.setDataSource()}static canBeSelected(e){return!zu(e)&&e.writable}static getDataForColumn(e,t){switch(t){case"id":return e.id.toString();case"displayName":return e.displayName;case"description":return e.description;case"value":return JSON.stringify(e.value);case"urn":return e.namespace+":"+e.baseFriendlyName;default:return""}}ngOnChanges(){this.authResolver.isPerunAdminOrObserver()||(this.displayedColumns=this.displayedColumns.filter(e=>"id"!==e)),this.dataSource=new Wo(function m2(n){return n.filter(a=>!a.namespace.includes("def:core"))}(this.attributes)),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.displayedColumns=this.displayedColumns.filter(e=>!this.hiddenColumns.includes(e)),this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>A1(e,t,this.displayedColumns.concat("urn"),n.getDataForColumn),this.dataSource.sortData=(e,t)=>b1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelectedWithDisabledCheckbox(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.child.paginator.pageIndex,this.dataSource,this.sort,n.canBeSelected)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!0,n.canBeSelected)}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.id+1}`:(this.isAllSelected()?"select":"deselect")+" all"}updateMapAttributes(){for(const e of this.items.toArray())"java.util.LinkedHashMap"===e.attribute.type&&e.updateMapAttribute()}onValueChange(e){n.canBeSelected(e)&&this.selection.select(e)}getAttributeFullName(e){return`${e.namespace}:${e.friendlyName}`}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ms),i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-attributes-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7),i.Gf(Tv,5)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first),i.iGM(r=i.CRH())&&(t.items=r)}},inputs:{attributes:"attributes",selection:"selection",displayedColumns:"displayedColumns",inDialog:"inDialog",filterValue:"filterValue",tableId:"tableId",readonly:"readonly",hiddenColumns:"hiddenColumns",emptyListText:"emptyListText"},features:[i.TTD],decls:22,vars:9,consts:[[1,"card","mt-3",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","id","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size",4,"matCellDef"],["matColumnDef","displayName"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","aria-label","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","disabled","aria-label","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",1,"static-column-size"],["mat-cell",""],["matTooltipClass","urn-tooltip",3,"matTooltip"],["mat-header-cell",""],[3,"attribute","readonly","sendEventToParent2"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item",3,"matTooltip","matTooltipPosition","matTooltipDisabled"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,yV,2,3,"th",4),i.YNc(5,MV,4,8,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,wV,3,3,"th",7),i.YNc(8,CV,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,vV,3,3,"th",7),i.YNc(11,TV,3,2,"td",10),i.BQk(),i.ynx(12,11),i.YNc(13,xV,3,3,"th",12),i.YNc(14,SV,2,2,"td",10),i.BQk(),i.ynx(15,13),i.YNc(16,EV,3,3,"th",7),i.YNc(17,DV,2,1,"td",10),i.BQk(),i.YNc(18,HV,1,0,"tr",14),i.YNc(19,LV,2,5,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.YNc(20,kV,3,3,"perun-web-apps-alert",16),i.YNc(21,PV,3,3,"perun-web-apps-alert",16)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(16),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[ls,$s,fs,us,ds,hs,ic,cs,ps,H1,Tr,Tv,Qs,Xs,Js,Ks,w.O5,Nn],pipes:[bv,AV,lt],styles:["table[_ngcontent-%COMP%]{width:100%!important}.mat-row[_ngcontent-%COMP%]{height:auto}.mat-cell[_ngcontent-%COMP%]{padding:8px 8px 8px 0}.mat-column-select[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:50px!important}.mat-column-id[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:60px!important}.mat-column-value[_ngcontent-%COMP%]{flex:0 0 25%!important;min-width:300px!important}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:.25rem!important} .urn-tooltip{max-width:800px!important}"]}),n})();function OV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function IV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function BV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(3);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function NV(n,a){if(1&n&&(i.YNc(0,IV,1,0,"mat-spinner",3),i.YNc(1,BV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(2);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function VV(n,a){1&n&&i._UZ(0,"mat-spinner",5)}function zV(n,a){if(1&n&&i._UZ(0,"perun-web-apps-attributes-list",10),2&n){const e=i.oxw(4);i.Q6J("attributes",e.attributes)("readonly",!0)("hiddenColumns",e.hiddenColumns)}}function FV(n,a){if(1&n&&(i.YNc(0,VV,1,0,"mat-spinner",3),i.YNc(1,zV,1,3,"perun-web-apps-attributes-list",9)),2&n){const e=i.oxw(3);i.Q6J("ngIf",e.innerLoading),i.xp6(1),i.Q6J("ngIf",!e.innerLoading)}}function jV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-expansion-panel",6),i.NdJ("opened",function(){const l=i.CHM(e).$implicit;return i.oxw(2).getMemberData(l)}),i.TgZ(1,"mat-expansion-panel-header"),i.TgZ(2,"mat-panel-title"),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.qZA(),i.YNc(6,FV,2,2,"ng-template",7),i.qZA()}if(2&n){const e=a.$implicit;i.xp6(3),i.AsE(" ",i.lcZ(4,2,i.lcZ(5,4,"PRIVACY.DATA")),"",e.name," ")}}function qV(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"mat-accordion"),i.TgZ(1,"mat-expansion-panel",6),i.NdJ("opened",function(){return i.CHM(e),i.oxw().getUserData()}),i.TgZ(2,"mat-expansion-panel-header"),i.TgZ(3,"mat-panel-title"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA(),i.YNc(7,NV,2,2,"ng-template",7),i.qZA(),i.YNc(8,jV,7,6,"mat-expansion-panel",8),i.qZA()}if(2&n){const e=i.oxw();i.xp6(4),i.hij(" ",i.lcZ(5,2,i.lcZ(6,4,"PRIVACY.USER_INFO"))," "),i.xp6(4),i.Q6J("ngForOf",e.filteredVos)}}let YV=(()=>{class n{constructor(e,t,r,l){this.usersManagerService=e,this.membersService=t,this.attributesManagerService=r,this.storage=l,this.vos=[],this.attributes=[],this.username="",this.hiddenColumns=["select","id"],this.filteredVos=[]}ngOnInit(){this.outerLoading=!0,this.userId=this.storage.getPerunPrincipal().userId,this.usersManagerService.getVosWhereUserIsMember(this.userId).subscribe(e=>{this.vos=e,this.filteredVos=e,this.outerLoading=!1})}getUserData(){this.innerLoading=!0,this.usersManagerService.getRichUserWithAttributes(this.userId).subscribe(e=>{this.user=e,this.attributes=e.userAttributes,this.username=(new hA).transform(e),this.innerLoading=!1})}getMemberData(e){this.innerLoading=!0,this.membersService.getMemberByUser(e.id,this.userId).subscribe(t=>{this.membersService.getRichMemberWithAttributes(t.id).subscribe(r=>{this.attributes=r.memberAttributes,this.innerLoading=!1})})}applyFilter(e){this.filteredVos=this.vos.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(wt),i.Y36(ri),i.Y36(zt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-privacy-page"]],decls:10,vars:12,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[3,"placeholder","filter"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[3,"opened"],["matExpansionPanelContent",""],[3,"opened",4,"ngFor","ngForOf"],[3,"attributes","readonly","hiddenColumns",4,"ngIf"],[3,"attributes","readonly","hiddenColumns"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.TgZ(5,"perun-web-apps-immediate-filter",2),i.NdJ("filter",function(l){return t.applyFilter(l)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,OV,1,0,"mat-spinner",3),i.YNc(9,qV,9,6,"mat-accordion",4),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,4,i.lcZ(3,6,"PRIVACY.TITLE"))),i.xp6(4),i.Q6J("placeholder",i.lcZ(6,8,i.lcZ(7,10,"SERVICES.FILTER"))),i.xp6(3),i.Q6J("ngIf",t.outerLoading),i.xp6(1),i.Q6J("ngIf",!t.outerLoading))},directives:[gf,w.O5,En,NA,k1,P1,BA,L1,RV,w.sg],pipes:[lt,ni],styles:[""]}),n})(),WV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-home-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})(),QV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),rz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[QV,ct],ct]}),n})(),fz=(()=>{class n{constructor(){this.changes=new He.xQ,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(e,t){return`${e} \u2013 ${t}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const _z={provide:new i.OlP("mat-datepicker-scroll-strategy"),deps:[Zr],useFactory:function gz(n){return()=>n.scrollStrategies.reposition()}};let Pv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[fz,_z],imports:[[w.ez,ns,Fc,Uh,Lo,ct],Sa]}),n})(),vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Ul,ns,x1,Yo,lf,md]]}),n})(),Rv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[ct],ct]}),n})(),nD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[um,ct],um,ct]}),n})(),Sz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Tl]]}),n})(),Ov=(()=>{class n{constructor(){this.changes=new He.xQ,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Nz={provide:Ov,deps:[[new i.FiY,new i.tp0,Ov]],useFactory:function Bz(n){return n||new Ov}};let aD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[Nz,Kc],imports:[[ct,w.ez,Lo,ns,Sz,Yo,ti],ct]}),n})(),qz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ct,Lo,ti,jc,Uh],ct]}),n})();const Yz=["thumbContainer"],Wz=["toggleBar"],Uz=["input"],Gz=function(n){return{enterDuration:n}},Zz=["*"],$z=new i.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let Qz=0;const Jz={provide:Zn,useExisting:(0,i.Gpc)(()=>sD),multi:!0};class Xz{constructor(a,e){this.source=a,this.checked=e}}const Kz=Vl(Vo(na(ts(class{constructor(n){this._elementRef=n}}))));let sD=(()=>{class n extends Kz{constructor(e,t,r,l,d,s){super(e),this._focusMonitor=t,this._changeDetectorRef=r,this.defaults=d,this._onChange=o=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++Qz,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new i.vpe,this.toggleChange=new i.vpe,this.tabIndex=parseInt(l)||0,this.color=this.defaultColor=d.color||"accent",this._noopAnimations="NoopAnimations"===s}get required(){return this._required}set required(e){this._required=je(e)}get checked(){return this._checked}set checked(e){this._checked=je(e),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(e){e.stopPropagation()}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new Xz(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(i.SBq),i.Y36(Rr),i.Y36(i.sBO),i.$8M("tabindex"),i.Y36($z),i.Y36(Bn,8))},n.\u0275cmp=i.Xpm({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){if(1&e&&(i.Gf(Yz,5),i.Gf(Wz,5),i.Gf(Uz,5)),2&e){let r;i.iGM(r=i.CRH())&&(t._thumbEl=r.first),i.iGM(r=i.CRH())&&(t._thumbBarEl=r.first),i.iGM(r=i.CRH())&&(t._inputElement=r.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(i.Ikx("id",t.id),i.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),i.ekj("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[i._Bn([Jz]),i.qOj],ngContentSelectors:Zz,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(i.F$t(),i.TgZ(0,"label",0,1),i.TgZ(2,"span",2,3),i.TgZ(4,"input",4,5),i.NdJ("change",function(l){return t._onChangeEvent(l)})("click",function(l){return t._onInputClick(l)}),i.qZA(),i.TgZ(6,"span",6,7),i._UZ(8,"span",8),i.TgZ(9,"span",9),i._UZ(10,"span",10),i.qZA(),i.qZA(),i.qZA(),i.TgZ(11,"span",11,12),i.NdJ("cdkObserveContent",function(){return t._onLabelTextChange()}),i.TgZ(13,"span",13),i._uU(14,"\xa0"),i.qZA(),i.Hsn(15),i.qZA(),i.qZA()),2&e){const r=i.MAs(1),l=i.MAs(12);i.uIk("for",t.inputId),i.xp6(2),i.ekj("mat-slide-toggle-bar-no-side-margin",!l.textContent||!l.textContent.trim()),i.xp6(2),i.Q6J("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),i.uIk("name",t.name)("aria-checked",t.checked)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.xp6(5),i.Q6J("matRippleTrigger",r)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.VKq(18,Gz,t._noopAnimations?0:150))}},directives:[Gn,Nh],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),n})(),oD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({}),n})(),Iv=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[oD,ti,ct,jc],oD,ct]}),n})(),iF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,Rv,fv,Ev,ns,nD,x1,Yo,C1,_p,lf,ss,sf,Ja,Jp,Ul,aD,Pv,zo,pv,_v,m1,iv,IA,W,md,pd,ti,C1,Iv],Rv,fv,Ev,ns,nD,x1,Yo,C1,_p,lf,ss,sf,Ja,Jp,Ul,aD,Pv,zo,pv,_v,m1,iv,IA,W,md,pd,ti,qz,Iv]}),n})(),nF=(()=>{class n extends lm{format(e,t){return"input"===t?`${e.getDate().toString()}.${(e.getMonth()+1).toString()}.${e.getFullYear()}`:e.toDateString()}}return n.\u0275fac=function(){let a;return function(t){return(a||(a=i.n5z(n)))(t||n)}}(),n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac}),n})();const rF={parse:{dateInput:{month:"short",year:"numeric",day:"numeric"}},display:{dateInput:"input",monthYearLabel:{year:"numeric",month:"numeric"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let lD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({providers:[{provide:ra,useClass:nF},{provide:cu,useValue:rF}],imports:[[w.ez,x1,C1,Jp,$R,NR,Mu,Is,IA,W,lf,fA,Yo,m1,ns,md,ss,Ul,sf,ti,Kx,uS,rz,Pv,bS,uu,pd,vz,Ja,_p,Wx,iF]]}),n})();function aF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NOT_SUPPORTED"))))}function sF(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.NAMESPACE"))," "))}function oF(n,a){if(1&n&&(i.TgZ(0,"td",17),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.friendlyNameParameter)}}function lF(n,a){1&n&&(i.TgZ(0,"th",16),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.LOGIN"))," "))}function cF(n,a){if(1&n&&(i.TgZ(0,"td",18),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Oqu(e.value)}}function dF(n,a){1&n&&i._UZ(0,"th",16)}function uF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",20),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().resetPassword(l.friendlyNameParameter)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.RESET_PASSWORD"))," ")}}function hF(n,a){1&n&&i._UZ(0,"th",16)}function pF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",19),i.TgZ(1,"button",21),i.NdJ("click",function(){const l=i.CHM(e).$implicit;return i.oxw().changePassword(l)}),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("disabled",!t.logins.includes(e)),i.xp6(1),i.hij(" ",i.lcZ(3,2,i.lcZ(4,4,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.CHANGE_PASSWORD"))," ")}}function fF(n,a){1&n&&i._UZ(0,"tr",22)}function mF(n,a){1&n&&i._UZ(0,"tr",23)}let gF=(()=>{class n{constructor(e,t,r,l,d,s){this.attributesManagerService=e,this.store=t,this.dialog=r,this.route=l,this.router=d,this.otherApplicationService=s,this.logins=[],this.displayedColumns=["namespace","value","reset","change"],this.nameSpaces=[]}ngOnInit(){this.userId=this.store.getPerunPrincipal().userId,this.nameSpaces=this.store.get("password_namespace_attributes"),this.attributesManagerService.getLogins(this.userId).subscribe(e=>{const t=this.nameSpaces.map(d=>{const s=d.split(":");return s[s.length-1]});this.logins=e.filter(d=>t.includes(d.friendlyNameParameter)),this.dataSource=new Wo(e);const l=this.route.snapshot.queryParamMap.get("namespace");if(l){const d=this.logins.find(s=>s.friendlyNameParameter===l);d&&this.changePassword(d)}})}resetPassword(e){window.open(this.otherApplicationService.getUrlForOtherApplication("pwdReset",e),"_blank")}changePassword(e){this.router.navigate([],{queryParams:{namespace:e.friendlyNameParameter},queryParamsHandling:"merge"});const t=Pi();t.width="600px",t.data={login:String(e.value),namespace:e.friendlyName.split(":")[1]},this.dialog.open(gL,t).afterClosed().subscribe(()=>{this.router.navigate([],{queryParams:{namespace:null},queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(ri),i.Y36(zt),i.Y36(Yi),i.Y36(nr),i.Y36(rt),i.Y36(qC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-password-reset"]],decls:23,vars:9,consts:[[1,"page-subtitle"],[4,"ngIf"],[1,"card","mt-2","table-size-fix"],[1,"card-body"],[1,"overflow-auto"],["mat-table","","matSort","","matSortActive","value","matSortDirection","asc","matSortDisableClear","",1,"w-100",3,"dataSource"],["matColumnDef","namespace"],["mat-header-cell","",4,"matHeaderCellDef"],["class","w-25","mat-cell","",4,"matCellDef"],["matColumnDef","value"],["class","w-50","mat-cell","",4,"matCellDef"],["matColumnDef","reset"],["mat-cell","",4,"matCellDef"],["matColumnDef","change"],["mat-header-row","",4,"matHeaderRowDef"],["class","dark-hover-list-item","mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"w-25"],["mat-cell","",1,"w-50"],["mat-cell",""],["color","accent","mat-flat-button","",3,"disabled","click"],["color","accent","mat-flat-button","",1,"action-button",3,"disabled","click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,aF,4,5,"perun-web-apps-alert",1),i.TgZ(5,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"div",4),i.TgZ(8,"table",5),i.ynx(9,6),i.YNc(10,sF,4,5,"th",7),i.YNc(11,oF,2,1,"td",8),i.BQk(),i.ynx(12,9),i.YNc(13,lF,4,5,"th",7),i.YNc(14,cF,2,1,"td",10),i.BQk(),i.ynx(15,11),i.YNc(16,dF,1,0,"th",7),i.YNc(17,uF,5,6,"td",12),i.BQk(),i.ynx(18,13),i.YNc(19,hF,1,0,"th",7),i.YNc(20,pF,5,6,"td",12),i.BQk(),i.YNc(21,fF,1,0,"tr",14),i.YNc(22,mF,1,0,"tr",15),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,5,i.lcZ(3,7,"SHARED_LIB.PERUN.COMPONENTS.PASSWORD_RESET.TITLE")),"\n"),i.xp6(3),i.Q6J("ngIf",!t.logins.length),i.xp6(4),i.Q6J("dataSource",t.dataSource),i.xp6(13),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns))},directives:[w.O5,Nn,$s,fs,us,ds,hs,cs,ps,kt,Qs,Xs,Js,Ks],pipes:[lt,ni],styles:[".dark-hover-list-item[_ngcontent-%COMP%]:hover{background-color:#0000000d}"]}),n})();function PF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.INFO"))))}function RF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",12),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.IMG_TOO_LONG"))))}function OF(n,a){if(1&n&&(i.TgZ(0,"div",13),i._UZ(1,"img",14),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("src",e.newImage,i.LSH)}}function IF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",11),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.Oqu(i.lcZ(2,1,i.lcZ(3,3,"DIALOGS.ADD_AUTH_IMG.DELAY_INFO"))))}let NF=(()=>{class n{constructor(e,t,r,l){this.dialogRef=e,this.data=t,this.attributesManagerService=r,this.store=l,this.newImage=""}ngOnInit(){this.theme=this.data.theme,this.attribute=this.data.attribute,this.newImage=this.attribute.value}handleInputChange(e){var t,r,l;const d=null!==(r=null===(t=e.dataTransfer)||void 0===t?void 0:t.files[0])&&void 0!==r?r:null===(l=e.target)||void 0===l?void 0:l.files[0],o=new FileReader;d.type.match(/image-*/)?(o.onload=this._handleReaderLoaded.bind(this),this.imageType=d.type,o.readAsDataURL(d)):alert("invalid format")}_handleReaderLoaded(e){const t=e.target;let r=100;const l=()=>{d(t.result).then(s=>{r>50&&s.length>6144?(r-=10,l()):(this.newImage=s,this.imgTooLong=this.newImage.length>=6144)}).catch(s=>console.error(s))},d=s=>new Promise((o,c)=>{const u=new Image;u.src=s,u.onload=()=>{const h=document.createElement("canvas");let f=u.width,b=u.height;f>b?f>r&&(b*=r/f,f=r):b>r&&(f*=r/b,b=r),h.width=f,h.height=b;const V=h.getContext("2d");V.drawImage(u,0,0,f,b);const ee=V.canvas.toDataURL();o(ee)},u.onerror=h=>c(h)});l()}onAdd(){this.attribute.value=this.newImage,this.attributesManagerService.setUserAttribute({attribute:this.attribute,user:this.store.getPerunPrincipal().userId}).subscribe(()=>{this.dialogRef.close(!0)})}onCancel(){this.dialogRef.close(!1)}generateImg(){function c(f,b,V,ee){ee.beginPath(),ee.rect(20*f,20*b,20,20),ee.fillStyle="rgb("+V.join(",")+")",ee.fill()}this.newImage=function h(){const f=function o(){const f=document.createElement("canvas");f.width=100,f.height=100;const b=f.getContext("2d");return b.beginPath(),b.rect(0,0,100,100),b.fillStyle="#FFFFFF",b.fill(),f}(),b=f.getContext("2d"),V=function u(){const f=[];for(let b=0;b<3;b++){const V=Math.floor(256*Math.random()),ee=Math.max(120,V),he=Math.min(200,ee);f.push(he)}return f}();for(let ee=0;ee{class n{constructor(e,t,r,l,d,s,o){this.dialog=e,this.attributesManagerService=t,this.store=r,this.translate=l,this.oauthService=d,this.authService=s,this.notificatorService=o,this.imageSrc="",this.mfaUrl="",this.mfaAvailable=!1,this.mfaApiUrl="",this.loadingMfa=!1,this.loadingImg=!1,this.saveImgSuccess="",this.removeImgSuccess="",l.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(c=>this.removeDialogTitle=c),l.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(c=>this.removeDialogDescription=c),l.get("AUTHENTICATION.SAVE_IMG_SUCCESS").subscribe(c=>this.saveImgSuccess=c),l.get("AUTHENTICATION.REMOVE_IMG_SUCCESS").subscribe(c=>this.removeImgSuccess=c)}ngAfterViewInit(){this.toggle.change.subscribe(e=>{this.reAuthenticate(e.checked)})}ngOnInit(){this.loadingMfa=!0,this.translate.onLangChange.subscribe(()=>{this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_TITLE").subscribe(e=>this.removeDialogTitle=e),this.translate.get("AUTHENTICATION.DELETE_IMG_DIALOG_DESC").subscribe(e=>this.removeDialogDescription=e),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang)}),this.mfaUrl=this.store.get("mfa","url_"+this.translate.currentLang),this.mfaApiUrl=this.store.get("mfa","api_url"),fetch(this.mfaApiUrl+"mfaAvailable",{method:"GET",headers:{Authorization:"Bearer "+this.oauthService.getIdToken()}}).then(e=>e.text()).then(e=>{this.mfaAvailable="true"===e,this.mfaAvailable?this.loadMfa():this.loadingMfa=!1}).catch(e=>{console.error(e),this.loadingMfa=!1}),this.displayImageBlock=this.store.get("mfa","enable_security_image"),this.displayImageBlock&&this.loadImage()}onAddImg(){const e=Pi();e.width="500px",e.data={theme:"user-theme",attribute:this.imgAtt},this.dialog.open(NF,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.saveImgSuccess),this.loadImage())})}reAuthenticate(e){sessionStorage.setItem("enforce_mfa",e.toString()),sessionStorage.setItem("mfa_route","/profile/settings/auth"),localStorage.removeItem("refresh_token"),this.oauthService.logOut(!0),sessionStorage.setItem("auth:redirect",location.pathname),sessionStorage.setItem("auth:queryParams",location.search.substring(1)),this.authService.loadConfigData(),this.oauthService.loadDiscoveryDocumentAndLogin()}enableMfa(e){const t=this.oauthService.getIdToken(),l=`${this.mfaApiUrl}mfaEnforced`,d=`value=${String(e)}`;return fetch(l,{method:"PUT",body:d,headers:{Authorization:`Bearer ${t}`}})}onDeleteImg(){const e=Pi();e.width="600px",e.data={doNotShowValues:!0,attribute:this.imgAtt,userId:this.store.getPerunPrincipal().userId,title:this.removeDialogTitle,description:this.removeDialogDescription},this.dialog.open(zA,e).afterClosed().subscribe(r=>{r&&(this.notificatorService.showSuccess(this.removeImgSuccess),this.loadImage())})}redirectToMfa(){window.open(this.mfaUrl,"_blank")}loadImage(){this.loadingImg=!0;const e=this.store.get("mfa","security_image_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,e).subscribe(t=>{t?(this.imgAtt=t,this.imageSrc=this.imgAtt.value):this.attributesManagerService.getAttributeDefinitionByName(e).subscribe(r=>{this.imgAtt=r}),this.loadingImg=!1},t=>{console.error(t),this.loadingImg=!1})}loadMfa(){if(sessionStorage.getItem("mfa_route")){const t=sessionStorage.getItem("enforce_mfa");this.enableMfa("true"===t).then(r=>{r.ok&&"true"===t&&this.toggle.toggle(),this.loadingMfa=!1}).catch(r=>{console.error(r),this.loadingMfa=!1})}else{const t=this.store.get("mfa","enforce_mfa_attribute");this.attributesManagerService.getUserAttributeByName(this.store.getPerunPrincipal().userId,t).subscribe(r=>{r.value&&this.toggle.toggle(),this.loadingMfa=!1},r=>{console.error(r),this.loadingMfa=!1})}sessionStorage.getItem("mfa_route")&&(sessionStorage.removeItem("enforce_mfa"),sessionStorage.removeItem("mfa_route"))}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Yi),i.Y36(ri),i.Y36(zt),i.Y36(oi),i.Y36(mu.Ct),i.Y36(Pa),i.Y36(hr))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-authentication"]],viewQuery:function(e,t){if(1&e&&i.Gf(VF,5),2&e){let r;i.iGM(r=i.CRH())&&(t.toggle=r.first)}},decls:19,vars:23,consts:[[3,"hidden"],["class","mb-5",4,"ngIf"],[1,"page-subtitle"],["matTooltipPosition","right",3,"matTooltip","matTooltipDisabled"],["color","primary",3,"disabled"],["toggle",""],["mat-flat-button","","color","accent",1,"mt-3",3,"click"],["class","ml-auto mr-auto",4,"ngIf"],[1,"mb-5"],[4,"ngIf"],["color","accent","mat-flat-button","",1,"mr-2","mt-1","action-button",3,"click"],["color","warn","mat-flat-button","",3,"disabled","click"],["alt","",3,"src"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.YNc(1,FF,18,22,"div",1),i.TgZ(2,"h1",2),i._uU(3),i.ALo(4,"translate"),i.ALo(5,"customTranslate"),i.qZA(),i.TgZ(6,"span",3),i.ALo(7,"translate"),i.ALo(8,"customTranslate"),i.TgZ(9,"mat-slide-toggle",4,5),i._uU(11),i.ALo(12,"translate"),i.ALo(13,"customTranslate"),i.qZA(),i.qZA(),i._UZ(14,"br"),i.TgZ(15,"button",6),i.NdJ("click",function(){return t.redirectToMfa()}),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.qZA(),i.YNc(18,jF,1,0,"mat-spinner",7)),2&e&&(i.Q6J("hidden",t.loadingMfa||t.loadingImg),i.xp6(1),i.Q6J("ngIf",t.displayImageBlock),i.xp6(2),i.Oqu(i.lcZ(4,9,i.lcZ(5,11,"AUTHENTICATION.MFA"))),i.xp6(3),i.Q6J("matTooltip",i.lcZ(7,13,i.lcZ(8,15,"AUTHENTICATION.MFA_DISABLED")))("matTooltipDisabled",t.mfaAvailable),i.xp6(3),i.Q6J("disabled",!t.mfaAvailable),i.xp6(2),i.Oqu(i.lcZ(12,17,i.lcZ(13,19,"AUTHENTICATION.MFA_TOGGLE"))),i.xp6(5),i.hij(" ",i.lcZ(17,21,"AUTHENTICATION.MFA_INFO")," "),i.xp6(2),i.Q6J("ngIf",t.loadingMfa||t.loadingImg))},directives:[w.O5,kt,Tr,sD,En],pipes:[lt,ni],styles:[""]}),n})(),YF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[w.ez,ns,Yo,Is,lD,Mu,ss,Ul,sf,fA]]}),n})(),WF=(()=>{class n{constructor(e,t){this.auth=e,this.router=t}ngOnInit(){this.auth.isLoggedIn()&&this.router.navigate(["/home"])}startAuth(){this.auth.startAuthentication()}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Pa),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen"]],decls:11,vars:6,consts:[[1,"container","login-con"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],[1,"mb-3"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h4",3),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.TgZ(6,"button",4),i.NdJ("click",function(){return t.startAuth()}),i._uU(7),i.ALo(8,"translate"),i.TgZ(9,"mat-icon"),i._uU(10," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.hij(" ",i.lcZ(5,2,"SHARED_LIB.PERUN.LOGIN.TEXT")," "),i.xp6(3),i.hij(" ",i.lcZ(8,4,"SHARED_LIB.PERUN.LOGIN.SIGN_IN")," "))},directives:[kt,An],pipes:[lt],styles:[".login-con[_ngcontent-%COMP%]{padding:120px 0}"]}),n})();function UF(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",8),i._uU(1),i.ALo(2,"translate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.WRONG_LOGIN_OR_PASSWORD")," "))}let GF=(()=>{class n{constructor(e){this.authzService=e,this.wrongUsernameOrPassword=!1}ngOnInit(){this.usernameCtrl=new vr(null,[_n.required]),this.passwordCtrl=new vr(null,[_n.required])}startAuth(){sessionStorage.setItem("basicUsername",this.usernameCtrl.value),sessionStorage.setItem("basicPassword",this.passwordCtrl.value),this.authzService.getPerunPrincipal().subscribe(e=>{sessionStorage.setItem("baPrincipal",JSON.stringify(e)),location.reload()},()=>{this.wrongUsernameOrPassword=!0})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Gi))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-login-screen-service-access"]],decls:28,vars:23,consts:[[1,"container","login-con","vo-theme","top-padding"],[1,"row"],[1,"ml-auto","mr-auto","d-flex","flex-column","align-items-center"],["alert_type","error",4,"ngIf"],["appearance","outline"],["matInput","","required","",3,"formControl"],["matInput","","required","",3,"formControl","type"],["mat-raised-button","",1,"black",3,"disabled","click"],["alert_type","error"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.TgZ(2,"div",2),i.TgZ(3,"h2"),i._uU(4),i.ALo(5,"translate"),i.qZA(),i.YNc(6,UF,3,3,"perun-web-apps-alert",3),i.TgZ(7,"mat-form-field",4),i.TgZ(8,"mat-label"),i._uU(9),i.ALo(10,"translate"),i.qZA(),i._UZ(11,"input",5),i.TgZ(12,"mat-error"),i._uU(13),i.ALo(14,"translate"),i.qZA(),i.qZA(),i.TgZ(15,"mat-form-field",4),i.TgZ(16,"mat-label"),i._uU(17),i.ALo(18,"translate"),i.qZA(),i._UZ(19,"input",6),i.TgZ(20,"mat-error"),i._uU(21),i.ALo(22,"translate"),i.qZA(),i.qZA(),i.TgZ(23,"button",7),i.NdJ("click",function(){return t.startAuth()}),i._uU(24),i.ALo(25,"translate"),i.TgZ(26,"mat-icon"),i._uU(27," login "),i.qZA(),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&e&&(i.xp6(4),i.Oqu(i.lcZ(5,11,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.LABEL")),i.xp6(2),i.Q6J("ngIf",t.wrongUsernameOrPassword),i.xp6(3),i.Oqu(i.lcZ(10,13,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME")),i.xp6(2),i.Q6J("formControl",t.usernameCtrl),i.xp6(2),i.hij(" ",i.lcZ(14,15,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.USERNAME_ERROR")," "),i.xp6(4),i.Oqu(i.lcZ(18,17,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD")),i.xp6(2),i.Q6J("formControl",t.passwordCtrl)("type","password"),i.xp6(2),i.hij(" ",i.lcZ(22,19,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.PASSWORD_ERROR")," "),i.xp6(2),i.Q6J("disabled",t.usernameCtrl.invalid||t.passwordCtrl.invalid),i.xp6(1),i.hij(" ",i.lcZ(25,21,"SHARED_LIB.PERUN.LOGIN_SERVICE_ACCESS.SIGN_IN")," "))},directives:[w.O5,Nn,mn,rs,Ln,rn,Nr,bn,os,jl,kt,An],pipes:[lt],styles:[".top-padding[_ngcontent-%COMP%]{padding:120px 0}mat-form-field.mat-form-field[_ngcontent-%COMP%]{font-size:14px;width:250px}.black[_ngcontent-%COMP%]{background-color:#000;color:#fff}"]}),n})(),ZF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-page"]],decls:1,vars:0,template:function(e,t){1&e&&i._UZ(0,"router-outlet")},directives:[hi],styles:[""]}),n})();function $F(n,a){1&n&&i._UZ(0,"mat-spinner",4)}function QF(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function JF(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"h1",5),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"div",6),i._uU(6),i.qZA(),i.TgZ(7,"div"),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.TgZ(11,"ul"),i.YNc(12,QF,2,1,"li",7),i.qZA(),i.qZA(),i.TgZ(13,"div",0),i.TgZ(14,"button",8),i.NdJ("click",function(){return i.CHM(e),i.oxw().rejectConsent()}),i._uU(15),i.ALo(16,"translate"),i.ALo(17,"customTranslate"),i.qZA(),i.TgZ(18,"button",9),i.NdJ("click",function(){return i.CHM(e),i.oxw().grantConsent()}),i._uU(19),i.ALo(20,"translate"),i.ALo(21,"customTranslate"),i.qZA(),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.REQUEST.TITLE"))," "),i.xp6(4),i.Oqu(e.consent.consentHub.name),i.xp6(2),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"CONSENTS.REQUEST.CONSENT_TEXT_UNSIGNED")),": "),i.xp6(4),i.Q6J("ngForOf",e.consent.attributes),i.xp6(3),i.hij(" ",i.lcZ(16,14,i.lcZ(17,16,"CONSENTS.REQUEST.REJECT_CONSENT_BUTTON"))," "),i.xp6(4),i.hij(" ",i.lcZ(20,18,i.lcZ(21,20,"CONSENTS.REQUEST.GRANT_CONSENT_BUTTON"))," ")}}let XF=(()=>{class n{constructor(e,t,r,l,d,s){this.notificator=e,this.translate=t,this.consentService=r,this.route=l,this.apiRequest=d,this.router=s,this.loading=!1}ngOnInit(){this.loading=!0,this.route.params.subscribe(e=>{const t=Number(e.consentId);this.apiRequest.dontHandleErrorForNext(),this.consentService.getConsentById(t).subscribe(r=>{this.consent=r,"UNSIGNED"!==this.consent.status&&this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"}),this.loading=!1},r=>{this.loading=!1;const l=r.error;"ConsentNotExistsException"!==l.name&&this.notificator.showRPCError(l),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})})})}grantConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"GRANTED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}rejectConsent(){this.loading=!0,this.consentService.changeConsentStatus(this.consent.id,"REVOKED").subscribe(()=>{this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_REJECTED")+this.consent.consentHub.name),this.router.navigate(["/profile","consents"],{queryParamsHandling:"merge"})},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(hr),i.Y36(oi),i.Y36(Di),i.Y36(nr),i.Y36(y1),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-request"]],decls:4,vars:2,consts:[[1,"d-flex"],[1,"card","p-4","mat-elevation-z3","ml-auto","mr-auto"],["class","ml-auto mr-auto",4,"ngIf"],[4,"ngIf"],[1,"ml-auto","mr-auto"],[1,"page-title"],[1,"page-subtitle"],[4,"ngFor","ngForOf"],["mat-flat-button","","color","warn",1,"mr-2","ml-auto",3,"click"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,$F,1,0,"mat-spinner",2),i.YNc(3,JF,22,22,"div",3),i.qZA(),i.qZA()),2&e&&(i.xp6(2),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading))},directives:[w.O5,En,w.sg,kt],pipes:[lt,ni],styles:[".minimize-checkbox{font-size:.7rem;color:gray}\n"],encapsulation:2}),n})();function KF(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"priority_high"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_UNSIGNED")),""))}function ej(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",1),i._uU(2,"close"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_REVOKED")),""))}function tj(n,a){1&n&&(i.TgZ(0,"span"),i.TgZ(1,"mat-icon",2),i._uU(2,"check"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.ALo(5,"translate"),i.ALo(6,"customTranslate"),i.qZA(),i.qZA()),2&n&&(i.xp6(4),i.hij(" ",i.lcZ(5,1,i.lcZ(6,3,"CONSENTS.STATUS_GRANTED")),""))}let ij=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consent-status"]],inputs:{consentStatus:"consentStatus"},decls:3,vars:3,consts:[[4,"ngIf"],["color","warn"],["color","accent"]],template:function(e,t){1&e&&(i.YNc(0,KF,7,5,"span",0),i.YNc(1,ej,7,5,"span",0),i.YNc(2,tj,7,5,"span",0)),2&e&&(i.Q6J("ngIf","UNSIGNED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","REVOKED"===t.consentStatus),i.xp6(1),i.Q6J("ngIf","GRANTED"===t.consentStatus))},directives:[w.O5,An],pipes:[lt,ni],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}"]}),n})();function nj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"th",15),i.TgZ(1,"mat-checkbox",16),i.NdJ("change",function(r){i.CHM(e);const l=i.oxw();return r?l.masterToggle():null}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(1),i.Q6J("checked",e.selection.hasValue()&&e.isAllSelected())("indeterminate",e.selection.hasValue()&&!e.isAllSelected())}}function rj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"td",17),i.TgZ(1,"mat-checkbox",18),i.NdJ("click",function(r){return r.stopPropagation()})("change",function(r){const d=i.CHM(e).$implicit,s=i.oxw();return r?s.selection.toggle(d):null}),i.qZA(),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.xp6(1),i.Q6J("checked",t.selection.isSelected(e))}}function aj(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.STATUS"))," "))}function sj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._UZ(1,"perun-web-apps-consent-status",21),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.Q6J("consentStatus",e.status)}}function oj(n,a){1&n&&(i.TgZ(0,"th",19),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.SERVICE_NAME"))," "))}function lj(n,a){if(1&n&&(i.TgZ(0,"td",20),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.consentHub.name," ")}}function cj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANTED_TEXT"))," : "))}function dj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKED_TEXT"))," : "))}function uj(n,a){1&n&&(i.TgZ(0,"div"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.UNSIGNED_TEXT"))," : "))}function hj(n,a){if(1&n&&(i.TgZ(0,"li"),i._uU(1),i.qZA()),2&n){const e=a.$implicit;i.xp6(1),i.hij(" ",e.displayName," ")}}function pj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",29),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().rejectConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}if(2&n){const e=i.oxw().$implicit;i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"UNSIGNED"===e.status?"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REJECT_CONSENT_BUTTON":"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.REVOKE_CONSENT_BUTTON"))," ")}}function fj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(e);const r=i.oxw().$implicit;return i.oxw().grantConsent.emit(r.id)}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.GRANT_CONSENT_BUTTON"))," "))}function mj(n,a){if(1&n&&(i.TgZ(0,"td",20),i.TgZ(1,"div",22),i.TgZ(2,"div",23),i.YNc(3,cj,4,5,"div",24),i.YNc(4,dj,4,5,"div",24),i.YNc(5,uj,4,5,"div",24),i.TgZ(6,"ul"),i.YNc(7,hj,2,1,"li",25),i.qZA(),i.TgZ(8,"div",26),i.YNc(9,pj,4,5,"button",27),i.YNc(10,fj,4,5,"button",28),i.qZA(),i.qZA(),i.qZA(),i.qZA()),2&n){const e=a.$implicit,t=i.oxw();i.uIk("colspan",t.displayedColumns.length),i.xp6(1),i.Q6J("@detailExpand",e===t.expandedConsent?"expanded":"collapsed"),i.xp6(2),i.Q6J("ngIf","GRANTED"===e.status),i.xp6(1),i.Q6J("ngIf","REVOKED"===e.status),i.xp6(1),i.Q6J("ngIf","UNSIGNED"===e.status),i.xp6(2),i.Q6J("ngForOf",e.attributes),i.xp6(2),i.Q6J("ngIf","REVOKED"!==e.status),i.xp6(1),i.Q6J("ngIf","GRANTED"!==e.status)}}function gj(n,a){1&n&&i._UZ(0,"tr",31)}function _j(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"tr",32),i.NdJ("click",function(){const l=i.CHM(e).$implicit,d=i.oxw();return d.expandedConsent=d.expandedConsent===l?null:l}),i.qZA()}if(2&n){const e=a.$implicit,t=i.oxw();i.ekj("example-expanded-row",t.expandedConsent===e)}}function bj(n,a){1&n&&i._UZ(0,"tr",33)}function Aj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.UI.ALERTS.NO_FILTER_RESULTS_ALERT")),"\n"))}function yj(n,a){1&n&&(i.TgZ(0,"perun-web-apps-alert",34),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()),2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"SHARED_LIB.PERUN.COMPONENTS.CONSENTS_LIST.NO_CONSENTS")),"\n"))}const Mj=function(){return["expandedDetail"]};let wj=(()=>{class n{constructor(e){this.tableCheckbox=e,this.filterValue="",this.consents=[],this.selection=new nn(!0,[]),this.displayedColumns=["select","status","name"],this.grantConsent=new i.vpe,this.rejectConsent=new i.vpe,this.pageSizeOptions=nf}set matSort(e){this.sort=e,this.setDataSource()}static getDataForColumn(e,t){switch(t){case"name":return e.consentHub.name;case"status":return e.status;default:return""}}ngOnChanges(){this.dataSource=new Wo(this.consents),this.setDataSource()}ngAfterViewInit(){this.dataSource.paginator=this.child.paginator}exportData(e){af(rf(this.dataSource.filteredData,this.displayedColumns,n.getDataForColumn),e)}setDataSource(){this.dataSource&&(this.dataSource.filterPredicate=(e,t)=>A1(e,t,this.displayedColumns,n.getDataForColumn),this.dataSource.sortData=(e,t)=>b1(e,t,n.getDataForColumn),this.dataSource.sort=this.sort,this.dataSource.paginator=this.child.paginator,this.dataSource.filter=this.filterValue)}isAllSelected(){return this.tableCheckbox.isAllSelected(this.selection.selected.length,this.filterValue,this.child.paginator.pageSize,this.child.paginator.hasNextPage(),this.dataSource)}masterToggle(){this.tableCheckbox.masterToggle(this.isAllSelected(),this.selection,this.filterValue,this.dataSource,this.sort,this.child.paginator.pageSize,this.child.paginator.pageIndex,!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(FC))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-list"]],viewQuery:function(e,t){if(1&e&&(i.Gf(ls,7),i.Gf(fs,7)),2&e){let r;i.iGM(r=i.CRH())&&(t.child=r.first),i.iGM(r=i.CRH())&&(t.matSort=r.first)}},inputs:{filterValue:"filterValue",tableId:"tableId",consents:"consents",selection:"selection",displayedColumns:"displayedColumns"},outputs:{grantConsent:"grantConsent",rejectConsent:"rejectConsent"},features:[i.TTD],decls:19,vars:11,consts:[[1,"card",3,"hidden"],[3,"tableId","dataLength","pageSizeOptions","exportData"],["mat-table","","matSort","","matSortActive","status","matSortDirection","asc","matSortDisableClear","","multiTemplateDataRows","",1,"w-100",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","","class","align-checkbox",4,"matHeaderCellDef"],["mat-cell","","class","static-column-size align-checkbox",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","expandedDetail"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","dark-hover-list-item consent-row",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","consent-detail-row",4,"matRowDef","matRowDefColumns"],["alert_type","warn",4,"ngIf"],["mat-header-cell","",1,"align-checkbox"],["color","primary",3,"checked","indeterminate","change"],["mat-cell","",1,"static-column-size","align-checkbox"],["color","primary",3,"checked","click","change"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"consentStatus"],[1,"consent-detail"],[1,"p-3"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"d-flex"],["mat-flat-button","","class","mr-2","color","warn",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","warn",1,"mr-2",3,"click"],["mat-flat-button","","color","accent",3,"click"],["mat-header-row",""],["mat-row","",1,"dark-hover-list-item","consent-row",3,"click"],["mat-row","",1,"consent-detail-row"],["alert_type","warn"]],template:function(e,t){1&e&&(i.TgZ(0,"div",0),i.TgZ(1,"perun-web-apps-table-wrapper",1),i.NdJ("exportData",function(l){return t.exportData(l)}),i.TgZ(2,"table",2),i.ynx(3,3),i.YNc(4,nj,2,2,"th",4),i.YNc(5,rj,2,1,"td",5),i.BQk(),i.ynx(6,6),i.YNc(7,aj,4,5,"th",7),i.YNc(8,sj,2,1,"td",8),i.BQk(),i.ynx(9,9),i.YNc(10,oj,4,5,"th",7),i.YNc(11,lj,2,1,"td",8),i.BQk(),i.ynx(12,10),i.YNc(13,mj,11,8,"td",8),i.BQk(),i.YNc(14,gj,1,0,"tr",11),i.YNc(15,_j,1,2,"tr",12),i.YNc(16,bj,1,0,"tr",13),i.qZA(),i.qZA(),i.qZA(),i.YNc(17,Aj,4,5,"perun-web-apps-alert",14),i.YNc(18,yj,4,5,"perun-web-apps-alert",14)),2&e&&(i.Q6J("hidden",0===t.dataSource.filteredData.length),i.xp6(1),i.Q6J("tableId",t.tableId)("dataLength",t.dataSource.filteredData.length)("pageSizeOptions",t.pageSizeOptions),i.xp6(1),i.Q6J("dataSource",t.dataSource),i.xp6(12),i.Q6J("matHeaderRowDef",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",t.displayedColumns),i.xp6(1),i.Q6J("matRowDefColumns",i.DdM(10,Mj)),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.filteredData.length&&0!==t.dataSource.data.length),i.xp6(1),i.Q6J("ngIf",0===t.dataSource.data.length))},directives:[ls,$s,fs,us,ds,hs,ic,cs,ps,H1,ij,w.O5,w.sg,kt,Qs,Xs,Js,Ks,Nn],pipes:[lt,ni],styles:["tr.consent-detail-row[_ngcontent-%COMP%]{height:0!important}.consent-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;border-bottom-width:0!important}.consent-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex;flex-direction:column}th[_ngcontent-%COMP%], td.mat-cell[_ngcontent-%COMP%]{padding:0!important}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:1rem!important}"],data:{animation:[Ai("detailExpand",[Lt("collapsed",Le({height:"0px",minHeight:"0"})),Lt("expanded",Le({height:"*"})),Ct("expanded <=> collapsed",yt("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}}),n})();const uD=function(){return["status","name"]};function Cj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",4),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterUnsigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",6),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.UNSIGNED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.unsignedConsents)("filterValue",e.filterValueUnsigned)("tableId","TABLE_USER_CONSENTS")("displayedColumns",i.DdM(14,uD))}}function vj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"div"),i.TgZ(1,"div",7),i._uU(2),i.ALo(3,"translate"),i.ALo(4,"customTranslate"),i.qZA(),i.TgZ(5,"perun-web-apps-immediate-filter",5),i.NdJ("filter",function(r){return i.CHM(e),i.oxw().applyFilterSigned(r)}),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.TgZ(8,"perun-web-apps-consents-list",8),i.NdJ("grantConsent",function(r){return i.CHM(e),i.oxw().grantConsent(r)})("rejectConsent",function(r){return i.CHM(e),i.oxw().rejectConsent(r)}),i.qZA(),i.qZA()}if(2&n){const e=i.oxw();i.xp6(2),i.hij(" ",i.lcZ(3,6,i.lcZ(4,8,"CONSENTS.PROCESSED_CONSENTS"))," "),i.xp6(3),i.Q6J("placeholder",i.lcZ(6,10,i.lcZ(7,12,"CONSENTS.FILTER"))),i.xp6(3),i.Q6J("consents",e.signedConsents)("tableId","TABLE_USER_CONSENTS")("filterValue",e.filterValueSigned)("displayedColumns",i.DdM(14,uD))}}function Tj(n,a){1&n&&i._UZ(0,"mat-spinner",9)}let xj=(()=>{class n{constructor(e,t,r,l,d){this.router=e,this.notificator=t,this.translate=r,this.storeService=l,this.consentService=d,this.loading=!1,this.unsignedConsents=[],this.signedConsents=[],this.filterValueUnsigned="",this.filterValueSigned=""}ngOnInit(){this.loading=!0,this.consentService.getConsentsForUser(this.storeService.getPerunPrincipal().userId).subscribe(e=>{this.unsignedConsents=e.filter(t=>"UNSIGNED"===t.status),this.signedConsents=e.filter(t=>"UNSIGNED"!==t.status),this.loading=!1},()=>this.loading=!1)}grantAll(){this.loading=!0,this.notificator.showSuccess(this.translate.instant("CONSENTS.GRANT_ALL_NOTIFICATION")),this.loading=!1}rejectConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"REVOKED").subscribe(()=>{var t;const r=null!==(t=this.unsignedConsents.find(d=>d.id===e))&&void 0!==t?t:this.signedConsents.find(d=>d.id===e);this.moveConsent(r);const l=this.translate.instant("GRANTED"===r.status?"CONSENTS.CONSENT_REVOKED":"CONSENTS.CONSENT_REJECTED");r.status="REVOKED",this.notificator.showSuccess(l+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}moveConsent(e){"UNSIGNED"===e.status&&(this.signedConsents=[...this.signedConsents,e],this.unsignedConsents=this.unsignedConsents.filter(t=>t.id!==e.id))}grantConsent(e){this.loading=!0,this.consentService.changeConsentStatus(e,"GRANTED").subscribe(()=>{var t;const r=null!==(t=this.unsignedConsents.find(l=>l.id===e))&&void 0!==t?t:this.signedConsents.find(l=>l.id===e);this.moveConsent(r),r.status="GRANTED",this.notificator.showSuccess(this.translate.instant("CONSENTS.CONSENT_GRANTED")+r.consentHub.name),this.loading=!1},()=>this.loading=!1)}applyFilterUnsigned(e){this.filterValueUnsigned=e}applyFilterSigned(e){this.filterValueSigned=e}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(rt),i.Y36(hr),i.Y36(oi),i.Y36(zt),i.Y36(Di))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-consents-preview"]],decls:8,vars:8,consts:[[1,"page-title","mt-2"],[1,"user-theme"],[4,"ngIf"],["class","ml-auto mr-auto",4,"ngIf"],[1,"page-subtitle"],[3,"placeholder","filter"],[3,"consents","filterValue","tableId","displayedColumns","grantConsent","rejectConsent"],[1,"page-subtitle","mt-4"],[3,"consents","tableId","filterValue","displayedColumns","grantConsent","rejectConsent"],[1,"ml-auto","mr-auto"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i.YNc(5,Cj,9,15,"div",2),i.YNc(6,vj,9,15,"div",2),i.YNc(7,Tj,1,0,"mat-spinner",3),i.qZA()),2&e&&(i.xp6(1),i.hij(" ",i.lcZ(2,4,i.lcZ(3,6,"CONSENTS.TITLE")),"\n"),i.xp6(4),i.Q6J("ngIf",!t.loading&&0!==t.unsignedConsents.length),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(1),i.Q6J("ngIf",t.loading))},directives:[w.O5,gf,wj,En],pipes:[lt,ni],styles:[""]}),n})();function Sj(n,a){1&n&&i._UZ(0,"mat-spinner",6)}function Ej(n,a){if(1&n&&(i.TgZ(0,"div",7),i._UZ(1,"perun-web-apps-password-form",8),i.qZA()),2&n){const e=i.oxw();i.xp6(1),i.Q6J("formGroup",e.pwdForm)("namespace",e.data.namespace)("language",e.lang)}}let Dj=(()=>{class n{constructor(e,t,r,l,d,s,o){this.dialogRef=e,this.data=t,this.userManager=r,this.notificator=l,this.translate=d,this.formBuilder=s,this.apiRequestConfiguration=o,this.loading=!1,this.lang=this.translate.currentLang,this.pwdForm=this.formBuilder.group({passwordCtrl:["",_n.required,[rS(this.data.namespace,this.userManager,this.apiRequestConfiguration)]],passwordAgainCtrl:["",_n.required]},{validators:$x.passwordMatchValidator})}cancel(){this.dialogRef.close()}activate(){this.loading=!0;const e=this.pwdForm.get("passwordCtrl").value;this.userManager.reservePasswordForUser(this.data.userId,this.data.namespace,e).pipe((0,ji.w)(()=>this.userManager.validatePasswordForUser(this.data.userId,this.data.namespace))).subscribe(()=>{this.notificator.showSuccess(this.translate.instant("DIALOGS.ACTIVATE_LOCAL_ACCOUNT.SUCCESS")),this.dialogRef.close()},()=>this.loading=!1)}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ni),i.Y36(xn),i.Y36(Ti),i.Y36(hr),i.Y36(oi),i.Y36(c1),i.Y36(y1))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-activate-local-account-dialog"]],decls:15,vars:18,consts:[["mat-dialog-title",""],["class","ml-auto mr-auto",4,"ngIf"],["mat-dialog-content","","class","dialog-container user-theme",4,"ngIf"],["mat-dialog-actions",""],["mat-flat-button","",1,"ml-auto","mr-2",3,"click"],["mat-flat-button","","color","accent",3,"disabled","click"],[1,"ml-auto","mr-auto"],["mat-dialog-content","",1,"dialog-container","user-theme"],[3,"formGroup","namespace","language"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.YNc(4,Sj,1,0,"mat-spinner",1),i.YNc(5,Ej,2,3,"div",2),i.TgZ(6,"div",3),i.TgZ(7,"button",4),i.NdJ("click",function(){return t.cancel()}),i._uU(8),i.ALo(9,"translate"),i.ALo(10,"customTranslate"),i.qZA(),i.TgZ(11,"button",5),i.NdJ("click",function(){return t.activate()}),i._uU(12),i.ALo(13,"translate"),i.ALo(14,"customTranslate"),i.qZA(),i.qZA()),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,6,i.lcZ(3,8,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.TITLE"))),i.xp6(3),i.Q6J("ngIf",t.loading),i.xp6(1),i.Q6J("ngIf",!t.loading),i.xp6(3),i.hij(" ",i.lcZ(9,10,i.lcZ(10,12,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.CANCEL"))," "),i.xp6(3),i.Q6J("disabled",t.loading||t.pwdForm.invalid),i.xp6(1),i.hij(" ",i.lcZ(13,14,i.lcZ(14,16,"DIALOGS.ACTIVATE_LOCAL_ACCOUNT.ACTIVATE"))," "))},directives:[Sn,w.O5,En,tn,aS,Eu,Zs,Vi,kt],pipes:[lt,ni],styles:[""]}),n})();function Hj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).openPwdReset()}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.CHANGE_PWD"))," "))}function Lj(n,a){if(1&n){const e=i.EpF();i.TgZ(0,"button",4),i.NdJ("click",function(){return i.CHM(e),i.oxw(2).activateAccount()}),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA()}2&n&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,i.lcZ(3,3,"LOCAL_ACCOUNT.ACTIVATE"))," "))}function kj(n,a){if(1&n&&(i.TgZ(0,"div"),i.YNc(1,Hj,4,5,"button",3),i.YNc(2,Lj,4,5,"button",3),i.qZA()),2&n){const e=a.ngIf;i.xp6(1),i.Q6J("ngIf",e.exists),i.xp6(1),i.Q6J("ngIf",!e.exists)}}const Pj=function(n){return{exists:n}},Rj=[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"login",component:WF},{path:"service-access",component:GF},{path:"profile",component:WV,data:{breadcrumb:"MENU_ITEMS.PROFILE"},children:[{path:"",component:vO,data:{breadcrumb:"MENU_ITEMS.PROFILE"}},{path:"identities",component:iI,data:{breadcrumb:"MENU_ITEMS.IDENTITIES"}},{path:"groups",component:VI,data:{breadcrumb:"MENU_ITEMS.GROUPS"}},{path:"services",component:ZB,data:{breadcrumb:"MENU_ITEMS.SERVICES"}},{path:"organizations",component:s3,data:{breadcrumb:"MENU_ITEMS.VOS"}},{path:"privacy",component:YV,data:{breadcrumb:"MENU_ITEMS.PRIVACY"}},{path:"consents",component:ZF,data:{breadcrumb:"MENU_ITEMS.CONSENTS"},children:[{path:"",component:xj,data:{breadcrumb:"MENU_ITEMS.CONSENTS"}},{path:":consentId",component:XF,data:{breadcrumb:"MENU_ITEMS.CONSENT_REQUEST"}}]},{path:"settings",component:o3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"},children:[{path:"",component:S3,data:{breadcrumb:"MENU_ITEMS.SETTINGS"}},{path:"altPasswords",component:T3,data:{breadcrumb:"SETTINGS.ALTERNATIVE_PASSWORDS"}},{path:"auth",component:qF,data:{breadcrumb:"SETTINGS.AUTHENTICATION"}},{path:"dataQuotas",component:VN,data:{breadcrumb:"SETTINGS.DATA_QUOTAS"}},{path:"localAccount",component:(()=>{class n{constructor(e,t,r,l,d){this.userService=e,this.store=t,this.appUrlService=r,this.dialog=l,this.router=d,this.userId=this.store.getPerunPrincipal().userId,this.namespace=this.store.get("local_account_namespace"),this.loginExists$=this.userService.loginExist(this.userId,this.namespace)}openPwdReset(){let e=this.appUrlService.getUrlForOtherApplication("pwdReset",this.namespace);e+="&reset=true",window.open(e,"_blank")}activateAccount(){const e=Pi();e.width="550px",e.data={userId:this.userId,namespace:this.namespace},this.dialog.open(Dj,e).afterClosed().subscribe(()=>{this.router.navigate(["/profile","settings","localAccount"],{queryParamsHandling:"merge"})})}}return n.\u0275fac=function(e){return new(e||n)(i.Y36(Ti),i.Y36(zt),i.Y36(qC),i.Y36(Yi),i.Y36(rt))},n.\u0275cmp=i.Xpm({type:n,selectors:[["perun-web-apps-settings-local-account"]],decls:10,vars:15,consts:[[1,"page-title"],[1,"page-subtitle"],[4,"ngIf"],["mat-flat-button","","color","accent",3,"click",4,"ngIf"],["mat-flat-button","","color","accent",3,"click"]],template:function(e,t){1&e&&(i.TgZ(0,"h1",0),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"customTranslate"),i.qZA(),i.TgZ(4,"div",1),i._uU(5),i.ALo(6,"translate"),i.ALo(7,"customTranslate"),i.qZA(),i.YNc(8,kj,3,2,"div",2),i.ALo(9,"async")),2&e&&(i.xp6(1),i.Oqu(i.lcZ(2,3,i.lcZ(3,5,"LOCAL_ACCOUNT.TITLE"))),i.xp6(4),i.hij(" ",i.lcZ(6,7,i.lcZ(7,9,"LOCAL_ACCOUNT.DESC")),"\n"),i.xp6(3),i.Q6J("ngIf",i.VKq(13,Pj,i.lcZ(9,11,t.loginExists$))))},directives:[w.O5,kt],pipes:[lt,ni,w.Ov],styles:[""]}),n})(),data:{breadcrumb:"SETTINGS.LOCAL_ACCOUNT"}},{path:"mailingLists",component:UN,data:{breadcrumb:"SETTINGS.MAILING_LISTS"}},{path:"prefShells",component:rV,data:{breadcrumb:"SETTINGS.PREFERRED_SHELLS"}},{path:"prefGroupNames",component:cV,data:{breadcrumb:"SETTINGS.PREFERRED_UNIX_GROUP_NAMES"}},{path:"sambaPassword",component:pV,data:{breadcrumb:"SETTINGS.SAMBA_PASSWORD"}},{path:"sshKeys",component:bV,data:{breadcrumb:"SETTINGS.SSH_KEYS"}},{path:"passwordReset",component:gF,data:{breadcrumb:"SETTINGS.PASSWORD_RESET"}}]}]}];let Oj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[Is.forRoot(Rj,{preloadingStrategy:Rt,scrollPositionRestoration:"enabled",relativeLinkResolution:"legacy"})]]}),n})();class Ij{constructor(a,e="/assets/i18n/",t=".json"){this.http=a,this.prefix=e,this.suffix=t}getTranslation(a){return this.http.get(`${this.prefix}${a}${this.suffix}`)}}let Bj=(()=>{class n{constructor(e,t,r,l,d){this.http=e,this.storeService=t,this.authzSevice=r,this.titleService=l,this.utilsService=d}initializeColors(e,t){return new Promise(r=>{t.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d)}),e.forEach(l=>{const d=this.storeService.get("theme",l.configValue);document.documentElement.style.setProperty(l.cssVariable,d),this.setEntityTheme(l.entity,d)}),r()})}setEntityTheme(e,t){const r=function Nj(n){return[oa(tinycolor(n).lighten(52),"50"),oa(tinycolor(n).lighten(37),"100"),oa(tinycolor(n).lighten(26),"200"),oa(tinycolor(n).lighten(12),"300"),oa(tinycolor(n).lighten(6),"400"),oa(tinycolor(n),"500"),oa(tinycolor(n).darken(6),"600"),oa(tinycolor(n).darken(12),"700"),oa(tinycolor(n).darken(18),"800"),oa(tinycolor(n).darken(24),"900"),oa(tinycolor(n).lighten(50).saturate(30),"A100"),oa(tinycolor(n).lighten(30).saturate(30),"A200"),oa(tinycolor(n).lighten(10).saturate(15),"A400"),oa(tinycolor(n).lighten(5).saturate(5),"A700")]}(t);for(const l of r){const o=`--${e}-theme-primary-contrast-${l.name}`,c=l.darkContrast?"30,30,30":"255,255,255";document.documentElement.style.setProperty(`--${e}-theme-primary-${l.name}`,`${l.red},${l.green},${l.blue}`),document.documentElement.style.setProperty(o,c)}}loadAppDefaultConfig(){return new Promise(e=>{this.http.get("/assets/config/defaultConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{this.storeService.setDefaultConfig(t),e()})})}loadAppInstanceConfig(){return new Promise(e=>{this.http.get("/assets/config/instanceConfig.json",{headers:this.getNoCacheHeaders()}).subscribe(t=>{var r;this.storeService.setInstanceConfig(t);const l=document.location.hostname;(null===(r=null==t?void 0:t.brandings)||void 0===r?void 0:r[l])&&this.storeService.setBanding(l),e()},()=>{e()})})}getNoCacheHeaders(){return new M.WM({CacheControl:"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})}setInstanceFavicon(){return new Promise(e=>{const t=document.querySelector("link[rel*='icon']")||document.createElement("link");t.type="image/x-icon",t.rel="shortcut icon",t.href=this.storeService.get("instance_favicon")?"./assets/config/instanceFavicon.ico":"./assets/img/perun.ico",document.getElementsByTagName("head")[0].appendChild(t),e()})}setApiUrl(){return new Promise(e=>{let t=this.storeService.get("api_url");("/service-access"===location.pathname||sessionStorage.getItem("baPrincipal"))&&(t=t.replace("oauth","ba")),this.authzSevice.configuration.basePath=t,this.titleService.setTitle(this.storeService.get("document_title","en")),e()})}loadAppsConfig(){return new Promise((e,t)=>{this.utilsService.getAppsConfig().subscribe(r=>{this.storeService.setAppsConfig(r),e()},r=>t(r))})}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(M.eN),i.LFG(zt),i.LFG(Gi),i.LFG(it),i.LFG(Ht))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function oa(n,a){const e=tinycolor(n),t=e.toRgb();return{name:a,hex:e.toHexString(),darkContrast:e.isLight(),red:t.r,green:t.g,blue:t.b}}let Vj=(()=>{class n{constructor(e,t,r){this.initAuthService=e,this.appConfigService=t,this.location=r,this.entityColorConfigs=[{entity:"user",configValue:"user_color",cssVariable:"--user-color"}],this.colorConfigs=[{configValue:"sidemenu_bg_color",cssVariable:"--side-bg"},{configValue:"sidemenu_hover_color",cssVariable:"--side-hover"},{configValue:"sidemenu-link-active",cssVariable:"--side-active"},{configValue:"sidemenu_active_text_color",cssVariable:"--side-text-active"}]}initialize(){return this.appConfigService.loadAppDefaultConfig().then(()=>this.appConfigService.loadAppInstanceConfig()).then(()=>this.appConfigService.setApiUrl()).then(()=>this.appConfigService.initializeColors(this.entityColorConfigs,this.colorConfigs)).then(()=>this.appConfigService.setInstanceFavicon()).then(()=>this.initAuthService.verifyAuth()).catch(e=>{throw console.error(e),this.location.go("/"),location.reload(),e}).then(e=>e?this.initAuthService.loadPrincipal().then(()=>this.appConfigService.loadAppsConfig()):this.initAuthService.handleAuthStart())}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(zC),i.LFG(Bj),i.LFG(w.Ye))},n.\u0275prov=i.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),AD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[rv]]}),n})(),lq=(()=>{class n{constructor(e,t){(0,w.PM)(t)&&!e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,t=[]){return{ngModule:n,providers:e.serverLoaded?[{provide:eo,useValue:Object.assign(Object.assign({},av),e)},{provide:sv,useValue:t,multi:!0},{provide:hf,useValue:!0}]:[{provide:eo,useValue:Object.assign(Object.assign({},av),e)},{provide:sv,useValue:t,multi:!0}]}}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(hf),i.LFG(i.Lbi))},n.\u0275mod=i.oAB({type:n}),n.\u0275inj=i.cJS({imports:[[XE,FS,AD],XE,FS,AD]}),n})();const cq=new i.OlP("perun-api-service"),dq={provide:M.TP,useExisting:(0,i.Gpc)(()=>Jx),multi:!0};function uq(n){return new Ij(n,"./assets/i18n/",".json")}function hq(n){const a={basePath:n.get("api_url")};return new Xe(a)}const pq=n=>()=>n.initialize();let fq=(()=>{class n{constructor(e,t){this.customIconService=e,this.translate=t,this.translate.setDefaultLang("en"),this.translate.use("en"),this.customIconService.registerPerunRefreshIcon()}}return n.\u0275fac=function(e){return new(e||n)(i.LFG(Qx),i.LFG(oi))},n.\u0275mod=i.oAB({type:n,bootstrap:[eR]}),n.\u0275inj=i.cJS({providers:[Qx,{provide:i.ip1,useFactory:pq,multi:!0,deps:[Vj]},{provide:Xe,useFactory:hq,deps:[zt]},hA,Jx,dq,{provide:cq,useClass:D2},it,{provide:mu.Hy,useFactory:()=>localStorage}],imports:[[ue,V_,M.JF,Mu.forRoot({loader:{provide:bu,useFactory:uq,deps:[M.eN]}}),Oj,Yo,pv,_v,Is,ns,lq,iv,lD,fA,Ev,ss,pd,_p,C1,sf,Ul,x1,W,lf,IA,Rv,uS,Kx,gI,ti,md,Iv,bS,Jp,YF,Wx,m1,mu.zr.forRoot(),Y2]]}),n})();(0,i.G48)(),Fr().bootstrapModule(fq).catch(n=>console.error(n))},1302:function(Y,U,x){var w;!function(i,E){var T={};!function(i){"use strict";i.__esModule=!0,i.digestLength=32,i.blockSize=64;var E=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function T(ie,ce,ne,de,me){for(var Ne,ze,Qe,Tt,Ot,Je,Ui,Et,Mt,fe,Ae,Ce,Me;me>=64;){for(Ne=ce[0],ze=ce[1],Qe=ce[2],Tt=ce[3],Ot=ce[4],Je=ce[5],Ui=ce[6],Et=ce[7],fe=0;fe<16;fe++)ie[fe]=(255&ne[Ae=de+4*fe])<<24|(255&ne[Ae+1])<<16|(255&ne[Ae+2])<<8|255&ne[Ae+3];for(fe=16;fe<64;fe++)ie[fe]=((Ce=((Mt=ie[fe-2])>>>17|Mt<<15)^(Mt>>>19|Mt<<13)^Mt>>>10)+ie[fe-7]|0)+((Me=((Mt=ie[fe-15])>>>7|Mt<<25)^(Mt>>>18|Mt<<14)^Mt>>>3)+ie[fe-16]|0);for(fe=0;fe<64;fe++)Ce=(((Ot>>>6|Ot<<26)^(Ot>>>11|Ot<<21)^(Ot>>>25|Ot<<7))+(Ot&Je^~Ot&Ui)|0)+(Et+(E[fe]+ie[fe]|0)|0)|0,Me=((Ne>>>2|Ne<<30)^(Ne>>>13|Ne<<19)^(Ne>>>22|Ne<<10))+(Ne&ze^Ne&Qe^ze&Qe)|0,Et=Ui,Ui=Je,Je=Ot,Ot=Tt+Ce|0,Tt=Qe,Qe=ze,ze=Ne,Ne=Ce+Me|0;ce[0]+=Ne,ce[1]+=ze,ce[2]+=Qe,ce[3]+=Tt,ce[4]+=Ot,ce[5]+=Je,ce[6]+=Ui,ce[7]+=Et,de+=64,me-=64}return de}var S=function(){function ie(){this.digestLength=i.digestLength,this.blockSize=i.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return ie.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},ie.prototype.clean=function(){for(var ce=0;ce0){for(;this.bufferLength<64&&ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;64===this.bufferLength&&(T(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(ne>=64&&(de=T(this.temp,this.state,ce,de,ne),ne%=64);ne>0;)this.buffer[this.bufferLength++]=ce[de++],ne--;return this},ie.prototype.finish=function(ce){if(!this.finished){var ne=this.bytesHashed,de=this.bufferLength,me=ne/536870912|0,Ne=ne<<3,ze=ne%64<56?64:128;this.buffer[de]=128;for(var Qe=de+1;Qe>>24&255,this.buffer[ze-7]=me>>>16&255,this.buffer[ze-6]=me>>>8&255,this.buffer[ze-5]=me>>>0&255,this.buffer[ze-4]=Ne>>>24&255,this.buffer[ze-3]=Ne>>>16&255,this.buffer[ze-2]=Ne>>>8&255,this.buffer[ze-1]=Ne>>>0&255,T(this.temp,this.state,this.buffer,0,ze),this.finished=!0}for(Qe=0;Qe<8;Qe++)ce[4*Qe+0]=this.state[Qe]>>>24&255,ce[4*Qe+1]=this.state[Qe]>>>16&255,ce[4*Qe+2]=this.state[Qe]>>>8&255,ce[4*Qe+3]=this.state[Qe]>>>0&255;return this},ie.prototype.digest=function(){var ce=new Uint8Array(this.digestLength);return this.finish(ce),ce},ie.prototype._saveState=function(ce){for(var ne=0;nethis.blockSize)(new S).update(ce).finish(ne).clean();else for(var de=0;de1&&ce.update(ie),ne&&ce.update(ne),ce.update(de),ce.finish(ie),de[0]++}i.HMAC=L,i.hash=R,i.default=R,i.hmac=N;var q=new Uint8Array(i.digestLength);i.hkdf=function $(ie,ce,ne,de){void 0===ce&&(ce=q),void 0===de&&(de=32);for(var me=new Uint8Array([1]),Ne=N(ce,ie),ze=new L(Ne),Qe=new Uint8Array(ze.digestLength),Tt=Qe.length,Ot=new Uint8Array(de),Je=0;Je>>24&255,ze[1]=Ui>>>16&255,ze[2]=Ui>>>8&255,ze[3]=Ui>>>0&255,me.reset(),me.update(ce),me.update(ze),me.finish(Tt);for(var Et=0;Et=$.status}function L(q){try{q.dispatchEvent(new MouseEvent("click"))}catch(X){var $=document.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),q.dispatchEvent($)}}var R="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,N=R.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),j=R.saveAs||("object"!=typeof window||window!==R?function(){}:"download"in HTMLAnchorElement.prototype&&!N?function(q,$,X){var ie=R.URL||R.webkitURL,ce=document.createElement("a");ce.download=$=$||q.name||"download",ce.rel="noopener","string"==typeof q?(ce.href=q,ce.origin===location.origin?L(ce):S(ce.href)?T(q,$,X):L(ce,ce.target="_blank")):(ce.href=ie.createObjectURL(q),setTimeout(function(){ie.revokeObjectURL(ce.href)},4e4),setTimeout(function(){L(ce)},0))}:"msSaveOrOpenBlob"in navigator?function(q,$,X){if($=$||q.name||"download","string"!=typeof q)navigator.msSaveOrOpenBlob(function E(q,$){return void 0===$?$={autoBom:!1}:"object"!=typeof $&&(console.warn("Deprecated: Expected third argument to be a object"),$={autoBom:!$}),$.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(q.type)?new Blob(["\ufeff",q],{type:q.type}):q}(q,X),$);else if(S(q))T(q,$,X);else{var ie=document.createElement("a");ie.href=q,ie.target="_blank",setTimeout(function(){L(ie)})}}:function(q,$,X,ie){if((ie=ie||open("","_blank"))&&(ie.document.title=ie.document.body.innerText="downloading..."),"string"==typeof q)return T(q,$,X);var ce="application/octet-stream"===q.type,ne=/constructor/i.test(R.HTMLElement)||R.safari,de=/CriOS\/[\d]+/.test(navigator.userAgent);if((de||ce&&ne||N)&&"undefined"!=typeof FileReader){var me=new FileReader;me.onloadend=function(){var Qe=me.result;Qe=de?Qe:Qe.replace(/^data:[^;]*;/,"data:attachment/file;"),ie?ie.location.href=Qe:location=Qe,ie=null},me.readAsDataURL(q)}else{var Ne=R.URL||R.webkitURL,ze=Ne.createObjectURL(q);ie?ie.location=ze:location.href=ze,ie=null,setTimeout(function(){Ne.revokeObjectURL(ze)},4e4)}});R.saveAs=j.saveAs=j,Y.exports=j}.apply(U,[]))&&(Y.exports=i)},1158:(Y,U,x)=>{(Y.exports=x(7867)).tz.load(x(1128))},7867:function(Y,U,x){var w,i,E;!function(T,S){"use strict";Y.exports?Y.exports=S(x(5439)):(i=[x(5439)],void 0!==(E="function"==typeof(w=S)?w.apply(U,i):w)&&(Y.exports=E))}(0,function(T){"use strict";void 0===T.version&&T.default&&(T=T.default);var $,L={},R={},N={},j={},q={};(!T||"string"!=typeof T.version)&&pi("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var X=T.version.split("."),ie=+X[0],ce=+X[1];function ne(ue){return ue>96?ue-87:ue>64?ue-29:ue-48}function de(ue){var ke=0,_e=ue.split("."),We=_e[0],Ue=_e[1]||"",it=1,Te=0,ae=1;for(45===ue.charCodeAt(0)&&(ke=1,ae=-1);ke= 2.6.0. You are using Moment.js "+T.version+". See momentjs.com"),Tt.prototype={_set:function(ue){this.name=ue.name,this.abbrs=ue.abbrs,this.untils=ue.untils,this.offsets=ue.offsets,this.population=ue.population},_index:function(ue){var We,ke=+ue,_e=this.untils;for(We=0;We<_e.length;We++)if(ke<_e[We])return We},countries:function(){var ue=this.name;return Object.keys(N).filter(function(ke){return-1!==N[ke].zones.indexOf(ue)})},parse:function(ue){var it,Jt,Te,ae,ke=+ue,_e=this.offsets,We=this.untils,Ue=We.length-1;for(ae=0;aeTe&&Ut.moveInvalidForward&&(it=Te),ke3){var ke=j[ge(ue)];if(ke)return ke;pi("Moment Timezone found "+ue+" from the Intl api, but did not have that data loaded.")}}catch(oe){}var Jt,Te,ae,_e=function Mt(){var We,Ue,it,ue=(new Date).getFullYear()-2,ke=new Je(new Date(ue,0,1)),_e=[ke];for(it=1;it<48;it++)(Ue=new Je(new Date(ue,it,1))).offset!==ke.offset&&(We=Et(ke,Ue),_e.push(We),_e.push(new Je(new Date(We.at+6e4)))),ke=Ue;for(it=0;it<4;it++)_e.push(new Je(new Date(ue+it,0,1))),_e.push(new Je(new Date(ue+it,6,1)));return _e}(),We=_e.length,Ue=function Ce(ue){var Ue,it,Jt,ke=ue.length,_e={},We=[];for(Ue=0;Ue0?it[0].zone.name:void 0}()),$},Ut.names=function Ci(){var ue,ke=[];for(ue in j)j.hasOwnProperty(ue)&&(L[ue]||L[R[ue]])&&j[ue]&&ke.push(j[ue]);return ke.sort()},Ut.Zone=Tt,Ut.unpack=Qe,Ut.unpackBase60=de,Ut.needsOffset=on,Ut.moveInvalidForward=!0,Ut.moveAmbiguousForward=!1,Ut.countries=function st(){return Object.keys(N)},Ut.zonesForCountry=function Ke(ue,ke){if(!(ue=function Mi(ue){return ue=ue.toUpperCase(),N[ue]||null}(ue)))return null;var _e=ue.zones.sort();return ke?_e.map(function(We){return{name:We,offset:Pt(We).utcOffset(new Date)}}):_e};var ln=T.fn;function la(ue){return function(){return this._z?this._z.abbr(this):ue.call(this)}}function ca(ue){return function(){return this._z=null,ue.apply(this,arguments)}}T.tz=Ut,T.defaultZone=null,T.updateOffset=function(ue,ke){var We,_e=T.defaultZone;if(void 0===ue._z&&(_e&&on(ue)&&!ue._isUTC&&(ue._d=T.utc(ue._a)._d,ue.utc().add(_e.parse(ue),"minutes")),ue._z=_e),ue._z)if(We=ue._z.utcOffset(ue),Math.abs(We)<16&&(We/=60),void 0!==ue.utcOffset){var Ue=ue._z;ue.utcOffset(-We,ke),ue._z=Ue}else ue.zone(We,ke)},ln.tz=function(ue,ke){if(ue){if("string"!=typeof ue)throw new Error("Time zone name must be a string, got "+ue+" ["+typeof ue+"]");return this._z=Pt(ue),this._z?T.updateOffset(this,ke):pi("Moment Timezone has no data for "+ue+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},ln.zoneName=la(ln.zoneName),ln.zoneAbbr=la(ln.zoneAbbr),ln.utc=ca(ln.utc),ln.local=ca(ln.local),ln.utcOffset=function Fr(ue){return function(){return arguments.length>0&&(this._z=null),ue.apply(this,arguments)}}(ln.utcOffset),T.tz.setDefault=function(ue){return(ie<2||2===ie&&ce<9)&&pi("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+T.version+"."),T.defaultZone=ue?Pt(ue):null,T};var Pn=T.momentProperties;return"[object Array]"===Object.prototype.toString.call(Pn)?(Pn.push("_z"),Pn.push("_a")):Pn&&(Pn._z=null),T})},7088:function(Y,U,x){!function(w){"use strict";w.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(E){return/^nm$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(E){return E+(1===E||8===E||E>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},2502:function(Y,U,x){!function(w){"use strict";var i=function(R){return 0===R?0:1===R?1:2===R?2:R%100>=3&&R%100<=10?3:R%100>=11?4:5},E={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},T=function(R){return function(N,j,q,$){var X=i(N),ie=E[R][i(N)];return 2===X&&(ie=ie[j?0:1]),ie.replace(/%d/i,N)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(R){return"\u0645"===R},meridiem:function(R,N,j){return R<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:T("s"),ss:T("s"),m:T("m"),mm:T("m"),h:T("h"),hh:T("h"),d:T("d"),dd:T("d"),M:T("M"),MM:T("M"),y:T("y"),yy:T("y")},postformat:function(R){return R.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(x(5439))},128:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(x(5439))},4519:function(Y,U,x){!function(w){"use strict";var i={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},E=function(N){return 0===N?0:1===N?1:2===N?2:N%100>=3&&N%100<=10?3:N%100>=11?4:5},T={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(N){return function(j,q,$,X){var ie=E(j),ce=T[N][E(j)];return 2===ie&&(ce=ce[q?0:1]),ce.replace(/%d/i,j)}},L=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar-ly",{months:L,monthsShort:L,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(N){return"\u0645"===N},meridiem:function(N,j,q){return N<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(N){return N.replace(/\u060c/g,",")},postformat:function(N){return N.replace(/\d/g,function(j){return i[j]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},5443:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7642:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};w.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(x(5439))},8592:function(Y,U,x){!function(w){"use strict";w.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(x(5439))},7038:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=function(j){return 0===j?0:1===j?1:2===j?2:j%100>=3&&j%100<=10?3:j%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},L=function(j){return function(q,$,X,ie){var ce=T(q),ne=S[j][T(q)];return 2===ce&&(ne=ne[$?0:1]),ne.replace(/%d/i,q)}},R=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];w.defineLocale("ar",{months:R,monthsShort:R,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(j){return"\u0645"===j},meridiem:function(j,q,$){return j<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:L("s"),ss:L("s"),m:L("m"),mm:L("m"),h:L("h"),hh:L("h"),d:L("d"),dd:L("d"),M:L("M"),MM:L("M"),y:L("y"),yy:L("y")},preparse:function(j){return j.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return E[q]}).replace(/\u060c/g,",")},postformat:function(j){return j.replace(/\d/g,function(q){return i[q]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},1213:function(Y,U,x){!function(w){"use strict";var i={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};w.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(T){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(T)},meridiem:function(T,S,L){return T<4?"gec\u0259":T<12?"s\u0259h\u0259r":T<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(T){if(0===T)return T+"-\u0131nc\u0131";var S=T%10;return T+(i[S]||i[T%100-S]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9191:function(Y,U,x){!function(w){"use strict";function E(S,L,R){return"m"===R?L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===R?L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function i(S,L){var R=S.split("_");return L%10==1&&L%100!=11?R[0]:L%10>=2&&L%10<=4&&(L%100<10||L%100>=20)?R[1]:R[2]}({ss:L?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:L?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:L?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[R],+S)}w.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:E,mm:E,h:E,hh:E,d:"\u0434\u0437\u0435\u043d\u044c",dd:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,L,R){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,L){switch(L){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(x(5439))},322:function(Y,U,x){!function(w){"use strict";w.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},8042:function(Y,U,x){!function(w){"use strict";w.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(x(5439))},5903:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L?S<4?S:S+12:"\u09ad\u09cb\u09b0"===L||"\u09b8\u0995\u09be\u09b2"===L?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===L?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===L||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9620:function(Y,U,x){!function(w){"use strict";var i={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},E={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};w.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===L&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===L&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(x(5439))},9645:function(Y,U,x){!function(w){"use strict";var i={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},E={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};w.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===L&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===L&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===L?S+12:S},meridiem:function(S,L,R){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(x(5439))},5020:function(Y,U,x){!function(w){"use strict";function i(ne,de,me){return ne+" "+function S(ne,de){return 2===de?function L(ne){var de={m:"v",b:"v",d:"z"};return void 0===de[ne.charAt(0)]?ne:de[ne.charAt(0)]+ne.substring(1)}(ne):ne}({mm:"munutenn",MM:"miz",dd:"devezh"}[me],ne)}function T(ne){return ne>9?T(ne%10):ne}var R=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],N=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,ie=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];w.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:ie,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:ie,monthsRegex:N,monthsShortRegex:N,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:function E(ne){switch(T(ne)){case 1:case 3:case 4:case 5:case 9:return ne+" bloaz";default:return ne+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ne){return ne+(1===ne?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ne){return"g.m."===ne},meridiem:function(ne,de,me){return ne<12?"a.m.":"g.m."}})}(x(5439))},4792:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7980:function(Y,U,x){!function(w){"use strict";w.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7322:function(Y,U,x){!function(w){"use strict";var i={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},E="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),T=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function L(j){return j>1&&j<5&&1!=~~(j/10)}function R(j,q,$,X){var ie=j+" ";switch($){case"s":return q||X?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return q||X?ie+(L(j)?"sekundy":"sekund"):ie+"sekundami";case"m":return q?"minuta":X?"minutu":"minutou";case"mm":return q||X?ie+(L(j)?"minuty":"minut"):ie+"minutami";case"h":return q?"hodina":X?"hodinu":"hodinou";case"hh":return q||X?ie+(L(j)?"hodiny":"hodin"):ie+"hodinami";case"d":return q||X?"den":"dnem";case"dd":return q||X?ie+(L(j)?"dny":"dn\xed"):ie+"dny";case"M":return q||X?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return q||X?ie+(L(j)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):ie+"m\u011bs\xedci";case"y":return q||X?"rok":"rokem";case"yy":return q||X?ie+(L(j)?"roky":"let"):ie+"lety"}}w.defineLocale("cs",{months:i,monthsShort:E,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},365:function(Y,U,x){!function(w){"use strict";w.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(E){return E+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(E)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(E)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(x(5439))},2092:function(Y,U,x){!function(w){"use strict";w.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(E){var S="";return E>20?S=40===E||50===E||60===E||80===E||100===E?"fed":"ain":E>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][E]),E+S},week:{dow:1,doy:4}})}(x(5439))},7387:function(Y,U,x){!function(w){"use strict";w.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9459:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3694:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},4307:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[T+" Tage",T+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[T+" Monate",T+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[T+" Jahre",T+" Jahren"]};return S?N[L][0]:N[L][1]}w.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:i,mm:"%d Minuten",h:i,hh:"%d Stunden",d:i,dd:i,w:i,ww:"%d Wochen",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9659:function(Y,U,x){!function(w){"use strict";var i=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],E=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];w.defineLocale("dv",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,L,R){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(x(5439))},3460:function(Y,U,x){!function(w){"use strict";w.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(T,S){return T?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[T.month()]:this._monthsNominativeEl[T.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(T,S,L){return T>11?L?"\u03bc\u03bc":"\u039c\u039c":L?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(T){return"\u03bc"===(T+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(T,S){var L=this._calendarEl[T],R=S&&S.hours();return function i(T){return"undefined"!=typeof Function&&T instanceof Function||"[object Function]"===Object.prototype.toString.call(T)}(L)&&(L=L.apply(S)),L.replace("{}",R%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(x(5439))},4369:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:4}})}(x(5439))},530:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9998:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3391:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},5414:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")}})}(x(5439))},9615:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:0,doy:6}})}(x(5439))},1248:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},3767:function(Y,U,x){!function(w){"use strict";w.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},4530:function(Y,U,x){!function(w){"use strict";w.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(E){return"p"===E.charAt(0).toLowerCase()},meridiem:function(E,T,S){return E>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(x(5439))},8944:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},9116:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},3609:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(x(5439))},6866:function(Y,U,x){!function(w){"use strict";var i="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),E="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),T=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;w.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(x(5439))},6725:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[T+"sekundi",T+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[T+" minuti",T+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[T+" tunni",T+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[T+" kuu",T+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[T+" aasta",T+" aastat"]};return S?N[L][2]?N[L][2]:N[L][1]:R?N[L][0]:N[L][1]}w.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:"%d p\xe4eva",M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},7931:function(Y,U,x){!function(w){"use strict";w.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6417:function(Y,U,x){!function(w){"use strict";var i={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},E={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};w.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,L,R){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(L){return E[L]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(x(5439))},944:function(Y,U,x){!function(w){"use strict";var i="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),E=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",i[7],i[8],i[9]];function T(R,N,j,q){var $="";switch(j){case"s":return q?"muutaman sekunnin":"muutama sekunti";case"ss":$=q?"sekunnin":"sekuntia";break;case"m":return q?"minuutin":"minuutti";case"mm":$=q?"minuutin":"minuuttia";break;case"h":return q?"tunnin":"tunti";case"hh":$=q?"tunnin":"tuntia";break;case"d":return q?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":$=q?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return q?"kuukauden":"kuukausi";case"MM":$=q?"kuukauden":"kuukautta";break;case"y":return q?"vuoden":"vuosi";case"yy":$=q?"vuoden":"vuotta"}return function S(R,N){return R<10?N?E[R]:i[R]:R}(R,q)+" "+$}w.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1766:function(Y,U,x){!function(w){"use strict";w.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5867:function(Y,U,x){!function(w){"use strict";w.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},6848:function(Y,U,x){!function(w){"use strict";w.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}}})}(x(5439))},7773:function(Y,U,x){!function(w){"use strict";w.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(E,T){switch(T){default:case"M":case"Q":case"D":case"DDD":case"d":return E+(1===E?"er":"e");case"w":case"W":return E+(1===E?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},1636:function(Y,U,x){!function(w){"use strict";var T=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];w.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:T,monthsShortRegex:T,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(R,N){switch(N){case"D":return R+(1===R?"er":"");default:case"M":case"Q":case"DDD":case"d":return R+(1===R?"er":"e");case"w":case"W":return R+(1===R?"re":"e")}},week:{dow:1,doy:4}})}(x(5439))},4940:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),E="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");w.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,L){return S?/-MMM-/.test(L)?E[S.month()]:i[S.month()]:i},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1402:function(Y,U,x){!function(w){"use strict";w.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6924:function(Y,U,x){!function(w){"use strict";w.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(N){return N+(1===N?"d":N%10==2?"na":"mh")},week:{dow:1,doy:4}})}(x(5439))},6398:function(Y,U,x){!function(w){"use strict";w.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(E){return 0===E.indexOf("un")?"n"+E:"en "+E},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2457:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[T+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",T+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[T+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",T+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[T+" \u0935\u0930\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[T+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",T+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[T+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",T+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[T+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",T+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return R?N[L][0]:N[L][1]}w.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(T,S){return"D"===S?T+"\u0935\u0947\u0930":T},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(T,S){return 12===T&&(T=0),"\u0930\u093e\u0924\u0940"===S?T<4?T:T+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?T:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?T>12?T:T+12:"\u0938\u093e\u0902\u091c\u0947"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0930\u093e\u0924\u0940":T<12?"\u0938\u0915\u093e\u0933\u0940\u0902":T<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":T<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(x(5439))},2545:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N={s:["thoddea sekondamni","thodde sekond"],ss:[T+" sekondamni",T+" sekond"],m:["eka mintan","ek minut"],mm:[T+" mintamni",T+" mintam"],h:["eka voran","ek vor"],hh:[T+" voramni",T+" voram"],d:["eka disan","ek dis"],dd:[T+" disamni",T+" dis"],M:["eka mhoinean","ek mhoino"],MM:[T+" mhoineamni",T+" mhoine"],y:["eka vorsan","ek voros"],yy:[T+" vorsamni",T+" vorsam"]};return R?N[L][0]:N[L][1]}w.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(T,S){return"D"===S?T+"er":T},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(T,S){return 12===T&&(T=0),"rati"===S?T<4?T:T+12:"sokallim"===S?T:"donparam"===S?T>12?T:T+12:"sanje"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"rati":T<12?"sokallim":T<16?"donparam":T<20?"sanje":"rati"}})}(x(5439))},2641:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},E={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};w.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===L?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===L?S:"\u0aac\u0aaa\u0acb\u0ab0"===L?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(x(5439))},7536:function(Y,U,x){!function(w){"use strict";w.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(E){return 2===E?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":E+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(E){return 2===E?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":E+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(E){return 2===E?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":E+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(E){return 2===E?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":E%10==0&&10!==E?E+" \u05e9\u05e0\u05d4":E+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(E){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(E)},meridiem:function(E,T,S){return E<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":E<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":E<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":E<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(x(5439))},6335:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},T=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];w.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:T,longMonthsParse:T,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(R){return R.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(N){return E[N]})},postformat:function(R){return R.replace(/\d/g,function(N){return i[N]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(R,N){return 12===R&&(R=0),"\u0930\u093e\u0924"===N?R<4?R:R+12:"\u0938\u0941\u092c\u0939"===N?R:"\u0926\u094b\u092a\u0939\u0930"===N?R>=10?R:R+12:"\u0936\u093e\u092e"===N?R+12:void 0},meridiem:function(R,N,j){return R<4?"\u0930\u093e\u0924":R<10?"\u0938\u0941\u092c\u0939":R<17?"\u0926\u094b\u092a\u0939\u0930":R<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(x(5439))},7458:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var R=T+" ";switch(L){case"ss":return R+(1===T?"sekunda":2===T||3===T||4===T?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return R+(1===T?"minuta":2===T||3===T||4===T?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return R+(1===T?"sat":2===T||3===T||4===T?"sata":"sati");case"dd":return R+(1===T?"dan":"dana");case"MM":return R+(1===T?"mjesec":2===T||3===T||4===T?"mjeseca":"mjeseci");case"yy":return R+(1===T?"godina":2===T||3===T||4===T?"godine":"godina")}}w.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:i,m:i,mm:i,h:i,hh:i,d:"dan",dd:i,M:"mjesec",MM:i,y:"godinu",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6540:function(Y,U,x){!function(w){"use strict";var i="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function E(L,R,N,j){var q=L;switch(N){case"s":return j||R?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return q+(j||R)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(j||R?" perc":" perce");case"mm":return q+(j||R?" perc":" perce");case"h":return"egy"+(j||R?" \xf3ra":" \xf3r\xe1ja");case"hh":return q+(j||R?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(j||R?" nap":" napja");case"dd":return q+(j||R?" nap":" napja");case"M":return"egy"+(j||R?" h\xf3nap":" h\xf3napja");case"MM":return q+(j||R?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(j||R?" \xe9v":" \xe9ve");case"yy":return q+(j||R?" \xe9v":" \xe9ve")}return""}function T(L){return(L?"":"[m\xfalt] ")+"["+i[this.day()]+"] LT[-kor]"}w.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(L){return"u"===L.charAt(1).toLowerCase()},meridiem:function(L,R,N){return L<12?!0===N?"de":"DE":!0===N?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return T.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return T.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3165:function(Y,U,x){!function(w){"use strict";w.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(E){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(E)},meridiem:function(E){return E<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":E<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":E<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(E,T){switch(T){case"DDD":case"w":case"W":case"DDDo":return 1===E?E+"-\u056b\u0576":E+"-\u0580\u0564";default:return E}},week:{dow:1,doy:7}})}(x(5439))},8780:function(Y,U,x){!function(w){"use strict";w.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"siang"===T?E>=11?E:E+12:"sore"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"siang":E<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(x(5439))},4205:function(Y,U,x){!function(w){"use strict";function i(S){return S%100==11||S%10!=1}function E(S,L,R,N){var j=S+" ";switch(R){case"s":return L||N?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return i(S)?j+(L||N?"sek\xfandur":"sek\xfandum"):j+"sek\xfanda";case"m":return L?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return i(S)?j+(L||N?"m\xedn\xfatur":"m\xedn\xfatum"):L?j+"m\xedn\xfata":j+"m\xedn\xfatu";case"hh":return i(S)?j+(L||N?"klukkustundir":"klukkustundum"):j+"klukkustund";case"d":return L?"dagur":N?"dag":"degi";case"dd":return i(S)?L?j+"dagar":j+(N?"daga":"d\xf6gum"):L?j+"dagur":j+(N?"dag":"degi");case"M":return L?"m\xe1nu\xf0ur":N?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return i(S)?L?j+"m\xe1nu\xf0ir":j+(N?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):L?j+"m\xe1nu\xf0ur":j+(N?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return L||N?"\xe1r":"\xe1ri";case"yy":return i(S)?j+(L||N?"\xe1r":"\xe1rum"):j+(L||N?"\xe1r":"\xe1ri")}}w.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:E,ss:E,m:E,mm:E,h:"klukkustund",hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},9985:function(Y,U,x){!function(w){"use strict";w.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(E){return(/^[0-9].+$/.test(E)?"tra":"in")+" "+E},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},4211:function(Y,U,x){!function(w){"use strict";w.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},1003:function(Y,U,x){!function(w){"use strict";w.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(E,T){return"\u5143"===T[1]?1:parseInt(T[1]||E,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(E){return"\u5348\u5f8c"===E},meridiem:function(E,T,S){return E<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(E){return E.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(E){return this.week()!==E.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(E,T){switch(T){case"y":return 1===E?"\u5143\u5e74":E+"\u5e74";case"d":case"D":case"DDD":return E+"\u65e5";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(x(5439))},420:function(Y,U,x){!function(w){"use strict";w.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(E,T){return 12===E&&(E=0),"enjing"===T?E:"siyang"===T?E>=11?E:E+12:"sonten"===T||"ndalu"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"enjing":E<15?"siyang":E<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(x(5439))},851:function(Y,U,x){!function(w){"use strict";w.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(E){return E.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(T,S,L){return"\u10d8"===L?S+"\u10e8\u10d8":S+L+"\u10e8\u10d8"})},past:function(E){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(E)?E.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(E)?E.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):E},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(E){return 0===E?E:1===E?E+"-\u10da\u10d8":E<20||E<=100&&E%20==0||E%100==0?"\u10db\u10d4-"+E:E+"-\u10d4"},week:{dow:1,doy:7}})}(x(5439))},6074:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};w.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},3343:function(Y,U,x){!function(w){"use strict";var i={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},E={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};w.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,L,R){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},4799:function(Y,U,x){!function(w){"use strict";var i={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},E={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};w.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===L?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===L?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===L?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(x(5439))},3549:function(Y,U,x){!function(w){"use strict";w.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\uc77c";case"M":return E+"\uc6d4";case"w":case"W":return E+"\uc8fc";default:return E}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(E){return"\uc624\ud6c4"===E},meridiem:function(E,T,S){return E<12?"\uc624\uc804":"\uc624\ud6c4"}})}(x(5439))},1037:function(Y,U,x){!function(w){"use strict";var i={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},E={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},T=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];w.defineLocale("ku",{months:T,monthsShort:T,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(L){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(L)},meridiem:function(L,R,N){return L<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(L){return L.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(R){return E[R]}).replace(/\u060c/g,",")},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(x(5439))},3125:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};w.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},9586:function(Y,U,x){!function(w){"use strict";function i(R,N,j,q){var $={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return N?$[j][0]:$[j][1]}function S(R){if(R=parseInt(R,10),isNaN(R))return!1;if(R<0)return!0;if(R<10)return 4<=R&&R<=7;if(R<100){var N=R%10;return S(0===N?R/10:N)}if(R<1e4){for(;R>=10;)R/=10;return S(R)}return S(R/=1e3)}w.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function E(R){return S(R.substr(0,R.indexOf(" ")))?"a "+R:"an "+R},past:function T(R){return S(R.substr(0,R.indexOf(" ")))?"viru "+R:"virun "+R},s:"e puer Sekonnen",ss:"%d Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d M\xe9int",y:i,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2349:function(Y,U,x){!function(w){"use strict";w.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(E){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===E},meridiem:function(E,T,S){return E<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(E){return"\u0e97\u0eb5\u0ec8"+E}})}(x(5439))},2400:function(Y,U,x){!function(w){"use strict";var i={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function T(j,q,$,X){return q?L($)[0]:X?L($)[1]:L($)[2]}function S(j){return j%10==0||j>10&&j<20}function L(j){return i[j].split("_")}function R(j,q,$,X){var ie=j+" ";return 1===j?ie+T(0,q,$[0],X):q?ie+(S(j)?L($)[1]:L($)[0]):X?ie+L($)[1]:ie+(S(j)?L($)[1]:L($)[2])}w.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function E(j,q,$,X){return q?"kelios sekund\u0117s":X?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:R,m:T,mm:R,h:T,hh:R,d:T,dd:R,M:T,MM:R,y:T,yy:R},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(j){return j+"-oji"},week:{dow:1,doy:4}})}(x(5439))},9991:function(Y,U,x){!function(w){"use strict";var i={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function E(N,j,q){return q?j%10==1&&j%100!=11?N[2]:N[3]:j%10==1&&j%100!=11?N[0]:N[1]}function T(N,j,q){return N+" "+E(i[q],N,j)}function S(N,j,q){return E(i[q],N,j)}w.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function L(N,j){return j?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:T,m:S,mm:T,h:S,hh:T,d:S,dd:T,M:S,MM:T,y:S,yy:T},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8477:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(T,S){return 1===T?S[0]:T>=2&&T<=4?S[1]:S[2]},translate:function(T,S,L){var R=i.words[L];return 1===L.length?S?R[0]:R[1]:T+" "+i.correctGrammaticalCase(T,R)}};w.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:"dan",dd:i.translate,M:"mjesec",MM:i.translate,y:"godinu",yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},5118:function(Y,U,x){!function(w){"use strict";w.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5943:function(Y,U,x){!function(w){"use strict";w.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(E){var T=E%10,S=E%100;return 0===E?E+"-\u0435\u0432":0===S?E+"-\u0435\u043d":S>10&&S<20?E+"-\u0442\u0438":1===T?E+"-\u0432\u0438":2===T?E+"-\u0440\u0438":7===T||8===T?E+"-\u043c\u0438":E+"-\u0442\u0438"},week:{dow:1,doy:7}})}(x(5439))},3849:function(Y,U,x){!function(w){"use strict";w.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(E,T){return 12===E&&(E=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===T&&E>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===T||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===T?E+12:E},meridiem:function(E,T,S){return E<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":E<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":E<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":E<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(x(5439))},1977:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){switch(L){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return T+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return T+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return T+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return T+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return T+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return T+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return T}}w.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(T){return"\u04ae\u0425"===T},meridiem:function(T,S,L){return T<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(T,S){switch(S){case"d":case"D":case"DDD":return T+" \u04e9\u0434\u04e9\u0440";default:return T}}})}(x(5439))},6184:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function T(L,R,N,j){var q="";if(R)switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":q="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":q="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":q="%d \u0924\u093e\u0938";break;case"d":q="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":q="%d \u0926\u093f\u0935\u0938";break;case"M":q="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":q="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u0947"}else switch(N){case"s":q="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":q="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":q="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":q="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":q="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":q="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":q="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":q="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":q="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":q="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":q="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":q="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return q.replace(/%d/i,L)}w.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:T,ss:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T},preparse:function(L){return L.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(R){return E[R]})},postformat:function(L){return L.replace(/\d/g,function(R){return i[R]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(L,R){return 12===L&&(L=0),"\u092a\u0939\u093e\u091f\u0947"===R||"\u0938\u0915\u093e\u0933\u0940"===R?L:"\u0926\u0941\u092a\u093e\u0930\u0940"===R||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===R||"\u0930\u093e\u0924\u094d\u0930\u0940"===R?L>=12?L:L+12:void 0},meridiem:function(L,R,N){return L>=0&&L<6?"\u092a\u0939\u093e\u091f\u0947":L<12?"\u0938\u0915\u093e\u0933\u0940":L<17?"\u0926\u0941\u092a\u093e\u0930\u0940":L<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(x(5439))},4524:function(Y,U,x){!function(w){"use strict";w.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},485:function(Y,U,x){!function(w){"use strict";w.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(E,T){return 12===E&&(E=0),"pagi"===T?E:"tengahari"===T?E>=11?E:E+12:"petang"===T||"malam"===T?E+12:void 0},meridiem:function(E,T,S){return E<11?"pagi":E<15?"tengahari":E<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(x(5439))},6681:function(Y,U,x){!function(w){"use strict";w.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},2024:function(Y,U,x){!function(w){"use strict";var i={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},E={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};w.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},week:{dow:1,doy:4}})}(x(5439))},2688:function(Y,U,x){!function(w){"use strict";w.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8914:function(Y,U,x){!function(w){"use strict";var i={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},E={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};w.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===L?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===L?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===L?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===L?S+12:void 0},meridiem:function(S,L,R){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(x(5439))},2272:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1758:function(Y,U,x){!function(w){"use strict";var i="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),E="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),T=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;w.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(R,N){return R?/-MMM-/.test(N)?E[R.month()]:i[R.month()]:i},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(R){return R+(1===R||8===R||R>=20?"ste":"de")},week:{dow:1,doy:4}})}(x(5439))},1510:function(Y,U,x){!function(w){"use strict";w.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2797:function(Y,U,x){!function(w){"use strict";w.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(E,T){var S=1===E?"r":2===E?"n":3===E?"r":4===E?"t":"\xe8";return("w"===T||"W"===T)&&(S="a"),E+S},week:{dow:1,doy:4}})}(x(5439))},7944:function(Y,U,x){!function(w){"use strict";var i={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},E={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};w.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,L){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===L?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===L?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===L?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===L?S+12:void 0},meridiem:function(S,L,R){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(x(5439))},1605:function(Y,U,x){!function(w){"use strict";var i="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),E="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),T=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(N){return N%10<5&&N%10>1&&~~(N/10)%10!=1}function L(N,j,q){var $=N+" ";switch(q){case"ss":return $+(S(N)?"sekundy":"sekund");case"m":return j?"minuta":"minut\u0119";case"mm":return $+(S(N)?"minuty":"minut");case"h":return j?"godzina":"godzin\u0119";case"hh":return $+(S(N)?"godziny":"godzin");case"ww":return $+(S(N)?"tygodnie":"tygodni");case"MM":return $+(S(N)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return $+(S(N)?"lata":"lat")}}w.defineLocale("pl",{months:function(N,j){return N?/D MMMM/.test(j)?E[N.month()]:i[N.month()]:i},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:L,m:L,mm:L,h:L,hh:L,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:L,M:"miesi\u0105c",MM:L,y:"rok",yy:L},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3840:function(Y,U,x){!function(w){"use strict";w.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(x(5439))},4225:function(Y,U,x){!function(w){"use strict";w.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(x(5439))},5128:function(Y,U,x){!function(w){"use strict";function i(T,S,L){var N=" ";return(T%100>=20||T>=100&&T%100==0)&&(N=" de "),T+N+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[L]}w.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:i,m:"un minut",mm:i,h:"o or\u0103",hh:i,d:"o zi",dd:i,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:i,M:"o lun\u0103",MM:i,y:"un an",yy:i},week:{dow:1,doy:7}})}(x(5439))},5127:function(Y,U,x){!function(w){"use strict";function E(L,R,N){return"m"===N?R?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":L+" "+function i(L,R){var N=L.split("_");return R%10==1&&R%100!=11?N[0]:R%10>=2&&R%10<=4&&(R%100<10||R%100>=20)?N[1]:N[2]}({ss:R?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:R?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[N],+L)}var T=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];w.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:T,longMonthsParse:T,shortMonthsParse:T,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(L){if(L.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0447\u0430\u0441",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:E,M:"\u043c\u0435\u0441\u044f\u0446",MM:E,y:"\u0433\u043e\u0434",yy:E},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(L){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(L)},meridiem:function(L,R,N){return L<4?"\u043d\u043e\u0447\u0438":L<12?"\u0443\u0442\u0440\u0430":L<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(L,R){switch(R){case"M":case"d":case"DDD":return L+"-\u0439";case"D":return L+"-\u0433\u043e";case"w":case"W":return L+"-\u044f";default:return L}},week:{dow:1,doy:4}})}(x(5439))},2525:function(Y,U,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],E=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];w.defineLocale("sd",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},9893:function(Y,U,x){!function(w){"use strict";w.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},3123:function(Y,U,x){!function(w){"use strict";w.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(E){return E+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(E){return"\u0db4.\u0dc0."===E||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===E},meridiem:function(E,T,S){return E>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(x(5439))},9635:function(Y,U,x){!function(w){"use strict";var i="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),E="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function T(R){return R>1&&R<5}function S(R,N,j,q){var $=R+" ";switch(j){case"s":return N||q?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return N||q?$+(T(R)?"sekundy":"sek\xfand"):$+"sekundami";case"m":return N?"min\xfata":q?"min\xfatu":"min\xfatou";case"mm":return N||q?$+(T(R)?"min\xfaty":"min\xfat"):$+"min\xfatami";case"h":return N?"hodina":q?"hodinu":"hodinou";case"hh":return N||q?$+(T(R)?"hodiny":"hod\xedn"):$+"hodinami";case"d":return N||q?"de\u0148":"d\u0148om";case"dd":return N||q?$+(T(R)?"dni":"dn\xed"):$+"d\u0148ami";case"M":return N||q?"mesiac":"mesiacom";case"MM":return N||q?$+(T(R)?"mesiace":"mesiacov"):$+"mesiacmi";case"y":return N||q?"rok":"rokom";case"yy":return N||q?$+(T(R)?"roky":"rokov"):$+"rokmi"}}w.defineLocale("sk",{months:i,monthsShort:E,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8106:function(Y,U,x){!function(w){"use strict";function i(T,S,L,R){var N=T+" ";switch(L){case"s":return S||R?"nekaj sekund":"nekaj sekundami";case"ss":return N+(1===T?S?"sekundo":"sekundi":2===T?S||R?"sekundi":"sekundah":T<5?S||R?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return N+(1===T?S?"minuta":"minuto":2===T?S||R?"minuti":"minutama":T<5?S||R?"minute":"minutami":S||R?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return N+(1===T?S?"ura":"uro":2===T?S||R?"uri":"urama":T<5?S||R?"ure":"urami":S||R?"ur":"urami");case"d":return S||R?"en dan":"enim dnem";case"dd":return N+(1===T?S||R?"dan":"dnem":2===T?S||R?"dni":"dnevoma":S||R?"dni":"dnevi");case"M":return S||R?"en mesec":"enim mesecem";case"MM":return N+(1===T?S||R?"mesec":"mesecem":2===T?S||R?"meseca":"mesecema":T<5?S||R?"mesece":"meseci":S||R?"mesecev":"meseci");case"y":return S||R?"eno leto":"enim letom";case"yy":return N+(1===T?S||R?"leto":"letom":2===T?S||R?"leti":"letoma":T<5?S||R?"leta":"leti":S||R?"let":"leti")}}w.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},8799:function(Y,U,x){!function(w){"use strict";w.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(E){return"M"===E.charAt(0)},meridiem:function(E,T,S){return E<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},2872:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===j?T+" \u0433\u043e\u0434\u0438\u043d\u0430":T+" "+j}};w.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},7949:function(Y,U,x){!function(w){"use strict";var i={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(T,S){return T%10>=1&&T%10<=4&&(T%100<10||T%100>=20)?T%10==1?S[0]:S[1]:S[2]},translate:function(T,S,L,R){var N=i.words[L];if(1===L.length)return"y"===L&&S?"jedna godina":R||S?N[0]:N[1];const j=i.correctGrammaticalCase(T,N);return"yy"===L&&S&&"godinu"===j?T+" godina":T+" "+j}};w.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:i.translate,m:i.translate,mm:i.translate,h:i.translate,hh:i.translate,d:i.translate,dd:i.translate,M:i.translate,MM:i.translate,y:i.translate,yy:i.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(x(5439))},6167:function(Y,U,x){!function(w){"use strict";w.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(E,T,S){return E<11?"ekuseni":E<15?"emini":E<19?"entsambama":"ebusuku"},meridiemHour:function(E,T){return 12===E&&(E=0),"ekuseni"===T?E:"emini"===T?E>=11?E:E+12:"entsambama"===T||"ebusuku"===T?0===E?0:E+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(x(5439))},9713:function(Y,U,x){!function(w){"use strict";w.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?":e":1===T||2===T?":a":":e")},week:{dow:1,doy:4}})}(x(5439))},1982:function(Y,U,x){!function(w){"use strict";w.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(x(5439))},2732:function(Y,U,x){!function(w){"use strict";var i={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},E={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};w.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(L){return E[L]})},postformat:function(S){return S.replace(/\d/g,function(L){return i[L]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,L,R){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,L){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===L?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===L||"\u0b95\u0bbe\u0bb2\u0bc8"===L||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===L&&S>=10?S:S+12},week:{dow:0,doy:6}})}(x(5439))},3636:function(Y,U,x){!function(w){"use strict";w.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===T?E<4?E:E+12:"\u0c09\u0c26\u0c2f\u0c02"===T?E:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===T?E>=10?E:E+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===T?E+12:void 0},meridiem:function(E,T,S){return E<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":E<10?"\u0c09\u0c26\u0c2f\u0c02":E<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":E<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(x(5439))},2115:function(Y,U,x){!function(w){"use strict";w.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9801:function(Y,U,x){!function(w){"use strict";var i={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};w.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(T,S){return 12===T&&(T=0),"\u0448\u0430\u0431"===S?T<4?T:T+12:"\u0441\u0443\u0431\u04b3"===S?T:"\u0440\u04ef\u0437"===S?T>=11?T:T+12:"\u0431\u0435\u0433\u043e\u04b3"===S?T+12:void 0},meridiem:function(T,S,L){return T<4?"\u0448\u0430\u0431":T<11?"\u0441\u0443\u0431\u04b3":T<16?"\u0440\u04ef\u0437":T<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(T){return T+(i[T]||i[T%10]||i[T>=100?100:null])},week:{dow:1,doy:7}})}(x(5439))},4486:function(Y,U,x){!function(w){"use strict";w.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(E){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===E},meridiem:function(E,T,S){return E<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(x(5439))},1310:function(Y,U,x){!function(w){"use strict";var i={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};w.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'unjy";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},2360:function(Y,U,x){!function(w){"use strict";w.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},6645:function(Y,U,x){!function(w){"use strict";var i="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(N,j,q,$){var X=function L(N){var j=Math.floor(N%1e3/100),q=Math.floor(N%100/10),$=N%10,X="";return j>0&&(X+=i[j]+"vatlh"),q>0&&(X+=(""!==X?" ":"")+i[q]+"maH"),$>0&&(X+=(""!==X?" ":"")+i[$]),""===X?"pagh":X}(N);switch(q){case"ss":return X+" lup";case"mm":return X+" tup";case"hh":return X+" rep";case"dd":return X+" jaj";case"MM":return X+" jar";case"yy":return X+" DIS"}}w.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function E(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"leS":-1!==N.indexOf("jar")?j.slice(0,-3)+"waQ":-1!==N.indexOf("DIS")?j.slice(0,-3)+"nem":j+" pIq"},past:function T(N){var j=N;return-1!==N.indexOf("jaj")?j.slice(0,-3)+"Hu\u2019":-1!==N.indexOf("jar")?j.slice(0,-3)+"wen":-1!==N.indexOf("DIS")?j.slice(0,-3)+"ben":j+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},8374:function(Y,U,x){!function(w){"use strict";var i={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};w.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(T,S,L){return T<12?L?"\xf6\xf6":"\xd6\xd6":L?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(T){return"\xf6s"===T||"\xd6S"===T},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(T,S){switch(S){case"d":case"D":case"Do":case"DD":return T;default:if(0===T)return T+"'\u0131nc\u0131";var L=T%10;return T+(i[L]||i[T%100-L]||i[T>=100?100:null])}},week:{dow:1,doy:7}})}(x(5439))},256:function(Y,U,x){!function(w){"use strict";function E(T,S,L,R){var N={s:["viensas secunds","'iensas secunds"],ss:[T+" secunds",T+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[T+" m\xeduts",T+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[T+" \xfeoras",T+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[T+" ziuas",T+" ziuas"],M:["'n mes","'iens mes"],MM:[T+" mesen",T+" mesen"],y:["'n ar","'iens ar"],yy:[T+" ars",T+" ars"]};return R||S?N[L][0]:N[L][1]}w.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(T){return"d'o"===T.toLowerCase()},meridiem:function(T,S,L){return T>11?L?"d'o":"D'O":L?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:E,ss:E,m:E,mm:E,h:E,hh:E,d:E,dd:E,M:E,MM:E,y:E,yy:E},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(x(5439))},1631:function(Y,U,x){!function(w){"use strict";w.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(x(5439))},1595:function(Y,U,x){!function(w){"use strict";w.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(x(5439))},6050:function(Y,U,x){!function(w){"use strict";w.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===T||"\u0633\u06d5\u06be\u06d5\u0631"===T||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===T?E:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===T||"\u0643\u06d5\u0686"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":L<900?"\u0633\u06d5\u06be\u06d5\u0631":L<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":L<1230?"\u0686\u06c8\u0634":L<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return E+"-\u06be\u06d5\u067e\u062a\u06d5";default:return E}},preparse:function(E){return E.replace(/\u060c/g,",")},postformat:function(E){return E.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(x(5439))},5610:function(Y,U,x){!function(w){"use strict";function E(R,N,j){return"m"===j?N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===j?N?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":R+" "+function i(R,N){var j=R.split("_");return N%10==1&&N%100!=11?j[0]:N%10>=2&&N%10<=4&&(N%100<10||N%100>=20)?j[1]:j[2]}({ss:N?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:N?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:N?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[j],+R)}function S(R){return function(){return R+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}w.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function T(R,N){var j={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===R?j.nominative.slice(1,7).concat(j.nominative.slice(0,1)):R?j[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(N)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(N)?"genitive":"nominative"][R.day()]:j.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:E,m:E,mm:E,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:E,d:"\u0434\u0435\u043d\u044c",dd:E,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:E,y:"\u0440\u0456\u043a",yy:E},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(R){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(R)},meridiem:function(R,N,j){return R<4?"\u043d\u043e\u0447\u0456":R<12?"\u0440\u0430\u043d\u043a\u0443":R<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(R,N){switch(N){case"M":case"d":case"DDD":case"w":case"W":return R+"-\u0439";case"D":return R+"-\u0433\u043e";default:return R}},week:{dow:1,doy:7}})}(x(5439))},6077:function(Y,U,x){!function(w){"use strict";var i=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],E=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];w.defineLocale("ur",{months:i,monthsShort:i,weekdays:E,weekdaysShort:E,weekdaysMin:E,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,L,R){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(x(5439))},2207:function(Y,U,x){!function(w){"use strict";w.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(x(5439))},2862:function(Y,U,x){!function(w){"use strict";w.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(x(5439))},8093:function(Y,U,x){!function(w){"use strict";w.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(E){return/^ch$/i.test(E)},meridiem:function(E,T,S){return E<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(E){return E},week:{dow:1,doy:4}})}(x(5439))},5590:function(Y,U,x){!function(w){"use strict";w.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var T=E%10;return E+(1==~~(E%100/10)?"th":1===T?"st":2===T?"nd":3===T?"rd":"th")},week:{dow:1,doy:4}})}(x(5439))},9058:function(Y,U,x){!function(w){"use strict";w.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(x(5439))},7908:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:E>=11?E:E+12},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(E){return E.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(E){return this.week()!==E.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u5468";default:return E}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(x(5439))},8867:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1200?"\u4e0a\u5348":1200===L?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},1133:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},3291:function(Y,U,x){!function(w){"use strict";w.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(E,T){return 12===E&&(E=0),"\u51cc\u6668"===T||"\u65e9\u4e0a"===T||"\u4e0a\u5348"===T?E:"\u4e2d\u5348"===T?E>=11?E:E+12:"\u4e0b\u5348"===T||"\u665a\u4e0a"===T?E+12:void 0},meridiem:function(E,T,S){var L=100*E+T;return L<600?"\u51cc\u6668":L<900?"\u65e9\u4e0a":L<1130?"\u4e0a\u5348":L<1230?"\u4e2d\u5348":L<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(E,T){switch(T){case"d":case"D":case"DDD":return E+"\u65e5";case"M":return E+"\u6708";case"w":case"W":return E+"\u9031";default:return E}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(x(5439))},5439:function(Y,U,x){(Y=x.nmd(Y)).exports=function(){"use strict";var w,de;function i(){return w.apply(null,arguments)}function T(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function S(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function L(C,H){return Object.prototype.hasOwnProperty.call(C,H)}function R(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var H;for(H in C)if(L(C,H))return!1;return!0}function N(C){return void 0===C}function j(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function q(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function $(C,H){var z,O=[],Q=C.length;for(z=0;z>>0;for(z=0;z0)for(O=0;O=0?O?"+":"":"-")+Math.pow(10,Math.max(0,H-z.length)).toString().substr(1)+z}var st=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,kn={},Mi={};function Ke(C,H,O,z){var Q=z;"string"==typeof z&&(Q=function(){return this[z]()}),C&&(Mi[C]=Q),H&&(Mi[H[0]]=function(){return Ci(Q.apply(this,arguments),H[1],H[2])}),O&&(Mi[O]=function(){return this.localeData().ordinal(Q.apply(this,arguments),C)})}function di(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function on(C,H){return C.isValid()?(H=pi(H,C.localeData()),kn[H]=kn[H]||function pr(C){var O,z,H=C.match(st);for(O=0,z=H.length;O=0&&bt.test(C);)C=C.replace(bt,z),bt.lastIndex=0,O-=1;return C}var Ue={};function it(C,H){var O=C.toLowerCase();Ue[O]=Ue[O+"s"]=Ue[H]=C}function Jt(C){return"string"==typeof C?Ue[C]||Ue[C.toLowerCase()]:void 0}function Te(C){var O,z,H={};for(z in C)L(C,z)&&(O=Jt(z))&&(H[O]=C[z]);return H}var ae={};function oe(C,H){ae[C]=H}function De(C){return C%4==0&&C%100!=0||C%400==0}function Fe(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function xe(C){var H=+C,O=0;return 0!==H&&isFinite(H)&&(O=Fe(H)),O}function Ge(C,H){return function(O){return null!=O?(zi(this,C,O),i.updateOffset(this,H),this):Bt(this,C)}}function Bt(C,H){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+H]():NaN}function zi(C,H,O){C.isValid()&&!isNaN(O)&&("FullYear"===H&&De(C.year())&&1===C.month()&&29===C.date()?(O=xe(O),C._d["set"+(C._isUTC?"UTC":"")+H](O,C.month(),fi(O,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+H](O))}var M,Fi=/\d/,ft=/\d\d/,Ze=/\d{3}/,Vn=/\d{4}/,Gt=/[+-]?\d{6}/,Dt=/\d\d?/,fr=/\d\d\d\d?/,Xn=/\d\d\d\d\d\d?/,zn=/\d{1,3}/,oc=/\d{1,4}/,Ia=/[+-]?\d{1,6}/,da=/\d+/,ua=/[+-]?\d+/,mr=/Z|[+-]\d\d:?\d\d/gi,gs=/Z|[+-]\d\d(?::?\d\d)?/gi,to=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Be(C,H,O){M[C]=Ae(H)?H:function(z,Q){return z&&O?O:H}}function vi(C,H){return L(M,C)?M[C](H._strict,H._locale):new RegExp(function cn(C){return Xe(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(H,O,z,Q,le){return O||z||Q||le}))}(C))}function Xe(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}M={};var ri={};function St(C,H){var O,Q,z=H;for("string"==typeof C&&(C=[C]),j(H)&&(z=function(le,we){we[H]=xe(le)}),Q=C.length,O=0;O68?1900:2e3)};var On=Ge("FullYear",!0);function Qo(C,H,O,z,Q,le,we){var ot;return C<100&&C>=0?(ot=new Date(C+400,H,O,z,Q,le,we),isFinite(ot.getFullYear())&&ot.setFullYear(C)):ot=new Date(C,H,O,z,Q,le,we),ot}function za(C){var H,O;return C<100&&C>=0?((O=Array.prototype.slice.call(arguments))[0]=C+400,H=new Date(Date.UTC.apply(null,O)),isFinite(H.getUTCFullYear())&&H.setUTCFullYear(C)):H=new Date(Date.UTC.apply(null,arguments)),H}function pa(C,H,O){var z=7+H-O;return-(7+za(C,0,z).getUTCDay()-H)%7+z-1}function tr(C,H,O,z,Q){var Rt,si,ot=1+7*(H-1)+(7+O-z)%7+pa(C,z,Q);return ot<=0?si=Va(Rt=C-1)+ot:ot>Va(C)?(Rt=C+1,si=ot-Va(C)):(Rt=C,si=ot),{year:Rt,dayOfYear:si}}function ys(C,H,O){var le,we,z=pa(C.year(),H,O),Q=Math.floor((C.dayOfYear()-z-1)/7)+1;return Q<1?le=Q+fa(we=C.year()-1,H,O):Q>fa(C.year(),H,O)?(le=Q-fa(C.year(),H,O),we=C.year()+1):(we=C.year(),le=Q),{week:le,year:we}}function fa(C,H,O){var z=pa(C,H,O),Q=pa(C+1,H,O);return(Va(C)-z+Q)/7}Ke("w",["ww",2],"wo","week"),Ke("W",["WW",2],"Wo","isoWeek"),it("week","w"),it("isoWeek","W"),oe("week",5),oe("isoWeek",5),Be("w",Dt),Be("ww",Dt,ft),Be("W",Dt),Be("WW",Dt,ft),Gi(["w","ww","W","WW"],function(C,H,O,z){H[z.substr(0,1)]=xe(C)});function Ms(C,H){return C.slice(H,7).concat(C.slice(0,H))}Ke("d",0,"do","day"),Ke("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),Ke("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),Ke("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),Ke("e",0,0,"weekday"),Ke("E",0,0,"isoWeekday"),it("day","d"),it("weekday","e"),it("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Be("d",Dt),Be("e",Dt),Be("E",Dt),Be("dd",function(C,H){return H.weekdaysMinRegex(C)}),Be("ddd",function(C,H){return H.weekdaysShortRegex(C)}),Be("dddd",function(C,H){return H.weekdaysRegex(C)}),Gi(["dd","ddd","dddd"],function(C,H,O,z){var Q=O._locale.weekdaysParse(C,z,O._strict);null!=Q?H.d=Q:ne(O).invalidWeekday=C}),Gi(["d","e","E"],function(C,H,O,z){H[z]=xe(C)});var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),un="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),He=to,Md=to,Ki=to;function Jo(C,H,O){var z,Q,le,we=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],z=0;z<7;++z)le=ie([2e3,1]).day(z),this._minWeekdaysParse[z]=this.weekdaysMin(le,"").toLocaleLowerCase(),this._shortWeekdaysParse[z]=this.weekdaysShort(le,"").toLocaleLowerCase(),this._weekdaysParse[z]=this.weekdays(le,"").toLocaleLowerCase();return O?"dddd"===H?-1!==(Q=ai.call(this._weekdaysParse,we))?Q:null:"ddd"===H?-1!==(Q=ai.call(this._shortWeekdaysParse,we))?Q:null:-1!==(Q=ai.call(this._minWeekdaysParse,we))?Q:null:"dddd"===H?-1!==(Q=ai.call(this._weekdaysParse,we))||-1!==(Q=ai.call(this._shortWeekdaysParse,we))||-1!==(Q=ai.call(this._minWeekdaysParse,we))?Q:null:"ddd"===H?-1!==(Q=ai.call(this._shortWeekdaysParse,we))||-1!==(Q=ai.call(this._weekdaysParse,we))||-1!==(Q=ai.call(this._minWeekdaysParse,we))?Q:null:-1!==(Q=ai.call(this._minWeekdaysParse,we))||-1!==(Q=ai.call(this._weekdaysParse,we))||-1!==(Q=ai.call(this._shortWeekdaysParse,we))?Q:null}function Zt(){function C(Bi,Pr){return Pr.length-Bi.length}var le,we,ot,Rt,si,H=[],O=[],z=[],Q=[];for(le=0;le<7;le++)we=ie([2e3,1]).day(le),ot=Xe(this.weekdaysMin(we,"")),Rt=Xe(this.weekdaysShort(we,"")),si=Xe(this.weekdays(we,"")),H.push(ot),O.push(Rt),z.push(si),Q.push(ot),Q.push(Rt),Q.push(si);H.sort(C),O.sort(C),z.sort(C),Q.sort(C),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+z.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+O.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+H.join("|")+")","i")}function Fa(){return this.hours()%12||12}function Sr(C,H){Ke(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),H)})}function vs(C,H){return H._meridiemParse}Ke("H",["HH",2],0,"hour"),Ke("h",["hh",2],0,Fa),Ke("k",["kk",2],0,function _i(){return this.hours()||24}),Ke("hmm",0,0,function(){return""+Fa.apply(this)+Ci(this.minutes(),2)}),Ke("hmmss",0,0,function(){return""+Fa.apply(this)+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Ke("Hmm",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)}),Ke("Hmmss",0,0,function(){return""+this.hours()+Ci(this.minutes(),2)+Ci(this.seconds(),2)}),Sr("a",!0),Sr("A",!1),it("hour","h"),oe("hour",13),Be("a",vs),Be("A",vs),Be("H",Dt),Be("h",Dt),Be("k",Dt),Be("HH",Dt,ft),Be("hh",Dt,ft),Be("kk",Dt,ft),Be("hmm",fr),Be("hmmss",Xn),Be("Hmm",fr),Be("Hmmss",Xn),St(["H","HH"],3),St(["k","kk"],function(C,H,O){var z=xe(C);H[3]=24===z?0:z}),St(["a","A"],function(C,H,O){O._isPm=O._locale.isPM(C),O._meridiem=C}),St(["h","hh"],function(C,H,O){H[3]=xe(C),ne(O).bigHour=!0}),St("hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z)),ne(O).bigHour=!0}),St("hmmss",function(C,H,O){var z=C.length-4,Q=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(Q)),ne(O).bigHour=!0}),St("Hmm",function(C,H,O){var z=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z))}),St("Hmmss",function(C,H,O){var z=C.length-4,Q=C.length-2;H[3]=xe(C.substr(0,z)),H[4]=xe(C.substr(z,2)),H[5]=xe(C.substr(Q))});var Cn=Ge("Hours",!0);var ga,Xo={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xr,monthsShort:mi,week:{dow:0,doy:6},weekdays:jt,weekdaysMin:$e,weekdaysShort:un,meridiemParse:/[ap]\.?m?\.?/i},bi={},xs={};function dc(C,H){var O,z=Math.min(C.length,H.length);for(O=0;O0;){if(Q=B(le.slice(0,O).join("-")))return Q;if(z&&z.length>=O&&dc(le,z)>=O-1)break;O--}H++}return ga}(C)}function Se(C){var H,O=C._a;return O&&-2===ne(C).overflow&&(H=O[1]<0||O[1]>11?1:O[2]<1||O[2]>fi(O[0],O[1])?2:O[3]<0||O[3]>24||24===O[3]&&(0!==O[4]||0!==O[5]||0!==O[6])?3:O[4]<0||O[4]>59?4:O[5]<0||O[5]>59?5:O[6]<0||O[6]>999?6:-1,ne(C)._overflowDayOfYear&&(H<0||H>2)&&(H=2),ne(C)._overflowWeeks&&-1===H&&(H=7),ne(C)._overflowWeekday&&-1===H&&(H=8),ne(C).overflow=H),C}var nt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Xt=/Z|[+-]\d\d(?::?\d\d)?/,At=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ft=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zi=/^\/?Date\((-?\d+)/i,xi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ki={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function _a(C){var H,O,le,we,ot,Rt,z=C._i,Q=nt.exec(z)||Yt.exec(z),si=At.length,Bi=Ft.length;if(Q){for(ne(C).iso=!0,H=0,O=si;H7)&&(Rt=!0)):(le=C._locale._week.dow,we=C._locale._week.doy,si=ys(wi(),le,we),O=so(H.gg,C._a[0],si.year),z=so(H.w,si.week),null!=H.d?((Q=H.d)<0||Q>6)&&(Rt=!0):null!=H.e?(Q=H.e+le,(H.e<0||H.e>6)&&(Rt=!0)):Q=le),z<1||z>fa(O,le,we)?ne(C)._overflowWeeks=!0:null!=Rt?ne(C)._overflowWeekday=!0:(ot=tr(O,z,Q,le,we),C._a[0]=ot.year,C._dayOfYear=ot.dayOfYear)}(C),null!=C._dayOfYear&&(we=so(C._a[0],Q[0]),(C._dayOfYear>Va(we)||0===C._dayOfYear)&&(ne(C)._overflowDayOfYear=!0),O=za(we,0,C._dayOfYear),C._a[1]=O.getUTCMonth(),C._a[2]=O.getUTCDate()),H=0;H<3&&null==C._a[H];++H)C._a[H]=z[H]=Q[H];for(;H<7;H++)C._a[H]=z[H]=null==C._a[H]?2===H?1:0:C._a[H];24===C._a[3]&&0===C._a[4]&&0===C._a[5]&&0===C._a[6]&&(C._nextDay=!0,C._a[3]=0),C._d=(C._useUTC?za:Qo).apply(null,z),le=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[3]=24),C._w&&void 0!==C._w.d&&C._w.d!==le&&(ne(C).weekdayMismatch=!0)}}function ba(C){if(C._f!==i.ISO_8601)if(C._f!==i.RFC_2822){C._a=[],ne(C).empty=!0;var O,z,Q,le,we,si,Bi,H=""+C._i,ot=H.length,Rt=0;for(Bi=(Q=pi(C._f,C._locale).match(st)||[]).length,O=0;O0&&ne(C).unusedInput.push(we),H=H.slice(H.indexOf(z)+z.length),Rt+=z.length),Mi[le]?(z?ne(C).empty=!1:ne(C).unusedTokens.push(le),$o(le,z,C)):C._strict&&!z&&ne(C).unusedTokens.push(le);ne(C).charsLeftOver=ot-Rt,H.length>0&&ne(C).unusedInput.push(H),C._a[3]<=12&&!0===ne(C).bigHour&&C._a[3]>0&&(ne(C).bigHour=void 0),ne(C).parsedDateParts=C._a.slice(0),ne(C).meridiem=C._meridiem,C._a[3]=function $i(C,H,O){var z;return null==O?H:null!=C.meridiemHour?C.meridiemHour(H,O):(null!=C.isPM&&((z=C.isPM(O))&&H<12&&(H+=12),!z&&12===H&&(H=0)),H)}(C._locale,C._a[3],C._meridiem),null!==(si=ne(C).era)&&(C._a[0]=C._locale.erasConvertYear(si,C._a[0])),be(C),Se(C)}else tl(C);else _a(C)}function hc(C){var H=C._i,O=C._f;return C._locale=C._locale||re(C._l),null===H||void 0===O&&""===H?Ne({nullInput:!0}):("string"==typeof H&&(C._i=H=C._locale.preparse(H)),Je(H)?new Ot(Se(H)):(q(H)?C._d=H:T(O)?function uc(C){var H,O,z,Q,le,we,ot=!1,Rt=C._f.length;if(0===Rt)return ne(C).invalidFormat=!0,void(C._d=new Date(NaN));for(Q=0;Qthis?this:C:Ne()});function ei(C,H){var O,z;if(1===H.length&&T(H[0])&&(H=H[0]),!H.length)return wi();for(O=H[0],z=1;z=0?new Date(C+400,H,O)-hl:new Date(C,H,O).valueOf()}function Mc(C,H,O){return C<100&&C>=0?Date.UTC(C+400,H,O)-hl:Date.UTC(C,H,O)}function Rd(C,H){return H.erasAbbrRegex(C)}function uh(){var Q,le,C=[],H=[],O=[],z=[],we=this.eras();for(Q=0,le=we.length;Q(le=fa(C,z,Q))&&(H=le),kf.call(this,C,H,O,z,Q))}function kf(C,H,O,z,Q){var le=tr(C,H,O,z,Q),we=za(le.year,0,le.dayOfYear);return this.year(we.getUTCFullYear()),this.month(we.getUTCMonth()),this.date(we.getUTCDate()),this}Ke("N",0,0,"eraAbbr"),Ke("NN",0,0,"eraAbbr"),Ke("NNN",0,0,"eraAbbr"),Ke("NNNN",0,0,"eraName"),Ke("NNNNN",0,0,"eraNarrow"),Ke("y",["y",1],"yo","eraYear"),Ke("y",["yy",2],0,"eraYear"),Ke("y",["yyy",3],0,"eraYear"),Ke("y",["yyyy",4],0,"eraYear"),Be("N",Rd),Be("NN",Rd),Be("NNN",Rd),Be("NNNN",function Ef(C,H){return H.erasNameRegex(C)}),Be("NNNNN",function Df(C,H){return H.erasNarrowRegex(C)}),St(["N","NN","NNN","NNNN","NNNNN"],function(C,H,O,z){var Q=O._locale.erasParse(C,z,O._strict);Q?ne(O).era=Q:ne(O).invalidEra=C}),Be("y",da),Be("yy",da),Be("yyy",da),Be("yyyy",da),Be("yo",function V1(C,H){return H._eraYearOrdinalRegex||da}),St(["y","yy","yyy","yyyy"],0),St(["yo"],function(C,H,O,z){var Q;O._locale._eraYearOrdinalRegex&&(Q=C.match(O._locale._eraYearOrdinalRegex)),H[0]=O._locale.eraYearOrdinalParse?O._locale.eraYearOrdinalParse(C,Q):parseInt(C,10)}),Ke(0,["gg",2],0,function(){return this.weekYear()%100}),Ke(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gl("gggg","weekYear"),gl("ggggg","weekYear"),gl("GGGG","isoWeekYear"),gl("GGGGG","isoWeekYear"),it("weekYear","gg"),it("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Be("G",ua),Be("g",ua),Be("GG",Dt,ft),Be("gg",Dt,ft),Be("GGGG",oc,Vn),Be("gggg",oc,Vn),Be("GGGGG",Ia,Gt),Be("ggggg",Ia,Gt),Gi(["gggg","ggggg","GGGG","GGGGG"],function(C,H,O,z){H[z.substr(0,2)]=xe(C)}),Gi(["gg","GG"],function(C,H,O,z){H[z]=i.parseTwoDigitYear(C)}),Ke("Q",0,"Qo","quarter"),it("quarter","Q"),oe("quarter",7),Be("Q",Fi),St("Q",function(C,H){H[1]=3*(xe(C)-1)}),Ke("D",["DD",2],"Do","date"),it("date","D"),oe("date",9),Be("D",Dt),Be("DD",Dt,ft),Be("Do",function(C,H){return C?H._dayOfMonthOrdinalParse||H._ordinalParse:H._dayOfMonthOrdinalParseLenient}),St(["D","DD"],2),St("Do",function(C,H){H[2]=xe(C.match(Dt)[0])});var qn=Ge("Date",!0);Ke("DDD",["DDDD",3],"DDDo","dayOfYear"),it("dayOfYear","DDD"),oe("dayOfYear",4),Be("DDD",zn),Be("DDDD",Ze),St(["DDD","DDDD"],function(C,H,O){O._dayOfYear=xe(C)}),Ke("m",["mm",2],0,"minute"),it("minute","m"),oe("minute",14),Be("m",Dt),Be("mm",Dt,ft),St(["m","mm"],4);var bl=Ge("Minutes",!1);Ke("s",["ss",2],0,"second"),it("second","s"),oe("second",15),Be("s",Dt),Be("ss",Dt,ft),St(["s","ss"],5);var Gr,Al,Ca=Ge("Seconds",!1);for(Ke("S",0,0,function(){return~~(this.millisecond()/100)}),Ke(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ke(0,["SSS",3],0,"millisecond"),Ke(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Ke(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Ke(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Ke(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Ke(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Ke(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),it("millisecond","ms"),oe("millisecond",16),Be("S",zn,Fi),Be("SS",zn,ft),Be("SSS",zn,Ze),Gr="SSSS";Gr.length<=9;Gr+="S")Be(Gr,da);function hh(C,H){H[6]=xe(1e3*("0."+C))}for(Gr="S";Gr.length<=9;Gr+="S")St(Gr,hh);Al=Ge("Milliseconds",!1),Ke("z",0,0,"zoneAbbr"),Ke("zz",0,0,"zoneName");var Ie=Ot.prototype;function va(C){return C}Ie.add=ih,Ie.calendar=function nh(C,H){1===arguments.length&&(arguments[0]?uo(arguments[0])?(C=arguments[0],H=void 0):ir(arguments[0])&&(H=arguments[0],C=void 0):(C=void 0,H=void 0));var O=C||wi(),z=co(O,this).startOf("day"),Q=i.calendarFormat(this,z)||"sameElse",le=H&&(Ae(H[Q])?H[Q].call(this,O):H[Q]);return this.format(le||this.localeData().calendar(Q,this,wi(O)))},Ie.clone=function rh(){return new Ot(this)},Ie.diff=function bc(C,H,O){var z,Q,le;if(!this.isValid())return NaN;if(!(z=co(C,this)).isValid())return NaN;switch(Q=6e4*(z.utcOffset()-this.utcOffset()),H=Jt(H)){case"year":le=po(this,z)/12;break;case"month":le=po(this,z);break;case"quarter":le=po(this,z)/3;break;case"second":le=(this-z)/1e3;break;case"minute":le=(this-z)/6e4;break;case"hour":le=(this-z)/36e5;break;case"day":le=(this-z-Q)/864e5;break;case"week":le=(this-z-Q)/6048e5;break;default:le=this-z}return O?le:Fe(le)},Ie.endOf=function oh(C){var H,O;if(void 0===(C=Jt(C))||"millisecond"===C||!this.isValid())return this;switch(O=this._isUTC?Mc:Ld,C){case"year":H=O(this.year()+1,0,1)-1;break;case"quarter":H=O(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":H=O(this.year(),this.month()+1,1)-1;break;case"week":H=O(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":H=O(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":H=O(this.year(),this.month(),this.date()+1)-1;break;case"hour":H=this._d.valueOf(),H+=ya-go(H+(this._isUTC?0:this.utcOffset()*Ua),ya)-1;break;case"minute":H=this._d.valueOf(),H+=Ua-go(H,Ua)-1;break;case"second":H=this._d.valueOf(),H+=1e3-go(H,1e3)-1}return this._d.setTime(H),i.updateOffset(this,!0),this},Ie.format=function Hs(C){C||(C=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var H=on(this,C);return this.localeData().postformat(H)},Ie.from=function Ac(C,H){return this.isValid()&&(Je(C)&&C.isValid()||wi(C).isValid())?Hr({to:this,from:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.fromNow=function B1(C){return this.from(wi(),C)},Ie.to=function sh(C,H){return this.isValid()&&(Je(C)&&C.isValid()||wi(C).isValid())?Hr({from:this,to:C}).locale(this.locale()).humanize(!H):this.localeData().invalidDate()},Ie.toNow=function ul(C){return this.to(wi(),C)},Ie.get=function Vt(C){return Ae(this[C=Jt(C)])?this[C]():this},Ie.invalidAt=function Ma(){return ne(this).overflow},Ie.isAfter=function I1(C,H){var O=Je(C)?C:wi(C);return!(!this.isValid()||!O.isValid())&&("millisecond"===(H=Jt(H)||"millisecond")?this.valueOf()>O.valueOf():O.valueOf()9999?on(O,H?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ae(Date.prototype.toISOString)?H?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",on(O,"Z")):on(O,H?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ie.inspect=function fo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var O,z,C="moment",H="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",H="Z"),O="["+C+'("]',z=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(O+z+"-MM-DD[T]HH:mm:ss.SSS"+H+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ie.toJSON=function lh(){return this.isValid()?this.toISOString():null},Ie.toString=function Wa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ie.unix=function xf(){return Math.floor(this.valueOf()/1e3)},Ie.valueOf=function kd(){return this._d.valueOf()-6e4*(this._offset||0)},Ie.creationData=function Pd(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ie.eraName=function yo(){var C,H,O,z=this.localeData().eras();for(C=0,H=z.length;Cthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ie.isLocal=function Oi(){return!!this.isValid()&&!this._isUTC},Ie.isUtcOffset=function gc(){return!!this.isValid()&&this._isUTC},Ie.isUtc=sl,Ie.isUTC=sl,Ie.zoneAbbr=function z1(){return this._isUTC?"UTC":""},Ie.zoneName=function F1(){return this._isUTC?"Coordinated Universal Time":""},Ie.dates=Et("dates accessor is deprecated. Use date instead.",qn),Ie.months=Et("months accessor is deprecated. Use month instead",Na),Ie.years=Et("years accessor is deprecated. Use year instead",On),Ie.zone=Et("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Td(C,H){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,H),this):-this.utcOffset()}),Ie.isDSTShifted=Et("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Dr(){if(!N(this._isDSTShifted))return this._isDSTShifted;var H,C={};return Tt(C,this),(C=hc(C))._a?(H=C._isUTC?ie(C._a):wi(C._a),this._isDSTShifted=this.isValid()&&function rl(C,H,O){var we,z=Math.min(C.length,H.length),Q=Math.abs(C.length-H.length),le=0;for(we=0;we0):this._isDSTShifted=!1,this._isDSTShifted});var ii=Pe.prototype;function Co(C,H,O,z){var Q=re(),le=ie().set(z,H);return Q[O](le,C)}function yl(C,H,O){if(j(C)&&(H=C,C=void 0),C=C||"",null!=H)return Co(C,H,O,"month");var z,Q=[];for(z=0;z<12;z++)Q[z]=Co(C,z,O,"month");return Q}function Bd(C,H,O,z){"boolean"==typeof C?(j(H)&&(O=H,H=void 0),H=H||""):(O=H=C,C=!1,j(H)&&(O=H,H=void 0),H=H||"");var we,Q=re(),le=C?Q._week.dow:0,ot=[];if(null!=O)return Co(H,(O+le)%7,z,"day");for(we=0;we<7;we++)ot[we]=Co(H,(we+le)%7,z,"day");return ot}ii.calendar=function Pt(C,H,O){var z=this._calendar[C]||this._calendar.sameElse;return Ae(z)?z.call(H,O):z},ii.longDateFormat=function ln(C){var H=this._longDateFormat[C],O=this._longDateFormat[C.toUpperCase()];return H||!O?H:(this._longDateFormat[C]=O.match(st).map(function(z){return"MMMM"===z||"MM"===z||"DD"===z||"dddd"===z?z.slice(1):z}).join(""),this._longDateFormat[C])},ii.invalidDate=function ca(){return this._invalidDate},ii.ordinal=function ue(C){return this._ordinal.replace("%d",C)},ii.preparse=va,ii.postformat=va,ii.relativeTime=function _e(C,H,O,z){var Q=this._relativeTime[O];return Ae(Q)?Q(C,H,O,z):Q.replace(/%d/i,C)},ii.pastFuture=function We(C,H){var O=this._relativeTime[C>0?"future":"past"];return Ae(O)?O(H):O.replace(/%s/i,H)},ii.set=function Ce(C){var H,O;for(O in C)L(C,O)&&(Ae(H=C[O])?this[O]=H:this["_"+O]=H);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ii.eras=function wa(C,H){var O,z,Q,le=this._eras||re("en")._eras;for(O=0,z=le.length;O=0)return le[z]},ii.erasConvertYear=function Ao(C,H){var O=C.since<=C.until?1:-1;return void 0===H?i(C.since).year():i(C.since).year()+(H-C.offset)*O},ii.erasAbbrRegex=function ml(C){return L(this,"_erasAbbrRegex")||uh.call(this),C?this._erasAbbrRegex:this._erasRegex},ii.erasNameRegex=function N1(C){return L(this,"_erasNameRegex")||uh.call(this),C?this._erasNameRegex:this._erasRegex},ii.erasNarrowRegex=function hi(C){return L(this,"_erasNarrowRegex")||uh.call(this),C?this._erasNarrowRegex:this._erasRegex},ii.months=function bs(C,H){return C?T(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||ha).test(H)?"format":"standalone"][C.month()]:T(this._months)?this._months:this._months.standalone},ii.monthsShort=function Ba(C,H){return C?T(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[ha.test(H)?"format":"standalone"][C.month()]:T(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ii.monthsParse=function As(C,H,O){var z,Q,le;if(this._monthsParseExact)return lc.call(this,C,H,O);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),z=0;z<12;z++){if(Q=ie([2e3,z]),O&&!this._longMonthsParse[z]&&(this._longMonthsParse[z]=new RegExp("^"+this.months(Q,"").replace(".","")+"$","i"),this._shortMonthsParse[z]=new RegExp("^"+this.monthsShort(Q,"").replace(".","")+"$","i")),!O&&!this._monthsParse[z]&&(le="^"+this.months(Q,"")+"|^"+this.monthsShort(Q,""),this._monthsParse[z]=new RegExp(le.replace(".",""),"i")),O&&"MMMM"===H&&this._longMonthsParse[z].test(C))return z;if(O&&"MMM"===H&&this._shortMonthsParse[z].test(C))return z;if(!O&&this._monthsParse[z].test(C))return z}},ii.monthsRegex=function gi(C){return this._monthsParseExact?(L(this,"_monthsRegex")||cc.call(this),C?this._monthsStrictRegex:this._monthsRegex):(L(this,"_monthsRegex")||(this._monthsRegex=Ht),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},ii.monthsShortRegex=function Kn(C){return this._monthsParseExact?(L(this,"_monthsRegex")||cc.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(L(this,"_monthsShortRegex")||(this._monthsShortRegex=Ti),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},ii.week=function Af(C){return ys(C,this._week.dow,this._week.doy).week},ii.firstDayOfYear=function Mf(){return this._week.doy},ii.firstDayOfWeek=function yf(){return this._week.dow},ii.weekdays=function no(C,H){var O=T(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(H)?"format":"standalone"];return!0===C?Ms(O,this._week.dow):C?O[C.day()]:O},ii.weekdaysMin=function ro(C){return!0===C?Ms(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},ii.weekdaysShort=function Ri(C){return!0===C?Ms(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},ii.weekdaysParse=function wd(C,H,O){var z,Q,le;if(this._weekdaysParseExact)return Jo.call(this,C,H,O);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),z=0;z<7;z++){if(Q=ie([2e3,1]).day(z),O&&!this._fullWeekdaysParse[z]&&(this._fullWeekdaysParse[z]=new RegExp("^"+this.weekdays(Q,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[z]=new RegExp("^"+this.weekdaysShort(Q,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[z]=new RegExp("^"+this.weekdaysMin(Q,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[z]||(le="^"+this.weekdays(Q,"")+"|^"+this.weekdaysShort(Q,"")+"|^"+this.weekdaysMin(Q,""),this._weekdaysParse[z]=new RegExp(le.replace(".",""),"i")),O&&"dddd"===H&&this._fullWeekdaysParse[z].test(C))return z;if(O&&"ddd"===H&&this._shortWeekdaysParse[z].test(C))return z;if(O&&"dd"===H&&this._minWeekdaysParse[z].test(C))return z;if(!O&&this._weekdaysParse[z].test(C))return z}},ii.weekdaysRegex=function Cs(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(L(this,"_weekdaysRegex")||(this._weekdaysRegex=He),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},ii.weekdaysShortRegex=function ht(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(L(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Md),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ii.weekdaysMinRegex=function ji(C){return this._weekdaysParseExact?(L(this,"_weekdaysRegex")||Zt.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(L(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ki),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ii.isPM=function Cd(C){return"p"===(C+"").toLowerCase().charAt(0)},ii.meridiem=function Ts(C,H,O){return C>11?O?"pm":"PM":O?"am":"AM"},G("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var H=C%10;return C+(1===xe(C%100/10)?"th":1===H?"st":2===H?"nd":3===H?"rd":"th")}}),i.lang=Et("moment.lang is deprecated. Use moment.locale instead.",G),i.langData=Et("moment.langData is deprecated. Use moment.localeData instead.",re);var Ar=Math.abs;function To(C,H,O,z){var Q=Hr(H,O);return C._milliseconds+=z*Q._milliseconds,C._days+=z*Q._days,C._months+=z*Q._months,C._bubble()}function ph(C){return C<0?Math.floor(C):Math.ceil(C)}function fh(C){return 4800*C/146097}function Tc(C){return 146097*C/4800}function kr(C){return function(){return this.as(C)}}var Bf=kr("ms"),pn=kr("s"),mh=kr("m"),Nf=kr("h"),zd=kr("d"),xo=kr("w"),j1=kr("M"),gh=kr("Q"),_h=kr("y");function $a(C){return function(){return this.isValid()?this._data[C]:NaN}}var Eo=$a("milliseconds"),Vf=$a("seconds"),bh=$a("minutes"),xc=$a("hours"),Sc=$a("days"),Ec=$a("months"),zf=$a("years");var Yn=Math.round,yr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Ah(C,H,O,z,Q){return Q.relativeTime(H||1,!!O,C,z)}var Dc=Math.abs;function Do(C){return(C>0)-(C<0)||+C}function Hc(){if(!this.isValid())return this.localeData().invalidDate();var z,Q,le,we,Rt,si,Bi,Pr,C=Dc(this._milliseconds)/1e3,H=Dc(this._days),O=Dc(this._months),ot=this.asSeconds();return ot?(z=Fe(C/60),Q=Fe(z/60),C%=60,z%=60,le=Fe(O/12),O%=12,we=C?C.toFixed(3).replace(/\.?0+$/,""):"",Rt=ot<0?"-":"",si=Do(this._months)!==Do(ot)?"-":"",Bi=Do(this._days)!==Do(ot)?"-":"",Pr=Do(this._milliseconds)!==Do(ot)?"-":"",Rt+"P"+(le?si+le+"Y":"")+(O?si+O+"M":"")+(H?Bi+H+"D":"")+(Q||z||C?"T":"")+(Q?Pr+Q+"H":"")+(z?Pr+z+"M":"")+(C?Pr+we+"S":"")):"P0D"}var rt=pc.prototype;return rt.isValid=function Xu(){return this._isValid},rt.abs=function Cc(){var C=this._data;return this._milliseconds=Ar(this._milliseconds),this._days=Ar(this._days),this._months=Ar(this._months),C.milliseconds=Ar(C.milliseconds),C.seconds=Ar(C.seconds),C.minutes=Ar(C.minutes),C.hours=Ar(C.hours),C.months=Ar(C.months),C.years=Ar(C.years),this},rt.add=function Vd(C,H){return To(this,C,H,1)},rt.subtract=function vc(C,H){return To(this,C,H,-1)},rt.as=function If(C){if(!this.isValid())return NaN;var H,O,z=this._milliseconds;if("month"===(C=Jt(C))||"quarter"===C||"year"===C)switch(H=this._days+z/864e5,O=this._months+fh(H),C){case"month":return O;case"quarter":return O/3;case"year":return O/12}else switch(H=this._days+Math.round(Tc(this._months)),C){case"week":return H/7+z/6048e5;case"day":return H+z/864e5;case"hour":return 24*H+z/36e5;case"minute":return 1440*H+z/6e4;case"second":return 86400*H+z/1e3;case"millisecond":return Math.floor(864e5*H)+z;default:throw new Error("Unknown unit "+C)}},rt.asMilliseconds=Bf,rt.asSeconds=pn,rt.asMinutes=mh,rt.asHours=Nf,rt.asDays=zd,rt.asWeeks=xo,rt.asMonths=j1,rt.asQuarters=gh,rt.asYears=_h,rt.valueOf=function Ml(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*xe(this._months/12):NaN},rt._bubble=function Of(){var Q,le,we,ot,Rt,C=this._milliseconds,H=this._days,O=this._months,z=this._data;return C>=0&&H>=0&&O>=0||C<=0&&H<=0&&O<=0||(C+=864e5*ph(Tc(O)+H),H=0,O=0),z.milliseconds=C%1e3,Q=Fe(C/1e3),z.seconds=Q%60,le=Fe(Q/60),z.minutes=le%60,we=Fe(le/60),z.hours=we%24,H+=Fe(we/24),O+=Rt=Fe(fh(H)),H-=ph(Tc(Rt)),ot=Fe(O/12),O%=12,z.days=H,z.months=O,z.years=ot,this},rt.clone=function So(){return Hr(this)},rt.get=function Za(C){return C=Jt(C),this.isValid()?this[C+"s"]():NaN},rt.milliseconds=Eo,rt.seconds=Vf,rt.minutes=bh,rt.hours=xc,rt.days=Sc,rt.weeks=function Ff(){return Fe(this.days()/7)},rt.months=Ec,rt.years=zf,rt.humanize=function Y1(C,H){if(!this.isValid())return this.localeData().invalidDate();var Q,le,O=!1,z=yr;return"object"==typeof C&&(H=C,C=!1),"boolean"==typeof C&&(O=C),"object"==typeof H&&(z=Object.assign({},yr,H),null!=H.s&&null==H.ss&&(z.ss=H.s-1)),le=function q1(C,H,O,z){var Q=Hr(C).abs(),le=Yn(Q.as("s")),we=Yn(Q.as("m")),ot=Yn(Q.as("h")),Rt=Yn(Q.as("d")),si=Yn(Q.as("M")),Bi=Yn(Q.as("w")),Pr=Yn(Q.as("y")),Rs=le<=O.ss&&["s",le]||le0,Rs[4]=z,Ah.apply(null,Rs)}(this,!O,z,Q=this.localeData()),O&&(le=Q.pastFuture(+this,le)),Q.postformat(le)},rt.toISOString=Hc,rt.toString=Hc,rt.toJSON=Hc,rt.locale=mo,rt.localeData=Ls,rt.toIsoString=Et("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Hc),rt.lang=yc,Ke("X",0,0,"unix"),Ke("x",0,0,"valueOf"),Be("x",ua),Be("X",/[+-]?\d+(\.\d{1,3})?/),St("X",function(C,H,O){O._d=new Date(1e3*parseFloat(C))}),St("x",function(C,H,O){O._d=new Date(xe(C))}),i.version="2.29.2",function E(C){w=C}(wi),i.fn=Ie,i.min=function hn(){return ei("isBefore",[].slice.call(arguments,0))},i.max=function Qu(){return ei("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=ie,i.unix=function rr(C){return wi(1e3*C)},i.months=function Pf(C,H){return yl(C,H,"months")},i.isDate=q,i.locale=G,i.invalid=Ne,i.duration=Hr,i.isMoment=Je,i.weekdays=function Rf(C,H,O){return Bd(C,H,O,"weekdays")},i.parseZone=function Id(){return wi.apply(null,arguments).parseZone()},i.localeData=re,i.isDuration=Ss,i.monthsShort=function wc(C,H){return yl(C,H,"monthsShort")},i.weekdaysMin=function Nd(C,H,O){return Bd(C,H,O,"weekdaysMin")},i.defineLocale=I,i.updateLocale=function J(C,H){if(null!=H){var O,z,Q=Xo;null!=bi[C]&&null!=bi[C].parentLocale?bi[C].set(Me(bi[C]._config,H)):(null!=(z=B(C))&&(Q=z._config),H=Me(Q,H),null==z&&(H.abbr=C),(O=new Pe(H)).parentLocale=bi[C],bi[C]=O),G(C)}else null!=bi[C]&&(null!=bi[C].parentLocale?(bi[C]=bi[C].parentLocale,C===G()&&G(C)):null!=bi[C]&&delete bi[C]);return bi[C]},i.locales=function ye(){return ge(bi)},i.weekdaysShort=function vo(C,H,O){return Bd(C,H,O,"weekdaysShort")},i.normalizeUnits=Jt,i.relativeTimeRounding=function yh(C){return void 0===C?Yn:"function"==typeof C&&(Yn=C,!0)},i.relativeTimeThreshold=function jf(C,H){return void 0!==yr[C]&&(void 0===H?yr[C]:(yr[C]=H,"s"===C&&(yr.ss=H-1),!0))},i.calendarFormat=function Ya(C,H){var O=C.diff(H,"days",!0);return O<-6?"sameElse":O<-1?"lastWeek":O<0?"lastDay":O<1?"sameDay":O<2?"nextDay":O<7?"nextWeek":"sameElse"},i.prototype=Ie,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},1869:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);class i extends w.L{constructor(T,S,L){super(),this.parent=T,this.outerValue=S,this.outerIndex=L,this.index=0}_next(T){this.parent.notifyNext(this.outerValue,T,this.outerIndex,this.index++,this)}_error(T){this.parent.notifyError(T,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},9312:(Y,U,x)=>{"use strict";x.d(U,{P:()=>S});var w=x(8896),i=x(1086),E=x(1737);class S{constructor(R,N,j){this.kind=R,this.value=N,this.error=j,this.hasValue="N"===R}observe(R){switch(this.kind){case"N":return R.next&&R.next(this.value);case"E":return R.error&&R.error(this.error);case"C":return R.complete&&R.complete()}}do(R,N,j){switch(this.kind){case"N":return R&&R(this.value);case"E":return N&&N(this.error);case"C":return j&&j()}}accept(R,N,j){return R&&"function"==typeof R.next?this.observe(R):this.do(R,N,j)}toObservable(){switch(this.kind){case"N":return(0,i.of)(this.value);case"E":return(0,E._)(this.error);case"C":return(0,w.c)()}throw new Error("unexpected notification kind value")}static createNext(R){return void 0!==R?new S("N",R):S.undefinedValueNotification}static createError(R){return new S("E",void 0,R)}static createComplete(){return S.completeNotification}}S.completeNotification=new S("C"),S.undefinedValueNotification=new S("N",void 0)},2916:(Y,U,x)=>{"use strict";x.d(U,{y:()=>$});var w=x(3489),E=x(7668),T=x(3292),L=x(3821),R=x(5379);var q=x(2830);let $=(()=>{class ie{constructor(ne){this._isScalar=!1,ne&&(this._subscribe=ne)}lift(ne){const de=new ie;return de.source=this,de.operator=ne,de}subscribe(ne,de,me){const{operator:Ne}=this,ze=function S(ie,ce,ne){if(ie){if(ie instanceof w.L)return ie;if(ie[E.b])return ie[E.b]()}return ie||ce||ne?new w.L(ie,ce,ne):new w.L(T.c)}(ne,de,me);if(ze.add(Ne?Ne.call(ze,this.source):this.source||q.v.useDeprecatedSynchronousErrorHandling&&!ze.syncErrorThrowable?this._subscribe(ze):this._trySubscribe(ze)),q.v.useDeprecatedSynchronousErrorHandling&&ze.syncErrorThrowable&&(ze.syncErrorThrowable=!1,ze.syncErrorThrown))throw ze.syncErrorValue;return ze}_trySubscribe(ne){try{return this._subscribe(ne)}catch(de){q.v.useDeprecatedSynchronousErrorHandling&&(ne.syncErrorThrown=!0,ne.syncErrorValue=de),function i(ie){for(;ie;){const{closed:ce,destination:ne,isStopped:de}=ie;if(ce||de)return!1;ie=ne&&ne instanceof w.L?ne:null}return!0}(ne)?ne.error(de):console.warn(de)}}forEach(ne,de){return new(de=X(de))((me,Ne)=>{let ze;ze=this.subscribe(Qe=>{try{ne(Qe)}catch(Tt){Ne(Tt),ze&&ze.unsubscribe()}},Ne,me)})}_subscribe(ne){const{source:de}=this;return de&&de.subscribe(ne)}[L.L](){return this}pipe(...ne){return 0===ne.length?this:function j(ie){return 0===ie.length?R.y:1===ie.length?ie[0]:function(ne){return ie.reduce((de,me)=>me(de),ne)}}(ne)(this)}toPromise(ne){return new(ne=X(ne))((de,me)=>{let Ne;this.subscribe(ze=>Ne=ze,ze=>me(ze),()=>de(Ne))})}}return ie.create=ce=>new ie(ce),ie})();function X(ie){if(ie||(ie=q.v.Promise||Promise),!ie)throw new Error("no Promise impl found");return ie}},3292:(Y,U,x)=>{"use strict";x.d(U,{c:()=>E});var w=x(2830),i=x(2782);const E={closed:!0,next(T){},error(T){if(w.v.useDeprecatedSynchronousErrorHandling)throw T;(0,i.z)(T)},complete(){}}},826:(Y,U,x)=>{"use strict";x.d(U,{L:()=>i});var w=x(3489);class i extends w.L{notifyNext(T,S,L,R,N){this.destination.next(S)}notifyError(T,S){this.destination.error(T)}notifyComplete(T){this.destination.complete()}}},8929:(Y,U,x)=>{"use strict";x.d(U,{Yc:()=>R,xQ:()=>N});var w=x(2916),i=x(3489),E=x(2654),T=x(5279),S=x(5283),L=x(7668);class R extends i.L{constructor($){super($),this.destination=$}}let N=(()=>{class q extends w.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[L.b](){return new R(this)}lift(X){const ie=new j(this,this);return ie.operator=X,ie}next(X){if(this.closed)throw new T.N;if(!this.isStopped){const{observers:ie}=this,ce=ie.length,ne=ie.slice();for(let de=0;denew j($,X),q})();class j extends N{constructor($,X){super(),this.destination=$,this.source=X}next($){const{destination:X}=this;X&&X.next&&X.next($)}error($){const{destination:X}=this;X&&X.error&&this.destination.error($)}complete(){const{destination:$}=this;$&&$.complete&&this.destination.complete()}_subscribe($){const{source:X}=this;return X?this.source.subscribe($):E.w.EMPTY}}},5283:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});var w=x(2654);class i extends w.w{constructor(T,S){super(),this.subject=T,this.subscriber=S,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const T=this.subject,S=T.observers;if(this.subject=null,!S||0===S.length||T.isStopped||T.closed)return;const L=S.indexOf(this.subscriber);-1!==L&&S.splice(L,1)}}},3489:(Y,U,x)=>{"use strict";x.d(U,{L:()=>R});var w=x(7043),i=x(3292),E=x(2654),T=x(7668),S=x(2830),L=x(2782);class R extends E.w{constructor(q,$,X){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.c;break;case 1:if(!q){this.destination=i.c;break}if("object"==typeof q){q instanceof R?(this.syncErrorThrowable=q.syncErrorThrowable,this.destination=q,q.add(this)):(this.syncErrorThrowable=!0,this.destination=new N(this,q));break}default:this.syncErrorThrowable=!0,this.destination=new N(this,q,$,X)}}[T.b](){return this}static create(q,$,X){const ie=new R(q,$,X);return ie.syncErrorThrowable=!1,ie}next(q){this.isStopped||this._next(q)}error(q){this.isStopped||(this.isStopped=!0,this._error(q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(q){this.destination.next(q)}_error(q){this.destination.error(q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=q,this}}class N extends R{constructor(q,$,X,ie){super(),this._parentSubscriber=q;let ce,ne=this;(0,w.m)($)?ce=$:$&&(ce=$.next,X=$.error,ie=$.complete,$!==i.c&&(ne=Object.create($),(0,w.m)(ne.unsubscribe)&&this.add(ne.unsubscribe.bind(ne)),ne.unsubscribe=this.unsubscribe.bind(this))),this._context=ne,this._next=ce,this._error=X,this._complete=ie}next(q){if(!this.isStopped&&this._next){const{_parentSubscriber:$}=this;S.v.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable?this.__tryOrSetError($,this._next,q)&&this.unsubscribe():this.__tryOrUnsub(this._next,q)}}error(q){if(!this.isStopped){const{_parentSubscriber:$}=this,{useDeprecatedSynchronousErrorHandling:X}=S.v;if(this._error)X&&$.syncErrorThrowable?(this.__tryOrSetError($,this._error,q),this.unsubscribe()):(this.__tryOrUnsub(this._error,q),this.unsubscribe());else if($.syncErrorThrowable)X?($.syncErrorValue=q,$.syncErrorThrown=!0):(0,L.z)(q),this.unsubscribe();else{if(this.unsubscribe(),X)throw q;(0,L.z)(q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:q}=this;if(this._complete){const $=()=>this._complete.call(this._context);S.v.useDeprecatedSynchronousErrorHandling&&q.syncErrorThrowable?(this.__tryOrSetError(q,$),this.unsubscribe()):(this.__tryOrUnsub($),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(q,$){try{q.call(this._context,$)}catch(X){if(this.unsubscribe(),S.v.useDeprecatedSynchronousErrorHandling)throw X;(0,L.z)(X)}}__tryOrSetError(q,$,X){if(!S.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{$.call(this._context,X)}catch(ie){return S.v.useDeprecatedSynchronousErrorHandling?(q.syncErrorValue=ie,q.syncErrorThrown=!0,!0):((0,L.z)(ie),!0)}return!1}_unsubscribe(){const{_parentSubscriber:q}=this;this._context=null,this._parentSubscriber=null,q.unsubscribe()}}},2654:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(6688),i=x(7830),E=x(7043);const S=(()=>{function N(j){return Error.call(this),this.message=j?`${j.length} errors occurred during unsubscription:\n${j.map((q,$)=>`${$+1}) ${q.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=j,this}return N.prototype=Object.create(Error.prototype),N})();class L{constructor(j){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,j&&(this._unsubscribe=j)}unsubscribe(){let j;if(this.closed)return;let{_parentOrParents:q,_unsubscribe:$,_subscriptions:X}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,q instanceof L)q.remove(this);else if(null!==q)for(let ie=0;iej.concat(q instanceof S?q.errors:q),[])}L.EMPTY=((N=new L).closed=!0,N)},2830:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(E){if(E){const T=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+T.stack)}else w&&console.log("RxJS: Back to a better error behavior. Thank you. <3");w=E},get useDeprecatedSynchronousErrorHandling(){return w}}},1762:(Y,U,x)=>{"use strict";x.d(U,{c:()=>S,N:()=>L});var w=x(8929),i=x(2916),E=x(2654),T=x(4327);class S extends i.y{constructor($,X){super(),this.source=$,this.subjectFactory=X,this._refCount=0,this._isComplete=!1}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let $=this._connection;return $||(this._isComplete=!1,$=this._connection=new E.w,$.add(this.source.subscribe(new R(this.getSubject(),this))),$.closed&&(this._connection=null,$=E.w.EMPTY)),$}refCount(){return(0,T.x)()(this)}}const L=(()=>{const q=S.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:q._subscribe},_isComplete:{value:q._isComplete,writable:!0},getSubject:{value:q.getSubject},connect:{value:q.connect},refCount:{value:q.refCount}}})();class R extends w.Yc{constructor($,X){super($),this.connectable=X}_error($){this._unsubscribe(),super._error($)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const $=this.connectable;if($){this.connectable=null;const X=$._connection;$._refCount=0,$._subject=null,$._connection=null,X&&X.unsubscribe()}}}},6053:(Y,U,x)=>{"use strict";x.d(U,{aj:()=>R});var w=x(2866),i=x(6688),E=x(826),T=x(9054),S=x(3009);const L={};function R(...q){let $=null,X=null;return(0,w.K)(q[q.length-1])&&(X=q.pop()),"function"==typeof q[q.length-1]&&($=q.pop()),1===q.length&&(0,i.k)(q[0])&&(q=q[0]),(0,S.n)(q,X).lift(new N($))}class N{constructor($){this.resultSelector=$}call($,X){return X.subscribe(new j($,this.resultSelector))}}class j extends E.L{constructor($,X){super($),this.resultSelector=X,this.active=0,this.values=[],this.observables=[]}_next($){this.values.push(L),this.observables.push($)}_complete(){const $=this.observables,X=$.length;if(0===X)this.destination.complete();else{this.active=X,this.toRespond=X;for(let ie=0;ie{"use strict";x.d(U,{E:()=>i,c:()=>E});var w=x(2916);const i=new w.y(S=>S.complete());function E(S){return S?function T(S){return new w.y(L=>S.schedule(()=>L.complete()))}(S):i}},5254:(Y,U,x)=>{"use strict";x.d(U,{D:()=>ne});var w=x(2916),i=x(9249),E=x(2654),T=x(3821),R=x(6454),N=x(5430),$=x(8955),X=x(8515);function ne(de,me){return me?function ce(de,me){if(null!=de){if(function q(de){return de&&"function"==typeof de[T.L]}(de))return function S(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>{const Qe=de[T.L]();ze.add(Qe.subscribe({next(Tt){ze.add(me.schedule(()=>Ne.next(Tt)))},error(Tt){ze.add(me.schedule(()=>Ne.error(Tt)))},complete(){ze.add(me.schedule(()=>Ne.complete()))}}))})),ze})}(de,me);if((0,$.t)(de))return function L(de,me){return new w.y(Ne=>{const ze=new E.w;return ze.add(me.schedule(()=>de.then(Qe=>{ze.add(me.schedule(()=>{Ne.next(Qe),ze.add(me.schedule(()=>Ne.complete()))}))},Qe=>{ze.add(me.schedule(()=>Ne.error(Qe)))}))),ze})}(de,me);if((0,X.z)(de))return(0,R.r)(de,me);if(function ie(de){return de&&"function"==typeof de[N.hZ]}(de)||"string"==typeof de)return function j(de,me){if(!de)throw new Error("Iterable cannot be null");return new w.y(Ne=>{const ze=new E.w;let Qe;return ze.add(()=>{Qe&&"function"==typeof Qe.return&&Qe.return()}),ze.add(me.schedule(()=>{Qe=de[N.hZ](),ze.add(me.schedule(function(){if(Ne.closed)return;let Tt,Ot;try{const Je=Qe.next();Tt=Je.value,Ot=Je.done}catch(Je){return void Ne.error(Je)}Ot?Ne.complete():(Ne.next(Tt),this.schedule())}))})),ze})}(de,me)}throw new TypeError((null!==de&&typeof de||de)+" is not observable")}(de,me):de instanceof w.y?de:new w.y((0,i.s)(de))}},3009:(Y,U,x)=>{"use strict";x.d(U,{n:()=>T});var w=x(2916),i=x(3650),E=x(6454);function T(S,L){return L?(0,E.r)(S,L):new w.y((0,i.V)(S))}},6787:(Y,U,x)=>{"use strict";x.d(U,{T:()=>S});var w=x(2916),i=x(2866),E=x(9146),T=x(3009);function S(...L){let R=Number.POSITIVE_INFINITY,N=null,j=L[L.length-1];return(0,i.K)(j)?(N=L.pop(),L.length>1&&"number"==typeof L[L.length-1]&&(R=L.pop())):"number"==typeof j&&(R=L.pop()),null===N&&1===L.length&&L[0]instanceof w.y?L[0]:(0,E.J)(R)((0,T.n)(L,N))}},1086:(Y,U,x)=>{"use strict";x.d(U,{of:()=>T});var w=x(2866),i=x(3009),E=x(6454);function T(...S){let L=S[S.length-1];return(0,w.K)(L)?(S.pop(),(0,E.r)(S,L)):(0,i.n)(S)}},1946:(Y,U,x)=>{"use strict";x.d(U,{S3:()=>S});var w=x(6688),i=x(3009),E=x(826),T=x(9054);function S(...N){if(1===N.length){if(!(0,w.k)(N[0]))return N[0];N=N[0]}return(0,i.n)(N,void 0).lift(new L)}class L{call(j,q){return q.subscribe(new R(j))}}class R extends E.L{constructor(j){super(j),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(j){this.observables.push(j)}_complete(){const j=this.observables,q=j.length;if(0===q)this.destination.complete();else{for(let $=0;${"use strict";x.d(U,{_:()=>i});var w=x(2916);function i(T,S){return new w.y(S?L=>S.schedule(E,0,{error:T,subscriber:L}):L=>L.error(T))}function E({error:T,subscriber:S}){S.error(T)}},7221:(Y,U,x)=>{"use strict";x.d(U,{K:()=>T});var w=x(826),i=x(1869),E=x(9054);function T(R){return function(j){const q=new S(R),$=j.lift(q);return q.caught=$}}class S{constructor(N){this.selector=N}call(N,j){return j.subscribe(new L(N,this.selector,this.caught))}}class L extends w.L{constructor(N,j,q){super(N),this.selector=j,this.caught=q}error(N){if(!this.isStopped){let j;try{j=this.selector(N,this.caught)}catch(X){return void super.error(X)}this._unsubscribeAndRecycle();const q=new i.d(this,void 0,void 0);this.add(q);const $=(0,E.D)(this,j,void 0,void 0,q);$!==q&&this.add($)}}}},1406:(Y,U,x)=>{"use strict";x.d(U,{b:()=>i});var w=x(1709);function i(E,T){return(0,w.zg)(E,T,1)}},13:(Y,U,x)=>{"use strict";x.d(U,{b:()=>E});var w=x(3489),i=x(353);function E(R,N=i.P){return j=>j.lift(new T(R,N))}class T{constructor(N,j){this.dueTime=N,this.scheduler=j}call(N,j){return j.subscribe(new S(N,this.dueTime,this.scheduler))}}class S extends w.L{constructor(N,j,q){super(N),this.dueTime=j,this.scheduler=q,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(N){this.clearDebounce(),this.lastValue=N,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(L,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:N}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(N)}}clearDebounce(){const N=this.debouncedSubscription;null!==N&&(this.remove(N),N.unsubscribe(),this.debouncedSubscription=null)}}function L(R){R.debouncedNext()}},7314:(Y,U,x)=>{"use strict";x.d(U,{d:()=>i});var w=x(3489);function i(S=null){return L=>L.lift(new E(S))}class E{constructor(L){this.defaultValue=L}call(L,R){return R.subscribe(new T(L,this.defaultValue))}}class T extends w.L{constructor(L,R){super(L),this.defaultValue=R,this.isEmpty=!0}_next(L){this.isEmpty=!1,this.destination.next(L)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},943:(Y,U,x)=>{"use strict";x.d(U,{g:()=>S});var w=x(353),i=x(2697),E=x(3489),T=x(9312);function S(j,q=w.P){const X=(0,i.J)(j)?+j-q.now():Math.abs(j);return ie=>ie.lift(new L(X,q))}class L{constructor(q,$){this.delay=q,this.scheduler=$}call(q,$){return $.subscribe(new R(q,this.delay,this.scheduler))}}class R extends E.L{constructor(q,$,X){super(q),this.delay=$,this.scheduler=X,this.queue=[],this.active=!1,this.errored=!1}static dispatch(q){const $=q.source,X=$.queue,ie=q.scheduler,ce=q.destination;for(;X.length>0&&X[0].time-ie.now()<=0;)X.shift().notification.observe(ce);if(X.length>0){const ne=Math.max(0,X[0].time-ie.now());this.schedule(q,ne)}else this.unsubscribe(),$.active=!1}_schedule(q){this.active=!0,this.destination.add(q.schedule(R.dispatch,this.delay,{source:this,destination:this.destination,scheduler:q}))}scheduleNotification(q){if(!0===this.errored)return;const $=this.scheduler,X=new N($.now()+this.delay,q);this.queue.push(X),!1===this.active&&this._schedule($)}_next(q){this.scheduleNotification(T.P.createNext(q))}_error(q){this.errored=!0,this.queue=[],this.destination.error(q),this.unsubscribe()}_complete(){this.scheduleNotification(T.P.createComplete()),this.unsubscribe()}}class N{constructor(q,$){this.time=q,this.notification=$}}},2198:(Y,U,x)=>{"use strict";x.d(U,{h:()=>i});var w=x(3489);function i(S,L){return function(N){return N.lift(new E(S,L))}}class E{constructor(L,R){this.predicate=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.predicate,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.predicate=R,this.thisArg=N,this.count=0}_next(L){let R;try{R=this.predicate.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}R&&this.destination.next(L)}}},7224:(Y,U,x)=>{"use strict";x.d(U,{P:()=>R});var w=x(4450),i=x(2198),E=x(2986),T=x(7314),S=x(4907),L=x(5379);function R(N,j){const q=arguments.length>=2;return $=>$.pipe(N?(0,i.h)((X,ie)=>N(X,ie,$)):L.y,(0,E.q)(1),q?(0,T.d)(j):(0,S.T)(()=>new w.K))}},4850:(Y,U,x)=>{"use strict";x.d(U,{U:()=>i});var w=x(3489);function i(S,L){return function(N){if("function"!=typeof S)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return N.lift(new E(S,L))}}class E{constructor(L,R){this.project=L,this.thisArg=R}call(L,R){return R.subscribe(new T(L,this.project,this.thisArg))}}class T extends w.L{constructor(L,R,N){super(L),this.project=R,this.count=0,this.thisArg=N||this}_next(L){let R;try{R=this.project.call(this.thisArg,L,this.count++)}catch(N){return void this.destination.error(N)}this.destination.next(R)}}},9146:(Y,U,x)=>{"use strict";x.d(U,{J:()=>E});var w=x(1709),i=x(5379);function E(T=Number.POSITIVE_INFINITY){return(0,w.zg)(i.y,T)}},1709:(Y,U,x)=>{"use strict";x.d(U,{zg:()=>L});var w=x(9054),i=x(826),E=x(1869),T=x(4850),S=x(5254);function L(j,q,$=Number.POSITIVE_INFINITY){return"function"==typeof q?X=>X.pipe(L((ie,ce)=>(0,S.D)(j(ie,ce)).pipe((0,T.U)((ne,de)=>q(ie,ne,ce,de))),$)):("number"==typeof q&&($=q),X=>X.lift(new R(j,$)))}class R{constructor(q,$=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=$}call(q,$){return $.subscribe(new N(q,this.project,this.concurrent))}}class N extends i.L{constructor(q,$,X=Number.POSITIVE_INFINITY){super(q),this.project=$,this.concurrent=X,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active0?this._next($.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Y,U,x)=>{"use strict";x.d(U,{x:()=>i});var w=x(3489);function i(){return function(L){return L.lift(new E(L))}}class E{constructor(L){this.connectable=L}call(L,R){const{connectable:N}=this;N._refCount++;const j=new T(L,N),q=R.subscribe(j);return j.closed||(j.connection=N.connect()),q}}class T extends w.L{constructor(L,R){super(L),this.connectable=R}_unsubscribe(){const{connectable:L}=this;if(!L)return void(this.connection=null);this.connectable=null;const R=L._refCount;if(R<=0)return void(this.connection=null);if(L._refCount=R-1,R>1)return void(this.connection=null);const{connection:N}=this,j=L._connection;this.connection=null,j&&(!N||j===N)&&j.unsubscribe()}}},2474:(Y,U,x)=>{"use strict";x.d(U,{B:()=>R});var w=x(1762);class E{constructor(j,q){this.subjectFactory=j,this.selector=q}call(j,q){const{selector:$}=this,X=this.subjectFactory(),ie=$(X).subscribe(j);return ie.add(q.subscribe(X)),ie}}var T=x(4327),S=x(8929);function L(){return new S.xQ}function R(){return N=>(0,T.x)()(function i(N,j){return function($){let X;if(X="function"==typeof N?N:function(){return N},"function"==typeof j)return $.lift(new E(X,j));const ie=Object.create($,w.N);return ie.source=$,ie.subjectFactory=X,ie}}(L)(N))}},7545:(Y,U,x)=>{"use strict";x.d(U,{w:()=>L});var w=x(826),i=x(1869),E=x(9054),T=x(4850),S=x(5254);function L(j,q){return"function"==typeof q?$=>$.pipe(L((X,ie)=>(0,S.D)(j(X,ie)).pipe((0,T.U)((ce,ne)=>q(X,ce,ie,ne))))):$=>$.lift(new R(j))}class R{constructor(q){this.project=q}call(q,$){return $.subscribe(new N(q,this.project))}}class N extends w.L{constructor(q,$){super(q),this.project=$,this.index=0}_next(q){let $;const X=this.index++;try{$=this.project(q,X)}catch(ie){return void this.destination.error(ie)}this._innerSub($,q,X)}_innerSub(q,$,X){const ie=this.innerSubscription;ie&&ie.unsubscribe();const ce=new i.d(this,$,X),ne=this.destination;ne.add(ce),this.innerSubscription=(0,E.D)(this,q,void 0,void 0,ce),this.innerSubscription!==ce&&ne.add(this.innerSubscription)}_complete(){const{innerSubscription:q}=this;(!q||q.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(q){this.destination.remove(q),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(q,$,X,ie,ce){this.destination.next($)}}},2986:(Y,U,x)=>{"use strict";x.d(U,{q:()=>T});var w=x(3489),i=x(4231),E=x(8896);function T(R){return N=>0===R?(0,E.c)():N.lift(new S(R))}class S{constructor(N){if(this.total=N,this.total<0)throw new i.W}call(N,j){return j.subscribe(new L(N,this.total))}}class L extends w.L{constructor(N,j){super(N),this.total=j,this.count=0}_next(N){const j=this.total,q=++this.count;q<=j&&(this.destination.next(N),q===j&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Y,U,x)=>{"use strict";x.d(U,{b:()=>T});var w=x(3489);function i(){}var E=x(7043);function T(R,N,j){return function($){return $.lift(new S(R,N,j))}}class S{constructor(N,j,q){this.nextOrObserver=N,this.error=j,this.complete=q}call(N,j){return j.subscribe(new L(N,this.nextOrObserver,this.error,this.complete))}}class L extends w.L{constructor(N,j,q,$){super(N),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=q||i,this._tapComplete=$||i,(0,E.m)(j)?(this._context=this,this._tapNext=j):j&&(this._context=j,this._tapNext=j.next||i,this._tapError=j.error||i,this._tapComplete=j.complete||i)}_next(N){try{this._tapNext.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.next(N)}_error(N){try{this._tapError.call(this._context,N)}catch(j){return void this.destination.error(j)}this.destination.error(N)}_complete(){try{this._tapComplete.call(this._context)}catch(N){return void this.destination.error(N)}return this.destination.complete()}}},4907:(Y,U,x)=>{"use strict";x.d(U,{T:()=>E});var w=x(4450),i=x(3489);function E(R=L){return N=>N.lift(new T(R))}class T{constructor(N){this.errorFactory=N}call(N,j){return j.subscribe(new S(N,this.errorFactory))}}class S extends i.L{constructor(N,j){super(N),this.errorFactory=j,this.hasValue=!1}_next(N){this.hasValue=!0,this.destination.next(N)}_complete(){if(this.hasValue)return this.destination.complete();{let N;try{N=this.errorFactory()}catch(j){N=j}this.destination.error(N)}}}function L(){return new w.K}},6227:(Y,U,x)=>{"use strict";x.d(U,{V:()=>$});var w=x(353);const E=(()=>{function X(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return X.prototype=Object.create(Error.prototype),X})();var T=x(2697),S=x(826),L=x(9054);class N{constructor(ie,ce,ne,de){this.waitFor=ie,this.absoluteTimeout=ce,this.withObservable=ne,this.scheduler=de}call(ie,ce){return ce.subscribe(new j(ie,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class j extends S.L{constructor(ie,ce,ne,de,me){super(ie),this.absoluteTimeout=ce,this.waitFor=ne,this.withObservable=de,this.scheduler=me,this.action=null,this.scheduleTimeout()}static dispatchTimeout(ie){const{withObservable:ce}=ie;ie._unsubscribeAndRecycle(),ie.add((0,L.D)(ie,ce))}scheduleTimeout(){const{action:ie}=this;ie?this.action=ie.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(j.dispatchTimeout,this.waitFor,this))}_next(ie){this.absoluteTimeout||this.scheduleTimeout(),super._next(ie)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var q=x(1737);function $(X,ie=w.P){return function R(X,ie,ce=w.P){return ne=>{let de=(0,T.J)(X),me=de?+X-ce.now():Math.abs(X);return ne.lift(new N(me,de,ie,ce))}}(X,(0,q._)(new E),ie)}},6454:(Y,U,x)=>{"use strict";x.d(U,{r:()=>E});var w=x(2916),i=x(2654);function E(T,S){return new w.y(L=>{const R=new i.w;let N=0;return R.add(S.schedule(function(){N!==T.length?(L.next(T[N++]),L.closed||R.add(this.schedule())):L.complete()})),R})}},6686:(Y,U,x)=>{"use strict";x.d(U,{o:()=>E});var w=x(2654);class i extends w.w{constructor(S,L){super()}schedule(S,L=0){return this}}class E extends i{constructor(S,L){super(S,L),this.scheduler=S,this.work=L,this.pending=!1}schedule(S,L=0){if(this.closed)return this;this.state=S;const R=this.id,N=this.scheduler;return null!=R&&(this.id=this.recycleAsyncId(N,R,L)),this.pending=!0,this.delay=L,this.id=this.id||this.requestAsyncId(N,this.id,L),this}requestAsyncId(S,L,R=0){return setInterval(S.flush.bind(S,this),R)}recycleAsyncId(S,L,R=0){if(null!==R&&this.delay===R&&!1===this.pending)return L;clearInterval(L)}execute(S,L){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const R=this._execute(S,L);if(R)return R;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(S,L){let N,R=!1;try{this.work(S)}catch(j){R=!0,N=!!j&&j||new Error(j)}if(R)return this.unsubscribe(),N}_unsubscribe(){const S=this.id,L=this.scheduler,R=L.actions,N=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==N&&R.splice(N,1),null!=S&&(this.id=this.recycleAsyncId(L,S,null)),this.delay=null}}},2268:(Y,U,x)=>{"use strict";x.d(U,{v:()=>i});let w=(()=>{class E{constructor(S,L=E.now){this.SchedulerAction=S,this.now=L}schedule(S,L=0,R){return new this.SchedulerAction(this,S).schedule(R,L)}}return E.now=()=>Date.now(),E})();class i extends w{constructor(T,S=w.now){super(T,()=>i.delegate&&i.delegate!==this?i.delegate.now():S()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(T,S=0,L){return i.delegate&&i.delegate!==this?i.delegate.schedule(T,S,L):super.schedule(T,S,L)}flush(T){const{actions:S}=this;if(this.active)return void S.push(T);let L;this.active=!0;do{if(L=T.execute(T.state,T.delay))break}while(T=S.shift());if(this.active=!1,L){for(;T=S.shift();)T.unsubscribe();throw L}}}},353:(Y,U,x)=>{"use strict";x.d(U,{P:()=>E});var w=x(6686);const E=new(x(2268).v)(w.o)},5430:(Y,U,x)=>{"use strict";x.d(U,{hZ:()=>i});const i=function w(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Y,U,x)=>{"use strict";x.d(U,{L:()=>w});const w="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Y,U,x)=>{"use strict";x.d(U,{b:()=>w});const w="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Y,U,x)=>{"use strict";x.d(U,{W:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return E.prototype=Object.create(Error.prototype),E})()},4450:(Y,U,x)=>{"use strict";x.d(U,{K:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return E.prototype=Object.create(Error.prototype),E})()},5279:(Y,U,x)=>{"use strict";x.d(U,{N:()=>i});const i=(()=>{function E(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return E.prototype=Object.create(Error.prototype),E})()},2782:(Y,U,x)=>{"use strict";function w(i){setTimeout(()=>{throw i},0)}x.d(U,{z:()=>w})},5379:(Y,U,x)=>{"use strict";function w(i){return i}x.d(U,{y:()=>w})},6688:(Y,U,x)=>{"use strict";x.d(U,{k:()=>w});const w=Array.isArray||(i=>i&&"number"==typeof i.length)},8515:(Y,U,x)=>{"use strict";x.d(U,{z:()=>w});const w=i=>i&&"number"==typeof i.length&&"function"!=typeof i},2697:(Y,U,x)=>{"use strict";function w(i){return i instanceof Date&&!isNaN(+i)}x.d(U,{J:()=>w})},7043:(Y,U,x)=>{"use strict";function w(i){return"function"==typeof i}x.d(U,{m:()=>w})},7830:(Y,U,x)=>{"use strict";function w(i){return null!==i&&"object"==typeof i}x.d(U,{K:()=>w})},8955:(Y,U,x)=>{"use strict";function w(i){return!!i&&"function"!=typeof i.subscribe&&"function"==typeof i.then}x.d(U,{t:()=>w})},2866:(Y,U,x)=>{"use strict";function w(i){return i&&"function"==typeof i.schedule}x.d(U,{K:()=>w})},9249:(Y,U,x)=>{"use strict";x.d(U,{s:()=>$});var w=x(3650),i=x(2782),T=x(5430),L=x(3821),N=x(8515),j=x(8955),q=x(7830);const $=X=>{if(X&&"function"==typeof X[L.L])return(X=>ie=>{const ce=X[L.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(ie)})(X);if((0,N.z)(X))return(0,w.V)(X);if((0,j.t)(X))return(X=>ie=>(X.then(ce=>{ie.closed||(ie.next(ce),ie.complete())},ce=>ie.error(ce)).then(null,i.z),ie))(X);if(X&&"function"==typeof X[T.hZ])return(X=>ie=>{const ce=X[T.hZ]();for(;;){const ne=ce.next();if(ne.done){ie.complete();break}if(ie.next(ne.value),ie.closed)break}return"function"==typeof ce.return&&ie.add(()=>{ce.return&&ce.return()}),ie})(X);{const ce=`You provided ${(0,q.K)(X)?"an invalid object":`'${X}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(Y,U,x)=>{"use strict";x.d(U,{V:()=>w});const w=i=>E=>{for(let T=0,S=i.length;T{"use strict";x.d(U,{D:()=>T});var w=x(1869),i=x(9249),E=x(2916);function T(S,L,R,N,j=new w.d(S,R,N)){if(!j.closed)return L instanceof E.y?L.subscribe(j):(0,i.s)(L)(j)}},6700:(Y,U,x)=>{var w={"./af":7088,"./af.js":7088,"./ar":7038,"./ar-dz":2502,"./ar-dz.js":2502,"./ar-kw":128,"./ar-kw.js":128,"./ar-ly":4519,"./ar-ly.js":4519,"./ar-ma":5443,"./ar-ma.js":5443,"./ar-sa":7642,"./ar-sa.js":7642,"./ar-tn":8592,"./ar-tn.js":8592,"./ar.js":7038,"./az":1213,"./az.js":1213,"./be":9191,"./be.js":9191,"./bg":322,"./bg.js":322,"./bm":8042,"./bm.js":8042,"./bn":9620,"./bn-bd":5903,"./bn-bd.js":5903,"./bn.js":9620,"./bo":9645,"./bo.js":9645,"./br":5020,"./br.js":5020,"./bs":4792,"./bs.js":4792,"./ca":7980,"./ca.js":7980,"./cs":7322,"./cs.js":7322,"./cv":365,"./cv.js":365,"./cy":2092,"./cy.js":2092,"./da":7387,"./da.js":7387,"./de":4307,"./de-at":9459,"./de-at.js":9459,"./de-ch":3694,"./de-ch.js":3694,"./de.js":4307,"./dv":9659,"./dv.js":9659,"./el":3460,"./el.js":3460,"./en-au":4369,"./en-au.js":4369,"./en-ca":530,"./en-ca.js":530,"./en-gb":9998,"./en-gb.js":9998,"./en-ie":3391,"./en-ie.js":3391,"./en-il":5414,"./en-il.js":5414,"./en-in":9615,"./en-in.js":9615,"./en-nz":1248,"./en-nz.js":1248,"./en-sg":3767,"./en-sg.js":3767,"./eo":4530,"./eo.js":4530,"./es":6866,"./es-do":8944,"./es-do.js":8944,"./es-mx":9116,"./es-mx.js":9116,"./es-us":3609,"./es-us.js":3609,"./es.js":6866,"./et":6725,"./et.js":6725,"./eu":7931,"./eu.js":7931,"./fa":6417,"./fa.js":6417,"./fi":944,"./fi.js":944,"./fil":1766,"./fil.js":1766,"./fo":5867,"./fo.js":5867,"./fr":1636,"./fr-ca":6848,"./fr-ca.js":6848,"./fr-ch":7773,"./fr-ch.js":7773,"./fr.js":1636,"./fy":4940,"./fy.js":4940,"./ga":1402,"./ga.js":1402,"./gd":6924,"./gd.js":6924,"./gl":6398,"./gl.js":6398,"./gom-deva":2457,"./gom-deva.js":2457,"./gom-latn":2545,"./gom-latn.js":2545,"./gu":2641,"./gu.js":2641,"./he":7536,"./he.js":7536,"./hi":6335,"./hi.js":6335,"./hr":7458,"./hr.js":7458,"./hu":6540,"./hu.js":6540,"./hy-am":3165,"./hy-am.js":3165,"./id":8780,"./id.js":8780,"./is":4205,"./is.js":4205,"./it":4211,"./it-ch":9985,"./it-ch.js":9985,"./it.js":4211,"./ja":1003,"./ja.js":1003,"./jv":420,"./jv.js":420,"./ka":851,"./ka.js":851,"./kk":6074,"./kk.js":6074,"./km":3343,"./km.js":3343,"./kn":4799,"./kn.js":4799,"./ko":3549,"./ko.js":3549,"./ku":1037,"./ku.js":1037,"./ky":3125,"./ky.js":3125,"./lb":9586,"./lb.js":9586,"./lo":2349,"./lo.js":2349,"./lt":2400,"./lt.js":2400,"./lv":9991,"./lv.js":9991,"./me":8477,"./me.js":8477,"./mi":5118,"./mi.js":5118,"./mk":5943,"./mk.js":5943,"./ml":3849,"./ml.js":3849,"./mn":1977,"./mn.js":1977,"./mr":6184,"./mr.js":6184,"./ms":485,"./ms-my":4524,"./ms-my.js":4524,"./ms.js":485,"./mt":6681,"./mt.js":6681,"./my":2024,"./my.js":2024,"./nb":2688,"./nb.js":2688,"./ne":8914,"./ne.js":8914,"./nl":1758,"./nl-be":2272,"./nl-be.js":2272,"./nl.js":1758,"./nn":1510,"./nn.js":1510,"./oc-lnc":2797,"./oc-lnc.js":2797,"./pa-in":7944,"./pa-in.js":7944,"./pl":1605,"./pl.js":1605,"./pt":4225,"./pt-br":3840,"./pt-br.js":3840,"./pt.js":4225,"./ro":5128,"./ro.js":5128,"./ru":5127,"./ru.js":5127,"./sd":2525,"./sd.js":2525,"./se":9893,"./se.js":9893,"./si":3123,"./si.js":3123,"./sk":9635,"./sk.js":9635,"./sl":8106,"./sl.js":8106,"./sq":8799,"./sq.js":8799,"./sr":7949,"./sr-cyrl":2872,"./sr-cyrl.js":2872,"./sr.js":7949,"./ss":6167,"./ss.js":6167,"./sv":9713,"./sv.js":9713,"./sw":1982,"./sw.js":1982,"./ta":2732,"./ta.js":2732,"./te":3636,"./te.js":3636,"./tet":2115,"./tet.js":2115,"./tg":9801,"./tg.js":9801,"./th":4486,"./th.js":4486,"./tk":1310,"./tk.js":1310,"./tl-ph":2360,"./tl-ph.js":2360,"./tlh":6645,"./tlh.js":6645,"./tr":8374,"./tr.js":8374,"./tzl":256,"./tzl.js":256,"./tzm":1595,"./tzm-latn":1631,"./tzm-latn.js":1631,"./tzm.js":1595,"./ug-cn":6050,"./ug-cn.js":6050,"./uk":5610,"./uk.js":5610,"./ur":6077,"./ur.js":6077,"./uz":2862,"./uz-latn":2207,"./uz-latn.js":2207,"./uz.js":2862,"./vi":8093,"./vi.js":8093,"./x-pseudo":5590,"./x-pseudo.js":5590,"./yo":9058,"./yo.js":9058,"./zh-cn":7908,"./zh-cn.js":7908,"./zh-hk":8867,"./zh-hk.js":8867,"./zh-mo":1133,"./zh-mo.js":1133,"./zh-tw":3291,"./zh-tw.js":3291};function i(T){var S=E(T);return x(S)}function E(T){if(!x.o(w,T)){var S=new Error("Cannot find module '"+T+"'");throw S.code="MODULE_NOT_FOUND",S}return w[T]}i.keys=function(){return Object.keys(w)},i.resolve=E,Y.exports=i,i.id=6700},655:(Y,U,x)=>{"use strict";function N(fe,Ae,Ce,Me){return new(Ce||(Ce=Promise))(function(ge,xt){function Pt(bt){try{st(Me.next(bt))}catch(kn){xt(kn)}}function Ci(bt){try{st(Me.throw(bt))}catch(kn){xt(kn)}}function st(bt){bt.done?ge(bt.value):function Pe(ge){return ge instanceof Ce?ge:new Ce(function(xt){xt(ge)})}(bt.value).then(Pt,Ci)}st((Me=Me.apply(fe,Ae||[])).next())})}x.d(U,{mG:()=>N})},9808:(Y,U,x)=>{"use strict";x.d(U,{mr:()=>ze,Ov:()=>Uu,ez:()=>Fa,K0:()=>R,uU:()=>He,Do:()=>Tt,V_:()=>q,Ye:()=>Ot,S$:()=>me,mk:()=>Ba,sg:()=>Mn,O5:()=>Kn,PC:()=>ys,RF:()=>On,n9:()=>er,ED:()=>Qo,b0:()=>Qe,lw:()=>N,gd:()=>un,EM:()=>xs,JF:()=>Li,NF:()=>Fn,PM:()=>Cn,w_:()=>L,bD:()=>_i,q:()=>E,Mx:()=>bs,HT:()=>S});var w=x(5e3);let i=null;function E(){return i}function S(B){i||(i=B)}class L{}const R=new w.OlP("DocumentToken");let N=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function j(){return(0,w.LFG)($)}()},providedIn:"platform"}),B})();const q=new w.OlP("Location Initialized");let $=(()=>{class B extends N{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return E().getBaseHref(this._doc)}onPopState(I){const J=E().getGlobalEventTarget(this._doc,"window");return J.addEventListener("popstate",I,!1),()=>J.removeEventListener("popstate",I)}onHashChange(I){const J=E().getGlobalEventTarget(this._doc,"window");return J.addEventListener("hashchange",I,!1),()=>J.removeEventListener("hashchange",I)}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(I){this.location.pathname=I}pushState(I,J,re){X()?this._history.pushState(I,J,re):this.location.hash=re}replaceState(I,J,re){X()?this._history.replaceState(I,J,re):this.location.hash=re}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(R))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function ie(){return new $((0,w.LFG)(R))}()},providedIn:"platform"}),B})();function X(){return!!window.history.pushState}function ce(B,G){if(0==B.length)return G;if(0==G.length)return B;let I=0;return B.endsWith("/")&&I++,G.startsWith("/")&&I++,2==I?B+G.substring(1):1==I?B+G:B+"/"+G}function ne(B){const G=B.match(/#|\?|$/),I=G&&G.index||B.length;return B.slice(0,I-("/"===B[I-1]?1:0))+B.slice(I)}function de(B){return B&&"?"!==B[0]?"?"+B:B}let me=(()=>{class B{historyGo(I){throw new Error("Not implemented")}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Ne(B){const G=(0,w.LFG)(R).location;return new Qe((0,w.LFG)(N),G&&G.origin||"")}()},providedIn:"root"}),B})();const ze=new w.OlP("appBaseHref");let Qe=(()=>{class B extends me{constructor(I,J){if(super(),this._platformLocation=I,this._removeListenerFns=[],null==J&&(J=this._platformLocation.getBaseHrefFromDOM()),null==J)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=J}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ce(this._baseHref,I)}path(I=!1){const J=this._platformLocation.pathname+de(this._platformLocation.search),re=this._platformLocation.hash;return re&&I?`${J}${re}`:J}pushState(I,J,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.pushState(I,J,Se)}replaceState(I,J,re,ye){const Se=this.prepareExternalUrl(re+de(ye));this._platformLocation.replaceState(I,J,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var J,re;null===(re=(J=this._platformLocation).historyGo)||void 0===re||re.call(J,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),Tt=(()=>{class B extends me{constructor(I,J){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=J&&(this._baseHref=J)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let J=this._platformLocation.hash;return null==J&&(J="#"),J.length>0?J.substring(1):J}prepareExternalUrl(I){const J=ce(this._baseHref,I);return J.length>0?"#"+J:J}pushState(I,J,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.pushState(I,J,Se)}replaceState(I,J,re,ye){let Se=this.prepareExternalUrl(re+de(ye));0==Se.length&&(Se=this._platformLocation.pathname),this._platformLocation.replaceState(I,J,Se)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var J,re;null===(re=(J=this._platformLocation).historyGo)||void 0===re||re.call(J,I)}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(N),w.LFG(ze,8))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})(),Ot=(()=>{class B{constructor(I,J){this._subject=new w.vpe,this._urlChangeListeners=[],this._platformStrategy=I;const re=this._platformStrategy.getBaseHref();this._platformLocation=J,this._baseHref=ne(Et(re)),this._platformStrategy.onPopState(ye=>{this._subject.emit({url:this.path(!0),pop:!0,state:ye.state,type:ye.type})})}path(I=!1){return this.normalize(this._platformStrategy.path(I))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(I,J=""){return this.path()==this.normalize(I+de(J))}normalize(I){return B.stripTrailingSlash(function Ui(B,G){return B&&G.startsWith(B)?G.substring(B.length):G}(this._baseHref,Et(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._platformStrategy.prepareExternalUrl(I)}go(I,J="",re=null){this._platformStrategy.pushState(re,"",I,J),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(J)),re)}replaceState(I,J="",re=null){this._platformStrategy.replaceState(re,"",I,J),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+de(J)),re)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(I=0){var J,re;null===(re=(J=this._platformStrategy).historyGo)||void 0===re||re.call(J,I)}onUrlChange(I){this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(J=>{this._notifyUrlChangeListeners(J.url,J.state)}))}_notifyUrlChangeListeners(I="",J){this._urlChangeListeners.forEach(re=>re(I,J))}subscribe(I,J,re){return this._subject.subscribe({next:I,error:J,complete:re})}}return B.normalizeQueryParams=de,B.joinWithSlash=ce,B.stripTrailingSlash=ne,B.\u0275fac=function(I){return new(I||B)(w.LFG(me),w.LFG(N))},B.\u0275prov=w.Yz7({token:B,factory:function(){return function Je(){return new Ot((0,w.LFG)(me),(0,w.LFG)(N))}()},providedIn:"root"}),B})();function Et(B){return B.replace(/\/index.html$/,"")}var Ae=(()=>((Ae=Ae||{})[Ae.Zero=0]="Zero",Ae[Ae.One=1]="One",Ae[Ae.Two=2]="Two",Ae[Ae.Few=3]="Few",Ae[Ae.Many=4]="Many",Ae[Ae.Other=5]="Other",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Format=0]="Format",Ce[Ce.Standalone=1]="Standalone",Ce))(),Me=(()=>((Me=Me||{})[Me.Narrow=0]="Narrow",Me[Me.Abbreviated=1]="Abbreviated",Me[Me.Wide=2]="Wide",Me[Me.Short=3]="Short",Me))(),Pe=(()=>((Pe=Pe||{})[Pe.Short=0]="Short",Pe[Pe.Medium=1]="Medium",Pe[Pe.Long=2]="Long",Pe[Pe.Full=3]="Full",Pe))(),ge=(()=>((ge=ge||{})[ge.Decimal=0]="Decimal",ge[ge.Group=1]="Group",ge[ge.List=2]="List",ge[ge.PercentSign=3]="PercentSign",ge[ge.PlusSign=4]="PlusSign",ge[ge.MinusSign=5]="MinusSign",ge[ge.Exponential=6]="Exponential",ge[ge.SuperscriptingExponent=7]="SuperscriptingExponent",ge[ge.PerMille=8]="PerMille",ge[ge.Infinity=9]="Infinity",ge[ge.NaN=10]="NaN",ge[ge.TimeSeparator=11]="TimeSeparator",ge[ge.CurrencyDecimal=12]="CurrencyDecimal",ge[ge.CurrencyGroup=13]="CurrencyGroup",ge))();function di(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateFormat],G)}function pr(B,G){return Ue((0,w.cg1)(B)[w.wAp.TimeFormat],G)}function on(B,G){return Ue((0,w.cg1)(B)[w.wAp.DateTimeFormat],G)}function pi(B,G){const I=(0,w.cg1)(B),J=I[w.wAp.NumberSymbols][G];if(void 0===J){if(G===ge.CurrencyDecimal)return I[w.wAp.NumberSymbols][ge.Decimal];if(G===ge.CurrencyGroup)return I[w.wAp.NumberSymbols][ge.Group]}return J}const Pn=w.kL8;function ue(B){if(!B[w.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${B[w.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(B,G){for(let I=G;I>-1;I--)if(void 0!==B[I])return B[I];throw new Error("Locale data API: locale data undefined")}function it(B){const[G,I]=B.split(":");return{hours:+G,minutes:+I}}const oe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Re={},De=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Fe=(()=>((Fe=Fe||{})[Fe.Short=0]="Short",Fe[Fe.ShortGMT=1]="ShortGMT",Fe[Fe.Long=2]="Long",Fe[Fe.Extended=3]="Extended",Fe))(),xe=(()=>((xe=xe||{})[xe.FullYear=0]="FullYear",xe[xe.Month=1]="Month",xe[xe.Date=2]="Date",xe[xe.Hours=3]="Hours",xe[xe.Minutes=4]="Minutes",xe[xe.Seconds=5]="Seconds",xe[xe.FractionalSeconds=6]="FractionalSeconds",xe[xe.Day=7]="Day",xe))(),Ge=(()=>((Ge=Ge||{})[Ge.DayPeriods=0]="DayPeriods",Ge[Ge.Days=1]="Days",Ge[Ge.Months=2]="Months",Ge[Ge.Eras=3]="Eras",Ge))();function Bt(B,G,I,J){let re=function Be(B){if(cn(B))return B;if("number"==typeof B&&!isNaN(B))return new Date(B);if("string"==typeof B){if(B=B.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(B)){const[re,ye=1,Se=1]=B.split("-").map(nt=>+nt);return zi(re,ye-1,Se)}const I=parseFloat(B);if(!isNaN(B-I))return new Date(I);let J;if(J=B.match(oe))return function vi(B){const G=new Date(0);let I=0,J=0;const re=B[8]?G.setUTCFullYear:G.setFullYear,ye=B[8]?G.setUTCHours:G.setHours;B[9]&&(I=Number(B[9]+B[10]),J=Number(B[9]+B[11])),re.call(G,Number(B[1]),Number(B[2])-1,Number(B[3]));const Se=Number(B[4]||0)-I,nt=Number(B[5]||0)-J,Yt=Number(B[6]||0),Xt=Math.floor(1e3*parseFloat("0."+(B[7]||0)));return ye.call(G,Se,nt,Yt,Xt),G}(J)}const G=new Date(B);if(!cn(G))throw new Error(`Unable to convert "${B}" into a date`);return G}(B);G=Vt(I,G)||G;let nt,Se=[];for(;G;){if(nt=De.exec(G),!nt){Se.push(G);break}{Se=Se.concat(nt.slice(1));const At=Se.pop();if(!At)break;G=At}}let Yt=re.getTimezoneOffset();J&&(Yt=_s(J,Yt),re=function M(B,G,I){const J=I?-1:1,re=B.getTimezoneOffset();return function to(B,G){return(B=new Date(B.getTime())).setMinutes(B.getMinutes()+G),B}(B,J*(_s(G,re)-re))}(re,J,!0));let Xt="";return Se.forEach(At=>{const Ft=function gs(B){if(mr[B])return mr[B];let G;switch(B){case"G":case"GG":case"GGG":G=Gt(Ge.Eras,Me.Abbreviated);break;case"GGGG":G=Gt(Ge.Eras,Me.Wide);break;case"GGGGG":G=Gt(Ge.Eras,Me.Narrow);break;case"y":G=Ze(xe.FullYear,1,0,!1,!0);break;case"yy":G=Ze(xe.FullYear,2,0,!0,!0);break;case"yyy":G=Ze(xe.FullYear,3,0,!1,!0);break;case"yyyy":G=Ze(xe.FullYear,4,0,!1,!0);break;case"Y":G=ua(1);break;case"YY":G=ua(2,!0);break;case"YYY":G=ua(3);break;case"YYYY":G=ua(4);break;case"M":case"L":G=Ze(xe.Month,1,1);break;case"MM":case"LL":G=Ze(xe.Month,2,1);break;case"MMM":G=Gt(Ge.Months,Me.Abbreviated);break;case"MMMM":G=Gt(Ge.Months,Me.Wide);break;case"MMMMM":G=Gt(Ge.Months,Me.Narrow);break;case"LLL":G=Gt(Ge.Months,Me.Abbreviated,Ce.Standalone);break;case"LLLL":G=Gt(Ge.Months,Me.Wide,Ce.Standalone);break;case"LLLLL":G=Gt(Ge.Months,Me.Narrow,Ce.Standalone);break;case"w":G=da(1);break;case"ww":G=da(2);break;case"W":G=da(1,!0);break;case"d":G=Ze(xe.Date,1);break;case"dd":G=Ze(xe.Date,2);break;case"c":case"cc":G=Ze(xe.Day,1);break;case"ccc":G=Gt(Ge.Days,Me.Abbreviated,Ce.Standalone);break;case"cccc":G=Gt(Ge.Days,Me.Wide,Ce.Standalone);break;case"ccccc":G=Gt(Ge.Days,Me.Narrow,Ce.Standalone);break;case"cccccc":G=Gt(Ge.Days,Me.Short,Ce.Standalone);break;case"E":case"EE":case"EEE":G=Gt(Ge.Days,Me.Abbreviated);break;case"EEEE":G=Gt(Ge.Days,Me.Wide);break;case"EEEEE":G=Gt(Ge.Days,Me.Narrow);break;case"EEEEEE":G=Gt(Ge.Days,Me.Short);break;case"a":case"aa":case"aaa":G=Gt(Ge.DayPeriods,Me.Abbreviated);break;case"aaaa":G=Gt(Ge.DayPeriods,Me.Wide);break;case"aaaaa":G=Gt(Ge.DayPeriods,Me.Narrow);break;case"b":case"bb":case"bbb":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Standalone,!0);break;case"bbbb":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Standalone,!0);break;case"bbbbb":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Standalone,!0);break;case"B":case"BB":case"BBB":G=Gt(Ge.DayPeriods,Me.Abbreviated,Ce.Format,!0);break;case"BBBB":G=Gt(Ge.DayPeriods,Me.Wide,Ce.Format,!0);break;case"BBBBB":G=Gt(Ge.DayPeriods,Me.Narrow,Ce.Format,!0);break;case"h":G=Ze(xe.Hours,1,-12);break;case"hh":G=Ze(xe.Hours,2,-12);break;case"H":G=Ze(xe.Hours,1);break;case"HH":G=Ze(xe.Hours,2);break;case"m":G=Ze(xe.Minutes,1);break;case"mm":G=Ze(xe.Minutes,2);break;case"s":G=Ze(xe.Seconds,1);break;case"ss":G=Ze(xe.Seconds,2);break;case"S":G=Ze(xe.FractionalSeconds,1);break;case"SS":G=Ze(xe.FractionalSeconds,2);break;case"SSS":G=Ze(xe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":G=fr(Fe.Short);break;case"ZZZZZ":G=fr(Fe.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":G=fr(Fe.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":G=fr(Fe.Long);break;default:return null}return mr[B]=G,G}(At);Xt+=Ft?Ft(re,I,Yt):"''"===At?"'":At.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Xt}function zi(B,G,I){const J=new Date(0);return J.setFullYear(B,G,I),J.setHours(0,0,0),J}function Vt(B,G){const I=function Pt(B){return(0,w.cg1)(B)[w.wAp.LocaleId]}(B);if(Re[I]=Re[I]||{},Re[I][G])return Re[I][G];let J="";switch(G){case"shortDate":J=di(B,Pe.Short);break;case"mediumDate":J=di(B,Pe.Medium);break;case"longDate":J=di(B,Pe.Long);break;case"fullDate":J=di(B,Pe.Full);break;case"shortTime":J=pr(B,Pe.Short);break;case"mediumTime":J=pr(B,Pe.Medium);break;case"longTime":J=pr(B,Pe.Long);break;case"fullTime":J=pr(B,Pe.Full);break;case"short":const re=Vt(B,"shortTime"),ye=Vt(B,"shortDate");J=jr(on(B,Pe.Short),[re,ye]);break;case"medium":const Se=Vt(B,"mediumTime"),nt=Vt(B,"mediumDate");J=jr(on(B,Pe.Medium),[Se,nt]);break;case"long":const Yt=Vt(B,"longTime"),Xt=Vt(B,"longDate");J=jr(on(B,Pe.Long),[Yt,Xt]);break;case"full":const At=Vt(B,"fullTime"),Ft=Vt(B,"fullDate");J=jr(on(B,Pe.Full),[At,Ft])}return J&&(Re[I][G]=J),J}function jr(B,G){return G&&(B=B.replace(/\{([^}]+)}/g,function(I,J){return null!=G&&J in G?G[J]:I})),B}function Fi(B,G,I="-",J,re){let ye="";(B<0||re&&B<=0)&&(re?B=1-B:(B=-B,ye=I));let Se=String(B);for(;Se.length0||nt>-I)&&(nt+=I),B===xe.Hours)0===nt&&-12===I&&(nt=12);else if(B===xe.FractionalSeconds)return function ft(B,G){return Fi(B,3).substr(0,G)}(nt,G);const Yt=pi(Se,ge.MinusSign);return Fi(nt,G,Yt,J,re)}}function Gt(B,G,I=Ce.Format,J=!1){return function(re,ye){return function Dt(B,G,I,J,re,ye){switch(I){case Ge.Months:return function bt(B,G,I){const J=(0,w.cg1)(B),ye=Ue([J[w.wAp.MonthsFormat],J[w.wAp.MonthsStandalone]],G);return Ue(ye,I)}(G,re,J)[B.getMonth()];case Ge.Days:return function st(B,G,I){const J=(0,w.cg1)(B),ye=Ue([J[w.wAp.DaysFormat],J[w.wAp.DaysStandalone]],G);return Ue(ye,I)}(G,re,J)[B.getDay()];case Ge.DayPeriods:const Se=B.getHours(),nt=B.getMinutes();if(ye){const Xt=function ke(B){const G=(0,w.cg1)(B);return ue(G),(G[w.wAp.ExtraData][2]||[]).map(J=>"string"==typeof J?it(J):[it(J[0]),it(J[1])])}(G),At=function _e(B,G,I){const J=(0,w.cg1)(B);ue(J);const ye=Ue([J[w.wAp.ExtraData][0],J[w.wAp.ExtraData][1]],G)||[];return Ue(ye,I)||[]}(G,re,J),Ft=Xt.findIndex(Zi=>{if(Array.isArray(Zi)){const[xi,ki]=Zi,_a=Se>=xi.hours&&nt>=xi.minutes,Er=Se0?Math.floor(re/60):Math.ceil(re/60);switch(B){case Fe.Short:return(re>=0?"+":"")+Fi(Se,2,ye)+Fi(Math.abs(re%60),2,ye);case Fe.ShortGMT:return"GMT"+(re>=0?"+":"")+Fi(Se,1,ye);case Fe.Long:return"GMT"+(re>=0?"+":"")+Fi(Se,2,ye)+":"+Fi(Math.abs(re%60),2,ye);case Fe.Extended:return 0===J?"Z":(re>=0?"+":"")+Fi(Se,2,ye)+":"+Fi(Math.abs(re%60),2,ye);default:throw new Error(`Unknown zone width "${B}"`)}}}function Ia(B){return zi(B.getFullYear(),B.getMonth(),B.getDate()+(4-B.getDay()))}function da(B,G=!1){return function(I,J){let re;if(G){const ye=new Date(I.getFullYear(),I.getMonth(),1).getDay()-1,Se=I.getDate();re=1+Math.floor((Se+ye)/7)}else{const ye=Ia(I),Se=function oc(B){const G=zi(B,0,1).getDay();return zi(B,0,1+(G<=4?4:11)-G)}(ye.getFullYear()),nt=ye.getTime()-Se.getTime();re=1+Math.round(nt/6048e5)}return Fi(re,B,pi(J,ge.MinusSign))}}function ua(B,G=!1){return function(I,J){return Fi(Ia(I).getFullYear(),B,pi(J,ge.MinusSign),G)}}const mr={};function _s(B,G){B=B.replace(/:/g,"");const I=Date.parse("Jan 01, 1970 00:00:00 "+B)/6e4;return isNaN(I)?G:I}function cn(B){return B instanceof Date&&!isNaN(B.valueOf())}class mi{}let Ti=(()=>{class B extends mi{constructor(I){super(),this.locale=I}getPluralCategory(I,J){switch(Pn(J||this.locale)(I)){case Ae.Zero:return"zero";case Ae.One:return"one";case Ae.Two:return"two";case Ae.Few:return"few";case Ae.Many:return"many";default:return"other"}}}return B.\u0275fac=function(I){return new(I||B)(w.LFG(w.soG))},B.\u0275prov=w.Yz7({token:B,factory:B.\u0275fac}),B})();function bs(B,G){G=encodeURIComponent(G);for(const I of B.split(";")){const J=I.indexOf("="),[re,ye]=-1==J?[I,""]:[I.slice(0,J),I.slice(J+1)];if(re.trim()===G)return decodeURIComponent(ye)}return null}let Ba=(()=>{class B{constructor(I,J,re,ye){this._iterableDiffers=I,this._keyValueDiffers=J,this._ngEl=re,this._renderer=ye,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,w.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(J=>this._toggleClass(J.key,J.currentValue)),I.forEachChangedItem(J=>this._toggleClass(J.key,J.currentValue)),I.forEachRemovedItem(J=>{J.previousValue&&this._toggleClass(J.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(J=>{if("string"!=typeof J.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,w.AaK)(J.item)}`);this._toggleClass(J.item,!0)}),I.forEachRemovedItem(J=>this._toggleClass(J.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(J=>this._toggleClass(J,!0)):Object.keys(I).forEach(J=>this._toggleClass(J,!!I[J])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(J=>this._toggleClass(J,!1)):Object.keys(I).forEach(J=>this._toggleClass(J,!1)))}_toggleClass(I,J){(I=I.trim())&&I.split(/\s+/g).forEach(re=>{J?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.ZZ4),w.Y36(w.aQg),w.Y36(w.SBq),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),B})();class As{constructor(G,I,J,re){this.$implicit=G,this.ngForOf=I,this.index=J,this.count=re}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 Mn=(()=>{class B{constructor(I,J,re){this._viewContainer=I,this._template=J,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const J=this._viewContainer;I.forEachOperation((re,ye,Se)=>{if(null==re.previousIndex)J.createEmbeddedView(this._template,new As(re.item,this._ngForOf,-1,-1),null===Se?void 0:Se);else if(null==Se)J.remove(null===ye?void 0:ye);else if(null!==ye){const nt=J.get(ye);J.move(nt,Se),Na(nt,re)}});for(let re=0,ye=J.length;re{Na(J.get(re.currentIndex),re)})}static ngTemplateContextGuard(I,J){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(w.ZZ4))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),B})();function Na(B,G){B.context.$implicit=G.item}let Kn=(()=>{class B{constructor(I,J){this._viewContainer=I,this._context=new gi,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=J}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){cc("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){cc("ngIfElse",I),this._elseTemplateRef=I,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(I,J){return!0}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),B})();class gi{constructor(){this.$implicit=null,this.ngIf=null}}function cc(B,G){if(G&&!G.createEmbeddedView)throw new Error(`${B} must be a TemplateRef, but received '${(0,w.AaK)(G)}'.`)}class Va{constructor(G,I){this._viewContainerRef=G,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(G){G&&!this._created?this.create():!G&&this._created&&this.destroy()}}let On=(()=>{class B{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const J=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||J,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),J}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let J=0;J{class B{constructor(I,J,re){this.ngSwitch=re,re._addCase(),this._view=new Va(I,J)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),B})(),Qo=(()=>{class B{constructor(I,J,re){re._addDefault(new Va(I,J))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.s_b),w.Y36(w.Rgc),w.Y36(On,9))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngSwitchDefault",""]]}),B})(),ys=(()=>{class B{constructor(I,J,re){this._ngEl=I,this._differs=J,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,J){const[re,ye]=I.split(".");null!=(J=null!=J&&ye?`${J}${ye}`:J)?this._renderer.setStyle(this._ngEl.nativeElement,re,J):this._renderer.removeStyle(this._ngEl.nativeElement,re)}_applyChanges(I){I.forEachRemovedItem(J=>this._setStyle(J.key,null)),I.forEachAddedItem(J=>this._setStyle(J.key,J.currentValue)),I.forEachChangedItem(J=>this._setStyle(J.key,J.currentValue))}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.SBq),w.Y36(w.aQg),w.Y36(w.Qsj))},B.\u0275dir=w.lG2({type:B,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),B})();function gr(B,G){return new w.vHH(2100,"")}class yf{createSubscription(G,I){return G.subscribe({next:I,error:J=>{throw J}})}dispose(G){G.unsubscribe()}onDestroy(G){G.unsubscribe()}}class Mf{createSubscription(G,I){return G.then(I,J=>{throw J})}dispose(G){}onDestroy(G){}}const wf=new Mf,Cf=new yf;let Uu=(()=>{class B{constructor(I){this._ref=I,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,J=>this._updateLatestValue(I,J))}_selectStrategy(I){if((0,w.QGY)(I))return wf;if((0,w.F4k)(I))return Cf;throw gr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,J){I===this._obj&&(this._latestValue=J,this._ref.markForCheck())}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.sBO,16))},B.\u0275pipe=w.Yjl({name:"async",type:B,pure:!1}),B})(),un=(()=>{class B{transform(I){if(null==I)return null;if("string"!=typeof I)throw gr();return I.toUpperCase()}}return B.\u0275fac=function(I){return new(I||B)},B.\u0275pipe=w.Yjl({name:"uppercase",type:B,pure:!0}),B})();const $e=new w.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let He=(()=>{class B{constructor(I,J){this.locale=I,this.defaultTimezone=J}transform(I,J="mediumDate",re,ye){var Se;if(null==I||""===I||I!=I)return null;try{return Bt(I,J,ye||this.locale,null!==(Se=null!=re?re:this.defaultTimezone)&&void 0!==Se?Se:void 0)}catch(nt){throw gr()}}}return B.\u0275fac=function(I){return new(I||B)(w.Y36(w.soG,16),w.Y36($e,24))},B.\u0275pipe=w.Yjl({name:"date",type:B,pure:!0}),B})(),Fa=(()=>{class B{}return B.\u0275fac=function(I){return new(I||B)},B.\u0275mod=w.oAB({type:B}),B.\u0275inj=w.cJS({providers:[{provide:mi,useClass:Ti}]}),B})();const _i="browser";function Fn(B){return B===_i}function Cn(B){return"server"===B}let xs=(()=>{class B{}return B.\u0275prov=(0,w.Yz7)({token:B,providedIn:"root",factory:()=>new ga((0,w.LFG)(R),window)}),B})();class ga{constructor(G,I){this.document=G,this.window=I,this.offset=()=>[0,0]}setOffset(G){this.offset=Array.isArray(G)?()=>G:G}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(G){this.supportsScrolling()&&this.window.scrollTo(G[0],G[1])}scrollToAnchor(G){if(!this.supportsScrolling())return;const I=function ao(B,G){const I=B.getElementById(G)||B.getElementsByName(G)[0];if(I)return I;if("function"==typeof B.createTreeWalker&&B.body&&(B.body.createShadowRoot||B.body.attachShadow)){const J=B.createTreeWalker(B.body,NodeFilter.SHOW_ELEMENT);let re=J.currentNode;for(;re;){const ye=re.shadowRoot;if(ye){const Se=ye.getElementById(G)||ye.querySelector(`[name="${G}"]`);if(Se)return Se}re=J.nextNode()}}return null}(this.document,G);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(G){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=G)}}scrollToElement(G){const I=G.getBoundingClientRect(),J=I.left+this.window.pageXOffset,re=I.top+this.window.pageYOffset,ye=this.offset();this.window.scrollTo(J-ye[0],re-ye[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const G=dc(this.window.history)||dc(Object.getPrototypeOf(this.window.history));return!(!G||!G.writable&&!G.set)}catch(G){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(G){return!1}}}function dc(B){return Object.getOwnPropertyDescriptor(B,"scrollRestoration")}class Li{}},520:(Y,U,x)=>{"use strict";x.d(U,{TP:()=>Pt,eN:()=>ge,JF:()=>Ue,qT:()=>ze,WM:()=>q,LE:()=>me,Zn:()=>Ce});var w=x(9808),i=x(5e3),E=x(1086),T=x(2916),S=x(1406),L=x(2198),R=x(4850);class N{}class j{}class q{constructor(ae){this.normalizedNames=new Map,this.lazyUpdate=null,ae?this.lazyInit="string"==typeof ae?()=>{this.headers=new Map,ae.split("\n").forEach(oe=>{const Re=oe.indexOf(":");if(Re>0){const De=oe.slice(0,Re),Fe=De.toLowerCase(),xe=oe.slice(Re+1).trim();this.maybeSetNormalizedName(De,Fe),this.headers.has(Fe)?this.headers.get(Fe).push(xe):this.headers.set(Fe,[xe])}})}:()=>{this.headers=new Map,Object.keys(ae).forEach(oe=>{let Re=ae[oe];const De=oe.toLowerCase();"string"==typeof Re&&(Re=[Re]),Re.length>0&&(this.headers.set(De,Re),this.maybeSetNormalizedName(oe,De))})}:this.headers=new Map}has(ae){return this.init(),this.headers.has(ae.toLowerCase())}get(ae){this.init();const oe=this.headers.get(ae.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ae){return this.init(),this.headers.get(ae.toLowerCase())||null}append(ae,oe){return this.clone({name:ae,value:oe,op:"a"})}set(ae,oe){return this.clone({name:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({name:ae,value:oe,op:"d"})}maybeSetNormalizedName(ae,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,ae)}init(){this.lazyInit&&(this.lazyInit instanceof q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ae=>this.applyUpdate(ae)),this.lazyUpdate=null))}copyFrom(ae){ae.init(),Array.from(ae.headers.keys()).forEach(oe=>{this.headers.set(oe,ae.headers.get(oe)),this.normalizedNames.set(oe,ae.normalizedNames.get(oe))})}clone(ae){const oe=new q;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof q?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([ae]),oe}applyUpdate(ae){const oe=ae.name.toLowerCase();switch(ae.op){case"a":case"s":let Re=ae.value;if("string"==typeof Re&&(Re=[Re]),0===Re.length)return;this.maybeSetNormalizedName(ae.name,oe);const De=("a"===ae.op?this.headers.get(oe):void 0)||[];De.push(...Re),this.headers.set(oe,De);break;case"d":const Fe=ae.value;if(Fe){let xe=this.headers.get(oe);if(!xe)return;xe=xe.filter(Ge=>-1===Fe.indexOf(Ge)),0===xe.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,xe)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(ae){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>ae(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ${encodeKey(ae){return ne(ae)}encodeValue(ae){return ne(ae)}decodeKey(ae){return decodeURIComponent(ae)}decodeValue(ae){return decodeURIComponent(ae)}}const ie=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ne(Te){return encodeURIComponent(Te).replace(ie,(ae,oe)=>{var Re;return null!==(Re=ce[oe])&&void 0!==Re?Re:ae})}function de(Te){return`${Te}`}class me{constructor(ae={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ae.encoder||new $,ae.fromString){if(ae.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function X(Te,ae){const oe=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(De=>{const Fe=De.indexOf("="),[xe,Ge]=-1==Fe?[ae.decodeKey(De),""]:[ae.decodeKey(De.slice(0,Fe)),ae.decodeValue(De.slice(Fe+1))],Bt=oe.get(xe)||[];Bt.push(Ge),oe.set(xe,Bt)}),oe}(ae.fromString,this.encoder)}else ae.fromObject?(this.map=new Map,Object.keys(ae.fromObject).forEach(oe=>{const Re=ae.fromObject[oe];this.map.set(oe,Array.isArray(Re)?Re:[Re])})):this.map=null}has(ae){return this.init(),this.map.has(ae)}get(ae){this.init();const oe=this.map.get(ae);return oe?oe[0]:null}getAll(ae){return this.init(),this.map.get(ae)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ae,oe){return this.clone({param:ae,value:oe,op:"a"})}appendAll(ae){const oe=[];return Object.keys(ae).forEach(Re=>{const De=ae[Re];Array.isArray(De)?De.forEach(Fe=>{oe.push({param:Re,value:Fe,op:"a"})}):oe.push({param:Re,value:De,op:"a"})}),this.clone(oe)}set(ae,oe){return this.clone({param:ae,value:oe,op:"s"})}delete(ae,oe){return this.clone({param:ae,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(ae=>{const oe=this.encoder.encodeKey(ae);return this.map.get(ae).map(Re=>oe+"="+this.encoder.encodeValue(Re)).join("&")}).filter(ae=>""!==ae).join("&")}clone(ae){const oe=new me({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(ae),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ae=>this.map.set(ae,this.cloneFrom.map.get(ae))),this.updates.forEach(ae=>{switch(ae.op){case"a":case"s":const oe=("a"===ae.op?this.map.get(ae.param):void 0)||[];oe.push(de(ae.value)),this.map.set(ae.param,oe);break;case"d":if(void 0===ae.value){this.map.delete(ae.param);break}{let Re=this.map.get(ae.param)||[];const De=Re.indexOf(de(ae.value));-1!==De&&Re.splice(De,1),Re.length>0?this.map.set(ae.param,Re):this.map.delete(ae.param)}}}),this.cloneFrom=this.updates=null)}}class ze{constructor(){this.map=new Map}set(ae,oe){return this.map.set(ae,oe),this}get(ae){return this.map.has(ae)||this.map.set(ae,ae.defaultValue()),this.map.get(ae)}delete(ae){return this.map.delete(ae),this}has(ae){return this.map.has(ae)}keys(){return this.map.keys()}}function Tt(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function Ot(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Je(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class Et{constructor(ae,oe,Re,De){let Fe;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ae.toUpperCase(),function Qe(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||De?(this.body=void 0!==Re?Re:null,Fe=De):Fe=Re,Fe&&(this.reportProgress=!!Fe.reportProgress,this.withCredentials=!!Fe.withCredentials,Fe.responseType&&(this.responseType=Fe.responseType),Fe.headers&&(this.headers=Fe.headers),Fe.context&&(this.context=Fe.context),Fe.params&&(this.params=Fe.params)),this.headers||(this.headers=new q),this.context||(this.context=new ze),this.params){const xe=this.params.toString();if(0===xe.length)this.urlWithParams=oe;else{const Ge=oe.indexOf("?");this.urlWithParams=oe+(-1===Ge?"?":GeFi.set(ft,ae.setHeaders[ft]),zi)),ae.setParams&&(Vt=Object.keys(ae.setParams).reduce((Fi,ft)=>Fi.set(ft,ae.setParams[ft]),Vt)),new Et(Re,De,xe,{params:Vt,headers:zi,context:jr,reportProgress:Bt,responseType:Fe,withCredentials:Ge})}}var Mt=(()=>((Mt=Mt||{})[Mt.Sent=0]="Sent",Mt[Mt.UploadProgress=1]="UploadProgress",Mt[Mt.ResponseHeader=2]="ResponseHeader",Mt[Mt.DownloadProgress=3]="DownloadProgress",Mt[Mt.Response=4]="Response",Mt[Mt.User=5]="User",Mt))();class fe{constructor(ae,oe=200,Re="OK"){this.headers=ae.headers||new q,this.status=void 0!==ae.status?ae.status:oe,this.statusText=ae.statusText||Re,this.url=ae.url||null,this.ok=this.status>=200&&this.status<300}}class Ae extends fe{constructor(ae={}){super(ae),this.type=Mt.ResponseHeader}clone(ae={}){return new Ae({headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Ce extends fe{constructor(ae={}){super(ae),this.type=Mt.Response,this.body=void 0!==ae.body?ae.body:null}clone(ae={}){return new Ce({body:void 0!==ae.body?ae.body:this.body,headers:ae.headers||this.headers,status:void 0!==ae.status?ae.status:this.status,statusText:ae.statusText||this.statusText,url:ae.url||this.url||void 0})}}class Me extends fe{constructor(ae){super(ae,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ae.url||"(unknown url)"}`:`Http failure response for ${ae.url||"(unknown url)"}: ${ae.status} ${ae.statusText}`,this.error=ae.error||null}}function Pe(Te,ae){return{body:ae,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ge=(()=>{class Te{constructor(oe){this.handler=oe}request(oe,Re,De={}){let Fe;if(oe instanceof Et)Fe=oe;else{let Bt,zi;Bt=De.headers instanceof q?De.headers:new q(De.headers),De.params&&(zi=De.params instanceof me?De.params:new me({fromObject:De.params})),Fe=new Et(oe,Re,void 0!==De.body?De.body:null,{headers:Bt,context:De.context,params:zi,reportProgress:De.reportProgress,responseType:De.responseType||"json",withCredentials:De.withCredentials})}const xe=(0,E.of)(Fe).pipe((0,S.b)(Bt=>this.handler.handle(Bt)));if(oe instanceof Et||"events"===De.observe)return xe;const Ge=xe.pipe((0,L.h)(Bt=>Bt instanceof Ce));switch(De.observe||"body"){case"body":switch(Fe.responseType){case"arraybuffer":return Ge.pipe((0,R.U)(Bt=>{if(null!==Bt.body&&!(Bt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Bt.body}));case"blob":return Ge.pipe((0,R.U)(Bt=>{if(null!==Bt.body&&!(Bt.body instanceof Blob))throw new Error("Response is not a Blob.");return Bt.body}));case"text":return Ge.pipe((0,R.U)(Bt=>{if(null!==Bt.body&&"string"!=typeof Bt.body)throw new Error("Response is not a string.");return Bt.body}));default:return Ge.pipe((0,R.U)(Bt=>Bt.body))}case"response":return Ge;default:throw new Error(`Unreachable: unhandled observe type ${De.observe}}`)}}delete(oe,Re={}){return this.request("DELETE",oe,Re)}get(oe,Re={}){return this.request("GET",oe,Re)}head(oe,Re={}){return this.request("HEAD",oe,Re)}jsonp(oe,Re){return this.request("JSONP",oe,{params:(new me).append(Re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,Re={}){return this.request("OPTIONS",oe,Re)}patch(oe,Re,De={}){return this.request("PATCH",oe,Pe(De,Re))}post(oe,Re,De={}){return this.request("POST",oe,Pe(De,Re))}put(oe,Re,De={}){return this.request("PUT",oe,Pe(De,Re))}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(N))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();class xt{constructor(ae,oe){this.next=ae,this.interceptor=oe}handle(ae){return this.interceptor.intercept(ae,this.next)}}const Pt=new i.OlP("HTTP_INTERCEPTORS");let Ci=(()=>{class Te{intercept(oe,Re){return Re.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const on=/^\)\]\}',?\n/;let Ut=(()=>{class Te{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new T.y(Re=>{const De=this.xhrFactory.build();if(De.open(oe.method,oe.urlWithParams),oe.withCredentials&&(De.withCredentials=!0),oe.headers.forEach((ft,Ze)=>De.setRequestHeader(ft,Ze.join(","))),oe.headers.has("Accept")||De.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const ft=oe.detectContentTypeHeader();null!==ft&&De.setRequestHeader("Content-Type",ft)}if(oe.responseType){const ft=oe.responseType.toLowerCase();De.responseType="json"!==ft?ft:"text"}const Fe=oe.serializeBody();let xe=null;const Ge=()=>{if(null!==xe)return xe;const ft=De.statusText||"OK",Ze=new q(De.getAllResponseHeaders()),Vn=function pi(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(De)||oe.url;return xe=new Ae({headers:Ze,status:De.status,statusText:ft,url:Vn}),xe},Bt=()=>{let{headers:ft,status:Ze,statusText:Vn,url:Gt}=Ge(),Dt=null;204!==Ze&&(Dt=void 0===De.response?De.responseText:De.response),0===Ze&&(Ze=Dt?200:0);let fr=Ze>=200&&Ze<300;if("json"===oe.responseType&&"string"==typeof Dt){const Xn=Dt;Dt=Dt.replace(on,"");try{Dt=""!==Dt?JSON.parse(Dt):null}catch(zn){Dt=Xn,fr&&(fr=!1,Dt={error:zn,text:Dt})}}fr?(Re.next(new Ce({body:Dt,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0})),Re.complete()):Re.error(new Me({error:Dt,headers:ft,status:Ze,statusText:Vn,url:Gt||void 0}))},zi=ft=>{const{url:Ze}=Ge(),Vn=new Me({error:ft,status:De.status||0,statusText:De.statusText||"Unknown Error",url:Ze||void 0});Re.error(Vn)};let Vt=!1;const jr=ft=>{Vt||(Re.next(Ge()),Vt=!0);let Ze={type:Mt.DownloadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),"text"===oe.responseType&&!!De.responseText&&(Ze.partialText=De.responseText),Re.next(Ze)},Fi=ft=>{let Ze={type:Mt.UploadProgress,loaded:ft.loaded};ft.lengthComputable&&(Ze.total=ft.total),Re.next(Ze)};return De.addEventListener("load",Bt),De.addEventListener("error",zi),De.addEventListener("timeout",zi),De.addEventListener("abort",zi),oe.reportProgress&&(De.addEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.addEventListener("progress",Fi)),De.send(Fe),Re.next({type:Mt.Sent}),()=>{De.removeEventListener("error",zi),De.removeEventListener("abort",zi),De.removeEventListener("load",Bt),De.removeEventListener("timeout",zi),oe.reportProgress&&(De.removeEventListener("progress",jr),null!==Fe&&De.upload&&De.upload.removeEventListener("progress",Fi)),De.readyState!==De.DONE&&De.abort()}})}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.JF))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const ln=new i.OlP("XSRF_COOKIE_NAME"),la=new i.OlP("XSRF_HEADER_NAME");class ca{}let Fr=(()=>{class Te{constructor(oe,Re,De){this.doc=oe,this.platform=Re,this.cookieName=De,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,w.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(w.K0),i.LFG(i.Lbi),i.LFG(ln))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),Pn=(()=>{class Te{constructor(oe,Re){this.tokenService=oe,this.headerName=Re}intercept(oe,Re){const De=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||De.startsWith("http://")||De.startsWith("https://"))return Re.handle(oe);const Fe=this.tokenService.getToken();return null!==Fe&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,Fe)})),Re.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(ca),i.LFG(la))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),ue=(()=>{class Te{constructor(oe,Re){this.backend=oe,this.injector=Re,this.chain=null}handle(oe){if(null===this.chain){const Re=this.injector.get(Pt,[]);this.chain=Re.reduceRight((De,Fe)=>new xt(De,Fe),this.backend)}return this.chain.handle(oe)}}return Te.\u0275fac=function(oe){return new(oe||Te)(i.LFG(j),i.LFG(i.zs3))},Te.\u0275prov=i.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),We=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:Pn,useClass:Ci}]}}static withOptions(oe={}){return{ngModule:Te,providers:[oe.cookieName?{provide:ln,useValue:oe.cookieName}:[],oe.headerName?{provide:la,useValue:oe.headerName}:[]]}}}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[Pn,{provide:Pt,useExisting:Pn,multi:!0},{provide:ca,useClass:Fr},{provide:ln,useValue:"XSRF-TOKEN"},{provide:la,useValue:"X-XSRF-TOKEN"}]}),Te})(),Ue=(()=>{class Te{}return Te.\u0275fac=function(oe){return new(oe||Te)},Te.\u0275mod=i.oAB({type:Te}),Te.\u0275inj=i.cJS({providers:[ge,{provide:N,useClass:ue},Ut,{provide:j,useExisting:Ut}],imports:[[We.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})()},5e3:(Y,U,x)=>{"use strict";x.d(U,{deG:()=>Rd,tb:()=>qb,AFp:()=>Wp,ip1:()=>Yp,CZH:()=>ur,hGG:()=>NC,z2F:()=>ud,sBO:()=>fx,Sil:()=>Jm,_Vd:()=>wu,EJc:()=>Gp,SBq:()=>Cu,qLn:()=>Un,vpe:()=>Ir,tBr:()=>So,XFs:()=>_e,OlP:()=>hi,zs3:()=>Da,ZZ4:()=>ef,aQg:()=>Bu,soG:()=>Ou,YKP:()=>Mb,h0i:()=>id,PXZ:()=>$b,R0b:()=>Qn,FiY:()=>Za,Lbi:()=>Qm,g9A:()=>oC,n_E:()=>xu,Qsj:()=>Ow,FYo:()=>fb,JOm:()=>Bs,q3G:()=>Qi,tp0:()=>Eo,Rgc:()=>ad,dDg:()=>pC,GfV:()=>td,s_b:()=>sd,ifc:()=>Fe,eFA:()=>Qb,G48:()=>Jp,Gpc:()=>$,f3M:()=>Nf,_c5:()=>aA,VLi:()=>Ub,c2e:()=>Yb,zSh:()=>jh,wAp:()=>pt,vHH:()=>ne,EiD:()=>X1,mCW:()=>zt,qzn:()=>Is,JVY:()=>GA,pB0:()=>QA,eBb:()=>G1,L6k:()=>ZA,LAX:()=>$A,cg1:()=>Fl,kL8:()=>Y_,yhl:()=>U1,dqk:()=>Vt,sIi:()=>qs,CqO:()=>q0,QGY:()=>Jc,F4k:()=>f_,RDi:()=>dc,AaK:()=>N,z3N:()=>Os,qOj:()=>Gh,TTD:()=>Cs,_Bn:()=>ub,xp6:()=>Py,uIk:()=>lr,Q2q:()=>Zh,Tol:()=>D_,Gre:()=>XM,ekj:()=>Cr,Suo:()=>Qw,Xpm:()=>Ia,lG2:()=>Be,Yz7:()=>di,cJS:()=>on,oAB:()=>_s,Yjl:()=>vi,Y36:()=>eu,_UZ:()=>p_,GkF:()=>ru,BQk:()=>j0,ynx:()=>nu,qZA:()=>F0,TgZ:()=>z0,EpF:()=>rp,n5z:()=>Ma,Ikx:()=>cm,LFG:()=>pn,$8M:()=>wa,$Z:()=>Bo,NdJ:()=>Y0,CRH:()=>Jw,kcU:()=>Sd,O4$:()=>gc,oxw:()=>__,ALo:()=>vb,lcZ:()=>Lm,xi3:()=>km,Dn7:()=>Pm,Hsn:()=>G0,F$t:()=>ap,Q6J:()=>tu,s9C:()=>Z0,MGl:()=>sp,hYB:()=>$0,DdM:()=>Yw,VKq:()=>Cp,WLB:()=>nd,iGM:()=>Hp,MAs:()=>L0,Jf7:()=>uy,CHM:()=>ba,oJD:()=>ty,LSH:()=>Zf,Udp:()=>op,WFA:()=>m_,d8E:()=>dm,YNc:()=>Qd,_uU:()=>I_,Oqu:()=>rm,hij:()=>cp,AsE:()=>am,xDo:()=>dp,Gf:()=>Rb});var w=x(8929),i=x(2654),E=x(2916),T=x(6787),S=x(2474);function L(p){for(let m in p)if(p[m]===L)return m;throw Error("Could not find renamed property on target object.")}function R(p,m){for(const g in m)m.hasOwnProperty(g)&&!p.hasOwnProperty(g)&&(p[g]=m[g])}function N(p){if("string"==typeof p)return p;if(Array.isArray(p))return"["+p.map(N).join(", ")+"]";if(null==p)return""+p;if(p.overriddenName)return`${p.overriddenName}`;if(p.name)return`${p.name}`;const m=p.toString();if(null==m)return""+m;const g=m.indexOf("\n");return-1===g?m:m.substring(0,g)}function j(p,m){return null==p||""===p?null===m?"":m:null==m||""===m?p:p+" "+m}const q=L({__forward_ref__:L});function $(p){return p.__forward_ref__=$,p.toString=function(){return N(this())},p}function X(p){return ie(p)?p():p}function ie(p){return"function"==typeof p&&p.hasOwnProperty(q)&&p.__forward_ref__===$}class ne extends Error{constructor(m,g){super(function de(p,m){return`NG0${Math.abs(p)}${m?": "+m:""}`}(m,g)),this.code=m}}function me(p){return"string"==typeof p?p:null==p?"":String(p)}function Ne(p){return"function"==typeof p?p.name||p.toString():"object"==typeof p&&null!=p&&"function"==typeof p.type?p.type.name||p.type.toString():me(p)}function Ot(p,m){const g=m?` in ${m}`:"";throw new ne(-201,`No provider for ${Ne(p)} found${g}`)}function st(p,m){null==p&&function bt(p,m,g,_){throw new Error(`ASSERTION ERROR: ${p}`+(null==_?"":` [Expected=> ${g} ${_} ${m} <=Actual]`))}(m,p,null,"!=")}function di(p){return{token:p.token,providedIn:p.providedIn||null,factory:p.factory,value:void 0}}function on(p){return{providers:p.providers||[],imports:p.imports||[]}}function pi(p){return Ut(p,Fr)||Ut(p,ue)}function Ut(p,m){return p.hasOwnProperty(m)?p[m]:null}function ca(p){return p&&(p.hasOwnProperty(Pn)||p.hasOwnProperty(ke))?p[Pn]:null}const Fr=L({\u0275prov:L}),Pn=L({\u0275inj:L}),ue=L({ngInjectableDef:L}),ke=L({ngInjectorDef:L});var _e=(()=>((_e=_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))();let We;function it(p){const m=We;return We=p,m}function Jt(p,m,g){const _=pi(p);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:g&_e.Optional?null:void 0!==m?m:void Ot(N(p),"Injector")}function ae(p){return{toString:p}.toString()}var oe=(()=>((oe=oe||{})[oe.OnPush=0]="OnPush",oe[oe.Default=1]="Default",oe))(),Fe=(()=>{return(p=Fe||(Fe={}))[p.Emulated=0]="Emulated",p[p.None=2]="None",p[p.ShadowDom=3]="ShadowDom",Fe;var p})();const xe="undefined"!=typeof globalThis&&globalThis,Ge="undefined"!=typeof window&&window,Bt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt=xe||"undefined"!=typeof global&&global||Ge||Bt,ft={},Ze=[],Vn=L({\u0275cmp:L}),Gt=L({\u0275dir:L}),Dt=L({\u0275pipe:L}),fr=L({\u0275mod:L}),Xn=L({\u0275fac:L}),zn=L({__NG_ELEMENT_ID__:L});let oc=0;function Ia(p){return ae(()=>{const g={},_={type:p.type,providersResolver:null,decls:p.decls,vars:p.vars,factory:null,template:p.template||null,consts:p.consts||null,ngContentSelectors:p.ngContentSelectors,hostBindings:p.hostBindings||null,hostVars:p.hostVars||0,hostAttrs:p.hostAttrs||null,contentQueries:p.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:p.exportAs||null,onPush:p.changeDetection===oe.OnPush,directiveDefs:null,pipeDefs:null,selectors:p.selectors||Ze,viewQuery:p.viewQuery||null,features:p.features||null,data:p.data||{},encapsulation:p.encapsulation||Fe.Emulated,id:"c",styles:p.styles||Ze,_:null,setInput:null,schemas:p.schemas||null,tView:null},y=p.directives,v=p.features,D=p.pipes;return _.id+=oc++,_.inputs=M(p.inputs,g),_.outputs=M(p.outputs),v&&v.forEach(k=>k(_)),_.directiveDefs=y?()=>("function"==typeof y?y():y).map(ua):null,_.pipeDefs=D?()=>("function"==typeof D?D():D).map(mr):null,_})}function ua(p){return cn(p)||function Xe(p){return p[Gt]||null}(p)}function mr(p){return function ri(p){return p[Dt]||null}(p)}const gs={};function _s(p){return ae(()=>{const m={type:p.type,bootstrap:p.bootstrap||Ze,declarations:p.declarations||Ze,imports:p.imports||Ze,exports:p.exports||Ze,transitiveCompileScopes:null,schemas:p.schemas||null,id:p.id||null};return null!=p.id&&(gs[p.id]=p.type),m})}function M(p,m){if(null==p)return ft;const g={};for(const _ in p)if(p.hasOwnProperty(_)){let y=p[_],v=y;Array.isArray(y)&&(v=y[1],y=y[0]),g[y]=_,m&&(m[y]=v)}return g}const Be=Ia;function vi(p){return{type:p.type,name:p.name,factory:null,pure:!1!==p.pure,onDestroy:p.type.prototype.ngOnDestroy||null}}function cn(p){return p[Vn]||null}function St(p,m){const g=p[fr]||null;if(!g&&!0===m)throw new Error(`Type ${N(p)} does not have '\u0275mod' property.`);return g}function On(p){return Array.isArray(p)&&"object"==typeof p[1]}function er(p){return Array.isArray(p)&&!0===p[1]}function Qo(p){return 0!=(8&p.flags)}function za(p){return 2==(2&p.flags)}function pa(p){return 1==(1&p.flags)}function tr(p){return null!==p.template}function ys(p){return 0!=(512&p[2])}function wn(p,m){return p.hasOwnProperty(Xn)?p[Xn]:null}class ma{constructor(m,g,_){this.previousValue=m,this.currentValue=g,this.firstChange=_}isFirstChange(){return this.firstChange}}function Cs(){return ht}function ht(p){return p.type.prototype.ngOnChanges&&(p.setInput=Zt),ji}function ji(){const p=_i(this),m=null==p?void 0:p.current;if(m){const g=p.previous;if(g===ft)p.previous=m;else for(let _ in m)g[_]=m[_];p.current=null,this.ngOnChanges(m)}}function Zt(p,m,g,_){const y=_i(p)||function Sr(p,m){return p[Fa]=m}(p,{previous:ft,current:null}),v=y.current||(y.current={}),D=y.previous,k=this.declaredInputs[g],P=D[k];v[k]=new ma(P&&P.currentValue,m,D===ft),p[_]=m}Cs.ngInherit=!0;const Fa="__ngSimpleChanges__";function _i(p){return p[Fa]||null}let ga;function dc(p){ga=p}function ao(){return void 0!==ga?ga:"undefined"!=typeof document?document:void 0}function Li(p){return!!p.listen}const B={createRenderer:(p,m)=>ao()};function I(p){for(;Array.isArray(p);)p=p[0];return p}function ye(p,m){return I(m[p])}function Se(p,m){return I(m[p.index])}function Yt(p,m){return p.data[m]}function Xt(p,m){return p[m]}function At(p,m){const g=m[p];return On(g)?g:g[0]}function Ft(p){return 4==(4&p[2])}function Zi(p){return 128==(128&p[2])}function ki(p,m){return null==m?null:p[m]}function _a(p){p[18]=0}function Er(p,m){p[5]+=m;let g=p,_=p[3];for(;null!==_&&(1===m&&1===g[5]||-1===m&&0===g[5]);)_[5]+=m,g=_,_=_[3]}const mt={lFrame:eh(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Gu(){return mt.bindingsEnabled}function be(){return mt.lFrame.lView}function $t(){return mt.lFrame.tView}function ba(p){return mt.lFrame.contextLView=p,p[8]}function $i(){let p=uc();for(;null!==p&&64===p.type;)p=p.parent;return p}function uc(){return mt.lFrame.currentTNode}function qr(p,m){const g=mt.lFrame;g.currentTNode=p,g.isParent=m}function hc(){return mt.lFrame.isParent}function _r(){mt.lFrame.isParent=!1}function nl(){return mt.isInCheckNoChangesMode}function vd(p){mt.isInCheckNoChangesMode=p}function ei(){const p=mt.lFrame;let m=p.bindingRootIndex;return-1===m&&(m=p.bindingRootIndex=p.tView.bindingStartIndex),m}function hn(){return mt.lFrame.bindingIndex}function oo(){return mt.lFrame.bindingIndex++}function jn(p){const m=mt.lFrame,g=m.bindingIndex;return m.bindingIndex=m.bindingIndex+p,g}function Ku(p,m){const g=mt.lFrame;g.bindingIndex=g.bindingRootIndex=p,Ss(m)}function Ss(p){mt.lFrame.currentDirectiveIndex=p}function lo(p){const m=mt.lFrame.currentDirectiveIndex;return-1===m?null:p[m]}function rl(){return mt.lFrame.currentQueryIndex}function Yr(p){mt.lFrame.currentQueryIndex=p}function Wt(p){const m=p[1];return 2===m.type?m.declTNode:1===m.type?p[6]:null}function qa(p,m,g){if(g&_e.SkipSelf){let y=m,v=p;for(;!(y=y.parent,null!==y||g&_e.Host||(y=Wt(v),null===y||(v=v[15],10&y.type))););if(null===y)return!1;m=y,p=v}const _=mt.lFrame=Wr();return _.currentTNode=m,_.lView=p,!0}function co(p){const m=Wr(),g=p[1];mt.lFrame=m,m.currentTNode=g.firstChild,m.lView=p,m.tView=g,m.contextLView=p,m.bindingIndex=g.bindingStartIndex,m.inI18n=!1}function Wr(){const p=mt.lFrame,m=null===p?null:p.child;return null===m?eh(p):m}function eh(p){const m={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:p,child:null,inI18n:!1};return null!==p&&(p.child=m),m}function Td(){const p=mt.lFrame;return mt.lFrame=p.parent,p.currentTNode=null,p.lView=null,p}const xd=Td;function fc(){const p=Td();p.isParent=!0,p.tView=null,p.selectedIndex=-1,p.contextLView=null,p.elementDepthCount=0,p.currentDirectiveIndex=-1,p.currentNamespace=null,p.bindingRootIndex=-1,p.bindingIndex=-1,p.currentQueryIndex=0}function Hn(){return mt.lFrame.selectedIndex}function Dr(p){mt.lFrame.selectedIndex=p}function Oi(){const p=mt.lFrame;return Yt(p.tView,p.selectedIndex)}function gc(){mt.lFrame.currentNamespace="svg"}function Sd(){!function th(){mt.lFrame.currentNamespace=null}()}function ol(p,m){for(let g=m.directiveStart,_=m.directiveEnd;g<_;g++){const v=p.data[g].type.prototype,{ngAfterContentInit:D,ngAfterContentChecked:k,ngAfterViewInit:P,ngAfterViewChecked:F,ngOnDestroy:W}=v;D&&(p.contentHooks||(p.contentHooks=[])).push(-g,D),k&&((p.contentHooks||(p.contentHooks=[])).push(g,k),(p.contentCheckHooks||(p.contentCheckHooks=[])).push(g,k)),P&&(p.viewHooks||(p.viewHooks=[])).push(-g,P),F&&((p.viewHooks||(p.viewHooks=[])).push(g,F),(p.viewCheckHooks||(p.viewCheckHooks=[])).push(g,F)),null!=W&&(p.destroyHooks||(p.destroyHooks=[])).push(g,W)}}function Ds(p,m,g){ih(p,m,3,g)}function ll(p,m,g,_){(3&p[2])===g&&ih(p,m,g,_)}function _c(p,m){let g=p[2];(3&g)===m&&(g&=2047,g+=1,p[2]=g)}function ih(p,m,g,_){const v=null!=_?_:-1,D=m.length-1;let k=0;for(let P=void 0!==_?65535&p[18]:0;P=_)break}else m[P]<0&&(p[18]+=65536),(k>11>16&&(3&p[2])===m){p[2]+=2048;try{v.call(k)}finally{}}}else try{v.call(k)}finally{}}class uo{constructor(m,g,_){this.factory=m,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=_}}function cl(p,m,g){const _=Li(p);let y=0;for(;ym){D=v-1;break}}}for(;v>16}(p),_=m;for(;g>0;)_=_[15],g--;return _}let Hs=!0;function Ac(p){const m=Hs;return Hs=p,m}let mo=0;function Ls(p,m){const g=Ua(p,m);if(-1!==g)return g;const _=m[1];_.firstCreatePass&&(p.injectorIndex=m.length,ks(_.data,p),ks(m,null),ks(_.blueprint,null));const y=ya(p,m),v=p.injectorIndex;if(po(y)){const D=Wa(y),k=fo(y,m),P=k[1].data;for(let F=0;F<8;F++)m[v+F]=k[D+F]|P[D+F]}return m[v+8]=y,v}function ks(p,m){p.push(0,0,0,0,0,0,0,0,m)}function Ua(p,m){return-1===p.injectorIndex||p.parent&&p.parent.injectorIndex===p.injectorIndex||null===m[p.injectorIndex+8]?-1:p.injectorIndex}function ya(p,m){if(p.parent&&-1!==p.parent.injectorIndex)return p.parent.injectorIndex;let g=0,_=null,y=m;for(;null!==y;){const v=y[1],D=v.type;if(_=2===D?v.declTNode:1===D?y[6]:null,null===_)return-1;if(g++,y=y[15],-1!==_.injectorIndex)return _.injectorIndex|g<<16}return-1}function hl(p,m,g){!function yc(p,m,g){let _;"string"==typeof g?_=g.charCodeAt(0)||0:g.hasOwnProperty(zn)&&(_=g[zn]),null==_&&(_=g[zn]=mo++);const y=255&_;m.data[p+(y>>5)]|=1<=0?255&m:kd:m}(g);if("function"==typeof v){if(!qa(m,p,_))return _&_e.Host?Ld(y,g,_):Mc(m,g,_,y);try{const D=v(_);if(null!=D||_&_e.Optional)return D;Ot(g)}finally{xd()}}else if("number"==typeof v){let D=null,k=Ua(p,m),P=-1,F=_&_e.Host?m[16][6]:null;for((-1===k||_&_e.SkipSelf)&&(P=-1===k?ya(p,m):m[k+8],-1!==P&&ch(_,!1)?(D=m[1],k=Wa(P),m=fo(P,m)):k=-1);-1!==k;){const W=m[1];if(lh(v,k,W.data)){const te=xf(k,m,g,D,_,F);if(te!==oh)return te}P=m[k+8],-1!==P&&ch(_,m[1].data[k+8]===F)&&lh(v,k,m)?(D=W,k=Wa(P),m=fo(P,m)):k=-1}}}return Mc(m,g,_,y)}const oh={};function kd(){return new Ga($i(),be())}function xf(p,m,g,_,y,v){const D=m[1],k=D.data[p+8],W=fl(k,D,g,null==_?za(k)&&Hs:_!=D&&0!=(3&k.type),y&_e.Host&&v===k);return null!==W?_o(m,D,W,k):oh}function fl(p,m,g,_,y){const v=p.providerIndexes,D=m.data,k=1048575&v,P=p.directiveStart,W=v>>20,se=y?k+W:p.directiveEnd;for(let pe=_?k:k+W;pe=P&&ve.type===g)return pe}if(y){const pe=D[P];if(pe&&tr(pe)&&pe.type===g)return P}return null}function _o(p,m,g,_){let y=p[g];const v=m.data;if(function Ed(p){return p instanceof uo}(y)){const D=y;D.resolving&&function ze(p,m){const g=m?`. Dependency path: ${m.join(" > ")} > ${p}`:"";throw new ne(-200,`Circular dependency in DI detected for ${p}${g}`)}(Ne(v[g]));const k=Ac(D.canSeeViewProviders);D.resolving=!0;const P=D.injectImpl?it(D.injectImpl):null;qa(p,_,_e.Default);try{y=p[g]=D.factory(void 0,v,p,_),m.firstCreatePass&&g>=_.directiveStart&&function Es(p,m,g){const{ngOnChanges:_,ngOnInit:y,ngDoCheck:v}=m.type.prototype;if(_){const D=ht(m);(g.preOrderHooks||(g.preOrderHooks=[])).push(p,D),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,D)}y&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-p,y),v&&((g.preOrderHooks||(g.preOrderHooks=[])).push(p,v),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(p,v))}(g,v[g],m)}finally{null!==P&&it(P),Ac(k),D.resolving=!1,xd()}}return y}function lh(p,m,g){return!!(g[m+(p>>5)]&1<{const m=p.prototype.constructor,g=m[Xn]||Pd(m),_=Object.prototype;let y=Object.getPrototypeOf(p.prototype).constructor;for(;y&&y!==_;){const v=y[Xn]||Pd(y);if(v&&v!==g)return v;y=Object.getPrototypeOf(y)}return v=>new v})}function Pd(p){return ie(p)?()=>{const m=Pd(X(p));return m&&m()}:wn(p)}function wa(p){return function go(p,m){if("class"===m)return p.classes;if("style"===m)return p.styles;const g=p.attrs;if(g){const _=g.length;let y=0;for(;y<_;){const v=g[y];if(ah(v))break;if(0===v)y+=2;else if("number"==typeof v)for(y++;y<_&&"string"==typeof g[y];)y++;else{if(v===m)return g[y+1];y+=2}}}return null}($i(),p)}const Ao="__parameters__";function Ur(p,m,g){return ae(()=>{const _=function Ps(p){return function(...g){if(p){const _=p(...g);for(const y in _)this[y]=_[y]}}}(m);function y(...v){if(this instanceof y)return _.apply(this,v),this;const D=new y(...v);return k.annotation=D,k;function k(P,F,W){const te=P.hasOwnProperty(Ao)?P[Ao]:Object.defineProperty(P,Ao,{value:[]})[Ao];for(;te.length<=W;)te.push(null);return(te[W]=te[W]||[]).push(D),P}}return g&&(y.prototype=Object.create(g.prototype)),y.prototype.ngMetadataName=p,y.annotationCls=y,y})}class hi{constructor(m,g){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=di({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Rd=new hi("AnalyzeForEntryComponents");function br(p,m){void 0===m&&(m=p);for(let g=0;gArray.isArray(g)?qn(g,m):m(g))}function Od(p,m,g){m>=p.length?p.push(g):p.splice(m,0,g)}function bl(p,m){return m>=p.length-1?p.pop():p.splice(m,1)[0]}function Ca(p,m){const g=[];for(let _=0;_=0?p[1|_]=g:(_=~_,function hh(p,m,g,_){let y=p.length;if(y==m)p.push(g,_);else if(1===y)p.push(_,p[0]),p[0]=g;else{for(y--,p.push(p[y-1],p[y]);y>m;)p[y]=p[y-2],y--;p[m]=g,p[m+1]=_}}(p,_,m,g)),_}function Id(p,m){const g=va(p,m);if(g>=0)return p[1|g]}function va(p,m){return function Co(p,m,g){let _=0,y=p.length>>g;for(;y!==_;){const v=_+(y-_>>1),D=p[v<m?y=v:_=v+1}return~(y<({token:p})),-1),Za=xo(Ur("Optional"),8),Eo=xo(Ur("SkipSelf"),4);let rt,le;function H(p){var m;return(null===(m=function C(){if(void 0===rt&&(rt=null,Vt.trustedTypes))try{rt=Vt.trustedTypes.createPolicy("angular",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return rt}())||void 0===m?void 0:m.createHTML(p))||p}function ot(p){var m;return(null===(m=function we(){if(void 0===le&&(le=null,Vt.trustedTypes))try{le=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:p=>p,createScript:p=>p,createScriptURL:p=>p})}catch(p){}return le}())||void 0===m?void 0:m.createHTML(p))||p}class Bi{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Pr extends Bi{getTypeName(){return"HTML"}}class Rs extends Bi{getTypeName(){return"Style"}}class wl extends Bi{getTypeName(){return"Script"}}class W1 extends Bi{getTypeName(){return"URL"}}class UA extends Bi{getTypeName(){return"ResourceURL"}}function Os(p){return p instanceof Bi?p.changingThisBreaksApplicationSecurity:p}function Is(p,m){const g=U1(p);if(null!=g&&g!==m){if("ResourceURL"===g&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===m}function U1(p){return p instanceof Bi&&p.getTypeName()||null}function GA(p){return new Pr(p)}function ZA(p){return new Rs(p)}function G1(p){return new wl(p)}function $A(p){return new W1(p)}function QA(p){return new UA(p)}class qf{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m=""+m;try{const g=(new window.DOMParser).parseFromString(H(m),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(m):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class JA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const _=this.inertDocument.createElement("body");g.appendChild(_)}}getInertBodyElement(m){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=H(m),g;const _=this.inertDocument.createElement("body");return _.innerHTML=H(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(_),_}stripCustomNsAttrs(m){const g=m.attributes;for(let y=g.length-1;0zt(m.trim())).join(", ")),this.buf.push(" ",D,'="',Gf(P),'"')}var p;return this.buf.push(">"),!0}endElement(m){const g=m.nodeName.toLowerCase();Q1.hasOwnProperty(g)&&!kc.hasOwnProperty(g)&&(this.buf.push(""))}chars(m){this.buf.push(Gf(m))}checkClobberedElement(m,g){if(g&&(m.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return g}}const Uf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ey=/([^\#-~ |!])/g;function Gf(p){return p.replace(/&/g,"&").replace(Uf,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(ey,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(//g,">")}let wh;function X1(p,m){let g=null;try{wh=wh||function Z1(p){const m=new JA(p);return function XA(){try{return!!(new window.DOMParser).parseFromString(H(""),"text/html")}catch(p){return!1}}()?new qf(m):m}(p);let _=m?String(m):"";g=wh.getInertBodyElement(_);let y=5,v=_;do{if(0===y)throw new Error("Failed to sanitize html because the input is unstable");y--,_=v,v=g.innerHTML,g=wh.getInertBodyElement(_)}while(_!==v);return H((new KA).sanitizeChildren(Pc(g)||g))}finally{if(g){const _=Pc(g)||g;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Pc(p){return"content"in p&&function K1(p){return p.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===p.nodeName}(p)?p.content:null}var Qi=(()=>((Qi=Qi||{})[Qi.NONE=0]="NONE",Qi[Qi.HTML=1]="HTML",Qi[Qi.STYLE=2]="STYLE",Qi[Qi.SCRIPT=3]="SCRIPT",Qi[Qi.URL=4]="URL",Qi[Qi.RESOURCE_URL=5]="RESOURCE_URL",Qi))();function ty(p){const m=Rc();return m?ot(m.sanitize(Qi.HTML,p)||""):Is(p,"HTML")?ot(Os(p)):X1(ao(),me(p))}function Zf(p){const m=Rc();return m?m.sanitize(Qi.URL,p)||"":Is(p,"URL")?Os(p):zt(me(p))}function Rc(){const p=be();return p&&p[12]}const ng="__ngContext__";function Wn(p,m){p[ng]=m}function Si(p){const m=function Cl(p){return p[ng]||null}(p);return m?Array.isArray(m)?m:m.lView:null}function Jf(p){return p.ngOriginalError}function Xf(p,...m){p.error(...m)}class Un{constructor(){this._console=console}handleError(m){const g=this._findOriginalError(m),_=function Sh(p){return p&&p.ngErrorLogger||Xf}(m);_(this._console,"ERROR",m),g&&_(this._console,"ORIGINAL ERROR",g)}_findOriginalError(m){let g=m&&Jf(m);for(;g&&Jf(g);)g=Jf(g);return g||null}}const dy=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function uy(p){return p.ownerDocument.defaultView}function sr(p){return p instanceof Function?p():p}var Bs=(()=>((Bs=Bs||{})[Bs.Important=1]="Important",Bs[Bs.DashCase=2]="DashCase",Bs))();function sg(p,m){return undefined(p,m)}function Ja(p){const m=p[3];return er(m)?m[3]:m}function og(p){return fy(p[13])}function lg(p){return fy(p[4])}function fy(p){for(;null!==p&&!er(p);)p=p[4];return p}function Ho(p,m,g,_,y){if(null!=_){let v,D=!1;er(_)?v=_:On(_)&&(D=!0,_=_[0]);const k=I(_);0===p&&null!==g?null==y?Dh(m,g,k):Ns(m,g,k,y||null,!0):1===p&&null!==g?Ns(m,g,k,y||null,!0):2===p?function Yd(p,m,g){const _=Hh(p,m);_&&function Xa(p,m,g,_){Li(p)?p.removeChild(m,g,_):m.removeChild(g)}(p,_,m,g)}(m,k,D):3===p&&m.destroyNode(k),null!=v&&function iT(p,m,g,_,y){const v=g[7];v!==I(g)&&Ho(m,p,_,v,y);for(let k=10;k0&&(p[g-1][4]=_[4]);const v=bl(p,10+m);!function Xv(p,m){ko(p,m,m[11],2,null,null),m[0]=null,m[6]=null}(_[1],_);const D=v[19];null!==D&&D.detachView(v[1]),_[3]=null,_[4]=null,_[2]&=-129}return _}function by(p,m){if(!(256&m[2])){const g=m[11];Li(g)&&g.destroyNode&&ko(p,m,g,3,null,null),function eT(p){let m=p[13];if(!m)return Ei(p[1],p);for(;m;){let g=null;if(On(m))g=m[13];else{const _=m[10];_&&(g=_)}if(!g){for(;m&&!m[4]&&m!==p;)On(m)&&Ei(m[1],m),m=m[3];null===m&&(m=p),On(m)&&Ei(m[1],m),g=m&&m[4]}m=g}}(m)}}function Ei(p,m){if(!(256&m[2])){m[2]&=-129,m[2]|=256,function yy(p,m){let g;if(null!=p&&null!=(g=p.destroyHooks))for(let _=0;_=0?_[y=F]():_[y=-F].unsubscribe(),v+=2}else{const D=_[y=g[v+1]];g[v].call(D)}if(null!==_){for(let v=y+1;v<_.length;v++)_[v]();m[7]=null}}(p,m),1===m[1].type&&Li(m[11])&&m[11].destroy();const g=m[17];if(null!==g&&er(m[3])){g!==m[3]&&_y(g,m);const _=m[19];null!==_&&_.detachView(p)}}}function cg(p,m,g){return function My(p,m,g){let _=m;for(;null!==_&&40&_.type;)_=(m=_).parent;if(null===_)return g[0];if(2&_.flags){const y=p.data[_.directiveStart].encapsulation;if(y===Fe.None||y===Fe.Emulated)return null}return Se(_,g)}(p,m.parent,g)}function Ns(p,m,g,_,y){Li(p)?p.insertBefore(m,g,_,y):m.insertBefore(g,_,y)}function Dh(p,m,g){Li(p)?p.appendChild(m,g):m.appendChild(g)}function wy(p,m,g,_,y){null!==_?Ns(p,m,g,_,y):Dh(p,m,g)}function Hh(p,m){return Li(p)?p.parentNode(m):m.parentNode}function dg(p,m,g){return Ty(p,m,g)}let Ty=function vy(p,m,g){return 40&p.type?Se(p,g):null};function t0(p,m,g,_){const y=cg(p,_,m),v=m[11],k=dg(_.parent||m[6],_,m);if(null!=y)if(Array.isArray(g))for(let P=0;Pv?"":y[te+1].toLowerCase();const pe=8&_?se:null;if(pe&&-1!==Sy(pe,F,0)||2&_&&F!==se){if(Ka(_))return!1;D=!0}}}}else{if(!D&&!Ka(_)&&!Ka(P))return!1;if(D&&Ka(P))continue;D=!1,_=P|1&_}}return Ka(_)||D}function Ka(p){return 0==(1&p)}function Hy(p,m,g,_){if(null===m)return-1;let y=0;if(_||!g){let v=!1;for(;y-1)for(g++;g0?'="'+k+'"':"")+"]"}else 8&_?y+="."+D:4&_&&(y+=" "+D);else""!==y&&!Ka(D)&&(m+=ky(v,y),y=""),_=D,v=v||!Ka(_);g++}return""!==y&&(m+=ky(v,y)),m}const It={};function Py(p){Ry($t(),be(),Hn()+p,nl())}function Ry(p,m,g,_){if(!_)if(3==(3&m[2])){const v=p.preOrderCheckHooks;null!==v&&Ds(m,v,g)}else{const v=p.preOrderHooks;null!==v&&ll(m,v,0,g)}Dr(g)}function o0(p,m){return p<<17|m<<2}function es(p){return p>>17&32767}function pg(p){return 2|p}function Po(p){return(131068&p)>>2}function fg(p,m){return-131069&p|m<<2}function mg(p){return 1|p}function Wy(p,m){const g=p.contentQueries;if(null!==g)for(let _=0;_20&&Ry(p,m,20,nl()),g(_,y)}finally{Dr(v)}}function Gy(p,m,g){if(Qo(m)){const y=m.directiveEnd;for(let v=m.directiveStart;v0;){const g=p[--m];if("number"==typeof g&&g<0)return g}return 0})(k)!=P&&k.push(P),k.push(_,y,D)}}function Hg(p,m){null!==p.hostBindings&&p.hostBindings(1,m)}function Ro(p,m){m.flags|=2,(p.components||(p.components=[])).push(m.index)}function kg(p,m,g){if(g){if(m.exportAs)for(let _=0;_0&&g0(g)}}function g0(p){for(let _=og(p);null!==_;_=lg(_))for(let y=10;y<_.length;y++){const v=_[y];if(1024&v[2]){const D=v[1];zc(D,v,D.template,v[8])}else v[5]>0&&g0(v)}const g=p[1].components;if(null!==g)for(let _=0;_0&&g0(y)}}function lM(p,m){const g=At(m,p),_=g[1];(function Fc(p,m){for(let g=m.length;gPromise.resolve(null))();function Nh(p){return p[7]||(p[7]=[])}function jc(p){return p.cleanup||(p.cleanup=[])}function y0(p,m,g){return(null===p||tr(p))&&(g=function J(p){for(;Array.isArray(p);){if("object"==typeof p[1])return p;p=p[0]}return null}(g[m.index])),g[11]}function Vg(p,m){const g=p[9],_=g?g.get(Un,null):null;_&&_.handleError(m)}function zg(p,m,g,_,y){for(let v=0;vthis.processProvider(k,m,g)),qn([m],k=>this.processInjectorType(k,[],v)),this.records.set(zh,Wc(void 0,this));const D=this.records.get(jh);this.scope=null!=D?D.value:null,this.source=y||("object"==typeof m?null:N(m))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(m=>m.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(m,g=To,_=_e.Default){this.assertNotDestroyed();const y=kr(this),v=it(void 0);try{if(!(_&_e.SkipSelf)){let k=this.records.get(m);if(void 0===k){const P=function LT(p){return"function"==typeof p||"object"==typeof p&&p instanceof hi}(m)&&pi(m);k=P&&this.injectableDefInScope(P)?Wc(w0(m),qc):null,this.records.set(m,k)}if(null!=k)return this.hydrate(m,k)}return(_&_e.Self?pM():this.parent).get(m,g=_&_e.Optional&&g===To?null:g)}catch(D){if("NullInjectorError"===D.name){if((D[vc]=D[vc]||[]).unshift(N(m)),y)throw D;return function gh(p,m,g,_){const y=p[vc];throw m[Tc]&&y.unshift(m[Tc]),p.message=function _h(p,m,g,_=null){p=p&&"\n"===p.charAt(0)&&"\u0275"==p.charAt(1)?p.substr(2):p;let y=N(m);if(Array.isArray(m))y=m.map(N).join(" -> ");else if("object"==typeof m){let v=[];for(let D in m)if(m.hasOwnProperty(D)){let k=m[D];v.push(D+":"+("string"==typeof k?JSON.stringify(k):N(k)))}y=`{${v.join(", ")}}`}return`${g}${_?"("+_+")":""}[${y}]: ${p.replace(Of,"\n ")}`}("\n"+p.message,y,g,_),p.ngTokenPath=y,p[vc]=null,p}(D,m,"R3InjectorError",this.source)}throw D}finally{it(v),kr(y)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(m=>this.get(m))}toString(){const m=[];return this.records.forEach((_,y)=>m.push(N(y))),`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ne(205,!1)}processInjectorType(m,g,_){if(!(m=X(m)))return!1;let y=ca(m);const v=null==y&&m.ngModule||void 0,D=void 0===v?m:v,k=-1!==_.indexOf(D);if(void 0!==v&&(y=ca(v)),null==y)return!1;if(null!=y.imports&&!k){let W;_.push(D);try{qn(y.imports,te=>{this.processInjectorType(te,g,_)&&(void 0===W&&(W=[]),W.push(te))})}finally{}if(void 0!==W)for(let te=0;tethis.processProvider(ve,se,pe||Ze))}}this.injectorDefTypes.add(D);const P=wn(D)||(()=>new D);this.records.set(D,Wc(P,qc));const F=y.providers;if(null!=F&&!k){const W=m;qn(F,te=>this.processProvider(te,W,F))}return void 0!==v&&void 0!==m.providers}processProvider(m,g,_){let y=Uc(m=X(m))?m:X(m&&m.provide);const v=function gM(p,m,g){return C0(p)?Wc(void 0,p.useValue):Wc(Yg(p),qc)}(m);if(Uc(m)||!0!==m.multi)this.records.get(y);else{let D=this.records.get(y);D||(D=Wc(void 0,qc,!0),D.factory=()=>zd(D.multi),this.records.set(y,D)),y=m,D.multi.push(m)}this.records.set(y,v)}hydrate(m,g){return g.value===qc&&(g.value=jg,g.value=g.factory()),"object"==typeof g.value&&g.value&&function Ug(p){return null!==p&&"object"==typeof p&&"function"==typeof p.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(m){if(!m.providedIn)return!1;const g=X(m.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function w0(p){const m=pi(p),g=null!==m?m.factory:wn(p);if(null!==g)return g;if(p instanceof hi)throw new ne(204,!1);if(p instanceof Function)return function mM(p){const m=p.length;if(m>0)throw Ca(m,"?"),new ne(204,!1);const g=function ln(p){const m=p&&(p[Fr]||p[ue]);if(m){const g=function la(p){if(p.hasOwnProperty("name"))return p.name;const m=(""+p).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(p);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${g}" class.`),m}return null}(p);return null!==g?()=>g.factory(p):()=>new p}(p);throw new ne(204,!1)}function Yg(p,m,g){let _;if(Uc(p)){const y=X(p);return wn(y)||w0(y)}if(C0(p))_=()=>X(p.useValue);else if(function _M(p){return!(!p||!p.useFactory)}(p))_=()=>p.useFactory(...zd(p.deps||[]));else if(function Wg(p){return!(!p||!p.useExisting)}(p))_=()=>pn(X(p.useExisting));else{const y=X(p&&(p.useClass||p.provide));if(!function AM(p){return!!p.deps}(p))return wn(y)||w0(y);_=()=>new y(...zd(p.deps))}return _}function Wc(p,m,g=!1){return{factory:p,value:m,multi:g?[]:void 0}}function C0(p){return null!==p&&"object"==typeof p&&If in p}function Uc(p){return"function"==typeof p}let Da=(()=>{class p{static create(g,_){var y;if(Array.isArray(g))return qh({name:""},_,g,"");{const v=null!==(y=g.name)&&void 0!==y?y:"";return qh({name:v},g.parent,g.providers,v)}}}return p.THROW_IF_NOT_FOUND=To,p.NULL=new Fh,p.\u0275prov=di({token:p,providedIn:"any",factory:()=>pn(zh)}),p.__NG_ELEMENT_ID__=-1,p})();function js(p,m){ol(Si(p)[1],$i())}function Gh(p){let m=function yt(p){return Object.getPrototypeOf(p.prototype).constructor}(p.type),g=!0;const _=[p];for(;m;){let y;if(tr(p))y=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new ne(903,"");y=m.\u0275dir}if(y){if(g){_.push(y);const D=p;D.inputs=Le(p.inputs),D.declaredInputs=Le(p.declaredInputs),D.outputs=Le(p.outputs);const k=y.hostBindings;k&&Ct(p,k);const P=y.viewQuery,F=y.contentQueries;if(P&&Lt(p,P),F&&Ll(p,F),R(p.inputs,y.inputs),R(p.declaredInputs,y.declaredInputs),R(p.outputs,y.outputs),tr(y)&&y.data.animation){const W=p.data;W.animation=(W.animation||[]).concat(y.data.animation)}}const v=y.features;if(v)for(let D=0;D=0;_--){const y=p[_];y.hostVars=m+=y.hostVars,y.hostAttrs=dl(y.hostAttrs,g=dl(g,y.hostAttrs))}}(_)}function Le(p){return p===ft?{}:p===Ze?[]:p}function Lt(p,m){const g=p.viewQuery;p.viewQuery=g?(_,y)=>{m(_,y),g(_,y)}:m}function Ll(p,m){const g=p.contentQueries;p.contentQueries=g?(_,y,v)=>{m(_,y,v),g(_,y,v)}:m}function Ct(p,m){const g=p.hostBindings;p.hostBindings=g?(_,y)=>{m(_,y),g(_,y)}:m}let Mr=null;function Zd(){if(!Mr){const p=Vt.Symbol;if(p&&p.iterator)Mr=p.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gk(I(Qt[_.index])):_.index;if(Li(g)){let Qt=null;if(!k&&P&&(Qt=function W0(p,m,g,_){const y=p.cleanup;if(null!=y)for(let v=0;vP?k[P]:null}"string"==typeof D&&(v+=2)}return null}(p,m,y,_.index)),null!==Qt)(Qt.__ngLastListenerFn__||Qt).__ngNextListenerFn__=v,Qt.__ngLastListenerFn__=v,pe=!1;else{v=U0(_,m,te,v,!1);const yi=g.listen(et,y,v);se.push(v,yi),W&&W.push(y,dt,Ee,Ee+1)}}else v=U0(_,m,te,v,!0),et.addEventListener(y,v,D),se.push(v),W&&W.push(y,dt,Ee,D)}else v=U0(_,m,te,v,!1);const ve=_.outputs;let Ve;if(pe&&null!==ve&&(Ve=ve[y])){const Ye=Ve.length;if(Ye)for(let et=0;et0;)m=m[15],p--;return m}(p,mt.lFrame.contextLView))[8]}(p)}function b_(p,m){let g=null;const _=function oT(p){const m=p.attrs;if(null!=m){const g=m.indexOf(5);if(0==(1&g))return m[g+1]}return null}(p);for(let y=0;y=0}const fn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function x_(p){return p.substring(fn.key,fn.keyEnd)}function Xc(p,m){const g=fn.textEnd;return g===m?-1:(m=fn.keyEnd=function qM(p,m,g){for(;m32;)m++;return m}(p,fn.key=m,g),No(p,m,g))}function No(p,m,g){for(;m=0;g=Xc(m,g))rr(p,x_(m),!0)}function La(p,m,g,_){const y=be(),v=$t(),D=jn(2);v.firstUpdatePass&&H_(v,p,D,_),m!==It&&In(y,D,m)&&lu(v,v.data[Hn()],y,y[11],p,y[D+1]=function R_(p,m){return null==p||("string"==typeof m?p+=m:"object"==typeof p&&(p=N(Os(p)))),p}(m,g),_,D)}function ia(p,m,g,_){const y=$t(),v=jn(2);y.firstUpdatePass&&H_(y,null,v,_);const D=be();if(g!==It&&In(D,v,g)){const k=y.data[Hn()];if(O_(k,_)&&!su(y,v)){let P=_?k.classesWithoutHost:k.stylesWithoutHost;null!==P&&(g=j(P,g||"")),iu(y,k,D,g,_)}else!function P_(p,m,g,_,y,v,D,k){y===It&&(y=Ze);let P=0,F=0,W=0=p.expandoStartIndex}function H_(p,m,g,_){const y=p.data;if(null===y[g+1]){const v=y[Hn()],D=su(p,g);O_(v,_)&&null===m&&!D&&(m=!1),m=function ZM(p,m,g,_){const y=lo(p);let v=_?m.residualClasses:m.residualStyles;if(null===y)0===(_?m.classBindings:m.styleBindings)&&(g=ou(g=im(null,p,m,g,_),m.attrs,_),v=null);else{const D=m.directiveStylingLast;if(-1===D||p[D]!==y)if(g=im(y,p,m,g,_),null===v){let P=function tm(p,m,g){const _=g?m.classBindings:m.styleBindings;if(0!==Po(_))return p[es(_)]}(p,m,_);void 0!==P&&Array.isArray(P)&&(P=im(null,p,m,P[1],_),P=ou(P,m.attrs,_),function $M(p,m,g,_){p[es(g?m.classBindings:m.styleBindings)]=_}(p,m,_,P))}else v=function L_(p,m,g){let _;const y=m.directiveEnd;for(let v=1+m.directiveStylingLast;v0)&&(F=!0)}else W=g;if(y)if(0!==P){const se=es(p[k+1]);p[_+1]=o0(se,k),0!==se&&(p[se+1]=fg(p[se+1],_)),p[k+1]=function pT(p,m){return 131071&p|m<<17}(p[k+1],_)}else p[_+1]=o0(k,0),0!==k&&(p[k+1]=fg(p[k+1],_)),k=_;else p[_+1]=o0(P,0),0===k?k=_:p[P+1]=fg(p[P+1],_),P=_;F&&(p[_+1]=pg(p[_+1])),T_(p,W,_,!0),T_(p,W,_,!1),function FM(p,m,g,_,y){const v=y?p.residualClasses:p.residualStyles;null!=v&&"string"==typeof m&&va(v,m)>=0&&(g[_+1]=mg(g[_+1]))}(m,W,p,_,v),D=o0(k,P),v?m.classBindings=D:m.styleBindings=D}(y,v,m,g,D,_)}}function im(p,m,g,_,y){let v=null;const D=g.directiveEnd;let k=g.directiveStylingLast;for(-1===k?k=g.directiveStart:k++;k0;){const P=p[y],F=Array.isArray(P),W=F?P[1]:P,te=null===W;let se=g[y+1];se===It&&(se=te?Ze:void 0);let pe=te?Id(se,_):W===_?se:void 0;if(F&&!lp(pe)&&(pe=Id(P,_)),lp(pe)&&(k=pe,D))return k;const ve=p[y+1];y=D?es(ve):Po(ve)}if(null!==m){let P=v?m.residualClasses:m.residualStyles;null!=P&&(k=Id(P,_))}return k}function lp(p){return void 0!==p}function O_(p,m){return 0!=(p.flags&(m?16:32))}function I_(p,m=""){const g=be(),_=$t(),y=p+20,v=_.firstCreatePass?Wd(_,y,1,m,null):_.data[y],D=g[y]=function Vc(p,m){return Li(p)?p.createText(m):p.createTextNode(m)}(g[11],m);t0(_,g,D,v),qr(v,!1)}function rm(p){return cp("",p,""),rm}function cp(p,m,g){const _=be(),y=Oo(_,p,m,g);return y!==It&&$r(_,Hn(),y),cp}function am(p,m,g,_,y){const v=be(),D=Pl(v,p,m,g,_,y);return D!==It&&$r(v,Hn(),D),am}function dp(p,m,g,_,y,v,D,k,P,F,W){const te=be(),se=Kr(te,p,m,g,_,y,v,D,k,P,F,W);return se!==It&&$r(te,Hn(),se),dp}function XM(p,m,g){ia(rr,Ha,Oo(be(),p,m,g),!0)}function cm(p,m,g){const _=be();return In(_,oo(),m)&&or($t(),Oi(),_,p,m,_[11],g,!0),cm}function dm(p,m,g){const _=be();if(In(_,oo(),m)){const v=$t(),D=Oi();or(v,D,_,p,m,y0(lo(v.data),D,_),g,!0)}return dm}const zo=void 0;var Kc=["en",[["a","p"],["AM","PM"],zo],[["AM","PM"],zo,zo],[["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"]],zo,[["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"]],zo,[["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}",zo,"{1} 'at' {0}",zo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function YT(p){const g=Math.floor(Math.abs(p)),_=p.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===_?1:5}];let zl={};function Fl(p){const m=function W_(p){return p.toLowerCase().replace(/_/g,"-")}(p);let g=hm(m);if(g)return g;const _=m.split("-")[0];if(g=hm(_),g)return g;if("en"===_)return Kc;throw new Error(`Missing locale data for the locale "${p}".`)}function Y_(p){return Fl(p)[pt.PluralCase]}function hm(p){return p in zl||(zl[p]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[p]),zl[p]}var pt=(()=>((pt=pt||{})[pt.LocaleId=0]="LocaleId",pt[pt.DayPeriodsFormat=1]="DayPeriodsFormat",pt[pt.DayPeriodsStandalone=2]="DayPeriodsStandalone",pt[pt.DaysFormat=3]="DaysFormat",pt[pt.DaysStandalone=4]="DaysStandalone",pt[pt.MonthsFormat=5]="MonthsFormat",pt[pt.MonthsStandalone=6]="MonthsStandalone",pt[pt.Eras=7]="Eras",pt[pt.FirstDayOfWeek=8]="FirstDayOfWeek",pt[pt.WeekendRange=9]="WeekendRange",pt[pt.DateFormat=10]="DateFormat",pt[pt.TimeFormat=11]="TimeFormat",pt[pt.DateTimeFormat=12]="DateTimeFormat",pt[pt.NumberSymbols=13]="NumberSymbols",pt[pt.NumberFormats=14]="NumberFormats",pt[pt.CurrencyCode=15]="CurrencyCode",pt[pt.CurrencySymbol=16]="CurrencySymbol",pt[pt.CurrencyName=17]="CurrencyName",pt[pt.Currencies=18]="Currencies",pt[pt.Directionality=19]="Directionality",pt[pt.PluralCase=20]="PluralCase",pt[pt.ExtraData=21]="ExtraData",pt))();const pp="en-US";let fp=pp;function vm(p,m,g,_,y){if(p=X(p),Array.isArray(p))for(let v=0;v>20;if(Uc(p)||!p.multi){const pe=new uo(P,y,eu),ve=kt(k,m,y?W:W+se,te);-1===ve?(hl(Ls(F,D),v,k),Tm(v,p,m.length),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(pe),D.push(pe)):(g[ve]=pe,D[ve]=pe)}else{const pe=kt(k,m,W+se,te),ve=kt(k,m,W,W+se),Ve=pe>=0&&g[pe],Ye=ve>=0&&g[ve];if(y&&!Ye||!y&&!Ve){hl(Ls(F,D),v,k);const et=function Dw(p,m,g,_,y){const v=new uo(p,g,eu);return v.multi=[],v.index=m,v.componentProviders=0,db(v,y,_&&!g),v}(y?ns:QT,g.length,y,_,P);!y&&Ye&&(g[ve].providerFactory=et),Tm(v,p,m.length,0),m.push(k),F.directiveStart++,F.directiveEnd++,y&&(F.providerIndexes+=1048576),g.push(et),D.push(et)}else Tm(v,p,pe>-1?pe:ve,db(g[y?ve:pe],P,!y&&_));!y&&_&&Ye&&g[ve].componentProviders++}}}function Tm(p,m,g,_){const y=Uc(m),v=function bM(p){return!!p.useClass}(m);if(y||v){const P=(v?X(m.useClass):m).prototype.ngOnDestroy;if(P){const F=p.destroyHooks||(p.destroyHooks=[]);if(!y&&m.multi){const W=F.indexOf(g);-1===W?F.push(g,[_,P]):F[W+1].push(_,P)}else F.push(g,P)}}}function db(p,m,g){return g&&p.componentProviders++,p.multi.push(m)-1}function kt(p,m,g,_){for(let y=g;y<_;y++)if(m[y]===p)return y;return-1}function QT(p,m,g,_){return xm(this.multi,[])}function ns(p,m,g,_){const y=this.multi;let v;if(this.providerFactory){const D=this.providerFactory.componentProviders,k=_o(g,g[1],this.providerFactory.index,_);v=k.slice(0,D),xm(y,v);for(let P=D;P{g.providersResolver=(_,y)=>function $T(p,m,g){const _=$t();if(_.firstCreatePass){const y=tr(p);vm(g,_.data,_.blueprint,y,!0),vm(m,_.data,_.blueprint,y,!1)}}(_,y?y(p):p,m)}}class hb{}class kw{resolveComponentFactory(m){throw function Lw(p){const m=Error(`No component factory found for ${N(p)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=p,m}(m)}}let wu=(()=>{class p{}return p.NULL=new kw,p})();function Pw(){return ed($i(),be())}function ed(p,m){return new Cu(Se(p,m))}let Cu=(()=>{class p{constructor(g){this.nativeElement=g}}return p.__NG_ELEMENT_ID__=Pw,p})();function Rw(p){return p instanceof Cu?p.nativeElement:p}class fb{}let Ow=(()=>{class p{}return p.__NG_ELEMENT_ID__=()=>function jl(){const p=be(),g=At($i().index,p);return function mb(p){return p[11]}(On(g)?g:p)}(),p})(),Iw=(()=>{class p{}return p.\u0275prov=di({token:p,providedIn:"root",factory:()=>null}),p})();class td{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const KT=new td("13.2.2"),gb={};function Sm(p,m,g,_,y=!1){for(;null!==g;){const v=m[g.index];if(null!==v&&_.push(I(v)),er(v))for(let k=10;k-1&&(Lo(m,_),bl(g,_))}this._attachedToViewContainer=!1}by(this._lView[1],this._lView)}onDestroy(m){h0(this._lView[1],this._lView,null,m)}markForCheck(){Rh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){b0(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Bh(p,m,g){vd(!0);try{b0(p,m,g)}finally{vd(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new ne(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Kv(p,m){ko(p,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new ne(902,"");this._appRef=m}}class _b extends vu{constructor(m){super(m),this._view=m}detectChanges(){Ng(this._view)}checkNoChanges(){!function cM(p){vd(!0);try{Ng(p)}finally{vd(!1)}}(this._view)}get context(){return null}}class bb extends wu{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const g=cn(m);return new wp(g,this.ngModule)}}function rs(p){const m=[];for(let g in p)p.hasOwnProperty(g)&&m.push({propName:p[g],templateName:g});return m}const Nw=new hi("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>dy});class wp extends hb{constructor(m,g){super(),this.componentDef=m,this.ngModule=g,this.componentType=m.type,this.selector=function uT(p){return p.map(dT).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return rs(this.componentDef.inputs)}get outputs(){return rs(this.componentDef.outputs)}create(m,g,_,y){const v=(y=y||this.ngModule)?function ex(p,m){return{get:(g,_,y)=>{const v=p.get(g,gb,y);return v!==gb||_===gb?v:m.get(g,_,y)}}}(m,y.injector):m,D=v.get(fb,B),k=v.get(Iw,null),P=D.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",W=_?function Tn(p,m,g){if(Li(p))return p.selectRootElement(m,g===Fe.ShadowDom);let _="string"==typeof m?p.querySelector(m):m;return _.textContent="",_}(P,_,this.componentDef.encapsulation):qd(D.createRenderer(null,this.componentDef),F,function Bw(p){const m=p.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(F)),te=this.componentDef.onPush?576:528,se=function Jg(p,m){return{components:[],scheduler:p||dy,clean:uM,playerHandler:m||null,flags:0}}(),pe=u0(0,null,null,1,0,null,null,null,null,null),ve=Lh(null,pe,se,te,null,null,D,P,k,v);let Ve,Ye;co(ve);try{const et=function Uh(p,m,g,_,y,v){const D=g[1];g[20]=p;const P=Wd(D,20,2,"#host",null),F=P.mergedAttrs=m.hostAttrs;null!==F&&(M0(P,F,!0),null!==p&&(cl(y,p,F),null!==P.classes&&a0(y,p,P.classes),null!==P.styles&&hg(y,p,P.styles)));const W=_.createRenderer(p,m),te=Lh(g,Zy(m),null,m.onPush?64:16,g[20],P,_,W,v||null,null);return D.firstCreatePass&&(hl(Ls(P,g),D,m.type),Ro(D,P),f0(P,g.length,1)),_0(g,te),g[20]=te}(W,this.componentDef,ve,D,P);if(W)if(_)cl(P,W,["ng-version",KT.full]);else{const{attrs:Ee,classes:dt}=function hT(p){const m=[],g=[];let _=1,y=2;for(;_0&&a0(P,W,dt.join(" "))}if(Ye=Yt(pe,20),void 0!==g){const Ee=Ye.projection=[];for(let dt=0;dtP(D,m)),m.contentQueries){const P=$i();m.contentQueries(1,D,P.directiveStart)}const k=$i();return!v.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(Dr(k.index),iM(g[1],k,0,k.directiveStart,k.directiveEnd,m),Hg(m,D)),D}(et,this.componentDef,ve,se,[js]),kh(pe,ve,null)}finally{fc()}return new zw(this.componentType,Ve,ed(Ye,ve),ve,Ye)}}class zw extends class Hw{}{constructor(m,g,_,y,v){super(),this.location=_,this._rootLView=y,this._tNode=v,this.instance=g,this.hostView=this.changeDetectorRef=new _b(y),this.componentType=m}get injector(){return new Ga(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}class id{}class Mb{}const as=new Map;class Dm extends id{constructor(m,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new bb(this);const _=St(m);this._bootstrapComponents=sr(_.bootstrap),this._r3Injector=qg(m,g,[{provide:id,useValue:this},{provide:wu,useValue:this.componentFactoryResolver}],N(m)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(m)}get(m,g=Da.THROW_IF_NOT_FOUND,_=_e.Default){return m===Da||m===id||m===zh?this:this._r3Injector.get(m,g,_)}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class nn extends Mb{constructor(m){super(),this.moduleType=m,null!==St(m)&&function Fw(p){const m=new Set;!function g(_){const y=St(_,!0),v=y.id;null!==v&&(function ss(p,m,g){if(m&&m!==g)throw new Error(`Duplicate module registered for ${p} - ${N(m)} vs ${N(m.name)}`)}(v,as.get(v),_),as.set(v,_));const D=sr(y.imports);for(const k of D)m.has(k)||(m.add(k),g(k))}(p)}(m)}create(m){return new Dm(this.moduleType,m)}}function Yw(p,m,g){const _=ei()+p,y=be();return y[_]===It?Jr(y,_,g?m.call(g):m()):function Xr(p,m){return p[m]}(y,_)}function Cp(p,m,g,_){return rn(be(),ei(),p,m,g,_)}function nd(p,m,g,_,y){return Us(be(),ei(),p,m,g,_,y)}function Tu(p,m){const g=p[m];return g===It?void 0:g}function rn(p,m,g,_,y,v){const D=m+g;return In(p,D,y)?Jr(p,D+1,v?_.call(v,y):_(y)):Tu(p,D+1)}function Us(p,m,g,_,y,v,D){const k=m+g;return Ys(p,k,y,v)?Jr(p,k+2,D?_.call(D,y,v):_(y,v)):Tu(p,k+2)}function Hm(p,m,g,_,y,v,D,k){const P=m+g;return function Gc(p,m,g,_,y){const v=Ys(p,m,g,_);return In(p,m+2,y)||v}(p,P,y,v,D)?Jr(p,P+3,k?_.call(k,y,v,D):_(y,v,D)):Tu(p,P+3)}function vb(p,m){const g=$t();let _;const y=p+20;g.firstCreatePass?(_=function _n(p,m){if(m)for(let g=m.length-1;g>=0;g--){const _=m[g];if(p===_.name)return _}}(m,g.pipeRegistry),g.data[y]=_,_.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(y,_.onDestroy)):_=g.data[y];const v=_.factory||(_.factory=wn(_.type)),D=it(eu);try{const k=Ac(!1),P=v();return Ac(k),function Xh(p,m,g,_){g>=p.data.length&&(p.data[g]=null,p.blueprint[g]=null),m[g]=_}(g,be(),y,P),P}finally{it(D)}}function Lm(p,m,g){const _=p+20,y=be(),v=Xt(y,_);return rd(y,_)?rn(y,ei(),m,v.transform,g,v):v.transform(g)}function km(p,m,g,_){const y=p+20,v=be(),D=Xt(v,y);return rd(v,y)?Us(v,ei(),m,D.transform,g,_,D):D.transform(g,_)}function Pm(p,m,g,_,y){const v=p+20,D=be(),k=Xt(D,v);return rd(D,v)?Hm(D,ei(),m,k.transform,g,_,y,k):k.transform(g,_,y)}function rd(p,m){return p[1].data[m].pure}function vp(p){return m=>{setTimeout(p,void 0,m)}}const Ir=class Sb extends w.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,g,_){var y,v,D;let k=m,P=g||(()=>null),F=_;if(m&&"object"==typeof m){const te=m;k=null===(y=te.next)||void 0===y?void 0:y.bind(te),P=null===(v=te.error)||void 0===v?void 0:v.bind(te),F=null===(D=te.complete)||void 0===D?void 0:D.bind(te)}this.__isAsync&&(P=vp(P),k&&(k=vp(k)),F&&(F=vp(F)));const W=super.subscribe({next:k,error:P,complete:F});return m instanceof i.w&&m.add(W),W}};function Eb(){return this._results[Zd()]()}class xu{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=Zd(),_=xu.prototype;_[g]||(_[g]=Eb)}get changes(){return this._changes||(this._changes=new Ir)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,g){return this._results.reduce(m,g)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,g){const _=this;_.dirty=!1;const y=br(m);(this._changesDetected=!function kf(p,m,g){if(p.length!==m.length)return!1;for(let _=0;_{class p{}return p.__NG_ELEMENT_ID__=Hb,p})();const Db=ad,Zw=class extends Db{constructor(m,g,_){super(),this._declarationLView=m,this._declarationTContainer=g,this.elementRef=_}createEmbeddedView(m){const g=this._declarationTContainer.tViews,_=Lh(this._declarationLView,g,m,16,null,g.declTNode,null,null,null,null);_[17]=this._declarationLView[this._declarationTContainer.index];const v=this._declarationLView[19];return null!==v&&(_[19]=v.createEmbeddedView(g)),kh(g,_,m),new vu(_)}};function Hb(){return Su($i(),be())}function Su(p,m){return 4&p.type?new Zw(m,p,ed(p,m)):null}let sd=(()=>{class p{}return p.__NG_ELEMENT_ID__=Lb,p})();function Lb(){return xp($i(),be())}const Rm=sd,Om=class extends Rm{constructor(m,g,_){super(),this._lContainer=m,this._hostTNode=g,this._hostLView=_}get element(){return ed(this._hostTNode,this._hostLView)}get injector(){return new Ga(this._hostTNode,this._hostLView)}get parentInjector(){const m=ya(this._hostTNode,this._hostLView);if(po(m)){const g=fo(m,this._hostLView),_=Wa(m);return new Ga(g[1].data[_+8],g)}return new Ga(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const g=Im(this._lContainer);return null!==g&&g[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,g,_){const y=m.createEmbeddedView(g||{});return this.insert(y,_),y}createComponent(m,g,_,y,v){const D=m&&!function _l(p){return"function"==typeof p}(m);let k;if(D)k=g;else{const te=g||{};k=te.index,_=te.injector,y=te.projectableNodes,v=te.ngModuleRef}const P=D?m:new wp(cn(m)),F=_||this.parentInjector;if(!v&&null==P.ngModule&&F){const te=F.get(id,null);te&&(v=te)}const W=P.create(F,y,void 0,v);return this.insert(W.hostView,k),W}insert(m,g){const _=m._lView,y=_[1];if(function xi(p){return er(p[3])}(_)){const W=this.indexOf(m);if(-1!==W)this.detach(W);else{const te=_[3],se=new Om(te,te[6],te[3]);se.detach(se.indexOf(m))}}const v=this._adjustIndex(g),D=this._lContainer;!function tT(p,m,g,_){const y=10+_,v=g.length;_>0&&(g[y-1][4]=m),_0)_.push(D[k/2]);else{const F=v[k+1],W=m[-P];for(let te=10;te{class p{constructor(g){this.appInits=g,this.resolve=Ru,this.reject=Ru,this.initialized=!1,this.done=!1,this.donePromise=new Promise((_,y)=>{this.resolve=_,this.reject=y})}runInitializers(){if(this.initialized)return;const g=[],_=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let y=0;y{v.subscribe({complete:k,error:P})});g.push(D)}}Promise.all(g).then(()=>{_()}).catch(y=>{this.reject(y)}),0===g.length&&_(),this.initialized=!0}}return p.\u0275fac=function(g){return new(g||p)(pn(Yp,8))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Wp=new hi("AppId"),Up={provide:Wp,useFactory:function sC(){return`${$m()}${$m()}${$m()}`},deps:[]};function $m(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const oC=new hi("Platform Initializer"),Qm=new hi("Platform ID"),qb=new hi("appBootstrapListener");let Yb=(()=>{class p{log(g){console.log(g)}warn(g){console.warn(g)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Ou=new hi("LocaleId"),Gp=new hi("DefaultCurrencyCode");class Zs{constructor(m,g){this.ngModuleFactory=m,this.componentFactories=g}}let Jm=(()=>{class p{compileModuleSync(g){return new nn(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const _=this.compileModuleSync(g),v=sr(St(g).declarations).reduce((D,k)=>{const P=cn(k);return P&&D.push(new wp(P)),D},[]);return new Zs(_,v)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();const Km=(()=>Promise.resolve(0))();function Zp(p){"undefined"==typeof Zone?Km.then(()=>{p&&p.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",p)}class Qn{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ir(!1),this.onMicrotaskEmpty=new Ir(!1),this.onStable=new Ir(!1),this.onError=new Ir(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const y=this;y._nesting=0,y._outer=y._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(y._inner=y._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(y._inner=y._inner.fork(Zone.longStackTraceZoneSpec)),y.shouldCoalesceEventChangeDetection=!_&&g,y.shouldCoalesceRunChangeDetection=_,y.lastRequestAnimationFrameId=-1,y.nativeRequestAnimationFrame=function cC(){let p=Vt.requestAnimationFrame,m=Vt.cancelAnimationFrame;if("undefined"!=typeof Zone&&p&&m){const g=p[Zone.__symbol__("OriginalDelegate")];g&&(p=g);const _=m[Zone.__symbol__("OriginalDelegate")];_&&(m=_)}return{nativeRequestAnimationFrame:p,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function e1(p){const m=()=>{!function uC(p){p.isCheckStableRunning||-1!==p.lastRequestAnimationFrameId||(p.lastRequestAnimationFrameId=p.nativeRequestAnimationFrame.call(Vt,()=>{p.fakeTopEventTask||(p.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{p.lastRequestAnimationFrameId=-1,t1(p),p.isCheckStableRunning=!0,$p(p),p.isCheckStableRunning=!1},void 0,()=>{},()=>{})),p.fakeTopEventTask.invoke()}),t1(p))}(p)};p._inner=p._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,_,y,v,D,k)=>{try{return Wb(p),g.invokeTask(y,v,D,k)}finally{(p.shouldCoalesceEventChangeDetection&&"eventTask"===v.type||p.shouldCoalesceRunChangeDetection)&&m(),n1(p)}},onInvoke:(g,_,y,v,D,k,P)=>{try{return Wb(p),g.invoke(y,v,D,k,P)}finally{p.shouldCoalesceRunChangeDetection&&m(),n1(p)}},onHasTask:(g,_,y,v)=>{g.hasTask(y,v),_===y&&("microTask"==v.change?(p._hasPendingMicrotasks=v.microTask,t1(p),$p(p)):"macroTask"==v.change&&(p.hasPendingMacrotasks=v.macroTask))},onHandleError:(g,_,y,v)=>(g.handleError(y,v),p.runOutsideAngular(()=>p.onError.emit(v)),!1)})}(y)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qn.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Qn.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(m,g,_){return this._inner.run(m,g,_)}runTask(m,g,_,y){const v=this._inner,D=v.scheduleEventTask("NgZoneEvent: "+y,m,dC,Ru,Ru);try{return v.runTask(D,g,_)}finally{v.cancelTask(D)}}runGuarded(m,g,_){return this._inner.runGuarded(m,g,_)}runOutsideAngular(m){return this._outer.run(m)}}const dC={};function $p(p){if(0==p._nesting&&!p.hasPendingMicrotasks&&!p.isStable)try{p._nesting++,p.onMicrotaskEmpty.emit(null)}finally{if(p._nesting--,!p.hasPendingMicrotasks)try{p.runOutsideAngular(()=>p.onStable.emit(null))}finally{p.isStable=!0}}}function t1(p){p.hasPendingMicrotasks=!!(p._hasPendingMicrotasks||(p.shouldCoalesceEventChangeDetection||p.shouldCoalesceRunChangeDetection)&&-1!==p.lastRequestAnimationFrameId)}function Wb(p){p._nesting++,p.isStable&&(p.isStable=!1,p.onUnstable.emit(null))}function n1(p){p._nesting--,$p(p)}class hC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ir,this.onMicrotaskEmpty=new Ir,this.onStable=new Ir,this.onError=new Ir}run(m,g,_){return m.apply(g,_)}runGuarded(m,g,_){return m.apply(g,_)}runOutsideAngular(m){return m()}runTask(m,g,_,y){return m.apply(g,_)}}let pC=(()=>{class p{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{Qn.assertNotInAngularZone(),Zp(()=>{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())Zp(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(g)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,_,y){let v=-1;_&&_>0&&(v=setTimeout(()=>{this._callbacks=this._callbacks.filter(D=>D.timeoutId!==v),g(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:g,timeoutId:v,updateCb:y})}whenStable(g,_,y){if(y&&!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(g,_,y),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,_,y){return[]}}return p.\u0275fac=function(g){return new(g||p)(pn(Qn))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})(),Qp=(()=>{class p{constructor(){this._applications=new Map,r1.addToWindow(this)}registerApplication(g,_){this._applications.set(g,_)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,_=!0){return r1.findTestabilityInTree(this,g,_)}}return p.\u0275fac=function(g){return new(g||p)},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();class fC{addToWindow(m){}findTestabilityInTree(m,g,_){return null}}function Ub(p){r1=p}let aa,r1=new fC;const Zb=new hi("AllowMultipleToken");class $b{constructor(m,g){this.name=m,this.token=g}}function Qb(p,m,g=[]){const _=`Platform: ${m}`,y=new hi(_);return(v=[])=>{let D=Jb();if(!D||D.injector.get(Zb,!1))if(p)p(g.concat(v).concat({provide:y,useValue:!0}));else{const k=g.concat(v).concat({provide:y,useValue:!0},{provide:jh,useValue:"platform"});!function mC(p){if(aa&&!aa.destroyed&&!aa.injector.get(Zb,!1))throw new ne(400,"");aa=p.get(s1);const m=p.get(oC,null);m&&m.forEach(g=>g())}(Da.create({providers:k,name:_}))}return function Nr(p){const m=Jb();if(!m)throw new ne(401,"");return m}()}}function Jb(){return aa&&!aa.destroyed?aa:null}let s1=(()=>{class p{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,_){const k=function gC(p,m){let g;return g="noop"===p?new hC:("zone.js"===p?void 0:p)||new Qn({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==m?void 0:m.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==m?void 0:m.ngZoneRunCoalescing)}),g}(_?_.ngZone:void 0,{ngZoneEventCoalescing:_&&_.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:_&&_.ngZoneRunCoalescing||!1}),P=[{provide:Qn,useValue:k}];return k.run(()=>{const F=Da.create({providers:P,parent:this.injector,name:g.moduleType.name}),W=g.create(F),te=W.injector.get(Un,null);if(!te)throw new ne(402,"");return k.runOutsideAngular(()=>{const se=k.onError.subscribe({next:pe=>{te.handleError(pe)}});W.onDestroy(()=>{o1(this._modules,W),se.unsubscribe()})}),function Xb(p,m,g){try{const _=g();return Jc(_)?_.catch(y=>{throw m.runOutsideAngular(()=>p.handleError(y)),y}):_}catch(_){throw m.runOutsideAngular(()=>p.handleError(_)),_}}(te,k,()=>{const se=W.injector.get(ur);return se.runInitializers(),se.donePromise.then(()=>(function pm(p){st(p,"Expected localeId to be defined"),"string"==typeof p&&(fp=p.toLowerCase().replace(/_/g,"-"))}(W.injector.get(Ou,pp)||pp),this._moduleDoBootstrap(W),W))})})}bootstrapModule(g,_=[]){const y=Kb({},_);return function Wl(p,m,g){const _=new nn(g);return Promise.resolve(_)}(0,0,g).then(v=>this.bootstrapModuleFactory(v,y))}_moduleDoBootstrap(g){const _=g.injector.get(ud);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(y=>_.bootstrap(y));else{if(!g.instance.ngDoBootstrap)throw new ne(403,"");g.instance.ngDoBootstrap(_)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ne(404,"");this._modules.slice().forEach(g=>g.destroy()),this._destroyListeners.forEach(g=>g()),this._destroyed=!0}get destroyed(){return this._destroyed}}return p.\u0275fac=function(g){return new(g||p)(pn(Da))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function Kb(p,m){return Array.isArray(m)?m.reduce(Kb,p):Object.assign(Object.assign({},p),m)}let ud=(()=>{class p{constructor(g,_,y,v,D){this._zone=g,this._injector=_,this._exceptionHandler=y,this._componentFactoryResolver=v,this._initStatus=D,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new E.y(F=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{F.next(this._stable),F.complete()})}),P=new E.y(F=>{let W;this._zone.runOutsideAngular(()=>{W=this._zone.onStable.subscribe(()=>{Qn.assertNotInAngularZone(),Zp(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,F.next(!0))})})});const te=this._zone.onUnstable.subscribe(()=>{Qn.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{F.next(!1)}))});return()=>{W.unsubscribe(),te.unsubscribe()}});this.isStable=(0,T.T)(k,P.pipe((0,S.B)()))}bootstrap(g,_){if(!this._initStatus.done)throw new ne(405,"");let y;y=g instanceof hb?g:this._componentFactoryResolver.resolveComponentFactory(g),this.componentTypes.push(y.componentType);const v=function Gb(p){return p.isBoundToModule}(y)?void 0:this._injector.get(id),k=y.create(Da.NULL,[],_||y.selector,v),P=k.location.nativeElement,F=k.injector.get(pC,null),W=F&&k.injector.get(Qp);return F&&W&&W.registerApplication(P,F),k.onDestroy(()=>{this.detachView(k.hostView),o1(this.components,k),W&&W.unregisterApplication(P)}),this._loadComponent(k),k}tick(){if(this._runningTick)throw new ne(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const _=g;this._views.push(_),_.attachToAppRef(this)}detachView(g){const _=g;o1(this._views,_),_.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(qb,[]).concat(this._bootstrapListeners).forEach(y=>y(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return p.\u0275fac=function(g){return new(g||p)(pn(Qn),pn(Da),pn(Un),pn(wu),pn(ur))},p.\u0275prov=di({token:p,factory:p.\u0275fac}),p})();function o1(p,m){const g=p.indexOf(m);g>-1&&p.splice(g,1)}let _C=!0;function Jp(){_C=!1}let fx=(()=>{class p{}return p.__NG_ELEMENT_ID__=yC,p})();function yC(p){return function MC(p,m,g){if(za(p)&&!g){const _=At(p.index,m);return new vu(_,_)}return 47&p.type?new vu(m[16],m):null}($i(),be(),16==(16&p))}class tA{constructor(){}supports(m){return qs(m)}create(m){return new SC(m)}}const xC=(p,m)=>m;class SC{constructor(m){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=m||xC}forEachItem(m){let g;for(g=this._itHead;null!==g;g=g._next)m(g)}forEachOperation(m){let g=this._itHead,_=this._removalsHead,y=0,v=null;for(;g||_;){const D=!_||g&&g.currentIndex{D=this._trackByFn(y,k),null!==g&&Object.is(g.trackById,D)?(_&&(g=this._verifyReinsertion(g,k,D,y)),Object.is(g.item,k)||this._addIdentityChange(g,k)):(g=this._mismatch(g,k,D,y),_=!0),g=g._next,y++}),this.length=y;return this._truncate(g),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,g,_,y){let v;return null===m?v=this._itTail:(v=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._reinsertAfter(m,v,y)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(_,y))?(Object.is(m.item,g)||this._addIdentityChange(m,g),this._moveAfter(m,v,y)):m=this._addAfter(new vx(g,_),v,y),m}_verifyReinsertion(m,g,_,y){let v=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==v?m=this._reinsertAfter(v,m._prev,y):m.currentIndex!=y&&(m.currentIndex=y,this._addToMoves(m,y)),m}_truncate(m){for(;null!==m;){const g=m._next;this._addToRemovals(this._unlink(m)),m=g}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(m,g,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const y=m._prevRemoved,v=m._nextRemoved;return null===y?this._removalsHead=v:y._nextRemoved=v,null===v?this._removalsTail=y:v._prevRemoved=y,this._insertAfter(m,g,_),this._addToMoves(m,_),m}_moveAfter(m,g,_){return this._unlink(m),this._insertAfter(m,g,_),this._addToMoves(m,_),m}_addAfter(m,g,_){return this._insertAfter(m,g,_),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,g,_){const y=null===g?this._itHead:g._next;return m._next=y,m._prev=g,null===y?this._itTail=m:y._prev=m,null===g?this._itHead=m:g._next=m,null===this._linkedRecords&&(this._linkedRecords=new Iu),this._linkedRecords.put(m),m.currentIndex=_,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const g=m._prev,_=m._next;return null===g?this._itHead=_:g._next=_,null===_?this._itTail=g:_._prev=g,m}_addToMoves(m,g){return m.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Iu),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,g){return m.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class vx{constructor(m,g){this.item=m,this.trackById=g,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 EC{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,g){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===g||g<=_.currentIndex)&&Object.is(_.trackById,m))return _;return null}remove(m){const g=m._prevDup,_=m._nextDup;return null===g?this._head=_:g._nextDup=_,null===_?this._tail=g:_._prevDup=g,null===this._head}}class Iu{constructor(){this.map=new Map}put(m){const g=m.trackById;let _=this.map.get(g);_||(_=new EC,this.map.set(g,_)),_.add(m)}get(m,g){const y=this.map.get(m);return y?y.get(m,g):null}remove(m){const g=m.trackById;return this.map.get(g).remove(m)&&this.map.delete(g),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function pd(p,m,g){const _=p.previousIndex;if(null===_)return _;let y=0;return g&&_{if(g&&g.key===y)this._maybeAddToChanges(g,_),this._appendAfter=g,g=g._next;else{const v=this._getOrCreateRecordForKey(y,_);g=this._insertBeforeOrAppend(g,v)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let _=g;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,g){if(m){const _=m._prev;return g._next=m,g._prev=_,m._prev=g,_&&(_._next=g),m===this._mapHead&&(this._mapHead=g),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(m,g){if(this._records.has(m)){const y=this._records.get(m);this._maybeAddToChanges(y,g);const v=y._prev,D=y._next;return v&&(v._next=D),D&&(D._prev=v),y._next=null,y._prev=null,y}const _=new fd(m);return this._records.set(m,_),_.currentValue=g,this._addToAdditions(_),_}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,g){Object.is(g,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=g,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,g){m instanceof Map?m.forEach(g):Object.keys(m).forEach(_=>g(m[_],_))}}class fd{constructor(m){this.key=m,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 nA(){return new ef([new tA])}let ef=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(null!=_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||nA()),deps:[[p,new Eo,new Za]]}}find(g){const _=this.factories.find(y=>y.supports(g));if(null!=_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:nA}),p})();function rA(){return new Bu([new DC])}let Bu=(()=>{class p{constructor(g){this.factories=g}static create(g,_){if(_){const y=_.factories.slice();g=g.concat(y)}return new p(g)}static extend(g){return{provide:p,useFactory:_=>p.create(g,_||rA()),deps:[[p,new Eo,new Za]]}}find(g){const _=this.factories.find(v=>v.supports(g));if(_)return _;throw new ne(901,"")}}return p.\u0275prov=di({token:p,providedIn:"root",factory:rA}),p})();const HC=[new DC],kC=new ef([new tA]),xx=new Bu(HC),aA=Qb(null,"core",[{provide:Qm,useValue:"unknown"},{provide:s1,deps:[Da]},{provide:Qp,deps:[]},{provide:Yb,deps:[]}]),IC=[{provide:ud,useClass:ud,deps:[Qn,Da,Un,wu,ur]},{provide:Nw,deps:[Qn],useFactory:function BC(p){let m=[];return p.onStable.subscribe(()=>{for(;m.length;)m.pop()()}),function(g){m.push(g)}}},{provide:ur,useClass:ur,deps:[[new Za,Yp]]},{provide:Jm,useClass:Jm,deps:[]},Up,{provide:ef,useFactory:function RC(){return kC},deps:[]},{provide:Bu,useFactory:function Sx(){return xx},deps:[]},{provide:Ou,useFactory:function sA(p){return p||function OC(){return"undefined"!=typeof $localize&&$localize.locale||pp}()},deps:[[new So(Ou),new Za,new Eo]]},{provide:Gp,useValue:"USD"}];let NC=(()=>{class p{constructor(g){}}return p.\u0275fac=function(g){return new(g||p)(pn(ud))},p.\u0275mod=_s({type:p}),p.\u0275inj=on({providers:IC}),p})()},6114:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{zr:()=>OAuthModule,Ct:()=>OAuthService,Hy:()=>OAuthStorage});var _angular_core__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5e3),_angular_common__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(9808),_angular_common_http__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(520),tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(655),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8929),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1086),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5254),rxjs__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(1946),rxjs__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(1737),rxjs__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(6053),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(6787),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2198),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(2868),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(13),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(943),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7545),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(4850),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7224),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(7221),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(6227),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(2986),rxjs_operators__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(1709),fast_sha256__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1302);class DateTimeProvider{}let SystemDateTimeProvider=(()=>{class Y extends DateTimeProvider{now(){return Date.now()}new(){return new Date}}return Y.\u0275fac=function(){let U;return function(w){return(U||(U=_angular_core__WEBPACK_IMPORTED_MODULE_1__.n5z(Y)))(w||Y)}}(),Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class LoginOptions{constructor(){this.disableNonceCheck=!1,this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class Y{constructor(){this.data=new Map}getItem(x){return this.data.get(x)}removeItem(x){this.data.delete(x)}setItem(x,w){this.data.set(x,w)}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class ReceivedTokens{}class OAuthEvent{constructor(U){this.type=U}}class OAuthSuccessEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthInfoEvent extends OAuthEvent{constructor(U,x=null){super(U),this.info=x}}class OAuthErrorEvent extends OAuthEvent{constructor(U,x,w=null){super(U),this.reason=x,this.params=w}}function b64DecodeUnicode(Y){const U=Y.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(U).split("").map(function(x){return"%"+("00"+x.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(Y){return btoa(Y).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class AuthConfig{constructor(U){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefreshIFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.openUri=x=>{location.href=x},U&&Object.assign(this,U)}}class WebHttpUrlEncodingCodec{encodeKey(U){return encodeURIComponent(U)}encodeValue(U){return encodeURIComponent(U)}decodeKey(U){return decodeURIComponent(U)}decodeValue(U){return decodeURIComponent(U)}}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(U){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){let x=this.inferHashAlgorithm(U.idTokenHeader),w=yield this.calcHash(U.accessToken,x),E=base64UrlEncode(w.substr(0,w.length/2)),T=U.idTokenClaims.at_hash.replace(/=/g,"");return E!==T&&(console.error("exptected at_hash: "+E),console.error("actual at_hash: "+T)),E===T})}inferHashAlgorithm(U){let x=U.alg;if(!x.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+x);return"sha-"+x.substr(2)}}let UrlHelperService=(()=>{class Y{getHashFragmentParams(x){let w=x||window.location.hash;if(w=decodeURIComponent(w),0!==w.indexOf("#"))return{};const i=w.indexOf("?");return w=w.substr(i>-1?i+1:1),this.parseQueryString(w)}parseQueryString(x){const w={};let i,E,T,S,L,R,N;if(null===x)return w;i=x.split("&");for(let j=0;j>6,E[S++]=128|63&L):L<55296||L>=57344?(E[S++]=224|L>>12,E[S++]=128|L>>6&63,E[S++]=128|63&L):(L=65536+((1023&L)<<10|1023&Y.charCodeAt(++w)),E[S++]=240|L>>18,E[S++]=128|L>>12&63,E[S++]=128|L>>6&63,E[S++]=128|63&L);Y=E}else{if("object"!==i)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR)}Y.length>64&&(Y=new Sha256(U,!0).update(Y).array());var R=[],N=[];for(w=0;w<64;++w){var j=Y[w]||0;R[w]=92^j,N[w]=54^j}Sha256.call(this,U,x),this.update(N),this.oKeyPad=R,this.inner=!0,this.sharedMemory=x}Sha256.prototype.update=function(Y){if(!this.finalized){var U,x=typeof Y;if("string"!==x){if("object"!==x)throw new Error(ERROR);if(null===Y)throw new Error(ERROR);if(ARRAY_BUFFER&&Y.constructor===ArrayBuffer)Y=new Uint8Array(Y);else if(!(Array.isArray(Y)||ARRAY_BUFFER&&ArrayBuffer.isView(Y)))throw new Error(ERROR);U=!0}for(var w,E,i=0,T=Y.length,S=this.blocks;i>2]|=Y[i]<>2]|=w<>2]|=(192|w>>6)<>2]|=(128|63&w)<=57344?(S[E>>2]|=(224|w>>12)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<>2]|=(240|w>>18)<>2]|=(128|w>>12&63)<>2]|=(128|w>>6&63)<>2]|=(128|63&w)<=64?(this.block=S[16],this.start=E-64,this.hash(),this.hashed=!0):this.start=E}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var Y=this.blocks,U=this.lastByteIndex;Y[16]=this.block,Y[U>>2]|=EXTRA[3&U],this.block=Y[16],U>=56&&(this.hashed||this.hash(),Y[0]=this.block,Y[16]=Y[1]=Y[2]=Y[3]=Y[4]=Y[5]=Y[6]=Y[7]=Y[8]=Y[9]=Y[10]=Y[11]=Y[12]=Y[13]=Y[14]=Y[15]=0),Y[14]=this.hBytes<<3|this.bytes>>>29,Y[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var R,$,ce,ne,de,me,Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=this.blocks;for(R=16;R<64;++R)L[R]=L[R-16]+((($=L[R-15])>>>7|$<<25)^($>>>18|$<<14)^$>>>3)+L[R-7]+((($=L[R-2])>>>17|$<<15)^($>>>19|$<<13)^$>>>10)<<0;for(me=U&x,R=0;R<64;R+=4)this.first?(this.is224?(ce=300032,S=($=L[0]-1413257819)-150054599<<0,w=$+24177077<<0):(ce=704751109,S=($=L[0]-210244248)-1521486534<<0,w=$+143694565<<0),this.first=!1):(S=w+($=S+((i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7))+(i&E^~i&T)+K[R]+L[R])<<0,w=$+(((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((ce=Y&U)^Y&x^me))<<0),T=x+($=T+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&i^~S&E)+K[R+1]+L[R+1])<<0,x=$+(((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+((ne=w&Y)^w&U^ce))<<0,E=U+($=E+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&S^~T&i)+K[R+2]+L[R+2])<<0,U=$+(((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+((de=x&w)^x&Y^ne))<<0,i=Y+($=i+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&T^~E&S)+K[R+3]+L[R+3])<<0,Y=$+(((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+((me=U&x)^U&w^de))<<0;this.h0=this.h0+Y<<0,this.h1=this.h1+U<<0,this.h2=this.h2+x<<0,this.h3=this.h3+w<<0,this.h4=this.h4+i<<0,this.h5=this.h5+E<<0,this.h6=this.h6+T<<0,this.h7=this.h7+S<<0},Sha256.prototype.hex=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=HEX_CHARS[Y>>28&15]+HEX_CHARS[Y>>24&15]+HEX_CHARS[Y>>20&15]+HEX_CHARS[Y>>16&15]+HEX_CHARS[Y>>12&15]+HEX_CHARS[Y>>8&15]+HEX_CHARS[Y>>4&15]+HEX_CHARS[15&Y]+HEX_CHARS[U>>28&15]+HEX_CHARS[U>>24&15]+HEX_CHARS[U>>20&15]+HEX_CHARS[U>>16&15]+HEX_CHARS[U>>12&15]+HEX_CHARS[U>>8&15]+HEX_CHARS[U>>4&15]+HEX_CHARS[15&U]+HEX_CHARS[x>>28&15]+HEX_CHARS[x>>24&15]+HEX_CHARS[x>>20&15]+HEX_CHARS[x>>16&15]+HEX_CHARS[x>>12&15]+HEX_CHARS[x>>8&15]+HEX_CHARS[x>>4&15]+HEX_CHARS[15&x]+HEX_CHARS[w>>28&15]+HEX_CHARS[w>>24&15]+HEX_CHARS[w>>20&15]+HEX_CHARS[w>>16&15]+HEX_CHARS[w>>12&15]+HEX_CHARS[w>>8&15]+HEX_CHARS[w>>4&15]+HEX_CHARS[15&w]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[E>>28&15]+HEX_CHARS[E>>24&15]+HEX_CHARS[E>>20&15]+HEX_CHARS[E>>16&15]+HEX_CHARS[E>>12&15]+HEX_CHARS[E>>8&15]+HEX_CHARS[E>>4&15]+HEX_CHARS[15&E]+HEX_CHARS[T>>28&15]+HEX_CHARS[T>>24&15]+HEX_CHARS[T>>20&15]+HEX_CHARS[T>>16&15]+HEX_CHARS[T>>12&15]+HEX_CHARS[T>>8&15]+HEX_CHARS[T>>4&15]+HEX_CHARS[15&T];return this.is224||(L+=HEX_CHARS[S>>28&15]+HEX_CHARS[S>>24&15]+HEX_CHARS[S>>20&15]+HEX_CHARS[S>>16&15]+HEX_CHARS[S>>12&15]+HEX_CHARS[S>>8&15]+HEX_CHARS[S>>4&15]+HEX_CHARS[15&S]),L},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var Y=this.h0,U=this.h1,x=this.h2,w=this.h3,i=this.h4,E=this.h5,T=this.h6,S=this.h7,L=[Y>>24&255,Y>>16&255,Y>>8&255,255&Y,U>>24&255,U>>16&255,U>>8&255,255&U,x>>24&255,x>>16&255,x>>8&255,255&x,w>>24&255,w>>16&255,w>>8&255,255&w,i>>24&255,i>>16&255,i>>8&255,255&i,E>>24&255,E>>16&255,E>>8&255,255&E,T>>24&255,T>>16&255,T>>8&255,255&T];return this.is224||L.push(S>>24&255,S>>16&255,S>>8&255,255&S),L},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var Y=new ArrayBuffer(this.is224?28:32),U=new DataView(Y);return U.setUint32(0,this.h0),U.setUint32(4,this.h1),U.setUint32(8,this.h2),U.setUint32(12,this.h3),U.setUint32(16,this.h4),U.setUint32(20,this.h5),U.setUint32(24,this.h6),this.is224||U.setUint32(28,this.h7),Y},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var Y=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(Y),Sha256.prototype.finalize.call(this)}};var exports=createMethod();return exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),exports}const sha256=factory();class HashHandler{}function decodeUTF8(Y){if("string"!=typeof Y)throw new TypeError("expected string");var U,x=Y,w=new Uint8Array(x.length);for(U=0;U{class Y{calcHash(x,w){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){return encodeUTF8(fast_sha256__WEBPACK_IMPORTED_MODULE_0__(decodeUTF8(x)))})}toHashString2(x){let w="";for(let i of x)w+=String.fromCharCode(i);return w}toHashString(x){const w=new Uint8Array(x);let i="";for(let E of w)i+=String.fromCharCode(E);return i}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})(),OAuthService=(()=>{class Y extends AuthConfig{constructor(x,w,i,E,T,S,L,R,N,j){var q;super(),this.ngZone=x,this.http=w,this.config=T,this.urlHelper=S,this.logger=L,this.crypto=R,this.dateTimeService=j,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_3__.xQ,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=N,T||(T={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),E&&(this.tokenValidationHandler=E),T&&this.configure(T);try{i?this.setStorage(i):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch($){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",$)}if(this.checkLocalStorageAccessable()){const $=null===(q=null==window?void 0:window.navigator)||void 0===q?void 0:q.userAgent;((null==$?void 0:$.includes("MSIE "))||(null==$?void 0:$.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if("undefined"==typeof window)return!1;const x="test";try{return void 0!==window.localStorage&&(localStorage.setItem(x,x),localStorage.removeItem(x),!0)}catch(w){return!1}}configure(x){Object.assign(this,new AuthConfig,x),this.config=Object.assign({},new AuthConfig,x),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(x={},w,i=!0){let E=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(T=>{"token_received"===T.type?E=!0:"logout"===T.type&&(E=!1)}),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_expires"===T.type&&(null==w||"any"===w||T.info===w)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.b)(1e3)).subscribe(T=>{E&&this.refreshInternal(x,i).catch(S=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(x,w){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(x,w):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(x=null){return this.loadDiscoveryDocument().then(w=>this.tryLogin(x))}loadDiscoveryDocumentAndLogin(x=null){return this.loadDiscoveryDocumentAndTryLogin(x=x||{}).then(w=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof x.state?x.state:""),!1))}debug(...x){this.showDebugInformation&&this.logger.debug.apply(this.logger,x)}validateUrlFromDiscoveryDocument(x){const w=[],i=this.validateUrlForHttps(x),E=this.validateUrlAgainstIssuer(x);return i||w.push("https for all urls required. Also for urls received by discovery."),E||w.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),w}validateUrlForHttps(x){if(!x)return!0;const w=x.toLowerCase();return!(!1!==this.requireHttps&&(!w.match(/^http:\/\/localhost($|[:\/])/)&&!w.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps))||w.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(x,w){if(!x)throw new Error(`'${w}' should not be null`);if(!this.validateUrlForHttps(x))throw new Error(`'${w}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(x){return!this.strictDiscoveryDocumentValidation||!x||x.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"token_received"===x.type)).subscribe(x=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const x=this.getAccessTokenExpiration(),w=this.getAccessTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","access_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}setupIdTokenTimer(){const x=this.getIdTokenExpiration(),w=this.getIdTokenStoredAt(),i=this.calcTimeout(w,x);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthInfoEvent("token_expires","id_token")).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(i)).subscribe(E=>{this.ngZone.run(()=>{this.eventsSubject.next(E)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}calcTimeout(x,w){const i=this.dateTimeService.now();return Math.max(0,(w-x)*this.timeoutFactor-(i-x))}setStorage(x){this._storage=x,this.configChanged()}loadDiscoveryDocument(x=null){return new Promise((w,i)=>{x||((x=this.issuer||"").endsWith("/")||(x+="/"),x+=".well-known/openid-configuration"),this.validateUrlForHttps(x)?this.http.get(x).subscribe(E=>{if(!this.validateDiscoveryDocument(E))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");this.loginUrl=E.authorization_endpoint,this.logoutUrl=E.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=E.grant_types_supported,this.issuer=E.issuer,this.tokenEndpoint=E.token_endpoint,this.userinfoEndpoint=E.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=E.jwks_uri,this.sessionCheckIFrameUrl=E.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(E),this.revocationEndpoint=E.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(T=>{const L=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:E,jwks:T});this.eventsSubject.next(L),w(L)}).catch(T=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",T)),i(T)})},E=>{this.logger.error("error loading discovery document",E),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",E)),i(E)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((x,w)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),x(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",i)),w(i)}):x(null)})}validateDiscoveryDocument(x){let w;return this.skipIssuerCheck||x.issuer===this.issuer?(w=this.validateUrlFromDiscoveryDocument(x.authorization_endpoint),w.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.end_session_endpoint),w.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.token_endpoint),w.length>0&&this.logger.error("error validating token_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.revocation_endpoint),w.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",w),w=this.validateUrlFromDiscoveryDocument(x.userinfo_endpoint),w.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",w),!1):(w=this.validateUrlFromDiscoveryDocument(x.jwks_uri),w.length>0?(this.logger.error("error validating jwks_uri in discovery document",w),!1):(this.sessionChecksEnabled&&!x.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+x.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingPasswordFlow(x,w,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((x,w)=>{const i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(E=>{if(this.debug("userinfo received",JSON.stringify(E)),E.headers.get("content-type").startsWith("application/json")){let T=JSON.parse(E.body);const S=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!S.sub||T.sub!==S.sub))return void w("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false");T=Object.assign({},S,T),this._storage.setItem("id_token_claims_obj",JSON.stringify(T)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x({info:T})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),x(JSON.parse(E.body))},E=>{this.logger.error("error loading user info",E),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",E)),w(E)})})}fetchTokenUsingPasswordFlow(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){return this.fetchTokenUsingGrant("password",{username:x,password:w},i)}fetchTokenUsingGrant(x,w,i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let E=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type",x).set("scope",this.scope);if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(E=E.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(E=E.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))E=E.set(T,this.customQueryParams[T]);for(const T of Object.keys(w))E=E.set(T,w[T]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((T,S)=>{this.http.post(this.tokenEndpoint,E,{headers:i}).subscribe(L=>{this.debug("tokenResponse",L),this.storeAccessTokenResponse(L.access_token,L.refresh_token,L.expires_in||this.fallbackAccessTokenExpirationTimeInSec,L.scope,this.extractRecognizedCustomParameters(L)),this.oidc&&L.id_token&&this.processIdToken(L.id_token,L.access_token).then(R=>{this.storeIdToken(R),T(L)}),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),T(L)},L=>{this.logger.error("Error performing ${grantType} flow",L),this.eventsSubject.next(new OAuthErrorEvent("token_error",L)),S(L)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((x,w)=>{let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),E=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const T=btoa(`${this.clientId}:${this.dummyClientSecret}`);E=E.set("Authorization","Basic "+T)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const T of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(T,this.customQueryParams[T]);this.http.post(this.tokenEndpoint,i,{headers:E}).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.w)(T=>T.id_token?(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.D)(this.processIdToken(T.id_token,T.access_token,!0)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.b)(S=>this.storeIdToken(S)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(S=>T)):(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(T))).subscribe(T=>{this.debug("refresh tokenResponse",T),this.storeAccessTokenResponse(T.access_token,T.refresh_token,T.expires_in||this.fallbackAccessTokenExpirationTimeInSec,T.scope,this.extractRecognizedCustomParameters(T)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),x(T)},T=>{this.logger.error("Error refreshing token",T),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",T)),w(T)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=x=>{const w=this.processMessageEventMessage(x);this.tryLogin({customHashFragment:w,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(x={},w=!0){const i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(x.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const E=this.document.getElementById(this.silentRefreshIFrameName);E&&this.document.body.removeChild(E),this.silentRefreshSubject=i.sub;const T=this.document.createElement("iframe");T.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,w,x).then(j=>{T.setAttribute("src",j),this.silentRefreshShowIFrame||(T.style.display="none"),this.document.body.appendChild(T)});const L=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>j instanceof OAuthErrorEvent),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),R=this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(j=>"token_received"===j.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()),N=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_8__.g)(this.silentRefreshTimeout));return(0,rxjs__WEBPACK_IMPORTED_MODULE_14__.S3)([L,R,N]).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(j=>{if(j instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===j.type||(j=new OAuthErrorEvent("silent_refresh_error",j)),this.eventsSubject.next(j),j;return"token_received"===j.type&&(j=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(j)),j})).toPromise()}initImplicitFlowInPopup(x){return this.initLoginFlowInPopup(x)}initLoginFlowInPopup(x){return x=x||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(w=>new Promise((i,E)=>{let L,S=null;x.windowRef?x.windowRef&&!x.windowRef.closed&&(S=x.windowRef,S.location.href=w):S=window.open(w,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(x));const R=X=>{this.tryLogin({customHashFragment:X,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{j(),i(!0)},ie=>{j(),E(ie)})};S?L=window.setInterval(()=>{(!S||S.closed)&&(j(),E(new OAuthErrorEvent("popup_closed",{})))},500):E(new OAuthErrorEvent("popup_blocked",{}));const j=()=>{window.clearInterval(L),window.removeEventListener("storage",$),window.removeEventListener("message",q),null!==S&&S.close(),S=null},q=X=>{const ie=this.processMessageEventMessage(X);ie&&null!==ie?(window.removeEventListener("storage",$),R(ie)):console.log("false event firing")},$=X=>{"auth_hash"===X.key&&(window.removeEventListener("message",q),R(X.newValue))};window.addEventListener("message",q),window.addEventListener("storage",$)}))}calculatePopupFeatures(x){const w=x.height||470,i=x.width||500,E=window.screenLeft+(window.outerWidth-i)/2;return`location=no,toolbar=no,width=${i},height=${w},top=${window.screenTop+(window.outerHeight-w)/2},left=${E}`}processMessageEventMessage(x){let w="#";if(this.silentRefreshMessagePrefix&&(w+=this.silentRefreshMessagePrefix),!x||!x.data||"string"!=typeof x.data)return;const i=x.data;return i.startsWith(w)?"#"+i.substr(w.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=x=>{const w=x.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),i.startsWith(w)){switch(x.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",x)}else this.debug("sessionCheckEventListener","wrong origin",w,"expected",i,"event",x)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new OAuthInfoEvent("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(x=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(x=>{this.debug("token refresh after session change worked")}).catch(x=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(x=>"silently_refreshed"===x.type||"silent_refresh_timeout"===x.type||"silent_refresh_error"===x.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.P)()).subscribe(x=>{"silently_refreshed"!==x.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const x=this.document.getElementById(this.sessionCheckIFrameName);x&&this.document.body.removeChild(x);const w=this.document.createElement("iframe");w.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),w.setAttribute("src",this.sessionCheckIFrameUrl),w.style.display="none",this.document.body.appendChild(w),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const x=this.document.getElementById(this.sessionCheckIFrameName);x||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const w=this.getSessionState();w||this.stopSessionCheckTimer(),x.contentWindow.postMessage(this.clientId+" "+w,this.issuer)}createLoginUrl(x="",w="",i="",E=!1,T={}){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const S=this;let L;L=i||this.redirectUri;const R=yield this.createAndSaveNonce();if(x=x?R+this.config.nonceStateSeparator+encodeURIComponent(x):R,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const N=S.loginUrl.indexOf("?")>-1?"&":"?";let j=S.scope;this.oidc&&!j.match(/(^|\s)openid($|\s)/)&&(j="openid "+j);let q=S.loginUrl+N+"response_type="+encodeURIComponent(S.responseType)+"&client_id="+encodeURIComponent(S.clientId)+"&state="+encodeURIComponent(x)+"&redirect_uri="+encodeURIComponent(L)+"&scope="+encodeURIComponent(j);if(this.responseType.includes("code")&&!this.disablePKCE){const[$,X]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",X):this._storage.setItem("PKCE_verifier",X),q+="&code_challenge="+$,q+="&code_challenge_method=S256"}w&&(q+="&login_hint="+encodeURIComponent(w)),S.resource&&(q+="&resource="+encodeURIComponent(S.resource)),S.oidc&&(q+="&nonce="+encodeURIComponent(R)),E&&(q+="&prompt=none");for(const $ of Object.keys(T))q+="&"+encodeURIComponent($)+"="+encodeURIComponent(T[$]);if(this.customQueryParams)for(const $ of Object.getOwnPropertyNames(this.customQueryParams))q+="&"+$+"="+encodeURIComponent(this.customQueryParams[$]);return q})}initImplicitFlowInternal(x="",w=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initImplicitFlow",T),this.inImplicitFlow=!1})}initImplicitFlow(x="",w=""){""!==this.loginUrl?this.initImplicitFlowInternal(x,w):this.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(i=>"discovery_document_loaded"===i.type)).subscribe(i=>this.initImplicitFlowInternal(x,w))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(x){const w=this;if(x.onTokenReceived){const i={idClaims:w.getIdentityClaims(),idToken:w.getIdToken(),accessToken:w.getAccessToken(),state:w.state};x.onTokenReceived(i)}}storeAccessTokenResponse(x,w,i,E,T){if(this._storage.setItem("access_token",x),E&&!Array.isArray(E)?this._storage.setItem("granted_scopes",JSON.stringify(E.split(" "))):E&&Array.isArray(E)&&this._storage.setItem("granted_scopes",JSON.stringify(E)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.now()),i){const S=1e3*i,R=this.dateTimeService.new().getTime()+S;this._storage.setItem("expires_at",""+R)}w&&this._storage.setItem("refresh_token",w),T&&T.forEach((S,L)=>{this._storage.setItem(L,S)})}tryLogin(x=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(x).then(w=>!0):this.tryLoginImplicitFlow(x)}parseQueryString(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):{}}tryLoginCodeFlow(x=null){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){const w=(x=x||{}).customHashFragment?x.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(w),E=i.code,T=i.state,S=i.session_state;if(!x.preventClearHashAfterLogin){const N=location.origin+location.pathname+location.search.replace(/code=[^&\$]*/,"").replace(/scope=[^&\$]*/,"").replace(/state=[^&\$]*/,"").replace(/session_state=[^&\$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,N)}let[L,R]=this.parseState(T);if(this.state=R,i.error){this.debug("error trying to login"),this.handleLoginError(x,i);const N=new OAuthErrorEvent("code_error",{},i);return this.eventsSubject.next(N),Promise.reject(N)}if(!x.disableNonceCheck){if(!L)return this.saveRequestedRoute(),Promise.resolve();if(!x.disableOAuth2StateCheck&&!this.validateNonce(L)){const j=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(j),Promise.reject(j)}return this.storeSessionState(S),E&&(yield this.getTokenFromCode(E,x),this.restoreRequestedRoute()),Promise.resolve()}return Promise.reject()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){const x=this._storage.getItem("requested_route");x&&history.replaceState(null,"",window.location.origin+x)}getCodePartsFromUrl(x){return x&&0!==x.length?("?"===x.charAt(0)&&(x=x.substr(1)),this.urlHelper.parseQueryString(x)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(x,w){let i=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","authorization_code").set("code",x).set("redirect_uri",w.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let E;E=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),E?i=i.set("code_verifier",E):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,w)}fetchAndProcessToken(x,w){w=w||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const E=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+E)}return this.useHttpBasicAuth||(x=x.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(x=x.set("client_secret",this.dummyClientSecret)),new Promise((E,T)=>{if(this.customQueryParams)for(let S of Object.getOwnPropertyNames(this.customQueryParams))x=x.set(S,this.customQueryParams[S]);this.http.post(this.tokenEndpoint,x,{headers:i}).subscribe(S=>{this.debug("refresh tokenResponse",S),this.storeAccessTokenResponse(S.access_token,S.refresh_token,S.expires_in||this.fallbackAccessTokenExpirationTimeInSec,S.scope,this.extractRecognizedCustomParameters(S)),this.oidc&&S.id_token?this.processIdToken(S.id_token,S.access_token,w.disableNonceCheck).then(L=>{this.storeIdToken(L),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S)}).catch(L=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",L)),console.error("Error validating tokens"),console.error(L),T(L)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),E(S))},S=>{console.error("Error getting token",S),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",S)),T(S)})})}tryLoginImplicitFlow(x=null){let w;w=(x=x||{}).customHashFragment?this.urlHelper.getHashFragmentParams(x.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",w);const i=w.state;let[E,T]=this.parseState(i);if(this.state=T,w.error){this.debug("error trying to login"),this.handleLoginError(x,w);const j=new OAuthErrorEvent("token_error",{},w);return this.eventsSubject.next(j),Promise.reject(j)}const S=w.access_token,L=w.id_token,R=w.session_state,N=w.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!S||this.requestAccessToken&&!x.disableOAuth2StateCheck&&!i||this.oidc&&!L)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!R&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!x.disableNonceCheck&&!this.validateNonce(E)){const q=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(q),Promise.reject(q)}return this.requestAccessToken&&this.storeAccessTokenResponse(S,null,w.expires_in||this.fallbackAccessTokenExpirationTimeInSec,N),this.oidc?this.processIdToken(L,S,x.disableNonceCheck).then(j=>x.validationHandler?x.validationHandler({accessToken:S,idClaims:j.idTokenClaims,idToken:j.idToken,state:i}).then(q=>j):j).then(j=>(this.storeIdToken(j),this.storeSessionState(R),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(x),this.inImplicitFlow=!1,!0)).catch(j=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",j)),this.logger.error("Error validating tokens"),this.logger.error(j),Promise.reject(j))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(x),Promise.resolve(!0))}parseState(x){let w=x,i="";if(x){const E=x.indexOf(this.config.nonceStateSeparator);E>-1&&(w=x.substr(0,E),i=x.substr(E+this.config.nonceStateSeparator.length))}return[w,i]}validateNonce(x){let w;return w=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),w===x||(console.error("Validating access_token failed, wrong state/nonce.",w,x),!1)}storeIdToken(x){this._storage.setItem("id_token",x.idToken),this._storage.setItem("id_token_claims_obj",x.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+x.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.now())}storeSessionState(x){this._storage.setItem("session_state",x)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(x,w){x.onLoginError&&x.onLoginError(w),this.clearHashAfterLogin&&!x.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(x=6e5){return this.clockSkewInSec?1e3*this.clockSkewInSec:x}processIdToken(x,w,i=!1){const E=x.split("."),S=b64DecodeUnicode(this.padBase64(E[0])),L=JSON.parse(S),N=b64DecodeUnicode(this.padBase64(E[1])),j=JSON.parse(N);let q;if(q=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(j.aud)){if(j.aud.every(de=>de!==this.clientId)){const de="Wrong audience: "+j.aud.join(",");return this.logger.warn(de),Promise.reject(de)}}else if(j.aud!==this.clientId){const de="Wrong audience: "+j.aud;return this.logger.warn(de),Promise.reject(de)}if(!j.sub){const de="No sub claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==j.sub){const de=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${j.sub}`;return this.logger.warn(de),Promise.reject(de)}if(!j.iat){const de="No iat claim in id_token";return this.logger.warn(de),Promise.reject(de)}if(!this.skipIssuerCheck&&j.iss!==this.issuer){const de="Wrong issuer: "+j.iss;return this.logger.warn(de),Promise.reject(de)}if(!i&&j.nonce!==q){const de="Wrong nonce: "+j.nonce;return this.logger.warn(de),Promise.reject(de)}if(this.hasOwnProperty("responseType")&&("code"===this.responseType||"id_token"===this.responseType)&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!j.at_hash){const de="An at_hash is needed!";return this.logger.warn(de),Promise.reject(de)}const $=this.dateTimeService.now(),X=1e3*j.iat,ie=1e3*j.exp,ce=this.getClockSkewInMsec();if(X-ce>=$||ie+ce<=$){const de="Token has expired";return console.error(de),console.error({now:$,issuedAtMSec:X,expiresAtMSec:ie}),Promise.reject(de)}const ne={accessToken:w,idToken:x,jwks:this.jwks,idTokenClaims:j,idTokenHeader:L,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(ne).then(de=>({idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie})):this.checkAtHash(ne).then(de=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!de){const me="Wrong at_hash";return this.logger.warn(me),Promise.reject(me)}return this.checkSignature(ne).then(me=>{const ze={idToken:x,idTokenClaims:j,idTokenClaimsJson:N,idTokenHeader:L,idTokenHeaderJson:S,idTokenExpiresAt:ie};return this.disableAtHashCheck?ze:this.checkAtHash(ne).then(Qe=>{if(this.requestAccessToken&&!Qe){const Tt="Wrong at_hash";return this.logger.warn(Tt),Promise.reject(Tt)}return ze})})})}getIdentityClaims(){const x=this._storage.getItem("id_token_claims_obj");return x?JSON.parse(x):null}getGrantedScopes(){const x=this._storage.getItem("granted_scopes");return x?JSON.parse(x):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(x){for(;x.length%4!=0;)x+="=";return x}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const x=this._storage.getItem("expires_at"),w=this.dateTimeService.new();return!(x&&parseInt(x,10)=0&&null!==this._storage.getItem(x)?JSON.parse(this._storage.getItem(x)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(x={},w=""){let i=!1;"boolean"==typeof x&&(i=x,x={});const E=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(S=>this._storage.removeItem(S)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl||i||!E&&!this.postLogoutRedirectUri)return;let T;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)T=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(E)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec});E&&(S=S.set("id_token_hint",E));const L=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";L&&(S=S.set("post_logout_redirect_uri",L),w&&(S=S.set("state",w)));for(let R in x)S=S.set(R,x[R]);T=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+S.toString()}this.config.openUri(T)}createAndSaveNonce(){const x=this;return this.createNonce().then(function(w){return x.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",w):x._storage.setItem("nonce",w),w})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const x=this.document.getElementById(this.silentRefreshIFrameName);x&&x.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const w=this.document.getElementById(this.sessionCheckIFrameName);w&&w.remove()}createNonce(){return new Promise(x=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let i=45,E="";const T="undefined"==typeof self?null:self.crypto||self.msCrypto;if(T){let S=new Uint8Array(i);T.getRandomValues(S),S.map||(S.map=Array.prototype.map),S=S.map(L=>w.charCodeAt(L%w.length)),E=String.fromCharCode.apply(null,S)}else for(;0"discovery_document_loaded"===i.type)).subscribe(i=>this.initCodeFlowInternal(x,w))}initCodeFlowInternal(x="",w={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},E=null;"string"==typeof w?E=w:"object"==typeof w&&(i=w),this.createLoginUrl(x,E,null,!1,i).then(this.config.openUri).catch(T=>{console.error("Error in initAuthorizationCodeFlow"),console.error(T)})}createChallangeVerifierPairForPKCE(){return(0,tslib__WEBPACK_IMPORTED_MODULE_2__.mG)(this,void 0,void 0,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const x=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(x,"sha-256")),x]})}extractRecognizedCustomParameters(x){let w=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{x[i]&&w.set(i,JSON.stringify(x[i]))}),w}revokeTokenAndLogout(x={},w=!1){let i=this.revocationEndpoint,E=this.getAccessToken(),T=this.getRefreshToken();if(!E)return;let S=new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.LE({encoder:new WebHttpUrlEncodingCodec}),L=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_9__.WM).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const R=btoa(`${this.clientId}:${this.dummyClientSecret}`);L=L.set("Authorization","Basic "+R)}if(this.useHttpBasicAuth||(S=S.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(S=S.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const R of Object.getOwnPropertyNames(this.customQueryParams))S=S.set(R,this.customQueryParams[R]);return new Promise((R,N)=>{let j,q;if(E){let $=S.set("token",E).set("token_type_hint","access_token");j=this.http.post(i,$,{headers:L})}else j=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);if(T){let $=S.set("token",T).set("token_type_hint","refresh_token");q=this.http.post(i,$,{headers:L})}else q=(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null);w&&(j=j.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($))),q=q.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)($=>0===$.status?(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null):(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)($)))),(0,rxjs__WEBPACK_IMPORTED_MODULE_17__.aj)([j,q]).subscribe($=>{this.logOut(x),R($),this.logger.info("Token successfully revoked")},$=>{this.logger.error("Error revoking token",$),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",$)),N($)})})}clearLocationHash(){""!=location.hash&&(location.hash="")}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_core__WEBPACK_IMPORTED_MODULE_1__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.eN),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(_angular_common__WEBPACK_IMPORTED_MODULE_18__.K0),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(DateTimeProvider))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(U){return(0,rxjs__WEBPACK_IMPORTED_MODULE_16__._)(U)}}let DefaultOAuthInterceptor=(()=>{class Y{constructor(x,w,i){this.oAuthService=x,this.errorHandler=w,this.moduleConfig=i}checkUrl(x){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(x):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(w=>x.toLowerCase().startsWith(w.toLowerCase()))}intercept(x,w){const i=x.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?(0,rxjs__WEBPACK_IMPORTED_MODULE_19__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(this.oAuthService.getAccessToken()).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>!!T)),this.oAuthService.events.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.h)(T=>"token_received"===T.type),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.V)(this.oAuthService.waitForTokenInMsec||0),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>(0,rxjs__WEBPACK_IMPORTED_MODULE_7__.of)(null)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.U)(T=>this.oAuthService.getAccessToken()))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.q)(1),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_22__.zg)(T=>{if(T){const L=x.headers.set("Authorization","Bearer "+T);x=x.clone({headers:L})}return w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(S=>this.errorHandler.handleError(S)))})):w.handle(x).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.K)(T=>this.errorHandler.handleError(T))):w.handle(x)}}return Y.\u0275fac=function(x){return new(x||Y)(_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_1__.LFG(OAuthModuleConfig,8))},Y.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_1__.Yz7({token:Y,factory:Y.\u0275fac}),Y})();class NullValidationHandler{validateSignature(U){return Promise.resolve(null)}validateAtHash(U){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class Y{static forRoot(x=null,w=NullValidationHandler){return{ngModule:Y,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:w},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:x},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_9__.TP,useClass:DefaultOAuthInterceptor,multi:!0},{provide:DateTimeProvider,useClass:SystemDateTimeProvider}]}}}return Y.\u0275fac=function(x){return new(x||Y)},Y.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_1__.oAB({type:Y}),Y.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_1__.cJS({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_18__.ez]]}),Y})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_1__.OlP("AUTH_CONFIG")},1128:Y=>{"use strict";Y.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},4147:Y=>{"use strict";Y.exports={i8:"8.2.0"}}},Y=>{Y(Y.s=941)}]); \ No newline at end of file